@skill-map/cli 0.25.0 → 0.26.1

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.
@@ -1,4 +1,4 @@
1
- import{a as wn,c as Tn,d as In,e as kn}from"./chunk-Z2667C3S.js";import{e as tn,j as mi,n as gn,o as bn,u as fi,v as yn,w as gi}from"./chunk-533YMAY3.js";import{a as nt,b as bi,c as Lt,d as Sn,e as Rt,f as Mn,h as En,i as Dn,j as On}from"./chunk-UXCAEDR6.js";import{a as ht,b as hi,d as Ft,e as qe,f as vn,g as Bt,h as wt,i as Tt,j as ct,l as mt,m as xn,n as Cn}from"./chunk-VO6NF24F.js";import{$ as I,$a as M,$c as Wt,Aa as V,Ba as p,Bb as ft,Cb as gt,Cc as dn,Db as bt,Dc as Ri,Ec as Et,Fc as ut,Gc as pn,Hb as se,Hc as un,I as Ge,Ib as rt,Ic as he,J as de,Jb as j,Jc as W,K as ke,Ka as C,Kb as Ee,Kc as De,La as Yi,Lb as oi,Lc as Ie,M as pe,Ma as Zi,Mb as Oi,Na as ye,Nb as ai,O as R,Oa as ve,Ob as Kt,Oc as fe,Pb as Xi,Pc as Le,Qb as J,Qc as U,Rc as hn,Sc as Dt,T as _,Ta as r,Tb as ie,Tc as Ut,U as f,Ua as u,Uc as tt,V as T,Va as m,Vc as $,Wa as F,Wc as ze,X as ti,Xa as ne,Xb as Y,Xc as mn,Ya as oe,Yc as _n,Za as K,Zc as ui,_a as S,_c as q,aa as Ae,ab as E,ad as Ot,bc as en,bd as Ct,cc as w,cd as Vt,d as St,da as Oe,db as P,dc as X,dd as Q,ea as ii,eb as xe,ed as fn,fb as k,fd as it,ga as D,hb as s,ib as dt,jb as We,jc as Je,kb as Ve,lb as Fe,lc as je,mb as b,mc as we,nb as y,nc as He,nd as _i,oa as c,oc as Te,pc as ue,qc as Xe,rb as Me,sa as _e,sb as Pe,ub as Ce,vb as g,wa as O,wb as H,xa as Se,xb as ee,ya as ni,yb as le,za as be,zb as Ji,zc as ce}from"./chunk-J3YWUNFO.js";import{A as jt,B as ci,E as an,F as xt,G as rn,H as Bi,J as lt,N as ln,O as qt,Q as Li,R as di,T as Ne,U as Ke,V as st,W as sn,X as pt,a as Ye,aa as cn,b as $t,ba as Qt,ca as pi,d as nn,k as Gt,l as Vi,m as ri,n as li,o as on,p as Mt,t as et,u as ae,v as Be,w as Fi,x as yt,y as si,z as vt}from"./chunk-H2J55DNK.js";import{a as me,b as Ue}from"./chunk-Q7L6LLAK.js";var Vn=`
1
+ import{a as wn,c as Tn,d as In,e as kn}from"./chunk-Z2667C3S.js";import{e as tn,j as mi,n as gn,o as bn,u as fi,v as yn,x as gi}from"./chunk-PY2R7LHN.js";import{a as nt,b as bi,c as Lt,d as Sn,e as Rt,f as Mn,h as En,i as Dn,j as On}from"./chunk-UXCAEDR6.js";import{a as ht,b as hi,d as Ft,e as qe,f as vn,g as Bt,h as wt,i as Tt,j as ct,l as mt,m as xn,n as Cn}from"./chunk-VO6NF24F.js";import{$ as I,$a as M,$c as Wt,Aa as V,Ba as p,Bb as ft,Cb as gt,Cc as dn,Db as bt,Dc as Ri,Ec as Et,Fc as ut,Gc as pn,Hb as se,Hc as un,I as Ge,Ib as rt,Ic as he,J as de,Jb as j,Jc as W,K as ke,Ka as C,Kb as Ee,Kc as De,La as Yi,Lb as oi,Lc as Ie,M as pe,Ma as Zi,Mb as Oi,Na as ye,Nb as ai,O as R,Oa as ve,Ob as Kt,Oc as fe,Pb as Xi,Pc as Le,Qb as J,Qc as U,Rc as hn,Sc as Dt,T as _,Ta as r,Tb as ie,Tc as Ut,U as f,Ua as u,Uc as tt,V as T,Va as m,Vc as $,Wa as F,Wc as ze,X as ti,Xa as ne,Xb as Y,Xc as mn,Ya as oe,Yc as _n,Za as K,Zc as ui,_a as S,_c as q,aa as Ae,ab as E,ad as Ot,bc as en,bd as Ct,cc as w,cd as Vt,d as St,da as Oe,db as P,dc as X,dd as Q,ea as ii,eb as xe,ed as fn,fb as k,fd as it,ga as D,hb as s,ib as dt,jb as We,jc as Je,kb as Ve,lb as Fe,lc as je,mb as b,mc as we,nb as y,nc as He,nd as _i,oa as c,oc as Te,pc as ue,qc as Xe,rb as Me,sa as _e,sb as Pe,ub as Ce,vb as g,wa as O,wb as H,xa as Se,xb as ee,ya as ni,yb as le,za as be,zb as Ji,zc as ce}from"./chunk-J3YWUNFO.js";import{A as jt,B as ci,E as an,F as xt,G as rn,H as Bi,J as lt,N as ln,O as qt,Q as Li,R as di,T as Ne,U as Ke,V as st,W as sn,X as pt,a as Ye,aa as cn,b as $t,ba as Qt,ca as pi,d as nn,k as Gt,l as Vi,m as ri,n as li,o as on,p as Mt,t as et,u as ae,v as Be,w as Fi,x as yt,y as si,z as vt}from"./chunk-H2J55DNK.js";import{a as me,b as Ue}from"./chunk-Q7L6LLAK.js";var Vn=`
2
2
  .p-datatable {
3
3
  position: relative;
4
4
  display: block;
@@ -1,4 +1,4 @@
1
- import{$ as ot,A as Q,Aa as tr,B as Ke,C as qn,D as U,Da as er,E as ne,Ea as nr,F as k,G as S,Ga as rr,H as Vn,Ha as ir,Hb as dr,J as y,K as Ge,Ka as or,L as Wn,Lc as Ir,M as I,N as re,O as d,Oc as Er,P as Kn,Pc as Or,Q as Z,R as _,Rb as hr,Sb as R,Tb as H,Tc as Ar,Ub as pr,Vb as fr,Wa as sr,Wc as on,X as Gn,Xb as at,Y as Qe,Z as Ze,_ as Qn,a as kn,aa as Ye,b as jn,ba as ie,bc as se,c as $n,cc as F,d as rt,da as m,dc as gt,e as L,ea as Je,f as x,fa as Mt,fb as ar,fc as gr,fd as ue,ga as Nt,h as O,ha as Zn,hc as vr,i as g,ia as Xe,ic as ae,j as Hn,k as qe,kb as lr,l as Fn,ma as Yn,mb as cr,n as C,nb as ur,o as Ve,p as V,q as We,qc as mr,r as zn,ra as tn,s as Xt,sa as A,ta as oe,ua as Jn,v as it,va as en,w as te,wa as Xn,x as ee,xa as nn,xc as yr,y as ft,ya as st,z as Bn,zc as Cr}from"./chunk-J3YWUNFO.js";import{D as Y,M as Tr,a as Lt,h as br,i as Rr,j as wr,m as z,p as rn,r as le,s as Sr,u as ce}from"./chunk-H2J55DNK.js";import{a as u,b as N}from"./chunk-Q7L6LLAK.js";var p="primary",Kt=Symbol("RouteTitle"),un=class{params;constructor(r){this.params=r||{}}has(r){return Object.prototype.hasOwnProperty.call(this.params,r)}get(r){if(this.has(r)){let t=this.params[r];return Array.isArray(t)?t[0]:t}return null}getAll(r){if(this.has(r)){let t=this.params[r];return Array.isArray(t)?t:[t]}return[]}get keys(){return Object.keys(this.params)}};function ct(e){return new un(e)}function sn(e,r,t){for(let n=0;n<e.length;n++){let i=e[n],o=r[n];if(i[0]===":")t[i.substring(1)]=o;else if(i!==o.path)return!1}return!0}function Pr(e,r,t){let n=t.path.split("/"),i=n.indexOf("**");if(i===-1){if(n.length>e.length||t.pathMatch==="full"&&(r.hasChildren()||n.length<e.length))return null;let l={},c=e.slice(0,n.length);return sn(n,c,l)?{consumed:c,posParams:l}:null}if(i!==n.lastIndexOf("**"))return null;let o=n.slice(0,i),a=n.slice(i+1);if(o.length+a.length>e.length||t.pathMatch==="full"&&r.hasChildren()&&t.path!=="**")return null;let s={};return!sn(o,e.slice(0,o.length),s)||!sn(a,e.slice(e.length-a.length),s)?null:{consumed:e,posParams:s}}function ve(e){return new Promise((r,t)=>{e.pipe(Q()).subscribe({next:n=>r(n),error:n=>t(n)})})}function Li(e,r){if(e.length!==r.length)return!1;for(let t=0;t<e.length;++t)if(!B(e[t],r[t]))return!1;return!0}function B(e,r){let t=e?dn(e):void 0,n=r?dn(r):void 0;if(!t||!n||t.length!=n.length)return!1;let i;for(let o=0;o<t.length;o++)if(i=t[o],!Ur(e[i],r[i]))return!1;return!0}function dn(e){return[...Object.keys(e),...Object.getOwnPropertySymbols(e)]}function Ur(e,r){if(Array.isArray(e)&&Array.isArray(r)){if(e.length!==r.length)return!1;let t=[...e].sort(),n=[...r].sort();return t.every((i,o)=>n[o]===i)}else return e===r}function xi(e){return e.length>0?e[e.length-1]:null}function ht(e){return qe(e)?e:nr(e)?O(Promise.resolve(e)):g(e)}function kr(e){return qe(e)?ve(e):Promise.resolve(e)}var _i={exact:$r,subset:Hr},jr={exact:Pi,subset:Ui,ignored:()=>!0},In={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},jt={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"};function En(e,r,t){let n=e instanceof E?e:r.parseUrl(e);return H(()=>hn(r.lastSuccessfulNavigation()?.finalUrl??new E,n,u(u({},jt),t)))}function hn(e,r,t){return _i[t.paths](e.root,r.root,t.matrixParams)&&jr[t.queryParams](e.queryParams,r.queryParams)&&!(t.fragment==="exact"&&e.fragment!==r.fragment)}function Pi(e,r){return B(e,r)}function $r(e,r,t){if(!lt(e.segments,r.segments)||!pe(e.segments,r.segments,t)||e.numberOfChildren!==r.numberOfChildren)return!1;for(let n in r.children)if(!e.children[n]||!$r(e.children[n],r.children[n],t))return!1;return!0}function Ui(e,r){return Object.keys(r).length<=Object.keys(e).length&&Object.keys(r).every(t=>Ur(e[t],r[t]))}function Hr(e,r,t){return Fr(e,r,r.segments,t)}function Fr(e,r,t,n){if(e.segments.length>t.length){let i=e.segments.slice(0,t.length);return!(!lt(i,t)||r.hasChildren()||!pe(i,t,n))}else if(e.segments.length===t.length){if(!lt(e.segments,t)||!pe(e.segments,t,n))return!1;for(let i in r.children)if(!e.children[i]||!Hr(e.children[i],r.children[i],n))return!1;return!0}else{let i=t.slice(0,e.segments.length),o=t.slice(e.segments.length);return!lt(e.segments,i)||!pe(e.segments,i,n)||!e.children[p]?!1:Fr(e.children[p],r,o,n)}}function pe(e,r,t){return r.every((n,i)=>jr[t](e[i].parameters,n.parameters))}var E=class{root;queryParams;fragment;_queryParamMap;constructor(r=new v([],{}),t={},n=null){this.root=r,this.queryParams=t,this.fragment=n}get queryParamMap(){return this._queryParamMap??=ct(this.queryParams),this._queryParamMap}toString(){return $i.serialize(this)}},v=class{segments;children;parent=null;constructor(r,t){this.segments=r,this.children=t,Object.values(t).forEach(n=>n.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return fe(this)}},J=class{path;parameters;_parameterMap;constructor(r,t){this.path=r,this.parameters=t}get parameterMap(){return this._parameterMap??=ct(this.parameters),this._parameterMap}toString(){return Br(this)}};function ki(e,r){return lt(e,r)&&e.every((t,n)=>B(t.parameters,r[n].parameters))}function lt(e,r){return e.length!==r.length?!1:e.every((t,n)=>t.path===r[n].path)}function ji(e,r){let t=[];return Object.entries(e.children).forEach(([n,i])=>{n===p&&(t=t.concat(r(i,n)))}),Object.entries(e.children).forEach(([n,i])=>{n!==p&&(t=t.concat(r(i,n)))}),t}var Ct=(()=>{class e{static \u0275fac=function(n){return new(n||e)};static \u0275prov=y({token:e,factory:()=>new X,providedIn:"root"})}return e})(),X=class{parse(r){let t=new fn(r);return new E(t.parseRootSegment(),t.parseQueryParams(),t.parseFragment())}serialize(r){let t=`/${xt(r.root,!0)}`,n=zi(r.queryParams),i=typeof r.fragment=="string"?`#${Hi(r.fragment)}`:"";return`${t}${n}${i}`}},$i=new X;function fe(e){return e.segments.map(r=>Br(r)).join("/")}function xt(e,r){if(!e.hasChildren())return fe(e);if(r){let t=e.children[p]?xt(e.children[p],!1):"",n=[];return Object.entries(e.children).forEach(([i,o])=>{i!==p&&n.push(`${i}:${xt(o,!1)}`)}),n.length>0?`${t}(${n.join("//")})`:t}else{let t=ji(e,(n,i)=>i===p?[xt(e.children[p],!1)]:[`${i}:${xt(n,!1)}`]);return Object.keys(e.children).length===1&&e.children[p]!=null?`${fe(e)}/${t[0]}`:`${fe(e)}/(${t.join("//")})`}}function zr(e){return encodeURIComponent(e).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function de(e){return zr(e).replace(/%3B/gi,";")}function Hi(e){return encodeURI(e)}function pn(e){return zr(e).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function ge(e){return decodeURIComponent(e)}function Dr(e){return ge(e.replace(/\+/g,"%20"))}function Br(e){return`${pn(e.path)}${Fi(e.parameters)}`}function Fi(e){return Object.entries(e).map(([r,t])=>`;${pn(r)}=${pn(t)}`).join("")}function zi(e){let r=Object.entries(e).map(([t,n])=>Array.isArray(n)?n.map(i=>`${de(t)}=${de(i)}`).join("&"):`${de(t)}=${de(n)}`).filter(t=>t);return r.length?`?${r.join("&")}`:""}var Bi=/^[^\/()?;#]+/;function an(e){let r=e.match(Bi);return r?r[0]:""}var qi=/^[^\/()?;=#]+/;function Vi(e){let r=e.match(qi);return r?r[0]:""}var Wi=/^[^=?&#]+/;function Ki(e){let r=e.match(Wi);return r?r[0]:""}var Gi=/^[^&#]+/;function Qi(e){let r=e.match(Gi);return r?r[0]:""}var fn=class{url;remaining;constructor(r){this.url=r,this.remaining=r}parseRootSegment(){for(;this.consumeOptional("/"););return this.remaining===""||this.peekStartsWith("?")||this.peekStartsWith("#")?new v([],{}):new v([],this.parseChildren())}parseQueryParams(){let r={};if(this.consumeOptional("?"))do this.parseQueryParam(r);while(this.consumeOptional("&"));return r}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(r=0){if(r>50)throw new S(4010,!1);if(this.remaining==="")return{};this.consumeOptional("/");let t=[];for(this.peekStartsWith("(")||t.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),t.push(this.parseSegment());let n={};this.peekStartsWith("/(")&&(this.capture("/"),n=this.parseParens(!0,r));let i={};return this.peekStartsWith("(")&&(i=this.parseParens(!1,r)),(t.length>0||Object.keys(n).length>0)&&(i[p]=new v(t,n)),i}parseSegment(){let r=an(this.remaining);if(r===""&&this.peekStartsWith(";"))throw new S(4009,!1);return this.capture(r),new J(ge(r),this.parseMatrixParams())}parseMatrixParams(){let r={};for(;this.consumeOptional(";");)this.parseParam(r);return r}parseParam(r){let t=Vi(this.remaining);if(!t)return;this.capture(t);let n="";if(this.consumeOptional("=")){let i=an(this.remaining);i&&(n=i,this.capture(n))}r[ge(t)]=ge(n)}parseQueryParam(r){let t=Ki(this.remaining);if(!t)return;this.capture(t);let n="";if(this.consumeOptional("=")){let a=Qi(this.remaining);a&&(n=a,this.capture(n))}let i=Dr(t),o=Dr(n);if(r.hasOwnProperty(i)){let a=r[i];Array.isArray(a)||(a=[a],r[i]=a),a.push(o)}else r[i]=o}parseParens(r,t){let n={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){let i=an(this.remaining),o=this.remaining[i.length];if(o!=="/"&&o!==")"&&o!==";")throw new S(4010,!1);let a;i.indexOf(":")>-1?(a=i.slice(0,i.indexOf(":")),this.capture(a),this.capture(":")):r&&(a=p);let s=this.parseChildren(t+1);n[a??p]=Object.keys(s).length===1&&s[p]?s[p]:new v([],s),this.consumeOptional("//")}return n}peekStartsWith(r){return this.remaining.startsWith(r)}consumeOptional(r){return this.peekStartsWith(r)?(this.remaining=this.remaining.substring(r.length),!0):!1}capture(r){if(!this.consumeOptional(r))throw new S(4011,!1)}};function qr(e){return e.segments.length>0?new v([],{[p]:e}):e}function Vr(e){let r={};for(let[n,i]of Object.entries(e.children)){let o=Vr(i);if(n===p&&o.segments.length===0&&o.hasChildren())for(let[a,s]of Object.entries(o.children))r[a]=s;else(o.segments.length>0||o.hasChildren())&&(r[n]=o)}let t=new v(e.segments,r);return Zi(t)}function Zi(e){if(e.numberOfChildren===1&&e.children[p]){let r=e.children[p];return new v(e.segments.concat(r.segments),r.children)}return e}function tt(e){return e instanceof E}function Wr(e,r,t=null,n=null,i=new X){let o=Kr(e);return Gr(o,r,t,n,i)}function Kr(e){let r;function t(o){let a={};for(let l of o.children){let c=t(l);a[l.outlet]=c}let s=new v(o.url,a);return o===e&&(r=s),s}let n=t(e.root),i=qr(n);return r??i}function Gr(e,r,t,n,i){let o=e;for(;o.parent;)o=o.parent;if(r.length===0)return ln(o,o,o,t,n,i);let a=Yi(r);if(a.toRoot())return ln(o,o,new v([],{}),t,n,i);let s=Ji(a,o,e),l=s.processChildren?Pt(s.segmentGroup,s.index,a.commands):Zr(s.segmentGroup,s.index,a.commands);return ln(o,s.segmentGroup,l,t,n,i)}function me(e){return typeof e=="object"&&e!=null&&!e.outlets&&!e.segmentPath}function $t(e){return typeof e=="object"&&e!=null&&e.outlets}function Mr(e,r,t){e||="\u0275";let n=new E;return n.queryParams={[e]:r},t.parse(t.serialize(n)).queryParams[e]}function ln(e,r,t,n,i,o){let a={};for(let[c,h]of Object.entries(n??{}))a[c]=Array.isArray(h)?h.map(f=>Mr(c,f,o)):Mr(c,h,o);let s;e===r?s=t:s=Qr(e,r,t);let l=qr(Vr(s));return new E(l,a,i)}function Qr(e,r,t){let n={};return Object.entries(e.children).forEach(([i,o])=>{o===r?n[i]=t:n[i]=Qr(o,r,t)}),new v(e.segments,n)}var ye=class{isAbsolute;numberOfDoubleDots;commands;constructor(r,t,n){if(this.isAbsolute=r,this.numberOfDoubleDots=t,this.commands=n,r&&n.length>0&&me(n[0]))throw new S(4003,!1);let i=n.find($t);if(i&&i!==xi(n))throw new S(4004,!1)}toRoot(){return this.isAbsolute&&this.commands.length===1&&this.commands[0]=="/"}};function Yi(e){if(typeof e[0]=="string"&&e.length===1&&e[0]==="/")return new ye(!0,0,e);let r=0,t=!1,n=e.reduce((i,o,a)=>{if(typeof o=="object"&&o!=null){if(o.outlets){let s={};return Object.entries(o.outlets).forEach(([l,c])=>{s[l]=typeof c=="string"?c.split("/"):c}),[...i,{outlets:s}]}if(o.segmentPath)return[...i,o.segmentPath]}return typeof o!="string"?[...i,o]:a===0?(o.split("/").forEach((s,l)=>{l==0&&s==="."||(l==0&&s===""?t=!0:s===".."?r++:s!=""&&i.push(s))}),i):[...i,o]},[]);return new ye(t,r,n)}var mt=class{segmentGroup;processChildren;index;constructor(r,t,n){this.segmentGroup=r,this.processChildren=t,this.index=n}};function Ji(e,r,t){if(e.isAbsolute)return new mt(r,!0,0);if(!t)return new mt(r,!1,NaN);if(t.parent===null)return new mt(t,!0,0);let n=me(e.commands[0])?0:1,i=t.segments.length-1+n;return Xi(t,i,e.numberOfDoubleDots)}function Xi(e,r,t){let n=e,i=r,o=t;for(;o>i;){if(o-=i,n=n.parent,!n)throw new S(4005,!1);i=n.segments.length}return new mt(n,!1,i-o)}function to(e){return $t(e[0])?e[0].outlets:{[p]:e}}function Zr(e,r,t){if(e??=new v([],{}),e.segments.length===0&&e.hasChildren())return Pt(e,r,t);let n=eo(e,r,t),i=t.slice(n.commandIndex);if(n.match&&n.pathIndex<e.segments.length){let o=new v(e.segments.slice(0,n.pathIndex),{});return o.children[p]=new v(e.segments.slice(n.pathIndex),e.children),Pt(o,0,i)}else return n.match&&i.length===0?new v(e.segments,{}):n.match&&!e.hasChildren()?gn(e,r,t):n.match?Pt(e,0,i):gn(e,r,t)}function Pt(e,r,t){if(t.length===0)return new v(e.segments,{});{let n=to(t),i={};if(Object.keys(n).some(o=>o!==p)&&e.children[p]&&e.numberOfChildren===1&&e.children[p].segments.length===0){let o=Pt(e.children[p],r,t);return new v(e.segments,o.children)}return Object.entries(n).forEach(([o,a])=>{typeof a=="string"&&(a=[a]),a!==null&&(i[o]=Zr(e.children[o],r,a))}),Object.entries(e.children).forEach(([o,a])=>{n[o]===void 0&&(i[o]=a)}),new v(e.segments,i)}}function eo(e,r,t){let n=0,i=r,o={match:!1,pathIndex:0,commandIndex:0};for(;i<e.segments.length;){if(n>=t.length)return o;let a=e.segments[i],s=t[n];if($t(s))break;let l=`${s}`,c=n<t.length-1?t[n+1]:null;if(i>0&&l===void 0)break;if(l&&c&&typeof c=="object"&&c.outlets===void 0){if(!Lr(l,c,a))return o;n+=2}else{if(!Lr(l,{},a))return o;n++}i++}return{match:!0,pathIndex:i,commandIndex:n}}function gn(e,r,t){let n=e.segments.slice(0,r),i=0;for(;i<t.length;){let o=t[i];if($t(o)){let l=no(o.outlets);return new v(n,l)}if(i===0&&me(t[0])){let l=e.segments[r];n.push(new J(l.path,Nr(t[0]))),i++;continue}let a=$t(o)?o.outlets[p]:`${o}`,s=i<t.length-1?t[i+1]:null;a&&s&&me(s)?(n.push(new J(a,Nr(s))),i+=2):(n.push(new J(a,{})),i++)}return new v(n,{})}function no(e){let r={};return Object.entries(e).forEach(([t,n])=>{typeof n=="string"&&(n=[n]),n!==null&&(r[t]=gn(new v([],{}),0,n))}),r}function Nr(e){let r={};return Object.entries(e).forEach(([t,n])=>r[t]=`${n}`),r}function Lr(e,r,t){return e==t.path&&B(r,t.parameters)}var Ut="imperative",w=(function(e){return e[e.NavigationStart=0]="NavigationStart",e[e.NavigationEnd=1]="NavigationEnd",e[e.NavigationCancel=2]="NavigationCancel",e[e.NavigationError=3]="NavigationError",e[e.RoutesRecognized=4]="RoutesRecognized",e[e.ResolveStart=5]="ResolveStart",e[e.ResolveEnd=6]="ResolveEnd",e[e.GuardsCheckStart=7]="GuardsCheckStart",e[e.GuardsCheckEnd=8]="GuardsCheckEnd",e[e.RouteConfigLoadStart=9]="RouteConfigLoadStart",e[e.RouteConfigLoadEnd=10]="RouteConfigLoadEnd",e[e.ChildActivationStart=11]="ChildActivationStart",e[e.ChildActivationEnd=12]="ChildActivationEnd",e[e.ActivationStart=13]="ActivationStart",e[e.ActivationEnd=14]="ActivationEnd",e[e.Scroll=15]="Scroll",e[e.NavigationSkipped=16]="NavigationSkipped",e})(w||{}),M=class{id;url;constructor(r,t){this.id=r,this.url=t}},ut=class extends M{type=w.NavigationStart;navigationTrigger;restoredState;constructor(r,t,n="imperative",i=null){super(r,t),this.navigationTrigger=n,this.restoredState=i}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}},$=class extends M{urlAfterRedirects;type=w.NavigationEnd;constructor(r,t,n){super(r,t),this.urlAfterRedirects=n}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}},T=(function(e){return e[e.Redirect=0]="Redirect",e[e.SupersededByNewNavigation=1]="SupersededByNewNavigation",e[e.NoDataFromResolver=2]="NoDataFromResolver",e[e.GuardRejected=3]="GuardRejected",e[e.Aborted=4]="Aborted",e})(T||{}),Ht=(function(e){return e[e.IgnoredSameUrlNavigation=0]="IgnoredSameUrlNavigation",e[e.IgnoredByUrlHandlingStrategy=1]="IgnoredByUrlHandlingStrategy",e})(Ht||{}),P=class extends M{reason;code;type=w.NavigationCancel;constructor(r,t,n,i){super(r,t),this.reason=n,this.code=i}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}};function Yr(e){return e instanceof P&&(e.code===T.Redirect||e.code===T.SupersededByNewNavigation)}var K=class extends M{reason;code;type=w.NavigationSkipped;constructor(r,t,n,i){super(r,t),this.reason=n,this.code=i}},dt=class extends M{error;target;type=w.NavigationError;constructor(r,t,n,i){super(r,t),this.error=n,this.target=i}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}},Ft=class extends M{urlAfterRedirects;state;type=w.RoutesRecognized;constructor(r,t,n,i){super(r,t),this.urlAfterRedirects=n,this.state=i}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},be=class extends M{urlAfterRedirects;state;type=w.GuardsCheckStart;constructor(r,t,n,i){super(r,t),this.urlAfterRedirects=n,this.state=i}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},Re=class extends M{urlAfterRedirects;state;shouldActivate;type=w.GuardsCheckEnd;constructor(r,t,n,i,o){super(r,t),this.urlAfterRedirects=n,this.state=i,this.shouldActivate=o}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}},we=class extends M{urlAfterRedirects;state;type=w.ResolveStart;constructor(r,t,n,i){super(r,t),this.urlAfterRedirects=n,this.state=i}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},Se=class extends M{urlAfterRedirects;state;type=w.ResolveEnd;constructor(r,t,n,i){super(r,t),this.urlAfterRedirects=n,this.state=i}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},Te=class{route;type=w.RouteConfigLoadStart;constructor(r){this.route=r}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}},Ce=class{route;type=w.RouteConfigLoadEnd;constructor(r){this.route=r}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}},Ie=class{snapshot;type=w.ChildActivationStart;constructor(r){this.snapshot=r}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},Ee=class{snapshot;type=w.ChildActivationEnd;constructor(r){this.snapshot=r}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},Oe=class{snapshot;type=w.ActivationStart;constructor(r){this.snapshot=r}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},Ae=class{snapshot;type=w.ActivationEnd;constructor(r){this.snapshot=r}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}};var bt=class{},zt=class{},Rt=class{url;navigationBehaviorOptions;constructor(r,t){this.url=r,this.navigationBehaviorOptions=t}};function ro(e){return!(e instanceof bt)&&!(e instanceof Rt)&&!(e instanceof zt)}var De=class{rootInjector;outlet=null;route=null;children;attachRef=null;get injector(){return this.route?.snapshot._environmentInjector??this.rootInjector}constructor(r){this.rootInjector=r,this.children=new It(this.rootInjector)}},It=(()=>{class e{rootInjector;contexts=new Map;constructor(t){this.rootInjector=t}onChildOutletCreated(t,n){let i=this.getOrCreateContext(t);i.outlet=n,this.contexts.set(t,i)}onChildOutletDestroyed(t){let n=this.getContext(t);n&&(n.outlet=null,n.attachRef=null)}onOutletDeactivated(){let t=this.contexts;return this.contexts=new Map,t}onOutletReAttached(t){this.contexts=t}getOrCreateContext(t){let n=this.getContext(t);return n||(n=new De(this.rootInjector),this.contexts.set(t,n)),n}getContext(t){return this.contexts.get(t)||null}static \u0275fac=function(n){return new(n||e)(re(Z))};static \u0275prov=y({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),Me=class{_root;constructor(r){this._root=r}get root(){return this._root.value}parent(r){let t=this.pathFromRoot(r);return t.length>1?t[t.length-2]:null}children(r){let t=vn(r,this._root);return t?t.children.map(n=>n.value):[]}firstChild(r){let t=vn(r,this._root);return t&&t.children.length>0?t.children[0].value:null}siblings(r){let t=mn(r,this._root);return t.length<2?[]:t[t.length-2].children.map(i=>i.value).filter(i=>i!==r)}pathFromRoot(r){return mn(r,this._root).map(t=>t.value)}};function vn(e,r){if(e===r.value)return r;for(let t of r.children){let n=vn(e,t);if(n)return n}return null}function mn(e,r){if(e===r.value)return[r];for(let t of r.children){let n=mn(e,t);if(n.length)return n.unshift(r),n}return[]}var D=class{value;children;constructor(r,t){this.value=r,this.children=t}toString(){return`TreeNode(${this.value})`}};function vt(e){let r={};return e&&e.children.forEach(t=>r[t.value.outlet]=t),r}var Bt=class extends Me{snapshot;constructor(r,t){super(r),this.snapshot=t,An(this,r)}toString(){return this.snapshot.toString()}};function Jr(e,r){let t=io(e,r),n=new L([new J("",{})]),i=new L({}),o=new L({}),a=new L({}),s=new L(""),l=new G(n,i,a,s,o,p,e,t.root);return l.snapshot=t.root,new Bt(new D(l,[]),t)}function io(e,r){let t={},n={},i={},a=new wt([],t,i,"",n,p,e,null,{},r);return new qt("",new D(a,[]))}var G=class{urlSubject;paramsSubject;queryParamsSubject;fragmentSubject;dataSubject;outlet;component;snapshot;_futureSnapshot;_routerState;_paramMap;_queryParamMap;title;url;params;queryParams;fragment;data;constructor(r,t,n,i,o,a,s,l){this.urlSubject=r,this.paramsSubject=t,this.queryParamsSubject=n,this.fragmentSubject=i,this.dataSubject=o,this.outlet=a,this.component=s,this._futureSnapshot=l,this.title=this.dataSubject?.pipe(C(c=>c[Kt]))??g(void 0),this.url=r,this.params=t,this.queryParams=n,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(C(r=>ct(r))),this._paramMap}get queryParamMap(){return this._queryParamMap??=this.queryParams.pipe(C(r=>ct(r))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}};function On(e,r,t="emptyOnly"){let n,{routeConfig:i}=e;return r!==null&&(t==="always"||i?.path===""||!r.component&&!r.routeConfig?.loadComponent)?n={params:u(u({},r.params),e.params),data:u(u({},r.data),e.data),resolve:u(u(u(u({},e.data),r.data),i?.data),e._resolvedData)}:n={params:u({},e.params),data:u({},e.data),resolve:u(u({},e.data),e._resolvedData??{})},i&&ti(i)&&(n.resolve[Kt]=i.title),n}var wt=class{url;params;queryParams;fragment;data;outlet;component;routeConfig;_resolve;_resolvedData;_routerState;_paramMap;_queryParamMap;_environmentInjector;get title(){return this.data?.[Kt]}constructor(r,t,n,i,o,a,s,l,c,h){this.url=r,this.params=t,this.queryParams=n,this.fragment=i,this.data=o,this.outlet=a,this.component=s,this.routeConfig=l,this._resolve=c,this._environmentInjector=h}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap??=ct(this.params),this._paramMap}get queryParamMap(){return this._queryParamMap??=ct(this.queryParams),this._queryParamMap}toString(){let r=this.url.map(n=>n.toString()).join("/"),t=this.routeConfig?this.routeConfig.path:"";return`Route(url:'${r}', path:'${t}')`}},qt=class extends Me{url;constructor(r,t){super(t),this.url=r,An(this,t)}toString(){return Xr(this._root)}};function An(e,r){r.value._routerState=e,r.children.forEach(t=>An(e,t))}function Xr(e){let r=e.children.length>0?` { ${e.children.map(Xr).join(", ")} } `:"";return`${e.value}${r}`}function cn(e){if(e.snapshot){let r=e.snapshot,t=e._futureSnapshot;e.snapshot=t,B(r.queryParams,t.queryParams)||e.queryParamsSubject.next(t.queryParams),r.fragment!==t.fragment&&e.fragmentSubject.next(t.fragment),B(r.params,t.params)||e.paramsSubject.next(t.params),Li(r.url,t.url)||e.urlSubject.next(t.url),B(r.data,t.data)||e.dataSubject.next(t.data)}else e.snapshot=e._futureSnapshot,e.dataSubject.next(e._futureSnapshot.data)}function yn(e,r){let t=B(e.params,r.params)&&ki(e.url,r.url),n=!e.parent!=!r.parent;return t&&!n&&(!e.parent||yn(e.parent,r.parent))}function ti(e){return typeof e.title=="string"||e.title===null}var ei=new I(""),Dn=(()=>{class e{activated=null;get activatedComponentRef(){return this.activated}_activatedRoute=null;name=p;activateEvents=new ot;deactivateEvents=new ot;attachEvents=new ot;detachEvents=new ot;routerOutletData=at();parentContexts=d(It);location=d(oe);changeDetector=d(se);inputBinder=d(Gt,{optional:!0});supportsBindingToComponentInputs=!0;ngOnChanges(t){if(t.name){let{firstChange:n,previousValue:i}=t.name;if(n)return;this.isTrackedInParentContexts(i)&&(this.deactivate(),this.parentContexts.onChildOutletDestroyed(i)),this.initializeOutletWithName()}}ngOnDestroy(){this.isTrackedInParentContexts(this.name)&&this.parentContexts.onChildOutletDestroyed(this.name),this.inputBinder?.unsubscribeFromRouteData(this)}isTrackedInParentContexts(t){return this.parentContexts.getContext(t)?.outlet===this}ngOnInit(){this.initializeOutletWithName()}initializeOutletWithName(){if(this.parentContexts.onChildOutletCreated(this.name,this),this.activated)return;let t=this.parentContexts.getContext(this.name);t?.route&&(t.attachRef?this.attach(t.attachRef,t.route):this.activateWith(t.route,t.injector))}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new S(4012,!1);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new S(4012,!1);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new S(4012,!1);this.location.detach();let t=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(t.instance),t}attach(t,n){this.activated=t,this._activatedRoute=n,this.location.insert(t.hostView),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.attachEvents.emit(t.instance)}deactivate(){if(this.activated){let t=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(t)}}activateWith(t,n){if(this.isActivated)throw new S(4013,!1);this._activatedRoute=t;let i=this.location,a=t.snapshot.component,s=this.parentContexts.getOrCreateContext(this.name).children,l=new bn(t,s,i.injector,this.routerOutletData);this.activated=i.createComponent(a,{index:i.length,injector:l,environmentInjector:n}),this.changeDetector.markForCheck(),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.activateEvents.emit(this.activated.instance)}static \u0275fac=function(n){return new(n||e)};static \u0275dir=st({type:e,selectors:[["router-outlet"]],inputs:{name:"name",routerOutletData:[1,"routerOutletData"]},outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"],features:[Mt]})}return e})(),bn=class{route;childContexts;parent;outletData;constructor(r,t,n,i){this.route=r,this.childContexts=t,this.parent=n,this.outletData=i}get(r,t){return r===G?this.route:r===It?this.childContexts:r===ei?this.outletData:this.parent.get(r,t)}},Gt=new I(""),Mn=(()=>{class e{outletDataSubscriptions=new Map;bindActivatedRouteToOutletComponent(t){this.unsubscribeFromRouteData(t),this.subscribeToRouteData(t)}unsubscribeFromRouteData(t){this.outletDataSubscriptions.get(t)?.unsubscribe(),this.outletDataSubscriptions.delete(t)}subscribeToRouteData(t){let{activatedRoute:n}=t,i=Ve([n.queryParams,n.params,n.data]).pipe(U(([o,a,s],l)=>(s=u(u(u({},o),a),s),l===0?g(s):Promise.resolve(s)))).subscribe(o=>{if(!t.isActivated||!t.activatedComponentRef||t.activatedRoute!==n||n.component===null){this.unsubscribeFromRouteData(t);return}let a=gr(n.component);if(!a){this.unsubscribeFromRouteData(t);return}for(let{templateName:s}of a.inputs)t.activatedComponentRef.setInput(s,o[s])});this.outletDataSubscriptions.set(t,i)}static \u0275fac=function(n){return new(n||e)};static \u0275prov=y({token:e,factory:e.\u0275fac})}return e})(),Nn=(()=>{class e{static \u0275fac=function(n){return new(n||e)};static \u0275cmp=Xn({type:e,selectors:[["ng-component"]],exportAs:["emptyRouterOutlet"],decls:1,vars:0,template:function(n,i){n&1&&sr(0,"router-outlet")},dependencies:[Dn],encapsulation:2})}return e})();function Ln(e){let r=e.children&&e.children.map(Ln),t=r?N(u({},e),{children:r}):u({},e);return!t.component&&!t.loadComponent&&(r||t.loadChildren)&&t.outlet&&t.outlet!==p&&(t.component=Nn),t}function oo(e,r,t){let n=Vt(e,r._root,t?t._root:void 0);return new Bt(n,r)}function Vt(e,r,t){if(t&&e.shouldReuseRoute(r.value,t.value.snapshot)){let n=t.value;n._futureSnapshot=r.value;let i=so(e,r,t);return new D(n,i)}else{if(e.shouldAttach(r.value)){let o=e.retrieve(r.value);if(o!==null){let a=o.route;return a.value._futureSnapshot=r.value,a.children=r.children.map(s=>Vt(e,s)),a}}let n=ao(r.value),i=r.children.map(o=>Vt(e,o));return new D(n,i)}}function so(e,r,t){return r.children.map(n=>{for(let i of t.children)if(e.shouldReuseRoute(n.value,i.value.snapshot))return Vt(e,n,i);return Vt(e,n)})}function ao(e){return new G(new L(e.url),new L(e.params),new L(e.queryParams),new L(e.fragment),new L(e.data),e.outlet,e.component,e)}var St=class{redirectTo;navigationBehaviorOptions;constructor(r,t){this.redirectTo=r,this.navigationBehaviorOptions=t}},ni="ngNavigationCancelingError";function Ne(e,r){let{redirectTo:t,navigationBehaviorOptions:n}=tt(r)?{redirectTo:r,navigationBehaviorOptions:void 0}:r,i=ri(!1,T.Redirect);return i.url=t,i.navigationBehaviorOptions=n,i}function ri(e,r){let t=new Error(`NavigationCancelingError: ${e||""}`);return t[ni]=!0,t.cancellationCode=r,t}function lo(e){return ii(e)&&tt(e.url)}function ii(e){return!!e&&e[ni]}var Rn=class{routeReuseStrategy;futureState;currState;forwardEvent;inputBindingEnabled;constructor(r,t,n,i,o){this.routeReuseStrategy=r,this.futureState=t,this.currState=n,this.forwardEvent=i,this.inputBindingEnabled=o}activate(r){let t=this.futureState._root,n=this.currState?this.currState._root:null;this.deactivateChildRoutes(t,n,r),cn(this.futureState.root),this.activateChildRoutes(t,n,r)}deactivateChildRoutes(r,t,n){let i=vt(t);r.children.forEach(o=>{let a=o.value.outlet;this.deactivateRoutes(o,i[a],n),delete i[a]}),Object.values(i).forEach(o=>{this.deactivateRouteAndItsChildren(o,n)})}deactivateRoutes(r,t,n){let i=r.value,o=t?t.value:null;if(i===o)if(i.component){let a=n.getContext(i.outlet);a&&this.deactivateChildRoutes(r,t,a.children)}else this.deactivateChildRoutes(r,t,n);else o&&this.deactivateRouteAndItsChildren(t,n)}deactivateRouteAndItsChildren(r,t){r.value.component&&this.routeReuseStrategy.shouldDetach(r.value.snapshot)?this.detachAndStoreRouteSubtree(r,t):this.deactivateRouteAndOutlet(r,t)}detachAndStoreRouteSubtree(r,t){let n=t.getContext(r.value.outlet),i=n&&r.value.component?n.children:t,o=vt(r);for(let a of Object.values(o))this.deactivateRouteAndItsChildren(a,i);if(n&&n.outlet){let a=n.outlet.detach(),s=n.children.onOutletDeactivated();this.routeReuseStrategy.store(r.value.snapshot,{componentRef:a,route:r,contexts:s})}}deactivateRouteAndOutlet(r,t){let n=t.getContext(r.value.outlet),i=n&&r.value.component?n.children:t,o=vt(r);for(let a of Object.values(o))this.deactivateRouteAndItsChildren(a,i);n&&(n.outlet&&(n.outlet.deactivate(),n.children.onOutletDeactivated()),n.attachRef=null,n.route=null)}activateChildRoutes(r,t,n){let i=vt(t);r.children.forEach(o=>{this.activateRoutes(o,i[o.value.outlet],n),this.forwardEvent(new Ae(o.value.snapshot))}),r.children.length&&this.forwardEvent(new Ee(r.value.snapshot))}activateRoutes(r,t,n){let i=r.value,o=t?t.value:null;if(cn(i),i===o)if(i.component){let a=n.getOrCreateContext(i.outlet);this.activateChildRoutes(r,t,a.children)}else this.activateChildRoutes(r,t,n);else if(i.component){let a=n.getOrCreateContext(i.outlet);if(this.routeReuseStrategy.shouldAttach(i.snapshot)){let s=this.routeReuseStrategy.retrieve(i.snapshot);this.routeReuseStrategy.store(i.snapshot,null),a.children.onOutletReAttached(s.contexts),a.attachRef=s.componentRef,a.route=s.route.value,a.outlet&&a.outlet.attach(s.componentRef,s.route.value),cn(s.route.value),this.activateChildRoutes(r,null,a.children)}else a.attachRef=null,a.route=i,a.outlet&&a.outlet.activateWith(i,a.injector),this.activateChildRoutes(r,null,a.children)}else this.activateChildRoutes(r,null,n)}},Le=class{path;route;constructor(r){this.path=r,this.route=this.path[this.path.length-1]}},yt=class{component;route;constructor(r,t){this.component=r,this.route=t}};function co(e,r,t){let n=e._root,i=r?r._root:null;return _t(n,i,t,[n.value])}function uo(e){let r=e.routeConfig?e.routeConfig.canActivateChild:null;return!r||r.length===0?null:{node:e,guards:r}}function Et(e,r){let t=Symbol(),n=r.get(e,t);return n===t?typeof e=="function"&&!Wn(e)?e:r.get(e):n}function _t(e,r,t,n,i={canDeactivateChecks:[],canActivateChecks:[]}){let o=vt(r);return e.children.forEach(a=>{ho(a,o[a.value.outlet],t,n.concat([a.value]),i),delete o[a.value.outlet]}),Object.entries(o).forEach(([a,s])=>kt(s,t.getContext(a),i)),i}function ho(e,r,t,n,i={canDeactivateChecks:[],canActivateChecks:[]}){let o=e.value,a=r?r.value:null,s=t?t.getContext(e.value.outlet):null;if(a&&o.routeConfig===a.routeConfig){let l=po(a,o,o.routeConfig.runGuardsAndResolvers);l?i.canActivateChecks.push(new Le(n)):(o.data=a.data,o._resolvedData=a._resolvedData),o.component?_t(e,r,s?s.children:null,n,i):_t(e,r,t,n,i),l&&s&&s.outlet&&s.outlet.isActivated&&i.canDeactivateChecks.push(new yt(s.outlet.component,a))}else a&&kt(r,s,i),i.canActivateChecks.push(new Le(n)),o.component?_t(e,null,s?s.children:null,n,i):_t(e,null,t,n,i);return i}function po(e,r,t){if(typeof t=="function")return _(r._environmentInjector,()=>t(e,r));switch(t){case"pathParamsChange":return!lt(e.url,r.url);case"pathParamsOrQueryParamsChange":return!lt(e.url,r.url)||!B(e.queryParams,r.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!yn(e,r)||!B(e.queryParams,r.queryParams);default:return!yn(e,r)}}function kt(e,r,t){let n=vt(e),i=e.value;Object.entries(n).forEach(([o,a])=>{i.component?r?kt(a,r.children.getContext(o),t):kt(a,null,t):kt(a,r,t)}),i.component?r&&r.outlet&&r.outlet.isActivated?t.canDeactivateChecks.push(new yt(r.outlet.component,i)):t.canDeactivateChecks.push(new yt(null,i)):t.canDeactivateChecks.push(new yt(null,i))}function Qt(e){return typeof e=="function"}function fo(e){return typeof e=="boolean"}function go(e){return e&&Qt(e.canLoad)}function vo(e){return e&&Qt(e.canActivate)}function mo(e){return e&&Qt(e.canActivateChild)}function yo(e){return e&&Qt(e.canDeactivate)}function bo(e){return e&&Qt(e.canMatch)}function oi(e){return e instanceof Fn||e?.name==="EmptyError"}var he=Symbol("INITIAL_VALUE");function Tt(){return U(e=>Ve(e.map(r=>r.pipe(ft(1),qn(he)))).pipe(C(r=>{for(let t of r)if(t!==!0){if(t===he)return he;if(t===!1||Ro(t))return t}return!0}),it(r=>r!==he),ft(1)))}function Ro(e){return tt(e)||e instanceof St}function si(e){return e.aborted?g(void 0).pipe(ft(1)):new $n(r=>{let t=()=>{r.next(),r.complete()};return e.addEventListener("abort",t),()=>e.removeEventListener("abort",t)})}function ai(e){return ne(si(e))}function wo(e){return V(r=>{let{targetSnapshot:t,currentSnapshot:n,guards:{canActivateChecks:i,canDeactivateChecks:o}}=r;return o.length===0&&i.length===0?g(N(u({},r),{guardsResult:!0})):So(o,t,n).pipe(V(a=>a&&fo(a)?To(t,i,e):g(a)),C(a=>N(u({},r),{guardsResult:a})))})}function So(e,r,t){return O(e).pipe(V(n=>Ao(n.component,n.route,t,r)),Q(n=>n!==!0,!0))}function To(e,r,t){return O(r).pipe(ee(n=>zn(Io(n.route.parent,t),Co(n.route,t),Oo(e,n.path),Eo(e,n.route))),Q(n=>n!==!0,!0))}function Co(e,r){return e!==null&&r&&r(new Oe(e)),g(!0)}function Io(e,r){return e!==null&&r&&r(new Ie(e)),g(!0)}function Eo(e,r){let t=r.routeConfig?r.routeConfig.canActivate:null;if(!t||t.length===0)return g(!0);let n=t.map(i=>Xt(()=>{let o=r._environmentInjector,a=Et(i,o),s=vo(a)?a.canActivate(r,e):_(o,()=>a(r,e));return ht(s).pipe(Q())}));return g(n).pipe(Tt())}function Oo(e,r){let t=r[r.length-1],i=r.slice(0,r.length-1).reverse().map(o=>uo(o)).filter(o=>o!==null).map(o=>Xt(()=>{let a=o.guards.map(s=>{let l=o.node._environmentInjector,c=Et(s,l),h=mo(c)?c.canActivateChild(t,e):_(l,()=>c(t,e));return ht(h).pipe(Q())});return g(a).pipe(Tt())}));return g(i).pipe(Tt())}function Ao(e,r,t,n){let i=r&&r.routeConfig?r.routeConfig.canDeactivate:null;if(!i||i.length===0)return g(!0);let o=i.map(a=>{let s=r._environmentInjector,l=Et(a,s),c=yo(l)?l.canDeactivate(e,r,t,n):_(s,()=>l(e,r,t,n));return ht(c).pipe(Q())});return g(o).pipe(Tt())}function Do(e,r,t,n,i){let o=r.canLoad;if(o===void 0||o.length===0)return g(!0);let a=o.map(s=>{let l=Et(s,e),c=go(l)?l.canLoad(r,t):_(e,()=>l(r,t)),h=ht(c);return i?h.pipe(ai(i)):h});return g(a).pipe(Tt(),li(n))}function li(e){return jn(k(r=>{if(typeof r!="boolean")throw Ne(e,r)}),C(r=>r===!0))}function Mo(e,r,t,n,i,o){let a=r.canMatch;if(!a||a.length===0)return g(!0);let s=a.map(l=>{let c=Et(l,e),h=bo(c)?c.canMatch(r,t,i):_(e,()=>c(r,t,i));return ht(h).pipe(ai(o))});return g(s).pipe(Tt(),li(n))}var W=class e extends Error{segmentGroup;constructor(r){super(),this.segmentGroup=r||null,Object.setPrototypeOf(this,e.prototype)}},Wt=class e extends Error{urlTree;constructor(r){super(),this.urlTree=r,Object.setPrototypeOf(this,e.prototype)}};function No(e){throw new S(4e3,!1)}function Lo(e){throw ri(!1,T.GuardRejected)}var wn=class{urlSerializer;urlTree;constructor(r,t){this.urlSerializer=r,this.urlTree=t}async lineralizeSegments(r,t){let n=[],i=t.root;for(;;){if(n=n.concat(i.segments),i.numberOfChildren===0)return n;if(i.numberOfChildren>1||!i.children[p])throw No(`${r.redirectTo}`);i=i.children[p]}}async applyRedirectCommands(r,t,n,i,o){let a=await xo(t,i,o);if(a instanceof E)throw new Wt(a);let s=this.applyRedirectCreateUrlTree(a,this.urlSerializer.parse(a),r,n);if(a[0]==="/")throw new Wt(s);return s}applyRedirectCreateUrlTree(r,t,n,i){let o=this.createSegmentGroup(r,t.root,n,i);return new E(o,this.createQueryParams(t.queryParams,this.urlTree.queryParams),t.fragment)}createQueryParams(r,t){let n={};return Object.entries(r).forEach(([i,o])=>{if(typeof o=="string"&&o[0]===":"){let s=o.substring(1);n[i]=t[s]}else n[i]=o}),n}createSegmentGroup(r,t,n,i){let o=this.createSegments(r,t.segments,n,i),a={};return Object.entries(t.children).forEach(([s,l])=>{a[s]=this.createSegmentGroup(r,l,n,i)}),new v(o,a)}createSegments(r,t,n,i){return t.map(o=>o.path[0]===":"?this.findPosParam(r,o,i):this.findOrReturn(o,n))}findPosParam(r,t,n){let i=n[t.path.substring(1)];if(!i)throw new S(4001,!1);return i}findOrReturn(r,t){let n=0;for(let i of t){if(i.path===r.path)return t.splice(n),i;n++}return r}};function xo(e,r,t){if(typeof e=="string")return Promise.resolve(e);let n=e;return ve(ht(_(t,()=>n(r))))}function _o(e,r){return e.providers&&!e._injector&&(e._injector=en(e.providers,r,`Route: ${e.path}`)),e._injector??r}function j(e){return e.outlet||p}function Po(e,r){let t=e.filter(n=>j(n)===r);return t.push(...e.filter(n=>j(n)!==r)),t}var Sn={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function ci(e){return{routeConfig:e.routeConfig,url:e.url,params:e.params,queryParams:e.queryParams,fragment:e.fragment,data:e.data,outlet:e.outlet,title:e.title,paramMap:e.paramMap,queryParamMap:e.queryParamMap}}function Uo(e,r,t,n,i,o,a){let s=ui(e,r,t);if(!s.matched)return g(s);let l=ci(o(s));return n=_o(r,n),Mo(n,r,t,i,l,a).pipe(C(c=>c===!0?s:u({},Sn)))}function ui(e,r,t){if(r.path==="")return r.pathMatch==="full"&&(e.hasChildren()||t.length>0)?u({},Sn):{matched:!0,consumedSegments:[],remainingSegments:t,parameters:{},positionalParamSegments:{}};let i=(r.matcher||Pr)(t,e,r);if(!i)return u({},Sn);let o={};Object.entries(i.posParams??{}).forEach(([s,l])=>{o[s]=l.path});let a=i.consumed.length>0?u(u({},o),i.consumed[i.consumed.length-1].parameters):o;return{matched:!0,consumedSegments:i.consumed,remainingSegments:t.slice(i.consumed.length),parameters:a,positionalParamSegments:i.posParams??{}}}function xr(e,r,t,n,i){return t.length>0&&$o(e,t,n,i)?{segmentGroup:new v(r,jo(n,new v(t,e.children))),slicedSegments:[]}:t.length===0&&Ho(e,t,n)?{segmentGroup:new v(e.segments,ko(e,t,n,e.children)),slicedSegments:t}:{segmentGroup:new v(e.segments,e.children),slicedSegments:t}}function ko(e,r,t,n){let i={};for(let o of t)if(Pe(e,r,o)&&!n[j(o)]){let a=new v([],{});i[j(o)]=a}return u(u({},n),i)}function jo(e,r){let t={};t[p]=r;for(let n of e)if(n.path===""&&j(n)!==p){let i=new v([],{});t[j(n)]=i}return t}function $o(e,r,t,n){return t.some(i=>!Pe(e,r,i)||!(j(i)!==p)?!1:!(n!==void 0&&j(i)===n))}function Ho(e,r,t){return t.some(n=>Pe(e,r,n))}function Pe(e,r,t){return(e.hasChildren()||r.length>0)&&t.pathMatch==="full"?!1:t.path===""}function Fo(e,r,t){return r.length===0&&!e.children[t]}var Tn=class{};async function zo(e,r,t,n,i,o,a="emptyOnly",s){return new Cn(e,r,t,n,i,a,o,s).recognize()}var Bo=31,Cn=class{injector;configLoader;rootComponentType;config;urlTree;paramsInheritanceStrategy;urlSerializer;abortSignal;applyRedirects;absoluteRedirectCount=0;allowRedirects=!0;constructor(r,t,n,i,o,a,s,l){this.injector=r,this.configLoader=t,this.rootComponentType=n,this.config=i,this.urlTree=o,this.paramsInheritanceStrategy=a,this.urlSerializer=s,this.abortSignal=l,this.applyRedirects=new wn(this.urlSerializer,this.urlTree)}noMatchError(r){return new S(4002,`'${r.segmentGroup}'`)}async recognize(){let r=xr(this.urlTree.root,[],[],this.config).segmentGroup,{children:t,rootSnapshot:n}=await this.match(r),i=new D(n,t),o=new qt("",i),a=Wr(n,[],this.urlTree.queryParams,this.urlTree.fragment);return a.queryParams=this.urlTree.queryParams,o.url=this.urlSerializer.serialize(a),{state:o,tree:a}}async match(r){let t=new wt([],Object.freeze({}),Object.freeze(u({},this.urlTree.queryParams)),this.urlTree.fragment,Object.freeze({}),p,this.rootComponentType,null,{},this.injector);try{return{children:await this.processSegmentGroup(this.injector,this.config,r,p,t),rootSnapshot:t}}catch(n){if(n instanceof Wt)return this.urlTree=n.urlTree,this.match(n.urlTree.root);throw n instanceof W?this.noMatchError(n):n}}async processSegmentGroup(r,t,n,i,o){if(n.segments.length===0&&n.hasChildren())return this.processChildren(r,t,n,o);let a=await this.processSegment(r,t,n,n.segments,i,!0,o);return a instanceof D?[a]:[]}async processChildren(r,t,n,i){let o=[];for(let l of Object.keys(n.children))l==="primary"?o.unshift(l):o.push(l);let a=[];for(let l of o){let c=n.children[l],h=Po(t,l),f=await this.processSegmentGroup(r,h,c,l,i);a.push(...f)}let s=di(a);return qo(s),s}async processSegment(r,t,n,i,o,a,s){for(let l of t)try{return await this.processSegmentAgainstRoute(l._injector??r,t,l,n,i,o,a,s)}catch(c){if(c instanceof W||oi(c))continue;throw c}if(Fo(n,i,o))return new Tn;throw new W(n)}async processSegmentAgainstRoute(r,t,n,i,o,a,s,l){if(j(n)!==a&&(a===p||!Pe(i,o,n)))throw new W(i);if(n.redirectTo===void 0)return this.matchSegmentAgainstRoute(r,i,n,o,a,l);if(this.allowRedirects&&s)return this.expandSegmentAgainstRouteUsingRedirect(r,i,t,n,o,a,l);throw new W(i)}async expandSegmentAgainstRouteUsingRedirect(r,t,n,i,o,a,s){let{matched:l,parameters:c,consumedSegments:h,positionalParamSegments:f,remainingSegments:b}=ui(t,i,o);if(!l)throw new W(t);typeof i.redirectTo=="string"&&i.redirectTo[0]==="/"&&(this.absoluteRedirectCount++,this.absoluteRedirectCount>Bo&&(this.allowRedirects=!1));let et=this.createSnapshot(r,i,o,c,s);if(this.abortSignal.aborted)throw new Error(this.abortSignal.reason);let q=await this.applyRedirects.applyRedirectCommands(h,i.redirectTo,f,ci(et),r),nt=await this.applyRedirects.lineralizeSegments(i,q);return this.processSegment(r,n,t,nt.concat(b),a,!1,s)}createSnapshot(r,t,n,i,o){let a=new wt(n,i,Object.freeze(u({},this.urlTree.queryParams)),this.urlTree.fragment,Wo(t),j(t),t.component??t._loadedComponent??null,t,Ko(t),r),s=On(a,o,this.paramsInheritanceStrategy);return a.params=Object.freeze(s.params),a.data=Object.freeze(s.data),a}async matchSegmentAgainstRoute(r,t,n,i,o,a){if(this.abortSignal.aborted)throw new Error(this.abortSignal.reason);let s=Jt=>this.createSnapshot(r,n,Jt.consumedSegments,Jt.parameters,a),l=await ve(Uo(t,n,i,r,this.urlSerializer,s,this.abortSignal));if(n.path==="**"&&(t.children={}),!l?.matched)throw new W(t);r=n._injector??r;let{routes:c}=await this.getChildConfig(r,n,i),h=n._loadedInjector??r,{parameters:f,consumedSegments:b,remainingSegments:et}=l,q=this.createSnapshot(r,n,b,f,a),{segmentGroup:nt,slicedSegments:At}=xr(t,b,et,c,o);if(At.length===0&&nt.hasChildren()){let Jt=await this.processChildren(h,c,nt,q);return new D(q,Jt)}if(c.length===0&&At.length===0)return new D(q,[]);let Be=j(n)===o,Dt=await this.processSegment(h,c,nt,At,Be?p:o,!0,q);return new D(q,Dt instanceof D?[Dt]:[])}async getChildConfig(r,t,n){if(t.children)return{routes:t.children,injector:r};if(t.loadChildren){if(t._loadedRoutes!==void 0){let o=t._loadedNgModuleFactory;return o&&!t._loadedInjector&&(t._loadedInjector=o.create(r).injector),{routes:t._loadedRoutes,injector:t._loadedInjector}}if(this.abortSignal.aborted)throw new Error(this.abortSignal.reason);if(await ve(Do(r,t,n,this.urlSerializer,this.abortSignal))){let o=await this.configLoader.loadChildren(r,t);return t._loadedRoutes=o.routes,t._loadedInjector=o.injector,t._loadedNgModuleFactory=o.factory,o}throw Lo(t)}return{routes:[],injector:r}}};function qo(e){e.sort((r,t)=>r.value.outlet===p?-1:t.value.outlet===p?1:r.value.outlet.localeCompare(t.value.outlet))}function Vo(e){let r=e.value.routeConfig;return r&&r.path===""}function di(e){let r=[],t=new Set;for(let n of e){if(!Vo(n)){r.push(n);continue}let i=r.find(o=>n.value.routeConfig===o.value.routeConfig);i!==void 0?(i.children.push(...n.children),t.add(i)):r.push(n)}for(let n of t){let i=di(n.children);r.push(new D(n.value,i))}return r.filter(n=>!t.has(n))}function Wo(e){return e.data||{}}function Ko(e){return e.resolve||{}}function Go(e,r,t,n,i,o,a){return V(async s=>{let{state:l,tree:c}=await zo(e,r,t,n,s.extractedUrl,i,o,a);return N(u({},s),{targetSnapshot:l,urlAfterRedirects:c})})}function Qo(e){return V(r=>{let{targetSnapshot:t,guards:{canActivateChecks:n}}=r;if(!n.length)return g(r);let i=new Set(n.map(s=>s.route)),o=new Set;for(let s of i)if(!o.has(s))for(let l of hi(s))o.add(l);let a=0;return O(o).pipe(ee(s=>i.has(s)?Zo(s,t,e):(s.data=On(s,s.parent,e).resolve,g(void 0))),k(()=>a++),Ke(1),V(s=>a===o.size?g(r):x))})}function hi(e){let r=e.children.map(t=>hi(t)).flat();return[e,...r]}function Zo(e,r,t){let n=e.routeConfig,i=e._resolve;return n?.title!==void 0&&!ti(n)&&(i[Kt]=n.title),Xt(()=>(e.data=On(e,e.parent,t).resolve,Yo(i,e,r).pipe(C(o=>(e._resolvedData=o,e.data=u(u({},e.data),o),null)))))}function Yo(e,r,t){let n=dn(e);if(n.length===0)return g({});let i={};return O(n).pipe(V(o=>Jo(e[o],r,t).pipe(Q(),k(a=>{if(a instanceof St)throw Ne(new X,a);i[o]=a}))),Ke(1),C(()=>i),te(o=>oi(o)?x:Hn(o)))}function Jo(e,r,t){let n=r._environmentInjector,i=Et(e,n),o=i.resolve?i.resolve(r,t):_(n,()=>i(r,t));return ht(o)}function _r(e){return U(r=>{let t=e(r);return t?O(t).pipe(C(()=>r)):g(r)})}var xn=(()=>{class e{buildTitle(t){let n,i=t.root;for(;i!==void 0;)n=this.getResolvedTitleForRoute(i)??n,i=i.children.find(o=>o.outlet===p);return n}getResolvedTitleForRoute(t){return t.data[Kt]}static \u0275fac=function(n){return new(n||e)};static \u0275prov=y({token:e,factory:()=>d(pi),providedIn:"root"})}return e})(),pi=(()=>{class e extends xn{title;constructor(t){super(),this.title=t}updateTitle(t){let n=this.buildTitle(t);n!==void 0&&this.title.setTitle(n)}static \u0275fac=function(n){return new(n||e)(re(yr))};static \u0275prov=y({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),Ot=new I("",{factory:()=>({})}),Zt=new I(""),fi=(()=>{class e{componentLoaders=new WeakMap;childrenLoaders=new WeakMap;onLoadStartListener;onLoadEndListener;compiler=d(hr);async loadComponent(t,n){if(this.componentLoaders.get(n))return this.componentLoaders.get(n);if(n._loadedComponent)return Promise.resolve(n._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(n);let i=(async()=>{try{let o=await kr(_(t,()=>n.loadComponent())),a=await mi(vi(o));return this.onLoadEndListener&&this.onLoadEndListener(n),n._loadedComponent=a,a}finally{this.componentLoaders.delete(n)}})();return this.componentLoaders.set(n,i),i}loadChildren(t,n){if(this.childrenLoaders.get(n))return this.childrenLoaders.get(n);if(n._loadedRoutes)return Promise.resolve({routes:n._loadedRoutes,injector:n._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(n);let i=(async()=>{try{let o=await gi(n,this.compiler,t,this.onLoadEndListener);return n._loadedRoutes=o.routes,n._loadedInjector=o.injector,n._loadedNgModuleFactory=o.factory,o}finally{this.childrenLoaders.delete(n)}})();return this.childrenLoaders.set(n,i),i}static \u0275fac=function(n){return new(n||e)};static \u0275prov=y({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();async function gi(e,r,t,n){let i=await kr(_(t,()=>e.loadChildren())),o=await mi(vi(i)),a;o instanceof Jn||Array.isArray(o)?a=o:a=await r.compileModuleAsync(o),n&&n(e);let s,l,c=!1,h;return Array.isArray(a)?(l=a,c=!0):(s=a.create(t).injector,h=a,l=s.get(Zt,[],{optional:!0,self:!0}).flat()),{routes:l.map(Ln),injector:s,factory:h}}function Xo(e){return e&&typeof e=="object"&&"default"in e}function vi(e){return Xo(e)?e.default:e}async function mi(e){return e}var Ue=(()=>{class e{static \u0275fac=function(n){return new(n||e)};static \u0275prov=y({token:e,factory:()=>d(ts),providedIn:"root"})}return e})(),ts=(()=>{class e{shouldProcessUrl(t){return!0}extract(t){return t}merge(t,n){return t}static \u0275fac=function(n){return new(n||e)};static \u0275prov=y({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),yi=new I("");var es=()=>{},bi=new I(""),Ri=(()=>{class e{currentNavigation=m(null,{equal:()=>!1});currentTransition=null;lastSuccessfulNavigation=m(null);events=new rt;transitionAbortWithErrorSubject=new rt;configLoader=d(fi);environmentInjector=d(Z);destroyRef=d(Ze);urlSerializer=d(Ct);rootContexts=d(It);location=d(ae);inputBindingEnabled=d(Gt,{optional:!0})!==null;titleStrategy=d(xn);options=d(Ot,{optional:!0})||{};paramsInheritanceStrategy=this.options.paramsInheritanceStrategy||"emptyOnly";urlHandlingStrategy=d(Ue);createViewTransition=d(yi,{optional:!0});navigationErrorHandler=d(bi,{optional:!0});navigationId=0;get hasRequestedNavigation(){return this.navigationId!==0}transitions;afterPreactivation=()=>g(void 0);rootComponentType=null;destroyed=!1;constructor(){let t=i=>this.events.next(new Te(i)),n=i=>this.events.next(new Ce(i));this.configLoader.onLoadEndListener=n,this.configLoader.onLoadStartListener=t,this.destroyRef.onDestroy(()=>{this.destroyed=!0})}complete(){this.transitions?.complete()}handleNavigationRequest(t){let n=++this.navigationId;R(()=>{this.transitions?.next(N(u({},t),{extractedUrl:this.urlHandlingStrategy.extract(t.rawUrl),targetSnapshot:null,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null,id:n,routesRecognizeHandler:{},beforeActivateHandler:{}}))})}setupNavigations(t){return this.transitions=new L(null),this.transitions.pipe(it(n=>n!==null),U(n=>{let i=!1,o=new AbortController,a=()=>!i&&this.currentTransition?.id===n.id;return g(n).pipe(U(s=>{if(this.navigationId>n.id)return this.cancelNavigationTransition(n,"",T.SupersededByNewNavigation),x;this.currentTransition=n;let l=this.lastSuccessfulNavigation();this.currentNavigation.set({id:s.id,initialUrl:s.rawUrl,extractedUrl:s.extractedUrl,targetBrowserUrl:typeof s.extras.browserUrl=="string"?this.urlSerializer.parse(s.extras.browserUrl):s.extras.browserUrl,trigger:s.source,extras:s.extras,previousNavigation:l?N(u({},l),{previousNavigation:null}):null,abort:()=>o.abort(),routesRecognizeHandler:s.routesRecognizeHandler,beforeActivateHandler:s.beforeActivateHandler});let c=!t.navigated||this.isUpdatingInternalState()||this.isUpdatedBrowserUrl(),h=s.extras.onSameUrlNavigation??t.onSameUrlNavigation;if(!c&&h!=="reload")return this.events.next(new K(s.id,this.urlSerializer.serialize(s.rawUrl),"",Ht.IgnoredSameUrlNavigation)),s.resolve(!1),x;if(this.urlHandlingStrategy.shouldProcessUrl(s.rawUrl))return g(s).pipe(U(f=>(this.events.next(new ut(f.id,this.urlSerializer.serialize(f.extractedUrl),f.source,f.restoredState)),f.id!==this.navigationId?x:Promise.resolve(f))),Go(this.environmentInjector,this.configLoader,this.rootComponentType,t.config,this.urlSerializer,this.paramsInheritanceStrategy,o.signal),k(f=>{n.targetSnapshot=f.targetSnapshot,n.urlAfterRedirects=f.urlAfterRedirects,this.currentNavigation.update(b=>(b.finalUrl=f.urlAfterRedirects,b)),this.events.next(new zt)}),U(f=>O(n.routesRecognizeHandler.deferredHandle??g(void 0)).pipe(C(()=>f))),k(()=>{let f=new Ft(s.id,this.urlSerializer.serialize(s.extractedUrl),this.urlSerializer.serialize(s.urlAfterRedirects),s.targetSnapshot);this.events.next(f)}));if(c&&this.urlHandlingStrategy.shouldProcessUrl(s.currentRawUrl)){let{id:f,extractedUrl:b,source:et,restoredState:q,extras:nt}=s,At=new ut(f,this.urlSerializer.serialize(b),et,q);this.events.next(At);let Be=Jr(this.rootComponentType,this.environmentInjector).snapshot;return this.currentTransition=n=N(u({},s),{targetSnapshot:Be,urlAfterRedirects:b,extras:N(u({},nt),{skipLocationChange:!1,replaceUrl:!1})}),this.currentNavigation.update(Dt=>(Dt.finalUrl=b,Dt)),g(n)}else return this.events.next(new K(s.id,this.urlSerializer.serialize(s.extractedUrl),"",Ht.IgnoredByUrlHandlingStrategy)),s.resolve(!1),x}),C(s=>{let l=new be(s.id,this.urlSerializer.serialize(s.extractedUrl),this.urlSerializer.serialize(s.urlAfterRedirects),s.targetSnapshot);return this.events.next(l),this.currentTransition=n=N(u({},s),{guards:co(s.targetSnapshot,s.currentSnapshot,this.rootContexts)}),n}),wo(s=>this.events.next(s)),U(s=>{if(n.guardsResult=s.guardsResult,s.guardsResult&&typeof s.guardsResult!="boolean")throw Ne(this.urlSerializer,s.guardsResult);let l=new Re(s.id,this.urlSerializer.serialize(s.extractedUrl),this.urlSerializer.serialize(s.urlAfterRedirects),s.targetSnapshot,!!s.guardsResult);if(this.events.next(l),!a())return x;if(!s.guardsResult)return this.cancelNavigationTransition(s,"",T.GuardRejected),x;if(s.guards.canActivateChecks.length===0)return g(s);let c=new we(s.id,this.urlSerializer.serialize(s.extractedUrl),this.urlSerializer.serialize(s.urlAfterRedirects),s.targetSnapshot);if(this.events.next(c),!a())return x;let h=!1;return g(s).pipe(Qo(this.paramsInheritanceStrategy),k({next:()=>{h=!0;let f=new Se(s.id,this.urlSerializer.serialize(s.extractedUrl),this.urlSerializer.serialize(s.urlAfterRedirects),s.targetSnapshot);this.events.next(f)},complete:()=>{h||this.cancelNavigationTransition(s,"",T.NoDataFromResolver)}}))}),_r(s=>{let l=h=>{let f=[];if(h.routeConfig?._loadedComponent)h.component=h.routeConfig?._loadedComponent;else if(h.routeConfig?.loadComponent){let b=h._environmentInjector;f.push(this.configLoader.loadComponent(b,h.routeConfig).then(et=>{h.component=et}))}for(let b of h.children)f.push(...l(b));return f},c=l(s.targetSnapshot.root);return c.length===0?g(s):O(Promise.all(c).then(()=>s))}),_r(()=>this.afterPreactivation()),U(()=>{let{currentSnapshot:s,targetSnapshot:l}=n,c=this.createViewTransition?.(this.environmentInjector,s.root,l.root);return c?O(c).pipe(C(()=>n)):g(n)}),ft(1),U(s=>{let l=oo(t.routeReuseStrategy,s.targetSnapshot,s.currentRouterState);this.currentTransition=n=s=N(u({},s),{targetRouterState:l}),this.currentNavigation.update(h=>(h.targetRouterState=l,h)),this.events.next(new bt);let c=n.beforeActivateHandler.deferredHandle;return c?O(c.then(()=>s)):g(s)}),k(s=>{new Rn(t.routeReuseStrategy,n.targetRouterState,n.currentRouterState,l=>this.events.next(l),this.inputBindingEnabled).activate(this.rootContexts),a()&&(i=!0,this.currentNavigation.update(l=>(l.abort=es,l)),this.lastSuccessfulNavigation.set(R(this.currentNavigation)),this.events.next(new $(s.id,this.urlSerializer.serialize(s.extractedUrl),this.urlSerializer.serialize(s.urlAfterRedirects))),this.titleStrategy?.updateTitle(s.targetRouterState.snapshot),s.resolve(!0))}),ne(si(o.signal).pipe(it(()=>!i&&!n.targetRouterState),k(()=>{this.cancelNavigationTransition(n,o.signal.reason+"",T.Aborted)}))),k({complete:()=>{i=!0}}),ne(this.transitionAbortWithErrorSubject.pipe(k(s=>{throw s}))),Bn(()=>{o.abort(),i||this.cancelNavigationTransition(n,"",T.SupersededByNewNavigation),this.currentTransition?.id===n.id&&(this.currentNavigation.set(null),this.currentTransition=null)}),te(s=>{if(i=!0,this.destroyed)return n.resolve(!1),x;if(ii(s))this.events.next(new P(n.id,this.urlSerializer.serialize(n.extractedUrl),s.message,s.cancellationCode)),lo(s)?this.events.next(new Rt(s.url,s.navigationBehaviorOptions)):n.resolve(!1);else{let l=new dt(n.id,this.urlSerializer.serialize(n.extractedUrl),s,n.targetSnapshot??void 0);try{let c=_(this.environmentInjector,()=>this.navigationErrorHandler?.(l));if(c instanceof St){let{message:h,cancellationCode:f}=Ne(this.urlSerializer,c);this.events.next(new P(n.id,this.urlSerializer.serialize(n.extractedUrl),h,f)),this.events.next(new Rt(c.redirectTo,c.navigationBehaviorOptions))}else throw this.events.next(l),s}catch(c){this.options.resolveNavigationPromiseOnError?n.resolve(!1):n.reject(c)}}return x}))}))}cancelNavigationTransition(t,n,i){let o=new P(t.id,this.urlSerializer.serialize(t.extractedUrl),n,i);this.events.next(o),t.resolve(!1)}isUpdatingInternalState(){return this.currentTransition?.extractedUrl.toString()!==this.currentTransition?.currentUrlTree.toString()}isUpdatedBrowserUrl(){let t=this.urlHandlingStrategy.extract(this.urlSerializer.parse(this.location.path(!0))),n=R(this.currentNavigation),i=n?.targetBrowserUrl??n?.extractedUrl;return t.toString()!==i?.toString()&&!n?.extras.skipLocationChange}static \u0275fac=function(n){return new(n||e)};static \u0275prov=y({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function ns(e){return e!==Ut}var wi=new I("");var Si=(()=>{class e{static \u0275fac=function(n){return new(n||e)};static \u0275prov=y({token:e,factory:()=>d(rs),providedIn:"root"})}return e})(),xe=class{shouldDetach(r){return!1}store(r,t){}shouldAttach(r){return!1}retrieve(r){return null}shouldReuseRoute(r,t){return r.routeConfig===t.routeConfig}shouldDestroyInjector(r){return!0}},rs=(()=>{class e extends xe{static \u0275fac=(()=>{let t;return function(i){return(t||(t=Nt(e)))(i||e)}})();static \u0275prov=y({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),ke=(()=>{class e{urlSerializer=d(Ct);options=d(Ot,{optional:!0})||{};canceledNavigationResolution=this.options.canceledNavigationResolution||"replace";location=d(ae);urlHandlingStrategy=d(Ue);urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred";currentUrlTree=new E;getCurrentUrlTree(){return this.currentUrlTree}rawUrlTree=this.currentUrlTree;getRawUrlTree(){return this.rawUrlTree}createBrowserPath({finalUrl:t,initialUrl:n,targetBrowserUrl:i}){let o=t!==void 0?this.urlHandlingStrategy.merge(t,n):n,a=i??o;return a instanceof E?this.urlSerializer.serialize(a):a}commitTransition({targetRouterState:t,finalUrl:n,initialUrl:i}){n&&t?(this.currentUrlTree=n,this.rawUrlTree=this.urlHandlingStrategy.merge(n,i),this.routerState=t):this.rawUrlTree=i}routerState=Jr(null,d(Z));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(n){return new(n||e)};static \u0275prov=y({token:e,factory:()=>d(is),providedIn:"root"})}return e})(),is=(()=>{class e extends ke{currentPageId=0;lastSuccessfulId=-1;get browserPageId(){return this.canceledNavigationResolution!=="computed"?this.currentPageId:this.restoredState()?.\u0275routerPageId??this.currentPageId}registerNonRouterCurrentEntryChangeListener(t){return this.location.subscribe(n=>{n.type==="popstate"&&setTimeout(()=>{t(n.url,n.state,"popstate",{replaceUrl:!0})})})}handleRouterEvent(t,n){t instanceof ut?this.updateStateMemento():t instanceof K?this.commitTransition(n):t instanceof Ft?this.urlUpdateStrategy==="eager"&&(n.extras.skipLocationChange||this.setBrowserUrl(this.createBrowserPath(n),n)):t instanceof bt?(this.commitTransition(n),this.urlUpdateStrategy==="deferred"&&!n.extras.skipLocationChange&&this.setBrowserUrl(this.createBrowserPath(n),n)):t instanceof P&&!Yr(t)?this.restoreHistory(n):t instanceof dt?this.restoreHistory(n,!0):t instanceof $&&(this.lastSuccessfulId=t.id,this.currentPageId=this.browserPageId)}setBrowserUrl(t,{extras:n,id:i}){let{replaceUrl:o,state:a}=n;if(this.location.isCurrentPathEqualTo(t)||o){let s=this.browserPageId,l=u(u({},a),this.generateNgRouterState(i,s));this.location.replaceState(t,"",l)}else{let s=u(u({},a),this.generateNgRouterState(i,this.browserPageId+1));this.location.go(t,"",s)}}restoreHistory(t,n=!1){if(this.canceledNavigationResolution==="computed"){let i=this.browserPageId,o=this.currentPageId-i;o!==0?this.location.historyGo(o):this.getCurrentUrlTree()===t.finalUrl&&o===0&&(this.resetInternalState(t),this.resetUrlToCurrentUrlTree())}else this.canceledNavigationResolution==="replace"&&(n&&this.resetInternalState(t),this.resetUrlToCurrentUrlTree())}resetInternalState({finalUrl:t}){this.routerState=this.stateMemento.routerState,this.currentUrlTree=this.stateMemento.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,t??this.rawUrlTree)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.getRawUrlTree()),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}generateNgRouterState(t,n){return this.canceledNavigationResolution==="computed"?{navigationId:t,\u0275routerPageId:n}:{navigationId:t}}static \u0275fac=(()=>{let t;return function(i){return(t||(t=Nt(e)))(i||e)}})();static \u0275prov=y({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function _n(e,r){e.events.pipe(it(t=>t instanceof $||t instanceof P||t instanceof dt||t instanceof K),C(t=>t instanceof $||t instanceof K?0:(t instanceof P?t.code===T.Redirect||t.code===T.SupersededByNewNavigation:!1)?2:1),it(t=>t!==2),ft(1)).subscribe(()=>{r()})}var pt=(()=>{class e{get currentUrlTree(){return this.stateManager.getCurrentUrlTree()}get rawUrlTree(){return this.stateManager.getRawUrlTree()}disposed=!1;nonRouterCurrentEntryChangeSubscription;console=d(er);stateManager=d(ke);options=d(Ot,{optional:!0})||{};pendingTasks=d(Qn);urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred";navigationTransitions=d(Ri);urlSerializer=d(Ct);location=d(ae);urlHandlingStrategy=d(Ue);injector=d(Z);_events=new rt;get events(){return this._events}get routerState(){return this.stateManager.getRouterState()}navigated=!1;routeReuseStrategy=d(Si);injectorCleanup=d(wi,{optional:!0});onSameUrlNavigation=this.options.onSameUrlNavigation||"ignore";config=d(Zt,{optional:!0})?.flat()??[];componentInputBindingEnabled=!!d(Gt,{optional:!0});currentNavigation=this.navigationTransitions.currentNavigation.asReadonly();constructor(){this.resetConfig(this.config),this.navigationTransitions.setupNavigations(this).subscribe({error:t=>{}}),this.subscribeToNavigationEvents()}eventsSubscription=new kn;subscribeToNavigationEvents(){let t=this.navigationTransitions.events.subscribe(n=>{try{let i=this.navigationTransitions.currentTransition,o=R(this.navigationTransitions.currentNavigation);if(i!==null&&o!==null){if(this.stateManager.handleRouterEvent(n,o),n instanceof P&&n.code!==T.Redirect&&n.code!==T.SupersededByNewNavigation)this.navigated=!0;else if(n instanceof $)this.navigated=!0,this.injectorCleanup?.(this.routeReuseStrategy,this.routerState,this.config);else if(n instanceof Rt){let a=n.navigationBehaviorOptions,s=this.urlHandlingStrategy.merge(n.url,i.currentRawUrl),l=u({scroll:i.extras.scroll,browserUrl:i.extras.browserUrl,info:i.extras.info,skipLocationChange:i.extras.skipLocationChange,replaceUrl:i.extras.replaceUrl||this.urlUpdateStrategy==="eager"||ns(i.source)},a);this.scheduleNavigation(s,Ut,null,l,{resolve:i.resolve,reject:i.reject,promise:i.promise})}}ro(n)&&this._events.next(n)}catch(i){this.navigationTransitions.transitionAbortWithErrorSubject.next(i)}});this.eventsSubscription.add(t)}resetRootComponentType(t){this.routerState.root.component=t,this.navigationTransitions.rootComponentType=t}initialNavigation(){this.setUpLocationChangeListener(),this.navigationTransitions.hasRequestedNavigation||this.navigateToSyncWithBrowser(this.location.path(!0),Ut,this.stateManager.restoredState(),{replaceUrl:!0})}setUpLocationChangeListener(){this.nonRouterCurrentEntryChangeSubscription??=this.stateManager.registerNonRouterCurrentEntryChangeListener((t,n,i,o)=>{this.navigateToSyncWithBrowser(t,i,n,o)})}navigateToSyncWithBrowser(t,n,i,o){let a=i?.navigationId?i:null;if(i){let l=u({},i);delete l.navigationId,delete l.\u0275routerPageId,Object.keys(l).length!==0&&(o.state=l)}let s=this.parseUrl(t);this.scheduleNavigation(s,n,a,o).catch(l=>{this.disposed||this.injector.get(ie)(l)})}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return R(this.navigationTransitions.currentNavigation)}get lastSuccessfulNavigation(){return this.navigationTransitions.lastSuccessfulNavigation}resetConfig(t){this.config=t.map(Ln),this.navigated=!1}ngOnDestroy(){this.dispose()}dispose(){this._events.unsubscribe(),this.navigationTransitions.complete(),this.nonRouterCurrentEntryChangeSubscription?.unsubscribe(),this.nonRouterCurrentEntryChangeSubscription=void 0,this.disposed=!0,this.eventsSubscription.unsubscribe()}createUrlTree(t,n={}){let{relativeTo:i,queryParams:o,fragment:a,queryParamsHandling:s,preserveFragment:l}=n,c=l?this.currentUrlTree.fragment:a,h=null;switch(s??this.options.defaultQueryParamsHandling){case"merge":h=u(u({},this.currentUrlTree.queryParams),o);break;case"preserve":h=this.currentUrlTree.queryParams;break;default:h=o||null}h!==null&&(h=this.removeEmptyProps(h));let f;try{let b=i?i.snapshot:this.routerState.snapshot.root;f=Kr(b)}catch{(typeof t[0]!="string"||t[0][0]!=="/")&&(t=[]),f=this.currentUrlTree.root}return Gr(f,t,h,c??null,this.urlSerializer)}navigateByUrl(t,n={skipLocationChange:!1}){let i=tt(t)?t:this.parseUrl(t),o=this.urlHandlingStrategy.merge(i,this.rawUrlTree);return this.scheduleNavigation(o,Ut,null,n)}navigate(t,n={skipLocationChange:!1}){return os(t),this.navigateByUrl(this.createUrlTree(t,n),n)}serializeUrl(t){return this.urlSerializer.serialize(t)}parseUrl(t){try{return this.urlSerializer.parse(t)}catch{return this.console.warn(Vn(4018,!1)),this.urlSerializer.parse("/")}}isActive(t,n){let i;if(n===!0?i=u({},In):n===!1?i=u({},jt):i=u(u({},jt),n),tt(t))return hn(this.currentUrlTree,t,i);let o=this.parseUrl(t);return hn(this.currentUrlTree,o,i)}removeEmptyProps(t){return Object.entries(t).reduce((n,[i,o])=>(o!=null&&(n[i]=o),n),{})}scheduleNavigation(t,n,i,o,a){if(this.disposed)return Promise.resolve(!1);let s,l,c;a?(s=a.resolve,l=a.reject,c=a.promise):c=new Promise((f,b)=>{s=f,l=b});let h=this.pendingTasks.add();return _n(this,()=>{queueMicrotask(()=>this.pendingTasks.remove(h))}),this.navigationTransitions.handleNavigationRequest({source:n,restoredState:i,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,rawUrl:t,extras:o,resolve:s,reject:l,promise:c,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),c.catch(Promise.reject.bind(Promise))}static \u0275fac=function(n){return new(n||e)};static \u0275prov=y({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function os(e){for(let r=0;r<e.length;r++)if(e[r]==null)throw new S(4008,!1)}var as=(()=>{class e{router=d(pt);stateManager=d(ke);fragment=m("");queryParams=m({});path=m("");serializer=d(Ct);constructor(){this.updateState(),this.router.events?.subscribe(t=>{t instanceof $&&this.updateState()})}updateState(){let{fragment:t,root:n,queryParams:i}=this.stateManager.getCurrentUrlTree();this.fragment.set(t),this.queryParams.set(i),this.path.set(this.serializer.serialize(new E(n)))}static \u0275fac=function(n){return new(n||e)};static \u0275prov=y({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),je=(()=>{class e{router;route;tabIndexAttribute;renderer;el;locationStrategy;hrefAttributeValue=d(new fr("href"),{optional:!0});reactiveHref=pr(()=>this.isAnchorElement?this.computeHref(this._urlTree()):this.hrefAttributeValue);get href(){return R(this.reactiveHref)}set href(t){this.reactiveHref.set(t)}set target(t){this._target.set(t)}get target(){return R(this._target)}_target=m(void 0);set queryParams(t){this._queryParams.set(t)}get queryParams(){return R(this._queryParams)}_queryParams=m(void 0,{equal:()=>!1});set fragment(t){this._fragment.set(t)}get fragment(){return R(this._fragment)}_fragment=m(void 0);set queryParamsHandling(t){this._queryParamsHandling.set(t)}get queryParamsHandling(){return R(this._queryParamsHandling)}_queryParamsHandling=m(void 0);set state(t){this._state.set(t)}get state(){return R(this._state)}_state=m(void 0,{equal:()=>!1});set info(t){this._info.set(t)}get info(){return R(this._info)}_info=m(void 0,{equal:()=>!1});set relativeTo(t){this._relativeTo.set(t)}get relativeTo(){return R(this._relativeTo)}_relativeTo=m(void 0);set preserveFragment(t){this._preserveFragment.set(t)}get preserveFragment(){return R(this._preserveFragment)}_preserveFragment=m(!1);set skipLocationChange(t){this._skipLocationChange.set(t)}get skipLocationChange(){return R(this._skipLocationChange)}_skipLocationChange=m(!1);set replaceUrl(t){this._replaceUrl.set(t)}get replaceUrl(){return R(this._replaceUrl)}_replaceUrl=m(!1);isAnchorElement;onChanges=new rt;applicationErrorHandler=d(ie);options=d(Ot,{optional:!0});reactiveRouterState=d(as);constructor(t,n,i,o,a,s){this.router=t,this.route=n,this.tabIndexAttribute=i,this.renderer=o,this.el=a,this.locationStrategy=s;let l=a.nativeElement.tagName?.toLowerCase();this.isAnchorElement=l==="a"||l==="area"||!!(typeof customElements=="object"&&customElements.get(l)?.observedAttributes?.includes?.("href"))}setTabIndexIfNotOnNativeEl(t){this.tabIndexAttribute!=null||this.isAnchorElement||this.applyAttributeValue("tabindex",t)}ngOnChanges(t){this.onChanges.next(this)}routerLinkInput=m(null);set routerLink(t){t==null?(this.routerLinkInput.set(null),this.setTabIndexIfNotOnNativeEl(null)):(tt(t)?this.routerLinkInput.set(t):this.routerLinkInput.set(Array.isArray(t)?t:[t]),this.setTabIndexIfNotOnNativeEl("0"))}onClick(t,n,i,o,a){let s=this._urlTree();if(s===null||this.isAnchorElement&&(t!==0||n||i||o||a||typeof this.target=="string"&&this.target!="_self"))return!0;let l={skipLocationChange:this.skipLocationChange,replaceUrl:this.replaceUrl,state:this.state,info:this.info};return this.router.navigateByUrl(s,l)?.catch(c=>{this.applicationErrorHandler(c)}),!this.isAnchorElement}ngOnDestroy(){}applyAttributeValue(t,n){let i=this.renderer,o=this.el.nativeElement;n!==null?i.setAttribute(o,t,n):i.removeAttribute(o,t)}_urlTree=H(()=>{this.reactiveRouterState.path(),this._preserveFragment()&&this.reactiveRouterState.fragment();let t=i=>i==="preserve"||i==="merge";(t(this._queryParamsHandling())||t(this.options?.defaultQueryParamsHandling))&&this.reactiveRouterState.queryParams();let n=this.routerLinkInput();return n===null||!this.router.createUrlTree?null:tt(n)?n:this.router.createUrlTree(n,{relativeTo:this._relativeTo()!==void 0?this._relativeTo():this.route,queryParams:this._queryParams(),fragment:this._fragment(),queryParamsHandling:this._queryParamsHandling(),preserveFragment:this._preserveFragment()})},{equal:(t,n)=>this.computeHref(t)===this.computeHref(n)});get urlTree(){return R(this._urlTree)}computeHref(t){return t!==null&&this.locationStrategy?this.locationStrategy?.prepareExternalUrl(this.router.serializeUrl(t))??"":null}static \u0275fac=function(n){return new(n||e)(A(pt),A(G),Zn("tabindex"),A(tn),A(Xe),A(vr))};static \u0275dir=st({type:e,selectors:[["","routerLink",""]],hostVars:2,hostBindings:function(n,i){n&1&&ar("click",function(a){return i.onClick(a.button,a.ctrlKey,a.shiftKey,a.altKey,a.metaKey)}),n&2&&or("href",i.reactiveHref(),Yn)("target",i._target())},inputs:{target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",state:"state",info:"info",relativeTo:"relativeTo",preserveFragment:[2,"preserveFragment","preserveFragment",F],skipLocationChange:[2,"skipLocationChange","skipLocationChange",F],replaceUrl:[2,"replaceUrl","replaceUrl",F],routerLink:"routerLink"},features:[Mt]})}return e})(),ls=(()=>{class e{router;element;renderer;cdr;links;classes=[];routerEventsSubscription;linkInputChangesSubscription;_isActive=!1;get isActive(){return this._isActive}routerLinkActiveOptions={exact:!1};ariaCurrentWhenActive;isActiveChange=new ot;link=d(je,{optional:!0});constructor(t,n,i,o){this.router=t,this.element=n,this.renderer=i,this.cdr=o,this.routerEventsSubscription=t.events.subscribe(a=>{a instanceof $&&this.update()})}ngAfterContentInit(){g(this.links.changes,g(null)).pipe(We()).subscribe(t=>{this.update(),this.subscribeToEachLinkOnChanges()})}subscribeToEachLinkOnChanges(){this.linkInputChangesSubscription?.unsubscribe();let t=[...this.links.toArray(),this.link].filter(n=>!!n).map(n=>n.onChanges);this.linkInputChangesSubscription=O(t).pipe(We()).subscribe(n=>{this._isActive!==this.isLinkActive(this.router)(n)&&this.update()})}set routerLinkActive(t){let n=Array.isArray(t)?t:t.split(" ");this.classes=n.filter(i=>!!i)}ngOnChanges(t){this.update()}ngOnDestroy(){this.routerEventsSubscription.unsubscribe(),this.linkInputChangesSubscription?.unsubscribe()}update(){!this.links||!this.router.navigated||queueMicrotask(()=>{let t=this.hasActiveLinks();this.classes.forEach(n=>{t?this.renderer.addClass(this.element.nativeElement,n):this.renderer.removeClass(this.element.nativeElement,n)}),t&&this.ariaCurrentWhenActive!==void 0?this.renderer.setAttribute(this.element.nativeElement,"aria-current",this.ariaCurrentWhenActive.toString()):this.renderer.removeAttribute(this.element.nativeElement,"aria-current"),this._isActive!==t&&(this._isActive=t,this.cdr.markForCheck(),this.isActiveChange.emit(t))})}isLinkActive(t){let n=cs(this.routerLinkActiveOptions)?this.routerLinkActiveOptions:this.routerLinkActiveOptions.exact??!1?u({},In):u({},jt);return i=>{let o=i.urlTree;return o?R(En(o,t,n)):!1}}hasActiveLinks(){let t=this.isLinkActive(this.router);return this.link&&t(this.link)||this.links.some(t)}static \u0275fac=function(n){return new(n||e)(A(pt),A(Xe),A(tn),A(se))};static \u0275dir=st({type:e,selectors:[["","routerLinkActive",""]],contentQueries:function(n,i,o){if(n&1&&lr(o,je,5),n&2){let a;cr(a=ur())&&(i.links=a)}},inputs:{routerLinkActiveOptions:"routerLinkActiveOptions",ariaCurrentWhenActive:"ariaCurrentWhenActive",routerLinkActive:"routerLinkActive"},outputs:{isActiveChange:"isActiveChange"},exportAs:["routerLinkActive"],features:[Mt]})}return e})();function cs(e){let r=e;return!!(r.paths||r.matrixParams||r.queryParams||r.fragment)}var us=new I("");function ds(e,...r){return Kn([{provide:Zt,multi:!0,useValue:e},[],{provide:G,useFactory:hs},{provide:rr,multi:!0,useFactory:fs},r.map(t=>t.\u0275providers)])}function hs(){return d(pt).routerState.root}function ps(e,r){return{\u0275kind:e,\u0275providers:r}}function fs(){let e=d(Gn);return r=>{let t=e.get(ir);if(r!==t.components[0])return;let n=e.get(pt),i=e.get(gs);e.get(vs)===1&&n.initialNavigation(),e.get(ms,null,{optional:!0})?.setUpPreloading(),e.get(us,null,{optional:!0})?.init(),n.resetRootComponentType(t.componentTypes[0]),i.closed||(i.next(),i.complete(),i.unsubscribe())}}var gs=new I("",{factory:()=>new rt}),vs=new I("",{factory:()=>1});var ms=new I("");function ys(){return ps(8,[Mn,{provide:Gt,useExisting:Mn}])}var Ti=`
1
+ import{$ as ot,A as Q,Aa as tr,B as We,C as qn,D as k,Da as er,E as ne,Ea as nr,F as U,G as S,Ga as rr,H as Vn,Ha as ir,Hb as dr,J as y,K as Ge,Ka as or,L as Kn,Lc as Ir,M as I,N as re,O as d,Oc as Er,P as Wn,Pc as Or,Q as Z,R as x,Rb as hr,Sb as R,Tb as H,Tc as Ar,Ub as pr,Vb as fr,Wa as sr,Wc as on,X as Gn,Xb as at,Y as Qe,Z as Ze,_ as Qn,a as Un,aa as Ye,b as jn,ba as ie,bc as se,c as $n,cc as F,d as rt,da as m,dc as gt,e as L,ea as Je,f as _,fa as Mt,fb as ar,fc as gr,fd as ue,ga as Nt,h as O,ha as Zn,hc as vr,i as g,ia as Xe,ic as ae,j as Hn,k as qe,kb as lr,l as Fn,ma as Yn,mb as cr,n as C,nb as ur,o as Ve,p as V,q as Ke,qc as mr,r as zn,ra as tn,s as Xt,sa as A,ta as oe,ua as Jn,v as it,va as en,w as te,wa as Xn,x as ee,xa as nn,xc as yr,y as ft,ya as st,z as Bn,zc as Cr}from"./chunk-J3YWUNFO.js";import{D as Y,M as Tr,a as Lt,h as br,i as Rr,j as wr,m as z,p as rn,r as le,s as Sr,u as ce}from"./chunk-H2J55DNK.js";import{a as u,b as N}from"./chunk-Q7L6LLAK.js";var p="primary",Wt=Symbol("RouteTitle"),un=class{params;constructor(r){this.params=r||{}}has(r){return Object.prototype.hasOwnProperty.call(this.params,r)}get(r){if(this.has(r)){let t=this.params[r];return Array.isArray(t)?t[0]:t}return null}getAll(r){if(this.has(r)){let t=this.params[r];return Array.isArray(t)?t:[t]}return[]}get keys(){return Object.keys(this.params)}};function ct(e){return new un(e)}function sn(e,r,t){for(let n=0;n<e.length;n++){let i=e[n],o=r[n];if(i[0]===":")t[i.substring(1)]=o;else if(i!==o.path)return!1}return!0}function Pr(e,r,t){let n=t.path.split("/"),i=n.indexOf("**");if(i===-1){if(n.length>e.length||t.pathMatch==="full"&&(r.hasChildren()||n.length<e.length))return null;let l={},c=e.slice(0,n.length);return sn(n,c,l)?{consumed:c,posParams:l}:null}if(i!==n.lastIndexOf("**"))return null;let o=n.slice(0,i),a=n.slice(i+1);if(o.length+a.length>e.length||t.pathMatch==="full"&&r.hasChildren()&&t.path!=="**")return null;let s={};return!sn(o,e.slice(0,o.length),s)||!sn(a,e.slice(e.length-a.length),s)?null:{consumed:e,posParams:s}}function ve(e){return new Promise((r,t)=>{e.pipe(Q()).subscribe({next:n=>r(n),error:n=>t(n)})})}function _i(e,r){if(e.length!==r.length)return!1;for(let t=0;t<e.length;++t)if(!B(e[t],r[t]))return!1;return!0}function B(e,r){let t=e?dn(e):void 0,n=r?dn(r):void 0;if(!t||!n||t.length!=n.length)return!1;let i;for(let o=0;o<t.length;o++)if(i=t[o],!kr(e[i],r[i]))return!1;return!0}function dn(e){return[...Object.keys(e),...Object.getOwnPropertySymbols(e)]}function kr(e,r){if(Array.isArray(e)&&Array.isArray(r)){if(e.length!==r.length)return!1;let t=[...e].sort(),n=[...r].sort();return t.every((i,o)=>n[o]===i)}else return e===r}function xi(e){return e.length>0?e[e.length-1]:null}function ht(e){return qe(e)?e:nr(e)?O(Promise.resolve(e)):g(e)}function Ur(e){return qe(e)?ve(e):Promise.resolve(e)}var Pi={exact:$r,subset:Hr},jr={exact:ki,subset:Ui,ignored:()=>!0},In={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},jt={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"};function En(e,r,t){let n=e instanceof E?e:r.parseUrl(e);return H(()=>hn(r.lastSuccessfulNavigation()?.finalUrl??new E,n,u(u({},jt),t)))}function hn(e,r,t){return Pi[t.paths](e.root,r.root,t.matrixParams)&&jr[t.queryParams](e.queryParams,r.queryParams)&&!(t.fragment==="exact"&&e.fragment!==r.fragment)}function ki(e,r){return B(e,r)}function $r(e,r,t){if(!lt(e.segments,r.segments)||!pe(e.segments,r.segments,t)||e.numberOfChildren!==r.numberOfChildren)return!1;for(let n in r.children)if(!e.children[n]||!$r(e.children[n],r.children[n],t))return!1;return!0}function Ui(e,r){return Object.keys(r).length<=Object.keys(e).length&&Object.keys(r).every(t=>kr(e[t],r[t]))}function Hr(e,r,t){return Fr(e,r,r.segments,t)}function Fr(e,r,t,n){if(e.segments.length>t.length){let i=e.segments.slice(0,t.length);return!(!lt(i,t)||r.hasChildren()||!pe(i,t,n))}else if(e.segments.length===t.length){if(!lt(e.segments,t)||!pe(e.segments,t,n))return!1;for(let i in r.children)if(!e.children[i]||!Hr(e.children[i],r.children[i],n))return!1;return!0}else{let i=t.slice(0,e.segments.length),o=t.slice(e.segments.length);return!lt(e.segments,i)||!pe(e.segments,i,n)||!e.children[p]?!1:Fr(e.children[p],r,o,n)}}function pe(e,r,t){return r.every((n,i)=>jr[t](e[i].parameters,n.parameters))}var E=class{root;queryParams;fragment;_queryParamMap;constructor(r=new v([],{}),t={},n=null){this.root=r,this.queryParams=t,this.fragment=n}get queryParamMap(){return this._queryParamMap??=ct(this.queryParams),this._queryParamMap}toString(){return Hi.serialize(this)}},v=class{segments;children;parent=null;constructor(r,t){this.segments=r,this.children=t,Object.values(t).forEach(n=>n.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return fe(this)}},J=class{path;parameters;_parameterMap;constructor(r,t){this.path=r,this.parameters=t}get parameterMap(){return this._parameterMap??=ct(this.parameters),this._parameterMap}toString(){return Br(this)}};function ji(e,r){return lt(e,r)&&e.every((t,n)=>B(t.parameters,r[n].parameters))}function lt(e,r){return e.length!==r.length?!1:e.every((t,n)=>t.path===r[n].path)}function $i(e,r){let t=[];return Object.entries(e.children).forEach(([n,i])=>{n===p&&(t=t.concat(r(i,n)))}),Object.entries(e.children).forEach(([n,i])=>{n!==p&&(t=t.concat(r(i,n)))}),t}var Ct=(()=>{class e{static \u0275fac=function(n){return new(n||e)};static \u0275prov=y({token:e,factory:()=>new X,providedIn:"root"})}return e})(),X=class{parse(r){let t=new fn(r);return new E(t.parseRootSegment(),t.parseQueryParams(),t.parseFragment())}serialize(r){let t=`/${_t(r.root,!0)}`,n=Bi(r.queryParams),i=typeof r.fragment=="string"?`#${Fi(r.fragment)}`:"";return`${t}${n}${i}`}},Hi=new X;function fe(e){return e.segments.map(r=>Br(r)).join("/")}function _t(e,r){if(!e.hasChildren())return fe(e);if(r){let t=e.children[p]?_t(e.children[p],!1):"",n=[];return Object.entries(e.children).forEach(([i,o])=>{i!==p&&n.push(`${i}:${_t(o,!1)}`)}),n.length>0?`${t}(${n.join("//")})`:t}else{let t=$i(e,(n,i)=>i===p?[_t(e.children[p],!1)]:[`${i}:${_t(n,!1)}`]);return Object.keys(e.children).length===1&&e.children[p]!=null?`${fe(e)}/${t[0]}`:`${fe(e)}/(${t.join("//")})`}}function zr(e){return encodeURIComponent(e).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function de(e){return zr(e).replace(/%3B/gi,";")}function Fi(e){return encodeURI(e)}function pn(e){return zr(e).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function ge(e){return decodeURIComponent(e)}function Dr(e){return ge(e.replace(/\+/g,"%20"))}function Br(e){return`${pn(e.path)}${zi(e.parameters)}`}function zi(e){return Object.entries(e).map(([r,t])=>`;${pn(r)}=${pn(t)}`).join("")}function Bi(e){let r=Object.entries(e).map(([t,n])=>Array.isArray(n)?n.map(i=>`${de(t)}=${de(i)}`).join("&"):`${de(t)}=${de(n)}`).filter(t=>t);return r.length?`?${r.join("&")}`:""}var qi=/^[^\/()?;#]+/;function an(e){let r=e.match(qi);return r?r[0]:""}var Vi=/^[^\/()?;=#]+/;function Ki(e){let r=e.match(Vi);return r?r[0]:""}var Wi=/^[^=?&#]+/;function Gi(e){let r=e.match(Wi);return r?r[0]:""}var Qi=/^[^&#]+/;function Zi(e){let r=e.match(Qi);return r?r[0]:""}var fn=class{url;remaining;constructor(r){this.url=r,this.remaining=r}parseRootSegment(){for(;this.consumeOptional("/"););return this.remaining===""||this.peekStartsWith("?")||this.peekStartsWith("#")?new v([],{}):new v([],this.parseChildren())}parseQueryParams(){let r={};if(this.consumeOptional("?"))do this.parseQueryParam(r);while(this.consumeOptional("&"));return r}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(r=0){if(r>50)throw new S(4010,!1);if(this.remaining==="")return{};this.consumeOptional("/");let t=[];for(this.peekStartsWith("(")||t.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),t.push(this.parseSegment());let n={};this.peekStartsWith("/(")&&(this.capture("/"),n=this.parseParens(!0,r));let i={};return this.peekStartsWith("(")&&(i=this.parseParens(!1,r)),(t.length>0||Object.keys(n).length>0)&&(i[p]=new v(t,n)),i}parseSegment(){let r=an(this.remaining);if(r===""&&this.peekStartsWith(";"))throw new S(4009,!1);return this.capture(r),new J(ge(r),this.parseMatrixParams())}parseMatrixParams(){let r={};for(;this.consumeOptional(";");)this.parseParam(r);return r}parseParam(r){let t=Ki(this.remaining);if(!t)return;this.capture(t);let n="";if(this.consumeOptional("=")){let i=an(this.remaining);i&&(n=i,this.capture(n))}r[ge(t)]=ge(n)}parseQueryParam(r){let t=Gi(this.remaining);if(!t)return;this.capture(t);let n="";if(this.consumeOptional("=")){let a=Zi(this.remaining);a&&(n=a,this.capture(n))}let i=Dr(t),o=Dr(n);if(r.hasOwnProperty(i)){let a=r[i];Array.isArray(a)||(a=[a],r[i]=a),a.push(o)}else r[i]=o}parseParens(r,t){let n={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){let i=an(this.remaining),o=this.remaining[i.length];if(o!=="/"&&o!==")"&&o!==";")throw new S(4010,!1);let a;i.indexOf(":")>-1?(a=i.slice(0,i.indexOf(":")),this.capture(a),this.capture(":")):r&&(a=p);let s=this.parseChildren(t+1);n[a??p]=Object.keys(s).length===1&&s[p]?s[p]:new v([],s),this.consumeOptional("//")}return n}peekStartsWith(r){return this.remaining.startsWith(r)}consumeOptional(r){return this.peekStartsWith(r)?(this.remaining=this.remaining.substring(r.length),!0):!1}capture(r){if(!this.consumeOptional(r))throw new S(4011,!1)}};function qr(e){return e.segments.length>0?new v([],{[p]:e}):e}function Vr(e){let r={};for(let[n,i]of Object.entries(e.children)){let o=Vr(i);if(n===p&&o.segments.length===0&&o.hasChildren())for(let[a,s]of Object.entries(o.children))r[a]=s;else(o.segments.length>0||o.hasChildren())&&(r[n]=o)}let t=new v(e.segments,r);return Yi(t)}function Yi(e){if(e.numberOfChildren===1&&e.children[p]){let r=e.children[p];return new v(e.segments.concat(r.segments),r.children)}return e}function tt(e){return e instanceof E}function Kr(e,r,t=null,n=null,i=new X){let o=Wr(e);return Gr(o,r,t,n,i)}function Wr(e){let r;function t(o){let a={};for(let l of o.children){let c=t(l);a[l.outlet]=c}let s=new v(o.url,a);return o===e&&(r=s),s}let n=t(e.root),i=qr(n);return r??i}function Gr(e,r,t,n,i){let o=e;for(;o.parent;)o=o.parent;if(r.length===0)return ln(o,o,o,t,n,i);let a=Ji(r);if(a.toRoot())return ln(o,o,new v([],{}),t,n,i);let s=Xi(a,o,e),l=s.processChildren?Pt(s.segmentGroup,s.index,a.commands):Zr(s.segmentGroup,s.index,a.commands);return ln(o,s.segmentGroup,l,t,n,i)}function me(e){return typeof e=="object"&&e!=null&&!e.outlets&&!e.segmentPath}function $t(e){return typeof e=="object"&&e!=null&&e.outlets}function Mr(e,r,t){e||="\u0275";let n=new E;return n.queryParams={[e]:r},t.parse(t.serialize(n)).queryParams[e]}function ln(e,r,t,n,i,o){let a={};for(let[c,h]of Object.entries(n??{}))a[c]=Array.isArray(h)?h.map(f=>Mr(c,f,o)):Mr(c,h,o);let s;e===r?s=t:s=Qr(e,r,t);let l=qr(Vr(s));return new E(l,a,i)}function Qr(e,r,t){let n={};return Object.entries(e.children).forEach(([i,o])=>{o===r?n[i]=t:n[i]=Qr(o,r,t)}),new v(e.segments,n)}var ye=class{isAbsolute;numberOfDoubleDots;commands;constructor(r,t,n){if(this.isAbsolute=r,this.numberOfDoubleDots=t,this.commands=n,r&&n.length>0&&me(n[0]))throw new S(4003,!1);let i=n.find($t);if(i&&i!==xi(n))throw new S(4004,!1)}toRoot(){return this.isAbsolute&&this.commands.length===1&&this.commands[0]=="/"}};function Ji(e){if(typeof e[0]=="string"&&e.length===1&&e[0]==="/")return new ye(!0,0,e);let r=0,t=!1,n=e.reduce((i,o,a)=>{if(typeof o=="object"&&o!=null){if(o.outlets){let s={};return Object.entries(o.outlets).forEach(([l,c])=>{s[l]=typeof c=="string"?c.split("/"):c}),[...i,{outlets:s}]}if(o.segmentPath)return[...i,o.segmentPath]}return typeof o!="string"?[...i,o]:a===0?(o.split("/").forEach((s,l)=>{l==0&&s==="."||(l==0&&s===""?t=!0:s===".."?r++:s!=""&&i.push(s))}),i):[...i,o]},[]);return new ye(t,r,n)}var mt=class{segmentGroup;processChildren;index;constructor(r,t,n){this.segmentGroup=r,this.processChildren=t,this.index=n}};function Xi(e,r,t){if(e.isAbsolute)return new mt(r,!0,0);if(!t)return new mt(r,!1,NaN);if(t.parent===null)return new mt(t,!0,0);let n=me(e.commands[0])?0:1,i=t.segments.length-1+n;return to(t,i,e.numberOfDoubleDots)}function to(e,r,t){let n=e,i=r,o=t;for(;o>i;){if(o-=i,n=n.parent,!n)throw new S(4005,!1);i=n.segments.length}return new mt(n,!1,i-o)}function eo(e){return $t(e[0])?e[0].outlets:{[p]:e}}function Zr(e,r,t){if(e??=new v([],{}),e.segments.length===0&&e.hasChildren())return Pt(e,r,t);let n=no(e,r,t),i=t.slice(n.commandIndex);if(n.match&&n.pathIndex<e.segments.length){let o=new v(e.segments.slice(0,n.pathIndex),{});return o.children[p]=new v(e.segments.slice(n.pathIndex),e.children),Pt(o,0,i)}else return n.match&&i.length===0?new v(e.segments,{}):n.match&&!e.hasChildren()?gn(e,r,t):n.match?Pt(e,0,i):gn(e,r,t)}function Pt(e,r,t){if(t.length===0)return new v(e.segments,{});{let n=eo(t),i={};if(Object.keys(n).some(o=>o!==p)&&e.children[p]&&e.numberOfChildren===1&&e.children[p].segments.length===0){let o=Pt(e.children[p],r,t);return new v(e.segments,o.children)}return Object.entries(n).forEach(([o,a])=>{typeof a=="string"&&(a=[a]),a!==null&&(i[o]=Zr(e.children[o],r,a))}),Object.entries(e.children).forEach(([o,a])=>{n[o]===void 0&&(i[o]=a)}),new v(e.segments,i)}}function no(e,r,t){let n=0,i=r,o={match:!1,pathIndex:0,commandIndex:0};for(;i<e.segments.length;){if(n>=t.length)return o;let a=e.segments[i],s=t[n];if($t(s))break;let l=`${s}`,c=n<t.length-1?t[n+1]:null;if(i>0&&l===void 0)break;if(l&&c&&typeof c=="object"&&c.outlets===void 0){if(!Lr(l,c,a))return o;n+=2}else{if(!Lr(l,{},a))return o;n++}i++}return{match:!0,pathIndex:i,commandIndex:n}}function gn(e,r,t){let n=e.segments.slice(0,r),i=0;for(;i<t.length;){let o=t[i];if($t(o)){let l=ro(o.outlets);return new v(n,l)}if(i===0&&me(t[0])){let l=e.segments[r];n.push(new J(l.path,Nr(t[0]))),i++;continue}let a=$t(o)?o.outlets[p]:`${o}`,s=i<t.length-1?t[i+1]:null;a&&s&&me(s)?(n.push(new J(a,Nr(s))),i+=2):(n.push(new J(a,{})),i++)}return new v(n,{})}function ro(e){let r={};return Object.entries(e).forEach(([t,n])=>{typeof n=="string"&&(n=[n]),n!==null&&(r[t]=gn(new v([],{}),0,n))}),r}function Nr(e){let r={};return Object.entries(e).forEach(([t,n])=>r[t]=`${n}`),r}function Lr(e,r,t){return e==t.path&&B(r,t.parameters)}var kt="imperative",w=(function(e){return e[e.NavigationStart=0]="NavigationStart",e[e.NavigationEnd=1]="NavigationEnd",e[e.NavigationCancel=2]="NavigationCancel",e[e.NavigationError=3]="NavigationError",e[e.RoutesRecognized=4]="RoutesRecognized",e[e.ResolveStart=5]="ResolveStart",e[e.ResolveEnd=6]="ResolveEnd",e[e.GuardsCheckStart=7]="GuardsCheckStart",e[e.GuardsCheckEnd=8]="GuardsCheckEnd",e[e.RouteConfigLoadStart=9]="RouteConfigLoadStart",e[e.RouteConfigLoadEnd=10]="RouteConfigLoadEnd",e[e.ChildActivationStart=11]="ChildActivationStart",e[e.ChildActivationEnd=12]="ChildActivationEnd",e[e.ActivationStart=13]="ActivationStart",e[e.ActivationEnd=14]="ActivationEnd",e[e.Scroll=15]="Scroll",e[e.NavigationSkipped=16]="NavigationSkipped",e})(w||{}),M=class{id;url;constructor(r,t){this.id=r,this.url=t}},ut=class extends M{type=w.NavigationStart;navigationTrigger;restoredState;constructor(r,t,n="imperative",i=null){super(r,t),this.navigationTrigger=n,this.restoredState=i}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}},$=class extends M{urlAfterRedirects;type=w.NavigationEnd;constructor(r,t,n){super(r,t),this.urlAfterRedirects=n}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}},T=(function(e){return e[e.Redirect=0]="Redirect",e[e.SupersededByNewNavigation=1]="SupersededByNewNavigation",e[e.NoDataFromResolver=2]="NoDataFromResolver",e[e.GuardRejected=3]="GuardRejected",e[e.Aborted=4]="Aborted",e})(T||{}),Ht=(function(e){return e[e.IgnoredSameUrlNavigation=0]="IgnoredSameUrlNavigation",e[e.IgnoredByUrlHandlingStrategy=1]="IgnoredByUrlHandlingStrategy",e})(Ht||{}),P=class extends M{reason;code;type=w.NavigationCancel;constructor(r,t,n,i){super(r,t),this.reason=n,this.code=i}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}};function Yr(e){return e instanceof P&&(e.code===T.Redirect||e.code===T.SupersededByNewNavigation)}var W=class extends M{reason;code;type=w.NavigationSkipped;constructor(r,t,n,i){super(r,t),this.reason=n,this.code=i}},dt=class extends M{error;target;type=w.NavigationError;constructor(r,t,n,i){super(r,t),this.error=n,this.target=i}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}},Ft=class extends M{urlAfterRedirects;state;type=w.RoutesRecognized;constructor(r,t,n,i){super(r,t),this.urlAfterRedirects=n,this.state=i}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},be=class extends M{urlAfterRedirects;state;type=w.GuardsCheckStart;constructor(r,t,n,i){super(r,t),this.urlAfterRedirects=n,this.state=i}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},Re=class extends M{urlAfterRedirects;state;shouldActivate;type=w.GuardsCheckEnd;constructor(r,t,n,i,o){super(r,t),this.urlAfterRedirects=n,this.state=i,this.shouldActivate=o}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}},we=class extends M{urlAfterRedirects;state;type=w.ResolveStart;constructor(r,t,n,i){super(r,t),this.urlAfterRedirects=n,this.state=i}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},Se=class extends M{urlAfterRedirects;state;type=w.ResolveEnd;constructor(r,t,n,i){super(r,t),this.urlAfterRedirects=n,this.state=i}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},Te=class{route;type=w.RouteConfigLoadStart;constructor(r){this.route=r}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}},Ce=class{route;type=w.RouteConfigLoadEnd;constructor(r){this.route=r}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}},Ie=class{snapshot;type=w.ChildActivationStart;constructor(r){this.snapshot=r}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},Ee=class{snapshot;type=w.ChildActivationEnd;constructor(r){this.snapshot=r}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},Oe=class{snapshot;type=w.ActivationStart;constructor(r){this.snapshot=r}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},Ae=class{snapshot;type=w.ActivationEnd;constructor(r){this.snapshot=r}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}};var bt=class{},zt=class{},Rt=class{url;navigationBehaviorOptions;constructor(r,t){this.url=r,this.navigationBehaviorOptions=t}};function io(e){return!(e instanceof bt)&&!(e instanceof Rt)&&!(e instanceof zt)}var De=class{rootInjector;outlet=null;route=null;children;attachRef=null;get injector(){return this.route?.snapshot._environmentInjector??this.rootInjector}constructor(r){this.rootInjector=r,this.children=new It(this.rootInjector)}},It=(()=>{class e{rootInjector;contexts=new Map;constructor(t){this.rootInjector=t}onChildOutletCreated(t,n){let i=this.getOrCreateContext(t);i.outlet=n,this.contexts.set(t,i)}onChildOutletDestroyed(t){let n=this.getContext(t);n&&(n.outlet=null,n.attachRef=null)}onOutletDeactivated(){let t=this.contexts;return this.contexts=new Map,t}onOutletReAttached(t){this.contexts=t}getOrCreateContext(t){let n=this.getContext(t);return n||(n=new De(this.rootInjector),this.contexts.set(t,n)),n}getContext(t){return this.contexts.get(t)||null}static \u0275fac=function(n){return new(n||e)(re(Z))};static \u0275prov=y({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),Me=class{_root;constructor(r){this._root=r}get root(){return this._root.value}parent(r){let t=this.pathFromRoot(r);return t.length>1?t[t.length-2]:null}children(r){let t=vn(r,this._root);return t?t.children.map(n=>n.value):[]}firstChild(r){let t=vn(r,this._root);return t&&t.children.length>0?t.children[0].value:null}siblings(r){let t=mn(r,this._root);return t.length<2?[]:t[t.length-2].children.map(i=>i.value).filter(i=>i!==r)}pathFromRoot(r){return mn(r,this._root).map(t=>t.value)}};function vn(e,r){if(e===r.value)return r;for(let t of r.children){let n=vn(e,t);if(n)return n}return null}function mn(e,r){if(e===r.value)return[r];for(let t of r.children){let n=mn(e,t);if(n.length)return n.unshift(r),n}return[]}var D=class{value;children;constructor(r,t){this.value=r,this.children=t}toString(){return`TreeNode(${this.value})`}};function vt(e){let r={};return e&&e.children.forEach(t=>r[t.value.outlet]=t),r}var Bt=class extends Me{snapshot;constructor(r,t){super(r),this.snapshot=t,An(this,r)}toString(){return this.snapshot.toString()}};function Jr(e,r){let t=oo(e,r),n=new L([new J("",{})]),i=new L({}),o=new L({}),a=new L({}),s=new L(""),l=new G(n,i,a,s,o,p,e,t.root);return l.snapshot=t.root,new Bt(new D(l,[]),t)}function oo(e,r){let t={},n={},i={},a=new wt([],t,i,"",n,p,e,null,{},r);return new qt("",new D(a,[]))}var G=class{urlSubject;paramsSubject;queryParamsSubject;fragmentSubject;dataSubject;outlet;component;snapshot;_futureSnapshot;_routerState;_paramMap;_queryParamMap;title;url;params;queryParams;fragment;data;constructor(r,t,n,i,o,a,s,l){this.urlSubject=r,this.paramsSubject=t,this.queryParamsSubject=n,this.fragmentSubject=i,this.dataSubject=o,this.outlet=a,this.component=s,this._futureSnapshot=l,this.title=this.dataSubject?.pipe(C(c=>c[Wt]))??g(void 0),this.url=r,this.params=t,this.queryParams=n,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(C(r=>ct(r))),this._paramMap}get queryParamMap(){return this._queryParamMap??=this.queryParams.pipe(C(r=>ct(r))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}};function On(e,r,t="emptyOnly"){let n,{routeConfig:i}=e;return r!==null&&(t==="always"||i?.path===""||!r.component&&!r.routeConfig?.loadComponent)?n={params:u(u({},r.params),e.params),data:u(u({},r.data),e.data),resolve:u(u(u(u({},e.data),r.data),i?.data),e._resolvedData)}:n={params:u({},e.params),data:u({},e.data),resolve:u(u({},e.data),e._resolvedData??{})},i&&ti(i)&&(n.resolve[Wt]=i.title),n}var wt=class{url;params;queryParams;fragment;data;outlet;component;routeConfig;_resolve;_resolvedData;_routerState;_paramMap;_queryParamMap;_environmentInjector;get title(){return this.data?.[Wt]}constructor(r,t,n,i,o,a,s,l,c,h){this.url=r,this.params=t,this.queryParams=n,this.fragment=i,this.data=o,this.outlet=a,this.component=s,this.routeConfig=l,this._resolve=c,this._environmentInjector=h}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap??=ct(this.params),this._paramMap}get queryParamMap(){return this._queryParamMap??=ct(this.queryParams),this._queryParamMap}toString(){let r=this.url.map(n=>n.toString()).join("/"),t=this.routeConfig?this.routeConfig.path:"";return`Route(url:'${r}', path:'${t}')`}},qt=class extends Me{url;constructor(r,t){super(t),this.url=r,An(this,t)}toString(){return Xr(this._root)}};function An(e,r){r.value._routerState=e,r.children.forEach(t=>An(e,t))}function Xr(e){let r=e.children.length>0?` { ${e.children.map(Xr).join(", ")} } `:"";return`${e.value}${r}`}function cn(e){if(e.snapshot){let r=e.snapshot,t=e._futureSnapshot;e.snapshot=t,B(r.queryParams,t.queryParams)||e.queryParamsSubject.next(t.queryParams),r.fragment!==t.fragment&&e.fragmentSubject.next(t.fragment),B(r.params,t.params)||e.paramsSubject.next(t.params),_i(r.url,t.url)||e.urlSubject.next(t.url),B(r.data,t.data)||e.dataSubject.next(t.data)}else e.snapshot=e._futureSnapshot,e.dataSubject.next(e._futureSnapshot.data)}function yn(e,r){let t=B(e.params,r.params)&&ji(e.url,r.url),n=!e.parent!=!r.parent;return t&&!n&&(!e.parent||yn(e.parent,r.parent))}function ti(e){return typeof e.title=="string"||e.title===null}var ei=new I(""),Dn=(()=>{class e{activated=null;get activatedComponentRef(){return this.activated}_activatedRoute=null;name=p;activateEvents=new ot;deactivateEvents=new ot;attachEvents=new ot;detachEvents=new ot;routerOutletData=at();parentContexts=d(It);location=d(oe);changeDetector=d(se);inputBinder=d(Gt,{optional:!0});supportsBindingToComponentInputs=!0;ngOnChanges(t){if(t.name){let{firstChange:n,previousValue:i}=t.name;if(n)return;this.isTrackedInParentContexts(i)&&(this.deactivate(),this.parentContexts.onChildOutletDestroyed(i)),this.initializeOutletWithName()}}ngOnDestroy(){this.isTrackedInParentContexts(this.name)&&this.parentContexts.onChildOutletDestroyed(this.name),this.inputBinder?.unsubscribeFromRouteData(this)}isTrackedInParentContexts(t){return this.parentContexts.getContext(t)?.outlet===this}ngOnInit(){this.initializeOutletWithName()}initializeOutletWithName(){if(this.parentContexts.onChildOutletCreated(this.name,this),this.activated)return;let t=this.parentContexts.getContext(this.name);t?.route&&(t.attachRef?this.attach(t.attachRef,t.route):this.activateWith(t.route,t.injector))}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new S(4012,!1);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new S(4012,!1);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new S(4012,!1);this.location.detach();let t=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(t.instance),t}attach(t,n){this.activated=t,this._activatedRoute=n,this.location.insert(t.hostView),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.attachEvents.emit(t.instance)}deactivate(){if(this.activated){let t=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(t)}}activateWith(t,n){if(this.isActivated)throw new S(4013,!1);this._activatedRoute=t;let i=this.location,a=t.snapshot.component,s=this.parentContexts.getOrCreateContext(this.name).children,l=new bn(t,s,i.injector,this.routerOutletData);this.activated=i.createComponent(a,{index:i.length,injector:l,environmentInjector:n}),this.changeDetector.markForCheck(),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.activateEvents.emit(this.activated.instance)}static \u0275fac=function(n){return new(n||e)};static \u0275dir=st({type:e,selectors:[["router-outlet"]],inputs:{name:"name",routerOutletData:[1,"routerOutletData"]},outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"],features:[Mt]})}return e})(),bn=class{route;childContexts;parent;outletData;constructor(r,t,n,i){this.route=r,this.childContexts=t,this.parent=n,this.outletData=i}get(r,t){return r===G?this.route:r===It?this.childContexts:r===ei?this.outletData:this.parent.get(r,t)}},Gt=new I(""),Mn=(()=>{class e{outletDataSubscriptions=new Map;bindActivatedRouteToOutletComponent(t){this.unsubscribeFromRouteData(t),this.subscribeToRouteData(t)}unsubscribeFromRouteData(t){this.outletDataSubscriptions.get(t)?.unsubscribe(),this.outletDataSubscriptions.delete(t)}subscribeToRouteData(t){let{activatedRoute:n}=t,i=Ve([n.queryParams,n.params,n.data]).pipe(k(([o,a,s],l)=>(s=u(u(u({},o),a),s),l===0?g(s):Promise.resolve(s)))).subscribe(o=>{if(!t.isActivated||!t.activatedComponentRef||t.activatedRoute!==n||n.component===null){this.unsubscribeFromRouteData(t);return}let a=gr(n.component);if(!a){this.unsubscribeFromRouteData(t);return}for(let{templateName:s}of a.inputs)t.activatedComponentRef.setInput(s,o[s])});this.outletDataSubscriptions.set(t,i)}static \u0275fac=function(n){return new(n||e)};static \u0275prov=y({token:e,factory:e.\u0275fac})}return e})(),Nn=(()=>{class e{static \u0275fac=function(n){return new(n||e)};static \u0275cmp=Xn({type:e,selectors:[["ng-component"]],exportAs:["emptyRouterOutlet"],decls:1,vars:0,template:function(n,i){n&1&&sr(0,"router-outlet")},dependencies:[Dn],encapsulation:2})}return e})();function Ln(e){let r=e.children&&e.children.map(Ln),t=r?N(u({},e),{children:r}):u({},e);return!t.component&&!t.loadComponent&&(r||t.loadChildren)&&t.outlet&&t.outlet!==p&&(t.component=Nn),t}function so(e,r,t){let n=Vt(e,r._root,t?t._root:void 0);return new Bt(n,r)}function Vt(e,r,t){if(t&&e.shouldReuseRoute(r.value,t.value.snapshot)){let n=t.value;n._futureSnapshot=r.value;let i=ao(e,r,t);return new D(n,i)}else{if(e.shouldAttach(r.value)){let o=e.retrieve(r.value);if(o!==null){let a=o.route;return a.value._futureSnapshot=r.value,a.children=r.children.map(s=>Vt(e,s)),a}}let n=lo(r.value),i=r.children.map(o=>Vt(e,o));return new D(n,i)}}function ao(e,r,t){return r.children.map(n=>{for(let i of t.children)if(e.shouldReuseRoute(n.value,i.value.snapshot))return Vt(e,n,i);return Vt(e,n)})}function lo(e){return new G(new L(e.url),new L(e.params),new L(e.queryParams),new L(e.fragment),new L(e.data),e.outlet,e.component,e)}var St=class{redirectTo;navigationBehaviorOptions;constructor(r,t){this.redirectTo=r,this.navigationBehaviorOptions=t}},ni="ngNavigationCancelingError";function Ne(e,r){let{redirectTo:t,navigationBehaviorOptions:n}=tt(r)?{redirectTo:r,navigationBehaviorOptions:void 0}:r,i=ri(!1,T.Redirect);return i.url=t,i.navigationBehaviorOptions=n,i}function ri(e,r){let t=new Error(`NavigationCancelingError: ${e||""}`);return t[ni]=!0,t.cancellationCode=r,t}function co(e){return ii(e)&&tt(e.url)}function ii(e){return!!e&&e[ni]}var Rn=class{routeReuseStrategy;futureState;currState;forwardEvent;inputBindingEnabled;constructor(r,t,n,i,o){this.routeReuseStrategy=r,this.futureState=t,this.currState=n,this.forwardEvent=i,this.inputBindingEnabled=o}activate(r){let t=this.futureState._root,n=this.currState?this.currState._root:null;this.deactivateChildRoutes(t,n,r),cn(this.futureState.root),this.activateChildRoutes(t,n,r)}deactivateChildRoutes(r,t,n){let i=vt(t);r.children.forEach(o=>{let a=o.value.outlet;this.deactivateRoutes(o,i[a],n),delete i[a]}),Object.values(i).forEach(o=>{this.deactivateRouteAndItsChildren(o,n)})}deactivateRoutes(r,t,n){let i=r.value,o=t?t.value:null;if(i===o)if(i.component){let a=n.getContext(i.outlet);a&&this.deactivateChildRoutes(r,t,a.children)}else this.deactivateChildRoutes(r,t,n);else o&&this.deactivateRouteAndItsChildren(t,n)}deactivateRouteAndItsChildren(r,t){r.value.component&&this.routeReuseStrategy.shouldDetach(r.value.snapshot)?this.detachAndStoreRouteSubtree(r,t):this.deactivateRouteAndOutlet(r,t)}detachAndStoreRouteSubtree(r,t){let n=t.getContext(r.value.outlet),i=n&&r.value.component?n.children:t,o=vt(r);for(let a of Object.values(o))this.deactivateRouteAndItsChildren(a,i);if(n&&n.outlet){let a=n.outlet.detach(),s=n.children.onOutletDeactivated();this.routeReuseStrategy.store(r.value.snapshot,{componentRef:a,route:r,contexts:s})}}deactivateRouteAndOutlet(r,t){let n=t.getContext(r.value.outlet),i=n&&r.value.component?n.children:t,o=vt(r);for(let a of Object.values(o))this.deactivateRouteAndItsChildren(a,i);n&&(n.outlet&&(n.outlet.deactivate(),n.children.onOutletDeactivated()),n.attachRef=null,n.route=null)}activateChildRoutes(r,t,n){let i=vt(t);r.children.forEach(o=>{this.activateRoutes(o,i[o.value.outlet],n),this.forwardEvent(new Ae(o.value.snapshot))}),r.children.length&&this.forwardEvent(new Ee(r.value.snapshot))}activateRoutes(r,t,n){let i=r.value,o=t?t.value:null;if(cn(i),i===o)if(i.component){let a=n.getOrCreateContext(i.outlet);this.activateChildRoutes(r,t,a.children)}else this.activateChildRoutes(r,t,n);else if(i.component){let a=n.getOrCreateContext(i.outlet);if(this.routeReuseStrategy.shouldAttach(i.snapshot)){let s=this.routeReuseStrategy.retrieve(i.snapshot);this.routeReuseStrategy.store(i.snapshot,null),a.children.onOutletReAttached(s.contexts),a.attachRef=s.componentRef,a.route=s.route.value,a.outlet&&a.outlet.attach(s.componentRef,s.route.value),cn(s.route.value),this.activateChildRoutes(r,null,a.children)}else a.attachRef=null,a.route=i,a.outlet&&a.outlet.activateWith(i,a.injector),this.activateChildRoutes(r,null,a.children)}else this.activateChildRoutes(r,null,n)}},Le=class{path;route;constructor(r){this.path=r,this.route=this.path[this.path.length-1]}},yt=class{component;route;constructor(r,t){this.component=r,this.route=t}};function uo(e,r,t){let n=e._root,i=r?r._root:null;return xt(n,i,t,[n.value])}function ho(e){let r=e.routeConfig?e.routeConfig.canActivateChild:null;return!r||r.length===0?null:{node:e,guards:r}}function Et(e,r){let t=Symbol(),n=r.get(e,t);return n===t?typeof e=="function"&&!Kn(e)?e:r.get(e):n}function xt(e,r,t,n,i={canDeactivateChecks:[],canActivateChecks:[]}){let o=vt(r);return e.children.forEach(a=>{po(a,o[a.value.outlet],t,n.concat([a.value]),i),delete o[a.value.outlet]}),Object.entries(o).forEach(([a,s])=>Ut(s,t.getContext(a),i)),i}function po(e,r,t,n,i={canDeactivateChecks:[],canActivateChecks:[]}){let o=e.value,a=r?r.value:null,s=t?t.getContext(e.value.outlet):null;if(a&&o.routeConfig===a.routeConfig){let l=fo(a,o,o.routeConfig.runGuardsAndResolvers);l?i.canActivateChecks.push(new Le(n)):(o.data=a.data,o._resolvedData=a._resolvedData),o.component?xt(e,r,s?s.children:null,n,i):xt(e,r,t,n,i),l&&s&&s.outlet&&s.outlet.isActivated&&i.canDeactivateChecks.push(new yt(s.outlet.component,a))}else a&&Ut(r,s,i),i.canActivateChecks.push(new Le(n)),o.component?xt(e,null,s?s.children:null,n,i):xt(e,null,t,n,i);return i}function fo(e,r,t){if(typeof t=="function")return x(r._environmentInjector,()=>t(e,r));switch(t){case"pathParamsChange":return!lt(e.url,r.url);case"pathParamsOrQueryParamsChange":return!lt(e.url,r.url)||!B(e.queryParams,r.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!yn(e,r)||!B(e.queryParams,r.queryParams);default:return!yn(e,r)}}function Ut(e,r,t){let n=vt(e),i=e.value;Object.entries(n).forEach(([o,a])=>{i.component?r?Ut(a,r.children.getContext(o),t):Ut(a,null,t):Ut(a,r,t)}),i.component?r&&r.outlet&&r.outlet.isActivated?t.canDeactivateChecks.push(new yt(r.outlet.component,i)):t.canDeactivateChecks.push(new yt(null,i)):t.canDeactivateChecks.push(new yt(null,i))}function Qt(e){return typeof e=="function"}function go(e){return typeof e=="boolean"}function vo(e){return e&&Qt(e.canLoad)}function mo(e){return e&&Qt(e.canActivate)}function yo(e){return e&&Qt(e.canActivateChild)}function bo(e){return e&&Qt(e.canDeactivate)}function Ro(e){return e&&Qt(e.canMatch)}function oi(e){return e instanceof Fn||e?.name==="EmptyError"}var he=Symbol("INITIAL_VALUE");function Tt(){return k(e=>Ve(e.map(r=>r.pipe(ft(1),qn(he)))).pipe(C(r=>{for(let t of r)if(t!==!0){if(t===he)return he;if(t===!1||wo(t))return t}return!0}),it(r=>r!==he),ft(1)))}function wo(e){return tt(e)||e instanceof St}function si(e){return e.aborted?g(void 0).pipe(ft(1)):new $n(r=>{let t=()=>{r.next(),r.complete()};return e.addEventListener("abort",t),()=>e.removeEventListener("abort",t)})}function ai(e){return ne(si(e))}function So(e){return V(r=>{let{targetSnapshot:t,currentSnapshot:n,guards:{canActivateChecks:i,canDeactivateChecks:o}}=r;return o.length===0&&i.length===0?g(N(u({},r),{guardsResult:!0})):To(o,t,n).pipe(V(a=>a&&go(a)?Co(t,i,e):g(a)),C(a=>N(u({},r),{guardsResult:a})))})}function To(e,r,t){return O(e).pipe(V(n=>Do(n.component,n.route,t,r)),Q(n=>n!==!0,!0))}function Co(e,r,t){return O(r).pipe(ee(n=>zn(Eo(n.route.parent,t),Io(n.route,t),Ao(e,n.path),Oo(e,n.route))),Q(n=>n!==!0,!0))}function Io(e,r){return e!==null&&r&&r(new Oe(e)),g(!0)}function Eo(e,r){return e!==null&&r&&r(new Ie(e)),g(!0)}function Oo(e,r){let t=r.routeConfig?r.routeConfig.canActivate:null;if(!t||t.length===0)return g(!0);let n=t.map(i=>Xt(()=>{let o=r._environmentInjector,a=Et(i,o),s=mo(a)?a.canActivate(r,e):x(o,()=>a(r,e));return ht(s).pipe(Q())}));return g(n).pipe(Tt())}function Ao(e,r){let t=r[r.length-1],i=r.slice(0,r.length-1).reverse().map(o=>ho(o)).filter(o=>o!==null).map(o=>Xt(()=>{let a=o.guards.map(s=>{let l=o.node._environmentInjector,c=Et(s,l),h=yo(c)?c.canActivateChild(t,e):x(l,()=>c(t,e));return ht(h).pipe(Q())});return g(a).pipe(Tt())}));return g(i).pipe(Tt())}function Do(e,r,t,n){let i=r&&r.routeConfig?r.routeConfig.canDeactivate:null;if(!i||i.length===0)return g(!0);let o=i.map(a=>{let s=r._environmentInjector,l=Et(a,s),c=bo(l)?l.canDeactivate(e,r,t,n):x(s,()=>l(e,r,t,n));return ht(c).pipe(Q())});return g(o).pipe(Tt())}function Mo(e,r,t,n,i){let o=r.canLoad;if(o===void 0||o.length===0)return g(!0);let a=o.map(s=>{let l=Et(s,e),c=vo(l)?l.canLoad(r,t):x(e,()=>l(r,t)),h=ht(c);return i?h.pipe(ai(i)):h});return g(a).pipe(Tt(),li(n))}function li(e){return jn(U(r=>{if(typeof r!="boolean")throw Ne(e,r)}),C(r=>r===!0))}function No(e,r,t,n,i,o){let a=r.canMatch;if(!a||a.length===0)return g(!0);let s=a.map(l=>{let c=Et(l,e),h=Ro(c)?c.canMatch(r,t,i):x(e,()=>c(r,t,i));return ht(h).pipe(ai(o))});return g(s).pipe(Tt(),li(n))}var K=class e extends Error{segmentGroup;constructor(r){super(),this.segmentGroup=r||null,Object.setPrototypeOf(this,e.prototype)}},Kt=class e extends Error{urlTree;constructor(r){super(),this.urlTree=r,Object.setPrototypeOf(this,e.prototype)}};function Lo(e){throw new S(4e3,!1)}function _o(e){throw ri(!1,T.GuardRejected)}var wn=class{urlSerializer;urlTree;constructor(r,t){this.urlSerializer=r,this.urlTree=t}async lineralizeSegments(r,t){let n=[],i=t.root;for(;;){if(n=n.concat(i.segments),i.numberOfChildren===0)return n;if(i.numberOfChildren>1||!i.children[p])throw Lo(`${r.redirectTo}`);i=i.children[p]}}async applyRedirectCommands(r,t,n,i,o){let a=await xo(t,i,o);if(a instanceof E)throw new Kt(a);let s=this.applyRedirectCreateUrlTree(a,this.urlSerializer.parse(a),r,n);if(a[0]==="/")throw new Kt(s);return s}applyRedirectCreateUrlTree(r,t,n,i){let o=this.createSegmentGroup(r,t.root,n,i);return new E(o,this.createQueryParams(t.queryParams,this.urlTree.queryParams),t.fragment)}createQueryParams(r,t){let n={};return Object.entries(r).forEach(([i,o])=>{if(typeof o=="string"&&o[0]===":"){let s=o.substring(1);n[i]=t[s]}else n[i]=o}),n}createSegmentGroup(r,t,n,i){let o=this.createSegments(r,t.segments,n,i),a={};return Object.entries(t.children).forEach(([s,l])=>{a[s]=this.createSegmentGroup(r,l,n,i)}),new v(o,a)}createSegments(r,t,n,i){return t.map(o=>o.path[0]===":"?this.findPosParam(r,o,i):this.findOrReturn(o,n))}findPosParam(r,t,n){let i=n[t.path.substring(1)];if(!i)throw new S(4001,!1);return i}findOrReturn(r,t){let n=0;for(let i of t){if(i.path===r.path)return t.splice(n),i;n++}return r}};function xo(e,r,t){if(typeof e=="string")return Promise.resolve(e);let n=e;return ve(ht(x(t,()=>n(r))))}function Po(e,r){return e.providers&&!e._injector&&(e._injector=en(e.providers,r,`Route: ${e.path}`)),e._injector??r}function j(e){return e.outlet||p}function ko(e,r){let t=e.filter(n=>j(n)===r);return t.push(...e.filter(n=>j(n)!==r)),t}var Sn={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function ci(e){return{routeConfig:e.routeConfig,url:e.url,params:e.params,queryParams:e.queryParams,fragment:e.fragment,data:e.data,outlet:e.outlet,title:e.title,paramMap:e.paramMap,queryParamMap:e.queryParamMap}}function Uo(e,r,t,n,i,o,a){let s=ui(e,r,t);if(!s.matched)return g(s);let l=ci(o(s));return n=Po(r,n),No(n,r,t,i,l,a).pipe(C(c=>c===!0?s:u({},Sn)))}function ui(e,r,t){if(r.path==="")return r.pathMatch==="full"&&(e.hasChildren()||t.length>0)?u({},Sn):{matched:!0,consumedSegments:[],remainingSegments:t,parameters:{},positionalParamSegments:{}};let i=(r.matcher||Pr)(t,e,r);if(!i)return u({},Sn);let o={};Object.entries(i.posParams??{}).forEach(([s,l])=>{o[s]=l.path});let a=i.consumed.length>0?u(u({},o),i.consumed[i.consumed.length-1].parameters):o;return{matched:!0,consumedSegments:i.consumed,remainingSegments:t.slice(i.consumed.length),parameters:a,positionalParamSegments:i.posParams??{}}}function _r(e,r,t,n,i){return t.length>0&&Ho(e,t,n,i)?{segmentGroup:new v(r,$o(n,new v(t,e.children))),slicedSegments:[]}:t.length===0&&Fo(e,t,n)?{segmentGroup:new v(e.segments,jo(e,t,n,e.children)),slicedSegments:t}:{segmentGroup:new v(e.segments,e.children),slicedSegments:t}}function jo(e,r,t,n){let i={};for(let o of t)if(Pe(e,r,o)&&!n[j(o)]){let a=new v([],{});i[j(o)]=a}return u(u({},n),i)}function $o(e,r){let t={};t[p]=r;for(let n of e)if(n.path===""&&j(n)!==p){let i=new v([],{});t[j(n)]=i}return t}function Ho(e,r,t,n){return t.some(i=>!Pe(e,r,i)||!(j(i)!==p)?!1:!(n!==void 0&&j(i)===n))}function Fo(e,r,t){return t.some(n=>Pe(e,r,n))}function Pe(e,r,t){return(e.hasChildren()||r.length>0)&&t.pathMatch==="full"?!1:t.path===""}function zo(e,r,t){return r.length===0&&!e.children[t]}var Tn=class{};async function Bo(e,r,t,n,i,o,a="emptyOnly",s){return new Cn(e,r,t,n,i,a,o,s).recognize()}var qo=31,Cn=class{injector;configLoader;rootComponentType;config;urlTree;paramsInheritanceStrategy;urlSerializer;abortSignal;applyRedirects;absoluteRedirectCount=0;allowRedirects=!0;constructor(r,t,n,i,o,a,s,l){this.injector=r,this.configLoader=t,this.rootComponentType=n,this.config=i,this.urlTree=o,this.paramsInheritanceStrategy=a,this.urlSerializer=s,this.abortSignal=l,this.applyRedirects=new wn(this.urlSerializer,this.urlTree)}noMatchError(r){return new S(4002,`'${r.segmentGroup}'`)}async recognize(){let r=_r(this.urlTree.root,[],[],this.config).segmentGroup,{children:t,rootSnapshot:n}=await this.match(r),i=new D(n,t),o=new qt("",i),a=Kr(n,[],this.urlTree.queryParams,this.urlTree.fragment);return a.queryParams=this.urlTree.queryParams,o.url=this.urlSerializer.serialize(a),{state:o,tree:a}}async match(r){let t=new wt([],Object.freeze({}),Object.freeze(u({},this.urlTree.queryParams)),this.urlTree.fragment,Object.freeze({}),p,this.rootComponentType,null,{},this.injector);try{return{children:await this.processSegmentGroup(this.injector,this.config,r,p,t),rootSnapshot:t}}catch(n){if(n instanceof Kt)return this.urlTree=n.urlTree,this.match(n.urlTree.root);throw n instanceof K?this.noMatchError(n):n}}async processSegmentGroup(r,t,n,i,o){if(n.segments.length===0&&n.hasChildren())return this.processChildren(r,t,n,o);let a=await this.processSegment(r,t,n,n.segments,i,!0,o);return a instanceof D?[a]:[]}async processChildren(r,t,n,i){let o=[];for(let l of Object.keys(n.children))l==="primary"?o.unshift(l):o.push(l);let a=[];for(let l of o){let c=n.children[l],h=ko(t,l),f=await this.processSegmentGroup(r,h,c,l,i);a.push(...f)}let s=di(a);return Vo(s),s}async processSegment(r,t,n,i,o,a,s){for(let l of t)try{return await this.processSegmentAgainstRoute(l._injector??r,t,l,n,i,o,a,s)}catch(c){if(c instanceof K||oi(c))continue;throw c}if(zo(n,i,o))return new Tn;throw new K(n)}async processSegmentAgainstRoute(r,t,n,i,o,a,s,l){if(j(n)!==a&&(a===p||!Pe(i,o,n)))throw new K(i);if(n.redirectTo===void 0)return this.matchSegmentAgainstRoute(r,i,n,o,a,l);if(this.allowRedirects&&s)return this.expandSegmentAgainstRouteUsingRedirect(r,i,t,n,o,a,l);throw new K(i)}async expandSegmentAgainstRouteUsingRedirect(r,t,n,i,o,a,s){let{matched:l,parameters:c,consumedSegments:h,positionalParamSegments:f,remainingSegments:b}=ui(t,i,o);if(!l)throw new K(t);typeof i.redirectTo=="string"&&i.redirectTo[0]==="/"&&(this.absoluteRedirectCount++,this.absoluteRedirectCount>qo&&(this.allowRedirects=!1));let et=this.createSnapshot(r,i,o,c,s);if(this.abortSignal.aborted)throw new Error(this.abortSignal.reason);let q=await this.applyRedirects.applyRedirectCommands(h,i.redirectTo,f,ci(et),r),nt=await this.applyRedirects.lineralizeSegments(i,q);return this.processSegment(r,n,t,nt.concat(b),a,!1,s)}createSnapshot(r,t,n,i,o){let a=new wt(n,i,Object.freeze(u({},this.urlTree.queryParams)),this.urlTree.fragment,Wo(t),j(t),t.component??t._loadedComponent??null,t,Go(t),r),s=On(a,o,this.paramsInheritanceStrategy);return a.params=Object.freeze(s.params),a.data=Object.freeze(s.data),a}async matchSegmentAgainstRoute(r,t,n,i,o,a){if(this.abortSignal.aborted)throw new Error(this.abortSignal.reason);let s=Jt=>this.createSnapshot(r,n,Jt.consumedSegments,Jt.parameters,a),l=await ve(Uo(t,n,i,r,this.urlSerializer,s,this.abortSignal));if(n.path==="**"&&(t.children={}),!l?.matched)throw new K(t);r=n._injector??r;let{routes:c}=await this.getChildConfig(r,n,i),h=n._loadedInjector??r,{parameters:f,consumedSegments:b,remainingSegments:et}=l,q=this.createSnapshot(r,n,b,f,a),{segmentGroup:nt,slicedSegments:At}=_r(t,b,et,c,o);if(At.length===0&&nt.hasChildren()){let Jt=await this.processChildren(h,c,nt,q);return new D(q,Jt)}if(c.length===0&&At.length===0)return new D(q,[]);let Be=j(n)===o,Dt=await this.processSegment(h,c,nt,At,Be?p:o,!0,q);return new D(q,Dt instanceof D?[Dt]:[])}async getChildConfig(r,t,n){if(t.children)return{routes:t.children,injector:r};if(t.loadChildren){if(t._loadedRoutes!==void 0){let o=t._loadedNgModuleFactory;return o&&!t._loadedInjector&&(t._loadedInjector=o.create(r).injector),{routes:t._loadedRoutes,injector:t._loadedInjector}}if(this.abortSignal.aborted)throw new Error(this.abortSignal.reason);if(await ve(Mo(r,t,n,this.urlSerializer,this.abortSignal))){let o=await this.configLoader.loadChildren(r,t);return t._loadedRoutes=o.routes,t._loadedInjector=o.injector,t._loadedNgModuleFactory=o.factory,o}throw _o(t)}return{routes:[],injector:r}}};function Vo(e){e.sort((r,t)=>r.value.outlet===p?-1:t.value.outlet===p?1:r.value.outlet.localeCompare(t.value.outlet))}function Ko(e){let r=e.value.routeConfig;return r&&r.path===""}function di(e){let r=[],t=new Set;for(let n of e){if(!Ko(n)){r.push(n);continue}let i=r.find(o=>n.value.routeConfig===o.value.routeConfig);i!==void 0?(i.children.push(...n.children),t.add(i)):r.push(n)}for(let n of t){let i=di(n.children);r.push(new D(n.value,i))}return r.filter(n=>!t.has(n))}function Wo(e){return e.data||{}}function Go(e){return e.resolve||{}}function Qo(e,r,t,n,i,o,a){return V(async s=>{let{state:l,tree:c}=await Bo(e,r,t,n,s.extractedUrl,i,o,a);return N(u({},s),{targetSnapshot:l,urlAfterRedirects:c})})}function Zo(e){return V(r=>{let{targetSnapshot:t,guards:{canActivateChecks:n}}=r;if(!n.length)return g(r);let i=new Set(n.map(s=>s.route)),o=new Set;for(let s of i)if(!o.has(s))for(let l of hi(s))o.add(l);let a=0;return O(o).pipe(ee(s=>i.has(s)?Yo(s,t,e):(s.data=On(s,s.parent,e).resolve,g(void 0))),U(()=>a++),We(1),V(s=>a===o.size?g(r):_))})}function hi(e){let r=e.children.map(t=>hi(t)).flat();return[e,...r]}function Yo(e,r,t){let n=e.routeConfig,i=e._resolve;return n?.title!==void 0&&!ti(n)&&(i[Wt]=n.title),Xt(()=>(e.data=On(e,e.parent,t).resolve,Jo(i,e,r).pipe(C(o=>(e._resolvedData=o,e.data=u(u({},e.data),o),null)))))}function Jo(e,r,t){let n=dn(e);if(n.length===0)return g({});let i={};return O(n).pipe(V(o=>Xo(e[o],r,t).pipe(Q(),U(a=>{if(a instanceof St)throw Ne(new X,a);i[o]=a}))),We(1),C(()=>i),te(o=>oi(o)?_:Hn(o)))}function Xo(e,r,t){let n=r._environmentInjector,i=Et(e,n),o=i.resolve?i.resolve(r,t):x(n,()=>i(r,t));return ht(o)}function xr(e){return k(r=>{let t=e(r);return t?O(t).pipe(C(()=>r)):g(r)})}var _n=(()=>{class e{buildTitle(t){let n,i=t.root;for(;i!==void 0;)n=this.getResolvedTitleForRoute(i)??n,i=i.children.find(o=>o.outlet===p);return n}getResolvedTitleForRoute(t){return t.data[Wt]}static \u0275fac=function(n){return new(n||e)};static \u0275prov=y({token:e,factory:()=>d(pi),providedIn:"root"})}return e})(),pi=(()=>{class e extends _n{title;constructor(t){super(),this.title=t}updateTitle(t){let n=this.buildTitle(t);n!==void 0&&this.title.setTitle(n)}static \u0275fac=function(n){return new(n||e)(re(yr))};static \u0275prov=y({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),Ot=new I("",{factory:()=>({})}),Zt=new I(""),fi=(()=>{class e{componentLoaders=new WeakMap;childrenLoaders=new WeakMap;onLoadStartListener;onLoadEndListener;compiler=d(hr);async loadComponent(t,n){if(this.componentLoaders.get(n))return this.componentLoaders.get(n);if(n._loadedComponent)return Promise.resolve(n._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(n);let i=(async()=>{try{let o=await Ur(x(t,()=>n.loadComponent())),a=await mi(vi(o));return this.onLoadEndListener&&this.onLoadEndListener(n),n._loadedComponent=a,a}finally{this.componentLoaders.delete(n)}})();return this.componentLoaders.set(n,i),i}loadChildren(t,n){if(this.childrenLoaders.get(n))return this.childrenLoaders.get(n);if(n._loadedRoutes)return Promise.resolve({routes:n._loadedRoutes,injector:n._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(n);let i=(async()=>{try{let o=await gi(n,this.compiler,t,this.onLoadEndListener);return n._loadedRoutes=o.routes,n._loadedInjector=o.injector,n._loadedNgModuleFactory=o.factory,o}finally{this.childrenLoaders.delete(n)}})();return this.childrenLoaders.set(n,i),i}static \u0275fac=function(n){return new(n||e)};static \u0275prov=y({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();async function gi(e,r,t,n){let i=await Ur(x(t,()=>e.loadChildren())),o=await mi(vi(i)),a;o instanceof Jn||Array.isArray(o)?a=o:a=await r.compileModuleAsync(o),n&&n(e);let s,l,c=!1,h;return Array.isArray(a)?(l=a,c=!0):(s=a.create(t).injector,h=a,l=s.get(Zt,[],{optional:!0,self:!0}).flat()),{routes:l.map(Ln),injector:s,factory:h}}function ts(e){return e&&typeof e=="object"&&"default"in e}function vi(e){return ts(e)?e.default:e}async function mi(e){return e}var ke=(()=>{class e{static \u0275fac=function(n){return new(n||e)};static \u0275prov=y({token:e,factory:()=>d(es),providedIn:"root"})}return e})(),es=(()=>{class e{shouldProcessUrl(t){return!0}extract(t){return t}merge(t,n){return t}static \u0275fac=function(n){return new(n||e)};static \u0275prov=y({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),yi=new I("");var ns=()=>{},bi=new I(""),Ri=(()=>{class e{currentNavigation=m(null,{equal:()=>!1});currentTransition=null;lastSuccessfulNavigation=m(null);events=new rt;transitionAbortWithErrorSubject=new rt;configLoader=d(fi);environmentInjector=d(Z);destroyRef=d(Ze);urlSerializer=d(Ct);rootContexts=d(It);location=d(ae);inputBindingEnabled=d(Gt,{optional:!0})!==null;titleStrategy=d(_n);options=d(Ot,{optional:!0})||{};paramsInheritanceStrategy=this.options.paramsInheritanceStrategy||"emptyOnly";urlHandlingStrategy=d(ke);createViewTransition=d(yi,{optional:!0});navigationErrorHandler=d(bi,{optional:!0});navigationId=0;get hasRequestedNavigation(){return this.navigationId!==0}transitions;afterPreactivation=()=>g(void 0);rootComponentType=null;destroyed=!1;constructor(){let t=i=>this.events.next(new Te(i)),n=i=>this.events.next(new Ce(i));this.configLoader.onLoadEndListener=n,this.configLoader.onLoadStartListener=t,this.destroyRef.onDestroy(()=>{this.destroyed=!0})}complete(){this.transitions?.complete()}handleNavigationRequest(t){let n=++this.navigationId;R(()=>{this.transitions?.next(N(u({},t),{extractedUrl:this.urlHandlingStrategy.extract(t.rawUrl),targetSnapshot:null,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null,id:n,routesRecognizeHandler:{},beforeActivateHandler:{}}))})}setupNavigations(t){return this.transitions=new L(null),this.transitions.pipe(it(n=>n!==null),k(n=>{let i=!1,o=new AbortController,a=()=>!i&&this.currentTransition?.id===n.id;return g(n).pipe(k(s=>{if(this.navigationId>n.id)return this.cancelNavigationTransition(n,"",T.SupersededByNewNavigation),_;this.currentTransition=n;let l=this.lastSuccessfulNavigation();this.currentNavigation.set({id:s.id,initialUrl:s.rawUrl,extractedUrl:s.extractedUrl,targetBrowserUrl:typeof s.extras.browserUrl=="string"?this.urlSerializer.parse(s.extras.browserUrl):s.extras.browserUrl,trigger:s.source,extras:s.extras,previousNavigation:l?N(u({},l),{previousNavigation:null}):null,abort:()=>o.abort(),routesRecognizeHandler:s.routesRecognizeHandler,beforeActivateHandler:s.beforeActivateHandler});let c=!t.navigated||this.isUpdatingInternalState()||this.isUpdatedBrowserUrl(),h=s.extras.onSameUrlNavigation??t.onSameUrlNavigation;if(!c&&h!=="reload")return this.events.next(new W(s.id,this.urlSerializer.serialize(s.rawUrl),"",Ht.IgnoredSameUrlNavigation)),s.resolve(!1),_;if(this.urlHandlingStrategy.shouldProcessUrl(s.rawUrl))return g(s).pipe(k(f=>(this.events.next(new ut(f.id,this.urlSerializer.serialize(f.extractedUrl),f.source,f.restoredState)),f.id!==this.navigationId?_:Promise.resolve(f))),Qo(this.environmentInjector,this.configLoader,this.rootComponentType,t.config,this.urlSerializer,this.paramsInheritanceStrategy,o.signal),U(f=>{n.targetSnapshot=f.targetSnapshot,n.urlAfterRedirects=f.urlAfterRedirects,this.currentNavigation.update(b=>(b.finalUrl=f.urlAfterRedirects,b)),this.events.next(new zt)}),k(f=>O(n.routesRecognizeHandler.deferredHandle??g(void 0)).pipe(C(()=>f))),U(()=>{let f=new Ft(s.id,this.urlSerializer.serialize(s.extractedUrl),this.urlSerializer.serialize(s.urlAfterRedirects),s.targetSnapshot);this.events.next(f)}));if(c&&this.urlHandlingStrategy.shouldProcessUrl(s.currentRawUrl)){let{id:f,extractedUrl:b,source:et,restoredState:q,extras:nt}=s,At=new ut(f,this.urlSerializer.serialize(b),et,q);this.events.next(At);let Be=Jr(this.rootComponentType,this.environmentInjector).snapshot;return this.currentTransition=n=N(u({},s),{targetSnapshot:Be,urlAfterRedirects:b,extras:N(u({},nt),{skipLocationChange:!1,replaceUrl:!1})}),this.currentNavigation.update(Dt=>(Dt.finalUrl=b,Dt)),g(n)}else return this.events.next(new W(s.id,this.urlSerializer.serialize(s.extractedUrl),"",Ht.IgnoredByUrlHandlingStrategy)),s.resolve(!1),_}),C(s=>{let l=new be(s.id,this.urlSerializer.serialize(s.extractedUrl),this.urlSerializer.serialize(s.urlAfterRedirects),s.targetSnapshot);return this.events.next(l),this.currentTransition=n=N(u({},s),{guards:uo(s.targetSnapshot,s.currentSnapshot,this.rootContexts)}),n}),So(s=>this.events.next(s)),k(s=>{if(n.guardsResult=s.guardsResult,s.guardsResult&&typeof s.guardsResult!="boolean")throw Ne(this.urlSerializer,s.guardsResult);let l=new Re(s.id,this.urlSerializer.serialize(s.extractedUrl),this.urlSerializer.serialize(s.urlAfterRedirects),s.targetSnapshot,!!s.guardsResult);if(this.events.next(l),!a())return _;if(!s.guardsResult)return this.cancelNavigationTransition(s,"",T.GuardRejected),_;if(s.guards.canActivateChecks.length===0)return g(s);let c=new we(s.id,this.urlSerializer.serialize(s.extractedUrl),this.urlSerializer.serialize(s.urlAfterRedirects),s.targetSnapshot);if(this.events.next(c),!a())return _;let h=!1;return g(s).pipe(Zo(this.paramsInheritanceStrategy),U({next:()=>{h=!0;let f=new Se(s.id,this.urlSerializer.serialize(s.extractedUrl),this.urlSerializer.serialize(s.urlAfterRedirects),s.targetSnapshot);this.events.next(f)},complete:()=>{h||this.cancelNavigationTransition(s,"",T.NoDataFromResolver)}}))}),xr(s=>{let l=h=>{let f=[];if(h.routeConfig?._loadedComponent)h.component=h.routeConfig?._loadedComponent;else if(h.routeConfig?.loadComponent){let b=h._environmentInjector;f.push(this.configLoader.loadComponent(b,h.routeConfig).then(et=>{h.component=et}))}for(let b of h.children)f.push(...l(b));return f},c=l(s.targetSnapshot.root);return c.length===0?g(s):O(Promise.all(c).then(()=>s))}),xr(()=>this.afterPreactivation()),k(()=>{let{currentSnapshot:s,targetSnapshot:l}=n,c=this.createViewTransition?.(this.environmentInjector,s.root,l.root);return c?O(c).pipe(C(()=>n)):g(n)}),ft(1),k(s=>{let l=so(t.routeReuseStrategy,s.targetSnapshot,s.currentRouterState);this.currentTransition=n=s=N(u({},s),{targetRouterState:l}),this.currentNavigation.update(h=>(h.targetRouterState=l,h)),this.events.next(new bt);let c=n.beforeActivateHandler.deferredHandle;return c?O(c.then(()=>s)):g(s)}),U(s=>{new Rn(t.routeReuseStrategy,n.targetRouterState,n.currentRouterState,l=>this.events.next(l),this.inputBindingEnabled).activate(this.rootContexts),a()&&(i=!0,this.currentNavigation.update(l=>(l.abort=ns,l)),this.lastSuccessfulNavigation.set(R(this.currentNavigation)),this.events.next(new $(s.id,this.urlSerializer.serialize(s.extractedUrl),this.urlSerializer.serialize(s.urlAfterRedirects))),this.titleStrategy?.updateTitle(s.targetRouterState.snapshot),s.resolve(!0))}),ne(si(o.signal).pipe(it(()=>!i&&!n.targetRouterState),U(()=>{this.cancelNavigationTransition(n,o.signal.reason+"",T.Aborted)}))),U({complete:()=>{i=!0}}),ne(this.transitionAbortWithErrorSubject.pipe(U(s=>{throw s}))),Bn(()=>{o.abort(),i||this.cancelNavigationTransition(n,"",T.SupersededByNewNavigation),this.currentTransition?.id===n.id&&(this.currentNavigation.set(null),this.currentTransition=null)}),te(s=>{if(i=!0,this.destroyed)return n.resolve(!1),_;if(ii(s))this.events.next(new P(n.id,this.urlSerializer.serialize(n.extractedUrl),s.message,s.cancellationCode)),co(s)?this.events.next(new Rt(s.url,s.navigationBehaviorOptions)):n.resolve(!1);else{let l=new dt(n.id,this.urlSerializer.serialize(n.extractedUrl),s,n.targetSnapshot??void 0);try{let c=x(this.environmentInjector,()=>this.navigationErrorHandler?.(l));if(c instanceof St){let{message:h,cancellationCode:f}=Ne(this.urlSerializer,c);this.events.next(new P(n.id,this.urlSerializer.serialize(n.extractedUrl),h,f)),this.events.next(new Rt(c.redirectTo,c.navigationBehaviorOptions))}else throw this.events.next(l),s}catch(c){this.options.resolveNavigationPromiseOnError?n.resolve(!1):n.reject(c)}}return _}))}))}cancelNavigationTransition(t,n,i){let o=new P(t.id,this.urlSerializer.serialize(t.extractedUrl),n,i);this.events.next(o),t.resolve(!1)}isUpdatingInternalState(){return this.currentTransition?.extractedUrl.toString()!==this.currentTransition?.currentUrlTree.toString()}isUpdatedBrowserUrl(){let t=this.urlHandlingStrategy.extract(this.urlSerializer.parse(this.location.path(!0))),n=R(this.currentNavigation),i=n?.targetBrowserUrl??n?.extractedUrl;return t.toString()!==i?.toString()&&!n?.extras.skipLocationChange}static \u0275fac=function(n){return new(n||e)};static \u0275prov=y({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function rs(e){return e!==kt}var wi=new I("");var Si=(()=>{class e{static \u0275fac=function(n){return new(n||e)};static \u0275prov=y({token:e,factory:()=>d(is),providedIn:"root"})}return e})(),_e=class{shouldDetach(r){return!1}store(r,t){}shouldAttach(r){return!1}retrieve(r){return null}shouldReuseRoute(r,t){return r.routeConfig===t.routeConfig}shouldDestroyInjector(r){return!0}},is=(()=>{class e extends _e{static \u0275fac=(()=>{let t;return function(i){return(t||(t=Nt(e)))(i||e)}})();static \u0275prov=y({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),Ue=(()=>{class e{urlSerializer=d(Ct);options=d(Ot,{optional:!0})||{};canceledNavigationResolution=this.options.canceledNavigationResolution||"replace";location=d(ae);urlHandlingStrategy=d(ke);urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred";currentUrlTree=new E;getCurrentUrlTree(){return this.currentUrlTree}rawUrlTree=this.currentUrlTree;getRawUrlTree(){return this.rawUrlTree}createBrowserPath({finalUrl:t,initialUrl:n,targetBrowserUrl:i}){let o=t!==void 0?this.urlHandlingStrategy.merge(t,n):n,a=i??o;return a instanceof E?this.urlSerializer.serialize(a):a}commitTransition({targetRouterState:t,finalUrl:n,initialUrl:i}){n&&t?(this.currentUrlTree=n,this.rawUrlTree=this.urlHandlingStrategy.merge(n,i),this.routerState=t):this.rawUrlTree=i}routerState=Jr(null,d(Z));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(n){return new(n||e)};static \u0275prov=y({token:e,factory:()=>d(os),providedIn:"root"})}return e})(),os=(()=>{class e extends Ue{currentPageId=0;lastSuccessfulId=-1;get browserPageId(){return this.canceledNavigationResolution!=="computed"?this.currentPageId:this.restoredState()?.\u0275routerPageId??this.currentPageId}registerNonRouterCurrentEntryChangeListener(t){return this.location.subscribe(n=>{n.type==="popstate"&&setTimeout(()=>{t(n.url,n.state,"popstate",{replaceUrl:!0})})})}handleRouterEvent(t,n){t instanceof ut?this.updateStateMemento():t instanceof W?this.commitTransition(n):t instanceof Ft?this.urlUpdateStrategy==="eager"&&(n.extras.skipLocationChange||this.setBrowserUrl(this.createBrowserPath(n),n)):t instanceof bt?(this.commitTransition(n),this.urlUpdateStrategy==="deferred"&&!n.extras.skipLocationChange&&this.setBrowserUrl(this.createBrowserPath(n),n)):t instanceof P&&!Yr(t)?this.restoreHistory(n):t instanceof dt?this.restoreHistory(n,!0):t instanceof $&&(this.lastSuccessfulId=t.id,this.currentPageId=this.browserPageId)}setBrowserUrl(t,{extras:n,id:i}){let{replaceUrl:o,state:a}=n;if(this.location.isCurrentPathEqualTo(t)||o){let s=this.browserPageId,l=u(u({},a),this.generateNgRouterState(i,s));this.location.replaceState(t,"",l)}else{let s=u(u({},a),this.generateNgRouterState(i,this.browserPageId+1));this.location.go(t,"",s)}}restoreHistory(t,n=!1){if(this.canceledNavigationResolution==="computed"){let i=this.browserPageId,o=this.currentPageId-i;o!==0?this.location.historyGo(o):this.getCurrentUrlTree()===t.finalUrl&&o===0&&(this.resetInternalState(t),this.resetUrlToCurrentUrlTree())}else this.canceledNavigationResolution==="replace"&&(n&&this.resetInternalState(t),this.resetUrlToCurrentUrlTree())}resetInternalState({finalUrl:t}){this.routerState=this.stateMemento.routerState,this.currentUrlTree=this.stateMemento.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,t??this.rawUrlTree)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.getRawUrlTree()),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}generateNgRouterState(t,n){return this.canceledNavigationResolution==="computed"?{navigationId:t,\u0275routerPageId:n}:{navigationId:t}}static \u0275fac=(()=>{let t;return function(i){return(t||(t=Nt(e)))(i||e)}})();static \u0275prov=y({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function xn(e,r){e.events.pipe(it(t=>t instanceof $||t instanceof P||t instanceof dt||t instanceof W),C(t=>t instanceof $||t instanceof W?0:(t instanceof P?t.code===T.Redirect||t.code===T.SupersededByNewNavigation:!1)?2:1),it(t=>t!==2),ft(1)).subscribe(()=>{r()})}var pt=(()=>{class e{get currentUrlTree(){return this.stateManager.getCurrentUrlTree()}get rawUrlTree(){return this.stateManager.getRawUrlTree()}disposed=!1;nonRouterCurrentEntryChangeSubscription;console=d(er);stateManager=d(Ue);options=d(Ot,{optional:!0})||{};pendingTasks=d(Qn);urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred";navigationTransitions=d(Ri);urlSerializer=d(Ct);location=d(ae);urlHandlingStrategy=d(ke);injector=d(Z);_events=new rt;get events(){return this._events}get routerState(){return this.stateManager.getRouterState()}navigated=!1;routeReuseStrategy=d(Si);injectorCleanup=d(wi,{optional:!0});onSameUrlNavigation=this.options.onSameUrlNavigation||"ignore";config=d(Zt,{optional:!0})?.flat()??[];componentInputBindingEnabled=!!d(Gt,{optional:!0});currentNavigation=this.navigationTransitions.currentNavigation.asReadonly();constructor(){this.resetConfig(this.config),this.navigationTransitions.setupNavigations(this).subscribe({error:t=>{}}),this.subscribeToNavigationEvents()}eventsSubscription=new Un;subscribeToNavigationEvents(){let t=this.navigationTransitions.events.subscribe(n=>{try{let i=this.navigationTransitions.currentTransition,o=R(this.navigationTransitions.currentNavigation);if(i!==null&&o!==null){if(this.stateManager.handleRouterEvent(n,o),n instanceof P&&n.code!==T.Redirect&&n.code!==T.SupersededByNewNavigation)this.navigated=!0;else if(n instanceof $)this.navigated=!0,this.injectorCleanup?.(this.routeReuseStrategy,this.routerState,this.config);else if(n instanceof Rt){let a=n.navigationBehaviorOptions,s=this.urlHandlingStrategy.merge(n.url,i.currentRawUrl),l=u({scroll:i.extras.scroll,browserUrl:i.extras.browserUrl,info:i.extras.info,skipLocationChange:i.extras.skipLocationChange,replaceUrl:i.extras.replaceUrl||this.urlUpdateStrategy==="eager"||rs(i.source)},a);this.scheduleNavigation(s,kt,null,l,{resolve:i.resolve,reject:i.reject,promise:i.promise})}}io(n)&&this._events.next(n)}catch(i){this.navigationTransitions.transitionAbortWithErrorSubject.next(i)}});this.eventsSubscription.add(t)}resetRootComponentType(t){this.routerState.root.component=t,this.navigationTransitions.rootComponentType=t}initialNavigation(){this.setUpLocationChangeListener(),this.navigationTransitions.hasRequestedNavigation||this.navigateToSyncWithBrowser(this.location.path(!0),kt,this.stateManager.restoredState(),{replaceUrl:!0})}setUpLocationChangeListener(){this.nonRouterCurrentEntryChangeSubscription??=this.stateManager.registerNonRouterCurrentEntryChangeListener((t,n,i,o)=>{this.navigateToSyncWithBrowser(t,i,n,o)})}navigateToSyncWithBrowser(t,n,i,o){let a=i?.navigationId?i:null;if(i){let l=u({},i);delete l.navigationId,delete l.\u0275routerPageId,Object.keys(l).length!==0&&(o.state=l)}let s=this.parseUrl(t);this.scheduleNavigation(s,n,a,o).catch(l=>{this.disposed||this.injector.get(ie)(l)})}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return R(this.navigationTransitions.currentNavigation)}get lastSuccessfulNavigation(){return this.navigationTransitions.lastSuccessfulNavigation}resetConfig(t){this.config=t.map(Ln),this.navigated=!1}ngOnDestroy(){this.dispose()}dispose(){this._events.unsubscribe(),this.navigationTransitions.complete(),this.nonRouterCurrentEntryChangeSubscription?.unsubscribe(),this.nonRouterCurrentEntryChangeSubscription=void 0,this.disposed=!0,this.eventsSubscription.unsubscribe()}createUrlTree(t,n={}){let{relativeTo:i,queryParams:o,fragment:a,queryParamsHandling:s,preserveFragment:l}=n,c=l?this.currentUrlTree.fragment:a,h=null;switch(s??this.options.defaultQueryParamsHandling){case"merge":h=u(u({},this.currentUrlTree.queryParams),o);break;case"preserve":h=this.currentUrlTree.queryParams;break;default:h=o||null}h!==null&&(h=this.removeEmptyProps(h));let f;try{let b=i?i.snapshot:this.routerState.snapshot.root;f=Wr(b)}catch{(typeof t[0]!="string"||t[0][0]!=="/")&&(t=[]),f=this.currentUrlTree.root}return Gr(f,t,h,c??null,this.urlSerializer)}navigateByUrl(t,n={skipLocationChange:!1}){let i=tt(t)?t:this.parseUrl(t),o=this.urlHandlingStrategy.merge(i,this.rawUrlTree);return this.scheduleNavigation(o,kt,null,n)}navigate(t,n={skipLocationChange:!1}){return ss(t),this.navigateByUrl(this.createUrlTree(t,n),n)}serializeUrl(t){return this.urlSerializer.serialize(t)}parseUrl(t){try{return this.urlSerializer.parse(t)}catch{return this.console.warn(Vn(4018,!1)),this.urlSerializer.parse("/")}}isActive(t,n){let i;if(n===!0?i=u({},In):n===!1?i=u({},jt):i=u(u({},jt),n),tt(t))return hn(this.currentUrlTree,t,i);let o=this.parseUrl(t);return hn(this.currentUrlTree,o,i)}removeEmptyProps(t){return Object.entries(t).reduce((n,[i,o])=>(o!=null&&(n[i]=o),n),{})}scheduleNavigation(t,n,i,o,a){if(this.disposed)return Promise.resolve(!1);let s,l,c;a?(s=a.resolve,l=a.reject,c=a.promise):c=new Promise((f,b)=>{s=f,l=b});let h=this.pendingTasks.add();return xn(this,()=>{queueMicrotask(()=>this.pendingTasks.remove(h))}),this.navigationTransitions.handleNavigationRequest({source:n,restoredState:i,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,rawUrl:t,extras:o,resolve:s,reject:l,promise:c,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),c.catch(Promise.reject.bind(Promise))}static \u0275fac=function(n){return new(n||e)};static \u0275prov=y({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function ss(e){for(let r=0;r<e.length;r++)if(e[r]==null)throw new S(4008,!1)}var ls=(()=>{class e{router=d(pt);stateManager=d(Ue);fragment=m("");queryParams=m({});path=m("");serializer=d(Ct);constructor(){this.updateState(),this.router.events?.subscribe(t=>{t instanceof $&&this.updateState()})}updateState(){let{fragment:t,root:n,queryParams:i}=this.stateManager.getCurrentUrlTree();this.fragment.set(t),this.queryParams.set(i),this.path.set(this.serializer.serialize(new E(n)))}static \u0275fac=function(n){return new(n||e)};static \u0275prov=y({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),je=(()=>{class e{router;route;tabIndexAttribute;renderer;el;locationStrategy;hrefAttributeValue=d(new fr("href"),{optional:!0});reactiveHref=pr(()=>this.isAnchorElement?this.computeHref(this._urlTree()):this.hrefAttributeValue);get href(){return R(this.reactiveHref)}set href(t){this.reactiveHref.set(t)}set target(t){this._target.set(t)}get target(){return R(this._target)}_target=m(void 0);set queryParams(t){this._queryParams.set(t)}get queryParams(){return R(this._queryParams)}_queryParams=m(void 0,{equal:()=>!1});set fragment(t){this._fragment.set(t)}get fragment(){return R(this._fragment)}_fragment=m(void 0);set queryParamsHandling(t){this._queryParamsHandling.set(t)}get queryParamsHandling(){return R(this._queryParamsHandling)}_queryParamsHandling=m(void 0);set state(t){this._state.set(t)}get state(){return R(this._state)}_state=m(void 0,{equal:()=>!1});set info(t){this._info.set(t)}get info(){return R(this._info)}_info=m(void 0,{equal:()=>!1});set relativeTo(t){this._relativeTo.set(t)}get relativeTo(){return R(this._relativeTo)}_relativeTo=m(void 0);set preserveFragment(t){this._preserveFragment.set(t)}get preserveFragment(){return R(this._preserveFragment)}_preserveFragment=m(!1);set skipLocationChange(t){this._skipLocationChange.set(t)}get skipLocationChange(){return R(this._skipLocationChange)}_skipLocationChange=m(!1);set replaceUrl(t){this._replaceUrl.set(t)}get replaceUrl(){return R(this._replaceUrl)}_replaceUrl=m(!1);isAnchorElement;onChanges=new rt;applicationErrorHandler=d(ie);options=d(Ot,{optional:!0});reactiveRouterState=d(ls);constructor(t,n,i,o,a,s){this.router=t,this.route=n,this.tabIndexAttribute=i,this.renderer=o,this.el=a,this.locationStrategy=s;let l=a.nativeElement.tagName?.toLowerCase();this.isAnchorElement=l==="a"||l==="area"||!!(typeof customElements=="object"&&customElements.get(l)?.observedAttributes?.includes?.("href"))}setTabIndexIfNotOnNativeEl(t){this.tabIndexAttribute!=null||this.isAnchorElement||this.applyAttributeValue("tabindex",t)}ngOnChanges(t){this.onChanges.next(this)}routerLinkInput=m(null);set routerLink(t){t==null?(this.routerLinkInput.set(null),this.setTabIndexIfNotOnNativeEl(null)):(tt(t)?this.routerLinkInput.set(t):this.routerLinkInput.set(Array.isArray(t)?t:[t]),this.setTabIndexIfNotOnNativeEl("0"))}onClick(t,n,i,o,a){let s=this._urlTree();if(s===null||this.isAnchorElement&&(t!==0||n||i||o||a||typeof this.target=="string"&&this.target!="_self"))return!0;let l={skipLocationChange:this.skipLocationChange,replaceUrl:this.replaceUrl,state:this.state,info:this.info};return this.router.navigateByUrl(s,l)?.catch(c=>{this.applicationErrorHandler(c)}),!this.isAnchorElement}ngOnDestroy(){}applyAttributeValue(t,n){let i=this.renderer,o=this.el.nativeElement;n!==null?i.setAttribute(o,t,n):i.removeAttribute(o,t)}_urlTree=H(()=>{this.reactiveRouterState.path(),this._preserveFragment()&&this.reactiveRouterState.fragment();let t=i=>i==="preserve"||i==="merge";(t(this._queryParamsHandling())||t(this.options?.defaultQueryParamsHandling))&&this.reactiveRouterState.queryParams();let n=this.routerLinkInput();return n===null||!this.router.createUrlTree?null:tt(n)?n:this.router.createUrlTree(n,{relativeTo:this._relativeTo()!==void 0?this._relativeTo():this.route,queryParams:this._queryParams(),fragment:this._fragment(),queryParamsHandling:this._queryParamsHandling(),preserveFragment:this._preserveFragment()})},{equal:(t,n)=>this.computeHref(t)===this.computeHref(n)});get urlTree(){return R(this._urlTree)}computeHref(t){return t!==null&&this.locationStrategy?this.locationStrategy?.prepareExternalUrl(this.router.serializeUrl(t))??"":null}static \u0275fac=function(n){return new(n||e)(A(pt),A(G),Zn("tabindex"),A(tn),A(Xe),A(vr))};static \u0275dir=st({type:e,selectors:[["","routerLink",""]],hostVars:2,hostBindings:function(n,i){n&1&&ar("click",function(a){return i.onClick(a.button,a.ctrlKey,a.shiftKey,a.altKey,a.metaKey)}),n&2&&or("href",i.reactiveHref(),Yn)("target",i._target())},inputs:{target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",state:"state",info:"info",relativeTo:"relativeTo",preserveFragment:[2,"preserveFragment","preserveFragment",F],skipLocationChange:[2,"skipLocationChange","skipLocationChange",F],replaceUrl:[2,"replaceUrl","replaceUrl",F],routerLink:"routerLink"},features:[Mt]})}return e})(),cs=(()=>{class e{router;element;renderer;cdr;links;classes=[];routerEventsSubscription;linkInputChangesSubscription;_isActive=!1;get isActive(){return this._isActive}routerLinkActiveOptions={exact:!1};ariaCurrentWhenActive;isActiveChange=new ot;link=d(je,{optional:!0});constructor(t,n,i,o){this.router=t,this.element=n,this.renderer=i,this.cdr=o,this.routerEventsSubscription=t.events.subscribe(a=>{a instanceof $&&this.update()})}ngAfterContentInit(){g(this.links.changes,g(null)).pipe(Ke()).subscribe(t=>{this.update(),this.subscribeToEachLinkOnChanges()})}subscribeToEachLinkOnChanges(){this.linkInputChangesSubscription?.unsubscribe();let t=[...this.links.toArray(),this.link].filter(n=>!!n).map(n=>n.onChanges);this.linkInputChangesSubscription=O(t).pipe(Ke()).subscribe(n=>{this._isActive!==this.isLinkActive(this.router)(n)&&this.update()})}set routerLinkActive(t){let n=Array.isArray(t)?t:t.split(" ");this.classes=n.filter(i=>!!i)}ngOnChanges(t){this.update()}ngOnDestroy(){this.routerEventsSubscription.unsubscribe(),this.linkInputChangesSubscription?.unsubscribe()}update(){!this.links||!this.router.navigated||queueMicrotask(()=>{let t=this.hasActiveLinks();this.classes.forEach(n=>{t?this.renderer.addClass(this.element.nativeElement,n):this.renderer.removeClass(this.element.nativeElement,n)}),t&&this.ariaCurrentWhenActive!==void 0?this.renderer.setAttribute(this.element.nativeElement,"aria-current",this.ariaCurrentWhenActive.toString()):this.renderer.removeAttribute(this.element.nativeElement,"aria-current"),this._isActive!==t&&(this._isActive=t,this.cdr.markForCheck(),this.isActiveChange.emit(t))})}isLinkActive(t){let n=us(this.routerLinkActiveOptions)?this.routerLinkActiveOptions:this.routerLinkActiveOptions.exact??!1?u({},In):u({},jt);return i=>{let o=i.urlTree;return o?R(En(o,t,n)):!1}}hasActiveLinks(){let t=this.isLinkActive(this.router);return this.link&&t(this.link)||this.links.some(t)}static \u0275fac=function(n){return new(n||e)(A(pt),A(Xe),A(tn),A(se))};static \u0275dir=st({type:e,selectors:[["","routerLinkActive",""]],contentQueries:function(n,i,o){if(n&1&&lr(o,je,5),n&2){let a;cr(a=ur())&&(i.links=a)}},inputs:{routerLinkActiveOptions:"routerLinkActiveOptions",ariaCurrentWhenActive:"ariaCurrentWhenActive",routerLinkActive:"routerLinkActive"},outputs:{isActiveChange:"isActiveChange"},exportAs:["routerLinkActive"],features:[Mt]})}return e})();function us(e){let r=e;return!!(r.paths||r.matrixParams||r.queryParams||r.fragment)}var ds=new I("");function hs(e,...r){return Wn([{provide:Zt,multi:!0,useValue:e},[],{provide:G,useFactory:ps},{provide:rr,multi:!0,useFactory:gs},r.map(t=>t.\u0275providers)])}function ps(){return d(pt).routerState.root}function fs(e,r){return{\u0275kind:e,\u0275providers:r}}function gs(){let e=d(Gn);return r=>{let t=e.get(ir);if(r!==t.components[0])return;let n=e.get(pt),i=e.get(vs);e.get(ms)===1&&n.initialNavigation(),e.get(ys,null,{optional:!0})?.setUpPreloading(),e.get(ds,null,{optional:!0})?.init(),n.resetRootComponentType(t.componentTypes[0]),i.closed||(i.next(),i.complete(),i.unsubscribe())}}var vs=new I("",{factory:()=>new rt}),ms=new I("",{factory:()=>1});var ys=new I("");function bs(){return fs(8,[Mn,{provide:Gt,useExisting:Mn}])}var Ti=`
2
2
  .p-tooltip {
3
3
  position: absolute;
4
4
  display: none;
@@ -58,4 +58,4 @@ import{$ as ot,A as Q,Aa as tr,B as Ke,C as qn,D as U,Da as er,E as ne,Ea as nr,
58
58
  border-top-color: dt('tooltip.background');
59
59
  border-bottom-color: dt('tooltip.background');
60
60
  }
61
- `;var bs={root:"p-tooltip p-component",arrow:"p-tooltip-arrow",text:"p-tooltip-text"},Ci=(()=>{class e extends Ir{name="tooltip";style=Ti;classes=bs;static \u0275fac=(()=>{let t;return function(i){return(t||(t=Nt(e)))(i||e)}})();static \u0275prov=y({token:e,factory:e.\u0275fac})}return e})();var Ii=new I("TOOLTIP_INSTANCE"),Xa=(()=>{class e extends Or{zone;viewContainer;componentName="Tooltip";$pcTooltip=d(Ii,{optional:!0,skipSelf:!0})??void 0;tooltipPosition;tooltipEvent="hover";positionStyle;tooltipStyleClass;tooltipZIndex;escape=!0;showDelay;hideDelay;life;positionTop;positionLeft;autoHide=!0;fitContent=!0;hideOnEscape=!0;showOnEllipsis=!1;content;get disabled(){return this._disabled}set disabled(t){this._disabled=t,this.deactivate()}tooltipOptions;appendTo=at(void 0);$appendTo=H(()=>this.appendTo()||this.config.overlayAppendTo());_tooltipOptions={tooltipLabel:null,tooltipPosition:"right",tooltipEvent:"hover",appendTo:"body",positionStyle:null,tooltipStyleClass:null,tooltipZIndex:"auto",escape:!0,disabled:null,showDelay:null,hideDelay:null,positionTop:null,positionLeft:null,life:null,autoHide:!0,hideOnEscape:!0,showOnEllipsis:!1,id:Cr("pn_id_")+"_tooltip"};_disabled;container;styleClass;tooltipText;rootPTClasses="";showTimeout;hideTimeout;active;mouseEnterListener;mouseLeaveListener;containerMouseleaveListener;clickListener;focusListener;blurListener;touchStartListener;touchEndListener;documentTouchListener;documentEscapeListener;scrollHandler;resizeListener;_componentStyle=d(Ci);interactionInProgress=!1;ptTooltip=at();pTooltipPT=at();pTooltipUnstyled=at();constructor(t,n){super(),this.zone=t,this.viewContainer=n,Je(()=>{let i=this.ptTooltip()||this.pTooltipPT();i&&this.directivePT.set(i)}),Je(()=>{this.pTooltipUnstyled()&&this.directiveUnstyled.set(this.pTooltipUnstyled())})}onAfterViewInit(){mr(this.platformId)&&this.zone.runOutsideAngular(()=>{let t=this.getOption("tooltipEvent");if((t==="hover"||t==="both")&&(this.mouseEnterListener=this.onMouseEnter.bind(this),this.mouseLeaveListener=this.onMouseLeave.bind(this),this.clickListener=this.onInputClick.bind(this),this.el.nativeElement.addEventListener("mouseenter",this.mouseEnterListener),this.el.nativeElement.addEventListener("click",this.clickListener),this.el.nativeElement.addEventListener("mouseleave",this.mouseLeaveListener),this.touchStartListener=this.onTouchStart.bind(this),this.touchEndListener=this.onTouchEnd.bind(this),this.el.nativeElement.addEventListener("touchstart",this.touchStartListener,{passive:!0}),this.el.nativeElement.addEventListener("touchend",this.touchEndListener,{passive:!0})),t==="focus"||t==="both"){this.focusListener=this.onFocus.bind(this),this.blurListener=this.onBlur.bind(this);let n=this.el.nativeElement.querySelector(".p-component");n||(n=this.getTarget(this.el.nativeElement)),n.addEventListener("focus",this.focusListener),n.addEventListener("blur",this.blurListener)}})}onChanges(t){t.tooltipPosition&&this.setOption({tooltipPosition:t.tooltipPosition.currentValue}),t.tooltipEvent&&this.setOption({tooltipEvent:t.tooltipEvent.currentValue}),t.appendTo&&this.setOption({appendTo:t.appendTo.currentValue}),t.positionStyle&&this.setOption({positionStyle:t.positionStyle.currentValue}),t.tooltipStyleClass&&this.setOption({tooltipStyleClass:t.tooltipStyleClass.currentValue}),t.tooltipZIndex&&this.setOption({tooltipZIndex:t.tooltipZIndex.currentValue}),t.escape&&this.setOption({escape:t.escape.currentValue}),t.showDelay&&this.setOption({showDelay:t.showDelay.currentValue}),t.hideDelay&&this.setOption({hideDelay:t.hideDelay.currentValue}),t.life&&this.setOption({life:t.life.currentValue}),t.positionTop&&this.setOption({positionTop:t.positionTop.currentValue}),t.positionLeft&&this.setOption({positionLeft:t.positionLeft.currentValue}),t.disabled&&this.setOption({disabled:t.disabled.currentValue}),t.content&&(this.setOption({tooltipLabel:t.content.currentValue}),this.active&&(t.content.currentValue?this.container&&this.container.offsetParent?(this.updateText(),this.align()):this.show():this.hide())),t.autoHide&&this.setOption({autoHide:t.autoHide.currentValue}),t.showOnEllipsis&&this.setOption({showOnEllipsis:t.showOnEllipsis.currentValue}),t.id&&this.setOption({id:t.id.currentValue}),t.tooltipOptions&&(this._tooltipOptions=u(u({},this._tooltipOptions),t.tooltipOptions.currentValue),this.deactivate(),this.active&&(this.getOption("tooltipLabel")?this.container&&this.container.offsetParent?(this.updateText(),this.align()):this.show():this.hide()))}isAutoHide(){return this.getOption("autoHide")}onMouseEnter(t){!this.container&&!this.showTimeout&&this.activate()}onMouseLeave(t){this.isAutoHide()?this.deactivate():!(Lt(t.relatedTarget,"p-tooltip")||Lt(t.relatedTarget,"p-tooltip-text")||Lt(t.relatedTarget,"p-tooltip-arrow"))&&this.deactivate()}onTouchStart(t){!this.container&&!this.showTimeout&&(this.activate(),this.isAutoHide()||this.bindDocumentTouchListener())}onTouchEnd(t){this.isAutoHide()&&this.deactivate()}bindDocumentTouchListener(){this.documentTouchListener||(this.documentTouchListener=this.renderer.listen("document","touchstart",t=>{this.container&&!this.container.contains(t.target)&&!this.el.nativeElement.contains(t.target)&&(this.deactivate(),this.unbindDocumentTouchListener())}))}unbindDocumentTouchListener(){this.documentTouchListener&&(this.documentTouchListener(),this.documentTouchListener=null)}onFocus(t){this.activate()}onBlur(t){this.deactivate()}onInputClick(t){this.deactivate()}hasEllipsis(){let t=this.el.nativeElement;return t.offsetWidth<t.scrollWidth||t.offsetHeight<t.scrollHeight}activate(){if(!this.interactionInProgress){if(this.getOption("showOnEllipsis")&&!this.hasEllipsis())return;if(this.active=!0,this.clearHideTimeout(),this.getOption("showDelay")?this.showTimeout=setTimeout(()=>{this.show()},this.getOption("showDelay")):this.show(),this.getOption("life")){let t=this.getOption("showDelay")?this.getOption("life")+this.getOption("showDelay"):this.getOption("life");this.hideTimeout=setTimeout(()=>{this.hide()},t)}this.getOption("hideOnEscape")&&(this.documentEscapeListener=this.renderer.listen("document","keydown.escape",()=>{this.deactivate(),this.documentEscapeListener?.()})),this.interactionInProgress=!0}}deactivate(){this.interactionInProgress=!1,this.active=!1,this.clearShowTimeout(),this.getOption("hideDelay")?(this.clearHideTimeout(),this.hideTimeout=setTimeout(()=>{this.hide()},this.getOption("hideDelay"))):this.hide(),this.documentEscapeListener&&this.documentEscapeListener()}create(){this.container&&(this.clearHideTimeout(),this.remove()),this.container=le("div",{class:this.cx("root"),"p-bind":this.ptm("root"),"data-pc-section":"root"}),this.container.setAttribute("role","tooltip");let t=le("div",{class:this.cx("arrow"),"p-bind":this.ptm("arrow"),"data-pc-section":"arrow"});this.container.appendChild(t),this.tooltipText=le("div",{class:this.cx("text"),"p-bind":this.ptm("text"),"data-pc-section":"text"}),this.updateText(),this.getOption("positionStyle")&&(this.container.style.position=this.getOption("positionStyle")),this.container.appendChild(this.tooltipText),this.getOption("appendTo")==="body"?document.body.appendChild(this.container):this.getOption("appendTo")==="target"?rn(this.container,this.el.nativeElement):rn(this.getOption("appendTo"),this.container),this.container.style.display="none",this.fitContent&&(this.container.style.width="fit-content"),this.isAutoHide()?this.container.style.pointerEvents="none":(this.container.style.pointerEvents="unset",this.bindContainerMouseleaveListener())}bindContainerMouseleaveListener(){if(!this.containerMouseleaveListener){let t=this.container??this.container.nativeElement;this.containerMouseleaveListener=this.renderer.listen(t,"mouseleave",n=>{this.deactivate()})}}unbindContainerMouseleaveListener(){this.containerMouseleaveListener&&(this.bindContainerMouseleaveListener(),this.containerMouseleaveListener=null)}show(){if(!this.getOption("tooltipLabel")||this.getOption("disabled"))return;this.create(),this.el.nativeElement.closest("p-dialog")?setTimeout(()=>{this.container&&(this.container.style.display="inline-block"),this.container&&this.align()},100):(this.container.style.display="inline-block",this.align()),Sr(this.container,250),this.getOption("tooltipZIndex")==="auto"?ue.set("tooltip",this.container,this.config.zIndex.tooltip):this.container.style.zIndex=this.getOption("tooltipZIndex"),this.bindDocumentResizeListener(),this.bindScrollListener()}hide(){this.getOption("tooltipZIndex")==="auto"&&ue.clear(this.container),this.remove()}updateText(){let t=this.getOption("tooltipLabel");if(t&&typeof t.createEmbeddedView=="function"){let n=this.viewContainer.createEmbeddedView(t);n.detectChanges(),n.rootNodes.forEach(i=>this.tooltipText.appendChild(i))}else this.getOption("escape")?(this.tooltipText.innerHTML="",this.tooltipText.appendChild(document.createTextNode(t))):this.tooltipText.innerHTML=t}align(){let t=this.getOption("tooltipPosition"),i={top:[this.alignTop,this.alignBottom,this.alignRight,this.alignLeft],bottom:[this.alignBottom,this.alignTop,this.alignRight,this.alignLeft],left:[this.alignLeft,this.alignRight,this.alignTop,this.alignBottom],right:[this.alignRight,this.alignLeft,this.alignTop,this.alignBottom]}[t]||[];for(let[o,a]of i.entries())if(o===0)a.call(this);else if(this.isOutOfBounds())a.call(this);else break}getHostOffset(){if(this.getOption("appendTo")==="body"||this.getOption("appendTo")==="target"){let t=this.el.nativeElement.getBoundingClientRect(),n=t.left+Rr(),i=t.top+wr();return{left:n,top:i}}else return{left:0,top:0}}get activeElement(){return this.el.nativeElement.nodeName.startsWith("P-")?ce(this.el.nativeElement,".p-component"):this.el.nativeElement}alignRight(){this.preAlign("right");let t=this.activeElement,n=z(t),i=(Y(t)-Y(this.container))/2;this.alignTooltip(n,i);let o=this.getArrowElement();o.style.top="50%",o.style.right=null,o.style.bottom=null,o.style.left="0"}alignLeft(){this.preAlign("left");let t=this.getArrowElement(),n=z(this.container),i=(Y(this.el.nativeElement)-Y(this.container))/2;this.alignTooltip(-n,i),t.style.top="50%",t.style.right="0",t.style.bottom=null,t.style.left=null}alignTop(){this.preAlign("top");let t=this.getArrowElement(),n=this.getHostOffset(),i=z(this.container),o=(z(this.el.nativeElement)-z(this.container))/2,a=Y(this.container);this.alignTooltip(o,-a);let s=n.left-this.getHostOffset().left+i/2;t.style.top=null,t.style.right=null,t.style.bottom="0",t.style.left=s+"px"}getArrowElement(){return ce(this.container,'[data-pc-section="arrow"]')}alignBottom(){this.preAlign("bottom");let t=this.getArrowElement(),n=z(this.container),i=this.getHostOffset(),o=(z(this.el.nativeElement)-z(this.container))/2,a=Y(this.el.nativeElement);this.alignTooltip(o,a);let s=i.left-this.getHostOffset().left+n/2;t.style.top="0",t.style.right=null,t.style.bottom=null,t.style.left=s+"px"}alignTooltip(t,n){let i=this.getHostOffset(),o=i.left+t,a=i.top+n;this.container.style.left=o+this.getOption("positionLeft")+"px",this.container.style.top=a+this.getOption("positionTop")+"px"}setOption(t){this._tooltipOptions=u(u({},this._tooltipOptions),t)}getOption(t){return this._tooltipOptions[t]}getTarget(t){return Lt(t,"p-inputwrapper")?ce(t,"input"):t}preAlign(t){this.container.style.left="-999px",this.container.style.top="-999px",this.container.className=this.cn(this.cx("root"),this.ptm("root")?.class,"p-tooltip-"+t,this.getOption("tooltipStyleClass"))}isOutOfBounds(){let t=this.container.getBoundingClientRect(),n=t.top,i=t.left,o=z(this.container),a=Y(this.container),s=br();return i+o>s.width||i<0||n<0||n+a>s.height}onWindowResize(t){this.hide()}bindDocumentResizeListener(){this.zone.runOutsideAngular(()=>{this.resizeListener=this.onWindowResize.bind(this),window.addEventListener("resize",this.resizeListener)})}unbindDocumentResizeListener(){this.resizeListener&&(window.removeEventListener("resize",this.resizeListener),this.resizeListener=null)}bindScrollListener(){this.scrollHandler||(this.scrollHandler=new Ar(this.el.nativeElement,()=>{this.container&&this.hide()})),this.scrollHandler.bindScrollListener()}unbindScrollListener(){this.scrollHandler&&this.scrollHandler.unbindScrollListener()}unbindEvents(){let t=this.getOption("tooltipEvent");if((t==="hover"||t==="both")&&(this.el.nativeElement.removeEventListener("mouseenter",this.mouseEnterListener),this.el.nativeElement.removeEventListener("mouseleave",this.mouseLeaveListener),this.el.nativeElement.removeEventListener("click",this.clickListener),this.el.nativeElement.removeEventListener("touchstart",this.touchStartListener),this.el.nativeElement.removeEventListener("touchend",this.touchEndListener),this.unbindDocumentTouchListener()),t==="focus"||t==="both"){let n=this.el.nativeElement.querySelector(".p-component");n||(n=this.getTarget(this.el.nativeElement)),n.removeEventListener("focus",this.focusListener),n.removeEventListener("blur",this.blurListener)}this.unbindDocumentResizeListener()}remove(){this.container&&this.container.parentElement&&(this.getOption("appendTo")==="body"?document.body.removeChild(this.container):this.getOption("appendTo")==="target"?this.el.nativeElement.removeChild(this.container):Tr(this.getOption("appendTo"),this.container)),this.unbindDocumentResizeListener(),this.unbindScrollListener(),this.unbindContainerMouseleaveListener(),this.unbindDocumentTouchListener(),this.clearTimeouts(),this.container=null,this.scrollHandler=null}clearShowTimeout(){this.showTimeout&&(clearTimeout(this.showTimeout),this.showTimeout=null)}clearHideTimeout(){this.hideTimeout&&(clearTimeout(this.hideTimeout),this.hideTimeout=null)}clearTimeouts(){this.clearShowTimeout(),this.clearHideTimeout()}onDestroy(){this.unbindEvents(),this.container&&ue.clear(this.container),this.remove(),this.scrollHandler&&(this.scrollHandler.destroy(),this.scrollHandler=null),this.documentEscapeListener&&this.documentEscapeListener()}static \u0275fac=function(n){return new(n||e)(A(Ye),A(oe))};static \u0275dir=st({type:e,selectors:[["","pTooltip",""]],inputs:{tooltipPosition:"tooltipPosition",tooltipEvent:"tooltipEvent",positionStyle:"positionStyle",tooltipStyleClass:"tooltipStyleClass",tooltipZIndex:"tooltipZIndex",escape:[2,"escape","escape",F],showDelay:[2,"showDelay","showDelay",gt],hideDelay:[2,"hideDelay","hideDelay",gt],life:[2,"life","life",gt],positionTop:[2,"positionTop","positionTop",gt],positionLeft:[2,"positionLeft","positionLeft",gt],autoHide:[2,"autoHide","autoHide",F],fitContent:[2,"fitContent","fitContent",F],hideOnEscape:[2,"hideOnEscape","hideOnEscape",F],showOnEllipsis:[2,"showOnEllipsis","showOnEllipsis",F],content:[0,"pTooltip","content"],disabled:[0,"tooltipDisabled","disabled"],tooltipOptions:"tooltipOptions",appendTo:[1,"appendTo"],ptTooltip:[1,"ptTooltip"],pTooltipPT:[1,"pTooltipPT"],pTooltipUnstyled:[1,"pTooltipUnstyled"]},features:[dr([Ci,{provide:Ii,useExisting:e},{provide:Er,useExisting:e}]),tr]})}return e})(),tl=(()=>{class e{static \u0275fac=function(n){return new(n||e)};static \u0275mod=nn({type:e});static \u0275inj=Ge({imports:[on,on]})}return e})();var Rs=new Set(["stale-body","stale-frontmatter","stale-both"]);function $e(e){return e?Rs.has(e.status??null):!1}function Yt(e){let r=e.metadata;return r&&typeof r=="object"&&!Array.isArray(r)?r:null}function ol(e){if(!e)return null;let r=e.sidecar?.annotations;if(r&&typeof r.version=="number")return`v${r.version}`;let t=Yt(e.frontmatter)?.version;return typeof t=="string"&&t.length>0?`v${t}`:null}function Pn(e){if(!e)return null;let t=e.sidecar?.annotations?.stability;if(t==="stable"||t==="experimental"||t==="deprecated")return t;let n=Yt(e.frontmatter)?.stability;return n==="stable"||n==="experimental"||n==="deprecated"?n:null}function sl(e){if(!e)return[];let r=e.frontmatter,t=[];if(e.kind==="agent"&&Array.isArray(r.tools))for(let n of r.tools)typeof n=="string"&&n.length>0&&t.push(n);if(e.kind==="skill"||e.kind==="command"){let n=r["allowed-tools"];if(Array.isArray(n))for(let i of n)typeof i=="string"&&i.length>0&&t.push(i);else typeof n=="string"&&n.length>0&&t.push(n)}return t}function al(e){return $e(e?.sidecar)}function ll(e,r){switch(e?.sidecar?.status){case"stale-body":return r.staleBody;case"stale-frontmatter":return r.staleFrontmatter;case"stale-both":return r.staleBoth;default:return""}}function cl(e){return e<1e3?`${e}`:e<1e4?`${(e/1e3).toFixed(1).replace(/\.0$/,"")}k`:`${Math.round(e/1e3)}k`}function ul(e){let r=new Date(e);if(isNaN(r.getTime()))return e;let t=Date.now()-r.getTime(),n=Math.floor(t/1e3);if(n<60)return"just now";let i=Math.floor(n/60);if(i<60)return`${i} minute${i===1?"":"s"} ago`;let o=Math.floor(i/60);if(o<24)return`${o} hour${o===1?"":"s"} ago`;let a=Math.floor(o/24);if(a<30)return`${a} day${a===1?"":"s"} ago`;let s=Math.floor(a/30);if(s<12)return`${s} month${s===1?"":"s"} ago`;let l=Math.floor(a/365);return`${l} year${l===1?"":"s"} ago`}var Ei={invalidHex:e=>`deriveTints: invalid hex color "${e}" (expected #RRGGBB)`};function He(e,r,t){return[Math.round(e[0]+(r[0]-e[0])*t),Math.round(e[1]+(r[1]-e[1])*t),Math.round(e[2]+(r[2]-e[2])*t)]}function ws(e){let r=/^#([0-9a-f]{6})$/i.exec(e);if(!r)throw new Error(Ei.invalidHex(e));let t=parseInt(r[1],16);return[t>>16&255,t>>8&255,t&255]}function Fe([e,r,t]){let n=i=>Math.max(0,Math.min(255,i)).toString(16).padStart(2,"0");return`#${n(e)}${n(r)}${n(t)}`}var Oi=[255,255,255],Ai=[0,0,0];function Un(e,r){let t=ws(e);return r==="light"?{bg:Fe(He(t,Oi,.85)),fg:Fe(He(t,Ai,.5))}:{bg:Fe(He(t,Ai,.7)),fg:Fe(He(t,Oi,.6))}}var Ss=/^[a-zA-Z][a-zA-Z0-9_-]{0,63}$/,ze=class e{doc=d(Qe);_entries=m([]);kinds=this._entries.asReadonly();index=H(()=>{let r=new Map;for(let t of this._entries())r.set(t.name,t);return r});ingest(r){if(!r)return;let t=[];for(let[i,o]of Object.entries(r)){if(!Ss.test(i))continue;let a=o.providers[o.primaryProviderId];if(!a)continue;let s={name:i,primaryProviderId:o.primaryProviderId,providers:o.providers,label:a.label,color:a.color};a.colorDark!==void 0&&(s.colorDark=a.colorDark),a.emoji!==void 0&&(s.emoji=a.emoji),a.icon!==void 0&&(s.icon=a.icon),t.push(s)}let n=this._entries();Cs(n,t)||(this._entries.set(t),this.applyCssVars())}lookup(r){return this.index().get(r)}labelOf(r){return this.lookup(r)?.label??r}colorOf(r,t="light"){let n=this.lookup(r);return n?t==="dark"?n.colorDark??n.color:n.color:"#9ca3af"}iconOf(r){return this.lookup(r)?.icon}emojiOf(r){return this.lookup(r)?.emoji}providersOf(r){return this.lookup(r)?.providers}applyCssVars(){if(!this.doc.head)return;let r=Ts(this.doc),t=[],n=[];for(let i of this._entries())try{let o=Un(i.color,"light"),a=i.colorDark??i.color,s=Un(a,"dark");t.push(`--sm-kind-${i.name}: ${i.color};`),t.push(`--sm-kind-${i.name}-bg: ${o.bg};`),t.push(`--sm-kind-${i.name}-fg: ${o.fg};`),n.push(`--sm-kind-${i.name}: ${a};`),n.push(`--sm-kind-${i.name}-bg: ${s.bg};`),n.push(`--sm-kind-${i.name}-fg: ${s.fg};`)}catch{continue}r.textContent=`:root { ${t.join(" ")} } .app-dark { ${n.join(" ")} }`}static \u0275fac=function(t){return new(t||e)};static \u0275prov=y({token:e,factory:e.\u0275fac,providedIn:"root"})},Di="sm-kind-vars";function Ts(e){let r=e.getElementById(Di);return r||(r=e.createElement("style"),r.id=Di,e.head.appendChild(r)),r}function Cs(e,r){if(e.length!==r.length)return!1;for(let t=0;t<e.length;t++){let n=e[t],i=r[t];if(n.name!==i.name||n.primaryProviderId!==i.primaryProviderId||JSON.stringify(n.providers)!==JSON.stringify(i.providers))return!1}return!0}var Il=["stable","experimental","deprecated"],Mi=class e{kindRegistry=d(ze);_searchText=m("");_selectedKinds=m([]);_selectedStabilities=m([]);_hasIssuesOnly=m(!1);_staleOnly=m(!1);_favoritesOnly=m(!1);searchText=this._searchText.asReadonly();selectedKinds=this._selectedKinds.asReadonly();selectedStabilities=this._selectedStabilities.asReadonly();hasIssuesOnly=this._hasIssuesOnly.asReadonly();staleOnly=this._staleOnly.asReadonly();favoritesOnly=this._favoritesOnly.asReadonly();isActive=H(()=>this._searchText().trim().length>0||this._selectedKinds().length>0||this._selectedStabilities().length>0||this._hasIssuesOnly()||this._staleOnly()||this._favoritesOnly());setSearchText(r){this._searchText.set(r)}setKinds(r){this._selectedKinds.set([...r])}toggleKind(r){let t=this._selectedKinds(),n=this.kindRegistry.kinds().map(o=>o.name),i=t.length===0?new Set(n):new Set(t);i.has(r)?i.delete(r):i.add(r),i.size===n.length?this._selectedKinds.set([]):this._selectedKinds.set([...i])}isKindActive(r){let t=this._selectedKinds();return t.length===0?!0:t.includes(r)}setStabilities(r){this._selectedStabilities.set([...r])}setHasIssuesOnly(r){this._hasIssuesOnly.set(r)}setStaleOnly(r){this._staleOnly.set(r)}setFavoritesOnly(r){this._favoritesOnly.set(r)}reset(){this._searchText.set(""),this._selectedKinds.set([]),this._selectedStabilities.set([]),this._hasIssuesOnly.set(!1),this._staleOnly.set(!1),this._favoritesOnly.set(!1)}apply(r){let t=this.searchText().trim().toLowerCase(),n=this.selectedKinds(),i=this.selectedStabilities(),o=this.hasIssuesOnly(),a=this.staleOnly(),s=this.favoritesOnly();return r.filter(l=>{if(t&&![l.path,l.frontmatter.name??"",l.frontmatter.description??""].join(" ").toLowerCase().includes(t)||n.length>0&&!n.includes(l.kind))return!1;if(i.length>0){let c=Pn(l);if(!c||!i.includes(c))return!1}return!(o&&!Is(l)||a&&!$e(l.sidecar)||s&&l.isFavorite!==!0)})}static \u0275fac=function(t){return new(t||e)};static \u0275prov=y({token:e,factory:e.\u0275fac,providedIn:"root"})};function Is(e){if(Pn(e)==="deprecated")return!0;let t=e.sidecar?.annotations?.supersededBy;if(typeof t=="string"&&t.length>0)return!0;let n=Yt(e.frontmatter)?.supersededBy;return typeof n=="string"&&n.length>0}export{$ as a,G as b,Dn as c,xn as d,pt as e,je as f,ls as g,ds as h,ys as i,Xa as j,tl as k,$e as l,Yt as m,ol as n,Pn as o,sl as p,al as q,ll as r,cl as s,ul as t,ze as u,Il as v,Mi as w};
61
+ `;var Rs={root:"p-tooltip p-component",arrow:"p-tooltip-arrow",text:"p-tooltip-text"},Ci=(()=>{class e extends Ir{name="tooltip";style=Ti;classes=Rs;static \u0275fac=(()=>{let t;return function(i){return(t||(t=Nt(e)))(i||e)}})();static \u0275prov=y({token:e,factory:e.\u0275fac})}return e})();var Ii=new I("TOOLTIP_INSTANCE"),tl=(()=>{class e extends Or{zone;viewContainer;componentName="Tooltip";$pcTooltip=d(Ii,{optional:!0,skipSelf:!0})??void 0;tooltipPosition;tooltipEvent="hover";positionStyle;tooltipStyleClass;tooltipZIndex;escape=!0;showDelay;hideDelay;life;positionTop;positionLeft;autoHide=!0;fitContent=!0;hideOnEscape=!0;showOnEllipsis=!1;content;get disabled(){return this._disabled}set disabled(t){this._disabled=t,this.deactivate()}tooltipOptions;appendTo=at(void 0);$appendTo=H(()=>this.appendTo()||this.config.overlayAppendTo());_tooltipOptions={tooltipLabel:null,tooltipPosition:"right",tooltipEvent:"hover",appendTo:"body",positionStyle:null,tooltipStyleClass:null,tooltipZIndex:"auto",escape:!0,disabled:null,showDelay:null,hideDelay:null,positionTop:null,positionLeft:null,life:null,autoHide:!0,hideOnEscape:!0,showOnEllipsis:!1,id:Cr("pn_id_")+"_tooltip"};_disabled;container;styleClass;tooltipText;rootPTClasses="";showTimeout;hideTimeout;active;mouseEnterListener;mouseLeaveListener;containerMouseleaveListener;clickListener;focusListener;blurListener;touchStartListener;touchEndListener;documentTouchListener;documentEscapeListener;scrollHandler;resizeListener;_componentStyle=d(Ci);interactionInProgress=!1;ptTooltip=at();pTooltipPT=at();pTooltipUnstyled=at();constructor(t,n){super(),this.zone=t,this.viewContainer=n,Je(()=>{let i=this.ptTooltip()||this.pTooltipPT();i&&this.directivePT.set(i)}),Je(()=>{this.pTooltipUnstyled()&&this.directiveUnstyled.set(this.pTooltipUnstyled())})}onAfterViewInit(){mr(this.platformId)&&this.zone.runOutsideAngular(()=>{let t=this.getOption("tooltipEvent");if((t==="hover"||t==="both")&&(this.mouseEnterListener=this.onMouseEnter.bind(this),this.mouseLeaveListener=this.onMouseLeave.bind(this),this.clickListener=this.onInputClick.bind(this),this.el.nativeElement.addEventListener("mouseenter",this.mouseEnterListener),this.el.nativeElement.addEventListener("click",this.clickListener),this.el.nativeElement.addEventListener("mouseleave",this.mouseLeaveListener),this.touchStartListener=this.onTouchStart.bind(this),this.touchEndListener=this.onTouchEnd.bind(this),this.el.nativeElement.addEventListener("touchstart",this.touchStartListener,{passive:!0}),this.el.nativeElement.addEventListener("touchend",this.touchEndListener,{passive:!0})),t==="focus"||t==="both"){this.focusListener=this.onFocus.bind(this),this.blurListener=this.onBlur.bind(this);let n=this.el.nativeElement.querySelector(".p-component");n||(n=this.getTarget(this.el.nativeElement)),n.addEventListener("focus",this.focusListener),n.addEventListener("blur",this.blurListener)}})}onChanges(t){t.tooltipPosition&&this.setOption({tooltipPosition:t.tooltipPosition.currentValue}),t.tooltipEvent&&this.setOption({tooltipEvent:t.tooltipEvent.currentValue}),t.appendTo&&this.setOption({appendTo:t.appendTo.currentValue}),t.positionStyle&&this.setOption({positionStyle:t.positionStyle.currentValue}),t.tooltipStyleClass&&this.setOption({tooltipStyleClass:t.tooltipStyleClass.currentValue}),t.tooltipZIndex&&this.setOption({tooltipZIndex:t.tooltipZIndex.currentValue}),t.escape&&this.setOption({escape:t.escape.currentValue}),t.showDelay&&this.setOption({showDelay:t.showDelay.currentValue}),t.hideDelay&&this.setOption({hideDelay:t.hideDelay.currentValue}),t.life&&this.setOption({life:t.life.currentValue}),t.positionTop&&this.setOption({positionTop:t.positionTop.currentValue}),t.positionLeft&&this.setOption({positionLeft:t.positionLeft.currentValue}),t.disabled&&this.setOption({disabled:t.disabled.currentValue}),t.content&&(this.setOption({tooltipLabel:t.content.currentValue}),this.active&&(t.content.currentValue?this.container&&this.container.offsetParent?(this.updateText(),this.align()):this.show():this.hide())),t.autoHide&&this.setOption({autoHide:t.autoHide.currentValue}),t.showOnEllipsis&&this.setOption({showOnEllipsis:t.showOnEllipsis.currentValue}),t.id&&this.setOption({id:t.id.currentValue}),t.tooltipOptions&&(this._tooltipOptions=u(u({},this._tooltipOptions),t.tooltipOptions.currentValue),this.deactivate(),this.active&&(this.getOption("tooltipLabel")?this.container&&this.container.offsetParent?(this.updateText(),this.align()):this.show():this.hide()))}isAutoHide(){return this.getOption("autoHide")}onMouseEnter(t){!this.container&&!this.showTimeout&&this.activate()}onMouseLeave(t){this.isAutoHide()?this.deactivate():!(Lt(t.relatedTarget,"p-tooltip")||Lt(t.relatedTarget,"p-tooltip-text")||Lt(t.relatedTarget,"p-tooltip-arrow"))&&this.deactivate()}onTouchStart(t){!this.container&&!this.showTimeout&&(this.activate(),this.isAutoHide()||this.bindDocumentTouchListener())}onTouchEnd(t){this.isAutoHide()&&this.deactivate()}bindDocumentTouchListener(){this.documentTouchListener||(this.documentTouchListener=this.renderer.listen("document","touchstart",t=>{this.container&&!this.container.contains(t.target)&&!this.el.nativeElement.contains(t.target)&&(this.deactivate(),this.unbindDocumentTouchListener())}))}unbindDocumentTouchListener(){this.documentTouchListener&&(this.documentTouchListener(),this.documentTouchListener=null)}onFocus(t){this.activate()}onBlur(t){this.deactivate()}onInputClick(t){this.deactivate()}hasEllipsis(){let t=this.el.nativeElement;return t.offsetWidth<t.scrollWidth||t.offsetHeight<t.scrollHeight}activate(){if(!this.interactionInProgress){if(this.getOption("showOnEllipsis")&&!this.hasEllipsis())return;if(this.active=!0,this.clearHideTimeout(),this.getOption("showDelay")?this.showTimeout=setTimeout(()=>{this.show()},this.getOption("showDelay")):this.show(),this.getOption("life")){let t=this.getOption("showDelay")?this.getOption("life")+this.getOption("showDelay"):this.getOption("life");this.hideTimeout=setTimeout(()=>{this.hide()},t)}this.getOption("hideOnEscape")&&(this.documentEscapeListener=this.renderer.listen("document","keydown.escape",()=>{this.deactivate(),this.documentEscapeListener?.()})),this.interactionInProgress=!0}}deactivate(){this.interactionInProgress=!1,this.active=!1,this.clearShowTimeout(),this.getOption("hideDelay")?(this.clearHideTimeout(),this.hideTimeout=setTimeout(()=>{this.hide()},this.getOption("hideDelay"))):this.hide(),this.documentEscapeListener&&this.documentEscapeListener()}create(){this.container&&(this.clearHideTimeout(),this.remove()),this.container=le("div",{class:this.cx("root"),"p-bind":this.ptm("root"),"data-pc-section":"root"}),this.container.setAttribute("role","tooltip");let t=le("div",{class:this.cx("arrow"),"p-bind":this.ptm("arrow"),"data-pc-section":"arrow"});this.container.appendChild(t),this.tooltipText=le("div",{class:this.cx("text"),"p-bind":this.ptm("text"),"data-pc-section":"text"}),this.updateText(),this.getOption("positionStyle")&&(this.container.style.position=this.getOption("positionStyle")),this.container.appendChild(this.tooltipText),this.getOption("appendTo")==="body"?document.body.appendChild(this.container):this.getOption("appendTo")==="target"?rn(this.container,this.el.nativeElement):rn(this.getOption("appendTo"),this.container),this.container.style.display="none",this.fitContent&&(this.container.style.width="fit-content"),this.isAutoHide()?this.container.style.pointerEvents="none":(this.container.style.pointerEvents="unset",this.bindContainerMouseleaveListener())}bindContainerMouseleaveListener(){if(!this.containerMouseleaveListener){let t=this.container??this.container.nativeElement;this.containerMouseleaveListener=this.renderer.listen(t,"mouseleave",n=>{this.deactivate()})}}unbindContainerMouseleaveListener(){this.containerMouseleaveListener&&(this.bindContainerMouseleaveListener(),this.containerMouseleaveListener=null)}show(){if(!this.getOption("tooltipLabel")||this.getOption("disabled"))return;this.create(),this.el.nativeElement.closest("p-dialog")?setTimeout(()=>{this.container&&(this.container.style.display="inline-block"),this.container&&this.align()},100):(this.container.style.display="inline-block",this.align()),Sr(this.container,250),this.getOption("tooltipZIndex")==="auto"?ue.set("tooltip",this.container,this.config.zIndex.tooltip):this.container.style.zIndex=this.getOption("tooltipZIndex"),this.bindDocumentResizeListener(),this.bindScrollListener()}hide(){this.getOption("tooltipZIndex")==="auto"&&ue.clear(this.container),this.remove()}updateText(){let t=this.getOption("tooltipLabel");if(t&&typeof t.createEmbeddedView=="function"){let n=this.viewContainer.createEmbeddedView(t);n.detectChanges(),n.rootNodes.forEach(i=>this.tooltipText.appendChild(i))}else this.getOption("escape")?(this.tooltipText.innerHTML="",this.tooltipText.appendChild(document.createTextNode(t))):this.tooltipText.innerHTML=t}align(){let t=this.getOption("tooltipPosition"),i={top:[this.alignTop,this.alignBottom,this.alignRight,this.alignLeft],bottom:[this.alignBottom,this.alignTop,this.alignRight,this.alignLeft],left:[this.alignLeft,this.alignRight,this.alignTop,this.alignBottom],right:[this.alignRight,this.alignLeft,this.alignTop,this.alignBottom]}[t]||[];for(let[o,a]of i.entries())if(o===0)a.call(this);else if(this.isOutOfBounds())a.call(this);else break}getHostOffset(){if(this.getOption("appendTo")==="body"||this.getOption("appendTo")==="target"){let t=this.el.nativeElement.getBoundingClientRect(),n=t.left+Rr(),i=t.top+wr();return{left:n,top:i}}else return{left:0,top:0}}get activeElement(){return this.el.nativeElement.nodeName.startsWith("P-")?ce(this.el.nativeElement,".p-component"):this.el.nativeElement}alignRight(){this.preAlign("right");let t=this.activeElement,n=z(t),i=(Y(t)-Y(this.container))/2;this.alignTooltip(n,i);let o=this.getArrowElement();o.style.top="50%",o.style.right=null,o.style.bottom=null,o.style.left="0"}alignLeft(){this.preAlign("left");let t=this.getArrowElement(),n=z(this.container),i=(Y(this.el.nativeElement)-Y(this.container))/2;this.alignTooltip(-n,i),t.style.top="50%",t.style.right="0",t.style.bottom=null,t.style.left=null}alignTop(){this.preAlign("top");let t=this.getArrowElement(),n=this.getHostOffset(),i=z(this.container),o=(z(this.el.nativeElement)-z(this.container))/2,a=Y(this.container);this.alignTooltip(o,-a);let s=n.left-this.getHostOffset().left+i/2;t.style.top=null,t.style.right=null,t.style.bottom="0",t.style.left=s+"px"}getArrowElement(){return ce(this.container,'[data-pc-section="arrow"]')}alignBottom(){this.preAlign("bottom");let t=this.getArrowElement(),n=z(this.container),i=this.getHostOffset(),o=(z(this.el.nativeElement)-z(this.container))/2,a=Y(this.el.nativeElement);this.alignTooltip(o,a);let s=i.left-this.getHostOffset().left+n/2;t.style.top="0",t.style.right=null,t.style.bottom=null,t.style.left=s+"px"}alignTooltip(t,n){let i=this.getHostOffset(),o=i.left+t,a=i.top+n;this.container.style.left=o+this.getOption("positionLeft")+"px",this.container.style.top=a+this.getOption("positionTop")+"px"}setOption(t){this._tooltipOptions=u(u({},this._tooltipOptions),t)}getOption(t){return this._tooltipOptions[t]}getTarget(t){return Lt(t,"p-inputwrapper")?ce(t,"input"):t}preAlign(t){this.container.style.left="-999px",this.container.style.top="-999px",this.container.className=this.cn(this.cx("root"),this.ptm("root")?.class,"p-tooltip-"+t,this.getOption("tooltipStyleClass"))}isOutOfBounds(){let t=this.container.getBoundingClientRect(),n=t.top,i=t.left,o=z(this.container),a=Y(this.container),s=br();return i+o>s.width||i<0||n<0||n+a>s.height}onWindowResize(t){this.hide()}bindDocumentResizeListener(){this.zone.runOutsideAngular(()=>{this.resizeListener=this.onWindowResize.bind(this),window.addEventListener("resize",this.resizeListener)})}unbindDocumentResizeListener(){this.resizeListener&&(window.removeEventListener("resize",this.resizeListener),this.resizeListener=null)}bindScrollListener(){this.scrollHandler||(this.scrollHandler=new Ar(this.el.nativeElement,()=>{this.container&&this.hide()})),this.scrollHandler.bindScrollListener()}unbindScrollListener(){this.scrollHandler&&this.scrollHandler.unbindScrollListener()}unbindEvents(){let t=this.getOption("tooltipEvent");if((t==="hover"||t==="both")&&(this.el.nativeElement.removeEventListener("mouseenter",this.mouseEnterListener),this.el.nativeElement.removeEventListener("mouseleave",this.mouseLeaveListener),this.el.nativeElement.removeEventListener("click",this.clickListener),this.el.nativeElement.removeEventListener("touchstart",this.touchStartListener),this.el.nativeElement.removeEventListener("touchend",this.touchEndListener),this.unbindDocumentTouchListener()),t==="focus"||t==="both"){let n=this.el.nativeElement.querySelector(".p-component");n||(n=this.getTarget(this.el.nativeElement)),n.removeEventListener("focus",this.focusListener),n.removeEventListener("blur",this.blurListener)}this.unbindDocumentResizeListener()}remove(){this.container&&this.container.parentElement&&(this.getOption("appendTo")==="body"?document.body.removeChild(this.container):this.getOption("appendTo")==="target"?this.el.nativeElement.removeChild(this.container):Tr(this.getOption("appendTo"),this.container)),this.unbindDocumentResizeListener(),this.unbindScrollListener(),this.unbindContainerMouseleaveListener(),this.unbindDocumentTouchListener(),this.clearTimeouts(),this.container=null,this.scrollHandler=null}clearShowTimeout(){this.showTimeout&&(clearTimeout(this.showTimeout),this.showTimeout=null)}clearHideTimeout(){this.hideTimeout&&(clearTimeout(this.hideTimeout),this.hideTimeout=null)}clearTimeouts(){this.clearShowTimeout(),this.clearHideTimeout()}onDestroy(){this.unbindEvents(),this.container&&ue.clear(this.container),this.remove(),this.scrollHandler&&(this.scrollHandler.destroy(),this.scrollHandler=null),this.documentEscapeListener&&this.documentEscapeListener()}static \u0275fac=function(n){return new(n||e)(A(Ye),A(oe))};static \u0275dir=st({type:e,selectors:[["","pTooltip",""]],inputs:{tooltipPosition:"tooltipPosition",tooltipEvent:"tooltipEvent",positionStyle:"positionStyle",tooltipStyleClass:"tooltipStyleClass",tooltipZIndex:"tooltipZIndex",escape:[2,"escape","escape",F],showDelay:[2,"showDelay","showDelay",gt],hideDelay:[2,"hideDelay","hideDelay",gt],life:[2,"life","life",gt],positionTop:[2,"positionTop","positionTop",gt],positionLeft:[2,"positionLeft","positionLeft",gt],autoHide:[2,"autoHide","autoHide",F],fitContent:[2,"fitContent","fitContent",F],hideOnEscape:[2,"hideOnEscape","hideOnEscape",F],showOnEllipsis:[2,"showOnEllipsis","showOnEllipsis",F],content:[0,"pTooltip","content"],disabled:[0,"tooltipDisabled","disabled"],tooltipOptions:"tooltipOptions",appendTo:[1,"appendTo"],ptTooltip:[1,"ptTooltip"],pTooltipPT:[1,"pTooltipPT"],pTooltipUnstyled:[1,"pTooltipUnstyled"]},features:[dr([Ci,{provide:Ii,useExisting:e},{provide:Er,useExisting:e}]),tr]})}return e})(),el=(()=>{class e{static \u0275fac=function(n){return new(n||e)};static \u0275mod=nn({type:e});static \u0275inj=Ge({imports:[on,on]})}return e})();var ws=new Set(["stale-body","stale-frontmatter","stale-both"]);function $e(e){return e?ws.has(e.status??null):!1}function Yt(e){let r=e.metadata;return r&&typeof r=="object"&&!Array.isArray(r)?r:null}function sl(e){if(!e)return null;let r=e.sidecar?.annotations;if(r&&typeof r.version=="number")return`v${r.version}`;let t=Yt(e.frontmatter)?.version;return typeof t=="string"&&t.length>0?`v${t}`:null}function Pn(e){if(!e)return null;let t=e.sidecar?.annotations?.stability;if(t==="stable"||t==="experimental"||t==="deprecated")return t;let n=Yt(e.frontmatter)?.stability;return n==="stable"||n==="experimental"||n==="deprecated"?n:null}function al(e){if(!e)return[];let r=e.frontmatter,t=[];if(e.kind==="agent"&&Array.isArray(r.tools))for(let n of r.tools)typeof n=="string"&&n.length>0&&t.push(n);if(e.kind==="skill"||e.kind==="command"){let n=r["allowed-tools"];if(Array.isArray(n))for(let i of n)typeof i=="string"&&i.length>0&&t.push(i);else typeof n=="string"&&n.length>0&&t.push(n)}return t}function ll(e){return $e(e?.sidecar)}function cl(e,r){switch(e?.sidecar?.status){case"stale-body":return r.staleBody;case"stale-frontmatter":return r.staleFrontmatter;case"stale-both":return r.staleBoth;default:return""}}function ul(e){return e<1e3?`${e}`:e<1e4?`${(e/1e3).toFixed(1).replace(/\.0$/,"")}k`:`${Math.round(e/1e3)}k`}function dl(e){let r=new Date(e);if(isNaN(r.getTime()))return e;let t=Date.now()-r.getTime(),n=Math.floor(t/1e3);if(n<60)return"just now";let i=Math.floor(n/60);if(i<60)return`${i} minute${i===1?"":"s"} ago`;let o=Math.floor(i/60);if(o<24)return`${o} hour${o===1?"":"s"} ago`;let a=Math.floor(o/24);if(a<30)return`${a} day${a===1?"":"s"} ago`;let s=Math.floor(a/30);if(s<12)return`${s} month${s===1?"":"s"} ago`;let l=Math.floor(a/365);return`${l} year${l===1?"":"s"} ago`}var Ei={invalidHex:e=>`deriveTints: invalid hex color "${e}" (expected #RRGGBB)`};function He(e,r,t){return[Math.round(e[0]+(r[0]-e[0])*t),Math.round(e[1]+(r[1]-e[1])*t),Math.round(e[2]+(r[2]-e[2])*t)]}function Ss(e){let r=/^#([0-9a-f]{6})$/i.exec(e);if(!r)throw new Error(Ei.invalidHex(e));let t=parseInt(r[1],16);return[t>>16&255,t>>8&255,t&255]}function Fe([e,r,t]){let n=i=>Math.max(0,Math.min(255,i)).toString(16).padStart(2,"0");return`#${n(e)}${n(r)}${n(t)}`}var Oi=[255,255,255],Ai=[0,0,0];function kn(e,r){let t=Ss(e);return r==="light"?{bg:Fe(He(t,Oi,.85)),fg:Fe(He(t,Ai,.5))}:{bg:Fe(He(t,Ai,.7)),fg:Fe(He(t,Oi,.6))}}var Ts=/^[a-zA-Z][a-zA-Z0-9_-]{0,63}$/,ze=class e{doc=d(Qe);_entries=m([]);kinds=this._entries.asReadonly();index=H(()=>{let r=new Map;for(let t of this._entries())r.set(t.name,t);return r});ingest(r){if(!r)return;let t=[];for(let[i,o]of Object.entries(r)){if(!Ts.test(i))continue;let a=o.providers[o.primaryProviderId];if(!a)continue;let s={name:i,primaryProviderId:o.primaryProviderId,providers:o.providers,label:a.label,color:a.color};a.colorDark!==void 0&&(s.colorDark=a.colorDark),a.emoji!==void 0&&(s.emoji=a.emoji),a.icon!==void 0&&(s.icon=a.icon),t.push(s)}let n=this._entries();Is(n,t)||(this._entries.set(t),this.applyCssVars())}lookup(r){return this.index().get(r)}labelOf(r){return this.lookup(r)?.label??r}colorOf(r,t="light"){let n=this.lookup(r);return n?t==="dark"?n.colorDark??n.color:n.color:"#9ca3af"}iconOf(r){return this.lookup(r)?.icon}emojiOf(r){return this.lookup(r)?.emoji}providersOf(r){return this.lookup(r)?.providers}applyCssVars(){if(!this.doc.head)return;let r=Cs(this.doc),t=[],n=[];for(let i of this._entries())try{let o=kn(i.color,"light"),a=i.colorDark??i.color,s=kn(a,"dark");t.push(`--sm-kind-${i.name}: ${i.color};`),t.push(`--sm-kind-${i.name}-bg: ${o.bg};`),t.push(`--sm-kind-${i.name}-fg: ${o.fg};`),n.push(`--sm-kind-${i.name}: ${a};`),n.push(`--sm-kind-${i.name}-bg: ${s.bg};`),n.push(`--sm-kind-${i.name}-fg: ${s.fg};`)}catch{continue}r.textContent=`:root { ${t.join(" ")} } .app-dark { ${n.join(" ")} }`}static \u0275fac=function(t){return new(t||e)};static \u0275prov=y({token:e,factory:e.\u0275fac,providedIn:"root"})},Di="sm-kind-vars";function Cs(e){let r=e.getElementById(Di);return r||(r=e.createElement("style"),r.id=Di,e.head.appendChild(r)),r}function Is(e,r){if(e.length!==r.length)return!1;for(let t=0;t<e.length;t++){let n=e[t],i=r[t];if(n.name!==i.name||n.primaryProviderId!==i.primaryProviderId||JSON.stringify(n.providers)!==JSON.stringify(i.providers))return!1}return!0}var El=["stable","experimental","deprecated"],Mi=["invokes","references","mentions","supersedes"],Ni=class e{kindRegistry=d(ze);_searchText=m("");_selectedKinds=m([]);_selectedStabilities=m([]);_hasIssuesOnly=m(!1);_staleOnly=m(!1);_favoritesOnly=m(!1);_selectedLinkKinds=m([]);searchText=this._searchText.asReadonly();selectedKinds=this._selectedKinds.asReadonly();selectedStabilities=this._selectedStabilities.asReadonly();hasIssuesOnly=this._hasIssuesOnly.asReadonly();staleOnly=this._staleOnly.asReadonly();favoritesOnly=this._favoritesOnly.asReadonly();selectedLinkKinds=this._selectedLinkKinds.asReadonly();isActive=H(()=>this._searchText().trim().length>0||this._selectedKinds().length>0||this._selectedStabilities().length>0||this._hasIssuesOnly()||this._staleOnly()||this._favoritesOnly()||this._selectedLinkKinds().length>0);setSearchText(r){this._searchText.set(r)}setKinds(r){this._selectedKinds.set([...r])}toggleKind(r){let t=this._selectedKinds(),n=this.kindRegistry.kinds().map(o=>o.name),i=t.length===0?new Set(n):new Set(t);i.has(r)?i.delete(r):i.add(r),i.size===n.length?this._selectedKinds.set([]):this._selectedKinds.set([...i])}isKindActive(r){let t=this._selectedKinds();return t.length===0?!0:t.includes(r)}setStabilities(r){this._selectedStabilities.set([...r])}setHasIssuesOnly(r){this._hasIssuesOnly.set(r)}setStaleOnly(r){this._staleOnly.set(r)}setFavoritesOnly(r){this._favoritesOnly.set(r)}setLinkKinds(r){this._selectedLinkKinds.set([...r])}toggleLinkKind(r){let t=this._selectedLinkKinds(),n=t.length===0?new Set(Mi):new Set(t);n.has(r)?n.delete(r):n.add(r),n.size===Mi.length?this._selectedLinkKinds.set([]):this._selectedLinkKinds.set([...n])}isLinkKindActive(r){let t=this._selectedLinkKinds();return t.length===0?!0:t.includes(r)}reset(){this._searchText.set(""),this._selectedKinds.set([]),this._selectedStabilities.set([]),this._hasIssuesOnly.set(!1),this._staleOnly.set(!1),this._favoritesOnly.set(!1),this._selectedLinkKinds.set([])}apply(r){let t=this.searchText().trim().toLowerCase(),n=this.selectedKinds(),i=this.selectedStabilities(),o=this.hasIssuesOnly(),a=this.staleOnly(),s=this.favoritesOnly();return r.filter(l=>{if(t&&![l.path,l.frontmatter.name??"",l.frontmatter.description??""].join(" ").toLowerCase().includes(t)||n.length>0&&!n.includes(l.kind))return!1;if(i.length>0){let c=Pn(l);if(!c||!i.includes(c))return!1}return!(o&&!Es(l)||a&&!$e(l.sidecar)||s&&l.isFavorite!==!0)})}static \u0275fac=function(t){return new(t||e)};static \u0275prov=y({token:e,factory:e.\u0275fac,providedIn:"root"})};function Es(e){if(Pn(e)==="deprecated")return!0;let t=e.sidecar?.annotations?.supersededBy;if(typeof t=="string"&&t.length>0)return!0;let n=Yt(e.frontmatter)?.supersededBy;return typeof n=="string"&&n.length>0}export{$ as a,G as b,Dn as c,_n as d,pt as e,je as f,cs as g,hs as h,bs as i,tl as j,el as k,$e as l,Yt as m,sl as n,Pn as o,al as p,ll as q,cl as r,ul as s,dl as t,ze as u,El as v,Mi as w,Ni as x};