/** * @license Angular v7.0.3 * (c) 2010-2018 Google, Inc. https://angular.io/ * License: MIT */ !function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports,require("@angular/core"),require("rxjs"),require("rxjs/operators"),require("@angular/common"),require("@angular/platform-browser")):"function"==typeof define&&define.amd?define("@angular/router",["exports","@angular/core","rxjs","rxjs/operators","@angular/common","@angular/platform-browser"],e):e((t.ng=t.ng||{},t.ng.router={}),t.ng.core,t.rxjs,t.rxjs.operators,t.ng.common,t.ng.platformBrowser)}(this,function(t,e,r,n,o,i){"use strict";var a=function(t,e){return(a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])})(t,e)};function u(t,e){function r(){this.constructor=t}a(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}var s=function(){return(s=Object.assign||function t(e){for(var r,n=1,o=arguments.length;n=0;u--)(o=t[u])&&(a=(i<3?o(a):i>3?o(e,r,a):o(e,r))||a);return i>3&&a&&Object.defineProperty(e,r,a),a}function l(t,e){return function(r,n){e(r,n,t)}}function p(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)}function h(t){var e="function"==typeof Symbol&&t[Symbol.iterator],r=0;return e?e.call(t):{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}}}function f(t,e){var r="function"==typeof Symbol&&t[Symbol.iterator];if(!r)return t;var n,o,i=r.call(t),a=[];try{for(;(void 0===e||e-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(t){o={error:t}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a}function d(){for(var t=[],e=0;e"})],function t(){})}(),I="primary",k=function(){function t(t){this.params=t||{}}return t.prototype.has=function(t){return this.params.hasOwnProperty(t)},t.prototype.get=function(t){if(this.has(t)){var e=this.params[t];return Array.isArray(e)?e[0]:e}return null},t.prototype.getAll=function(t){if(this.has(t)){var e=this.params[t];return Array.isArray(e)?e:[e]}return[]},Object.defineProperty(t.prototype,"keys",{get:function(){return Object.keys(this.params)},enumerable:!0,configurable:!0}),t}();function L(t){return new k(t)}function M(t,e,r){var n=r.path.split("/");if(n.length>t.length)return null;if("full"===r.pathMatch&&(e.hasChildren()||n.length0?t[t.length-1]:null}function W(t,e){for(var r in t)t.hasOwnProperty(r)&&e(t[r],r)}function Q(t){return t.pipe(n.mergeAll(),n.every(function(t){return!0===t}))}function V(t){return e.ɵisObservable(t)?t:e.ɵisPromise(t)?r.from(Promise.resolve(t)):r.of(t)} /** * @license * Copyright Google Inc. All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */function Z(t,e,r){return r?function n(t,e){return F(t,e)}(t.queryParams,e.queryParams)&&function t(e,r){if(!J(e.segments,r.segments))return!1;if(e.numberOfChildren!==r.numberOfChildren)return!1;for(var n in r.children){if(!e.children[n])return!1;if(!t(e.children[n],r.children[n]))return!1}return!0}(t.root,e.root):function o(t,e){return Object.keys(e).length<=Object.keys(t).length&&Object.keys(e).every(function(r){return e[r]===t[r]})}(t.queryParams,e.queryParams)&&function t(e,r){return function e(r,n,o){if(r.segments.length>o.length)return!!J(a=r.segments.slice(0,o.length),o)&&!n.hasChildren();if(r.segments.length===o.length){if(!J(r.segments,o))return!1;for(var i in n.children){if(!r.children[i])return!1;if(!t(r.children[i],n.children[i]))return!1}return!0}var a=o.slice(0,r.segments.length),u=o.slice(r.segments.length);return!!J(r.segments,a)&&!!r.children[I]&&e(r.children[I],n,u)}(e,r,r.segments)}(t.root,e.root)}var Y=function(){function t(t,e,r){this.root=t,this.queryParams=e,this.fragment=r}return Object.defineProperty(t.prototype,"queryParamMap",{get:function(){return this._queryParamMap||(this._queryParamMap=L(this.queryParams)),this._queryParamMap},enumerable:!0,configurable:!0}),t.prototype.toString=function(){return rt.serialize(this)},t}(),$=function(){function t(t,e){var r=this;this.segments=t,this.children=e,this.parent=null,W(e,function(t,e){return t.parent=r})}return t.prototype.hasChildren=function(){return this.numberOfChildren>0},Object.defineProperty(t.prototype,"numberOfChildren",{get:function(){return Object.keys(this.children).length},enumerable:!0,configurable:!0}),t.prototype.toString=function(){return nt(this)},t}(),K=function(){function t(t,e){this.path=t,this.parameters=e}return Object.defineProperty(t.prototype,"parameterMap",{get:function(){return this._parameterMap||(this._parameterMap=L(this.parameters)),this._parameterMap},enumerable:!0,configurable:!0}),t.prototype.toString=function(){return ct(this)},t}();function J(t,e){return t.length===e.length&&t.every(function(t,r){return t.path===e[r].path})}function X(t,e){var r=[];return W(t.children,function(t,n){n===I&&(r=r.concat(e(t,n)))}),W(t.children,function(t,n){n!==I&&(r=r.concat(e(t,n)))}),r}var tt=function tt(){},et=function(){function t(){}return t.prototype.parse=function(t){var e=new dt(t);return new Y(e.parseRootSegment(),e.parseQueryParams(),e.parseFragment())},t.prototype.serialize=function(t){return"/"+function t(e,r){if(!e.hasChildren())return nt(e);if(r){var n=e.children[I]?t(e.children[I],!1):"",o=[];return W(e.children,function(e,r){r!==I&&o.push(r+":"+t(e,!1))}),o.length>0?n+"("+o.join("//")+")":n}var i=X(e,function(r,n){return n===I?[t(e.children[I],!1)]:[n+":"+t(r,!1)]});return nt(e)+"/("+i.join("//")+")"}(t.root,!0)+function e(t){var e=Object.keys(t).map(function(e){var r=t[e];return Array.isArray(r)?r.map(function(t){return it(e)+"="+it(t)}).join("&"):it(e)+"="+it(r)});return e.length?"?"+e.join("&"):""}(t.queryParams)+("string"==typeof t.fragment?"#"+function r(t){return encodeURI(t)}(t.fragment):"")},t}(),rt=new et;function nt(t){return t.segments.map(function(t){return ct(t)}).join("/")}function ot(t){return encodeURIComponent(t).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function it(t){return ot(t).replace(/%3B/gi,";")}function at(t){return ot(t).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function ut(t){return decodeURIComponent(t)}function st(t){return ut(t.replace(/\+/g,"%20"))}function ct(t){return""+at(t.path)+function e(t){return Object.keys(t).map(function(e){return";"+at(e)+"="+at(t[e])}).join("")}(t.parameters)}var lt=/^[^\/()?;=#]+/;function pt(t){var e=t.match(lt);return e?e[0]:""}var ht=/^[^=?&#]+/,ft=/^[^?&#]+/,dt=function(){function t(t){this.url=t,this.remaining=t}return t.prototype.parseRootSegment=function(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new $([],{}):new $([],this.parseChildren())},t.prototype.parseQueryParams=function(){var t={};if(this.consumeOptional("?"))do{this.parseQueryParam(t)}while(this.consumeOptional("&"));return t},t.prototype.parseFragment=function(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null},t.prototype.parseChildren=function(){if(""===this.remaining)return{};this.consumeOptional("/");var t=[];for(this.peekStartsWith("(")||t.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),t.push(this.parseSegment());var e={};this.peekStartsWith("/(")&&(this.capture("/"),e=this.parseParens(!0));var r={};return this.peekStartsWith("(")&&(r=this.parseParens(!1)),(t.length>0||Object.keys(e).length>0)&&(r[I]=new $(t,e)),r},t.prototype.parseSegment=function(){var t=pt(this.remaining);if(""===t&&this.peekStartsWith(";"))throw new Error("Empty path url segment cannot have parameters: '"+this.remaining+"'.");return this.capture(t),new K(ut(t),this.parseMatrixParams())},t.prototype.parseMatrixParams=function(){for(var t={};this.consumeOptional(";");)this.parseParam(t);return t},t.prototype.parseParam=function(t){var e=pt(this.remaining);if(e){this.capture(e);var r="";if(this.consumeOptional("=")){var n=pt(this.remaining);n&&this.capture(r=n)}t[ut(e)]=ut(r)}},t.prototype.parseQueryParam=function(t){var e=function r(t){var e=t.match(ht);return e?e[0]:""}(this.remaining);if(e){this.capture(e);var n="";if(this.consumeOptional("=")){var o=function i(t){var e=t.match(ft);return e?e[0]:""}(this.remaining);o&&this.capture(n=o)}var a=st(e),u=st(n);if(t.hasOwnProperty(a)){var s=t[a];Array.isArray(s)||(t[a]=s=[s]),s.push(u)}else t[a]=u}},t.prototype.parseParens=function(t){var e={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){var r=pt(this.remaining),n=this.remaining[r.length];if("/"!==n&&")"!==n&&";"!==n)throw new Error("Cannot parse url '"+this.url+"'");var o=void 0;r.indexOf(":")>-1?(o=r.substr(0,r.indexOf(":")),this.capture(o),this.capture(":")):t&&(o=I);var i=this.parseChildren();e[o]=1===Object.keys(i).length?i[I]:new $([],i),this.consumeOptional("//")}return e},t.prototype.peekStartsWith=function(t){return this.remaining.startsWith(t)},t.prototype.consumeOptional=function(t){return!!this.peekStartsWith(t)&&(this.remaining=this.remaining.substring(t.length),!0)},t.prototype.capture=function(t){if(!this.consumeOptional(t))throw new Error('Expected "'+t+'".')},t}(),gt=function(){function t(t){this._root=t}return Object.defineProperty(t.prototype,"root",{get:function(){return this._root.value},enumerable:!0,configurable:!0}),t.prototype.parent=function(t){var e=this.pathFromRoot(t);return e.length>1?e[e.length-2]:null},t.prototype.children=function(t){var e=vt(t,this._root);return e?e.children.map(function(t){return t.value}):[]},t.prototype.firstChild=function(t){var e=vt(t,this._root);return e&&e.children.length>0?e.children[0].value:null},t.prototype.siblings=function(t){var e=mt(t,this._root);return e.length<2?[]:e[e.length-2].children.map(function(t){return t.value}).filter(function(e){return e!==t})},t.prototype.pathFromRoot=function(t){return mt(t,this._root).map(function(t){return t.value})},t}();function vt(t,e){var r,n;if(t===e.value)return e;try{for(var o=h(e.children),i=o.next();!i.done;i=o.next()){var a=vt(t,i.value);if(a)return a}}catch(t){r={error:t}}finally{try{i&&!i.done&&(n=o.return)&&n.call(o)}finally{if(r)throw r.error}}return null}function mt(t,e){var r,n;if(t===e.value)return[e];try{for(var o=h(e.children),i=o.next();!i.done;i=o.next()){var a=mt(t,i.value);if(a.length)return a.unshift(e),a}}catch(t){r={error:t}}finally{try{i&&!i.done&&(n=o.return)&&n.call(o)}finally{if(r)throw r.error}}return[]}var yt=function(){function t(t,e){this.value=t,this.children=e}return t.prototype.toString=function(){return"TreeNode("+this.value+")"},t}();function St(t){var e={};return t&&t.children.forEach(function(t){return e[t.value.outlet]=t}),e} /** * @license * Copyright Google Inc. All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */var wt=function(t){function e(e,r){var n=t.call(this,e)||this;return n.snapshot=r,Ot(n,e),n}return u(e,t),e.prototype.toString=function(){return this.snapshot.toString()},e}(gt);function bt(t,e){var n=function o(t,e){var r=new Pt([],{},{},"",{},I,e,null,t.root,-1,{});return new Ut("",new yt(r,[]))}(t,e),i=new r.BehaviorSubject([new K("",{})]),a=new r.BehaviorSubject({}),u=new r.BehaviorSubject({}),s=new r.BehaviorSubject({}),c=new r.BehaviorSubject(""),l=new Ct(i,a,s,c,u,I,e,n.root);return l.snapshot=n.root,new wt(new yt(l,[]),n)}var Ct=function(){function t(t,e,r,n,o,i,a,u){this.url=t,this.params=e,this.queryParams=r,this.fragment=n,this.data=o,this.outlet=i,this.component=a,this._futureSnapshot=u}return Object.defineProperty(t.prototype,"routeConfig",{get:function(){return this._futureSnapshot.routeConfig},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"root",{get:function(){return this._routerState.root},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"parent",{get:function(){return this._routerState.parent(this)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"firstChild",{get:function(){return this._routerState.firstChild(this)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"children",{get:function(){return this._routerState.children(this)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"pathFromRoot",{get:function(){return this._routerState.pathFromRoot(this)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"paramMap",{get:function(){return this._paramMap||(this._paramMap=this.params.pipe(n.map(function(t){return L(t)}))),this._paramMap},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"queryParamMap",{get:function(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe(n.map(function(t){return L(t)}))),this._queryParamMap},enumerable:!0,configurable:!0}),t.prototype.toString=function(){return this.snapshot?this.snapshot.toString():"Future("+this._futureSnapshot+")"},t}();function Rt(t,e){void 0===e&&(e="emptyOnly");var r=t.pathFromRoot,n=0;if("always"!==e)for(n=r.length-1;n>=1;){var o=r[n],i=r[n-1];if(o.routeConfig&&""===o.routeConfig.path)n--;else{if(i.component)break;n--}}return function a(t){return t.reduce(function(t,e){return{params:s({},t.params,e.params),data:s({},t.data,e.data),resolve:s({},t.resolve,e._resolvedData)}},{params:{},data:{},resolve:{}})}(r.slice(n))}var Pt=function(){function t(t,e,r,n,o,i,a,u,s,c,l){this.url=t,this.params=e,this.queryParams=r,this.fragment=n,this.data=o,this.outlet=i,this.component=a,this.routeConfig=u,this._urlSegment=s,this._lastPathIndex=c,this._resolve=l}return Object.defineProperty(t.prototype,"root",{get:function(){return this._routerState.root},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"parent",{get:function(){return this._routerState.parent(this)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"firstChild",{get:function(){return this._routerState.firstChild(this)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"children",{get:function(){return this._routerState.children(this)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"pathFromRoot",{get:function(){return this._routerState.pathFromRoot(this)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"paramMap",{get:function(){return this._paramMap||(this._paramMap=L(this.params)),this._paramMap},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"queryParamMap",{get:function(){return this._queryParamMap||(this._queryParamMap=L(this.queryParams)),this._queryParamMap},enumerable:!0,configurable:!0}),t.prototype.toString=function(){return"Route(url:'"+this.url.map(function(t){return t.toString()}).join("/")+"', path:'"+(this.routeConfig?this.routeConfig.path:"")+"')"},t}(),Ut=function(t){function e(e,r){var n=t.call(this,r)||this;return n.url=e,Ot(n,r),n}return u(e,t),e.prototype.toString=function(){return _t(this._root)},e}(gt);function Ot(t,e){e.value._routerState=t,e.children.forEach(function(e){return Ot(t,e)})}function _t(t){var e=t.children.length>0?" { "+t.children.map(_t).join(", ")+" } ":"";return""+t.value+e}function xt(t){if(t.snapshot){var e=t.snapshot,r=t._futureSnapshot;t.snapshot=r,F(e.queryParams,r.queryParams)||t.queryParams.next(r.queryParams),e.fragment!==r.fragment&&t.fragment.next(r.fragment),F(e.params,r.params)||t.params.next(r.params),function n(t,e){if(t.length!==e.length)return!1;for(var r=0;r0&&Tt(r[0]))throw new Error("Root segment cannot have matrix parameters");var n=r.find(function(t){return"object"==typeof t&&null!=t&&t.outlets});if(n&&n!==G(r))throw new Error("{outlets:{}} has to be the last command")}return t.prototype.toRoot=function(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]},t}(),It=function It(t,e,r){this.segmentGroup=t,this.processChildren=e,this.index=r};function kt(t){return"object"==typeof t&&null!=t&&t.outlets?t.outlets[I]:""+t}function Lt(t,e,r){if(t||(t=new $([],{})),0===t.segments.length&&t.hasChildren())return Mt(t,e,r);var n=function o(t,e,r){for(var n=0,o=e,i={match:!1,pathIndex:0,commandIndex:0};o=r.length)return i;var a=t.segments[o],u=kt(r[n]),s=n0&&void 0===u)break;if(u&&s&&"object"==typeof s&&void 0===s.outlets){if(!zt(u,s,a))return i;n+=2}else{if(!zt(u,{},a))return i;n++}o++}return{match:!0,pathIndex:o,commandIndex:n}}(t,e,r),i=r.slice(n.commandIndex);if(n.match&&n.pathIndex0?new $([],((n={})[I]=t,n)):t;return new Y(o,e,r)},t.prototype.expandSegmentGroup=function(t,e,r,o){return 0===r.segments.length&&r.hasChildren()?this.expandChildren(t,e,r).pipe(n.map(function(t){return new $([],t)})):this.expandSegment(t,r,e,r.segments,o,!0)},t.prototype.expandChildren=function(t,e,o){var i=this;return function a(t,e){if(0===Object.keys(t).length)return r.of({});var o=[],i=[],a={};return W(t,function(t,r){var u=e(r,t).pipe(n.map(function(t){return a[r]=t}));r===I?o.push(u):i.push(u)}),r.of.apply(null,o.concat(i)).pipe(n.concatAll(),n.last(),n.map(function(){return a}))}(o.children,function(r,n){return i.expandSegmentGroup(t,e,n,r)})},t.prototype.expandSegment=function(t,e,o,i,a,u){var s=this;return r.of.apply(void 0,d(o)).pipe(n.map(function(c){return s.expandSegmentAgainstRoute(t,e,o,c,i,a,u).pipe(n.catchError(function(t){if(t instanceof Bt)return r.of(null);throw t}))}),n.concatAll(),n.first(function(t){return!!t}),n.catchError(function(t,n){if(t instanceof r.EmptyError||"EmptyError"===t.name){if(s.noLeftoversInUrl(e,i,a))return r.of(new $([],{}));throw new Bt(e)}throw t}))},t.prototype.noLeftoversInUrl=function(t,e,r){return 0===e.length&&!t.children[r]},t.prototype.expandSegmentAgainstRoute=function(t,e,r,n,o,i,a){return Jt(n)!==i?Wt(e):void 0===n.redirectTo?this.matchSegmentAgainstRoute(t,e,n,o):a&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(t,e,r,n,o,i):Wt(e)},t.prototype.expandSegmentAgainstRouteUsingRedirect=function(t,e,r,n,o,i){return"**"===n.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(t,r,n,i):this.expandRegularSegmentAgainstRouteUsingRedirect(t,e,r,n,o,i)},t.prototype.expandWildCardWithParamsAgainstRouteUsingRedirect=function(t,e,r,o){var i=this,a=this.applyRedirectCommands([],r.redirectTo,{});return r.redirectTo.startsWith("/")?Qt(a):this.lineralizeSegments(r,a).pipe(n.mergeMap(function(r){var n=new $(r,{});return i.expandSegment(t,n,e,r,o,!1)}))},t.prototype.expandRegularSegmentAgainstRouteUsingRedirect=function(t,e,r,o,i,a){var u=this,s=Yt(e,o,i),c=s.consumedSegments,l=s.lastChild,p=s.positionalParamSegments;if(!s.matched)return Wt(e);var h=this.applyRedirectCommands(c,o.redirectTo,p);return o.redirectTo.startsWith("/")?Qt(h):this.lineralizeSegments(o,h).pipe(n.mergeMap(function(n){return u.expandSegment(t,e,r,n.concat(i.slice(l)),a,!1)}))},t.prototype.matchSegmentAgainstRoute=function(t,e,o,i){var a=this;if("**"===o.path)return o.loadChildren?this.configLoader.load(t.injector,o).pipe(n.map(function(t){return o._loadedConfig=t,new $(i,{})})):r.of(new $(i,{}));var u=Yt(e,o,i),c=u.consumedSegments,l=u.lastChild;if(!u.matched)return Wt(e);var p=i.slice(l);return this.getChildConfig(t,o,i).pipe(n.mergeMap(function(t){var o=t.module,i=t.routes,u=function l(t,e,r,n){return r.length>0&&function o(t,e,r){return r.some(function(r){return Kt(t,e,r)&&Jt(r)!==I})}(t,r,n)?{segmentGroup:$t(new $(e,function i(t,e){var r,n,o={};o[I]=e;try{for(var i=h(t),a=i.next();!a.done;a=i.next()){var u=a.value;""===u.path&&Jt(u)!==I&&(o[Jt(u)]=new $([],{}))}}catch(t){r={error:t}}finally{try{a&&!a.done&&(n=i.return)&&n.call(i)}finally{if(r)throw r.error}}return o}(n,new $(r,t.children)))),slicedSegments:[]}:0===r.length&&function a(t,e,r){return r.some(function(r){return Kt(t,e,r)})}(t,r,n)?{segmentGroup:$t(new $(t.segments,function u(t,e,r,n){var o,i,a={};try{for(var u=h(r),c=u.next();!c.done;c=u.next()){var l=c.value;Kt(t,e,l)&&!n[Jt(l)]&&(a[Jt(l)]=new $([],{}))}}catch(t){o={error:t}}finally{try{c&&!c.done&&(i=u.return)&&i.call(u)}finally{if(o)throw o.error}}return s({},n,a)}(t,r,n,t.children))),slicedSegments:r}:{segmentGroup:t,slicedSegments:r}}(e,c,p,i),f=u.segmentGroup,d=u.slicedSegments;return 0===d.length&&f.hasChildren()?a.expandChildren(o,i,f).pipe(n.map(function(t){return new $(c,t)})):0===i.length&&0===d.length?r.of(new $(c,{})):a.expandSegment(o,f,i,d,I,!0).pipe(n.map(function(t){return new $(c.concat(t.segments),t.children)}))}))},t.prototype.getChildConfig=function(t,e,o){var i=this;return e.children?r.of(new N(e.children,t)):e.loadChildren?void 0!==e._loadedConfig?r.of(e._loadedConfig):function a(t,e,o){var i=e.canLoad;return i&&0!==i.length?Q(r.from(i).pipe(n.map(function(r){var n=t.get(r);return V(n.canLoad?n.canLoad(e,o):n(e,o))}))):r.of(!0)}(t.injector,e,o).pipe(n.mergeMap(function(o){return o?i.configLoader.load(t.injector,e).pipe(n.map(function(t){return e._loadedConfig=t,t})):function a(t){return new r.Observable(function(e){return e.error(function r(t){var e=Error("NavigationCancelingError: "+t);return e.ngNavigationCancelingError=!0,e}("Cannot load children because the guard of the route \"path: '"+t.path+"'\" returned false"))})}(e)})):r.of(new N([],t))},t.prototype.lineralizeSegments=function(t,e){for(var n=[],o=e.root;;){if(n=n.concat(o.segments),0===o.numberOfChildren)return r.of(n);if(o.numberOfChildren>1||!o.children[I])return Vt(t.redirectTo);o=o.children[I]}},t.prototype.applyRedirectCommands=function(t,e,r){return this.applyRedirectCreatreUrlTree(e,this.urlSerializer.parse(e),t,r)},t.prototype.applyRedirectCreatreUrlTree=function(t,e,r,n){var o=this.createSegmentGroup(t,e.root,r,n);return new Y(o,this.createQueryParams(e.queryParams,this.urlTree.queryParams),e.fragment)},t.prototype.createQueryParams=function(t,e){var r={};return W(t,function(t,n){if("string"==typeof t&&t.startsWith(":")){var o=t.substring(1);r[n]=e[o]}else r[n]=t}),r},t.prototype.createSegmentGroup=function(t,e,r,n){var o=this,i=this.createSegments(t,e.segments,r,n),a={};return W(e.children,function(e,i){a[i]=o.createSegmentGroup(t,e,r,n)}),new $(i,a)},t.prototype.createSegments=function(t,e,r,n){var o=this;return e.map(function(e){return e.path.startsWith(":")?o.findPosParam(t,e,n):o.findOrReturn(e,r)})},t.prototype.findPosParam=function(t,e,r){var n=r[e.path.substring(1)];if(!n)throw new Error("Cannot redirect to '"+t+"'. Cannot find '"+e.path+"'.");return n},t.prototype.findOrReturn=function(t,e){var r,n,o=0;try{for(var i=h(e),a=i.next();!a.done;a=i.next()){var u=a.value;if(u.path===t.path)return e.splice(o),u;o++}}catch(t){r={error:t}}finally{try{a&&!a.done&&(n=i.return)&&n.call(i)}finally{if(r)throw r.error}}return t},t}();function Yt(t,e,r){if(""===e.path)return"full"===e.pathMatch&&(t.hasChildren()||r.length>0)?{matched:!1,consumedSegments:[],lastChild:0,positionalParamSegments:{}}:{matched:!0,consumedSegments:[],lastChild:0,positionalParamSegments:{}};var n=(e.matcher||M)(r,t,e);return n?{matched:!0,consumedSegments:n.consumed,lastChild:n.consumed.length,positionalParamSegments:n.posParams}:{matched:!1,consumedSegments:[],lastChild:0,positionalParamSegments:{}}}function $t(t){if(1===t.numberOfChildren&&t.children[I]){var e=t.children[I];return new $(t.segments.concat(e.segments),e.children)}return t}function Kt(t,e,r){return(!(t.hasChildren()||e.length>0)||"full"!==r.pathMatch)&&""===r.path&&void 0!==r.redirectTo}function Jt(t){return t.outlet||I} /** * @license * Copyright Google Inc. All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ /** * @license * Copyright Google Inc. All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ var Xt=function Xt(t){this.path=t,this.route=this.path[this.path.length-1]},te=function te(t,e){this.component=t,this.route=e};function ee(t,e,r){var n=function o(t){if(!t)return null;for(var e=t.parent;e;e=e.parent){var r=e.routeConfig;if(r&&r._loadedConfig)return r._loadedConfig}return null}(e);return(n?n.module.injector:r).get(t)}function re(t,e,r){var n=St(t),o=t.value;W(n,function(t,n){re(t,o.component?e?e.children.getContext(n):null:e,r)}),r.canDeactivateChecks.push(new te(o.component&&e&&e.outlet&&e.outlet.isActivated?e.outlet.component:null,o))} /** * @license * Copyright Google Inc. All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ /** * @license * Copyright Google Inc. All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ var ne=function Bt(){},oe=function(){function t(t,e,r,n,o,i){this.rootComponentType=t,this.config=e,this.urlTree=r,this.url=n,this.paramsInheritanceStrategy=o,this.relativeLinkResolution=i}return t.prototype.recognize=function(){try{var t=ue(this.urlTree.root,[],[],this.config,this.relativeLinkResolution).segmentGroup,e=this.processSegmentGroup(this.config,t,I),n=new Pt([],Object.freeze({}),Object.freeze(s({},this.urlTree.queryParams)),this.urlTree.fragment,{},I,this.rootComponentType,null,this.urlTree.root,-1,{}),o=new yt(n,e),i=new Ut(this.url,o);return this.inheritParamsAndData(i._root),r.of(i)}catch(t){return new r.Observable(function(e){return e.error(t)})}},t.prototype.inheritParamsAndData=function(t){var e=this,r=t.value,n=Rt(r,this.paramsInheritanceStrategy);r.params=Object.freeze(n.params),r.data=Object.freeze(n.data),t.children.forEach(function(t){return e.inheritParamsAndData(t)})},t.prototype.processSegmentGroup=function(t,e,r){return 0===e.segments.length&&e.hasChildren()?this.processChildren(t,e):this.processSegment(t,e,e.segments,r)},t.prototype.processChildren=function(t,e){var r=this,n=X(e,function(e,n){return r.processSegmentGroup(t,e,n)});return function o(t){var e={};t.forEach(function(t){var r=e[t.value.outlet];if(r){var n=r.url.map(function(t){return t.toString()}).join("/"),o=t.value.url.map(function(t){return t.toString()}).join("/");throw new Error("Two segments cannot have the same outlet name: '"+n+"' and '"+o+"'.")}e[t.value.outlet]=t.value})}(n),function i(t){t.sort(function(t,e){return t.value.outlet===I?-1:e.value.outlet===I?1:t.value.outlet.localeCompare(e.value.outlet)})}(n),n},t.prototype.processSegment=function(t,e,r,n){var o,i;try{for(var a=h(t),u=a.next();!u.done;u=a.next()){var s=u.value;try{return this.processSegmentAgainstRoute(s,e,r,n)}catch(t){if(!(t instanceof ne))throw t}}}catch(t){o={error:t}}finally{try{u&&!u.done&&(i=a.return)&&i.call(a)}finally{if(o)throw o.error}}if(this.noLeftoversInUrl(e,r,n))return[];throw new ne},t.prototype.noLeftoversInUrl=function(t,e,r){return 0===e.length&&!t.children[r]},t.prototype.processSegmentAgainstRoute=function(t,e,r,n){if(t.redirectTo)throw new ne;if((t.outlet||I)!==n)throw new ne;var o,i=[],a=[];if("**"===t.path){var u=r.length>0?G(r).parameters:{};o=new Pt(r,u,Object.freeze(s({},this.urlTree.queryParams)),this.urlTree.fragment,le(t),n,t.component,t,ie(e),ae(e)+r.length,pe(t))}else{var c=function l(t,e,r){if(""===e.path){if("full"===e.pathMatch&&(t.hasChildren()||r.length>0))throw new ne;return{consumedSegments:[],lastChild:0,parameters:{}}}var n=(e.matcher||M)(r,t,e);if(!n)throw new ne;var o={};W(n.posParams,function(t,e){o[e]=t.path});var i=n.consumed.length>0?s({},o,n.consumed[n.consumed.length-1].parameters):o;return{consumedSegments:n.consumed,lastChild:n.consumed.length,parameters:i}}(e,t,r);i=c.consumedSegments,a=r.slice(c.lastChild),o=new Pt(i,c.parameters,Object.freeze(s({},this.urlTree.queryParams)),this.urlTree.fragment,le(t),n,t.component,t,ie(e),ae(e)+i.length,pe(t))}var p=function h(t){return t.children?t.children:t.loadChildren?t._loadedConfig.routes:[]}(t),f=ue(e,i,a,p,this.relativeLinkResolution),d=f.segmentGroup,g=f.slicedSegments;if(0===g.length&&d.hasChildren()){var v=this.processChildren(p,d);return[new yt(o,v)]}if(0===p.length&&0===g.length)return[new yt(o,[])];var m=this.processSegment(p,d,g,I);return[new yt(o,m)]},t}();function ie(t){for(var e=t;e._sourceSegment;)e=e._sourceSegment;return e}function ae(t){for(var e=t,r=e._segmentIndexShift?e._segmentIndexShift:0;e._sourceSegment;)r+=(e=e._sourceSegment)._segmentIndexShift?e._segmentIndexShift:0;return r-1}function ue(t,e,r,n,o){if(r.length>0&&function i(t,e,r){return r.some(function(r){return se(t,e,r)&&ce(r)!==I})}(t,r,n)){var a=new $(e,function u(t,e,r,n){var o,i,a={};a[I]=n,n._sourceSegment=t,n._segmentIndexShift=e.length;try{for(var u=h(r),s=u.next();!s.done;s=u.next()){var c=s.value;if(""===c.path&&ce(c)!==I){var l=new $([],{});l._sourceSegment=t,l._segmentIndexShift=e.length,a[ce(c)]=l}}}catch(t){o={error:t}}finally{try{s&&!s.done&&(i=u.return)&&i.call(u)}finally{if(o)throw o.error}}return a}(t,e,n,new $(r,t.children)));return a._sourceSegment=t,a._segmentIndexShift=e.length,{segmentGroup:a,slicedSegments:[]}}if(0===r.length&&function c(t,e,r){return r.some(function(r){return se(t,e,r)})}(t,r,n)){var l=new $(t.segments,function p(t,e,r,n,o,i){var a,u,c={};try{for(var l=h(n),p=l.next();!p.done;p=l.next()){var f=p.value;if(se(t,r,f)&&!o[ce(f)]){var d=new $([],{});d._sourceSegment=t,d._segmentIndexShift="legacy"===i?t.segments.length:e.length,c[ce(f)]=d}}}catch(t){a={error:t}}finally{try{p&&!p.done&&(u=l.return)&&u.call(l)}finally{if(a)throw a.error}}return s({},o,c)}(t,e,r,n,t.children,o));return l._sourceSegment=t,l._segmentIndexShift=e.length,{segmentGroup:l,slicedSegments:r}}var f=new $(t.segments,t.children);return f._sourceSegment=t,f._segmentIndexShift=e.length,{segmentGroup:f,slicedSegments:r}}function se(t,e,r){return(!(t.hasChildren()||e.length>0)||"full"!==r.pathMatch)&&""===r.path&&void 0===r.redirectTo}function ce(t){return t.outlet||I}function le(t){return t.data||{}}function pe(t){return t.resolve||{}} /** * @license * Copyright Google Inc. All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */function he(t,e,r,n){var o=ee(t,e,n);return V(o.resolve?o.resolve(e,r):o(e,r))} /** * @license * Copyright Google Inc. All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */function fe(t){return function(e){return e.pipe(n.switchMap(function(e){var o=t(e);return o?r.from(o).pipe(n.map(function(){return e})):r.from([e])}))}} /** * @license * Copyright Google Inc. All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */var de=function de(){},ge=function(){function t(){}return t.prototype.shouldDetach=function(t){return!1},t.prototype.store=function(t,e){},t.prototype.shouldAttach=function(t){return!1},t.prototype.retrieve=function(t){return null},t.prototype.shouldReuseRoute=function(t,e){return t.routeConfig===e.routeConfig},t}(),ve=new e.InjectionToken("ROUTES"),me=function(){function t(t,e,r,n){this.loader=t,this.compiler=e,this.onLoadStartListener=r,this.onLoadEndListener=n}return t.prototype.load=function(t,e){var r=this;return this.onLoadStartListener&&this.onLoadStartListener(e),this.loadModuleFactory(e.loadChildren).pipe(n.map(function(n){r.onLoadEndListener&&r.onLoadEndListener(e);var o=n.create(t);return new N(B(o.injector.get(ve)).map(H),o)}))},t.prototype.loadModuleFactory=function(t){var o=this;return"string"==typeof t?r.from(this.loader.load(t)):V(t()).pipe(n.mergeMap(function(t){return t instanceof e.NgModuleFactory?r.of(t):r.from(o.compiler.compileModuleAsync(t))}))},t}(),ye=function ye(){},Se=function(){function t(){}return t.prototype.shouldProcessUrl=function(t){return!0},t.prototype.extract=function(t){return t},t.prototype.merge=function(t,e){return t},t}(); /** * @license * Copyright Google Inc. All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ function we(t){throw t}function be(t,e,r){return e.parse("/")}function Ce(t,e){return r.of(null)}var Re=function(){function t(t,n,o,i,a,u,s,c){var l=this;this.rootComponentType=t,this.urlSerializer=n,this.rootContexts=o,this.location=i,this.config=c,this.navigationId=0,this.isNgZoneEnabled=!1,this.events=new r.Subject,this.errorHandler=we,this.malformedUriErrorHandler=be,this.navigated=!1,this.lastSuccessfulId=-1,this.hooks={beforePreactivation:Ce,afterPreactivation:Ce},this.urlHandlingStrategy=new Se,this.routeReuseStrategy=new ge,this.onSameUrlNavigation="ignore",this.paramsInheritanceStrategy="emptyOnly",this.urlUpdateStrategy="deferred",this.relativeLinkResolution="legacy",this.ngModule=a.get(e.NgModuleRef),this.console=a.get(e.ɵConsole);var p=a.get(e.NgZone);this.isNgZoneEnabled=p instanceof e.NgZone,this.resetConfig(c),this.currentUrlTree=function h(){return new Y(new $([],{}),{},null)}(),this.rawUrlTree=this.currentUrlTree,this.configLoader=new me(u,s,function(t){return l.triggerEvent(new U(t))},function(t){return l.triggerEvent(new O(t))}),this.routerState=bt(this.currentUrlTree,this.rootComponentType),this.transitions=new r.BehaviorSubject({id: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",state: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()}return t.prototype.setupNavigations=function(t){var e=this,o=this.events;return t.pipe(n.filter(function(t){return 0!==t.id}),n.map(function(t){return s({},t,{extractedUrl:e.urlHandlingStrategy.extract(t.rawUrl)})}),n.switchMap(function(t){var i,a,u,c=!1,l=!1;return r.of(t).pipe(n.switchMap(function(t){var i=!e.navigated||t.extractedUrl.toString()!==e.currentUrlTree.toString();if(("reload"===e.onSameUrlNavigation||i)&&e.urlHandlingStrategy.shouldProcessUrl(t.rawUrl))return r.of(t).pipe(n.tap(function(t){return"eager"===e.urlUpdateStrategy&&!t.extras.skipLocationChange&&e.setBrowserUrl(t.rawUrl,!!t.extras.replaceUrl,t.id)}),n.switchMap(function(t){var n=e.transitions.getValue();return o.next(new v(t.id,e.serializeUrl(t.extractedUrl),t.source,t.state)),n!==e.transitions.getValue()?r.EMPTY:[t]}),n.switchMap(function(t){return Promise.resolve(t)}),function a(t,e,r,o){return function(i){return i.pipe(n.switchMap(function(i){return function a(t,e,r,n,o){return new Zt(t,e,r,n,o).apply()}(t,e,r,i.extractedUrl,o).pipe(n.map(function(t){return s({},i,{urlAfterRedirects:t})}))}))}}(e.ngModule.injector,e.configLoader,e.urlSerializer,e.config),function u(t,e,r,o){return function(i){return i.pipe(n.mergeMap(function(i){return function a(t,e,r,n,o,i){return void 0===o&&(o="emptyOnly"),void 0===i&&(i="legacy"),new oe(t,e,r,n,o,i).recognize()}(t,e,i.urlAfterRedirects,r(i.urlAfterRedirects),o).pipe(n.map(function(t){return s({},i,{targetSnapshot:t})}))}))}} /** * @license * Copyright Google Inc. All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */(e.rootComponentType,e.config,function(t){return e.serializeUrl(t)},e.paramsInheritanceStrategy),n.tap(function(t){var r=new w(t.id,e.serializeUrl(t.extractedUrl),e.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);o.next(r)}));if(i&&e.rawUrlTree&&e.urlHandlingStrategy.shouldProcessUrl(e.rawUrlTree)){var c=t.extractedUrl,l=t.source,p=t.state,h=t.extras,f=new v(t.id,e.serializeUrl(c),l,p);o.next(f);var d=bt(c,e.rootComponentType).snapshot;return r.of(s({},t,{targetSnapshot:d,urlAfterRedirects:c,extras:s({},h,{skipLocationChange:!1,replaceUrl:!1})}))}return e.rawUrlTree=t.rawUrl,t.resolve(null),r.EMPTY}),fe(function(t){var r=t.extras;return e.hooks.beforePreactivation(t.targetSnapshot,{navigationId:t.id,appliedUrlTree:t.extractedUrl,rawUrlTree:t.rawUrl,skipLocationChange:!!r.skipLocationChange,replaceUrl:!!r.replaceUrl})}),n.tap(function(t){var r=new b(t.id,e.serializeUrl(t.extractedUrl),e.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);e.triggerEvent(r)}),n.map(function(t){return s({},t,{guards:function r(t,e,n){var o=t._root;return function t(e,r,n,o,i){void 0===i&&(i={canDeactivateChecks:[],canActivateChecks:[]});var a=St(r);return e.children.forEach(function(e){!function r(e,n,o,i,a){void 0===a&&(a={canDeactivateChecks:[],canActivateChecks:[]});var u=e.value,s=n?n.value:null,c=o?o.getContext(e.value.outlet):null;if(s&&u.routeConfig===s.routeConfig){var l=function p(t,e,r){switch(r){case"always":return!0;case"paramsOrQueryParamsChange":return!At(t,e)||!F(t.queryParams,e.queryParams);case"paramsChange":default:return!At(t,e)}}(s,u,u.routeConfig.runGuardsAndResolvers);l?a.canActivateChecks.push(new Xt(i)):(u.data=s.data,u._resolvedData=s._resolvedData),t(e,n,u.component?c?c.children:null:o,i,a),l&&a.canDeactivateChecks.push(new te(c&&c.outlet&&c.outlet.component||null,s))}else s&&re(n,c,a),a.canActivateChecks.push(new Xt(i)),t(e,null,u.component?c?c.children:null:o,i,a)}(e,a[e.value.outlet],n,o.concat([e.value]),i),delete a[e.value.outlet]}),W(a,function(t,e){return re(t,n.getContext(e),i)}),i}(o,e?e._root:null,n,[o.value])}(t.targetSnapshot,t.currentSnapshot,e.rootContexts)})}),function p(t,e){return function(o){return o.pipe(n.mergeMap(function(o){var i=o.targetSnapshot,a=o.currentSnapshot,u=o.guards,c=u.canActivateChecks,l=u.canDeactivateChecks;return 0===l.length&&0===c.length?r.of(s({},o,{guardsResult:!0})):function p(t,e,o,i){return r.from(t).pipe(n.mergeMap(function(t){return function a(t,e,o,i,u){var s=e&&e.routeConfig?e.routeConfig.canDeactivate:null;return s&&0!==s.length?r.from(s).pipe(n.mergeMap(function(r){var a=ee(r,e,u);return V(a.canDeactivate?a.canDeactivate(t,e,o,i):a(t,e,o,i)).pipe(n.first())})).pipe(n.every(function(t){return!0===t})):r.of(!0)}(t.component,t.route,o,e,i)}),n.every(function(t){return!0===t}))}(l,i,a,t).pipe(n.mergeMap(function(o){return o?function a(t,e,o,i){return r.from(e).pipe(n.concatMap(function(e){return Q(r.from([function a(t,e){return null!==t&&e&&e(new _(t)),r.of(!0)}(e.route.parent,i),function u(t,e){return null!==t&&e&&e(new A(t)),r.of(!0)}(e.route,i),function s(t,e,o){var i=e[e.length-1],a=e.slice(0,e.length-1).reverse().map(function(t){return function e(t){var e=t.routeConfig?t.routeConfig.canActivateChild:null;return e&&0!==e.length?{node:t,guards:e}:null}(t)}).filter(function(t){return null!==t});return Q(r.from(a).pipe(n.map(function(e){return Q(r.from(e.guards).pipe(n.map(function(r){var a=ee(r,e.node,o);return V(a.canActivateChild?a.canActivateChild(i,t):a(i,t)).pipe(n.first())})))})))}(t,e.path,o),function c(t,e,o){var i=e.routeConfig?e.routeConfig.canActivate:null;return i&&0!==i.length?Q(r.from(i).pipe(n.map(function(r){var i=ee(r,e,o);return V(i.canActivate?i.canActivate(e,t):i(e,t)).pipe(n.first())}))):r.of(!0)}(t,e.route,o)]))}),n.every(function(t){return!0===t}))}(i,c,t,e):r.of(!1)}),n.map(function(t){return s({},o,{guardsResult:t})}))}))}}(e.ngModule.injector,function(t){return e.triggerEvent(t)}),n.tap(function(t){var r=new C(t.id,e.serializeUrl(t.extractedUrl),e.serializeUrl(t.urlAfterRedirects),t.targetSnapshot,!!t.guardsResult);e.triggerEvent(r)}),n.filter(function(t){if(!t.guardsResult){e.resetUrlToCurrentUrlTree();var r=new y(t.id,e.serializeUrl(t.extractedUrl),"");return o.next(r),t.resolve(!1),!1}return!0}),fe(function(t){if(t.guards.canActivateChecks.length)return r.of(t).pipe(n.tap(function(t){var r=new R(t.id,e.serializeUrl(t.extractedUrl),e.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);e.triggerEvent(r)}),function o(t,e){return function(o){return o.pipe(n.mergeMap(function(o){var i=o.targetSnapshot,a=o.guards.canActivateChecks;return a.length?r.from(a).pipe(n.concatMap(function(o){return function a(t,e,o,i){return function a(t,e,o,i){var a=Object.keys(t);if(0===a.length)return r.of({});if(1===a.length){var u=a[0];return he(t[u],e,o,i).pipe(n.map(function(t){var e;return(e={})[u]=t,e}))}var s={};return r.from(a).pipe(n.mergeMap(function(r){return he(t[r],e,o,i).pipe(n.map(function(t){return s[r]=t,t}))})).pipe(n.last(),n.map(function(){return s}))}(t._resolve,t,e,i).pipe(n.map(function(e){return t._resolvedData=e,t.data=s({},t.data,Rt(t,o).resolve),null}))}(o.route,i,t,e)}),n.reduce(function(t,e){return t}),n.map(function(t){return o})):r.of(o)}))}}(e.paramsInheritanceStrategy,e.ngModule.injector),n.tap(function(t){var r=new P(t.id,e.serializeUrl(t.extractedUrl),e.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);e.triggerEvent(r)}))}),fe(function(t){var r=t.extras;return e.hooks.afterPreactivation(t.targetSnapshot,{navigationId:t.id,appliedUrlTree:t.extractedUrl,rawUrlTree:t.rawUrl,skipLocationChange:!!r.skipLocationChange,replaceUrl:!!r.replaceUrl})}),n.map(function(t){var n=function o(t,e,n){var o=function t(e,n,o){if(o&&e.shouldReuseRoute(n.value,o.value.snapshot)){(c=o.value)._futureSnapshot=n.value;var i=function a(e,r,n){return r.children.map(function(r){var o,i;try{for(var a=h(n.children),u=a.next();!u.done;u=a.next()){var s=u.value;if(e.shouldReuseRoute(s.value.snapshot,r.value))return t(e,r,s)}}catch(t){o={error:t}}finally{try{u&&!u.done&&(i=a.return)&&i.call(a)}finally{if(o)throw o.error}}return t(e,r)})}(e,n,o);return new yt(c,i)}var u=e.retrieve(n.value);if(u){var s=u.route;return function t(e,r){if(e.value.routeConfig!==r.value.routeConfig)throw new Error("Cannot reattach ActivatedRouteSnapshot created from a different route");if(e.children.length!==r.children.length)throw new Error("Cannot reattach ActivatedRouteSnapshot with a different number of children");r.value._futureSnapshot=e.value;for(var n=0;no;){if(i-=o,!(n=n.parent))throw new Error("Invalid number of '../'");o=n.segments.length}return new It(n,!1,o-i)}(r.snapshot._urlSegment,r.snapshot._lastPathIndex+n,t.numberOfDoubleDots)}(i,e,t),c=u.processChildren?Mt(u.segmentGroup,u.index,i.commands):Lt(u.segmentGroup,u.index,i.commands);return Et(u.segmentGroup,c,e,n,o)}(l,this.currentUrlTree,t,h,p)},t.prototype.navigateByUrl=function(t,r){void 0===r&&(r={skipLocationChange:!1}),e.isDevMode()&&this.isNgZoneEnabled&&!e.NgZone.isInAngularZone()&&this.console.warn("Navigation triggered outside Angular zone, did you forget to call 'ngZone.run()'?");var n=t instanceof Y?t:this.parseUrl(t),o=this.urlHandlingStrategy.merge(n,this.rawUrlTree);return this.scheduleNavigation(o,"imperative",null,r)},t.prototype.navigate=function(t,e){return void 0===e&&(e={skipLocationChange:!1}),function r(t){for(var e=0;e