@mxtommy/kip 4.1.1 → 4.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (46) hide show
  1. package/.github/copilot-instructions.md +1 -1
  2. package/.github/instructions/project.instructions.md +7 -1
  3. package/.github/workflows/ci.yml +37 -0
  4. package/CHANGELOG.md +18 -0
  5. package/README.md +1 -0
  6. package/package.json +2 -4
  7. package/public/3rdpartylicenses.txt +52 -75
  8. package/public/assets/help-docs/dashboards.md +1 -0
  9. package/public/assets/svg/icons.svg +3 -0
  10. package/public/{chunk-7SK25B6D.js → chunk-2KZMRA4F.js} +1 -1
  11. package/public/{chunk-SFL5QQCF.js → chunk-3Z6GSUML.js} +6 -6
  12. package/public/{chunk-XWOIVPRO.js → chunk-4LGDIZQH.js} +1 -1
  13. package/public/{chunk-SP4UPLYW.js → chunk-5QZ2G7BQ.js} +4 -4
  14. package/public/{chunk-5SCAJ637.js → chunk-BICTPGGI.js} +1 -1
  15. package/public/{chunk-37PSM3EP.js → chunk-BU2UG7KI.js} +8 -8
  16. package/public/chunk-E57JLACD.js +8 -0
  17. package/public/{chunk-PJZLX3XW.js → chunk-GDSV24J2.js} +1 -1
  18. package/public/chunk-GSMU2M4Y.js +15 -0
  19. package/public/{chunk-BYQ7SQZI.js → chunk-H7SICK4W.js} +1 -1
  20. package/public/{chunk-WON6RAF5.js → chunk-JE4IH556.js} +1 -1
  21. package/public/chunk-KC4TEJJN.js +4 -0
  22. package/public/chunk-KQY62HN7.js +1 -0
  23. package/public/{chunk-CX4O7M4U.js → chunk-KXSGKJ7X.js} +4 -4
  24. package/public/{chunk-UUOWRIVR.js → chunk-N77C4M4I.js} +1 -1
  25. package/public/{chunk-36T4YO35.js → chunk-ODGDFFA5.js} +2 -2
  26. package/public/{chunk-NL5QCOXT.js → chunk-OIUDA44M.js} +2 -2
  27. package/public/chunk-SGKVVF2R.js +8 -0
  28. package/public/{chunk-JNCOC4SX.js → chunk-T26GJV5O.js} +1 -1
  29. package/public/chunk-UM5PEESF.js +53 -0
  30. package/public/chunk-WGS5SNGF.js +3 -0
  31. package/public/{chunk-FHQZULYJ.js → chunk-WUZG34V4.js} +1 -1
  32. package/public/{chunk-PNFBM2CP.js → chunk-ZPAB6RAF.js} +1 -1
  33. package/public/chunk-ZQJMMQNG.js +2 -0
  34. package/public/index.html +1 -1
  35. package/public/main-2EXNI6Z4.js +1 -0
  36. package/public/polyfills-L4FJGPOC.js +2 -0
  37. package/public/chunk-MOEZSWFX.js +0 -15
  38. package/public/chunk-ODWTXT7X.js +0 -5
  39. package/public/chunk-UH662Q5B.js +0 -3
  40. package/public/chunk-V5TFSTCA.js +0 -53
  41. package/public/chunk-XLSEMQQK.js +0 -1
  42. package/public/chunk-Y5TQMH7M.js +0 -2
  43. package/public/chunk-ZOSAFOH2.js +0 -4
  44. package/public/chunk-ZYDE62MT.js +0 -8
  45. package/public/main-N3SUKHOX.js +0 -4
  46. package/public/polyfills-GNK4EEYZ.js +0 -2
