1 line
84 KiB
JavaScript
1 line
84 KiB
JavaScript
(self.webpackChunkapp=self.webpackChunkapp||[]).push([[3117],{71762:(ze,it,g)=>{g.d(it,{N:()=>S,c:()=>ot});var l=g(8929),w=g(56498),f=g(42654),T=g(74327);class ot extends w.y{constructor(C,A){super(),this.source=C,this.subjectFactory=A,this._refCount=0,this._isComplete=!1}_subscribe(C){return this.getSubject().subscribe(C)}getSubject(){const C=this._subject;return(!C||C.isStopped)&&(this._subject=this.subjectFactory()),this._subject}connect(){let C=this._connection;return C||(this._isComplete=!1,C=this._connection=new f.w,C.add(this.source.subscribe(new _(this.getSubject(),this))),C.closed&&(this._connection=null,C=f.w.EMPTY)),C}refCount(){return(0,T.x)()(this)}}const S=(()=>{const O=ot.prototype;return{operator:{value:null},_refCount:{value:0,writable:!0},_subject:{value:null,writable:!0},_connection:{value:null,writable:!0},_subscribe:{value:O._subscribe},_isComplete:{value:O._isComplete,writable:!0},getSubject:{value:O.getSubject},connect:{value:O.connect},refCount:{value:O.refCount}}})();class _ extends l.Yc{constructor(C,A){super(C),this.connectable=A}_error(C){this._unsubscribe(),super._error(C)}_complete(){this.connectable._isComplete=!0,this._unsubscribe(),super._complete()}_unsubscribe(){const C=this.connectable;if(C){this.connectable=null;const A=C._connection;C._refCount=0,C._subject=null,C._connection=null,A&&A.unsubscribe()}}}},74327:(ze,it,g)=>{g.d(it,{x:()=>w});var l=g(43489);function w(){return function(S){return S.lift(new f(S))}}class f{constructor(S){this.connectable=S}call(S,_){const{connectable:z}=this;z._refCount++;const U=new T(S,z),O=_.subscribe(U);return U.closed||(U.connection=z.connect()),O}}class T extends l.L{constructor(S,_){super(S),this.connectable=_}_unsubscribe(){const{connectable:S}=this;if(!S)return void(this.connection=null);this.connectable=null;const _=S._refCount;if(_<=0)return void(this.connection=null);if(S._refCount=_-1,_>1)return void(this.connection=null);const{connection:z}=this,U=S._connection;this.connection=null,U&&(!z||U===z)&&U.unsubscribe()}}},93117:(ze,it,g)=>{g.r(it),g.d(it,{ActivatedRoute:()=>Y,ActivatedRouteSnapshot:()=>Ut,ActivationEnd:()=>Ur,ActivationStart:()=>br,BaseRouteReuseStrategy:()=>Xr,ChildActivationEnd:()=>wr,ChildActivationStart:()=>Sr,ChildrenOutletContexts:()=>ht,DefaultTitleStrategy:()=>je,DefaultUrlSerializer:()=>Lt,GuardsCheckEnd:()=>vr,GuardsCheckStart:()=>gr,NavigationCancel:()=>bt,NavigationEnd:()=>X,NavigationError:()=>ve,NavigationStart:()=>zt,NoPreloading:()=>bo,OutletContext:()=>$r,PRIMARY_OUTLET:()=>v,PreloadAllModules:()=>wo,PreloadingStrategy:()=>De,ROUTER_CONFIGURATION:()=>Pt,ROUTER_INITIALIZER:()=>Fe,ROUTES:()=>Xt,ResolveEnd:()=>Cr,ResolveStart:()=>mr,RouteConfigLoadEnd:()=>yr,RouteConfigLoadStart:()=>Rr,RouteReuseStrategy:()=>Zr,Router:()=>b,RouterEvent:()=>F,RouterLink:()=>Jt,RouterLinkActive:()=>nn,RouterLinkWithHref:()=>te,RouterModule:()=>xo,RouterOutlet:()=>Ie,RouterPreloader:()=>on,RouterState:()=>ye,RouterStateSnapshot:()=>Se,RoutesRecognized:()=>pr,Scroll:()=>me,TitleStrategy:()=>$e,UrlHandlingStrategy:()=>Jr,UrlSegment:()=>at,UrlSegmentGroup:()=>m,UrlSerializer:()=>ce,UrlTree:()=>Z,VERSION:()=>Lo,convertToParamMap:()=>tt,createUrlTreeFromSnapshot:()=>ti,defaultUrlMatcher:()=>Xe,provideRouter:()=>Uo,provideRoutes:()=>re,withDebugTracing:()=>dn,withDisabledInitialNavigation:()=>hn,withEnabledBlockingInitialNavigation:()=>cn,withInMemoryScrolling:()=>Eo,withPreloading:()=>Ne,withRouterConfig:()=>Io,\u0275EmptyOutletComponent:()=>Vt,\u0275ROUTER_PROVIDERS:()=>gn,\u0275assignExtraOptionsToRouter:()=>tn,\u0275flatten:()=>le,\u0275withPreloading:()=>Ne});var l=g(45449),w=g(5254),f=g(21086),T=g(591);const S=(()=>{function e(){return Error.call(this),this.message="no elements in sequence",this.name="EmptyError",this}return e.prototype=Object.create(Error.prototype),e})();var _=g(72866),z=g(66688),U=g(43489);class O extends U.L{notifyNext(r,t,n,i,o){this.destination.next(t)}notifyError(r,t){this.destination.error(r)}notifyComplete(r){this.destination.complete()}}class C extends U.L{constructor(r,t,n){super(),this.parent=r,this.outerValue=t,this.outerIndex=n,this.index=0}_next(r){this.parent.notifyNext(this.outerValue,r,this.outerIndex,this.index++,this)}_error(r){this.parent.notifyError(r,this),this.unsubscribe()}_complete(){this.parent.notifyComplete(this),this.unsubscribe()}}var A=g(59249),H=g(56498);function V(e,r,t,n,i=new C(e,t,n)){if(!i.closed)return r instanceof H.y?r.subscribe(i):(0,A.s)(r)(i)}var ie=g(33009);const He={};function Ve(...e){let r,t;return(0,_.K)(e[e.length-1])&&(t=e.pop()),"function"==typeof e[e.length-1]&&(r=e.pop()),1===e.length&&(0,z.k)(e[0])&&(e=e[0]),(0,ie.n)(e,t).lift(new mn(r))}class mn{constructor(r){this.resultSelector=r}call(r,t){return t.subscribe(new Cn(r,this.resultSelector))}}class Cn extends O{constructor(r,t){super(r),this.resultSelector=t,this.active=0,this.values=[],this.observables=[]}_next(r){this.values.push(He),this.observables.push(r)}_complete(){const r=this.observables,t=r.length;if(0===t)this.destination.complete();else{this.active=t,this.toRespond=t;for(let n=0;n<t;n++)this.add(V(this,r[n],void 0,n))}}notifyComplete(r){0==(this.active-=1)&&this.destination.complete()}notifyNext(r,t,n){const i=this.values,s=this.toRespond?i[n]===He?--this.toRespond:this.toRespond:0;i[n]=t,0===s&&(this.resultSelector?this._tryResultSelector(i):this.destination.next(i.slice()))}_tryResultSelector(r){let t;try{t=this.resultSelector.apply(this,r)}catch(n){return void this.destination.error(n)}this.destination.next(t)}}var oe=g(61221),We=g(88514),Rn=g(4843),gt=g(61737),vt=g(68896),qe=g(71762),st=g(8929),M=g(90944),y=g(24850),k=g(87545),mt=g(72986),B=g(92198),P=g(61709);function _t(e=null){return r=>r.lift(new Sn(e))}class Sn{constructor(r){this.defaultValue=r}call(r,t){return t.subscribe(new wn(r,this.defaultValue))}}class wn extends U.L{constructor(r,t){super(r),this.defaultValue=t,this.isEmpty=!0}_next(r){this.isEmpty=!1,this.destination.next(r)}_complete(){this.isEmpty&&this.destination.next(this.defaultValue),this.destination.complete()}}function Be(e=En){return r=>r.lift(new bn(e))}class bn{constructor(r){this.errorFactory=r}call(r,t){return t.subscribe(new Un(r,this.errorFactory))}}class Un extends U.L{constructor(r,t){super(r),this.errorFactory=t,this.hasValue=!1}_next(r){this.hasValue=!0,this.destination.next(r)}_complete(){if(this.hasValue)return this.destination.complete();{let r;try{r=this.errorFactory()}catch(t){r=t}this.destination.error(r)}}}function En(){return new S}var Ge=g(35379);function G(e,r){const t=arguments.length>=2;return n=>n.pipe(e?(0,B.h)((i,o)=>e(i,o,n)):Ge.y,(0,mt.q)(1),t?_t(r):Be(()=>new S))}var J=g(21406),x=g(22868),Q=g(27221);function Qe(e,r){let t=!1;return arguments.length>=2&&(t=!0),function(i){return i.lift(new In(e,r,t))}}class In{constructor(r,t,n=!1){this.accumulator=r,this.seed=t,this.hasSeed=n}call(r,t){return t.subscribe(new An(r,this.accumulator,this.seed,this.hasSeed))}}class An extends U.L{constructor(r,t,n,i){super(r),this.accumulator=t,this._seed=n,this.hasSeed=i,this.index=0}get seed(){return this._seed}set seed(r){this.hasSeed=!0,this._seed=r}_next(r){if(this.hasSeed)return this._tryNext(r);this.seed=r,this.destination.next(r)}_tryNext(r){const t=this.index++;let n;try{n=this.accumulator(this.seed,r,t)}catch(i){this.destination.error(i)}this.seed=n,this.destination.next(n)}}var se=g(92821);function Ke(e,r){const t=arguments.length>=2;return n=>n.pipe(e?(0,B.h)((i,o)=>e(i,o,n)):Ge.y,(0,se.h)(1),t?_t(r):Be(()=>new S))}class Tn{constructor(r,t){this.predicate=r,this.inclusive=t}call(r,t){return t.subscribe(new On(r,this.predicate,this.inclusive))}}class On extends U.L{constructor(r,t,n){super(r),this.predicate=t,this.inclusive=n,this.index=0}_next(r){const t=this.destination;let n;try{n=this.predicate(r,this.index++)}catch(i){return void t.error(i)}this.nextOrComplete(r,n)}nextOrComplete(r,t){const n=this.destination;Boolean(t)?n.next(r):(this.inclusive&&n.next(r),n.complete())}}class _n{constructor(r){this.value=r}call(r,t){return t.subscribe(new $n(r,this.value))}}class $n extends U.L{constructor(r,t){super(r),this.value=t}_next(r){this.destination.next(this.value)}}var ae=g(40537),Ze=g(74327),$t=g(89146),jn=g(11481);const v="primary",Ct=Symbol("RouteTitle");class Ln{constructor(r){this.params=r||{}}has(r){return Object.prototype.hasOwnProperty.call(this.params,r)}get(r){if(this.has(r)){const t=this.params[r];return Array.isArray(t)?t[0]:t}return null}getAll(r){if(this.has(r)){const t=this.params[r];return Array.isArray(t)?t:[t]}return[]}get keys(){return Object.keys(this.params)}}function tt(e){return new Ln(e)}function Xe(e,r,t){const n=t.path.split("/");if(n.length>e.length||"full"===t.pathMatch&&(r.hasChildren()||n.length<e.length))return null;const i={};for(let o=0;o<n.length;o++){const s=n[o],a=e[o];if(s.startsWith(":"))i[s.substring(1)]=a;else if(s!==a.path)return null}return{consumed:e.slice(0,n.length),posParams:i}}function N(e,r){const t=e?Object.keys(e):void 0,n=r?Object.keys(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],!Ye(e[i],r[i]))return!1;return!0}function Ye(e,r){if(Array.isArray(e)&&Array.isArray(r)){if(e.length!==r.length)return!1;const t=[...e].sort(),n=[...r].sort();return t.every((i,o)=>n[o]===i)}return e===r}function le(e){return Array.prototype.concat.apply([],e)}function Je(e){return e.length>0?e[e.length-1]:null}function E(e,r){for(const t in e)e.hasOwnProperty(t)&&r(e[t],t)}function K(e){return(0,l.\u0275isObservable)(e)?e:(0,l.\u0275isPromise)(e)?(0,w.D)(Promise.resolve(e)):(0,f.of)(e)}const kn={exact:function rr(e,r,t){if(!et(e.segments,r.segments)||!jt(e.segments,r.segments,t)||e.numberOfChildren!==r.numberOfChildren)return!1;for(const n in r.children)if(!e.children[n]||!rr(e.children[n],r.children[n],t))return!1;return!0},subset:nr},tr={exact:function Nn(e,r){return N(e,r)},subset:function Fn(e,r){return Object.keys(r).length<=Object.keys(e).length&&Object.keys(r).every(t=>Ye(e[t],r[t]))},ignored:()=>!0};function er(e,r,t){return kn[t.paths](e.root,r.root,t.matrixParams)&&tr[t.queryParams](e.queryParams,r.queryParams)&&!("exact"===t.fragment&&e.fragment!==r.fragment)}function nr(e,r,t){return ir(e,r,r.segments,t)}function ir(e,r,t,n){if(e.segments.length>t.length){const i=e.segments.slice(0,t.length);return!(!et(i,t)||r.hasChildren()||!jt(i,t,n))}if(e.segments.length===t.length){if(!et(e.segments,t)||!jt(e.segments,t,n))return!1;for(const i in r.children)if(!e.children[i]||!nr(e.children[i],r.children[i],n))return!1;return!0}{const i=t.slice(0,e.segments.length),o=t.slice(e.segments.length);return!!(et(e.segments,i)&&jt(e.segments,i,n)&&e.children[v])&&ir(e.children[v],r,o,n)}}function jt(e,r,t){return r.every((n,i)=>tr[t](e[i].parameters,n.parameters))}class Z{constructor(r,t,n){this.root=r,this.queryParams=t,this.fragment=n}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=tt(this.queryParams)),this._queryParamMap}toString(){return Vn.serialize(this)}}class m{constructor(r,t){this.segments=r,this.children=t,this.parent=null,E(t,(n,i)=>n.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return Dt(this)}}class at{constructor(r,t){this.path=r,this.parameters=t}get parameterMap(){return this._parameterMap||(this._parameterMap=tt(this.parameters)),this._parameterMap}toString(){return ar(this)}}function et(e,r){return e.length===r.length&&e.every((t,n)=>t.path===r[n].path)}let ce=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=l.\u0275\u0275defineInjectable({token:e,factory:function(){return new Lt},providedIn:"root"}),e})();class Lt{parse(r){const t=new Yn(r);return new Z(t.parseRootSegment(),t.parseQueryParams(),t.parseFragment())}serialize(r){const t=`/${Rt(r.root,!0)}`,n=function Bn(e){const r=Object.keys(e).map(t=>{const n=e[t];return Array.isArray(n)?n.map(i=>`${Mt(t)}=${Mt(i)}`).join("&"):`${Mt(t)}=${Mt(n)}`}).filter(t=>!!t);return r.length?`?${r.join("&")}`:""}(r.queryParams);return`${t}${n}${"string"==typeof r.fragment?`#${function Wn(e){return encodeURI(e)}(r.fragment)}`:""}`}}const Vn=new Lt;function Dt(e){return e.segments.map(r=>ar(r)).join("/")}function Rt(e,r){if(!e.hasChildren())return Dt(e);if(r){const t=e.children[v]?Rt(e.children[v],!1):"",n=[];return E(e.children,(i,o)=>{o!==v&&n.push(`${o}:${Rt(i,!1)}`)}),n.length>0?`${t}(${n.join("//")})`:t}{const t=function Hn(e,r){let t=[];return E(e.children,(n,i)=>{i===v&&(t=t.concat(r(n,i)))}),E(e.children,(n,i)=>{i!==v&&(t=t.concat(r(n,i)))}),t}(e,(n,i)=>i===v?[Rt(e.children[v],!1)]:[`${i}:${Rt(n,!1)}`]);return 1===Object.keys(e.children).length&&null!=e.children[v]?`${Dt(e)}/${t[0]}`:`${Dt(e)}/(${t.join("//")})`}}function or(e){return encodeURIComponent(e).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function Mt(e){return or(e).replace(/%3B/gi,";")}function he(e){return or(e).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function kt(e){return decodeURIComponent(e)}function sr(e){return kt(e.replace(/\+/g,"%20"))}function ar(e){return`${he(e.path)}${function qn(e){return Object.keys(e).map(r=>`;${he(r)}=${he(e[r])}`).join("")}(e.parameters)}`}const Gn=/^[^\/()?;=#]+/;function Nt(e){const r=e.match(Gn);return r?r[0]:""}const Qn=/^[^=?&#]+/,Zn=/^[^&#]+/;class Yn{constructor(r){this.url=r,this.remaining=r}parseRootSegment(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new m([],{}):new m([],this.parseChildren())}parseQueryParams(){const r={};if(this.consumeOptional("?"))do{this.parseQueryParam(r)}while(this.consumeOptional("&"));return r}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(""===this.remaining)return{};this.consumeOptional("/");const r=[];for(this.peekStartsWith("(")||r.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),r.push(this.parseSegment());let t={};this.peekStartsWith("/(")&&(this.capture("/"),t=this.parseParens(!0));let n={};return this.peekStartsWith("(")&&(n=this.parseParens(!1)),(r.length>0||Object.keys(t).length>0)&&(n[v]=new m(r,t)),n}parseSegment(){const r=Nt(this.remaining);if(""===r&&this.peekStartsWith(";"))throw new l.\u0275RuntimeError(4009,!1);return this.capture(r),new at(kt(r),this.parseMatrixParams())}parseMatrixParams(){const r={};for(;this.consumeOptional(";");)this.parseParam(r);return r}parseParam(r){const t=Nt(this.remaining);if(!t)return;this.capture(t);let n="";if(this.consumeOptional("=")){const i=Nt(this.remaining);i&&(n=i,this.capture(n))}r[kt(t)]=kt(n)}parseQueryParam(r){const t=function Kn(e){const r=e.match(Qn);return r?r[0]:""}(this.remaining);if(!t)return;this.capture(t);let n="";if(this.consumeOptional("=")){const s=function Xn(e){const r=e.match(Zn);return r?r[0]:""}(this.remaining);s&&(n=s,this.capture(n))}const i=sr(t),o=sr(n);if(r.hasOwnProperty(i)){let s=r[i];Array.isArray(s)||(s=[s],r[i]=s),s.push(o)}else r[i]=o}parseParens(r){const t={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){const n=Nt(this.remaining),i=this.remaining[n.length];if("/"!==i&&")"!==i&&";"!==i)throw new l.\u0275RuntimeError(4010,!1);let o;n.indexOf(":")>-1?(o=n.slice(0,n.indexOf(":")),this.capture(o),this.capture(":")):r&&(o=v);const s=this.parseChildren();t[o]=1===Object.keys(s).length?s[v]:new m([],s),this.consumeOptional("//")}return t}peekStartsWith(r){return this.remaining.startsWith(r)}consumeOptional(r){return!!this.peekStartsWith(r)&&(this.remaining=this.remaining.substring(r.length),!0)}capture(r){if(!this.consumeOptional(r))throw new l.\u0275RuntimeError(4011,!1)}}function de(e){return e.segments.length>0?new m([],{[v]:e}):e}function Ft(e){const r={};for(const n of Object.keys(e.children)){const o=Ft(e.children[n]);(o.segments.length>0||o.hasChildren())&&(r[n]=o)}return function Jn(e){if(1===e.numberOfChildren&&e.children[v]){const r=e.children[v];return new m(e.segments.concat(r.segments),r.children)}return e}(new m(e.segments,r))}function rt(e){return e instanceof Z}function ti(e,r,t=null,n=null){const i=function ei(e){var r;let t;const o=de(function n(s){const a={};for(const c of s.children){const d=n(c);a[c.outlet]=d}const u=new m(s.url,a);return s===e&&(t=u),u}(e.root));return null!==(r=t)&&void 0!==r?r:o}(e);return function ri(e,r,t,n){let i=e;for(;i.parent;)i=i.parent;if(0===r.length)return lt(i,i,i,t,n);const o=cr(r);if(o.toRoot())return lt(i,i,new m([],{}),t,n);const s=function ii(e,r,t){if(e.isAbsolute)return new ut(r,!0,0);if(!t)return new ut(r,!1,NaN);if(null===t.parent)return new ut(t,!0,0);const n=yt(e.commands[0])?0:1;return hr(t,t.segments.length-1+n,e.numberOfDoubleDots)}(o,i,e),a=s.processChildren?wt(s.segmentGroup,s.index,o.commands):pe(s.segmentGroup,s.index,o.commands);return lt(i,s.segmentGroup,a,t,n)}(i,r,t,n)}function yt(e){return"object"==typeof e&&null!=e&&!e.outlets&&!e.segmentPath}function St(e){return"object"==typeof e&&null!=e&&e.outlets}function lt(e,r,t,n,i){let s,o={};n&&E(n,(u,c)=>{o[c]=Array.isArray(u)?u.map(d=>`${d}`):`${u}`}),s=e===r?t:lr(e,r,t);const a=de(Ft(s));return new Z(a,o,i)}function lr(e,r,t){const n={};return E(e.children,(i,o)=>{n[o]=i===r?t:lr(i,r,t)}),new m(e.segments,n)}class ur{constructor(r,t,n){if(this.isAbsolute=r,this.numberOfDoubleDots=t,this.commands=n,r&&n.length>0&&yt(n[0]))throw new l.\u0275RuntimeError(4003,!1);const i=n.find(St);if(i&&i!==Je(n))throw new l.\u0275RuntimeError(4004,!1)}toRoot(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}function cr(e){if("string"==typeof e[0]&&1===e.length&&"/"===e[0])return new ur(!0,0,e);let r=0,t=!1;const n=e.reduce((i,o,s)=>{if("object"==typeof o&&null!=o){if(o.outlets){const a={};return E(o.outlets,(u,c)=>{a[c]="string"==typeof u?u.split("/"):u}),[...i,{outlets:a}]}if(o.segmentPath)return[...i,o.segmentPath]}return"string"!=typeof o?[...i,o]:0===s?(o.split("/").forEach((a,u)=>{0==u&&"."===a||(0==u&&""===a?t=!0:".."===a?r++:""!=a&&i.push(a))}),i):[...i,o]},[]);return new ur(t,r,n)}class ut{constructor(r,t,n){this.segmentGroup=r,this.processChildren=t,this.index=n}}function hr(e,r,t){let n=e,i=r,o=t;for(;o>i;){if(o-=i,n=n.parent,!n)throw new l.\u0275RuntimeError(4005,!1);i=n.segments.length}return new ut(n,!1,i-o)}function pe(e,r,t){if(e||(e=new m([],{})),0===e.segments.length&&e.hasChildren())return wt(e,r,t);const n=function ai(e,r,t){let n=0,i=r;const o={match:!1,pathIndex:0,commandIndex:0};for(;i<e.segments.length;){if(n>=t.length)return o;const s=e.segments[i],a=t[n];if(St(a))break;const u=`${a}`,c=n<t.length-1?t[n+1]:null;if(i>0&&void 0===u)break;if(u&&c&&"object"==typeof c&&void 0===c.outlets){if(!fr(u,c,s))return o;n+=2}else{if(!fr(u,{},s))return o;n++}i++}return{match:!0,pathIndex:i,commandIndex:n}}(e,r,t),i=t.slice(n.commandIndex);if(n.match&&n.pathIndex<e.segments.length){const o=new m(e.segments.slice(0,n.pathIndex),{});return o.children[v]=new m(e.segments.slice(n.pathIndex),e.children),wt(o,0,i)}return n.match&&0===i.length?new m(e.segments,{}):n.match&&!e.hasChildren()?ge(e,r,t):n.match?wt(e,0,i):ge(e,r,t)}function wt(e,r,t){if(0===t.length)return new m(e.segments,{});{const n=function si(e){return St(e[0])?e[0].outlets:{[v]:e}}(t),i={};return E(n,(o,s)=>{"string"==typeof o&&(o=[o]),null!==o&&(i[s]=pe(e.children[s],r,o))}),E(e.children,(o,s)=>{void 0===n[s]&&(i[s]=o)}),new m(e.segments,i)}}function ge(e,r,t){const n=e.segments.slice(0,r);let i=0;for(;i<t.length;){const o=t[i];if(St(o)){const u=li(o.outlets);return new m(n,u)}if(0===i&&yt(t[0])){n.push(new at(e.segments[r].path,dr(t[0]))),i++;continue}const s=St(o)?o.outlets[v]:`${o}`,a=i<t.length-1?t[i+1]:null;s&&a&&yt(a)?(n.push(new at(s,dr(a))),i+=2):(n.push(new at(s,{})),i++)}return new m(n,{})}function li(e){const r={};return E(e,(t,n)=>{"string"==typeof t&&(t=[t]),null!==t&&(r[n]=ge(new m([],{}),0,t))}),r}function dr(e){const r={};return E(e,(t,n)=>r[n]=`${t}`),r}function fr(e,r,t){return e==t.path&&N(r,t.parameters)}class F{constructor(r,t){this.id=r,this.url=t}}class zt extends F{constructor(r,t,n="imperative",i=null){super(r,t),this.type=0,this.navigationTrigger=n,this.restoredState=i}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}}class X extends F{constructor(r,t,n){super(r,t),this.urlAfterRedirects=n,this.type=1}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}}class bt extends F{constructor(r,t,n,i){super(r,t),this.reason=n,this.code=i,this.type=2}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}}class ve extends F{constructor(r,t,n,i){super(r,t),this.error=n,this.target=i,this.type=3}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}}class pr extends F{constructor(r,t,n,i){super(r,t),this.urlAfterRedirects=n,this.state=i,this.type=4}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class gr extends F{constructor(r,t,n,i){super(r,t),this.urlAfterRedirects=n,this.state=i,this.type=7}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class vr extends F{constructor(r,t,n,i,o){super(r,t),this.urlAfterRedirects=n,this.state=i,this.shouldActivate=o,this.type=8}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}}class mr extends F{constructor(r,t,n,i){super(r,t),this.urlAfterRedirects=n,this.state=i,this.type=5}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Cr extends F{constructor(r,t,n,i){super(r,t),this.urlAfterRedirects=n,this.state=i,this.type=6}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Rr{constructor(r){this.route=r,this.type=9}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}}class yr{constructor(r){this.route=r,this.type=10}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}}class Sr{constructor(r){this.snapshot=r,this.type=11}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class wr{constructor(r){this.snapshot=r,this.type=12}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class br{constructor(r){this.snapshot=r,this.type=13}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Ur{constructor(r){this.snapshot=r,this.type=14}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class me{constructor(r,t,n){this.routerEvent=r,this.position=t,this.anchor=n,this.type=15}toString(){return`Scroll(anchor: '${this.anchor}', position: '${this.position?`${this.position[0]}, ${this.position[1]}`:null}')`}}class Er{constructor(r){this._root=r}get root(){return this._root.value}parent(r){const t=this.pathFromRoot(r);return t.length>1?t[t.length-2]:null}children(r){const t=Ce(r,this._root);return t?t.children.map(n=>n.value):[]}firstChild(r){const t=Ce(r,this._root);return t&&t.children.length>0?t.children[0].value:null}siblings(r){const t=Re(r,this._root);return t.length<2?[]:t[t.length-2].children.map(i=>i.value).filter(i=>i!==r)}pathFromRoot(r){return Re(r,this._root).map(t=>t.value)}}function Ce(e,r){if(e===r.value)return r;for(const t of r.children){const n=Ce(e,t);if(n)return n}return null}function Re(e,r){if(e===r.value)return[r];for(const t of r.children){const n=Re(e,t);if(n.length)return n.unshift(r),n}return[]}class W{constructor(r,t){this.value=r,this.children=t}toString(){return`TreeNode(${this.value})`}}function ct(e){const r={};return e&&e.children.forEach(t=>r[t.value.outlet]=t),r}class ye extends Er{constructor(r,t){super(r),this.snapshot=t,we(this,r)}toString(){return this.snapshot.toString()}}function Ir(e,r){const t=function ci(e,r){const s=new Ut([],{},{},"",{},v,r,null,e.root,-1,{});return new Se("",new W(s,[]))}(e,r),n=new T.X([new at("",{})]),i=new T.X({}),o=new T.X({}),s=new T.X({}),a=new T.X(""),u=new Y(n,i,s,a,o,v,r,t.root);return u.snapshot=t.root,new ye(new W(u,[]),t)}class Y{constructor(r,t,n,i,o,s,a,u){var c,d;this.url=r,this.params=t,this.queryParams=n,this.fragment=i,this.data=o,this.outlet=s,this.component=a,this.title=null!==(c=null===(d=this.data)||void 0===d?void 0:d.pipe((0,y.U)(h=>h[Ct])))&&void 0!==c?c:(0,f.of)(void 0),this._futureSnapshot=u}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._paramMap=this.params.pipe((0,y.U)(r=>tt(r)))),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe((0,y.U)(r=>tt(r)))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}}function Ar(e,r="emptyOnly"){const t=e.pathFromRoot;let n=0;if("always"!==r)for(n=t.length-1;n>=1;){const i=t[n],o=t[n-1];if(i.routeConfig&&""===i.routeConfig.path)n--;else{if(o.component)break;n--}}return function hi(e){return e.reduce((r,t)=>{var n;return{params:{...r.params,...t.params},data:{...r.data,...t.data},resolve:{...t.data,...r.resolve,...null===(n=t.routeConfig)||void 0===n?void 0:n.data,...t._resolvedData}}},{params:{},data:{},resolve:{}})}(t.slice(n))}class Ut{constructor(r,t,n,i,o,s,a,u,c,d,h,p){var R;this.url=r,this.params=t,this.queryParams=n,this.fragment=i,this.data=o,this.outlet=s,this.component=a,this.title=null===(R=this.data)||void 0===R?void 0:R[Ct],this.routeConfig=u,this._urlSegment=c,this._lastPathIndex=d,this._correctedLastPathIndex=p??d,this._resolve=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||(this._paramMap=tt(this.params)),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=tt(this.queryParams)),this._queryParamMap}toString(){return`Route(url:'${this.url.map(n=>n.toString()).join("/")}', path:'${this.routeConfig?this.routeConfig.path:""}')`}}class Se extends Er{constructor(r,t){super(t),this.url=r,we(this,t)}toString(){return xr(this._root)}}function we(e,r){r.value._routerState=e,r.children.forEach(t=>we(e,t))}function xr(e){const r=e.children.length>0?` { ${e.children.map(xr).join(", ")} } `:"";return`${e.value}${r}`}function be(e){if(e.snapshot){const r=e.snapshot,t=e._futureSnapshot;e.snapshot=t,N(r.queryParams,t.queryParams)||e.queryParams.next(t.queryParams),r.fragment!==t.fragment&&e.fragment.next(t.fragment),N(r.params,t.params)||e.params.next(t.params),function Dn(e,r){if(e.length!==r.length)return!1;for(let t=0;t<e.length;++t)if(!N(e[t],r[t]))return!1;return!0}(r.url,t.url)||e.url.next(t.url),N(r.data,t.data)||e.data.next(t.data)}else e.snapshot=e._futureSnapshot,e.data.next(e._futureSnapshot.data)}function Ue(e,r){const t=N(e.params,r.params)&&function zn(e,r){return et(e,r)&&e.every((t,n)=>N(t.parameters,r[n].parameters))}(e.url,r.url);return t&&!(!e.parent!=!r.parent)&&(!e.parent||Ue(e.parent,r.parent))}function Et(e,r,t){if(t&&e.shouldReuseRoute(r.value,t.value.snapshot)){const n=t.value;n._futureSnapshot=r.value;const i=function fi(e,r,t){return r.children.map(n=>{for(const i of t.children)if(e.shouldReuseRoute(n.value,i.value.snapshot))return Et(e,n,i);return Et(e,n)})}(e,r,t);return new W(n,i)}{if(e.shouldAttach(r.value)){const o=e.retrieve(r.value);if(null!==o){const s=o.route;return s.value._futureSnapshot=r.value,s.children=r.children.map(a=>Et(e,a)),s}}const n=function pi(e){return new Y(new T.X(e.url),new T.X(e.params),new T.X(e.queryParams),new T.X(e.fragment),new T.X(e.data),e.outlet,e.component,e)}(r.value),i=r.children.map(o=>Et(e,o));return new W(n,i)}}const Ee="ngNavigationCancelingError";function Tr(e,r){const{redirectTo:t,navigationBehaviorOptions:n}=rt(r)?{redirectTo:r,navigationBehaviorOptions:void 0}:r,i=Or(!1,0,r);return i.url=t,i.navigationBehaviorOptions=n,i}function Or(e,r,t){const n=new Error("NavigationCancelingError: "+(e||""));return n[Ee]=!0,n.cancellationCode=r,t&&(n.url=t),n}function Pr(e){return _r(e)&&rt(e.url)}function _r(e){return e&&e[Ee]}class $r{constructor(){this.outlet=null,this.route=null,this.resolver=null,this.injector=null,this.children=new ht,this.attachRef=null}}let ht=(()=>{class e{constructor(){this.contexts=new Map}onChildOutletCreated(t,n){const i=this.getOrCreateContext(t);i.outlet=n,this.contexts.set(t,i)}onChildOutletDestroyed(t){const n=this.getContext(t);n&&(n.outlet=null,n.attachRef=null)}onOutletDeactivated(){const 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 $r,this.contexts.set(t,n)),n}getContext(t){return this.contexts.get(t)||null}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=l.\u0275\u0275defineInjectable({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();const Ht=!1;let Ie=(()=>{class e{constructor(t,n,i,o,s){this.parentContexts=t,this.location=n,this.changeDetector=o,this.environmentInjector=s,this.activated=null,this._activatedRoute=null,this.activateEvents=new l.EventEmitter,this.deactivateEvents=new l.EventEmitter,this.attachEvents=new l.EventEmitter,this.detachEvents=new l.EventEmitter,this.name=i||v,t.onChildOutletCreated(this.name,this)}ngOnDestroy(){var t;(null===(t=this.parentContexts.getContext(this.name))||void 0===t?void 0:t.outlet)===this&&this.parentContexts.onChildOutletDestroyed(this.name)}ngOnInit(){if(!this.activated){const t=this.parentContexts.getContext(this.name);t&&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 l.\u0275RuntimeError(4012,Ht);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new l.\u0275RuntimeError(4012,Ht);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new l.\u0275RuntimeError(4012,Ht);this.location.detach();const 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.attachEvents.emit(t.instance)}deactivate(){if(this.activated){const t=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(t)}}activateWith(t,n){if(this.isActivated)throw new l.\u0275RuntimeError(4013,Ht);this._activatedRoute=t;const i=this.location,s=t._futureSnapshot.component,a=this.parentContexts.getOrCreateContext(this.name).children,u=new gi(t,a,i.injector);if(n&&function vi(e){return!!e.resolveComponentFactory}(n)){const c=n.resolveComponentFactory(s);this.activated=i.createComponent(c,i.length,u)}else this.activated=i.createComponent(s,{index:i.length,injector:u,environmentInjector:n??this.environmentInjector});this.changeDetector.markForCheck(),this.activateEvents.emit(this.activated.instance)}}return e.\u0275fac=function(t){return new(t||e)(l.\u0275\u0275directiveInject(ht),l.\u0275\u0275directiveInject(l.ViewContainerRef),l.\u0275\u0275injectAttribute("name"),l.\u0275\u0275directiveInject(l.ChangeDetectorRef),l.\u0275\u0275directiveInject(l.EnvironmentInjector))},e.\u0275dir=l.\u0275\u0275defineDirective({type:e,selectors:[["router-outlet"]],outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"],standalone:!0}),e})();class gi{constructor(r,t,n){this.route=r,this.childContexts=t,this.parent=n}get(r,t){return r===Y?this.route:r===ht?this.childContexts:this.parent.get(r,t)}}let Vt=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=l.\u0275\u0275defineComponent({type:e,selectors:[["ng-component"]],standalone:!0,features:[l.\u0275\u0275StandaloneFeature],decls:1,vars:0,template:function(t,n){1&t&&l.\u0275\u0275element(0,"router-outlet")},dependencies:[Ie],encapsulation:2}),e})();function jr(e,r){var t;return e.providers&&!e._injector&&(e._injector=(0,l.createEnvironmentInjector)(e.providers,r,`Route: ${e.path}`)),null!==(t=e._injector)&&void 0!==t?t:r}function xe(e){const r=e.children&&e.children.map(xe),t=r?{...e,children:r}:{...e};return!t.component&&!t.loadComponent&&(r||t.loadChildren)&&t.outlet&&t.outlet!==v&&(t.component=Vt),t}function $(e){return e.outlet||v}function Lr(e,r){const t=e.filter(n=>$(n)===r);return t.push(...e.filter(n=>$(n)!==r)),t}function It(e){var r;if(!e)return null;if(null!==(r=e.routeConfig)&&void 0!==r&&r._injector)return e.routeConfig._injector;for(let t=e.parent;t;t=t.parent){const n=t.routeConfig;if(null!=n&&n._loadedInjector)return n._loadedInjector;if(null!=n&&n._injector)return n._injector}return null}class Si{constructor(r,t,n,i){this.routeReuseStrategy=r,this.futureState=t,this.currState=n,this.forwardEvent=i}activate(r){const t=this.futureState._root,n=this.currState?this.currState._root:null;this.deactivateChildRoutes(t,n,r),be(this.futureState.root),this.activateChildRoutes(t,n,r)}deactivateChildRoutes(r,t,n){const i=ct(t);r.children.forEach(o=>{const s=o.value.outlet;this.deactivateRoutes(o,i[s],n),delete i[s]}),E(i,(o,s)=>{this.deactivateRouteAndItsChildren(o,n)})}deactivateRoutes(r,t,n){const i=r.value,o=t?t.value:null;if(i===o)if(i.component){const s=n.getContext(i.outlet);s&&this.deactivateChildRoutes(r,t,s.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){const n=t.getContext(r.value.outlet),i=n&&r.value.component?n.children:t,o=ct(r);for(const s of Object.keys(o))this.deactivateRouteAndItsChildren(o[s],i);if(n&&n.outlet){const s=n.outlet.detach(),a=n.children.onOutletDeactivated();this.routeReuseStrategy.store(r.value.snapshot,{componentRef:s,route:r,contexts:a})}}deactivateRouteAndOutlet(r,t){const n=t.getContext(r.value.outlet),i=n&&r.value.component?n.children:t,o=ct(r);for(const s of Object.keys(o))this.deactivateRouteAndItsChildren(o[s],i);n&&n.outlet&&(n.outlet.deactivate(),n.children.onOutletDeactivated(),n.attachRef=null,n.resolver=null,n.route=null)}activateChildRoutes(r,t,n){const i=ct(t);r.children.forEach(o=>{this.activateRoutes(o,i[o.value.outlet],n),this.forwardEvent(new Ur(o.value.snapshot))}),r.children.length&&this.forwardEvent(new wr(r.value.snapshot))}activateRoutes(r,t,n){const i=r.value,o=t?t.value:null;if(be(i),i===o)if(i.component){const a=n.getOrCreateContext(i.outlet);this.activateChildRoutes(r,t,a.children)}else this.activateChildRoutes(r,t,n);else if(i.component){const a=n.getOrCreateContext(i.outlet);if(this.routeReuseStrategy.shouldAttach(i.snapshot)){const u=this.routeReuseStrategy.retrieve(i.snapshot);this.routeReuseStrategy.store(i.snapshot,null),a.children.onOutletReAttached(u.contexts),a.attachRef=u.componentRef,a.route=u.route.value,a.outlet&&a.outlet.attach(u.componentRef,u.route.value),be(u.route.value),this.activateChildRoutes(r,null,a.children)}else{var s;const u=It(i.snapshot),c=null!==(s=u?.get(l.ComponentFactoryResolver))&&void 0!==s?s:null;a.attachRef=null,a.route=i,a.resolver=c,a.injector=u,a.outlet&&a.outlet.activateWith(i,a.injector),this.activateChildRoutes(r,null,a.children)}}else this.activateChildRoutes(r,null,n)}}class Dr{constructor(r){this.path=r,this.route=this.path[this.path.length-1]}}class Wt{constructor(r,t){this.component=r,this.route=t}}function wi(e,r,t){const n=e._root;return At(n,r?r._root:null,t,[n.value])}function dt(e,r){const t=Symbol(),n=r.get(e,t);return n===t?"function"!=typeof e||(0,l.\u0275isInjectable)(e)?r.get(e):e:n}function At(e,r,t,n,i={canDeactivateChecks:[],canActivateChecks:[]}){const o=ct(r);return e.children.forEach(s=>{(function Ui(e,r,t,n,i={canDeactivateChecks:[],canActivateChecks:[]}){const o=e.value,s=r?r.value:null,a=t?t.getContext(e.value.outlet):null;if(s&&o.routeConfig===s.routeConfig){const u=function Ei(e,r,t){if("function"==typeof t)return t(e,r);switch(t){case"pathParamsChange":return!et(e.url,r.url);case"pathParamsOrQueryParamsChange":return!et(e.url,r.url)||!N(e.queryParams,r.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!Ue(e,r)||!N(e.queryParams,r.queryParams);default:return!Ue(e,r)}}(s,o,o.routeConfig.runGuardsAndResolvers);u?i.canActivateChecks.push(new Dr(n)):(o.data=s.data,o._resolvedData=s._resolvedData),At(e,r,o.component?a?a.children:null:t,n,i),u&&a&&a.outlet&&a.outlet.isActivated&&i.canDeactivateChecks.push(new Wt(a.outlet.component,s))}else s&&xt(r,a,i),i.canActivateChecks.push(new Dr(n)),At(e,null,o.component?a?a.children:null:t,n,i)})(s,o[s.value.outlet],t,n.concat([s.value]),i),delete o[s.value.outlet]}),E(o,(s,a)=>xt(s,t.getContext(a),i)),i}function xt(e,r,t){const n=ct(e),i=e.value;E(n,(o,s)=>{xt(o,i.component?r?r.children.getContext(s):null:r,t)}),t.canDeactivateChecks.push(new Wt(i.component&&r&&r.outlet&&r.outlet.isActivated?r.outlet.component:null,i))}function Tt(e){return"function"==typeof e}function Te(e){return e instanceof S||"EmptyError"===e?.name}const qt=Symbol("INITIAL_VALUE");function ft(){return(0,k.w)(e=>Ve(e.map(r=>r.pipe((0,mt.q)(1),function yn(...e){const r=e[e.length-1];return(0,_.K)(r)?(e.pop(),t=>(0,oe.z)(e,t,r)):t=>(0,oe.z)(e,t)}(qt)))).pipe((0,y.U)(r=>{for(const t of r)if(!0!==t){if(t===qt)return qt;if(!1===t||t instanceof Z)return t}return!0}),(0,B.h)(r=>r!==qt),(0,mt.q)(1)))}function Mr(e){return(0,Rn.z)((0,x.b)(r=>{if(rt(r))throw Tr(0,r)}),(0,y.U)(r=>!0===r))}const Oe={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function kr(e,r,t,n,i){const o=Pe(e,r,t);return o.matched?function Hi(e,r,t,n){const i=r.canMatch;if(!i||0===i.length)return(0,f.of)(!0);const o=i.map(s=>{const a=dt(s,e);return K(function Pi(e){return e&&Tt(e.canMatch)}(a)?a.canMatch(r,t):e.runInContext(()=>a(r,t)))});return(0,f.of)(o).pipe(ft(),Mr())}(n=jr(r,n),r,t).pipe((0,y.U)(s=>!0===s?o:{...Oe})):(0,f.of)(o)}function Pe(e,r,t){var n;if(""===r.path)return"full"===r.pathMatch&&(e.hasChildren()||t.length>0)?{...Oe}:{matched:!0,consumedSegments:[],remainingSegments:t,parameters:{},positionalParamSegments:{}};const o=(r.matcher||Xe)(t,e,r);if(!o)return{...Oe};const s={};E(o.posParams,(u,c)=>{s[c]=u.path});const a=o.consumed.length>0?{...s,...o.consumed[o.consumed.length-1].parameters}:s;return{matched:!0,consumedSegments:o.consumed,remainingSegments:t.slice(o.consumed.length),parameters:a,positionalParamSegments:null!==(n=o.posParams)&&void 0!==n?n:{}}}function Bt(e,r,t,n,i="corrected"){if(t.length>0&&function qi(e,r,t){return t.some(n=>Gt(e,r,n)&&$(n)!==v)}(e,t,n)){const s=new m(r,function Wi(e,r,t,n){const i={};i[v]=n,n._sourceSegment=e,n._segmentIndexShift=r.length;for(const o of t)if(""===o.path&&$(o)!==v){const s=new m([],{});s._sourceSegment=e,s._segmentIndexShift=r.length,i[$(o)]=s}return i}(e,r,n,new m(t,e.children)));return s._sourceSegment=e,s._segmentIndexShift=r.length,{segmentGroup:s,slicedSegments:[]}}if(0===t.length&&function Bi(e,r,t){return t.some(n=>Gt(e,r,n))}(e,t,n)){const s=new m(e.segments,function Vi(e,r,t,n,i,o){const s={};for(const a of n)if(Gt(e,t,a)&&!i[$(a)]){const u=new m([],{});u._sourceSegment=e,u._segmentIndexShift="legacy"===o?e.segments.length:r.length,s[$(a)]=u}return{...i,...s}}(e,r,t,n,e.children,i));return s._sourceSegment=e,s._segmentIndexShift=r.length,{segmentGroup:s,slicedSegments:t}}const o=new m(e.segments,e.children);return o._sourceSegment=e,o._segmentIndexShift=r.length,{segmentGroup:o,slicedSegments:t}}function Gt(e,r,t){return(!(e.hasChildren()||r.length>0)||"full"!==t.pathMatch)&&""===t.path}function Nr(e,r,t,n){return!!($(e)===n||n!==v&&Gt(r,t,e))&&("**"===e.path||Pe(r,e,t).matched)}function Fr(e,r,t){return 0===r.length&&!e.children[t]}const Qt=!1;class Kt{constructor(r){this.segmentGroup=r||null}}class zr{constructor(r){this.urlTree=r}}function Ot(e){return(0,gt._)(new Kt(e))}function Hr(e){return(0,gt._)(new zr(e))}class Zi{constructor(r,t,n,i,o){this.injector=r,this.configLoader=t,this.urlSerializer=n,this.urlTree=i,this.config=o,this.allowRedirects=!0}apply(){const r=Bt(this.urlTree.root,[],[],this.config).segmentGroup,t=new m(r.segments,r.children);return this.expandSegmentGroup(this.injector,this.config,t,v).pipe((0,y.U)(o=>this.createUrlTree(Ft(o),this.urlTree.queryParams,this.urlTree.fragment))).pipe((0,Q.K)(o=>{if(o instanceof zr)return this.allowRedirects=!1,this.match(o.urlTree);throw o instanceof Kt?this.noMatchError(o):o}))}match(r){return this.expandSegmentGroup(this.injector,this.config,r.root,v).pipe((0,y.U)(i=>this.createUrlTree(Ft(i),r.queryParams,r.fragment))).pipe((0,Q.K)(i=>{throw i instanceof Kt?this.noMatchError(i):i}))}noMatchError(r){return new l.\u0275RuntimeError(4002,Qt)}createUrlTree(r,t,n){const i=de(r);return new Z(i,t,n)}expandSegmentGroup(r,t,n,i){return 0===n.segments.length&&n.hasChildren()?this.expandChildren(r,t,n).pipe((0,y.U)(o=>new m([],o))):this.expandSegment(r,n,t,n.segments,i,!0)}expandChildren(r,t,n){const i=[];for(const o of Object.keys(n.children))"primary"===o?i.unshift(o):i.push(o);return(0,w.D)(i).pipe((0,J.b)(o=>{const s=n.children[o],a=Lr(t,o);return this.expandSegmentGroup(r,a,s,o).pipe((0,y.U)(u=>({segment:u,outlet:o})))}),Qe((o,s)=>(o[s.outlet]=s.segment,o),{}),Ke())}expandSegment(r,t,n,i,o,s){return(0,w.D)(n).pipe((0,J.b)(a=>this.expandSegmentAgainstRoute(r,t,n,a,i,o,s).pipe((0,Q.K)(c=>{if(c instanceof Kt)return(0,f.of)(null);throw c}))),G(a=>!!a),(0,Q.K)((a,u)=>{if(Te(a))return Fr(t,i,o)?(0,f.of)(new m([],{})):Ot(t);throw a}))}expandSegmentAgainstRoute(r,t,n,i,o,s,a){return Nr(i,t,o,s)?void 0===i.redirectTo?this.matchSegmentAgainstRoute(r,t,i,o,s):a&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(r,t,n,i,o,s):Ot(t):Ot(t)}expandSegmentAgainstRouteUsingRedirect(r,t,n,i,o,s){return"**"===i.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(r,n,i,s):this.expandRegularSegmentAgainstRouteUsingRedirect(r,t,n,i,o,s)}expandWildCardWithParamsAgainstRouteUsingRedirect(r,t,n,i){const o=this.applyRedirectCommands([],n.redirectTo,{});return n.redirectTo.startsWith("/")?Hr(o):this.lineralizeSegments(n,o).pipe((0,P.zg)(s=>{const a=new m(s,{});return this.expandSegment(r,a,t,s,i,!1)}))}expandRegularSegmentAgainstRouteUsingRedirect(r,t,n,i,o,s){const{matched:a,consumedSegments:u,remainingSegments:c,positionalParamSegments:d}=Pe(t,i,o);if(!a)return Ot(t);const h=this.applyRedirectCommands(u,i.redirectTo,d);return i.redirectTo.startsWith("/")?Hr(h):this.lineralizeSegments(i,h).pipe((0,P.zg)(p=>this.expandSegment(r,t,n,p.concat(c),s,!1)))}matchSegmentAgainstRoute(r,t,n,i,o){return"**"===n.path?(r=jr(n,r),n.loadChildren?(n._loadedRoutes?(0,f.of)({routes:n._loadedRoutes,injector:n._loadedInjector}):this.configLoader.loadChildren(r,n)).pipe((0,y.U)(a=>(n._loadedRoutes=a.routes,n._loadedInjector=a.injector,new m(i,{})))):(0,f.of)(new m(i,{}))):kr(t,n,i,r).pipe((0,k.w)(({matched:s,consumedSegments:a,remainingSegments:u})=>{var c;return s?(r=null!==(c=n._injector)&&void 0!==c?c:r,this.getChildConfig(r,n,i).pipe((0,P.zg)(h=>{var p;const R=null!==(p=h.injector)&&void 0!==p?p:r,I=h.routes,{segmentGroup:j,slicedSegments:L}=Bt(t,a,u,I),q=new m(j.segments,j.children);if(0===L.length&&q.hasChildren())return this.expandChildren(R,I,q).pipe((0,y.U)(Do=>new m(a,Do)));if(0===I.length&&0===L.length)return(0,f.of)(new m(a,{}));const nt=$(n)===o;return this.expandSegment(R,q,I,L,nt?v:o,!0).pipe((0,y.U)(D=>new m(a.concat(D.segments),D.children)))}))):Ot(t)}))}getChildConfig(r,t,n){return t.children?(0,f.of)({routes:t.children,injector:r}):t.loadChildren?void 0!==t._loadedRoutes?(0,f.of)({routes:t._loadedRoutes,injector:t._loadedInjector}):function zi(e,r,t,n){const i=r.canLoad;if(void 0===i||0===i.length)return(0,f.of)(!0);const o=i.map(s=>{const a=dt(s,e);return K(function Ai(e){return e&&Tt(e.canLoad)}(a)?a.canLoad(r,t):e.runInContext(()=>a(r,t)))});return(0,f.of)(o).pipe(ft(),Mr())}(r,t,n).pipe((0,P.zg)(i=>i?this.configLoader.loadChildren(r,t).pipe((0,x.b)(o=>{t._loadedRoutes=o.routes,t._loadedInjector=o.injector})):function Qi(e){return(0,gt._)(Or(Qt,3))}())):(0,f.of)({routes:[],injector:r})}lineralizeSegments(r,t){let n=[],i=t.root;for(;;){if(n=n.concat(i.segments),0===i.numberOfChildren)return(0,f.of)(n);if(i.numberOfChildren>1||!i.children[v])return(0,gt._)(new l.\u0275RuntimeError(4e3,Qt));i=i.children[v]}}applyRedirectCommands(r,t,n){return this.applyRedirectCreateUrlTree(t,this.urlSerializer.parse(t),r,n)}applyRedirectCreateUrlTree(r,t,n,i){const o=this.createSegmentGroup(r,t.root,n,i);return new Z(o,this.createQueryParams(t.queryParams,this.urlTree.queryParams),t.fragment)}createQueryParams(r,t){const n={};return E(r,(i,o)=>{if("string"==typeof i&&i.startsWith(":")){const a=i.substring(1);n[o]=t[a]}else n[o]=i}),n}createSegmentGroup(r,t,n,i){const o=this.createSegments(r,t.segments,n,i);let s={};return E(t.children,(a,u)=>{s[u]=this.createSegmentGroup(r,a,n,i)}),new m(o,s)}createSegments(r,t,n,i){return t.map(o=>o.path.startsWith(":")?this.findPosParam(r,o,i):this.findOrReturn(o,n))}findPosParam(r,t,n){const i=n[t.path.substring(1)];if(!i)throw new l.\u0275RuntimeError(4001,Qt);return i}findOrReturn(r,t){let n=0;for(const i of t){if(i.path===r.path)return t.splice(n),i;n++}return r}}class Yi{}class eo{constructor(r,t,n,i,o,s,a,u){this.injector=r,this.rootComponentType=t,this.config=n,this.urlTree=i,this.url=o,this.paramsInheritanceStrategy=s,this.relativeLinkResolution=a,this.urlSerializer=u}recognize(){const r=Bt(this.urlTree.root,[],[],this.config.filter(t=>void 0===t.redirectTo),this.relativeLinkResolution).segmentGroup;return this.processSegmentGroup(this.injector,this.config,r,v).pipe((0,y.U)(t=>{if(null===t)return null;const n=new Ut([],Object.freeze({}),Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,{},v,this.rootComponentType,null,this.urlTree.root,-1,{}),i=new W(n,t),o=new Se(this.url,i);return this.inheritParamsAndData(o._root),o}))}inheritParamsAndData(r){const t=r.value,n=Ar(t,this.paramsInheritanceStrategy);t.params=Object.freeze(n.params),t.data=Object.freeze(n.data),r.children.forEach(i=>this.inheritParamsAndData(i))}processSegmentGroup(r,t,n,i){return 0===n.segments.length&&n.hasChildren()?this.processChildren(r,t,n):this.processSegment(r,t,n,n.segments,i)}processChildren(r,t,n){return(0,w.D)(Object.keys(n.children)).pipe((0,J.b)(i=>{const o=n.children[i],s=Lr(t,i);return this.processSegmentGroup(r,s,o,i)}),Qe((i,o)=>i&&o?(i.push(...o),i):null),function xn(e,r=!1){return t=>t.lift(new Tn(e,r))}(i=>null!==i),_t(null),Ke(),(0,y.U)(i=>{if(null===i)return null;const o=Vr(i);return function ro(e){e.sort((r,t)=>r.value.outlet===v?-1:t.value.outlet===v?1:r.value.outlet.localeCompare(t.value.outlet))}(o),o}))}processSegment(r,t,n,i,o){return(0,w.D)(t).pipe((0,J.b)(s=>{var a;return this.processSegmentAgainstRoute(null!==(a=s._injector)&&void 0!==a?a:r,s,n,i,o)}),G(s=>!!s),(0,Q.K)(s=>{if(Te(s))return Fr(n,i,o)?(0,f.of)([]):(0,f.of)(null);throw s}))}processSegmentAgainstRoute(r,t,n,i,o){if(t.redirectTo||!Nr(t,n,i,o))return(0,f.of)(null);let s;if("**"===t.path){var a,u;const c=i.length>0?Je(i).parameters:{},d=qr(n)+i.length,h=new Ut(i,c,Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,Gr(t),$(t),null!==(a=null!==(u=t.component)&&void 0!==u?u:t._loadedComponent)&&void 0!==a?a:null,t,Wr(n),d,Qr(t),d);s=(0,f.of)({snapshot:h,consumedSegments:[],remainingSegments:[]})}else s=kr(n,t,i,r).pipe((0,y.U)(({matched:c,consumedSegments:d,remainingSegments:h,parameters:p})=>{var R,I;if(!c)return null;const j=qr(n)+d.length;return{snapshot:new Ut(d,p,Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,Gr(t),$(t),null!==(R=null!==(I=t.component)&&void 0!==I?I:t._loadedComponent)&&void 0!==R?R:null,t,Wr(n),j,Qr(t),j),consumedSegments:d,remainingSegments:h}}));return s.pipe((0,k.w)(c=>{var d,h;if(null===c)return(0,f.of)(null);const{snapshot:p,consumedSegments:R,remainingSegments:I}=c;r=null!==(d=t._injector)&&void 0!==d?d:r;const j=null!==(h=t._loadedInjector)&&void 0!==h?h:r,L=function no(e){return e.children?e.children:e.loadChildren?e._loadedRoutes:[]}(t),{segmentGroup:q,slicedSegments:nt}=Bt(n,R,I,L.filter(D=>void 0===D.redirectTo),this.relativeLinkResolution);if(0===nt.length&&q.hasChildren())return this.processChildren(j,L,q).pipe((0,y.U)(D=>null===D?null:[new W(p,D)]));if(0===L.length&&0===nt.length)return(0,f.of)([new W(p,[])]);const vn=$(t)===o;return this.processSegment(j,L,q,nt,vn?v:o).pipe((0,y.U)(D=>null===D?null:[new W(p,D)]))}))}}function io(e){const r=e.value.routeConfig;return r&&""===r.path&&void 0===r.redirectTo}function Vr(e){const r=[],t=new Set;for(const n of e){if(!io(n)){r.push(n);continue}const i=r.find(o=>n.value.routeConfig===o.value.routeConfig);void 0!==i?(i.children.push(...n.children),t.add(i)):r.push(n)}for(const n of t){const i=Vr(n.children);r.push(new W(n.value,i))}return r.filter(n=>!t.has(n))}function Wr(e){let r=e;for(;r._sourceSegment;)r=r._sourceSegment;return r}function qr(e){var r;let t=e,n=null!==(r=t._segmentIndexShift)&&void 0!==r?r:0;for(;t._sourceSegment;){var i;t=t._sourceSegment,n+=null!==(i=t._segmentIndexShift)&&void 0!==i?i:0}return n-1}function Gr(e){return e.data||{}}function Qr(e){return e.resolve||{}}function Kr(e){return"string"==typeof e.title||null===e.title}function _e(e){return(0,k.w)(r=>{const t=e(r);return t?(0,w.D)(t).pipe((0,y.U)(()=>r)):(0,f.of)(r)})}let $e=(()=>{class e{buildTitle(t){let n,i=t.root;for(;void 0!==i;){var o;n=null!==(o=this.getResolvedTitleForRoute(i))&&void 0!==o?o:n,i=i.children.find(s=>s.outlet===v)}return n}getResolvedTitleForRoute(t){return t.data[Ct]}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=l.\u0275\u0275defineInjectable({token:e,factory:function(){return(0,l.inject)(je)},providedIn:"root"}),e})(),je=(()=>{class e extends $e{constructor(t){super(),this.title=t}updateTitle(t){const n=this.buildTitle(t);void 0!==n&&this.title.setTitle(n)}}return e.\u0275fac=function(t){return new(t||e)(l.\u0275\u0275inject(jn.Dx))},e.\u0275prov=l.\u0275\u0275defineInjectable({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();class Zr{}class Xr{shouldDetach(r){return!1}store(r,t){}shouldAttach(r){return!1}retrieve(r){return null}shouldReuseRoute(r,t){return r.routeConfig===t.routeConfig}}class fo extends Xr{}const Pt=new l.InjectionToken("",{providedIn:"root",factory:()=>({})}),Xt=new l.InjectionToken("ROUTES");let Le=(()=>{class e{constructor(t,n){this.injector=t,this.compiler=n,this.componentLoaders=new WeakMap,this.childrenLoaders=new WeakMap}loadComponent(t){if(this.componentLoaders.get(t))return this.componentLoaders.get(t);if(t._loadedComponent)return(0,f.of)(t._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(t);const n=K(t.loadComponent()).pipe((0,x.b)(o=>{this.onLoadEndListener&&this.onLoadEndListener(t),t._loadedComponent=o}),(0,ae.x)(()=>{this.componentLoaders.delete(t)})),i=new qe.c(n,()=>new st.xQ).pipe((0,Ze.x)());return this.componentLoaders.set(t,i),i}loadChildren(t,n){if(this.childrenLoaders.get(n))return this.childrenLoaders.get(n);if(n._loadedRoutes)return(0,f.of)({routes:n._loadedRoutes,injector:n._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(n);const o=this.loadModuleFactoryOrRoutes(n.loadChildren).pipe((0,y.U)(a=>{this.onLoadEndListener&&this.onLoadEndListener(n);let u,c,d=!1;Array.isArray(a)?c=a:(u=a.create(t).injector,c=le(u.get(Xt,[],l.InjectFlags.Self|l.InjectFlags.Optional)));return{routes:c.map(xe),injector:u}}),(0,ae.x)(()=>{this.childrenLoaders.delete(n)})),s=new qe.c(o,()=>new st.xQ).pipe((0,Ze.x)());return this.childrenLoaders.set(n,s),s}loadModuleFactoryOrRoutes(t){return K(t()).pipe((0,P.zg)(n=>n instanceof l.NgModuleFactory||Array.isArray(n)?(0,f.of)(n):(0,w.D)(this.compiler.compileModuleAsync(n))))}}return e.\u0275fac=function(t){return new(t||e)(l.\u0275\u0275inject(l.Injector),l.\u0275\u0275inject(l.Compiler))},e.\u0275prov=l.\u0275\u0275defineInjectable({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();class Jr{}class go{shouldProcessUrl(r){return!0}extract(r){return r}merge(r,t){return r}}function vo(e){throw e}function mo(e,r,t){return r.parse("/")}const Co={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},Ro={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"};function tn(e,r){e.errorHandler&&(r.errorHandler=e.errorHandler),e.malformedUriErrorHandler&&(r.malformedUriErrorHandler=e.malformedUriErrorHandler),e.onSameUrlNavigation&&(r.onSameUrlNavigation=e.onSameUrlNavigation),e.paramsInheritanceStrategy&&(r.paramsInheritanceStrategy=e.paramsInheritanceStrategy),e.relativeLinkResolution&&(r.relativeLinkResolution=e.relativeLinkResolution),e.urlUpdateStrategy&&(r.urlUpdateStrategy=e.urlUpdateStrategy),e.canceledNavigationResolution&&(r.canceledNavigationResolution=e.canceledNavigationResolution)}function en(){var e,r;const t=(0,l.inject)(ce),n=(0,l.inject)(ht),i=(0,l.inject)(M.Location),o=(0,l.inject)(l.Injector),s=(0,l.inject)(l.Compiler),a=null!==(e=(0,l.inject)(Xt,{optional:!0}))&&void 0!==e?e:[],u=null!==(r=(0,l.inject)(Pt,{optional:!0}))&&void 0!==r?r:{},c=(0,l.inject)(je),d=(0,l.inject)($e,{optional:!0}),h=(0,l.inject)(Jr,{optional:!0}),p=(0,l.inject)(Zr,{optional:!0}),R=new b(null,t,n,i,o,s,le(a));return h&&(R.urlHandlingStrategy=h),p&&(R.routeReuseStrategy=p),R.titleStrategy=d??c,tn(u,R),R}let b=(()=>{class e{constructor(t,n,i,o,s,a,u){this.rootComponentType=t,this.urlSerializer=n,this.rootContexts=i,this.location=o,this.config=u,this.lastSuccessfulNavigation=null,this.currentNavigation=null,this.disposed=!1,this.navigationId=0,this.currentPageId=0,this.isNgZoneEnabled=!1,this.events=new st.xQ,this.errorHandler=vo,this.malformedUriErrorHandler=mo,this.navigated=!1,this.lastSuccessfulId=-1,this.afterPreactivation=()=>(0,f.of)(void 0),this.urlHandlingStrategy=new go,this.routeReuseStrategy=new fo,this.onSameUrlNavigation="ignore",this.paramsInheritanceStrategy="emptyOnly",this.urlUpdateStrategy="deferred",this.relativeLinkResolution="corrected",this.canceledNavigationResolution="replace",this.configLoader=s.get(Le),this.configLoader.onLoadEndListener=p=>this.triggerEvent(new yr(p)),this.configLoader.onLoadStartListener=p=>this.triggerEvent(new Rr(p)),this.ngModule=s.get(l.NgModuleRef),this.console=s.get(l.\u0275Console);const h=s.get(l.NgZone);this.isNgZoneEnabled=h instanceof l.NgZone&&l.NgZone.isInAngularZone(),this.resetConfig(u),this.currentUrlTree=function Mn(){return new Z(new m([],{}),{},null)}(),this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.routerState=Ir(this.currentUrlTree,this.rootComponentType),this.transitions=new T.X({id:0,targetPageId:0,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,extractedUrl:this.urlHandlingStrategy.extract(this.currentUrlTree),urlAfterRedirects:this.urlHandlingStrategy.extract(this.currentUrlTree),rawUrl:this.currentUrlTree,extras:{},resolve:null,reject:null,promise:Promise.resolve(!0),source:"imperative",restoredState:null,currentSnapshot:this.routerState.snapshot,targetSnapshot:null,currentRouterState:this.routerState,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.navigations=this.setupNavigations(this.transitions),this.processNavigations()}get browserPageId(){var t;return null===(t=this.location.getState())||void 0===t?void 0:t.\u0275routerPageId}setupNavigations(t){const n=this.events;return t.pipe((0,B.h)(i=>0!==i.id),(0,y.U)(i=>({...i,extractedUrl:this.urlHandlingStrategy.extract(i.rawUrl)})),(0,k.w)(i=>{let o=!1,s=!1;return(0,f.of)(i).pipe((0,x.b)(a=>{this.currentNavigation={id:a.id,initialUrl:a.rawUrl,extractedUrl:a.extractedUrl,trigger:a.source,extras:a.extras,previousNavigation:this.lastSuccessfulNavigation?{...this.lastSuccessfulNavigation,previousNavigation:null}:null}}),(0,k.w)(a=>{const u=this.browserUrlTree.toString(),c=!this.navigated||a.extractedUrl.toString()!==u||u!==this.currentUrlTree.toString();if(("reload"===this.onSameUrlNavigation||c)&&this.urlHandlingStrategy.shouldProcessUrl(a.rawUrl))return rn(a.source)&&(this.browserUrlTree=a.extractedUrl),(0,f.of)(a).pipe((0,k.w)(h=>{const p=this.transitions.getValue();return n.next(new zt(h.id,this.serializeUrl(h.extractedUrl),h.source,h.restoredState)),p!==this.transitions.getValue()?vt.E:Promise.resolve(h)}),function Xi(e,r,t,n){return(0,k.w)(i=>function Ki(e,r,t,n,i){return new Zi(e,r,t,n,i).apply()}(e,r,t,i.extractedUrl,n).pipe((0,y.U)(o=>({...i,urlAfterRedirects:o}))))}(this.ngModule.injector,this.configLoader,this.urlSerializer,this.config),(0,x.b)(h=>{this.currentNavigation={...this.currentNavigation,finalUrl:h.urlAfterRedirects},i.urlAfterRedirects=h.urlAfterRedirects}),function so(e,r,t,n,i,o){return(0,P.zg)(s=>function to(e,r,t,n,i,o,s="emptyOnly",a="legacy"){return new eo(e,r,t,n,i,s,a,o).recognize().pipe((0,k.w)(u=>null===u?function Ji(e){return new H.y(r=>r.error(e))}(new Yi):(0,f.of)(u)))}(e,r,t,s.urlAfterRedirects,n.serialize(s.urlAfterRedirects),n,i,o).pipe((0,y.U)(a=>({...s,targetSnapshot:a}))))}(this.ngModule.injector,this.rootComponentType,this.config,this.urlSerializer,this.paramsInheritanceStrategy,this.relativeLinkResolution),(0,x.b)(h=>{if(i.targetSnapshot=h.targetSnapshot,"eager"===this.urlUpdateStrategy){if(!h.extras.skipLocationChange){const R=this.urlHandlingStrategy.merge(h.urlAfterRedirects,h.rawUrl);this.setBrowserUrl(R,h)}this.browserUrlTree=h.urlAfterRedirects}const p=new pr(h.id,this.serializeUrl(h.extractedUrl),this.serializeUrl(h.urlAfterRedirects),h.targetSnapshot);n.next(p)}));if(c&&this.rawUrlTree&&this.urlHandlingStrategy.shouldProcessUrl(this.rawUrlTree)){const{id:p,extractedUrl:R,source:I,restoredState:j,extras:L}=a,q=new zt(p,this.serializeUrl(R),I,j);n.next(q);const nt=Ir(R,this.rootComponentType).snapshot;return i={...a,targetSnapshot:nt,urlAfterRedirects:R,extras:{...L,skipLocationChange:!1,replaceUrl:!1}},(0,f.of)(i)}return this.rawUrlTree=a.rawUrl,a.resolve(null),vt.E}),(0,x.b)(a=>{const u=new gr(a.id,this.serializeUrl(a.extractedUrl),this.serializeUrl(a.urlAfterRedirects),a.targetSnapshot);this.triggerEvent(u)}),(0,y.U)(a=>i={...a,guards:wi(a.targetSnapshot,a.currentSnapshot,this.rootContexts)}),function $i(e,r){return(0,P.zg)(t=>{const{targetSnapshot:n,currentSnapshot:i,guards:{canActivateChecks:o,canDeactivateChecks:s}}=t;return 0===s.length&&0===o.length?(0,f.of)({...t,guardsResult:!0}):function ji(e,r,t,n){return(0,w.D)(e).pipe((0,P.zg)(i=>function Fi(e,r,t,n,i){const o=r&&r.routeConfig?r.routeConfig.canDeactivate:null;if(!o||0===o.length)return(0,f.of)(!0);const s=o.map(a=>{var u;const c=null!==(u=It(r))&&void 0!==u?u:i,d=dt(a,c);return K(function Oi(e){return e&&Tt(e.canDeactivate)}(d)?d.canDeactivate(e,r,t,n):c.runInContext(()=>d(e,r,t,n))).pipe(G())});return(0,f.of)(s).pipe(ft())}(i.component,i.route,t,r,n)),G(i=>!0!==i,!0))}(s,n,i,e).pipe((0,P.zg)(a=>a&&function Ii(e){return"boolean"==typeof e}(a)?function Li(e,r,t,n){return(0,w.D)(r).pipe((0,J.b)(i=>(0,oe.z)(function Mi(e,r){return null!==e&&r&&r(new Sr(e)),(0,f.of)(!0)}(i.route.parent,n),function Di(e,r){return null!==e&&r&&r(new br(e)),(0,f.of)(!0)}(i.route,n),function Ni(e,r,t){const n=r[r.length-1],o=r.slice(0,r.length-1).reverse().map(s=>function bi(e){const r=e.routeConfig?e.routeConfig.canActivateChild:null;return r&&0!==r.length?{node:e,guards:r}:null}(s)).filter(s=>null!==s).map(s=>(0,We.P)(()=>{const a=s.guards.map(u=>{var c;const d=null!==(c=It(s.node))&&void 0!==c?c:t,h=dt(u,d);return K(function Ti(e){return e&&Tt(e.canActivateChild)}(h)?h.canActivateChild(n,e):d.runInContext(()=>h(n,e))).pipe(G())});return(0,f.of)(a).pipe(ft())}));return(0,f.of)(o).pipe(ft())}(e,i.path,t),function ki(e,r,t){const n=r.routeConfig?r.routeConfig.canActivate:null;if(!n||0===n.length)return(0,f.of)(!0);const i=n.map(o=>(0,We.P)(()=>{var s;const a=null!==(s=It(r))&&void 0!==s?s:t,u=dt(o,a);return K(function xi(e){return e&&Tt(e.canActivate)}(u)?u.canActivate(r,e):a.runInContext(()=>u(r,e))).pipe(G())}));return(0,f.of)(i).pipe(ft())}(e,i.route,t))),G(i=>!0!==i,!0))}(n,o,e,r):(0,f.of)(a)),(0,y.U)(a=>({...t,guardsResult:a})))})}(this.ngModule.injector,a=>this.triggerEvent(a)),(0,x.b)(a=>{if(i.guardsResult=a.guardsResult,rt(a.guardsResult))throw Tr(0,a.guardsResult);const u=new vr(a.id,this.serializeUrl(a.extractedUrl),this.serializeUrl(a.urlAfterRedirects),a.targetSnapshot,!!a.guardsResult);this.triggerEvent(u)}),(0,B.h)(a=>!!a.guardsResult||(this.restoreHistory(a),this.cancelNavigationTransition(a,"",3),!1)),_e(a=>{if(a.guards.canActivateChecks.length)return(0,f.of)(a).pipe((0,x.b)(u=>{const c=new mr(u.id,this.serializeUrl(u.extractedUrl),this.serializeUrl(u.urlAfterRedirects),u.targetSnapshot);this.triggerEvent(c)}),(0,k.w)(u=>{let c=!1;return(0,f.of)(u).pipe(function ao(e,r){return(0,P.zg)(t=>{const{targetSnapshot:n,guards:{canActivateChecks:i}}=t;if(!i.length)return(0,f.of)(t);let o=0;return(0,w.D)(i).pipe((0,J.b)(s=>function lo(e,r,t,n){const i=e.routeConfig,o=e._resolve;return void 0!==i?.title&&!Kr(i)&&(o[Ct]=i.title),function uo(e,r,t,n){const i=function co(e){return[...Object.keys(e),...Object.getOwnPropertySymbols(e)]}(e);if(0===i.length)return(0,f.of)({});const o={};return(0,w.D)(i).pipe((0,P.zg)(s=>function ho(e,r,t,n){var i;const o=null!==(i=It(r))&&void 0!==i?i:n,s=dt(e,o);return K(s.resolve?s.resolve(r,t):o.runInContext(()=>s(r,t)))}(e[s],r,t,n).pipe(G(),(0,x.b)(a=>{o[s]=a}))),(0,se.h)(1),function Pn(e){return r=>r.lift(new _n(e))}(o),(0,Q.K)(s=>Te(s)?vt.E:(0,gt._)(s)))}(o,e,r,n).pipe((0,y.U)(s=>(e._resolvedData=s,e.data=Ar(e,t).resolve,i&&Kr(i)&&(e.data[Ct]=i.title),null)))}(s.route,n,e,r)),(0,x.b)(()=>o++),(0,se.h)(1),(0,P.zg)(s=>o===i.length?(0,f.of)(t):vt.E))})}(this.paramsInheritanceStrategy,this.ngModule.injector),(0,x.b)({next:()=>c=!0,complete:()=>{c||(this.restoreHistory(u),this.cancelNavigationTransition(u,"",2))}}))}),(0,x.b)(u=>{const c=new Cr(u.id,this.serializeUrl(u.extractedUrl),this.serializeUrl(u.urlAfterRedirects),u.targetSnapshot);this.triggerEvent(c)}))}),_e(a=>{const u=c=>{var d;const h=[];null!==(d=c.routeConfig)&&void 0!==d&&d.loadComponent&&!c.routeConfig._loadedComponent&&h.push(this.configLoader.loadComponent(c.routeConfig).pipe((0,x.b)(p=>{c.component=p}),(0,y.U)(()=>{})));for(const p of c.children)h.push(...u(p));return h};return Ve(u(a.targetSnapshot.root)).pipe(_t(),(0,mt.q)(1))}),_e(()=>this.afterPreactivation()),(0,y.U)(a=>{const u=function di(e,r,t){const n=Et(e,r._root,t?t._root:void 0);return new ye(n,r)}(this.routeReuseStrategy,a.targetSnapshot,a.currentRouterState);return i={...a,targetRouterState:u}}),(0,x.b)(a=>{this.currentUrlTree=a.urlAfterRedirects,this.rawUrlTree=this.urlHandlingStrategy.merge(a.urlAfterRedirects,a.rawUrl),this.routerState=a.targetRouterState,"deferred"===this.urlUpdateStrategy&&(a.extras.skipLocationChange||this.setBrowserUrl(this.rawUrlTree,a),this.browserUrlTree=a.urlAfterRedirects)}),((e,r,t)=>(0,y.U)(n=>(new Si(r,n.targetRouterState,n.currentRouterState,t).activate(e),n)))(this.rootContexts,this.routeReuseStrategy,a=>this.triggerEvent(a)),(0,x.b)({next(){o=!0},complete(){o=!0}}),(0,ae.x)(()=>{var a;o||s||this.cancelNavigationTransition(i,"",1),(null===(a=this.currentNavigation)||void 0===a?void 0:a.id)===i.id&&(this.currentNavigation=null)}),(0,Q.K)(a=>{if(s=!0,_r(a)){Pr(a)||(this.navigated=!0,this.restoreHistory(i,!0));const c=new bt(i.id,this.serializeUrl(i.extractedUrl),a.message,a.cancellationCode);if(n.next(c),Pr(a)){const d=this.urlHandlingStrategy.merge(a.url,this.rawUrlTree),h={skipLocationChange:i.extras.skipLocationChange,replaceUrl:"eager"===this.urlUpdateStrategy||rn(i.source)};this.scheduleNavigation(d,"imperative",null,h,{resolve:i.resolve,reject:i.reject,promise:i.promise})}else i.resolve(!1)}else{var u;this.restoreHistory(i,!0);const c=new ve(i.id,this.serializeUrl(i.extractedUrl),a,null!==(u=i.targetSnapshot)&&void 0!==u?u:void 0);n.next(c);try{i.resolve(this.errorHandler(a))}catch(d){i.reject(d)}}return vt.E}))}))}resetRootComponentType(t){this.rootComponentType=t,this.routerState.root.component=this.rootComponentType}setTransition(t){this.transitions.next({...this.transitions.value,...t})}initialNavigation(){this.setUpLocationChangeListener(),0===this.navigationId&&this.navigateByUrl(this.location.path(!0),{replaceUrl:!0})}setUpLocationChangeListener(){this.locationSubscription||(this.locationSubscription=this.location.subscribe(t=>{const n="popstate"===t.type?"popstate":"hashchange";"popstate"===n&&setTimeout(()=>{var i;const o={replaceUrl:!0},s=null!==(i=t.state)&&void 0!==i&&i.navigationId?t.state:null;if(s){const u={...s};delete u.navigationId,delete u.\u0275routerPageId,0!==Object.keys(u).length&&(o.state=u)}const a=this.parseUrl(t.url);this.scheduleNavigation(a,n,s,o)},0)}))}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.currentNavigation}triggerEvent(t){this.events.next(t)}resetConfig(t){this.config=t.map(xe),this.navigated=!1,this.lastSuccessfulId=-1}ngOnDestroy(){this.dispose()}dispose(){this.transitions.complete(),this.locationSubscription&&(this.locationSubscription.unsubscribe(),this.locationSubscription=void 0),this.disposed=!0}createUrlTree(t,n={}){const{relativeTo:i,queryParams:o,fragment:s,queryParamsHandling:a,preserveFragment:u}=n,c=i||this.routerState.root,d=u?this.currentUrlTree.fragment:s;let h=null;switch(a){case"merge":h={...this.currentUrlTree.queryParams,...o};break;case"preserve":h=this.currentUrlTree.queryParams;break;default:h=o||null}return null!==h&&(h=this.removeEmptyProps(h)),function ni(e,r,t,n,i){var o;if(0===t.length)return lt(r.root,r.root,r.root,n,i);const s=cr(t);if(s.toRoot())return lt(r.root,r.root,new m([],{}),n,i);const u=function a(d){var h;const p=function oi(e,r,t,n){return e.isAbsolute?new ut(r.root,!0,0):-1===n?new ut(t,t===r.root,0):hr(t,n+(yt(e.commands[0])?0:1),e.numberOfDoubleDots)}(s,r,null===(h=e.snapshot)||void 0===h?void 0:h._urlSegment,d),R=p.processChildren?wt(p.segmentGroup,p.index,s.commands):pe(p.segmentGroup,p.index,s.commands);return lt(r.root,p.segmentGroup,R,n,i)}(null===(o=e.snapshot)||void 0===o?void 0:o._lastPathIndex);return u}(c,this.currentUrlTree,t,h,d??null)}navigateByUrl(t,n={skipLocationChange:!1}){const i=rt(t)?t:this.parseUrl(t),o=this.urlHandlingStrategy.merge(i,this.rawUrlTree);return this.scheduleNavigation(o,"imperative",null,n)}navigate(t,n={skipLocationChange:!1}){return function yo(e){for(let r=0;r<e.length;r++){if(null==e[r])throw new l.\u0275RuntimeError(4008,false)}}(t),this.navigateByUrl(this.createUrlTree(t,n),n)}serializeUrl(t){return this.urlSerializer.serialize(t)}parseUrl(t){let n;try{n=this.urlSerializer.parse(t)}catch(i){n=this.malformedUriErrorHandler(i,this.urlSerializer,t)}return n}isActive(t,n){let i;if(i=!0===n?{...Co}:!1===n?{...Ro}:n,rt(t))return er(this.currentUrlTree,t,i);const o=this.parseUrl(t);return er(this.currentUrlTree,o,i)}removeEmptyProps(t){return Object.keys(t).reduce((n,i)=>{const o=t[i];return null!=o&&(n[i]=o),n},{})}processNavigations(){this.navigations.subscribe(t=>{var n;this.navigated=!0,this.lastSuccessfulId=t.id,this.currentPageId=t.targetPageId,this.events.next(new X(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(this.currentUrlTree))),this.lastSuccessfulNavigation=this.currentNavigation,null===(n=this.titleStrategy)||void 0===n||n.updateTitle(this.routerState.snapshot),t.resolve(!0)},t=>{this.console.warn(`Unhandled Navigation Error: ${t}`)})}scheduleNavigation(t,n,i,o,s){if(this.disposed)return Promise.resolve(!1);let a,u,c;s?(a=s.resolve,u=s.reject,c=s.promise):c=new Promise((I,j)=>{a=I,u=j});const d=++this.navigationId;let h;if("computed"===this.canceledNavigationResolution)if(0===this.currentPageId&&(i=this.location.getState()),i&&i.\u0275routerPageId)h=i.\u0275routerPageId;else if(o.replaceUrl||o.skipLocationChange){var p;h=null!==(p=this.browserPageId)&&void 0!==p?p:0}else{var R;h=(null!==(R=this.browserPageId)&&void 0!==R?R:0)+1}else h=0;return this.setTransition({id:d,targetPageId:h,source:n,restoredState:i,currentUrlTree:this.currentUrlTree,currentRawUrl:this.rawUrlTree,rawUrl:t,extras:o,resolve:a,reject:u,promise:c,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),c.catch(I=>Promise.reject(I))}setBrowserUrl(t,n){const i=this.urlSerializer.serialize(t),o={...n.extras.state,...this.generateNgRouterState(n.id,n.targetPageId)};this.location.isCurrentPathEqualTo(i)||n.extras.replaceUrl?this.location.replaceState(i,"",o):this.location.go(i,"",o)}restoreHistory(t,n=!1){if("computed"===this.canceledNavigationResolution){var i,o;const s=this.currentPageId-t.targetPageId;"popstate"!==t.source&&"eager"!==this.urlUpdateStrategy&&this.currentUrlTree!==(null===(i=this.currentNavigation)||void 0===i?void 0:i.finalUrl)||0===s?this.currentUrlTree===(null===(o=this.currentNavigation)||void 0===o?void 0:o.finalUrl)&&0===s&&(this.resetState(t),this.browserUrlTree=t.currentUrlTree,this.resetUrlToCurrentUrlTree()):this.location.historyGo(s)}else"replace"===this.canceledNavigationResolution&&(n&&this.resetState(t),this.resetUrlToCurrentUrlTree())}resetState(t){this.routerState=t.currentRouterState,this.currentUrlTree=t.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,t.rawUrl)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}cancelNavigationTransition(t,n,i){const o=new bt(t.id,this.serializeUrl(t.extractedUrl),n,i);this.triggerEvent(o),t.resolve(!1)}generateNgRouterState(t,n){return"computed"===this.canceledNavigationResolution?{navigationId:t,\u0275routerPageId:n}:{navigationId:t}}}return e.\u0275fac=function(t){l.\u0275\u0275invalidFactory()},e.\u0275prov=l.\u0275\u0275defineInjectable({token:e,factory:function(){return en()},providedIn:"root"}),e})();function rn(e){return"imperative"!==e}let Jt=(()=>{class e{constructor(t,n,i,o,s){this.router=t,this.route=n,this.tabIndexAttribute=i,this.renderer=o,this.el=s,this._preserveFragment=!1,this._skipLocationChange=!1,this._replaceUrl=!1,this.commands=null,this.onChanges=new st.xQ,this.setTabIndexIfNotOnNativeEl("0")}set preserveFragment(t){this._preserveFragment=(0,l.\u0275coerceToBoolean)(t)}get preserveFragment(){return this._preserveFragment}set skipLocationChange(t){this._skipLocationChange=(0,l.\u0275coerceToBoolean)(t)}get skipLocationChange(){return this._skipLocationChange}set replaceUrl(t){this._replaceUrl=(0,l.\u0275coerceToBoolean)(t)}get replaceUrl(){return this._replaceUrl}setTabIndexIfNotOnNativeEl(t){if(null!=this.tabIndexAttribute)return;const n=this.renderer,i=this.el.nativeElement;null!==t?n.setAttribute(i,"tabindex",t):n.removeAttribute(i,"tabindex")}ngOnChanges(t){this.onChanges.next(this)}set routerLink(t){null!=t?(this.commands=Array.isArray(t)?t:[t],this.setTabIndexIfNotOnNativeEl("0")):(this.commands=null,this.setTabIndexIfNotOnNativeEl(null))}onClick(){return null===this.urlTree||this.router.navigateByUrl(this.urlTree,{skipLocationChange:this.skipLocationChange,replaceUrl:this.replaceUrl,state:this.state}),!0}get urlTree(){return null===this.commands?null:this.router.createUrlTree(this.commands,{relativeTo:void 0!==this.relativeTo?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:this.preserveFragment})}}return e.\u0275fac=function(t){return new(t||e)(l.\u0275\u0275directiveInject(b),l.\u0275\u0275directiveInject(Y),l.\u0275\u0275injectAttribute("tabindex"),l.\u0275\u0275directiveInject(l.Renderer2),l.\u0275\u0275directiveInject(l.ElementRef))},e.\u0275dir=l.\u0275\u0275defineDirective({type:e,selectors:[["","routerLink","",5,"a",5,"area"]],hostBindings:function(t,n){1&t&&l.\u0275\u0275listener("click",function(){return n.onClick()})},inputs:{queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",state:"state",relativeTo:"relativeTo",preserveFragment:"preserveFragment",skipLocationChange:"skipLocationChange",replaceUrl:"replaceUrl",routerLink:"routerLink"},standalone:!0,features:[l.\u0275\u0275NgOnChangesFeature]}),e})(),te=(()=>{class e{constructor(t,n,i){this.router=t,this.route=n,this.locationStrategy=i,this._preserveFragment=!1,this._skipLocationChange=!1,this._replaceUrl=!1,this.commands=null,this.href=null,this.onChanges=new st.xQ,this.subscription=t.events.subscribe(o=>{o instanceof X&&this.updateTargetUrlAndHref()})}set preserveFragment(t){this._preserveFragment=(0,l.\u0275coerceToBoolean)(t)}get preserveFragment(){return this._preserveFragment}set skipLocationChange(t){this._skipLocationChange=(0,l.\u0275coerceToBoolean)(t)}get skipLocationChange(){return this._skipLocationChange}set replaceUrl(t){this._replaceUrl=(0,l.\u0275coerceToBoolean)(t)}get replaceUrl(){return this._replaceUrl}set routerLink(t){this.commands=null!=t?Array.isArray(t)?t:[t]:null}ngOnChanges(t){this.updateTargetUrlAndHref(),this.onChanges.next(this)}ngOnDestroy(){this.subscription.unsubscribe()}onClick(t,n,i,o,s){return!!(0!==t||n||i||o||s||"string"==typeof this.target&&"_self"!=this.target||null===this.urlTree)||(this.router.navigateByUrl(this.urlTree,{skipLocationChange:this.skipLocationChange,replaceUrl:this.replaceUrl,state:this.state}),!1)}updateTargetUrlAndHref(){this.href=null!==this.urlTree?this.locationStrategy.prepareExternalUrl(this.router.serializeUrl(this.urlTree)):null}get urlTree(){return null===this.commands?null:this.router.createUrlTree(this.commands,{relativeTo:void 0!==this.relativeTo?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:this.preserveFragment})}}return e.\u0275fac=function(t){return new(t||e)(l.\u0275\u0275directiveInject(b),l.\u0275\u0275directiveInject(Y),l.\u0275\u0275directiveInject(M.LocationStrategy))},e.\u0275dir=l.\u0275\u0275defineDirective({type:e,selectors:[["a","routerLink",""],["area","routerLink",""]],hostVars:2,hostBindings:function(t,n){1&t&&l.\u0275\u0275listener("click",function(o){return n.onClick(o.button,o.ctrlKey,o.shiftKey,o.altKey,o.metaKey)}),2&t&&l.\u0275\u0275attribute("target",n.target)("href",n.href,l.\u0275\u0275sanitizeUrl)},inputs:{target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",state:"state",relativeTo:"relativeTo",preserveFragment:"preserveFragment",skipLocationChange:"skipLocationChange",replaceUrl:"replaceUrl",routerLink:"routerLink"},standalone:!0,features:[l.\u0275\u0275NgOnChangesFeature]}),e})(),nn=(()=>{class e{constructor(t,n,i,o,s,a){this.router=t,this.element=n,this.renderer=i,this.cdr=o,this.link=s,this.linkWithHref=a,this.classes=[],this.isActive=!1,this.routerLinkActiveOptions={exact:!1},this.isActiveChange=new l.EventEmitter,this.routerEventsSubscription=t.events.subscribe(u=>{u instanceof X&&this.update()})}ngAfterContentInit(){(0,f.of)(this.links.changes,this.linksWithHrefs.changes,(0,f.of)(null)).pipe((0,$t.J)()).subscribe(t=>{this.update(),this.subscribeToEachLinkOnChanges()})}subscribeToEachLinkOnChanges(){var t;null===(t=this.linkInputChangesSubscription)||void 0===t||t.unsubscribe();const n=[...this.links.toArray(),...this.linksWithHrefs.toArray(),this.link,this.linkWithHref].filter(i=>!!i).map(i=>i.onChanges);this.linkInputChangesSubscription=(0,w.D)(n).pipe((0,$t.J)()).subscribe(i=>{this.isActive!==this.isLinkActive(this.router)(i)&&this.update()})}set routerLinkActive(t){const n=Array.isArray(t)?t:t.split(" ");this.classes=n.filter(i=>!!i)}ngOnChanges(t){this.update()}ngOnDestroy(){var t;this.routerEventsSubscription.unsubscribe(),null===(t=this.linkInputChangesSubscription)||void 0===t||t.unsubscribe()}update(){!this.links||!this.linksWithHrefs||!this.router.navigated||Promise.resolve().then(()=>{const t=this.hasActiveLinks();this.isActive!==t&&(this.isActive=t,this.cdr.markForCheck(),this.classes.forEach(n=>{t?this.renderer.addClass(this.element.nativeElement,n):this.renderer.removeClass(this.element.nativeElement,n)}),t&&void 0!==this.ariaCurrentWhenActive?this.renderer.setAttribute(this.element.nativeElement,"aria-current",this.ariaCurrentWhenActive.toString()):this.renderer.removeAttribute(this.element.nativeElement,"aria-current"),this.isActiveChange.emit(t))})}isLinkActive(t){const n=function So(e){return!!e.paths}(this.routerLinkActiveOptions)?this.routerLinkActiveOptions:this.routerLinkActiveOptions.exact||!1;return i=>!!i.urlTree&&t.isActive(i.urlTree,n)}hasActiveLinks(){const t=this.isLinkActive(this.router);return this.link&&t(this.link)||this.linkWithHref&&t(this.linkWithHref)||this.links.some(t)||this.linksWithHrefs.some(t)}}return e.\u0275fac=function(t){return new(t||e)(l.\u0275\u0275directiveInject(b),l.\u0275\u0275directiveInject(l.ElementRef),l.\u0275\u0275directiveInject(l.Renderer2),l.\u0275\u0275directiveInject(l.ChangeDetectorRef),l.\u0275\u0275directiveInject(Jt,8),l.\u0275\u0275directiveInject(te,8))},e.\u0275dir=l.\u0275\u0275defineDirective({type:e,selectors:[["","routerLinkActive",""]],contentQueries:function(t,n,i){if(1&t&&(l.\u0275\u0275contentQuery(i,Jt,5),l.\u0275\u0275contentQuery(i,te,5)),2&t){let o;l.\u0275\u0275queryRefresh(o=l.\u0275\u0275loadQuery())&&(n.links=o),l.\u0275\u0275queryRefresh(o=l.\u0275\u0275loadQuery())&&(n.linksWithHrefs=o)}},inputs:{routerLinkActiveOptions:"routerLinkActiveOptions",ariaCurrentWhenActive:"ariaCurrentWhenActive",routerLinkActive:"routerLinkActive"},outputs:{isActiveChange:"isActiveChange"},exportAs:["routerLinkActive"],standalone:!0,features:[l.\u0275\u0275NgOnChangesFeature]}),e})();class De{}let wo=(()=>{class e{preload(t,n){return n().pipe((0,Q.K)(()=>(0,f.of)(null)))}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=l.\u0275\u0275defineInjectable({token:e,factory:e.\u0275fac,providedIn:"root"}),e})(),bo=(()=>{class e{preload(t,n){return(0,f.of)(null)}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=l.\u0275\u0275defineInjectable({token:e,factory:e.\u0275fac,providedIn:"root"}),e})(),on=(()=>{class e{constructor(t,n,i,o,s){this.router=t,this.injector=i,this.preloadingStrategy=o,this.loader=s}setUpPreloading(){this.subscription=this.router.events.pipe((0,B.h)(t=>t instanceof X),(0,J.b)(()=>this.preload())).subscribe(()=>{})}preload(){return this.processRoutes(this.injector,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(t,n){const i=[];for(const u of n){var o,s;u.providers&&!u._injector&&(u._injector=(0,l.createEnvironmentInjector)(u.providers,t,`Route: ${u.path}`));const c=null!==(o=u._injector)&&void 0!==o?o:t,d=null!==(s=u._loadedInjector)&&void 0!==s?s:c;if(u.loadChildren&&!u._loadedRoutes&&void 0===u.canLoad||u.loadComponent&&!u._loadedComponent)i.push(this.preloadConfig(c,u));else if(u.children||u._loadedRoutes){var a;i.push(this.processRoutes(d,null!==(a=u.children)&&void 0!==a?a:u._loadedRoutes))}}return(0,w.D)(i).pipe((0,$t.J)())}preloadConfig(t,n){return this.preloadingStrategy.preload(n,()=>{let i;i=n.loadChildren&&void 0===n.canLoad?this.loader.loadChildren(t,n):(0,f.of)(null);const o=i.pipe((0,P.zg)(s=>{var a;return null===s?(0,f.of)(void 0):(n._loadedRoutes=s.routes,n._loadedInjector=s.injector,this.processRoutes(null!==(a=s.injector)&&void 0!==a?a:t,s.routes))}));if(n.loadComponent&&!n._loadedComponent){const s=this.loader.loadComponent(n);return(0,w.D)([o,s]).pipe((0,$t.J)())}return o})}}return e.\u0275fac=function(t){return new(t||e)(l.\u0275\u0275inject(b),l.\u0275\u0275inject(l.Compiler),l.\u0275\u0275inject(l.EnvironmentInjector),l.\u0275\u0275inject(De),l.\u0275\u0275inject(Le))},e.\u0275prov=l.\u0275\u0275defineInjectable({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();const Me=new l.InjectionToken("");let sn=(()=>{class e{constructor(t,n,i={}){this.router=t,this.viewportScroller=n,this.options=i,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},i.scrollPositionRestoration=i.scrollPositionRestoration||"disabled",i.anchorScrolling=i.anchorScrolling||"disabled"}init(){"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents()}createScrollEvents(){return this.router.events.subscribe(t=>{t instanceof zt?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=t.navigationTrigger,this.restoredId=t.restoredState?t.restoredState.navigationId:0):t instanceof X&&(this.lastId=t.id,this.scheduleScrollEvent(t,this.router.parseUrl(t.urlAfterRedirects).fragment))})}consumeScrollEvents(){return this.router.events.subscribe(t=>{t instanceof me&&(t.position?"top"===this.options.scrollPositionRestoration?this.viewportScroller.scrollToPosition([0,0]):"enabled"===this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition(t.position):t.anchor&&"enabled"===this.options.anchorScrolling?this.viewportScroller.scrollToAnchor(t.anchor):"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition([0,0]))})}scheduleScrollEvent(t,n){this.router.triggerEvent(new me(t,"popstate"===this.lastSource?this.store[this.restoredId]:null,n))}ngOnDestroy(){this.routerEventsSubscription&&this.routerEventsSubscription.unsubscribe(),this.scrollEventsSubscription&&this.scrollEventsSubscription.unsubscribe()}}return e.\u0275fac=function(t){l.\u0275\u0275invalidFactory()},e.\u0275prov=l.\u0275\u0275defineInjectable({token:e,factory:e.\u0275fac}),e})();function Uo(e,...r){return[re(e),{provide:Y,useFactory:an,deps:[b]},{provide:l.APP_BOOTSTRAP_LISTENER,multi:!0,useFactory:ln},r.map(t=>t.\u0275providers)]}function an(e){return e.routerState.root}function pt(e,r){return{\u0275kind:e,\u0275providers:r}}function re(e){return[{provide:Xt,multi:!0,useValue:e}]}function Eo(e={}){return pt(4,[{provide:Me,useFactory:()=>{const t=(0,l.inject)(b),n=(0,l.inject)(M.ViewportScroller);return new sn(t,n,e)}}])}function ln(){const e=(0,l.inject)(l.Injector);return r=>{var t,n;const i=e.get(l.ApplicationRef);if(r!==i.components[0])return;const o=e.get(b),s=e.get(un);1===e.get(ke)&&o.initialNavigation(),null===(t=e.get(fn,null,l.InjectFlags.Optional))||void 0===t||t.setUpPreloading(),null===(n=e.get(Me,null,l.InjectFlags.Optional))||void 0===n||n.init(),o.resetRootComponentType(i.componentTypes[0]),s.closed||(s.next(),s.unsubscribe())}}const un=new l.InjectionToken("",{factory:()=>new st.xQ}),ke=new l.InjectionToken("",{providedIn:"root",factory:()=>1});function cn(){return pt(2,[{provide:ke,useValue:0},{provide:l.APP_INITIALIZER,multi:!0,deps:[l.Injector],useFactory:r=>{const t=r.get(M.LOCATION_INITIALIZED,Promise.resolve());let n=!1;return()=>t.then(()=>new Promise(o=>{const s=r.get(b),a=r.get(un);(function i(o){r.get(b).events.pipe((0,B.h)(a=>a instanceof X||a instanceof bt||a instanceof ve),(0,y.U)(a=>a instanceof X||a instanceof bt&&(0===a.code||1===a.code)&&null),(0,B.h)(a=>null!==a),(0,mt.q)(1)).subscribe(()=>{o()})})(()=>{o(!0),n=!0}),s.afterPreactivation=()=>(o(!0),n||a.closed?(0,f.of)(void 0):a),s.initialNavigation()}))}}])}function hn(){return pt(3,[{provide:l.APP_INITIALIZER,multi:!0,useFactory:()=>{const r=(0,l.inject)(b);return()=>{r.setUpLocationChangeListener()}}},{provide:ke,useValue:2}])}function dn(){let e=[];return e=[],pt(1,e)}const fn=new l.InjectionToken("");function Ne(e){return pt(0,[{provide:fn,useExisting:on},{provide:De,useExisting:e}])}function Io(e){return pt(5,[{provide:Pt,useValue:e}])}const pn=new l.InjectionToken("ROUTER_FORROOT_GUARD"),gn=[M.Location,{provide:ce,useClass:Lt},{provide:b,useFactory:en},ht,{provide:Y,useFactory:an,deps:[b]},Le];function Ao(){return new l.NgProbeToken("Router",b)}let xo=(()=>{class e{constructor(t){}static forRoot(t,n){return{ngModule:e,providers:[gn,[],re(t),{provide:pn,useFactory:_o,deps:[[b,new l.Optional,new l.SkipSelf]]},{provide:Pt,useValue:n||{}},null!=n&&n.useHash?{provide:M.LocationStrategy,useClass:M.HashLocationStrategy}:{provide:M.LocationStrategy,useClass:M.PathLocationStrategy},{provide:Me,useFactory:()=>{const e=(0,l.inject)(b),r=(0,l.inject)(M.ViewportScroller),t=(0,l.inject)(Pt);return t.scrollOffset&&r.setOffset(t.scrollOffset),new sn(e,r,t)}},null!=n&&n.preloadingStrategy?Ne(n.preloadingStrategy).\u0275providers:[],{provide:l.NgProbeToken,multi:!0,useFactory:Ao},null!=n&&n.initialNavigation?$o(n):[],[{provide:Fe,useFactory:ln},{provide:l.APP_BOOTSTRAP_LISTENER,multi:!0,useExisting:Fe}]]}}static forChild(t){return{ngModule:e,providers:[re(t)]}}}return e.\u0275fac=function(t){return new(t||e)(l.\u0275\u0275inject(pn,8))},e.\u0275mod=l.\u0275\u0275defineNgModule({type:e}),e.\u0275inj=l.\u0275\u0275defineInjector({imports:[Vt]}),e})();function _o(e){return"guarded"}function $o(e){return["disabled"===e.initialNavigation?hn().\u0275providers:[],"enabledBlocking"===e.initialNavigation?cn().\u0275providers:[]]}const Fe=new l.InjectionToken(""),Lo=new l.Version("14.3.0")}}]); |