PageSourceSearch

https://www.fidelity.com/plpResources/chunk-BHQRJIZU.js

js fidelity.com collected 2026-09-24 08:59:38 UTC 76,516 bytes, 1 lines download raw bytes

1import{j as Xr}from"./chunk-O57EHTWG.js";import{$ as Pr,$b as Wr,A as W,B as Dt,D as Tr,E as P,Ec as Ft,F as Qe,G as L,H as C,I as Dr,K as S,L as Nr,M as _r,Ma as kr,N as E,O as Q,Oa as Lt,P as d,Q as Ur,S as F,Sa as $r,T as M,Ta as zr,Ua as Hr,Va as Ye,Wa as Fr,Xa as qr,Y as Nt,Ya as xt,Z as Or,_ as _t,a as Cr,aa as de,ac as K,b as wr,ba as Lr,bb as Br,c as br,cb as Vr,d as ue,da as Ut,db as jt,dc as Qr,e as N,ea as Ke,eb as kt,fb as $t,g as _,gc as zt,h as b,ha as Ot,i as g,ia as Pt,j as Ir,k as At,kc as Kr,l as Er,n as I,o as Mt,p as k,pc as Yr,q as Tt,qb as Gr,qc as Ht,r as Ar,ra as xr,rc as Zr,s as Ge,sa as jr,sc as he,tc as Jr,u as G,v as We,w as Te,y as le,z as Mr}from"./chunk-IQBTZB72.js";import{a as l,b as A,e as m}from"./chunk-WFIHWVQO.js";var f="primary",ze=Symbol("RouteTitle"),Wt=class{params;constructor(n){this.params=n||{}}has(n){return Object.prototype.hasOwnProperty.call(this.params,n)}get(n){if(this.has(n)){let t=this.params[n];return Array.isArray(t)?t[0]:t}return null}getAll(n){if(this.has(n)){let t=this.params[n];return Array.isArray(t)?t:[t]}return[]}get keys(){return Object.keys(this.params)}};function re(e){return new Wt(e)}function qt(e,n,t){for(let r=0;r<e.length;r++){let i=e[r],o=n[r];if(i[0]===":")t[i.substring(1)]=o;else if(i!==o.path)return!1}return!0}function cn(e,n,t){let r=t.path.split("/"),i=r.indexOf("**");if(i===-1){if(r.length>e.length||t.pathMatch==="full"&&(n.hasChildren()||r.length<e.length))return null;let c={},u=e.slice(0,r.length);return qt(r,u,c)?{consumed:u,posParams:c}:null}if(i!==r.lastIndexOf("**"))return null;let o=r.slice(0,i),s=r.slice(i+1);if(o.length+s.length>e.length||t.pathMatch==="full"&&n.hasChildren()&&t.path!=="**")return null;let a={};return!qt(o,e.slice(0,o.length),a)||!qt(s,e.slice(e.length-s.length),a)?null:{consumed:e,posParams:a}}function rt(e){return new Promise((n,t)=>{e.pipe(W()).subscribe({next:r=>n(r),error:r=>t(r)})})}function ci(e,n){if(e.length!==n.length)return!1;for(let t=0;t<e.length;++t)if(!$(e[t],n[t]))return!1;return!0}function $(e,n){let t=e?Qt(e):void 0,r=n?Qt(n):void 0;if(!t||!r||t.length!=r.length)return!1;let i;for(let o=0;o<t.length;o++)if(i=t[o],!un(e[i],n[i]))return!1;return!0}function Qt(e){return[...Object.keys(e),...Object.getOwnPropertySymbols(e)]}function un(e,n){if(Array.isArray(e)&&Array.isArray(n)){if(e.length!==n.length)return!1;let t=[...e].sort(),r=[...n].sort();return t.every((i,o)=>r[o]===i)}else return e===n}function ui(e){return e.length>0?e[e.length-1]:null}function ie(e){return At(e)?e:Vr(e)?b(Promise.resolve(e)):g(e)}function ln(e){return At(e)?rt(e):Promise.resolve(e)}var li={exact:fn,subset:pn},dn={exact:di,subset:hi,ignored:()=>!0},hn={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},Kt={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"};function en(e,n,t){return li[t.paths](e.root,n.root,t.matrixParams)&&dn[t.queryParams](e.queryParams,n.queryParams)&&!(t.fragment==="exact"&&e.fragment!==n.fragment)}function di(e,n){return $(e,n)}function fn(e,n,t){if(!te(e.segments,n.segments)||!Xe(e.segments,n.segments,t)||e.numberOfChildren!==n.numberOfChildren)return!1;for(let r in n.children)if(!e.children[r]||!fn(e.children[r],n.children[r],t))return!1;return!0}function hi(e,n){return Object.keys(n).length<=Object.keys(e).length&&Object.keys(n).every(t=>un(e[t],n[t]))}function pn(e,n,t){return gn(e,n,n.segments,t)}function gn(e,n,t,r){if(e.segments.length>t.length){let i=e.segments.slice(0,t.length);return!(!te(i,t)||n.hasChildren()||!Xe(i,t,r))}else if(e.segments.length===t.length){if(!te(e.segments,t)||!Xe(e.segments,t,r))return!1;for(let i in n.children)if(!e.children[i]||!pn(e.children[i],n.children[i],r))return!1;return!0}else{let i=t.slice(0,e.segments.length),o=t.slice(e.segments.length);return!te(e.segments,i)||!Xe(e.segments,i,r)||!e.children[f]?!1:gn(e.children[f],n,o,r)}}function Xe(e,n,t){return n.every((r,i)=>dn[t](e[i].parameters,r.parameters))}var O=class{root;queryParams;fragment;_queryParamMap;constructor(n=new v([],{}),t={},r=null){this.root=n,this.queryParams=t,this.fragment=r}get queryParamMap(){return this._queryParamMap??=re(this.queryParams),this._queryParamMap}toString(){return gi.serialize(this)}},v=class{segments;children;parent=null;constructor(n,t){this.segments=n,this.children=t,Object.values(t).forEach(r=>r.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return et(this)}},Y=class{path;parameters;_parameterMap;constructor(n,t){this.path=n,this.parameters=t}get parameterMap(){return this._parameterMap??=re(this.parameters),this._parameterMap}toString(){return mn(this)}};function fi(e,n){return te(e,n)&&e.every((t,r)=>$(t.parameters,n[r].parameters))}function te(e,n){return e.length!==n.length?!1:e.every((t,r)=>t.path===n[r].path)}function pi(e,n){let t=[];
1return Object.entries(e.children).forEach(([r,i])=>{r===f&&(t=t.concat(n(i,r)))}),Object.entries(e.children).forEach(([r,i])=>{r!==f&&(t=t.concat(n(i,r)))}),t}var oe=(()=>{class e{static \u0275fac=function(r){return new(r||e)};static \u0275prov=S({token:e,factory:()=>new B,providedIn:"root"})}return e})(),B=class{parse(n){let t=new Zt(n);return new O(t.parseRootSegment(),t.parseQueryParams(),t.parseFragment())}serialize(n){let t=`/${De(n.root,!0)}`,r=yi(n.queryParams),i=typeof n.fragment=="string"?`#${vi(n.fragment)}`:"";return`${t}${r}${i}`}},gi=new B;function et(e){return e.segments.map(n=>mn(n)).join("/")}function De(e,n){if(!e.hasChildren())return et(e);if(n){let t=e.children[f]?De(e.children[f],!1):"",r=[];return Object.entries(e.children).forEach(([i,o])=>{i!==f&&r.push(`${i}:${De(o,!1)}`)}),r.length>0?`${t}(${r.join("//")})`:t}else{let t=pi(e,(r,i)=>i===f?[De(e.children[f],!1)]:[`${i}:${De(r,!1)}`]);return Object.keys(e.children).length===1&&e.children[f]!=null?`${et(e)}/${t[0]}`:`${et(e)}/(${t.join("//")})`}}function vn(e){return encodeURIComponent(e).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function Ze(e){return vn(e).replace(/%3B/gi,";")}function vi(e){return encodeURI(e)}function Yt(e){return vn(e).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function tt(e){return decodeURIComponent(e)}function tn(e){return tt(e.replace(/\+/g,"%20"))}function mn(e){return`${Yt(e.path)}${mi(e.parameters)}`}function mi(e){return Object.entries(e).map(([n,t])=>`;${Yt(n)}=${Yt(t)}`).join("")}function yi(e){let n=Object.entries(e).map(([t,r])=>Array.isArray(r)?r.map(i=>`${Ze(t)}=${Ze(i)}`).join("&"):`${Ze(t)}=${Ze(r)}`).filter(t=>t);return n.length?`?${n.join("&")}`:""}var Ri=/^[^\/()?;#]+/;function Bt(e){let n=e.match(Ri);return n?n[0]:""}var Si=/^[^\/()?;=#]+/;function Ci(e){let n=e.match(Si);return n?n[0]:""}var wi=/^[^=?&#]+/;function bi(e){let n=e.match(wi);return n?n[0]:""}var Ii=/^[^&#]+/;function Ei(e){let n=e.match(Ii);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 v([],{}):new v([],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 C(4010,!1);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 r={};this.peekStartsWith("/(")&&(this.capture("/"),r=this.parseParens(!0,n));let i={};return this.peekStartsWith("(")&&(i=this.parseParens(!1,n)),(t.length>0||Object.keys(r).length>0)&&(i[f]=new v(t,r)),i}parseSegment(){let n=Bt(this.remaining);if(n===""&&this.peekStartsWith(";"))throw new C(4009,!1);return this.capture(n),new Y(tt(n),this.parseMatrixParams())}parseMatrixParams(){let n={};for(;this.consumeOptional(";");)this.parseParam(n);return n}parseParam(n){let t=Ci(this.remaining);if(!t)return;this.capture(t);let r="";if(this.consumeOptional("=")){let i=Bt(this.remaining);i&&(r=i,this.capture(r))}n[tt(t)]=tt(r)}parseQueryParam(n){let t=bi(this.remaining);if(!t)return;this.capture(t);let r="";if(this.consumeOptional("=")){let s=Ei(this.remaining);s&&(r=s,this.capture(r))}let i=tn(t),o=tn(r);if(n.hasOwnProperty(i)){let s=n[i];Array.isArray(s)||(s=[s],n[i]=s),s.push(o)}else n[i]=o}parseParens(n,t){let r={};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 C(4010,!1);let s;i.indexOf(":")>-1?(s=i.slice(0,i.indexOf(":")),this.capture(s),this.capture(":")):n&&(s=f);let a=this.parseChildren(t+1);r[s??f]=Object.keys(a).length===1&&a[f]?a[f]:new v([],a),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 C(4011,!1)}};function yn(e){return e.segments.length>0?new v([],{[f]:e}):e}function Rn(e){let n={};for(let[r,i]of Object.entries(e.children)){let o=Rn(i);if(r===f&&o.segments.length===0&&o.hasChildren())for(let[s,a]of Object.entries(o.children))n[s]=a;else(o.segments.length>0||o.hasChildren())&&(n[r]=o)}let t=new v(e.segments,n);return Ai(t)}function Ai(e){if(e.numberOfChildren===1&&e.children[f]){let n=e.children[f];return new v(e.segments.concat(n.segments),n.children)}return e}function me(e){return e instanceof O}function Sn(e,n,t=null,r=null,i=new B){let o=Cn(e);return wn(o,n,t,r,i)}function Cn(e){let n;function t(o){let s={};for(let c of o.children){let u=t(c);
1s[c.outlet]=u}let a=new v(o.url,s);return o===e&&(n=a),a}let r=t(e.root),i=yn(r);return n??i}function wn(e,n,t,r,i){let o=e;for(;o.parent;)o=o.parent;if(n.length===0)return Vt(o,o,o,t,r,i);let s=Mi(n);if(s.toRoot())return Vt(o,o,new v([],{}),t,r,i);let a=Ti(s,o,e),c=a.processChildren?_e(a.segmentGroup,a.index,s.commands):In(a.segmentGroup,a.index,s.commands);return Vt(o,a.segmentGroup,c,t,r,i)}function nt(e){return typeof e=="object"&&e!=null&&!e.outlets&&!e.segmentPath}function Oe(e){return typeof e=="object"&&e!=null&&e.outlets}function rn(e,n,t){e||="\u0275";let r=new O;return r.queryParams={[e]:n},t.parse(t.serialize(r)).queryParams[e]}function Vt(e,n,t,r,i,o){let s={};for(let[u,h]of Object.entries(r??{}))s[u]=Array.isArray(h)?h.map(p=>rn(u,p,o)):rn(u,h,o);let a;e===n?a=t:a=bn(e,n,t);let c=yn(Rn(a));return new O(c,s,i)}function bn(e,n,t){let r={};return Object.entries(e.children).forEach(([i,o])=>{o===n?r[i]=t:r[i]=bn(o,n,t)}),new v(e.segments,r)}var it=class{isAbsolute;numberOfDoubleDots;commands;constructor(n,t,r){if(this.isAbsolute=n,this.numberOfDoubleDots=t,this.commands=r,n&&r.length>0&&nt(r[0]))throw new C(4003,!1);let i=r.find(Oe);if(i&&i!==ui(r))throw new C(4004,!1)}toRoot(){return this.isAbsolute&&this.commands.length===1&&this.commands[0]=="/"}};function Mi(e){if(typeof e[0]=="string"&&e.length===1&&e[0]==="/")return new it(!0,0,e);let n=0,t=!1,r=e.reduce((i,o,s)=>{if(typeof o=="object"&&o!=null){if(o.outlets){let a={};return Object.entries(o.outlets).forEach(([c,u])=>{a[c]=typeof u=="string"?u.split("/"):u}),[...i,{outlets:a}]}if(o.segmentPath)return[...i,o.segmentPath]}return typeof o!="string"?[...i,o]:s===0?(o.split("/").forEach((a,c)=>{c==0&&a==="."||(c==0&&a===""?t=!0:a===".."?n++:a!=""&&i.push(a))}),i):[...i,o]},[]);return new it(t,n,r)}var pe=class{segmentGroup;processChildren;index;constructor(n,t,r){this.segmentGroup=n,this.processChildren=t,this.index=r}};function Ti(e,n,t){if(e.isAbsolute)return new pe(n,!0,0);if(!t)return new pe(n,!1,NaN);if(t.parent===null)return new pe(t,!0,0);let r=nt(e.commands[0])?0:1,i=t.segments.length-1+r;return Di(t,i,e.numberOfDoubleDots)}function Di(e,n,t){let r=e,i=n,o=t;for(;o>i;){if(o-=i,r=r.parent,!r)throw new C(4005,!1);i=r.segments.length}return new pe(r,!1,i-o)}function Ni(e){return Oe(e[0])?e[0].outlets:{[f]:e}}function In(e,n,t){if(e??=new v([],{}),e.segments.length===0&&e.hasChildren())return _e(e,n,t);let r=_i(e,n,t),i=t.slice(r.commandIndex);if(r.match&&r.pathIndex<e.segments.length){let o=new v(e.segments.slice(0,r.pathIndex),{});return o.children[f]=new v(e.segments.slice(r.pathIndex),e.children),_e(o,0,i)}else return r.match&&i.length===0?new v(e.segments,{}):r.match&&!e.hasChildren()?Jt(e,n,t):r.match?_e(e,0,i):Jt(e,n,t)}function _e(e,n,t){if(t.length===0)return new v(e.segments,{});{let r=Ni(t),i={};if(Object.keys(r).some(o=>o!==f)&&e.children[f]&&e.numberOfChildren===1&&e.children[f].segments.length===0){let o=_e(e.children[f],n,t);return new v(e.segments,o.children)}return Object.entries(r).forEach(([o,s])=>{typeof s=="string"&&(s=[s]),s!==null&&(i[o]=In(e.children[o],n,s))}),Object.entries(e.children).forEach(([o,s])=>{r[o]===void 0&&(i[o]=s)}),new v(e.segments,i)}}function _i(e,n,t){let r=0,i=n,o={match:!1,pathIndex:0,commandIndex:0};for(;i<e.segments.length;){if(r>=t.length)return o;let s=e.segments[i],a=t[r];if(Oe(a))break;let c=`${a}`,u=r<t.length-1?t[r+1]:null;if(i>0&&c===void 0)break;if(c&&u&&typeof u=="object"&&u.outlets===void 0){if(!on(c,u,s))return o;r+=2}else{if(!on(c,{},s))return o;r++}i++}return{match:!0,pathIndex:i,commandIndex:r}}function Jt(e,n,t){let r=e.segments.slice(0,n),i=0;for(;i<t.length;){let o=t[i];if(Oe(o)){let c=Ui(o.outlets);return new v(r,c)}if(i===0&&nt(t[0])){let c=e.segments[n];r.push(new Y(c.path,nn(t[0]))),i++;continue}let s=Oe(o)?o.outlets[f]:`${o}`,a=i<t.length-1?t[i+1]:null;s&&a&&nt(a)?(r.push(new Y(s,nn(a))),i+=2):(r.push(new Y(s,{})),i++)}return new v(r,{})}function Ui(e){let n={};return Object.entries(e).forEach(([t,r])=>{typeof r=="string"&&(r=[r]),r!==null&&(n[t]=Jt(new v([],{}),0,r))}),n}function nn(e){let n={};return Object.entries(e).forEach(([t,r])=>n[t]=`${r}`),n}function on(e,n,t){return e==t.path&&$(n,t.parameters)}var ge="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.Re
1solveStart=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||{}),D=class{id;url;constructor(n,t){this.id=n,this.url=t}},Z=class extends D{type=R.NavigationStart;navigationTrigger;restoredState;constructor(n,t,r="imperative",i=null){super(n,t),this.navigationTrigger=r,this.restoredState=i}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}},j=class extends D{urlAfterRedirects;type=R.NavigationEnd;constructor(n,t,r){super(n,t),this.urlAfterRedirects=r}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}},w=(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.Aborted=4]="Aborted",e})(w||{}),ye=(function(e){return e[e.IgnoredSameUrlNavigation=0]="IgnoredSameUrlNavigation",e[e.IgnoredByUrlHandlingStrategy=1]="IgnoredByUrlHandlingStrategy",e})(ye||{}),U=class extends D{reason;code;type=R.NavigationCancel;constructor(n,t,r,i){super(n,t),this.reason=r,this.code=i}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}};function En(e){return e instanceof U&&(e.code===w.Redirect||e.code===w.SupersededByNewNavigation)}var z=class extends D{reason;code;type=R.NavigationSkipped;constructor(n,t,r,i){super(n,t),this.reason=r,this.code=i}},ne=class extends D{error;target;type=R.NavigationError;constructor(n,t,r,i){super(n,t),this.error=r,this.target=i}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}},Pe=class extends D{urlAfterRedirects;state;type=R.RoutesRecognized;constructor(n,t,r,i){super(n,t),this.urlAfterRedirects=r,this.state=i}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},ot=class extends D{urlAfterRedirects;state;type=R.GuardsCheckStart;constructor(n,t,r,i){super(n,t),this.urlAfterRedirects=r,this.state=i}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},at=class extends D{urlAfterRedirects;state;shouldActivate;type=R.GuardsCheckEnd;constructor(n,t,r,i,o){super(n,t),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})`}},st=class extends D{urlAfterRedirects;state;type=R.ResolveStart;constructor(n,t,r,i){super(n,t),this.urlAfterRedirects=r,this.state=i}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},ct=class extends D{urlAfterRedirects;state;type=R.ResolveEnd;constructor(n,t,r,i){super(n,t),this.urlAfterRedirects=r,this.state=i}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},ut=class{route;type=R.RouteConfigLoadStart;constructor(n){this.route=n}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}},lt=class{route;type=R.RouteConfigLoadEnd;constructor(n){this.route=n}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}},dt=class{snapshot;type=R.ChildActivationStart;constructor(n){this.snapshot=n}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},ht=class{snapshot;type=R.ChildActivationEnd;constructor(n){this.snapshot=n}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},ft=class{snapshot;type=R.ActivationStart;constructor(n){this.snapshot=n}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},pt=class{snapshot;type=R.ActivationEnd;constructor(n){this.snapshot=n}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},Re=class{routerEvent;position;anchor;scrollBehavior;type=R.Scroll;constructor(n,t,r,i){this.routerEvent=n,this.position=t,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}')`}},Se=class{},Le=class{},Ce=class{url;navigationBehaviorOptions;constructor(n,t){this.url=n,this.navigationBehaviorOptions=t}};function Oi(e){return!(e instanceof Se)&&!(e instanceof Ce)&&!(e instanceof Le)}var gt=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 ae(this.rootInjector)}},ae=(()=>{class e{rootInjector;contexts=new Map;constructor(t){this.rootInjector=t}onChildOutletCreated(t,r){let i=this.getOrCreateContext(t);i.outlet=r,this.contexts.set(t,i)}onChildOutletDestroyed(t){let r=this.getContext(t);r&&(r.outlet=null,r.attachRef=null)}onOutletDeactivated(){let t=this.contexts;return this.contexts=new Map,t}onOutletReAttached(t){this.contexts=t}getOrCreateContext(t){let r=this.getContext(t);return r||(r=new gt(this.rootInjector),this.contexts.set(t,r)),r}getContext(t){return this.contexts.get(t)||null}static \u0275fac=function(r){return new(r||e)(Q(F))};static \u0275prov=S({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),vt=class{_root;constructor(n){this._root=n}get root(){return this._root.value}
1parent(n){let t=this.pathFromRoot(n);return t.length>1?t[t.length-2]:null}children(n){let t=Xt(n,this._root);return t?t.children.map(r=>r.value):[]}firstChild(n){let t=Xt(n,this._root);return t&&t.children.length>0?t.children[0].value:null}siblings(n){let t=er(n,this._root);return t.length<2?[]:t[t.length-2].children.map(i=>i.value).filter(i=>i!==n)}pathFromRoot(n){return er(n,this._root).map(t=>t.value)}};function Xt(e,n){if(e===n.value)return n;for(let t of n.children){let r=Xt(e,t);if(r)return r}return null}function er(e,n){if(e===n.value)return[n];for(let t of n.children){let r=er(e,t);if(r.length)return r.unshift(n),r}return[]}var T=class{value;children;constructor(n,t){this.value=n,this.children=t}toString(){return`TreeNode(${this.value})`}};function fe(e){let n={};return e&&e.children.forEach(t=>n[t.value.outlet]=t),n}var xe=class extends vt{snapshot;constructor(n,t){super(n),this.snapshot=t,ur(this,n)}toString(){return this.snapshot.toString()}};function An(e,n){let t=Pi(e,n),r=new N([new Y("",{})]),i=new N({}),o=new N({}),s=new N({}),a=new N(""),c=new V(r,i,s,a,o,f,e,t.root);return c.snapshot=t.root,new xe(new T(c,[]),t)}function Pi(e,n){let t={},r={},i={},s=new we([],t,i,"",r,f,e,null,{},n);return new je("",new T(s,[]))}var V=class{urlSubject;paramsSubject;queryParamsSubject;fragmentSubject;dataSubject;outlet;component;snapshot;_futureSnapshot;_routerState;_paramMap;_queryParamMap;title;url;params;queryParams;fragment;data;constructor(n,t,r,i,o,s,a,c){this.urlSubject=n,this.paramsSubject=t,this.queryParamsSubject=r,this.fragmentSubject=i,this.dataSubject=o,this.outlet=s,this.component=a,this._futureSnapshot=c,this.title=this.dataSubject?.pipe(I(u=>u[ze]))??g(void 0),this.url=n,this.params=t,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(I(n=>re(n))),this._paramMap}get queryParamMap(){return this._queryParamMap??=this.queryParams.pipe(I(n=>re(n))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}};function cr(e,n,t="emptyOnly"){let r,{routeConfig:i}=e;return n!==null&&(t==="always"||i?.path===""||!n.component&&!n.routeConfig?.loadComponent)?r={params:l(l({},n.params),e.params),data:l(l({},n.data),e.data),resolve:l(l(l(l({},e.data),n.data),i?.data),e._resolvedData)}:r={params:l({},e.params),data:l({},e.data),resolve:l(l({},e.data),e._resolvedData??{})},i&&Tn(i)&&(r.resolve[ze]=i.title),r}var we=class{url;params;queryParams;fragment;data;outlet;component;routeConfig;_resolve;_resolvedData;_routerState;_paramMap;_queryParamMap;_environmentInjector;get title(){return this.data?.[ze]}constructor(n,t,r,i,o,s,a,c,u,h){this.url=n,this.params=t,this.queryParams=r,this.fragment=i,this.data=o,this.outlet=s,this.component=a,this.routeConfig=c,this._resolve=u,this._environmentInjector=h}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap??=re(this.params),this._paramMap}get queryParamMap(){return this._queryParamMap??=re(this.queryParams),this._queryParamMap}toString(){let n=this.url.map(r=>r.toString()).join("/"),t=this.routeConfig?this.routeConfig.path:"";return`Route(url:'${n}', path:'${t}')`}},je=class extends vt{url;constructor(n,t){super(t),this.url=n,ur(this,t)}toString(){return Mn(this._root)}};function ur(e,n){n.value._routerState=e,n.children.forEach(t=>ur(e,t))}function Mn(e){let n=e.children.length>0?` { ${e.children.map(Mn).join(", ")} } `:"";return`${e.value}${n}`}function Gt(e){if(e.snapshot){let n=e.snapshot,t=e._futureSnapshot;e.snapshot=t,$(n.queryParams,t.queryParams)||e.queryParamsSubject.next(t.queryParams),n.fragment!==t.fragment&&e.fragmentSubject.next(t.fragment),$(n.params,t.params)||e.paramsSubject.next(t.params),ci(n.url,t.url)||e.urlSubject.next(t.url),$(n.data,t.data)||e.dataSubject.next(t.data)}else e.snapshot=e._futureSnapshot,e.dataSubject.next(e._futureSnapshot.data)}function tr(e,n){let t=$(e.params,n.params)&&fi(e.url,n.url),r=!e.parent!=!n.parent;return t&&!r&&(!e.parent||tr(e.parent,n.parent))}
1function Tn(e){return typeof e.title=="string"||e.title===null}var Dn=new E(""),lr=(()=>{class e{activated=null;get activatedComponentRef(){return this.activated}_activatedRoute=null;name=f;activateEvents=new de;deactivateEvents=new de;attachEvents=new de;detachEvents=new de;routerOutletData=Qr();parentContexts=d(ae);location=d(zr);changeDetector=d(zt);inputBinder=d(He,{optional:!0});supportsBindingToComponentInputs=!0;ngOnChanges(t){if(t.name){let{firstChange:r,previousValue:i}=t.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(t){return this.parentContexts.getContext(t)?.outlet===this}ngOnInit(){this.initializeOutletWithName()}initializeOutletWithName(){if(this.parentContexts.onChildOutletCreated(this.name,this),this.activated)return;let t=this.parentContexts.getContext(this.name);t?.route&&(t.attachRef?this.attach(t.attachRef,t.route):this.activateWith(t.route,t.injector))}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new C(4012,!1);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new C(4012,!1);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new C(4012,!1);this.location.detach();let t=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(t.instance),t}attach(t,r){this.activated=t,this._activatedRoute=r,this.location.insert(t.hostView),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.attachEvents.emit(t.instance)}deactivate(){if(this.activated){let t=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(t)}}activateWith(t,r){if(this.isActivated)throw new C(4013,!1);this._activatedRoute=t;let i=this.location,s=t.snapshot.component,a=this.parentContexts.getOrCreateContext(this.name).children,c=new rr(t,a,i.injector,this.routerOutletData);this.activated=i.createComponent(s,{index:i.length,injector:c,environmentInjector:r}),this.changeDetector.markForCheck(),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.activateEvents.emit(this.activated.instance)}static \u0275fac=function(r){return new(r||e)};static \u0275dir=xt({type:e,selectors:[["router-outlet"]],inputs:{name:"name",routerOutletData:[1,"routerOutletData"]},outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"],features:[Ot]})}return e})(),rr=class{route;childContexts;parent;outletData;constructor(n,t,r,i){this.route=n,this.childContexts=t,this.parent=r,this.outletData=i}get(n,t){return n===V?this.route:n===ae?this.childContexts:n===Dn?this.outletData:this.parent.get(n,t)}},He=new E(""),dr=(()=>{class e{outletDataSubscriptions=new Map;bindActivatedRouteToOutletComponent(t){this.unsubscribeFromRouteData(t),this.subscribeToRouteData(t)}unsubscribeFromRouteData(t){this.outletDataSubscriptions.get(t)?.unsubscribe(),this.outletDataSubscriptions.delete(t)}subscribeToRouteData(t){let{activatedRoute:r}=t,i=Mt([r.queryParams,r.params,r.data]).pipe(P(([o,s,a],c)=>(a=l(l(l({},o),s),a),c===0?g(a):Promise.resolve(a)))).subscribe(o=>{if(!t.isActivated||!t.activatedComponentRef||t.activatedRoute!==r||r.component===null){this.unsubscribeFromRouteData(t);return}let s=Kr(r.component);if(!s){this.unsubscribeFromRouteData(t);return}for(let{templateName:a}of s.inputs)t.activatedComponentRef.setInput(a,o[a])});this.outletDataSubscriptions.set(t,i)}static \u0275fac=function(r){return new(r||e)};static \u0275prov=S({token:e,factory:e.\u0275fac})}return e})(),hr=(()=>{class e{static \u0275fac=function(r){return new(r||e)};static \u0275cmp=Fr({type:e,selectors:[["ng-component"]],exportAs:["emptyRouterOutlet"],decls:1,vars:0,template:function(r,i){r&1&&Gr(0,"router-outlet")},dependencies:[lr],encapsulation:2})}return e})();function fr(e){let n=e.children&&e.children.map(fr),t=n?A(l({},e),{children:n}):l({},e);return!t.component&&!t.loadComponent&&(n||t.loadChildren)&&t.outlet&&t.outlet!==f&&(t.component=hr),t}function Li(e,n,t){let r=ke(e,n._root,t?t._root:void 0);return new xe(r,n)}function ke(e,n,t){if(t&&e.shouldReuseRoute(n.value,t.value.snapshot)){let r=t.value;r._futureSnapshot=n.value;let i=xi(e,n,t);return new T(r,i)}else{if(e.shouldAttach(n.value)){let o=e.retrieve(n.value);if(o!==null){let s=o.route;return s.value._futureSnapshot=n.value,s.children=n.children.map(a=>ke(e,a)),s}}let r=ji(n.value),i=n.children.map(o=>ke(e,o));return new T(r,i)}}function xi(e,n,t){return n.children.map(r=>{for(let i of t.children)if(e.shouldReuseRoute(r.value,i.value.snapshot))return ke(e,r,i);return ke(e,r)})}function ji(e){return new V(new N(e.url),new N(e.params),new N(e.queryParams),new N(e.fragment),new N(e.data),e.outlet,e.component,e)}var be=class{redirectTo;navigationBehaviorOptions;constructor(n,t){this.redirectTo=n,this.navigationBehaviorOptions=t}},Nn="ngNavigationCancelingError";function mt(e,n){let{redirectTo:t,navigationBehaviorOptions:r}=me(n)?{redirectTo:n,navigationBehaviorOptions:void 0}:n,i=_n(!1,w.Redirect);return i.url=t,i.navigationBehaviorOptions=r,i}function _n(e,n){let t=new Error(`NavigationCancelingError: ${e||""}`);return t[Nn]=!0,t.cancellationCode=n,t}function ki(e){return Un(e)&&me(e.url)}function Un(e){return!!e&&e[Nn]}var nr=class{routeReuseStrategy;futureState;currState;forwardEvent;inputBindingEnabled;constructor(n,t,r,i,o){this.routeReuseStrategy=n,this.futureState=t,this.currState=r,this.forwardEvent=i,this.inputBindingEnabled=o}activate(n){let t=this.futureState._root,r=this.currState?this.currState._root:null;this.deactivateChildRoutes(t,r,n),Gt(this.futureState.root),this.activateChildRoutes(t,r,n)}deactivateChildRoutes(n,t,r){let i=fe(t);
1n.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,t,r){let i=n.value,o=t?t.value:null;if(i===o)if(i.component){let s=r.getContext(i.outlet);s&&this.deactivateChildRoutes(n,t,s.children)}else this.deactivateChildRoutes(n,t,r);else o&&this.deactivateRouteAndItsChildren(t,r)}deactivateRouteAndItsChildren(n,t){n.value.component&&this.routeReuseStrategy.shouldDetach(n.value.snapshot)?this.detachAndStoreRouteSubtree(n,t):this.deactivateRouteAndOutlet(n,t)}detachAndStoreRouteSubtree(n,t){let r=t.getContext(n.value.outlet),i=r&&n.value.component?r.children:t,o=fe(n);for(let s of Object.values(o))this.deactivateRouteAndItsChildren(s,i);if(r&&r.outlet){let s=r.outlet.detach(),a=r.children.onOutletDeactivated();this.routeReuseStrategy.store(n.value.snapshot,{componentRef:s,route:n,contexts:a})}}deactivateRouteAndOutlet(n,t){let r=t.getContext(n.value.outlet),i=r&&n.value.component?r.children:t,o=fe(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)}activateChildRoutes(n,t,r){let i=fe(t);n.children.forEach(o=>{this.activateRoutes(o,i[o.value.outlet],r),this.forwardEvent(new pt(o.value.snapshot))}),n.children.length&&this.forwardEvent(new ht(n.value.snapshot))}activateRoutes(n,t,r){let i=n.value,o=t?t.value:null;if(Gt(i),i===o)if(i.component){let s=r.getOrCreateContext(i.outlet);this.activateChildRoutes(n,t,s.children)}else this.activateChildRoutes(n,t,r);else if(i.component){let s=r.getOrCreateContext(i.outlet);if(this.routeReuseStrategy.shouldAttach(i.snapshot)){let a=this.routeReuseStrategy.retrieve(i.snapshot);this.routeReuseStrategy.store(i.snapshot,null),s.children.onOutletReAttached(a.contexts),s.attachRef=a.componentRef,s.route=a.route.value,s.outlet&&s.outlet.attach(a.componentRef,a.route.value),Gt(a.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)}},yt=class{path;route;constructor(n){this.path=n,this.route=this.path[this.path.length-1]}},ve=class{component;route;constructor(n,t){this.component=n,this.route=t}};function $i(e,n,t){let r=e._root,i=n?n._root:null;return Ne(r,i,t,[r.value])}function zi(e){let n=e.routeConfig?e.routeConfig.canActivateChild:null;return!n||n.length===0?null:{node:e,guards:n}}function Ee(e,n){let t=Symbol(),r=n.get(e,t);return r===t?typeof e=="function"&&!_r(e)?e:n.get(e):r}function Ne(e,n,t,r,i={canDeactivateChecks:[],canActivateChecks:[]}){let o=fe(n);return e.children.forEach(s=>{Hi(s,o[s.value.outlet],t,r.concat([s.value]),i),delete o[s.value.outlet]}),Object.entries(o).forEach(([s,a])=>Ue(a,t.getContext(s),i)),i}function Hi(e,n,t,r,i={canDeactivateChecks:[],canActivateChecks:[]}){let o=e.value,s=n?n.value:null,a=t?t.getContext(e.value.outlet):null;if(s&&o.routeConfig===s.routeConfig){let c=Fi(s,o,o.routeConfig.runGuardsAndResolvers);c?i.canActivateChecks.push(new yt(r)):(o.data=s.data,o._resolvedData=s._resolvedData),o.component?Ne(e,n,a?a.children:null,r,i):Ne(e,n,t,r,i),c&&a&&a.outlet&&a.outlet.isActivated&&i.canDeactivateChecks.push(new ve(a.outlet.component,s))}else s&&Ue(n,a,i),i.canActivateChecks.push(new yt(r)),o.component?Ne(e,null,a?a.children:null,r,i):Ne(e,null,t,r,i);return i}function Fi(e,n,t){if(typeof t=="function")return M(n._environmentInjector,()=>t(e,n));switch(t){case"pathParamsChange":return!te(e.url,n.url);case"pathParamsOrQueryParamsChange":return!te(e.url,n.url)||!$(e.queryParams,n.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!tr(e,n)||!$(e.queryParams,n.queryParams);default:return!tr(e,n)}}function Ue(e,n,t){let r=fe(e),i=e.value;Object.entries(r).forEach(([o,s])=>{i.component?n?Ue(s,n.children.getContext(o),t):Ue(s,null,t):Ue(s,n,t)}),i.component?n&&n.outlet&&n.outlet.isActivated?t.canDeactivateChecks.push(new ve(n.outlet.component,i)):t.canDeactivateChecks.push(new ve(null,i)):t.canDeactivateChecks.push(new ve(null,i))}function Fe(e){return typeof e=="function"}function qi(e){return typeof e=="boolean"}function Bi(e){return e&&Fe(e.canLoad)}function Vi(e){return e&&Fe(e.canActivate)}function Gi(e){return e&&Fe(e.canActivateChild)}function Wi(e){return e&&Fe(e.canDeactivate)}function Qi(e){return e&&Fe(e.canMatch)}function On(e){return e instanceof Er||e?.name==="EmptyError"}var Je=Symbol("INITIAL_VALUE");function Ie(){return P(e=>Mt(e.map(n=>n.pipe(le(1),Tr(Je)))).pipe(I(n=>{for(let t of n)if(t!==!0){if(t===Je)return Je;if(t===!1||Ki(t))return t}return!0}),G(n=>n!==Je),le(1)))}function Ki(e){return me(e)||e instanceof be}function Pn(e){return e.aborted?g(void 0).pipe(le(1)):new br(n=>{let t=()=>{n.next(),n.complete()};return e.addEventListener("abort",t),()=>e.removeEventListener("abort",t)})}function Ln(e){return Qe(Pn(e))}function Yi(e){return k(n=>{let{targetSnapshot:t,currentSnapshot:r,guards:{canActivateChecks:i,canDeactivateChecks:o}}=n;return o.length===0&&i.length===0?g(A(l({},n),{guardsResult:!0})):Zi(o,t,r).pipe(k(s=>s&&qi(s)?Ji(t,i,e):g(s)),I(s=>A(l({},n),{guardsResult:s})))})}function Zi(e,n,t){return b(e).pipe(k(r=>no(r.component,r.route,t,n)),W(r=>r!==!0,!0))}function Ji(e,n,t){return b(n).pipe(Te(r=>Ar(eo(r.route.parent,t),Xi(r.route,t),ro(e,r.path),to(e,r.route))),W(r=>r!==!0,!0))}function Xi(e,n){return e!==null&&n&&n(new ft(e)),g(!0)}function eo(e,n){return e!==null&&n&&n(new dt(e)),g(!0)}
1function to(e,n){let t=n.routeConfig?n.routeConfig.canActivate:null;if(!t||t.length===0)return g(!0);let r=t.map(i=>Ge(()=>{let o=n._environmentInjector,s=Ee(i,o),a=Vi(s)?s.canActivate(n,e):M(o,()=>s(n,e));return ie(a).pipe(W())}));return g(r).pipe(Ie())}function ro(e,n){let t=n[n.length-1],i=n.slice(0,n.length-1).reverse().map(o=>zi(o)).filter(o=>o!==null).map(o=>Ge(()=>{let s=o.guards.map(a=>{let c=o.node._environmentInjector,u=Ee(a,c),h=Gi(u)?u.canActivateChild(t,e):M(c,()=>u(t,e));return ie(h).pipe(W())});return g(s).pipe(Ie())}));return g(i).pipe(Ie())}function no(e,n,t,r){let i=n&&n.routeConfig?n.routeConfig.canDeactivate:null;if(!i||i.length===0)return g(!0);let o=i.map(s=>{let a=n._environmentInjector,c=Ee(s,a),u=Wi(c)?c.canDeactivate(e,n,t,r):M(a,()=>c(e,n,t,r));return ie(u).pipe(W())});return g(o).pipe(Ie())}function io(e,n,t,r,i){let o=n.canLoad;if(o===void 0||o.length===0)return g(!0);let s=o.map(a=>{let c=Ee(a,e),u=Bi(c)?c.canLoad(n,t):M(e,()=>c(n,t)),h=ie(u);return i?h.pipe(Ln(i)):h});return g(s).pipe(Ie(),xn(r))}function xn(e){return wr(L(n=>{if(typeof n!="boolean")throw mt(e,n)}),I(n=>n===!0))}function oo(e,n,t,r,i,o){let s=n.canMatch;if(!s||s.length===0)return g(!0);let a=s.map(c=>{let u=Ee(c,e),h=Qi(u)?u.canMatch(n,t,i):M(e,()=>u(n,t,i));return ie(h).pipe(Ln(o))});return g(a).pipe(Ie(),xn(r))}var q=class e extends Error{segmentGroup;constructor(n){super(),this.segmentGroup=n||null,Object.setPrototypeOf(this,e.prototype)}},$e=class e extends Error{urlTree;constructor(n){super(),this.urlTree=n,Object.setPrototypeOf(this,e.prototype)}};function ao(e){throw new C(4e3,!1)}function so(e){throw _n(!1,w.GuardRejected)}var ir=class{urlSerializer;urlTree;constructor(n,t){this.urlSerializer=n,this.urlTree=t}lineralizeSegments(n,t){return m(this,null,function*(){let r=[],i=t.root;for(;;){if(r=r.concat(i.segments),i.numberOfChildren===0)return r;if(i.numberOfChildren>1||!i.children[f])throw ao(`${n.redirectTo}`);i=i.children[f]}})}applyRedirectCommands(n,t,r,i,o){return m(this,null,function*(){let s=yield co(t,i,o);if(s instanceof O)throw new $e(s);let a=this.applyRedirectCreateUrlTree(s,this.urlSerializer.parse(s),n,r);if(s[0]==="/")throw new $e(a);return a})}applyRedirectCreateUrlTree(n,t,r,i){let o=this.createSegmentGroup(n,t.root,r,i);return new O(o,this.createQueryParams(t.queryParams,this.urlTree.queryParams),t.fragment)}createQueryParams(n,t){let r={};return Object.entries(n).forEach(([i,o])=>{if(typeof o=="string"&&o[0]===":"){let a=o.substring(1);r[i]=t[a]}else r[i]=o}),r}createSegmentGroup(n,t,r,i){let o=this.createSegments(n,t.segments,r,i),s={};return Object.entries(t.children).forEach(([a,c])=>{s[a]=this.createSegmentGroup(n,c,r,i)}),new v(o,s)}createSegments(n,t,r,i){return t.map(o=>o.path[0]===":"?this.findPosParam(n,o,i):this.findOrReturn(o,r))}findPosParam(n,t,r){let i=r[t.path.substring(1)];if(!i)throw new C(4001,!1);return i}findOrReturn(n,t){let r=0;for(let i of t){if(i.path===n.path)return t.splice(r),i;r++}return n}};function co(e,n,t){if(typeof e=="string")return Promise.resolve(e);let r=e;return rt(ie(M(t,()=>r(n))))}function uo(e,n){return e.providers&&!e._injector&&(e._injector=Ye(e.providers,n,`Route: ${e.path}`)),e._injector??n}function x(e){return e.outlet||f}function lo(e,n){let t=e.filter(r=>x(r)===n);return t.push(...e.filter(r=>x(r)!==n)),t}var or={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function jn(e){return{routeConfig:e.routeConfig,url:e.url,params:e.params,queryParams:e.queryParams,fragment:e.fragment,data:e.data,outlet:e.outlet,title:e.title,paramMap:e.paramMap,queryParamMap:e.queryParamMap}}function ho(e,n,t,r,i,o,s){let a=kn(e,n,t);if(!a.matched)return g(a);let c=jn(o(a));return r=uo(n,r),oo(r,n,t,i,c,s).pipe(I(u=>u===!0?a:l({},or)))}function kn(e,n,t){if(n.path==="")return n.pathMatch==="full"&&(e.hasChildren()||t.length>0)?l({},or):{matched:!0,consumedSegments:[],remainingSegments:t,parameters:{},positionalParamSegments:{}};let i=(n.matcher||cn)(t,e,n);if(!i)return l({},or);let o={};Object.entries(i.posParams??{}).forEach(([a,c])=>{o[a]=c.path});let s=i.consumed.length>0?l(l({},o),i.consumed[i.consumed.length-1].parameters):o;return{matched:!0,consumedSegments:i.consumed,remainingSegments:t.slice(i.consumed.length),parameters:s,positionalParamSegments:i.posParams??{}}}function an(e,n,t,r,i){return t.length>0&&go(e,t,r,i)?{segmentGroup:new v(n,po(r,new v(t,e.children))),slicedSegments:[]}:t.length===0&&vo(e,t,r)?{segmentGroup:new v(e.segments,fo(e,t,r,e.children)),slicedSegments:t}:{segmentGroup:new v(e.segments,e.children),slicedSegments:t}}function fo(e,n,t,r){let i={};for(let o of t)if(St(e,n,o)&&!r[x(o)]){let s=new v([],{});i[x(o)]=s}return l(l({},r),i)}function po(e,n){let t={};t[f]=n;for(let r of e)if(r.path===""&&x(r)!==f){let i=new v([],{});t[x(r)]=i}return t}function go(e,n,t,r){return t.some(i=>!St(e,n,i)||!(x(i)!==f)?!1:!(r!==void 0&&x(i)===r))}function vo(e,n,t){return t.some(r=>St(e,n,r))}function St(e,n,t){return(e.hasChildren()||n.length>0)&&t.pathMatch==="full"?!1:t.path===""}function mo(e,n,t){return n.length===0&&!e.children[t]}var ar=class{};function yo(e,n,t,r,i,o,s="emptyOnly",a){return m(this,null,function*(){return new sr(e,n,t,r,i,s,o,a).recognize()})}var Ro=31,sr=class{injector;configLoader;rootComponentType;config;urlTree;paramsInheritanceStrategy;urlSerializer;abortSignal;applyRedirects;absoluteRedirectCount=0;allowRedirects=!0;constructor(n,t,r,i,o,s,a,c){this.injector=n,this.configLoader=t,this.rootComponentType=r,this.config=i,this.urlTree=o,this.paramsInheritanceStrategy=s,this.urlSerializer
1=a,this.abortSignal=c,this.applyRedirects=new ir(this.urlSerializer,this.urlTree)}noMatchError(n){return new C(4002,`'${n.segmentGroup}'`)}recognize(){return m(this,null,function*(){let n=an(this.urlTree.root,[],[],this.config).segmentGroup,{children:t,rootSnapshot:r}=yield this.match(n),i=new T(r,t),o=new je("",i),s=Sn(r,[],this.urlTree.queryParams,this.urlTree.fragment);return s.queryParams=this.urlTree.queryParams,o.url=this.urlSerializer.serialize(s),{state:o,tree:s}})}match(n){return m(this,null,function*(){let t=new we([],Object.freeze({}),Object.freeze(l({},this.urlTree.queryParams)),this.urlTree.fragment,Object.freeze({}),f,this.rootComponentType,null,{},this.injector);try{return{children:yield this.processSegmentGroup(this.injector,this.config,n,f,t),rootSnapshot:t}}catch(r){if(r instanceof $e)return this.urlTree=r.urlTree,this.match(r.urlTree.root);throw r instanceof q?this.noMatchError(r):r}})}processSegmentGroup(n,t,r,i,o){return m(this,null,function*(){if(r.segments.length===0&&r.hasChildren())return this.processChildren(n,t,r,o);let s=yield this.processSegment(n,t,r,r.segments,i,!0,o);return s instanceof T?[s]:[]})}processChildren(n,t,r,i){return m(this,null,function*(){let o=[];for(let c of Object.keys(r.children))c==="primary"?o.unshift(c):o.push(c);let s=[];for(let c of o){let u=r.children[c],h=lo(t,c),p=yield this.processSegmentGroup(n,h,u,c,i);s.push(...p)}let a=$n(s);return So(a),a})}processSegment(n,t,r,i,o,s,a){return m(this,null,function*(){for(let c of t)try{return yield this.processSegmentAgainstRoute(c._injector??n,t,c,r,i,o,s,a)}catch(u){if(u instanceof q||On(u))continue;throw u}if(mo(r,i,o))return new ar;throw new q(r)})}processSegmentAgainstRoute(n,t,r,i,o,s,a,c){return m(this,null,function*(){if(x(r)!==s&&(s===f||!St(i,o,r)))throw new q(i);if(r.redirectTo===void 0)return this.matchSegmentAgainstRoute(n,i,r,o,s,c);if(this.allowRedirects&&a)return this.expandSegmentAgainstRouteUsingRedirect(n,i,t,r,o,s,c);throw new q(i)})}expandSegmentAgainstRouteUsingRedirect(n,t,r,i,o,s,a){return m(this,null,function*(){let{matched:c,parameters:u,consumedSegments:h,positionalParamSegments:p,remainingSegments:y}=kn(t,i,o);if(!c)throw new q(t);typeof i.redirectTo=="string"&&i.redirectTo[0]==="/"&&(this.absoluteRedirectCount++,this.absoluteRedirectCount>Ro&&(this.allowRedirects=!1));let X=this.createSnapshot(n,i,o,u,a);if(this.abortSignal.aborted)throw new Error(this.abortSignal.reason);let H=yield this.applyRedirects.applyRedirectCommands(h,i.redirectTo,p,jn(X),n),ee=yield this.applyRedirects.lineralizeSegments(i,H);return this.processSegment(n,r,t,ee.concat(y),s,!1,a)})}createSnapshot(n,t,r,i,o){let s=new we(r,i,Object.freeze(l({},this.urlTree.queryParams)),this.urlTree.fragment,wo(t),x(t),t.component??t._loadedComponent??null,t,bo(t),n),a=cr(s,o,this.paramsInheritanceStrategy);return s.params=Object.freeze(a.params),s.data=Object.freeze(a.data),s}matchSegmentAgainstRoute(n,t,r,i,o,s){return m(this,null,function*(){if(this.abortSignal.aborted)throw new Error(this.abortSignal.reason);let a=Ve=>this.createSnapshot(n,r,Ve.consumedSegments,Ve.parameters,s),c=yield rt(ho(t,r,i,n,this.urlSerializer,a,this.abortSignal));if(r.path==="**"&&(t.children={}),!c?.matched)throw new q(t);n=r._injector??n;let{routes:u}=yield this.getChildConfig(n,r,i),h=r._loadedInjector??n,{parameters:p,consumedSegments:y,remainingSegments:X}=c,H=this.createSnapshot(n,r,y,p,s),{segmentGroup:ee,slicedSegments:Ae}=an(t,y,X,u,o);if(Ae.length===0&&ee.hasChildren()){let Ve=yield this.processChildren(h,u,ee,H);return new T(H,Ve)}if(u.length===0&&Ae.length===0)return new T(H,[]);let Et=x(r)===o,Me=yield this.processSegment(h,u,ee,Ae,Et?f:o,!0,H);return new T(H,Me instanceof T?[Me]:[])})}getChildConfig(n,t,r){return m(this,null,function*(){if(t.children)return{routes:t.children,injector:n};if(t.loadChildren){if(t._loadedRoutes!==void 0){let o=t._loadedNgModuleFactory;return o&&!t._loadedInjector&&(t._loadedInjector=o.create(n).injector),{routes:t._loadedRoutes,injector:t._loadedInjector}}if(this.abortSignal.aborted)throw new Error(this.abortSignal.reason);
1if(yield rt(io(n,t,r,this.urlSerializer,this.abortSignal))){let o=yield this.configLoader.loadChildren(n,t);return t._loadedRoutes=o.routes,t._loadedInjector=o.injector,t._loadedNgModuleFactory=o.factory,o}throw so(t)}return{routes:[],injector:n}})}};function So(e){e.sort((n,t)=>n.value.outlet===f?-1:t.value.outlet===f?1:n.value.outlet.localeCompare(t.value.outlet))}function Co(e){let n=e.value.routeConfig;return n&&n.path===""}function $n(e){let n=[],t=new Set;for(let r of e){if(!Co(r)){n.push(r);continue}let i=n.find(o=>r.value.routeConfig===o.value.routeConfig);i!==void 0?(i.children.push(...r.children),t.add(i)):n.push(r)}for(let r of t){let i=$n(r.children);n.push(new T(r.value,i))}return n.filter(r=>!t.has(r))}function wo(e){return e.data||{}}function bo(e){return e.resolve||{}}function Io(e,n,t,r,i,o,s){return k(a=>m(null,null,function*(){let{state:c,tree:u}=yield yo(e,n,t,r,a.extractedUrl,i,o,s);return A(l({},a),{targetSnapshot:c,urlAfterRedirects:u})}))}function Eo(e){return k(n=>{let{targetSnapshot:t,guards:{canActivateChecks:r}}=n;if(!r.length)return g(n);let i=new Set(r.map(a=>a.route)),o=new Set;for(let a of i)if(!o.has(a))for(let c of zn(a))o.add(c);let s=0;return b(o).pipe(Te(a=>i.has(a)?Ao(a,t,e):(a.data=cr(a,a.parent,e).resolve,g(void 0))),L(()=>s++),Dt(1),k(a=>s===o.size?g(n):_))})}function zn(e){let n=e.children.map(t=>zn(t)).flat();return[e,...n]}function Ao(e,n,t){let r=e.routeConfig,i=e._resolve;return r?.title!==void 0&&!Tn(r)&&(i[ze]=r.title),Ge(()=>(e.data=cr(e,e.parent,t).resolve,Mo(i,e,n).pipe(I(o=>(e._resolvedData=o,e.data=l(l({},e.data),o),null)))))}function Mo(e,n,t){let r=Qt(e);if(r.length===0)return g({});let i={};return b(r).pipe(k(o=>To(e[o],n,t).pipe(W(),L(s=>{if(s instanceof be)throw mt(new B,s);i[o]=s}))),Dt(1),I(()=>i),We(o=>On(o)?_:Ir(o)))}function To(e,n,t){let r=n._environmentInjector,i=Ee(e,r),o=i.resolve?i.resolve(n,t):M(r,()=>i(n,t));return ie(o)}function sn(e){return P(n=>{let t=e(n);return t?b(t).pipe(I(()=>n)):g(n)})}var pr=(()=>{class e{buildTitle(t){let r,i=t.root;for(;i!==void 0;)r=this.getResolvedTitleForRoute(i)??r,i=i.children.find(o=>o.outlet===f);return r}getResolvedTitleForRoute(t){return t.data[ze]}static \u0275fac=function(r){return new(r||e)};static \u0275prov=S({token:e,factory:()=>d(Hn),providedIn:"root"})}return e})(),Hn=(()=>{class e extends pr{title;constructor(t){super(),this.title=t}updateTitle(t){let r=this.buildTitle(t);r!==void 0&&this.title.setTitle(r)}static \u0275fac=function(r){return new(r||e)(Q(Xr))};static \u0275prov=S({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),se=new E("",{factory:()=>({})}),ce=new E(""),Ct=(()=>{class e{componentLoaders=new WeakMap;childrenLoaders=new WeakMap;onLoadStartListener;onLoadEndListener;compiler=d(Wr);loadComponent(t,r){return m(this,null,function*(){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=m(this,null,function*(){try{let o=yield ln(M(t,()=>r.loadComponent())),s=yield Bn(qn(o));return this.onLoadEndListener&&this.onLoadEndListener(r),r._loadedComponent=s,s}finally{this.componentLoaders.delete(r)}});return this.componentLoaders.set(r,i),i})}loadChildren(t,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=m(this,null,function*(){try{let o=yield Fn(r,this.compiler,t,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 \u0275fac=function(r){return new(r||e)};static \u0275prov=S({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function Fn(e,n,t,r){return m(this,null,function*(){let i=yield ln(M(t,()=>e.loadChildren())),o=yield Bn(qn(i)),s;o instanceof Hr||Array.isArray(o)?s=o:s=yield n.compileModuleAsync(o),r&&r(e);let a,c,u=!1,h;return Array.isArray(s)?(c=s,u=!0):(a=s.create(t).injector,h=s,c=a.get(ce,[],{optional:!0,self:!0}).flat()),{routes:c.map(fr),injector:a,factory:h}})}function Do(e){return e&&typeof e=="object"&&"default"in e}function qn(e){return Do(e)?e.default:e}function Bn(e){return m(this,null,function*(){return e})}var wt=(()=>{class e{static \u0275fac=function(r){return new(r||e)};static \u0275prov=S({token:e,factory:()=>d(No),providedIn:"root"})}return e})(),No=(()=>{class e{shouldProcessUrl(t){return!0}extract(t){return t}merge(t,r){return t}static \u0275fac=function(r){return new(r||e)};static \u0275prov=S({token:e,factory:e.\u0275fac,providedIn:"root"})}return e}
1)(),gr=new E(""),vr=new E("");function Vn(e,n,t){let r=e.get(vr),i=e.get(Or);if(!i.startViewTransition||r.skipNextTransition)return r.skipNextTransition=!1,new Promise(u=>setTimeout(u));let o,s=new Promise(u=>{o=u}),a=i.startViewTransition(()=>(o(),_o(e)));a.updateCallbackDone.catch(u=>{}),a.ready.catch(u=>{}),a.finished.catch(u=>{});let{onViewTransitionCreated:c}=r;return c&&M(e,()=>c({transition:a,from:n,to:t})),s}function _o(e){return new Promise(n=>{Lt({read:()=>setTimeout(n)},{injector:e})})}var Uo=()=>{},mr=new E(""),bt=(()=>{class e{currentNavigation=Ke(null,{equal:()=>!1});currentTransition=null;lastSuccessfulNavigation=Ke(null);events=new ue;transitionAbortWithErrorSubject=new ue;configLoader=d(Ct);environmentInjector=d(F);destroyRef=d(_t);urlSerializer=d(oe);rootContexts=d(ae);location=d(he);inputBindingEnabled=d(He,{optional:!0})!==null;titleStrategy=d(pr);options=d(se,{optional:!0})||{};paramsInheritanceStrategy=this.options.paramsInheritanceStrategy||"emptyOnly";urlHandlingStrategy=d(wt);createViewTransition=d(gr,{optional:!0});navigationErrorHandler=d(mr,{optional:!0});navigationId=0;get hasRequestedNavigation(){return this.navigationId!==0}transitions;afterPreactivation=()=>g(void 0);rootComponentType=null;destroyed=!1;constructor(){let t=i=>this.events.next(new ut(i)),r=i=>this.events.next(new lt(i));this.configLoader.onLoadEndListener=r,this.configLoader.onLoadStartListener=t,this.destroyRef.onDestroy(()=>{this.destroyed=!0})}complete(){this.transitions?.complete()}handleNavigationRequest(t){let r=++this.navigationId;K(()=>{this.transitions?.next(A(l({},t),{extractedUrl:this.urlHandlingStrategy.extract(t.rawUrl),targetSnapshot:null,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null,id:r,routesRecognizeHandler:{},beforeActivateHandler:{}}))})}setupNavigations(t){return this.transitions=new N(null),this.transitions.pipe(G(r=>r!==null),P(r=>{let i=!1,o=new AbortController,s=()=>!i&&this.currentTransition?.id===r.id;return g(r).pipe(P(a=>{if(this.navigationId>r.id)return this.cancelNavigationTransition(r,"",w.SupersededByNewNavigation),_;this.currentTransition=r;let c=this.lastSuccessfulNavigation();this.currentNavigation.set({id:a.id,initialUrl:a.rawUrl,extractedUrl:a.extractedUrl,targetBrowserUrl:typeof a.extras.browserUrl=="string"?this.urlSerializer.parse(a.extras.browserUrl):a.extras.browserUrl,trigger:a.source,extras:a.extras,previousNavigation:c?A(l({},c),{previousNavigation:null}):null,abort:()=>o.abort(),routesRecognizeHandler:a.routesRecognizeHandler,beforeActivateHandler:a.beforeActivateHandler});let u=!t.navigated||this.isUpdatingInternalState()||this.isUpdatedBrowserUrl(),h=a.extras.onSameUrlNavigation??t.onSameUrlNavigation;if(!u&&h!=="reload")return this.events.next(new z(a.id,this.urlSerializer.serialize(a.rawUrl),"",ye.IgnoredSameUrlNavigation)),a.resolve(!1),_;if(this.urlHandlingStrategy.shouldProcessUrl(a.rawUrl))return g(a).pipe(P(p=>(this.events.next(new Z(p.id,this.urlSerializer.serialize(p.extractedUrl),p.source,p.restoredState)),p.id!==this.navigationId?_:Promise.resolve(p))),Io(this.environmentInjector,this.configLoader,this.rootComponentType,t.config,this.urlSerializer,this.paramsInheritanceStrategy,o.signal),L(p=>{r.targetSnapshot=p.targetSnapshot,r.urlAfterRedirects=p.urlAfterRedirects,this.currentNavigation.update(y=>(y.finalUrl=p.urlAfterRedirects,y)),this.events.next(new Le)}),P(p=>b(r.routesRecognizeHandler.deferredHandle??g(void 0)).pipe(I(()=>p))),L(()=>{let p=new Pe(a.id,this.urlSerializer.serialize(a.extractedUrl),this.urlSerializer.serialize(a.urlAfterRedirects),a.targetSnapshot);this.events.next(p)}));if(u&&this.urlHandlingStrategy.shouldProcessUrl(a.currentRawUrl)){let{id:p,extractedUrl:y,source:X,restoredState:H,extras:ee}=a,Ae=new Z(p,this.urlSerializer.serialize(y),X,H);this.events.next(Ae);let Et=An(this.rootComponentType,this.environmentInjector).snapshot;return this.currentTransition=r=A(l({},a),{targetSnapshot:Et,urlAfterRedirects:y,extras:A(l({},ee),{skipLocationChange:!1,replaceUrl:!1})}),this.currentNavigation.update(Me=>(Me.finalUrl=y,Me)),g(r)}else return this.events.next(new z(a.id,this.urlSerializer.serialize(a.extractedUrl),"",ye.IgnoredByUrlHandlingStrategy)),a.resolve(!1),_}),I(a=>{let c=new ot(a.id,this.urlSerializer.serialize(a.extractedUrl),this.urlSerializer.serialize(a.urlAfterRedirects),a.targetSnapshot);return this.events.next(c),this.currentTransition=r=A(l({},a),{guards:$i(a.targetSnapshot,a.currentSnapshot,this.rootContexts)}),r}),Yi(a=>this.events.next(a)),P(a=>{if(r.guardsResult=a.guardsResult,a.guardsResult&&typeof a.guardsResult!="boolean")throw mt(this.urlSerializer,a.guardsResult);let c=new at(a.id,this.urlSerializer.serialize(a.extractedUrl),this.urlSerializer.serialize(a.urlAfterRedirects),a.targetSnapshot,!!a.guardsResult);if(this.events.next(c),!s())return _;if(!a.guardsResult)return this.cancelNavigationTransition(a,"",w.GuardRejected),_;if(a.guards.canActivateChecks.length===0)return g(a);let u=new st(a.id,this.urlSerializer.serialize(a.extractedUrl),this.urlSerializer.serialize(a.urlAfterRedirects),a.targetSnapshot);if(this.events.next(u),!s())return _;let h=!1;return g(a).pipe(Eo(this.paramsInheritanceStrategy),L({next:()=>{h=!0;let p=new ct(a.id,this.urlSerializer.serialize(a.extractedUrl),this.urlSerializer.serialize(a.urlAfterRedirects),a.targetSnapshot);this.events.next(p)},complete:()=>
1{h||this.cancelNavigationTransition(a,"",w.NoDataFromResolver)}}))}),sn(a=>{let c=h=>{let p=[];if(h.routeConfig?._loadedComponent)h.component=h.routeConfig?._loadedComponent;else if(h.routeConfig?.loadComponent){let y=h._environmentInjector;p.push(this.configLoader.loadComponent(y,h.routeConfig).then(X=>{h.component=X}))}for(let y of h.children)p.push(...c(y));return p},u=c(a.targetSnapshot.root);return u.length===0?g(a):b(Promise.all(u).then(()=>a))}),sn(()=>this.afterPreactivation()),P(()=>{let{currentSnapshot:a,targetSnapshot:c}=r,u=this.createViewTransition?.(this.environmentInjector,a.root,c.root);return u?b(u).pipe(I(()=>r)):g(r)}),le(1),P(a=>{let c=Li(t.routeReuseStrategy,a.targetSnapshot,a.currentRouterState);this.currentTransition=r=a=A(l({},a),{targetRouterState:c}),this.currentNavigation.update(h=>(h.targetRouterState=c,h)),this.events.next(new Se);let u=r.beforeActivateHandler.deferredHandle;return u?b(u.then(()=>a)):g(a)}),L(a=>{new nr(t.routeReuseStrategy,r.targetRouterState,r.currentRouterState,c=>this.events.next(c),this.inputBindingEnabled).activate(this.rootContexts),s()&&(i=!0,this.currentNavigation.update(c=>(c.abort=Uo,c)),this.lastSuccessfulNavigation.set(K(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))}),Qe(Pn(o.signal).pipe(G(()=>!i&&!r.targetRouterState),L(()=>{this.cancelNavigationTransition(r,o.signal.reason+"",w.Aborted)}))),L({complete:()=>{i=!0}}),Qe(this.transitionAbortWithErrorSubject.pipe(L(a=>{throw a}))),Mr(()=>{o.abort(),i||this.cancelNavigationTransition(r,"",w.SupersededByNewNavigation),this.currentTransition?.id===r.id&&(this.currentNavigation.set(null),this.currentTransition=null)}),We(a=>{if(i=!0,this.destroyed)return r.resolve(!1),_;if(Un(a))this.events.next(new U(r.id,this.urlSerializer.serialize(r.extractedUrl),a.message,a.cancellationCode)),ki(a)?this.events.next(new Ce(a.url,a.navigationBehaviorOptions)):r.resolve(!1);else{let c=new ne(r.id,this.urlSerializer.serialize(r.extractedUrl),a,r.targetSnapshot??void 0);try{let u=M(this.environmentInjector,()=>this.navigationErrorHandler?.(c));if(u instanceof be){let{message:h,cancellationCode:p}=mt(this.urlSerializer,u);this.events.next(new U(r.id,this.urlSerializer.serialize(r.extractedUrl),h,p)),this.events.next(new Ce(u.redirectTo,u.navigationBehaviorOptions))}else throw this.events.next(c),a}catch(u){this.options.resolveNavigationPromiseOnError?r.resolve(!1):r.reject(u)}}return _}))}))}cancelNavigationTransition(t,r,i){let o=new U(t.id,this.urlSerializer.serialize(t.extractedUrl),r,i);this.events.next(o),t.resolve(!1)}isUpdatingInternalState(){return this.currentTransition?.extractedUrl.toString()!==this.currentTransition?.currentUrlTree.toString()}isUpdatedBrowserUrl(){let t=this.urlHandlingStrategy.extract(this.urlSerializer.parse(this.location.path(!0))),r=K(this.currentNavigation),i=r?.targetBrowserUrl??r?.extractedUrl;return t.toString()!==i?.toString()&&!r?.extras.skipLocationChange}static \u0275fac=function(r){return new(r||e)};static \u0275prov=S({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function Oo(e){return e!==ge}var Gn=new E("");var Wn=(()=>{class e{static \u0275fac=function(r){return new(r||e)};static \u0275prov=S({token:e,factory:()=>d(Po),providedIn:"root"})}return e})(),Rt=class{shouldDetach(n){return!1}store(n,t){}shouldAttach(n){return!1}retrieve(n){return null}shouldReuseRoute(n,t){return n.routeConfig===t.routeConfig}shouldDestroyInjector(n){return!0}},Po=(()=>{class e extends Rt{static \u0275fac=(()=>{let t;return function(i){return(t||(t=Pt(e)))(i||e)}})();static \u0275prov=S({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),yr=(()=>{class e{urlSerializer=d(oe);options=d(se,{optional:!0})||{};canceledNavigationResolution=this.options.canceledNavigationResolution||"replace";location=d(he);urlHandlingStrategy=d(wt);urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred";currentUrlTree=new O;getCurrentUrlTree(){return this.currentUrlTree}rawUrlTree=this.currentUrlTree;getRawUrlTree(){return this.rawUrlTree}createBrowserPath({finalUrl:t,initialUrl:r,targetBrowserUrl:i}){let o=t!==void 0?this.urlHandlingStrategy.merge(t,r):r,s=i??o;return s instanceof O?this.urlSerializer.serialize(s):s}routerUrlState(t){return t?.targetBrowserUrl===void 0||t?.finalUrl===void 0?{}:{\u0275routerUrl:this.urlSerializer.serialize(t.finalUrl)}}commitTransition({targetRouterState:t,finalUrl:r,initialUrl:i}){r&&t?(this.currentUrlTree=r,this.rawUrlTree=this.urlHandlingStrategy.merge(r,i),this.routerState=t):this.rawUrlTree=i}routerState=An(null,d(F));getRouterState(){return this.routerState}_stateMemento=this.createStateMemento();get stateMemento(){return this._stateMemento}updateStateMemento(){this._stateMemento=this.createStateMemento()}createStateMemento(){return{rawUrlTree:this.rawUrlTree,currentUrlTree:this.currentUrlTree,routerState:this.routerState}}restoredState(){return this.location.getState()}static \u0275fac=function(r){return new(r||e)};static \u0275prov=S({token:e,factory:()=>d(Lo),providedIn:"root"})}return e})(),Lo=(()=>{class e extends yr{currentPageId=0;lastSuccessfulId=-1;get browserPageId(){return this.canceledNavigationResolution!=="computed"?this.currentPageId:this.restoredState()?.\u0275routerPageId??this.currentPageId}registerNonRouterCurrentEntryChangeListener(t){return this.location.subscribe(r=>{r.type==="popstate"&&setTimeout(()=>{t(r.url,r.state,"popstate",{replaceUrl:!0})})})}handleRouterEvent(t,r){t instanceof Z?this.updateStateMemento():t instanceof z?this.commitTransition(r):t instanceof Pe?this.urlUpdateStrategy==="eager"&&(r.extras.skipLocationChange||this.setBrowserUrl(this.createBrowserPath(r),r)):t instanceof Se?(this.commitTransition(r),this.urlUpdateStrategy==="deferred"&&!r.extras.skipLocationChange&&this.setBrowserUrl(this.createBrowserPath(r),r)):t instanceof U&&
1!En(t)?this.restoreHistory(r):t instanceof ne?this.restoreHistory(r,!0):t instanceof j&&(this.lastSuccessfulId=t.id,this.currentPageId=this.browserPageId)}setBrowserUrl(t,r){let{extras:i,id:o}=r,{replaceUrl:s,state:a}=i;if(this.location.isCurrentPathEqualTo(t)||s){let c=this.browserPageId,u=l(l({},a),this.generateNgRouterState(o,c,r));this.location.replaceState(t,"",u)}else{let c=l(l({},a),this.generateNgRouterState(o,this.browserPageId+1,r));this.location.go(t,"",c)}}restoreHistory(t,r=!1){if(this.canceledNavigationResolution==="computed"){let i=this.browserPageId,o=this.currentPageId-i;o!==0?this.location.historyGo(o):this.getCurrentUrlTree()===t.finalUrl&&o===0&&(this.resetInternalState(t),this.resetUrlToCurrentUrlTree())}else this.canceledNavigationResolution==="replace"&&(r&&this.resetInternalState(t),this.resetUrlToCurrentUrlTree())}resetInternalState({finalUrl:t}){this.routerState=this.stateMemento.routerState,this.currentUrlTree=this.stateMemento.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,t??this.rawUrlTree)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.getRawUrlTree()),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}generateNgRouterState(t,r,i){return this.canceledNavigationResolution==="computed"?l({navigationId:t,\u0275routerPageId:r},this.routerUrlState(i)):l({navigationId:t},this.routerUrlState(i))}static \u0275fac=(()=>{let t;return function(i){return(t||(t=Pt(e)))(i||e)}})();static \u0275prov=S({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function It(e,n){e.events.pipe(G(t=>t instanceof j||t instanceof U||t instanceof ne||t instanceof z),I(t=>t instanceof j||t instanceof z?0:(t instanceof U?t.code===w.Redirect||t.code===w.SupersededByNewNavigation:!1)?2:1),G(t=>t!==2),le(1)).subscribe(()=>{n()})}var J=(()=>{class e{get currentUrlTree(){return this.stateManager.getCurrentUrlTree()}get rawUrlTree(){return this.stateManager.getRawUrlTree()}disposed=!1;nonRouterCurrentEntryChangeSubscription;console=d(Br);stateManager=d(yr);options=d(se,{optional:!0})||{};pendingTasks=d(Pr);urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred";navigationTransitions=d(bt);urlSerializer=d(oe);location=d(he);urlHandlingStrategy=d(wt);injector=d(F);_events=new ue;get events(){return this._events}get routerState(){return this.stateManager.getRouterState()}navigated=!1;routeReuseStrategy=d(Wn);injectorCleanup=d(Gn,{optional:!0});onSameUrlNavigation=this.options.onSameUrlNavigation||"ignore";config=d(ce,{optional:!0})?.flat()??[];componentInputBindingEnabled=!!d(He,{optional:!0});currentNavigation=this.navigationTransitions.currentNavigation.asReadonly();constructor(){this.resetConfig(this.config),this.navigationTransitions.setupNavigations(this).subscribe({error:t=>{}}),this.subscribeToNavigationEvents()}eventsSubscription=new Cr;subscribeToNavigationEvents(){let t=this.navigationTransitions.events.subscribe(r=>{try{let i=this.navigationTransitions.currentTransition,o=K(this.navigationTransitions.currentNavigation);if(i!==null&&o!==null){if(this.stateManager.handleRouterEvent(r,o),r instanceof U&&r.code!==w.Redirect&&r.code!==w.SupersededByNewNavigation)this.navigated=!0;else if(r instanceof j)this.navigated=!0,this.injectorCleanup?.(this.routeReuseStrategy,this.routerState,this.config);else if(r instanceof Ce){let s=r.navigationBehaviorOptions,a=this.urlHandlingStrategy.merge(r.url,i.currentRawUrl),c=l({scroll:i.extras.scroll,browserUrl:i.extras.browserUrl,info:i.extras.info,skipLocationChange:i.extras.skipLocationChange,replaceUrl:i.extras.replaceUrl||this.urlUpdateStrategy==="eager"||Oo(i.source)},s);this.scheduleNavigation(a,ge,null,c,{resolve:i.resolve,reject:i.reject,promise:i.promise})}}Oi(r)&&this._events.next(r)}catch(i){this.navigationTransitions.transitionAbortWithErrorSubject.next(i)}});this.eventsSubscription.add(t)}resetRootComponentType(t){this.routerState.root.component=t,this.navigationTransitions.rootComponentType=t}initialNavigation(){this.setUpLocationChangeListener(),this.navigationTransitions.hasRequestedNavigation||this.navigateToSyncWithBrowser(this.location.path(!0),ge,this.stateManager.restoredState(),{replaceUrl:!0})}setUpLocationChangeListener(){this.nonRouterCurrentEntryChangeSubscription??=this.stateManager.registerNonRouterCurrentEntryChangeListener((t,r,i,o)=>{this.navigateToSyncWithBrowser(t,i,r,o)})}navigateToSyncWithBrowser(t,r,i,o){let s=i?.navigationId?i:null,a=i?.\u0275routerUrl??t;if(i?.\u0275routerUrl&&(o=A(l({},o),{browserUrl:t})),i){let u=l({},i);delete u.navigationId,delete u.\u0275routerPageId,delete u.\u0275routerUrl,Object.keys(u).length!==0&&(o.state=u)}let c=this.parseUrl(a);this.scheduleNavigation(c,r,s,o).catch(u=>{this.disposed||this.injector.get(Ut)(u)})}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return K(this.navigationTransitions.currentNavigation)}get lastSuccessfulNavigation(){return this.navigationTransitions.lastSuccessfulNavigation}resetConfig(t){this.config=t.map(fr),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(t,r={}){let{relativeTo:i,queryParams:o,fragment:s,queryParamsHandling:a,preserveFragment:c}=r,u=c?this.currentUrlTree.fragment:s,h=null;switch(a??this.options.defaultQueryParamsHandling){case"merge":h=l(l({},this.currentUrlTree.queryParams),o);break;case"preserve":h=this.currentUrlTree.queryParams;break;default:h=o||null}h!==null&&(h=this.removeEmptyProps(h));let p;try{let y=i?i.snapshot:this.routerState.snapshot.root;p=Cn(y)}
1catch(y){(typeof t[0]!="string"||t[0][0]!=="/")&&(t=[]),p=this.currentUrlTree.root}return wn(p,t,h,u??null,this.urlSerializer)}navigateByUrl(t,r={skipLocationChange:!1}){let i=me(t)?t:this.parseUrl(t),o=this.urlHandlingStrategy.merge(i,this.rawUrlTree);return this.scheduleNavigation(o,ge,null,r)}navigate(t,r={skipLocationChange:!1}){return xo(t),this.navigateByUrl(this.createUrlTree(t,r),r)}serializeUrl(t){return this.urlSerializer.serialize(t)}parseUrl(t){try{return this.urlSerializer.parse(t)}catch(r){return this.console.warn(Dr(4018,!1)),this.urlSerializer.parse("/")}}isActive(t,r){let i;if(r===!0?i=l({},hn):r===!1?i=l({},Kt):i=l(l({},Kt),r),me(t))return en(this.currentUrlTree,t,i);let o=this.parseUrl(t);return en(this.currentUrlTree,o,i)}removeEmptyProps(t){return Object.entries(t).reduce((r,[i,o])=>(o!=null&&(r[i]=o),r),{})}scheduleNavigation(t,r,i,o,s){if(this.disposed)return Promise.resolve(!1);let a,c,u;s?(a=s.resolve,c=s.reject,u=s.promise):u=new Promise((p,y)=>{a=p,c=y});let h=this.pendingTasks.add();return It(this,()=>{queueMicrotask(()=>this.pendingTasks.remove(h))}),this.navigationTransitions.handleNavigationRequest({source:r,restoredState:i,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,rawUrl:t,extras:o,resolve:a,reject:c,promise:u,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}
1),u.catch(Promise.reject.bind(Promise))}static \u0275fac=function(r){return new(r||e)};static \u0275prov=S({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function xo(e){for(let n=0;n<e.length;n++)if(e[n]==null)throw new C(4008,!1)}var qe=class{};var Qn=(()=>{class e{router;injector;preloadingStrategy;loader;subscription;constructor(t,r,i,o){this.router=t,this.injector=r,this.preloadingStrategy=i,this.loader=o}setUpPreloading(){this.subscription=this.router.events.pipe(G(t=>t instanceof j),Te(()=>this.preload())).subscribe(()=>{})}preload(){return this.processRoutes(this.injector,this.router.config)}ngOnDestroy(){this.subscription?.unsubscribe()}processRoutes(t,r){let i=[];for(let o of r){o.providers&&!o._injector&&(o._injector=Ye(o.providers,t,""));let s=o._injector??t;o._loadedNgModuleFactory&&!o._loadedInjector&&(o._loadedInjector=o._loadedNgModuleFactory.create(s).injector);let a=o._loadedInjector??s;(o.loadChildren&&!o._loadedRoutes&&o.canLoad===void 0||o.loadComponent&&!o._loadedComponent)&&i.push(this.preloadConfig(s,o)),(o.children||o._loadedRoutes)&&i.push(this.processRoutes(a,o.children??o._loadedRoutes))}return b(i).pipe(Tt())}preloadConfig(t,r){return this.preloadingStrategy.preload(r,()=>{if(t.destroyed)return g(null);let i;r.loadChildren&&r.canLoad===void 0?i=b(this.loader.loadChildren(t,r)):i=g(null);let o=i.pipe(k(s=>s===null?g(void 0):(r._loadedRoutes=s.routes,r._loadedInjector=s.injector,r._loadedNgModuleFactory=s.factory,this.processRoutes(s.injector??t,s.routes))));if(r.loadComponent&&!r._loadedComponent){let s=this.loader.loadComponent(t,r);return b([o,s]).pipe(Tt())}else return o})}static \u0275fac=function(r){return new(r||e)(Q(J),Q(F),Q(qe),Q(Ct))};static \u0275prov=S({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),Kn=new E(""),ko=(()=>{class e{options;routerEventsSubscription;scrollEventsSubscription;lastId=0;lastSource=ge;restoredId=0;store={};isHydrating=d(xr,{optional:!0})??!1;urlSerializer=d(oe);zone=d(Lr);viewportScroller=d(Ft);transitions=d(bt);constructor(t){this.options=t,this.options.scrollPositionRestoration||="disabled",this.options.anchorScrolling||="disabled",this.isHydrating&&d($t).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(t=>{t instanceof Z?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=t.navigationTrigger,this.restoredId=t.restoredState?t.restoredState.navigationId:0):t instanceof j?(this.lastId=t.id,this.scheduleScrollEvent(t,this.urlSerializer.parse(t.urlAfterRedirects).fragment)):t instanceof z&&t.code===ye.IgnoredSameUrlNavigation&&(this.lastSource=void 0,this.restoredId=0,this.scheduleScrollEvent(t,this.urlSerializer.parse(t.url).fragment))})}consumeScrollEvents(){return this.transitions.events.subscribe(t=>{if(!(t instanceof Re)||t.scrollBehavior==="manual")return;let r={behavior:"instant"};t.position?this.options.scrollPositionRestoration==="top"?this.viewportScroller.scrollToPosition([0,0],r):this.options.scrollPositionRestoration==="enabled"&&this.viewportScroller.scrollToPosition(t.position,r):t.anchor&&this.options.anchorScrolling==="enabled"?this.viewportScroller.scrollToAnchor(t.anchor):this.options.scrollPositionRestoration!=="disabled"&&this.viewportScroller.scrollToPosition([0,0])})}scheduleScrollEvent(t,r){if(this.isHydrating)return;let i=K(this.transitions.currentNavigation)?.extras.scroll;this.zone.runOutsideAngular(()=>m(this,null,function*(){yield new Promise(o=>{setTimeout(o),typeof requestAnimationFrame<"u"&&requestAnimationFrame(o)}),this.zone.run(()=>{this.transitions.events.next(new Re(t,this.lastSource==="popstate"?this.store[this.restoredId]:null,r,i))})}))}ngOnDestroy(){this.routerEventsSubscription?.unsubscribe(),this.scrollEventsSubscription?.unsubscribe()}static \u0275fac=function(r){$r()};static \u0275prov=S({token:e,factory:e.\u0275fac})}return e})();function $o(e,...n){return Ur([{provide:ce,multi:!0,useValue:e},[],{provide:V,useFactory:Yn},{provide:kt,multi:!0,useFactory:Zn},n.map(t=>t.\u0275providers)])}function Yn(){return d(J).routerState.root}function Be(e,n){return{\u0275kind:e,\u0275providers:n}}function Zn(){let e=d(Nt);return n=>{let t=e.get($t);if(n!==t.components[0])return;let r=e.get(J),i=e.get(Jn);e.get(Sr)===1&&r.initialNavigation(),e.get(ti,null,{optional:!0})?.setUpPreloading(),e.get(Kn,null,{optional:!0})?.init(),r.resetRootComponentType(t.componentTypes[0]),i.closed||(i.next(),i.complete(),i.unsubscribe())}}var Jn=new E("",{factory:()=>new ue}),Sr=new E("",{factory:()=>1});function Xn(){let e=[{provide:jr,useValue:!0},{provide:Sr,useValue:0},jt(()=>{let n=d(Nt);return n.get(Yr,Promise.resolve()).then(()=>new Promise(r=>{let i=n.get(J),o=n.get(Jn);It(i,()=>{r(!0)}),n.get(bt).afterPreactivation=()=>(r(!0),o.closed?g(void 0):o),i.initialNavigation()}))})];return Be(2,e)}function ei(){let e=[jt(()=>{d(J).setUpLocationChangeListener()}),{provide:Sr,useValue:2}];return Be(3,e)}var ti=new E("");function ri(e){return Be(0,[{provide:ti,useExisting:Qn},{provide:qe,useExisting:e}])}function ni(){return Be(8,[dr,{provide:He,useExisting:dr}])}function ii(e){kr("NgRouterViewTransitions");let n=[{provide:gr,useValue:Vn},{provide:vr,useValue:l({skipNextTransition:!!e?.skipInitialTransition},e)}];return Be(9,n)}var oi=[he,{provide:oe,useClass:B},J,ae,{provide:V,useFactory:Yn},Ct,[]],zo=(()=>{class e{constructor(){}static forRoot(t,r){return{ngModule:e,providers:[oi,[],{provide:ce,multi:!0,useValue:t},[],r?.errorHandler?{provide:mr,useValue:r.errorHandler}:[],{provide:se,useValue:r||{}},r?.useHash?Fo():qo(),Ho(),r?.preloadingStrategy?ri(r.preloadingStrategy).\u0275providers:[],r?.initialNavigation?Bo(r):[],r?.bindToComponentInputs?ni().\u0275providers:[],r?.enableViewTransitions?ii().\u0275providers:[],Vo()]}}static forChild(t){return{ngModule:e,providers:[{provide:ce,multi:!0,useValue:t}]}}static \u0275fac=function(r){return new(r||e)};static \u0275mod=qr({type:e});static \u0275inj=Nr({})}return e})();function Ho(){return{provide:Kn,useFactory:()=>{let e=d(Ft),n=d(se);return n.scrollOffset&&e.setOffset(n.scrollOffset),new ko(n)}}}function Fo(){return{provide:Ht,useClass:Jr}}function qo(){return{provide:Ht,useClass:Zr}}function Bo(e){return[e.initialNavigation==="disabled"?ei().\u0275providers:[],e.initialNavigation==="enabledBlocking"?Xn().\u0275providers:[]]}var Rr=new E("");function Vo(){return[{provide:Rr,useFactory:Zn},{provide:kt,multi:!0,useExisting:Rr}]}export{j as a,V as b,lr as c,J as d,$o as e,zo as f};

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.