@@ -1 +1 @@
1
- import{A as Ut,Aa as Ur,Ac as Jr,B as j,Ba as xt,C as Pt,Ca as Pr,D as Er,Da as pe,E as We,Ea as _r,Ec as Xr,Fa as Ye,Ga as Pe,Gc as en,Ia as H,Ib as Yr,Ja as Ze,K as Q,Ka as jt,La as Lr,Lc as Ft,M as Qe,Ma as xr,N as Ue,Nc as et,Q as fe,Qa as jr,Rb as Zr,Rc as tn,Tc as rn,Ua as kr,Uc as ve,V as Ar,Vc as nn,W as K,Wc as me,X as _t,Xc as qt,Ya as $r,Za as kt,a as h,ab as zr,b as D,ba as Tr,bb as ge,ca as F,cb as Fr,da as Ke,eb as qr,f as y,fa as q,g as Cr,gb as Br,hb as Je,i as Sr,ia as w,ib as Hr,id as Bt,j as wr,ja as Mr,jb as Vr,k as ie,kb as Xe,la as S,m as O,ma as Nr,na as Dr,oa as E,pa as Y,q as U,qa as l,qb as Gr,r as A,ra as Or,s as g,sb as Wr,sd as on,t as br,ta as B,tb as $t,u as Ot,ua as T,ub as zt,v as Ir,vb as Qr,xb as Kr,z as I,za as Lt}from"./chunk-MOEZSWFX.js";var p="primary",Be=Symbol("RouteTitle"),Qt=class{params;constructor(n){this.params=n||{}}has(n){return Object.prototype.hasOwnProperty.call(this.params,n)}get(n){if(this.has(n)){let e=this.params[n];return Array.isArray(e)?e[0]:e}return null}getAll(n){if(this.has(n)){let e=this.params[n];return Array.isArray(e)?e:[e]}return[]}get keys(){return Object.keys(this.params)}};function ae(t){return new Qt(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 gn(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 c={},u=t.slice(0,r.length);return Ht(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>t.length||e.pathMatch==="full"&&n.hasChildren()&&e.path!=="**")return null;let a={};return!Ht(o,t.slice(0,o.length),a)||!Ht(s,t.slice(t.length-s.length),a)?null:{consumed:t,posParams:a}}function st(t){return new Promise((n,e)=>{t.pipe(K()).subscribe({next:r=>n(r),error:r=>e(r)})})}function vi(t,n){if(t.length!==n.length)return!1;for(let e=0;e<t.length;++e)if(!k(t[e],n[e]))return!1;return!0}function k(t,n){let e=t?Kt(t):void 0,r=n?Kt(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],!vn(t[i],n[i]))return!1;return!0}function Kt(t){return[...Object.keys(t),...Object.getOwnPropertySymbols(t)]}function vn(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 mi(t){return t.length>0?t[t.length-1]:null}function ue(t){return Ot(t)?t:Wr(t)?A(Promise.resolve(t)):g(t)}function mn(t){return Ot(t)?st(t):Promise.resolve(t)}var yi={exact:Rn,subset:Cn},yn={exact:Ri,subset:Ci,ignored:()=>!0};function sn(t,n,e){return yi[e.paths](t.root,n.root,e.matrixParams)&&yn[e.queryParams](t.queryParams,n.queryParams)&&!(e.fragment==="exact"&&t.fragment!==n.fragment)}function Ri(t,n){return k(t,n)}function Rn(t,n,e){if(!oe(t.segments,n.segments)||!nt(t.segments,n.segments,e)||t.numberOfChildren!==n.numberOfChildren)return!1;for(let r in n.children)if(!t.children[r]||!Rn(t.children[r],n.children[r],e))return!1;return!0}function Ci(t,n){return Object.keys(n).length<=Object.keys(t).length&&Object.keys(n).every(e=>vn(t[e],n[e]))}function Cn(t,n,e){return Sn(t,n,n.segments,e)}function Sn(t,n,e,r){if(t.segments.length>e.length){let i=t.segments.slice(0,e.length);return!(!oe(i,e)||n.hasChildren()||!nt(i,e,r))}else if(t.segments.length===e.length){if(!oe(t.segments,e)||!nt(t.segments,e,r))return!1;for(let i in n.children)if(!t.children[i]||!Cn(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!oe(t.segments,i)||!nt(t.segments,i,r)||!t.children[p]?!1:Sn(t.children[p],n,o,r)}}function nt(t,n,e){return n.every((r,i)=>yn[e](t[i].parameters,r.parameters))}var x=class{root;queryParams;fragment;_queryParamMap;constructor(n=new v([],{}),e={},r=null){this.root=n,this.queryParams=e,this.fragment=r}get queryParamMap(){return this._queryParamMap??=ae(this.queryParams),this._queryParamMap}toString(){return bi.serialize(this)}},v=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 it(this)}},Z=class{path;parameters;_parameterMap;constructor(n,e){this.path=n,this.parameters=e}get parameterMap(){return this._parameterMap??=ae(this.parameters),this._parameterMap}toString(){return bn(this)}};function Si(t,n){return oe(t,n)&&t.every((e,r)=>k(e.parameters,n[r].parameters))}function oe(t,n){return t.length!==n.length?!1:t.every((e,r)=>e.path===n[r].path)}function wi(t,n){let e=[];return Object.entries(t.children).forEach(([r,i])=>{r===p&&(e=e.concat(n(i,r)))}),Object.entries(t.children).forEach(([r,i])=>{r!==p&&(e=e.concat(n(i,r)))}),e}var le=(()=>{class t{static \u0275fac=function(r){return new(r||t)};static \u0275prov=S({token:t,factory:()=>new G,providedIn:"root"})}return t})(),G=class{parse(n){let e=new Zt(n);return new x(e.parseRootSegment(),e.parseQueryParams(),e.parseFragment())}serialize(n){let e=`/${_e(n.root,!0)}`,r=Ai(n.queryParams),i=typeof n.fragment=="string"?`#${Ii(n.fragment)}`:"";return`${e}${r}${i}`}},bi=new G;function it(t){return t.segments.map(n=>bn(n)).join("/")}function _e(t,n){if(!t.hasChildren())return it(t);if(n){let e=t.children[p]?_e(t.children[p],!1):"",r=[];return Object.entries(t.children).forEach(([i,o])=>{i!==p&&r.push(`${i}:${_e(o,!1)}`)}),r.length>0?`${e}(${r.join("//")})`:e}else{let e=wi(t,(r,i)=>i===p?[_e(t.children[p],!1)]:[`${i}:${_e(r,!1)}`]);return Object.keys(t.children).length===1&&t.children[p]!=null?`${it(t)}/${e[0]}`:`${it(t)}/(${e.join("//")})`}}function wn(t){return encodeURIComponent(t).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function tt(t){return wn(t).replace(/%3B/gi,";")}function Ii(t){return encodeURI(t)}function Yt(t){return wn(t).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function ot(t){return decodeURIComponent(t)}function an(t){return ot(t.replace(/\+/g,"%20"))}function bn(t){return`${Yt(t.path)}${Ei(t.parameters)}`}function Ei(t){return Object.entries(t).map(([n,e])=>`;${Yt(n)}=${Yt(e)}`).join("")}function Ai(t){let n=Object.entries(t).map(([e,r])=>Array.isArray(r)?r.map(i=>`${tt(e)}=${tt(i)}`).join("&"):`${tt(e)}=${tt(r)}`).filter(e=>e);return n.length?`?${n.join("&")}`:""}var Ti=/^[^\/()?;#]+/;function Vt(t){let n=t.match(Ti);return n?n[0]:""}var Mi=/^[^\/()?;=#]+/;function Ni(t){let n=t.match(Mi);return n?n[0]:""}var Di=/^[^=?&#]+/;function Oi(t){let n=t.match(Di);return n?n[0]:""}var Ui=/^[^&#]+/;function Pi(t){let n=t.match(Ui);return n?n[0]:""}var Zt=class{url;remaining;constructor(n){this.url=n,this.remaining=n}parseRootSegment(){return this.consumeOptional("/"),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(){if(this.remaining==="")return{};this.consumeOptional("/");let n=[];for(this.peekStartsWith("(")||n.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),n.push(this.parseSegment());let e={};this.peekStartsWith("/(")&&(this.capture("/"),e=this.parseParens(!0));let r={};return this.peekStartsWith("(")&&(r=this.parseParens(!1)),(n.length>0||Object.keys(e).length>0)&&(r[p]=new v(n,e)),r}parseSegment(){let n=Vt(this.remaining);if(n===""&&this.peekStartsWith(";"))throw new w(4009,!1);return this.capture(n),new Z(ot(n),this.parseMatrixParams())}parseMatrixParams(){let n={};for(;this.consumeOptional(";");)this.parseParam(n);return n}parseParam(n){let e=Ni(this.remaining);if(!e)return;this.capture(e);let r="";if(this.consumeOptional("=")){let i=Vt(this.remaining);i&&(r=i,this.capture(r))}n[ot(e)]=ot(r)}parseQueryParam(n){let e=Oi(this.remaining);if(!e)return;this.capture(e);let r="";if(this.consumeOptional("=")){let s=Pi(this.remaining);s&&(r=s,this.capture(r))}let i=an(e),o=an(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){let e={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){let r=Vt(this.remaining),i=this.remaining[r.length];if(i!=="/"&&i!==")"&&i!==";")throw new w(4010,!1);let o;r.indexOf(":")>-1?(o=r.slice(0,r.indexOf(":")),this.capture(o),this.capture(":")):n&&(o=p);let s=this.parseChildren();e[o??p]=Object.keys(s).length===1&&s[p]?s[p]:new v([],s),this.consumeOptional("//")}return e}peekStartsWith(n){return this.remaining.startsWith(n)}consumeOptional(n){return this.peekStartsWith(n)?(this.remaining=this.remaining.substring(n.length),!0):!1}capture(n){if(!this.consumeOptional(n))throw new w(4011,!1)}};function In(t){return t.segments.length>0?new v([],{[p]:t}):t}function En(t){let n={};for(let[r,i]of Object.entries(t.children)){let o=En(i);if(r===p&&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 e=new v(t.segments,n);return _i(e)}function _i(t){if(t.numberOfChildren===1&&t.children[p]){let n=t.children[p];return new v(t.segments.concat(n.segments),n.children)}return t}function J(t){return t instanceof x}function An(t,n,e=null,r=null,i=new G){let o=Tn(t);return Mn(o,n,e,r,i)}function Tn(t){let n;function e(o){let s={};for(let c of o.children){let u=e(c);s[c.outlet]=u}let a=new v(o.url,s);return o===t&&(n=a),a}let r=e(t.root),i=In(r);return n??i}function Mn(t,n,e,r,i){let o=t;for(;o.parent;)o=o.parent;if(n.length===0)return Gt(o,o,o,e,r,i);let s=Li(n);if(s.toRoot())return Gt(o,o,new v([],{}),e,r,i);let a=xi(s,o,t),c=a.processChildren?xe(a.segmentGroup,a.index,s.commands):Dn(a.segmentGroup,a.index,s.commands);return Gt(o,a.segmentGroup,c,e,r,i)}function at(t){return typeof t=="object"&&t!=null&&!t.outlets&&!t.segmentPath}function ke(t){return typeof t=="object"&&t!=null&&t.outlets}function cn(t,n,e){t||="\u0275";let r=new x;return r.queryParams={[t]:n},e.parse(e.serialize(r)).queryParams[t]}function Gt(t,n,e,r,i,o){let s={};for(let[u,d]of Object.entries(r??{}))s[u]=Array.isArray(d)?d.map(f=>cn(u,f,o)):cn(u,d,o);let a;t===n?a=e:a=Nn(t,n,e);let c=In(En(a));return new x(c,s,i)}function Nn(t,n,e){let r={};return Object.entries(t.children).forEach(([i,o])=>{o===n?r[i]=e:r[i]=Nn(o,n,e)}),new v(t.segments,r)}var ct=class{isAbsolute;numberOfDoubleDots;commands;constructor(n,e,r){if(this.isAbsolute=n,this.numberOfDoubleDots=e,this.commands=r,n&&r.length>0&&at(r[0]))throw new w(4003,!1);let i=r.find(ke);if(i&&i!==mi(r))throw new w(4004,!1)}toRoot(){return this.isAbsolute&&this.commands.length===1&&this.commands[0]=="/"}};function Li(t){if(typeof t[0]=="string"&&t.length===1&&t[0]==="/")return new ct(!0,0,t);let n=0,e=!1,r=t.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===""?e=!0:a===".."?n++:a!=""&&i.push(a))}),i):[...i,o]},[]);return new ct(e,n,r)}var Re=class{segmentGroup;processChildren;index;constructor(n,e,r){this.segmentGroup=n,this.processChildren=e,this.index=r}};function xi(t,n,e){if(t.isAbsolute)return new Re(n,!0,0);if(!e)return new Re(n,!1,NaN);if(e.parent===null)return new Re(e,!0,0);let r=at(t.commands[0])?0:1,i=e.segments.length-1+r;return ji(e,i,t.numberOfDoubleDots)}function ji(t,n,e){let r=t,i=n,o=e;for(;o>i;){if(o-=i,r=r.parent,!r)throw new w(4005,!1);i=r.segments.length}return new Re(r,!1,i-o)}function ki(t){return ke(t[0])?t[0].outlets:{[p]:t}}function Dn(t,n,e){if(t??=new v([],{}),t.segments.length===0&&t.hasChildren())return xe(t,n,e);let r=$i(t,n,e),i=e.slice(r.commandIndex);if(r.match&&r.pathIndex<t.segments.length){let o=new v(t.segments.slice(0,r.pathIndex),{});return o.children[p]=new v(t.segments.slice(r.pathIndex),t.children),xe(o,0,i)}else return r.match&&i.length===0?new v(t.segments,{}):r.match&&!t.hasChildren()?Jt(t,n,e):r.match?xe(t,0,i):Jt(t,n,e)}function xe(t,n,e){if(e.length===0)return new v(t.segments,{});{let r=ki(e),i={};if(Object.keys(r).some(o=>o!==p)&&t.children[p]&&t.numberOfChildren===1&&t.children[p].segments.length===0){let o=xe(t.children[p],n,e);return new v(t.segments,o.children)}return Object.entries(r).forEach(([o,s])=>{typeof s=="string"&&(s=[s]),s!==null&&(i[o]=Dn(t.children[o],n,s))}),Object.entries(t.children).forEach(([o,s])=>{r[o]===void 0&&(i[o]=s)}),new v(t.segments,i)}}function $i(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],a=e[r];if(ke(a))break;let c=`${a}`,u=r<e.length-1?e[r+1]:null;if(i>0&&c===void 0)break;if(c&&u&&typeof u=="object"&&u.outlets===void 0){if(!ln(c,u,s))return o;r+=2}else{if(!ln(c,{},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(ke(o)){let c=zi(o.outlets);return new v(r,c)}if(i===0&&at(e[0])){let c=t.segments[n];r.push(new Z(c.path,un(e[0]))),i++;continue}let s=ke(o)?o.outlets[p]:`${o}`,a=i<e.length-1?e[i+1]:null;s&&a&&at(a)?(r.push(new Z(s,un(a))),i+=2):(r.push(new Z(s,{})),i++)}return new v(r,{})}function zi(t){let n={};return Object.entries(t).forEach(([e,r])=>{typeof r=="string"&&(r=[r]),r!==null&&(n[e]=Jt(new v([],{}),0,r))}),n}function un(t){let n={};return Object.entries(t).forEach(([e,r])=>n[e]=`${r}`),n}function ln(t,n,e){return t==e.path&&k(n,e.parameters)}var Ce="imperative",C=(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})(C||{}),N=class{id;url;constructor(n,e){this.id=n,this.url=e}},X=class extends N{type=C.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}')`}},_=class extends N{urlAfterRedirects;type=C.NavigationEnd;constructor(n,e,r){super(n,e),this.urlAfterRedirects=r}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}},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||{}),we=(function(t){return t[t.IgnoredSameUrlNavigation=0]="IgnoredSameUrlNavigation",t[t.IgnoredByUrlHandlingStrategy=1]="IgnoredByUrlHandlingStrategy",t})(we||{}),P=class extends N{reason;code;type=C.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 On(t){return t instanceof P&&(t.code===b.Redirect||t.code===b.SupersededByNewNavigation)}var $=class extends N{reason;code;type=C.NavigationSkipped;constructor(n,e,r,i){super(n,e),this.reason=r,this.code=i}},ce=class extends N{error;target;type=C.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})`}},be=class extends N{urlAfterRedirects;state;type=C.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})`}},ut=class extends N{urlAfterRedirects;state;type=C.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})`}},lt=class extends N{urlAfterRedirects;state;shouldActivate;type=C.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})`}},ht=class extends N{urlAfterRedirects;state;type=C.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})`}},dt=class extends N{urlAfterRedirects;state;type=C.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})`}},ft=class{route;type=C.RouteConfigLoadStart;constructor(n){this.route=n}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}},pt=class{route;type=C.RouteConfigLoadEnd;constructor(n){this.route=n}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}},gt=class{snapshot;type=C.ChildActivationStart;constructor(n){this.snapshot=n}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},vt=class{snapshot;type=C.ChildActivationEnd;constructor(n){this.snapshot=n}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},mt=class{snapshot;type=C.ActivationStart;constructor(n){this.snapshot=n}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},yt=class{snapshot;type=C.ActivationEnd;constructor(n){this.snapshot=n}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},Ie=class{routerEvent;position;anchor;scrollBehavior;type=C.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}')`}},Ee=class{},Ae=class{url;navigationBehaviorOptions;constructor(n,e){this.url=n,this.navigationBehaviorOptions=e}};function Fi(t){return!(t instanceof Ee)&&!(t instanceof Ae)}var Rt=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 he(this.rootInjector)}},he=(()=>{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 Rt(this.rootInjector),this.contexts.set(e,r)),r}getContext(e){return this.contexts.get(e)||null}static \u0275fac=function(r){return new(r||t)(Y(B))};static \u0275prov=S({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),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 M=class{value;children;constructor(n,e){this.value=n,this.children=e}toString(){return`TreeNode(${this.value})`}};function ye(t){let n={};return t&&t.children.forEach(e=>n[e.value.outlet]=e),n}var $e=class extends Ct{snapshot;constructor(n,e){super(n),this.snapshot=e,cr(this,n)}toString(){return this.snapshot.toString()}};function Un(t,n){let e=qi(t,n),r=new O([new Z("",{})]),i=new O({}),o=new O({}),s=new O({}),a=new O(""),c=new z(r,i,s,a,o,p,t,e.root);return c.snapshot=e.root,new $e(new M(c,[]),e)}function qi(t,n){let e={},r={},i={},s=new se([],e,i,"",r,p,t,null,{},n);return new ze("",new M(s,[]))}var z=class{urlSubject;paramsSubject;queryParamsSubject;fragmentSubject;dataSubject;outlet;component;snapshot;_futureSnapshot;_routerState;_paramMap;_queryParamMap;title;url;params;queryParams;fragment;data;constructor(n,e,r,i,o,s,a,c){this.urlSubject=n,this.paramsSubject=e,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[Be]))??g(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(I(n=>ae(n))),this._paramMap}get queryParamMap(){return this._queryParamMap??=this.queryParams.pipe(I(n=>ae(n))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}};function St(t,n,e="emptyOnly"){let r,{routeConfig:i}=t;return n!==null&&(e==="always"||i?.path===""||!n.component&&!n.routeConfig?.loadComponent)?r={params:h(h({},n.params),t.params),data:h(h({},n.data),t.data),resolve:h(h(h(h({},t.data),n.data),i?.data),t._resolvedData)}:r={params:h({},t.params),data:h({},t.data),resolve:h(h({},t.data),t._resolvedData??{})},i&&_n(i)&&(r.resolve[Be]=i.title),r}var se=class{url;params;queryParams;fragment;data;outlet;component;routeConfig;_resolve;_resolvedData;_routerState;_paramMap;_queryParamMap;_environmentInjector;get title(){return this.data?.[Be]}constructor(n,e,r,i,o,s,a,c,u,d){this.url=n,this.params=e,this.queryParams=r,this.fragment=i,this.data=o,this.outlet=s,this.component=a,this.routeConfig=c,this._resolve=u,this._environmentInjector=d}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??=ae(this.params),this._paramMap}get queryParamMap(){return this._queryParamMap??=ae(this.queryParams),this._queryParamMap}toString(){let n=this.url.map(r=>r.toString()).join("/"),e=this.routeConfig?this.routeConfig.path:"";return`Route(url:'${n}', path:'${e}')`}},ze=class extends Ct{url;constructor(n,e){super(e),this.url=n,cr(this,e)}toString(){return Pn(this._root)}};function cr(t,n){n.value._routerState=t,n.children.forEach(e=>cr(t,e))}function Pn(t){let n=t.children.length>0?` { ${t.children.map(Pn).join(", ")} } `:"";return`${t.value}${n}`}function Wt(t){if(t.snapshot){let n=t.snapshot,e=t._futureSnapshot;t.snapshot=e,k(n.queryParams,e.queryParams)||t.queryParamsSubject.next(e.queryParams),n.fragment!==e.fragment&&t.fragmentSubject.next(e.fragment),k(n.params,e.params)||t.paramsSubject.next(e.params),vi(n.url,e.url)||t.urlSubject.next(e.url),k(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=k(t.params,n.params)&&Si(t.url,n.url),r=!t.parent!=!n.parent;return e&&!r&&(!t.parent||tr(t.parent,n.parent))}function _n(t){return typeof t.title=="string"||t.title===null}var Ln=new E(""),ur=(()=>{class t{activated=null;get activatedComponentRef(){return this.activated}_activatedRoute=null;name=p;activateEvents=new pe;deactivateEvents=new pe;attachEvents=new pe;detachEvents=new pe;routerOutletData=en();parentContexts=l(he);location=l(qr);changeDetector=l(Ft);inputBinder=l(He,{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 w(4012,!1);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new w(4012,!1);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new w(4012,!1);this.location.detach();let e=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(e.instance),e}attach(e,r){this.activated=e,this._activatedRoute=r,this.location.insert(e.hostView),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.attachEvents.emit(e.instance)}deactivate(){if(this.activated){let e=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(e)}}activateWith(e,r){if(this.isActivated)throw new w(4013,!1);this._activatedRoute=e;let i=this.location,s=e.snapshot.component,a=this.parentContexts.getOrCreateContext(this.name).children,c=new rr(e,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||t)};static \u0275dir=Xe({type:t,selectors:[["router-outlet"]],inputs:{name:"name",routerOutletData:[1,"routerOutletData"]},outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"],features:[Ze]})}return t})(),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===z?this.route:n===he?this.childContexts:n===Ln?this.outletData:this.parent.get(n,e)}},He=new E(""),lr=(()=>{class t{outletDataSubscriptions=new Map;bindActivatedRouteToOutletComponent(e){this.unsubscribeFromRouteData(e),this.subscribeToRouteData(e)}unsubscribeFromRouteData(e){this.outletDataSubscriptions.get(e)?.unsubscribe(),this.outletDataSubscriptions.delete(e)}subscribeToRouteData(e){let{activatedRoute:r}=e,i=Ut([r.queryParams,r.params,r.data]).pipe(F(([o,s,a],c)=>(a=h(h(h({},o),s),a),c===0?g(a):Promise.resolve(a)))).subscribe(o=>{if(!e.isActivated||!e.activatedComponentRef||e.activatedRoute!==r||r.component===null){this.unsubscribeFromRouteData(e);return}let s=tn(r.component);if(!s){this.unsubscribeFromRouteData(e);return}for(let{templateName:a}of s.inputs)e.activatedComponentRef.setInput(a,o[a])});this.outletDataSubscriptions.set(e,i)}static \u0275fac=function(r){return new(r||t)};static \u0275prov=S({token:t,factory:t.\u0275fac})}return t})(),hr=(()=>{class t{static \u0275fac=function(r){return new(r||t)};static \u0275cmp=Hr({type:t,selectors:[["ng-component"]],exportAs:["emptyRouterOutlet"],decls:1,vars:0,template:function(r,i){r&1&&Yr(0,"router-outlet")},dependencies:[ur],encapsulation:2})}return t})();function dr(t){let n=t.children&&t.children.map(dr),e=n?D(h({},t),{children:n}):h({},t);return!e.component&&!e.loadComponent&&(n||e.loadChildren)&&e.outlet&&e.outlet!==p&&(e.component=hr),e}function Bi(t,n,e){let r=Fe(t,n._root,e?e._root:void 0);return new $e(r,n)}function Fe(t,n,e){if(e&&t.shouldReuseRoute(n.value,e.value.snapshot)){let r=e.value;r._futureSnapshot=n.value;let i=Hi(t,n,e);return new M(r,i)}else{if(t.shouldAttach(n.value)){let o=t.retrieve(n.value);if(o!==null){let s=o.route;return s.value._futureSnapshot=n.value,s.children=n.children.map(a=>Fe(t,a)),s}}let r=Vi(n.value),i=n.children.map(o=>Fe(t,o));return new M(r,i)}}function Hi(t,n,e){return n.children.map(r=>{for(let i of e.children)if(t.shouldReuseRoute(r.value,i.value.snapshot))return Fe(t,r,i);return Fe(t,r)})}function Vi(t){return new z(new O(t.url),new O(t.params),new O(t.queryParams),new O(t.fragment),new O(t.data),t.outlet,t.component,t)}var Te=class{redirectTo;navigationBehaviorOptions;constructor(n,e){this.redirectTo=n,this.navigationBehaviorOptions=e}},xn="ngNavigationCancelingError";function wt(t,n){let{redirectTo:e,navigationBehaviorOptions:r}=J(n)?{redirectTo:n,navigationBehaviorOptions:void 0}:n,i=jn(!1,b.Redirect);return i.url=e,i.navigationBehaviorOptions=r,i}function jn(t,n){let e=new Error(`NavigationCancelingError: ${t||""}`);return e[xn]=!0,e.cancellationCode=n,e}function Gi(t){return kn(t)&&J(t.url)}function kn(t){return!!t&&t[xn]}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),Wt(this.futureState.root),this.activateChildRoutes(e,r,n)}deactivateChildRoutes(n,e,r){let i=ye(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=ye(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,e){let r=e.getContext(n.value.outlet),i=r&&n.value.component?r.children:e,o=ye(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,e,r){let i=ye(e);n.children.forEach(o=>{this.activateRoutes(o,i[o.value.outlet],r),this.forwardEvent(new yt(o.value.snapshot))}),n.children.length&&this.forwardEvent(new vt(n.value.snapshot))}activateRoutes(n,e,r){let i=n.value,o=e?e.value:null;if(Wt(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 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),Wt(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)}},bt=class{path;route;constructor(n){this.path=n,this.route=this.path[this.path.length-1]}},Se=class{component;route;constructor(n,e){this.component=n,this.route=e}};function Wi(t,n,e){let r=t._root,i=n?n._root:null;return Le(r,i,e,[r.value])}function Qi(t){let n=t.routeConfig?t.routeConfig.canActivateChild:null;return!n||n.length===0?null:{node:t,guards:n}}function Ne(t,n){let e=Symbol(),r=n.get(t,e);return r===e?typeof t=="function"&&!Dr(t)?t:n.get(t):r}function Le(t,n,e,r,i={canDeactivateChecks:[],canActivateChecks:[]}){let o=ye(n);return t.children.forEach(s=>{Ki(s,o[s.value.outlet],e,r.concat([s.value]),i),delete o[s.value.outlet]}),Object.entries(o).forEach(([s,a])=>je(a,e.getContext(s),i)),i}function Ki(t,n,e,r,i={canDeactivateChecks:[],canActivateChecks:[]}){let o=t.value,s=n?n.value:null,a=e?e.getContext(t.value.outlet):null;if(s&&o.routeConfig===s.routeConfig){let c=Yi(s,o,o.routeConfig.runGuardsAndResolvers);c?i.canActivateChecks.push(new bt(r)):(o.data=s.data,o._resolvedData=s._resolvedData),o.component?Le(t,n,a?a.children:null,r,i):Le(t,n,e,r,i),c&&a&&a.outlet&&a.outlet.isActivated&&i.canDeactivateChecks.push(new Se(a.outlet.component,s))}else s&&je(n,a,i),i.canActivateChecks.push(new bt(r)),o.component?Le(t,null,a?a.children:null,r,i):Le(t,null,e,r,i);return i}function Yi(t,n,e){if(typeof e=="function")return T(n._environmentInjector,()=>e(t,n));switch(e){case"pathParamsChange":return!oe(t.url,n.url);case"pathParamsOrQueryParamsChange":return!oe(t.url,n.url)||!k(t.queryParams,n.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!tr(t,n)||!k(t.queryParams,n.queryParams);default:return!tr(t,n)}}function je(t,n,e){let r=ye(t),i=t.value;Object.entries(r).forEach(([o,s])=>{i.component?n?je(s,n.children.getContext(o),e):je(s,null,e):je(s,n,e)}),i.component?n&&n.outlet&&n.outlet.isActivated?e.canDeactivateChecks.push(new Se(n.outlet.component,i)):e.canDeactivateChecks.push(new Se(null,i)):e.canDeactivateChecks.push(new Se(null,i))}function Ve(t){return typeof t=="function"}function Zi(t){return typeof t=="boolean"}function Ji(t){return t&&Ve(t.canLoad)}function Xi(t){return t&&Ve(t.canActivate)}function eo(t){return t&&Ve(t.canActivateChild)}function to(t){return t&&Ve(t.canDeactivate)}function ro(t){return t&&Ve(t.canMatch)}function $n(t){return t instanceof Ir||t?.name==="EmptyError"}var rt=Symbol("INITIAL_VALUE");function Me(){return F(t=>Ut(t.map(n=>n.pipe(fe(1),Tr(rt)))).pipe(I(n=>{for(let e of n)if(e!==!0){if(e===rt)return rt;if(e===!1||no(e))return e}return!0}),Q(n=>n!==rt),fe(1)))}function no(t){return J(t)||t instanceof Te}function zn(t){return t.aborted?g(void 0).pipe(fe(1)):new wr(n=>{let e=()=>{n.next(),n.complete()};return t.addEventListener("abort",e),()=>t.removeEventListener("abort",e)})}function Fn(t){return Ke(zn(t))}function io(t){return j(n=>{let{targetSnapshot:e,currentSnapshot:r,guards:{canActivateChecks:i,canDeactivateChecks:o}}=n;return o.length===0&&i.length===0?g(D(h({},n),{guardsResult:!0})):oo(o,e,r).pipe(j(s=>s&&Zi(s)?so(e,i,t):g(s)),I(s=>D(h({},n),{guardsResult:s})))})}function oo(t,n,e){return A(t).pipe(j(r=>ho(r.component,r.route,e,n)),K(r=>r!==!0,!0))}function so(t,n,e){return A(n).pipe(Ue(r=>Er(co(r.route.parent,e),ao(r.route,e),lo(t,r.path),uo(t,r.route))),K(r=>r!==!0,!0))}function ao(t,n){return t!==null&&n&&n(new mt(t)),g(!0)}function co(t,n){return t!==null&&n&&n(new gt(t)),g(!0)}function uo(t,n){let e=n.routeConfig?n.routeConfig.canActivate:null;if(!e||e.length===0)return g(!0);let r=e.map(i=>We(()=>{let o=n._environmentInjector,s=Ne(i,o),a=Xi(s)?s.canActivate(n,t):T(o,()=>s(n,t));return ue(a).pipe(K())}));return g(r).pipe(Me())}function lo(t,n){let e=n[n.length-1],i=n.slice(0,n.length-1).reverse().map(o=>Qi(o)).filter(o=>o!==null).map(o=>We(()=>{let s=o.guards.map(a=>{let c=o.node._environmentInjector,u=Ne(a,c),d=eo(u)?u.canActivateChild(e,t):T(c,()=>u(e,t));return ue(d).pipe(K())});return g(s).pipe(Me())}));return g(i).pipe(Me())}function ho(t,n,e,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=Ne(s,a),u=to(c)?c.canDeactivate(t,n,e,r):T(a,()=>c(t,n,e,r));return ue(u).pipe(K())});return g(o).pipe(Me())}function fo(t,n,e,r,i){let o=n.canLoad;if(o===void 0||o.length===0)return g(!0);let s=o.map(a=>{let c=Ne(a,t),u=Ji(c)?c.canLoad(n,e):T(t,()=>c(n,e)),d=ue(u);return i?d.pipe(Fn(i)):d});return g(s).pipe(Me(),qn(r))}function qn(t){return Sr(q(n=>{if(typeof n!="boolean")throw wt(t,n)}),I(n=>n===!0))}function po(t,n,e,r,i){let o=n.canMatch;if(!o||o.length===0)return g(!0);let s=o.map(a=>{let c=Ne(a,t),u=ro(c)?c.canMatch(n,e):T(t,()=>c(n,e));return ue(u).pipe(Fn(i))});return g(s).pipe(Me(),qn(r))}var V=class t extends Error{segmentGroup;constructor(n){super(),this.segmentGroup=n||null,Object.setPrototypeOf(this,t.prototype)}},qe=class t extends Error{urlTree;constructor(n){super(),this.urlTree=n,Object.setPrototypeOf(this,t.prototype)}};function go(t){throw new w(4e3,!1)}function vo(t){throw jn(!1,b.GuardRejected)}var ir=class{urlSerializer;urlTree;constructor(n,e){this.urlSerializer=n,this.urlTree=e}lineralizeSegments(n,e){return y(this,null,function*(){let r=[],i=e.root;for(;;){if(r=r.concat(i.segments),i.numberOfChildren===0)return r;if(i.numberOfChildren>1||!i.children[p])throw go(`${n.redirectTo}`);i=i.children[p]}})}applyRedirectCommands(n,e,r,i,o){return y(this,null,function*(){let s=yield mo(e,i,o);if(s instanceof x)throw new qe(s);let a=this.applyRedirectCreateUrlTree(s,this.urlSerializer.parse(s),n,r);if(s[0]==="/")throw new qe(a);return a})}applyRedirectCreateUrlTree(n,e,r,i){let o=this.createSegmentGroup(n,e.root,r,i);return new x(o,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 a=o.substring(1);r[i]=e[a]}else r[i]=o}),r}createSegmentGroup(n,e,r,i){let o=this.createSegments(n,e.segments,r,i),s={};return Object.entries(e.children).forEach(([a,c])=>{s[a]=this.createSegmentGroup(n,c,r,i)}),new v(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 w(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 mo(t,n,e){if(typeof t=="string")return Promise.resolve(t);let r=t,{queryParams:i,fragment:o,routeConfig:s,url:a,outlet:c,params:u,data:d,title:f,paramMap:R,queryParamMap:m}=n;return st(ue(T(e,()=>r({params:u,data:d,queryParams:i,fragment:o,routeConfig:s,url:a,outlet:c,title:f,paramMap:R,queryParamMap:m}))))}function yo(t,n){return t.providers&&!t._injector&&(t._injector=Je(t.providers,n,`Route: ${t.path}`)),t._injector??n}function L(t){return t.outlet||p}function Ro(t,n){let e=t.filter(r=>L(r)===n);return e.push(...t.filter(r=>L(r)!==n)),e}var or={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function Co(t,n,e,r,i,o){let s=Bn(t,n,e);return s.matched?(r=yo(n,r),po(r,n,e,i,o).pipe(I(a=>a===!0?s:h({},or)))):g(s)}function Bn(t,n,e){if(n.path==="")return n.pathMatch==="full"&&(t.hasChildren()||e.length>0)?h({},or):{matched:!0,consumedSegments:[],remainingSegments:e,parameters:{},positionalParamSegments:{}};let i=(n.matcher||gn)(e,t,n);if(!i)return h({},or);let o={};Object.entries(i.posParams??{}).forEach(([a,c])=>{o[a]=c.path});let s=i.consumed.length>0?h(h({},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 hn(t,n,e,r){return e.length>0&&bo(t,e,r)?{segmentGroup:new v(n,wo(r,new v(e,t.children))),slicedSegments:[]}:e.length===0&&Io(t,e,r)?{segmentGroup:new v(t.segments,So(t,e,r,t.children)),slicedSegments:e}:{segmentGroup:new v(t.segments,t.children),slicedSegments:e}}function So(t,n,e,r){let i={};for(let o of e)if(Et(t,n,o)&&!r[L(o)]){let s=new v([],{});i[L(o)]=s}return h(h({},r),i)}function wo(t,n){let e={};e[p]=n;for(let r of t)if(r.path===""&&L(r)!==p){let i=new v([],{});e[L(r)]=i}return e}function bo(t,n,e){return e.some(r=>Et(t,n,r)&&L(r)!==p)}function Io(t,n,e){return e.some(r=>Et(t,n,r))}function Et(t,n,e){return(t.hasChildren()||n.length>0)&&e.pathMatch==="full"?!1:e.path===""}function Eo(t,n,e){return n.length===0&&!t.children[e]}var sr=class{};function Ao(t,n,e,r,i,o,s="emptyOnly",a){return y(this,null,function*(){return new ar(t,n,e,r,i,s,o,a).recognize()})}var To=31,ar=class{injector;configLoader;rootComponentType;config;urlTree;paramsInheritanceStrategy;urlSerializer;abortSignal;applyRedirects;absoluteRedirectCount=0;allowRedirects=!0;constructor(n,e,r,i,o,s,a,c){this.injector=n,this.configLoader=e,this.rootComponentType=r,this.config=i,this.urlTree=o,this.paramsInheritanceStrategy=s,this.urlSerializer=a,this.abortSignal=c,this.applyRedirects=new ir(this.urlSerializer,this.urlTree)}noMatchError(n){return new w(4002,`'${n.segmentGroup}'`)}recognize(){return y(this,null,function*(){let n=hn(this.urlTree.root,[],[],this.config).segmentGroup,{children:e,rootSnapshot:r}=yield this.match(n),i=new M(r,e),o=new ze("",i),s=An(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 y(this,null,function*(){let e=new se([],Object.freeze({}),Object.freeze(h({},this.urlTree.queryParams)),this.urlTree.fragment,Object.freeze({}),p,this.rootComponentType,null,{},this.injector);try{return{children:yield this.processSegmentGroup(this.injector,this.config,n,p,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}})}processSegmentGroup(n,e,r,i,o){return y(this,null,function*(){if(r.segments.length===0&&r.hasChildren())return this.processChildren(n,e,r,o);let s=yield this.processSegment(n,e,r,r.segments,i,!0,o);return s instanceof M?[s]:[]})}processChildren(n,e,r,i){return y(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],d=Ro(e,c),f=yield this.processSegmentGroup(n,d,u,c,i);s.push(...f)}let a=Hn(s);return Mo(a),a})}processSegment(n,e,r,i,o,s,a){return y(this,null,function*(){for(let c of e)try{return yield this.processSegmentAgainstRoute(c._injector??n,e,c,r,i,o,s,a)}catch(u){if(u instanceof V||$n(u))continue;throw u}if(Eo(r,i,o))return new sr;throw new V(r)})}processSegmentAgainstRoute(n,e,r,i,o,s,a,c){return y(this,null,function*(){if(L(r)!==s&&(s===p||!Et(i,o,r)))throw new V(i);if(r.redirectTo===void 0)return this.matchSegmentAgainstRoute(n,i,r,o,s,c);if(this.allowRedirects&&a)return this.expandSegmentAgainstRouteUsingRedirect(n,i,e,r,o,s,c);throw new V(i)})}expandSegmentAgainstRouteUsingRedirect(n,e,r,i,o,s,a){return y(this,null,function*(){let{matched:c,parameters:u,consumedSegments:d,positionalParamSegments:f,remainingSegments:R}=Bn(e,i,o);if(!c)throw new V(e);typeof i.redirectTo=="string"&&i.redirectTo[0]==="/"&&(this.absoluteRedirectCount++,this.absoluteRedirectCount>To&&(this.allowRedirects=!1));let m=new se(o,u,Object.freeze(h({},this.urlTree.queryParams)),this.urlTree.fragment,dn(i),L(i),i.component??i._loadedComponent??null,i,fn(i),n),te=St(m,a,this.paramsInheritanceStrategy);if(m.params=Object.freeze(te.params),m.data=Object.freeze(te.data),this.abortSignal.aborted)throw new Error(this.abortSignal.reason);let re=yield this.applyRedirects.applyRedirectCommands(d,i.redirectTo,f,m,n),ne=yield this.applyRedirects.lineralizeSegments(i,re);return this.processSegment(n,r,e,ne.concat(R),s,!1,a)})}matchSegmentAgainstRoute(n,e,r,i,o,s){return y(this,null,function*(){if(this.abortSignal.aborted)throw new Error(this.abortSignal.reason);let a=yield st(Co(e,r,i,n,this.urlSerializer,this.abortSignal));if(r.path==="**"&&(e.children={}),!a?.matched)throw new V(e);n=r._injector??n;let{routes:c}=yield this.getChildConfig(n,r,i),u=r._loadedInjector??n,{parameters:d,consumedSegments:f,remainingSegments:R}=a,m=new se(f,d,Object.freeze(h({},this.urlTree.queryParams)),this.urlTree.fragment,dn(r),L(r),r.component??r._loadedComponent??null,r,fn(r),n),te=St(m,s,this.paramsInheritanceStrategy);m.params=Object.freeze(te.params),m.data=Object.freeze(te.data);let{segmentGroup:re,slicedSegments:ne}=hn(e,f,R,c);if(ne.length===0&&re.hasChildren()){let pi=yield this.processChildren(u,c,re,m);return new M(m,pi)}if(c.length===0&&ne.length===0)return new M(m,[]);let Dt=L(r)===o,Oe=yield this.processSegment(u,c,re,ne,Dt?p:o,!0,m);return new M(m,Oe instanceof M?[Oe]:[])})}getChildConfig(n,e,r){return y(this,null,function*(){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(yield st(fo(n,e,r,this.urlSerializer,this.abortSignal))){let o=yield this.configLoader.loadChildren(n,e);return e._loadedRoutes=o.routes,e._loadedInjector=o.injector,e._loadedNgModuleFactory=o.factory,o}throw vo(e)}return{routes:[],injector:n}})}};function Mo(t){t.sort((n,e)=>n.value.outlet===p?-1:e.value.outlet===p?1:n.value.outlet.localeCompare(e.value.outlet))}function No(t){let n=t.value.routeConfig;return n&&n.path===""}function Hn(t){let n=[],e=new Set;for(let r of t){if(!No(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=Hn(r.children);n.push(new M(r.value,i))}return n.filter(r=>!e.has(r))}function dn(t){return t.data||{}}function fn(t){return t.resolve||{}}function Do(t,n,e,r,i,o,s){return j(a=>y(null,null,function*(){let{state:c,tree:u}=yield Ao(t,n,e,r,a.extractedUrl,i,o,s);return D(h({},a),{targetSnapshot:c,urlAfterRedirects:u})}))}function Oo(t){return j(n=>{let{targetSnapshot:e,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 Vn(a))o.add(c);let s=0;return A(o).pipe(Ue(a=>i.has(a)?Uo(a,e,t):(a.data=St(a,a.parent,t).resolve,g(void 0))),q(()=>s++),_t(1),j(a=>s===o.size?g(n):U))})}function Vn(t){let n=t.children.map(e=>Vn(e)).flat();return[t,...n]}function Uo(t,n,e){let r=t.routeConfig,i=t._resolve;return r?.title!==void 0&&!_n(r)&&(i[Be]=r.title),We(()=>(t.data=St(t,t.parent,e).resolve,Po(i,t,n).pipe(I(o=>(t._resolvedData=o,t.data=h(h({},t.data),o),null)))))}function Po(t,n,e){let r=Kt(t);if(r.length===0)return g({});let i={};return A(r).pipe(j(o=>_o(t[o],n,e).pipe(K(),q(s=>{if(s instanceof Te)throw wt(new G,s);i[o]=s}))),_t(1),I(()=>i),Qe(o=>$n(o)?U:br(o)))}function _o(t,n,e){let r=n._environmentInjector,i=Ne(t,r),o=i.resolve?i.resolve(n,e):T(r,()=>i(n,e));return ue(o)}function pn(t){return F(n=>{let e=t(n);return e?A(e).pipe(I(()=>n)):g(n)})}var fr=(()=>{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===p);return r}getResolvedTitleForRoute(e){return e.data[Be]}static \u0275fac=function(r){return new(r||t)};static \u0275prov=S({token:t,factory:()=>l(Gn),providedIn:"root"})}return t})(),Gn=(()=>{class t extends fr{title;constructor(e){super(),this.title=e}updateTitle(e){let r=this.buildTitle(e);r!==void 0&&this.title.setTitle(r)}static \u0275fac=function(r){return new(r||t)(Y(on))};static \u0275prov=S({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),ee=new E("",{factory:()=>({})}),de=new E(""),At=(()=>{class t{componentLoaders=new WeakMap;childrenLoaders=new WeakMap;onLoadStartListener;onLoadEndListener;compiler=l(Jr);loadComponent(e,r){return y(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=y(this,null,function*(){try{let o=yield mn(T(e,()=>r.loadComponent())),s=yield Kn(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(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=y(this,null,function*(){try{let o=yield Wn(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 \u0275fac=function(r){return new(r||t)};static \u0275prov=S({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function Wn(t,n,e,r){return y(this,null,function*(){let i=yield mn(T(e,()=>t.loadChildren())),o=yield Kn(Qn(i)),s;o instanceof Br||Array.isArray(o)?s=o:s=yield n.compileModuleAsync(o),r&&r(t);let a,c,u=!1,d;return Array.isArray(s)?(c=s,u=!0):(a=s.create(e).injector,d=s,c=a.get(de,[],{optional:!0,self:!0}).flat()),{routes:c.map(dr),injector:a,factory:d}})}function Lo(t){return t&&typeof t=="object"&&"default"in t}function Qn(t){return Lo(t)?t.default:t}function Kn(t){return y(this,null,function*(){return t})}var Tt=(()=>{class t{static \u0275fac=function(r){return new(r||t)};static \u0275prov=S({token:t,factory:()=>l(xo),providedIn:"root"})}return t})(),xo=(()=>{class t{shouldProcessUrl(e){return!0}extract(e){return e}merge(e,r){return e}static \u0275fac=function(r){return new(r||t)};static \u0275prov=S({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),pr=new E(""),gr=new E("");function Yn(t,n,e){let r=t.get(gr),i=t.get(Ur);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(),jo(t)));a.updateCallbackDone.catch(u=>{}),a.ready.catch(u=>{}),a.finished.catch(u=>{});let{onViewTransitionCreated:c}=r;return c&&T(t,()=>c({transition:a,from:n,to:e})),s}function jo(t){return new Promise(n=>{kt({read:()=>setTimeout(n)},{injector:t})})}var ko=()=>{},vr=new E(""),Mt=(()=>{class t{currentNavigation=Pe(null,{equal:()=>!1});currentTransition=null;lastSuccessfulNavigation=Pe(null);events=new ie;transitionAbortWithErrorSubject=new ie;configLoader=l(At);environmentInjector=l(B);destroyRef=l(xt);urlSerializer=l(le);rootContexts=l(he);location=l(me);inputBindingEnabled=l(He,{optional:!0})!==null;titleStrategy=l(fr);options=l(ee,{optional:!0})||{};paramsInheritanceStrategy=this.options.paramsInheritanceStrategy||"emptyOnly";urlHandlingStrategy=l(Tt);createViewTransition=l(pr,{optional:!0});navigationErrorHandler=l(vr,{optional:!0});navigationId=0;get hasRequestedNavigation(){return this.navigationId!==0}transitions;afterPreactivation=()=>g(void 0);rootComponentType=null;destroyed=!1;constructor(){let e=i=>this.events.next(new ft(i)),r=i=>this.events.next(new pt(i));this.configLoader.onLoadEndListener=r,this.configLoader.onLoadStartListener=e,this.destroyRef.onDestroy(()=>{this.destroyed=!0})}complete(){this.transitions?.complete()}handleNavigationRequest(e){let r=++this.navigationId;H(()=>{this.transitions?.next(D(h({},e),{extractedUrl:this.urlHandlingStrategy.extract(e.rawUrl),targetSnapshot:null,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null,id:r}))})}setupNavigations(e){return this.transitions=new O(null),this.transitions.pipe(Q(r=>r!==null),F(r=>{let i=!1,o=new AbortController,s=()=>!i&&this.currentTransition?.id===r.id;return g(r).pipe(F(a=>{if(this.navigationId>r.id)return this.cancelNavigationTransition(r,"",b.SupersededByNewNavigation),U;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?D(h({},c),{previousNavigation:null}):null,abort:()=>o.abort()});let u=!e.navigated||this.isUpdatingInternalState()||this.isUpdatedBrowserUrl(),d=a.extras.onSameUrlNavigation??e.onSameUrlNavigation;if(!u&&d!=="reload")return this.events.next(new $(a.id,this.urlSerializer.serialize(a.rawUrl),"",we.IgnoredSameUrlNavigation)),a.resolve(!1),U;if(this.urlHandlingStrategy.shouldProcessUrl(a.rawUrl))return g(a).pipe(F(f=>(this.events.next(new X(f.id,this.urlSerializer.serialize(f.extractedUrl),f.source,f.restoredState)),f.id!==this.navigationId?U:Promise.resolve(f))),Do(this.environmentInjector,this.configLoader,this.rootComponentType,e.config,this.urlSerializer,this.paramsInheritanceStrategy,o.signal),q(f=>{r.targetSnapshot=f.targetSnapshot,r.urlAfterRedirects=f.urlAfterRedirects,this.currentNavigation.update(m=>(m.finalUrl=f.urlAfterRedirects,m));let R=new be(f.id,this.urlSerializer.serialize(f.extractedUrl),this.urlSerializer.serialize(f.urlAfterRedirects),f.targetSnapshot);this.events.next(R)}));if(u&&this.urlHandlingStrategy.shouldProcessUrl(a.currentRawUrl)){let{id:f,extractedUrl:R,source:m,restoredState:te,extras:re}=a,ne=new X(f,this.urlSerializer.serialize(R),m,te);this.events.next(ne);let Dt=Un(this.rootComponentType,this.environmentInjector).snapshot;return this.currentTransition=r=D(h({},a),{targetSnapshot:Dt,urlAfterRedirects:R,extras:D(h({},re),{skipLocationChange:!1,replaceUrl:!1})}),this.currentNavigation.update(Oe=>(Oe.finalUrl=R,Oe)),g(r)}else return this.events.next(new $(a.id,this.urlSerializer.serialize(a.extractedUrl),"",we.IgnoredByUrlHandlingStrategy)),a.resolve(!1),U}),I(a=>{let c=new ut(a.id,this.urlSerializer.serialize(a.extractedUrl),this.urlSerializer.serialize(a.urlAfterRedirects),a.targetSnapshot);return this.events.next(c),this.currentTransition=r=D(h({},a),{guards:Wi(a.targetSnapshot,a.currentSnapshot,this.rootContexts)}),r}),io(a=>this.events.next(a)),F(a=>{if(r.guardsResult=a.guardsResult,a.guardsResult&&typeof a.guardsResult!="boolean")throw wt(this.urlSerializer,a.guardsResult);let c=new lt(a.id,this.urlSerializer.serialize(a.extractedUrl),this.urlSerializer.serialize(a.urlAfterRedirects),a.targetSnapshot,!!a.guardsResult);if(this.events.next(c),!s())return U;if(!a.guardsResult)return this.cancelNavigationTransition(a,"",b.GuardRejected),U;if(a.guards.canActivateChecks.length===0)return g(a);let u=new ht(a.id,this.urlSerializer.serialize(a.extractedUrl),this.urlSerializer.serialize(a.urlAfterRedirects),a.targetSnapshot);if(this.events.next(u),!s())return U;let d=!1;return g(a).pipe(Oo(this.paramsInheritanceStrategy),q({next:()=>{d=!0;let f=new dt(a.id,this.urlSerializer.serialize(a.extractedUrl),this.urlSerializer.serialize(a.urlAfterRedirects),a.targetSnapshot);this.events.next(f)},complete:()=>{d||this.cancelNavigationTransition(a,"",b.NoDataFromResolver)}}))}),pn(a=>{let c=d=>{let f=[];if(d.routeConfig?._loadedComponent)d.component=d.routeConfig?._loadedComponent;else if(d.routeConfig?.loadComponent){let R=d._environmentInjector;f.push(this.configLoader.loadComponent(R,d.routeConfig).then(m=>{d.component=m}))}for(let R of d.children)f.push(...c(R));return f},u=c(a.targetSnapshot.root);return u.length===0?g(a):A(Promise.all(u).then(()=>a))}),pn(()=>this.afterPreactivation()),F(()=>{let{currentSnapshot:a,targetSnapshot:c}=r,u=this.createViewTransition?.(this.environmentInjector,a.root,c.root);return u?A(u).pipe(I(()=>r)):g(r)}),fe(1),I(a=>{let c=Bi(e.routeReuseStrategy,a.targetSnapshot,a.currentRouterState);this.currentTransition=r=a=D(h({},a),{targetRouterState:c}),this.currentNavigation.update(u=>(u.targetRouterState=c,u)),this.events.next(new Ee),s()&&(new nr(e.routeReuseStrategy,r.targetRouterState,r.currentRouterState,u=>this.events.next(u),this.inputBindingEnabled).activate(this.rootContexts),s()&&(i=!0,this.currentNavigation.update(u=>(u.abort=ko,u)),this.lastSuccessfulNavigation.set(H(this.currentNavigation)),this.events.next(new _(a.id,this.urlSerializer.serialize(a.extractedUrl),this.urlSerializer.serialize(a.urlAfterRedirects))),this.titleStrategy?.updateTitle(a.targetRouterState.snapshot),a.resolve(!0)))}),Ke(zn(o.signal).pipe(Q(()=>!i&&!r.targetRouterState),q(()=>{this.cancelNavigationTransition(r,o.signal.reason+"",b.Aborted)}))),q({complete:()=>{i=!0}}),Ke(this.transitionAbortWithErrorSubject.pipe(q(a=>{throw a}))),Ar(()=>{o.abort(),i||this.cancelNavigationTransition(r,"",b.SupersededByNewNavigation),this.currentTransition?.id===r.id&&(this.currentNavigation.set(null),this.currentTransition=null)}),Qe(a=>{if(i=!0,this.destroyed)return r.resolve(!1),U;if(kn(a))this.events.next(new P(r.id,this.urlSerializer.serialize(r.extractedUrl),a.message,a.cancellationCode)),Gi(a)?this.events.next(new Ae(a.url,a.navigationBehaviorOptions)):r.resolve(!1);else{let c=new ce(r.id,this.urlSerializer.serialize(r.extractedUrl),a,r.targetSnapshot??void 0);try{let u=T(this.environmentInjector,()=>this.navigationErrorHandler?.(c));if(u instanceof Te){let{message:d,cancellationCode:f}=wt(this.urlSerializer,u);this.events.next(new P(r.id,this.urlSerializer.serialize(r.extractedUrl),d,f)),this.events.next(new Ae(u.redirectTo,u.navigationBehaviorOptions))}else throw this.events.next(c),a}catch(u){this.options.resolveNavigationPromiseOnError?r.resolve(!1):r.reject(u)}}return U}))}))}cancelNavigationTransition(e,r,i){let o=new P(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=H(this.currentNavigation),i=r?.targetBrowserUrl??r?.extractedUrl;return e.toString()!==i?.toString()&&!r?.extras.skipLocationChange}static \u0275fac=function(r){return new(r||t)};static \u0275prov=S({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function $o(t){return t!==Ce}var Zn=new E("");var Jn=(()=>{class t{static \u0275fac=function(r){return new(r||t)};static \u0275prov=S({token:t,factory:()=>l(zo),providedIn:"root"})}return t})(),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}},zo=(()=>{class t extends It{static \u0275fac=(()=>{let e;return function(i){return(e||(e=jt(t)))(i||t)}})();static \u0275prov=S({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),mr=(()=>{class t{urlSerializer=l(le);options=l(ee,{optional:!0})||{};canceledNavigationResolution=this.options.canceledNavigationResolution||"replace";location=l(me);urlHandlingStrategy=l(Tt);urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred";currentUrlTree=new x;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 x?this.urlSerializer.serialize(s):s}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=Un(null,l(B));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||t)};static \u0275prov=S({token:t,factory:()=>l(Fo),providedIn:"root"})}return t})(),Fo=(()=>{class t extends mr{currentPageId=0;lastSuccessfulId=-1;get browserPageId(){return this.canceledNavigationResolution!=="computed"?this.currentPageId:this.restoredState()?.\u0275routerPageId??this.currentPageId}registerNonRouterCurrentEntryChangeListener(e){return this.location.subscribe(r=>{r.type==="popstate"&&setTimeout(()=>{e(r.url,r.state,"popstate")})})}handleRouterEvent(e,r){e instanceof X?this.updateStateMemento():e instanceof $?this.commitTransition(r):e instanceof be?this.urlUpdateStrategy==="eager"&&(r.extras.skipLocationChange||this.setBrowserUrl(this.createBrowserPath(r),r)):e instanceof Ee?(this.commitTransition(r),this.urlUpdateStrategy==="deferred"&&!r.extras.skipLocationChange&&this.setBrowserUrl(this.createBrowserPath(r),r)):e instanceof P&&!On(e)?this.restoreHistory(r):e instanceof ce?this.restoreHistory(r,!0):e instanceof _&&(this.lastSuccessfulId=e.id,this.currentPageId=this.browserPageId)}setBrowserUrl(e,{extras:r,id:i}){let{replaceUrl:o,state:s}=r;if(this.location.isCurrentPathEqualTo(e)||o){let a=this.browserPageId,c=h(h({},s),this.generateNgRouterState(i,a));this.location.replaceState(e,"",c)}else{let a=h(h({},s),this.generateNgRouterState(i,this.browserPageId+1));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){return this.canceledNavigationResolution==="computed"?{navigationId:e,\u0275routerPageId:r}:{navigationId:e}}static \u0275fac=(()=>{let e;return function(i){return(e||(e=jt(t)))(i||t)}})();static \u0275prov=S({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function Nt(t,n){t.events.pipe(Q(e=>e instanceof _||e instanceof P||e instanceof ce||e instanceof $),I(e=>e instanceof _||e instanceof $?0:(e instanceof P?e.code===b.Redirect||e.code===b.SupersededByNewNavigation:!1)?2:1),Q(e=>e!==2),fe(1)).subscribe(()=>{n()})}var Xn={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},ei={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"},W=(()=>{class t{get currentUrlTree(){return this.stateManager.getCurrentUrlTree()}get rawUrlTree(){return this.stateManager.getRawUrlTree()}disposed=!1;nonRouterCurrentEntryChangeSubscription;console=l(Gr);stateManager=l(mr);options=l(ee,{optional:!0})||{};pendingTasks=l(Pr);urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred";navigationTransitions=l(Mt);urlSerializer=l(le);location=l(me);urlHandlingStrategy=l(Tt);injector=l(B);_events=new ie;get events(){return this._events}get routerState(){return this.stateManager.getRouterState()}navigated=!1;routeReuseStrategy=l(Jn);injectorCleanup=l(Zn,{optional:!0});onSameUrlNavigation=this.options.onSameUrlNavigation||"ignore";config=l(de,{optional:!0})?.flat()??[];componentInputBindingEnabled=!!l(He,{optional:!0});currentNavigation=this.navigationTransitions.currentNavigation.asReadonly();constructor(){this.resetConfig(this.config),this.navigationTransitions.setupNavigations(this).subscribe({error:e=>{}}),this.subscribeToNavigationEvents()}eventsSubscription=new Cr;subscribeToNavigationEvents(){let e=this.navigationTransitions.events.subscribe(r=>{try{let i=this.navigationTransitions.currentTransition,o=H(this.navigationTransitions.currentNavigation);if(i!==null&&o!==null){if(this.stateManager.handleRouterEvent(r,o),r instanceof P&&r.code!==b.Redirect&&r.code!==b.SupersededByNewNavigation)this.navigated=!0;else if(r instanceof _)this.navigated=!0,this.injectorCleanup?.(this.routeReuseStrategy,this.routerState,this.config);else if(r instanceof Ae){let s=r.navigationBehaviorOptions,a=this.urlHandlingStrategy.merge(r.url,i.currentRawUrl),c=h({scroll:i.extras.scroll,browserUrl:i.extras.browserUrl,info:i.extras.info,skipLocationChange:i.extras.skipLocationChange,replaceUrl:i.extras.replaceUrl||this.urlUpdateStrategy==="eager"||$o(i.source)},s);this.scheduleNavigation(a,Ce,null,c,{resolve:i.resolve,reject:i.reject,promise:i.promise})}}Fi(r)&&this._events.next(r)}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),Ce,this.stateManager.restoredState())}setUpLocationChangeListener(){this.nonRouterCurrentEntryChangeSubscription??=this.stateManager.registerNonRouterCurrentEntryChangeListener((e,r,i)=>{this.navigateToSyncWithBrowser(e,i,r)})}navigateToSyncWithBrowser(e,r,i){let o={replaceUrl:!0},s=i?.navigationId?i:null;if(i){let c=h({},i);delete c.navigationId,delete c.\u0275routerPageId,Object.keys(c).length!==0&&(o.state=c)}let a=this.parseUrl(e);this.scheduleNavigation(a,r,s,o).catch(c=>{this.disposed||this.injector.get(Ye)(c)})}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return H(this.navigationTransitions.currentNavigation)}get lastSuccessfulNavigation(){return this.navigationTransitions.lastSuccessfulNavigation}resetConfig(e){this.config=e.map(dr),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={}){let{relativeTo:i,queryParams:o,fragment:s,queryParamsHandling:a,preserveFragment:c}=r,u=c?this.currentUrlTree.fragment:s,d=null;switch(a??this.options.defaultQueryParamsHandling){case"merge":d=h(h({},this.currentUrlTree.queryParams),o);break;case"preserve":d=this.currentUrlTree.queryParams;break;default:d=o||null}d!==null&&(d=this.removeEmptyProps(d));let f;try{let R=i?i.snapshot:this.routerState.snapshot.root;f=Tn(R)}catch{(typeof e[0]!="string"||e[0][0]!=="/")&&(e=[]),f=this.currentUrlTree.root}return Mn(f,e,d,u??null,this.urlSerializer)}navigateByUrl(e,r={skipLocationChange:!1}){let i=J(e)?e:this.parseUrl(e),o=this.urlHandlingStrategy.merge(i,this.rawUrlTree);return this.scheduleNavigation(o,Ce,null,r)}navigate(e,r={skipLocationChange:!1}){return qo(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(Mr(4018,!1)),this.urlSerializer.parse("/")}}isActive(e,r){let i;if(r===!0?i=h({},Xn):r===!1?i=h({},ei):i=r,J(e))return sn(this.currentUrlTree,e,i);let o=this.parseUrl(e);return sn(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){if(this.disposed)return Promise.resolve(!1);let a,c,u;s?(a=s.resolve,c=s.reject,u=s.promise):u=new Promise((f,R)=>{a=f,c=R});let d=this.pendingTasks.add();return Nt(this,()=>{queueMicrotask(()=>this.pendingTasks.remove(d))}),this.navigationTransitions.handleNavigationRequest({source:r,restoredState:i,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,rawUrl:e,extras:o,resolve:a,reject:c,promise:u,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),u.catch(f=>Promise.reject(f))}static \u0275fac=function(r){return new(r||t)};static \u0275prov=S({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function qo(t){for(let n=0;n<t.length;n++)if(t[n]==null)throw new w(4008,!1)}var ti=(()=>{class t{router;route;tabIndexAttribute;renderer;el;locationStrategy;reactiveHref=Pe(null);get href(){return H(this.reactiveHref)}set href(e){this.reactiveHref.set(e)}target;queryParams;fragment;queryParamsHandling;state;info;relativeTo;isAnchorElement;subscription;onChanges=new ie;applicationErrorHandler=l(Ye);options=l(ee,{optional:!0});constructor(e,r,i,o,s,a){this.router=e,this.route=r,this.tabIndexAttribute=i,this.renderer=o,this.el=s,this.locationStrategy=a,this.reactiveHref.set(l(new Xr("href"),{optional:!0}));let c=s.nativeElement.tagName?.toLowerCase();this.isAnchorElement=c==="a"||c==="area"||!!(typeof customElements=="object"&&customElements.get(c)?.observedAttributes?.includes?.("href")),this.isAnchorElement&&(this.setTabIndexIfNotOnNativeEl("0"),this.subscribeToNavigationEventsIfNecessary())}subscribeToNavigationEventsIfNecessary(){this.subscription===void 0&&(this.subscription=this.router.events.subscribe(e=>{e instanceof _&&this.updateHref()}))}preserveFragment=!1;skipLocationChange=!1;replaceUrl=!1;setTabIndexIfNotOnNativeEl(e){this.tabIndexAttribute!=null||this.isAnchorElement||this.applyAttributeValue("tabindex",e)}ngOnChanges(e){this.isAnchorElement&&this.updateHref(),this.onChanges.next(this)}routerLinkInput=null;set routerLink(e){e==null?(this.routerLinkInput=null,this.setTabIndexIfNotOnNativeEl(null)):(J(e)?this.routerLinkInput=e:this.routerLinkInput=Array.isArray(e)?e:[e],this.setTabIndexIfNotOnNativeEl("0"))}onClick(e,r,i,o,s){let a=this.urlTree;if(a===null||this.isAnchorElement&&(e!==0||r||i||o||s||typeof this.target=="string"&&this.target!="_self"))return!0;let c={skipLocationChange:this.skipLocationChange,replaceUrl:this.replaceUrl,state:this.state,info:this.info};return this.router.navigateByUrl(a,c)?.catch(u=>{this.applicationErrorHandler(u)}),!this.isAnchorElement}ngOnDestroy(){this.subscription?.unsubscribe()}updateHref(){let e=this.urlTree;this.reactiveHref.set(e!==null&&this.locationStrategy?this.locationStrategy?.prepareExternalUrl(this.router.serializeUrl(e))??"":null)}applyAttributeValue(e,r){let i=this.renderer,o=this.el.nativeElement;r!==null?i.setAttribute(o,e,r):i.removeAttribute(o,e)}get urlTree(){return this.routerLinkInput===null?null:J(this.routerLinkInput)?this.routerLinkInput:this.router.createUrlTree(this.routerLinkInput,{relativeTo:this.relativeTo!==void 0?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:this.preserveFragment})}static \u0275fac=function(r){return new(r||t)(ge(W),ge(z),Lr("tabindex"),ge(zr),ge(xr),ge(ve))};static \u0275dir=Xe({type:t,selectors:[["","routerLink",""]],hostVars:2,hostBindings:function(r,i){r&1&&Zr("click",function(s){return i.onClick(s.button,s.ctrlKey,s.shiftKey,s.altKey,s.metaKey)}),r&2&&Kr("href",i.reactiveHref(),kr)("target",i.target)},inputs:{target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",state:"state",info:"info",relativeTo:"relativeTo",preserveFragment:[2,"preserveFragment","preserveFragment",et],skipLocationChange:[2,"skipLocationChange","skipLocationChange",et],replaceUrl:[2,"replaceUrl","replaceUrl",et],routerLink:"routerLink"},features:[Ze]})}return t})();var Ge=class{};var ri=(()=>{class t{router;injector;preloadingStrategy;loader;subscription;constructor(e,r,i,o){this.router=e,this.injector=r,this.preloadingStrategy=i,this.loader=o}setUpPreloading(){this.subscription=this.router.events.pipe(Q(e=>e instanceof _),Ue(()=>this.preload())).subscribe(()=>{})}preload(){return this.processRoutes(this.injector,this.router.config)}ngOnDestroy(){this.subscription?.unsubscribe()}processRoutes(e,r){let i=[];for(let o of r){o.providers&&!o._injector&&(o._injector=Je(o.providers,e,""));let s=o._injector??e;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 A(i).pipe(Pt())}preloadConfig(e,r){return this.preloadingStrategy.preload(r,()=>{if(e.destroyed)return g(null);let i;r.loadChildren&&r.canLoad===void 0?i=A(this.loader.loadChildren(e,r)):i=g(null);let o=i.pipe(j(s=>s===null?g(void 0):(r._loadedRoutes=s.routes,r._loadedInjector=s.injector,r._loadedNgModuleFactory=s.factory,this.processRoutes(s.injector??e,s.routes))));if(r.loadComponent&&!r._loadedComponent){let s=this.loader.loadComponent(e,r);return A([o,s]).pipe(Pt())}else return o})}static \u0275fac=function(r){return new(r||t)(Y(W),Y(B),Y(Ge),Y(At))};static \u0275prov=S({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),ni=new E(""),Ho=(()=>{class t{options;routerEventsSubscription;scrollEventsSubscription;lastId=0;lastSource=Ce;restoredId=0;store={};urlSerializer=l(le);zone=l(_r);viewportScroller=l(Bt);transitions=l(Mt);constructor(e){this.options=e,this.options.scrollPositionRestoration||="disabled",this.options.anchorScrolling||="disabled"}init(){this.options.scrollPositionRestoration!=="disabled"&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents()}createScrollEvents(){return this.transitions.events.subscribe(e=>{e instanceof X?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=e.navigationTrigger,this.restoredId=e.restoredState?e.restoredState.navigationId:0):e instanceof _?(this.lastId=e.id,this.scheduleScrollEvent(e,this.urlSerializer.parse(e.urlAfterRedirects).fragment)):e instanceof $&&e.code===we.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 Ie)||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){let i=H(this.transitions.currentNavigation)?.extras.scroll;this.zone.runOutsideAngular(()=>y(this,null,function*(){yield new Promise(o=>{setTimeout(o),typeof requestAnimationFrame<"u"&&requestAnimationFrame(o)}),this.zone.run(()=>{this.transitions.events.next(new Ie(e,this.lastSource==="popstate"?this.store[this.restoredId]:null,r,i))})}))}ngOnDestroy(){this.routerEventsSubscription?.unsubscribe(),this.scrollEventsSubscription?.unsubscribe()}static \u0275fac=function(r){Fr()};static \u0275prov=S({token:t,factory:t.\u0275fac})}return t})();function Vo(t,...n){return Or([{provide:de,multi:!0,useValue:t},[],{provide:z,useFactory:ii},{provide:zt,multi:!0,useFactory:oi},n.map(e=>e.\u0275providers)])}function ii(){return l(W).routerState.root}function De(t,n){return{\u0275kind:t,\u0275providers:n}}function oi(){let t=l(Lt);return n=>{let e=t.get(Qr);if(n!==e.components[0])return;let r=t.get(W),i=t.get(si);t.get(Rr)===1&&r.initialNavigation(),t.get(ui,null,{optional:!0})?.setUpPreloading(),t.get(ni,null,{optional:!0})?.init(),r.resetRootComponentType(e.componentTypes[0]),i.closed||(i.next(),i.complete(),i.unsubscribe())}}var si=new E("",{factory:()=>new ie}),Rr=new E("",{factory:()=>1});function ai(){let t=[{provide:jr,useValue:!0},{provide:Rr,useValue:0},$t(()=>{let n=l(Lt);return n.get(rn,Promise.resolve()).then(()=>new Promise(r=>{let i=n.get(W),o=n.get(si);Nt(i,()=>{r(!0)}),n.get(Mt).afterPreactivation=()=>(r(!0),o.closed?g(void 0):o),i.initialNavigation()}))})];return De(2,t)}function ci(){let t=[$t(()=>{l(W).setUpLocationChangeListener()}),{provide:Rr,useValue:2}];return De(3,t)}var ui=new E("");function li(t){return De(0,[{provide:ui,useExisting:ri},{provide:Ge,useExisting:t}])}function Go(){return De(6,[{provide:ve,useClass:qt}])}function hi(){return De(8,[lr,{provide:He,useExisting:lr}])}function di(t){$r("NgRouterViewTransitions");let n=[{provide:pr,useValue:Yn},{provide:gr,useValue:h({skipNextTransition:!!t?.skipInitialTransition},t)}];return De(9,n)}var fi=[me,{provide:le,useClass:G},W,he,{provide:z,useFactory:ii},At,[]],Wo=(()=>{class t{constructor(){}static forRoot(e,r){return{ngModule:t,providers:[fi,[],{provide:de,multi:!0,useValue:e},[],r?.errorHandler?{provide:vr,useValue:r.errorHandler}:[],{provide:ee,useValue:r||{}},r?.useHash?Ko():Yo(),Qo(),r?.preloadingStrategy?li(r.preloadingStrategy).\u0275providers:[],r?.initialNavigation?Zo(r):[],r?.bindToComponentInputs?hi().\u0275providers:[],r?.enableViewTransitions?di().\u0275providers:[],Jo()]}}static forChild(e){return{ngModule:t,providers:[{provide:de,multi:!0,useValue:e}]}}static \u0275fac=function(r){return new(r||t)};static \u0275mod=Vr({type:t});static \u0275inj=Nr({})}return t})();function Qo(){return{provide:ni,useFactory:()=>{let t=l(Bt),n=l(ee);return n.scrollOffset&&t.setOffset(n.scrollOffset),new Ho(n)}}}function Ko(){return{provide:ve,useClass:qt}}function Yo(){return{provide:ve,useClass:nn}}function Zo(t){return[t.initialNavigation==="disabled"?ci().\u0275providers:[],t.initialNavigation==="enabledBlocking"?ai().\u0275providers:[]]}var yr=new E("");function Jo(){return[{provide:yr,useFactory:oi},{provide:zt,multi:!0,useExisting:yr}]}export{_ as a,ur as b,W as c,ti as d,Vo as e,Go as f,Wo as g};
1
+ import{A as Ut,Aa as Ur,Ac as Jr,B as j,Ba as xt,C as Pt,Ca as Pr,D as Er,Da as pe,E as We,Ea as _r,Ec as Xr,Fa as Ye,Ga as Pe,Gc as en,Ia as H,Ib as Yr,Ja as Ze,K as Q,Ka as jt,La as Lr,Lc as Ft,M as Qe,Ma as xr,N as Ue,Nc as et,Q as fe,Qa as jr,Rb as Zr,Rc as tn,Tc as rn,Ua as kr,Uc as ve,V as Ar,Vc as nn,W as K,Wc as me,X as _t,Xc as qt,Ya as $r,Za as kt,a as h,ab as zr,b as D,ba as Tr,bb as ge,ca as F,cb as Fr,da as Ke,eb as qr,f as y,fa as q,g as Cr,gb as Br,hb as Je,i as Sr,ia as w,ib as Hr,id as Bt,j as wr,ja as Mr,jb as Vr,k as ie,kb as Xe,la as S,m as O,ma as Nr,na as Dr,oa as E,pa as Y,q as U,qa as l,qb as Gr,r as A,ra as Or,s as g,sb as Wr,sd as on,t as br,ta as B,tb as $t,u as Ot,ua as T,ub as zt,v as Ir,vb as Qr,xb as Kr,z as I,za as Lt}from"./chunk-GSMU2M4Y.js";var p="primary",Be=Symbol("RouteTitle"),Qt=class{params;constructor(n){this.params=n||{}}has(n){return Object.prototype.hasOwnProperty.call(this.params,n)}get(n){if(this.has(n)){let e=this.params[n];return Array.isArray(e)?e[0]:e}return null}getAll(n){if(this.has(n)){let e=this.params[n];return Array.isArray(e)?e:[e]}return[]}get keys(){return Object.keys(this.params)}};function ae(t){return new Qt(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 gn(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 c={},u=t.slice(0,r.length);return Ht(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>t.length||e.pathMatch==="full"&&n.hasChildren()&&e.path!=="**")return null;let a={};return!Ht(o,t.slice(0,o.length),a)||!Ht(s,t.slice(t.length-s.length),a)?null:{consumed:t,posParams:a}}function st(t){return new Promise((n,e)=>{t.pipe(K()).subscribe({next:r=>n(r),error:r=>e(r)})})}function vi(t,n){if(t.length!==n.length)return!1;for(let e=0;e<t.length;++e)if(!k(t[e],n[e]))return!1;return!0}function k(t,n){let e=t?Kt(t):void 0,r=n?Kt(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],!vn(t[i],n[i]))return!1;return!0}function Kt(t){return[...Object.keys(t),...Object.getOwnPropertySymbols(t)]}function vn(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 mi(t){return t.length>0?t[t.length-1]:null}function ue(t){return Ot(t)?t:Wr(t)?A(Promise.resolve(t)):g(t)}function mn(t){return Ot(t)?st(t):Promise.resolve(t)}var yi={exact:Rn,subset:Cn},yn={exact:Ri,subset:Ci,ignored:()=>!0};function sn(t,n,e){return yi[e.paths](t.root,n.root,e.matrixParams)&&yn[e.queryParams](t.queryParams,n.queryParams)&&!(e.fragment==="exact"&&t.fragment!==n.fragment)}function Ri(t,n){return k(t,n)}function Rn(t,n,e){if(!oe(t.segments,n.segments)||!nt(t.segments,n.segments,e)||t.numberOfChildren!==n.numberOfChildren)return!1;for(let r in n.children)if(!t.children[r]||!Rn(t.children[r],n.children[r],e))return!1;return!0}function Ci(t,n){return Object.keys(n).length<=Object.keys(t).length&&Object.keys(n).every(e=>vn(t[e],n[e]))}function Cn(t,n,e){return Sn(t,n,n.segments,e)}function Sn(t,n,e,r){if(t.segments.length>e.length){let i=t.segments.slice(0,e.length);return!(!oe(i,e)||n.hasChildren()||!nt(i,e,r))}else if(t.segments.length===e.length){if(!oe(t.segments,e)||!nt(t.segments,e,r))return!1;for(let i in n.children)if(!t.children[i]||!Cn(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!oe(t.segments,i)||!nt(t.segments,i,r)||!t.children[p]?!1:Sn(t.children[p],n,o,r)}}function nt(t,n,e){return n.every((r,i)=>yn[e](t[i].parameters,r.parameters))}var x=class{root;queryParams;fragment;_queryParamMap;constructor(n=new v([],{}),e={},r=null){this.root=n,this.queryParams=e,this.fragment=r}get queryParamMap(){return this._queryParamMap??=ae(this.queryParams),this._queryParamMap}toString(){return bi.serialize(this)}},v=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 it(this)}},Z=class{path;parameters;_parameterMap;constructor(n,e){this.path=n,this.parameters=e}get parameterMap(){return this._parameterMap??=ae(this.parameters),this._parameterMap}toString(){return bn(this)}};function Si(t,n){return oe(t,n)&&t.every((e,r)=>k(e.parameters,n[r].parameters))}function oe(t,n){return t.length!==n.length?!1:t.every((e,r)=>e.path===n[r].path)}function wi(t,n){let e=[];return Object.entries(t.children).forEach(([r,i])=>{r===p&&(e=e.concat(n(i,r)))}),Object.entries(t.children).forEach(([r,i])=>{r!==p&&(e=e.concat(n(i,r)))}),e}var le=(()=>{class t{static \u0275fac=function(r){return new(r||t)};static \u0275prov=S({token:t,factory:()=>new G,providedIn:"root"})}return t})(),G=class{parse(n){let e=new Zt(n);return new x(e.parseRootSegment(),e.parseQueryParams(),e.parseFragment())}serialize(n){let e=`/${_e(n.root,!0)}`,r=Ai(n.queryParams),i=typeof n.fragment=="string"?`#${Ii(n.fragment)}`:"";return`${e}${r}${i}`}},bi=new G;function it(t){return t.segments.map(n=>bn(n)).join("/")}function _e(t,n){if(!t.hasChildren())return it(t);if(n){let e=t.children[p]?_e(t.children[p],!1):"",r=[];return Object.entries(t.children).forEach(([i,o])=>{i!==p&&r.push(`${i}:${_e(o,!1)}`)}),r.length>0?`${e}(${r.join("//")})`:e}else{let e=wi(t,(r,i)=>i===p?[_e(t.children[p],!1)]:[`${i}:${_e(r,!1)}`]);return Object.keys(t.children).length===1&&t.children[p]!=null?`${it(t)}/${e[0]}`:`${it(t)}/(${e.join("//")})`}}function wn(t){return encodeURIComponent(t).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function tt(t){return wn(t).replace(/%3B/gi,";")}function Ii(t){return encodeURI(t)}function Yt(t){return wn(t).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function ot(t){return decodeURIComponent(t)}function an(t){return ot(t.replace(/\+/g,"%20"))}function bn(t){return`${Yt(t.path)}${Ei(t.parameters)}`}function Ei(t){return Object.entries(t).map(([n,e])=>`;${Yt(n)}=${Yt(e)}`).join("")}function Ai(t){let n=Object.entries(t).map(([e,r])=>Array.isArray(r)?r.map(i=>`${tt(e)}=${tt(i)}`).join("&"):`${tt(e)}=${tt(r)}`).filter(e=>e);return n.length?`?${n.join("&")}`:""}var Ti=/^[^\/()?;#]+/;function Vt(t){let n=t.match(Ti);return n?n[0]:""}var Mi=/^[^\/()?;=#]+/;function Ni(t){let n=t.match(Mi);return n?n[0]:""}var Di=/^[^=?&#]+/;function Oi(t){let n=t.match(Di);return n?n[0]:""}var Ui=/^[^&#]+/;function Pi(t){let n=t.match(Ui);return n?n[0]:""}var Zt=class{url;remaining;constructor(n){this.url=n,this.remaining=n}parseRootSegment(){return this.consumeOptional("/"),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(){if(this.remaining==="")return{};this.consumeOptional("/");let n=[];for(this.peekStartsWith("(")||n.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),n.push(this.parseSegment());let e={};this.peekStartsWith("/(")&&(this.capture("/"),e=this.parseParens(!0));let r={};return this.peekStartsWith("(")&&(r=this.parseParens(!1)),(n.length>0||Object.keys(e).length>0)&&(r[p]=new v(n,e)),r}parseSegment(){let n=Vt(this.remaining);if(n===""&&this.peekStartsWith(";"))throw new w(4009,!1);return this.capture(n),new Z(ot(n),this.parseMatrixParams())}parseMatrixParams(){let n={};for(;this.consumeOptional(";");)this.parseParam(n);return n}parseParam(n){let e=Ni(this.remaining);if(!e)return;this.capture(e);let r="";if(this.consumeOptional("=")){let i=Vt(this.remaining);i&&(r=i,this.capture(r))}n[ot(e)]=ot(r)}parseQueryParam(n){let e=Oi(this.remaining);if(!e)return;this.capture(e);let r="";if(this.consumeOptional("=")){let s=Pi(this.remaining);s&&(r=s,this.capture(r))}let i=an(e),o=an(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){let e={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){let r=Vt(this.remaining),i=this.remaining[r.length];if(i!=="/"&&i!==")"&&i!==";")throw new w(4010,!1);let o;r.indexOf(":")>-1?(o=r.slice(0,r.indexOf(":")),this.capture(o),this.capture(":")):n&&(o=p);let s=this.parseChildren();e[o??p]=Object.keys(s).length===1&&s[p]?s[p]:new v([],s),this.consumeOptional("//")}return e}peekStartsWith(n){return this.remaining.startsWith(n)}consumeOptional(n){return this.peekStartsWith(n)?(this.remaining=this.remaining.substring(n.length),!0):!1}capture(n){if(!this.consumeOptional(n))throw new w(4011,!1)}};function In(t){return t.segments.length>0?new v([],{[p]:t}):t}function En(t){let n={};for(let[r,i]of Object.entries(t.children)){let o=En(i);if(r===p&&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 e=new v(t.segments,n);return _i(e)}function _i(t){if(t.numberOfChildren===1&&t.children[p]){let n=t.children[p];return new v(t.segments.concat(n.segments),n.children)}return t}function J(t){return t instanceof x}function An(t,n,e=null,r=null,i=new G){let o=Tn(t);return Mn(o,n,e,r,i)}function Tn(t){let n;function e(o){let s={};for(let c of o.children){let u=e(c);s[c.outlet]=u}let a=new v(o.url,s);return o===t&&(n=a),a}let r=e(t.root),i=In(r);return n??i}function Mn(t,n,e,r,i){let o=t;for(;o.parent;)o=o.parent;if(n.length===0)return Gt(o,o,o,e,r,i);let s=Li(n);if(s.toRoot())return Gt(o,o,new v([],{}),e,r,i);let a=xi(s,o,t),c=a.processChildren?xe(a.segmentGroup,a.index,s.commands):Dn(a.segmentGroup,a.index,s.commands);return Gt(o,a.segmentGroup,c,e,r,i)}function at(t){return typeof t=="object"&&t!=null&&!t.outlets&&!t.segmentPath}function ke(t){return typeof t=="object"&&t!=null&&t.outlets}function cn(t,n,e){t||="\u0275";let r=new x;return r.queryParams={[t]:n},e.parse(e.serialize(r)).queryParams[t]}function Gt(t,n,e,r,i,o){let s={};for(let[u,d]of Object.entries(r??{}))s[u]=Array.isArray(d)?d.map(f=>cn(u,f,o)):cn(u,d,o);let a;t===n?a=e:a=Nn(t,n,e);let c=In(En(a));return new x(c,s,i)}function Nn(t,n,e){let r={};return Object.entries(t.children).forEach(([i,o])=>{o===n?r[i]=e:r[i]=Nn(o,n,e)}),new v(t.segments,r)}var ct=class{isAbsolute;numberOfDoubleDots;commands;constructor(n,e,r){if(this.isAbsolute=n,this.numberOfDoubleDots=e,this.commands=r,n&&r.length>0&&at(r[0]))throw new w(4003,!1);let i=r.find(ke);if(i&&i!==mi(r))throw new w(4004,!1)}toRoot(){return this.isAbsolute&&this.commands.length===1&&this.commands[0]=="/"}};function Li(t){if(typeof t[0]=="string"&&t.length===1&&t[0]==="/")return new ct(!0,0,t);let n=0,e=!1,r=t.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===""?e=!0:a===".."?n++:a!=""&&i.push(a))}),i):[...i,o]},[]);return new ct(e,n,r)}var Re=class{segmentGroup;processChildren;index;constructor(n,e,r){this.segmentGroup=n,this.processChildren=e,this.index=r}};function xi(t,n,e){if(t.isAbsolute)return new Re(n,!0,0);if(!e)return new Re(n,!1,NaN);if(e.parent===null)return new Re(e,!0,0);let r=at(t.commands[0])?0:1,i=e.segments.length-1+r;return ji(e,i,t.numberOfDoubleDots)}function ji(t,n,e){let r=t,i=n,o=e;for(;o>i;){if(o-=i,r=r.parent,!r)throw new w(4005,!1);i=r.segments.length}return new Re(r,!1,i-o)}function ki(t){return ke(t[0])?t[0].outlets:{[p]:t}}function Dn(t,n,e){if(t??=new v([],{}),t.segments.length===0&&t.hasChildren())return xe(t,n,e);let r=$i(t,n,e),i=e.slice(r.commandIndex);if(r.match&&r.pathIndex<t.segments.length){let o=new v(t.segments.slice(0,r.pathIndex),{});return o.children[p]=new v(t.segments.slice(r.pathIndex),t.children),xe(o,0,i)}else return r.match&&i.length===0?new v(t.segments,{}):r.match&&!t.hasChildren()?Jt(t,n,e):r.match?xe(t,0,i):Jt(t,n,e)}function xe(t,n,e){if(e.length===0)return new v(t.segments,{});{let r=ki(e),i={};if(Object.keys(r).some(o=>o!==p)&&t.children[p]&&t.numberOfChildren===1&&t.children[p].segments.length===0){let o=xe(t.children[p],n,e);return new v(t.segments,o.children)}return Object.entries(r).forEach(([o,s])=>{typeof s=="string"&&(s=[s]),s!==null&&(i[o]=Dn(t.children[o],n,s))}),Object.entries(t.children).forEach(([o,s])=>{r[o]===void 0&&(i[o]=s)}),new v(t.segments,i)}}function $i(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],a=e[r];if(ke(a))break;let c=`${a}`,u=r<e.length-1?e[r+1]:null;if(i>0&&c===void 0)break;if(c&&u&&typeof u=="object"&&u.outlets===void 0){if(!ln(c,u,s))return o;r+=2}else{if(!ln(c,{},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(ke(o)){let c=zi(o.outlets);return new v(r,c)}if(i===0&&at(e[0])){let c=t.segments[n];r.push(new Z(c.path,un(e[0]))),i++;continue}let s=ke(o)?o.outlets[p]:`${o}`,a=i<e.length-1?e[i+1]:null;s&&a&&at(a)?(r.push(new Z(s,un(a))),i+=2):(r.push(new Z(s,{})),i++)}return new v(r,{})}function zi(t){let n={};return Object.entries(t).forEach(([e,r])=>{typeof r=="string"&&(r=[r]),r!==null&&(n[e]=Jt(new v([],{}),0,r))}),n}function un(t){let n={};return Object.entries(t).forEach(([e,r])=>n[e]=`${r}`),n}function ln(t,n,e){return t==e.path&&k(n,e.parameters)}var Ce="imperative",C=(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})(C||{}),N=class{id;url;constructor(n,e){this.id=n,this.url=e}},X=class extends N{type=C.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}')`}},_=class extends N{urlAfterRedirects;type=C.NavigationEnd;constructor(n,e,r){super(n,e),this.urlAfterRedirects=r}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}},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||{}),we=(function(t){return t[t.IgnoredSameUrlNavigation=0]="IgnoredSameUrlNavigation",t[t.IgnoredByUrlHandlingStrategy=1]="IgnoredByUrlHandlingStrategy",t})(we||{}),P=class extends N{reason;code;type=C.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 On(t){return t instanceof P&&(t.code===b.Redirect||t.code===b.SupersededByNewNavigation)}var $=class extends N{reason;code;type=C.NavigationSkipped;constructor(n,e,r,i){super(n,e),this.reason=r,this.code=i}},ce=class extends N{error;target;type=C.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})`}},be=class extends N{urlAfterRedirects;state;type=C.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})`}},ut=class extends N{urlAfterRedirects;state;type=C.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})`}},lt=class extends N{urlAfterRedirects;state;shouldActivate;type=C.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})`}},ht=class extends N{urlAfterRedirects;state;type=C.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})`}},dt=class extends N{urlAfterRedirects;state;type=C.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})`}},ft=class{route;type=C.RouteConfigLoadStart;constructor(n){this.route=n}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}},pt=class{route;type=C.RouteConfigLoadEnd;constructor(n){this.route=n}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}},gt=class{snapshot;type=C.ChildActivationStart;constructor(n){this.snapshot=n}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},vt=class{snapshot;type=C.ChildActivationEnd;constructor(n){this.snapshot=n}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},mt=class{snapshot;type=C.ActivationStart;constructor(n){this.snapshot=n}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},yt=class{snapshot;type=C.ActivationEnd;constructor(n){this.snapshot=n}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},Ie=class{routerEvent;position;anchor;scrollBehavior;type=C.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}')`}},Ee=class{},Ae=class{url;navigationBehaviorOptions;constructor(n,e){this.url=n,this.navigationBehaviorOptions=e}};function Fi(t){return!(t instanceof Ee)&&!(t instanceof Ae)}var Rt=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 he(this.rootInjector)}},he=(()=>{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 Rt(this.rootInjector),this.contexts.set(e,r)),r}getContext(e){return this.contexts.get(e)||null}static \u0275fac=function(r){return new(r||t)(Y(B))};static \u0275prov=S({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),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 M=class{value;children;constructor(n,e){this.value=n,this.children=e}toString(){return`TreeNode(${this.value})`}};function ye(t){let n={};return t&&t.children.forEach(e=>n[e.value.outlet]=e),n}var $e=class extends Ct{snapshot;constructor(n,e){super(n),this.snapshot=e,cr(this,n)}toString(){return this.snapshot.toString()}};function Un(t,n){let e=qi(t,n),r=new O([new Z("",{})]),i=new O({}),o=new O({}),s=new O({}),a=new O(""),c=new z(r,i,s,a,o,p,t,e.root);return c.snapshot=e.root,new $e(new M(c,[]),e)}function qi(t,n){let e={},r={},i={},s=new se([],e,i,"",r,p,t,null,{},n);return new ze("",new M(s,[]))}var z=class{urlSubject;paramsSubject;queryParamsSubject;fragmentSubject;dataSubject;outlet;component;snapshot;_futureSnapshot;_routerState;_paramMap;_queryParamMap;title;url;params;queryParams;fragment;data;constructor(n,e,r,i,o,s,a,c){this.urlSubject=n,this.paramsSubject=e,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[Be]))??g(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(I(n=>ae(n))),this._paramMap}get queryParamMap(){return this._queryParamMap??=this.queryParams.pipe(I(n=>ae(n))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}};function St(t,n,e="emptyOnly"){let r,{routeConfig:i}=t;return n!==null&&(e==="always"||i?.path===""||!n.component&&!n.routeConfig?.loadComponent)?r={params:h(h({},n.params),t.params),data:h(h({},n.data),t.data),resolve:h(h(h(h({},t.data),n.data),i?.data),t._resolvedData)}:r={params:h({},t.params),data:h({},t.data),resolve:h(h({},t.data),t._resolvedData??{})},i&&_n(i)&&(r.resolve[Be]=i.title),r}var se=class{url;params;queryParams;fragment;data;outlet;component;routeConfig;_resolve;_resolvedData;_routerState;_paramMap;_queryParamMap;_environmentInjector;get title(){return this.data?.[Be]}constructor(n,e,r,i,o,s,a,c,u,d){this.url=n,this.params=e,this.queryParams=r,this.fragment=i,this.data=o,this.outlet=s,this.component=a,this.routeConfig=c,this._resolve=u,this._environmentInjector=d}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??=ae(this.params),this._paramMap}get queryParamMap(){return this._queryParamMap??=ae(this.queryParams),this._queryParamMap}toString(){let n=this.url.map(r=>r.toString()).join("/"),e=this.routeConfig?this.routeConfig.path:"";return`Route(url:'${n}', path:'${e}')`}},ze=class extends Ct{url;constructor(n,e){super(e),this.url=n,cr(this,e)}toString(){return Pn(this._root)}};function cr(t,n){n.value._routerState=t,n.children.forEach(e=>cr(t,e))}function Pn(t){let n=t.children.length>0?` { ${t.children.map(Pn).join(", ")} } `:"";return`${t.value}${n}`}function Wt(t){if(t.snapshot){let n=t.snapshot,e=t._futureSnapshot;t.snapshot=e,k(n.queryParams,e.queryParams)||t.queryParamsSubject.next(e.queryParams),n.fragment!==e.fragment&&t.fragmentSubject.next(e.fragment),k(n.params,e.params)||t.paramsSubject.next(e.params),vi(n.url,e.url)||t.urlSubject.next(e.url),k(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=k(t.params,n.params)&&Si(t.url,n.url),r=!t.parent!=!n.parent;return e&&!r&&(!t.parent||tr(t.parent,n.parent))}function _n(t){return typeof t.title=="string"||t.title===null}var Ln=new E(""),ur=(()=>{class t{activated=null;get activatedComponentRef(){return this.activated}_activatedRoute=null;name=p;activateEvents=new pe;deactivateEvents=new pe;attachEvents=new pe;detachEvents=new pe;routerOutletData=en();parentContexts=l(he);location=l(qr);changeDetector=l(Ft);inputBinder=l(He,{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 w(4012,!1);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new w(4012,!1);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new w(4012,!1);this.location.detach();let e=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(e.instance),e}attach(e,r){this.activated=e,this._activatedRoute=r,this.location.insert(e.hostView),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.attachEvents.emit(e.instance)}deactivate(){if(this.activated){let e=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(e)}}activateWith(e,r){if(this.isActivated)throw new w(4013,!1);this._activatedRoute=e;let i=this.location,s=e.snapshot.component,a=this.parentContexts.getOrCreateContext(this.name).children,c=new rr(e,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||t)};static \u0275dir=Xe({type:t,selectors:[["router-outlet"]],inputs:{name:"name",routerOutletData:[1,"routerOutletData"]},outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"],features:[Ze]})}return t})(),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===z?this.route:n===he?this.childContexts:n===Ln?this.outletData:this.parent.get(n,e)}},He=new E(""),lr=(()=>{class t{outletDataSubscriptions=new Map;bindActivatedRouteToOutletComponent(e){this.unsubscribeFromRouteData(e),this.subscribeToRouteData(e)}unsubscribeFromRouteData(e){this.outletDataSubscriptions.get(e)?.unsubscribe(),this.outletDataSubscriptions.delete(e)}subscribeToRouteData(e){let{activatedRoute:r}=e,i=Ut([r.queryParams,r.params,r.data]).pipe(F(([o,s,a],c)=>(a=h(h(h({},o),s),a),c===0?g(a):Promise.resolve(a)))).subscribe(o=>{if(!e.isActivated||!e.activatedComponentRef||e.activatedRoute!==r||r.component===null){this.unsubscribeFromRouteData(e);return}let s=tn(r.component);if(!s){this.unsubscribeFromRouteData(e);return}for(let{templateName:a}of s.inputs)e.activatedComponentRef.setInput(a,o[a])});this.outletDataSubscriptions.set(e,i)}static \u0275fac=function(r){return new(r||t)};static \u0275prov=S({token:t,factory:t.\u0275fac})}return t})(),hr=(()=>{class t{static \u0275fac=function(r){return new(r||t)};static \u0275cmp=Hr({type:t,selectors:[["ng-component"]],exportAs:["emptyRouterOutlet"],decls:1,vars:0,template:function(r,i){r&1&&Yr(0,"router-outlet")},dependencies:[ur],encapsulation:2})}return t})();function dr(t){let n=t.children&&t.children.map(dr),e=n?D(h({},t),{children:n}):h({},t);return!e.component&&!e.loadComponent&&(n||e.loadChildren)&&e.outlet&&e.outlet!==p&&(e.component=hr),e}function Bi(t,n,e){let r=Fe(t,n._root,e?e._root:void 0);return new $e(r,n)}function Fe(t,n,e){if(e&&t.shouldReuseRoute(n.value,e.value.snapshot)){let r=e.value;r._futureSnapshot=n.value;let i=Hi(t,n,e);return new M(r,i)}else{if(t.shouldAttach(n.value)){let o=t.retrieve(n.value);if(o!==null){let s=o.route;return s.value._futureSnapshot=n.value,s.children=n.children.map(a=>Fe(t,a)),s}}let r=Vi(n.value),i=n.children.map(o=>Fe(t,o));return new M(r,i)}}function Hi(t,n,e){return n.children.map(r=>{for(let i of e.children)if(t.shouldReuseRoute(r.value,i.value.snapshot))return Fe(t,r,i);return Fe(t,r)})}function Vi(t){return new z(new O(t.url),new O(t.params),new O(t.queryParams),new O(t.fragment),new O(t.data),t.outlet,t.component,t)}var Te=class{redirectTo;navigationBehaviorOptions;constructor(n,e){this.redirectTo=n,this.navigationBehaviorOptions=e}},xn="ngNavigationCancelingError";function wt(t,n){let{redirectTo:e,navigationBehaviorOptions:r}=J(n)?{redirectTo:n,navigationBehaviorOptions:void 0}:n,i=jn(!1,b.Redirect);return i.url=e,i.navigationBehaviorOptions=r,i}function jn(t,n){let e=new Error(`NavigationCancelingError: ${t||""}`);return e[xn]=!0,e.cancellationCode=n,e}function Gi(t){return kn(t)&&J(t.url)}function kn(t){return!!t&&t[xn]}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),Wt(this.futureState.root),this.activateChildRoutes(e,r,n)}deactivateChildRoutes(n,e,r){let i=ye(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=ye(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,e){let r=e.getContext(n.value.outlet),i=r&&n.value.component?r.children:e,o=ye(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,e,r){let i=ye(e);n.children.forEach(o=>{this.activateRoutes(o,i[o.value.outlet],r),this.forwardEvent(new yt(o.value.snapshot))}),n.children.length&&this.forwardEvent(new vt(n.value.snapshot))}activateRoutes(n,e,r){let i=n.value,o=e?e.value:null;if(Wt(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 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),Wt(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)}},bt=class{path;route;constructor(n){this.path=n,this.route=this.path[this.path.length-1]}},Se=class{component;route;constructor(n,e){this.component=n,this.route=e}};function Wi(t,n,e){let r=t._root,i=n?n._root:null;return Le(r,i,e,[r.value])}function Qi(t){let n=t.routeConfig?t.routeConfig.canActivateChild:null;return!n||n.length===0?null:{node:t,guards:n}}function Ne(t,n){let e=Symbol(),r=n.get(t,e);return r===e?typeof t=="function"&&!Dr(t)?t:n.get(t):r}function Le(t,n,e,r,i={canDeactivateChecks:[],canActivateChecks:[]}){let o=ye(n);return t.children.forEach(s=>{Ki(s,o[s.value.outlet],e,r.concat([s.value]),i),delete o[s.value.outlet]}),Object.entries(o).forEach(([s,a])=>je(a,e.getContext(s),i)),i}function Ki(t,n,e,r,i={canDeactivateChecks:[],canActivateChecks:[]}){let o=t.value,s=n?n.value:null,a=e?e.getContext(t.value.outlet):null;if(s&&o.routeConfig===s.routeConfig){let c=Yi(s,o,o.routeConfig.runGuardsAndResolvers);c?i.canActivateChecks.push(new bt(r)):(o.data=s.data,o._resolvedData=s._resolvedData),o.component?Le(t,n,a?a.children:null,r,i):Le(t,n,e,r,i),c&&a&&a.outlet&&a.outlet.isActivated&&i.canDeactivateChecks.push(new Se(a.outlet.component,s))}else s&&je(n,a,i),i.canActivateChecks.push(new bt(r)),o.component?Le(t,null,a?a.children:null,r,i):Le(t,null,e,r,i);return i}function Yi(t,n,e){if(typeof e=="function")return T(n._environmentInjector,()=>e(t,n));switch(e){case"pathParamsChange":return!oe(t.url,n.url);case"pathParamsOrQueryParamsChange":return!oe(t.url,n.url)||!k(t.queryParams,n.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!tr(t,n)||!k(t.queryParams,n.queryParams);default:return!tr(t,n)}}function je(t,n,e){let r=ye(t),i=t.value;Object.entries(r).forEach(([o,s])=>{i.component?n?je(s,n.children.getContext(o),e):je(s,null,e):je(s,n,e)}),i.component?n&&n.outlet&&n.outlet.isActivated?e.canDeactivateChecks.push(new Se(n.outlet.component,i)):e.canDeactivateChecks.push(new Se(null,i)):e.canDeactivateChecks.push(new Se(null,i))}function Ve(t){return typeof t=="function"}function Zi(t){return typeof t=="boolean"}function Ji(t){return t&&Ve(t.canLoad)}function Xi(t){return t&&Ve(t.canActivate)}function eo(t){return t&&Ve(t.canActivateChild)}function to(t){return t&&Ve(t.canDeactivate)}function ro(t){return t&&Ve(t.canMatch)}function $n(t){return t instanceof Ir||t?.name==="EmptyError"}var rt=Symbol("INITIAL_VALUE");function Me(){return F(t=>Ut(t.map(n=>n.pipe(fe(1),Tr(rt)))).pipe(I(n=>{for(let e of n)if(e!==!0){if(e===rt)return rt;if(e===!1||no(e))return e}return!0}),Q(n=>n!==rt),fe(1)))}function no(t){return J(t)||t instanceof Te}function zn(t){return t.aborted?g(void 0).pipe(fe(1)):new wr(n=>{let e=()=>{n.next(),n.complete()};return t.addEventListener("abort",e),()=>t.removeEventListener("abort",e)})}function Fn(t){return Ke(zn(t))}function io(t){return j(n=>{let{targetSnapshot:e,currentSnapshot:r,guards:{canActivateChecks:i,canDeactivateChecks:o}}=n;return o.length===0&&i.length===0?g(D(h({},n),{guardsResult:!0})):oo(o,e,r).pipe(j(s=>s&&Zi(s)?so(e,i,t):g(s)),I(s=>D(h({},n),{guardsResult:s})))})}function oo(t,n,e){return A(t).pipe(j(r=>ho(r.component,r.route,e,n)),K(r=>r!==!0,!0))}function so(t,n,e){return A(n).pipe(Ue(r=>Er(co(r.route.parent,e),ao(r.route,e),lo(t,r.path),uo(t,r.route))),K(r=>r!==!0,!0))}function ao(t,n){return t!==null&&n&&n(new mt(t)),g(!0)}function co(t,n){return t!==null&&n&&n(new gt(t)),g(!0)}function uo(t,n){let e=n.routeConfig?n.routeConfig.canActivate:null;if(!e||e.length===0)return g(!0);let r=e.map(i=>We(()=>{let o=n._environmentInjector,s=Ne(i,o),a=Xi(s)?s.canActivate(n,t):T(o,()=>s(n,t));return ue(a).pipe(K())}));return g(r).pipe(Me())}function lo(t,n){let e=n[n.length-1],i=n.slice(0,n.length-1).reverse().map(o=>Qi(o)).filter(o=>o!==null).map(o=>We(()=>{let s=o.guards.map(a=>{let c=o.node._environmentInjector,u=Ne(a,c),d=eo(u)?u.canActivateChild(e,t):T(c,()=>u(e,t));return ue(d).pipe(K())});return g(s).pipe(Me())}));return g(i).pipe(Me())}function ho(t,n,e,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=Ne(s,a),u=to(c)?c.canDeactivate(t,n,e,r):T(a,()=>c(t,n,e,r));return ue(u).pipe(K())});return g(o).pipe(Me())}function fo(t,n,e,r,i){let o=n.canLoad;if(o===void 0||o.length===0)return g(!0);let s=o.map(a=>{let c=Ne(a,t),u=Ji(c)?c.canLoad(n,e):T(t,()=>c(n,e)),d=ue(u);return i?d.pipe(Fn(i)):d});return g(s).pipe(Me(),qn(r))}function qn(t){return Sr(q(n=>{if(typeof n!="boolean")throw wt(t,n)}),I(n=>n===!0))}function po(t,n,e,r,i){let o=n.canMatch;if(!o||o.length===0)return g(!0);let s=o.map(a=>{let c=Ne(a,t),u=ro(c)?c.canMatch(n,e):T(t,()=>c(n,e));return ue(u).pipe(Fn(i))});return g(s).pipe(Me(),qn(r))}var V=class t extends Error{segmentGroup;constructor(n){super(),this.segmentGroup=n||null,Object.setPrototypeOf(this,t.prototype)}},qe=class t extends Error{urlTree;constructor(n){super(),this.urlTree=n,Object.setPrototypeOf(this,t.prototype)}};function go(t){throw new w(4e3,!1)}function vo(t){throw jn(!1,b.GuardRejected)}var ir=class{urlSerializer;urlTree;constructor(n,e){this.urlSerializer=n,this.urlTree=e}lineralizeSegments(n,e){return y(this,null,function*(){let r=[],i=e.root;for(;;){if(r=r.concat(i.segments),i.numberOfChildren===0)return r;if(i.numberOfChildren>1||!i.children[p])throw go(`${n.redirectTo}`);i=i.children[p]}})}applyRedirectCommands(n,e,r,i,o){return y(this,null,function*(){let s=yield mo(e,i,o);if(s instanceof x)throw new qe(s);let a=this.applyRedirectCreateUrlTree(s,this.urlSerializer.parse(s),n,r);if(s[0]==="/")throw new qe(a);return a})}applyRedirectCreateUrlTree(n,e,r,i){let o=this.createSegmentGroup(n,e.root,r,i);return new x(o,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 a=o.substring(1);r[i]=e[a]}else r[i]=o}),r}createSegmentGroup(n,e,r,i){let o=this.createSegments(n,e.segments,r,i),s={};return Object.entries(e.children).forEach(([a,c])=>{s[a]=this.createSegmentGroup(n,c,r,i)}),new v(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 w(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 mo(t,n,e){if(typeof t=="string")return Promise.resolve(t);let r=t,{queryParams:i,fragment:o,routeConfig:s,url:a,outlet:c,params:u,data:d,title:f,paramMap:R,queryParamMap:m}=n;return st(ue(T(e,()=>r({params:u,data:d,queryParams:i,fragment:o,routeConfig:s,url:a,outlet:c,title:f,paramMap:R,queryParamMap:m}))))}function yo(t,n){return t.providers&&!t._injector&&(t._injector=Je(t.providers,n,`Route: ${t.path}`)),t._injector??n}function L(t){return t.outlet||p}function Ro(t,n){let e=t.filter(r=>L(r)===n);return e.push(...t.filter(r=>L(r)!==n)),e}var or={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function Co(t,n,e,r,i,o){let s=Bn(t,n,e);return s.matched?(r=yo(n,r),po(r,n,e,i,o).pipe(I(a=>a===!0?s:h({},or)))):g(s)}function Bn(t,n,e){if(n.path==="")return n.pathMatch==="full"&&(t.hasChildren()||e.length>0)?h({},or):{matched:!0,consumedSegments:[],remainingSegments:e,parameters:{},positionalParamSegments:{}};let i=(n.matcher||gn)(e,t,n);if(!i)return h({},or);let o={};Object.entries(i.posParams??{}).forEach(([a,c])=>{o[a]=c.path});let s=i.consumed.length>0?h(h({},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 hn(t,n,e,r){return e.length>0&&bo(t,e,r)?{segmentGroup:new v(n,wo(r,new v(e,t.children))),slicedSegments:[]}:e.length===0&&Io(t,e,r)?{segmentGroup:new v(t.segments,So(t,e,r,t.children)),slicedSegments:e}:{segmentGroup:new v(t.segments,t.children),slicedSegments:e}}function So(t,n,e,r){let i={};for(let o of e)if(Et(t,n,o)&&!r[L(o)]){let s=new v([],{});i[L(o)]=s}return h(h({},r),i)}function wo(t,n){let e={};e[p]=n;for(let r of t)if(r.path===""&&L(r)!==p){let i=new v([],{});e[L(r)]=i}return e}function bo(t,n,e){return e.some(r=>Et(t,n,r)&&L(r)!==p)}function Io(t,n,e){return e.some(r=>Et(t,n,r))}function Et(t,n,e){return(t.hasChildren()||n.length>0)&&e.pathMatch==="full"?!1:e.path===""}function Eo(t,n,e){return n.length===0&&!t.children[e]}var sr=class{};function Ao(t,n,e,r,i,o,s="emptyOnly",a){return y(this,null,function*(){return new ar(t,n,e,r,i,s,o,a).recognize()})}var To=31,ar=class{injector;configLoader;rootComponentType;config;urlTree;paramsInheritanceStrategy;urlSerializer;abortSignal;applyRedirects;absoluteRedirectCount=0;allowRedirects=!0;constructor(n,e,r,i,o,s,a,c){this.injector=n,this.configLoader=e,this.rootComponentType=r,this.config=i,this.urlTree=o,this.paramsInheritanceStrategy=s,this.urlSerializer=a,this.abortSignal=c,this.applyRedirects=new ir(this.urlSerializer,this.urlTree)}noMatchError(n){return new w(4002,`'${n.segmentGroup}'`)}recognize(){return y(this,null,function*(){let n=hn(this.urlTree.root,[],[],this.config).segmentGroup,{children:e,rootSnapshot:r}=yield this.match(n),i=new M(r,e),o=new ze("",i),s=An(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 y(this,null,function*(){let e=new se([],Object.freeze({}),Object.freeze(h({},this.urlTree.queryParams)),this.urlTree.fragment,Object.freeze({}),p,this.rootComponentType,null,{},this.injector);try{return{children:yield this.processSegmentGroup(this.injector,this.config,n,p,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}})}processSegmentGroup(n,e,r,i,o){return y(this,null,function*(){if(r.segments.length===0&&r.hasChildren())return this.processChildren(n,e,r,o);let s=yield this.processSegment(n,e,r,r.segments,i,!0,o);return s instanceof M?[s]:[]})}processChildren(n,e,r,i){return y(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],d=Ro(e,c),f=yield this.processSegmentGroup(n,d,u,c,i);s.push(...f)}let a=Hn(s);return Mo(a),a})}processSegment(n,e,r,i,o,s,a){return y(this,null,function*(){for(let c of e)try{return yield this.processSegmentAgainstRoute(c._injector??n,e,c,r,i,o,s,a)}catch(u){if(u instanceof V||$n(u))continue;throw u}if(Eo(r,i,o))return new sr;throw new V(r)})}processSegmentAgainstRoute(n,e,r,i,o,s,a,c){return y(this,null,function*(){if(L(r)!==s&&(s===p||!Et(i,o,r)))throw new V(i);if(r.redirectTo===void 0)return this.matchSegmentAgainstRoute(n,i,r,o,s,c);if(this.allowRedirects&&a)return this.expandSegmentAgainstRouteUsingRedirect(n,i,e,r,o,s,c);throw new V(i)})}expandSegmentAgainstRouteUsingRedirect(n,e,r,i,o,s,a){return y(this,null,function*(){let{matched:c,parameters:u,consumedSegments:d,positionalParamSegments:f,remainingSegments:R}=Bn(e,i,o);if(!c)throw new V(e);typeof i.redirectTo=="string"&&i.redirectTo[0]==="/"&&(this.absoluteRedirectCount++,this.absoluteRedirectCount>To&&(this.allowRedirects=!1));let m=new se(o,u,Object.freeze(h({},this.urlTree.queryParams)),this.urlTree.fragment,dn(i),L(i),i.component??i._loadedComponent??null,i,fn(i),n),te=St(m,a,this.paramsInheritanceStrategy);if(m.params=Object.freeze(te.params),m.data=Object.freeze(te.data),this.abortSignal.aborted)throw new Error(this.abortSignal.reason);let re=yield this.applyRedirects.applyRedirectCommands(d,i.redirectTo,f,m,n),ne=yield this.applyRedirects.lineralizeSegments(i,re);return this.processSegment(n,r,e,ne.concat(R),s,!1,a)})}matchSegmentAgainstRoute(n,e,r,i,o,s){return y(this,null,function*(){if(this.abortSignal.aborted)throw new Error(this.abortSignal.reason);let a=yield st(Co(e,r,i,n,this.urlSerializer,this.abortSignal));if(r.path==="**"&&(e.children={}),!a?.matched)throw new V(e);n=r._injector??n;let{routes:c}=yield this.getChildConfig(n,r,i),u=r._loadedInjector??n,{parameters:d,consumedSegments:f,remainingSegments:R}=a,m=new se(f,d,Object.freeze(h({},this.urlTree.queryParams)),this.urlTree.fragment,dn(r),L(r),r.component??r._loadedComponent??null,r,fn(r),n),te=St(m,s,this.paramsInheritanceStrategy);m.params=Object.freeze(te.params),m.data=Object.freeze(te.data);let{segmentGroup:re,slicedSegments:ne}=hn(e,f,R,c);if(ne.length===0&&re.hasChildren()){let pi=yield this.processChildren(u,c,re,m);return new M(m,pi)}if(c.length===0&&ne.length===0)return new M(m,[]);let Dt=L(r)===o,Oe=yield this.processSegment(u,c,re,ne,Dt?p:o,!0,m);return new M(m,Oe instanceof M?[Oe]:[])})}getChildConfig(n,e,r){return y(this,null,function*(){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(yield st(fo(n,e,r,this.urlSerializer,this.abortSignal))){let o=yield this.configLoader.loadChildren(n,e);return e._loadedRoutes=o.routes,e._loadedInjector=o.injector,e._loadedNgModuleFactory=o.factory,o}throw vo(e)}return{routes:[],injector:n}})}};function Mo(t){t.sort((n,e)=>n.value.outlet===p?-1:e.value.outlet===p?1:n.value.outlet.localeCompare(e.value.outlet))}function No(t){let n=t.value.routeConfig;return n&&n.path===""}function Hn(t){let n=[],e=new Set;for(let r of t){if(!No(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=Hn(r.children);n.push(new M(r.value,i))}return n.filter(r=>!e.has(r))}function dn(t){return t.data||{}}function fn(t){return t.resolve||{}}function Do(t,n,e,r,i,o,s){return j(a=>y(null,null,function*(){let{state:c,tree:u}=yield Ao(t,n,e,r,a.extractedUrl,i,o,s);return D(h({},a),{targetSnapshot:c,urlAfterRedirects:u})}))}function Oo(t){return j(n=>{let{targetSnapshot:e,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 Vn(a))o.add(c);let s=0;return A(o).pipe(Ue(a=>i.has(a)?Uo(a,e,t):(a.data=St(a,a.parent,t).resolve,g(void 0))),q(()=>s++),_t(1),j(a=>s===o.size?g(n):U))})}function Vn(t){let n=t.children.map(e=>Vn(e)).flat();return[t,...n]}function Uo(t,n,e){let r=t.routeConfig,i=t._resolve;return r?.title!==void 0&&!_n(r)&&(i[Be]=r.title),We(()=>(t.data=St(t,t.parent,e).resolve,Po(i,t,n).pipe(I(o=>(t._resolvedData=o,t.data=h(h({},t.data),o),null)))))}function Po(t,n,e){let r=Kt(t);if(r.length===0)return g({});let i={};return A(r).pipe(j(o=>_o(t[o],n,e).pipe(K(),q(s=>{if(s instanceof Te)throw wt(new G,s);i[o]=s}))),_t(1),I(()=>i),Qe(o=>$n(o)?U:br(o)))}function _o(t,n,e){let r=n._environmentInjector,i=Ne(t,r),o=i.resolve?i.resolve(n,e):T(r,()=>i(n,e));return ue(o)}function pn(t){return F(n=>{let e=t(n);return e?A(e).pipe(I(()=>n)):g(n)})}var fr=(()=>{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===p);return r}getResolvedTitleForRoute(e){return e.data[Be]}static \u0275fac=function(r){return new(r||t)};static \u0275prov=S({token:t,factory:()=>l(Gn),providedIn:"root"})}return t})(),Gn=(()=>{class t extends fr{title;constructor(e){super(),this.title=e}updateTitle(e){let r=this.buildTitle(e);r!==void 0&&this.title.setTitle(r)}static \u0275fac=function(r){return new(r||t)(Y(on))};static \u0275prov=S({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),ee=new E("",{factory:()=>({})}),de=new E(""),At=(()=>{class t{componentLoaders=new WeakMap;childrenLoaders=new WeakMap;onLoadStartListener;onLoadEndListener;compiler=l(Jr);loadComponent(e,r){return y(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=y(this,null,function*(){try{let o=yield mn(T(e,()=>r.loadComponent())),s=yield Kn(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(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=y(this,null,function*(){try{let o=yield Wn(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 \u0275fac=function(r){return new(r||t)};static \u0275prov=S({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function Wn(t,n,e,r){return y(this,null,function*(){let i=yield mn(T(e,()=>t.loadChildren())),o=yield Kn(Qn(i)),s;o instanceof Br||Array.isArray(o)?s=o:s=yield n.compileModuleAsync(o),r&&r(t);let a,c,u=!1,d;return Array.isArray(s)?(c=s,u=!0):(a=s.create(e).injector,d=s,c=a.get(de,[],{optional:!0,self:!0}).flat()),{routes:c.map(dr),injector:a,factory:d}})}function Lo(t){return t&&typeof t=="object"&&"default"in t}function Qn(t){return Lo(t)?t.default:t}function Kn(t){return y(this,null,function*(){return t})}var Tt=(()=>{class t{static \u0275fac=function(r){return new(r||t)};static \u0275prov=S({token:t,factory:()=>l(xo),providedIn:"root"})}return t})(),xo=(()=>{class t{shouldProcessUrl(e){return!0}extract(e){return e}merge(e,r){return e}static \u0275fac=function(r){return new(r||t)};static \u0275prov=S({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),pr=new E(""),gr=new E("");function Yn(t,n,e){let r=t.get(gr),i=t.get(Ur);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(),jo(t)));a.updateCallbackDone.catch(u=>{}),a.ready.catch(u=>{}),a.finished.catch(u=>{});let{onViewTransitionCreated:c}=r;return c&&T(t,()=>c({transition:a,from:n,to:e})),s}function jo(t){return new Promise(n=>{kt({read:()=>setTimeout(n)},{injector:t})})}var ko=()=>{},vr=new E(""),Mt=(()=>{class t{currentNavigation=Pe(null,{equal:()=>!1});currentTransition=null;lastSuccessfulNavigation=Pe(null);events=new ie;transitionAbortWithErrorSubject=new ie;configLoader=l(At);environmentInjector=l(B);destroyRef=l(xt);urlSerializer=l(le);rootContexts=l(he);location=l(me);inputBindingEnabled=l(He,{optional:!0})!==null;titleStrategy=l(fr);options=l(ee,{optional:!0})||{};paramsInheritanceStrategy=this.options.paramsInheritanceStrategy||"emptyOnly";urlHandlingStrategy=l(Tt);createViewTransition=l(pr,{optional:!0});navigationErrorHandler=l(vr,{optional:!0});navigationId=0;get hasRequestedNavigation(){return this.navigationId!==0}transitions;afterPreactivation=()=>g(void 0);rootComponentType=null;destroyed=!1;constructor(){let e=i=>this.events.next(new ft(i)),r=i=>this.events.next(new pt(i));this.configLoader.onLoadEndListener=r,this.configLoader.onLoadStartListener=e,this.destroyRef.onDestroy(()=>{this.destroyed=!0})}complete(){this.transitions?.complete()}handleNavigationRequest(e){let r=++this.navigationId;H(()=>{this.transitions?.next(D(h({},e),{extractedUrl:this.urlHandlingStrategy.extract(e.rawUrl),targetSnapshot:null,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null,id:r}))})}setupNavigations(e){return this.transitions=new O(null),this.transitions.pipe(Q(r=>r!==null),F(r=>{let i=!1,o=new AbortController,s=()=>!i&&this.currentTransition?.id===r.id;return g(r).pipe(F(a=>{if(this.navigationId>r.id)return this.cancelNavigationTransition(r,"",b.SupersededByNewNavigation),U;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?D(h({},c),{previousNavigation:null}):null,abort:()=>o.abort()});let u=!e.navigated||this.isUpdatingInternalState()||this.isUpdatedBrowserUrl(),d=a.extras.onSameUrlNavigation??e.onSameUrlNavigation;if(!u&&d!=="reload")return this.events.next(new $(a.id,this.urlSerializer.serialize(a.rawUrl),"",we.IgnoredSameUrlNavigation)),a.resolve(!1),U;if(this.urlHandlingStrategy.shouldProcessUrl(a.rawUrl))return g(a).pipe(F(f=>(this.events.next(new X(f.id,this.urlSerializer.serialize(f.extractedUrl),f.source,f.restoredState)),f.id!==this.navigationId?U:Promise.resolve(f))),Do(this.environmentInjector,this.configLoader,this.rootComponentType,e.config,this.urlSerializer,this.paramsInheritanceStrategy,o.signal),q(f=>{r.targetSnapshot=f.targetSnapshot,r.urlAfterRedirects=f.urlAfterRedirects,this.currentNavigation.update(m=>(m.finalUrl=f.urlAfterRedirects,m));let R=new be(f.id,this.urlSerializer.serialize(f.extractedUrl),this.urlSerializer.serialize(f.urlAfterRedirects),f.targetSnapshot);this.events.next(R)}));if(u&&this.urlHandlingStrategy.shouldProcessUrl(a.currentRawUrl)){let{id:f,extractedUrl:R,source:m,restoredState:te,extras:re}=a,ne=new X(f,this.urlSerializer.serialize(R),m,te);this.events.next(ne);let Dt=Un(this.rootComponentType,this.environmentInjector).snapshot;return this.currentTransition=r=D(h({},a),{targetSnapshot:Dt,urlAfterRedirects:R,extras:D(h({},re),{skipLocationChange:!1,replaceUrl:!1})}),this.currentNavigation.update(Oe=>(Oe.finalUrl=R,Oe)),g(r)}else return this.events.next(new $(a.id,this.urlSerializer.serialize(a.extractedUrl),"",we.IgnoredByUrlHandlingStrategy)),a.resolve(!1),U}),I(a=>{let c=new ut(a.id,this.urlSerializer.serialize(a.extractedUrl),this.urlSerializer.serialize(a.urlAfterRedirects),a.targetSnapshot);return this.events.next(c),this.currentTransition=r=D(h({},a),{guards:Wi(a.targetSnapshot,a.currentSnapshot,this.rootContexts)}),r}),io(a=>this.events.next(a)),F(a=>{if(r.guardsResult=a.guardsResult,a.guardsResult&&typeof a.guardsResult!="boolean")throw wt(this.urlSerializer,a.guardsResult);let c=new lt(a.id,this.urlSerializer.serialize(a.extractedUrl),this.urlSerializer.serialize(a.urlAfterRedirects),a.targetSnapshot,!!a.guardsResult);if(this.events.next(c),!s())return U;if(!a.guardsResult)return this.cancelNavigationTransition(a,"",b.GuardRejected),U;if(a.guards.canActivateChecks.length===0)return g(a);let u=new ht(a.id,this.urlSerializer.serialize(a.extractedUrl),this.urlSerializer.serialize(a.urlAfterRedirects),a.targetSnapshot);if(this.events.next(u),!s())return U;let d=!1;return g(a).pipe(Oo(this.paramsInheritanceStrategy),q({next:()=>{d=!0;let f=new dt(a.id,this.urlSerializer.serialize(a.extractedUrl),this.urlSerializer.serialize(a.urlAfterRedirects),a.targetSnapshot);this.events.next(f)},complete:()=>{d||this.cancelNavigationTransition(a,"",b.NoDataFromResolver)}}))}),pn(a=>{let c=d=>{let f=[];if(d.routeConfig?._loadedComponent)d.component=d.routeConfig?._loadedComponent;else if(d.routeConfig?.loadComponent){let R=d._environmentInjector;f.push(this.configLoader.loadComponent(R,d.routeConfig).then(m=>{d.component=m}))}for(let R of d.children)f.push(...c(R));return f},u=c(a.targetSnapshot.root);return u.length===0?g(a):A(Promise.all(u).then(()=>a))}),pn(()=>this.afterPreactivation()),F(()=>{let{currentSnapshot:a,targetSnapshot:c}=r,u=this.createViewTransition?.(this.environmentInjector,a.root,c.root);return u?A(u).pipe(I(()=>r)):g(r)}),fe(1),I(a=>{let c=Bi(e.routeReuseStrategy,a.targetSnapshot,a.currentRouterState);this.currentTransition=r=a=D(h({},a),{targetRouterState:c}),this.currentNavigation.update(u=>(u.targetRouterState=c,u)),this.events.next(new Ee),s()&&(new nr(e.routeReuseStrategy,r.targetRouterState,r.currentRouterState,u=>this.events.next(u),this.inputBindingEnabled).activate(this.rootContexts),s()&&(i=!0,this.currentNavigation.update(u=>(u.abort=ko,u)),this.lastSuccessfulNavigation.set(H(this.currentNavigation)),this.events.next(new _(a.id,this.urlSerializer.serialize(a.extractedUrl),this.urlSerializer.serialize(a.urlAfterRedirects))),this.titleStrategy?.updateTitle(a.targetRouterState.snapshot),a.resolve(!0)))}),Ke(zn(o.signal).pipe(Q(()=>!i&&!r.targetRouterState),q(()=>{this.cancelNavigationTransition(r,o.signal.reason+"",b.Aborted)}))),q({complete:()=>{i=!0}}),Ke(this.transitionAbortWithErrorSubject.pipe(q(a=>{throw a}))),Ar(()=>{o.abort(),i||this.cancelNavigationTransition(r,"",b.SupersededByNewNavigation),this.currentTransition?.id===r.id&&(this.currentNavigation.set(null),this.currentTransition=null)}),Qe(a=>{if(i=!0,this.destroyed)return r.resolve(!1),U;if(kn(a))this.events.next(new P(r.id,this.urlSerializer.serialize(r.extractedUrl),a.message,a.cancellationCode)),Gi(a)?this.events.next(new Ae(a.url,a.navigationBehaviorOptions)):r.resolve(!1);else{let c=new ce(r.id,this.urlSerializer.serialize(r.extractedUrl),a,r.targetSnapshot??void 0);try{let u=T(this.environmentInjector,()=>this.navigationErrorHandler?.(c));if(u instanceof Te){let{message:d,cancellationCode:f}=wt(this.urlSerializer,u);this.events.next(new P(r.id,this.urlSerializer.serialize(r.extractedUrl),d,f)),this.events.next(new Ae(u.redirectTo,u.navigationBehaviorOptions))}else throw this.events.next(c),a}catch(u){this.options.resolveNavigationPromiseOnError?r.resolve(!1):r.reject(u)}}return U}))}))}cancelNavigationTransition(e,r,i){let o=new P(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=H(this.currentNavigation),i=r?.targetBrowserUrl??r?.extractedUrl;return e.toString()!==i?.toString()&&!r?.extras.skipLocationChange}static \u0275fac=function(r){return new(r||t)};static \u0275prov=S({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function $o(t){return t!==Ce}var Zn=new E("");var Jn=(()=>{class t{static \u0275fac=function(r){return new(r||t)};static \u0275prov=S({token:t,factory:()=>l(zo),providedIn:"root"})}return t})(),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}},zo=(()=>{class t extends It{static \u0275fac=(()=>{let e;return function(i){return(e||(e=jt(t)))(i||t)}})();static \u0275prov=S({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),mr=(()=>{class t{urlSerializer=l(le);options=l(ee,{optional:!0})||{};canceledNavigationResolution=this.options.canceledNavigationResolution||"replace";location=l(me);urlHandlingStrategy=l(Tt);urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred";currentUrlTree=new x;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 x?this.urlSerializer.serialize(s):s}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=Un(null,l(B));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||t)};static \u0275prov=S({token:t,factory:()=>l(Fo),providedIn:"root"})}return t})(),Fo=(()=>{class t extends mr{currentPageId=0;lastSuccessfulId=-1;get browserPageId(){return this.canceledNavigationResolution!=="computed"?this.currentPageId:this.restoredState()?.\u0275routerPageId??this.currentPageId}registerNonRouterCurrentEntryChangeListener(e){return this.location.subscribe(r=>{r.type==="popstate"&&setTimeout(()=>{e(r.url,r.state,"popstate")})})}handleRouterEvent(e,r){e instanceof X?this.updateStateMemento():e instanceof $?this.commitTransition(r):e instanceof be?this.urlUpdateStrategy==="eager"&&(r.extras.skipLocationChange||this.setBrowserUrl(this.createBrowserPath(r),r)):e instanceof Ee?(this.commitTransition(r),this.urlUpdateStrategy==="deferred"&&!r.extras.skipLocationChange&&this.setBrowserUrl(this.createBrowserPath(r),r)):e instanceof P&&!On(e)?this.restoreHistory(r):e instanceof ce?this.restoreHistory(r,!0):e instanceof _&&(this.lastSuccessfulId=e.id,this.currentPageId=this.browserPageId)}setBrowserUrl(e,{extras:r,id:i}){let{replaceUrl:o,state:s}=r;if(this.location.isCurrentPathEqualTo(e)||o){let a=this.browserPageId,c=h(h({},s),this.generateNgRouterState(i,a));this.location.replaceState(e,"",c)}else{let a=h(h({},s),this.generateNgRouterState(i,this.browserPageId+1));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){return this.canceledNavigationResolution==="computed"?{navigationId:e,\u0275routerPageId:r}:{navigationId:e}}static \u0275fac=(()=>{let e;return function(i){return(e||(e=jt(t)))(i||t)}})();static \u0275prov=S({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function Nt(t,n){t.events.pipe(Q(e=>e instanceof _||e instanceof P||e instanceof ce||e instanceof $),I(e=>e instanceof _||e instanceof $?0:(e instanceof P?e.code===b.Redirect||e.code===b.SupersededByNewNavigation:!1)?2:1),Q(e=>e!==2),fe(1)).subscribe(()=>{n()})}var Xn={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},ei={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"},W=(()=>{class t{get currentUrlTree(){return this.stateManager.getCurrentUrlTree()}get rawUrlTree(){return this.stateManager.getRawUrlTree()}disposed=!1;nonRouterCurrentEntryChangeSubscription;console=l(Gr);stateManager=l(mr);options=l(ee,{optional:!0})||{};pendingTasks=l(Pr);urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred";navigationTransitions=l(Mt);urlSerializer=l(le);location=l(me);urlHandlingStrategy=l(Tt);injector=l(B);_events=new ie;get events(){return this._events}get routerState(){return this.stateManager.getRouterState()}navigated=!1;routeReuseStrategy=l(Jn);injectorCleanup=l(Zn,{optional:!0});onSameUrlNavigation=this.options.onSameUrlNavigation||"ignore";config=l(de,{optional:!0})?.flat()??[];componentInputBindingEnabled=!!l(He,{optional:!0});currentNavigation=this.navigationTransitions.currentNavigation.asReadonly();constructor(){this.resetConfig(this.config),this.navigationTransitions.setupNavigations(this).subscribe({error:e=>{}}),this.subscribeToNavigationEvents()}eventsSubscription=new Cr;subscribeToNavigationEvents(){let e=this.navigationTransitions.events.subscribe(r=>{try{let i=this.navigationTransitions.currentTransition,o=H(this.navigationTransitions.currentNavigation);if(i!==null&&o!==null){if(this.stateManager.handleRouterEvent(r,o),r instanceof P&&r.code!==b.Redirect&&r.code!==b.SupersededByNewNavigation)this.navigated=!0;else if(r instanceof _)this.navigated=!0,this.injectorCleanup?.(this.routeReuseStrategy,this.routerState,this.config);else if(r instanceof Ae){let s=r.navigationBehaviorOptions,a=this.urlHandlingStrategy.merge(r.url,i.currentRawUrl),c=h({scroll:i.extras.scroll,browserUrl:i.extras.browserUrl,info:i.extras.info,skipLocationChange:i.extras.skipLocationChange,replaceUrl:i.extras.replaceUrl||this.urlUpdateStrategy==="eager"||$o(i.source)},s);this.scheduleNavigation(a,Ce,null,c,{resolve:i.resolve,reject:i.reject,promise:i.promise})}}Fi(r)&&this._events.next(r)}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),Ce,this.stateManager.restoredState())}setUpLocationChangeListener(){this.nonRouterCurrentEntryChangeSubscription??=this.stateManager.registerNonRouterCurrentEntryChangeListener((e,r,i)=>{this.navigateToSyncWithBrowser(e,i,r)})}navigateToSyncWithBrowser(e,r,i){let o={replaceUrl:!0},s=i?.navigationId?i:null;if(i){let c=h({},i);delete c.navigationId,delete c.\u0275routerPageId,Object.keys(c).length!==0&&(o.state=c)}let a=this.parseUrl(e);this.scheduleNavigation(a,r,s,o).catch(c=>{this.disposed||this.injector.get(Ye)(c)})}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return H(this.navigationTransitions.currentNavigation)}get lastSuccessfulNavigation(){return this.navigationTransitions.lastSuccessfulNavigation}resetConfig(e){this.config=e.map(dr),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={}){let{relativeTo:i,queryParams:o,fragment:s,queryParamsHandling:a,preserveFragment:c}=r,u=c?this.currentUrlTree.fragment:s,d=null;switch(a??this.options.defaultQueryParamsHandling){case"merge":d=h(h({},this.currentUrlTree.queryParams),o);break;case"preserve":d=this.currentUrlTree.queryParams;break;default:d=o||null}d!==null&&(d=this.removeEmptyProps(d));let f;try{let R=i?i.snapshot:this.routerState.snapshot.root;f=Tn(R)}catch(R){(typeof e[0]!="string"||e[0][0]!=="/")&&(e=[]),f=this.currentUrlTree.root}return Mn(f,e,d,u??null,this.urlSerializer)}navigateByUrl(e,r={skipLocationChange:!1}){let i=J(e)?e:this.parseUrl(e),o=this.urlHandlingStrategy.merge(i,this.rawUrlTree);return this.scheduleNavigation(o,Ce,null,r)}navigate(e,r={skipLocationChange:!1}){return qo(e),this.navigateByUrl(this.createUrlTree(e,r),r)}serializeUrl(e){return this.urlSerializer.serialize(e)}parseUrl(e){try{return this.urlSerializer.parse(e)}catch(r){return this.console.warn(Mr(4018,!1)),this.urlSerializer.parse("/")}}isActive(e,r){let i;if(r===!0?i=h({},Xn):r===!1?i=h({},ei):i=r,J(e))return sn(this.currentUrlTree,e,i);let o=this.parseUrl(e);return sn(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){if(this.disposed)return Promise.resolve(!1);let a,c,u;s?(a=s.resolve,c=s.reject,u=s.promise):u=new Promise((f,R)=>{a=f,c=R});let d=this.pendingTasks.add();return Nt(this,()=>{queueMicrotask(()=>this.pendingTasks.remove(d))}),this.navigationTransitions.handleNavigationRequest({source:r,restoredState:i,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,rawUrl:e,extras:o,resolve:a,reject:c,promise:u,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),u.catch(f=>Promise.reject(f))}static \u0275fac=function(r){return new(r||t)};static \u0275prov=S({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function qo(t){for(let n=0;n<t.length;n++)if(t[n]==null)throw new w(4008,!1)}var ti=(()=>{class t{router;route;tabIndexAttribute;renderer;el;locationStrategy;reactiveHref=Pe(null);get href(){return H(this.reactiveHref)}set href(e){this.reactiveHref.set(e)}target;queryParams;fragment;queryParamsHandling;state;info;relativeTo;isAnchorElement;subscription;onChanges=new ie;applicationErrorHandler=l(Ye);options=l(ee,{optional:!0});constructor(e,r,i,o,s,a){this.router=e,this.route=r,this.tabIndexAttribute=i,this.renderer=o,this.el=s,this.locationStrategy=a,this.reactiveHref.set(l(new Xr("href"),{optional:!0}));let c=s.nativeElement.tagName?.toLowerCase();this.isAnchorElement=c==="a"||c==="area"||!!(typeof customElements=="object"&&customElements.get(c)?.observedAttributes?.includes?.("href")),this.isAnchorElement&&(this.setTabIndexIfNotOnNativeEl("0"),this.subscribeToNavigationEventsIfNecessary())}subscribeToNavigationEventsIfNecessary(){this.subscription===void 0&&(this.subscription=this.router.events.subscribe(e=>{e instanceof _&&this.updateHref()}))}preserveFragment=!1;skipLocationChange=!1;replaceUrl=!1;setTabIndexIfNotOnNativeEl(e){this.tabIndexAttribute!=null||this.isAnchorElement||this.applyAttributeValue("tabindex",e)}ngOnChanges(e){this.isAnchorElement&&this.updateHref(),this.onChanges.next(this)}routerLinkInput=null;set routerLink(e){e==null?(this.routerLinkInput=null,this.setTabIndexIfNotOnNativeEl(null)):(J(e)?this.routerLinkInput=e:this.routerLinkInput=Array.isArray(e)?e:[e],this.setTabIndexIfNotOnNativeEl("0"))}onClick(e,r,i,o,s){let a=this.urlTree;if(a===null||this.isAnchorElement&&(e!==0||r||i||o||s||typeof this.target=="string"&&this.target!="_self"))return!0;let c={skipLocationChange:this.skipLocationChange,replaceUrl:this.replaceUrl,state:this.state,info:this.info};return this.router.navigateByUrl(a,c)?.catch(u=>{this.applicationErrorHandler(u)}),!this.isAnchorElement}ngOnDestroy(){this.subscription?.unsubscribe()}updateHref(){let e=this.urlTree;this.reactiveHref.set(e!==null&&this.locationStrategy?this.locationStrategy?.prepareExternalUrl(this.router.serializeUrl(e))??"":null)}applyAttributeValue(e,r){let i=this.renderer,o=this.el.nativeElement;r!==null?i.setAttribute(o,e,r):i.removeAttribute(o,e)}get urlTree(){return this.routerLinkInput===null?null:J(this.routerLinkInput)?this.routerLinkInput:this.router.createUrlTree(this.routerLinkInput,{relativeTo:this.relativeTo!==void 0?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:this.preserveFragment})}static \u0275fac=function(r){return new(r||t)(ge(W),ge(z),Lr("tabindex"),ge(zr),ge(xr),ge(ve))};static \u0275dir=Xe({type:t,selectors:[["","routerLink",""]],hostVars:2,hostBindings:function(r,i){r&1&&Zr("click",function(s){return i.onClick(s.button,s.ctrlKey,s.shiftKey,s.altKey,s.metaKey)}),r&2&&Kr("href",i.reactiveHref(),kr)("target",i.target)},inputs:{target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",state:"state",info:"info",relativeTo:"relativeTo",preserveFragment:[2,"preserveFragment","preserveFragment",et],skipLocationChange:[2,"skipLocationChange","skipLocationChange",et],replaceUrl:[2,"replaceUrl","replaceUrl",et],routerLink:"routerLink"},features:[Ze]})}return t})();var Ge=class{};var ri=(()=>{class t{router;injector;preloadingStrategy;loader;subscription;constructor(e,r,i,o){this.router=e,this.injector=r,this.preloadingStrategy=i,this.loader=o}setUpPreloading(){this.subscription=this.router.events.pipe(Q(e=>e instanceof _),Ue(()=>this.preload())).subscribe(()=>{})}preload(){return this.processRoutes(this.injector,this.router.config)}ngOnDestroy(){this.subscription?.unsubscribe()}processRoutes(e,r){let i=[];for(let o of r){o.providers&&!o._injector&&(o._injector=Je(o.providers,e,""));let s=o._injector??e;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 A(i).pipe(Pt())}preloadConfig(e,r){return this.preloadingStrategy.preload(r,()=>{if(e.destroyed)return g(null);let i;r.loadChildren&&r.canLoad===void 0?i=A(this.loader.loadChildren(e,r)):i=g(null);let o=i.pipe(j(s=>s===null?g(void 0):(r._loadedRoutes=s.routes,r._loadedInjector=s.injector,r._loadedNgModuleFactory=s.factory,this.processRoutes(s.injector??e,s.routes))));if(r.loadComponent&&!r._loadedComponent){let s=this.loader.loadComponent(e,r);return A([o,s]).pipe(Pt())}else return o})}static \u0275fac=function(r){return new(r||t)(Y(W),Y(B),Y(Ge),Y(At))};static \u0275prov=S({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),ni=new E(""),Ho=(()=>{class t{options;routerEventsSubscription;scrollEventsSubscription;lastId=0;lastSource=Ce;restoredId=0;store={};urlSerializer=l(le);zone=l(_r);viewportScroller=l(Bt);transitions=l(Mt);constructor(e){this.options=e,this.options.scrollPositionRestoration||="disabled",this.options.anchorScrolling||="disabled"}init(){this.options.scrollPositionRestoration!=="disabled"&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents()}createScrollEvents(){return this.transitions.events.subscribe(e=>{e instanceof X?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=e.navigationTrigger,this.restoredId=e.restoredState?e.restoredState.navigationId:0):e instanceof _?(this.lastId=e.id,this.scheduleScrollEvent(e,this.urlSerializer.parse(e.urlAfterRedirects).fragment)):e instanceof $&&e.code===we.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 Ie)||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){let i=H(this.transitions.currentNavigation)?.extras.scroll;this.zone.runOutsideAngular(()=>y(this,null,function*(){yield new Promise(o=>{setTimeout(o),typeof requestAnimationFrame<"u"&&requestAnimationFrame(o)}),this.zone.run(()=>{this.transitions.events.next(new Ie(e,this.lastSource==="popstate"?this.store[this.restoredId]:null,r,i))})}))}ngOnDestroy(){this.routerEventsSubscription?.unsubscribe(),this.scrollEventsSubscription?.unsubscribe()}static \u0275fac=function(r){Fr()};static \u0275prov=S({token:t,factory:t.\u0275fac})}return t})();function Vo(t,...n){return Or([{provide:de,multi:!0,useValue:t},[],{provide:z,useFactory:ii},{provide:zt,multi:!0,useFactory:oi},n.map(e=>e.\u0275providers)])}function ii(){return l(W).routerState.root}function De(t,n){return{\u0275kind:t,\u0275providers:n}}function oi(){let t=l(Lt);return n=>{let e=t.get(Qr);if(n!==e.components[0])return;let r=t.get(W),i=t.get(si);t.get(Rr)===1&&r.initialNavigation(),t.get(ui,null,{optional:!0})?.setUpPreloading(),t.get(ni,null,{optional:!0})?.init(),r.resetRootComponentType(e.componentTypes[0]),i.closed||(i.next(),i.complete(),i.unsubscribe())}}var si=new E("",{factory:()=>new ie}),Rr=new E("",{factory:()=>1});function ai(){let t=[{provide:jr,useValue:!0},{provide:Rr,useValue:0},$t(()=>{let n=l(Lt);return n.get(rn,Promise.resolve()).then(()=>new Promise(r=>{let i=n.get(W),o=n.get(si);Nt(i,()=>{r(!0)}),n.get(Mt).afterPreactivation=()=>(r(!0),o.closed?g(void 0):o),i.initialNavigation()}))})];return De(2,t)}function ci(){let t=[$t(()=>{l(W).setUpLocationChangeListener()}),{provide:Rr,useValue:2}];return De(3,t)}var ui=new E("");function li(t){return De(0,[{provide:ui,useExisting:ri},{provide:Ge,useExisting:t}])}function Go(){return De(6,[{provide:ve,useClass:qt}])}function hi(){return De(8,[lr,{provide:He,useExisting:lr}])}function di(t){$r("NgRouterViewTransitions");let n=[{provide:pr,useValue:Yn},{provide:gr,useValue:h({skipNextTransition:!!t?.skipInitialTransition},t)}];return De(9,n)}var fi=[me,{provide:le,useClass:G},W,he,{provide:z,useFactory:ii},At,[]],Wo=(()=>{class t{constructor(){}static forRoot(e,r){return{ngModule:t,providers:[fi,[],{provide:de,multi:!0,useValue:e},[],r?.errorHandler?{provide:vr,useValue:r.errorHandler}:[],{provide:ee,useValue:r||{}},r?.useHash?Ko():Yo(),Qo(),r?.preloadingStrategy?li(r.preloadingStrategy).\u0275providers:[],r?.initialNavigation?Zo(r):[],r?.bindToComponentInputs?hi().\u0275providers:[],r?.enableViewTransitions?di().\u0275providers:[],Jo()]}}static forChild(e){return{ngModule:t,providers:[{provide:de,multi:!0,useValue:e}]}}static \u0275fac=function(r){return new(r||t)};static \u0275mod=Vr({type:t});static \u0275inj=Nr({})}return t})();function Qo(){return{provide:ni,useFactory:()=>{let t=l(Bt),n=l(ee);return n.scrollOffset&&t.setOffset(n.scrollOffset),new Ho(n)}}}function Ko(){return{provide:ve,useClass:qt}}function Yo(){return{provide:ve,useClass:nn}}function Zo(t){return[t.initialNavigation==="disabled"?ci().\u0275providers:[],t.initialNavigation==="enabledBlocking"?ai().\u0275providers:[]]}var yr=new E("");function Jo(){return[{provide:yr,useFactory:oi},{provide:zt,multi:!0,useExisting:yr}]}export{_ as a,ur as b,W as c,ti as d,Vo as e,Go as f,Wo as g};