/** * @license Angular v6.0.9 * (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=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])};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=Object.assign||function t(e){for(var r,n=1,o=arguments.length;n=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}}}function l(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 h(){for(var t=[],e=0;e"}]}],t}(),U="primary",E=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 T(t){return new E(t)}function I(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 G(t,e){for(var r in t)t.hasOwnProperty(r)&&e(t[r],r)}function H(t){return t.pipe(n.mergeAll(),n.every(function(t){return!0===t}))}function F(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 W(t,e,r){return r?function n(t,e){return N(t,e)}(t.queryParams,e.queryParams)&&function t(e,r){if(!$(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!!$(a=r.segments.slice(0,o.length),o)&&!n.hasChildren();if(r.segments.length===o.length){if(!$(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!!$(r.segments,a)&&!!r.children[U]&&e(r.children[U],n,u)}(e,r,r.segments)}(t.root,e.root)}var B=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=T(this.queryParams)),this._queryParamMap},enumerable:!0,configurable:!0}),t.prototype.toString=function(){return J.serialize(this)},t}(),Q=function(){function t(t,e){var r=this;this.segments=t,this.children=e,this.parent=null,G(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 X(this)},t}(),V=function(){function t(t,e){this.path=t,this.parameters=e}return Object.defineProperty(t.prototype,"parameterMap",{get:function(){return this._parameterMap||(this._parameterMap=T(this.parameters)),this._parameterMap},enumerable:!0,configurable:!0}),t.prototype.toString=function(){return it(this)},t}();function $(t,e){return t.length===e.length&&t.every(function(t,r){return t.path===e[r].path})}function Z(t,e){var r=[];return G(t.children,function(t,n){n===U&&(r=r.concat(e(t,n)))}),G(t.children,function(t,n){n!==U&&(r=r.concat(e(t,n)))}),r}var K=function K(){},Y=function(){function t(){}return t.prototype.parse=function(t){var e=new lt(t);return new B(e.parseRootSegment(),e.parseQueryParams(),e.parseFragment())},t.prototype.serialize=function(t){return"/"+function t(e,r){if(!e.hasChildren())return X(e);if(r){var n=e.children[U]?t(e.children[U],!1):"",o=[];return G(e.children,function(e,r){r!==U&&o.push(r+":"+t(e,!1))}),o.length>0?n+"("+o.join("//")+")":n}var i=Z(e,function(r,n){return n===U?[t(e.children[U],!1)]:[n+":"+t(r,!1)]});return X(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 et(e)+"="+et(t)}).join("&"):et(e)+"="+et(r)});return e.length?"?"+e.join("&"):""}(t.queryParams)+("string"==typeof t.fragment?"#"+function r(t){return encodeURI(t)}(t.fragment):"")},t}(),J=new Y;function X(t){return t.segments.map(function(t){return it(t)}).join("/")}function tt(t){return encodeURIComponent(t).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function et(t){return tt(t).replace(/%3B/gi,";")}function rt(t){return tt(t).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function nt(t){return decodeURIComponent(t)}function ot(t){return nt(t.replace(/\+/g,"%20"))}function it(t){return""+rt(t.path)+function e(t){return Object.keys(t).map(function(e){return";"+rt(e)+"="+rt(t[e])}).join("")}(t.parameters)}var at=/^[^\/()?;=#]+/;function ut(t){var e=t.match(at);return e?e[0]:""}var st=/^[^=?&#]+/,ct=/^[^?&#]+/,lt=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 Q([],{}):new Q([],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[U]=new Q(t,e)),r},t.prototype.parseSegment=function(){var t=ut(this.remaining);if(""===t&&this.peekStartsWith(";"))throw new Error("Empty path url segment cannot have parameters: '"+this.remaining+"'.");return this.capture(t),new V(nt(t),this.parseMatrixParams())},t.prototype.parseMatrixParams=function(){for(var t={};this.consumeOptional(";");)this.parseParam(t);return t},t.prototype.parseParam=function(t){var e=ut(this.remaining);if(e){this.capture(e);var r="";if(this.consumeOptional("=")){var n=ut(this.remaining);n&&this.capture(r=n)}t[nt(e)]=nt(r)}},t.prototype.parseQueryParam=function(t){var e=function r(t){var e=t.match(st);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(ct);return e?e[0]:""}(this.remaining);o&&this.capture(n=o)}var a=ot(e),u=ot(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=ut(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=U);var i=this.parseChildren();e[o]=1===Object.keys(i).length?i[U]:new Q([],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}(),ht=function ht(t){this.segmentGroup=t||null},pt=function pt(t){this.urlTree=t};function ft(t){return new r.Observable(function(e){return e.error(new ht(t))})}function dt(t){return new r.Observable(function(e){return e.error(new pt(t))})}function gt(t){return new r.Observable(function(e){return e.error(new Error("Only absolute redirects can have named outlets. redirectTo: '"+t+"'"))})}var vt=function(){function t(t,r,n,o,i){this.configLoader=r,this.urlSerializer=n,this.urlTree=o,this.config=i,this.allowRedirects=!0,this.ngModule=t.get(e.NgModuleRef)}return t.prototype.apply=function(){var t=this;return this.expandSegmentGroup(this.ngModule,this.config,this.urlTree.root,U).pipe(n.map(function(e){return t.createUrlTree(e,t.urlTree.queryParams,t.urlTree.fragment)})).pipe(n.catchError(function(e){if(e instanceof pt)return t.allowRedirects=!1,t.match(e.urlTree);if(e instanceof ht)throw t.noMatchError(e);throw e}))},t.prototype.match=function(t){var e=this;return this.expandSegmentGroup(this.ngModule,this.config,t.root,U).pipe(n.map(function(r){return e.createUrlTree(r,t.queryParams,t.fragment)})).pipe(n.catchError(function(t){if(t instanceof ht)throw e.noMatchError(t);throw t}))},t.prototype.noMatchError=function(t){return new Error("Cannot match any routes. URL Segment: '"+t.segmentGroup+"'")},t.prototype.createUrlTree=function(t,e,r){var n,o=t.segments.length>0?new Q([],((n={})[U]=t,n)):t;return new B(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 Q([],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 G(t,function(t,r){var u=e(r,t).pipe(n.map(function(t){return a[r]=t}));r===U?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,h(o)).pipe(n.map(function(c){return s.expandSegmentAgainstRoute(t,e,o,c,i,a,u).pipe(n.catchError(function(t){if(t instanceof ht)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 Q([],{}));throw new ht(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 wt(n)!==i?ft(e):void 0===n.redirectTo?this.matchSegmentAgainstRoute(t,e,n,o):a&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(t,e,r,n,o,i):ft(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("/")?dt(a):this.lineralizeSegments(r,a).pipe(n.mergeMap(function(r){var n=new Q(r,{});return i.expandSegment(t,n,e,r,o,!1)}))},t.prototype.expandRegularSegmentAgainstRouteUsingRedirect=function(t,e,r,o,i,a){var u=this,s=mt(e,o,i),c=s.consumedSegments,l=s.lastChild,h=s.positionalParamSegments;if(!s.matched)return ft(e);var p=this.applyRedirectCommands(c,o.redirectTo,h);return o.redirectTo.startsWith("/")?dt(p):this.lineralizeSegments(o,p).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 Q(i,{})})):r.of(new Q(i,{}));var u=mt(e,o,i),l=u.consumedSegments,h=u.lastChild;if(!u.matched)return ft(e);var p=i.slice(h);return this.getChildConfig(t,o).pipe(n.mergeMap(function(t){var o=t.module,i=t.routes,u=function h(t,e,r,n){return r.length>0&&function o(t,e,r){return r.some(function(r){return Ct(t,e,r)&&wt(r)!==U})}(t,r,n)?{segmentGroup:yt(new Q(e,function i(t,e){var r,n,o={};o[U]=e;try{for(var i=c(t),a=i.next();!a.done;a=i.next()){var u=a.value;""===u.path&&wt(u)!==U&&(o[wt(u)]=new Q([],{}))}}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 Q(r,t.children)))),slicedSegments:[]}:0===r.length&&function a(t,e,r){return r.some(function(r){return Ct(t,e,r)})}(t,r,n)?{segmentGroup:yt(new Q(t.segments,function u(t,e,r,n){var o,i,a={};try{for(var u=c(r),l=u.next();!l.done;l=u.next()){var h=l.value;Ct(t,e,h)&&!n[wt(h)]&&(a[wt(h)]=new Q([],{}))}}catch(t){o={error:t}}finally{try{l&&!l.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,l,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 Q(l,t)})):0===i.length&&0===d.length?r.of(new Q(l,{})):a.expandSegment(o,f,i,d,U,!0).pipe(n.map(function(t){return new Q(l.concat(t.segments),t.children)}))}))},t.prototype.getChildConfig=function(t,e){var o=this;return e.children?r.of(new j(e.children,t)):e.loadChildren?void 0!==e._loadedConfig?r.of(e._loadedConfig):function i(t,e){var o=e.canLoad;return o&&0!==o.length?H(r.from(o).pipe(n.map(function(r){var n=t.get(r);return F(n.canLoad?n.canLoad(e):n(e))}))):r.of(!0)}(t.injector,e).pipe(n.mergeMap(function(i){return i?o.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 j([],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[U])return gt(t.redirectTo);o=o.children[U]}},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 B(o,this.createQueryParams(e.queryParams,this.urlTree.queryParams),e.fragment)},t.prototype.createQueryParams=function(t,e){var r={};return G(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 G(e.children,function(e,i){a[i]=o.createSegmentGroup(t,e,r,n)}),new Q(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=c(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 mt(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||I)(r,t,e);return n?{matched:!0,consumedSegments:n.consumed,lastChild:n.consumed.length,positionalParamSegments:n.posParams}:{matched:!1,consumedSegments:[],lastChild:0,positionalParamSegments:{}}}function yt(t){if(1===t.numberOfChildren&&t.children[U]){var e=t.children[U];return new Q(t.segments.concat(e.segments),e.children)}return t}function Ct(t,e,r){return(!(t.hasChildren()||e.length>0)||"full"!==r.pathMatch)&&""===r.path&&void 0!==r.redirectTo}function wt(t){return t.outlet||U} /** * @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 St=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=bt(t,this._root);return e?e.children.map(function(t){return t.value}):[]},t.prototype.firstChild=function(t){var e=bt(t,this._root);return e&&e.children.length>0?e.children[0].value:null},t.prototype.siblings=function(t){var e=Rt(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 Rt(t,this._root).map(function(t){return t.value})},t}();function bt(t,e){if(t===e.value)return e;try{for(var r=c(e.children),n=r.next();!n.done;n=r.next()){var o=bt(t,n.value);if(o)return o}}catch(t){i={error:t}}finally{try{n&&!n.done&&(a=r.return)&&a.call(r)}finally{if(i)throw i.error}}return null;var i,a}function Rt(t,e){if(t===e.value)return[e];try{for(var r=c(e.children),n=r.next();!n.done;n=r.next()){var o=Rt(t,n.value);if(o.length)return o.unshift(e),o}}catch(t){i={error:t}}finally{try{n&&!n.done&&(a=r.return)&&a.call(r)}finally{if(i)throw i.error}}return[];var i,a}var Pt=function(){function t(t,e){this.value=t,this.children=e}return t.prototype.toString=function(){return"TreeNode("+this.value+")"},t}();function At(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 _t=function(t){function e(e,r){var n=t.call(this,e)||this;return n.snapshot=r,It(n,e),n}return u(e,t),e.prototype.toString=function(){return this.snapshot.toString()},e}(St);function Ot(t,e){var n=function o(t,e){var r=new Et([],{},{},"",{},U,e,null,t.root,-1,{});return new Tt("",new Pt(r,[]))}(t,e),i=new r.BehaviorSubject([new V("",{})]),a=new r.BehaviorSubject({}),u=new r.BehaviorSubject({}),s=new r.BehaviorSubject({}),c=new r.BehaviorSubject(""),l=new xt(i,a,s,c,u,U,e,n.root);return l.snapshot=n.root,new _t(new Pt(l,[]),n)}var xt=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 T(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 T(t)}))),this._queryParamMap},enumerable:!0,configurable:!0}),t.prototype.toString=function(){return this.snapshot?this.snapshot.toString():"Future("+this._futureSnapshot+")"},t}();function Ut(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 Et=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=T(this.params)),this._paramMap},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"queryParamMap",{get:function(){return this._queryParamMap||(this._queryParamMap=T(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}(),Tt=function(t){function e(e,r){var n=t.call(this,r)||this;return n.url=e,It(n,r),n}return u(e,t),e.prototype.toString=function(){return jt(this._root)},e}(St);function It(t,e){e.value._routerState=t,e.children.forEach(function(e){return It(t,e)})}function jt(t){var e=t.children.length>0?" { "+t.children.map(jt).join(", ")+" } ":"";return""+t.value+e}function kt(t){if(t.snapshot){var e=t.snapshot,r=t._futureSnapshot;t.snapshot=r,N(e.queryParams,r.queryParams)||t.queryParams.next(r.queryParams),e.fragment!==r.fragment&&t.fragment.next(r.fragment),N(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&&Mt(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!==z(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}(),qt=function qt(t,e,r){this.segmentGroup=t,this.processChildren=e,this.index=r};function zt(t){return"object"==typeof t&&null!=t&&t.outlets?t.outlets[U]:""+t}function Gt(t,e,r){if(t||(t=new Q([],{})),0===t.segments.length&&t.hasChildren())return Ht(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=zt(r[n]),s=n0&&void 0===u)break;if(u&&s&&"object"==typeof s&&void 0===s.outlets){if(!Qt(u,s,a))return i;n+=2}else{if(!Qt(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?z(r).parameters:{};o=new Et(r,u,Object.freeze(s({},this.urlTree.queryParams)),this.urlTree.fragment,ne(t),n,t.component,t,Jt(e),Xt(e)+r.length,oe(t))}else{var c=function l(t,e,r){if(""===e.path){if("full"===e.pathMatch&&(t.hasChildren()||r.length>0))throw new Kt;return{consumedSegments:[],lastChild:0,parameters:{}}}var n=(e.matcher||I)(r,t,e);if(!n)throw new Kt;var o={};G(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 Et(i,c.parameters,Object.freeze(s({},this.urlTree.queryParams)),this.urlTree.fragment,ne(t),n,t.component,t,Jt(e),Xt(e)+i.length,oe(t))}var h=function p(t){return t.children?t.children:t.loadChildren?t._loadedConfig.routes:[]}(t),f=te(e,i,a,h),d=f.segmentGroup,g=f.slicedSegments;if(0===g.length&&d.hasChildren()){var v=this.processChildren(h,d);return[new Pt(o,v)]}if(0===h.length&&0===g.length)return[new Pt(o,[])];var m=this.processSegment(h,d,g,U);return[new Pt(o,m)]},t}();function Jt(t){for(var e=t;e._sourceSegment;)e=e._sourceSegment;return e}function Xt(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 te(t,e,r,n){if(r.length>0&&function o(t,e,r){return r.some(function(r){return ee(t,e,r)&&re(r)!==U})}(t,r,n)){var i=new Q(e,function a(t,e,r,n){var o,i,a={};a[U]=n,n._sourceSegment=t,n._segmentIndexShift=e.length;try{for(var u=c(r),s=u.next();!s.done;s=u.next()){var l=s.value;if(""===l.path&&re(l)!==U){var h=new Q([],{});h._sourceSegment=t,h._segmentIndexShift=e.length,a[re(l)]=h}}}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 Q(r,t.children)));return i._sourceSegment=t,i._segmentIndexShift=e.length,{segmentGroup:i,slicedSegments:[]}}if(0===r.length&&function u(t,e,r){return r.some(function(r){return ee(t,e,r)})}(t,r,n)){var l=new Q(t.segments,function h(t,e,r,n){var o,i,a={};try{for(var u=c(r),l=u.next();!l.done;l=u.next()){var h=l.value;if(ee(t,e,h)&&!n[re(h)]){var p=new Q([],{});p._sourceSegment=t,p._segmentIndexShift=t.segments.length,a[re(h)]=p}}}catch(t){o={error:t}}finally{try{l&&!l.done&&(i=u.return)&&i.call(u)}finally{if(o)throw o.error}}return s({},n,a)}(t,r,n,t.children));return l._sourceSegment=t,l._segmentIndexShift=e.length,{segmentGroup:l,slicedSegments:r}}var p=new Q(t.segments,t.children);return p._sourceSegment=t,p._segmentIndexShift=e.length,{segmentGroup:p,slicedSegments:r}}function ee(t,e,r){return(!(t.hasChildren()||e.length>0)||"full"!==r.pathMatch)&&""===r.path&&void 0===r.redirectTo}function re(t){return t.outlet||U}function ne(t){return t.data||{}}function oe(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 */var ie=function ie(){},ae=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}(),ue=new e.InjectionToken("ROUTES"),se=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 j(q(o.injector.get(ue)).map(D),o)}))},t.prototype.loadModuleFactory=function(t){var o=this;return"string"==typeof t?r.from(this.loader.load(t)):F(t()).pipe(n.mergeMap(function(t){return t instanceof e.NgModuleFactory?r.of(t):r.from(o.compiler.compileModuleAsync(t))}))},t}(),ce=function ce(){},le=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 he(t){throw t}function pe(t,e,r){return e.parse("/")}function fe(t){return r.of(null)}var de=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.navigations=new r.BehaviorSubject(null),this.navigationId=0,this.events=new r.Subject,this.errorHandler=he,this.malformedUriErrorHandler=pe,this.navigated=!1,this.lastSuccessfulId=-1,this.hooks={beforePreactivation:fe,afterPreactivation:fe},this.urlHandlingStrategy=new le,this.routeReuseStrategy=new ae,this.onSameUrlNavigation="ignore",this.paramsInheritanceStrategy="emptyOnly",this.ngModule=a.get(e.NgModuleRef),this.resetConfig(c),this.currentUrlTree=function h(){return new B(new Q([],{}),{},null)}(),this.rawUrlTree=this.currentUrlTree,this.configLoader=new se(u,s,function(t){return l.triggerEvent(new b(t))},function(t){return l.triggerEvent(new R(t))}),this.routerState=Ot(this.currentUrlTree,this.rootComponentType),this.processNavigations()}return t.prototype.resetRootComponentType=function(t){this.rootComponentType=t,this.routerState.root.component=this.rootComponentType},t.prototype.initialNavigation=function(){this.setUpLocationChangeListener(),0===this.navigationId&&this.navigateByUrl(this.location.path(!0),{replaceUrl:!0})},t.prototype.setUpLocationChangeListener=function(){var t=this;this.locationSubscription||(this.locationSubscription=this.location.subscribe(function(e){var r=t.parseUrl(e.url),n="popstate"===e.type?"popstate":"hashchange",o=e.state&&e.state.navigationId?{navigationId:e.state.navigationId}:null;setTimeout(function(){t.scheduleNavigation(r,n,o,{replaceUrl:!0})},0)}))},Object.defineProperty(t.prototype,"url",{get:function(){return this.serializeUrl(this.currentUrlTree)},enumerable:!0,configurable:!0}),t.prototype.triggerEvent=function(t){this.events.next(t)},t.prototype.resetConfig=function(t){k(t),this.config=t.map(D),this.navigated=!1,this.lastSuccessfulId=-1},t.prototype.ngOnDestroy=function(){this.dispose()},t.prototype.dispose=function(){this.locationSubscription&&(this.locationSubscription.unsubscribe(),this.locationSubscription=null)},t.prototype.createUrlTree=function(t,r){void 0===r&&(r={});var n=r.relativeTo,o=r.queryParams,i=r.fragment,a=r.preserveQueryParams,u=r.queryParamsHandling,c=r.preserveFragment;e.isDevMode()&&a&&console&&console.warn&&console.warn("preserveQueryParams is deprecated, use queryParamsHandling instead.");var l=n||this.routerState.root,p=c?this.currentUrlTree.fragment:i,f=null;if(u)switch(u){case"merge":f=s({},this.currentUrlTree.queryParams,o);break;case"preserve":f=this.currentUrlTree.queryParams;break;default:f=o||null}else f=a?this.currentUrlTree.queryParams:o||null;return null!==f&&(f=this.removeEmptyProps(f)), /** * @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 d(t,e,r,n,o){if(0===r.length)return Dt(e.root,e.root,e,n,o);var i=function a(t){if("string"==typeof t[0]&&1===t.length&&"/"===t[0])return new Nt(!0,0,t);var e=0,r=!1,n=t.reduce(function(t,n,o){if("object"==typeof n&&null!=n){if(n.outlets){var i={};return G(n.outlets,function(t,e){i[e]="string"==typeof t?t.split("/"):t}),h(t,[{outlets:i}])}if(n.segmentPath)return h(t,[n.segmentPath])}return"string"!=typeof n?h(t,[n]):0===o?(n.split("/").forEach(function(n,o){0==o&&"."===n||(0==o&&""===n?r=!0:".."===n?e++:""!=n&&t.push(n))}),t):h(t,[n])},[]);return new Nt(r,e,n)}(r);if(i.toRoot())return Dt(e.root,new Q([],{}),e,n,o);var u=function s(t,e,r){if(t.isAbsolute)return new qt(e.root,!0,0);if(-1===r.snapshot._lastPathIndex)return new qt(r.snapshot._urlSegment,!0,0);var n=Mt(t.commands[0])?0:1;return function o(t,e,r){for(var n=t,o=e,i=r;i>o;){if(i-=o,!(n=n.parent))throw new Error("Invalid number of '../'");o=n.segments.length}return new qt(n,!1,o-i)}(r.snapshot._urlSegment,r.snapshot._lastPathIndex+n,t.numberOfDoubleDots)}(i,e,t),c=u.processChildren?Ht(u.segmentGroup,u.index,i.commands):Gt(u.segmentGroup,u.index,i.commands);return Dt(u.segmentGroup,c,e,n,o)}(l,this.currentUrlTree,t,f,p)},t.prototype.navigateByUrl=function(t,e){void 0===e&&(e={skipLocationChange:!1});var r=t instanceof B?t:this.parseUrl(t),n=this.urlHandlingStrategy.merge(r,this.rawUrlTree);return this.scheduleNavigation(n,"imperative",null,e)},t.prototype.navigate=function(t,e){return void 0===e&&(e={skipLocationChange:!1}),function r(t){for(var e=0;e