1import{n as s,t as r}from"./chunk-DcxQp08X.js";import{$i as yi$1,$n as et,An as _g,Ar as lo$1,B as Gg,Br as nn$1,Bt as Qe,Ct as NC,Di as uo$1,Dn as Zw,Dt as Nr,En as Zs,Ft as Pe$1,H as Gu,Hi as x,J as Hs,Ki as xe$1,Kt as Ss,Mi as vT,Mn as _n$1,Mr as lw,Mt as Oi$1,N as Fn$1,Ni as ve$1,On as _$1,Ot as Ny,P as Ft,Pi as vo$1,Qn as ee,Rr as nd,St as N,Ui as xC,Ur as om,Vt as Qs,Wi as xE,Xt as TH,Zi as yH,Zn as ed,_ as C,_r as he$1,_t as MH,ai as rv,an as Wg,bt as Mn$1,en as Us,er as eu,et as Ie$1,fn as Xl,g as Bp,gi as tn$1,gr as hd,h as Bm,hi as tm,j as Ey,ji as vI,k as ET,kr as ld,kt as Ob,lt as K$1,m as Bg,mn as Xu,na as yr$1,nt as J$1,on as Ww,or as fr$1,pt as Ks,q as He$1,r as $m,st as Jv,ta as yo$1,tn as Uy,ui as se$1,ur as gH,v as CC,vn as Ye,xi as ud,z as Gc,zi as we$1}from"./chunk-6cn32HYf.js";import{D as tr$1,c as Qe$1,m as ee$1}from"./chunk-C4sZ9F6d.js";import{E as vo$2}from"./chunk-Cf-ivzUQ.js";var f=`primary`;var Fe=Symbol(`RouteTitle`);var Wt=class{params;constructor(n){this.params=n||{}}has(n){return Object.hasOwn(this.params,n)}get(n){if(this.has(n)){let e=this.params[n];return Array.isArray(e)?e[0]:e}return null}getAll(n){if(this.has(n)){let e=this.params[n];return Array.isArray(e)?e:[e]}return[]}get keys(){return Object.keys(this.params)}};function oe(t){return new Wt(t)}function Ht(t,n,e){for(let r=0;r<t.length;r++){let i=t[r],o=n[r];if(i[0]===`:`)e[i.substring(1)]=o;else if(i!==o.path)return!1}return!0}function sn(t,n,e){let r=e.path.split(`/`),i=r.indexOf(`**`);if(i===-1){if(r.length>t.length||e.pathMatch===`full`&&(n.hasChildren()||r.length<t.length))return null;let a={},u=t.slice(0,r.length);return Ht(r,u,a)?{consumed:u,posParams:a}:null}if(i!==r.lastIndexOf(`**`))return null;let o=r.slice(0,i),s=r.slice(i+1);if(o.length+s.length>t.length||e.pathMatch===`full`&&n.hasChildren()&&e.path!==`**`)return null;let c={};return!Ht(o,t.slice(0,o.length),c)||!Ht(s,t.slice(t.length-s.length),c)?null:{consumed:t,posParams:c}}function at(t){return new Promise((n,e)=>{t.pipe(ud()).subscribe({next:r=>n(r),error:r=>e(r)})})}function Jn(t,n){if(t.length!==n.length)return!1;for(let e=0;e<t.length;++e)if(!F(t[e],n[e]))return!1;return!0}function F(t,n){let e=t?Qt(t):void 0,r=n?Qt(n):void 0;if(!e||!r||e.length!=r.length)return!1;let i;for(let o=0;o<e.length;o++)if(i=e[o],!an(t[i],n[i]))return!1;return!0}function Qt(t){return[...Object.keys(t),...Object.getOwnPropertySymbols(t)]}function an(t,n){if(Array.isArray(t)&&Array.isArray(n)){if(t.length!==n.length)return!1;let e=[...t].sort(),r=[...n].sort();return e.every((i,o)=>r[o]===i)}else return t===n}function Xn(t){return t.length>0?t[t.length-1]:null}function ae(t){return Ny(t)?t:Xl(t)?Pe$1(Promise.resolve(t)):Us(t)}function cn(t){return Ny(t)?at(t):Promise.resolve(t)}var ei={exact:ln,subset:dn};var un={exact:ti,subset:ri,ignored:()=>!0};var ur={paths:`exact`,fragment:`ignored`,matrixParams:`ignored`,queryParams:`exact`};var ge={paths:`subset`,fragment:`ignored`,matrixParams:`ignored`,queryParams:`subset`};function lr(t,n,e){let r$1=t instanceof E?t:n.parseUrl(t);return NC(()=>Kt(n.lastSuccessfulNavigation()?.finalUrl??new E,r$1,r(r({},ge),e)))}function Kt(t,n,e){return ei[e.paths](t.root,n.root,e.matrixParams)&&un[e.queryParams](t.queryParams,n.queryParams)&&!(e.fragment===`exact`&&t.fragment!==n.fragment)}function ti(t,n){return F(t,n)}function ln(t,n,e){if(!ie(t.segments,n.segments)||!it(t.segments,n.segments,e)||t.numberOfChildren!==n.numberOfChildren)return!1;for(let r in n.children)if(!t.children[r]||!ln(t.children[r],n.children[r],e))return!1;return!0}function ri(t,n){return Object.keys(n).length<=Object.keys(t).length&&Object.keys(n).every(e=>an(t[e],n[e]))}function dn(t,n,e){return hn(t,n,n.segments,e)}function hn(t,n,e,r){if(t.segments.length>e.length){let i=t.segments.slice(0,e.length);return!(!ie(i,e)||n.hasChildren()||!it(i,e,r))}else if(t.segments.length===e.length){if(!ie(t.segments,e)||!it(t.segments,e,r))return!1;for(let i in n.children)if(!t.children[i]||!dn(t.children[i],n.children[i],r))return!1;return!0}else{let i=e.slice(0,t.segments.length),o=e.slice(t.segments.length);return!ie(t.segments,i)||!it(t.segments,i,r)||!t.children[f]?!1:hn(t.children[f],n,o,r)}}function it(t,n,e){return n.every((r,i)=>un[e](t[i].parameters,r.parameters))}var E=class{root;queryParams;fragment;_queryParamMap;constructor(n=new m([],{}),e={},r=null){this.root=n,this.queryParams=e,this.fragment=r}get queryParamMap(){return this._queryParamMap??=oe(this.queryParams),this._queryParamMap}toString(){return oi.serialize(this)}};var m=class{segments;children;parent=null;constructor(n,e){this.segments=n,this.children=e,Object.values(e).forEach(r=>r.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return ot(this)}};var K=class{path;parameters;_parameterMap;constructor(n,e){this.path=n,this.parameters=e}get parameterMap(){return this._parameterMap??=oe(this.parameters),this._parameterMap}toString(){return pn(this)}};function ni(t,n){return ie(t,n)&&t.every((e,r)=>F(e.parameters,n[r].parameters))}function ie(t,n){return t.length!==n.length?!1:t.every((e,r)=>e.path===n[r].path)}function ii(t,n){let e=[];
1return Object.entries(t.children).forEach(([r,i])=>{r===f&&(e=e.concat(n(i,r)))}),Object.entries(t.children).forEach(([r,i])=>{r!==f&&(e=e.concat(n(i,r)))}),e}var ce=(()=>{class t{static ɵfac=function(r){return new(r||t)};static ɵprov=lo$1({token:t,factory:()=>new Y})}return t})();var Y=class{parse(n){let e=new Zt(n);return new E(e.parseRootSegment(),e.parseQueryParams(),e.parseFragment())}serialize(n){return`${`/${_e(n.root,!0)}`}${ci(n.queryParams)}${typeof n.fragment==`string`?`#${si(n.fragment)}`:``}`}};var oi=new Y;function ot(t){return t.segments.map(n=>pn(n)).join(`/`)}function _e(t,n){if(!t.hasChildren())return ot(t);if(n){let e=t.children[f]?_e(t.children[f],!1):``,r=[];return Object.entries(t.children).forEach(([i,o])=>{i!==f&&r.push(`${i}:${_e(o,!1)}`)}),r.length>0?`${e}(${r.join(`//`)})`:e}else{let e=ii(t,(r,i)=>i===f?[_e(t.children[f],!1)]:[`${i}:${_e(r,!1)}`]);return Object.keys(t.children).length===1&&t.children[f]!=null?`${ot(t)}/${e[0]}`:`${ot(t)}/(${e.join(`//`)})`}}function fn(t){return encodeURIComponent(t).replace(/%40/g,`@`).replace(/%3A/gi,`:`).replace(/%24/g,`$`).replace(/%2C/gi,`,`)}function rt(t){return fn(t).replace(/%3B/gi,`;`)}function si(t){return encodeURI(t)}function Yt(t){return fn(t).replace(/\(/g,`%28`).replace(/\)/g,`%29`).replace(/%26/gi,`&`)}function st(t){return decodeURIComponent(t)}function Xr(t){return st(t.replace(/\+/g,`%20`))}function pn(t){return`${Yt(t.path)}${ai(t.parameters)}`}function ai(t){return Object.entries(t).map(([n,e])=>`;${Yt(n)}=${Yt(e)}`).join(``)}function ci(t){let n=Object.entries(t).map(([e,r])=>Array.isArray(r)?r.map(i=>`${rt(e)}=${rt(i)}`).join(`&`):`${rt(e)}=${rt(r)}`).filter(e=>e);return n.length?`?${n.join(`&`)}`:``}var ui=/^[^\/()?;#]+/;function Bt(t){let n=t.match(ui);return n?n[0]:``}var li=/^[^\/()?;=#]+/;function di(t){let n=t.match(li);return n?n[0]:``}var hi=/^[^=?&#]+/;function fi(t){let n=t.match(hi);return n?n[0]:``}var pi=/^[^&#]+/;function gi(t){let n=t.match(pi);return n?n[0]:``}var Zt=class{url;remaining;constructor(n){this.url=n,this.remaining=n}parseRootSegment(){for(;this.consumeOptional(`/`););return this.remaining===``||this.peekStartsWith(`?`)||this.peekStartsWith(`#`)?new m([],{}):new m([],this.parseChildren())}parseQueryParams(){let n={};if(this.consumeOptional(`?`))do this.parseQueryParam(n);while(this.consumeOptional(`&`));return n}parseFragment(){return this.consumeOptional(`#`)?decodeURIComponent(this.remaining):null}parseChildren(n=0){if(n>50)throw new N(4010,!1);if(this.remaining===``)return{};this.consumeOptional(`/`);let e=[];for(this.peekStartsWith(`(`)||e.push(this.parseSegment());this.peekStartsWith(`/`)&&!this.peekStartsWith(`//`)&&!this.peekStartsWith(`/(`);)this.capture(`/`),e.push(this.parseSegment());let r={};this.peekStartsWith(`/(`)&&(this.capture(`/`),r=this.parseParens(!0,n));let i={};return this.peekStartsWith(`(`)&&(i=this.parseParens(!1,n)),(e.length>0||Object.keys(r).length>0)&&(i[f]=new m(e,r)),i}parseSegment(){let n=Bt(this.remaining);if(n===``&&this.peekStartsWith(`;`))throw new N(4009,!1);return this.capture(n),new K(st(n),this.parseMatrixParams())}parseMatrixParams(){let n={};for(;this.consumeOptional(`;`);)this.parseParam(n);return n}parseParam(n){let e=di(this.remaining);if(!e)return;this.capture(e);let r=``;if(this.consumeOptional(`=`)){let i=Bt(this.remaining);i&&(r=i,this.capture(r))}n[st(e)]=st(r)}parseQueryParam(n){let e=fi(this.remaining);if(!e)return;this.capture(e);let r=``;if(this.consumeOptional(`=`)){let s=gi(this.remaining);s&&(r=s,this.capture(r))}let i=Xr(e),o=Xr(r);if(Object.hasOwn(n,i)){let s=n[i];Array.isArray(s)||(s=[s],n[i]=s),s.push(o)}else n[i]=o}parseParens(n,e){let r=Object.create(null);for(this.capture(`(`);!this.consumeOptional(`)`)&&this.remaining.length>0;){let i=Bt(this.remaining),o=this.remaining[i.length];if(o!==`/`&&o!==`)`&&o!==`;`)throw new N(4010,!1);let s;i.indexOf(`:`)>-1?(s=i.slice(0,i.indexOf(`:`)),this.capture(s),this.capture(`:`)):n&&(s=f);let c=this.parseChildren(e+1);r[s??f]=Object.keys(c).length===1&&c[f]?c[f]:new m([],c),this.consumeOptional(`//`)}return r}peekStartsWith(n){return this.remaining.startsWith(n)}consumeOptional(n){return this.peekStartsWith(n)?(this.remaining=this.remaining.substring(n.length),!0):!1}capture(n){if(!this.consumeOptional(n))throw new N(4011,!1)}};function gn(t){return t.segments.length>
vendor: 4,339 bytes, line 1
10?new m([],{[f]:t}):t}function vn(t){let n=Object.create(null);for(let[r,i]of Object.entries(t.children)){let o=vn(i);if(r===f&&o.segments.length===0&&o.hasChildren())for(let[s,c]of Object.entries(o.children))n[s]=c;else(o.segments.length>0||o.hasChildren())&&(n[r]=o)}return vi(new m(t.segments,n))}function vi(t){if(t.numberOfChildren===1&&t.children[f]){let n=t.children[f];return new m(t.segments.concat(n.segments),n.children)}return t}function Z(t){return t instanceof E}function mn(t,n,e=null,r=null,i=new Y){return Rn(yn(t),n,e,r,i)}function yn(t){let n;function e(o){let s={};for(let a of o.children){let u=e(a);s[a.outlet]=u}let c=new m(o.url,s);return o===t&&(n=c),c}let i=gn(e(t.root));return n??i}function Rn(t,n,e,r,i){let o=t;for(;o.parent;)o=o.parent;if(n.length===0)return Vt(o,o,o,e,r,i);let s=mi(n);if(s.toRoot())return Vt(o,o,new m([],{}),e,r,i);let c=yi(s,o,t),a=c.processChildren?Oe(c.segmentGroup,c.index,s.commands):Cn(c.segmentGroup,c.index,s.commands);return Vt(o,c.segmentGroup,a,e,r,i)}function ct(t){return typeof t==`object`&&t!=null&&!t.outlets&&!t.segmentPath}function Le(t){return typeof t==`object`&&t!=null&&t.outlets}function en(t,n,e){t||=`ɵ`;let r=new E;return r.queryParams={[t]:n},e.parse(e.serialize(r)).queryParams[t]}function Vt(t,n,e,r,i,o){let s={};for(let[u,l]of Object.entries(r??{}))s[u]=Array.isArray(l)?l.map(v=>en(u,v,o)):en(u,l,o);let c;t===n?c=e:c=Sn(t,n,e);return new E(gn(vn(c)),s,i)}function Sn(t,n,e){let r=Object.create(null);return Object.entries(t.children).forEach(([i,o])=>{o===n?r[i]=e:r[i]=Sn(o,n,e)}),new m(t.segments,r)}var ut=class{isAbsolute;numberOfDoubleDots;commands;constructor(n,e,r){if(this.isAbsolute=n,this.numberOfDoubleDots=e,this.commands=r,n&&r.length>0&&ct(r[0]))throw new N(4003,!1);let i=r.find(Le);if(i&&i!==Xn(r))throw new N(4004,!1)}toRoot(){return this.isAbsolute&&this.commands.length===1&&this.commands[0]==`/`}};function mi(t){if(typeof t[0]==`string`&&t.length===1&&t[0]===`/`)return new ut(!0,0,t);let n=0,e=!1,r=t.reduce((i,o,s)=>{if(typeof o==`object`&&o!=null){if(o.outlets){let c={};return Object.entries(o.outlets).forEach(([a,u])=>{c[a]=typeof u==`string`?u.split(`/`):u}),[...i,{outlets:c}]}if(o.segmentPath)return[...i,o.segmentPath]}return typeof o!=`string`?[...i,o]:s===0?(o.split(`/`).forEach((c,a)=>{a==0&&c===`.`||(a==0&&c===``?e=!0:c===`..`?n++:c!=``&&i.push(c))}),i):[...i,o]},[]);return new ut(e,n,r)}var he=class{segmentGroup;processChildren;index;constructor(n,e,r){this.segmentGroup=n,this.processChildren=e,this.index=r}};function yi(t,n,e){if(t.isAbsolute)return new he(n,!0,0);if(!e)return new he(n,!1,NaN);if(e.parent===null)return new he(e,!0,0);let r=ct(t.commands[0])?0:1;return Ri(e,e.segments.length-1+r,t.numberOfDoubleDots)}function Ri(t,n,e){let r=t,i=n,o=e;for(;o>i;){if(o-=i,r=r.parent,!r)throw new N(4005,!1);i=r.segments.length}return new he(r,!1,i-o)}function Si(t){return Le(t[0])?t[0].outlets:{[f]:t}}function Cn(t,n,e){if(t??=new m([],{}),t.segments.length===0&&t.hasChildren())return Oe(t,n,e);let r=Ci(t,n,e),i=e.slice(r.commandIndex);if(r.match&&r.pathIndex<t.segments.length){let o=new m(t.segments.slice(0,r.pathIndex),{});return o.children[f]=new m(t.segments.slice(r.pathIndex),t.children),Oe(o,0,i)}else return r.match&&i.length===0?new m(t.segments,{}):r.match&&!t.hasChildren()?Jt(t,n,e):r.match?Oe(t,0,i):Jt(t,n,e)}function Oe(t,n,e){if(e.length===0)return new m(t.segments,{});{let r=Si(e),i=Object.create(null);if(Object.keys(r).some(o=>o!==f)&&t.children[f]&&t.numberOfChildren===1&&t.children[f].segments.length===0){let o=Oe(t.children[f],n,e);return new m(t.segments,o.children)}return Object.entries(r).forEach(([o,s])=>{typeof s==`string`&&(s=[s]),s!==null&&(i[o]=Cn(t.children[o],n,s))}),Object.entries(t.children).forEach(([o,s])=>{r[o]===void 0&&(i[o]=s)}),new m(t.segments,i)}}function Ci(t,n,e){let r=0,i=n,o={match:!1,pathIndex:0,commandIndex:0};for(;i<t.segments.length;){if(r>=e.length)return o;let s=t.segments[i],c=e[r];if(Le(c))break;let a=`${c}`,u=r<e.length-1?e[r+1]:null;if(i>0&&a===void 0)break;if(a&&u&&typeof u==`object`&&u.outlets===void 0){if(!rn(a,u,s))return o;r+=2}else{if(!rn(a,{},s))return o;r++}i++}return{match:!0,pathIndex:i,commandIndex:r}}function Jt(t,n,e){let r=t.segments.slice(0,n),i=0;for(;i<e.length;){let o=e[i];if(Le(o))return new m(r,wi(o.outlets));
1if(i===0&&ct(e[0])){let a=t.segments[n];r.push(new K(a.path,tn(e[0]))),i++;continue}let s=Le(o)?o.outlets[f]:`${o}`,c=i<e.length-1?e[i+1]:null;s&&c&&ct(c)?(r.push(new K(s,tn(c))),i+=2):(r.push(new K(s,{})),i++)}return new m(r,{})}function wi(t){let n={};return Object.entries(t).forEach(([e,r])=>{typeof r==`string`&&(r=[r]),r!==null&&(n[e]=Jt(new m([],{}),0,r))}),n}function tn(t){let n={};return Object.entries(t).forEach(([e,r])=>n[e]=`${r}`),n}function rn(t,n,e){return t==e.path&&F(n,e.parameters)}var fe=`imperative`;var R=(function(t){return t[t.NavigationStart=0]=`NavigationStart`,t[t.NavigationEnd=1]=`NavigationEnd`,t[t.NavigationCancel=2]=`NavigationCancel`,t[t.NavigationError=3]=`NavigationError`,t[t.RoutesRecognized=4]=`RoutesRecognized`,t[t.ResolveStart=5]=`ResolveStart`,t[t.ResolveEnd=6]=`ResolveEnd`,t[t.GuardsCheckStart=7]=`GuardsCheckStart`,t[t.GuardsCheckEnd=8]=`GuardsCheckEnd`,t[t.RouteConfigLoadStart=9]=`RouteConfigLoadStart`,t[t.RouteConfigLoadEnd=10]=`RouteConfigLoadEnd`,t[t.ChildActivationStart=11]=`ChildActivationStart`,t[t.ChildActivationEnd=12]=`ChildActivationEnd`,t[t.ActivationStart=13]=`ActivationStart`,t[t.ActivationEnd=14]=`ActivationEnd`,t[t.Scroll=15]=`Scroll`,t[t.NavigationSkipped=16]=`NavigationSkipped`,t})(R||{});var U=class{id;url;constructor(n,e){this.id=n,this.url=e}};var J=class extends U{type=R.NavigationStart;navigationTrigger;restoredState;constructor(n,e,r=`imperative`,i=null){super(n,e),this.navigationTrigger=r,this.restoredState=i}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}};var j=class extends U{urlAfterRedirects;type=R.NavigationEnd;constructor(n,e,r){super(n,e),this.urlAfterRedirects=r}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}};var b=(function(t){return t[t.Redirect=0]=`Redirect`,t[t.SupersededByNewNavigation=1]=`SupersededByNewNavigation`,t[t.NoDataFromResolver=2]=`NoDataFromResolver`,t[t.GuardRejected=3]=`GuardRejected`,t[t.Aborted=4]=`Aborted`,t})(b||{});var ve=(function(t){return t[t.IgnoredSameUrlNavigation=0]=`IgnoredSameUrlNavigation`,t[t.IgnoredByUrlHandlingStrategy=1]=`IgnoredByUrlHandlingStrategy`,t})(ve||{});var L=class extends U{reason;code;type=R.NavigationCancel;constructor(n,e,r,i){super(n,e),this.reason=r,this.code=i}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}};function wn(t){return t instanceof L&&(t.code===b.Redirect||t.code===b.SupersededByNewNavigation)}var H=class extends U{reason;code;type=R.NavigationSkipped;constructor(n,e,r,i){super(n,e),this.reason=r,this.code=i}};var se=class extends U{error;target;type=R.NavigationError;constructor(n,e,r,i){super(n,e),this.error=r,this.target=i}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}};var je=class extends U{urlAfterRedirects;state;type=R.RoutesRecognized;constructor(n,e,r,i){super(n,e),this.urlAfterRedirects=r,this.state=i}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}};var lt=class extends U{urlAfterRedirects;state;type=R.GuardsCheckStart;constructor(n,e,r,i){super(n,e),this.urlAfterRedirects=r,this.state=i}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}};var dt=class extends U{urlAfterRedirects;state;shouldActivate;type=R.GuardsCheckEnd;constructor(n,e,r,i,o){super(n,e),this.urlAfterRedirects=r,this.state=i,this.shouldActivate=o}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}};var ht=class extends U{urlAfterRedirects;state;type=R.ResolveStart;constructor(n,e,r,i){super(n,e),this.urlAfterRedirects=r,this.state=i}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}};var ft=class extends U{urlAfterRedirects;state;type=R.ResolveEnd;constructor(n,e,r,i){super(n,e),this.urlAfterRedirects=r,this.state=i}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}};var pt=class{route;type=R.RouteConfigLoadStart;constructor(n){this.route=n}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}};var gt=class{route;type=R.RouteConfigLoadEnd;constructor(n){this.route=n}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}};var vt=class{snapshot;type=R.ChildActivationStart;constructor(n){this.snapshot=n}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||``}')`}};var mt=class{snapshot;type=R.ChildActivationEnd;constructor(n){this.snapshot=n}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||``}')`}};var yt=class{snapshot;type=R.ActivationStart;constructor(n){this.snapshot=n}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||``}')`}};var Rt=class{snapshot;type=R.ActivationEnd;constructor(n){this.snapshot=n}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||``}')`}};var me=class{routerEvent;position;anchor;scrollBehavior;type=R.Scroll;constructor(n,e,r,i){this.routerEvent=n,this.position=e,this.anchor=r,this.scrollBehavior=i}toString(){let n=this.position?`${this.position[0]}, ${this.position[1]}`:null;return`Scroll(anchor: '${this.anchor}', position: '${n}')`}};var ye=class{};var xe=class{};var Re=class{url;navigationBehaviorOptions;constructor(n,e){this.url=n,this.navigationBehaviorOptions=e}};function bi(t){return!(t instanceof ye)&&!(t instanceof Re)&&!(t instanceof xe)}var St=class{rootInjector;outlet=null;route=null;children;attachRef=null;get injector(){return this.route?.snapshot._environmentInjector??this.rootInjector}constructor(n){this.rootInjector=n,this.children=new be(this.rootInjector)}};var be=(()=>{class t{rootInjector;contexts=new Map;constructor(e){this.rootInjector=e}onChildOutletCreated(e,r){let i=this.getOrCreateContext(e);i.outlet=r,this.contexts.set(e,i)}onChildOutletDestroyed(e){let r=this.getContext(e);r&&(r.outlet=null,r.attachRef=null)}onOutletDeactivated(){let e=this.contexts;return this.contexts=new Map,e}onOutletReAttached(e){this.contexts=e}getOrCreateContext(e){let r=this.getContext(e);return r||(r=new St(this.rootInjector),this.contexts.set(e,r)),r}getContext(e){return this.contexts.get(e)||null}static ɵfac=function(r){return new(r||t)(He$1(ve$1))};static ɵprov=ee({token:t,factory:t.ɵfac,providedIn:`root`})}return t})();
1var Ct=class{_root;constructor(n){this._root=n}get root(){return this._root.value}parent(n){let e=this.pathFromRoot(n);return e.length>1?e[e.length-2]:null}children(n){let e=Xt(n,this._root);return e?e.children.map(r=>r.value):[]}firstChild(n){let e=Xt(n,this._root);return e&&e.children.length>0?e.children[0].value:null}siblings(n){let e=er(n,this._root);return e.length<2?[]:e[e.length-2].children.map(i=>i.value).filter(i=>i!==n)}pathFromRoot(n){return er(n,this._root).map(e=>e.value)}};function Xt(t,n){if(t===n.value)return n;for(let e of n.children){let r=Xt(t,e);if(r)return r}return null}function er(t,n){if(t===n.value)return[n];for(let e of n.children){let r=er(t,e);if(r.length)return r.unshift(n),r}return[]}var _=class{value;children;constructor(n,e){this.value=n,this.children=e}toString(){return`TreeNode(${this.value})`}};function de(t){let n={};return t&&t.children.forEach(e=>n[e.value.outlet]=e),n}var ke=class extends Ct{snapshot;constructor(n,e){super(n),this.snapshot=e,hr(this,n)}toString(){return this.snapshot.toString()}};function bn(t,n){let e=Ii(t,n),r=new fr$1([new K(``,{})]),i=new fr$1({}),o=new fr$1({}),a=new G(r,i,new fr$1({}),new fr$1(``),o,f,t,e.root);return a.snapshot=e.root,new ke(new _(a,[]),e)}function Ii(t,n){return new $e(``,new _(new Se([],{},{},``,{},f,t,null,{},n),[]))}var G=class{urlSubject;paramsSubject;queryParamsSubject;fragmentSubject;dataSubject;outlet;component;snapshot;_futureSnapshot;_routerState;_paramMap;_queryParamMap;title;url;params;queryParams;fragment;data;resources;_localInjector;pending;paramsSignal;queryParamsSignal;paramMapSignal;queryParamMapSignal;fragmentSignal;dataSignal;constructor(n,e,r,i,o,s,c,a){this.urlSubject=n,this.paramsSubject=e,this.queryParamsSubject=r,this.fragmentSubject=i,this.dataSubject=o,this.outlet=s,this.component=c,this._futureSnapshot=a,this.title=this.dataSubject?.pipe(he$1(u=>u[Fe]))??Us(void 0),this.url=n,this.params=e,this.queryParams=r,this.fragment=i,this.data=o}get routeConfig(){return this._futureSnapshot.routeConfig}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap??=this.params.pipe(he$1(n=>oe(n))),this._paramMap}get queryParamMap(){return this._queryParamMap??=this.queryParams.pipe(he$1(n=>oe(n))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}_setPending(n){this._futureSnapshot=n,this.pending?.set(!0)}};var Ei=`always`;function dr(t,n,e){let r$2,{routeConfig:i}=t;return n!==null&&(e===`always`||i?.path===``||!n.component&&!n.routeConfig?.loadComponent)?r$2={params:r(r({},n.params),t.params),data:r(r({},n.data),t.data),resolve:r(r(r(r({},t.data),n.data),i?.data),t._resolvedData)}:r$2={params:r({},t.params),data:r({},t.data),resolve:r(r({},t.data),t._resolvedData??{})},i&&En(i)&&(r$2.resolve[Fe]=i.title),r$2}var Se=class{url;params;queryParams;fragment;data;outlet;component;routeConfig;_resolve;_resolvedData;_routerState;_paramMap;_queryParamMap;_environmentInjector;resources;get title(){return this.data?.[Fe]}constructor(n,e,r,i,o,s,c,a,u,l){this.url=n,this.params=e,this.queryParams=r,this.fragment=i,this.data=o,this.outlet=s,this.component=c,this.routeConfig=a,this._resolve=u,this._environmentInjector=l}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??=oe(this.params),this._paramMap}get queryParamMap(){return this._queryParamMap??=oe(this.queryParams),this._queryParamMap}toString(){return`Route(url:'${this.url.map(r=>r.toString()).join(`/`)}', path:'${this.routeConfig?this.routeConfig.path:``}')`}};var $e=class extends Ct{url;constructor(n,e){super(e),this.url=n,hr(this,e)}toString(){return In(this._root)}};
1function hr(t,n){n.value._routerState=t,n.children.forEach(e=>hr(t,e))}function In(t){let n=t.children.length>0?` { ${t.children.map(In).join(`, `)} } `:``;return`${t.value}${n}`}function Gt(t){if(t.snapshot){let n=t.snapshot,e=t._futureSnapshot;t.snapshot=e,F(n.queryParams,e.queryParams)||t.queryParamsSubject.next(e.queryParams),n.fragment!==e.fragment&&t.fragmentSubject.next(e.fragment),F(n.params,e.params)||t.paramsSubject.next(e.params),Jn(n.url,e.url)||t.urlSubject.next(e.url),F(n.data,e.data)||t.dataSubject.next(e.data)}else t.snapshot=t._futureSnapshot,t.dataSubject.next(t._futureSnapshot.data)}function tr(t,n){let e=F(t.params,n.params)&&ni(t.url,n.url),r=!t.parent!=!n.parent;return e&&!r&&(!t.parent||tr(t.parent,n.parent))}function En(t){return typeof t.title==`string`||t.title===null}var An=new x(``);var fr=(()=>{class t{activated=null;get activatedComponentRef(){return this.activated}_activatedRoute=null;name=f;activateEvents=new et;deactivateEvents=new et;attachEvents=new et;detachEvents=new et;routerOutletData=yH();parentContexts=C(be);location=C(Ss);changeDetector=C(TH);inputBinder=C(Et,{optional:!0});supportsBindingToComponentInputs=!0;ngOnChanges(e){if(e.name){let{firstChange:r,previousValue:i}=e.name;if(r)return;this.isTrackedInParentContexts(i)&&(this.deactivate(),this.parentContexts.onChildOutletDestroyed(i)),this.initializeOutletWithName()}}ngOnDestroy(){this.isTrackedInParentContexts(this.name)&&this.parentContexts.onChildOutletDestroyed(this.name),this.inputBinder?.unsubscribeFromRouteData(this)}isTrackedInParentContexts(e){return this.parentContexts.getContext(e)?.outlet===this}ngOnInit(){this.initializeOutletWithName()}initializeOutletWithName(){if(this.parentContexts.onChildOutletCreated(this.name,this),this.activated)return;let e=this.parentContexts.getContext(this.name);e?.route&&(e.attachRef?this.attach(e.attachRef,e.route):this.activateWith(e.route,e.injector))}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new N(4012,!1);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new N(4012,!1);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new N(4012,!1);this.location.detach();let e=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(e.instance),e}attach(e,r){this.activated=e,this._activatedRoute=r,this.location.insert(e.hostView),this.inputBinder?.bindActivatedRouteToOutletComponent(this,this.location.injector),this.attachEvents.emit(e.instance)}deactivate(){if(this.activated){let e=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(e)}}activateWith(e,r){if(this.isActivated)throw new N(4013,!1);this._activatedRoute=e;let i=this.location,s=e.snapshot.component,c=this.parentContexts.getOrCreateContext(this.name).children,a=new rr(e,c,i.injector,this.routerOutletData);this.activated=i.createComponent(s,{index:i.length,injector:a,environmentInjector:r}),this.changeDetector.markForCheck(),this.inputBinder?.bindActivatedRouteToOutletComponent(this,this.location.injector),this.activateEvents.emit(this.activated.instance)}static ɵfac=function(r){return new(r||t)};static ɵdir=Zw({type:t,selectors:[[`router-outlet`]],inputs:{name:`name`,routerOutletData:[1,`routerOutletData`]},outputs:{activateEvents:`activate`,deactivateEvents:`deactivate`,attachEvents:`attach`,detachEvents:`detach`},exportAs:[`outlet`],features:[Jv]})}return t})();var rr=class{route;childContexts;parent;outletData;constructor(n,e,r,i){this.route=n,this.childContexts=e,this.parent=r,this.outletData=i}get(n,e){return n===G?this.route:n===be?this.childContexts:n===An?this.outletData:this.parent.get(n,e)}};var Et=new x(``);var pr=(()=>{class t{static ɵfac=function(r){return new(r||t)};static ɵcmp=Ww({type:t,selectors:[[`ng-component`]],exportAs:[`emptyRouterOutlet`],decls:1,vars:0,template:function(r,i){r&1&&Gg(0,`router-outlet`)},dependencies:[fr],encapsulation:2,changeDetection:1})}return t})();function gr(t){let n=t.children&&t.children.map(gr),e=n?s(r({},t),{children:n}):r({},t);return!e.component&&!e.loadComponent&&(n||e.loadChildren)&&e.outlet&&e.outlet!==f&&(e.component=pr),e}function Ai(t,n,e){let r=new Set;return{newlyCreatedRoutes:r,state:new ke(ze(t,n._root,e?e._root:void 0,r),n)}}function ze(t,n,e,r){if(e&&t.shouldReuseRoute(n.value,e.value.snapshot)){let i=e.value;i._setPending(n.value);return new _(i,Mi(t,n,e,r))}else{if(t.shouldAttach(n.value)){let s=t.retrieve(n.value);if(s!==null){let c=s.route;
1return c.value._setPending(n.value),c.children=n.children.map(a=>ze(t,a,void 0,r)),c}}let i=Ti(n.value);i._setPending(n.value),r.add(i);return new _(i,n.children.map(s=>ze(t,s,void 0,r)))}}function Mi(t,n,e,r){return n.children.map(i=>{for(let o of e.children)if(t.shouldReuseRoute(i.value,o.value.snapshot))return ze(t,i,o,r);return ze(t,i,void 0,r)})}function Ti(t){return new G(new fr$1(t.url),new fr$1(t.params),new fr$1(t.queryParams),new fr$1(t.fragment),new fr$1(t.data),t.outlet,t.component,t)}var Ce=class{redirectTo;navigationBehaviorOptions;constructor(n,e){this.redirectTo=n,this.navigationBehaviorOptions=e}};var Mn=`ngNavigationCancelingError`;function wt(t,n){let{redirectTo:e,navigationBehaviorOptions:r}=Z(n)?{redirectTo:n,navigationBehaviorOptions:void 0}:n,i=Tn(!1,b.Redirect);return i.url=e,i.navigationBehaviorOptions=r,i}function Tn(t,n){let e=new Error(`NavigationCancelingError: ${t||``}`);return e[Mn]=!0,e.cancellationCode=n,e}function Ni(t){return Nn(t)&&Z(t.url)}function Nn(t){return!!t&&t[Mn]}var nr=class{routeReuseStrategy;futureState;currState;forwardEvent;inputBindingEnabled;constructor(n,e,r,i,o){this.routeReuseStrategy=n,this.futureState=e,this.currState=r,this.forwardEvent=i,this.inputBindingEnabled=o}activate(n){let e=this.futureState._root,r=this.currState?this.currState._root:null;this.deactivateChildRoutes(e,r,n),Gt(this.futureState.root),this.activateChildRoutes(e,r,n)}deactivateChildRoutes(n,e,r){let i=de(e);n.children.forEach(o=>{let s=o.value.outlet;this.deactivateRoutes(o,i[s],r),delete i[s]}),Object.values(i).forEach(o=>{this.deactivateRouteAndItsChildren(o,r)})}deactivateRoutes(n,e,r){let i=n.value,o=e?e.value:null;if(i===o)if(i.component){let s=r.getContext(i.outlet);s&&this.deactivateChildRoutes(n,e,s.children)}else this.deactivateChildRoutes(n,e,r);else o&&this.deactivateRouteAndItsChildren(e,r)}deactivateRouteAndItsChildren(n,e){n.value.component&&this.routeReuseStrategy.shouldDetach(n.value.snapshot)?this.detachAndStoreRouteSubtree(n,e):this.deactivateRouteAndOutlet(n,e)}detachAndStoreRouteSubtree(n,e){let r=e.getContext(n.value.outlet),i=r&&n.value.component?r.children:e,o=de(n);for(let s of Object.values(o))this.deactivateRouteAndItsChildren(s,i);if(r&&r.outlet){let s=r.outlet.detach(),c=r.children.onOutletDeactivated();this.routeReuseStrategy.store(n.value.snapshot,{componentRef:s,route:n,contexts:c})}}deactivateRouteAndOutlet(n,e){let r=e.getContext(n.value.outlet),i=r&&n.value.component?r.children:e,o=de(n);for(let s of Object.values(o))this.deactivateRouteAndItsChildren(s,i);r&&(r.outlet&&(r.outlet.deactivate(),r.children.onOutletDeactivated()),r.attachRef=null,r.route=null),n.value._localInjector?.destroy()}activateChildRoutes(n,e,r){let i=de(e);n.children.forEach(o=>{this.activateRoutes(o,i[o.value.outlet],r),this.forwardEvent(new Rt(o.value.snapshot))}),n.children.length&&this.forwardEvent(new mt(n.value.snapshot))}activateRoutes(n,e,r){let i=n.value,o=e?e.value:null;if(Gt(i),i===o)if(i.component){let s=r.getOrCreateContext(i.outlet);this.activateChildRoutes(n,e,s.children)}else this.activateChildRoutes(n,e,r);else if(i.component){let s=r.getOrCreateContext(i.outlet);if(this.routeReuseStrategy.shouldAttach(i.snapshot)){let c=this.routeReuseStrategy.retrieve(i.snapshot);this.routeReuseStrategy.store(i.snapshot,null),s.children.onOutletReAttached(c.contexts),s.attachRef=c.componentRef,s.route=c.route.value,s.outlet&&s.outlet.attach(c.componentRef,c.route.value),Gt(c.route.value),this.activateChildRoutes(n,null,s.children)}else s.attachRef=null,s.route=i,s.outlet&&s.outlet.activateWith(i,s.injector),this.activateChildRoutes(n,null,s.children)}else this.activateChildRoutes(n,null,r)}};var bt=class{path;route;constructor(n){this.path=n,this.route=this.path[this.path.length-1]}};var pe=class{component;route;constructor(n,e){this.component=n,this.route=e}};function Di(t,n,e){let r=t._root;return Ue(r,n?n._root:null,e,[r.value])}function _i(t){let n=t.routeConfig?t.routeConfig.canActivateChild:null;return!n||n.length===0?null:{node:t,guards:n}}function Ie(t,n){let e=Symbol(),r=n.get(t,e);return r===e?typeof t==`function`&&!rv(t)?t:n.get(t):r}function Ue(t,n,e,r,i={canDeactivateChecks:[],canActivateChecks:[]}){let o=de(n);
1return t.children.forEach(s=>{Ui(s,o[s.value.outlet],e,r.concat([s.value]),i),delete o[s.value.outlet]}),Object.entries(o).forEach(([s,c])=>Pe(c,e.getContext(s),e,i)),i}function Ui(t,n,e,r,i={canDeactivateChecks:[],canActivateChecks:[]}){let o=t.value,s=n?n.value:null,c=e?e.getContext(t.value.outlet):null;if(s&&o.routeConfig===s.routeConfig){let a=Oi(s,o,o.routeConfig.runGuardsAndResolvers);a?i.canActivateChecks.push(new bt(r)):(o.data=s.data,o._resolvedData=s._resolvedData),o.component?Ue(t,n,c?c.children:null,r,i):Ue(t,n,e,r,i),a&&c&&c.outlet&&c.outlet.isActivated&&i.canDeactivateChecks.push(new pe(c.outlet.component,s))}else s&&Pe(n,c,e,i),i.canActivateChecks.push(new bt(r)),o.component?Ue(t,null,c?c.children:null,r,i):Ue(t,null,e,r,i);return i}function Oi(t,n,e){if(typeof e==`function`)return yi$1(n._environmentInjector,()=>e(t,n));switch(e){case`pathParamsChange`:return!ie(t.url,n.url);case`pathParamsOrQueryParamsChange`:return!ie(t.url,n.url)||!F(t.queryParams,n.queryParams);case`always`:return!0;case`paramsOrQueryParamsChange`:return!tr(t,n)||!F(t.queryParams,n.queryParams);default:return!tr(t,n)}}function Pe(t,n,e,r){let i=de(t),o=t.value;Object.entries(i).forEach(([s,c])=>{o.component?n?Pe(c,n.children.getContext(s),n.children,r):Pe(c,null,null,r):Pe(c,e?e.getContext(s):null,e,r)}),o.component?n&&n.outlet&&n.outlet.isActivated?r.canDeactivateChecks.push(new pe(n.outlet.component,o)):r.canDeactivateChecks.push(new pe(null,o)):r.canDeactivateChecks.push(new pe(null,o))}function He(t){return typeof t==`function`}function Pi(t){return typeof t==`boolean`}function Li(t){return t&&He(t.canLoad)}function ji(t){return t&&He(t.canActivate)}function xi(t){return t&&He(t.canActivateChild)}function ki(t){return t&&He(t.canDeactivate)}function $i(t){return t&&He(t.canMatch)}function Dn(t){return t instanceof Qe||t?.name===`EmptyError`}var nt=Symbol(`INITIAL_VALUE`);function we(){return ed(t=>Ey(t.map(n=>n.pipe(Ft(1),Xu(nt)))).pipe(he$1(n=>{for(let e of n)if(e!==!0){if(e===nt)return nt;if(e===!1||zi(e))return e}return!0}),_n$1(n=>n!==nt),Ft(1)))}function zi(t){return Z(t)||t instanceof Ce}function _n(t){return t.aborted?Us(void 0).pipe(Ft(1)):new _$1(n=>{let e=()=>{n.next(),n.complete()};return t.addEventListener(`abort`,e),()=>t.removeEventListener(`abort`,e)})}function Un(t){return hd(_n(t))}function qi(t){return Ie$1(n=>{let{targetSnapshot:e,currentSnapshot:r$3,guards:{canActivateChecks:i,canDeactivateChecks:o}}=n;return o.length===0&&i.length===0?Us(s(r({},n),{guardsResult:!0})):Fi(o,e,r$3).pipe(Ie$1(s=>s&&Pi(s)?Hi(e,i,t):Us(s)),he$1(s$1=>s(r({},n),{guardsResult:s$1})))})}function Fi(t,n,e){return Pe$1(t).pipe(Ie$1(r=>Qi(r.component,r.route,e,n)),ud(r=>r!==!0,!0))}function Hi(t,n,e){return Pe$1(n).pipe(Gu(r=>Mn$1(Vi(r.route.parent,e),Bi(r.route,e),Wi(t,r.path),Gi(t,r.route))),ud(r=>r!==!0,!0))}function Bi(t,n){return t!==null&&n&&n(new yt(t)),Us(!0)}function Vi(t,n){return t!==null&&n&&n(new vt(t)),Us(!0)}function Gi(t,n){let e=n.routeConfig?n.routeConfig.canActivate:null;if(!e||e.length===0)return Us(!0);return Us(e.map(i=>Ks(()=>{let o=n._environmentInjector,s=Ie(i,o);return ae(ji(s)?s.canActivate(n,t):yi$1(o,()=>s(n,t))).pipe(ud())}))).pipe(we())}function Wi(t,n){let e=n[n.length-1];return Us(n.slice(0,n.length-1).reverse().map(o=>_i(o)).filter(o=>o!==null).map(o=>Ks(()=>{return Us(o.guards.map(c=>{let a=o.node._environmentInjector,u=Ie(c,a);return ae(xi(u)?u.canActivateChild(e,t):yi$1(a,()=>u(e,t))).pipe(ud())})).pipe(we())}))).pipe(we())}function Qi(t,n,e,r){let i=n&&n.routeConfig?n.routeConfig.canDeactivate:null;if(!i||i.length===0)return Us(!0);return Us(i.map(s=>{let c=n._environmentInjector,a=Ie(s,c);return ae(ki(a)?a.canDeactivate(t,n,e,r):yi$1(c,()=>a(t,n,e,r))).pipe(ud())})).pipe(we())}function Ki(t,n,e,r,i){let o=n.canLoad;if(o===void 0||o.length===0)return Us(!0);return Us(o.map(c=>{let a=Ie(c,t),l=ae(Li(a)?a.canLoad(n,e):yi$1(t,()=>a(n,e)));return i?l.pipe(Un(i)):l})).pipe(we(),On(r))}function On(t){return Hs(nd(n=>{if(typeof n!=`boolean`)throw wt(t,n)}),he$1(n=>n===!0))}function Yi(t,n,e,r,i,o){let s=n.canMatch;if(!s||s.length===0)return Us(!0);return Us(s.map(a=>{let u=Ie(a,t);return ae($i(u)?u.canMatch(n,e,i):yi$1(t,()=>u(n,e,i))).pipe(Un(o))})).pipe(we(),On(r))}
1var V=class t extends Error{segmentGroup;constructor(n){super(),this.segmentGroup=n||null,Object.setPrototypeOf(this,t.prototype)}};var qe=class t extends Error{urlTree;constructor(n){super(),this.urlTree=n,Object.setPrototypeOf(this,t.prototype)}};function Zi(t){throw new N(4e3,!1)}function Ji(t){throw Tn(!1,b.GuardRejected)}var ir=class{urlSerializer;urlTree;constructor(n,e){this.urlSerializer=n,this.urlTree=e}async lineralizeSegments(n,e){let r=[],i=e.root;for(;;){if(r=r.concat(i.segments),i.numberOfChildren===0)return r;if(i.numberOfChildren>1||!i.children[f])throw Zi(`${n.redirectTo}`);i=i.children[f]}}async applyRedirectCommands(n,e,r,i,o){let s=await Xi(e,i,o);if(s instanceof E)throw new qe(s);let c=this.applyRedirectCreateUrlTree(s,this.urlSerializer.parse(s),n,r);if(s[0]===`/`)throw new qe(c);return c}applyRedirectCreateUrlTree(n,e,r,i){return new E(this.createSegmentGroup(n,e.root,r,i),this.createQueryParams(e.queryParams,this.urlTree.queryParams),e.fragment)}createQueryParams(n,e){let r={};return Object.entries(n).forEach(([i,o])=>{if(typeof o==`string`&&o[0]===`:`){let c=o.substring(1);r[i]=e[c]}else r[i]=o}),r}createSegmentGroup(n,e,r,i){let o=this.createSegments(n,e.segments,r,i),s=Object.create(null);return Object.entries(e.children).forEach(([c,a])=>{s[c]=this.createSegmentGroup(n,a,r,i)}),new m(o,s)}createSegments(n,e,r,i){return e.map(o=>o.path[0]===`:`?this.findPosParam(n,o,i):this.findOrReturn(o,r))}findPosParam(n,e,r){let i=r[e.path.substring(1)];if(!i)throw new N(4001,!1);return i}findOrReturn(n,e){let r=0;for(let i of e){if(i.path===n.path)return e.splice(r),i;r++}return n}};function Xi(t,n,e){if(typeof t==`string`)return Promise.resolve(t);let r=t;return at(ae(yi$1(e,()=>r(n))))}function eo(t,n){return t.providers&&!t._injector&&(t._injector=eu(t.providers,n,`Route: ${t.path}`)),t._injector??n}function z(t){return t.outlet||f}function to(t,n){let e=t.filter(r=>z(r)===n);return e.push(...t.filter(r=>z(r)!==n)),e}var or={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function Pn(t){return{routeConfig:t.routeConfig,url:t.url,params:t.params,queryParams:t.queryParams,fragment:t.fragment,data:t.data,outlet:t.outlet,title:t.title,paramMap:t.paramMap,queryParamMap:t.queryParamMap}}function ro(t,n,e,r$4,i,o,s){let c=Ln(t,n,e);if(!c.matched)return Us(c);let a=Pn(o(c));return r$4=eo(n,r$4),Yi(r$4,n,e,i,a,s).pipe(he$1(u=>u===!0?c:r({},or)))}function Ln(t,n,e){if(n.path===``)return n.pathMatch===`full`&&(t.hasChildren()||e.length>0)?r({},or):{matched:!0,consumedSegments:[],remainingSegments:e,parameters:{},positionalParamSegments:{}};
1let i=(n.matcher||sn)(e,t,n);if(!i)return r({},or);let o={};Object.entries(i.posParams??{}).forEach(([c,a])=>{o[c]=a.path});let s=i.consumed.length>0?r(r({},o),i.consumed[i.consumed.length-1].parameters):o;return{matched:!0,consumedSegments:i.consumed,remainingSegments:e.slice(i.consumed.length),parameters:s,positionalParamSegments:i.posParams??{}}}function nn(t,n,e,r,i){return e.length>0&&oo(t,e,r,i)?{segmentGroup:new m(n,io(r,new m(e,t.children))),slicedSegments:[]}:e.length===0&&so(t,e,r)?{segmentGroup:new m(t.segments,no(t,e,r,t.children)),slicedSegments:e}:{segmentGroup:new m(t.segments,t.children),slicedSegments:e}}function no(t,n,e,r$5){let i={};for(let o of e)if(At(t,n,o)&&!r$5[z(o)]){let s=new m([],{});i[z(o)]=s}return r(r({},r$5),i)}function io(t,n){let e={};e[f]=n;for(let r of t)if(r.path===``&&z(r)!==f){let i=new m([],{});e[z(r)]=i}return e}function oo(t,n,e,r){return e.some(i=>!At(t,n,i)||!(z(i)!==f)?!1:!(r!==void 0&&z(i)===r))}function so(t,n,e){return e.some(r=>At(t,n,r))}function At(t,n,e){return(t.hasChildren()||n.length>0)&&e.pathMatch===`full`?!1:e.path===``}function ao(t,n,e){return n.length===0&&!t.children[e]}var sr=class{};async function co(t,n,e,r,i,o,s,c){return new ar(t,n,e,r,i,s,o,c).recognize()}var uo=31;var ar=class{injector;configLoader;rootComponentType;config;urlTree;paramsInheritanceStrategy;urlSerializer;abortSignal;applyRedirects;absoluteRedirectCount=0;allowRedirects=!0;constructor(n,e,r,i,o,s,c,a){this.injector=n,this.configLoader=e,this.rootComponentType=r,this.config=i,this.urlTree=o,this.paramsInheritanceStrategy=s,this.urlSerializer=c,this.abortSignal=a,this.applyRedirects=new ir(this.urlSerializer,this.urlTree)}noMatchError(n){return new N(4002,`'${n.segmentGroup}'`)}async recognize(){let n=nn(this.urlTree.root,[],[],this.config).segmentGroup,{children:e,rootSnapshot:r}=await this.match(n),o=new $e(``,new _(r,e)),s=mn(r,[],this.urlTree.queryParams,this.urlTree.fragment);return s.queryParams=this.urlTree.queryParams,o.url=this.urlSerializer.serialize(s),{state:o,tree:s}}async match(n){let e=new Se([],Object.freeze({}),Object.freeze(r({},this.urlTree.queryParams)),this.urlTree.fragment,Object.freeze({}),f,this.rootComponentType,null,{},this.injector);try{return{children:await this.processSegmentGroup(this.injector,this.config,n,f,e),rootSnapshot:e}}catch(r){if(r instanceof qe)return this.urlTree=r.urlTree,this.match(r.urlTree.root);throw r instanceof V?this.noMatchError(r):r}}async processSegmentGroup(n,e,r,i,o){if(r.segments.length===0&&r.hasChildren())return this.processChildren(n,e,r,o);let s=await this.processSegment(n,e,r,r.segments,i,!0,o);return s instanceof _?[s]:[]}async processChildren(n,e,r,i){let o=[];for(let a of Object.keys(r.children))a===`primary`?o.unshift(a):o.push(a);let s=[];for(let a of o){let u=r.children[a],l=to(e,a),v=await this.processSegmentGroup(n,l,u,a,i);s.push(...v)}let c=jn(s);return lo(c),c}async processSegment(n,e,r,i,o,s,c){for(let a of e)try{return await this.processSegmentAgainstRoute(a._injector??n,e,a,r,i,o,s,c)}catch(u){if(u instanceof V||Dn(u))continue;throw u}if(ao(r,i,o))return new sr;throw new V(r)}async processSegmentAgainstRoute(n,e,r,i,o,s,c,a){if(z(r)!==s&&(s===f||!At(i,o,r)))throw new V(i);if(r.redirectTo===void 0)return this.matchSegmentAgainstRoute(n,i,r,o,s,a);if(this.allowRedirects&&c)return this.expandSegmentAgainstRouteUsingRedirect(n,i,e,r,o,s,a);throw new V(i)}async expandSegmentAgainstRouteUsingRedirect(n,e,r,i,o,s,c){let{matched:a,parameters:u,consumedSegments:l,positionalParamSegments:v,remainingSegments:g}=Ln(e,i,o);if(!a)throw new V(e);typeof i.redirectTo==`string`&&i.redirectTo[0]===`/`&&(this.absoluteRedirectCount++,this.absoluteRedirectCount>uo&&(this.allowRedirects=!1));let w=this.createSnapshot(n,i,o,u,c);if(this.abortSignal.aborted)throw new Error(this.abortSignal.reason);let x=await this.applyRedirects.applyRedirectCommands(l,i.redirectTo,v,Pn(w),n),X=await this.applyRedirects.lineralizeSegments(i,x);return this.processSegment(n,r,e,X.concat(g),s,!1,c)}createSnapshot(n,e,r$6,i,o){let s=new Se(r$6,i,Object.freeze(r({},this.urlTree.queryParams)),this.urlTree.fragment,fo(e),z(e),e.component??e._loadedComponent??null,e,po(e),n),c=dr(s,o,this.paramsInheritanceStrategy);return s.params=Object.freeze(c.params),s.data=Object.freeze(c.data),s}
1async matchSegmentAgainstRoute(n,e,r,i,o,s){if(this.abortSignal.aborted)throw new Error(this.abortSignal.reason);let c=ee=>this.createSnapshot(n,r,ee.consumedSegments,ee.parameters,s),a=await at(ro(e,r,i,n,this.urlSerializer,c,this.abortSignal));if(r.path===`**`&&(e.children={}),!a?.matched)throw new V(e);n=r._injector??n;let{routes:u}=await this.getChildConfig(n,r,i),l=r._loadedInjector??n,{parameters:v,consumedSegments:g,remainingSegments:w}=a,x=this.createSnapshot(n,r,g,v,s),{segmentGroup:X,slicedSegments:Ae}=nn(e,g,w,u,o);if(Ae.length===0&&X.hasChildren())return new _(x,await this.processChildren(l,u,X,x));if(u.length===0&&Ae.length===0)return new _(x,[]);let Dt=z(r)===o,Ve=await this.processSegment(l,u,X,Ae,Dt?f:o,!0,x);return new _(x,Ve instanceof _?[Ve]:[])}async getChildConfig(n,e,r){if(e.children)return{routes:e.children,injector:n};if(e.loadChildren){if(e._loadedRoutes!==void 0){let o=e._loadedNgModuleFactory;return o&&!e._loadedInjector&&(e._loadedInjector=o.create(n).injector),{routes:e._loadedRoutes,injector:e._loadedInjector}}if(this.abortSignal.aborted)throw new Error(this.abortSignal.reason);if(await at(Ki(n,e,r,this.urlSerializer,this.abortSignal))){let o=await this.configLoader.loadChildren(n,e);return e._loadedRoutes=o.routes,e._loadedInjector=o.injector,e._loadedNgModuleFactory=o.factory,o}throw Ji(e)}return{routes:[],injector:n}}};function lo(t){t.sort((n,e)=>n.value.outlet===f?-1:e.value.outlet===f?1:n.value.outlet.localeCompare(e.value.outlet))}function ho(t){let n=t.value.routeConfig;return n&&n.path===``}function jn(t){let n=[],e=new Set;for(let r of t){if(!ho(r)){n.push(r);continue}let i=n.find(o=>r.value.routeConfig===o.value.routeConfig);i!==void 0?(i.children.push(...r.children),e.add(i)):n.push(r)}for(let r of e){let i=jn(r.children);n.push(new _(r.value,i))}return n.filter(r=>!e.has(r))}function fo(t){return t.data||{}}function po(t){return t.resolve||{}}function go(t,n,e,r$7,i,o,s$2){return Ie$1(async c=>{let{state:a,tree:u}=await co(t,n,e,r$7,c.extractedUrl,i,o,s$2);return s(r({},c),{targetSnapshot:a,urlAfterRedirects:u})})}function vo(t){return Ie$1(n=>{let{targetSnapshot:e,guards:{canActivateChecks:r}}=n;if(!r.length)return Us(n);let i=new Set(r.map(c=>c.route)),o=new Set;for(let c of i)if(!o.has(c))for(let a of xn(c))o.add(a);let s=0;return Pe$1(o).pipe(Gu(c=>i.has(c)?mo(c,e,t):(c.data=dr(c,c.parent,t).resolve,Us(void 0))),nd(()=>s++),Uy(1),Ie$1(c=>s===o.size?Us(n):Ye))})}function xn(t){return[t,...t.children.map(e=>xn(e)).flat()]}function mo(t,n,e){let r$8=t.routeConfig,i=t._resolve;return r$8?.title!==void 0&&!En(r$8)&&(i[Fe]=r$8.title),Ks(()=>(t.data=dr(t,t.parent,e).resolve,yo(i,t,n).pipe(he$1(o=>(t._resolvedData=o,t.data=r(r({},t.data),o),null)))))}function yo(t,n,e){let r=Qt(t);if(r.length===0)return Us({});let i={};return Pe$1(r).pipe(Ie$1(o=>Ro(t[o],n,e).pipe(ud(),nd(s=>{if(s instanceof Ce)throw wt(new Y,s);i[o]=s}))),Uy(1),he$1(()=>i),Qs(o=>Dn(o)?Ye:Zs(o)))}function Ro(t,n,e){let r=n._environmentInjector,i=Ie(t,r);return ae(i.resolve?i.resolve(n,e):yi$1(r,()=>i(n,e)))}var kn=new x(``);function cr(t){return ed(n=>{let e=t(n);return e?Pe$1(e).pipe(he$1(()=>n)):Us(n)})}var vr=(()=>{class t{buildTitle(e){let r,i=e.root;for(;i!==void 0;)r=this.getResolvedTitleForRoute(i)??r,i=i.children.find(o=>o.outlet===f);return r}getResolvedTitleForRoute(e){return e.data[Fe]}static ɵfac=function(r){return new(r||t)};static ɵprov=lo$1({token:t,factory:()=>C($n)})}return t})();var $n=(()=>{class t extends vr{title;constructor(e){super(),this.title=e}updateTitle(e){let r=this.buildTitle(e);r!==void 0&&this.title.setTitle(r)}static ɵfac=function(r){return new(r||t)(He$1(vo$2))};static ɵprov=ee({token:t,factory:t.ɵfac,providedIn:`root`})}return t})();var Ee=new x(``,{factory:()=>({})});var Be=new x(``);var zn=(()=>{class t{componentLoaders=new WeakMap;childrenLoaders=new WeakMap;onLoadStartListener;onLoadEndListener;compiler=C(CC);async loadComponent(e,r){if(this.componentLoaders.get(r))return this.componentLoaders.get(r);if(r._loadedComponent)return Promise.resolve(r._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(r);let i=(async()=>{try{let s=await Fn(gH(await cn(yi$1(e,()=>r.loadComponent()))));return this.onLoadEndListener&&this.onLoadEndListener(r),r._loadedComponent=s,s}finally{this.componentLoaders.delete(r)}})();return this.componentLoaders.set(r,i),i}loadChildren(e,r){if(this.childrenLoaders.get(r))return this.childrenLoaders.get(r);if(r._loadedRoutes)return Promise.resolve({routes:r._loadedRoutes,injector:r._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(r);let i=(async()=>{try{let o=await qn(r,this.compiler,e,this.onLoadEndListener);return r._loadedRoutes=o.routes,r._loadedInjector=o.injector,r._loadedNgModuleFactory=o.factory,o}finally{this.childrenLoaders.delete(r)}})();return this.childrenLoaders.set(r,i),i}static ɵfac=function(r){return new(r||t)};static ɵprov=lo$1({token:t,factory:t.ɵfac})}return t})();async function qn(t,n,e,r){let o=await Fn(gH(await cn(yi$1(e,()=>t.loadChildren())))),s;o instanceof _g||Array.isArray(o)?s=o:s=await n.compileModuleAsync(o),r&&r(t);let c,a,l;return Array.isArray(s)?a=s:(c=s.create(e).injector,l=s,a=c.get(Be,[],{optional:!0,self:!0}).flat()),{routes:a.map(gr),injector:c,factory:l}}async function Fn(t){return t}var Mt=(()=>{class t{static ɵfac=function(r){return new(r||t)};static ɵprov=lo$1({token:t,factory:()=>C(So)})}return t})();var So=(()=>{class t{shouldProcessUrl(e){return!0}extract(e){return e}merge(e,r){return e}static ɵfac=function(r){return new(r||t)};static ɵprov=lo$1({token:t,factory:t.ɵfac})}return t})();var Hn=new x(``);var Co=()=>{};var Bn=new x(``);var mr=(()=>{class t{currentNavigation=Oi$1(null,{equal:()=>!1});currentTransition=null;lastSuccessfulNavigation=Oi$1(null);events=new K$1;
1transitionAbortWithErrorSubject=new K$1;configLoader=C(zn);environmentInjector=C(ve$1);destroyRef=C(xe$1);urlSerializer=C(ce);rootContexts=C(be);location=C(Qe$1);inputBindingEnabled=C(Et,{optional:!0})!==null;titleStrategy=C(vr);options=C(Ee,{optional:!0})||{};paramsInheritanceStrategy=this.options.paramsInheritanceStrategy||Ei;urlHandlingStrategy=C(Mt);createViewTransition=C(Hn,{optional:!0});navigationErrorHandler=C(Bn,{optional:!0});routerResourcesFeature=C(kn,{optional:!0});navigationId=0;get hasRequestedNavigation(){return this.navigationId!==0}transitions;afterPreactivation=()=>Us(void 0);rootComponentType=null;destroyed=!1;constructor(){let e=i=>this.events.next(new pt(i)),r=i=>this.events.next(new gt(i));this.configLoader.onLoadEndListener=r,this.configLoader.onLoadStartListener=e,this.destroyRef.onDestroy(()=>{this.destroyed=!0})}complete(){this.transitions?.complete()}handleNavigationRequest(e){let r$9=++this.navigationId;Bm(()=>{this.transitions?.next(s(r({},e),{extractedUrl:this.urlHandlingStrategy.extract(e.rawUrl),targetSnapshot:null,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null,id:r$9,routesRecognizeHandler:{},beforeActivateHandler:{}}))})}setupNavigations(e){return this.transitions=new fr$1(null),this.transitions.pipe(_n$1(r=>r!==null),ed(r$10=>{let i=!0,o=!1,s$3=new AbortController,c=()=>!o&&this.currentTransition?.id===r$10.id;return Us(r$10).pipe(ed(a=>{if(this.navigationId>r$10.id)return this.cancelNavigationTransition(r$10,``,b.SupersededByNewNavigation),Ye;this.currentTransition=r$10;let u=this.lastSuccessfulNavigation();this.currentNavigation.set({id:a.id,initialUrl:a.rawUrl,extractedUrl:a.extractedUrl,targetBrowserUrl:typeof a.extras.browserUrl==`string`?this.urlSerializer.parse(a.extras.browserUrl):a.extras.browserUrl,trigger:a.source,extras:a.extras,previousNavigation:u?s(r({},u),{previousNavigation:null}):null,abort:()=>s$3.abort(),routesRecognizeHandler:a.routesRecognizeHandler,beforeActivateHandler:a.beforeActivateHandler});let l=!e.navigated||this.isUpdatingInternalState()||this.isUpdatedBrowserUrl(),v=a.extras.onSameUrlNavigation??e.onSameUrlNavigation;if(!l&&v!==`reload`)return this.events.next(new H(a.id,this.urlSerializer.serialize(a.rawUrl),``,ve.IgnoredSameUrlNavigation)),a.resolve(!1),Ye;if(this.urlHandlingStrategy.shouldProcessUrl(a.rawUrl))return Us(a).pipe(ed(g=>(this.events.next(new J(g.id,this.urlSerializer.serialize(g.extractedUrl),g.source,g.restoredState)),g.id!==this.navigationId?Ye:Promise.resolve(g))),go(this.environmentInjector,this.configLoader,this.rootComponentType,e.config,this.urlSerializer,this.paramsInheritanceStrategy,s$3.signal),nd(g=>{r$10.targetSnapshot=g.targetSnapshot,r$10.urlAfterRedirects=g.urlAfterRedirects,this.currentNavigation.update(w=>(w.finalUrl=g.urlAfterRedirects,w)),this.events.next(new xe)}),ed(g=>Pe$1(r$10.routesRecognizeHandler.deferredHandle??Us(void 0)).pipe(he$1(()=>g))),nd(()=>{let g=new je(a.id,this.urlSerializer.serialize(a.extractedUrl),this.urlSerializer.serialize(a.urlAfterRedirects),a.targetSnapshot);this.events.next(g)}));if(l&&this.urlHandlingStrategy.shouldProcessUrl(a.currentRawUrl)){let{id:g,extractedUrl:w,source:x,restoredState:X,extras:Ae}=a,Dt=new J(g,this.urlSerializer.serialize(w),x,X);this.events.next(Dt);let Ve=bn(this.rootComponentType,this.environmentInjector).snapshot;return this.currentTransition=r$10=s(r({},a),{targetSnapshot:Ve,urlAfterRedirects:w,extras:s(r({},Ae),{skipLocationChange:!1,replaceUrl:!1})}),this.currentNavigation.update(ee=>(ee.finalUrl=w,ee)),Us(r$10)}else return this.events.next(new H(a.id,this.urlSerializer.serialize(a.extractedUrl),``,ve.IgnoredByUrlHandlingStrategy)),a.resolve(!1),Ye}),he$1(a=>{let u=new lt(a.id,this.urlSerializer.serialize(a.extractedUrl),this.urlSerializer.serialize(a.urlAfterRedirects),a.targetSnapshot);return this.events.next(u),this.currentTransition=r$10=s(r({},a),{guards:Di(a.targetSnapshot,a.currentSnapshot,this.rootContexts)}),r$10}),qi(a=>this.events.next(a)),ed(a=>{if(r$10.guardsResult=a.guardsResult,a.guardsResult&&typeof a.guardsResult!=`boolean`)throw wt(this.urlSerializer,a.guardsResult);
1let u=new dt(a.id,this.urlSerializer.serialize(a.extractedUrl),this.urlSerializer.serialize(a.urlAfterRedirects),a.targetSnapshot,!!a.guardsResult);if(this.events.next(u),!c())return Ye;if(!a.guardsResult)return this.cancelNavigationTransition(a,``,b.GuardRejected),Ye;if(a.guards.canActivateChecks.length===0)return Us(a);let l=new ht(a.id,this.urlSerializer.serialize(a.extractedUrl),this.urlSerializer.serialize(a.urlAfterRedirects),a.targetSnapshot);if(this.events.next(l),!c())return Ye;let v=!1;return Us(a).pipe(vo(this.paramsInheritanceStrategy),nd({next:()=>{v=!0;let g=new ft(a.id,this.urlSerializer.serialize(a.extractedUrl),this.urlSerializer.serialize(a.urlAfterRedirects),a.targetSnapshot);this.events.next(g)},complete:()=>{v||this.cancelNavigationTransition(a,``,b.NoDataFromResolver)}}))}),cr(a=>{let u=v=>{let g=[];if(v.routeConfig?._loadedComponent)v.component=v.routeConfig?._loadedComponent;else if(v.routeConfig?.loadComponent){let w=v._environmentInjector;g.push(this.configLoader.loadComponent(w,v.routeConfig).then(x=>{v.component=x}))}for(let w of v.children)g.push(...u(w));return g},l=u(a.targetSnapshot.root);return l.length===0?Us(a):Pe$1(Promise.all(l).then(()=>a))}),ed(a=>{let{newlyCreatedRoutes:u,state:l}=Ai(e.routeReuseStrategy,a.targetSnapshot,a.currentRouterState);return this.currentTransition=r$10=a=s(r({},a),{targetRouterState:l,newlyCreatedRoutes:u}),this.currentNavigation.update(v=>(v.targetRouterState=l,v)),Us(a)}),this.routerResourcesFeature?.setupAndRunResources(s$3.signal)??(a=>a),cr(()=>this.afterPreactivation()),ed(()=>{let{currentSnapshot:a,targetSnapshot:u}=r$10,l=this.createViewTransition?.(this.environmentInjector,a.root,u.root,r$10.hasUAVisualTransition);return l?Pe$1(l).pipe(he$1(()=>r$10)):Us(r$10)}),Ft(1),ed(a=>{i=!1,this.events.next(new ye);let u=r$10.beforeActivateHandler.deferredHandle;return u?Pe$1(u.then(()=>a)):Us(a)}),nd(a=>{new nr(e.routeReuseStrategy,r$10.targetRouterState,r$10.currentRouterState,u=>this.events.next(u),this.inputBindingEnabled).activate(this.rootContexts),a.newlyCreatedRoutes?.clear(),c()&&(Vn(a.targetRouterState),o=!0,this.currentNavigation.update(u=>(u.abort=Co,u)),this.lastSuccessfulNavigation.set(Bm(this.currentNavigation)),this.events.next(new j(a.id,this.urlSerializer.serialize(a.extractedUrl),this.urlSerializer.serialize(a.urlAfterRedirects))),this.titleStrategy?.updateTitle(a.targetRouterState.snapshot),a.resolve(!0))}),hd(_n(s$3.signal).pipe(_n$1(()=>!o&&i),nd(()=>{this.cancelNavigationTransition(r$10,s$3.signal.reason+``,b.Aborted)}))),nd({complete:()=>{o=!0}}),hd(this.transitionAbortWithErrorSubject.pipe(nd(a=>{throw a}))),ld(()=>{s$3.abort(),o||this.cancelNavigationTransition(r$10,``,b.SupersededByNewNavigation),this.currentTransition?.id===r$10.id&&(this.currentNavigation.set(null),this.currentTransition=null)}),Qs(a=>{if(o=!0,on(r$10),this.destroyed)return r$10.resolve(!1),Ye;if(Nn(a))this.events.next(new L(r$10.id,this.urlSerializer.serialize(r$10.extractedUrl),a.message,a.cancellationCode)),Ni(a)?this.events.next(new Re(a.url,a.navigationBehaviorOptions)):r$10.resolve(!1);else{let u=new se(r$10.id,this.urlSerializer.serialize(r$10.extractedUrl),a,r$10.targetSnapshot??void 0);try{let l=yi$1(this.environmentInjector,()=>this.navigationErrorHandler?.(u));if(l instanceof Ce){let{message:v,cancellationCode:g}=wt(this.urlSerializer,l);this.events.next(new L(r$10.id,this.urlSerializer.serialize(r$10.extractedUrl),v,g)),this.events.next(new Re(l.redirectTo,l.navigationBehaviorOptions))}else throw this.events.next(u),a}catch(l){this.options.resolveNavigationPromiseOnError?r$10.resolve(!1):r$10.reject(l)}}return Ye}))}))}cancelNavigationTransition(e,r,i){on(e);let o=new L(e.id,this.urlSerializer.serialize(e.extractedUrl),r,i);this.events.next(o),e.resolve(!1)}isUpdatingInternalState(){return this.currentTransition?.extractedUrl.toString()!==this.currentTransition?.currentUrlTree.toString()}isUpdatedBrowserUrl(){let e=this.urlHandlingStrategy.extract(this.urlSerializer.parse(this.location.path(!0))),r=Bm(this.currentNavigation),i=r?.targetBrowserUrl??r?.extractedUrl;return e.toString()!==i?.toString()&&!r?.extras.skipLocationChange}static ɵfac=function(r){return new(r||t)};static ɵprov=lo$1({token:t,factory:t.ɵfac})}return t})();function wo(t){return t!==fe}function on(t){for(let n of t.newlyCreatedRoutes??[])n._localInjector?.destroy(),n._localInjector=void 0;Vn(t.targetRouterState)}function Vn(t){if(!t)return;let n=e=>
1{e.value.pending?.set(!1),e.children.forEach(n)};n(t._root)}var Gn=new x(``);var Wn=(()=>{class t{static ɵfac=function(r){return new(r||t)};static ɵprov=lo$1({token:t,factory:()=>C(bo)})}return t})();var It=class{shouldDetach(n){return!1}store(n,e){}shouldAttach(n){return!1}retrieve(n){return null}shouldReuseRoute(n,e){return n.routeConfig===e.routeConfig}shouldDestroyInjector(n){return!0}};var bo=(()=>{class t extends It{static ɵfac=function(r){return new(r||t)};static ɵprov=lo$1({token:t,factory:t.ɵfac})}return t})();var Tt=(()=>{class t{urlSerializer=C(ce);options=C(Ee,{optional:!0})||{};canceledNavigationResolution=this.options.canceledNavigationResolution||`replace`;location=C(Qe$1);urlHandlingStrategy=C(Mt);urlUpdateStrategy=this.options.urlUpdateStrategy||`deferred`;currentUrlTree=new E;getCurrentUrlTree(){return this.currentUrlTree}rawUrlTree=this.currentUrlTree;getRawUrlTree(){return this.rawUrlTree}createBrowserPath({finalUrl:e,initialUrl:r,targetBrowserUrl:i}){let o=e!==void 0?this.urlHandlingStrategy.merge(e,r):r,s=i??o;return s instanceof E?this.urlSerializer.serialize(s):s}routerUrlState(e){return e?.targetBrowserUrl===void 0||e?.finalUrl===void 0?{}:{ɵrouterUrl:this.urlSerializer.serialize(e.finalUrl)}}commitTransition({targetRouterState:e,finalUrl:r,initialUrl:i}){r&&e?(this.currentUrlTree=r,this.rawUrlTree=this.urlHandlingStrategy.merge(r,i),this.routerState=e):this.rawUrlTree=i}routerState=bn(null,C(ve$1));getRouterState(){return this.routerState}_stateMemento=this.createStateMemento();get stateMemento(){return this._stateMemento}updateStateMemento(){this._stateMemento=this.createStateMemento()}createStateMemento(){return{rawUrlTree:this.rawUrlTree,currentUrlTree:this.currentUrlTree,routerState:this.routerState}}restoredState(){return this.location.getState()}static ɵfac=function(r){return new(r||t)};static ɵprov=lo$1({token:t,factory:()=>C(Io)})}return t})();var Io=(()=>{class t extends Tt{currentPageId=0;lastSuccessfulId=-1;get browserPageId(){return this.canceledNavigationResolution!==`computed`?this.currentPageId:this.restoredState()?.ɵrouterPageId??this.currentPageId}registerNonRouterCurrentEntryChangeListener(e){return this.location.subscribe(r=>{r.type===`popstate`&&setTimeout(()=>{e(r.url,r.state,`popstate`,{replaceUrl:!0},r.hasUAVisualTransition)})})}handleRouterEvent(e,r){e instanceof J?this.updateStateMemento():e instanceof H?this.commitTransition(r):e instanceof je?this.urlUpdateStrategy===`eager`&&(r.extras.skipLocationChange||this.setBrowserUrl(this.createBrowserPath(r),r)):e instanceof ye?(this.commitTransition(r),this.urlUpdateStrategy===`deferred`&&!r.extras.skipLocationChange&&this.setBrowserUrl(this.createBrowserPath(r),r)):e instanceof L&&!wn(e)?this.restoreHistory(r):e instanceof se?this.restoreHistory(r,!0):e instanceof j&&(this.lastSuccessfulId=e.id,this.currentPageId=this.browserPageId)}setBrowserUrl(e,r$11){let{extras:i,id:o}=r$11,{replaceUrl:s,state:c}=i;
1if(this.location.isCurrentPathEqualTo(e)||s){let a=this.browserPageId,u=r(r({},c),this.generateNgRouterState(o,a,r$11));this.location.replaceState(e,``,u)}else{let a=r(r({},c),this.generateNgRouterState(o,this.browserPageId+1,r$11));this.location.go(e,``,a)}}restoreHistory(e,r=!1){if(this.canceledNavigationResolution===`computed`){let i=this.browserPageId,o=this.currentPageId-i;o!==0?this.location.historyGo(o):this.getCurrentUrlTree()===e.finalUrl&&o===0&&(this.resetInternalState(e),this.resetUrlToCurrentUrlTree())}else this.canceledNavigationResolution===`replace`&&(r&&this.resetInternalState(e),this.resetUrlToCurrentUrlTree())}resetInternalState({finalUrl:e}){this.routerState=this.stateMemento.routerState,this.currentUrlTree=this.stateMemento.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,e??this.rawUrlTree)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.getRawUrlTree()),``,this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}generateNgRouterState(e,r$12,i){return this.canceledNavigationResolution===`computed`?r({navigationId:e,ɵrouterPageId:r$12},this.routerUrlState(i)):r({navigationId:e},this.routerUrlState(i))}static ɵfac=function(r){return new(r||t)};static ɵprov=lo$1({token:t,factory:t.ɵfac})}return t})();function yr(t,n){t.events.pipe(_n$1(e=>e instanceof j||e instanceof L||e instanceof se||e instanceof H),he$1(e=>e instanceof j||e instanceof H?0:(e instanceof L?e.code===b.Redirect||e.code===b.SupersededByNewNavigation:!1)?2:1),_n$1(e=>e!==2),Ft(1)).subscribe(()=>{n()})}var ue=(()=>{class t{get currentUrlTree(){return this.stateManager.getCurrentUrlTree()}get rawUrlTree(){return this.stateManager.getRawUrlTree()}disposed=!1;nonRouterCurrentEntryChangeSubscription;console=C(Ob);stateManager=C(Tt);options=C(Ee,{optional:!0})||{};pendingTasks=C(tn$1);urlUpdateStrategy=this.options.urlUpdateStrategy||`deferred`;navigationTransitions=C(mr);urlSerializer=C(ce);location=C(Qe$1);urlHandlingStrategy=C(Mt);injector=C(ve$1);_events=new K$1;get events(){return this._events}get routerState(){return this.stateManager.getRouterState()}navigated=!1;routeReuseStrategy=C(Wn);injectorCleanup=C(Gn,{optional:!0});onSameUrlNavigation=this.options.onSameUrlNavigation||`ignore`;config=C(Be,{optional:!0})?.flat()??[];componentInputBindingEnabled=!!C(Et,{optional:!0});currentNavigation=this.navigationTransitions.currentNavigation.asReadonly();constructor(){this.resetConfig(this.config),this.navigationTransitions.setupNavigations(this).subscribe({error:e=>{}}),this.subscribeToNavigationEvents()}eventsSubscription=new J$1;subscribeToNavigationEvents(){let e=this.navigationTransitions.events.subscribe(r$13=>{try{let i=this.navigationTransitions.currentTransition,o=Bm(this.navigationTransitions.currentNavigation);if(i!==null&&o!==null){if(this.stateManager.handleRouterEvent(r$13,o),r$13 instanceof L&&r$13.code!==b.Redirect&&r$13.code!==b.SupersededByNewNavigation)this.navigated=!0;else if(r$13 instanceof j)this.navigated=!0,this.injectorCleanup?.(this.routeReuseStrategy,this.routerState,this.config);else if(r$13 instanceof Re){let s=r$13.navigationBehaviorOptions,c=this.urlHandlingStrategy.merge(r$13.url,i.currentRawUrl),a=r({scroll:i.extras.scroll,browserUrl:i.extras.browserUrl,info:i.extras.info,skipLocationChange:i.extras.skipLocationChange,replaceUrl:i.extras.replaceUrl||this.urlUpdateStrategy===`eager`||wo(i.source)},s);this.scheduleNavigation(c,fe,null,a,i.hasUAVisualTransition,{resolve:i.resolve,reject:i.reject,promise:i.promise})}}bi(r$13)&&this._events.next(r$13)}catch(i){this.navigationTransitions.transitionAbortWithErrorSubject.next(i)}});this.eventsSubscription.add(e)}resetRootComponentType(e){this.routerState.root.component=e,this.navigationTransitions.rootComponentType=e}initialNavigation(){this.setUpLocationChangeListener(),this.navigationTransitions.hasRequestedNavigation||this.navigateToSyncWithBrowser(this.location.path(!0),fe,this.stateManager.restoredState(),{replaceUrl:!0})}setUpLocationChangeListener(){this.nonRouterCurrentEntryChangeSubscription??=this.stateManager.registerNonRouterCurrentEntryChangeListener((e,r,i,o,s)=>{this.navigateToSyncWithBrowser(e,i,r,o,s)})}navigateToSyncWithBrowser(e,r$14,i,o,s$4){let c=i?.navigationId?i:null,a=i?.ɵrouterUrl??e;if(i?.ɵrouterUrl&&(o=s(r({},o),{browserUrl:e})),i){let l=r({},i);delete l.navigationId,delete l.ɵrouterPageId,delete l.ɵrouterUrl,Object.keys(l).length!==0&&(o.state=l)}let u=this.parseUrl(a);this.scheduleNavigation(u,r$14,c,o,s$4).catch(l=>{this.disposed||this.injector.get(nn$1)(l)})}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return Bm(this.navigationTransitions.currentNavigation)}get lastSuccessfulNavigation(){return this.navigationTransitions.lastSuccessfulNavigation}resetConfig(e){this.config=e.map(gr),this.navigated=!1}ngOnDestroy(){this.dispose()}dispose(){this._events.unsubscribe(),this.navigationTransitions.complete(),this.nonRouterCurrentEntryChangeSubscription?.unsubscribe(),this.nonRouterCurrentEntryChangeSubscription=void 0,this.disposed=!0,this.eventsSubscription.unsubscribe()}createUrlTree(e,r$15={}){let{relativeTo:i,queryParams:o,fragment:s,queryParamsHandling:c,preserveFragment:a}=r$15,u=a?this.currentUrlTree.fragment:s,l=null;switch(c??this.options.defaultQueryParamsHandling){case`merge`:l=r(r({},this.currentUrlTree.queryParams),o);break;case`preserve`:l=this.currentUrlTree.queryParams;break;default:l=o||null}l!==null&&(l=this.removeEmptyProps(l));let v;try{v=yn(i?i.snapshot:this.routerState.snapshot.root)}catch{(typeof e[0]!=`string`||e[0][0]!==`/`)&&(e=[]),v=this.currentUrlTree.root}return Rn(v,e,l,u??null,this.urlSerializer)}navigateByUrl(e,r={skipLocationChange:!1}){let i=Z(e)?e:this.parseUrl(e),o=this.urlHandlingStrategy.merge(i,this.rawUrlTree);return this.scheduleNavigation(o,fe,null,r)}navigate(e,r={skipLocationChange:!1}){return Eo(e),this.navigateByUrl(this.createUrlTree(e,r),r)}serializeUrl(e){return this.urlSerializer.serialize(e)}parseUrl(e){try{return this.urlSerializer.parse(e)}catch{return this.console.warn(Nr(4018,!1)),this.urlSerializer.parse(`/`)}}isActive(e,r$16){let i;if(r$16===!0?i=r({},ur):r$16===!1?i=r({},ge):i=r(r({},ge),r$16),Z(e))return Kt(this.currentUrlTree,e,i);let o=this.parseUrl(e);return Kt(this.currentUrlTree,o,i)}removeEmptyProps(e){return Object.entries(e).reduce((r,[i,o])=>(o!=null&&(r[i]=o),r),{})}scheduleNavigation(e,r,i,o,s,c){if(this.disposed)return Promise.resolve(!1);let a,u,l;c?(a=c.resolve,u=c.reject,l=c.promise):l=new Promise((g,w)=>{a=g,u=w});let v=this.pendingTasks.add();return yr(this,()=>{queueMicrotask(()=>this.pendingTasks.remove(v))}),this.navigationTransitions.handleNavigationRequest({source:r,restoredState:i,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,rawUrl:e,extras:o,hasUAVisualTransition:s,resolve:a,reject:u,promise:l,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}
1),l.catch(Promise.reject.bind(Promise))}static ɵfac=function(r){return new(r||t)};static ɵprov=lo$1({token:t,factory:t.ɵfac})}return t})();function Eo(t){for(let n=0;n<t.length;n++)if(t[n]==null)throw new N(4008,!1)}var Ao=(()=>{class t{router=C(ue);stateManager=C(Tt);fragment=Oi$1(``);queryParams=Oi$1({});path=Oi$1(``);serializer=C(ce);constructor(){this.updateState(),this.router.events?.subscribe(e=>{e instanceof j&&this.updateState()})}updateState(){let{fragment:e,root:r,queryParams:i}=this.stateManager.getCurrentUrlTree();this.fragment.set(e),this.queryParams.set(i),this.path.set(this.serializer.serialize(new E(r)))}static ɵfac=function(r){return new(r||t)};static ɵprov=lo$1({token:t,factory:t.ɵfac})}return t})();var Nt=(()=>{class t{router;route;tabIndexAttribute;renderer;el;locationStrategy;hrefAttributeValue=C(new $m(`href`),{optional:!0});reactiveHref=xC(()=>this.isAnchorElement?this.computeHref(this._urlTree()):this.hrefAttributeValue);get href(){return Bm(this.reactiveHref)}set href(e){this.reactiveHref.set(e)}set target(e){this._target.set(e)}get target(){return Bm(this._target)}_target=Oi$1(void 0);set queryParams(e){this._queryParams.set(e)}get queryParams(){return Bm(this._queryParams)}_queryParams=Oi$1(void 0,{equal:()=>!1});set fragment(e){this._fragment.set(e)}get fragment(){return Bm(this._fragment)}_fragment=Oi$1(void 0);set queryParamsHandling(e){this._queryParamsHandling.set(e)}get queryParamsHandling(){return Bm(this._queryParamsHandling)}_queryParamsHandling=Oi$1(void 0);set state(e){this._state.set(e)}get state(){return Bm(this._state)}_state=Oi$1(void 0,{equal:()=>!1});set info(e){this._info.set(e)}get info(){return Bm(this._info)}_info=Oi$1(void 0,{equal:()=>!1});set relativeTo(e){this._relativeTo.set(e)}get relativeTo(){return Bm(this._relativeTo)}_relativeTo=Oi$1(void 0);set preserveFragment(e){this._preserveFragment.set(e)}get preserveFragment(){return Bm(this._preserveFragment)}_preserveFragment=Oi$1(!1);set skipLocationChange(e){this._skipLocationChange.set(e)}get skipLocationChange(){return Bm(this._skipLocationChange)}_skipLocationChange=Oi$1(!1);set replaceUrl(e){this._replaceUrl.set(e)}get replaceUrl(){return Bm(this._replaceUrl)}_replaceUrl=Oi$1(!1);browserUrl=yH(void 0);isAnchorElement;onChanges=new K$1;applicationErrorHandler=C(nn$1);options=C(Ee,{optional:!0});reactiveRouterState=C(Ao);constructor(e,r,i,o,s,c){this.router=e,this.route=r,this.tabIndexAttribute=i,this.renderer=o,this.el=s,this.locationStrategy=c;let a=s.nativeElement.tagName?.toLowerCase();this.isAnchorElement=a===`a`||a===`area`||!!(typeof customElements==`object`&&customElements.get(a)?.observedAttributes?.includes?.(`href`))}setTabIndexIfNotOnNativeEl(e){this.tabIndexAttribute!=null||this.isAnchorElement||this.applyAttributeValue(`tabindex`,e)}ngOnChanges(e){this.onChanges.next(this)}routerLinkInput=Oi$1(null);set routerLink(e){e==null?(this.routerLinkInput.set(null),this.setTabIndexIfNotOnNativeEl(null)):(Z(e)?this.routerLinkInput.set(e):this.routerLinkInput.set(Array.isArray(e)?e:[e]),this.setTabIndexIfNotOnNativeEl(`0`))}onClick(e,r$17,i,o,s){let c=this._urlTree();if(c===null||this.isAnchorElement&&(e!==0||r$17||i||o||s||typeof this.target==`string`&&this.target!=`_self`))return!0;let a=this.browserUrl(),u=r({skipLocationChange:this.skipLocationChange,replaceUrl:this.replaceUrl,state:this.state,info:this.info},a!==void 0&&{browserUrl:a});return this.router.navigateByUrl(c,u)?.catch(l=>{this.applicationErrorHandler(l)}),!this.isAnchorElement}ngOnDestroy(){}applyAttributeValue(e,r){let i=this.renderer,o=this.el.nativeElement;r!==null?i.setAttribute(o,e,r):i.removeAttribute(o,e)}_urlTree=NC(()=>{this.reactiveRouterState.path(),this._preserveFragment()&&this.reactiveRouterState.fragment();let e=i=>i===`preserve`||i===`merge`;(e(this._queryParamsHandling())||e(this.options?.defaultQueryParamsHandling))&&this.reactiveRouterState.queryParams();let r=this.routerLinkInput();return r===null||!this.router.createUrlTree?null:Z(r)?r:this.router.createUrlTree(r,{relativeTo:this._relativeTo()!==void 0?this._relativeTo():this.route,queryParams:this._queryParams(),fragment:this._fragment(),queryParamsHandling:this._queryParamsHandling(),preserveFragment:this._preserveFragment()})},{equal:(e,r)=>this.computeHref(e)===this.computeHref(r)});get urlTree(){return Bm(this._urlTree)}computeHref(e){return e!==null&&this.locationStrategy?this.locationStrategy?.prepareExternalUrl(this.router.serializeUrl(e))??``:null}static ɵfac=function(r){return new(r||t)(yo$1(ue),yo$1(G),Bp(`tabindex`),yo$1(Gc),yo$1(uo$1),yo$1(ee$1))};static ɵdir=Zw({type:t,selectors:[[``,`routerLink`,``]],hostVars:2,hostBindings:function(r,i){r&1&&tm(`click`,function(s){return i.onClick(s.button,s.ctrlKey,s.shiftKey,s.altKey,s.metaKey)}),r&2&&Wg(`href`,i.reactiveHref(),vI)(`target`,i._target())},inputs:{target:`target`,queryParams:`queryParams`,fragment:`fragment`,queryParamsHandling:`queryParamsHandling`,state:`state`,info:`info`,relativeTo:`relativeTo`,preserveFragment:[2,`preserveFragment`,`preserveFragment`,MH],skipLocationChange:[2,`skipLocationChange`,`skipLocationChange`,MH],replaceUrl:[2,`replaceUrl`,`replaceUrl`,MH],browserUrl:[1,`browserUrl`],routerLink:`routerLink`},features:[Jv]})}return t})();var Mo=(()=>{class t{router;element;renderer;cdr;links;classes=[];routerEventsSubscription;linkInputChangesSubscription;_isActive=!1;get isActive(){return this._isActive}routerLinkActiveOptions={exact:!1};ariaCurrentWhenActive;isActiveChange=new et;link=C(Nt,{optional:!0});constructor(e,r,i,o){this.router=e,this.element=r,this.renderer=i,this.cdr=o,this.routerEventsSubscription=e.events.subscribe(s=>{s instanceof j&&this.update()})}ngAfterContentInit(){Us(this.links.changes,Us(null)).pipe(yr$1()).subscribe(e=>{this.update(),this.subscribeToEachLinkOnChanges()})}subscribeToEachLinkOnChanges(){this.linkInputChangesSubscription?.unsubscribe();let e=[...this.links.toArray(),this.link].filter(r=>!!r).map(r=>r.onChanges);this.linkInputChangesSubscription=Pe$1(e).pipe(yr$1()).subscribe(r=>{this._isActive!==this.isLinkActive(this.router)(r)&&this.update()})}set routerLinkActive(e){if(e==null){this.classes=[];return}let r=Array.isArray(e)?e:e.split(` `);this.classes=r.filter(i=>!!i)}ngOnChanges(e){this.update()}ngOnDestroy(){this.routerEventsSubscription.unsubscribe(),this.linkInputChangesSubscription?.unsubscribe()}update(){!this.links||!this.router.navigated||this.routerLinkActiveOptions===null&&!this._isActive||queueMicrotask(()=>{let e=this.hasActiveLinks();
1this.classes.forEach(r=>{e?this.renderer.addClass(this.element.nativeElement,r):this.renderer.removeClass(this.element.nativeElement,r)}),e&&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!==e&&(this._isActive=e,this.cdr.markForCheck(),this.isActiveChange.emit(e))})}isLinkActive(e){let r$18=this.routerLinkActiveOptions;if(r$18===null)return()=>!1;let i;return r$18===void 0?i=r({},ge):To(r$18)?i=r$18:r$18.exact??!1?i=r({},ur):i=r({},ge),o=>{let s=o.urlTree;return s?Bm(lr(s,e,i)):!1}}hasActiveLinks(){let e=this.isLinkActive(this.router);return this.link&&e(this.link)||this.links.some(e)}static ɵfac=function(r){return new(r||t)(yo$1(ue),yo$1(uo$1),yo$1(Gc),yo$1(TH))};static ɵdir=Zw({type:t,selectors:[[``,`routerLinkActive`,``]],contentQueries:function(r,i,o){if(r&1&&om(o,Nt,5),r&2){let s;vT(s=ET())&&(i.links=s)}},inputs:{routerLinkActiveOptions:`routerLinkActiveOptions`,ariaCurrentWhenActive:`ariaCurrentWhenActive`,routerLinkActive:`routerLinkActive`},outputs:{isActiveChange:`isActiveChange`},exportAs:[`routerLinkActive`],features:[Jv]})}return t})();function To(t){let n=t;return!!(n.paths||n.matrixParams||n.queryParams||n.fragment)}var Qn=new x(``);var No=(()=>{class t{options;routerEventsSubscription;scrollEventsSubscription;lastId=0;lastSource=fe;restoredId=0;store={};isHydrating=C(xE,{optional:!0})??!1;urlSerializer=C(ce);zone=C(se$1);viewportScroller=C(tr$1);transitions=C(mr);constructor(e){this.options=e,this.options.scrollPositionRestoration||=`disabled`,this.options.anchorScrolling||=`disabled`,this.isHydrating&&C(vo$1).whenStable().then(()=>{this.isHydrating=!1})}init(){this.options.scrollPositionRestoration!==`disabled`&&this.viewportScroller.setHistoryScrollRestoration(`manual`),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents()}createScrollEvents(){return this.transitions.events.subscribe(e=>{e instanceof J?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=e.navigationTrigger,this.restoredId=e.restoredState?e.restoredState.navigationId:0):e instanceof j?(this.lastId=e.id,this.scheduleScrollEvent(e,this.urlSerializer.parse(e.urlAfterRedirects).fragment)):e instanceof H&&e.code===ve.IgnoredSameUrlNavigation&&(this.lastSource=void 0,this.restoredId=0,this.scheduleScrollEvent(e,this.urlSerializer.parse(e.url).fragment))})}consumeScrollEvents(){return this.transitions.events.subscribe(e=>{if(!(e instanceof me)||e.scrollBehavior===`manual`)return;let r={behavior:`instant`};e.position?this.options.scrollPositionRestoration===`top`?this.viewportScroller.scrollToPosition([0,0],r):this.options.scrollPositionRestoration===`enabled`&&this.viewportScroller.scrollToPosition(e.position,r):e.anchor&&this.options.anchorScrolling===`enabled`?this.viewportScroller.scrollToAnchor(e.anchor):this.options.scrollPositionRestoration!==`disabled`&&this.viewportScroller.scrollToPosition([0,0])})}scheduleScrollEvent(e,r){if(this.isHydrating)return;let i=Bm(this.transitions.currentNavigation)?.extras.scroll;this.zone.runOutsideAngular(async()=>{await new Promise(o=>{setTimeout(o),typeof requestAnimationFrame<`u`&&requestAnimationFrame(o)}),this.zone.run(()=>{this.transitions.events.next(new me(e,this.lastSource===`popstate`?this.store[this.restoredId]:null,r,i))})})}ngOnDestroy(){this.routerEventsSubscription?.unsubscribe(),this.scrollEventsSubscription?.unsubscribe()}static ɵfac=function(r){lw()};static ɵprov=ee({token:t,factory:t.ɵfac})}return t})();function Do(t,...n){return Fn$1([{provide:Be,multi:!0,useValue:t},{provide:G,useFactory:_o},{provide:Bg,multi:!0,useFactory:Po},n.map(e=>e.ɵproviders)])}function _o(){return C(ue).routerState.root}function Uo(t,n){return{ɵkind:t,ɵproviders:n}}function Oo(t={}){return Uo(4,[{provide:Qn,useFactory:()=>new No(t)}])}function Po(){let t=C(we$1);return n=>{let e=t.get(vo$1);if(n!==e.components[0])return;let r=t.get(ue),i=t.get(Lo);t.get(jo)===1&&r.initialNavigation(),t.get(xo,null,{optional:!0})?.setUpPreloading(),t.get(Qn,null,{optional:!0})?.init(),r.resetRootComponentType(e.componentTypes[0]),i.closed||(i.next(),i.complete(),i.unsubscribe())}}var Lo=new x(``,{factory:()=>new K$1});var jo=new x(``,{factory:()=>1});var xo=new x(``);export{Mo as a,fr as c,je as d,se as f,L as i,ft as l,G as n,Nt as o,ue as p,J as r,Oo as s,Do as t,j as u};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.