From 27aa4c2883de0ea4eb2969c0ca599ed35b7efc04 Mon Sep 17 00:00:00 2001 From: Damien Burel <damien.burel@maarch.org> Date: Thu, 6 Apr 2017 17:48:58 +0200 Subject: [PATCH] [FEAT] [PROFILE V2] Basic form is working --- .../js/angular/app/Views/profile.html | 259 +++++++----------- .../js/angular/app/app.module.js | 2 + .../js/angular/app/app.module.ts | 14 +- .../js/angular/app/profile.component.js | 6 + .../js/angular/app/profile.component.ts | 7 + .../js/angular/main.bundle.min.js | 48 ++-- core/Controllers/UserController.php | 28 +- core/Models/UserModelAbstract.php | 23 ++ rest/index.php | 1 + 9 files changed, 199 insertions(+), 189 deletions(-) diff --git a/apps/maarch_entreprise/js/angular/app/Views/profile.html b/apps/maarch_entreprise/js/angular/app/Views/profile.html index 7cbb0285e26..93749c4324b 100644 --- a/apps/maarch_entreprise/js/angular/app/Views/profile.html +++ b/apps/maarch_entreprise/js/angular/app/Views/profile.html @@ -16,177 +16,116 @@ h2{ .col-md-4,.col-md-3{ margin-bottom: 10px; } + +.ng-invalid:not(form) { + border-left: 5px solid #a94442; +} </style> -<div class="container-fluid"> -<nav class="navbar navbar-default"> - <div class="container-fluid"> - <div class="navbar-header"> - <a class="navbar-brand" href="#"> - <i class="fa fa-arrow-circle-left" title="Retour"></i> - </a> - </div> - <div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1"> - <ul class="nav navbar-nav navbar-right"> - <li><a href="javascript://" ><i class="fa fa-user-times" title=""></i> Gérer mes absences </a></li> - <li><a href="javascript://" ><i class="fa fa-user-times" title=""></i> Gérer mes signatures </a></li> - </ul> - </div><!-- /.navbar-collapse --> - </div><!-- /.container-fluid --> -</nav> -<div class="row row-eq-height"> - <div class="col-md-3" style="border-left:solid 1px white;border-right:solid 1px white;background-color: #CEE9F1;border-top: solid 2px #FDD16C;border-bottom: solid 2px #FDD16C;padding:10px;"> - <h2>Mes Groupes</h2> - <ul class="list-group" > - <li class="list-group-item" *ngFor="let group of user.groups"> - <i class="fa fa-users"></i> {{group.group_desc}} - <span *ngIf="group.primary_group == 'Y'" class="label label-primary">Groupe primaire</span> - <span *ngIf="group.primary_group != 'Y'" class="label label-default">Groupe secondaire</span> - </li> - </ul> - </div> - <div class="col-md-4 col-md-offset-1" style="border-left:solid 1px white;border-right:solid 1px white;background-color: #CEE9F1;border-top: solid 2px #FDD16C;border-bottom: solid 2px #FDD16C;padding:10px;"> - <h2>Mes Informations</h2> - <form class="form-horizontal"> - <div class="form-group"> - <div class="col-sm-5" style="font-weight:bold;"> - <input type="text" class="form-control" id="lastname" title="Nom" placeholder="Nom" value="{{user.lastname}}"> - </div> - <div class="col-sm-5" style="font-weight:bold;"> - <input type="text" class="form-control" id="firstname" title="Prénom" placeholder="Prénom" value="{{user.firstname}}"> - </div> - <div class="col-sm-2" style="font-style:italic;"> - <input type="text" class="form-control" id="firstname" title="Initiales" placeholder="Initiales" value="{{user.initials}}"> - </div> - </div> - <div class="form-group"> - <div class="col-sm-12"> - <input type="text" class="form-control" id="userId" title="Identifiant" placeholder="Identifiant" value="{{user.user_id}}" disabled> - </div> - </div> - <div class="form-group"> - <div class="col-sm-12"> - <div class="input-group"> - <span class="input-group-addon" id="basic-addon1"><i class="fa fa-phone" aria-hidden="true"></i></span> - <input type="text" class="form-control" id="phone" title="Téléphone" placeholder="Téléphone" value="{{user.phone}}"> +<div *ngIf="loading"> + <i class="fa fa-spinner fa-spin fa-5x" style="margin-left: 50%;margin-top: 16%;font-size: 8em"></i> +</div> +<div *ngIf="!loading" class="container-fluid"> + <nav class="navbar navbar-default"> + <div class="container-fluid"> + <div class="navbar-header"> + <a class="navbar-brand" href="#"> + <i class="fa fa-arrow-circle-left" title="Retour"></i> + </a> + </div> + <div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1"> + <ul class="nav navbar-nav navbar-right"> + <li><a href="javascript://" ><i class="fa fa-user-times" title=""></i> Gérer mes absences </a></li> + <li><a href="javascript://" ><i class="fa fa-user-times" title=""></i> Gérer mes signatures </a></li> + </ul> + </div> + </div> + </nav> + <div class="row row-eq-height"> + <div class="col-md-3" style="border-left:solid 1px white;border-right:solid 1px white;background-color: #CEE9F1;border-top: solid 2px #FDD16C;border-bottom: solid 2px #FDD16C;padding:10px;"> + <h2>Mes Groupes</h2> + <ul class="list-group" > + <li class="list-group-item" *ngFor="let group of user.groups"> + <i class="fa fa-users"></i> {{group.group_desc}} + <span *ngIf="group.primary_group == 'Y'" class="label label-primary">Groupe primaire</span> + <span *ngIf="group.primary_group != 'Y'" class="label label-default">Groupe secondaire</span> + </li> + </ul> + </div> + <div class="col-md-4 col-md-offset-1" style="border-left:solid 1px white;border-right:solid 1px white;background-color: #CEE9F1;border-top: solid 2px #FDD16C;border-bottom: solid 2px #FDD16C;padding:10px;"> + <h2>Mes Informations</h2> + <form class="form-horizontal" (ngSubmit)="onSubmit()" #profileForm="ngForm"> + <div class="form-group"> + <div class="col-sm-5" style="font-weight:bold;"> + <input type="text" class="form-control" id="lastname" name="lastname" title="Nom" placeholder="Nom" [(ngModel)]="user.lastname" required> </div> - </div> - </div> - <div class="form-group"> - <div class="col-sm-12"> - <div class="input-group"> - <span class="input-group-addon" id="basic-addon1"><i class="fa fa-envelope-o" aria-hidden="true"></i></span> - <input type="mail" class="form-control" id="mail" title="Courriel" placeholder="Courriel" value="{{user.mail}}"> + <div class="col-sm-5" style="font-weight:bold;"> + <input type="text" class="form-control" id="firstname" name="firstname" title="Prénom" placeholder="Prénom" [(ngModel)]="user.firstname" required> </div> - - </div> - </div> - <div class="form-group"> - <div class="col-sm-12"> - <div class="input-group"> - <span class="input-group-addon" id="basic-addon1"><i class="fa fa-paw" aria-hidden="true"></i></span> - <input type="text" class="form-control" id="fingerprint" title="Empreinte Numérique" placeholder="Empreinte Numérique" value="{{user.fingerprint}}"> + <div class="col-sm-2" style="font-style:italic;"> + <input type="text" class="form-control" id="initials" name="initials" title="Initiales" placeholder="Initiales" [(ngModel)]="user.initials"> </div> </div> - </div> - <div class="form-group"> - <div class="col-sm-6"> - <div class="input-group"> - <span class="input-group-addon" id="basic-addon1"><i class="fa fa-key" aria-hidden="true"></i></span> - <input type="password" class="form-control" id="password" placeholder="Nouveau mot de passe"> + <div class="form-group"> + <div class="col-sm-12"> + <input type="text" class="form-control" id="userId" title="Identifiant" placeholder="Identifiant" value="{{user.user_id}}" disabled> </div> </div> - <div class="col-sm-6"> - <div class="input-group"> - <span class="input-group-addon" id="basic-addon1"><i class="fa fa-key" aria-hidden="true"></i></span> - <input type="password" class="form-control" id="repassword" placeholder="Retaper le mot de passe"> + <div class="form-group"> + <div class="col-sm-12"> + <div class="input-group"> + <span class="input-group-addon"><i class="fa fa-phone" aria-hidden="true"></i></span> + <input type="text" class="form-control" id="phone" name="phone" title="Téléphone" placeholder="Téléphone" [(ngModel)]="user.phone"> + </div> </div> - - </div> - </div> - <div class="form-group"> - <div style="text-align:center;"> - <button type="submit" class="btn btn-default">Enregistrer les modifications</button> - </div> - </div> - </form> - </div> - <div class="col-md-3 col-md-offset-1" style="border-left:solid 1px white;border-right:solid 1px white;background-color: #CEE9F1;border-top: solid 2px #FDD16C;border-bottom: solid 2px #FDD16C;padding:10px;"> - <h2>Mes Services</h2> - <ul class="list-group" > - <li class="list-group-item" *ngFor="let entity of user.entities"> - <i class="fa fa-sitemap"></i> {{entity.entity_label}} - <span *ngIf="entity.primary_entity == 'Y'" class="label label-primary">Service primaire</span> - <span *ngIf="entity.primary_entity != 'Y'" class="label label-default">Service secondaire</span> - </li> - </ul> - </div> - <!-- <div class="col-md-4-offset-1" style="background-color: #CEE9F1;border-top: solid 2px #FDD16C;border-bottom: solid 2px #FDD16C;padding:10px;"> - <form class="form-horizontal"> - <div class="form-group"> - <label for="userId" class="col-sm-2 control-label">Identifiant</label> - <div class="col-sm-10"> - <input type="text" class="form-control" id="userId" placeholder="Identifiant"> - </div> - </div> - <div class="form-group"> - <label for="lastname" class="col-sm-2 control-label">Nom</label> - <div class="col-sm-10"> - <input type="text" class="form-control" id="lastname" placeholder="Nom" value=""> - </div> - </div> - <div class="form-group"> - <label for="firstname" class="col-sm-2 control-label">Prénom</label> - <div class="col-sm-10"> - <input type="text" class="form-control" id="firstname" placeholder="Prénom"> </div> - </div> - <div class="form-group"> - <label for="shortName" class="col-sm-2 control-label">Initiale</label> - <div class="col-sm-10"> - <input type="text" class="form-control" id="shortName" placeholder="Initiale"> - </div> - </div> - <div class="form-group"> - <label for="phone" class="col-sm-2 control-label">Téléphone</label> - <div class="col-sm-10"> - <input type="text" class="form-control" id="phone" placeholder="Téléphone"> - </div> - </div> - <div class="form-group"> - <label for="mail" class="col-sm-2 control-label">Courriel</label> - <div class="col-sm-10"> - <input type="mail" class="form-control" id="mail" placeholder="Courriel"> - </div> - </div> - <div class="form-group"> - <label for="fingerprint" class="col-sm-2 control-label">Empreinte Numérique</label> - <div class="col-sm-10"> - <input type="text" class="form-control" id="fingerprint" placeholder="Empreinte Numérique"> + <div class="form-group"> + <div class="col-sm-12"> + <div class="input-group"> + <span class="input-group-addon"><i class="fa fa-envelope-o" aria-hidden="true"></i></span> + <input type="mail" class="form-control" id="mail" name="mail" title="Courriel" placeholder="Courriel" [(ngModel)]="user.mail"> + </div> + + </div> </div> - </div> - <div class="form-group"> - <label for="password" class="col-sm-2 control-label">Mot de passe</label> - <div class="col-sm-5"> - <input type="password" class="form-control" id="password" placeholder="Nouveau mot de passe"> + <div class="form-group"> + <div class="col-sm-12"> + <div class="input-group"> + <span class="input-group-addon"><i class="fa fa-paw" aria-hidden="true"></i></span> + <input type="text" class="form-control" id="fingerprint" name="fingerprint" title="Empreinte Numérique" placeholder="Empreinte Numérique" [(ngModel)]="user.thumbprint"> + </div> + </div> </div> - <div class="col-sm-5"> - <input type="password" class="form-control" id="repassword" placeholder="Retaper le mot de passe"> + <div class="form-group"> + <div class="col-sm-6"> + <div class="input-group"> + <span class="input-group-addon"><i class="fa fa-key" aria-hidden="true"></i></span> + <input type="password" class="form-control" id="password" placeholder="Nouveau mot de passe"> + </div> + </div> + <div class="col-sm-6"> + <div class="input-group"> + <span class="input-group-addon"><i class="fa fa-key" aria-hidden="true"></i></span> + <input type="password" class="form-control" id="repassword" placeholder="Retaper le mot de passe"> + </div> + + </div> </div> - </div> - <div class="form-group"> - <div class="col-sm-offset-2 col-sm-10"> - <button type="submit" class="btn btn-default">Valider</button> + <div class="form-group"> + <div style="text-align:center;"> + <button type="submit" class="btn btn-default" [disabled]="!profileForm.form.valid">Enregistrer les modifications</button> + </div> </div> - </div> - </form> - </div> - <div class="col-md-3 col-md-offset-1" style="background-color: #CEE9F1;border-top: solid 2px #FDD16C;border-bottom: solid 2px #FDD16C;padding:10px;"> - <h2>L'utilisateur appartient aux groupes suivants</h2> - <div>L'utilisateur n'appartient à aucun groupe.</div> - </div> - <div class="col-md-3 col-md-offset-1" style="background-color: #CEE9F1;border-top: solid 2px #FDD16C;border-bottom: solid 2px #FDD16C;padding:10px;"> - <h2>L'utilisateur appartient aux entités suivantes</h2> - <div>L'utilisateur n'appartient à aucune entité.</div> + </form> + </div> + <div class="col-md-3 col-md-offset-1" style="border-left:solid 1px white;border-right:solid 1px white;background-color: #CEE9F1;border-top: solid 2px #FDD16C;border-bottom: solid 2px #FDD16C;padding:10px;"> + <h2>Mes Services</h2> + <ul class="list-group" > + <li class="list-group-item" *ngFor="let entity of user.entities"> + <i class="fa fa-sitemap"></i> {{entity.entity_label}} + <span *ngIf="entity.primary_entity == 'Y'" class="label label-primary">Service primaire</span> + <span *ngIf="entity.primary_entity != 'Y'" class="label label-default">Service secondaire</span> + </li> + </ul> + </div> </div> - <div>--> -</div> \ No newline at end of file +</div> diff --git a/apps/maarch_entreprise/js/angular/app/app.module.js b/apps/maarch_entreprise/js/angular/app/app.module.js index bf78be6ea4d..c745a175053 100644 --- a/apps/maarch_entreprise/js/angular/app/app.module.js +++ b/apps/maarch_entreprise/js/angular/app/app.module.js @@ -10,6 +10,7 @@ var core_1 = require("@angular/core"); var platform_browser_1 = require("@angular/platform-browser"); var router_1 = require("@angular/router"); var http_1 = require("@angular/http"); +var forms_1 = require("@angular/forms"); var app_component_1 = require("./app.component"); var profile_component_1 = require("./profile.component"); var signature_book_component_1 = require("./signature-book.component"); @@ -22,6 +23,7 @@ AppModule = __decorate([ core_1.NgModule({ imports: [ platform_browser_1.BrowserModule, + forms_1.FormsModule, router_1.RouterModule.forRoot([ { path: 'profile', component: profile_component_1.ProfileComponent }, { path: ':basketId/signatureBook/:resId', component: signature_book_component_1.SignatureBookComponent }, diff --git a/apps/maarch_entreprise/js/angular/app/app.module.ts b/apps/maarch_entreprise/js/angular/app/app.module.ts index 535bf56ff41..68933ace8d5 100644 --- a/apps/maarch_entreprise/js/angular/app/app.module.ts +++ b/apps/maarch_entreprise/js/angular/app/app.module.ts @@ -1,15 +1,17 @@ -import { NgModule } from '@angular/core'; -import { BrowserModule } from '@angular/platform-browser'; -import { RouterModule } from '@angular/router'; -import { HttpModule } from '@angular/http'; +import { NgModule } from '@angular/core'; +import { BrowserModule } from '@angular/platform-browser'; +import { RouterModule } from '@angular/router'; +import { HttpModule } from '@angular/http'; +import { FormsModule } from '@angular/forms'; -import { AppComponent } from './app.component'; -import { ProfileComponent } from './profile.component'; +import { AppComponent } from './app.component'; +import { ProfileComponent } from './profile.component'; import { SignatureBookComponent, SafeUrlPipe } from './signature-book.component'; @NgModule({ imports: [ BrowserModule, + FormsModule, RouterModule.forRoot([ { path: 'profile', component: ProfileComponent }, { path: ':basketId/signatureBook/:resId', component: SignatureBookComponent }, diff --git a/apps/maarch_entreprise/js/angular/app/profile.component.js b/apps/maarch_entreprise/js/angular/app/profile.component.js index 217dbf5bd34..509e18578d1 100644 --- a/apps/maarch_entreprise/js/angular/app/profile.component.js +++ b/apps/maarch_entreprise/js/angular/app/profile.component.js @@ -39,6 +39,12 @@ var ProfileComponent = (function () { }); }); }; + ProfileComponent.prototype.onSubmit = function () { + this.http.put(this.coreUrl + 'rest/user/' + this.user.user_id, this.user) + .map(function (res) { return res.json(); }) + .subscribe(function (data) { + }); + }; return ProfileComponent; }()); ProfileComponent = __decorate([ diff --git a/apps/maarch_entreprise/js/angular/app/profile.component.ts b/apps/maarch_entreprise/js/angular/app/profile.component.ts index d1f8be0570c..76c17f93740 100644 --- a/apps/maarch_entreprise/js/angular/app/profile.component.ts +++ b/apps/maarch_entreprise/js/angular/app/profile.component.ts @@ -43,4 +43,11 @@ export class ProfileComponent implements OnInit { }); } + onSubmit() { + this.http.put(this.coreUrl + 'rest/user/' + this.user.user_id, this.user) + .map(res => res.json()) + .subscribe((data) => { + }); + } + } diff --git a/apps/maarch_entreprise/js/angular/main.bundle.min.js b/apps/maarch_entreprise/js/angular/main.bundle.min.js index a376051cbc4..473369ed29c 100644 --- a/apps/maarch_entreprise/js/angular/main.bundle.min.js +++ b/apps/maarch_entreprise/js/angular/main.bundle.min.js @@ -1,25 +1,29 @@ -!function(t){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=t();else if("function"==typeof define&&define.amd)define([],t);else{var e;e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this,e.main=t()}}(function(){var t;return function e(t,n,r){function i(s,a){if(!n[s]){if(!t[s]){var u="function"==typeof require&&require;if(!a&&u)return u(s,!0);if(o)return o(s,!0);var c=new Error("Cannot find module '"+s+"'");throw c.code="MODULE_NOT_FOUND",c}var l=n[s]={exports:{}};t[s][0].call(l.exports,function(e){var n=t[s][1][e];return i(n?n:e)},l,l.exports,e,t,n,r)}return n[s].exports}for(var o="function"==typeof require&&require,s=0;s<r.length;s++)i(r[s]);return i}({1:[function(t,e,n){"use strict";var r=this&&this.__decorate||function(t,e,n,r){var i,o=arguments.length,s=3>o?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,r);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(3>o?i(s):o>3?i(e,n,s):i(e,n))||s);return o>3&&s&&Object.defineProperty(e,n,s),s};Object.defineProperty(n,"__esModule",{value:!0});var i=t("@angular/core"),o=function(){function t(){}return t}();o=r([i.Component({selector:"my-app",template:"<router-outlet></router-outlet>"})],o),n.AppComponent=o},{"@angular/core":8}],2:[function(t,e,n){"use strict";var r=this&&this.__decorate||function(t,e,n,r){var i,o=arguments.length,s=3>o?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,r);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(3>o?i(s):o>3?i(e,n,s):i(e,n))||s);return o>3&&s&&Object.defineProperty(e,n,s),s};Object.defineProperty(n,"__esModule",{value:!0});var i=t("@angular/core"),o=t("@angular/platform-browser"),s=t("@angular/router"),a=t("@angular/http"),u=t("./app.component"),c=t("./profile.component"),l=t("./signature-book.component"),p=function(){function t(){}return t}();p=r([i.NgModule({imports:[o.BrowserModule,s.RouterModule.forRoot([{path:"profile",component:c.ProfileComponent},{path:":basketId/signatureBook/:resId",component:l.SignatureBookComponent},{path:"**",redirectTo:"",pathMatch:"full"}],{useHash:!0}),a.HttpModule],declarations:[u.AppComponent,c.ProfileComponent,l.SignatureBookComponent,l.SafeUrlPipe],bootstrap:[u.AppComponent]})],p),n.AppModule=p},{"./app.component":1,"./profile.component":3,"./signature-book.component":4,"@angular/core":8,"@angular/http":9,"@angular/platform-browser":11,"@angular/router":12}],3:[function(t,e,n){"use strict";var r=this&&this.__decorate||function(t,e,n,r){var i,o=arguments.length,s=3>o?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,r);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(3>o?i(s):o>3?i(e,n,s):i(e,n))||s);return o>3&&s&&Object.defineProperty(e,n,s),s},i=this&&this.__metadata||function(t,e){return"object"==typeof Reflect&&"function"==typeof Reflect.metadata?Reflect.metadata(t,e):void 0};Object.defineProperty(n,"__esModule",{value:!0});var o=t("@angular/core"),s=t("@angular/http");t("rxjs/add/operator/map");var a=function(){function t(t){this.http=t,this.user={},this.loading=!1}return t.prototype.prepareProfile=function(){$j("#inner_content").remove(),$j("#menunav").hide(),$j("#container").width("99%")},t.prototype.ngOnInit=function(){var t=this;this.prepareProfile(),this.loading=!0,this.http.get("index.php?display=true&page=initializeJsGlobalConfig").map(function(t){return t.json()}).subscribe(function(e){t.coreUrl=e.coreurl,t.http.get(t.coreUrl+"rest/user/profile").map(function(t){return t.json()}).subscribe(function(e){t.user=e,t.loading=!1})})},t}();a=r([o.Component({templateUrl:"js/angular/app/Views/profile.html"}),i("design:paramtypes",[s.Http])],a),n.ProfileComponent=a},{"@angular/core":8,"@angular/http":9,"rxjs/add/operator/map":23}],4:[function(t,e,n){"use strict";var r=this&&this.__decorate||function(t,e,n,r){var i,o=arguments.length,s=3>o?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,r);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(3>o?i(s):o>3?i(e,n,s):i(e,n))||s);return o>3&&s&&Object.defineProperty(e,n,s),s},i=this&&this.__metadata||function(t,e){return"object"==typeof Reflect&&"function"==typeof Reflect.metadata?Reflect.metadata(t,e):void 0};Object.defineProperty(n,"__esModule",{value:!0});var o=t("@angular/core"),s=t("@angular/http"),a=t("@angular/platform-browser"),u=t("@angular/router");t("rxjs/add/operator/map");var c=function(){function t(t){this.sanitizer=t}return t.prototype.transform=function(t){return this.sanitizer.bypassSecurityTrustResourceUrl(t)},t}();c=r([o.Pipe({name:"safeUrl"}),i("design:paramtypes",[a.DomSanitizer])],c),n.SafeUrlPipe=c;var l=function(){function t(t,e,n,r){var i=this;this.http=t,this.route=e,this.router=n,this.zone=r,this.signatureBook={currentAction:{},consigne:"",documents:[],attachments:[],resList:[]},this.rightSelectedThumbnail=0,this.leftSelectedThumbnail=0,this.rightViewerLink="",this.leftViewerLink="",this.headerTab=1,this.showTopRightPanel=!1,this.showTopLeftPanel=!1,this.showResLeftPanel=!0,this.showLeftPanel=!0,this.showRightPanel=!0,this.showAttachmentEditionPanel=!1,this.loading=!1,this.loadingSign=!1,this.leftContentWidth="44%",this.rightContentWidth="44%",this.notesViewerLink="",this.visaViewerLink="",this.histViewerLink="",this.linksViewerLink="",window.angularSignatureBookComponent={componentAfterAttach:function(t){return i.processAfterAttach(t)},componentAfterAction:function(){return i.processAfterAction()},componentAfterNotes:function(){return i.processAfterNotes()}}}return t.prototype.prepareSignatureBook=function(){$j("#inner_content").remove(),$j("#header").remove(),$j("#viewBasketsTitle").remove(),$j("#homePageWelcomeTitle").remove(),$j("#footer").remove(),$j("#container").width("99%")},t.prototype.ngOnInit=function(){var t=this;this.prepareSignatureBook(),this.loading=!0,this.route.params.subscribe(function(e){t.resId=+e.resId,t.basketId=e.basketId,lockDocument(t.resId),setInterval(function(){lockDocument(t.resId)},5e4),t.http.get("index.php?display=true&page=initializeJsGlobalConfig").map(function(t){return t.json()}).subscribe(function(e){t.coreUrl=e.coreurl,t.http.get(t.coreUrl+"rest/"+t.basketId+"/signatureBook/"+t.resId).map(function(t){return t.json()}).subscribe(function(e){return e.error?(location.hash="",void(location.search="")):(t.signatureBook=e,t.headerTab=1,t.leftSelectedThumbnail=0,t.rightSelectedThumbnail=0,t.leftViewerLink="",t.rightViewerLink="",t.showLeftPanel=!0,t.showRightPanel=!0,t.showResLeftPanel=!0,t.showTopLeftPanel=!1,t.showTopRightPanel=!1,t.showAttachmentEditionPanel=!1,t.notesViewerLink="index.php?display=true&module=notes&page=notes&identifier="+t.resId+"&origin=document&coll_id=letterbox_coll&load&size=full",t.visaViewerLink="index.php?display=true&page=show_visa_tab&module=visa&resId="+t.resId+"&collId=letterbox_coll&visaStep=true",t.histViewerLink="index.php?display=true&page=show_history_tab&resId="+t.resId+"&collId=letterbox_coll",t.linksViewerLink="index.php?display=true&page=show_links_tab&id="+t.resId,t.leftContentWidth="44%",t.rightContentWidth="44%",t.signatureBook.documents[0]&&(t.leftViewerLink=t.signatureBook.documents[0].viewerLink,"outgoing"==t.signatureBook.documents[0].category_id&&(t.headerTab=3)),t.signatureBook.attachments[0]&&(t.rightViewerLink=t.signatureBook.attachments[0].viewerLink),t.displayPanel("RESLEFT"),t.loading=!1,void setTimeout(function(){$j("#resListContent").niceScroll({touchbehavior:!1,cursorcolor:"#666",cursoropacitymax:.6,cursorwidth:4}),$j("#rightPanelContent").niceScroll({touchbehavior:!1,cursorcolor:"#666",cursoropacitymax:.6,cursorwidth:4}),$j("#resListContent").scrollTop(0),$j("#resListContent").scrollTop($j(".resListContentFrameSelected").offset().top-42),$j("#obsVersion").tooltipster({interactive:!0})},0))})})})},t.prototype.ngOnDestroy=function(){delete window.angularSignatureBookComponent},t.prototype.processAfterAttach=function(t){var e=this;this.zone.run(function(){return e.refreshAttachments(t)})},t.prototype.processAfterNotes=function(){var t=this;this.zone.run(function(){return t.refreshNotes()})},t.prototype.processAfterAction=function(){for(var t=this,e=-1,n=this.signatureBook.resList.length,r=0;n>r;r++)this.signatureBook.resList[r].res_id==this.resId&&(this.signatureBook.resList[r+1]?e=this.signatureBook.resList[r+1].res_id:r>0&&(e=this.signatureBook.resList[r-1].res_id));e>=0?($j("#send").removeAttr("disabled"),$j("#send").css("opacity","1"),this.zone.run(function(){return t.changeLocation(e,"action")})):this.zone.run(function(){return t.backToBasket()})},t.prototype.changeSignatureBookLeftContent=function(t){this.headerTab=t,this.showTopLeftPanel=!1},t.prototype.changeRightViewer=function(t){0>t?this.showAttachmentEditionPanel=!0:(this.rightViewerLink=this.signatureBook.attachments[t].viewerLink,this.showAttachmentEditionPanel=!1),this.rightSelectedThumbnail=t},t.prototype.changeLeftViewer=function(t){this.leftViewerLink=this.signatureBook.documents[t].viewerLink,this.leftSelectedThumbnail=t},t.prototype.displayPanel=function(t){"TOPRIGHT"==t?this.showTopRightPanel=!this.showTopRightPanel:"TOPLEFT"==t?this.showTopLeftPanel=!this.showTopLeftPanel:"LEFT"==t?(this.showLeftPanel=!this.showLeftPanel,this.showResLeftPanel=!1,this.showLeftPanel?(this.rightContentWidth="48%",this.leftContentWidth="48%",$j("#hideLeftContent").css("background","#CEE9F1")):(this.rightContentWidth="96%",$j("#hideLeftContent").css("background","none"))):"RESLEFT"==t?(this.showResLeftPanel=!this.showResLeftPanel,this.showResLeftPanel?(this.rightContentWidth="44%",this.leftContentWidth="44%"):(this.rightContentWidth="48%",this.leftContentWidth="48%")):"MIDDLE"==t&&(this.showRightPanel=!this.showRightPanel,this.showResLeftPanel=!1,this.showRightPanel?(this.rightContentWidth="48%",this.leftContentWidth="48%",$j("#contentLeft").css("border-right","solid 1px")):(this.leftContentWidth="96%",$j("#contentLeft").css("border-right","none")))},t.prototype.refreshAttachments=function(t){var e=this;"rightContent"==t?this.http.get(this.coreUrl+"rest/signatureBook/"+this.resId+"/incomingMailAttachments").map(function(t){return t.json()}).subscribe(function(t){e.signatureBook.documents=t}):this.http.get(this.coreUrl+"rest/signatureBook/"+this.resId+"/attachments").map(function(t){return t.json()}).subscribe(function(n){var r=0;if("add"==t){var i=!1;n.forEach(function(t,n){i||e.signatureBook.attachments[n]&&t.res_id==e.signatureBook.attachments[n].res_id||(r=n,i=!0)})}else if("edit"==t){var o=e.signatureBook.attachments[e.rightSelectedThumbnail].res_id;n.forEach(function(t,e){t.res_id==o&&(r=e)})}e.signatureBook.attachments=n,"add"==t||"edit"==t?e.changeRightViewer(r):"del"==t&&e.changeRightViewer(0)})},t.prototype.addAttachmentIframe=function(){showAttachmentsForm("index.php?display=true&module=attachments&page=attachments_content&docId="+this.resId)},t.prototype.editAttachmentIframe=function(t){if(t.canModify&&"SIGN"!=t.status){var e;0==t.res_id?e=t.res_id_version:0==t.res_id_version&&(e=t.res_id),modifyAttachmentsForm("index.php?display=true&module=attachments&page=attachments_content&id="+e+"&relation="+t.relation+"&docId="+this.resId,"98%","auto")}},t.prototype.delAttachment=function(t){var e=this;if(t.canDelete){var n=confirm("Voulez-vous vraiment supprimer la pièce jointe ?");if(n){var r;0==t.res_id?r=t.res_id_version:0==t.res_id_version&&(r=t.res_id),this.http.get("index.php?display=true&module=attachments&page=del_attachment&id="+r+"&relation="+t.relation+"&rest=true").subscribe(function(){e.refreshAttachments("del")})}}},t.prototype.refreshNotes=function(){var t=this;this.http.get(this.coreUrl+"rest/res/"+this.resId+"/notes/count").map(function(t){return t.json()}).subscribe(function(e){t.signatureBook.nbNotes=e})},t.prototype.prepareSignFile=function(t){!this.loadingSign&&this.signatureBook.canSign&&(0==t.res_id?"outgoing_mail"==t.attachment_type&&"outgoing"==this.signatureBook.documents[0].category_id?this.signatureBookSignFile(t.res_id_version,4):this.signatureBookSignFile(t.res_id_version,1):0==t.res_id_version&&("outgoing_mail"==t.attachment_type&&"outgoing"==this.signatureBook.documents[0].category_id?this.signatureBookSignFile(t.res_id,3):this.signatureBookSignFile(t.res_id,0)))},t.prototype.signatureBookSignFile=function(t,e){var n=this;this.loadingSign=!0;var r="";0==e?r="index.php?display=true&module=visa&page=sign_file&collId=letterbox_coll&resIdMaster="+this.resId+"&id="+t:1==e?r="index.php?display=true&module=visa&page=sign_file&collId=letterbox_coll&isVersion&resIdMaster="+this.resId+"&id="+t:2==e?r="index.php?display=true&module=visa&page=sign_file&collId=letterbox_coll&isOutgoing&resIdMaster="+this.resId+"&id="+t:3==e&&(r="index.php?display=true&module=visa&page=sign_file&collId=letterbox_coll&isOutgoing&isVersion&resIdMaster="+this.resId+"&id="+t),this.http.get(r).map(function(t){return t.json()}).subscribe(function(t){if(0==t.status){n.rightViewerLink="index.php?display=true&module=visa&page=view_pdf_attachement&res_id_master="+n.resId+"&id="+t.new_id,n.signatureBook.attachments[n.rightSelectedThumbnail].viewerLink=n.rightViewerLink,n.signatureBook.attachments[n.rightSelectedThumbnail].status="SIGN",n.signatureBook.attachments[n.rightSelectedThumbnail].idToDl=t.new_id;var e=!0;n.signatureBook.attachments.forEach(function(t){t.sign&&"SIGN"!=t.status&&(e=!1)}),n.signatureBook.resList[n.signatureBook.resListIndex].allSigned=e}else alert(t.error);n.loadingSign=!1})},t.prototype.unsignFile=function(t){var e,n,r=this;0==t.res_id?(n=t.res_id_version,e="res_version_attachments"):0==t.res_id_version&&(n=t.res_id,e="res_attachments"),this.http.put(this.coreUrl+"rest/"+e+"/"+n+"/unsign",{},{}).map(function(t){return t.json()}).subscribe(function(t){"OK"==t.status?(r.rightViewerLink="index.php?display=true&module=visa&page=view_pdf_attachement&res_id_master="+r.resId+"&id="+n,r.signatureBook.attachments[r.rightSelectedThumbnail].viewerLink=r.rightViewerLink,r.signatureBook.attachments[r.rightSelectedThumbnail].status="A_TRA",r.signatureBook.attachments[r.rightSelectedThumbnail].idToDl=n,r.signatureBook.resList[r.signatureBook.resListIndex].allSigned=!1):alert(t.error)})},t.prototype.backToBasket=function(){unlockDocument(this.resId),location.hash="",location.reload()},t.prototype.backToDetails=function(){unlockDocument(this.resId),location.hash="",location.search="?page=details&dir=indexing_searching&id="+this.resId},t.prototype.changeLocation=function(t,e){var n=this;this.http.get(this.coreUrl+"rest/res/"+t+"/lock").map(function(t){return t.json()}).subscribe(function(r){if(r.lock)"view"==e?alert("Courrier verouillé par "+r.lockBy):"action"==e&&n.backToBasket();else{var i="/"+n.basketId+"/signatureBook/"+t;n.router.navigate([i])}})},t.prototype.validForm=function(){""!=$j("#signatureBookActions option:selected")[0].value?(unlockDocument(this.resId),valid_action_form("empty","index.php?display=true&page=manage_action&module=core",this.signatureBook.currentAction.id,this.resId,"res_letterbox","null","letterbox_coll","page",!1,[$j("#signatureBookActions option:selected")[0].value])):alert("Aucune action choisie")},t}();l=r([o.Component({templateUrl:"js/angular/app/Views/signatureBook.html"}),i("design:paramtypes",[s.Http,u.ActivatedRoute,u.Router,o.NgZone])],l),n.SignatureBookComponent=l},{"@angular/core":8,"@angular/http":9,"@angular/platform-browser":11,"@angular/router":12,"rxjs/add/operator/map":23}],5:[function(t,e,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var r=t("@angular/platform-browser-dynamic"),i=t("@angular/core"),o=t("./app/app.module");i.enableProdMode(),r.platformBrowserDynamic().bootstrapModule(o.AppModule)},{"./app/app.module":2,"@angular/core":8,"@angular/platform-browser-dynamic":10}],6:[function(e,n,r){!function(i,o){"object"==typeof r&&"undefined"!=typeof n?o(r,e("@angular/core")):"function"==typeof t&&t.amd?t(["exports","@angular/core"],o):o((i.ng=i.ng||{},i.ng.common=i.ng.common||{}),i.ng.core)}(this,function(t,e){"use strict";function n(t,e){return t&&e.startsWith(t)?e.substring(t.length):e}function r(t){return t.replace(/\/index.html$/,"")}function i(t,e,n){var r="="+t;if(e.indexOf(r)>-1)return r;if(r=n.getPluralCategory(t),e.indexOf(r)>-1)return r;if(e.indexOf("other")>-1)return"other";throw new Error('No plural message found for value "'+t+'"')}function o(t,e){"string"==typeof e&&(e=parseInt(e,10));var n=e,r=n.toString().replace(/^[^.]*\.?/,""),i=Math.floor(Math.abs(n)),o=r.length,s=parseInt(r,10),a=parseInt(n.toString().replace(/^[^.]*\.?|0+$/g,""),10)||0,u=t.split("-")[0].toLowerCase();switch(u){case"af":case"asa":case"az":case"bem":case"bez":case"bg":case"brx":case"ce":case"cgg":case"chr":case"ckb":case"ee":case"el":case"eo":case"es":case"eu":case"fo":case"fur":case"gsw":case"ha":case"haw":case"hu":case"jgo":case"jmc":case"ka":case"kk":case"kkj":case"kl":case"ks":case"ksb":case"ky":case"lb":case"lg":case"mas":case"mgo":case"ml":case"mn":case"nb":case"nd":case"ne":case"nn":case"nnh":case"nyn":case"om":case"or":case"os":case"ps":case"rm":case"rof":case"rwk":case"saq":case"seh":case"sn":case"so":case"sq":case"ta":case"te":case"teo":case"tk":case"tr":case"ug":case"uz":case"vo":case"vun":case"wae":case"xog":return 1===n?H.One:H.Other;case"agq":case"bas":case"cu":case"dav":case"dje":case"dua":case"dyo":case"ebu":case"ewo":case"guz":case"kam":case"khq":case"ki":case"kln":case"kok":case"ksf":case"lrc":case"lu":case"luo":case"luy":case"mer":case"mfe":case"mgh":case"mua":case"mzn":case"nmg":case"nus":case"qu":case"rn":case"rw":case"sbp":case"twq":case"vai":case"yav":case"yue":case"zgh":case"ak":case"ln":case"mg":case"pa":case"ti":return n===Math.floor(n)&&n>=0&&1>=n?H.One:H.Other;case"am":case"as":case"bn":case"fa":case"gu":case"hi":case"kn":case"mr":case"zu":return 0===i||1===n?H.One:H.Other;case"ar":return 0===n?H.Zero:1===n?H.One:2===n?H.Two:n%100===Math.floor(n%100)&&n%100>=3&&10>=n%100?H.Few:n%100===Math.floor(n%100)&&n%100>=11&&99>=n%100?H.Many:H.Other;case"ast":case"ca":case"de":case"en":case"et":case"fi":case"fy":case"gl":case"it":case"nl":case"sv":case"sw":case"ur":case"yi":return 1===i&&0===o?H.One:H.Other;case"be":return n%10===1&&n%100!==11?H.One:n%10===Math.floor(n%10)&&n%10>=2&&4>=n%10&&!(n%100>=12&&14>=n%100)?H.Few:n%10===0||n%10===Math.floor(n%10)&&n%10>=5&&9>=n%10||n%100===Math.floor(n%100)&&n%100>=11&&14>=n%100?H.Many:H.Other;case"br":return n%10===1&&n%100!==11&&n%100!==71&&n%100!==91?H.One:n%10===2&&n%100!==12&&n%100!==72&&n%100!==92?H.Two:n%10===Math.floor(n%10)&&(n%10>=3&&4>=n%10||n%10===9)&&!(n%100>=10&&19>=n%100||n%100>=70&&79>=n%100||n%100>=90&&99>=n%100)?H.Few:0!==n&&n%1e6===0?H.Many:H.Other;case"bs":case"hr":case"sr":return 0===o&&i%10===1&&i%100!==11||s%10===1&&s%100!==11?H.One:0===o&&i%10===Math.floor(i%10)&&i%10>=2&&4>=i%10&&!(i%100>=12&&14>=i%100)||s%10===Math.floor(s%10)&&s%10>=2&&4>=s%10&&!(s%100>=12&&14>=s%100)?H.Few:H.Other;case"cs":case"sk":return 1===i&&0===o?H.One:i===Math.floor(i)&&i>=2&&4>=i&&0===o?H.Few:0!==o?H.Many:H.Other;case"cy":return 0===n?H.Zero:1===n?H.One:2===n?H.Two:3===n?H.Few:6===n?H.Many:H.Other;case"da":return 1===n||0!==a&&(0===i||1===i)?H.One:H.Other;case"dsb":case"hsb":return 0===o&&i%100===1||s%100===1?H.One:0===o&&i%100===2||s%100===2?H.Two:0===o&&i%100===Math.floor(i%100)&&i%100>=3&&4>=i%100||s%100===Math.floor(s%100)&&s%100>=3&&4>=s%100?H.Few:H.Other;case"ff":case"fr":case"hy":case"kab":return 0===i||1===i?H.One:H.Other;case"fil":return 0===o&&(1===i||2===i||3===i)||0===o&&i%10!==4&&i%10!==6&&i%10!==9||0!==o&&s%10!==4&&s%10!==6&&s%10!==9?H.One:H.Other;case"ga":return 1===n?H.One:2===n?H.Two:n===Math.floor(n)&&n>=3&&6>=n?H.Few:n===Math.floor(n)&&n>=7&&10>=n?H.Many:H.Other;case"gd":return 1===n||11===n?H.One:2===n||12===n?H.Two:n===Math.floor(n)&&(n>=3&&10>=n||n>=13&&19>=n)?H.Few:H.Other;case"gv":return 0===o&&i%10===1?H.One:0===o&&i%10===2?H.Two:0!==o||i%100!==0&&i%100!==20&&i%100!==40&&i%100!==60&&i%100!==80?0!==o?H.Many:H.Other:H.Few;case"he":return 1===i&&0===o?H.One:2===i&&0===o?H.Two:0!==o||n>=0&&10>=n||n%10!==0?H.Other:H.Many;case"is":return 0===a&&i%10===1&&i%100!==11||0!==a?H.One:H.Other;case"ksh":return 0===n?H.Zero:1===n?H.One:H.Other;case"kw":case"naq":case"se":case"smn":return 1===n?H.One:2===n?H.Two:H.Other;case"lag":return 0===n?H.Zero:0!==i&&1!==i||0===n?H.Other:H.One;case"lt":return n%10!==1||n%100>=11&&19>=n%100?n%10===Math.floor(n%10)&&n%10>=2&&9>=n%10&&!(n%100>=11&&19>=n%100)?H.Few:0!==s?H.Many:H.Other:H.One;case"lv":case"prg":return n%10===0||n%100===Math.floor(n%100)&&n%100>=11&&19>=n%100||2===o&&s%100===Math.floor(s%100)&&s%100>=11&&19>=s%100?H.Zero:n%10===1&&n%100!==11||2===o&&s%10===1&&s%100!==11||2!==o&&s%10===1?H.One:H.Other;case"mk":return 0===o&&i%10===1||s%10===1?H.One:H.Other;case"mt":return 1===n?H.One:0===n||n%100===Math.floor(n%100)&&n%100>=2&&10>=n%100?H.Few:n%100===Math.floor(n%100)&&n%100>=11&&19>=n%100?H.Many:H.Other;case"pl":return 1===i&&0===o?H.One:0===o&&i%10===Math.floor(i%10)&&i%10>=2&&4>=i%10&&!(i%100>=12&&14>=i%100)?H.Few:0===o&&1!==i&&i%10===Math.floor(i%10)&&i%10>=0&&1>=i%10||0===o&&i%10===Math.floor(i%10)&&i%10>=5&&9>=i%10||0===o&&i%100===Math.floor(i%100)&&i%100>=12&&14>=i%100?H.Many:H.Other;case"pt":return n===Math.floor(n)&&n>=0&&2>=n&&2!==n?H.One:H.Other;case"ro":return 1===i&&0===o?H.One:0!==o||0===n||1!==n&&n%100===Math.floor(n%100)&&n%100>=1&&19>=n%100?H.Few:H.Other;case"ru":case"uk":return 0===o&&i%10===1&&i%100!==11?H.One:0===o&&i%10===Math.floor(i%10)&&i%10>=2&&4>=i%10&&!(i%100>=12&&14>=i%100)?H.Few:0===o&&i%10===0||0===o&&i%10===Math.floor(i%10)&&i%10>=5&&9>=i%10||0===o&&i%100===Math.floor(i%100)&&i%100>=11&&14>=i%100?H.Many:H.Other;case"shi":return 0===i||1===n?H.One:n===Math.floor(n)&&n>=2&&10>=n?H.Few:H.Other;case"si":return 0===n||1===n||0===i&&1===s?H.One:H.Other;case"sl":return 0===o&&i%100===1?H.One:0===o&&i%100===2?H.Two:0===o&&i%100===Math.floor(i%100)&&i%100>=3&&4>=i%100||0!==o?H.Few:H.Other;case"tzm":return n===Math.floor(n)&&n>=0&&1>=n||n===Math.floor(n)&&n>=11&&99>=n?H.One:H.Other;default:return H.Other}}function s(t){return t.name||typeof t}function a(t,n){return Error("InvalidPipeArgument: '"+n+"' for pipe '"+e.ɵstringify(t)+"'")}function u(t){return t?t[0].toUpperCase()+t.substr(1).toLowerCase():t}function c(t){return function(e,n){var r=t(e,n);return 1==r.length?"0"+r:r}}function l(t){return function(e,n){return t(e,n).split(" ")[1]}}function p(t){return function(e,n){return t(e,n).split(" ")[0]}}function h(t,e,n){return new Intl.DateTimeFormat(e,n).format(t).replace(/[\u200e\u200f]/g,"")}function f(t){var e={hour:"2-digit",hour12:!1,timeZoneName:t};return function(t,n){var r=h(t,n,e);return r?r.substring(3):""}}function d(t,e){return t.hour12=e,t}function v(t,e){var n={};return n[t]=2===e?"2-digit":"numeric",n}function m(t,e){var n={};return n[t]=4>e?e>1?"short":"narrow":"long",n}function y(t){return Object.assign.apply(Object,[{}].concat(t))}function g(t){return function(e,n){return h(e,n,t)}}function _(t,e,n){var r=yt[t];if(r)return r(e,n);var i=t,o=_t.get(i);if(!o){o=[];var s=void 0;for(mt.exec(t);t;)s=mt.exec(t),s?(o=o.concat(s.slice(1)),t=o.pop()):(o.push(t),t=null);_t.set(i,o)}return o.reduce(function(t,r){var i=gt[r];return t+(i?i(e,n):b(r))},"")}function b(t){return"''"===t?"'":t.replace(/(^'|'$)/g,"").replace(/''/g,"'")}function w(t,e,n,r,i,o,s){if(void 0===o&&(o=null),void 0===s&&(s=!1),null==n)return null;if(n="string"==typeof n&&C(n)?+n:n,"number"!=typeof n)throw a(t,n);var u,c,l;if(r!==dt.Currency&&(u=1,c=0,l=3),i){var p=i.match(wt);if(null===p)throw new Error(i+" is not a valid digit info for number pipes");null!=p[1]&&(u=E(p[1])),null!=p[3]&&(c=E(p[3])),null!=p[5]&&(l=E(p[5]))}return vt.format(n,e,r,{minimumIntegerDigits:u,minimumFractionDigits:c,maximumFractionDigits:l,currency:o,currencyAsSymbol:s})}function E(t){var e=parseInt(t);if(isNaN(e))throw new Error("Invalid integer literal when parsing "+t);return e}function C(t){return!isNaN(t-parseFloat(t))}function S(t){return null==t||""===t}function x(t){return t instanceof Date&&!isNaN(t.valueOf())}function T(t){var e=new Date(0),n=0,r=0,i=t[8]?e.setUTCFullYear:e.setFullYear,o=t[8]?e.setUTCHours:e.setHours;t[9]&&(n=P(t[9]+t[10]),r=P(t[9]+t[11])),i.call(e,P(t[1]),P(t[2])-1,P(t[3]));var s=P(t[4]||"0")-n,a=P(t[5]||"0")-r,u=P(t[6]||"0"),c=Math.round(1e3*parseFloat("0."+(t[7]||0)));return o.call(e,s,a,u,c),e}function P(t){return parseInt(t,10)}function A(t){return t===Nt}function O(t){return t===Dt}function M(t){return t===Lt}function R(t){return t===jt}var k=void 0||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},I=function(){function t(){}return t.prototype.getBaseHrefFromDOM=function(){},t.prototype.onPopState=function(){},t.prototype.onHashChange=function(){},Object.defineProperty(t.prototype,"pathname",{get:function(){return null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"search",{get:function(){return null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"hash",{get:function(){return null},enumerable:!0,configurable:!0}),t.prototype.replaceState=function(){},t.prototype.pushState=function(){},t.prototype.forward=function(){},t.prototype.back=function(){},t}(),N=new e.InjectionToken("Location Initialized"),D=function(){function t(){}return t.prototype.path=function(){},t.prototype.prepareExternalUrl=function(){},t.prototype.pushState=function(){},t.prototype.replaceState=function(){},t.prototype.forward=function(){},t.prototype.back=function(){},t.prototype.onPopState=function(){},t.prototype.getBaseHref=function(){},t}(),L=new e.InjectionToken("appBaseHref"),j=function(){function t(n){var i=this;this._subject=new e.EventEmitter,this._platformStrategy=n;var o=this._platformStrategy.getBaseHref();this._baseHref=t.stripTrailingSlash(r(o)),this._platformStrategy.onPopState(function(t){i._subject.emit({url:i.path(!0),pop:!0,type:t.type})})}return t.prototype.path=function(t){return void 0===t&&(t=!1),this.normalize(this._platformStrategy.path(t))},t.prototype.isCurrentPathEqualTo=function(e,n){return void 0===n&&(n=""),this.path()==this.normalize(e+t.normalizeQueryParams(n))},t.prototype.normalize=function(e){return t.stripTrailingSlash(n(this._baseHref,r(e)))},t.prototype.prepareExternalUrl=function(t){return t&&"/"!==t[0]&&(t="/"+t),this._platformStrategy.prepareExternalUrl(t)},t.prototype.go=function(t,e){void 0===e&&(e=""),this._platformStrategy.pushState(null,"",t,e)},t.prototype.replaceState=function(t,e){void 0===e&&(e=""),this._platformStrategy.replaceState(null,"",t,e)},t.prototype.forward=function(){this._platformStrategy.forward()},t.prototype.back=function(){this._platformStrategy.back()},t.prototype.subscribe=function(t,e,n){return void 0===e&&(e=null),void 0===n&&(n=null),this._subject.subscribe({next:t,error:e,complete:n})},t.normalizeQueryParams=function(t){return t&&"?"!==t[0]?"?"+t:t},t.joinWithSlash=function(t,e){if(0==t.length)return e;if(0==e.length)return t;var n=0;return t.endsWith("/")&&n++,e.startsWith("/")&&n++,2==n?t+e.substring(1):1==n?t+e:t+"/"+e},t.stripTrailingSlash=function(t){return t.replace(/\/$/,"")},t}();j.decorators=[{type:e.Injectable}],j.ctorParameters=function(){return[{type:D}]};var F=function(t){function e(e,n){var r=t.call(this)||this;return r._platformLocation=e,r._baseHref="",null!=n&&(r._baseHref=n),r}return k(e,t),e.prototype.onPopState=function(t){this._platformLocation.onPopState(t),this._platformLocation.onHashChange(t)},e.prototype.getBaseHref=function(){return this._baseHref},e.prototype.path=function(t){void 0===t&&(t=!1);var e=this._platformLocation.hash;return null==e&&(e="#"),e.length>0?e.substring(1):e},e.prototype.prepareExternalUrl=function(t){var e=j.joinWithSlash(this._baseHref,t);return e.length>0?"#"+e:e},e.prototype.pushState=function(t,e,n,r){var i=this.prepareExternalUrl(n+j.normalizeQueryParams(r));0==i.length&&(i=this._platformLocation.pathname),this._platformLocation.pushState(t,e,i)},e.prototype.replaceState=function(t,e,n,r){var i=this.prepareExternalUrl(n+j.normalizeQueryParams(r));0==i.length&&(i=this._platformLocation.pathname),this._platformLocation.replaceState(t,e,i)},e.prototype.forward=function(){this._platformLocation.forward()},e.prototype.back=function(){this._platformLocation.back()},e}(D);F.decorators=[{type:e.Injectable}],F.ctorParameters=function(){return[{type:I},{type:void 0,decorators:[{type:e.Optional},{type:e.Inject,args:[L]}]}]};var V=function(t){function e(e,n){var r=t.call(this)||this;if(r._platformLocation=e,null==n&&(n=r._platformLocation.getBaseHrefFromDOM()),null==n)throw new Error("No base href set. Please provide a value for the APP_BASE_HREF token or add a base element to the document.");return r._baseHref=n,r}return k(e,t),e.prototype.onPopState=function(t){this._platformLocation.onPopState(t),this._platformLocation.onHashChange(t)},e.prototype.getBaseHref=function(){return this._baseHref},e.prototype.prepareExternalUrl=function(t){return j.joinWithSlash(this._baseHref,t)},e.prototype.path=function(t){void 0===t&&(t=!1);var e=this._platformLocation.pathname+j.normalizeQueryParams(this._platformLocation.search),n=this._platformLocation.hash;return n&&t?""+e+n:e},e.prototype.pushState=function(t,e,n,r){var i=this.prepareExternalUrl(n+j.normalizeQueryParams(r));this._platformLocation.pushState(t,e,i)},e.prototype.replaceState=function(t,e,n,r){var i=this.prepareExternalUrl(n+j.normalizeQueryParams(r));this._platformLocation.replaceState(t,e,i)},e.prototype.forward=function(){this._platformLocation.forward()},e.prototype.back=function(){this._platformLocation.back()},e}(D);V.decorators=[{type:e.Injectable}],V.ctorParameters=function(){return[{type:I},{type:void 0,decorators:[{type:e.Optional},{type:e.Inject,args:[L]}]}]};var U=function(){function t(){}return t.prototype.getPluralCategory=function(){},t}(),B=function(t){function e(e){var n=t.call(this)||this;return n.locale=e,n}return k(e,t),e.prototype.getPluralCategory=function(t){var e=o(this.locale,t);switch(e){case H.Zero:return"zero";case H.One:return"one";case H.Two:return"two";case H.Few:return"few";case H.Many:return"many";default:return"other"}},e}(U);B.decorators=[{type:e.Injectable}],B.ctorParameters=function(){return[{type:void 0,decorators:[{type:e.Inject,args:[e.LOCALE_ID]}]}]};var H={};H.Zero=0,H.One=1,H.Two=2,H.Few=3,H.Many=4,H.Other=5,H[H.Zero]="Zero",H[H.One]="One",H[H.Two]="Two",H[H.Few]="Few",H[H.Many]="Many",H[H.Other]="Other";var q=function(){function t(t,e,n,r){this._iterableDiffers=t,this._keyValueDiffers=e,this._ngEl=n,this._renderer=r,this._initialClasses=[]}return Object.defineProperty(t.prototype,"klass",{set:function(t){this._applyInitialClasses(!0),this._initialClasses="string"==typeof t?t.split(/\s+/):[],this._applyInitialClasses(!1),this._applyClasses(this._rawClass,!1)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"ngClass",{set:function(t){this._cleanupClasses(this._rawClass),this._iterableDiffer=null,this._keyValueDiffer=null,this._rawClass="string"==typeof t?t.split(/\s+/):t,this._rawClass&&(e.ɵisListLikeIterable(this._rawClass)?this._iterableDiffer=this._iterableDiffers.find(this._rawClass).create():this._keyValueDiffer=this._keyValueDiffers.find(this._rawClass).create())},enumerable:!0,configurable:!0}),t.prototype.ngDoCheck=function(){if(this._iterableDiffer){var t=this._iterableDiffer.diff(this._rawClass);t&&this._applyIterableChanges(t)}else if(this._keyValueDiffer){var e=this._keyValueDiffer.diff(this._rawClass);e&&this._applyKeyValueChanges(e)}},t.prototype._cleanupClasses=function(t){this._applyClasses(t,!0),this._applyInitialClasses(!1)},t.prototype._applyKeyValueChanges=function(t){var e=this; +!function(t){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=t();else if("function"==typeof define&&define.amd)define([],t);else{var e;e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this,e.main=t()}}(function(){var t;return function e(t,n,r){function o(s,a){if(!n[s]){if(!t[s]){var u="function"==typeof require&&require;if(!a&&u)return u(s,!0);if(i)return i(s,!0);var c=new Error("Cannot find module '"+s+"'");throw c.code="MODULE_NOT_FOUND",c}var l=n[s]={exports:{}};t[s][0].call(l.exports,function(e){var n=t[s][1][e];return o(n?n:e)},l,l.exports,e,t,n,r)}return n[s].exports}for(var i="function"==typeof require&&require,s=0;s<r.length;s++)o(r[s]);return o}({1:[function(t,e,n){"use strict";var r=this&&this.__decorate||function(t,e,n,r){var o,i=arguments.length,s=3>i?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,r);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(s=(3>i?o(s):i>3?o(e,n,s):o(e,n))||s);return i>3&&s&&Object.defineProperty(e,n,s),s};Object.defineProperty(n,"__esModule",{value:!0});var o=t("@angular/core"),i=function(){function t(){}return t}();i=r([o.Component({selector:"my-app",template:"<router-outlet></router-outlet>"})],i),n.AppComponent=i},{"@angular/core":8}],2:[function(t,e,n){"use strict";var r=this&&this.__decorate||function(t,e,n,r){var o,i=arguments.length,s=3>i?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,r);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(s=(3>i?o(s):i>3?o(e,n,s):o(e,n))||s);return i>3&&s&&Object.defineProperty(e,n,s),s};Object.defineProperty(n,"__esModule",{value:!0});var o=t("@angular/core"),i=t("@angular/platform-browser"),s=t("@angular/router"),a=t("@angular/http"),u=t("@angular/forms"),c=t("./app.component"),l=t("./profile.component"),p=t("./signature-book.component"),h=function(){function t(){}return t}();h=r([o.NgModule({imports:[i.BrowserModule,u.FormsModule,s.RouterModule.forRoot([{path:"profile",component:l.ProfileComponent},{path:":basketId/signatureBook/:resId",component:p.SignatureBookComponent},{path:"**",redirectTo:"",pathMatch:"full"}],{useHash:!0}),a.HttpModule],declarations:[c.AppComponent,l.ProfileComponent,p.SignatureBookComponent,p.SafeUrlPipe],bootstrap:[c.AppComponent]})],h),n.AppModule=h},{"./app.component":1,"./profile.component":3,"./signature-book.component":4,"@angular/core":8,"@angular/forms":9,"@angular/http":10,"@angular/platform-browser":12,"@angular/router":13}],3:[function(t,e,n){"use strict";var r=this&&this.__decorate||function(t,e,n,r){var o,i=arguments.length,s=3>i?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,r);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(s=(3>i?o(s):i>3?o(e,n,s):o(e,n))||s);return i>3&&s&&Object.defineProperty(e,n,s),s},o=this&&this.__metadata||function(t,e){return"object"==typeof Reflect&&"function"==typeof Reflect.metadata?Reflect.metadata(t,e):void 0};Object.defineProperty(n,"__esModule",{value:!0});var i=t("@angular/core"),s=t("@angular/http");t("rxjs/add/operator/map");var a=function(){function t(t){this.http=t,this.user={},this.loading=!1}return t.prototype.prepareProfile=function(){$j("#inner_content").remove(),$j("#menunav").hide(),$j("#container").width("99%")},t.prototype.ngOnInit=function(){var t=this;this.prepareProfile(),this.loading=!0,this.http.get("index.php?display=true&page=initializeJsGlobalConfig").map(function(t){return t.json()}).subscribe(function(e){t.coreUrl=e.coreurl,t.http.get(t.coreUrl+"rest/user/profile").map(function(t){return t.json()}).subscribe(function(e){t.user=e,t.loading=!1})})},t.prototype.onSubmit=function(){this.http.put(this.coreUrl+"rest/user/"+this.user.user_id,this.user).map(function(t){return t.json()}).subscribe(function(){})},t}();a=r([i.Component({templateUrl:"js/angular/app/Views/profile.html"}),o("design:paramtypes",[s.Http])],a),n.ProfileComponent=a},{"@angular/core":8,"@angular/http":10,"rxjs/add/operator/map":24}],4:[function(t,e,n){"use strict";var r=this&&this.__decorate||function(t,e,n,r){var o,i=arguments.length,s=3>i?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,r);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(s=(3>i?o(s):i>3?o(e,n,s):o(e,n))||s);return i>3&&s&&Object.defineProperty(e,n,s),s},o=this&&this.__metadata||function(t,e){return"object"==typeof Reflect&&"function"==typeof Reflect.metadata?Reflect.metadata(t,e):void 0};Object.defineProperty(n,"__esModule",{value:!0});var i=t("@angular/core"),s=t("@angular/http"),a=t("@angular/platform-browser"),u=t("@angular/router");t("rxjs/add/operator/map");var c=function(){function t(t){this.sanitizer=t}return t.prototype.transform=function(t){return this.sanitizer.bypassSecurityTrustResourceUrl(t)},t}();c=r([i.Pipe({name:"safeUrl"}),o("design:paramtypes",[a.DomSanitizer])],c),n.SafeUrlPipe=c;var l=function(){function t(t,e,n,r){var o=this;this.http=t,this.route=e,this.router=n,this.zone=r,this.signatureBook={currentAction:{},consigne:"",documents:[],attachments:[],resList:[]},this.rightSelectedThumbnail=0,this.leftSelectedThumbnail=0,this.rightViewerLink="",this.leftViewerLink="",this.headerTab=1,this.showTopRightPanel=!1,this.showTopLeftPanel=!1,this.showResLeftPanel=!0,this.showLeftPanel=!0,this.showRightPanel=!0,this.showAttachmentEditionPanel=!1,this.loading=!1,this.loadingSign=!1,this.leftContentWidth="44%",this.rightContentWidth="44%",this.notesViewerLink="",this.visaViewerLink="",this.histViewerLink="",this.linksViewerLink="",window.angularSignatureBookComponent={componentAfterAttach:function(t){return o.processAfterAttach(t)},componentAfterAction:function(){return o.processAfterAction()},componentAfterNotes:function(){return o.processAfterNotes()}}}return t.prototype.prepareSignatureBook=function(){$j("#inner_content").remove(),$j("#header").remove(),$j("#viewBasketsTitle").remove(),$j("#homePageWelcomeTitle").remove(),$j("#footer").remove(),$j("#container").width("99%")},t.prototype.ngOnInit=function(){var t=this;this.prepareSignatureBook(),this.loading=!0,this.route.params.subscribe(function(e){t.resId=+e.resId,t.basketId=e.basketId,lockDocument(t.resId),setInterval(function(){lockDocument(t.resId)},5e4),t.http.get("index.php?display=true&page=initializeJsGlobalConfig").map(function(t){return t.json()}).subscribe(function(e){t.coreUrl=e.coreurl,t.http.get(t.coreUrl+"rest/"+t.basketId+"/signatureBook/"+t.resId).map(function(t){return t.json()}).subscribe(function(e){return e.error?(location.hash="",void(location.search="")):(t.signatureBook=e,t.headerTab=1,t.leftSelectedThumbnail=0,t.rightSelectedThumbnail=0,t.leftViewerLink="",t.rightViewerLink="",t.showLeftPanel=!0,t.showRightPanel=!0,t.showResLeftPanel=!0,t.showTopLeftPanel=!1,t.showTopRightPanel=!1,t.showAttachmentEditionPanel=!1,t.notesViewerLink="index.php?display=true&module=notes&page=notes&identifier="+t.resId+"&origin=document&coll_id=letterbox_coll&load&size=full",t.visaViewerLink="index.php?display=true&page=show_visa_tab&module=visa&resId="+t.resId+"&collId=letterbox_coll&visaStep=true",t.histViewerLink="index.php?display=true&page=show_history_tab&resId="+t.resId+"&collId=letterbox_coll",t.linksViewerLink="index.php?display=true&page=show_links_tab&id="+t.resId,t.leftContentWidth="44%",t.rightContentWidth="44%",t.signatureBook.documents[0]&&(t.leftViewerLink=t.signatureBook.documents[0].viewerLink,"outgoing"==t.signatureBook.documents[0].category_id&&(t.headerTab=3)),t.signatureBook.attachments[0]&&(t.rightViewerLink=t.signatureBook.attachments[0].viewerLink),t.displayPanel("RESLEFT"),t.loading=!1,void setTimeout(function(){$j("#resListContent").niceScroll({touchbehavior:!1,cursorcolor:"#666",cursoropacitymax:.6,cursorwidth:4}),$j("#rightPanelContent").niceScroll({touchbehavior:!1,cursorcolor:"#666",cursoropacitymax:.6,cursorwidth:4}),$j("#resListContent").scrollTop(0),$j("#resListContent").scrollTop($j(".resListContentFrameSelected").offset().top-42),$j("#obsVersion").tooltipster({interactive:!0})},0))})})})},t.prototype.ngOnDestroy=function(){delete window.angularSignatureBookComponent},t.prototype.processAfterAttach=function(t){var e=this;this.zone.run(function(){return e.refreshAttachments(t)})},t.prototype.processAfterNotes=function(){var t=this;this.zone.run(function(){return t.refreshNotes()})},t.prototype.processAfterAction=function(){for(var t=this,e=-1,n=this.signatureBook.resList.length,r=0;n>r;r++)this.signatureBook.resList[r].res_id==this.resId&&(this.signatureBook.resList[r+1]?e=this.signatureBook.resList[r+1].res_id:r>0&&(e=this.signatureBook.resList[r-1].res_id));e>=0?($j("#send").removeAttr("disabled"),$j("#send").css("opacity","1"),this.zone.run(function(){return t.changeLocation(e,"action")})):this.zone.run(function(){return t.backToBasket()})},t.prototype.changeSignatureBookLeftContent=function(t){this.headerTab=t,this.showTopLeftPanel=!1},t.prototype.changeRightViewer=function(t){0>t?this.showAttachmentEditionPanel=!0:(this.rightViewerLink=this.signatureBook.attachments[t].viewerLink,this.showAttachmentEditionPanel=!1),this.rightSelectedThumbnail=t},t.prototype.changeLeftViewer=function(t){this.leftViewerLink=this.signatureBook.documents[t].viewerLink,this.leftSelectedThumbnail=t},t.prototype.displayPanel=function(t){"TOPRIGHT"==t?this.showTopRightPanel=!this.showTopRightPanel:"TOPLEFT"==t?this.showTopLeftPanel=!this.showTopLeftPanel:"LEFT"==t?(this.showLeftPanel=!this.showLeftPanel,this.showResLeftPanel=!1,this.showLeftPanel?(this.rightContentWidth="48%",this.leftContentWidth="48%",$j("#hideLeftContent").css("background","#CEE9F1")):(this.rightContentWidth="96%",$j("#hideLeftContent").css("background","none"))):"RESLEFT"==t?(this.showResLeftPanel=!this.showResLeftPanel,this.showResLeftPanel?(this.rightContentWidth="44%",this.leftContentWidth="44%"):(this.rightContentWidth="48%",this.leftContentWidth="48%")):"MIDDLE"==t&&(this.showRightPanel=!this.showRightPanel,this.showResLeftPanel=!1,this.showRightPanel?(this.rightContentWidth="48%",this.leftContentWidth="48%",$j("#contentLeft").css("border-right","solid 1px")):(this.leftContentWidth="96%",$j("#contentLeft").css("border-right","none")))},t.prototype.refreshAttachments=function(t){var e=this;"rightContent"==t?this.http.get(this.coreUrl+"rest/signatureBook/"+this.resId+"/incomingMailAttachments").map(function(t){return t.json()}).subscribe(function(t){e.signatureBook.documents=t}):this.http.get(this.coreUrl+"rest/signatureBook/"+this.resId+"/attachments").map(function(t){return t.json()}).subscribe(function(n){var r=0;if("add"==t){var o=!1;n.forEach(function(t,n){o||e.signatureBook.attachments[n]&&t.res_id==e.signatureBook.attachments[n].res_id||(r=n,o=!0)})}else if("edit"==t){var i=e.signatureBook.attachments[e.rightSelectedThumbnail].res_id;n.forEach(function(t,e){t.res_id==i&&(r=e)})}e.signatureBook.attachments=n,"add"==t||"edit"==t?e.changeRightViewer(r):"del"==t&&e.changeRightViewer(0)})},t.prototype.addAttachmentIframe=function(){showAttachmentsForm("index.php?display=true&module=attachments&page=attachments_content&docId="+this.resId)},t.prototype.editAttachmentIframe=function(t){if(t.canModify&&"SIGN"!=t.status){var e;0==t.res_id?e=t.res_id_version:0==t.res_id_version&&(e=t.res_id),modifyAttachmentsForm("index.php?display=true&module=attachments&page=attachments_content&id="+e+"&relation="+t.relation+"&docId="+this.resId,"98%","auto")}},t.prototype.delAttachment=function(t){var e=this;if(t.canDelete){var n=confirm("Voulez-vous vraiment supprimer la pièce jointe ?");if(n){var r;0==t.res_id?r=t.res_id_version:0==t.res_id_version&&(r=t.res_id),this.http.get("index.php?display=true&module=attachments&page=del_attachment&id="+r+"&relation="+t.relation+"&rest=true").subscribe(function(){e.refreshAttachments("del")})}}},t.prototype.refreshNotes=function(){var t=this;this.http.get(this.coreUrl+"rest/res/"+this.resId+"/notes/count").map(function(t){return t.json()}).subscribe(function(e){t.signatureBook.nbNotes=e})},t.prototype.prepareSignFile=function(t){!this.loadingSign&&this.signatureBook.canSign&&(0==t.res_id?"outgoing_mail"==t.attachment_type&&"outgoing"==this.signatureBook.documents[0].category_id?this.signatureBookSignFile(t.res_id_version,4):this.signatureBookSignFile(t.res_id_version,1):0==t.res_id_version&&("outgoing_mail"==t.attachment_type&&"outgoing"==this.signatureBook.documents[0].category_id?this.signatureBookSignFile(t.res_id,3):this.signatureBookSignFile(t.res_id,0)))},t.prototype.signatureBookSignFile=function(t,e){var n=this;this.loadingSign=!0;var r="";0==e?r="index.php?display=true&module=visa&page=sign_file&collId=letterbox_coll&resIdMaster="+this.resId+"&id="+t:1==e?r="index.php?display=true&module=visa&page=sign_file&collId=letterbox_coll&isVersion&resIdMaster="+this.resId+"&id="+t:2==e?r="index.php?display=true&module=visa&page=sign_file&collId=letterbox_coll&isOutgoing&resIdMaster="+this.resId+"&id="+t:3==e&&(r="index.php?display=true&module=visa&page=sign_file&collId=letterbox_coll&isOutgoing&isVersion&resIdMaster="+this.resId+"&id="+t),this.http.get(r).map(function(t){return t.json()}).subscribe(function(t){if(0==t.status){n.rightViewerLink="index.php?display=true&module=visa&page=view_pdf_attachement&res_id_master="+n.resId+"&id="+t.new_id,n.signatureBook.attachments[n.rightSelectedThumbnail].viewerLink=n.rightViewerLink,n.signatureBook.attachments[n.rightSelectedThumbnail].status="SIGN",n.signatureBook.attachments[n.rightSelectedThumbnail].idToDl=t.new_id;var e=!0;n.signatureBook.attachments.forEach(function(t){t.sign&&"SIGN"!=t.status&&(e=!1)}),n.signatureBook.resList[n.signatureBook.resListIndex].allSigned=e}else alert(t.error);n.loadingSign=!1})},t.prototype.unsignFile=function(t){var e,n,r=this;0==t.res_id?(n=t.res_id_version,e="res_version_attachments"):0==t.res_id_version&&(n=t.res_id,e="res_attachments"),this.http.put(this.coreUrl+"rest/"+e+"/"+n+"/unsign",{},{}).map(function(t){return t.json()}).subscribe(function(t){"OK"==t.status?(r.rightViewerLink="index.php?display=true&module=visa&page=view_pdf_attachement&res_id_master="+r.resId+"&id="+n,r.signatureBook.attachments[r.rightSelectedThumbnail].viewerLink=r.rightViewerLink,r.signatureBook.attachments[r.rightSelectedThumbnail].status="A_TRA",r.signatureBook.attachments[r.rightSelectedThumbnail].idToDl=n,r.signatureBook.resList[r.signatureBook.resListIndex].allSigned=!1):alert(t.error)})},t.prototype.backToBasket=function(){unlockDocument(this.resId),location.hash="",location.reload()},t.prototype.backToDetails=function(){unlockDocument(this.resId),location.hash="",location.search="?page=details&dir=indexing_searching&id="+this.resId},t.prototype.changeLocation=function(t,e){var n=this;this.http.get(this.coreUrl+"rest/res/"+t+"/lock").map(function(t){return t.json()}).subscribe(function(r){if(r.lock)"view"==e?alert("Courrier verouillé par "+r.lockBy):"action"==e&&n.backToBasket();else{var o="/"+n.basketId+"/signatureBook/"+t;n.router.navigate([o])}})},t.prototype.validForm=function(){""!=$j("#signatureBookActions option:selected")[0].value?(unlockDocument(this.resId),valid_action_form("empty","index.php?display=true&page=manage_action&module=core",this.signatureBook.currentAction.id,this.resId,"res_letterbox","null","letterbox_coll","page",!1,[$j("#signatureBookActions option:selected")[0].value])):alert("Aucune action choisie")},t}();l=r([i.Component({templateUrl:"js/angular/app/Views/signatureBook.html"}),o("design:paramtypes",[s.Http,u.ActivatedRoute,u.Router,i.NgZone])],l),n.SignatureBookComponent=l},{"@angular/core":8,"@angular/http":10,"@angular/platform-browser":12,"@angular/router":13,"rxjs/add/operator/map":24}],5:[function(t,e,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var r=t("@angular/platform-browser-dynamic"),o=t("@angular/core"),i=t("./app/app.module");o.enableProdMode(),r.platformBrowserDynamic().bootstrapModule(i.AppModule)},{"./app/app.module":2,"@angular/core":8,"@angular/platform-browser-dynamic":11}],6:[function(e,n,r){!function(o,i){"object"==typeof r&&"undefined"!=typeof n?i(r,e("@angular/core")):"function"==typeof t&&t.amd?t(["exports","@angular/core"],i):i((o.ng=o.ng||{},o.ng.common=o.ng.common||{}),o.ng.core)}(this,function(t,e){"use strict";function n(t,e){return t&&e.startsWith(t)?e.substring(t.length):e}function r(t){return t.replace(/\/index.html$/,"")}function o(t,e,n){var r="="+t;if(e.indexOf(r)>-1)return r;if(r=n.getPluralCategory(t),e.indexOf(r)>-1)return r;if(e.indexOf("other")>-1)return"other";throw new Error('No plural message found for value "'+t+'"')}function i(t,e){"string"==typeof e&&(e=parseInt(e,10));var n=e,r=n.toString().replace(/^[^.]*\.?/,""),o=Math.floor(Math.abs(n)),i=r.length,s=parseInt(r,10),a=parseInt(n.toString().replace(/^[^.]*\.?|0+$/g,""),10)||0,u=t.split("-")[0].toLowerCase();switch(u){case"af":case"asa":case"az":case"bem":case"bez":case"bg":case"brx":case"ce":case"cgg":case"chr":case"ckb":case"ee":case"el":case"eo":case"es":case"eu":case"fo":case"fur":case"gsw":case"ha":case"haw":case"hu":case"jgo":case"jmc":case"ka":case"kk":case"kkj":case"kl":case"ks":case"ksb":case"ky":case"lb":case"lg":case"mas":case"mgo":case"ml":case"mn":case"nb":case"nd":case"ne":case"nn":case"nnh":case"nyn":case"om":case"or":case"os":case"ps":case"rm":case"rof":case"rwk":case"saq":case"seh":case"sn":case"so":case"sq":case"ta":case"te":case"teo":case"tk":case"tr":case"ug":case"uz":case"vo":case"vun":case"wae":case"xog":return 1===n?H.One:H.Other;case"agq":case"bas":case"cu":case"dav":case"dje":case"dua":case"dyo":case"ebu":case"ewo":case"guz":case"kam":case"khq":case"ki":case"kln":case"kok":case"ksf":case"lrc":case"lu":case"luo":case"luy":case"mer":case"mfe":case"mgh":case"mua":case"mzn":case"nmg":case"nus":case"qu":case"rn":case"rw":case"sbp":case"twq":case"vai":case"yav":case"yue":case"zgh":case"ak":case"ln":case"mg":case"pa":case"ti":return n===Math.floor(n)&&n>=0&&1>=n?H.One:H.Other;case"am":case"as":case"bn":case"fa":case"gu":case"hi":case"kn":case"mr":case"zu":return 0===o||1===n?H.One:H.Other;case"ar":return 0===n?H.Zero:1===n?H.One:2===n?H.Two:n%100===Math.floor(n%100)&&n%100>=3&&10>=n%100?H.Few:n%100===Math.floor(n%100)&&n%100>=11&&99>=n%100?H.Many:H.Other;case"ast":case"ca":case"de":case"en":case"et":case"fi":case"fy":case"gl":case"it":case"nl":case"sv":case"sw":case"ur":case"yi":return 1===o&&0===i?H.One:H.Other;case"be":return n%10===1&&n%100!==11?H.One:n%10===Math.floor(n%10)&&n%10>=2&&4>=n%10&&!(n%100>=12&&14>=n%100)?H.Few:n%10===0||n%10===Math.floor(n%10)&&n%10>=5&&9>=n%10||n%100===Math.floor(n%100)&&n%100>=11&&14>=n%100?H.Many:H.Other;case"br":return n%10===1&&n%100!==11&&n%100!==71&&n%100!==91?H.One:n%10===2&&n%100!==12&&n%100!==72&&n%100!==92?H.Two:n%10===Math.floor(n%10)&&(n%10>=3&&4>=n%10||n%10===9)&&!(n%100>=10&&19>=n%100||n%100>=70&&79>=n%100||n%100>=90&&99>=n%100)?H.Few:0!==n&&n%1e6===0?H.Many:H.Other;case"bs":case"hr":case"sr":return 0===i&&o%10===1&&o%100!==11||s%10===1&&s%100!==11?H.One:0===i&&o%10===Math.floor(o%10)&&o%10>=2&&4>=o%10&&!(o%100>=12&&14>=o%100)||s%10===Math.floor(s%10)&&s%10>=2&&4>=s%10&&!(s%100>=12&&14>=s%100)?H.Few:H.Other;case"cs":case"sk":return 1===o&&0===i?H.One:o===Math.floor(o)&&o>=2&&4>=o&&0===i?H.Few:0!==i?H.Many:H.Other;case"cy":return 0===n?H.Zero:1===n?H.One:2===n?H.Two:3===n?H.Few:6===n?H.Many:H.Other;case"da":return 1===n||0!==a&&(0===o||1===o)?H.One:H.Other;case"dsb":case"hsb":return 0===i&&o%100===1||s%100===1?H.One:0===i&&o%100===2||s%100===2?H.Two:0===i&&o%100===Math.floor(o%100)&&o%100>=3&&4>=o%100||s%100===Math.floor(s%100)&&s%100>=3&&4>=s%100?H.Few:H.Other;case"ff":case"fr":case"hy":case"kab":return 0===o||1===o?H.One:H.Other;case"fil":return 0===i&&(1===o||2===o||3===o)||0===i&&o%10!==4&&o%10!==6&&o%10!==9||0!==i&&s%10!==4&&s%10!==6&&s%10!==9?H.One:H.Other;case"ga":return 1===n?H.One:2===n?H.Two:n===Math.floor(n)&&n>=3&&6>=n?H.Few:n===Math.floor(n)&&n>=7&&10>=n?H.Many:H.Other;case"gd":return 1===n||11===n?H.One:2===n||12===n?H.Two:n===Math.floor(n)&&(n>=3&&10>=n||n>=13&&19>=n)?H.Few:H.Other;case"gv":return 0===i&&o%10===1?H.One:0===i&&o%10===2?H.Two:0!==i||o%100!==0&&o%100!==20&&o%100!==40&&o%100!==60&&o%100!==80?0!==i?H.Many:H.Other:H.Few;case"he":return 1===o&&0===i?H.One:2===o&&0===i?H.Two:0!==i||n>=0&&10>=n||n%10!==0?H.Other:H.Many;case"is":return 0===a&&o%10===1&&o%100!==11||0!==a?H.One:H.Other;case"ksh":return 0===n?H.Zero:1===n?H.One:H.Other;case"kw":case"naq":case"se":case"smn":return 1===n?H.One:2===n?H.Two:H.Other;case"lag":return 0===n?H.Zero:0!==o&&1!==o||0===n?H.Other:H.One;case"lt":return n%10!==1||n%100>=11&&19>=n%100?n%10===Math.floor(n%10)&&n%10>=2&&9>=n%10&&!(n%100>=11&&19>=n%100)?H.Few:0!==s?H.Many:H.Other:H.One;case"lv":case"prg":return n%10===0||n%100===Math.floor(n%100)&&n%100>=11&&19>=n%100||2===i&&s%100===Math.floor(s%100)&&s%100>=11&&19>=s%100?H.Zero:n%10===1&&n%100!==11||2===i&&s%10===1&&s%100!==11||2!==i&&s%10===1?H.One:H.Other;case"mk":return 0===i&&o%10===1||s%10===1?H.One:H.Other;case"mt":return 1===n?H.One:0===n||n%100===Math.floor(n%100)&&n%100>=2&&10>=n%100?H.Few:n%100===Math.floor(n%100)&&n%100>=11&&19>=n%100?H.Many:H.Other;case"pl":return 1===o&&0===i?H.One:0===i&&o%10===Math.floor(o%10)&&o%10>=2&&4>=o%10&&!(o%100>=12&&14>=o%100)?H.Few:0===i&&1!==o&&o%10===Math.floor(o%10)&&o%10>=0&&1>=o%10||0===i&&o%10===Math.floor(o%10)&&o%10>=5&&9>=o%10||0===i&&o%100===Math.floor(o%100)&&o%100>=12&&14>=o%100?H.Many:H.Other;case"pt":return n===Math.floor(n)&&n>=0&&2>=n&&2!==n?H.One:H.Other;case"ro":return 1===o&&0===i?H.One:0!==i||0===n||1!==n&&n%100===Math.floor(n%100)&&n%100>=1&&19>=n%100?H.Few:H.Other;case"ru":case"uk":return 0===i&&o%10===1&&o%100!==11?H.One:0===i&&o%10===Math.floor(o%10)&&o%10>=2&&4>=o%10&&!(o%100>=12&&14>=o%100)?H.Few:0===i&&o%10===0||0===i&&o%10===Math.floor(o%10)&&o%10>=5&&9>=o%10||0===i&&o%100===Math.floor(o%100)&&o%100>=11&&14>=o%100?H.Many:H.Other;case"shi":return 0===o||1===n?H.One:n===Math.floor(n)&&n>=2&&10>=n?H.Few:H.Other;case"si":return 0===n||1===n||0===o&&1===s?H.One:H.Other;case"sl":return 0===i&&o%100===1?H.One:0===i&&o%100===2?H.Two:0===i&&o%100===Math.floor(o%100)&&o%100>=3&&4>=o%100||0!==i?H.Few:H.Other;case"tzm":return n===Math.floor(n)&&n>=0&&1>=n||n===Math.floor(n)&&n>=11&&99>=n?H.One:H.Other;default:return H.Other}}function s(t){return t.name||typeof t}function a(t,n){return Error("InvalidPipeArgument: '"+n+"' for pipe '"+e.ɵstringify(t)+"'")}function u(t){return t?t[0].toUpperCase()+t.substr(1).toLowerCase():t}function c(t){return function(e,n){var r=t(e,n);return 1==r.length?"0"+r:r}}function l(t){return function(e,n){return t(e,n).split(" ")[1]}}function p(t){return function(e,n){return t(e,n).split(" ")[0]}}function h(t,e,n){return new Intl.DateTimeFormat(e,n).format(t).replace(/[\u200e\u200f]/g,"")}function f(t){var e={hour:"2-digit",hour12:!1,timeZoneName:t};return function(t,n){var r=h(t,n,e);return r?r.substring(3):""}}function d(t,e){return t.hour12=e,t}function y(t,e){var n={};return n[t]=2===e?"2-digit":"numeric",n}function v(t,e){var n={};return n[t]=4>e?e>1?"short":"narrow":"long",n}function m(t){return Object.assign.apply(Object,[{}].concat(t))}function g(t){return function(e,n){return h(e,n,t)}}function _(t,e,n){var r=mt[t];if(r)return r(e,n);var o=t,i=_t.get(o);if(!i){i=[];var s=void 0;for(vt.exec(t);t;)s=vt.exec(t),s?(i=i.concat(s.slice(1)),t=i.pop()):(i.push(t),t=null);_t.set(o,i)}return i.reduce(function(t,r){var o=gt[r];return t+(o?o(e,n):b(r))},"")}function b(t){return"''"===t?"'":t.replace(/(^'|'$)/g,"").replace(/''/g,"'")}function w(t,e,n,r,o,i,s){if(void 0===i&&(i=null),void 0===s&&(s=!1),null==n)return null;if(n="string"==typeof n&&E(n)?+n:n,"number"!=typeof n)throw a(t,n);var u,c,l;if(r!==dt.Currency&&(u=1,c=0,l=3),o){var p=o.match(wt);if(null===p)throw new Error(o+" is not a valid digit info for number pipes");null!=p[1]&&(u=C(p[1])),null!=p[3]&&(c=C(p[3])),null!=p[5]&&(l=C(p[5]))}return yt.format(n,e,r,{minimumIntegerDigits:u,minimumFractionDigits:c,maximumFractionDigits:l,currency:i,currencyAsSymbol:s})}function C(t){var e=parseInt(t);if(isNaN(e))throw new Error("Invalid integer literal when parsing "+t);return e}function E(t){return!isNaN(t-parseFloat(t))}function S(t){return null==t||""===t}function x(t){return t instanceof Date&&!isNaN(t.valueOf())}function T(t){var e=new Date(0),n=0,r=0,o=t[8]?e.setUTCFullYear:e.setFullYear,i=t[8]?e.setUTCHours:e.setHours;t[9]&&(n=P(t[9]+t[10]),r=P(t[9]+t[11])),o.call(e,P(t[1]),P(t[2])-1,P(t[3]));var s=P(t[4]||"0")-n,a=P(t[5]||"0")-r,u=P(t[6]||"0"),c=Math.round(1e3*parseFloat("0."+(t[7]||0)));return i.call(e,s,a,u,c),e}function P(t){return parseInt(t,10)}function A(t){return t===Nt}function O(t){return t===Dt}function M(t){return t===jt}function R(t){return t===Lt}var k=void 0||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},I=function(){function t(){}return t.prototype.getBaseHrefFromDOM=function(){},t.prototype.onPopState=function(){},t.prototype.onHashChange=function(){},Object.defineProperty(t.prototype,"pathname",{get:function(){return null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"search",{get:function(){return null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"hash",{get:function(){return null},enumerable:!0,configurable:!0}),t.prototype.replaceState=function(){},t.prototype.pushState=function(){},t.prototype.forward=function(){},t.prototype.back=function(){},t}(),N=new e.InjectionToken("Location Initialized"),D=function(){function t(){}return t.prototype.path=function(){},t.prototype.prepareExternalUrl=function(){},t.prototype.pushState=function(){},t.prototype.replaceState=function(){},t.prototype.forward=function(){},t.prototype.back=function(){},t.prototype.onPopState=function(){},t.prototype.getBaseHref=function(){},t}(),j=new e.InjectionToken("appBaseHref"),L=function(){function t(n){var o=this;this._subject=new e.EventEmitter,this._platformStrategy=n;var i=this._platformStrategy.getBaseHref();this._baseHref=t.stripTrailingSlash(r(i)),this._platformStrategy.onPopState(function(t){o._subject.emit({url:o.path(!0),pop:!0,type:t.type})})}return t.prototype.path=function(t){return void 0===t&&(t=!1),this.normalize(this._platformStrategy.path(t))},t.prototype.isCurrentPathEqualTo=function(e,n){return void 0===n&&(n=""),this.path()==this.normalize(e+t.normalizeQueryParams(n))},t.prototype.normalize=function(e){return t.stripTrailingSlash(n(this._baseHref,r(e)))},t.prototype.prepareExternalUrl=function(t){return t&&"/"!==t[0]&&(t="/"+t),this._platformStrategy.prepareExternalUrl(t)},t.prototype.go=function(t,e){void 0===e&&(e=""),this._platformStrategy.pushState(null,"",t,e)},t.prototype.replaceState=function(t,e){void 0===e&&(e=""),this._platformStrategy.replaceState(null,"",t,e)},t.prototype.forward=function(){this._platformStrategy.forward()},t.prototype.back=function(){this._platformStrategy.back()},t.prototype.subscribe=function(t,e,n){return void 0===e&&(e=null),void 0===n&&(n=null),this._subject.subscribe({next:t,error:e,complete:n})},t.normalizeQueryParams=function(t){return t&&"?"!==t[0]?"?"+t:t},t.joinWithSlash=function(t,e){if(0==t.length)return e;if(0==e.length)return t;var n=0;return t.endsWith("/")&&n++,e.startsWith("/")&&n++,2==n?t+e.substring(1):1==n?t+e:t+"/"+e},t.stripTrailingSlash=function(t){return t.replace(/\/$/,"")},t}();L.decorators=[{type:e.Injectable}],L.ctorParameters=function(){return[{type:D}]};var V=function(t){function e(e,n){var r=t.call(this)||this;return r._platformLocation=e,r._baseHref="",null!=n&&(r._baseHref=n),r}return k(e,t),e.prototype.onPopState=function(t){this._platformLocation.onPopState(t),this._platformLocation.onHashChange(t)},e.prototype.getBaseHref=function(){return this._baseHref},e.prototype.path=function(t){void 0===t&&(t=!1);var e=this._platformLocation.hash;return null==e&&(e="#"),e.length>0?e.substring(1):e},e.prototype.prepareExternalUrl=function(t){var e=L.joinWithSlash(this._baseHref,t);return e.length>0?"#"+e:e},e.prototype.pushState=function(t,e,n,r){var o=this.prepareExternalUrl(n+L.normalizeQueryParams(r));0==o.length&&(o=this._platformLocation.pathname),this._platformLocation.pushState(t,e,o)},e.prototype.replaceState=function(t,e,n,r){var o=this.prepareExternalUrl(n+L.normalizeQueryParams(r));0==o.length&&(o=this._platformLocation.pathname),this._platformLocation.replaceState(t,e,o)},e.prototype.forward=function(){this._platformLocation.forward()},e.prototype.back=function(){this._platformLocation.back()},e}(D);V.decorators=[{type:e.Injectable}],V.ctorParameters=function(){return[{type:I},{type:void 0,decorators:[{type:e.Optional},{type:e.Inject,args:[j]}]}]};var F=function(t){function e(e,n){var r=t.call(this)||this;if(r._platformLocation=e,null==n&&(n=r._platformLocation.getBaseHrefFromDOM()),null==n)throw new Error("No base href set. Please provide a value for the APP_BASE_HREF token or add a base element to the document.");return r._baseHref=n,r}return k(e,t),e.prototype.onPopState=function(t){this._platformLocation.onPopState(t),this._platformLocation.onHashChange(t)},e.prototype.getBaseHref=function(){return this._baseHref},e.prototype.prepareExternalUrl=function(t){return L.joinWithSlash(this._baseHref,t)},e.prototype.path=function(t){void 0===t&&(t=!1);var e=this._platformLocation.pathname+L.normalizeQueryParams(this._platformLocation.search),n=this._platformLocation.hash;return n&&t?""+e+n:e},e.prototype.pushState=function(t,e,n,r){var o=this.prepareExternalUrl(n+L.normalizeQueryParams(r));this._platformLocation.pushState(t,e,o)},e.prototype.replaceState=function(t,e,n,r){var o=this.prepareExternalUrl(n+L.normalizeQueryParams(r));this._platformLocation.replaceState(t,e,o)},e.prototype.forward=function(){this._platformLocation.forward()},e.prototype.back=function(){this._platformLocation.back()},e}(D);F.decorators=[{type:e.Injectable}],F.ctorParameters=function(){return[{type:I},{type:void 0,decorators:[{type:e.Optional},{type:e.Inject,args:[j]}]}]};var U=function(){function t(){}return t.prototype.getPluralCategory=function(){},t}(),B=function(t){function e(e){var n=t.call(this)||this;return n.locale=e,n}return k(e,t),e.prototype.getPluralCategory=function(t){var e=i(this.locale,t);switch(e){case H.Zero:return"zero";case H.One:return"one";case H.Two:return"two";case H.Few:return"few";case H.Many:return"many";default:return"other"}},e}(U);B.decorators=[{type:e.Injectable}],B.ctorParameters=function(){return[{type:void 0,decorators:[{type:e.Inject,args:[e.LOCALE_ID]}]}]};var H={};H.Zero=0,H.One=1,H.Two=2,H.Few=3,H.Many=4,H.Other=5,H[H.Zero]="Zero",H[H.One]="One",H[H.Two]="Two",H[H.Few]="Few",H[H.Many]="Many",H[H.Other]="Other";var q=function(){function t(t,e,n,r){this._iterableDiffers=t,this._keyValueDiffers=e,this._ngEl=n,this._renderer=r,this._initialClasses=[]}return Object.defineProperty(t.prototype,"klass",{set:function(t){this._applyInitialClasses(!0),this._initialClasses="string"==typeof t?t.split(/\s+/):[],this._applyInitialClasses(!1),this._applyClasses(this._rawClass,!1)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"ngClass",{set:function(t){this._cleanupClasses(this._rawClass),this._iterableDiffer=null,this._keyValueDiffer=null,this._rawClass="string"==typeof t?t.split(/\s+/):t,this._rawClass&&(e.ɵisListLikeIterable(this._rawClass)?this._iterableDiffer=this._iterableDiffers.find(this._rawClass).create():this._keyValueDiffer=this._keyValueDiffers.find(this._rawClass).create())},enumerable:!0,configurable:!0}),t.prototype.ngDoCheck=function(){if(this._iterableDiffer){var t=this._iterableDiffer.diff(this._rawClass);t&&this._applyIterableChanges(t)}else if(this._keyValueDiffer){var e=this._keyValueDiffer.diff(this._rawClass); -t.forEachAddedItem(function(t){return e._toggleClass(t.key,t.currentValue)}),t.forEachChangedItem(function(t){return e._toggleClass(t.key,t.currentValue)}),t.forEachRemovedItem(function(t){t.previousValue&&e._toggleClass(t.key,!1)})},t.prototype._applyIterableChanges=function(t){var n=this;t.forEachAddedItem(function(t){if("string"!=typeof t.item)throw new Error("NgClass can only toggle CSS classes expressed as strings, got "+e.ɵstringify(t.item));n._toggleClass(t.item,!0)}),t.forEachRemovedItem(function(t){return n._toggleClass(t.item,!1)})},t.prototype._applyInitialClasses=function(t){var e=this;this._initialClasses.forEach(function(n){return e._toggleClass(n,!t)})},t.prototype._applyClasses=function(t,e){var n=this;t&&(Array.isArray(t)||t instanceof Set?t.forEach(function(t){return n._toggleClass(t,!e)}):Object.keys(t).forEach(function(r){null!=t[r]&&n._toggleClass(r,!e)}))},t.prototype._toggleClass=function(t,e){var n=this;t=t.trim(),t&&t.split(/\s+/g).forEach(function(t){n._renderer.setElementClass(n._ngEl.nativeElement,t,!!e)})},t}();q.decorators=[{type:e.Directive,args:[{selector:"[ngClass]"}]}],q.ctorParameters=function(){return[{type:e.IterableDiffers},{type:e.KeyValueDiffers},{type:e.ElementRef},{type:e.Renderer}]},q.propDecorators={klass:[{type:e.Input,args:["class"]}],ngClass:[{type:e.Input}]};var z=function(){function t(t){this._viewContainerRef=t,this._componentRef=null,this._moduleRef=null}return t.prototype.ngOnChanges=function(t){if(this._viewContainerRef.clear(),this._componentRef=null,this.ngComponentOutlet){var n=this.ngComponentOutletInjector||this._viewContainerRef.parentInjector;if(t.ngComponentOutletNgModuleFactory)if(this._moduleRef&&this._moduleRef.destroy(),this.ngComponentOutletNgModuleFactory){var r=n.get(e.NgModuleRef);this._moduleRef=this.ngComponentOutletNgModuleFactory.create(r.injector)}else this._moduleRef=null;var i=this._moduleRef?this._moduleRef.componentFactoryResolver:n.get(e.ComponentFactoryResolver),o=i.resolveComponentFactory(this.ngComponentOutlet);this._componentRef=this._viewContainerRef.createComponent(o,this._viewContainerRef.length,n,this.ngComponentOutletContent)}},t.prototype.ngOnDestroy=function(){this._moduleRef&&this._moduleRef.destroy()},t}();z.decorators=[{type:e.Directive,args:[{selector:"[ngComponentOutlet]"}]}],z.ctorParameters=function(){return[{type:e.ViewContainerRef}]},z.propDecorators={ngComponentOutlet:[{type:e.Input}],ngComponentOutletInjector:[{type:e.Input}],ngComponentOutletContent:[{type:e.Input}],ngComponentOutletNgModuleFactory:[{type:e.Input}]};var W=function(){function t(t,e,n,r){this.$implicit=t,this.ngForOf=e,this.index=n,this.count=r}return Object.defineProperty(t.prototype,"first",{get:function(){return 0===this.index},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"last",{get:function(){return this.index===this.count-1},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"even",{get:function(){return this.index%2===0},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"odd",{get:function(){return!this.even},enumerable:!0,configurable:!0}),t}(),G=function(){function t(t,e,n){this._viewContainer=t,this._template=e,this._differs=n,this._differ=null}return Object.defineProperty(t.prototype,"ngForTrackBy",{get:function(){return this._trackByFn},set:function(t){e.isDevMode()&&null!=t&&"function"!=typeof t&&console&&console.warn&&console.warn("trackBy must be a function, but received "+JSON.stringify(t)+". See https://angular.io/docs/ts/latest/api/common/index/NgFor-directive.html#!#change-propagation for more information."),this._trackByFn=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"ngForTemplate",{set:function(t){t&&(this._template=t)},enumerable:!0,configurable:!0}),t.prototype.ngOnChanges=function(t){if("ngForOf"in t){var e=t.ngForOf.currentValue;if(!this._differ&&e)try{this._differ=this._differs.find(e).create(this.ngForTrackBy)}catch(n){throw new Error("Cannot find a differ supporting object '"+e+"' of type '"+s(e)+"'. NgFor only supports binding to Iterables such as Arrays.")}}},t.prototype.ngDoCheck=function(){if(this._differ){var t=this._differ.diff(this.ngForOf);t&&this._applyChanges(t)}},t.prototype._applyChanges=function(t){var e=this,n=[];t.forEachOperation(function(t,r,i){if(null==t.previousIndex){var o=e._viewContainer.createEmbeddedView(e._template,new W(null,e.ngForOf,null,null),i),s=new K(t,o);n.push(s)}else if(null==i)e._viewContainer.remove(r);else{var o=e._viewContainer.get(r);e._viewContainer.move(o,i);var s=new K(t,o);n.push(s)}});for(var r=0;r<n.length;r++)this._perViewChange(n[r].view,n[r].record);for(var r=0,i=this._viewContainer.length;i>r;r++){var o=this._viewContainer.get(r);o.context.index=r,o.context.count=i}t.forEachIdentityChange(function(t){var n=e._viewContainer.get(t.currentIndex);n.context.$implicit=t.item})},t.prototype._perViewChange=function(t,e){t.context.$implicit=e.item},t}();G.decorators=[{type:e.Directive,args:[{selector:"[ngFor][ngForOf]"}]}],G.ctorParameters=function(){return[{type:e.ViewContainerRef},{type:e.TemplateRef},{type:e.IterableDiffers}]},G.propDecorators={ngForOf:[{type:e.Input}],ngForTrackBy:[{type:e.Input}],ngForTemplate:[{type:e.Input}]};var K=function(){function t(t,e){this.record=t,this.view=e}return t}(),Q=G,X=function(){function t(t,e){this._viewContainer=t,this._context=new $,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=e}return Object.defineProperty(t.prototype,"ngIf",{set:function(t){this._context.$implicit=this._context.ngIf=t,this._updateView()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"ngIfThen",{set:function(t){this._thenTemplateRef=t,this._thenViewRef=null,this._updateView()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"ngIfElse",{set:function(t){this._elseTemplateRef=t,this._elseViewRef=null,this._updateView()},enumerable:!0,configurable:!0}),t.prototype._updateView=function(){this._context.$implicit?this._thenViewRef||(this._viewContainer.clear(),this._elseViewRef=null,this._thenTemplateRef&&(this._thenViewRef=this._viewContainer.createEmbeddedView(this._thenTemplateRef,this._context))):this._elseViewRef||(this._viewContainer.clear(),this._thenViewRef=null,this._elseTemplateRef&&(this._elseViewRef=this._viewContainer.createEmbeddedView(this._elseTemplateRef,this._context)))},t}();X.decorators=[{type:e.Directive,args:[{selector:"[ngIf]"}]}],X.ctorParameters=function(){return[{type:e.ViewContainerRef},{type:e.TemplateRef}]},X.propDecorators={ngIf:[{type:e.Input}],ngIfThen:[{type:e.Input}],ngIfElse:[{type:e.Input}]};var $=function(){function t(){this.$implicit=null,this.ngIf=null}return t}(),Z=function(){function t(t,e){this._viewContainerRef=t,this._templateRef=e,this._created=!1}return t.prototype.create=function(){this._created=!0,this._viewContainerRef.createEmbeddedView(this._templateRef)},t.prototype.destroy=function(){this._created=!1,this._viewContainerRef.clear()},t.prototype.enforceState=function(t){t&&!this._created?this.create():!t&&this._created&&this.destroy()},t}(),Y=function(){function t(){this._defaultUsed=!1,this._caseCount=0,this._lastCaseCheckIndex=0,this._lastCasesMatched=!1}return Object.defineProperty(t.prototype,"ngSwitch",{set:function(t){this._ngSwitch=t,0===this._caseCount&&this._updateDefaultCases(!0)},enumerable:!0,configurable:!0}),t.prototype._addCase=function(){return this._caseCount++},t.prototype._addDefault=function(t){this._defaultViews||(this._defaultViews=[]),this._defaultViews.push(t)},t.prototype._matchCase=function(t){var e=t==this._ngSwitch;return this._lastCasesMatched=this._lastCasesMatched||e,this._lastCaseCheckIndex++,this._lastCaseCheckIndex===this._caseCount&&(this._updateDefaultCases(!this._lastCasesMatched),this._lastCaseCheckIndex=0,this._lastCasesMatched=!1),e},t.prototype._updateDefaultCases=function(t){if(this._defaultViews&&t!==this._defaultUsed){this._defaultUsed=t;for(var e=0;e<this._defaultViews.length;e++){var n=this._defaultViews[e];n.enforceState(t)}}},t}();Y.decorators=[{type:e.Directive,args:[{selector:"[ngSwitch]"}]}],Y.ctorParameters=function(){return[]},Y.propDecorators={ngSwitch:[{type:e.Input}]};var J=function(){function t(t,e,n){this.ngSwitch=n,n._addCase(),this._view=new Z(t,e)}return t.prototype.ngDoCheck=function(){this._view.enforceState(this.ngSwitch._matchCase(this.ngSwitchCase))},t}();J.decorators=[{type:e.Directive,args:[{selector:"[ngSwitchCase]"}]}],J.ctorParameters=function(){return[{type:e.ViewContainerRef},{type:e.TemplateRef},{type:Y,decorators:[{type:e.Host}]}]},J.propDecorators={ngSwitchCase:[{type:e.Input}]};var tt=function(){function t(t,e,n){n._addDefault(new Z(t,e))}return t}();tt.decorators=[{type:e.Directive,args:[{selector:"[ngSwitchDefault]"}]}],tt.ctorParameters=function(){return[{type:e.ViewContainerRef},{type:e.TemplateRef},{type:Y,decorators:[{type:e.Host}]}]};var et=function(){function t(t){this._localization=t,this._caseViews={}}return Object.defineProperty(t.prototype,"ngPlural",{set:function(t){this._switchValue=t,this._updateView()},enumerable:!0,configurable:!0}),t.prototype.addCase=function(t,e){this._caseViews[t]=e},t.prototype._updateView=function(){this._clearViews();var t=Object.keys(this._caseViews),e=i(this._switchValue,t,this._localization);this._activateView(this._caseViews[e])},t.prototype._clearViews=function(){this._activeView&&this._activeView.destroy()},t.prototype._activateView=function(t){t&&(this._activeView=t,this._activeView.create())},t}();et.decorators=[{type:e.Directive,args:[{selector:"[ngPlural]"}]}],et.ctorParameters=function(){return[{type:U}]},et.propDecorators={ngPlural:[{type:e.Input}]};var nt=function(){function t(t,e,n,r){this.value=t;var i=!isNaN(Number(t));r.addCase(i?"="+t:t,new Z(n,e))}return t}();nt.decorators=[{type:e.Directive,args:[{selector:"[ngPluralCase]"}]}],nt.ctorParameters=function(){return[{type:void 0,decorators:[{type:e.Attribute,args:["ngPluralCase"]}]},{type:e.TemplateRef},{type:e.ViewContainerRef},{type:et,decorators:[{type:e.Host}]}]};var rt=function(){function t(t,e,n){this._differs=t,this._ngEl=e,this._renderer=n}return Object.defineProperty(t.prototype,"ngStyle",{set:function(t){this._ngStyle=t,!this._differ&&t&&(this._differ=this._differs.find(t).create())},enumerable:!0,configurable:!0}),t.prototype.ngDoCheck=function(){if(this._differ){var t=this._differ.diff(this._ngStyle);t&&this._applyChanges(t)}},t.prototype._applyChanges=function(t){var e=this;t.forEachRemovedItem(function(t){return e._setStyle(t.key,null)}),t.forEachAddedItem(function(t){return e._setStyle(t.key,t.currentValue)}),t.forEachChangedItem(function(t){return e._setStyle(t.key,t.currentValue)})},t.prototype._setStyle=function(t,e){var n=t.split("."),r=n[0],i=n[1];e=null!=e&&i?""+e+i:e,this._renderer.setElementStyle(this._ngEl.nativeElement,r,e)},t}();rt.decorators=[{type:e.Directive,args:[{selector:"[ngStyle]"}]}],rt.ctorParameters=function(){return[{type:e.KeyValueDiffers},{type:e.ElementRef},{type:e.Renderer}]},rt.propDecorators={ngStyle:[{type:e.Input}]};var it=function(){function t(t){this._viewContainerRef=t}return Object.defineProperty(t.prototype,"ngOutletContext",{set:function(t){this.ngTemplateOutletContext=t},enumerable:!0,configurable:!0}),t.prototype.ngOnChanges=function(){this._viewRef&&this._viewContainerRef.remove(this._viewContainerRef.indexOf(this._viewRef)),this.ngTemplateOutlet&&(this._viewRef=this._viewContainerRef.createEmbeddedView(this.ngTemplateOutlet,this.ngTemplateOutletContext))},t}();it.decorators=[{type:e.Directive,args:[{selector:"[ngTemplateOutlet]"}]}],it.ctorParameters=function(){return[{type:e.ViewContainerRef}]},it.propDecorators={ngTemplateOutletContext:[{type:e.Input}],ngTemplateOutlet:[{type:e.Input}],ngOutletContext:[{type:e.Input}]};var ot=[q,z,G,X,it,rt,Y,J,tt,et,nt],st=function(){function t(){}return t.prototype.createSubscription=function(t,e){return t.subscribe({next:e,error:function(t){throw t}})},t.prototype.dispose=function(t){t.unsubscribe()},t.prototype.onDestroy=function(t){t.unsubscribe()},t}(),at=function(){function t(){}return t.prototype.createSubscription=function(t,e){return t.then(e,function(t){throw t})},t.prototype.dispose=function(){},t.prototype.onDestroy=function(){},t}(),ut=new at,ct=new st,lt=function(){function t(t){this._ref=t,this._latestValue=null,this._latestReturnedValue=null,this._subscription=null,this._obj=null,this._strategy=null}return t.prototype.ngOnDestroy=function(){this._subscription&&this._dispose()},t.prototype.transform=function(t){return this._obj?t!==this._obj?(this._dispose(),this.transform(t)):this._latestValue===this._latestReturnedValue?this._latestReturnedValue:(this._latestReturnedValue=this._latestValue,e.WrappedValue.wrap(this._latestValue)):(t&&this._subscribe(t),this._latestReturnedValue=this._latestValue,this._latestValue)},t.prototype._subscribe=function(t){var e=this;this._obj=t,this._strategy=this._selectStrategy(t),this._subscription=this._strategy.createSubscription(t,function(n){return e._updateLatestValue(t,n)})},t.prototype._selectStrategy=function(n){if(e.ɵisPromise(n))return ut;if(e.ɵisObservable(n))return ct;throw a(t,n)},t.prototype._dispose=function(){this._strategy.dispose(this._subscription),this._latestValue=null,this._latestReturnedValue=null,this._subscription=null,this._obj=null},t.prototype._updateLatestValue=function(t,e){t===this._obj&&(this._latestValue=e,this._ref.markForCheck())},t}();lt.decorators=[{type:e.Pipe,args:[{name:"async",pure:!1}]}],lt.ctorParameters=function(){return[{type:e.ChangeDetectorRef}]};var pt=function(){function t(){}return t.prototype.transform=function(e){if(!e)return e;if("string"!=typeof e)throw a(t,e);return e.toLowerCase()},t}();pt.decorators=[{type:e.Pipe,args:[{name:"lowercase"}]}],pt.ctorParameters=function(){return[]};var ht=function(){function t(){}return t.prototype.transform=function(e){if(!e)return e;if("string"!=typeof e)throw a(t,e);return e.split(/\b/g).map(function(t){return u(t)}).join("")},t}();ht.decorators=[{type:e.Pipe,args:[{name:"titlecase"}]}],ht.ctorParameters=function(){return[]};var ft=function(){function t(){}return t.prototype.transform=function(e){if(!e)return e;if("string"!=typeof e)throw a(t,e);return e.toUpperCase()},t}();ft.decorators=[{type:e.Pipe,args:[{name:"uppercase"}]}],ft.ctorParameters=function(){return[]};var dt={};dt.Decimal=0,dt.Percent=1,dt.Currency=2,dt[dt.Decimal]="Decimal",dt[dt.Percent]="Percent",dt[dt.Currency]="Currency";var vt=function(){function t(){}return t.format=function(t,e,n,r){var i=void 0===r?{}:r,o=i.minimumIntegerDigits,s=i.minimumFractionDigits,a=i.maximumFractionDigits,u=i.currency,c=i.currencyAsSymbol,l=void 0===c?!1:c,p={minimumIntegerDigits:o,minimumFractionDigits:s,maximumFractionDigits:a,style:dt[n].toLowerCase()};return n==dt.Currency&&(p.currency=u,p.currencyDisplay=l?"symbol":"code"),new Intl.NumberFormat(e,p).format(t)},t}(),mt=/((?:[^yMLdHhmsazZEwGjJ']+)|(?:'(?:[^']|'')*')|(?:E+|y+|M+|L+|d+|H+|h+|J+|j+|m+|s+|a|z|Z|G+|w+))(.*)/,yt={yMMMdjms:g(y([v("year",1),m("month",3),v("day",1),v("hour",1),v("minute",1),v("second",1)])),yMdjm:g(y([v("year",1),v("month",1),v("day",1),v("hour",1),v("minute",1)])),yMMMMEEEEd:g(y([v("year",1),m("month",4),m("weekday",4),v("day",1)])),yMMMMd:g(y([v("year",1),m("month",4),v("day",1)])),yMMMd:g(y([v("year",1),m("month",3),v("day",1)])),yMd:g(y([v("year",1),v("month",1),v("day",1)])),jms:g(y([v("hour",1),v("second",1),v("minute",1)])),jm:g(y([v("hour",1),v("minute",1)]))},gt={yyyy:g(v("year",4)),yy:g(v("year",2)),y:g(v("year",1)),MMMM:g(m("month",4)),MMM:g(m("month",3)),MM:g(v("month",2)),M:g(v("month",1)),LLLL:g(m("month",4)),L:g(m("month",1)),dd:g(v("day",2)),d:g(v("day",1)),HH:c(p(g(d(v("hour",2),!1)))),H:p(g(d(v("hour",1),!1))),hh:c(p(g(d(v("hour",2),!0)))),h:p(g(d(v("hour",1),!0))),jj:g(v("hour",2)),j:g(v("hour",1)),mm:c(g(v("minute",2))),m:g(v("minute",1)),ss:c(g(v("second",2))),s:g(v("second",1)),sss:g(v("second",3)),EEEE:g(m("weekday",4)),EEE:g(m("weekday",3)),EE:g(m("weekday",2)),E:g(m("weekday",1)),a:l(g(d(v("hour",1),!0))),Z:f("short"),z:f("long"),ww:g({}),w:g({}),G:g(m("era",1)),GG:g(m("era",2)),GGG:g(m("era",3)),GGGG:g(m("era",4))},_t=new Map,bt=function(){function t(){}return t.format=function(t,e,n){return _(n,t,e)},t}(),wt=/^(\d+)?\.((\d+)(-(\d+))?)?$/,Et=function(){function t(t){this._locale=t}return t.prototype.transform=function(e,n){return void 0===n&&(n=null),w(t,this._locale,e,dt.Decimal,n)},t}();Et.decorators=[{type:e.Pipe,args:[{name:"number"}]}],Et.ctorParameters=function(){return[{type:void 0,decorators:[{type:e.Inject,args:[e.LOCALE_ID]}]}]};var Ct=function(){function t(t){this._locale=t}return t.prototype.transform=function(e,n){return void 0===n&&(n=null),w(t,this._locale,e,dt.Percent,n)},t}();Ct.decorators=[{type:e.Pipe,args:[{name:"percent"}]}],Ct.ctorParameters=function(){return[{type:void 0,decorators:[{type:e.Inject,args:[e.LOCALE_ID]}]}]};var St=function(){function t(t){this._locale=t}return t.prototype.transform=function(e,n,r,i){return void 0===n&&(n="USD"),void 0===r&&(r=!1),void 0===i&&(i=null),w(t,this._locale,e,dt.Currency,i,n,r)},t}();St.decorators=[{type:e.Pipe,args:[{name:"currency"}]}],St.ctorParameters=function(){return[{type:void 0,decorators:[{type:e.Inject,args:[e.LOCALE_ID]}]}]};var xt=/^(\d{4})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,Tt=function(){function t(t){this._locale=t}return t.prototype.transform=function(e,n){void 0===n&&(n="mediumDate");var r;if(S(e)||e!==e)return null;if("string"==typeof e&&(e=e.trim()),x(e))r=e;else if(C(e))r=new Date(parseFloat(e));else if("string"==typeof e&&/^(\d{4}-\d{1,2}-\d{1,2})$/.test(e)){var i=e.split("-").map(function(t){return parseInt(t,10)}),o=i[0],s=i[1],u=i[2];r=new Date(o,s-1,u)}else r=new Date(e);if(!x(r)){var c=void 0;if("string"!=typeof e||!(c=e.match(xt)))throw a(t,e);r=T(c)}return bt.format(r,this._locale,t._ALIASES[n]||n)},t}();Tt._ALIASES={medium:"yMMMdjms","short":"yMdjm",fullDate:"yMMMMEEEEd",longDate:"yMMMMd",mediumDate:"yMMMd",shortDate:"yMd",mediumTime:"jms",shortTime:"jm"},Tt.decorators=[{type:e.Pipe,args:[{name:"date",pure:!0}]}],Tt.ctorParameters=function(){return[{type:void 0,decorators:[{type:e.Inject,args:[e.LOCALE_ID]}]}]};var Pt=/#/g,At=function(){function t(t){this._localization=t}return t.prototype.transform=function(e,n){if(null==e)return"";if("object"!=typeof n||null===n)throw a(t,n);var r=i(e,Object.keys(n),this._localization);return n[r].replace(Pt,e.toString())},t}();At.decorators=[{type:e.Pipe,args:[{name:"i18nPlural",pure:!0}]}],At.ctorParameters=function(){return[{type:U}]};var Ot=function(){function t(){}return t.prototype.transform=function(e,n){if(null==e)return"";if("object"!=typeof n||"string"!=typeof e)throw a(t,n);return n.hasOwnProperty(e)?n[e]:n.hasOwnProperty("other")?n.other:""},t}();Ot.decorators=[{type:e.Pipe,args:[{name:"i18nSelect",pure:!0}]}],Ot.ctorParameters=function(){return[]};var Mt=function(){function t(){}return t.prototype.transform=function(t){return JSON.stringify(t,null,2)},t}();Mt.decorators=[{type:e.Pipe,args:[{name:"json",pure:!1}]}],Mt.ctorParameters=function(){return[]};var Rt=function(){function t(){}return t.prototype.transform=function(e,n,r){if(null==e)return e;if(!this.supports(e))throw a(t,e);return e.slice(n,r)},t.prototype.supports=function(t){return"string"==typeof t||Array.isArray(t)},t}();Rt.decorators=[{type:e.Pipe,args:[{name:"slice",pure:!1}]}],Rt.ctorParameters=function(){return[]};var kt=[lt,ft,pt,Mt,Rt,Et,Ct,ht,St,Tt,At,Ot],It=function(){function t(){}return t}();It.decorators=[{type:e.NgModule,args:[{declarations:[ot,kt],exports:[ot,kt],providers:[{provide:U,useClass:B}]}]}],It.ctorParameters=function(){return[]};var Nt="browser",Dt="server",Lt="browserWorkerApp",jt="browserWorkerUi",Ft=new e.Version("4.0.1");t.NgLocaleLocalization=B,t.NgLocalization=U,t.CommonModule=It,t.NgClass=q,t.NgFor=Q,t.NgForOf=G,t.NgForOfContext=W,t.NgIf=X,t.NgIfContext=$,t.NgPlural=et,t.NgPluralCase=nt,t.NgStyle=rt,t.NgSwitch=Y,t.NgSwitchCase=J,t.NgSwitchDefault=tt,t.NgTemplateOutlet=it,t.NgComponentOutlet=z,t.AsyncPipe=lt,t.DatePipe=Tt,t.I18nPluralPipe=At,t.I18nSelectPipe=Ot,t.JsonPipe=Mt,t.LowerCasePipe=pt,t.CurrencyPipe=St,t.DecimalPipe=Et,t.PercentPipe=Ct,t.SlicePipe=Rt,t.UpperCasePipe=ft,t.TitleCasePipe=ht,t.ɵPLATFORM_BROWSER_ID=Nt,t.ɵPLATFORM_SERVER_ID=Dt,t.ɵPLATFORM_WORKER_APP_ID=Lt,t.ɵPLATFORM_WORKER_UI_ID=jt,t.isPlatformBrowser=A,t.isPlatformServer=O,t.isPlatformWorkerApp=M,t.isPlatformWorkerUi=R,t.VERSION=Ft,t.PlatformLocation=I,t.LOCATION_INITIALIZED=N,t.LocationStrategy=D,t.APP_BASE_HREF=L,t.HashLocationStrategy=F,t.PathLocationStrategy=V,t.Location=j,t.ɵa=ot,t.ɵb=kt,Object.defineProperty(t,"__esModule",{value:!0})})},{"@angular/core":8}],7:[function(e,n,r){!function(i,o){"object"==typeof r&&"undefined"!=typeof n?o(r,e("@angular/core")):"function"==typeof t&&t.amd?t(["exports","@angular/core"],o):o((i.ng=i.ng||{},i.ng.compiler=i.ng.compiler||{}),i.ng.core)}(this,function(t,e){"use strict";function n(t,e,n){void 0===n&&(n=null);var r=[],i=t.visit?function(e){return t.visit(e,n)||e.visit(t,n)}:function(e){return e.visit(t,n)};return e.forEach(function(t){var e=i(t);e&&r.push(e)}),r}function r(t){if(":"!=t[0])return[null,t];var e=t.indexOf(":",1);if(-1==e)throw new Error('Unsupported format "'+t+'" expecting ":namespace:name"');return[t.slice(1,e),t.slice(e+1)]}function i(t){return null===t?null:r(t)[0]}function o(t,e){return t?":"+t+":"+e:e}function s(t){return hi[t.toLowerCase()]||fi}function a(t){return t.replace(bi,function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return t[1].toUpperCase()})}function u(t,e){return l(t,":",e)}function c(t,e){return l(t,".",e)}function l(t,e,n){var r=t.indexOf(e);return-1==r?n:[t.slice(0,r).trim(),t.slice(r+1).trim()]}function p(t,e,n){return Array.isArray(t)?e.visitArray(t,n):v(t)?e.visitStringMap(t,n):null==t||"string"==typeof t||"number"==typeof t||"boolean"==typeof t?e.visitPrimitive(t,n):e.visitOther(t,n)}function h(t){var e=Error(t);return e[Ci]=!0,e}function f(t){return t[Ci]}function d(t){return t.replace(/([.*+?^=!:${}()|[\]\/\\])/g,"\\$1")}function v(t){return"object"==typeof t&&null!==t&&Object.getPrototypeOf(t)===Si}function m(t){for(var e="",n=0;n<t.length;n++){var r=t.charCodeAt(n);if(r>=55296&&56319>=r&&t.length>n+1){var i=t.charCodeAt(n+1);i>=56320&&57343>=i&&(n++,r=(r-55296<<10)+i-56320+65536)}127>=r?e+=String.fromCharCode(r):2047>=r?e+=String.fromCharCode(r>>6&31|192,63&r|128):65535>=r?e+=String.fromCharCode(r>>12|224,r>>6&63|128,63&r|128):2097151>=r&&(e+=String.fromCharCode(r>>18&7|240,r>>12&63|128,r>>6&63|128,63&r|128))}return e}function y(t){return t.replace(/\W/g,"_")}function g(t){if(!t||!t.reference)return null;var n=t.reference;if(n instanceof ai)return n.name;if(n.__anonymousType)return n.__anonymousType;var r=e.ɵstringify(n);return r.indexOf("(")>=0?(r="anonymous_"+ji++,n.__anonymousType=r):r=y(r),r}function _(t){var n=t.reference;return n instanceof ai?n.filePath:e.ɵreflector.importUri(n)}function b(t,e){return"View_"+g({reference:t})+"_"+e}function w(t){return"RenderType_"+g({reference:t})}function E(t){return"HostView_"+g({reference:t})}function C(t){return"Wrapper_"+g({reference:t})}function S(t){return g({reference:t})+"NgFactory"}function x(t){return null!=t.value?y(t.value):g(t.identifier)}function T(t){return null!=t.identifier?t.identifier.reference:t.value}function P(t,n,r){var i=vi.parse(n.selector)[0].getMatchingElementTemplate();return Bi.create({isHost:!0,type:{reference:t,diDeps:[],lifecycleHooks:[]},template:new Ui({encapsulation:e.ViewEncapsulation.None,template:i,templateUrl:"",styles:[],styleUrls:[],ngContentSelectors:[],animations:[],isInline:!0}),changeDetection:e.ChangeDetectionStrategy.Default,inputs:[],outputs:[],host:{},isComponent:!0,selector:"*",providers:[],viewProviders:[],queries:[],viewQueries:[],componentViewType:r,rendererType:{id:"__Host__",encapsulation:e.ViewEncapsulation.None,styles:[],data:{}}})}function A(t){return t||[]}function O(t){return t.reduce(function(t,e){var n=Array.isArray(e)?O(e):e;return t.concat(n)},[])}function M(t){return t.replace(/(\w+:\/\/[\w:-]+)?(\/+)?/,"ng:///")}function R(t,e,n){var r;return r=n.isInline?e.type.reference instanceof ai?e.type.reference.filePath+"."+e.type.reference.name+".html":g(t)+"/"+g(e.type)+".html":n.templateUrl,M(r)}function k(t,e){var n=t.moduleUrl.split(/\/\\/g),r=n[n.length-1];return M("css/"+e+r+".ngstyle.js")}function I(t){return M(g(t.type)+"/module.ngfactory.js")}function N(t,e){return M(g(t)+"/"+g(e.type)+".ngfactory.js")}function D(t){return t>=Eo&&Po>=t||t==bs}function L(t){return t>=Xo&&$o>=t}function j(t){return t>=as&&ms>=t||t>=Zo&&es>=t}function F(t){return t>=as&&cs>=t||t>=Zo&&Jo>=t||L(t)}function V(){return function(t){return t}}function U(t,n){if(e.isDevMode()&&null!=n){if(!Array.isArray(n))throw new Error("Expected '"+t+"' to be an array of strings.");for(var r=0;r<n.length;r+=1)if("string"!=typeof n[r])throw new Error("Expected '"+t+"' to be an array of strings.")}}function B(t,n){if(!(null==n||Array.isArray(n)&&2==n.length))throw new Error("Expected '"+t+"' to be an array, [start, end].");if(e.isDevMode()&&null!=n){var r=n[0],i=n[1];Es.forEach(function(t){if(t.test(r)||t.test(i))throw new Error("['"+r+"', '"+i+"'] contains unusable interpolation symbol.")})}}function H(t,e){return new As(t,xs.Character,e,String.fromCharCode(e))}function q(t,e){return new As(t,xs.Identifier,0,e)}function z(t,e){return new As(t,xs.Keyword,0,e)}function W(t,e){return new As(t,xs.Operator,0,e)}function G(t,e){return new As(t,xs.String,0,e)}function K(t,e){return new As(t,xs.Number,e,"")}function Q(t,e){return new As(t,xs.Error,0,e)}function X(t){return t>=as&&ms>=t||t>=Zo&&es>=t||t==ss||t==Ro}function $(t){if(0==t.length)return!1;var e=new Ms(t);if(!X(e.peek))return!1;for(e.advance();e.peek!==wo;){if(!Z(e.peek))return!1;e.advance()}return!0}function Z(t){return j(t)||L(t)||t==ss||t==Ro}function Y(t){return t==us||t==Yo}function J(t){return t==Uo||t==Fo}function tt(t){return t===No||t===Oo||t===ws}function et(t){switch(t){case ls:return Co;case cs:return xo;case ps:return To;case hs:return Eo;case ds:return So;default:return t}}function nt(t){var e=parseInt(t);if(isNaN(e))throw new Error("Invalid integer literal when parsing "+t);return e}function rt(t){var e=d(t.start)+"([\\s\\S]*?)"+d(t.end);return new RegExp(e,"g")}function it(t,e){var n=_(e),r=null!=n?"in "+t+" "+g(e)+" in "+n:"in "+t+" "+g(e),i=new js("",r);return new Fs(new Ls(i,null,null,null),new Ls(i,null,null,null))}function ot(t,e,n){void 0===n&&(n=null);var r=[],i=t.visit?function(e){return t.visit(e,n)||e.visit(t,n)}:function(e){return e.visit(t,n)};return e.forEach(function(t){var e=i(t);e&&r.push(e)}),r}function st(t,e,n,r,i){return void 0===r&&(r=!1),void 0===i&&(i=Ss),new Js(new js(t,e),n,r,i).tokenize()}function at(t){var e=t===wo?"EOF":String.fromCharCode(t);return'Unexpected character "'+e+'"'}function ut(t){return'Unknown entity "'+t+'" - use the "&#<decimal>;" or "&#x<hex>;" syntax'}function ct(t){return!D(t)||t===wo}function lt(t){return D(t)||t===Ko||t===Ho||t===No||t===Oo||t===Go}function pt(t){return(as>t||t>ms)&&(Zo>t||t>es)&&(Xo>t||t>$o)}function ht(t){return t==zo||t==wo||!F(t)}function ft(t){return t==zo||t==wo||!j(t)}function dt(t,e,n){var r=n?t.indexOf(n.start,e)==e:!1;return t.charCodeAt(e)==ys&&!r}function vt(t){return t===Go||j(t)}function mt(t,e){return yt(t)==yt(e)}function yt(t){return t>=as&&ms>=t?t-as+Zo:t}function gt(t){for(var e,n=[],r=0;r<t.length;r++){var i=t[r];e&&e.type==Ks.TEXT&&i.type==Ks.TEXT?(e.parts[0]+=i.parts[0],e.sourceSpan.end=i.sourceSpan.end):(e=i,n.push(e))}return n}function _t(t,e){return t.length>0&&t[t.length-1]===e}function bt(t){var e=new ma(va,t);return function(t,n,r,i){return e.toI18nMessage(t,n,r,i)}}function wt(t){return t.split(ya)[2]}function Et(t,e,n,r){var i=new Ta(n,r);return i.extract(t,e)}function Ct(t,e,n,r,i){var o=new Ta(r,i);return o.merge(t,e,n)}function St(t){return t instanceof Gs&&t.value&&t.value.startsWith("i18n")}function xt(t){return t instanceof Gs&&t.value&&"/i18n"===t.value}function Tt(t){return t.attrs.find(function(t){return t.name===_a})||null}function Pt(t){if(!t)return{meaning:"",description:"",id:""};var e=t.indexOf(Ca),n=t.indexOf(Ea),r=e>-1?[t.slice(0,e),t.slice(e+2)]:[t,""],i=r[0],o=r[1],s=n>-1?[i.slice(0,n),i.slice(n+1)]:["",i],a=s[0],u=s[1];return{meaning:a,description:u,id:o}}function At(){return Aa}function Ot(t){return t.id||kt(Rt(t.nodes).join("")+("["+t.meaning+"]"))}function Mt(t){if(t.id)return t.id;var e=new ka,n=t.nodes.map(function(t){return t.visit(e,null)});return Dt(n.join(""),t.meaning)}function Rt(t){return t.map(function(t){return t.visit(Ra,null)})}function kt(t){var e=m(t),n=zt(e,Ia.Big),r=8*e.length,i=new Array(80),o=[1732584193,4023233417,2562383102,271733878,3285377520],s=o[0],a=o[1],u=o[2],c=o[3],l=o[4];n[r>>5]|=128<<24-r%32,n[(r+64>>9<<4)+15]=r;for(var p=0;p<n.length;p+=16){for(var h=[s,a,u,c,l],f=h[0],d=h[1],v=h[2],y=h[3],g=h[4],_=0;80>_;_++){i[_]=16>_?n[p+_]:Ht(i[_-3]^i[_-8]^i[_-14]^i[_-16],1);var b=It(_,a,u,c),w=b[0],E=b[1],C=[Ht(s,5),w,l,E,i[_]].reduce(Ft);S=[c,u,Ht(a,30),s,C],l=S[0],c=S[1],u=S[2],a=S[3],s=S[4]}x=[Ft(s,f),Ft(a,d),Ft(u,v),Ft(c,y),Ft(l,g)],s=x[0],a=x[1],u=x[2],c=x[3],l=x[4]}return Xt(Kt([s,a,u,c,l]));var S,x}function It(t,e,n,r){return 20>t?[e&n|~e&r,1518500249]:40>t?[e^n^r,1859775393]:60>t?[e&n|e&r|n&r,2400959708]:[e^n^r,3395469782]}function Nt(t){var e=m(t),n=[Lt(e,0),Lt(e,102072)],r=n[0],i=n[1];return 0!=r||0!=i&&1!=i||(r=319790063^r,i=-1801410264^i),[r,i]}function Dt(t,e){var n=Nt(t),r=n[0],i=n[1];if(e){var o=Nt(e),s=o[0],a=o[1];u=Ut(qt([r,i],1),[s,a]),r=u[0],i=u[1]}return $t(Kt([2147483647&r,i]));var u}function Lt(t,e){var n,r=[2654435769,2654435769],i=r[0],o=r[1],s=t.length;for(n=0;s>=n+12;n+=12)i=Ft(i,Gt(t,n,Ia.Little)),o=Ft(o,Gt(t,n+4,Ia.Little)),e=Ft(e,Gt(t,n+8,Ia.Little)),a=jt([i,o,e]),i=a[0],o=a[1],e=a[2];return i=Ft(i,Gt(t,n,Ia.Little)),o=Ft(o,Gt(t,n+4,Ia.Little)),e=Ft(e,s),e=Ft(e,Gt(t,n+8,Ia.Little)<<8),jt([i,o,e])[2];var a}function jt(t){var e=t[0],n=t[1],r=t[2];return e=Bt(e,n),e=Bt(e,r),e^=r>>>13,n=Bt(n,r),n=Bt(n,e),n^=e<<8,r=Bt(r,e),r=Bt(r,n),r^=n>>>13,e=Bt(e,n),e=Bt(e,r),e^=r>>>12,n=Bt(n,r),n=Bt(n,e),n^=e<<16,r=Bt(r,e),r=Bt(r,n),r^=n>>>5,e=Bt(e,n),e=Bt(e,r),e^=r>>>3,n=Bt(n,r),n=Bt(n,e),n^=e<<10,r=Bt(r,e),r=Bt(r,n),r^=n>>>15,[e,n,r]}function Ft(t,e){return Vt(t,e)[1]}function Vt(t,e){var n=(65535&t)+(65535&e),r=(t>>>16)+(e>>>16)+(n>>>16);return[r>>>16,r<<16|65535&n]}function Ut(t,e){var n=t[0],r=t[1],i=e[0],o=e[1],s=Vt(r,o),a=s[0],u=s[1],c=Ft(Ft(n,i),a);return[c,u]}function Bt(t,e){var n=(65535&t)-(65535&e),r=(t>>16)-(e>>16)+(n>>16);return r<<16|65535&n}function Ht(t,e){return t<<e|t>>>32-e}function qt(t,e){var n=t[0],r=t[1],i=n<<e|r>>>32-e,o=r<<e|n>>>32-e;return[i,o]}function zt(t,e){for(var n=Array(t.length+3>>>2),r=0;r<n.length;r++)n[r]=Gt(t,4*r,e);return n}function Wt(t,e){return e>=t.length?0:255&t.charCodeAt(e)}function Gt(t,e,n){var r=0;if(n===Ia.Big)for(var i=0;4>i;i++)r+=Wt(t,e+i)<<24-8*i;else for(var i=0;4>i;i++)r+=Wt(t,e+i)<<8*i;return r}function Kt(t){return t.reduce(function(t,e){return t+Qt(e)},"")}function Qt(t){for(var e="",n=0;4>n;n++)e+=String.fromCharCode(t>>>8*(3-n)&255);return e}function Xt(t){for(var e="",n=0;n<t.length;n++){var r=Wt(t,n);e+=(r>>>4).toString(16)+(15&r).toString(16)}return e.toLowerCase()}function $t(t){for(var e="",n="1",r=t.length-1;r>=0;r--)e=Zt(e,Yt(Wt(t,r),n)),n=Yt(256,n);return e.split("").reverse().join("")}function Zt(t,e){for(var n="",r=Math.max(t.length,e.length),i=0,o=0;r>i||o;i++){var s=o+ +(t[i]||0)+ +(e[i]||0);s>=10?(o=1,n+=s-10):(o=0,n+=s)}return n}function Yt(t,e){for(var n="",r=e;0!==t;t>>>=1)1&t&&(n=Zt(n,r)),r=Zt(r,r);return n}function Jt(t){return t.map(function(t){return t.visit(ja)}).join("")}function te(t){return qa.reduce(function(t,e){ -return t.replace(e[0],e[1])},t)}function ee(t){switch(t.toLowerCase()){case"br":return"lb";case"img":return"image";default:return"x-"+t}}function ne(t){return Mt(t)}function re(t){return t.toUpperCase().replace(/[^A-Z0-9_]/g,"_")}function ie(t,e,n){Object.defineProperty(t,e,{configurable:!0,enumerable:!0,get:function(){var r=n();return Object.defineProperty(t,e,{enumerable:!0,value:r}),r},set:function(){throw new Error("Could not overwrite an XTB translation")}})}function oe(t){switch(t=(t||"xlf").toLowerCase()){case"xmb":return new au;case"xtb":return new fu;case"xliff":case"xlf":default:return new Ya}}function se(t,e,n){return void 0===e&&(e=null),void 0===n&&(n="src"),null==e?"@angular/"+t:"@angular/"+t+"/"+n+"/"+e}function ae(t){var n=t.name;return e.ɵreflector.resolveIdentifier(n,t.moduleUrl,null,t.runtime)}function ue(t){return{reference:ae(t)}}function ce(t){return{identifier:t}}function le(t){return ce(ue(t))}function pe(t){var e=new xu;return new Cu(ot(e,t),e.isExpanded,e.errors)}function he(t,e){var n=t.cases.map(function(t){-1!=Eu.indexOf(t.value)||t.value.match(/^=\d+$/)||e.push(new Su(t.valueSourceSpan,'Plural cases should be "=<number>" or one of '+Eu.join(", ")));var n=pe(t.expression);return e.push.apply(e,n.errors),new Ws("ng-template",[new zs("ngPluralCase",""+t.value,t.valueSourceSpan)],n.nodes,t.sourceSpan,t.sourceSpan,t.sourceSpan)}),r=new zs("[ngPlural]",t.switchValue,t.switchValueSourceSpan);return new Ws("ng-container",[r],n,t.sourceSpan,t.sourceSpan,t.sourceSpan)}function fe(t,e){var n=t.cases.map(function(t){var n=pe(t.expression);return e.push.apply(e,n.errors),"other"===t.value?new Ws("ng-template",[new zs("ngSwitchDefault","",t.valueSourceSpan)],n.nodes,t.sourceSpan,t.sourceSpan,t.sourceSpan):new Ws("ng-template",[new zs("ngSwitchCase",""+t.value,t.valueSourceSpan)],n.nodes,t.sourceSpan,t.sourceSpan,t.sourceSpan)}),r=new zs("[ngSwitch]",t.switchValue,t.switchValueSourceSpan);return new Ws("ng-container",[r],n,t.sourceSpan,t.sourceSpan,t.sourceSpan)}function de(t,e){var n=e.useExisting,r=e.useValue,i=e.deps;return{token:t.token,useClass:t.useClass,useExisting:n,useFactory:t.useFactory,useValue:r,deps:i,multi:t.multi}}function ve(t,e){var n=e.eager,r=e.providers;return new ri(t.token,t.multiProvider,t.eager||n,r,t.providerType,t.lifecycleHooks,t.sourceSpan)}function me(t,e,n){var r=new Map;t.forEach(function(t){var i={token:{identifier:t.type},useClass:t.type};ye([i],t.isComponent?ii.Component:ii.Directive,!0,e,n,r)});var i=t.filter(function(t){return t.isComponent}).concat(t.filter(function(t){return!t.isComponent}));return i.forEach(function(t){ye(t.providers,ii.PublicService,!1,e,n,r),ye(t.viewProviders,ii.PrivateService,!1,e,n,r)}),r}function ye(t,e,n,r,i,o){t.forEach(function(t){var s=o.get(T(t.token));if(null!=s&&!!s.multiProvider!=!!t.multi&&i.push(new Tu("Mixing multi and non multi provider is not possible for token "+x(s.token),r)),s)t.multi||(s.providers.length=0),s.providers.push(t);else{var a=t.token.identifier&&t.token.identifier.lifecycleHooks?t.token.identifier.lifecycleHooks:[],u=!(t.useClass||t.useExisting||t.useFactory);s=new ri(t.token,t.multi,n||u,[t],e,a,r),o.set(T(t.token),s)}})}function ge(t){var e=1,n=new Map;return t.viewQueries&&t.viewQueries.forEach(function(t){return be(n,{meta:t,queryId:e++})}),n}function _e(t,e){var n=t,r=new Map;return e.forEach(function(t){t.queries&&t.queries.forEach(function(t){return be(r,{meta:t,queryId:n++})})}),r}function be(t,e){e.meta.selectors.forEach(function(n){var r=t.get(T(n));r||(r=[],t.set(T(n),r)),r.push(e)})}function we(t){if(null==t||0===t.length||"/"==t[0])return!1;var e=t.match(Nu);return null===e||"package"==e[1]||"asset"==e[1]}function Ee(t,e,n){var r=[],i=n.replace(Iu,"").replace(ku,function(){for(var n=[],i=0;i<arguments.length;i++)n[i]=arguments[i];var o=n[1]||n[2];return we(o)?(r.push(t.resolve(e,o)),""):n[0]});return new Ru(i,r)}function Ce(t){return"@"==t[0]}function Se(t,n,r,i){var o=[];return vi.parse(n).forEach(function(e){var n=e.element?[e.element]:t.allKnownElementNames(),s=new Set(e.notSelectors.filter(function(t){return t.isElementSelector()}).map(function(t){return t.element})),a=n.filter(function(t){return!s.has(t)});o.push.apply(o,a.map(function(e){return t.securityContext(e,r,i)}))}),0===o.length?[e.SecurityContext.NONE]:Array.from(new Set(o)).sort()}function xe(t){var e=null,n=null,i=null,o=!1,s=null;t.attrs.forEach(function(t){var r=t.name.toLowerCase();r==zu?e=t.value:r==Qu?n=t.value:r==Ku?i=t.value:t.name==Yu?o=!0:t.name==Ju&&t.value.length>0&&(s=t.value)}),e=Te(e);var a=t.name.toLowerCase(),u=tc.OTHER;return r(a)[1]==Wu?u=tc.NG_CONTENT:a==$u?u=tc.STYLE:a==Zu?u=tc.SCRIPT:a==Gu&&i==Xu&&(u=tc.STYLESHEET),new ec(u,e,n,o,s)}function Te(t){return null===t||0===t.length?"*":t}function Pe(t){return function(e){return-1!==t.indexOf(e.msg)?(wc[e.msg]=(wc[e.msg]||0)+1,wc[e.msg]<=1):!0}}function Ae(t){return t.trim().split(/\s+/g)}function Oe(t,e){var n=new vi,i=r(t)[1];n.setElement(i);for(var o=0;o<e.length;o++){var s=e[o][0],a=r(s)[1],u=e[o][1];if(n.addAttribute(a,u),s.toLowerCase()==yc){var c=Ae(u);c.forEach(function(t){return n.addClassName(t)})}}return n}function Me(t){return t instanceof Bs&&0==t.value.trim().length}function Re(t){var e=new Map;return t.forEach(function(t){e.get(t.type.reference)||e.set(t.type.reference,t)}),Array.from(e.values())}function ke(t){return t instanceof yo&&(t=t.ast),t instanceof Zi}function Ie(t,e,n){var i=r(t.name)[1];return i===fc?!0:i.toLowerCase()===dc?e&&i.toLowerCase()===dc?(n(_c,t.sourceSpan),!0):!1:void 0}function Ne(){return new Nc}function De(){return new Nc(".")}function Le(t){var e=Fe(t);return e&&e[Lc.Scheme]||""}function je(t,e,n,r,i,o,s){var a=[];return null!=t&&a.push(t+":"),null!=n&&(a.push("//"),null!=e&&a.push(e+"@"),a.push(n),null!=r&&a.push(":"+r)),null!=i&&a.push(i),null!=o&&a.push("?"+o),null!=s&&a.push("#"+s),a.join("")}function Fe(t){return t.match(Dc)}function Ve(t){if("/"==t)return"/";for(var e="/"==t[0]?"/":"",n="/"===t[t.length-1]?"/":"",r=t.split("/"),i=[],o=0,s=0;s<r.length;s++){var a=r[s];switch(a){case"":case".":break;case"..":i.length>0?i.pop():o++;break;default:i.push(a)}}if(""==e){for(;o-->0;)i.unshift("..");0===i.length&&i.push(".")}return e+i.join("/")+n}function Ue(t){var e=t[Lc.Path];return e=null==e?"":Ve(e),t[Lc.Path]=e,je(t[Lc.Scheme],t[Lc.UserInfo],t[Lc.Domain],t[Lc.Port],e,t[Lc.QueryData],t[Lc.Fragment])}function Be(t,e){var n=Fe(encodeURI(e)),r=Fe(t);if(null!=n[Lc.Scheme])return Ue(n);n[Lc.Scheme]=r[Lc.Scheme];for(var i=Lc.Scheme;i<=Lc.Port;i++)null==n[i]&&(n[i]=r[i]);if("/"==n[Lc.Path][0])return Ue(n);var o=r[Lc.Path];null==o&&(o="/");var s=o.lastIndexOf("/");return o=o.substring(0,s+1)+n[Lc.Path],n[Lc.Path]=o,Ue(n)}function He(t){return t instanceof e.Directive}function qe(t,e){for(var n=t.length-1;n>=0;n--)if(e(t[n]))return t[n];return null}function ze(t){var e=Ke(t);return e[0]+".ngfactory"+e[1]}function We(t){return t.replace(Hc,".")}function Ge(t){return Hc.test(t)}function Ke(t){if(t.endsWith(".d.ts"))return[t.slice(0,-5),".ts"];var e=t.lastIndexOf(".");return-1!==e?[t.substring(0,e),t.substring(e)]:[t,""]}function Qe(t){var e=t.replace(Bc,"");return e+".ngsummary.json"}function Xe(t,n){return e.ɵreflector.hasLifecycleHook(n,$e(t))}function $e(t){switch(t){case e.ɵLifecycleHooks.OnInit:return"ngOnInit";case e.ɵLifecycleHooks.OnDestroy:return"ngOnDestroy";case e.ɵLifecycleHooks.DoCheck:return"ngDoCheck";case e.ɵLifecycleHooks.OnChanges:return"ngOnChanges";case e.ɵLifecycleHooks.AfterContentInit:return"ngAfterContentInit";case e.ɵLifecycleHooks.AfterContentChecked:return"ngAfterContentChecked";case e.ɵLifecycleHooks.AfterViewInit:return"ngAfterViewInit";case e.ɵLifecycleHooks.AfterViewChecked:return"ngAfterViewChecked"}}function Ze(t){return t instanceof e.NgModule}function Ye(t){return t instanceof e.Pipe}function Je(t,n){if(void 0===n&&(n=[]),t)for(var r=0;r<t.length;r++){var i=e.resolveForwardRef(t[r]);Array.isArray(i)?Je(i,n):n.push(i)}return n}function tn(t){return t?Array.from(new Set(t)):[]}function en(t){return tn(Je(t))}function nn(t){return t instanceof ai||t instanceof e.Type}function rn(t,e,n){if(e instanceof ai)return t.resourceUri(e);var r=n.moduleId;if("string"==typeof r){var i=Le(r);return i?r:"package:"+r+_i}if(null!==r&&void 0!==r)throw h('moduleId should be a string in "'+sn(e)+"\". See https://goo.gl/wIDDiL for more information.\nIf you're using Webpack you should inline the template and the styles, see https://goo.gl/X2J8zc.");return t.importUri(e)}function on(t,e){p(t,new Qc,e)}function sn(t){return t instanceof ai?t.name+" in "+t.filePath:e.ɵstringify(t)}function an(t){var n=Error("Can't compile synchronously as "+e.ɵstringify(t)+" is still being loaded!");return n[e.ɵERROR_COMPONENT_TYPE]=t,n}function un(t){var e=new $l;return e.visitAllStatements(t,null),e.varNames}function cn(t,e){if(!e)return t;var n=new Zl(e);return t.visitStatement(n,null)}function ln(t,e){if(!e)return t;var n=new Zl(e);return t.visitExpression(n,null)}function pn(t,e,n){return void 0===e&&(e=null),new ul(t,e,n)}function hn(t,e,n){return void 0===e&&(e=null),new yl(t,null,e,n)}function fn(t,e,n){return void 0===e&&(e=null),void 0===n&&(n=null),null!=t?dn(hn(t,e),n):null}function dn(t,e){return void 0===e&&(e=null),null!=t?new Jc(t,e):null}function vn(t,e,n){return void 0===e&&(e=null),new Tl(t,e,n)}function mn(t,e,n){return void 0===e&&(e=null),void 0===n&&(n=!1),new Al(t.map(function(t){return new Pl(t[0],t[1],n)}),e)}function yn(t,e){return new _l(t,e)}function gn(t,e,n,r){return void 0===n&&(n=null),new El(t,e,n,r)}function _n(t,e,n){return void 0===e&&(e=null),new ml(t,e,n)}function bn(t){var e=t.parentArgs||[],n=t.parent?[Rl.callFn(e).toStmt()]:[],r=wn(Array.isArray(t.builders)?t.builders:[t.builders]),i=new Hl(null,t.ctorParams||[],n.concat(r.ctorStmts));return new zl(t.name,t.parent,r.fields,r.getters,i,r.methods,t.modifiers||[],t.sourceSpan)}function wn(t){return{fields:[].concat.apply([],t.map(function(t){return t.fields||[]})),methods:[].concat.apply([],t.map(function(t){return t.methods||[]})),getters:[].concat.apply([],t.map(function(t){return t.getters||[]})),ctorStmts:[].concat.apply([],t.map(function(t){return t.ctorStmts||[]}))}}function En(t,e){return void 0===e&&(e=null),p(t,new Jl,e)}function Cn(t){return null!=t.value?_n(t.value):hn(t.identifier)}function Sn(t){var e="";t=m(t);for(var n=0;n<t.length;){var r=t.charCodeAt(n++),i=t.charCodeAt(n++),o=t.charCodeAt(n++);e+=Tn(r>>2),e+=Tn((3&r)<<4|(isNaN(i)?0:i>>4)),e+=isNaN(i)?"=":Tn((15&i)<<2|o>>6),e+=isNaN(i)||isNaN(o)?"=":Tn(63&o)}return e}function xn(t){t=0>t?(-t<<1)+1:t<<1;var e="";do{var n=31&t;t>>=5,t>0&&(n=32|n),e+=Tn(n)}while(t>0);return e}function Tn(t){if(0>t||t>=64)throw new Error("Can only encode value in the range [0, 63]");return cp[t]}function Pn(t,e,n){if(void 0===n&&(n=!0),null==t)return null;var r=t.replace(lp,function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return"$"==t[0]?e?"\\$":"$":"\n"==t[0]?"\\n":"\r"==t[0]?"\\r":"\\"+t[0]}),i=n||!pp.test(r);return i?"'"+r+"'":r}function An(t){for(var e="",n=0;t>n;n++)e+=hp;return e}function On(t){var e=new bp(gp,{fileNameToModuleName:function(t){return t},getImportAs:function(){return null},getTypeArity:function(){return null}}),n=mp.createRoot([]),r=Array.isArray(t)?t:[t];return r.forEach(function(t){if(t instanceof Dl)t.visitStatement(e,n);else if(t instanceof sl)t.visitExpression(e,n);else{if(!(t instanceof $c))throw new Error("Don't know how to print debug info for "+t);t.visitType(e,n)}}),n.toSource()}function Mn(t,e){for(var n=0,r=e;n<r.length;n++){var i=r[n];wp[i.toLowerCase()]=t}}function Rn(t){switch(t){case"width":case"height":case"minWidth":case"minHeight":case"maxWidth":case"maxHeight":case"left":case"top":case"bottom":case"right":case"fontSize":case"outlineWidth":case"outlineOffset":case"paddingTop":case"paddingLeft":case"paddingBottom":case"paddingRight":case"marginTop":case"marginLeft":case"marginBottom":case"marginRight":case"borderRadius":case"borderWidth":case"borderTopWidth":case"borderLeftWidth":case"borderRightWidth":case"borderBottomWidth":case"textIndent":return!0;default:return!1}}function kn(t){return t.replace(Kp,"")}function In(t){var e=t.match(Qp);return e?e[0]:""}function Nn(t,e){var n=Dn(t),r=0;return n.escapedString.replace(Xp,function(){for(var t=[],i=0;i<arguments.length;i++)t[i]=arguments[i];var o=t[2],s="",a=t[4],u="";a&&a.startsWith("{"+Jp)&&(s=n.blocks[r++],a=a.substring(Jp.length+1),u="{");var c=e(new th(o,s));return""+t[1]+c.selector+t[3]+u+c.content+a})}function Dn(t){for(var e=t.split($p),n=[],r=[],i=0,o=[],s=0;s<e.length;s++){var a=e[s];a==Yp&&i--,i>0?o.push(a):(o.length>0&&(r.push(o.join("")),n.push(Jp),o=[]),n.push(a)),a==Zp&&i++}return o.length>0&&(r.push(o.join("")),n.push(Jp)),new eh(n.join(""),r)}function Ln(t){var e="styles";return t&&(e+="_"+g(t.type)),e}function jn(t,e,n,r){t||(t=new vh);var i=Fn({createLiteralArrayConverter:function(){return function(t){return vn(t)}},createLiteralMapConverter:function(t){return function(e){return mn(t.map(function(t,n){return[t,e[n]]}))}},createPipeConverter:function(t){throw new Error("Illegal State: Actions are not allowed to contain pipes. Pipe: "+t)}},n),o=new dh(t,e,r),s=[];Kn(i.visit(o,hh.Statement),s),qn(o.temporaryCount,r,s);var a=s.length-1,u=null;if(a>=0){var c=s[a],l=$n(c);l&&(u=Xn(r),s[a]=u.set(l.cast(nl).notIdentical(_n(!1))).toDeclStmt(null,[Nl.Final]))}return new lh(s,u)}function Fn(t,e){return Un(t,e)}function Vn(t,e,n,r){t||(t=new vh);var i=Qn(r),o=[],s=new dh(t,e,r),a=n.visit(s,hh.Expression);if(s.temporaryCount)for(var u=0;u<s.temporaryCount;u++)o.push(Hn(r,u));return o.push(i.set(a).toDeclStmt(null,[Nl.Final])),new ph(o,i)}function Un(t,e){var n=new fh(t);return e.visit(n)}function Bn(t,e){return"tmp_"+t+"_"+e}function Hn(t,e){return new Ll(Bn(t,e),kl)}function qn(t,e,n){for(var r=t-1;r>=0;r--)n.unshift(Hn(e,r))}function zn(t,e){if(t!==hh.Statement)throw new Error("Expected a statement, but saw "+e)}function Wn(t,e){if(t!==hh.Expression)throw new Error("Expected an expression, but saw "+e)}function Gn(t,e){return t===hh.Statement?e.toStmt():e}function Kn(t,e){Array.isArray(t)?t.forEach(function(t){return Kn(t,e)}):e.push(t)}function Qn(t){return pn("currVal_"+t)}function Xn(t){return pn("pd_"+t)}function $n(t){return t instanceof Fl?t.expr:t instanceof Vl?t.value:null}function Zn(t){return t.multiProvider?Yn(t.providers):Jn(t.providerType,t.providers[0])}function Yn(t){function e(t,e){return e.map(function(e,i){var o="p"+t+"_"+i;return r.push(new wl(o,nl)),n.push(er(e)),pn(o)})}var n=[],r=[],i=t.map(function(t,n){var r;if(t.useClass){var i=e(n,t.deps||t.useClass.diDeps);r=hn(t.useClass).instantiate(i)}else if(t.useFactory){var i=e(n,t.deps||t.useFactory.diDeps);r=hn(t.useFactory).callFn(i)}else if(t.useExisting){var i=e(n,[{token:t.useExisting}]);r=i[0]}else r=En(t.useValue);return r}),o=gn(r,[new Vl(vn(i))],rl);return{providerExpr:o,flags:512,depsExpr:vn(n)}}function Jn(t,e){var n,r,i;t===ii.Directive||t===ii.Component?(n=hn(e.useClass),r=8192,i=e.deps||e.useClass.diDeps):e.useClass?(n=hn(e.useClass),r=256,i=e.deps||e.useClass.diDeps):e.useFactory?(n=hn(e.useFactory),r=512,i=e.deps||e.useFactory.diDeps):e.useExisting?(n=kl,r=1024,i=[{token:e.useExisting}]):(n=En(e.useValue),r=128,i=[]);var o=vn(i.map(function(t){return er(t)}));return{providerExpr:n,flags:r,depsExpr:o}}function tr(t){return t.identifier?hn(t.identifier):_n(t.value)}function er(t){var e=t.isValue?En(t.value):tr(t.token),n=0;return t.isSkipSelf&&(n|=1),t.isOptional&&(n|=2),t.isValue&&(n|=8),0===n?e:vn([_n(n),e])}function nr(t){var e=t[t.length-1];return e instanceof ti?e.hasViewContainer:e instanceof Jr?e.name===bh&&e.children.length?nr(e.children):e.hasViewContainer:e instanceof oi}function rr(t){var n=0;switch(t){case e.ɵLifecycleHooks.AfterContentChecked:n=1048576;break;case e.ɵLifecycleHooks.AfterContentInit:n=524288;break;case e.ɵLifecycleHooks.AfterViewChecked:n=4194304;break;case e.ɵLifecycleHooks.AfterViewInit:n=2097152;break;case e.ɵLifecycleHooks.DoCheck:n=131072;break;case e.ɵLifecycleHooks.OnChanges:n=262144;break;case e.ɵLifecycleHooks.OnDestroy:n=65536;break;case e.ɵLifecycleHooks.OnInit:n=32768}return n}function ir(t,e){switch(t.type){case si.Attribute:return vn([_n(1),_n(t.name),_n(t.securityContext)]);case si.Property:return vn([_n(8),_n(t.name),_n(t.securityContext)]);case si.Animation:var n=8|(e&&e.directive.isComponent?32:16);return vn([_n(n),_n("@"+t.name),_n(t.securityContext)]);case si.Class:return vn([_n(2),_n(t.name),kl]);case si.Style:return vn([_n(4),_n(t.name),_n(t.unit)])}}function or(t){var e=Object.create(null);t.attrs.forEach(function(t){e[t.name]=t.value}),t.directives.forEach(function(t){Object.keys(t.directive.hostAttributes).forEach(function(n){var r=t.directive.hostAttributes[n],i=e[n];e[n]=null!=i?sr(n,i,r):r})});return vn(Object.keys(e).sort().map(function(t){return vn([_n(t),_n(e[t])])}))}function sr(t,e,n){return t==yh||t==gh?e+" "+n:n}function ar(t,e){return xh.callFn(e.length>10?[Sh,_n(t),_n(1),vn(e)]:[Sh,_n(t),_n(0)].concat(e))}function ur(t,e,n){return hn(ue(wu.unwrapValue)).callFn([Sh,_n(t),_n(e),n])}function cr(t,e){return void 0===e&&(e=new Map),t.forEach(function(t){var n,r=new Set,i=new Set;t instanceof Jr?(cr(t.children,e),t.children.forEach(function(t){var n=e.get(t);n.staticQueryIds.forEach(function(t){return r.add(t)}),n.dynamicQueryIds.forEach(function(t){return i.add(t)})}),n=t.queryMatches):t instanceof ti&&(cr(t.children,e),t.children.forEach(function(t){var n=e.get(t);n.staticQueryIds.forEach(function(t){return i.add(t)}),n.dynamicQueryIds.forEach(function(t){return i.add(t)})}),n=t.queryMatches),n&&n.forEach(function(t){return r.add(t.queryId)}),i.forEach(function(t){return r["delete"](t)}),e.set(t,{staticQueryIds:r,dynamicQueryIds:i})}),e}function lr(t){var e=new Set,n=new Set;return Array.from(t.values()).forEach(function(t){t.staticQueryIds.forEach(function(t){return e.add(t)}),t.dynamicQueryIds.forEach(function(t){return n.add(t)})}),n.forEach(function(t){return e["delete"](t)}),{staticQueryIds:e,dynamicQueryIds:n}}function pr(t){var e=t.find(function(t){return t.directive.isComponent});if(e&&e.directive.entryComponents.length){var n=e.directive.entryComponents.map(function(t){return hn({reference:t.componentFactory})}),r=le(wu.ComponentFactoryResolver),i={diDeps:[{isValue:!0,value:vn(n)},{token:r,isSkipSelf:!0,isOptional:!0},{token:le(wu.NgModuleRef)}],lifecycleHooks:[],reference:ae(wu.CodegenComponentFactoryResolver)};return new ri(r,!1,!0,[{token:r,multi:!1,useClass:i}],ii.PrivateService,[],e.sourceSpan)}return null}function hr(t,e){return t.isAnimation?{name:"@"+t.name+"."+t.phase,target:e&&e.directive.isComponent?"component":null}:t}function fr(t,e,n){var r=0;return r|=!n||!t.staticQueryIds.has(e)&&t.dynamicQueryIds.has(e)?268435456:134217728}function dr(t,e,n,r){var i=new Rh(e,t);n.forEach(function(t){return i.addOrMergeSummary({symbol:t.symbol,metadata:t.metadata})});for(var o=0;o<i.symbols.length;o++){var s=i.symbols[o];if(t.isLibraryFile(s.filePath)){var a=t.resolveSummary(s);if(!a){var u=e.resolveSymbol(s);u&&(a={symbol:u.symbol,metadata:u.metadata})}a&&i.addOrMergeSummary(a)}}return r.forEach(function(e){if(i.addOrMergeSummary({symbol:e.type.reference,metadata:{__symbolic:"class"},type:e}),e.summaryKind===Fi.NgModule){var n=e;n.exportedDirectives.concat(n.exportedPipes).forEach(function(e){var n=e.reference;if(t.isLibraryFile(n.filePath)){var r=t.resolveSummary(n);r&&i.addOrMergeSummary(r)}})}}),i.serialize()}function vr(t,e){var n=new kh(t);return n.deserialize(e)}function mr(t,e,n){return e.dependencies.forEach(function(e){e.valuePlaceholder.reference=t.getStaticSymbol(yr(e.moduleUrl,e.isShimmed,n),e.name)}),e.statements}function yr(t,e,n){return""+t+(e?".shim":"")+".ngstyle"+n}function gr(t){if(!t.isComponent)throw new Error("Could not compile '"+g(t.type)+"' because it is not a component.")}function _r(t,e,n){var r=Cr(t,e,n),i=r.ngModules,o=r.symbolsMissingModule;return wr(t,i,o,n)}function br(t,e,n){var r=_r(t,e,n);if(r.symbolsMissingModule&&r.symbolsMissingModule.length){var i=r.symbolsMissingModule.map(function(t){return"Cannot determine the module for class "+t.name+" in "+t.filePath+"! Add "+t.name+" to the NgModule to fix it."});throw h(i.join("\n"))}return r}function wr(t,e,n,r){var i=new Map;e.forEach(function(t){return i.set(t.type.reference,t)});var o=new Map,s=new Map,a=new Map,u=new Map,c=new Map,l=new Set;t.forEach(function(t){var e=t.filePath;l.add(e),r.isInjectable(t)&&c.set(e,(c.get(e)||[]).concat(t))}),e.forEach(function(t){var e=t.type.reference.filePath;l.add(e),s.set(e,(s.get(e)||[]).concat(t.type.reference)),t.declaredDirectives.forEach(function(e){var n=e.reference.filePath;l.add(n),a.set(n,(a.get(n)||[]).concat(e.reference)),o.set(e.reference,t)}),t.declaredPipes.forEach(function(e){var n=e.reference.filePath;l.add(n),u.set(n,(u.get(n)||[]).concat(e.reference)),o.set(e.reference,t)})});var p=[];return l.forEach(function(t){var e=a.get(t)||[],n=u.get(t)||[],r=s.get(t)||[],i=c.get(t)||[];p.push({srcUrl:t,directives:e,pipes:n,ngModules:r,injectables:i})}),{ngModuleByPipeOrDirective:o,files:p,ngModules:e,symbolsMissingModule:n}}function Er(t,e,n){var r=[];return e.filter(function(t){return n.isSourceFile(t)}).forEach(function(e){t.getSymbolsOf(e).forEach(function(e){var n=t.resolveSymbol(e),i=n.metadata;i&&"error"!=i.__symbolic&&r.push(n.symbol)})}),r}function Cr(t,e,n){var r=new Map,i=[],o=new Set,s=function(t){if(r.has(t)||!e.isSourceFile(t.filePath))return!1;var i=n.getNgModuleMetadata(t,!1);return i&&(r.set(i.type.reference,i),i.declaredDirectives.forEach(function(t){return o.add(t.reference)}),i.declaredPipes.forEach(function(t){return o.add(t.reference)}),i.transitiveModule.modules.forEach(function(t){return s(t.reference)})),!!i};t.forEach(function(t){s(t)||!n.isDirective(t)&&!n.isPipe(t)||i.push(t)});var a=i.filter(function(t){return!o.has(t)});return{ngModules:Array.from(r.values()),symbolsMissingModule:a}}function Sr(t){return"object"==typeof t&&t.name&&t.filePath}function xr(t){return t&&"ignore"==t.__symbolic}function Tr(t){switch(t.message){case"Reference to non-exported class":if(t.context&&t.context.className)return"Reference to a non-exported class "+t.context.className+". Consider exporting the class";break;case"Variable not initialized":return"Only initialized variables and constants can be referenced because the value of this variable is needed by the template compiler";case"Destructuring not supported":return"Referencing an exported destructured variable or constant is not supported by the template compiler. Consider simplifying this to avoid destructuring";case"Could not resolve type":if(t.context&&t.context.typeName)return"Could not resolve type "+t.context.typeName;break;case"Function call not supported":var e=t.context&&t.context.name?"Calling function '"+t.context.name+"', f":"F";return e+"unction calls are not supported. Consider replacing the function or lambda with a reference to an exported function";case"Reference to a local symbol":if(t.context&&t.context.name)return"Reference to a local (non-exported) symbol '"+t.context.name+"'. Consider exporting the symbol"}return t.message}function Pr(t){return"Error encountered resolving symbol values statically. "+Tr(t)}function Ar(t,e){if(!t)return{};var n={};return Object.keys(t).forEach(function(r){var i=e(t[r],r);xr(i)||(Lh.test(r)?Object.defineProperty(n,r,{enumerable:!1,configurable:!0,value:i}):n[r]=i)}),n}function Or(t){return null===t||"function"!=typeof t&&"object"!=typeof t}function Mr(t,e,n,r){var i=new Error(t);return i.fileName=e,i.line=n,i.column=r,i}function Rr(t){return t.startsWith("___")?t.substr(1):t}function kr(t,n){var r=n.translations||"",i=De(),o=new ui,s=new zh(t,o),a=new qh(t,o,s),u=new Fh(a);Nh.install(u);var c=new e.ɵConsole,l=new _u(new mu,r,n.i18nFormat,e.MissingTranslationStrategy.Warning,c),p=new Gi({defaultEncapsulation:e.ViewEncapsulation.Emulated,useJit:!1,enableLegacyTemplate:n.enableLegacyTemplate!==!1}),h=new jc({get:function(e){return t.loadResource(e)}},i,l,p),f=new Is(new Ps),d=new Ap,v=new xc(p,f,d,l,c,[]),m=new Kc(p,new qc(u),new Uc(u),new zc(u),s,d,h,c,o,u),y={getImportAs:function(t){return a.getImportAs(t)},fileNameToModuleName:function(e,n){return t.fileNameToModuleName(e,n)},getTypeArity:function(t){return a.getTypeArity(t)}},g=new Eh(p,d),_=new Ih(p,t,m,v,new uh(i),g,new np,new _p(y),s,n.locale,n.i18nFormat,n.genFilePreamble,a);return{compiler:_,reflector:u}}function Ir(t,e){var n=t.concat([new Vl(vn(e.map(function(t){return pn(t)})))]),r=new Wh(null,null,null,new Map),i=new Kh,o=i.visitAllStatements(n,r);return null!=o?o.value:null}function Nr(t,e,n,r,i){for(var o=r.createChildWihtLocalVars(),s=0;s<t.length;s++)o.vars.set(t[s],e[s]);var a=i.visitAllStatements(n,o);return a?a.value:null}function Dr(t,e,n){var r={};t.getters.forEach(function(i){r[i.name]={configurable:!1,get:function(){var r=new Wh(e,this,t.name,e.vars);return Nr([],[],i.body,r,n)}}}),t.methods.forEach(function(i){var o=i.params.map(function(t){return t.name});r[i.name]={writable:!1,configurable:!1,value:function(){for(var r=[],s=0;s<arguments.length;s++)r[s]=arguments[s];var a=new Wh(e,this,t.name,e.vars);return Nr(o,r,i.body,a,n)}}});var i=t.constructorMethod.params.map(function(t){return t.name}),o=function(){for(var r=this,o=[],s=0;s<arguments.length;s++)o[s]=arguments[s];var a=new Wh(e,this,t.name,e.vars);t.fields.forEach(function(t){r[t.name]=void 0}),Nr(i,o,t.constructorMethod.body,a,n)},s=t.parent?t.parent.visitExpression(n,e):Object;return o.prototype=Object.create(s.prototype,r),o}function Lr(t,e,n,r){return function(){for(var i=[],o=0;o<arguments.length;o++)i[o]=arguments[o];return Nr(t,i,e,n,r)}}function jr(t,n,r){var i=n.toSource()+"\n//# sourceURL="+t,o=[],s=[];for(var a in r)o.push(a),s.push(r[a]);if(e.isDevMode()){var u=(new(Function.bind.apply(Function,[void 0].concat(o.concat("return null;"))))).toString(),c=u.slice(0,u.indexOf("return null;")).split("\n").length-1;i+="\n"+n.toSourceMapGenerator(t,t,c).toJsComment()}return(new(Function.bind.apply(Function,[void 0].concat(o.concat(i))))).apply(void 0,s)}function Fr(t,e,n){var r=new Zh,i=mp.createRoot(n),o=new Vl(vn(n.map(function(t){return pn(t)})));return r.visitAllStatements(e.concat([o]),i),jr(t,i,r.getArgs())}function Vr(t){if(!t.isComponent)throw new Error("Could not compile '"+g(t.type)+"' because it is not a component.")}function Ur(){e.ɵreflector.reflectionCapabilities=new e.ɵReflectionCapabilities}function Br(t){return{useJit:Hr(t.map(function(t){return t.useJit})),defaultEncapsulation:Hr(t.map(function(t){return t.defaultEncapsulation})),providers:qr(t.map(function(t){return t.providers})),missingTranslation:Hr(t.map(function(t){return t.missingTranslation}))}}function Hr(t){for(var e=t.length-1;e>=0;e--)if(void 0!==t[e])return t[e];return void 0}function qr(t){var e=[];return t.forEach(function(t){return t&&e.push.apply(e,t)}),e}var zr=void 0||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},Wr=new e.Version("4.0.1"),Gr=function(){function t(t,e,n){this.value=t,this.ngContentIndex=e,this.sourceSpan=n}return t.prototype.visit=function(t,e){return t.visitText(this,e)},t}(),Kr=function(){function t(t,e,n){this.value=t,this.ngContentIndex=e,this.sourceSpan=n}return t.prototype.visit=function(t,e){return t.visitBoundText(this,e)},t}(),Qr=function(){function t(t,e,n){this.name=t,this.value=e,this.sourceSpan=n}return t.prototype.visit=function(t,e){return t.visitAttr(this,e)},t}(),Xr=function(){function t(t,e,n,r,i,o){this.name=t,this.type=e,this.securityContext=n,this.value=r,this.unit=i,this.sourceSpan=o}return t.prototype.visit=function(t,e){return t.visitElementProperty(this,e)},Object.defineProperty(t.prototype,"isAnimation",{get:function(){return this.type===si.Animation},enumerable:!0,configurable:!0}),t}(),$r=function(){function t(t,e,n,r,i){this.name=t,this.target=e,this.phase=n,this.handler=r,this.sourceSpan=i}return t.calcFullName=function(t,e,n){return e?e+":"+t:n?"@"+t+"."+n:t},t.prototype.visit=function(t,e){return t.visitEvent(this,e)},Object.defineProperty(t.prototype,"fullName",{get:function(){return t.calcFullName(this.name,this.target,this.phase)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isAnimation",{get:function(){return!!this.phase},enumerable:!0,configurable:!0}),t}(),Zr=function(){function t(t,e,n){this.name=t,this.value=e,this.sourceSpan=n}return t.prototype.visit=function(t,e){return t.visitReference(this,e)},t}(),Yr=function(){function t(t,e,n){this.name=t,this.value=e,this.sourceSpan=n}return t.prototype.visit=function(t,e){return t.visitVariable(this,e)},t}(),Jr=function(){function t(t,e,n,r,i,o,s,a,u,c,l,p,h){this.name=t,this.attrs=e,this.inputs=n,this.outputs=r,this.references=i,this.directives=o,this.providers=s,this.hasViewContainer=a,this.queryMatches=u,this.children=c,this.ngContentIndex=l,this.sourceSpan=p,this.endSourceSpan=h}return t.prototype.visit=function(t,e){return t.visitElement(this,e)},t}(),ti=function(){function t(t,e,n,r,i,o,s,a,u,c,l){this.attrs=t,this.outputs=e,this.references=n,this.variables=r,this.directives=i,this.providers=o,this.hasViewContainer=s,this.queryMatches=a,this.children=u,this.ngContentIndex=c,this.sourceSpan=l}return t.prototype.visit=function(t,e){return t.visitEmbeddedTemplate(this,e)},t}(),ei=function(){function t(t,e,n,r){this.directiveName=t,this.templateName=e,this.value=n,this.sourceSpan=r}return t.prototype.visit=function(t,e){return t.visitDirectiveProperty(this,e)},t}(),ni=function(){function t(t,e,n,r,i,o){this.directive=t,this.inputs=e,this.hostProperties=n,this.hostEvents=r,this.contentQueryStartId=i,this.sourceSpan=o}return t.prototype.visit=function(t,e){return t.visitDirective(this,e)},t}(),ri=function(){function t(t,e,n,r,i,o,s){this.token=t,this.multiProvider=e,this.eager=n,this.providers=r,this.providerType=i,this.lifecycleHooks=o,this.sourceSpan=s}return t.prototype.visit=function(){return null},t}(),ii={};ii.PublicService=0,ii.PrivateService=1,ii.Component=2,ii.Directive=3,ii.Builtin=4,ii[ii.PublicService]="PublicService",ii[ii.PrivateService]="PrivateService",ii[ii.Component]="Component",ii[ii.Directive]="Directive",ii[ii.Builtin]="Builtin";var oi=function(){function t(t,e,n){this.index=t,this.ngContentIndex=e,this.sourceSpan=n}return t.prototype.visit=function(t,e){return t.visitNgContent(this,e)},t}(),si={};si.Property=0,si.Attribute=1,si.Class=2,si.Style=3,si.Animation=4,si[si.Property]="Property",si[si.Attribute]="Attribute",si[si.Class]="Class",si[si.Style]="Style",si[si.Animation]="Animation";var ai=function(){function t(t,e,n){this.filePath=t,this.name=e,this.members=n}return t.prototype.assertNoMembers=function(){if(this.members.length)throw new Error("Illegal state: symbol without members expected, but got "+JSON.stringify(this)+".")},t}(),ui=function(){function t(){this.cache=new Map}return t.prototype.get=function(t,e,n){n=n||[];var r=n.length?"."+n.join("."):"",i='"'+t+'".'+e+r,o=this.cache.get(i);return o||(o=new ai(t,e,n),this.cache.set(i,o)),o},t}(),ci={};ci.RAW_TEXT=0,ci.ESCAPABLE_RAW_TEXT=1,ci.PARSABLE_DATA=2,ci[ci.RAW_TEXT]="RAW_TEXT",ci[ci.ESCAPABLE_RAW_TEXT]="ESCAPABLE_RAW_TEXT",ci[ci.PARSABLE_DATA]="PARSABLE_DATA";var li={Aacute:"Ã",aacute:"á",Acirc:"Â",acirc:"â",acute:"´",AElig:"Æ",aelig:"æ",Agrave:"À",agrave:"à ",alefsym:"ℵ",Alpha:"Α",alpha:"α",amp:"&",and:"∧",ang:"∠",apos:"'",Aring:"Ã…",aring:"Ã¥",asymp:"≈",Atilde:"Ã",atilde:"ã",Auml:"Ä",auml:"ä",bdquo:"„",Beta:"Î’",beta:"β",brvbar:"¦",bull:"•",cap:"∩",Ccedil:"Ç",ccedil:"ç",cedil:"¸",cent:"¢",Chi:"Χ",chi:"χ",circ:"ˆ",clubs:"♣",cong:"≅",copy:"©",crarr:"↵",cup:"∪",curren:"¤",dagger:"†",Dagger:"‡",darr:"↓",dArr:"⇓",deg:"°",Delta:"Δ",delta:"δ",diams:"♦",divide:"÷",Eacute:"É",eacute:"é",Ecirc:"Ê",ecirc:"ê",Egrave:"È",egrave:"è",empty:"∅", -emsp:" ",ensp:" ",Epsilon:"Ε",epsilon:"ε",equiv:"≡",Eta:"Η",eta:"η",ETH:"Ã",eth:"ð",Euml:"Ë",euml:"ë",euro:"€",exist:"∃",fnof:"Æ’",forall:"∀",frac12:"½",frac14:"¼",frac34:"¾",frasl:"â„",Gamma:"Γ",gamma:"γ",ge:"≥",gt:">",harr:"↔",hArr:"⇔",hearts:"♥",hellip:"…",Iacute:"Ã",iacute:"Ã",Icirc:"ÃŽ",icirc:"î",iexcl:"¡",Igrave:"ÃŒ",igrave:"ì",image:"â„‘",infin:"∞","int":"∫",Iota:"Ι",iota:"ι",iquest:"¿",isin:"∈",Iuml:"Ã",iuml:"ï",Kappa:"Κ",kappa:"κ",Lambda:"Λ",lambda:"λ",lang:"⟨",laquo:"«",larr:"â†",lArr:"â‡",lceil:"⌈",ldquo:"“",le:"≤",lfloor:"⌊",lowast:"∗",loz:"â—Š",lrm:"‎",lsaquo:"‹",lsquo:"‘",lt:"<",macr:"¯",mdash:"—",micro:"µ",middot:"·",minus:"−",Mu:"Îœ",mu:"μ",nabla:"∇",nbsp:" ",ndash:"–",ne:"≠",ni:"∋",not:"¬",notin:"∉",nsub:"⊄",Ntilde:"Ñ",ntilde:"ñ",Nu:"Î",nu:"ν",Oacute:"Ó",oacute:"ó",Ocirc:"Ô",ocirc:"ô",OElig:"Å’",oelig:"Å“",Ograve:"Ã’",ograve:"ò",oline:"‾",Omega:"Ω",omega:"ω",Omicron:"Ο",omicron:"ο",oplus:"⊕",or:"∨",ordf:"ª",ordm:"º",Oslash:"Ø",oslash:"ø",Otilde:"Õ",otilde:"õ",otimes:"⊗",Ouml:"Ö",ouml:"ö",para:"¶",permil:"‰",perp:"⊥",Phi:"Φ",phi:"φ",Pi:"Î ",pi:"Ï€",piv:"Ï–",plusmn:"±",pound:"£",prime:"′",Prime:"″",prod:"âˆ",prop:"âˆ",Psi:"Ψ",psi:"ψ",quot:'"',radic:"√",rang:"⟩",raquo:"»",rarr:"→",rArr:"⇒",rceil:"⌉",rdquo:"â€",real:"â„œ",reg:"®",rfloor:"⌋",Rho:"Ρ",rho:"Ï",rlm:"â€",rsaquo:"›",rsquo:"’",sbquo:"‚",Scaron:"Å ",scaron:"Å¡",sdot:"â‹…",sect:"§",shy:"Â",Sigma:"Σ",sigma:"σ",sigmaf:"Ï‚",sim:"∼",spades:"â™ ",sub:"⊂",sube:"⊆",sum:"∑",sup:"⊃",sup1:"¹",sup2:"²",sup3:"³",supe:"⊇",szlig:"ß",Tau:"Τ",tau:"Ï„",there4:"∴",Theta:"Θ",theta:"θ",thetasym:"Ï‘",thinsp:" ",THORN:"Þ",thorn:"þ",tilde:"Ëœ",times:"×",trade:"â„¢",Uacute:"Ú",uacute:"ú",uarr:"↑",uArr:"⇑",Ucirc:"Û",ucirc:"û",Ugrave:"Ù",ugrave:"ù",uml:"¨",upsih:"Ï’",Upsilon:"Î¥",upsilon:"Ï…",Uuml:"Ãœ",uuml:"ü",weierp:"℘",Xi:"Ξ",xi:"ξ",Yacute:"Ã",yacute:"ý",yen:"Â¥",yuml:"ÿ",Yuml:"Ÿ",Zeta:"Ζ",zeta:"ζ",zwj:"â€",zwnj:"‌"},pi=function(){function t(t){var e=void 0===t?{}:t,n=e.closedByChildren,r=e.requiredParents,i=e.implicitNamespacePrefix,o=e.contentType,s=void 0===o?ci.PARSABLE_DATA:o,a=e.closedByParent,u=void 0===a?!1:a,c=e.isVoid,l=void 0===c?!1:c,p=e.ignoreFirstLf,h=void 0===p?!1:p,f=this;this.closedByChildren={},this.closedByParent=!1,this.canSelfClose=!1,n&&n.length>0&&n.forEach(function(t){return f.closedByChildren[t]=!0}),this.isVoid=l,this.closedByParent=u||l,r&&r.length>0&&(this.requiredParents={},this.parentToAdd=r[0],r.forEach(function(t){return f.requiredParents[t]=!0})),this.implicitNamespacePrefix=i,this.contentType=s,this.ignoreFirstLf=h}return t.prototype.requireExtraParent=function(t){if(!this.requiredParents)return!1;if(!t)return!0;var e=t.toLowerCase(),n="template"===e||"ng-template"===t;return!n&&1!=this.requiredParents[e]},t.prototype.isClosedByChild=function(t){return this.isVoid||t.toLowerCase()in this.closedByChildren},t}(),hi={base:new pi({isVoid:!0}),meta:new pi({isVoid:!0}),area:new pi({isVoid:!0}),embed:new pi({isVoid:!0}),link:new pi({isVoid:!0}),img:new pi({isVoid:!0}),input:new pi({isVoid:!0}),param:new pi({isVoid:!0}),hr:new pi({isVoid:!0}),br:new pi({isVoid:!0}),source:new pi({isVoid:!0}),track:new pi({isVoid:!0}),wbr:new pi({isVoid:!0}),p:new pi({closedByChildren:["address","article","aside","blockquote","div","dl","fieldset","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","hr","main","nav","ol","p","pre","section","table","ul"],closedByParent:!0}),thead:new pi({closedByChildren:["tbody","tfoot"]}),tbody:new pi({closedByChildren:["tbody","tfoot"],closedByParent:!0}),tfoot:new pi({closedByChildren:["tbody"],closedByParent:!0}),tr:new pi({closedByChildren:["tr"],requiredParents:["tbody","tfoot","thead"],closedByParent:!0}),td:new pi({closedByChildren:["td","th"],closedByParent:!0}),th:new pi({closedByChildren:["td","th"],closedByParent:!0}),col:new pi({requiredParents:["colgroup"],isVoid:!0}),svg:new pi({implicitNamespacePrefix:"svg"}),math:new pi({implicitNamespacePrefix:"math"}),li:new pi({closedByChildren:["li"],closedByParent:!0}),dt:new pi({closedByChildren:["dt","dd"]}),dd:new pi({closedByChildren:["dt","dd"],closedByParent:!0}),rb:new pi({closedByChildren:["rb","rt","rtc","rp"],closedByParent:!0}),rt:new pi({closedByChildren:["rb","rt","rtc","rp"],closedByParent:!0}),rtc:new pi({closedByChildren:["rb","rtc","rp"],closedByParent:!0}),rp:new pi({closedByChildren:["rb","rt","rtc","rp"],closedByParent:!0}),optgroup:new pi({closedByChildren:["optgroup"],closedByParent:!0}),option:new pi({closedByChildren:["option","optgroup"],closedByParent:!0}),pre:new pi({ignoreFirstLf:!0}),listing:new pi({ignoreFirstLf:!0}),style:new pi({contentType:ci.RAW_TEXT}),script:new pi({contentType:ci.RAW_TEXT}),title:new pi({contentType:ci.ESCAPABLE_RAW_TEXT}),textarea:new pi({contentType:ci.ESCAPABLE_RAW_TEXT,ignoreFirstLf:!0})},fi=new pi,di=new RegExp("(\\:not\\()|([-\\w]+)|(?:\\.([-\\w]+))|(?:\\[([-.\\w*]+)(?:=([\"']?)([^\\]\"']*)\\5)?\\])|(\\))|(\\s*,\\s*)","g"),vi=function(){function t(){this.element=null,this.classNames=[],this.attrs=[],this.notSelectors=[]}return t.parse=function(e){var n,r=[],i=function(t,e){e.notSelectors.length>0&&!e.element&&0==e.classNames.length&&0==e.attrs.length&&(e.element="*"),t.push(e)},o=new t,s=o,a=!1;for(di.lastIndex=0;n=di.exec(e);){if(n[1]){if(a)throw new Error("Nesting :not is not allowed in a selector");a=!0,s=new t,o.notSelectors.push(s)}if(n[2]&&s.setElement(n[2]),n[3]&&s.addClassName(n[3]),n[4]&&s.addAttribute(n[4],n[6]),n[7]&&(a=!1,s=o),n[8]){if(a)throw new Error("Multiple selectors in :not are not supported");i(r,o),o=s=new t}}return i(r,o),r},t.prototype.isElementSelector=function(){return this.hasElementSelector()&&0==this.classNames.length&&0==this.attrs.length&&0===this.notSelectors.length},t.prototype.hasElementSelector=function(){return!!this.element},t.prototype.setElement=function(t){void 0===t&&(t=null),this.element=t},t.prototype.getMatchingElementTemplate=function(){for(var t=this.element||"div",e=this.classNames.length>0?' class="'+this.classNames.join(" ")+'"':"",n="",r=0;r<this.attrs.length;r+=2){var i=this.attrs[r],o=""!==this.attrs[r+1]?'="'+this.attrs[r+1]+'"':"";n+=" "+i+o}return s(t).isVoid?"<"+t+e+n+"/>":"<"+t+e+n+"></"+t+">"},t.prototype.addAttribute=function(t,e){void 0===e&&(e=""),this.attrs.push(t,e&&e.toLowerCase()||"")},t.prototype.addClassName=function(t){this.classNames.push(t.toLowerCase())},t.prototype.toString=function(){var t=this.element||"";if(this.classNames&&this.classNames.forEach(function(e){return t+="."+e}),this.attrs)for(var e=0;e<this.attrs.length;e+=2){var n=this.attrs[e],r=this.attrs[e+1];t+="["+n+(r?"="+r:"")+"]"}return this.notSelectors.forEach(function(e){return t+=":not("+e+")"}),t},t}(),mi=function(){function t(){this._elementMap=new Map,this._elementPartialMap=new Map,this._classMap=new Map,this._classPartialMap=new Map,this._attrValueMap=new Map,this._attrValuePartialMap=new Map,this._listContexts=[]}return t.createNotMatcher=function(e){var n=new t;return n.addSelectables(e,null),n},t.prototype.addSelectables=function(t,e){var n=null;t.length>1&&(n=new yi(t),this._listContexts.push(n));for(var r=0;r<t.length;r++)this._addSelectable(t[r],e,n)},t.prototype._addSelectable=function(t,e,n){var r=this,i=t.element,o=t.classNames,s=t.attrs,a=new gi(t,e,n);if(i){var u=0===s.length&&0===o.length;u?this._addTerminal(r._elementMap,i,a):r=this._addPartial(r._elementPartialMap,i)}if(o)for(var c=0;c<o.length;c++){var u=0===s.length&&c===o.length-1,l=o[c];u?this._addTerminal(r._classMap,l,a):r=this._addPartial(r._classPartialMap,l)}if(s)for(var c=0;c<s.length;c+=2){var u=c===s.length-2,p=s[c],h=s[c+1];if(u){var f=r._attrValueMap,d=f.get(p);d||(d=new Map,f.set(p,d)),this._addTerminal(d,h,a)}else{var v=r._attrValuePartialMap,m=v.get(p);m||(m=new Map,v.set(p,m)),r=this._addPartial(m,h)}}},t.prototype._addTerminal=function(t,e,n){var r=t.get(e);r||(r=[],t.set(e,r)),r.push(n)},t.prototype._addPartial=function(e,n){var r=e.get(n);return r||(r=new t,e.set(n,r)),r},t.prototype.match=function(t,e){for(var n=!1,r=t.element,i=t.classNames,o=t.attrs,s=0;s<this._listContexts.length;s++)this._listContexts[s].alreadyMatched=!1;if(n=this._matchTerminal(this._elementMap,r,t,e)||n,n=this._matchPartial(this._elementPartialMap,r,t,e)||n,i)for(var s=0;s<i.length;s++){var a=i[s];n=this._matchTerminal(this._classMap,a,t,e)||n,n=this._matchPartial(this._classPartialMap,a,t,e)||n}if(o)for(var s=0;s<o.length;s+=2){var u=o[s],c=o[s+1],l=this._attrValueMap.get(u);c&&(n=this._matchTerminal(l,"",t,e)||n),n=this._matchTerminal(l,c,t,e)||n;var p=this._attrValuePartialMap.get(u);c&&(n=this._matchPartial(p,"",t,e)||n),n=this._matchPartial(p,c,t,e)||n}return n},t.prototype._matchTerminal=function(t,e,n,r){if(!t||"string"!=typeof e)return!1;var i=t.get(e)||[],o=t.get("*");if(o&&(i=i.concat(o)),0===i.length)return!1;for(var s,a=!1,u=0;u<i.length;u++)s=i[u],a=s.finalize(n,r)||a;return a},t.prototype._matchPartial=function(t,e,n,r){if(!t||"string"!=typeof e)return!1;var i=t.get(e);return i?i.match(n,r):!1},t}(),yi=function(){function t(t){this.selectors=t,this.alreadyMatched=!1}return t}(),gi=function(){function t(t,e,n){this.selector=t,this.cbContext=e,this.listContext=n,this.notSelectors=t.notSelectors}return t.prototype.finalize=function(t,e){var n=!0;if(this.notSelectors.length>0&&(!this.listContext||!this.listContext.alreadyMatched)){var r=mi.createNotMatcher(this.notSelectors);n=!r.match(t,null)}return!n||!e||this.listContext&&this.listContext.alreadyMatched||(this.listContext&&(this.listContext.alreadyMatched=!0),e(this.selector,this.cbContext)),n},t}(),_i="",bi=/-+([a-z0-9])/g,wi=function(){function t(){}return t.prototype.visitArray=function(t,e){var n=this;return t.map(function(t){return p(t,n,e)})},t.prototype.visitStringMap=function(t,e){var n=this,r={};return Object.keys(t).forEach(function(i){r[i]=p(t[i],n,e)}),r},t.prototype.visitPrimitive=function(t){return t},t.prototype.visitOther=function(t){return t},t}(),Ei=function(){function t(t,e){void 0===e&&(e=null),this.syncResult=t,this.asyncResult=e,e||(this.asyncResult=Promise.resolve(t))}return t}(),Ci="ngSyntaxError",Si=Object.getPrototypeOf({}),xi=/^(?:(?:\[([^\]]+)\])|(?:\(([^\)]+)\)))|(\@[-\w]+)$/,Ti=function(){function t(t,e){void 0===t&&(t=null),void 0===e&&(e=null),this.name=t,this.definitions=e}return t}(),Pi=function(){function t(){}return t}(),Ai=function(t){function e(e,n){var r=t.call(this)||this;return r.stateNameExpr=e,r.styles=n,r}return zr(e,t),e}(Pi),Oi=function(t){function e(e,n){var r=t.call(this)||this;return r.stateChangeExpr=e,r.steps=n,r}return zr(e,t),e}(Pi),Mi=function(){function t(){}return t}(),Ri=function(t){function e(e){void 0===e&&(e=[]);var n=t.call(this)||this;return n.steps=e,n}return zr(e,t),e}(Mi),ki=function(t){function e(e,n){void 0===n&&(n=null);var r=t.call(this)||this;return r.offset=e,r.styles=n,r}return zr(e,t),e}(Mi),Ii=function(t){function e(e,n){void 0===e&&(e=0),void 0===n&&(n=null);var r=t.call(this)||this;return r.timings=e,r.styles=n,r}return zr(e,t),e}(Mi),Ni=function(t){function e(e){void 0===e&&(e=null);var n=t.call(this)||this;return n.steps=e,n}return zr(e,t),e}(Mi),Di=function(t){function e(e){return void 0===e&&(e=null),t.call(this,e)||this}return zr(e,t),e}(Ni),Li=function(t){function e(e){return void 0===e&&(e=null),t.call(this,e)||this}return zr(e,t),e}(Ni),ji=0,Fi={};Fi.Pipe=0,Fi.Directive=1,Fi.NgModule=2,Fi.Injectable=3,Fi[Fi.Pipe]="Pipe",Fi[Fi.Directive]="Directive",Fi[Fi.NgModule]="NgModule",Fi[Fi.Injectable]="Injectable";var Vi=function(){function t(t){var e=void 0===t?{}:t,n=e.moduleUrl,r=e.styles,i=e.styleUrls;this.moduleUrl=n,this.styles=A(r),this.styleUrls=A(i)}return t}(),Ui=function(){function t(t){var e=void 0===t?{}:t,n=e.encapsulation,r=e.template,i=e.templateUrl,o=e.styles,s=e.styleUrls,a=e.externalStylesheets,u=e.animations,c=e.ngContentSelectors,l=e.interpolation,p=e.isInline;if(this.encapsulation=n,this.template=r,this.templateUrl=i,this.styles=A(o),this.styleUrls=A(s),this.externalStylesheets=A(a),this.animations=u?O(u):[],this.ngContentSelectors=c||[],l&&2!=l.length)throw new Error("'interpolation' should have a start and an end symbol.");this.interpolation=l,this.isInline=p}return t.prototype.toSummary=function(){return{animations:this.animations.map(function(t){return t.name}),ngContentSelectors:this.ngContentSelectors,encapsulation:this.encapsulation}},t}(),Bi=function(){function t(t){var e=void 0===t?{}:t,n=e.isHost,r=e.type,i=e.isComponent,o=e.selector,s=e.exportAs,a=e.changeDetection,u=e.inputs,c=e.outputs,l=e.hostListeners,p=e.hostProperties,h=e.hostAttributes,f=e.providers,d=e.viewProviders,v=e.queries,m=e.viewQueries,y=e.entryComponents,g=e.template,_=e.componentViewType,b=e.rendererType,w=e.componentFactory;this.isHost=!!n,this.type=r,this.isComponent=i,this.selector=o,this.exportAs=s,this.changeDetection=a,this.inputs=u,this.outputs=c,this.hostListeners=l,this.hostProperties=p,this.hostAttributes=h,this.providers=A(f),this.viewProviders=A(d),this.queries=A(v),this.viewQueries=A(m),this.entryComponents=A(y),this.template=g,this.componentViewType=_,this.rendererType=b,this.componentFactory=w}return t.create=function(e){var n=void 0===e?{}:e,r=n.isHost,i=n.type,o=n.isComponent,s=n.selector,a=n.exportAs,c=n.changeDetection,l=n.inputs,p=n.outputs,h=n.host,f=n.providers,d=n.viewProviders,v=n.queries,m=n.viewQueries,y=n.entryComponents,g=n.template,_=n.componentViewType,b=n.rendererType,w=n.componentFactory,E={},C={},S={};null!=h&&Object.keys(h).forEach(function(t){var e=h[t],n=t.match(xi);null===n?S[t]=e:null!=n[1]?C[n[1]]=e:null!=n[2]&&(E[n[2]]=e)});var x={};null!=l&&l.forEach(function(t){var e=u(t,[t,t]);x[e[0]]=e[1]});var T={};return null!=p&&p.forEach(function(t){var e=u(t,[t,t]);T[e[0]]=e[1]}),new t({isHost:r,type:i,isComponent:!!o,selector:s,exportAs:a,changeDetection:c,inputs:x,outputs:T,hostListeners:E,hostProperties:C,hostAttributes:S,providers:f,viewProviders:d,queries:v,viewQueries:m,entryComponents:y,template:g,componentViewType:_,rendererType:b,componentFactory:w})},t.prototype.toSummary=function(){return{summaryKind:Fi.Directive,type:this.type,isComponent:this.isComponent,selector:this.selector,exportAs:this.exportAs,inputs:this.inputs,outputs:this.outputs,hostListeners:this.hostListeners,hostProperties:this.hostProperties,hostAttributes:this.hostAttributes,providers:this.providers,viewProviders:this.viewProviders,queries:this.queries,viewQueries:this.viewQueries,entryComponents:this.entryComponents,changeDetection:this.changeDetection,template:this.template&&this.template.toSummary(),componentViewType:this.componentViewType,rendererType:this.rendererType,componentFactory:this.componentFactory}},t}(),Hi=function(){function t(t){var e=void 0===t?{}:t,n=e.type,r=e.name,i=e.pure;this.type=n,this.name=r,this.pure=!!i}return t.prototype.toSummary=function(){return{summaryKind:Fi.Pipe,type:this.type,name:this.name,pure:this.pure}},t}(),qi=function(){function t(t){var e=void 0===t?{}:t,n=e.type,r=e.providers,i=e.declaredDirectives,o=e.exportedDirectives,s=e.declaredPipes,a=e.exportedPipes,u=e.entryComponents,c=e.bootstrapComponents,l=e.importedModules,p=e.exportedModules,h=e.schemas,f=e.transitiveModule,d=e.id;this.type=n,this.declaredDirectives=A(i),this.exportedDirectives=A(o),this.declaredPipes=A(s),this.exportedPipes=A(a),this.providers=A(r),this.entryComponents=A(u),this.bootstrapComponents=A(c),this.importedModules=A(l),this.exportedModules=A(p),this.schemas=A(h),this.id=d,this.transitiveModule=f}return t.prototype.toSummary=function(){return{summaryKind:Fi.NgModule,type:this.type,entryComponents:this.transitiveModule.entryComponents,providers:this.transitiveModule.providers,modules:this.transitiveModule.modules,exportedDirectives:this.transitiveModule.exportedDirectives,exportedPipes:this.transitiveModule.exportedPipes}},t}(),zi=function(){function t(){this.directivesSet=new Set,this.directives=[],this.exportedDirectivesSet=new Set,this.exportedDirectives=[],this.pipesSet=new Set,this.pipes=[],this.exportedPipesSet=new Set,this.exportedPipes=[],this.modulesSet=new Set,this.modules=[],this.entryComponentsSet=new Set,this.entryComponents=[],this.providers=[]}return t.prototype.addProvider=function(t,e){this.providers.push({provider:t,module:e})},t.prototype.addDirective=function(t){this.directivesSet.has(t.reference)||(this.directivesSet.add(t.reference),this.directives.push(t))},t.prototype.addExportedDirective=function(t){this.exportedDirectivesSet.has(t.reference)||(this.exportedDirectivesSet.add(t.reference),this.exportedDirectives.push(t))},t.prototype.addPipe=function(t){this.pipesSet.has(t.reference)||(this.pipesSet.add(t.reference),this.pipes.push(t))},t.prototype.addExportedPipe=function(t){this.exportedPipesSet.has(t.reference)||(this.exportedPipesSet.add(t.reference),this.exportedPipes.push(t))},t.prototype.addModule=function(t){this.modulesSet.has(t.reference)||(this.modulesSet.add(t.reference),this.modules.push(t))},t.prototype.addEntryComponent=function(t){this.entryComponentsSet.has(t.componentType)||(this.entryComponentsSet.add(t.componentType),this.entryComponents.push(t))},t}(),Wi=function(){function t(t,e){var n=e.useClass,r=e.useValue,i=e.useExisting,o=e.useFactory,s=e.deps,a=e.multi;this.token=t,this.useClass=n,this.useValue=r,this.useExisting=i,this.useFactory=o,this.dependencies=s,this.multi=!!a}return t}(),Gi=function(){function t(t){var n=void 0===t?{}:t,r=n.defaultEncapsulation,i=void 0===r?e.ViewEncapsulation.Emulated:r,o=n.useJit,s=void 0===o?!0:o,a=n.missingTranslation,u=n.enableLegacyTemplate;this.defaultEncapsulation=i,this.useJit=s,this.missingTranslation=a,this.enableLegacyTemplate=u!==!1}return t}(),Ki=function(){function t(t,e,n,r){this.input=e,this.errLocation=n,this.ctxLocation=r,this.message="Parser Error: "+t+" "+n+" ["+e+"] in "+r}return t}(),Qi=function(){function t(t,e){this.start=t,this.end=e}return t}(),Xi=function(){function t(t){this.span=t}return t.prototype.visit=function(t,e){return void 0===e&&(e=null),null},t.prototype.toString=function(){return"AST"},t}(),$i=function(t){function e(e,n,r,i){var o=t.call(this,e)||this;return o.prefix=n,o.uninterpretedExpression=r,o.location=i,o}return zr(e,t),e.prototype.visit=function(t,e){return void 0===e&&(e=null),t.visitQuote(this,e)},e.prototype.toString=function(){return"Quote"},e}(Xi),Zi=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return zr(e,t),e.prototype.visit=function(t,e){void 0===e&&(e=null)},e}(Xi),Yi=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return zr(e,t),e.prototype.visit=function(t,e){return void 0===e&&(e=null),t.visitImplicitReceiver(this,e)},e}(Xi),Ji=function(t){function e(e,n){var r=t.call(this,e)||this;return r.expressions=n,r}return zr(e,t),e.prototype.visit=function(t,e){return void 0===e&&(e=null),t.visitChain(this,e)},e}(Xi),to=function(t){function e(e,n,r,i){var o=t.call(this,e)||this;return o.condition=n,o.trueExp=r,o.falseExp=i,o}return zr(e,t),e.prototype.visit=function(t,e){return void 0===e&&(e=null),t.visitConditional(this,e)},e}(Xi),eo=function(t){function e(e,n,r){var i=t.call(this,e)||this;return i.receiver=n,i.name=r,i}return zr(e,t),e.prototype.visit=function(t,e){return void 0===e&&(e=null),t.visitPropertyRead(this,e)},e}(Xi),no=function(t){function e(e,n,r,i){var o=t.call(this,e)||this;return o.receiver=n,o.name=r,o.value=i,o}return zr(e,t),e.prototype.visit=function(t,e){return void 0===e&&(e=null),t.visitPropertyWrite(this,e)},e}(Xi),ro=function(t){function e(e,n,r){var i=t.call(this,e)||this;return i.receiver=n,i.name=r,i}return zr(e,t),e.prototype.visit=function(t,e){return void 0===e&&(e=null),t.visitSafePropertyRead(this,e)},e}(Xi),io=function(t){function e(e,n,r){var i=t.call(this,e)||this;return i.obj=n,i.key=r,i}return zr(e,t),e.prototype.visit=function(t,e){return void 0===e&&(e=null),t.visitKeyedRead(this,e)},e}(Xi),oo=function(t){function e(e,n,r,i){var o=t.call(this,e)||this;return o.obj=n,o.key=r,o.value=i,o}return zr(e,t),e.prototype.visit=function(t,e){return void 0===e&&(e=null),t.visitKeyedWrite(this,e)},e}(Xi),so=function(t){function e(e,n,r,i){var o=t.call(this,e)||this;return o.exp=n,o.name=r,o.args=i,o}return zr(e,t),e.prototype.visit=function(t,e){return void 0===e&&(e=null),t.visitPipe(this,e)},e}(Xi),ao=function(t){function e(e,n){var r=t.call(this,e)||this;return r.value=n,r}return zr(e,t),e.prototype.visit=function(t,e){return void 0===e&&(e=null),t.visitLiteralPrimitive(this,e)},e}(Xi),uo=function(t){function e(e,n){var r=t.call(this,e)||this;return r.expressions=n,r}return zr(e,t),e.prototype.visit=function(t,e){return void 0===e&&(e=null),t.visitLiteralArray(this,e)},e}(Xi),co=function(t){function e(e,n,r){var i=t.call(this,e)||this;return i.keys=n,i.values=r,i}return zr(e,t),e.prototype.visit=function(t,e){return void 0===e&&(e=null),t.visitLiteralMap(this,e)},e}(Xi),lo=function(t){function e(e,n,r){var i=t.call(this,e)||this;return i.strings=n,i.expressions=r,i}return zr(e,t),e.prototype.visit=function(t,e){return void 0===e&&(e=null),t.visitInterpolation(this,e)},e}(Xi),po=function(t){function e(e,n,r,i){var o=t.call(this,e)||this;return o.operation=n,o.left=r,o.right=i,o}return zr(e,t),e.prototype.visit=function(t,e){return void 0===e&&(e=null),t.visitBinary(this,e)},e}(Xi),ho=function(t){function e(e,n){var r=t.call(this,e)||this;return r.expression=n,r}return zr(e,t),e.prototype.visit=function(t,e){return void 0===e&&(e=null),t.visitPrefixNot(this,e)},e}(Xi),fo=function(t){function e(e,n,r,i){var o=t.call(this,e)||this;return o.receiver=n,o.name=r,o.args=i,o}return zr(e,t),e.prototype.visit=function(t,e){return void 0===e&&(e=null),t.visitMethodCall(this,e)},e}(Xi),vo=function(t){function e(e,n,r,i){var o=t.call(this,e)||this;return o.receiver=n,o.name=r,o.args=i,o}return zr(e,t),e.prototype.visit=function(t,e){return void 0===e&&(e=null),t.visitSafeMethodCall(this,e)},e}(Xi),mo=function(t){function e(e,n,r){var i=t.call(this,e)||this;return i.target=n,i.args=r,i}return zr(e,t),e.prototype.visit=function(t,e){return void 0===e&&(e=null),t.visitFunctionCall(this,e)},e}(Xi),yo=function(t){function e(e,n,r,i){var o=t.call(this,new Qi(0,null==n?0:n.length))||this;return o.ast=e,o.source=n,o.location=r,o.errors=i,o}return zr(e,t),e.prototype.visit=function(t,e){return void 0===e&&(e=null),this.ast.visit(t,e)},e.prototype.toString=function(){return this.source+" in "+this.location},e}(Xi),go=function(){function t(t,e,n,r,i){this.span=t,this.key=e,this.keyIsVar=n,this.name=r,this.expression=i}return t}(),_o=function(){function t(){}return t.prototype.visitBinary=function(t){return t.left.visit(this),t.right.visit(this),null},t.prototype.visitChain=function(t,e){return this.visitAll(t.expressions,e)},t.prototype.visitConditional=function(t){return t.condition.visit(this),t.trueExp.visit(this),t.falseExp.visit(this),null},t.prototype.visitPipe=function(t,e){return t.exp.visit(this),this.visitAll(t.args,e),null},t.prototype.visitFunctionCall=function(t,e){return t.target.visit(this),this.visitAll(t.args,e),null},t.prototype.visitImplicitReceiver=function(){return null},t.prototype.visitInterpolation=function(t,e){return this.visitAll(t.expressions,e)},t.prototype.visitKeyedRead=function(t){return t.obj.visit(this),t.key.visit(this),null},t.prototype.visitKeyedWrite=function(t){return t.obj.visit(this),t.key.visit(this),t.value.visit(this),null},t.prototype.visitLiteralArray=function(t,e){return this.visitAll(t.expressions,e)},t.prototype.visitLiteralMap=function(t,e){return this.visitAll(t.values,e)},t.prototype.visitLiteralPrimitive=function(){return null},t.prototype.visitMethodCall=function(t,e){return t.receiver.visit(this),this.visitAll(t.args,e)},t.prototype.visitPrefixNot=function(t){return t.expression.visit(this),null},t.prototype.visitPropertyRead=function(t){return t.receiver.visit(this),null},t.prototype.visitPropertyWrite=function(t){return t.receiver.visit(this),t.value.visit(this),null},t.prototype.visitSafePropertyRead=function(t){return t.receiver.visit(this),null},t.prototype.visitSafeMethodCall=function(t,e){return t.receiver.visit(this),this.visitAll(t.args,e)},t.prototype.visitAll=function(t,e){var n=this;return t.forEach(function(t){return t.visit(n,e)}),null},t.prototype.visitQuote=function(){return null},t}(),bo=function(){function t(){}return t.prototype.visitImplicitReceiver=function(t){return t},t.prototype.visitInterpolation=function(t){return new lo(t.span,t.strings,this.visitAll(t.expressions))},t.prototype.visitLiteralPrimitive=function(t){return new ao(t.span,t.value)},t.prototype.visitPropertyRead=function(t){return new eo(t.span,t.receiver.visit(this),t.name)},t.prototype.visitPropertyWrite=function(t){return new no(t.span,t.receiver.visit(this),t.name,t.value.visit(this))},t.prototype.visitSafePropertyRead=function(t){return new ro(t.span,t.receiver.visit(this),t.name)},t.prototype.visitMethodCall=function(t){return new fo(t.span,t.receiver.visit(this),t.name,this.visitAll(t.args))},t.prototype.visitSafeMethodCall=function(t){return new vo(t.span,t.receiver.visit(this),t.name,this.visitAll(t.args))},t.prototype.visitFunctionCall=function(t){return new mo(t.span,t.target.visit(this),this.visitAll(t.args))},t.prototype.visitLiteralArray=function(t){return new uo(t.span,this.visitAll(t.expressions))},t.prototype.visitLiteralMap=function(t){return new co(t.span,t.keys,this.visitAll(t.values))},t.prototype.visitBinary=function(t){return new po(t.span,t.operation,t.left.visit(this),t.right.visit(this))},t.prototype.visitPrefixNot=function(t){return new ho(t.span,t.expression.visit(this))},t.prototype.visitConditional=function(t){return new to(t.span,t.condition.visit(this),t.trueExp.visit(this),t.falseExp.visit(this))},t.prototype.visitPipe=function(t){return new so(t.span,t.exp.visit(this),t.name,this.visitAll(t.args))},t.prototype.visitKeyedRead=function(t){return new io(t.span,t.obj.visit(this),t.key.visit(this))},t.prototype.visitKeyedWrite=function(t){return new oo(t.span,t.obj.visit(this),t.key.visit(this),t.value.visit(this))},t.prototype.visitAll=function(t){for(var e=new Array(t.length),n=0;n<t.length;++n)e[n]=t[n].visit(this);return e},t.prototype.visitChain=function(t){return new Ji(t.span,this.visitAll(t.expressions))},t.prototype.visitQuote=function(t){return new $i(t.span,t.prefix,t.uninterpretedExpression,t.location)},t}(),wo=0,Eo=9,Co=10,So=11,xo=12,To=13,Po=32,Ao=33,Oo=34,Mo=35,Ro=36,ko=37,Io=38,No=39,Do=40,Lo=41,jo=42,Fo=43,Vo=44,Uo=45,Bo=46,Ho=47,qo=58,zo=59,Wo=60,Go=61,Ko=62,Qo=63,Xo=48,$o=57,Zo=65,Yo=69,Jo=70,ts=88,es=90,ns=91,rs=92,is=93,os=94,ss=95,as=97,us=101,cs=102,ls=110,ps=114,hs=116,fs=117,ds=118,vs=120,ms=122,ys=123,gs=124,_s=125,bs=160,ws=96,Es=[/^\s*$/,/[<>]/,/^[{}]$/,/&(#|[a-z])/i,/^\/\//],Cs=function(){function t(t,e){this.start=t,this.end=e}return t.fromArray=function(e){return e?(B("interpolation",e),new t(e[0],e[1])):Ss},t}(),Ss=new Cs("{{","}}"),xs={};xs.Character=0,xs.Identifier=1,xs.Keyword=2,xs.String=3,xs.Operator=4,xs.Number=5,xs.Error=6,xs[xs.Character]="Character",xs[xs.Identifier]="Identifier",xs[xs.Keyword]="Keyword",xs[xs.String]="String",xs[xs.Operator]="Operator",xs[xs.Number]="Number",xs[xs.Error]="Error";var Ts=["var","let","as","null","undefined","true","false","if","else","this"],Ps=function(){function t(){}return t.prototype.tokenize=function(t){for(var e=new Ms(t),n=[],r=e.scanToken();null!=r;)n.push(r),r=e.scanToken();return n},t}();Ps.decorators=[{type:V}],Ps.ctorParameters=function(){return[]};var As=function(){function t(t,e,n,r){this.index=t,this.type=e,this.numValue=n,this.strValue=r}return t.prototype.isCharacter=function(t){return this.type==xs.Character&&this.numValue==t},t.prototype.isNumber=function(){return this.type==xs.Number},t.prototype.isString=function(){return this.type==xs.String},t.prototype.isOperator=function(t){return this.type==xs.Operator&&this.strValue==t},t.prototype.isIdentifier=function(){return this.type==xs.Identifier},t.prototype.isKeyword=function(){return this.type==xs.Keyword},t.prototype.isKeywordLet=function(){return this.type==xs.Keyword&&"let"==this.strValue},t.prototype.isKeywordAs=function(){return this.type==xs.Keyword&&"as"==this.strValue},t.prototype.isKeywordNull=function(){return this.type==xs.Keyword&&"null"==this.strValue},t.prototype.isKeywordUndefined=function(){return this.type==xs.Keyword&&"undefined"==this.strValue},t.prototype.isKeywordTrue=function(){return this.type==xs.Keyword&&"true"==this.strValue},t.prototype.isKeywordFalse=function(){return this.type==xs.Keyword&&"false"==this.strValue},t.prototype.isKeywordThis=function(){return this.type==xs.Keyword&&"this"==this.strValue},t.prototype.isError=function(){return this.type==xs.Error},t.prototype.toNumber=function(){return this.type==xs.Number?this.numValue:-1},t.prototype.toString=function(){switch(this.type){case xs.Character:case xs.Identifier:case xs.Keyword:case xs.Operator:case xs.String:case xs.Error:return this.strValue;case xs.Number:return this.numValue.toString();default:return null}},t}(),Os=new As(-1,xs.Character,0,""),Ms=function(){function t(t){this.input=t,this.peek=0,this.index=-1,this.length=t.length,this.advance()}return t.prototype.advance=function(){this.peek=++this.index>=this.length?wo:this.input.charCodeAt(this.index)},t.prototype.scanToken=function(){for(var t=this.input,e=this.length,n=this.peek,r=this.index;Po>=n;){if(++r>=e){n=wo;break}n=t.charCodeAt(r)}if(this.peek=n,this.index=r,r>=e)return null;if(X(n))return this.scanIdentifier();if(L(n))return this.scanNumber(r);var i=r;switch(n){case Bo:return this.advance(),L(this.peek)?this.scanNumber(i):H(i,Bo);case Do:case Lo:case ys:case _s:case ns:case is:case Vo:case qo:case zo:return this.scanCharacter(i,n);case No:case Oo:return this.scanString();case Mo:case Fo:case Uo:case jo:case Ho:case ko:case os:return this.scanOperator(i,String.fromCharCode(n));case Qo:return this.scanComplexOperator(i,"?",Bo,".");case Wo:case Ko:return this.scanComplexOperator(i,String.fromCharCode(n),Go,"=");case Ao:case Go:return this.scanComplexOperator(i,String.fromCharCode(n),Go,"=",Go,"=");case Io:return this.scanComplexOperator(i,"&",Io,"&");case gs:return this.scanComplexOperator(i,"|",gs,"|");case bs:for(;D(this.peek);)this.advance();return this.scanToken()}return this.advance(),this.error("Unexpected character ["+String.fromCharCode(n)+"]",0)},t.prototype.scanCharacter=function(t,e){return this.advance(),H(t,e)},t.prototype.scanOperator=function(t,e){return this.advance(),W(t,e)},t.prototype.scanComplexOperator=function(t,e,n,r,i,o){this.advance();var s=e;return this.peek==n&&(this.advance(),s+=r),null!=i&&this.peek==i&&(this.advance(),s+=o),W(t,s)},t.prototype.scanIdentifier=function(){var t=this.index;for(this.advance();Z(this.peek);)this.advance();var e=this.input.substring(t,this.index);return Ts.indexOf(e)>-1?z(t,e):q(t,e)},t.prototype.scanNumber=function(t){var e=this.index===t;for(this.advance();;){if(L(this.peek));else if(this.peek==Bo)e=!1;else{if(!Y(this.peek))break;if(this.advance(),J(this.peek)&&this.advance(),!L(this.peek))return this.error("Invalid exponent",-1);e=!1}this.advance()}var n=this.input.substring(t,this.index),r=e?nt(n):parseFloat(n);return K(t,r)},t.prototype.scanString=function(){var t=this.index,e=this.peek;this.advance();for(var n="",r=this.index,i=this.input;this.peek!=e;)if(this.peek==rs){n+=i.substring(r,this.index),this.advance();var o=void 0;if(this.peek=this.peek,this.peek==fs){var s=i.substring(this.index+1,this.index+5);if(!/^[0-9a-f]+$/i.test(s))return this.error("Invalid unicode escape [\\u"+s+"]",0);o=parseInt(s,16);for(var a=0;5>a;a++)this.advance()}else o=et(this.peek),this.advance();n+=String.fromCharCode(o),r=this.index}else{if(this.peek==wo)return this.error("Unterminated quote",0);this.advance()}var u=i.substring(r,this.index);return this.advance(),G(t,n+u)},t.prototype.error=function(t,e){var n=this.index+e;return Q(n,"Lexer Error: "+t+" at column "+n+" in expression ["+this.input+"]")},t}(),Rs=function(){function t(t,e,n){this.strings=t,this.expressions=e, -this.offsets=n}return t}(),ks=function(){function t(t,e,n){this.templateBindings=t,this.warnings=e,this.errors=n}return t}(),Is=function(){function t(t){this._lexer=t,this.errors=[]}return t.prototype.parseAction=function(t,e,n){void 0===n&&(n=Ss),this._checkNoInterpolation(t,e,n);var r=this._stripComments(t),i=this._lexer.tokenize(this._stripComments(t)),o=new Ns(t,e,i,r.length,!0,this.errors,t.length-r.length).parseChain();return new yo(o,t,e,this.errors)},t.prototype.parseBinding=function(t,e,n){void 0===n&&(n=Ss);var r=this._parseBindingAst(t,e,n);return new yo(r,t,e,this.errors)},t.prototype.parseSimpleBinding=function(t,e,n){void 0===n&&(n=Ss);var r=this._parseBindingAst(t,e,n),i=Ds.check(r);return i.length>0&&this._reportError("Host binding expression cannot contain "+i.join(" "),t,e),new yo(r,t,e,this.errors)},t.prototype._reportError=function(t,e,n,r){this.errors.push(new Ki(t,e,n,r))},t.prototype._parseBindingAst=function(t,e,n){var r=this._parseQuote(t,e);if(null!=r)return r;this._checkNoInterpolation(t,e,n);var i=this._stripComments(t),o=this._lexer.tokenize(i);return new Ns(t,e,o,i.length,!1,this.errors,t.length-i.length).parseChain()},t.prototype._parseQuote=function(t,e){if(null==t)return null;var n=t.indexOf(":");if(-1==n)return null;var r=t.substring(0,n).trim();if(!$(r))return null;var i=t.substring(n+1);return new $i(new Qi(0,t.length),r,i,e)},t.prototype.parseTemplateBindings=function(t,e,n){var r=this._lexer.tokenize(e);if(t){var i=this._lexer.tokenize(t).map(function(t){return t.index=0,t});r.unshift.apply(r,i)}return new Ns(e,n,r,e.length,!1,this.errors,0).parseTemplateBindings()},t.prototype.parseInterpolation=function(t,e,n){void 0===n&&(n=Ss);var r=this.splitInterpolation(t,e,n);if(null==r)return null;for(var i=[],o=0;o<r.expressions.length;++o){var s=r.expressions[o],a=this._stripComments(s),u=this._lexer.tokenize(this._stripComments(r.expressions[o])),c=new Ns(t,e,u,a.length,!1,this.errors,r.offsets[o]+(s.length-a.length)).parseChain();i.push(c)}return new yo(new lo(new Qi(0,null==t?0:t.length),r.strings,i),t,e,this.errors)},t.prototype.splitInterpolation=function(t,e,n){void 0===n&&(n=Ss);var r=rt(n),i=t.split(r);if(i.length<=1)return null;for(var o=[],s=[],a=[],u=0,c=0;c<i.length;c++){var l=i[c];c%2===0?(o.push(l),u+=l.length):l.trim().length>0?(u+=n.start.length,s.push(l),a.push(u),u+=l.length+n.end.length):(this._reportError("Blank expressions are not allowed in interpolated strings",t,"at column "+this._findInterpolationErrorColumn(i,c,n)+" in",e),s.push("$implict"),a.push(u))}return new Rs(o,s,a)},t.prototype.wrapLiteralPrimitive=function(t,e){return new yo(new ao(new Qi(0,null==t?0:t.length),t),t,e,this.errors)},t.prototype._stripComments=function(t){var e=this._commentStart(t);return null!=e?t.substring(0,e).trim():t},t.prototype._commentStart=function(t){for(var e=null,n=0;n<t.length-1;n++){var r=t.charCodeAt(n),i=t.charCodeAt(n+1);if(r===Ho&&i==Ho&&null==e)return n;e===r?e=null:null==e&&tt(r)&&(e=r)}return null},t.prototype._checkNoInterpolation=function(t,e,n){var r=rt(n),i=t.split(r);i.length>1&&this._reportError("Got interpolation ("+n.start+n.end+") where expression was expected",t,"at column "+this._findInterpolationErrorColumn(i,1,n)+" in",e)},t.prototype._findInterpolationErrorColumn=function(t,e,n){for(var r="",i=0;e>i;i++)r+=i%2===0?t[i]:""+n.start+t[i]+n.end;return r.length},t}();Is.decorators=[{type:V}],Is.ctorParameters=function(){return[{type:Ps}]};var Ns=function(){function t(t,e,n,r,i,o,s){this.input=t,this.location=e,this.tokens=n,this.inputLength=r,this.parseAction=i,this.errors=o,this.offset=s,this.rparensExpected=0,this.rbracketsExpected=0,this.rbracesExpected=0,this.index=0}return t.prototype.peek=function(t){var e=this.index+t;return e<this.tokens.length?this.tokens[e]:Os},Object.defineProperty(t.prototype,"next",{get:function(){return this.peek(0)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"inputIndex",{get:function(){return this.index<this.tokens.length?this.next.index+this.offset:this.inputLength+this.offset},enumerable:!0,configurable:!0}),t.prototype.span=function(t){return new Qi(t,this.inputIndex)},t.prototype.advance=function(){this.index++},t.prototype.optionalCharacter=function(t){return this.next.isCharacter(t)?(this.advance(),!0):!1},t.prototype.peekKeywordLet=function(){return this.next.isKeywordLet()},t.prototype.peekKeywordAs=function(){return this.next.isKeywordAs()},t.prototype.expectCharacter=function(t){this.optionalCharacter(t)||this.error("Missing expected "+String.fromCharCode(t))},t.prototype.optionalOperator=function(t){return this.next.isOperator(t)?(this.advance(),!0):!1},t.prototype.expectOperator=function(t){this.optionalOperator(t)||this.error("Missing expected operator "+t)},t.prototype.expectIdentifierOrKeyword=function(){var t=this.next;return t.isIdentifier()||t.isKeyword()?(this.advance(),t.toString()):(this.error("Unexpected token "+t+", expected identifier or keyword"),"")},t.prototype.expectIdentifierOrKeywordOrString=function(){var t=this.next;return t.isIdentifier()||t.isKeyword()||t.isString()?(this.advance(),t.toString()):(this.error("Unexpected token "+t+", expected identifier, keyword, or string"),"")},t.prototype.parseChain=function(){for(var t=[],e=this.inputIndex;this.index<this.tokens.length;){var n=this.parsePipe();if(t.push(n),this.optionalCharacter(zo))for(this.parseAction||this.error("Binding expression cannot contain chained expression");this.optionalCharacter(zo););else this.index<this.tokens.length&&this.error("Unexpected token '"+this.next+"'")}return 0==t.length?new Zi(this.span(e)):1==t.length?t[0]:new Ji(this.span(e),t)},t.prototype.parsePipe=function(){var t=this.parseExpression();if(this.optionalOperator("|")){this.parseAction&&this.error("Cannot have a pipe in an action expression");do{for(var e=this.expectIdentifierOrKeyword(),n=[];this.optionalCharacter(qo);)n.push(this.parseExpression());t=new so(this.span(t.span.start),t,e,n)}while(this.optionalOperator("|"))}return t},t.prototype.parseExpression=function(){return this.parseConditional()},t.prototype.parseConditional=function(){var t=this.inputIndex,e=this.parseLogicalOr();if(this.optionalOperator("?")){var n=this.parsePipe(),r=void 0;if(this.optionalCharacter(qo))r=this.parsePipe();else{var i=this.inputIndex,o=this.input.substring(t,i);this.error("Conditional expression "+o+" requires all 3 expressions"),r=new Zi(this.span(t))}return new to(this.span(t),e,n,r)}return e},t.prototype.parseLogicalOr=function(){for(var t=this.parseLogicalAnd();this.optionalOperator("||");){var e=this.parseLogicalAnd();t=new po(this.span(t.span.start),"||",t,e)}return t},t.prototype.parseLogicalAnd=function(){for(var t=this.parseEquality();this.optionalOperator("&&");){var e=this.parseEquality();t=new po(this.span(t.span.start),"&&",t,e)}return t},t.prototype.parseEquality=function(){for(var t=this.parseRelational();this.next.type==xs.Operator;){var e=this.next.strValue;switch(e){case"==":case"===":case"!=":case"!==":this.advance();var n=this.parseRelational();t=new po(this.span(t.span.start),e,t,n);continue}break}return t},t.prototype.parseRelational=function(){for(var t=this.parseAdditive();this.next.type==xs.Operator;){var e=this.next.strValue;switch(e){case"<":case">":case"<=":case">=":this.advance();var n=this.parseAdditive();t=new po(this.span(t.span.start),e,t,n);continue}break}return t},t.prototype.parseAdditive=function(){for(var t=this.parseMultiplicative();this.next.type==xs.Operator;){var e=this.next.strValue;switch(e){case"+":case"-":this.advance();var n=this.parseMultiplicative();t=new po(this.span(t.span.start),e,t,n);continue}break}return t},t.prototype.parseMultiplicative=function(){for(var t=this.parsePrefix();this.next.type==xs.Operator;){var e=this.next.strValue;switch(e){case"*":case"%":case"/":this.advance();var n=this.parsePrefix();t=new po(this.span(t.span.start),e,t,n);continue}break}return t},t.prototype.parsePrefix=function(){if(this.next.type==xs.Operator){var t=this.inputIndex,e=this.next.strValue,n=void 0;switch(e){case"+":return this.advance(),this.parsePrefix();case"-":return this.advance(),n=this.parsePrefix(),new po(this.span(t),e,new ao(new Qi(t,t),0),n);case"!":return this.advance(),n=this.parsePrefix(),new ho(this.span(t),n)}}return this.parseCallChain()},t.prototype.parseCallChain=function(){for(var t=this.parsePrimary();;)if(this.optionalCharacter(Bo))t=this.parseAccessMemberOrMethodCall(t,!1);else if(this.optionalOperator("?."))t=this.parseAccessMemberOrMethodCall(t,!0);else if(this.optionalCharacter(ns)){this.rbracketsExpected++;var e=this.parsePipe();if(this.rbracketsExpected--,this.expectCharacter(is),this.optionalOperator("=")){var n=this.parseConditional();t=new oo(this.span(t.span.start),t,e,n)}else t=new io(this.span(t.span.start),t,e)}else{if(!this.optionalCharacter(Do))return t;this.rparensExpected++;var r=this.parseCallArguments();this.rparensExpected--,this.expectCharacter(Lo),t=new mo(this.span(t.span.start),t,r)}},t.prototype.parsePrimary=function(){var t=this.inputIndex;if(this.optionalCharacter(Do)){this.rparensExpected++;var e=this.parsePipe();return this.rparensExpected--,this.expectCharacter(Lo),e}if(this.next.isKeywordNull())return this.advance(),new ao(this.span(t),null);if(this.next.isKeywordUndefined())return this.advance(),new ao(this.span(t),void 0);if(this.next.isKeywordTrue())return this.advance(),new ao(this.span(t),!0);if(this.next.isKeywordFalse())return this.advance(),new ao(this.span(t),!1);if(this.next.isKeywordThis())return this.advance(),new Yi(this.span(t));if(this.optionalCharacter(ns)){this.rbracketsExpected++;var n=this.parseExpressionList(is);return this.rbracketsExpected--,this.expectCharacter(is),new uo(this.span(t),n)}if(this.next.isCharacter(ys))return this.parseLiteralMap();if(this.next.isIdentifier())return this.parseAccessMemberOrMethodCall(new Yi(this.span(t)),!1);if(this.next.isNumber()){var r=this.next.toNumber();return this.advance(),new ao(this.span(t),r)}if(this.next.isString()){var i=this.next.toString();return this.advance(),new ao(this.span(t),i)}return this.index>=this.tokens.length?(this.error("Unexpected end of expression: "+this.input),new Zi(this.span(t))):(this.error("Unexpected token "+this.next),new Zi(this.span(t)))},t.prototype.parseExpressionList=function(t){var e=[];if(!this.next.isCharacter(t))do e.push(this.parsePipe());while(this.optionalCharacter(Vo));return e},t.prototype.parseLiteralMap=function(){var t=[],e=[],n=this.inputIndex;if(this.expectCharacter(ys),!this.optionalCharacter(_s)){this.rbracesExpected++;do{var r=this.expectIdentifierOrKeywordOrString();t.push(r),this.expectCharacter(qo),e.push(this.parsePipe())}while(this.optionalCharacter(Vo));this.rbracesExpected--,this.expectCharacter(_s)}return new co(this.span(n),t,e)},t.prototype.parseAccessMemberOrMethodCall=function(t,e){void 0===e&&(e=!1);var n=t.span.start,r=this.expectIdentifierOrKeyword();if(this.optionalCharacter(Do)){this.rparensExpected++;var i=this.parseCallArguments();this.expectCharacter(Lo),this.rparensExpected--;var o=this.span(n);return e?new vo(o,t,r,i):new fo(o,t,r,i)}if(e)return this.optionalOperator("=")?(this.error("The '?.' operator cannot be used in the assignment"),new Zi(this.span(n))):new ro(this.span(n),t,r);if(this.optionalOperator("=")){if(!this.parseAction)return this.error("Bindings cannot contain assignments"),new Zi(this.span(n));var s=this.parseConditional();return new no(this.span(n),t,r,s)}return new eo(this.span(n),t,r)},t.prototype.parseCallArguments=function(){if(this.next.isCharacter(Lo))return[];var t=[];do t.push(this.parsePipe());while(this.optionalCharacter(Vo));return t},t.prototype.expectTemplateBindingKey=function(){var t="",e=!1;do t+=this.expectIdentifierOrKeywordOrString(),e=this.optionalOperator("-"),e&&(t+="-");while(e);return t.toString()},t.prototype.parseTemplateBindings=function(){for(var t=[],e=null,n=[];this.index<this.tokens.length;){var r=this.inputIndex,i=this.peekKeywordLet();i&&this.advance();var o=this.expectTemplateBindingKey(),s=o;i||(null==e?e=s:s=e+s[0].toUpperCase()+s.substring(1)),this.optionalCharacter(qo);var a=null,u=null;if(i)a=this.optionalOperator("=")?this.expectTemplateBindingKey():"$implicit";else if(this.peekKeywordAs()){var c=this.inputIndex;this.advance(),a=o,s=this.expectTemplateBindingKey(),i=!0}else if(this.next!==Os&&!this.peekKeywordLet()){var l=this.inputIndex,p=this.parsePipe(),h=this.input.substring(l-this.offset,this.inputIndex-this.offset);u=new yo(p,h,this.location,this.errors)}if(t.push(new go(this.span(r),s,i,a,u)),this.peekKeywordAs()&&!i){var c=this.inputIndex;this.advance();var f=this.expectTemplateBindingKey();t.push(new go(this.span(c),f,!0,s,null))}this.optionalCharacter(zo)||this.optionalCharacter(Vo)}return new ks(t,n,this.errors)},t.prototype.error=function(t,e){void 0===e&&(e=null),this.errors.push(new Ki(t,this.input,this.locationText(e),this.location)),this.skip()},t.prototype.locationText=function(t){return void 0===t&&(t=null),null==t&&(t=this.index),t<this.tokens.length?"at column "+(this.tokens[t].index+1)+" in":"at the end of the expression"},t.prototype.skip=function(){for(var t=this.next;this.index<this.tokens.length&&!t.isCharacter(zo)&&(this.rparensExpected<=0||!t.isCharacter(Lo))&&(this.rbracesExpected<=0||!t.isCharacter(_s))&&(this.rbracketsExpected<=0||!t.isCharacter(is));)this.next.isError()&&this.errors.push(new Ki(this.next.toString(),this.input,this.locationText(),this.location)),this.advance(),t=this.next},t}(),Ds=function(){function t(){this.errors=[]}return t.check=function(e){var n=new t;return e.visit(n),n.errors},t.prototype.visitImplicitReceiver=function(){},t.prototype.visitInterpolation=function(){},t.prototype.visitLiteralPrimitive=function(){},t.prototype.visitPropertyRead=function(){},t.prototype.visitPropertyWrite=function(){},t.prototype.visitSafePropertyRead=function(){},t.prototype.visitMethodCall=function(){},t.prototype.visitSafeMethodCall=function(){},t.prototype.visitFunctionCall=function(){},t.prototype.visitLiteralArray=function(t){this.visitAll(t.expressions)},t.prototype.visitLiteralMap=function(t){this.visitAll(t.values)},t.prototype.visitBinary=function(){},t.prototype.visitPrefixNot=function(){},t.prototype.visitConditional=function(){},t.prototype.visitPipe=function(){this.errors.push("pipes")},t.prototype.visitKeyedRead=function(){},t.prototype.visitKeyedWrite=function(){},t.prototype.visitAll=function(t){var e=this;return t.map(function(t){return t.visit(e)})},t.prototype.visitChain=function(){},t.prototype.visitQuote=function(){},t}(),Ls=function(){function t(t,e,n,r){this.file=t,this.offset=e,this.line=n,this.col=r}return t.prototype.toString=function(){return null!=this.offset?this.file.url+"@"+this.line+":"+this.col:this.file.url},t.prototype.moveBy=function(e){for(var n=this.file.content,r=n.length,i=this.offset,o=this.line,s=this.col;i>0&&0>e;){i--,e++;var a=n.charCodeAt(i);if(a==Co){o--;var u=n.substr(0,i-1).lastIndexOf(String.fromCharCode(Co));s=u>0?i-u:i}else s--}for(;r>i&&e>0;){var a=n.charCodeAt(i);i++,e--,a==Co?(o++,s=0):s++}return new t(this.file,i,o,s)},t.prototype.getContext=function(t,e){var n=this.file.content,r=this.offset;if(null!=r){r>n.length-1&&(r=n.length-1);for(var i=r,o=0,s=0;t>o&&r>0&&(r--,o++,"\n"!=n[r]||++s!=e););for(o=0,s=0;t>o&&i<n.length-1&&(i++,o++,"\n"!=n[i]||++s!=e););return{before:n.substring(r,this.offset),after:n.substring(this.offset,i+1)}}return null},t}(),js=function(){function t(t,e){this.content=t,this.url=e}return t}(),Fs=function(){function t(t,e,n){void 0===n&&(n=null),this.start=t,this.end=e,this.details=n}return t.prototype.toString=function(){return this.start.file.content.substring(this.start.offset,this.end.offset)},t}(),Vs={};Vs.WARNING=0,Vs.ERROR=1,Vs[Vs.WARNING]="WARNING",Vs[Vs.ERROR]="ERROR";var Us=function(){function t(t,e,n){void 0===n&&(n=Vs.ERROR),this.span=t,this.msg=e,this.level=n}return t.prototype.toString=function(){var t=this.span.start.getContext(100,3),e=t?' ("'+t.before+"["+Vs[this.level]+" ->]"+t.after+'")':"",n=this.span.details?", "+this.span.details:"";return""+this.msg+e+": "+this.span.start+n},t}(),Bs=function(){function t(t,e){this.value=t,this.sourceSpan=e}return t.prototype.visit=function(t,e){return t.visitText(this,e)},t}(),Hs=function(){function t(t,e,n,r,i){this.switchValue=t,this.type=e,this.cases=n,this.sourceSpan=r,this.switchValueSourceSpan=i}return t.prototype.visit=function(t,e){return t.visitExpansion(this,e)},t}(),qs=function(){function t(t,e,n,r,i){this.value=t,this.expression=e,this.sourceSpan=n,this.valueSourceSpan=r,this.expSourceSpan=i}return t.prototype.visit=function(t,e){return t.visitExpansionCase(this,e)},t}(),zs=function(){function t(t,e,n,r){this.name=t,this.value=e,this.sourceSpan=n,this.valueSpan=r}return t.prototype.visit=function(t,e){return t.visitAttribute(this,e)},t}(),Ws=function(){function t(t,e,n,r,i,o){this.name=t,this.attrs=e,this.children=n,this.sourceSpan=r,this.startSourceSpan=i,this.endSourceSpan=o}return t.prototype.visit=function(t,e){return t.visitElement(this,e)},t}(),Gs=function(){function t(t,e){this.value=t,this.sourceSpan=e}return t.prototype.visit=function(t,e){return t.visitComment(this,e)},t}(),Ks={};Ks.TAG_OPEN_START=0,Ks.TAG_OPEN_END=1,Ks.TAG_OPEN_END_VOID=2,Ks.TAG_CLOSE=3,Ks.TEXT=4,Ks.ESCAPABLE_RAW_TEXT=5,Ks.RAW_TEXT=6,Ks.COMMENT_START=7,Ks.COMMENT_END=8,Ks.CDATA_START=9,Ks.CDATA_END=10,Ks.ATTR_NAME=11,Ks.ATTR_VALUE=12,Ks.DOC_TYPE=13,Ks.EXPANSION_FORM_START=14,Ks.EXPANSION_CASE_VALUE=15,Ks.EXPANSION_CASE_EXP_START=16,Ks.EXPANSION_CASE_EXP_END=17,Ks.EXPANSION_FORM_END=18,Ks.EOF=19,Ks[Ks.TAG_OPEN_START]="TAG_OPEN_START",Ks[Ks.TAG_OPEN_END]="TAG_OPEN_END",Ks[Ks.TAG_OPEN_END_VOID]="TAG_OPEN_END_VOID",Ks[Ks.TAG_CLOSE]="TAG_CLOSE",Ks[Ks.TEXT]="TEXT",Ks[Ks.ESCAPABLE_RAW_TEXT]="ESCAPABLE_RAW_TEXT",Ks[Ks.RAW_TEXT]="RAW_TEXT",Ks[Ks.COMMENT_START]="COMMENT_START",Ks[Ks.COMMENT_END]="COMMENT_END",Ks[Ks.CDATA_START]="CDATA_START",Ks[Ks.CDATA_END]="CDATA_END",Ks[Ks.ATTR_NAME]="ATTR_NAME",Ks[Ks.ATTR_VALUE]="ATTR_VALUE",Ks[Ks.DOC_TYPE]="DOC_TYPE",Ks[Ks.EXPANSION_FORM_START]="EXPANSION_FORM_START",Ks[Ks.EXPANSION_CASE_VALUE]="EXPANSION_CASE_VALUE",Ks[Ks.EXPANSION_CASE_EXP_START]="EXPANSION_CASE_EXP_START",Ks[Ks.EXPANSION_CASE_EXP_END]="EXPANSION_CASE_EXP_END",Ks[Ks.EXPANSION_FORM_END]="EXPANSION_FORM_END",Ks[Ks.EOF]="EOF";var Qs=function(){function t(t,e,n){this.type=t,this.parts=e,this.sourceSpan=n}return t}(),Xs=function(t){function e(e,n,r){var i=t.call(this,r,e)||this;return i.tokenType=n,i}return zr(e,t),e}(Us),$s=function(){function t(t,e){this.tokens=t,this.errors=e}return t}(),Zs=/\r\n?/g,Ys=function(){function t(t){this.error=t}return t}(),Js=function(){function t(t,e,n,r){void 0===r&&(r=Ss),this._file=t,this._getTagDefinition=e,this._tokenizeIcu=n,this._interpolationConfig=r,this._peek=-1,this._nextPeek=-1,this._index=-1,this._line=0,this._column=-1,this._expansionCaseStack=[],this._inInterpolation=!1,this.tokens=[],this.errors=[],this._input=t.content,this._length=t.content.length,this._advance()}return t.prototype._processCarriageReturns=function(t){return t.replace(Zs,"\n")},t.prototype.tokenize=function(){for(;this._peek!==wo;){var t=this._getLocation();try{this._attemptCharCode(Wo)?this._attemptCharCode(Ao)?this._attemptCharCode(ns)?this._consumeCdata(t):this._attemptCharCode(Uo)?this._consumeComment(t):this._consumeDocType(t):this._attemptCharCode(Ho)?this._consumeTagClose(t):this._consumeTagOpen(t):this._tokenizeIcu&&this._tokenizeExpansionForm()||this._consumeText()}catch(e){if(!(e instanceof Ys))throw e;this.errors.push(e.error)}}return this._beginToken(Ks.EOF),this._endToken([]),new $s(gt(this.tokens),this.errors)},t.prototype._tokenizeExpansionForm=function(){if(dt(this._input,this._index,this._interpolationConfig))return this._consumeExpansionFormStart(),!0;if(vt(this._peek)&&this._isInExpansionForm())return this._consumeExpansionCaseStart(),!0;if(this._peek===_s){if(this._isInExpansionCase())return this._consumeExpansionCaseEnd(),!0;if(this._isInExpansionForm())return this._consumeExpansionFormEnd(),!0}return!1},t.prototype._getLocation=function(){return new Ls(this._file,this._index,this._line,this._column)},t.prototype._getSpan=function(t,e){return void 0===t&&(t=this._getLocation()),void 0===e&&(e=this._getLocation()),new Fs(t,e)},t.prototype._beginToken=function(t,e){void 0===e&&(e=this._getLocation()),this._currentTokenStart=e,this._currentTokenType=t},t.prototype._endToken=function(t,e){void 0===e&&(e=this._getLocation());var n=new Qs(this._currentTokenType,t,new Fs(this._currentTokenStart,e));return this.tokens.push(n),this._currentTokenStart=null,this._currentTokenType=null,n},t.prototype._createError=function(t,e){this._isInExpansionForm()&&(t+=' (Do you have an unescaped "{" in your template? Use "{{ \'{\' }}") to escape it.)');var n=new Xs(t,this._currentTokenType,e);return this._currentTokenStart=null,this._currentTokenType=null,new Ys(n)},t.prototype._advance=function(){if(this._index>=this._length)throw this._createError(at(wo),this._getSpan());this._peek===Co?(this._line++,this._column=0):this._peek!==Co&&this._peek!==To&&this._column++,this._index++,this._peek=this._index>=this._length?wo:this._input.charCodeAt(this._index),this._nextPeek=this._index+1>=this._length?wo:this._input.charCodeAt(this._index+1)},t.prototype._attemptCharCode=function(t){return this._peek===t?(this._advance(),!0):!1},t.prototype._attemptCharCodeCaseInsensitive=function(t){return mt(this._peek,t)?(this._advance(),!0):!1},t.prototype._requireCharCode=function(t){var e=this._getLocation();if(!this._attemptCharCode(t))throw this._createError(at(this._peek),this._getSpan(e,e))},t.prototype._attemptStr=function(t){var e=t.length;if(this._index+e>this._length)return!1;for(var n=this._savePosition(),r=0;e>r;r++)if(!this._attemptCharCode(t.charCodeAt(r)))return this._restorePosition(n),!1;return!0},t.prototype._attemptStrCaseInsensitive=function(t){for(var e=0;e<t.length;e++)if(!this._attemptCharCodeCaseInsensitive(t.charCodeAt(e)))return!1;return!0},t.prototype._requireStr=function(t){var e=this._getLocation();if(!this._attemptStr(t))throw this._createError(at(this._peek),this._getSpan(e))},t.prototype._attemptCharCodeUntilFn=function(t){for(;!t(this._peek);)this._advance()},t.prototype._requireCharCodeUntilFn=function(t,e){var n=this._getLocation();if(this._attemptCharCodeUntilFn(t),this._index-n.offset<e)throw this._createError(at(this._peek),this._getSpan(n,n))},t.prototype._attemptUntilChar=function(t){for(;this._peek!==t;)this._advance()},t.prototype._readChar=function(t){if(t&&this._peek===Io)return this._decodeEntity();var e=this._index;return this._advance(),this._input[e]},t.prototype._decodeEntity=function(){var t=this._getLocation();if(this._advance(),!this._attemptCharCode(Mo)){var e=this._savePosition();if(this._attemptCharCodeUntilFn(ft),this._peek!=zo)return this._restorePosition(e),"&";this._advance();var n=this._input.substring(t.offset+1,this._index-1),r=li[n];if(!r)throw this._createError(ut(n),this._getSpan(t));return r}var i=this._attemptCharCode(vs)||this._attemptCharCode(ts),o=this._getLocation().offset;if(this._attemptCharCodeUntilFn(ht),this._peek!=zo)throw this._createError(at(this._peek),this._getSpan());this._advance();var s=this._input.substring(o,this._index-1);try{var a=parseInt(s,i?16:10);return String.fromCharCode(a)}catch(u){var c=this._input.substring(t.offset+1,this._index-1);throw this._createError(ut(c),this._getSpan(t))}},t.prototype._consumeRawText=function(t,e,n){var r,i=this._getLocation();this._beginToken(t?Ks.ESCAPABLE_RAW_TEXT:Ks.RAW_TEXT,i);for(var o=[];;){if(r=this._getLocation(),this._attemptCharCode(e)&&n())break;for(this._index>r.offset&&o.push(this._input.substring(r.offset,this._index));this._peek!==e;)o.push(this._readChar(t))}return this._endToken([this._processCarriageReturns(o.join(""))],r)},t.prototype._consumeComment=function(t){var e=this;this._beginToken(Ks.COMMENT_START,t),this._requireCharCode(Uo),this._endToken([]);var n=this._consumeRawText(!1,Uo,function(){return e._attemptStr("->")});this._beginToken(Ks.COMMENT_END,n.sourceSpan.end),this._endToken([])},t.prototype._consumeCdata=function(t){var e=this;this._beginToken(Ks.CDATA_START,t),this._requireStr("CDATA["),this._endToken([]);var n=this._consumeRawText(!1,is,function(){return e._attemptStr("]>")});this._beginToken(Ks.CDATA_END,n.sourceSpan.end),this._endToken([])},t.prototype._consumeDocType=function(t){this._beginToken(Ks.DOC_TYPE,t),this._attemptUntilChar(Ko),this._advance(),this._endToken([this._input.substring(t.offset+2,this._index-1)])},t.prototype._consumePrefixAndName=function(){for(var t=this._index,e=null;this._peek!==qo&&!pt(this._peek);)this._advance();var n;this._peek===qo?(this._advance(),e=this._input.substring(t,this._index-1),n=this._index):n=t,this._requireCharCodeUntilFn(lt,this._index===n?1:0);var r=this._input.substring(n,this._index);return[e,r]},t.prototype._consumeTagOpen=function(t){var e,n,r=this._savePosition();try{if(!j(this._peek))throw this._createError(at(this._peek),this._getSpan());var i=this._index;for(this._consumeTagOpenStart(t),e=this._input.substring(i,this._index),n=e.toLowerCase(),this._attemptCharCodeUntilFn(ct);this._peek!==Ho&&this._peek!==Ko;)this._consumeAttributeName(),this._attemptCharCodeUntilFn(ct),this._attemptCharCode(Go)&&(this._attemptCharCodeUntilFn(ct),this._consumeAttributeValue()),this._attemptCharCodeUntilFn(ct);this._consumeTagOpenEnd()}catch(o){if(o instanceof Ys)return this._restorePosition(r),this._beginToken(Ks.TEXT,t),void this._endToken(["<"]);throw o}var s=this._getTagDefinition(e).contentType;s===ci.RAW_TEXT?this._consumeRawTextWithTagClose(n,!1):s===ci.ESCAPABLE_RAW_TEXT&&this._consumeRawTextWithTagClose(n,!0)},t.prototype._consumeRawTextWithTagClose=function(t,e){var n=this,r=this._consumeRawText(e,Wo,function(){return n._attemptCharCode(Ho)?(n._attemptCharCodeUntilFn(ct),n._attemptStrCaseInsensitive(t)?(n._attemptCharCodeUntilFn(ct),n._attemptCharCode(Ko)):!1):!1});this._beginToken(Ks.TAG_CLOSE,r.sourceSpan.end),this._endToken([null,t])},t.prototype._consumeTagOpenStart=function(t){this._beginToken(Ks.TAG_OPEN_START,t);var e=this._consumePrefixAndName();this._endToken(e)},t.prototype._consumeAttributeName=function(){this._beginToken(Ks.ATTR_NAME);var t=this._consumePrefixAndName();this._endToken(t)},t.prototype._consumeAttributeValue=function(){this._beginToken(Ks.ATTR_VALUE);var t;if(this._peek===No||this._peek===Oo){var e=this._peek;this._advance();for(var n=[];this._peek!==e;)n.push(this._readChar(!0));t=n.join(""),this._advance()}else{var r=this._index;this._requireCharCodeUntilFn(lt,1),t=this._input.substring(r,this._index)}this._endToken([this._processCarriageReturns(t)])},t.prototype._consumeTagOpenEnd=function(){var t=this._attemptCharCode(Ho)?Ks.TAG_OPEN_END_VOID:Ks.TAG_OPEN_END;this._beginToken(t),this._requireCharCode(Ko),this._endToken([])},t.prototype._consumeTagClose=function(t){this._beginToken(Ks.TAG_CLOSE,t),this._attemptCharCodeUntilFn(ct);var e=this._consumePrefixAndName();this._attemptCharCodeUntilFn(ct),this._requireCharCode(Ko),this._endToken(e)},t.prototype._consumeExpansionFormStart=function(){this._beginToken(Ks.EXPANSION_FORM_START,this._getLocation()),this._requireCharCode(ys),this._endToken([]),this._expansionCaseStack.push(Ks.EXPANSION_FORM_START),this._beginToken(Ks.RAW_TEXT,this._getLocation());var t=this._readUntil(Vo);this._endToken([t],this._getLocation()),this._requireCharCode(Vo),this._attemptCharCodeUntilFn(ct),this._beginToken(Ks.RAW_TEXT,this._getLocation());var e=this._readUntil(Vo);this._endToken([e],this._getLocation()),this._requireCharCode(Vo),this._attemptCharCodeUntilFn(ct)},t.prototype._consumeExpansionCaseStart=function(){this._beginToken(Ks.EXPANSION_CASE_VALUE,this._getLocation());var t=this._readUntil(ys).trim();this._endToken([t],this._getLocation()),this._attemptCharCodeUntilFn(ct),this._beginToken(Ks.EXPANSION_CASE_EXP_START,this._getLocation()),this._requireCharCode(ys),this._endToken([],this._getLocation()),this._attemptCharCodeUntilFn(ct),this._expansionCaseStack.push(Ks.EXPANSION_CASE_EXP_START)},t.prototype._consumeExpansionCaseEnd=function(){this._beginToken(Ks.EXPANSION_CASE_EXP_END,this._getLocation()),this._requireCharCode(_s),this._endToken([],this._getLocation()),this._attemptCharCodeUntilFn(ct),this._expansionCaseStack.pop()},t.prototype._consumeExpansionFormEnd=function(){this._beginToken(Ks.EXPANSION_FORM_END,this._getLocation()),this._requireCharCode(_s),this._endToken([]),this._expansionCaseStack.pop()},t.prototype._consumeText=function(){var t=this._getLocation();this._beginToken(Ks.TEXT,t);var e=[];do this._interpolationConfig&&this._attemptStr(this._interpolationConfig.start)?(e.push(this._interpolationConfig.start),this._inInterpolation=!0):this._interpolationConfig&&this._inInterpolation&&this._attemptStr(this._interpolationConfig.end)?(e.push(this._interpolationConfig.end),this._inInterpolation=!1):e.push(this._readChar(!0));while(!this._isTextEnd());this._endToken([this._processCarriageReturns(e.join(""))])},t.prototype._isTextEnd=function(){if(this._peek===Wo||this._peek===wo)return!0;if(this._tokenizeIcu&&!this._inInterpolation){if(dt(this._input,this._index,this._interpolationConfig))return!0;if(this._peek===_s&&this._isInExpansionCase())return!0}return!1},t.prototype._savePosition=function(){return[this._peek,this._index,this._column,this._line,this.tokens.length]},t.prototype._readUntil=function(t){var e=this._index;return this._attemptUntilChar(t),this._input.substring(e,this._index)},t.prototype._restorePosition=function(t){this._peek=t[0],this._index=t[1],this._column=t[2],this._line=t[3];var e=t[4];e<this.tokens.length&&(this.tokens=this.tokens.slice(0,e))},t.prototype._isInExpansionCase=function(){return this._expansionCaseStack.length>0&&this._expansionCaseStack[this._expansionCaseStack.length-1]===Ks.EXPANSION_CASE_EXP_START},t.prototype._isInExpansionForm=function(){return this._expansionCaseStack.length>0&&this._expansionCaseStack[this._expansionCaseStack.length-1]===Ks.EXPANSION_FORM_START},t}(),ta=function(t){function e(e,n,r){var i=t.call(this,n,r)||this;return i.elementName=e,i}return zr(e,t),e.create=function(t,n,r){return new e(t,n,r)},e}(Us),ea=function(){function t(t,e){this.rootNodes=t,this.errors=e}return t}(),na=function(){function t(t){this.getTagDefinition=t}return t.prototype.parse=function(t,e,n,r){void 0===n&&(n=!1),void 0===r&&(r=Ss);var i=st(t,e,this.getTagDefinition,n,r),o=new ra(i.tokens,this.getTagDefinition).build();return new ea(o.rootNodes,i.errors.concat(o.errors))},t}(),ra=function(){function t(t,e){this.tokens=t,this.getTagDefinition=e,this._index=-1,this._rootNodes=[],this._errors=[],this._elementStack=[],this._advance()}return t.prototype.build=function(){for(;this._peek.type!==Ks.EOF;)this._peek.type===Ks.TAG_OPEN_START?this._consumeStartTag(this._advance()):this._peek.type===Ks.TAG_CLOSE?this._consumeEndTag(this._advance()):this._peek.type===Ks.CDATA_START?(this._closeVoidElement(),this._consumeCdata(this._advance())):this._peek.type===Ks.COMMENT_START?(this._closeVoidElement(),this._consumeComment(this._advance())):this._peek.type===Ks.TEXT||this._peek.type===Ks.RAW_TEXT||this._peek.type===Ks.ESCAPABLE_RAW_TEXT?(this._closeVoidElement(),this._consumeText(this._advance())):this._peek.type===Ks.EXPANSION_FORM_START?this._consumeExpansion(this._advance()):this._advance();return new ea(this._rootNodes,this._errors)},t.prototype._advance=function(){var t=this._peek;return this._index<this.tokens.length-1&&this._index++,this._peek=this.tokens[this._index],t},t.prototype._advanceIf=function(t){return this._peek.type===t?this._advance():null},t.prototype._consumeCdata=function(){this._consumeText(this._advance()),this._advanceIf(Ks.CDATA_END)},t.prototype._consumeComment=function(t){var e=this._advanceIf(Ks.RAW_TEXT);this._advanceIf(Ks.COMMENT_END);var n=null!=e?e.parts[0].trim():null; +e&&this._applyKeyValueChanges(e)}},t.prototype._cleanupClasses=function(t){this._applyClasses(t,!0),this._applyInitialClasses(!1)},t.prototype._applyKeyValueChanges=function(t){var e=this;t.forEachAddedItem(function(t){return e._toggleClass(t.key,t.currentValue)}),t.forEachChangedItem(function(t){return e._toggleClass(t.key,t.currentValue)}),t.forEachRemovedItem(function(t){t.previousValue&&e._toggleClass(t.key,!1)})},t.prototype._applyIterableChanges=function(t){var n=this;t.forEachAddedItem(function(t){if("string"!=typeof t.item)throw new Error("NgClass can only toggle CSS classes expressed as strings, got "+e.ɵstringify(t.item));n._toggleClass(t.item,!0)}),t.forEachRemovedItem(function(t){return n._toggleClass(t.item,!1)})},t.prototype._applyInitialClasses=function(t){var e=this;this._initialClasses.forEach(function(n){return e._toggleClass(n,!t)})},t.prototype._applyClasses=function(t,e){var n=this;t&&(Array.isArray(t)||t instanceof Set?t.forEach(function(t){return n._toggleClass(t,!e)}):Object.keys(t).forEach(function(r){null!=t[r]&&n._toggleClass(r,!e)}))},t.prototype._toggleClass=function(t,e){var n=this;t=t.trim(),t&&t.split(/\s+/g).forEach(function(t){n._renderer.setElementClass(n._ngEl.nativeElement,t,!!e)})},t}();q.decorators=[{type:e.Directive,args:[{selector:"[ngClass]"}]}],q.ctorParameters=function(){return[{type:e.IterableDiffers},{type:e.KeyValueDiffers},{type:e.ElementRef},{type:e.Renderer}]},q.propDecorators={klass:[{type:e.Input,args:["class"]}],ngClass:[{type:e.Input}]};var z=function(){function t(t){this._viewContainerRef=t,this._componentRef=null,this._moduleRef=null}return t.prototype.ngOnChanges=function(t){if(this._viewContainerRef.clear(),this._componentRef=null,this.ngComponentOutlet){var n=this.ngComponentOutletInjector||this._viewContainerRef.parentInjector;if(t.ngComponentOutletNgModuleFactory)if(this._moduleRef&&this._moduleRef.destroy(),this.ngComponentOutletNgModuleFactory){var r=n.get(e.NgModuleRef);this._moduleRef=this.ngComponentOutletNgModuleFactory.create(r.injector)}else this._moduleRef=null;var o=this._moduleRef?this._moduleRef.componentFactoryResolver:n.get(e.ComponentFactoryResolver),i=o.resolveComponentFactory(this.ngComponentOutlet);this._componentRef=this._viewContainerRef.createComponent(i,this._viewContainerRef.length,n,this.ngComponentOutletContent)}},t.prototype.ngOnDestroy=function(){this._moduleRef&&this._moduleRef.destroy()},t}();z.decorators=[{type:e.Directive,args:[{selector:"[ngComponentOutlet]"}]}],z.ctorParameters=function(){return[{type:e.ViewContainerRef}]},z.propDecorators={ngComponentOutlet:[{type:e.Input}],ngComponentOutletInjector:[{type:e.Input}],ngComponentOutletContent:[{type:e.Input}],ngComponentOutletNgModuleFactory:[{type:e.Input}]};var G=function(){function t(t,e,n,r){this.$implicit=t,this.ngForOf=e,this.index=n,this.count=r}return Object.defineProperty(t.prototype,"first",{get:function(){return 0===this.index},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"last",{get:function(){return this.index===this.count-1},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"even",{get:function(){return this.index%2===0},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"odd",{get:function(){return!this.even},enumerable:!0,configurable:!0}),t}(),W=function(){function t(t,e,n){this._viewContainer=t,this._template=e,this._differs=n,this._differ=null}return Object.defineProperty(t.prototype,"ngForTrackBy",{get:function(){return this._trackByFn},set:function(t){e.isDevMode()&&null!=t&&"function"!=typeof t&&console&&console.warn&&console.warn("trackBy must be a function, but received "+JSON.stringify(t)+". See https://angular.io/docs/ts/latest/api/common/index/NgFor-directive.html#!#change-propagation for more information."),this._trackByFn=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"ngForTemplate",{set:function(t){t&&(this._template=t)},enumerable:!0,configurable:!0}),t.prototype.ngOnChanges=function(t){if("ngForOf"in t){var e=t.ngForOf.currentValue;if(!this._differ&&e)try{this._differ=this._differs.find(e).create(this.ngForTrackBy)}catch(n){throw new Error("Cannot find a differ supporting object '"+e+"' of type '"+s(e)+"'. NgFor only supports binding to Iterables such as Arrays.")}}},t.prototype.ngDoCheck=function(){if(this._differ){var t=this._differ.diff(this.ngForOf);t&&this._applyChanges(t)}},t.prototype._applyChanges=function(t){var e=this,n=[];t.forEachOperation(function(t,r,o){if(null==t.previousIndex){var i=e._viewContainer.createEmbeddedView(e._template,new G(null,e.ngForOf,null,null),o),s=new K(t,i);n.push(s)}else if(null==o)e._viewContainer.remove(r);else{var i=e._viewContainer.get(r);e._viewContainer.move(i,o);var s=new K(t,i);n.push(s)}});for(var r=0;r<n.length;r++)this._perViewChange(n[r].view,n[r].record);for(var r=0,o=this._viewContainer.length;o>r;r++){var i=this._viewContainer.get(r);i.context.index=r,i.context.count=o}t.forEachIdentityChange(function(t){var n=e._viewContainer.get(t.currentIndex);n.context.$implicit=t.item})},t.prototype._perViewChange=function(t,e){t.context.$implicit=e.item},t}();W.decorators=[{type:e.Directive,args:[{selector:"[ngFor][ngForOf]"}]}],W.ctorParameters=function(){return[{type:e.ViewContainerRef},{type:e.TemplateRef},{type:e.IterableDiffers}]},W.propDecorators={ngForOf:[{type:e.Input}],ngForTrackBy:[{type:e.Input}],ngForTemplate:[{type:e.Input}]};var K=function(){function t(t,e){this.record=t,this.view=e}return t}(),Q=W,$=function(){function t(t,e){this._viewContainer=t,this._context=new X,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=e}return Object.defineProperty(t.prototype,"ngIf",{set:function(t){this._context.$implicit=this._context.ngIf=t,this._updateView()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"ngIfThen",{set:function(t){this._thenTemplateRef=t,this._thenViewRef=null,this._updateView()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"ngIfElse",{set:function(t){this._elseTemplateRef=t,this._elseViewRef=null,this._updateView()},enumerable:!0,configurable:!0}),t.prototype._updateView=function(){this._context.$implicit?this._thenViewRef||(this._viewContainer.clear(),this._elseViewRef=null,this._thenTemplateRef&&(this._thenViewRef=this._viewContainer.createEmbeddedView(this._thenTemplateRef,this._context))):this._elseViewRef||(this._viewContainer.clear(),this._thenViewRef=null,this._elseTemplateRef&&(this._elseViewRef=this._viewContainer.createEmbeddedView(this._elseTemplateRef,this._context)))},t}();$.decorators=[{type:e.Directive,args:[{selector:"[ngIf]"}]}],$.ctorParameters=function(){return[{type:e.ViewContainerRef},{type:e.TemplateRef}]},$.propDecorators={ngIf:[{type:e.Input}],ngIfThen:[{type:e.Input}],ngIfElse:[{type:e.Input}]};var X=function(){function t(){this.$implicit=null,this.ngIf=null}return t}(),Z=function(){function t(t,e){this._viewContainerRef=t,this._templateRef=e,this._created=!1}return t.prototype.create=function(){this._created=!0,this._viewContainerRef.createEmbeddedView(this._templateRef)},t.prototype.destroy=function(){this._created=!1,this._viewContainerRef.clear()},t.prototype.enforceState=function(t){t&&!this._created?this.create():!t&&this._created&&this.destroy()},t}(),Y=function(){function t(){this._defaultUsed=!1,this._caseCount=0,this._lastCaseCheckIndex=0,this._lastCasesMatched=!1}return Object.defineProperty(t.prototype,"ngSwitch",{set:function(t){this._ngSwitch=t,0===this._caseCount&&this._updateDefaultCases(!0)},enumerable:!0,configurable:!0}),t.prototype._addCase=function(){return this._caseCount++},t.prototype._addDefault=function(t){this._defaultViews||(this._defaultViews=[]),this._defaultViews.push(t)},t.prototype._matchCase=function(t){var e=t==this._ngSwitch;return this._lastCasesMatched=this._lastCasesMatched||e,this._lastCaseCheckIndex++,this._lastCaseCheckIndex===this._caseCount&&(this._updateDefaultCases(!this._lastCasesMatched),this._lastCaseCheckIndex=0,this._lastCasesMatched=!1),e},t.prototype._updateDefaultCases=function(t){if(this._defaultViews&&t!==this._defaultUsed){this._defaultUsed=t;for(var e=0;e<this._defaultViews.length;e++){var n=this._defaultViews[e];n.enforceState(t)}}},t}();Y.decorators=[{type:e.Directive,args:[{selector:"[ngSwitch]"}]}],Y.ctorParameters=function(){return[]},Y.propDecorators={ngSwitch:[{type:e.Input}]};var J=function(){function t(t,e,n){this.ngSwitch=n,n._addCase(),this._view=new Z(t,e)}return t.prototype.ngDoCheck=function(){this._view.enforceState(this.ngSwitch._matchCase(this.ngSwitchCase))},t}();J.decorators=[{type:e.Directive,args:[{selector:"[ngSwitchCase]"}]}],J.ctorParameters=function(){return[{type:e.ViewContainerRef},{type:e.TemplateRef},{type:Y,decorators:[{type:e.Host}]}]},J.propDecorators={ngSwitchCase:[{type:e.Input}]};var tt=function(){function t(t,e,n){n._addDefault(new Z(t,e))}return t}();tt.decorators=[{type:e.Directive,args:[{selector:"[ngSwitchDefault]"}]}],tt.ctorParameters=function(){return[{type:e.ViewContainerRef},{type:e.TemplateRef},{type:Y,decorators:[{type:e.Host}]}]};var et=function(){function t(t){this._localization=t,this._caseViews={}}return Object.defineProperty(t.prototype,"ngPlural",{set:function(t){this._switchValue=t,this._updateView()},enumerable:!0,configurable:!0}),t.prototype.addCase=function(t,e){this._caseViews[t]=e},t.prototype._updateView=function(){this._clearViews();var t=Object.keys(this._caseViews),e=o(this._switchValue,t,this._localization);this._activateView(this._caseViews[e])},t.prototype._clearViews=function(){this._activeView&&this._activeView.destroy()},t.prototype._activateView=function(t){t&&(this._activeView=t,this._activeView.create())},t}();et.decorators=[{type:e.Directive,args:[{selector:"[ngPlural]"}]}],et.ctorParameters=function(){return[{type:U}]},et.propDecorators={ngPlural:[{type:e.Input}]};var nt=function(){function t(t,e,n,r){this.value=t;var o=!isNaN(Number(t));r.addCase(o?"="+t:t,new Z(n,e))}return t}();nt.decorators=[{type:e.Directive,args:[{selector:"[ngPluralCase]"}]}],nt.ctorParameters=function(){return[{type:void 0,decorators:[{type:e.Attribute,args:["ngPluralCase"]}]},{type:e.TemplateRef},{type:e.ViewContainerRef},{type:et,decorators:[{type:e.Host}]}]};var rt=function(){function t(t,e,n){this._differs=t,this._ngEl=e,this._renderer=n}return Object.defineProperty(t.prototype,"ngStyle",{set:function(t){this._ngStyle=t,!this._differ&&t&&(this._differ=this._differs.find(t).create())},enumerable:!0,configurable:!0}),t.prototype.ngDoCheck=function(){if(this._differ){var t=this._differ.diff(this._ngStyle);t&&this._applyChanges(t)}},t.prototype._applyChanges=function(t){var e=this;t.forEachRemovedItem(function(t){return e._setStyle(t.key,null)}),t.forEachAddedItem(function(t){return e._setStyle(t.key,t.currentValue)}),t.forEachChangedItem(function(t){return e._setStyle(t.key,t.currentValue)})},t.prototype._setStyle=function(t,e){var n=t.split("."),r=n[0],o=n[1];e=null!=e&&o?""+e+o:e,this._renderer.setElementStyle(this._ngEl.nativeElement,r,e)},t}();rt.decorators=[{type:e.Directive,args:[{selector:"[ngStyle]"}]}],rt.ctorParameters=function(){return[{type:e.KeyValueDiffers},{type:e.ElementRef},{type:e.Renderer}]},rt.propDecorators={ngStyle:[{type:e.Input}]};var ot=function(){function t(t){this._viewContainerRef=t}return Object.defineProperty(t.prototype,"ngOutletContext",{set:function(t){this.ngTemplateOutletContext=t},enumerable:!0,configurable:!0}),t.prototype.ngOnChanges=function(){this._viewRef&&this._viewContainerRef.remove(this._viewContainerRef.indexOf(this._viewRef)),this.ngTemplateOutlet&&(this._viewRef=this._viewContainerRef.createEmbeddedView(this.ngTemplateOutlet,this.ngTemplateOutletContext))},t}();ot.decorators=[{type:e.Directive,args:[{selector:"[ngTemplateOutlet]"}]}],ot.ctorParameters=function(){return[{type:e.ViewContainerRef}]},ot.propDecorators={ngTemplateOutletContext:[{type:e.Input}],ngTemplateOutlet:[{type:e.Input}],ngOutletContext:[{type:e.Input}]};var it=[q,z,W,$,ot,rt,Y,J,tt,et,nt],st=function(){function t(){}return t.prototype.createSubscription=function(t,e){return t.subscribe({next:e,error:function(t){throw t}})},t.prototype.dispose=function(t){t.unsubscribe()},t.prototype.onDestroy=function(t){t.unsubscribe()},t}(),at=function(){function t(){}return t.prototype.createSubscription=function(t,e){return t.then(e,function(t){throw t})},t.prototype.dispose=function(){},t.prototype.onDestroy=function(){},t}(),ut=new at,ct=new st,lt=function(){function t(t){this._ref=t,this._latestValue=null,this._latestReturnedValue=null,this._subscription=null,this._obj=null,this._strategy=null}return t.prototype.ngOnDestroy=function(){this._subscription&&this._dispose()},t.prototype.transform=function(t){return this._obj?t!==this._obj?(this._dispose(),this.transform(t)):this._latestValue===this._latestReturnedValue?this._latestReturnedValue:(this._latestReturnedValue=this._latestValue,e.WrappedValue.wrap(this._latestValue)):(t&&this._subscribe(t),this._latestReturnedValue=this._latestValue,this._latestValue)},t.prototype._subscribe=function(t){var e=this;this._obj=t,this._strategy=this._selectStrategy(t),this._subscription=this._strategy.createSubscription(t,function(n){return e._updateLatestValue(t,n)})},t.prototype._selectStrategy=function(n){if(e.ɵisPromise(n))return ut;if(e.ɵisObservable(n))return ct;throw a(t,n)},t.prototype._dispose=function(){this._strategy.dispose(this._subscription),this._latestValue=null,this._latestReturnedValue=null,this._subscription=null,this._obj=null},t.prototype._updateLatestValue=function(t,e){t===this._obj&&(this._latestValue=e,this._ref.markForCheck())},t}();lt.decorators=[{type:e.Pipe,args:[{name:"async",pure:!1}]}],lt.ctorParameters=function(){return[{type:e.ChangeDetectorRef}]};var pt=function(){function t(){}return t.prototype.transform=function(e){if(!e)return e;if("string"!=typeof e)throw a(t,e);return e.toLowerCase()},t}();pt.decorators=[{type:e.Pipe,args:[{name:"lowercase"}]}],pt.ctorParameters=function(){return[]};var ht=function(){function t(){}return t.prototype.transform=function(e){if(!e)return e;if("string"!=typeof e)throw a(t,e);return e.split(/\b/g).map(function(t){return u(t)}).join("")},t}();ht.decorators=[{type:e.Pipe,args:[{name:"titlecase"}]}],ht.ctorParameters=function(){return[]};var ft=function(){function t(){}return t.prototype.transform=function(e){if(!e)return e;if("string"!=typeof e)throw a(t,e);return e.toUpperCase()},t}();ft.decorators=[{type:e.Pipe,args:[{name:"uppercase"}]}],ft.ctorParameters=function(){return[]};var dt={};dt.Decimal=0,dt.Percent=1,dt.Currency=2,dt[dt.Decimal]="Decimal",dt[dt.Percent]="Percent",dt[dt.Currency]="Currency";var yt=function(){function t(){}return t.format=function(t,e,n,r){var o=void 0===r?{}:r,i=o.minimumIntegerDigits,s=o.minimumFractionDigits,a=o.maximumFractionDigits,u=o.currency,c=o.currencyAsSymbol,l=void 0===c?!1:c,p={minimumIntegerDigits:i,minimumFractionDigits:s,maximumFractionDigits:a,style:dt[n].toLowerCase()};return n==dt.Currency&&(p.currency=u,p.currencyDisplay=l?"symbol":"code"),new Intl.NumberFormat(e,p).format(t)},t}(),vt=/((?:[^yMLdHhmsazZEwGjJ']+)|(?:'(?:[^']|'')*')|(?:E+|y+|M+|L+|d+|H+|h+|J+|j+|m+|s+|a|z|Z|G+|w+))(.*)/,mt={yMMMdjms:g(m([y("year",1),v("month",3),y("day",1),y("hour",1),y("minute",1),y("second",1)])),yMdjm:g(m([y("year",1),y("month",1),y("day",1),y("hour",1),y("minute",1)])),yMMMMEEEEd:g(m([y("year",1),v("month",4),v("weekday",4),y("day",1)])),yMMMMd:g(m([y("year",1),v("month",4),y("day",1)])),yMMMd:g(m([y("year",1),v("month",3),y("day",1)])),yMd:g(m([y("year",1),y("month",1),y("day",1)])),jms:g(m([y("hour",1),y("second",1),y("minute",1)])),jm:g(m([y("hour",1),y("minute",1)]))},gt={yyyy:g(y("year",4)),yy:g(y("year",2)),y:g(y("year",1)),MMMM:g(v("month",4)),MMM:g(v("month",3)),MM:g(y("month",2)),M:g(y("month",1)),LLLL:g(v("month",4)),L:g(v("month",1)),dd:g(y("day",2)),d:g(y("day",1)),HH:c(p(g(d(y("hour",2),!1)))),H:p(g(d(y("hour",1),!1))),hh:c(p(g(d(y("hour",2),!0)))),h:p(g(d(y("hour",1),!0))),jj:g(y("hour",2)),j:g(y("hour",1)),mm:c(g(y("minute",2))),m:g(y("minute",1)),ss:c(g(y("second",2))),s:g(y("second",1)),sss:g(y("second",3)),EEEE:g(v("weekday",4)),EEE:g(v("weekday",3)),EE:g(v("weekday",2)),E:g(v("weekday",1)),a:l(g(d(y("hour",1),!0))),Z:f("short"),z:f("long"),ww:g({}),w:g({}),G:g(v("era",1)),GG:g(v("era",2)),GGG:g(v("era",3)),GGGG:g(v("era",4))},_t=new Map,bt=function(){function t(){}return t.format=function(t,e,n){return _(n,t,e)},t}(),wt=/^(\d+)?\.((\d+)(-(\d+))?)?$/,Ct=function(){function t(t){this._locale=t}return t.prototype.transform=function(e,n){return void 0===n&&(n=null),w(t,this._locale,e,dt.Decimal,n)},t}();Ct.decorators=[{type:e.Pipe,args:[{name:"number"}]}],Ct.ctorParameters=function(){return[{type:void 0,decorators:[{type:e.Inject,args:[e.LOCALE_ID]}]}]};var Et=function(){function t(t){this._locale=t}return t.prototype.transform=function(e,n){return void 0===n&&(n=null),w(t,this._locale,e,dt.Percent,n)},t}();Et.decorators=[{type:e.Pipe,args:[{name:"percent"}]}],Et.ctorParameters=function(){return[{type:void 0,decorators:[{type:e.Inject,args:[e.LOCALE_ID]}]}]};var St=function(){function t(t){this._locale=t}return t.prototype.transform=function(e,n,r,o){return void 0===n&&(n="USD"),void 0===r&&(r=!1),void 0===o&&(o=null),w(t,this._locale,e,dt.Currency,o,n,r)},t}();St.decorators=[{type:e.Pipe,args:[{name:"currency"}]}],St.ctorParameters=function(){return[{type:void 0,decorators:[{type:e.Inject,args:[e.LOCALE_ID]}]}]};var xt=/^(\d{4})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,Tt=function(){function t(t){this._locale=t}return t.prototype.transform=function(e,n){void 0===n&&(n="mediumDate");var r;if(S(e)||e!==e)return null;if("string"==typeof e&&(e=e.trim()),x(e))r=e;else if(E(e))r=new Date(parseFloat(e));else if("string"==typeof e&&/^(\d{4}-\d{1,2}-\d{1,2})$/.test(e)){var o=e.split("-").map(function(t){return parseInt(t,10)}),i=o[0],s=o[1],u=o[2];r=new Date(i,s-1,u)}else r=new Date(e);if(!x(r)){var c=void 0;if("string"!=typeof e||!(c=e.match(xt)))throw a(t,e);r=T(c)}return bt.format(r,this._locale,t._ALIASES[n]||n)},t}();Tt._ALIASES={medium:"yMMMdjms","short":"yMdjm",fullDate:"yMMMMEEEEd",longDate:"yMMMMd",mediumDate:"yMMMd",shortDate:"yMd",mediumTime:"jms",shortTime:"jm"},Tt.decorators=[{type:e.Pipe,args:[{name:"date",pure:!0}]}],Tt.ctorParameters=function(){return[{type:void 0,decorators:[{type:e.Inject,args:[e.LOCALE_ID]}]}]};var Pt=/#/g,At=function(){function t(t){this._localization=t}return t.prototype.transform=function(e,n){if(null==e)return"";if("object"!=typeof n||null===n)throw a(t,n);var r=o(e,Object.keys(n),this._localization);return n[r].replace(Pt,e.toString())},t}();At.decorators=[{type:e.Pipe,args:[{name:"i18nPlural",pure:!0}]}],At.ctorParameters=function(){return[{type:U}]};var Ot=function(){function t(){}return t.prototype.transform=function(e,n){if(null==e)return"";if("object"!=typeof n||"string"!=typeof e)throw a(t,n);return n.hasOwnProperty(e)?n[e]:n.hasOwnProperty("other")?n.other:""},t}();Ot.decorators=[{type:e.Pipe,args:[{name:"i18nSelect",pure:!0}]}],Ot.ctorParameters=function(){return[]};var Mt=function(){function t(){}return t.prototype.transform=function(t){return JSON.stringify(t,null,2)},t}();Mt.decorators=[{type:e.Pipe,args:[{name:"json",pure:!1}]}],Mt.ctorParameters=function(){return[]};var Rt=function(){function t(){}return t.prototype.transform=function(e,n,r){if(null==e)return e;if(!this.supports(e))throw a(t,e);return e.slice(n,r)},t.prototype.supports=function(t){return"string"==typeof t||Array.isArray(t)},t}();Rt.decorators=[{type:e.Pipe,args:[{name:"slice",pure:!1}]}],Rt.ctorParameters=function(){return[]};var kt=[lt,ft,pt,Mt,Rt,Ct,Et,ht,St,Tt,At,Ot],It=function(){function t(){}return t}();It.decorators=[{type:e.NgModule,args:[{declarations:[it,kt],exports:[it,kt],providers:[{provide:U,useClass:B}]}]}],It.ctorParameters=function(){return[]};var Nt="browser",Dt="server",jt="browserWorkerApp",Lt="browserWorkerUi",Vt=new e.Version("4.0.1");t.NgLocaleLocalization=B,t.NgLocalization=U,t.CommonModule=It,t.NgClass=q,t.NgFor=Q,t.NgForOf=W,t.NgForOfContext=G,t.NgIf=$,t.NgIfContext=X,t.NgPlural=et,t.NgPluralCase=nt,t.NgStyle=rt,t.NgSwitch=Y,t.NgSwitchCase=J,t.NgSwitchDefault=tt,t.NgTemplateOutlet=ot,t.NgComponentOutlet=z,t.AsyncPipe=lt,t.DatePipe=Tt,t.I18nPluralPipe=At,t.I18nSelectPipe=Ot,t.JsonPipe=Mt,t.LowerCasePipe=pt,t.CurrencyPipe=St,t.DecimalPipe=Ct,t.PercentPipe=Et,t.SlicePipe=Rt,t.UpperCasePipe=ft,t.TitleCasePipe=ht,t.ɵPLATFORM_BROWSER_ID=Nt,t.ɵPLATFORM_SERVER_ID=Dt,t.ɵPLATFORM_WORKER_APP_ID=jt,t.ɵPLATFORM_WORKER_UI_ID=Lt,t.isPlatformBrowser=A,t.isPlatformServer=O,t.isPlatformWorkerApp=M,t.isPlatformWorkerUi=R,t.VERSION=Vt,t.PlatformLocation=I,t.LOCATION_INITIALIZED=N,t.LocationStrategy=D,t.APP_BASE_HREF=j,t.HashLocationStrategy=V,t.PathLocationStrategy=F,t.Location=L,t.ɵa=it,t.ɵb=kt,Object.defineProperty(t,"__esModule",{value:!0})})},{"@angular/core":8}],7:[function(e,n,r){!function(o,i){"object"==typeof r&&"undefined"!=typeof n?i(r,e("@angular/core")):"function"==typeof t&&t.amd?t(["exports","@angular/core"],i):i((o.ng=o.ng||{},o.ng.compiler=o.ng.compiler||{}),o.ng.core)}(this,function(t,e){"use strict";function n(t,e,n){void 0===n&&(n=null);var r=[],o=t.visit?function(e){return t.visit(e,n)||e.visit(t,n)}:function(e){return e.visit(t,n)};return e.forEach(function(t){var e=o(t);e&&r.push(e)}),r}function r(t){if(":"!=t[0])return[null,t];var e=t.indexOf(":",1);if(-1==e)throw new Error('Unsupported format "'+t+'" expecting ":namespace:name"');return[t.slice(1,e),t.slice(e+1)]}function o(t){return null===t?null:r(t)[0]}function i(t,e){return t?":"+t+":"+e:e}function s(t){return ho[t.toLowerCase()]||fo}function a(t){return t.replace(wo,function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return t[1].toUpperCase()})}function u(t,e){return l(t,":",e)}function c(t,e){return l(t,".",e)}function l(t,e,n){var r=t.indexOf(e);return-1==r?n:[t.slice(0,r).trim(),t.slice(r+1).trim()]}function p(t,e,n){return Array.isArray(t)?e.visitArray(t,n):y(t)?e.visitStringMap(t,n):null==t||"string"==typeof t||"number"==typeof t||"boolean"==typeof t?e.visitPrimitive(t,n):e.visitOther(t,n)}function h(t){var e=Error(t);return e[So]=!0,e}function f(t){return t[So]}function d(t){return t.replace(/([.*+?^=!:${}()|[\]\/\\])/g,"\\$1")}function y(t){return"object"==typeof t&&null!==t&&Object.getPrototypeOf(t)===xo}function v(t){for(var e="",n=0;n<t.length;n++){var r=t.charCodeAt(n);if(r>=55296&&56319>=r&&t.length>n+1){var o=t.charCodeAt(n+1);o>=56320&&57343>=o&&(n++,r=(r-55296<<10)+o-56320+65536)}127>=r?e+=String.fromCharCode(r):2047>=r?e+=String.fromCharCode(r>>6&31|192,63&r|128):65535>=r?e+=String.fromCharCode(r>>12|224,r>>6&63|128,63&r|128):2097151>=r&&(e+=String.fromCharCode(r>>18&7|240,r>>12&63|128,r>>6&63|128,63&r|128))}return e}function m(t){return t.replace(/\W/g,"_")}function g(t){if(!t||!t.reference)return null;var n=t.reference;if(n instanceof ao)return n.name;if(n.__anonymousType)return n.__anonymousType;var r=e.ɵstringify(n);return r.indexOf("(")>=0?(r="anonymous_"+Vo++,n.__anonymousType=r):r=m(r),r}function _(t){var n=t.reference;return n instanceof ao?n.filePath:e.ɵreflector.importUri(n)}function b(t,e){return"View_"+g({reference:t})+"_"+e}function w(t){return"RenderType_"+g({reference:t})}function C(t){return"HostView_"+g({reference:t})}function E(t){return"Wrapper_"+g({reference:t})}function S(t){return g({reference:t})+"NgFactory"}function x(t){return null!=t.value?m(t.value):g(t.identifier)}function T(t){return null!=t.identifier?t.identifier.reference:t.value}function P(t,n,r){var o=vo.parse(n.selector)[0].getMatchingElementTemplate();return Ho.create({isHost:!0,type:{reference:t,diDeps:[],lifecycleHooks:[]},template:new Bo({encapsulation:e.ViewEncapsulation.None,template:o,templateUrl:"",styles:[],styleUrls:[],ngContentSelectors:[],animations:[],isInline:!0}),changeDetection:e.ChangeDetectionStrategy.Default,inputs:[],outputs:[],host:{},isComponent:!0,selector:"*",providers:[],viewProviders:[],queries:[],viewQueries:[],componentViewType:r,rendererType:{id:"__Host__",encapsulation:e.ViewEncapsulation.None,styles:[],data:{}}})}function A(t){return t||[]}function O(t){return t.reduce(function(t,e){var n=Array.isArray(e)?O(e):e;return t.concat(n)},[])}function M(t){return t.replace(/(\w+:\/\/[\w:-]+)?(\/+)?/,"ng:///")}function R(t,e,n){var r;return r=n.isInline?e.type.reference instanceof ao?e.type.reference.filePath+"."+e.type.reference.name+".html":g(t)+"/"+g(e.type)+".html":n.templateUrl,M(r)}function k(t,e){var n=t.moduleUrl.split(/\/\\/g),r=n[n.length-1];return M("css/"+e+r+".ngstyle.js")}function I(t){return M(g(t.type)+"/module.ngfactory.js")}function N(t,e){return M(g(t)+"/"+g(e.type)+".ngfactory.js")}function D(t){return t>=Ci&&Pi>=t||t==bs}function j(t){return t>=$i&&Xi>=t}function L(t){return t>=as&&vs>=t||t>=Zi&&es>=t}function V(t){return t>=as&&cs>=t||t>=Zi&&Ji>=t||j(t)}function F(){return function(t){return t}}function U(t,n){if(e.isDevMode()&&null!=n){if(!Array.isArray(n))throw new Error("Expected '"+t+"' to be an array of strings.");for(var r=0;r<n.length;r+=1)if("string"!=typeof n[r])throw new Error("Expected '"+t+"' to be an array of strings.")}}function B(t,n){if(!(null==n||Array.isArray(n)&&2==n.length))throw new Error("Expected '"+t+"' to be an array, [start, end].");if(e.isDevMode()&&null!=n){var r=n[0],o=n[1];Cs.forEach(function(t){if(t.test(r)||t.test(o))throw new Error("['"+r+"', '"+o+"'] contains unusable interpolation symbol.")})}}function H(t,e){return new As(t,xs.Character,e,String.fromCharCode(e))}function q(t,e){return new As(t,xs.Identifier,0,e)}function z(t,e){return new As(t,xs.Keyword,0,e)}function G(t,e){return new As(t,xs.Operator,0,e)}function W(t,e){return new As(t,xs.String,0,e)}function K(t,e){return new As(t,xs.Number,e,"")}function Q(t,e){return new As(t,xs.Error,0,e)}function $(t){return t>=as&&vs>=t||t>=Zi&&es>=t||t==ss||t==Ri}function X(t){if(0==t.length)return!1;var e=new Ms(t);if(!$(e.peek))return!1;for(e.advance();e.peek!==wi;){if(!Z(e.peek))return!1;e.advance()}return!0}function Z(t){return L(t)||j(t)||t==ss||t==Ri}function Y(t){return t==us||t==Yi}function J(t){return t==Ui||t==Vi}function tt(t){return t===Ni||t===Oi||t===ws}function et(t){switch(t){case ls:return Ei;case cs:return xi;case ps:return Ti;case hs:return Ci;case ds:return Si;default:return t}}function nt(t){var e=parseInt(t);if(isNaN(e))throw new Error("Invalid integer literal when parsing "+t);return e}function rt(t){var e=d(t.start)+"([\\s\\S]*?)"+d(t.end);return new RegExp(e,"g")}function ot(t,e){var n=_(e),r=null!=n?"in "+t+" "+g(e)+" in "+n:"in "+t+" "+g(e),o=new Ls("",r);return new Vs(new js(o,null,null,null),new js(o,null,null,null))}function it(t,e,n){void 0===n&&(n=null);var r=[],o=t.visit?function(e){return t.visit(e,n)||e.visit(t,n)}:function(e){return e.visit(t,n)};return e.forEach(function(t){var e=o(t);e&&r.push(e)}),r}function st(t,e,n,r,o){return void 0===r&&(r=!1),void 0===o&&(o=Ss),new Js(new Ls(t,e),n,r,o).tokenize()}function at(t){var e=t===wi?"EOF":String.fromCharCode(t);return'Unexpected character "'+e+'"'}function ut(t){return'Unknown entity "'+t+'" - use the "&#<decimal>;" or "&#x<hex>;" syntax'}function ct(t){return!D(t)||t===wi}function lt(t){return D(t)||t===Ki||t===Hi||t===Ni||t===Oi||t===Wi}function pt(t){return(as>t||t>vs)&&(Zi>t||t>es)&&($i>t||t>Xi)}function ht(t){return t==zi||t==wi||!V(t)}function ft(t){return t==zi||t==wi||!L(t)}function dt(t,e,n){var r=n?t.indexOf(n.start,e)==e:!1;return t.charCodeAt(e)==ms&&!r}function yt(t){return t===Wi||L(t)}function vt(t,e){return mt(t)==mt(e)}function mt(t){return t>=as&&vs>=t?t-as+Zi:t}function gt(t){for(var e,n=[],r=0;r<t.length;r++){var o=t[r];e&&e.type==Ks.TEXT&&o.type==Ks.TEXT?(e.parts[0]+=o.parts[0],e.sourceSpan.end=o.sourceSpan.end):(e=o,n.push(e))}return n}function _t(t,e){return t.length>0&&t[t.length-1]===e}function bt(t){var e=new va(ya,t);return function(t,n,r,o){return e.toI18nMessage(t,n,r,o)}}function wt(t){return t.split(ma)[2]}function Ct(t,e,n,r){var o=new Ta(n,r);return o.extract(t,e)}function Et(t,e,n,r,o){var i=new Ta(r,o);return i.merge(t,e,n)}function St(t){return t instanceof Ws&&t.value&&t.value.startsWith("i18n")}function xt(t){return t instanceof Ws&&t.value&&"/i18n"===t.value}function Tt(t){return t.attrs.find(function(t){return t.name===_a})||null}function Pt(t){if(!t)return{meaning:"",description:"",id:""};var e=t.indexOf(Ea),n=t.indexOf(Ca),r=e>-1?[t.slice(0,e),t.slice(e+2)]:[t,""],o=r[0],i=r[1],s=n>-1?[o.slice(0,n),o.slice(n+1)]:["",o],a=s[0],u=s[1];return{meaning:a,description:u,id:i}}function At(){return Aa}function Ot(t){return t.id||kt(Rt(t.nodes).join("")+("["+t.meaning+"]"))}function Mt(t){if(t.id)return t.id;var e=new ka,n=t.nodes.map(function(t){return t.visit(e,null)});return Dt(n.join(""),t.meaning)}function Rt(t){return t.map(function(t){return t.visit(Ra,null)})}function kt(t){var e=v(t),n=zt(e,Ia.Big),r=8*e.length,o=new Array(80),i=[1732584193,4023233417,2562383102,271733878,3285377520],s=i[0],a=i[1],u=i[2],c=i[3],l=i[4];n[r>>5]|=128<<24-r%32,n[(r+64>>9<<4)+15]=r;for(var p=0;p<n.length;p+=16){for(var h=[s,a,u,c,l],f=h[0],d=h[1],y=h[2],m=h[3],g=h[4],_=0;80>_;_++){o[_]=16>_?n[p+_]:Ht(o[_-3]^o[_-8]^o[_-14]^o[_-16],1);var b=It(_,a,u,c),w=b[0],C=b[1],E=[Ht(s,5),w,l,C,o[_]].reduce(Vt);S=[c,u,Ht(a,30),s,E],l=S[0],c=S[1],u=S[2],a=S[3],s=S[4]}x=[Vt(s,f),Vt(a,d),Vt(u,y),Vt(c,m),Vt(l,g)],s=x[0],a=x[1],u=x[2],c=x[3],l=x[4]}return $t(Kt([s,a,u,c,l]));var S,x}function It(t,e,n,r){return 20>t?[e&n|~e&r,1518500249]:40>t?[e^n^r,1859775393]:60>t?[e&n|e&r|n&r,2400959708]:[e^n^r,3395469782]}function Nt(t){var e=v(t),n=[jt(e,0),jt(e,102072)],r=n[0],o=n[1];return 0!=r||0!=o&&1!=o||(r=319790063^r,o=-1801410264^o),[r,o]}function Dt(t,e){var n=Nt(t),r=n[0],o=n[1];if(e){var i=Nt(e),s=i[0],a=i[1];u=Ut(qt([r,o],1),[s,a]),r=u[0],o=u[1]}return Xt(Kt([2147483647&r,o]));var u}function jt(t,e){var n,r=[2654435769,2654435769],o=r[0],i=r[1],s=t.length;for(n=0;s>=n+12;n+=12)o=Vt(o,Wt(t,n,Ia.Little)),i=Vt(i,Wt(t,n+4,Ia.Little)),e=Vt(e,Wt(t,n+8,Ia.Little)),a=Lt([o,i,e]),o=a[0],i=a[1],e=a[2];return o=Vt(o,Wt(t,n,Ia.Little)),i=Vt(i,Wt(t,n+4,Ia.Little)),e=Vt(e,s),e=Vt(e,Wt(t,n+8,Ia.Little)<<8),Lt([o,i,e])[2];var a}function Lt(t){var e=t[0],n=t[1],r=t[2];return e=Bt(e,n),e=Bt(e,r),e^=r>>>13,n=Bt(n,r),n=Bt(n,e),n^=e<<8,r=Bt(r,e),r=Bt(r,n),r^=n>>>13,e=Bt(e,n),e=Bt(e,r),e^=r>>>12,n=Bt(n,r),n=Bt(n,e),n^=e<<16,r=Bt(r,e),r=Bt(r,n),r^=n>>>5,e=Bt(e,n),e=Bt(e,r),e^=r>>>3,n=Bt(n,r),n=Bt(n,e),n^=e<<10,r=Bt(r,e),r=Bt(r,n),r^=n>>>15,[e,n,r]}function Vt(t,e){return Ft(t,e)[1]}function Ft(t,e){var n=(65535&t)+(65535&e),r=(t>>>16)+(e>>>16)+(n>>>16);return[r>>>16,r<<16|65535&n]}function Ut(t,e){var n=t[0],r=t[1],o=e[0],i=e[1],s=Ft(r,i),a=s[0],u=s[1],c=Vt(Vt(n,o),a);return[c,u]}function Bt(t,e){var n=(65535&t)-(65535&e),r=(t>>16)-(e>>16)+(n>>16);return r<<16|65535&n}function Ht(t,e){return t<<e|t>>>32-e}function qt(t,e){var n=t[0],r=t[1],o=n<<e|r>>>32-e,i=r<<e|n>>>32-e;return[o,i]}function zt(t,e){for(var n=Array(t.length+3>>>2),r=0;r<n.length;r++)n[r]=Wt(t,4*r,e);return n}function Gt(t,e){return e>=t.length?0:255&t.charCodeAt(e)}function Wt(t,e,n){var r=0;if(n===Ia.Big)for(var o=0;4>o;o++)r+=Gt(t,e+o)<<24-8*o;else for(var o=0;4>o;o++)r+=Gt(t,e+o)<<8*o;return r}function Kt(t){return t.reduce(function(t,e){return t+Qt(e)},"")}function Qt(t){for(var e="",n=0;4>n;n++)e+=String.fromCharCode(t>>>8*(3-n)&255);return e}function $t(t){for(var e="",n=0;n<t.length;n++){var r=Gt(t,n);e+=(r>>>4).toString(16)+(15&r).toString(16)}return e.toLowerCase()}function Xt(t){for(var e="",n="1",r=t.length-1;r>=0;r--)e=Zt(e,Yt(Gt(t,r),n)),n=Yt(256,n);return e.split("").reverse().join("")}function Zt(t,e){for(var n="",r=Math.max(t.length,e.length),o=0,i=0;r>o||i;o++){var s=i+ +(t[o]||0)+ +(e[o]||0);s>=10?(i=1,n+=s-10):(i=0,n+=s)}return n}function Yt(t,e){ +for(var n="",r=e;0!==t;t>>>=1)1&t&&(n=Zt(n,r)),r=Zt(r,r);return n}function Jt(t){return t.map(function(t){return t.visit(La)}).join("")}function te(t){return qa.reduce(function(t,e){return t.replace(e[0],e[1])},t)}function ee(t){switch(t.toLowerCase()){case"br":return"lb";case"img":return"image";default:return"x-"+t}}function ne(t){return Mt(t)}function re(t){return t.toUpperCase().replace(/[^A-Z0-9_]/g,"_")}function oe(t,e,n){Object.defineProperty(t,e,{configurable:!0,enumerable:!0,get:function(){var r=n();return Object.defineProperty(t,e,{enumerable:!0,value:r}),r},set:function(){throw new Error("Could not overwrite an XTB translation")}})}function ie(t){switch(t=(t||"xlf").toLowerCase()){case"xmb":return new au;case"xtb":return new fu;case"xliff":case"xlf":default:return new Ya}}function se(t,e,n){return void 0===e&&(e=null),void 0===n&&(n="src"),null==e?"@angular/"+t:"@angular/"+t+"/"+n+"/"+e}function ae(t){var n=t.name;return e.ɵreflector.resolveIdentifier(n,t.moduleUrl,null,t.runtime)}function ue(t){return{reference:ae(t)}}function ce(t){return{identifier:t}}function le(t){return ce(ue(t))}function pe(t){var e=new xu;return new Eu(it(e,t),e.isExpanded,e.errors)}function he(t,e){var n=t.cases.map(function(t){-1!=Cu.indexOf(t.value)||t.value.match(/^=\d+$/)||e.push(new Su(t.valueSourceSpan,'Plural cases should be "=<number>" or one of '+Cu.join(", ")));var n=pe(t.expression);return e.push.apply(e,n.errors),new Gs("ng-template",[new zs("ngPluralCase",""+t.value,t.valueSourceSpan)],n.nodes,t.sourceSpan,t.sourceSpan,t.sourceSpan)}),r=new zs("[ngPlural]",t.switchValue,t.switchValueSourceSpan);return new Gs("ng-container",[r],n,t.sourceSpan,t.sourceSpan,t.sourceSpan)}function fe(t,e){var n=t.cases.map(function(t){var n=pe(t.expression);return e.push.apply(e,n.errors),"other"===t.value?new Gs("ng-template",[new zs("ngSwitchDefault","",t.valueSourceSpan)],n.nodes,t.sourceSpan,t.sourceSpan,t.sourceSpan):new Gs("ng-template",[new zs("ngSwitchCase",""+t.value,t.valueSourceSpan)],n.nodes,t.sourceSpan,t.sourceSpan,t.sourceSpan)}),r=new zs("[ngSwitch]",t.switchValue,t.switchValueSourceSpan);return new Gs("ng-container",[r],n,t.sourceSpan,t.sourceSpan,t.sourceSpan)}function de(t,e){var n=e.useExisting,r=e.useValue,o=e.deps;return{token:t.token,useClass:t.useClass,useExisting:n,useFactory:t.useFactory,useValue:r,deps:o,multi:t.multi}}function ye(t,e){var n=e.eager,r=e.providers;return new ro(t.token,t.multiProvider,t.eager||n,r,t.providerType,t.lifecycleHooks,t.sourceSpan)}function ve(t,e,n){var r=new Map;t.forEach(function(t){var o={token:{identifier:t.type},useClass:t.type};me([o],t.isComponent?oo.Component:oo.Directive,!0,e,n,r)});var o=t.filter(function(t){return t.isComponent}).concat(t.filter(function(t){return!t.isComponent}));return o.forEach(function(t){me(t.providers,oo.PublicService,!1,e,n,r),me(t.viewProviders,oo.PrivateService,!1,e,n,r)}),r}function me(t,e,n,r,o,i){t.forEach(function(t){var s=i.get(T(t.token));if(null!=s&&!!s.multiProvider!=!!t.multi&&o.push(new Tu("Mixing multi and non multi provider is not possible for token "+x(s.token),r)),s)t.multi||(s.providers.length=0),s.providers.push(t);else{var a=t.token.identifier&&t.token.identifier.lifecycleHooks?t.token.identifier.lifecycleHooks:[],u=!(t.useClass||t.useExisting||t.useFactory);s=new ro(t.token,t.multi,n||u,[t],e,a,r),i.set(T(t.token),s)}})}function ge(t){var e=1,n=new Map;return t.viewQueries&&t.viewQueries.forEach(function(t){return be(n,{meta:t,queryId:e++})}),n}function _e(t,e){var n=t,r=new Map;return e.forEach(function(t){t.queries&&t.queries.forEach(function(t){return be(r,{meta:t,queryId:n++})})}),r}function be(t,e){e.meta.selectors.forEach(function(n){var r=t.get(T(n));r||(r=[],t.set(T(n),r)),r.push(e)})}function we(t){if(null==t||0===t.length||"/"==t[0])return!1;var e=t.match(Nu);return null===e||"package"==e[1]||"asset"==e[1]}function Ce(t,e,n){var r=[],o=n.replace(Iu,"").replace(ku,function(){for(var n=[],o=0;o<arguments.length;o++)n[o]=arguments[o];var i=n[1]||n[2];return we(i)?(r.push(t.resolve(e,i)),""):n[0]});return new Ru(o,r)}function Ee(t){return"@"==t[0]}function Se(t,n,r,o){var i=[];return vo.parse(n).forEach(function(e){var n=e.element?[e.element]:t.allKnownElementNames(),s=new Set(e.notSelectors.filter(function(t){return t.isElementSelector()}).map(function(t){return t.element})),a=n.filter(function(t){return!s.has(t)});i.push.apply(i,a.map(function(e){return t.securityContext(e,r,o)}))}),0===i.length?[e.SecurityContext.NONE]:Array.from(new Set(i)).sort()}function xe(t){var e=null,n=null,o=null,i=!1,s=null;t.attrs.forEach(function(t){var r=t.name.toLowerCase();r==zu?e=t.value:r==Qu?n=t.value:r==Ku?o=t.value:t.name==Yu?i=!0:t.name==Ju&&t.value.length>0&&(s=t.value)}),e=Te(e);var a=t.name.toLowerCase(),u=tc.OTHER;return r(a)[1]==Gu?u=tc.NG_CONTENT:a==Xu?u=tc.STYLE:a==Zu?u=tc.SCRIPT:a==Wu&&o==$u&&(u=tc.STYLESHEET),new ec(u,e,n,i,s)}function Te(t){return null===t||0===t.length?"*":t}function Pe(t){return function(e){return-1!==t.indexOf(e.msg)?(wc[e.msg]=(wc[e.msg]||0)+1,wc[e.msg]<=1):!0}}function Ae(t){return t.trim().split(/\s+/g)}function Oe(t,e){var n=new vo,o=r(t)[1];n.setElement(o);for(var i=0;i<e.length;i++){var s=e[i][0],a=r(s)[1],u=e[i][1];if(n.addAttribute(a,u),s.toLowerCase()==mc){var c=Ae(u);c.forEach(function(t){return n.addClassName(t)})}}return n}function Me(t){return t instanceof Bs&&0==t.value.trim().length}function Re(t){var e=new Map;return t.forEach(function(t){e.get(t.type.reference)||e.set(t.type.reference,t)}),Array.from(e.values())}function ke(t){return t instanceof mi&&(t=t.ast),t instanceof Yo}function Ie(t,e,n){var o=r(t.name)[1];return o===fc?!0:o.toLowerCase()===dc?e&&o.toLowerCase()===dc?(n(_c,t.sourceSpan),!0):!1:void 0}function Ne(){return new Nc}function De(){return new Nc(".")}function je(t){var e=Ve(t);return e&&e[jc.Scheme]||""}function Le(t,e,n,r,o,i,s){var a=[];return null!=t&&a.push(t+":"),null!=n&&(a.push("//"),null!=e&&a.push(e+"@"),a.push(n),null!=r&&a.push(":"+r)),null!=o&&a.push(o),null!=i&&a.push("?"+i),null!=s&&a.push("#"+s),a.join("")}function Ve(t){return t.match(Dc)}function Fe(t){if("/"==t)return"/";for(var e="/"==t[0]?"/":"",n="/"===t[t.length-1]?"/":"",r=t.split("/"),o=[],i=0,s=0;s<r.length;s++){var a=r[s];switch(a){case"":case".":break;case"..":o.length>0?o.pop():i++;break;default:o.push(a)}}if(""==e){for(;i-->0;)o.unshift("..");0===o.length&&o.push(".")}return e+o.join("/")+n}function Ue(t){var e=t[jc.Path];return e=null==e?"":Fe(e),t[jc.Path]=e,Le(t[jc.Scheme],t[jc.UserInfo],t[jc.Domain],t[jc.Port],e,t[jc.QueryData],t[jc.Fragment])}function Be(t,e){var n=Ve(encodeURI(e)),r=Ve(t);if(null!=n[jc.Scheme])return Ue(n);n[jc.Scheme]=r[jc.Scheme];for(var o=jc.Scheme;o<=jc.Port;o++)null==n[o]&&(n[o]=r[o]);if("/"==n[jc.Path][0])return Ue(n);var i=r[jc.Path];null==i&&(i="/");var s=i.lastIndexOf("/");return i=i.substring(0,s+1)+n[jc.Path],n[jc.Path]=i,Ue(n)}function He(t){return t instanceof e.Directive}function qe(t,e){for(var n=t.length-1;n>=0;n--)if(e(t[n]))return t[n];return null}function ze(t){var e=Ke(t);return e[0]+".ngfactory"+e[1]}function Ge(t){return t.replace(Hc,".")}function We(t){return Hc.test(t)}function Ke(t){if(t.endsWith(".d.ts"))return[t.slice(0,-5),".ts"];var e=t.lastIndexOf(".");return-1!==e?[t.substring(0,e),t.substring(e)]:[t,""]}function Qe(t){var e=t.replace(Bc,"");return e+".ngsummary.json"}function $e(t,n){return e.ɵreflector.hasLifecycleHook(n,Xe(t))}function Xe(t){switch(t){case e.ɵLifecycleHooks.OnInit:return"ngOnInit";case e.ɵLifecycleHooks.OnDestroy:return"ngOnDestroy";case e.ɵLifecycleHooks.DoCheck:return"ngDoCheck";case e.ɵLifecycleHooks.OnChanges:return"ngOnChanges";case e.ɵLifecycleHooks.AfterContentInit:return"ngAfterContentInit";case e.ɵLifecycleHooks.AfterContentChecked:return"ngAfterContentChecked";case e.ɵLifecycleHooks.AfterViewInit:return"ngAfterViewInit";case e.ɵLifecycleHooks.AfterViewChecked:return"ngAfterViewChecked"}}function Ze(t){return t instanceof e.NgModule}function Ye(t){return t instanceof e.Pipe}function Je(t,n){if(void 0===n&&(n=[]),t)for(var r=0;r<t.length;r++){var o=e.resolveForwardRef(t[r]);Array.isArray(o)?Je(o,n):n.push(o)}return n}function tn(t){return t?Array.from(new Set(t)):[]}function en(t){return tn(Je(t))}function nn(t){return t instanceof ao||t instanceof e.Type}function rn(t,e,n){if(e instanceof ao)return t.resourceUri(e);var r=n.moduleId;if("string"==typeof r){var o=je(r);return o?r:"package:"+r+bo}if(null!==r&&void 0!==r)throw h('moduleId should be a string in "'+sn(e)+"\". See https://goo.gl/wIDDiL for more information.\nIf you're using Webpack you should inline the template and the styles, see https://goo.gl/X2J8zc.");return t.importUri(e)}function on(t,e){p(t,new Qc,e)}function sn(t){return t instanceof ao?t.name+" in "+t.filePath:e.ɵstringify(t)}function an(t){var n=Error("Can't compile synchronously as "+e.ɵstringify(t)+" is still being loaded!");return n[e.ɵERROR_COMPONENT_TYPE]=t,n}function un(t){var e=new Xl;return e.visitAllStatements(t,null),e.varNames}function cn(t,e){if(!e)return t;var n=new Zl(e);return t.visitStatement(n,null)}function ln(t,e){if(!e)return t;var n=new Zl(e);return t.visitExpression(n,null)}function pn(t,e,n){return void 0===e&&(e=null),new ul(t,e,n)}function hn(t,e,n){return void 0===e&&(e=null),new ml(t,null,e,n)}function fn(t,e,n){return void 0===e&&(e=null),void 0===n&&(n=null),null!=t?dn(hn(t,e),n):null}function dn(t,e){return void 0===e&&(e=null),null!=t?new Jc(t,e):null}function yn(t,e,n){return void 0===e&&(e=null),new Tl(t,e,n)}function vn(t,e,n){return void 0===e&&(e=null),void 0===n&&(n=!1),new Al(t.map(function(t){return new Pl(t[0],t[1],n)}),e)}function mn(t,e){return new _l(t,e)}function gn(t,e,n,r){return void 0===n&&(n=null),new Cl(t,e,n,r)}function _n(t,e,n){return void 0===e&&(e=null),new vl(t,e,n)}function bn(t){var e=t.parentArgs||[],n=t.parent?[Rl.callFn(e).toStmt()]:[],r=wn(Array.isArray(t.builders)?t.builders:[t.builders]),o=new Hl(null,t.ctorParams||[],n.concat(r.ctorStmts));return new zl(t.name,t.parent,r.fields,r.getters,o,r.methods,t.modifiers||[],t.sourceSpan)}function wn(t){return{fields:[].concat.apply([],t.map(function(t){return t.fields||[]})),methods:[].concat.apply([],t.map(function(t){return t.methods||[]})),getters:[].concat.apply([],t.map(function(t){return t.getters||[]})),ctorStmts:[].concat.apply([],t.map(function(t){return t.ctorStmts||[]}))}}function Cn(t,e){return void 0===e&&(e=null),p(t,new Jl,e)}function En(t){return null!=t.value?_n(t.value):hn(t.identifier)}function Sn(t){var e="";t=v(t);for(var n=0;n<t.length;){var r=t.charCodeAt(n++),o=t.charCodeAt(n++),i=t.charCodeAt(n++);e+=Tn(r>>2),e+=Tn((3&r)<<4|(isNaN(o)?0:o>>4)),e+=isNaN(o)?"=":Tn((15&o)<<2|i>>6),e+=isNaN(o)||isNaN(i)?"=":Tn(63&i)}return e}function xn(t){t=0>t?(-t<<1)+1:t<<1;var e="";do{var n=31&t;t>>=5,t>0&&(n=32|n),e+=Tn(n)}while(t>0);return e}function Tn(t){if(0>t||t>=64)throw new Error("Can only encode value in the range [0, 63]");return cp[t]}function Pn(t,e,n){if(void 0===n&&(n=!0),null==t)return null;var r=t.replace(lp,function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return"$"==t[0]?e?"\\$":"$":"\n"==t[0]?"\\n":"\r"==t[0]?"\\r":"\\"+t[0]}),o=n||!pp.test(r);return o?"'"+r+"'":r}function An(t){for(var e="",n=0;t>n;n++)e+=hp;return e}function On(t){var e=new bp(gp,{fileNameToModuleName:function(t){return t},getImportAs:function(){return null},getTypeArity:function(){return null}}),n=vp.createRoot([]),r=Array.isArray(t)?t:[t];return r.forEach(function(t){if(t instanceof Dl)t.visitStatement(e,n);else if(t instanceof sl)t.visitExpression(e,n);else{if(!(t instanceof Xc))throw new Error("Don't know how to print debug info for "+t);t.visitType(e,n)}}),n.toSource()}function Mn(t,e){for(var n=0,r=e;n<r.length;n++){var o=r[n];wp[o.toLowerCase()]=t}}function Rn(t){switch(t){case"width":case"height":case"minWidth":case"minHeight":case"maxWidth":case"maxHeight":case"left":case"top":case"bottom":case"right":case"fontSize":case"outlineWidth":case"outlineOffset":case"paddingTop":case"paddingLeft":case"paddingBottom":case"paddingRight":case"marginTop":case"marginLeft":case"marginBottom":case"marginRight":case"borderRadius":case"borderWidth":case"borderTopWidth":case"borderLeftWidth":case"borderRightWidth":case"borderBottomWidth":case"textIndent":return!0;default:return!1}}function kn(t){return t.replace(Kp,"")}function In(t){var e=t.match(Qp);return e?e[0]:""}function Nn(t,e){var n=Dn(t),r=0;return n.escapedString.replace($p,function(){for(var t=[],o=0;o<arguments.length;o++)t[o]=arguments[o];var i=t[2],s="",a=t[4],u="";a&&a.startsWith("{"+Jp)&&(s=n.blocks[r++],a=a.substring(Jp.length+1),u="{");var c=e(new th(i,s));return""+t[1]+c.selector+t[3]+u+c.content+a})}function Dn(t){for(var e=t.split(Xp),n=[],r=[],o=0,i=[],s=0;s<e.length;s++){var a=e[s];a==Yp&&o--,o>0?i.push(a):(i.length>0&&(r.push(i.join("")),n.push(Jp),i=[]),n.push(a)),a==Zp&&o++}return i.length>0&&(r.push(i.join("")),n.push(Jp)),new eh(n.join(""),r)}function jn(t){var e="styles";return t&&(e+="_"+g(t.type)),e}function Ln(t,e,n,r){t||(t=new yh);var o=Vn({createLiteralArrayConverter:function(){return function(t){return yn(t)}},createLiteralMapConverter:function(t){return function(e){return vn(t.map(function(t,n){return[t,e[n]]}))}},createPipeConverter:function(t){throw new Error("Illegal State: Actions are not allowed to contain pipes. Pipe: "+t)}},n),i=new dh(t,e,r),s=[];Kn(o.visit(i,hh.Statement),s),qn(i.temporaryCount,r,s);var a=s.length-1,u=null;if(a>=0){var c=s[a],l=Xn(c);l&&(u=$n(r),s[a]=u.set(l.cast(nl).notIdentical(_n(!1))).toDeclStmt(null,[Nl.Final]))}return new lh(s,u)}function Vn(t,e){return Un(t,e)}function Fn(t,e,n,r){t||(t=new yh);var o=Qn(r),i=[],s=new dh(t,e,r),a=n.visit(s,hh.Expression);if(s.temporaryCount)for(var u=0;u<s.temporaryCount;u++)i.push(Hn(r,u));return i.push(o.set(a).toDeclStmt(null,[Nl.Final])),new ph(i,o)}function Un(t,e){var n=new fh(t);return e.visit(n)}function Bn(t,e){return"tmp_"+t+"_"+e}function Hn(t,e){return new jl(Bn(t,e),kl)}function qn(t,e,n){for(var r=t-1;r>=0;r--)n.unshift(Hn(e,r))}function zn(t,e){if(t!==hh.Statement)throw new Error("Expected a statement, but saw "+e)}function Gn(t,e){if(t!==hh.Expression)throw new Error("Expected an expression, but saw "+e)}function Wn(t,e){return t===hh.Statement?e.toStmt():e}function Kn(t,e){Array.isArray(t)?t.forEach(function(t){return Kn(t,e)}):e.push(t)}function Qn(t){return pn("currVal_"+t)}function $n(t){return pn("pd_"+t)}function Xn(t){return t instanceof Vl?t.expr:t instanceof Fl?t.value:null}function Zn(t){return t.multiProvider?Yn(t.providers):Jn(t.providerType,t.providers[0])}function Yn(t){function e(t,e){return e.map(function(e,o){var i="p"+t+"_"+o;return r.push(new wl(i,nl)),n.push(er(e)),pn(i)})}var n=[],r=[],o=t.map(function(t,n){var r;if(t.useClass){var o=e(n,t.deps||t.useClass.diDeps);r=hn(t.useClass).instantiate(o)}else if(t.useFactory){var o=e(n,t.deps||t.useFactory.diDeps);r=hn(t.useFactory).callFn(o)}else if(t.useExisting){var o=e(n,[{token:t.useExisting}]);r=o[0]}else r=Cn(t.useValue);return r}),i=gn(r,[new Fl(yn(o))],rl);return{providerExpr:i,flags:512,depsExpr:yn(n)}}function Jn(t,e){var n,r,o;t===oo.Directive||t===oo.Component?(n=hn(e.useClass),r=8192,o=e.deps||e.useClass.diDeps):e.useClass?(n=hn(e.useClass),r=256,o=e.deps||e.useClass.diDeps):e.useFactory?(n=hn(e.useFactory),r=512,o=e.deps||e.useFactory.diDeps):e.useExisting?(n=kl,r=1024,o=[{token:e.useExisting}]):(n=Cn(e.useValue),r=128,o=[]);var i=yn(o.map(function(t){return er(t)}));return{providerExpr:n,flags:r,depsExpr:i}}function tr(t){return t.identifier?hn(t.identifier):_n(t.value)}function er(t){var e=t.isValue?Cn(t.value):tr(t.token),n=0;return t.isSkipSelf&&(n|=1),t.isOptional&&(n|=2),t.isValue&&(n|=8),0===n?e:yn([_n(n),e])}function nr(t){var e=t[t.length-1];return e instanceof to?e.hasViewContainer:e instanceof Jr?e.name===bh&&e.children.length?nr(e.children):e.hasViewContainer:e instanceof io}function rr(t){var n=0;switch(t){case e.ɵLifecycleHooks.AfterContentChecked:n=1048576;break;case e.ɵLifecycleHooks.AfterContentInit:n=524288;break;case e.ɵLifecycleHooks.AfterViewChecked:n=4194304;break;case e.ɵLifecycleHooks.AfterViewInit:n=2097152;break;case e.ɵLifecycleHooks.DoCheck:n=131072;break;case e.ɵLifecycleHooks.OnChanges:n=262144;break;case e.ɵLifecycleHooks.OnDestroy:n=65536;break;case e.ɵLifecycleHooks.OnInit:n=32768}return n}function or(t,e){switch(t.type){case so.Attribute:return yn([_n(1),_n(t.name),_n(t.securityContext)]);case so.Property:return yn([_n(8),_n(t.name),_n(t.securityContext)]);case so.Animation:var n=8|(e&&e.directive.isComponent?32:16);return yn([_n(n),_n("@"+t.name),_n(t.securityContext)]);case so.Class:return yn([_n(2),_n(t.name),kl]);case so.Style:return yn([_n(4),_n(t.name),_n(t.unit)])}}function ir(t){var e=Object.create(null);t.attrs.forEach(function(t){e[t.name]=t.value}),t.directives.forEach(function(t){Object.keys(t.directive.hostAttributes).forEach(function(n){var r=t.directive.hostAttributes[n],o=e[n];e[n]=null!=o?sr(n,o,r):r})});return yn(Object.keys(e).sort().map(function(t){return yn([_n(t),_n(e[t])])}))}function sr(t,e,n){return t==mh||t==gh?e+" "+n:n}function ar(t,e){return xh.callFn(e.length>10?[Sh,_n(t),_n(1),yn(e)]:[Sh,_n(t),_n(0)].concat(e))}function ur(t,e,n){return hn(ue(wu.unwrapValue)).callFn([Sh,_n(t),_n(e),n])}function cr(t,e){return void 0===e&&(e=new Map),t.forEach(function(t){var n,r=new Set,o=new Set;t instanceof Jr?(cr(t.children,e),t.children.forEach(function(t){var n=e.get(t);n.staticQueryIds.forEach(function(t){return r.add(t)}),n.dynamicQueryIds.forEach(function(t){return o.add(t)})}),n=t.queryMatches):t instanceof to&&(cr(t.children,e),t.children.forEach(function(t){var n=e.get(t);n.staticQueryIds.forEach(function(t){return o.add(t)}),n.dynamicQueryIds.forEach(function(t){return o.add(t)})}),n=t.queryMatches),n&&n.forEach(function(t){return r.add(t.queryId)}),o.forEach(function(t){return r["delete"](t)}),e.set(t,{staticQueryIds:r,dynamicQueryIds:o})}),e}function lr(t){var e=new Set,n=new Set;return Array.from(t.values()).forEach(function(t){t.staticQueryIds.forEach(function(t){return e.add(t)}),t.dynamicQueryIds.forEach(function(t){return n.add(t)})}),n.forEach(function(t){return e["delete"](t)}),{staticQueryIds:e,dynamicQueryIds:n}}function pr(t){var e=t.find(function(t){return t.directive.isComponent});if(e&&e.directive.entryComponents.length){var n=e.directive.entryComponents.map(function(t){return hn({reference:t.componentFactory})}),r=le(wu.ComponentFactoryResolver),o={diDeps:[{isValue:!0,value:yn(n)},{token:r,isSkipSelf:!0,isOptional:!0},{token:le(wu.NgModuleRef)}],lifecycleHooks:[],reference:ae(wu.CodegenComponentFactoryResolver)};return new ro(r,!1,!0,[{token:r,multi:!1,useClass:o}],oo.PrivateService,[],e.sourceSpan)}return null}function hr(t,e){return t.isAnimation?{name:"@"+t.name+"."+t.phase,target:e&&e.directive.isComponent?"component":null}:t}function fr(t,e,n){var r=0;return r|=!n||!t.staticQueryIds.has(e)&&t.dynamicQueryIds.has(e)?268435456:134217728}function dr(t,e,n,r){var o=new Rh(e,t);n.forEach(function(t){return o.addOrMergeSummary({symbol:t.symbol,metadata:t.metadata})});for(var i=0;i<o.symbols.length;i++){var s=o.symbols[i];if(t.isLibraryFile(s.filePath)){var a=t.resolveSummary(s);if(!a){var u=e.resolveSymbol(s);u&&(a={symbol:u.symbol,metadata:u.metadata})}a&&o.addOrMergeSummary(a)}}return r.forEach(function(e){if(o.addOrMergeSummary({symbol:e.type.reference,metadata:{__symbolic:"class"},type:e}),e.summaryKind===Fo.NgModule){var n=e;n.exportedDirectives.concat(n.exportedPipes).forEach(function(e){var n=e.reference;if(t.isLibraryFile(n.filePath)){var r=t.resolveSummary(n);r&&o.addOrMergeSummary(r)}})}}),o.serialize()}function yr(t,e){var n=new kh(t);return n.deserialize(e)}function vr(t,e,n){return e.dependencies.forEach(function(e){e.valuePlaceholder.reference=t.getStaticSymbol(mr(e.moduleUrl,e.isShimmed,n),e.name)}),e.statements}function mr(t,e,n){return""+t+(e?".shim":"")+".ngstyle"+n}function gr(t){if(!t.isComponent)throw new Error("Could not compile '"+g(t.type)+"' because it is not a component.")}function _r(t,e,n){var r=Er(t,e,n),o=r.ngModules,i=r.symbolsMissingModule;return wr(t,o,i,n)}function br(t,e,n){var r=_r(t,e,n);if(r.symbolsMissingModule&&r.symbolsMissingModule.length){var o=r.symbolsMissingModule.map(function(t){return"Cannot determine the module for class "+t.name+" in "+t.filePath+"! Add "+t.name+" to the NgModule to fix it."});throw h(o.join("\n"))}return r}function wr(t,e,n,r){var o=new Map;e.forEach(function(t){return o.set(t.type.reference,t)});var i=new Map,s=new Map,a=new Map,u=new Map,c=new Map,l=new Set;t.forEach(function(t){var e=t.filePath;l.add(e),r.isInjectable(t)&&c.set(e,(c.get(e)||[]).concat(t))}),e.forEach(function(t){var e=t.type.reference.filePath;l.add(e),s.set(e,(s.get(e)||[]).concat(t.type.reference)),t.declaredDirectives.forEach(function(e){var n=e.reference.filePath;l.add(n),a.set(n,(a.get(n)||[]).concat(e.reference)),i.set(e.reference,t)}),t.declaredPipes.forEach(function(e){var n=e.reference.filePath;l.add(n),u.set(n,(u.get(n)||[]).concat(e.reference)),i.set(e.reference,t)})});var p=[];return l.forEach(function(t){var e=a.get(t)||[],n=u.get(t)||[],r=s.get(t)||[],o=c.get(t)||[];p.push({srcUrl:t,directives:e,pipes:n,ngModules:r,injectables:o})}),{ngModuleByPipeOrDirective:i,files:p,ngModules:e,symbolsMissingModule:n}}function Cr(t,e,n){var r=[];return e.filter(function(t){return n.isSourceFile(t)}).forEach(function(e){t.getSymbolsOf(e).forEach(function(e){var n=t.resolveSymbol(e),o=n.metadata;o&&"error"!=o.__symbolic&&r.push(n.symbol)})}),r}function Er(t,e,n){var r=new Map,o=[],i=new Set,s=function(t){if(r.has(t)||!e.isSourceFile(t.filePath))return!1;var o=n.getNgModuleMetadata(t,!1);return o&&(r.set(o.type.reference,o),o.declaredDirectives.forEach(function(t){return i.add(t.reference)}),o.declaredPipes.forEach(function(t){return i.add(t.reference)}),o.transitiveModule.modules.forEach(function(t){return s(t.reference)})),!!o};t.forEach(function(t){s(t)||!n.isDirective(t)&&!n.isPipe(t)||o.push(t)});var a=o.filter(function(t){return!i.has(t)});return{ngModules:Array.from(r.values()),symbolsMissingModule:a}}function Sr(t){return"object"==typeof t&&t.name&&t.filePath}function xr(t){return t&&"ignore"==t.__symbolic}function Tr(t){switch(t.message){case"Reference to non-exported class":if(t.context&&t.context.className)return"Reference to a non-exported class "+t.context.className+". Consider exporting the class";break;case"Variable not initialized":return"Only initialized variables and constants can be referenced because the value of this variable is needed by the template compiler";case"Destructuring not supported":return"Referencing an exported destructured variable or constant is not supported by the template compiler. Consider simplifying this to avoid destructuring";case"Could not resolve type":if(t.context&&t.context.typeName)return"Could not resolve type "+t.context.typeName;break;case"Function call not supported":var e=t.context&&t.context.name?"Calling function '"+t.context.name+"', f":"F";return e+"unction calls are not supported. Consider replacing the function or lambda with a reference to an exported function";case"Reference to a local symbol":if(t.context&&t.context.name)return"Reference to a local (non-exported) symbol '"+t.context.name+"'. Consider exporting the symbol"}return t.message}function Pr(t){return"Error encountered resolving symbol values statically. "+Tr(t)}function Ar(t,e){if(!t)return{};var n={};return Object.keys(t).forEach(function(r){var o=e(t[r],r);xr(o)||(jh.test(r)?Object.defineProperty(n,r,{enumerable:!1,configurable:!0,value:o}):n[r]=o)}),n}function Or(t){return null===t||"function"!=typeof t&&"object"!=typeof t}function Mr(t,e,n,r){var o=new Error(t);return o.fileName=e,o.line=n,o.column=r,o}function Rr(t){return t.startsWith("___")?t.substr(1):t}function kr(t,n){var r=n.translations||"",o=De(),i=new uo,s=new zh(t,i),a=new qh(t,i,s),u=new Vh(a);Nh.install(u);var c=new e.ɵConsole,l=new _u(new vu,r,n.i18nFormat,e.MissingTranslationStrategy.Warning,c),p=new Ko({defaultEncapsulation:e.ViewEncapsulation.Emulated,useJit:!1,enableLegacyTemplate:n.enableLegacyTemplate!==!1}),h=new Lc({get:function(e){return t.loadResource(e)}},o,l,p),f=new Is(new Ps),d=new Ap,y=new xc(p,f,d,l,c,[]),v=new Kc(p,new qc(u),new Uc(u),new zc(u),s,d,h,c,i,u),m={getImportAs:function(t){return a.getImportAs(t)},fileNameToModuleName:function(e,n){return t.fileNameToModuleName(e,n)},getTypeArity:function(t){return a.getTypeArity(t)}},g=new Ch(p,d),_=new Ih(p,t,v,y,new uh(o),g,new np,new _p(m),s,n.locale,n.i18nFormat,n.genFilePreamble,a);return{compiler:_,reflector:u}}function Ir(t,e){var n=t.concat([new Fl(yn(e.map(function(t){return pn(t)})))]),r=new Gh(null,null,null,new Map),o=new Kh,i=o.visitAllStatements(n,r);return null!=i?i.value:null}function Nr(t,e,n,r,o){for(var i=r.createChildWihtLocalVars(),s=0;s<t.length;s++)i.vars.set(t[s],e[s]);var a=o.visitAllStatements(n,i);return a?a.value:null}function Dr(t,e,n){var r={};t.getters.forEach(function(o){r[o.name]={configurable:!1,get:function(){var r=new Gh(e,this,t.name,e.vars);return Nr([],[],o.body,r,n)}}}),t.methods.forEach(function(o){var i=o.params.map(function(t){return t.name});r[o.name]={writable:!1,configurable:!1,value:function(){for(var r=[],s=0;s<arguments.length;s++)r[s]=arguments[s];var a=new Gh(e,this,t.name,e.vars);return Nr(i,r,o.body,a,n)}}});var o=t.constructorMethod.params.map(function(t){return t.name}),i=function(){for(var r=this,i=[],s=0;s<arguments.length;s++)i[s]=arguments[s];var a=new Gh(e,this,t.name,e.vars);t.fields.forEach(function(t){r[t.name]=void 0}),Nr(o,i,t.constructorMethod.body,a,n)},s=t.parent?t.parent.visitExpression(n,e):Object;return i.prototype=Object.create(s.prototype,r),i}function jr(t,e,n,r){return function(){for(var o=[],i=0;i<arguments.length;i++)o[i]=arguments[i];return Nr(t,o,e,n,r)}}function Lr(t,n,r){var o=n.toSource()+"\n//# sourceURL="+t,i=[],s=[];for(var a in r)i.push(a),s.push(r[a]);if(e.isDevMode()){var u=(new(Function.bind.apply(Function,[void 0].concat(i.concat("return null;"))))).toString(),c=u.slice(0,u.indexOf("return null;")).split("\n").length-1;o+="\n"+n.toSourceMapGenerator(t,t,c).toJsComment()}return(new(Function.bind.apply(Function,[void 0].concat(i.concat(o))))).apply(void 0,s)}function Vr(t,e,n){var r=new Zh,o=vp.createRoot(n),i=new Fl(yn(n.map(function(t){return pn(t)})));return r.visitAllStatements(e.concat([i]),o),Lr(t,o,r.getArgs())}function Fr(t){if(!t.isComponent)throw new Error("Could not compile '"+g(t.type)+"' because it is not a component.")}function Ur(){e.ɵreflector.reflectionCapabilities=new e.ɵReflectionCapabilities}function Br(t){return{useJit:Hr(t.map(function(t){return t.useJit})),defaultEncapsulation:Hr(t.map(function(t){return t.defaultEncapsulation})),providers:qr(t.map(function(t){return t.providers})),missingTranslation:Hr(t.map(function(t){return t.missingTranslation}))}}function Hr(t){for(var e=t.length-1;e>=0;e--)if(void 0!==t[e])return t[e];return void 0}function qr(t){var e=[];return t.forEach(function(t){return t&&e.push.apply(e,t)}),e}var zr=void 0||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},Gr=new e.Version("4.0.1"),Wr=function(){function t(t,e,n){this.value=t,this.ngContentIndex=e,this.sourceSpan=n}return t.prototype.visit=function(t,e){return t.visitText(this,e)},t}(),Kr=function(){function t(t,e,n){this.value=t,this.ngContentIndex=e,this.sourceSpan=n}return t.prototype.visit=function(t,e){return t.visitBoundText(this,e)},t}(),Qr=function(){function t(t,e,n){this.name=t,this.value=e,this.sourceSpan=n}return t.prototype.visit=function(t,e){return t.visitAttr(this,e)},t}(),$r=function(){function t(t,e,n,r,o,i){this.name=t,this.type=e,this.securityContext=n,this.value=r,this.unit=o,this.sourceSpan=i}return t.prototype.visit=function(t,e){return t.visitElementProperty(this,e)},Object.defineProperty(t.prototype,"isAnimation",{get:function(){return this.type===so.Animation},enumerable:!0,configurable:!0}),t}(),Xr=function(){function t(t,e,n,r,o){this.name=t,this.target=e,this.phase=n,this.handler=r,this.sourceSpan=o}return t.calcFullName=function(t,e,n){return e?e+":"+t:n?"@"+t+"."+n:t},t.prototype.visit=function(t,e){return t.visitEvent(this,e)},Object.defineProperty(t.prototype,"fullName",{get:function(){return t.calcFullName(this.name,this.target,this.phase)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isAnimation",{get:function(){return!!this.phase},enumerable:!0,configurable:!0}),t}(),Zr=function(){function t(t,e,n){this.name=t,this.value=e,this.sourceSpan=n}return t.prototype.visit=function(t,e){return t.visitReference(this,e)},t}(),Yr=function(){function t(t,e,n){this.name=t,this.value=e,this.sourceSpan=n}return t.prototype.visit=function(t,e){return t.visitVariable(this,e)},t}(),Jr=function(){function t(t,e,n,r,o,i,s,a,u,c,l,p,h){this.name=t,this.attrs=e,this.inputs=n,this.outputs=r,this.references=o,this.directives=i,this.providers=s,this.hasViewContainer=a,this.queryMatches=u,this.children=c,this.ngContentIndex=l,this.sourceSpan=p,this.endSourceSpan=h}return t.prototype.visit=function(t,e){return t.visitElement(this,e)},t}(),to=function(){function t(t,e,n,r,o,i,s,a,u,c,l){this.attrs=t,this.outputs=e,this.references=n,this.variables=r,this.directives=o,this.providers=i,this.hasViewContainer=s,this.queryMatches=a,this.children=u,this.ngContentIndex=c,this.sourceSpan=l}return t.prototype.visit=function(t,e){return t.visitEmbeddedTemplate(this,e)},t}(),eo=function(){function t(t,e,n,r){this.directiveName=t,this.templateName=e,this.value=n,this.sourceSpan=r}return t.prototype.visit=function(t,e){return t.visitDirectiveProperty(this,e)},t}(),no=function(){function t(t,e,n,r,o,i){this.directive=t,this.inputs=e,this.hostProperties=n,this.hostEvents=r,this.contentQueryStartId=o,this.sourceSpan=i}return t.prototype.visit=function(t,e){return t.visitDirective(this,e)},t}(),ro=function(){function t(t,e,n,r,o,i,s){this.token=t,this.multiProvider=e,this.eager=n,this.providers=r,this.providerType=o,this.lifecycleHooks=i,this.sourceSpan=s}return t.prototype.visit=function(){return null},t}(),oo={};oo.PublicService=0,oo.PrivateService=1,oo.Component=2,oo.Directive=3,oo.Builtin=4,oo[oo.PublicService]="PublicService",oo[oo.PrivateService]="PrivateService",oo[oo.Component]="Component",oo[oo.Directive]="Directive",oo[oo.Builtin]="Builtin";var io=function(){function t(t,e,n){this.index=t,this.ngContentIndex=e,this.sourceSpan=n}return t.prototype.visit=function(t,e){return t.visitNgContent(this,e)},t}(),so={};so.Property=0,so.Attribute=1,so.Class=2,so.Style=3,so.Animation=4,so[so.Property]="Property",so[so.Attribute]="Attribute",so[so.Class]="Class",so[so.Style]="Style",so[so.Animation]="Animation";var ao=function(){function t(t,e,n){this.filePath=t,this.name=e,this.members=n}return t.prototype.assertNoMembers=function(){if(this.members.length)throw new Error("Illegal state: symbol without members expected, but got "+JSON.stringify(this)+".")},t}(),uo=function(){function t(){this.cache=new Map}return t.prototype.get=function(t,e,n){n=n||[];var r=n.length?"."+n.join("."):"",o='"'+t+'".'+e+r,i=this.cache.get(o);return i||(i=new ao(t,e,n),this.cache.set(o,i)),i},t}(),co={};co.RAW_TEXT=0,co.ESCAPABLE_RAW_TEXT=1,co.PARSABLE_DATA=2,co[co.RAW_TEXT]="RAW_TEXT",co[co.ESCAPABLE_RAW_TEXT]="ESCAPABLE_RAW_TEXT",co[co.PARSABLE_DATA]="PARSABLE_DATA";var lo={Aacute:"Ã",aacute:"á",Acirc:"Â",acirc:"â",acute:"´",AElig:"Æ",aelig:"æ",Agrave:"À",agrave:"à ",alefsym:"ℵ",Alpha:"Α",alpha:"α",amp:"&",and:"∧",ang:"∠",apos:"'",Aring:"Ã…",aring:"Ã¥",asymp:"≈",Atilde:"Ã",atilde:"ã",Auml:"Ä",auml:"ä",bdquo:"„",Beta:"Î’",beta:"β",brvbar:"¦",bull:"•",cap:"∩",Ccedil:"Ç",ccedil:"ç",cedil:"¸",cent:"¢",Chi:"Χ",chi:"χ",circ:"ˆ",clubs:"♣",cong:"≅",copy:"©",crarr:"↵", +cup:"∪",curren:"¤",dagger:"†",Dagger:"‡",darr:"↓",dArr:"⇓",deg:"°",Delta:"Δ",delta:"δ",diams:"♦",divide:"÷",Eacute:"É",eacute:"é",Ecirc:"Ê",ecirc:"ê",Egrave:"È",egrave:"è",empty:"∅",emsp:" ",ensp:" ",Epsilon:"Ε",epsilon:"ε",equiv:"≡",Eta:"Η",eta:"η",ETH:"Ã",eth:"ð",Euml:"Ë",euml:"ë",euro:"€",exist:"∃",fnof:"Æ’",forall:"∀",frac12:"½",frac14:"¼",frac34:"¾",frasl:"â„",Gamma:"Γ",gamma:"γ",ge:"≥",gt:">",harr:"↔",hArr:"⇔",hearts:"♥",hellip:"…",Iacute:"Ã",iacute:"Ã",Icirc:"ÃŽ",icirc:"î",iexcl:"¡",Igrave:"ÃŒ",igrave:"ì",image:"â„‘",infin:"∞","int":"∫",Iota:"Ι",iota:"ι",iquest:"¿",isin:"∈",Iuml:"Ã",iuml:"ï",Kappa:"Κ",kappa:"κ",Lambda:"Λ",lambda:"λ",lang:"⟨",laquo:"«",larr:"â†",lArr:"â‡",lceil:"⌈",ldquo:"“",le:"≤",lfloor:"⌊",lowast:"∗",loz:"â—Š",lrm:"‎",lsaquo:"‹",lsquo:"‘",lt:"<",macr:"¯",mdash:"—",micro:"µ",middot:"·",minus:"−",Mu:"Îœ",mu:"μ",nabla:"∇",nbsp:" ",ndash:"–",ne:"≠",ni:"∋",not:"¬",notin:"∉",nsub:"⊄",Ntilde:"Ñ",ntilde:"ñ",Nu:"Î",nu:"ν",Oacute:"Ó",oacute:"ó",Ocirc:"Ô",ocirc:"ô",OElig:"Å’",oelig:"Å“",Ograve:"Ã’",ograve:"ò",oline:"‾",Omega:"Ω",omega:"ω",Omicron:"Ο",omicron:"ο",oplus:"⊕",or:"∨",ordf:"ª",ordm:"º",Oslash:"Ø",oslash:"ø",Otilde:"Õ",otilde:"õ",otimes:"⊗",Ouml:"Ö",ouml:"ö",para:"¶",permil:"‰",perp:"⊥",Phi:"Φ",phi:"φ",Pi:"Î ",pi:"Ï€",piv:"Ï–",plusmn:"±",pound:"£",prime:"′",Prime:"″",prod:"âˆ",prop:"âˆ",Psi:"Ψ",psi:"ψ",quot:'"',radic:"√",rang:"⟩",raquo:"»",rarr:"→",rArr:"⇒",rceil:"⌉",rdquo:"â€",real:"â„œ",reg:"®",rfloor:"⌋",Rho:"Ρ",rho:"Ï",rlm:"â€",rsaquo:"›",rsquo:"’",sbquo:"‚",Scaron:"Å ",scaron:"Å¡",sdot:"â‹…",sect:"§",shy:"Â",Sigma:"Σ",sigma:"σ",sigmaf:"Ï‚",sim:"∼",spades:"â™ ",sub:"⊂",sube:"⊆",sum:"∑",sup:"⊃",sup1:"¹",sup2:"²",sup3:"³",supe:"⊇",szlig:"ß",Tau:"Τ",tau:"Ï„",there4:"∴",Theta:"Θ",theta:"θ",thetasym:"Ï‘",thinsp:" ",THORN:"Þ",thorn:"þ",tilde:"Ëœ",times:"×",trade:"â„¢",Uacute:"Ú",uacute:"ú",uarr:"↑",uArr:"⇑",Ucirc:"Û",ucirc:"û",Ugrave:"Ù",ugrave:"ù",uml:"¨",upsih:"Ï’",Upsilon:"Î¥",upsilon:"Ï…",Uuml:"Ãœ",uuml:"ü",weierp:"℘",Xi:"Ξ",xi:"ξ",Yacute:"Ã",yacute:"ý",yen:"Â¥",yuml:"ÿ",Yuml:"Ÿ",Zeta:"Ζ",zeta:"ζ",zwj:"â€",zwnj:"‌"},po=function(){function t(t){var e=void 0===t?{}:t,n=e.closedByChildren,r=e.requiredParents,o=e.implicitNamespacePrefix,i=e.contentType,s=void 0===i?co.PARSABLE_DATA:i,a=e.closedByParent,u=void 0===a?!1:a,c=e.isVoid,l=void 0===c?!1:c,p=e.ignoreFirstLf,h=void 0===p?!1:p,f=this;this.closedByChildren={},this.closedByParent=!1,this.canSelfClose=!1,n&&n.length>0&&n.forEach(function(t){return f.closedByChildren[t]=!0}),this.isVoid=l,this.closedByParent=u||l,r&&r.length>0&&(this.requiredParents={},this.parentToAdd=r[0],r.forEach(function(t){return f.requiredParents[t]=!0})),this.implicitNamespacePrefix=o,this.contentType=s,this.ignoreFirstLf=h}return t.prototype.requireExtraParent=function(t){if(!this.requiredParents)return!1;if(!t)return!0;var e=t.toLowerCase(),n="template"===e||"ng-template"===t;return!n&&1!=this.requiredParents[e]},t.prototype.isClosedByChild=function(t){return this.isVoid||t.toLowerCase()in this.closedByChildren},t}(),ho={base:new po({isVoid:!0}),meta:new po({isVoid:!0}),area:new po({isVoid:!0}),embed:new po({isVoid:!0}),link:new po({isVoid:!0}),img:new po({isVoid:!0}),input:new po({isVoid:!0}),param:new po({isVoid:!0}),hr:new po({isVoid:!0}),br:new po({isVoid:!0}),source:new po({isVoid:!0}),track:new po({isVoid:!0}),wbr:new po({isVoid:!0}),p:new po({closedByChildren:["address","article","aside","blockquote","div","dl","fieldset","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","hr","main","nav","ol","p","pre","section","table","ul"],closedByParent:!0}),thead:new po({closedByChildren:["tbody","tfoot"]}),tbody:new po({closedByChildren:["tbody","tfoot"],closedByParent:!0}),tfoot:new po({closedByChildren:["tbody"],closedByParent:!0}),tr:new po({closedByChildren:["tr"],requiredParents:["tbody","tfoot","thead"],closedByParent:!0}),td:new po({closedByChildren:["td","th"],closedByParent:!0}),th:new po({closedByChildren:["td","th"],closedByParent:!0}),col:new po({requiredParents:["colgroup"],isVoid:!0}),svg:new po({implicitNamespacePrefix:"svg"}),math:new po({implicitNamespacePrefix:"math"}),li:new po({closedByChildren:["li"],closedByParent:!0}),dt:new po({closedByChildren:["dt","dd"]}),dd:new po({closedByChildren:["dt","dd"],closedByParent:!0}),rb:new po({closedByChildren:["rb","rt","rtc","rp"],closedByParent:!0}),rt:new po({closedByChildren:["rb","rt","rtc","rp"],closedByParent:!0}),rtc:new po({closedByChildren:["rb","rtc","rp"],closedByParent:!0}),rp:new po({closedByChildren:["rb","rt","rtc","rp"],closedByParent:!0}),optgroup:new po({closedByChildren:["optgroup"],closedByParent:!0}),option:new po({closedByChildren:["option","optgroup"],closedByParent:!0}),pre:new po({ignoreFirstLf:!0}),listing:new po({ignoreFirstLf:!0}),style:new po({contentType:co.RAW_TEXT}),script:new po({contentType:co.RAW_TEXT}),title:new po({contentType:co.ESCAPABLE_RAW_TEXT}),textarea:new po({contentType:co.ESCAPABLE_RAW_TEXT,ignoreFirstLf:!0})},fo=new po,yo=new RegExp("(\\:not\\()|([-\\w]+)|(?:\\.([-\\w]+))|(?:\\[([-.\\w*]+)(?:=([\"']?)([^\\]\"']*)\\5)?\\])|(\\))|(\\s*,\\s*)","g"),vo=function(){function t(){this.element=null,this.classNames=[],this.attrs=[],this.notSelectors=[]}return t.parse=function(e){var n,r=[],o=function(t,e){e.notSelectors.length>0&&!e.element&&0==e.classNames.length&&0==e.attrs.length&&(e.element="*"),t.push(e)},i=new t,s=i,a=!1;for(yo.lastIndex=0;n=yo.exec(e);){if(n[1]){if(a)throw new Error("Nesting :not is not allowed in a selector");a=!0,s=new t,i.notSelectors.push(s)}if(n[2]&&s.setElement(n[2]),n[3]&&s.addClassName(n[3]),n[4]&&s.addAttribute(n[4],n[6]),n[7]&&(a=!1,s=i),n[8]){if(a)throw new Error("Multiple selectors in :not are not supported");o(r,i),i=s=new t}}return o(r,i),r},t.prototype.isElementSelector=function(){return this.hasElementSelector()&&0==this.classNames.length&&0==this.attrs.length&&0===this.notSelectors.length},t.prototype.hasElementSelector=function(){return!!this.element},t.prototype.setElement=function(t){void 0===t&&(t=null),this.element=t},t.prototype.getMatchingElementTemplate=function(){for(var t=this.element||"div",e=this.classNames.length>0?' class="'+this.classNames.join(" ")+'"':"",n="",r=0;r<this.attrs.length;r+=2){var o=this.attrs[r],i=""!==this.attrs[r+1]?'="'+this.attrs[r+1]+'"':"";n+=" "+o+i}return s(t).isVoid?"<"+t+e+n+"/>":"<"+t+e+n+"></"+t+">"},t.prototype.addAttribute=function(t,e){void 0===e&&(e=""),this.attrs.push(t,e&&e.toLowerCase()||"")},t.prototype.addClassName=function(t){this.classNames.push(t.toLowerCase())},t.prototype.toString=function(){var t=this.element||"";if(this.classNames&&this.classNames.forEach(function(e){return t+="."+e}),this.attrs)for(var e=0;e<this.attrs.length;e+=2){var n=this.attrs[e],r=this.attrs[e+1];t+="["+n+(r?"="+r:"")+"]"}return this.notSelectors.forEach(function(e){return t+=":not("+e+")"}),t},t}(),mo=function(){function t(){this._elementMap=new Map,this._elementPartialMap=new Map,this._classMap=new Map,this._classPartialMap=new Map,this._attrValueMap=new Map,this._attrValuePartialMap=new Map,this._listContexts=[]}return t.createNotMatcher=function(e){var n=new t;return n.addSelectables(e,null),n},t.prototype.addSelectables=function(t,e){var n=null;t.length>1&&(n=new go(t),this._listContexts.push(n));for(var r=0;r<t.length;r++)this._addSelectable(t[r],e,n)},t.prototype._addSelectable=function(t,e,n){var r=this,o=t.element,i=t.classNames,s=t.attrs,a=new _o(t,e,n);if(o){var u=0===s.length&&0===i.length;u?this._addTerminal(r._elementMap,o,a):r=this._addPartial(r._elementPartialMap,o)}if(i)for(var c=0;c<i.length;c++){var u=0===s.length&&c===i.length-1,l=i[c];u?this._addTerminal(r._classMap,l,a):r=this._addPartial(r._classPartialMap,l)}if(s)for(var c=0;c<s.length;c+=2){var u=c===s.length-2,p=s[c],h=s[c+1];if(u){var f=r._attrValueMap,d=f.get(p);d||(d=new Map,f.set(p,d)),this._addTerminal(d,h,a)}else{var y=r._attrValuePartialMap,v=y.get(p);v||(v=new Map,y.set(p,v)),r=this._addPartial(v,h)}}},t.prototype._addTerminal=function(t,e,n){var r=t.get(e);r||(r=[],t.set(e,r)),r.push(n)},t.prototype._addPartial=function(e,n){var r=e.get(n);return r||(r=new t,e.set(n,r)),r},t.prototype.match=function(t,e){for(var n=!1,r=t.element,o=t.classNames,i=t.attrs,s=0;s<this._listContexts.length;s++)this._listContexts[s].alreadyMatched=!1;if(n=this._matchTerminal(this._elementMap,r,t,e)||n,n=this._matchPartial(this._elementPartialMap,r,t,e)||n,o)for(var s=0;s<o.length;s++){var a=o[s];n=this._matchTerminal(this._classMap,a,t,e)||n,n=this._matchPartial(this._classPartialMap,a,t,e)||n}if(i)for(var s=0;s<i.length;s+=2){var u=i[s],c=i[s+1],l=this._attrValueMap.get(u);c&&(n=this._matchTerminal(l,"",t,e)||n),n=this._matchTerminal(l,c,t,e)||n;var p=this._attrValuePartialMap.get(u);c&&(n=this._matchPartial(p,"",t,e)||n),n=this._matchPartial(p,c,t,e)||n}return n},t.prototype._matchTerminal=function(t,e,n,r){if(!t||"string"!=typeof e)return!1;var o=t.get(e)||[],i=t.get("*");if(i&&(o=o.concat(i)),0===o.length)return!1;for(var s,a=!1,u=0;u<o.length;u++)s=o[u],a=s.finalize(n,r)||a;return a},t.prototype._matchPartial=function(t,e,n,r){if(!t||"string"!=typeof e)return!1;var o=t.get(e);return o?o.match(n,r):!1},t}(),go=function(){function t(t){this.selectors=t,this.alreadyMatched=!1}return t}(),_o=function(){function t(t,e,n){this.selector=t,this.cbContext=e,this.listContext=n,this.notSelectors=t.notSelectors}return t.prototype.finalize=function(t,e){var n=!0;if(this.notSelectors.length>0&&(!this.listContext||!this.listContext.alreadyMatched)){var r=mo.createNotMatcher(this.notSelectors);n=!r.match(t,null)}return!n||!e||this.listContext&&this.listContext.alreadyMatched||(this.listContext&&(this.listContext.alreadyMatched=!0),e(this.selector,this.cbContext)),n},t}(),bo="",wo=/-+([a-z0-9])/g,Co=function(){function t(){}return t.prototype.visitArray=function(t,e){var n=this;return t.map(function(t){return p(t,n,e)})},t.prototype.visitStringMap=function(t,e){var n=this,r={};return Object.keys(t).forEach(function(o){r[o]=p(t[o],n,e)}),r},t.prototype.visitPrimitive=function(t){return t},t.prototype.visitOther=function(t){return t},t}(),Eo=function(){function t(t,e){void 0===e&&(e=null),this.syncResult=t,this.asyncResult=e,e||(this.asyncResult=Promise.resolve(t))}return t}(),So="ngSyntaxError",xo=Object.getPrototypeOf({}),To=/^(?:(?:\[([^\]]+)\])|(?:\(([^\)]+)\)))|(\@[-\w]+)$/,Po=function(){function t(t,e){void 0===t&&(t=null),void 0===e&&(e=null),this.name=t,this.definitions=e}return t}(),Ao=function(){function t(){}return t}(),Oo=function(t){function e(e,n){var r=t.call(this)||this;return r.stateNameExpr=e,r.styles=n,r}return zr(e,t),e}(Ao),Mo=function(t){function e(e,n){var r=t.call(this)||this;return r.stateChangeExpr=e,r.steps=n,r}return zr(e,t),e}(Ao),Ro=function(){function t(){}return t}(),ko=function(t){function e(e){void 0===e&&(e=[]);var n=t.call(this)||this;return n.steps=e,n}return zr(e,t),e}(Ro),Io=function(t){function e(e,n){void 0===n&&(n=null);var r=t.call(this)||this;return r.offset=e,r.styles=n,r}return zr(e,t),e}(Ro),No=function(t){function e(e,n){void 0===e&&(e=0),void 0===n&&(n=null);var r=t.call(this)||this;return r.timings=e,r.styles=n,r}return zr(e,t),e}(Ro),Do=function(t){function e(e){void 0===e&&(e=null);var n=t.call(this)||this;return n.steps=e,n}return zr(e,t),e}(Ro),jo=function(t){function e(e){return void 0===e&&(e=null),t.call(this,e)||this}return zr(e,t),e}(Do),Lo=function(t){function e(e){return void 0===e&&(e=null),t.call(this,e)||this}return zr(e,t),e}(Do),Vo=0,Fo={};Fo.Pipe=0,Fo.Directive=1,Fo.NgModule=2,Fo.Injectable=3,Fo[Fo.Pipe]="Pipe",Fo[Fo.Directive]="Directive",Fo[Fo.NgModule]="NgModule",Fo[Fo.Injectable]="Injectable";var Uo=function(){function t(t){var e=void 0===t?{}:t,n=e.moduleUrl,r=e.styles,o=e.styleUrls;this.moduleUrl=n,this.styles=A(r),this.styleUrls=A(o)}return t}(),Bo=function(){function t(t){var e=void 0===t?{}:t,n=e.encapsulation,r=e.template,o=e.templateUrl,i=e.styles,s=e.styleUrls,a=e.externalStylesheets,u=e.animations,c=e.ngContentSelectors,l=e.interpolation,p=e.isInline;if(this.encapsulation=n,this.template=r,this.templateUrl=o,this.styles=A(i),this.styleUrls=A(s),this.externalStylesheets=A(a),this.animations=u?O(u):[],this.ngContentSelectors=c||[],l&&2!=l.length)throw new Error("'interpolation' should have a start and an end symbol.");this.interpolation=l,this.isInline=p}return t.prototype.toSummary=function(){return{animations:this.animations.map(function(t){return t.name}),ngContentSelectors:this.ngContentSelectors,encapsulation:this.encapsulation}},t}(),Ho=function(){function t(t){var e=void 0===t?{}:t,n=e.isHost,r=e.type,o=e.isComponent,i=e.selector,s=e.exportAs,a=e.changeDetection,u=e.inputs,c=e.outputs,l=e.hostListeners,p=e.hostProperties,h=e.hostAttributes,f=e.providers,d=e.viewProviders,y=e.queries,v=e.viewQueries,m=e.entryComponents,g=e.template,_=e.componentViewType,b=e.rendererType,w=e.componentFactory;this.isHost=!!n,this.type=r,this.isComponent=o,this.selector=i,this.exportAs=s,this.changeDetection=a,this.inputs=u,this.outputs=c,this.hostListeners=l,this.hostProperties=p,this.hostAttributes=h,this.providers=A(f),this.viewProviders=A(d),this.queries=A(y),this.viewQueries=A(v),this.entryComponents=A(m),this.template=g,this.componentViewType=_,this.rendererType=b,this.componentFactory=w}return t.create=function(e){var n=void 0===e?{}:e,r=n.isHost,o=n.type,i=n.isComponent,s=n.selector,a=n.exportAs,c=n.changeDetection,l=n.inputs,p=n.outputs,h=n.host,f=n.providers,d=n.viewProviders,y=n.queries,v=n.viewQueries,m=n.entryComponents,g=n.template,_=n.componentViewType,b=n.rendererType,w=n.componentFactory,C={},E={},S={};null!=h&&Object.keys(h).forEach(function(t){var e=h[t],n=t.match(To);null===n?S[t]=e:null!=n[1]?E[n[1]]=e:null!=n[2]&&(C[n[2]]=e)});var x={};null!=l&&l.forEach(function(t){var e=u(t,[t,t]);x[e[0]]=e[1]});var T={};return null!=p&&p.forEach(function(t){var e=u(t,[t,t]);T[e[0]]=e[1]}),new t({isHost:r,type:o,isComponent:!!i,selector:s,exportAs:a,changeDetection:c,inputs:x,outputs:T,hostListeners:C,hostProperties:E,hostAttributes:S,providers:f,viewProviders:d,queries:y,viewQueries:v,entryComponents:m,template:g,componentViewType:_,rendererType:b,componentFactory:w})},t.prototype.toSummary=function(){return{summaryKind:Fo.Directive,type:this.type,isComponent:this.isComponent,selector:this.selector,exportAs:this.exportAs,inputs:this.inputs,outputs:this.outputs,hostListeners:this.hostListeners,hostProperties:this.hostProperties,hostAttributes:this.hostAttributes,providers:this.providers,viewProviders:this.viewProviders,queries:this.queries,viewQueries:this.viewQueries,entryComponents:this.entryComponents,changeDetection:this.changeDetection,template:this.template&&this.template.toSummary(),componentViewType:this.componentViewType,rendererType:this.rendererType,componentFactory:this.componentFactory}},t}(),qo=function(){function t(t){var e=void 0===t?{}:t,n=e.type,r=e.name,o=e.pure;this.type=n,this.name=r,this.pure=!!o}return t.prototype.toSummary=function(){return{summaryKind:Fo.Pipe,type:this.type,name:this.name,pure:this.pure}},t}(),zo=function(){function t(t){var e=void 0===t?{}:t,n=e.type,r=e.providers,o=e.declaredDirectives,i=e.exportedDirectives,s=e.declaredPipes,a=e.exportedPipes,u=e.entryComponents,c=e.bootstrapComponents,l=e.importedModules,p=e.exportedModules,h=e.schemas,f=e.transitiveModule,d=e.id;this.type=n,this.declaredDirectives=A(o),this.exportedDirectives=A(i),this.declaredPipes=A(s),this.exportedPipes=A(a),this.providers=A(r),this.entryComponents=A(u),this.bootstrapComponents=A(c),this.importedModules=A(l),this.exportedModules=A(p),this.schemas=A(h),this.id=d,this.transitiveModule=f}return t.prototype.toSummary=function(){return{summaryKind:Fo.NgModule,type:this.type,entryComponents:this.transitiveModule.entryComponents,providers:this.transitiveModule.providers,modules:this.transitiveModule.modules,exportedDirectives:this.transitiveModule.exportedDirectives,exportedPipes:this.transitiveModule.exportedPipes}},t}(),Go=function(){function t(){this.directivesSet=new Set,this.directives=[],this.exportedDirectivesSet=new Set,this.exportedDirectives=[],this.pipesSet=new Set,this.pipes=[],this.exportedPipesSet=new Set,this.exportedPipes=[],this.modulesSet=new Set,this.modules=[],this.entryComponentsSet=new Set,this.entryComponents=[],this.providers=[]}return t.prototype.addProvider=function(t,e){this.providers.push({provider:t,module:e})},t.prototype.addDirective=function(t){this.directivesSet.has(t.reference)||(this.directivesSet.add(t.reference),this.directives.push(t))},t.prototype.addExportedDirective=function(t){this.exportedDirectivesSet.has(t.reference)||(this.exportedDirectivesSet.add(t.reference),this.exportedDirectives.push(t))},t.prototype.addPipe=function(t){this.pipesSet.has(t.reference)||(this.pipesSet.add(t.reference),this.pipes.push(t))},t.prototype.addExportedPipe=function(t){this.exportedPipesSet.has(t.reference)||(this.exportedPipesSet.add(t.reference),this.exportedPipes.push(t))},t.prototype.addModule=function(t){this.modulesSet.has(t.reference)||(this.modulesSet.add(t.reference),this.modules.push(t))},t.prototype.addEntryComponent=function(t){this.entryComponentsSet.has(t.componentType)||(this.entryComponentsSet.add(t.componentType),this.entryComponents.push(t))},t}(),Wo=function(){function t(t,e){var n=e.useClass,r=e.useValue,o=e.useExisting,i=e.useFactory,s=e.deps,a=e.multi;this.token=t,this.useClass=n,this.useValue=r,this.useExisting=o,this.useFactory=i,this.dependencies=s,this.multi=!!a}return t}(),Ko=function(){function t(t){var n=void 0===t?{}:t,r=n.defaultEncapsulation,o=void 0===r?e.ViewEncapsulation.Emulated:r,i=n.useJit,s=void 0===i?!0:i,a=n.missingTranslation,u=n.enableLegacyTemplate;this.defaultEncapsulation=o,this.useJit=s,this.missingTranslation=a,this.enableLegacyTemplate=u!==!1}return t}(),Qo=function(){function t(t,e,n,r){this.input=e,this.errLocation=n,this.ctxLocation=r,this.message="Parser Error: "+t+" "+n+" ["+e+"] in "+r}return t}(),$o=function(){function t(t,e){this.start=t,this.end=e}return t}(),Xo=function(){function t(t){this.span=t}return t.prototype.visit=function(t,e){return void 0===e&&(e=null),null},t.prototype.toString=function(){return"AST"},t}(),Zo=function(t){function e(e,n,r,o){var i=t.call(this,e)||this;return i.prefix=n,i.uninterpretedExpression=r,i.location=o,i}return zr(e,t),e.prototype.visit=function(t,e){return void 0===e&&(e=null),t.visitQuote(this,e)},e.prototype.toString=function(){return"Quote"},e}(Xo),Yo=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return zr(e,t),e.prototype.visit=function(t,e){void 0===e&&(e=null)},e}(Xo),Jo=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return zr(e,t),e.prototype.visit=function(t,e){return void 0===e&&(e=null),t.visitImplicitReceiver(this,e)},e}(Xo),ti=function(t){function e(e,n){var r=t.call(this,e)||this;return r.expressions=n,r}return zr(e,t),e.prototype.visit=function(t,e){return void 0===e&&(e=null),t.visitChain(this,e)},e}(Xo),ei=function(t){function e(e,n,r,o){var i=t.call(this,e)||this;return i.condition=n,i.trueExp=r,i.falseExp=o,i}return zr(e,t),e.prototype.visit=function(t,e){return void 0===e&&(e=null),t.visitConditional(this,e)},e}(Xo),ni=function(t){function e(e,n,r){var o=t.call(this,e)||this;return o.receiver=n,o.name=r,o}return zr(e,t),e.prototype.visit=function(t,e){return void 0===e&&(e=null),t.visitPropertyRead(this,e)},e}(Xo),ri=function(t){function e(e,n,r,o){var i=t.call(this,e)||this;return i.receiver=n,i.name=r,i.value=o,i}return zr(e,t),e.prototype.visit=function(t,e){return void 0===e&&(e=null),t.visitPropertyWrite(this,e)},e}(Xo),oi=function(t){function e(e,n,r){var o=t.call(this,e)||this;return o.receiver=n,o.name=r,o}return zr(e,t),e.prototype.visit=function(t,e){return void 0===e&&(e=null),t.visitSafePropertyRead(this,e)},e}(Xo),ii=function(t){function e(e,n,r){var o=t.call(this,e)||this;return o.obj=n,o.key=r,o}return zr(e,t),e.prototype.visit=function(t,e){return void 0===e&&(e=null),t.visitKeyedRead(this,e)},e}(Xo),si=function(t){function e(e,n,r,o){var i=t.call(this,e)||this;return i.obj=n,i.key=r,i.value=o,i}return zr(e,t),e.prototype.visit=function(t,e){return void 0===e&&(e=null),t.visitKeyedWrite(this,e)},e}(Xo),ai=function(t){function e(e,n,r,o){var i=t.call(this,e)||this;return i.exp=n,i.name=r,i.args=o,i}return zr(e,t),e.prototype.visit=function(t,e){return void 0===e&&(e=null),t.visitPipe(this,e)},e}(Xo),ui=function(t){function e(e,n){var r=t.call(this,e)||this;return r.value=n,r}return zr(e,t),e.prototype.visit=function(t,e){return void 0===e&&(e=null),t.visitLiteralPrimitive(this,e)},e}(Xo),ci=function(t){function e(e,n){var r=t.call(this,e)||this;return r.expressions=n,r}return zr(e,t),e.prototype.visit=function(t,e){return void 0===e&&(e=null),t.visitLiteralArray(this,e)},e}(Xo),li=function(t){function e(e,n,r){var o=t.call(this,e)||this;return o.keys=n,o.values=r,o}return zr(e,t),e.prototype.visit=function(t,e){return void 0===e&&(e=null),t.visitLiteralMap(this,e)},e}(Xo),pi=function(t){function e(e,n,r){var o=t.call(this,e)||this;return o.strings=n,o.expressions=r,o}return zr(e,t),e.prototype.visit=function(t,e){return void 0===e&&(e=null),t.visitInterpolation(this,e)},e}(Xo),hi=function(t){function e(e,n,r,o){var i=t.call(this,e)||this;return i.operation=n,i.left=r,i.right=o,i}return zr(e,t),e.prototype.visit=function(t,e){return void 0===e&&(e=null),t.visitBinary(this,e)},e}(Xo),fi=function(t){function e(e,n){var r=t.call(this,e)||this;return r.expression=n,r}return zr(e,t),e.prototype.visit=function(t,e){return void 0===e&&(e=null),t.visitPrefixNot(this,e)},e}(Xo),di=function(t){function e(e,n,r,o){var i=t.call(this,e)||this;return i.receiver=n,i.name=r,i.args=o,i}return zr(e,t),e.prototype.visit=function(t,e){return void 0===e&&(e=null),t.visitMethodCall(this,e)},e}(Xo),yi=function(t){function e(e,n,r,o){var i=t.call(this,e)||this;return i.receiver=n,i.name=r,i.args=o,i}return zr(e,t),e.prototype.visit=function(t,e){return void 0===e&&(e=null),t.visitSafeMethodCall(this,e)},e}(Xo),vi=function(t){function e(e,n,r){var o=t.call(this,e)||this;return o.target=n,o.args=r,o}return zr(e,t),e.prototype.visit=function(t,e){return void 0===e&&(e=null),t.visitFunctionCall(this,e)},e}(Xo),mi=function(t){function e(e,n,r,o){var i=t.call(this,new $o(0,null==n?0:n.length))||this;return i.ast=e,i.source=n,i.location=r,i.errors=o,i}return zr(e,t),e.prototype.visit=function(t,e){return void 0===e&&(e=null),this.ast.visit(t,e)},e.prototype.toString=function(){return this.source+" in "+this.location},e}(Xo),gi=function(){function t(t,e,n,r,o){this.span=t,this.key=e,this.keyIsVar=n,this.name=r,this.expression=o}return t}(),_i=function(){function t(){}return t.prototype.visitBinary=function(t){return t.left.visit(this),t.right.visit(this),null},t.prototype.visitChain=function(t,e){return this.visitAll(t.expressions,e)},t.prototype.visitConditional=function(t){return t.condition.visit(this),t.trueExp.visit(this),t.falseExp.visit(this),null},t.prototype.visitPipe=function(t,e){return t.exp.visit(this),this.visitAll(t.args,e),null},t.prototype.visitFunctionCall=function(t,e){return t.target.visit(this),this.visitAll(t.args,e),null},t.prototype.visitImplicitReceiver=function(){return null},t.prototype.visitInterpolation=function(t,e){return this.visitAll(t.expressions,e)},t.prototype.visitKeyedRead=function(t){return t.obj.visit(this),t.key.visit(this),null},t.prototype.visitKeyedWrite=function(t){return t.obj.visit(this),t.key.visit(this),t.value.visit(this),null},t.prototype.visitLiteralArray=function(t,e){return this.visitAll(t.expressions,e)},t.prototype.visitLiteralMap=function(t,e){return this.visitAll(t.values,e)},t.prototype.visitLiteralPrimitive=function(){return null},t.prototype.visitMethodCall=function(t,e){return t.receiver.visit(this),this.visitAll(t.args,e)},t.prototype.visitPrefixNot=function(t){return t.expression.visit(this),null},t.prototype.visitPropertyRead=function(t){return t.receiver.visit(this),null},t.prototype.visitPropertyWrite=function(t){return t.receiver.visit(this),t.value.visit(this),null},t.prototype.visitSafePropertyRead=function(t){return t.receiver.visit(this),null},t.prototype.visitSafeMethodCall=function(t,e){return t.receiver.visit(this),this.visitAll(t.args,e)},t.prototype.visitAll=function(t,e){var n=this;return t.forEach(function(t){return t.visit(n,e)}),null},t.prototype.visitQuote=function(){return null},t}(),bi=function(){function t(){}return t.prototype.visitImplicitReceiver=function(t){return t},t.prototype.visitInterpolation=function(t){return new pi(t.span,t.strings,this.visitAll(t.expressions))},t.prototype.visitLiteralPrimitive=function(t){return new ui(t.span,t.value)},t.prototype.visitPropertyRead=function(t){return new ni(t.span,t.receiver.visit(this),t.name)},t.prototype.visitPropertyWrite=function(t){return new ri(t.span,t.receiver.visit(this),t.name,t.value.visit(this))},t.prototype.visitSafePropertyRead=function(t){return new oi(t.span,t.receiver.visit(this),t.name)},t.prototype.visitMethodCall=function(t){return new di(t.span,t.receiver.visit(this),t.name,this.visitAll(t.args))},t.prototype.visitSafeMethodCall=function(t){return new yi(t.span,t.receiver.visit(this),t.name,this.visitAll(t.args))},t.prototype.visitFunctionCall=function(t){return new vi(t.span,t.target.visit(this),this.visitAll(t.args))},t.prototype.visitLiteralArray=function(t){return new ci(t.span,this.visitAll(t.expressions))},t.prototype.visitLiteralMap=function(t){return new li(t.span,t.keys,this.visitAll(t.values))},t.prototype.visitBinary=function(t){return new hi(t.span,t.operation,t.left.visit(this),t.right.visit(this))},t.prototype.visitPrefixNot=function(t){return new fi(t.span,t.expression.visit(this))},t.prototype.visitConditional=function(t){return new ei(t.span,t.condition.visit(this),t.trueExp.visit(this),t.falseExp.visit(this))},t.prototype.visitPipe=function(t){return new ai(t.span,t.exp.visit(this),t.name,this.visitAll(t.args))},t.prototype.visitKeyedRead=function(t){return new ii(t.span,t.obj.visit(this),t.key.visit(this))},t.prototype.visitKeyedWrite=function(t){return new si(t.span,t.obj.visit(this),t.key.visit(this),t.value.visit(this))},t.prototype.visitAll=function(t){for(var e=new Array(t.length),n=0;n<t.length;++n)e[n]=t[n].visit(this);return e},t.prototype.visitChain=function(t){return new ti(t.span,this.visitAll(t.expressions))},t.prototype.visitQuote=function(t){return new Zo(t.span,t.prefix,t.uninterpretedExpression,t.location)},t}(),wi=0,Ci=9,Ei=10,Si=11,xi=12,Ti=13,Pi=32,Ai=33,Oi=34,Mi=35,Ri=36,ki=37,Ii=38,Ni=39,Di=40,ji=41,Li=42,Vi=43,Fi=44,Ui=45,Bi=46,Hi=47,qi=58,zi=59,Gi=60,Wi=61,Ki=62,Qi=63,$i=48,Xi=57,Zi=65,Yi=69,Ji=70,ts=88,es=90,ns=91,rs=92,os=93,is=94,ss=95,as=97,us=101,cs=102,ls=110,ps=114,hs=116,fs=117,ds=118,ys=120,vs=122,ms=123,gs=124,_s=125,bs=160,ws=96,Cs=[/^\s*$/,/[<>]/,/^[{}]$/,/&(#|[a-z])/i,/^\/\//],Es=function(){function t(t,e){this.start=t,this.end=e}return t.fromArray=function(e){return e?(B("interpolation",e),new t(e[0],e[1])):Ss},t}(),Ss=new Es("{{","}}"),xs={};xs.Character=0,xs.Identifier=1,xs.Keyword=2,xs.String=3,xs.Operator=4,xs.Number=5,xs.Error=6,xs[xs.Character]="Character",xs[xs.Identifier]="Identifier",xs[xs.Keyword]="Keyword",xs[xs.String]="String",xs[xs.Operator]="Operator",xs[xs.Number]="Number",xs[xs.Error]="Error";var Ts=["var","let","as","null","undefined","true","false","if","else","this"],Ps=function(){function t(){}return t.prototype.tokenize=function(t){for(var e=new Ms(t),n=[],r=e.scanToken();null!=r;)n.push(r),r=e.scanToken();return n},t}();Ps.decorators=[{type:F}],Ps.ctorParameters=function(){return[]};var As=function(){function t(t,e,n,r){this.index=t,this.type=e,this.numValue=n,this.strValue=r}return t.prototype.isCharacter=function(t){return this.type==xs.Character&&this.numValue==t},t.prototype.isNumber=function(){return this.type==xs.Number},t.prototype.isString=function(){return this.type==xs.String},t.prototype.isOperator=function(t){return this.type==xs.Operator&&this.strValue==t},t.prototype.isIdentifier=function(){return this.type==xs.Identifier},t.prototype.isKeyword=function(){return this.type==xs.Keyword},t.prototype.isKeywordLet=function(){return this.type==xs.Keyword&&"let"==this.strValue},t.prototype.isKeywordAs=function(){return this.type==xs.Keyword&&"as"==this.strValue},t.prototype.isKeywordNull=function(){return this.type==xs.Keyword&&"null"==this.strValue},t.prototype.isKeywordUndefined=function(){return this.type==xs.Keyword&&"undefined"==this.strValue},t.prototype.isKeywordTrue=function(){return this.type==xs.Keyword&&"true"==this.strValue},t.prototype.isKeywordFalse=function(){return this.type==xs.Keyword&&"false"==this.strValue},t.prototype.isKeywordThis=function(){return this.type==xs.Keyword&&"this"==this.strValue},t.prototype.isError=function(){return this.type==xs.Error},t.prototype.toNumber=function(){return this.type==xs.Number?this.numValue:-1},t.prototype.toString=function(){switch(this.type){case xs.Character:case xs.Identifier:case xs.Keyword:case xs.Operator:case xs.String:case xs.Error:return this.strValue;case xs.Number:return this.numValue.toString();default:return null}},t}(),Os=new As(-1,xs.Character,0,""),Ms=function(){function t(t){this.input=t,this.peek=0,this.index=-1,this.length=t.length,this.advance()}return t.prototype.advance=function(){this.peek=++this.index>=this.length?wi:this.input.charCodeAt(this.index)},t.prototype.scanToken=function(){for(var t=this.input,e=this.length,n=this.peek,r=this.index;Pi>=n;){if(++r>=e){n=wi;break}n=t.charCodeAt(r)}if(this.peek=n,this.index=r,r>=e)return null;if($(n))return this.scanIdentifier();if(j(n))return this.scanNumber(r);var o=r;switch(n){case Bi:return this.advance(),j(this.peek)?this.scanNumber(o):H(o,Bi);case Di:case ji:case ms:case _s:case ns:case os:case Fi:case qi:case zi:return this.scanCharacter(o,n);case Ni:case Oi:return this.scanString();case Mi:case Vi:case Ui:case Li:case Hi:case ki:case is:return this.scanOperator(o,String.fromCharCode(n));case Qi:return this.scanComplexOperator(o,"?",Bi,".");case Gi:case Ki:return this.scanComplexOperator(o,String.fromCharCode(n),Wi,"=");case Ai:case Wi:return this.scanComplexOperator(o,String.fromCharCode(n),Wi,"=",Wi,"=");case Ii:return this.scanComplexOperator(o,"&",Ii,"&");case gs:return this.scanComplexOperator(o,"|",gs,"|");case bs:for(;D(this.peek);)this.advance();return this.scanToken()}return this.advance(),this.error("Unexpected character ["+String.fromCharCode(n)+"]",0)},t.prototype.scanCharacter=function(t,e){return this.advance(),H(t,e)},t.prototype.scanOperator=function(t,e){return this.advance(),G(t,e)},t.prototype.scanComplexOperator=function(t,e,n,r,o,i){this.advance();var s=e;return this.peek==n&&(this.advance(),s+=r),null!=o&&this.peek==o&&(this.advance(),s+=i),G(t,s)},t.prototype.scanIdentifier=function(){var t=this.index;for(this.advance();Z(this.peek);)this.advance();var e=this.input.substring(t,this.index);return Ts.indexOf(e)>-1?z(t,e):q(t,e)},t.prototype.scanNumber=function(t){var e=this.index===t;for(this.advance();;){if(j(this.peek));else if(this.peek==Bi)e=!1;else{if(!Y(this.peek))break;if(this.advance(),J(this.peek)&&this.advance(),!j(this.peek))return this.error("Invalid exponent",-1);e=!1}this.advance()}var n=this.input.substring(t,this.index),r=e?nt(n):parseFloat(n);return K(t,r)},t.prototype.scanString=function(){var t=this.index,e=this.peek;this.advance();for(var n="",r=this.index,o=this.input;this.peek!=e;)if(this.peek==rs){n+=o.substring(r,this.index),this.advance();var i=void 0;if(this.peek=this.peek,this.peek==fs){var s=o.substring(this.index+1,this.index+5);if(!/^[0-9a-f]+$/i.test(s))return this.error("Invalid unicode escape [\\u"+s+"]",0);i=parseInt(s,16);for(var a=0;5>a;a++)this.advance()}else i=et(this.peek),this.advance();n+=String.fromCharCode(i),r=this.index}else{if(this.peek==wi)return this.error("Unterminated quote",0);this.advance()}var u=o.substring(r,this.index);return this.advance(),W(t,n+u)},t.prototype.error=function(t,e){ +var n=this.index+e;return Q(n,"Lexer Error: "+t+" at column "+n+" in expression ["+this.input+"]")},t}(),Rs=function(){function t(t,e,n){this.strings=t,this.expressions=e,this.offsets=n}return t}(),ks=function(){function t(t,e,n){this.templateBindings=t,this.warnings=e,this.errors=n}return t}(),Is=function(){function t(t){this._lexer=t,this.errors=[]}return t.prototype.parseAction=function(t,e,n){void 0===n&&(n=Ss),this._checkNoInterpolation(t,e,n);var r=this._stripComments(t),o=this._lexer.tokenize(this._stripComments(t)),i=new Ns(t,e,o,r.length,!0,this.errors,t.length-r.length).parseChain();return new mi(i,t,e,this.errors)},t.prototype.parseBinding=function(t,e,n){void 0===n&&(n=Ss);var r=this._parseBindingAst(t,e,n);return new mi(r,t,e,this.errors)},t.prototype.parseSimpleBinding=function(t,e,n){void 0===n&&(n=Ss);var r=this._parseBindingAst(t,e,n),o=Ds.check(r);return o.length>0&&this._reportError("Host binding expression cannot contain "+o.join(" "),t,e),new mi(r,t,e,this.errors)},t.prototype._reportError=function(t,e,n,r){this.errors.push(new Qo(t,e,n,r))},t.prototype._parseBindingAst=function(t,e,n){var r=this._parseQuote(t,e);if(null!=r)return r;this._checkNoInterpolation(t,e,n);var o=this._stripComments(t),i=this._lexer.tokenize(o);return new Ns(t,e,i,o.length,!1,this.errors,t.length-o.length).parseChain()},t.prototype._parseQuote=function(t,e){if(null==t)return null;var n=t.indexOf(":");if(-1==n)return null;var r=t.substring(0,n).trim();if(!X(r))return null;var o=t.substring(n+1);return new Zo(new $o(0,t.length),r,o,e)},t.prototype.parseTemplateBindings=function(t,e,n){var r=this._lexer.tokenize(e);if(t){var o=this._lexer.tokenize(t).map(function(t){return t.index=0,t});r.unshift.apply(r,o)}return new Ns(e,n,r,e.length,!1,this.errors,0).parseTemplateBindings()},t.prototype.parseInterpolation=function(t,e,n){void 0===n&&(n=Ss);var r=this.splitInterpolation(t,e,n);if(null==r)return null;for(var o=[],i=0;i<r.expressions.length;++i){var s=r.expressions[i],a=this._stripComments(s),u=this._lexer.tokenize(this._stripComments(r.expressions[i])),c=new Ns(t,e,u,a.length,!1,this.errors,r.offsets[i]+(s.length-a.length)).parseChain();o.push(c)}return new mi(new pi(new $o(0,null==t?0:t.length),r.strings,o),t,e,this.errors)},t.prototype.splitInterpolation=function(t,e,n){void 0===n&&(n=Ss);var r=rt(n),o=t.split(r);if(o.length<=1)return null;for(var i=[],s=[],a=[],u=0,c=0;c<o.length;c++){var l=o[c];c%2===0?(i.push(l),u+=l.length):l.trim().length>0?(u+=n.start.length,s.push(l),a.push(u),u+=l.length+n.end.length):(this._reportError("Blank expressions are not allowed in interpolated strings",t,"at column "+this._findInterpolationErrorColumn(o,c,n)+" in",e),s.push("$implict"),a.push(u))}return new Rs(i,s,a)},t.prototype.wrapLiteralPrimitive=function(t,e){return new mi(new ui(new $o(0,null==t?0:t.length),t),t,e,this.errors)},t.prototype._stripComments=function(t){var e=this._commentStart(t);return null!=e?t.substring(0,e).trim():t},t.prototype._commentStart=function(t){for(var e=null,n=0;n<t.length-1;n++){var r=t.charCodeAt(n),o=t.charCodeAt(n+1);if(r===Hi&&o==Hi&&null==e)return n;e===r?e=null:null==e&&tt(r)&&(e=r)}return null},t.prototype._checkNoInterpolation=function(t,e,n){var r=rt(n),o=t.split(r);o.length>1&&this._reportError("Got interpolation ("+n.start+n.end+") where expression was expected",t,"at column "+this._findInterpolationErrorColumn(o,1,n)+" in",e)},t.prototype._findInterpolationErrorColumn=function(t,e,n){for(var r="",o=0;e>o;o++)r+=o%2===0?t[o]:""+n.start+t[o]+n.end;return r.length},t}();Is.decorators=[{type:F}],Is.ctorParameters=function(){return[{type:Ps}]};var Ns=function(){function t(t,e,n,r,o,i,s){this.input=t,this.location=e,this.tokens=n,this.inputLength=r,this.parseAction=o,this.errors=i,this.offset=s,this.rparensExpected=0,this.rbracketsExpected=0,this.rbracesExpected=0,this.index=0}return t.prototype.peek=function(t){var e=this.index+t;return e<this.tokens.length?this.tokens[e]:Os},Object.defineProperty(t.prototype,"next",{get:function(){return this.peek(0)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"inputIndex",{get:function(){return this.index<this.tokens.length?this.next.index+this.offset:this.inputLength+this.offset},enumerable:!0,configurable:!0}),t.prototype.span=function(t){return new $o(t,this.inputIndex)},t.prototype.advance=function(){this.index++},t.prototype.optionalCharacter=function(t){return this.next.isCharacter(t)?(this.advance(),!0):!1},t.prototype.peekKeywordLet=function(){return this.next.isKeywordLet()},t.prototype.peekKeywordAs=function(){return this.next.isKeywordAs()},t.prototype.expectCharacter=function(t){this.optionalCharacter(t)||this.error("Missing expected "+String.fromCharCode(t))},t.prototype.optionalOperator=function(t){return this.next.isOperator(t)?(this.advance(),!0):!1},t.prototype.expectOperator=function(t){this.optionalOperator(t)||this.error("Missing expected operator "+t)},t.prototype.expectIdentifierOrKeyword=function(){var t=this.next;return t.isIdentifier()||t.isKeyword()?(this.advance(),t.toString()):(this.error("Unexpected token "+t+", expected identifier or keyword"),"")},t.prototype.expectIdentifierOrKeywordOrString=function(){var t=this.next;return t.isIdentifier()||t.isKeyword()||t.isString()?(this.advance(),t.toString()):(this.error("Unexpected token "+t+", expected identifier, keyword, or string"),"")},t.prototype.parseChain=function(){for(var t=[],e=this.inputIndex;this.index<this.tokens.length;){var n=this.parsePipe();if(t.push(n),this.optionalCharacter(zi))for(this.parseAction||this.error("Binding expression cannot contain chained expression");this.optionalCharacter(zi););else this.index<this.tokens.length&&this.error("Unexpected token '"+this.next+"'")}return 0==t.length?new Yo(this.span(e)):1==t.length?t[0]:new ti(this.span(e),t)},t.prototype.parsePipe=function(){var t=this.parseExpression();if(this.optionalOperator("|")){this.parseAction&&this.error("Cannot have a pipe in an action expression");do{for(var e=this.expectIdentifierOrKeyword(),n=[];this.optionalCharacter(qi);)n.push(this.parseExpression());t=new ai(this.span(t.span.start),t,e,n)}while(this.optionalOperator("|"))}return t},t.prototype.parseExpression=function(){return this.parseConditional()},t.prototype.parseConditional=function(){var t=this.inputIndex,e=this.parseLogicalOr();if(this.optionalOperator("?")){var n=this.parsePipe(),r=void 0;if(this.optionalCharacter(qi))r=this.parsePipe();else{var o=this.inputIndex,i=this.input.substring(t,o);this.error("Conditional expression "+i+" requires all 3 expressions"),r=new Yo(this.span(t))}return new ei(this.span(t),e,n,r)}return e},t.prototype.parseLogicalOr=function(){for(var t=this.parseLogicalAnd();this.optionalOperator("||");){var e=this.parseLogicalAnd();t=new hi(this.span(t.span.start),"||",t,e)}return t},t.prototype.parseLogicalAnd=function(){for(var t=this.parseEquality();this.optionalOperator("&&");){var e=this.parseEquality();t=new hi(this.span(t.span.start),"&&",t,e)}return t},t.prototype.parseEquality=function(){for(var t=this.parseRelational();this.next.type==xs.Operator;){var e=this.next.strValue;switch(e){case"==":case"===":case"!=":case"!==":this.advance();var n=this.parseRelational();t=new hi(this.span(t.span.start),e,t,n);continue}break}return t},t.prototype.parseRelational=function(){for(var t=this.parseAdditive();this.next.type==xs.Operator;){var e=this.next.strValue;switch(e){case"<":case">":case"<=":case">=":this.advance();var n=this.parseAdditive();t=new hi(this.span(t.span.start),e,t,n);continue}break}return t},t.prototype.parseAdditive=function(){for(var t=this.parseMultiplicative();this.next.type==xs.Operator;){var e=this.next.strValue;switch(e){case"+":case"-":this.advance();var n=this.parseMultiplicative();t=new hi(this.span(t.span.start),e,t,n);continue}break}return t},t.prototype.parseMultiplicative=function(){for(var t=this.parsePrefix();this.next.type==xs.Operator;){var e=this.next.strValue;switch(e){case"*":case"%":case"/":this.advance();var n=this.parsePrefix();t=new hi(this.span(t.span.start),e,t,n);continue}break}return t},t.prototype.parsePrefix=function(){if(this.next.type==xs.Operator){var t=this.inputIndex,e=this.next.strValue,n=void 0;switch(e){case"+":return this.advance(),this.parsePrefix();case"-":return this.advance(),n=this.parsePrefix(),new hi(this.span(t),e,new ui(new $o(t,t),0),n);case"!":return this.advance(),n=this.parsePrefix(),new fi(this.span(t),n)}}return this.parseCallChain()},t.prototype.parseCallChain=function(){for(var t=this.parsePrimary();;)if(this.optionalCharacter(Bi))t=this.parseAccessMemberOrMethodCall(t,!1);else if(this.optionalOperator("?."))t=this.parseAccessMemberOrMethodCall(t,!0);else if(this.optionalCharacter(ns)){this.rbracketsExpected++;var e=this.parsePipe();if(this.rbracketsExpected--,this.expectCharacter(os),this.optionalOperator("=")){var n=this.parseConditional();t=new si(this.span(t.span.start),t,e,n)}else t=new ii(this.span(t.span.start),t,e)}else{if(!this.optionalCharacter(Di))return t;this.rparensExpected++;var r=this.parseCallArguments();this.rparensExpected--,this.expectCharacter(ji),t=new vi(this.span(t.span.start),t,r)}},t.prototype.parsePrimary=function(){var t=this.inputIndex;if(this.optionalCharacter(Di)){this.rparensExpected++;var e=this.parsePipe();return this.rparensExpected--,this.expectCharacter(ji),e}if(this.next.isKeywordNull())return this.advance(),new ui(this.span(t),null);if(this.next.isKeywordUndefined())return this.advance(),new ui(this.span(t),void 0);if(this.next.isKeywordTrue())return this.advance(),new ui(this.span(t),!0);if(this.next.isKeywordFalse())return this.advance(),new ui(this.span(t),!1);if(this.next.isKeywordThis())return this.advance(),new Jo(this.span(t));if(this.optionalCharacter(ns)){this.rbracketsExpected++;var n=this.parseExpressionList(os);return this.rbracketsExpected--,this.expectCharacter(os),new ci(this.span(t),n)}if(this.next.isCharacter(ms))return this.parseLiteralMap();if(this.next.isIdentifier())return this.parseAccessMemberOrMethodCall(new Jo(this.span(t)),!1);if(this.next.isNumber()){var r=this.next.toNumber();return this.advance(),new ui(this.span(t),r)}if(this.next.isString()){var o=this.next.toString();return this.advance(),new ui(this.span(t),o)}return this.index>=this.tokens.length?(this.error("Unexpected end of expression: "+this.input),new Yo(this.span(t))):(this.error("Unexpected token "+this.next),new Yo(this.span(t)))},t.prototype.parseExpressionList=function(t){var e=[];if(!this.next.isCharacter(t))do e.push(this.parsePipe());while(this.optionalCharacter(Fi));return e},t.prototype.parseLiteralMap=function(){var t=[],e=[],n=this.inputIndex;if(this.expectCharacter(ms),!this.optionalCharacter(_s)){this.rbracesExpected++;do{var r=this.expectIdentifierOrKeywordOrString();t.push(r),this.expectCharacter(qi),e.push(this.parsePipe())}while(this.optionalCharacter(Fi));this.rbracesExpected--,this.expectCharacter(_s)}return new li(this.span(n),t,e)},t.prototype.parseAccessMemberOrMethodCall=function(t,e){void 0===e&&(e=!1);var n=t.span.start,r=this.expectIdentifierOrKeyword();if(this.optionalCharacter(Di)){this.rparensExpected++;var o=this.parseCallArguments();this.expectCharacter(ji),this.rparensExpected--;var i=this.span(n);return e?new yi(i,t,r,o):new di(i,t,r,o)}if(e)return this.optionalOperator("=")?(this.error("The '?.' operator cannot be used in the assignment"),new Yo(this.span(n))):new oi(this.span(n),t,r);if(this.optionalOperator("=")){if(!this.parseAction)return this.error("Bindings cannot contain assignments"),new Yo(this.span(n));var s=this.parseConditional();return new ri(this.span(n),t,r,s)}return new ni(this.span(n),t,r)},t.prototype.parseCallArguments=function(){if(this.next.isCharacter(ji))return[];var t=[];do t.push(this.parsePipe());while(this.optionalCharacter(Fi));return t},t.prototype.expectTemplateBindingKey=function(){var t="",e=!1;do t+=this.expectIdentifierOrKeywordOrString(),e=this.optionalOperator("-"),e&&(t+="-");while(e);return t.toString()},t.prototype.parseTemplateBindings=function(){for(var t=[],e=null,n=[];this.index<this.tokens.length;){var r=this.inputIndex,o=this.peekKeywordLet();o&&this.advance();var i=this.expectTemplateBindingKey(),s=i;o||(null==e?e=s:s=e+s[0].toUpperCase()+s.substring(1)),this.optionalCharacter(qi);var a=null,u=null;if(o)a=this.optionalOperator("=")?this.expectTemplateBindingKey():"$implicit";else if(this.peekKeywordAs()){var c=this.inputIndex;this.advance(),a=i,s=this.expectTemplateBindingKey(),o=!0}else if(this.next!==Os&&!this.peekKeywordLet()){var l=this.inputIndex,p=this.parsePipe(),h=this.input.substring(l-this.offset,this.inputIndex-this.offset);u=new mi(p,h,this.location,this.errors)}if(t.push(new gi(this.span(r),s,o,a,u)),this.peekKeywordAs()&&!o){var c=this.inputIndex;this.advance();var f=this.expectTemplateBindingKey();t.push(new gi(this.span(c),f,!0,s,null))}this.optionalCharacter(zi)||this.optionalCharacter(Fi)}return new ks(t,n,this.errors)},t.prototype.error=function(t,e){void 0===e&&(e=null),this.errors.push(new Qo(t,this.input,this.locationText(e),this.location)),this.skip()},t.prototype.locationText=function(t){return void 0===t&&(t=null),null==t&&(t=this.index),t<this.tokens.length?"at column "+(this.tokens[t].index+1)+" in":"at the end of the expression"},t.prototype.skip=function(){for(var t=this.next;this.index<this.tokens.length&&!t.isCharacter(zi)&&(this.rparensExpected<=0||!t.isCharacter(ji))&&(this.rbracesExpected<=0||!t.isCharacter(_s))&&(this.rbracketsExpected<=0||!t.isCharacter(os));)this.next.isError()&&this.errors.push(new Qo(this.next.toString(),this.input,this.locationText(),this.location)),this.advance(),t=this.next},t}(),Ds=function(){function t(){this.errors=[]}return t.check=function(e){var n=new t;return e.visit(n),n.errors},t.prototype.visitImplicitReceiver=function(){},t.prototype.visitInterpolation=function(){},t.prototype.visitLiteralPrimitive=function(){},t.prototype.visitPropertyRead=function(){},t.prototype.visitPropertyWrite=function(){},t.prototype.visitSafePropertyRead=function(){},t.prototype.visitMethodCall=function(){},t.prototype.visitSafeMethodCall=function(){},t.prototype.visitFunctionCall=function(){},t.prototype.visitLiteralArray=function(t){this.visitAll(t.expressions)},t.prototype.visitLiteralMap=function(t){this.visitAll(t.values)},t.prototype.visitBinary=function(){},t.prototype.visitPrefixNot=function(){},t.prototype.visitConditional=function(){},t.prototype.visitPipe=function(){this.errors.push("pipes")},t.prototype.visitKeyedRead=function(){},t.prototype.visitKeyedWrite=function(){},t.prototype.visitAll=function(t){var e=this;return t.map(function(t){return t.visit(e)})},t.prototype.visitChain=function(){},t.prototype.visitQuote=function(){},t}(),js=function(){function t(t,e,n,r){this.file=t,this.offset=e,this.line=n,this.col=r}return t.prototype.toString=function(){return null!=this.offset?this.file.url+"@"+this.line+":"+this.col:this.file.url},t.prototype.moveBy=function(e){for(var n=this.file.content,r=n.length,o=this.offset,i=this.line,s=this.col;o>0&&0>e;){o--,e++;var a=n.charCodeAt(o);if(a==Ei){i--;var u=n.substr(0,o-1).lastIndexOf(String.fromCharCode(Ei));s=u>0?o-u:o}else s--}for(;r>o&&e>0;){var a=n.charCodeAt(o);o++,e--,a==Ei?(i++,s=0):s++}return new t(this.file,o,i,s)},t.prototype.getContext=function(t,e){var n=this.file.content,r=this.offset;if(null!=r){r>n.length-1&&(r=n.length-1);for(var o=r,i=0,s=0;t>i&&r>0&&(r--,i++,"\n"!=n[r]||++s!=e););for(i=0,s=0;t>i&&o<n.length-1&&(o++,i++,"\n"!=n[o]||++s!=e););return{before:n.substring(r,this.offset),after:n.substring(this.offset,o+1)}}return null},t}(),Ls=function(){function t(t,e){this.content=t,this.url=e}return t}(),Vs=function(){function t(t,e,n){void 0===n&&(n=null),this.start=t,this.end=e,this.details=n}return t.prototype.toString=function(){return this.start.file.content.substring(this.start.offset,this.end.offset)},t}(),Fs={};Fs.WARNING=0,Fs.ERROR=1,Fs[Fs.WARNING]="WARNING",Fs[Fs.ERROR]="ERROR";var Us=function(){function t(t,e,n){void 0===n&&(n=Fs.ERROR),this.span=t,this.msg=e,this.level=n}return t.prototype.toString=function(){var t=this.span.start.getContext(100,3),e=t?' ("'+t.before+"["+Fs[this.level]+" ->]"+t.after+'")':"",n=this.span.details?", "+this.span.details:"";return""+this.msg+e+": "+this.span.start+n},t}(),Bs=function(){function t(t,e){this.value=t,this.sourceSpan=e}return t.prototype.visit=function(t,e){return t.visitText(this,e)},t}(),Hs=function(){function t(t,e,n,r,o){this.switchValue=t,this.type=e,this.cases=n,this.sourceSpan=r,this.switchValueSourceSpan=o}return t.prototype.visit=function(t,e){return t.visitExpansion(this,e)},t}(),qs=function(){function t(t,e,n,r,o){this.value=t,this.expression=e,this.sourceSpan=n,this.valueSourceSpan=r,this.expSourceSpan=o}return t.prototype.visit=function(t,e){return t.visitExpansionCase(this,e)},t}(),zs=function(){function t(t,e,n,r){this.name=t,this.value=e,this.sourceSpan=n,this.valueSpan=r}return t.prototype.visit=function(t,e){return t.visitAttribute(this,e)},t}(),Gs=function(){function t(t,e,n,r,o,i){this.name=t,this.attrs=e,this.children=n,this.sourceSpan=r,this.startSourceSpan=o,this.endSourceSpan=i}return t.prototype.visit=function(t,e){return t.visitElement(this,e)},t}(),Ws=function(){function t(t,e){this.value=t,this.sourceSpan=e}return t.prototype.visit=function(t,e){return t.visitComment(this,e)},t}(),Ks={};Ks.TAG_OPEN_START=0,Ks.TAG_OPEN_END=1,Ks.TAG_OPEN_END_VOID=2,Ks.TAG_CLOSE=3,Ks.TEXT=4,Ks.ESCAPABLE_RAW_TEXT=5,Ks.RAW_TEXT=6,Ks.COMMENT_START=7,Ks.COMMENT_END=8,Ks.CDATA_START=9,Ks.CDATA_END=10,Ks.ATTR_NAME=11,Ks.ATTR_VALUE=12,Ks.DOC_TYPE=13,Ks.EXPANSION_FORM_START=14,Ks.EXPANSION_CASE_VALUE=15,Ks.EXPANSION_CASE_EXP_START=16,Ks.EXPANSION_CASE_EXP_END=17,Ks.EXPANSION_FORM_END=18,Ks.EOF=19,Ks[Ks.TAG_OPEN_START]="TAG_OPEN_START",Ks[Ks.TAG_OPEN_END]="TAG_OPEN_END",Ks[Ks.TAG_OPEN_END_VOID]="TAG_OPEN_END_VOID",Ks[Ks.TAG_CLOSE]="TAG_CLOSE",Ks[Ks.TEXT]="TEXT",Ks[Ks.ESCAPABLE_RAW_TEXT]="ESCAPABLE_RAW_TEXT",Ks[Ks.RAW_TEXT]="RAW_TEXT",Ks[Ks.COMMENT_START]="COMMENT_START",Ks[Ks.COMMENT_END]="COMMENT_END",Ks[Ks.CDATA_START]="CDATA_START",Ks[Ks.CDATA_END]="CDATA_END",Ks[Ks.ATTR_NAME]="ATTR_NAME",Ks[Ks.ATTR_VALUE]="ATTR_VALUE",Ks[Ks.DOC_TYPE]="DOC_TYPE",Ks[Ks.EXPANSION_FORM_START]="EXPANSION_FORM_START",Ks[Ks.EXPANSION_CASE_VALUE]="EXPANSION_CASE_VALUE",Ks[Ks.EXPANSION_CASE_EXP_START]="EXPANSION_CASE_EXP_START",Ks[Ks.EXPANSION_CASE_EXP_END]="EXPANSION_CASE_EXP_END",Ks[Ks.EXPANSION_FORM_END]="EXPANSION_FORM_END",Ks[Ks.EOF]="EOF";var Qs=function(){function t(t,e,n){this.type=t,this.parts=e,this.sourceSpan=n}return t}(),$s=function(t){function e(e,n,r){var o=t.call(this,r,e)||this;return o.tokenType=n,o}return zr(e,t),e}(Us),Xs=function(){function t(t,e){this.tokens=t,this.errors=e}return t}(),Zs=/\r\n?/g,Ys=function(){function t(t){this.error=t}return t}(),Js=function(){function t(t,e,n,r){void 0===r&&(r=Ss),this._file=t,this._getTagDefinition=e,this._tokenizeIcu=n,this._interpolationConfig=r,this._peek=-1,this._nextPeek=-1,this._index=-1,this._line=0,this._column=-1,this._expansionCaseStack=[],this._inInterpolation=!1,this.tokens=[],this.errors=[],this._input=t.content,this._length=t.content.length,this._advance()}return t.prototype._processCarriageReturns=function(t){return t.replace(Zs,"\n")},t.prototype.tokenize=function(){for(;this._peek!==wi;){var t=this._getLocation();try{this._attemptCharCode(Gi)?this._attemptCharCode(Ai)?this._attemptCharCode(ns)?this._consumeCdata(t):this._attemptCharCode(Ui)?this._consumeComment(t):this._consumeDocType(t):this._attemptCharCode(Hi)?this._consumeTagClose(t):this._consumeTagOpen(t):this._tokenizeIcu&&this._tokenizeExpansionForm()||this._consumeText()}catch(e){if(!(e instanceof Ys))throw e;this.errors.push(e.error)}}return this._beginToken(Ks.EOF),this._endToken([]),new Xs(gt(this.tokens),this.errors)},t.prototype._tokenizeExpansionForm=function(){if(dt(this._input,this._index,this._interpolationConfig))return this._consumeExpansionFormStart(),!0;if(yt(this._peek)&&this._isInExpansionForm())return this._consumeExpansionCaseStart(),!0;if(this._peek===_s){if(this._isInExpansionCase())return this._consumeExpansionCaseEnd(),!0;if(this._isInExpansionForm())return this._consumeExpansionFormEnd(),!0}return!1},t.prototype._getLocation=function(){return new js(this._file,this._index,this._line,this._column)},t.prototype._getSpan=function(t,e){return void 0===t&&(t=this._getLocation()),void 0===e&&(e=this._getLocation()),new Vs(t,e)},t.prototype._beginToken=function(t,e){void 0===e&&(e=this._getLocation()),this._currentTokenStart=e,this._currentTokenType=t},t.prototype._endToken=function(t,e){void 0===e&&(e=this._getLocation());var n=new Qs(this._currentTokenType,t,new Vs(this._currentTokenStart,e));return this.tokens.push(n),this._currentTokenStart=null,this._currentTokenType=null,n},t.prototype._createError=function(t,e){this._isInExpansionForm()&&(t+=' (Do you have an unescaped "{" in your template? Use "{{ \'{\' }}") to escape it.)');var n=new $s(t,this._currentTokenType,e);return this._currentTokenStart=null,this._currentTokenType=null,new Ys(n)},t.prototype._advance=function(){if(this._index>=this._length)throw this._createError(at(wi),this._getSpan());this._peek===Ei?(this._line++,this._column=0):this._peek!==Ei&&this._peek!==Ti&&this._column++,this._index++,this._peek=this._index>=this._length?wi:this._input.charCodeAt(this._index),this._nextPeek=this._index+1>=this._length?wi:this._input.charCodeAt(this._index+1)},t.prototype._attemptCharCode=function(t){return this._peek===t?(this._advance(),!0):!1},t.prototype._attemptCharCodeCaseInsensitive=function(t){return vt(this._peek,t)?(this._advance(),!0):!1},t.prototype._requireCharCode=function(t){var e=this._getLocation();if(!this._attemptCharCode(t))throw this._createError(at(this._peek),this._getSpan(e,e))},t.prototype._attemptStr=function(t){var e=t.length;if(this._index+e>this._length)return!1;for(var n=this._savePosition(),r=0;e>r;r++)if(!this._attemptCharCode(t.charCodeAt(r)))return this._restorePosition(n),!1;return!0},t.prototype._attemptStrCaseInsensitive=function(t){for(var e=0;e<t.length;e++)if(!this._attemptCharCodeCaseInsensitive(t.charCodeAt(e)))return!1;return!0},t.prototype._requireStr=function(t){var e=this._getLocation();if(!this._attemptStr(t))throw this._createError(at(this._peek),this._getSpan(e))},t.prototype._attemptCharCodeUntilFn=function(t){for(;!t(this._peek);)this._advance()},t.prototype._requireCharCodeUntilFn=function(t,e){var n=this._getLocation();if(this._attemptCharCodeUntilFn(t),this._index-n.offset<e)throw this._createError(at(this._peek),this._getSpan(n,n))},t.prototype._attemptUntilChar=function(t){for(;this._peek!==t;)this._advance()},t.prototype._readChar=function(t){if(t&&this._peek===Ii)return this._decodeEntity();var e=this._index;return this._advance(),this._input[e]},t.prototype._decodeEntity=function(){var t=this._getLocation();if(this._advance(),!this._attemptCharCode(Mi)){var e=this._savePosition();if(this._attemptCharCodeUntilFn(ft),this._peek!=zi)return this._restorePosition(e),"&";this._advance();var n=this._input.substring(t.offset+1,this._index-1),r=lo[n];if(!r)throw this._createError(ut(n),this._getSpan(t));return r}var o=this._attemptCharCode(ys)||this._attemptCharCode(ts),i=this._getLocation().offset;if(this._attemptCharCodeUntilFn(ht),this._peek!=zi)throw this._createError(at(this._peek),this._getSpan());this._advance();var s=this._input.substring(i,this._index-1);try{var a=parseInt(s,o?16:10);return String.fromCharCode(a)}catch(u){var c=this._input.substring(t.offset+1,this._index-1);throw this._createError(ut(c),this._getSpan(t))}},t.prototype._consumeRawText=function(t,e,n){var r,o=this._getLocation();this._beginToken(t?Ks.ESCAPABLE_RAW_TEXT:Ks.RAW_TEXT,o);for(var i=[];;){if(r=this._getLocation(),this._attemptCharCode(e)&&n())break;for(this._index>r.offset&&i.push(this._input.substring(r.offset,this._index));this._peek!==e;)i.push(this._readChar(t))}return this._endToken([this._processCarriageReturns(i.join(""))],r)},t.prototype._consumeComment=function(t){var e=this;this._beginToken(Ks.COMMENT_START,t),this._requireCharCode(Ui),this._endToken([]);var n=this._consumeRawText(!1,Ui,function(){return e._attemptStr("->")});this._beginToken(Ks.COMMENT_END,n.sourceSpan.end),this._endToken([])},t.prototype._consumeCdata=function(t){var e=this;this._beginToken(Ks.CDATA_START,t),this._requireStr("CDATA["),this._endToken([]);var n=this._consumeRawText(!1,os,function(){return e._attemptStr("]>")});this._beginToken(Ks.CDATA_END,n.sourceSpan.end),this._endToken([])},t.prototype._consumeDocType=function(t){this._beginToken(Ks.DOC_TYPE,t),this._attemptUntilChar(Ki),this._advance(),this._endToken([this._input.substring(t.offset+2,this._index-1)])},t.prototype._consumePrefixAndName=function(){for(var t=this._index,e=null;this._peek!==qi&&!pt(this._peek);)this._advance();var n;this._peek===qi?(this._advance(),e=this._input.substring(t,this._index-1),n=this._index):n=t,this._requireCharCodeUntilFn(lt,this._index===n?1:0);var r=this._input.substring(n,this._index);return[e,r]},t.prototype._consumeTagOpen=function(t){var e,n,r=this._savePosition();try{if(!L(this._peek))throw this._createError(at(this._peek),this._getSpan());var o=this._index;for(this._consumeTagOpenStart(t),e=this._input.substring(o,this._index),n=e.toLowerCase(),this._attemptCharCodeUntilFn(ct);this._peek!==Hi&&this._peek!==Ki;)this._consumeAttributeName(),this._attemptCharCodeUntilFn(ct),this._attemptCharCode(Wi)&&(this._attemptCharCodeUntilFn(ct),this._consumeAttributeValue()),this._attemptCharCodeUntilFn(ct);this._consumeTagOpenEnd()}catch(i){if(i instanceof Ys)return this._restorePosition(r),this._beginToken(Ks.TEXT,t),void this._endToken(["<"]);throw i}var s=this._getTagDefinition(e).contentType;s===co.RAW_TEXT?this._consumeRawTextWithTagClose(n,!1):s===co.ESCAPABLE_RAW_TEXT&&this._consumeRawTextWithTagClose(n,!0)},t.prototype._consumeRawTextWithTagClose=function(t,e){var n=this,r=this._consumeRawText(e,Gi,function(){return n._attemptCharCode(Hi)?(n._attemptCharCodeUntilFn(ct),n._attemptStrCaseInsensitive(t)?(n._attemptCharCodeUntilFn(ct),n._attemptCharCode(Ki)):!1):!1});this._beginToken(Ks.TAG_CLOSE,r.sourceSpan.end),this._endToken([null,t])},t.prototype._consumeTagOpenStart=function(t){this._beginToken(Ks.TAG_OPEN_START,t);var e=this._consumePrefixAndName();this._endToken(e)},t.prototype._consumeAttributeName=function(){this._beginToken(Ks.ATTR_NAME);var t=this._consumePrefixAndName();this._endToken(t)},t.prototype._consumeAttributeValue=function(){this._beginToken(Ks.ATTR_VALUE);var t;if(this._peek===Ni||this._peek===Oi){var e=this._peek;this._advance();for(var n=[];this._peek!==e;)n.push(this._readChar(!0));t=n.join(""),this._advance()}else{var r=this._index;this._requireCharCodeUntilFn(lt,1),t=this._input.substring(r,this._index)}this._endToken([this._processCarriageReturns(t)])},t.prototype._consumeTagOpenEnd=function(){var t=this._attemptCharCode(Hi)?Ks.TAG_OPEN_END_VOID:Ks.TAG_OPEN_END;this._beginToken(t),this._requireCharCode(Ki),this._endToken([])},t.prototype._consumeTagClose=function(t){this._beginToken(Ks.TAG_CLOSE,t),this._attemptCharCodeUntilFn(ct);var e=this._consumePrefixAndName();this._attemptCharCodeUntilFn(ct),this._requireCharCode(Ki),this._endToken(e)},t.prototype._consumeExpansionFormStart=function(){this._beginToken(Ks.EXPANSION_FORM_START,this._getLocation()),this._requireCharCode(ms),this._endToken([]),this._expansionCaseStack.push(Ks.EXPANSION_FORM_START),this._beginToken(Ks.RAW_TEXT,this._getLocation());var t=this._readUntil(Fi);this._endToken([t],this._getLocation()),this._requireCharCode(Fi),this._attemptCharCodeUntilFn(ct),this._beginToken(Ks.RAW_TEXT,this._getLocation());var e=this._readUntil(Fi);this._endToken([e],this._getLocation()),this._requireCharCode(Fi),this._attemptCharCodeUntilFn(ct)},t.prototype._consumeExpansionCaseStart=function(){this._beginToken(Ks.EXPANSION_CASE_VALUE,this._getLocation());var t=this._readUntil(ms).trim();this._endToken([t],this._getLocation()),this._attemptCharCodeUntilFn(ct),this._beginToken(Ks.EXPANSION_CASE_EXP_START,this._getLocation()),this._requireCharCode(ms),this._endToken([],this._getLocation()),this._attemptCharCodeUntilFn(ct),this._expansionCaseStack.push(Ks.EXPANSION_CASE_EXP_START)},t.prototype._consumeExpansionCaseEnd=function(){this._beginToken(Ks.EXPANSION_CASE_EXP_END,this._getLocation()),this._requireCharCode(_s),this._endToken([],this._getLocation()),this._attemptCharCodeUntilFn(ct),this._expansionCaseStack.pop()},t.prototype._consumeExpansionFormEnd=function(){this._beginToken(Ks.EXPANSION_FORM_END,this._getLocation()),this._requireCharCode(_s),this._endToken([]),this._expansionCaseStack.pop()},t.prototype._consumeText=function(){var t=this._getLocation();this._beginToken(Ks.TEXT,t);var e=[];do this._interpolationConfig&&this._attemptStr(this._interpolationConfig.start)?(e.push(this._interpolationConfig.start),this._inInterpolation=!0):this._interpolationConfig&&this._inInterpolation&&this._attemptStr(this._interpolationConfig.end)?(e.push(this._interpolationConfig.end),this._inInterpolation=!1):e.push(this._readChar(!0));while(!this._isTextEnd());this._endToken([this._processCarriageReturns(e.join(""))])},t.prototype._isTextEnd=function(){if(this._peek===Gi||this._peek===wi)return!0;if(this._tokenizeIcu&&!this._inInterpolation){if(dt(this._input,this._index,this._interpolationConfig))return!0;if(this._peek===_s&&this._isInExpansionCase())return!0}return!1},t.prototype._savePosition=function(){return[this._peek,this._index,this._column,this._line,this.tokens.length]},t.prototype._readUntil=function(t){var e=this._index;return this._attemptUntilChar(t),this._input.substring(e,this._index)},t.prototype._restorePosition=function(t){this._peek=t[0],this._index=t[1],this._column=t[2],this._line=t[3];var e=t[4];e<this.tokens.length&&(this.tokens=this.tokens.slice(0,e))},t.prototype._isInExpansionCase=function(){return this._expansionCaseStack.length>0&&this._expansionCaseStack[this._expansionCaseStack.length-1]===Ks.EXPANSION_CASE_EXP_START},t.prototype._isInExpansionForm=function(){return this._expansionCaseStack.length>0&&this._expansionCaseStack[this._expansionCaseStack.length-1]===Ks.EXPANSION_FORM_START},t}(),ta=function(t){function e(e,n,r){var o=t.call(this,n,r)||this;return o.elementName=e,o}return zr(e,t),e.create=function(t,n,r){return new e(t,n,r)},e}(Us),ea=function(){function t(t,e){this.rootNodes=t,this.errors=e}return t}(),na=function(){function t(t){this.getTagDefinition=t}return t.prototype.parse=function(t,e,n,r){void 0===n&&(n=!1),void 0===r&&(r=Ss);var o=st(t,e,this.getTagDefinition,n,r),i=new ra(o.tokens,this.getTagDefinition).build();return new ea(i.rootNodes,o.errors.concat(i.errors))},t}(),ra=function(){function t(t,e){this.tokens=t,this.getTagDefinition=e,this._index=-1,this._rootNodes=[],this._errors=[],this._elementStack=[],this._advance()}return t.prototype.build=function(){for(;this._peek.type!==Ks.EOF;)this._peek.type===Ks.TAG_OPEN_START?this._consumeStartTag(this._advance()):this._peek.type===Ks.TAG_CLOSE?this._consumeEndTag(this._advance()):this._peek.type===Ks.CDATA_START?(this._closeVoidElement(),this._consumeCdata(this._advance())):this._peek.type===Ks.COMMENT_START?(this._closeVoidElement(),this._consumeComment(this._advance())):this._peek.type===Ks.TEXT||this._peek.type===Ks.RAW_TEXT||this._peek.type===Ks.ESCAPABLE_RAW_TEXT?(this._closeVoidElement(),this._consumeText(this._advance())):this._peek.type===Ks.EXPANSION_FORM_START?this._consumeExpansion(this._advance()):this._advance();return new ea(this._rootNodes,this._errors)},t.prototype._advance=function(){var t=this._peek;return this._index<this.tokens.length-1&&this._index++,this._peek=this.tokens[this._index],t},t.prototype._advanceIf=function(t){return this._peek.type===t?this._advance():null},t.prototype._consumeCdata=function(){this._consumeText(this._advance()), +this._advanceIf(Ks.CDATA_END)},t.prototype._consumeComment=function(t){var e=this._advanceIf(Ks.RAW_TEXT);this._advanceIf(Ks.COMMENT_END);var n=null!=e?e.parts[0].trim():null;this._addToParent(new Ws(n,t.sourceSpan))},t.prototype._consumeExpansion=function(t){for(var e=this._advance(),n=this._advance(),r=[];this._peek.type===Ks.EXPANSION_CASE_VALUE;){var o=this._parseExpansionCase();if(!o)return;r.push(o)}if(this._peek.type!==Ks.EXPANSION_FORM_END)return void this._errors.push(ta.create(null,this._peek.sourceSpan,"Invalid ICU message. Missing '}'."));var i=new Vs(t.sourceSpan.start,this._peek.sourceSpan.end);this._addToParent(new Hs(e.parts[0],n.parts[0],r,i,e.sourceSpan)),this._advance()},t.prototype._parseExpansionCase=function(){var e=this._advance();if(this._peek.type!==Ks.EXPANSION_CASE_EXP_START)return this._errors.push(ta.create(null,this._peek.sourceSpan,"Invalid ICU message. Missing '{'.")),null;var n=this._advance(),r=this._collectExpansionExpTokens(n);if(!r)return null;var o=this._advance();r.push(new Qs(Ks.EOF,[],o.sourceSpan));var i=new t(r,this.getTagDefinition).build();if(i.errors.length>0)return this._errors=this._errors.concat(i.errors),null;var s=new Vs(e.sourceSpan.start,o.sourceSpan.end),a=new Vs(n.sourceSpan.start,o.sourceSpan.end);return new qs(e.parts[0],i.rootNodes,s,e.sourceSpan,a)},t.prototype._collectExpansionExpTokens=function(t){for(var e=[],n=[Ks.EXPANSION_CASE_EXP_START];;){if((this._peek.type===Ks.EXPANSION_FORM_START||this._peek.type===Ks.EXPANSION_CASE_EXP_START)&&n.push(this._peek.type),this._peek.type===Ks.EXPANSION_CASE_EXP_END){if(!_t(n,Ks.EXPANSION_CASE_EXP_START))return this._errors.push(ta.create(null,t.sourceSpan,"Invalid ICU message. Missing '}'.")),null;if(n.pop(),0==n.length)return e}if(this._peek.type===Ks.EXPANSION_FORM_END){if(!_t(n,Ks.EXPANSION_FORM_START))return this._errors.push(ta.create(null,t.sourceSpan,"Invalid ICU message. Missing '}'.")),null;n.pop()}if(this._peek.type===Ks.EOF)return this._errors.push(ta.create(null,t.sourceSpan,"Invalid ICU message. Missing '}'.")),null;e.push(this._advance())}},t.prototype._consumeText=function(t){var e=t.parts[0];if(e.length>0&&"\n"==e[0]){var n=this._getParentElement();null!=n&&0==n.children.length&&this.getTagDefinition(n.name).ignoreFirstLf&&(e=e.substring(1))}e.length>0&&this._addToParent(new Bs(e,t.sourceSpan))},t.prototype._closeVoidElement=function(){if(this._elementStack.length>0){var t=this._elementStack[this._elementStack.length-1];this.getTagDefinition(t.name).isVoid&&this._elementStack.pop()}},t.prototype._consumeStartTag=function(t){for(var e=t.parts[0],n=t.parts[1],r=[];this._peek.type===Ks.ATTR_NAME;)r.push(this._consumeAttr(this._advance()));var i=this._getElementFullName(e,n,this._getParentElement()),s=!1;if(this._peek.type===Ks.TAG_OPEN_END_VOID){this._advance(),s=!0;var a=this.getTagDefinition(i);a.canSelfClose||null!==o(i)||a.isVoid||this._errors.push(ta.create(i,t.sourceSpan,'Only void and foreign elements can be self closed "'+t.parts[1]+'"'))}else this._peek.type===Ks.TAG_OPEN_END&&(this._advance(),s=!1);var u=this._peek.sourceSpan.start,c=new Vs(t.sourceSpan.start,u),l=new Gs(i,r,[],c,c,null);this._pushElement(l),s&&(this._popElement(i),l.endSourceSpan=c)},t.prototype._pushElement=function(t){if(this._elementStack.length>0){var e=this._elementStack[this._elementStack.length-1];this.getTagDefinition(e.name).isClosedByChild(t.name)&&this._elementStack.pop()}var n=this.getTagDefinition(t.name),r=this._getParentElementSkippingContainers(),o=r.parent,i=r.container;if(o&&n.requireExtraParent(o.name)){var s=new Gs(n.parentToAdd,[],[],t.sourceSpan,t.startSourceSpan,t.endSourceSpan);this._insertBeforeContainer(o,i,s)}this._addToParent(t),this._elementStack.push(t)},t.prototype._consumeEndTag=function(t){var e=this._getElementFullName(t.parts[0],t.parts[1],this._getParentElement());if(this._getParentElement()&&(this._getParentElement().endSourceSpan=t.sourceSpan),this.getTagDefinition(e).isVoid)this._errors.push(ta.create(e,t.sourceSpan,'Void elements do not have end tags "'+t.parts[1]+'"'));else if(!this._popElement(e)){var n='Unexpected closing tag "'+e+'". It may happen when the tag has already been closed by another tag. For more info see https://www.w3.org/TR/html5/syntax.html#closing-elements-that-have-implied-end-tags';this._errors.push(ta.create(e,t.sourceSpan,n))}},t.prototype._popElement=function(t){for(var e=this._elementStack.length-1;e>=0;e--){var n=this._elementStack[e];if(n.name==t)return this._elementStack.splice(e,this._elementStack.length-e),!0;if(!this.getTagDefinition(n.name).closedByParent)return!1}return!1},t.prototype._consumeAttr=function(t){var e,n=i(t.parts[0],t.parts[1]),r=t.sourceSpan.end,o="";if(this._peek.type===Ks.ATTR_VALUE){var s=this._advance();o=s.parts[0],r=s.sourceSpan.end,e=s.sourceSpan}return new zs(n,o,new Vs(t.sourceSpan.start,r),e)},t.prototype._getParentElement=function(){return this._elementStack.length>0?this._elementStack[this._elementStack.length-1]:null},t.prototype._getParentElementSkippingContainers=function(){for(var t=null,e=this._elementStack.length-1;e>=0;e--){if("ng-container"!==this._elementStack[e].name)return{parent:this._elementStack[e],container:t};t=this._elementStack[e]}return{parent:this._elementStack[this._elementStack.length-1],container:t}},t.prototype._addToParent=function(t){var e=this._getParentElement();null!=e?e.children.push(t):this._rootNodes.push(t)},t.prototype._insertBeforeContainer=function(t,e,n){if(e){if(t){var r=t.children.indexOf(e);t.children[r]=n}else this._rootNodes.push(n);n.children.push(e),this._elementStack.splice(this._elementStack.indexOf(e),0,n)}else this._addToParent(n),this._elementStack.push(n)},t.prototype._getElementFullName=function(t,e,n){return null==t&&(t=this.getTagDefinition(e).implicitNamespacePrefix,null==t&&null!=n&&(t=o(n.name))),i(t,e)},t}(),oa=function(){function t(t,e,n,r,o,i){this.nodes=t,this.placeholders=e,this.placeholderToMessage=n,this.meaning=r,this.description=o,this.id=i}return t}(),ia=function(){function t(t,e){this.value=t,this.sourceSpan=e}return t.prototype.visit=function(t,e){return t.visitText(this,e)},t}(),sa=function(){function t(t,e){this.children=t,this.sourceSpan=e}return t.prototype.visit=function(t,e){return t.visitContainer(this,e)},t}(),aa=function(){function t(t,e,n,r){this.expression=t,this.type=e,this.cases=n,this.sourceSpan=r}return t.prototype.visit=function(t,e){return t.visitIcu(this,e)},t}(),ua=function(){function t(t,e,n,r,o,i,s){this.tag=t,this.attrs=e,this.startName=n,this.closeName=r,this.children=o,this.isVoid=i,this.sourceSpan=s}return t.prototype.visit=function(t,e){return t.visitTagPlaceholder(this,e)},t}(),ca=function(){function t(t,e,n){this.value=t,this.name=e,this.sourceSpan=n}return t.prototype.visit=function(t,e){return t.visitPlaceholder(this,e)},t}(),la=function(){function t(t,e,n){this.value=t,this.name=e,this.sourceSpan=n}return t.prototype.visit=function(t,e){return t.visitIcuPlaceholder(this,e)},t}(),pa=function(){function t(){}return t.prototype.visitText=function(t){return new ia(t.value,t.sourceSpan)},t.prototype.visitContainer=function(t,e){var n=this,r=t.children.map(function(t){return t.visit(n,e)});return new sa(r,t.sourceSpan)},t.prototype.visitIcu=function(t,e){var n=this,r={};Object.keys(t.cases).forEach(function(o){return r[o]=t.cases[o].visit(n,e)});var o=new aa(t.expression,t.type,r,t.sourceSpan);return o.expressionPlaceholder=t.expressionPlaceholder,o},t.prototype.visitTagPlaceholder=function(t,e){var n=this,r=t.children.map(function(t){return t.visit(n,e)});return new ua(t.tag,t.attrs,t.startName,t.closeName,r,t.isVoid,t.sourceSpan)},t.prototype.visitPlaceholder=function(t){return new ca(t.value,t.name,t.sourceSpan)},t.prototype.visitIcuPlaceholder=function(t){return new la(t.value,t.name,t.sourceSpan)},t}(),ha=function(){function t(){}return t.prototype.visitText=function(){},t.prototype.visitContainer=function(t){var e=this;t.children.forEach(function(t){return t.visit(e)})},t.prototype.visitIcu=function(t){var e=this;Object.keys(t.cases).forEach(function(n){t.cases[n].visit(e)})},t.prototype.visitTagPlaceholder=function(t){var e=this;t.children.forEach(function(t){return t.visit(e)})},t.prototype.visitPlaceholder=function(){},t.prototype.visitIcuPlaceholder=function(){},t}(),fa={A:"LINK",B:"BOLD_TEXT",BR:"LINE_BREAK",EM:"EMPHASISED_TEXT",H1:"HEADING_LEVEL1",H2:"HEADING_LEVEL2",H3:"HEADING_LEVEL3",H4:"HEADING_LEVEL4",H5:"HEADING_LEVEL5",H6:"HEADING_LEVEL6",HR:"HORIZONTAL_RULE",I:"ITALIC_TEXT",LI:"LIST_ITEM",LINK:"MEDIA_LINK",OL:"ORDERED_LIST",P:"PARAGRAPH",Q:"QUOTATION",S:"STRIKETHROUGH_TEXT",SMALL:"SMALL_TEXT",SUB:"SUBSTRIPT",SUP:"SUPERSCRIPT",TBODY:"TABLE_BODY",TD:"TABLE_CELL",TFOOT:"TABLE_FOOTER",TH:"TABLE_HEADER_CELL",THEAD:"TABLE_HEADER",TR:"TABLE_ROW",TT:"MONOSPACED_TEXT",U:"UNDERLINED_TEXT",UL:"UNORDERED_LIST"},da=function(){function t(){this._placeHolderNameCounts={},this._signatureToName={}}return t.prototype.getStartTagPlaceholderName=function(t,e,n){var r=this._hashTag(t,e,n);if(this._signatureToName[r])return this._signatureToName[r];var o=t.toUpperCase(),i=fa[o]||"TAG_"+o,s=this._generateUniqueName(n?i:"START_"+i);return this._signatureToName[r]=s,s},t.prototype.getCloseTagPlaceholderName=function(t){var e=this._hashClosingTag(t);if(this._signatureToName[e])return this._signatureToName[e];var n=t.toUpperCase(),r=fa[n]||"TAG_"+n,o=this._generateUniqueName("CLOSE_"+r);return this._signatureToName[e]=o,o},t.prototype.getPlaceholderName=function(t,e){var n=t.toUpperCase(),r="PH: "+n+"="+e;if(this._signatureToName[r])return this._signatureToName[r];var o=this._generateUniqueName(n);return this._signatureToName[r]=o,o},t.prototype.getUniquePlaceholder=function(t){return this._generateUniqueName(t.toUpperCase())},t.prototype._hashTag=function(t,e,n){var r="<"+t,o=Object.keys(e).sort().map(function(t){return" "+t+"="+e[t]}).join(""),i=n?"/>":"></"+t+">";return r+o+i},t.prototype._hashClosingTag=function(t){return this._hashTag("/"+t,{},!1)},t.prototype._generateUniqueName=function(t){var e=this._placeHolderNameCounts.hasOwnProperty(t);if(!e)return this._placeHolderNameCounts[t]=1,t;var n=this._placeHolderNameCounts[t];return this._placeHolderNameCounts[t]=n+1,t+"_"+n},t}(),ya=new Is(new Ps),va=function(){function t(t,e){this._expressionParser=t,this._interpolationConfig=e}return t.prototype.toI18nMessage=function(t,e,n,r){this._isIcu=1==t.length&&t[0]instanceof Hs,this._icuDepth=0,this._placeholderRegistry=new da,this._placeholderToContent={},this._placeholderToMessage={};var o=it(this,t,{});return new oa(o,this._placeholderToContent,this._placeholderToMessage,e,n,r)},t.prototype.visitElement=function(t){var e=it(this,t.children),n={};t.attrs.forEach(function(t){n[t.name]=t.value});var r=s(t.name).isVoid,o=this._placeholderRegistry.getStartTagPlaceholderName(t.name,n,r);this._placeholderToContent[o]=t.sourceSpan.toString();var i="";return r||(i=this._placeholderRegistry.getCloseTagPlaceholderName(t.name),this._placeholderToContent[i]="</"+t.name+">"),new ua(t.name,n,o,i,e,r,t.sourceSpan)},t.prototype.visitAttribute=function(t){return this._visitTextWithInterpolation(t.value,t.sourceSpan)},t.prototype.visitText=function(t){return this._visitTextWithInterpolation(t.value,t.sourceSpan)},t.prototype.visitComment=function(){return null},t.prototype.visitExpansion=function(e){var n=this;this._icuDepth++;var r={},o=new aa(e.switchValue,e.type,r,e.sourceSpan);if(e.cases.forEach(function(t){r[t.value]=new sa(t.expression.map(function(t){return t.visit(n,{})}),t.expSourceSpan)}),this._icuDepth--,this._isIcu||this._icuDepth>0){var i=this._placeholderRegistry.getUniquePlaceholder("VAR_"+e.type);return o.expressionPlaceholder=i,this._placeholderToContent[i]=e.switchValue,o}var s=this._placeholderRegistry.getPlaceholderName("ICU",e.sourceSpan.toString()),a=new t(this._expressionParser,this._interpolationConfig);return this._placeholderToMessage[s]=a.toI18nMessage([e],"","",""),new la(o,s,e.sourceSpan)},t.prototype.visitExpansionCase=function(){throw new Error("Unreachable code")},t.prototype._visitTextWithInterpolation=function(t,e){var n=this._expressionParser.splitInterpolation(t,e.start.toString(),this._interpolationConfig);if(!n)return new ia(t,e);for(var r=[],o=new sa(r,e),i=this._interpolationConfig,s=i.start,a=i.end,u=0;u<n.strings.length-1;u++){var c=n.expressions[u],l=wt(c)||"INTERPOLATION",p=this._placeholderRegistry.getPlaceholderName(l,c);n.strings[u].length&&r.push(new ia(n.strings[u],e)),r.push(new ca(c,p,e)),this._placeholderToContent[p]=s+c+a}var h=n.strings.length-1;return n.strings[h].length&&r.push(new ia(n.strings[h],e)),o},t}(),ma=/\/\/[\s\S]*i18n[\s\S]*\([\s\S]*ph[\s\S]*=[\s\S]*("|')([\s\S]*?)\1[\s\S]*\)/g,ga=function(t){function e(e,n){return t.call(this,e,n)||this}return zr(e,t),e}(Us),_a="i18n",ba="i18n-",wa=/^i18n:?/,Ca="|",Ea="@@",Sa=function(){function t(t,e){this.messages=t,this.errors=e}return t}(),xa={};xa.Extract=0,xa.Merge=1,xa[xa.Extract]="Extract",xa[xa.Merge]="Merge";var Ta=function(){function t(t,e){this._implicitTags=t,this._implicitAttrs=e}return t.prototype.extract=function(t,e){var n=this;return this._init(xa.Extract,e),t.forEach(function(t){return t.visit(n,null)}),this._inI18nBlock&&this._reportError(t[t.length-1],"Unclosed block"),new Sa(this._messages,this._errors)},t.prototype.merge=function(t,e,n){this._init(xa.Merge,n),this._translations=e;var r=new Gs("wrapper",[],t,null,null,null),o=r.visit(this,null);return this._inI18nBlock&&this._reportError(t[t.length-1],"Unclosed block"),new ea(o.children,this._errors)},t.prototype.visitExpansionCase=function(t,e){var n=it(this,t.expression,e);return this._mode===xa.Merge?new qs(t.value,n,t.sourceSpan,t.valueSourceSpan,t.expSourceSpan):void 0},t.prototype.visitExpansion=function(t,e){this._mayBeAddBlockChildren(t);var n=this._inIcu;this._inIcu||(this._isInTranslatableSection&&this._addMessage([t]),this._inIcu=!0);var r=it(this,t.cases,e);return this._mode===xa.Merge&&(t=new Hs(t.switchValue,t.type,r,t.sourceSpan,t.switchValueSourceSpan)),this._inIcu=n,t},t.prototype.visitComment=function(t){var e=St(t);if(e&&this._isInTranslatableSection)return void this._reportError(t,"Could not start a block inside a translatable section");var n=xt(t);if(n&&!this._inI18nBlock)return void this._reportError(t,"Trying to close an unopened block");if(!this._inI18nNode&&!this._inIcu)if(this._inI18nBlock){if(n){if(this._depth==this._blockStartDepth){this._closeTranslatableSection(t,this._blockChildren),this._inI18nBlock=!1;var r=this._addMessage(this._blockChildren,this._blockMeaningAndDesc),o=this._translateMessage(t,r);return it(this,o)}return void this._reportError(t,"I18N blocks should not cross element boundaries")}}else e&&(this._inI18nBlock=!0,this._blockStartDepth=this._depth,this._blockChildren=[],this._blockMeaningAndDesc=t.value.replace(wa,"").trim(),this._openTranslatableSection(t))},t.prototype.visitText=function(t){return this._isInTranslatableSection&&this._mayBeAddBlockChildren(t),t},t.prototype.visitElement=function(t,e){var n=this;this._mayBeAddBlockChildren(t),this._depth++;var r,o=this._inI18nNode,i=this._inImplicitNode,s=[],a=Tt(t),u=a?a.value:"",c=this._implicitTags.some(function(e){return t.name===e})&&!this._inIcu&&!this._isInTranslatableSection,l=!i&&c;if(this._inImplicitNode=i||c,this._isInTranslatableSection||this._inIcu)(a||l)&&this._reportError(t,"Could not mark an element as translatable inside a translatable section"),this._mode==xa.Extract&&it(this,t.children);else{if(a||l){this._inI18nNode=!0;var p=this._addMessage(t.children,u);r=this._translateMessage(t,p)}if(this._mode==xa.Extract){var h=a||l;h&&this._openTranslatableSection(t),it(this,t.children),h&&this._closeTranslatableSection(t,t.children)}}if(this._mode===xa.Merge){var f=r||t.children;f.forEach(function(t){var r=t.visit(n,e);r&&!n._isInTranslatableSection&&(s=s.concat(r))})}if(this._visitAttributesOf(t),this._depth--,this._inI18nNode=o,this._inImplicitNode=i,this._mode===xa.Merge){var d=this._translateAttributes(t);return new Gs(t.name,d,s,t.sourceSpan,t.startSourceSpan,t.endSourceSpan)}},t.prototype.visitAttribute=function(){throw new Error("unreachable code")},t.prototype._init=function(t,e){this._mode=t,this._inI18nBlock=!1,this._inI18nNode=!1,this._depth=0,this._inIcu=!1,this._msgCountAtSectionStart=void 0,this._errors=[],this._messages=[],this._inImplicitNode=!1,this._createI18nMessage=bt(e)},t.prototype._visitAttributesOf=function(t){var e=this,n={},r=this._implicitAttrs[t.name]||[];t.attrs.filter(function(t){return t.name.startsWith(ba)}).forEach(function(t){return n[t.name.slice(ba.length)]=t.value}),t.attrs.forEach(function(t){t.name in n?e._addMessage([t],n[t.name]):r.some(function(e){return t.name===e})&&e._addMessage([t])})},t.prototype._addMessage=function(t,e){if(!(0==t.length||1==t.length&&t[0]instanceof zs&&!t[0].value)){var n=Pt(e),r=n.meaning,o=n.description,i=n.id,s=this._createI18nMessage(t,r,o,i);return this._messages.push(s),s}},t.prototype._translateMessage=function(t,e){if(e&&this._mode===xa.Merge){var n=this._translations.get(e);if(n)return n;this._reportError(t,'Translation unavailable for message id="'+this._translations.digest(e)+'"')}return[]},t.prototype._translateAttributes=function(t){var e=this,n=t.attrs,r={};n.forEach(function(t){t.name.startsWith(ba)&&(r[t.name.slice(ba.length)]=Pt(t.value))});var o=[];return n.forEach(function(n){if(n.name!==_a&&!n.name.startsWith(ba))if(n.value&&""!=n.value&&r.hasOwnProperty(n.name)){var i=r[n.name],s=i.meaning,a=i.description,u=i.id,c=e._createI18nMessage([n],s,a,u),l=e._translations.get(c);if(l)if(0==l.length)o.push(new zs(n.name,"",n.sourceSpan));else if(l[0]instanceof Bs){var p=l[0].value;o.push(new zs(n.name,p,n.sourceSpan))}else e._reportError(t,'Unexpected translation for attribute "'+n.name+'" (id="'+(u||e._translations.digest(c))+'")');else e._reportError(t,'Translation unavailable for attribute "'+n.name+'" (id="'+(u||e._translations.digest(c))+'")')}else o.push(n)}),o},t.prototype._mayBeAddBlockChildren=function(t){this._inI18nBlock&&!this._inIcu&&this._depth==this._blockStartDepth&&this._blockChildren.push(t)},t.prototype._openTranslatableSection=function(t){this._isInTranslatableSection?this._reportError(t,"Unexpected section start"):this._msgCountAtSectionStart=this._messages.length},Object.defineProperty(t.prototype,"_isInTranslatableSection",{get:function(){return void 0!==this._msgCountAtSectionStart},enumerable:!0,configurable:!0}),t.prototype._closeTranslatableSection=function(t,e){if(!this._isInTranslatableSection)return void this._reportError(t,"Unexpected section end");var n=this._msgCountAtSectionStart,r=e.reduce(function(t,e){return t+(e instanceof Ws?0:1)},0);if(1==r)for(var o=this._messages.length-1;o>=n;o--){var i=this._messages[o].nodes;if(!(1==i.length&&i[0]instanceof ia)){this._messages.splice(o,1);break}}this._msgCountAtSectionStart=void 0},t.prototype._reportError=function(t,e){this._errors.push(new ga(t.sourceSpan,e))},t}(),Pa=function(){function t(){this.closedByParent=!1,this.contentType=co.PARSABLE_DATA,this.isVoid=!1,this.ignoreFirstLf=!1,this.canSelfClose=!0}return t.prototype.requireExtraParent=function(){return!1},t.prototype.isClosedByChild=function(){return!1},t}(),Aa=new Pa,Oa=function(t){function e(){return t.call(this,At)||this}return zr(e,t),e.prototype.parse=function(e,n,r){return void 0===r&&(r=!1),t.prototype.parse.call(this,e,n,r,null)},e}(na),Ma=function(){function t(){}return t.prototype.visitText=function(t){return t.value},t.prototype.visitContainer=function(t){var e=this;return"["+t.children.map(function(t){return t.visit(e)}).join(", ")+"]"},t.prototype.visitIcu=function(t){var e=this,n=Object.keys(t.cases).map(function(n){return n+" {"+t.cases[n].visit(e)+"}"});return"{"+t.expression+", "+t.type+", "+n.join(", ")+"}"},t.prototype.visitTagPlaceholder=function(t){var e=this;return t.isVoid?'<ph tag name="'+t.startName+'"/>':'<ph tag name="'+t.startName+'">'+t.children.map(function(t){return t.visit(e)}).join(", ")+'</ph name="'+t.closeName+'">'},t.prototype.visitPlaceholder=function(t){return t.value?'<ph name="'+t.name+'">'+t.value+"</ph>":'<ph name="'+t.name+'"/>'},t.prototype.visitIcuPlaceholder=function(t){return'<ph icu name="'+t.name+'">'+t.value.visit(this)+"</ph>"},t}(),Ra=new Ma,ka=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return zr(e,t),e.prototype.visitIcu=function(t){var e=this,n=Object.keys(t.cases).map(function(n){return n+" {"+t.cases[n].visit(e)+"}"});return"{"+t.type+", "+n.join(", ")+"}"},e}(Ma),Ia={};Ia.Little=0,Ia.Big=1,Ia[Ia.Little]="Little",Ia[Ia.Big]="Big";var Na=function(){function t(){}return t.prototype.write=function(){},t.prototype.load=function(){},t.prototype.digest=function(){},t.prototype.createNameMapper=function(){return null},t}(),Da=function(t){function e(e,n){var r=t.call(this)||this;return r.mapName=n,r.internalToPublic={},r.publicToNextId={},r.publicToInternal={},e.nodes.forEach(function(t){return t.visit(r)}),r}return zr(e,t),e.prototype.toPublicName=function(t){return this.internalToPublic.hasOwnProperty(t)?this.internalToPublic[t]:null},e.prototype.toInternalName=function(t){return this.publicToInternal.hasOwnProperty(t)?this.publicToInternal[t]:null},e.prototype.visitText=function(){return null},e.prototype.visitTagPlaceholder=function(e,n){this.visitPlaceholderName(e.startName),t.prototype.visitTagPlaceholder.call(this,e,n),this.visitPlaceholderName(e.closeName)},e.prototype.visitPlaceholder=function(t){this.visitPlaceholderName(t.name)},e.prototype.visitIcuPlaceholder=function(t){this.visitPlaceholderName(t.name)},e.prototype.visitPlaceholderName=function(t){if(t&&!this.internalToPublic.hasOwnProperty(t)){var e=this.mapName(t);if(this.publicToInternal.hasOwnProperty(e)){var n=this.publicToNextId[e];this.publicToNextId[e]=n+1,e=e+"_"+n}else this.publicToNextId[e]=1;this.internalToPublic[t]=e,this.publicToInternal[e]=t}},e}(ha),ja=function(){function t(){}return t.prototype.visitTag=function(t){var e=this,n=this._serializeAttributes(t.attrs);if(0==t.children.length)return"<"+t.name+n+"/>";var r=t.children.map(function(t){return t.visit(e)});return"<"+t.name+n+">"+r.join("")+"</"+t.name+">"},t.prototype.visitText=function(t){return t.value},t.prototype.visitDeclaration=function(t){return"<?xml"+this._serializeAttributes(t.attrs)+" ?>"},t.prototype._serializeAttributes=function(t){var e=Object.keys(t).map(function(e){return e+'="'+t[e]+'"'}).join(" ");return e.length>0?" "+e:""},t.prototype.visitDoctype=function(t){return"<!DOCTYPE "+t.rootTag+" [\n"+t.dtd+"\n]>"},t}(),La=new ja,Va=function(){function t(t){var e=this;this.attrs={},Object.keys(t).forEach(function(n){e.attrs[n]=te(t[n])})}return t.prototype.visit=function(t){return t.visitDeclaration(this)},t}(),Fa=function(){function t(t,e){this.rootTag=t,this.dtd=e}return t.prototype.visit=function(t){return t.visitDoctype(this)},t}(),Ua=function(){function t(t,e,n){void 0===e&&(e={}),void 0===n&&(n=[]);var r=this;this.name=t,this.children=n,this.attrs={},Object.keys(e).forEach(function(t){r.attrs[t]=te(e[t])})}return t.prototype.visit=function(t){return t.visitTag(this)},t}(),Ba=function(){function t(t){this.value=te(t)}return t.prototype.visit=function(t){return t.visitText(this)},t}(),Ha=function(t){function e(e){return void 0===e&&(e=0),t.call(this,"\n"+new Array(e+1).join(" "))||this}return zr(e,t),e}(Ba),qa=[[/&/g,"&"],[/"/g,"""],[/'/g,"'"],[/</g,"<"],[/>/g,">"]],za="1.2",Ga="urn:oasis:names:tc:xliff:document:1.2",Wa="en",Ka="x",Qa="file",$a="source",Xa="target",Za="trans-unit",Ya=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return zr(e,t),e.prototype.write=function(t,e){var n=new Ja,r=[];t.forEach(function(t){var e=new Ua(Za,{id:t.id,datatype:"html"});e.children.push(new Ha(8),new Ua($a,{},n.serialize(t.nodes)),new Ha(8),new Ua(Xa)),t.description&&e.children.push(new Ha(8),new Ua("note",{priority:"1",from:"description"},[new Ba(t.description)])),t.meaning&&e.children.push(new Ha(8),new Ua("note",{priority:"1",from:"meaning"},[new Ba(t.meaning)])),e.children.push(new Ha(6)),r.push(new Ha(6),e)});var o=new Ua("body",{},r.concat([new Ha(4)])),i=new Ua("file",{"source-language":e||Wa,datatype:"plaintext",original:"ng2.template"},[new Ha(4),o,new Ha(2)]),s=new Ua("xliff",{version:za,xmlns:Ga},[new Ha(2),i,new Ha]);return Jt([new Va({version:"1.0",encoding:"UTF-8"}),new Ha,s,new Ha])},e.prototype.load=function(t,e){var n=new tu,r=n.parse(t,e),o=r.locale,i=r.mlNodesByMsgId,s=r.errors,a={},u=new eu;if(Object.keys(i).forEach(function(t){var e=u.convert(i[t]),n=e.i18nNodes,r=e.errors;s.push.apply(s,r),a[t]=n}),s.length)throw new Error("xliff parse errors:\n"+s.join("\n"));return{locale:o,i18nNodesByMsgId:a}},e.prototype.digest=function(t){return Ot(t)},e}(Na),Ja=function(){function t(){}return t.prototype.visitText=function(t){return[new Ba(t.value)]},t.prototype.visitContainer=function(t){var e=this,n=[];return t.children.forEach(function(t){return n.push.apply(n,t.visit(e))}),n},t.prototype.visitIcu=function(){if(this._isInIcu)throw new Error("xliff does not support nested ICU messages");this._isInIcu=!0;var t=[];return this._isInIcu=!1,t},t.prototype.visitTagPlaceholder=function(t){var e=ee(t.tag),n=new Ua(Ka,{id:t.startName,ctype:e});if(t.isVoid)return[n];var r=new Ua(Ka,{id:t.closeName,ctype:e});return[n].concat(this.serialize(t.children),[r])},t.prototype.visitPlaceholder=function(t){return[new Ua(Ka,{id:t.name})]},t.prototype.visitIcuPlaceholder=function(t){return[new Ua(Ka,{id:t.name})]},t.prototype.serialize=function(t){var e=this;return this._isInIcu=!1,[].concat.apply([],t.map(function(t){return t.visit(e)}))},t}(),tu=function(){function t(){this._locale=null}return t.prototype.parse=function(t,e){this._unitMlNodes=[],this._mlNodesByMsgId={};var n=(new Oa).parse(t,e,!1);return this._errors=n.errors,it(this,n.rootNodes,null),{mlNodesByMsgId:this._mlNodesByMsgId,errors:this._errors,locale:this._locale}},t.prototype.visitElement=function(t){switch(t.name){case Za:this._unitMlNodes=null;var e=t.attrs.find(function(t){return"id"===t.name});if(e){var n=e.value;this._mlNodesByMsgId.hasOwnProperty(n)?this._addError(t,"Duplicated translations for msg "+n):(it(this,t.children,null),this._unitMlNodes?this._mlNodesByMsgId[n]=this._unitMlNodes:this._addError(t,"Message "+n+" misses a translation"))}else this._addError(t,"<"+Za+'> misses the "id" attribute');break;case $a:break;case Xa:this._unitMlNodes=t.children;break;case Qa:var r=t.attrs.find(function(t){return"target-language"===t.name});r&&(this._locale=r.value),it(this,t.children,null);break;default:it(this,t.children,null)}},t.prototype.visitAttribute=function(){},t.prototype.visitText=function(){},t.prototype.visitComment=function(){},t.prototype.visitExpansion=function(){},t.prototype.visitExpansionCase=function(){},t.prototype._addError=function(t,e){this._errors.push(new ga(t.sourceSpan,e))},t}(),eu=function(){function t(){}return t.prototype.convert=function(t){return this._errors=[],{i18nNodes:it(this,t),errors:this._errors}},t.prototype.visitText=function(t){return new ia(t.value,t.sourceSpan)},t.prototype.visitElement=function(t){if(t.name===Ka){var e=t.attrs.find(function(t){return"id"===t.name});if(e)return new ca("",e.value,t.sourceSpan);this._addError(t,"<"+Ka+'> misses the "id" attribute')}else this._addError(t,"Unexpected tag")},t.prototype.visitExpansion=function(){},t.prototype.visitExpansionCase=function(){},t.prototype.visitComment=function(){},t.prototype.visitAttribute=function(){},t.prototype._addError=function(t,e){this._errors.push(new ga(t.sourceSpan,e))},t}(),nu="messagebundle",ru="msg",ou="ph",iu="ex",su='<!ELEMENT messagebundle (msg)*>\n<!ATTLIST messagebundle class CDATA #IMPLIED>\n\n<!ELEMENT msg (#PCDATA|ph|source)*>\n<!ATTLIST msg id CDATA #IMPLIED>\n<!ATTLIST msg seq CDATA #IMPLIED>\n<!ATTLIST msg name CDATA #IMPLIED>\n<!ATTLIST msg desc CDATA #IMPLIED>\n<!ATTLIST msg meaning CDATA #IMPLIED>\n<!ATTLIST msg obsolete (obsolete) #IMPLIED>\n<!ATTLIST msg xml:space (default|preserve) "default">\n<!ATTLIST msg is_hidden CDATA #IMPLIED>\n\n<!ELEMENT source (#PCDATA)>\n\n<!ELEMENT ph (#PCDATA|ex)*>\n<!ATTLIST ph name CDATA #REQUIRED>\n\n<!ELEMENT ex (#PCDATA)>',au=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return zr(e,t),e.prototype.write=function(t){var e=new cu,n=new uu,r=new Ua(nu);return t.forEach(function(t){var e={id:t.id};t.description&&(e.desc=t.description),t.meaning&&(e.meaning=t.meaning),r.children.push(new Ha(2),new Ua(ru,e,n.serialize(t.nodes)))}),r.children.push(new Ha),Jt([new Va({version:"1.0",encoding:"UTF-8"}),new Ha,new Fa(nu,su),new Ha,e.addDefaultExamples(r),new Ha])},e.prototype.load=function(){throw new Error("Unsupported")},e.prototype.digest=function(t){return ne(t)},e.prototype.createNameMapper=function(t){return new Da(t,re)},e}(Na),uu=function(){function t(){}return t.prototype.visitText=function(t){return[new Ba(t.value)]},t.prototype.visitContainer=function(t){var e=this,n=[];return t.children.forEach(function(t){return n.push.apply(n,t.visit(e))}),n},t.prototype.visitIcu=function(t){var e=this,n=[new Ba("{"+t.expressionPlaceholder+", "+t.type+", ")];return Object.keys(t.cases).forEach(function(r){n.push.apply(n,[new Ba(r+" {")].concat(t.cases[r].visit(e),[new Ba("} ")]))}),n.push(new Ba("}")),n},t.prototype.visitTagPlaceholder=function(t){var e=new Ua(iu,{},[new Ba("<"+t.tag+">")]),n=new Ua(ou,{name:t.startName},[e]);if(t.isVoid)return[n];var r=new Ua(iu,{},[new Ba("</"+t.tag+">")]),o=new Ua(ou,{name:t.closeName},[r]);return[n].concat(this.serialize(t.children),[o])},t.prototype.visitPlaceholder=function(t){return[new Ua(ou,{name:t.name})]},t.prototype.visitIcuPlaceholder=function(t){return[new Ua(ou,{name:t.name})]},t.prototype.serialize=function(t){var e=this;return[].concat.apply([],t.map(function(t){return t.visit(e)}))},t}(),cu=function(){function t(){}return t.prototype.addDefaultExamples=function(t){return t.visit(this),t},t.prototype.visitTag=function(t){var e=this;if(t.name===ou){if(!t.children||0==t.children.length){var n=new Ba(t.attrs.name||"...");t.children=[new Ua(iu,{},[n])]}}else t.children&&t.children.forEach(function(t){return t.visit(e)})},t.prototype.visitText=function(){},t.prototype.visitDeclaration=function(){},t.prototype.visitDoctype=function(){},t}(),lu="translationbundle",pu="translation",hu="ph",fu=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return zr(e,t),e.prototype.write=function(){throw new Error("Unsupported")},e.prototype.load=function(t,e){var n=new du,r=n.parse(t,e),o=r.locale,i=r.msgIdToHtml,s=r.errors,a={},u=new yu;if(Object.keys(i).forEach(function(t){var n=function(){var n=u.convert(i[t],e),r=n.i18nNodes,o=n.errors;if(o.length)throw new Error("xtb parse errors:\n"+o.join("\n"));return r};oe(a,t,n)}),s.length)throw new Error("xtb parse errors:\n"+s.join("\n"));return{locale:o,i18nNodesByMsgId:a}},e.prototype.digest=function(t){return ne(t)},e.prototype.createNameMapper=function(t){return new Da(t,re)},e}(Na),du=function(){function t(){this._locale=null}return t.prototype.parse=function(t,e){this._bundleDepth=0,this._msgIdToHtml={};var n=(new Oa).parse(t,e,!1);return this._errors=n.errors,it(this,n.rootNodes),{msgIdToHtml:this._msgIdToHtml,errors:this._errors,locale:this._locale}},t.prototype.visitElement=function(t){switch(t.name){case lu:this._bundleDepth++,this._bundleDepth>1&&this._addError(t,"<"+lu+"> elements can not be nested");var e=t.attrs.find(function(t){return"lang"===t.name});e&&(this._locale=e.value),it(this,t.children,null),this._bundleDepth--;break;case pu:var n=t.attrs.find(function(t){return"id"===t.name});if(n){var r=n.value;if(this._msgIdToHtml.hasOwnProperty(r))this._addError(t,"Duplicated translations for msg "+r);else{var o=t.startSourceSpan.end.offset,i=t.endSourceSpan.start.offset,s=t.startSourceSpan.start.file.content,a=s.slice(o,i);this._msgIdToHtml[r]=a; -this._addToParent(new Gs(n,t.sourceSpan))},t.prototype._consumeExpansion=function(t){for(var e=this._advance(),n=this._advance(),r=[];this._peek.type===Ks.EXPANSION_CASE_VALUE;){var i=this._parseExpansionCase();if(!i)return;r.push(i)}if(this._peek.type!==Ks.EXPANSION_FORM_END)return void this._errors.push(ta.create(null,this._peek.sourceSpan,"Invalid ICU message. Missing '}'."));var o=new Fs(t.sourceSpan.start,this._peek.sourceSpan.end);this._addToParent(new Hs(e.parts[0],n.parts[0],r,o,e.sourceSpan)),this._advance()},t.prototype._parseExpansionCase=function(){var e=this._advance();if(this._peek.type!==Ks.EXPANSION_CASE_EXP_START)return this._errors.push(ta.create(null,this._peek.sourceSpan,"Invalid ICU message. Missing '{'.")),null;var n=this._advance(),r=this._collectExpansionExpTokens(n);if(!r)return null;var i=this._advance();r.push(new Qs(Ks.EOF,[],i.sourceSpan));var o=new t(r,this.getTagDefinition).build();if(o.errors.length>0)return this._errors=this._errors.concat(o.errors),null;var s=new Fs(e.sourceSpan.start,i.sourceSpan.end),a=new Fs(n.sourceSpan.start,i.sourceSpan.end);return new qs(e.parts[0],o.rootNodes,s,e.sourceSpan,a)},t.prototype._collectExpansionExpTokens=function(t){for(var e=[],n=[Ks.EXPANSION_CASE_EXP_START];;){if((this._peek.type===Ks.EXPANSION_FORM_START||this._peek.type===Ks.EXPANSION_CASE_EXP_START)&&n.push(this._peek.type),this._peek.type===Ks.EXPANSION_CASE_EXP_END){if(!_t(n,Ks.EXPANSION_CASE_EXP_START))return this._errors.push(ta.create(null,t.sourceSpan,"Invalid ICU message. Missing '}'.")),null;if(n.pop(),0==n.length)return e}if(this._peek.type===Ks.EXPANSION_FORM_END){if(!_t(n,Ks.EXPANSION_FORM_START))return this._errors.push(ta.create(null,t.sourceSpan,"Invalid ICU message. Missing '}'.")),null;n.pop()}if(this._peek.type===Ks.EOF)return this._errors.push(ta.create(null,t.sourceSpan,"Invalid ICU message. Missing '}'.")),null;e.push(this._advance())}},t.prototype._consumeText=function(t){var e=t.parts[0];if(e.length>0&&"\n"==e[0]){var n=this._getParentElement();null!=n&&0==n.children.length&&this.getTagDefinition(n.name).ignoreFirstLf&&(e=e.substring(1))}e.length>0&&this._addToParent(new Bs(e,t.sourceSpan))},t.prototype._closeVoidElement=function(){if(this._elementStack.length>0){var t=this._elementStack[this._elementStack.length-1];this.getTagDefinition(t.name).isVoid&&this._elementStack.pop()}},t.prototype._consumeStartTag=function(t){for(var e=t.parts[0],n=t.parts[1],r=[];this._peek.type===Ks.ATTR_NAME;)r.push(this._consumeAttr(this._advance()));var o=this._getElementFullName(e,n,this._getParentElement()),s=!1;if(this._peek.type===Ks.TAG_OPEN_END_VOID){this._advance(),s=!0;var a=this.getTagDefinition(o);a.canSelfClose||null!==i(o)||a.isVoid||this._errors.push(ta.create(o,t.sourceSpan,'Only void and foreign elements can be self closed "'+t.parts[1]+'"'))}else this._peek.type===Ks.TAG_OPEN_END&&(this._advance(),s=!1);var u=this._peek.sourceSpan.start,c=new Fs(t.sourceSpan.start,u),l=new Ws(o,r,[],c,c,null);this._pushElement(l),s&&(this._popElement(o),l.endSourceSpan=c)},t.prototype._pushElement=function(t){if(this._elementStack.length>0){var e=this._elementStack[this._elementStack.length-1];this.getTagDefinition(e.name).isClosedByChild(t.name)&&this._elementStack.pop()}var n=this.getTagDefinition(t.name),r=this._getParentElementSkippingContainers(),i=r.parent,o=r.container;if(i&&n.requireExtraParent(i.name)){var s=new Ws(n.parentToAdd,[],[],t.sourceSpan,t.startSourceSpan,t.endSourceSpan);this._insertBeforeContainer(i,o,s)}this._addToParent(t),this._elementStack.push(t)},t.prototype._consumeEndTag=function(t){var e=this._getElementFullName(t.parts[0],t.parts[1],this._getParentElement());if(this._getParentElement()&&(this._getParentElement().endSourceSpan=t.sourceSpan),this.getTagDefinition(e).isVoid)this._errors.push(ta.create(e,t.sourceSpan,'Void elements do not have end tags "'+t.parts[1]+'"'));else if(!this._popElement(e)){var n='Unexpected closing tag "'+e+'". It may happen when the tag has already been closed by another tag. For more info see https://www.w3.org/TR/html5/syntax.html#closing-elements-that-have-implied-end-tags';this._errors.push(ta.create(e,t.sourceSpan,n))}},t.prototype._popElement=function(t){for(var e=this._elementStack.length-1;e>=0;e--){var n=this._elementStack[e];if(n.name==t)return this._elementStack.splice(e,this._elementStack.length-e),!0;if(!this.getTagDefinition(n.name).closedByParent)return!1}return!1},t.prototype._consumeAttr=function(t){var e,n=o(t.parts[0],t.parts[1]),r=t.sourceSpan.end,i="";if(this._peek.type===Ks.ATTR_VALUE){var s=this._advance();i=s.parts[0],r=s.sourceSpan.end,e=s.sourceSpan}return new zs(n,i,new Fs(t.sourceSpan.start,r),e)},t.prototype._getParentElement=function(){return this._elementStack.length>0?this._elementStack[this._elementStack.length-1]:null},t.prototype._getParentElementSkippingContainers=function(){for(var t=null,e=this._elementStack.length-1;e>=0;e--){if("ng-container"!==this._elementStack[e].name)return{parent:this._elementStack[e],container:t};t=this._elementStack[e]}return{parent:this._elementStack[this._elementStack.length-1],container:t}},t.prototype._addToParent=function(t){var e=this._getParentElement();null!=e?e.children.push(t):this._rootNodes.push(t)},t.prototype._insertBeforeContainer=function(t,e,n){if(e){if(t){var r=t.children.indexOf(e);t.children[r]=n}else this._rootNodes.push(n);n.children.push(e),this._elementStack.splice(this._elementStack.indexOf(e),0,n)}else this._addToParent(n),this._elementStack.push(n)},t.prototype._getElementFullName=function(t,e,n){return null==t&&(t=this.getTagDefinition(e).implicitNamespacePrefix,null==t&&null!=n&&(t=i(n.name))),o(t,e)},t}(),ia=function(){function t(t,e,n,r,i,o){this.nodes=t,this.placeholders=e,this.placeholderToMessage=n,this.meaning=r,this.description=i,this.id=o}return t}(),oa=function(){function t(t,e){this.value=t,this.sourceSpan=e}return t.prototype.visit=function(t,e){return t.visitText(this,e)},t}(),sa=function(){function t(t,e){this.children=t,this.sourceSpan=e}return t.prototype.visit=function(t,e){return t.visitContainer(this,e)},t}(),aa=function(){function t(t,e,n,r){this.expression=t,this.type=e,this.cases=n,this.sourceSpan=r}return t.prototype.visit=function(t,e){return t.visitIcu(this,e)},t}(),ua=function(){function t(t,e,n,r,i,o,s){this.tag=t,this.attrs=e,this.startName=n,this.closeName=r,this.children=i,this.isVoid=o,this.sourceSpan=s}return t.prototype.visit=function(t,e){return t.visitTagPlaceholder(this,e)},t}(),ca=function(){function t(t,e,n){this.value=t,this.name=e,this.sourceSpan=n}return t.prototype.visit=function(t,e){return t.visitPlaceholder(this,e)},t}(),la=function(){function t(t,e,n){this.value=t,this.name=e,this.sourceSpan=n}return t.prototype.visit=function(t,e){return t.visitIcuPlaceholder(this,e)},t}(),pa=function(){function t(){}return t.prototype.visitText=function(t){return new oa(t.value,t.sourceSpan)},t.prototype.visitContainer=function(t,e){var n=this,r=t.children.map(function(t){return t.visit(n,e)});return new sa(r,t.sourceSpan)},t.prototype.visitIcu=function(t,e){var n=this,r={};Object.keys(t.cases).forEach(function(i){return r[i]=t.cases[i].visit(n,e)});var i=new aa(t.expression,t.type,r,t.sourceSpan);return i.expressionPlaceholder=t.expressionPlaceholder,i},t.prototype.visitTagPlaceholder=function(t,e){var n=this,r=t.children.map(function(t){return t.visit(n,e)});return new ua(t.tag,t.attrs,t.startName,t.closeName,r,t.isVoid,t.sourceSpan)},t.prototype.visitPlaceholder=function(t){return new ca(t.value,t.name,t.sourceSpan)},t.prototype.visitIcuPlaceholder=function(t){return new la(t.value,t.name,t.sourceSpan)},t}(),ha=function(){function t(){}return t.prototype.visitText=function(){},t.prototype.visitContainer=function(t){var e=this;t.children.forEach(function(t){return t.visit(e)})},t.prototype.visitIcu=function(t){var e=this;Object.keys(t.cases).forEach(function(n){t.cases[n].visit(e)})},t.prototype.visitTagPlaceholder=function(t){var e=this;t.children.forEach(function(t){return t.visit(e)})},t.prototype.visitPlaceholder=function(){},t.prototype.visitIcuPlaceholder=function(){},t}(),fa={A:"LINK",B:"BOLD_TEXT",BR:"LINE_BREAK",EM:"EMPHASISED_TEXT",H1:"HEADING_LEVEL1",H2:"HEADING_LEVEL2",H3:"HEADING_LEVEL3",H4:"HEADING_LEVEL4",H5:"HEADING_LEVEL5",H6:"HEADING_LEVEL6",HR:"HORIZONTAL_RULE",I:"ITALIC_TEXT",LI:"LIST_ITEM",LINK:"MEDIA_LINK",OL:"ORDERED_LIST",P:"PARAGRAPH",Q:"QUOTATION",S:"STRIKETHROUGH_TEXT",SMALL:"SMALL_TEXT",SUB:"SUBSTRIPT",SUP:"SUPERSCRIPT",TBODY:"TABLE_BODY",TD:"TABLE_CELL",TFOOT:"TABLE_FOOTER",TH:"TABLE_HEADER_CELL",THEAD:"TABLE_HEADER",TR:"TABLE_ROW",TT:"MONOSPACED_TEXT",U:"UNDERLINED_TEXT",UL:"UNORDERED_LIST"},da=function(){function t(){this._placeHolderNameCounts={},this._signatureToName={}}return t.prototype.getStartTagPlaceholderName=function(t,e,n){var r=this._hashTag(t,e,n);if(this._signatureToName[r])return this._signatureToName[r];var i=t.toUpperCase(),o=fa[i]||"TAG_"+i,s=this._generateUniqueName(n?o:"START_"+o);return this._signatureToName[r]=s,s},t.prototype.getCloseTagPlaceholderName=function(t){var e=this._hashClosingTag(t);if(this._signatureToName[e])return this._signatureToName[e];var n=t.toUpperCase(),r=fa[n]||"TAG_"+n,i=this._generateUniqueName("CLOSE_"+r);return this._signatureToName[e]=i,i},t.prototype.getPlaceholderName=function(t,e){var n=t.toUpperCase(),r="PH: "+n+"="+e;if(this._signatureToName[r])return this._signatureToName[r];var i=this._generateUniqueName(n);return this._signatureToName[r]=i,i},t.prototype.getUniquePlaceholder=function(t){return this._generateUniqueName(t.toUpperCase())},t.prototype._hashTag=function(t,e,n){var r="<"+t,i=Object.keys(e).sort().map(function(t){return" "+t+"="+e[t]}).join(""),o=n?"/>":"></"+t+">";return r+i+o},t.prototype._hashClosingTag=function(t){return this._hashTag("/"+t,{},!1)},t.prototype._generateUniqueName=function(t){var e=this._placeHolderNameCounts.hasOwnProperty(t);if(!e)return this._placeHolderNameCounts[t]=1,t;var n=this._placeHolderNameCounts[t];return this._placeHolderNameCounts[t]=n+1,t+"_"+n},t}(),va=new Is(new Ps),ma=function(){function t(t,e){this._expressionParser=t,this._interpolationConfig=e}return t.prototype.toI18nMessage=function(t,e,n,r){this._isIcu=1==t.length&&t[0]instanceof Hs,this._icuDepth=0,this._placeholderRegistry=new da,this._placeholderToContent={},this._placeholderToMessage={};var i=ot(this,t,{});return new ia(i,this._placeholderToContent,this._placeholderToMessage,e,n,r)},t.prototype.visitElement=function(t){var e=ot(this,t.children),n={};t.attrs.forEach(function(t){n[t.name]=t.value});var r=s(t.name).isVoid,i=this._placeholderRegistry.getStartTagPlaceholderName(t.name,n,r);this._placeholderToContent[i]=t.sourceSpan.toString();var o="";return r||(o=this._placeholderRegistry.getCloseTagPlaceholderName(t.name),this._placeholderToContent[o]="</"+t.name+">"),new ua(t.name,n,i,o,e,r,t.sourceSpan)},t.prototype.visitAttribute=function(t){return this._visitTextWithInterpolation(t.value,t.sourceSpan)},t.prototype.visitText=function(t){return this._visitTextWithInterpolation(t.value,t.sourceSpan)},t.prototype.visitComment=function(){return null},t.prototype.visitExpansion=function(e){var n=this;this._icuDepth++;var r={},i=new aa(e.switchValue,e.type,r,e.sourceSpan);if(e.cases.forEach(function(t){r[t.value]=new sa(t.expression.map(function(t){return t.visit(n,{})}),t.expSourceSpan)}),this._icuDepth--,this._isIcu||this._icuDepth>0){var o=this._placeholderRegistry.getUniquePlaceholder("VAR_"+e.type);return i.expressionPlaceholder=o,this._placeholderToContent[o]=e.switchValue,i}var s=this._placeholderRegistry.getPlaceholderName("ICU",e.sourceSpan.toString()),a=new t(this._expressionParser,this._interpolationConfig);return this._placeholderToMessage[s]=a.toI18nMessage([e],"","",""),new la(i,s,e.sourceSpan)},t.prototype.visitExpansionCase=function(){throw new Error("Unreachable code")},t.prototype._visitTextWithInterpolation=function(t,e){var n=this._expressionParser.splitInterpolation(t,e.start.toString(),this._interpolationConfig);if(!n)return new oa(t,e);for(var r=[],i=new sa(r,e),o=this._interpolationConfig,s=o.start,a=o.end,u=0;u<n.strings.length-1;u++){var c=n.expressions[u],l=wt(c)||"INTERPOLATION",p=this._placeholderRegistry.getPlaceholderName(l,c);n.strings[u].length&&r.push(new oa(n.strings[u],e)),r.push(new ca(c,p,e)),this._placeholderToContent[p]=s+c+a}var h=n.strings.length-1;return n.strings[h].length&&r.push(new oa(n.strings[h],e)),i},t}(),ya=/\/\/[\s\S]*i18n[\s\S]*\([\s\S]*ph[\s\S]*=[\s\S]*("|')([\s\S]*?)\1[\s\S]*\)/g,ga=function(t){function e(e,n){return t.call(this,e,n)||this}return zr(e,t),e}(Us),_a="i18n",ba="i18n-",wa=/^i18n:?/,Ea="|",Ca="@@",Sa=function(){function t(t,e){this.messages=t,this.errors=e}return t}(),xa={};xa.Extract=0,xa.Merge=1,xa[xa.Extract]="Extract",xa[xa.Merge]="Merge";var Ta=function(){function t(t,e){this._implicitTags=t,this._implicitAttrs=e}return t.prototype.extract=function(t,e){var n=this;return this._init(xa.Extract,e),t.forEach(function(t){return t.visit(n,null)}),this._inI18nBlock&&this._reportError(t[t.length-1],"Unclosed block"),new Sa(this._messages,this._errors)},t.prototype.merge=function(t,e,n){this._init(xa.Merge,n),this._translations=e;var r=new Ws("wrapper",[],t,null,null,null),i=r.visit(this,null);return this._inI18nBlock&&this._reportError(t[t.length-1],"Unclosed block"),new ea(i.children,this._errors)},t.prototype.visitExpansionCase=function(t,e){var n=ot(this,t.expression,e);return this._mode===xa.Merge?new qs(t.value,n,t.sourceSpan,t.valueSourceSpan,t.expSourceSpan):void 0},t.prototype.visitExpansion=function(t,e){this._mayBeAddBlockChildren(t);var n=this._inIcu;this._inIcu||(this._isInTranslatableSection&&this._addMessage([t]),this._inIcu=!0);var r=ot(this,t.cases,e);return this._mode===xa.Merge&&(t=new Hs(t.switchValue,t.type,r,t.sourceSpan,t.switchValueSourceSpan)),this._inIcu=n,t},t.prototype.visitComment=function(t){var e=St(t);if(e&&this._isInTranslatableSection)return void this._reportError(t,"Could not start a block inside a translatable section");var n=xt(t);if(n&&!this._inI18nBlock)return void this._reportError(t,"Trying to close an unopened block");if(!this._inI18nNode&&!this._inIcu)if(this._inI18nBlock){if(n){if(this._depth==this._blockStartDepth){this._closeTranslatableSection(t,this._blockChildren),this._inI18nBlock=!1;var r=this._addMessage(this._blockChildren,this._blockMeaningAndDesc),i=this._translateMessage(t,r);return ot(this,i)}return void this._reportError(t,"I18N blocks should not cross element boundaries")}}else e&&(this._inI18nBlock=!0,this._blockStartDepth=this._depth,this._blockChildren=[],this._blockMeaningAndDesc=t.value.replace(wa,"").trim(),this._openTranslatableSection(t))},t.prototype.visitText=function(t){return this._isInTranslatableSection&&this._mayBeAddBlockChildren(t),t},t.prototype.visitElement=function(t,e){var n=this;this._mayBeAddBlockChildren(t),this._depth++;var r,i=this._inI18nNode,o=this._inImplicitNode,s=[],a=Tt(t),u=a?a.value:"",c=this._implicitTags.some(function(e){return t.name===e})&&!this._inIcu&&!this._isInTranslatableSection,l=!o&&c;if(this._inImplicitNode=o||c,this._isInTranslatableSection||this._inIcu)(a||l)&&this._reportError(t,"Could not mark an element as translatable inside a translatable section"),this._mode==xa.Extract&&ot(this,t.children);else{if(a||l){this._inI18nNode=!0;var p=this._addMessage(t.children,u);r=this._translateMessage(t,p)}if(this._mode==xa.Extract){var h=a||l;h&&this._openTranslatableSection(t),ot(this,t.children),h&&this._closeTranslatableSection(t,t.children)}}if(this._mode===xa.Merge){var f=r||t.children;f.forEach(function(t){var r=t.visit(n,e);r&&!n._isInTranslatableSection&&(s=s.concat(r))})}if(this._visitAttributesOf(t),this._depth--,this._inI18nNode=i,this._inImplicitNode=o,this._mode===xa.Merge){var d=this._translateAttributes(t);return new Ws(t.name,d,s,t.sourceSpan,t.startSourceSpan,t.endSourceSpan)}},t.prototype.visitAttribute=function(){throw new Error("unreachable code")},t.prototype._init=function(t,e){this._mode=t,this._inI18nBlock=!1,this._inI18nNode=!1,this._depth=0,this._inIcu=!1,this._msgCountAtSectionStart=void 0,this._errors=[],this._messages=[],this._inImplicitNode=!1,this._createI18nMessage=bt(e)},t.prototype._visitAttributesOf=function(t){var e=this,n={},r=this._implicitAttrs[t.name]||[];t.attrs.filter(function(t){return t.name.startsWith(ba)}).forEach(function(t){return n[t.name.slice(ba.length)]=t.value}),t.attrs.forEach(function(t){t.name in n?e._addMessage([t],n[t.name]):r.some(function(e){return t.name===e})&&e._addMessage([t])})},t.prototype._addMessage=function(t,e){if(!(0==t.length||1==t.length&&t[0]instanceof zs&&!t[0].value)){var n=Pt(e),r=n.meaning,i=n.description,o=n.id,s=this._createI18nMessage(t,r,i,o);return this._messages.push(s),s}},t.prototype._translateMessage=function(t,e){if(e&&this._mode===xa.Merge){var n=this._translations.get(e);if(n)return n;this._reportError(t,'Translation unavailable for message id="'+this._translations.digest(e)+'"')}return[]},t.prototype._translateAttributes=function(t){var e=this,n=t.attrs,r={};n.forEach(function(t){t.name.startsWith(ba)&&(r[t.name.slice(ba.length)]=Pt(t.value))});var i=[];return n.forEach(function(n){if(n.name!==_a&&!n.name.startsWith(ba))if(n.value&&""!=n.value&&r.hasOwnProperty(n.name)){var o=r[n.name],s=o.meaning,a=o.description,u=o.id,c=e._createI18nMessage([n],s,a,u),l=e._translations.get(c);if(l)if(0==l.length)i.push(new zs(n.name,"",n.sourceSpan));else if(l[0]instanceof Bs){var p=l[0].value;i.push(new zs(n.name,p,n.sourceSpan))}else e._reportError(t,'Unexpected translation for attribute "'+n.name+'" (id="'+(u||e._translations.digest(c))+'")');else e._reportError(t,'Translation unavailable for attribute "'+n.name+'" (id="'+(u||e._translations.digest(c))+'")')}else i.push(n)}),i},t.prototype._mayBeAddBlockChildren=function(t){this._inI18nBlock&&!this._inIcu&&this._depth==this._blockStartDepth&&this._blockChildren.push(t)},t.prototype._openTranslatableSection=function(t){this._isInTranslatableSection?this._reportError(t,"Unexpected section start"):this._msgCountAtSectionStart=this._messages.length},Object.defineProperty(t.prototype,"_isInTranslatableSection",{get:function(){return void 0!==this._msgCountAtSectionStart},enumerable:!0,configurable:!0}),t.prototype._closeTranslatableSection=function(t,e){if(!this._isInTranslatableSection)return void this._reportError(t,"Unexpected section end");var n=this._msgCountAtSectionStart,r=e.reduce(function(t,e){return t+(e instanceof Gs?0:1)},0);if(1==r)for(var i=this._messages.length-1;i>=n;i--){var o=this._messages[i].nodes;if(!(1==o.length&&o[0]instanceof oa)){this._messages.splice(i,1);break}}this._msgCountAtSectionStart=void 0},t.prototype._reportError=function(t,e){this._errors.push(new ga(t.sourceSpan,e))},t}(),Pa=function(){function t(){this.closedByParent=!1,this.contentType=ci.PARSABLE_DATA,this.isVoid=!1,this.ignoreFirstLf=!1,this.canSelfClose=!0}return t.prototype.requireExtraParent=function(){return!1},t.prototype.isClosedByChild=function(){return!1},t}(),Aa=new Pa,Oa=function(t){function e(){return t.call(this,At)||this}return zr(e,t),e.prototype.parse=function(e,n,r){return void 0===r&&(r=!1),t.prototype.parse.call(this,e,n,r,null)},e}(na),Ma=function(){function t(){}return t.prototype.visitText=function(t){return t.value},t.prototype.visitContainer=function(t){var e=this;return"["+t.children.map(function(t){return t.visit(e)}).join(", ")+"]"},t.prototype.visitIcu=function(t){var e=this,n=Object.keys(t.cases).map(function(n){return n+" {"+t.cases[n].visit(e)+"}"});return"{"+t.expression+", "+t.type+", "+n.join(", ")+"}"},t.prototype.visitTagPlaceholder=function(t){var e=this;return t.isVoid?'<ph tag name="'+t.startName+'"/>':'<ph tag name="'+t.startName+'">'+t.children.map(function(t){return t.visit(e)}).join(", ")+'</ph name="'+t.closeName+'">'},t.prototype.visitPlaceholder=function(t){return t.value?'<ph name="'+t.name+'">'+t.value+"</ph>":'<ph name="'+t.name+'"/>'},t.prototype.visitIcuPlaceholder=function(t){return'<ph icu name="'+t.name+'">'+t.value.visit(this)+"</ph>"},t}(),Ra=new Ma,ka=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return zr(e,t),e.prototype.visitIcu=function(t){var e=this,n=Object.keys(t.cases).map(function(n){return n+" {"+t.cases[n].visit(e)+"}"});return"{"+t.type+", "+n.join(", ")+"}"},e}(Ma),Ia={};Ia.Little=0,Ia.Big=1,Ia[Ia.Little]="Little",Ia[Ia.Big]="Big";var Na=function(){function t(){}return t.prototype.write=function(){},t.prototype.load=function(){},t.prototype.digest=function(){},t.prototype.createNameMapper=function(){return null},t}(),Da=function(t){function e(e,n){var r=t.call(this)||this;return r.mapName=n,r.internalToPublic={},r.publicToNextId={},r.publicToInternal={},e.nodes.forEach(function(t){return t.visit(r)}),r}return zr(e,t),e.prototype.toPublicName=function(t){return this.internalToPublic.hasOwnProperty(t)?this.internalToPublic[t]:null},e.prototype.toInternalName=function(t){return this.publicToInternal.hasOwnProperty(t)?this.publicToInternal[t]:null},e.prototype.visitText=function(){return null},e.prototype.visitTagPlaceholder=function(e,n){this.visitPlaceholderName(e.startName),t.prototype.visitTagPlaceholder.call(this,e,n),this.visitPlaceholderName(e.closeName)},e.prototype.visitPlaceholder=function(t){this.visitPlaceholderName(t.name)},e.prototype.visitIcuPlaceholder=function(t){this.visitPlaceholderName(t.name)},e.prototype.visitPlaceholderName=function(t){if(t&&!this.internalToPublic.hasOwnProperty(t)){var e=this.mapName(t);if(this.publicToInternal.hasOwnProperty(e)){var n=this.publicToNextId[e];this.publicToNextId[e]=n+1,e=e+"_"+n}else this.publicToNextId[e]=1;this.internalToPublic[t]=e,this.publicToInternal[e]=t}},e}(ha),La=function(){function t(){}return t.prototype.visitTag=function(t){var e=this,n=this._serializeAttributes(t.attrs);if(0==t.children.length)return"<"+t.name+n+"/>";var r=t.children.map(function(t){return t.visit(e)});return"<"+t.name+n+">"+r.join("")+"</"+t.name+">"},t.prototype.visitText=function(t){return t.value},t.prototype.visitDeclaration=function(t){return"<?xml"+this._serializeAttributes(t.attrs)+" ?>"},t.prototype._serializeAttributes=function(t){var e=Object.keys(t).map(function(e){return e+'="'+t[e]+'"'}).join(" ");return e.length>0?" "+e:""},t.prototype.visitDoctype=function(t){return"<!DOCTYPE "+t.rootTag+" [\n"+t.dtd+"\n]>"},t}(),ja=new La,Fa=function(){function t(t){var e=this;this.attrs={},Object.keys(t).forEach(function(n){e.attrs[n]=te(t[n])})}return t.prototype.visit=function(t){return t.visitDeclaration(this)},t}(),Va=function(){function t(t,e){this.rootTag=t,this.dtd=e}return t.prototype.visit=function(t){return t.visitDoctype(this)},t}(),Ua=function(){function t(t,e,n){void 0===e&&(e={}),void 0===n&&(n=[]);var r=this;this.name=t,this.children=n,this.attrs={},Object.keys(e).forEach(function(t){r.attrs[t]=te(e[t])})}return t.prototype.visit=function(t){return t.visitTag(this)},t}(),Ba=function(){function t(t){this.value=te(t)}return t.prototype.visit=function(t){return t.visitText(this)},t}(),Ha=function(t){function e(e){return void 0===e&&(e=0),t.call(this,"\n"+new Array(e+1).join(" "))||this}return zr(e,t),e}(Ba),qa=[[/&/g,"&"],[/"/g,"""],[/'/g,"'"],[/</g,"<"],[/>/g,">"]],za="1.2",Wa="urn:oasis:names:tc:xliff:document:1.2",Ga="en",Ka="x",Qa="file",Xa="source",$a="target",Za="trans-unit",Ya=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return zr(e,t),e.prototype.write=function(t,e){var n=new Ja,r=[];t.forEach(function(t){var e=new Ua(Za,{id:t.id,datatype:"html"});e.children.push(new Ha(8),new Ua(Xa,{},n.serialize(t.nodes)),new Ha(8),new Ua($a)),t.description&&e.children.push(new Ha(8),new Ua("note",{priority:"1",from:"description"},[new Ba(t.description)])),t.meaning&&e.children.push(new Ha(8),new Ua("note",{priority:"1",from:"meaning"},[new Ba(t.meaning)])),e.children.push(new Ha(6)),r.push(new Ha(6),e)});var i=new Ua("body",{},r.concat([new Ha(4)])),o=new Ua("file",{"source-language":e||Ga,datatype:"plaintext",original:"ng2.template"},[new Ha(4),i,new Ha(2)]),s=new Ua("xliff",{version:za,xmlns:Wa},[new Ha(2),o,new Ha]);return Jt([new Fa({version:"1.0",encoding:"UTF-8"}),new Ha,s,new Ha])},e.prototype.load=function(t,e){var n=new tu,r=n.parse(t,e),i=r.locale,o=r.mlNodesByMsgId,s=r.errors,a={},u=new eu;if(Object.keys(o).forEach(function(t){var e=u.convert(o[t]),n=e.i18nNodes,r=e.errors;s.push.apply(s,r),a[t]=n}),s.length)throw new Error("xliff parse errors:\n"+s.join("\n"));return{locale:i,i18nNodesByMsgId:a}},e.prototype.digest=function(t){return Ot(t)},e}(Na),Ja=function(){function t(){}return t.prototype.visitText=function(t){return[new Ba(t.value)]},t.prototype.visitContainer=function(t){var e=this,n=[];return t.children.forEach(function(t){return n.push.apply(n,t.visit(e))}),n},t.prototype.visitIcu=function(){if(this._isInIcu)throw new Error("xliff does not support nested ICU messages");this._isInIcu=!0;var t=[];return this._isInIcu=!1,t},t.prototype.visitTagPlaceholder=function(t){var e=ee(t.tag),n=new Ua(Ka,{id:t.startName,ctype:e});if(t.isVoid)return[n];var r=new Ua(Ka,{id:t.closeName,ctype:e});return[n].concat(this.serialize(t.children),[r])},t.prototype.visitPlaceholder=function(t){return[new Ua(Ka,{id:t.name})]},t.prototype.visitIcuPlaceholder=function(t){return[new Ua(Ka,{id:t.name})]},t.prototype.serialize=function(t){var e=this;return this._isInIcu=!1,[].concat.apply([],t.map(function(t){return t.visit(e)}))},t}(),tu=function(){function t(){this._locale=null}return t.prototype.parse=function(t,e){this._unitMlNodes=[],this._mlNodesByMsgId={};var n=(new Oa).parse(t,e,!1);return this._errors=n.errors,ot(this,n.rootNodes,null),{mlNodesByMsgId:this._mlNodesByMsgId,errors:this._errors,locale:this._locale}},t.prototype.visitElement=function(t){switch(t.name){case Za:this._unitMlNodes=null;var e=t.attrs.find(function(t){return"id"===t.name});if(e){var n=e.value;this._mlNodesByMsgId.hasOwnProperty(n)?this._addError(t,"Duplicated translations for msg "+n):(ot(this,t.children,null),this._unitMlNodes?this._mlNodesByMsgId[n]=this._unitMlNodes:this._addError(t,"Message "+n+" misses a translation"))}else this._addError(t,"<"+Za+'> misses the "id" attribute');break;case Xa:break;case $a:this._unitMlNodes=t.children;break;case Qa:var r=t.attrs.find(function(t){return"target-language"===t.name});r&&(this._locale=r.value),ot(this,t.children,null);break;default:ot(this,t.children,null)}},t.prototype.visitAttribute=function(){},t.prototype.visitText=function(){},t.prototype.visitComment=function(){},t.prototype.visitExpansion=function(){},t.prototype.visitExpansionCase=function(){},t.prototype._addError=function(t,e){this._errors.push(new ga(t.sourceSpan,e))},t}(),eu=function(){function t(){}return t.prototype.convert=function(t){return this._errors=[],{i18nNodes:ot(this,t),errors:this._errors}},t.prototype.visitText=function(t){return new oa(t.value,t.sourceSpan)},t.prototype.visitElement=function(t){if(t.name===Ka){var e=t.attrs.find(function(t){return"id"===t.name});if(e)return new ca("",e.value,t.sourceSpan);this._addError(t,"<"+Ka+'> misses the "id" attribute')}else this._addError(t,"Unexpected tag")},t.prototype.visitExpansion=function(){},t.prototype.visitExpansionCase=function(){},t.prototype.visitComment=function(){},t.prototype.visitAttribute=function(){},t.prototype._addError=function(t,e){this._errors.push(new ga(t.sourceSpan,e))},t}(),nu="messagebundle",ru="msg",iu="ph",ou="ex",su='<!ELEMENT messagebundle (msg)*>\n<!ATTLIST messagebundle class CDATA #IMPLIED>\n\n<!ELEMENT msg (#PCDATA|ph|source)*>\n<!ATTLIST msg id CDATA #IMPLIED>\n<!ATTLIST msg seq CDATA #IMPLIED>\n<!ATTLIST msg name CDATA #IMPLIED>\n<!ATTLIST msg desc CDATA #IMPLIED>\n<!ATTLIST msg meaning CDATA #IMPLIED>\n<!ATTLIST msg obsolete (obsolete) #IMPLIED>\n<!ATTLIST msg xml:space (default|preserve) "default">\n<!ATTLIST msg is_hidden CDATA #IMPLIED>\n\n<!ELEMENT source (#PCDATA)>\n\n<!ELEMENT ph (#PCDATA|ex)*>\n<!ATTLIST ph name CDATA #REQUIRED>\n\n<!ELEMENT ex (#PCDATA)>',au=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return zr(e,t),e.prototype.write=function(t){var e=new cu,n=new uu,r=new Ua(nu);return t.forEach(function(t){var e={id:t.id};t.description&&(e.desc=t.description),t.meaning&&(e.meaning=t.meaning),r.children.push(new Ha(2),new Ua(ru,e,n.serialize(t.nodes)))}),r.children.push(new Ha),Jt([new Fa({version:"1.0",encoding:"UTF-8"}),new Ha,new Va(nu,su),new Ha,e.addDefaultExamples(r),new Ha])},e.prototype.load=function(){throw new Error("Unsupported")},e.prototype.digest=function(t){return ne(t)},e.prototype.createNameMapper=function(t){return new Da(t,re)},e}(Na),uu=function(){function t(){}return t.prototype.visitText=function(t){return[new Ba(t.value)]},t.prototype.visitContainer=function(t){var e=this,n=[];return t.children.forEach(function(t){return n.push.apply(n,t.visit(e))}),n},t.prototype.visitIcu=function(t){var e=this,n=[new Ba("{"+t.expressionPlaceholder+", "+t.type+", ")];return Object.keys(t.cases).forEach(function(r){n.push.apply(n,[new Ba(r+" {")].concat(t.cases[r].visit(e),[new Ba("} ")]))}),n.push(new Ba("}")),n},t.prototype.visitTagPlaceholder=function(t){var e=new Ua(ou,{},[new Ba("<"+t.tag+">")]),n=new Ua(iu,{name:t.startName},[e]);if(t.isVoid)return[n];var r=new Ua(ou,{},[new Ba("</"+t.tag+">")]),i=new Ua(iu,{name:t.closeName},[r]);return[n].concat(this.serialize(t.children),[i])},t.prototype.visitPlaceholder=function(t){return[new Ua(iu,{name:t.name})]},t.prototype.visitIcuPlaceholder=function(t){return[new Ua(iu,{name:t.name})]},t.prototype.serialize=function(t){var e=this;return[].concat.apply([],t.map(function(t){return t.visit(e)}))},t}(),cu=function(){function t(){}return t.prototype.addDefaultExamples=function(t){return t.visit(this),t},t.prototype.visitTag=function(t){var e=this;if(t.name===iu){if(!t.children||0==t.children.length){var n=new Ba(t.attrs.name||"...");t.children=[new Ua(ou,{},[n])]}}else t.children&&t.children.forEach(function(t){return t.visit(e)})},t.prototype.visitText=function(){},t.prototype.visitDeclaration=function(){},t.prototype.visitDoctype=function(){},t}(),lu="translationbundle",pu="translation",hu="ph",fu=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return zr(e,t),e.prototype.write=function(){throw new Error("Unsupported")},e.prototype.load=function(t,e){var n=new du,r=n.parse(t,e),i=r.locale,o=r.msgIdToHtml,s=r.errors,a={},u=new vu;if(Object.keys(o).forEach(function(t){var n=function(){var n=u.convert(o[t],e),r=n.i18nNodes,i=n.errors;if(i.length)throw new Error("xtb parse errors:\n"+i.join("\n"));return r};ie(a,t,n)}),s.length)throw new Error("xtb parse errors:\n"+s.join("\n"));return{locale:i,i18nNodesByMsgId:a}},e.prototype.digest=function(t){return ne(t)},e.prototype.createNameMapper=function(t){return new Da(t,re)},e}(Na),du=function(){function t(){this._locale=null}return t.prototype.parse=function(t,e){this._bundleDepth=0,this._msgIdToHtml={};var n=(new Oa).parse(t,e,!1);return this._errors=n.errors,ot(this,n.rootNodes),{msgIdToHtml:this._msgIdToHtml,errors:this._errors,locale:this._locale}},t.prototype.visitElement=function(t){switch(t.name){case lu:this._bundleDepth++,this._bundleDepth>1&&this._addError(t,"<"+lu+"> elements can not be nested");var e=t.attrs.find(function(t){return"lang"===t.name});e&&(this._locale=e.value),ot(this,t.children,null),this._bundleDepth--;break;case pu:var n=t.attrs.find(function(t){return"id"===t.name});if(n){var r=n.value;if(this._msgIdToHtml.hasOwnProperty(r))this._addError(t,"Duplicated translations for msg "+r);else{var i=t.startSourceSpan.end.offset,o=t.endSourceSpan.start.offset,s=t.startSourceSpan.start.file.content,a=s.slice(i,o);this._msgIdToHtml[r]=a}}else this._addError(t,"<"+pu+'> misses the "id" attribute');break;default:this._addError(t,"Unexpected tag")}},t.prototype.visitAttribute=function(){},t.prototype.visitText=function(){}, -t.prototype.visitComment=function(){},t.prototype.visitExpansion=function(){},t.prototype.visitExpansionCase=function(){},t.prototype._addError=function(t,e){this._errors.push(new ga(t.sourceSpan,e))},t}(),vu=function(){function t(){}return t.prototype.convert=function(t,e){var n=(new Oa).parse(t,e,!0);this._errors=n.errors;var r=this._errors.length>0||0==n.rootNodes.length?[]:ot(this,n.rootNodes);return{i18nNodes:r,errors:this._errors}},t.prototype.visitText=function(t){return new oa(t.value,t.sourceSpan)},t.prototype.visitExpansion=function(t){var e={};return ot(this,t.cases).forEach(function(n){e[n.value]=new sa(n.nodes,t.sourceSpan)}),new aa(t.switchValue,t.type,e,t.sourceSpan)},t.prototype.visitExpansionCase=function(t){return{value:t.value,nodes:ot(this,t.expression)}},t.prototype.visitElement=function(t){if(t.name===hu){var e=t.attrs.find(function(t){return"name"===t.name});if(e)return new ca("",e.value,t.sourceSpan);this._addError(t,"<"+hu+'> misses the "name" attribute')}else this._addError(t,"Unexpected tag")},t.prototype.visitComment=function(){},t.prototype.visitAttribute=function(){},t.prototype._addError=function(t,e){this._errors.push(new ga(t.sourceSpan,e))},t}(),mu=function(t){function e(){return t.call(this,s)||this}return zr(e,t),e.prototype.parse=function(e,n,r,i){return void 0===r&&(r=!1),void 0===i&&(i=Ss),t.prototype.parse.call(this,e,n,r,i)},e}(na);mu.decorators=[{type:V}],mu.ctorParameters=function(){return[]};var yu=function(){function t(t,n,r,i,o,s){void 0===t&&(t={}),void 0===o&&(o=e.MissingTranslationStrategy.Warning),this._i18nNodesByMsgId=t,this.digest=r,this.mapperFactory=i,this._i18nToHtml=new gu(t,n,r,i,o,s)}return t.load=function(e,n,r,i,o){var s=r.load(e,n),a=s.locale,u=s.i18nNodesByMsgId,c=function(t){return r.digest(t)},l=function(t){return r.createNameMapper(t)};return new t(u,a,c,l,i,o)},t.prototype.get=function(t){var e=this._i18nToHtml.convert(t);if(e.errors.length)throw new Error(e.errors.join("\n"));return e.nodes},t.prototype.has=function(t){return this.digest(t)in this._i18nNodesByMsgId},t}(),gu=function(){function t(t,e,n,r,i,o){void 0===t&&(t={}),this._i18nNodesByMsgId=t,this._locale=e,this._digest=n,this._mapperFactory=r,this._missingTranslationStrategy=i,this._console=o,this._contextStack=[],this._errors=[]}return t.prototype.convert=function(t){this._contextStack.length=0,this._errors.length=0;var e=this._convertToText(t),n=t.nodes[0].sourceSpan.start.file.url,r=(new mu).parse(e,n,!0);return{nodes:r.rootNodes,errors:this._errors.concat(r.errors)}},t.prototype.visitText=function(t){return t.value},t.prototype.visitContainer=function(t){var e=this;return t.children.map(function(t){return t.visit(e)}).join("")},t.prototype.visitIcu=function(t){var e=this,n=Object.keys(t.cases).map(function(n){return n+" {"+t.cases[n].visit(e)+"}"}),r=this._srcMsg.placeholders.hasOwnProperty(t.expression)?this._srcMsg.placeholders[t.expression]:t.expression;return"{"+r+", "+t.type+", "+n.join(" ")+"}"},t.prototype.visitPlaceholder=function(t){var e=this._mapper(t.name);return this._srcMsg.placeholders.hasOwnProperty(e)?this._srcMsg.placeholders[e]:this._srcMsg.placeholderToMessage.hasOwnProperty(e)?this._convertToText(this._srcMsg.placeholderToMessage[e]):(this._addError(t,'Unknown placeholder "'+t.name+'"'),"")},t.prototype.visitTagPlaceholder=function(t){var e=this,n=""+t.tag,r=Object.keys(t.attrs).map(function(e){return e+'="'+t.attrs[e]+'"'}).join(" ");if(t.isVoid)return"<"+n+" "+r+"/>";var i=t.children.map(function(t){return t.visit(e)}).join("");return"<"+n+" "+r+">"+i+"</"+n+">"},t.prototype.visitIcuPlaceholder=function(t){return this._convertToText(this._srcMsg.placeholderToMessage[t.name])},t.prototype._convertToText=function(t){var n,r=this,i=this._digest(t),o=this._mapperFactory?this._mapperFactory(t):null;if(this._contextStack.push({msg:this._srcMsg,mapper:this._mapper}),this._srcMsg=t,this._i18nNodesByMsgId.hasOwnProperty(i))n=this._i18nNodesByMsgId[i],this._mapper=function(t){return o?o.toInternalName(t):t};else{if(this._missingTranslationStrategy===e.MissingTranslationStrategy.Error){var s=this._locale?' for locale "'+this._locale+'"':"";this._addError(t.nodes[0],'Missing translation for message "'+i+'"'+s)}else if(this._console&&this._missingTranslationStrategy===e.MissingTranslationStrategy.Warning){var s=this._locale?' for locale "'+this._locale+'"':"";this._console.warn('Missing translation for message "'+i+'"'+s)}n=t.nodes,this._mapper=function(t){return t}}var a=n.map(function(t){return t.visit(r)}).join(""),u=this._contextStack.pop();return this._srcMsg=u.msg,this._mapper=u.mapper,a},t.prototype._addError=function(t,e){this._errors.push(new ga(t.sourceSpan,e))},t}(),_u=function(){function t(t,n,r,i,o){if(void 0===i&&(i=e.MissingTranslationStrategy.Warning),this._htmlParser=t,n){var s=oe(r);this._translationBundle=yu.load(n,"i18n",s,i,o)}}return t.prototype.parse=function(t,e,n,r){void 0===n&&(n=!1),void 0===r&&(r=Ss);var i=this._htmlParser.parse(t,e,n,r);return this._translationBundle?i.errors.length?new ea(i.rootNodes,i.errors):Ct(i.rootNodes,this._translationBundle,r,[],{}):i},t}(),bu=se("core"),wu=function(){function t(){}return t}();wu.ANALYZE_FOR_ENTRY_COMPONENTS={name:"ANALYZE_FOR_ENTRY_COMPONENTS",moduleUrl:bu,runtime:e.ANALYZE_FOR_ENTRY_COMPONENTS},wu.ElementRef={name:"ElementRef",moduleUrl:bu,runtime:e.ElementRef},wu.NgModuleRef={name:"NgModuleRef",moduleUrl:bu,runtime:e.NgModuleRef},wu.ViewContainerRef={name:"ViewContainerRef",moduleUrl:bu,runtime:e.ViewContainerRef},wu.ChangeDetectorRef={name:"ChangeDetectorRef",moduleUrl:bu,runtime:e.ChangeDetectorRef},wu.QueryList={name:"QueryList",moduleUrl:bu,runtime:e.QueryList},wu.TemplateRef={name:"TemplateRef",moduleUrl:bu,runtime:e.TemplateRef},wu.CodegenComponentFactoryResolver={name:"ɵCodegenComponentFactoryResolver",moduleUrl:bu,runtime:e.ɵCodegenComponentFactoryResolver},wu.ComponentFactoryResolver={name:"ComponentFactoryResolver",moduleUrl:bu,runtime:e.ComponentFactoryResolver},wu.ComponentFactory={name:"ComponentFactory",moduleUrl:bu,runtime:e.ComponentFactory},wu.ComponentRef={name:"ComponentRef",moduleUrl:bu,runtime:e.ComponentRef},wu.NgModuleFactory={name:"NgModuleFactory",moduleUrl:bu,runtime:e.NgModuleFactory},wu.NgModuleInjector={name:"ɵNgModuleInjector",moduleUrl:bu,runtime:e.ɵNgModuleInjector},wu.RegisterModuleFactoryFn={name:"ɵregisterModuleFactory",moduleUrl:bu,runtime:e.ɵregisterModuleFactory},wu.Injector={name:"Injector",moduleUrl:bu,runtime:e.Injector},wu.ViewEncapsulation={name:"ViewEncapsulation",moduleUrl:bu,runtime:e.ViewEncapsulation},wu.ChangeDetectionStrategy={name:"ChangeDetectionStrategy",moduleUrl:bu,runtime:e.ChangeDetectionStrategy},wu.SecurityContext={name:"SecurityContext",moduleUrl:bu,runtime:e.SecurityContext},wu.LOCALE_ID={name:"LOCALE_ID",moduleUrl:bu,runtime:e.LOCALE_ID},wu.TRANSLATIONS_FORMAT={name:"TRANSLATIONS_FORMAT",moduleUrl:bu,runtime:e.TRANSLATIONS_FORMAT},wu.inlineInterpolate={name:"ɵinlineInterpolate",moduleUrl:bu,runtime:e.ɵinlineInterpolate},wu.interpolate={name:"ɵinterpolate",moduleUrl:bu,runtime:e.ɵinterpolate},wu.EMPTY_ARRAY={name:"ɵEMPTY_ARRAY",moduleUrl:bu,runtime:e.ɵEMPTY_ARRAY},wu.EMPTY_MAP={name:"ɵEMPTY_MAP",moduleUrl:bu,runtime:e.ɵEMPTY_MAP},wu.Renderer={name:"Renderer",moduleUrl:bu,runtime:e.Renderer},wu.viewDef={name:"ɵvid",moduleUrl:bu,runtime:e.ɵvid},wu.elementDef={name:"ɵeld",moduleUrl:bu,runtime:e.ɵeld},wu.anchorDef={name:"ɵand",moduleUrl:bu,runtime:e.ɵand},wu.textDef={name:"ɵted",moduleUrl:bu,runtime:e.ɵted},wu.directiveDef={name:"ɵdid",moduleUrl:bu,runtime:e.ɵdid},wu.providerDef={name:"ɵprd",moduleUrl:bu,runtime:e.ɵprd},wu.queryDef={name:"ɵqud",moduleUrl:bu,runtime:e.ɵqud},wu.pureArrayDef={name:"ɵpad",moduleUrl:bu,runtime:e.ɵpad},wu.pureObjectDef={name:"ɵpod",moduleUrl:bu,runtime:e.ɵpod},wu.purePipeDef={name:"ɵppd",moduleUrl:bu,runtime:e.ɵppd},wu.pipeDef={name:"ɵpid",moduleUrl:bu,runtime:e.ɵpid},wu.nodeValue={name:"ɵnov",moduleUrl:bu,runtime:e.ɵnov},wu.ngContentDef={name:"ɵncd",moduleUrl:bu,runtime:e.ɵncd},wu.unwrapValue={name:"ɵunv",moduleUrl:bu,runtime:e.ɵunv},wu.createRendererType2={name:"ɵcrt",moduleUrl:bu,runtime:e.ɵcrt},wu.RendererType2={name:"RendererType2",moduleUrl:bu,runtime:null},wu.ViewDefinition={name:"ɵViewDefinition",moduleUrl:bu,runtime:null},wu.createComponentFactory={name:"ɵccf",moduleUrl:bu,runtime:e.ɵccf};var Eu=["zero","one","two","few","many","other"],Cu=function(){function t(t,e,n){this.nodes=t,this.expanded=e,this.errors=n}return t}(),Su=function(t){function e(e,n){return t.call(this,e,n)||this}return zr(e,t),e}(Us),xu=function(){function t(){this.isExpanded=!1,this.errors=[]}return t.prototype.visitElement=function(t){return new Ws(t.name,t.attrs,ot(this,t.children),t.sourceSpan,t.startSourceSpan,t.endSourceSpan)},t.prototype.visitAttribute=function(t){return t},t.prototype.visitText=function(t){return t},t.prototype.visitComment=function(t){return t},t.prototype.visitExpansion=function(t){return this.isExpanded=!0,"plural"==t.type?he(t,this.errors):fe(t,this.errors)},t.prototype.visitExpansionCase=function(){throw new Error("Should not be reached")},t}(),Tu=function(t){function e(e,n){return t.call(this,n,e)||this}return zr(e,t),e}(Us),Pu=function(){function t(t){var e=this;this.component=t,this.errors=[],this.viewQueries=ge(t),this.viewProviders=new Map,t.viewProviders.forEach(function(t){null==e.viewProviders.get(T(t.token))&&e.viewProviders.set(T(t.token),!0)})}return t}(),Au=function(){function t(t,e,n,r,i,o,s,a,u){var c=this;this.viewContext=t,this._parent=e,this._isViewRoot=n,this._directiveAsts=r,this._sourceSpan=u,this._transformedProviders=new Map,this._seenProviders=new Map,this._hasViewContainer=!1,this._queriedTokens=new Map,this._attrs={},i.forEach(function(t){return c._attrs[t.name]=t.value});var l=r.map(function(t){return t.directive});if(this._allProviders=me(l,u,t.errors),this._contentQueries=_e(a,l),Array.from(this._allProviders.values()).forEach(function(t){c._addQueryReadsTo(t.token,t.token,c._queriedTokens)}),s){var p=le(wu.TemplateRef);this._addQueryReadsTo(p,p,this._queriedTokens)}o.forEach(function(t){var e=t.value||le(wu.ElementRef);c._addQueryReadsTo({value:t.name},e,c._queriedTokens)}),this._queriedTokens.get(ae(wu.ViewContainerRef))&&(this._hasViewContainer=!0),Array.from(this._allProviders.values()).forEach(function(t){var e=t.eager||c._queriedTokens.get(T(t.token));e&&c._getOrCreateLocalProvider(t.providerType,t.token,!0)})}return t.prototype.afterElement=function(){var t=this;Array.from(this._allProviders.values()).forEach(function(e){t._getOrCreateLocalProvider(e.providerType,e.token,!1)})},Object.defineProperty(t.prototype,"transformProviders",{get:function(){return Array.from(this._transformedProviders.values())},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"transformedDirectiveAsts",{get:function(){var t=this.transformProviders.map(function(t){return t.token.identifier}),e=this._directiveAsts.slice();return e.sort(function(e,n){return t.indexOf(e.directive.type)-t.indexOf(n.directive.type)}),e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"transformedHasViewContainer",{get:function(){return this._hasViewContainer},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"queryMatches",{get:function(){var t=[];return this._queriedTokens.forEach(function(e){t.push.apply(t,e)}),t},enumerable:!0,configurable:!0}),t.prototype._addQueryReadsTo=function(t,e,n){this._getQueriesFor(t).forEach(function(t){var r=t.meta.read||e,i=T(r),o=n.get(i);o||(o=[],n.set(i,o)),o.push({queryId:t.queryId,value:r})})},t.prototype._getQueriesFor=function(t){for(var e,n=[],r=this,i=0;null!==r;)e=r._contentQueries.get(T(t)),e&&n.push.apply(n,e.filter(function(t){return t.meta.descendants||1>=i})),r._directiveAsts.length>0&&i++,r=r._parent;return e=this.viewContext.viewQueries.get(T(t)),e&&n.push.apply(n,e),n},t.prototype._getOrCreateLocalProvider=function(t,e,n){var r=this,i=this._allProviders.get(T(e));if(!i||(t===ii.Directive||t===ii.PublicService)&&i.providerType===ii.PrivateService||(t===ii.PrivateService||t===ii.PublicService)&&i.providerType===ii.Builtin)return null;var o=this._transformedProviders.get(T(e));if(o)return o;if(null!=this._seenProviders.get(T(e)))return this.viewContext.errors.push(new Tu("Cannot instantiate cyclic dependency! "+x(e),this._sourceSpan)),null;this._seenProviders.set(T(e),!0);var s=i.providers.map(function(t){var e,o=t.useValue,s=t.useExisting;if(null!=t.useExisting){var a=r._getDependency(i.providerType,{token:t.useExisting},n);null!=a.token?s=a.token:(s=null,o=a.value)}else if(t.useFactory){var u=t.deps||t.useFactory.diDeps;e=u.map(function(t){return r._getDependency(i.providerType,t,n)})}else if(t.useClass){var u=t.deps||t.useClass.diDeps;e=u.map(function(t){return r._getDependency(i.providerType,t,n)})}return de(t,{useExisting:s,useValue:o,deps:e})});return o=ve(i,{eager:n,providers:s}),this._transformedProviders.set(T(e),o),o},t.prototype._getLocalDependency=function(t,e,n){if(void 0===n&&(n=null),e.isAttribute){var r=this._attrs[e.token.value];return{isValue:!0,value:null==r?null:r}}if(null!=e.token){if(t===ii.Directive||t===ii.Component){if(T(e.token)===ae(wu.Renderer)||T(e.token)===ae(wu.ElementRef)||T(e.token)===ae(wu.ChangeDetectorRef)||T(e.token)===ae(wu.TemplateRef))return e;T(e.token)===ae(wu.ViewContainerRef)&&(this._hasViewContainer=!0)}if(T(e.token)===ae(wu.Injector))return e;if(null!=this._getOrCreateLocalProvider(t,e.token,n))return e}return null},t.prototype._getDependency=function(t,e,n){void 0===n&&(n=null);var r=this,i=n,o=null;if(e.isSkipSelf||(o=this._getLocalDependency(t,e,n)),e.isSelf)!o&&e.isOptional&&(o={isValue:!0,value:null});else{for(;!o&&r._parent;){var s=r;r=r._parent,s._isViewRoot&&(i=!1),o=r._getLocalDependency(ii.PublicService,e,i)}o||(o=!e.isHost||this.viewContext.component.isHost||this.viewContext.component.type.reference===T(e.token)||null!=this.viewContext.viewProviders.get(T(e.token))?e:e.isOptional?o={isValue:!0,value:null}:null)}return o||this.viewContext.errors.push(new Tu("No provider for "+x(e.token),this._sourceSpan)),o},t}(),Ou=function(){function t(t,e,n){var r=this;this._transformedProviders=new Map,this._seenProviders=new Map,this._errors=[],this._allProviders=new Map,t.transitiveModule.modules.forEach(function(t){var e={token:{identifier:t},useClass:t};ye([e],ii.PublicService,!0,n,r._errors,r._allProviders)}),ye(t.transitiveModule.providers.map(function(t){return t.provider}).concat(e),ii.PublicService,!1,n,this._errors,this._allProviders)}return t.prototype.parse=function(){var t=this;if(Array.from(this._allProviders.values()).forEach(function(e){t._getOrCreateLocalProvider(e.token,e.eager)}),this._errors.length>0){var e=this._errors.join("\n");throw new Error("Provider parse errors:\n"+e)}return Array.from(this._transformedProviders.values())},t.prototype._getOrCreateLocalProvider=function(t,e){var n=this,r=this._allProviders.get(T(t));if(!r)return null;var i=this._transformedProviders.get(T(t));if(i)return i;if(null!=this._seenProviders.get(T(t)))return this._errors.push(new Tu("Cannot instantiate cyclic dependency! "+x(t),r.sourceSpan)),null;this._seenProviders.set(T(t),!0);var o=r.providers.map(function(t){var i,o=t.useValue,s=t.useExisting;if(null!=t.useExisting){var a=n._getDependency({token:t.useExisting},e,r.sourceSpan);null!=a.token?s=a.token:(s=null,o=a.value)}else if(t.useFactory){var u=t.deps||t.useFactory.diDeps;i=u.map(function(t){return n._getDependency(t,e,r.sourceSpan)})}else if(t.useClass){var u=t.deps||t.useClass.diDeps;i=u.map(function(t){return n._getDependency(t,e,r.sourceSpan)})}return de(t,{useExisting:s,useValue:o,deps:i})});return i=ve(r,{eager:e,providers:o}),this._transformedProviders.set(T(t),i),i},t.prototype._getDependency=function(t,e,n){void 0===e&&(e=null);var r=!1;t.isSkipSelf||null==t.token||(T(t.token)===ae(wu.Injector)||T(t.token)===ae(wu.ComponentFactoryResolver)?r=!0:null!=this._getOrCreateLocalProvider(t.token,e)&&(r=!0));var i=t;return t.isSelf&&!r&&(t.isOptional?i={isValue:!0,value:null}:this._errors.push(new Tu("No provider for "+x(t.token),n))),i},t}(),Mu=function(){function t(){}return t.prototype.hasProperty=function(){},t.prototype.hasElement=function(){},t.prototype.securityContext=function(){},t.prototype.allKnownElementNames=function(){},t.prototype.getMappedPropName=function(){},t.prototype.getDefaultComponentElementName=function(){},t.prototype.validateProperty=function(){},t.prototype.validateAttribute=function(){},t.prototype.normalizeAnimationStyleProperty=function(){},t.prototype.normalizeAnimationStyleValue=function(){},t}(),Ru=function(){function t(t,e){this.style=t,this.styleUrls=e}return t}(),ku=/@import\s+(?:url\()?\s*(?:(?:['"]([^'"]*))|([^;\)\s]*))[^;]*;?/g,Iu=/\/\*.+?\*\//g,Nu=/^([^:\/?#]+):/,Du=".",Lu="attr",ju="class",Fu="style",Vu="animate-",Uu={};Uu.DEFAULT=0,Uu.LITERAL_ATTR=1,Uu.ANIMATION=2,Uu[Uu.DEFAULT]="DEFAULT",Uu[Uu.LITERAL_ATTR]="LITERAL_ATTR",Uu[Uu.ANIMATION]="ANIMATION";var Bu=function(){function t(t,e,n,r){this.name=t,this.expression=e,this.type=n,this.sourceSpan=r}return Object.defineProperty(t.prototype,"isLiteral",{get:function(){return this.type===Uu.LITERAL_ATTR},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isAnimation",{get:function(){return this.type===Uu.ANIMATION},enumerable:!0,configurable:!0}),t}(),Hu=function(){function t(t,e,n,r,i){var o=this;this._exprParser=t,this._interpolationConfig=e,this._schemaRegistry=n,this._targetErrors=i,this.pipesByName=new Map,this._usedPipes=new Map,r.forEach(function(t){return o.pipesByName.set(t.name,t)})}return t.prototype.getUsedPipes=function(){return Array.from(this._usedPipes.values())},t.prototype.createDirectiveHostPropertyAsts=function(t,e,n){var r=this;if(t.hostProperties){var i=[];return Object.keys(t.hostProperties).forEach(function(e){var o=t.hostProperties[e];"string"==typeof o?r.parsePropertyBinding(e,o,!0,n,[],i):r._reportError('Value of the host property binding "'+e+'" needs to be a string representing an expression but got "'+o+'" ('+typeof o+")",n)}),i.map(function(t){return r.createElementPropertyAst(e,t)})}},t.prototype.createDirectiveHostEventAsts=function(t,e){var n=this;if(t.hostListeners){var r=[];return Object.keys(t.hostListeners).forEach(function(i){var o=t.hostListeners[i];"string"==typeof o?n.parseEvent(i,o,e,[],r):n._reportError('Value of the host listener "'+i+'" needs to be a string representing an expression but got "'+o+'" ('+typeof o+")",e)}),r}},t.prototype.parseInterpolation=function(t,e){var n=e.start.toString();try{var r=this._exprParser.parseInterpolation(t,n,this._interpolationConfig);return r&&this._reportExpressionParserErrors(r.errors,e),this._checkPipes(r,e),r}catch(i){return this._reportError(""+i,e),this._exprParser.wrapLiteralPrimitive("ERROR",n)}},t.prototype.parseInlineTemplateBinding=function(t,e,n,r,i,o){for(var s=this._parseTemplateBindings(t,e,n),a=0;a<s.length;a++){var u=s[a];u.keyIsVar?o.push(new Yr(u.key,u.name,n)):u.expression?this._parsePropertyAst(u.key,u.expression,n,r,i):(r.push([u.key,""]),this.parseLiteralAttr(u.key,null,n,r,i))}},t.prototype._parseTemplateBindings=function(t,e,n){var r=this,i=n.start.toString();try{var o=this._exprParser.parseTemplateBindings(t,e,i);return this._reportExpressionParserErrors(o.errors,n),o.templateBindings.forEach(function(t){t.expression&&r._checkPipes(t.expression,n)}),o.warnings.forEach(function(t){r._reportError(t,n,Vs.WARNING)}),o.templateBindings}catch(s){return this._reportError(""+s,n),[]}},t.prototype.parseLiteralAttr=function(t,e,n,r,i){Ce(t)?(t=t.substring(1),e&&this._reportError('Assigning animation triggers via @prop="exp" attributes with an expression is invalid. Use property bindings (e.g. [@prop]="exp") or use an attribute without a value (e.g. @prop) instead.',n,Vs.ERROR),this._parseAnimation(t,e,n,r,i)):i.push(new Bu(t,this._exprParser.wrapLiteralPrimitive(e,""),Uu.LITERAL_ATTR,n))},t.prototype.parsePropertyBinding=function(t,e,n,r,i,o){var s=!1;t.startsWith(Vu)?(s=!0,t=t.substring(Vu.length)):Ce(t)&&(s=!0,t=t.substring(1)),s?this._parseAnimation(t,e,r,i,o):this._parsePropertyAst(t,this._parseBinding(e,n,r),r,i,o)},t.prototype.parsePropertyInterpolation=function(t,e,n,r,i){var o=this.parseInterpolation(e,n);return o?(this._parsePropertyAst(t,o,n,r,i),!0):!1},t.prototype._parsePropertyAst=function(t,e,n,r,i){r.push([t,e.source]),i.push(new Bu(t,e,Uu.DEFAULT,n))},t.prototype._parseAnimation=function(t,e,n,r,i){var o=this._parseBinding(e||"null",!1,n);r.push([t,o.source]),i.push(new Bu(t,o,Uu.ANIMATION,n))},t.prototype._parseBinding=function(t,e,n){var r=n.start.toString();try{var i=e?this._exprParser.parseSimpleBinding(t,r,this._interpolationConfig):this._exprParser.parseBinding(t,r,this._interpolationConfig);return i&&this._reportExpressionParserErrors(i.errors,n),this._checkPipes(i,n),i}catch(o){return this._reportError(""+o,n),this._exprParser.wrapLiteralPrimitive("ERROR",r)}},t.prototype.createElementPropertyAst=function(t,n){if(n.isAnimation)return new Xr(n.name,si.Animation,e.SecurityContext.NONE,n.expression,null,n.sourceSpan);var r,i,s=null,a=null,u=n.name.split(Du);if(u.length>1)if(u[0]==Lu){a=u[1],this._validatePropertyOrAttributeName(a,n.sourceSpan,!0),i=Se(this._schemaRegistry,t,a,!0);var c=a.indexOf(":");if(c>-1){var l=a.substring(0,c),p=a.substring(c+1);a=o(l,p)}r=si.Attribute}else u[0]==ju?(a=u[1],r=si.Class,i=[e.SecurityContext.NONE]):u[0]==Fu&&(s=u.length>2?u[2]:null,a=u[1],r=si.Style,i=[e.SecurityContext.STYLE]);return null===a&&(a=this._schemaRegistry.getMappedPropName(n.name),i=Se(this._schemaRegistry,t,a,!1),r=si.Property,this._validatePropertyOrAttributeName(a,n.sourceSpan,!1)),new Xr(a,r,i[0],n.expression,s,n.sourceSpan)},t.prototype.parseEvent=function(t,e,n,r,i){Ce(t)?(t=t.substr(1),this._parseAnimationEvent(t,e,n,i)):this._parseEvent(t,e,n,r,i)},t.prototype._parseAnimationEvent=function(t,e,n,r){var i=c(t,[t,""]),o=i[0],s=i[1].toLowerCase();if(s)switch(s){case"start":case"done":var a=this._parseAction(e,n);r.push(new $r(o,null,s,a,n));break;default:this._reportError('The provided animation output phase value "'+s+'" for "@'+o+'" is not supported (use start or done)',n)}else this._reportError("The animation trigger output event (@"+o+") is missing its phase value name (start or done are currently supported)",n)},t.prototype._parseEvent=function(t,e,n,r,i){var o=u(t,[null,t]),s=o[0],a=o[1],c=this._parseAction(e,n);r.push([t,c.source]),i.push(new $r(a,s,null,c,n))},t.prototype._parseAction=function(t,e){var n=e.start.toString();try{var r=this._exprParser.parseAction(t,n,this._interpolationConfig);return r&&this._reportExpressionParserErrors(r.errors,e),!r||r.ast instanceof Zi?(this._reportError("Empty expressions are not allowed",e),this._exprParser.wrapLiteralPrimitive("ERROR",n)):(this._checkPipes(r,e),r)}catch(i){return this._reportError(""+i,e),this._exprParser.wrapLiteralPrimitive("ERROR",n)}},t.prototype._reportError=function(t,e,n){void 0===n&&(n=Vs.ERROR),this._targetErrors.push(new Us(e,t,n))},t.prototype._reportExpressionParserErrors=function(t,e){for(var n=0,r=t;n<r.length;n++){var i=r[n];this._reportError(i.message,e)}},t.prototype._checkPipes=function(t,e){var n=this;if(t){var r=new qu;t.visit(r),r.pipes.forEach(function(t,r){var i=n.pipesByName.get(r);i?n._usedPipes.set(r,i):n._reportError("The pipe '"+r+"' could not be found",new Fs(e.start.moveBy(t.span.start),e.start.moveBy(t.span.end)))})}},t.prototype._validatePropertyOrAttributeName=function(t,e,n){var r=n?this._schemaRegistry.validateAttribute(t):this._schemaRegistry.validateProperty(t);r.error&&this._reportError(r.msg,e,Vs.ERROR)},t}(),qu=function(t){function e(){var e=t.apply(this,arguments)||this;return e.pipes=new Map,e}return zr(e,t),e.prototype.visitPipe=function(t,e){return this.pipes.set(t.name,t),t.exp.visit(this),this.visitAll(t.args,e),null},e}(_o),zu="select",Wu="ng-content",Gu="link",Ku="rel",Qu="href",Xu="stylesheet",$u="style",Zu="script",Yu="ngNonBindable",Ju="ngProjectAs",tc={};tc.NG_CONTENT=0,tc.STYLE=1,tc.STYLESHEET=2,tc.SCRIPT=3,tc.OTHER=4,tc[tc.NG_CONTENT]="NG_CONTENT",tc[tc.STYLE]="STYLE",tc[tc.STYLESHEET]="STYLESHEET",tc[tc.SCRIPT]="SCRIPT",tc[tc.OTHER]="OTHER";var ec=function(){function t(t,e,n,r,i){this.type=t,this.selectAttr=e,this.hrefAttr=n,this.nonBindable=r,this.projectAs=i}return t}(),nc=/^(?:(?:(?:(bind-)|(let-)|(ref-|#)|(on-)|(bindon-)|(@))(.+))|\[\(([^\)]+)\)\]|\[([^\]]+)\]|\(([^\)]+)\))$/,rc=1,ic=2,oc=3,sc=4,ac=5,uc=6,cc=7,lc=8,pc=9,hc=10,fc="ng-template",dc="template",vc="template",mc="*",yc="class",gc=vi.parse("*")[0],_c="The <template> element is deprecated. Use <ng-template> instead",bc="The template attribute is deprecated. Use an ng-template element instead.",wc={},Ec=new e.InjectionToken("TemplateTransforms"),Cc=function(t){function e(e,n,r){return t.call(this,n,e,r)||this}return zr(e,t),e}(Us),Sc=function(){function t(t,e,n){this.templateAst=t,this.usedPipes=e,this.errors=n}return t}(),xc=function(){function t(t,e,n,r,i,o){this._config=t,this._exprParser=e,this._schemaRegistry=n,this._htmlParser=r,this._console=i,this.transforms=o}return t.prototype.parse=function(t,e,n,r,i,o){var s=this.tryParse(t,e,n,r,i,o),a=s.errors.filter(function(t){return t.level===Vs.WARNING}).filter(Pe([bc,_c])),u=s.errors.filter(function(t){return t.level===Vs.ERROR});if(a.length>0&&this._console.warn("Template parse warnings:\n"+a.join("\n")),u.length>0){var c=u.join("\n");throw h("Template parse errors:\n"+c)}return{template:s.templateAst,pipes:s.usedPipes}},t.prototype.tryParse=function(t,e,n,r,i,o){return this.tryParseHtml(this.expandHtml(this._htmlParser.parse(e,o,!0,this.getInterpolationConfig(t))),t,e,n,r,i,o)},t.prototype.tryParseHtml=function(t,e,r,i,o,s){var a,u=t.errors,c=[];if(t.rootNodes.length>0){var l=Re(i),p=Re(o),h=new Pu(e),f=void 0;e.template&&e.template.interpolation&&(f={start:e.template.interpolation[0],end:e.template.interpolation[1]});var d=new Hu(this._exprParser,f,this._schemaRegistry,p,u),v=new Tc(this._config,h,l,d,this._schemaRegistry,s,u);a=ot(v,t.rootNodes,Mc),u.push.apply(u,h.errors),c.push.apply(c,d.getUsedPipes())}else a=[];return this._assertNoReferenceDuplicationOnTemplate(a,u),u.length>0?new Sc(a,c,u):(this.transforms&&this.transforms.forEach(function(t){a=n(t,a)}),new Sc(a,c,u))},t.prototype.expandHtml=function(t,e){void 0===e&&(e=!1);var n=t.errors;if(0==n.length||e){var r=pe(t.rootNodes);n.push.apply(n,r.errors),t=new ea(r.nodes,n)}return t},t.prototype.getInterpolationConfig=function(t){return t.template?Cs.fromArray(t.template.interpolation):void 0},t.prototype._assertNoReferenceDuplicationOnTemplate=function(t,e){var n=[];t.filter(function(t){return!!t.references}).forEach(function(t){return t.references.forEach(function(t){var r=t.name;if(n.indexOf(r)<0)n.push(r);else{var i=new Cc('Reference "#'+r+'" is defined several times',t.sourceSpan,Vs.ERROR);e.push(i)}})})},t}();xc.decorators=[{type:V}],xc.ctorParameters=function(){return[{type:Gi},{type:Is},{type:Mu},{type:_u},{type:e.ɵConsole},{type:Array,decorators:[{type:e.Optional},{type:e.Inject,args:[Ec]}]}]};var Tc=function(){function t(t,e,n,r,i,o,s){var a=this;this.config=t,this.providerViewContext=e,this._bindingParser=r,this._schemaRegistry=i,this._schemas=o,this._targetErrors=s,this.selectorMatcher=new mi,this.directivesIndex=new Map,this.ngContentCount=0,this.contentQueryStartId=e.component.viewQueries.length+1,n.forEach(function(t,e){var n=vi.parse(t.selector);a.selectorMatcher.addSelectables(n,t),a.directivesIndex.set(t,e)})}return t.prototype.visitExpansion=function(){return null},t.prototype.visitExpansionCase=function(){return null},t.prototype.visitText=function(t,e){var n=e.findNgContentIndex(gc),r=this._bindingParser.parseInterpolation(t.value,t.sourceSpan);return r?new Kr(r,n,t.sourceSpan):new Gr(t.value,n,t.sourceSpan)},t.prototype.visitAttribute=function(t){return new Qr(t.name,t.value,t.sourceSpan)},t.prototype.visitComment=function(){return null},t.prototype.visitElement=function(t,e){var n=this,r=this.contentQueryStartId,i=t.name,o=xe(t);if(o.type===tc.SCRIPT||o.type===tc.STYLE)return null;if(o.type===tc.STYLESHEET&&we(o.hrefAttr))return null;var s=[],a=[],u=[],c=[],l=[],p=[],h=[],f=[],d=!1,v=[],m=Ie(t,this.config.enableLegacyTemplate,function(t,e){return n._reportError(t,e,Vs.WARNING)});t.attrs.forEach(function(t){var e,r,i=n._parseAttr(m,t,s,a,l,u,c),o=n._normalizeAttributeName(t.name);n.config.enableLegacyTemplate&&o==vc?(n._reportError(bc,t.sourceSpan,Vs.WARNING),e=t.value):o.startsWith(mc)&&(e=t.value,r=o.substring(mc.length)+":");var y=null!=e;y&&(d&&n._reportError("Can't have multiple template bindings on one element. Use only one attribute named 'template' or prefixed with *",t.sourceSpan),d=!0,n._bindingParser.parseInlineTemplateBinding(r,e,t.sourceSpan,h,p,f)),i||y||(v.push(n.visitAttribute(t,null)),s.push([t.name,t.value]))});var y=Oe(i,s),g=this._parseDirectives(this.selectorMatcher,y),_=g.directives,b=g.matchElement,w=[],E=new Set,C=this._createDirectiveAsts(m,t.name,_,a,u,t.sourceSpan,w,E),S=this._createElementPropertyAsts(t.name,a,E),x=e.isTemplateElement||d,T=new Au(this.providerViewContext,e.providerContext,x,C,v,w,m,r,t.sourceSpan),P=ot(o.nonBindable?Rc:this,t.children,Oc.create(m,C,m?e.providerContext:T));T.afterElement();var A,O=null!=o.projectAs?vi.parse(o.projectAs)[0]:y,M=e.findNgContentIndex(O);if(o.type===tc.NG_CONTENT)t.children&&!t.children.every(Me)&&this._reportError("<ng-content> element cannot have content.",t.sourceSpan),A=new oi(this.ngContentCount++,d?null:M,t.sourceSpan);else if(m)this._assertAllEventsPublishedByDirectives(C,l),this._assertNoComponentsNorElementBindingsOnTemplate(C,S,t.sourceSpan),A=new ti(v,l,w,c,T.transformedDirectiveAsts,T.transformProviders,T.transformedHasViewContainer,T.queryMatches,P,d?null:M,t.sourceSpan);else{this._assertElementExists(b,t),this._assertOnlyOneComponent(C,t.sourceSpan);var R=d?null:e.findNgContentIndex(O);A=new Jr(i,v,S,l,w,T.transformedDirectiveAsts,T.transformProviders,T.transformedHasViewContainer,T.queryMatches,P,d?null:R,t.sourceSpan,t.endSourceSpan)}if(d){var k=this.contentQueryStartId,I=Oe(dc,h),N=this._parseDirectives(this.selectorMatcher,I).directives,D=new Set,L=this._createDirectiveAsts(!0,t.name,N,p,[],t.sourceSpan,[],D),j=this._createElementPropertyAsts(t.name,p,D);this._assertNoComponentsNorElementBindingsOnTemplate(L,j,t.sourceSpan);var F=new Au(this.providerViewContext,e.providerContext,e.isTemplateElement,L,[],[],!0,k,t.sourceSpan);F.afterElement(),A=new ti([],[],[],f,F.transformedDirectiveAsts,F.transformProviders,F.transformedHasViewContainer,F.queryMatches,[A],M,t.sourceSpan)}return A},t.prototype._parseAttr=function(t,e,n,r,i,o,s){var a=this._normalizeAttributeName(e.name),u=e.value,c=e.sourceSpan,l=a.match(nc),p=!1;if(null!==l)if(p=!0,null!=l[rc])this._bindingParser.parsePropertyBinding(l[cc],u,!1,c,n,r);else if(l[ic])if(t){var h=l[cc];this._parseVariable(h,u,c,s)}else this._reportError('"let-" is only supported on template elements.',c);else if(l[oc]){var h=l[cc];this._parseReference(h,u,c,o)}else l[sc]?this._bindingParser.parseEvent(l[cc],u,c,n,i):l[ac]?(this._bindingParser.parsePropertyBinding(l[cc],u,!1,c,n,r),this._parseAssignmentEvent(l[cc],u,c,n,i)):l[uc]?this._bindingParser.parseLiteralAttr(a,u,c,n,r):l[lc]?(this._bindingParser.parsePropertyBinding(l[lc],u,!1,c,n,r),this._parseAssignmentEvent(l[lc],u,c,n,i)):l[pc]?this._bindingParser.parsePropertyBinding(l[pc],u,!1,c,n,r):l[hc]&&this._bindingParser.parseEvent(l[hc],u,c,n,i);else p=this._bindingParser.parsePropertyInterpolation(a,u,c,n,r);return p||this._bindingParser.parseLiteralAttr(a,u,c,n,r),p},t.prototype._normalizeAttributeName=function(t){return/^data-/i.test(t)?t.substring(5):t},t.prototype._parseVariable=function(t,e,n,r){t.indexOf("-")>-1&&this._reportError('"-" is not allowed in variable names',n),r.push(new Yr(t,e,n))},t.prototype._parseReference=function(t,e,n,r){t.indexOf("-")>-1&&this._reportError('"-" is not allowed in reference names',n), -r.push(new Ac(t,e,n))},t.prototype._parseAssignmentEvent=function(t,e,n,r,i){this._bindingParser.parseEvent(t+"Change",e+"=$event",n,r,i)},t.prototype._parseDirectives=function(t,e){var n=this,r=new Array(this.directivesIndex.size),i=!1;return t.match(e,function(t,e){r[n.directivesIndex.get(e)]=e,i=i||t.hasElementSelector()}),{directives:r.filter(function(t){return!!t}),matchElement:i}},t.prototype._createDirectiveAsts=function(t,e,n,r,i,o,s,a){var u=this,c=new Set,l=null,p=n.map(function(t){var n=new Fs(o.start,o.end,"Directive "+g(t.type));t.isComponent&&(l=t);var p=[],h=u._bindingParser.createDirectiveHostPropertyAsts(t,e,n);h=u._checkPropertiesInSchema(e,h);var f=u._bindingParser.createDirectiveHostEventAsts(t,n);u._createDirectivePropertyAsts(t.inputs,r,p,a),i.forEach(function(e){(0===e.value.length&&t.isComponent||t.exportAs==e.value)&&(s.push(new Zr(e.name,ce(t.type),e.sourceSpan)),c.add(e.name))});var d=u.contentQueryStartId;return u.contentQueryStartId+=t.queries.length,new ni(t,p,h,f,d,n)});return i.forEach(function(e){if(e.value.length>0)c.has(e.name)||u._reportError('There is no directive with "exportAs" set to "'+e.value+'"',e.sourceSpan);else if(!l){var n=null;t&&(n=le(wu.TemplateRef)),s.push(new Zr(e.name,n,e.sourceSpan))}}),p},t.prototype._createDirectivePropertyAsts=function(t,e,n,r){if(t){var i=new Map;e.forEach(function(t){var e=i.get(t.name);(!e||e.isLiteral)&&i.set(t.name,t)}),Object.keys(t).forEach(function(e){var o=t[e],s=i.get(o);s&&(r.add(s.name),ke(s.expression)||n.push(new ei(e,s.name,s.expression,s.sourceSpan)))})}},t.prototype._createElementPropertyAsts=function(t,e,n){var r=this,i=[];return e.forEach(function(e){e.isLiteral||n.has(e.name)||i.push(r._bindingParser.createElementPropertyAst(t,e))}),this._checkPropertiesInSchema(t,i)},t.prototype._findComponentDirectives=function(t){return t.filter(function(t){return t.directive.isComponent})},t.prototype._findComponentDirectiveNames=function(t){return this._findComponentDirectives(t).map(function(t){return g(t.directive.type)})},t.prototype._assertOnlyOneComponent=function(t,e){var n=this._findComponentDirectiveNames(t);n.length>1&&this._reportError("More than one component matched on this element.\nMake sure that only one component's selector can match a given element.\nConflicting components: "+n.join(","),e)},t.prototype._assertElementExists=function(t,e){var n=e.name.replace(/^:xhtml:/,"");if(!t&&!this._schemaRegistry.hasElement(n,this._schemas)){var r="'"+n+"' is not a known element:\n";r+="1. If '"+n+"' is an Angular component, then verify that it is part of this module.\n",r+=n.indexOf("-")>-1?"2. If '"+n+"' is a Web Component then add 'CUSTOM_ELEMENTS_SCHEMA' to the '@NgModule.schemas' of this component to suppress this message.":"2. To allow any element add 'NO_ERRORS_SCHEMA' to the '@NgModule.schemas' of this component.",this._reportError(r,e.sourceSpan)}},t.prototype._assertNoComponentsNorElementBindingsOnTemplate=function(t,e,n){var r=this,i=this._findComponentDirectiveNames(t);i.length>0&&this._reportError("Components on an embedded template: "+i.join(","),n),e.forEach(function(t){r._reportError("Property binding "+t.name+' not used by any directive on an embedded template. Make sure that the property name is spelled correctly and all directives are listed in the "@NgModule.declarations".',n)})},t.prototype._assertAllEventsPublishedByDirectives=function(t,e){var n=this,r=new Set;t.forEach(function(t){Object.keys(t.directive.outputs).forEach(function(e){var n=t.directive.outputs[e];r.add(n)})}),e.forEach(function(t){null==t.target&&r.has(t.name)||n._reportError("Event binding "+t.fullName+' not emitted by any directive on an embedded template. Make sure that the event name is spelled correctly and all directives are listed in the "@NgModule.declarations".',t.sourceSpan)})},t.prototype._checkPropertiesInSchema=function(t,e){var n=this;return e.filter(function(e){if(e.type===si.Property&&!n._schemaRegistry.hasProperty(t,e.name,n._schemas)){var r="Can't bind to '"+e.name+"' since it isn't a known property of '"+t+"'.";t.startsWith("ng-")?r+="\n1. If '"+e.name+"' is an Angular directive, then add 'CommonModule' to the '@NgModule.imports' of this component.\n2. To allow any property add 'NO_ERRORS_SCHEMA' to the '@NgModule.schemas' of this component.":t.indexOf("-")>-1&&(r+="\n1. If '"+t+"' is an Angular component and it has '"+e.name+"' input, then verify that it is part of this module."+("\n2. If '"+t+"' is a Web Component then add 'CUSTOM_ELEMENTS_SCHEMA' to the '@NgModule.schemas' of this component to suppress this message.")+"\n3. To allow any property add 'NO_ERRORS_SCHEMA' to the '@NgModule.schemas' of this component."),n._reportError(r,e.sourceSpan)}return!ke(e.value)})},t.prototype._reportError=function(t,e,n){void 0===n&&(n=Vs.ERROR),this._targetErrors.push(new Us(e,t,n))},t}(),Pc=function(){function t(){}return t.prototype.visitElement=function(t,e){var n=xe(t);if(n.type===tc.SCRIPT||n.type===tc.STYLE||n.type===tc.STYLESHEET)return null;var r=t.attrs.map(function(t){return[t.name,t.value]}),i=Oe(t.name,r),o=e.findNgContentIndex(i),s=ot(this,t.children,Mc);return new Jr(t.name,ot(this,t.attrs),[],[],[],[],[],!1,[],s,o,t.sourceSpan,t.endSourceSpan)},t.prototype.visitComment=function(){return null},t.prototype.visitAttribute=function(t){return new Qr(t.name,t.value,t.sourceSpan)},t.prototype.visitText=function(t,e){var n=e.findNgContentIndex(gc);return new Gr(t.value,n,t.sourceSpan)},t.prototype.visitExpansion=function(t){return t},t.prototype.visitExpansionCase=function(t){return t},t}(),Ac=function(){function t(t,e,n){this.name=t,this.value=e,this.sourceSpan=n}return t}(),Oc=function(){function t(t,e,n,r){this.isTemplateElement=t,this._ngContentIndexMatcher=e,this._wildcardNgContentIndex=n,this.providerContext=r}return t.create=function(e,n,r){var i=new mi,o=null,s=n.find(function(t){return t.directive.isComponent});if(s)for(var a=s.directive.template.ngContentSelectors,u=0;u<a.length;u++){var c=a[u];"*"===c?o=u:i.addSelectables(vi.parse(a[u]),u)}return new t(e,i,o,r)},t.prototype.findNgContentIndex=function(t){var e=[];return this._ngContentIndexMatcher.match(t,function(t,n){e.push(n)}),e.sort(),null!=this._wildcardNgContentIndex&&e.push(this._wildcardNgContentIndex),e.length>0?e[0]:null},t}(),Mc=new Oc(!0,new mi,null,null),Rc=new Pc,kc=function(){function t(){}return t.prototype.get=function(){return null},t}(),Ic={provide:e.PACKAGE_ROOT_URL,useValue:"/"},Nc=function(){function t(t){void 0===t&&(t=null),this._packagePrefix=t}return t.prototype.resolve=function(t,e){var n=e;null!=t&&t.length>0&&(n=Be(t,n));var r=Fe(n),i=this._packagePrefix;if(null!=i&&null!=r&&"package"==r[Lc.Scheme]){var o=r[Lc.Path];return i=i.replace(/\/+$/,""),o=o.replace(/^\/+/,""),i+"/"+o}return n},t}();Nc.decorators=[{type:V}],Nc.ctorParameters=function(){return[{type:void 0,decorators:[{type:e.Inject,args:[e.PACKAGE_ROOT_URL]}]}]};var Dc=new RegExp("^(?:([^:/?#.]+):)?(?://(?:([^/?#]*)@)?([\\w\\d\\-\\u0100-\\uffff.%]*)(?::([0-9]+))?)?([^?#]+)?(?:\\?([^#]*))?(?:#(.*))?$"),Lc={};Lc.Scheme=1,Lc.UserInfo=2,Lc.Domain=3,Lc.Port=4,Lc.Path=5,Lc.QueryData=6,Lc.Fragment=7,Lc[Lc.Scheme]="Scheme",Lc[Lc.UserInfo]="UserInfo",Lc[Lc.Domain]="Domain",Lc[Lc.Port]="Port",Lc[Lc.Path]="Path",Lc[Lc.QueryData]="QueryData",Lc[Lc.Fragment]="Fragment";var jc=function(){function t(t,e,n,r){this._resourceLoader=t,this._urlResolver=e,this._htmlParser=n,this._config=r,this._resourceLoaderCache=new Map}return t.prototype.clearCache=function(){this._resourceLoaderCache.clear()},t.prototype.clearCacheFor=function(t){var e=this;t.isComponent&&(this._resourceLoaderCache["delete"](t.template.templateUrl),t.template.externalStylesheets.forEach(function(t){e._resourceLoaderCache["delete"](t.moduleUrl)}))},t.prototype._fetch=function(t){var e=this._resourceLoaderCache.get(t);return e||(e=this._resourceLoader.get(t),this._resourceLoaderCache.set(t,e)),e},t.prototype.normalizeTemplate=function(t){var n,r=this,i=null;if(null!=t.template){if(null!=t.templateUrl)throw h("'"+e.ɵstringify(t.componentType)+"' component cannot define both template and templateUrl");if("string"!=typeof t.template)throw h("The template specified for component "+e.ɵstringify(t.componentType)+" is not a string");i=this.normalizeTemplateSync(t),n=Promise.resolve(i)}else{if(!t.templateUrl)throw h("No template specified for component "+e.ɵstringify(t.componentType));if("string"!=typeof t.templateUrl)throw h("The templateUrl specified for component "+e.ɵstringify(t.componentType)+" is not a string");n=this.normalizeTemplateAsync(t)}return i&&0===i.styleUrls.length?new Ei(i):new Ei(null,n.then(function(t){return r.normalizeExternalStylesheets(t)}))},t.prototype.normalizeTemplateSync=function(t){return this.normalizeLoadedTemplate(t,t.template,t.moduleUrl)},t.prototype.normalizeTemplateAsync=function(t){var e=this,n=this._urlResolver.resolve(t.moduleUrl,t.templateUrl);return this._fetch(n).then(function(r){return e.normalizeLoadedTemplate(t,r,n)})},t.prototype.normalizeLoadedTemplate=function(t,n,r){var i=!!t.template,o=Cs.fromArray(t.interpolation),s=this._htmlParser.parse(n,R({reference:t.ngModuleType},{type:{reference:t.componentType}},{isInline:i,templateUrl:r}),!0,o);if(s.errors.length>0){var a=s.errors.join("\n");throw h("Template parse errors:\n"+a)}var u=this.normalizeStylesheet(new Vi({styles:t.styles,styleUrls:t.styleUrls,moduleUrl:t.moduleUrl})),c=new Fc;ot(c,s.rootNodes);var l=this.normalizeStylesheet(new Vi({styles:c.styles,styleUrls:c.styleUrls,moduleUrl:r})),p=t.encapsulation;null==p&&(p=this._config.defaultEncapsulation);var f=u.styles.concat(l.styles),d=u.styleUrls.concat(l.styleUrls);return p===e.ViewEncapsulation.Emulated&&0===f.length&&0===d.length&&(p=e.ViewEncapsulation.None),new Ui({encapsulation:p,template:n,templateUrl:r,styles:f,styleUrls:d,ngContentSelectors:c.ngContentSelectors,animations:t.animations,interpolation:t.interpolation,isInline:i})},t.prototype.normalizeExternalStylesheets=function(t){return this._loadMissingExternalStylesheets(t.styleUrls).then(function(e){return new Ui({encapsulation:t.encapsulation,template:t.template,templateUrl:t.templateUrl,styles:t.styles,styleUrls:t.styleUrls,externalStylesheets:e,ngContentSelectors:t.ngContentSelectors,animations:t.animations,interpolation:t.interpolation,isInline:t.isInline})})},t.prototype._loadMissingExternalStylesheets=function(t,e){var n=this;return void 0===e&&(e=new Map),Promise.all(t.filter(function(t){return!e.has(t)}).map(function(t){return n._fetch(t).then(function(r){var i=n.normalizeStylesheet(new Vi({styles:[r],moduleUrl:t}));return e.set(t,i),n._loadMissingExternalStylesheets(i.styleUrls,e)})})).then(function(){return Array.from(e.values())})},t.prototype.normalizeStylesheet=function(t){var e=this,n=t.styleUrls.filter(we).map(function(n){return e._urlResolver.resolve(t.moduleUrl,n)}),r=t.styles.map(function(r){var i=Ee(e._urlResolver,t.moduleUrl,r);return n.push.apply(n,i.styleUrls),i.style});return new Vi({styles:r,styleUrls:n,moduleUrl:t.moduleUrl})},t}();jc.decorators=[{type:V}],jc.ctorParameters=function(){return[{type:kc},{type:Nc},{type:mu},{type:Gi}]};var Fc=function(){function t(){this.ngContentSelectors=[],this.styles=[],this.styleUrls=[],this.ngNonBindableStackCount=0}return t.prototype.visitElement=function(t){var e=xe(t);switch(e.type){case tc.NG_CONTENT:0===this.ngNonBindableStackCount&&this.ngContentSelectors.push(e.selectAttr);break;case tc.STYLE:var n="";t.children.forEach(function(t){t instanceof Bs&&(n+=t.value)}),this.styles.push(n);break;case tc.STYLESHEET:this.styleUrls.push(e.hrefAttr)}return e.nonBindable&&this.ngNonBindableStackCount++,ot(this,t.children),e.nonBindable&&this.ngNonBindableStackCount--,null},t.prototype.visitExpansion=function(t){ot(this,t.cases)},t.prototype.visitExpansionCase=function(t){ot(this,t.expression)},t.prototype.visitComment=function(){return null},t.prototype.visitAttribute=function(){return null},t.prototype.visitText=function(){return null},t}(),Vc=void 0||Object.assign||function(t){for(var e,n=1,r=arguments.length;r>n;n++){e=arguments[n];for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])}return t},Uc=function(){function t(t){void 0===t&&(t=e.ɵreflector),this._reflector=t}return t.prototype.isDirective=function(t){var n=this._reflector.annotations(e.resolveForwardRef(t));return n&&n.some(He)},t.prototype.resolve=function(t,n){void 0===n&&(n=!0);var r=this._reflector.annotations(e.resolveForwardRef(t));if(r){var i=qe(r,He);if(i){var o=this._reflector.propMetadata(t);return this._mergeWithPropertyMetadata(i,o,t)}}if(n)throw new Error("No Directive annotation found on "+e.ɵstringify(t));return null},t.prototype._mergeWithPropertyMetadata=function(t,n,r){var i=[],o=[],s={},a={};return Object.keys(n).forEach(function(t){var r=qe(n[t],function(t){return t instanceof e.Input});r&&i.push(r.bindingPropertyName?t+": "+r.bindingPropertyName:t);var u=qe(n[t],function(t){return t instanceof e.Output});u&&o.push(u.bindingPropertyName?t+": "+u.bindingPropertyName:t);var c=n[t].filter(function(t){return t&&t instanceof e.HostBinding});c.forEach(function(e){if(e.hostPropertyName){var n=e.hostPropertyName[0];if("("===n)throw new Error("@HostBinding can not bind to events. Use @HostListener instead.");if("["===n)throw new Error("@HostBinding parameter should be a property name, 'class.<name>', or 'attr.<name>'.");s["["+e.hostPropertyName+"]"]=t}else s["["+t+"]"]=t});var l=n[t].filter(function(t){return t&&t instanceof e.HostListener});l.forEach(function(e){var n=e.args||[];s["("+e.eventName+")"]=t+"("+n.join(",")+")"});var p=qe(n[t],function(t){return t instanceof e.Query});p&&(a[t]=p)}),this._merge(t,i,o,s,a,r)},t.prototype._extractPublicName=function(t){return u(t,[null,t])[1].trim()},t.prototype._dedupeBindings=function(t){for(var e=new Set,n=[],r=t.length-1;r>=0;r--){var i=t[r],o=this._extractPublicName(i);e.has(o)||(e.add(o),n.push(i))}return n.reverse()},t.prototype._merge=function(t,n,r,i,o){var s=this._dedupeBindings(t.inputs?t.inputs.concat(n):n),a=this._dedupeBindings(t.outputs?t.outputs.concat(r):r),u=t.host?Vc({},t.host,i):i,c=t.queries?Vc({},t.queries,o):o;return t instanceof e.Component?new e.Component({selector:t.selector,inputs:s,outputs:a,host:u,exportAs:t.exportAs,moduleId:t.moduleId,queries:c,changeDetection:t.changeDetection,providers:t.providers,viewProviders:t.viewProviders,entryComponents:t.entryComponents,template:t.template,templateUrl:t.templateUrl,styles:t.styles,styleUrls:t.styleUrls,encapsulation:t.encapsulation,animations:t.animations,interpolation:t.interpolation}):new e.Directive({selector:t.selector,inputs:s,outputs:a,host:u,exportAs:t.exportAs,queries:c,providers:t.providers})},t}();Uc.decorators=[{type:V}],Uc.ctorParameters=function(){return[{type:e.ɵReflectorReader}]};var Bc=/(\.ts|\.d\.ts|\.js|\.jsx|\.tsx)$/,Hc=/\.ngfactory\./,qc=function(){function t(t){void 0===t&&(t=e.ɵreflector),this._reflector=t}return t.prototype.isNgModule=function(t){return this._reflector.annotations(t).some(Ze)},t.prototype.resolve=function(t,n){void 0===n&&(n=!0);var r=qe(this._reflector.annotations(t),Ze);if(r)return r;if(n)throw new Error("No NgModule metadata found for '"+e.ɵstringify(t)+"'.");return null},t}();qc.decorators=[{type:V}],qc.ctorParameters=function(){return[{type:e.ɵReflectorReader}]};var zc=function(){function t(t){void 0===t&&(t=e.ɵreflector),this._reflector=t}return t.prototype.isPipe=function(t){var n=this._reflector.annotations(e.resolveForwardRef(t));return n&&n.some(Ye)},t.prototype.resolve=function(t,n){void 0===n&&(n=!0);var r=this._reflector.annotations(e.resolveForwardRef(t));if(r){var i=qe(r,Ye);if(i)return i}if(n)throw new Error("No Pipe decorator found on "+e.ɵstringify(t));return null},t}();zc.decorators=[{type:V}],zc.ctorParameters=function(){return[{type:e.ɵReflectorReader}]};var Wc=function(){function t(){}return t.prototype.isLibraryFile=function(){return!1},t.prototype.getLibraryFileName=function(){return null},t.prototype.resolveSummary=function(){return null},t.prototype.getSymbolsOf=function(){return[]},t.prototype.getImportAs=function(t){return t},t}();Wc.decorators=[{type:V}],Wc.ctorParameters=function(){return[]};var Gc=new e.InjectionToken("ErrorCollector"),Kc=function(){function t(t,n,r,i,o,s,a,u,c,l,p){void 0===l&&(l=e.ɵreflector),this._config=t,this._ngModuleResolver=n,this._directiveResolver=r,this._pipeResolver=i,this._summaryResolver=o,this._schemaRegistry=s,this._directiveNormalizer=a,this._console=u,this._staticSymbolCache=c,this._reflector=l,this._errorCollector=p,this._nonNormalizedDirectiveCache=new Map,this._directiveCache=new Map,this._summaryCache=new Map,this._pipeCache=new Map,this._ngModuleCache=new Map,this._ngModuleOfTypes=new Map}return t.prototype.clearCacheFor=function(t){var e=this._directiveCache.get(t);this._directiveCache["delete"](t),this._nonNormalizedDirectiveCache["delete"](t),this._summaryCache["delete"](t),this._pipeCache["delete"](t),this._ngModuleOfTypes["delete"](t),this._ngModuleCache.clear(),e&&this._directiveNormalizer.clearCacheFor(e)},t.prototype.clearCache=function(){this._directiveCache.clear(),this._nonNormalizedDirectiveCache.clear(),this._summaryCache.clear(),this._pipeCache.clear(),this._ngModuleCache.clear(),this._ngModuleOfTypes.clear(),this._directiveNormalizer.clearCache()},t.prototype._createProxyClass=function(t,n){var r=null,i=function(){if(!r)throw new Error("Illegal state: Class "+n+" for type "+e.ɵstringify(t)+" is not compiled yet!");return r.apply(this,arguments)};return i.setDelegate=function(t){r=t,i.prototype=t.prototype},i.overriddenName=n,i},t.prototype.getGeneratedClass=function(t,e){return t instanceof ai?this._staticSymbolCache.get(ze(t.filePath),e):this._createProxyClass(t,e)},t.prototype.getComponentViewClass=function(t){return this.getGeneratedClass(t,b(t,0))},t.prototype.getHostComponentViewClass=function(t){return this.getGeneratedClass(t,E(t))},t.prototype.getHostComponentType=function(t){var e=g({reference:t})+"_Host";if(t instanceof ai)return this._staticSymbolCache.get(t.filePath,e);var n=function(){};return n.overriddenName=e,n},t.prototype.getRendererType=function(t){return t instanceof ai?this._staticSymbolCache.get(ze(t.filePath),w(t)):{}},t.prototype.getComponentFactory=function(t,n,r,i){if(n instanceof ai)return this._staticSymbolCache.get(ze(n.filePath),S(n));var o=this.getHostComponentViewClass(n);return e.ɵccf(t,n,o,r,i,[])},t.prototype.initComponentFactory=function(t,e){t instanceof ai||(n=t.ngContentSelectors).push.apply(n,e);var n},t.prototype._loadSummary=function(t,e){var n=this._summaryCache.get(t);if(!n){var r=this._summaryResolver.resolveSummary(t);n=r?r.type:null,this._summaryCache.set(t,n)}return n&&n.summaryKind===e?n:null},t.prototype._loadDirectiveMetadata=function(t,n,r){var i=this;if(!this._directiveCache.has(n)){n=e.resolveForwardRef(n);var o=this.getNonNormalizedDirectiveMetadata(n),s=o.annotation,a=o.metadata,u=function(t){var e=new Bi({type:a.type,isComponent:a.isComponent,selector:a.selector,exportAs:a.exportAs,changeDetection:a.changeDetection,inputs:a.inputs,outputs:a.outputs,hostListeners:a.hostListeners,hostProperties:a.hostProperties,hostAttributes:a.hostAttributes,providers:a.providers,viewProviders:a.viewProviders,queries:a.queries,viewQueries:a.viewQueries,entryComponents:a.entryComponents,componentViewType:a.componentViewType,rendererType:a.rendererType,componentFactory:a.componentFactory,template:t});return t&&i.initComponentFactory(a.componentFactory,t.ngContentSelectors),i._directiveCache.set(n,e),i._summaryCache.set(n,e.toSummary()),e};if(a.isComponent){var c=this._directiveNormalizer.normalizeTemplate({ngModuleType:t,componentType:n,moduleUrl:rn(this._reflector,n,s),encapsulation:a.template.encapsulation,template:a.template.template,templateUrl:a.template.templateUrl,styles:a.template.styles,styleUrls:a.template.styleUrls,animations:a.template.animations,interpolation:a.template.interpolation});return c.syncResult?(u(c.syncResult),null):r?(this._reportError(an(n),n),null):c.asyncResult.then(u)}return u(null),null}},t.prototype.getNonNormalizedDirectiveMetadata=function(t){var n=this;if(t=e.resolveForwardRef(t),!t)return null;var r=this._nonNormalizedDirectiveCache.get(t);if(r)return r;var i=this._directiveResolver.resolve(t,!1);if(!i)return null;var o;if(i instanceof e.Component){U("styles",i.styles),U("styleUrls",i.styleUrls),B("interpolation",i.interpolation);var s=i.animations;o=new Ui({encapsulation:i.encapsulation,template:i.template,templateUrl:i.templateUrl,styles:i.styles,styleUrls:i.styleUrls,animations:s,interpolation:i.interpolation,isInline:!!i.template})}var a=null,u=[],c=[],l=i.selector;i instanceof e.Component?(a=i.changeDetection,i.viewProviders&&(u=this._getProvidersMetadata(i.viewProviders,c,'viewProviders for "'+sn(t)+'"',[],t)),i.entryComponents&&(c=en(i.entryComponents).map(function(t){return n._getEntryComponentMetadata(t)}).concat(c)),l||(l=this._schemaRegistry.getDefaultComponentElementName())):l||(this._reportError(h("Directive "+sn(t)+" has no selector, please add it!"),t),l="error");var p=[];null!=i.providers&&(p=this._getProvidersMetadata(i.providers,c,'providers for "'+sn(t)+'"',[],t));var f=[],d=[];null!=i.queries&&(f=this._getQueriesMetadata(i.queries,!1,t),d=this._getQueriesMetadata(i.queries,!0,t));var v=Bi.create({selector:l,exportAs:i.exportAs,isComponent:!!o,type:this._getTypeMetadata(t),template:o,changeDetection:a,inputs:i.inputs,outputs:i.outputs,host:i.host,providers:p,viewProviders:u,queries:f,viewQueries:d,entryComponents:c,componentViewType:o?this.getComponentViewClass(t):void 0,rendererType:o?this.getRendererType(t):void 0,componentFactory:void 0});return o&&(v.componentFactory=this.getComponentFactory(l,t,v.inputs,v.outputs)),r={metadata:v,annotation:i},this._nonNormalizedDirectiveCache.set(t,r),r},t.prototype.getDirectiveMetadata=function(t){var e=this._directiveCache.get(t);return e||this._reportError(h("Illegal state: getDirectiveMetadata can only be called after loadNgModuleDirectiveAndPipeMetadata for a module that declares it. Directive "+sn(t)+"."),t),e},t.prototype.getDirectiveSummary=function(t){var e=this._loadSummary(t,Fi.Directive);return e||this._reportError(h("Illegal state: Could not load the summary for directive "+sn(t)+"."),t),e},t.prototype.isDirective=function(t){return this._directiveResolver.isDirective(t)},t.prototype.isPipe=function(t){return this._pipeResolver.isPipe(t)},t.prototype.getNgModuleSummary=function(t){var e=this._loadSummary(t,Fi.NgModule);if(!e){var n=this.getNgModuleMetadata(t,!1);e=n?n.toSummary():null,e&&this._summaryCache.set(t,e)}return e},t.prototype.loadNgModuleDirectiveAndPipeMetadata=function(t,e,n){var r=this;void 0===n&&(n=!0);var i=this.getNgModuleMetadata(t,n),o=[];return i&&(i.declaredDirectives.forEach(function(n){var i=r._loadDirectiveMetadata(t,n.reference,e);i&&o.push(i)}),i.declaredPipes.forEach(function(t){return r._loadPipeMetadata(t.reference)})),Promise.all(o)},t.prototype.getNgModuleMetadata=function(t,n){var r=this;void 0===n&&(n=!0),t=e.resolveForwardRef(t);var i=this._ngModuleCache.get(t);if(i)return i;var o=this._ngModuleResolver.resolve(t,n);if(!o)return null;var s=[],a=[],u=[],c=[],l=[],p=[],f=[],d=[],v=[];o.imports&&en(o.imports).forEach(function(e){var n;if(nn(e))n=e;else if(e&&e.ngModule){var i=e;n=i.ngModule,i.providers&&p.push.apply(p,r._getProvidersMetadata(i.providers,f,"provider for the NgModule '"+sn(n)+"'",[],e))}if(!n)return void r._reportError(h("Unexpected value '"+sn(e)+"' imported by the module '"+sn(t)+"'"),t);if(!r._checkSelfImport(t,n)){var o=r.getNgModuleSummary(n);return o?void c.push(o):void r._reportError(h("Unexpected "+r._getTypeDescriptor(e)+" '"+sn(e)+"' imported by the module '"+sn(t)+"'. Please add a @NgModule annotation."),t)}}),o.exports&&en(o.exports).forEach(function(e){if(!nn(e))return void r._reportError(h("Unexpected value '"+sn(e)+"' exported by the module '"+sn(t)+"'"),t);var n=r.getNgModuleSummary(e);n?l.push(n):a.push(r._getIdentifierMetadata(e))});var m=this._getTransitiveNgModuleMetadata(c,l);o.declarations&&en(o.declarations).forEach(function(e){if(!nn(e))return void r._reportError(h("Unexpected value '"+sn(e)+"' declared by the module '"+sn(t)+"'"),t);var n=r._getIdentifierMetadata(e);if(r._directiveResolver.isDirective(e))m.addDirective(n),s.push(n),r._addTypeToModule(e,t);else{if(!r._pipeResolver.isPipe(e))return void r._reportError(h("Unexpected "+r._getTypeDescriptor(e)+" '"+sn(e)+"' declared by the module '"+sn(t)+"'. Please add a @Pipe/@Directive/@Component annotation."),t);m.addPipe(n),m.pipes.push(n),u.push(n),r._addTypeToModule(e,t)}});var y=[],g=[];return a.forEach(function(e){m.directivesSet.has(e.reference)?(y.push(e),m.addExportedDirective(e)):m.pipesSet.has(e.reference)?(g.push(e),m.addExportedPipe(e)):r._reportError(h("Can't export "+r._getTypeDescriptor(e.reference)+" "+sn(e.reference)+" from "+sn(t)+" as it was neither declared nor imported!"),t)}),o.providers&&p.push.apply(p,this._getProvidersMetadata(o.providers,f,"provider for the NgModule '"+sn(t)+"'",[],t)),o.entryComponents&&f.push.apply(f,en(o.entryComponents).map(function(t){return r._getEntryComponentMetadata(t)})),o.bootstrap&&en(o.bootstrap).forEach(function(e){return nn(e)?void d.push(r._getIdentifierMetadata(e)):void r._reportError(h("Unexpected value '"+sn(e)+"' used in the bootstrap property of module '"+sn(t)+"'"),t)}),f.push.apply(f,d.map(function(t){return r._getEntryComponentMetadata(t.reference)})),o.schemas&&v.push.apply(v,en(o.schemas)),i=new qi({type:this._getTypeMetadata(t),providers:p,entryComponents:f,bootstrapComponents:d,schemas:v,declaredDirectives:s,exportedDirectives:y,declaredPipes:u,exportedPipes:g,importedModules:c,exportedModules:l,transitiveModule:m,id:o.id}),f.forEach(function(t){return m.addEntryComponent(t)}),p.forEach(function(t){return m.addProvider(t,i.type)}),m.addModule(i.type),this._ngModuleCache.set(t,i),i},t.prototype._checkSelfImport=function(t,e){return t===e?(this._reportError(h("'"+sn(t)+"' module can't import itself"),t),!0):!1},t.prototype._getTypeDescriptor=function(t){return this._directiveResolver.isDirective(t)?"directive":this._pipeResolver.isPipe(t)?"pipe":this._ngModuleResolver.isNgModule(t)?"module":t.provide?"provider":"value"},t.prototype._addTypeToModule=function(t,e){var n=this._ngModuleOfTypes.get(t);n&&n!==e&&this._reportError(h("Type "+sn(t)+" is part of the declarations of 2 modules: "+sn(n)+" and "+sn(e)+"! "+("Please consider moving "+sn(t)+" to a higher module that imports "+sn(n)+" and "+sn(e)+". ")+("You can also create a new NgModule that exports and includes "+sn(t)+" then import that NgModule in "+sn(n)+" and "+sn(e)+".")),e),this._ngModuleOfTypes.set(t,e)},t.prototype._getTransitiveNgModuleMetadata=function(t,e){var n=new zi,r=new Map;return t.concat(e).forEach(function(t){t.modules.forEach(function(t){return n.addModule(t)}),t.entryComponents.forEach(function(t){return n.addEntryComponent(t)});var e=new Set;t.providers.forEach(function(t){var i=T(t.provider.token),o=r.get(i);o||(o=new Set,r.set(i,o));var s=t.module.reference;(e.has(i)||!o.has(s))&&(o.add(s),e.add(i),n.addProvider(t.provider,t.module))})}),e.forEach(function(t){t.exportedDirectives.forEach(function(t){return n.addExportedDirective(t)}),t.exportedPipes.forEach(function(t){return n.addExportedPipe(t)})}),t.forEach(function(t){t.exportedDirectives.forEach(function(t){return n.addDirective(t)}),t.exportedPipes.forEach(function(t){return n.addPipe(t)})}),n},t.prototype._getIdentifierMetadata=function(t){return t=e.resolveForwardRef(t),{reference:t}},t.prototype.isInjectable=function(t){var n=this._reflector.annotations(t);return n.some(function(t){return t.constructor===e.Injectable})},t.prototype.getInjectableSummary=function(t){return{summaryKind:Fi.Injectable,type:this._getTypeMetadata(t,null,!1)}},t.prototype._getInjectableMetadata=function(t,e){void 0===e&&(e=null);var n=this._loadSummary(t,Fi.Injectable);return n?n.type:this._getTypeMetadata(t,e)},t.prototype._getTypeMetadata=function(t,n,r){void 0===n&&(n=null),void 0===r&&(r=!0);var i=this._getIdentifierMetadata(t);return{reference:i.reference,diDeps:this._getDependenciesMetadata(i.reference,n,r),lifecycleHooks:e.ɵLIFECYCLE_HOOKS_VALUES.filter(function(t){return Xe(t,i.reference)})}},t.prototype._getFactoryMetadata=function(t,n){return void 0===n&&(n=null),t=e.resolveForwardRef(t),{reference:t,diDeps:this._getDependenciesMetadata(t,n)}},t.prototype.getPipeMetadata=function(t){var e=this._pipeCache.get(t);return e||this._reportError(h("Illegal state: getPipeMetadata can only be called after loadNgModuleDirectiveAndPipeMetadata for a module that declares it. Pipe "+sn(t)+"."),t),e},t.prototype.getPipeSummary=function(t){var e=this._loadSummary(t,Fi.Pipe);return e||this._reportError(h("Illegal state: Could not load the summary for pipe "+sn(t)+"."),t),e},t.prototype.getOrLoadPipeMetadata=function(t){var e=this._pipeCache.get(t);return e||(e=this._loadPipeMetadata(t)),e},t.prototype._loadPipeMetadata=function(t){t=e.resolveForwardRef(t);var n=this._pipeResolver.resolve(t),r=new Hi({type:this._getTypeMetadata(t),name:n.name,pure:n.pure});return this._pipeCache.set(t,r),this._summaryCache.set(t,r.toSummary()),r},t.prototype._getDependenciesMetadata=function(t,n,r){var i=this;void 0===r&&(r=!0);var o=!1,s=n||this._reflector.parameters(t)||[],a=s.map(function(t){var n=!1,r=!1,s=!1,a=!1,u=!1,c=null;return Array.isArray(t)?t.forEach(function(t){t instanceof e.Host?r=!0:t instanceof e.Self?s=!0:t instanceof e.SkipSelf?a=!0:t instanceof e.Optional?u=!0:t instanceof e.Attribute?(n=!0,c=t.attributeName):t instanceof e.Inject?c=t.token:t instanceof e.InjectionToken?c=t:nn(t)&&null==c&&(c=t)}):c=t,null==c?(o=!0,null):{isAttribute:n,isHost:r,isSelf:s,isSkipSelf:a,isOptional:u,token:i._getTokenMetadata(c)}});if(o){var u=a.map(function(t){return t?sn(t.token):"?"}).join(", "),c="Can't resolve all parameters for "+sn(t)+": ("+u+").";r?this._reportError(h(c),t):this._console.warn("Warning: "+c+" This will become an error in Angular v5.x")}return a},t.prototype._getTokenMetadata=function(t){t=e.resolveForwardRef(t);var n;return n="string"==typeof t?{value:t}:{identifier:{reference:t}}},t.prototype._getProvidersMetadata=function(t,n,r,i,o){var s=this;return void 0===i&&(i=[]),t.forEach(function(a,u){if(Array.isArray(a))s._getProvidersMetadata(a,n,r,i);else{a=e.resolveForwardRef(a);var c=void 0;if(a&&"object"==typeof a&&a.hasOwnProperty("provide"))s._validateProvider(a),c=new Wi(a.provide,a);else if(nn(a))c=new Wi(a,{useClass:a});else if(void 0===a)s._reportError(h("Encountered undefined provider! Usually this means you have a circular dependencies (might be caused by using 'barrel' index.ts files."));else{var l=t.reduce(function(t,e,n){return u>n?t.push(""+sn(e)):n==u?t.push("?"+sn(e)+"?"):n==u+1&&t.push("..."),t},[]).join(", ");s._reportError(h("Invalid "+(r?r:"provider")+" - only instances of Provider and Type are allowed, got: ["+l+"]"),o)}c.token===ae(wu.ANALYZE_FOR_ENTRY_COMPONENTS)?n.push.apply(n,s._getEntryComponentsFromProvider(c,o)):i.push(s.getProviderMetadata(c))}}),i},t.prototype._validateProvider=function(t){t.hasOwnProperty("useClass")&&null==t.useClass&&this._reportError(h("Invalid provider for "+sn(t.provide)+". useClass cannot be "+t.useClass+".\n Usually it happens when:\n 1. There's a circular dependency (might be caused by using index.ts (barrel) files).\n 2. Class was used before it was declared. Use forwardRef in this case."))},t.prototype._getEntryComponentsFromProvider=function(t,e){var n=this,r=[],i=[];return t.useFactory||t.useExisting||t.useClass?(this._reportError(h("The ANALYZE_FOR_ENTRY_COMPONENTS token only supports useValue!"),e),[]):t.multi?(on(t.useValue,i),i.forEach(function(t){var e=n._getEntryComponentMetadata(t.reference,!1);e&&r.push(e)}),r):(this._reportError(h("The ANALYZE_FOR_ENTRY_COMPONENTS token only supports 'multi = true'!"),e), -[])},t.prototype._getEntryComponentMetadata=function(t,e){void 0===e&&(e=!0);var n=this.getNonNormalizedDirectiveMetadata(t);if(n&&n.metadata.isComponent)return{componentType:t,componentFactory:n.metadata.componentFactory};var r=this._loadSummary(t,Fi.Directive);if(r&&r.isComponent)return{componentType:t,componentFactory:r.componentFactory};if(e)throw h(t.name+" cannot be used as an entry component.")},t.prototype.getProviderMetadata=function(t){var e,n=null,r=null,i=this._getTokenMetadata(t.token);return t.useClass?(n=this._getInjectableMetadata(t.useClass,t.dependencies),e=n.diDeps,t.token===t.useClass&&(i={identifier:n})):t.useFactory&&(r=this._getFactoryMetadata(t.useFactory,t.dependencies),e=r.diDeps),{token:i,useClass:n,useValue:t.useValue,useFactory:r,useExisting:t.useExisting?this._getTokenMetadata(t.useExisting):null,deps:e,multi:t.multi}},t.prototype._getQueriesMetadata=function(t,e,n){var r=this,i=[];return Object.keys(t).forEach(function(o){var s=t[o];s.isViewQuery===e&&i.push(r._getQueryMetadata(s,o,n))}),i},t.prototype._queryVarBindings=function(t){return t.split(/\s*,\s*/)},t.prototype._getQueryMetadata=function(t,e,n){var r,i=this;return"string"==typeof t.selector?r=this._queryVarBindings(t.selector).map(function(t){return i._getTokenMetadata(t)}):(t.selector||this._reportError(h("Can't construct a query for the property \""+e+'" of "'+sn(n)+"\" since the query selector wasn't defined."),n),r=[this._getTokenMetadata(t.selector)]),{selectors:r,first:t.first,descendants:t.descendants,propertyName:e,read:t.read?this._getTokenMetadata(t.read):null}},t.prototype._reportError=function(t,e,n){if(!this._errorCollector)throw t;this._errorCollector(t,e),n&&this._errorCollector(t,n)},t}();Kc.decorators=[{type:V}],Kc.ctorParameters=function(){return[{type:Gi},{type:qc},{type:Uc},{type:zc},{type:Wc},{type:Mu},{type:jc},{type:e.ɵConsole},{type:ui,decorators:[{type:e.Optional}]},{type:e.ɵReflectorReader},{type:void 0,decorators:[{type:e.Optional},{type:e.Inject,args:[Gc]}]}]};var Qc=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return zr(e,t),e.prototype.visitOther=function(t,e){e.push({reference:t})},e}(wi),Xc={};Xc.Const=0,Xc[Xc.Const]="Const";var $c=function(){function t(t){void 0===t&&(t=null),this.modifiers=t,t||(this.modifiers=[])}return t.prototype.visitType=function(){},t.prototype.hasModifier=function(t){return-1!==this.modifiers.indexOf(t)},t}(),Zc={};Zc.Dynamic=0,Zc.Bool=1,Zc.String=2,Zc.Int=3,Zc.Number=4,Zc.Function=5,Zc.Inferred=6,Zc[Zc.Dynamic]="Dynamic",Zc[Zc.Bool]="Bool",Zc[Zc.String]="String",Zc[Zc.Int]="Int",Zc[Zc.Number]="Number",Zc[Zc.Function]="Function",Zc[Zc.Inferred]="Inferred";var Yc=function(t){function e(e,n){void 0===n&&(n=null);var r=t.call(this,n)||this;return r.name=e,r}return zr(e,t),e.prototype.visitType=function(t,e){return t.visitBuiltintType(this,e)},e}($c),Jc=function(t){function e(e,n){void 0===n&&(n=null);var r=t.call(this,n)||this;return r.value=e,r}return zr(e,t),e.prototype.visitType=function(t,e){return t.visitExpressionType(this,e)},e}($c),tl=function(t){function e(e,n){void 0===n&&(n=null);var r=t.call(this,n)||this;return r.of=e,r}return zr(e,t),e.prototype.visitType=function(t,e){return t.visitArrayType(this,e)},e}($c),el=function(t){function e(e,n){void 0===n&&(n=null);var r=t.call(this,n)||this;return r.valueType=e,r}return zr(e,t),e.prototype.visitType=function(t,e){return t.visitMapType(this,e)},e}($c),nl=new Yc(Zc.Dynamic),rl=new Yc(Zc.Inferred),il=new Yc(Zc.Bool),ol=(new Yc(Zc.Int),new Yc(Zc.Number),new Yc(Zc.String),new Yc(Zc.Function),{});ol.Equals=0,ol.NotEquals=1,ol.Identical=2,ol.NotIdentical=3,ol.Minus=4,ol.Plus=5,ol.Divide=6,ol.Multiply=7,ol.Modulo=8,ol.And=9,ol.Or=10,ol.Lower=11,ol.LowerEquals=12,ol.Bigger=13,ol.BiggerEquals=14,ol[ol.Equals]="Equals",ol[ol.NotEquals]="NotEquals",ol[ol.Identical]="Identical",ol[ol.NotIdentical]="NotIdentical",ol[ol.Minus]="Minus",ol[ol.Plus]="Plus",ol[ol.Divide]="Divide",ol[ol.Multiply]="Multiply",ol[ol.Modulo]="Modulo",ol[ol.And]="And",ol[ol.Or]="Or",ol[ol.Lower]="Lower",ol[ol.LowerEquals]="LowerEquals",ol[ol.Bigger]="Bigger",ol[ol.BiggerEquals]="BiggerEquals";var sl=function(){function t(t,e){this.type=t,this.sourceSpan=e}return t.prototype.visitExpression=function(){},t.prototype.prop=function(t,e){return new Sl(this,t,null,e)},t.prototype.key=function(t,e,n){return void 0===e&&(e=null),new xl(this,t,e,n)},t.prototype.callMethod=function(t,e,n){return new fl(this,t,e,null,n)},t.prototype.callFn=function(t,e){return new dl(this,t,null,e)},t.prototype.instantiate=function(t,e,n){return void 0===e&&(e=null),new vl(this,t,e,n)},t.prototype.conditional=function(t,e,n){return void 0===e&&(e=null),new gl(this,t,e,null,n)},t.prototype.equals=function(t,e){return new Cl(ol.Equals,this,t,null,e)},t.prototype.notEquals=function(t,e){return new Cl(ol.NotEquals,this,t,null,e)},t.prototype.identical=function(t,e){return new Cl(ol.Identical,this,t,null,e)},t.prototype.notIdentical=function(t,e){return new Cl(ol.NotIdentical,this,t,null,e)},t.prototype.minus=function(t,e){return new Cl(ol.Minus,this,t,null,e)},t.prototype.plus=function(t,e){return new Cl(ol.Plus,this,t,null,e)},t.prototype.divide=function(t,e){return new Cl(ol.Divide,this,t,null,e)},t.prototype.multiply=function(t,e){return new Cl(ol.Multiply,this,t,null,e)},t.prototype.modulo=function(t,e){return new Cl(ol.Modulo,this,t,null,e)},t.prototype.and=function(t,e){return new Cl(ol.And,this,t,null,e)},t.prototype.or=function(t,e){return new Cl(ol.Or,this,t,null,e)},t.prototype.lower=function(t,e){return new Cl(ol.Lower,this,t,null,e)},t.prototype.lowerEquals=function(t,e){return new Cl(ol.LowerEquals,this,t,null,e)},t.prototype.bigger=function(t,e){return new Cl(ol.Bigger,this,t,null,e)},t.prototype.biggerEquals=function(t,e){return new Cl(ol.BiggerEquals,this,t,null,e)},t.prototype.isBlank=function(t){return this.equals(Il,t)},t.prototype.cast=function(t,e){return new bl(this,t,e)},t.prototype.toStmt=function(){return new Fl(this)},t}(),al={};al.This=0,al.Super=1,al.CatchError=2,al.CatchStack=3,al[al.This]="This",al[al.Super]="Super",al[al.CatchError]="CatchError",al[al.CatchStack]="CatchStack";var ul=function(t){function e(e,n,r){void 0===n&&(n=null);var i=t.call(this,n,r)||this;return"string"==typeof e?(i.name=e,i.builtin=null):(i.name=null,i.builtin=e),i}return zr(e,t),e.prototype.visitExpression=function(t,e){return t.visitReadVarExpr(this,e)},e.prototype.set=function(t){return new cl(this.name,t,null,this.sourceSpan)},e}(sl),cl=function(t){function e(e,n,r,i){void 0===r&&(r=null);var o=t.call(this,r||n.type,i)||this;return o.name=e,o.value=n,o}return zr(e,t),e.prototype.visitExpression=function(t,e){return t.visitWriteVarExpr(this,e)},e.prototype.toDeclStmt=function(t,e){return void 0===t&&(t=null),void 0===e&&(e=null),new Ll(this.name,this.value,t,e,this.sourceSpan)},e}(sl),ll=function(t){function e(e,n,r,i,o){void 0===i&&(i=null);var s=t.call(this,i||r.type,o)||this;return s.receiver=e,s.index=n,s.value=r,s}return zr(e,t),e.prototype.visitExpression=function(t,e){return t.visitWriteKeyExpr(this,e)},e}(sl),pl=function(t){function e(e,n,r,i,o){void 0===i&&(i=null);var s=t.call(this,i||r.type,o)||this;return s.receiver=e,s.name=n,s.value=r,s}return zr(e,t),e.prototype.visitExpression=function(t,e){return t.visitWritePropExpr(this,e)},e}(sl),hl={};hl.ConcatArray=0,hl.SubscribeObservable=1,hl.Bind=2,hl[hl.ConcatArray]="ConcatArray",hl[hl.SubscribeObservable]="SubscribeObservable",hl[hl.Bind]="Bind";var fl=function(t){function e(e,n,r,i,o){void 0===i&&(i=null);var s=t.call(this,i,o)||this;return s.receiver=e,s.args=r,"string"==typeof n?(s.name=n,s.builtin=null):(s.name=null,s.builtin=n),s}return zr(e,t),e.prototype.visitExpression=function(t,e){return t.visitInvokeMethodExpr(this,e)},e}(sl),dl=function(t){function e(e,n,r,i){void 0===r&&(r=null);var o=t.call(this,r,i)||this;return o.fn=e,o.args=n,o}return zr(e,t),e.prototype.visitExpression=function(t,e){return t.visitInvokeFunctionExpr(this,e)},e}(sl),vl=function(t){function e(e,n,r,i){var o=t.call(this,r,i)||this;return o.classExpr=e,o.args=n,o}return zr(e,t),e.prototype.visitExpression=function(t,e){return t.visitInstantiateExpr(this,e)},e}(sl),ml=function(t){function e(e,n,r){void 0===n&&(n=null);var i=t.call(this,n,r)||this;return i.value=e,i}return zr(e,t),e.prototype.visitExpression=function(t,e){return t.visitLiteralExpr(this,e)},e}(sl),yl=function(t){function e(e,n,r,i){void 0===n&&(n=null),void 0===r&&(r=null);var o=t.call(this,n,i)||this;return o.value=e,o.typeParams=r,o}return zr(e,t),e.prototype.visitExpression=function(t,e){return t.visitExternalExpr(this,e)},e}(sl),gl=function(t){function e(e,n,r,i,o){void 0===r&&(r=null),void 0===i&&(i=null);var s=t.call(this,i||n.type,o)||this;return s.condition=e,s.falseCase=r,s.trueCase=n,s}return zr(e,t),e.prototype.visitExpression=function(t,e){return t.visitConditionalExpr(this,e)},e}(sl),_l=function(t){function e(e,n){var r=t.call(this,il,n)||this;return r.condition=e,r}return zr(e,t),e.prototype.visitExpression=function(t,e){return t.visitNotExpr(this,e)},e}(sl),bl=function(t){function e(e,n,r){var i=t.call(this,n,r)||this;return i.value=e,i}return zr(e,t),e.prototype.visitExpression=function(t,e){return t.visitCastExpr(this,e)},e}(sl),wl=function(){function t(t,e){void 0===e&&(e=null),this.name=t,this.type=e}return t}(),El=function(t){function e(e,n,r,i){void 0===r&&(r=null);var o=t.call(this,r,i)||this;return o.params=e,o.statements=n,o}return zr(e,t),e.prototype.visitExpression=function(t,e){return t.visitFunctionExpr(this,e)},e.prototype.toDeclStmt=function(t,e){return void 0===e&&(e=null),new jl(t,this.params,this.statements,this.type,e,this.sourceSpan)},e}(sl),Cl=function(t){function e(e,n,r,i,o){void 0===i&&(i=null);var s=t.call(this,i||n.type,o)||this;return s.operator=e,s.rhs=r,s.lhs=n,s}return zr(e,t),e.prototype.visitExpression=function(t,e){return t.visitBinaryOperatorExpr(this,e)},e}(sl),Sl=function(t){function e(e,n,r,i){void 0===r&&(r=null);var o=t.call(this,r,i)||this;return o.receiver=e,o.name=n,o}return zr(e,t),e.prototype.visitExpression=function(t,e){return t.visitReadPropExpr(this,e)},e.prototype.set=function(t){return new pl(this.receiver,this.name,t,null,this.sourceSpan)},e}(sl),xl=function(t){function e(e,n,r,i){void 0===r&&(r=null);var o=t.call(this,r,i)||this;return o.receiver=e,o.index=n,o}return zr(e,t),e.prototype.visitExpression=function(t,e){return t.visitReadKeyExpr(this,e)},e.prototype.set=function(t){return new ll(this.receiver,this.index,t,null,this.sourceSpan)},e}(sl),Tl=function(t){function e(e,n,r){void 0===n&&(n=null);var i=t.call(this,n,r)||this;return i.entries=e,i}return zr(e,t),e.prototype.visitExpression=function(t,e){return t.visitLiteralArrayExpr(this,e)},e}(sl),Pl=function(){function t(t,e,n){void 0===n&&(n=!1),this.key=t,this.value=e,this.quoted=n}return t}(),Al=function(t){function e(e,n,r){void 0===n&&(n=null);var i=t.call(this,n,r)||this;return i.entries=e,i.valueType=null,n&&(i.valueType=n.valueType),i}return zr(e,t),e.prototype.visitExpression=function(t,e){return t.visitLiteralMapExpr(this,e)},e}(sl),Ol=function(t){function e(e,n){var r=t.call(this,e[e.length-1].type,n)||this;return r.parts=e,r}return zr(e,t),e.prototype.visitExpression=function(t,e){return t.visitCommaExpr(this,e)},e}(sl),Ml=new ul(al.This),Rl=new ul(al.Super),kl=(new ul(al.CatchError),new ul(al.CatchStack),new ml(null,null)),Il=new ml(null,rl),Nl={};Nl.Final=0,Nl.Private=1,Nl[Nl.Final]="Final",Nl[Nl.Private]="Private";var Dl=function(){function t(t,e){void 0===t&&(t=null),this.modifiers=t,this.sourceSpan=e,t||(this.modifiers=[])}return t.prototype.visitStatement=function(){},t.prototype.hasModifier=function(t){return-1!==this.modifiers.indexOf(t)},t}(),Ll=function(t){function e(e,n,r,i,o){void 0===r&&(r=null),void 0===i&&(i=null);var s=t.call(this,i,o)||this;return s.name=e,s.value=n,s.type=r||n.type,s}return zr(e,t),e.prototype.visitStatement=function(t,e){return t.visitDeclareVarStmt(this,e)},e}(Dl),jl=function(t){function e(e,n,r,i,o,s){void 0===i&&(i=null),void 0===o&&(o=null);var a=t.call(this,o,s)||this;return a.name=e,a.params=n,a.statements=r,a.type=i,a}return zr(e,t),e.prototype.visitStatement=function(t,e){return t.visitDeclareFunctionStmt(this,e)},e}(Dl),Fl=function(t){function e(e,n){var r=t.call(this,null,n)||this;return r.expr=e,r}return zr(e,t),e.prototype.visitStatement=function(t,e){return t.visitExpressionStmt(this,e)},e}(Dl),Vl=function(t){function e(e,n){var r=t.call(this,null,n)||this;return r.value=e,r}return zr(e,t),e.prototype.visitStatement=function(t,e){return t.visitReturnStmt(this,e)},e}(Dl),Ul=function(){function t(t,e){void 0===t&&(t=null),this.type=t,this.modifiers=e,e||(this.modifiers=[])}return t.prototype.hasModifier=function(t){return-1!==this.modifiers.indexOf(t)},t}(),Bl=function(t){function e(e,n,r){void 0===n&&(n=null),void 0===r&&(r=null);var i=t.call(this,n,r)||this;return i.name=e,i}return zr(e,t),e}(Ul),Hl=function(t){function e(e,n,r,i,o){void 0===i&&(i=null),void 0===o&&(o=null);var s=t.call(this,i,o)||this;return s.name=e,s.params=n,s.body=r,s}return zr(e,t),e}(Ul),ql=function(t){function e(e,n,r,i){void 0===r&&(r=null),void 0===i&&(i=null);var o=t.call(this,r,i)||this;return o.name=e,o.body=n,o}return zr(e,t),e}(Ul),zl=function(t){function e(e,n,r,i,o,s,a,u){void 0===a&&(a=null);var c=t.call(this,a,u)||this;return c.name=e,c.parent=n,c.fields=r,c.getters=i,c.constructorMethod=o,c.methods=s,c}return zr(e,t),e.prototype.visitStatement=function(t,e){return t.visitDeclareClassStmt(this,e)},e}(Dl),Wl=function(t){function e(e,n,r,i){void 0===r&&(r=[]);var o=t.call(this,null,i)||this;return o.condition=e,o.trueCase=n,o.falseCase=r,o}return zr(e,t),e.prototype.visitStatement=function(t,e){return t.visitIfStmt(this,e)},e}(Dl),Gl=function(t){function e(e,n,r){var i=t.call(this,null,r)||this;return i.bodyStmts=e,i.catchStmts=n,i}return zr(e,t),e.prototype.visitStatement=function(t,e){return t.visitTryCatchStmt(this,e)},e}(Dl),Kl=function(t){function e(e,n){var r=t.call(this,null,n)||this;return r.error=e,r}return zr(e,t),e.prototype.visitStatement=function(t,e){return t.visitThrowStmt(this,e)},e}(Dl),Ql=function(){function t(){}return t.prototype.transformExpr=function(t){return t},t.prototype.transformStmt=function(t){return t},t.prototype.visitReadVarExpr=function(t,e){return this.transformExpr(t,e)},t.prototype.visitWriteVarExpr=function(t,e){return this.transformExpr(new cl(t.name,t.value.visitExpression(this,e),t.type,t.sourceSpan),e)},t.prototype.visitWriteKeyExpr=function(t,e){return this.transformExpr(new ll(t.receiver.visitExpression(this,e),t.index.visitExpression(this,e),t.value.visitExpression(this,e),t.type,t.sourceSpan),e)},t.prototype.visitWritePropExpr=function(t,e){return this.transformExpr(new pl(t.receiver.visitExpression(this,e),t.name,t.value.visitExpression(this,e),t.type,t.sourceSpan),e)},t.prototype.visitInvokeMethodExpr=function(t,e){var n=t.builtin||t.name;return this.transformExpr(new fl(t.receiver.visitExpression(this,e),n,this.visitAllExpressions(t.args,e),t.type,t.sourceSpan),e)},t.prototype.visitInvokeFunctionExpr=function(t,e){return this.transformExpr(new dl(t.fn.visitExpression(this,e),this.visitAllExpressions(t.args,e),t.type,t.sourceSpan),e)},t.prototype.visitInstantiateExpr=function(t,e){return this.transformExpr(new vl(t.classExpr.visitExpression(this,e),this.visitAllExpressions(t.args,e),t.type,t.sourceSpan),e)},t.prototype.visitLiteralExpr=function(t,e){return this.transformExpr(t,e)},t.prototype.visitExternalExpr=function(t,e){return this.transformExpr(t,e)},t.prototype.visitConditionalExpr=function(t,e){return this.transformExpr(new gl(t.condition.visitExpression(this,e),t.trueCase.visitExpression(this,e),t.falseCase.visitExpression(this,e),t.type,t.sourceSpan),e)},t.prototype.visitNotExpr=function(t,e){return this.transformExpr(new _l(t.condition.visitExpression(this,e),t.sourceSpan),e)},t.prototype.visitCastExpr=function(t,e){return this.transformExpr(new bl(t.value.visitExpression(this,e),t.type,t.sourceSpan),e)},t.prototype.visitFunctionExpr=function(t,e){return this.transformExpr(new El(t.params,this.visitAllStatements(t.statements,e),t.type,t.sourceSpan),e)},t.prototype.visitBinaryOperatorExpr=function(t,e){return this.transformExpr(new Cl(t.operator,t.lhs.visitExpression(this,e),t.rhs.visitExpression(this,e),t.type,t.sourceSpan),e)},t.prototype.visitReadPropExpr=function(t,e){return this.transformExpr(new Sl(t.receiver.visitExpression(this,e),t.name,t.type,t.sourceSpan),e)},t.prototype.visitReadKeyExpr=function(t,e){return this.transformExpr(new xl(t.receiver.visitExpression(this,e),t.index.visitExpression(this,e),t.type,t.sourceSpan),e)},t.prototype.visitLiteralArrayExpr=function(t,e){return this.transformExpr(new Tl(this.visitAllExpressions(t.entries,e),t.type,t.sourceSpan),e)},t.prototype.visitLiteralMapExpr=function(t,e){var n=this,r=t.entries.map(function(t){return new Pl(t.key,t.value.visitExpression(n,e),t.quoted)}),i=new el(t.valueType);return this.transformExpr(new Al(r,i,t.sourceSpan),e)},t.prototype.visitCommaExpr=function(t,e){return this.transformExpr(new Ol(this.visitAllExpressions(t.parts,e),t.sourceSpan),e)},t.prototype.visitAllExpressions=function(t,e){var n=this;return t.map(function(t){return t.visitExpression(n,e)})},t.prototype.visitDeclareVarStmt=function(t,e){return this.transformStmt(new Ll(t.name,t.value.visitExpression(this,e),t.type,t.modifiers,t.sourceSpan),e)},t.prototype.visitDeclareFunctionStmt=function(t,e){return this.transformStmt(new jl(t.name,t.params,this.visitAllStatements(t.statements,e),t.type,t.modifiers,t.sourceSpan),e)},t.prototype.visitExpressionStmt=function(t,e){return this.transformStmt(new Fl(t.expr.visitExpression(this,e),t.sourceSpan),e)},t.prototype.visitReturnStmt=function(t,e){return this.transformStmt(new Vl(t.value.visitExpression(this,e),t.sourceSpan),e)},t.prototype.visitDeclareClassStmt=function(t,e){var n=this,r=t.parent.visitExpression(this,e),i=t.getters.map(function(t){return new ql(t.name,n.visitAllStatements(t.body,e),t.type,t.modifiers)}),o=t.constructorMethod&&new Hl(t.constructorMethod.name,t.constructorMethod.params,this.visitAllStatements(t.constructorMethod.body,e),t.constructorMethod.type,t.constructorMethod.modifiers),s=t.methods.map(function(t){return new Hl(t.name,t.params,n.visitAllStatements(t.body,e),t.type,t.modifiers)});return this.transformStmt(new zl(t.name,r,t.fields,i,o,s,t.modifiers,t.sourceSpan),e)},t.prototype.visitIfStmt=function(t,e){return this.transformStmt(new Wl(t.condition.visitExpression(this,e),this.visitAllStatements(t.trueCase,e),this.visitAllStatements(t.falseCase,e),t.sourceSpan),e)},t.prototype.visitTryCatchStmt=function(t,e){return this.transformStmt(new Gl(this.visitAllStatements(t.bodyStmts,e),this.visitAllStatements(t.catchStmts,e),t.sourceSpan),e)},t.prototype.visitThrowStmt=function(t,e){return this.transformStmt(new Kl(t.error.visitExpression(this,e),t.sourceSpan),e)},t.prototype.visitCommentStmt=function(t,e){return this.transformStmt(t,e)},t.prototype.visitAllStatements=function(t,e){var n=this;return t.map(function(t){return t.visitStatement(n,e)})},t}(),Xl=function(){function t(){}return t.prototype.visitReadVarExpr=function(t){return t},t.prototype.visitWriteVarExpr=function(t,e){return t.value.visitExpression(this,e),t},t.prototype.visitWriteKeyExpr=function(t,e){return t.receiver.visitExpression(this,e),t.index.visitExpression(this,e),t.value.visitExpression(this,e),t},t.prototype.visitWritePropExpr=function(t,e){return t.receiver.visitExpression(this,e),t.value.visitExpression(this,e),t},t.prototype.visitInvokeMethodExpr=function(t,e){return t.receiver.visitExpression(this,e),this.visitAllExpressions(t.args,e),t},t.prototype.visitInvokeFunctionExpr=function(t,e){return t.fn.visitExpression(this,e),this.visitAllExpressions(t.args,e),t},t.prototype.visitInstantiateExpr=function(t,e){return t.classExpr.visitExpression(this,e),this.visitAllExpressions(t.args,e),t},t.prototype.visitLiteralExpr=function(t){return t},t.prototype.visitExternalExpr=function(t){return t},t.prototype.visitConditionalExpr=function(t,e){return t.condition.visitExpression(this,e),t.trueCase.visitExpression(this,e),t.falseCase.visitExpression(this,e),t},t.prototype.visitNotExpr=function(t,e){return t.condition.visitExpression(this,e),t},t.prototype.visitCastExpr=function(t,e){return t.value.visitExpression(this,e),t},t.prototype.visitFunctionExpr=function(t,e){return this.visitAllStatements(t.statements,e),t},t.prototype.visitBinaryOperatorExpr=function(t,e){return t.lhs.visitExpression(this,e),t.rhs.visitExpression(this,e),t},t.prototype.visitReadPropExpr=function(t,e){return t.receiver.visitExpression(this,e),t},t.prototype.visitReadKeyExpr=function(t,e){return t.receiver.visitExpression(this,e),t.index.visitExpression(this,e),t},t.prototype.visitLiteralArrayExpr=function(t,e){return this.visitAllExpressions(t.entries,e),t},t.prototype.visitLiteralMapExpr=function(t,e){var n=this;return t.entries.forEach(function(t){return t.value.visitExpression(n,e)}),t},t.prototype.visitCommaExpr=function(t,e){this.visitAllExpressions(t.parts,e)},t.prototype.visitAllExpressions=function(t,e){var n=this;t.forEach(function(t){return t.visitExpression(n,e)})},t.prototype.visitDeclareVarStmt=function(t,e){return t.value.visitExpression(this,e),t},t.prototype.visitDeclareFunctionStmt=function(t,e){return this.visitAllStatements(t.statements,e),t},t.prototype.visitExpressionStmt=function(t,e){return t.expr.visitExpression(this,e),t},t.prototype.visitReturnStmt=function(t,e){return t.value.visitExpression(this,e),t},t.prototype.visitDeclareClassStmt=function(t,e){var n=this;return t.parent.visitExpression(this,e),t.getters.forEach(function(t){return n.visitAllStatements(t.body,e)}),t.constructorMethod&&this.visitAllStatements(t.constructorMethod.body,e),t.methods.forEach(function(t){return n.visitAllStatements(t.body,e)}),t},t.prototype.visitIfStmt=function(t,e){return t.condition.visitExpression(this,e),this.visitAllStatements(t.trueCase,e),this.visitAllStatements(t.falseCase,e),t},t.prototype.visitTryCatchStmt=function(t,e){return this.visitAllStatements(t.bodyStmts,e),this.visitAllStatements(t.catchStmts,e),t},t.prototype.visitThrowStmt=function(t,e){return t.error.visitExpression(this,e),t},t.prototype.visitCommentStmt=function(t){return t},t.prototype.visitAllStatements=function(t,e){var n=this;t.forEach(function(t){return t.visitStatement(n,e)})},t}(),$l=function(t){function e(){var e=t.apply(this,arguments)||this;return e.varNames=new Set,e}return zr(e,t),e.prototype.visitDeclareFunctionStmt=function(t){return t},e.prototype.visitDeclareClassStmt=function(t){return t},e.prototype.visitReadVarExpr=function(t){return this.varNames.add(t.name),null},e}(Xl),Zl=function(t){function e(e){var n=t.call(this)||this;return n.sourceSpan=e,n}return zr(e,t),e.prototype._clone=function(t){var e=Object.create(t.constructor.prototype);for(var n in t)e[n]=t[n];return e},e.prototype.transformExpr=function(t){return t.sourceSpan||(t=this._clone(t),t.sourceSpan=this.sourceSpan),t},e.prototype.transformStmt=function(t){return t.sourceSpan||(t=this._clone(t),t.sourceSpan=this.sourceSpan),t},e}(Ql),Yl="$quoted$",Jl=function(){function t(){}return t.prototype.visitArray=function(t,e){var n=this;return vn(t.map(function(t){return p(t,n,null)}),e)},t.prototype.visitStringMap=function(t,e){var n=this,r=[],i=new Set(t&&t[Yl]);return Object.keys(t).forEach(function(e){r.push(new Pl(e,p(t[e],n,null),i.has(e)))}),new Al(r,e)},t.prototype.visitPrimitive=function(t,e){return _n(t,e)},t.prototype.visitOther=function(t){return t instanceof sl?t:hn({reference:t})},t}(),tp=function(){function t(t){this.compType=t}return t}(),ep=function(){function t(t,e,n){this.statements=t,this.ngModuleFactoryVar=e,this.dependencies=n}return t}(),np=function(){function t(){}return t.prototype.compile=function(t,e){var n=it("NgModule",t.type),r=[],i=[],o=t.transitiveModule.entryComponents.map(function(e){return t.bootstrapComponents.some(function(t){return t.reference===e.componentType})&&i.push({reference:e.componentFactory}),r.push(new tp(e.componentType)),{reference:e.componentFactory}}),s=new rp(t,o,i,n),a=new Ou(t,e,n);a.parse().forEach(function(t){return s.addProvider(t)});var u=s.build(),c=g(t.type)+"NgFactory",l=pn(c).set(hn(ue(wu.NgModuleFactory)).instantiate([pn(u.name),hn(t.type)],fn(ue(wu.NgModuleFactory),[fn(t.type)],[Xc.Const]))).toDeclStmt(null,[Nl.Final]),p=[u,l];if(t.id){var h=hn(ue(wu.RegisterModuleFactoryFn)).callFn([_n(t.id),pn(c)]).toStmt();p.push(h)}return new ep(p,c,r)},t}();np.decorators=[{type:V}],np.ctorParameters=function(){return[]};var rp=function(){function t(t,e,n,r){this._ngModuleMeta=t,this._entryComponentFactories=e,this._bootstrapComponentFactories=n,this._sourceSpan=r,this.fields=[],this.getters=[],this.methods=[],this.ctorStmts=[],this._lazyProps=new Map,this._tokens=[],this._instances=new Map,this._createStmts=[],this._destroyStmts=[]}return t.prototype.addProvider=function(t){var n=this,r=t.providers.map(function(t){return n._getProviderValue(t)}),i="_"+x(t.token)+"_"+this._instances.size,o=this._createProviderProperty(i,t,r,t.multiProvider,t.eager);if(-1!==t.lifecycleHooks.indexOf(e.ɵLifecycleHooks.OnDestroy)){var s=o.callMethod("ngOnDestroy",[]);t.eager||(s=this._lazyProps.get(o.name).and(s)),this._destroyStmts.push(s.toStmt())}this._tokens.push(t.token),this._instances.set(T(t.token),o)},t.prototype.build=function(){var t=this,e=this._tokens.map(function(e){var n=t._instances.get(T(e));return new Wl(op.token.identical(Cn(e)),[new Vl(n)])}),n=[new Hl("createInternal",[],this._createStmts.concat(new Vl(this._instances.get(this._ngModuleMeta.type.reference))),fn(this._ngModuleMeta.type)),new Hl("getInternal",[new wl(op.token.name,nl),new wl(op.notFoundResult.name,nl)],e.concat([new Vl(op.notFoundResult)]),nl),new Hl("destroyInternal",[],this._destroyStmts)],r=[pn(ip.parent.name),vn(this._entryComponentFactories.map(function(t){return hn(t)})),vn(this._bootstrapComponentFactories.map(function(t){return hn(t)}))],i=g(this._ngModuleMeta.type)+"Injector";return bn({name:i,ctorParams:[new wl(ip.parent.name,fn(ue(wu.Injector)))],parent:hn(ue(wu.NgModuleInjector),[fn(this._ngModuleMeta.type)]),parentArgs:r,builders:[{methods:n},this]})},t.prototype._getProviderValue=function(t){var e,n=this;if(null!=t.useExisting)e=this._getDependency({token:t.useExisting});else if(null!=t.useFactory){var r=t.deps||t.useFactory.diDeps,i=r.map(function(t){return n._getDependency(t)});e=hn(t.useFactory).callFn(i)}else if(null!=t.useClass){var r=t.deps||t.useClass.diDeps,i=r.map(function(t){return n._getDependency(t)});e=hn(t.useClass).instantiate(i,fn(t.useClass))}else e=En(t.useValue);return e},t.prototype._createProviderProperty=function(t,e,n,r,i){var o,s;if(r?(o=vn(n),s=new tl(nl)):(o=n[0],s=n[0].type),s||(s=nl),i)this.fields.push(new Bl(t,s)),this._createStmts.push(Ml.prop(t).set(o).toStmt());else{var a=Ml.prop("_"+t);this.fields.push(new Bl(a.name,s));var u=[new Wl(a.isBlank(),[a.set(o).toStmt()]),new Vl(a)];this.getters.push(new ql(t,u,s)),this._lazyProps.set(t,a)}return Ml.prop(t)},t.prototype._getDependency=function(t){var e=null;if(t.isValue&&(e=_n(t.value)),t.isSkipSelf||(t.token&&(T(t.token)===ae(wu.Injector)?e=Ml:T(t.token)===ae(wu.ComponentFactoryResolver)&&(e=Ml.prop("componentFactoryResolver"))),e||(e=this._instances.get(T(t.token)))),!e){var n=[Cn(t.token)];t.isOptional&&n.push(kl),e=ip.parent.callMethod("get",n)}return e},t}(),ip=function(){function t(){}return t}();ip.parent=Ml.prop("parent");var op=function(){function t(){}return t}();op.token=pn("token"),op.notFoundResult=pn("notFoundResult");var sp=3,ap="# sourceMappingURL=data:application/json;base64,",up=function(){function t(t){void 0===t&&(t=null),this.file=t,this.sourcesContent=new Map,this.lines=[],this.lastCol0=0,this.hasMappings=!1}return t.prototype.addSource=function(t,e){return void 0===e&&(e=null),this.sourcesContent.has(t)||this.sourcesContent.set(t,e),this},t.prototype.addLine=function(){return this.lines.push([]),this.lastCol0=0,this},t.prototype.addMapping=function(t,e,n,r){if(!this.currentLine)throw new Error("A line must be added before mappings can be added");if(null!=e&&!this.sourcesContent.has(e))throw new Error('Unknown source file "'+e+'"');if(null==t)throw new Error("The column in the generated code must be provided");if(t<this.lastCol0)throw new Error("Mapping should be added in output order");if(e&&(null==n||null==r))throw new Error("The source location must be provided when a source url is provided");return this.hasMappings=!0,this.lastCol0=t,this.currentLine.push({col0:t,sourceUrl:e,sourceLine0:n,sourceCol0:r}),this},Object.defineProperty(t.prototype,"currentLine",{get:function(){return this.lines.slice(-1)[0]},enumerable:!0,configurable:!0}),t.prototype.toJSON=function(){var t=this;if(!this.hasMappings)return null;var e=new Map,n=[],r=[];Array.from(this.sourcesContent.keys()).forEach(function(i,o){e.set(i,o),n.push(i),r.push(t.sourcesContent.get(i)||null)});var i="",o=0,s=0,a=0,u=0;return this.lines.forEach(function(t){o=0,i+=t.map(function(t){var n=xn(t.col0-o);return o=t.col0,null!=t.sourceUrl&&(n+=xn(e.get(t.sourceUrl)-s),s=e.get(t.sourceUrl),n+=xn(t.sourceLine0-a),a=t.sourceLine0,n+=xn(t.sourceCol0-u),u=t.sourceCol0),n}).join(","),i+=";"}),i=i.slice(0,-1),{file:this.file||"",version:sp,sourceRoot:"",sources:n,sourcesContent:r,mappings:i}},t.prototype.toJsComment=function(){return this.hasMappings?"//"+ap+Sn(JSON.stringify(this,null,0)):""},t}(),cp="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",lp=/'|\\|\n|\r|\$/g,pp=/^[$A-Z_][0-9A-Z_$]*$/i,hp=" ",fp=pn("error"),dp=pn("stack"),vp=function(){function t(t){this.indent=t,this.parts=[],this.srcSpans=[]}return t}(),mp=function(){function t(t,e){this._exportedVars=t,this._indent=e,this._classes=[],this._lines=[new vp(e)]}return t.createRoot=function(e){return new t(e,0)},Object.defineProperty(t.prototype,"_currentLine",{get:function(){return this._lines[this._lines.length-1]},enumerable:!0,configurable:!0}),t.prototype.isExportedVar=function(t){return-1!==this._exportedVars.indexOf(t)},t.prototype.println=function(t,e){void 0===e&&(e=""),this.print(t,e,!0)},t.prototype.lineIsEmpty=function(){return 0===this._currentLine.parts.length},t.prototype.print=function(t,e,n){void 0===n&&(n=!1),e.length>0&&(this._currentLine.parts.push(e),this._currentLine.srcSpans.push(t&&t.sourceSpan||null)),n&&this._lines.push(new vp(this._indent))},t.prototype.removeEmptyLastLine=function(){this.lineIsEmpty()&&this._lines.pop()},t.prototype.incIndent=function(){this._indent++,this._currentLine.indent=this._indent},t.prototype.decIndent=function(){this._indent--,this._currentLine.indent=this._indent},t.prototype.pushClass=function(t){this._classes.push(t)},t.prototype.popClass=function(){return this._classes.pop()},Object.defineProperty(t.prototype,"currentClass",{get:function(){return this._classes.length>0?this._classes[this._classes.length-1]:null},enumerable:!0,configurable:!0}),t.prototype.toSource=function(){return this.sourceLines.map(function(t){return t.parts.length>0?An(t.indent)+t.parts.join(""):""}).join("\n")},t.prototype.toSourceMapGenerator=function(t,e,n){void 0===n&&(n=0);for(var r=new up(e),i=!1,o=function(){i||(r.addSource(t," ").addMapping(0,t,0,0),i=!0)},s=0;n>s;s++)r.addLine(),o();return this.sourceLines.forEach(function(t,e){r.addLine();for(var n=t.srcSpans,s=t.parts,a=t.indent*hp.length,u=0;u<n.length&&!n[u];)a+=s[u].length,u++;for(u<n.length&&0===e&&0===a?i=!0:o();u<n.length;){var c=n[u],l=c.start.file,p=c.start.line,h=c.start.col;for(r.addSource(l.url,l.content).addMapping(a,l.url,p,h),a+=s[u].length,u++;u<n.length&&(c===n[u]||!n[u]);)a+=s[u].length,u++}}),r},Object.defineProperty(t.prototype,"sourceLines",{get:function(){return this._lines.length&&0===this._lines[this._lines.length-1].parts.length?this._lines.slice(0,-1):this._lines; +}}else this._addError(t,"<"+pu+'> misses the "id" attribute');break;default:this._addError(t,"Unexpected tag")}},t.prototype.visitAttribute=function(){},t.prototype.visitText=function(){},t.prototype.visitComment=function(){},t.prototype.visitExpansion=function(){},t.prototype.visitExpansionCase=function(){},t.prototype._addError=function(t,e){this._errors.push(new ga(t.sourceSpan,e))},t}(),yu=function(){function t(){}return t.prototype.convert=function(t,e){var n=(new Oa).parse(t,e,!0);this._errors=n.errors;var r=this._errors.length>0||0==n.rootNodes.length?[]:it(this,n.rootNodes);return{i18nNodes:r,errors:this._errors}},t.prototype.visitText=function(t){return new ia(t.value,t.sourceSpan)},t.prototype.visitExpansion=function(t){var e={};return it(this,t.cases).forEach(function(n){e[n.value]=new sa(n.nodes,t.sourceSpan)}),new aa(t.switchValue,t.type,e,t.sourceSpan)},t.prototype.visitExpansionCase=function(t){return{value:t.value,nodes:it(this,t.expression)}},t.prototype.visitElement=function(t){if(t.name===hu){var e=t.attrs.find(function(t){return"name"===t.name});if(e)return new ca("",e.value,t.sourceSpan);this._addError(t,"<"+hu+'> misses the "name" attribute')}else this._addError(t,"Unexpected tag")},t.prototype.visitComment=function(){},t.prototype.visitAttribute=function(){},t.prototype._addError=function(t,e){this._errors.push(new ga(t.sourceSpan,e))},t}(),vu=function(t){function e(){return t.call(this,s)||this}return zr(e,t),e.prototype.parse=function(e,n,r,o){return void 0===r&&(r=!1),void 0===o&&(o=Ss),t.prototype.parse.call(this,e,n,r,o)},e}(na);vu.decorators=[{type:F}],vu.ctorParameters=function(){return[]};var mu=function(){function t(t,n,r,o,i,s){void 0===t&&(t={}),void 0===i&&(i=e.MissingTranslationStrategy.Warning),this._i18nNodesByMsgId=t,this.digest=r,this.mapperFactory=o,this._i18nToHtml=new gu(t,n,r,o,i,s)}return t.load=function(e,n,r,o,i){var s=r.load(e,n),a=s.locale,u=s.i18nNodesByMsgId,c=function(t){return r.digest(t)},l=function(t){return r.createNameMapper(t)};return new t(u,a,c,l,o,i)},t.prototype.get=function(t){var e=this._i18nToHtml.convert(t);if(e.errors.length)throw new Error(e.errors.join("\n"));return e.nodes},t.prototype.has=function(t){return this.digest(t)in this._i18nNodesByMsgId},t}(),gu=function(){function t(t,e,n,r,o,i){void 0===t&&(t={}),this._i18nNodesByMsgId=t,this._locale=e,this._digest=n,this._mapperFactory=r,this._missingTranslationStrategy=o,this._console=i,this._contextStack=[],this._errors=[]}return t.prototype.convert=function(t){this._contextStack.length=0,this._errors.length=0;var e=this._convertToText(t),n=t.nodes[0].sourceSpan.start.file.url,r=(new vu).parse(e,n,!0);return{nodes:r.rootNodes,errors:this._errors.concat(r.errors)}},t.prototype.visitText=function(t){return t.value},t.prototype.visitContainer=function(t){var e=this;return t.children.map(function(t){return t.visit(e)}).join("")},t.prototype.visitIcu=function(t){var e=this,n=Object.keys(t.cases).map(function(n){return n+" {"+t.cases[n].visit(e)+"}"}),r=this._srcMsg.placeholders.hasOwnProperty(t.expression)?this._srcMsg.placeholders[t.expression]:t.expression;return"{"+r+", "+t.type+", "+n.join(" ")+"}"},t.prototype.visitPlaceholder=function(t){var e=this._mapper(t.name);return this._srcMsg.placeholders.hasOwnProperty(e)?this._srcMsg.placeholders[e]:this._srcMsg.placeholderToMessage.hasOwnProperty(e)?this._convertToText(this._srcMsg.placeholderToMessage[e]):(this._addError(t,'Unknown placeholder "'+t.name+'"'),"")},t.prototype.visitTagPlaceholder=function(t){var e=this,n=""+t.tag,r=Object.keys(t.attrs).map(function(e){return e+'="'+t.attrs[e]+'"'}).join(" ");if(t.isVoid)return"<"+n+" "+r+"/>";var o=t.children.map(function(t){return t.visit(e)}).join("");return"<"+n+" "+r+">"+o+"</"+n+">"},t.prototype.visitIcuPlaceholder=function(t){return this._convertToText(this._srcMsg.placeholderToMessage[t.name])},t.prototype._convertToText=function(t){var n,r=this,o=this._digest(t),i=this._mapperFactory?this._mapperFactory(t):null;if(this._contextStack.push({msg:this._srcMsg,mapper:this._mapper}),this._srcMsg=t,this._i18nNodesByMsgId.hasOwnProperty(o))n=this._i18nNodesByMsgId[o],this._mapper=function(t){return i?i.toInternalName(t):t};else{if(this._missingTranslationStrategy===e.MissingTranslationStrategy.Error){var s=this._locale?' for locale "'+this._locale+'"':"";this._addError(t.nodes[0],'Missing translation for message "'+o+'"'+s)}else if(this._console&&this._missingTranslationStrategy===e.MissingTranslationStrategy.Warning){var s=this._locale?' for locale "'+this._locale+'"':"";this._console.warn('Missing translation for message "'+o+'"'+s)}n=t.nodes,this._mapper=function(t){return t}}var a=n.map(function(t){return t.visit(r)}).join(""),u=this._contextStack.pop();return this._srcMsg=u.msg,this._mapper=u.mapper,a},t.prototype._addError=function(t,e){this._errors.push(new ga(t.sourceSpan,e))},t}(),_u=function(){function t(t,n,r,o,i){if(void 0===o&&(o=e.MissingTranslationStrategy.Warning),this._htmlParser=t,n){var s=ie(r);this._translationBundle=mu.load(n,"i18n",s,o,i)}}return t.prototype.parse=function(t,e,n,r){void 0===n&&(n=!1),void 0===r&&(r=Ss);var o=this._htmlParser.parse(t,e,n,r);return this._translationBundle?o.errors.length?new ea(o.rootNodes,o.errors):Et(o.rootNodes,this._translationBundle,r,[],{}):o},t}(),bu=se("core"),wu=function(){function t(){}return t}();wu.ANALYZE_FOR_ENTRY_COMPONENTS={name:"ANALYZE_FOR_ENTRY_COMPONENTS",moduleUrl:bu,runtime:e.ANALYZE_FOR_ENTRY_COMPONENTS},wu.ElementRef={name:"ElementRef",moduleUrl:bu,runtime:e.ElementRef},wu.NgModuleRef={name:"NgModuleRef",moduleUrl:bu,runtime:e.NgModuleRef},wu.ViewContainerRef={name:"ViewContainerRef",moduleUrl:bu,runtime:e.ViewContainerRef},wu.ChangeDetectorRef={name:"ChangeDetectorRef",moduleUrl:bu,runtime:e.ChangeDetectorRef},wu.QueryList={name:"QueryList",moduleUrl:bu,runtime:e.QueryList},wu.TemplateRef={name:"TemplateRef",moduleUrl:bu,runtime:e.TemplateRef},wu.CodegenComponentFactoryResolver={name:"ɵCodegenComponentFactoryResolver",moduleUrl:bu,runtime:e.ɵCodegenComponentFactoryResolver},wu.ComponentFactoryResolver={name:"ComponentFactoryResolver",moduleUrl:bu,runtime:e.ComponentFactoryResolver},wu.ComponentFactory={name:"ComponentFactory",moduleUrl:bu,runtime:e.ComponentFactory},wu.ComponentRef={name:"ComponentRef",moduleUrl:bu,runtime:e.ComponentRef},wu.NgModuleFactory={name:"NgModuleFactory",moduleUrl:bu,runtime:e.NgModuleFactory},wu.NgModuleInjector={name:"ɵNgModuleInjector",moduleUrl:bu,runtime:e.ɵNgModuleInjector},wu.RegisterModuleFactoryFn={name:"ɵregisterModuleFactory",moduleUrl:bu,runtime:e.ɵregisterModuleFactory},wu.Injector={name:"Injector",moduleUrl:bu,runtime:e.Injector},wu.ViewEncapsulation={name:"ViewEncapsulation",moduleUrl:bu,runtime:e.ViewEncapsulation},wu.ChangeDetectionStrategy={name:"ChangeDetectionStrategy",moduleUrl:bu,runtime:e.ChangeDetectionStrategy},wu.SecurityContext={name:"SecurityContext",moduleUrl:bu,runtime:e.SecurityContext},wu.LOCALE_ID={name:"LOCALE_ID",moduleUrl:bu,runtime:e.LOCALE_ID},wu.TRANSLATIONS_FORMAT={name:"TRANSLATIONS_FORMAT",moduleUrl:bu,runtime:e.TRANSLATIONS_FORMAT},wu.inlineInterpolate={name:"ɵinlineInterpolate",moduleUrl:bu,runtime:e.ɵinlineInterpolate},wu.interpolate={name:"ɵinterpolate",moduleUrl:bu,runtime:e.ɵinterpolate},wu.EMPTY_ARRAY={name:"ɵEMPTY_ARRAY",moduleUrl:bu,runtime:e.ɵEMPTY_ARRAY},wu.EMPTY_MAP={name:"ɵEMPTY_MAP",moduleUrl:bu,runtime:e.ɵEMPTY_MAP},wu.Renderer={name:"Renderer",moduleUrl:bu,runtime:e.Renderer},wu.viewDef={name:"ɵvid",moduleUrl:bu,runtime:e.ɵvid},wu.elementDef={name:"ɵeld",moduleUrl:bu,runtime:e.ɵeld},wu.anchorDef={name:"ɵand",moduleUrl:bu,runtime:e.ɵand},wu.textDef={name:"ɵted",moduleUrl:bu,runtime:e.ɵted},wu.directiveDef={name:"ɵdid",moduleUrl:bu,runtime:e.ɵdid},wu.providerDef={name:"ɵprd",moduleUrl:bu,runtime:e.ɵprd},wu.queryDef={name:"ɵqud",moduleUrl:bu,runtime:e.ɵqud},wu.pureArrayDef={name:"ɵpad",moduleUrl:bu,runtime:e.ɵpad},wu.pureObjectDef={name:"ɵpod",moduleUrl:bu,runtime:e.ɵpod},wu.purePipeDef={name:"ɵppd",moduleUrl:bu,runtime:e.ɵppd},wu.pipeDef={name:"ɵpid",moduleUrl:bu,runtime:e.ɵpid},wu.nodeValue={name:"ɵnov",moduleUrl:bu,runtime:e.ɵnov},wu.ngContentDef={name:"ɵncd",moduleUrl:bu,runtime:e.ɵncd},wu.unwrapValue={name:"ɵunv",moduleUrl:bu,runtime:e.ɵunv},wu.createRendererType2={name:"ɵcrt",moduleUrl:bu,runtime:e.ɵcrt},wu.RendererType2={name:"RendererType2",moduleUrl:bu,runtime:null},wu.ViewDefinition={name:"ɵViewDefinition",moduleUrl:bu,runtime:null},wu.createComponentFactory={name:"ɵccf",moduleUrl:bu,runtime:e.ɵccf};var Cu=["zero","one","two","few","many","other"],Eu=function(){function t(t,e,n){this.nodes=t,this.expanded=e,this.errors=n}return t}(),Su=function(t){function e(e,n){return t.call(this,e,n)||this}return zr(e,t),e}(Us),xu=function(){function t(){this.isExpanded=!1,this.errors=[]}return t.prototype.visitElement=function(t){return new Gs(t.name,t.attrs,it(this,t.children),t.sourceSpan,t.startSourceSpan,t.endSourceSpan)},t.prototype.visitAttribute=function(t){return t},t.prototype.visitText=function(t){return t},t.prototype.visitComment=function(t){return t},t.prototype.visitExpansion=function(t){return this.isExpanded=!0,"plural"==t.type?he(t,this.errors):fe(t,this.errors)},t.prototype.visitExpansionCase=function(){throw new Error("Should not be reached")},t}(),Tu=function(t){function e(e,n){return t.call(this,n,e)||this}return zr(e,t),e}(Us),Pu=function(){function t(t){var e=this;this.component=t,this.errors=[],this.viewQueries=ge(t),this.viewProviders=new Map,t.viewProviders.forEach(function(t){null==e.viewProviders.get(T(t.token))&&e.viewProviders.set(T(t.token),!0)})}return t}(),Au=function(){function t(t,e,n,r,o,i,s,a,u){var c=this;this.viewContext=t,this._parent=e,this._isViewRoot=n,this._directiveAsts=r,this._sourceSpan=u,this._transformedProviders=new Map,this._seenProviders=new Map,this._hasViewContainer=!1,this._queriedTokens=new Map,this._attrs={},o.forEach(function(t){return c._attrs[t.name]=t.value});var l=r.map(function(t){return t.directive});if(this._allProviders=ve(l,u,t.errors),this._contentQueries=_e(a,l),Array.from(this._allProviders.values()).forEach(function(t){c._addQueryReadsTo(t.token,t.token,c._queriedTokens)}),s){var p=le(wu.TemplateRef);this._addQueryReadsTo(p,p,this._queriedTokens)}i.forEach(function(t){var e=t.value||le(wu.ElementRef);c._addQueryReadsTo({value:t.name},e,c._queriedTokens)}),this._queriedTokens.get(ae(wu.ViewContainerRef))&&(this._hasViewContainer=!0),Array.from(this._allProviders.values()).forEach(function(t){var e=t.eager||c._queriedTokens.get(T(t.token));e&&c._getOrCreateLocalProvider(t.providerType,t.token,!0)})}return t.prototype.afterElement=function(){var t=this;Array.from(this._allProviders.values()).forEach(function(e){t._getOrCreateLocalProvider(e.providerType,e.token,!1)})},Object.defineProperty(t.prototype,"transformProviders",{get:function(){return Array.from(this._transformedProviders.values())},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"transformedDirectiveAsts",{get:function(){var t=this.transformProviders.map(function(t){return t.token.identifier}),e=this._directiveAsts.slice();return e.sort(function(e,n){return t.indexOf(e.directive.type)-t.indexOf(n.directive.type)}),e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"transformedHasViewContainer",{get:function(){return this._hasViewContainer},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"queryMatches",{get:function(){var t=[];return this._queriedTokens.forEach(function(e){t.push.apply(t,e)}),t},enumerable:!0,configurable:!0}),t.prototype._addQueryReadsTo=function(t,e,n){this._getQueriesFor(t).forEach(function(t){var r=t.meta.read||e,o=T(r),i=n.get(o);i||(i=[],n.set(o,i)),i.push({queryId:t.queryId,value:r})})},t.prototype._getQueriesFor=function(t){for(var e,n=[],r=this,o=0;null!==r;)e=r._contentQueries.get(T(t)),e&&n.push.apply(n,e.filter(function(t){return t.meta.descendants||1>=o})),r._directiveAsts.length>0&&o++,r=r._parent;return e=this.viewContext.viewQueries.get(T(t)),e&&n.push.apply(n,e),n},t.prototype._getOrCreateLocalProvider=function(t,e,n){var r=this,o=this._allProviders.get(T(e));if(!o||(t===oo.Directive||t===oo.PublicService)&&o.providerType===oo.PrivateService||(t===oo.PrivateService||t===oo.PublicService)&&o.providerType===oo.Builtin)return null;var i=this._transformedProviders.get(T(e));if(i)return i;if(null!=this._seenProviders.get(T(e)))return this.viewContext.errors.push(new Tu("Cannot instantiate cyclic dependency! "+x(e),this._sourceSpan)),null;this._seenProviders.set(T(e),!0);var s=o.providers.map(function(t){var e,i=t.useValue,s=t.useExisting;if(null!=t.useExisting){var a=r._getDependency(o.providerType,{token:t.useExisting},n);null!=a.token?s=a.token:(s=null,i=a.value)}else if(t.useFactory){var u=t.deps||t.useFactory.diDeps;e=u.map(function(t){return r._getDependency(o.providerType,t,n)})}else if(t.useClass){var u=t.deps||t.useClass.diDeps;e=u.map(function(t){return r._getDependency(o.providerType,t,n)})}return de(t,{useExisting:s,useValue:i,deps:e})});return i=ye(o,{eager:n,providers:s}),this._transformedProviders.set(T(e),i),i},t.prototype._getLocalDependency=function(t,e,n){if(void 0===n&&(n=null),e.isAttribute){var r=this._attrs[e.token.value];return{isValue:!0,value:null==r?null:r}}if(null!=e.token){if(t===oo.Directive||t===oo.Component){if(T(e.token)===ae(wu.Renderer)||T(e.token)===ae(wu.ElementRef)||T(e.token)===ae(wu.ChangeDetectorRef)||T(e.token)===ae(wu.TemplateRef))return e;T(e.token)===ae(wu.ViewContainerRef)&&(this._hasViewContainer=!0)}if(T(e.token)===ae(wu.Injector))return e;if(null!=this._getOrCreateLocalProvider(t,e.token,n))return e}return null},t.prototype._getDependency=function(t,e,n){void 0===n&&(n=null);var r=this,o=n,i=null;if(e.isSkipSelf||(i=this._getLocalDependency(t,e,n)),e.isSelf)!i&&e.isOptional&&(i={isValue:!0,value:null});else{for(;!i&&r._parent;){var s=r;r=r._parent,s._isViewRoot&&(o=!1),i=r._getLocalDependency(oo.PublicService,e,o)}i||(i=!e.isHost||this.viewContext.component.isHost||this.viewContext.component.type.reference===T(e.token)||null!=this.viewContext.viewProviders.get(T(e.token))?e:e.isOptional?i={isValue:!0,value:null}:null)}return i||this.viewContext.errors.push(new Tu("No provider for "+x(e.token),this._sourceSpan)),i},t}(),Ou=function(){function t(t,e,n){var r=this;this._transformedProviders=new Map,this._seenProviders=new Map,this._errors=[],this._allProviders=new Map,t.transitiveModule.modules.forEach(function(t){var e={token:{identifier:t},useClass:t};me([e],oo.PublicService,!0,n,r._errors,r._allProviders)}),me(t.transitiveModule.providers.map(function(t){return t.provider}).concat(e),oo.PublicService,!1,n,this._errors,this._allProviders)}return t.prototype.parse=function(){var t=this;if(Array.from(this._allProviders.values()).forEach(function(e){t._getOrCreateLocalProvider(e.token,e.eager)}),this._errors.length>0){var e=this._errors.join("\n");throw new Error("Provider parse errors:\n"+e)}return Array.from(this._transformedProviders.values())},t.prototype._getOrCreateLocalProvider=function(t,e){var n=this,r=this._allProviders.get(T(t));if(!r)return null;var o=this._transformedProviders.get(T(t));if(o)return o;if(null!=this._seenProviders.get(T(t)))return this._errors.push(new Tu("Cannot instantiate cyclic dependency! "+x(t),r.sourceSpan)),null;this._seenProviders.set(T(t),!0);var i=r.providers.map(function(t){var o,i=t.useValue,s=t.useExisting;if(null!=t.useExisting){var a=n._getDependency({token:t.useExisting},e,r.sourceSpan);null!=a.token?s=a.token:(s=null,i=a.value)}else if(t.useFactory){var u=t.deps||t.useFactory.diDeps;o=u.map(function(t){return n._getDependency(t,e,r.sourceSpan)})}else if(t.useClass){var u=t.deps||t.useClass.diDeps;o=u.map(function(t){return n._getDependency(t,e,r.sourceSpan)})}return de(t,{useExisting:s,useValue:i,deps:o})});return o=ye(r,{eager:e,providers:i}),this._transformedProviders.set(T(t),o),o},t.prototype._getDependency=function(t,e,n){void 0===e&&(e=null);var r=!1;t.isSkipSelf||null==t.token||(T(t.token)===ae(wu.Injector)||T(t.token)===ae(wu.ComponentFactoryResolver)?r=!0:null!=this._getOrCreateLocalProvider(t.token,e)&&(r=!0));var o=t;return t.isSelf&&!r&&(t.isOptional?o={isValue:!0,value:null}:this._errors.push(new Tu("No provider for "+x(t.token),n))),o},t}(),Mu=function(){function t(){}return t.prototype.hasProperty=function(){},t.prototype.hasElement=function(){},t.prototype.securityContext=function(){},t.prototype.allKnownElementNames=function(){},t.prototype.getMappedPropName=function(){},t.prototype.getDefaultComponentElementName=function(){},t.prototype.validateProperty=function(){},t.prototype.validateAttribute=function(){},t.prototype.normalizeAnimationStyleProperty=function(){},t.prototype.normalizeAnimationStyleValue=function(){},t}(),Ru=function(){function t(t,e){this.style=t,this.styleUrls=e}return t}(),ku=/@import\s+(?:url\()?\s*(?:(?:['"]([^'"]*))|([^;\)\s]*))[^;]*;?/g,Iu=/\/\*.+?\*\//g,Nu=/^([^:\/?#]+):/,Du=".",ju="attr",Lu="class",Vu="style",Fu="animate-",Uu={};Uu.DEFAULT=0,Uu.LITERAL_ATTR=1,Uu.ANIMATION=2,Uu[Uu.DEFAULT]="DEFAULT",Uu[Uu.LITERAL_ATTR]="LITERAL_ATTR",Uu[Uu.ANIMATION]="ANIMATION";var Bu=function(){function t(t,e,n,r){this.name=t,this.expression=e,this.type=n,this.sourceSpan=r}return Object.defineProperty(t.prototype,"isLiteral",{get:function(){return this.type===Uu.LITERAL_ATTR},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isAnimation",{get:function(){return this.type===Uu.ANIMATION},enumerable:!0,configurable:!0}),t}(),Hu=function(){function t(t,e,n,r,o){var i=this;this._exprParser=t,this._interpolationConfig=e,this._schemaRegistry=n,this._targetErrors=o,this.pipesByName=new Map,this._usedPipes=new Map,r.forEach(function(t){return i.pipesByName.set(t.name,t)})}return t.prototype.getUsedPipes=function(){return Array.from(this._usedPipes.values())},t.prototype.createDirectiveHostPropertyAsts=function(t,e,n){var r=this;if(t.hostProperties){var o=[];return Object.keys(t.hostProperties).forEach(function(e){var i=t.hostProperties[e];"string"==typeof i?r.parsePropertyBinding(e,i,!0,n,[],o):r._reportError('Value of the host property binding "'+e+'" needs to be a string representing an expression but got "'+i+'" ('+typeof i+")",n)}),o.map(function(t){return r.createElementPropertyAst(e,t)})}},t.prototype.createDirectiveHostEventAsts=function(t,e){var n=this;if(t.hostListeners){var r=[];return Object.keys(t.hostListeners).forEach(function(o){var i=t.hostListeners[o];"string"==typeof i?n.parseEvent(o,i,e,[],r):n._reportError('Value of the host listener "'+o+'" needs to be a string representing an expression but got "'+i+'" ('+typeof i+")",e)}),r}},t.prototype.parseInterpolation=function(t,e){var n=e.start.toString();try{var r=this._exprParser.parseInterpolation(t,n,this._interpolationConfig);return r&&this._reportExpressionParserErrors(r.errors,e),this._checkPipes(r,e),r}catch(o){return this._reportError(""+o,e),this._exprParser.wrapLiteralPrimitive("ERROR",n)}},t.prototype.parseInlineTemplateBinding=function(t,e,n,r,o,i){for(var s=this._parseTemplateBindings(t,e,n),a=0;a<s.length;a++){var u=s[a];u.keyIsVar?i.push(new Yr(u.key,u.name,n)):u.expression?this._parsePropertyAst(u.key,u.expression,n,r,o):(r.push([u.key,""]),this.parseLiteralAttr(u.key,null,n,r,o))}},t.prototype._parseTemplateBindings=function(t,e,n){var r=this,o=n.start.toString();try{var i=this._exprParser.parseTemplateBindings(t,e,o);return this._reportExpressionParserErrors(i.errors,n),i.templateBindings.forEach(function(t){t.expression&&r._checkPipes(t.expression,n)}),i.warnings.forEach(function(t){r._reportError(t,n,Fs.WARNING)}),i.templateBindings}catch(s){return this._reportError(""+s,n),[]}},t.prototype.parseLiteralAttr=function(t,e,n,r,o){Ee(t)?(t=t.substring(1),e&&this._reportError('Assigning animation triggers via @prop="exp" attributes with an expression is invalid. Use property bindings (e.g. [@prop]="exp") or use an attribute without a value (e.g. @prop) instead.',n,Fs.ERROR),this._parseAnimation(t,e,n,r,o)):o.push(new Bu(t,this._exprParser.wrapLiteralPrimitive(e,""),Uu.LITERAL_ATTR,n))},t.prototype.parsePropertyBinding=function(t,e,n,r,o,i){var s=!1;t.startsWith(Fu)?(s=!0,t=t.substring(Fu.length)):Ee(t)&&(s=!0,t=t.substring(1)),s?this._parseAnimation(t,e,r,o,i):this._parsePropertyAst(t,this._parseBinding(e,n,r),r,o,i)},t.prototype.parsePropertyInterpolation=function(t,e,n,r,o){var i=this.parseInterpolation(e,n);return i?(this._parsePropertyAst(t,i,n,r,o),!0):!1},t.prototype._parsePropertyAst=function(t,e,n,r,o){r.push([t,e.source]),o.push(new Bu(t,e,Uu.DEFAULT,n))},t.prototype._parseAnimation=function(t,e,n,r,o){var i=this._parseBinding(e||"null",!1,n);r.push([t,i.source]),o.push(new Bu(t,i,Uu.ANIMATION,n))},t.prototype._parseBinding=function(t,e,n){var r=n.start.toString();try{var o=e?this._exprParser.parseSimpleBinding(t,r,this._interpolationConfig):this._exprParser.parseBinding(t,r,this._interpolationConfig);return o&&this._reportExpressionParserErrors(o.errors,n),this._checkPipes(o,n),o}catch(i){return this._reportError(""+i,n),this._exprParser.wrapLiteralPrimitive("ERROR",r)}},t.prototype.createElementPropertyAst=function(t,n){if(n.isAnimation)return new $r(n.name,so.Animation,e.SecurityContext.NONE,n.expression,null,n.sourceSpan);var r,o,s=null,a=null,u=n.name.split(Du);if(u.length>1)if(u[0]==ju){a=u[1],this._validatePropertyOrAttributeName(a,n.sourceSpan,!0),o=Se(this._schemaRegistry,t,a,!0);var c=a.indexOf(":");if(c>-1){var l=a.substring(0,c),p=a.substring(c+1);a=i(l,p)}r=so.Attribute}else u[0]==Lu?(a=u[1],r=so.Class,o=[e.SecurityContext.NONE]):u[0]==Vu&&(s=u.length>2?u[2]:null,a=u[1],r=so.Style,o=[e.SecurityContext.STYLE]);return null===a&&(a=this._schemaRegistry.getMappedPropName(n.name),o=Se(this._schemaRegistry,t,a,!1),r=so.Property,this._validatePropertyOrAttributeName(a,n.sourceSpan,!1)),new $r(a,r,o[0],n.expression,s,n.sourceSpan)},t.prototype.parseEvent=function(t,e,n,r,o){Ee(t)?(t=t.substr(1),this._parseAnimationEvent(t,e,n,o)):this._parseEvent(t,e,n,r,o)},t.prototype._parseAnimationEvent=function(t,e,n,r){var o=c(t,[t,""]),i=o[0],s=o[1].toLowerCase();if(s)switch(s){case"start":case"done":var a=this._parseAction(e,n);r.push(new Xr(i,null,s,a,n));break;default:this._reportError('The provided animation output phase value "'+s+'" for "@'+i+'" is not supported (use start or done)',n)}else this._reportError("The animation trigger output event (@"+i+") is missing its phase value name (start or done are currently supported)",n)},t.prototype._parseEvent=function(t,e,n,r,o){var i=u(t,[null,t]),s=i[0],a=i[1],c=this._parseAction(e,n);r.push([t,c.source]),o.push(new Xr(a,s,null,c,n))},t.prototype._parseAction=function(t,e){var n=e.start.toString();try{var r=this._exprParser.parseAction(t,n,this._interpolationConfig);return r&&this._reportExpressionParserErrors(r.errors,e),!r||r.ast instanceof Yo?(this._reportError("Empty expressions are not allowed",e),this._exprParser.wrapLiteralPrimitive("ERROR",n)):(this._checkPipes(r,e),r)}catch(o){return this._reportError(""+o,e),this._exprParser.wrapLiteralPrimitive("ERROR",n)}},t.prototype._reportError=function(t,e,n){void 0===n&&(n=Fs.ERROR),this._targetErrors.push(new Us(e,t,n))},t.prototype._reportExpressionParserErrors=function(t,e){for(var n=0,r=t;n<r.length;n++){var o=r[n];this._reportError(o.message,e)}},t.prototype._checkPipes=function(t,e){var n=this;if(t){var r=new qu;t.visit(r),r.pipes.forEach(function(t,r){var o=n.pipesByName.get(r);o?n._usedPipes.set(r,o):n._reportError("The pipe '"+r+"' could not be found",new Vs(e.start.moveBy(t.span.start),e.start.moveBy(t.span.end)))})}},t.prototype._validatePropertyOrAttributeName=function(t,e,n){var r=n?this._schemaRegistry.validateAttribute(t):this._schemaRegistry.validateProperty(t);r.error&&this._reportError(r.msg,e,Fs.ERROR)},t}(),qu=function(t){function e(){var e=t.apply(this,arguments)||this;return e.pipes=new Map,e}return zr(e,t),e.prototype.visitPipe=function(t,e){return this.pipes.set(t.name,t),t.exp.visit(this),this.visitAll(t.args,e),null},e}(_i),zu="select",Gu="ng-content",Wu="link",Ku="rel",Qu="href",$u="stylesheet",Xu="style",Zu="script",Yu="ngNonBindable",Ju="ngProjectAs",tc={};tc.NG_CONTENT=0,tc.STYLE=1,tc.STYLESHEET=2,tc.SCRIPT=3,tc.OTHER=4,tc[tc.NG_CONTENT]="NG_CONTENT",tc[tc.STYLE]="STYLE",tc[tc.STYLESHEET]="STYLESHEET",tc[tc.SCRIPT]="SCRIPT",tc[tc.OTHER]="OTHER";var ec=function(){function t(t,e,n,r,o){this.type=t,this.selectAttr=e,this.hrefAttr=n,this.nonBindable=r,this.projectAs=o}return t}(),nc=/^(?:(?:(?:(bind-)|(let-)|(ref-|#)|(on-)|(bindon-)|(@))(.+))|\[\(([^\)]+)\)\]|\[([^\]]+)\]|\(([^\)]+)\))$/,rc=1,oc=2,ic=3,sc=4,ac=5,uc=6,cc=7,lc=8,pc=9,hc=10,fc="ng-template",dc="template",yc="template",vc="*",mc="class",gc=vo.parse("*")[0],_c="The <template> element is deprecated. Use <ng-template> instead",bc="The template attribute is deprecated. Use an ng-template element instead.",wc={},Cc=new e.InjectionToken("TemplateTransforms"),Ec=function(t){function e(e,n,r){return t.call(this,n,e,r)||this}return zr(e,t),e}(Us),Sc=function(){function t(t,e,n){this.templateAst=t,this.usedPipes=e,this.errors=n}return t}(),xc=function(){function t(t,e,n,r,o,i){this._config=t,this._exprParser=e,this._schemaRegistry=n,this._htmlParser=r,this._console=o,this.transforms=i}return t.prototype.parse=function(t,e,n,r,o,i){var s=this.tryParse(t,e,n,r,o,i),a=s.errors.filter(function(t){return t.level===Fs.WARNING}).filter(Pe([bc,_c])),u=s.errors.filter(function(t){return t.level===Fs.ERROR});if(a.length>0&&this._console.warn("Template parse warnings:\n"+a.join("\n")),u.length>0){var c=u.join("\n");throw h("Template parse errors:\n"+c)}return{template:s.templateAst,pipes:s.usedPipes}},t.prototype.tryParse=function(t,e,n,r,o,i){return this.tryParseHtml(this.expandHtml(this._htmlParser.parse(e,i,!0,this.getInterpolationConfig(t))),t,e,n,r,o,i)},t.prototype.tryParseHtml=function(t,e,r,o,i,s){var a,u=t.errors,c=[];if(t.rootNodes.length>0){var l=Re(o),p=Re(i),h=new Pu(e),f=void 0;e.template&&e.template.interpolation&&(f={start:e.template.interpolation[0],end:e.template.interpolation[1]});var d=new Hu(this._exprParser,f,this._schemaRegistry,p,u),y=new Tc(this._config,h,l,d,this._schemaRegistry,s,u);a=it(y,t.rootNodes,Mc),u.push.apply(u,h.errors),c.push.apply(c,d.getUsedPipes())}else a=[];return this._assertNoReferenceDuplicationOnTemplate(a,u),u.length>0?new Sc(a,c,u):(this.transforms&&this.transforms.forEach(function(t){a=n(t,a)}),new Sc(a,c,u))},t.prototype.expandHtml=function(t,e){void 0===e&&(e=!1);var n=t.errors;if(0==n.length||e){var r=pe(t.rootNodes);n.push.apply(n,r.errors),t=new ea(r.nodes,n)}return t},t.prototype.getInterpolationConfig=function(t){return t.template?Es.fromArray(t.template.interpolation):void 0},t.prototype._assertNoReferenceDuplicationOnTemplate=function(t,e){var n=[];t.filter(function(t){return!!t.references}).forEach(function(t){return t.references.forEach(function(t){var r=t.name;if(n.indexOf(r)<0)n.push(r);else{var o=new Ec('Reference "#'+r+'" is defined several times',t.sourceSpan,Fs.ERROR);e.push(o)}})})},t}();xc.decorators=[{type:F}],xc.ctorParameters=function(){return[{type:Ko},{type:Is},{type:Mu},{type:_u},{type:e.ɵConsole},{type:Array,decorators:[{type:e.Optional},{type:e.Inject,args:[Cc]}]}]};var Tc=function(){function t(t,e,n,r,o,i,s){var a=this;this.config=t,this.providerViewContext=e,this._bindingParser=r,this._schemaRegistry=o,this._schemas=i,this._targetErrors=s,this.selectorMatcher=new mo,this.directivesIndex=new Map,this.ngContentCount=0,this.contentQueryStartId=e.component.viewQueries.length+1,n.forEach(function(t,e){var n=vo.parse(t.selector);a.selectorMatcher.addSelectables(n,t),a.directivesIndex.set(t,e)})}return t.prototype.visitExpansion=function(){return null},t.prototype.visitExpansionCase=function(){return null},t.prototype.visitText=function(t,e){var n=e.findNgContentIndex(gc),r=this._bindingParser.parseInterpolation(t.value,t.sourceSpan);return r?new Kr(r,n,t.sourceSpan):new Wr(t.value,n,t.sourceSpan)},t.prototype.visitAttribute=function(t){return new Qr(t.name,t.value,t.sourceSpan)},t.prototype.visitComment=function(){return null},t.prototype.visitElement=function(t,e){var n=this,r=this.contentQueryStartId,o=t.name,i=xe(t);if(i.type===tc.SCRIPT||i.type===tc.STYLE)return null;if(i.type===tc.STYLESHEET&&we(i.hrefAttr))return null;var s=[],a=[],u=[],c=[],l=[],p=[],h=[],f=[],d=!1,y=[],v=Ie(t,this.config.enableLegacyTemplate,function(t,e){return n._reportError(t,e,Fs.WARNING)});t.attrs.forEach(function(t){var e,r,o=n._parseAttr(v,t,s,a,l,u,c),i=n._normalizeAttributeName(t.name);n.config.enableLegacyTemplate&&i==yc?(n._reportError(bc,t.sourceSpan,Fs.WARNING),e=t.value):i.startsWith(vc)&&(e=t.value,r=i.substring(vc.length)+":");var m=null!=e;m&&(d&&n._reportError("Can't have multiple template bindings on one element. Use only one attribute named 'template' or prefixed with *",t.sourceSpan),d=!0,n._bindingParser.parseInlineTemplateBinding(r,e,t.sourceSpan,h,p,f)),o||m||(y.push(n.visitAttribute(t,null)),s.push([t.name,t.value]))});var m=Oe(o,s),g=this._parseDirectives(this.selectorMatcher,m),_=g.directives,b=g.matchElement,w=[],C=new Set,E=this._createDirectiveAsts(v,t.name,_,a,u,t.sourceSpan,w,C),S=this._createElementPropertyAsts(t.name,a,C),x=e.isTemplateElement||d,T=new Au(this.providerViewContext,e.providerContext,x,E,y,w,v,r,t.sourceSpan),P=it(i.nonBindable?Rc:this,t.children,Oc.create(v,E,v?e.providerContext:T));T.afterElement();var A,O=null!=i.projectAs?vo.parse(i.projectAs)[0]:m,M=e.findNgContentIndex(O);if(i.type===tc.NG_CONTENT)t.children&&!t.children.every(Me)&&this._reportError("<ng-content> element cannot have content.",t.sourceSpan),A=new io(this.ngContentCount++,d?null:M,t.sourceSpan);else if(v)this._assertAllEventsPublishedByDirectives(E,l),this._assertNoComponentsNorElementBindingsOnTemplate(E,S,t.sourceSpan),A=new to(y,l,w,c,T.transformedDirectiveAsts,T.transformProviders,T.transformedHasViewContainer,T.queryMatches,P,d?null:M,t.sourceSpan);else{this._assertElementExists(b,t),this._assertOnlyOneComponent(E,t.sourceSpan);var R=d?null:e.findNgContentIndex(O);A=new Jr(o,y,S,l,w,T.transformedDirectiveAsts,T.transformProviders,T.transformedHasViewContainer,T.queryMatches,P,d?null:R,t.sourceSpan,t.endSourceSpan)}if(d){var k=this.contentQueryStartId,I=Oe(dc,h),N=this._parseDirectives(this.selectorMatcher,I).directives,D=new Set,j=this._createDirectiveAsts(!0,t.name,N,p,[],t.sourceSpan,[],D),L=this._createElementPropertyAsts(t.name,p,D);this._assertNoComponentsNorElementBindingsOnTemplate(j,L,t.sourceSpan);var V=new Au(this.providerViewContext,e.providerContext,e.isTemplateElement,j,[],[],!0,k,t.sourceSpan);V.afterElement(),A=new to([],[],[],f,V.transformedDirectiveAsts,V.transformProviders,V.transformedHasViewContainer,V.queryMatches,[A],M,t.sourceSpan)}return A},t.prototype._parseAttr=function(t,e,n,r,o,i,s){var a=this._normalizeAttributeName(e.name),u=e.value,c=e.sourceSpan,l=a.match(nc),p=!1;if(null!==l)if(p=!0,null!=l[rc])this._bindingParser.parsePropertyBinding(l[cc],u,!1,c,n,r);else if(l[oc])if(t){var h=l[cc];this._parseVariable(h,u,c,s)}else this._reportError('"let-" is only supported on template elements.',c);else if(l[ic]){var h=l[cc];this._parseReference(h,u,c,i)}else l[sc]?this._bindingParser.parseEvent(l[cc],u,c,n,o):l[ac]?(this._bindingParser.parsePropertyBinding(l[cc],u,!1,c,n,r),this._parseAssignmentEvent(l[cc],u,c,n,o)):l[uc]?this._bindingParser.parseLiteralAttr(a,u,c,n,r):l[lc]?(this._bindingParser.parsePropertyBinding(l[lc],u,!1,c,n,r),this._parseAssignmentEvent(l[lc],u,c,n,o)):l[pc]?this._bindingParser.parsePropertyBinding(l[pc],u,!1,c,n,r):l[hc]&&this._bindingParser.parseEvent(l[hc],u,c,n,o);else p=this._bindingParser.parsePropertyInterpolation(a,u,c,n,r);return p||this._bindingParser.parseLiteralAttr(a,u,c,n,r),p},t.prototype._normalizeAttributeName=function(t){return/^data-/i.test(t)?t.substring(5):t},t.prototype._parseVariable=function(t,e,n,r){ +t.indexOf("-")>-1&&this._reportError('"-" is not allowed in variable names',n),r.push(new Yr(t,e,n))},t.prototype._parseReference=function(t,e,n,r){t.indexOf("-")>-1&&this._reportError('"-" is not allowed in reference names',n),r.push(new Ac(t,e,n))},t.prototype._parseAssignmentEvent=function(t,e,n,r,o){this._bindingParser.parseEvent(t+"Change",e+"=$event",n,r,o)},t.prototype._parseDirectives=function(t,e){var n=this,r=new Array(this.directivesIndex.size),o=!1;return t.match(e,function(t,e){r[n.directivesIndex.get(e)]=e,o=o||t.hasElementSelector()}),{directives:r.filter(function(t){return!!t}),matchElement:o}},t.prototype._createDirectiveAsts=function(t,e,n,r,o,i,s,a){var u=this,c=new Set,l=null,p=n.map(function(t){var n=new Vs(i.start,i.end,"Directive "+g(t.type));t.isComponent&&(l=t);var p=[],h=u._bindingParser.createDirectiveHostPropertyAsts(t,e,n);h=u._checkPropertiesInSchema(e,h);var f=u._bindingParser.createDirectiveHostEventAsts(t,n);u._createDirectivePropertyAsts(t.inputs,r,p,a),o.forEach(function(e){(0===e.value.length&&t.isComponent||t.exportAs==e.value)&&(s.push(new Zr(e.name,ce(t.type),e.sourceSpan)),c.add(e.name))});var d=u.contentQueryStartId;return u.contentQueryStartId+=t.queries.length,new no(t,p,h,f,d,n)});return o.forEach(function(e){if(e.value.length>0)c.has(e.name)||u._reportError('There is no directive with "exportAs" set to "'+e.value+'"',e.sourceSpan);else if(!l){var n=null;t&&(n=le(wu.TemplateRef)),s.push(new Zr(e.name,n,e.sourceSpan))}}),p},t.prototype._createDirectivePropertyAsts=function(t,e,n,r){if(t){var o=new Map;e.forEach(function(t){var e=o.get(t.name);(!e||e.isLiteral)&&o.set(t.name,t)}),Object.keys(t).forEach(function(e){var i=t[e],s=o.get(i);s&&(r.add(s.name),ke(s.expression)||n.push(new eo(e,s.name,s.expression,s.sourceSpan)))})}},t.prototype._createElementPropertyAsts=function(t,e,n){var r=this,o=[];return e.forEach(function(e){e.isLiteral||n.has(e.name)||o.push(r._bindingParser.createElementPropertyAst(t,e))}),this._checkPropertiesInSchema(t,o)},t.prototype._findComponentDirectives=function(t){return t.filter(function(t){return t.directive.isComponent})},t.prototype._findComponentDirectiveNames=function(t){return this._findComponentDirectives(t).map(function(t){return g(t.directive.type)})},t.prototype._assertOnlyOneComponent=function(t,e){var n=this._findComponentDirectiveNames(t);n.length>1&&this._reportError("More than one component matched on this element.\nMake sure that only one component's selector can match a given element.\nConflicting components: "+n.join(","),e)},t.prototype._assertElementExists=function(t,e){var n=e.name.replace(/^:xhtml:/,"");if(!t&&!this._schemaRegistry.hasElement(n,this._schemas)){var r="'"+n+"' is not a known element:\n";r+="1. If '"+n+"' is an Angular component, then verify that it is part of this module.\n",r+=n.indexOf("-")>-1?"2. If '"+n+"' is a Web Component then add 'CUSTOM_ELEMENTS_SCHEMA' to the '@NgModule.schemas' of this component to suppress this message.":"2. To allow any element add 'NO_ERRORS_SCHEMA' to the '@NgModule.schemas' of this component.",this._reportError(r,e.sourceSpan)}},t.prototype._assertNoComponentsNorElementBindingsOnTemplate=function(t,e,n){var r=this,o=this._findComponentDirectiveNames(t);o.length>0&&this._reportError("Components on an embedded template: "+o.join(","),n),e.forEach(function(t){r._reportError("Property binding "+t.name+' not used by any directive on an embedded template. Make sure that the property name is spelled correctly and all directives are listed in the "@NgModule.declarations".',n)})},t.prototype._assertAllEventsPublishedByDirectives=function(t,e){var n=this,r=new Set;t.forEach(function(t){Object.keys(t.directive.outputs).forEach(function(e){var n=t.directive.outputs[e];r.add(n)})}),e.forEach(function(t){null==t.target&&r.has(t.name)||n._reportError("Event binding "+t.fullName+' not emitted by any directive on an embedded template. Make sure that the event name is spelled correctly and all directives are listed in the "@NgModule.declarations".',t.sourceSpan)})},t.prototype._checkPropertiesInSchema=function(t,e){var n=this;return e.filter(function(e){if(e.type===so.Property&&!n._schemaRegistry.hasProperty(t,e.name,n._schemas)){var r="Can't bind to '"+e.name+"' since it isn't a known property of '"+t+"'.";t.startsWith("ng-")?r+="\n1. If '"+e.name+"' is an Angular directive, then add 'CommonModule' to the '@NgModule.imports' of this component.\n2. To allow any property add 'NO_ERRORS_SCHEMA' to the '@NgModule.schemas' of this component.":t.indexOf("-")>-1&&(r+="\n1. If '"+t+"' is an Angular component and it has '"+e.name+"' input, then verify that it is part of this module."+("\n2. If '"+t+"' is a Web Component then add 'CUSTOM_ELEMENTS_SCHEMA' to the '@NgModule.schemas' of this component to suppress this message.")+"\n3. To allow any property add 'NO_ERRORS_SCHEMA' to the '@NgModule.schemas' of this component."),n._reportError(r,e.sourceSpan)}return!ke(e.value)})},t.prototype._reportError=function(t,e,n){void 0===n&&(n=Fs.ERROR),this._targetErrors.push(new Us(e,t,n))},t}(),Pc=function(){function t(){}return t.prototype.visitElement=function(t,e){var n=xe(t);if(n.type===tc.SCRIPT||n.type===tc.STYLE||n.type===tc.STYLESHEET)return null;var r=t.attrs.map(function(t){return[t.name,t.value]}),o=Oe(t.name,r),i=e.findNgContentIndex(o),s=it(this,t.children,Mc);return new Jr(t.name,it(this,t.attrs),[],[],[],[],[],!1,[],s,i,t.sourceSpan,t.endSourceSpan)},t.prototype.visitComment=function(){return null},t.prototype.visitAttribute=function(t){return new Qr(t.name,t.value,t.sourceSpan)},t.prototype.visitText=function(t,e){var n=e.findNgContentIndex(gc);return new Wr(t.value,n,t.sourceSpan)},t.prototype.visitExpansion=function(t){return t},t.prototype.visitExpansionCase=function(t){return t},t}(),Ac=function(){function t(t,e,n){this.name=t,this.value=e,this.sourceSpan=n}return t}(),Oc=function(){function t(t,e,n,r){this.isTemplateElement=t,this._ngContentIndexMatcher=e,this._wildcardNgContentIndex=n,this.providerContext=r}return t.create=function(e,n,r){var o=new mo,i=null,s=n.find(function(t){return t.directive.isComponent});if(s)for(var a=s.directive.template.ngContentSelectors,u=0;u<a.length;u++){var c=a[u];"*"===c?i=u:o.addSelectables(vo.parse(a[u]),u)}return new t(e,o,i,r)},t.prototype.findNgContentIndex=function(t){var e=[];return this._ngContentIndexMatcher.match(t,function(t,n){e.push(n)}),e.sort(),null!=this._wildcardNgContentIndex&&e.push(this._wildcardNgContentIndex),e.length>0?e[0]:null},t}(),Mc=new Oc(!0,new mo,null,null),Rc=new Pc,kc=function(){function t(){}return t.prototype.get=function(){return null},t}(),Ic={provide:e.PACKAGE_ROOT_URL,useValue:"/"},Nc=function(){function t(t){void 0===t&&(t=null),this._packagePrefix=t}return t.prototype.resolve=function(t,e){var n=e;null!=t&&t.length>0&&(n=Be(t,n));var r=Ve(n),o=this._packagePrefix;if(null!=o&&null!=r&&"package"==r[jc.Scheme]){var i=r[jc.Path];return o=o.replace(/\/+$/,""),i=i.replace(/^\/+/,""),o+"/"+i}return n},t}();Nc.decorators=[{type:F}],Nc.ctorParameters=function(){return[{type:void 0,decorators:[{type:e.Inject,args:[e.PACKAGE_ROOT_URL]}]}]};var Dc=new RegExp("^(?:([^:/?#.]+):)?(?://(?:([^/?#]*)@)?([\\w\\d\\-\\u0100-\\uffff.%]*)(?::([0-9]+))?)?([^?#]+)?(?:\\?([^#]*))?(?:#(.*))?$"),jc={};jc.Scheme=1,jc.UserInfo=2,jc.Domain=3,jc.Port=4,jc.Path=5,jc.QueryData=6,jc.Fragment=7,jc[jc.Scheme]="Scheme",jc[jc.UserInfo]="UserInfo",jc[jc.Domain]="Domain",jc[jc.Port]="Port",jc[jc.Path]="Path",jc[jc.QueryData]="QueryData",jc[jc.Fragment]="Fragment";var Lc=function(){function t(t,e,n,r){this._resourceLoader=t,this._urlResolver=e,this._htmlParser=n,this._config=r,this._resourceLoaderCache=new Map}return t.prototype.clearCache=function(){this._resourceLoaderCache.clear()},t.prototype.clearCacheFor=function(t){var e=this;t.isComponent&&(this._resourceLoaderCache["delete"](t.template.templateUrl),t.template.externalStylesheets.forEach(function(t){e._resourceLoaderCache["delete"](t.moduleUrl)}))},t.prototype._fetch=function(t){var e=this._resourceLoaderCache.get(t);return e||(e=this._resourceLoader.get(t),this._resourceLoaderCache.set(t,e)),e},t.prototype.normalizeTemplate=function(t){var n,r=this,o=null;if(null!=t.template){if(null!=t.templateUrl)throw h("'"+e.ɵstringify(t.componentType)+"' component cannot define both template and templateUrl");if("string"!=typeof t.template)throw h("The template specified for component "+e.ɵstringify(t.componentType)+" is not a string");o=this.normalizeTemplateSync(t),n=Promise.resolve(o)}else{if(!t.templateUrl)throw h("No template specified for component "+e.ɵstringify(t.componentType));if("string"!=typeof t.templateUrl)throw h("The templateUrl specified for component "+e.ɵstringify(t.componentType)+" is not a string");n=this.normalizeTemplateAsync(t)}return o&&0===o.styleUrls.length?new Eo(o):new Eo(null,n.then(function(t){return r.normalizeExternalStylesheets(t)}))},t.prototype.normalizeTemplateSync=function(t){return this.normalizeLoadedTemplate(t,t.template,t.moduleUrl)},t.prototype.normalizeTemplateAsync=function(t){var e=this,n=this._urlResolver.resolve(t.moduleUrl,t.templateUrl);return this._fetch(n).then(function(r){return e.normalizeLoadedTemplate(t,r,n)})},t.prototype.normalizeLoadedTemplate=function(t,n,r){var o=!!t.template,i=Es.fromArray(t.interpolation),s=this._htmlParser.parse(n,R({reference:t.ngModuleType},{type:{reference:t.componentType}},{isInline:o,templateUrl:r}),!0,i);if(s.errors.length>0){var a=s.errors.join("\n");throw h("Template parse errors:\n"+a)}var u=this.normalizeStylesheet(new Uo({styles:t.styles,styleUrls:t.styleUrls,moduleUrl:t.moduleUrl})),c=new Vc;it(c,s.rootNodes);var l=this.normalizeStylesheet(new Uo({styles:c.styles,styleUrls:c.styleUrls,moduleUrl:r})),p=t.encapsulation;null==p&&(p=this._config.defaultEncapsulation);var f=u.styles.concat(l.styles),d=u.styleUrls.concat(l.styleUrls);return p===e.ViewEncapsulation.Emulated&&0===f.length&&0===d.length&&(p=e.ViewEncapsulation.None),new Bo({encapsulation:p,template:n,templateUrl:r,styles:f,styleUrls:d,ngContentSelectors:c.ngContentSelectors,animations:t.animations,interpolation:t.interpolation,isInline:o})},t.prototype.normalizeExternalStylesheets=function(t){return this._loadMissingExternalStylesheets(t.styleUrls).then(function(e){return new Bo({encapsulation:t.encapsulation,template:t.template,templateUrl:t.templateUrl,styles:t.styles,styleUrls:t.styleUrls,externalStylesheets:e,ngContentSelectors:t.ngContentSelectors,animations:t.animations,interpolation:t.interpolation,isInline:t.isInline})})},t.prototype._loadMissingExternalStylesheets=function(t,e){var n=this;return void 0===e&&(e=new Map),Promise.all(t.filter(function(t){return!e.has(t)}).map(function(t){return n._fetch(t).then(function(r){var o=n.normalizeStylesheet(new Uo({styles:[r],moduleUrl:t}));return e.set(t,o),n._loadMissingExternalStylesheets(o.styleUrls,e)})})).then(function(){return Array.from(e.values())})},t.prototype.normalizeStylesheet=function(t){var e=this,n=t.styleUrls.filter(we).map(function(n){return e._urlResolver.resolve(t.moduleUrl,n)}),r=t.styles.map(function(r){var o=Ce(e._urlResolver,t.moduleUrl,r);return n.push.apply(n,o.styleUrls),o.style});return new Uo({styles:r,styleUrls:n,moduleUrl:t.moduleUrl})},t}();Lc.decorators=[{type:F}],Lc.ctorParameters=function(){return[{type:kc},{type:Nc},{type:vu},{type:Ko}]};var Vc=function(){function t(){this.ngContentSelectors=[],this.styles=[],this.styleUrls=[],this.ngNonBindableStackCount=0}return t.prototype.visitElement=function(t){var e=xe(t);switch(e.type){case tc.NG_CONTENT:0===this.ngNonBindableStackCount&&this.ngContentSelectors.push(e.selectAttr);break;case tc.STYLE:var n="";t.children.forEach(function(t){t instanceof Bs&&(n+=t.value)}),this.styles.push(n);break;case tc.STYLESHEET:this.styleUrls.push(e.hrefAttr)}return e.nonBindable&&this.ngNonBindableStackCount++,it(this,t.children),e.nonBindable&&this.ngNonBindableStackCount--,null},t.prototype.visitExpansion=function(t){it(this,t.cases)},t.prototype.visitExpansionCase=function(t){it(this,t.expression)},t.prototype.visitComment=function(){return null},t.prototype.visitAttribute=function(){return null},t.prototype.visitText=function(){return null},t}(),Fc=void 0||Object.assign||function(t){for(var e,n=1,r=arguments.length;r>n;n++){e=arguments[n];for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])}return t},Uc=function(){function t(t){void 0===t&&(t=e.ɵreflector),this._reflector=t}return t.prototype.isDirective=function(t){var n=this._reflector.annotations(e.resolveForwardRef(t));return n&&n.some(He)},t.prototype.resolve=function(t,n){void 0===n&&(n=!0);var r=this._reflector.annotations(e.resolveForwardRef(t));if(r){var o=qe(r,He);if(o){var i=this._reflector.propMetadata(t);return this._mergeWithPropertyMetadata(o,i,t)}}if(n)throw new Error("No Directive annotation found on "+e.ɵstringify(t));return null},t.prototype._mergeWithPropertyMetadata=function(t,n,r){var o=[],i=[],s={},a={};return Object.keys(n).forEach(function(t){var r=qe(n[t],function(t){return t instanceof e.Input});r&&o.push(r.bindingPropertyName?t+": "+r.bindingPropertyName:t);var u=qe(n[t],function(t){return t instanceof e.Output});u&&i.push(u.bindingPropertyName?t+": "+u.bindingPropertyName:t);var c=n[t].filter(function(t){return t&&t instanceof e.HostBinding});c.forEach(function(e){if(e.hostPropertyName){var n=e.hostPropertyName[0];if("("===n)throw new Error("@HostBinding can not bind to events. Use @HostListener instead.");if("["===n)throw new Error("@HostBinding parameter should be a property name, 'class.<name>', or 'attr.<name>'.");s["["+e.hostPropertyName+"]"]=t}else s["["+t+"]"]=t});var l=n[t].filter(function(t){return t&&t instanceof e.HostListener});l.forEach(function(e){var n=e.args||[];s["("+e.eventName+")"]=t+"("+n.join(",")+")"});var p=qe(n[t],function(t){return t instanceof e.Query});p&&(a[t]=p)}),this._merge(t,o,i,s,a,r)},t.prototype._extractPublicName=function(t){return u(t,[null,t])[1].trim()},t.prototype._dedupeBindings=function(t){for(var e=new Set,n=[],r=t.length-1;r>=0;r--){var o=t[r],i=this._extractPublicName(o);e.has(i)||(e.add(i),n.push(o))}return n.reverse()},t.prototype._merge=function(t,n,r,o,i){var s=this._dedupeBindings(t.inputs?t.inputs.concat(n):n),a=this._dedupeBindings(t.outputs?t.outputs.concat(r):r),u=t.host?Fc({},t.host,o):o,c=t.queries?Fc({},t.queries,i):i;return t instanceof e.Component?new e.Component({selector:t.selector,inputs:s,outputs:a,host:u,exportAs:t.exportAs,moduleId:t.moduleId,queries:c,changeDetection:t.changeDetection,providers:t.providers,viewProviders:t.viewProviders,entryComponents:t.entryComponents,template:t.template,templateUrl:t.templateUrl,styles:t.styles,styleUrls:t.styleUrls,encapsulation:t.encapsulation,animations:t.animations,interpolation:t.interpolation}):new e.Directive({selector:t.selector,inputs:s,outputs:a,host:u,exportAs:t.exportAs,queries:c,providers:t.providers})},t}();Uc.decorators=[{type:F}],Uc.ctorParameters=function(){return[{type:e.ɵReflectorReader}]};var Bc=/(\.ts|\.d\.ts|\.js|\.jsx|\.tsx)$/,Hc=/\.ngfactory\./,qc=function(){function t(t){void 0===t&&(t=e.ɵreflector),this._reflector=t}return t.prototype.isNgModule=function(t){return this._reflector.annotations(t).some(Ze)},t.prototype.resolve=function(t,n){void 0===n&&(n=!0);var r=qe(this._reflector.annotations(t),Ze);if(r)return r;if(n)throw new Error("No NgModule metadata found for '"+e.ɵstringify(t)+"'.");return null},t}();qc.decorators=[{type:F}],qc.ctorParameters=function(){return[{type:e.ɵReflectorReader}]};var zc=function(){function t(t){void 0===t&&(t=e.ɵreflector),this._reflector=t}return t.prototype.isPipe=function(t){var n=this._reflector.annotations(e.resolveForwardRef(t));return n&&n.some(Ye)},t.prototype.resolve=function(t,n){void 0===n&&(n=!0);var r=this._reflector.annotations(e.resolveForwardRef(t));if(r){var o=qe(r,Ye);if(o)return o}if(n)throw new Error("No Pipe decorator found on "+e.ɵstringify(t));return null},t}();zc.decorators=[{type:F}],zc.ctorParameters=function(){return[{type:e.ɵReflectorReader}]};var Gc=function(){function t(){}return t.prototype.isLibraryFile=function(){return!1},t.prototype.getLibraryFileName=function(){return null},t.prototype.resolveSummary=function(){return null},t.prototype.getSymbolsOf=function(){return[]},t.prototype.getImportAs=function(t){return t},t}();Gc.decorators=[{type:F}],Gc.ctorParameters=function(){return[]};var Wc=new e.InjectionToken("ErrorCollector"),Kc=function(){function t(t,n,r,o,i,s,a,u,c,l,p){void 0===l&&(l=e.ɵreflector),this._config=t,this._ngModuleResolver=n,this._directiveResolver=r,this._pipeResolver=o,this._summaryResolver=i,this._schemaRegistry=s,this._directiveNormalizer=a,this._console=u,this._staticSymbolCache=c,this._reflector=l,this._errorCollector=p,this._nonNormalizedDirectiveCache=new Map,this._directiveCache=new Map,this._summaryCache=new Map,this._pipeCache=new Map,this._ngModuleCache=new Map,this._ngModuleOfTypes=new Map}return t.prototype.clearCacheFor=function(t){var e=this._directiveCache.get(t);this._directiveCache["delete"](t),this._nonNormalizedDirectiveCache["delete"](t),this._summaryCache["delete"](t),this._pipeCache["delete"](t),this._ngModuleOfTypes["delete"](t),this._ngModuleCache.clear(),e&&this._directiveNormalizer.clearCacheFor(e)},t.prototype.clearCache=function(){this._directiveCache.clear(),this._nonNormalizedDirectiveCache.clear(),this._summaryCache.clear(),this._pipeCache.clear(),this._ngModuleCache.clear(),this._ngModuleOfTypes.clear(),this._directiveNormalizer.clearCache()},t.prototype._createProxyClass=function(t,n){var r=null,o=function(){if(!r)throw new Error("Illegal state: Class "+n+" for type "+e.ɵstringify(t)+" is not compiled yet!");return r.apply(this,arguments)};return o.setDelegate=function(t){r=t,o.prototype=t.prototype},o.overriddenName=n,o},t.prototype.getGeneratedClass=function(t,e){return t instanceof ao?this._staticSymbolCache.get(ze(t.filePath),e):this._createProxyClass(t,e)},t.prototype.getComponentViewClass=function(t){return this.getGeneratedClass(t,b(t,0))},t.prototype.getHostComponentViewClass=function(t){return this.getGeneratedClass(t,C(t))},t.prototype.getHostComponentType=function(t){var e=g({reference:t})+"_Host";if(t instanceof ao)return this._staticSymbolCache.get(t.filePath,e);var n=function(){};return n.overriddenName=e,n},t.prototype.getRendererType=function(t){return t instanceof ao?this._staticSymbolCache.get(ze(t.filePath),w(t)):{}},t.prototype.getComponentFactory=function(t,n,r,o){if(n instanceof ao)return this._staticSymbolCache.get(ze(n.filePath),S(n));var i=this.getHostComponentViewClass(n);return e.ɵccf(t,n,i,r,o,[])},t.prototype.initComponentFactory=function(t,e){t instanceof ao||(n=t.ngContentSelectors).push.apply(n,e);var n},t.prototype._loadSummary=function(t,e){var n=this._summaryCache.get(t);if(!n){var r=this._summaryResolver.resolveSummary(t);n=r?r.type:null,this._summaryCache.set(t,n)}return n&&n.summaryKind===e?n:null},t.prototype._loadDirectiveMetadata=function(t,n,r){var o=this;if(!this._directiveCache.has(n)){n=e.resolveForwardRef(n);var i=this.getNonNormalizedDirectiveMetadata(n),s=i.annotation,a=i.metadata,u=function(t){var e=new Ho({type:a.type,isComponent:a.isComponent,selector:a.selector,exportAs:a.exportAs,changeDetection:a.changeDetection,inputs:a.inputs,outputs:a.outputs,hostListeners:a.hostListeners,hostProperties:a.hostProperties,hostAttributes:a.hostAttributes,providers:a.providers,viewProviders:a.viewProviders,queries:a.queries,viewQueries:a.viewQueries,entryComponents:a.entryComponents,componentViewType:a.componentViewType,rendererType:a.rendererType,componentFactory:a.componentFactory,template:t});return t&&o.initComponentFactory(a.componentFactory,t.ngContentSelectors),o._directiveCache.set(n,e),o._summaryCache.set(n,e.toSummary()),e};if(a.isComponent){var c=this._directiveNormalizer.normalizeTemplate({ngModuleType:t,componentType:n,moduleUrl:rn(this._reflector,n,s),encapsulation:a.template.encapsulation,template:a.template.template,templateUrl:a.template.templateUrl,styles:a.template.styles,styleUrls:a.template.styleUrls,animations:a.template.animations,interpolation:a.template.interpolation});return c.syncResult?(u(c.syncResult),null):r?(this._reportError(an(n),n),null):c.asyncResult.then(u)}return u(null),null}},t.prototype.getNonNormalizedDirectiveMetadata=function(t){var n=this;if(t=e.resolveForwardRef(t),!t)return null;var r=this._nonNormalizedDirectiveCache.get(t);if(r)return r;var o=this._directiveResolver.resolve(t,!1);if(!o)return null;var i;if(o instanceof e.Component){U("styles",o.styles),U("styleUrls",o.styleUrls),B("interpolation",o.interpolation);var s=o.animations;i=new Bo({encapsulation:o.encapsulation,template:o.template,templateUrl:o.templateUrl,styles:o.styles,styleUrls:o.styleUrls,animations:s,interpolation:o.interpolation,isInline:!!o.template})}var a=null,u=[],c=[],l=o.selector;o instanceof e.Component?(a=o.changeDetection,o.viewProviders&&(u=this._getProvidersMetadata(o.viewProviders,c,'viewProviders for "'+sn(t)+'"',[],t)),o.entryComponents&&(c=en(o.entryComponents).map(function(t){return n._getEntryComponentMetadata(t)}).concat(c)),l||(l=this._schemaRegistry.getDefaultComponentElementName())):l||(this._reportError(h("Directive "+sn(t)+" has no selector, please add it!"),t),l="error");var p=[];null!=o.providers&&(p=this._getProvidersMetadata(o.providers,c,'providers for "'+sn(t)+'"',[],t));var f=[],d=[];null!=o.queries&&(f=this._getQueriesMetadata(o.queries,!1,t),d=this._getQueriesMetadata(o.queries,!0,t));var y=Ho.create({selector:l,exportAs:o.exportAs,isComponent:!!i,type:this._getTypeMetadata(t),template:i,changeDetection:a,inputs:o.inputs,outputs:o.outputs,host:o.host,providers:p,viewProviders:u,queries:f,viewQueries:d,entryComponents:c,componentViewType:i?this.getComponentViewClass(t):void 0,rendererType:i?this.getRendererType(t):void 0,componentFactory:void 0});return i&&(y.componentFactory=this.getComponentFactory(l,t,y.inputs,y.outputs)),r={metadata:y,annotation:o},this._nonNormalizedDirectiveCache.set(t,r),r},t.prototype.getDirectiveMetadata=function(t){var e=this._directiveCache.get(t);return e||this._reportError(h("Illegal state: getDirectiveMetadata can only be called after loadNgModuleDirectiveAndPipeMetadata for a module that declares it. Directive "+sn(t)+"."),t),e},t.prototype.getDirectiveSummary=function(t){var e=this._loadSummary(t,Fo.Directive);return e||this._reportError(h("Illegal state: Could not load the summary for directive "+sn(t)+"."),t),e},t.prototype.isDirective=function(t){return this._directiveResolver.isDirective(t)},t.prototype.isPipe=function(t){return this._pipeResolver.isPipe(t)},t.prototype.getNgModuleSummary=function(t){var e=this._loadSummary(t,Fo.NgModule);if(!e){var n=this.getNgModuleMetadata(t,!1);e=n?n.toSummary():null,e&&this._summaryCache.set(t,e)}return e},t.prototype.loadNgModuleDirectiveAndPipeMetadata=function(t,e,n){var r=this;void 0===n&&(n=!0);var o=this.getNgModuleMetadata(t,n),i=[];return o&&(o.declaredDirectives.forEach(function(n){var o=r._loadDirectiveMetadata(t,n.reference,e);o&&i.push(o)}),o.declaredPipes.forEach(function(t){return r._loadPipeMetadata(t.reference)})),Promise.all(i)},t.prototype.getNgModuleMetadata=function(t,n){var r=this;void 0===n&&(n=!0),t=e.resolveForwardRef(t);var o=this._ngModuleCache.get(t);if(o)return o;var i=this._ngModuleResolver.resolve(t,n);if(!i)return null;var s=[],a=[],u=[],c=[],l=[],p=[],f=[],d=[],y=[];i.imports&&en(i.imports).forEach(function(e){var n;if(nn(e))n=e;else if(e&&e.ngModule){var o=e;n=o.ngModule,o.providers&&p.push.apply(p,r._getProvidersMetadata(o.providers,f,"provider for the NgModule '"+sn(n)+"'",[],e))}if(!n)return void r._reportError(h("Unexpected value '"+sn(e)+"' imported by the module '"+sn(t)+"'"),t);if(!r._checkSelfImport(t,n)){var i=r.getNgModuleSummary(n);return i?void c.push(i):void r._reportError(h("Unexpected "+r._getTypeDescriptor(e)+" '"+sn(e)+"' imported by the module '"+sn(t)+"'. Please add a @NgModule annotation."),t)}}),i.exports&&en(i.exports).forEach(function(e){if(!nn(e))return void r._reportError(h("Unexpected value '"+sn(e)+"' exported by the module '"+sn(t)+"'"),t);var n=r.getNgModuleSummary(e);n?l.push(n):a.push(r._getIdentifierMetadata(e))});var v=this._getTransitiveNgModuleMetadata(c,l);i.declarations&&en(i.declarations).forEach(function(e){if(!nn(e))return void r._reportError(h("Unexpected value '"+sn(e)+"' declared by the module '"+sn(t)+"'"),t);var n=r._getIdentifierMetadata(e);if(r._directiveResolver.isDirective(e))v.addDirective(n),s.push(n),r._addTypeToModule(e,t);else{if(!r._pipeResolver.isPipe(e))return void r._reportError(h("Unexpected "+r._getTypeDescriptor(e)+" '"+sn(e)+"' declared by the module '"+sn(t)+"'. Please add a @Pipe/@Directive/@Component annotation."),t);v.addPipe(n),v.pipes.push(n),u.push(n),r._addTypeToModule(e,t)}});var m=[],g=[];return a.forEach(function(e){v.directivesSet.has(e.reference)?(m.push(e),v.addExportedDirective(e)):v.pipesSet.has(e.reference)?(g.push(e),v.addExportedPipe(e)):r._reportError(h("Can't export "+r._getTypeDescriptor(e.reference)+" "+sn(e.reference)+" from "+sn(t)+" as it was neither declared nor imported!"),t)}),i.providers&&p.push.apply(p,this._getProvidersMetadata(i.providers,f,"provider for the NgModule '"+sn(t)+"'",[],t)),i.entryComponents&&f.push.apply(f,en(i.entryComponents).map(function(t){return r._getEntryComponentMetadata(t)})),i.bootstrap&&en(i.bootstrap).forEach(function(e){return nn(e)?void d.push(r._getIdentifierMetadata(e)):void r._reportError(h("Unexpected value '"+sn(e)+"' used in the bootstrap property of module '"+sn(t)+"'"),t)}),f.push.apply(f,d.map(function(t){return r._getEntryComponentMetadata(t.reference)})),i.schemas&&y.push.apply(y,en(i.schemas)),o=new zo({type:this._getTypeMetadata(t),providers:p,entryComponents:f,bootstrapComponents:d,schemas:y,declaredDirectives:s,exportedDirectives:m,declaredPipes:u,exportedPipes:g,importedModules:c,exportedModules:l,transitiveModule:v,id:i.id}),f.forEach(function(t){return v.addEntryComponent(t)}),p.forEach(function(t){return v.addProvider(t,o.type)}),v.addModule(o.type),this._ngModuleCache.set(t,o),o},t.prototype._checkSelfImport=function(t,e){return t===e?(this._reportError(h("'"+sn(t)+"' module can't import itself"),t),!0):!1},t.prototype._getTypeDescriptor=function(t){return this._directiveResolver.isDirective(t)?"directive":this._pipeResolver.isPipe(t)?"pipe":this._ngModuleResolver.isNgModule(t)?"module":t.provide?"provider":"value"},t.prototype._addTypeToModule=function(t,e){var n=this._ngModuleOfTypes.get(t);n&&n!==e&&this._reportError(h("Type "+sn(t)+" is part of the declarations of 2 modules: "+sn(n)+" and "+sn(e)+"! "+("Please consider moving "+sn(t)+" to a higher module that imports "+sn(n)+" and "+sn(e)+". ")+("You can also create a new NgModule that exports and includes "+sn(t)+" then import that NgModule in "+sn(n)+" and "+sn(e)+".")),e),this._ngModuleOfTypes.set(t,e)},t.prototype._getTransitiveNgModuleMetadata=function(t,e){var n=new Go,r=new Map;return t.concat(e).forEach(function(t){t.modules.forEach(function(t){return n.addModule(t)}),t.entryComponents.forEach(function(t){return n.addEntryComponent(t)});var e=new Set;t.providers.forEach(function(t){var o=T(t.provider.token),i=r.get(o);i||(i=new Set,r.set(o,i));var s=t.module.reference;(e.has(o)||!i.has(s))&&(i.add(s),e.add(o),n.addProvider(t.provider,t.module))})}),e.forEach(function(t){t.exportedDirectives.forEach(function(t){return n.addExportedDirective(t)}),t.exportedPipes.forEach(function(t){return n.addExportedPipe(t)})}),t.forEach(function(t){t.exportedDirectives.forEach(function(t){return n.addDirective(t)}),t.exportedPipes.forEach(function(t){return n.addPipe(t)})}),n},t.prototype._getIdentifierMetadata=function(t){return t=e.resolveForwardRef(t),{reference:t}},t.prototype.isInjectable=function(t){var n=this._reflector.annotations(t);return n.some(function(t){return t.constructor===e.Injectable})},t.prototype.getInjectableSummary=function(t){return{summaryKind:Fo.Injectable,type:this._getTypeMetadata(t,null,!1)}},t.prototype._getInjectableMetadata=function(t,e){void 0===e&&(e=null);var n=this._loadSummary(t,Fo.Injectable);return n?n.type:this._getTypeMetadata(t,e)},t.prototype._getTypeMetadata=function(t,n,r){void 0===n&&(n=null),void 0===r&&(r=!0);var o=this._getIdentifierMetadata(t);return{reference:o.reference,diDeps:this._getDependenciesMetadata(o.reference,n,r),lifecycleHooks:e.ɵLIFECYCLE_HOOKS_VALUES.filter(function(t){return $e(t,o.reference)})}},t.prototype._getFactoryMetadata=function(t,n){return void 0===n&&(n=null),t=e.resolveForwardRef(t),{reference:t,diDeps:this._getDependenciesMetadata(t,n)}},t.prototype.getPipeMetadata=function(t){var e=this._pipeCache.get(t);return e||this._reportError(h("Illegal state: getPipeMetadata can only be called after loadNgModuleDirectiveAndPipeMetadata for a module that declares it. Pipe "+sn(t)+"."),t),e},t.prototype.getPipeSummary=function(t){var e=this._loadSummary(t,Fo.Pipe);return e||this._reportError(h("Illegal state: Could not load the summary for pipe "+sn(t)+"."),t),e},t.prototype.getOrLoadPipeMetadata=function(t){var e=this._pipeCache.get(t);return e||(e=this._loadPipeMetadata(t)),e},t.prototype._loadPipeMetadata=function(t){t=e.resolveForwardRef(t);var n=this._pipeResolver.resolve(t),r=new qo({type:this._getTypeMetadata(t),name:n.name,pure:n.pure});return this._pipeCache.set(t,r),this._summaryCache.set(t,r.toSummary()),r},t.prototype._getDependenciesMetadata=function(t,n,r){var o=this;void 0===r&&(r=!0);var i=!1,s=n||this._reflector.parameters(t)||[],a=s.map(function(t){var n=!1,r=!1,s=!1,a=!1,u=!1,c=null;return Array.isArray(t)?t.forEach(function(t){t instanceof e.Host?r=!0:t instanceof e.Self?s=!0:t instanceof e.SkipSelf?a=!0:t instanceof e.Optional?u=!0:t instanceof e.Attribute?(n=!0,c=t.attributeName):t instanceof e.Inject?c=t.token:t instanceof e.InjectionToken?c=t:nn(t)&&null==c&&(c=t)}):c=t,null==c?(i=!0,null):{isAttribute:n,isHost:r,isSelf:s,isSkipSelf:a,isOptional:u,token:o._getTokenMetadata(c)}});if(i){var u=a.map(function(t){return t?sn(t.token):"?"}).join(", "),c="Can't resolve all parameters for "+sn(t)+": ("+u+").";r?this._reportError(h(c),t):this._console.warn("Warning: "+c+" This will become an error in Angular v5.x")}return a},t.prototype._getTokenMetadata=function(t){t=e.resolveForwardRef(t);var n;return n="string"==typeof t?{value:t}:{identifier:{reference:t}}},t.prototype._getProvidersMetadata=function(t,n,r,o,i){var s=this;return void 0===o&&(o=[]),t.forEach(function(a,u){if(Array.isArray(a))s._getProvidersMetadata(a,n,r,o);else{a=e.resolveForwardRef(a);var c=void 0;if(a&&"object"==typeof a&&a.hasOwnProperty("provide"))s._validateProvider(a),c=new Wo(a.provide,a);else if(nn(a))c=new Wo(a,{useClass:a});else if(void 0===a)s._reportError(h("Encountered undefined provider! Usually this means you have a circular dependencies (might be caused by using 'barrel' index.ts files."));else{var l=t.reduce(function(t,e,n){return u>n?t.push(""+sn(e)):n==u?t.push("?"+sn(e)+"?"):n==u+1&&t.push("..."),t},[]).join(", ");s._reportError(h("Invalid "+(r?r:"provider")+" - only instances of Provider and Type are allowed, got: ["+l+"]"),i)}c.token===ae(wu.ANALYZE_FOR_ENTRY_COMPONENTS)?n.push.apply(n,s._getEntryComponentsFromProvider(c,i)):o.push(s.getProviderMetadata(c))}}),o},t.prototype._validateProvider=function(t){t.hasOwnProperty("useClass")&&null==t.useClass&&this._reportError(h("Invalid provider for "+sn(t.provide)+". useClass cannot be "+t.useClass+".\n Usually it happens when:\n 1. There's a circular dependency (might be caused by using index.ts (barrel) files).\n 2. Class was used before it was declared. Use forwardRef in this case."))},t.prototype._getEntryComponentsFromProvider=function(t,e){var n=this,r=[],o=[];return t.useFactory||t.useExisting||t.useClass?(this._reportError(h("The ANALYZE_FOR_ENTRY_COMPONENTS token only supports useValue!"),e), +[]):t.multi?(on(t.useValue,o),o.forEach(function(t){var e=n._getEntryComponentMetadata(t.reference,!1);e&&r.push(e)}),r):(this._reportError(h("The ANALYZE_FOR_ENTRY_COMPONENTS token only supports 'multi = true'!"),e),[])},t.prototype._getEntryComponentMetadata=function(t,e){void 0===e&&(e=!0);var n=this.getNonNormalizedDirectiveMetadata(t);if(n&&n.metadata.isComponent)return{componentType:t,componentFactory:n.metadata.componentFactory};var r=this._loadSummary(t,Fo.Directive);if(r&&r.isComponent)return{componentType:t,componentFactory:r.componentFactory};if(e)throw h(t.name+" cannot be used as an entry component.")},t.prototype.getProviderMetadata=function(t){var e,n=null,r=null,o=this._getTokenMetadata(t.token);return t.useClass?(n=this._getInjectableMetadata(t.useClass,t.dependencies),e=n.diDeps,t.token===t.useClass&&(o={identifier:n})):t.useFactory&&(r=this._getFactoryMetadata(t.useFactory,t.dependencies),e=r.diDeps),{token:o,useClass:n,useValue:t.useValue,useFactory:r,useExisting:t.useExisting?this._getTokenMetadata(t.useExisting):null,deps:e,multi:t.multi}},t.prototype._getQueriesMetadata=function(t,e,n){var r=this,o=[];return Object.keys(t).forEach(function(i){var s=t[i];s.isViewQuery===e&&o.push(r._getQueryMetadata(s,i,n))}),o},t.prototype._queryVarBindings=function(t){return t.split(/\s*,\s*/)},t.prototype._getQueryMetadata=function(t,e,n){var r,o=this;return"string"==typeof t.selector?r=this._queryVarBindings(t.selector).map(function(t){return o._getTokenMetadata(t)}):(t.selector||this._reportError(h("Can't construct a query for the property \""+e+'" of "'+sn(n)+"\" since the query selector wasn't defined."),n),r=[this._getTokenMetadata(t.selector)]),{selectors:r,first:t.first,descendants:t.descendants,propertyName:e,read:t.read?this._getTokenMetadata(t.read):null}},t.prototype._reportError=function(t,e,n){if(!this._errorCollector)throw t;this._errorCollector(t,e),n&&this._errorCollector(t,n)},t}();Kc.decorators=[{type:F}],Kc.ctorParameters=function(){return[{type:Ko},{type:qc},{type:Uc},{type:zc},{type:Gc},{type:Mu},{type:Lc},{type:e.ɵConsole},{type:uo,decorators:[{type:e.Optional}]},{type:e.ɵReflectorReader},{type:void 0,decorators:[{type:e.Optional},{type:e.Inject,args:[Wc]}]}]};var Qc=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return zr(e,t),e.prototype.visitOther=function(t,e){e.push({reference:t})},e}(Co),$c={};$c.Const=0,$c[$c.Const]="Const";var Xc=function(){function t(t){void 0===t&&(t=null),this.modifiers=t,t||(this.modifiers=[])}return t.prototype.visitType=function(){},t.prototype.hasModifier=function(t){return-1!==this.modifiers.indexOf(t)},t}(),Zc={};Zc.Dynamic=0,Zc.Bool=1,Zc.String=2,Zc.Int=3,Zc.Number=4,Zc.Function=5,Zc.Inferred=6,Zc[Zc.Dynamic]="Dynamic",Zc[Zc.Bool]="Bool",Zc[Zc.String]="String",Zc[Zc.Int]="Int",Zc[Zc.Number]="Number",Zc[Zc.Function]="Function",Zc[Zc.Inferred]="Inferred";var Yc=function(t){function e(e,n){void 0===n&&(n=null);var r=t.call(this,n)||this;return r.name=e,r}return zr(e,t),e.prototype.visitType=function(t,e){return t.visitBuiltintType(this,e)},e}(Xc),Jc=function(t){function e(e,n){void 0===n&&(n=null);var r=t.call(this,n)||this;return r.value=e,r}return zr(e,t),e.prototype.visitType=function(t,e){return t.visitExpressionType(this,e)},e}(Xc),tl=function(t){function e(e,n){void 0===n&&(n=null);var r=t.call(this,n)||this;return r.of=e,r}return zr(e,t),e.prototype.visitType=function(t,e){return t.visitArrayType(this,e)},e}(Xc),el=function(t){function e(e,n){void 0===n&&(n=null);var r=t.call(this,n)||this;return r.valueType=e,r}return zr(e,t),e.prototype.visitType=function(t,e){return t.visitMapType(this,e)},e}(Xc),nl=new Yc(Zc.Dynamic),rl=new Yc(Zc.Inferred),ol=new Yc(Zc.Bool),il=(new Yc(Zc.Int),new Yc(Zc.Number),new Yc(Zc.String),new Yc(Zc.Function),{});il.Equals=0,il.NotEquals=1,il.Identical=2,il.NotIdentical=3,il.Minus=4,il.Plus=5,il.Divide=6,il.Multiply=7,il.Modulo=8,il.And=9,il.Or=10,il.Lower=11,il.LowerEquals=12,il.Bigger=13,il.BiggerEquals=14,il[il.Equals]="Equals",il[il.NotEquals]="NotEquals",il[il.Identical]="Identical",il[il.NotIdentical]="NotIdentical",il[il.Minus]="Minus",il[il.Plus]="Plus",il[il.Divide]="Divide",il[il.Multiply]="Multiply",il[il.Modulo]="Modulo",il[il.And]="And",il[il.Or]="Or",il[il.Lower]="Lower",il[il.LowerEquals]="LowerEquals",il[il.Bigger]="Bigger",il[il.BiggerEquals]="BiggerEquals";var sl=function(){function t(t,e){this.type=t,this.sourceSpan=e}return t.prototype.visitExpression=function(){},t.prototype.prop=function(t,e){return new Sl(this,t,null,e)},t.prototype.key=function(t,e,n){return void 0===e&&(e=null),new xl(this,t,e,n)},t.prototype.callMethod=function(t,e,n){return new fl(this,t,e,null,n)},t.prototype.callFn=function(t,e){return new dl(this,t,null,e)},t.prototype.instantiate=function(t,e,n){return void 0===e&&(e=null),new yl(this,t,e,n)},t.prototype.conditional=function(t,e,n){return void 0===e&&(e=null),new gl(this,t,e,null,n)},t.prototype.equals=function(t,e){return new El(il.Equals,this,t,null,e)},t.prototype.notEquals=function(t,e){return new El(il.NotEquals,this,t,null,e)},t.prototype.identical=function(t,e){return new El(il.Identical,this,t,null,e)},t.prototype.notIdentical=function(t,e){return new El(il.NotIdentical,this,t,null,e)},t.prototype.minus=function(t,e){return new El(il.Minus,this,t,null,e)},t.prototype.plus=function(t,e){return new El(il.Plus,this,t,null,e)},t.prototype.divide=function(t,e){return new El(il.Divide,this,t,null,e)},t.prototype.multiply=function(t,e){return new El(il.Multiply,this,t,null,e)},t.prototype.modulo=function(t,e){return new El(il.Modulo,this,t,null,e)},t.prototype.and=function(t,e){return new El(il.And,this,t,null,e)},t.prototype.or=function(t,e){return new El(il.Or,this,t,null,e)},t.prototype.lower=function(t,e){return new El(il.Lower,this,t,null,e)},t.prototype.lowerEquals=function(t,e){return new El(il.LowerEquals,this,t,null,e)},t.prototype.bigger=function(t,e){return new El(il.Bigger,this,t,null,e)},t.prototype.biggerEquals=function(t,e){return new El(il.BiggerEquals,this,t,null,e)},t.prototype.isBlank=function(t){return this.equals(Il,t)},t.prototype.cast=function(t,e){return new bl(this,t,e)},t.prototype.toStmt=function(){return new Vl(this)},t}(),al={};al.This=0,al.Super=1,al.CatchError=2,al.CatchStack=3,al[al.This]="This",al[al.Super]="Super",al[al.CatchError]="CatchError",al[al.CatchStack]="CatchStack";var ul=function(t){function e(e,n,r){void 0===n&&(n=null);var o=t.call(this,n,r)||this;return"string"==typeof e?(o.name=e,o.builtin=null):(o.name=null,o.builtin=e),o}return zr(e,t),e.prototype.visitExpression=function(t,e){return t.visitReadVarExpr(this,e)},e.prototype.set=function(t){return new cl(this.name,t,null,this.sourceSpan)},e}(sl),cl=function(t){function e(e,n,r,o){void 0===r&&(r=null);var i=t.call(this,r||n.type,o)||this;return i.name=e,i.value=n,i}return zr(e,t),e.prototype.visitExpression=function(t,e){return t.visitWriteVarExpr(this,e)},e.prototype.toDeclStmt=function(t,e){return void 0===t&&(t=null),void 0===e&&(e=null),new jl(this.name,this.value,t,e,this.sourceSpan)},e}(sl),ll=function(t){function e(e,n,r,o,i){void 0===o&&(o=null);var s=t.call(this,o||r.type,i)||this;return s.receiver=e,s.index=n,s.value=r,s}return zr(e,t),e.prototype.visitExpression=function(t,e){return t.visitWriteKeyExpr(this,e)},e}(sl),pl=function(t){function e(e,n,r,o,i){void 0===o&&(o=null);var s=t.call(this,o||r.type,i)||this;return s.receiver=e,s.name=n,s.value=r,s}return zr(e,t),e.prototype.visitExpression=function(t,e){return t.visitWritePropExpr(this,e)},e}(sl),hl={};hl.ConcatArray=0,hl.SubscribeObservable=1,hl.Bind=2,hl[hl.ConcatArray]="ConcatArray",hl[hl.SubscribeObservable]="SubscribeObservable",hl[hl.Bind]="Bind";var fl=function(t){function e(e,n,r,o,i){void 0===o&&(o=null);var s=t.call(this,o,i)||this;return s.receiver=e,s.args=r,"string"==typeof n?(s.name=n,s.builtin=null):(s.name=null,s.builtin=n),s}return zr(e,t),e.prototype.visitExpression=function(t,e){return t.visitInvokeMethodExpr(this,e)},e}(sl),dl=function(t){function e(e,n,r,o){void 0===r&&(r=null);var i=t.call(this,r,o)||this;return i.fn=e,i.args=n,i}return zr(e,t),e.prototype.visitExpression=function(t,e){return t.visitInvokeFunctionExpr(this,e)},e}(sl),yl=function(t){function e(e,n,r,o){var i=t.call(this,r,o)||this;return i.classExpr=e,i.args=n,i}return zr(e,t),e.prototype.visitExpression=function(t,e){return t.visitInstantiateExpr(this,e)},e}(sl),vl=function(t){function e(e,n,r){void 0===n&&(n=null);var o=t.call(this,n,r)||this;return o.value=e,o}return zr(e,t),e.prototype.visitExpression=function(t,e){return t.visitLiteralExpr(this,e)},e}(sl),ml=function(t){function e(e,n,r,o){void 0===n&&(n=null),void 0===r&&(r=null);var i=t.call(this,n,o)||this;return i.value=e,i.typeParams=r,i}return zr(e,t),e.prototype.visitExpression=function(t,e){return t.visitExternalExpr(this,e)},e}(sl),gl=function(t){function e(e,n,r,o,i){void 0===r&&(r=null),void 0===o&&(o=null);var s=t.call(this,o||n.type,i)||this;return s.condition=e,s.falseCase=r,s.trueCase=n,s}return zr(e,t),e.prototype.visitExpression=function(t,e){return t.visitConditionalExpr(this,e)},e}(sl),_l=function(t){function e(e,n){var r=t.call(this,ol,n)||this;return r.condition=e,r}return zr(e,t),e.prototype.visitExpression=function(t,e){return t.visitNotExpr(this,e)},e}(sl),bl=function(t){function e(e,n,r){var o=t.call(this,n,r)||this;return o.value=e,o}return zr(e,t),e.prototype.visitExpression=function(t,e){return t.visitCastExpr(this,e)},e}(sl),wl=function(){function t(t,e){void 0===e&&(e=null),this.name=t,this.type=e}return t}(),Cl=function(t){function e(e,n,r,o){void 0===r&&(r=null);var i=t.call(this,r,o)||this;return i.params=e,i.statements=n,i}return zr(e,t),e.prototype.visitExpression=function(t,e){return t.visitFunctionExpr(this,e)},e.prototype.toDeclStmt=function(t,e){return void 0===e&&(e=null),new Ll(t,this.params,this.statements,this.type,e,this.sourceSpan)},e}(sl),El=function(t){function e(e,n,r,o,i){void 0===o&&(o=null);var s=t.call(this,o||n.type,i)||this;return s.operator=e,s.rhs=r,s.lhs=n,s}return zr(e,t),e.prototype.visitExpression=function(t,e){return t.visitBinaryOperatorExpr(this,e)},e}(sl),Sl=function(t){function e(e,n,r,o){void 0===r&&(r=null);var i=t.call(this,r,o)||this;return i.receiver=e,i.name=n,i}return zr(e,t),e.prototype.visitExpression=function(t,e){return t.visitReadPropExpr(this,e)},e.prototype.set=function(t){return new pl(this.receiver,this.name,t,null,this.sourceSpan)},e}(sl),xl=function(t){function e(e,n,r,o){void 0===r&&(r=null);var i=t.call(this,r,o)||this;return i.receiver=e,i.index=n,i}return zr(e,t),e.prototype.visitExpression=function(t,e){return t.visitReadKeyExpr(this,e)},e.prototype.set=function(t){return new ll(this.receiver,this.index,t,null,this.sourceSpan)},e}(sl),Tl=function(t){function e(e,n,r){void 0===n&&(n=null);var o=t.call(this,n,r)||this;return o.entries=e,o}return zr(e,t),e.prototype.visitExpression=function(t,e){return t.visitLiteralArrayExpr(this,e)},e}(sl),Pl=function(){function t(t,e,n){void 0===n&&(n=!1),this.key=t,this.value=e,this.quoted=n}return t}(),Al=function(t){function e(e,n,r){void 0===n&&(n=null);var o=t.call(this,n,r)||this;return o.entries=e,o.valueType=null,n&&(o.valueType=n.valueType),o}return zr(e,t),e.prototype.visitExpression=function(t,e){return t.visitLiteralMapExpr(this,e)},e}(sl),Ol=function(t){function e(e,n){var r=t.call(this,e[e.length-1].type,n)||this;return r.parts=e,r}return zr(e,t),e.prototype.visitExpression=function(t,e){return t.visitCommaExpr(this,e)},e}(sl),Ml=new ul(al.This),Rl=new ul(al.Super),kl=(new ul(al.CatchError),new ul(al.CatchStack),new vl(null,null)),Il=new vl(null,rl),Nl={};Nl.Final=0,Nl.Private=1,Nl[Nl.Final]="Final",Nl[Nl.Private]="Private";var Dl=function(){function t(t,e){void 0===t&&(t=null),this.modifiers=t,this.sourceSpan=e,t||(this.modifiers=[])}return t.prototype.visitStatement=function(){},t.prototype.hasModifier=function(t){return-1!==this.modifiers.indexOf(t)},t}(),jl=function(t){function e(e,n,r,o,i){void 0===r&&(r=null),void 0===o&&(o=null);var s=t.call(this,o,i)||this;return s.name=e,s.value=n,s.type=r||n.type,s}return zr(e,t),e.prototype.visitStatement=function(t,e){return t.visitDeclareVarStmt(this,e)},e}(Dl),Ll=function(t){function e(e,n,r,o,i,s){void 0===o&&(o=null),void 0===i&&(i=null);var a=t.call(this,i,s)||this;return a.name=e,a.params=n,a.statements=r,a.type=o,a}return zr(e,t),e.prototype.visitStatement=function(t,e){return t.visitDeclareFunctionStmt(this,e)},e}(Dl),Vl=function(t){function e(e,n){var r=t.call(this,null,n)||this;return r.expr=e,r}return zr(e,t),e.prototype.visitStatement=function(t,e){return t.visitExpressionStmt(this,e)},e}(Dl),Fl=function(t){function e(e,n){var r=t.call(this,null,n)||this;return r.value=e,r}return zr(e,t),e.prototype.visitStatement=function(t,e){return t.visitReturnStmt(this,e)},e}(Dl),Ul=function(){function t(t,e){void 0===t&&(t=null),this.type=t,this.modifiers=e,e||(this.modifiers=[])}return t.prototype.hasModifier=function(t){return-1!==this.modifiers.indexOf(t)},t}(),Bl=function(t){function e(e,n,r){void 0===n&&(n=null),void 0===r&&(r=null);var o=t.call(this,n,r)||this;return o.name=e,o}return zr(e,t),e}(Ul),Hl=function(t){function e(e,n,r,o,i){void 0===o&&(o=null),void 0===i&&(i=null);var s=t.call(this,o,i)||this;return s.name=e,s.params=n,s.body=r,s}return zr(e,t),e}(Ul),ql=function(t){function e(e,n,r,o){void 0===r&&(r=null),void 0===o&&(o=null);var i=t.call(this,r,o)||this;return i.name=e,i.body=n,i}return zr(e,t),e}(Ul),zl=function(t){function e(e,n,r,o,i,s,a,u){void 0===a&&(a=null);var c=t.call(this,a,u)||this;return c.name=e,c.parent=n,c.fields=r,c.getters=o,c.constructorMethod=i,c.methods=s,c}return zr(e,t),e.prototype.visitStatement=function(t,e){return t.visitDeclareClassStmt(this,e)},e}(Dl),Gl=function(t){function e(e,n,r,o){void 0===r&&(r=[]);var i=t.call(this,null,o)||this;return i.condition=e,i.trueCase=n,i.falseCase=r,i}return zr(e,t),e.prototype.visitStatement=function(t,e){return t.visitIfStmt(this,e)},e}(Dl),Wl=function(t){function e(e,n,r){var o=t.call(this,null,r)||this;return o.bodyStmts=e,o.catchStmts=n,o}return zr(e,t),e.prototype.visitStatement=function(t,e){return t.visitTryCatchStmt(this,e)},e}(Dl),Kl=function(t){function e(e,n){var r=t.call(this,null,n)||this;return r.error=e,r}return zr(e,t),e.prototype.visitStatement=function(t,e){return t.visitThrowStmt(this,e)},e}(Dl),Ql=function(){function t(){}return t.prototype.transformExpr=function(t){return t},t.prototype.transformStmt=function(t){return t},t.prototype.visitReadVarExpr=function(t,e){return this.transformExpr(t,e)},t.prototype.visitWriteVarExpr=function(t,e){return this.transformExpr(new cl(t.name,t.value.visitExpression(this,e),t.type,t.sourceSpan),e)},t.prototype.visitWriteKeyExpr=function(t,e){return this.transformExpr(new ll(t.receiver.visitExpression(this,e),t.index.visitExpression(this,e),t.value.visitExpression(this,e),t.type,t.sourceSpan),e)},t.prototype.visitWritePropExpr=function(t,e){return this.transformExpr(new pl(t.receiver.visitExpression(this,e),t.name,t.value.visitExpression(this,e),t.type,t.sourceSpan),e)},t.prototype.visitInvokeMethodExpr=function(t,e){var n=t.builtin||t.name;return this.transformExpr(new fl(t.receiver.visitExpression(this,e),n,this.visitAllExpressions(t.args,e),t.type,t.sourceSpan),e)},t.prototype.visitInvokeFunctionExpr=function(t,e){return this.transformExpr(new dl(t.fn.visitExpression(this,e),this.visitAllExpressions(t.args,e),t.type,t.sourceSpan),e)},t.prototype.visitInstantiateExpr=function(t,e){return this.transformExpr(new yl(t.classExpr.visitExpression(this,e),this.visitAllExpressions(t.args,e),t.type,t.sourceSpan),e)},t.prototype.visitLiteralExpr=function(t,e){return this.transformExpr(t,e)},t.prototype.visitExternalExpr=function(t,e){return this.transformExpr(t,e)},t.prototype.visitConditionalExpr=function(t,e){return this.transformExpr(new gl(t.condition.visitExpression(this,e),t.trueCase.visitExpression(this,e),t.falseCase.visitExpression(this,e),t.type,t.sourceSpan),e)},t.prototype.visitNotExpr=function(t,e){return this.transformExpr(new _l(t.condition.visitExpression(this,e),t.sourceSpan),e)},t.prototype.visitCastExpr=function(t,e){return this.transformExpr(new bl(t.value.visitExpression(this,e),t.type,t.sourceSpan),e)},t.prototype.visitFunctionExpr=function(t,e){return this.transformExpr(new Cl(t.params,this.visitAllStatements(t.statements,e),t.type,t.sourceSpan),e)},t.prototype.visitBinaryOperatorExpr=function(t,e){return this.transformExpr(new El(t.operator,t.lhs.visitExpression(this,e),t.rhs.visitExpression(this,e),t.type,t.sourceSpan),e)},t.prototype.visitReadPropExpr=function(t,e){return this.transformExpr(new Sl(t.receiver.visitExpression(this,e),t.name,t.type,t.sourceSpan),e)},t.prototype.visitReadKeyExpr=function(t,e){return this.transformExpr(new xl(t.receiver.visitExpression(this,e),t.index.visitExpression(this,e),t.type,t.sourceSpan),e)},t.prototype.visitLiteralArrayExpr=function(t,e){return this.transformExpr(new Tl(this.visitAllExpressions(t.entries,e),t.type,t.sourceSpan),e)},t.prototype.visitLiteralMapExpr=function(t,e){var n=this,r=t.entries.map(function(t){return new Pl(t.key,t.value.visitExpression(n,e),t.quoted)}),o=new el(t.valueType);return this.transformExpr(new Al(r,o,t.sourceSpan),e)},t.prototype.visitCommaExpr=function(t,e){return this.transformExpr(new Ol(this.visitAllExpressions(t.parts,e),t.sourceSpan),e)},t.prototype.visitAllExpressions=function(t,e){var n=this;return t.map(function(t){return t.visitExpression(n,e)})},t.prototype.visitDeclareVarStmt=function(t,e){return this.transformStmt(new jl(t.name,t.value.visitExpression(this,e),t.type,t.modifiers,t.sourceSpan),e)},t.prototype.visitDeclareFunctionStmt=function(t,e){return this.transformStmt(new Ll(t.name,t.params,this.visitAllStatements(t.statements,e),t.type,t.modifiers,t.sourceSpan),e)},t.prototype.visitExpressionStmt=function(t,e){return this.transformStmt(new Vl(t.expr.visitExpression(this,e),t.sourceSpan),e)},t.prototype.visitReturnStmt=function(t,e){return this.transformStmt(new Fl(t.value.visitExpression(this,e),t.sourceSpan),e)},t.prototype.visitDeclareClassStmt=function(t,e){var n=this,r=t.parent.visitExpression(this,e),o=t.getters.map(function(t){return new ql(t.name,n.visitAllStatements(t.body,e),t.type,t.modifiers)}),i=t.constructorMethod&&new Hl(t.constructorMethod.name,t.constructorMethod.params,this.visitAllStatements(t.constructorMethod.body,e),t.constructorMethod.type,t.constructorMethod.modifiers),s=t.methods.map(function(t){return new Hl(t.name,t.params,n.visitAllStatements(t.body,e),t.type,t.modifiers)});return this.transformStmt(new zl(t.name,r,t.fields,o,i,s,t.modifiers,t.sourceSpan),e)},t.prototype.visitIfStmt=function(t,e){return this.transformStmt(new Gl(t.condition.visitExpression(this,e),this.visitAllStatements(t.trueCase,e),this.visitAllStatements(t.falseCase,e),t.sourceSpan),e)},t.prototype.visitTryCatchStmt=function(t,e){return this.transformStmt(new Wl(this.visitAllStatements(t.bodyStmts,e),this.visitAllStatements(t.catchStmts,e),t.sourceSpan),e)},t.prototype.visitThrowStmt=function(t,e){return this.transformStmt(new Kl(t.error.visitExpression(this,e),t.sourceSpan),e)},t.prototype.visitCommentStmt=function(t,e){return this.transformStmt(t,e)},t.prototype.visitAllStatements=function(t,e){var n=this;return t.map(function(t){return t.visitStatement(n,e)})},t}(),$l=function(){function t(){}return t.prototype.visitReadVarExpr=function(t){return t},t.prototype.visitWriteVarExpr=function(t,e){return t.value.visitExpression(this,e),t},t.prototype.visitWriteKeyExpr=function(t,e){return t.receiver.visitExpression(this,e),t.index.visitExpression(this,e),t.value.visitExpression(this,e),t},t.prototype.visitWritePropExpr=function(t,e){return t.receiver.visitExpression(this,e),t.value.visitExpression(this,e),t},t.prototype.visitInvokeMethodExpr=function(t,e){return t.receiver.visitExpression(this,e),this.visitAllExpressions(t.args,e),t},t.prototype.visitInvokeFunctionExpr=function(t,e){return t.fn.visitExpression(this,e),this.visitAllExpressions(t.args,e),t},t.prototype.visitInstantiateExpr=function(t,e){return t.classExpr.visitExpression(this,e),this.visitAllExpressions(t.args,e),t},t.prototype.visitLiteralExpr=function(t){return t},t.prototype.visitExternalExpr=function(t){return t},t.prototype.visitConditionalExpr=function(t,e){return t.condition.visitExpression(this,e),t.trueCase.visitExpression(this,e),t.falseCase.visitExpression(this,e),t},t.prototype.visitNotExpr=function(t,e){return t.condition.visitExpression(this,e),t},t.prototype.visitCastExpr=function(t,e){return t.value.visitExpression(this,e),t},t.prototype.visitFunctionExpr=function(t,e){return this.visitAllStatements(t.statements,e),t},t.prototype.visitBinaryOperatorExpr=function(t,e){return t.lhs.visitExpression(this,e),t.rhs.visitExpression(this,e),t},t.prototype.visitReadPropExpr=function(t,e){return t.receiver.visitExpression(this,e),t},t.prototype.visitReadKeyExpr=function(t,e){return t.receiver.visitExpression(this,e),t.index.visitExpression(this,e),t},t.prototype.visitLiteralArrayExpr=function(t,e){return this.visitAllExpressions(t.entries,e),t},t.prototype.visitLiteralMapExpr=function(t,e){var n=this;return t.entries.forEach(function(t){return t.value.visitExpression(n,e)}),t},t.prototype.visitCommaExpr=function(t,e){this.visitAllExpressions(t.parts,e)},t.prototype.visitAllExpressions=function(t,e){var n=this;t.forEach(function(t){return t.visitExpression(n,e)})},t.prototype.visitDeclareVarStmt=function(t,e){return t.value.visitExpression(this,e),t},t.prototype.visitDeclareFunctionStmt=function(t,e){return this.visitAllStatements(t.statements,e),t},t.prototype.visitExpressionStmt=function(t,e){return t.expr.visitExpression(this,e),t},t.prototype.visitReturnStmt=function(t,e){return t.value.visitExpression(this,e),t},t.prototype.visitDeclareClassStmt=function(t,e){var n=this;return t.parent.visitExpression(this,e),t.getters.forEach(function(t){return n.visitAllStatements(t.body,e)}),t.constructorMethod&&this.visitAllStatements(t.constructorMethod.body,e),t.methods.forEach(function(t){return n.visitAllStatements(t.body,e)}),t},t.prototype.visitIfStmt=function(t,e){return t.condition.visitExpression(this,e),this.visitAllStatements(t.trueCase,e),this.visitAllStatements(t.falseCase,e),t},t.prototype.visitTryCatchStmt=function(t,e){return this.visitAllStatements(t.bodyStmts,e),this.visitAllStatements(t.catchStmts,e),t},t.prototype.visitThrowStmt=function(t,e){return t.error.visitExpression(this,e),t},t.prototype.visitCommentStmt=function(t){return t},t.prototype.visitAllStatements=function(t,e){var n=this;t.forEach(function(t){return t.visitStatement(n,e)})},t}(),Xl=function(t){function e(){var e=t.apply(this,arguments)||this;return e.varNames=new Set,e}return zr(e,t),e.prototype.visitDeclareFunctionStmt=function(t){return t},e.prototype.visitDeclareClassStmt=function(t){return t},e.prototype.visitReadVarExpr=function(t){return this.varNames.add(t.name),null},e}($l),Zl=function(t){function e(e){var n=t.call(this)||this;return n.sourceSpan=e,n}return zr(e,t),e.prototype._clone=function(t){var e=Object.create(t.constructor.prototype);for(var n in t)e[n]=t[n];return e},e.prototype.transformExpr=function(t){return t.sourceSpan||(t=this._clone(t),t.sourceSpan=this.sourceSpan),t},e.prototype.transformStmt=function(t){return t.sourceSpan||(t=this._clone(t),t.sourceSpan=this.sourceSpan),t},e}(Ql),Yl="$quoted$",Jl=function(){function t(){}return t.prototype.visitArray=function(t,e){var n=this;return yn(t.map(function(t){return p(t,n,null)}),e)},t.prototype.visitStringMap=function(t,e){var n=this,r=[],o=new Set(t&&t[Yl]);return Object.keys(t).forEach(function(e){r.push(new Pl(e,p(t[e],n,null),o.has(e)))}),new Al(r,e)},t.prototype.visitPrimitive=function(t,e){return _n(t,e)},t.prototype.visitOther=function(t){return t instanceof sl?t:hn({reference:t})},t}(),tp=function(){function t(t){this.compType=t}return t}(),ep=function(){function t(t,e,n){this.statements=t,this.ngModuleFactoryVar=e,this.dependencies=n}return t}(),np=function(){function t(){}return t.prototype.compile=function(t,e){var n=ot("NgModule",t.type),r=[],o=[],i=t.transitiveModule.entryComponents.map(function(e){return t.bootstrapComponents.some(function(t){return t.reference===e.componentType})&&o.push({reference:e.componentFactory}),r.push(new tp(e.componentType)),{reference:e.componentFactory}}),s=new rp(t,i,o,n),a=new Ou(t,e,n);a.parse().forEach(function(t){return s.addProvider(t)});var u=s.build(),c=g(t.type)+"NgFactory",l=pn(c).set(hn(ue(wu.NgModuleFactory)).instantiate([pn(u.name),hn(t.type)],fn(ue(wu.NgModuleFactory),[fn(t.type)],[$c.Const]))).toDeclStmt(null,[Nl.Final]),p=[u,l];if(t.id){var h=hn(ue(wu.RegisterModuleFactoryFn)).callFn([_n(t.id),pn(c)]).toStmt();p.push(h)}return new ep(p,c,r)},t}();np.decorators=[{type:F}],np.ctorParameters=function(){return[]};var rp=function(){function t(t,e,n,r){this._ngModuleMeta=t,this._entryComponentFactories=e,this._bootstrapComponentFactories=n,this._sourceSpan=r,this.fields=[],this.getters=[],this.methods=[],this.ctorStmts=[],this._lazyProps=new Map,this._tokens=[],this._instances=new Map,this._createStmts=[],this._destroyStmts=[]}return t.prototype.addProvider=function(t){var n=this,r=t.providers.map(function(t){return n._getProviderValue(t)}),o="_"+x(t.token)+"_"+this._instances.size,i=this._createProviderProperty(o,t,r,t.multiProvider,t.eager);if(-1!==t.lifecycleHooks.indexOf(e.ɵLifecycleHooks.OnDestroy)){var s=i.callMethod("ngOnDestroy",[]);t.eager||(s=this._lazyProps.get(i.name).and(s)),this._destroyStmts.push(s.toStmt())}this._tokens.push(t.token),this._instances.set(T(t.token),i)},t.prototype.build=function(){var t=this,e=this._tokens.map(function(e){var n=t._instances.get(T(e));return new Gl(ip.token.identical(En(e)),[new Fl(n)])}),n=[new Hl("createInternal",[],this._createStmts.concat(new Fl(this._instances.get(this._ngModuleMeta.type.reference))),fn(this._ngModuleMeta.type)),new Hl("getInternal",[new wl(ip.token.name,nl),new wl(ip.notFoundResult.name,nl)],e.concat([new Fl(ip.notFoundResult)]),nl),new Hl("destroyInternal",[],this._destroyStmts)],r=[pn(op.parent.name),yn(this._entryComponentFactories.map(function(t){return hn(t)})),yn(this._bootstrapComponentFactories.map(function(t){return hn(t)}))],o=g(this._ngModuleMeta.type)+"Injector";return bn({name:o,ctorParams:[new wl(op.parent.name,fn(ue(wu.Injector)))],parent:hn(ue(wu.NgModuleInjector),[fn(this._ngModuleMeta.type)]),parentArgs:r,builders:[{methods:n},this]})},t.prototype._getProviderValue=function(t){var e,n=this;if(null!=t.useExisting)e=this._getDependency({token:t.useExisting});else if(null!=t.useFactory){var r=t.deps||t.useFactory.diDeps,o=r.map(function(t){return n._getDependency(t)});e=hn(t.useFactory).callFn(o)}else if(null!=t.useClass){var r=t.deps||t.useClass.diDeps,o=r.map(function(t){return n._getDependency(t)});e=hn(t.useClass).instantiate(o,fn(t.useClass))}else e=Cn(t.useValue);return e},t.prototype._createProviderProperty=function(t,e,n,r,o){var i,s;if(r?(i=yn(n),s=new tl(nl)):(i=n[0],s=n[0].type),s||(s=nl),o)this.fields.push(new Bl(t,s)),this._createStmts.push(Ml.prop(t).set(i).toStmt());else{var a=Ml.prop("_"+t);this.fields.push(new Bl(a.name,s));var u=[new Gl(a.isBlank(),[a.set(i).toStmt()]),new Fl(a)];this.getters.push(new ql(t,u,s)),this._lazyProps.set(t,a)}return Ml.prop(t)},t.prototype._getDependency=function(t){var e=null;if(t.isValue&&(e=_n(t.value)),t.isSkipSelf||(t.token&&(T(t.token)===ae(wu.Injector)?e=Ml:T(t.token)===ae(wu.ComponentFactoryResolver)&&(e=Ml.prop("componentFactoryResolver"))),e||(e=this._instances.get(T(t.token)))),!e){var n=[En(t.token)];t.isOptional&&n.push(kl),e=op.parent.callMethod("get",n)}return e},t}(),op=function(){function t(){}return t}();op.parent=Ml.prop("parent");var ip=function(){function t(){}return t}();ip.token=pn("token"),ip.notFoundResult=pn("notFoundResult");var sp=3,ap="# sourceMappingURL=data:application/json;base64,",up=function(){function t(t){void 0===t&&(t=null),this.file=t,this.sourcesContent=new Map,this.lines=[],this.lastCol0=0,this.hasMappings=!1}return t.prototype.addSource=function(t,e){return void 0===e&&(e=null),this.sourcesContent.has(t)||this.sourcesContent.set(t,e),this},t.prototype.addLine=function(){return this.lines.push([]),this.lastCol0=0,this},t.prototype.addMapping=function(t,e,n,r){if(!this.currentLine)throw new Error("A line must be added before mappings can be added");if(null!=e&&!this.sourcesContent.has(e))throw new Error('Unknown source file "'+e+'"');if(null==t)throw new Error("The column in the generated code must be provided");if(t<this.lastCol0)throw new Error("Mapping should be added in output order");if(e&&(null==n||null==r))throw new Error("The source location must be provided when a source url is provided");return this.hasMappings=!0,this.lastCol0=t,this.currentLine.push({col0:t,sourceUrl:e,sourceLine0:n,sourceCol0:r}),this},Object.defineProperty(t.prototype,"currentLine",{get:function(){return this.lines.slice(-1)[0]},enumerable:!0,configurable:!0}),t.prototype.toJSON=function(){var t=this;if(!this.hasMappings)return null;var e=new Map,n=[],r=[];Array.from(this.sourcesContent.keys()).forEach(function(o,i){e.set(o,i),n.push(o),r.push(t.sourcesContent.get(o)||null)});var o="",i=0,s=0,a=0,u=0;return this.lines.forEach(function(t){i=0,o+=t.map(function(t){var n=xn(t.col0-i);return i=t.col0,null!=t.sourceUrl&&(n+=xn(e.get(t.sourceUrl)-s),s=e.get(t.sourceUrl),n+=xn(t.sourceLine0-a),a=t.sourceLine0,n+=xn(t.sourceCol0-u),u=t.sourceCol0),n}).join(","),o+=";"}),o=o.slice(0,-1),{file:this.file||"",version:sp,sourceRoot:"",sources:n,sourcesContent:r,mappings:o}},t.prototype.toJsComment=function(){return this.hasMappings?"//"+ap+Sn(JSON.stringify(this,null,0)):""},t}(),cp="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",lp=/'|\\|\n|\r|\$/g,pp=/^[$A-Z_][0-9A-Z_$]*$/i,hp=" ",fp=pn("error"),dp=pn("stack"),yp=function(){function t(t){this.indent=t,this.parts=[],this.srcSpans=[]}return t}(),vp=function(){function t(t,e){this._exportedVars=t,this._indent=e,this._classes=[],this._lines=[new yp(e)]}return t.createRoot=function(e){return new t(e,0)},Object.defineProperty(t.prototype,"_currentLine",{get:function(){return this._lines[this._lines.length-1]},enumerable:!0,configurable:!0}),t.prototype.isExportedVar=function(t){return-1!==this._exportedVars.indexOf(t)},t.prototype.println=function(t,e){void 0===e&&(e=""),this.print(t,e,!0)},t.prototype.lineIsEmpty=function(){return 0===this._currentLine.parts.length},t.prototype.print=function(t,e,n){void 0===n&&(n=!1),e.length>0&&(this._currentLine.parts.push(e),this._currentLine.srcSpans.push(t&&t.sourceSpan||null)),n&&this._lines.push(new yp(this._indent))},t.prototype.removeEmptyLastLine=function(){this.lineIsEmpty()&&this._lines.pop()},t.prototype.incIndent=function(){this._indent++,this._currentLine.indent=this._indent},t.prototype.decIndent=function(){this._indent--,this._currentLine.indent=this._indent},t.prototype.pushClass=function(t){this._classes.push(t)},t.prototype.popClass=function(){return this._classes.pop()},Object.defineProperty(t.prototype,"currentClass",{get:function(){return this._classes.length>0?this._classes[this._classes.length-1]:null},enumerable:!0,configurable:!0}),t.prototype.toSource=function(){return this.sourceLines.map(function(t){return t.parts.length>0?An(t.indent)+t.parts.join(""):""}).join("\n")},t.prototype.toSourceMapGenerator=function(t,e,n){void 0===n&&(n=0);for(var r=new up(e),o=!1,i=function(){o||(r.addSource(t," ").addMapping(0,t,0,0),o=!0)},s=0;n>s;s++)r.addLine(),i();return this.sourceLines.forEach(function(t,e){r.addLine();for(var n=t.srcSpans,s=t.parts,a=t.indent*hp.length,u=0;u<n.length&&!n[u];)a+=s[u].length,u++;for(u<n.length&&0===e&&0===a?o=!0:i();u<n.length;){var c=n[u],l=c.start.file,p=c.start.line,h=c.start.col;for(r.addSource(l.url,l.content).addMapping(a,l.url,p,h), +a+=s[u].length,u++;u<n.length&&(c===n[u]||!n[u]);)a+=s[u].length,u++}}),r},Object.defineProperty(t.prototype,"sourceLines",{get:function(){return this._lines.length&&0===this._lines[this._lines.length-1].parts.length?this._lines.slice(0,-1):this._lines},enumerable:!0,configurable:!0}),t}(),mp=function(){function t(t){this._escapeDollarInStrings=t}return t.prototype.visitExpressionStmt=function(t,e){return t.expr.visitExpression(this,e),e.println(t,";"),null},t.prototype.visitReturnStmt=function(t,e){return e.print(t,"return "),t.value.visitExpression(this,e),e.println(t,";"),null},t.prototype.visitCastExpr=function(){},t.prototype.visitDeclareClassStmt=function(){},t.prototype.visitIfStmt=function(t,e){e.print(t,"if ("),t.condition.visitExpression(this,e),e.print(t,") {");var n=null!=t.falseCase&&t.falseCase.length>0;return t.trueCase.length<=1&&!n?(e.print(t," "),this.visitAllStatements(t.trueCase,e),e.removeEmptyLastLine(),e.print(t," ")):(e.println(),e.incIndent(),this.visitAllStatements(t.trueCase,e),e.decIndent(),n&&(e.println(t,"} else {"),e.incIndent(),this.visitAllStatements(t.falseCase,e),e.decIndent())),e.println(t,"}"),null},t.prototype.visitTryCatchStmt=function(){},t.prototype.visitThrowStmt=function(t,e){return e.print(t,"throw "),t.error.visitExpression(this,e),e.println(t,";"),null},t.prototype.visitCommentStmt=function(t,e){var n=t.comment.split("\n");return n.forEach(function(n){e.println(t,"// "+n)}),null},t.prototype.visitDeclareVarStmt=function(){},t.prototype.visitWriteVarExpr=function(t,e){var n=e.lineIsEmpty();return n||e.print(t,"("),e.print(t,t.name+" = "),t.value.visitExpression(this,e),n||e.print(t,")"),null},t.prototype.visitWriteKeyExpr=function(t,e){var n=e.lineIsEmpty();return n||e.print(t,"("),t.receiver.visitExpression(this,e),e.print(t,"["),t.index.visitExpression(this,e),e.print(t,"] = "),t.value.visitExpression(this,e),n||e.print(t,")"),null},t.prototype.visitWritePropExpr=function(t,e){var n=e.lineIsEmpty();return n||e.print(t,"("),t.receiver.visitExpression(this,e),e.print(t,"."+t.name+" = "),t.value.visitExpression(this,e),n||e.print(t,")"),null},t.prototype.visitInvokeMethodExpr=function(t,e){t.receiver.visitExpression(this,e);var n=t.name;return null!=t.builtin&&(n=this.getBuiltinMethodName(t.builtin),null==n)?null:(e.print(t,"."+n+"("),this.visitAllExpressions(t.args,e,","),e.print(t,")"),null)},t.prototype.getBuiltinMethodName=function(){},t.prototype.visitInvokeFunctionExpr=function(t,e){return t.fn.visitExpression(this,e),e.print(t,"("),this.visitAllExpressions(t.args,e,","),e.print(t,")"),null},t.prototype.visitReadVarExpr=function(t,e){var n=t.name;if(null!=t.builtin)switch(t.builtin){case al.Super:n="super";break;case al.This:n="this";break;case al.CatchError:n=fp.name;break;case al.CatchStack:n=dp.name;break;default:throw new Error("Unknown builtin variable "+t.builtin)}return e.print(t,n),null},t.prototype.visitInstantiateExpr=function(t,e){return e.print(t,"new "),t.classExpr.visitExpression(this,e),e.print(t,"("),this.visitAllExpressions(t.args,e,","),e.print(t,")"),null},t.prototype.visitLiteralExpr=function(t,e){var n=t.value;return"string"==typeof n?e.print(t,Pn(n,this._escapeDollarInStrings)):e.print(t,""+n),null},t.prototype.visitExternalExpr=function(){},t.prototype.visitConditionalExpr=function(t,e){return e.print(t,"("),t.condition.visitExpression(this,e),e.print(t,"? "),t.trueCase.visitExpression(this,e),e.print(t,": "),t.falseCase.visitExpression(this,e),e.print(t,")"),null},t.prototype.visitNotExpr=function(t,e){return e.print(t,"!"),t.condition.visitExpression(this,e),null},t.prototype.visitFunctionExpr=function(){},t.prototype.visitDeclareFunctionStmt=function(){},t.prototype.visitBinaryOperatorExpr=function(t,e){var n;switch(t.operator){case il.Equals:n="==";break;case il.Identical:n="===";break;case il.NotEquals:n="!=";break;case il.NotIdentical:n="!==";break;case il.And:n="&&";break;case il.Or:n="||";break;case il.Plus:n="+";break;case il.Minus:n="-";break;case il.Divide:n="/";break;case il.Multiply:n="*";break;case il.Modulo:n="%";break;case il.Lower:n="<";break;case il.LowerEquals:n="<=";break;case il.Bigger:n=">";break;case il.BiggerEquals:n=">=";break;default:throw new Error("Unknown operator "+t.operator)}return e.print(t,"("),t.lhs.visitExpression(this,e),e.print(t," "+n+" "),t.rhs.visitExpression(this,e),e.print(t,")"),null},t.prototype.visitReadPropExpr=function(t,e){return t.receiver.visitExpression(this,e),e.print(t,"."),e.print(t,t.name),null},t.prototype.visitReadKeyExpr=function(t,e){return t.receiver.visitExpression(this,e),e.print(t,"["),t.index.visitExpression(this,e),e.print(t,"]"),null},t.prototype.visitLiteralArrayExpr=function(t,e){var n=t.entries.length>1;return e.print(t,"[",n),e.incIndent(),this.visitAllExpressions(t.entries,e,",",n),e.decIndent(),e.print(t,"]",n),null},t.prototype.visitLiteralMapExpr=function(t,e){var n=this,r=t.entries.length>1;return e.print(t,"{",r),e.incIndent(),this.visitAllObjects(function(r){e.print(t,Pn(r.key,n._escapeDollarInStrings,r.quoted)+": "),r.value.visitExpression(n,e)},t.entries,e,",",r),e.decIndent(),e.print(t,"}",r),null},t.prototype.visitCommaExpr=function(t,e){return e.print(t,"("),this.visitAllExpressions(t.parts,e,","),e.print(t,")"),null},t.prototype.visitAllExpressions=function(t,e,n,r){var o=this;void 0===r&&(r=!1),this.visitAllObjects(function(t){return t.visitExpression(o,e)},t,e,n,r)},t.prototype.visitAllObjects=function(t,e,n,r,o){void 0===o&&(o=!1);for(var i=0;i<e.length;i++)i>0&&n.print(null,r,o),t(e[i]);o&&n.println()},t.prototype.visitAllStatements=function(t,e){var n=this;t.forEach(function(t){return t.visitStatement(n,e)})},t}(),gp="/debug/lib",_p=function(){function t(t){this._importResolver=t}return t.prototype.emitStatements=function(t,e,n,r,o){var i=this;void 0===o&&(o="");var s=new bp(e,this._importResolver),a=vp.createRoot(r);s.visitAllStatements(n,a);var u=o?o.split("\n"):[];s.reexports.forEach(function(t,n){var r=t.map(function(t){return t.name+" as "+t.as}).join(",");u.push("export {"+r+"} from '"+i._importResolver.fileNameToModuleName(n,e)+"';")}),s.importsWithPrefixes.forEach(function(t,n){u.push("imp"+("ort * as "+t+" from '"+i._importResolver.fileNameToModuleName(n,e)+"';"))});var c=a.toSourceMapGenerator(t,e,u.length).toJsComment(),l=u.concat([a.toSource(),c]);return c&&l.push(""),l.join("\n")},t}(),bp=function(t){function e(e,n){var r=t.call(this,!1)||this;return r._genFilePath=e,r._importResolver=n,r.typeExpression=0,r.importsWithPrefixes=new Map,r.reexports=new Map,r}return zr(e,t),e.prototype.visitType=function(t,e,n){void 0===n&&(n="any"),null!=t?(this.typeExpression++,t.visitType(this,e),this.typeExpression--):e.print(null,n)},e.prototype.visitLiteralExpr=function(e,n){var r=e.value;return null==r&&e.type!=rl?(n.print(e,"("+r+" as any)"),null):t.prototype.visitLiteralExpr.call(this,e,n)},e.prototype.visitLiteralArrayExpr=function(e,n){0===e.entries.length&&n.print(e,"(");var r=t.prototype.visitLiteralArrayExpr.call(this,e,n);return 0===e.entries.length&&n.print(e," as any[])"),r},e.prototype.visitExternalExpr=function(t,e){return this._visitIdentifier(t.value,t.typeParams,e),null},e.prototype.visitDeclareVarStmt=function(t,e){if(e.isExportedVar(t.name)&&t.value instanceof ml&&!t.type){var n=this._resolveStaticSymbol(t.value.value),r=n.name,o=n.filePath,i=n.members;if(0===i.length&&o!==this._genFilePath){var s=this.reexports.get(o);return s||(s=[],this.reexports.set(o,s)),s.push({name:r,as:t.name}),null}}return e.isExportedVar(t.name)&&e.print(t,"export "),t.hasModifier(Nl.Final)?e.print(t,"const"):e.print(t,"var"),e.print(t," "+t.name),this._printColonType(t.type,e),e.print(t," = "),t.value.visitExpression(this,e),e.println(t,";"),null},e.prototype.visitCastExpr=function(t,e){return e.print(t,"(<"),t.type.visitType(this,e),e.print(t,">"),t.value.visitExpression(this,e),e.print(t,")"),null},e.prototype.visitInstantiateExpr=function(t,e){return e.print(t,"new "),this.typeExpression++,t.classExpr.visitExpression(this,e),this.typeExpression--,e.print(t,"("),this.visitAllExpressions(t.args,e,","),e.print(t,")"),null},e.prototype.visitDeclareClassStmt=function(t,e){var n=this;return e.pushClass(t),e.isExportedVar(t.name)&&e.print(t,"export "),e.print(t,"class "+t.name),null!=t.parent&&(e.print(t," extends "),this.typeExpression++,t.parent.visitExpression(this,e),this.typeExpression--),e.println(t," {"),e.incIndent(),t.fields.forEach(function(t){return n._visitClassField(t,e)}),null!=t.constructorMethod&&this._visitClassConstructor(t,e),t.getters.forEach(function(t){return n._visitClassGetter(t,e)}),t.methods.forEach(function(t){return n._visitClassMethod(t,e)}),e.decIndent(),e.println(t,"}"),e.popClass(),null},e.prototype._visitClassField=function(t,e){t.hasModifier(Nl.Private)&&e.print(null,"/*private*/ "),e.print(null,t.name),this._printColonType(t.type,e),e.println(null,";")},e.prototype._visitClassGetter=function(t,e){t.hasModifier(Nl.Private)&&e.print(null,"private "),e.print(null,"get "+t.name+"()"),this._printColonType(t.type,e),e.println(null," {"),e.incIndent(),this.visitAllStatements(t.body,e),e.decIndent(),e.println(null,"}")},e.prototype._visitClassConstructor=function(t,e){e.print(t,"constructor("),this._visitParams(t.constructorMethod.params,e),e.println(t,") {"),e.incIndent(),this.visitAllStatements(t.constructorMethod.body,e),e.decIndent(),e.println(t,"}")},e.prototype._visitClassMethod=function(t,e){t.hasModifier(Nl.Private)&&e.print(null,"private "),e.print(null,t.name+"("),this._visitParams(t.params,e),e.print(null,")"),this._printColonType(t.type,e,"void"),e.println(null," {"),e.incIndent(),this.visitAllStatements(t.body,e),e.decIndent(),e.println(null,"}")},e.prototype.visitFunctionExpr=function(t,e){return e.print(t,"("),this._visitParams(t.params,e),e.print(t,")"),this._printColonType(t.type,e,"void"),e.println(t," => {"),e.incIndent(),this.visitAllStatements(t.statements,e),e.decIndent(),e.print(t,"}"),null},e.prototype.visitDeclareFunctionStmt=function(t,e){return e.isExportedVar(t.name)&&e.print(t,"export "),e.print(t,"function "+t.name+"("),this._visitParams(t.params,e),e.print(t,")"),this._printColonType(t.type,e,"void"),e.println(t," {"),e.incIndent(),this.visitAllStatements(t.statements,e),e.decIndent(),e.println(t,"}"),null},e.prototype.visitTryCatchStmt=function(t,e){e.println(t,"try {"),e.incIndent(),this.visitAllStatements(t.bodyStmts,e),e.decIndent(),e.println(t,"} catch ("+fp.name+") {"),e.incIndent();var n=[dp.set(fp.prop("stack")).toDeclStmt(null,[Nl.Final])].concat(t.catchStmts);return this.visitAllStatements(n,e),e.decIndent(),e.println(t,"}"),null},e.prototype.visitBuiltintType=function(t,e){var n;switch(t.name){case Zc.Bool:n="boolean";break;case Zc.Dynamic:n="any";break;case Zc.Function:n="Function";break;case Zc.Number:n="number";break;case Zc.Int:n="number";break;case Zc.String:n="string";break;default:throw new Error("Unsupported builtin type "+t.name)}return e.print(null,n),null},e.prototype.visitExpressionType=function(t,e){return t.value.visitExpression(this,e),null},e.prototype.visitArrayType=function(t,e){return this.visitType(t.of,e),e.print(null,"[]"),null},e.prototype.visitMapType=function(t,e){return e.print(null,"{[key: string]:"),this.visitType(t.valueType,e),e.print(null,"}"),null},e.prototype.getBuiltinMethodName=function(t){var e;switch(t){case hl.ConcatArray:e="concat";break;case hl.SubscribeObservable:e="subscribe";break;case hl.Bind:e="bind";break;default:throw new Error("Unknown builtin method: "+t)}return e},e.prototype._visitParams=function(t,e){var n=this;this.visitAllObjects(function(t){e.print(null,t.name),n._printColonType(t.type,e)},t,e,",")},e.prototype._resolveStaticSymbol=function(t){var e=t.reference;if(!(e instanceof ao))throw new Error("Internal error: unknown identifier "+JSON.stringify(t));var n=this._importResolver.getTypeArity(e)||void 0,r=this._importResolver.getImportAs(e)||e;return{name:r.name,filePath:r.filePath,members:r.members,arity:n}},e.prototype._visitIdentifier=function(t,e,n){var r=this,o=this._resolveStaticSymbol(t),i=o.name,s=o.filePath,a=o.members,u=o.arity;if(s!=this._genFilePath){var c=this.importsWithPrefixes.get(s);null==c&&(c="import"+this.importsWithPrefixes.size,this.importsWithPrefixes.set(s,c)),n.print(null,c+".")}if(a.length?(n.print(null,i),n.print(null,"."),n.print(null,a.join("."))):n.print(null,i),this.typeExpression>0){var l=e&&e.length||0,p=(u||0)-l;if(l>0||p>0){if(n.print(null,"<"),l>0&&this.visitAllObjects(function(t){return t.visitType(r,n)},e,n,","),p>0)for(var h=0;p>h;h++)(h>0||l>0)&&n.print(null,","),n.print(null,"any");n.print(null,">")}}},e.prototype._printColonType=function(t,e,n){t!==rl&&(e.print(null,":"),this.visitType(t,e,n))},e}(mp),wp={};Mn(e.SecurityContext.HTML,["iframe|srcdoc","*|innerHTML","*|outerHTML"]),Mn(e.SecurityContext.STYLE,["*|style"]),Mn(e.SecurityContext.URL,["*|formAction","area|href","area|ping","audio|src","a|href","a|ping","blockquote|cite","body|background","del|cite","form|action","img|src","img|srcset","input|src","ins|cite","q|cite","source|src","source|srcset","track|src","video|poster","video|src"]),Mn(e.SecurityContext.RESOURCE_URL,["applet|code","applet|codebase","base|href","embed|src","frame|src","head|profile","html|manifest","iframe|src","link|href","media|src","object|codebase","object|data","script|src"]);var Cp="boolean",Ep="number",Sp="string",xp="object",Tp=["[Element]|textContent,%classList,className,id,innerHTML,*beforecopy,*beforecut,*beforepaste,*copy,*cut,*paste,*search,*selectstart,*webkitfullscreenchange,*webkitfullscreenerror,*wheel,outerHTML,#scrollLeft,#scrollTop","[HTMLElement]^[Element]|accessKey,contentEditable,dir,!draggable,!hidden,innerText,lang,*abort,*beforecopy,*beforecut,*beforepaste,*blur,*cancel,*canplay,*canplaythrough,*change,*click,*close,*contextmenu,*copy,*cuechange,*cut,*dblclick,*drag,*dragend,*dragenter,*dragleave,*dragover,*dragstart,*drop,*durationchange,*emptied,*ended,*error,*focus,*input,*invalid,*keydown,*keypress,*keyup,*load,*loadeddata,*loadedmetadata,*loadstart,*message,*mousedown,*mouseenter,*mouseleave,*mousemove,*mouseout,*mouseover,*mouseup,*mousewheel,*mozfullscreenchange,*mozfullscreenerror,*mozpointerlockchange,*mozpointerlockerror,*paste,*pause,*play,*playing,*progress,*ratechange,*reset,*resize,*scroll,*search,*seeked,*seeking,*select,*selectstart,*show,*stalled,*submit,*suspend,*timeupdate,*toggle,*volumechange,*waiting,*webglcontextcreationerror,*webglcontextlost,*webglcontextrestored,*webkitfullscreenchange,*webkitfullscreenerror,*wheel,outerText,!spellcheck,%style,#tabIndex,title,!translate","abbr,address,article,aside,b,bdi,bdo,cite,code,dd,dfn,dt,em,figcaption,figure,footer,header,i,kbd,main,mark,nav,noscript,rb,rp,rt,rtc,ruby,s,samp,section,small,strong,sub,sup,u,var,wbr^[HTMLElement]|accessKey,contentEditable,dir,!draggable,!hidden,innerText,lang,*abort,*beforecopy,*beforecut,*beforepaste,*blur,*cancel,*canplay,*canplaythrough,*change,*click,*close,*contextmenu,*copy,*cuechange,*cut,*dblclick,*drag,*dragend,*dragenter,*dragleave,*dragover,*dragstart,*drop,*durationchange,*emptied,*ended,*error,*focus,*input,*invalid,*keydown,*keypress,*keyup,*load,*loadeddata,*loadedmetadata,*loadstart,*message,*mousedown,*mouseenter,*mouseleave,*mousemove,*mouseout,*mouseover,*mouseup,*mousewheel,*mozfullscreenchange,*mozfullscreenerror,*mozpointerlockchange,*mozpointerlockerror,*paste,*pause,*play,*playing,*progress,*ratechange,*reset,*resize,*scroll,*search,*seeked,*seeking,*select,*selectstart,*show,*stalled,*submit,*suspend,*timeupdate,*toggle,*volumechange,*waiting,*webglcontextcreationerror,*webglcontextlost,*webglcontextrestored,*webkitfullscreenchange,*webkitfullscreenerror,*wheel,outerText,!spellcheck,%style,#tabIndex,title,!translate","media^[HTMLElement]|!autoplay,!controls,%crossOrigin,#currentTime,!defaultMuted,#defaultPlaybackRate,!disableRemotePlayback,!loop,!muted,*encrypted,#playbackRate,preload,src,%srcObject,#volume",":svg:^[HTMLElement]|*abort,*blur,*cancel,*canplay,*canplaythrough,*change,*click,*close,*contextmenu,*cuechange,*dblclick,*drag,*dragend,*dragenter,*dragleave,*dragover,*dragstart,*drop,*durationchange,*emptied,*ended,*error,*focus,*input,*invalid,*keydown,*keypress,*keyup,*load,*loadeddata,*loadedmetadata,*loadstart,*mousedown,*mouseenter,*mouseleave,*mousemove,*mouseout,*mouseover,*mouseup,*mousewheel,*pause,*play,*playing,*progress,*ratechange,*reset,*resize,*scroll,*seeked,*seeking,*select,*show,*stalled,*submit,*suspend,*timeupdate,*toggle,*volumechange,*waiting,%style,#tabIndex",":svg:graphics^:svg:|",":svg:animation^:svg:|*begin,*end,*repeat",":svg:geometry^:svg:|",":svg:componentTransferFunction^:svg:|",":svg:gradient^:svg:|",":svg:textContent^:svg:graphics|",":svg:textPositioning^:svg:textContent|","a^[HTMLElement]|charset,coords,download,hash,host,hostname,href,hreflang,name,password,pathname,ping,port,protocol,referrerPolicy,rel,rev,search,shape,target,text,type,username","area^[HTMLElement]|alt,coords,hash,host,hostname,href,!noHref,password,pathname,ping,port,protocol,referrerPolicy,search,shape,target,username","audio^media|","br^[HTMLElement]|clear","base^[HTMLElement]|href,target","body^[HTMLElement]|aLink,background,bgColor,link,*beforeunload,*blur,*error,*focus,*hashchange,*languagechange,*load,*message,*offline,*online,*pagehide,*pageshow,*popstate,*rejectionhandled,*resize,*scroll,*storage,*unhandledrejection,*unload,text,vLink","button^[HTMLElement]|!autofocus,!disabled,formAction,formEnctype,formMethod,!formNoValidate,formTarget,name,type,value","canvas^[HTMLElement]|#height,#width","content^[HTMLElement]|select","dl^[HTMLElement]|!compact","datalist^[HTMLElement]|","details^[HTMLElement]|!open","dialog^[HTMLElement]|!open,returnValue","dir^[HTMLElement]|!compact","div^[HTMLElement]|align","embed^[HTMLElement]|align,height,name,src,type,width","fieldset^[HTMLElement]|!disabled,name","font^[HTMLElement]|color,face,size","form^[HTMLElement]|acceptCharset,action,autocomplete,encoding,enctype,method,name,!noValidate,target","frame^[HTMLElement]|frameBorder,longDesc,marginHeight,marginWidth,name,!noResize,scrolling,src","frameset^[HTMLElement]|cols,*beforeunload,*blur,*error,*focus,*hashchange,*languagechange,*load,*message,*offline,*online,*pagehide,*pageshow,*popstate,*rejectionhandled,*resize,*scroll,*storage,*unhandledrejection,*unload,rows","hr^[HTMLElement]|align,color,!noShade,size,width","head^[HTMLElement]|","h1,h2,h3,h4,h5,h6^[HTMLElement]|align","html^[HTMLElement]|version","iframe^[HTMLElement]|align,!allowFullscreen,frameBorder,height,longDesc,marginHeight,marginWidth,name,referrerPolicy,%sandbox,scrolling,src,srcdoc,width","img^[HTMLElement]|align,alt,border,%crossOrigin,#height,#hspace,!isMap,longDesc,lowsrc,name,referrerPolicy,sizes,src,srcset,useMap,#vspace,#width","input^[HTMLElement]|accept,align,alt,autocapitalize,autocomplete,!autofocus,!checked,!defaultChecked,defaultValue,dirName,!disabled,%files,formAction,formEnctype,formMethod,!formNoValidate,formTarget,#height,!incremental,!indeterminate,max,#maxLength,min,#minLength,!multiple,name,pattern,placeholder,!readOnly,!required,selectionDirection,#selectionEnd,#selectionStart,#size,src,step,type,useMap,value,%valueAsDate,#valueAsNumber,#width","keygen^[HTMLElement]|!autofocus,challenge,!disabled,keytype,name","li^[HTMLElement]|type,#value","label^[HTMLElement]|htmlFor","legend^[HTMLElement]|align","link^[HTMLElement]|as,charset,%crossOrigin,!disabled,href,hreflang,integrity,media,rel,%relList,rev,%sizes,target,type","map^[HTMLElement]|name","marquee^[HTMLElement]|behavior,bgColor,direction,height,#hspace,#loop,#scrollAmount,#scrollDelay,!trueSpeed,#vspace,width","menu^[HTMLElement]|!compact","meta^[HTMLElement]|content,httpEquiv,name,scheme","meter^[HTMLElement]|#high,#low,#max,#min,#optimum,#value","ins,del^[HTMLElement]|cite,dateTime","ol^[HTMLElement]|!compact,!reversed,#start,type","object^[HTMLElement]|align,archive,border,code,codeBase,codeType,data,!declare,height,#hspace,name,standby,type,useMap,#vspace,width","optgroup^[HTMLElement]|!disabled,label","option^[HTMLElement]|!defaultSelected,!disabled,label,!selected,text,value","output^[HTMLElement]|defaultValue,%htmlFor,name,value","p^[HTMLElement]|align","param^[HTMLElement]|name,type,value,valueType","picture^[HTMLElement]|","pre^[HTMLElement]|#width","progress^[HTMLElement]|#max,#value","q,blockquote,cite^[HTMLElement]|","script^[HTMLElement]|!async,charset,%crossOrigin,!defer,event,htmlFor,integrity,src,text,type","select^[HTMLElement]|!autofocus,!disabled,#length,!multiple,name,!required,#selectedIndex,#size,value","shadow^[HTMLElement]|","source^[HTMLElement]|media,sizes,src,srcset,type","span^[HTMLElement]|","style^[HTMLElement]|!disabled,media,type","caption^[HTMLElement]|align","th,td^[HTMLElement]|abbr,align,axis,bgColor,ch,chOff,#colSpan,headers,height,!noWrap,#rowSpan,scope,vAlign,width","col,colgroup^[HTMLElement]|align,ch,chOff,#span,vAlign,width","table^[HTMLElement]|align,bgColor,border,%caption,cellPadding,cellSpacing,frame,rules,summary,%tFoot,%tHead,width","tr^[HTMLElement]|align,bgColor,ch,chOff,vAlign","tfoot,thead,tbody^[HTMLElement]|align,ch,chOff,vAlign","template^[HTMLElement]|","textarea^[HTMLElement]|autocapitalize,!autofocus,#cols,defaultValue,dirName,!disabled,#maxLength,#minLength,name,placeholder,!readOnly,!required,#rows,selectionDirection,#selectionEnd,#selectionStart,value,wrap","title^[HTMLElement]|text","track^[HTMLElement]|!default,kind,label,src,srclang","ul^[HTMLElement]|!compact,type","unknown^[HTMLElement]|","video^media|#height,poster,#width",":svg:a^:svg:graphics|",":svg:animate^:svg:animation|",":svg:animateMotion^:svg:animation|",":svg:animateTransform^:svg:animation|",":svg:circle^:svg:geometry|",":svg:clipPath^:svg:graphics|",":svg:cursor^:svg:|",":svg:defs^:svg:graphics|",":svg:desc^:svg:|",":svg:discard^:svg:|",":svg:ellipse^:svg:geometry|",":svg:feBlend^:svg:|",":svg:feColorMatrix^:svg:|",":svg:feComponentTransfer^:svg:|",":svg:feComposite^:svg:|",":svg:feConvolveMatrix^:svg:|",":svg:feDiffuseLighting^:svg:|",":svg:feDisplacementMap^:svg:|",":svg:feDistantLight^:svg:|",":svg:feDropShadow^:svg:|",":svg:feFlood^:svg:|",":svg:feFuncA^:svg:componentTransferFunction|",":svg:feFuncB^:svg:componentTransferFunction|",":svg:feFuncG^:svg:componentTransferFunction|",":svg:feFuncR^:svg:componentTransferFunction|",":svg:feGaussianBlur^:svg:|",":svg:feImage^:svg:|",":svg:feMerge^:svg:|",":svg:feMergeNode^:svg:|",":svg:feMorphology^:svg:|",":svg:feOffset^:svg:|",":svg:fePointLight^:svg:|",":svg:feSpecularLighting^:svg:|",":svg:feSpotLight^:svg:|",":svg:feTile^:svg:|",":svg:feTurbulence^:svg:|",":svg:filter^:svg:|",":svg:foreignObject^:svg:graphics|",":svg:g^:svg:graphics|",":svg:image^:svg:graphics|",":svg:line^:svg:geometry|",":svg:linearGradient^:svg:gradient|",":svg:mpath^:svg:|",":svg:marker^:svg:|",":svg:mask^:svg:|",":svg:metadata^:svg:|",":svg:path^:svg:geometry|",":svg:pattern^:svg:|",":svg:polygon^:svg:geometry|",":svg:polyline^:svg:geometry|",":svg:radialGradient^:svg:gradient|",":svg:rect^:svg:geometry|",":svg:svg^:svg:graphics|#currentScale,#zoomAndPan",":svg:script^:svg:|type",":svg:set^:svg:animation|",":svg:stop^:svg:|",":svg:style^:svg:|!disabled,media,title,type",":svg:switch^:svg:graphics|",":svg:symbol^:svg:|",":svg:tspan^:svg:textPositioning|",":svg:text^:svg:textPositioning|",":svg:textPath^:svg:textContent|",":svg:title^:svg:|",":svg:use^:svg:graphics|",":svg:view^:svg:|#zoomAndPan","data^[HTMLElement]|value","menuitem^[HTMLElement]|type,label,icon,!disabled,!checked,radiogroup,!default","summary^[HTMLElement]|","time^[HTMLElement]|dateTime"],Pp={"class":"className","for":"htmlFor",formaction:"formAction",innerHtml:"innerHTML",readonly:"readOnly",tabindex:"tabIndex"},Ap=function(t){function n(){var e=t.call(this)||this;return e._schema={},Tp.forEach(function(t){var n={},r=t.split("|"),o=r[0],i=r[1],s=i.split(","),a=o.split("^"),u=a[0],c=a[1];u.split(",").forEach(function(t){return e._schema[t.toLowerCase()]=n});var l=c&&e._schema[c.toLowerCase()];l&&Object.keys(l).forEach(function(t){n[t]=l[t]}),s.forEach(function(t){if(t.length>0)switch(t[0]){case"*":break;case"!":n[t.substring(1)]=Cp;break;case"#":n[t.substring(1)]=Ep;break;case"%":n[t.substring(1)]=xp;break;default:n[t]=Sp}})}),e}return zr(n,t),n.prototype.hasProperty=function(t,n,r){if(r.some(function(t){return t.name===e.NO_ERRORS_SCHEMA.name}))return!0;if(t.indexOf("-")>-1){if("ng-container"===t||"ng-content"===t)return!1;if(r.some(function(t){return t.name===e.CUSTOM_ELEMENTS_SCHEMA.name}))return!0}var o=this._schema[t.toLowerCase()]||this._schema.unknown;return!!o[n]},n.prototype.hasElement=function(t,n){if(n.some(function(t){return t.name===e.NO_ERRORS_SCHEMA.name}))return!0;if(t.indexOf("-")>-1){if("ng-container"===t||"ng-content"===t)return!0;if(n.some(function(t){return t.name===e.CUSTOM_ELEMENTS_SCHEMA.name}))return!0}return!!this._schema[t.toLowerCase()]},n.prototype.securityContext=function(t,n,r){r&&(n=this.getMappedPropName(n)),t=t.toLowerCase(),n=n.toLowerCase();var o=wp[t+"|"+n];return o?o:(o=wp["*|"+n],o?o:e.SecurityContext.NONE)},n.prototype.getMappedPropName=function(t){return Pp[t]||t},n.prototype.getDefaultComponentElementName=function(){return"ng-component"},n.prototype.validateProperty=function(t){if(t.toLowerCase().startsWith("on")){var e="Binding to event property '"+t+"' is disallowed for security reasons, "+("please use ("+t.slice(2)+")=...")+("\nIf '"+t+"' is a directive input, make sure the directive is imported by the")+" current module.";return{error:!0,msg:e}}return{error:!1}},n.prototype.validateAttribute=function(t){if(t.toLowerCase().startsWith("on")){var e="Binding to event attribute '"+t+"' is disallowed for security reasons, "+("please use ("+t.slice(2)+")=...");return{error:!0,msg:e}}return{error:!1}},n.prototype.allKnownElementNames=function(){return Object.keys(this._schema)},n.prototype.normalizeAnimationStyleProperty=function(t){return a(t)},n.prototype.normalizeAnimationStyleValue=function(t,e,n){var r="",o=n.toString().trim(),i=null;if(Rn(t)&&0!==n&&"0"!==n)if("number"==typeof n)r="px";else{var s=n.match(/^[+-]?[\d\.]+([a-z]*)$/);s&&0==s[1].length&&(i="Please provide a CSS unit value for "+e+":"+n)}return{error:i,value:o+r}},n}(Mu);Ap.decorators=[{type:F}],Ap.ctorParameters=function(){return[]};var Op=function(){function t(){this.strictStyling=!0}return t.prototype.shimCssText=function(t,e,n){void 0===n&&(n="");var r=In(t);return t=kn(t),t=this._insertDirectives(t),this._scopeCssText(t,e,n)+r},t.prototype._insertDirectives=function(t){return t=this._insertPolyfillDirectivesInCssText(t),this._insertPolyfillRulesInCssText(t)},t.prototype._insertPolyfillDirectivesInCssText=function(t){return t.replace(Rp,function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return t[2]+"{"})},t.prototype._insertPolyfillRulesInCssText=function(t){return t.replace(kp,function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n=t[0].replace(t[1],"").replace(t[2],"");return t[4]+n})},t.prototype._scopeCssText=function(t,e,n){var r=this._extractUnscopedRulesFromCssText(t);return t=this._insertPolyfillHostInCssText(t),t=this._convertColonHost(t),t=this._convertColonHostContext(t),t=this._convertShadowDOMSelectors(t),e&&(t=this._scopeSelectors(t,e,n)),t=t+"\n"+r,t.trim()},t.prototype._extractUnscopedRulesFromCssText=function(t){var e,n="";for(Ip.lastIndex=0;null!==(e=Ip.exec(t));){var r=e[0].replace(e[2],"").replace(e[1],e[4]);n+=r+"\n\n"}return n},t.prototype._convertColonHost=function(t){return this._convertColonRule(t,Lp,this._colonHostPartReplacer)},t.prototype._convertColonHostContext=function(t){return this._convertColonRule(t,Vp,this._colonHostContextPartReplacer)},t.prototype._convertColonRule=function(t,e,n){return t.replace(e,function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];if(t[2]){for(var r=t[2].split(","),o=[],i=0;i<r.length;i++){var s=r[i].trim();if(!s)break;o.push(n(Fp,s,t[3]))}return o.join(",")}return Fp+t[3]})},t.prototype._colonHostContextPartReplacer=function(t,e,n){return e.indexOf(Np)>-1?this._colonHostPartReplacer(t,e,n):t+e+n+", "+e+" "+t+n},t.prototype._colonHostPartReplacer=function(t,e,n){return t+e.replace(Np,"")+n},t.prototype._convertShadowDOMSelectors=function(t){return Bp.reduce(function(t,e){return t.replace(e," ")},t)},t.prototype._scopeSelectors=function(t,e,n){var r=this;return Nn(t,function(t){var o=t.selector,i=t.content;return"@"!=t.selector[0]?o=r._scopeSelector(t.selector,e,n,r.strictStyling):(t.selector.startsWith("@media")||t.selector.startsWith("@supports")||t.selector.startsWith("@page")||t.selector.startsWith("@document"))&&(i=r._scopeSelectors(t.content,e,n)),new th(o,i)})},t.prototype._scopeSelector=function(t,e,n,r){var o=this;return t.split(",").map(function(t){return t.trim().split(Hp)}).map(function(t){var i=t[0],s=t.slice(1),a=function(t){return o._selectorNeedsScoping(t,e)?r?o._applyStrictSelectorScope(t,e,n):o._applySelectorScope(t,e,n):t};return[a(i)].concat(s).join(" ")}).join(", ")},t.prototype._selectorNeedsScoping=function(t,e){var n=this._makeScopeMatcher(e);return!n.test(t)},t.prototype._makeScopeMatcher=function(t){var e=/\[/g,n=/\]/g;return t=t.replace(e,"\\[").replace(n,"\\]"),new RegExp("^("+t+")"+qp,"m")},t.prototype._applySelectorScope=function(t,e,n){return this._applySimpleSelectorScope(t,e,n)},t.prototype._applySimpleSelectorScope=function(t,e,n){if(zp.lastIndex=0,zp.test(t)){var r=this.strictStyling?"["+n+"]":e;return t.replace(Up,function(t,e){return e.replace(/([^:]*)(:*)(.*)/,function(t,e,n,o){return e+r+n+o})}).replace(zp,r+" ")}return e+" "+t},t.prototype._applyStrictSelectorScope=function(t,e,n){var r=this,o=/\[is=([^\]]*)\]/g;e=e.replace(o,function(){for(var t=[],e=1;e<arguments.length;e++)t[e-1]=arguments[e];return t[0]});var i="["+e+"]",s=function(t){var o=t.trim();if(!o)return"";if(t.indexOf(Fp)>-1)o=r._applySimpleSelectorScope(t,e,n);else{var s=t.replace(zp,"");if(s.length>0){var a=s.match(/([^:]*)(:*)(.*)/);a&&(o=a[1]+i+a[2]+a[3])}}return o},a=new Mp(t);t=a.content();for(var u,c="",l=0,p=/( |>|\+|~(?!=))\s*/g,h=t.indexOf(Fp);null!==(u=p.exec(t));){var f=u[1],d=t.slice(l,u.index).trim(),y=l>=h?s(d):d;c+=y+" "+f+" ",l=p.lastIndex}return c+=s(t.substring(l)),a.restore(c)},t.prototype._insertPolyfillHostInCssText=function(t){return t.replace(Wp,Dp).replace(Gp,Np)},t}(),Mp=function(){function t(t){var e=this;this.placeholders=[],this.index=0,t=t.replace(/(\[[^\]]*\])/g,function(t,n){var r="__ph-"+e.index+"__";return e.placeholders.push(n),e.index++,r}),this._content=t.replace(/(:nth-[-\w]+)(\([^)]+\))/g,function(t,n,r){var o="__ph-"+e.index+"__";return e.placeholders.push(r),e.index++,n+o})}return t.prototype.restore=function(t){var e=this;return t.replace(/__ph-(\d+)__/g,function(t,n){return e.placeholders[+n]})},t.prototype.content=function(){return this._content},t}(),Rp=/polyfill-next-selector[^}]*content:[\s]*?(['"])(.*?)\1[;\s]*}([^{]*?){/gim,kp=/(polyfill-rule)[^}]*(content:[\s]*(['"])(.*?)\3)[;\s]*[^}]*}/gim,Ip=/(polyfill-unscoped-rule)[^}]*(content:[\s]*(['"])(.*?)\3)[;\s]*[^}]*}/gim,Np="-shadowcsshost",Dp="-shadowcsscontext",jp=")(?:\\(((?:\\([^)(]*\\)|[^)(]*)+?)\\))?([^,{]*)",Lp=new RegExp("("+Np+jp,"gim"),Vp=new RegExp("("+Dp+jp,"gim"),Fp=Np+"-no-combinator",Up=/-shadowcsshost-no-combinator([^\s]*)/,Bp=[/::shadow/g,/::content/g,/\/shadow-deep\//g,/\/shadow\//g],Hp=/(?:>>>)|(?:\/deep\/)/g,qp="([>\\s~+[.,{:][\\s\\S]*)?$",zp=/-shadowcsshost/gim,Gp=/:host/gim,Wp=/:host-context/gim,Kp=/\/\*\s*[\s\S]*?\*\//g,Qp=/\/\*\s*#\s*sourceMappingURL=[\s\S]+?\*\//,$p=/(\s*)([^;\{\}]+?)(\s*)((?:{%BLOCK%}?\s*;?)|(?:\s*;))/g,Xp=/([{}])/g,Zp="{",Yp="}",Jp="%BLOCK%",th=function(){function t(t,e){this.selector=t,this.content=e}return t}(),eh=function(){function t(t,e){this.escapedString=t,this.blocks=e}return t}(),nh="%COMP%",rh="_nghost-"+nh,oh="_ngcontent-"+nh,ih=function(){function t(t,e,n,r){this.name=t, +this.moduleUrl=e,this.isShimmed=n,this.valuePlaceholder=r}return t}(),sh=function(){function t(t,e){this.componentStylesheet=t,this.externalStylesheets=e}return t}(),ah=function(){function t(t,e,n,r,o){this.statements=t,this.stylesVar=e,this.dependencies=n,this.isShimmed=r,this.meta=o}return t}(),uh=function(){function t(t){this._urlResolver=t,this._shadowCss=new Op}return t.prototype.compileComponent=function(t){var e=this,n=[],r=this._compileStyles(t,new Uo({styles:t.template.styles,styleUrls:t.template.styleUrls,moduleUrl:_(t.type)}),!0);return t.template.externalStylesheets.forEach(function(r){var o=e._compileStyles(t,r,!1);n.push(o)}),new sh(r,n)},t.prototype._compileStyles=function(t,n,r){for(var o=this,i=t.template.encapsulation===e.ViewEncapsulation.Emulated,s=n.styles.map(function(t){return _n(o._shimIfNeeded(t,i))}),a=[],u=0;u<n.styleUrls.length;u++){var c={reference:null};a.push(new ih(jn(null),n.styleUrls[u],i,c)),s.push(new ml(c))}var l=jn(r?t:null),p=pn(l).set(yn(s,new tl(nl,[$c.Const]))).toDeclStmt(null,[Nl.Final]);return new ah([p],l,a,i,n)},t.prototype._shimIfNeeded=function(t,e){return e?this._shadowCss.shimCssText(t,oh,rh):t},t}();uh.decorators=[{type:F}],uh.ctorParameters=function(){return[{type:Nc}]};var ch=function(){function t(){}return t}();ch.event=pn("$event");var lh=function(){function t(t,e){this.stmts=t,this.allowDefault=e}return t}(),ph=function(){function t(t,e){this.stmts=t,this.currValExpr=e}return t}(),hh={};hh.Statement=0,hh.Expression=1,hh[hh.Statement]="Statement",hh[hh.Expression]="Expression";var fh=function(t){function e(e){var n=t.call(this)||this;return n._converterFactory=e,n}return zr(e,t),e.prototype.visitPipe=function(t,e){var n=this,r=[t.exp].concat(t.args).map(function(t){return t.visit(n,e)});return new vh(t.span,r,this._converterFactory.createPipeConverter(t.name,r.length))},e.prototype.visitLiteralArray=function(t,e){var n=this,r=t.expressions.map(function(t){return t.visit(n,e)});return new vh(t.span,r,this._converterFactory.createLiteralArrayConverter(t.expressions.length))},e.prototype.visitLiteralMap=function(t,e){var n=this,r=t.values.map(function(t){return t.visit(n,e)});return new vh(t.span,r,this._converterFactory.createLiteralMapConverter(t.keys))},e}(bi),dh=function(){function t(t,e,n){this._localResolver=t,this._implicitReceiver=e,this.bindingId=n,this._nodeMap=new Map,this._resultMap=new Map,this._currentTemporary=0,this.temporaryCount=0}return t.prototype.visitBinary=function(t,e){var n;switch(t.operation){case"+":n=il.Plus;break;case"-":n=il.Minus;break;case"*":n=il.Multiply;break;case"/":n=il.Divide;break;case"%":n=il.Modulo;break;case"&&":n=il.And;break;case"||":n=il.Or;break;case"==":n=il.Equals;break;case"!=":n=il.NotEquals;break;case"===":n=il.Identical;break;case"!==":n=il.NotIdentical;break;case"<":n=il.Lower;break;case">":n=il.Bigger;break;case"<=":n=il.LowerEquals;break;case">=":n=il.BiggerEquals;break;default:throw new Error("Unsupported operation "+t.operation)}return Wn(e,new El(n,this.visit(t.left,hh.Expression),this.visit(t.right,hh.Expression)))},t.prototype.visitChain=function(t,e){return zn(e,t),this.visitAll(t.expressions,e)},t.prototype.visitConditional=function(t,e){var n=this.visit(t.condition,hh.Expression);return Wn(e,n.conditional(this.visit(t.trueExp,hh.Expression),this.visit(t.falseExp,hh.Expression)))},t.prototype.visitPipe=function(t){throw new Error("Illegal state: Pipes should have been converted into functions. Pipe: "+t.name)},t.prototype.visitFunctionCall=function(t,e){var n,r=this.visitAll(t.args,hh.Expression);return n=t instanceof vh?t.converter(r):this.visit(t.target,hh.Expression).callFn(r),Wn(e,n)},t.prototype.visitImplicitReceiver=function(t,e){return Gn(e,t),this._implicitReceiver},t.prototype.visitInterpolation=function(t,e){Gn(e,t);for(var n=[_n(t.expressions.length)],r=0;r<t.strings.length-1;r++)n.push(_n(t.strings[r])),n.push(this.visit(t.expressions[r],hh.Expression));return n.push(_n(t.strings[t.strings.length-1])),t.expressions.length<=9?hn(ue(wu.inlineInterpolate)).callFn(n):hn(ue(wu.interpolate)).callFn([n[0],yn(n.slice(1))])},t.prototype.visitKeyedRead=function(t,e){var n=this.leftMostSafeNode(t);return n?this.convertSafeAccess(t,n,e):Wn(e,this.visit(t.obj,hh.Expression).key(this.visit(t.key,hh.Expression)))},t.prototype.visitKeyedWrite=function(t,e){var n=this.visit(t.obj,hh.Expression),r=this.visit(t.key,hh.Expression),o=this.visit(t.value,hh.Expression);return Wn(e,n.key(r).set(o))},t.prototype.visitLiteralArray=function(){throw new Error("Illegal State: literal arrays should have been converted into functions")},t.prototype.visitLiteralMap=function(){throw new Error("Illegal State: literal maps should have been converted into functions")},t.prototype.visitLiteralPrimitive=function(t,e){return Wn(e,_n(t.value))},t.prototype._getLocal=function(t){return this._localResolver.getLocal(t)},t.prototype.visitMethodCall=function(t,e){var n=this.leftMostSafeNode(t);if(n)return this.convertSafeAccess(t,n,e);var r=this.visitAll(t.args,hh.Expression),o=null,i=this.visit(t.receiver,hh.Expression);if(i===this._implicitReceiver){var s=this._getLocal(t.name);s&&(o=s.callFn(r))}return null==o&&(o=i.callMethod(t.name,r)),Wn(e,o)},t.prototype.visitPrefixNot=function(t,e){return Wn(e,mn(this.visit(t.expression,hh.Expression)))},t.prototype.visitPropertyRead=function(t,e){var n=this.leftMostSafeNode(t);if(n)return this.convertSafeAccess(t,n,e);var r=null,o=this.visit(t.receiver,hh.Expression);return o===this._implicitReceiver&&(r=this._getLocal(t.name)),null==r&&(r=o.prop(t.name)),Wn(e,r)},t.prototype.visitPropertyWrite=function(t,e){var n=this.visit(t.receiver,hh.Expression);if(n===this._implicitReceiver){var r=this._getLocal(t.name);if(r)throw new Error("Cannot assign to a reference or variable!")}return Wn(e,n.prop(t.name).set(this.visit(t.value,hh.Expression)))},t.prototype.visitSafePropertyRead=function(t,e){return this.convertSafeAccess(t,this.leftMostSafeNode(t),e)},t.prototype.visitSafeMethodCall=function(t,e){return this.convertSafeAccess(t,this.leftMostSafeNode(t),e)},t.prototype.visitAll=function(t,e){var n=this;return t.map(function(t){return n.visit(t,e)})},t.prototype.visitQuote=function(){throw new Error("Quotes are not supported for evaluation!")},t.prototype.visit=function(t,e){var n=this._resultMap.get(t);return n?n:(this._nodeMap.get(t)||t).visit(this,e)},t.prototype.convertSafeAccess=function(t,e,n){var r,o=this.visit(e.receiver,hh.Expression);this.needsTemporary(e.receiver)&&(r=this.allocateTemporary(),o=r.set(o),this._resultMap.set(e.receiver,r));var i=o.isBlank();e instanceof yi?this._nodeMap.set(e,new di(e.span,e.receiver,e.name,e.args)):this._nodeMap.set(e,new ni(e.span,e.receiver,e.name));var s=this.visit(t,hh.Expression);return this._nodeMap["delete"](e),r&&this.releaseTemporary(r),Wn(n,i.conditional(_n(null),s))},t.prototype.leftMostSafeNode=function(t){var e=this,n=function(t,n){return(e._nodeMap.get(n)||n).visit(t)};return t.visit({visitBinary:function(){return null},visitChain:function(){return null},visitConditional:function(){return null},visitFunctionCall:function(){return null},visitImplicitReceiver:function(){return null},visitInterpolation:function(){return null},visitKeyedRead:function(t){return n(this,t.obj)},visitKeyedWrite:function(){return null},visitLiteralArray:function(){return null},visitLiteralMap:function(){return null},visitLiteralPrimitive:function(){return null},visitMethodCall:function(t){return n(this,t.receiver)},visitPipe:function(){return null},visitPrefixNot:function(){return null},visitPropertyRead:function(t){return n(this,t.receiver)},visitPropertyWrite:function(){return null},visitQuote:function(){return null},visitSafeMethodCall:function(t){return n(this,t.receiver)||t},visitSafePropertyRead:function(t){return n(this,t.receiver)||t}})},t.prototype.needsTemporary=function(t){var e=this,n=function(t,n){return n&&(e._nodeMap.get(n)||n).visit(t)},r=function(t,e){return e.some(function(e){return n(t,e)})};return t.visit({visitBinary:function(t){return n(this,t.left)||n(this,t.right)},visitChain:function(){return!1},visitConditional:function(t){return n(this,t.condition)||n(this,t.trueExp)||n(this,t.falseExp)},visitFunctionCall:function(){return!0},visitImplicitReceiver:function(){return!1},visitInterpolation:function(t){return r(this,t.expressions)},visitKeyedRead:function(){return!1},visitKeyedWrite:function(){return!1},visitLiteralArray:function(){return!0},visitLiteralMap:function(){return!0},visitLiteralPrimitive:function(){return!1},visitMethodCall:function(){return!0},visitPipe:function(){return!0},visitPrefixNot:function(t){return n(this,t.expression)},visitPropertyRead:function(){return!1},visitPropertyWrite:function(){return!1},visitQuote:function(){return!1},visitSafeMethodCall:function(){return!0},visitSafePropertyRead:function(){return!1}})},t.prototype.allocateTemporary=function(){var t=this._currentTemporary++;return this.temporaryCount=Math.max(this._currentTemporary,this.temporaryCount),new ul(Bn(this.bindingId,t))},t.prototype.releaseTemporary=function(t){if(this._currentTemporary--,t.name!=Bn(this.bindingId,this._currentTemporary))throw new Error("Temporary "+t.name+" released out of order")},t}(),yh=function(){function t(){}return t.prototype.getLocal=function(t){return t===ch.event.name?ch.event:null},t}(),vh=function(t){function e(e,n,r){var o=t.call(this,e,null,n)||this;return o.args=n,o.converter=r,o}return zr(e,t),e}(vi),mh="class",gh="style",_h="$implicit",bh="ng-container",wh=function(){function t(t,e,n){this.statements=t,this.viewClassVar=e,this.rendererTypeVar=n}return t}(),Ch=function(){function t(t,e){this._genConfigNext=t,this._schemaRegistry=e}return t.prototype.compileComponent=function(t,e,n,r){var o,i=0,s=cr(e),a=[];if(!t.isHost){var u=[];t.template.animations&&t.template.animations.length&&u.push(new Pl("animation",Cn(t.template.animations),!0));var c=pn(w(t.type.reference));o=c.name,a.push(c.set(hn(ue(wu.createRendererType2)).callFn([new Al([new Pl("encapsulation",_n(t.template.encapsulation)),new Pl("styles",n),new Pl("data",new Al(u))])])).toDeclStmt(fn(ue(wu.RendererType2)),[Nl.Final]))}var l=function(e){var n=i++;return new Oh(e,t,n,r,s,l)},p=l(null);return p.visitAll([],e),a.push.apply(a,p.build()),new wh(a,p.viewName,o)},t}();Ch.decorators=[{type:F}],Ch.ctorParameters=function(){return[{type:Ko},{type:Mu}]};var Eh=pn("l"),Sh=pn("v"),xh=pn("ck"),Th=pn("co"),Ph=pn("en"),Ah=pn("ad"),Oh=function(){function t(t,e,n,r,o,i){this.parent=t,this.component=e,this.embeddedViewIndex=n,this.usedPipes=r,this.staticQueryIds=o,this.viewBuilderFactory=i,this.nodes=[],this.purePipeNodeIndices=Object.create(null),this.refNodeIndices=Object.create(null),this.variables=[],this.children=[],this.compType=this.embeddedViewIndex>0?nl:fn(this.component.type)}return Object.defineProperty(t.prototype,"viewName",{get:function(){return b(this.component.type.reference,this.embeddedViewIndex)},enumerable:!0,configurable:!0}),t.prototype.visitAll=function(t,e){var r=this;if(this.variables=t,this.parent||this.usedPipes.forEach(function(t){t.pure&&(r.purePipeNodeIndices[t.name]=r._createPipe(null,t))}),!this.parent){var o=lr(this.staticQueryIds);this.component.viewQueries.forEach(function(t,e){var n=e+1,i=t.first?0:1,s=67108864|fr(o,n,t.first);r.nodes.push(function(){return{sourceSpan:null,nodeFlags:s,nodeDef:hn(ue(wu.queryDef)).callFn([_n(s),_n(n),new Al([new Pl(t.propertyName,_n(i))])])}})})}n(this,e),this.parent&&(0===e.length||nr(e))&&this.nodes.push(function(){return{sourceSpan:null,nodeFlags:1,nodeDef:hn(ue(wu.anchorDef)).callFn([_n(0),kl,kl,_n(0)])}})},t.prototype.build=function(t){void 0===t&&(t=[]),this.children.forEach(function(e){return e.build(t)});var n=this._createNodeExpressions(),r=n.updateRendererStmts,o=n.updateDirectivesStmts,i=n.nodeDefExprs,s=this._createUpdateFn(r),a=this._createUpdateFn(o),u=0;this.parent||this.component.changeDetection!==e.ChangeDetectionStrategy.OnPush||(u|=2);var c=new Ll(this.viewName,[new wl(Eh.name)],[new Fl(hn(ue(wu.viewDef)).callFn([_n(u),yn(i),a,s]))],fn(ue(wu.ViewDefinition)));return t.push(c),t},t.prototype._createUpdateFn=function(t){var e;if(t.length>0){var n=[];!this.component.isHost&&un(t).has(Th.name)&&n.push(Th.set(Sh.prop("component")).toDeclStmt(this.compType)),e=gn([new wl(xh.name,rl),new wl(Sh.name,rl)],n.concat(t),rl)}else e=kl;return e},t.prototype.visitNgContent=function(t){this.nodes.push(function(){return{sourceSpan:t.sourceSpan,nodeFlags:4,nodeDef:hn(ue(wu.ngContentDef)).callFn([_n(t.ngContentIndex),_n(t.index)])}})},t.prototype.visitText=function(t){this.nodes.push(function(){return{sourceSpan:t.sourceSpan,nodeFlags:2,nodeDef:hn(ue(wu.textDef)).callFn([_n(t.ngContentIndex),yn([_n(t.value)])])}})},t.prototype.visitBoundText=function(t){var e=this,n=this.nodes.length;this.nodes.push(null);var r=t.value,o=r.ast,i=o.expressions.map(function(r,o){return e._preprocessUpdateExpression({nodeIndex:n,bindingIndex:o,sourceSpan:t.sourceSpan,context:Th,value:r})});this.nodes[n]=function(){return{sourceSpan:t.sourceSpan,nodeFlags:2,nodeDef:hn(ue(wu.textDef)).callFn([_n(t.ngContentIndex),yn(o.strings.map(function(t){return _n(t)}))]),updateRenderer:i}}},t.prototype.visitEmbeddedTemplate=function(t){var e=this,n=this.nodes.length;this.nodes.push(null);var r=this._visitElementOrTemplate(n,t),o=r.flags,i=r.queryMatchesExpr,s=r.hostEvents,a=this.viewBuilderFactory(this);this.children.push(a),a.visitAll(t.variables,t.children);var u=this.nodes.length-n-1;this.nodes[n]=function(){return{sourceSpan:t.sourceSpan,nodeFlags:1|o,nodeDef:hn(ue(wu.anchorDef)).callFn([_n(o),i,_n(t.ngContentIndex),_n(u),e._createElementHandleEventFn(n,s),pn(a.viewName)])}}},t.prototype.visitElement=function(t){var e=this,r=this.nodes.length;this.nodes.push(null);var o=t.name;t.name===bh&&(o=null);var i=this._visitElementOrTemplate(r,t),s=i.flags,a=i.usedEvents,u=i.queryMatchesExpr,c=i.hostBindings,l=i.hostEvents,p=[],h=[],f=[];if(o){var d=t.inputs.map(function(t){return{context:Th,inputAst:t,dirAst:null}}).concat(c);d.length&&(h=d.map(function(t,n){return e._preprocessUpdateExpression({context:t.context,nodeIndex:r,bindingIndex:n,sourceSpan:t.inputAst.sourceSpan,value:t.inputAst.value})}),p=d.map(function(t){return or(t.inputAst,t.dirAst)})),f=a.map(function(t){var e=t[0],n=t[1];return yn([_n(e),_n(n)])})}n(this,t.children);var y=this.nodes.length-r-1,v=t.directives.find(function(t){return t.directive.isComponent}),m=kl,g=kl;v&&(g=hn({reference:v.directive.componentViewType}),m=hn({reference:v.directive.rendererType})),this.nodes[r]=function(){return{sourceSpan:t.sourceSpan,nodeFlags:1|s,nodeDef:hn(ue(wu.elementDef)).callFn([_n(s),u,_n(t.ngContentIndex),_n(y),_n(o),o?ir(t):kl,p.length?yn(p):kl,f.length?yn(f):kl,e._createElementHandleEventFn(r,l),g,m]),updateRenderer:h}}},t.prototype._visitElementOrTemplate=function(t,n){var r=this,o=0;n.hasViewContainer&&(o|=8388608);var i=new Map;n.outputs.forEach(function(t){var n=hr(t,null),r=n.name,o=n.target;i.set(e.ɵelementEventFullName(o,r),[o,r])}),n.directives.forEach(function(t){t.hostEvents.forEach(function(n){var r=hr(n,t),o=r.name,s=r.target;i.set(e.ɵelementEventFullName(s,o),[s,o])})});var s=[],a=[],u=pr(n.directives);u&&this._visitProvider(u,n.queryMatches),n.providers.forEach(function(e){var o,u;if(n.directives.forEach(function(t,n){t.directive.type.reference===T(e.token)&&(o=t,u=n)}),o){var c=r._visitDirective(e,o,u,t,n.references,n.queryMatches,i,r.staticQueryIds.get(n)),l=c.hostBindings,p=c.hostEvents;s.push.apply(s,l),a.push.apply(a,p)}else r._visitProvider(e,n.queryMatches)});var c=[];return n.queryMatches.forEach(function(t){var e;T(t.value)===ae(wu.ElementRef)?e=0:T(t.value)===ae(wu.ViewContainerRef)?e=3:T(t.value)===ae(wu.TemplateRef)&&(e=2),null!=e&&c.push(yn([_n(t.queryId),_n(e)]))}),n.references.forEach(function(e){var n;e.value?T(e.value)===ae(wu.TemplateRef)&&(n=2):n=1,null!=n&&(r.refNodeIndices[e.name]=t,c.push(yn([_n(e.name),_n(n)])))}),n.outputs.forEach(function(t){a.push({context:Th,eventAst:t,dirAst:null})}),{flags:o,usedEvents:Array.from(i.values()),queryMatchesExpr:c.length?yn(c):kl,hostBindings:s,hostEvents:a}},t.prototype._visitDirective=function(t,e,n,r,o,i,s,a){var u=this,c=this.nodes.length;this.nodes.push(null),e.directive.queries.forEach(function(t,n){var r=e.contentQueryStartId+n,o=33554432|fr(a,r,t.first),i=t.first?0:1;u.nodes.push(function(){return{sourceSpan:e.sourceSpan,nodeFlags:o,nodeDef:hn(ue(wu.queryDef)).callFn([_n(o),_n(r),new Al([new Pl(t.propertyName,_n(i))])])}})});var l=this.nodes.length-c-1,p=this._visitProviderOrDirective(t,i),h=p.flags,f=p.queryMatchExprs,d=p.providerExpr,y=p.depsExpr;o.forEach(function(e){e.value&&T(e.value)===T(t.token)&&(u.refNodeIndices[e.name]=c,f.push(yn([_n(e.name),_n(4)])))}),e.directive.isComponent&&(h|=16384);var v=e.inputs.map(function(t,e){var n=yn([_n(e),_n(t.directiveName)]);return new Pl(t.directiveName,n,!1)}),m=[],g=e.directive;Object.keys(g.outputs).forEach(function(t){var e=g.outputs[t];s.has(e)&&m.push(new Pl(t,_n(e),!1))});var _=[];(e.inputs.length||(163840&h)>0)&&(_=e.inputs.map(function(t,e){return u._preprocessUpdateExpression({nodeIndex:c,bindingIndex:e,sourceSpan:t.sourceSpan,context:Th,value:t.value})}));var b=hn(ue(wu.nodeValue)).callFn([Sh,_n(c)]),w=e.hostProperties.map(function(t){return{context:b,dirAst:e,inputAst:t}}),C=e.hostEvents.map(function(t){return{context:b,eventAst:t,dirAst:e}});return this.nodes[c]=function(){return{sourceSpan:e.sourceSpan,nodeFlags:8192|h,nodeDef:hn(ue(wu.directiveDef)).callFn([_n(h),f.length?yn(f):kl,_n(l),d,y,v.length?new Al(v):kl,m.length?new Al(m):kl]),updateDirectives:_,directive:e.directive.type}},{hostBindings:w,hostEvents:C}},t.prototype._visitProvider=function(t,e){var n=this.nodes.length;this.nodes.push(null);var r=this._visitProviderOrDirective(t,e),o=r.flags,i=r.queryMatchExprs,s=r.providerExpr,a=r.depsExpr;this.nodes[n]=function(){return{sourceSpan:t.sourceSpan,nodeFlags:o,nodeDef:hn(ue(wu.providerDef)).callFn([_n(o),i.length?yn(i):kl,tr(t.token),s,a])}}},t.prototype._visitProviderOrDirective=function(t,n){var r=0;t.eager||(r|=2048),t.providerType===oo.PrivateService&&(r|=4096),t.lifecycleHooks.forEach(function(n){(n===e.ɵLifecycleHooks.OnDestroy||t.providerType===oo.Directive||t.providerType===oo.Component)&&(r|=rr(n))});var o=[];n.forEach(function(e){T(e.value)===T(t.token)&&o.push(yn([_n(e.queryId),_n(4)]))});var i=Zn(t),s=i.providerExpr,a=i.depsExpr,u=i.flags;return{flags:r|u,queryMatchExprs:o,providerExpr:s,depsExpr:a}},t.prototype.getLocal=function(t){if(t==ch.event.name)return ch.event;for(var e=Sh,n=this;n;n=n.parent,e=e.prop("parent").cast(nl)){var r=n.refNodeIndices[t];if(null!=r)return hn(ue(wu.nodeValue)).callFn([e,_n(r)]);var o=n.variables.find(function(e){return e.name===t});if(o){var i=o.value||_h;return e.prop("context").prop(i)}}return null},t.prototype.createLiteralArrayConverter=function(t,e){if(0===e){var n=hn(ue(wu.EMPTY_ARRAY));return function(){return n}}var r=this.nodes.length;return this.nodes.push(function(){return{sourceSpan:t,nodeFlags:16,nodeDef:hn(ue(wu.pureArrayDef)).callFn([_n(e)])}}),function(t){return ar(r,t)}},t.prototype.createLiteralMapConverter=function(t,e){if(0===e.length){var n=hn(ue(wu.EMPTY_MAP));return function(){return n}}var r=this.nodes.length;return this.nodes.push(function(){return{sourceSpan:t,nodeFlags:32,nodeDef:hn(ue(wu.pureObjectDef)).callFn([yn(e.map(function(t){return _n(t)}))])}}),function(t){return ar(r,t)}},t.prototype.createPipeConverter=function(t,e,n){var r=this.usedPipes.find(function(t){return t.name===e});if(r.pure){var o=this.nodes.length;this.nodes.push(function(){return{sourceSpan:t.sourceSpan,nodeFlags:64,nodeDef:hn(ue(wu.purePipeDef)).callFn([_n(n)])}});for(var i=Sh,s=this;s.parent;)s=s.parent,i=i.prop("parent").cast(nl);var a=s.purePipeNodeIndices[e],u=hn(ue(wu.nodeValue)).callFn([i,_n(a)]);return function(e){return ur(t.nodeIndex,t.bindingIndex,ar(o,[u].concat(e)))}}var c=this._createPipe(t.sourceSpan,r),l=hn(ue(wu.nodeValue)).callFn([Sh,_n(c)]);return function(e){return ur(t.nodeIndex,t.bindingIndex,l.callMethod("transform",e))}},t.prototype._createPipe=function(t,n){var r=this.nodes.length,o=0;n.type.lifecycleHooks.forEach(function(t){t===e.ɵLifecycleHooks.OnDestroy&&(o|=rr(t))});var i=n.type.diDeps.map(er);return this.nodes.push(function(){return{sourceSpan:t,nodeFlags:8,nodeDef:hn(ue(wu.pipeDef)).callFn([_n(o),hn(n.type),yn(i)])}}),r},t.prototype._preprocessUpdateExpression=function(t){var e=this;return{nodeIndex:t.nodeIndex,bindingIndex:t.bindingIndex,sourceSpan:t.sourceSpan,context:t.context,value:Vn({createLiteralArrayConverter:function(n){return e.createLiteralArrayConverter(t.sourceSpan,n)},createLiteralMapConverter:function(n){return e.createLiteralMapConverter(t.sourceSpan,n)},createPipeConverter:function(n,r){return e.createPipeConverter(t,n,r)}},t.value)}},t.prototype._createNodeExpressions=function(){function t(t,r,o,i){var s=[],a=o.map(function(t){var r=t.sourceSpan,o=t.context,i=t.value,a=""+n++,u=o===Th?e:null,c=Fn(u,o,i,a),l=c.stmts,p=c.currValExpr;return s.push.apply(s,l.map(function(t){return cn(t,r)})),ln(p,r)});return(o.length||i)&&s.push(cn(ar(t,a).toStmt(),r)),s}var e=this,n=0,r=[],o=[],i=this.nodes.map(function(e,n){var i=e(),s=i.nodeDef,a=i.nodeFlags,u=i.updateDirectives,c=i.updateRenderer,l=i.sourceSpan;c&&r.push.apply(r,t(n,l,c,!1)),u&&o.push.apply(o,t(n,l,u,(163840&a)>0));var p=3&a?new Ol([Eh.callFn([]).callFn([]),s]):s;return ln(p,l)});return{updateRendererStmts:r,updateDirectivesStmts:o,nodeDefExprs:i}},t.prototype._createElementHandleEventFn=function(t,n){var r=this,o=[],i=0;n.forEach(function(t){var n=t.context,s=t.eventAst,a=t.dirAst,u=""+i++,c=n===Th?r:null,l=Ln(c,n,s.handler,u),p=l.stmts,h=l.allowDefault,f=p;h&&f.push(Ah.set(h.and(Ah)).toStmt());var d=hr(s,a),y=d.target,v=d.name,m=e.ɵelementEventFullName(y,v);o.push(cn(new Gl(_n(m).identical(Ph),f),s.sourceSpan))});var s;if(o.length>0){var a=[Ah.set(_n(!0)).toDeclStmt(ol)];!this.component.isHost&&un(o).has(Th.name)&&a.push(Th.set(Sh.prop("component")).toDeclStmt(this.compType)),s=gn([new wl(Sh.name,rl),new wl(Ph.name,rl),new wl(ch.event.name,rl)],a.concat(o,[new Fl(Ah)]),rl)}else s=kl;return s},t.prototype.visitDirective=function(){},t.prototype.visitDirectiveProperty=function(){},t.prototype.visitReference=function(){},t.prototype.visitVariable=function(){},t.prototype.visitEvent=function(){},t.prototype.visitElementProperty=function(){},t.prototype.visitAttr=function(){},t}(),Mh=function(){function t(t,e,n){this.srcFileUrl=t,this.genFileUrl=e,this.source=n}return t}(),Rh=function(t){function e(e,n){var r=t.call(this)||this;return r.symbolResolver=e,r.summaryResolver=n,r.symbols=[],r.indexBySymbol=new Map,r.processedSummaryBySymbol=new Map,r.processedSummaries=[],r}return zr(e,t),e.prototype.addOrMergeSummary=function(t){var e=t.metadata;e&&"class"===e.__symbolic&&(e={__symbolic:"class",statics:e.statics,arity:e.arity});var n=this.processedSummaryBySymbol.get(t.symbol);n||(n=this.processValue({symbol:t.symbol}),this.processedSummaries.push(n),this.processedSummaryBySymbol.set(t.symbol,n)),null==n.metadata&&null!=e&&(n.metadata=this.processValue(e)),null==n.type&&null!=t.type&&(n.type=this.processValue(t.type))},e.prototype.serialize=function(){var t=this,e=[],n=JSON.stringify({summaries:this.processedSummaries,symbols:this.symbols.map(function(n,r){n.assertNoMembers();var o;return t.summaryResolver.isLibraryFile(n.filePath)&&(o=n.name+"_"+r,e.push({symbol:n,exportAs:o})),{__symbol:r,name:n.name,filePath:t.summaryResolver.getLibraryFileName(n.filePath),importAs:o}})});return{json:n,exportAs:e}},e.prototype.processValue=function(t){return p(t,this,null)},e.prototype.visitOther=function(t){if(t instanceof ao){var e=this.symbolResolver.getStaticSymbol(t.filePath,t.name),n=this.indexBySymbol.get(e);return null==n&&(n=this.indexBySymbol.size,this.indexBySymbol.set(e,n),this.symbols.push(e)),{__symbol:n,members:t.members}}},e}(Co),kh=function(t){function e(e){var n=t.call(this)||this;return n.symbolCache=e,n}return zr(e,t),e.prototype.deserialize=function(t){var e=this,n=JSON.parse(t),r=[];this.symbols=[],n.symbols.forEach(function(t){var n=e.symbolCache.get(t.filePath,t.name);e.symbols.push(n),t.importAs&&r.push({symbol:n,importAs:t.importAs})});var o=p(n.summaries,this,null);return{summaries:o,importAs:r}},e.prototype.visitStringMap=function(e,n){if("__symbol"in e){var r=this.symbols[e.__symbol],o=e.members;return o.length?this.symbolCache.get(r.filePath,r.name,o):r}return t.prototype.visitStringMap.call(this,e,n)},e}(Co),Ih=function(){function t(t,e,n,r,o,i,s,a,u,c,l,p,h){this._config=t,this._host=e,this._metadataResolver=n,this._templateParser=r,this._styleCompiler=o,this._viewCompiler=i,this._ngModuleCompiler=s,this._outputEmitter=a,this._summaryResolver=u,this._localeId=c,this._translationFormat=l,this._genFilePreamble=p,this._symbolResolver=h}return t.prototype.clearCache=function(){this._metadataResolver.clearCache()},t.prototype.compileAll=function(t){var e=this,n=Cr(this._symbolResolver,t,this._host),r=br(n,this._host,this._metadataResolver),o=r.ngModuleByPipeOrDirective,i=r.files,s=r.ngModules;return Promise.all(s.map(function(t){return e._metadataResolver.loadNgModuleDirectiveAndPipeMetadata(t.type.reference,!1)})).then(function(){var t=i.map(function(t){return e._compileSrcFile(t.srcUrl,o,t.directives,t.pipes,t.ngModules,t.injectables)});return O(t)})},t.prototype._compileSrcFile=function(t,e,n,r,o,i){var s=this,a=Ke(t)[1],u=[],c=[],l=[];if(l.push(this._createSummary(t,n,r,o,i,u,c)),c.push.apply(c,o.map(function(t){return s._compileModule(t,u)})),n.forEach(function(n){var r=s._metadataResolver.getDirectiveMetadata(n);if(!r.isComponent)return Promise.resolve(null);var o=e.get(n);if(!o)throw new Error("Internal Error: cannot determine the module for component "+g(r.type)+"!");gr(r);var i=s._styleCompiler.compileComponent(r);i.externalStylesheets.forEach(function(e){l.push(s._codgenStyles(t,e,a))});var p=s._compileComponent(r,o,o.transitiveModule.directives,i.componentStylesheet,a,u);c.push(s._compileComponentFactory(r,o,a,u),p.viewClassVar,p.compRenderTypeVar)}),u.length>0){var p=this._codegenSourceModule(t,ze(t),u,c);l.unshift(p)}return l},t.prototype._createSummary=function(t,e,n,r,o,i,s){var a=this,u=this._symbolResolver.getSymbolsOf(t).map(function(t){return a._symbolResolver.resolveSymbol(t)}),c=r.map(function(t){return a._metadataResolver.getNgModuleSummary(t)}).concat(e.map(function(t){return a._metadataResolver.getDirectiveSummary(t)}),n.map(function(t){return a._metadataResolver.getPipeSummary(t)}),o.map(function(t){return a._metadataResolver.getInjectableSummary(t)})),l=dr(this._summaryResolver,this._symbolResolver,u,c),p=l.json,h=l.exportAs;return h.forEach(function(t){i.push(pn(t.exportAs).set(hn({reference:t.symbol})).toDeclStmt()),s.push(t.exportAs)}),new Mh(t,Qe(t),p)},t.prototype._compileModule=function(t,e){var n=this._metadataResolver.getNgModuleMetadata(t),r=[];this._localeId&&r.push({token:le(wu.LOCALE_ID),useValue:this._localeId}),this._translationFormat&&r.push({token:le(wu.TRANSLATIONS_FORMAT),useValue:this._translationFormat});var o=this._ngModuleCompiler.compile(n,r);return e.push.apply(e,o.statements),o.ngModuleFactoryVar},t.prototype._compileComponentFactory=function(t,e,n,r){var o=this._metadataResolver.getHostComponentType(t.type.reference),i=P(o,t,this._metadataResolver.getHostComponentViewClass(o)),s=this._compileComponent(i,e,[t.type],null,n,r).viewClassVar,a=S(t.type.reference),u=[];for(var c in t.inputs){var l=t.inputs[c];u.push(new Pl(c,_n(l),!1))}var p=[];for(var c in t.outputs){var l=t.outputs[c];p.push(new Pl(c,_n(l),!1))}return r.push(pn(a).set(hn(ue(wu.createComponentFactory)).callFn([_n(t.selector),hn(t.type),pn(s),new Al(u),new Al(p),yn(t.template.ngContentSelectors.map(function(t){return _n(t)}))])).toDeclStmt(fn(ue(wu.ComponentFactory),[fn(t.type)],[$c.Const]),[Nl.Final])),a},t.prototype._compileComponent=function(t,e,n,r,o,i){var s=this,a=n.map(function(t){return s._metadataResolver.getDirectiveSummary(t.reference)}),u=e.transitiveModule.pipes.map(function(t){return s._metadataResolver.getPipeSummary(t.reference)}),c=this._templateParser.parse(t,t.template.template,a,u,e.schemas,R(e.type,t,t.template)),l=c.template,p=c.pipes,h=r?pn(r.stylesVar):yn([]),f=this._viewCompiler.compileComponent(t,l,h,p);return r&&i.push.apply(i,vr(this._symbolResolver,r,o)),i.push.apply(i,f.statements),{viewClassVar:f.viewClassVar,compRenderTypeVar:f.rendererTypeVar}},t.prototype._codgenStyles=function(t,e,n){return vr(this._symbolResolver,e,n),this._codegenSourceModule(t,mr(e.meta.moduleUrl,e.isShimmed,n),e.statements,[e.stylesVar])},t.prototype._codegenSourceModule=function(t,e,n,r){return new Mh(t,e,this._outputEmitter.emitStatements(M(t),e,n,r,this._genFilePreamble))},t}(),Nh=function(){function t(t){this.staticDelegate=t,this.dynamicDelegate=new e.ɵReflectionCapabilities}return t.install=function(n){e.ɵreflector.updateCapabilities(new t(n))},t.prototype.isReflectionEnabled=function(){return!0},t.prototype.factory=function(t){return this.dynamicDelegate.factory(t)},t.prototype.hasLifecycleHook=function(t,e){return Sr(t)?this.staticDelegate.hasLifecycleHook(t,e):this.dynamicDelegate.hasLifecycleHook(t,e)},t.prototype.parameters=function(t){return Sr(t)?this.staticDelegate.parameters(t):this.dynamicDelegate.parameters(t)},t.prototype.annotations=function(t){return Sr(t)?this.staticDelegate.annotations(t):this.dynamicDelegate.annotations(t)},t.prototype.propMetadata=function(t){return Sr(t)?this.staticDelegate.propMetadata(t):this.dynamicDelegate.propMetadata(t)},t.prototype.getter=function(t){return this.dynamicDelegate.getter(t)},t.prototype.setter=function(t){return this.dynamicDelegate.setter(t)},t.prototype.method=function(t){return this.dynamicDelegate.method(t)},t.prototype.importUri=function(t){return this.staticDelegate.importUri(t)},t.prototype.resourceUri=function(t){return this.staticDelegate.resourceUri(t)},t.prototype.resolveIdentifier=function(t,e,n){return this.staticDelegate.resolveIdentifier(t,e,n)},t.prototype.resolveEnum=function(t,e){return Sr(t)?this.staticDelegate.resolveEnum(t,e):null},t}(),Dh="@angular/core",jh=/^\$.*\$$/,Lh={__symbolic:"ignore"},Vh=function(){function t(t,e,n,r){void 0===e&&(e=[]),void 0===n&&(n=[]);var o=this;this.symbolResolver=t,this.errorRecorder=r,this.annotationCache=new Map,this.propertyCache=new Map,this.parameterCache=new Map,this.methodCache=new Map,this.conversionMap=new Map,this.initializeConversionMap(),e.forEach(function(t){return o._registerDecoratorOrConstructor(o.getStaticSymbol(t.filePath,t.name),t.ctor)}),n.forEach(function(t){return o._registerFunction(o.getStaticSymbol(t.filePath,t.name),t.fn)})}return t.prototype.importUri=function(t){var e=this.findSymbolDeclaration(t);return e?e.filePath:null},t.prototype.resourceUri=function(t){var e=this.findSymbolDeclaration(t);return this.symbolResolver.getResourcePath(e)},t.prototype.resolveIdentifier=function(t,e,n){var r=this.getStaticSymbol(e,t),o=this.findDeclaration(e,t);return r!=o&&this.symbolResolver.recordImportAs(o,r),n&&n.length?this.getStaticSymbol(o.filePath,o.name,n):o},t.prototype.findDeclaration=function(t,e,n){return this.findSymbolDeclaration(this.symbolResolver.getSymbolByModule(t,e,n))},t.prototype.findSymbolDeclaration=function(t){var e=this.symbolResolver.resolveSymbol(t);return e&&e.metadata instanceof ao?this.findSymbolDeclaration(e.metadata):t},t.prototype.resolveEnum=function(t,e){var n=t,r=(n.members||[]).concat(e);return this.getStaticSymbol(n.filePath,n.name,r)},t.prototype.annotations=function(t){var e=this.annotationCache.get(t);if(!e){e=[];var n=this.getTypeMetadata(t);if(n["extends"]){var r=this.trySimplify(t,n["extends"]);if(r&&r instanceof ao){var o=this.annotations(r);e.push.apply(e,o)}}if(n.decorators){var i=this.simplify(t,n.decorators);e.push.apply(e,i)}this.annotationCache.set(t,e.filter(function(t){ +return!!t}))}return e},t.prototype.propMetadata=function(t){var e=this,n=this.propertyCache.get(t);if(!n){var r=this.getTypeMetadata(t);if(n={},r["extends"]){var o=this.trySimplify(t,r["extends"]);if(o instanceof ao){var i=this.propMetadata(o);Object.keys(i).forEach(function(t){n[t]=i[t]})}}var s=r.members||{};Object.keys(s).forEach(function(r){var o=s[r],i=o.find(function(t){return"property"==t.__symbolic||"method"==t.__symbolic}),a=[];n[r]&&a.push.apply(a,n[r]),n[r]=a,i&&i.decorators&&a.push.apply(a,e.simplify(t,i.decorators))}),this.propertyCache.set(t,n)}return n},t.prototype.parameters=function(t){if(!(t instanceof ao))return this.reportError(new Error("parameters received "+JSON.stringify(t)+" which is not a StaticSymbol"),t),[];try{var e=this.parameterCache.get(t);if(!e){var n=this.getTypeMetadata(t),r=n?n.members:null,o=r?r.__ctor__:null;if(o){var i=o.find(function(t){return"constructor"==t.__symbolic}),s=this.simplify(t,i.parameters||[]),a=this.simplify(t,i.parameterDecorators||[]);e=[],s.forEach(function(t,n){var r=[];t&&r.push(t);var o=a?a[n]:null;o&&r.push.apply(r,o),e.push(r)})}else if(n["extends"]){var u=this.trySimplify(t,n["extends"]);u instanceof ao&&(e=this.parameters(u))}e||(e=[]),this.parameterCache.set(t,e)}return e}catch(c){throw console.error("Failed on type "+JSON.stringify(t)+" with error "+c),c}},t.prototype._methodNames=function(t){var e=this.methodCache.get(t);if(!e){var n=this.getTypeMetadata(t);if(e={},n["extends"]){var r=this.trySimplify(t,n["extends"]);if(r instanceof ao){var o=this._methodNames(r);Object.keys(o).forEach(function(t){e[t]=o[t]})}}var i=n.members||{};Object.keys(i).forEach(function(t){var n=i[t],r=n.some(function(t){return"method"==t.__symbolic});e[t]=e[t]||r}),this.methodCache.set(t,e)}return e},t.prototype.hasLifecycleHook=function(t,e){t instanceof ao||this.reportError(new Error("hasLifecycleHook received "+JSON.stringify(t)+" which is not a StaticSymbol"),t);try{return!!this._methodNames(t)[e]}catch(n){throw console.error("Failed on type "+JSON.stringify(t)+" with error "+n),n}},t.prototype._registerDecoratorOrConstructor=function(t,e){this.conversionMap.set(t,function(t,n){return new(e.bind.apply(e,[void 0].concat(n)))})},t.prototype._registerFunction=function(t,e){this.conversionMap.set(t,function(t,n){return e.apply(void 0,n)})},t.prototype.initializeConversionMap=function(){this.injectionToken=this.findDeclaration(Dh,"InjectionToken"),this.opaqueToken=this.findDeclaration(Dh,"OpaqueToken"),this._registerDecoratorOrConstructor(this.findDeclaration(Dh,"Host"),e.Host),this._registerDecoratorOrConstructor(this.findDeclaration(Dh,"Injectable"),e.Injectable),this._registerDecoratorOrConstructor(this.findDeclaration(Dh,"Self"),e.Self),this._registerDecoratorOrConstructor(this.findDeclaration(Dh,"SkipSelf"),e.SkipSelf),this._registerDecoratorOrConstructor(this.findDeclaration(Dh,"Inject"),e.Inject),this._registerDecoratorOrConstructor(this.findDeclaration(Dh,"Optional"),e.Optional),this._registerDecoratorOrConstructor(this.findDeclaration(Dh,"Attribute"),e.Attribute),this._registerDecoratorOrConstructor(this.findDeclaration(Dh,"ContentChild"),e.ContentChild),this._registerDecoratorOrConstructor(this.findDeclaration(Dh,"ContentChildren"),e.ContentChildren),this._registerDecoratorOrConstructor(this.findDeclaration(Dh,"ViewChild"),e.ViewChild),this._registerDecoratorOrConstructor(this.findDeclaration(Dh,"ViewChildren"),e.ViewChildren),this._registerDecoratorOrConstructor(this.findDeclaration(Dh,"Input"),e.Input),this._registerDecoratorOrConstructor(this.findDeclaration(Dh,"Output"),e.Output),this._registerDecoratorOrConstructor(this.findDeclaration(Dh,"Pipe"),e.Pipe),this._registerDecoratorOrConstructor(this.findDeclaration(Dh,"HostBinding"),e.HostBinding),this._registerDecoratorOrConstructor(this.findDeclaration(Dh,"HostListener"),e.HostListener),this._registerDecoratorOrConstructor(this.findDeclaration(Dh,"Directive"),e.Directive),this._registerDecoratorOrConstructor(this.findDeclaration(Dh,"Component"),e.Component),this._registerDecoratorOrConstructor(this.findDeclaration(Dh,"NgModule"),e.NgModule),this._registerDecoratorOrConstructor(this.findDeclaration(Dh,"Host"),e.Host),this._registerDecoratorOrConstructor(this.findDeclaration(Dh,"Self"),e.Self),this._registerDecoratorOrConstructor(this.findDeclaration(Dh,"SkipSelf"),e.SkipSelf),this._registerDecoratorOrConstructor(this.findDeclaration(Dh,"Optional"),e.Optional),this._registerFunction(this.findDeclaration(Dh,"trigger"),e.trigger),this._registerFunction(this.findDeclaration(Dh,"state"),e.state),this._registerFunction(this.findDeclaration(Dh,"transition"),e.transition),this._registerFunction(this.findDeclaration(Dh,"style"),e.style),this._registerFunction(this.findDeclaration(Dh,"animate"),e.animate),this._registerFunction(this.findDeclaration(Dh,"keyframes"),e.keyframes),this._registerFunction(this.findDeclaration(Dh,"sequence"),e.sequence),this._registerFunction(this.findDeclaration(Dh,"group"),e.group)},t.prototype.getStaticSymbol=function(t,e,n){return this.symbolResolver.getStaticSymbol(t,e,n)},t.prototype.reportError=function(t,e,n){if(!this.errorRecorder)throw t;this.errorRecorder(t,e&&e.filePath||n)},t.prototype.trySimplify=function(t,e){var n=this.errorRecorder;this.errorRecorder=function(){};var r=this.simplify(t,e);return this.errorRecorder=n,r},t.prototype.simplify=function(t,e){function n(t,e,r){function a(t){var e=o.symbolResolver.resolveSymbol(t);return e?e.metadata:null}function u(e,o,a){if(o&&"function"==o.__symbolic){if(s.get(e))throw new Error("Recursion not supported");s.set(e,!0);try{var u=o.value;if(u&&(0!=r||"error"!=u.__symbolic)){var l=o.parameters,p=o.defaults;a=a.map(function(e){return n(t,e,r+1)}).map(function(t){return xr(t)?void 0:t}),p&&p.length>a.length&&a.push.apply(a,p.slice(a.length).map(function(t){return c(t)}));for(var h=Fh.build(),f=0;f<l.length;f++)h.define(l[f],a[f]);var d,y=i;try{i=h.done(),d=n(e,u,r+1)}finally{i=y}return d}}finally{s["delete"](e)}}return 0===r?Lh:c({__symbolic:"error",message:"Function call not supported",context:e})}function c(e){if(Or(e))return e;if(e instanceof Array){for(var s=[],l=0,p=e;l<p.length;l++){var h=p[l];if(h&&"spread"===h.__symbolic){var f=c(h.expression);if(Array.isArray(f)){for(var d=0,y=f;d<y.length;d++){var v=y[d];s.push(v)}continue}}var m=c(h);xr(m)||s.push(m)}return s}if(e instanceof ao){if(e===o.injectionToken||e===o.opaqueToken||o.conversionMap.has(e))return e;var g=e,_=a(g);return _?n(g,_,r+1):g}if(e){if(e.__symbolic){var g=void 0;switch(e.__symbolic){case"binop":var b=c(e.left);if(xr(b))return b;var w=c(e.right);if(xr(w))return w;switch(e.operator){case"&&":return b&&w;case"||":return b||w;case"|":return b|w;case"^":return b^w;case"&":return b&w;case"==":return b==w;case"!=":return b!=w;case"===":return b===w;case"!==":return b!==w;case"<":return w>b;case">":return b>w;case"<=":return w>=b;case">=":return b>=w;case"<<":return b<<w;case">>":return b>>w;case"+":return b+w;case"-":return b-w;case"*":return b*w;case"/":return b/w;case"%":return b%w}return null;case"if":var C=c(e.condition);return c(C?e.thenExpression:e.elseExpression);case"pre":var E=c(e.operand);if(xr(E))return E;switch(e.operator){case"+":return E;case"-":return-E;case"!":return!E;case"~":return~E}return null;case"index":var S=c(e.expression),x=c(e.index);return S&&Or(x)?S[x]:null;case"select":var T=e.member,P=t,A=c(e.expression);if(A instanceof ao){var O=A.members.concat(T);P=o.getStaticSymbol(A.filePath,A.name,O);var _=a(P);return _?n(P,_,r+1):P}return A&&Or(T)?n(P,A[T],r+1):null;case"reference":var M=e.name,R=i.resolve(M);if(R!=Fh.missing)return R;break;case"class":return t;case"function":return t;case"new":case"call":if(g=n(t,e.expression,r+1),g instanceof ao){if(g===o.injectionToken||g===o.opaqueToken)return t;var k=e.arguments||[],I=o.conversionMap.get(g);if(I){var N=k.map(function(e){return n(t,e,r+1)}).map(function(t){return xr(t)?void 0:t});return I(t,N)}var D=a(g);return u(g,D,k)}break;case"error":var j=Pr(e);return e.line?(j=j+" (position "+(e.line+1)+":"+(e.character+1)+" in the original .ts file)",o.reportError(Mr(j,t.filePath,e.line,e.character),t)):o.reportError(new Error(j),t),Lh;case"ignore":return e}return null}return Ar(e,function(t){return c(t)})}return Lh}try{return c(e)}catch(l){var p=t.members.length?"."+t.members.join("."):"",f=l.message+", resolving symbol "+t.name+p+" in "+t.filePath;if(l.fileName)throw Mr(f,l.fileName,l.line,l.column);throw h(f)}}var r=this,o=this,i=Fh.empty,s=new Map,a=function(t,e,o){try{return n(t,e,o)}catch(i){r.reportError(i,t)}},u=this.errorRecorder?a(t,e,0):n(t,e,0);return xr(u)?void 0:u},t.prototype.getTypeMetadata=function(t){var e=this.symbolResolver.resolveSymbol(t);return e&&e.metadata?e.metadata:{__symbolic:"class"}},t}(),Fh=function(){function t(){}return t.prototype.resolve=function(){},t.build=function(){var e=new Map;return{define:function(t,n){return e.set(t,n),this},done:function(){return e.size>0?new Uh(e):t.empty}}},t}();Fh.missing={},Fh.empty={resolve:function(){return Fh.missing}};var Uh=function(t){function e(e){var n=t.call(this)||this;return n.bindings=e,n}return zr(e,t),e.prototype.resolve=function(t){return this.bindings.has(t)?this.bindings.get(t):Fh.missing},e}(Fh),Bh=function(){function t(t,e){this.symbol=t,this.metadata=e}return t}(),Hh=3,qh=function(){function t(t,e,n,r){this.host=t,this.staticSymbolCache=e,this.summaryResolver=n,this.errorRecorder=r,this.metadataCache=new Map,this.resolvedSymbols=new Map,this.resolvedFilePaths=new Set,this.importAs=new Map,this.symbolResourcePaths=new Map,this.symbolFromFile=new Map}return t.prototype.resolveSymbol=function(t){if(t.members.length>0)return this._resolveSymbolMembers(t);var e=this.resolvedSymbols.get(t);return e?e:(e=this._resolveSymbolFromSummary(t))?e:(this._createSymbolsOf(t.filePath),e=this.resolvedSymbols.get(t))},t.prototype.getImportAs=function(t){if(t.members.length){var e=this.getStaticSymbol(t.filePath,t.name),n=this.getImportAs(e);return n?this.getStaticSymbol(n.filePath,n.name,t.members):null}var r=this.summaryResolver.getImportAs(t);return r||(r=this.importAs.get(t)),r},t.prototype.getResourcePath=function(t){return this.symbolResourcePaths.get(t)||t.filePath},t.prototype.getTypeArity=function(t){if(We(t.filePath))return null;for(var e=this.resolveSymbol(t);e&&e.metadata instanceof ao;)e=this.resolveSymbol(e.metadata);return e&&e.metadata&&e.metadata.arity||null},t.prototype.recordImportAs=function(t,e){t.assertNoMembers(),e.assertNoMembers(),this.importAs.set(t,e)},t.prototype.invalidateFile=function(t){this.metadataCache["delete"](t),this.resolvedFilePaths["delete"](t);var e=this.symbolFromFile.get(t);if(e){this.symbolFromFile["delete"](t);for(var n=0,r=e;n<r.length;n++){var o=r[n];this.resolvedSymbols["delete"](o),this.importAs["delete"](o),this.symbolResourcePaths["delete"](o)}}},t.prototype._resolveSymbolMembers=function(t){var e=t.members,n=this.resolveSymbol(this.getStaticSymbol(t.filePath,t.name));if(!n)return null;var r=n.metadata;if(r instanceof ao)return new Bh(t,this.getStaticSymbol(r.filePath,r.name,e));if(!r||"class"!==r.__symbolic){for(var o=r,i=0;i<e.length&&o;i++)o=o[e[i]];return new Bh(t,o)}return r.statics&&1===e.length?new Bh(t,r.statics[e[0]]):null},t.prototype._resolveSymbolFromSummary=function(t){var e=this.summaryResolver.resolveSummary(t);return e?new Bh(t,e.metadata):null},t.prototype.getStaticSymbol=function(t,e,n){return this.staticSymbolCache.get(t,e,n)},t.prototype.getSymbolsOf=function(t){var e=new Set(this.summaryResolver.getSymbolsOf(t));return this._createSymbolsOf(t),this.resolvedSymbols.forEach(function(n){n.symbol.filePath===t&&e.add(n.symbol)}),Array.from(e)},t.prototype._createSymbolsOf=function(t){var e=this;if(!this.resolvedFilePaths.has(t)){this.resolvedFilePaths.add(t);var n=[],r=this.getModuleMetadata(t);if(r.metadata){var o=new Set(Object.keys(r.metadata).map(Rr)),i=r.origins||{};Object.keys(r.metadata).forEach(function(s){var a=r.metadata[s],u=Rr(s),c=e.getStaticSymbol(t,u),l=void 0;r.importAs&&(l=e.getStaticSymbol(r.importAs,u),e.recordImportAs(c,l));var p=i.hasOwnProperty(s)&&i[s];if(p){var h=e.resolveModule(p,t);h?e.symbolResourcePaths.set(c,h):e.reportError(new Error("Couldn't resolve original symbol for "+p+" from "+t),null)}n.push(e.createResolvedSymbol(c,t,o,a))})}if(r.exports)for(var s=function(r){if(r["export"])r["export"].forEach(function(o){var i;i="string"==typeof o?o:o.as,i=Rr(i);var s=i;"string"!=typeof o&&(s=Rr(o.name));var a=e.resolveModule(r.from,t);if(a){var u=e.getStaticSymbol(a,s),c=e.getStaticSymbol(t,i);n.push(e.createExport(c,u))}});else{var o=a.resolveModule(r.from,t);if(o){var i=a.getSymbolsOf(o);i.forEach(function(r){var o=e.getStaticSymbol(t,r.name);n.push(e.createExport(o,r))})}}},a=this,u=0,c=r.exports;u<c.length;u++){var l=c[u];s(l)}n.forEach(function(t){return e.resolvedSymbols.set(t.symbol,t)}),this.symbolFromFile.set(t,n.map(function(t){return t.symbol}))}},t.prototype.createResolvedSymbol=function(t,e,n,r){var o=this,i=function(r){function i(){return null!==r&&r.apply(this,arguments)||this}return zr(i,r),i.prototype.visitStringMap=function(i,s){var a=i.__symbolic;if("function"===a){var u=s.length;s.push.apply(s,i.parameters||[]);var c=r.prototype.visitStringMap.call(this,i,s);return s.length=u,c}if("reference"!==a)return r.prototype.visitStringMap.call(this,i,s);var l=i.module,p=i.name?Rr(i.name):i.name;if(!p)return null;var h=void 0;return l?(h=o.resolveModule(l,t.filePath),h?o.getStaticSymbol(h,p):{__symbolic:"error",message:"Could not resolve "+l+" relative to "+t.filePath+"."}):s.indexOf(p)>=0?{__symbolic:"reference",name:p}:n.has(p)?o.getStaticSymbol(e,p):void 0},i}(Co),s=p(r,new i,[]);return s instanceof ao?this.createExport(t,s):new Bh(t,s)},t.prototype.createExport=function(t,e){return t.assertNoMembers(),e.assertNoMembers(),this.summaryResolver.isLibraryFile(t.filePath)&&this.importAs.set(e,this.getImportAs(t)||t),new Bh(t,e)},t.prototype.reportError=function(t,e,n){if(!this.errorRecorder)throw t;this.errorRecorder(t,e&&e.filePath||n)},t.prototype.getModuleMetadata=function(t){var e=this.metadataCache.get(t);if(!e){var n=this.host.getMetadataFor(t);if(n){var r=-1;n.forEach(function(t){t.version>r&&(r=t.version,e=t)})}if(e||(e={__symbolic:"module",version:Hh,module:t,metadata:{}}),e.version!=Hh){var o=2==e.version?"Unsupported metadata version "+e.version+" for module "+t+". This module should be compiled with a newer version of ngc":"Metadata version mismatch for module "+t+", found version "+e.version+", expected "+Hh;this.reportError(new Error(o),null)}this.metadataCache.set(t,e)}return e},t.prototype.getSymbolByModule=function(t,e,n){var r=this.resolveModule(t,n);return r?this.getStaticSymbol(r,e):(this.reportError(new Error("Could not resolve module "+t+(n?" relative to $ {\n containingFile\n } ":"")),null),this.getStaticSymbol("ERROR:"+t,e))},t.prototype.resolveModule=function(t,e){try{return this.host.moduleNameToFileName(t,e)}catch(n){console.error("Could not resolve module '"+t+"' relative to file "+e),this.reportError(n,null,e)}},t}(),zh=function(){function t(t,e){this.host=t,this.staticSymbolCache=e,this.summaryCache=new Map,this.loadedFilePaths=new Set,this.importAs=new Map}return t.prototype.isLibraryFile=function(t){return!this.host.isSourceFile(Ge(t))},t.prototype.getLibraryFileName=function(t){return this.host.getOutputFileName(t)},t.prototype.resolveSummary=function(t){t.assertNoMembers();var e=this.summaryCache.get(t);return e||(this._loadSummaryFile(t.filePath),e=this.summaryCache.get(t)),e},t.prototype.getSymbolsOf=function(t){return this._loadSummaryFile(t),Array.from(this.summaryCache.keys()).filter(function(e){return e.filePath===t})},t.prototype.getImportAs=function(t){return t.assertNoMembers(),this.importAs.get(t)},t.prototype._loadSummaryFile=function(t){var e=this;if(!this.loadedFilePaths.has(t)&&(this.loadedFilePaths.add(t),this.isLibraryFile(t))){var n=Qe(t),r=void 0;try{r=this.host.loadSummary(n)}catch(o){throw console.error("Error loading summary file "+n),o}if(r){var i=yr(this.staticSymbolCache,r),s=i.summaries,a=i.importAs;s.forEach(function(t){return e.summaryCache.set(t.symbol,t)}),a.forEach(function(n){e.importAs.set(n.symbol,e.staticSymbolCache.get(ze(t),n.importAs))})}}},t}(),Gh=function(){function t(t,e,n,r){this.parent=t,this.instance=e,this.className=n,this.vars=r}return t.prototype.createChildWihtLocalVars=function(){return new t(this,this.instance,this.className,new Map)},t}(),Wh=function(){function t(t){this.value=t}return t}(),Kh=function(){function t(){}return t.prototype.debugAst=function(t){return On(t)},t.prototype.visitDeclareVarStmt=function(t,e){return e.vars.set(t.name,t.value.visitExpression(this,e)),null},t.prototype.visitWriteVarExpr=function(t,e){for(var n=t.value.visitExpression(this,e),r=e;null!=r;){if(r.vars.has(t.name))return r.vars.set(t.name,n),n;r=r.parent}throw new Error("Not declared variable "+t.name)},t.prototype.visitReadVarExpr=function(t,e){var n=t.name;if(null!=t.builtin)switch(t.builtin){case al.Super:return e.instance.__proto__;case al.This:return e.instance;case al.CatchError:n=Qh;break;case al.CatchStack:n=$h;break;default:throw new Error("Unknown builtin variable "+t.builtin)}for(var r=e;null!=r;){if(r.vars.has(n))return r.vars.get(n);r=r.parent}throw new Error("Not declared variable "+n)},t.prototype.visitWriteKeyExpr=function(t,e){var n=t.receiver.visitExpression(this,e),r=t.index.visitExpression(this,e),o=t.value.visitExpression(this,e);return n[r]=o,o},t.prototype.visitWritePropExpr=function(t,e){var n=t.receiver.visitExpression(this,e),r=t.value.visitExpression(this,e);return n[t.name]=r,r},t.prototype.visitInvokeMethodExpr=function(t,e){var n,r=t.receiver.visitExpression(this,e),o=this.visitAllExpressions(t.args,e);if(null!=t.builtin)switch(t.builtin){case hl.ConcatArray:n=r.concat.apply(r,o);break;case hl.SubscribeObservable:n=r.subscribe({next:o[0]});break;case hl.Bind:n=r.bind.apply(r,o);break;default:throw new Error("Unknown builtin method "+t.builtin)}else n=r[t.name].apply(r,o);return n},t.prototype.visitInvokeFunctionExpr=function(t,e){var n=this.visitAllExpressions(t.args,e),r=t.fn;if(r instanceof ul&&r.builtin===al.Super)return e.instance.constructor.prototype.constructor.apply(e.instance,n),null;var o=t.fn.visitExpression(this,e);return o.apply(null,n)},t.prototype.visitReturnStmt=function(t,e){return new Wh(t.value.visitExpression(this,e))},t.prototype.visitDeclareClassStmt=function(t,e){var n=Dr(t,e,this);return e.vars.set(t.name,n),null},t.prototype.visitExpressionStmt=function(t,e){return t.expr.visitExpression(this,e)},t.prototype.visitIfStmt=function(t,e){var n=t.condition.visitExpression(this,e);return n?this.visitAllStatements(t.trueCase,e):null!=t.falseCase?this.visitAllStatements(t.falseCase,e):null},t.prototype.visitTryCatchStmt=function(t,e){try{return this.visitAllStatements(t.bodyStmts,e)}catch(n){var r=e.createChildWihtLocalVars();return r.vars.set(Qh,n),r.vars.set($h,n.stack),this.visitAllStatements(t.catchStmts,r)}},t.prototype.visitThrowStmt=function(t,e){throw t.error.visitExpression(this,e)},t.prototype.visitCommentStmt=function(){return null},t.prototype.visitInstantiateExpr=function(t,e){var n=this.visitAllExpressions(t.args,e),r=t.classExpr.visitExpression(this,e);return new(r.bind.apply(r,[void 0].concat(n)))},t.prototype.visitLiteralExpr=function(t){return t.value},t.prototype.visitExternalExpr=function(t){return t.value.reference},t.prototype.visitConditionalExpr=function(t,e){return t.condition.visitExpression(this,e)?t.trueCase.visitExpression(this,e):null!=t.falseCase?t.falseCase.visitExpression(this,e):null},t.prototype.visitNotExpr=function(t,e){return!t.condition.visitExpression(this,e)},t.prototype.visitCastExpr=function(t,e){return t.value.visitExpression(this,e)},t.prototype.visitFunctionExpr=function(t,e){var n=t.params.map(function(t){return t.name});return jr(n,t.statements,e,this)},t.prototype.visitDeclareFunctionStmt=function(t,e){var n=t.params.map(function(t){return t.name});return e.vars.set(t.name,jr(n,t.statements,e,this)),null},t.prototype.visitBinaryOperatorExpr=function(t,e){var n=this,r=function(){return t.lhs.visitExpression(n,e)},o=function(){return t.rhs.visitExpression(n,e)};switch(t.operator){case il.Equals:return r()==o();case il.Identical:return r()===o();case il.NotEquals:return r()!=o();case il.NotIdentical:return r()!==o();case il.And:return r()&&o();case il.Or:return r()||o();case il.Plus:return r()+o();case il.Minus:return r()-o();case il.Divide:return r()/o();case il.Multiply:return r()*o();case il.Modulo:return r()%o();case il.Lower:return r()<o();case il.LowerEquals:return r()<=o();case il.Bigger:return r()>o();case il.BiggerEquals:return r()>=o();default:throw new Error("Unknown operator "+t.operator)}},t.prototype.visitReadPropExpr=function(t,e){var n,r=t.receiver.visitExpression(this,e);return n=r[t.name]},t.prototype.visitReadKeyExpr=function(t,e){var n=t.receiver.visitExpression(this,e),r=t.index.visitExpression(this,e);return n[r]},t.prototype.visitLiteralArrayExpr=function(t,e){return this.visitAllExpressions(t.entries,e)},t.prototype.visitLiteralMapExpr=function(t,e){var n=this,r={};return t.entries.forEach(function(t){return r[t.key]=t.value.visitExpression(n,e)}),r},t.prototype.visitCommaExpr=function(t,e){var n=this.visitAllExpressions(t.parts,e);return n[n.length-1]},t.prototype.visitAllExpressions=function(t,e){var n=this;return t.map(function(t){return t.visitExpression(n,e)})},t.prototype.visitAllStatements=function(t,e){for(var n=0;n<t.length;n++){var r=t[n],o=r.visitStatement(this,e);if(o instanceof Wh)return o}return null},t}(),Qh="error",$h="stack",Xh=function(t){function e(){return t.call(this,!1)||this}return zr(e,t),e.prototype.visitDeclareClassStmt=function(t,e){var n=this;return e.pushClass(t),this._visitClassConstructor(t,e),null!=t.parent&&(e.print(t,t.name+".prototype = Object.create("),t.parent.visitExpression(this,e),e.println(t,".prototype);")),t.getters.forEach(function(r){return n._visitClassGetter(t,r,e)}),t.methods.forEach(function(r){return n._visitClassMethod(t,r,e)}),e.popClass(),null},e.prototype._visitClassConstructor=function(t,e){e.print(t,"function "+t.name+"("),null!=t.constructorMethod&&this._visitParams(t.constructorMethod.params,e),e.println(t,") {"),e.incIndent(),null!=t.constructorMethod&&t.constructorMethod.body.length>0&&(e.println(t,"var self = this;"),this.visitAllStatements(t.constructorMethod.body,e)),e.decIndent(),e.println(t,"}")},e.prototype._visitClassGetter=function(t,e,n){n.println(t,"Object.defineProperty("+t.name+".prototype, '"+e.name+"', { get: function() {"),n.incIndent(),e.body.length>0&&(n.println(t,"var self = this;"),this.visitAllStatements(e.body,n)),n.decIndent(),n.println(t,"}});")},e.prototype._visitClassMethod=function(t,e,n){n.print(t,t.name+".prototype."+e.name+" = function("),this._visitParams(e.params,n),n.println(t,") {"),n.incIndent(),e.body.length>0&&(n.println(t,"var self = this;"),this.visitAllStatements(e.body,n)),n.decIndent(),n.println(t,"};")},e.prototype.visitReadVarExpr=function(e,n){if(e.builtin===al.This)n.print(e,"self");else{if(e.builtin===al.Super)throw new Error("'super' needs to be handled at a parent ast node, not at the variable level!");t.prototype.visitReadVarExpr.call(this,e,n)}return null},e.prototype.visitDeclareVarStmt=function(t,e){return e.print(t,"var "+t.name+" = "),t.value.visitExpression(this,e),e.println(t,";"),null},e.prototype.visitCastExpr=function(t,e){return t.value.visitExpression(this,e),null},e.prototype.visitInvokeFunctionExpr=function(e,n){var r=e.fn;return r instanceof ul&&r.builtin===al.Super?(n.currentClass.parent.visitExpression(this,n),n.print(e,".call(this"),e.args.length>0&&(n.print(e,", "),this.visitAllExpressions(e.args,n,",")),n.print(e,")")):t.prototype.visitInvokeFunctionExpr.call(this,e,n),null},e.prototype.visitFunctionExpr=function(t,e){return e.print(t,"function("),this._visitParams(t.params,e),e.println(t,") {"),e.incIndent(),this.visitAllStatements(t.statements,e),e.decIndent(),e.print(t,"}"),null},e.prototype.visitDeclareFunctionStmt=function(t,e){return e.print(t,"function "+t.name+"("),this._visitParams(t.params,e),e.println(t,") {"),e.incIndent(),this.visitAllStatements(t.statements,e),e.decIndent(),e.println(t,"}"),null},e.prototype.visitTryCatchStmt=function(t,e){e.println(t,"try {"),e.incIndent(),this.visitAllStatements(t.bodyStmts,e),e.decIndent(),e.println(t,"} catch ("+fp.name+") {"),e.incIndent();var n=[dp.set(fp.prop("stack")).toDeclStmt(null,[Nl.Final])].concat(t.catchStmts);return this.visitAllStatements(n,e),e.decIndent(),e.println(t,"}"),null},e.prototype._visitParams=function(t,e){this.visitAllObjects(function(t){return e.print(null,t.name)},t,e,",")},e.prototype.getBuiltinMethodName=function(t){var e;switch(t){case hl.ConcatArray:e="concat";break;case hl.SubscribeObservable:e="subscribe";break;case hl.Bind:e="bind";break;default:throw new Error("Unknown builtin method: "+t)}return e},e}(mp),Zh=function(t){function e(){var e=t.apply(this,arguments)||this;return e._evalArgNames=[],e._evalArgValues=[],e}return zr(e,t),e.prototype.getArgs=function(){for(var t={},e=0;e<this._evalArgNames.length;e++)t[this._evalArgNames[e]]=this._evalArgValues[e];return t},e.prototype.visitExternalExpr=function(t,e){var n=t.value.reference,r=this._evalArgValues.indexOf(n);if(-1===r){r=this._evalArgValues.length,this._evalArgValues.push(n);var o=g(t.value)||"val";this._evalArgNames.push("jit_"+o+r)}return e.print(t,this._evalArgNames[r]),null},e}(Xh),Yh=function(){function t(t,e,n,r,o,i,s,a){this._injector=t,this._metadataResolver=e,this._templateParser=n,this._styleCompiler=r,this._viewCompiler=o,this._ngModuleCompiler=i,this._compilerConfig=s,this._console=a,this._compiledTemplateCache=new Map,this._compiledHostTemplateCache=new Map,this._compiledDirectiveWrapperCache=new Map,this._compiledNgModuleCache=new Map,this._sharedStylesheetCount=0}return Object.defineProperty(t.prototype,"injector",{get:function(){return this._injector},enumerable:!0,configurable:!0}),t.prototype.compileModuleSync=function(t){return this._compileModuleAndComponents(t,!0).syncResult},t.prototype.compileModuleAsync=function(t){return this._compileModuleAndComponents(t,!1).asyncResult},t.prototype.compileModuleAndAllComponentsSync=function(t){return this._compileModuleAndAllComponents(t,!0).syncResult},t.prototype.compileModuleAndAllComponentsAsync=function(t){return this._compileModuleAndAllComponents(t,!1).asyncResult},t.prototype.getNgContentSelectors=function(t){this._console.warn("Compiler.getNgContentSelectors is deprecated. Use ComponentFactory.ngContentSelectors instead!");var n=this._compiledTemplateCache.get(t);if(!n)throw new Error("The component "+e.ɵstringify(t)+" is not yet compiled!");return n.compMeta.template.ngContentSelectors},t.prototype._compileModuleAndComponents=function(t,e){var n=this,r=this._loadModules(t,e),o=function(){return n._compileComponents(t,null),n._compileModule(t)};return e?new Eo(o()):new Eo(null,r.then(o))},t.prototype._compileModuleAndAllComponents=function(t,n){var r=this,o=this._loadModules(t,n),i=function(){var n=[];return r._compileComponents(t,n),new e.ModuleWithComponentFactories(r._compileModule(t),n)};return n?new Eo(i()):new Eo(null,o.then(i))},t.prototype._loadModules=function(t,e){var n=this,r=[],o=this._metadataResolver.getNgModuleMetadata(t);return o.transitiveModule.modules.forEach(function(t){r.push(n._metadataResolver.loadNgModuleDirectiveAndPipeMetadata(t.reference,e))}),Promise.all(r)},t.prototype._compileModule=function(t){var n=this,r=this._compiledNgModuleCache.get(t);if(!r){var o=this._metadataResolver.getNgModuleMetadata(t),i=[this._metadataResolver.getProviderMetadata(new Wo(e.Compiler,{useFactory:function(){return new tf(n,o.type.reference)}}))],s=this._ngModuleCompiler.compile(o,i);r=this._compilerConfig.useJit?Vr(I(o),s.statements,[s.ngModuleFactoryVar])[0]:Ir(s.statements,[s.ngModuleFactoryVar])[0],this._compiledNgModuleCache.set(o.type.reference,r)}return r},t.prototype._compileComponents=function(t,e){var n=this,r=this._metadataResolver.getNgModuleMetadata(t),o=new Map,i=new Set;r.transitiveModule.modules.forEach(function(t){var r=n._metadataResolver.getNgModuleMetadata(t.reference);r.declaredDirectives.forEach(function(t){o.set(t.reference,r);var s=n._metadataResolver.getDirectiveMetadata(t.reference);if(s.isComponent&&(i.add(n._createCompiledTemplate(s,r)),e)){var a=n._createCompiledHostTemplate(s.type.reference,r);i.add(a),e.push(s.componentFactory)}})}),r.transitiveModule.modules.forEach(function(t){var e=n._metadataResolver.getNgModuleMetadata(t.reference);e.declaredDirectives.forEach(function(t){var e=n._metadataResolver.getDirectiveMetadata(t.reference);e.isComponent&&e.entryComponents.forEach(function(t){var e=o.get(t.componentType);i.add(n._createCompiledHostTemplate(t.componentType,e))})}),e.entryComponents.forEach(function(t){var e=o.get(t.componentType);i.add(n._createCompiledHostTemplate(t.componentType,e))})}),i.forEach(function(t){return n._compileTemplate(t)})},t.prototype.clearCacheFor=function(t){this._compiledNgModuleCache["delete"](t),this._metadataResolver.clearCacheFor(t),this._compiledHostTemplateCache["delete"](t);var e=this._compiledTemplateCache.get(t);e&&this._compiledTemplateCache["delete"](t)},t.prototype.clearCache=function(){this._metadataResolver.clearCache(),this._compiledTemplateCache.clear(),this._compiledHostTemplateCache.clear(),this._compiledNgModuleCache.clear()},t.prototype._createCompiledHostTemplate=function(t,n){if(!n)throw new Error("Component "+e.ɵstringify(t)+" is not part of any NgModule or the module has not been imported into your module.");var r=this._compiledHostTemplateCache.get(t);if(!r){var o=this._metadataResolver.getDirectiveMetadata(t);Fr(o);var i=o.componentFactory,s=this._metadataResolver.getHostComponentType(t),a=P(s,o,e.ɵgetComponentViewDefinitionFactory(i));r=new Jh(!0,o.type,a,n,[o.type]),this._compiledHostTemplateCache.set(t,r)}return r},t.prototype._createCompiledTemplate=function(t,e){var n=this._compiledTemplateCache.get(t.type.reference);return n||(Fr(t),n=new Jh(!1,t.type,t,e,e.transitiveModule.directives),this._compiledTemplateCache.set(t.type.reference,n)),n},t.prototype._compileTemplate=function(t){var e=this;if(!t.isCompiled){var n=t.compMeta,r=new Map,o=this._styleCompiler.compileComponent(n);o.externalStylesheets.forEach(function(t){r.set(t.meta.moduleUrl,t)}),this._resolveStylesCompileResult(o.componentStylesheet,r);var i,s,a=t.directives.map(function(t){return e._metadataResolver.getDirectiveSummary(t.reference)}),u=t.ngModule.transitiveModule.pipes.map(function(t){return e._metadataResolver.getPipeSummary(t.reference)}),c=this._templateParser.parse(n,n.template.template,a,u,t.ngModule.schemas,R(t.ngModule.type,t.compMeta,t.compMeta.template)),l=c.template,p=c.pipes,h=this._viewCompiler.compileComponent(n,l,pn(o.componentStylesheet.stylesVar),p),f=o.componentStylesheet.statements.concat(h.statements),d=n.isHost?[h.viewClassVar]:[h.viewClassVar,h.rendererTypeVar];this._compilerConfig.useJit?(v=Vr(N(t.ngModule.type,t.compMeta),f,d),i=v[0],s=v[1]):(y=Ir(f,d),i=y[0],s=y[1]),t.compiled(i,s);var y,v}},t.prototype._resolveStylesCompileResult=function(t,e){var n=this;t.dependencies.forEach(function(t){var r=e.get(t.moduleUrl),o=n._resolveAndEvalStylesCompileResult(r,e);t.valuePlaceholder.reference=o})},t.prototype._resolveAndEvalStylesCompileResult=function(t,e){return this._resolveStylesCompileResult(t,e),this._compilerConfig.useJit?Vr(k(t.meta,this._sharedStylesheetCount++),t.statements,[t.stylesVar])[0]:Ir(t.statements,[t.stylesVar])[0]},t}();Yh.decorators=[{type:F}],Yh.ctorParameters=function(){return[{type:e.Injector},{type:Kc},{type:xc},{type:uh},{type:Ch},{type:np},{type:Ko},{type:e.ɵConsole}]};var Jh=function(){function t(t,e,n,r,o){this.isHost=t,this.compType=e,this.compMeta=n,this.ngModule=r, +this.directives=o,this._viewClass=null,this.isCompiled=!1}return t.prototype.compiled=function(t,e){this._viewClass=t,this.compMeta.componentViewType.setDelegate(t);for(var n in e)this.compMeta.rendererType[n]=e[n];this.isCompiled=!0},t}(),tf=function(){function t(t,e){this._delegate=t,this._ngModule=e}return Object.defineProperty(t.prototype,"_injector",{get:function(){return this._delegate.injector},enumerable:!0,configurable:!0}),t.prototype.compileModuleSync=function(t){return this._delegate.compileModuleSync(t)},t.prototype.compileModuleAsync=function(t){return this._delegate.compileModuleAsync(t)},t.prototype.compileModuleAndAllComponentsSync=function(t){return this._delegate.compileModuleAndAllComponentsSync(t)},t.prototype.compileModuleAndAllComponentsAsync=function(t){return this._delegate.compileModuleAndAllComponentsAsync(t)},t.prototype.getNgContentSelectors=function(t){return this._delegate.getNgContentSelectors(t)},t.prototype.clearCache=function(){this._delegate.clearCache()},t.prototype.clearCacheFor=function(t){this._delegate.clearCacheFor(t)},t}(),ef=function(){function t(t,e,n,r){void 0===r&&(r=null),this._htmlParser=t,this._implicitTags=e,this._implicitAttrs=n,this._locale=r,this._messages=[]}return t.prototype.updateFromTemplate=function(t,e,n){var r=this._htmlParser.parse(t,e,!0,n);if(r.errors.length)return r.errors;var o=Ct(r.rootNodes,n,this._implicitTags,this._implicitAttrs);if(o.errors.length)return o.errors;(i=this._messages).push.apply(i,o.messages);var i},t.prototype.getMessages=function(){return this._messages},t.prototype.write=function(t){var e={},n=new nf;this._messages.forEach(function(n){var r=t.digest(n);e.hasOwnProperty(r)||(e[r]=n)});var r=Object.keys(e).map(function(r){var o=t.createNameMapper(e[r]),i=e[r],s=o?n.convert(i.nodes,o):i.nodes;return new oa(s,{},{},i.meaning,i.description,r)});return t.write(r,this._locale)},t}(),nf=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return zr(e,t),e.prototype.convert=function(t,e){var n=this;return e?t.map(function(t){return t.visit(n,e)}):t},e.prototype.visitTagPlaceholder=function(t,e){var n=this,r=e.toPublicName(t.startName),o=t.closeName?e.toPublicName(t.closeName):t.closeName,i=t.children.map(function(t){return t.visit(n,e)});return new ua(t.tag,t.attrs,r,o,i,t.isVoid,t.sourceSpan)},e.prototype.visitPlaceholder=function(t,e){return new ca(t.value,e.toPublicName(t.name),t.sourceSpan)},e.prototype.visitIcuPlaceholder=function(t,e){return new la(t.value,e.toPublicName(t.name),t.sourceSpan)},e}(pa),rf=function(){function t(t,e,n,r){this.host=t,this.staticSymbolResolver=e,this.messageBundle=n,this.metadataResolver=r}return t.prototype.extract=function(t){var e=this,n=Cr(this.staticSymbolResolver,t,this.host),r=br(n,this.host,this.metadataResolver),o=r.files,i=r.ngModules;return Promise.all(i.map(function(t){return e.metadataResolver.loadNgModuleDirectiveAndPipeMetadata(t.type.reference,!1)})).then(function(){var t=[];if(o.forEach(function(n){var r=[];n.directives.forEach(function(t){var n=e.metadataResolver.getDirectiveMetadata(t);n&&n.isComponent&&r.push(n)}),r.forEach(function(r){var o=r.template.template,i=Es.fromArray(r.template.interpolation);t.push.apply(t,e.messageBundle.updateFromTemplate(o,n.srcUrl,i))})}),t.length)throw new Error(t.map(function(t){return t.toString()}).join("\n"));return e.messageBundle})},t.create=function(n,r){var o=new _u(new vu),i=De(),s=new uo,a=new zh(n,s),u=new qh(n,s,a),c=new Vh(u);Nh.install(c);var l=new Ko({defaultEncapsulation:e.ViewEncapsulation.Emulated,useJit:!1}),p=new Lc({get:function(t){return n.loadResource(t)}},i,o,l),h=new Ap,f=new Kc(l,new qc(c),new Uc(c),new zc(c),a,h,p,new e.ɵConsole,s,c),d=new ef(o,[],{},r),y=new t(n,u,d,f);return{extractor:y,staticReflector:c}},t}(),of={get:function(t){throw new Error("No ResourceLoader implementation has been provided. Can't read the url \""+t+'"')}},sf=new e.InjectionToken("HtmlParser"),af=[{provide:e.ɵReflector,useValue:e.ɵreflector},{provide:e.ɵReflectorReader,useExisting:e.ɵReflector},{provide:kc,useValue:of},Gc,e.ɵConsole,Ps,Is,{provide:sf,useClass:vu},{provide:_u,useFactory:function(t,e,n,r,o){return new _u(t,e,n,r.missingTranslation,o)},deps:[sf,[new e.Optional,new e.Inject(e.TRANSLATIONS)],[new e.Optional,new e.Inject(e.TRANSLATIONS_FORMAT)],[Ko],[e.ɵConsole]]},{provide:vu,useExisting:_u},xc,Lc,Kc,Ic,uh,Ch,np,{provide:Ko,useValue:new Ko},Yh,{provide:e.Compiler,useExisting:Yh},Ap,{provide:Mu,useExisting:Ap},Nc,Uc,zc,qc],uf=function(){function t(t){var n={useDebug:e.isDevMode(),useJit:!0,defaultEncapsulation:e.ViewEncapsulation.Emulated,missingTranslation:e.MissingTranslationStrategy.Warning,enableLegacyTemplate:!0};this._defaultOptions=[n].concat(t)}return t.prototype.createCompiler=function(t){void 0===t&&(t=[]);var n=Br(this._defaultOptions.concat(t)),r=e.ReflectiveInjector.resolveAndCreate([af,{provide:Ko,useFactory:function(){return new Ko({useJit:n.useJit,defaultEncapsulation:n.defaultEncapsulation,missingTranslation:n.missingTranslation,enableLegacyTemplate:n.enableLegacyTemplate})},deps:[]},n.providers]);return r.get(e.Compiler)},t}();uf.decorators=[{type:F}],uf.ctorParameters=function(){return[{type:Array,decorators:[{type:e.Inject,args:[e.COMPILER_OPTIONS]}]}]};var cf=e.createPlatformFactory(e.platformCore,"coreDynamic",[{provide:e.COMPILER_OPTIONS,useValue:{},multi:!0},{provide:e.CompilerFactory,useClass:uf},{provide:e.PLATFORM_INITIALIZER,useValue:Ur,multi:!0}]),lf=function(){function t(){}return t.prototype.fileNameToModuleName=function(){},t.prototype.getImportAs=function(){},t.prototype.getTypeArity=function(){},t}();t.VERSION=Gr,t.TEMPLATE_TRANSFORMS=Cc,t.CompilerConfig=Ko,t.JitCompiler=Yh,t.DirectiveResolver=Uc,t.PipeResolver=zc,t.NgModuleResolver=qc,t.DEFAULT_INTERPOLATION_CONFIG=Ss,t.InterpolationConfig=Es,t.NgModuleCompiler=np,t.ViewCompiler=Ch,t.isSyntaxError=f,t.syntaxError=h,t.TextAst=Wr,t.BoundTextAst=Kr,t.AttrAst=Qr,t.BoundElementPropertyAst=$r,t.BoundEventAst=Xr,t.ReferenceAst=Zr,t.VariableAst=Yr,t.ElementAst=Jr,t.EmbeddedTemplateAst=to,t.BoundDirectivePropertyAst=eo,t.DirectiveAst=no,t.ProviderAst=ro,t.ProviderAstType=oo,t.NgContentAst=io,t.PropertyBindingType=so,t.templateVisitAll=n,t.CompileAnimationEntryMetadata=Po,t.CompileAnimationStateMetadata=Ao,t.CompileAnimationStateDeclarationMetadata=Oo,t.CompileAnimationStateTransitionMetadata=Mo,t.CompileAnimationMetadata=Ro,t.CompileAnimationKeyframesSequenceMetadata=ko,t.CompileAnimationStyleMetadata=Io,t.CompileAnimationAnimateMetadata=No,t.CompileAnimationWithStepsMetadata=Do,t.CompileAnimationSequenceMetadata=jo,t.CompileAnimationGroupMetadata=Lo,t.identifierName=g,t.identifierModuleUrl=_,t.viewClassName=b,t.rendererTypeName=w,t.hostViewClassName=C,t.dirWrapperClassName=E,t.componentFactoryName=S,t.CompileSummaryKind=Fo,t.tokenName=x,t.tokenReference=T,t.CompileStylesheetMetadata=Uo,t.CompileTemplateMetadata=Bo,t.CompileDirectiveMetadata=Ho,t.createHostComponentMeta=P,t.CompilePipeMetadata=qo,t.CompileNgModuleMetadata=zo,t.TransitiveCompileNgModuleMetadata=Go,t.ProviderMeta=Wo,t.flatten=O,t.sourceUrl=M,t.templateSourceUrl=R,t.sharedStylesheetJitUrl=k,t.ngModuleJitUrl=I,t.templateJitUrl=N,t.createAotCompiler=kr,t.AotCompiler=Ih,t.analyzeNgModules=_r,t.analyzeAndValidateNgModules=br,t.extractProgramSymbols=Cr,t.GeneratedFile=Mh,t.StaticReflector=Vh,t.StaticAndDynamicReflectionCapabilities=Nh,t.StaticSymbol=ao,t.StaticSymbolCache=uo,t.ResolvedStaticSymbol=Bh,t.StaticSymbolResolver=qh,t.unescapeIdentifier=Rr,t.AotSummaryResolver=zh,t.SummaryResolver=Gc,t.COMPILER_PROVIDERS=af,t.JitCompilerFactory=uf,t.platformCoreDynamic=cf,t.createUrlResolverWithoutPackagePrefix=Ne,t.createOfflineCompileUrlResolver=De,t.DEFAULT_PACKAGE_URL_PROVIDER=Ic,t.UrlResolver=Nc,t.getUrlScheme=je,t.ResourceLoader=kc,t.ElementSchemaRegistry=Mu,t.Extractor=rf,t.I18NHtmlParser=_u,t.MessageBundle=ef,t.Serializer=Na,t.Xliff=Ya,t.Xmb=au,t.Xtb=fu,t.DirectiveNormalizer=Lc,t.ParserError=Qo,t.ParseSpan=$o,t.AST=Xo,t.Quote=Zo,t.EmptyExpr=Yo,t.ImplicitReceiver=Jo,t.Chain=ti,t.Conditional=ei,t.PropertyRead=ni,t.PropertyWrite=ri,t.SafePropertyRead=oi,t.KeyedRead=ii,t.KeyedWrite=si,t.BindingPipe=ai,t.LiteralPrimitive=ui,t.LiteralArray=ci,t.LiteralMap=li,t.Interpolation=pi,t.Binary=hi,t.PrefixNot=fi,t.MethodCall=di,t.SafeMethodCall=yi,t.FunctionCall=vi,t.ASTWithSource=mi,t.TemplateBinding=gi,t.RecursiveAstVisitor=_i,t.AstTransformer=bi,t.TokenType=xs,t.Lexer=Ps,t.Token=As,t.EOF=Os,t.isIdentifier=X,t.isQuote=tt,t.SplitInterpolation=Rs,t.TemplateBindingParseResult=ks,t.Parser=Is,t._ParseAST=Ns,t.ERROR_COLLECTOR_TOKEN=Wc,t.CompileMetadataResolver=Kc,t.componentModuleUrl=rn,t.Text=Bs,t.Expansion=Hs,t.ExpansionCase=qs,t.Attribute=zs,t.Element=Gs,t.Comment=Ws,t.visitAll=it,t.ParseTreeResult=ea,t.TreeError=ta,t.HtmlParser=vu,t.HtmlTagDefinition=po,t.getHtmlTagDefinition=s,t.TagContentType=co,t.splitNsName=r,t.getNsPrefix=o,t.mergeNsAndName=i,t.NAMED_ENTITIES=lo,t.ImportResolver=lf,t.debugOutputAstAsTypeScript=On,t.TypeScriptEmitter=_p,t.ParseLocation=js,t.ParseSourceFile=Ls,t.ParseSourceSpan=Vs,t.ParseErrorLevel=Fs,t.ParseError=Us,t.typeSourceSpan=ot,t.DomElementSchemaRegistry=Ap,t.CssSelector=vo,t.SelectorMatcher=mo,t.SelectorListContext=go,t.SelectorContext=_o,t.StylesCompileDependency=ih,t.StylesCompileResult=sh,t.CompiledStylesheet=ah,t.StyleCompiler=uh,t.TemplateParseError=Ec,t.TemplateParseResult=Sc,t.TemplateParser=xc,t.splitClasses=Ae,t.createElementCssSelector=Oe,t.removeSummaryDuplicates=Re,Object.defineProperty(t,"__esModule",{value:!0})})},{"@angular/core":8}],8:[function(e,n,r){(function(o){!function(o,i){"object"==typeof r&&"undefined"!=typeof n?i(r,e("rxjs/Observable"),e("rxjs/observable/merge"),e("rxjs/operator/share"),e("rxjs/Subject")):"function"==typeof t&&t.amd?t(["exports","rxjs/Observable","rxjs/observable/merge","rxjs/operator/share","rxjs/Subject"],i):i((o.ng=o.ng||{},o.ng.core=o.ng.core||{}),o.Rx,o.Rx.Observable,o.Rx.Observable.prototype,o.Rx)}(this,function(t,e,n,r,i){"use strict";function s(){if(!oo){var t=ro.Symbol;if(t&&t.iterator)oo=t.iterator;else for(var e=Object.getOwnPropertyNames(Map.prototype),n=0;n<e.length;++n){var r=e[n];"entries"!==r&&"size"!==r&&Map.prototype[r]===Map.prototype.entries&&(oo=r)}}return oo}function a(t){Zone.current.scheduleMicroTask("scheduleMicrotask",t)}function u(t,e){return t===e||"number"==typeof t&&"number"==typeof e&&isNaN(t)&&isNaN(e)}function c(t){if("string"==typeof t)return t;if(null==t)return""+t;if(t.overriddenName)return""+t.overriddenName;if(t.name)return""+t.name;var e=t.toString();if(null==e)return""+e;var n=e.indexOf("\n");return-1===n?e:e.substring(0,n)}function l(t){return"function"==typeof t&&t.hasOwnProperty("annotation")&&(t=t.annotation),t}function p(t,e){if(t===Object||t===String||t===Function||t===Number||t===Array)throw new Error("Can not use native "+c(t)+" as constructor");if("function"==typeof t)return t;if(Array.isArray(t)){var n=t,r=n.length-1,o=t[r];if("function"!=typeof o)throw new Error("Last position of Class method array must be Function in key "+e+" was '"+c(o)+"'");if(r!=o.length)throw new Error("Number of annotations ("+r+") does not match number of arguments ("+o.length+") in the function: "+c(o));for(var i=[],s=0,a=n.length-1;a>s;s++){var u=[];i.push(u);var p=n[s];if(Array.isArray(p))for(var h=0;h<p.length;h++)u.push(l(p[h]));else u.push("function"==typeof p?l(p):p)}return so.defineMetadata("parameters",i,o),o}throw new Error("Only Function or Array is supported in Class definition for key '"+e+"' is '"+c(t)+"'")}function h(t){var e=p(t.hasOwnProperty("constructor")?t.constructor:void 0,"constructor"),n=e.prototype;if(t.hasOwnProperty("extends")){if("function"!=typeof t["extends"])throw new Error("Class definition 'extends' property must be a constructor function was: "+c(t["extends"]));e.prototype=n=Object.create(t["extends"].prototype)}for(var r in t)"extends"!==r&&"prototype"!==r&&t.hasOwnProperty(r)&&(n[r]=p(t[r],r));this&&this.annotations instanceof Array&&so.defineMetadata("annotations",this.annotations,e);var o=e.name;return o&&"constructor"!==o||(e.overriddenName="class"+io++),e}function f(t,e,n,r){function o(t){if(!so||!so.getOwnMetadata)throw"reflect-metadata shim is required when using class decorators";if(this instanceof o)return i.call(this,t),this;var e=new o(t),n="function"==typeof this&&Array.isArray(this.annotations)?this.annotations:[];n.push(e);var s=function(t){var n=so.getOwnMetadata("annotations",t)||[];return n.push(e),so.defineMetadata("annotations",n,t),t};return s.annotations=n,s.Class=h,r&&r(s),s}var i=d([e]);return n&&(o.prototype=Object.create(n.prototype)),o.prototype.toString=function(){return"@"+t},o.annotationCls=o,o}function d(t){return function(){for(var e=this,n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];t.forEach(function(t,r){var o=n[r];if(Array.isArray(t))e[t[0]]=void 0===o?t[1]:o;else for(var i in t)e[i]=o&&o.hasOwnProperty(i)?o[i]:t[i]})}}function y(t,e,n){function r(){function t(t,e,n){for(var r=so.getOwnMetadata("parameters",t)||[];r.length<=n;)r.push(null);return r[n]=r[n]||[],r[n].push(i),so.defineMetadata("parameters",r,t),t}for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];if(this instanceof r)return o.apply(this,e),this;var i=new(r.bind.apply(r,[void 0].concat(e)));return t.annotation=i,t}var o=d(e);return n&&(r.prototype=Object.create(n.prototype)),r.prototype.toString=function(){return"@"+t},r.annotationCls=r,r}function v(t,e,n){function r(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];if(this instanceof r)return o.apply(this,t),this;var n=new(r.bind.apply(r,[void 0].concat(t)));return function(t,e){var r=so.getOwnMetadata("propMetadata",t.constructor)||{};r[e]=r.hasOwnProperty(e)&&r[e]||[],r[e].unshift(n),so.defineMetadata("propMetadata",r,t.constructor)}}var o=d(e);return n&&(r.prototype=Object.create(n.prototype)),r.prototype.toString=function(){return"@"+t},r.annotationCls=r,r}function m(t){return null==t||t===yo.Default}function g(t){return t.__forward_ref__=g,t.toString=function(){return c(this())},t}function _(t){return"function"==typeof t&&t.hasOwnProperty("__forward_ref__")&&t.__forward_ref__===g?t():t}function b(t){return t[Ho]}function w(t){return t[qo]}function C(t){return t[zo]||E}function E(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];t.error.apply(t,e)}function S(t,e){var n=t+" caused by: "+(e instanceof Error?e.message:e),r=Error(n);return r[qo]=e,r}function x(t){for(var e=[],n=0;n<t.length;++n){if(e.indexOf(t[n])>-1)return e.push(t[n]),e;e.push(t[n])}return e}function T(t){if(t.length>1){var e=x(t.slice().reverse()),n=e.map(function(t){return c(t.token)});return" ("+n.join(" -> ")+")"}return""}function P(t,e,n,r){var o=r?S("",r):Error();return o.addKey=A,o.keys=[e],o.injectors=[t],o.constructResolvingMessage=n,o.message=o.constructResolvingMessage(),o[qo]=r,o}function A(t,e){this.injectors.push(t),this.keys.push(e),this.message=this.constructResolvingMessage()}function O(t,e){return P(t,e,function(){var t=c(this.keys[0].token);return"No provider for "+t+"!"+T(this.keys)})}function M(t,e){return P(t,e,function(){return"Cannot instantiate cyclic dependency!"+T(this.keys)})}function R(t,e,n,r){return P(t,r,function(){var t=c(this.keys[0].token);return w(this).message+": Error during instantiation of "+t+"!"+T(this.keys)+"."},e)}function k(t){return Error("Invalid provider - only instances of Provider and Type are allowed, got: "+t)}function I(t,e){for(var n=[],r=0,o=e.length;o>r;r++){var i=e[r];n.push(i&&0!=i.length?i.map(c).join(" "):"?")}return Error("Cannot resolve all parameters for '"+c(t)+"'("+n.join(", ")+"). Make sure that all the parameters are decorated with Inject or have valid type annotations and that '"+c(t)+"' is decorated with Injectable.")}function N(t){return Error("Index "+t+" is out-of-bounds.")}function D(t,e){return Error("Cannot mix multi providers and regular providers, got: "+t+" "+e)}function j(t){return"function"==typeof t}function L(t){return t?t.map(function(t){var e=t.type,n=e.annotationCls,r=t.args?t.args:[];return new(n.bind.apply(n,[void 0].concat(r)))}):[]}function V(t){var e=Object.getPrototypeOf(t.prototype),n=e?e.constructor:null;return n||Object}function F(t){var e,n;if(t.useClass){var r=_(t.useClass);e=ti.factory(r),n=G(r)}else t.useExisting?(e=function(t){return t},n=[ei.fromKey(Wo.get(t.useExisting))]):t.useFactory?(e=t.useFactory,n=z(t.useFactory,t.deps)):(e=function(){return t.useValue},n=ni);return new oi(e,n)}function U(t){return new ri(Wo.get(t.provide),[F(t)],t.multi||!1)}function B(t){var e=q(t,[]),n=e.map(U),r=H(n,new Map);return Array.from(r.values())}function H(t,e){for(var n=0;n<t.length;n++){var r=t[n],o=e.get(r.key.id);if(o){if(r.multiProvider!==o.multiProvider)throw D(o,r);if(r.multiProvider)for(var i=0;i<r.resolvedFactories.length;i++)o.resolvedFactories.push(r.resolvedFactories[i]);else e.set(r.key.id,r)}else{var s=void 0;s=r.multiProvider?new ri(r.key,r.resolvedFactories.slice(),r.multiProvider):r,e.set(r.key.id,s)}}return e}function q(t,e){return t.forEach(function(t){if(t instanceof $o)e.push({provide:t,useClass:t});else if(t&&"object"==typeof t&&void 0!==t.provide)e.push(t);else{if(!(t instanceof Array))throw k(t);q(t,e)}}),e}function z(t,e){if(e){var n=e.map(function(t){return[t]});return e.map(function(e){return W(t,e,n)})}return G(t)}function G(t){var e=ti.parameters(t);if(!e)return[];if(e.some(function(t){return null==t}))throw I(t,e);return e.map(function(n){return W(t,n,e)})}function W(t,e,n){var r=null,o=!1;if(!Array.isArray(e))return e instanceof Ro?K(e.token,o,null):K(e,o,null);for(var i=null,s=0;s<e.length;++s){var a=e[s];a instanceof $o?r=a:a instanceof Ro?r=a.token:a instanceof ko?o=!0:a instanceof No||a instanceof Do?i=a:a instanceof Jr&&(r=a)}if(r=_(r),null!=r)return K(r,o,i);throw I(t,n)}function K(t,e,n){return new ei(Wo.get(t),e,n)}function Q(t,e){for(var n=new Array(t._providers.length),r=0;r<t._providers.length;++r)n[r]=e(t.getProviderAtIndex(r));return n}function $(t){return!!t&&"function"==typeof t.then}function X(t){return!!t&&"function"==typeof t.subscribe}function Z(){return""+Y()+Y()+Y()}function Y(){return String.fromCharCode(97+Math.floor(25*Math.random()))}function J(){throw new Error("Runtime compiler is not loaded")}function tt(t){var e=Error("No component factory found for "+c(t)+". Did you add it to @NgModule.entryComponents?");return e[Si]=t,e}function et(){var t=ro.wtf;return t&&(Pi=t.trace)?(Ai=Pi.events,!0):!1}function nt(t,e){return void 0===e&&(e=null),Ai.createScope(t,e)}function rt(t,e){return Pi.leaveScope(t,e),e}function ot(t,e){return Pi.beginTimeRange(t,e)}function it(t){Pi.endTimeRange(t)}function st(){return null}function at(t){Wi=t}function ut(){if(Qi)throw new Error("Cannot enable prod mode after platform setup.");Ki=!1}function ct(){return Qi=!0,Ki}function lt(t){if(zi&&!zi.destroyed&&!zi.injector.get($i,!1))throw new Error("There can be only one platform. Destroy the previous one to create a new one.");zi=t.get(Zi);var e=t.get(fi,null);return e&&e.forEach(function(t){return t()}),zi}function pt(t,e,n){void 0===n&&(n=[]);var r=new Jr("Platform: "+e);return function(e){void 0===e&&(e=[]);var o=dt();return(!o||o.injector.get($i,!1))&&(t?t(n.concat(e).concat({provide:r,useValue:!0})):lt(si.resolveAndCreate(n.concat(e).concat({provide:r,useValue:!0})))),ht(r)}}function ht(t){var e=dt();if(!e)throw new Error("No platform exists!");if(!e.injector.get(t,null))throw new Error("A platform with a different configuration has been created. Please destroy it first.");return e}function ft(){zi&&!zi.destroyed&&zi.destroy()}function dt(){return zi&&!zi.destroyed?zi:null}function yt(t,e){try{var n=e();return $(n)?n["catch"](function(e){throw t.handleError(e),e}):n}catch(r){throw t.handleError(r),r}}function vt(t,e){var n=t.indexOf(e);n>-1&&t.splice(n,1)}function mt(t,e){var n=ls.get(t);if(n)throw new Error("Duplicate module registered for "+t+" - "+n.moduleType.name+" vs "+e.moduleType.name);ls.set(t,e)}function gt(t){var e=ls.get(t);if(!e)throw new Error("No module with ID "+t+" loaded");return e}function _t(t){return t.reduce(function(t,e){var n=Array.isArray(e)?_t(e):e;return t.concat(n)},[])}function bt(t,e,n){if(!t)throw new Error("Cannot find '"+n+"' in '"+e+"'");return t}function wt(t){return t.map(function(t){return t.nativeElement})}function Ct(t,e,n){t.childNodes.forEach(function(t){t instanceof Ss&&(e(t)&&n.push(t),Ct(t,e,n))})}function Et(t,e,n){t instanceof Ss&&t.childNodes.forEach(function(t){e(t)&&n.push(t),t instanceof Ss&&Et(t,e,n)})}function St(t){return xs.get(t)||null}function xt(t){xs.set(t.nativeNode,t)}function Tt(t){xs["delete"](t.nativeNode)}function Pt(t,e){var n=At(t),r=At(e);if(n&&r)return Ot(t,e,Pt);var o=t&&("object"==typeof t||"function"==typeof t),i=e&&("object"==typeof e||"function"==typeof e);return!n&&o&&!r&&i?!0:u(t,e)}function At(t){return Rt(t)?Array.isArray(t)||!(t instanceof Map)&&s()in t:!1}function Ot(t,e,n){for(var r=t[s()](),o=e[s()]();;){var i=r.next(),a=o.next();if(i.done&&a.done)return!0;if(i.done||a.done)return!1;if(!n(i.value,a.value))return!1}}function Mt(t,e){if(Array.isArray(t))for(var n=0;n<t.length;n++)e(t[n]);else for(var r=t[s()](),o=void 0;!(o=r.next()).done;)e(o.value)}function Rt(t){return null!==t&&("function"==typeof t||"object"==typeof t)}function kt(t,e,n){var r=t.previousIndex;if(null===r)return r;var o=0;return n&&r<n.length&&(o=n[r]),r+e+o}function It(t){return t.name||typeof t}function Nt(){return ti}function Dt(t,e){return t.nodes[e]}function jt(t,e){return t.nodes[e]}function Lt(t,e){return t.nodes[e]}function Vt(t,e){return t.nodes[e]}function Ft(t,e){return t.nodes[e]}function Ut(t,e,n,r){var o="ExpressionChangedAfterItHasBeenCheckedError: Expression has changed after it was checked. Previous value: '"+e+"'. Current value: '"+n+"'.";return r&&(o+=" It seems like the view has been created after its parent and its children have been dirty checked. Has it been created in a change detection hook ?"),Ht(o,t)}function Bt(t,e){return t instanceof Error||(t=new Error(t.toString())),qt(t,e),t}function Ht(t,e){var n=new Error(t);return qt(n,e),n}function qt(t,e){t[Ho]=e,t[zo]=e.logError.bind(e)}function zt(t){return!!b(t)}function Gt(t){return new Error("ViewDestroyedError: Attempt to use a destroyed view: "+t)}function Wt(t){var e=ea.get(t);return e||(e=c(t)+"_"+ea.size,ea.set(t,e)),e}function Kt(t,e,n,r){if(r instanceof Ts){r=r.wrapped;var o=t.def.nodes[e].bindingIndex+n,i=t.oldValues[o];i instanceof Ts&&(i=i.wrapped),t.oldValues[o]=new Ts(i)}return r}function Qt(t){return{id:na,styles:t.styles,encapsulation:t.encapsulation,data:t.data}}function $t(t){if(t&&t.id===na){var e=null!=t.encapsulation&&t.encapsulation!==Po.None||t.styles.length||Object.keys(t.data).length;t.id=e?"c"+oa++:ra}return t&&t.id===ra&&(t=null),t||null}function Xt(t,e,n,r){var o=t.oldValues;return 1&t.state||!u(o[e.bindingIndex+n],r)?!0:!1}function Zt(t,e,n,r){return Xt(t,e,n,r)?(t.oldValues[e.bindingIndex+n]=r,!0):!1}function Yt(t,e,n,r){var o=t.oldValues[e.bindingIndex+n];if(1&t.state||!Pt(o,r))throw Ut(Js.createDebugContext(t,e.index),o,r,0!==(1&t.state))}function Jt(t){for(var e=t;e;)2&e.def.flags&&(e.state|=2),e=e.viewContainerParent||e.parent}function te(t,e,n,r){var o=t.def.nodes[e],i=16777216&o.flags?jt(t,e).componentView:t;return Jt(i),Js.handleEvent(t,e,n,r)}function ee(t){if(t.parent){var e=t.parent;return jt(e,t.parentNodeDef.index)}return null}function ne(t){var e=t.parent;return e?t.parentNodeDef.parent:null}function re(t,e){switch(100673535&e.flags){case 1:return jt(t,e.index).renderElement;case 2:return Dt(t,e.index).renderText}}function oe(t,e){return t?t+":"+e:e}function ie(t){return!!t.parent&&!!(16384&t.parentNodeDef.flags)}function se(t){return!(!t.parent||16384&t.parentNodeDef.flags)}function ae(t){return 1<<t%32}function ue(t){var e={},n=0,r={};return t&&t.forEach(function(t){var o=t[0],i=t[1];"number"==typeof o?(e[o]=i,n|=ae(o)):r[o]=i}),{matchedQueries:e,references:r,matchedQueryIds:n}}function ce(t,e,n){var r=n.renderParent;return r?0===(1&r.flags)||0===(16777216&r.flags)||r.element.componentRendererType&&r.element.componentRendererType.encapsulation===Po.Native?jt(t,n.renderParent.index).renderElement:void 0:e}function le(t){var e=ia.get(t);return e||(e=t(function(){return ta}),e.factory=t,ia.set(t,e)),e}function pe(t){var e=[];return he(t,0,void 0,void 0,e),e}function he(t,e,n,r,o){3===e&&(n=t.renderer.parentNode(re(t,t.def.lastRenderRootNode))),fe(t,e,0,t.def.nodes.length-1,n,r,o)}function fe(t,e,n,r,o,i,s){for(var a=n;r>=a;a++){var u=t.def.nodes[a];7&u.flags&&ye(t,u,e,o,i,s),a+=u.childCount}}function de(t,e,n,r,o,i){for(var s=t;s&&!ie(s);)s=s.parent;for(var a=s.parent,u=ne(s),c=u.index+1,l=u.index+u.childCount,p=c;l>=p;p++){var h=a.def.nodes[p];h.ngContentIndex===e&&ye(a,h,n,r,o,i),p+=h.childCount}if(!a.parent){var f=t.root.projectableNodes[e];if(f)for(var p=0;p<f.length;p++)ve(t,f[p],n,r,o,i)}}function ye(t,e,n,r,o,i){if(4&e.flags)de(t,e.ngContent.index,n,r,o,i);else{var s=re(t,e);if(3===n&&16777216&e.flags&&48&e.bindingFlags){if(16&e.bindingFlags&&ve(t,s,n,r,o,i),32&e.bindingFlags){var a=jt(t,e.index).componentView;ve(a,s,n,r,o,i)}}else ve(t,s,n,r,o,i);if(8388608&e.flags)for(var u=jt(t,e.index).viewContainer._embeddedViews,c=0;c<u.length;c++)he(u[c],n,r,o,i);1&e.flags&&!e.element.name&&fe(t,n,e.index+1,e.index+e.childCount,r,o,i)}}function ve(t,e,n,r,o,i){var s=t.renderer;switch(n){case 1:s.appendChild(r,e);break;case 2:s.insertBefore(r,e,o);break;case 3:s.removeChild(r,e);break;case 0:i.push(e)}}function me(t){if(":"===t[0]){var e=t.match(sa);return[e[1],e[2]]}return["",t]}function ge(t){for(var e=0,n=0;n<t.length;n++)e|=t[n].flags;return e}function _e(t,e){for(var n="",r=0;2*t>r;r+=2)n=n+e[r]+we(e[r+1]);return n+e[2*t]}function be(t,e,n,r,o,i,s,a,u,c,l,p,h,f,d,y,v,m,g,_){switch(t){case 1:return e+we(n)+r;case 2:return e+we(n)+r+we(o)+i;case 3:return e+we(n)+r+we(o)+i+we(s)+a;case 4:return e+we(n)+r+we(o)+i+we(s)+a+we(u)+c;case 5:return e+we(n)+r+we(o)+i+we(s)+a+we(u)+c+we(l)+p;case 6:return e+we(n)+r+we(o)+i+we(s)+a+we(u)+c+we(l)+p+we(h)+f;case 7:return e+we(n)+r+we(o)+i+we(s)+a+we(u)+c+we(l)+p+we(h)+f+we(d)+y;case 8:return e+we(n)+r+we(o)+i+we(s)+a+we(u)+c+we(l)+p+we(h)+f+we(d)+y+we(v)+m;case 9:return e+we(n)+r+we(o)+i+we(s)+a+we(u)+c+we(l)+p+we(h)+f+we(d)+y+we(v)+m+we(g)+_;default:throw new Error("Does not support more than 9 expressions")}}function we(t){return null!=t?t.toString():""}function Ce(t,e,n,r,o,i){t|=1;var s=ue(e),a=s.matchedQueries,u=s.references,c=s.matchedQueryIds,l=i?le(i):null;return{index:-1,parent:null,renderParent:null,bindingIndex:-1,outputIndex:-1,flags:t,childFlags:0,directChildFlags:0,childMatchedQueries:0,matchedQueries:a,matchedQueryIds:c,references:u,ngContentIndex:n,childCount:r,bindings:[],bindingFlags:0,outputs:[],element:{ns:null,name:null,attrs:null,template:l,componentProvider:null,componentView:null,componentRendererType:null,publicProviders:null,allProviders:null,handleEvent:o||ta},provider:null,text:null,query:null,ngContent:null}}function Ee(t,e,n,r,o,i,s,a,u,c,l){void 0===i&&(i=[]),u||(u=ta);var p=ue(e),h=p.matchedQueries,f=p.references,d=p.matchedQueryIds,y=null,v=null;o&&(I=me(o),y=I[0],v=I[1]),s=s||[];for(var m=new Array(s.length),g=0;g<s.length;g++){var _=s[g],b=_[0],w=_[1],C=_[2],E=me(w),S=E[0],x=E[1],T=void 0,P=void 0;switch(15&b){case 4:P=C;break;case 1:case 8:T=C}m[g]={flags:b,ns:S,name:x,nonMinifiedName:x,securityContext:T,suffix:P}}a=a||[];for(var A=new Array(a.length),g=0;g<a.length;g++){var O=a[g],M=O[0],R=O[1];A[g]={type:0,target:M,eventName:R,propName:null}}i=i||[];var k=i.map(function(t){var e=t[0],n=t[1],r=me(e),o=r[0],i=r[1];return[o,i,n]});return l=$t(l),c&&(t|=16777216),t|=1,{index:-1,parent:null,renderParent:null,bindingIndex:-1,outputIndex:-1,flags:t,childFlags:0,directChildFlags:0,childMatchedQueries:0,matchedQueries:h,matchedQueryIds:d,references:f,ngContentIndex:n,childCount:r,bindings:m,bindingFlags:ge(m),outputs:A,element:{ns:y,name:v,attrs:k,template:null,componentProvider:null,componentView:c||null,componentRendererType:l,publicProviders:null,allProviders:null,handleEvent:u||ta},provider:null,text:null,query:null,ngContent:null};var I}function Se(t,e,n){var r,o=n.element,i=t.root.selectorOrNode,s=t.renderer;if(t.parent||!i){r=o.name?s.createElement(o.name,o.ns):s.createComment("");var a=ce(t,e,n);a&&s.appendChild(a,r)}else r=s.selectRootElement(i);if(o.attrs)for(var u=0;u<o.attrs.length;u++){var c=o.attrs[u],l=c[0],p=c[1],h=c[2];s.setAttribute(r,p,h,l)}return r}function xe(t,e,n,r){for(var o=0;o<n.outputs.length;o++){var i=n.outputs[o],s=Te(t,n.index,oe(i.target,i.eventName)),a=i.target,u=t;"component"===i.target&&(a=null,u=e);var c=u.renderer.listen(a||r,i.eventName,s);t.disposables[n.outputIndex+o]=c}}function Te(t,e,n){return function(r){return te(t,e,n,r)}}function Pe(t,e,n,r,o,i,s,a,u,c,l,p){var h=e.bindings.length,f=!1;return h>0&&Oe(t,e,0,n)&&(f=!0),h>1&&Oe(t,e,1,r)&&(f=!0),h>2&&Oe(t,e,2,o)&&(f=!0),h>3&&Oe(t,e,3,i)&&(f=!0),h>4&&Oe(t,e,4,s)&&(f=!0),h>5&&Oe(t,e,5,a)&&(f=!0),h>6&&Oe(t,e,6,u)&&(f=!0),h>7&&Oe(t,e,7,c)&&(f=!0),h>8&&Oe(t,e,8,l)&&(f=!0),h>9&&Oe(t,e,9,p)&&(f=!0),f}function Ae(t,e,n){for(var r=!1,o=0;o<n.length;o++)Oe(t,e,o,n[o])&&(r=!0);return r}function Oe(t,e,n,r){if(!Zt(t,e,n,r))return!1;var o=e.bindings[n],i=jt(t,e.index),s=i.renderElement,a=o.name;switch(15&o.flags){case 1:Me(t,o,s,o.ns,a,r);break;case 2:Re(t,s,a,r);break;case 4:ke(t,o,s,a,r);break;case 8:var u=16777216&e.flags&&32&o.flags?i.componentView:t;Ie(u,o,s,a,r)}return!0}function Me(t,e,n,r,o,i){var s=e.securityContext,a=s?t.root.sanitizer.sanitize(s,i):i;a=null!=a?a.toString():null;var u=t.renderer;null!=i?u.setAttribute(n,o,a,r):u.removeAttribute(n,o,r)}function Re(t,e,n,r){var o=t.renderer;r?o.addClass(e,n):o.removeClass(e,n)}function ke(t,e,n,r,o){var i=t.root.sanitizer.sanitize(Xs.STYLE,o);if(null!=i){i=i.toString();var s=e.suffix;null!=s&&(i+=s)}else i=null;var a=t.renderer;null!=i?a.setStyle(n,r,i):a.removeStyle(n,r)}function Ie(t,e,n,r,o){var i=e.securityContext,s=i?t.root.sanitizer.sanitize(i,o):o;t.renderer.setProperty(n,r,s)}function Ne(t,e){return{index:-1,parent:null,renderParent:null,bindingIndex:-1,outputIndex:-1,flags:4,childFlags:0,directChildFlags:0,childMatchedQueries:0,matchedQueries:{},matchedQueryIds:0,references:{},ngContentIndex:t,childCount:0,bindings:[],bindingFlags:0,outputs:[],element:null,provider:null,text:null,query:null,ngContent:{index:e}}}function De(t,e,n){var r=ce(t,e,n);if(r){var o=n.ngContent.index;de(t,o,1,r,null,void 0)}}function je(t,e,n,r){var o=e.viewContainer._embeddedViews;(null===n||void 0===n)&&(n=o.length),r.viewContainerParent=t,Be(o,n,r);var i=ee(r);if(i&&i!==e){var s=i.template._projectedViews;s||(s=i.template._projectedViews=[]),s.push(r)}Js.dirtyParentQueries(r);var a=n>0?o[n-1]:null;Fe(e,a,r)}function Le(t,e){var n=t.viewContainer._embeddedViews;if((null==e||e>=n.length)&&(e=n.length-1),0>e)return null;var r=n[e];r.viewContainerParent=null,He(n,e);var o=ee(r);if(o&&o!==t){var i=o.template._projectedViews;He(i,i.indexOf(r))}return Js.dirtyParentQueries(r),Ue(r),r}function Ve(t,e,n){var r=t.viewContainer._embeddedViews,o=r[e];He(r,e),null==n&&(n=r.length),Be(r,n,o),Js.dirtyParentQueries(o),Ue(o);var i=n>0?r[n-1]:null;return Fe(t,i,o),o}function Fe(t,e,n){var r=e?re(e,e.def.lastRenderRootNode):t.renderElement,o=n.renderer.parentNode(r),i=n.renderer.nextSibling(r);he(n,2,o,i,void 0)}function Ue(t){he(t,3,null,null,void 0)}function Be(t,e,n){e>=t.length?t.push(n):t.splice(e,0,n)}function He(t,e){e>=t.length-1?t.pop():t.splice(e,1)}function qe(t,e,n,r,o,i){return new la(t,e,n,r,o,i)}function ze(t){return t.viewDefFactory}function Ge(t,e,n){return new ha(t,e,n)}function We(t){return new fa(t)}function Ke(t,e){return new da(t,e)}function Qe(t,e){return new ya(t,e)}function $e(t,e){var n=t.def.nodes[e];if(1&n.flags){var r=jt(t,n.index);return n.element.template?r.template:r.renderElement}if(2&n.flags)return Dt(t,n.index).renderText; -},enumerable:!0,configurable:!0}),t}(),yp=function(){function t(t){this._escapeDollarInStrings=t}return t.prototype.visitExpressionStmt=function(t,e){return t.expr.visitExpression(this,e),e.println(t,";"),null},t.prototype.visitReturnStmt=function(t,e){return e.print(t,"return "),t.value.visitExpression(this,e),e.println(t,";"),null},t.prototype.visitCastExpr=function(){},t.prototype.visitDeclareClassStmt=function(){},t.prototype.visitIfStmt=function(t,e){e.print(t,"if ("),t.condition.visitExpression(this,e),e.print(t,") {");var n=null!=t.falseCase&&t.falseCase.length>0;return t.trueCase.length<=1&&!n?(e.print(t," "),this.visitAllStatements(t.trueCase,e),e.removeEmptyLastLine(),e.print(t," ")):(e.println(),e.incIndent(),this.visitAllStatements(t.trueCase,e),e.decIndent(),n&&(e.println(t,"} else {"),e.incIndent(),this.visitAllStatements(t.falseCase,e),e.decIndent())),e.println(t,"}"),null},t.prototype.visitTryCatchStmt=function(){},t.prototype.visitThrowStmt=function(t,e){return e.print(t,"throw "),t.error.visitExpression(this,e),e.println(t,";"),null},t.prototype.visitCommentStmt=function(t,e){var n=t.comment.split("\n");return n.forEach(function(n){e.println(t,"// "+n)}),null},t.prototype.visitDeclareVarStmt=function(){},t.prototype.visitWriteVarExpr=function(t,e){var n=e.lineIsEmpty();return n||e.print(t,"("),e.print(t,t.name+" = "),t.value.visitExpression(this,e),n||e.print(t,")"),null},t.prototype.visitWriteKeyExpr=function(t,e){var n=e.lineIsEmpty();return n||e.print(t,"("),t.receiver.visitExpression(this,e),e.print(t,"["),t.index.visitExpression(this,e),e.print(t,"] = "),t.value.visitExpression(this,e),n||e.print(t,")"),null},t.prototype.visitWritePropExpr=function(t,e){var n=e.lineIsEmpty();return n||e.print(t,"("),t.receiver.visitExpression(this,e),e.print(t,"."+t.name+" = "),t.value.visitExpression(this,e),n||e.print(t,")"),null},t.prototype.visitInvokeMethodExpr=function(t,e){t.receiver.visitExpression(this,e);var n=t.name;return null!=t.builtin&&(n=this.getBuiltinMethodName(t.builtin),null==n)?null:(e.print(t,"."+n+"("),this.visitAllExpressions(t.args,e,","),e.print(t,")"),null)},t.prototype.getBuiltinMethodName=function(){},t.prototype.visitInvokeFunctionExpr=function(t,e){return t.fn.visitExpression(this,e),e.print(t,"("),this.visitAllExpressions(t.args,e,","),e.print(t,")"),null},t.prototype.visitReadVarExpr=function(t,e){var n=t.name;if(null!=t.builtin)switch(t.builtin){case al.Super:n="super";break;case al.This:n="this";break;case al.CatchError:n=fp.name;break;case al.CatchStack:n=dp.name;break;default:throw new Error("Unknown builtin variable "+t.builtin)}return e.print(t,n),null},t.prototype.visitInstantiateExpr=function(t,e){return e.print(t,"new "),t.classExpr.visitExpression(this,e),e.print(t,"("),this.visitAllExpressions(t.args,e,","),e.print(t,")"),null},t.prototype.visitLiteralExpr=function(t,e){var n=t.value;return"string"==typeof n?e.print(t,Pn(n,this._escapeDollarInStrings)):e.print(t,""+n),null},t.prototype.visitExternalExpr=function(){},t.prototype.visitConditionalExpr=function(t,e){return e.print(t,"("),t.condition.visitExpression(this,e),e.print(t,"? "),t.trueCase.visitExpression(this,e),e.print(t,": "),t.falseCase.visitExpression(this,e),e.print(t,")"),null},t.prototype.visitNotExpr=function(t,e){return e.print(t,"!"),t.condition.visitExpression(this,e),null},t.prototype.visitFunctionExpr=function(){},t.prototype.visitDeclareFunctionStmt=function(){},t.prototype.visitBinaryOperatorExpr=function(t,e){var n;switch(t.operator){case ol.Equals:n="==";break;case ol.Identical:n="===";break;case ol.NotEquals:n="!=";break;case ol.NotIdentical:n="!==";break;case ol.And:n="&&";break;case ol.Or:n="||";break;case ol.Plus:n="+";break;case ol.Minus:n="-";break;case ol.Divide:n="/";break;case ol.Multiply:n="*";break;case ol.Modulo:n="%";break;case ol.Lower:n="<";break;case ol.LowerEquals:n="<=";break;case ol.Bigger:n=">";break;case ol.BiggerEquals:n=">=";break;default:throw new Error("Unknown operator "+t.operator)}return e.print(t,"("),t.lhs.visitExpression(this,e),e.print(t," "+n+" "),t.rhs.visitExpression(this,e),e.print(t,")"),null},t.prototype.visitReadPropExpr=function(t,e){return t.receiver.visitExpression(this,e),e.print(t,"."),e.print(t,t.name),null},t.prototype.visitReadKeyExpr=function(t,e){return t.receiver.visitExpression(this,e),e.print(t,"["),t.index.visitExpression(this,e),e.print(t,"]"),null},t.prototype.visitLiteralArrayExpr=function(t,e){var n=t.entries.length>1;return e.print(t,"[",n),e.incIndent(),this.visitAllExpressions(t.entries,e,",",n),e.decIndent(),e.print(t,"]",n),null},t.prototype.visitLiteralMapExpr=function(t,e){var n=this,r=t.entries.length>1;return e.print(t,"{",r),e.incIndent(),this.visitAllObjects(function(r){e.print(t,Pn(r.key,n._escapeDollarInStrings,r.quoted)+": "),r.value.visitExpression(n,e)},t.entries,e,",",r),e.decIndent(),e.print(t,"}",r),null},t.prototype.visitCommaExpr=function(t,e){return e.print(t,"("),this.visitAllExpressions(t.parts,e,","),e.print(t,")"),null},t.prototype.visitAllExpressions=function(t,e,n,r){var i=this;void 0===r&&(r=!1),this.visitAllObjects(function(t){return t.visitExpression(i,e)},t,e,n,r)},t.prototype.visitAllObjects=function(t,e,n,r,i){void 0===i&&(i=!1);for(var o=0;o<e.length;o++)o>0&&n.print(null,r,i),t(e[o]);i&&n.println()},t.prototype.visitAllStatements=function(t,e){var n=this;t.forEach(function(t){return t.visitStatement(n,e)})},t}(),gp="/debug/lib",_p=function(){function t(t){this._importResolver=t}return t.prototype.emitStatements=function(t,e,n,r,i){var o=this;void 0===i&&(i="");var s=new bp(e,this._importResolver),a=mp.createRoot(r);s.visitAllStatements(n,a);var u=i?i.split("\n"):[];s.reexports.forEach(function(t,n){var r=t.map(function(t){return t.name+" as "+t.as}).join(",");u.push("export {"+r+"} from '"+o._importResolver.fileNameToModuleName(n,e)+"';")}),s.importsWithPrefixes.forEach(function(t,n){u.push("imp"+("ort * as "+t+" from '"+o._importResolver.fileNameToModuleName(n,e)+"';"))});var c=a.toSourceMapGenerator(t,e,u.length).toJsComment(),l=u.concat([a.toSource(),c]);return c&&l.push(""),l.join("\n")},t}(),bp=function(t){function e(e,n){var r=t.call(this,!1)||this;return r._genFilePath=e,r._importResolver=n,r.typeExpression=0,r.importsWithPrefixes=new Map,r.reexports=new Map,r}return zr(e,t),e.prototype.visitType=function(t,e,n){void 0===n&&(n="any"),null!=t?(this.typeExpression++,t.visitType(this,e),this.typeExpression--):e.print(null,n)},e.prototype.visitLiteralExpr=function(e,n){var r=e.value;return null==r&&e.type!=rl?(n.print(e,"("+r+" as any)"),null):t.prototype.visitLiteralExpr.call(this,e,n)},e.prototype.visitLiteralArrayExpr=function(e,n){0===e.entries.length&&n.print(e,"(");var r=t.prototype.visitLiteralArrayExpr.call(this,e,n);return 0===e.entries.length&&n.print(e," as any[])"),r},e.prototype.visitExternalExpr=function(t,e){return this._visitIdentifier(t.value,t.typeParams,e),null},e.prototype.visitDeclareVarStmt=function(t,e){if(e.isExportedVar(t.name)&&t.value instanceof yl&&!t.type){var n=this._resolveStaticSymbol(t.value.value),r=n.name,i=n.filePath,o=n.members;if(0===o.length&&i!==this._genFilePath){var s=this.reexports.get(i);return s||(s=[],this.reexports.set(i,s)),s.push({name:r,as:t.name}),null}}return e.isExportedVar(t.name)&&e.print(t,"export "),t.hasModifier(Nl.Final)?e.print(t,"const"):e.print(t,"var"),e.print(t," "+t.name),this._printColonType(t.type,e),e.print(t," = "),t.value.visitExpression(this,e),e.println(t,";"),null},e.prototype.visitCastExpr=function(t,e){return e.print(t,"(<"),t.type.visitType(this,e),e.print(t,">"),t.value.visitExpression(this,e),e.print(t,")"),null},e.prototype.visitInstantiateExpr=function(t,e){return e.print(t,"new "),this.typeExpression++,t.classExpr.visitExpression(this,e),this.typeExpression--,e.print(t,"("),this.visitAllExpressions(t.args,e,","),e.print(t,")"),null},e.prototype.visitDeclareClassStmt=function(t,e){var n=this;return e.pushClass(t),e.isExportedVar(t.name)&&e.print(t,"export "),e.print(t,"class "+t.name),null!=t.parent&&(e.print(t," extends "),this.typeExpression++,t.parent.visitExpression(this,e),this.typeExpression--),e.println(t," {"),e.incIndent(),t.fields.forEach(function(t){return n._visitClassField(t,e)}),null!=t.constructorMethod&&this._visitClassConstructor(t,e),t.getters.forEach(function(t){return n._visitClassGetter(t,e)}),t.methods.forEach(function(t){return n._visitClassMethod(t,e)}),e.decIndent(),e.println(t,"}"),e.popClass(),null},e.prototype._visitClassField=function(t,e){t.hasModifier(Nl.Private)&&e.print(null,"/*private*/ "),e.print(null,t.name),this._printColonType(t.type,e),e.println(null,";")},e.prototype._visitClassGetter=function(t,e){t.hasModifier(Nl.Private)&&e.print(null,"private "),e.print(null,"get "+t.name+"()"),this._printColonType(t.type,e),e.println(null," {"),e.incIndent(),this.visitAllStatements(t.body,e),e.decIndent(),e.println(null,"}")},e.prototype._visitClassConstructor=function(t,e){e.print(t,"constructor("),this._visitParams(t.constructorMethod.params,e),e.println(t,") {"),e.incIndent(),this.visitAllStatements(t.constructorMethod.body,e),e.decIndent(),e.println(t,"}")},e.prototype._visitClassMethod=function(t,e){t.hasModifier(Nl.Private)&&e.print(null,"private "),e.print(null,t.name+"("),this._visitParams(t.params,e),e.print(null,")"),this._printColonType(t.type,e,"void"),e.println(null," {"),e.incIndent(),this.visitAllStatements(t.body,e),e.decIndent(),e.println(null,"}")},e.prototype.visitFunctionExpr=function(t,e){return e.print(t,"("),this._visitParams(t.params,e),e.print(t,")"),this._printColonType(t.type,e,"void"),e.println(t," => {"),e.incIndent(),this.visitAllStatements(t.statements,e),e.decIndent(),e.print(t,"}"),null},e.prototype.visitDeclareFunctionStmt=function(t,e){return e.isExportedVar(t.name)&&e.print(t,"export "),e.print(t,"function "+t.name+"("),this._visitParams(t.params,e),e.print(t,")"),this._printColonType(t.type,e,"void"),e.println(t," {"),e.incIndent(),this.visitAllStatements(t.statements,e),e.decIndent(),e.println(t,"}"),null},e.prototype.visitTryCatchStmt=function(t,e){e.println(t,"try {"),e.incIndent(),this.visitAllStatements(t.bodyStmts,e),e.decIndent(),e.println(t,"} catch ("+fp.name+") {"),e.incIndent();var n=[dp.set(fp.prop("stack")).toDeclStmt(null,[Nl.Final])].concat(t.catchStmts);return this.visitAllStatements(n,e),e.decIndent(),e.println(t,"}"),null},e.prototype.visitBuiltintType=function(t,e){var n;switch(t.name){case Zc.Bool:n="boolean";break;case Zc.Dynamic:n="any";break;case Zc.Function:n="Function";break;case Zc.Number:n="number";break;case Zc.Int:n="number";break;case Zc.String:n="string";break;default:throw new Error("Unsupported builtin type "+t.name)}return e.print(null,n),null},e.prototype.visitExpressionType=function(t,e){return t.value.visitExpression(this,e),null},e.prototype.visitArrayType=function(t,e){return this.visitType(t.of,e),e.print(null,"[]"),null},e.prototype.visitMapType=function(t,e){return e.print(null,"{[key: string]:"),this.visitType(t.valueType,e),e.print(null,"}"),null},e.prototype.getBuiltinMethodName=function(t){var e;switch(t){case hl.ConcatArray:e="concat";break;case hl.SubscribeObservable:e="subscribe";break;case hl.Bind:e="bind";break;default:throw new Error("Unknown builtin method: "+t)}return e},e.prototype._visitParams=function(t,e){var n=this;this.visitAllObjects(function(t){e.print(null,t.name),n._printColonType(t.type,e)},t,e,",")},e.prototype._resolveStaticSymbol=function(t){var e=t.reference;if(!(e instanceof ai))throw new Error("Internal error: unknown identifier "+JSON.stringify(t));var n=this._importResolver.getTypeArity(e)||void 0,r=this._importResolver.getImportAs(e)||e;return{name:r.name,filePath:r.filePath,members:r.members,arity:n}},e.prototype._visitIdentifier=function(t,e,n){var r=this,i=this._resolveStaticSymbol(t),o=i.name,s=i.filePath,a=i.members,u=i.arity;if(s!=this._genFilePath){var c=this.importsWithPrefixes.get(s);null==c&&(c="import"+this.importsWithPrefixes.size,this.importsWithPrefixes.set(s,c)),n.print(null,c+".")}if(a.length?(n.print(null,o),n.print(null,"."),n.print(null,a.join("."))):n.print(null,o),this.typeExpression>0){var l=e&&e.length||0,p=(u||0)-l;if(l>0||p>0){if(n.print(null,"<"),l>0&&this.visitAllObjects(function(t){return t.visitType(r,n)},e,n,","),p>0)for(var h=0;p>h;h++)(h>0||l>0)&&n.print(null,","),n.print(null,"any");n.print(null,">")}}},e.prototype._printColonType=function(t,e,n){t!==rl&&(e.print(null,":"),this.visitType(t,e,n))},e}(yp),wp={};Mn(e.SecurityContext.HTML,["iframe|srcdoc","*|innerHTML","*|outerHTML"]),Mn(e.SecurityContext.STYLE,["*|style"]),Mn(e.SecurityContext.URL,["*|formAction","area|href","area|ping","audio|src","a|href","a|ping","blockquote|cite","body|background","del|cite","form|action","img|src","img|srcset","input|src","ins|cite","q|cite","source|src","source|srcset","track|src","video|poster","video|src"]),Mn(e.SecurityContext.RESOURCE_URL,["applet|code","applet|codebase","base|href","embed|src","frame|src","head|profile","html|manifest","iframe|src","link|href","media|src","object|codebase","object|data","script|src"]);var Ep="boolean",Cp="number",Sp="string",xp="object",Tp=["[Element]|textContent,%classList,className,id,innerHTML,*beforecopy,*beforecut,*beforepaste,*copy,*cut,*paste,*search,*selectstart,*webkitfullscreenchange,*webkitfullscreenerror,*wheel,outerHTML,#scrollLeft,#scrollTop","[HTMLElement]^[Element]|accessKey,contentEditable,dir,!draggable,!hidden,innerText,lang,*abort,*beforecopy,*beforecut,*beforepaste,*blur,*cancel,*canplay,*canplaythrough,*change,*click,*close,*contextmenu,*copy,*cuechange,*cut,*dblclick,*drag,*dragend,*dragenter,*dragleave,*dragover,*dragstart,*drop,*durationchange,*emptied,*ended,*error,*focus,*input,*invalid,*keydown,*keypress,*keyup,*load,*loadeddata,*loadedmetadata,*loadstart,*message,*mousedown,*mouseenter,*mouseleave,*mousemove,*mouseout,*mouseover,*mouseup,*mousewheel,*mozfullscreenchange,*mozfullscreenerror,*mozpointerlockchange,*mozpointerlockerror,*paste,*pause,*play,*playing,*progress,*ratechange,*reset,*resize,*scroll,*search,*seeked,*seeking,*select,*selectstart,*show,*stalled,*submit,*suspend,*timeupdate,*toggle,*volumechange,*waiting,*webglcontextcreationerror,*webglcontextlost,*webglcontextrestored,*webkitfullscreenchange,*webkitfullscreenerror,*wheel,outerText,!spellcheck,%style,#tabIndex,title,!translate","abbr,address,article,aside,b,bdi,bdo,cite,code,dd,dfn,dt,em,figcaption,figure,footer,header,i,kbd,main,mark,nav,noscript,rb,rp,rt,rtc,ruby,s,samp,section,small,strong,sub,sup,u,var,wbr^[HTMLElement]|accessKey,contentEditable,dir,!draggable,!hidden,innerText,lang,*abort,*beforecopy,*beforecut,*beforepaste,*blur,*cancel,*canplay,*canplaythrough,*change,*click,*close,*contextmenu,*copy,*cuechange,*cut,*dblclick,*drag,*dragend,*dragenter,*dragleave,*dragover,*dragstart,*drop,*durationchange,*emptied,*ended,*error,*focus,*input,*invalid,*keydown,*keypress,*keyup,*load,*loadeddata,*loadedmetadata,*loadstart,*message,*mousedown,*mouseenter,*mouseleave,*mousemove,*mouseout,*mouseover,*mouseup,*mousewheel,*mozfullscreenchange,*mozfullscreenerror,*mozpointerlockchange,*mozpointerlockerror,*paste,*pause,*play,*playing,*progress,*ratechange,*reset,*resize,*scroll,*search,*seeked,*seeking,*select,*selectstart,*show,*stalled,*submit,*suspend,*timeupdate,*toggle,*volumechange,*waiting,*webglcontextcreationerror,*webglcontextlost,*webglcontextrestored,*webkitfullscreenchange,*webkitfullscreenerror,*wheel,outerText,!spellcheck,%style,#tabIndex,title,!translate","media^[HTMLElement]|!autoplay,!controls,%crossOrigin,#currentTime,!defaultMuted,#defaultPlaybackRate,!disableRemotePlayback,!loop,!muted,*encrypted,#playbackRate,preload,src,%srcObject,#volume",":svg:^[HTMLElement]|*abort,*blur,*cancel,*canplay,*canplaythrough,*change,*click,*close,*contextmenu,*cuechange,*dblclick,*drag,*dragend,*dragenter,*dragleave,*dragover,*dragstart,*drop,*durationchange,*emptied,*ended,*error,*focus,*input,*invalid,*keydown,*keypress,*keyup,*load,*loadeddata,*loadedmetadata,*loadstart,*mousedown,*mouseenter,*mouseleave,*mousemove,*mouseout,*mouseover,*mouseup,*mousewheel,*pause,*play,*playing,*progress,*ratechange,*reset,*resize,*scroll,*seeked,*seeking,*select,*show,*stalled,*submit,*suspend,*timeupdate,*toggle,*volumechange,*waiting,%style,#tabIndex",":svg:graphics^:svg:|",":svg:animation^:svg:|*begin,*end,*repeat",":svg:geometry^:svg:|",":svg:componentTransferFunction^:svg:|",":svg:gradient^:svg:|",":svg:textContent^:svg:graphics|",":svg:textPositioning^:svg:textContent|","a^[HTMLElement]|charset,coords,download,hash,host,hostname,href,hreflang,name,password,pathname,ping,port,protocol,referrerPolicy,rel,rev,search,shape,target,text,type,username","area^[HTMLElement]|alt,coords,hash,host,hostname,href,!noHref,password,pathname,ping,port,protocol,referrerPolicy,search,shape,target,username","audio^media|","br^[HTMLElement]|clear","base^[HTMLElement]|href,target","body^[HTMLElement]|aLink,background,bgColor,link,*beforeunload,*blur,*error,*focus,*hashchange,*languagechange,*load,*message,*offline,*online,*pagehide,*pageshow,*popstate,*rejectionhandled,*resize,*scroll,*storage,*unhandledrejection,*unload,text,vLink","button^[HTMLElement]|!autofocus,!disabled,formAction,formEnctype,formMethod,!formNoValidate,formTarget,name,type,value","canvas^[HTMLElement]|#height,#width","content^[HTMLElement]|select","dl^[HTMLElement]|!compact","datalist^[HTMLElement]|","details^[HTMLElement]|!open","dialog^[HTMLElement]|!open,returnValue","dir^[HTMLElement]|!compact","div^[HTMLElement]|align","embed^[HTMLElement]|align,height,name,src,type,width","fieldset^[HTMLElement]|!disabled,name","font^[HTMLElement]|color,face,size","form^[HTMLElement]|acceptCharset,action,autocomplete,encoding,enctype,method,name,!noValidate,target","frame^[HTMLElement]|frameBorder,longDesc,marginHeight,marginWidth,name,!noResize,scrolling,src","frameset^[HTMLElement]|cols,*beforeunload,*blur,*error,*focus,*hashchange,*languagechange,*load,*message,*offline,*online,*pagehide,*pageshow,*popstate,*rejectionhandled,*resize,*scroll,*storage,*unhandledrejection,*unload,rows","hr^[HTMLElement]|align,color,!noShade,size,width","head^[HTMLElement]|","h1,h2,h3,h4,h5,h6^[HTMLElement]|align","html^[HTMLElement]|version","iframe^[HTMLElement]|align,!allowFullscreen,frameBorder,height,longDesc,marginHeight,marginWidth,name,referrerPolicy,%sandbox,scrolling,src,srcdoc,width","img^[HTMLElement]|align,alt,border,%crossOrigin,#height,#hspace,!isMap,longDesc,lowsrc,name,referrerPolicy,sizes,src,srcset,useMap,#vspace,#width","input^[HTMLElement]|accept,align,alt,autocapitalize,autocomplete,!autofocus,!checked,!defaultChecked,defaultValue,dirName,!disabled,%files,formAction,formEnctype,formMethod,!formNoValidate,formTarget,#height,!incremental,!indeterminate,max,#maxLength,min,#minLength,!multiple,name,pattern,placeholder,!readOnly,!required,selectionDirection,#selectionEnd,#selectionStart,#size,src,step,type,useMap,value,%valueAsDate,#valueAsNumber,#width","keygen^[HTMLElement]|!autofocus,challenge,!disabled,keytype,name","li^[HTMLElement]|type,#value","label^[HTMLElement]|htmlFor","legend^[HTMLElement]|align","link^[HTMLElement]|as,charset,%crossOrigin,!disabled,href,hreflang,integrity,media,rel,%relList,rev,%sizes,target,type","map^[HTMLElement]|name","marquee^[HTMLElement]|behavior,bgColor,direction,height,#hspace,#loop,#scrollAmount,#scrollDelay,!trueSpeed,#vspace,width","menu^[HTMLElement]|!compact","meta^[HTMLElement]|content,httpEquiv,name,scheme","meter^[HTMLElement]|#high,#low,#max,#min,#optimum,#value","ins,del^[HTMLElement]|cite,dateTime","ol^[HTMLElement]|!compact,!reversed,#start,type","object^[HTMLElement]|align,archive,border,code,codeBase,codeType,data,!declare,height,#hspace,name,standby,type,useMap,#vspace,width","optgroup^[HTMLElement]|!disabled,label","option^[HTMLElement]|!defaultSelected,!disabled,label,!selected,text,value","output^[HTMLElement]|defaultValue,%htmlFor,name,value","p^[HTMLElement]|align","param^[HTMLElement]|name,type,value,valueType","picture^[HTMLElement]|","pre^[HTMLElement]|#width","progress^[HTMLElement]|#max,#value","q,blockquote,cite^[HTMLElement]|","script^[HTMLElement]|!async,charset,%crossOrigin,!defer,event,htmlFor,integrity,src,text,type","select^[HTMLElement]|!autofocus,!disabled,#length,!multiple,name,!required,#selectedIndex,#size,value","shadow^[HTMLElement]|","source^[HTMLElement]|media,sizes,src,srcset,type","span^[HTMLElement]|","style^[HTMLElement]|!disabled,media,type","caption^[HTMLElement]|align","th,td^[HTMLElement]|abbr,align,axis,bgColor,ch,chOff,#colSpan,headers,height,!noWrap,#rowSpan,scope,vAlign,width","col,colgroup^[HTMLElement]|align,ch,chOff,#span,vAlign,width","table^[HTMLElement]|align,bgColor,border,%caption,cellPadding,cellSpacing,frame,rules,summary,%tFoot,%tHead,width","tr^[HTMLElement]|align,bgColor,ch,chOff,vAlign","tfoot,thead,tbody^[HTMLElement]|align,ch,chOff,vAlign","template^[HTMLElement]|","textarea^[HTMLElement]|autocapitalize,!autofocus,#cols,defaultValue,dirName,!disabled,#maxLength,#minLength,name,placeholder,!readOnly,!required,#rows,selectionDirection,#selectionEnd,#selectionStart,value,wrap","title^[HTMLElement]|text","track^[HTMLElement]|!default,kind,label,src,srclang","ul^[HTMLElement]|!compact,type","unknown^[HTMLElement]|","video^media|#height,poster,#width",":svg:a^:svg:graphics|",":svg:animate^:svg:animation|",":svg:animateMotion^:svg:animation|",":svg:animateTransform^:svg:animation|",":svg:circle^:svg:geometry|",":svg:clipPath^:svg:graphics|",":svg:cursor^:svg:|",":svg:defs^:svg:graphics|",":svg:desc^:svg:|",":svg:discard^:svg:|",":svg:ellipse^:svg:geometry|",":svg:feBlend^:svg:|",":svg:feColorMatrix^:svg:|",":svg:feComponentTransfer^:svg:|",":svg:feComposite^:svg:|",":svg:feConvolveMatrix^:svg:|",":svg:feDiffuseLighting^:svg:|",":svg:feDisplacementMap^:svg:|",":svg:feDistantLight^:svg:|",":svg:feDropShadow^:svg:|",":svg:feFlood^:svg:|",":svg:feFuncA^:svg:componentTransferFunction|",":svg:feFuncB^:svg:componentTransferFunction|",":svg:feFuncG^:svg:componentTransferFunction|",":svg:feFuncR^:svg:componentTransferFunction|",":svg:feGaussianBlur^:svg:|",":svg:feImage^:svg:|",":svg:feMerge^:svg:|",":svg:feMergeNode^:svg:|",":svg:feMorphology^:svg:|",":svg:feOffset^:svg:|",":svg:fePointLight^:svg:|",":svg:feSpecularLighting^:svg:|",":svg:feSpotLight^:svg:|",":svg:feTile^:svg:|",":svg:feTurbulence^:svg:|",":svg:filter^:svg:|",":svg:foreignObject^:svg:graphics|",":svg:g^:svg:graphics|",":svg:image^:svg:graphics|",":svg:line^:svg:geometry|",":svg:linearGradient^:svg:gradient|",":svg:mpath^:svg:|",":svg:marker^:svg:|",":svg:mask^:svg:|",":svg:metadata^:svg:|",":svg:path^:svg:geometry|",":svg:pattern^:svg:|",":svg:polygon^:svg:geometry|",":svg:polyline^:svg:geometry|",":svg:radialGradient^:svg:gradient|",":svg:rect^:svg:geometry|",":svg:svg^:svg:graphics|#currentScale,#zoomAndPan",":svg:script^:svg:|type",":svg:set^:svg:animation|",":svg:stop^:svg:|",":svg:style^:svg:|!disabled,media,title,type",":svg:switch^:svg:graphics|",":svg:symbol^:svg:|",":svg:tspan^:svg:textPositioning|",":svg:text^:svg:textPositioning|",":svg:textPath^:svg:textContent|",":svg:title^:svg:|",":svg:use^:svg:graphics|",":svg:view^:svg:|#zoomAndPan","data^[HTMLElement]|value","menuitem^[HTMLElement]|type,label,icon,!disabled,!checked,radiogroup,!default","summary^[HTMLElement]|","time^[HTMLElement]|dateTime"],Pp={"class":"className","for":"htmlFor",formaction:"formAction",innerHtml:"innerHTML",readonly:"readOnly",tabindex:"tabIndex"},Ap=function(t){function n(){var e=t.call(this)||this;return e._schema={},Tp.forEach(function(t){var n={},r=t.split("|"),i=r[0],o=r[1],s=o.split(","),a=i.split("^"),u=a[0],c=a[1];u.split(",").forEach(function(t){return e._schema[t.toLowerCase()]=n});var l=c&&e._schema[c.toLowerCase()];l&&Object.keys(l).forEach(function(t){n[t]=l[t]}),s.forEach(function(t){if(t.length>0)switch(t[0]){case"*":break;case"!":n[t.substring(1)]=Ep;break;case"#":n[t.substring(1)]=Cp;break;case"%":n[t.substring(1)]=xp;break;default:n[t]=Sp}})}),e}return zr(n,t),n.prototype.hasProperty=function(t,n,r){if(r.some(function(t){return t.name===e.NO_ERRORS_SCHEMA.name}))return!0;if(t.indexOf("-")>-1){if("ng-container"===t||"ng-content"===t)return!1;if(r.some(function(t){return t.name===e.CUSTOM_ELEMENTS_SCHEMA.name}))return!0}var i=this._schema[t.toLowerCase()]||this._schema.unknown;return!!i[n]},n.prototype.hasElement=function(t,n){if(n.some(function(t){return t.name===e.NO_ERRORS_SCHEMA.name}))return!0;if(t.indexOf("-")>-1){if("ng-container"===t||"ng-content"===t)return!0;if(n.some(function(t){return t.name===e.CUSTOM_ELEMENTS_SCHEMA.name}))return!0}return!!this._schema[t.toLowerCase()]},n.prototype.securityContext=function(t,n,r){r&&(n=this.getMappedPropName(n)),t=t.toLowerCase(),n=n.toLowerCase();var i=wp[t+"|"+n];return i?i:(i=wp["*|"+n],i?i:e.SecurityContext.NONE)},n.prototype.getMappedPropName=function(t){return Pp[t]||t},n.prototype.getDefaultComponentElementName=function(){return"ng-component"},n.prototype.validateProperty=function(t){if(t.toLowerCase().startsWith("on")){var e="Binding to event property '"+t+"' is disallowed for security reasons, "+("please use ("+t.slice(2)+")=...")+("\nIf '"+t+"' is a directive input, make sure the directive is imported by the")+" current module.";return{error:!0,msg:e}}return{error:!1}},n.prototype.validateAttribute=function(t){if(t.toLowerCase().startsWith("on")){var e="Binding to event attribute '"+t+"' is disallowed for security reasons, "+("please use ("+t.slice(2)+")=...");return{error:!0,msg:e}}return{error:!1}},n.prototype.allKnownElementNames=function(){return Object.keys(this._schema)},n.prototype.normalizeAnimationStyleProperty=function(t){return a(t)},n.prototype.normalizeAnimationStyleValue=function(t,e,n){var r="",i=n.toString().trim(),o=null;if(Rn(t)&&0!==n&&"0"!==n)if("number"==typeof n)r="px";else{var s=n.match(/^[+-]?[\d\.]+([a-z]*)$/);s&&0==s[1].length&&(o="Please provide a CSS unit value for "+e+":"+n)}return{error:o,value:i+r}},n}(Mu);Ap.decorators=[{type:V}],Ap.ctorParameters=function(){return[]};var Op=function(){function t(){this.strictStyling=!0}return t.prototype.shimCssText=function(t,e,n){void 0===n&&(n="");var r=In(t);return t=kn(t),t=this._insertDirectives(t),this._scopeCssText(t,e,n)+r},t.prototype._insertDirectives=function(t){return t=this._insertPolyfillDirectivesInCssText(t),this._insertPolyfillRulesInCssText(t)},t.prototype._insertPolyfillDirectivesInCssText=function(t){return t.replace(Rp,function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return t[2]+"{"})},t.prototype._insertPolyfillRulesInCssText=function(t){return t.replace(kp,function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n=t[0].replace(t[1],"").replace(t[2],"");return t[4]+n})},t.prototype._scopeCssText=function(t,e,n){var r=this._extractUnscopedRulesFromCssText(t);return t=this._insertPolyfillHostInCssText(t),t=this._convertColonHost(t),t=this._convertColonHostContext(t),t=this._convertShadowDOMSelectors(t),e&&(t=this._scopeSelectors(t,e,n)),t=t+"\n"+r,t.trim()},t.prototype._extractUnscopedRulesFromCssText=function(t){var e,n="";for(Ip.lastIndex=0;null!==(e=Ip.exec(t));){var r=e[0].replace(e[2],"").replace(e[1],e[4]);n+=r+"\n\n"}return n},t.prototype._convertColonHost=function(t){return this._convertColonRule(t,jp,this._colonHostPartReplacer)},t.prototype._convertColonHostContext=function(t){return this._convertColonRule(t,Fp,this._colonHostContextPartReplacer)},t.prototype._convertColonRule=function(t,e,n){return t.replace(e,function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];if(t[2]){for(var r=t[2].split(","),i=[],o=0;o<r.length;o++){var s=r[o].trim();if(!s)break;i.push(n(Vp,s,t[3]))}return i.join(",")}return Vp+t[3]})},t.prototype._colonHostContextPartReplacer=function(t,e,n){return e.indexOf(Np)>-1?this._colonHostPartReplacer(t,e,n):t+e+n+", "+e+" "+t+n},t.prototype._colonHostPartReplacer=function(t,e,n){return t+e.replace(Np,"")+n},t.prototype._convertShadowDOMSelectors=function(t){return Bp.reduce(function(t,e){return t.replace(e," ")},t)},t.prototype._scopeSelectors=function(t,e,n){var r=this;return Nn(t,function(t){var i=t.selector,o=t.content;return"@"!=t.selector[0]?i=r._scopeSelector(t.selector,e,n,r.strictStyling):(t.selector.startsWith("@media")||t.selector.startsWith("@supports")||t.selector.startsWith("@page")||t.selector.startsWith("@document"))&&(o=r._scopeSelectors(t.content,e,n)),new th(i,o)})},t.prototype._scopeSelector=function(t,e,n,r){var i=this;return t.split(",").map(function(t){return t.trim().split(Hp)}).map(function(t){var o=t[0],s=t.slice(1),a=function(t){return i._selectorNeedsScoping(t,e)?r?i._applyStrictSelectorScope(t,e,n):i._applySelectorScope(t,e,n):t};return[a(o)].concat(s).join(" ")}).join(", ")},t.prototype._selectorNeedsScoping=function(t,e){var n=this._makeScopeMatcher(e);return!n.test(t)},t.prototype._makeScopeMatcher=function(t){var e=/\[/g,n=/\]/g;return t=t.replace(e,"\\[").replace(n,"\\]"),new RegExp("^("+t+")"+qp,"m")},t.prototype._applySelectorScope=function(t,e,n){return this._applySimpleSelectorScope(t,e,n)},t.prototype._applySimpleSelectorScope=function(t,e,n){if(zp.lastIndex=0,zp.test(t)){var r=this.strictStyling?"["+n+"]":e;return t.replace(Up,function(t,e){return e.replace(/([^:]*)(:*)(.*)/,function(t,e,n,i){return e+r+n+i})}).replace(zp,r+" ")}return e+" "+t},t.prototype._applyStrictSelectorScope=function(t,e,n){var r=this,i=/\[is=([^\]]*)\]/g;e=e.replace(i,function(){for(var t=[],e=1;e<arguments.length;e++)t[e-1]=arguments[e];return t[0]});var o="["+e+"]",s=function(t){var i=t.trim();if(!i)return"";if(t.indexOf(Vp)>-1)i=r._applySimpleSelectorScope(t,e,n);else{var s=t.replace(zp,"");if(s.length>0){var a=s.match(/([^:]*)(:*)(.*)/);a&&(i=a[1]+o+a[2]+a[3])}}return i},a=new Mp(t);t=a.content();for(var u,c="",l=0,p=/( |>|\+|~(?!=))\s*/g,h=t.indexOf(Vp);null!==(u=p.exec(t));){var f=u[1],d=t.slice(l,u.index).trim(),v=l>=h?s(d):d;c+=v+" "+f+" ",l=p.lastIndex}return c+=s(t.substring(l)),a.restore(c)},t.prototype._insertPolyfillHostInCssText=function(t){return t.replace(Gp,Dp).replace(Wp,Np)},t}(),Mp=function(){function t(t){var e=this;this.placeholders=[],this.index=0,t=t.replace(/(\[[^\]]*\])/g,function(t,n){var r="__ph-"+e.index+"__";return e.placeholders.push(n),e.index++,r}),this._content=t.replace(/(:nth-[-\w]+)(\([^)]+\))/g,function(t,n,r){var i="__ph-"+e.index+"__";return e.placeholders.push(r),e.index++,n+i})}return t.prototype.restore=function(t){var e=this;return t.replace(/__ph-(\d+)__/g,function(t,n){return e.placeholders[+n]})},t.prototype.content=function(){return this._content},t}(),Rp=/polyfill-next-selector[^}]*content:[\s]*?(['"])(.*?)\1[;\s]*}([^{]*?){/gim,kp=/(polyfill-rule)[^}]*(content:[\s]*(['"])(.*?)\3)[;\s]*[^}]*}/gim,Ip=/(polyfill-unscoped-rule)[^}]*(content:[\s]*(['"])(.*?)\3)[;\s]*[^}]*}/gim,Np="-shadowcsshost",Dp="-shadowcsscontext",Lp=")(?:\\(((?:\\([^)(]*\\)|[^)(]*)+?)\\))?([^,{]*)",jp=new RegExp("("+Np+Lp,"gim"),Fp=new RegExp("("+Dp+Lp,"gim"),Vp=Np+"-no-combinator",Up=/-shadowcsshost-no-combinator([^\s]*)/,Bp=[/::shadow/g,/::content/g,/\/shadow-deep\//g,/\/shadow\//g],Hp=/(?:>>>)|(?:\/deep\/)/g,qp="([>\\s~+[.,{:][\\s\\S]*)?$",zp=/-shadowcsshost/gim,Wp=/:host/gim,Gp=/:host-context/gim,Kp=/\/\*\s*[\s\S]*?\*\//g,Qp=/\/\*\s*#\s*sourceMappingURL=[\s\S]+?\*\//,Xp=/(\s*)([^;\{\}]+?)(\s*)((?:{%BLOCK%}?\s*;?)|(?:\s*;))/g,$p=/([{}])/g,Zp="{",Yp="}",Jp="%BLOCK%",th=function(){function t(t,e){this.selector=t,this.content=e}return t}(),eh=function(){function t(t,e){this.escapedString=t,this.blocks=e}return t}(),nh="%COMP%",rh="_nghost-"+nh,ih="_ngcontent-"+nh,oh=function(){function t(t,e,n,r){this.name=t,this.moduleUrl=e,this.isShimmed=n,this.valuePlaceholder=r}return t}(),sh=function(){function t(t,e){this.componentStylesheet=t,this.externalStylesheets=e}return t}(),ah=function(){function t(t,e,n,r,i){this.statements=t,this.stylesVar=e,this.dependencies=n, -this.isShimmed=r,this.meta=i}return t}(),uh=function(){function t(t){this._urlResolver=t,this._shadowCss=new Op}return t.prototype.compileComponent=function(t){var e=this,n=[],r=this._compileStyles(t,new Vi({styles:t.template.styles,styleUrls:t.template.styleUrls,moduleUrl:_(t.type)}),!0);return t.template.externalStylesheets.forEach(function(r){var i=e._compileStyles(t,r,!1);n.push(i)}),new sh(r,n)},t.prototype._compileStyles=function(t,n,r){for(var i=this,o=t.template.encapsulation===e.ViewEncapsulation.Emulated,s=n.styles.map(function(t){return _n(i._shimIfNeeded(t,o))}),a=[],u=0;u<n.styleUrls.length;u++){var c={reference:null};a.push(new oh(Ln(null),n.styleUrls[u],o,c)),s.push(new yl(c))}var l=Ln(r?t:null),p=pn(l).set(vn(s,new tl(nl,[Xc.Const]))).toDeclStmt(null,[Nl.Final]);return new ah([p],l,a,o,n)},t.prototype._shimIfNeeded=function(t,e){return e?this._shadowCss.shimCssText(t,ih,rh):t},t}();uh.decorators=[{type:V}],uh.ctorParameters=function(){return[{type:Nc}]};var ch=function(){function t(){}return t}();ch.event=pn("$event");var lh=function(){function t(t,e){this.stmts=t,this.allowDefault=e}return t}(),ph=function(){function t(t,e){this.stmts=t,this.currValExpr=e}return t}(),hh={};hh.Statement=0,hh.Expression=1,hh[hh.Statement]="Statement",hh[hh.Expression]="Expression";var fh=function(t){function e(e){var n=t.call(this)||this;return n._converterFactory=e,n}return zr(e,t),e.prototype.visitPipe=function(t,e){var n=this,r=[t.exp].concat(t.args).map(function(t){return t.visit(n,e)});return new mh(t.span,r,this._converterFactory.createPipeConverter(t.name,r.length))},e.prototype.visitLiteralArray=function(t,e){var n=this,r=t.expressions.map(function(t){return t.visit(n,e)});return new mh(t.span,r,this._converterFactory.createLiteralArrayConverter(t.expressions.length))},e.prototype.visitLiteralMap=function(t,e){var n=this,r=t.values.map(function(t){return t.visit(n,e)});return new mh(t.span,r,this._converterFactory.createLiteralMapConverter(t.keys))},e}(bo),dh=function(){function t(t,e,n){this._localResolver=t,this._implicitReceiver=e,this.bindingId=n,this._nodeMap=new Map,this._resultMap=new Map,this._currentTemporary=0,this.temporaryCount=0}return t.prototype.visitBinary=function(t,e){var n;switch(t.operation){case"+":n=ol.Plus;break;case"-":n=ol.Minus;break;case"*":n=ol.Multiply;break;case"/":n=ol.Divide;break;case"%":n=ol.Modulo;break;case"&&":n=ol.And;break;case"||":n=ol.Or;break;case"==":n=ol.Equals;break;case"!=":n=ol.NotEquals;break;case"===":n=ol.Identical;break;case"!==":n=ol.NotIdentical;break;case"<":n=ol.Lower;break;case">":n=ol.Bigger;break;case"<=":n=ol.LowerEquals;break;case">=":n=ol.BiggerEquals;break;default:throw new Error("Unsupported operation "+t.operation)}return Gn(e,new Cl(n,this.visit(t.left,hh.Expression),this.visit(t.right,hh.Expression)))},t.prototype.visitChain=function(t,e){return zn(e,t),this.visitAll(t.expressions,e)},t.prototype.visitConditional=function(t,e){var n=this.visit(t.condition,hh.Expression);return Gn(e,n.conditional(this.visit(t.trueExp,hh.Expression),this.visit(t.falseExp,hh.Expression)))},t.prototype.visitPipe=function(t){throw new Error("Illegal state: Pipes should have been converted into functions. Pipe: "+t.name)},t.prototype.visitFunctionCall=function(t,e){var n,r=this.visitAll(t.args,hh.Expression);return n=t instanceof mh?t.converter(r):this.visit(t.target,hh.Expression).callFn(r),Gn(e,n)},t.prototype.visitImplicitReceiver=function(t,e){return Wn(e,t),this._implicitReceiver},t.prototype.visitInterpolation=function(t,e){Wn(e,t);for(var n=[_n(t.expressions.length)],r=0;r<t.strings.length-1;r++)n.push(_n(t.strings[r])),n.push(this.visit(t.expressions[r],hh.Expression));return n.push(_n(t.strings[t.strings.length-1])),t.expressions.length<=9?hn(ue(wu.inlineInterpolate)).callFn(n):hn(ue(wu.interpolate)).callFn([n[0],vn(n.slice(1))])},t.prototype.visitKeyedRead=function(t,e){var n=this.leftMostSafeNode(t);return n?this.convertSafeAccess(t,n,e):Gn(e,this.visit(t.obj,hh.Expression).key(this.visit(t.key,hh.Expression)))},t.prototype.visitKeyedWrite=function(t,e){var n=this.visit(t.obj,hh.Expression),r=this.visit(t.key,hh.Expression),i=this.visit(t.value,hh.Expression);return Gn(e,n.key(r).set(i))},t.prototype.visitLiteralArray=function(){throw new Error("Illegal State: literal arrays should have been converted into functions")},t.prototype.visitLiteralMap=function(){throw new Error("Illegal State: literal maps should have been converted into functions")},t.prototype.visitLiteralPrimitive=function(t,e){return Gn(e,_n(t.value))},t.prototype._getLocal=function(t){return this._localResolver.getLocal(t)},t.prototype.visitMethodCall=function(t,e){var n=this.leftMostSafeNode(t);if(n)return this.convertSafeAccess(t,n,e);var r=this.visitAll(t.args,hh.Expression),i=null,o=this.visit(t.receiver,hh.Expression);if(o===this._implicitReceiver){var s=this._getLocal(t.name);s&&(i=s.callFn(r))}return null==i&&(i=o.callMethod(t.name,r)),Gn(e,i)},t.prototype.visitPrefixNot=function(t,e){return Gn(e,yn(this.visit(t.expression,hh.Expression)))},t.prototype.visitPropertyRead=function(t,e){var n=this.leftMostSafeNode(t);if(n)return this.convertSafeAccess(t,n,e);var r=null,i=this.visit(t.receiver,hh.Expression);return i===this._implicitReceiver&&(r=this._getLocal(t.name)),null==r&&(r=i.prop(t.name)),Gn(e,r)},t.prototype.visitPropertyWrite=function(t,e){var n=this.visit(t.receiver,hh.Expression);if(n===this._implicitReceiver){var r=this._getLocal(t.name);if(r)throw new Error("Cannot assign to a reference or variable!")}return Gn(e,n.prop(t.name).set(this.visit(t.value,hh.Expression)))},t.prototype.visitSafePropertyRead=function(t,e){return this.convertSafeAccess(t,this.leftMostSafeNode(t),e)},t.prototype.visitSafeMethodCall=function(t,e){return this.convertSafeAccess(t,this.leftMostSafeNode(t),e)},t.prototype.visitAll=function(t,e){var n=this;return t.map(function(t){return n.visit(t,e)})},t.prototype.visitQuote=function(){throw new Error("Quotes are not supported for evaluation!")},t.prototype.visit=function(t,e){var n=this._resultMap.get(t);return n?n:(this._nodeMap.get(t)||t).visit(this,e)},t.prototype.convertSafeAccess=function(t,e,n){var r,i=this.visit(e.receiver,hh.Expression);this.needsTemporary(e.receiver)&&(r=this.allocateTemporary(),i=r.set(i),this._resultMap.set(e.receiver,r));var o=i.isBlank();e instanceof vo?this._nodeMap.set(e,new fo(e.span,e.receiver,e.name,e.args)):this._nodeMap.set(e,new eo(e.span,e.receiver,e.name));var s=this.visit(t,hh.Expression);return this._nodeMap["delete"](e),r&&this.releaseTemporary(r),Gn(n,o.conditional(_n(null),s))},t.prototype.leftMostSafeNode=function(t){var e=this,n=function(t,n){return(e._nodeMap.get(n)||n).visit(t)};return t.visit({visitBinary:function(){return null},visitChain:function(){return null},visitConditional:function(){return null},visitFunctionCall:function(){return null},visitImplicitReceiver:function(){return null},visitInterpolation:function(){return null},visitKeyedRead:function(t){return n(this,t.obj)},visitKeyedWrite:function(){return null},visitLiteralArray:function(){return null},visitLiteralMap:function(){return null},visitLiteralPrimitive:function(){return null},visitMethodCall:function(t){return n(this,t.receiver)},visitPipe:function(){return null},visitPrefixNot:function(){return null},visitPropertyRead:function(t){return n(this,t.receiver)},visitPropertyWrite:function(){return null},visitQuote:function(){return null},visitSafeMethodCall:function(t){return n(this,t.receiver)||t},visitSafePropertyRead:function(t){return n(this,t.receiver)||t}})},t.prototype.needsTemporary=function(t){var e=this,n=function(t,n){return n&&(e._nodeMap.get(n)||n).visit(t)},r=function(t,e){return e.some(function(e){return n(t,e)})};return t.visit({visitBinary:function(t){return n(this,t.left)||n(this,t.right)},visitChain:function(){return!1},visitConditional:function(t){return n(this,t.condition)||n(this,t.trueExp)||n(this,t.falseExp)},visitFunctionCall:function(){return!0},visitImplicitReceiver:function(){return!1},visitInterpolation:function(t){return r(this,t.expressions)},visitKeyedRead:function(){return!1},visitKeyedWrite:function(){return!1},visitLiteralArray:function(){return!0},visitLiteralMap:function(){return!0},visitLiteralPrimitive:function(){return!1},visitMethodCall:function(){return!0},visitPipe:function(){return!0},visitPrefixNot:function(t){return n(this,t.expression)},visitPropertyRead:function(){return!1},visitPropertyWrite:function(){return!1},visitQuote:function(){return!1},visitSafeMethodCall:function(){return!0},visitSafePropertyRead:function(){return!1}})},t.prototype.allocateTemporary=function(){var t=this._currentTemporary++;return this.temporaryCount=Math.max(this._currentTemporary,this.temporaryCount),new ul(Bn(this.bindingId,t))},t.prototype.releaseTemporary=function(t){if(this._currentTemporary--,t.name!=Bn(this.bindingId,this._currentTemporary))throw new Error("Temporary "+t.name+" released out of order")},t}(),vh=function(){function t(){}return t.prototype.getLocal=function(t){return t===ch.event.name?ch.event:null},t}(),mh=function(t){function e(e,n,r){var i=t.call(this,e,null,n)||this;return i.args=n,i.converter=r,i}return zr(e,t),e}(mo),yh="class",gh="style",_h="$implicit",bh="ng-container",wh=function(){function t(t,e,n){this.statements=t,this.viewClassVar=e,this.rendererTypeVar=n}return t}(),Eh=function(){function t(t,e){this._genConfigNext=t,this._schemaRegistry=e}return t.prototype.compileComponent=function(t,e,n,r){var i,o=0,s=cr(e),a=[];if(!t.isHost){var u=[];t.template.animations&&t.template.animations.length&&u.push(new Pl("animation",En(t.template.animations),!0));var c=pn(w(t.type.reference));i=c.name,a.push(c.set(hn(ue(wu.createRendererType2)).callFn([new Al([new Pl("encapsulation",_n(t.template.encapsulation)),new Pl("styles",n),new Pl("data",new Al(u))])])).toDeclStmt(fn(ue(wu.RendererType2)),[Nl.Final]))}var l=function(e){var n=o++;return new Oh(e,t,n,r,s,l)},p=l(null);return p.visitAll([],e),a.push.apply(a,p.build()),new wh(a,p.viewName,i)},t}();Eh.decorators=[{type:V}],Eh.ctorParameters=function(){return[{type:Gi},{type:Mu}]};var Ch=pn("l"),Sh=pn("v"),xh=pn("ck"),Th=pn("co"),Ph=pn("en"),Ah=pn("ad"),Oh=function(){function t(t,e,n,r,i,o){this.parent=t,this.component=e,this.embeddedViewIndex=n,this.usedPipes=r,this.staticQueryIds=i,this.viewBuilderFactory=o,this.nodes=[],this.purePipeNodeIndices=Object.create(null),this.refNodeIndices=Object.create(null),this.variables=[],this.children=[],this.compType=this.embeddedViewIndex>0?nl:fn(this.component.type)}return Object.defineProperty(t.prototype,"viewName",{get:function(){return b(this.component.type.reference,this.embeddedViewIndex)},enumerable:!0,configurable:!0}),t.prototype.visitAll=function(t,e){var r=this;if(this.variables=t,this.parent||this.usedPipes.forEach(function(t){t.pure&&(r.purePipeNodeIndices[t.name]=r._createPipe(null,t))}),!this.parent){var i=lr(this.staticQueryIds);this.component.viewQueries.forEach(function(t,e){var n=e+1,o=t.first?0:1,s=67108864|fr(i,n,t.first);r.nodes.push(function(){return{sourceSpan:null,nodeFlags:s,nodeDef:hn(ue(wu.queryDef)).callFn([_n(s),_n(n),new Al([new Pl(t.propertyName,_n(o))])])}})})}n(this,e),this.parent&&(0===e.length||nr(e))&&this.nodes.push(function(){return{sourceSpan:null,nodeFlags:1,nodeDef:hn(ue(wu.anchorDef)).callFn([_n(0),kl,kl,_n(0)])}})},t.prototype.build=function(t){void 0===t&&(t=[]),this.children.forEach(function(e){return e.build(t)});var n=this._createNodeExpressions(),r=n.updateRendererStmts,i=n.updateDirectivesStmts,o=n.nodeDefExprs,s=this._createUpdateFn(r),a=this._createUpdateFn(i),u=0;this.parent||this.component.changeDetection!==e.ChangeDetectionStrategy.OnPush||(u|=2);var c=new jl(this.viewName,[new wl(Ch.name)],[new Vl(hn(ue(wu.viewDef)).callFn([_n(u),vn(o),a,s]))],fn(ue(wu.ViewDefinition)));return t.push(c),t},t.prototype._createUpdateFn=function(t){var e;if(t.length>0){var n=[];!this.component.isHost&&un(t).has(Th.name)&&n.push(Th.set(Sh.prop("component")).toDeclStmt(this.compType)),e=gn([new wl(xh.name,rl),new wl(Sh.name,rl)],n.concat(t),rl)}else e=kl;return e},t.prototype.visitNgContent=function(t){this.nodes.push(function(){return{sourceSpan:t.sourceSpan,nodeFlags:4,nodeDef:hn(ue(wu.ngContentDef)).callFn([_n(t.ngContentIndex),_n(t.index)])}})},t.prototype.visitText=function(t){this.nodes.push(function(){return{sourceSpan:t.sourceSpan,nodeFlags:2,nodeDef:hn(ue(wu.textDef)).callFn([_n(t.ngContentIndex),vn([_n(t.value)])])}})},t.prototype.visitBoundText=function(t){var e=this,n=this.nodes.length;this.nodes.push(null);var r=t.value,i=r.ast,o=i.expressions.map(function(r,i){return e._preprocessUpdateExpression({nodeIndex:n,bindingIndex:i,sourceSpan:t.sourceSpan,context:Th,value:r})});this.nodes[n]=function(){return{sourceSpan:t.sourceSpan,nodeFlags:2,nodeDef:hn(ue(wu.textDef)).callFn([_n(t.ngContentIndex),vn(i.strings.map(function(t){return _n(t)}))]),updateRenderer:o}}},t.prototype.visitEmbeddedTemplate=function(t){var e=this,n=this.nodes.length;this.nodes.push(null);var r=this._visitElementOrTemplate(n,t),i=r.flags,o=r.queryMatchesExpr,s=r.hostEvents,a=this.viewBuilderFactory(this);this.children.push(a),a.visitAll(t.variables,t.children);var u=this.nodes.length-n-1;this.nodes[n]=function(){return{sourceSpan:t.sourceSpan,nodeFlags:1|i,nodeDef:hn(ue(wu.anchorDef)).callFn([_n(i),o,_n(t.ngContentIndex),_n(u),e._createElementHandleEventFn(n,s),pn(a.viewName)])}}},t.prototype.visitElement=function(t){var e=this,r=this.nodes.length;this.nodes.push(null);var i=t.name;t.name===bh&&(i=null);var o=this._visitElementOrTemplate(r,t),s=o.flags,a=o.usedEvents,u=o.queryMatchesExpr,c=o.hostBindings,l=o.hostEvents,p=[],h=[],f=[];if(i){var d=t.inputs.map(function(t){return{context:Th,inputAst:t,dirAst:null}}).concat(c);d.length&&(h=d.map(function(t,n){return e._preprocessUpdateExpression({context:t.context,nodeIndex:r,bindingIndex:n,sourceSpan:t.inputAst.sourceSpan,value:t.inputAst.value})}),p=d.map(function(t){return ir(t.inputAst,t.dirAst)})),f=a.map(function(t){var e=t[0],n=t[1];return vn([_n(e),_n(n)])})}n(this,t.children);var v=this.nodes.length-r-1,m=t.directives.find(function(t){return t.directive.isComponent}),y=kl,g=kl;m&&(g=hn({reference:m.directive.componentViewType}),y=hn({reference:m.directive.rendererType})),this.nodes[r]=function(){return{sourceSpan:t.sourceSpan,nodeFlags:1|s,nodeDef:hn(ue(wu.elementDef)).callFn([_n(s),u,_n(t.ngContentIndex),_n(v),_n(i),i?or(t):kl,p.length?vn(p):kl,f.length?vn(f):kl,e._createElementHandleEventFn(r,l),g,y]),updateRenderer:h}}},t.prototype._visitElementOrTemplate=function(t,n){var r=this,i=0;n.hasViewContainer&&(i|=8388608);var o=new Map;n.outputs.forEach(function(t){var n=hr(t,null),r=n.name,i=n.target;o.set(e.ɵelementEventFullName(i,r),[i,r])}),n.directives.forEach(function(t){t.hostEvents.forEach(function(n){var r=hr(n,t),i=r.name,s=r.target;o.set(e.ɵelementEventFullName(s,i),[s,i])})});var s=[],a=[],u=pr(n.directives);u&&this._visitProvider(u,n.queryMatches),n.providers.forEach(function(e){var i,u;if(n.directives.forEach(function(t,n){t.directive.type.reference===T(e.token)&&(i=t,u=n)}),i){var c=r._visitDirective(e,i,u,t,n.references,n.queryMatches,o,r.staticQueryIds.get(n)),l=c.hostBindings,p=c.hostEvents;s.push.apply(s,l),a.push.apply(a,p)}else r._visitProvider(e,n.queryMatches)});var c=[];return n.queryMatches.forEach(function(t){var e;T(t.value)===ae(wu.ElementRef)?e=0:T(t.value)===ae(wu.ViewContainerRef)?e=3:T(t.value)===ae(wu.TemplateRef)&&(e=2),null!=e&&c.push(vn([_n(t.queryId),_n(e)]))}),n.references.forEach(function(e){var n;e.value?T(e.value)===ae(wu.TemplateRef)&&(n=2):n=1,null!=n&&(r.refNodeIndices[e.name]=t,c.push(vn([_n(e.name),_n(n)])))}),n.outputs.forEach(function(t){a.push({context:Th,eventAst:t,dirAst:null})}),{flags:i,usedEvents:Array.from(o.values()),queryMatchesExpr:c.length?vn(c):kl,hostBindings:s,hostEvents:a}},t.prototype._visitDirective=function(t,e,n,r,i,o,s,a){var u=this,c=this.nodes.length;this.nodes.push(null),e.directive.queries.forEach(function(t,n){var r=e.contentQueryStartId+n,i=33554432|fr(a,r,t.first),o=t.first?0:1;u.nodes.push(function(){return{sourceSpan:e.sourceSpan,nodeFlags:i,nodeDef:hn(ue(wu.queryDef)).callFn([_n(i),_n(r),new Al([new Pl(t.propertyName,_n(o))])])}})});var l=this.nodes.length-c-1,p=this._visitProviderOrDirective(t,o),h=p.flags,f=p.queryMatchExprs,d=p.providerExpr,v=p.depsExpr;i.forEach(function(e){e.value&&T(e.value)===T(t.token)&&(u.refNodeIndices[e.name]=c,f.push(vn([_n(e.name),_n(4)])))}),e.directive.isComponent&&(h|=16384);var m=e.inputs.map(function(t,e){var n=vn([_n(e),_n(t.directiveName)]);return new Pl(t.directiveName,n,!1)}),y=[],g=e.directive;Object.keys(g.outputs).forEach(function(t){var e=g.outputs[t];s.has(e)&&y.push(new Pl(t,_n(e),!1))});var _=[];(e.inputs.length||(163840&h)>0)&&(_=e.inputs.map(function(t,e){return u._preprocessUpdateExpression({nodeIndex:c,bindingIndex:e,sourceSpan:t.sourceSpan,context:Th,value:t.value})}));var b=hn(ue(wu.nodeValue)).callFn([Sh,_n(c)]),w=e.hostProperties.map(function(t){return{context:b,dirAst:e,inputAst:t}}),E=e.hostEvents.map(function(t){return{context:b,eventAst:t,dirAst:e}});return this.nodes[c]=function(){return{sourceSpan:e.sourceSpan,nodeFlags:8192|h,nodeDef:hn(ue(wu.directiveDef)).callFn([_n(h),f.length?vn(f):kl,_n(l),d,v,m.length?new Al(m):kl,y.length?new Al(y):kl]),updateDirectives:_,directive:e.directive.type}},{hostBindings:w,hostEvents:E}},t.prototype._visitProvider=function(t,e){var n=this.nodes.length;this.nodes.push(null);var r=this._visitProviderOrDirective(t,e),i=r.flags,o=r.queryMatchExprs,s=r.providerExpr,a=r.depsExpr;this.nodes[n]=function(){return{sourceSpan:t.sourceSpan,nodeFlags:i,nodeDef:hn(ue(wu.providerDef)).callFn([_n(i),o.length?vn(o):kl,tr(t.token),s,a])}}},t.prototype._visitProviderOrDirective=function(t,n){var r=0;t.eager||(r|=2048),t.providerType===ii.PrivateService&&(r|=4096),t.lifecycleHooks.forEach(function(n){(n===e.ɵLifecycleHooks.OnDestroy||t.providerType===ii.Directive||t.providerType===ii.Component)&&(r|=rr(n))});var i=[];n.forEach(function(e){T(e.value)===T(t.token)&&i.push(vn([_n(e.queryId),_n(4)]))});var o=Zn(t),s=o.providerExpr,a=o.depsExpr,u=o.flags;return{flags:r|u,queryMatchExprs:i,providerExpr:s,depsExpr:a}},t.prototype.getLocal=function(t){if(t==ch.event.name)return ch.event;for(var e=Sh,n=this;n;n=n.parent,e=e.prop("parent").cast(nl)){var r=n.refNodeIndices[t];if(null!=r)return hn(ue(wu.nodeValue)).callFn([e,_n(r)]);var i=n.variables.find(function(e){return e.name===t});if(i){var o=i.value||_h;return e.prop("context").prop(o)}}return null},t.prototype.createLiteralArrayConverter=function(t,e){if(0===e){var n=hn(ue(wu.EMPTY_ARRAY));return function(){return n}}var r=this.nodes.length;return this.nodes.push(function(){return{sourceSpan:t,nodeFlags:16,nodeDef:hn(ue(wu.pureArrayDef)).callFn([_n(e)])}}),function(t){return ar(r,t)}},t.prototype.createLiteralMapConverter=function(t,e){if(0===e.length){var n=hn(ue(wu.EMPTY_MAP));return function(){return n}}var r=this.nodes.length;return this.nodes.push(function(){return{sourceSpan:t,nodeFlags:32,nodeDef:hn(ue(wu.pureObjectDef)).callFn([vn(e.map(function(t){return _n(t)}))])}}),function(t){return ar(r,t)}},t.prototype.createPipeConverter=function(t,e,n){var r=this.usedPipes.find(function(t){return t.name===e});if(r.pure){var i=this.nodes.length;this.nodes.push(function(){return{sourceSpan:t.sourceSpan,nodeFlags:64,nodeDef:hn(ue(wu.purePipeDef)).callFn([_n(n)])}});for(var o=Sh,s=this;s.parent;)s=s.parent,o=o.prop("parent").cast(nl);var a=s.purePipeNodeIndices[e],u=hn(ue(wu.nodeValue)).callFn([o,_n(a)]);return function(e){return ur(t.nodeIndex,t.bindingIndex,ar(i,[u].concat(e)))}}var c=this._createPipe(t.sourceSpan,r),l=hn(ue(wu.nodeValue)).callFn([Sh,_n(c)]);return function(e){return ur(t.nodeIndex,t.bindingIndex,l.callMethod("transform",e))}},t.prototype._createPipe=function(t,n){var r=this.nodes.length,i=0;n.type.lifecycleHooks.forEach(function(t){t===e.ɵLifecycleHooks.OnDestroy&&(i|=rr(t))});var o=n.type.diDeps.map(er);return this.nodes.push(function(){return{sourceSpan:t,nodeFlags:8,nodeDef:hn(ue(wu.pipeDef)).callFn([_n(i),hn(n.type),vn(o)])}}),r},t.prototype._preprocessUpdateExpression=function(t){var e=this;return{nodeIndex:t.nodeIndex,bindingIndex:t.bindingIndex,sourceSpan:t.sourceSpan,context:t.context,value:Fn({createLiteralArrayConverter:function(n){return e.createLiteralArrayConverter(t.sourceSpan,n)},createLiteralMapConverter:function(n){return e.createLiteralMapConverter(t.sourceSpan,n)},createPipeConverter:function(n,r){return e.createPipeConverter(t,n,r)}},t.value)}},t.prototype._createNodeExpressions=function(){function t(t,r,i,o){var s=[],a=i.map(function(t){var r=t.sourceSpan,i=t.context,o=t.value,a=""+n++,u=i===Th?e:null,c=Vn(u,i,o,a),l=c.stmts,p=c.currValExpr;return s.push.apply(s,l.map(function(t){return cn(t,r)})),ln(p,r)});return(i.length||o)&&s.push(cn(ar(t,a).toStmt(),r)),s}var e=this,n=0,r=[],i=[],o=this.nodes.map(function(e,n){var o=e(),s=o.nodeDef,a=o.nodeFlags,u=o.updateDirectives,c=o.updateRenderer,l=o.sourceSpan;c&&r.push.apply(r,t(n,l,c,!1)),u&&i.push.apply(i,t(n,l,u,(163840&a)>0));var p=3&a?new Ol([Ch.callFn([]).callFn([]),s]):s;return ln(p,l)});return{updateRendererStmts:r,updateDirectivesStmts:i,nodeDefExprs:o}},t.prototype._createElementHandleEventFn=function(t,n){var r=this,i=[],o=0;n.forEach(function(t){var n=t.context,s=t.eventAst,a=t.dirAst,u=""+o++,c=n===Th?r:null,l=jn(c,n,s.handler,u),p=l.stmts,h=l.allowDefault,f=p;h&&f.push(Ah.set(h.and(Ah)).toStmt());var d=hr(s,a),v=d.target,m=d.name,y=e.ɵelementEventFullName(v,m);i.push(cn(new Wl(_n(y).identical(Ph),f),s.sourceSpan))});var s;if(i.length>0){var a=[Ah.set(_n(!0)).toDeclStmt(il)];!this.component.isHost&&un(i).has(Th.name)&&a.push(Th.set(Sh.prop("component")).toDeclStmt(this.compType)),s=gn([new wl(Sh.name,rl),new wl(Ph.name,rl),new wl(ch.event.name,rl)],a.concat(i,[new Vl(Ah)]),rl)}else s=kl;return s},t.prototype.visitDirective=function(){},t.prototype.visitDirectiveProperty=function(){},t.prototype.visitReference=function(){},t.prototype.visitVariable=function(){},t.prototype.visitEvent=function(){},t.prototype.visitElementProperty=function(){},t.prototype.visitAttr=function(){},t}(),Mh=function(){function t(t,e,n){this.srcFileUrl=t,this.genFileUrl=e,this.source=n}return t}(),Rh=function(t){function e(e,n){var r=t.call(this)||this;return r.symbolResolver=e,r.summaryResolver=n,r.symbols=[],r.indexBySymbol=new Map,r.processedSummaryBySymbol=new Map,r.processedSummaries=[],r}return zr(e,t),e.prototype.addOrMergeSummary=function(t){var e=t.metadata;e&&"class"===e.__symbolic&&(e={__symbolic:"class",statics:e.statics,arity:e.arity});var n=this.processedSummaryBySymbol.get(t.symbol);n||(n=this.processValue({symbol:t.symbol}),this.processedSummaries.push(n),this.processedSummaryBySymbol.set(t.symbol,n)),null==n.metadata&&null!=e&&(n.metadata=this.processValue(e)),null==n.type&&null!=t.type&&(n.type=this.processValue(t.type))},e.prototype.serialize=function(){var t=this,e=[],n=JSON.stringify({summaries:this.processedSummaries,symbols:this.symbols.map(function(n,r){n.assertNoMembers();var i;return t.summaryResolver.isLibraryFile(n.filePath)&&(i=n.name+"_"+r,e.push({symbol:n,exportAs:i})),{__symbol:r,name:n.name,filePath:t.summaryResolver.getLibraryFileName(n.filePath),importAs:i}})});return{json:n,exportAs:e}},e.prototype.processValue=function(t){return p(t,this,null)},e.prototype.visitOther=function(t){if(t instanceof ai){var e=this.symbolResolver.getStaticSymbol(t.filePath,t.name),n=this.indexBySymbol.get(e);return null==n&&(n=this.indexBySymbol.size,this.indexBySymbol.set(e,n),this.symbols.push(e)),{__symbol:n,members:t.members}}},e}(wi),kh=function(t){function e(e){var n=t.call(this)||this;return n.symbolCache=e,n}return zr(e,t),e.prototype.deserialize=function(t){var e=this,n=JSON.parse(t),r=[];this.symbols=[],n.symbols.forEach(function(t){var n=e.symbolCache.get(t.filePath,t.name);e.symbols.push(n),t.importAs&&r.push({symbol:n,importAs:t.importAs})});var i=p(n.summaries,this,null);return{summaries:i,importAs:r}},e.prototype.visitStringMap=function(e,n){if("__symbol"in e){var r=this.symbols[e.__symbol],i=e.members;return i.length?this.symbolCache.get(r.filePath,r.name,i):r}return t.prototype.visitStringMap.call(this,e,n)},e}(wi),Ih=function(){function t(t,e,n,r,i,o,s,a,u,c,l,p,h){this._config=t,this._host=e,this._metadataResolver=n,this._templateParser=r,this._styleCompiler=i,this._viewCompiler=o,this._ngModuleCompiler=s,this._outputEmitter=a,this._summaryResolver=u,this._localeId=c,this._translationFormat=l,this._genFilePreamble=p,this._symbolResolver=h}return t.prototype.clearCache=function(){this._metadataResolver.clearCache()},t.prototype.compileAll=function(t){var e=this,n=Er(this._symbolResolver,t,this._host),r=br(n,this._host,this._metadataResolver),i=r.ngModuleByPipeOrDirective,o=r.files,s=r.ngModules;return Promise.all(s.map(function(t){return e._metadataResolver.loadNgModuleDirectiveAndPipeMetadata(t.type.reference,!1)})).then(function(){var t=o.map(function(t){return e._compileSrcFile(t.srcUrl,i,t.directives,t.pipes,t.ngModules,t.injectables)});return O(t)})},t.prototype._compileSrcFile=function(t,e,n,r,i,o){var s=this,a=Ke(t)[1],u=[],c=[],l=[];if(l.push(this._createSummary(t,n,r,i,o,u,c)),c.push.apply(c,i.map(function(t){return s._compileModule(t,u)})),n.forEach(function(n){var r=s._metadataResolver.getDirectiveMetadata(n);if(!r.isComponent)return Promise.resolve(null);var i=e.get(n);if(!i)throw new Error("Internal Error: cannot determine the module for component "+g(r.type)+"!");gr(r);var o=s._styleCompiler.compileComponent(r);o.externalStylesheets.forEach(function(e){l.push(s._codgenStyles(t,e,a))});var p=s._compileComponent(r,i,i.transitiveModule.directives,o.componentStylesheet,a,u);c.push(s._compileComponentFactory(r,i,a,u),p.viewClassVar,p.compRenderTypeVar)}),u.length>0){var p=this._codegenSourceModule(t,ze(t),u,c);l.unshift(p)}return l},t.prototype._createSummary=function(t,e,n,r,i,o,s){var a=this,u=this._symbolResolver.getSymbolsOf(t).map(function(t){return a._symbolResolver.resolveSymbol(t)}),c=r.map(function(t){return a._metadataResolver.getNgModuleSummary(t)}).concat(e.map(function(t){return a._metadataResolver.getDirectiveSummary(t)}),n.map(function(t){return a._metadataResolver.getPipeSummary(t)}),i.map(function(t){return a._metadataResolver.getInjectableSummary(t)})),l=dr(this._summaryResolver,this._symbolResolver,u,c),p=l.json,h=l.exportAs;return h.forEach(function(t){o.push(pn(t.exportAs).set(hn({reference:t.symbol})).toDeclStmt()),s.push(t.exportAs)}),new Mh(t,Qe(t),p)},t.prototype._compileModule=function(t,e){var n=this._metadataResolver.getNgModuleMetadata(t),r=[];this._localeId&&r.push({token:le(wu.LOCALE_ID),useValue:this._localeId}),this._translationFormat&&r.push({token:le(wu.TRANSLATIONS_FORMAT),useValue:this._translationFormat});var i=this._ngModuleCompiler.compile(n,r);return e.push.apply(e,i.statements),i.ngModuleFactoryVar},t.prototype._compileComponentFactory=function(t,e,n,r){var i=this._metadataResolver.getHostComponentType(t.type.reference),o=P(i,t,this._metadataResolver.getHostComponentViewClass(i)),s=this._compileComponent(o,e,[t.type],null,n,r).viewClassVar,a=S(t.type.reference),u=[];for(var c in t.inputs){var l=t.inputs[c];u.push(new Pl(c,_n(l),!1))}var p=[];for(var c in t.outputs){var l=t.outputs[c];p.push(new Pl(c,_n(l),!1))}return r.push(pn(a).set(hn(ue(wu.createComponentFactory)).callFn([_n(t.selector),hn(t.type),pn(s),new Al(u),new Al(p),vn(t.template.ngContentSelectors.map(function(t){return _n(t)}))])).toDeclStmt(fn(ue(wu.ComponentFactory),[fn(t.type)],[Xc.Const]),[Nl.Final])),a},t.prototype._compileComponent=function(t,e,n,r,i,o){var s=this,a=n.map(function(t){return s._metadataResolver.getDirectiveSummary(t.reference)}),u=e.transitiveModule.pipes.map(function(t){return s._metadataResolver.getPipeSummary(t.reference)}),c=this._templateParser.parse(t,t.template.template,a,u,e.schemas,R(e.type,t,t.template)),l=c.template,p=c.pipes,h=r?pn(r.stylesVar):vn([]),f=this._viewCompiler.compileComponent(t,l,h,p);return r&&o.push.apply(o,mr(this._symbolResolver,r,i)),o.push.apply(o,f.statements),{viewClassVar:f.viewClassVar,compRenderTypeVar:f.rendererTypeVar}},t.prototype._codgenStyles=function(t,e,n){return mr(this._symbolResolver,e,n),this._codegenSourceModule(t,yr(e.meta.moduleUrl,e.isShimmed,n),e.statements,[e.stylesVar])},t.prototype._codegenSourceModule=function(t,e,n,r){return new Mh(t,e,this._outputEmitter.emitStatements(M(t),e,n,r,this._genFilePreamble))},t}(),Nh=function(){function t(t){this.staticDelegate=t,this.dynamicDelegate=new e.ɵReflectionCapabilities}return t.install=function(n){e.ɵreflector.updateCapabilities(new t(n))},t.prototype.isReflectionEnabled=function(){return!0},t.prototype.factory=function(t){return this.dynamicDelegate.factory(t)},t.prototype.hasLifecycleHook=function(t,e){return Sr(t)?this.staticDelegate.hasLifecycleHook(t,e):this.dynamicDelegate.hasLifecycleHook(t,e)},t.prototype.parameters=function(t){return Sr(t)?this.staticDelegate.parameters(t):this.dynamicDelegate.parameters(t)},t.prototype.annotations=function(t){return Sr(t)?this.staticDelegate.annotations(t):this.dynamicDelegate.annotations(t)},t.prototype.propMetadata=function(t){return Sr(t)?this.staticDelegate.propMetadata(t):this.dynamicDelegate.propMetadata(t)},t.prototype.getter=function(t){return this.dynamicDelegate.getter(t)},t.prototype.setter=function(t){return this.dynamicDelegate.setter(t)},t.prototype.method=function(t){return this.dynamicDelegate.method(t)},t.prototype.importUri=function(t){return this.staticDelegate.importUri(t)},t.prototype.resourceUri=function(t){return this.staticDelegate.resourceUri(t)},t.prototype.resolveIdentifier=function(t,e,n){return this.staticDelegate.resolveIdentifier(t,e,n)},t.prototype.resolveEnum=function(t,e){return Sr(t)?this.staticDelegate.resolveEnum(t,e):null},t}(),Dh="@angular/core",Lh=/^\$.*\$$/,jh={__symbolic:"ignore"},Fh=function(){function t(t,e,n,r){void 0===e&&(e=[]),void 0===n&&(n=[]);var i=this;this.symbolResolver=t,this.errorRecorder=r,this.annotationCache=new Map,this.propertyCache=new Map,this.parameterCache=new Map,this.methodCache=new Map,this.conversionMap=new Map,this.initializeConversionMap(),e.forEach(function(t){return i._registerDecoratorOrConstructor(i.getStaticSymbol(t.filePath,t.name),t.ctor)}),n.forEach(function(t){return i._registerFunction(i.getStaticSymbol(t.filePath,t.name),t.fn)})}return t.prototype.importUri=function(t){var e=this.findSymbolDeclaration(t);return e?e.filePath:null},t.prototype.resourceUri=function(t){var e=this.findSymbolDeclaration(t);return this.symbolResolver.getResourcePath(e)},t.prototype.resolveIdentifier=function(t,e,n){var r=this.getStaticSymbol(e,t),i=this.findDeclaration(e,t);return r!=i&&this.symbolResolver.recordImportAs(i,r),n&&n.length?this.getStaticSymbol(i.filePath,i.name,n):i},t.prototype.findDeclaration=function(t,e,n){return this.findSymbolDeclaration(this.symbolResolver.getSymbolByModule(t,e,n))},t.prototype.findSymbolDeclaration=function(t){var e=this.symbolResolver.resolveSymbol(t);return e&&e.metadata instanceof ai?this.findSymbolDeclaration(e.metadata):t},t.prototype.resolveEnum=function(t,e){var n=t,r=(n.members||[]).concat(e);return this.getStaticSymbol(n.filePath,n.name,r)},t.prototype.annotations=function(t){var e=this.annotationCache.get(t);if(!e){e=[];var n=this.getTypeMetadata(t);if(n["extends"]){var r=this.trySimplify(t,n["extends"]);if(r&&r instanceof ai){var i=this.annotations(r);e.push.apply(e,i)}}if(n.decorators){var o=this.simplify(t,n.decorators);e.push.apply(e,o)}this.annotationCache.set(t,e.filter(function(t){return!!t}))}return e},t.prototype.propMetadata=function(t){var e=this,n=this.propertyCache.get(t);if(!n){var r=this.getTypeMetadata(t);if(n={},r["extends"]){var i=this.trySimplify(t,r["extends"]);if(i instanceof ai){var o=this.propMetadata(i);Object.keys(o).forEach(function(t){ -n[t]=o[t]})}}var s=r.members||{};Object.keys(s).forEach(function(r){var i=s[r],o=i.find(function(t){return"property"==t.__symbolic||"method"==t.__symbolic}),a=[];n[r]&&a.push.apply(a,n[r]),n[r]=a,o&&o.decorators&&a.push.apply(a,e.simplify(t,o.decorators))}),this.propertyCache.set(t,n)}return n},t.prototype.parameters=function(t){if(!(t instanceof ai))return this.reportError(new Error("parameters received "+JSON.stringify(t)+" which is not a StaticSymbol"),t),[];try{var e=this.parameterCache.get(t);if(!e){var n=this.getTypeMetadata(t),r=n?n.members:null,i=r?r.__ctor__:null;if(i){var o=i.find(function(t){return"constructor"==t.__symbolic}),s=this.simplify(t,o.parameters||[]),a=this.simplify(t,o.parameterDecorators||[]);e=[],s.forEach(function(t,n){var r=[];t&&r.push(t);var i=a?a[n]:null;i&&r.push.apply(r,i),e.push(r)})}else if(n["extends"]){var u=this.trySimplify(t,n["extends"]);u instanceof ai&&(e=this.parameters(u))}e||(e=[]),this.parameterCache.set(t,e)}return e}catch(c){throw console.error("Failed on type "+JSON.stringify(t)+" with error "+c),c}},t.prototype._methodNames=function(t){var e=this.methodCache.get(t);if(!e){var n=this.getTypeMetadata(t);if(e={},n["extends"]){var r=this.trySimplify(t,n["extends"]);if(r instanceof ai){var i=this._methodNames(r);Object.keys(i).forEach(function(t){e[t]=i[t]})}}var o=n.members||{};Object.keys(o).forEach(function(t){var n=o[t],r=n.some(function(t){return"method"==t.__symbolic});e[t]=e[t]||r}),this.methodCache.set(t,e)}return e},t.prototype.hasLifecycleHook=function(t,e){t instanceof ai||this.reportError(new Error("hasLifecycleHook received "+JSON.stringify(t)+" which is not a StaticSymbol"),t);try{return!!this._methodNames(t)[e]}catch(n){throw console.error("Failed on type "+JSON.stringify(t)+" with error "+n),n}},t.prototype._registerDecoratorOrConstructor=function(t,e){this.conversionMap.set(t,function(t,n){return new(e.bind.apply(e,[void 0].concat(n)))})},t.prototype._registerFunction=function(t,e){this.conversionMap.set(t,function(t,n){return e.apply(void 0,n)})},t.prototype.initializeConversionMap=function(){this.injectionToken=this.findDeclaration(Dh,"InjectionToken"),this.opaqueToken=this.findDeclaration(Dh,"OpaqueToken"),this._registerDecoratorOrConstructor(this.findDeclaration(Dh,"Host"),e.Host),this._registerDecoratorOrConstructor(this.findDeclaration(Dh,"Injectable"),e.Injectable),this._registerDecoratorOrConstructor(this.findDeclaration(Dh,"Self"),e.Self),this._registerDecoratorOrConstructor(this.findDeclaration(Dh,"SkipSelf"),e.SkipSelf),this._registerDecoratorOrConstructor(this.findDeclaration(Dh,"Inject"),e.Inject),this._registerDecoratorOrConstructor(this.findDeclaration(Dh,"Optional"),e.Optional),this._registerDecoratorOrConstructor(this.findDeclaration(Dh,"Attribute"),e.Attribute),this._registerDecoratorOrConstructor(this.findDeclaration(Dh,"ContentChild"),e.ContentChild),this._registerDecoratorOrConstructor(this.findDeclaration(Dh,"ContentChildren"),e.ContentChildren),this._registerDecoratorOrConstructor(this.findDeclaration(Dh,"ViewChild"),e.ViewChild),this._registerDecoratorOrConstructor(this.findDeclaration(Dh,"ViewChildren"),e.ViewChildren),this._registerDecoratorOrConstructor(this.findDeclaration(Dh,"Input"),e.Input),this._registerDecoratorOrConstructor(this.findDeclaration(Dh,"Output"),e.Output),this._registerDecoratorOrConstructor(this.findDeclaration(Dh,"Pipe"),e.Pipe),this._registerDecoratorOrConstructor(this.findDeclaration(Dh,"HostBinding"),e.HostBinding),this._registerDecoratorOrConstructor(this.findDeclaration(Dh,"HostListener"),e.HostListener),this._registerDecoratorOrConstructor(this.findDeclaration(Dh,"Directive"),e.Directive),this._registerDecoratorOrConstructor(this.findDeclaration(Dh,"Component"),e.Component),this._registerDecoratorOrConstructor(this.findDeclaration(Dh,"NgModule"),e.NgModule),this._registerDecoratorOrConstructor(this.findDeclaration(Dh,"Host"),e.Host),this._registerDecoratorOrConstructor(this.findDeclaration(Dh,"Self"),e.Self),this._registerDecoratorOrConstructor(this.findDeclaration(Dh,"SkipSelf"),e.SkipSelf),this._registerDecoratorOrConstructor(this.findDeclaration(Dh,"Optional"),e.Optional),this._registerFunction(this.findDeclaration(Dh,"trigger"),e.trigger),this._registerFunction(this.findDeclaration(Dh,"state"),e.state),this._registerFunction(this.findDeclaration(Dh,"transition"),e.transition),this._registerFunction(this.findDeclaration(Dh,"style"),e.style),this._registerFunction(this.findDeclaration(Dh,"animate"),e.animate),this._registerFunction(this.findDeclaration(Dh,"keyframes"),e.keyframes),this._registerFunction(this.findDeclaration(Dh,"sequence"),e.sequence),this._registerFunction(this.findDeclaration(Dh,"group"),e.group)},t.prototype.getStaticSymbol=function(t,e,n){return this.symbolResolver.getStaticSymbol(t,e,n)},t.prototype.reportError=function(t,e,n){if(!this.errorRecorder)throw t;this.errorRecorder(t,e&&e.filePath||n)},t.prototype.trySimplify=function(t,e){var n=this.errorRecorder;this.errorRecorder=function(){};var r=this.simplify(t,e);return this.errorRecorder=n,r},t.prototype.simplify=function(t,e){function n(t,e,r){function a(t){var e=i.symbolResolver.resolveSymbol(t);return e?e.metadata:null}function u(e,i,a){if(i&&"function"==i.__symbolic){if(s.get(e))throw new Error("Recursion not supported");s.set(e,!0);try{var u=i.value;if(u&&(0!=r||"error"!=u.__symbolic)){var l=i.parameters,p=i.defaults;a=a.map(function(e){return n(t,e,r+1)}).map(function(t){return xr(t)?void 0:t}),p&&p.length>a.length&&a.push.apply(a,p.slice(a.length).map(function(t){return c(t)}));for(var h=Vh.build(),f=0;f<l.length;f++)h.define(l[f],a[f]);var d,v=o;try{o=h.done(),d=n(e,u,r+1)}finally{o=v}return d}}finally{s["delete"](e)}}return 0===r?jh:c({__symbolic:"error",message:"Function call not supported",context:e})}function c(e){if(Or(e))return e;if(e instanceof Array){for(var s=[],l=0,p=e;l<p.length;l++){var h=p[l];if(h&&"spread"===h.__symbolic){var f=c(h.expression);if(Array.isArray(f)){for(var d=0,v=f;d<v.length;d++){var m=v[d];s.push(m)}continue}}var y=c(h);xr(y)||s.push(y)}return s}if(e instanceof ai){if(e===i.injectionToken||e===i.opaqueToken||i.conversionMap.has(e))return e;var g=e,_=a(g);return _?n(g,_,r+1):g}if(e){if(e.__symbolic){var g=void 0;switch(e.__symbolic){case"binop":var b=c(e.left);if(xr(b))return b;var w=c(e.right);if(xr(w))return w;switch(e.operator){case"&&":return b&&w;case"||":return b||w;case"|":return b|w;case"^":return b^w;case"&":return b&w;case"==":return b==w;case"!=":return b!=w;case"===":return b===w;case"!==":return b!==w;case"<":return w>b;case">":return b>w;case"<=":return w>=b;case">=":return b>=w;case"<<":return b<<w;case">>":return b>>w;case"+":return b+w;case"-":return b-w;case"*":return b*w;case"/":return b/w;case"%":return b%w}return null;case"if":var E=c(e.condition);return c(E?e.thenExpression:e.elseExpression);case"pre":var C=c(e.operand);if(xr(C))return C;switch(e.operator){case"+":return C;case"-":return-C;case"!":return!C;case"~":return~C}return null;case"index":var S=c(e.expression),x=c(e.index);return S&&Or(x)?S[x]:null;case"select":var T=e.member,P=t,A=c(e.expression);if(A instanceof ai){var O=A.members.concat(T);P=i.getStaticSymbol(A.filePath,A.name,O);var _=a(P);return _?n(P,_,r+1):P}return A&&Or(T)?n(P,A[T],r+1):null;case"reference":var M=e.name,R=o.resolve(M);if(R!=Vh.missing)return R;break;case"class":return t;case"function":return t;case"new":case"call":if(g=n(t,e.expression,r+1),g instanceof ai){if(g===i.injectionToken||g===i.opaqueToken)return t;var k=e.arguments||[],I=i.conversionMap.get(g);if(I){var N=k.map(function(e){return n(t,e,r+1)}).map(function(t){return xr(t)?void 0:t});return I(t,N)}var D=a(g);return u(g,D,k)}break;case"error":var L=Pr(e);return e.line?(L=L+" (position "+(e.line+1)+":"+(e.character+1)+" in the original .ts file)",i.reportError(Mr(L,t.filePath,e.line,e.character),t)):i.reportError(new Error(L),t),jh;case"ignore":return e}return null}return Ar(e,function(t){return c(t)})}return jh}try{return c(e)}catch(l){var p=t.members.length?"."+t.members.join("."):"",f=l.message+", resolving symbol "+t.name+p+" in "+t.filePath;if(l.fileName)throw Mr(f,l.fileName,l.line,l.column);throw h(f)}}var r=this,i=this,o=Vh.empty,s=new Map,a=function(t,e,i){try{return n(t,e,i)}catch(o){r.reportError(o,t)}},u=this.errorRecorder?a(t,e,0):n(t,e,0);return xr(u)?void 0:u},t.prototype.getTypeMetadata=function(t){var e=this.symbolResolver.resolveSymbol(t);return e&&e.metadata?e.metadata:{__symbolic:"class"}},t}(),Vh=function(){function t(){}return t.prototype.resolve=function(){},t.build=function(){var e=new Map;return{define:function(t,n){return e.set(t,n),this},done:function(){return e.size>0?new Uh(e):t.empty}}},t}();Vh.missing={},Vh.empty={resolve:function(){return Vh.missing}};var Uh=function(t){function e(e){var n=t.call(this)||this;return n.bindings=e,n}return zr(e,t),e.prototype.resolve=function(t){return this.bindings.has(t)?this.bindings.get(t):Vh.missing},e}(Vh),Bh=function(){function t(t,e){this.symbol=t,this.metadata=e}return t}(),Hh=3,qh=function(){function t(t,e,n,r){this.host=t,this.staticSymbolCache=e,this.summaryResolver=n,this.errorRecorder=r,this.metadataCache=new Map,this.resolvedSymbols=new Map,this.resolvedFilePaths=new Set,this.importAs=new Map,this.symbolResourcePaths=new Map,this.symbolFromFile=new Map}return t.prototype.resolveSymbol=function(t){if(t.members.length>0)return this._resolveSymbolMembers(t);var e=this.resolvedSymbols.get(t);return e?e:(e=this._resolveSymbolFromSummary(t))?e:(this._createSymbolsOf(t.filePath),e=this.resolvedSymbols.get(t))},t.prototype.getImportAs=function(t){if(t.members.length){var e=this.getStaticSymbol(t.filePath,t.name),n=this.getImportAs(e);return n?this.getStaticSymbol(n.filePath,n.name,t.members):null}var r=this.summaryResolver.getImportAs(t);return r||(r=this.importAs.get(t)),r},t.prototype.getResourcePath=function(t){return this.symbolResourcePaths.get(t)||t.filePath},t.prototype.getTypeArity=function(t){if(Ge(t.filePath))return null;for(var e=this.resolveSymbol(t);e&&e.metadata instanceof ai;)e=this.resolveSymbol(e.metadata);return e&&e.metadata&&e.metadata.arity||null},t.prototype.recordImportAs=function(t,e){t.assertNoMembers(),e.assertNoMembers(),this.importAs.set(t,e)},t.prototype.invalidateFile=function(t){this.metadataCache["delete"](t),this.resolvedFilePaths["delete"](t);var e=this.symbolFromFile.get(t);if(e){this.symbolFromFile["delete"](t);for(var n=0,r=e;n<r.length;n++){var i=r[n];this.resolvedSymbols["delete"](i),this.importAs["delete"](i),this.symbolResourcePaths["delete"](i)}}},t.prototype._resolveSymbolMembers=function(t){var e=t.members,n=this.resolveSymbol(this.getStaticSymbol(t.filePath,t.name));if(!n)return null;var r=n.metadata;if(r instanceof ai)return new Bh(t,this.getStaticSymbol(r.filePath,r.name,e));if(!r||"class"!==r.__symbolic){for(var i=r,o=0;o<e.length&&i;o++)i=i[e[o]];return new Bh(t,i)}return r.statics&&1===e.length?new Bh(t,r.statics[e[0]]):null},t.prototype._resolveSymbolFromSummary=function(t){var e=this.summaryResolver.resolveSummary(t);return e?new Bh(t,e.metadata):null},t.prototype.getStaticSymbol=function(t,e,n){return this.staticSymbolCache.get(t,e,n)},t.prototype.getSymbolsOf=function(t){var e=new Set(this.summaryResolver.getSymbolsOf(t));return this._createSymbolsOf(t),this.resolvedSymbols.forEach(function(n){n.symbol.filePath===t&&e.add(n.symbol)}),Array.from(e)},t.prototype._createSymbolsOf=function(t){var e=this;if(!this.resolvedFilePaths.has(t)){this.resolvedFilePaths.add(t);var n=[],r=this.getModuleMetadata(t);if(r.metadata){var i=new Set(Object.keys(r.metadata).map(Rr)),o=r.origins||{};Object.keys(r.metadata).forEach(function(s){var a=r.metadata[s],u=Rr(s),c=e.getStaticSymbol(t,u),l=void 0;r.importAs&&(l=e.getStaticSymbol(r.importAs,u),e.recordImportAs(c,l));var p=o.hasOwnProperty(s)&&o[s];if(p){var h=e.resolveModule(p,t);h?e.symbolResourcePaths.set(c,h):e.reportError(new Error("Couldn't resolve original symbol for "+p+" from "+t),null)}n.push(e.createResolvedSymbol(c,t,i,a))})}if(r.exports)for(var s=function(r){if(r["export"])r["export"].forEach(function(i){var o;o="string"==typeof i?i:i.as,o=Rr(o);var s=o;"string"!=typeof i&&(s=Rr(i.name));var a=e.resolveModule(r.from,t);if(a){var u=e.getStaticSymbol(a,s),c=e.getStaticSymbol(t,o);n.push(e.createExport(c,u))}});else{var i=a.resolveModule(r.from,t);if(i){var o=a.getSymbolsOf(i);o.forEach(function(r){var i=e.getStaticSymbol(t,r.name);n.push(e.createExport(i,r))})}}},a=this,u=0,c=r.exports;u<c.length;u++){var l=c[u];s(l)}n.forEach(function(t){return e.resolvedSymbols.set(t.symbol,t)}),this.symbolFromFile.set(t,n.map(function(t){return t.symbol}))}},t.prototype.createResolvedSymbol=function(t,e,n,r){var i=this,o=function(r){function o(){return null!==r&&r.apply(this,arguments)||this}return zr(o,r),o.prototype.visitStringMap=function(o,s){var a=o.__symbolic;if("function"===a){var u=s.length;s.push.apply(s,o.parameters||[]);var c=r.prototype.visitStringMap.call(this,o,s);return s.length=u,c}if("reference"!==a)return r.prototype.visitStringMap.call(this,o,s);var l=o.module,p=o.name?Rr(o.name):o.name;if(!p)return null;var h=void 0;return l?(h=i.resolveModule(l,t.filePath),h?i.getStaticSymbol(h,p):{__symbolic:"error",message:"Could not resolve "+l+" relative to "+t.filePath+"."}):s.indexOf(p)>=0?{__symbolic:"reference",name:p}:n.has(p)?i.getStaticSymbol(e,p):void 0},o}(wi),s=p(r,new o,[]);return s instanceof ai?this.createExport(t,s):new Bh(t,s)},t.prototype.createExport=function(t,e){return t.assertNoMembers(),e.assertNoMembers(),this.summaryResolver.isLibraryFile(t.filePath)&&this.importAs.set(e,this.getImportAs(t)||t),new Bh(t,e)},t.prototype.reportError=function(t,e,n){if(!this.errorRecorder)throw t;this.errorRecorder(t,e&&e.filePath||n)},t.prototype.getModuleMetadata=function(t){var e=this.metadataCache.get(t);if(!e){var n=this.host.getMetadataFor(t);if(n){var r=-1;n.forEach(function(t){t.version>r&&(r=t.version,e=t)})}if(e||(e={__symbolic:"module",version:Hh,module:t,metadata:{}}),e.version!=Hh){var i=2==e.version?"Unsupported metadata version "+e.version+" for module "+t+". This module should be compiled with a newer version of ngc":"Metadata version mismatch for module "+t+", found version "+e.version+", expected "+Hh;this.reportError(new Error(i),null)}this.metadataCache.set(t,e)}return e},t.prototype.getSymbolByModule=function(t,e,n){var r=this.resolveModule(t,n);return r?this.getStaticSymbol(r,e):(this.reportError(new Error("Could not resolve module "+t+(n?" relative to $ {\n containingFile\n } ":"")),null),this.getStaticSymbol("ERROR:"+t,e))},t.prototype.resolveModule=function(t,e){try{return this.host.moduleNameToFileName(t,e)}catch(n){console.error("Could not resolve module '"+t+"' relative to file "+e),this.reportError(n,null,e)}},t}(),zh=function(){function t(t,e){this.host=t,this.staticSymbolCache=e,this.summaryCache=new Map,this.loadedFilePaths=new Set,this.importAs=new Map}return t.prototype.isLibraryFile=function(t){return!this.host.isSourceFile(We(t))},t.prototype.getLibraryFileName=function(t){return this.host.getOutputFileName(t)},t.prototype.resolveSummary=function(t){t.assertNoMembers();var e=this.summaryCache.get(t);return e||(this._loadSummaryFile(t.filePath),e=this.summaryCache.get(t)),e},t.prototype.getSymbolsOf=function(t){return this._loadSummaryFile(t),Array.from(this.summaryCache.keys()).filter(function(e){return e.filePath===t})},t.prototype.getImportAs=function(t){return t.assertNoMembers(),this.importAs.get(t)},t.prototype._loadSummaryFile=function(t){var e=this;if(!this.loadedFilePaths.has(t)&&(this.loadedFilePaths.add(t),this.isLibraryFile(t))){var n=Qe(t),r=void 0;try{r=this.host.loadSummary(n)}catch(i){throw console.error("Error loading summary file "+n),i}if(r){var o=vr(this.staticSymbolCache,r),s=o.summaries,a=o.importAs;s.forEach(function(t){return e.summaryCache.set(t.symbol,t)}),a.forEach(function(n){e.importAs.set(n.symbol,e.staticSymbolCache.get(ze(t),n.importAs))})}}},t}(),Wh=function(){function t(t,e,n,r){this.parent=t,this.instance=e,this.className=n,this.vars=r}return t.prototype.createChildWihtLocalVars=function(){return new t(this,this.instance,this.className,new Map)},t}(),Gh=function(){function t(t){this.value=t}return t}(),Kh=function(){function t(){}return t.prototype.debugAst=function(t){return On(t)},t.prototype.visitDeclareVarStmt=function(t,e){return e.vars.set(t.name,t.value.visitExpression(this,e)),null},t.prototype.visitWriteVarExpr=function(t,e){for(var n=t.value.visitExpression(this,e),r=e;null!=r;){if(r.vars.has(t.name))return r.vars.set(t.name,n),n;r=r.parent}throw new Error("Not declared variable "+t.name)},t.prototype.visitReadVarExpr=function(t,e){var n=t.name;if(null!=t.builtin)switch(t.builtin){case al.Super:return e.instance.__proto__;case al.This:return e.instance;case al.CatchError:n=Qh;break;case al.CatchStack:n=Xh;break;default:throw new Error("Unknown builtin variable "+t.builtin)}for(var r=e;null!=r;){if(r.vars.has(n))return r.vars.get(n);r=r.parent}throw new Error("Not declared variable "+n)},t.prototype.visitWriteKeyExpr=function(t,e){var n=t.receiver.visitExpression(this,e),r=t.index.visitExpression(this,e),i=t.value.visitExpression(this,e);return n[r]=i,i},t.prototype.visitWritePropExpr=function(t,e){var n=t.receiver.visitExpression(this,e),r=t.value.visitExpression(this,e);return n[t.name]=r,r},t.prototype.visitInvokeMethodExpr=function(t,e){var n,r=t.receiver.visitExpression(this,e),i=this.visitAllExpressions(t.args,e);if(null!=t.builtin)switch(t.builtin){case hl.ConcatArray:n=r.concat.apply(r,i);break;case hl.SubscribeObservable:n=r.subscribe({next:i[0]});break;case hl.Bind:n=r.bind.apply(r,i);break;default:throw new Error("Unknown builtin method "+t.builtin)}else n=r[t.name].apply(r,i);return n},t.prototype.visitInvokeFunctionExpr=function(t,e){var n=this.visitAllExpressions(t.args,e),r=t.fn;if(r instanceof ul&&r.builtin===al.Super)return e.instance.constructor.prototype.constructor.apply(e.instance,n),null;var i=t.fn.visitExpression(this,e);return i.apply(null,n)},t.prototype.visitReturnStmt=function(t,e){return new Gh(t.value.visitExpression(this,e))},t.prototype.visitDeclareClassStmt=function(t,e){var n=Dr(t,e,this);return e.vars.set(t.name,n),null},t.prototype.visitExpressionStmt=function(t,e){return t.expr.visitExpression(this,e)},t.prototype.visitIfStmt=function(t,e){var n=t.condition.visitExpression(this,e);return n?this.visitAllStatements(t.trueCase,e):null!=t.falseCase?this.visitAllStatements(t.falseCase,e):null},t.prototype.visitTryCatchStmt=function(t,e){try{return this.visitAllStatements(t.bodyStmts,e)}catch(n){var r=e.createChildWihtLocalVars();return r.vars.set(Qh,n),r.vars.set(Xh,n.stack),this.visitAllStatements(t.catchStmts,r)}},t.prototype.visitThrowStmt=function(t,e){throw t.error.visitExpression(this,e)},t.prototype.visitCommentStmt=function(){return null},t.prototype.visitInstantiateExpr=function(t,e){var n=this.visitAllExpressions(t.args,e),r=t.classExpr.visitExpression(this,e);return new(r.bind.apply(r,[void 0].concat(n)))},t.prototype.visitLiteralExpr=function(t){return t.value},t.prototype.visitExternalExpr=function(t){return t.value.reference},t.prototype.visitConditionalExpr=function(t,e){return t.condition.visitExpression(this,e)?t.trueCase.visitExpression(this,e):null!=t.falseCase?t.falseCase.visitExpression(this,e):null},t.prototype.visitNotExpr=function(t,e){return!t.condition.visitExpression(this,e)},t.prototype.visitCastExpr=function(t,e){return t.value.visitExpression(this,e)},t.prototype.visitFunctionExpr=function(t,e){var n=t.params.map(function(t){return t.name});return Lr(n,t.statements,e,this)},t.prototype.visitDeclareFunctionStmt=function(t,e){var n=t.params.map(function(t){return t.name});return e.vars.set(t.name,Lr(n,t.statements,e,this)),null},t.prototype.visitBinaryOperatorExpr=function(t,e){var n=this,r=function(){return t.lhs.visitExpression(n,e)},i=function(){return t.rhs.visitExpression(n,e)};switch(t.operator){case ol.Equals:return r()==i();case ol.Identical:return r()===i();case ol.NotEquals:return r()!=i();case ol.NotIdentical:return r()!==i();case ol.And:return r()&&i();case ol.Or:return r()||i();case ol.Plus:return r()+i();case ol.Minus:return r()-i();case ol.Divide:return r()/i();case ol.Multiply:return r()*i();case ol.Modulo:return r()%i();case ol.Lower:return r()<i();case ol.LowerEquals:return r()<=i();case ol.Bigger:return r()>i();case ol.BiggerEquals:return r()>=i();default:throw new Error("Unknown operator "+t.operator)}},t.prototype.visitReadPropExpr=function(t,e){var n,r=t.receiver.visitExpression(this,e);return n=r[t.name]},t.prototype.visitReadKeyExpr=function(t,e){var n=t.receiver.visitExpression(this,e),r=t.index.visitExpression(this,e);return n[r]},t.prototype.visitLiteralArrayExpr=function(t,e){return this.visitAllExpressions(t.entries,e)},t.prototype.visitLiteralMapExpr=function(t,e){var n=this,r={};return t.entries.forEach(function(t){return r[t.key]=t.value.visitExpression(n,e)}),r},t.prototype.visitCommaExpr=function(t,e){var n=this.visitAllExpressions(t.parts,e);return n[n.length-1]},t.prototype.visitAllExpressions=function(t,e){var n=this;return t.map(function(t){return t.visitExpression(n,e)})},t.prototype.visitAllStatements=function(t,e){for(var n=0;n<t.length;n++){var r=t[n],i=r.visitStatement(this,e);if(i instanceof Gh)return i}return null},t}(),Qh="error",Xh="stack",$h=function(t){function e(){return t.call(this,!1)||this}return zr(e,t),e.prototype.visitDeclareClassStmt=function(t,e){var n=this;return e.pushClass(t),this._visitClassConstructor(t,e),null!=t.parent&&(e.print(t,t.name+".prototype = Object.create("),t.parent.visitExpression(this,e),e.println(t,".prototype);")),t.getters.forEach(function(r){return n._visitClassGetter(t,r,e)}),t.methods.forEach(function(r){return n._visitClassMethod(t,r,e)}),e.popClass(),null},e.prototype._visitClassConstructor=function(t,e){e.print(t,"function "+t.name+"("),null!=t.constructorMethod&&this._visitParams(t.constructorMethod.params,e),e.println(t,") {"),e.incIndent(),null!=t.constructorMethod&&t.constructorMethod.body.length>0&&(e.println(t,"var self = this;"),this.visitAllStatements(t.constructorMethod.body,e)),e.decIndent(),e.println(t,"}")},e.prototype._visitClassGetter=function(t,e,n){n.println(t,"Object.defineProperty("+t.name+".prototype, '"+e.name+"', { get: function() {"),n.incIndent(),e.body.length>0&&(n.println(t,"var self = this;"),this.visitAllStatements(e.body,n)),n.decIndent(),n.println(t,"}});")},e.prototype._visitClassMethod=function(t,e,n){n.print(t,t.name+".prototype."+e.name+" = function("),this._visitParams(e.params,n),n.println(t,") {"),n.incIndent(),e.body.length>0&&(n.println(t,"var self = this;"),this.visitAllStatements(e.body,n)),n.decIndent(),n.println(t,"};")},e.prototype.visitReadVarExpr=function(e,n){if(e.builtin===al.This)n.print(e,"self");else{if(e.builtin===al.Super)throw new Error("'super' needs to be handled at a parent ast node, not at the variable level!");t.prototype.visitReadVarExpr.call(this,e,n)}return null},e.prototype.visitDeclareVarStmt=function(t,e){return e.print(t,"var "+t.name+" = "),t.value.visitExpression(this,e),e.println(t,";"),null},e.prototype.visitCastExpr=function(t,e){return t.value.visitExpression(this,e),null},e.prototype.visitInvokeFunctionExpr=function(e,n){var r=e.fn;return r instanceof ul&&r.builtin===al.Super?(n.currentClass.parent.visitExpression(this,n),n.print(e,".call(this"),e.args.length>0&&(n.print(e,", "),this.visitAllExpressions(e.args,n,",")),n.print(e,")")):t.prototype.visitInvokeFunctionExpr.call(this,e,n),null},e.prototype.visitFunctionExpr=function(t,e){return e.print(t,"function("),this._visitParams(t.params,e),e.println(t,") {"),e.incIndent(),this.visitAllStatements(t.statements,e),e.decIndent(),e.print(t,"}"),null},e.prototype.visitDeclareFunctionStmt=function(t,e){return e.print(t,"function "+t.name+"("),this._visitParams(t.params,e),e.println(t,") {"),e.incIndent(),this.visitAllStatements(t.statements,e),e.decIndent(),e.println(t,"}"),null},e.prototype.visitTryCatchStmt=function(t,e){e.println(t,"try {"),e.incIndent(),this.visitAllStatements(t.bodyStmts,e),e.decIndent(),e.println(t,"} catch ("+fp.name+") {"),e.incIndent();var n=[dp.set(fp.prop("stack")).toDeclStmt(null,[Nl.Final])].concat(t.catchStmts);return this.visitAllStatements(n,e),e.decIndent(),e.println(t,"}"),null},e.prototype._visitParams=function(t,e){this.visitAllObjects(function(t){return e.print(null,t.name)},t,e,",")},e.prototype.getBuiltinMethodName=function(t){var e;switch(t){case hl.ConcatArray:e="concat";break;case hl.SubscribeObservable:e="subscribe";break;case hl.Bind:e="bind";break;default:throw new Error("Unknown builtin method: "+t)}return e},e}(yp),Zh=function(t){function e(){var e=t.apply(this,arguments)||this;return e._evalArgNames=[],e._evalArgValues=[],e}return zr(e,t),e.prototype.getArgs=function(){for(var t={},e=0;e<this._evalArgNames.length;e++)t[this._evalArgNames[e]]=this._evalArgValues[e];return t},e.prototype.visitExternalExpr=function(t,e){var n=t.value.reference,r=this._evalArgValues.indexOf(n);if(-1===r){r=this._evalArgValues.length,this._evalArgValues.push(n);var i=g(t.value)||"val";this._evalArgNames.push("jit_"+i+r)}return e.print(t,this._evalArgNames[r]),null},e}($h),Yh=function(){function t(t,e,n,r,i,o,s,a){this._injector=t,this._metadataResolver=e,this._templateParser=n,this._styleCompiler=r,this._viewCompiler=i,this._ngModuleCompiler=o,this._compilerConfig=s,this._console=a,this._compiledTemplateCache=new Map,this._compiledHostTemplateCache=new Map,this._compiledDirectiveWrapperCache=new Map,this._compiledNgModuleCache=new Map,this._sharedStylesheetCount=0}return Object.defineProperty(t.prototype,"injector",{get:function(){return this._injector},enumerable:!0,configurable:!0}),t.prototype.compileModuleSync=function(t){return this._compileModuleAndComponents(t,!0).syncResult},t.prototype.compileModuleAsync=function(t){return this._compileModuleAndComponents(t,!1).asyncResult},t.prototype.compileModuleAndAllComponentsSync=function(t){return this._compileModuleAndAllComponents(t,!0).syncResult},t.prototype.compileModuleAndAllComponentsAsync=function(t){return this._compileModuleAndAllComponents(t,!1).asyncResult},t.prototype.getNgContentSelectors=function(t){this._console.warn("Compiler.getNgContentSelectors is deprecated. Use ComponentFactory.ngContentSelectors instead!");var n=this._compiledTemplateCache.get(t);if(!n)throw new Error("The component "+e.ɵstringify(t)+" is not yet compiled!");return n.compMeta.template.ngContentSelectors},t.prototype._compileModuleAndComponents=function(t,e){var n=this,r=this._loadModules(t,e),i=function(){return n._compileComponents(t,null),n._compileModule(t)};return e?new Ei(i()):new Ei(null,r.then(i))},t.prototype._compileModuleAndAllComponents=function(t,n){var r=this,i=this._loadModules(t,n),o=function(){var n=[];return r._compileComponents(t,n),new e.ModuleWithComponentFactories(r._compileModule(t),n)};return n?new Ei(o()):new Ei(null,i.then(o))},t.prototype._loadModules=function(t,e){var n=this,r=[],i=this._metadataResolver.getNgModuleMetadata(t);return i.transitiveModule.modules.forEach(function(t){r.push(n._metadataResolver.loadNgModuleDirectiveAndPipeMetadata(t.reference,e))}),Promise.all(r)},t.prototype._compileModule=function(t){var n=this,r=this._compiledNgModuleCache.get(t);if(!r){var i=this._metadataResolver.getNgModuleMetadata(t),o=[this._metadataResolver.getProviderMetadata(new Wi(e.Compiler,{useFactory:function(){return new tf(n,i.type.reference)}}))],s=this._ngModuleCompiler.compile(i,o);r=this._compilerConfig.useJit?Fr(I(i),s.statements,[s.ngModuleFactoryVar])[0]:Ir(s.statements,[s.ngModuleFactoryVar])[0],this._compiledNgModuleCache.set(i.type.reference,r)}return r},t.prototype._compileComponents=function(t,e){var n=this,r=this._metadataResolver.getNgModuleMetadata(t),i=new Map,o=new Set;r.transitiveModule.modules.forEach(function(t){var r=n._metadataResolver.getNgModuleMetadata(t.reference);r.declaredDirectives.forEach(function(t){i.set(t.reference,r);var s=n._metadataResolver.getDirectiveMetadata(t.reference);if(s.isComponent&&(o.add(n._createCompiledTemplate(s,r)),e)){var a=n._createCompiledHostTemplate(s.type.reference,r);o.add(a),e.push(s.componentFactory)}})}),r.transitiveModule.modules.forEach(function(t){var e=n._metadataResolver.getNgModuleMetadata(t.reference);e.declaredDirectives.forEach(function(t){var e=n._metadataResolver.getDirectiveMetadata(t.reference);e.isComponent&&e.entryComponents.forEach(function(t){var e=i.get(t.componentType);o.add(n._createCompiledHostTemplate(t.componentType,e))})}),e.entryComponents.forEach(function(t){var e=i.get(t.componentType);o.add(n._createCompiledHostTemplate(t.componentType,e))})}),o.forEach(function(t){return n._compileTemplate(t)})},t.prototype.clearCacheFor=function(t){this._compiledNgModuleCache["delete"](t),this._metadataResolver.clearCacheFor(t),this._compiledHostTemplateCache["delete"](t);var e=this._compiledTemplateCache.get(t);e&&this._compiledTemplateCache["delete"](t)},t.prototype.clearCache=function(){this._metadataResolver.clearCache(),this._compiledTemplateCache.clear(),this._compiledHostTemplateCache.clear(),this._compiledNgModuleCache.clear()},t.prototype._createCompiledHostTemplate=function(t,n){if(!n)throw new Error("Component "+e.ɵstringify(t)+" is not part of any NgModule or the module has not been imported into your module.");var r=this._compiledHostTemplateCache.get(t);if(!r){var i=this._metadataResolver.getDirectiveMetadata(t);Vr(i);var o=i.componentFactory,s=this._metadataResolver.getHostComponentType(t),a=P(s,i,e.ɵgetComponentViewDefinitionFactory(o));r=new Jh(!0,i.type,a,n,[i.type]),this._compiledHostTemplateCache.set(t,r)}return r},t.prototype._createCompiledTemplate=function(t,e){var n=this._compiledTemplateCache.get(t.type.reference);return n||(Vr(t),n=new Jh(!1,t.type,t,e,e.transitiveModule.directives),this._compiledTemplateCache.set(t.type.reference,n)),n},t.prototype._compileTemplate=function(t){var e=this;if(!t.isCompiled){var n=t.compMeta,r=new Map,i=this._styleCompiler.compileComponent(n);i.externalStylesheets.forEach(function(t){r.set(t.meta.moduleUrl,t)}),this._resolveStylesCompileResult(i.componentStylesheet,r);var o,s,a=t.directives.map(function(t){return e._metadataResolver.getDirectiveSummary(t.reference)}),u=t.ngModule.transitiveModule.pipes.map(function(t){return e._metadataResolver.getPipeSummary(t.reference)}),c=this._templateParser.parse(n,n.template.template,a,u,t.ngModule.schemas,R(t.ngModule.type,t.compMeta,t.compMeta.template)),l=c.template,p=c.pipes,h=this._viewCompiler.compileComponent(n,l,pn(i.componentStylesheet.stylesVar),p),f=i.componentStylesheet.statements.concat(h.statements),d=n.isHost?[h.viewClassVar]:[h.viewClassVar,h.rendererTypeVar];this._compilerConfig.useJit?(m=Fr(N(t.ngModule.type,t.compMeta),f,d),o=m[0],s=m[1]):(v=Ir(f,d),o=v[0],s=v[1]),t.compiled(o,s);var v,m}},t.prototype._resolveStylesCompileResult=function(t,e){var n=this;t.dependencies.forEach(function(t){var r=e.get(t.moduleUrl),i=n._resolveAndEvalStylesCompileResult(r,e);t.valuePlaceholder.reference=i})},t.prototype._resolveAndEvalStylesCompileResult=function(t,e){return this._resolveStylesCompileResult(t,e),this._compilerConfig.useJit?Fr(k(t.meta,this._sharedStylesheetCount++),t.statements,[t.stylesVar])[0]:Ir(t.statements,[t.stylesVar])[0]},t}();Yh.decorators=[{type:V}],Yh.ctorParameters=function(){return[{type:e.Injector},{type:Kc},{type:xc},{type:uh},{type:Eh},{type:np},{type:Gi},{type:e.ɵConsole}]};var Jh=function(){function t(t,e,n,r,i){this.isHost=t,this.compType=e,this.compMeta=n,this.ngModule=r,this.directives=i,this._viewClass=null,this.isCompiled=!1}return t.prototype.compiled=function(t,e){this._viewClass=t,this.compMeta.componentViewType.setDelegate(t);for(var n in e)this.compMeta.rendererType[n]=e[n];this.isCompiled=!0},t}(),tf=function(){function t(t,e){ -this._delegate=t,this._ngModule=e}return Object.defineProperty(t.prototype,"_injector",{get:function(){return this._delegate.injector},enumerable:!0,configurable:!0}),t.prototype.compileModuleSync=function(t){return this._delegate.compileModuleSync(t)},t.prototype.compileModuleAsync=function(t){return this._delegate.compileModuleAsync(t)},t.prototype.compileModuleAndAllComponentsSync=function(t){return this._delegate.compileModuleAndAllComponentsSync(t)},t.prototype.compileModuleAndAllComponentsAsync=function(t){return this._delegate.compileModuleAndAllComponentsAsync(t)},t.prototype.getNgContentSelectors=function(t){return this._delegate.getNgContentSelectors(t)},t.prototype.clearCache=function(){this._delegate.clearCache()},t.prototype.clearCacheFor=function(t){this._delegate.clearCacheFor(t)},t}(),ef=function(){function t(t,e,n,r){void 0===r&&(r=null),this._htmlParser=t,this._implicitTags=e,this._implicitAttrs=n,this._locale=r,this._messages=[]}return t.prototype.updateFromTemplate=function(t,e,n){var r=this._htmlParser.parse(t,e,!0,n);if(r.errors.length)return r.errors;var i=Et(r.rootNodes,n,this._implicitTags,this._implicitAttrs);if(i.errors.length)return i.errors;(o=this._messages).push.apply(o,i.messages);var o},t.prototype.getMessages=function(){return this._messages},t.prototype.write=function(t){var e={},n=new nf;this._messages.forEach(function(n){var r=t.digest(n);e.hasOwnProperty(r)||(e[r]=n)});var r=Object.keys(e).map(function(r){var i=t.createNameMapper(e[r]),o=e[r],s=i?n.convert(o.nodes,i):o.nodes;return new ia(s,{},{},o.meaning,o.description,r)});return t.write(r,this._locale)},t}(),nf=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return zr(e,t),e.prototype.convert=function(t,e){var n=this;return e?t.map(function(t){return t.visit(n,e)}):t},e.prototype.visitTagPlaceholder=function(t,e){var n=this,r=e.toPublicName(t.startName),i=t.closeName?e.toPublicName(t.closeName):t.closeName,o=t.children.map(function(t){return t.visit(n,e)});return new ua(t.tag,t.attrs,r,i,o,t.isVoid,t.sourceSpan)},e.prototype.visitPlaceholder=function(t,e){return new ca(t.value,e.toPublicName(t.name),t.sourceSpan)},e.prototype.visitIcuPlaceholder=function(t,e){return new la(t.value,e.toPublicName(t.name),t.sourceSpan)},e}(pa),rf=function(){function t(t,e,n,r){this.host=t,this.staticSymbolResolver=e,this.messageBundle=n,this.metadataResolver=r}return t.prototype.extract=function(t){var e=this,n=Er(this.staticSymbolResolver,t,this.host),r=br(n,this.host,this.metadataResolver),i=r.files,o=r.ngModules;return Promise.all(o.map(function(t){return e.metadataResolver.loadNgModuleDirectiveAndPipeMetadata(t.type.reference,!1)})).then(function(){var t=[];if(i.forEach(function(n){var r=[];n.directives.forEach(function(t){var n=e.metadataResolver.getDirectiveMetadata(t);n&&n.isComponent&&r.push(n)}),r.forEach(function(r){var i=r.template.template,o=Cs.fromArray(r.template.interpolation);t.push.apply(t,e.messageBundle.updateFromTemplate(i,n.srcUrl,o))})}),t.length)throw new Error(t.map(function(t){return t.toString()}).join("\n"));return e.messageBundle})},t.create=function(n,r){var i=new _u(new mu),o=De(),s=new ui,a=new zh(n,s),u=new qh(n,s,a),c=new Fh(u);Nh.install(c);var l=new Gi({defaultEncapsulation:e.ViewEncapsulation.Emulated,useJit:!1}),p=new jc({get:function(t){return n.loadResource(t)}},o,i,l),h=new Ap,f=new Kc(l,new qc(c),new Uc(c),new zc(c),a,h,p,new e.ɵConsole,s,c),d=new ef(i,[],{},r),v=new t(n,u,d,f);return{extractor:v,staticReflector:c}},t}(),of={get:function(t){throw new Error("No ResourceLoader implementation has been provided. Can't read the url \""+t+'"')}},sf=new e.InjectionToken("HtmlParser"),af=[{provide:e.ɵReflector,useValue:e.ɵreflector},{provide:e.ɵReflectorReader,useExisting:e.ɵReflector},{provide:kc,useValue:of},Wc,e.ɵConsole,Ps,Is,{provide:sf,useClass:mu},{provide:_u,useFactory:function(t,e,n,r,i){return new _u(t,e,n,r.missingTranslation,i)},deps:[sf,[new e.Optional,new e.Inject(e.TRANSLATIONS)],[new e.Optional,new e.Inject(e.TRANSLATIONS_FORMAT)],[Gi],[e.ɵConsole]]},{provide:mu,useExisting:_u},xc,jc,Kc,Ic,uh,Eh,np,{provide:Gi,useValue:new Gi},Yh,{provide:e.Compiler,useExisting:Yh},Ap,{provide:Mu,useExisting:Ap},Nc,Uc,zc,qc],uf=function(){function t(t){var n={useDebug:e.isDevMode(),useJit:!0,defaultEncapsulation:e.ViewEncapsulation.Emulated,missingTranslation:e.MissingTranslationStrategy.Warning,enableLegacyTemplate:!0};this._defaultOptions=[n].concat(t)}return t.prototype.createCompiler=function(t){void 0===t&&(t=[]);var n=Br(this._defaultOptions.concat(t)),r=e.ReflectiveInjector.resolveAndCreate([af,{provide:Gi,useFactory:function(){return new Gi({useJit:n.useJit,defaultEncapsulation:n.defaultEncapsulation,missingTranslation:n.missingTranslation,enableLegacyTemplate:n.enableLegacyTemplate})},deps:[]},n.providers]);return r.get(e.Compiler)},t}();uf.decorators=[{type:V}],uf.ctorParameters=function(){return[{type:Array,decorators:[{type:e.Inject,args:[e.COMPILER_OPTIONS]}]}]};var cf=e.createPlatformFactory(e.platformCore,"coreDynamic",[{provide:e.COMPILER_OPTIONS,useValue:{},multi:!0},{provide:e.CompilerFactory,useClass:uf},{provide:e.PLATFORM_INITIALIZER,useValue:Ur,multi:!0}]),lf=function(){function t(){}return t.prototype.fileNameToModuleName=function(){},t.prototype.getImportAs=function(){},t.prototype.getTypeArity=function(){},t}();t.VERSION=Wr,t.TEMPLATE_TRANSFORMS=Ec,t.CompilerConfig=Gi,t.JitCompiler=Yh,t.DirectiveResolver=Uc,t.PipeResolver=zc,t.NgModuleResolver=qc,t.DEFAULT_INTERPOLATION_CONFIG=Ss,t.InterpolationConfig=Cs,t.NgModuleCompiler=np,t.ViewCompiler=Eh,t.isSyntaxError=f,t.syntaxError=h,t.TextAst=Gr,t.BoundTextAst=Kr,t.AttrAst=Qr,t.BoundElementPropertyAst=Xr,t.BoundEventAst=$r,t.ReferenceAst=Zr,t.VariableAst=Yr,t.ElementAst=Jr,t.EmbeddedTemplateAst=ti,t.BoundDirectivePropertyAst=ei,t.DirectiveAst=ni,t.ProviderAst=ri,t.ProviderAstType=ii,t.NgContentAst=oi,t.PropertyBindingType=si,t.templateVisitAll=n,t.CompileAnimationEntryMetadata=Ti,t.CompileAnimationStateMetadata=Pi,t.CompileAnimationStateDeclarationMetadata=Ai,t.CompileAnimationStateTransitionMetadata=Oi,t.CompileAnimationMetadata=Mi,t.CompileAnimationKeyframesSequenceMetadata=Ri,t.CompileAnimationStyleMetadata=ki,t.CompileAnimationAnimateMetadata=Ii,t.CompileAnimationWithStepsMetadata=Ni,t.CompileAnimationSequenceMetadata=Di,t.CompileAnimationGroupMetadata=Li,t.identifierName=g,t.identifierModuleUrl=_,t.viewClassName=b,t.rendererTypeName=w,t.hostViewClassName=E,t.dirWrapperClassName=C,t.componentFactoryName=S,t.CompileSummaryKind=Fi,t.tokenName=x,t.tokenReference=T,t.CompileStylesheetMetadata=Vi,t.CompileTemplateMetadata=Ui,t.CompileDirectiveMetadata=Bi,t.createHostComponentMeta=P,t.CompilePipeMetadata=Hi,t.CompileNgModuleMetadata=qi,t.TransitiveCompileNgModuleMetadata=zi,t.ProviderMeta=Wi,t.flatten=O,t.sourceUrl=M,t.templateSourceUrl=R,t.sharedStylesheetJitUrl=k,t.ngModuleJitUrl=I,t.templateJitUrl=N,t.createAotCompiler=kr,t.AotCompiler=Ih,t.analyzeNgModules=_r,t.analyzeAndValidateNgModules=br,t.extractProgramSymbols=Er,t.GeneratedFile=Mh,t.StaticReflector=Fh,t.StaticAndDynamicReflectionCapabilities=Nh,t.StaticSymbol=ai,t.StaticSymbolCache=ui,t.ResolvedStaticSymbol=Bh,t.StaticSymbolResolver=qh,t.unescapeIdentifier=Rr,t.AotSummaryResolver=zh,t.SummaryResolver=Wc,t.COMPILER_PROVIDERS=af,t.JitCompilerFactory=uf,t.platformCoreDynamic=cf,t.createUrlResolverWithoutPackagePrefix=Ne,t.createOfflineCompileUrlResolver=De,t.DEFAULT_PACKAGE_URL_PROVIDER=Ic,t.UrlResolver=Nc,t.getUrlScheme=Le,t.ResourceLoader=kc,t.ElementSchemaRegistry=Mu,t.Extractor=rf,t.I18NHtmlParser=_u,t.MessageBundle=ef,t.Serializer=Na,t.Xliff=Ya,t.Xmb=au,t.Xtb=fu,t.DirectiveNormalizer=jc,t.ParserError=Ki,t.ParseSpan=Qi,t.AST=Xi,t.Quote=$i,t.EmptyExpr=Zi,t.ImplicitReceiver=Yi,t.Chain=Ji,t.Conditional=to,t.PropertyRead=eo,t.PropertyWrite=no,t.SafePropertyRead=ro,t.KeyedRead=io,t.KeyedWrite=oo,t.BindingPipe=so,t.LiteralPrimitive=ao,t.LiteralArray=uo,t.LiteralMap=co,t.Interpolation=lo,t.Binary=po,t.PrefixNot=ho,t.MethodCall=fo,t.SafeMethodCall=vo,t.FunctionCall=mo,t.ASTWithSource=yo,t.TemplateBinding=go,t.RecursiveAstVisitor=_o,t.AstTransformer=bo,t.TokenType=xs,t.Lexer=Ps,t.Token=As,t.EOF=Os,t.isIdentifier=$,t.isQuote=tt,t.SplitInterpolation=Rs,t.TemplateBindingParseResult=ks,t.Parser=Is,t._ParseAST=Ns,t.ERROR_COLLECTOR_TOKEN=Gc,t.CompileMetadataResolver=Kc,t.componentModuleUrl=rn,t.Text=Bs,t.Expansion=Hs,t.ExpansionCase=qs,t.Attribute=zs,t.Element=Ws,t.Comment=Gs,t.visitAll=ot,t.ParseTreeResult=ea,t.TreeError=ta,t.HtmlParser=mu,t.HtmlTagDefinition=pi,t.getHtmlTagDefinition=s,t.TagContentType=ci,t.splitNsName=r,t.getNsPrefix=i,t.mergeNsAndName=o,t.NAMED_ENTITIES=li,t.ImportResolver=lf,t.debugOutputAstAsTypeScript=On,t.TypeScriptEmitter=_p,t.ParseLocation=Ls,t.ParseSourceFile=js,t.ParseSourceSpan=Fs,t.ParseErrorLevel=Vs,t.ParseError=Us,t.typeSourceSpan=it,t.DomElementSchemaRegistry=Ap,t.CssSelector=vi,t.SelectorMatcher=mi,t.SelectorListContext=yi,t.SelectorContext=gi,t.StylesCompileDependency=oh,t.StylesCompileResult=sh,t.CompiledStylesheet=ah,t.StyleCompiler=uh,t.TemplateParseError=Cc,t.TemplateParseResult=Sc,t.TemplateParser=xc,t.splitClasses=Ae,t.createElementCssSelector=Oe,t.removeSummaryDuplicates=Re,Object.defineProperty(t,"__esModule",{value:!0})})},{"@angular/core":8}],8:[function(e,n,r){(function(i){!function(i,o){"object"==typeof r&&"undefined"!=typeof n?o(r,e("rxjs/Observable"),e("rxjs/observable/merge"),e("rxjs/operator/share"),e("rxjs/Subject")):"function"==typeof t&&t.amd?t(["exports","rxjs/Observable","rxjs/observable/merge","rxjs/operator/share","rxjs/Subject"],o):o((i.ng=i.ng||{},i.ng.core=i.ng.core||{}),i.Rx,i.Rx.Observable,i.Rx.Observable.prototype,i.Rx)}(this,function(t,e,n,r,o){"use strict";function s(){if(!ii){var t=ri.Symbol;if(t&&t.iterator)ii=t.iterator;else for(var e=Object.getOwnPropertyNames(Map.prototype),n=0;n<e.length;++n){var r=e[n];"entries"!==r&&"size"!==r&&Map.prototype[r]===Map.prototype.entries&&(ii=r)}}return ii}function a(t){Zone.current.scheduleMicroTask("scheduleMicrotask",t)}function u(t,e){return t===e||"number"==typeof t&&"number"==typeof e&&isNaN(t)&&isNaN(e)}function c(t){if("string"==typeof t)return t;if(null==t)return""+t;if(t.overriddenName)return""+t.overriddenName;if(t.name)return""+t.name;var e=t.toString();if(null==e)return""+e;var n=e.indexOf("\n");return-1===n?e:e.substring(0,n)}function l(t){return"function"==typeof t&&t.hasOwnProperty("annotation")&&(t=t.annotation),t}function p(t,e){if(t===Object||t===String||t===Function||t===Number||t===Array)throw new Error("Can not use native "+c(t)+" as constructor");if("function"==typeof t)return t;if(Array.isArray(t)){var n=t,r=n.length-1,i=t[r];if("function"!=typeof i)throw new Error("Last position of Class method array must be Function in key "+e+" was '"+c(i)+"'");if(r!=i.length)throw new Error("Number of annotations ("+r+") does not match number of arguments ("+i.length+") in the function: "+c(i));for(var o=[],s=0,a=n.length-1;a>s;s++){var u=[];o.push(u);var p=n[s];if(Array.isArray(p))for(var h=0;h<p.length;h++)u.push(l(p[h]));else u.push("function"==typeof p?l(p):p)}return si.defineMetadata("parameters",o,i),i}throw new Error("Only Function or Array is supported in Class definition for key '"+e+"' is '"+c(t)+"'")}function h(t){var e=p(t.hasOwnProperty("constructor")?t.constructor:void 0,"constructor"),n=e.prototype;if(t.hasOwnProperty("extends")){if("function"!=typeof t["extends"])throw new Error("Class definition 'extends' property must be a constructor function was: "+c(t["extends"]));e.prototype=n=Object.create(t["extends"].prototype)}for(var r in t)"extends"!==r&&"prototype"!==r&&t.hasOwnProperty(r)&&(n[r]=p(t[r],r));this&&this.annotations instanceof Array&&si.defineMetadata("annotations",this.annotations,e);var i=e.name;return i&&"constructor"!==i||(e.overriddenName="class"+oi++),e}function f(t,e,n,r){function i(t){if(!si||!si.getOwnMetadata)throw"reflect-metadata shim is required when using class decorators";if(this instanceof i)return o.call(this,t),this;var e=new i(t),n="function"==typeof this&&Array.isArray(this.annotations)?this.annotations:[];n.push(e);var s=function(t){var n=si.getOwnMetadata("annotations",t)||[];return n.push(e),si.defineMetadata("annotations",n,t),t};return s.annotations=n,s.Class=h,r&&r(s),s}var o=d([e]);return n&&(i.prototype=Object.create(n.prototype)),i.prototype.toString=function(){return"@"+t},i.annotationCls=i,i}function d(t){return function(){for(var e=this,n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];t.forEach(function(t,r){var i=n[r];if(Array.isArray(t))e[t[0]]=void 0===i?t[1]:i;else for(var o in t)e[o]=i&&i.hasOwnProperty(o)?i[o]:t[o]})}}function v(t,e,n){function r(){function t(t,e,n){for(var r=si.getOwnMetadata("parameters",t)||[];r.length<=n;)r.push(null);return r[n]=r[n]||[],r[n].push(o),si.defineMetadata("parameters",r,t),t}for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];if(this instanceof r)return i.apply(this,e),this;var o=new(r.bind.apply(r,[void 0].concat(e)));return t.annotation=o,t}var i=d(e);return n&&(r.prototype=Object.create(n.prototype)),r.prototype.toString=function(){return"@"+t},r.annotationCls=r,r}function m(t,e,n){function r(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];if(this instanceof r)return i.apply(this,t),this;var n=new(r.bind.apply(r,[void 0].concat(t)));return function(t,e){var r=si.getOwnMetadata("propMetadata",t.constructor)||{};r[e]=r.hasOwnProperty(e)&&r[e]||[],r[e].unshift(n),si.defineMetadata("propMetadata",r,t.constructor)}}var i=d(e);return n&&(r.prototype=Object.create(n.prototype)),r.prototype.toString=function(){return"@"+t},r.annotationCls=r,r}function y(t){return null==t||t===di.Default}function g(t){return t.__forward_ref__=g,t.toString=function(){return c(this())},t}function _(t){return"function"==typeof t&&t.hasOwnProperty("__forward_ref__")&&t.__forward_ref__===g?t():t}function b(t){return t[Bi]}function w(t){return t[Hi]}function E(t){return t[qi]||C}function C(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];t.error.apply(t,e)}function S(t,e){var n=t+" caused by: "+(e instanceof Error?e.message:e),r=Error(n);return r[Hi]=e,r}function x(t){for(var e=[],n=0;n<t.length;++n){if(e.indexOf(t[n])>-1)return e.push(t[n]),e;e.push(t[n])}return e}function T(t){if(t.length>1){var e=x(t.slice().reverse()),n=e.map(function(t){return c(t.token)});return" ("+n.join(" -> ")+")"}return""}function P(t,e,n,r){var i=r?S("",r):Error();return i.addKey=A,i.keys=[e],i.injectors=[t],i.constructResolvingMessage=n,i.message=i.constructResolvingMessage(),i[Hi]=r,i}function A(t,e){this.injectors.push(t),this.keys.push(e),this.message=this.constructResolvingMessage()}function O(t,e){return P(t,e,function(){var t=c(this.keys[0].token);return"No provider for "+t+"!"+T(this.keys)})}function M(t,e){return P(t,e,function(){return"Cannot instantiate cyclic dependency!"+T(this.keys)})}function R(t,e,n,r){return P(t,r,function(){var t=c(this.keys[0].token);return w(this).message+": Error during instantiation of "+t+"!"+T(this.keys)+"."},e)}function k(t){return Error("Invalid provider - only instances of Provider and Type are allowed, got: "+t)}function I(t,e){for(var n=[],r=0,i=e.length;i>r;r++){var o=e[r];n.push(o&&0!=o.length?o.map(c).join(" "):"?")}return Error("Cannot resolve all parameters for '"+c(t)+"'("+n.join(", ")+"). Make sure that all the parameters are decorated with Inject or have valid type annotations and that '"+c(t)+"' is decorated with Injectable.")}function N(t){return Error("Index "+t+" is out-of-bounds.")}function D(t,e){return Error("Cannot mix multi providers and regular providers, got: "+t+" "+e)}function L(t){return"function"==typeof t}function j(t){return t?t.map(function(t){var e=t.type,n=e.annotationCls,r=t.args?t.args:[];return new(n.bind.apply(n,[void 0].concat(r)))}):[]}function F(t){var e=Object.getPrototypeOf(t.prototype),n=e?e.constructor:null;return n||Object}function V(t){var e,n;if(t.useClass){var r=_(t.useClass);e=Ji.factory(r),n=W(r)}else t.useExisting?(e=function(t){return t},n=[to.fromKey(Wi.get(t.useExisting))]):t.useFactory?(e=t.useFactory,n=z(t.useFactory,t.deps)):(e=function(){return t.useValue},n=eo);return new ro(e,n)}function U(t){return new no(Wi.get(t.provide),[V(t)],t.multi||!1)}function B(t){var e=q(t,[]),n=e.map(U),r=H(n,new Map);return Array.from(r.values())}function H(t,e){for(var n=0;n<t.length;n++){var r=t[n],i=e.get(r.key.id);if(i){if(r.multiProvider!==i.multiProvider)throw D(i,r);if(r.multiProvider)for(var o=0;o<r.resolvedFactories.length;o++)i.resolvedFactories.push(r.resolvedFactories[o]);else e.set(r.key.id,r)}else{var s=void 0;s=r.multiProvider?new no(r.key,r.resolvedFactories.slice(),r.multiProvider):r,e.set(r.key.id,s)}}return e}function q(t,e){return t.forEach(function(t){if(t instanceof Qi)e.push({provide:t,useClass:t});else if(t&&"object"==typeof t&&void 0!==t.provide)e.push(t);else{if(!(t instanceof Array))throw k(t);q(t,e)}}),e}function z(t,e){if(e){var n=e.map(function(t){return[t]});return e.map(function(e){return G(t,e,n)})}return W(t)}function W(t){var e=Ji.parameters(t);if(!e)return[];if(e.some(function(t){return null==t}))throw I(t,e);return e.map(function(n){return G(t,n,e)})}function G(t,e,n){var r=null,i=!1;if(!Array.isArray(e))return e instanceof Mi?K(e.token,i,null):K(e,i,null);for(var o=null,s=0;s<e.length;++s){var a=e[s];a instanceof Qi?r=a:a instanceof Mi?r=a.token:a instanceof Ri?i=!0:a instanceof Ii||a instanceof Ni?o=a:a instanceof Jr&&(r=a)}if(r=_(r),null!=r)return K(r,i,o);throw I(t,n)}function K(t,e,n){return new to(Wi.get(t),e,n)}function Q(t,e){for(var n=new Array(t._providers.length),r=0;r<t._providers.length;++r)n[r]=e(t.getProviderAtIndex(r));return n}function X(t){return!!t&&"function"==typeof t.then}function $(t){return!!t&&"function"==typeof t.subscribe}function Z(){return""+Y()+Y()+Y()}function Y(){return String.fromCharCode(97+Math.floor(25*Math.random()))}function J(){throw new Error("Runtime compiler is not loaded")}function tt(t){var e=Error("No component factory found for "+c(t)+". Did you add it to @NgModule.entryComponents?");return e[So]=t,e}function et(){var t=ri.wtf;return t&&(Po=t.trace)?(Ao=Po.events,!0):!1}function nt(t,e){return void 0===e&&(e=null),Ao.createScope(t,e)}function rt(t,e){return Po.leaveScope(t,e),e}function it(t,e){return Po.beginTimeRange(t,e)}function ot(t){Po.endTimeRange(t)}function st(){return null}function at(t){Go=t}function ut(){if(Qo)throw new Error("Cannot enable prod mode after platform setup.");Ko=!1}function ct(){return Qo=!0,Ko}function lt(t){if(zo&&!zo.destroyed&&!zo.injector.get(Xo,!1))throw new Error("There can be only one platform. Destroy the previous one to create a new one.");zo=t.get(Zo);var e=t.get(ho,null);return e&&e.forEach(function(t){return t()}),zo}function pt(t,e,n){void 0===n&&(n=[]);var r=new Jr("Platform: "+e);return function(e){void 0===e&&(e=[]);var i=dt();return(!i||i.injector.get(Xo,!1))&&(t?t(n.concat(e).concat({provide:r,useValue:!0})):lt(oo.resolveAndCreate(n.concat(e).concat({provide:r,useValue:!0})))),ht(r)}}function ht(t){var e=dt();if(!e)throw new Error("No platform exists!");if(!e.injector.get(t,null))throw new Error("A platform with a different configuration has been created. Please destroy it first.");return e}function ft(){zo&&!zo.destroyed&&zo.destroy()}function dt(){return zo&&!zo.destroyed?zo:null}function vt(t,e){try{var n=e();return X(n)?n["catch"](function(e){throw t.handleError(e),e}):n}catch(r){throw t.handleError(r),r}}function mt(t,e){var n=t.indexOf(e);n>-1&&t.splice(n,1)}function yt(t,e){var n=ls.get(t);if(n)throw new Error("Duplicate module registered for "+t+" - "+n.moduleType.name+" vs "+e.moduleType.name);ls.set(t,e)}function gt(t){var e=ls.get(t);if(!e)throw new Error("No module with ID "+t+" loaded");return e}function _t(t){return t.reduce(function(t,e){var n=Array.isArray(e)?_t(e):e;return t.concat(n)},[])}function bt(t,e,n){if(!t)throw new Error("Cannot find '"+n+"' in '"+e+"'");return t}function wt(t){return t.map(function(t){return t.nativeElement})}function Et(t,e,n){t.childNodes.forEach(function(t){t instanceof Ss&&(e(t)&&n.push(t),Et(t,e,n))})}function Ct(t,e,n){t instanceof Ss&&t.childNodes.forEach(function(t){e(t)&&n.push(t),t instanceof Ss&&Ct(t,e,n)})}function St(t){return xs.get(t)||null}function xt(t){xs.set(t.nativeNode,t)}function Tt(t){xs["delete"](t.nativeNode)}function Pt(t,e){var n=At(t),r=At(e);if(n&&r)return Ot(t,e,Pt);var i=t&&("object"==typeof t||"function"==typeof t),o=e&&("object"==typeof e||"function"==typeof e);return!n&&i&&!r&&o?!0:u(t,e)}function At(t){return Rt(t)?Array.isArray(t)||!(t instanceof Map)&&s()in t:!1}function Ot(t,e,n){for(var r=t[s()](),i=e[s()]();;){var o=r.next(),a=i.next();if(o.done&&a.done)return!0;if(o.done||a.done)return!1;if(!n(o.value,a.value))return!1}}function Mt(t,e){if(Array.isArray(t))for(var n=0;n<t.length;n++)e(t[n]);else for(var r=t[s()](),i=void 0;!(i=r.next()).done;)e(i.value)}function Rt(t){return null!==t&&("function"==typeof t||"object"==typeof t)}function kt(t,e,n){var r=t.previousIndex;if(null===r)return r;var i=0;return n&&r<n.length&&(i=n[r]),r+e+i}function It(t){return t.name||typeof t}function Nt(){return Ji}function Dt(t,e){return t.nodes[e]}function Lt(t,e){return t.nodes[e]}function jt(t,e){return t.nodes[e]}function Ft(t,e){return t.nodes[e]}function Vt(t,e){return t.nodes[e]}function Ut(t,e,n,r){var i="ExpressionChangedAfterItHasBeenCheckedError: Expression has changed after it was checked. Previous value: '"+e+"'. Current value: '"+n+"'.";return r&&(i+=" It seems like the view has been created after its parent and its children have been dirty checked. Has it been created in a change detection hook ?"),Ht(i,t)}function Bt(t,e){return t instanceof Error||(t=new Error(t.toString())),qt(t,e),t}function Ht(t,e){var n=new Error(t);return qt(n,e),n}function qt(t,e){t[Bi]=e,t[qi]=e.logError.bind(e)}function zt(t){return!!b(t)}function Wt(t){return new Error("ViewDestroyedError: Attempt to use a destroyed view: "+t)}function Gt(t){var e=ea.get(t);return e||(e=c(t)+"_"+ea.size,ea.set(t,e)),e}function Kt(t,e,n,r){if(r instanceof Ts){r=r.wrapped;var i=t.def.nodes[e].bindingIndex+n,o=t.oldValues[i];o instanceof Ts&&(o=o.wrapped),t.oldValues[i]=new Ts(o)}return r}function Qt(t){return{id:na,styles:t.styles,encapsulation:t.encapsulation,data:t.data}}function Xt(t){if(t&&t.id===na){var e=null!=t.encapsulation&&t.encapsulation!==Ti.None||t.styles.length||Object.keys(t.data).length;t.id=e?"c"+ia++:ra}return t&&t.id===ra&&(t=null),t||null}function $t(t,e,n,r){var i=t.oldValues;return 1&t.state||!u(i[e.bindingIndex+n],r)?!0:!1}function Zt(t,e,n,r){return $t(t,e,n,r)?(t.oldValues[e.bindingIndex+n]=r,!0):!1}function Yt(t,e,n,r){var i=t.oldValues[e.bindingIndex+n];if(1&t.state||!Pt(i,r))throw Ut(Js.createDebugContext(t,e.index),i,r,0!==(1&t.state))}function Jt(t){for(var e=t;e;)2&e.def.flags&&(e.state|=2),e=e.viewContainerParent||e.parent}function te(t,e,n,r){var i=t.def.nodes[e],o=16777216&i.flags?Lt(t,e).componentView:t;return Jt(o),Js.handleEvent(t,e,n,r)}function ee(t){if(t.parent){var e=t.parent;return Lt(e,t.parentNodeDef.index)}return null}function ne(t){var e=t.parent;return e?t.parentNodeDef.parent:null}function re(t,e){switch(100673535&e.flags){case 1:return Lt(t,e.index).renderElement;case 2:return Dt(t,e.index).renderText}}function ie(t,e){return t?t+":"+e:e}function oe(t){return!!t.parent&&!!(16384&t.parentNodeDef.flags)}function se(t){return!(!t.parent||16384&t.parentNodeDef.flags)}function ae(t){return 1<<t%32}function ue(t){var e={},n=0,r={};return t&&t.forEach(function(t){var i=t[0],o=t[1];"number"==typeof i?(e[i]=o,n|=ae(i)):r[i]=o}),{matchedQueries:e,references:r,matchedQueryIds:n}}function ce(t,e,n){var r=n.renderParent;return r?0===(1&r.flags)||0===(16777216&r.flags)||r.element.componentRendererType&&r.element.componentRendererType.encapsulation===Ti.Native?Lt(t,n.renderParent.index).renderElement:void 0:e}function le(t){var e=oa.get(t);return e||(e=t(function(){return ta}),e.factory=t,oa.set(t,e)),e}function pe(t){var e=[];return he(t,0,void 0,void 0,e),e}function he(t,e,n,r,i){3===e&&(n=t.renderer.parentNode(re(t,t.def.lastRenderRootNode))),fe(t,e,0,t.def.nodes.length-1,n,r,i)}function fe(t,e,n,r,i,o,s){for(var a=n;r>=a;a++){var u=t.def.nodes[a];7&u.flags&&ve(t,u,e,i,o,s),a+=u.childCount}}function de(t,e,n,r,i,o){for(var s=t;s&&!oe(s);)s=s.parent;for(var a=s.parent,u=ne(s),c=u.index+1,l=u.index+u.childCount,p=c;l>=p;p++){var h=a.def.nodes[p];h.ngContentIndex===e&&ve(a,h,n,r,i,o),p+=h.childCount}if(!a.parent){var f=t.root.projectableNodes[e];if(f)for(var p=0;p<f.length;p++)me(t,f[p],n,r,i,o)}}function ve(t,e,n,r,i,o){if(4&e.flags)de(t,e.ngContent.index,n,r,i,o);else{var s=re(t,e);if(3===n&&16777216&e.flags&&48&e.bindingFlags){if(16&e.bindingFlags&&me(t,s,n,r,i,o),32&e.bindingFlags){var a=Lt(t,e.index).componentView;me(a,s,n,r,i,o)}}else me(t,s,n,r,i,o);if(8388608&e.flags)for(var u=Lt(t,e.index).viewContainer._embeddedViews,c=0;c<u.length;c++)he(u[c],n,r,i,o);1&e.flags&&!e.element.name&&fe(t,n,e.index+1,e.index+e.childCount,r,i,o)}}function me(t,e,n,r,i,o){var s=t.renderer;switch(n){case 1:s.appendChild(r,e);break;case 2:s.insertBefore(r,e,i);break;case 3:s.removeChild(r,e);break;case 0:o.push(e)}}function ye(t){if(":"===t[0]){var e=t.match(sa);return[e[1],e[2]]}return["",t]}function ge(t){for(var e=0,n=0;n<t.length;n++)e|=t[n].flags;return e}function _e(t,e){for(var n="",r=0;2*t>r;r+=2)n=n+e[r]+we(e[r+1]);return n+e[2*t]}function be(t,e,n,r,i,o,s,a,u,c,l,p,h,f,d,v,m,y,g,_){switch(t){case 1:return e+we(n)+r;case 2:return e+we(n)+r+we(i)+o;case 3:return e+we(n)+r+we(i)+o+we(s)+a;case 4:return e+we(n)+r+we(i)+o+we(s)+a+we(u)+c;case 5:return e+we(n)+r+we(i)+o+we(s)+a+we(u)+c+we(l)+p;case 6:return e+we(n)+r+we(i)+o+we(s)+a+we(u)+c+we(l)+p+we(h)+f;case 7:return e+we(n)+r+we(i)+o+we(s)+a+we(u)+c+we(l)+p+we(h)+f+we(d)+v;case 8:return e+we(n)+r+we(i)+o+we(s)+a+we(u)+c+we(l)+p+we(h)+f+we(d)+v+we(m)+y;case 9:return e+we(n)+r+we(i)+o+we(s)+a+we(u)+c+we(l)+p+we(h)+f+we(d)+v+we(m)+y+we(g)+_;default:throw new Error("Does not support more than 9 expressions")}}function we(t){return null!=t?t.toString():""}function Ee(t,e,n,r,i,o){t|=1;var s=ue(e),a=s.matchedQueries,u=s.references,c=s.matchedQueryIds,l=o?le(o):null;return{index:-1,parent:null,renderParent:null,bindingIndex:-1,outputIndex:-1,flags:t,childFlags:0,directChildFlags:0,childMatchedQueries:0,matchedQueries:a,matchedQueryIds:c,references:u,ngContentIndex:n,childCount:r,bindings:[],bindingFlags:0,outputs:[],element:{ns:null,name:null,attrs:null,template:l,componentProvider:null,componentView:null,componentRendererType:null,publicProviders:null,allProviders:null,handleEvent:i||ta},provider:null,text:null,query:null,ngContent:null}}function Ce(t,e,n,r,i,o,s,a,u,c,l){void 0===o&&(o=[]),u||(u=ta);var p=ue(e),h=p.matchedQueries,f=p.references,d=p.matchedQueryIds,v=null,m=null;i&&(I=ye(i),v=I[0],m=I[1]),s=s||[];for(var y=new Array(s.length),g=0;g<s.length;g++){var _=s[g],b=_[0],w=_[1],E=_[2],C=ye(w),S=C[0],x=C[1],T=void 0,P=void 0;switch(15&b){case 4:P=E;break;case 1:case 8:T=E}y[g]={flags:b,ns:S,name:x,nonMinifiedName:x,securityContext:T,suffix:P}}a=a||[];for(var A=new Array(a.length),g=0;g<a.length;g++){var O=a[g],M=O[0],R=O[1];A[g]={type:0,target:M,eventName:R,propName:null}}o=o||[];var k=o.map(function(t){var e=t[0],n=t[1],r=ye(e),i=r[0],o=r[1];return[i,o,n]});return l=Xt(l),c&&(t|=16777216),t|=1,{index:-1,parent:null,renderParent:null,bindingIndex:-1,outputIndex:-1,flags:t,childFlags:0,directChildFlags:0,childMatchedQueries:0,matchedQueries:h,matchedQueryIds:d,references:f,ngContentIndex:n,childCount:r,bindings:y,bindingFlags:ge(y),outputs:A,element:{ns:v,name:m,attrs:k,template:null,componentProvider:null,componentView:c||null,componentRendererType:l,publicProviders:null,allProviders:null,handleEvent:u||ta},provider:null,text:null,query:null,ngContent:null};var I}function Se(t,e,n){var r,i=n.element,o=t.root.selectorOrNode,s=t.renderer;if(t.parent||!o){r=i.name?s.createElement(i.name,i.ns):s.createComment("");var a=ce(t,e,n);a&&s.appendChild(a,r)}else r=s.selectRootElement(o);if(i.attrs)for(var u=0;u<i.attrs.length;u++){var c=i.attrs[u],l=c[0],p=c[1],h=c[2];s.setAttribute(r,p,h,l)}return r}function xe(t,e,n,r){for(var i=0;i<n.outputs.length;i++){var o=n.outputs[i],s=Te(t,n.index,ie(o.target,o.eventName)),a=o.target,u=t;"component"===o.target&&(a=null,u=e);var c=u.renderer.listen(a||r,o.eventName,s);t.disposables[n.outputIndex+i]=c}}function Te(t,e,n){return function(r){return te(t,e,n,r)}}function Pe(t,e,n,r,i,o,s,a,u,c,l,p){var h=e.bindings.length,f=!1;return h>0&&Oe(t,e,0,n)&&(f=!0),h>1&&Oe(t,e,1,r)&&(f=!0),h>2&&Oe(t,e,2,i)&&(f=!0),h>3&&Oe(t,e,3,o)&&(f=!0),h>4&&Oe(t,e,4,s)&&(f=!0),h>5&&Oe(t,e,5,a)&&(f=!0),h>6&&Oe(t,e,6,u)&&(f=!0),h>7&&Oe(t,e,7,c)&&(f=!0),h>8&&Oe(t,e,8,l)&&(f=!0),h>9&&Oe(t,e,9,p)&&(f=!0),f}function Ae(t,e,n){for(var r=!1,i=0;i<n.length;i++)Oe(t,e,i,n[i])&&(r=!0);return r}function Oe(t,e,n,r){if(!Zt(t,e,n,r))return!1;var i=e.bindings[n],o=Lt(t,e.index),s=o.renderElement,a=i.name;switch(15&i.flags){case 1:Me(t,i,s,i.ns,a,r);break;case 2:Re(t,s,a,r);break;case 4:ke(t,i,s,a,r);break;case 8:var u=16777216&e.flags&&32&i.flags?o.componentView:t;Ie(u,i,s,a,r)}return!0}function Me(t,e,n,r,i,o){var s=e.securityContext,a=s?t.root.sanitizer.sanitize(s,o):o;a=null!=a?a.toString():null;var u=t.renderer;null!=o?u.setAttribute(n,i,a,r):u.removeAttribute(n,i,r)}function Re(t,e,n,r){var i=t.renderer;r?i.addClass(e,n):i.removeClass(e,n)}function ke(t,e,n,r,i){var o=t.root.sanitizer.sanitize($s.STYLE,i);if(null!=o){o=o.toString();var s=e.suffix;null!=s&&(o+=s)}else o=null;var a=t.renderer;null!=o?a.setStyle(n,r,o):a.removeStyle(n,r)}function Ie(t,e,n,r,i){var o=e.securityContext,s=o?t.root.sanitizer.sanitize(o,i):i;t.renderer.setProperty(n,r,s)}function Ne(t,e){return{index:-1,parent:null,renderParent:null,bindingIndex:-1,outputIndex:-1,flags:4,childFlags:0,directChildFlags:0,childMatchedQueries:0,matchedQueries:{},matchedQueryIds:0,references:{},ngContentIndex:t,childCount:0,bindings:[],bindingFlags:0,outputs:[],element:null,provider:null,text:null,query:null,ngContent:{index:e}}}function De(t,e,n){var r=ce(t,e,n);if(r){var i=n.ngContent.index;de(t,i,1,r,null,void 0)}}function Le(t,e,n,r){var i=e.viewContainer._embeddedViews;(null===n||void 0===n)&&(n=i.length),r.viewContainerParent=t,Be(i,n,r);var o=ee(r);if(o&&o!==e){var s=o.template._projectedViews;s||(s=o.template._projectedViews=[]),s.push(r)}Js.dirtyParentQueries(r);var a=n>0?i[n-1]:null;Ve(e,a,r)}function je(t,e){var n=t.viewContainer._embeddedViews;if((null==e||e>=n.length)&&(e=n.length-1),0>e)return null;var r=n[e];r.viewContainerParent=null,He(n,e);var i=ee(r);if(i&&i!==t){var o=i.template._projectedViews;He(o,o.indexOf(r))}return Js.dirtyParentQueries(r),Ue(r),r}function Fe(t,e,n){var r=t.viewContainer._embeddedViews,i=r[e];He(r,e),null==n&&(n=r.length),Be(r,n,i),Js.dirtyParentQueries(i),Ue(i);var o=n>0?r[n-1]:null;return Ve(t,o,i),i}function Ve(t,e,n){var r=e?re(e,e.def.lastRenderRootNode):t.renderElement,i=n.renderer.parentNode(r),o=n.renderer.nextSibling(r);he(n,2,i,o,void 0)}function Ue(t){he(t,3,null,null,void 0)}function Be(t,e,n){e>=t.length?t.push(n):t.splice(e,0,n)}function He(t,e){e>=t.length-1?t.pop():t.splice(e,1)}function qe(t,e,n,r,i,o){return new la(t,e,n,r,i,o)}function ze(t){return t.viewDefFactory}function We(t,e,n){return new ha(t,e,n)}function Ge(t){return new fa(t)}function Ke(t,e){return new da(t,e)}function Qe(t,e){return new va(t,e)}function Xe(t,e){var n=t.def.nodes[e];if(1&n.flags){var r=Lt(t,n.index);return n.element.template?r.template:r.renderElement}if(2&n.flags)return Dt(t,n.index).renderText;if(10120&n.flags)return jt(t,n.index).instance;throw new Error("Illegal state: read nodeValue for node index "+e)}function $e(t){return new ma(t.renderer)}function Ze(t,e,n,r,i,o,s){var a=[];if(o)for(var u in o){var c=o[u],l=c[0],p=c[1];a[l]={flags:8, -name:u,nonMinifiedName:p,ns:null,securityContext:null,suffix:null}}var h=[];if(s)for(var f in s)h.push({type:1,propName:f,target:null,eventName:s[f]});return t|=8192,tn(t,e,n,r,r,i,a,h)}function Ye(t,e,n){return t|=8,tn(t,null,0,e,e,n)}function Je(t,e,n,r,i){return tn(t,e,0,n,r,i)}function tn(t,e,n,r,i,o,s,a){var u=ue(e),c=u.matchedQueries,l=u.references,p=u.matchedQueryIds;a||(a=[]),s||(s=[]);var h=o.map(function(t){var e,n;return Array.isArray(t)?(n=t[0],e=t[1]):(n=0,e=t),{flags:n,token:e,tokenKey:Gt(e)}});return{index:-1,parent:null,renderParent:null,bindingIndex:-1,outputIndex:-1,flags:t,childFlags:0,directChildFlags:0,childMatchedQueries:0,matchedQueries:c,matchedQueryIds:p,references:l,ngContentIndex:-1,childCount:n,bindings:s,bindingFlags:ge(s),outputs:a,element:null,provider:{token:r,tokenKey:Gt(r),value:i,deps:h},text:null,query:null,ngContent:null}}function en(t,e){return 2048&e.flags?Sa:un(t,e)}function nn(t,e){for(var n=t;n.parent&&!oe(n);)n=n.parent;var r=!0;return cn(n.parent,ne(n),r,e.provider.value,e.provider.deps)}function rn(t,e){var n=(16384&e.flags)>0,r=cn(t,e.parent,n,e.provider.value,e.provider.deps);if(e.outputs.length)for(var i=0;i<e.outputs.length;i++){var o=e.outputs[i],s=r[o.propName].subscribe(on(t,e.parent.index,o.eventName));t.disposables[e.outputIndex+i]=s.unsubscribe.bind(s)}return r}function on(t,e,n){return function(r){return te(t,e,n,r)}}function sn(t,e,n,r,i,o,s,a,u,c,l,p){var h=jt(t,e.index),f=h.instance,d=!1,v=void 0,m=e.bindings.length;return m>0&&$t(t,e,0,n)&&(d=!0,v=fn(t,h,e,0,n,v)),m>1&&$t(t,e,1,r)&&(d=!0,v=fn(t,h,e,1,r,v)),m>2&&$t(t,e,2,i)&&(d=!0,v=fn(t,h,e,2,i,v)),m>3&&$t(t,e,3,o)&&(d=!0,v=fn(t,h,e,3,o,v)),m>4&&$t(t,e,4,s)&&(d=!0,v=fn(t,h,e,4,s,v)),m>5&&$t(t,e,5,a)&&(d=!0,v=fn(t,h,e,5,a,v)),m>6&&$t(t,e,6,u)&&(d=!0,v=fn(t,h,e,6,u,v)),m>7&&$t(t,e,7,c)&&(d=!0,v=fn(t,h,e,7,c,v)),m>8&&$t(t,e,8,l)&&(d=!0,v=fn(t,h,e,8,l,v)),m>9&&$t(t,e,9,p)&&(d=!0,v=fn(t,h,e,9,p,v)),v&&f.ngOnChanges(v),1&t.state&&32768&e.flags&&f.ngOnInit(),131072&e.flags&&f.ngDoCheck(),d}function an(t,e,n){for(var r=jt(t,e.index),i=r.instance,o=!1,s=void 0,a=0;a<n.length;a++)$t(t,e,a,n[a])&&(o=!0,s=fn(t,r,e,a,n[a],s));return s&&i.ngOnChanges(s),1&t.state&&32768&e.flags&&i.ngOnInit(),131072&e.flags&&i.ngDoCheck(),o}function un(t,e){var n,r=(4096&e.flags)>0,i=e.provider;switch(100673535&e.flags){case 256:n=cn(t,e.parent,r,i.value,i.deps);break;case 512:n=ln(t,e.parent,r,i.value,i.deps);break;case 1024:n=pn(t,e.parent,r,i.deps[0]);break;case 128:n=i.value}return n}function cn(t,e,n,r,i){var o,s=i.length;switch(s){case 0:o=new r;break;case 1:o=new r(pn(t,e,n,i[0]));break;case 2:o=new r(pn(t,e,n,i[0]),pn(t,e,n,i[1]));break;case 3:o=new r(pn(t,e,n,i[0]),pn(t,e,n,i[1]),pn(t,e,n,i[2]));break;default:for(var a=new Array(s),u=0;s>u;u++)a[u]=pn(t,e,n,i[u]);o=new(r.bind.apply(r,[void 0].concat(a)))}return o}function ln(t,e,n,r,i){var o,s=i.length;switch(s){case 0:o=r();break;case 1:o=r(pn(t,e,n,i[0]));break;case 2:o=r(pn(t,e,n,i[0]),pn(t,e,n,i[1]));break;case 3:o=r(pn(t,e,n,i[0]),pn(t,e,n,i[1]),pn(t,e,n,i[2]));break;default:for(var a=Array(s),u=0;s>u;u++)a[u]=pn(t,e,n,i[u]);o=r.apply(void 0,a)}return o}function pn(t,e,n,r,i){if(void 0===i&&(i=Vi.THROW_IF_NOT_FOUND),8&r.flags)return r.token;var o=t;2&r.flags&&(i=null);var s=r.tokenKey;for(e&&1&r.flags&&(n=!1,e=e.parent);t;){if(e)switch(s){case ya:var a=hn(t,e,n);return $e(a);case ga:var a=hn(t,e,n);return a.renderer;case _a:return new us(Lt(t,e.index).renderElement);case ba:return Lt(t,e.index).viewContainer;case wa:if(e.element.template)return Lt(t,e.index).template;break;case Ea:var u=hn(t,e,n);return Ge(u);case Ca:return Qe(t,e);default:var c=(n?e.element.allProviders:e.element.publicProviders)[s];if(c){var l=jt(t,c.index);return l.instance===Sa&&(l.instance=un(t,c)),l.instance}}n=oe(t),e=ne(t),t=t.parent}var p=o.root.injector.get(r.token,xa);return p!==xa||i===xa?p:o.root.ngModule.injector.get(r.token,i)}function hn(t,e,n){var r;if(n)r=Lt(t,e.index).componentView;else for(r=t;r.parent&&!oe(r);)r=r.parent;return r}function fn(t,e,n,r,i,o){if(16384&n.flags){var s=Lt(t,n.parent.index).componentView;2&s.def.flags&&(s.state|=2)}var a=n.bindings[r],u=a.name;if(e.instance[u]=i,262144&n.flags){o=o||{};var c=t.oldValues[n.bindingIndex+r];c instanceof Ts&&(c=c.wrapped);var l=n.bindings[r];o[l.nonMinifiedName]=new As(c,i,0!==(1&t.state))}return t.oldValues[n.bindingIndex+r]=i,o}function dn(t,e){if(t.def.nodeFlags&e)for(var n=t.def.nodes,r=0;r<n.length;r++){var i=n[r],o=i.parent;for(!o&&i.flags&e&&mn(t,r,i.flags&e),0===(i.childFlags&e)&&(r+=i.childCount);o&&1&o.flags&&r===o.index+o.childCount;)o.directChildFlags&e&&vn(t,o,e),o=o.parent}}function vn(t,e,n){for(var r=e.index+1;r<=e.index+e.childCount;r++){var i=t.def.nodes[r];i.flags&n&&mn(t,r,i.flags&n),r+=i.childCount}}function mn(t,e,n){var r=jt(t,e).instance;r!==Sa&&(Js.setCurrentNode(t,e),524288&n&&r.ngAfterContentInit(),1048576&n&&r.ngAfterContentChecked(),2097152&n&&r.ngAfterViewInit(),4194304&n&&r.ngAfterViewChecked(),65536&n&&r.ngOnDestroy())}function yn(t){return bn(64,new Array(t+1))}function gn(t){return bn(16,new Array(t))}function _n(t){return bn(32,t)}function bn(t,e){for(var n=new Array(e.length),r=0;r<e.length;r++){var i=e[r];n[r]={flags:8,name:i,ns:null,nonMinifiedName:i,securityContext:null,suffix:null}}return{index:-1,parent:null,renderParent:null,bindingIndex:-1,outputIndex:-1,flags:t,childFlags:0,directChildFlags:0,childMatchedQueries:0,matchedQueries:{},matchedQueryIds:0,references:{},ngContentIndex:-1,childCount:0,bindings:n,bindingFlags:ge(n),outputs:[],element:null,provider:null,text:null,query:null,ngContent:null}}function wn(){return{value:void 0}}function En(t,e,n,r,i,o,s,a,u,c,l,p){var h=e.bindings,f=!1,d=h.length;if(d>0&&Zt(t,e,0,n)&&(f=!0),d>1&&Zt(t,e,1,r)&&(f=!0),d>2&&Zt(t,e,2,i)&&(f=!0),d>3&&Zt(t,e,3,o)&&(f=!0),d>4&&Zt(t,e,4,s)&&(f=!0),d>5&&Zt(t,e,5,a)&&(f=!0),d>6&&Zt(t,e,6,u)&&(f=!0),d>7&&Zt(t,e,7,c)&&(f=!0),d>8&&Zt(t,e,8,l)&&(f=!0),d>9&&Zt(t,e,9,p)&&(f=!0),f){var v=Ft(t,e.index),m=void 0;switch(100673535&e.flags){case 16:m=new Array(h.length),d>0&&(m[0]=n),d>1&&(m[1]=r),d>2&&(m[2]=i),d>3&&(m[3]=o),d>4&&(m[4]=s),d>5&&(m[5]=a),d>6&&(m[6]=u),d>7&&(m[7]=c),d>8&&(m[8]=l),d>9&&(m[9]=p);break;case 32:m={},d>0&&(m[h[0].name]=n),d>1&&(m[h[1].name]=r),d>2&&(m[h[2].name]=i),d>3&&(m[h[3].name]=o),d>4&&(m[h[4].name]=s),d>5&&(m[h[5].name]=a),d>6&&(m[h[6].name]=u),d>7&&(m[h[7].name]=c),d>8&&(m[h[8].name]=l),d>9&&(m[h[9].name]=p);break;case 64:var y=n;switch(d){case 1:m=y.transform(n);break;case 2:m=y.transform(r);break;case 3:m=y.transform(r,i);break;case 4:m=y.transform(r,i,o);break;case 5:m=y.transform(r,i,o,s);break;case 6:m=y.transform(r,i,o,s,a);break;case 7:m=y.transform(r,i,o,s,a,u);break;case 8:m=y.transform(r,i,o,s,a,u,c);break;case 9:m=y.transform(r,i,o,s,a,u,c,l);break;case 10:m=y.transform(r,i,o,s,a,u,c,l,p)}}v.value=m}return f}function Cn(t,e,n){for(var r=e.bindings,i=!1,o=0;o<n.length;o++)Zt(t,e,o,n[o])&&(i=!0);if(i){var s=Ft(t,e.index),a=void 0;switch(100673535&e.flags){case 16:a=n;break;case 32:a={};for(var o=0;o<n.length;o++)a[r[o].name]=n[o];break;case 64:var u=n[0],c=n.slice(1);a=u.transform.apply(u,c)}s.value=a}return i}function Sn(t,e,n){var r=[];for(var i in n){var o=n[i];r.push({propName:i,bindingType:o})}return{index:-1,parent:null,renderParent:null,bindingIndex:-1,outputIndex:-1,flags:t,childFlags:0,directChildFlags:0,childMatchedQueries:0,ngContentIndex:-1,matchedQueries:{},matchedQueryIds:0,references:{},childCount:0,bindings:[],bindingFlags:0,outputs:[],element:null,provider:null,text:null,query:{id:e,filterId:ae(e),bindings:r},ngContent:null}}function xn(){return new ps}function Tn(t){for(var e=t.def.nodeMatchedQueries;t.parent&&se(t);){var n=t.parentNodeDef;t=t.parent;for(var r=n.index+n.childCount,i=0;r>=i;i++){var o=t.def.nodes[i];33554432&o.flags&&268435456&o.flags&&(o.query.filterId&e)===o.query.filterId&&Vt(t,i).setDirty(),!(1&o.flags&&i+o.childCount<n.index)&&33554432&o.childFlags&&268435456&o.childFlags||(i+=o.childCount)}}if(67108864&t.def.nodeFlags)for(var i=0;i<t.def.nodes.length;i++){var o=t.def.nodes[i];67108864&o.flags&&268435456&o.flags&&Vt(t,i).setDirty(),i+=o.childCount}}function Pn(t,e){var n=Vt(t,e.index);if(n.dirty){var r,i=void 0;if(33554432&e.flags){var o=e.parent.parent;i=An(t,o.index,o.index+o.childCount,e.query,[]),r=jt(t,e.parent.index).instance}else 67108864&e.flags&&(i=An(t,0,t.def.nodes.length-1,e.query,[]),r=t.component);n.reset(i);for(var s=e.query.bindings,a=!1,u=0;u<s.length;u++){var c=s[u],l=void 0;switch(c.bindingType){case 0:l=n.first;break;case 1:l=n,a=!0}r[c.propName]=l}a&&n.notifyOnChanges()}}function An(t,e,n,r,i){for(var o=e;n>=o;o++){var s=t.def.nodes[o],a=s.matchedQueries[r.id];if(null!=a&&i.push(On(t,s,a)),1&s.flags&&s.element.template&&(s.element.template.nodeMatchedQueries&r.filterId)===r.filterId){var u=Lt(t,o);if(8388608&s.flags)for(var c=u.viewContainer._embeddedViews,l=0;l<c.length;l++){var p=c[l],h=ee(p);h&&h===u&&An(p,0,p.def.nodes.length-1,r,i)}var f=u.template._projectedViews;if(f)for(var l=0;l<f.length;l++){var d=f[l];An(d,0,d.def.nodes.length-1,r,i)}}(s.childMatchedQueries&r.filterId)!==r.filterId&&(o+=s.childCount)}return i}function On(t,e,n){if(null!=n){var r=void 0;switch(n){case 1:r=Lt(t,e.index).renderElement;break;case 0:r=new us(Lt(t,e.index).renderElement);break;case 2:r=Lt(t,e.index).template;break;case 3:r=Lt(t,e.index).viewContainer;break;case 4:r=jt(t,e.index).instance}return r}}function Mn(t,e){for(var n=new Array(e.length-1),r=1;r<e.length;r++)n[r-1]={flags:8,name:null,ns:null,nonMinifiedName:null,securityContext:null,suffix:e[r]};var i=2;return{index:-1,parent:null,renderParent:null,bindingIndex:-1,outputIndex:-1,flags:i,childFlags:0,directChildFlags:0,childMatchedQueries:0,matchedQueries:{},matchedQueryIds:0,references:{},ngContentIndex:t,childCount:0,bindings:n,bindingFlags:ge(n),outputs:[],element:null,provider:null,text:{prefix:e[0]},query:null,ngContent:null}}function Rn(t,e,n){var r,i=t.renderer;r=i.createText(n.text.prefix);var o=ce(t,e,n);return o&&i.appendChild(o,r),{renderText:r}}function kn(t,e,n,r,i,o,s,a,u,c,l,p){var h=!1,f=e.bindings,d=f.length;if(d>0&&Zt(t,e,0,n)&&(h=!0),d>1&&Zt(t,e,1,r)&&(h=!0),d>2&&Zt(t,e,2,i)&&(h=!0),d>3&&Zt(t,e,3,o)&&(h=!0),d>4&&Zt(t,e,4,s)&&(h=!0),d>5&&Zt(t,e,5,a)&&(h=!0),d>6&&Zt(t,e,6,u)&&(h=!0),d>7&&Zt(t,e,7,c)&&(h=!0),d>8&&Zt(t,e,8,l)&&(h=!0),d>9&&Zt(t,e,9,p)&&(h=!0),h){var v=e.text.prefix;d>0&&(v+=Nn(n,f[0])),d>1&&(v+=Nn(r,f[1])),d>2&&(v+=Nn(i,f[2])),d>3&&(v+=Nn(o,f[3])),d>4&&(v+=Nn(s,f[4])),d>5&&(v+=Nn(a,f[5])),d>6&&(v+=Nn(u,f[6])),d>7&&(v+=Nn(c,f[7])),d>8&&(v+=Nn(l,f[8])),d>9&&(v+=Nn(p,f[9]));var m=Dt(t,e.index).renderText;t.renderer.setValue(m,v)}return h}function In(t,e,n){for(var r=e.bindings,i=!1,o=0;o<n.length;o++)Zt(t,e,o,n[o])&&(i=!0);if(i){for(var s="",o=0;o<n.length;o++)s+=Nn(n[o],r[o]);s=e.text.prefix+s;var a=Dt(t,e.index).renderText;t.renderer.setValue(a,s)}return i}function Nn(t,e){var n=null!=t?t.toString():"";return n+e.suffix}function Dn(t,e,n,r){for(var i=0,o=0,s=0,a=0,u=0,c=null,l=!1,p=!1,h=null,f=0;f<e.length;f++){for(;c&&f>c.index+c.childCount;){var d=c.parent;d&&(d.childFlags|=c.childFlags,d.childMatchedQueries|=c.childMatchedQueries),c=d}var v=e[f];v.index=f,v.parent=c,v.bindingIndex=i,v.outputIndex=o;var m=void 0;if(m=c&&1&c.flags&&!c.element.name?c.renderParent:c,v.renderParent=m,v.element){var y=v.element;y.publicProviders=c?c.element.publicProviders:Object.create(null),y.allProviders=y.publicProviders,l=!1,p=!1}if(Ln(c,v,e.length),s|=v.flags,u|=v.matchedQueryIds,v.element&&v.element.template&&(u|=v.element.template.nodeMatchedQueries),c?(c.childFlags|=v.flags,c.directChildFlags|=v.flags,c.childMatchedQueries|=v.matchedQueryIds,v.element&&v.element.template&&(c.childMatchedQueries|=v.element.template.nodeMatchedQueries)):a|=v.flags,i+=v.bindings.length,o+=v.outputs.length,!m&&3&v.flags&&(h=v),10112&v.flags){l||(l=!0,c.element.publicProviders=Object.create(c.element.publicProviders),c.element.allProviders=c.element.publicProviders);var g=0!==(4096&v.flags),_=0!==(16384&v.flags);!g||_?c.element.publicProviders[v.provider.tokenKey]=v:(p||(p=!0,c.element.allProviders=Object.create(c.element.publicProviders)),c.element.allProviders[v.provider.tokenKey]=v),_&&(c.element.componentProvider=v)}v.childCount&&(c=v)}for(;c;){var d=c.parent;d&&(d.childFlags|=c.childFlags,d.childMatchedQueries|=c.childMatchedQueries),c=d}var b=function(t,n,r,i){return e[n].element.handleEvent(t,r,i)};return{factory:null,nodeFlags:s,rootNodeFlags:a,nodeMatchedQueries:u,flags:t,nodes:e,updateDirectives:n||ta,updateRenderer:r||ta,handleEvent:b||ta,bindingCount:i,outputCount:o,lastRenderRootNode:h}}function Ln(t,e,n){var r=e.element&&e.element.template;if(r){if(!r.lastRenderRootNode)throw new Error("Illegal State: Embedded templates without nodes are not allowed!");if(r.lastRenderRootNode&&8388608&r.lastRenderRootNode.flags)throw new Error("Illegal State: Last root node of a template can't have embedded views, at index "+e.index+"!")}if(10112&e.flags){var i=t?t.flags:0;if(0===(1&i))throw new Error("Illegal State: Provider/Directive nodes need to be children of elements or anchors, at index "+e.index+"!")}if(e.query){if(33554432&e.flags&&(!t||0===(8192&t.flags)))throw new Error("Illegal State: Content Query nodes need to be children of directives, at index "+e.index+"!");if(67108864&e.flags&&t)throw new Error("Illegal State: View Query nodes have to be top level nodes, at index "+e.index+"!")}if(e.childCount){var o=t?t.index+t.childCount:n-1;if(e.index<=o&&e.index+e.childCount>o)throw new Error("Illegal State: childCount of node leads outside of parent, at index "+e.index+"!")}}function jn(t,e,n){var r=Vn(t.root,t.renderer,t,e,e.element.template);return Un(r,t.component,n),Bn(r),r}function Fn(t,e,n){var r=Vn(t,t.renderer,null,null,e);return Un(r,n,n),Bn(r),r}function Vn(t,e,n,r,i){var o=new Array(i.nodes.length),s=i.outputCount?new Array(i.outputCount):null,a={def:i,parent:n,viewContainerParent:null,parentNodeDef:r,context:null,component:null,nodes:o,state:3,root:t,renderer:e,oldValues:new Array(i.bindingCount),disposables:s};return a}function Un(t,e,n){t.component=e,t.context=n}function Bn(t){var e;if(oe(t)){var n=t.parentNodeDef;e=Lt(t.parent,n.parent.index).renderElement}for(var r=t.def,i=t.nodes,o=0;o<r.nodes.length;o++){var s=r.nodes[o];Js.setCurrentNode(t,o);var a=void 0;switch(100673535&s.flags){case 1:var u=Se(t,e,s),c=void 0;if(16777216&s.flags){var l=le(s.element.componentView),p=s.element.componentRendererType,h=void 0;h=p?t.root.rendererFactory.createRenderer(u,p):t.root.renderer,c=Vn(t.root,h,t,s.element.componentProvider,l)}xe(t,c,s,u),a={renderElement:u,componentView:c,viewContainer:null,template:s.element.template?Ke(t,s):void 0},8388608&s.flags&&(a.viewContainer=We(t,s,a));break;case 2:a=Rn(t,e,s);break;case 256:case 512:case 1024:case 128:var f=en(t,s);a={instance:f};break;case 8:var f=nn(t,s);a={instance:f};break;case 8192:var f=rn(t,s);if(a={instance:f},16384&s.flags){var d=Lt(t,s.parent.index).componentView;Un(d,f,f)}break;case 16:case 32:case 64:a=wn(t,s);break;case 33554432:case 67108864:a=xn();break;case 4:De(t,e,s),a=void 0}i[o]=a}Jn(t,Ta.CreateViewNodes),nr(t,100663296,134217728,0)}function Hn(t){Js.updateDirectives(t,1),tr(t,Ta.CheckNoChanges),Js.updateRenderer(t,1),Jn(t,Ta.CheckNoChanges)}function qn(t){Js.updateDirectives(t,0),tr(t,Ta.CheckAndUpdate),nr(t,33554432,268435456,0),dn(t,1048576|(1&t.state?524288:0)),Js.updateRenderer(t,0),Jn(t,Ta.CheckAndUpdate),nr(t,67108864,268435456,0),dn(t,4194304|(1&t.state?2097152:0)),2&t.def.flags&&(t.state&=-3),t.state&=-2}function zn(t,e,n,r,i,o,s,a,u,c,l,p,h){return 0===n?Wn(t,e,r,i,o,s,a,u,c,l,p,h):Gn(t,e,r)}function Wn(t,e,n,r,i,o,s,a,u,c,l,p){var h=!1;switch(100673535&e.flags){case 1:h=Pe(t,e,n,r,i,o,s,a,u,c,l,p);break;case 2:h=kn(t,e,n,r,i,o,s,a,u,c,l,p);break;case 8192:h=sn(t,e,n,r,i,o,s,a,u,c,l,p);break;case 16:case 32:case 64:h=En(t,e,n,r,i,o,s,a,u,c,l,p)}return h}function Gn(t,e,n){var r=!1;switch(100673535&e.flags){case 1:r=Ae(t,e,n);break;case 2:r=In(t,e,n);break;case 8192:r=an(t,e,n);break;case 16:case 32:case 64:r=Cn(t,e,n)}if(r)for(var i=e.bindings.length,o=e.bindingIndex,s=t.oldValues,a=0;i>a;a++)s[o+a]=n[a];return r}function Kn(t,e,n,r,i,o,s,a,u,c,l,p,h){return 0===n?Qn(t,e,r,i,o,s,a,u,c,l,p,h):Xn(t,e,r),!1}function Qn(t,e,n,r,i,o,s,a,u,c,l,p){var h=e.bindings.length;h>0&&Yt(t,e,0,n),h>1&&Yt(t,e,1,r),h>2&&Yt(t,e,2,i),h>3&&Yt(t,e,3,o),h>4&&Yt(t,e,4,s),h>5&&Yt(t,e,5,a),h>6&&Yt(t,e,6,u),h>7&&Yt(t,e,7,c),h>8&&Yt(t,e,8,l),h>9&&Yt(t,e,9,p)}function Xn(t,e,n){for(var r=0;r<n.length;r++)Yt(t,e,r,n[r])}function $n(t,e){var n=Vt(t,e.index);if(n.dirty)throw Ut(Js.createDebugContext(t,e.index),"Query "+e.query.id+" not dirty","Query "+e.query.id+" dirty",0!==(1&t.state))}function Zn(t){if(!(8&t.state)){if(tr(t,Ta.Destroy),Jn(t,Ta.Destroy),dn(t,65536),t.disposables)for(var e=0;e<t.disposables.length;e++)t.disposables[e]();t.renderer.destroyNode&&Yn(t),oe(t)&&t.renderer.destroy(),t.state|=8}}function Yn(t){for(var e=t.def.nodes.length,n=0;e>n;n++){var r=t.def.nodes[n];1&r.flags?t.renderer.destroyNode(Lt(t,n).renderElement):2&r.flags&&t.renderer.destroyNode(Dt(t,n).renderText)}}function Jn(t,e){var n=t.def;if(16777216&n.nodeFlags)for(var r=0;r<n.nodes.length;r++){var i=n.nodes[r];16777216&i.flags?er(Lt(t,r).componentView,e):0===(16777216&i.childFlags)&&(r+=i.childCount)}}function tr(t,e){var n=t.def;if(8388608&n.nodeFlags)for(var r=0;r<n.nodes.length;r++){var i=n.nodes[r];if(8388608&i.flags)for(var o=Lt(t,r).viewContainer._embeddedViews,s=0;s<o.length;s++)er(o[s],e);else 0===(8388608&i.childFlags)&&(r+=i.childCount)}}function er(t,e){var n=t.state;switch(e){case Ta.CheckNoChanges:2&n&&0===(12&n)&&Hn(t);break;case Ta.CheckAndUpdate:2&n&&0===(12&n)&&qn(t);break;case Ta.Destroy:Zn(t);break;case Ta.CreateViewNodes:Bn(t)}}function nr(t,e,n,r){if(t.def.nodeFlags&e&&t.def.nodeFlags&n)for(var i=t.def.nodes.length,o=0;i>o;o++){var s=t.def.nodes[o];if(s.flags&e&&s.flags&n)switch(Js.setCurrentNode(t,s.index),r){case 0:Pn(t,s);break;case 1:$n(t,s)}s.childFlags&e&&s.childFlags&n||(o+=s.childCount)}}function rr(){if(!Pa){Pa=!0;var t=ct()?or():ir();Js.setCurrentNode=t.setCurrentNode,Js.createRootView=t.createRootView,Js.createEmbeddedView=t.createEmbeddedView,Js.checkAndUpdateView=t.checkAndUpdateView,Js.checkNoChangesView=t.checkNoChangesView,Js.destroyView=t.destroyView,Js.resolveDep=pn,Js.createDebugContext=t.createDebugContext,Js.handleEvent=t.handleEvent,Js.updateDirectives=t.updateDirectives,Js.updateRenderer=t.updateRenderer,Js.dirtyParentQueries=Tn}}function ir(){return{setCurrentNode:function(){},createRootView:sr,createEmbeddedView:jn,checkAndUpdateView:qn,checkNoChangesView:Hn,destroyView:Zn,createDebugContext:function(t,e){return new Ia(t,e)},handleEvent:function(t,e,n,r){return t.def.handleEvent(t,e,n,r)},updateDirectives:function(t,e){return t.def.updateDirectives(0===e?cr:lr,t)},updateRenderer:function(t,e){return t.def.updateRenderer(0===e?cr:lr,t)}}}function or(){return{setCurrentNode:vr,createRootView:ar,createEmbeddedView:pr,checkAndUpdateView:hr,checkNoChangesView:fr,destroyView:dr,createDebugContext:function(t,e){return new Ia(t,e)},handleEvent:mr,updateDirectives:yr,updateRenderer:gr}}function sr(t,e,n,r,i,o){var s=i.injector.get(os);return Fn(ur(t,i,s,e,n),r,o)}function ar(t,e,n,r,i,o){var s=i.injector.get(os),a=ur(t,i,new Na(s),e,n);return Or(Aa.create,Fn,null,[a,r,o])}function ur(t,e,n,r,i){var o=e.injector.get(Zs),s=n.createRenderer(null,null);return{ngModule:e,injector:t,projectableNodes:r,selectorOrNode:i,sanitizer:o,rendererFactory:n,renderer:s}}function cr(t,e,n,r,i,o,s,a,u,c,l,p,h){var f=t.def.nodes[e];return zn(t,f,n,r,i,o,s,a,u,c,l,p,h),112&f.flags?Ft(t,e).value:void 0}function lr(t,e,n,r,i,o,s,a,u,c,l,p,h){var f=t.def.nodes[e];return Kn(t,f,n,r,i,o,s,a,u,c,l,p,h),112&f.flags?Ft(t,e).value:void 0}function pr(t,e,n){return Or(Aa.create,jn,null,[t,e,n])}function hr(t){return Or(Aa.detectChanges,qn,null,[t])}function fr(t){return Or(Aa.checkNoChanges,Hn,null,[t])}function dr(t){return Or(Aa.destroy,Zn,null,[t])}function vr(t,e){Ma=t,Ra=e}function mr(t,e,n,r){return vr(t,e),Or(Aa.handleEvent,t.def.handleEvent,null,[t,e,n,r])}function yr(t,e){function n(t,n,r){for(var i=[],o=3;o<arguments.length;o++)i[o-3]=arguments[o];var s=t.def.nodes[n];return 0===e?_r(t,s,r,i):br(t,s,r,i),8192&s.flags&&vr(t,Sr(t,n)),112&s.flags?Ft(t,s.index).value:void 0}if(8&t.state)throw Wt(Aa[Oa]);return vr(t,Sr(t,0)),t.def.updateDirectives(n,t)}function gr(t,e){function n(t,n,r){for(var i=[],o=3;o<arguments.length;o++)i[o-3]=arguments[o];var s=t.def.nodes[n];return 0===e?_r(t,s,r,i):br(t,s,r,i),3&s.flags&&vr(t,xr(t,n)),112&s.flags?Ft(t,s.index).value:void 0}if(8&t.state)throw Wt(Aa[Oa]);return vr(t,xr(t,0)),t.def.updateRenderer(n,t)}function _r(t,e,n,r){var i=zn.apply(void 0,[t,e,n].concat(r));if(i){var o=1===n?r[0]:r;if(8192&e.flags){for(var s={},a=0;a<e.bindings.length;a++){var u=e.bindings[a],c=o[a];8&u.flags&&(s[wr(u.nonMinifiedName)]=Cr(c))}var l=e.parent,p=Lt(t,l.index).renderElement;if(l.element.name)for(var h in s){var c=s[h];null!=c?t.renderer.setAttribute(p,h,c):t.renderer.removeAttribute(p,h)}else t.renderer.setValue(p,"bindings="+JSON.stringify(s,null,2))}}}function br(t,e,n,r){Kn.apply(void 0,[t,e,n].concat(r))}function wr(t){return t=Er(t.replace(/[$@]/g,"_")),"ng-reflect-"+t}function Er(t){return t.replace(ka,function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return"-"+t[1].toLowerCase()})}function Cr(t){try{return null!=t?t.toString().slice(0,30):t}catch(e){return"[ERROR] Exception while trying to serialize the value"}}function Sr(t,e){for(var n=e;n<t.def.nodes.length;n++){var r=t.def.nodes[n];if(8192&r.flags&&r.bindings&&r.bindings.length)return n}return null}function xr(t,e){for(var n=e;n<t.def.nodes.length;n++){var r=t.def.nodes[n];if(3&r.flags&&r.bindings&&r.bindings.length)return n}return null}function Tr(t,e){for(var n=-1,r=0;e>=r;r++){var i=t.nodes[r];3&i.flags&&n++}return n}function Pr(t){for(;t&&!oe(t);)t=t.parent;return t.parent?Lt(t.parent,ne(t).index):null}function Ar(t,e,n){for(var r in e.references)n[r]=On(t,e,e.references[r])}function Or(t,e,n,r){var i=Oa,o=Ma,s=Ra;try{Oa=t;var a=e.apply(n,r);return Ma=o,Ra=s,Oa=i,a}catch(u){if(zt(u)||!Ma)throw u;throw Ma.state|=4,Bt(u,Mr())}}function Mr(){return Ma?new Ia(Ma,Ra):null}function Rr(){return Hs}function kr(){return qs}function Ir(t){return t||"en-US"}function Nr(){rr()}function Dr(t,e){return{name:t,definitions:e}}function Lr(t,e){return void 0===e&&(e=null),{type:4,styles:e,timings:t}}function jr(t){return{type:3,steps:t}}function Fr(t){return{type:2,steps:t}}function Vr(t){return{type:6,styles:t}}function Ur(t,e){return{type:0,name:t,styles:e}}function Br(t){return{type:5,steps:t}}function Hr(t,e){return{type:1,expr:t,animation:e}}function qr(t,e){return Dr(t,e)}function zr(t,e){return Lr(t,e)}function Wr(t){return jr(t)}function Gr(t){return Fr(t)}function Kr(t){return Vr(t)}function Qr(t,e){return Ur(t,e)}function Xr(t){return Br(t)}function $r(t,e){return Hr(t,e)}var Zr=void 0||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},Yr=function(){function t(t){this._desc=t}return t.prototype.toString=function(){return"Token "+this._desc},t}(),Jr=function(t){function e(e){return t.call(this,e)||this}return Zr(e,t),e.prototype.toString=function(){return"InjectionToken "+this._desc},e}(Yr),ti="undefined"!=typeof window&&window,ei="undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self,ni="undefined"!=typeof i&&i,ri=ti||ni||ei,ii=null,oi=0,si=ri.Reflect,ai=new Jr("AnalyzeForEntryComponents"),ui=v("Attribute",[["attributeName",void 0]]),ci=function(){function t(){}return t}(),li=m("ContentChildren",[["selector",void 0],{first:!1,isViewQuery:!1,descendants:!1,read:void 0}],ci),pi=m("ContentChild",[["selector",void 0],{first:!0,isViewQuery:!1,descendants:!0,read:void 0}],ci),hi=m("ViewChildren",[["selector",void 0],{first:!1,isViewQuery:!0,descendants:!0,read:void 0}],ci),fi=m("ViewChild",[["selector",void 0],{first:!0,isViewQuery:!0,descendants:!0,read:void 0}],ci),di={};di.OnPush=0,di.Default=1,di[di.OnPush]="OnPush",di[di.Default]="Default";var vi={};vi.CheckOnce=0,vi.Checked=1,vi.CheckAlways=2,vi.Detached=3,vi.Errored=4,vi.Destroyed=5,vi[vi.CheckOnce]="CheckOnce",vi[vi.Checked]="Checked",vi[vi.CheckAlways]="CheckAlways",vi[vi.Detached]="Detached",vi[vi.Errored]="Errored",vi[vi.Destroyed]="Destroyed";var mi=f("Directive",{selector:void 0,inputs:void 0,outputs:void 0,host:void 0,providers:void 0,exportAs:void 0,queries:void 0}),yi=f("Component",{selector:void 0,inputs:void 0,outputs:void 0,host:void 0,exportAs:void 0,moduleId:void 0,providers:void 0,viewProviders:void 0,changeDetection:di.Default,queries:void 0,templateUrl:void 0,template:void 0,styleUrls:void 0,styles:void 0,animations:void 0,encapsulation:void 0,interpolation:void 0,entryComponents:void 0},mi),gi=f("Pipe",{name:void 0,pure:!0}),_i=m("Input",[["bindingPropertyName",void 0]]),bi=m("Output",[["bindingPropertyName",void 0]]),wi=m("HostBinding",[["hostPropertyName",void 0]]),Ei=m("HostListener",[["eventName",void 0],["args",[]]]),Ci={name:"custom-elements"},Si={name:"no-errors-schema"},xi=f("NgModule",{providers:void 0,declarations:void 0,imports:void 0,exports:void 0,entryComponents:void 0,bootstrap:void 0,schemas:void 0,id:void 0}),Ti={};Ti.Emulated=0,Ti.Native=1,Ti.None=2,Ti[Ti.Emulated]="Emulated",Ti[Ti.Native]="Native",Ti[Ti.None]="None";var Pi=function(){function t(t){var e=void 0===t?{}:t,n=e.templateUrl,r=e.template,i=e.encapsulation,o=e.styles,s=e.styleUrls,a=e.animations,u=e.interpolation;this.templateUrl=n,this.template=r,this.styleUrls=s,this.styles=o,this.encapsulation=i,this.animations=a,this.interpolation=u}return t}(),Ai=function(){function t(t){this.full=t}return Object.defineProperty(t.prototype,"major",{get:function(){return this.full.split(".")[0]},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"minor",{get:function(){return this.full.split(".")[1]},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"patch",{get:function(){return this.full.split(".").slice(2).join(".")},enumerable:!0,configurable:!0}),t}(),Oi=new Ai("4.0.1"),Mi=v("Inject",[["token",void 0]]),Ri=v("Optional",[]),ki=f("Injectable",[]),Ii=v("Self",[]),Ni=v("SkipSelf",[]),Di=v("Host",[]),Li=new Object,ji=Li,Fi=function(){function t(){}return t.prototype.get=function(t,e){if(void 0===e&&(e=Li),e===Li)throw new Error("No provider for "+c(t)+"!");return e},t}(),Vi=function(){function t(){}return t.prototype.get=function(){},t.prototype.get=function(){},t}();Vi.THROW_IF_NOT_FOUND=Li,Vi.NULL=new Fi;var Ui="ngComponentType",Bi="ngDebugContext",Hi="ngOriginalError",qi="ngErrorLogger",zi=function(){function t(){this._console=console}return t.prototype.handleError=function(t){var e=this._findOriginalError(t),n=this._findContext(t),r=E(t);r(this._console,"ERROR",t),e&&r(this._console,"ORIGINAL ERROR",e),n&&r(this._console,"ERROR CONTEXT",n)},t.prototype._findContext=function(t){return t?b(t)?b(t):this._findContext(w(t)):null},t.prototype._findOriginalError=function(t){for(var e=w(t);e&&w(e);)e=w(e);return e},t}(),Wi=function(){function t(t,e){if(this.token=t,this.id=e,!t)throw new Error("Token must be defined!")}return Object.defineProperty(t.prototype,"displayName",{get:function(){return c(this.token)},enumerable:!0,configurable:!0}),t.get=function(t){return Ki.get(_(t))},Object.defineProperty(t,"numberOfKeys",{get:function(){return Ki.numberOfKeys},enumerable:!0,configurable:!0}),t}(),Gi=function(){function t(){this._allKeys=new Map}return t.prototype.get=function(t){if(t instanceof Wi)return t;if(this._allKeys.has(t))return this._allKeys.get(t);var e=new Wi(t,Wi.numberOfKeys);return this._allKeys.set(t,e),e},Object.defineProperty(t.prototype,"numberOfKeys",{get:function(){return this._allKeys.size},enumerable:!0,configurable:!0}),t}(),Ki=new Gi,Qi=Function,Xi=/^function\s+\S+\(\)\s*{[\s\S]+\.apply\(this,\s*arguments\)/,$i=function(){function t(t){this._reflect=t||ri.Reflect}return t.prototype.isReflectionEnabled=function(){return!0},t.prototype.factory=function(t){return function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return new(t.bind.apply(t,[void 0].concat(e)))}},t.prototype._zipTypesAndAnnotations=function(t,e){var n;n=new Array("undefined"==typeof t?e.length:t.length);for(var r=0;r<n.length;r++)n[r]="undefined"==typeof t?[]:t[r]!=Object?[t[r]]:[],e&&null!=e[r]&&(n[r]=n[r].concat(e[r]));return n},t.prototype._ownParameters=function(t,e){if(Xi.exec(t.toString()))return null;if(t.parameters&&t.parameters!==e.parameters)return t.parameters;var n=t.ctorParameters;if(n&&n!==e.ctorParameters){var r="function"==typeof n?n():n,i=r.map(function(t){return t&&t.type}),o=r.map(function(t){return t&&j(t.decorators)});return this._zipTypesAndAnnotations(i,o)}if(null!=this._reflect&&null!=this._reflect.getOwnMetadata){var o=this._reflect.getOwnMetadata("parameters",t),i=this._reflect.getOwnMetadata("design:paramtypes",t);if(i||o)return this._zipTypesAndAnnotations(i,o)}return new Array(t.length).fill(void 0)},t.prototype.parameters=function(t){if(!L(t))return[];var e=F(t),n=this._ownParameters(t,e);return n||e===Object||(n=this.parameters(e)),n||[]},t.prototype._ownAnnotations=function(t,e){if(t.annotations&&t.annotations!==e.annotations){var n=t.annotations;return"function"==typeof n&&n.annotations&&(n=n.annotations),n}return t.decorators&&t.decorators!==e.decorators?j(t.decorators):this._reflect&&this._reflect.getOwnMetadata?this._reflect.getOwnMetadata("annotations",t):null},t.prototype.annotations=function(t){if(!L(t))return[];var e=F(t),n=this._ownAnnotations(t,e)||[],r=e!==Object?this.annotations(e):[];return r.concat(n)},t.prototype._ownPropMetadata=function(t,e){if(t.propMetadata&&t.propMetadata!==e.propMetadata){var n=t.propMetadata;return"function"==typeof n&&n.propMetadata&&(n=n.propMetadata),n}if(t.propDecorators&&t.propDecorators!==e.propDecorators){var r=t.propDecorators,i={};return Object.keys(r).forEach(function(t){i[t]=j(r[t])}),i}return this._reflect&&this._reflect.getOwnMetadata?this._reflect.getOwnMetadata("propMetadata",t):null},t.prototype.propMetadata=function(t){if(!L(t))return{};var e=F(t),n={};if(e!==Object){var r=this.propMetadata(e);Object.keys(r).forEach(function(t){n[t]=r[t]})}var i=this._ownPropMetadata(t,e);return i&&Object.keys(i).forEach(function(t){var e=[];n.hasOwnProperty(t)&&e.push.apply(e,n[t]),e.push.apply(e,i[t]),n[t]=e}),n},t.prototype.hasLifecycleHook=function(t,e){return t instanceof Qi&&e in t.prototype},t.prototype.getter=function(t){return new Function("o","return o."+t+";")},t.prototype.setter=function(t){return new Function("o","v","return o."+t+" = v;")},t.prototype.method=function(t){var e="if (!o."+t+") throw new Error('\""+t+"\" is undefined');\n return o."+t+".apply(o, args);";return new Function("o","args",e)},t.prototype.importUri=function(t){return"object"==typeof t&&t.filePath?t.filePath:"./"+c(t)},t.prototype.resourceUri=function(t){return"./"+c(t)},t.prototype.resolveIdentifier=function(t,e,n,r){return r},t.prototype.resolveEnum=function(t,e){return t[e]},t}(),Zi=function(){function t(){}return t.prototype.parameters=function(){},t.prototype.annotations=function(){},t.prototype.propMetadata=function(){},t.prototype.importUri=function(){},t.prototype.resourceUri=function(){},t.prototype.resolveIdentifier=function(){},t.prototype.resolveEnum=function(){},t}(),Yi=function(t){function e(e){var n=t.call(this)||this;return n.reflectionCapabilities=e,n}return Zr(e,t),e.prototype.updateCapabilities=function(t){this.reflectionCapabilities=t},e.prototype.factory=function(t){return this.reflectionCapabilities.factory(t)},e.prototype.parameters=function(t){return this.reflectionCapabilities.parameters(t)},e.prototype.annotations=function(t){ -return this.reflectionCapabilities.annotations(t)},e.prototype.propMetadata=function(t){return this.reflectionCapabilities.propMetadata(t)},e.prototype.hasLifecycleHook=function(t,e){return this.reflectionCapabilities.hasLifecycleHook(t,e)},e.prototype.getter=function(t){return this.reflectionCapabilities.getter(t)},e.prototype.setter=function(t){return this.reflectionCapabilities.setter(t)},e.prototype.method=function(t){return this.reflectionCapabilities.method(t)},e.prototype.importUri=function(t){return this.reflectionCapabilities.importUri(t)},e.prototype.resourceUri=function(t){return this.reflectionCapabilities.resourceUri(t)},e.prototype.resolveIdentifier=function(t,e,n,r){return this.reflectionCapabilities.resolveIdentifier(t,e,n,r)},e.prototype.resolveEnum=function(t,e){return this.reflectionCapabilities.resolveEnum(t,e)},e}(Zi),Ji=new Yi(new $i),to=function(){function t(t,e,n){this.key=t,this.optional=e,this.visibility=n}return t.fromKey=function(e){return new t(e,!1,null)},t}(),eo=[],no=function(){function t(t,e,n){this.key=t,this.resolvedFactories=e,this.multiProvider=n}return Object.defineProperty(t.prototype,"resolvedFactory",{get:function(){return this.resolvedFactories[0]},enumerable:!0,configurable:!0}),t}(),ro=function(){function t(t,e){this.factory=t,this.dependencies=e}return t}(),io=new Object,oo=function(){function t(){}return t.resolve=function(t){return B(t)},t.resolveAndCreate=function(e,n){var r=t.resolve(e);return t.fromResolvedProviders(r,n)},t.fromResolvedProviders=function(t,e){return new so(t,e)},t.prototype.parent=function(){},t.prototype.resolveAndCreateChild=function(){},t.prototype.createChildFromResolved=function(){},t.prototype.resolveAndInstantiate=function(){},t.prototype.instantiateResolved=function(){},t.prototype.get=function(){},t}(),so=function(){function t(t,e){this._constructionCounter=0,this._providers=t,this._parent=e||null;var n=t.length;this.keyIds=new Array(n),this.objs=new Array(n);for(var r=0;n>r;r++)this.keyIds[r]=t[r].key.id,this.objs[r]=io}return t.prototype.get=function(t,e){return void 0===e&&(e=ji),this._getByKey(Wi.get(t),null,e)},Object.defineProperty(t.prototype,"parent",{get:function(){return this._parent},enumerable:!0,configurable:!0}),t.prototype.resolveAndCreateChild=function(t){var e=oo.resolve(t);return this.createChildFromResolved(e)},t.prototype.createChildFromResolved=function(e){var n=new t(e);return n._parent=this,n},t.prototype.resolveAndInstantiate=function(t){return this.instantiateResolved(oo.resolve([t])[0])},t.prototype.instantiateResolved=function(t){return this._instantiateProvider(t)},t.prototype.getProviderAtIndex=function(t){if(0>t||t>=this._providers.length)throw N(t);return this._providers[t]},t.prototype._new=function(t){if(this._constructionCounter++>this._getMaxNumberOfObjects())throw M(this,t.key);return this._instantiateProvider(t)},t.prototype._getMaxNumberOfObjects=function(){return this.objs.length},t.prototype._instantiateProvider=function(t){if(t.multiProvider){for(var e=new Array(t.resolvedFactories.length),n=0;n<t.resolvedFactories.length;++n)e[n]=this._instantiate(t,t.resolvedFactories[n]);return e}return this._instantiate(t,t.resolvedFactories[0])},t.prototype._instantiate=function(t,e){var n,r=this,i=e.factory;try{n=e.dependencies.map(function(t){return r._getByReflectiveDependency(t)})}catch(o){throw o.addKey&&o.addKey(this,t.key),o}var s;try{s=i.apply(void 0,n)}catch(o){throw R(this,o,o.stack,t.key)}return s},t.prototype._getByReflectiveDependency=function(t){return this._getByKey(t.key,t.visibility,t.optional?null:ji)},t.prototype._getByKey=function(t,e,n){return t===ao?this:e instanceof Ii?this._getByKeySelf(t,n):this._getByKeyDefault(t,n,e)},t.prototype._getObjByKeyId=function(t){for(var e=0;e<this.keyIds.length;e++)if(this.keyIds[e]===t)return this.objs[e]===io&&(this.objs[e]=this._new(this._providers[e])),this.objs[e];return io},t.prototype._throwOrNull=function(t,e){if(e!==ji)return e;throw O(this,t)},t.prototype._getByKeySelf=function(t,e){var n=this._getObjByKeyId(t.id);return n!==io?n:this._throwOrNull(t,e)},t.prototype._getByKeyDefault=function(e,n,r){var i;for(i=r instanceof Ni?this._parent:this;i instanceof t;){var o=i,s=o._getObjByKeyId(e.id);if(s!==io)return s;i=o._parent}return null!==i?i.get(e.token,n):this._throwOrNull(e,n)},Object.defineProperty(t.prototype,"displayName",{get:function(){var t=Q(this,function(t){return' "'+t.key.displayName+'" '}).join(", ");return"ReflectiveInjector(providers: ["+t+"])"},enumerable:!0,configurable:!0}),t.prototype.toString=function(){return this.displayName},t}(),ao=Wi.get(Vi),uo=new Jr("Application Initializer"),co=function(){function t(t){var e=this;this._done=!1;var n=[];if(t)for(var r=0;r<t.length;r++){var i=t[r]();X(i)&&n.push(i)}this._donePromise=Promise.all(n).then(function(){e._done=!0}),0===n.length&&(this._done=!0)}return Object.defineProperty(t.prototype,"done",{get:function(){return this._done},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"donePromise",{get:function(){return this._donePromise},enumerable:!0,configurable:!0}),t}();co.decorators=[{type:ki}],co.ctorParameters=function(){return[{type:Array,decorators:[{type:Mi,args:[uo]},{type:Ri}]}]};var lo=new Jr("AppId"),po={provide:lo,useFactory:Z,deps:[]},ho=new Jr("Platform Initializer"),fo=new Jr("Platform ID"),vo=new Jr("appBootstrapListener"),mo=new Jr("Application Packages Root URL"),yo=function(){function t(){}return t.prototype.log=function(t){console.log(t)},t.prototype.warn=function(t){console.warn(t)},t}();yo.decorators=[{type:ki}],yo.ctorParameters=function(){return[]};var go=function(){function t(t,e){this.ngModuleFactory=t,this.componentFactories=e}return t}(),_o=function(){function t(){}return t.prototype.compileModuleSync=function(){throw J()},t.prototype.compileModuleAsync=function(){throw J()},t.prototype.compileModuleAndAllComponentsSync=function(){throw J()},t.prototype.compileModuleAndAllComponentsAsync=function(){throw J()},t.prototype.getNgContentSelectors=function(){throw J()},t.prototype.clearCache=function(){},t.prototype.clearCacheFor=function(){},t}();_o.decorators=[{type:ki}],_o.ctorParameters=function(){return[]};var bo=new Jr("compilerOptions"),wo=function(){function t(){}return t.prototype.createCompiler=function(){},t}(),Eo=function(){function t(){}return t.prototype.location=function(){},t.prototype.injector=function(){},t.prototype.instance=function(){},t.prototype.hostView=function(){},t.prototype.changeDetectorRef=function(){},t.prototype.componentType=function(){},t.prototype.destroy=function(){},t.prototype.onDestroy=function(){},t}(),Co=function(){function t(){}return t.prototype.selector=function(){},t.prototype.componentType=function(){},t.prototype.ngContentSelectors=function(){},t.prototype.inputs=function(){},t.prototype.outputs=function(){},t.prototype.create=function(){},t}(),So="ngComponent",xo=function(){function t(){}return t.prototype.resolveComponentFactory=function(t){throw tt(t)},t}(),To=function(){function t(){}return t.prototype.resolveComponentFactory=function(){},t}();To.NULL=new xo;var Po,Ao,Oo=function(){function t(t,e,n){this._parent=e,this._ngModule=n,this._factories=new Map;for(var r=0;r<t.length;r++){var i=t[r];this._factories.set(i.componentType,i)}}return t.prototype.resolveComponentFactory=function(t){var e=this._factories.get(t)||this._parent.resolveComponentFactory(t);return new Mo(e,this._ngModule)},t}(),Mo=function(t){function e(e,n){var r=t.call(this)||this;return r.factory=e,r.ngModule=n,r}return Zr(e,t),Object.defineProperty(e.prototype,"selector",{get:function(){return this.factory.selector},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"componentType",{get:function(){return this.factory.componentType},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"ngContentSelectors",{get:function(){return this.factory.ngContentSelectors},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"inputs",{get:function(){return this.factory.inputs},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"outputs",{get:function(){return this.factory.outputs},enumerable:!0,configurable:!0}),e.prototype.create=function(t,e,n,r){return this.factory.create(t,e,n,r||this.ngModule)},e}(Co),Ro=function(){function t(){}return t.prototype.injector=function(){},t.prototype.componentFactoryResolver=function(){},t.prototype.instance=function(){},t.prototype.destroy=function(){},t.prototype.onDestroy=function(){},t}(),ko=function(){function t(t,e){this._injectorClass=t,this._moduleType=e}return Object.defineProperty(t.prototype,"moduleType",{get:function(){return this._moduleType},enumerable:!0,configurable:!0}),t.prototype.create=function(t){var e=new this._injectorClass(t||Vi.NULL);return e.create(),e},t}(),Io=new Object,No=function(){function t(t,e,n){var r=this;this.parent=t,this._destroyListeners=[],this._destroyed=!1,this.bootstrapFactories=n.map(function(t){return new Mo(t,r)}),this._cmpFactoryResolver=new Oo(e,t.get(To,To.NULL),this)}return t.prototype.create=function(){this.instance=this.createInternal()},t.prototype.createInternal=function(){},t.prototype.get=function(t,e){if(void 0===e&&(e=ji),t===Vi||t===Ro)return this;if(t===To)return this._cmpFactoryResolver;var n=this.getInternal(t,Io);return n===Io?this.parent.get(t,e):n},t.prototype.getInternal=function(){},Object.defineProperty(t.prototype,"injector",{get:function(){return this},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"componentFactoryResolver",{get:function(){return this._cmpFactoryResolver},enumerable:!0,configurable:!0}),t.prototype.destroy=function(){if(this._destroyed)throw new Error("The ng module "+c(this.instance.constructor)+" has already been destroyed.");this._destroyed=!0,this.destroyInternal(),this._destroyListeners.forEach(function(t){return t()})},t.prototype.onDestroy=function(t){this._destroyListeners.push(t)},t.prototype.destroyInternal=function(){},t}(),Do=et(),Lo=Do?nt:function(){return st},jo=Do?rt:function(t,e){return e},Fo=Do?it:function(){return null},Vo=Do?ot:function(){return null},Uo=function(t){function e(e){void 0===e&&(e=!1);var n=t.call(this)||this;return n.__isAsync=e,n}return Zr(e,t),e.prototype.emit=function(e){t.prototype.next.call(this,e)},e.prototype.subscribe=function(e,n,r){var i,o=function(){return null},s=function(){return null};return e&&"object"==typeof e?(i=this.__isAsync?function(t){setTimeout(function(){return e.next(t)})}:function(t){e.next(t)},e.error&&(o=this.__isAsync?function(t){setTimeout(function(){return e.error(t)})}:function(t){e.error(t)}),e.complete&&(s=this.__isAsync?function(){setTimeout(function(){return e.complete()})}:function(){e.complete()})):(i=this.__isAsync?function(t){setTimeout(function(){return e(t)})}:function(t){e(t)},n&&(o=this.__isAsync?function(t){setTimeout(function(){return n(t)})}:function(t){n(t)}),r&&(s=this.__isAsync?function(){setTimeout(function(){return r()})}:function(){r()})),t.prototype.subscribe.call(this,i,o,s)},e}(o.Subject),Bo=function(){function t(t){var e=t.enableLongStackTrace,n=void 0===e?!1:e;if(this._hasPendingMicrotasks=!1,this._hasPendingMacrotasks=!1,this._isStable=!0,this._nesting=0,this._onUnstable=new Uo(!1),this._onMicrotaskEmpty=new Uo(!1),this._onStable=new Uo(!1),this._onErrorEvents=new Uo(!1),"undefined"==typeof Zone)throw new Error("Angular requires Zone.js prolyfill.");Zone.assertZonePatched(),this.outer=this.inner=Zone.current,Zone.wtfZoneSpec&&(this.inner=this.inner.fork(Zone.wtfZoneSpec)),n&&Zone.longStackTraceZoneSpec&&(this.inner=this.inner.fork(Zone.longStackTraceZoneSpec)),this.forkInnerZoneWithAngularBehavior()}return t.isInAngularZone=function(){return Zone.current.get("isAngularZone")===!0},t.assertInAngularZone=function(){if(!t.isInAngularZone())throw new Error("Expected to be in Angular Zone, but it is not!")},t.assertNotInAngularZone=function(){if(t.isInAngularZone())throw new Error("Expected to not be in Angular Zone, but it is!")},t.prototype.run=function(t){return this.inner.run(t)},t.prototype.runGuarded=function(t){return this.inner.runGuarded(t)},t.prototype.runOutsideAngular=function(t){return this.outer.run(t)},Object.defineProperty(t.prototype,"onUnstable",{get:function(){return this._onUnstable},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"onMicrotaskEmpty",{get:function(){return this._onMicrotaskEmpty},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"onStable",{get:function(){return this._onStable},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"onError",{get:function(){return this._onErrorEvents},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isStable",{get:function(){return this._isStable},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"hasPendingMicrotasks",{get:function(){return this._hasPendingMicrotasks},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"hasPendingMacrotasks",{get:function(){return this._hasPendingMacrotasks},enumerable:!0,configurable:!0}),t.prototype.checkStable=function(){var t=this;if(0==this._nesting&&!this._hasPendingMicrotasks&&!this._isStable)try{this._nesting++,this._onMicrotaskEmpty.emit(null)}finally{if(this._nesting--,!this._hasPendingMicrotasks)try{this.runOutsideAngular(function(){return t._onStable.emit(null)})}finally{this._isStable=!0}}},t.prototype.forkInnerZoneWithAngularBehavior=function(){var t=this;this.inner=this.inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:function(e,n,r,i,o,s){try{return t.onEnter(),e.invokeTask(r,i,o,s)}finally{t.onLeave()}},onInvoke:function(e,n,r,i,o,s,a){try{return t.onEnter(),e.invoke(r,i,o,s,a)}finally{t.onLeave()}},onHasTask:function(e,n,r,i){e.hasTask(r,i),n===r&&("microTask"==i.change?t.setHasMicrotask(i.microTask):"macroTask"==i.change&&t.setHasMacrotask(i.macroTask))},onHandleError:function(e,n,r,i){return e.handleError(r,i),t.triggerError(i),!1}})},t.prototype.onEnter=function(){this._nesting++,this._isStable&&(this._isStable=!1,this._onUnstable.emit(null))},t.prototype.onLeave=function(){this._nesting--,this.checkStable()},t.prototype.setHasMicrotask=function(t){this._hasPendingMicrotasks=t,this.checkStable()},t.prototype.setHasMacrotask=function(t){this._hasPendingMacrotasks=t},t.prototype.triggerError=function(t){this._onErrorEvents.emit(t)},t}(),Ho=function(){function t(t){this._ngZone=t,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this._watchAngularEvents()}return t.prototype._watchAngularEvents=function(){var t=this;this._ngZone.onUnstable.subscribe({next:function(){t._didWork=!0,t._isZoneStable=!1}}),this._ngZone.runOutsideAngular(function(){t._ngZone.onStable.subscribe({next:function(){Bo.assertNotInAngularZone(),a(function(){t._isZoneStable=!0,t._runCallbacksIfReady()})}})})},t.prototype.increasePendingRequestCount=function(){return this._pendingCount+=1,this._didWork=!0,this._pendingCount},t.prototype.decreasePendingRequestCount=function(){if(this._pendingCount-=1,this._pendingCount<0)throw new Error("pending async requests below zero");return this._runCallbacksIfReady(),this._pendingCount},t.prototype.isStable=function(){return this._isZoneStable&&0==this._pendingCount&&!this._ngZone.hasPendingMacrotasks},t.prototype._runCallbacksIfReady=function(){var t=this;this.isStable()?a(function(){for(;0!==t._callbacks.length;)t._callbacks.pop()(t._didWork);t._didWork=!1}):this._didWork=!0},t.prototype.whenStable=function(t){this._callbacks.push(t),this._runCallbacksIfReady()},t.prototype.getPendingRequestCount=function(){return this._pendingCount},t.prototype.findBindings=function(){return[]},t.prototype.findProviders=function(){return[]},t}();Ho.decorators=[{type:ki}],Ho.ctorParameters=function(){return[{type:Bo}]};var qo=function(){function t(){this._applications=new Map,Go.addToWindow(this)}return t.prototype.registerApplication=function(t,e){this._applications.set(t,e)},t.prototype.getTestability=function(t){return this._applications.get(t)||null},t.prototype.getAllTestabilities=function(){return Array.from(this._applications.values())},t.prototype.getAllRootElements=function(){return Array.from(this._applications.keys())},t.prototype.findTestabilityInTree=function(t,e){return void 0===e&&(e=!0),Go.findTestabilityInTree(this,t,e)},t}();qo.decorators=[{type:ki}],qo.ctorParameters=function(){return[]};var zo,Wo=function(){function t(){}return t.prototype.addToWindow=function(){},t.prototype.findTestabilityInTree=function(){return null},t}(),Go=new Wo,Ko=!0,Qo=!1,Xo=new Jr("AllowMultipleToken"),$o=function(){function t(t,e){this.name=t,this.token=e}return t}(),Zo=function(){function t(){}return t.prototype.bootstrapModuleFactory=function(){},t.prototype.bootstrapModule=function(){},t.prototype.onDestroy=function(){},t.prototype.injector=function(){},t.prototype.destroy=function(){},t.prototype.destroyed=function(){},t}(),Yo=function(t){function e(e){var n=t.call(this)||this;return n._injector=e,n._modules=[],n._destroyListeners=[],n._destroyed=!1,n}return Zr(e,t),e.prototype.onDestroy=function(t){this._destroyListeners.push(t)},Object.defineProperty(e.prototype,"injector",{get:function(){return this._injector},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"destroyed",{get:function(){return this._destroyed},enumerable:!0,configurable:!0}),e.prototype.destroy=function(){if(this._destroyed)throw new Error("The platform has already been destroyed!");this._modules.slice().forEach(function(t){return t.destroy()}),this._destroyListeners.forEach(function(t){return t()}),this._destroyed=!0},e.prototype.bootstrapModuleFactory=function(t){return this._bootstrapModuleFactoryWithZone(t)},e.prototype._bootstrapModuleFactoryWithZone=function(t,e){var n=this;return e||(e=new Bo({enableLongStackTrace:ct()})),e.run(function(){var r=oo.resolveAndCreate([{provide:Bo,useValue:e}],n.injector),i=t.create(r),o=i.injector.get(zi,null);if(!o)throw new Error("No ErrorHandler. Is platform module (BrowserModule) included?");return i.onDestroy(function(){return mt(n._modules,i)}),e.onError.subscribe({next:function(t){o.handleError(t)}}),vt(o,function(){var t=i.injector.get(co);return t.donePromise.then(function(){return n._moduleDoBootstrap(i),i})})})},e.prototype.bootstrapModule=function(t,e){return void 0===e&&(e=[]),this._bootstrapModuleWithZone(t,e)},e.prototype._bootstrapModuleWithZone=function(t,e,n){var r=this;void 0===e&&(e=[]);var i=this.injector.get(wo),o=i.createCompiler(Array.isArray(e)?e:[e]);return o.compileModuleAsync(t).then(function(t){return r._bootstrapModuleFactoryWithZone(t,n)})},e.prototype._moduleDoBootstrap=function(t){var e=t.injector.get(Jo);if(t.bootstrapFactories.length>0)t.bootstrapFactories.forEach(function(t){return e.bootstrap(t)});else{if(!t.instance.ngDoBootstrap)throw new Error("The module "+c(t.instance.constructor)+' was bootstrapped, but it does not declare "@NgModule.bootstrap" components nor a "ngDoBootstrap" method. Please define one of these.');t.instance.ngDoBootstrap(e)}this._modules.push(t)},e}(Zo);Yo.decorators=[{type:ki}],Yo.ctorParameters=function(){return[{type:Vi}]};var Jo=function(){function t(){}return t.prototype.bootstrap=function(){},t.prototype.tick=function(){},t.prototype.componentTypes=function(){},t.prototype.components=function(){},t.prototype.attachView=function(){},t.prototype.detachView=function(){},t.prototype.viewCount=function(){},t.prototype.isStable=function(){},t}(),ts=function(t){function i(i,o,s,u,c,l){var p=t.call(this)||this;p._zone=i,p._console=o,p._injector=s,p._exceptionHandler=u,p._componentFactoryResolver=c,p._initStatus=l,p._bootstrapListeners=[],p._rootComponents=[],p._rootComponentTypes=[],p._views=[],p._runningTick=!1,p._enforceNoNewChanges=!1,p._stable=!0,p._enforceNoNewChanges=ct(),p._zone.onMicrotaskEmpty.subscribe({next:function(){p._zone.run(function(){p.tick()})}});var h=new e.Observable(function(t){p._stable=p._zone.isStable&&!p._zone.hasPendingMacrotasks&&!p._zone.hasPendingMicrotasks,p._zone.runOutsideAngular(function(){t.next(p._stable),t.complete()})}),f=new e.Observable(function(t){var e=p._zone.onStable.subscribe(function(){Bo.assertNotInAngularZone(),a(function(){p._stable||p._zone.hasPendingMacrotasks||p._zone.hasPendingMicrotasks||(p._stable=!0,t.next(!0))})}),n=p._zone.onUnstable.subscribe(function(){Bo.assertInAngularZone(),p._stable&&(p._stable=!1,p._zone.runOutsideAngular(function(){t.next(!1)}))});return function(){e.unsubscribe(),n.unsubscribe()}});return p._isStable=n.merge(h,r.share.call(f)),p}return Zr(i,t),i.prototype.attachView=function(t){var e=t;this._views.push(e),e.attachToAppRef(this)},i.prototype.detachView=function(t){var e=t;mt(this._views,e),e.detachFromAppRef()},i.prototype.bootstrap=function(t){var e=this;if(!this._initStatus.done)throw new Error("Cannot bootstrap as there are still asynchronous initializers running. Bootstrap components in the `ngDoBootstrap` method of the root module.");var n;n=t instanceof Co?t:this._componentFactoryResolver.resolveComponentFactory(t),this._rootComponentTypes.push(n.componentType);var r=n instanceof Mo?null:this._injector.get(Ro),i=n.create(Vi.NULL,[],n.selector,r);i.onDestroy(function(){e._unloadComponent(i)});var o=i.injector.get(Ho,null);return o&&i.injector.get(qo).registerApplication(i.location.nativeElement,o),this._loadComponent(i),ct()&&this._console.log("Angular is running in the development mode. Call enableProdMode() to enable the production mode."),i},i.prototype._loadComponent=function(t){this.attachView(t.hostView),this.tick(),this._rootComponents.push(t);var e=this._injector.get(vo,[]).concat(this._bootstrapListeners);e.forEach(function(e){return e(t)})},i.prototype._unloadComponent=function(t){this.detachView(t.hostView),mt(this._rootComponents,t)},i.prototype.tick=function(){if(this._runningTick)throw new Error("ApplicationRef.tick is called recursively");var t=i._tickScope();try{this._runningTick=!0,this._views.forEach(function(t){return t.detectChanges()}),this._enforceNoNewChanges&&this._views.forEach(function(t){return t.checkNoChanges()})}finally{this._runningTick=!1,jo(t)}},i.prototype.ngOnDestroy=function(){this._views.slice().forEach(function(t){return t.destroy()})},Object.defineProperty(i.prototype,"viewCount",{get:function(){return this._views.length},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"componentTypes",{get:function(){return this._rootComponentTypes},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"components",{get:function(){return this._rootComponents},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"isStable",{get:function(){return this._isStable},enumerable:!0,configurable:!0}),i}(Jo);ts._tickScope=Lo("ApplicationRef#tick()"),ts.decorators=[{type:ki}],ts.ctorParameters=function(){return[{type:Bo},{type:yo},{type:Vi},{type:zi},{type:To},{type:co}]};var es=function(){function t(t,e,n,r,i,o){this.id=t,this.templateUrl=e,this.slotCount=n,this.encapsulation=r,this.styles=i,this.animations=o}return t}(),ns=function(){function t(){}return t.prototype.injector=function(){},t.prototype.component=function(){},t.prototype.providerTokens=function(){},t.prototype.references=function(){},t.prototype.context=function(){},t.prototype.source=function(){},t}(),rs=function(){function t(){}return t.prototype.selectRootElement=function(){},t.prototype.createElement=function(){},t.prototype.createViewRoot=function(){},t.prototype.createTemplateAnchor=function(){},t.prototype.createText=function(){},t.prototype.projectNodes=function(){},t.prototype.attachViewAfter=function(){},t.prototype.detachView=function(){},t.prototype.destroyView=function(){},t.prototype.listen=function(){},t.prototype.listenGlobal=function(){},t.prototype.setElementProperty=function(){},t.prototype.setElementAttribute=function(){},t.prototype.setBindingDebugInfo=function(){},t.prototype.setElementClass=function(){},t.prototype.setElementStyle=function(){},t.prototype.invokeElementMethod=function(){},t.prototype.setText=function(){},t.prototype.animate=function(){},t}(),is=(new Jr("Renderer2Interceptor"),function(){function t(){}return t.prototype.renderComponent=function(){},t}()),os=function(){function t(){}return t.prototype.createRenderer=function(){},t}(),ss={};ss.Important=1,ss.DashCase=2,ss[ss.Important]="Important",ss[ss.DashCase]="DashCase";var as=function(){function t(){}return t.prototype.data=function(){},t.prototype.destroy=function(){},t.prototype.createElement=function(){},t.prototype.createComment=function(){},t.prototype.createText=function(){},t.prototype.appendChild=function(){},t.prototype.insertBefore=function(){},t.prototype.removeChild=function(){},t.prototype.selectRootElement=function(){},t.prototype.parentNode=function(){},t.prototype.nextSibling=function(){},t.prototype.setAttribute=function(){},t.prototype.removeAttribute=function(){},t.prototype.addClass=function(){},t.prototype.removeClass=function(){},t.prototype.setStyle=function(){},t.prototype.removeStyle=function(){},t.prototype.setProperty=function(){},t.prototype.setValue=function(){},t.prototype.listen=function(){},t}(),us=function(){function t(t){this.nativeElement=t}return t}(),cs=function(){function t(){}return t.prototype.load=function(){},t}(),ls=new Map,ps=function(){function t(){this._dirty=!0,this._results=[],this._emitter=new Uo}return Object.defineProperty(t.prototype,"changes",{get:function(){return this._emitter},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"length",{get:function(){return this._results.length},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"first",{get:function(){return this._results[0]},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"last",{get:function(){return this._results[this.length-1]},enumerable:!0,configurable:!0}),t.prototype.map=function(t){return this._results.map(t)},t.prototype.filter=function(t){return this._results.filter(t)},t.prototype.find=function(t){return this._results.find(t)},t.prototype.reduce=function(t,e){return this._results.reduce(t,e)},t.prototype.forEach=function(t){this._results.forEach(t)},t.prototype.some=function(t){return this._results.some(t)},t.prototype.toArray=function(){return this._results.slice()},t.prototype[s()]=function(){return this._results[s()]()},t.prototype.toString=function(){return this._results.toString()},t.prototype.reset=function(t){this._results=_t(t),this._dirty=!1},t.prototype.notifyOnChanges=function(){this._emitter.emit(this)},t.prototype.setDirty=function(){this._dirty=!0},Object.defineProperty(t.prototype,"dirty",{get:function(){return this._dirty},enumerable:!0,configurable:!0}),t}(),hs="#",fs="NgFactory",ds=function(){function t(){}return t}(),vs={factoryPathPrefix:"",factoryPathSuffix:".ngfactory"},ms=function(){function t(t,e){this._compiler=t,this._config=e||vs}return t.prototype.load=function(t){var e=this._compiler instanceof _o;return e?this.loadFactory(t):this.loadAndCompile(t)},t.prototype.loadAndCompile=function(t){var e=this,n=t.split(hs),r=n[0],i=n[1];return void 0===i&&(i="default"),System["import"](r).then(function(t){return t[i]}).then(function(t){return bt(t,r,i)}).then(function(t){return e._compiler.compileModuleAsync(t)})},t.prototype.loadFactory=function(t){var e=t.split(hs),n=e[0],r=e[1],i=fs;return void 0===r&&(r="default",i=""),System["import"](this._config.factoryPathPrefix+n+this._config.factoryPathSuffix).then(function(t){return t[r+i]}).then(function(t){return bt(t,n,r)})},t}();ms.decorators=[{type:ki}],ms.ctorParameters=function(){return[{type:_o},{type:ds,decorators:[{type:Ri}]}]};var ys=function(){function t(){}return t.prototype.elementRef=function(){},t.prototype.createEmbeddedView=function(){},t}(),gs=function(){function t(){}return t.prototype.element=function(){},t.prototype.injector=function(){},t.prototype.parentInjector=function(){},t.prototype.clear=function(){},t.prototype.get=function(){},t.prototype.length=function(){},t.prototype.createEmbeddedView=function(){},t.prototype.createComponent=function(){},t.prototype.insert=function(){},t.prototype.move=function(){},t.prototype.indexOf=function(){},t.prototype.remove=function(){},t.prototype.detach=function(){},t}(),_s=function(){function t(){}return t.prototype.markForCheck=function(){},t.prototype.detach=function(){},t.prototype.detectChanges=function(){},t.prototype.checkNoChanges=function(){},t.prototype.reattach=function(){},t}(),bs=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Zr(e,t),e.prototype.destroy=function(){},e.prototype.destroyed=function(){},e.prototype.onDestroy=function(){},e}(_s),ws=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Zr(e,t),e.prototype.context=function(){},e.prototype.rootNodes=function(){},e}(bs),Es=function(){function t(t,e){this.name=t,this.callback=e}return t}(),Cs=function(){function t(t,e,n){this._debugContext=n,this.nativeNode=t,e&&e instanceof Ss?e.addChild(this):this.parent=null,this.listeners=[]}return Object.defineProperty(t.prototype,"injector",{get:function(){return this._debugContext.injector},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"componentInstance",{get:function(){return this._debugContext.component},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"context",{get:function(){return this._debugContext.context},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"references",{get:function(){return this._debugContext.references},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"providerTokens",{get:function(){return this._debugContext.providerTokens},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"source",{get:function(){return"Deprecated since v4"},enumerable:!0,configurable:!0}),t}(),Ss=function(t){function e(e,n,r){var i=t.call(this,e,n,r)||this;return i.properties={},i.attributes={},i.classes={},i.styles={},i.childNodes=[],i.nativeElement=e,i}return Zr(e,t),e.prototype.addChild=function(t){t&&(this.childNodes.push(t),t.parent=this)},e.prototype.removeChild=function(t){var e=this.childNodes.indexOf(t);-1!==e&&(t.parent=null,this.childNodes.splice(e,1))},e.prototype.insertChildrenAfter=function(t,e){var n=this,r=this.childNodes.indexOf(t);-1!==r&&((i=this.childNodes).splice.apply(i,[r+1,0].concat(e)),e.forEach(function(t){t.parent&&t.parent.removeChild(t),t.parent=n}));var i},e.prototype.insertBefore=function(t,e){var n=this.childNodes.indexOf(t);-1===n?this.addChild(e):(e.parent&&e.parent.removeChild(e),e.parent=this,this.childNodes.splice(n,0,e))},e.prototype.query=function(t){var e=this.queryAll(t);return e[0]||null},e.prototype.queryAll=function(t){var e=[];return Et(this,t,e),e},e.prototype.queryAllNodes=function(t){var e=[];return Ct(this,t,e),e},Object.defineProperty(e.prototype,"children",{get:function(){return this.childNodes.filter(function(t){return t instanceof e})},enumerable:!0,configurable:!0}),e.prototype.triggerEventHandler=function(t,e){this.listeners.forEach(function(n){n.name==t&&n.callback(e)})},e}(Cs),xs=new Map,Ts=function(){function t(t){this.wrapped=t}return t.wrap=function(e){return new t(e)},t}(),Ps=function(){function t(){this.hasWrappedValue=!1}return t.prototype.unwrap=function(t){return t instanceof Ts?(this.hasWrappedValue=!0,t.wrapped):t},t.prototype.reset=function(){this.hasWrappedValue=!1},t}(),As=function(){function t(t,e,n){this.previousValue=t,this.currentValue=e,this.firstChange=n}return t.prototype.isFirstChange=function(){return this.firstChange},t}(),Os=function(){function t(){}return t.prototype.supports=function(t){return At(t)},t.prototype.create=function(t,e){return new Rs(e||t)},t}(),Ms=function(t,e){return e},Rs=function(){function t(t){this._length=0,this._collection=null,this._linkedRecords=null,this._unlinkedRecords=null,this._previousItHead=null,this._itHead=null,this._itTail=null,this._additionsHead=null, -this._additionsTail=null,this._movesHead=null,this._movesTail=null,this._removalsHead=null,this._removalsTail=null,this._identityChangesHead=null,this._identityChangesTail=null,this._trackByFn=t||Ms}return Object.defineProperty(t.prototype,"collection",{get:function(){return this._collection},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"length",{get:function(){return this._length},enumerable:!0,configurable:!0}),t.prototype.forEachItem=function(t){var e;for(e=this._itHead;null!==e;e=e._next)t(e)},t.prototype.forEachOperation=function(t){for(var e=this._itHead,n=this._removalsHead,r=0,i=null;e||n;){var o=!n||e&&e.currentIndex<kt(n,r,i)?e:n,s=kt(o,r,i),a=o.currentIndex;if(o===n)r--,n=n._nextRemoved;else if(e=e._next,null==o.previousIndex)r++;else{i||(i=[]);var u=s-r,c=a-r;if(u!=c){for(var l=0;u>l;l++){var p=l<i.length?i[l]:i[l]=0,h=p+l;h>=c&&u>h&&(i[l]=p+1)}var f=o.previousIndex;i[f]=c-u}}s!==a&&t(o,s,a)}},t.prototype.forEachPreviousItem=function(t){var e;for(e=this._previousItHead;null!==e;e=e._nextPrevious)t(e)},t.prototype.forEachAddedItem=function(t){var e;for(e=this._additionsHead;null!==e;e=e._nextAdded)t(e)},t.prototype.forEachMovedItem=function(t){var e;for(e=this._movesHead;null!==e;e=e._nextMoved)t(e)},t.prototype.forEachRemovedItem=function(t){var e;for(e=this._removalsHead;null!==e;e=e._nextRemoved)t(e)},t.prototype.forEachIdentityChange=function(t){var e;for(e=this._identityChangesHead;null!==e;e=e._nextIdentityChange)t(e)},t.prototype.diff=function(t){if(null==t&&(t=[]),!At(t))throw new Error("Error trying to diff '"+c(t)+"'. Only arrays and iterables are allowed");return this.check(t)?this:null},t.prototype.onDestroy=function(){},t.prototype.check=function(t){var e=this;this._reset();var n,r,i,o=this._itHead,s=!1;if(Array.isArray(t)){this._length=t.length;for(var a=0;a<this._length;a++)r=t[a],i=this._trackByFn(a,r),null!==o&&u(o.trackById,i)?(s&&(o=this._verifyReinsertion(o,r,i,a)),u(o.item,r)||this._addIdentityChange(o,r)):(o=this._mismatch(o,r,i,a),s=!0),o=o._next}else n=0,Mt(t,function(t){i=e._trackByFn(n,t),null!==o&&u(o.trackById,i)?(s&&(o=e._verifyReinsertion(o,t,i,n)),u(o.item,t)||e._addIdentityChange(o,t)):(o=e._mismatch(o,t,i,n),s=!0),o=o._next,n++}),this._length=n;return this._truncate(o),this._collection=t,this.isDirty},Object.defineProperty(t.prototype,"isDirty",{get:function(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead},enumerable:!0,configurable:!0}),t.prototype._reset=function(){if(this.isDirty){var t=void 0,e=void 0;for(t=this._previousItHead=this._itHead;null!==t;t=t._next)t._nextPrevious=t._next;for(t=this._additionsHead;null!==t;t=t._nextAdded)t.previousIndex=t.currentIndex;for(this._additionsHead=this._additionsTail=null,t=this._movesHead;null!==t;t=e)t.previousIndex=t.currentIndex,e=t._nextMoved;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}},t.prototype._mismatch=function(t,e,n,r){var i;return null===t?i=this._itTail:(i=t._prev,this._remove(t)),t=null===this._linkedRecords?null:this._linkedRecords.get(n,r),null!==t?(u(t.item,e)||this._addIdentityChange(t,e),this._moveAfter(t,i,r)):(t=null===this._unlinkedRecords?null:this._unlinkedRecords.get(n,null),null!==t?(u(t.item,e)||this._addIdentityChange(t,e),this._reinsertAfter(t,i,r)):t=this._addAfter(new ks(e,n),i,r)),t},t.prototype._verifyReinsertion=function(t,e,n,r){var i=null===this._unlinkedRecords?null:this._unlinkedRecords.get(n,null);return null!==i?t=this._reinsertAfter(i,t._prev,r):t.currentIndex!=r&&(t.currentIndex=r,this._addToMoves(t,r)),t},t.prototype._truncate=function(t){for(;null!==t;){var e=t._next;this._addToRemovals(this._unlink(t)),t=e}null!==this._unlinkedRecords&&this._unlinkedRecords.clear(),null!==this._additionsTail&&(this._additionsTail._nextAdded=null),null!==this._movesTail&&(this._movesTail._nextMoved=null),null!==this._itTail&&(this._itTail._next=null),null!==this._removalsTail&&(this._removalsTail._nextRemoved=null),null!==this._identityChangesTail&&(this._identityChangesTail._nextIdentityChange=null)},t.prototype._reinsertAfter=function(t,e,n){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(t);var r=t._prevRemoved,i=t._nextRemoved;return null===r?this._removalsHead=i:r._nextRemoved=i,null===i?this._removalsTail=r:i._prevRemoved=r,this._insertAfter(t,e,n),this._addToMoves(t,n),t},t.prototype._moveAfter=function(t,e,n){return this._unlink(t),this._insertAfter(t,e,n),this._addToMoves(t,n),t},t.prototype._addAfter=function(t,e,n){return this._insertAfter(t,e,n),this._additionsTail=null===this._additionsTail?this._additionsHead=t:this._additionsTail._nextAdded=t,t},t.prototype._insertAfter=function(t,e,n){var r=null===e?this._itHead:e._next;return t._next=r,t._prev=e,null===r?this._itTail=t:r._prev=t,null===e?this._itHead=t:e._next=t,null===this._linkedRecords&&(this._linkedRecords=new Ns),this._linkedRecords.put(t),t.currentIndex=n,t},t.prototype._remove=function(t){return this._addToRemovals(this._unlink(t))},t.prototype._unlink=function(t){null!==this._linkedRecords&&this._linkedRecords.remove(t);var e=t._prev,n=t._next;return null===e?this._itHead=n:e._next=n,null===n?this._itTail=e:n._prev=e,t},t.prototype._addToMoves=function(t,e){return t.previousIndex===e?t:(this._movesTail=null===this._movesTail?this._movesHead=t:this._movesTail._nextMoved=t,t)},t.prototype._addToRemovals=function(t){return null===this._unlinkedRecords&&(this._unlinkedRecords=new Ns),this._unlinkedRecords.put(t),t.currentIndex=null,t._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=t,t._prevRemoved=null):(t._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=t),t},t.prototype._addIdentityChange=function(t,e){return t.item=e,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=t:this._identityChangesTail._nextIdentityChange=t,t},t.prototype.toString=function(){var t=[];this.forEachItem(function(e){return t.push(e)});var e=[];this.forEachPreviousItem(function(t){return e.push(t)});var n=[];this.forEachAddedItem(function(t){return n.push(t)});var r=[];this.forEachMovedItem(function(t){return r.push(t)});var i=[];this.forEachRemovedItem(function(t){return i.push(t)});var o=[];return this.forEachIdentityChange(function(t){return o.push(t)}),"collection: "+t.join(", ")+"\nprevious: "+e.join(", ")+"\nadditions: "+n.join(", ")+"\nmoves: "+r.join(", ")+"\nremovals: "+i.join(", ")+"\nidentityChanges: "+o.join(", ")+"\n"},t}(),ks=function(){function t(t,e){this.item=t,this.trackById=e,this.currentIndex=null,this.previousIndex=null,this._nextPrevious=null,this._prev=null,this._next=null,this._prevDup=null,this._nextDup=null,this._prevRemoved=null,this._nextRemoved=null,this._nextAdded=null,this._nextMoved=null,this._nextIdentityChange=null}return t.prototype.toString=function(){return this.previousIndex===this.currentIndex?c(this.item):c(this.item)+"["+c(this.previousIndex)+"->"+c(this.currentIndex)+"]"},t}(),Is=function(){function t(){this._head=null,this._tail=null}return t.prototype.add=function(t){null===this._head?(this._head=this._tail=t,t._nextDup=null,t._prevDup=null):(this._tail._nextDup=t,t._prevDup=this._tail,t._nextDup=null,this._tail=t)},t.prototype.get=function(t,e){var n;for(n=this._head;null!==n;n=n._nextDup)if((null===e||e<n.currentIndex)&&u(n.trackById,t))return n;return null},t.prototype.remove=function(t){var e=t._prevDup,n=t._nextDup;return null===e?this._head=n:e._nextDup=n,null===n?this._tail=e:n._prevDup=e,null===this._head},t}(),Ns=function(){function t(){this.map=new Map}return t.prototype.put=function(t){var e=t.trackById,n=this.map.get(e);n||(n=new Is,this.map.set(e,n)),n.add(t)},t.prototype.get=function(t,e){var n=t,r=this.map.get(n);return r?r.get(t,e):null},t.prototype.remove=function(t){var e=t.trackById,n=this.map.get(e);return n.remove(t)&&this.map["delete"](e),t},Object.defineProperty(t.prototype,"isEmpty",{get:function(){return 0===this.map.size},enumerable:!0,configurable:!0}),t.prototype.clear=function(){this.map.clear()},t.prototype.toString=function(){return"_DuplicateMap("+c(this.map)+")"},t}(),Ds=function(){function t(){}return t.prototype.supports=function(t){return t instanceof Map||Rt(t)},t.prototype.create=function(){return new Ls},t}(),Ls=function(){function t(){this._records=new Map,this._mapHead=null,this._appendAfter=null,this._previousMapHead=null,this._changesHead=null,this._changesTail=null,this._additionsHead=null,this._additionsTail=null,this._removalsHead=null,this._removalsTail=null}return Object.defineProperty(t.prototype,"isDirty",{get:function(){return null!==this._additionsHead||null!==this._changesHead||null!==this._removalsHead},enumerable:!0,configurable:!0}),t.prototype.forEachItem=function(t){var e;for(e=this._mapHead;null!==e;e=e._next)t(e)},t.prototype.forEachPreviousItem=function(t){var e;for(e=this._previousMapHead;null!==e;e=e._nextPrevious)t(e)},t.prototype.forEachChangedItem=function(t){var e;for(e=this._changesHead;null!==e;e=e._nextChanged)t(e)},t.prototype.forEachAddedItem=function(t){var e;for(e=this._additionsHead;null!==e;e=e._nextAdded)t(e)},t.prototype.forEachRemovedItem=function(t){var e;for(e=this._removalsHead;null!==e;e=e._nextRemoved)t(e)},t.prototype.diff=function(t){if(t){if(!(t instanceof Map||Rt(t)))throw new Error("Error trying to diff '"+c(t)+"'. Only maps and objects are allowed")}else t=new Map;return this.check(t)?this:null},t.prototype.onDestroy=function(){},t.prototype.check=function(t){var e=this;this._reset();var n=this._mapHead;if(this._appendAfter=null,this._forEach(t,function(t,r){if(n&&n.key===r)e._maybeAddToChanges(n,t),e._appendAfter=n,n=n._next;else{var i=e._getOrCreateRecordForKey(r,t);n=e._insertBeforeOrAppend(n,i)}}),n){n._prev&&(n._prev._next=null),this._removalsHead=n,this._removalsTail=n;for(var r=n;null!==r;r=r._nextRemoved)r===this._mapHead&&(this._mapHead=null),this._records["delete"](r.key),r._nextRemoved=r._next,r.previousValue=r.currentValue,r.currentValue=null,r._prev=null,r._next=null}return this.isDirty},t.prototype._insertBeforeOrAppend=function(t,e){if(t){var n=t._prev;return e._next=t,e._prev=n,t._prev=e,n&&(n._next=e),t===this._mapHead&&(this._mapHead=e),this._appendAfter=t,t}return this._appendAfter?(this._appendAfter._next=e,e._prev=this._appendAfter):this._mapHead=e,this._appendAfter=e,null},t.prototype._getOrCreateRecordForKey=function(t,e){if(this._records.has(t)){var n=this._records.get(t);this._maybeAddToChanges(n,e);var r=n._prev,i=n._next;return r&&(r._next=i),i&&(i._prev=r),n._next=null,n._prev=null,n}var o=new js(t);return this._records.set(t,o),o.currentValue=e,this._addToAdditions(o),o},t.prototype._reset=function(){if(this.isDirty){var t=void 0;for(this._previousMapHead=this._mapHead,t=this._previousMapHead;null!==t;t=t._next)t._nextPrevious=t._next;for(t=this._changesHead;null!==t;t=t._nextChanged)t.previousValue=t.currentValue;for(t=this._additionsHead;null!=t;t=t._nextAdded)t.previousValue=t.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=this._removalsTail=null}},t.prototype._maybeAddToChanges=function(t,e){u(e,t.currentValue)||(t.previousValue=t.currentValue,t.currentValue=e,this._addToChanges(t))},t.prototype._addToAdditions=function(t){null===this._additionsHead?this._additionsHead=this._additionsTail=t:(this._additionsTail._nextAdded=t,this._additionsTail=t)},t.prototype._addToChanges=function(t){null===this._changesHead?this._changesHead=this._changesTail=t:(this._changesTail._nextChanged=t,this._changesTail=t)},t.prototype.toString=function(){var t,e=[],n=[],r=[],i=[],o=[];for(t=this._mapHead;null!==t;t=t._next)e.push(c(t));for(t=this._previousMapHead;null!==t;t=t._nextPrevious)n.push(c(t));for(t=this._changesHead;null!==t;t=t._nextChanged)r.push(c(t));for(t=this._additionsHead;null!==t;t=t._nextAdded)i.push(c(t));for(t=this._removalsHead;null!==t;t=t._nextRemoved)o.push(c(t));return"map: "+e.join(", ")+"\nprevious: "+n.join(", ")+"\nadditions: "+i.join(", ")+"\nchanges: "+r.join(", ")+"\nremovals: "+o.join(", ")+"\n"},t.prototype._forEach=function(t,e){t instanceof Map?t.forEach(e):Object.keys(t).forEach(function(n){return e(t[n],n)})},t}(),js=function(){function t(t){this.key=t,this.previousValue=null,this.currentValue=null,this._nextPrevious=null,this._next=null,this._prev=null,this._nextAdded=null,this._nextRemoved=null,this._nextChanged=null}return t.prototype.toString=function(){return u(this.previousValue,this.currentValue)?c(this.key):c(this.key)+"["+c(this.previousValue)+"->"+c(this.currentValue)+"]"},t}(),Fs=function(){function t(t){this.factories=t}return t.create=function(e,n){if(null!=n){var r=n.factories.slice();return e=e.concat(r),new t(e)}return new t(e)},t.extend=function(e){return{provide:t,useFactory:function(n){if(!n)throw new Error("Cannot extend IterableDiffers without a parent injector");return t.create(e,n)},deps:[[t,new Ni,new Ri]]}},t.prototype.find=function(t){var e=this.factories.find(function(e){return e.supports(t)});if(null!=e)return e;throw new Error("Cannot find a differ supporting object '"+t+"' of type '"+It(t)+"'")},t}(),Vs=function(){function t(t){this.factories=t}return t.create=function(e,n){if(n){var r=n.factories.slice();e=e.concat(r)}return new t(e)},t.extend=function(e){return{provide:t,useFactory:function(n){if(!n)throw new Error("Cannot extend KeyValueDiffers without a parent injector");return t.create(e,n)},deps:[[t,new Ni,new Ri]]}},t.prototype.find=function(t){var e=this.factories.find(function(e){return e.supports(t)});if(e)return e;throw new Error("Cannot find a differ supporting object '"+t+"'")},t}(),Us=[new Ds],Bs=[new Os],Hs=new Fs(Bs),qs=new Vs(Us),zs=[{provide:fo,useValue:"unknown"},Yo,{provide:Zo,useExisting:Yo},{provide:Yi,useFactory:Nt,deps:[]},{provide:Zi,useExisting:Yi},qo,yo],Ws=pt(null,"core",zs),Gs=new Jr("LocaleId"),Ks=new Jr("Translations"),Qs=new Jr("TranslationsFormat"),Xs={};Xs.Error=0,Xs.Warning=1,Xs.Ignore=2,Xs[Xs.Error]="Error",Xs[Xs.Warning]="Warning",Xs[Xs.Ignore]="Ignore";var $s={};$s.NONE=0,$s.HTML=1,$s.STYLE=2,$s.SCRIPT=3,$s.URL=4,$s.RESOURCE_URL=5,$s[$s.NONE]="NONE",$s[$s.HTML]="HTML",$s[$s.STYLE]="STYLE",$s[$s.SCRIPT]="SCRIPT",$s[$s.URL]="URL",$s[$s.RESOURCE_URL]="RESOURCE_URL";var Zs=function(){function t(){}return t.prototype.sanitize=function(){},t}(),Ys=function(){function t(){}return t.prototype.view=function(){},t.prototype.nodeIndex=function(){},t.prototype.injector=function(){},t.prototype.component=function(){},t.prototype.providerTokens=function(){},t.prototype.references=function(){},t.prototype.context=function(){},t.prototype.componentRenderElement=function(){},t.prototype.renderNode=function(){},t.prototype.logError=function(){for(var t=[],e=1;e<arguments.length;e++)t[e-1]=arguments[e]},t}(),Js={setCurrentNode:void 0,createRootView:void 0,createEmbeddedView:void 0,checkAndUpdateView:void 0,checkNoChangesView:void 0,destroyView:void 0,resolveDep:void 0,createDebugContext:void 0,handleEvent:void 0,updateDirectives:void 0,updateRenderer:void 0,dirtyParentQueries:void 0},ta=function(){},ea=new Map,na="$$undefined",ra="$$empty",ia=0,oa=new WeakMap,sa=/^:([^:]+):(.+)$/,aa=[],ua={},ca=new Object,la=function(t){function e(e,n,r,i,o,s){var a=t.call(this)||this;return a.selector=e,a.componentType=n,a._inputs=i,a._outputs=o,a.ngContentSelectors=s,a.viewDefFactory=r,a}return Zr(e,t),Object.defineProperty(e.prototype,"inputs",{get:function(){var t=[];for(var e in this._inputs){var n=this._inputs[e];t.push({propName:e,templateName:n})}return t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"outputs",{get:function(){var t=[];for(var e in this._outputs){var n=this._outputs[e];t.push({propName:e,templateName:n})}return t},enumerable:!0,configurable:!0}),e.prototype.create=function(t,e,n,r){if(!r)throw new Error("ngModule should be provided");var i=le(this.viewDefFactory),o=i.nodes[0].element.componentProvider.index,s=Js.createRootView(t,e||[],n,i,r,ca),a=jt(s,o).instance;return s.renderer.setAttribute(Lt(s,0).renderElement,"ng-version",Oi.full),new pa(s,new fa(s),a)},e}(Co),pa=function(t){function e(e,n,r){var i=t.call(this)||this;return i._view=e,i._viewRef=n,i._component=r,i._elDef=i._view.def.nodes[0],i}return Zr(e,t),Object.defineProperty(e.prototype,"location",{get:function(){return new us(Lt(this._view,this._elDef.index).renderElement)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"injector",{get:function(){return new va(this._view,this._elDef)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"instance",{get:function(){return this._component},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"hostView",{get:function(){return this._viewRef},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"changeDetectorRef",{get:function(){return this._viewRef},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"componentType",{get:function(){return this._component.constructor},enumerable:!0,configurable:!0}),e.prototype.destroy=function(){this._viewRef.destroy()},e.prototype.onDestroy=function(t){this._viewRef.onDestroy(t)},e}(Eo),ha=function(){function t(t,e,n){this._view=t,this._elDef=e,this._data=n,this._embeddedViews=[]}return Object.defineProperty(t.prototype,"element",{get:function(){return new us(this._data.renderElement)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"injector",{get:function(){return new va(this._view,this._elDef)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"parentInjector",{get:function(){for(var t=this._view,e=this._elDef.parent;!e&&t;)e=ne(t),t=t.parent;return t?new va(t,e):new va(this._view,null)},enumerable:!0,configurable:!0}),t.prototype.clear=function(){for(var t=this._embeddedViews.length,e=t-1;e>=0;e--){var n=je(this._data,e);Js.destroyView(n)}},t.prototype.get=function(t){var e=this._embeddedViews[t];if(e){var n=new fa(e);return n.attachToViewContainerRef(this),n}return null},Object.defineProperty(t.prototype,"length",{get:function(){return this._embeddedViews.length},enumerable:!0,configurable:!0}),t.prototype.createEmbeddedView=function(t,e,n){var r=t.createEmbeddedView(e||{});return this.insert(r,n),r},t.prototype.createComponent=function(t,e,n,r,i){var o=n||this.parentInjector;i||t instanceof Mo||(i=o.get(Ro));var s=t.create(o,r,void 0,i);return this.insert(s.hostView,e),s},t.prototype.insert=function(t,e){var n=t,r=n._view;return Le(this._view,this._data,e,r),n.attachToViewContainerRef(this),t},t.prototype.move=function(t,e){var n=this._embeddedViews.indexOf(t._view);return Fe(this._data,n,e),t},t.prototype.indexOf=function(t){return this._embeddedViews.indexOf(t._view)},t.prototype.remove=function(t){var e=je(this._data,t);e&&Js.destroyView(e)},t.prototype.detach=function(t){var e=je(this._data,t);return e?new fa(e):null},t}(),fa=function(){function t(t){this._view=t,this._viewContainerRef=null,this._appRef=null}return Object.defineProperty(t.prototype,"rootNodes",{get:function(){return pe(this._view)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"context",{get:function(){return this._view.context},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"destroyed",{get:function(){return 0!==(8&this._view.state)},enumerable:!0,configurable:!0}),t.prototype.markForCheck=function(){Jt(this._view)},t.prototype.detach=function(){this._view.state&=-3},t.prototype.detectChanges=function(){Js.checkAndUpdateView(this._view)},t.prototype.checkNoChanges=function(){Js.checkNoChangesView(this._view)},t.prototype.reattach=function(){this._view.state|=2},t.prototype.onDestroy=function(t){this._view.disposables||(this._view.disposables=[]),this._view.disposables.push(t)},t.prototype.destroy=function(){this._appRef?this._appRef.detachView(this):this._viewContainerRef&&this._viewContainerRef.detach(this._viewContainerRef.indexOf(this)),Js.destroyView(this._view)},t.prototype.detachFromAppRef=function(){this._appRef=null,Ue(this._view),Js.dirtyParentQueries(this._view)},t.prototype.attachToAppRef=function(t){if(this._viewContainerRef)throw new Error("This view is already attached to a ViewContainer!");this._appRef=t},t.prototype.attachToViewContainerRef=function(t){if(this._appRef)throw new Error("This view is already attached directly to the ApplicationRef!");this._viewContainerRef=t},t}(),da=function(t){function e(e,n){var r=t.call(this)||this;return r._parentView=e,r._def=n,r}return Zr(e,t),e.prototype.createEmbeddedView=function(t){return new fa(Js.createEmbeddedView(this._parentView,this._def,t))},Object.defineProperty(e.prototype,"elementRef",{get:function(){return new us(Lt(this._parentView,this._def.index).renderElement)},enumerable:!0,configurable:!0}),e}(ys),va=function(){function t(t,e){this.view=t,this.elDef=e}return t.prototype.get=function(t,e){void 0===e&&(e=Vi.THROW_IF_NOT_FOUND);var n=this.elDef?0!==(16777216&this.elDef.flags):!1;return Js.resolveDep(this.view,this.elDef,n,{flags:0,token:t,tokenKey:Gt(t)},e)},t}(),ma=function(){function t(t){this.delegate=t}return t.prototype.selectRootElement=function(t){return this.delegate.selectRootElement(t)},t.prototype.createElement=function(t,e){var n=ye(e),r=n[0],i=n[1],o=this.delegate.createElement(i,r);return t&&this.delegate.appendChild(t,o),o},t.prototype.createViewRoot=function(t){return t},t.prototype.createTemplateAnchor=function(t){var e=this.delegate.createComment("");return t&&this.delegate.appendChild(t,e),e},t.prototype.createText=function(t,e){var n=this.delegate.createText(e);return t&&this.delegate.appendChild(t,n),n},t.prototype.projectNodes=function(t,e){for(var n=0;n<e.length;n++)this.delegate.appendChild(t,e[n])},t.prototype.attachViewAfter=function(t,e){for(var n=this.delegate.parentNode(t),r=this.delegate.nextSibling(t),i=0;i<e.length;i++)this.delegate.insertBefore(n,e[i],r)},t.prototype.detachView=function(t){for(var e=0;e<t.length;e++){var n=t[e],r=this.delegate.parentNode(n);this.delegate.removeChild(r,n)}},t.prototype.destroyView=function(t,e){for(var n=0;n<e.length;n++)this.delegate.destroyNode(e[n])},t.prototype.listen=function(t,e,n){return this.delegate.listen(t,e,n)},t.prototype.listenGlobal=function(t,e,n){return this.delegate.listen(t,e,n)},t.prototype.setElementProperty=function(t,e,n){this.delegate.setProperty(t,e,n)},t.prototype.setElementAttribute=function(t,e,n){var r=ye(e),i=r[0],o=r[1];null!=n?this.delegate.setAttribute(t,o,n,i):this.delegate.removeAttribute(t,o,i)},t.prototype.setBindingDebugInfo=function(){},t.prototype.setElementClass=function(t,e,n){n?this.delegate.addClass(t,e):this.delegate.removeClass(t,e)},t.prototype.setElementStyle=function(t,e,n){null!=n?this.delegate.setStyle(t,e,n):this.delegate.removeStyle(t,e)},t.prototype.invokeElementMethod=function(t,e,n){t[e].apply(t,n)},t.prototype.setText=function(t,e){this.delegate.setValue(t,e)},t.prototype.animate=function(){throw new Error("Renderer.animate is no longer supported!")},t}(),ya=Gt(rs),ga=Gt(as),_a=Gt(us),ba=Gt(gs),wa=Gt(ys),Ea=Gt(_s),Ca=Gt(Vi),Sa=new Object,xa={},Ta={};Ta.CreateViewNodes=0,Ta.CheckNoChanges=1,Ta.CheckAndUpdate=2,Ta.Destroy=3,Ta[Ta.CreateViewNodes]="CreateViewNodes",Ta[Ta.CheckNoChanges]="CheckNoChanges",Ta[Ta.CheckAndUpdate]="CheckAndUpdate",Ta[Ta.Destroy]="Destroy";var Pa=!1,Aa={};Aa.create=0,Aa.detectChanges=1,Aa.checkNoChanges=2,Aa.destroy=3,Aa.handleEvent=4,Aa[Aa.create]="create",Aa[Aa.detectChanges]="detectChanges",Aa[Aa.checkNoChanges]="checkNoChanges",Aa[Aa.destroy]="destroy",Aa[Aa.handleEvent]="handleEvent";var Oa,Ma,Ra,ka=/([A-Z])/g,Ia=function(){function t(t,e){this.view=t,this.nodeIndex=e,null==e&&(this.nodeIndex=e=0),this.nodeDef=t.def.nodes[e];for(var n=this.nodeDef,r=t;n&&0===(1&n.flags);)n=n.parent;if(!n)for(;!n&&r;)n=ne(r),r=r.parent;this.elDef=n,this.elView=r}return Object.defineProperty(t.prototype,"elOrCompView",{get:function(){return Lt(this.elView,this.elDef.index).componentView||this.view},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"injector",{get:function(){return Qe(this.elView,this.elDef)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"component",{get:function(){return this.elOrCompView.component},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"context",{get:function(){return this.elOrCompView.context},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"providerTokens",{get:function(){var t=[];if(this.elDef)for(var e=this.elDef.index+1;e<=this.elDef.index+this.elDef.childCount;e++){var n=this.elView.def.nodes[e];10112&n.flags&&t.push(n.provider.token),e+=n.childCount}return t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"references",{get:function(){var t={};if(this.elDef){Ar(this.elView,this.elDef,t);for(var e=this.elDef.index+1;e<=this.elDef.index+this.elDef.childCount;e++){var n=this.elView.def.nodes[e];10112&n.flags&&Ar(this.elView,n,t),e+=n.childCount}}return t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"componentRenderElement",{get:function(){var t=Pr(this.elOrCompView);return t?t.renderElement:void 0},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"renderNode",{get:function(){return 2&this.nodeDef.flags?re(this.view,this.nodeDef):re(this.elView,this.elDef)},enumerable:!0,configurable:!0}),t.prototype.logError=function(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];var r,i;2&this.nodeDef.flags?(r=this.view.def,i=this.nodeDef.index):(r=this.elView.def,i=this.elDef.index);var o=Tr(r,i),s=-1,a=function(){return s++,s===o?(n=t.error).bind.apply(n,[t].concat(e)):ta;var n};r.factory(a),o>s&&(t.error("Illegal state: the ViewDefinitionFactory did not call the logger!"),t.error.apply(t,e))},t}(),Na=function(){function t(t){this.delegate=t}return t.prototype.createRenderer=function(t,e){return new Da(this.delegate.createRenderer(t,e))},t}(),Da=function(){function t(t){this.delegate=t}return Object.defineProperty(t.prototype,"data",{get:function(){return this.delegate.data},enumerable:!0,configurable:!0}),t.prototype.destroyNode=function(t){Tt(St(t)),this.delegate.destroyNode&&this.delegate.destroyNode(t)},t.prototype.destroy=function(){this.delegate.destroy()},t.prototype.createElement=function(t,e){var n=this.delegate.createElement(t,e),r=Mr();if(r){var i=new Ss(n,null,r);i.name=t,xt(i)}return n},t.prototype.createComment=function(t){var e=this.delegate.createComment(t),n=Mr();return n&&xt(new Cs(e,null,n)),e},t.prototype.createText=function(t){var e=this.delegate.createText(t),n=Mr();return n&&xt(new Cs(e,null,n)),e},t.prototype.appendChild=function(t,e){var n=St(t),r=St(e);n&&r&&n instanceof Ss&&n.addChild(r),this.delegate.appendChild(t,e)},t.prototype.insertBefore=function(t,e,n){var r=St(t),i=St(e),o=St(n);r&&i&&r instanceof Ss&&r.insertBefore(o,i),this.delegate.insertBefore(t,e,n)},t.prototype.removeChild=function(t,e){var n=St(t),r=St(e);n&&r&&n instanceof Ss&&n.removeChild(r),this.delegate.removeChild(t,e)},t.prototype.selectRootElement=function(t){var e=this.delegate.selectRootElement(t),n=Mr();return n&&xt(new Ss(e,null,n)),e},t.prototype.setAttribute=function(t,e,n,r){var i=St(t);if(i&&i instanceof Ss){var o=r?r+":"+e:e;i.attributes[o]=n}this.delegate.setAttribute(t,e,n,r)},t.prototype.removeAttribute=function(t,e,n){var r=St(t);if(r&&r instanceof Ss){var i=n?n+":"+e:e;r.attributes[i]=null}this.delegate.removeAttribute(t,e,n)},t.prototype.addClass=function(t,e){var n=St(t);n&&n instanceof Ss&&(n.classes[e]=!0),this.delegate.addClass(t,e)},t.prototype.removeClass=function(t,e){var n=St(t);n&&n instanceof Ss&&(n.classes[e]=!1),this.delegate.removeClass(t,e)},t.prototype.setStyle=function(t,e,n,r){var i=St(t);i&&i instanceof Ss&&(i.styles[e]=n),this.delegate.setStyle(t,e,n,r)},t.prototype.removeStyle=function(t,e,n){var r=St(t);r&&r instanceof Ss&&(r.styles[e]=null),this.delegate.removeStyle(t,e,n)},t.prototype.setProperty=function(t,e,n){var r=St(t);r&&r instanceof Ss&&(r.properties[e]=n),this.delegate.setProperty(t,e,n)},t.prototype.listen=function(t,e,n){if("string"!=typeof t){var r=St(t);r&&r.listeners.push(new Es(e,n))}return this.delegate.listen(t,e,n)},t.prototype.parentNode=function(t){return this.delegate.parentNode(t)},t.prototype.nextSibling=function(t){return this.delegate.nextSibling(t)},t.prototype.setValue=function(t,e){return this.delegate.setValue(t,e)},t}(),La=function(){function t(){}return t}();La.decorators=[{type:xi,args:[{providers:[ts,{provide:Jo,useExisting:ts},co,_o,po,{provide:Fs,useFactory:Rr},{provide:Vs,useFactory:kr},{provide:Gs,useFactory:Ir,deps:[[new Mi(Gs),new Ri,new Ni]]},{provide:uo,useValue:Nr,multi:!0}]}]}],La.ctorParameters=function(){return[{type:Jo}]};var ja={};ja.OnInit=0,ja.OnDestroy=1,ja.DoCheck=2,ja.OnChanges=3,ja.AfterContentInit=4,ja.AfterContentChecked=5,ja.AfterViewInit=6,ja.AfterViewChecked=7,ja[ja.OnInit]="OnInit",ja[ja.OnDestroy]="OnDestroy",ja[ja.DoCheck]="DoCheck",ja[ja.OnChanges]="OnChanges",ja[ja.AfterContentInit]="AfterContentInit",ja[ja.AfterContentChecked]="AfterContentChecked",ja[ja.AfterViewInit]="AfterViewInit",ja[ja.AfterViewChecked]="AfterViewChecked";var Fa=[ja.OnInit,ja.OnDestroy,ja.DoCheck,ja.OnChanges,ja.AfterContentInit,ja.AfterContentChecked,ja.AfterViewInit,ja.AfterViewChecked],Va="*";t.Class=h,t.createPlatform=lt,t.assertPlatform=ht,t.destroyPlatform=ft,t.getPlatform=dt,t.PlatformRef=Zo,t.ApplicationRef=Jo,t.enableProdMode=ut,t.isDevMode=ct,t.createPlatformFactory=pt,t.NgProbeToken=$o,t.APP_ID=lo,t.PACKAGE_ROOT_URL=mo,t.PLATFORM_INITIALIZER=ho,t.PLATFORM_ID=fo,t.APP_BOOTSTRAP_LISTENER=vo,t.APP_INITIALIZER=uo,t.ApplicationInitStatus=co,t.DebugElement=Ss,t.DebugNode=Cs,t.asNativeElements=wt,t.getDebugNode=St,t.Testability=Ho,t.TestabilityRegistry=qo,t.setTestabilityGetter=at,t.TRANSLATIONS=Ks,t.TRANSLATIONS_FORMAT=Qs,t.LOCALE_ID=Gs,t.MissingTranslationStrategy=Xs,t.ApplicationModule=La,t.wtfCreateScope=Lo,t.wtfLeave=jo,t.wtfStartTimeRange=Fo,t.wtfEndTimeRange=Vo,t.Type=Qi,t.EventEmitter=Uo,t.ErrorHandler=zi,t.Sanitizer=Zs,t.SecurityContext=$s,t.ANALYZE_FOR_ENTRY_COMPONENTS=ai,t.Attribute=ui,t.ContentChild=pi,t.ContentChildren=li,t.Query=ci,t.ViewChild=fi,t.ViewChildren=hi,t.Component=yi,t.Directive=mi,t.HostBinding=wi,t.HostListener=Ei,t.Input=_i,t.Output=bi,t.Pipe=gi,t.CUSTOM_ELEMENTS_SCHEMA=Ci,t.NO_ERRORS_SCHEMA=Si,t.NgModule=xi,t.ViewEncapsulation=Ti,t.Version=Ai,t.VERSION=Oi,t.forwardRef=g,t.resolveForwardRef=_,t.Injector=Vi,t.ReflectiveInjector=oo,t.ResolvedReflectiveFactory=ro,t.ReflectiveKey=Wi,t.InjectionToken=Jr,t.OpaqueToken=Yr,t.Inject=Mi,t.Optional=Ri,t.Injectable=ki,t.Self=Ii,t.SkipSelf=Ni,t.Host=Di,t.NgZone=Bo,t.RenderComponentType=es,t.Renderer=rs,t.Renderer2=as,t.RendererFactory2=os,t.RendererStyleFlags2=ss,t.RootRenderer=is,t.COMPILER_OPTIONS=bo,t.Compiler=_o,t.CompilerFactory=wo,t.ModuleWithComponentFactories=go,t.ComponentFactory=Co,t.ComponentRef=Eo,t.ComponentFactoryResolver=To,t.ElementRef=us,t.NgModuleFactory=ko,t.NgModuleRef=Ro,t.NgModuleFactoryLoader=cs,t.getModuleFactory=gt,t.QueryList=ps,t.SystemJsNgModuleLoader=ms,t.SystemJsNgModuleLoaderConfig=ds,t.TemplateRef=ys,t.ViewContainerRef=gs,t.EmbeddedViewRef=ws,t.ViewRef=bs,t.ChangeDetectionStrategy=di,t.ChangeDetectorRef=_s,t.DefaultIterableDiffer=Rs,t.IterableDiffers=Fs,t.KeyValueDiffers=Vs,t.SimpleChange=As,t.WrappedValue=Ts,t.platformCore=Ws,t.ɵALLOW_MULTIPLE_PLATFORMS=Xo,t.ɵAPP_ID_RANDOM_PROVIDER=po,t.ɵValueUnwrapper=Ps,t.ɵdevModeEqual=Pt,t.ɵisListLikeIterable=At,t.ɵChangeDetectorStatus=vi,t.ɵisDefaultChangeDetectionStrategy=y,t.ɵConsole=yo,t.ɵERROR_COMPONENT_TYPE=Ui,t.ɵComponentFactory=Co,t.ɵCodegenComponentFactoryResolver=Oo,t.ɵLIFECYCLE_HOOKS_VALUES=Fa,t.ɵLifecycleHooks=ja,t.ɵViewMetadata=Pi,t.ɵReflector=Yi,t.ɵreflector=Ji,t.ɵReflectionCapabilities=$i,t.ɵReflectorReader=Zi,t.ɵRenderDebugInfo=ns,t.ɵglobal=ri,t.ɵlooseIdentical=u, -t.ɵstringify=c,t.ɵmakeDecorator=f,t.ɵisObservable=$,t.ɵisPromise=X,t.ɵNOT_FOUND_CHECK_ONLY_ELEMENT_INJECTOR=xa,t.ɵNgModuleInjector=No,t.ɵregisterModuleFactory=yt,t.ɵEMPTY_ARRAY=aa,t.ɵEMPTY_MAP=ua,t.ɵand=Ee,t.ɵccf=qe,t.ɵcrt=Qt,t.ɵdid=Ze,t.ɵeld=Ce,t.ɵelementEventFullName=ie,t.ɵgetComponentViewDefinitionFactory=ze,t.ɵinlineInterpolate=be,t.ɵinterpolate=_e,t.ɵncd=Ne,t.ɵnov=Xe,t.ɵpid=Ye,t.ɵprd=Je,t.ɵpad=gn,t.ɵpod=_n,t.ɵppd=yn,t.ɵqud=Sn,t.ɵted=Mn,t.ɵunv=Kt,t.ɵvid=Dn,t.AUTO_STYLE=Va,t.trigger=qr,t.animate=zr,t.group=Wr,t.sequence=Gr,t.style=Kr,t.state=Qr,t.keyframes=Xr,t.transition=$r,t.ɵba=Lr,t.ɵbb=jr,t.ɵbf=Br,t.ɵbc=Fr,t.ɵbe=Ur,t.ɵbd=Vr,t.ɵbg=Hr,t.ɵz=Dr,t.ɵo=Nr,t.ɵl=Rr,t.ɵm=kr,t.ɵn=Ir,t.ɵf=ts,t.ɵg=Z,t.ɵh=Hs,t.ɵi=qs,t.ɵj=Os,t.ɵk=Ds,t.ɵc=so,t.ɵd=to,t.ɵe=B,t.ɵp=Do,t.ɵr=nt,t.ɵq=et,t.ɵu=ot,t.ɵs=rt,t.ɵt=it,t.ɵa=v,t.ɵb=m,t.ɵw=tn,t.ɵx=Ys,Object.defineProperty(t,"__esModule",{value:!0})})}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"rxjs/Observable":16,"rxjs/Subject":19,"rxjs/observable/merge":34,"rxjs/operator/share":50}],9:[function(e,n,r){!function(i,o){"object"==typeof r&&"undefined"!=typeof n?o(r,e("@angular/core"),e("rxjs/Observable"),e("@angular/platform-browser")):"function"==typeof t&&t.amd?t(["exports","@angular/core","rxjs/Observable","@angular/platform-browser"],o):o((i.ng=i.ng||{},i.ng.http=i.ng.http||{}),i.ng.core,i.Rx,i.ng.platformBrowser)}(this,function(t,e,n,r){"use strict";function i(t){if("string"!=typeof t)return t;switch(t.toUpperCase()){case"GET":return y.Get;case"POST":return y.Post;case"PUT":return y.Put;case"DELETE":return y.Delete;case"OPTIONS":return y.Options;case"HEAD":return y.Head;case"PATCH":return y.Patch}throw new Error('Invalid request method. The method "'+t+'" is not supported.')}function o(t){return"responseURL"in t?t.responseURL:/^X-Request-URL:/m.test(t.getAllResponseHeaders())?t.getResponseHeader("X-Request-URL"):void 0}function s(t){for(var e=new Uint16Array(t.length),n=0,r=t.length;r>n;n++)e[n]=t.charCodeAt(n);return e.buffer}function a(t){void 0===t&&(t="");var e=new Map;if(t.length>0){var n=t.split("&");n.forEach(function(t){var n=t.indexOf("="),r=-1==n?[t,""]:[t.slice(0,n),t.slice(n+1)],i=r[0],o=r[1],s=e.get(i)||[];s.push(o),e.set(i,s)})}return e}function u(t){return encodeURIComponent(t).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/gi,"$").replace(/%2C/gi,",").replace(/%3B/gi,";").replace(/%2B/gi,"+").replace(/%3D/gi,"=").replace(/%3F/gi,"?").replace(/%2F/gi,"/")}function c(){var t="object"==typeof window?window:{};return null===D&&(D=t[N]={}),D}function l(t,e){return t.createConnection(e).response}function p(t,e,n,r){var i=t;return i.merge(e?new K({method:e.method||n,url:e.url||r,search:e.search,params:e.params,headers:e.headers,body:e.body,withCredentials:e.withCredentials,responseType:e.responseType}):new K({method:n,url:r}))}function h(){return new W}function f(t,e){return new et(t,e)}function d(t,e){return new nt(t,e)}var v=void 0||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},m=function(){function t(){}return t.prototype.build=function(){return new XMLHttpRequest},t}();m.decorators=[{type:e.Injectable}],m.ctorParameters=function(){return[]};var y={};y.Get=0,y.Post=1,y.Put=2,y.Delete=3,y.Options=4,y.Head=5,y.Patch=6,y[y.Get]="Get",y[y.Post]="Post",y[y.Put]="Put",y[y.Delete]="Delete",y[y.Options]="Options",y[y.Head]="Head",y[y.Patch]="Patch";var g={};g.Unsent=0,g.Open=1,g.HeadersReceived=2,g.Loading=3,g.Done=4,g.Cancelled=5,g[g.Unsent]="Unsent",g[g.Open]="Open",g[g.HeadersReceived]="HeadersReceived",g[g.Loading]="Loading",g[g.Done]="Done",g[g.Cancelled]="Cancelled";var _={};_.Basic=0,_.Cors=1,_.Default=2,_.Error=3,_.Opaque=4,_[_.Basic]="Basic",_[_.Cors]="Cors",_[_.Default]="Default",_[_.Error]="Error",_[_.Opaque]="Opaque";var b={};b.NONE=0,b.JSON=1,b.FORM=2,b.FORM_DATA=3,b.TEXT=4,b.BLOB=5,b.ARRAY_BUFFER=6,b[b.NONE]="NONE",b[b.JSON]="JSON",b[b.FORM]="FORM",b[b.FORM_DATA]="FORM_DATA",b[b.TEXT]="TEXT",b[b.BLOB]="BLOB",b[b.ARRAY_BUFFER]="ARRAY_BUFFER";var w={};w.Text=0,w.Json=1,w.ArrayBuffer=2,w.Blob=3,w[w.Text]="Text",w[w.Json]="Json",w[w.ArrayBuffer]="ArrayBuffer",w[w.Blob]="Blob";var E=function(){function t(e){var n=this;return this._headers=new Map,this._normalizedNames=new Map,e?e instanceof t?void e.forEach(function(t,e){t.forEach(function(t){return n.append(e,t)})}):void Object.keys(e).forEach(function(t){var r=Array.isArray(e[t])?e[t]:[e[t]];n["delete"](t),r.forEach(function(e){return n.append(t,e)})}):void 0}return t.fromResponseHeaderString=function(e){var n=new t;return e.split("\n").forEach(function(t){var e=t.indexOf(":");if(e>0){var r=t.slice(0,e),i=t.slice(e+1).trim();n.set(r,i)}}),n},t.prototype.append=function(t,e){var n=this.getAll(t);null===n?this.set(t,e):n.push(e)},t.prototype["delete"]=function(t){var e=t.toLowerCase();this._normalizedNames["delete"](e),this._headers["delete"](e)},t.prototype.forEach=function(t){var e=this;this._headers.forEach(function(n,r){return t(n,e._normalizedNames.get(r),e._headers)})},t.prototype.get=function(t){var e=this.getAll(t);return null===e?null:e.length>0?e[0]:null},t.prototype.has=function(t){return this._headers.has(t.toLowerCase())},t.prototype.keys=function(){return Array.from(this._normalizedNames.values())},t.prototype.set=function(t,e){Array.isArray(e)?e.length&&this._headers.set(t.toLowerCase(),[e.join(",")]):this._headers.set(t.toLowerCase(),[e]),this.mayBeSetNormalizedName(t)},t.prototype.values=function(){return Array.from(this._headers.values())},t.prototype.toJSON=function(){var t=this,e={};return this._headers.forEach(function(n,r){var i=[];n.forEach(function(t){return i.push.apply(i,t.split(","))}),e[t._normalizedNames.get(r)]=i}),e},t.prototype.getAll=function(t){return this.has(t)?this._headers.get(t.toLowerCase()):null},t.prototype.entries=function(){throw new Error('"entries" method is not implemented on Headers class')},t.prototype.mayBeSetNormalizedName=function(t){var e=t.toLowerCase();this._normalizedNames.has(e)||this._normalizedNames.set(e,t)},t}(),C=function(){function t(t){var e=void 0===t?{}:t,n=e.body,r=e.status,i=e.headers,o=e.statusText,s=e.type,a=e.url;this.body=null!=n?n:null,this.status=null!=r?r:null,this.headers=null!=i?i:null,this.statusText=null!=o?o:null,this.type=null!=s?s:null,this.url=null!=a?a:null}return t.prototype.merge=function(e){return new t({body:e&&null!=e.body?e.body:this.body,status:e&&null!=e.status?e.status:this.status,headers:e&&null!=e.headers?e.headers:this.headers,statusText:e&&null!=e.statusText?e.statusText:this.statusText,type:e&&null!=e.type?e.type:this.type,url:e&&null!=e.url?e.url:this.url})},t}(),S=function(t){function e(){return t.call(this,{status:200,statusText:"Ok",type:_.Default,headers:new E})||this}return v(e,t),e}(C);S.decorators=[{type:e.Injectable}],S.ctorParameters=function(){return[]};var x=function(){function t(){}return t.prototype.createConnection=function(){},t}(),T=function(){function t(){}return t}(),P=function(){function t(){}return t.prototype.configureRequest=function(){},t}(),A=function(t){return t>=200&&300>t},O=function(){function t(){}return t.prototype.encodeKey=function(t){return u(t)},t.prototype.encodeValue=function(t){return u(t)},t}(),M=function(){function t(t,e){void 0===t&&(t=""),void 0===e&&(e=new O),this.rawParams=t,this.queryEncoder=e,this.paramsMap=a(t)}return t.prototype.clone=function(){var e=new t("",this.queryEncoder);return e.appendAll(this),e},t.prototype.has=function(t){return this.paramsMap.has(t)},t.prototype.get=function(t){var e=this.paramsMap.get(t);return Array.isArray(e)?e[0]:null},t.prototype.getAll=function(t){return this.paramsMap.get(t)||[]},t.prototype.set=function(t,e){if(void 0===e||null===e)return void this["delete"](t);var n=this.paramsMap.get(t)||[];n.length=0,n.push(e),this.paramsMap.set(t,n)},t.prototype.setAll=function(t){var e=this;t.paramsMap.forEach(function(t,n){var r=e.paramsMap.get(n)||[];r.length=0,r.push(t[0]),e.paramsMap.set(n,r)})},t.prototype.append=function(t,e){if(void 0!==e&&null!==e){var n=this.paramsMap.get(t)||[];n.push(e),this.paramsMap.set(t,n)}},t.prototype.appendAll=function(t){var e=this;t.paramsMap.forEach(function(t,n){for(var r=e.paramsMap.get(n)||[],i=0;i<t.length;++i)r.push(t[i]);e.paramsMap.set(n,r)})},t.prototype.replaceAll=function(t){var e=this;t.paramsMap.forEach(function(t,n){var r=e.paramsMap.get(n)||[];r.length=0;for(var i=0;i<t.length;++i)r.push(t[i]);e.paramsMap.set(n,r)})},t.prototype.toString=function(){var t=this,e=[];return this.paramsMap.forEach(function(n,r){n.forEach(function(n){return e.push(t.queryEncoder.encodeKey(r)+"="+t.queryEncoder.encodeValue(n))})}),e.join("&")},t.prototype["delete"]=function(t){this.paramsMap["delete"](t)},t}(),R=function(){function t(){}return t.prototype.json=function(){return"string"==typeof this._body?JSON.parse(this._body):this._body instanceof ArrayBuffer?JSON.parse(this.text()):this._body},t.prototype.text=function(){return this._body instanceof M?this._body.toString():this._body instanceof ArrayBuffer?String.fromCharCode.apply(null,new Uint16Array(this._body)):null==this._body?"":"object"==typeof this._body?JSON.stringify(this._body,null,2):this._body.toString()},t.prototype.arrayBuffer=function(){return this._body instanceof ArrayBuffer?this._body:s(this.text())},t.prototype.blob=function(){if(this._body instanceof Blob)return this._body;if(this._body instanceof ArrayBuffer)return new Blob([this._body]);throw new Error("The request body isn't either a blob or an array buffer")},t}(),k=function(t){function e(e){var n=t.call(this)||this;return n._body=e.body,n.status=e.status,n.ok=n.status>=200&&n.status<=299,n.statusText=e.statusText,n.headers=e.headers,n.type=e.type,n.url=e.url,n}return v(e,t),e.prototype.toString=function(){return"Response with status: "+this.status+" "+this.statusText+" for URL: "+this.url},e}(R),I=0,N="__ng_jsonp__",D=null,L=function(){function t(){}return t.prototype.build=function(t){var e=document.createElement("script");return e.src=t,e},t.prototype.nextRequestID=function(){return"__req"+I++},t.prototype.requestCallback=function(t){return N+"."+t+".finished"},t.prototype.exposeConnection=function(t,e){var n=c();n[t]=e},t.prototype.removeConnection=function(t){var e=c();e[t]=null},t.prototype.send=function(t){document.body.appendChild(t)},t.prototype.cleanup=function(t){t.parentNode&&t.parentNode.removeChild(t)},t}();L.decorators=[{type:e.Injectable}],L.ctorParameters=function(){return[]};var j="JSONP injected script did not invoke callback.",F="JSONP requests must use GET request method.",V=function(){function t(){}return t.prototype.finished=function(){},t}(),U=function(t){function e(e,r,i){var o=t.call(this)||this;if(o._dom=r,o.baseResponseOptions=i,o._finished=!1,e.method!==y.Get)throw new TypeError(F);return o.request=e,o.response=new n.Observable(function(t){o.readyState=g.Loading;var n=o._id=r.nextRequestID();r.exposeConnection(n,o);var s=r.requestCallback(o._id),a=e.url;a.indexOf("=JSONP_CALLBACK&")>-1?a=a.replace("=JSONP_CALLBACK&","="+s+"&"):a.lastIndexOf("=JSONP_CALLBACK")===a.length-"=JSONP_CALLBACK".length&&(a=a.substring(0,a.length-"=JSONP_CALLBACK".length)+("="+s));var u=o._script=r.build(a),c=function(){if(o.readyState!==g.Cancelled){if(o.readyState=g.Done,r.cleanup(u),!o._finished){var e=new C({body:j,type:_.Error,url:a});return i&&(e=i.merge(e)),void t.error(new k(e))}var n=new C({body:o._responseData,url:a});o.baseResponseOptions&&(n=o.baseResponseOptions.merge(n)),t.next(new k(n)),t.complete()}},l=function(e){if(o.readyState!==g.Cancelled){o.readyState=g.Done,r.cleanup(u);var n=new C({body:e.message,type:_.Error});i&&(n=i.merge(n)),t.error(new k(n))}};return u.addEventListener("load",c),u.addEventListener("error",l),r.send(u),function(){o.readyState=g.Cancelled,u.removeEventListener("load",c),u.removeEventListener("error",l),o._dom.cleanup(u)}}),o}return v(e,t),e.prototype.finished=function(t){this._finished=!0,this._dom.removeConnection(this._id),this.readyState!==g.Cancelled&&(this._responseData=t)},e}(V),B=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return v(e,t),e}(x),H=function(t){function e(e,n){var r=t.call(this)||this;return r._browserJSONP=e,r._baseResponseOptions=n,r}return v(e,t),e.prototype.createConnection=function(t){return new U(t,this._browserJSONP,this._baseResponseOptions)},e}(B);H.decorators=[{type:e.Injectable}],H.ctorParameters=function(){return[{type:L},{type:C}]};var q=/^\)\]\}',?\n/,z=function(){function t(t,e,r){var i=this;this.request=t,this.response=new n.Observable(function(n){var s=e.build();s.open(y[t.method].toUpperCase(),t.url),null!=t.withCredentials&&(s.withCredentials=t.withCredentials);var a=function(){var e=1223===s.status?204:s.status,i=null;204!==e&&(i="undefined"==typeof s.response?s.responseText:s.response,"string"==typeof i&&(i=i.replace(q,""))),0===e&&(e=i?200:0);var a=E.fromResponseHeaderString(s.getAllResponseHeaders()),u=o(s)||t.url,c=s.statusText||"OK",l=new C({body:i,status:e,headers:a,statusText:c,url:u});null!=r&&(l=r.merge(l));var p=new k(l);return p.ok=A(e),p.ok?(n.next(p),void n.complete()):void n.error(p)},u=function(t){var e=new C({body:t,type:_.Error,status:s.status,statusText:s.statusText});null!=r&&(e=r.merge(e)),n.error(new k(e))};if(i.setDetectedContentType(t,s),null==t.headers&&(t.headers=new E),t.headers.has("Accept")||t.headers.append("Accept","application/json, text/plain, */*"),t.headers.forEach(function(t,e){return s.setRequestHeader(e,t.join(","))}),null!=t.responseType&&null!=s.responseType)switch(t.responseType){case w.ArrayBuffer:s.responseType="arraybuffer";break;case w.Json:s.responseType="json";break;case w.Text:s.responseType="text";break;case w.Blob:s.responseType="blob";break;default:throw new Error("The selected responseType is not supported")}return s.addEventListener("load",a),s.addEventListener("error",u),s.send(i.request.getBody()),function(){s.removeEventListener("load",a),s.removeEventListener("error",u),s.abort()}})}return t.prototype.setDetectedContentType=function(t,e){if(null==t.headers||null==t.headers.get("Content-Type"))switch(t.contentType){case b.NONE:break;case b.JSON:e.setRequestHeader("content-type","application/json");break;case b.FORM:e.setRequestHeader("content-type","application/x-www-form-urlencoded;charset=UTF-8");break;case b.TEXT:e.setRequestHeader("content-type","text/plain");break;case b.BLOB:var n=t.blob();n.type&&e.setRequestHeader("content-type",n.type)}},t}(),W=function(){function t(t,e){void 0===t&&(t="XSRF-TOKEN"),void 0===e&&(e="X-XSRF-TOKEN"),this._cookieName=t,this._headerName=e}return t.prototype.configureRequest=function(t){var e=r.ɵgetDOM().getCookie(this._cookieName);e&&t.headers.set(this._headerName,e)},t}(),G=function(){function t(t,e,n){this._browserXHR=t,this._baseResponseOptions=e,this._xsrfStrategy=n}return t.prototype.createConnection=function(t){return this._xsrfStrategy.configureRequest(t),new z(t,this._browserXHR,this._baseResponseOptions)},t}();G.decorators=[{type:e.Injectable}],G.ctorParameters=function(){return[{type:m},{type:C},{type:P}]};var K=function(){function t(t){var e=void 0===t?{}:t,n=e.method,r=e.headers,o=e.body,s=e.url,a=e.search,u=e.params,c=e.withCredentials,l=e.responseType;this.method=null!=n?i(n):null,this.headers=null!=r?r:null,this.body=null!=o?o:null,this.url=null!=s?s:null,this.params=this._mergeSearchParams(u||a),this.withCredentials=null!=c?c:null,this.responseType=null!=l?l:null}return Object.defineProperty(t.prototype,"search",{get:function(){return this.params},set:function(t){this.params=t},enumerable:!0,configurable:!0}),t.prototype.merge=function(e){return new t({method:e&&null!=e.method?e.method:this.method,headers:e&&null!=e.headers?e.headers:new E(this.headers),body:e&&null!=e.body?e.body:this.body,url:e&&null!=e.url?e.url:this.url,params:e&&this._mergeSearchParams(e.params||e.search),withCredentials:e&&null!=e.withCredentials?e.withCredentials:this.withCredentials,responseType:e&&null!=e.responseType?e.responseType:this.responseType})},t.prototype._mergeSearchParams=function(t){return t?t instanceof M?t.clone():"string"==typeof t?new M(t):this._parseParams(t):this.params},t.prototype._parseParams=function(t){var e=this;void 0===t&&(t={});var n=new M;return Object.keys(t).forEach(function(r){var i=t[r];Array.isArray(i)?i.forEach(function(t){return e._appendParam(r,t,n)}):e._appendParam(r,i,n)}),n},t.prototype._appendParam=function(t,e,n){"string"!=typeof e&&(e=JSON.stringify(e)),n.append(t,e)},t}(),Q=function(t){function e(){return t.call(this,{method:y.Get,headers:new E})||this}return v(e,t),e}(K);Q.decorators=[{type:e.Injectable}],Q.ctorParameters=function(){return[]};var X=function(t){function e(e){var n=t.call(this)||this,r=e.url;if(n.url=e.url,e.params){var o=e.params.toString();if(o.length>0){var s="?";-1!=n.url.indexOf("?")&&(s="&"==n.url[n.url.length-1]?"":"&"),n.url=r+s+o}}return n._body=e.body,n.method=i(e.method),n.headers=new E(e.headers),n.contentType=n.detectContentType(),n.withCredentials=e.withCredentials,n.responseType=e.responseType,n}return v(e,t),e.prototype.detectContentType=function(){switch(this.headers.get("content-type")){case"application/json":return b.JSON;case"application/x-www-form-urlencoded":return b.FORM;case"multipart/form-data":return b.FORM_DATA;case"text/plain":case"text/html":return b.TEXT;case"application/octet-stream":return this._body instanceof tt?b.ARRAY_BUFFER:b.BLOB;default:return this.detectContentTypeFromBody()}},e.prototype.detectContentTypeFromBody=function(){return null==this._body?b.NONE:this._body instanceof M?b.FORM:this._body instanceof Y?b.FORM_DATA:this._body instanceof J?b.BLOB:this._body instanceof tt?b.ARRAY_BUFFER:this._body&&"object"==typeof this._body?b.JSON:b.TEXT},e.prototype.getBody=function(){switch(this.contentType){case b.JSON:return this.text();case b.FORM:return this.text();case b.FORM_DATA:return this._body;case b.TEXT:return this.text();case b.BLOB:return this.blob();case b.ARRAY_BUFFER:return this.arrayBuffer();default:return null}},e}(R),$=function(){},Z="object"==typeof window?window:$,Y=Z.FormData||$,J=Z.Blob||$,tt=Z.ArrayBuffer||$,et=function(){function t(t,e){this._backend=t,this._defaultOptions=e}return t.prototype.request=function(t,e){var n;if("string"==typeof t)n=l(this._backend,new X(p(this._defaultOptions,e,y.Get,t)));else{if(!(t instanceof X))throw new Error("First argument must be a url string or Request instance.");n=l(this._backend,t)}return n},t.prototype.get=function(t,e){return this.request(new X(p(this._defaultOptions,e,y.Get,t)))},t.prototype.post=function(t,e,n){return this.request(new X(p(this._defaultOptions.merge(new K({body:e})),n,y.Post,t)))},t.prototype.put=function(t,e,n){return this.request(new X(p(this._defaultOptions.merge(new K({body:e})),n,y.Put,t)))},t.prototype["delete"]=function(t,e){return this.request(new X(p(this._defaultOptions,e,y.Delete,t)))},t.prototype.patch=function(t,e,n){return this.request(new X(p(this._defaultOptions.merge(new K({body:e})),n,y.Patch,t)))},t.prototype.head=function(t,e){return this.request(new X(p(this._defaultOptions,e,y.Head,t)))},t.prototype.options=function(t,e){return this.request(new X(p(this._defaultOptions,e,y.Options,t)))},t}();et.decorators=[{type:e.Injectable}],et.ctorParameters=function(){return[{type:x},{type:K}]};var nt=function(t){function e(e,n){return t.call(this,e,n)||this}return v(e,t),e.prototype.request=function(t,e){var n;if("string"==typeof t&&(t=new X(p(this._defaultOptions,e,y.Get,t))),!(t instanceof X))throw new Error("First argument must be a url string or Request instance.");if(t.method!==y.Get)throw new Error("JSONP requests must use GET request method.");return n=l(this._backend,t)},e}(et);nt.decorators=[{type:e.Injectable}],nt.ctorParameters=function(){return[{type:x},{type:K}]};var rt=function(){function t(){}return t}();rt.decorators=[{type:e.NgModule,args:[{providers:[{provide:et,useFactory:f,deps:[G,K]},m,{provide:K,useClass:Q},{provide:C,useClass:S},G,{provide:P,useFactory:h}]}]}],rt.ctorParameters=function(){return[]};var it=function(){function t(){}return t}();it.decorators=[{type:e.NgModule,args:[{providers:[{provide:nt,useFactory:d,deps:[B,K]},L,{provide:K,useClass:Q},{provide:C,useClass:S},{provide:B,useClass:H}]}]}],it.ctorParameters=function(){return[]};var ot=new e.Version("4.0.1");t.BrowserXhr=m,t.JSONPBackend=B,t.JSONPConnection=V,t.CookieXSRFStrategy=W,t.XHRBackend=G,t.XHRConnection=z,t.BaseRequestOptions=Q,t.RequestOptions=K,t.BaseResponseOptions=S,t.ResponseOptions=C,t.ReadyState=g,t.RequestMethod=y,t.ResponseContentType=w,t.ResponseType=_,t.Headers=E,t.Http=et,t.Jsonp=nt,t.HttpModule=rt,t.JsonpModule=it,t.Connection=T,t.ConnectionBackend=x,t.XSRFStrategy=P,t.Request=X,t.Response=k,t.QueryEncoder=O,t.URLSearchParams=M,t.VERSION=ot,t.ɵg=L,t.ɵa=H,t.ɵf=R,t.ɵb=h,t.ɵc=f,t.ɵd=d,Object.defineProperty(t,"__esModule",{value:!0})})},{"@angular/core":8,"@angular/platform-browser":11,"rxjs/Observable":16}],10:[function(e,n,r){!function(i,o){"object"==typeof r&&"undefined"!=typeof n?o(r,e("@angular/compiler"),e("@angular/core"),e("@angular/common"),e("@angular/platform-browser")):"function"==typeof t&&t.amd?t(["exports","@angular/compiler","@angular/core","@angular/common","@angular/platform-browser"],o):o((i.ng=i.ng||{},i.ng.platformBrowserDynamic=i.ng.platformBrowserDynamic||{}),i.ng.compiler,i.ng.core,i.ng.common,i.ng.platformBrowser)}(this,function(t,e,n,r,i){"use strict";var o=void 0||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},s=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o(e,t),e.prototype.get=function(t){var e,n,r=new Promise(function(t,r){e=t,n=r}),i=new XMLHttpRequest;return i.open("GET",t,!0),i.responseType="text",i.onload=function(){var r=i.response||i.responseText,o=1223===i.status?204:i.status;0===o&&(o=r?200:0),o>=200&&300>=o?e(r):n("Failed to load "+t)},i.onerror=function(){n("Failed to load "+t)},i.send(),r},e}(e.ResourceLoader);s.decorators=[{type:n.Injectable}],s.ctorParameters=function(){return[]};var a=[i.ɵINTERNAL_BROWSER_PLATFORM_PROVIDERS,{provide:n.COMPILER_OPTIONS,useValue:{providers:[{provide:e.ResourceLoader,useClass:s}]},multi:!0},{provide:n.PLATFORM_ID,useValue:r.ɵPLATFORM_BROWSER_ID}],u=function(t){function e(){var e=t.call(this)||this;if(e._cache=n.ɵglobal.$templateCache,null==e._cache)throw new Error("CachedResourceLoader: Template cache was not found in $templateCache.");return e}return o(e,t),e.prototype.get=function(t){return this._cache.hasOwnProperty(t)?Promise.resolve(this._cache[t]):Promise.reject("CachedResourceLoader: Did not find cached template for "+t)},e}(e.ResourceLoader),c=new n.Version("4.0.1"),l=[{provide:e.ResourceLoader,useClass:u}],p=n.createPlatformFactory(e.platformCoreDynamic,"browserDynamic",a);t.RESOURCE_CACHE_PROVIDER=l,t.platformBrowserDynamic=p,t.VERSION=c,t.ɵINTERNAL_BROWSER_DYNAMIC_PLATFORM_PROVIDERS=a,t.ɵResourceLoaderImpl=s,Object.defineProperty(t,"__esModule",{value:!0})})},{"@angular/common":6,"@angular/compiler":7,"@angular/core":8,"@angular/platform-browser":11}],11:[function(e,n,r){!function(i,o){"object"==typeof r&&"undefined"!=typeof n?o(r,e("@angular/common"),e("@angular/core")):"function"==typeof t&&t.amd?t(["exports","@angular/common","@angular/core"],o):o((i.ng=i.ng||{},i.ng.platformBrowser=i.ng.platformBrowser||{}),i.ng.common,i.ng.core)}(this,function(t,e,n){"use strict";function r(){return j}function i(t){j||(j=t)}function o(){return G||(G=document.querySelector("base"))?G.getAttribute("href"):null}function s(t){return z||(z=document.createElement("a")),z.setAttribute("href",t),"/"===z.pathname.charAt(0)?z.pathname:"/"+z.pathname}function a(t,e){e=encodeURIComponent(e);for(var n=0,r=t.split(";");n<r.length;n++){var i=r[n],o=i.indexOf("="),s=-1==o?[i,""]:[i.slice(0,o),i.slice(o+1)],a=s[0],u=s[1];if(a.trim()===e)return decodeURIComponent(u)}return null}function u(t,e,n){for(var r=e.split("."),i=t;r.length>1;){var o=r.shift();i=i.hasOwnProperty(o)&&null!=i[o]?i[o]:i[o]={}}(void 0===i||null===i)&&(i={}),i[r.shift()]=n}function c(){return!!window.history.pushState}function l(t,e){var n=function(){var n=r(),i=Array.prototype.slice.apply(n.querySelectorAll(e,"style[ng-transition]"));i.filter(function(e){return n.getAttribute(e,"ng-transition")===t}).forEach(function(t){return n.remove(t)})};return n}function p(t){return n.getDebugNode(t)}function h(t,e){var n=(t||[]).concat(e||[]);return r().setGlobalVar(nt,p),r().setGlobalVar(rt,tt({},et,f(n||[]))),function(){return p}}function f(t){return t.reduce(function(t,e){return t[e.name]=e.token,t},{})}function d(t){return vt.replace(ht,t)}function v(t){return dt.replace(ht,t)}function m(t,e,n){for(var r=0;r<e.length;r++){var i=e[r];Array.isArray(i)?m(t,i,n):(i=i.replace(ht,t),n.push(i))}return n}function y(t){return function(e){var n=t(e);n===!1&&(e.preventDefault(),e.returnValue=!1)}}function g(t,e){if(t.charCodeAt(0)===gt)throw new Error("Found the synthetic "+e+" "+t+'. Please include either "BrowserAnimationsModule" or "NoopAnimationsModule" in your application.')}function _(t){return t=String(t),t.match(Ot)||t.match(Mt)?t:(n.isDevMode()&&r().log("WARNING: sanitizing unsafe URL value "+t+" (see http://g.co/ng/security#xss)"),"unsafe:"+t)}function b(t){return t=String(t),t.split(",").map(function(t){return _(t.trim())}).join(", ")}function w(){if(Rt)return Rt;kt=r();var t=kt.createElement("template");if("content"in t)return t;var e=kt.createHtmlDocument();if(Rt=kt.querySelector(e,"body"),null==Rt){var n=kt.createElement("html",e);Rt=kt.createElement("body",e),kt.appendChild(n,Rt),kt.appendChild(e,n)}return Rt}function E(t){for(var e={},n=0,r=t.split(",");n<r.length;n++){var i=r[n];e[i]=!0}return e}function C(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];for(var n={},r=0,i=t;r<i.length;r++){var o=i[r];for(var s in o)o.hasOwnProperty(s)&&(n[s]=!0)}return n}function S(t,e){if(e&&kt.contains(t,e))throw new Error("Failed to sanitize html because the element is clobbered: "+kt.getOuterHTML(t));return e}function x(t){return t.replace(/&/g,"&").replace(Wt,function(t){var e=t.charCodeAt(0),n=t.charCodeAt(1);return"&#"+(1024*(e-55296)+(n-56320)+65536)+";"}).replace(Gt,function(t){return"&#"+t.charCodeAt(0)+";"}).replace(/</g,"<").replace(/>/g,">")}function T(t){kt.attributeMap(t).forEach(function(e,n){("xmlns:ns1"===n||0===n.indexOf("ns1:"))&&kt.removeAttribute(t,n)});for(var e=0,n=kt.childNodesAsList(t);e<n.length;e++){var r=n[e];kt.isElementNode(r)&&T(r)}}function P(t,e){try{var r=w(),i=e?String(e):"",o=5,s=i;do{if(0===o)throw new Error("Failed to sanitize html because the input is unstable");o--,i=s,kt.setInnerHTML(r,i),t.documentMode&&T(r),s=kt.getInnerHTML(r)}while(i!==s);for(var a=new zt,u=a.sanitizeChildren(kt.getTemplateContent(r)||r),c=kt.getTemplateContent(r)||r,l=0,p=kt.childNodesAsList(c);l<p.length;l++){var h=p[l];kt.removeChild(c,h)}return n.isDevMode()&&a.sanitizedSomething&&kt.log("WARNING: sanitizing HTML stripped some content (see http://g.co/ng/security#xss)."),u}catch(f){throw Rt=null,f}}function A(t){for(var e=!0,n=!0,r=0;r<t.length;r++){var i=t.charAt(r);"'"===i&&n?e=!e:'"'===i&&e&&(n=!n)}return e&&n}function O(t){if(t=String(t).trim(),!t)return"";var e=t.match(te);return e&&_(e[1])===e[1]||t.match(Jt)&&A(t)?t:(n.isDevMode()&&r().log("WARNING: sanitizing unsafe style value "+t+" (see http://g.co/ng/security#xss)."),"unsafe")}function M(){W.makeCurrent(),Y.init()}function R(){return new n.ErrorHandler}function k(){return document}function I(t){return r().setGlobalVar(me,new ve(t)),t}function N(){r().setGlobalVar(me,null)}var D,L=void 0||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},j=null,F=function(){function t(){this.resourceLoaderType=null}return t.prototype.hasProperty=function(){},t.prototype.setProperty=function(){},t.prototype.getProperty=function(){},t.prototype.invoke=function(){},t.prototype.logError=function(){},t.prototype.log=function(){},t.prototype.logGroup=function(){},t.prototype.logGroupEnd=function(){},Object.defineProperty(t.prototype,"attrToPropMap",{get:function(){return this._attrToPropMap},set:function(t){this._attrToPropMap=t},enumerable:!0,configurable:!0}),t.prototype.contains=function(){},t.prototype.parse=function(){},t.prototype.querySelector=function(){},t.prototype.querySelectorAll=function(){},t.prototype.on=function(){},t.prototype.onAndCancel=function(){},t.prototype.dispatchEvent=function(){},t.prototype.createMouseEvent=function(){},t.prototype.createEvent=function(){},t.prototype.preventDefault=function(){},t.prototype.isPrevented=function(){},t.prototype.getInnerHTML=function(){},t.prototype.getTemplateContent=function(){},t.prototype.getOuterHTML=function(){},t.prototype.nodeName=function(){},t.prototype.nodeValue=function(){},t.prototype.type=function(){},t.prototype.content=function(){},t.prototype.firstChild=function(){},t.prototype.nextSibling=function(){},t.prototype.parentElement=function(){},t.prototype.childNodes=function(){},t.prototype.childNodesAsList=function(){},t.prototype.clearNodes=function(){},t.prototype.appendChild=function(){},t.prototype.removeChild=function(){},t.prototype.replaceChild=function(){},t.prototype.remove=function(){},t.prototype.insertBefore=function(){},t.prototype.insertAllBefore=function(){},t.prototype.insertAfter=function(){},t.prototype.setInnerHTML=function(){},t.prototype.getText=function(){},t.prototype.setText=function(){},t.prototype.getValue=function(){},t.prototype.setValue=function(){},t.prototype.getChecked=function(){},t.prototype.setChecked=function(){},t.prototype.createComment=function(){},t.prototype.createTemplate=function(){},t.prototype.createElement=function(){},t.prototype.createElementNS=function(){},t.prototype.createTextNode=function(){},t.prototype.createScriptTag=function(){},t.prototype.createStyleElement=function(){},t.prototype.createShadowRoot=function(){},t.prototype.getShadowRoot=function(){},t.prototype.getHost=function(){},t.prototype.getDistributedNodes=function(){},t.prototype.clone=function(){},t.prototype.getElementsByClassName=function(){},t.prototype.getElementsByTagName=function(){},t.prototype.classList=function(){},t.prototype.addClass=function(){},t.prototype.removeClass=function(){},t.prototype.hasClass=function(){},t.prototype.setStyle=function(){},t.prototype.removeStyle=function(){},t.prototype.getStyle=function(){},t.prototype.hasStyle=function(){},t.prototype.tagName=function(){},t.prototype.attributeMap=function(){},t.prototype.hasAttribute=function(){},t.prototype.hasAttributeNS=function(){},t.prototype.getAttribute=function(){},t.prototype.getAttributeNS=function(){},t.prototype.setAttribute=function(){},t.prototype.setAttributeNS=function(){},t.prototype.removeAttribute=function(){},t.prototype.removeAttributeNS=function(){},t.prototype.templateAwareRoot=function(){},t.prototype.createHtmlDocument=function(){},t.prototype.getBoundingClientRect=function(){},t.prototype.getTitle=function(){},t.prototype.setTitle=function(){},t.prototype.elementMatches=function(){},t.prototype.isTemplateElement=function(){},t.prototype.isTextNode=function(){},t.prototype.isCommentNode=function(){},t.prototype.isElementNode=function(){},t.prototype.hasShadowRoot=function(){},t.prototype.isShadowRoot=function(){},t.prototype.importIntoDoc=function(){},t.prototype.adoptNode=function(){},t.prototype.getHref=function(){},t.prototype.getEventKey=function(){},t.prototype.resolveAndSetHref=function(){},t.prototype.supportsDOMEvents=function(){},t.prototype.supportsNativeShadowDOM=function(){},t.prototype.getGlobalEventTarget=function(){},t.prototype.getHistory=function(){}, -t.prototype.getLocation=function(){},t.prototype.getBaseHref=function(){},t.prototype.resetBaseElement=function(){},t.prototype.getUserAgent=function(){},t.prototype.setData=function(){},t.prototype.getComputedStyle=function(){},t.prototype.getData=function(){},t.prototype.setGlobalVar=function(){},t.prototype.supportsWebAnimation=function(){},t.prototype.performanceNow=function(){},t.prototype.getAnimationPrefix=function(){},t.prototype.getTransitionEnd=function(){},t.prototype.supportsAnimation=function(){},t.prototype.supportsCookies=function(){},t.prototype.getCookie=function(){},t.prototype.setCookie=function(){},t}(),V=function(t){function e(){var e=t.call(this)||this;e._animationPrefix=null,e._transitionEnd=null;try{var n=e.createElement("div",document);if(null!=e.getStyle(n,"animationName"))e._animationPrefix="";else for(var r=["Webkit","Moz","O","ms"],i=0;i<r.length;i++)if(null!=e.getStyle(n,r[i]+"AnimationName")){e._animationPrefix="-"+r[i].toLowerCase()+"-";break}var o={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend",transition:"transitionend"};Object.keys(o).forEach(function(t){null!=e.getStyle(n,t)&&(e._transitionEnd=o[t])})}catch(s){e._animationPrefix=null,e._transitionEnd=null}return e}return L(e,t),e.prototype.getDistributedNodes=function(t){return t.getDistributedNodes()},e.prototype.resolveAndSetHref=function(t,e,n){t.href=null==n?e:e+"/../"+n},e.prototype.supportsDOMEvents=function(){return!0},e.prototype.supportsNativeShadowDOM=function(){return"function"==typeof document.body.createShadowRoot},e.prototype.getAnimationPrefix=function(){return this._animationPrefix?this._animationPrefix:""},e.prototype.getTransitionEnd=function(){return this._transitionEnd?this._transitionEnd:""},e.prototype.supportsAnimation=function(){return null!=this._animationPrefix&&null!=this._transitionEnd},e}(F),U={"class":"className",innerHtml:"innerHTML",readonly:"readOnly",tabindex:"tabIndex"},B=3,H={"\b":"Backspace"," ":"Tab","":"Delete","":"Escape",Del:"Delete",Esc:"Escape",Left:"ArrowLeft",Right:"ArrowRight",Up:"ArrowUp",Down:"ArrowDown",Menu:"ContextMenu",Scroll:"ScrollLock",Win:"OS"},q={A:"1",B:"2",C:"3",D:"4",E:"5",F:"6",G:"7",H:"8",I:"9",J:"*",K:"+",M:"-",N:".",O:"/","`":"0","Â":"NumLock"};n.ɵglobal.Node&&(D=n.ɵglobal.Node.prototype.contains||function(t){return!!(16&this.compareDocumentPosition(t))});var z,W=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return L(e,t),e.prototype.parse=function(){throw new Error("parse not implemented")},e.makeCurrent=function(){i(new e)},e.prototype.hasProperty=function(t,e){return e in t},e.prototype.setProperty=function(t,e,n){t[e]=n},e.prototype.getProperty=function(t,e){return t[e]},e.prototype.invoke=function(t,e,n){t[e].apply(t,n)},e.prototype.logError=function(t){window.console&&(console.error?console.error(t):console.log(t))},e.prototype.log=function(t){window.console&&window.console.log&&window.console.log(t)},e.prototype.logGroup=function(t){window.console&&window.console.group&&window.console.group(t)},e.prototype.logGroupEnd=function(){window.console&&window.console.groupEnd&&window.console.groupEnd()},Object.defineProperty(e.prototype,"attrToPropMap",{get:function(){return U},enumerable:!0,configurable:!0}),e.prototype.contains=function(t,e){return D.call(t,e)},e.prototype.querySelector=function(t,e){return t.querySelector(e)},e.prototype.querySelectorAll=function(t,e){return t.querySelectorAll(e)},e.prototype.on=function(t,e,n){t.addEventListener(e,n,!1)},e.prototype.onAndCancel=function(t,e,n){return t.addEventListener(e,n,!1),function(){t.removeEventListener(e,n,!1)}},e.prototype.dispatchEvent=function(t,e){t.dispatchEvent(e)},e.prototype.createMouseEvent=function(t){var e=document.createEvent("MouseEvent");return e.initEvent(t,!0,!0),e},e.prototype.createEvent=function(t){var e=document.createEvent("Event");return e.initEvent(t,!0,!0),e},e.prototype.preventDefault=function(t){t.preventDefault(),t.returnValue=!1},e.prototype.isPrevented=function(t){return t.defaultPrevented||null!=t.returnValue&&!t.returnValue},e.prototype.getInnerHTML=function(t){return t.innerHTML},e.prototype.getTemplateContent=function(t){return"content"in t&&t instanceof HTMLTemplateElement?t.content:null},e.prototype.getOuterHTML=function(t){return t.outerHTML},e.prototype.nodeName=function(t){return t.nodeName},e.prototype.nodeValue=function(t){return t.nodeValue},e.prototype.type=function(t){return t.type},e.prototype.content=function(t){return this.hasProperty(t,"content")?t.content:t},e.prototype.firstChild=function(t){return t.firstChild},e.prototype.nextSibling=function(t){return t.nextSibling},e.prototype.parentElement=function(t){return t.parentNode},e.prototype.childNodes=function(t){return t.childNodes},e.prototype.childNodesAsList=function(t){for(var e=t.childNodes,n=new Array(e.length),r=0;r<e.length;r++)n[r]=e[r];return n},e.prototype.clearNodes=function(t){for(;t.firstChild;)t.removeChild(t.firstChild)},e.prototype.appendChild=function(t,e){t.appendChild(e)},e.prototype.removeChild=function(t,e){t.removeChild(e)},e.prototype.replaceChild=function(t,e,n){t.replaceChild(e,n)},e.prototype.remove=function(t){return t.parentNode&&t.parentNode.removeChild(t),t},e.prototype.insertBefore=function(t,e,n){t.insertBefore(n,e)},e.prototype.insertAllBefore=function(t,e,n){n.forEach(function(n){return t.insertBefore(n,e)})},e.prototype.insertAfter=function(t,e,n){t.insertBefore(n,e.nextSibling)},e.prototype.setInnerHTML=function(t,e){t.innerHTML=e},e.prototype.getText=function(t){return t.textContent},e.prototype.setText=function(t,e){t.textContent=e},e.prototype.getValue=function(t){return t.value},e.prototype.setValue=function(t,e){t.value=e},e.prototype.getChecked=function(t){return t.checked},e.prototype.setChecked=function(t,e){t.checked=e},e.prototype.createComment=function(t){return document.createComment(t)},e.prototype.createTemplate=function(t){var e=document.createElement("template");return e.innerHTML=t,e},e.prototype.createElement=function(t,e){return void 0===e&&(e=document),e.createElement(t)},e.prototype.createElementNS=function(t,e,n){return void 0===n&&(n=document),n.createElementNS(t,e)},e.prototype.createTextNode=function(t,e){return void 0===e&&(e=document),e.createTextNode(t)},e.prototype.createScriptTag=function(t,e,n){void 0===n&&(n=document);var r=n.createElement("SCRIPT");return r.setAttribute(t,e),r},e.prototype.createStyleElement=function(t,e){void 0===e&&(e=document);var n=e.createElement("style");return this.appendChild(n,this.createTextNode(t)),n},e.prototype.createShadowRoot=function(t){return t.createShadowRoot()},e.prototype.getShadowRoot=function(t){return t.shadowRoot},e.prototype.getHost=function(t){return t.host},e.prototype.clone=function(t){return t.cloneNode(!0)},e.prototype.getElementsByClassName=function(t,e){return t.getElementsByClassName(e)},e.prototype.getElementsByTagName=function(t,e){return t.getElementsByTagName(e)},e.prototype.classList=function(t){return Array.prototype.slice.call(t.classList,0)},e.prototype.addClass=function(t,e){t.classList.add(e)},e.prototype.removeClass=function(t,e){t.classList.remove(e)},e.prototype.hasClass=function(t,e){return t.classList.contains(e)},e.prototype.setStyle=function(t,e,n){t.style[e]=n},e.prototype.removeStyle=function(t,e){t.style[e]=""},e.prototype.getStyle=function(t,e){return t.style[e]},e.prototype.hasStyle=function(t,e,n){void 0===n&&(n=null);var r=this.getStyle(t,e)||"";return n?r==n:r.length>0},e.prototype.tagName=function(t){return t.tagName},e.prototype.attributeMap=function(t){for(var e=new Map,n=t.attributes,r=0;r<n.length;r++){var i=n[r];e.set(i.name,i.value)}return e},e.prototype.hasAttribute=function(t,e){return t.hasAttribute(e)},e.prototype.hasAttributeNS=function(t,e,n){return t.hasAttributeNS(e,n)},e.prototype.getAttribute=function(t,e){return t.getAttribute(e)},e.prototype.getAttributeNS=function(t,e,n){return t.getAttributeNS(e,n)},e.prototype.setAttribute=function(t,e,n){t.setAttribute(e,n)},e.prototype.setAttributeNS=function(t,e,n,r){t.setAttributeNS(e,n,r)},e.prototype.removeAttribute=function(t,e){t.removeAttribute(e)},e.prototype.removeAttributeNS=function(t,e,n){t.removeAttributeNS(e,n)},e.prototype.templateAwareRoot=function(t){return this.isTemplateElement(t)?this.content(t):t},e.prototype.createHtmlDocument=function(){return document.implementation.createHTMLDocument("fakeTitle")},e.prototype.getBoundingClientRect=function(t){try{return t.getBoundingClientRect()}catch(e){return{top:0,bottom:0,left:0,right:0,width:0,height:0}}},e.prototype.getTitle=function(){return document.title},e.prototype.setTitle=function(t,e){document.title=e||""},e.prototype.elementMatches=function(t,e){return t instanceof HTMLElement?t.matches&&t.matches(e)||t.msMatchesSelector&&t.msMatchesSelector(e)||t.webkitMatchesSelector&&t.webkitMatchesSelector(e):!1},e.prototype.isTemplateElement=function(t){return t instanceof HTMLElement&&"TEMPLATE"==t.nodeName},e.prototype.isTextNode=function(t){return t.nodeType===Node.TEXT_NODE},e.prototype.isCommentNode=function(t){return t.nodeType===Node.COMMENT_NODE},e.prototype.isElementNode=function(t){return t.nodeType===Node.ELEMENT_NODE},e.prototype.hasShadowRoot=function(t){return null!=t.shadowRoot&&t instanceof HTMLElement},e.prototype.isShadowRoot=function(t){return t instanceof DocumentFragment},e.prototype.importIntoDoc=function(t){return document.importNode(this.templateAwareRoot(t),!0)},e.prototype.adoptNode=function(t){return document.adoptNode(t)},e.prototype.getHref=function(t){return t.href},e.prototype.getEventKey=function(t){var e=t.key;if(null==e){if(e=t.keyIdentifier,null==e)return"Unidentified";e.startsWith("U+")&&(e=String.fromCharCode(parseInt(e.substring(2),16)),t.location===B&&q.hasOwnProperty(e)&&(e=q[e]))}return H[e]||e},e.prototype.getGlobalEventTarget=function(t,e){return"window"===e?window:"document"===e?document:"body"===e?document.body:void 0},e.prototype.getHistory=function(){return window.history},e.prototype.getLocation=function(){return window.location},e.prototype.getBaseHref=function(){var t=o();return null==t?null:s(t)},e.prototype.resetBaseElement=function(){G=null},e.prototype.getUserAgent=function(){return window.navigator.userAgent},e.prototype.setData=function(t,e,n){this.setAttribute(t,"data-"+e,n)},e.prototype.getData=function(t,e){return this.getAttribute(t,"data-"+e)},e.prototype.getComputedStyle=function(t){return getComputedStyle(t)},e.prototype.setGlobalVar=function(t,e){u(n.ɵglobal,t,e)},e.prototype.supportsWebAnimation=function(){return"function"==typeof Element.prototype.animate},e.prototype.performanceNow=function(){return window.performance&&window.performance.now?window.performance.now():(new Date).getTime()},e.prototype.supportsCookies=function(){return!0},e.prototype.getCookie=function(t){return a(document.cookie,t)},e.prototype.setCookie=function(t,e){document.cookie=encodeURIComponent(t)+"="+encodeURIComponent(e)},e}(V),G=null,K=new n.InjectionToken("DocumentToken"),Q=function(t){function e(e){var n=t.call(this)||this;return n._doc=e,n._init(),n}return L(e,t),e.prototype._init=function(){this._location=r().getLocation(),this._history=r().getHistory()},Object.defineProperty(e.prototype,"location",{get:function(){return this._location},enumerable:!0,configurable:!0}),e.prototype.getBaseHrefFromDOM=function(){return r().getBaseHref(this._doc)},e.prototype.onPopState=function(t){r().getGlobalEventTarget(this._doc,"window").addEventListener("popstate",t,!1)},e.prototype.onHashChange=function(t){r().getGlobalEventTarget(this._doc,"window").addEventListener("hashchange",t,!1)},Object.defineProperty(e.prototype,"pathname",{get:function(){return this._location.pathname},set:function(t){this._location.pathname=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"search",{get:function(){return this._location.search},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"hash",{get:function(){return this._location.hash},enumerable:!0,configurable:!0}),e.prototype.pushState=function(t,e,n){c()?this._history.pushState(t,e,n):this._location.hash=n},e.prototype.replaceState=function(t,e,n){c()?this._history.replaceState(t,e,n):this._location.hash=n},e.prototype.forward=function(){this._history.forward()},e.prototype.back=function(){this._history.back()},e}(e.PlatformLocation);Q.decorators=[{type:n.Injectable}],Q.ctorParameters=function(){return[{type:void 0,decorators:[{type:n.Inject,args:[K]}]}]};var X=function(){function t(t){this._doc=t,this._dom=r()}return t.prototype.addTag=function(t,e){return void 0===e&&(e=!1),t?this._getOrCreateElement(t,e):null},t.prototype.addTags=function(t,e){var n=this;return void 0===e&&(e=!1),t?t.reduce(function(t,r){return r&&t.push(n._getOrCreateElement(r,e)),t},[]):[]},t.prototype.getTag=function(t){return t?this._dom.querySelector(this._doc,"meta["+t+"]"):null},t.prototype.getTags=function(t){if(!t)return[];var e=this._dom.querySelectorAll(this._doc,"meta["+t+"]");return e?[].slice.call(e):[]},t.prototype.updateTag=function(t,e){if(!t)return null;e=e||this._parseSelector(t);var n=this.getTag(e);return n?this._setMetaElementAttributes(t,n):this._getOrCreateElement(t,!0)},t.prototype.removeTag=function(t){this.removeTagElement(this.getTag(t))},t.prototype.removeTagElement=function(t){t&&this._dom.remove(t)},t.prototype._getOrCreateElement=function(t,e){if(void 0===e&&(e=!1),!e){var n=this._parseSelector(t),r=this.getTag(n);if(r&&this._containsAttributes(t,r))return r}var i=this._dom.createElement("meta");this._setMetaElementAttributes(t,i);var o=this._dom.getElementsByTagName(this._doc,"head")[0];return this._dom.appendChild(o,i),i},t.prototype._setMetaElementAttributes=function(t,e){var n=this;return Object.keys(t).forEach(function(r){return n._dom.setAttribute(e,r,t[r])}),e},t.prototype._parseSelector=function(t){var e=t.name?"name":"property";return e+'="'+t[e]+'"'},t.prototype._containsAttributes=function(t,e){var n=this;return Object.keys(t).every(function(r){return n._dom.getAttribute(e,r)===t[r]})},t}();X.decorators=[{type:n.Injectable}],X.ctorParameters=function(){return[{type:void 0,decorators:[{type:n.Inject,args:[K]}]}]};var $=new n.InjectionToken("TRANSITION_ID"),Z=[{provide:n.APP_INITIALIZER,useFactory:l,deps:[$,K],multi:!0}],Y=function(){function t(){}return t.init=function(){n.setTestabilityGetter(new t)},t.prototype.addToWindow=function(t){n.ɵglobal.getAngularTestability=function(e,n){void 0===n&&(n=!0);var r=t.findTestabilityInTree(e,n);if(null==r)throw new Error("Could not find testability for element.");return r},n.ɵglobal.getAllAngularTestabilities=function(){return t.getAllTestabilities()},n.ɵglobal.getAllAngularRootElements=function(){return t.getAllRootElements()};var e=function(t){var e=n.ɵglobal.getAllAngularTestabilities(),r=e.length,i=!1,o=function(e){i=i||e,r--,0==r&&t(i)};e.forEach(function(t){t.whenStable(o)})};n.ɵglobal.frameworkStabilizers||(n.ɵglobal.frameworkStabilizers=[]),n.ɵglobal.frameworkStabilizers.push(e)},t.prototype.findTestabilityInTree=function(t,e,n){if(null==e)return null;var i=t.getTestability(e);return null!=i?i:n?r().isShadowRoot(e)?this.findTestabilityInTree(t,r().getHost(e),!0):this.findTestabilityInTree(t,r().parentElement(e),!0):null},t}(),J=function(){function t(t){this._doc=t}return t.prototype.getTitle=function(){return r().getTitle(this._doc)},t.prototype.setTitle=function(t){r().setTitle(this._doc,t)},t}();J.decorators=[{type:n.Injectable}],J.ctorParameters=function(){return[{type:void 0,decorators:[{type:n.Inject,args:[K]}]}]};var tt=void 0||Object.assign||function(t){for(var e,n=1,r=arguments.length;r>n;n++){e=arguments[n];for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])}return t},et={ApplicationRef:n.ApplicationRef,NgZone:n.NgZone},nt="ng.probe",rt="ng.coreTokens",it=function(){function t(t,e){this.name=t,this.token=e}return t}(),ot=[{provide:n.APP_INITIALIZER,useFactory:h,deps:[[it,new n.Optional],[n.NgProbeToken,new n.Optional]],multi:!0}],st=new n.InjectionToken("EventManagerPlugins"),at=function(){function t(t,e){var n=this;this._zone=e,this._eventNameToPlugin=new Map,t.forEach(function(t){return t.manager=n}),this._plugins=t.slice().reverse()}return t.prototype.addEventListener=function(t,e,n){var r=this._findPluginFor(e);return r.addEventListener(t,e,n)},t.prototype.addGlobalEventListener=function(t,e,n){var r=this._findPluginFor(e);return r.addGlobalEventListener(t,e,n)},t.prototype.getZone=function(){return this._zone},t.prototype._findPluginFor=function(t){var e=this._eventNameToPlugin.get(t);if(e)return e;for(var n=this._plugins,r=0;r<n.length;r++){var i=n[r];if(i.supports(t))return this._eventNameToPlugin.set(t,i),i}throw new Error("No event manager plugin found for event "+t)},t}();at.decorators=[{type:n.Injectable}],at.ctorParameters=function(){return[{type:Array,decorators:[{type:n.Inject,args:[st]}]},{type:n.NgZone}]};var ut=function(){function t(t){this._doc=t}return t.prototype.supports=function(){},t.prototype.addEventListener=function(){},t.prototype.addGlobalEventListener=function(t,e,n){var i=r().getGlobalEventTarget(this._doc,t);if(!i)throw new Error("Unsupported event target "+i+" for event "+e);return this.addEventListener(i,e,n)},t}(),ct=function(){function t(){this._stylesSet=new Set}return t.prototype.addStyles=function(t){var e=this,n=new Set;t.forEach(function(t){e._stylesSet.has(t)||(e._stylesSet.add(t),n.add(t))}),this.onStylesAdded(n)},t.prototype.onStylesAdded=function(){},t.prototype.getAllStyles=function(){return Array.from(this._stylesSet)},t}();ct.decorators=[{type:n.Injectable}],ct.ctorParameters=function(){return[]};var lt=function(t){function e(e){var n=t.call(this)||this;return n._doc=e,n._hostNodes=new Set,n._styleNodes=new Set,n._hostNodes.add(e.head),n}return L(e,t),e.prototype._addStylesToHost=function(t,e){var n=this;t.forEach(function(t){var r=n._doc.createElement("style");r.textContent=t,n._styleNodes.add(e.appendChild(r))})},e.prototype.addHost=function(t){this._addStylesToHost(this._stylesSet,t),this._hostNodes.add(t)},e.prototype.removeHost=function(t){this._hostNodes["delete"](t)},e.prototype.onStylesAdded=function(t){var e=this;this._hostNodes.forEach(function(n){return e._addStylesToHost(t,n)})},e.prototype.ngOnDestroy=function(){this._styleNodes.forEach(function(t){return r().remove(t)})},e}(ct);lt.decorators=[{type:n.Injectable}],lt.ctorParameters=function(){return[{type:void 0,decorators:[{type:n.Inject,args:[K]}]}]};var pt={svg:"http://www.w3.org/2000/svg",xhtml:"http://www.w3.org/1999/xhtml",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"},ht=/%COMP%/g,ft="%COMP%",dt="_nghost-"+ft,vt="_ngcontent-"+ft,mt=function(){function t(t,e){this.eventManager=t,this.sharedStylesHost=e,this.rendererByCompId=new Map,this.defaultRenderer=new yt(t)}return t.prototype.createRenderer=function(t,e){if(!t||!e)return this.defaultRenderer;switch(e.encapsulation){case n.ViewEncapsulation.Emulated:var r=this.rendererByCompId.get(e.id);return r||(r=new _t(this.eventManager,this.sharedStylesHost,e),this.rendererByCompId.set(e.id,r)),r.applyToHost(t),r;case n.ViewEncapsulation.Native:return new bt(this.eventManager,this.sharedStylesHost,t,e);default:if(!this.rendererByCompId.has(e.id)){var i=m(e.id,e.styles,[]);this.sharedStylesHost.addStyles(i),this.rendererByCompId.set(e.id,this.defaultRenderer)}return this.defaultRenderer}},t}();mt.decorators=[{type:n.Injectable}],mt.ctorParameters=function(){return[{type:at},{type:lt}]};var yt=function(){function t(t){this.eventManager=t,this.data=Object.create(null)}return t.prototype.destroy=function(){},t.prototype.createElement=function(t,e){return e?document.createElementNS(pt[e],t):document.createElement(t)},t.prototype.createComment=function(t){return document.createComment(t)},t.prototype.createText=function(t){return document.createTextNode(t)},t.prototype.appendChild=function(t,e){t.appendChild(e)},t.prototype.insertBefore=function(t,e,n){t&&t.insertBefore(e,n)},t.prototype.removeChild=function(t,e){t&&t.removeChild(e)},t.prototype.selectRootElement=function(t){var e="string"==typeof t?document.querySelector(t):t;if(!e)throw new Error('The selector "'+t+'" did not match any elements');return e.textContent="",e},t.prototype.parentNode=function(t){return t.parentNode},t.prototype.nextSibling=function(t){return t.nextSibling},t.prototype.setAttribute=function(t,e,n,r){if(r){e=r+":"+e;var i=pt[r];i?t.setAttributeNS(i,e,n):t.setAttribute(e,n)}else t.setAttribute(e,n)},t.prototype.removeAttribute=function(t,e,n){if(n){var r=pt[n];r?t.removeAttributeNS(r,e):t.removeAttribute(n+":"+e)}else t.removeAttribute(e)},t.prototype.addClass=function(t,e){t.classList.add(e)},t.prototype.removeClass=function(t,e){t.classList.remove(e)},t.prototype.setStyle=function(t,e,r,i){i&n.RendererStyleFlags2.DashCase?t.style.setProperty(e,r,i&n.RendererStyleFlags2.Important?"important":""):t.style[e]=r},t.prototype.removeStyle=function(t,e,r){r&n.RendererStyleFlags2.DashCase?t.style.removeProperty(e):t.style[e]=""},t.prototype.setProperty=function(t,e,n){g(e,"property"),t[e]=n},t.prototype.setValue=function(t,e){t.nodeValue=e},t.prototype.listen=function(t,e,n){return g(e,"listener"),"string"==typeof t?this.eventManager.addGlobalEventListener(t,e,y(n)):this.eventManager.addEventListener(t,e,y(n))},t}(),gt="@".charCodeAt(0),_t=function(t){function e(e,n,r){var i=t.call(this,e)||this;i.component=r;var o=m(r.id,r.styles,[]);return n.addStyles(o),i.contentAttr=d(r.id),i.hostAttr=v(r.id),i}return L(e,t),e.prototype.applyToHost=function(e){t.prototype.setAttribute.call(this,e,this.hostAttr,"")},e.prototype.createElement=function(e,n){var r=t.prototype.createElement.call(this,e,n);return t.prototype.setAttribute.call(this,r,this.contentAttr,""),r},e}(yt),bt=function(t){function e(e,n,r,i){var o=t.call(this,e)||this;o.sharedStylesHost=n,o.hostEl=r,o.component=i,o.shadowRoot=r.createShadowRoot(),o.sharedStylesHost.addHost(o.shadowRoot);for(var s=m(i.id,i.styles,[]),a=0;a<s.length;a++){var u=document.createElement("style");u.textContent=s[a],o.shadowRoot.appendChild(u)}return o}return L(e,t),e.prototype.nodeOrShadowRoot=function(t){return t===this.hostEl?this.shadowRoot:t},e.prototype.destroy=function(){this.sharedStylesHost.removeHost(this.shadowRoot)},e.prototype.appendChild=function(e,n){return t.prototype.appendChild.call(this,this.nodeOrShadowRoot(e),n)},e.prototype.insertBefore=function(e,n,r){return t.prototype.insertBefore.call(this,this.nodeOrShadowRoot(e),n,r)},e.prototype.removeChild=function(e,n){return t.prototype.removeChild.call(this,this.nodeOrShadowRoot(e),n)},e.prototype.parentNode=function(e){return this.nodeOrShadowRoot(t.prototype.parentNode.call(this,this.nodeOrShadowRoot(e)))},e}(yt),wt=function(t){function e(e){return t.call(this,e)||this}return L(e,t),e.prototype.supports=function(){return!0},e.prototype.addEventListener=function(t,e,n){return t.addEventListener(e,n,!1),function(){return t.removeEventListener(e,n,!1)}},e}(ut);wt.decorators=[{type:n.Injectable}],wt.ctorParameters=function(){return[{type:void 0,decorators:[{type:n.Inject,args:[K]}]}]};var Et={pan:!0,panstart:!0,panmove:!0,panend:!0,pancancel:!0,panleft:!0,panright:!0,panup:!0,pandown:!0,pinch:!0,pinchstart:!0,pinchmove:!0,pinchend:!0,pinchcancel:!0,pinchin:!0,pinchout:!0,press:!0,pressup:!0,rotate:!0,rotatestart:!0,rotatemove:!0,rotateend:!0,rotatecancel:!0,swipe:!0,swipeleft:!0,swiperight:!0,swipeup:!0,swipedown:!0,tap:!0},Ct=new n.InjectionToken("HammerGestureConfig"),St=function(){function t(){this.events=[],this.overrides={}}return t.prototype.buildHammer=function(t){var e=new Hammer(t);e.get("pinch").set({enable:!0}),e.get("rotate").set({enable:!0});for(var n in this.overrides)e.get(n).set(this.overrides[n]);return e},t}();St.decorators=[{type:n.Injectable}],St.ctorParameters=function(){return[]};var xt=function(t){function e(e,n){var r=t.call(this,e)||this;return r._config=n,r}return L(e,t),e.prototype.supports=function(t){if(!Et.hasOwnProperty(t.toLowerCase())&&!this.isCustomEvent(t))return!1;if(!window.Hammer)throw new Error("Hammer.js is not loaded, can not bind "+t+" event");return!0},e.prototype.addEventListener=function(t,e,n){var r=this,i=this.manager.getZone();return e=e.toLowerCase(),i.runOutsideAngular(function(){var o=r._config.buildHammer(t),s=function(t){i.runGuarded(function(){n(t)})};return o.on(e,s),function(){return o.off(e,s)}})},e.prototype.isCustomEvent=function(t){return this._config.events.indexOf(t)>-1},e}(ut);xt.decorators=[{type:n.Injectable}],xt.ctorParameters=function(){return[{type:void 0,decorators:[{type:n.Inject,args:[K]}]},{type:St,decorators:[{type:n.Inject,args:[Ct]}]}]};var Tt=["alt","control","meta","shift"],Pt={alt:function(t){return t.altKey},control:function(t){return t.ctrlKey},meta:function(t){return t.metaKey},shift:function(t){return t.shiftKey}},At=function(t){function e(e){return t.call(this,e)||this}return L(e,t),e.prototype.supports=function(t){return null!=e.parseEventName(t)},e.prototype.addEventListener=function(t,n,i){var o=e.parseEventName(n),s=e.eventCallback(o.fullKey,i,this.manager.getZone());return this.manager.getZone().runOutsideAngular(function(){return r().onAndCancel(t,o.domEventName,s)})},e.parseEventName=function(t){var n=t.toLowerCase().split("."),r=n.shift();if(0===n.length||"keydown"!==r&&"keyup"!==r)return null;var i=e._normalizeKey(n.pop()),o="";if(Tt.forEach(function(t){var e=n.indexOf(t);e>-1&&(n.splice(e,1),o+=t+".")}),o+=i,0!=n.length||0===i.length)return null;var s={};return s.domEventName=r,s.fullKey=o,s},e.getEventFullKey=function(t){var e="",n=r().getEventKey(t);return n=n.toLowerCase()," "===n?n="space":"."===n&&(n="dot"),Tt.forEach(function(r){if(r!=n){var i=Pt[r];i(t)&&(e+=r+".")}}),e+=n},e.eventCallback=function(t,n,r){return function(i){e.getEventFullKey(i)===t&&r.runGuarded(function(){return n(i)})}},e._normalizeKey=function(t){switch(t){case"esc":return"escape";default:return t}},e}(ut);At.decorators=[{type:n.Injectable}],At.ctorParameters=function(){return[{type:void 0,decorators:[{type:n.Inject,args:[K]}]}]};var Ot=/^(?:(?:https?|mailto|ftp|tel|file):|[^&:\/?#]*(?:[\/?#]|$))/gi,Mt=/^data:(?:image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp)|video\/(?:mpeg|mp4|ogg|webm)|audio\/(?:mp3|oga|ogg|opus));base64,[a-z0-9+\/]+=*$/i,Rt=null,kt=null,It=E("area,br,col,hr,img,wbr"),Nt=E("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),Dt=E("rp,rt"),Lt=C(Dt,Nt),jt=C(Nt,E("address,article,aside,blockquote,caption,center,del,details,dialog,dir,div,dl,figure,figcaption,footer,h1,h2,h3,h4,h5,h6,header,hgroup,hr,ins,main,map,menu,nav,ol,pre,section,summary,table,ul")),Ft=C(Dt,E("a,abbr,acronym,audio,b,bdi,bdo,big,br,cite,code,del,dfn,em,font,i,img,ins,kbd,label,map,mark,picture,q,ruby,rp,rt,s,samp,small,source,span,strike,strong,sub,sup,time,track,tt,u,var,video")),Vt=C(It,jt,Ft,Lt),Ut=E("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),Bt=E("srcset"),Ht=E("abbr,accesskey,align,alt,autoplay,axis,bgcolor,border,cellpadding,cellspacing,class,clear,color,cols,colspan,compact,controls,coords,datetime,default,dir,download,face,headers,height,hidden,hreflang,hspace,ismap,itemscope,itemprop,kind,label,lang,language,loop,media,muted,nohref,nowrap,open,preload,rel,rev,role,rows,rowspan,rules,scope,scrolling,shape,size,sizes,span,srclang,start,summary,tabindex,target,title,translate,type,usemap,valign,value,vspace,width"),qt=C(Ut,Bt,Ht),zt=function(){function t(){this.sanitizedSomething=!1,this.buf=[]}return t.prototype.sanitizeChildren=function(t){for(var e=t.firstChild;e;)if(kt.isElementNode(e)?this.startElement(e):kt.isTextNode(e)?this.chars(kt.nodeValue(e)):this.sanitizedSomething=!0,kt.firstChild(e))e=kt.firstChild(e);else for(;e;){kt.isElementNode(e)&&this.endElement(e);var n=S(e,kt.nextSibling(e));if(n){e=n;break}e=S(e,kt.parentElement(e))}return this.buf.join("")},t.prototype.startElement=function(t){var e=this,n=kt.nodeName(t).toLowerCase();return Vt.hasOwnProperty(n)?(this.buf.push("<"),this.buf.push(n),kt.attributeMap(t).forEach(function(t,n){var r=n.toLowerCase();return qt.hasOwnProperty(r)?(Ut[r]&&(t=_(t)),Bt[r]&&(t=b(t)),e.buf.push(" "),e.buf.push(n),e.buf.push('="'),e.buf.push(x(t)),void e.buf.push('"')):void(e.sanitizedSomething=!0)}),void this.buf.push(">")):void(this.sanitizedSomething=!0)},t.prototype.endElement=function(t){var e=kt.nodeName(t).toLowerCase();Vt.hasOwnProperty(e)&&!It.hasOwnProperty(e)&&(this.buf.push("</"),this.buf.push(e),this.buf.push(">"))},t.prototype.chars=function(t){this.buf.push(x(t))},t}(),Wt=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,Gt=/([^\#-~ |!])/g,Kt="[-,.\"'%_!# a-zA-Z0-9]+",Qt="(?:matrix|translate|scale|rotate|skew|perspective)(?:X|Y|3d)?",Xt="(?:rgb|hsl)a?",$t="(?:repeating-)?(?:linear|radial)-gradient",Zt="(?:calc|attr)",Yt="\\([-0-9.%, #a-zA-Z]+\\)",Jt=new RegExp("^("+Kt+"|"+("(?:"+Qt+"|"+Xt+"|"+$t+"|"+Zt+")")+(Yt+")$"),"g"),te=/^url\(([^)]+)\)$/,ee=function(){function t(){}return t.prototype.sanitize=function(){},t.prototype.bypassSecurityTrustHtml=function(){},t.prototype.bypassSecurityTrustStyle=function(){},t.prototype.bypassSecurityTrustScript=function(){},t.prototype.bypassSecurityTrustUrl=function(){},t.prototype.bypassSecurityTrustResourceUrl=function(){},t}(),ne=function(t){function e(e){var n=t.call(this)||this;return n._doc=e,n}return L(e,t),e.prototype.sanitize=function(t,e){if(null==e)return null;switch(t){case n.SecurityContext.NONE:return e;case n.SecurityContext.HTML:return e instanceof ie?e.changingThisBreaksApplicationSecurity:(this.checkNotSafeValue(e,"HTML"),P(this._doc,String(e)));case n.SecurityContext.STYLE:return e instanceof oe?e.changingThisBreaksApplicationSecurity:(this.checkNotSafeValue(e,"Style"),O(e));case n.SecurityContext.SCRIPT:if(e instanceof se)return e.changingThisBreaksApplicationSecurity;throw this.checkNotSafeValue(e,"Script"),new Error("unsafe value used in a script context");case n.SecurityContext.URL:return e instanceof ue||e instanceof ae?e.changingThisBreaksApplicationSecurity:(this.checkNotSafeValue(e,"URL"),_(String(e)));case n.SecurityContext.RESOURCE_URL:if(e instanceof ue)return e.changingThisBreaksApplicationSecurity;throw this.checkNotSafeValue(e,"ResourceURL"),new Error("unsafe value used in a resource URL context (see http://g.co/ng/security#xss)");default:throw new Error("Unexpected SecurityContext "+t+" (see http://g.co/ng/security#xss)")}},e.prototype.checkNotSafeValue=function(t,e){if(t instanceof re)throw new Error("Required a safe "+e+", got a "+t.getTypeName()+" (see http://g.co/ng/security#xss)")},e.prototype.bypassSecurityTrustHtml=function(t){return new ie(t)},e.prototype.bypassSecurityTrustStyle=function(t){return new oe(t)},e.prototype.bypassSecurityTrustScript=function(t){return new se(t)},e.prototype.bypassSecurityTrustUrl=function(t){return new ae(t)},e.prototype.bypassSecurityTrustResourceUrl=function(t){return new ue(t)},e}(ee);ne.decorators=[{type:n.Injectable}],ne.ctorParameters=function(){return[{type:void 0,decorators:[{type:n.Inject,args:[K]}]}]};var re=function(){function t(t){this.changingThisBreaksApplicationSecurity=t}return t.prototype.getTypeName=function(){},t.prototype.toString=function(){return"SafeValue must use [property]=binding: "+this.changingThisBreaksApplicationSecurity+" (see http://g.co/ng/security#xss)"},t}(),ie=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return L(e,t),e.prototype.getTypeName=function(){return"HTML"},e}(re),oe=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return L(e,t),e.prototype.getTypeName=function(){return"Style"},e}(re),se=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return L(e,t),e.prototype.getTypeName=function(){return"Script"},e}(re),ae=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return L(e,t),e.prototype.getTypeName=function(){ -return"URL"},e}(re),ue=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return L(e,t),e.prototype.getTypeName=function(){return"ResourceURL"},e}(re),ce=[{provide:n.PLATFORM_ID,useValue:e.ɵPLATFORM_BROWSER_ID},{provide:n.PLATFORM_INITIALIZER,useValue:M,multi:!0},{provide:e.PlatformLocation,useClass:Q},{provide:K,useFactory:k,deps:[]}],le=[{provide:n.Sanitizer,useExisting:ee},{provide:ee,useClass:ne}],pe=n.createPlatformFactory(n.platformCore,"browser",ce),he=function(){function t(t){if(t)throw new Error("BrowserModule has already been loaded. If you need access to common directives such as NgIf and NgFor from a lazy loaded module, import CommonModule instead.")}return t.withServerTransition=function(e){return{ngModule:t,providers:[{provide:n.APP_ID,useValue:e.appId},{provide:$,useExisting:n.APP_ID},Z]}},t}();he.decorators=[{type:n.NgModule,args:[{providers:[le,{provide:n.ErrorHandler,useFactory:R,deps:[]},{provide:st,useClass:wt,multi:!0},{provide:st,useClass:At,multi:!0},{provide:st,useClass:xt,multi:!0},{provide:Ct,useClass:St},mt,{provide:n.RendererFactory2,useExisting:mt},{provide:ct,useExisting:lt},lt,n.Testability,at,ot,X,J],exports:[e.CommonModule,n.ApplicationModule]}]}],he.ctorParameters=function(){return[{type:he,decorators:[{type:n.Optional},{type:n.SkipSelf}]}]};var fe="undefined"!=typeof window&&window||{},de=function(){function t(t,e){this.msPerTick=t,this.numTicks=e}return t}(),ve=function(){function t(t){this.appRef=t.injector.get(n.ApplicationRef)}return t.prototype.timeChangeDetection=function(t){var e=t&&t.record,n="Change Detection",i=null!=fe.console.profile;e&&i&&fe.console.profile(n);for(var o=r().performanceNow(),s=0;5>s||r().performanceNow()-o<500;)this.appRef.tick(),s++;var a=r().performanceNow();e&&i&&fe.console.profileEnd(n);var u=(a-o)/s;return fe.console.log("ran "+s+" change detection cycles"),fe.console.log(u.toFixed(2)+" ms per check"),new de(u,s)},t}(),me="ng.profiler",ye=function(){function t(){}return t.all=function(){return function(){return!0}},t.css=function(t){return function(e){return null!=e.nativeElement?r().elementMatches(e.nativeElement,t):!1}},t.directive=function(t){return function(e){return-1!==e.providerTokens.indexOf(t)}},t}(),ge=new n.Version("4.0.1");t.BrowserModule=he,t.platformBrowser=pe,t.Meta=X,t.Title=J,t.disableDebugTools=N,t.enableDebugTools=I,t.By=ye,t.NgProbeToken=it,t.DOCUMENT=K,t.EVENT_MANAGER_PLUGINS=st,t.EventManager=at,t.HAMMER_GESTURE_CONFIG=Ct,t.HammerGestureConfig=St,t.DomSanitizer=ee,t.VERSION=ge,t.ɵBROWSER_SANITIZATION_PROVIDERS=le,t.ɵINTERNAL_BROWSER_PLATFORM_PROVIDERS=ce,t.ɵinitDomAdapter=M,t.ɵBrowserDomAdapter=W,t.ɵsetValueOnPath=u,t.ɵBrowserPlatformLocation=Q,t.ɵTRANSITION_ID=$,t.ɵBrowserGetTestability=Y,t.ɵELEMENT_PROBE_PROVIDERS=ot,t.ɵDomAdapter=F,t.ɵgetDOM=r,t.ɵsetRootDomAdapter=i,t.ɵDomRendererFactory2=mt,t.ɵNAMESPACE_URIS=pt,t.ɵflattenStyles=m,t.ɵshimContentAttribute=d,t.ɵshimHostAttribute=v,t.ɵDomEventsPlugin=wt,t.ɵHammerGesturesPlugin=xt,t.ɵKeyEventsPlugin=At,t.ɵDomSharedStylesHost=lt,t.ɵSharedStylesHost=ct,t.ɵb=k,t.ɵa=R,t.ɵh=V,t.ɵg=Z,t.ɵf=l,t.ɵc=h,t.ɵd=ut,t.ɵe=ne,Object.defineProperty(t,"__esModule",{value:!0})})},{"@angular/common":6,"@angular/core":8}],12:[function(e,n,r){!function(i,o){"object"==typeof r&&"undefined"!=typeof n?o(r,e("@angular/common"),e("@angular/core"),e("rxjs/BehaviorSubject"),e("rxjs/Subject"),e("rxjs/observable/from"),e("rxjs/observable/of"),e("rxjs/operator/concatMap"),e("rxjs/operator/every"),e("rxjs/operator/first"),e("rxjs/operator/map"),e("rxjs/operator/mergeMap"),e("rxjs/operator/reduce"),e("rxjs/Observable"),e("rxjs/operator/catch"),e("rxjs/operator/concatAll"),e("rxjs/util/EmptyError"),e("rxjs/observable/fromPromise"),e("rxjs/operator/last"),e("rxjs/operator/mergeAll"),e("@angular/platform-browser"),e("rxjs/operator/filter")):"function"==typeof t&&t.amd?t(["exports","@angular/common","@angular/core","rxjs/BehaviorSubject","rxjs/Subject","rxjs/observable/from","rxjs/observable/of","rxjs/operator/concatMap","rxjs/operator/every","rxjs/operator/first","rxjs/operator/map","rxjs/operator/mergeMap","rxjs/operator/reduce","rxjs/Observable","rxjs/operator/catch","rxjs/operator/concatAll","rxjs/util/EmptyError","rxjs/observable/fromPromise","rxjs/operator/last","rxjs/operator/mergeAll","@angular/platform-browser","rxjs/operator/filter"],o):o((i.ng=i.ng||{},i.ng.router=i.ng.router||{}),i.ng.common,i.ng.core,i.Rx,i.Rx,i.Rx.Observable,i.Rx.Observable,i.Rx.Observable.prototype,i.Rx.Observable.prototype,i.Rx.Observable.prototype,i.Rx.Observable.prototype,i.Rx.Observable.prototype,i.Rx.Observable.prototype,i.Rx,i.Rx.Observable.prototype,i.Rx.Observable.prototype,i.Rx,i.Rx.Observable,i.Rx.Observable.prototype,i.Rx.Observable.prototype,i.ng.platformBrowser,i.Rx.Observable.prototype)}(this,function(t,e,n,r,i,o,s,a,u,c,l,p,h,f,d,v,m,y,g,_,b,w){"use strict";function E(t){return new je(t)}function C(t){var e=Error("NavigationCancelingError: "+t);return e[Fe]=!0,e}function S(t){return t[Fe]}function x(t,e,n){for(var r=n.path,i=r.split("/"),o={},s=[],a=0,u=0;u<i.length;++u){if(a>=t.length)return null;var c=t[a],l=i[u],p=l.startsWith(":");if(!p&&l!==c.path)return null;p&&(o[l.substring(1)]=c),s.push(c),a++}return"full"===n.pathMatch&&(e.hasChildren()||a<t.length)?null:{consumed:s,posParams:o}}function T(t,e){if(t.length!==e.length)return!1;for(var n=0;n<t.length;++n)if(!P(t[n],e[n]))return!1;return!0}function P(t,e){var n=Object.keys(t),r=Object.keys(e);if(n.length!=r.length)return!1;for(var i,o=0;o<n.length;o++)if(i=n[o],t[i]!==e[i])return!1;return!0}function A(t){return Array.prototype.concat.apply([],t)}function O(t){return t.length>0?t[t.length-1]:null}function M(t,e){for(var n in t)t.hasOwnProperty(n)&&e(t[n],n)}function R(t,e){var n=[],r={};if(M(t,function(t,i){i===Le&&n.push(l.map.call(e(i,t),function(t){return r[i]=t,t}))}),M(t,function(t,i){i!==Le&&n.push(l.map.call(e(i,t),function(t){return r[i]=t,t}))}),n.length>0){var i=v.concatAll.call(s.of.apply(void 0,n)),o=g.last.call(i);return l.map.call(o,function(){return r})}return s.of(r)}function k(t){var e=_.mergeAll.call(t);return u.every.call(e,function(t){return t===!0})}function I(t){return n.ɵisObservable(t)?t:n.ɵisPromise(t)?y.fromPromise(t):s.of(t)}function N(){return new He(new qe([],{}),{},null)}function D(t,e,n){return n?L(t.queryParams,e.queryParams)&&j(t.root,e.root):F(t.queryParams,e.queryParams)&&V(t.root,e.root)}function L(t,e){return P(t,e)}function j(t,e){if(!H(t.segments,e.segments))return!1;if(t.numberOfChildren!==e.numberOfChildren)return!1;for(var n in e.children){if(!t.children[n])return!1;if(!j(t.children[n],e.children[n]))return!1}return!0}function F(t,e){return Object.keys(e).length<=Object.keys(t).length&&Object.keys(e).every(function(n){return e[n]===t[n]})}function V(t,e){return U(t,e,e.segments)}function U(t,e,n){if(t.segments.length>n.length){var r=t.segments.slice(0,n.length);return H(r,n)?e.hasChildren()?!1:!0:!1}if(t.segments.length===n.length){if(!H(t.segments,n))return!1;for(var i in e.children){if(!t.children[i])return!1;if(!V(t.children[i],e.children[i]))return!1}return!0}var r=n.slice(0,t.segments.length),o=n.slice(t.segments.length);return H(t.segments,r)&&t.children[Le]?U(t.children[Le],e,o):!1}function B(t,e){if(t.length!==e.length)return!1;for(var n=0;n<t.length;++n){if(t[n].path!==e[n].path)return!1;if(!P(t[n].parameters,e[n].parameters))return!1}return!0}function H(t,e){if(t.length!==e.length)return!1;for(var n=0;n<t.length;++n)if(t[n].path!==e[n].path)return!1;return!0}function q(t,e){var n=[];return M(t.children,function(t,r){r===Le&&(n=n.concat(e(t,r)))}),M(t.children,function(t,r){r!==Le&&(n=n.concat(e(t,r)))}),n}function z(t){return t.segments.map(function(t){return Q(t)}).join("/")}function W(t,e){if(t.hasChildren()&&e){var n=t.children[Le]?W(t.children[Le],!1):"",r=[];return M(t.children,function(t,e){e!==Le&&r.push(e+":"+W(t,!1))}),r.length>0?n+"("+r.join("//")+")":""+n}if(t.hasChildren()&&!e){var i=q(t,function(e,n){return n===Le?[W(t.children[Le],!1)]:[n+":"+W(e,!1)]});return z(t)+"/("+i.join("//")+")"}return z(t)}function G(t){return encodeURIComponent(t)}function K(t){return decodeURIComponent(t)}function Q(t){return""+G(t.path)+X(t.parameters)}function X(t){return Object.keys(t).map(function(e){return";"+G(e)+"="+G(t[e])}).join("")}function $(t){var e=Object.keys(t).map(function(e){var n=t[e];return Array.isArray(n)?n.map(function(t){return G(e)+"="+G(t)}).join("&"):G(e)+"="+G(n)});return e.length?"?"+e.join("&"):""}function Z(t){Qe.lastIndex=0;var e=t.match(Qe);return e?e[0]:""}function Y(t){Xe.lastIndex=0;var e=t.match(Qe);return e?e[0]:""}function J(t){$e.lastIndex=0;var e=t.match($e);return e?e[0]:""}function tt(t){return new f.Observable(function(e){return e.error(new Je(t))})}function et(t){return new f.Observable(function(e){return e.error(new tn(t))})}function nt(t){return new f.Observable(function(e){return e.error(new Error("Only absolute redirects can have named outlets. redirectTo: '"+t+"'"))})}function rt(t){return new f.Observable(function(e){return e.error(C("Cannot load children because the guard of the route \"path: '"+t.path+"'\" returned false"))})}function it(t,e,n,r,i){return new en(t,e,n,r,i).apply()}function ot(t,e){var n=e.canLoad;if(!n||0===n.length)return s.of(!0);var r=l.map.call(o.from(n),function(n){var r=t.get(n);return I(r.canLoad?r.canLoad(e):r(e))});return k(r)}function st(t,e,n){var r={matched:!1,consumedSegments:[],lastChild:0,positionalParamSegments:{}};if(""===e.path)return"full"===e.pathMatch&&(t.hasChildren()||n.length>0)?{matched:!1,consumedSegments:[],lastChild:0,positionalParamSegments:{}}:{matched:!0,consumedSegments:[],lastChild:0,positionalParamSegments:{}};var i=e.matcher||x,o=i(n,t,e);return o?{matched:!0,consumedSegments:o.consumed,lastChild:o.consumed.length,positionalParamSegments:o.posParams}:r}function at(t,e,n,r){if(n.length>0&&pt(t,n,r)){var i=new qe(e,lt(r,new qe(n,t.children)));return{segmentGroup:ut(i),slicedSegments:[]}}if(0===n.length&&ht(t,n,r)){var i=new qe(t.segments,ct(t,n,r,t.children));return{segmentGroup:ut(i),slicedSegments:n}}return{segmentGroup:t,slicedSegments:n}}function ut(t){if(1===t.numberOfChildren&&t.children[Le]){var e=t.children[Le];return new qe(t.segments.concat(e.segments),e.children)}return t}function ct(t,e,n,r){for(var i={},o=0,s=n;o<s.length;o++){var a=s[o];ft(t,e,a)&&!r[dt(a)]&&(i[dt(a)]=new qe([],{}))}return Ye({},r,i)}function lt(t,e){var n={};n[Le]=e;for(var r=0,i=t;r<i.length;r++){var o=i[r];""===o.path&&dt(o)!==Le&&(n[dt(o)]=new qe([],{}))}return n}function pt(t,e,n){return n.filter(function(n){return ft(t,e,n)&&dt(n)!==Le}).length>0}function ht(t,e,n){return n.filter(function(n){return ft(t,e,n)}).length>0}function ft(t,e,n){return(t.hasChildren()||e.length>0)&&"full"===n.pathMatch?!1:""===n.path&&void 0!==n.redirectTo}function dt(t){return t.outlet?t.outlet:Le}function vt(t,e){void 0===e&&(e="");for(var n=0;n<t.length;n++){var r=t[n],i=yt(e,r);mt(r,i)}}function mt(t,e){if(!t)throw new Error("\n Invalid configuration of route '"+e+"': Encountered undefined route.\n The reason might be an extra comma.\n\n Example:\n const routes: Routes = [\n { path: '', redirectTo: '/dashboard', pathMatch: 'full' },\n { path: 'dashboard', component: DashboardComponent },, << two commas\n { path: 'detail/:id', component: HeroDetailComponent }\n ];\n ");if(Array.isArray(t))throw new Error("Invalid configuration of route '"+e+"': Array cannot be specified");if(!t.component&&t.outlet&&t.outlet!==Le)throw new Error("Invalid configuration of route '"+e+"': a componentless route cannot have a named outlet set");if(t.redirectTo&&t.children)throw new Error("Invalid configuration of route '"+e+"': redirectTo and children cannot be used together");if(t.redirectTo&&t.loadChildren)throw new Error("Invalid configuration of route '"+e+"': redirectTo and loadChildren cannot be used together");if(t.children&&t.loadChildren)throw new Error("Invalid configuration of route '"+e+"': children and loadChildren cannot be used together");if(t.redirectTo&&t.component)throw new Error("Invalid configuration of route '"+e+"': redirectTo and component cannot be used together");if(t.path&&t.matcher)throw new Error("Invalid configuration of route '"+e+"': path and matcher cannot be used together");if(void 0===t.redirectTo&&!t.component&&!t.children&&!t.loadChildren)throw new Error("Invalid configuration of route '"+e+"'. One of the following must be provided: component, redirectTo, children or loadChildren");if(void 0===t.path&&void 0===t.matcher)throw new Error("Invalid configuration of route '"+e+"': routes must have either a path or a matcher specified");if("string"==typeof t.path&&"/"===t.path.charAt(0))throw new Error("Invalid configuration of route '"+e+"': path cannot start with a slash");if(""===t.path&&void 0!==t.redirectTo&&void 0===t.pathMatch){var n="The default value of 'pathMatch' is 'prefix', but often the intent is to use 'full'.";throw new Error("Invalid configuration of route '{path: \""+e+'", redirectTo: "'+t.redirectTo+"\"}': please provide 'pathMatch'. "+n)}if(void 0!==t.pathMatch&&"full"!==t.pathMatch&&"prefix"!==t.pathMatch)throw new Error("Invalid configuration of route '"+e+"': pathMatch can only be set to 'prefix' or 'full'");t.children&&vt(t.children,e)}function yt(t,e){return e?t||e.path?t&&!e.path?t+"/":!t&&e.path?e.path:t+"/"+e.path:"":t}function gt(t,e){if(t===e.value)return e;for(var n=0,r=e.children;n<r.length;n++){var i=r[n],o=gt(t,i);if(o)return o}return null}function _t(t,e,n){if(n.push(e),t===e.value)return n;for(var r=0,i=e.children;r<i.length;r++){var o=i[r],s=n.slice(0),a=_t(t,o,s);if(a.length>0)return a}return[]}function bt(t,e){var n=wt(t,e),i=new r.BehaviorSubject([new ze("",{})]),o=new r.BehaviorSubject({}),s=new r.BehaviorSubject({}),a=new r.BehaviorSubject({}),u=new r.BehaviorSubject(""),c=new an(i,o,a,u,s,Le,e,n.root);return c.snapshot=n.root,new sn(new rn(c,[]),n)}function wt(t,e){var n={},r={},i={},o="",s=new un([],n,i,o,r,Le,e,null,t.root,-1,{});return new cn("",new rn(s,[]))}function Et(t){for(var e=t.pathFromRoot,n=e.length-1;n>=1;){var r=e[n],i=e[n-1];if(r.routeConfig&&""===r.routeConfig.path)n--;else{if(i.component)break;n--}}return e.slice(n).reduce(function(t,e){var n=on({},t.params,e.params),r=on({},t.data,e.data),i=on({},t.resolve,e._resolvedData);return{params:n,data:r,resolve:i}},{params:{},data:{},resolve:{}})}function Ct(t,e){e.value._routerState=t,e.children.forEach(function(e){return Ct(t,e)})}function St(t){var e=t.children.length>0?" { "+t.children.map(St).join(", ")+" } ":"";return""+t.value+e}function xt(t){if(t.snapshot){var e=t.snapshot;t.snapshot=t._futureSnapshot,P(e.queryParams,t._futureSnapshot.queryParams)||t.queryParams.next(t._futureSnapshot.queryParams),e.fragment!==t._futureSnapshot.fragment&&t.fragment.next(t._futureSnapshot.fragment),P(e.params,t._futureSnapshot.params)||t.params.next(t._futureSnapshot.params),T(e.url,t._futureSnapshot.url)||t.url.next(t._futureSnapshot.url),P(e.data,t._futureSnapshot.data)||t.data.next(t._futureSnapshot.data)}else t.snapshot=t._futureSnapshot,t.data.next(t._futureSnapshot.data)}function Tt(t,e){var n=P(t.params,e.params)&&B(t.url,e.url),r=!t.parent!=!e.parent;return n&&!r&&(!t.parent||Tt(t.parent,e.parent))}function Pt(t,e,n){var r=At(t,e._root,n?n._root:void 0);return new sn(r,e)}function At(t,e,n){if(n&&t.shouldReuseRoute(e.value,n.value.snapshot)){var r=n.value;r._futureSnapshot=e.value;var i=Mt(t,e,n);return new rn(r,i)}if(t.retrieve(e.value)){var o=t.retrieve(e.value).route;return Ot(e,o),o}var r=Rt(e.value),i=e.children.map(function(e){return At(t,e)});return new rn(r,i)}function Ot(t,e){if(t.value.routeConfig!==e.value.routeConfig)throw new Error("Cannot reattach ActivatedRouteSnapshot created from a different route");if(t.children.length!==e.children.length)throw new Error("Cannot reattach ActivatedRouteSnapshot with a different number of children");e.value._futureSnapshot=t.value;for(var n=0;n<t.children.length;++n)Ot(t.children[n],e.children[n])}function Mt(t,e,n){return e.children.map(function(e){for(var r=0,i=n.children;r<i.length;r++){var o=i[r];if(t.shouldReuseRoute(o.value.snapshot,e.value))return At(t,e,o)}return At(t,e)})}function Rt(t){return new an(new r.BehaviorSubject(t.url),new r.BehaviorSubject(t.params),new r.BehaviorSubject(t.queryParams),new r.BehaviorSubject(t.fragment),new r.BehaviorSubject(t.data),t.outlet,t.component,t)}function kt(t,e,n,r,i){if(0===n.length)return Nt(e.root,e.root,e,r,i);var o=Lt(n);if(o.toRoot())return Nt(e.root,new qe([],{}),e,r,i);var s=jt(o,e,t),a=s.processChildren?Ht(s.segmentGroup,s.index,o.commands):Bt(s.segmentGroup,s.index,o.commands);return Nt(s.segmentGroup,a,e,r,i)}function It(t){return"object"==typeof t&&null!=t&&!t.outlets&&!t.segmentPath}function Nt(t,e,n,r,i){var o={};return r&&M(r,function(t,e){o[e]=Array.isArray(t)?t.map(function(t){return""+t}):""+t}),n.root===t?new He(e,o,i):new He(Dt(n.root,t,e),o,i)}function Dt(t,e,n){var r={};return M(t.children,function(t,i){r[i]=t===e?n:Dt(t,e,n)}),new qe(t.segments,r)}function Lt(t){if("string"==typeof t[0]&&1===t.length&&"/"===t[0])return new ln(!0,0,t);var e=0,n=!1,r=t.reduce(function(t,r,i){if("object"==typeof r&&null!=r){if(r.outlets){var o={};return M(r.outlets,function(t,e){o[e]="string"==typeof t?t.split("/"):t}),t.concat([{outlets:o}])}if(r.segmentPath)return t.concat([r.segmentPath])}return"string"!=typeof r?t.concat([r]):0===i?(r.split("/").forEach(function(r,i){0==i&&"."===r||(0==i&&""===r?n=!0:".."===r?e++:""!=r&&t.push(r))}),t):t.concat([r])},[]);return new ln(n,e,r)}function jt(t,e,n){if(t.isAbsolute)return new pn(e.root,!0,0);if(-1===n.snapshot._lastPathIndex)return new pn(n.snapshot._urlSegment,!0,0);var r=It(t.commands[0])?0:1,i=n.snapshot._lastPathIndex+r;return Ft(n.snapshot._urlSegment,i,t.numberOfDoubleDots)}function Ft(t,e,n){for(var r=t,i=e,o=n;o>i;){if(o-=i,r=r.parent,!r)throw new Error("Invalid number of '../'");i=r.segments.length}return new pn(r,!1,i-o)}function Vt(t){return"object"==typeof t&&null!=t&&t.outlets?t.outlets[Le]:""+t}function Ut(t){return"object"!=typeof t[0]?(e={},e[Le]=t,e):void 0===t[0].outlets?(n={},n[Le]=t,n):t[0].outlets;var e,n}function Bt(t,e,n){if(t||(t=new qe([],{})),0===t.segments.length&&t.hasChildren())return Ht(t,e,n);var r=qt(t,e,n),i=n.slice(r.commandIndex);if(r.match&&r.pathIndex<t.segments.length){var o=new qe(t.segments.slice(0,r.pathIndex),{});return o.children[Le]=new qe(t.segments.slice(r.pathIndex),t.children),Ht(o,0,i)}return r.match&&0===i.length?new qe(t.segments,{}):r.match&&!t.hasChildren()?zt(t,e,n):r.match?Ht(t,0,i):zt(t,e,n)}function Ht(t,e,n){if(0===n.length)return new qe(t.segments,{});var r=Ut(n),i={};return M(r,function(n,r){null!==n&&(i[r]=Bt(t.children[r],e,n))}),M(t.children,function(t,e){void 0===r[e]&&(i[e]=t)}),new qe(t.segments,i)}function qt(t,e,n){for(var r=0,i=e,o={match:!1,pathIndex:0,commandIndex:0};i<t.segments.length;){if(r>=n.length)return o;var s=t.segments[i],a=Vt(n[r]),u=r<n.length-1?n[r+1]:null;if(i>0&&void 0===a)break;if(a&&u&&"object"==typeof u&&void 0===u.outlets){if(!Kt(a,u,s))return o;r+=2}else{if(!Kt(a,{},s))return o;r++}i++}return{match:!0,pathIndex:i,commandIndex:r}}function zt(t,e,n){for(var r=t.segments.slice(0,e),i=0;i<n.length;){if("object"==typeof n[i]&&void 0!==n[i].outlets){var o=Wt(n[i].outlets);return new qe(r,o)}if(0===i&&It(n[0])){var s=t.segments[e];r.push(new ze(s.path,n[0])),i++}else{var a=Vt(n[i]),u=i<n.length-1?n[i+1]:null;a&&u&&It(u)?(r.push(new ze(a,Gt(u))),i+=2):(r.push(new ze(a,{})),i++)}}return new qe(r,{})}function Wt(t){var e={};return M(t,function(t,n){null!==t&&(e[n]=zt(new qe([],{}),0,t))}),e}function Gt(t){var e={};return M(t,function(t,n){return e[n]=""+t}),e}function Kt(t,e,n){return t==n.path&&P(e,n.parameters)}function Qt(t,e,n,r){return new dn(t,e,n,r).recognize()}function Xt(t){t.sort(function(t,e){return t.value.outlet===Le?-1:e.value.outlet===Le?1:t.value.outlet.localeCompare(e.value.outlet)})}function $t(t){return t.children?t.children:t.loadChildren?t._loadedConfig.routes:[]}function Zt(t,e,n){if(""===e.path){if("full"===e.pathMatch&&(t.hasChildren()||n.length>0))throw new fn;return{consumedSegments:[],lastChild:0,parameters:{}}}var r=e.matcher||x,i=r(n,t,e);if(!i)throw new fn;var o={};M(i.posParams,function(t,e){o[e]=t.path});var s=hn({},o,i.consumed[i.consumed.length-1].parameters);return{consumedSegments:i.consumed,lastChild:i.consumed.length,parameters:s}}function Yt(t){var e={};t.forEach(function(t){var n=e[t.value.outlet];if(n){var r=n.url.map(function(t){return t.toString()}).join("/"),i=t.value.url.map(function(t){return t.toString()}).join("/");throw new Error("Two segments cannot have the same outlet name: '"+r+"' and '"+i+"'.")}e[t.value.outlet]=t.value})}function Jt(t){for(var e=t;e._sourceSegment;)e=e._sourceSegment;return e}function te(t){for(var e=t,n=e._segmentIndexShift?e._segmentIndexShift:0;e._sourceSegment;)e=e._sourceSegment,n+=e._segmentIndexShift?e._segmentIndexShift:0;return n-1}function ee(t,e,n,r){if(n.length>0&&ie(t,n,r)){var i=new qe(e,re(t,e,r,new qe(n,t.children)));return i._sourceSegment=t,i._segmentIndexShift=e.length,{segmentGroup:i,slicedSegments:[]}}if(0===n.length&&oe(t,n,r)){var o=new qe(t.segments,ne(t,n,r,t.children));return o._sourceSegment=t,o._segmentIndexShift=e.length,{segmentGroup:o,slicedSegments:n}}var s=new qe(t.segments,t.children);return s._sourceSegment=t,s._segmentIndexShift=e.length,{segmentGroup:s,slicedSegments:n}}function ne(t,e,n,r){for(var i={},o=0,s=n;o<s.length;o++){var a=s[o];if(se(t,e,a)&&!r[ae(a)]){var u=new qe([],{});u._sourceSegment=t,u._segmentIndexShift=t.segments.length,i[ae(a)]=u}}return hn({},r,i)}function re(t,e,n,r){var i={};i[Le]=r,r._sourceSegment=t,r._segmentIndexShift=e.length;for(var o=0,s=n;o<s.length;o++){var a=s[o];if(""===a.path&&ae(a)!==Le){var u=new qe([],{});u._sourceSegment=t,u._segmentIndexShift=e.length,i[ae(a)]=u}}return i}function ie(t,e,n){return n.some(function(n){return se(t,e,n)&&ae(n)!==Le})}function oe(t,e,n){return n.some(function(n){return se(t,e,n)})}function se(t,e,n){return(t.hasChildren()||e.length>0)&&"full"===n.pathMatch?!1:""===n.path&&void 0===n.redirectTo}function ae(t){return t.outlet||Le}function ue(t){return t.data||{}}function ce(t){return t.resolve||{}}function le(t){throw t}function pe(){return s.of(null)}function he(t){xt(t.value),t.children.forEach(he)}function fe(t){for(var e=t.parent;e;e=e.parent){var n=e._routeConfig;if(n&&n._loadedConfig)return n._loadedConfig;if(n&&n.component)return null}return null}function de(t){if(!t)return null;for(var e=t.parent;e;e=e.parent){var n=e._routeConfig;if(n&&n._loadedConfig)return n._loadedConfig}return null}function ve(t){var e={};return t&&t.children.forEach(function(t){return e[t.value.outlet]=t}),e}function me(t,e){var n=t._outlets[e.outlet];if(!n){var r=e.component.name;throw new Error(e.outlet===Le?"Cannot find primary outlet to load '"+r+"'":"Cannot find the outlet "+e.outlet+" to load '"+r+"'")}return n}function ye(t){for(var e=0;e<t.length;e++){var n=t[e];if(null==n)throw new Error("The requested path contains "+n+" segment at index "+e)}}function ge(t){return""===t||!!t}function _e(){return new n.NgProbeToken("Router",bn)}function be(t,n,r){return void 0===r&&(r={}),r.useHash?new e.HashLocationStrategy(t,n):new e.PathLocationStrategy(t,n)}function we(t){if(t)throw new Error("RouterModule.forRoot() called twice. Lazy loaded modules should use RouterModule.forChild() instead.");return"guarded"}function Ee(t){return[{provide:n.ANALYZE_FOR_ENTRY_COMPONENTS,multi:!0,useValue:t},{provide:Ve,multi:!0,useValue:t}]}function Ce(t,e,n,r,i,o,s,a,u,c,l){void 0===u&&(u={});var p=new bn(null,e,n,r,i,o,s,A(a));if(c&&(p.urlHandlingStrategy=c),l&&(p.routeReuseStrategy=l),u.errorHandler&&(p.errorHandler=u.errorHandler),u.enableTracing){var h=b.ɵgetDOM();p.events.subscribe(function(t){h.logGroup("Router Event: "+t.constructor.name),h.log(t.toString()),h.log(t),h.logGroupEnd()})}return p}function Se(t){return t.routerState.root}function xe(t){return t.appInitializer.bind(t)}function Te(t){return t.bootstrapListener.bind(t)}function Pe(){return[Un,{provide:n.APP_INITIALIZER,multi:!0,useFactory:xe,deps:[Un]},{provide:Bn,useFactory:Te,deps:[Un]},{provide:n.APP_BOOTSTRAP_LISTENER,multi:!0,useExisting:Bn}]}var Ae=void 0||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},Oe=function(){function t(t,e){this.id=t,this.url=e}return t.prototype.toString=function(){return"NavigationStart(id: "+this.id+", url: '"+this.url+"')"},t}(),Me=function(){function t(t,e,n){this.id=t,this.url=e,this.urlAfterRedirects=n}return t.prototype.toString=function(){return"NavigationEnd(id: "+this.id+", url: '"+this.url+"', urlAfterRedirects: '"+this.urlAfterRedirects+"')"},t}(),Re=function(){function t(t,e,n){this.id=t,this.url=e,this.reason=n}return t.prototype.toString=function(){return"NavigationCancel(id: "+this.id+", url: '"+this.url+"')"},t}(),ke=function(){function t(t,e,n){this.id=t,this.url=e,this.error=n}return t.prototype.toString=function(){return"NavigationError(id: "+this.id+", url: '"+this.url+"', error: "+this.error+")"},t}(),Ie=function(){function t(t,e,n,r){this.id=t,this.url=e,this.urlAfterRedirects=n,this.state=r}return t.prototype.toString=function(){return"RoutesRecognized(id: "+this.id+", url: '"+this.url+"', urlAfterRedirects: '"+this.urlAfterRedirects+"', state: "+this.state+")"},t}(),Ne=function(){function t(t){this.route=t}return t.prototype.toString=function(){return"RouteConfigLoadStart(path: "+this.route.path+")"},t}(),De=function(){function t(t){this.route=t}return t.prototype.toString=function(){return"RouteConfigLoadEnd(path: "+this.route.path+")"},t}(),Le="primary",je=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}(),Fe="ngNavigationCancelingError",Ve=new n.InjectionToken("ROUTES"),Ue=function(){function t(t,e){this.routes=t,this.module=e}return t}(),Be=function(){function t(t,e,n,r){this.loader=t,this.compiler=e,this.onLoadStartListener=n,this.onLoadEndListener=r}return t.prototype.load=function(t,e){var n=this;this.onLoadStartListener&&this.onLoadStartListener(e);var r=this.loadModuleFactory(e.loadChildren);return l.map.call(r,function(r){n.onLoadEndListener&&n.onLoadEndListener(e);var i=r.create(t);return new Ue(A(i.injector.get(Ve)),i)})},t.prototype.loadModuleFactory=function(t){var e=this;return"string"==typeof t?y.fromPromise(this.loader.load(t)):p.mergeMap.call(I(t()),function(t){return t instanceof n.NgModuleFactory?s.of(t):y.fromPromise(e.compiler.compileModuleAsync(t))})},t}(),He=function(){function t(t,e,n){this.root=t,this.queryParams=e,this.fragment=n}return Object.defineProperty(t.prototype,"queryParamMap",{get:function(){return this._queryParamMap||(this._queryParamMap=E(this.queryParams)),this._queryParamMap},enumerable:!0,configurable:!0}),t.prototype.toString=function(){return Ke.serialize(this)},t}(),qe=function(){function t(t,e){var n=this;this.segments=t,this.children=e,this.parent=null,M(e,function(t){return t.parent=n})}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 z(this)},t}(),ze=function(){function t(t,e){this.path=t,this.parameters=e}return Object.defineProperty(t.prototype,"parameterMap",{get:function(){return this._parameterMap||(this._parameterMap=E(this.parameters)),this._parameterMap},enumerable:!0,configurable:!0}),t.prototype.toString=function(){return Q(this)},t}(),We=function(){function t(){}return t.prototype.parse=function(){},t.prototype.serialize=function(){},t}(),Ge=function(){function t(){}return t.prototype.parse=function(t){var e=new Ze(t);return new He(e.parseRootSegment(),e.parseQueryParams(),e.parseFragment())},t.prototype.serialize=function(t){var e="/"+W(t.root,!0),n=$(t.queryParams),r=null!==t.fragment&&void 0!==t.fragment?"#"+encodeURI(t.fragment):"";return""+e+n+r},t}(),Ke=new Ge,Qe=/^[^\/()?;=&#]+/,Xe=/^[^=?&#]+/,$e=/^[^?&#]+/,Ze=function(){function t(t){this.url=t,this.remaining=t}return t.prototype.peekStartsWith=function(t){return this.remaining.startsWith(t)},t.prototype.capture=function(t){if(!this.remaining.startsWith(t))throw new Error('Expected "'+t+'".');this.remaining=this.remaining.substring(t.length)},t.prototype.parseRootSegment=function(){return this.remaining.startsWith("/")&&this.capture("/"),""===this.remaining||this.remaining.startsWith("?")||this.remaining.startsWith("#")?new qe([],{}):new qe([],this.parseChildren())},t.prototype.parseChildren=function(){if(0==this.remaining.length)return{};this.peekStartsWith("/")&&this.capture("/");var t=[];for(this.peekStartsWith("(")||t.push(this.parseSegments());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),t.push(this.parseSegments());var e={};this.peekStartsWith("/(")&&(this.capture("/"),e=this.parseParens(!0));var n={};return this.peekStartsWith("(")&&(n=this.parseParens(!1)),(t.length>0||Object.keys(e).length>0)&&(n[Le]=new qe(t,e)),n},t.prototype.parseSegments=function(){var t=Z(this.remaining);if(""===t&&this.peekStartsWith(";"))throw new Error("Empty path url segment cannot have parameters: '"+this.remaining+"'.");this.capture(t);var e={};return this.peekStartsWith(";")&&(e=this.parseMatrixParams()),new ze(K(t),e)},t.prototype.parseQueryParams=function(){var t={};if(this.peekStartsWith("?"))for(this.capture("?"),this.parseQueryParam(t);this.remaining.length>0&&this.peekStartsWith("&");)this.capture("&"),this.parseQueryParam(t);return t},t.prototype.parseFragment=function(){return this.peekStartsWith("#")?decodeURI(this.remaining.substring(1)):null},t.prototype.parseMatrixParams=function(){for(var t={};this.remaining.length>0&&this.peekStartsWith(";");)this.capture(";"),this.parseParam(t);return t},t.prototype.parseParam=function(t){var e=Z(this.remaining);if(e){this.capture(e);var n="";if(this.peekStartsWith("=")){this.capture("=");var r=Z(this.remaining);r&&(n=r,this.capture(n))}t[K(e)]=K(n)}},t.prototype.parseQueryParam=function(t){var e=Y(this.remaining);if(e){this.capture(e);var n="";if(this.peekStartsWith("=")){this.capture("=");var r=J(this.remaining);r&&(n=r,this.capture(n))}var i=K(e),o=K(n);if(t.hasOwnProperty(i)){var s=t[i];Array.isArray(s)||(s=[s],t[i]=s),s.push(o)}else t[i]=o}},t.prototype.parseParens=function(t){var e={};for(this.capture("(");!this.peekStartsWith(")")&&this.remaining.length>0;){var n=Z(this.remaining),r=this.remaining[n.length];if("/"!==r&&")"!==r&&";"!==r)throw new Error("Cannot parse url '"+this.url+"'");var i=void 0;n.indexOf(":")>-1?(i=n.substr(0,n.indexOf(":")),this.capture(i),this.capture(":")):t&&(i=Le);var o=this.parseChildren();e[i]=1===Object.keys(o).length?o[Le]:new qe([],o),this.peekStartsWith("//")&&this.capture("//")}return this.capture(")"),e},t}(),Ye=void 0||Object.assign||function(t){for(var e,n=1,r=arguments.length;r>n;n++){e=arguments[n];for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])}return t},Je=function(){function t(t){void 0===t&&(t=null),this.segmentGroup=t}return t}(),tn=function(){function t(t){this.urlTree=t}return t}(),en=function(){function t(t,e,r,i,o){this.configLoader=e,this.urlSerializer=r,this.urlTree=i,this.config=o,this.allowRedirects=!0,this.ngModule=t.get(n.NgModuleRef)}return t.prototype.apply=function(){ -var t=this,e=this.expandSegmentGroup(this.ngModule,this.config,this.urlTree.root,Le),n=l.map.call(e,function(e){return t.createUrlTree(e,t.urlTree.queryParams,t.urlTree.fragment)});return d._catch.call(n,function(e){if(e instanceof tn)return t.allowRedirects=!1,t.match(e.urlTree);if(e instanceof Je)throw t.noMatchError(e);throw e})},t.prototype.match=function(t){var e=this,n=this.expandSegmentGroup(this.ngModule,this.config,t.root,Le),r=l.map.call(n,function(n){return e.createUrlTree(n,t.queryParams,t.fragment)});return d._catch.call(r,function(t){if(t instanceof Je)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,n){var r=t.segments.length>0?new qe([],(i={},i[Le]=t,i)):t;return new He(r,e,n);var i},t.prototype.expandSegmentGroup=function(t,e,n,r){return 0===n.segments.length&&n.hasChildren()?l.map.call(this.expandChildren(t,e,n),function(t){return new qe([],t)}):this.expandSegment(t,n,e,n.segments,r,!0)},t.prototype.expandChildren=function(t,e,n){var r=this;return R(n.children,function(n,i){return r.expandSegmentGroup(t,e,i,n)})},t.prototype.expandSegment=function(t,e,n,r,i,o){var a=this,u=s.of.apply(void 0,n),p=l.map.call(u,function(u){var c=a.expandSegmentAgainstRoute(t,e,n,u,r,i,o);return d._catch.call(c,function(t){if(t instanceof Je)return s.of(null);throw t})}),h=v.concatAll.call(p),f=c.first.call(h,function(t){return!!t});return d._catch.call(f,function(t){if(t instanceof m.EmptyError){if(a.noLeftoversInUrl(e,r,i))return s.of(new qe([],{}));throw new Je(e)}throw t})},t.prototype.noLeftoversInUrl=function(t,e,n){return 0===e.length&&!t.children[n]},t.prototype.expandSegmentAgainstRoute=function(t,e,n,r,i,o,s){return dt(r)!==o?tt(e):void 0===r.redirectTo||s&&this.allowRedirects?void 0===r.redirectTo?this.matchSegmentAgainstRoute(t,e,r,i):this.expandSegmentAgainstRouteUsingRedirect(t,e,n,r,i,o):tt(e)},t.prototype.expandSegmentAgainstRouteUsingRedirect=function(t,e,n,r,i,o){return"**"===r.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(t,n,r,o):this.expandRegularSegmentAgainstRouteUsingRedirect(t,e,n,r,i,o)},t.prototype.expandWildCardWithParamsAgainstRouteUsingRedirect=function(t,e,n,r){var i=this,o=this.applyRedirectCommands([],n.redirectTo,{});return n.redirectTo.startsWith("/")?et(o):p.mergeMap.call(this.lineralizeSegments(n,o),function(n){var o=new qe(n,{});return i.expandSegment(t,o,e,n,r,!1)})},t.prototype.expandRegularSegmentAgainstRouteUsingRedirect=function(t,e,n,r,i,o){var s=this,a=st(e,r,i),u=a.matched,c=a.consumedSegments,l=a.lastChild,h=a.positionalParamSegments;if(!u)return tt(e);var f=this.applyRedirectCommands(c,r.redirectTo,h);return r.redirectTo.startsWith("/")?et(f):p.mergeMap.call(this.lineralizeSegments(r,f),function(r){return s.expandSegment(t,e,n,r.concat(i.slice(l)),o,!1)})},t.prototype.matchSegmentAgainstRoute=function(t,e,n,r){var i=this;if("**"===n.path)return n.loadChildren?l.map.call(this.configLoader.load(t.injector,n),function(t){return n._loadedConfig=t,new qe(r,{})}):s.of(new qe(r,{}));var o=st(e,n,r),a=o.matched,u=o.consumedSegments,c=o.lastChild;if(!a)return tt(e);var h=r.slice(c),f=this.getChildConfig(t,n);return p.mergeMap.call(f,function(t){var n=t.module,r=t.routes,o=at(e,u,h,r),a=o.segmentGroup,c=o.slicedSegments;if(0===c.length&&a.hasChildren()){var p=i.expandChildren(n,r,a);return l.map.call(p,function(t){return new qe(u,t)})}if(0===r.length&&0===c.length)return s.of(new qe(u,{}));var f=i.expandSegment(n,a,r,c,Le,!0);return l.map.call(f,function(t){return new qe(u.concat(t.segments),t.children)})})},t.prototype.getChildConfig=function(t,e){var n=this;return e.children?s.of(new Ue(e.children,t)):e.loadChildren?void 0!==e._loadedConfig?s.of(e._loadedConfig):p.mergeMap.call(ot(t.injector,e),function(r){return r?l.map.call(n.configLoader.load(t.injector,e),function(t){return e._loadedConfig=t,t}):rt(e)}):s.of(new Ue([],t))},t.prototype.lineralizeSegments=function(t,e){for(var n=[],r=e.root;;){if(n=n.concat(r.segments),0===r.numberOfChildren)return s.of(n);if(r.numberOfChildren>1||!r.children[Le])return nt(t.redirectTo);r=r.children[Le]}},t.prototype.applyRedirectCommands=function(t,e,n){return this.applyRedirectCreatreUrlTree(e,this.urlSerializer.parse(e),t,n)},t.prototype.applyRedirectCreatreUrlTree=function(t,e,n,r){var i=this.createSegmentGroup(t,e.root,n,r);return new He(i,this.createQueryParams(e.queryParams,this.urlTree.queryParams),e.fragment)},t.prototype.createQueryParams=function(t,e){var n={};return M(t,function(t,r){n[r]=t.startsWith(":")?e[t.substring(1)]:t}),n},t.prototype.createSegmentGroup=function(t,e,n,r){var i=this,o=this.createSegments(t,e.segments,n,r),s={};return M(e.children,function(e,o){s[o]=i.createSegmentGroup(t,e,n,r)}),new qe(o,s)},t.prototype.createSegments=function(t,e,n,r){var i=this;return e.map(function(e){return e.path.startsWith(":")?i.findPosParam(t,e,r):i.findOrReturn(e,n)})},t.prototype.findPosParam=function(t,e,n){var r=n[e.path.substring(1)];if(!r)throw new Error("Cannot redirect to '"+t+"'. Cannot find '"+e.path+"'.");return r},t.prototype.findOrReturn=function(t,e){for(var n=0,r=0,i=e;r<i.length;r++){var o=i[r];if(o.path===t.path)return e.splice(n),o;n++}return t},t}(),nn=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=gt(t,this._root);return e?e.children.map(function(t){return t.value}):[]},t.prototype.firstChild=function(t){var e=gt(t,this._root);return e&&e.children.length>0?e.children[0].value:null},t.prototype.siblings=function(t){var e=_t(t,this._root,[]);if(e.length<2)return[];var n=e[e.length-2].children.map(function(t){return t.value});return n.filter(function(e){return e!==t})},t.prototype.pathFromRoot=function(t){return _t(t,this._root,[]).map(function(t){return t.value})},t}(),rn=function(){function t(t,e){this.value=t,this.children=e}return t.prototype.toString=function(){return"TreeNode("+this.value+")"},t}(),on=void 0||Object.assign||function(t){for(var e,n=1,r=arguments.length;r>n;n++){e=arguments[n];for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])}return t},sn=function(t){function e(e,n){var r=t.call(this,e)||this;return r.snapshot=n,Ct(r,e),r}return Ae(e,t),e.prototype.toString=function(){return this.snapshot.toString()},e}(nn),an=function(){function t(t,e,n,r,i,o,s,a){this.url=t,this.params=e,this.queryParams=n,this.fragment=r,this.data=i,this.outlet=o,this.component=s,this._futureSnapshot=a}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=l.map.call(this.params,function(t){return E(t)})),this._paramMap},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"queryParamMap",{get:function(){return this._queryParamMap||(this._queryParamMap=l.map.call(this.queryParams,function(t){return E(t)})),this._queryParamMap},enumerable:!0,configurable:!0}),t.prototype.toString=function(){return this.snapshot?this.snapshot.toString():"Future("+this._futureSnapshot+")"},t}(),un=function(){function t(t,e,n,r,i,o,s,a,u,c,l){this.url=t,this.params=e,this.queryParams=n,this.fragment=r,this.data=i,this.outlet=o,this.component=s,this._routeConfig=a,this._urlSegment=u,this._lastPathIndex=c,this._resolve=l}return Object.defineProperty(t.prototype,"routeConfig",{get:function(){return this._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=E(this.params)),this._paramMap},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"queryParamMap",{get:function(){return this._queryParamMap||(this._queryParamMap=E(this.queryParams)),this._queryParamMap},enumerable:!0,configurable:!0}),t.prototype.toString=function(){var t=this.url.map(function(t){return t.toString()}).join("/"),e=this._routeConfig?this._routeConfig.path:"";return"Route(url:'"+t+"', path:'"+e+"')"},t}(),cn=function(t){function e(e,n){var r=t.call(this,n)||this;return r.url=e,Ct(r,n),r}return Ae(e,t),e.prototype.toString=function(){return St(this._root)},e}(nn),ln=function(){function t(t,e,n){if(this.isAbsolute=t,this.numberOfDoubleDots=e,this.commands=n,t&&n.length>0&&It(n[0]))throw new Error("Root segment cannot have matrix parameters");var r=n.find(function(t){return"object"==typeof t&&null!=t&&t.outlets});if(r&&r!==O(n))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}(),pn=function(){function t(t,e,n){this.segmentGroup=t,this.processChildren=e,this.index=n}return t}(),hn=void 0||Object.assign||function(t){for(var e,n=1,r=arguments.length;r>n;n++){e=arguments[n];for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])}return t},fn=function(){function t(){}return t}(),dn=function(){function t(t,e,n,r){this.rootComponentType=t,this.config=e,this.urlTree=n,this.url=r}return t.prototype.recognize=function(){try{var t=ee(this.urlTree.root,[],[],this.config).segmentGroup,e=this.processSegmentGroup(this.config,t,Le),n=new un([],Object.freeze({}),Object.freeze(this.urlTree.queryParams),this.urlTree.fragment,{},Le,this.rootComponentType,null,this.urlTree.root,-1,{}),r=new rn(n,e),i=new cn(this.url,r);return this.inheriteParamsAndData(i._root),s.of(i)}catch(o){return new f.Observable(function(t){return t.error(o)})}},t.prototype.inheriteParamsAndData=function(t){var e=this,n=t.value,r=Et(n);n.params=Object.freeze(r.params),n.data=Object.freeze(r.data),t.children.forEach(function(t){return e.inheriteParamsAndData(t)})},t.prototype.processSegmentGroup=function(t,e,n){return 0===e.segments.length&&e.hasChildren()?this.processChildren(t,e):this.processSegment(t,e,e.segments,n)},t.prototype.processChildren=function(t,e){var n=this,r=q(e,function(e,r){return n.processSegmentGroup(t,e,r)});return Yt(r),Xt(r),r},t.prototype.processSegment=function(t,e,n,r){for(var i=0,o=t;i<o.length;i++){var s=o[i];try{return this.processSegmentAgainstRoute(s,e,n,r)}catch(a){if(!(a instanceof fn))throw a}}if(this.noLeftoversInUrl(e,n,r))return[];throw new fn},t.prototype.noLeftoversInUrl=function(t,e,n){return 0===e.length&&!t.children[n]},t.prototype.processSegmentAgainstRoute=function(t,e,n,r){if(t.redirectTo)throw new fn;if((t.outlet||Le)!==r)throw new fn;if("**"===t.path){var i=n.length>0?O(n).parameters:{},o=new un(n,i,Object.freeze(this.urlTree.queryParams),this.urlTree.fragment,ue(t),r,t.component,t,Jt(e),te(e)+n.length,ce(t));return[new rn(o,[])]}var s=Zt(e,t,n),a=s.consumedSegments,u=s.parameters,c=s.lastChild,l=n.slice(c),p=$t(t),h=ee(e,a,l,p),f=h.segmentGroup,d=h.slicedSegments,v=new un(a,u,Object.freeze(this.urlTree.queryParams),this.urlTree.fragment,ue(t),r,t.component,t,Jt(e),te(e)+a.length,ce(t));if(0===d.length&&f.hasChildren()){var m=this.processChildren(p,f);return[new rn(v,m)]}if(0===p.length&&0===d.length)return[new rn(v,[])];var y=this.processSegment(p,f,d,Le);return[new rn(v,y)]},t}(),vn=function(){function t(){this._outlets={}}return t.prototype.registerOutlet=function(t,e){this._outlets[t]=e},t.prototype.removeOutlet=function(t){this._outlets[t]=void 0},t}(),mn=function(){function t(){}return t.prototype.shouldProcessUrl=function(){},t.prototype.extract=function(){},t.prototype.merge=function(){},t}(),yn=function(){function t(){}return t.prototype.shouldProcessUrl=function(){return!0},t.prototype.extract=function(t){return t},t.prototype.merge=function(t){return t},t}(),gn=void 0||Object.assign||function(t){for(var e,n=1,r=arguments.length;r>n;n++){e=arguments[n];for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])}return t},_n=function(){function t(){}return t.prototype.shouldDetach=function(){return!1},t.prototype.store=function(){},t.prototype.shouldAttach=function(){return!1},t.prototype.retrieve=function(){return null},t.prototype.shouldReuseRoute=function(t,e){return t.routeConfig===e.routeConfig},t}(),bn=function(){function t(t,e,o,s,a,u,c,l){var p=this;this.rootComponentType=t,this.urlSerializer=e,this.outletMap=o,this.location=s,this.config=l,this.navigations=new r.BehaviorSubject(null),this.routerEvents=new i.Subject,this.navigationId=0,this.errorHandler=le,this.navigated=!1,this.hooks={beforePreactivation:pe,afterPreactivation:pe},this.urlHandlingStrategy=new yn,this.routeReuseStrategy=new _n;var h=function(t){return p.triggerEvent(new Ne(t))},f=function(t){return p.triggerEvent(new De(t))};this.ngModule=a.get(n.NgModuleRef),this.resetConfig(l),this.currentUrlTree=N(),this.rawUrlTree=this.currentUrlTree,this.configLoader=new Be(u,c,h,f),this.currentRouterState=bt(this.currentUrlTree,this.rootComponentType),this.processNavigations()}return t.prototype.resetRootComponentType=function(t){this.rootComponentType=t,this.currentRouterState.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(Zone.current.wrap(function(e){var n=t.urlSerializer.parse(e.url),r="popstate"===e.type?"popstate":"hashchange";setTimeout(function(){t.scheduleNavigation(n,r,{replaceUrl:!0})},0)})))},Object.defineProperty(t.prototype,"routerState",{get:function(){return this.currentRouterState},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"url",{get:function(){return this.serializeUrl(this.currentUrlTree)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"events",{get:function(){return this.routerEvents},enumerable:!0,configurable:!0}),t.prototype.triggerEvent=function(t){this.routerEvents.next(t)},t.prototype.resetConfig=function(t){vt(t),this.config=t},t.prototype.ngOnDestroy=function(){this.dispose()},t.prototype.dispose=function(){this.locationSubscription&&(this.locationSubscription.unsubscribe(),this.locationSubscription=null)},t.prototype.createUrlTree=function(t,e){var r=void 0===e?{}:e,i=r.relativeTo,o=r.queryParams,s=r.fragment,a=r.preserveQueryParams,u=r.queryParamsHandling,c=r.preserveFragment;n.isDevMode()&&a&&console&&console.warn&&console.warn("preserveQueryParams is deprecated, use queryParamsHandling instead.");var l=i||this.routerState.root,p=c?this.currentUrlTree.fragment:s,h=null;if(u)switch(u){case"merge":h=gn({},this.currentUrlTree.queryParams,o);break;case"preserve":h=this.currentUrlTree.queryParams;break;default:h=o}else h=a?this.currentUrlTree.queryParams:o;return kt(l,this.currentUrlTree,t,h,p)},t.prototype.navigateByUrl=function(t,e){void 0===e&&(e={skipLocationChange:!1});var n=t instanceof He?t:this.parseUrl(t),r=this.urlHandlingStrategy.merge(n,this.rawUrlTree);return this.scheduleNavigation(r,"imperative",e)},t.prototype.navigate=function(t,e){return void 0===e&&(e={skipLocationChange:!1}),ye(t),"object"==typeof e.queryParams&&null!==e.queryParams&&(e.queryParams=this.removeEmptyProps(e.queryParams)),this.navigateByUrl(this.createUrlTree(t,e),e)},t.prototype.serializeUrl=function(t){return this.urlSerializer.serialize(t)},t.prototype.parseUrl=function(t){return this.urlSerializer.parse(t)},t.prototype.isActive=function(t,e){if(t instanceof He)return D(this.currentUrlTree,t,e);var n=this.urlSerializer.parse(t);return D(this.currentUrlTree,n,e)},t.prototype.removeEmptyProps=function(t){return Object.keys(t).reduce(function(e,n){var r=t[n];return null!==r&&void 0!==r&&(e[n]=r),e},{})},t.prototype.processNavigations=function(){var t=this;a.concatMap.call(this.navigations,function(e){return e?(t.executeScheduledNavigation(e),e.promise["catch"](function(){})):s.of(null)}).subscribe(function(){})},t.prototype.scheduleNavigation=function(t,e,n){var r=this.navigations.value;if(r&&"imperative"!==e&&"imperative"===r.source&&r.rawUrl.toString()===t.toString())return null;if(r&&"hashchange"==e&&"popstate"===r.source&&r.rawUrl.toString()===t.toString())return null;var i=null,o=null,s=new Promise(function(t,e){i=t,o=e}),a=++this.navigationId;return this.navigations.next({id:a,source:e,rawUrl:t,extras:n,resolve:i,reject:o,promise:s}),s["catch"](function(t){return Promise.reject(t)})},t.prototype.executeScheduledNavigation=function(t){var e=this,n=t.id,r=t.rawUrl,i=t.extras,o=t.resolve,s=t.reject,a=this.urlHandlingStrategy.extract(r),u=!this.navigated||a.toString()!==this.currentUrlTree.toString();u&&this.urlHandlingStrategy.shouldProcessUrl(r)?(this.routerEvents.next(new Oe(n,this.serializeUrl(a))),Promise.resolve().then(function(){return e.runNavigate(a,r,i.skipLocationChange,i.replaceUrl,n,null)}).then(o,s)):u&&this.rawUrlTree&&this.urlHandlingStrategy.shouldProcessUrl(this.rawUrlTree)?(this.routerEvents.next(new Oe(n,this.serializeUrl(a))),Promise.resolve().then(function(){return e.runNavigate(a,r,!1,!1,n,bt(a,e.rootComponentType).snapshot)}).then(o,s)):(this.rawUrlTree=r,o(null))},t.prototype.runNavigate=function(t,e,n,r,i,o){var a=this;return i!==this.navigationId?(this.location.go(this.urlSerializer.serialize(this.currentUrlTree)),this.routerEvents.next(new Re(i,this.serializeUrl(t),"Navigation ID "+i+" is not equal to the current navigation id "+this.navigationId)),Promise.resolve(!1)):new Promise(function(u,c){var h;if(o)h=s.of({appliedUrl:t,snapshot:o});else{var f=a.ngModule.injector,d=it(f,a.configLoader,a.urlSerializer,t,a.config);h=p.mergeMap.call(d,function(e){return l.map.call(Qt(a.rootComponentType,a.config,e,a.serializeUrl(e)),function(n){return a.routerEvents.next(new Ie(i,a.serializeUrl(t),a.serializeUrl(e),n)),{appliedUrl:e,snapshot:n}})})}var v,m,y=p.mergeMap.call(h,function(t){return l.map.call(a.hooks.beforePreactivation(t.snapshot),function(){return t})}),g=l.map.call(y,function(t){var e=t.appliedUrl,n=t.snapshot,r=a.ngModule.injector;return v=new Cn(n,a.currentRouterState.snapshot,r),v.traverse(a.outletMap),{appliedUrl:e,snapshot:n}}),_=p.mergeMap.call(g,function(t){var e=t.appliedUrl,n=t.snapshot;return a.navigationId!==i?s.of(!1):l.map.call(v.checkGuards(),function(t){return{appliedUrl:e,snapshot:n,shouldActivate:t}})}),b=p.mergeMap.call(_,function(t){return a.navigationId!==i?s.of(!1):t.shouldActivate?l.map.call(v.resolveData(),function(){return t}):s.of(t)}),w=p.mergeMap.call(b,function(t){return l.map.call(a.hooks.afterPreactivation(t.snapshot),function(){return t})}),E=l.map.call(w,function(t){var e=t.appliedUrl,n=t.snapshot,r=t.shouldActivate;if(r){var i=Pt(a.routeReuseStrategy,n,a.currentRouterState);return{appliedUrl:e,state:i,shouldActivate:r}}return{appliedUrl:e,state:null,shouldActivate:r}}),C=a.currentRouterState,x=a.currentUrlTree;E.forEach(function(t){var o=t.appliedUrl,s=t.state,u=t.shouldActivate;if(!u||i!==a.navigationId)return void(m=!1);if(a.currentUrlTree=o,a.rawUrlTree=a.urlHandlingStrategy.merge(a.currentUrlTree,e),a.currentRouterState=s,!n){var c=a.urlSerializer.serialize(a.rawUrlTree);a.location.isCurrentPathEqualTo(c)||r?a.location.replaceState(c):a.location.go(c)}new Sn(a.routeReuseStrategy,s,C).activate(a.outletMap),m=!0}).then(function(){m?(a.navigated=!0,a.routerEvents.next(new Me(i,a.serializeUrl(t),a.serializeUrl(a.currentUrlTree))),u(!0)):(a.resetUrlToCurrentUrlTree(),a.routerEvents.next(new Re(i,a.serializeUrl(t),"")),u(!1))},function(n){if(S(n))a.resetUrlToCurrentUrlTree(),a.navigated=!0,a.routerEvents.next(new Re(i,a.serializeUrl(t),n.message)),u(!1);else{a.routerEvents.next(new ke(i,a.serializeUrl(t),n));try{u(a.errorHandler(n))}catch(r){c(r)}}a.currentRouterState=C,a.currentUrlTree=x,a.rawUrlTree=a.urlHandlingStrategy.merge(a.currentUrlTree,e),a.location.replaceState(a.serializeUrl(a.rawUrlTree))})})},t.prototype.resetUrlToCurrentUrlTree=function(){var t=this.urlSerializer.serialize(this.rawUrlTree);this.location.replaceState(t)},t}(),wn=function(){function t(t){this.path=t}return Object.defineProperty(t.prototype,"route",{get:function(){return this.path[this.path.length-1]},enumerable:!0,configurable:!0}),t}(),En=function(){function t(t,e){this.component=t,this.route=e}return t}(),Cn=function(){function t(t,e,n){this.future=t,this.curr=e,this.moduleInjector=n,this.canActivateChecks=[],this.canDeactivateChecks=[]}return t.prototype.traverse=function(t){var e=this.future._root,n=this.curr?this.curr._root:null;this.traverseChildRoutes(e,n,t,[e.value])},t.prototype.checkGuards=function(){var t=this;if(0===this.canDeactivateChecks.length&&0===this.canActivateChecks.length)return s.of(!0);var e=this.runCanDeactivateChecks();return p.mergeMap.call(e,function(e){return e?t.runCanActivateChecks():s.of(!1)})},t.prototype.resolveData=function(){var t=this;if(0===this.canActivateChecks.length)return s.of(null);var e=o.from(this.canActivateChecks),n=a.concatMap.call(e,function(e){return t.runResolve(e.route)});return h.reduce.call(n,function(t){return t})},t.prototype.traverseChildRoutes=function(t,e,n,r){var i=this,o=ve(e);t.children.forEach(function(t){i.traverseRoutes(t,o[t.value.outlet],n,r.concat([t.value])),delete o[t.value.outlet]}),M(o,function(t,e){return i.deactiveRouteAndItsChildren(t,n._outlets[e])})},t.prototype.traverseRoutes=function(t,e,n,r){var i=t.value,o=e?e.value:null,s=n?n._outlets[t.value.outlet]:null;o&&i._routeConfig===o._routeConfig?(this.shouldRunGuardsAndResolvers(o,i,i._routeConfig.runGuardsAndResolvers)?(this.canActivateChecks.push(new wn(r)),this.canDeactivateChecks.push(new En(s.component,o))):(i.data=o.data,i._resolvedData=o._resolvedData),i.component?this.traverseChildRoutes(t,e,s?s.outletMap:null,r):this.traverseChildRoutes(t,e,n,r)):(o&&this.deactiveRouteAndItsChildren(e,s),this.canActivateChecks.push(new wn(r)),i.component?this.traverseChildRoutes(t,null,s?s.outletMap:null,r):this.traverseChildRoutes(t,null,n,r))},t.prototype.shouldRunGuardsAndResolvers=function(t,e,n){switch(n){case"always":return!0;case"paramsOrQueryParamsChange":return!Tt(t,e)||!P(t.queryParams,e.queryParams);case"paramsChange":default:return!Tt(t,e)}},t.prototype.deactiveRouteAndItsChildren=function(t,e){var n=this,r=ve(t),i=t.value;M(r,function(t,r){i.component?e?n.deactiveRouteAndItsChildren(t,e.outletMap._outlets[r]):n.deactiveRouteAndItsChildren(t,null):n.deactiveRouteAndItsChildren(t,e)}),this.canDeactivateChecks.push(i.component?e&&e.isActivated?new En(e.component,i):new En(null,i):new En(null,i))},t.prototype.runCanDeactivateChecks=function(){var t=this,e=o.from(this.canDeactivateChecks),n=p.mergeMap.call(e,function(e){return t.runCanDeactivate(e.component,e.route)});return u.every.call(n,function(t){return t===!0})},t.prototype.runCanActivateChecks=function(){var t=this,e=o.from(this.canActivateChecks),n=p.mergeMap.call(e,function(e){return k(o.from([t.runCanActivateChild(e.path),t.runCanActivate(e.route)]))});return u.every.call(n,function(t){return t===!0})},t.prototype.runCanActivate=function(t){var e=this,n=t._routeConfig?t._routeConfig.canActivate:null;if(!n||0===n.length)return s.of(!0);var r=l.map.call(o.from(n),function(n){var r,i=e.getToken(n,t);return r=I(i.canActivate?i.canActivate(t,e.future):i(t,e.future)),c.first.call(r)});return k(r)},t.prototype.runCanActivateChild=function(t){var e=this,n=t[t.length-1],r=t.slice(0,t.length-1).reverse().map(function(t){return e.extractCanActivateChild(t)}).filter(function(t){return null!==t});return k(l.map.call(o.from(r),function(t){var r=l.map.call(o.from(t.guards),function(r){var i,o=e.getToken(r,t.node);return i=I(o.canActivateChild?o.canActivateChild(n,e.future):o(n,e.future)),c.first.call(i)});return k(r)}))},t.prototype.extractCanActivateChild=function(t){var e=t._routeConfig?t._routeConfig.canActivateChild:null;return e&&0!==e.length?{node:t,guards:e}:null},t.prototype.runCanDeactivate=function(t,e){var n=this,r=e&&e._routeConfig?e._routeConfig.canDeactivate:null;if(!r||0===r.length)return s.of(!0);var i=p.mergeMap.call(o.from(r),function(r){var i,o=n.getToken(r,e);return i=I(o.canDeactivate?o.canDeactivate(t,e,n.curr,n.future):o(t,e,n.curr,n.future)),c.first.call(i)});return u.every.call(i,function(t){return t===!0})},t.prototype.runResolve=function(t){var e=t._resolve;return l.map.call(this.resolveNode(e,t),function(e){return t._resolvedData=e,t.data=gn({},t.data,Et(t).resolve),null})},t.prototype.resolveNode=function(t,e){var n=this;return R(t,function(t,r){var i=n.getToken(r,e);return I(i.resolve?i.resolve(e,n.future):i(e,n.future))})},t.prototype.getToken=function(t,e){var n=de(e),r=n?n.module.injector:this.moduleInjector;return r.get(t)},t}(),Sn=function(){function t(t,e,n){this.routeReuseStrategy=t,this.futureState=e,this.currState=n}return t.prototype.activate=function(t){var e=this.futureState._root,n=this.currState?this.currState._root:null;this.deactivateChildRoutes(e,n,t),xt(this.futureState.root),this.activateChildRoutes(e,n,t)},t.prototype.deactivateChildRoutes=function(t,e,n){var r=this,i=ve(e);t.children.forEach(function(t){r.deactivateRoutes(t,i[t.value.outlet],n),delete i[t.value.outlet]}),M(i,function(t){return r.deactiveRouteAndItsChildren(t,n)})},t.prototype.activateChildRoutes=function(t,e,n){var r=this,i=ve(e);t.children.forEach(function(t){r.activateRoutes(t,i[t.value.outlet],n)})},t.prototype.deactivateRoutes=function(t,e,n){var r=t.value,i=e?e.value:null;if(r===i)if(r.component){var o=me(n,r);this.deactivateChildRoutes(t,e,o.outletMap)}else this.deactivateChildRoutes(t,e,n);else i&&this.deactiveRouteAndItsChildren(e,n)},t.prototype.activateRoutes=function(t,e,n){var r=t.value,i=e?e.value:null;if(r===i)if(xt(r),r.component){var o=me(n,r);this.activateChildRoutes(t,e,o.outletMap)}else this.activateChildRoutes(t,e,n);else if(r.component){xt(r);var o=me(n,t.value);if(this.routeReuseStrategy.shouldAttach(r.snapshot)){var s=this.routeReuseStrategy.retrieve(r.snapshot);this.routeReuseStrategy.store(r.snapshot,null),o.attach(s.componentRef,s.route.value),he(s.route)}else{var a=new vn;this.placeComponentIntoOutlet(a,r,o),this.activateChildRoutes(t,null,a)}}else xt(r),this.activateChildRoutes(t,null,n)},t.prototype.placeComponentIntoOutlet=function(t,e,n){var r=fe(e.snapshot),i=r?r.module.componentFactoryResolver:null;n.activateWith(e,i,t)},t.prototype.deactiveRouteAndItsChildren=function(t,e){this.routeReuseStrategy.shouldDetach(t.value.snapshot)?this.detachAndStoreRouteSubtree(t,e):this.deactiveRouteAndOutlet(t,e)},t.prototype.detachAndStoreRouteSubtree=function(t,e){var n=me(e,t.value),r=n.detach();this.routeReuseStrategy.store(t.value.snapshot,{componentRef:r,route:t})},t.prototype.deactiveRouteAndOutlet=function(t,e){var n=this,r=ve(t),i=null;try{i=me(e,t.value)}catch(o){return}var s=i.outletMap;M(r,function(r){t.value.component?n.deactiveRouteAndItsChildren(r,s):n.deactiveRouteAndItsChildren(r,e)}),i&&i.isActivated&&i.deactivate()},t}(),xn=function(){function t(t,e,n,r,i){this.router=t,this.route=e,this.commands=[],null==n&&r.setElementAttribute(i.nativeElement,"tabindex","0")}return Object.defineProperty(t.prototype,"routerLink",{set:function(t){this.commands=null!=t?Array.isArray(t)?t:[t]:[]},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"preserveQueryParams",{set:function(t){n.isDevMode()&&console&&console.warn&&console.warn("preserveQueryParams is deprecated!, use queryParamsHandling instead."),this.preserve=t},enumerable:!0,configurable:!0}),t.prototype.onClick=function(){var t={skipLocationChange:ge(this.skipLocationChange),replaceUrl:ge(this.replaceUrl)};return this.router.navigateByUrl(this.urlTree,t),!0},Object.defineProperty(t.prototype,"urlTree",{get:function(){return this.router.createUrlTree(this.commands,{relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,preserveQueryParams:ge(this.preserve),queryParamsHandling:this.queryParamsHandling,preserveFragment:ge(this.preserveFragment)})},enumerable:!0,configurable:!0}),t}();xn.decorators=[{type:n.Directive,args:[{selector:":not(a)[routerLink]"}]}],xn.ctorParameters=function(){return[{type:bn},{type:an},{type:void 0,decorators:[{type:n.Attribute,args:["tabindex"]}]},{type:n.Renderer},{type:n.ElementRef}]},xn.propDecorators={queryParams:[{type:n.Input}],fragment:[{type:n.Input}],queryParamsHandling:[{type:n.Input}],preserveFragment:[{type:n.Input}],skipLocationChange:[{type:n.Input}],replaceUrl:[{type:n.Input}],routerLink:[{type:n.Input}],preserveQueryParams:[{type:n.Input}],onClick:[{type:n.HostListener,args:["click"]}]};var Tn=function(){function t(t,e,n){var r=this;this.router=t,this.route=e,this.locationStrategy=n,this.commands=[],this.subscription=t.events.subscribe(function(t){t instanceof Me&&r.updateTargetUrlAndHref()})}return Object.defineProperty(t.prototype,"routerLink",{set:function(t){this.commands=null!=t?Array.isArray(t)?t:[t]:[]},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"preserveQueryParams",{set:function(t){n.isDevMode()&&console&&console.warn&&console.warn("preserveQueryParams is deprecated, use queryParamsHandling instead."),this.preserve=t},enumerable:!0,configurable:!0}),t.prototype.ngOnChanges=function(){this.updateTargetUrlAndHref()},t.prototype.ngOnDestroy=function(){this.subscription.unsubscribe()},t.prototype.onClick=function(t,e,n){if(0!==t||e||n)return!0;if("string"==typeof this.target&&"_self"!=this.target)return!0;var r={skipLocationChange:ge(this.skipLocationChange),replaceUrl:ge(this.replaceUrl)};return this.router.navigateByUrl(this.urlTree,r),!1},t.prototype.updateTargetUrlAndHref=function(){this.href=this.locationStrategy.prepareExternalUrl(this.router.serializeUrl(this.urlTree))},Object.defineProperty(t.prototype,"urlTree",{get:function(){return this.router.createUrlTree(this.commands,{relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,preserveQueryParams:ge(this.preserve),queryParamsHandling:this.queryParamsHandling,preserveFragment:ge(this.preserveFragment)})},enumerable:!0,configurable:!0}),t}();Tn.decorators=[{type:n.Directive,args:[{selector:"a[routerLink]"}]}],Tn.ctorParameters=function(){return[{type:bn},{type:an},{type:e.LocationStrategy}]},Tn.propDecorators={target:[{type:n.HostBinding,args:["attr.target"]},{type:n.Input}],queryParams:[{type:n.Input}],fragment:[{type:n.Input}],queryParamsHandling:[{type:n.Input}],preserveFragment:[{type:n.Input}],skipLocationChange:[{type:n.Input}],replaceUrl:[{type:n.Input}],href:[{type:n.HostBinding}],routerLink:[{ -type:n.Input}],preserveQueryParams:[{type:n.Input}],onClick:[{type:n.HostListener,args:["click",["$event.button","$event.ctrlKey","$event.metaKey"]]}]};var Pn=function(){function t(t,e,n,r){var i=this;this.router=t,this.element=e,this.renderer=n,this.cdr=r,this.classes=[],this.active=!1,this.routerLinkActiveOptions={exact:!1},this.subscription=t.events.subscribe(function(t){t instanceof Me&&i.update()})}return Object.defineProperty(t.prototype,"isActive",{get:function(){return this.active},enumerable:!0,configurable:!0}),t.prototype.ngAfterContentInit=function(){var t=this;this.links.changes.subscribe(function(){return t.update()}),this.linksWithHrefs.changes.subscribe(function(){return t.update()}),this.update()},Object.defineProperty(t.prototype,"routerLinkActive",{set:function(t){var e=Array.isArray(t)?t:t.split(" ");this.classes=e.filter(function(t){return!!t})},enumerable:!0,configurable:!0}),t.prototype.ngOnChanges=function(){this.update()},t.prototype.ngOnDestroy=function(){this.subscription.unsubscribe()},t.prototype.update=function(){var t=this;if(this.links&&this.linksWithHrefs&&this.router.navigated){var e=this.hasActiveLinks();this.active!==e&&(this.active=e,this.classes.forEach(function(n){return t.renderer.setElementClass(t.element.nativeElement,n,e)}),this.cdr.detectChanges())}},t.prototype.isLinkActive=function(t){var e=this;return function(n){return t.isActive(n.urlTree,e.routerLinkActiveOptions.exact)}},t.prototype.hasActiveLinks=function(){return this.links.some(this.isLinkActive(this.router))||this.linksWithHrefs.some(this.isLinkActive(this.router))},t}();Pn.decorators=[{type:n.Directive,args:[{selector:"[routerLinkActive]",exportAs:"routerLinkActive"}]}],Pn.ctorParameters=function(){return[{type:bn},{type:n.ElementRef},{type:n.Renderer},{type:n.ChangeDetectorRef}]},Pn.propDecorators={links:[{type:n.ContentChildren,args:[xn,{descendants:!0}]}],linksWithHrefs:[{type:n.ContentChildren,args:[Tn,{descendants:!0}]}],routerLinkActiveOptions:[{type:n.Input}],routerLinkActive:[{type:n.Input}]};var An=function(){function t(t,e,r,i){this.parentOutletMap=t,this.location=e,this.resolver=r,this.name=i,this.activateEvents=new n.EventEmitter,this.deactivateEvents=new n.EventEmitter,t.registerOutlet(i?i:Le,this)}return t.prototype.ngOnDestroy=function(){this.parentOutletMap.removeOutlet(this.name?this.name:Le)},Object.defineProperty(t.prototype,"locationInjector",{get:function(){return this.location.injector},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"locationFactoryResolver",{get:function(){return this.resolver},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isActivated",{get:function(){return!!this.activated},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"component",{get:function(){if(!this.activated)throw new Error("Outlet is not activated");return this.activated.instance},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"activatedRoute",{get:function(){if(!this.activated)throw new Error("Outlet is not activated");return this._activatedRoute},enumerable:!0,configurable:!0}),t.prototype.detach=function(){if(!this.activated)throw new Error("Outlet is not activated");this.location.detach();var t=this.activated;return this.activated=null,this._activatedRoute=null,t},t.prototype.attach=function(t,e){this.activated=t,this._activatedRoute=e,this.location.insert(t.hostView)},t.prototype.deactivate=function(){if(this.activated){var t=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(t)}},t.prototype.activate=function(t,e,r,i,o){if(this.isActivated)throw new Error("Cannot activate an already activated outlet");this.outletMap=o,this._activatedRoute=t;var s=t._futureSnapshot,a=s._routeConfig.component,u=e.resolveComponentFactory(a),c=n.ReflectiveInjector.fromResolvedProviders(i,r);this.activated=this.location.createComponent(u,this.location.length,c,[]),this.activated.changeDetectorRef.detectChanges(),this.activateEvents.emit(this.activated.instance)},t.prototype.activateWith=function(t,e,n){if(this.isActivated)throw new Error("Cannot activate an already activated outlet");this.outletMap=n,this._activatedRoute=t;var r=t._futureSnapshot,i=r._routeConfig.component;e=e||this.resolver;var o=e.resolveComponentFactory(i),s=new On(t,n,this.location.injector);this.activated=this.location.createComponent(o,this.location.length,s,[]),this.activated.changeDetectorRef.detectChanges(),this.activateEvents.emit(this.activated.instance)},t}();An.decorators=[{type:n.Directive,args:[{selector:"router-outlet"}]}],An.ctorParameters=function(){return[{type:vn},{type:n.ViewContainerRef},{type:n.ComponentFactoryResolver},{type:void 0,decorators:[{type:n.Attribute,args:["name"]}]}]},An.propDecorators={activateEvents:[{type:n.Output,args:["activate"]}],deactivateEvents:[{type:n.Output,args:["deactivate"]}]};var On=function(){function t(t,e,n){this.route=t,this.map=e,this.parent=n}return t.prototype.get=function(t,e){return t===an?this.route:t===vn?this.map:this.parent.get(t,e)},t}(),Mn=function(){function t(){}return t.prototype.shouldDetach=function(){},t.prototype.store=function(){},t.prototype.shouldAttach=function(){},t.prototype.retrieve=function(){},t.prototype.shouldReuseRoute=function(){},t}(),Rn=function(){function t(){}return t.prototype.preload=function(){},t}(),kn=function(){function t(){}return t.prototype.preload=function(t,e){return d._catch.call(e(),function(){return s.of(null)})},t}(),In=function(){function t(){}return t.prototype.preload=function(){return s.of(null)},t}(),Nn=function(){function t(t,e,n,r,i){this.router=t,this.injector=r,this.preloadingStrategy=i;var o=function(e){return t.triggerEvent(new Ne(e))},s=function(e){return t.triggerEvent(new De(e))};this.loader=new Be(e,n,o,s)}return t.prototype.setUpPreloading=function(){var t=this,e=w.filter.call(this.router.events,function(t){return t instanceof Me});this.subscription=a.concatMap.call(e,function(){return t.preload()}).subscribe(function(){})},t.prototype.preload=function(){var t=this.injector.get(n.NgModuleRef);return this.processRoutes(t,this.router.config)},t.prototype.ngOnDestroy=function(){this.subscription.unsubscribe()},t.prototype.processRoutes=function(t,e){for(var n=[],r=0,i=e;r<i.length;r++){var s=i[r],a=s;if(a.loadChildren&&!a.canLoad&&a._loadedConfig){var u=a._loadedConfig;n.push(this.processRoutes(t,u.routes))}else a.loadChildren&&!a.canLoad?n.push(this.preloadConfig(t,a)):a.children&&n.push(this.processRoutes(t,a.children))}return _.mergeAll.call(o.from(n))},t.prototype.preloadConfig=function(t,e){var n=this;return this.preloadingStrategy.preload(e,function(){var r=n.loader.load(t.injector,e);return p.mergeMap.call(r,function(t){return e._loadedConfig=t,n.processRoutes(t.module,t.routes)})})},t}();Nn.decorators=[{type:n.Injectable}],Nn.ctorParameters=function(){return[{type:bn},{type:n.NgModuleFactoryLoader},{type:n.Compiler},{type:n.Injector},{type:Rn}]};var Dn=[An,xn,Tn,Pn],Ln=new n.InjectionToken("ROUTER_CONFIGURATION"),jn=new n.InjectionToken("ROUTER_FORROOT_GUARD"),Fn=[e.Location,{provide:We,useClass:Ge},{provide:bn,useFactory:Ce,deps:[n.ApplicationRef,We,vn,e.Location,n.Injector,n.NgModuleFactoryLoader,n.Compiler,Ve,Ln,[mn,new n.Optional],[Mn,new n.Optional]]},vn,{provide:an,useFactory:Se,deps:[bn]},{provide:n.NgModuleFactoryLoader,useClass:n.SystemJsNgModuleLoader},Nn,In,kn,{provide:Ln,useValue:{enableTracing:!1}}],Vn=function(){function t(){}return t.forRoot=function(r,i){return{ngModule:t,providers:[Fn,Ee(r),{provide:jn,useFactory:we,deps:[[bn,new n.Optional,new n.SkipSelf]]},{provide:Ln,useValue:i?i:{}},{provide:e.LocationStrategy,useFactory:be,deps:[e.PlatformLocation,[new n.Inject(e.APP_BASE_HREF),new n.Optional],Ln]},{provide:Rn,useExisting:i&&i.preloadingStrategy?i.preloadingStrategy:In},{provide:n.NgProbeToken,multi:!0,useFactory:_e},Pe()]}},t.forChild=function(e){return{ngModule:t,providers:[Ee(e)]}},t}();Vn.decorators=[{type:n.NgModule,args:[{declarations:Dn,exports:Dn}]}],Vn.ctorParameters=function(){return[{type:void 0,decorators:[{type:n.Optional},{type:n.Inject,args:[jn]}]},{type:bn,decorators:[{type:n.Optional}]}]};var Un=function(){function t(t){this.injector=t,this.initNavigation=!1,this.resultOfPreactivationDone=new i.Subject}return t.prototype.appInitializer=function(){var t=this,n=this.injector.get(e.LOCATION_INITIALIZED,Promise.resolve(null));return n.then(function(){var e=null,n=new Promise(function(t){return e=t}),r=t.injector.get(bn),i=t.injector.get(Ln);if(t.isLegacyDisabled(i)||t.isLegacyEnabled(i))e(!0);else if("disabled"===i.initialNavigation)r.setUpLocationChangeListener(),e(!0);else{if("enabled"!==i.initialNavigation)throw new Error("Invalid initialNavigation options: '"+i.initialNavigation+"'");r.hooks.afterPreactivation=function(){return t.initNavigation?s.of(null):(t.initNavigation=!0,e(!0),t.resultOfPreactivationDone)},r.initialNavigation()}return n})},t.prototype.bootstrapListener=function(t){var e=this.injector.get(Ln),r=this.injector.get(Nn),i=this.injector.get(bn),o=this.injector.get(n.ApplicationRef);t===o.components[0]&&(this.isLegacyEnabled(e)?i.initialNavigation():this.isLegacyDisabled(e)&&i.setUpLocationChangeListener(),r.setUpPreloading(),i.resetRootComponentType(o.componentTypes[0]),this.resultOfPreactivationDone.next(null),this.resultOfPreactivationDone.complete())},t.prototype.isLegacyEnabled=function(t){return"legacy_enabled"===t.initialNavigation||t.initialNavigation===!0||void 0===t.initialNavigation},t.prototype.isLegacyDisabled=function(t){return"legacy_disabled"===t.initialNavigation||t.initialNavigation===!1},t}();Un.decorators=[{type:n.Injectable}],Un.ctorParameters=function(){return[{type:n.Injector}]};var Bn=new n.InjectionToken("Router Initializer"),Hn=new n.Version("4.0.1");t.RouterLink=xn,t.RouterLinkWithHref=Tn,t.RouterLinkActive=Pn,t.RouterOutlet=An,t.NavigationCancel=Re,t.NavigationEnd=Me,t.NavigationError=ke,t.NavigationStart=Oe,t.RouteConfigLoadEnd=De,t.RouteConfigLoadStart=Ne,t.RoutesRecognized=Ie,t.RouteReuseStrategy=Mn,t.Router=bn,t.ROUTES=Ve,t.ROUTER_CONFIGURATION=Ln,t.ROUTER_INITIALIZER=Bn,t.RouterModule=Vn,t.provideRoutes=Ee,t.RouterOutletMap=vn,t.NoPreloading=In,t.PreloadAllModules=kn,t.PreloadingStrategy=Rn,t.RouterPreloader=Nn,t.ActivatedRoute=an,t.ActivatedRouteSnapshot=un,t.RouterState=sn,t.RouterStateSnapshot=cn,t.PRIMARY_OUTLET=Le,t.convertToParamMap=E,t.UrlHandlingStrategy=mn,t.DefaultUrlSerializer=Ge,t.UrlSegment=ze,t.UrlSegmentGroup=qe,t.UrlSerializer=We,t.UrlTree=He,t.VERSION=Hn,t.ɵROUTER_PROVIDERS=Fn,t.ɵflatten=A,t.ɵa=jn,t.ɵg=Un,t.ɵh=xe,t.ɵi=Te,t.ɵd=we,t.ɵc=be,t.ɵj=Pe,t.ɵf=Se,t.ɵb=_e,t.ɵe=Ce,t.ɵk=nn,t.ɵl=rn,Object.defineProperty(t,"__esModule",{value:!0})})},{"@angular/common":6,"@angular/core":8,"@angular/platform-browser":11,"rxjs/BehaviorSubject":13,"rxjs/Observable":16,"rxjs/Subject":19,"rxjs/observable/from":32,"rxjs/observable/fromPromise":33,"rxjs/observable/of":35,"rxjs/operator/catch":36,"rxjs/operator/concatAll":37,"rxjs/operator/concatMap":38,"rxjs/operator/every":39,"rxjs/operator/filter":40,"rxjs/operator/first":41,"rxjs/operator/last":42,"rxjs/operator/map":43,"rxjs/operator/mergeAll":45,"rxjs/operator/mergeMap":46,"rxjs/operator/reduce":49,"rxjs/util/EmptyError":54}],13:[function(t,e,n){"use strict";var r=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},i=t("./Subject"),o=t("./util/ObjectUnsubscribedError"),s=function(t){function e(e){t.call(this),this._value=e}return r(e,t),Object.defineProperty(e.prototype,"value",{get:function(){return this.getValue()},enumerable:!0,configurable:!0}),e.prototype._subscribe=function(e){var n=t.prototype._subscribe.call(this,e);return n&&!n.closed&&e.next(this._value),n},e.prototype.getValue=function(){if(this.hasError)throw this.thrownError;if(this.closed)throw new o.ObjectUnsubscribedError;return this._value},e.prototype.next=function(e){t.prototype.next.call(this,this._value=e)},e}(i.Subject);n.BehaviorSubject=s},{"./Subject":19,"./util/ObjectUnsubscribedError":55}],14:[function(t,e,n){"use strict";var r=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},i=t("./Subscriber"),o=function(t){function e(e,n,r){t.call(this),this.parent=e,this.outerValue=n,this.outerIndex=r,this.index=0}return r(e,t),e.prototype._next=function(t){this.parent.notifyNext(this.outerValue,t,this.outerIndex,this.index++,this)},e.prototype._error=function(t){this.parent.notifyError(t,this),this.unsubscribe()},e.prototype._complete=function(){this.parent.notifyComplete(this),this.unsubscribe()},e}(i.Subscriber);n.InnerSubscriber=o},{"./Subscriber":21}],15:[function(t,e,n){"use strict";var r=t("./Observable"),i=function(){function t(t,e,n){this.kind=t,this.value=e,this.error=n,this.hasValue="N"===t}return t.prototype.observe=function(t){switch(this.kind){case"N":return t.next&&t.next(this.value);case"E":return t.error&&t.error(this.error);case"C":return t.complete&&t.complete()}},t.prototype["do"]=function(t,e,n){var r=this.kind;switch(r){case"N":return t&&t(this.value);case"E":return e&&e(this.error);case"C":return n&&n()}},t.prototype.accept=function(t,e,n){return t&&"function"==typeof t.next?this.observe(t):this["do"](t,e,n)},t.prototype.toObservable=function(){var t=this.kind;switch(t){case"N":return r.Observable.of(this.value);case"E":return r.Observable["throw"](this.error);case"C":return r.Observable.empty()}throw new Error("unexpected notification kind value")},t.createNext=function(e){return"undefined"!=typeof e?new t("N",e):this.undefinedValueNotification},t.createError=function(e){return new t("E",void 0,e)},t.createComplete=function(){return this.completeNotification},t.completeNotification=new t("C"),t.undefinedValueNotification=new t("N",void 0),t}();n.Notification=i},{"./Observable":16}],16:[function(t,e,n){"use strict";var r=t("./util/root"),i=t("./util/toSubscriber"),o=t("./symbol/observable"),s=function(){function t(t){this._isScalar=!1,t&&(this._subscribe=t)}return t.prototype.lift=function(e){var n=new t;return n.source=this,n.operator=e,n},t.prototype.subscribe=function(t,e,n){var r=this.operator,o=i.toSubscriber(t,e,n);if(r?r.call(o,this.source):o.add(this._trySubscribe(o)),o.syncErrorThrowable&&(o.syncErrorThrowable=!1,o.syncErrorThrown))throw o.syncErrorValue;return o},t.prototype._trySubscribe=function(t){try{return this._subscribe(t)}catch(e){t.syncErrorThrown=!0,t.syncErrorValue=e,t.error(e)}},t.prototype.forEach=function(t,e){var n=this;if(e||(r.root.Rx&&r.root.Rx.config&&r.root.Rx.config.Promise?e=r.root.Rx.config.Promise:r.root.Promise&&(e=r.root.Promise)),!e)throw new Error("no Promise impl found");return new e(function(e,r){var i=n.subscribe(function(e){if(i)try{t(e)}catch(n){r(n),i.unsubscribe()}else t(e)},r,e)})},t.prototype._subscribe=function(t){return this.source.subscribe(t)},t.prototype[o.$$observable]=function(){return this},t.create=function(e){return new t(e)},t}();n.Observable=s},{"./symbol/observable":52,"./util/root":64,"./util/toSubscriber":66}],17:[function(t,e,n){"use strict";n.empty={closed:!0,next:function(){},error:function(t){throw t},complete:function(){}}},{}],18:[function(t,e,n){"use strict";var r=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},i=t("./Subscriber"),o=function(t){function e(){t.apply(this,arguments)}return r(e,t),e.prototype.notifyNext=function(t,e){this.destination.next(e)},e.prototype.notifyError=function(t){this.destination.error(t)},e.prototype.notifyComplete=function(){this.destination.complete()},e}(i.Subscriber);n.OuterSubscriber=o},{"./Subscriber":21}],19:[function(t,e,n){"use strict";var r=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},i=t("./Observable"),o=t("./Subscriber"),s=t("./Subscription"),a=t("./util/ObjectUnsubscribedError"),u=t("./SubjectSubscription"),c=t("./symbol/rxSubscriber"),l=function(t){function e(e){t.call(this,e),this.destination=e}return r(e,t),e}(o.Subscriber);n.SubjectSubscriber=l;var p=function(t){function e(){t.call(this),this.observers=[],this.closed=!1,this.isStopped=!1,this.hasError=!1,this.thrownError=null}return r(e,t),e.prototype[c.$$rxSubscriber]=function(){return new l(this)},e.prototype.lift=function(t){var e=new h(this,this);return e.operator=t,e},e.prototype.next=function(t){if(this.closed)throw new a.ObjectUnsubscribedError;if(!this.isStopped)for(var e=this.observers,n=e.length,r=e.slice(),i=0;n>i;i++)r[i].next(t)},e.prototype.error=function(t){if(this.closed)throw new a.ObjectUnsubscribedError;this.hasError=!0,this.thrownError=t,this.isStopped=!0;for(var e=this.observers,n=e.length,r=e.slice(),i=0;n>i;i++)r[i].error(t);this.observers.length=0},e.prototype.complete=function(){if(this.closed)throw new a.ObjectUnsubscribedError;this.isStopped=!0;for(var t=this.observers,e=t.length,n=t.slice(),r=0;e>r;r++)n[r].complete();this.observers.length=0},e.prototype.unsubscribe=function(){this.isStopped=!0,this.closed=!0,this.observers=null},e.prototype._trySubscribe=function(e){if(this.closed)throw new a.ObjectUnsubscribedError;return t.prototype._trySubscribe.call(this,e)},e.prototype._subscribe=function(t){if(this.closed)throw new a.ObjectUnsubscribedError;return this.hasError?(t.error(this.thrownError),s.Subscription.EMPTY):this.isStopped?(t.complete(),s.Subscription.EMPTY):(this.observers.push(t),new u.SubjectSubscription(this,t))},e.prototype.asObservable=function(){var t=new i.Observable;return t.source=this,t},e.create=function(t,e){return new h(t,e)},e}(i.Observable);n.Subject=p;var h=function(t){function e(e,n){t.call(this),this.destination=e,this.source=n}return r(e,t),e.prototype.next=function(t){var e=this.destination;e&&e.next&&e.next(t)},e.prototype.error=function(t){var e=this.destination;e&&e.error&&this.destination.error(t)},e.prototype.complete=function(){var t=this.destination;t&&t.complete&&this.destination.complete()},e.prototype._subscribe=function(t){var e=this.source;return e?this.source.subscribe(t):s.Subscription.EMPTY},e}(p);n.AnonymousSubject=h},{"./Observable":16,"./SubjectSubscription":20,"./Subscriber":21,"./Subscription":22,"./symbol/rxSubscriber":53,"./util/ObjectUnsubscribedError":55}],20:[function(t,e,n){"use strict";var r=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},i=t("./Subscription"),o=function(t){function e(e,n){t.call(this),this.subject=e,this.subscriber=n,this.closed=!1}return r(e,t),e.prototype.unsubscribe=function(){if(!this.closed){this.closed=!0;var t=this.subject,e=t.observers;if(this.subject=null,e&&0!==e.length&&!t.isStopped&&!t.closed){var n=e.indexOf(this.subscriber);-1!==n&&e.splice(n,1)}}},e}(i.Subscription);n.SubjectSubscription=o},{"./Subscription":22}],21:[function(t,e,n){"use strict";var r=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},i=t("./util/isFunction"),o=t("./Subscription"),s=t("./Observer"),a=t("./symbol/rxSubscriber"),u=function(t){function e(n,r,i){switch(t.call(this),this.syncErrorValue=null,this.syncErrorThrown=!1,this.syncErrorThrowable=!1,this.isStopped=!1,arguments.length){case 0:this.destination=s.empty;break;case 1:if(!n){this.destination=s.empty;break}if("object"==typeof n){n instanceof e?(this.destination=n,this.destination.add(this)):(this.syncErrorThrowable=!0,this.destination=new c(this,n));break}default:this.syncErrorThrowable=!0,this.destination=new c(this,n,r,i)}}return r(e,t),e.prototype[a.$$rxSubscriber]=function(){return this},e.create=function(t,n,r){var i=new e(t,n,r);return i.syncErrorThrowable=!1,i},e.prototype.next=function(t){this.isStopped||this._next(t)},e.prototype.error=function(t){this.isStopped||(this.isStopped=!0,this._error(t))},e.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},e.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,t.prototype.unsubscribe.call(this))},e.prototype._next=function(t){this.destination.next(t)},e.prototype._error=function(t){this.destination.error(t),this.unsubscribe()},e.prototype._complete=function(){this.destination.complete(),this.unsubscribe()},e.prototype._unsubscribeAndRecycle=function(){var t=this,e=t._parent,n=t._parents;return this._parent=null,this._parents=null,this.unsubscribe(),this.closed=!1,this.isStopped=!1,this._parent=e,this._parents=n,this},e}(o.Subscription);n.Subscriber=u;var c=function(t){function e(e,n,r,o){t.call(this),this._parentSubscriber=e;var s,a=this;i.isFunction(n)?s=n:n&&(a=n,s=n.next,r=n.error,o=n.complete,i.isFunction(a.unsubscribe)&&this.add(a.unsubscribe.bind(a)),a.unsubscribe=this.unsubscribe.bind(this)),this._context=a,this._next=s,this._error=r,this._complete=o}return r(e,t),e.prototype.next=function(t){if(!this.isStopped&&this._next){var e=this._parentSubscriber;e.syncErrorThrowable?this.__tryOrSetError(e,this._next,t)&&this.unsubscribe():this.__tryOrUnsub(this._next,t)}},e.prototype.error=function(t){if(!this.isStopped){var e=this._parentSubscriber;if(this._error)e.syncErrorThrowable?(this.__tryOrSetError(e,this._error,t),this.unsubscribe()):(this.__tryOrUnsub(this._error,t),this.unsubscribe());else{if(!e.syncErrorThrowable)throw this.unsubscribe(),t;e.syncErrorValue=t,e.syncErrorThrown=!0,this.unsubscribe()}}},e.prototype.complete=function(){if(!this.isStopped){var t=this._parentSubscriber;this._complete?t.syncErrorThrowable?(this.__tryOrSetError(t,this._complete),this.unsubscribe()):(this.__tryOrUnsub(this._complete),this.unsubscribe()):this.unsubscribe()}},e.prototype.__tryOrUnsub=function(t,e){try{t.call(this._context,e)}catch(n){throw this.unsubscribe(),n}},e.prototype.__tryOrSetError=function(t,e,n){try{e.call(this._context,n)}catch(r){return t.syncErrorValue=r,t.syncErrorThrown=!0,!0}return!1},e.prototype._unsubscribe=function(){var t=this._parentSubscriber;this._context=null,this._parentSubscriber=null,t.unsubscribe()},e}(u)},{"./Observer":17,"./Subscription":22,"./symbol/rxSubscriber":53,"./util/isFunction":60}],22:[function(t,e,n){"use strict";function r(t){return t.reduce(function(t,e){return t.concat(e instanceof c.UnsubscriptionError?e.errors:e)},[])}var i=t("./util/isArray"),o=t("./util/isObject"),s=t("./util/isFunction"),a=t("./util/tryCatch"),u=t("./util/errorObject"),c=t("./util/UnsubscriptionError"),l=function(){function t(t){this.closed=!1,this._parent=null,this._parents=null,this._subscriptions=null,t&&(this._unsubscribe=t)}return t.prototype.unsubscribe=function(){var t,e=!1;if(!this.closed){var n=this,l=n._parent,p=n._parents,h=n._unsubscribe,f=n._subscriptions;this.closed=!0,this._parent=null,this._parents=null,this._subscriptions=null;for(var d=-1,v=p?p.length:0;l;)l.remove(this),l=++d<v&&p[d]||null;if(s.isFunction(h)){var m=a.tryCatch(h).call(this);m===u.errorObject&&(e=!0,t=t||(u.errorObject.e instanceof c.UnsubscriptionError?r(u.errorObject.e.errors):[u.errorObject.e]))}if(i.isArray(f))for(d=-1,v=f.length;++d<v;){var y=f[d];if(o.isObject(y)){var m=a.tryCatch(y.unsubscribe).call(y);if(m===u.errorObject){e=!0,t=t||[];var g=u.errorObject.e;g instanceof c.UnsubscriptionError?t=t.concat(r(g.errors)):t.push(g)}}}if(e)throw new c.UnsubscriptionError(t)}},t.prototype.add=function(e){if(!e||e===t.EMPTY)return t.EMPTY;if(e===this)return this;var n=e;switch(typeof e){case"function":n=new t(e);case"object":if(n.closed||"function"!=typeof n.unsubscribe)return n;if(this.closed)return n.unsubscribe(),n;if("function"!=typeof n._addParent){var r=n;n=new t,n._subscriptions=[r]}break;default:throw new Error("unrecognized teardown "+e+" added to Subscription.")}var i=this._subscriptions||(this._subscriptions=[]);return i.push(n),n._addParent(this),n},t.prototype.remove=function(t){var e=this._subscriptions;if(e){var n=e.indexOf(t);-1!==n&&e.splice(n,1)}},t.prototype._addParent=function(t){var e=this,n=e._parent,r=e._parents;n&&n!==t?r?-1===r.indexOf(t)&&r.push(t):this._parents=[t]:this._parent=t},t.EMPTY=function(t){return t.closed=!0,t}(new t),t}();n.Subscription=l},{"./util/UnsubscriptionError":56,"./util/errorObject":57,"./util/isArray":58,"./util/isFunction":60,"./util/isObject":61,"./util/tryCatch":67}],23:[function(t){"use strict";var e=t("../../Observable"),n=t("../../operator/map");e.Observable.prototype.map=n.map},{"../../Observable":16,"../../operator/map":43}],24:[function(t,e,n){"use strict";var r=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},i=t("../Observable"),o=t("./ScalarObservable"),s=t("./EmptyObservable"),a=function(t){function e(e,n){t.call(this),this.arrayLike=e,this.scheduler=n,n||1!==e.length||(this._isScalar=!0,this.value=e[0])}return r(e,t),e.create=function(t,n){var r=t.length;return 0===r?new s.EmptyObservable:1===r?new o.ScalarObservable(t[0],n):new e(t,n)},e.dispatch=function(t){var e=t.arrayLike,n=t.index,r=t.length,i=t.subscriber;if(!i.closed){if(n>=r)return void i.complete();i.next(e[n]),t.index=n+1,this.schedule(t)}},e.prototype._subscribe=function(t){var n=0,r=this,i=r.arrayLike,o=r.scheduler,s=i.length;if(o)return o.schedule(e.dispatch,0,{arrayLike:i,index:n,length:s,subscriber:t});for(var a=0;s>a&&!t.closed;a++)t.next(i[a]);t.complete()},e}(i.Observable);n.ArrayLikeObservable=a},{"../Observable":16,"./EmptyObservable":27,"./ScalarObservable":31}],25:[function(t,e,n){"use strict";var r=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},i=t("../Observable"),o=t("./ScalarObservable"),s=t("./EmptyObservable"),a=t("../util/isScheduler"),u=function(t){function e(e,n){t.call(this),this.array=e,this.scheduler=n,n||1!==e.length||(this._isScalar=!0,this.value=e[0])}return r(e,t),e.create=function(t,n){return new e(t,n)},e.of=function(){for(var t=[],n=0;n<arguments.length;n++)t[n-0]=arguments[n];var r=t[t.length-1];a.isScheduler(r)?t.pop():r=null;var i=t.length;return i>1?new e(t,r):1===i?new o.ScalarObservable(t[0],r):new s.EmptyObservable(r)},e.dispatch=function(t){var e=t.array,n=t.index,r=t.count,i=t.subscriber;return n>=r?void i.complete():(i.next(e[n]),void(i.closed||(t.index=n+1,this.schedule(t))))},e.prototype._subscribe=function(t){var n=0,r=this.array,i=r.length,o=this.scheduler;if(o)return o.schedule(e.dispatch,0,{array:r,index:n,count:i,subscriber:t});for(var s=0;i>s&&!t.closed;s++)t.next(r[s]);t.complete()},e}(i.Observable);n.ArrayObservable=u},{"../Observable":16,"../util/isScheduler":63,"./EmptyObservable":27,"./ScalarObservable":31}],26:[function(t,e,n){"use strict";var r=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},i=t("../Subject"),o=t("../Observable"),s=t("../Subscriber"),a=t("../Subscription"),u=function(t){function e(e,n){t.call(this),this.source=e,this.subjectFactory=n,this._refCount=0}return r(e,t),e.prototype._subscribe=function(t){return this.getSubject().subscribe(t)},e.prototype.getSubject=function(){var t=this._subject;return(!t||t.isStopped)&&(this._subject=this.subjectFactory()),this._subject},e.prototype.connect=function(){var t=this._connection;return t||(t=this._connection=new a.Subscription,t.add(this.source.subscribe(new c(this.getSubject(),this))),t.closed?(this._connection=null,t=a.Subscription.EMPTY):this._connection=t),t},e.prototype.refCount=function(){return this.lift(new l(this))},e}(o.Observable);n.ConnectableObservable=u,n.connectableObservableDescriptor={operator:{value:null},_refCount:{value:0,writable:!0},_subscribe:{value:u.prototype._subscribe},getSubject:{value:u.prototype.getSubject},connect:{value:u.prototype.connect},refCount:{value:u.prototype.refCount}};var c=function(t){function e(e,n){t.call(this,e),this.connectable=n}return r(e,t),e.prototype._error=function(e){this._unsubscribe(),t.prototype._error.call(this,e)},e.prototype._complete=function(){this._unsubscribe(),t.prototype._complete.call(this)},e.prototype._unsubscribe=function(){var t=this.connectable;if(t){this.connectable=null;var e=t._connection;t._refCount=0,t._subject=null,t._connection=null,e&&e.unsubscribe()}},e}(i.SubjectSubscriber),l=function(){function t(t){this.connectable=t}return t.prototype.call=function(t,e){var n=this.connectable;n._refCount++;var r=new p(t,n),i=e.subscribe(r);return r.closed||(r.connection=n.connect()),i},t}(),p=function(t){function e(e,n){t.call(this,e),this.connectable=n}return r(e,t),e.prototype._unsubscribe=function(){var t=this.connectable;if(!t)return void(this.connection=null);this.connectable=null;var e=t._refCount;if(0>=e)return void(this.connection=null);if(t._refCount=e-1,e>1)return void(this.connection=null);var n=this.connection,r=t._connection;this.connection=null,!r||n&&r!==n||r.unsubscribe()},e}(s.Subscriber)},{"../Observable":16,"../Subject":19,"../Subscriber":21,"../Subscription":22}],27:[function(t,e,n){"use strict";var r=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},i=t("../Observable"),o=function(t){function e(e){t.call(this),this.scheduler=e}return r(e,t),e.create=function(t){return new e(t)},e.dispatch=function(t){var e=t.subscriber;e.complete()},e.prototype._subscribe=function(t){var n=this.scheduler;return n?n.schedule(e.dispatch,0,{subscriber:t}):void t.complete()},e}(i.Observable);n.EmptyObservable=o},{"../Observable":16}],28:[function(t,e,n){"use strict";var r=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},i=t("../util/isArray"),o=t("../util/isArrayLike"),s=t("../util/isPromise"),a=t("./PromiseObservable"),u=t("./IteratorObservable"),c=t("./ArrayObservable"),l=t("./ArrayLikeObservable"),p=t("../symbol/iterator"),h=t("../Observable"),f=t("../operator/observeOn"),d=t("../symbol/observable"),v=function(t){function e(e,n){t.call(this,null),this.ish=e,this.scheduler=n}return r(e,t),e.create=function(t,n){if(null!=t){if("function"==typeof t[d.$$observable])return t instanceof h.Observable&&!n?t:new e(t,n);if(i.isArray(t))return new c.ArrayObservable(t,n);if(s.isPromise(t))return new a.PromiseObservable(t,n);if("function"==typeof t[p.$$iterator]||"string"==typeof t)return new u.IteratorObservable(t,n);if(o.isArrayLike(t))return new l.ArrayLikeObservable(t,n)}throw new TypeError((null!==t&&typeof t||t)+" is not observable")},e.prototype._subscribe=function(t){var e=this.ish,n=this.scheduler;return e[d.$$observable]().subscribe(null==n?t:new f.ObserveOnSubscriber(t,n,0))},e}(h.Observable);n.FromObservable=v},{"../Observable":16,"../operator/observeOn":48,"../symbol/iterator":51,"../symbol/observable":52,"../util/isArray":58,"../util/isArrayLike":59,"../util/isPromise":62,"./ArrayLikeObservable":24,"./ArrayObservable":25,"./IteratorObservable":29,"./PromiseObservable":30}],29:[function(t,e,n){"use strict";function r(t){var e=t[l.$$iterator];if(!e&&"string"==typeof t)return new h(t);if(!e&&void 0!==t.length)return new f(t);if(!e)throw new TypeError("object is not iterable");return t[l.$$iterator]()}function i(t){var e=+t.length;return isNaN(e)?0:0!==e&&o(e)?(e=s(e)*Math.floor(Math.abs(e)), -0>=e?0:e>d?d:e):e}function o(t){return"number"==typeof t&&u.root.isFinite(t)}function s(t){var e=+t;return 0===e?e:isNaN(e)?e:0>e?-1:1}var a=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},u=t("../util/root"),c=t("../Observable"),l=t("../symbol/iterator"),p=function(t){function e(e,n){if(t.call(this),this.scheduler=n,null==e)throw new Error("iterator cannot be null.");this.iterator=r(e)}return a(e,t),e.create=function(t,n){return new e(t,n)},e.dispatch=function(t){var e=t.index,n=t.hasError,r=t.iterator,i=t.subscriber;if(n)return void i.error(t.error);var o=r.next();return o.done?void i.complete():(i.next(o.value),t.index=e+1,i.closed?void("function"==typeof r["return"]&&r["return"]()):void this.schedule(t))},e.prototype._subscribe=function(t){var n=0,r=this,i=r.iterator,o=r.scheduler;if(o)return o.schedule(e.dispatch,0,{index:n,iterator:i,subscriber:t});for(;;){var s=i.next();if(s.done){t.complete();break}if(t.next(s.value),t.closed){"function"==typeof i["return"]&&i["return"]();break}}},e}(c.Observable);n.IteratorObservable=p;var h=function(){function t(t,e,n){void 0===e&&(e=0),void 0===n&&(n=t.length),this.str=t,this.idx=e,this.len=n}return t.prototype[l.$$iterator]=function(){return this},t.prototype.next=function(){return this.idx<this.len?{done:!1,value:this.str.charAt(this.idx++)}:{done:!0,value:void 0}},t}(),f=function(){function t(t,e,n){void 0===e&&(e=0),void 0===n&&(n=i(t)),this.arr=t,this.idx=e,this.len=n}return t.prototype[l.$$iterator]=function(){return this},t.prototype.next=function(){return this.idx<this.len?{done:!1,value:this.arr[this.idx++]}:{done:!0,value:void 0}},t}(),d=Math.pow(2,53)-1},{"../Observable":16,"../symbol/iterator":51,"../util/root":64}],30:[function(t,e,n){"use strict";function r(t){var e=t.value,n=t.subscriber;n.closed||(n.next(e),n.complete())}function i(t){var e=t.err,n=t.subscriber;n.closed||n.error(e)}var o=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},s=t("../util/root"),a=t("../Observable"),u=function(t){function e(e,n){t.call(this),this.promise=e,this.scheduler=n}return o(e,t),e.create=function(t,n){return new e(t,n)},e.prototype._subscribe=function(t){var e=this,n=this.promise,o=this.scheduler;if(null==o)this._isScalar?t.closed||(t.next(this.value),t.complete()):n.then(function(n){e.value=n,e._isScalar=!0,t.closed||(t.next(n),t.complete())},function(e){t.closed||t.error(e)}).then(null,function(t){s.root.setTimeout(function(){throw t})});else if(this._isScalar){if(!t.closed)return o.schedule(r,0,{value:this.value,subscriber:t})}else n.then(function(n){e.value=n,e._isScalar=!0,t.closed||t.add(o.schedule(r,0,{value:n,subscriber:t}))},function(e){t.closed||t.add(o.schedule(i,0,{err:e,subscriber:t}))}).then(null,function(t){s.root.setTimeout(function(){throw t})})},e}(a.Observable);n.PromiseObservable=u},{"../Observable":16,"../util/root":64}],31:[function(t,e,n){"use strict";var r=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},i=t("../Observable"),o=function(t){function e(e,n){t.call(this),this.value=e,this.scheduler=n,this._isScalar=!0,n&&(this._isScalar=!1)}return r(e,t),e.create=function(t,n){return new e(t,n)},e.dispatch=function(t){var e=t.done,n=t.value,r=t.subscriber;return e?void r.complete():(r.next(n),void(r.closed||(t.done=!0,this.schedule(t))))},e.prototype._subscribe=function(t){var n=this.value,r=this.scheduler;return r?r.schedule(e.dispatch,0,{done:!1,value:n,subscriber:t}):(t.next(n),void(t.closed||t.complete()))},e}(i.Observable);n.ScalarObservable=o},{"../Observable":16}],32:[function(t,e,n){"use strict";var r=t("./FromObservable");n.from=r.FromObservable.create},{"./FromObservable":28}],33:[function(t,e,n){"use strict";var r=t("./PromiseObservable");n.fromPromise=r.PromiseObservable.create},{"./PromiseObservable":30}],34:[function(t,e,n){"use strict";var r=t("../operator/merge");n.merge=r.mergeStatic},{"../operator/merge":44}],35:[function(t,e,n){"use strict";var r=t("./ArrayObservable");n.of=r.ArrayObservable.of},{"./ArrayObservable":25}],36:[function(t,e,n){"use strict";function r(t){var e=new a(t),n=this.lift(e);return e.caught=n}var i=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},o=t("../OuterSubscriber"),s=t("../util/subscribeToResult");n._catch=r;var a=function(){function t(t){this.selector=t}return t.prototype.call=function(t,e){return e.subscribe(new u(t,this.selector,this.caught))},t}(),u=function(t){function e(e,n,r){t.call(this,e),this.selector=n,this.caught=r}return i(e,t),e.prototype.error=function(e){if(!this.isStopped){var n=void 0;try{n=this.selector(e,this.caught)}catch(r){return void t.prototype.error.call(this,r)}this._unsubscribeAndRecycle(),this.add(s.subscribeToResult(this,n))}},e}(o.OuterSubscriber)},{"../OuterSubscriber":18,"../util/subscribeToResult":65}],37:[function(t,e,n){"use strict";function r(){return this.lift(new i.MergeAllOperator(1))}var i=t("./mergeAll");n.concatAll=r},{"./mergeAll":45}],38:[function(t,e,n){"use strict";function r(t,e){return this.lift(new i.MergeMapOperator(t,e,1))}var i=t("./mergeMap");n.concatMap=r},{"./mergeMap":46}],39:[function(t,e,n){"use strict";function r(t,e){return this.lift(new s(t,e,this))}var i=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},o=t("../Subscriber");n.every=r;var s=function(){function t(t,e,n){this.predicate=t,this.thisArg=e,this.source=n}return t.prototype.call=function(t,e){return e.subscribe(new a(t,this.predicate,this.thisArg,this.source))},t}(),a=function(t){function e(e,n,r,i){t.call(this,e),this.predicate=n,this.thisArg=r,this.source=i,this.index=0,this.thisArg=r||this}return i(e,t),e.prototype.notifyComplete=function(t){this.destination.next(t),this.destination.complete()},e.prototype._next=function(t){var e=!1;try{e=this.predicate.call(this.thisArg,t,this.index++,this.source)}catch(n){return void this.destination.error(n)}e||this.notifyComplete(!1)},e.prototype._complete=function(){this.notifyComplete(!0)},e}(o.Subscriber)},{"../Subscriber":21}],40:[function(t,e,n){"use strict";function r(t,e){return this.lift(new s(t,e))}var i=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},o=t("../Subscriber");n.filter=r;var s=function(){function t(t,e){this.predicate=t,this.thisArg=e}return t.prototype.call=function(t,e){return e.subscribe(new a(t,this.predicate,this.thisArg))},t}(),a=function(t){function e(e,n,r){t.call(this,e),this.predicate=n,this.thisArg=r,this.count=0,this.predicate=n}return i(e,t),e.prototype._next=function(t){var e;try{e=this.predicate.call(this.thisArg,t,this.count++)}catch(n){return void this.destination.error(n)}e&&this.destination.next(t)},e}(o.Subscriber)},{"../Subscriber":21}],41:[function(t,e,n){"use strict";function r(t,e,n){return this.lift(new a(t,e,n,this))}var i=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},o=t("../Subscriber"),s=t("../util/EmptyError");n.first=r;var a=function(){function t(t,e,n,r){this.predicate=t,this.resultSelector=e,this.defaultValue=n,this.source=r}return t.prototype.call=function(t,e){return e.subscribe(new u(t,this.predicate,this.resultSelector,this.defaultValue,this.source))},t}(),u=function(t){function e(e,n,r,i,o){t.call(this,e),this.predicate=n,this.resultSelector=r,this.defaultValue=i,this.source=o,this.index=0,this.hasCompleted=!1,this._emitted=!1}return i(e,t),e.prototype._next=function(t){var e=this.index++;this.predicate?this._tryPredicate(t,e):this._emit(t,e)},e.prototype._tryPredicate=function(t,e){var n;try{n=this.predicate(t,e,this.source)}catch(r){return void this.destination.error(r)}n&&this._emit(t,e)},e.prototype._emit=function(t,e){return this.resultSelector?void this._tryResultSelector(t,e):void this._emitFinal(t)},e.prototype._tryResultSelector=function(t,e){var n;try{n=this.resultSelector(t,e)}catch(r){return void this.destination.error(r)}this._emitFinal(n)},e.prototype._emitFinal=function(t){var e=this.destination;this._emitted||(this._emitted=!0,e.next(t),e.complete(),this.hasCompleted=!0)},e.prototype._complete=function(){var t=this.destination;this.hasCompleted||"undefined"==typeof this.defaultValue?this.hasCompleted||t.error(new s.EmptyError):(t.next(this.defaultValue),t.complete())},e}(o.Subscriber)},{"../Subscriber":21,"../util/EmptyError":54}],42:[function(t,e,n){"use strict";function r(t,e,n){return this.lift(new a(t,e,n,this))}var i=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},o=t("../Subscriber"),s=t("../util/EmptyError");n.last=r;var a=function(){function t(t,e,n,r){this.predicate=t,this.resultSelector=e,this.defaultValue=n,this.source=r}return t.prototype.call=function(t,e){return e.subscribe(new u(t,this.predicate,this.resultSelector,this.defaultValue,this.source))},t}(),u=function(t){function e(e,n,r,i,o){t.call(this,e),this.predicate=n,this.resultSelector=r,this.defaultValue=i,this.source=o,this.hasValue=!1,this.index=0,"undefined"!=typeof i&&(this.lastValue=i,this.hasValue=!0)}return i(e,t),e.prototype._next=function(t){var e=this.index++;if(this.predicate)this._tryPredicate(t,e);else{if(this.resultSelector)return void this._tryResultSelector(t,e);this.lastValue=t,this.hasValue=!0}},e.prototype._tryPredicate=function(t,e){var n;try{n=this.predicate(t,e,this.source)}catch(r){return void this.destination.error(r)}if(n){if(this.resultSelector)return void this._tryResultSelector(t,e);this.lastValue=t,this.hasValue=!0}},e.prototype._tryResultSelector=function(t,e){var n;try{n=this.resultSelector(t,e)}catch(r){return void this.destination.error(r)}this.lastValue=n,this.hasValue=!0},e.prototype._complete=function(){var t=this.destination;this.hasValue?(t.next(this.lastValue),t.complete()):t.error(new s.EmptyError)},e}(o.Subscriber)},{"../Subscriber":21,"../util/EmptyError":54}],43:[function(t,e,n){"use strict";function r(t,e){if("function"!=typeof t)throw new TypeError("argument is not a function. Are you looking for `mapTo()`?");return this.lift(new s(t,e))}var i=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},o=t("../Subscriber");n.map=r;var s=function(){function t(t,e){this.project=t,this.thisArg=e}return t.prototype.call=function(t,e){return e.subscribe(new a(t,this.project,this.thisArg))},t}();n.MapOperator=s;var a=function(t){function e(e,n,r){t.call(this,e),this.project=n,this.count=0,this.thisArg=r||this}return i(e,t),e.prototype._next=function(t){var e;try{e=this.project.call(this.thisArg,t,this.count++)}catch(n){return void this.destination.error(n)}this.destination.next(e)},e}(o.Subscriber)},{"../Subscriber":21}],44:[function(t,e,n){"use strict";function r(){for(var t=[],e=0;e<arguments.length;e++)t[e-0]=arguments[e];return this.lift.call(i.apply(void 0,[this].concat(t)))}function i(){for(var t=[],e=0;e<arguments.length;e++)t[e-0]=arguments[e];var n=Number.POSITIVE_INFINITY,r=null,i=t[t.length-1];return u.isScheduler(i)?(r=t.pop(),t.length>1&&"number"==typeof t[t.length-1]&&(n=t.pop())):"number"==typeof i&&(n=t.pop()),null===r&&1===t.length&&t[0]instanceof o.Observable?t[0]:new s.ArrayObservable(t,r).lift(new a.MergeAllOperator(n))}var o=t("../Observable"),s=t("../observable/ArrayObservable"),a=t("./mergeAll"),u=t("../util/isScheduler");n.merge=r,n.mergeStatic=i},{"../Observable":16,"../observable/ArrayObservable":25,"../util/isScheduler":63,"./mergeAll":45}],45:[function(t,e,n){"use strict";function r(t){return void 0===t&&(t=Number.POSITIVE_INFINITY),this.lift(new a(t))}var i=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},o=t("../OuterSubscriber"),s=t("../util/subscribeToResult");n.mergeAll=r;var a=function(){function t(t){this.concurrent=t}return t.prototype.call=function(t,e){return e.subscribe(new u(t,this.concurrent))},t}();n.MergeAllOperator=a;var u=function(t){function e(e,n){t.call(this,e),this.concurrent=n,this.hasCompleted=!1,this.buffer=[],this.active=0}return i(e,t),e.prototype._next=function(t){this.active<this.concurrent?(this.active++,this.add(s.subscribeToResult(this,t))):this.buffer.push(t)},e.prototype._complete=function(){this.hasCompleted=!0,0===this.active&&0===this.buffer.length&&this.destination.complete()},e.prototype.notifyComplete=function(t){var e=this.buffer;this.remove(t),this.active--,e.length>0?this._next(e.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()},e}(o.OuterSubscriber);n.MergeAllSubscriber=u},{"../OuterSubscriber":18,"../util/subscribeToResult":65}],46:[function(t,e,n){"use strict";function r(t,e,n){return void 0===n&&(n=Number.POSITIVE_INFINITY),"number"==typeof e&&(n=e,e=null),this.lift(new a(t,e,n))}var i=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},o=t("../util/subscribeToResult"),s=t("../OuterSubscriber");n.mergeMap=r;var a=function(){function t(t,e,n){void 0===n&&(n=Number.POSITIVE_INFINITY),this.project=t,this.resultSelector=e,this.concurrent=n}return t.prototype.call=function(t,e){return e.subscribe(new u(t,this.project,this.resultSelector,this.concurrent))},t}();n.MergeMapOperator=a;var u=function(t){function e(e,n,r,i){void 0===i&&(i=Number.POSITIVE_INFINITY),t.call(this,e),this.project=n,this.resultSelector=r,this.concurrent=i,this.hasCompleted=!1,this.buffer=[],this.active=0,this.index=0}return i(e,t),e.prototype._next=function(t){this.active<this.concurrent?this._tryNext(t):this.buffer.push(t)},e.prototype._tryNext=function(t){var e,n=this.index++;try{e=this.project(t,n)}catch(r){return void this.destination.error(r)}this.active++,this._innerSub(e,t,n)},e.prototype._innerSub=function(t,e,n){this.add(o.subscribeToResult(this,t,e,n))},e.prototype._complete=function(){this.hasCompleted=!0,0===this.active&&0===this.buffer.length&&this.destination.complete()},e.prototype.notifyNext=function(t,e,n,r){this.resultSelector?this._notifyResultSelector(t,e,n,r):this.destination.next(e)},e.prototype._notifyResultSelector=function(t,e,n,r){var i;try{i=this.resultSelector(t,e,n,r)}catch(o){return void this.destination.error(o)}this.destination.next(i)},e.prototype.notifyComplete=function(t){var e=this.buffer;this.remove(t),this.active--,e.length>0?this._next(e.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()},e}(s.OuterSubscriber);n.MergeMapSubscriber=u},{"../OuterSubscriber":18,"../util/subscribeToResult":65}],47:[function(t,e,n){"use strict";function r(t,e){var n;if(n="function"==typeof t?t:function(){return t},"function"==typeof e)return this.lift(new o(n,e));var r=Object.create(this,i.connectableObservableDescriptor);return r.source=this,r.subjectFactory=n,r}var i=t("../observable/ConnectableObservable");n.multicast=r;var o=function(){function t(t,e){this.subjectFactory=t,this.selector=e}return t.prototype.call=function(t,e){var n=this.selector,r=this.subjectFactory(),i=n(r).subscribe(t);return i.add(e.subscribe(r)),i},t}();n.MulticastOperator=o},{"../observable/ConnectableObservable":26}],48:[function(t,e,n){"use strict";function r(t,e){return void 0===e&&(e=0),this.lift(new a(t,e))}var i=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},o=t("../Subscriber"),s=t("../Notification");n.observeOn=r;var a=function(){function t(t,e){void 0===e&&(e=0),this.scheduler=t,this.delay=e}return t.prototype.call=function(t,e){return e.subscribe(new u(t,this.scheduler,this.delay))},t}();n.ObserveOnOperator=a;var u=function(t){function e(e,n,r){void 0===r&&(r=0),t.call(this,e),this.scheduler=n,this.delay=r}return i(e,t),e.dispatch=function(t){var e=t.notification,n=t.destination;e.observe(n),this.unsubscribe()},e.prototype.scheduleMessage=function(t){this.add(this.scheduler.schedule(e.dispatch,this.delay,new c(t,this.destination)))},e.prototype._next=function(t){this.scheduleMessage(s.Notification.createNext(t))},e.prototype._error=function(t){this.scheduleMessage(s.Notification.createError(t))},e.prototype._complete=function(){this.scheduleMessage(s.Notification.createComplete())},e}(o.Subscriber);n.ObserveOnSubscriber=u;var c=function(){function t(t,e){this.notification=t,this.destination=e}return t}();n.ObserveOnMessage=c},{"../Notification":15,"../Subscriber":21}],49:[function(t,e,n){"use strict";function r(t,e){var n=!1;return arguments.length>=2&&(n=!0),this.lift(new s(t,e,n))}var i=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},o=t("../Subscriber");n.reduce=r;var s=function(){function t(t,e,n){void 0===n&&(n=!1),this.accumulator=t,this.seed=e,this.hasSeed=n}return t.prototype.call=function(t,e){return e.subscribe(new a(t,this.accumulator,this.seed,this.hasSeed))},t}();n.ReduceOperator=s;var a=function(t){function e(e,n,r,i){t.call(this,e),this.accumulator=n,this.hasSeed=i,this.index=0,this.hasValue=!1,this.acc=r,this.hasSeed||this.index++}return i(e,t),e.prototype._next=function(t){this.hasValue||(this.hasValue=this.hasSeed)?this._tryReduce(t):(this.acc=t,this.hasValue=!0)},e.prototype._tryReduce=function(t){var e;try{e=this.accumulator(this.acc,t,this.index++)}catch(n){return void this.destination.error(n)}this.acc=e},e.prototype._complete=function(){(this.hasValue||this.hasSeed)&&this.destination.next(this.acc),this.destination.complete()},e}(o.Subscriber);n.ReduceSubscriber=a},{"../Subscriber":21}],50:[function(t,e,n){"use strict";function r(){return new s.Subject}function i(){return o.multicast.call(this,r).refCount()}var o=t("./multicast"),s=t("../Subject");n.share=i},{"../Subject":19,"./multicast":47}],51:[function(t,e,n){"use strict";function r(t){var e=t.Symbol;if("function"==typeof e)return e.iterator||(e.iterator=e("iterator polyfill")),e.iterator;var n=t.Set;if(n&&"function"==typeof(new n)["@@iterator"])return"@@iterator";var r=t.Map;if(r)for(var i=Object.getOwnPropertyNames(r.prototype),o=0;o<i.length;++o){var s=i[o];if("entries"!==s&&"size"!==s&&r.prototype[s]===r.prototype.entries)return s}return"@@iterator"}var i=t("../util/root");n.symbolIteratorPonyfill=r,n.$$iterator=r(i.root)},{"../util/root":64}],52:[function(t,e,n){"use strict";function r(t){var e,n=t.Symbol;return"function"==typeof n?n.observable?e=n.observable:(e=n("observable"),n.observable=e):e="@@observable",e}var i=t("../util/root");n.getSymbolObservable=r,n.$$observable=r(i.root)},{"../util/root":64}],53:[function(t,e,n){"use strict";var r=t("../util/root"),i=r.root.Symbol;n.$$rxSubscriber="function"==typeof i&&"function"==typeof i["for"]?i["for"]("rxSubscriber"):"@@rxSubscriber"},{"../util/root":64}],54:[function(t,e,n){"use strict";var r=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},i=function(t){function e(){var e=t.call(this,"no elements in sequence");this.name=e.name="EmptyError",this.stack=e.stack,this.message=e.message}return r(e,t),e}(Error);n.EmptyError=i},{}],55:[function(t,e,n){"use strict";var r=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},i=function(t){function e(){var e=t.call(this,"object unsubscribed");this.name=e.name="ObjectUnsubscribedError",this.stack=e.stack,this.message=e.message}return r(e,t),e}(Error);n.ObjectUnsubscribedError=i},{}],56:[function(t,e,n){"use strict";var r=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},i=function(t){function e(e){t.call(this),this.errors=e;var n=Error.call(this,e?e.length+" errors occurred during unsubscription:\n "+e.map(function(t,e){return e+1+") "+t.toString()}).join("\n "):"");this.name=n.name="UnsubscriptionError",this.stack=n.stack,this.message=n.message}return r(e,t),e}(Error);n.UnsubscriptionError=i},{}],57:[function(t,e,n){"use strict";n.errorObject={e:{}}},{}],58:[function(t,e,n){"use strict";n.isArray=Array.isArray||function(t){return t&&"number"==typeof t.length}},{}],59:[function(t,e,n){"use strict";n.isArrayLike=function(t){return t&&"number"==typeof t.length}},{}],60:[function(t,e,n){"use strict";function r(t){return"function"==typeof t}n.isFunction=r},{}],61:[function(t,e,n){"use strict";function r(t){return null!=t&&"object"==typeof t}n.isObject=r},{}],62:[function(t,e,n){"use strict";function r(t){return t&&"function"!=typeof t.subscribe&&"function"==typeof t.then}n.isPromise=r},{}],63:[function(t,e,n){"use strict";function r(t){return t&&"function"==typeof t.schedule}n.isScheduler=r},{}],64:[function(t,e,n){(function(t){"use strict";if(n.root="object"==typeof window&&window.window===window&&window||"object"==typeof self&&self.self===self&&self||"object"==typeof t&&t.global===t&&t,!n.root)throw new Error("RxJS could not find any global context (window, self, global)")}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],65:[function(t,e,n){"use strict";function r(t,e,n,r){var h=new l.InnerSubscriber(t,n,r);if(h.closed)return null;if(e instanceof u.Observable)return e._isScalar?(h.next(e.value),h.complete(),null):e.subscribe(h);if(o.isArrayLike(e)){for(var f=0,d=e.length;d>f&&!h.closed;f++)h.next(e[f]);h.closed||h.complete()}else{if(s.isPromise(e))return e.then(function(t){h.closed||(h.next(t),h.complete())},function(t){return h.error(t)}).then(null,function(t){i.root.setTimeout(function(){throw t})}),h;if(e&&"function"==typeof e[c.$$iterator])for(var v=e[c.$$iterator]();;){var m=v.next();if(m.done){h.complete();break}if(h.next(m.value),h.closed)break}else if(e&&"function"==typeof e[p.$$observable]){var y=e[p.$$observable]();if("function"==typeof y.subscribe)return y.subscribe(new l.InnerSubscriber(t,n,r));h.error(new TypeError("Provided object does not correctly implement Symbol.observable"))}else{var g=a.isObject(e)?"an invalid object":"'"+e+"'",_="You provided "+g+" where a stream was expected. You can provide an Observable, Promise, Array, or Iterable.";h.error(new TypeError(_))}}return null}var i=t("./root"),o=t("./isArrayLike"),s=t("./isPromise"),a=t("./isObject"),u=t("../Observable"),c=t("../symbol/iterator"),l=t("../InnerSubscriber"),p=t("../symbol/observable");n.subscribeToResult=r},{"../InnerSubscriber":14,"../Observable":16,"../symbol/iterator":51,"../symbol/observable":52,"./isArrayLike":59,"./isObject":61,"./isPromise":62,"./root":64}],66:[function(t,e,n){"use strict";function r(t,e,n){if(t){if(t instanceof i.Subscriber)return t;if(t[o.$$rxSubscriber])return t[o.$$rxSubscriber]()}return t||e||n?new i.Subscriber(t,e,n):new i.Subscriber(s.empty)}var i=t("../Subscriber"),o=t("../symbol/rxSubscriber"),s=t("../Observer");n.toSubscriber=r},{"../Observer":17,"../Subscriber":21,"../symbol/rxSubscriber":53}],67:[function(t,e,n){"use strict";function r(){try{return o.apply(this,arguments)}catch(t){return s.errorObject.e=t,s.errorObject}}function i(t){return o=t,r}var o,s=t("./errorObject");n.tryCatch=i},{"./errorObject":57}]},{},[5])(5)}); \ No newline at end of file +if(10120&n.flags)return Lt(t,n.index).instance;throw new Error("Illegal state: read nodeValue for node index "+e)}function Xe(t){return new va(t.renderer)}function Ze(t,e,n,r,o,i,s){var a=[];if(i)for(var u in i){var c=i[u],l=c[0],p=c[1];a[l]={flags:8,name:u,nonMinifiedName:p,ns:null,securityContext:null,suffix:null}}var h=[];if(s)for(var f in s)h.push({type:1,propName:f,target:null,eventName:s[f]});return t|=8192,tn(t,e,n,r,r,o,a,h)}function Ye(t,e,n){return t|=8,tn(t,null,0,e,e,n)}function Je(t,e,n,r,o){return tn(t,e,0,n,r,o)}function tn(t,e,n,r,o,i,s,a){var u=ue(e),c=u.matchedQueries,l=u.references,p=u.matchedQueryIds;a||(a=[]),s||(s=[]);var h=i.map(function(t){var e,n;return Array.isArray(t)?(n=t[0],e=t[1]):(n=0,e=t),{flags:n,token:e,tokenKey:Wt(e)}});return{index:-1,parent:null,renderParent:null,bindingIndex:-1,outputIndex:-1,flags:t,childFlags:0,directChildFlags:0,childMatchedQueries:0,matchedQueries:c,matchedQueryIds:p,references:l,ngContentIndex:-1,childCount:n,bindings:s,bindingFlags:ge(s),outputs:a,element:null,provider:{token:r,tokenKey:Wt(r),value:o,deps:h},text:null,query:null,ngContent:null}}function en(t,e){return 2048&e.flags?Sa:un(t,e)}function nn(t,e){for(var n=t;n.parent&&!ie(n);)n=n.parent;var r=!0;return cn(n.parent,ne(n),r,e.provider.value,e.provider.deps)}function rn(t,e){var n=(16384&e.flags)>0,r=cn(t,e.parent,n,e.provider.value,e.provider.deps);if(e.outputs.length)for(var o=0;o<e.outputs.length;o++){var i=e.outputs[o],s=r[i.propName].subscribe(on(t,e.parent.index,i.eventName));t.disposables[e.outputIndex+o]=s.unsubscribe.bind(s)}return r}function on(t,e,n){return function(r){return te(t,e,n,r)}}function sn(t,e,n,r,o,i,s,a,u,c,l,p){var h=Lt(t,e.index),f=h.instance,d=!1,y=void 0,v=e.bindings.length;return v>0&&Xt(t,e,0,n)&&(d=!0,y=fn(t,h,e,0,n,y)),v>1&&Xt(t,e,1,r)&&(d=!0,y=fn(t,h,e,1,r,y)),v>2&&Xt(t,e,2,o)&&(d=!0,y=fn(t,h,e,2,o,y)),v>3&&Xt(t,e,3,i)&&(d=!0,y=fn(t,h,e,3,i,y)),v>4&&Xt(t,e,4,s)&&(d=!0,y=fn(t,h,e,4,s,y)),v>5&&Xt(t,e,5,a)&&(d=!0,y=fn(t,h,e,5,a,y)),v>6&&Xt(t,e,6,u)&&(d=!0,y=fn(t,h,e,6,u,y)),v>7&&Xt(t,e,7,c)&&(d=!0,y=fn(t,h,e,7,c,y)),v>8&&Xt(t,e,8,l)&&(d=!0,y=fn(t,h,e,8,l,y)),v>9&&Xt(t,e,9,p)&&(d=!0,y=fn(t,h,e,9,p,y)),y&&f.ngOnChanges(y),1&t.state&&32768&e.flags&&f.ngOnInit(),131072&e.flags&&f.ngDoCheck(),d}function an(t,e,n){for(var r=Lt(t,e.index),o=r.instance,i=!1,s=void 0,a=0;a<n.length;a++)Xt(t,e,a,n[a])&&(i=!0,s=fn(t,r,e,a,n[a],s));return s&&o.ngOnChanges(s),1&t.state&&32768&e.flags&&o.ngOnInit(),131072&e.flags&&o.ngDoCheck(),i}function un(t,e){var n,r=(4096&e.flags)>0,o=e.provider;switch(100673535&e.flags){case 256:n=cn(t,e.parent,r,o.value,o.deps);break;case 512:n=ln(t,e.parent,r,o.value,o.deps);break;case 1024:n=pn(t,e.parent,r,o.deps[0]);break;case 128:n=o.value}return n}function cn(t,e,n,r,o){var i,s=o.length;switch(s){case 0:i=new r;break;case 1:i=new r(pn(t,e,n,o[0]));break;case 2:i=new r(pn(t,e,n,o[0]),pn(t,e,n,o[1]));break;case 3:i=new r(pn(t,e,n,o[0]),pn(t,e,n,o[1]),pn(t,e,n,o[2]));break;default:for(var a=new Array(s),u=0;s>u;u++)a[u]=pn(t,e,n,o[u]);i=new(r.bind.apply(r,[void 0].concat(a)))}return i}function ln(t,e,n,r,o){var i,s=o.length;switch(s){case 0:i=r();break;case 1:i=r(pn(t,e,n,o[0]));break;case 2:i=r(pn(t,e,n,o[0]),pn(t,e,n,o[1]));break;case 3:i=r(pn(t,e,n,o[0]),pn(t,e,n,o[1]),pn(t,e,n,o[2]));break;default:for(var a=Array(s),u=0;s>u;u++)a[u]=pn(t,e,n,o[u]);i=r.apply(void 0,a)}return i}function pn(t,e,n,r,o){if(void 0===o&&(o=Uo.THROW_IF_NOT_FOUND),8&r.flags)return r.token;var i=t;2&r.flags&&(o=null);var s=r.tokenKey;for(e&&1&r.flags&&(n=!1,e=e.parent);t;){if(e)switch(s){case ma:var a=hn(t,e,n);return Xe(a);case ga:var a=hn(t,e,n);return a.renderer;case _a:return new us(jt(t,e.index).renderElement);case ba:return jt(t,e.index).viewContainer;case wa:if(e.element.template)return jt(t,e.index).template;break;case Ca:var u=hn(t,e,n);return We(u);case Ea:return Qe(t,e);default:var c=(n?e.element.allProviders:e.element.publicProviders)[s];if(c){var l=Lt(t,c.index);return l.instance===Sa&&(l.instance=un(t,c)),l.instance}}n=ie(t),e=ne(t),t=t.parent}var p=i.root.injector.get(r.token,xa);return p!==xa||o===xa?p:i.root.ngModule.injector.get(r.token,o)}function hn(t,e,n){var r;if(n)r=jt(t,e.index).componentView;else for(r=t;r.parent&&!ie(r);)r=r.parent;return r}function fn(t,e,n,r,o,i){if(16384&n.flags){var s=jt(t,n.parent.index).componentView;2&s.def.flags&&(s.state|=2)}var a=n.bindings[r],u=a.name;if(e.instance[u]=o,262144&n.flags){i=i||{};var c=t.oldValues[n.bindingIndex+r];c instanceof Ts&&(c=c.wrapped);var l=n.bindings[r];i[l.nonMinifiedName]=new As(c,o,0!==(1&t.state))}return t.oldValues[n.bindingIndex+r]=o,i}function dn(t,e){if(t.def.nodeFlags&e)for(var n=t.def.nodes,r=0;r<n.length;r++){var o=n[r],i=o.parent;for(!i&&o.flags&e&&vn(t,r,o.flags&e),0===(o.childFlags&e)&&(r+=o.childCount);i&&1&i.flags&&r===i.index+i.childCount;)i.directChildFlags&e&&yn(t,i,e),i=i.parent}}function yn(t,e,n){for(var r=e.index+1;r<=e.index+e.childCount;r++){var o=t.def.nodes[r];o.flags&n&&vn(t,r,o.flags&n),r+=o.childCount}}function vn(t,e,n){var r=Lt(t,e).instance;r!==Sa&&(Js.setCurrentNode(t,e),524288&n&&r.ngAfterContentInit(),1048576&n&&r.ngAfterContentChecked(),2097152&n&&r.ngAfterViewInit(),4194304&n&&r.ngAfterViewChecked(),65536&n&&r.ngOnDestroy())}function mn(t){return bn(64,new Array(t+1))}function gn(t){return bn(16,new Array(t))}function _n(t){return bn(32,t)}function bn(t,e){for(var n=new Array(e.length),r=0;r<e.length;r++){var o=e[r];n[r]={flags:8,name:o,ns:null,nonMinifiedName:o,securityContext:null,suffix:null}}return{index:-1,parent:null,renderParent:null,bindingIndex:-1,outputIndex:-1,flags:t,childFlags:0,directChildFlags:0,childMatchedQueries:0,matchedQueries:{},matchedQueryIds:0,references:{},ngContentIndex:-1,childCount:0,bindings:n,bindingFlags:ge(n),outputs:[],element:null,provider:null,text:null,query:null,ngContent:null}}function wn(){return{value:void 0}}function Cn(t,e,n,r,o,i,s,a,u,c,l,p){var h=e.bindings,f=!1,d=h.length;if(d>0&&Zt(t,e,0,n)&&(f=!0),d>1&&Zt(t,e,1,r)&&(f=!0),d>2&&Zt(t,e,2,o)&&(f=!0),d>3&&Zt(t,e,3,i)&&(f=!0),d>4&&Zt(t,e,4,s)&&(f=!0),d>5&&Zt(t,e,5,a)&&(f=!0),d>6&&Zt(t,e,6,u)&&(f=!0),d>7&&Zt(t,e,7,c)&&(f=!0),d>8&&Zt(t,e,8,l)&&(f=!0),d>9&&Zt(t,e,9,p)&&(f=!0),f){var y=Vt(t,e.index),v=void 0;switch(100673535&e.flags){case 16:v=new Array(h.length),d>0&&(v[0]=n),d>1&&(v[1]=r),d>2&&(v[2]=o),d>3&&(v[3]=i),d>4&&(v[4]=s),d>5&&(v[5]=a),d>6&&(v[6]=u),d>7&&(v[7]=c),d>8&&(v[8]=l),d>9&&(v[9]=p);break;case 32:v={},d>0&&(v[h[0].name]=n),d>1&&(v[h[1].name]=r),d>2&&(v[h[2].name]=o),d>3&&(v[h[3].name]=i),d>4&&(v[h[4].name]=s),d>5&&(v[h[5].name]=a),d>6&&(v[h[6].name]=u),d>7&&(v[h[7].name]=c),d>8&&(v[h[8].name]=l),d>9&&(v[h[9].name]=p);break;case 64:var m=n;switch(d){case 1:v=m.transform(n);break;case 2:v=m.transform(r);break;case 3:v=m.transform(r,o);break;case 4:v=m.transform(r,o,i);break;case 5:v=m.transform(r,o,i,s);break;case 6:v=m.transform(r,o,i,s,a);break;case 7:v=m.transform(r,o,i,s,a,u);break;case 8:v=m.transform(r,o,i,s,a,u,c);break;case 9:v=m.transform(r,o,i,s,a,u,c,l);break;case 10:v=m.transform(r,o,i,s,a,u,c,l,p)}}y.value=v}return f}function En(t,e,n){for(var r=e.bindings,o=!1,i=0;i<n.length;i++)Zt(t,e,i,n[i])&&(o=!0);if(o){var s=Vt(t,e.index),a=void 0;switch(100673535&e.flags){case 16:a=n;break;case 32:a={};for(var i=0;i<n.length;i++)a[r[i].name]=n[i];break;case 64:var u=n[0],c=n.slice(1);a=u.transform.apply(u,c)}s.value=a}return o}function Sn(t,e,n){var r=[];for(var o in n){var i=n[o];r.push({propName:o,bindingType:i})}return{index:-1,parent:null,renderParent:null,bindingIndex:-1,outputIndex:-1,flags:t,childFlags:0,directChildFlags:0,childMatchedQueries:0,ngContentIndex:-1,matchedQueries:{},matchedQueryIds:0,references:{},childCount:0,bindings:[],bindingFlags:0,outputs:[],element:null,provider:null,text:null,query:{id:e,filterId:ae(e),bindings:r},ngContent:null}}function xn(){return new ps}function Tn(t){for(var e=t.def.nodeMatchedQueries;t.parent&&se(t);){var n=t.parentNodeDef;t=t.parent;for(var r=n.index+n.childCount,o=0;r>=o;o++){var i=t.def.nodes[o];33554432&i.flags&&268435456&i.flags&&(i.query.filterId&e)===i.query.filterId&&Ft(t,o).setDirty(),!(1&i.flags&&o+i.childCount<n.index)&&33554432&i.childFlags&&268435456&i.childFlags||(o+=i.childCount)}}if(67108864&t.def.nodeFlags)for(var o=0;o<t.def.nodes.length;o++){var i=t.def.nodes[o];67108864&i.flags&&268435456&i.flags&&Ft(t,o).setDirty(),o+=i.childCount}}function Pn(t,e){var n=Ft(t,e.index);if(n.dirty){var r,o=void 0;if(33554432&e.flags){var i=e.parent.parent;o=An(t,i.index,i.index+i.childCount,e.query,[]),r=Lt(t,e.parent.index).instance}else 67108864&e.flags&&(o=An(t,0,t.def.nodes.length-1,e.query,[]),r=t.component);n.reset(o);for(var s=e.query.bindings,a=!1,u=0;u<s.length;u++){var c=s[u],l=void 0;switch(c.bindingType){case 0:l=n.first;break;case 1:l=n,a=!0}r[c.propName]=l}a&&n.notifyOnChanges()}}function An(t,e,n,r,o){for(var i=e;n>=i;i++){var s=t.def.nodes[i],a=s.matchedQueries[r.id];if(null!=a&&o.push(On(t,s,a)),1&s.flags&&s.element.template&&(s.element.template.nodeMatchedQueries&r.filterId)===r.filterId){var u=jt(t,i);if(8388608&s.flags)for(var c=u.viewContainer._embeddedViews,l=0;l<c.length;l++){var p=c[l],h=ee(p);h&&h===u&&An(p,0,p.def.nodes.length-1,r,o)}var f=u.template._projectedViews;if(f)for(var l=0;l<f.length;l++){var d=f[l];An(d,0,d.def.nodes.length-1,r,o)}}(s.childMatchedQueries&r.filterId)!==r.filterId&&(i+=s.childCount)}return o}function On(t,e,n){if(null!=n){var r=void 0;switch(n){case 1:r=jt(t,e.index).renderElement;break;case 0:r=new us(jt(t,e.index).renderElement);break;case 2:r=jt(t,e.index).template;break;case 3:r=jt(t,e.index).viewContainer;break;case 4:r=Lt(t,e.index).instance}return r}}function Mn(t,e){for(var n=new Array(e.length-1),r=1;r<e.length;r++)n[r-1]={flags:8,name:null,ns:null,nonMinifiedName:null,securityContext:null,suffix:e[r]};var o=2;return{index:-1,parent:null,renderParent:null,bindingIndex:-1,outputIndex:-1,flags:o,childFlags:0,directChildFlags:0,childMatchedQueries:0,matchedQueries:{},matchedQueryIds:0,references:{},ngContentIndex:t,childCount:0,bindings:n,bindingFlags:ge(n),outputs:[],element:null,provider:null,text:{prefix:e[0]},query:null,ngContent:null}}function Rn(t,e,n){var r,o=t.renderer;r=o.createText(n.text.prefix);var i=ce(t,e,n);return i&&o.appendChild(i,r),{renderText:r}}function kn(t,e,n,r,o,i,s,a,u,c,l,p){var h=!1,f=e.bindings,d=f.length;if(d>0&&Zt(t,e,0,n)&&(h=!0),d>1&&Zt(t,e,1,r)&&(h=!0),d>2&&Zt(t,e,2,o)&&(h=!0),d>3&&Zt(t,e,3,i)&&(h=!0),d>4&&Zt(t,e,4,s)&&(h=!0),d>5&&Zt(t,e,5,a)&&(h=!0),d>6&&Zt(t,e,6,u)&&(h=!0),d>7&&Zt(t,e,7,c)&&(h=!0),d>8&&Zt(t,e,8,l)&&(h=!0),d>9&&Zt(t,e,9,p)&&(h=!0),h){var y=e.text.prefix;d>0&&(y+=Nn(n,f[0])),d>1&&(y+=Nn(r,f[1])),d>2&&(y+=Nn(o,f[2])),d>3&&(y+=Nn(i,f[3])),d>4&&(y+=Nn(s,f[4])),d>5&&(y+=Nn(a,f[5])),d>6&&(y+=Nn(u,f[6])),d>7&&(y+=Nn(c,f[7])),d>8&&(y+=Nn(l,f[8])),d>9&&(y+=Nn(p,f[9]));var v=Dt(t,e.index).renderText;t.renderer.setValue(v,y)}return h}function In(t,e,n){for(var r=e.bindings,o=!1,i=0;i<n.length;i++)Zt(t,e,i,n[i])&&(o=!0);if(o){for(var s="",i=0;i<n.length;i++)s+=Nn(n[i],r[i]);s=e.text.prefix+s;var a=Dt(t,e.index).renderText;t.renderer.setValue(a,s)}return o}function Nn(t,e){var n=null!=t?t.toString():"";return n+e.suffix}function Dn(t,e,n,r){for(var o=0,i=0,s=0,a=0,u=0,c=null,l=!1,p=!1,h=null,f=0;f<e.length;f++){for(;c&&f>c.index+c.childCount;){var d=c.parent;d&&(d.childFlags|=c.childFlags,d.childMatchedQueries|=c.childMatchedQueries),c=d}var y=e[f];y.index=f,y.parent=c,y.bindingIndex=o,y.outputIndex=i;var v=void 0;if(v=c&&1&c.flags&&!c.element.name?c.renderParent:c,y.renderParent=v,y.element){var m=y.element;m.publicProviders=c?c.element.publicProviders:Object.create(null),m.allProviders=m.publicProviders,l=!1,p=!1}if(jn(c,y,e.length),s|=y.flags,u|=y.matchedQueryIds,y.element&&y.element.template&&(u|=y.element.template.nodeMatchedQueries),c?(c.childFlags|=y.flags,c.directChildFlags|=y.flags,c.childMatchedQueries|=y.matchedQueryIds,y.element&&y.element.template&&(c.childMatchedQueries|=y.element.template.nodeMatchedQueries)):a|=y.flags,o+=y.bindings.length,i+=y.outputs.length,!v&&3&y.flags&&(h=y),10112&y.flags){l||(l=!0,c.element.publicProviders=Object.create(c.element.publicProviders),c.element.allProviders=c.element.publicProviders);var g=0!==(4096&y.flags),_=0!==(16384&y.flags);!g||_?c.element.publicProviders[y.provider.tokenKey]=y:(p||(p=!0,c.element.allProviders=Object.create(c.element.publicProviders)),c.element.allProviders[y.provider.tokenKey]=y),_&&(c.element.componentProvider=y)}y.childCount&&(c=y)}for(;c;){var d=c.parent;d&&(d.childFlags|=c.childFlags,d.childMatchedQueries|=c.childMatchedQueries),c=d}var b=function(t,n,r,o){return e[n].element.handleEvent(t,r,o)};return{factory:null,nodeFlags:s,rootNodeFlags:a,nodeMatchedQueries:u,flags:t,nodes:e,updateDirectives:n||ta,updateRenderer:r||ta,handleEvent:b||ta,bindingCount:o,outputCount:i,lastRenderRootNode:h}}function jn(t,e,n){var r=e.element&&e.element.template;if(r){if(!r.lastRenderRootNode)throw new Error("Illegal State: Embedded templates without nodes are not allowed!");if(r.lastRenderRootNode&&8388608&r.lastRenderRootNode.flags)throw new Error("Illegal State: Last root node of a template can't have embedded views, at index "+e.index+"!")}if(10112&e.flags){var o=t?t.flags:0;if(0===(1&o))throw new Error("Illegal State: Provider/Directive nodes need to be children of elements or anchors, at index "+e.index+"!")}if(e.query){if(33554432&e.flags&&(!t||0===(8192&t.flags)))throw new Error("Illegal State: Content Query nodes need to be children of directives, at index "+e.index+"!");if(67108864&e.flags&&t)throw new Error("Illegal State: View Query nodes have to be top level nodes, at index "+e.index+"!")}if(e.childCount){var i=t?t.index+t.childCount:n-1;if(e.index<=i&&e.index+e.childCount>i)throw new Error("Illegal State: childCount of node leads outside of parent, at index "+e.index+"!")}}function Ln(t,e,n){var r=Fn(t.root,t.renderer,t,e,e.element.template);return Un(r,t.component,n),Bn(r),r}function Vn(t,e,n){var r=Fn(t,t.renderer,null,null,e);return Un(r,n,n),Bn(r),r}function Fn(t,e,n,r,o){var i=new Array(o.nodes.length),s=o.outputCount?new Array(o.outputCount):null,a={def:o,parent:n,viewContainerParent:null,parentNodeDef:r,context:null,component:null,nodes:i,state:3,root:t,renderer:e,oldValues:new Array(o.bindingCount),disposables:s};return a}function Un(t,e,n){t.component=e,t.context=n}function Bn(t){var e;if(ie(t)){var n=t.parentNodeDef;e=jt(t.parent,n.parent.index).renderElement}for(var r=t.def,o=t.nodes,i=0;i<r.nodes.length;i++){var s=r.nodes[i];Js.setCurrentNode(t,i);var a=void 0;switch(100673535&s.flags){case 1:var u=Se(t,e,s),c=void 0;if(16777216&s.flags){var l=le(s.element.componentView),p=s.element.componentRendererType,h=void 0;h=p?t.root.rendererFactory.createRenderer(u,p):t.root.renderer,c=Fn(t.root,h,t,s.element.componentProvider,l)}xe(t,c,s,u),a={renderElement:u,componentView:c,viewContainer:null,template:s.element.template?Ke(t,s):void 0},8388608&s.flags&&(a.viewContainer=Ge(t,s,a));break;case 2:a=Rn(t,e,s);break;case 256:case 512:case 1024:case 128:var f=en(t,s);a={instance:f};break;case 8:var f=nn(t,s);a={instance:f};break;case 8192:var f=rn(t,s);if(a={instance:f},16384&s.flags){var d=jt(t,s.parent.index).componentView;Un(d,f,f)}break;case 16:case 32:case 64:a=wn(t,s);break;case 33554432:case 67108864:a=xn();break;case 4:De(t,e,s),a=void 0}o[i]=a}Jn(t,Ta.CreateViewNodes),nr(t,100663296,134217728,0)}function Hn(t){Js.updateDirectives(t,1),tr(t,Ta.CheckNoChanges),Js.updateRenderer(t,1),Jn(t,Ta.CheckNoChanges)}function qn(t){Js.updateDirectives(t,0),tr(t,Ta.CheckAndUpdate),nr(t,33554432,268435456,0),dn(t,1048576|(1&t.state?524288:0)),Js.updateRenderer(t,0),Jn(t,Ta.CheckAndUpdate),nr(t,67108864,268435456,0),dn(t,4194304|(1&t.state?2097152:0)),2&t.def.flags&&(t.state&=-3),t.state&=-2}function zn(t,e,n,r,o,i,s,a,u,c,l,p,h){return 0===n?Gn(t,e,r,o,i,s,a,u,c,l,p,h):Wn(t,e,r)}function Gn(t,e,n,r,o,i,s,a,u,c,l,p){var h=!1;switch(100673535&e.flags){case 1:h=Pe(t,e,n,r,o,i,s,a,u,c,l,p);break;case 2:h=kn(t,e,n,r,o,i,s,a,u,c,l,p);break;case 8192:h=sn(t,e,n,r,o,i,s,a,u,c,l,p);break;case 16:case 32:case 64:h=Cn(t,e,n,r,o,i,s,a,u,c,l,p)}return h}function Wn(t,e,n){var r=!1;switch(100673535&e.flags){case 1:r=Ae(t,e,n);break;case 2:r=In(t,e,n);break;case 8192:r=an(t,e,n);break;case 16:case 32:case 64:r=En(t,e,n)}if(r)for(var o=e.bindings.length,i=e.bindingIndex,s=t.oldValues,a=0;o>a;a++)s[i+a]=n[a];return r}function Kn(t,e,n,r,o,i,s,a,u,c,l,p,h){return 0===n?Qn(t,e,r,o,i,s,a,u,c,l,p,h):$n(t,e,r),!1}function Qn(t,e,n,r,o,i,s,a,u,c,l,p){var h=e.bindings.length;h>0&&Yt(t,e,0,n),h>1&&Yt(t,e,1,r),h>2&&Yt(t,e,2,o),h>3&&Yt(t,e,3,i),h>4&&Yt(t,e,4,s),h>5&&Yt(t,e,5,a),h>6&&Yt(t,e,6,u),h>7&&Yt(t,e,7,c),h>8&&Yt(t,e,8,l),h>9&&Yt(t,e,9,p)}function $n(t,e,n){for(var r=0;r<n.length;r++)Yt(t,e,r,n[r])}function Xn(t,e){var n=Ft(t,e.index);if(n.dirty)throw Ut(Js.createDebugContext(t,e.index),"Query "+e.query.id+" not dirty","Query "+e.query.id+" dirty",0!==(1&t.state))}function Zn(t){if(!(8&t.state)){if(tr(t,Ta.Destroy),Jn(t,Ta.Destroy),dn(t,65536),t.disposables)for(var e=0;e<t.disposables.length;e++)t.disposables[e]();t.renderer.destroyNode&&Yn(t),ie(t)&&t.renderer.destroy(),t.state|=8}}function Yn(t){for(var e=t.def.nodes.length,n=0;e>n;n++){var r=t.def.nodes[n];1&r.flags?t.renderer.destroyNode(jt(t,n).renderElement):2&r.flags&&t.renderer.destroyNode(Dt(t,n).renderText)}}function Jn(t,e){var n=t.def;if(16777216&n.nodeFlags)for(var r=0;r<n.nodes.length;r++){var o=n.nodes[r];16777216&o.flags?er(jt(t,r).componentView,e):0===(16777216&o.childFlags)&&(r+=o.childCount)}}function tr(t,e){var n=t.def;if(8388608&n.nodeFlags)for(var r=0;r<n.nodes.length;r++){var o=n.nodes[r];if(8388608&o.flags)for(var i=jt(t,r).viewContainer._embeddedViews,s=0;s<i.length;s++)er(i[s],e);else 0===(8388608&o.childFlags)&&(r+=o.childCount)}}function er(t,e){var n=t.state;switch(e){case Ta.CheckNoChanges:2&n&&0===(12&n)&&Hn(t);break;case Ta.CheckAndUpdate:2&n&&0===(12&n)&&qn(t);break;case Ta.Destroy:Zn(t);break;case Ta.CreateViewNodes:Bn(t)}}function nr(t,e,n,r){if(t.def.nodeFlags&e&&t.def.nodeFlags&n)for(var o=t.def.nodes.length,i=0;o>i;i++){var s=t.def.nodes[i];if(s.flags&e&&s.flags&n)switch(Js.setCurrentNode(t,s.index),r){case 0:Pn(t,s);break;case 1:Xn(t,s)}s.childFlags&e&&s.childFlags&n||(i+=s.childCount)}}function rr(){if(!Pa){Pa=!0;var t=ct()?ir():or();Js.setCurrentNode=t.setCurrentNode,Js.createRootView=t.createRootView,Js.createEmbeddedView=t.createEmbeddedView,Js.checkAndUpdateView=t.checkAndUpdateView,Js.checkNoChangesView=t.checkNoChangesView,Js.destroyView=t.destroyView,Js.resolveDep=pn,Js.createDebugContext=t.createDebugContext,Js.handleEvent=t.handleEvent,Js.updateDirectives=t.updateDirectives,Js.updateRenderer=t.updateRenderer,Js.dirtyParentQueries=Tn}}function or(){return{setCurrentNode:function(){},createRootView:sr,createEmbeddedView:Ln,checkAndUpdateView:qn,checkNoChangesView:Hn,destroyView:Zn,createDebugContext:function(t,e){return new Ia(t,e)},handleEvent:function(t,e,n,r){return t.def.handleEvent(t,e,n,r)},updateDirectives:function(t,e){return t.def.updateDirectives(0===e?cr:lr,t)},updateRenderer:function(t,e){return t.def.updateRenderer(0===e?cr:lr,t)}}}function ir(){return{setCurrentNode:yr,createRootView:ar,createEmbeddedView:pr,checkAndUpdateView:hr,checkNoChangesView:fr,destroyView:dr,createDebugContext:function(t,e){return new Ia(t,e)},handleEvent:vr,updateDirectives:mr,updateRenderer:gr}}function sr(t,e,n,r,o,i){var s=o.injector.get(is);return Vn(ur(t,o,s,e,n),r,i)}function ar(t,e,n,r,o,i){var s=o.injector.get(is),a=ur(t,o,new Na(s),e,n);return Or(Aa.create,Vn,null,[a,r,i])}function ur(t,e,n,r,o){var i=e.injector.get(Zs),s=n.createRenderer(null,null);return{ngModule:e,injector:t,projectableNodes:r,selectorOrNode:o,sanitizer:i,rendererFactory:n,renderer:s}}function cr(t,e,n,r,o,i,s,a,u,c,l,p,h){var f=t.def.nodes[e];return zn(t,f,n,r,o,i,s,a,u,c,l,p,h),112&f.flags?Vt(t,e).value:void 0}function lr(t,e,n,r,o,i,s,a,u,c,l,p,h){var f=t.def.nodes[e];return Kn(t,f,n,r,o,i,s,a,u,c,l,p,h),112&f.flags?Vt(t,e).value:void 0}function pr(t,e,n){return Or(Aa.create,Ln,null,[t,e,n])}function hr(t){return Or(Aa.detectChanges,qn,null,[t])}function fr(t){return Or(Aa.checkNoChanges,Hn,null,[t])}function dr(t){return Or(Aa.destroy,Zn,null,[t])}function yr(t,e){Ma=t,Ra=e}function vr(t,e,n,r){return yr(t,e),Or(Aa.handleEvent,t.def.handleEvent,null,[t,e,n,r])}function mr(t,e){function n(t,n,r){for(var o=[],i=3;i<arguments.length;i++)o[i-3]=arguments[i];var s=t.def.nodes[n];return 0===e?_r(t,s,r,o):br(t,s,r,o),8192&s.flags&&yr(t,Sr(t,n)),112&s.flags?Vt(t,s.index).value:void 0}if(8&t.state)throw Gt(Aa[Oa]);return yr(t,Sr(t,0)),t.def.updateDirectives(n,t)}function gr(t,e){function n(t,n,r){for(var o=[],i=3;i<arguments.length;i++)o[i-3]=arguments[i];var s=t.def.nodes[n];return 0===e?_r(t,s,r,o):br(t,s,r,o),3&s.flags&&yr(t,xr(t,n)),112&s.flags?Vt(t,s.index).value:void 0}if(8&t.state)throw Gt(Aa[Oa]);return yr(t,xr(t,0)),t.def.updateRenderer(n,t)}function _r(t,e,n,r){var o=zn.apply(void 0,[t,e,n].concat(r));if(o){var i=1===n?r[0]:r;if(8192&e.flags){for(var s={},a=0;a<e.bindings.length;a++){var u=e.bindings[a],c=i[a];8&u.flags&&(s[wr(u.nonMinifiedName)]=Er(c))}var l=e.parent,p=jt(t,l.index).renderElement;if(l.element.name)for(var h in s){var c=s[h];null!=c?t.renderer.setAttribute(p,h,c):t.renderer.removeAttribute(p,h)}else t.renderer.setValue(p,"bindings="+JSON.stringify(s,null,2))}}}function br(t,e,n,r){Kn.apply(void 0,[t,e,n].concat(r))}function wr(t){return t=Cr(t.replace(/[$@]/g,"_")),"ng-reflect-"+t}function Cr(t){return t.replace(ka,function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return"-"+t[1].toLowerCase()})}function Er(t){try{return null!=t?t.toString().slice(0,30):t}catch(e){return"[ERROR] Exception while trying to serialize the value"}}function Sr(t,e){for(var n=e;n<t.def.nodes.length;n++){var r=t.def.nodes[n];if(8192&r.flags&&r.bindings&&r.bindings.length)return n}return null}function xr(t,e){for(var n=e;n<t.def.nodes.length;n++){var r=t.def.nodes[n];if(3&r.flags&&r.bindings&&r.bindings.length)return n}return null}function Tr(t,e){for(var n=-1,r=0;e>=r;r++){var o=t.nodes[r];3&o.flags&&n++}return n}function Pr(t){for(;t&&!ie(t);)t=t.parent;return t.parent?jt(t.parent,ne(t).index):null}function Ar(t,e,n){for(var r in e.references)n[r]=On(t,e,e.references[r])}function Or(t,e,n,r){var o=Oa,i=Ma,s=Ra;try{Oa=t;var a=e.apply(n,r);return Ma=i,Ra=s,Oa=o,a}catch(u){if(zt(u)||!Ma)throw u;throw Ma.state|=4,Bt(u,Mr())}}function Mr(){return Ma?new Ia(Ma,Ra):null}function Rr(){return Hs}function kr(){return qs}function Ir(t){return t||"en-US"}function Nr(){rr()}function Dr(t,e){return{name:t,definitions:e}}function jr(t,e){return void 0===e&&(e=null),{type:4,styles:e,timings:t}}function Lr(t){return{type:3,steps:t}}function Vr(t){return{type:2,steps:t}}function Fr(t){return{type:6,styles:t}}function Ur(t,e){return{type:0,name:t,styles:e}}function Br(t){return{type:5,steps:t}}function Hr(t,e){return{type:1,expr:t,animation:e}}function qr(t,e){return Dr(t,e)}function zr(t,e){return jr(t,e)}function Gr(t){return Lr(t)}function Wr(t){return Vr(t)}function Kr(t){return Fr(t)}function Qr(t,e){return Ur(t,e)}function $r(t){return Br(t)}function Xr(t,e){return Hr(t,e)}var Zr=void 0||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},Yr=function(){function t(t){this._desc=t}return t.prototype.toString=function(){return"Token "+this._desc},t}(),Jr=function(t){function e(e){return t.call(this,e)||this}return Zr(e,t),e.prototype.toString=function(){return"InjectionToken "+this._desc},e}(Yr),to="undefined"!=typeof window&&window,eo="undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self,no="undefined"!=typeof o&&o,ro=to||no||eo,oo=null,io=0,so=ro.Reflect,ao=new Jr("AnalyzeForEntryComponents"),uo=y("Attribute",[["attributeName",void 0]]),co=function(){function t(){}return t}(),lo=v("ContentChildren",[["selector",void 0],{first:!1,isViewQuery:!1,descendants:!1,read:void 0}],co),po=v("ContentChild",[["selector",void 0],{first:!0,isViewQuery:!1,descendants:!0,read:void 0}],co),ho=v("ViewChildren",[["selector",void 0],{first:!1,isViewQuery:!0,descendants:!0,read:void 0}],co),fo=v("ViewChild",[["selector",void 0],{first:!0,isViewQuery:!0,descendants:!0,read:void 0}],co),yo={};yo.OnPush=0,yo.Default=1,yo[yo.OnPush]="OnPush",yo[yo.Default]="Default";var vo={};vo.CheckOnce=0,vo.Checked=1,vo.CheckAlways=2,vo.Detached=3,vo.Errored=4,vo.Destroyed=5,vo[vo.CheckOnce]="CheckOnce",vo[vo.Checked]="Checked",vo[vo.CheckAlways]="CheckAlways",vo[vo.Detached]="Detached",vo[vo.Errored]="Errored",vo[vo.Destroyed]="Destroyed";var mo=f("Directive",{selector:void 0,inputs:void 0,outputs:void 0,host:void 0,providers:void 0,exportAs:void 0,queries:void 0}),go=f("Component",{selector:void 0,inputs:void 0,outputs:void 0,host:void 0,exportAs:void 0,moduleId:void 0,providers:void 0,viewProviders:void 0,changeDetection:yo.Default,queries:void 0,templateUrl:void 0,template:void 0,styleUrls:void 0,styles:void 0,animations:void 0,encapsulation:void 0,interpolation:void 0,entryComponents:void 0},mo),_o=f("Pipe",{name:void 0,pure:!0}),bo=v("Input",[["bindingPropertyName",void 0]]),wo=v("Output",[["bindingPropertyName",void 0]]),Co=v("HostBinding",[["hostPropertyName",void 0]]),Eo=v("HostListener",[["eventName",void 0],["args",[]]]),So={name:"custom-elements"},xo={name:"no-errors-schema"},To=f("NgModule",{providers:void 0,declarations:void 0,imports:void 0,exports:void 0,entryComponents:void 0,bootstrap:void 0,schemas:void 0,id:void 0}),Po={};Po.Emulated=0,Po.Native=1,Po.None=2,Po[Po.Emulated]="Emulated",Po[Po.Native]="Native",Po[Po.None]="None";var Ao=function(){function t(t){var e=void 0===t?{}:t,n=e.templateUrl,r=e.template,o=e.encapsulation,i=e.styles,s=e.styleUrls,a=e.animations,u=e.interpolation;this.templateUrl=n,this.template=r,this.styleUrls=s,this.styles=i,this.encapsulation=o,this.animations=a,this.interpolation=u}return t}(),Oo=function(){function t(t){this.full=t}return Object.defineProperty(t.prototype,"major",{get:function(){return this.full.split(".")[0]},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"minor",{get:function(){return this.full.split(".")[1]},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"patch",{get:function(){return this.full.split(".").slice(2).join(".")},enumerable:!0,configurable:!0}),t}(),Mo=new Oo("4.0.1"),Ro=y("Inject",[["token",void 0]]),ko=y("Optional",[]),Io=f("Injectable",[]),No=y("Self",[]),Do=y("SkipSelf",[]),jo=y("Host",[]),Lo=new Object,Vo=Lo,Fo=function(){function t(){}return t.prototype.get=function(t,e){if(void 0===e&&(e=Lo),e===Lo)throw new Error("No provider for "+c(t)+"!");return e},t}(),Uo=function(){function t(){}return t.prototype.get=function(){},t.prototype.get=function(){},t}();Uo.THROW_IF_NOT_FOUND=Lo,Uo.NULL=new Fo;var Bo="ngComponentType",Ho="ngDebugContext",qo="ngOriginalError",zo="ngErrorLogger",Go=function(){function t(){this._console=console}return t.prototype.handleError=function(t){var e=this._findOriginalError(t),n=this._findContext(t),r=C(t);r(this._console,"ERROR",t),e&&r(this._console,"ORIGINAL ERROR",e),n&&r(this._console,"ERROR CONTEXT",n)},t.prototype._findContext=function(t){return t?b(t)?b(t):this._findContext(w(t)):null},t.prototype._findOriginalError=function(t){for(var e=w(t);e&&w(e);)e=w(e);return e},t}(),Wo=function(){function t(t,e){if(this.token=t,this.id=e,!t)throw new Error("Token must be defined!")}return Object.defineProperty(t.prototype,"displayName",{get:function(){return c(this.token)},enumerable:!0,configurable:!0}),t.get=function(t){return Qo.get(_(t))},Object.defineProperty(t,"numberOfKeys",{get:function(){return Qo.numberOfKeys},enumerable:!0,configurable:!0}),t}(),Ko=function(){function t(){this._allKeys=new Map}return t.prototype.get=function(t){if(t instanceof Wo)return t;if(this._allKeys.has(t))return this._allKeys.get(t);var e=new Wo(t,Wo.numberOfKeys);return this._allKeys.set(t,e),e},Object.defineProperty(t.prototype,"numberOfKeys",{get:function(){return this._allKeys.size},enumerable:!0,configurable:!0}),t}(),Qo=new Ko,$o=Function,Xo=/^function\s+\S+\(\)\s*{[\s\S]+\.apply\(this,\s*arguments\)/,Zo=function(){function t(t){this._reflect=t||ro.Reflect}return t.prototype.isReflectionEnabled=function(){return!0},t.prototype.factory=function(t){return function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return new(t.bind.apply(t,[void 0].concat(e)))}},t.prototype._zipTypesAndAnnotations=function(t,e){var n;n=new Array("undefined"==typeof t?e.length:t.length);for(var r=0;r<n.length;r++)n[r]="undefined"==typeof t?[]:t[r]!=Object?[t[r]]:[],e&&null!=e[r]&&(n[r]=n[r].concat(e[r]));return n},t.prototype._ownParameters=function(t,e){if(Xo.exec(t.toString()))return null;if(t.parameters&&t.parameters!==e.parameters)return t.parameters;var n=t.ctorParameters;if(n&&n!==e.ctorParameters){var r="function"==typeof n?n():n,o=r.map(function(t){return t&&t.type}),i=r.map(function(t){return t&&L(t.decorators)});return this._zipTypesAndAnnotations(o,i)}if(null!=this._reflect&&null!=this._reflect.getOwnMetadata){var i=this._reflect.getOwnMetadata("parameters",t),o=this._reflect.getOwnMetadata("design:paramtypes",t);if(o||i)return this._zipTypesAndAnnotations(o,i)}return new Array(t.length).fill(void 0)},t.prototype.parameters=function(t){if(!j(t))return[];var e=V(t),n=this._ownParameters(t,e);return n||e===Object||(n=this.parameters(e)),n||[]},t.prototype._ownAnnotations=function(t,e){if(t.annotations&&t.annotations!==e.annotations){var n=t.annotations;return"function"==typeof n&&n.annotations&&(n=n.annotations),n}return t.decorators&&t.decorators!==e.decorators?L(t.decorators):this._reflect&&this._reflect.getOwnMetadata?this._reflect.getOwnMetadata("annotations",t):null},t.prototype.annotations=function(t){if(!j(t))return[];var e=V(t),n=this._ownAnnotations(t,e)||[],r=e!==Object?this.annotations(e):[];return r.concat(n)},t.prototype._ownPropMetadata=function(t,e){if(t.propMetadata&&t.propMetadata!==e.propMetadata){var n=t.propMetadata;return"function"==typeof n&&n.propMetadata&&(n=n.propMetadata),n}if(t.propDecorators&&t.propDecorators!==e.propDecorators){var r=t.propDecorators,o={};return Object.keys(r).forEach(function(t){o[t]=L(r[t])}),o}return this._reflect&&this._reflect.getOwnMetadata?this._reflect.getOwnMetadata("propMetadata",t):null},t.prototype.propMetadata=function(t){if(!j(t))return{};var e=V(t),n={};if(e!==Object){var r=this.propMetadata(e);Object.keys(r).forEach(function(t){n[t]=r[t]})}var o=this._ownPropMetadata(t,e);return o&&Object.keys(o).forEach(function(t){var e=[];n.hasOwnProperty(t)&&e.push.apply(e,n[t]),e.push.apply(e,o[t]),n[t]=e}),n},t.prototype.hasLifecycleHook=function(t,e){return t instanceof $o&&e in t.prototype},t.prototype.getter=function(t){return new Function("o","return o."+t+";")},t.prototype.setter=function(t){return new Function("o","v","return o."+t+" = v;")},t.prototype.method=function(t){var e="if (!o."+t+") throw new Error('\""+t+"\" is undefined');\n return o."+t+".apply(o, args);";return new Function("o","args",e)},t.prototype.importUri=function(t){return"object"==typeof t&&t.filePath?t.filePath:"./"+c(t)},t.prototype.resourceUri=function(t){return"./"+c(t)},t.prototype.resolveIdentifier=function(t,e,n,r){return r},t.prototype.resolveEnum=function(t,e){return t[e]},t}(),Yo=function(){function t(){}return t.prototype.parameters=function(){},t.prototype.annotations=function(){},t.prototype.propMetadata=function(){},t.prototype.importUri=function(){},t.prototype.resourceUri=function(){},t.prototype.resolveIdentifier=function(){},t.prototype.resolveEnum=function(){},t}(),Jo=function(t){function e(e){var n=t.call(this)||this;return n.reflectionCapabilities=e,n}return Zr(e,t), +e.prototype.updateCapabilities=function(t){this.reflectionCapabilities=t},e.prototype.factory=function(t){return this.reflectionCapabilities.factory(t)},e.prototype.parameters=function(t){return this.reflectionCapabilities.parameters(t)},e.prototype.annotations=function(t){return this.reflectionCapabilities.annotations(t)},e.prototype.propMetadata=function(t){return this.reflectionCapabilities.propMetadata(t)},e.prototype.hasLifecycleHook=function(t,e){return this.reflectionCapabilities.hasLifecycleHook(t,e)},e.prototype.getter=function(t){return this.reflectionCapabilities.getter(t)},e.prototype.setter=function(t){return this.reflectionCapabilities.setter(t)},e.prototype.method=function(t){return this.reflectionCapabilities.method(t)},e.prototype.importUri=function(t){return this.reflectionCapabilities.importUri(t)},e.prototype.resourceUri=function(t){return this.reflectionCapabilities.resourceUri(t)},e.prototype.resolveIdentifier=function(t,e,n,r){return this.reflectionCapabilities.resolveIdentifier(t,e,n,r)},e.prototype.resolveEnum=function(t,e){return this.reflectionCapabilities.resolveEnum(t,e)},e}(Yo),ti=new Jo(new Zo),ei=function(){function t(t,e,n){this.key=t,this.optional=e,this.visibility=n}return t.fromKey=function(e){return new t(e,!1,null)},t}(),ni=[],ri=function(){function t(t,e,n){this.key=t,this.resolvedFactories=e,this.multiProvider=n}return Object.defineProperty(t.prototype,"resolvedFactory",{get:function(){return this.resolvedFactories[0]},enumerable:!0,configurable:!0}),t}(),oi=function(){function t(t,e){this.factory=t,this.dependencies=e}return t}(),ii=new Object,si=function(){function t(){}return t.resolve=function(t){return B(t)},t.resolveAndCreate=function(e,n){var r=t.resolve(e);return t.fromResolvedProviders(r,n)},t.fromResolvedProviders=function(t,e){return new ai(t,e)},t.prototype.parent=function(){},t.prototype.resolveAndCreateChild=function(){},t.prototype.createChildFromResolved=function(){},t.prototype.resolveAndInstantiate=function(){},t.prototype.instantiateResolved=function(){},t.prototype.get=function(){},t}(),ai=function(){function t(t,e){this._constructionCounter=0,this._providers=t,this._parent=e||null;var n=t.length;this.keyIds=new Array(n),this.objs=new Array(n);for(var r=0;n>r;r++)this.keyIds[r]=t[r].key.id,this.objs[r]=ii}return t.prototype.get=function(t,e){return void 0===e&&(e=Vo),this._getByKey(Wo.get(t),null,e)},Object.defineProperty(t.prototype,"parent",{get:function(){return this._parent},enumerable:!0,configurable:!0}),t.prototype.resolveAndCreateChild=function(t){var e=si.resolve(t);return this.createChildFromResolved(e)},t.prototype.createChildFromResolved=function(e){var n=new t(e);return n._parent=this,n},t.prototype.resolveAndInstantiate=function(t){return this.instantiateResolved(si.resolve([t])[0])},t.prototype.instantiateResolved=function(t){return this._instantiateProvider(t)},t.prototype.getProviderAtIndex=function(t){if(0>t||t>=this._providers.length)throw N(t);return this._providers[t]},t.prototype._new=function(t){if(this._constructionCounter++>this._getMaxNumberOfObjects())throw M(this,t.key);return this._instantiateProvider(t)},t.prototype._getMaxNumberOfObjects=function(){return this.objs.length},t.prototype._instantiateProvider=function(t){if(t.multiProvider){for(var e=new Array(t.resolvedFactories.length),n=0;n<t.resolvedFactories.length;++n)e[n]=this._instantiate(t,t.resolvedFactories[n]);return e}return this._instantiate(t,t.resolvedFactories[0])},t.prototype._instantiate=function(t,e){var n,r=this,o=e.factory;try{n=e.dependencies.map(function(t){return r._getByReflectiveDependency(t)})}catch(i){throw i.addKey&&i.addKey(this,t.key),i}var s;try{s=o.apply(void 0,n)}catch(i){throw R(this,i,i.stack,t.key)}return s},t.prototype._getByReflectiveDependency=function(t){return this._getByKey(t.key,t.visibility,t.optional?null:Vo)},t.prototype._getByKey=function(t,e,n){return t===ui?this:e instanceof No?this._getByKeySelf(t,n):this._getByKeyDefault(t,n,e)},t.prototype._getObjByKeyId=function(t){for(var e=0;e<this.keyIds.length;e++)if(this.keyIds[e]===t)return this.objs[e]===ii&&(this.objs[e]=this._new(this._providers[e])),this.objs[e];return ii},t.prototype._throwOrNull=function(t,e){if(e!==Vo)return e;throw O(this,t)},t.prototype._getByKeySelf=function(t,e){var n=this._getObjByKeyId(t.id);return n!==ii?n:this._throwOrNull(t,e)},t.prototype._getByKeyDefault=function(e,n,r){var o;for(o=r instanceof Do?this._parent:this;o instanceof t;){var i=o,s=i._getObjByKeyId(e.id);if(s!==ii)return s;o=i._parent}return null!==o?o.get(e.token,n):this._throwOrNull(e,n)},Object.defineProperty(t.prototype,"displayName",{get:function(){var t=Q(this,function(t){return' "'+t.key.displayName+'" '}).join(", ");return"ReflectiveInjector(providers: ["+t+"])"},enumerable:!0,configurable:!0}),t.prototype.toString=function(){return this.displayName},t}(),ui=Wo.get(Uo),ci=new Jr("Application Initializer"),li=function(){function t(t){var e=this;this._done=!1;var n=[];if(t)for(var r=0;r<t.length;r++){var o=t[r]();$(o)&&n.push(o)}this._donePromise=Promise.all(n).then(function(){e._done=!0}),0===n.length&&(this._done=!0)}return Object.defineProperty(t.prototype,"done",{get:function(){return this._done},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"donePromise",{get:function(){return this._donePromise},enumerable:!0,configurable:!0}),t}();li.decorators=[{type:Io}],li.ctorParameters=function(){return[{type:Array,decorators:[{type:Ro,args:[ci]},{type:ko}]}]};var pi=new Jr("AppId"),hi={provide:pi,useFactory:Z,deps:[]},fi=new Jr("Platform Initializer"),di=new Jr("Platform ID"),yi=new Jr("appBootstrapListener"),vi=new Jr("Application Packages Root URL"),mi=function(){function t(){}return t.prototype.log=function(t){console.log(t)},t.prototype.warn=function(t){console.warn(t)},t}();mi.decorators=[{type:Io}],mi.ctorParameters=function(){return[]};var gi=function(){function t(t,e){this.ngModuleFactory=t,this.componentFactories=e}return t}(),_i=function(){function t(){}return t.prototype.compileModuleSync=function(){throw J()},t.prototype.compileModuleAsync=function(){throw J()},t.prototype.compileModuleAndAllComponentsSync=function(){throw J()},t.prototype.compileModuleAndAllComponentsAsync=function(){throw J()},t.prototype.getNgContentSelectors=function(){throw J()},t.prototype.clearCache=function(){},t.prototype.clearCacheFor=function(){},t}();_i.decorators=[{type:Io}],_i.ctorParameters=function(){return[]};var bi=new Jr("compilerOptions"),wi=function(){function t(){}return t.prototype.createCompiler=function(){},t}(),Ci=function(){function t(){}return t.prototype.location=function(){},t.prototype.injector=function(){},t.prototype.instance=function(){},t.prototype.hostView=function(){},t.prototype.changeDetectorRef=function(){},t.prototype.componentType=function(){},t.prototype.destroy=function(){},t.prototype.onDestroy=function(){},t}(),Ei=function(){function t(){}return t.prototype.selector=function(){},t.prototype.componentType=function(){},t.prototype.ngContentSelectors=function(){},t.prototype.inputs=function(){},t.prototype.outputs=function(){},t.prototype.create=function(){},t}(),Si="ngComponent",xi=function(){function t(){}return t.prototype.resolveComponentFactory=function(t){throw tt(t)},t}(),Ti=function(){function t(){}return t.prototype.resolveComponentFactory=function(){},t}();Ti.NULL=new xi;var Pi,Ai,Oi=function(){function t(t,e,n){this._parent=e,this._ngModule=n,this._factories=new Map;for(var r=0;r<t.length;r++){var o=t[r];this._factories.set(o.componentType,o)}}return t.prototype.resolveComponentFactory=function(t){var e=this._factories.get(t)||this._parent.resolveComponentFactory(t);return new Mi(e,this._ngModule)},t}(),Mi=function(t){function e(e,n){var r=t.call(this)||this;return r.factory=e,r.ngModule=n,r}return Zr(e,t),Object.defineProperty(e.prototype,"selector",{get:function(){return this.factory.selector},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"componentType",{get:function(){return this.factory.componentType},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"ngContentSelectors",{get:function(){return this.factory.ngContentSelectors},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"inputs",{get:function(){return this.factory.inputs},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"outputs",{get:function(){return this.factory.outputs},enumerable:!0,configurable:!0}),e.prototype.create=function(t,e,n,r){return this.factory.create(t,e,n,r||this.ngModule)},e}(Ei),Ri=function(){function t(){}return t.prototype.injector=function(){},t.prototype.componentFactoryResolver=function(){},t.prototype.instance=function(){},t.prototype.destroy=function(){},t.prototype.onDestroy=function(){},t}(),ki=function(){function t(t,e){this._injectorClass=t,this._moduleType=e}return Object.defineProperty(t.prototype,"moduleType",{get:function(){return this._moduleType},enumerable:!0,configurable:!0}),t.prototype.create=function(t){var e=new this._injectorClass(t||Uo.NULL);return e.create(),e},t}(),Ii=new Object,Ni=function(){function t(t,e,n){var r=this;this.parent=t,this._destroyListeners=[],this._destroyed=!1,this.bootstrapFactories=n.map(function(t){return new Mi(t,r)}),this._cmpFactoryResolver=new Oi(e,t.get(Ti,Ti.NULL),this)}return t.prototype.create=function(){this.instance=this.createInternal()},t.prototype.createInternal=function(){},t.prototype.get=function(t,e){if(void 0===e&&(e=Vo),t===Uo||t===Ri)return this;if(t===Ti)return this._cmpFactoryResolver;var n=this.getInternal(t,Ii);return n===Ii?this.parent.get(t,e):n},t.prototype.getInternal=function(){},Object.defineProperty(t.prototype,"injector",{get:function(){return this},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"componentFactoryResolver",{get:function(){return this._cmpFactoryResolver},enumerable:!0,configurable:!0}),t.prototype.destroy=function(){if(this._destroyed)throw new Error("The ng module "+c(this.instance.constructor)+" has already been destroyed.");this._destroyed=!0,this.destroyInternal(),this._destroyListeners.forEach(function(t){return t()})},t.prototype.onDestroy=function(t){this._destroyListeners.push(t)},t.prototype.destroyInternal=function(){},t}(),Di=et(),ji=Di?nt:function(){return st},Li=Di?rt:function(t,e){return e},Vi=Di?ot:function(){return null},Fi=Di?it:function(){return null},Ui=function(t){function e(e){void 0===e&&(e=!1);var n=t.call(this)||this;return n.__isAsync=e,n}return Zr(e,t),e.prototype.emit=function(e){t.prototype.next.call(this,e)},e.prototype.subscribe=function(e,n,r){var o,i=function(){return null},s=function(){return null};return e&&"object"==typeof e?(o=this.__isAsync?function(t){setTimeout(function(){return e.next(t)})}:function(t){e.next(t)},e.error&&(i=this.__isAsync?function(t){setTimeout(function(){return e.error(t)})}:function(t){e.error(t)}),e.complete&&(s=this.__isAsync?function(){setTimeout(function(){return e.complete()})}:function(){e.complete()})):(o=this.__isAsync?function(t){setTimeout(function(){return e(t)})}:function(t){e(t)},n&&(i=this.__isAsync?function(t){setTimeout(function(){return n(t)})}:function(t){n(t)}),r&&(s=this.__isAsync?function(){setTimeout(function(){return r()})}:function(){r()})),t.prototype.subscribe.call(this,o,i,s)},e}(i.Subject),Bi=function(){function t(t){var e=t.enableLongStackTrace,n=void 0===e?!1:e;if(this._hasPendingMicrotasks=!1,this._hasPendingMacrotasks=!1,this._isStable=!0,this._nesting=0,this._onUnstable=new Ui(!1),this._onMicrotaskEmpty=new Ui(!1),this._onStable=new Ui(!1),this._onErrorEvents=new Ui(!1),"undefined"==typeof Zone)throw new Error("Angular requires Zone.js prolyfill.");Zone.assertZonePatched(),this.outer=this.inner=Zone.current,Zone.wtfZoneSpec&&(this.inner=this.inner.fork(Zone.wtfZoneSpec)),n&&Zone.longStackTraceZoneSpec&&(this.inner=this.inner.fork(Zone.longStackTraceZoneSpec)),this.forkInnerZoneWithAngularBehavior()}return t.isInAngularZone=function(){return Zone.current.get("isAngularZone")===!0},t.assertInAngularZone=function(){if(!t.isInAngularZone())throw new Error("Expected to be in Angular Zone, but it is not!")},t.assertNotInAngularZone=function(){if(t.isInAngularZone())throw new Error("Expected to not be in Angular Zone, but it is!")},t.prototype.run=function(t){return this.inner.run(t)},t.prototype.runGuarded=function(t){return this.inner.runGuarded(t)},t.prototype.runOutsideAngular=function(t){return this.outer.run(t)},Object.defineProperty(t.prototype,"onUnstable",{get:function(){return this._onUnstable},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"onMicrotaskEmpty",{get:function(){return this._onMicrotaskEmpty},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"onStable",{get:function(){return this._onStable},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"onError",{get:function(){return this._onErrorEvents},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isStable",{get:function(){return this._isStable},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"hasPendingMicrotasks",{get:function(){return this._hasPendingMicrotasks},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"hasPendingMacrotasks",{get:function(){return this._hasPendingMacrotasks},enumerable:!0,configurable:!0}),t.prototype.checkStable=function(){var t=this;if(0==this._nesting&&!this._hasPendingMicrotasks&&!this._isStable)try{this._nesting++,this._onMicrotaskEmpty.emit(null)}finally{if(this._nesting--,!this._hasPendingMicrotasks)try{this.runOutsideAngular(function(){return t._onStable.emit(null)})}finally{this._isStable=!0}}},t.prototype.forkInnerZoneWithAngularBehavior=function(){var t=this;this.inner=this.inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:function(e,n,r,o,i,s){try{return t.onEnter(),e.invokeTask(r,o,i,s)}finally{t.onLeave()}},onInvoke:function(e,n,r,o,i,s,a){try{return t.onEnter(),e.invoke(r,o,i,s,a)}finally{t.onLeave()}},onHasTask:function(e,n,r,o){e.hasTask(r,o),n===r&&("microTask"==o.change?t.setHasMicrotask(o.microTask):"macroTask"==o.change&&t.setHasMacrotask(o.macroTask))},onHandleError:function(e,n,r,o){return e.handleError(r,o),t.triggerError(o),!1}})},t.prototype.onEnter=function(){this._nesting++,this._isStable&&(this._isStable=!1,this._onUnstable.emit(null))},t.prototype.onLeave=function(){this._nesting--,this.checkStable()},t.prototype.setHasMicrotask=function(t){this._hasPendingMicrotasks=t,this.checkStable()},t.prototype.setHasMacrotask=function(t){this._hasPendingMacrotasks=t},t.prototype.triggerError=function(t){this._onErrorEvents.emit(t)},t}(),Hi=function(){function t(t){this._ngZone=t,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this._watchAngularEvents()}return t.prototype._watchAngularEvents=function(){var t=this;this._ngZone.onUnstable.subscribe({next:function(){t._didWork=!0,t._isZoneStable=!1}}),this._ngZone.runOutsideAngular(function(){t._ngZone.onStable.subscribe({next:function(){Bi.assertNotInAngularZone(),a(function(){t._isZoneStable=!0,t._runCallbacksIfReady()})}})})},t.prototype.increasePendingRequestCount=function(){return this._pendingCount+=1,this._didWork=!0,this._pendingCount},t.prototype.decreasePendingRequestCount=function(){if(this._pendingCount-=1,this._pendingCount<0)throw new Error("pending async requests below zero");return this._runCallbacksIfReady(),this._pendingCount},t.prototype.isStable=function(){return this._isZoneStable&&0==this._pendingCount&&!this._ngZone.hasPendingMacrotasks},t.prototype._runCallbacksIfReady=function(){var t=this;this.isStable()?a(function(){for(;0!==t._callbacks.length;)t._callbacks.pop()(t._didWork);t._didWork=!1}):this._didWork=!0},t.prototype.whenStable=function(t){this._callbacks.push(t),this._runCallbacksIfReady()},t.prototype.getPendingRequestCount=function(){return this._pendingCount},t.prototype.findBindings=function(){return[]},t.prototype.findProviders=function(){return[]},t}();Hi.decorators=[{type:Io}],Hi.ctorParameters=function(){return[{type:Bi}]};var qi=function(){function t(){this._applications=new Map,Wi.addToWindow(this)}return t.prototype.registerApplication=function(t,e){this._applications.set(t,e)},t.prototype.getTestability=function(t){return this._applications.get(t)||null},t.prototype.getAllTestabilities=function(){return Array.from(this._applications.values())},t.prototype.getAllRootElements=function(){return Array.from(this._applications.keys())},t.prototype.findTestabilityInTree=function(t,e){return void 0===e&&(e=!0),Wi.findTestabilityInTree(this,t,e)},t}();qi.decorators=[{type:Io}],qi.ctorParameters=function(){return[]};var zi,Gi=function(){function t(){}return t.prototype.addToWindow=function(){},t.prototype.findTestabilityInTree=function(){return null},t}(),Wi=new Gi,Ki=!0,Qi=!1,$i=new Jr("AllowMultipleToken"),Xi=function(){function t(t,e){this.name=t,this.token=e}return t}(),Zi=function(){function t(){}return t.prototype.bootstrapModuleFactory=function(){},t.prototype.bootstrapModule=function(){},t.prototype.onDestroy=function(){},t.prototype.injector=function(){},t.prototype.destroy=function(){},t.prototype.destroyed=function(){},t}(),Yi=function(t){function e(e){var n=t.call(this)||this;return n._injector=e,n._modules=[],n._destroyListeners=[],n._destroyed=!1,n}return Zr(e,t),e.prototype.onDestroy=function(t){this._destroyListeners.push(t)},Object.defineProperty(e.prototype,"injector",{get:function(){return this._injector},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"destroyed",{get:function(){return this._destroyed},enumerable:!0,configurable:!0}),e.prototype.destroy=function(){if(this._destroyed)throw new Error("The platform has already been destroyed!");this._modules.slice().forEach(function(t){return t.destroy()}),this._destroyListeners.forEach(function(t){return t()}),this._destroyed=!0},e.prototype.bootstrapModuleFactory=function(t){return this._bootstrapModuleFactoryWithZone(t)},e.prototype._bootstrapModuleFactoryWithZone=function(t,e){var n=this;return e||(e=new Bi({enableLongStackTrace:ct()})),e.run(function(){var r=si.resolveAndCreate([{provide:Bi,useValue:e}],n.injector),o=t.create(r),i=o.injector.get(Go,null);if(!i)throw new Error("No ErrorHandler. Is platform module (BrowserModule) included?");return o.onDestroy(function(){return vt(n._modules,o)}),e.onError.subscribe({next:function(t){i.handleError(t)}}),yt(i,function(){var t=o.injector.get(li);return t.donePromise.then(function(){return n._moduleDoBootstrap(o),o})})})},e.prototype.bootstrapModule=function(t,e){return void 0===e&&(e=[]),this._bootstrapModuleWithZone(t,e)},e.prototype._bootstrapModuleWithZone=function(t,e,n){var r=this;void 0===e&&(e=[]);var o=this.injector.get(wi),i=o.createCompiler(Array.isArray(e)?e:[e]);return i.compileModuleAsync(t).then(function(t){return r._bootstrapModuleFactoryWithZone(t,n)})},e.prototype._moduleDoBootstrap=function(t){var e=t.injector.get(Ji);if(t.bootstrapFactories.length>0)t.bootstrapFactories.forEach(function(t){return e.bootstrap(t)});else{if(!t.instance.ngDoBootstrap)throw new Error("The module "+c(t.instance.constructor)+' was bootstrapped, but it does not declare "@NgModule.bootstrap" components nor a "ngDoBootstrap" method. Please define one of these.');t.instance.ngDoBootstrap(e)}this._modules.push(t)},e}(Zi);Yi.decorators=[{type:Io}],Yi.ctorParameters=function(){return[{type:Uo}]};var Ji=function(){function t(){}return t.prototype.bootstrap=function(){},t.prototype.tick=function(){},t.prototype.componentTypes=function(){},t.prototype.components=function(){},t.prototype.attachView=function(){},t.prototype.detachView=function(){},t.prototype.viewCount=function(){},t.prototype.isStable=function(){},t}(),ts=function(t){function o(o,i,s,u,c,l){var p=t.call(this)||this;p._zone=o,p._console=i,p._injector=s,p._exceptionHandler=u,p._componentFactoryResolver=c,p._initStatus=l,p._bootstrapListeners=[],p._rootComponents=[],p._rootComponentTypes=[],p._views=[],p._runningTick=!1,p._enforceNoNewChanges=!1,p._stable=!0,p._enforceNoNewChanges=ct(),p._zone.onMicrotaskEmpty.subscribe({next:function(){p._zone.run(function(){p.tick()})}});var h=new e.Observable(function(t){p._stable=p._zone.isStable&&!p._zone.hasPendingMacrotasks&&!p._zone.hasPendingMicrotasks,p._zone.runOutsideAngular(function(){t.next(p._stable),t.complete()})}),f=new e.Observable(function(t){var e=p._zone.onStable.subscribe(function(){Bi.assertNotInAngularZone(),a(function(){p._stable||p._zone.hasPendingMacrotasks||p._zone.hasPendingMicrotasks||(p._stable=!0,t.next(!0))})}),n=p._zone.onUnstable.subscribe(function(){Bi.assertInAngularZone(),p._stable&&(p._stable=!1,p._zone.runOutsideAngular(function(){t.next(!1)}))});return function(){e.unsubscribe(),n.unsubscribe()}});return p._isStable=n.merge(h,r.share.call(f)),p}return Zr(o,t),o.prototype.attachView=function(t){var e=t;this._views.push(e),e.attachToAppRef(this)},o.prototype.detachView=function(t){var e=t;vt(this._views,e),e.detachFromAppRef()},o.prototype.bootstrap=function(t){var e=this;if(!this._initStatus.done)throw new Error("Cannot bootstrap as there are still asynchronous initializers running. Bootstrap components in the `ngDoBootstrap` method of the root module.");var n;n=t instanceof Ei?t:this._componentFactoryResolver.resolveComponentFactory(t),this._rootComponentTypes.push(n.componentType);var r=n instanceof Mi?null:this._injector.get(Ri),o=n.create(Uo.NULL,[],n.selector,r);o.onDestroy(function(){e._unloadComponent(o)});var i=o.injector.get(Hi,null);return i&&o.injector.get(qi).registerApplication(o.location.nativeElement,i),this._loadComponent(o),ct()&&this._console.log("Angular is running in the development mode. Call enableProdMode() to enable the production mode."),o},o.prototype._loadComponent=function(t){this.attachView(t.hostView),this.tick(),this._rootComponents.push(t);var e=this._injector.get(yi,[]).concat(this._bootstrapListeners);e.forEach(function(e){return e(t)})},o.prototype._unloadComponent=function(t){this.detachView(t.hostView),vt(this._rootComponents,t)},o.prototype.tick=function(){if(this._runningTick)throw new Error("ApplicationRef.tick is called recursively");var t=o._tickScope();try{this._runningTick=!0,this._views.forEach(function(t){return t.detectChanges()}),this._enforceNoNewChanges&&this._views.forEach(function(t){return t.checkNoChanges()})}finally{this._runningTick=!1,Li(t)}},o.prototype.ngOnDestroy=function(){this._views.slice().forEach(function(t){return t.destroy()})},Object.defineProperty(o.prototype,"viewCount",{get:function(){return this._views.length},enumerable:!0,configurable:!0}),Object.defineProperty(o.prototype,"componentTypes",{get:function(){return this._rootComponentTypes},enumerable:!0,configurable:!0}),Object.defineProperty(o.prototype,"components",{get:function(){return this._rootComponents},enumerable:!0,configurable:!0}),Object.defineProperty(o.prototype,"isStable",{get:function(){return this._isStable},enumerable:!0,configurable:!0}),o}(Ji);ts._tickScope=ji("ApplicationRef#tick()"),ts.decorators=[{type:Io}],ts.ctorParameters=function(){return[{type:Bi},{type:mi},{type:Uo},{type:Go},{type:Ti},{type:li}]};var es=function(){function t(t,e,n,r,o,i){this.id=t,this.templateUrl=e,this.slotCount=n,this.encapsulation=r,this.styles=o,this.animations=i}return t}(),ns=function(){function t(){}return t.prototype.injector=function(){},t.prototype.component=function(){},t.prototype.providerTokens=function(){},t.prototype.references=function(){},t.prototype.context=function(){},t.prototype.source=function(){},t}(),rs=function(){function t(){}return t.prototype.selectRootElement=function(){},t.prototype.createElement=function(){},t.prototype.createViewRoot=function(){},t.prototype.createTemplateAnchor=function(){},t.prototype.createText=function(){},t.prototype.projectNodes=function(){},t.prototype.attachViewAfter=function(){},t.prototype.detachView=function(){},t.prototype.destroyView=function(){},t.prototype.listen=function(){},t.prototype.listenGlobal=function(){},t.prototype.setElementProperty=function(){},t.prototype.setElementAttribute=function(){},t.prototype.setBindingDebugInfo=function(){},t.prototype.setElementClass=function(){},t.prototype.setElementStyle=function(){},t.prototype.invokeElementMethod=function(){},t.prototype.setText=function(){},t.prototype.animate=function(){},t}(),os=(new Jr("Renderer2Interceptor"),function(){function t(){}return t.prototype.renderComponent=function(){},t}()),is=function(){function t(){}return t.prototype.createRenderer=function(){},t}(),ss={};ss.Important=1,ss.DashCase=2,ss[ss.Important]="Important",ss[ss.DashCase]="DashCase";var as=function(){function t(){}return t.prototype.data=function(){},t.prototype.destroy=function(){},t.prototype.createElement=function(){},t.prototype.createComment=function(){},t.prototype.createText=function(){},t.prototype.appendChild=function(){},t.prototype.insertBefore=function(){},t.prototype.removeChild=function(){},t.prototype.selectRootElement=function(){},t.prototype.parentNode=function(){},t.prototype.nextSibling=function(){},t.prototype.setAttribute=function(){},t.prototype.removeAttribute=function(){},t.prototype.addClass=function(){},t.prototype.removeClass=function(){},t.prototype.setStyle=function(){},t.prototype.removeStyle=function(){},t.prototype.setProperty=function(){},t.prototype.setValue=function(){},t.prototype.listen=function(){},t}(),us=function(){function t(t){this.nativeElement=t}return t}(),cs=function(){function t(){}return t.prototype.load=function(){},t}(),ls=new Map,ps=function(){function t(){this._dirty=!0,this._results=[],this._emitter=new Ui}return Object.defineProperty(t.prototype,"changes",{get:function(){return this._emitter},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"length",{get:function(){return this._results.length},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"first",{get:function(){return this._results[0]},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"last",{get:function(){return this._results[this.length-1]},enumerable:!0,configurable:!0}),t.prototype.map=function(t){return this._results.map(t)},t.prototype.filter=function(t){return this._results.filter(t)},t.prototype.find=function(t){return this._results.find(t)},t.prototype.reduce=function(t,e){return this._results.reduce(t,e)},t.prototype.forEach=function(t){this._results.forEach(t)},t.prototype.some=function(t){return this._results.some(t)},t.prototype.toArray=function(){return this._results.slice()},t.prototype[s()]=function(){return this._results[s()]()},t.prototype.toString=function(){return this._results.toString()},t.prototype.reset=function(t){this._results=_t(t),this._dirty=!1},t.prototype.notifyOnChanges=function(){this._emitter.emit(this)},t.prototype.setDirty=function(){this._dirty=!0},Object.defineProperty(t.prototype,"dirty",{get:function(){return this._dirty},enumerable:!0,configurable:!0}),t}(),hs="#",fs="NgFactory",ds=function(){function t(){}return t}(),ys={factoryPathPrefix:"",factoryPathSuffix:".ngfactory"},vs=function(){function t(t,e){this._compiler=t,this._config=e||ys}return t.prototype.load=function(t){var e=this._compiler instanceof _i;return e?this.loadFactory(t):this.loadAndCompile(t)},t.prototype.loadAndCompile=function(t){var e=this,n=t.split(hs),r=n[0],o=n[1];return void 0===o&&(o="default"),System["import"](r).then(function(t){return t[o]}).then(function(t){return bt(t,r,o)}).then(function(t){return e._compiler.compileModuleAsync(t)})},t.prototype.loadFactory=function(t){var e=t.split(hs),n=e[0],r=e[1],o=fs;return void 0===r&&(r="default",o=""),System["import"](this._config.factoryPathPrefix+n+this._config.factoryPathSuffix).then(function(t){return t[r+o]}).then(function(t){return bt(t,n,r)})},t}();vs.decorators=[{type:Io}],vs.ctorParameters=function(){return[{type:_i},{type:ds,decorators:[{type:ko}]}]};var ms=function(){function t(){}return t.prototype.elementRef=function(){},t.prototype.createEmbeddedView=function(){},t}(),gs=function(){function t(){}return t.prototype.element=function(){},t.prototype.injector=function(){},t.prototype.parentInjector=function(){},t.prototype.clear=function(){},t.prototype.get=function(){},t.prototype.length=function(){},t.prototype.createEmbeddedView=function(){},t.prototype.createComponent=function(){},t.prototype.insert=function(){},t.prototype.move=function(){},t.prototype.indexOf=function(){},t.prototype.remove=function(){},t.prototype.detach=function(){},t}(),_s=function(){function t(){}return t.prototype.markForCheck=function(){},t.prototype.detach=function(){},t.prototype.detectChanges=function(){},t.prototype.checkNoChanges=function(){},t.prototype.reattach=function(){},t}(),bs=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Zr(e,t),e.prototype.destroy=function(){},e.prototype.destroyed=function(){},e.prototype.onDestroy=function(){},e}(_s),ws=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Zr(e,t),e.prototype.context=function(){},e.prototype.rootNodes=function(){},e}(bs),Cs=function(){function t(t,e){this.name=t,this.callback=e}return t}(),Es=function(){function t(t,e,n){this._debugContext=n,this.nativeNode=t,e&&e instanceof Ss?e.addChild(this):this.parent=null,this.listeners=[]}return Object.defineProperty(t.prototype,"injector",{get:function(){return this._debugContext.injector},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"componentInstance",{get:function(){return this._debugContext.component},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"context",{get:function(){return this._debugContext.context},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"references",{get:function(){return this._debugContext.references},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"providerTokens",{get:function(){return this._debugContext.providerTokens},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"source",{get:function(){return"Deprecated since v4"},enumerable:!0,configurable:!0}),t}(),Ss=function(t){function e(e,n,r){var o=t.call(this,e,n,r)||this;return o.properties={},o.attributes={},o.classes={},o.styles={},o.childNodes=[],o.nativeElement=e,o}return Zr(e,t),e.prototype.addChild=function(t){t&&(this.childNodes.push(t),t.parent=this)},e.prototype.removeChild=function(t){var e=this.childNodes.indexOf(t);-1!==e&&(t.parent=null,this.childNodes.splice(e,1))},e.prototype.insertChildrenAfter=function(t,e){var n=this,r=this.childNodes.indexOf(t);-1!==r&&((o=this.childNodes).splice.apply(o,[r+1,0].concat(e)),e.forEach(function(t){t.parent&&t.parent.removeChild(t),t.parent=n}));var o},e.prototype.insertBefore=function(t,e){var n=this.childNodes.indexOf(t);-1===n?this.addChild(e):(e.parent&&e.parent.removeChild(e),e.parent=this,this.childNodes.splice(n,0,e))},e.prototype.query=function(t){var e=this.queryAll(t);return e[0]||null},e.prototype.queryAll=function(t){var e=[];return Ct(this,t,e),e},e.prototype.queryAllNodes=function(t){var e=[];return Et(this,t,e),e},Object.defineProperty(e.prototype,"children",{get:function(){return this.childNodes.filter(function(t){return t instanceof e})},enumerable:!0,configurable:!0}),e.prototype.triggerEventHandler=function(t,e){this.listeners.forEach(function(n){n.name==t&&n.callback(e)})},e}(Es),xs=new Map,Ts=function(){function t(t){this.wrapped=t}return t.wrap=function(e){return new t(e)},t}(),Ps=function(){function t(){this.hasWrappedValue=!1}return t.prototype.unwrap=function(t){return t instanceof Ts?(this.hasWrappedValue=!0,t.wrapped):t},t.prototype.reset=function(){this.hasWrappedValue=!1},t}(),As=function(){function t(t,e,n){this.previousValue=t,this.currentValue=e,this.firstChange=n}return t.prototype.isFirstChange=function(){return this.firstChange},t}(),Os=function(){function t(){}return t.prototype.supports=function(t){return At(t)},t.prototype.create=function(t,e){ +return new Rs(e||t)},t}(),Ms=function(t,e){return e},Rs=function(){function t(t){this._length=0,this._collection=null,this._linkedRecords=null,this._unlinkedRecords=null,this._previousItHead=null,this._itHead=null,this._itTail=null,this._additionsHead=null,this._additionsTail=null,this._movesHead=null,this._movesTail=null,this._removalsHead=null,this._removalsTail=null,this._identityChangesHead=null,this._identityChangesTail=null,this._trackByFn=t||Ms}return Object.defineProperty(t.prototype,"collection",{get:function(){return this._collection},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"length",{get:function(){return this._length},enumerable:!0,configurable:!0}),t.prototype.forEachItem=function(t){var e;for(e=this._itHead;null!==e;e=e._next)t(e)},t.prototype.forEachOperation=function(t){for(var e=this._itHead,n=this._removalsHead,r=0,o=null;e||n;){var i=!n||e&&e.currentIndex<kt(n,r,o)?e:n,s=kt(i,r,o),a=i.currentIndex;if(i===n)r--,n=n._nextRemoved;else if(e=e._next,null==i.previousIndex)r++;else{o||(o=[]);var u=s-r,c=a-r;if(u!=c){for(var l=0;u>l;l++){var p=l<o.length?o[l]:o[l]=0,h=p+l;h>=c&&u>h&&(o[l]=p+1)}var f=i.previousIndex;o[f]=c-u}}s!==a&&t(i,s,a)}},t.prototype.forEachPreviousItem=function(t){var e;for(e=this._previousItHead;null!==e;e=e._nextPrevious)t(e)},t.prototype.forEachAddedItem=function(t){var e;for(e=this._additionsHead;null!==e;e=e._nextAdded)t(e)},t.prototype.forEachMovedItem=function(t){var e;for(e=this._movesHead;null!==e;e=e._nextMoved)t(e)},t.prototype.forEachRemovedItem=function(t){var e;for(e=this._removalsHead;null!==e;e=e._nextRemoved)t(e)},t.prototype.forEachIdentityChange=function(t){var e;for(e=this._identityChangesHead;null!==e;e=e._nextIdentityChange)t(e)},t.prototype.diff=function(t){if(null==t&&(t=[]),!At(t))throw new Error("Error trying to diff '"+c(t)+"'. Only arrays and iterables are allowed");return this.check(t)?this:null},t.prototype.onDestroy=function(){},t.prototype.check=function(t){var e=this;this._reset();var n,r,o,i=this._itHead,s=!1;if(Array.isArray(t)){this._length=t.length;for(var a=0;a<this._length;a++)r=t[a],o=this._trackByFn(a,r),null!==i&&u(i.trackById,o)?(s&&(i=this._verifyReinsertion(i,r,o,a)),u(i.item,r)||this._addIdentityChange(i,r)):(i=this._mismatch(i,r,o,a),s=!0),i=i._next}else n=0,Mt(t,function(t){o=e._trackByFn(n,t),null!==i&&u(i.trackById,o)?(s&&(i=e._verifyReinsertion(i,t,o,n)),u(i.item,t)||e._addIdentityChange(i,t)):(i=e._mismatch(i,t,o,n),s=!0),i=i._next,n++}),this._length=n;return this._truncate(i),this._collection=t,this.isDirty},Object.defineProperty(t.prototype,"isDirty",{get:function(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead},enumerable:!0,configurable:!0}),t.prototype._reset=function(){if(this.isDirty){var t=void 0,e=void 0;for(t=this._previousItHead=this._itHead;null!==t;t=t._next)t._nextPrevious=t._next;for(t=this._additionsHead;null!==t;t=t._nextAdded)t.previousIndex=t.currentIndex;for(this._additionsHead=this._additionsTail=null,t=this._movesHead;null!==t;t=e)t.previousIndex=t.currentIndex,e=t._nextMoved;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}},t.prototype._mismatch=function(t,e,n,r){var o;return null===t?o=this._itTail:(o=t._prev,this._remove(t)),t=null===this._linkedRecords?null:this._linkedRecords.get(n,r),null!==t?(u(t.item,e)||this._addIdentityChange(t,e),this._moveAfter(t,o,r)):(t=null===this._unlinkedRecords?null:this._unlinkedRecords.get(n,null),null!==t?(u(t.item,e)||this._addIdentityChange(t,e),this._reinsertAfter(t,o,r)):t=this._addAfter(new ks(e,n),o,r)),t},t.prototype._verifyReinsertion=function(t,e,n,r){var o=null===this._unlinkedRecords?null:this._unlinkedRecords.get(n,null);return null!==o?t=this._reinsertAfter(o,t._prev,r):t.currentIndex!=r&&(t.currentIndex=r,this._addToMoves(t,r)),t},t.prototype._truncate=function(t){for(;null!==t;){var e=t._next;this._addToRemovals(this._unlink(t)),t=e}null!==this._unlinkedRecords&&this._unlinkedRecords.clear(),null!==this._additionsTail&&(this._additionsTail._nextAdded=null),null!==this._movesTail&&(this._movesTail._nextMoved=null),null!==this._itTail&&(this._itTail._next=null),null!==this._removalsTail&&(this._removalsTail._nextRemoved=null),null!==this._identityChangesTail&&(this._identityChangesTail._nextIdentityChange=null)},t.prototype._reinsertAfter=function(t,e,n){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(t);var r=t._prevRemoved,o=t._nextRemoved;return null===r?this._removalsHead=o:r._nextRemoved=o,null===o?this._removalsTail=r:o._prevRemoved=r,this._insertAfter(t,e,n),this._addToMoves(t,n),t},t.prototype._moveAfter=function(t,e,n){return this._unlink(t),this._insertAfter(t,e,n),this._addToMoves(t,n),t},t.prototype._addAfter=function(t,e,n){return this._insertAfter(t,e,n),this._additionsTail=null===this._additionsTail?this._additionsHead=t:this._additionsTail._nextAdded=t,t},t.prototype._insertAfter=function(t,e,n){var r=null===e?this._itHead:e._next;return t._next=r,t._prev=e,null===r?this._itTail=t:r._prev=t,null===e?this._itHead=t:e._next=t,null===this._linkedRecords&&(this._linkedRecords=new Ns),this._linkedRecords.put(t),t.currentIndex=n,t},t.prototype._remove=function(t){return this._addToRemovals(this._unlink(t))},t.prototype._unlink=function(t){null!==this._linkedRecords&&this._linkedRecords.remove(t);var e=t._prev,n=t._next;return null===e?this._itHead=n:e._next=n,null===n?this._itTail=e:n._prev=e,t},t.prototype._addToMoves=function(t,e){return t.previousIndex===e?t:(this._movesTail=null===this._movesTail?this._movesHead=t:this._movesTail._nextMoved=t,t)},t.prototype._addToRemovals=function(t){return null===this._unlinkedRecords&&(this._unlinkedRecords=new Ns),this._unlinkedRecords.put(t),t.currentIndex=null,t._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=t,t._prevRemoved=null):(t._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=t),t},t.prototype._addIdentityChange=function(t,e){return t.item=e,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=t:this._identityChangesTail._nextIdentityChange=t,t},t.prototype.toString=function(){var t=[];this.forEachItem(function(e){return t.push(e)});var e=[];this.forEachPreviousItem(function(t){return e.push(t)});var n=[];this.forEachAddedItem(function(t){return n.push(t)});var r=[];this.forEachMovedItem(function(t){return r.push(t)});var o=[];this.forEachRemovedItem(function(t){return o.push(t)});var i=[];return this.forEachIdentityChange(function(t){return i.push(t)}),"collection: "+t.join(", ")+"\nprevious: "+e.join(", ")+"\nadditions: "+n.join(", ")+"\nmoves: "+r.join(", ")+"\nremovals: "+o.join(", ")+"\nidentityChanges: "+i.join(", ")+"\n"},t}(),ks=function(){function t(t,e){this.item=t,this.trackById=e,this.currentIndex=null,this.previousIndex=null,this._nextPrevious=null,this._prev=null,this._next=null,this._prevDup=null,this._nextDup=null,this._prevRemoved=null,this._nextRemoved=null,this._nextAdded=null,this._nextMoved=null,this._nextIdentityChange=null}return t.prototype.toString=function(){return this.previousIndex===this.currentIndex?c(this.item):c(this.item)+"["+c(this.previousIndex)+"->"+c(this.currentIndex)+"]"},t}(),Is=function(){function t(){this._head=null,this._tail=null}return t.prototype.add=function(t){null===this._head?(this._head=this._tail=t,t._nextDup=null,t._prevDup=null):(this._tail._nextDup=t,t._prevDup=this._tail,t._nextDup=null,this._tail=t)},t.prototype.get=function(t,e){var n;for(n=this._head;null!==n;n=n._nextDup)if((null===e||e<n.currentIndex)&&u(n.trackById,t))return n;return null},t.prototype.remove=function(t){var e=t._prevDup,n=t._nextDup;return null===e?this._head=n:e._nextDup=n,null===n?this._tail=e:n._prevDup=e,null===this._head},t}(),Ns=function(){function t(){this.map=new Map}return t.prototype.put=function(t){var e=t.trackById,n=this.map.get(e);n||(n=new Is,this.map.set(e,n)),n.add(t)},t.prototype.get=function(t,e){var n=t,r=this.map.get(n);return r?r.get(t,e):null},t.prototype.remove=function(t){var e=t.trackById,n=this.map.get(e);return n.remove(t)&&this.map["delete"](e),t},Object.defineProperty(t.prototype,"isEmpty",{get:function(){return 0===this.map.size},enumerable:!0,configurable:!0}),t.prototype.clear=function(){this.map.clear()},t.prototype.toString=function(){return"_DuplicateMap("+c(this.map)+")"},t}(),Ds=function(){function t(){}return t.prototype.supports=function(t){return t instanceof Map||Rt(t)},t.prototype.create=function(){return new js},t}(),js=function(){function t(){this._records=new Map,this._mapHead=null,this._appendAfter=null,this._previousMapHead=null,this._changesHead=null,this._changesTail=null,this._additionsHead=null,this._additionsTail=null,this._removalsHead=null,this._removalsTail=null}return Object.defineProperty(t.prototype,"isDirty",{get:function(){return null!==this._additionsHead||null!==this._changesHead||null!==this._removalsHead},enumerable:!0,configurable:!0}),t.prototype.forEachItem=function(t){var e;for(e=this._mapHead;null!==e;e=e._next)t(e)},t.prototype.forEachPreviousItem=function(t){var e;for(e=this._previousMapHead;null!==e;e=e._nextPrevious)t(e)},t.prototype.forEachChangedItem=function(t){var e;for(e=this._changesHead;null!==e;e=e._nextChanged)t(e)},t.prototype.forEachAddedItem=function(t){var e;for(e=this._additionsHead;null!==e;e=e._nextAdded)t(e)},t.prototype.forEachRemovedItem=function(t){var e;for(e=this._removalsHead;null!==e;e=e._nextRemoved)t(e)},t.prototype.diff=function(t){if(t){if(!(t instanceof Map||Rt(t)))throw new Error("Error trying to diff '"+c(t)+"'. Only maps and objects are allowed")}else t=new Map;return this.check(t)?this:null},t.prototype.onDestroy=function(){},t.prototype.check=function(t){var e=this;this._reset();var n=this._mapHead;if(this._appendAfter=null,this._forEach(t,function(t,r){if(n&&n.key===r)e._maybeAddToChanges(n,t),e._appendAfter=n,n=n._next;else{var o=e._getOrCreateRecordForKey(r,t);n=e._insertBeforeOrAppend(n,o)}}),n){n._prev&&(n._prev._next=null),this._removalsHead=n,this._removalsTail=n;for(var r=n;null!==r;r=r._nextRemoved)r===this._mapHead&&(this._mapHead=null),this._records["delete"](r.key),r._nextRemoved=r._next,r.previousValue=r.currentValue,r.currentValue=null,r._prev=null,r._next=null}return this.isDirty},t.prototype._insertBeforeOrAppend=function(t,e){if(t){var n=t._prev;return e._next=t,e._prev=n,t._prev=e,n&&(n._next=e),t===this._mapHead&&(this._mapHead=e),this._appendAfter=t,t}return this._appendAfter?(this._appendAfter._next=e,e._prev=this._appendAfter):this._mapHead=e,this._appendAfter=e,null},t.prototype._getOrCreateRecordForKey=function(t,e){if(this._records.has(t)){var n=this._records.get(t);this._maybeAddToChanges(n,e);var r=n._prev,o=n._next;return r&&(r._next=o),o&&(o._prev=r),n._next=null,n._prev=null,n}var i=new Ls(t);return this._records.set(t,i),i.currentValue=e,this._addToAdditions(i),i},t.prototype._reset=function(){if(this.isDirty){var t=void 0;for(this._previousMapHead=this._mapHead,t=this._previousMapHead;null!==t;t=t._next)t._nextPrevious=t._next;for(t=this._changesHead;null!==t;t=t._nextChanged)t.previousValue=t.currentValue;for(t=this._additionsHead;null!=t;t=t._nextAdded)t.previousValue=t.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=this._removalsTail=null}},t.prototype._maybeAddToChanges=function(t,e){u(e,t.currentValue)||(t.previousValue=t.currentValue,t.currentValue=e,this._addToChanges(t))},t.prototype._addToAdditions=function(t){null===this._additionsHead?this._additionsHead=this._additionsTail=t:(this._additionsTail._nextAdded=t,this._additionsTail=t)},t.prototype._addToChanges=function(t){null===this._changesHead?this._changesHead=this._changesTail=t:(this._changesTail._nextChanged=t,this._changesTail=t)},t.prototype.toString=function(){var t,e=[],n=[],r=[],o=[],i=[];for(t=this._mapHead;null!==t;t=t._next)e.push(c(t));for(t=this._previousMapHead;null!==t;t=t._nextPrevious)n.push(c(t));for(t=this._changesHead;null!==t;t=t._nextChanged)r.push(c(t));for(t=this._additionsHead;null!==t;t=t._nextAdded)o.push(c(t));for(t=this._removalsHead;null!==t;t=t._nextRemoved)i.push(c(t));return"map: "+e.join(", ")+"\nprevious: "+n.join(", ")+"\nadditions: "+o.join(", ")+"\nchanges: "+r.join(", ")+"\nremovals: "+i.join(", ")+"\n"},t.prototype._forEach=function(t,e){t instanceof Map?t.forEach(e):Object.keys(t).forEach(function(n){return e(t[n],n)})},t}(),Ls=function(){function t(t){this.key=t,this.previousValue=null,this.currentValue=null,this._nextPrevious=null,this._next=null,this._prev=null,this._nextAdded=null,this._nextRemoved=null,this._nextChanged=null}return t.prototype.toString=function(){return u(this.previousValue,this.currentValue)?c(this.key):c(this.key)+"["+c(this.previousValue)+"->"+c(this.currentValue)+"]"},t}(),Vs=function(){function t(t){this.factories=t}return t.create=function(e,n){if(null!=n){var r=n.factories.slice();return e=e.concat(r),new t(e)}return new t(e)},t.extend=function(e){return{provide:t,useFactory:function(n){if(!n)throw new Error("Cannot extend IterableDiffers without a parent injector");return t.create(e,n)},deps:[[t,new Do,new ko]]}},t.prototype.find=function(t){var e=this.factories.find(function(e){return e.supports(t)});if(null!=e)return e;throw new Error("Cannot find a differ supporting object '"+t+"' of type '"+It(t)+"'")},t}(),Fs=function(){function t(t){this.factories=t}return t.create=function(e,n){if(n){var r=n.factories.slice();e=e.concat(r)}return new t(e)},t.extend=function(e){return{provide:t,useFactory:function(n){if(!n)throw new Error("Cannot extend KeyValueDiffers without a parent injector");return t.create(e,n)},deps:[[t,new Do,new ko]]}},t.prototype.find=function(t){var e=this.factories.find(function(e){return e.supports(t)});if(e)return e;throw new Error("Cannot find a differ supporting object '"+t+"'")},t}(),Us=[new Ds],Bs=[new Os],Hs=new Vs(Bs),qs=new Fs(Us),zs=[{provide:di,useValue:"unknown"},Yi,{provide:Zi,useExisting:Yi},{provide:Jo,useFactory:Nt,deps:[]},{provide:Yo,useExisting:Jo},qi,mi],Gs=pt(null,"core",zs),Ws=new Jr("LocaleId"),Ks=new Jr("Translations"),Qs=new Jr("TranslationsFormat"),$s={};$s.Error=0,$s.Warning=1,$s.Ignore=2,$s[$s.Error]="Error",$s[$s.Warning]="Warning",$s[$s.Ignore]="Ignore";var Xs={};Xs.NONE=0,Xs.HTML=1,Xs.STYLE=2,Xs.SCRIPT=3,Xs.URL=4,Xs.RESOURCE_URL=5,Xs[Xs.NONE]="NONE",Xs[Xs.HTML]="HTML",Xs[Xs.STYLE]="STYLE",Xs[Xs.SCRIPT]="SCRIPT",Xs[Xs.URL]="URL",Xs[Xs.RESOURCE_URL]="RESOURCE_URL";var Zs=function(){function t(){}return t.prototype.sanitize=function(){},t}(),Ys=function(){function t(){}return t.prototype.view=function(){},t.prototype.nodeIndex=function(){},t.prototype.injector=function(){},t.prototype.component=function(){},t.prototype.providerTokens=function(){},t.prototype.references=function(){},t.prototype.context=function(){},t.prototype.componentRenderElement=function(){},t.prototype.renderNode=function(){},t.prototype.logError=function(){for(var t=[],e=1;e<arguments.length;e++)t[e-1]=arguments[e]},t}(),Js={setCurrentNode:void 0,createRootView:void 0,createEmbeddedView:void 0,checkAndUpdateView:void 0,checkNoChangesView:void 0,destroyView:void 0,resolveDep:void 0,createDebugContext:void 0,handleEvent:void 0,updateDirectives:void 0,updateRenderer:void 0,dirtyParentQueries:void 0},ta=function(){},ea=new Map,na="$$undefined",ra="$$empty",oa=0,ia=new WeakMap,sa=/^:([^:]+):(.+)$/,aa=[],ua={},ca=new Object,la=function(t){function e(e,n,r,o,i,s){var a=t.call(this)||this;return a.selector=e,a.componentType=n,a._inputs=o,a._outputs=i,a.ngContentSelectors=s,a.viewDefFactory=r,a}return Zr(e,t),Object.defineProperty(e.prototype,"inputs",{get:function(){var t=[];for(var e in this._inputs){var n=this._inputs[e];t.push({propName:e,templateName:n})}return t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"outputs",{get:function(){var t=[];for(var e in this._outputs){var n=this._outputs[e];t.push({propName:e,templateName:n})}return t},enumerable:!0,configurable:!0}),e.prototype.create=function(t,e,n,r){if(!r)throw new Error("ngModule should be provided");var o=le(this.viewDefFactory),i=o.nodes[0].element.componentProvider.index,s=Js.createRootView(t,e||[],n,o,r,ca),a=Lt(s,i).instance;return s.renderer.setAttribute(jt(s,0).renderElement,"ng-version",Mo.full),new pa(s,new fa(s),a)},e}(Ei),pa=function(t){function e(e,n,r){var o=t.call(this)||this;return o._view=e,o._viewRef=n,o._component=r,o._elDef=o._view.def.nodes[0],o}return Zr(e,t),Object.defineProperty(e.prototype,"location",{get:function(){return new us(jt(this._view,this._elDef.index).renderElement)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"injector",{get:function(){return new ya(this._view,this._elDef)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"instance",{get:function(){return this._component},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"hostView",{get:function(){return this._viewRef},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"changeDetectorRef",{get:function(){return this._viewRef},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"componentType",{get:function(){return this._component.constructor},enumerable:!0,configurable:!0}),e.prototype.destroy=function(){this._viewRef.destroy()},e.prototype.onDestroy=function(t){this._viewRef.onDestroy(t)},e}(Ci),ha=function(){function t(t,e,n){this._view=t,this._elDef=e,this._data=n,this._embeddedViews=[]}return Object.defineProperty(t.prototype,"element",{get:function(){return new us(this._data.renderElement)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"injector",{get:function(){return new ya(this._view,this._elDef)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"parentInjector",{get:function(){for(var t=this._view,e=this._elDef.parent;!e&&t;)e=ne(t),t=t.parent;return t?new ya(t,e):new ya(this._view,null)},enumerable:!0,configurable:!0}),t.prototype.clear=function(){for(var t=this._embeddedViews.length,e=t-1;e>=0;e--){var n=Le(this._data,e);Js.destroyView(n)}},t.prototype.get=function(t){var e=this._embeddedViews[t];if(e){var n=new fa(e);return n.attachToViewContainerRef(this),n}return null},Object.defineProperty(t.prototype,"length",{get:function(){return this._embeddedViews.length},enumerable:!0,configurable:!0}),t.prototype.createEmbeddedView=function(t,e,n){var r=t.createEmbeddedView(e||{});return this.insert(r,n),r},t.prototype.createComponent=function(t,e,n,r,o){var i=n||this.parentInjector;o||t instanceof Mi||(o=i.get(Ri));var s=t.create(i,r,void 0,o);return this.insert(s.hostView,e),s},t.prototype.insert=function(t,e){var n=t,r=n._view;return je(this._view,this._data,e,r),n.attachToViewContainerRef(this),t},t.prototype.move=function(t,e){var n=this._embeddedViews.indexOf(t._view);return Ve(this._data,n,e),t},t.prototype.indexOf=function(t){return this._embeddedViews.indexOf(t._view)},t.prototype.remove=function(t){var e=Le(this._data,t);e&&Js.destroyView(e)},t.prototype.detach=function(t){var e=Le(this._data,t);return e?new fa(e):null},t}(),fa=function(){function t(t){this._view=t,this._viewContainerRef=null,this._appRef=null}return Object.defineProperty(t.prototype,"rootNodes",{get:function(){return pe(this._view)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"context",{get:function(){return this._view.context},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"destroyed",{get:function(){return 0!==(8&this._view.state)},enumerable:!0,configurable:!0}),t.prototype.markForCheck=function(){Jt(this._view)},t.prototype.detach=function(){this._view.state&=-3},t.prototype.detectChanges=function(){Js.checkAndUpdateView(this._view)},t.prototype.checkNoChanges=function(){Js.checkNoChangesView(this._view)},t.prototype.reattach=function(){this._view.state|=2},t.prototype.onDestroy=function(t){this._view.disposables||(this._view.disposables=[]),this._view.disposables.push(t)},t.prototype.destroy=function(){this._appRef?this._appRef.detachView(this):this._viewContainerRef&&this._viewContainerRef.detach(this._viewContainerRef.indexOf(this)),Js.destroyView(this._view)},t.prototype.detachFromAppRef=function(){this._appRef=null,Ue(this._view),Js.dirtyParentQueries(this._view)},t.prototype.attachToAppRef=function(t){if(this._viewContainerRef)throw new Error("This view is already attached to a ViewContainer!");this._appRef=t},t.prototype.attachToViewContainerRef=function(t){if(this._appRef)throw new Error("This view is already attached directly to the ApplicationRef!");this._viewContainerRef=t},t}(),da=function(t){function e(e,n){var r=t.call(this)||this;return r._parentView=e,r._def=n,r}return Zr(e,t),e.prototype.createEmbeddedView=function(t){return new fa(Js.createEmbeddedView(this._parentView,this._def,t))},Object.defineProperty(e.prototype,"elementRef",{get:function(){return new us(jt(this._parentView,this._def.index).renderElement)},enumerable:!0,configurable:!0}),e}(ms),ya=function(){function t(t,e){this.view=t,this.elDef=e}return t.prototype.get=function(t,e){void 0===e&&(e=Uo.THROW_IF_NOT_FOUND);var n=this.elDef?0!==(16777216&this.elDef.flags):!1;return Js.resolveDep(this.view,this.elDef,n,{flags:0,token:t,tokenKey:Wt(t)},e)},t}(),va=function(){function t(t){this.delegate=t}return t.prototype.selectRootElement=function(t){return this.delegate.selectRootElement(t)},t.prototype.createElement=function(t,e){var n=me(e),r=n[0],o=n[1],i=this.delegate.createElement(o,r);return t&&this.delegate.appendChild(t,i),i},t.prototype.createViewRoot=function(t){return t},t.prototype.createTemplateAnchor=function(t){var e=this.delegate.createComment("");return t&&this.delegate.appendChild(t,e),e},t.prototype.createText=function(t,e){var n=this.delegate.createText(e);return t&&this.delegate.appendChild(t,n),n},t.prototype.projectNodes=function(t,e){for(var n=0;n<e.length;n++)this.delegate.appendChild(t,e[n])},t.prototype.attachViewAfter=function(t,e){for(var n=this.delegate.parentNode(t),r=this.delegate.nextSibling(t),o=0;o<e.length;o++)this.delegate.insertBefore(n,e[o],r)},t.prototype.detachView=function(t){for(var e=0;e<t.length;e++){var n=t[e],r=this.delegate.parentNode(n);this.delegate.removeChild(r,n)}},t.prototype.destroyView=function(t,e){for(var n=0;n<e.length;n++)this.delegate.destroyNode(e[n])},t.prototype.listen=function(t,e,n){return this.delegate.listen(t,e,n)},t.prototype.listenGlobal=function(t,e,n){return this.delegate.listen(t,e,n)},t.prototype.setElementProperty=function(t,e,n){this.delegate.setProperty(t,e,n)},t.prototype.setElementAttribute=function(t,e,n){var r=me(e),o=r[0],i=r[1];null!=n?this.delegate.setAttribute(t,i,n,o):this.delegate.removeAttribute(t,i,o)},t.prototype.setBindingDebugInfo=function(){},t.prototype.setElementClass=function(t,e,n){n?this.delegate.addClass(t,e):this.delegate.removeClass(t,e)},t.prototype.setElementStyle=function(t,e,n){null!=n?this.delegate.setStyle(t,e,n):this.delegate.removeStyle(t,e)},t.prototype.invokeElementMethod=function(t,e,n){t[e].apply(t,n)},t.prototype.setText=function(t,e){this.delegate.setValue(t,e)},t.prototype.animate=function(){throw new Error("Renderer.animate is no longer supported!")},t}(),ma=Wt(rs),ga=Wt(as),_a=Wt(us),ba=Wt(gs),wa=Wt(ms),Ca=Wt(_s),Ea=Wt(Uo),Sa=new Object,xa={},Ta={};Ta.CreateViewNodes=0,Ta.CheckNoChanges=1,Ta.CheckAndUpdate=2,Ta.Destroy=3,Ta[Ta.CreateViewNodes]="CreateViewNodes",Ta[Ta.CheckNoChanges]="CheckNoChanges",Ta[Ta.CheckAndUpdate]="CheckAndUpdate",Ta[Ta.Destroy]="Destroy";var Pa=!1,Aa={};Aa.create=0,Aa.detectChanges=1,Aa.checkNoChanges=2,Aa.destroy=3,Aa.handleEvent=4,Aa[Aa.create]="create",Aa[Aa.detectChanges]="detectChanges",Aa[Aa.checkNoChanges]="checkNoChanges",Aa[Aa.destroy]="destroy",Aa[Aa.handleEvent]="handleEvent";var Oa,Ma,Ra,ka=/([A-Z])/g,Ia=function(){function t(t,e){this.view=t,this.nodeIndex=e,null==e&&(this.nodeIndex=e=0),this.nodeDef=t.def.nodes[e];for(var n=this.nodeDef,r=t;n&&0===(1&n.flags);)n=n.parent;if(!n)for(;!n&&r;)n=ne(r),r=r.parent;this.elDef=n,this.elView=r}return Object.defineProperty(t.prototype,"elOrCompView",{get:function(){return jt(this.elView,this.elDef.index).componentView||this.view},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"injector",{get:function(){return Qe(this.elView,this.elDef)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"component",{get:function(){return this.elOrCompView.component},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"context",{get:function(){return this.elOrCompView.context},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"providerTokens",{get:function(){var t=[];if(this.elDef)for(var e=this.elDef.index+1;e<=this.elDef.index+this.elDef.childCount;e++){var n=this.elView.def.nodes[e];10112&n.flags&&t.push(n.provider.token),e+=n.childCount}return t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"references",{get:function(){var t={};if(this.elDef){Ar(this.elView,this.elDef,t);for(var e=this.elDef.index+1;e<=this.elDef.index+this.elDef.childCount;e++){var n=this.elView.def.nodes[e];10112&n.flags&&Ar(this.elView,n,t),e+=n.childCount}}return t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"componentRenderElement",{get:function(){var t=Pr(this.elOrCompView);return t?t.renderElement:void 0},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"renderNode",{get:function(){return 2&this.nodeDef.flags?re(this.view,this.nodeDef):re(this.elView,this.elDef)},enumerable:!0,configurable:!0}),t.prototype.logError=function(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];var r,o;2&this.nodeDef.flags?(r=this.view.def,o=this.nodeDef.index):(r=this.elView.def,o=this.elDef.index);var i=Tr(r,o),s=-1,a=function(){return s++,s===i?(n=t.error).bind.apply(n,[t].concat(e)):ta;var n};r.factory(a),i>s&&(t.error("Illegal state: the ViewDefinitionFactory did not call the logger!"),t.error.apply(t,e))},t}(),Na=function(){function t(t){this.delegate=t}return t.prototype.createRenderer=function(t,e){return new Da(this.delegate.createRenderer(t,e))},t}(),Da=function(){function t(t){this.delegate=t}return Object.defineProperty(t.prototype,"data",{get:function(){return this.delegate.data},enumerable:!0,configurable:!0}),t.prototype.destroyNode=function(t){Tt(St(t)),this.delegate.destroyNode&&this.delegate.destroyNode(t)},t.prototype.destroy=function(){this.delegate.destroy()},t.prototype.createElement=function(t,e){var n=this.delegate.createElement(t,e),r=Mr();if(r){var o=new Ss(n,null,r);o.name=t,xt(o)}return n},t.prototype.createComment=function(t){var e=this.delegate.createComment(t),n=Mr();return n&&xt(new Es(e,null,n)),e},t.prototype.createText=function(t){var e=this.delegate.createText(t),n=Mr();return n&&xt(new Es(e,null,n)),e},t.prototype.appendChild=function(t,e){var n=St(t),r=St(e);n&&r&&n instanceof Ss&&n.addChild(r),this.delegate.appendChild(t,e)},t.prototype.insertBefore=function(t,e,n){var r=St(t),o=St(e),i=St(n);r&&o&&r instanceof Ss&&r.insertBefore(i,o),this.delegate.insertBefore(t,e,n)},t.prototype.removeChild=function(t,e){var n=St(t),r=St(e);n&&r&&n instanceof Ss&&n.removeChild(r),this.delegate.removeChild(t,e)},t.prototype.selectRootElement=function(t){var e=this.delegate.selectRootElement(t),n=Mr();return n&&xt(new Ss(e,null,n)),e},t.prototype.setAttribute=function(t,e,n,r){var o=St(t);if(o&&o instanceof Ss){var i=r?r+":"+e:e;o.attributes[i]=n}this.delegate.setAttribute(t,e,n,r)},t.prototype.removeAttribute=function(t,e,n){var r=St(t);if(r&&r instanceof Ss){var o=n?n+":"+e:e;r.attributes[o]=null}this.delegate.removeAttribute(t,e,n)},t.prototype.addClass=function(t,e){var n=St(t);n&&n instanceof Ss&&(n.classes[e]=!0),this.delegate.addClass(t,e)},t.prototype.removeClass=function(t,e){var n=St(t);n&&n instanceof Ss&&(n.classes[e]=!1),this.delegate.removeClass(t,e)},t.prototype.setStyle=function(t,e,n,r){var o=St(t);o&&o instanceof Ss&&(o.styles[e]=n),this.delegate.setStyle(t,e,n,r)},t.prototype.removeStyle=function(t,e,n){var r=St(t);r&&r instanceof Ss&&(r.styles[e]=null),this.delegate.removeStyle(t,e,n)},t.prototype.setProperty=function(t,e,n){var r=St(t);r&&r instanceof Ss&&(r.properties[e]=n),this.delegate.setProperty(t,e,n)},t.prototype.listen=function(t,e,n){if("string"!=typeof t){var r=St(t);r&&r.listeners.push(new Cs(e,n))}return this.delegate.listen(t,e,n)},t.prototype.parentNode=function(t){return this.delegate.parentNode(t)},t.prototype.nextSibling=function(t){return this.delegate.nextSibling(t)},t.prototype.setValue=function(t,e){return this.delegate.setValue(t,e)},t}(),ja=function(){function t(){}return t}();ja.decorators=[{type:To,args:[{providers:[ts,{provide:Ji,useExisting:ts},li,_i,hi,{provide:Vs,useFactory:Rr},{provide:Fs,useFactory:kr},{provide:Ws,useFactory:Ir,deps:[[new Ro(Ws),new ko,new Do]]},{provide:ci,useValue:Nr,multi:!0}]}]}],ja.ctorParameters=function(){return[{type:Ji}]};var La={};La.OnInit=0,La.OnDestroy=1,La.DoCheck=2,La.OnChanges=3,La.AfterContentInit=4,La.AfterContentChecked=5,La.AfterViewInit=6,La.AfterViewChecked=7,La[La.OnInit]="OnInit",La[La.OnDestroy]="OnDestroy",La[La.DoCheck]="DoCheck",La[La.OnChanges]="OnChanges",La[La.AfterContentInit]="AfterContentInit",La[La.AfterContentChecked]="AfterContentChecked",La[La.AfterViewInit]="AfterViewInit",La[La.AfterViewChecked]="AfterViewChecked";var Va=[La.OnInit,La.OnDestroy,La.DoCheck,La.OnChanges,La.AfterContentInit,La.AfterContentChecked,La.AfterViewInit,La.AfterViewChecked],Fa="*";t.Class=h,t.createPlatform=lt,t.assertPlatform=ht,t.destroyPlatform=ft,t.getPlatform=dt,t.PlatformRef=Zi,t.ApplicationRef=Ji,t.enableProdMode=ut,t.isDevMode=ct,t.createPlatformFactory=pt,t.NgProbeToken=Xi,t.APP_ID=pi,t.PACKAGE_ROOT_URL=vi,t.PLATFORM_INITIALIZER=fi,t.PLATFORM_ID=di,t.APP_BOOTSTRAP_LISTENER=yi,t.APP_INITIALIZER=ci,t.ApplicationInitStatus=li,t.DebugElement=Ss,t.DebugNode=Es,t.asNativeElements=wt,t.getDebugNode=St,t.Testability=Hi,t.TestabilityRegistry=qi,t.setTestabilityGetter=at,t.TRANSLATIONS=Ks,t.TRANSLATIONS_FORMAT=Qs,t.LOCALE_ID=Ws,t.MissingTranslationStrategy=$s,t.ApplicationModule=ja,t.wtfCreateScope=ji,t.wtfLeave=Li,t.wtfStartTimeRange=Vi,t.wtfEndTimeRange=Fi,t.Type=$o,t.EventEmitter=Ui,t.ErrorHandler=Go,t.Sanitizer=Zs,t.SecurityContext=Xs,t.ANALYZE_FOR_ENTRY_COMPONENTS=ao,t.Attribute=uo,t.ContentChild=po,t.ContentChildren=lo,t.Query=co,t.ViewChild=fo,t.ViewChildren=ho,t.Component=go,t.Directive=mo,t.HostBinding=Co,t.HostListener=Eo,t.Input=bo,t.Output=wo,t.Pipe=_o,t.CUSTOM_ELEMENTS_SCHEMA=So,t.NO_ERRORS_SCHEMA=xo,t.NgModule=To,t.ViewEncapsulation=Po,t.Version=Oo,t.VERSION=Mo,t.forwardRef=g,t.resolveForwardRef=_,t.Injector=Uo,t.ReflectiveInjector=si,t.ResolvedReflectiveFactory=oi,t.ReflectiveKey=Wo,t.InjectionToken=Jr,t.OpaqueToken=Yr,t.Inject=Ro,t.Optional=ko,t.Injectable=Io,t.Self=No,t.SkipSelf=Do,t.Host=jo,t.NgZone=Bi,t.RenderComponentType=es,t.Renderer=rs,t.Renderer2=as,t.RendererFactory2=is,t.RendererStyleFlags2=ss,t.RootRenderer=os,t.COMPILER_OPTIONS=bi,t.Compiler=_i,t.CompilerFactory=wi,t.ModuleWithComponentFactories=gi,t.ComponentFactory=Ei,t.ComponentRef=Ci,t.ComponentFactoryResolver=Ti,t.ElementRef=us,t.NgModuleFactory=ki,t.NgModuleRef=Ri,t.NgModuleFactoryLoader=cs,t.getModuleFactory=gt,t.QueryList=ps,t.SystemJsNgModuleLoader=vs,t.SystemJsNgModuleLoaderConfig=ds,t.TemplateRef=ms,t.ViewContainerRef=gs,t.EmbeddedViewRef=ws,t.ViewRef=bs,t.ChangeDetectionStrategy=yo,t.ChangeDetectorRef=_s,t.DefaultIterableDiffer=Rs,t.IterableDiffers=Vs,t.KeyValueDiffers=Fs,t.SimpleChange=As,t.WrappedValue=Ts,t.platformCore=Gs,t.ɵALLOW_MULTIPLE_PLATFORMS=$i,t.ɵAPP_ID_RANDOM_PROVIDER=hi,t.ɵValueUnwrapper=Ps,t.ɵdevModeEqual=Pt,t.ɵisListLikeIterable=At,t.ɵChangeDetectorStatus=vo,t.ɵisDefaultChangeDetectionStrategy=m,t.ɵConsole=mi,t.ɵERROR_COMPONENT_TYPE=Bo,t.ɵComponentFactory=Ei, +t.ɵCodegenComponentFactoryResolver=Oi,t.ɵLIFECYCLE_HOOKS_VALUES=Va,t.ɵLifecycleHooks=La,t.ɵViewMetadata=Ao,t.ɵReflector=Jo,t.ɵreflector=ti,t.ɵReflectionCapabilities=Zo,t.ɵReflectorReader=Yo,t.ɵRenderDebugInfo=ns,t.ɵglobal=ro,t.ɵlooseIdentical=u,t.ɵstringify=c,t.ɵmakeDecorator=f,t.ɵisObservable=X,t.ɵisPromise=$,t.ɵNOT_FOUND_CHECK_ONLY_ELEMENT_INJECTOR=xa,t.ɵNgModuleInjector=Ni,t.ɵregisterModuleFactory=mt,t.ɵEMPTY_ARRAY=aa,t.ɵEMPTY_MAP=ua,t.ɵand=Ce,t.ɵccf=qe,t.ɵcrt=Qt,t.ɵdid=Ze,t.ɵeld=Ee,t.ɵelementEventFullName=oe,t.ɵgetComponentViewDefinitionFactory=ze,t.ɵinlineInterpolate=be,t.ɵinterpolate=_e,t.ɵncd=Ne,t.ɵnov=$e,t.ɵpid=Ye,t.ɵprd=Je,t.ɵpad=gn,t.ɵpod=_n,t.ɵppd=mn,t.ɵqud=Sn,t.ɵted=Mn,t.ɵunv=Kt,t.ɵvid=Dn,t.AUTO_STYLE=Fa,t.trigger=qr,t.animate=zr,t.group=Gr,t.sequence=Wr,t.style=Kr,t.state=Qr,t.keyframes=$r,t.transition=Xr,t.ɵba=jr,t.ɵbb=Lr,t.ɵbf=Br,t.ɵbc=Vr,t.ɵbe=Ur,t.ɵbd=Fr,t.ɵbg=Hr,t.ɵz=Dr,t.ɵo=Nr,t.ɵl=Rr,t.ɵm=kr,t.ɵn=Ir,t.ɵf=ts,t.ɵg=Z,t.ɵh=Hs,t.ɵi=qs,t.ɵj=Os,t.ɵk=Ds,t.ɵc=ai,t.ɵd=ei,t.ɵe=B,t.ɵp=Di,t.ɵr=nt,t.ɵq=et,t.ɵu=it,t.ɵs=rt,t.ɵt=ot,t.ɵa=y,t.ɵb=v,t.ɵw=tn,t.ɵx=Ys,Object.defineProperty(t,"__esModule",{value:!0})})}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"rxjs/Observable":17,"rxjs/Subject":20,"rxjs/observable/merge":37,"rxjs/operator/share":53}],9:[function(e,n,r){!function(o,i){"object"==typeof r&&"undefined"!=typeof n?i(r,e("@angular/core"),e("rxjs/observable/forkJoin"),e("rxjs/observable/fromPromise"),e("rxjs/operator/map"),e("@angular/platform-browser")):"function"==typeof t&&t.amd?t(["exports","@angular/core","rxjs/observable/forkJoin","rxjs/observable/fromPromise","rxjs/operator/map","@angular/platform-browser"],i):i((o.ng=o.ng||{},o.ng.forms=o.ng.forms||{}),o.ng.core,o.Rx.Observable,o.Rx.Observable,o.Rx.Observable.prototype,o.ng.platformBrowser)}(this,function(t,e,n,r,o,i){"use strict";function s(t){return null==t||0===t.length}function a(t){return null!=t}function u(t){var n=e.ɵisPromise(t)?r.fromPromise(t):t;if(!e.ɵisObservable(n))throw new Error("Expected validator to return Promise or Observable.");return n}function c(t,e){return e.map(function(e){return e(t)})}function l(t,e){return e.map(function(e){return e(t)})}function p(t){var e=t.reduce(function(t,e){return null!=e?F({},t,e):t},{});return 0===Object.keys(e).length?null:e}function h(){var t=i.ɵgetDOM()?i.ɵgetDOM().getUserAgent():"";return/android (\d+)/.test(t.toLowerCase())}function f(t){return t.validate?function(e){return t.validate(e)}:t}function d(t){return t.validate?function(e){return t.validate(e)}:t}function y(){throw new Error("unimplemented")}function v(t,e){return null==t?""+e:(e&&"object"==typeof e&&(e="Object"),(t+": "+e).slice(0,50))}function m(t){return t.split(":")[0]}function g(t,e){return null==t?""+e:("string"==typeof e&&(e="'"+e+"'"),e&&"object"==typeof e&&(e="Object"),(t+": "+e).slice(0,50))}function _(t){return t.split(":")[0]}function b(t,e){return e.path.concat([t])}function w(t,e){t||x(e,"Cannot find control with"),e.valueAccessor||x(e,"No value accessor for form control with"),t.validator=q.compose([t.validator,e.validator]),t.asyncValidator=q.composeAsync([t.asyncValidator,e.asyncValidator]),e.valueAccessor.writeValue(t.value),e.valueAccessor.registerOnChange(function(n){e.viewToModelUpdate(n),t.markAsDirty(),t.setValue(n,{emitModelToViewChange:!1})}),e.valueAccessor.registerOnTouched(function(){return t.markAsTouched()}),t.registerOnChange(function(t,n){e.valueAccessor.writeValue(t),n&&e.viewToModelUpdate(t)}),e.valueAccessor.setDisabledState&&t.registerOnDisabledChange(function(t){e.valueAccessor.setDisabledState(t)}),e._rawValidators.forEach(function(e){e.registerOnValidatorChange&&e.registerOnValidatorChange(function(){return t.updateValueAndValidity()})}),e._rawAsyncValidators.forEach(function(e){e.registerOnValidatorChange&&e.registerOnValidatorChange(function(){return t.updateValueAndValidity()})})}function C(t,e){e.valueAccessor.registerOnChange(function(){return S(e)}),e.valueAccessor.registerOnTouched(function(){return S(e)}),e._rawValidators.forEach(function(t){t.registerOnValidatorChange&&t.registerOnValidatorChange(null)}),e._rawAsyncValidators.forEach(function(t){t.registerOnValidatorChange&&t.registerOnValidatorChange(null)}),t&&t._clearChangeFns()}function E(t,e){null==t&&x(e,"Cannot find control with"),t.validator=q.compose([t.validator,e.validator]),t.asyncValidator=q.composeAsync([t.asyncValidator,e.asyncValidator])}function S(t){return x(t,"There is no FormControl instance attached to form control element with")}function x(t,e){var n;throw n=t.path.length>1?"path: '"+t.path.join(" -> ")+"'":t.path[0]?"name: '"+t.path+"'":"unspecified name attribute",new Error(e+" "+n)}function T(t){return null!=t?q.compose(t.map(f)):null}function P(t){return null!=t?q.composeAsync(t.map(d)):null}function A(t,n){if(!t.hasOwnProperty("model"))return!1;var r=t.model;return r.isFirstChange()?!0:!e.ɵlooseIdentical(n,r.currentValue)}function O(t){return lt.some(function(e){return t.constructor===e})}function M(t,e){if(!e)return null;var n,r,o;return e.forEach(function(e){e.constructor===$?n=e:O(e)?(r&&x(t,"More than one built-in value accessor matches form control with"),r=e):(o&&x(t,"More than one custom value accessor matches form control with"),o=e)}),o?o:r?r:n?n:(x(t,"No valid value accessor for form control with"),null)}function R(t,e,n){return null==e?null:(e instanceof Array||(e=e.split(n)),e instanceof Array&&0===e.length?null:e.reduce(function(t,e){return t instanceof Ct?t.controls[e]||null:t instanceof Et?t.at(e)||null:null},t))}function k(t){return Array.isArray(t)?T(t):t}function I(t){return Array.isArray(t)?P(t):t}function N(t,e){var n=t.indexOf(e);n>-1&&t.splice(n,1)}function D(t){return!(t instanceof Ut||t instanceof Vt||t instanceof Ht)}var j=void 0||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},L=function(){function t(){}return Object.defineProperty(t.prototype,"control",{get:function(){throw new Error("unimplemented")},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"value",{get:function(){return this.control?this.control.value:null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"valid",{get:function(){return this.control?this.control.valid:null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"invalid",{get:function(){return this.control?this.control.invalid:null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"pending",{get:function(){return this.control?this.control.pending:null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"errors",{get:function(){return this.control?this.control.errors:null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"pristine",{get:function(){return this.control?this.control.pristine:null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"dirty",{get:function(){return this.control?this.control.dirty:null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"touched",{get:function(){return this.control?this.control.touched:null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"untouched",{get:function(){return this.control?this.control.untouched:null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"disabled",{get:function(){return this.control?this.control.disabled:null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"enabled",{get:function(){return this.control?this.control.enabled:null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"statusChanges",{get:function(){return this.control?this.control.statusChanges:null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"valueChanges",{get:function(){return this.control?this.control.valueChanges:null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"path",{get:function(){return null},enumerable:!0,configurable:!0}),t.prototype.reset=function(t){void 0===t&&(t=void 0),this.control&&this.control.reset(t)},t.prototype.hasError=function(t,e){return void 0===e&&(e=null),this.control?this.control.hasError(t,e):!1},t.prototype.getError=function(t,e){return void 0===e&&(e=null),this.control?this.control.getError(t,e):null},t}(),V=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return j(e,t),Object.defineProperty(e.prototype,"formDirective",{get:function(){return null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"path",{get:function(){return null},enumerable:!0,configurable:!0}),e}(L),F=void 0||Object.assign||function(t){for(var e,n=1,r=arguments.length;r>n;n++){e=arguments[n];for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])}return t},U=new e.InjectionToken("NgValidators"),B=new e.InjectionToken("NgAsyncValidators"),H=/^(?=.{1,254}$)(?=.{1,64}@)[-!#$%&'*+\/0-9=?A-Z^_`a-z{|}~]+(\.[-!#$%&'*+\/0-9=?A-Z^_`a-z{|}~]+)*@[A-Za-z0-9]([A-Za-z0-9-]{0,61}[A-Za-z0-9])?(\.[A-Za-z0-9]([A-Za-z0-9-]{0,61}[A-Za-z0-9])?)*$/,q=function(){function t(){}return t.required=function(t){return s(t.value)?{required:!0}:null},t.requiredTrue=function(t){return t.value===!0?null:{required:!0}},t.email=function(t){return H.test(t.value)?null:{email:!0}},t.minLength=function(t){return function(e){if(s(e.value))return null;var n=e.value?e.value.length:0;return t>n?{minlength:{requiredLength:t,actualLength:n}}:null}},t.maxLength=function(t){return function(e){var n=e.value?e.value.length:0;return n>t?{maxlength:{requiredLength:t,actualLength:n}}:null}},t.pattern=function(e){if(!e)return t.nullValidator;var n,r;return"string"==typeof e?(r="^"+e+"$",n=new RegExp(r)):(r=e.toString(),n=e),function(t){if(s(t.value))return null;var e=t.value;return n.test(e)?null:{pattern:{requiredPattern:r,actualValue:e}}}},t.nullValidator=function(){return null},t.compose=function(t){if(!t)return null;var e=t.filter(a);return 0==e.length?null:function(t){return p(c(t,e))}},t.composeAsync=function(t){if(!t)return null;var e=t.filter(a);return 0==e.length?null:function(t){var r=l(t,e).map(u);return o.map.call(n.forkJoin(r),p)}},t}(),z=new e.InjectionToken("NgValueAccessor"),G={provide:z,useExisting:e.forwardRef(function(){return W}),multi:!0},W=function(){function t(t,e){this._renderer=t,this._elementRef=e,this.onChange=function(){},this.onTouched=function(){}}return t.prototype.writeValue=function(t){this._renderer.setElementProperty(this._elementRef.nativeElement,"checked",t)},t.prototype.registerOnChange=function(t){this.onChange=t},t.prototype.registerOnTouched=function(t){this.onTouched=t},t.prototype.setDisabledState=function(t){this._renderer.setElementProperty(this._elementRef.nativeElement,"disabled",t)},t}();W.decorators=[{type:e.Directive,args:[{selector:"input[type=checkbox][formControlName],input[type=checkbox][formControl],input[type=checkbox][ngModel]",host:{"(change)":"onChange($event.target.checked)","(blur)":"onTouched()"},providers:[G]}]}],W.ctorParameters=function(){return[{type:e.Renderer},{type:e.ElementRef}]};var K={provide:z,useExisting:e.forwardRef(function(){return $}),multi:!0},Q=new e.InjectionToken("CompositionEventMode"),$=function(){function t(t,e,n){this._renderer=t,this._elementRef=e,this._compositionMode=n,this.onChange=function(){},this.onTouched=function(){},this._composing=!1,null==this._compositionMode&&(this._compositionMode=!h())}return t.prototype.writeValue=function(t){var e=null==t?"":t;this._renderer.setElementProperty(this._elementRef.nativeElement,"value",e)},t.prototype.registerOnChange=function(t){this.onChange=t},t.prototype.registerOnTouched=function(t){this.onTouched=t},t.prototype.setDisabledState=function(t){this._renderer.setElementProperty(this._elementRef.nativeElement,"disabled",t)},t.prototype._handleInput=function(t){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(t)},t.prototype._compositionStart=function(){this._composing=!0},t.prototype._compositionEnd=function(t){this._composing=!1,this._compositionMode&&this.onChange(t)},t}();$.decorators=[{type:e.Directive,args:[{selector:"input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]",host:{"(input)":"_handleInput($event.target.value)","(blur)":"onTouched()","(compositionstart)":"_compositionStart()","(compositionend)":"_compositionEnd($event.target.value)"},providers:[K]}]}],$.ctorParameters=function(){return[{type:e.Renderer},{type:e.ElementRef},{type:void 0,decorators:[{type:e.Optional},{type:e.Inject,args:[Q]}]}]};var X={provide:z,useExisting:e.forwardRef(function(){return Z}),multi:!0},Z=function(){function t(t,e){this._renderer=t,this._elementRef=e,this.onChange=function(){},this.onTouched=function(){}}return t.prototype.writeValue=function(t){var e=null==t?"":t;this._renderer.setElementProperty(this._elementRef.nativeElement,"value",e)},t.prototype.registerOnChange=function(t){this.onChange=function(e){t(""==e?null:parseFloat(e))}},t.prototype.registerOnTouched=function(t){this.onTouched=t},t.prototype.setDisabledState=function(t){this._renderer.setElementProperty(this._elementRef.nativeElement,"disabled",t)},t}();Z.decorators=[{type:e.Directive,args:[{selector:"input[type=number][formControlName],input[type=number][formControl],input[type=number][ngModel]",host:{"(change)":"onChange($event.target.value)","(input)":"onChange($event.target.value)","(blur)":"onTouched()"},providers:[X]}]}],Z.ctorParameters=function(){return[{type:e.Renderer},{type:e.ElementRef}]};var Y=function(t){function e(){var e=t.apply(this,arguments)||this;return e._parent=null,e.name=null,e.valueAccessor=null,e._rawValidators=[],e._rawAsyncValidators=[],e}return j(e,t),Object.defineProperty(e.prototype,"validator",{get:function(){return y()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"asyncValidator",{get:function(){return y()},enumerable:!0,configurable:!0}),e.prototype.viewToModelUpdate=function(){},e}(L),J={provide:z,useExisting:e.forwardRef(function(){return et}),multi:!0},tt=function(){function t(){this._accessors=[]}return t.prototype.add=function(t,e){this._accessors.push([t,e])},t.prototype.remove=function(t){for(var e=this._accessors.length-1;e>=0;--e)if(this._accessors[e][1]===t)return void this._accessors.splice(e,1)},t.prototype.select=function(t){var e=this;this._accessors.forEach(function(n){e._isSameGroup(n,t)&&n[1]!==t&&n[1].fireUncheck(t.value)})},t.prototype._isSameGroup=function(t,e){return t[0].control?t[0]._parent===e._control._parent&&t[1].name===e.name:!1},t}();tt.decorators=[{type:e.Injectable}],tt.ctorParameters=function(){return[]};var et=function(){function t(t,e,n,r){this._renderer=t,this._elementRef=e,this._registry=n,this._injector=r,this.onChange=function(){},this.onTouched=function(){}}return t.prototype.ngOnInit=function(){this._control=this._injector.get(Y),this._checkName(),this._registry.add(this._control,this)},t.prototype.ngOnDestroy=function(){this._registry.remove(this)},t.prototype.writeValue=function(t){this._state=t===this.value,this._renderer.setElementProperty(this._elementRef.nativeElement,"checked",this._state)},t.prototype.registerOnChange=function(t){var e=this;this._fn=t,this.onChange=function(){t(e.value),e._registry.select(e)}},t.prototype.fireUncheck=function(t){this.writeValue(t)},t.prototype.registerOnTouched=function(t){this.onTouched=t},t.prototype.setDisabledState=function(t){this._renderer.setElementProperty(this._elementRef.nativeElement,"disabled",t)},t.prototype._checkName=function(){this.name&&this.formControlName&&this.name!==this.formControlName&&this._throwNameError(),!this.name&&this.formControlName&&(this.name=this.formControlName)},t.prototype._throwNameError=function(){throw new Error('\n If you define both a name and a formControlName attribute on your radio button, their values\n must match. Ex: <input type="radio" formControlName="food" name="food">\n ')},t}();et.decorators=[{type:e.Directive,args:[{selector:"input[type=radio][formControlName],input[type=radio][formControl],input[type=radio][ngModel]",host:{"(change)":"onChange()","(blur)":"onTouched()"},providers:[J]}]}],et.ctorParameters=function(){return[{type:e.Renderer},{type:e.ElementRef},{type:tt},{type:e.Injector}]},et.propDecorators={name:[{type:e.Input}],formControlName:[{type:e.Input}],value:[{type:e.Input}]};var nt={provide:z,useExisting:e.forwardRef(function(){return rt}),multi:!0},rt=function(){function t(t,e){this._renderer=t,this._elementRef=e,this.onChange=function(){},this.onTouched=function(){}}return t.prototype.writeValue=function(t){this._renderer.setElementProperty(this._elementRef.nativeElement,"value",parseFloat(t))},t.prototype.registerOnChange=function(t){this.onChange=function(e){t(""==e?null:parseFloat(e))}},t.prototype.registerOnTouched=function(t){this.onTouched=t},t.prototype.setDisabledState=function(t){this._renderer.setElementProperty(this._elementRef.nativeElement,"disabled",t)},t}();rt.decorators=[{type:e.Directive,args:[{selector:"input[type=range][formControlName],input[type=range][formControl],input[type=range][ngModel]",host:{"(change)":"onChange($event.target.value)","(input)":"onChange($event.target.value)","(blur)":"onTouched()"},providers:[nt]}]}],rt.ctorParameters=function(){return[{type:e.Renderer},{type:e.ElementRef}]};var ot={provide:z,useExisting:e.forwardRef(function(){return it}),multi:!0},it=function(){function t(t,n){this._renderer=t,this._elementRef=n,this._optionMap=new Map,this._idCounter=0,this.onChange=function(){},this.onTouched=function(){},this._compareWith=e.ɵlooseIdentical}return Object.defineProperty(t.prototype,"compareWith",{set:function(t){if("function"!=typeof t)throw new Error("compareWith must be a function, but received "+JSON.stringify(t));this._compareWith=t},enumerable:!0,configurable:!0}),t.prototype.writeValue=function(t){this.value=t;var e=this._getOptionId(t);null==e&&this._renderer.setElementProperty(this._elementRef.nativeElement,"selectedIndex",-1);var n=v(e,t);this._renderer.setElementProperty(this._elementRef.nativeElement,"value",n)},t.prototype.registerOnChange=function(t){var e=this;this.onChange=function(n){e.value=n,t(e._getOptionValue(n))}},t.prototype.registerOnTouched=function(t){this.onTouched=t},t.prototype.setDisabledState=function(t){this._renderer.setElementProperty(this._elementRef.nativeElement,"disabled",t)},t.prototype._registerOption=function(){return(this._idCounter++).toString()},t.prototype._getOptionId=function(t){for(var e=0,n=Array.from(this._optionMap.keys());e<n.length;e++){var r=n[e];if(this._compareWith(this._optionMap.get(r),t))return r}return null},t.prototype._getOptionValue=function(t){var e=m(t);return this._optionMap.has(e)?this._optionMap.get(e):t},t}();it.decorators=[{type:e.Directive,args:[{selector:"select:not([multiple])[formControlName],select:not([multiple])[formControl],select:not([multiple])[ngModel]",host:{"(change)":"onChange($event.target.value)","(blur)":"onTouched()"},providers:[ot]}]}],it.ctorParameters=function(){return[{type:e.Renderer},{type:e.ElementRef}]},it.propDecorators={compareWith:[{type:e.Input}]};var st=function(){function t(t,e,n){this._element=t,this._renderer=e,this._select=n,this._select&&(this.id=this._select._registerOption())}return Object.defineProperty(t.prototype,"ngValue",{set:function(t){null!=this._select&&(this._select._optionMap.set(this.id,t),this._setElementValue(v(this.id,t)),this._select.writeValue(this._select.value))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"value",{set:function(t){this._setElementValue(t),this._select&&this._select.writeValue(this._select.value)},enumerable:!0,configurable:!0}),t.prototype._setElementValue=function(t){this._renderer.setElementProperty(this._element.nativeElement,"value",t)},t.prototype.ngOnDestroy=function(){this._select&&(this._select._optionMap["delete"](this.id),this._select.writeValue(this._select.value))},t}();st.decorators=[{type:e.Directive,args:[{selector:"option"}]}],st.ctorParameters=function(){return[{type:e.ElementRef},{type:e.Renderer},{type:it,decorators:[{type:e.Optional},{type:e.Host}]}]},st.propDecorators={ngValue:[{type:e.Input,args:["ngValue"]}],value:[{type:e.Input,args:["value"]}]};var at={provide:z,useExisting:e.forwardRef(function(){return ut}),multi:!0},ut=function(){function t(t,n){this._renderer=t,this._elementRef=n,this._optionMap=new Map,this._idCounter=0,this.onChange=function(){},this.onTouched=function(){},this._compareWith=e.ɵlooseIdentical}return Object.defineProperty(t.prototype,"compareWith",{set:function(t){if("function"!=typeof t)throw new Error("compareWith must be a function, but received "+JSON.stringify(t));this._compareWith=t},enumerable:!0,configurable:!0}),t.prototype.writeValue=function(t){var e=this;this.value=t;var n;if(Array.isArray(t)){var r=t.map(function(t){return e._getOptionId(t)});n=function(t,e){t._setSelected(r.indexOf(e.toString())>-1)}}else n=function(t){t._setSelected(!1)};this._optionMap.forEach(n)},t.prototype.registerOnChange=function(t){var e=this;this.onChange=function(n){var r=[];if(n.hasOwnProperty("selectedOptions"))for(var o=n.selectedOptions,i=0;i<o.length;i++){var s=o.item(i),a=e._getOptionValue(s.value);r.push(a)}else for(var o=n.options,i=0;i<o.length;i++){var s=o.item(i);if(s.selected){var a=e._getOptionValue(s.value);r.push(a)}}e.value=r,t(r)}},t.prototype.registerOnTouched=function(t){this.onTouched=t},t.prototype.setDisabledState=function(t){this._renderer.setElementProperty(this._elementRef.nativeElement,"disabled",t)},t.prototype._registerOption=function(t){var e=(this._idCounter++).toString();return this._optionMap.set(e,t),e},t.prototype._getOptionId=function(t){for(var e=0,n=Array.from(this._optionMap.keys());e<n.length;e++){var r=n[e];if(this._compareWith(this._optionMap.get(r)._value,t))return r}return null},t.prototype._getOptionValue=function(t){var e=_(t);return this._optionMap.has(e)?this._optionMap.get(e)._value:t},t}();ut.decorators=[{type:e.Directive,args:[{selector:"select[multiple][formControlName],select[multiple][formControl],select[multiple][ngModel]",host:{"(change)":"onChange($event.target)","(blur)":"onTouched()"},providers:[at]}]}],ut.ctorParameters=function(){return[{type:e.Renderer},{type:e.ElementRef}]},ut.propDecorators={compareWith:[{type:e.Input}]};var ct=function(){function t(t,e,n){this._element=t,this._renderer=e,this._select=n,this._select&&(this.id=this._select._registerOption(this))}return Object.defineProperty(t.prototype,"ngValue",{set:function(t){null!=this._select&&(this._value=t,this._setElementValue(g(this.id,t)),this._select.writeValue(this._select.value))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"value",{set:function(t){this._select?(this._value=t,this._setElementValue(g(this.id,t)),this._select.writeValue(this._select.value)):this._setElementValue(t)},enumerable:!0,configurable:!0}),t.prototype._setElementValue=function(t){this._renderer.setElementProperty(this._element.nativeElement,"value",t)},t.prototype._setSelected=function(t){this._renderer.setElementProperty(this._element.nativeElement,"selected",t)},t.prototype.ngOnDestroy=function(){this._select&&(this._select._optionMap["delete"](this.id),this._select.writeValue(this._select.value))},t}();ct.decorators=[{type:e.Directive,args:[{selector:"option"}]}],ct.ctorParameters=function(){return[{type:e.ElementRef},{type:e.Renderer},{type:ut,decorators:[{type:e.Optional},{type:e.Host}]}]},ct.propDecorators={ngValue:[{type:e.Input,args:["ngValue"]}],value:[{type:e.Input,args:["value"]}]};var lt=[W,rt,Z,it,ut,et],pt=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return j(e,t),e.prototype.ngOnInit=function(){this._checkParentType(),this.formDirective.addFormGroup(this)},e.prototype.ngOnDestroy=function(){this.formDirective&&this.formDirective.removeFormGroup(this)},Object.defineProperty(e.prototype,"control",{get:function(){return this.formDirective.getFormGroup(this)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"path",{get:function(){return b(this.name,this._parent)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"formDirective",{get:function(){return this._parent?this._parent.formDirective:null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"validator",{get:function(){return T(this._validators)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"asyncValidator",{get:function(){return P(this._asyncValidators)},enumerable:!0,configurable:!0}),e.prototype._checkParentType=function(){},e}(V),ht=function(){function t(t){this._cd=t}return Object.defineProperty(t.prototype,"ngClassUntouched",{get:function(){return this._cd.control?this._cd.control.untouched:!1},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"ngClassTouched",{get:function(){return this._cd.control?this._cd.control.touched:!1},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"ngClassPristine",{get:function(){return this._cd.control?this._cd.control.pristine:!1},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"ngClassDirty",{get:function(){return this._cd.control?this._cd.control.dirty:!1},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"ngClassValid",{get:function(){return this._cd.control?this._cd.control.valid:!1},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"ngClassInvalid",{get:function(){return this._cd.control?this._cd.control.invalid:!1},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"ngClassPending",{get:function(){return this._cd.control?this._cd.control.pending:!1},enumerable:!0,configurable:!0}),t}(),ft={"[class.ng-untouched]":"ngClassUntouched","[class.ng-touched]":"ngClassTouched","[class.ng-pristine]":"ngClassPristine","[class.ng-dirty]":"ngClassDirty","[class.ng-valid]":"ngClassValid","[class.ng-invalid]":"ngClassInvalid","[class.ng-pending]":"ngClassPending"},dt=function(t){function e(e){return t.call(this,e)||this}return j(e,t),e}(ht);dt.decorators=[{type:e.Directive,args:[{selector:"[formControlName],[ngModel],[formControl]",host:ft}]}],dt.ctorParameters=function(){return[{type:Y,decorators:[{type:e.Self}]}]};var yt=function(t){function e(e){return t.call(this,e)||this}return j(e,t),e}(ht);yt.decorators=[{type:e.Directive,args:[{selector:"[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]",host:ft}]}],yt.ctorParameters=function(){return[{type:V,decorators:[{type:e.Self}]}]};var vt="VALID",mt="INVALID",gt="PENDING",_t="DISABLED",bt=function(){function t(t,e){this.validator=t,this.asyncValidator=e,this._onCollectionChange=function(){},this._pristine=!0,this._touched=!1,this._onDisabledChange=[]}return Object.defineProperty(t.prototype,"value",{get:function(){return this._value},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"parent",{get:function(){return this._parent},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"status",{get:function(){return this._status},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"valid",{get:function(){return this._status===vt},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"invalid",{get:function(){return this._status===mt},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"pending",{get:function(){return this._status==gt},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"disabled",{get:function(){return this._status===_t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"enabled",{get:function(){return this._status!==_t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"errors",{get:function(){return this._errors},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"pristine",{get:function(){return this._pristine},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"dirty",{get:function(){return!this.pristine},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"touched",{get:function(){return this._touched},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"untouched",{get:function(){return!this._touched},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"valueChanges",{get:function(){return this._valueChanges},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"statusChanges",{get:function(){return this._statusChanges},enumerable:!0,configurable:!0}),t.prototype.setValidators=function(t){this.validator=k(t)},t.prototype.setAsyncValidators=function(t){this.asyncValidator=I(t)},t.prototype.clearValidators=function(){this.validator=null},t.prototype.clearAsyncValidators=function(){this.asyncValidator=null},t.prototype.markAsTouched=function(t){var e=(void 0===t?{}:t).onlySelf;this._touched=!0,this._parent&&!e&&this._parent.markAsTouched({onlySelf:e})},t.prototype.markAsUntouched=function(t){var e=(void 0===t?{}:t).onlySelf;this._touched=!1,this._forEachChild(function(t){t.markAsUntouched({onlySelf:!0})}),this._parent&&!e&&this._parent._updateTouched({onlySelf:e})},t.prototype.markAsDirty=function(t){var e=(void 0===t?{}:t).onlySelf;this._pristine=!1,this._parent&&!e&&this._parent.markAsDirty({onlySelf:e})},t.prototype.markAsPristine=function(t){var e=(void 0===t?{}:t).onlySelf;this._pristine=!0,this._forEachChild(function(t){t.markAsPristine({onlySelf:!0})}),this._parent&&!e&&this._parent._updatePristine({onlySelf:e})},t.prototype.markAsPending=function(t){var e=(void 0===t?{}:t).onlySelf;this._status=gt,this._parent&&!e&&this._parent.markAsPending({onlySelf:e})},t.prototype.disable=function(t){var e=void 0===t?{}:t,n=e.onlySelf,r=e.emitEvent;this._status=_t,this._errors=null,this._forEachChild(function(t){t.disable({onlySelf:!0})}),this._updateValue(),r!==!1&&(this._valueChanges.emit(this._value),this._statusChanges.emit(this._status)),this._updateAncestors(n),this._onDisabledChange.forEach(function(t){return t(!0)})},t.prototype.enable=function(t){var e=void 0===t?{}:t,n=e.onlySelf,r=e.emitEvent;this._status=vt,this._forEachChild(function(t){t.enable({onlySelf:!0})}),this.updateValueAndValidity({onlySelf:!0,emitEvent:r}),this._updateAncestors(n),this._onDisabledChange.forEach(function(t){return t(!1)})},t.prototype._updateAncestors=function(t){this._parent&&!t&&(this._parent.updateValueAndValidity(),this._parent._updatePristine(),this._parent._updateTouched())},t.prototype.setParent=function(t){this._parent=t},t.prototype.setValue=function(){},t.prototype.patchValue=function(){},t.prototype.reset=function(){},t.prototype.updateValueAndValidity=function(t){var e=void 0===t?{}:t,n=e.onlySelf,r=e.emitEvent;this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this._errors=this._runValidator(),this._status=this._calculateStatus(),(this._status===vt||this._status===gt)&&this._runAsyncValidator(r)),r!==!1&&(this._valueChanges.emit(this._value),this._statusChanges.emit(this._status)),this._parent&&!n&&this._parent.updateValueAndValidity({onlySelf:n,emitEvent:r})},t.prototype._updateTreeValidity=function(t){var e=(void 0===t?{emitEvent:!0}:t).emitEvent;this._forEachChild(function(t){return t._updateTreeValidity({emitEvent:e})}),this.updateValueAndValidity({onlySelf:!0,emitEvent:e})},t.prototype._setInitialStatus=function(){this._status=this._allControlsDisabled()?_t:vt},t.prototype._runValidator=function(){return this.validator?this.validator(this):null},t.prototype._runAsyncValidator=function(t){var e=this;if(this.asyncValidator){this._status=gt;var n=u(this.asyncValidator(this));this._asyncValidationSubscription=n.subscribe(function(n){return e.setErrors(n,{emitEvent:t})})}},t.prototype._cancelExistingSubscription=function(){ +this._asyncValidationSubscription&&this._asyncValidationSubscription.unsubscribe()},t.prototype.setErrors=function(t,e){var n=(void 0===e?{}:e).emitEvent;this._errors=t,this._updateControlsErrors(n!==!1)},t.prototype.get=function(t){return R(this,t,".")},t.prototype.getError=function(t,e){void 0===e&&(e=null);var n=e?this.get(e):this;return n&&n._errors?n._errors[t]:null},t.prototype.hasError=function(t,e){return void 0===e&&(e=null),!!this.getError(t,e)},Object.defineProperty(t.prototype,"root",{get:function(){for(var t=this;t._parent;)t=t._parent;return t},enumerable:!0,configurable:!0}),t.prototype._updateControlsErrors=function(t){this._status=this._calculateStatus(),t&&this._statusChanges.emit(this._status),this._parent&&this._parent._updateControlsErrors(t)},t.prototype._initObservables=function(){this._valueChanges=new e.EventEmitter,this._statusChanges=new e.EventEmitter},t.prototype._calculateStatus=function(){return this._allControlsDisabled()?_t:this._errors?mt:this._anyControlsHaveStatus(gt)?gt:this._anyControlsHaveStatus(mt)?mt:vt},t.prototype._updateValue=function(){},t.prototype._forEachChild=function(){},t.prototype._anyControls=function(){},t.prototype._allControlsDisabled=function(){},t.prototype._anyControlsHaveStatus=function(t){return this._anyControls(function(e){return e.status===t})},t.prototype._anyControlsDirty=function(){return this._anyControls(function(t){return t.dirty})},t.prototype._anyControlsTouched=function(){return this._anyControls(function(t){return t.touched})},t.prototype._updatePristine=function(t){var e=(void 0===t?{}:t).onlySelf;this._pristine=!this._anyControlsDirty(),this._parent&&!e&&this._parent._updatePristine({onlySelf:e})},t.prototype._updateTouched=function(t){var e=(void 0===t?{}:t).onlySelf;this._touched=this._anyControlsTouched(),this._parent&&!e&&this._parent._updateTouched({onlySelf:e})},t.prototype._isBoxedValue=function(t){return"object"==typeof t&&null!==t&&2===Object.keys(t).length&&"value"in t&&"disabled"in t},t.prototype._registerOnCollectionChange=function(t){this._onCollectionChange=t},t}(),wt=function(t){function e(e,n,r){void 0===e&&(e=null),void 0===n&&(n=null),void 0===r&&(r=null);var o=t.call(this,k(n),I(r))||this;return o._onChange=[],o._applyFormState(e),o.updateValueAndValidity({onlySelf:!0,emitEvent:!1}),o._initObservables(),o}return j(e,t),e.prototype.setValue=function(t,e){var n=this,r=void 0===e?{}:e,o=r.onlySelf,i=r.emitEvent,s=r.emitModelToViewChange,a=r.emitViewToModelChange;this._value=t,this._onChange.length&&s!==!1&&this._onChange.forEach(function(t){return t(n._value,a!==!1)}),this.updateValueAndValidity({onlySelf:o,emitEvent:i})},e.prototype.patchValue=function(t,e){void 0===e&&(e={}),this.setValue(t,e)},e.prototype.reset=function(t,e){void 0===t&&(t=null);var n=void 0===e?{}:e,r=n.onlySelf,o=n.emitEvent;this._applyFormState(t),this.markAsPristine({onlySelf:r}),this.markAsUntouched({onlySelf:r}),this.setValue(this._value,{onlySelf:r,emitEvent:o})},e.prototype._updateValue=function(){},e.prototype._anyControls=function(){return!1},e.prototype._allControlsDisabled=function(){return this.disabled},e.prototype.registerOnChange=function(t){this._onChange.push(t)},e.prototype._clearChangeFns=function(){this._onChange=[],this._onDisabledChange=[],this._onCollectionChange=function(){}},e.prototype.registerOnDisabledChange=function(t){this._onDisabledChange.push(t)},e.prototype._forEachChild=function(){},e.prototype._applyFormState=function(t){this._isBoxedValue(t)?(this._value=t.value,t.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this._value=t},e}(bt),Ct=function(t){function e(e,n,r){void 0===n&&(n=null),void 0===r&&(r=null);var o=t.call(this,n,r)||this;return o.controls=e,o._initObservables(),o._setUpControls(),o.updateValueAndValidity({onlySelf:!0,emitEvent:!1}),o}return j(e,t),e.prototype.registerControl=function(t,e){return this.controls[t]?this.controls[t]:(this.controls[t]=e,e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange),e)},e.prototype.addControl=function(t,e){this.registerControl(t,e),this.updateValueAndValidity(),this._onCollectionChange()},e.prototype.removeControl=function(t){this.controls[t]&&this.controls[t]._registerOnCollectionChange(function(){}),delete this.controls[t],this.updateValueAndValidity(),this._onCollectionChange()},e.prototype.setControl=function(t,e){this.controls[t]&&this.controls[t]._registerOnCollectionChange(function(){}),delete this.controls[t],e&&this.registerControl(t,e),this.updateValueAndValidity(),this._onCollectionChange()},e.prototype.contains=function(t){return this.controls.hasOwnProperty(t)&&this.controls[t].enabled},e.prototype.setValue=function(t,e){var n=this,r=void 0===e?{}:e,o=r.onlySelf,i=r.emitEvent;this._checkAllValuesPresent(t),Object.keys(t).forEach(function(e){n._throwIfControlMissing(e),n.controls[e].setValue(t[e],{onlySelf:!0,emitEvent:i})}),this.updateValueAndValidity({onlySelf:o,emitEvent:i})},e.prototype.patchValue=function(t,e){var n=this,r=void 0===e?{}:e,o=r.onlySelf,i=r.emitEvent;Object.keys(t).forEach(function(e){n.controls[e]&&n.controls[e].patchValue(t[e],{onlySelf:!0,emitEvent:i})}),this.updateValueAndValidity({onlySelf:o,emitEvent:i})},e.prototype.reset=function(t,e){void 0===t&&(t={});var n=void 0===e?{}:e,r=n.onlySelf,o=n.emitEvent;this._forEachChild(function(e,n){e.reset(t[n],{onlySelf:!0,emitEvent:o})}),this.updateValueAndValidity({onlySelf:r,emitEvent:o}),this._updatePristine({onlySelf:r}),this._updateTouched({onlySelf:r})},e.prototype.getRawValue=function(){return this._reduceChildren({},function(t,e,n){return t[n]=e instanceof wt?e.value:e.getRawValue(),t})},e.prototype._throwIfControlMissing=function(t){if(!Object.keys(this.controls).length)throw new Error("\n There are no form controls registered with this group yet. If you're using ngModel,\n you may want to check next tick (e.g. use setTimeout).\n ");if(!this.controls[t])throw new Error("Cannot find form control with name: "+t+".")},e.prototype._forEachChild=function(t){var e=this;Object.keys(this.controls).forEach(function(n){return t(e.controls[n],n)})},e.prototype._setUpControls=function(){var t=this;this._forEachChild(function(e){e.setParent(t),e._registerOnCollectionChange(t._onCollectionChange)})},e.prototype._updateValue=function(){this._value=this._reduceValue()},e.prototype._anyControls=function(t){var e=this,n=!1;return this._forEachChild(function(r,o){n=n||e.contains(o)&&t(r)}),n},e.prototype._reduceValue=function(){var t=this;return this._reduceChildren({},function(e,n,r){return(n.enabled||t.disabled)&&(e[r]=n.value),e})},e.prototype._reduceChildren=function(t,e){var n=t;return this._forEachChild(function(t,r){n=e(n,t,r)}),n},e.prototype._allControlsDisabled=function(){for(var t=0,e=Object.keys(this.controls);t<e.length;t++){var n=e[t];if(this.controls[n].enabled)return!1}return Object.keys(this.controls).length>0||this.disabled},e.prototype._checkAllValuesPresent=function(t){this._forEachChild(function(e,n){if(void 0===t[n])throw new Error("Must supply a value for form control with name: '"+n+"'.")})},e}(bt),Et=function(t){function e(e,n,r){void 0===n&&(n=null),void 0===r&&(r=null);var o=t.call(this,n,r)||this;return o.controls=e,o._initObservables(),o._setUpControls(),o.updateValueAndValidity({onlySelf:!0,emitEvent:!1}),o}return j(e,t),e.prototype.at=function(t){return this.controls[t]},e.prototype.push=function(t){this.controls.push(t),this._registerControl(t),this.updateValueAndValidity(),this._onCollectionChange()},e.prototype.insert=function(t,e){this.controls.splice(t,0,e),this._registerControl(e),this.updateValueAndValidity(),this._onCollectionChange()},e.prototype.removeAt=function(t){this.controls[t]&&this.controls[t]._registerOnCollectionChange(function(){}),this.controls.splice(t,1),this.updateValueAndValidity(),this._onCollectionChange()},e.prototype.setControl=function(t,e){this.controls[t]&&this.controls[t]._registerOnCollectionChange(function(){}),this.controls.splice(t,1),e&&(this.controls.splice(t,0,e),this._registerControl(e)),this.updateValueAndValidity(),this._onCollectionChange()},Object.defineProperty(e.prototype,"length",{get:function(){return this.controls.length},enumerable:!0,configurable:!0}),e.prototype.setValue=function(t,e){var n=this,r=void 0===e?{}:e,o=r.onlySelf,i=r.emitEvent;this._checkAllValuesPresent(t),t.forEach(function(t,e){n._throwIfControlMissing(e),n.at(e).setValue(t,{onlySelf:!0,emitEvent:i})}),this.updateValueAndValidity({onlySelf:o,emitEvent:i})},e.prototype.patchValue=function(t,e){var n=this,r=void 0===e?{}:e,o=r.onlySelf,i=r.emitEvent;t.forEach(function(t,e){n.at(e)&&n.at(e).patchValue(t,{onlySelf:!0,emitEvent:i})}),this.updateValueAndValidity({onlySelf:o,emitEvent:i})},e.prototype.reset=function(t,e){void 0===t&&(t=[]);var n=void 0===e?{}:e,r=n.onlySelf,o=n.emitEvent;this._forEachChild(function(e,n){e.reset(t[n],{onlySelf:!0,emitEvent:o})}),this.updateValueAndValidity({onlySelf:r,emitEvent:o}),this._updatePristine({onlySelf:r}),this._updateTouched({onlySelf:r})},e.prototype.getRawValue=function(){return this.controls.map(function(t){return t instanceof wt?t.value:t.getRawValue()})},e.prototype._throwIfControlMissing=function(t){if(!this.controls.length)throw new Error("\n There are no form controls registered with this array yet. If you're using ngModel,\n you may want to check next tick (e.g. use setTimeout).\n ");if(!this.at(t))throw new Error("Cannot find form control at index "+t)},e.prototype._forEachChild=function(t){this.controls.forEach(function(e,n){t(e,n)})},e.prototype._updateValue=function(){var t=this;this._value=this.controls.filter(function(e){return e.enabled||t.disabled}).map(function(t){return t.value})},e.prototype._anyControls=function(t){return this.controls.some(function(e){return e.enabled&&t(e)})},e.prototype._setUpControls=function(){var t=this;this._forEachChild(function(e){return t._registerControl(e)})},e.prototype._checkAllValuesPresent=function(t){this._forEachChild(function(e,n){if(void 0===t[n])throw new Error("Must supply a value for form control at index: "+n+".")})},e.prototype._allControlsDisabled=function(){for(var t=0,e=this.controls;t<e.length;t++){var n=e[t];if(n.enabled)return!1}return this.controls.length>0||this.disabled},e.prototype._registerControl=function(t){t.setParent(this),t._registerOnCollectionChange(this._onCollectionChange)},e}(bt),St={provide:V,useExisting:e.forwardRef(function(){return Tt})},xt=Promise.resolve(null),Tt=function(t){function n(n,r){var o=t.call(this)||this;return o._submitted=!1,o.ngSubmit=new e.EventEmitter,o.form=new Ct({},T(n),P(r)),o}return j(n,t),Object.defineProperty(n.prototype,"submitted",{get:function(){return this._submitted},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"formDirective",{get:function(){return this},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"control",{get:function(){return this.form},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"path",{get:function(){return[]},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"controls",{get:function(){return this.form.controls},enumerable:!0,configurable:!0}),n.prototype.addControl=function(t){var e=this;xt.then(function(){var n=e._findContainer(t.path);t._control=n.registerControl(t.name,t.control),w(t.control,t),t.control.updateValueAndValidity({emitEvent:!1})})},n.prototype.getControl=function(t){return this.form.get(t.path)},n.prototype.removeControl=function(t){var e=this;xt.then(function(){var n=e._findContainer(t.path);n&&n.removeControl(t.name)})},n.prototype.addFormGroup=function(t){var e=this;xt.then(function(){var n=e._findContainer(t.path),r=new Ct({});E(r,t),n.registerControl(t.name,r),r.updateValueAndValidity({emitEvent:!1})})},n.prototype.removeFormGroup=function(t){var e=this;xt.then(function(){var n=e._findContainer(t.path);n&&n.removeControl(t.name)})},n.prototype.getFormGroup=function(t){return this.form.get(t.path)},n.prototype.updateModel=function(t,e){var n=this;xt.then(function(){var r=n.form.get(t.path);r.setValue(e)})},n.prototype.setValue=function(t){this.control.setValue(t)},n.prototype.onSubmit=function(t){return this._submitted=!0,this.ngSubmit.emit(t),!1},n.prototype.onReset=function(){this.resetForm()},n.prototype.resetForm=function(t){void 0===t&&(t=void 0),this.form.reset(t),this._submitted=!1},n.prototype._findContainer=function(t){return t.pop(),t.length?this.form.get(t):this.form},n}(V);Tt.decorators=[{type:e.Directive,args:[{selector:"form:not([ngNoForm]):not([formGroup]),ngForm,[ngForm]",providers:[St],host:{"(submit)":"onSubmit($event)","(reset)":"onReset()"},outputs:["ngSubmit"],exportAs:"ngForm"}]}],Tt.ctorParameters=function(){return[{type:Array,decorators:[{type:e.Optional},{type:e.Self},{type:e.Inject,args:[U]}]},{type:Array,decorators:[{type:e.Optional},{type:e.Self},{type:e.Inject,args:[B]}]}]};var Pt={formControlName:'\n <div [formGroup]="myGroup">\n <input formControlName="firstName">\n </div>\n\n In your class:\n\n this.myGroup = new FormGroup({\n firstName: new FormControl()\n });',formGroupName:'\n <div [formGroup]="myGroup">\n <div formGroupName="person">\n <input formControlName="firstName">\n </div>\n </div>\n\n In your class:\n\n this.myGroup = new FormGroup({\n person: new FormGroup({ firstName: new FormControl() })\n });',formArrayName:'\n <div [formGroup]="myGroup">\n <div formArrayName="cities">\n <div *ngFor="let city of cityArray.controls; index as i">\n <input [formControlName]="i">\n </div>\n </div>\n </div>\n\n In your class:\n\n this.cityArray = new FormArray([new FormControl(\'SF\')]);\n this.myGroup = new FormGroup({\n cities: this.cityArray\n });',ngModelGroup:'\n <form>\n <div ngModelGroup="person">\n <input [(ngModel)]="person.name" name="firstName">\n </div>\n </form>',ngModelWithFormGroup:'\n <div [formGroup]="myGroup">\n <input formControlName="firstName">\n <input [(ngModel)]="showMoreControls" [ngModelOptions]="{standalone: true}">\n </div>\n '},At=function(){function t(){}return t.modelParentException=function(){throw new Error('\n ngModel cannot be used to register form controls with a parent formGroup directive. Try using\n formGroup\'s partner directive "formControlName" instead. Example:\n\n '+Pt.formControlName+"\n\n Or, if you'd like to avoid registering this form control, indicate that it's standalone in ngModelOptions:\n\n Example:\n\n "+Pt.ngModelWithFormGroup)},t.formGroupNameException=function(){throw new Error("\n ngModel cannot be used to register form controls with a parent formGroupName or formArrayName directive.\n\n Option 1: Use formControlName instead of ngModel (reactive strategy):\n\n "+Pt.formGroupName+"\n\n Option 2: Update ngModel's parent be ngModelGroup (template-driven strategy):\n\n "+Pt.ngModelGroup)},t.missingNameException=function(){throw new Error('If ngModel is used within a form tag, either the name attribute must be set or the form\n control must be defined as \'standalone\' in ngModelOptions.\n\n Example 1: <input [(ngModel)]="person.firstName" name="first">\n Example 2: <input [(ngModel)]="person.firstName" [ngModelOptions]="{standalone: true}">')},t.modelGroupParentException=function(){throw new Error("\n ngModelGroup cannot be used with a parent formGroup directive.\n\n Option 1: Use formGroupName instead of ngModelGroup (reactive strategy):\n\n "+Pt.formGroupName+"\n\n Option 2: Use a regular form tag instead of the formGroup directive (template-driven strategy):\n\n "+Pt.ngModelGroup)},t}(),Ot={provide:V,useExisting:e.forwardRef(function(){return Mt})},Mt=function(t){function e(e,n,r){var o=t.call(this)||this;return o._parent=e,o._validators=n,o._asyncValidators=r,o}return j(e,t),e.prototype._checkParentType=function(){this._parent instanceof e||this._parent instanceof Tt||At.modelGroupParentException()},e}(pt);Mt.decorators=[{type:e.Directive,args:[{selector:"[ngModelGroup]",providers:[Ot],exportAs:"ngModelGroup"}]}],Mt.ctorParameters=function(){return[{type:V,decorators:[{type:e.Host},{type:e.SkipSelf}]},{type:Array,decorators:[{type:e.Optional},{type:e.Self},{type:e.Inject,args:[U]}]},{type:Array,decorators:[{type:e.Optional},{type:e.Self},{type:e.Inject,args:[B]}]}]},Mt.propDecorators={name:[{type:e.Input,args:["ngModelGroup"]}]};var Rt={provide:Y,useExisting:e.forwardRef(function(){return It})},kt=Promise.resolve(null),It=function(t){function n(n,r,o,i){var s=t.call(this)||this;return s._control=new wt,s._registered=!1,s.update=new e.EventEmitter,s._parent=n,s._rawValidators=r||[],s._rawAsyncValidators=o||[],s.valueAccessor=M(s,i),s}return j(n,t),n.prototype.ngOnChanges=function(t){this._checkForErrors(),this._registered||this._setUpControl(),"isDisabled"in t&&this._updateDisabled(t),A(t,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)},n.prototype.ngOnDestroy=function(){this.formDirective&&this.formDirective.removeControl(this)},Object.defineProperty(n.prototype,"control",{get:function(){return this._control},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"path",{get:function(){return this._parent?b(this.name,this._parent):[this.name]},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"formDirective",{get:function(){return this._parent?this._parent.formDirective:null},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"validator",{get:function(){return T(this._rawValidators)},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"asyncValidator",{get:function(){return P(this._rawAsyncValidators)},enumerable:!0,configurable:!0}),n.prototype.viewToModelUpdate=function(t){this.viewModel=t,this.update.emit(t)},n.prototype._setUpControl=function(){this._isStandalone()?this._setUpStandalone():this.formDirective.addControl(this),this._registered=!0},n.prototype._isStandalone=function(){return!this._parent||this.options&&this.options.standalone},n.prototype._setUpStandalone=function(){w(this._control,this),this._control.updateValueAndValidity({emitEvent:!1})},n.prototype._checkForErrors=function(){this._isStandalone()||this._checkParentType(),this._checkName()},n.prototype._checkParentType=function(){!(this._parent instanceof Mt)&&this._parent instanceof pt?At.formGroupNameException():this._parent instanceof Mt||this._parent instanceof Tt||At.modelParentException()},n.prototype._checkName=function(){this.options&&this.options.name&&(this.name=this.options.name),this._isStandalone()||this.name||At.missingNameException()},n.prototype._updateValue=function(t){var e=this;kt.then(function(){e.control.setValue(t,{emitViewToModelChange:!1})})},n.prototype._updateDisabled=function(t){var e=this,n=t.isDisabled.currentValue,r=""===n||n&&"false"!==n;kt.then(function(){r&&!e.control.disabled?e.control.disable():!r&&e.control.disabled&&e.control.enable()})},n}(Y);It.decorators=[{type:e.Directive,args:[{selector:"[ngModel]:not([formControlName]):not([formControl])",providers:[Rt],exportAs:"ngModel"}]}],It.ctorParameters=function(){return[{type:V,decorators:[{type:e.Optional},{type:e.Host}]},{type:Array,decorators:[{type:e.Optional},{type:e.Self},{type:e.Inject,args:[U]}]},{type:Array,decorators:[{type:e.Optional},{type:e.Self},{type:e.Inject,args:[B]}]},{type:Array,decorators:[{type:e.Optional},{type:e.Self},{type:e.Inject,args:[z]}]}]},It.propDecorators={name:[{type:e.Input}],isDisabled:[{type:e.Input,args:["disabled"]}],model:[{type:e.Input,args:["ngModel"]}],options:[{type:e.Input,args:["ngModelOptions"]}],update:[{type:e.Output,args:["ngModelChange"]}]};var Nt=function(){function t(){}return t.controlParentException=function(){throw new Error("formControlName must be used with a parent formGroup directive. You'll want to add a formGroup\n directive and pass it an existing FormGroup instance (you can create one in your class).\n\n Example:\n\n "+Pt.formControlName)},t.ngModelGroupException=function(){throw new Error('formControlName cannot be used with an ngModelGroup parent. It is only compatible with parents\n that also have a "form" prefix: formGroupName, formArrayName, or formGroup.\n\n Option 1: Update the parent to be formGroupName (reactive form strategy)\n\n '+Pt.formGroupName+"\n\n Option 2: Use ngModel instead of formControlName (template-driven strategy)\n\n "+Pt.ngModelGroup)},t.missingFormException=function(){throw new Error("formGroup expects a FormGroup instance. Please pass one in.\n\n Example:\n\n "+Pt.formControlName)},t.groupParentException=function(){throw new Error("formGroupName must be used with a parent formGroup directive. You'll want to add a formGroup\n directive and pass it an existing FormGroup instance (you can create one in your class).\n\n Example:\n\n "+Pt.formGroupName)},t.arrayParentException=function(){throw new Error("formArrayName must be used with a parent formGroup directive. You'll want to add a formGroup\n directive and pass it an existing FormGroup instance (you can create one in your class).\n\n Example:\n\n "+Pt.formArrayName)},t.disabledAttrWarning=function(){console.warn("\n It looks like you're using the disabled attribute with a reactive form directive. If you set disabled to true\n when you set up this control in your component class, the disabled attribute will actually be set in the DOM for\n you. We recommend using this approach to avoid 'changed after checked' errors.\n \n Example: \n form = new FormGroup({\n first: new FormControl({value: 'Nancy', disabled: true}, Validators.required),\n last: new FormControl('Drew', Validators.required)\n });\n ")},t}(),Dt={provide:Y,useExisting:e.forwardRef(function(){return jt})},jt=function(t){function n(n,r,o){var i=t.call(this)||this;return i.update=new e.EventEmitter,i._rawValidators=n||[],i._rawAsyncValidators=r||[],i.valueAccessor=M(i,o),i}return j(n,t),Object.defineProperty(n.prototype,"isDisabled",{set:function(){Nt.disabledAttrWarning()},enumerable:!0,configurable:!0}),n.prototype.ngOnChanges=function(t){this._isControlChanged(t)&&(w(this.form,this),this.control.disabled&&this.valueAccessor.setDisabledState&&this.valueAccessor.setDisabledState(!0),this.form.updateValueAndValidity({emitEvent:!1})),A(t,this.viewModel)&&(this.form.setValue(this.model),this.viewModel=this.model)},Object.defineProperty(n.prototype,"path",{get:function(){return[]},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"validator",{get:function(){return T(this._rawValidators)},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"asyncValidator",{get:function(){return P(this._rawAsyncValidators)},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"control",{get:function(){return this.form},enumerable:!0,configurable:!0}),n.prototype.viewToModelUpdate=function(t){this.viewModel=t,this.update.emit(t)},n.prototype._isControlChanged=function(t){return t.hasOwnProperty("form")},n}(Y);jt.decorators=[{type:e.Directive,args:[{selector:"[formControl]",providers:[Dt],exportAs:"ngForm"}]}],jt.ctorParameters=function(){return[{type:Array,decorators:[{type:e.Optional},{type:e.Self},{type:e.Inject,args:[U]}]},{type:Array,decorators:[{type:e.Optional},{type:e.Self},{type:e.Inject,args:[B]}]},{type:Array,decorators:[{type:e.Optional},{type:e.Self},{type:e.Inject,args:[z]}]}]},jt.propDecorators={form:[{type:e.Input,args:["formControl"]}],model:[{type:e.Input,args:["ngModel"]}],update:[{type:e.Output,args:["ngModelChange"]}],isDisabled:[{type:e.Input,args:["disabled"]}]};var Lt={provide:V,useExisting:e.forwardRef(function(){return Vt})},Vt=function(t){function n(n,r){var o=t.call(this)||this;return o._validators=n,o._asyncValidators=r,o._submitted=!1,o.directives=[],o.form=null,o.ngSubmit=new e.EventEmitter,o}return j(n,t),n.prototype.ngOnChanges=function(t){this._checkFormPresent(),t.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations())},Object.defineProperty(n.prototype,"submitted",{get:function(){return this._submitted},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"formDirective",{get:function(){return this},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"control",{get:function(){return this.form},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"path",{get:function(){return[]},enumerable:!0,configurable:!0}),n.prototype.addControl=function(t){var e=this.form.get(t.path);return w(e,t),e.updateValueAndValidity({emitEvent:!1}),this.directives.push(t),e},n.prototype.getControl=function(t){return this.form.get(t.path)},n.prototype.removeControl=function(t){N(this.directives,t)},n.prototype.addFormGroup=function(t){var e=this.form.get(t.path);E(e,t),e.updateValueAndValidity({emitEvent:!1})},n.prototype.removeFormGroup=function(){},n.prototype.getFormGroup=function(t){return this.form.get(t.path)},n.prototype.addFormArray=function(t){var e=this.form.get(t.path);E(e,t),e.updateValueAndValidity({emitEvent:!1})},n.prototype.removeFormArray=function(){},n.prototype.getFormArray=function(t){return this.form.get(t.path)},n.prototype.updateModel=function(t,e){var n=this.form.get(t.path);n.setValue(e)},n.prototype.onSubmit=function(t){return this._submitted=!0,this.ngSubmit.emit(t),!1},n.prototype.onReset=function(){this.resetForm()},n.prototype.resetForm=function(t){void 0===t&&(t=void 0),this.form.reset(t),this._submitted=!1},n.prototype._updateDomValue=function(){var t=this;this.directives.forEach(function(e){var n=t.form.get(e.path);e._control!==n&&(C(e._control,e),n&&w(n,e),e._control=n)}),this.form._updateTreeValidity({emitEvent:!1})},n.prototype._updateRegistrations=function(){var t=this;this.form._registerOnCollectionChange(function(){return t._updateDomValue()}),this._oldForm&&this._oldForm._registerOnCollectionChange(function(){}),this._oldForm=this.form},n.prototype._updateValidators=function(){var t=T(this._validators);this.form.validator=q.compose([this.form.validator,t]);var e=P(this._asyncValidators);this.form.asyncValidator=q.composeAsync([this.form.asyncValidator,e])},n.prototype._checkFormPresent=function(){this.form||Nt.missingFormException()},n}(V);Vt.decorators=[{type:e.Directive,args:[{selector:"[formGroup]",providers:[Lt],host:{"(submit)":"onSubmit($event)","(reset)":"onReset()"},exportAs:"ngForm"}]}],Vt.ctorParameters=function(){return[{type:Array,decorators:[{type:e.Optional},{type:e.Self},{type:e.Inject,args:[U]}]},{type:Array,decorators:[{type:e.Optional},{type:e.Self},{type:e.Inject,args:[B]}]}]},Vt.propDecorators={form:[{type:e.Input,args:["formGroup"]}],ngSubmit:[{type:e.Output}]};var Ft={provide:V,useExisting:e.forwardRef(function(){return Ut})},Ut=function(t){function e(e,n,r){var o=t.call(this)||this;return o._parent=e,o._validators=n,o._asyncValidators=r,o}return j(e,t),e.prototype._checkParentType=function(){D(this._parent)&&Nt.groupParentException()},e}(pt);Ut.decorators=[{type:e.Directive,args:[{selector:"[formGroupName]",providers:[Ft]}]}],Ut.ctorParameters=function(){return[{type:V,decorators:[{type:e.Optional},{type:e.Host},{type:e.SkipSelf}]},{type:Array,decorators:[{type:e.Optional},{type:e.Self},{type:e.Inject,args:[U]}]},{type:Array,decorators:[{type:e.Optional},{type:e.Self},{type:e.Inject,args:[B]}]}]},Ut.propDecorators={name:[{type:e.Input,args:["formGroupName"]}]};var Bt={provide:V,useExisting:e.forwardRef(function(){return Ht})},Ht=function(t){function e(e,n,r){var o=t.call(this)||this;return o._parent=e,o._validators=n,o._asyncValidators=r,o}return j(e,t),e.prototype.ngOnInit=function(){this._checkParentType(),this.formDirective.addFormArray(this)},e.prototype.ngOnDestroy=function(){this.formDirective&&this.formDirective.removeFormArray(this)},Object.defineProperty(e.prototype,"control",{get:function(){return this.formDirective.getFormArray(this)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"formDirective",{get:function(){return this._parent?this._parent.formDirective:null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"path",{get:function(){return b(this.name,this._parent)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"validator",{get:function(){return T(this._validators)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"asyncValidator",{get:function(){return P(this._asyncValidators)},enumerable:!0,configurable:!0}),e.prototype._checkParentType=function(){D(this._parent)&&Nt.arrayParentException()},e}(V);Ht.decorators=[{type:e.Directive,args:[{selector:"[formArrayName]",providers:[Bt]}]}],Ht.ctorParameters=function(){return[{type:V,decorators:[{type:e.Optional},{type:e.Host},{type:e.SkipSelf}]},{type:Array,decorators:[{type:e.Optional},{type:e.Self},{type:e.Inject,args:[U]}]},{type:Array,decorators:[{type:e.Optional},{type:e.Self},{type:e.Inject,args:[B]}]}]},Ht.propDecorators={name:[{type:e.Input,args:["formArrayName"]}]};var qt={provide:Y,useExisting:e.forwardRef(function(){return zt})},zt=function(t){function n(n,r,o,i){var s=t.call(this)||this;return s._added=!1,s.update=new e.EventEmitter,s._parent=n,s._rawValidators=r||[],s._rawAsyncValidators=o||[],s.valueAccessor=M(s,i),s}return j(n,t),Object.defineProperty(n.prototype,"isDisabled",{set:function(){Nt.disabledAttrWarning()},enumerable:!0,configurable:!0}),n.prototype.ngOnChanges=function(t){this._added||this._setUpControl(),A(t,this.viewModel)&&(this.viewModel=this.model,this.formDirective.updateModel(this,this.model))},n.prototype.ngOnDestroy=function(){this.formDirective&&this.formDirective.removeControl(this)},n.prototype.viewToModelUpdate=function(t){this.viewModel=t,this.update.emit(t)},Object.defineProperty(n.prototype,"path",{get:function(){return b(this.name,this._parent)},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"formDirective",{get:function(){return this._parent?this._parent.formDirective:null},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"validator",{get:function(){return T(this._rawValidators)},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"asyncValidator",{get:function(){return P(this._rawAsyncValidators)},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"control",{get:function(){return this._control},enumerable:!0,configurable:!0}),n.prototype._checkParentType=function(){!(this._parent instanceof Ut)&&this._parent instanceof pt?Nt.ngModelGroupException():this._parent instanceof Ut||this._parent instanceof Vt||this._parent instanceof Ht||Nt.controlParentException()},n.prototype._setUpControl=function(){this._checkParentType(),this._control=this.formDirective.addControl(this),this.control.disabled&&this.valueAccessor.setDisabledState&&this.valueAccessor.setDisabledState(!0),this._added=!0},n}(Y);zt.decorators=[{type:e.Directive,args:[{selector:"[formControlName]",providers:[qt]}]}],zt.ctorParameters=function(){return[{type:V,decorators:[{type:e.Optional},{type:e.Host},{type:e.SkipSelf}]},{type:Array,decorators:[{type:e.Optional},{type:e.Self},{type:e.Inject,args:[U]}]},{type:Array,decorators:[{type:e.Optional},{type:e.Self},{type:e.Inject,args:[B]}]},{type:Array,decorators:[{type:e.Optional},{type:e.Self},{type:e.Inject,args:[z]}]}]},zt.propDecorators={name:[{type:e.Input,args:["formControlName"]}],model:[{type:e.Input,args:["ngModel"]}],update:[{type:e.Output,args:["ngModelChange"]}],isDisabled:[{type:e.Input,args:["disabled"]}]};var Gt={provide:U,useExisting:e.forwardRef(function(){return Kt}),multi:!0},Wt={provide:U,useExisting:e.forwardRef(function(){return Qt}),multi:!0},Kt=function(){function t(){}return Object.defineProperty(t.prototype,"required",{ +get:function(){return this._required},set:function(t){this._required=null!=t&&t!==!1&&""+t!="false",this._onChange&&this._onChange()},enumerable:!0,configurable:!0}),t.prototype.validate=function(t){return this.required?q.required(t):null},t.prototype.registerOnValidatorChange=function(t){this._onChange=t},t}();Kt.decorators=[{type:e.Directive,args:[{selector:":not([type=checkbox])[required][formControlName],:not([type=checkbox])[required][formControl],:not([type=checkbox])[required][ngModel]",providers:[Gt],host:{"[attr.required]":'required ? "" : null'}}]}],Kt.ctorParameters=function(){return[]},Kt.propDecorators={required:[{type:e.Input}]};var Qt=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return j(e,t),e.prototype.validate=function(t){return this.required?q.requiredTrue(t):null},e}(Kt);Qt.decorators=[{type:e.Directive,args:[{selector:"input[type=checkbox][required][formControlName],input[type=checkbox][required][formControl],input[type=checkbox][required][ngModel]",providers:[Wt],host:{"[attr.required]":'required ? "" : null'}}]}],Qt.ctorParameters=function(){return[]};var $t={provide:U,useExisting:e.forwardRef(function(){return Xt}),multi:!0},Xt=function(){function t(){}return Object.defineProperty(t.prototype,"email",{set:function(t){this._enabled=""===t||t===!0||"true"===t,this._onChange&&this._onChange()},enumerable:!0,configurable:!0}),t.prototype.validate=function(t){return this._enabled?q.email(t):null},t.prototype.registerOnValidatorChange=function(t){this._onChange=t},t}();Xt.decorators=[{type:e.Directive,args:[{selector:"[email][formControlName],[email][formControl],[email][ngModel]",providers:[$t]}]}],Xt.ctorParameters=function(){return[]},Xt.propDecorators={email:[{type:e.Input}]};var Zt={provide:U,useExisting:e.forwardRef(function(){return Yt}),multi:!0},Yt=function(){function t(){}return t.prototype.ngOnChanges=function(t){"minlength"in t&&(this._createValidator(),this._onChange&&this._onChange())},t.prototype.validate=function(t){return null==this.minlength?null:this._validator(t)},t.prototype.registerOnValidatorChange=function(t){this._onChange=t},t.prototype._createValidator=function(){this._validator=q.minLength(parseInt(this.minlength,10))},t}();Yt.decorators=[{type:e.Directive,args:[{selector:"[minlength][formControlName],[minlength][formControl],[minlength][ngModel]",providers:[Zt],host:{"[attr.minlength]":"minlength ? minlength : null"}}]}],Yt.ctorParameters=function(){return[]},Yt.propDecorators={minlength:[{type:e.Input}]};var Jt={provide:U,useExisting:e.forwardRef(function(){return te}),multi:!0},te=function(){function t(){}return t.prototype.ngOnChanges=function(t){"maxlength"in t&&(this._createValidator(),this._onChange&&this._onChange())},t.prototype.validate=function(t){return null!=this.maxlength?this._validator(t):null},t.prototype.registerOnValidatorChange=function(t){this._onChange=t},t.prototype._createValidator=function(){this._validator=q.maxLength(parseInt(this.maxlength,10))},t}();te.decorators=[{type:e.Directive,args:[{selector:"[maxlength][formControlName],[maxlength][formControl],[maxlength][ngModel]",providers:[Jt],host:{"[attr.maxlength]":"maxlength ? maxlength : null"}}]}],te.ctorParameters=function(){return[]},te.propDecorators={maxlength:[{type:e.Input}]};var ee={provide:U,useExisting:e.forwardRef(function(){return ne}),multi:!0},ne=function(){function t(){}return t.prototype.ngOnChanges=function(t){"pattern"in t&&(this._createValidator(),this._onChange&&this._onChange())},t.prototype.validate=function(t){return this._validator(t)},t.prototype.registerOnValidatorChange=function(t){this._onChange=t},t.prototype._createValidator=function(){this._validator=q.pattern(this.pattern)},t}();ne.decorators=[{type:e.Directive,args:[{selector:"[pattern][formControlName],[pattern][formControl],[pattern][ngModel]",providers:[ee],host:{"[attr.pattern]":"pattern ? pattern : null"}}]}],ne.ctorParameters=function(){return[]},ne.propDecorators={pattern:[{type:e.Input}]};var re=function(){function t(){}return t.prototype.group=function(t,e){void 0===e&&(e=null);var n=this._reduceControls(t),r=null!=e?e.validator:null,o=null!=e?e.asyncValidator:null;return new Ct(n,r,o)},t.prototype.control=function(t,e,n){return void 0===e&&(e=null),void 0===n&&(n=null),new wt(t,e,n)},t.prototype.array=function(t,e,n){var r=this;void 0===e&&(e=null),void 0===n&&(n=null);var o=t.map(function(t){return r._createControl(t)});return new Et(o,e,n)},t.prototype._reduceControls=function(t){var e=this,n={};return Object.keys(t).forEach(function(r){n[r]=e._createControl(t[r])}),n},t.prototype._createControl=function(t){if(t instanceof wt||t instanceof Ct||t instanceof Et)return t;if(Array.isArray(t)){var e=t[0],n=t.length>1?t[1]:null,r=t.length>2?t[2]:null;return this.control(e,n,r)}return this.control(t)},t}();re.decorators=[{type:e.Injectable}],re.ctorParameters=function(){return[]};var oe=new e.Version("4.0.1"),ie=function(){function t(){}return t}();ie.decorators=[{type:e.Directive,args:[{selector:"form:not([ngNoForm]):not([ngNativeValidate])",host:{novalidate:""}}]}],ie.ctorParameters=function(){return[]};var se=[ie,st,ct,$,Z,rt,W,it,ut,et,dt,yt,Kt,Yt,te,ne,Qt,Xt],ae=[It,Mt,Tt],ue=[jt,Vt,zt,Ut,Ht],ce=function(){function t(){}return t}();ce.decorators=[{type:e.NgModule,args:[{declarations:se,exports:se}]}],ce.ctorParameters=function(){return[]};var le=function(){function t(){}return t}();le.decorators=[{type:e.NgModule,args:[{declarations:ae,providers:[tt],exports:[ce,ae]}]}],le.ctorParameters=function(){return[]};var pe=function(){function t(){}return t}();pe.decorators=[{type:e.NgModule,args:[{declarations:[ue],providers:[re,tt],exports:[ce,ue]}]}],pe.ctorParameters=function(){return[]},t.AbstractControlDirective=L,t.AbstractFormGroupDirective=pt,t.CheckboxControlValueAccessor=W,t.ControlContainer=V,t.NG_VALUE_ACCESSOR=z,t.COMPOSITION_BUFFER_MODE=Q,t.DefaultValueAccessor=$,t.NgControl=Y,t.NgControlStatus=dt,t.NgControlStatusGroup=yt,t.NgForm=Tt,t.NgModel=It,t.NgModelGroup=Mt,t.RadioControlValueAccessor=et,t.FormControlDirective=jt,t.FormControlName=zt,t.FormGroupDirective=Vt,t.FormArrayName=Ht,t.FormGroupName=Ut,t.NgSelectOption=st,t.SelectControlValueAccessor=it,t.SelectMultipleControlValueAccessor=ut,t.CheckboxRequiredValidator=Qt,t.EmailValidator=Xt,t.MaxLengthValidator=te,t.MinLengthValidator=Yt,t.PatternValidator=ne,t.RequiredValidator=Kt,t.FormBuilder=re,t.AbstractControl=bt,t.FormArray=Et,t.FormControl=wt,t.FormGroup=Ct,t.NG_ASYNC_VALIDATORS=B,t.NG_VALIDATORS=U,t.Validators=q,t.VERSION=oe,t.FormsModule=le,t.ReactiveFormsModule=pe,t.ɵba=ce,t.ɵz=ue,t.ɵx=se,t.ɵy=ae,t.ɵa=G,t.ɵb=K,t.ɵc=ht,t.ɵd=ft,t.ɵe=St,t.ɵf=Rt,t.ɵg=Ot,t.ɵbf=ie,t.ɵbb=X,t.ɵbc=Z,t.ɵh=J,t.ɵi=tt,t.ɵbd=nt,t.ɵbe=rt,t.ɵj=Dt,t.ɵk=qt,t.ɵl=Lt,t.ɵn=Bt,t.ɵm=Ft,t.ɵo=ot,t.ɵq=ct,t.ɵp=at,t.ɵs=Wt,t.ɵt=$t,t.ɵv=Jt,t.ɵu=Zt,t.ɵw=ee,t.ɵr=Gt,Object.defineProperty(t,"__esModule",{value:!0})})},{"@angular/core":8,"@angular/platform-browser":12,"rxjs/observable/forkJoin":34,"rxjs/observable/fromPromise":36,"rxjs/operator/map":46}],10:[function(e,n,r){!function(o,i){"object"==typeof r&&"undefined"!=typeof n?i(r,e("@angular/core"),e("rxjs/Observable"),e("@angular/platform-browser")):"function"==typeof t&&t.amd?t(["exports","@angular/core","rxjs/Observable","@angular/platform-browser"],i):i((o.ng=o.ng||{},o.ng.http=o.ng.http||{}),o.ng.core,o.Rx,o.ng.platformBrowser)}(this,function(t,e,n,r){"use strict";function o(t){if("string"!=typeof t)return t;switch(t.toUpperCase()){case"GET":return m.Get;case"POST":return m.Post;case"PUT":return m.Put;case"DELETE":return m.Delete;case"OPTIONS":return m.Options;case"HEAD":return m.Head;case"PATCH":return m.Patch}throw new Error('Invalid request method. The method "'+t+'" is not supported.')}function i(t){return"responseURL"in t?t.responseURL:/^X-Request-URL:/m.test(t.getAllResponseHeaders())?t.getResponseHeader("X-Request-URL"):void 0}function s(t){for(var e=new Uint16Array(t.length),n=0,r=t.length;r>n;n++)e[n]=t.charCodeAt(n);return e.buffer}function a(t){void 0===t&&(t="");var e=new Map;if(t.length>0){var n=t.split("&");n.forEach(function(t){var n=t.indexOf("="),r=-1==n?[t,""]:[t.slice(0,n),t.slice(n+1)],o=r[0],i=r[1],s=e.get(o)||[];s.push(i),e.set(o,s)})}return e}function u(t){return encodeURIComponent(t).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/gi,"$").replace(/%2C/gi,",").replace(/%3B/gi,";").replace(/%2B/gi,"+").replace(/%3D/gi,"=").replace(/%3F/gi,"?").replace(/%2F/gi,"/")}function c(){var t="object"==typeof window?window:{};return null===D&&(D=t[N]={}),D}function l(t,e){return t.createConnection(e).response}function p(t,e,n,r){var o=t;return o.merge(e?new K({method:e.method||n,url:e.url||r,search:e.search,params:e.params,headers:e.headers,body:e.body,withCredentials:e.withCredentials,responseType:e.responseType}):new K({method:n,url:r}))}function h(){return new G}function f(t,e){return new et(t,e)}function d(t,e){return new nt(t,e)}var y=void 0||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},v=function(){function t(){}return t.prototype.build=function(){return new XMLHttpRequest},t}();v.decorators=[{type:e.Injectable}],v.ctorParameters=function(){return[]};var m={};m.Get=0,m.Post=1,m.Put=2,m.Delete=3,m.Options=4,m.Head=5,m.Patch=6,m[m.Get]="Get",m[m.Post]="Post",m[m.Put]="Put",m[m.Delete]="Delete",m[m.Options]="Options",m[m.Head]="Head",m[m.Patch]="Patch";var g={};g.Unsent=0,g.Open=1,g.HeadersReceived=2,g.Loading=3,g.Done=4,g.Cancelled=5,g[g.Unsent]="Unsent",g[g.Open]="Open",g[g.HeadersReceived]="HeadersReceived",g[g.Loading]="Loading",g[g.Done]="Done",g[g.Cancelled]="Cancelled";var _={};_.Basic=0,_.Cors=1,_.Default=2,_.Error=3,_.Opaque=4,_[_.Basic]="Basic",_[_.Cors]="Cors",_[_.Default]="Default",_[_.Error]="Error",_[_.Opaque]="Opaque";var b={};b.NONE=0,b.JSON=1,b.FORM=2,b.FORM_DATA=3,b.TEXT=4,b.BLOB=5,b.ARRAY_BUFFER=6,b[b.NONE]="NONE",b[b.JSON]="JSON",b[b.FORM]="FORM",b[b.FORM_DATA]="FORM_DATA",b[b.TEXT]="TEXT",b[b.BLOB]="BLOB",b[b.ARRAY_BUFFER]="ARRAY_BUFFER";var w={};w.Text=0,w.Json=1,w.ArrayBuffer=2,w.Blob=3,w[w.Text]="Text",w[w.Json]="Json",w[w.ArrayBuffer]="ArrayBuffer",w[w.Blob]="Blob";var C=function(){function t(e){var n=this;return this._headers=new Map,this._normalizedNames=new Map,e?e instanceof t?void e.forEach(function(t,e){t.forEach(function(t){return n.append(e,t)})}):void Object.keys(e).forEach(function(t){var r=Array.isArray(e[t])?e[t]:[e[t]];n["delete"](t),r.forEach(function(e){return n.append(t,e)})}):void 0}return t.fromResponseHeaderString=function(e){var n=new t;return e.split("\n").forEach(function(t){var e=t.indexOf(":");if(e>0){var r=t.slice(0,e),o=t.slice(e+1).trim();n.set(r,o)}}),n},t.prototype.append=function(t,e){var n=this.getAll(t);null===n?this.set(t,e):n.push(e)},t.prototype["delete"]=function(t){var e=t.toLowerCase();this._normalizedNames["delete"](e),this._headers["delete"](e)},t.prototype.forEach=function(t){var e=this;this._headers.forEach(function(n,r){return t(n,e._normalizedNames.get(r),e._headers)})},t.prototype.get=function(t){var e=this.getAll(t);return null===e?null:e.length>0?e[0]:null},t.prototype.has=function(t){return this._headers.has(t.toLowerCase())},t.prototype.keys=function(){return Array.from(this._normalizedNames.values())},t.prototype.set=function(t,e){Array.isArray(e)?e.length&&this._headers.set(t.toLowerCase(),[e.join(",")]):this._headers.set(t.toLowerCase(),[e]),this.mayBeSetNormalizedName(t)},t.prototype.values=function(){return Array.from(this._headers.values())},t.prototype.toJSON=function(){var t=this,e={};return this._headers.forEach(function(n,r){var o=[];n.forEach(function(t){return o.push.apply(o,t.split(","))}),e[t._normalizedNames.get(r)]=o}),e},t.prototype.getAll=function(t){return this.has(t)?this._headers.get(t.toLowerCase()):null},t.prototype.entries=function(){throw new Error('"entries" method is not implemented on Headers class')},t.prototype.mayBeSetNormalizedName=function(t){var e=t.toLowerCase();this._normalizedNames.has(e)||this._normalizedNames.set(e,t)},t}(),E=function(){function t(t){var e=void 0===t?{}:t,n=e.body,r=e.status,o=e.headers,i=e.statusText,s=e.type,a=e.url;this.body=null!=n?n:null,this.status=null!=r?r:null,this.headers=null!=o?o:null,this.statusText=null!=i?i:null,this.type=null!=s?s:null,this.url=null!=a?a:null}return t.prototype.merge=function(e){return new t({body:e&&null!=e.body?e.body:this.body,status:e&&null!=e.status?e.status:this.status,headers:e&&null!=e.headers?e.headers:this.headers,statusText:e&&null!=e.statusText?e.statusText:this.statusText,type:e&&null!=e.type?e.type:this.type,url:e&&null!=e.url?e.url:this.url})},t}(),S=function(t){function e(){return t.call(this,{status:200,statusText:"Ok",type:_.Default,headers:new C})||this}return y(e,t),e}(E);S.decorators=[{type:e.Injectable}],S.ctorParameters=function(){return[]};var x=function(){function t(){}return t.prototype.createConnection=function(){},t}(),T=function(){function t(){}return t}(),P=function(){function t(){}return t.prototype.configureRequest=function(){},t}(),A=function(t){return t>=200&&300>t},O=function(){function t(){}return t.prototype.encodeKey=function(t){return u(t)},t.prototype.encodeValue=function(t){return u(t)},t}(),M=function(){function t(t,e){void 0===t&&(t=""),void 0===e&&(e=new O),this.rawParams=t,this.queryEncoder=e,this.paramsMap=a(t)}return t.prototype.clone=function(){var e=new t("",this.queryEncoder);return e.appendAll(this),e},t.prototype.has=function(t){return this.paramsMap.has(t)},t.prototype.get=function(t){var e=this.paramsMap.get(t);return Array.isArray(e)?e[0]:null},t.prototype.getAll=function(t){return this.paramsMap.get(t)||[]},t.prototype.set=function(t,e){if(void 0===e||null===e)return void this["delete"](t);var n=this.paramsMap.get(t)||[];n.length=0,n.push(e),this.paramsMap.set(t,n)},t.prototype.setAll=function(t){var e=this;t.paramsMap.forEach(function(t,n){var r=e.paramsMap.get(n)||[];r.length=0,r.push(t[0]),e.paramsMap.set(n,r)})},t.prototype.append=function(t,e){if(void 0!==e&&null!==e){var n=this.paramsMap.get(t)||[];n.push(e),this.paramsMap.set(t,n)}},t.prototype.appendAll=function(t){var e=this;t.paramsMap.forEach(function(t,n){for(var r=e.paramsMap.get(n)||[],o=0;o<t.length;++o)r.push(t[o]);e.paramsMap.set(n,r)})},t.prototype.replaceAll=function(t){var e=this;t.paramsMap.forEach(function(t,n){var r=e.paramsMap.get(n)||[];r.length=0;for(var o=0;o<t.length;++o)r.push(t[o]);e.paramsMap.set(n,r)})},t.prototype.toString=function(){var t=this,e=[];return this.paramsMap.forEach(function(n,r){n.forEach(function(n){return e.push(t.queryEncoder.encodeKey(r)+"="+t.queryEncoder.encodeValue(n))})}),e.join("&")},t.prototype["delete"]=function(t){this.paramsMap["delete"](t)},t}(),R=function(){function t(){}return t.prototype.json=function(){return"string"==typeof this._body?JSON.parse(this._body):this._body instanceof ArrayBuffer?JSON.parse(this.text()):this._body},t.prototype.text=function(){return this._body instanceof M?this._body.toString():this._body instanceof ArrayBuffer?String.fromCharCode.apply(null,new Uint16Array(this._body)):null==this._body?"":"object"==typeof this._body?JSON.stringify(this._body,null,2):this._body.toString()},t.prototype.arrayBuffer=function(){return this._body instanceof ArrayBuffer?this._body:s(this.text())},t.prototype.blob=function(){if(this._body instanceof Blob)return this._body;if(this._body instanceof ArrayBuffer)return new Blob([this._body]);throw new Error("The request body isn't either a blob or an array buffer")},t}(),k=function(t){function e(e){var n=t.call(this)||this;return n._body=e.body,n.status=e.status,n.ok=n.status>=200&&n.status<=299,n.statusText=e.statusText,n.headers=e.headers,n.type=e.type,n.url=e.url,n}return y(e,t),e.prototype.toString=function(){return"Response with status: "+this.status+" "+this.statusText+" for URL: "+this.url},e}(R),I=0,N="__ng_jsonp__",D=null,j=function(){function t(){}return t.prototype.build=function(t){var e=document.createElement("script");return e.src=t,e},t.prototype.nextRequestID=function(){return"__req"+I++},t.prototype.requestCallback=function(t){return N+"."+t+".finished"},t.prototype.exposeConnection=function(t,e){var n=c();n[t]=e},t.prototype.removeConnection=function(t){var e=c();e[t]=null},t.prototype.send=function(t){document.body.appendChild(t)},t.prototype.cleanup=function(t){t.parentNode&&t.parentNode.removeChild(t)},t}();j.decorators=[{type:e.Injectable}],j.ctorParameters=function(){return[]};var L="JSONP injected script did not invoke callback.",V="JSONP requests must use GET request method.",F=function(){function t(){}return t.prototype.finished=function(){},t}(),U=function(t){function e(e,r,o){var i=t.call(this)||this;if(i._dom=r,i.baseResponseOptions=o,i._finished=!1,e.method!==m.Get)throw new TypeError(V);return i.request=e,i.response=new n.Observable(function(t){i.readyState=g.Loading;var n=i._id=r.nextRequestID();r.exposeConnection(n,i);var s=r.requestCallback(i._id),a=e.url;a.indexOf("=JSONP_CALLBACK&")>-1?a=a.replace("=JSONP_CALLBACK&","="+s+"&"):a.lastIndexOf("=JSONP_CALLBACK")===a.length-"=JSONP_CALLBACK".length&&(a=a.substring(0,a.length-"=JSONP_CALLBACK".length)+("="+s));var u=i._script=r.build(a),c=function(){if(i.readyState!==g.Cancelled){if(i.readyState=g.Done,r.cleanup(u),!i._finished){var e=new E({body:L,type:_.Error,url:a});return o&&(e=o.merge(e)),void t.error(new k(e))}var n=new E({body:i._responseData,url:a});i.baseResponseOptions&&(n=i.baseResponseOptions.merge(n)),t.next(new k(n)),t.complete()}},l=function(e){if(i.readyState!==g.Cancelled){i.readyState=g.Done,r.cleanup(u);var n=new E({body:e.message,type:_.Error});o&&(n=o.merge(n)),t.error(new k(n))}};return u.addEventListener("load",c),u.addEventListener("error",l),r.send(u),function(){i.readyState=g.Cancelled,u.removeEventListener("load",c),u.removeEventListener("error",l),i._dom.cleanup(u)}}),i}return y(e,t),e.prototype.finished=function(t){this._finished=!0,this._dom.removeConnection(this._id),this.readyState!==g.Cancelled&&(this._responseData=t)},e}(F),B=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return y(e,t),e}(x),H=function(t){function e(e,n){var r=t.call(this)||this;return r._browserJSONP=e,r._baseResponseOptions=n,r}return y(e,t),e.prototype.createConnection=function(t){return new U(t,this._browserJSONP,this._baseResponseOptions)},e}(B);H.decorators=[{type:e.Injectable}],H.ctorParameters=function(){return[{type:j},{type:E}]};var q=/^\)\]\}',?\n/,z=function(){function t(t,e,r){var o=this;this.request=t,this.response=new n.Observable(function(n){var s=e.build();s.open(m[t.method].toUpperCase(),t.url),null!=t.withCredentials&&(s.withCredentials=t.withCredentials);var a=function(){var e=1223===s.status?204:s.status,o=null;204!==e&&(o="undefined"==typeof s.response?s.responseText:s.response,"string"==typeof o&&(o=o.replace(q,""))),0===e&&(e=o?200:0);var a=C.fromResponseHeaderString(s.getAllResponseHeaders()),u=i(s)||t.url,c=s.statusText||"OK",l=new E({body:o,status:e,headers:a,statusText:c,url:u});null!=r&&(l=r.merge(l));var p=new k(l);return p.ok=A(e),p.ok?(n.next(p),void n.complete()):void n.error(p)},u=function(t){var e=new E({body:t,type:_.Error,status:s.status,statusText:s.statusText});null!=r&&(e=r.merge(e)),n.error(new k(e))};if(o.setDetectedContentType(t,s),null==t.headers&&(t.headers=new C),t.headers.has("Accept")||t.headers.append("Accept","application/json, text/plain, */*"),t.headers.forEach(function(t,e){return s.setRequestHeader(e,t.join(","))}),null!=t.responseType&&null!=s.responseType)switch(t.responseType){case w.ArrayBuffer:s.responseType="arraybuffer";break;case w.Json:s.responseType="json";break;case w.Text:s.responseType="text";break;case w.Blob:s.responseType="blob";break;default:throw new Error("The selected responseType is not supported")}return s.addEventListener("load",a),s.addEventListener("error",u),s.send(o.request.getBody()),function(){s.removeEventListener("load",a),s.removeEventListener("error",u),s.abort()}})}return t.prototype.setDetectedContentType=function(t,e){if(null==t.headers||null==t.headers.get("Content-Type"))switch(t.contentType){case b.NONE:break;case b.JSON:e.setRequestHeader("content-type","application/json");break;case b.FORM:e.setRequestHeader("content-type","application/x-www-form-urlencoded;charset=UTF-8");break;case b.TEXT:e.setRequestHeader("content-type","text/plain");break;case b.BLOB:var n=t.blob();n.type&&e.setRequestHeader("content-type",n.type)}},t}(),G=function(){function t(t,e){void 0===t&&(t="XSRF-TOKEN"),void 0===e&&(e="X-XSRF-TOKEN"),this._cookieName=t,this._headerName=e}return t.prototype.configureRequest=function(t){var e=r.ɵgetDOM().getCookie(this._cookieName);e&&t.headers.set(this._headerName,e)},t}(),W=function(){function t(t,e,n){this._browserXHR=t,this._baseResponseOptions=e,this._xsrfStrategy=n}return t.prototype.createConnection=function(t){return this._xsrfStrategy.configureRequest(t),new z(t,this._browserXHR,this._baseResponseOptions)},t}();W.decorators=[{type:e.Injectable}],W.ctorParameters=function(){return[{type:v},{type:E},{type:P}]};var K=function(){function t(t){var e=void 0===t?{}:t,n=e.method,r=e.headers,i=e.body,s=e.url,a=e.search,u=e.params,c=e.withCredentials,l=e.responseType;this.method=null!=n?o(n):null,this.headers=null!=r?r:null,this.body=null!=i?i:null,this.url=null!=s?s:null,this.params=this._mergeSearchParams(u||a),this.withCredentials=null!=c?c:null,this.responseType=null!=l?l:null}return Object.defineProperty(t.prototype,"search",{get:function(){return this.params},set:function(t){this.params=t},enumerable:!0,configurable:!0}),t.prototype.merge=function(e){return new t({method:e&&null!=e.method?e.method:this.method,headers:e&&null!=e.headers?e.headers:new C(this.headers),body:e&&null!=e.body?e.body:this.body,url:e&&null!=e.url?e.url:this.url,params:e&&this._mergeSearchParams(e.params||e.search),withCredentials:e&&null!=e.withCredentials?e.withCredentials:this.withCredentials,responseType:e&&null!=e.responseType?e.responseType:this.responseType})},t.prototype._mergeSearchParams=function(t){return t?t instanceof M?t.clone():"string"==typeof t?new M(t):this._parseParams(t):this.params},t.prototype._parseParams=function(t){var e=this;void 0===t&&(t={});var n=new M;return Object.keys(t).forEach(function(r){var o=t[r];Array.isArray(o)?o.forEach(function(t){return e._appendParam(r,t,n)}):e._appendParam(r,o,n)}),n},t.prototype._appendParam=function(t,e,n){"string"!=typeof e&&(e=JSON.stringify(e)),n.append(t,e)},t}(),Q=function(t){function e(){return t.call(this,{method:m.Get,headers:new C})||this}return y(e,t),e}(K);Q.decorators=[{type:e.Injectable}],Q.ctorParameters=function(){return[]};var $=function(t){function e(e){var n=t.call(this)||this,r=e.url;if(n.url=e.url,e.params){var i=e.params.toString();if(i.length>0){var s="?";-1!=n.url.indexOf("?")&&(s="&"==n.url[n.url.length-1]?"":"&"),n.url=r+s+i}}return n._body=e.body,n.method=o(e.method),n.headers=new C(e.headers),n.contentType=n.detectContentType(),n.withCredentials=e.withCredentials,n.responseType=e.responseType,n}return y(e,t),e.prototype.detectContentType=function(){switch(this.headers.get("content-type")){case"application/json":return b.JSON;case"application/x-www-form-urlencoded":return b.FORM;case"multipart/form-data":return b.FORM_DATA;case"text/plain":case"text/html":return b.TEXT;case"application/octet-stream":return this._body instanceof tt?b.ARRAY_BUFFER:b.BLOB;default:return this.detectContentTypeFromBody()}},e.prototype.detectContentTypeFromBody=function(){return null==this._body?b.NONE:this._body instanceof M?b.FORM:this._body instanceof Y?b.FORM_DATA:this._body instanceof J?b.BLOB:this._body instanceof tt?b.ARRAY_BUFFER:this._body&&"object"==typeof this._body?b.JSON:b.TEXT},e.prototype.getBody=function(){switch(this.contentType){case b.JSON:return this.text();case b.FORM:return this.text();case b.FORM_DATA:return this._body;case b.TEXT:return this.text();case b.BLOB:return this.blob();case b.ARRAY_BUFFER:return this.arrayBuffer();default:return null}},e}(R),X=function(){},Z="object"==typeof window?window:X,Y=Z.FormData||X,J=Z.Blob||X,tt=Z.ArrayBuffer||X,et=function(){function t(t,e){this._backend=t,this._defaultOptions=e}return t.prototype.request=function(t,e){var n;if("string"==typeof t)n=l(this._backend,new $(p(this._defaultOptions,e,m.Get,t)));else{if(!(t instanceof $))throw new Error("First argument must be a url string or Request instance.");n=l(this._backend,t)}return n},t.prototype.get=function(t,e){return this.request(new $(p(this._defaultOptions,e,m.Get,t)))},t.prototype.post=function(t,e,n){return this.request(new $(p(this._defaultOptions.merge(new K({body:e})),n,m.Post,t)))},t.prototype.put=function(t,e,n){return this.request(new $(p(this._defaultOptions.merge(new K({body:e})),n,m.Put,t)))},t.prototype["delete"]=function(t,e){return this.request(new $(p(this._defaultOptions,e,m.Delete,t)))},t.prototype.patch=function(t,e,n){return this.request(new $(p(this._defaultOptions.merge(new K({body:e})),n,m.Patch,t)))},t.prototype.head=function(t,e){return this.request(new $(p(this._defaultOptions,e,m.Head,t)))},t.prototype.options=function(t,e){return this.request(new $(p(this._defaultOptions,e,m.Options,t)))},t}();et.decorators=[{type:e.Injectable}],et.ctorParameters=function(){return[{type:x},{type:K}]};var nt=function(t){function e(e,n){return t.call(this,e,n)||this}return y(e,t),e.prototype.request=function(t,e){var n;if("string"==typeof t&&(t=new $(p(this._defaultOptions,e,m.Get,t))),!(t instanceof $))throw new Error("First argument must be a url string or Request instance.");if(t.method!==m.Get)throw new Error("JSONP requests must use GET request method.");return n=l(this._backend,t)},e}(et);nt.decorators=[{type:e.Injectable}],nt.ctorParameters=function(){return[{type:x},{type:K}]};var rt=function(){function t(){}return t}();rt.decorators=[{type:e.NgModule,args:[{providers:[{provide:et,useFactory:f,deps:[W,K]},v,{provide:K,useClass:Q},{provide:E,useClass:S},W,{provide:P,useFactory:h}]}]}],rt.ctorParameters=function(){return[]};var ot=function(){function t(){}return t}();ot.decorators=[{type:e.NgModule,args:[{providers:[{provide:nt,useFactory:d,deps:[B,K]},j,{provide:K,useClass:Q},{provide:E,useClass:S},{provide:B,useClass:H}]}]}],ot.ctorParameters=function(){return[]};var it=new e.Version("4.0.1");t.BrowserXhr=v,t.JSONPBackend=B,t.JSONPConnection=F,t.CookieXSRFStrategy=G,t.XHRBackend=W,t.XHRConnection=z,t.BaseRequestOptions=Q,t.RequestOptions=K,t.BaseResponseOptions=S,t.ResponseOptions=E,t.ReadyState=g,t.RequestMethod=m,t.ResponseContentType=w,t.ResponseType=_,t.Headers=C,t.Http=et,t.Jsonp=nt,t.HttpModule=rt,t.JsonpModule=ot,t.Connection=T,t.ConnectionBackend=x,t.XSRFStrategy=P,t.Request=$,t.Response=k,t.QueryEncoder=O,t.URLSearchParams=M,t.VERSION=it,t.ɵg=j,t.ɵa=H,t.ɵf=R,t.ɵb=h,t.ɵc=f,t.ɵd=d,Object.defineProperty(t,"__esModule",{value:!0})})},{"@angular/core":8,"@angular/platform-browser":12,"rxjs/Observable":17}],11:[function(e,n,r){!function(o,i){"object"==typeof r&&"undefined"!=typeof n?i(r,e("@angular/compiler"),e("@angular/core"),e("@angular/common"),e("@angular/platform-browser")):"function"==typeof t&&t.amd?t(["exports","@angular/compiler","@angular/core","@angular/common","@angular/platform-browser"],i):i((o.ng=o.ng||{},o.ng.platformBrowserDynamic=o.ng.platformBrowserDynamic||{}),o.ng.compiler,o.ng.core,o.ng.common,o.ng.platformBrowser)}(this,function(t,e,n,r,o){"use strict";var i=void 0||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},s=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype.get=function(t){var e,n,r=new Promise(function(t,r){e=t,n=r}),o=new XMLHttpRequest;return o.open("GET",t,!0),o.responseType="text",o.onload=function(){var r=o.response||o.responseText,i=1223===o.status?204:o.status;0===i&&(i=r?200:0),i>=200&&300>=i?e(r):n("Failed to load "+t)},o.onerror=function(){n("Failed to load "+t)},o.send(),r},e}(e.ResourceLoader);s.decorators=[{type:n.Injectable}],s.ctorParameters=function(){return[]};var a=[o.ɵINTERNAL_BROWSER_PLATFORM_PROVIDERS,{provide:n.COMPILER_OPTIONS,useValue:{providers:[{provide:e.ResourceLoader,useClass:s}]},multi:!0},{provide:n.PLATFORM_ID,useValue:r.ɵPLATFORM_BROWSER_ID}],u=function(t){function e(){var e=t.call(this)||this;if(e._cache=n.ɵglobal.$templateCache,null==e._cache)throw new Error("CachedResourceLoader: Template cache was not found in $templateCache.");return e}return i(e,t),e.prototype.get=function(t){return this._cache.hasOwnProperty(t)?Promise.resolve(this._cache[t]):Promise.reject("CachedResourceLoader: Did not find cached template for "+t)},e}(e.ResourceLoader),c=new n.Version("4.0.1"),l=[{provide:e.ResourceLoader,useClass:u}],p=n.createPlatformFactory(e.platformCoreDynamic,"browserDynamic",a);t.RESOURCE_CACHE_PROVIDER=l,t.platformBrowserDynamic=p,t.VERSION=c,t.ɵINTERNAL_BROWSER_DYNAMIC_PLATFORM_PROVIDERS=a,t.ɵResourceLoaderImpl=s,Object.defineProperty(t,"__esModule",{value:!0})})},{"@angular/common":6,"@angular/compiler":7,"@angular/core":8,"@angular/platform-browser":12}],12:[function(e,n,r){!function(o,i){"object"==typeof r&&"undefined"!=typeof n?i(r,e("@angular/common"),e("@angular/core")):"function"==typeof t&&t.amd?t(["exports","@angular/common","@angular/core"],i):i((o.ng=o.ng||{},o.ng.platformBrowser=o.ng.platformBrowser||{}),o.ng.common,o.ng.core)}(this,function(t,e,n){"use strict";function r(){return L}function o(t){L||(L=t)}function i(){return W||(W=document.querySelector("base"))?W.getAttribute("href"):null}function s(t){return z||(z=document.createElement("a")),z.setAttribute("href",t),"/"===z.pathname.charAt(0)?z.pathname:"/"+z.pathname}function a(t,e){e=encodeURIComponent(e);for(var n=0,r=t.split(";");n<r.length;n++){var o=r[n],i=o.indexOf("="),s=-1==i?[o,""]:[o.slice(0,i),o.slice(i+1)],a=s[0],u=s[1];if(a.trim()===e)return decodeURIComponent(u)}return null}function u(t,e,n){for(var r=e.split("."),o=t;r.length>1;){var i=r.shift();o=o.hasOwnProperty(i)&&null!=o[i]?o[i]:o[i]={}}(void 0===o||null===o)&&(o={}),o[r.shift()]=n}function c(){return!!window.history.pushState}function l(t,e){var n=function(){var n=r(),o=Array.prototype.slice.apply(n.querySelectorAll(e,"style[ng-transition]"));o.filter(function(e){return n.getAttribute(e,"ng-transition")===t}).forEach(function(t){return n.remove(t)})};return n}function p(t){return n.getDebugNode(t)}function h(t,e){var n=(t||[]).concat(e||[]);return r().setGlobalVar(nt,p),r().setGlobalVar(rt,tt({},et,f(n||[]))),function(){return p}}function f(t){return t.reduce(function(t,e){return t[e.name]=e.token,t},{})}function d(t){return yt.replace(ht,t)}function y(t){return dt.replace(ht,t)}function v(t,e,n){for(var r=0;r<e.length;r++){var o=e[r];Array.isArray(o)?v(t,o,n):(o=o.replace(ht,t),n.push(o))}return n}function m(t){return function(e){var n=t(e);n===!1&&(e.preventDefault(),e.returnValue=!1)}}function g(t,e){if(t.charCodeAt(0)===gt)throw new Error("Found the synthetic "+e+" "+t+'. Please include either "BrowserAnimationsModule" or "NoopAnimationsModule" in your application.')}function _(t){return t=String(t),t.match(Ot)||t.match(Mt)?t:(n.isDevMode()&&r().log("WARNING: sanitizing unsafe URL value "+t+" (see http://g.co/ng/security#xss)"),"unsafe:"+t)}function b(t){return t=String(t),t.split(",").map(function(t){return _(t.trim())}).join(", ")}function w(){if(Rt)return Rt;kt=r();var t=kt.createElement("template");if("content"in t)return t;var e=kt.createHtmlDocument();if(Rt=kt.querySelector(e,"body"),null==Rt){var n=kt.createElement("html",e);Rt=kt.createElement("body",e),kt.appendChild(n,Rt),kt.appendChild(e,n)}return Rt}function C(t){for(var e={},n=0,r=t.split(",");n<r.length;n++){var o=r[n];e[o]=!0}return e}function E(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];for(var n={},r=0,o=t;r<o.length;r++){ +var i=o[r];for(var s in i)i.hasOwnProperty(s)&&(n[s]=!0)}return n}function S(t,e){if(e&&kt.contains(t,e))throw new Error("Failed to sanitize html because the element is clobbered: "+kt.getOuterHTML(t));return e}function x(t){return t.replace(/&/g,"&").replace(Gt,function(t){var e=t.charCodeAt(0),n=t.charCodeAt(1);return"&#"+(1024*(e-55296)+(n-56320)+65536)+";"}).replace(Wt,function(t){return"&#"+t.charCodeAt(0)+";"}).replace(/</g,"<").replace(/>/g,">")}function T(t){kt.attributeMap(t).forEach(function(e,n){("xmlns:ns1"===n||0===n.indexOf("ns1:"))&&kt.removeAttribute(t,n)});for(var e=0,n=kt.childNodesAsList(t);e<n.length;e++){var r=n[e];kt.isElementNode(r)&&T(r)}}function P(t,e){try{var r=w(),o=e?String(e):"",i=5,s=o;do{if(0===i)throw new Error("Failed to sanitize html because the input is unstable");i--,o=s,kt.setInnerHTML(r,o),t.documentMode&&T(r),s=kt.getInnerHTML(r)}while(o!==s);for(var a=new zt,u=a.sanitizeChildren(kt.getTemplateContent(r)||r),c=kt.getTemplateContent(r)||r,l=0,p=kt.childNodesAsList(c);l<p.length;l++){var h=p[l];kt.removeChild(c,h)}return n.isDevMode()&&a.sanitizedSomething&&kt.log("WARNING: sanitizing HTML stripped some content (see http://g.co/ng/security#xss)."),u}catch(f){throw Rt=null,f}}function A(t){for(var e=!0,n=!0,r=0;r<t.length;r++){var o=t.charAt(r);"'"===o&&n?e=!e:'"'===o&&e&&(n=!n)}return e&&n}function O(t){if(t=String(t).trim(),!t)return"";var e=t.match(te);return e&&_(e[1])===e[1]||t.match(Jt)&&A(t)?t:(n.isDevMode()&&r().log("WARNING: sanitizing unsafe style value "+t+" (see http://g.co/ng/security#xss)."),"unsafe")}function M(){G.makeCurrent(),Y.init()}function R(){return new n.ErrorHandler}function k(){return document}function I(t){return r().setGlobalVar(ve,new ye(t)),t}function N(){r().setGlobalVar(ve,null)}var D,j=void 0||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},L=null,V=function(){function t(){this.resourceLoaderType=null}return t.prototype.hasProperty=function(){},t.prototype.setProperty=function(){},t.prototype.getProperty=function(){},t.prototype.invoke=function(){},t.prototype.logError=function(){},t.prototype.log=function(){},t.prototype.logGroup=function(){},t.prototype.logGroupEnd=function(){},Object.defineProperty(t.prototype,"attrToPropMap",{get:function(){return this._attrToPropMap},set:function(t){this._attrToPropMap=t},enumerable:!0,configurable:!0}),t.prototype.contains=function(){},t.prototype.parse=function(){},t.prototype.querySelector=function(){},t.prototype.querySelectorAll=function(){},t.prototype.on=function(){},t.prototype.onAndCancel=function(){},t.prototype.dispatchEvent=function(){},t.prototype.createMouseEvent=function(){},t.prototype.createEvent=function(){},t.prototype.preventDefault=function(){},t.prototype.isPrevented=function(){},t.prototype.getInnerHTML=function(){},t.prototype.getTemplateContent=function(){},t.prototype.getOuterHTML=function(){},t.prototype.nodeName=function(){},t.prototype.nodeValue=function(){},t.prototype.type=function(){},t.prototype.content=function(){},t.prototype.firstChild=function(){},t.prototype.nextSibling=function(){},t.prototype.parentElement=function(){},t.prototype.childNodes=function(){},t.prototype.childNodesAsList=function(){},t.prototype.clearNodes=function(){},t.prototype.appendChild=function(){},t.prototype.removeChild=function(){},t.prototype.replaceChild=function(){},t.prototype.remove=function(){},t.prototype.insertBefore=function(){},t.prototype.insertAllBefore=function(){},t.prototype.insertAfter=function(){},t.prototype.setInnerHTML=function(){},t.prototype.getText=function(){},t.prototype.setText=function(){},t.prototype.getValue=function(){},t.prototype.setValue=function(){},t.prototype.getChecked=function(){},t.prototype.setChecked=function(){},t.prototype.createComment=function(){},t.prototype.createTemplate=function(){},t.prototype.createElement=function(){},t.prototype.createElementNS=function(){},t.prototype.createTextNode=function(){},t.prototype.createScriptTag=function(){},t.prototype.createStyleElement=function(){},t.prototype.createShadowRoot=function(){},t.prototype.getShadowRoot=function(){},t.prototype.getHost=function(){},t.prototype.getDistributedNodes=function(){},t.prototype.clone=function(){},t.prototype.getElementsByClassName=function(){},t.prototype.getElementsByTagName=function(){},t.prototype.classList=function(){},t.prototype.addClass=function(){},t.prototype.removeClass=function(){},t.prototype.hasClass=function(){},t.prototype.setStyle=function(){},t.prototype.removeStyle=function(){},t.prototype.getStyle=function(){},t.prototype.hasStyle=function(){},t.prototype.tagName=function(){},t.prototype.attributeMap=function(){},t.prototype.hasAttribute=function(){},t.prototype.hasAttributeNS=function(){},t.prototype.getAttribute=function(){},t.prototype.getAttributeNS=function(){},t.prototype.setAttribute=function(){},t.prototype.setAttributeNS=function(){},t.prototype.removeAttribute=function(){},t.prototype.removeAttributeNS=function(){},t.prototype.templateAwareRoot=function(){},t.prototype.createHtmlDocument=function(){},t.prototype.getBoundingClientRect=function(){},t.prototype.getTitle=function(){},t.prototype.setTitle=function(){},t.prototype.elementMatches=function(){},t.prototype.isTemplateElement=function(){},t.prototype.isTextNode=function(){},t.prototype.isCommentNode=function(){},t.prototype.isElementNode=function(){},t.prototype.hasShadowRoot=function(){},t.prototype.isShadowRoot=function(){},t.prototype.importIntoDoc=function(){},t.prototype.adoptNode=function(){},t.prototype.getHref=function(){},t.prototype.getEventKey=function(){},t.prototype.resolveAndSetHref=function(){},t.prototype.supportsDOMEvents=function(){},t.prototype.supportsNativeShadowDOM=function(){},t.prototype.getGlobalEventTarget=function(){},t.prototype.getHistory=function(){},t.prototype.getLocation=function(){},t.prototype.getBaseHref=function(){},t.prototype.resetBaseElement=function(){},t.prototype.getUserAgent=function(){},t.prototype.setData=function(){},t.prototype.getComputedStyle=function(){},t.prototype.getData=function(){},t.prototype.setGlobalVar=function(){},t.prototype.supportsWebAnimation=function(){},t.prototype.performanceNow=function(){},t.prototype.getAnimationPrefix=function(){},t.prototype.getTransitionEnd=function(){},t.prototype.supportsAnimation=function(){},t.prototype.supportsCookies=function(){},t.prototype.getCookie=function(){},t.prototype.setCookie=function(){},t}(),F=function(t){function e(){var e=t.call(this)||this;e._animationPrefix=null,e._transitionEnd=null;try{var n=e.createElement("div",document);if(null!=e.getStyle(n,"animationName"))e._animationPrefix="";else for(var r=["Webkit","Moz","O","ms"],o=0;o<r.length;o++)if(null!=e.getStyle(n,r[o]+"AnimationName")){e._animationPrefix="-"+r[o].toLowerCase()+"-";break}var i={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend",transition:"transitionend"};Object.keys(i).forEach(function(t){null!=e.getStyle(n,t)&&(e._transitionEnd=i[t])})}catch(s){e._animationPrefix=null,e._transitionEnd=null}return e}return j(e,t),e.prototype.getDistributedNodes=function(t){return t.getDistributedNodes()},e.prototype.resolveAndSetHref=function(t,e,n){t.href=null==n?e:e+"/../"+n},e.prototype.supportsDOMEvents=function(){return!0},e.prototype.supportsNativeShadowDOM=function(){return"function"==typeof document.body.createShadowRoot},e.prototype.getAnimationPrefix=function(){return this._animationPrefix?this._animationPrefix:""},e.prototype.getTransitionEnd=function(){return this._transitionEnd?this._transitionEnd:""},e.prototype.supportsAnimation=function(){return null!=this._animationPrefix&&null!=this._transitionEnd},e}(V),U={"class":"className",innerHtml:"innerHTML",readonly:"readOnly",tabindex:"tabIndex"},B=3,H={"\b":"Backspace"," ":"Tab","":"Delete","":"Escape",Del:"Delete",Esc:"Escape",Left:"ArrowLeft",Right:"ArrowRight",Up:"ArrowUp",Down:"ArrowDown",Menu:"ContextMenu",Scroll:"ScrollLock",Win:"OS"},q={A:"1",B:"2",C:"3",D:"4",E:"5",F:"6",G:"7",H:"8",I:"9",J:"*",K:"+",M:"-",N:".",O:"/","`":"0","Â":"NumLock"};n.ɵglobal.Node&&(D=n.ɵglobal.Node.prototype.contains||function(t){return!!(16&this.compareDocumentPosition(t))});var z,G=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return j(e,t),e.prototype.parse=function(){throw new Error("parse not implemented")},e.makeCurrent=function(){o(new e)},e.prototype.hasProperty=function(t,e){return e in t},e.prototype.setProperty=function(t,e,n){t[e]=n},e.prototype.getProperty=function(t,e){return t[e]},e.prototype.invoke=function(t,e,n){t[e].apply(t,n)},e.prototype.logError=function(t){window.console&&(console.error?console.error(t):console.log(t))},e.prototype.log=function(t){window.console&&window.console.log&&window.console.log(t)},e.prototype.logGroup=function(t){window.console&&window.console.group&&window.console.group(t)},e.prototype.logGroupEnd=function(){window.console&&window.console.groupEnd&&window.console.groupEnd()},Object.defineProperty(e.prototype,"attrToPropMap",{get:function(){return U},enumerable:!0,configurable:!0}),e.prototype.contains=function(t,e){return D.call(t,e)},e.prototype.querySelector=function(t,e){return t.querySelector(e)},e.prototype.querySelectorAll=function(t,e){return t.querySelectorAll(e)},e.prototype.on=function(t,e,n){t.addEventListener(e,n,!1)},e.prototype.onAndCancel=function(t,e,n){return t.addEventListener(e,n,!1),function(){t.removeEventListener(e,n,!1)}},e.prototype.dispatchEvent=function(t,e){t.dispatchEvent(e)},e.prototype.createMouseEvent=function(t){var e=document.createEvent("MouseEvent");return e.initEvent(t,!0,!0),e},e.prototype.createEvent=function(t){var e=document.createEvent("Event");return e.initEvent(t,!0,!0),e},e.prototype.preventDefault=function(t){t.preventDefault(),t.returnValue=!1},e.prototype.isPrevented=function(t){return t.defaultPrevented||null!=t.returnValue&&!t.returnValue},e.prototype.getInnerHTML=function(t){return t.innerHTML},e.prototype.getTemplateContent=function(t){return"content"in t&&t instanceof HTMLTemplateElement?t.content:null},e.prototype.getOuterHTML=function(t){return t.outerHTML},e.prototype.nodeName=function(t){return t.nodeName},e.prototype.nodeValue=function(t){return t.nodeValue},e.prototype.type=function(t){return t.type},e.prototype.content=function(t){return this.hasProperty(t,"content")?t.content:t},e.prototype.firstChild=function(t){return t.firstChild},e.prototype.nextSibling=function(t){return t.nextSibling},e.prototype.parentElement=function(t){return t.parentNode},e.prototype.childNodes=function(t){return t.childNodes},e.prototype.childNodesAsList=function(t){for(var e=t.childNodes,n=new Array(e.length),r=0;r<e.length;r++)n[r]=e[r];return n},e.prototype.clearNodes=function(t){for(;t.firstChild;)t.removeChild(t.firstChild)},e.prototype.appendChild=function(t,e){t.appendChild(e)},e.prototype.removeChild=function(t,e){t.removeChild(e)},e.prototype.replaceChild=function(t,e,n){t.replaceChild(e,n)},e.prototype.remove=function(t){return t.parentNode&&t.parentNode.removeChild(t),t},e.prototype.insertBefore=function(t,e,n){t.insertBefore(n,e)},e.prototype.insertAllBefore=function(t,e,n){n.forEach(function(n){return t.insertBefore(n,e)})},e.prototype.insertAfter=function(t,e,n){t.insertBefore(n,e.nextSibling)},e.prototype.setInnerHTML=function(t,e){t.innerHTML=e},e.prototype.getText=function(t){return t.textContent},e.prototype.setText=function(t,e){t.textContent=e},e.prototype.getValue=function(t){return t.value},e.prototype.setValue=function(t,e){t.value=e},e.prototype.getChecked=function(t){return t.checked},e.prototype.setChecked=function(t,e){t.checked=e},e.prototype.createComment=function(t){return document.createComment(t)},e.prototype.createTemplate=function(t){var e=document.createElement("template");return e.innerHTML=t,e},e.prototype.createElement=function(t,e){return void 0===e&&(e=document),e.createElement(t)},e.prototype.createElementNS=function(t,e,n){return void 0===n&&(n=document),n.createElementNS(t,e)},e.prototype.createTextNode=function(t,e){return void 0===e&&(e=document),e.createTextNode(t)},e.prototype.createScriptTag=function(t,e,n){void 0===n&&(n=document);var r=n.createElement("SCRIPT");return r.setAttribute(t,e),r},e.prototype.createStyleElement=function(t,e){void 0===e&&(e=document);var n=e.createElement("style");return this.appendChild(n,this.createTextNode(t)),n},e.prototype.createShadowRoot=function(t){return t.createShadowRoot()},e.prototype.getShadowRoot=function(t){return t.shadowRoot},e.prototype.getHost=function(t){return t.host},e.prototype.clone=function(t){return t.cloneNode(!0)},e.prototype.getElementsByClassName=function(t,e){return t.getElementsByClassName(e)},e.prototype.getElementsByTagName=function(t,e){return t.getElementsByTagName(e)},e.prototype.classList=function(t){return Array.prototype.slice.call(t.classList,0)},e.prototype.addClass=function(t,e){t.classList.add(e)},e.prototype.removeClass=function(t,e){t.classList.remove(e)},e.prototype.hasClass=function(t,e){return t.classList.contains(e)},e.prototype.setStyle=function(t,e,n){t.style[e]=n},e.prototype.removeStyle=function(t,e){t.style[e]=""},e.prototype.getStyle=function(t,e){return t.style[e]},e.prototype.hasStyle=function(t,e,n){void 0===n&&(n=null);var r=this.getStyle(t,e)||"";return n?r==n:r.length>0},e.prototype.tagName=function(t){return t.tagName},e.prototype.attributeMap=function(t){for(var e=new Map,n=t.attributes,r=0;r<n.length;r++){var o=n[r];e.set(o.name,o.value)}return e},e.prototype.hasAttribute=function(t,e){return t.hasAttribute(e)},e.prototype.hasAttributeNS=function(t,e,n){return t.hasAttributeNS(e,n)},e.prototype.getAttribute=function(t,e){return t.getAttribute(e)},e.prototype.getAttributeNS=function(t,e,n){return t.getAttributeNS(e,n)},e.prototype.setAttribute=function(t,e,n){t.setAttribute(e,n)},e.prototype.setAttributeNS=function(t,e,n,r){t.setAttributeNS(e,n,r)},e.prototype.removeAttribute=function(t,e){t.removeAttribute(e)},e.prototype.removeAttributeNS=function(t,e,n){t.removeAttributeNS(e,n)},e.prototype.templateAwareRoot=function(t){return this.isTemplateElement(t)?this.content(t):t},e.prototype.createHtmlDocument=function(){return document.implementation.createHTMLDocument("fakeTitle")},e.prototype.getBoundingClientRect=function(t){try{return t.getBoundingClientRect()}catch(e){return{top:0,bottom:0,left:0,right:0,width:0,height:0}}},e.prototype.getTitle=function(){return document.title},e.prototype.setTitle=function(t,e){document.title=e||""},e.prototype.elementMatches=function(t,e){return t instanceof HTMLElement?t.matches&&t.matches(e)||t.msMatchesSelector&&t.msMatchesSelector(e)||t.webkitMatchesSelector&&t.webkitMatchesSelector(e):!1},e.prototype.isTemplateElement=function(t){return t instanceof HTMLElement&&"TEMPLATE"==t.nodeName},e.prototype.isTextNode=function(t){return t.nodeType===Node.TEXT_NODE},e.prototype.isCommentNode=function(t){return t.nodeType===Node.COMMENT_NODE},e.prototype.isElementNode=function(t){return t.nodeType===Node.ELEMENT_NODE},e.prototype.hasShadowRoot=function(t){return null!=t.shadowRoot&&t instanceof HTMLElement},e.prototype.isShadowRoot=function(t){return t instanceof DocumentFragment},e.prototype.importIntoDoc=function(t){return document.importNode(this.templateAwareRoot(t),!0)},e.prototype.adoptNode=function(t){return document.adoptNode(t)},e.prototype.getHref=function(t){return t.href},e.prototype.getEventKey=function(t){var e=t.key;if(null==e){if(e=t.keyIdentifier,null==e)return"Unidentified";e.startsWith("U+")&&(e=String.fromCharCode(parseInt(e.substring(2),16)),t.location===B&&q.hasOwnProperty(e)&&(e=q[e]))}return H[e]||e},e.prototype.getGlobalEventTarget=function(t,e){return"window"===e?window:"document"===e?document:"body"===e?document.body:void 0},e.prototype.getHistory=function(){return window.history},e.prototype.getLocation=function(){return window.location},e.prototype.getBaseHref=function(){var t=i();return null==t?null:s(t)},e.prototype.resetBaseElement=function(){W=null},e.prototype.getUserAgent=function(){return window.navigator.userAgent},e.prototype.setData=function(t,e,n){this.setAttribute(t,"data-"+e,n)},e.prototype.getData=function(t,e){return this.getAttribute(t,"data-"+e)},e.prototype.getComputedStyle=function(t){return getComputedStyle(t)},e.prototype.setGlobalVar=function(t,e){u(n.ɵglobal,t,e)},e.prototype.supportsWebAnimation=function(){return"function"==typeof Element.prototype.animate},e.prototype.performanceNow=function(){return window.performance&&window.performance.now?window.performance.now():(new Date).getTime()},e.prototype.supportsCookies=function(){return!0},e.prototype.getCookie=function(t){return a(document.cookie,t)},e.prototype.setCookie=function(t,e){document.cookie=encodeURIComponent(t)+"="+encodeURIComponent(e)},e}(F),W=null,K=new n.InjectionToken("DocumentToken"),Q=function(t){function e(e){var n=t.call(this)||this;return n._doc=e,n._init(),n}return j(e,t),e.prototype._init=function(){this._location=r().getLocation(),this._history=r().getHistory()},Object.defineProperty(e.prototype,"location",{get:function(){return this._location},enumerable:!0,configurable:!0}),e.prototype.getBaseHrefFromDOM=function(){return r().getBaseHref(this._doc)},e.prototype.onPopState=function(t){r().getGlobalEventTarget(this._doc,"window").addEventListener("popstate",t,!1)},e.prototype.onHashChange=function(t){r().getGlobalEventTarget(this._doc,"window").addEventListener("hashchange",t,!1)},Object.defineProperty(e.prototype,"pathname",{get:function(){return this._location.pathname},set:function(t){this._location.pathname=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"search",{get:function(){return this._location.search},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"hash",{get:function(){return this._location.hash},enumerable:!0,configurable:!0}),e.prototype.pushState=function(t,e,n){c()?this._history.pushState(t,e,n):this._location.hash=n},e.prototype.replaceState=function(t,e,n){c()?this._history.replaceState(t,e,n):this._location.hash=n},e.prototype.forward=function(){this._history.forward()},e.prototype.back=function(){this._history.back()},e}(e.PlatformLocation);Q.decorators=[{type:n.Injectable}],Q.ctorParameters=function(){return[{type:void 0,decorators:[{type:n.Inject,args:[K]}]}]};var $=function(){function t(t){this._doc=t,this._dom=r()}return t.prototype.addTag=function(t,e){return void 0===e&&(e=!1),t?this._getOrCreateElement(t,e):null},t.prototype.addTags=function(t,e){var n=this;return void 0===e&&(e=!1),t?t.reduce(function(t,r){return r&&t.push(n._getOrCreateElement(r,e)),t},[]):[]},t.prototype.getTag=function(t){return t?this._dom.querySelector(this._doc,"meta["+t+"]"):null},t.prototype.getTags=function(t){if(!t)return[];var e=this._dom.querySelectorAll(this._doc,"meta["+t+"]");return e?[].slice.call(e):[]},t.prototype.updateTag=function(t,e){if(!t)return null;e=e||this._parseSelector(t);var n=this.getTag(e);return n?this._setMetaElementAttributes(t,n):this._getOrCreateElement(t,!0)},t.prototype.removeTag=function(t){this.removeTagElement(this.getTag(t))},t.prototype.removeTagElement=function(t){t&&this._dom.remove(t)},t.prototype._getOrCreateElement=function(t,e){if(void 0===e&&(e=!1),!e){var n=this._parseSelector(t),r=this.getTag(n);if(r&&this._containsAttributes(t,r))return r}var o=this._dom.createElement("meta");this._setMetaElementAttributes(t,o);var i=this._dom.getElementsByTagName(this._doc,"head")[0];return this._dom.appendChild(i,o),o},t.prototype._setMetaElementAttributes=function(t,e){var n=this;return Object.keys(t).forEach(function(r){return n._dom.setAttribute(e,r,t[r])}),e},t.prototype._parseSelector=function(t){var e=t.name?"name":"property";return e+'="'+t[e]+'"'},t.prototype._containsAttributes=function(t,e){var n=this;return Object.keys(t).every(function(r){return n._dom.getAttribute(e,r)===t[r]})},t}();$.decorators=[{type:n.Injectable}],$.ctorParameters=function(){return[{type:void 0,decorators:[{type:n.Inject,args:[K]}]}]};var X=new n.InjectionToken("TRANSITION_ID"),Z=[{provide:n.APP_INITIALIZER,useFactory:l,deps:[X,K],multi:!0}],Y=function(){function t(){}return t.init=function(){n.setTestabilityGetter(new t)},t.prototype.addToWindow=function(t){n.ɵglobal.getAngularTestability=function(e,n){void 0===n&&(n=!0);var r=t.findTestabilityInTree(e,n);if(null==r)throw new Error("Could not find testability for element.");return r},n.ɵglobal.getAllAngularTestabilities=function(){return t.getAllTestabilities()},n.ɵglobal.getAllAngularRootElements=function(){return t.getAllRootElements()};var e=function(t){var e=n.ɵglobal.getAllAngularTestabilities(),r=e.length,o=!1,i=function(e){o=o||e,r--,0==r&&t(o)};e.forEach(function(t){t.whenStable(i)})};n.ɵglobal.frameworkStabilizers||(n.ɵglobal.frameworkStabilizers=[]),n.ɵglobal.frameworkStabilizers.push(e)},t.prototype.findTestabilityInTree=function(t,e,n){if(null==e)return null;var o=t.getTestability(e);return null!=o?o:n?r().isShadowRoot(e)?this.findTestabilityInTree(t,r().getHost(e),!0):this.findTestabilityInTree(t,r().parentElement(e),!0):null},t}(),J=function(){function t(t){this._doc=t}return t.prototype.getTitle=function(){return r().getTitle(this._doc)},t.prototype.setTitle=function(t){r().setTitle(this._doc,t)},t}();J.decorators=[{type:n.Injectable}],J.ctorParameters=function(){return[{type:void 0,decorators:[{type:n.Inject,args:[K]}]}]};var tt=void 0||Object.assign||function(t){for(var e,n=1,r=arguments.length;r>n;n++){e=arguments[n];for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])}return t},et={ApplicationRef:n.ApplicationRef,NgZone:n.NgZone},nt="ng.probe",rt="ng.coreTokens",ot=function(){function t(t,e){this.name=t,this.token=e}return t}(),it=[{provide:n.APP_INITIALIZER,useFactory:h,deps:[[ot,new n.Optional],[n.NgProbeToken,new n.Optional]],multi:!0}],st=new n.InjectionToken("EventManagerPlugins"),at=function(){function t(t,e){var n=this;this._zone=e,this._eventNameToPlugin=new Map,t.forEach(function(t){return t.manager=n}),this._plugins=t.slice().reverse()}return t.prototype.addEventListener=function(t,e,n){var r=this._findPluginFor(e);return r.addEventListener(t,e,n)},t.prototype.addGlobalEventListener=function(t,e,n){var r=this._findPluginFor(e);return r.addGlobalEventListener(t,e,n)},t.prototype.getZone=function(){return this._zone},t.prototype._findPluginFor=function(t){var e=this._eventNameToPlugin.get(t);if(e)return e;for(var n=this._plugins,r=0;r<n.length;r++){var o=n[r];if(o.supports(t))return this._eventNameToPlugin.set(t,o),o}throw new Error("No event manager plugin found for event "+t)},t}();at.decorators=[{type:n.Injectable}],at.ctorParameters=function(){return[{type:Array,decorators:[{type:n.Inject,args:[st]}]},{type:n.NgZone}]};var ut=function(){function t(t){this._doc=t}return t.prototype.supports=function(){},t.prototype.addEventListener=function(){},t.prototype.addGlobalEventListener=function(t,e,n){var o=r().getGlobalEventTarget(this._doc,t);if(!o)throw new Error("Unsupported event target "+o+" for event "+e);return this.addEventListener(o,e,n)},t}(),ct=function(){function t(){this._stylesSet=new Set}return t.prototype.addStyles=function(t){var e=this,n=new Set;t.forEach(function(t){e._stylesSet.has(t)||(e._stylesSet.add(t),n.add(t))}),this.onStylesAdded(n)},t.prototype.onStylesAdded=function(){},t.prototype.getAllStyles=function(){return Array.from(this._stylesSet)},t}();ct.decorators=[{type:n.Injectable}],ct.ctorParameters=function(){return[]};var lt=function(t){function e(e){var n=t.call(this)||this;return n._doc=e,n._hostNodes=new Set,n._styleNodes=new Set,n._hostNodes.add(e.head),n}return j(e,t),e.prototype._addStylesToHost=function(t,e){var n=this;t.forEach(function(t){var r=n._doc.createElement("style");r.textContent=t,n._styleNodes.add(e.appendChild(r))})},e.prototype.addHost=function(t){this._addStylesToHost(this._stylesSet,t),this._hostNodes.add(t)},e.prototype.removeHost=function(t){this._hostNodes["delete"](t)},e.prototype.onStylesAdded=function(t){var e=this;this._hostNodes.forEach(function(n){return e._addStylesToHost(t,n)})},e.prototype.ngOnDestroy=function(){this._styleNodes.forEach(function(t){return r().remove(t)})},e}(ct);lt.decorators=[{type:n.Injectable}],lt.ctorParameters=function(){return[{type:void 0,decorators:[{type:n.Inject,args:[K]}]}]};var pt={svg:"http://www.w3.org/2000/svg",xhtml:"http://www.w3.org/1999/xhtml",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"},ht=/%COMP%/g,ft="%COMP%",dt="_nghost-"+ft,yt="_ngcontent-"+ft,vt=function(){function t(t,e){this.eventManager=t,this.sharedStylesHost=e,this.rendererByCompId=new Map,this.defaultRenderer=new mt(t)}return t.prototype.createRenderer=function(t,e){if(!t||!e)return this.defaultRenderer;switch(e.encapsulation){case n.ViewEncapsulation.Emulated:var r=this.rendererByCompId.get(e.id);return r||(r=new _t(this.eventManager,this.sharedStylesHost,e),this.rendererByCompId.set(e.id,r)),r.applyToHost(t),r;case n.ViewEncapsulation.Native:return new bt(this.eventManager,this.sharedStylesHost,t,e);default:if(!this.rendererByCompId.has(e.id)){var o=v(e.id,e.styles,[]);this.sharedStylesHost.addStyles(o),this.rendererByCompId.set(e.id,this.defaultRenderer)}return this.defaultRenderer}},t}();vt.decorators=[{type:n.Injectable}],vt.ctorParameters=function(){return[{type:at},{type:lt}]};var mt=function(){function t(t){this.eventManager=t,this.data=Object.create(null)}return t.prototype.destroy=function(){},t.prototype.createElement=function(t,e){return e?document.createElementNS(pt[e],t):document.createElement(t)},t.prototype.createComment=function(t){return document.createComment(t)},t.prototype.createText=function(t){return document.createTextNode(t)},t.prototype.appendChild=function(t,e){t.appendChild(e)},t.prototype.insertBefore=function(t,e,n){t&&t.insertBefore(e,n)},t.prototype.removeChild=function(t,e){t&&t.removeChild(e)},t.prototype.selectRootElement=function(t){var e="string"==typeof t?document.querySelector(t):t;if(!e)throw new Error('The selector "'+t+'" did not match any elements');return e.textContent="",e},t.prototype.parentNode=function(t){return t.parentNode},t.prototype.nextSibling=function(t){return t.nextSibling},t.prototype.setAttribute=function(t,e,n,r){if(r){e=r+":"+e;var o=pt[r];o?t.setAttributeNS(o,e,n):t.setAttribute(e,n)}else t.setAttribute(e,n)},t.prototype.removeAttribute=function(t,e,n){if(n){var r=pt[n];r?t.removeAttributeNS(r,e):t.removeAttribute(n+":"+e)}else t.removeAttribute(e)},t.prototype.addClass=function(t,e){t.classList.add(e)},t.prototype.removeClass=function(t,e){t.classList.remove(e)},t.prototype.setStyle=function(t,e,r,o){o&n.RendererStyleFlags2.DashCase?t.style.setProperty(e,r,o&n.RendererStyleFlags2.Important?"important":""):t.style[e]=r},t.prototype.removeStyle=function(t,e,r){r&n.RendererStyleFlags2.DashCase?t.style.removeProperty(e):t.style[e]=""},t.prototype.setProperty=function(t,e,n){g(e,"property"),t[e]=n},t.prototype.setValue=function(t,e){t.nodeValue=e},t.prototype.listen=function(t,e,n){return g(e,"listener"),"string"==typeof t?this.eventManager.addGlobalEventListener(t,e,m(n)):this.eventManager.addEventListener(t,e,m(n))},t}(),gt="@".charCodeAt(0),_t=function(t){function e(e,n,r){var o=t.call(this,e)||this;o.component=r;var i=v(r.id,r.styles,[]);return n.addStyles(i),o.contentAttr=d(r.id),o.hostAttr=y(r.id),o}return j(e,t),e.prototype.applyToHost=function(e){t.prototype.setAttribute.call(this,e,this.hostAttr,"")},e.prototype.createElement=function(e,n){var r=t.prototype.createElement.call(this,e,n);return t.prototype.setAttribute.call(this,r,this.contentAttr,""),r},e}(mt),bt=function(t){function e(e,n,r,o){var i=t.call(this,e)||this;i.sharedStylesHost=n,i.hostEl=r,i.component=o,i.shadowRoot=r.createShadowRoot(),i.sharedStylesHost.addHost(i.shadowRoot);for(var s=v(o.id,o.styles,[]),a=0;a<s.length;a++){var u=document.createElement("style");u.textContent=s[a],i.shadowRoot.appendChild(u)}return i}return j(e,t),e.prototype.nodeOrShadowRoot=function(t){return t===this.hostEl?this.shadowRoot:t},e.prototype.destroy=function(){this.sharedStylesHost.removeHost(this.shadowRoot)},e.prototype.appendChild=function(e,n){return t.prototype.appendChild.call(this,this.nodeOrShadowRoot(e),n)},e.prototype.insertBefore=function(e,n,r){return t.prototype.insertBefore.call(this,this.nodeOrShadowRoot(e),n,r)},e.prototype.removeChild=function(e,n){return t.prototype.removeChild.call(this,this.nodeOrShadowRoot(e),n)},e.prototype.parentNode=function(e){return this.nodeOrShadowRoot(t.prototype.parentNode.call(this,this.nodeOrShadowRoot(e)))},e}(mt),wt=function(t){function e(e){return t.call(this,e)||this}return j(e,t),e.prototype.supports=function(){return!0},e.prototype.addEventListener=function(t,e,n){return t.addEventListener(e,n,!1),function(){return t.removeEventListener(e,n,!1)}},e}(ut);wt.decorators=[{type:n.Injectable}],wt.ctorParameters=function(){return[{type:void 0,decorators:[{type:n.Inject,args:[K]}]}]};var Ct={pan:!0,panstart:!0,panmove:!0,panend:!0,pancancel:!0,panleft:!0,panright:!0,panup:!0,pandown:!0,pinch:!0,pinchstart:!0,pinchmove:!0,pinchend:!0,pinchcancel:!0,pinchin:!0,pinchout:!0,press:!0,pressup:!0,rotate:!0,rotatestart:!0,rotatemove:!0,rotateend:!0,rotatecancel:!0,swipe:!0,swipeleft:!0,swiperight:!0,swipeup:!0,swipedown:!0,tap:!0},Et=new n.InjectionToken("HammerGestureConfig"),St=function(){function t(){this.events=[],this.overrides={}}return t.prototype.buildHammer=function(t){var e=new Hammer(t);e.get("pinch").set({enable:!0}),e.get("rotate").set({enable:!0});for(var n in this.overrides)e.get(n).set(this.overrides[n]);return e},t}();St.decorators=[{type:n.Injectable}],St.ctorParameters=function(){return[]};var xt=function(t){function e(e,n){var r=t.call(this,e)||this;return r._config=n,r}return j(e,t),e.prototype.supports=function(t){if(!Ct.hasOwnProperty(t.toLowerCase())&&!this.isCustomEvent(t))return!1;if(!window.Hammer)throw new Error("Hammer.js is not loaded, can not bind "+t+" event");return!0},e.prototype.addEventListener=function(t,e,n){var r=this,o=this.manager.getZone();return e=e.toLowerCase(),o.runOutsideAngular(function(){var i=r._config.buildHammer(t),s=function(t){o.runGuarded(function(){n(t)})};return i.on(e,s),function(){return i.off(e,s)}})},e.prototype.isCustomEvent=function(t){return this._config.events.indexOf(t)>-1},e}(ut);xt.decorators=[{type:n.Injectable}],xt.ctorParameters=function(){return[{type:void 0,decorators:[{type:n.Inject,args:[K]}]},{type:St,decorators:[{type:n.Inject,args:[Et]}]}]};var Tt=["alt","control","meta","shift"],Pt={alt:function(t){return t.altKey},control:function(t){return t.ctrlKey},meta:function(t){return t.metaKey},shift:function(t){return t.shiftKey}},At=function(t){function e(e){return t.call(this,e)||this}return j(e,t),e.prototype.supports=function(t){return null!=e.parseEventName(t)},e.prototype.addEventListener=function(t,n,o){var i=e.parseEventName(n),s=e.eventCallback(i.fullKey,o,this.manager.getZone());return this.manager.getZone().runOutsideAngular(function(){return r().onAndCancel(t,i.domEventName,s)})},e.parseEventName=function(t){var n=t.toLowerCase().split("."),r=n.shift();if(0===n.length||"keydown"!==r&&"keyup"!==r)return null;var o=e._normalizeKey(n.pop()),i="";if(Tt.forEach(function(t){var e=n.indexOf(t);e>-1&&(n.splice(e,1),i+=t+".")}),i+=o,0!=n.length||0===o.length)return null;var s={};return s.domEventName=r,s.fullKey=i,s},e.getEventFullKey=function(t){var e="",n=r().getEventKey(t);return n=n.toLowerCase()," "===n?n="space":"."===n&&(n="dot"),Tt.forEach(function(r){if(r!=n){var o=Pt[r];o(t)&&(e+=r+".")}}),e+=n},e.eventCallback=function(t,n,r){return function(o){e.getEventFullKey(o)===t&&r.runGuarded(function(){return n(o)})}},e._normalizeKey=function(t){switch(t){ +case"esc":return"escape";default:return t}},e}(ut);At.decorators=[{type:n.Injectable}],At.ctorParameters=function(){return[{type:void 0,decorators:[{type:n.Inject,args:[K]}]}]};var Ot=/^(?:(?:https?|mailto|ftp|tel|file):|[^&:\/?#]*(?:[\/?#]|$))/gi,Mt=/^data:(?:image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp)|video\/(?:mpeg|mp4|ogg|webm)|audio\/(?:mp3|oga|ogg|opus));base64,[a-z0-9+\/]+=*$/i,Rt=null,kt=null,It=C("area,br,col,hr,img,wbr"),Nt=C("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),Dt=C("rp,rt"),jt=E(Dt,Nt),Lt=E(Nt,C("address,article,aside,blockquote,caption,center,del,details,dialog,dir,div,dl,figure,figcaption,footer,h1,h2,h3,h4,h5,h6,header,hgroup,hr,ins,main,map,menu,nav,ol,pre,section,summary,table,ul")),Vt=E(Dt,C("a,abbr,acronym,audio,b,bdi,bdo,big,br,cite,code,del,dfn,em,font,i,img,ins,kbd,label,map,mark,picture,q,ruby,rp,rt,s,samp,small,source,span,strike,strong,sub,sup,time,track,tt,u,var,video")),Ft=E(It,Lt,Vt,jt),Ut=C("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),Bt=C("srcset"),Ht=C("abbr,accesskey,align,alt,autoplay,axis,bgcolor,border,cellpadding,cellspacing,class,clear,color,cols,colspan,compact,controls,coords,datetime,default,dir,download,face,headers,height,hidden,hreflang,hspace,ismap,itemscope,itemprop,kind,label,lang,language,loop,media,muted,nohref,nowrap,open,preload,rel,rev,role,rows,rowspan,rules,scope,scrolling,shape,size,sizes,span,srclang,start,summary,tabindex,target,title,translate,type,usemap,valign,value,vspace,width"),qt=E(Ut,Bt,Ht),zt=function(){function t(){this.sanitizedSomething=!1,this.buf=[]}return t.prototype.sanitizeChildren=function(t){for(var e=t.firstChild;e;)if(kt.isElementNode(e)?this.startElement(e):kt.isTextNode(e)?this.chars(kt.nodeValue(e)):this.sanitizedSomething=!0,kt.firstChild(e))e=kt.firstChild(e);else for(;e;){kt.isElementNode(e)&&this.endElement(e);var n=S(e,kt.nextSibling(e));if(n){e=n;break}e=S(e,kt.parentElement(e))}return this.buf.join("")},t.prototype.startElement=function(t){var e=this,n=kt.nodeName(t).toLowerCase();return Ft.hasOwnProperty(n)?(this.buf.push("<"),this.buf.push(n),kt.attributeMap(t).forEach(function(t,n){var r=n.toLowerCase();return qt.hasOwnProperty(r)?(Ut[r]&&(t=_(t)),Bt[r]&&(t=b(t)),e.buf.push(" "),e.buf.push(n),e.buf.push('="'),e.buf.push(x(t)),void e.buf.push('"')):void(e.sanitizedSomething=!0)}),void this.buf.push(">")):void(this.sanitizedSomething=!0)},t.prototype.endElement=function(t){var e=kt.nodeName(t).toLowerCase();Ft.hasOwnProperty(e)&&!It.hasOwnProperty(e)&&(this.buf.push("</"),this.buf.push(e),this.buf.push(">"))},t.prototype.chars=function(t){this.buf.push(x(t))},t}(),Gt=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,Wt=/([^\#-~ |!])/g,Kt="[-,.\"'%_!# a-zA-Z0-9]+",Qt="(?:matrix|translate|scale|rotate|skew|perspective)(?:X|Y|3d)?",$t="(?:rgb|hsl)a?",Xt="(?:repeating-)?(?:linear|radial)-gradient",Zt="(?:calc|attr)",Yt="\\([-0-9.%, #a-zA-Z]+\\)",Jt=new RegExp("^("+Kt+"|"+("(?:"+Qt+"|"+$t+"|"+Xt+"|"+Zt+")")+(Yt+")$"),"g"),te=/^url\(([^)]+)\)$/,ee=function(){function t(){}return t.prototype.sanitize=function(){},t.prototype.bypassSecurityTrustHtml=function(){},t.prototype.bypassSecurityTrustStyle=function(){},t.prototype.bypassSecurityTrustScript=function(){},t.prototype.bypassSecurityTrustUrl=function(){},t.prototype.bypassSecurityTrustResourceUrl=function(){},t}(),ne=function(t){function e(e){var n=t.call(this)||this;return n._doc=e,n}return j(e,t),e.prototype.sanitize=function(t,e){if(null==e)return null;switch(t){case n.SecurityContext.NONE:return e;case n.SecurityContext.HTML:return e instanceof oe?e.changingThisBreaksApplicationSecurity:(this.checkNotSafeValue(e,"HTML"),P(this._doc,String(e)));case n.SecurityContext.STYLE:return e instanceof ie?e.changingThisBreaksApplicationSecurity:(this.checkNotSafeValue(e,"Style"),O(e));case n.SecurityContext.SCRIPT:if(e instanceof se)return e.changingThisBreaksApplicationSecurity;throw this.checkNotSafeValue(e,"Script"),new Error("unsafe value used in a script context");case n.SecurityContext.URL:return e instanceof ue||e instanceof ae?e.changingThisBreaksApplicationSecurity:(this.checkNotSafeValue(e,"URL"),_(String(e)));case n.SecurityContext.RESOURCE_URL:if(e instanceof ue)return e.changingThisBreaksApplicationSecurity;throw this.checkNotSafeValue(e,"ResourceURL"),new Error("unsafe value used in a resource URL context (see http://g.co/ng/security#xss)");default:throw new Error("Unexpected SecurityContext "+t+" (see http://g.co/ng/security#xss)")}},e.prototype.checkNotSafeValue=function(t,e){if(t instanceof re)throw new Error("Required a safe "+e+", got a "+t.getTypeName()+" (see http://g.co/ng/security#xss)")},e.prototype.bypassSecurityTrustHtml=function(t){return new oe(t)},e.prototype.bypassSecurityTrustStyle=function(t){return new ie(t)},e.prototype.bypassSecurityTrustScript=function(t){return new se(t)},e.prototype.bypassSecurityTrustUrl=function(t){return new ae(t)},e.prototype.bypassSecurityTrustResourceUrl=function(t){return new ue(t)},e}(ee);ne.decorators=[{type:n.Injectable}],ne.ctorParameters=function(){return[{type:void 0,decorators:[{type:n.Inject,args:[K]}]}]};var re=function(){function t(t){this.changingThisBreaksApplicationSecurity=t}return t.prototype.getTypeName=function(){},t.prototype.toString=function(){return"SafeValue must use [property]=binding: "+this.changingThisBreaksApplicationSecurity+" (see http://g.co/ng/security#xss)"},t}(),oe=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return j(e,t),e.prototype.getTypeName=function(){return"HTML"},e}(re),ie=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return j(e,t),e.prototype.getTypeName=function(){return"Style"},e}(re),se=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return j(e,t),e.prototype.getTypeName=function(){return"Script"},e}(re),ae=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return j(e,t),e.prototype.getTypeName=function(){return"URL"},e}(re),ue=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return j(e,t),e.prototype.getTypeName=function(){return"ResourceURL"},e}(re),ce=[{provide:n.PLATFORM_ID,useValue:e.ɵPLATFORM_BROWSER_ID},{provide:n.PLATFORM_INITIALIZER,useValue:M,multi:!0},{provide:e.PlatformLocation,useClass:Q},{provide:K,useFactory:k,deps:[]}],le=[{provide:n.Sanitizer,useExisting:ee},{provide:ee,useClass:ne}],pe=n.createPlatformFactory(n.platformCore,"browser",ce),he=function(){function t(t){if(t)throw new Error("BrowserModule has already been loaded. If you need access to common directives such as NgIf and NgFor from a lazy loaded module, import CommonModule instead.")}return t.withServerTransition=function(e){return{ngModule:t,providers:[{provide:n.APP_ID,useValue:e.appId},{provide:X,useExisting:n.APP_ID},Z]}},t}();he.decorators=[{type:n.NgModule,args:[{providers:[le,{provide:n.ErrorHandler,useFactory:R,deps:[]},{provide:st,useClass:wt,multi:!0},{provide:st,useClass:At,multi:!0},{provide:st,useClass:xt,multi:!0},{provide:Et,useClass:St},vt,{provide:n.RendererFactory2,useExisting:vt},{provide:ct,useExisting:lt},lt,n.Testability,at,it,$,J],exports:[e.CommonModule,n.ApplicationModule]}]}],he.ctorParameters=function(){return[{type:he,decorators:[{type:n.Optional},{type:n.SkipSelf}]}]};var fe="undefined"!=typeof window&&window||{},de=function(){function t(t,e){this.msPerTick=t,this.numTicks=e}return t}(),ye=function(){function t(t){this.appRef=t.injector.get(n.ApplicationRef)}return t.prototype.timeChangeDetection=function(t){var e=t&&t.record,n="Change Detection",o=null!=fe.console.profile;e&&o&&fe.console.profile(n);for(var i=r().performanceNow(),s=0;5>s||r().performanceNow()-i<500;)this.appRef.tick(),s++;var a=r().performanceNow();e&&o&&fe.console.profileEnd(n);var u=(a-i)/s;return fe.console.log("ran "+s+" change detection cycles"),fe.console.log(u.toFixed(2)+" ms per check"),new de(u,s)},t}(),ve="ng.profiler",me=function(){function t(){}return t.all=function(){return function(){return!0}},t.css=function(t){return function(e){return null!=e.nativeElement?r().elementMatches(e.nativeElement,t):!1}},t.directive=function(t){return function(e){return-1!==e.providerTokens.indexOf(t)}},t}(),ge=new n.Version("4.0.1");t.BrowserModule=he,t.platformBrowser=pe,t.Meta=$,t.Title=J,t.disableDebugTools=N,t.enableDebugTools=I,t.By=me,t.NgProbeToken=ot,t.DOCUMENT=K,t.EVENT_MANAGER_PLUGINS=st,t.EventManager=at,t.HAMMER_GESTURE_CONFIG=Et,t.HammerGestureConfig=St,t.DomSanitizer=ee,t.VERSION=ge,t.ɵBROWSER_SANITIZATION_PROVIDERS=le,t.ɵINTERNAL_BROWSER_PLATFORM_PROVIDERS=ce,t.ɵinitDomAdapter=M,t.ɵBrowserDomAdapter=G,t.ɵsetValueOnPath=u,t.ɵBrowserPlatformLocation=Q,t.ɵTRANSITION_ID=X,t.ɵBrowserGetTestability=Y,t.ɵELEMENT_PROBE_PROVIDERS=it,t.ɵDomAdapter=V,t.ɵgetDOM=r,t.ɵsetRootDomAdapter=o,t.ɵDomRendererFactory2=vt,t.ɵNAMESPACE_URIS=pt,t.ɵflattenStyles=v,t.ɵshimContentAttribute=d,t.ɵshimHostAttribute=y,t.ɵDomEventsPlugin=wt,t.ɵHammerGesturesPlugin=xt,t.ɵKeyEventsPlugin=At,t.ɵDomSharedStylesHost=lt,t.ɵSharedStylesHost=ct,t.ɵb=k,t.ɵa=R,t.ɵh=F,t.ɵg=Z,t.ɵf=l,t.ɵc=h,t.ɵd=ut,t.ɵe=ne,Object.defineProperty(t,"__esModule",{value:!0})})},{"@angular/common":6,"@angular/core":8}],13:[function(e,n,r){!function(o,i){"object"==typeof r&&"undefined"!=typeof n?i(r,e("@angular/common"),e("@angular/core"),e("rxjs/BehaviorSubject"),e("rxjs/Subject"),e("rxjs/observable/from"),e("rxjs/observable/of"),e("rxjs/operator/concatMap"),e("rxjs/operator/every"),e("rxjs/operator/first"),e("rxjs/operator/map"),e("rxjs/operator/mergeMap"),e("rxjs/operator/reduce"),e("rxjs/Observable"),e("rxjs/operator/catch"),e("rxjs/operator/concatAll"),e("rxjs/util/EmptyError"),e("rxjs/observable/fromPromise"),e("rxjs/operator/last"),e("rxjs/operator/mergeAll"),e("@angular/platform-browser"),e("rxjs/operator/filter")):"function"==typeof t&&t.amd?t(["exports","@angular/common","@angular/core","rxjs/BehaviorSubject","rxjs/Subject","rxjs/observable/from","rxjs/observable/of","rxjs/operator/concatMap","rxjs/operator/every","rxjs/operator/first","rxjs/operator/map","rxjs/operator/mergeMap","rxjs/operator/reduce","rxjs/Observable","rxjs/operator/catch","rxjs/operator/concatAll","rxjs/util/EmptyError","rxjs/observable/fromPromise","rxjs/operator/last","rxjs/operator/mergeAll","@angular/platform-browser","rxjs/operator/filter"],i):i((o.ng=o.ng||{},o.ng.router=o.ng.router||{}),o.ng.common,o.ng.core,o.Rx,o.Rx,o.Rx.Observable,o.Rx.Observable,o.Rx.Observable.prototype,o.Rx.Observable.prototype,o.Rx.Observable.prototype,o.Rx.Observable.prototype,o.Rx.Observable.prototype,o.Rx.Observable.prototype,o.Rx,o.Rx.Observable.prototype,o.Rx.Observable.prototype,o.Rx,o.Rx.Observable,o.Rx.Observable.prototype,o.Rx.Observable.prototype,o.ng.platformBrowser,o.Rx.Observable.prototype)}(this,function(t,e,n,r,o,i,s,a,u,c,l,p,h,f,d,y,v,m,g,_,b,w){"use strict";function C(t){return new Le(t)}function E(t){var e=Error("NavigationCancelingError: "+t);return e[Ve]=!0,e}function S(t){return t[Ve]}function x(t,e,n){for(var r=n.path,o=r.split("/"),i={},s=[],a=0,u=0;u<o.length;++u){if(a>=t.length)return null;var c=t[a],l=o[u],p=l.startsWith(":");if(!p&&l!==c.path)return null;p&&(i[l.substring(1)]=c),s.push(c),a++}return"full"===n.pathMatch&&(e.hasChildren()||a<t.length)?null:{consumed:s,posParams:i}}function T(t,e){if(t.length!==e.length)return!1;for(var n=0;n<t.length;++n)if(!P(t[n],e[n]))return!1;return!0}function P(t,e){var n=Object.keys(t),r=Object.keys(e);if(n.length!=r.length)return!1;for(var o,i=0;i<n.length;i++)if(o=n[i],t[o]!==e[o])return!1;return!0}function A(t){return Array.prototype.concat.apply([],t)}function O(t){return t.length>0?t[t.length-1]:null}function M(t,e){for(var n in t)t.hasOwnProperty(n)&&e(t[n],n)}function R(t,e){var n=[],r={};if(M(t,function(t,o){o===je&&n.push(l.map.call(e(o,t),function(t){return r[o]=t,t}))}),M(t,function(t,o){o!==je&&n.push(l.map.call(e(o,t),function(t){return r[o]=t,t}))}),n.length>0){var o=y.concatAll.call(s.of.apply(void 0,n)),i=g.last.call(o);return l.map.call(i,function(){return r})}return s.of(r)}function k(t){var e=_.mergeAll.call(t);return u.every.call(e,function(t){return t===!0})}function I(t){return n.ɵisObservable(t)?t:n.ɵisPromise(t)?m.fromPromise(t):s.of(t)}function N(){return new He(new qe([],{}),{},null)}function D(t,e,n){return n?j(t.queryParams,e.queryParams)&&L(t.root,e.root):V(t.queryParams,e.queryParams)&&F(t.root,e.root)}function j(t,e){return P(t,e)}function L(t,e){if(!H(t.segments,e.segments))return!1;if(t.numberOfChildren!==e.numberOfChildren)return!1;for(var n in e.children){if(!t.children[n])return!1;if(!L(t.children[n],e.children[n]))return!1}return!0}function V(t,e){return Object.keys(e).length<=Object.keys(t).length&&Object.keys(e).every(function(n){return e[n]===t[n]})}function F(t,e){return U(t,e,e.segments)}function U(t,e,n){if(t.segments.length>n.length){var r=t.segments.slice(0,n.length);return H(r,n)?e.hasChildren()?!1:!0:!1}if(t.segments.length===n.length){if(!H(t.segments,n))return!1;for(var o in e.children){if(!t.children[o])return!1;if(!F(t.children[o],e.children[o]))return!1}return!0}var r=n.slice(0,t.segments.length),i=n.slice(t.segments.length);return H(t.segments,r)&&t.children[je]?U(t.children[je],e,i):!1}function B(t,e){if(t.length!==e.length)return!1;for(var n=0;n<t.length;++n){if(t[n].path!==e[n].path)return!1;if(!P(t[n].parameters,e[n].parameters))return!1}return!0}function H(t,e){if(t.length!==e.length)return!1;for(var n=0;n<t.length;++n)if(t[n].path!==e[n].path)return!1;return!0}function q(t,e){var n=[];return M(t.children,function(t,r){r===je&&(n=n.concat(e(t,r)))}),M(t.children,function(t,r){r!==je&&(n=n.concat(e(t,r)))}),n}function z(t){return t.segments.map(function(t){return Q(t)}).join("/")}function G(t,e){if(t.hasChildren()&&e){var n=t.children[je]?G(t.children[je],!1):"",r=[];return M(t.children,function(t,e){e!==je&&r.push(e+":"+G(t,!1))}),r.length>0?n+"("+r.join("//")+")":""+n}if(t.hasChildren()&&!e){var o=q(t,function(e,n){return n===je?[G(t.children[je],!1)]:[n+":"+G(e,!1)]});return z(t)+"/("+o.join("//")+")"}return z(t)}function W(t){return encodeURIComponent(t)}function K(t){return decodeURIComponent(t)}function Q(t){return""+W(t.path)+$(t.parameters)}function $(t){return Object.keys(t).map(function(e){return";"+W(e)+"="+W(t[e])}).join("")}function X(t){var e=Object.keys(t).map(function(e){var n=t[e];return Array.isArray(n)?n.map(function(t){return W(e)+"="+W(t)}).join("&"):W(e)+"="+W(n)});return e.length?"?"+e.join("&"):""}function Z(t){Qe.lastIndex=0;var e=t.match(Qe);return e?e[0]:""}function Y(t){$e.lastIndex=0;var e=t.match(Qe);return e?e[0]:""}function J(t){Xe.lastIndex=0;var e=t.match(Xe);return e?e[0]:""}function tt(t){return new f.Observable(function(e){return e.error(new Je(t))})}function et(t){return new f.Observable(function(e){return e.error(new tn(t))})}function nt(t){return new f.Observable(function(e){return e.error(new Error("Only absolute redirects can have named outlets. redirectTo: '"+t+"'"))})}function rt(t){return new f.Observable(function(e){return e.error(E("Cannot load children because the guard of the route \"path: '"+t.path+"'\" returned false"))})}function ot(t,e,n,r,o){return new en(t,e,n,r,o).apply()}function it(t,e){var n=e.canLoad;if(!n||0===n.length)return s.of(!0);var r=l.map.call(i.from(n),function(n){var r=t.get(n);return I(r.canLoad?r.canLoad(e):r(e))});return k(r)}function st(t,e,n){var r={matched:!1,consumedSegments:[],lastChild:0,positionalParamSegments:{}};if(""===e.path)return"full"===e.pathMatch&&(t.hasChildren()||n.length>0)?{matched:!1,consumedSegments:[],lastChild:0,positionalParamSegments:{}}:{matched:!0,consumedSegments:[],lastChild:0,positionalParamSegments:{}};var o=e.matcher||x,i=o(n,t,e);return i?{matched:!0,consumedSegments:i.consumed,lastChild:i.consumed.length,positionalParamSegments:i.posParams}:r}function at(t,e,n,r){if(n.length>0&&pt(t,n,r)){var o=new qe(e,lt(r,new qe(n,t.children)));return{segmentGroup:ut(o),slicedSegments:[]}}if(0===n.length&&ht(t,n,r)){var o=new qe(t.segments,ct(t,n,r,t.children));return{segmentGroup:ut(o),slicedSegments:n}}return{segmentGroup:t,slicedSegments:n}}function ut(t){if(1===t.numberOfChildren&&t.children[je]){var e=t.children[je];return new qe(t.segments.concat(e.segments),e.children)}return t}function ct(t,e,n,r){for(var o={},i=0,s=n;i<s.length;i++){var a=s[i];ft(t,e,a)&&!r[dt(a)]&&(o[dt(a)]=new qe([],{}))}return Ye({},r,o)}function lt(t,e){var n={};n[je]=e;for(var r=0,o=t;r<o.length;r++){var i=o[r];""===i.path&&dt(i)!==je&&(n[dt(i)]=new qe([],{}))}return n}function pt(t,e,n){return n.filter(function(n){return ft(t,e,n)&&dt(n)!==je}).length>0}function ht(t,e,n){return n.filter(function(n){return ft(t,e,n)}).length>0}function ft(t,e,n){return(t.hasChildren()||e.length>0)&&"full"===n.pathMatch?!1:""===n.path&&void 0!==n.redirectTo}function dt(t){return t.outlet?t.outlet:je}function yt(t,e){void 0===e&&(e="");for(var n=0;n<t.length;n++){var r=t[n],o=mt(e,r);vt(r,o)}}function vt(t,e){if(!t)throw new Error("\n Invalid configuration of route '"+e+"': Encountered undefined route.\n The reason might be an extra comma.\n\n Example:\n const routes: Routes = [\n { path: '', redirectTo: '/dashboard', pathMatch: 'full' },\n { path: 'dashboard', component: DashboardComponent },, << two commas\n { path: 'detail/:id', component: HeroDetailComponent }\n ];\n ");if(Array.isArray(t))throw new Error("Invalid configuration of route '"+e+"': Array cannot be specified");if(!t.component&&t.outlet&&t.outlet!==je)throw new Error("Invalid configuration of route '"+e+"': a componentless route cannot have a named outlet set");if(t.redirectTo&&t.children)throw new Error("Invalid configuration of route '"+e+"': redirectTo and children cannot be used together");if(t.redirectTo&&t.loadChildren)throw new Error("Invalid configuration of route '"+e+"': redirectTo and loadChildren cannot be used together");if(t.children&&t.loadChildren)throw new Error("Invalid configuration of route '"+e+"': children and loadChildren cannot be used together");if(t.redirectTo&&t.component)throw new Error("Invalid configuration of route '"+e+"': redirectTo and component cannot be used together");if(t.path&&t.matcher)throw new Error("Invalid configuration of route '"+e+"': path and matcher cannot be used together");if(void 0===t.redirectTo&&!t.component&&!t.children&&!t.loadChildren)throw new Error("Invalid configuration of route '"+e+"'. One of the following must be provided: component, redirectTo, children or loadChildren");if(void 0===t.path&&void 0===t.matcher)throw new Error("Invalid configuration of route '"+e+"': routes must have either a path or a matcher specified");if("string"==typeof t.path&&"/"===t.path.charAt(0))throw new Error("Invalid configuration of route '"+e+"': path cannot start with a slash");if(""===t.path&&void 0!==t.redirectTo&&void 0===t.pathMatch){var n="The default value of 'pathMatch' is 'prefix', but often the intent is to use 'full'.";throw new Error("Invalid configuration of route '{path: \""+e+'", redirectTo: "'+t.redirectTo+"\"}': please provide 'pathMatch'. "+n)}if(void 0!==t.pathMatch&&"full"!==t.pathMatch&&"prefix"!==t.pathMatch)throw new Error("Invalid configuration of route '"+e+"': pathMatch can only be set to 'prefix' or 'full'");t.children&&yt(t.children,e)}function mt(t,e){return e?t||e.path?t&&!e.path?t+"/":!t&&e.path?e.path:t+"/"+e.path:"":t}function gt(t,e){if(t===e.value)return e;for(var n=0,r=e.children;n<r.length;n++){var o=r[n],i=gt(t,o);if(i)return i}return null}function _t(t,e,n){if(n.push(e),t===e.value)return n;for(var r=0,o=e.children;r<o.length;r++){var i=o[r],s=n.slice(0),a=_t(t,i,s);if(a.length>0)return a}return[]}function bt(t,e){var n=wt(t,e),o=new r.BehaviorSubject([new ze("",{})]),i=new r.BehaviorSubject({}),s=new r.BehaviorSubject({}),a=new r.BehaviorSubject({}),u=new r.BehaviorSubject(""),c=new an(o,i,a,u,s,je,e,n.root);return c.snapshot=n.root,new sn(new rn(c,[]),n)}function wt(t,e){var n={},r={},o={},i="",s=new un([],n,o,i,r,je,e,null,t.root,-1,{});return new cn("",new rn(s,[]))}function Ct(t){for(var e=t.pathFromRoot,n=e.length-1;n>=1;){var r=e[n],o=e[n-1];if(r.routeConfig&&""===r.routeConfig.path)n--;else{if(o.component)break;n--}}return e.slice(n).reduce(function(t,e){var n=on({},t.params,e.params),r=on({},t.data,e.data),o=on({},t.resolve,e._resolvedData);return{params:n,data:r,resolve:o}},{params:{},data:{},resolve:{}})}function Et(t,e){e.value._routerState=t,e.children.forEach(function(e){return Et(t,e)})}function St(t){var e=t.children.length>0?" { "+t.children.map(St).join(", ")+" } ":"";return""+t.value+e}function xt(t){if(t.snapshot){var e=t.snapshot;t.snapshot=t._futureSnapshot,P(e.queryParams,t._futureSnapshot.queryParams)||t.queryParams.next(t._futureSnapshot.queryParams),e.fragment!==t._futureSnapshot.fragment&&t.fragment.next(t._futureSnapshot.fragment),P(e.params,t._futureSnapshot.params)||t.params.next(t._futureSnapshot.params),T(e.url,t._futureSnapshot.url)||t.url.next(t._futureSnapshot.url),P(e.data,t._futureSnapshot.data)||t.data.next(t._futureSnapshot.data)}else t.snapshot=t._futureSnapshot,t.data.next(t._futureSnapshot.data)}function Tt(t,e){var n=P(t.params,e.params)&&B(t.url,e.url),r=!t.parent!=!e.parent;return n&&!r&&(!t.parent||Tt(t.parent,e.parent))}function Pt(t,e,n){var r=At(t,e._root,n?n._root:void 0);return new sn(r,e)}function At(t,e,n){if(n&&t.shouldReuseRoute(e.value,n.value.snapshot)){var r=n.value;r._futureSnapshot=e.value;var o=Mt(t,e,n);return new rn(r,o)}if(t.retrieve(e.value)){var i=t.retrieve(e.value).route;return Ot(e,i),i}var r=Rt(e.value),o=e.children.map(function(e){return At(t,e)});return new rn(r,o)}function Ot(t,e){if(t.value.routeConfig!==e.value.routeConfig)throw new Error("Cannot reattach ActivatedRouteSnapshot created from a different route");if(t.children.length!==e.children.length)throw new Error("Cannot reattach ActivatedRouteSnapshot with a different number of children");e.value._futureSnapshot=t.value;for(var n=0;n<t.children.length;++n)Ot(t.children[n],e.children[n])}function Mt(t,e,n){return e.children.map(function(e){for(var r=0,o=n.children;r<o.length;r++){var i=o[r];if(t.shouldReuseRoute(i.value.snapshot,e.value))return At(t,e,i)}return At(t,e)})}function Rt(t){return new an(new r.BehaviorSubject(t.url),new r.BehaviorSubject(t.params),new r.BehaviorSubject(t.queryParams),new r.BehaviorSubject(t.fragment),new r.BehaviorSubject(t.data),t.outlet,t.component,t)}function kt(t,e,n,r,o){if(0===n.length)return Nt(e.root,e.root,e,r,o);var i=jt(n);if(i.toRoot())return Nt(e.root,new qe([],{}),e,r,o);var s=Lt(i,e,t),a=s.processChildren?Ht(s.segmentGroup,s.index,i.commands):Bt(s.segmentGroup,s.index,i.commands);return Nt(s.segmentGroup,a,e,r,o)}function It(t){return"object"==typeof t&&null!=t&&!t.outlets&&!t.segmentPath}function Nt(t,e,n,r,o){var i={};return r&&M(r,function(t,e){i[e]=Array.isArray(t)?t.map(function(t){return""+t}):""+t}),n.root===t?new He(e,i,o):new He(Dt(n.root,t,e),i,o)}function Dt(t,e,n){var r={};return M(t.children,function(t,o){r[o]=t===e?n:Dt(t,e,n)}),new qe(t.segments,r)}function jt(t){if("string"==typeof t[0]&&1===t.length&&"/"===t[0])return new ln(!0,0,t);var e=0,n=!1,r=t.reduce(function(t,r,o){if("object"==typeof r&&null!=r){if(r.outlets){var i={};return M(r.outlets,function(t,e){i[e]="string"==typeof t?t.split("/"):t}),t.concat([{outlets:i}])}if(r.segmentPath)return t.concat([r.segmentPath])}return"string"!=typeof r?t.concat([r]):0===o?(r.split("/").forEach(function(r,o){0==o&&"."===r||(0==o&&""===r?n=!0:".."===r?e++:""!=r&&t.push(r))}),t):t.concat([r])},[]);return new ln(n,e,r)}function Lt(t,e,n){if(t.isAbsolute)return new pn(e.root,!0,0);if(-1===n.snapshot._lastPathIndex)return new pn(n.snapshot._urlSegment,!0,0);var r=It(t.commands[0])?0:1,o=n.snapshot._lastPathIndex+r;return Vt(n.snapshot._urlSegment,o,t.numberOfDoubleDots)}function Vt(t,e,n){for(var r=t,o=e,i=n;i>o;){if(i-=o,r=r.parent,!r)throw new Error("Invalid number of '../'");o=r.segments.length}return new pn(r,!1,o-i)}function Ft(t){return"object"==typeof t&&null!=t&&t.outlets?t.outlets[je]:""+t}function Ut(t){return"object"!=typeof t[0]?(e={},e[je]=t,e):void 0===t[0].outlets?(n={},n[je]=t,n):t[0].outlets;var e,n}function Bt(t,e,n){if(t||(t=new qe([],{})),0===t.segments.length&&t.hasChildren())return Ht(t,e,n);var r=qt(t,e,n),o=n.slice(r.commandIndex);if(r.match&&r.pathIndex<t.segments.length){var i=new qe(t.segments.slice(0,r.pathIndex),{});return i.children[je]=new qe(t.segments.slice(r.pathIndex),t.children),Ht(i,0,o)}return r.match&&0===o.length?new qe(t.segments,{}):r.match&&!t.hasChildren()?zt(t,e,n):r.match?Ht(t,0,o):zt(t,e,n)}function Ht(t,e,n){if(0===n.length)return new qe(t.segments,{});var r=Ut(n),o={};return M(r,function(n,r){null!==n&&(o[r]=Bt(t.children[r],e,n))}),M(t.children,function(t,e){void 0===r[e]&&(o[e]=t)}),new qe(t.segments,o)}function qt(t,e,n){for(var r=0,o=e,i={match:!1,pathIndex:0,commandIndex:0};o<t.segments.length;){if(r>=n.length)return i;var s=t.segments[o],a=Ft(n[r]),u=r<n.length-1?n[r+1]:null;if(o>0&&void 0===a)break;if(a&&u&&"object"==typeof u&&void 0===u.outlets){if(!Kt(a,u,s))return i;r+=2}else{if(!Kt(a,{},s))return i;r++}o++}return{match:!0,pathIndex:o,commandIndex:r}}function zt(t,e,n){for(var r=t.segments.slice(0,e),o=0;o<n.length;){if("object"==typeof n[o]&&void 0!==n[o].outlets){var i=Gt(n[o].outlets);return new qe(r,i)}if(0===o&&It(n[0])){var s=t.segments[e];r.push(new ze(s.path,n[0])),o++}else{var a=Ft(n[o]),u=o<n.length-1?n[o+1]:null;a&&u&&It(u)?(r.push(new ze(a,Wt(u))),o+=2):(r.push(new ze(a,{})),o++)}}return new qe(r,{})}function Gt(t){var e={};return M(t,function(t,n){null!==t&&(e[n]=zt(new qe([],{}),0,t))}),e}function Wt(t){var e={};return M(t,function(t,n){return e[n]=""+t}),e}function Kt(t,e,n){return t==n.path&&P(e,n.parameters)}function Qt(t,e,n,r){return new dn(t,e,n,r).recognize()}function $t(t){t.sort(function(t,e){return t.value.outlet===je?-1:e.value.outlet===je?1:t.value.outlet.localeCompare(e.value.outlet)})}function Xt(t){return t.children?t.children:t.loadChildren?t._loadedConfig.routes:[]}function Zt(t,e,n){if(""===e.path){if("full"===e.pathMatch&&(t.hasChildren()||n.length>0))throw new fn;return{consumedSegments:[],lastChild:0,parameters:{}}}var r=e.matcher||x,o=r(n,t,e);if(!o)throw new fn;var i={};M(o.posParams,function(t,e){i[e]=t.path});var s=hn({},i,o.consumed[o.consumed.length-1].parameters);return{consumedSegments:o.consumed,lastChild:o.consumed.length,parameters:s}}function Yt(t){var e={};t.forEach(function(t){var n=e[t.value.outlet];if(n){var r=n.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: '"+r+"' and '"+o+"'.")}e[t.value.outlet]=t.value})}function Jt(t){for(var e=t;e._sourceSegment;)e=e._sourceSegment;return e}function te(t){for(var e=t,n=e._segmentIndexShift?e._segmentIndexShift:0;e._sourceSegment;)e=e._sourceSegment,n+=e._segmentIndexShift?e._segmentIndexShift:0;return n-1}function ee(t,e,n,r){if(n.length>0&&oe(t,n,r)){var o=new qe(e,re(t,e,r,new qe(n,t.children)));return o._sourceSegment=t,o._segmentIndexShift=e.length,{segmentGroup:o,slicedSegments:[]}}if(0===n.length&&ie(t,n,r)){var i=new qe(t.segments,ne(t,n,r,t.children));return i._sourceSegment=t,i._segmentIndexShift=e.length,{segmentGroup:i,slicedSegments:n}}var s=new qe(t.segments,t.children);return s._sourceSegment=t,s._segmentIndexShift=e.length,{segmentGroup:s,slicedSegments:n}}function ne(t,e,n,r){for(var o={},i=0,s=n;i<s.length;i++){var a=s[i];if(se(t,e,a)&&!r[ae(a)]){var u=new qe([],{});u._sourceSegment=t,u._segmentIndexShift=t.segments.length,o[ae(a)]=u}}return hn({},r,o)}function re(t,e,n,r){var o={};o[je]=r,r._sourceSegment=t,r._segmentIndexShift=e.length;for(var i=0,s=n;i<s.length;i++){var a=s[i];if(""===a.path&&ae(a)!==je){var u=new qe([],{});u._sourceSegment=t,u._segmentIndexShift=e.length,o[ae(a)]=u}}return o}function oe(t,e,n){return n.some(function(n){return se(t,e,n)&&ae(n)!==je})}function ie(t,e,n){return n.some(function(n){return se(t,e,n)})}function se(t,e,n){return(t.hasChildren()||e.length>0)&&"full"===n.pathMatch?!1:""===n.path&&void 0===n.redirectTo}function ae(t){return t.outlet||je}function ue(t){return t.data||{}}function ce(t){return t.resolve||{}}function le(t){throw t}function pe(){return s.of(null)}function he(t){xt(t.value),t.children.forEach(he)}function fe(t){for(var e=t.parent;e;e=e.parent){var n=e._routeConfig;if(n&&n._loadedConfig)return n._loadedConfig;if(n&&n.component)return null}return null}function de(t){if(!t)return null;for(var e=t.parent;e;e=e.parent){var n=e._routeConfig;if(n&&n._loadedConfig)return n._loadedConfig}return null}function ye(t){var e={};return t&&t.children.forEach(function(t){return e[t.value.outlet]=t}),e}function ve(t,e){var n=t._outlets[e.outlet];if(!n){var r=e.component.name;throw new Error(e.outlet===je?"Cannot find primary outlet to load '"+r+"'":"Cannot find the outlet "+e.outlet+" to load '"+r+"'")}return n}function me(t){for(var e=0;e<t.length;e++){var n=t[e];if(null==n)throw new Error("The requested path contains "+n+" segment at index "+e)}}function ge(t){return""===t||!!t}function _e(){return new n.NgProbeToken("Router",bn)}function be(t,n,r){return void 0===r&&(r={}),r.useHash?new e.HashLocationStrategy(t,n):new e.PathLocationStrategy(t,n)}function we(t){if(t)throw new Error("RouterModule.forRoot() called twice. Lazy loaded modules should use RouterModule.forChild() instead.");return"guarded"}function Ce(t){return[{provide:n.ANALYZE_FOR_ENTRY_COMPONENTS,multi:!0,useValue:t},{provide:Fe,multi:!0,useValue:t}]}function Ee(t,e,n,r,o,i,s,a,u,c,l){void 0===u&&(u={});var p=new bn(null,e,n,r,o,i,s,A(a));if(c&&(p.urlHandlingStrategy=c),l&&(p.routeReuseStrategy=l),u.errorHandler&&(p.errorHandler=u.errorHandler),u.enableTracing){var h=b.ɵgetDOM();p.events.subscribe(function(t){h.logGroup("Router Event: "+t.constructor.name),h.log(t.toString()),h.log(t),h.logGroupEnd()})}return p}function Se(t){return t.routerState.root}function xe(t){return t.appInitializer.bind(t)}function Te(t){return t.bootstrapListener.bind(t)}function Pe(){return[Un,{provide:n.APP_INITIALIZER,multi:!0,useFactory:xe,deps:[Un]},{provide:Bn,useFactory:Te,deps:[Un]},{provide:n.APP_BOOTSTRAP_LISTENER,multi:!0,useExisting:Bn}]}var Ae=void 0||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},Oe=function(){function t(t,e){this.id=t,this.url=e}return t.prototype.toString=function(){return"NavigationStart(id: "+this.id+", url: '"+this.url+"')"},t}(),Me=function(){function t(t,e,n){this.id=t,this.url=e,this.urlAfterRedirects=n}return t.prototype.toString=function(){return"NavigationEnd(id: "+this.id+", url: '"+this.url+"', urlAfterRedirects: '"+this.urlAfterRedirects+"')"},t}(),Re=function(){function t(t,e,n){this.id=t,this.url=e,this.reason=n}return t.prototype.toString=function(){return"NavigationCancel(id: "+this.id+", url: '"+this.url+"')"},t}(),ke=function(){function t(t,e,n){this.id=t,this.url=e,this.error=n}return t.prototype.toString=function(){return"NavigationError(id: "+this.id+", url: '"+this.url+"', error: "+this.error+")"},t}(),Ie=function(){function t(t,e,n,r){this.id=t,this.url=e,this.urlAfterRedirects=n,this.state=r}return t.prototype.toString=function(){return"RoutesRecognized(id: "+this.id+", url: '"+this.url+"', urlAfterRedirects: '"+this.urlAfterRedirects+"', state: "+this.state+")"},t}(),Ne=function(){function t(t){this.route=t}return t.prototype.toString=function(){return"RouteConfigLoadStart(path: "+this.route.path+")"},t}(),De=function(){function t(t){this.route=t}return t.prototype.toString=function(){return"RouteConfigLoadEnd(path: "+this.route.path+")"},t}(),je="primary",Le=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}(),Ve="ngNavigationCancelingError",Fe=new n.InjectionToken("ROUTES"),Ue=function(){function t(t,e){this.routes=t,this.module=e}return t}(),Be=function(){function t(t,e,n,r){this.loader=t,this.compiler=e,this.onLoadStartListener=n,this.onLoadEndListener=r}return t.prototype.load=function(t,e){var n=this;this.onLoadStartListener&&this.onLoadStartListener(e);var r=this.loadModuleFactory(e.loadChildren);return l.map.call(r,function(r){n.onLoadEndListener&&n.onLoadEndListener(e);var o=r.create(t);return new Ue(A(o.injector.get(Fe)),o)})},t.prototype.loadModuleFactory=function(t){var e=this;return"string"==typeof t?m.fromPromise(this.loader.load(t)):p.mergeMap.call(I(t()),function(t){return t instanceof n.NgModuleFactory?s.of(t):m.fromPromise(e.compiler.compileModuleAsync(t))})},t}(),He=function(){function t(t,e,n){this.root=t,this.queryParams=e,this.fragment=n}return Object.defineProperty(t.prototype,"queryParamMap",{get:function(){return this._queryParamMap||(this._queryParamMap=C(this.queryParams)),this._queryParamMap},enumerable:!0,configurable:!0}),t.prototype.toString=function(){return Ke.serialize(this)},t}(),qe=function(){function t(t,e){var n=this;this.segments=t,this.children=e,this.parent=null,M(e,function(t){return t.parent=n})}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 z(this)},t}(),ze=function(){function t(t,e){this.path=t,this.parameters=e}return Object.defineProperty(t.prototype,"parameterMap",{get:function(){return this._parameterMap||(this._parameterMap=C(this.parameters)),this._parameterMap},enumerable:!0,configurable:!0}),t.prototype.toString=function(){return Q(this)},t}(),Ge=function(){function t(){}return t.prototype.parse=function(){},t.prototype.serialize=function(){},t}(),We=function(){function t(){}return t.prototype.parse=function(t){var e=new Ze(t);return new He(e.parseRootSegment(),e.parseQueryParams(),e.parseFragment())},t.prototype.serialize=function(t){var e="/"+G(t.root,!0),n=X(t.queryParams),r=null!==t.fragment&&void 0!==t.fragment?"#"+encodeURI(t.fragment):"";return""+e+n+r},t}(),Ke=new We,Qe=/^[^\/()?;=&#]+/,$e=/^[^=?&#]+/,Xe=/^[^?&#]+/,Ze=function(){function t(t){this.url=t,this.remaining=t}return t.prototype.peekStartsWith=function(t){return this.remaining.startsWith(t)},t.prototype.capture=function(t){if(!this.remaining.startsWith(t))throw new Error('Expected "'+t+'".');this.remaining=this.remaining.substring(t.length)},t.prototype.parseRootSegment=function(){return this.remaining.startsWith("/")&&this.capture("/"),""===this.remaining||this.remaining.startsWith("?")||this.remaining.startsWith("#")?new qe([],{}):new qe([],this.parseChildren())},t.prototype.parseChildren=function(){if(0==this.remaining.length)return{};this.peekStartsWith("/")&&this.capture("/");var t=[];for(this.peekStartsWith("(")||t.push(this.parseSegments());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),t.push(this.parseSegments());var e={};this.peekStartsWith("/(")&&(this.capture("/"),e=this.parseParens(!0));var n={};return this.peekStartsWith("(")&&(n=this.parseParens(!1)),(t.length>0||Object.keys(e).length>0)&&(n[je]=new qe(t,e)),n},t.prototype.parseSegments=function(){var t=Z(this.remaining);if(""===t&&this.peekStartsWith(";"))throw new Error("Empty path url segment cannot have parameters: '"+this.remaining+"'.");this.capture(t);var e={};return this.peekStartsWith(";")&&(e=this.parseMatrixParams()),new ze(K(t),e)},t.prototype.parseQueryParams=function(){var t={};if(this.peekStartsWith("?"))for(this.capture("?"),this.parseQueryParam(t);this.remaining.length>0&&this.peekStartsWith("&");)this.capture("&"),this.parseQueryParam(t);return t},t.prototype.parseFragment=function(){return this.peekStartsWith("#")?decodeURI(this.remaining.substring(1)):null},t.prototype.parseMatrixParams=function(){for(var t={};this.remaining.length>0&&this.peekStartsWith(";");)this.capture(";"),this.parseParam(t);return t},t.prototype.parseParam=function(t){var e=Z(this.remaining);if(e){this.capture(e);var n="";if(this.peekStartsWith("=")){this.capture("=");var r=Z(this.remaining);r&&(n=r,this.capture(n))}t[K(e)]=K(n)}},t.prototype.parseQueryParam=function(t){var e=Y(this.remaining);if(e){this.capture(e);var n="";if(this.peekStartsWith("=")){this.capture("=");var r=J(this.remaining);r&&(n=r,this.capture(n))}var o=K(e),i=K(n);if(t.hasOwnProperty(o)){var s=t[o];Array.isArray(s)||(s=[s],t[o]=s),s.push(i)}else t[o]=i}},t.prototype.parseParens=function(t){var e={};for(this.capture("(");!this.peekStartsWith(")")&&this.remaining.length>0;){var n=Z(this.remaining),r=this.remaining[n.length];if("/"!==r&&")"!==r&&";"!==r)throw new Error("Cannot parse url '"+this.url+"'");var o=void 0;n.indexOf(":")>-1?(o=n.substr(0,n.indexOf(":")),this.capture(o),this.capture(":")):t&&(o=je);var i=this.parseChildren();e[o]=1===Object.keys(i).length?i[je]:new qe([],i),this.peekStartsWith("//")&&this.capture("//")}return this.capture(")"),e},t}(),Ye=void 0||Object.assign||function(t){for(var e,n=1,r=arguments.length;r>n;n++){e=arguments[n];for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])}return t},Je=function(){function t(t){void 0===t&&(t=null),this.segmentGroup=t}return t}(),tn=function(){function t(t){this.urlTree=t}return t}(),en=function(){function t(t,e,r,o,i){this.configLoader=e,this.urlSerializer=r,this.urlTree=o,this.config=i,this.allowRedirects=!0,this.ngModule=t.get(n.NgModuleRef)}return t.prototype.apply=function(){var t=this,e=this.expandSegmentGroup(this.ngModule,this.config,this.urlTree.root,je),n=l.map.call(e,function(e){return t.createUrlTree(e,t.urlTree.queryParams,t.urlTree.fragment)});return d._catch.call(n,function(e){if(e instanceof tn)return t.allowRedirects=!1,t.match(e.urlTree);if(e instanceof Je)throw t.noMatchError(e);throw e})},t.prototype.match=function(t){var e=this,n=this.expandSegmentGroup(this.ngModule,this.config,t.root,je),r=l.map.call(n,function(n){return e.createUrlTree(n,t.queryParams,t.fragment)});return d._catch.call(r,function(t){if(t instanceof Je)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,n){var r=t.segments.length>0?new qe([],(o={},o[je]=t,o)):t;return new He(r,e,n);var o},t.prototype.expandSegmentGroup=function(t,e,n,r){return 0===n.segments.length&&n.hasChildren()?l.map.call(this.expandChildren(t,e,n),function(t){return new qe([],t)}):this.expandSegment(t,n,e,n.segments,r,!0)},t.prototype.expandChildren=function(t,e,n){var r=this;return R(n.children,function(n,o){return r.expandSegmentGroup(t,e,o,n)})},t.prototype.expandSegment=function(t,e,n,r,o,i){var a=this,u=s.of.apply(void 0,n),p=l.map.call(u,function(u){var c=a.expandSegmentAgainstRoute(t,e,n,u,r,o,i);return d._catch.call(c,function(t){if(t instanceof Je)return s.of(null);throw t})}),h=y.concatAll.call(p),f=c.first.call(h,function(t){return!!t});return d._catch.call(f,function(t){if(t instanceof v.EmptyError){if(a.noLeftoversInUrl(e,r,o))return s.of(new qe([],{}));throw new Je(e)}throw t})},t.prototype.noLeftoversInUrl=function(t,e,n){return 0===e.length&&!t.children[n]},t.prototype.expandSegmentAgainstRoute=function(t,e,n,r,o,i,s){return dt(r)!==i?tt(e):void 0===r.redirectTo||s&&this.allowRedirects?void 0===r.redirectTo?this.matchSegmentAgainstRoute(t,e,r,o):this.expandSegmentAgainstRouteUsingRedirect(t,e,n,r,o,i):tt(e)},t.prototype.expandSegmentAgainstRouteUsingRedirect=function(t,e,n,r,o,i){return"**"===r.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(t,n,r,i):this.expandRegularSegmentAgainstRouteUsingRedirect(t,e,n,r,o,i)},t.prototype.expandWildCardWithParamsAgainstRouteUsingRedirect=function(t,e,n,r){var o=this,i=this.applyRedirectCommands([],n.redirectTo,{});return n.redirectTo.startsWith("/")?et(i):p.mergeMap.call(this.lineralizeSegments(n,i),function(n){var i=new qe(n,{});return o.expandSegment(t,i,e,n,r,!1)})},t.prototype.expandRegularSegmentAgainstRouteUsingRedirect=function(t,e,n,r,o,i){var s=this,a=st(e,r,o),u=a.matched,c=a.consumedSegments,l=a.lastChild,h=a.positionalParamSegments;if(!u)return tt(e);var f=this.applyRedirectCommands(c,r.redirectTo,h);return r.redirectTo.startsWith("/")?et(f):p.mergeMap.call(this.lineralizeSegments(r,f),function(r){return s.expandSegment(t,e,n,r.concat(o.slice(l)),i,!1)})},t.prototype.matchSegmentAgainstRoute=function(t,e,n,r){var o=this;if("**"===n.path)return n.loadChildren?l.map.call(this.configLoader.load(t.injector,n),function(t){return n._loadedConfig=t,new qe(r,{})}):s.of(new qe(r,{}));var i=st(e,n,r),a=i.matched,u=i.consumedSegments,c=i.lastChild;if(!a)return tt(e);var h=r.slice(c),f=this.getChildConfig(t,n);return p.mergeMap.call(f,function(t){var n=t.module,r=t.routes,i=at(e,u,h,r),a=i.segmentGroup,c=i.slicedSegments;if(0===c.length&&a.hasChildren()){var p=o.expandChildren(n,r,a);return l.map.call(p,function(t){return new qe(u,t)})}if(0===r.length&&0===c.length)return s.of(new qe(u,{}));var f=o.expandSegment(n,a,r,c,je,!0);return l.map.call(f,function(t){return new qe(u.concat(t.segments),t.children)})})},t.prototype.getChildConfig=function(t,e){var n=this;return e.children?s.of(new Ue(e.children,t)):e.loadChildren?void 0!==e._loadedConfig?s.of(e._loadedConfig):p.mergeMap.call(it(t.injector,e),function(r){return r?l.map.call(n.configLoader.load(t.injector,e),function(t){return e._loadedConfig=t,t}):rt(e)}):s.of(new Ue([],t))},t.prototype.lineralizeSegments=function(t,e){for(var n=[],r=e.root;;){if(n=n.concat(r.segments),0===r.numberOfChildren)return s.of(n);if(r.numberOfChildren>1||!r.children[je])return nt(t.redirectTo);r=r.children[je]}},t.prototype.applyRedirectCommands=function(t,e,n){return this.applyRedirectCreatreUrlTree(e,this.urlSerializer.parse(e),t,n)},t.prototype.applyRedirectCreatreUrlTree=function(t,e,n,r){var o=this.createSegmentGroup(t,e.root,n,r);return new He(o,this.createQueryParams(e.queryParams,this.urlTree.queryParams),e.fragment)},t.prototype.createQueryParams=function(t,e){var n={};return M(t,function(t,r){n[r]=t.startsWith(":")?e[t.substring(1)]:t}),n},t.prototype.createSegmentGroup=function(t,e,n,r){var o=this,i=this.createSegments(t,e.segments,n,r),s={};return M(e.children,function(e,i){s[i]=o.createSegmentGroup(t,e,n,r)}),new qe(i,s)},t.prototype.createSegments=function(t,e,n,r){var o=this;return e.map(function(e){return e.path.startsWith(":")?o.findPosParam(t,e,r):o.findOrReturn(e,n)})},t.prototype.findPosParam=function(t,e,n){var r=n[e.path.substring(1)];if(!r)throw new Error("Cannot redirect to '"+t+"'. Cannot find '"+e.path+"'.");return r},t.prototype.findOrReturn=function(t,e){for(var n=0,r=0,o=e;r<o.length;r++){var i=o[r];if(i.path===t.path)return e.splice(n),i;n++}return t},t}(),nn=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=gt(t,this._root);return e?e.children.map(function(t){return t.value}):[]},t.prototype.firstChild=function(t){var e=gt(t,this._root);return e&&e.children.length>0?e.children[0].value:null},t.prototype.siblings=function(t){var e=_t(t,this._root,[]);if(e.length<2)return[];var n=e[e.length-2].children.map(function(t){return t.value});return n.filter(function(e){return e!==t})},t.prototype.pathFromRoot=function(t){return _t(t,this._root,[]).map(function(t){return t.value})},t}(),rn=function(){function t(t,e){this.value=t,this.children=e}return t.prototype.toString=function(){return"TreeNode("+this.value+")"},t}(),on=void 0||Object.assign||function(t){for(var e,n=1,r=arguments.length;r>n;n++){e=arguments[n];for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])}return t},sn=function(t){function e(e,n){var r=t.call(this,e)||this;return r.snapshot=n,Et(r,e),r}return Ae(e,t),e.prototype.toString=function(){return this.snapshot.toString()},e}(nn),an=function(){function t(t,e,n,r,o,i,s,a){this.url=t,this.params=e,this.queryParams=n,this.fragment=r,this.data=o,this.outlet=i,this.component=s,this._futureSnapshot=a}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=l.map.call(this.params,function(t){return C(t)})),this._paramMap},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"queryParamMap",{get:function(){return this._queryParamMap||(this._queryParamMap=l.map.call(this.queryParams,function(t){return C(t)})),this._queryParamMap},enumerable:!0,configurable:!0}),t.prototype.toString=function(){return this.snapshot?this.snapshot.toString():"Future("+this._futureSnapshot+")"},t}(),un=function(){function t(t,e,n,r,o,i,s,a,u,c,l){this.url=t,this.params=e,this.queryParams=n,this.fragment=r,this.data=o,this.outlet=i,this.component=s,this._routeConfig=a,this._urlSegment=u,this._lastPathIndex=c,this._resolve=l}return Object.defineProperty(t.prototype,"routeConfig",{get:function(){return this._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=C(this.params)),this._paramMap},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"queryParamMap",{get:function(){return this._queryParamMap||(this._queryParamMap=C(this.queryParams)),this._queryParamMap},enumerable:!0,configurable:!0}),t.prototype.toString=function(){var t=this.url.map(function(t){return t.toString()}).join("/"),e=this._routeConfig?this._routeConfig.path:"";return"Route(url:'"+t+"', path:'"+e+"')"},t}(),cn=function(t){function e(e,n){var r=t.call(this,n)||this;return r.url=e,Et(r,n),r}return Ae(e,t),e.prototype.toString=function(){return St(this._root)},e}(nn),ln=function(){function t(t,e,n){if(this.isAbsolute=t,this.numberOfDoubleDots=e,this.commands=n,t&&n.length>0&&It(n[0]))throw new Error("Root segment cannot have matrix parameters");var r=n.find(function(t){return"object"==typeof t&&null!=t&&t.outlets});if(r&&r!==O(n))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}(),pn=function(){function t(t,e,n){this.segmentGroup=t,this.processChildren=e,this.index=n}return t}(),hn=void 0||Object.assign||function(t){for(var e,n=1,r=arguments.length;r>n;n++){e=arguments[n];for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])}return t},fn=function(){function t(){}return t}(),dn=function(){function t(t,e,n,r){this.rootComponentType=t,this.config=e,this.urlTree=n,this.url=r}return t.prototype.recognize=function(){try{var t=ee(this.urlTree.root,[],[],this.config).segmentGroup,e=this.processSegmentGroup(this.config,t,je),n=new un([],Object.freeze({}),Object.freeze(this.urlTree.queryParams),this.urlTree.fragment,{},je,this.rootComponentType,null,this.urlTree.root,-1,{}),r=new rn(n,e),o=new cn(this.url,r);return this.inheriteParamsAndData(o._root),s.of(o)}catch(i){return new f.Observable(function(t){return t.error(i)})}},t.prototype.inheriteParamsAndData=function(t){var e=this,n=t.value,r=Ct(n);n.params=Object.freeze(r.params),n.data=Object.freeze(r.data),t.children.forEach(function(t){return e.inheriteParamsAndData(t)})},t.prototype.processSegmentGroup=function(t,e,n){return 0===e.segments.length&&e.hasChildren()?this.processChildren(t,e):this.processSegment(t,e,e.segments,n)},t.prototype.processChildren=function(t,e){var n=this,r=q(e,function(e,r){return n.processSegmentGroup(t,e,r)});return Yt(r),$t(r),r},t.prototype.processSegment=function(t,e,n,r){for(var o=0,i=t;o<i.length;o++){var s=i[o];try{return this.processSegmentAgainstRoute(s,e,n,r)}catch(a){if(!(a instanceof fn))throw a}}if(this.noLeftoversInUrl(e,n,r))return[];throw new fn},t.prototype.noLeftoversInUrl=function(t,e,n){return 0===e.length&&!t.children[n]},t.prototype.processSegmentAgainstRoute=function(t,e,n,r){if(t.redirectTo)throw new fn;if((t.outlet||je)!==r)throw new fn;if("**"===t.path){var o=n.length>0?O(n).parameters:{},i=new un(n,o,Object.freeze(this.urlTree.queryParams),this.urlTree.fragment,ue(t),r,t.component,t,Jt(e),te(e)+n.length,ce(t));return[new rn(i,[])]}var s=Zt(e,t,n),a=s.consumedSegments,u=s.parameters,c=s.lastChild,l=n.slice(c),p=Xt(t),h=ee(e,a,l,p),f=h.segmentGroup,d=h.slicedSegments,y=new un(a,u,Object.freeze(this.urlTree.queryParams),this.urlTree.fragment,ue(t),r,t.component,t,Jt(e),te(e)+a.length,ce(t));if(0===d.length&&f.hasChildren()){var v=this.processChildren(p,f);return[new rn(y,v)]}if(0===p.length&&0===d.length)return[new rn(y,[])];var m=this.processSegment(p,f,d,je);return[new rn(y,m)]},t}(),yn=function(){function t(){this._outlets={}}return t.prototype.registerOutlet=function(t,e){this._outlets[t]=e},t.prototype.removeOutlet=function(t){this._outlets[t]=void 0},t}(),vn=function(){function t(){}return t.prototype.shouldProcessUrl=function(){},t.prototype.extract=function(){},t.prototype.merge=function(){},t}(),mn=function(){function t(){}return t.prototype.shouldProcessUrl=function(){return!0},t.prototype.extract=function(t){return t},t.prototype.merge=function(t){return t},t}(),gn=void 0||Object.assign||function(t){for(var e,n=1,r=arguments.length;r>n;n++){e=arguments[n];for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])}return t},_n=function(){function t(){}return t.prototype.shouldDetach=function(){return!1},t.prototype.store=function(){},t.prototype.shouldAttach=function(){return!1},t.prototype.retrieve=function(){return null},t.prototype.shouldReuseRoute=function(t,e){return t.routeConfig===e.routeConfig},t}(),bn=function(){function t(t,e,i,s,a,u,c,l){var p=this;this.rootComponentType=t,this.urlSerializer=e,this.outletMap=i,this.location=s,this.config=l,this.navigations=new r.BehaviorSubject(null),this.routerEvents=new o.Subject,this.navigationId=0,this.errorHandler=le,this.navigated=!1,this.hooks={beforePreactivation:pe,afterPreactivation:pe},this.urlHandlingStrategy=new mn,this.routeReuseStrategy=new _n;var h=function(t){return p.triggerEvent(new Ne(t))},f=function(t){return p.triggerEvent(new De(t))};this.ngModule=a.get(n.NgModuleRef),this.resetConfig(l),this.currentUrlTree=N(),this.rawUrlTree=this.currentUrlTree,this.configLoader=new Be(u,c,h,f),this.currentRouterState=bt(this.currentUrlTree,this.rootComponentType),this.processNavigations()}return t.prototype.resetRootComponentType=function(t){this.rootComponentType=t,this.currentRouterState.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(Zone.current.wrap(function(e){var n=t.urlSerializer.parse(e.url),r="popstate"===e.type?"popstate":"hashchange";setTimeout(function(){t.scheduleNavigation(n,r,{replaceUrl:!0})},0)})))},Object.defineProperty(t.prototype,"routerState",{get:function(){return this.currentRouterState},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"url",{get:function(){return this.serializeUrl(this.currentUrlTree)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"events",{get:function(){return this.routerEvents},enumerable:!0,configurable:!0}),t.prototype.triggerEvent=function(t){this.routerEvents.next(t)},t.prototype.resetConfig=function(t){yt(t),this.config=t},t.prototype.ngOnDestroy=function(){this.dispose()},t.prototype.dispose=function(){this.locationSubscription&&(this.locationSubscription.unsubscribe(),this.locationSubscription=null)},t.prototype.createUrlTree=function(t,e){var r=void 0===e?{}:e,o=r.relativeTo,i=r.queryParams,s=r.fragment,a=r.preserveQueryParams,u=r.queryParamsHandling,c=r.preserveFragment;n.isDevMode()&&a&&console&&console.warn&&console.warn("preserveQueryParams is deprecated, use queryParamsHandling instead.");var l=o||this.routerState.root,p=c?this.currentUrlTree.fragment:s,h=null;if(u)switch(u){case"merge":h=gn({},this.currentUrlTree.queryParams,i);break;case"preserve":h=this.currentUrlTree.queryParams;break;default:h=i}else h=a?this.currentUrlTree.queryParams:i;return kt(l,this.currentUrlTree,t,h,p)},t.prototype.navigateByUrl=function(t,e){void 0===e&&(e={skipLocationChange:!1});var n=t instanceof He?t:this.parseUrl(t),r=this.urlHandlingStrategy.merge(n,this.rawUrlTree);return this.scheduleNavigation(r,"imperative",e)},t.prototype.navigate=function(t,e){return void 0===e&&(e={skipLocationChange:!1}),me(t),"object"==typeof e.queryParams&&null!==e.queryParams&&(e.queryParams=this.removeEmptyProps(e.queryParams)),this.navigateByUrl(this.createUrlTree(t,e),e)},t.prototype.serializeUrl=function(t){return this.urlSerializer.serialize(t)},t.prototype.parseUrl=function(t){return this.urlSerializer.parse(t)},t.prototype.isActive=function(t,e){if(t instanceof He)return D(this.currentUrlTree,t,e);var n=this.urlSerializer.parse(t);return D(this.currentUrlTree,n,e)},t.prototype.removeEmptyProps=function(t){return Object.keys(t).reduce(function(e,n){var r=t[n];return null!==r&&void 0!==r&&(e[n]=r),e},{})},t.prototype.processNavigations=function(){var t=this;a.concatMap.call(this.navigations,function(e){return e?(t.executeScheduledNavigation(e),e.promise["catch"](function(){})):s.of(null)}).subscribe(function(){})},t.prototype.scheduleNavigation=function(t,e,n){var r=this.navigations.value;if(r&&"imperative"!==e&&"imperative"===r.source&&r.rawUrl.toString()===t.toString())return null;if(r&&"hashchange"==e&&"popstate"===r.source&&r.rawUrl.toString()===t.toString())return null;var o=null,i=null,s=new Promise(function(t,e){o=t,i=e}),a=++this.navigationId;return this.navigations.next({id:a,source:e,rawUrl:t,extras:n,resolve:o,reject:i,promise:s}),s["catch"](function(t){return Promise.reject(t)})},t.prototype.executeScheduledNavigation=function(t){var e=this,n=t.id,r=t.rawUrl,o=t.extras,i=t.resolve,s=t.reject,a=this.urlHandlingStrategy.extract(r),u=!this.navigated||a.toString()!==this.currentUrlTree.toString();u&&this.urlHandlingStrategy.shouldProcessUrl(r)?(this.routerEvents.next(new Oe(n,this.serializeUrl(a))),Promise.resolve().then(function(){return e.runNavigate(a,r,o.skipLocationChange,o.replaceUrl,n,null)}).then(i,s)):u&&this.rawUrlTree&&this.urlHandlingStrategy.shouldProcessUrl(this.rawUrlTree)?(this.routerEvents.next(new Oe(n,this.serializeUrl(a))),Promise.resolve().then(function(){return e.runNavigate(a,r,!1,!1,n,bt(a,e.rootComponentType).snapshot)}).then(i,s)):(this.rawUrlTree=r,i(null))},t.prototype.runNavigate=function(t,e,n,r,o,i){var a=this;return o!==this.navigationId?(this.location.go(this.urlSerializer.serialize(this.currentUrlTree)),this.routerEvents.next(new Re(o,this.serializeUrl(t),"Navigation ID "+o+" is not equal to the current navigation id "+this.navigationId)),Promise.resolve(!1)):new Promise(function(u,c){var h;if(i)h=s.of({appliedUrl:t,snapshot:i});else{var f=a.ngModule.injector,d=ot(f,a.configLoader,a.urlSerializer,t,a.config);h=p.mergeMap.call(d,function(e){return l.map.call(Qt(a.rootComponentType,a.config,e,a.serializeUrl(e)),function(n){return a.routerEvents.next(new Ie(o,a.serializeUrl(t),a.serializeUrl(e),n)),{appliedUrl:e,snapshot:n}})})}var y,v,m=p.mergeMap.call(h,function(t){return l.map.call(a.hooks.beforePreactivation(t.snapshot),function(){return t})}),g=l.map.call(m,function(t){var e=t.appliedUrl,n=t.snapshot,r=a.ngModule.injector;return y=new En(n,a.currentRouterState.snapshot,r),y.traverse(a.outletMap),{appliedUrl:e,snapshot:n}}),_=p.mergeMap.call(g,function(t){var e=t.appliedUrl,n=t.snapshot;return a.navigationId!==o?s.of(!1):l.map.call(y.checkGuards(),function(t){return{appliedUrl:e,snapshot:n,shouldActivate:t}})}),b=p.mergeMap.call(_,function(t){return a.navigationId!==o?s.of(!1):t.shouldActivate?l.map.call(y.resolveData(),function(){return t}):s.of(t)}),w=p.mergeMap.call(b,function(t){return l.map.call(a.hooks.afterPreactivation(t.snapshot),function(){return t})}),C=l.map.call(w,function(t){var e=t.appliedUrl,n=t.snapshot,r=t.shouldActivate;if(r){var o=Pt(a.routeReuseStrategy,n,a.currentRouterState);return{appliedUrl:e,state:o,shouldActivate:r}}return{appliedUrl:e,state:null,shouldActivate:r}}),E=a.currentRouterState,x=a.currentUrlTree;C.forEach(function(t){var i=t.appliedUrl,s=t.state,u=t.shouldActivate;if(!u||o!==a.navigationId)return void(v=!1);if(a.currentUrlTree=i,a.rawUrlTree=a.urlHandlingStrategy.merge(a.currentUrlTree,e),a.currentRouterState=s,!n){var c=a.urlSerializer.serialize(a.rawUrlTree);a.location.isCurrentPathEqualTo(c)||r?a.location.replaceState(c):a.location.go(c)}new Sn(a.routeReuseStrategy,s,E).activate(a.outletMap),v=!0}).then(function(){v?(a.navigated=!0,a.routerEvents.next(new Me(o,a.serializeUrl(t),a.serializeUrl(a.currentUrlTree))),u(!0)):(a.resetUrlToCurrentUrlTree(),a.routerEvents.next(new Re(o,a.serializeUrl(t),"")),u(!1))},function(n){if(S(n))a.resetUrlToCurrentUrlTree(),a.navigated=!0,a.routerEvents.next(new Re(o,a.serializeUrl(t),n.message)),u(!1);else{a.routerEvents.next(new ke(o,a.serializeUrl(t),n));try{u(a.errorHandler(n))}catch(r){c(r)}}a.currentRouterState=E,a.currentUrlTree=x,a.rawUrlTree=a.urlHandlingStrategy.merge(a.currentUrlTree,e),a.location.replaceState(a.serializeUrl(a.rawUrlTree))})})},t.prototype.resetUrlToCurrentUrlTree=function(){var t=this.urlSerializer.serialize(this.rawUrlTree);this.location.replaceState(t)},t}(),wn=function(){function t(t){this.path=t}return Object.defineProperty(t.prototype,"route",{get:function(){return this.path[this.path.length-1]},enumerable:!0,configurable:!0}),t}(),Cn=function(){function t(t,e){this.component=t,this.route=e}return t}(),En=function(){function t(t,e,n){this.future=t,this.curr=e,this.moduleInjector=n,this.canActivateChecks=[],this.canDeactivateChecks=[]}return t.prototype.traverse=function(t){var e=this.future._root,n=this.curr?this.curr._root:null;this.traverseChildRoutes(e,n,t,[e.value])},t.prototype.checkGuards=function(){var t=this;if(0===this.canDeactivateChecks.length&&0===this.canActivateChecks.length)return s.of(!0);var e=this.runCanDeactivateChecks();return p.mergeMap.call(e,function(e){return e?t.runCanActivateChecks():s.of(!1)})},t.prototype.resolveData=function(){var t=this;if(0===this.canActivateChecks.length)return s.of(null);var e=i.from(this.canActivateChecks),n=a.concatMap.call(e,function(e){return t.runResolve(e.route)});return h.reduce.call(n,function(t){return t})},t.prototype.traverseChildRoutes=function(t,e,n,r){var o=this,i=ye(e);t.children.forEach(function(t){o.traverseRoutes(t,i[t.value.outlet],n,r.concat([t.value])),delete i[t.value.outlet]}),M(i,function(t,e){return o.deactiveRouteAndItsChildren(t,n._outlets[e])})},t.prototype.traverseRoutes=function(t,e,n,r){var o=t.value,i=e?e.value:null,s=n?n._outlets[t.value.outlet]:null;i&&o._routeConfig===i._routeConfig?(this.shouldRunGuardsAndResolvers(i,o,o._routeConfig.runGuardsAndResolvers)?(this.canActivateChecks.push(new wn(r)),this.canDeactivateChecks.push(new Cn(s.component,i))):(o.data=i.data,o._resolvedData=i._resolvedData),o.component?this.traverseChildRoutes(t,e,s?s.outletMap:null,r):this.traverseChildRoutes(t,e,n,r)):(i&&this.deactiveRouteAndItsChildren(e,s),this.canActivateChecks.push(new wn(r)),o.component?this.traverseChildRoutes(t,null,s?s.outletMap:null,r):this.traverseChildRoutes(t,null,n,r))},t.prototype.shouldRunGuardsAndResolvers=function(t,e,n){switch(n){case"always":return!0;case"paramsOrQueryParamsChange":return!Tt(t,e)||!P(t.queryParams,e.queryParams);case"paramsChange":default:return!Tt(t,e)}},t.prototype.deactiveRouteAndItsChildren=function(t,e){var n=this,r=ye(t),o=t.value;M(r,function(t,r){o.component?e?n.deactiveRouteAndItsChildren(t,e.outletMap._outlets[r]):n.deactiveRouteAndItsChildren(t,null):n.deactiveRouteAndItsChildren(t,e)}),this.canDeactivateChecks.push(o.component?e&&e.isActivated?new Cn(e.component,o):new Cn(null,o):new Cn(null,o))},t.prototype.runCanDeactivateChecks=function(){var t=this,e=i.from(this.canDeactivateChecks),n=p.mergeMap.call(e,function(e){return t.runCanDeactivate(e.component,e.route)});return u.every.call(n,function(t){return t===!0})},t.prototype.runCanActivateChecks=function(){var t=this,e=i.from(this.canActivateChecks),n=p.mergeMap.call(e,function(e){return k(i.from([t.runCanActivateChild(e.path),t.runCanActivate(e.route)]))});return u.every.call(n,function(t){return t===!0})},t.prototype.runCanActivate=function(t){var e=this,n=t._routeConfig?t._routeConfig.canActivate:null;if(!n||0===n.length)return s.of(!0);var r=l.map.call(i.from(n),function(n){var r,o=e.getToken(n,t);return r=I(o.canActivate?o.canActivate(t,e.future):o(t,e.future)),c.first.call(r)});return k(r)},t.prototype.runCanActivateChild=function(t){var e=this,n=t[t.length-1],r=t.slice(0,t.length-1).reverse().map(function(t){return e.extractCanActivateChild(t)}).filter(function(t){return null!==t});return k(l.map.call(i.from(r),function(t){var r=l.map.call(i.from(t.guards),function(r){var o,i=e.getToken(r,t.node);return o=I(i.canActivateChild?i.canActivateChild(n,e.future):i(n,e.future)),c.first.call(o)});return k(r)}))},t.prototype.extractCanActivateChild=function(t){var e=t._routeConfig?t._routeConfig.canActivateChild:null;return e&&0!==e.length?{node:t,guards:e}:null},t.prototype.runCanDeactivate=function(t,e){var n=this,r=e&&e._routeConfig?e._routeConfig.canDeactivate:null;if(!r||0===r.length)return s.of(!0);var o=p.mergeMap.call(i.from(r),function(r){var o,i=n.getToken(r,e);return o=I(i.canDeactivate?i.canDeactivate(t,e,n.curr,n.future):i(t,e,n.curr,n.future)),c.first.call(o)});return u.every.call(o,function(t){return t===!0})},t.prototype.runResolve=function(t){var e=t._resolve;return l.map.call(this.resolveNode(e,t),function(e){return t._resolvedData=e,t.data=gn({},t.data,Ct(t).resolve),null})},t.prototype.resolveNode=function(t,e){var n=this;return R(t,function(t,r){var o=n.getToken(r,e);return I(o.resolve?o.resolve(e,n.future):o(e,n.future)); + +})},t.prototype.getToken=function(t,e){var n=de(e),r=n?n.module.injector:this.moduleInjector;return r.get(t)},t}(),Sn=function(){function t(t,e,n){this.routeReuseStrategy=t,this.futureState=e,this.currState=n}return t.prototype.activate=function(t){var e=this.futureState._root,n=this.currState?this.currState._root:null;this.deactivateChildRoutes(e,n,t),xt(this.futureState.root),this.activateChildRoutes(e,n,t)},t.prototype.deactivateChildRoutes=function(t,e,n){var r=this,o=ye(e);t.children.forEach(function(t){r.deactivateRoutes(t,o[t.value.outlet],n),delete o[t.value.outlet]}),M(o,function(t){return r.deactiveRouteAndItsChildren(t,n)})},t.prototype.activateChildRoutes=function(t,e,n){var r=this,o=ye(e);t.children.forEach(function(t){r.activateRoutes(t,o[t.value.outlet],n)})},t.prototype.deactivateRoutes=function(t,e,n){var r=t.value,o=e?e.value:null;if(r===o)if(r.component){var i=ve(n,r);this.deactivateChildRoutes(t,e,i.outletMap)}else this.deactivateChildRoutes(t,e,n);else o&&this.deactiveRouteAndItsChildren(e,n)},t.prototype.activateRoutes=function(t,e,n){var r=t.value,o=e?e.value:null;if(r===o)if(xt(r),r.component){var i=ve(n,r);this.activateChildRoutes(t,e,i.outletMap)}else this.activateChildRoutes(t,e,n);else if(r.component){xt(r);var i=ve(n,t.value);if(this.routeReuseStrategy.shouldAttach(r.snapshot)){var s=this.routeReuseStrategy.retrieve(r.snapshot);this.routeReuseStrategy.store(r.snapshot,null),i.attach(s.componentRef,s.route.value),he(s.route)}else{var a=new yn;this.placeComponentIntoOutlet(a,r,i),this.activateChildRoutes(t,null,a)}}else xt(r),this.activateChildRoutes(t,null,n)},t.prototype.placeComponentIntoOutlet=function(t,e,n){var r=fe(e.snapshot),o=r?r.module.componentFactoryResolver:null;n.activateWith(e,o,t)},t.prototype.deactiveRouteAndItsChildren=function(t,e){this.routeReuseStrategy.shouldDetach(t.value.snapshot)?this.detachAndStoreRouteSubtree(t,e):this.deactiveRouteAndOutlet(t,e)},t.prototype.detachAndStoreRouteSubtree=function(t,e){var n=ve(e,t.value),r=n.detach();this.routeReuseStrategy.store(t.value.snapshot,{componentRef:r,route:t})},t.prototype.deactiveRouteAndOutlet=function(t,e){var n=this,r=ye(t),o=null;try{o=ve(e,t.value)}catch(i){return}var s=o.outletMap;M(r,function(r){t.value.component?n.deactiveRouteAndItsChildren(r,s):n.deactiveRouteAndItsChildren(r,e)}),o&&o.isActivated&&o.deactivate()},t}(),xn=function(){function t(t,e,n,r,o){this.router=t,this.route=e,this.commands=[],null==n&&r.setElementAttribute(o.nativeElement,"tabindex","0")}return Object.defineProperty(t.prototype,"routerLink",{set:function(t){this.commands=null!=t?Array.isArray(t)?t:[t]:[]},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"preserveQueryParams",{set:function(t){n.isDevMode()&&console&&console.warn&&console.warn("preserveQueryParams is deprecated!, use queryParamsHandling instead."),this.preserve=t},enumerable:!0,configurable:!0}),t.prototype.onClick=function(){var t={skipLocationChange:ge(this.skipLocationChange),replaceUrl:ge(this.replaceUrl)};return this.router.navigateByUrl(this.urlTree,t),!0},Object.defineProperty(t.prototype,"urlTree",{get:function(){return this.router.createUrlTree(this.commands,{relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,preserveQueryParams:ge(this.preserve),queryParamsHandling:this.queryParamsHandling,preserveFragment:ge(this.preserveFragment)})},enumerable:!0,configurable:!0}),t}();xn.decorators=[{type:n.Directive,args:[{selector:":not(a)[routerLink]"}]}],xn.ctorParameters=function(){return[{type:bn},{type:an},{type:void 0,decorators:[{type:n.Attribute,args:["tabindex"]}]},{type:n.Renderer},{type:n.ElementRef}]},xn.propDecorators={queryParams:[{type:n.Input}],fragment:[{type:n.Input}],queryParamsHandling:[{type:n.Input}],preserveFragment:[{type:n.Input}],skipLocationChange:[{type:n.Input}],replaceUrl:[{type:n.Input}],routerLink:[{type:n.Input}],preserveQueryParams:[{type:n.Input}],onClick:[{type:n.HostListener,args:["click"]}]};var Tn=function(){function t(t,e,n){var r=this;this.router=t,this.route=e,this.locationStrategy=n,this.commands=[],this.subscription=t.events.subscribe(function(t){t instanceof Me&&r.updateTargetUrlAndHref()})}return Object.defineProperty(t.prototype,"routerLink",{set:function(t){this.commands=null!=t?Array.isArray(t)?t:[t]:[]},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"preserveQueryParams",{set:function(t){n.isDevMode()&&console&&console.warn&&console.warn("preserveQueryParams is deprecated, use queryParamsHandling instead."),this.preserve=t},enumerable:!0,configurable:!0}),t.prototype.ngOnChanges=function(){this.updateTargetUrlAndHref()},t.prototype.ngOnDestroy=function(){this.subscription.unsubscribe()},t.prototype.onClick=function(t,e,n){if(0!==t||e||n)return!0;if("string"==typeof this.target&&"_self"!=this.target)return!0;var r={skipLocationChange:ge(this.skipLocationChange),replaceUrl:ge(this.replaceUrl)};return this.router.navigateByUrl(this.urlTree,r),!1},t.prototype.updateTargetUrlAndHref=function(){this.href=this.locationStrategy.prepareExternalUrl(this.router.serializeUrl(this.urlTree))},Object.defineProperty(t.prototype,"urlTree",{get:function(){return this.router.createUrlTree(this.commands,{relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,preserveQueryParams:ge(this.preserve),queryParamsHandling:this.queryParamsHandling,preserveFragment:ge(this.preserveFragment)})},enumerable:!0,configurable:!0}),t}();Tn.decorators=[{type:n.Directive,args:[{selector:"a[routerLink]"}]}],Tn.ctorParameters=function(){return[{type:bn},{type:an},{type:e.LocationStrategy}]},Tn.propDecorators={target:[{type:n.HostBinding,args:["attr.target"]},{type:n.Input}],queryParams:[{type:n.Input}],fragment:[{type:n.Input}],queryParamsHandling:[{type:n.Input}],preserveFragment:[{type:n.Input}],skipLocationChange:[{type:n.Input}],replaceUrl:[{type:n.Input}],href:[{type:n.HostBinding}],routerLink:[{type:n.Input}],preserveQueryParams:[{type:n.Input}],onClick:[{type:n.HostListener,args:["click",["$event.button","$event.ctrlKey","$event.metaKey"]]}]};var Pn=function(){function t(t,e,n,r){var o=this;this.router=t,this.element=e,this.renderer=n,this.cdr=r,this.classes=[],this.active=!1,this.routerLinkActiveOptions={exact:!1},this.subscription=t.events.subscribe(function(t){t instanceof Me&&o.update()})}return Object.defineProperty(t.prototype,"isActive",{get:function(){return this.active},enumerable:!0,configurable:!0}),t.prototype.ngAfterContentInit=function(){var t=this;this.links.changes.subscribe(function(){return t.update()}),this.linksWithHrefs.changes.subscribe(function(){return t.update()}),this.update()},Object.defineProperty(t.prototype,"routerLinkActive",{set:function(t){var e=Array.isArray(t)?t:t.split(" ");this.classes=e.filter(function(t){return!!t})},enumerable:!0,configurable:!0}),t.prototype.ngOnChanges=function(){this.update()},t.prototype.ngOnDestroy=function(){this.subscription.unsubscribe()},t.prototype.update=function(){var t=this;if(this.links&&this.linksWithHrefs&&this.router.navigated){var e=this.hasActiveLinks();this.active!==e&&(this.active=e,this.classes.forEach(function(n){return t.renderer.setElementClass(t.element.nativeElement,n,e)}),this.cdr.detectChanges())}},t.prototype.isLinkActive=function(t){var e=this;return function(n){return t.isActive(n.urlTree,e.routerLinkActiveOptions.exact)}},t.prototype.hasActiveLinks=function(){return this.links.some(this.isLinkActive(this.router))||this.linksWithHrefs.some(this.isLinkActive(this.router))},t}();Pn.decorators=[{type:n.Directive,args:[{selector:"[routerLinkActive]",exportAs:"routerLinkActive"}]}],Pn.ctorParameters=function(){return[{type:bn},{type:n.ElementRef},{type:n.Renderer},{type:n.ChangeDetectorRef}]},Pn.propDecorators={links:[{type:n.ContentChildren,args:[xn,{descendants:!0}]}],linksWithHrefs:[{type:n.ContentChildren,args:[Tn,{descendants:!0}]}],routerLinkActiveOptions:[{type:n.Input}],routerLinkActive:[{type:n.Input}]};var An=function(){function t(t,e,r,o){this.parentOutletMap=t,this.location=e,this.resolver=r,this.name=o,this.activateEvents=new n.EventEmitter,this.deactivateEvents=new n.EventEmitter,t.registerOutlet(o?o:je,this)}return t.prototype.ngOnDestroy=function(){this.parentOutletMap.removeOutlet(this.name?this.name:je)},Object.defineProperty(t.prototype,"locationInjector",{get:function(){return this.location.injector},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"locationFactoryResolver",{get:function(){return this.resolver},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isActivated",{get:function(){return!!this.activated},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"component",{get:function(){if(!this.activated)throw new Error("Outlet is not activated");return this.activated.instance},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"activatedRoute",{get:function(){if(!this.activated)throw new Error("Outlet is not activated");return this._activatedRoute},enumerable:!0,configurable:!0}),t.prototype.detach=function(){if(!this.activated)throw new Error("Outlet is not activated");this.location.detach();var t=this.activated;return this.activated=null,this._activatedRoute=null,t},t.prototype.attach=function(t,e){this.activated=t,this._activatedRoute=e,this.location.insert(t.hostView)},t.prototype.deactivate=function(){if(this.activated){var t=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(t)}},t.prototype.activate=function(t,e,r,o,i){if(this.isActivated)throw new Error("Cannot activate an already activated outlet");this.outletMap=i,this._activatedRoute=t;var s=t._futureSnapshot,a=s._routeConfig.component,u=e.resolveComponentFactory(a),c=n.ReflectiveInjector.fromResolvedProviders(o,r);this.activated=this.location.createComponent(u,this.location.length,c,[]),this.activated.changeDetectorRef.detectChanges(),this.activateEvents.emit(this.activated.instance)},t.prototype.activateWith=function(t,e,n){if(this.isActivated)throw new Error("Cannot activate an already activated outlet");this.outletMap=n,this._activatedRoute=t;var r=t._futureSnapshot,o=r._routeConfig.component;e=e||this.resolver;var i=e.resolveComponentFactory(o),s=new On(t,n,this.location.injector);this.activated=this.location.createComponent(i,this.location.length,s,[]),this.activated.changeDetectorRef.detectChanges(),this.activateEvents.emit(this.activated.instance)},t}();An.decorators=[{type:n.Directive,args:[{selector:"router-outlet"}]}],An.ctorParameters=function(){return[{type:yn},{type:n.ViewContainerRef},{type:n.ComponentFactoryResolver},{type:void 0,decorators:[{type:n.Attribute,args:["name"]}]}]},An.propDecorators={activateEvents:[{type:n.Output,args:["activate"]}],deactivateEvents:[{type:n.Output,args:["deactivate"]}]};var On=function(){function t(t,e,n){this.route=t,this.map=e,this.parent=n}return t.prototype.get=function(t,e){return t===an?this.route:t===yn?this.map:this.parent.get(t,e)},t}(),Mn=function(){function t(){}return t.prototype.shouldDetach=function(){},t.prototype.store=function(){},t.prototype.shouldAttach=function(){},t.prototype.retrieve=function(){},t.prototype.shouldReuseRoute=function(){},t}(),Rn=function(){function t(){}return t.prototype.preload=function(){},t}(),kn=function(){function t(){}return t.prototype.preload=function(t,e){return d._catch.call(e(),function(){return s.of(null)})},t}(),In=function(){function t(){}return t.prototype.preload=function(){return s.of(null)},t}(),Nn=function(){function t(t,e,n,r,o){this.router=t,this.injector=r,this.preloadingStrategy=o;var i=function(e){return t.triggerEvent(new Ne(e))},s=function(e){return t.triggerEvent(new De(e))};this.loader=new Be(e,n,i,s)}return t.prototype.setUpPreloading=function(){var t=this,e=w.filter.call(this.router.events,function(t){return t instanceof Me});this.subscription=a.concatMap.call(e,function(){return t.preload()}).subscribe(function(){})},t.prototype.preload=function(){var t=this.injector.get(n.NgModuleRef);return this.processRoutes(t,this.router.config)},t.prototype.ngOnDestroy=function(){this.subscription.unsubscribe()},t.prototype.processRoutes=function(t,e){for(var n=[],r=0,o=e;r<o.length;r++){var s=o[r],a=s;if(a.loadChildren&&!a.canLoad&&a._loadedConfig){var u=a._loadedConfig;n.push(this.processRoutes(t,u.routes))}else a.loadChildren&&!a.canLoad?n.push(this.preloadConfig(t,a)):a.children&&n.push(this.processRoutes(t,a.children))}return _.mergeAll.call(i.from(n))},t.prototype.preloadConfig=function(t,e){var n=this;return this.preloadingStrategy.preload(e,function(){var r=n.loader.load(t.injector,e);return p.mergeMap.call(r,function(t){return e._loadedConfig=t,n.processRoutes(t.module,t.routes)})})},t}();Nn.decorators=[{type:n.Injectable}],Nn.ctorParameters=function(){return[{type:bn},{type:n.NgModuleFactoryLoader},{type:n.Compiler},{type:n.Injector},{type:Rn}]};var Dn=[An,xn,Tn,Pn],jn=new n.InjectionToken("ROUTER_CONFIGURATION"),Ln=new n.InjectionToken("ROUTER_FORROOT_GUARD"),Vn=[e.Location,{provide:Ge,useClass:We},{provide:bn,useFactory:Ee,deps:[n.ApplicationRef,Ge,yn,e.Location,n.Injector,n.NgModuleFactoryLoader,n.Compiler,Fe,jn,[vn,new n.Optional],[Mn,new n.Optional]]},yn,{provide:an,useFactory:Se,deps:[bn]},{provide:n.NgModuleFactoryLoader,useClass:n.SystemJsNgModuleLoader},Nn,In,kn,{provide:jn,useValue:{enableTracing:!1}}],Fn=function(){function t(){}return t.forRoot=function(r,o){return{ngModule:t,providers:[Vn,Ce(r),{provide:Ln,useFactory:we,deps:[[bn,new n.Optional,new n.SkipSelf]]},{provide:jn,useValue:o?o:{}},{provide:e.LocationStrategy,useFactory:be,deps:[e.PlatformLocation,[new n.Inject(e.APP_BASE_HREF),new n.Optional],jn]},{provide:Rn,useExisting:o&&o.preloadingStrategy?o.preloadingStrategy:In},{provide:n.NgProbeToken,multi:!0,useFactory:_e},Pe()]}},t.forChild=function(e){return{ngModule:t,providers:[Ce(e)]}},t}();Fn.decorators=[{type:n.NgModule,args:[{declarations:Dn,exports:Dn}]}],Fn.ctorParameters=function(){return[{type:void 0,decorators:[{type:n.Optional},{type:n.Inject,args:[Ln]}]},{type:bn,decorators:[{type:n.Optional}]}]};var Un=function(){function t(t){this.injector=t,this.initNavigation=!1,this.resultOfPreactivationDone=new o.Subject}return t.prototype.appInitializer=function(){var t=this,n=this.injector.get(e.LOCATION_INITIALIZED,Promise.resolve(null));return n.then(function(){var e=null,n=new Promise(function(t){return e=t}),r=t.injector.get(bn),o=t.injector.get(jn);if(t.isLegacyDisabled(o)||t.isLegacyEnabled(o))e(!0);else if("disabled"===o.initialNavigation)r.setUpLocationChangeListener(),e(!0);else{if("enabled"!==o.initialNavigation)throw new Error("Invalid initialNavigation options: '"+o.initialNavigation+"'");r.hooks.afterPreactivation=function(){return t.initNavigation?s.of(null):(t.initNavigation=!0,e(!0),t.resultOfPreactivationDone)},r.initialNavigation()}return n})},t.prototype.bootstrapListener=function(t){var e=this.injector.get(jn),r=this.injector.get(Nn),o=this.injector.get(bn),i=this.injector.get(n.ApplicationRef);t===i.components[0]&&(this.isLegacyEnabled(e)?o.initialNavigation():this.isLegacyDisabled(e)&&o.setUpLocationChangeListener(),r.setUpPreloading(),o.resetRootComponentType(i.componentTypes[0]),this.resultOfPreactivationDone.next(null),this.resultOfPreactivationDone.complete())},t.prototype.isLegacyEnabled=function(t){return"legacy_enabled"===t.initialNavigation||t.initialNavigation===!0||void 0===t.initialNavigation},t.prototype.isLegacyDisabled=function(t){return"legacy_disabled"===t.initialNavigation||t.initialNavigation===!1},t}();Un.decorators=[{type:n.Injectable}],Un.ctorParameters=function(){return[{type:n.Injector}]};var Bn=new n.InjectionToken("Router Initializer"),Hn=new n.Version("4.0.1");t.RouterLink=xn,t.RouterLinkWithHref=Tn,t.RouterLinkActive=Pn,t.RouterOutlet=An,t.NavigationCancel=Re,t.NavigationEnd=Me,t.NavigationError=ke,t.NavigationStart=Oe,t.RouteConfigLoadEnd=De,t.RouteConfigLoadStart=Ne,t.RoutesRecognized=Ie,t.RouteReuseStrategy=Mn,t.Router=bn,t.ROUTES=Fe,t.ROUTER_CONFIGURATION=jn,t.ROUTER_INITIALIZER=Bn,t.RouterModule=Fn,t.provideRoutes=Ce,t.RouterOutletMap=yn,t.NoPreloading=In,t.PreloadAllModules=kn,t.PreloadingStrategy=Rn,t.RouterPreloader=Nn,t.ActivatedRoute=an,t.ActivatedRouteSnapshot=un,t.RouterState=sn,t.RouterStateSnapshot=cn,t.PRIMARY_OUTLET=je,t.convertToParamMap=C,t.UrlHandlingStrategy=vn,t.DefaultUrlSerializer=We,t.UrlSegment=ze,t.UrlSegmentGroup=qe,t.UrlSerializer=Ge,t.UrlTree=He,t.VERSION=Hn,t.ɵROUTER_PROVIDERS=Vn,t.ɵflatten=A,t.ɵa=Ln,t.ɵg=Un,t.ɵh=xe,t.ɵi=Te,t.ɵd=we,t.ɵc=be,t.ɵj=Pe,t.ɵf=Se,t.ɵb=_e,t.ɵe=Ee,t.ɵk=nn,t.ɵl=rn,Object.defineProperty(t,"__esModule",{value:!0})})},{"@angular/common":6,"@angular/core":8,"@angular/platform-browser":12,"rxjs/BehaviorSubject":14,"rxjs/Observable":17,"rxjs/Subject":20,"rxjs/observable/from":35,"rxjs/observable/fromPromise":36,"rxjs/observable/of":38,"rxjs/operator/catch":39,"rxjs/operator/concatAll":40,"rxjs/operator/concatMap":41,"rxjs/operator/every":42,"rxjs/operator/filter":43,"rxjs/operator/first":44,"rxjs/operator/last":45,"rxjs/operator/map":46,"rxjs/operator/mergeAll":48,"rxjs/operator/mergeMap":49,"rxjs/operator/reduce":52,"rxjs/util/EmptyError":57}],14:[function(t,e,n){"use strict";var r=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},o=t("./Subject"),i=t("./util/ObjectUnsubscribedError"),s=function(t){function e(e){t.call(this),this._value=e}return r(e,t),Object.defineProperty(e.prototype,"value",{get:function(){return this.getValue()},enumerable:!0,configurable:!0}),e.prototype._subscribe=function(e){var n=t.prototype._subscribe.call(this,e);return n&&!n.closed&&e.next(this._value),n},e.prototype.getValue=function(){if(this.hasError)throw this.thrownError;if(this.closed)throw new i.ObjectUnsubscribedError;return this._value},e.prototype.next=function(e){t.prototype.next.call(this,this._value=e)},e}(o.Subject);n.BehaviorSubject=s},{"./Subject":20,"./util/ObjectUnsubscribedError":58}],15:[function(t,e,n){"use strict";var r=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},o=t("./Subscriber"),i=function(t){function e(e,n,r){t.call(this),this.parent=e,this.outerValue=n,this.outerIndex=r,this.index=0}return r(e,t),e.prototype._next=function(t){this.parent.notifyNext(this.outerValue,t,this.outerIndex,this.index++,this)},e.prototype._error=function(t){this.parent.notifyError(t,this),this.unsubscribe()},e.prototype._complete=function(){this.parent.notifyComplete(this),this.unsubscribe()},e}(o.Subscriber);n.InnerSubscriber=i},{"./Subscriber":22}],16:[function(t,e,n){"use strict";var r=t("./Observable"),o=function(){function t(t,e,n){this.kind=t,this.value=e,this.error=n,this.hasValue="N"===t}return t.prototype.observe=function(t){switch(this.kind){case"N":return t.next&&t.next(this.value);case"E":return t.error&&t.error(this.error);case"C":return t.complete&&t.complete()}},t.prototype["do"]=function(t,e,n){var r=this.kind;switch(r){case"N":return t&&t(this.value);case"E":return e&&e(this.error);case"C":return n&&n()}},t.prototype.accept=function(t,e,n){return t&&"function"==typeof t.next?this.observe(t):this["do"](t,e,n)},t.prototype.toObservable=function(){var t=this.kind;switch(t){case"N":return r.Observable.of(this.value);case"E":return r.Observable["throw"](this.error);case"C":return r.Observable.empty()}throw new Error("unexpected notification kind value")},t.createNext=function(e){return"undefined"!=typeof e?new t("N",e):this.undefinedValueNotification},t.createError=function(e){return new t("E",void 0,e)},t.createComplete=function(){return this.completeNotification},t.completeNotification=new t("C"),t.undefinedValueNotification=new t("N",void 0),t}();n.Notification=o},{"./Observable":17}],17:[function(t,e,n){"use strict";var r=t("./util/root"),o=t("./util/toSubscriber"),i=t("./symbol/observable"),s=function(){function t(t){this._isScalar=!1,t&&(this._subscribe=t)}return t.prototype.lift=function(e){var n=new t;return n.source=this,n.operator=e,n},t.prototype.subscribe=function(t,e,n){var r=this.operator,i=o.toSubscriber(t,e,n);if(r?r.call(i,this.source):i.add(this._trySubscribe(i)),i.syncErrorThrowable&&(i.syncErrorThrowable=!1,i.syncErrorThrown))throw i.syncErrorValue;return i},t.prototype._trySubscribe=function(t){try{return this._subscribe(t)}catch(e){t.syncErrorThrown=!0,t.syncErrorValue=e,t.error(e)}},t.prototype.forEach=function(t,e){var n=this;if(e||(r.root.Rx&&r.root.Rx.config&&r.root.Rx.config.Promise?e=r.root.Rx.config.Promise:r.root.Promise&&(e=r.root.Promise)),!e)throw new Error("no Promise impl found");return new e(function(e,r){var o=n.subscribe(function(e){if(o)try{t(e)}catch(n){r(n),o.unsubscribe()}else t(e)},r,e)})},t.prototype._subscribe=function(t){return this.source.subscribe(t)},t.prototype[i.$$observable]=function(){return this},t.create=function(e){return new t(e)},t}();n.Observable=s},{"./symbol/observable":55,"./util/root":67,"./util/toSubscriber":69}],18:[function(t,e,n){"use strict";n.empty={closed:!0,next:function(){},error:function(t){throw t},complete:function(){}}},{}],19:[function(t,e,n){"use strict";var r=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},o=t("./Subscriber"),i=function(t){function e(){t.apply(this,arguments)}return r(e,t),e.prototype.notifyNext=function(t,e){this.destination.next(e)},e.prototype.notifyError=function(t){this.destination.error(t)},e.prototype.notifyComplete=function(){this.destination.complete()},e}(o.Subscriber);n.OuterSubscriber=i},{"./Subscriber":22}],20:[function(t,e,n){"use strict";var r=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},o=t("./Observable"),i=t("./Subscriber"),s=t("./Subscription"),a=t("./util/ObjectUnsubscribedError"),u=t("./SubjectSubscription"),c=t("./symbol/rxSubscriber"),l=function(t){function e(e){t.call(this,e),this.destination=e}return r(e,t),e}(i.Subscriber);n.SubjectSubscriber=l;var p=function(t){function e(){t.call(this),this.observers=[],this.closed=!1,this.isStopped=!1,this.hasError=!1,this.thrownError=null}return r(e,t),e.prototype[c.$$rxSubscriber]=function(){return new l(this)},e.prototype.lift=function(t){var e=new h(this,this);return e.operator=t,e},e.prototype.next=function(t){if(this.closed)throw new a.ObjectUnsubscribedError;if(!this.isStopped)for(var e=this.observers,n=e.length,r=e.slice(),o=0;n>o;o++)r[o].next(t)},e.prototype.error=function(t){if(this.closed)throw new a.ObjectUnsubscribedError;this.hasError=!0,this.thrownError=t,this.isStopped=!0;for(var e=this.observers,n=e.length,r=e.slice(),o=0;n>o;o++)r[o].error(t);this.observers.length=0},e.prototype.complete=function(){if(this.closed)throw new a.ObjectUnsubscribedError;this.isStopped=!0;for(var t=this.observers,e=t.length,n=t.slice(),r=0;e>r;r++)n[r].complete();this.observers.length=0},e.prototype.unsubscribe=function(){this.isStopped=!0,this.closed=!0,this.observers=null},e.prototype._trySubscribe=function(e){if(this.closed)throw new a.ObjectUnsubscribedError;return t.prototype._trySubscribe.call(this,e)},e.prototype._subscribe=function(t){if(this.closed)throw new a.ObjectUnsubscribedError;return this.hasError?(t.error(this.thrownError),s.Subscription.EMPTY):this.isStopped?(t.complete(),s.Subscription.EMPTY):(this.observers.push(t),new u.SubjectSubscription(this,t))},e.prototype.asObservable=function(){var t=new o.Observable;return t.source=this,t},e.create=function(t,e){return new h(t,e)},e}(o.Observable);n.Subject=p;var h=function(t){function e(e,n){t.call(this),this.destination=e,this.source=n}return r(e,t),e.prototype.next=function(t){var e=this.destination;e&&e.next&&e.next(t)},e.prototype.error=function(t){var e=this.destination;e&&e.error&&this.destination.error(t)},e.prototype.complete=function(){var t=this.destination;t&&t.complete&&this.destination.complete()},e.prototype._subscribe=function(t){var e=this.source;return e?this.source.subscribe(t):s.Subscription.EMPTY},e}(p);n.AnonymousSubject=h},{"./Observable":17,"./SubjectSubscription":21,"./Subscriber":22,"./Subscription":23,"./symbol/rxSubscriber":56,"./util/ObjectUnsubscribedError":58}],21:[function(t,e,n){"use strict";var r=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},o=t("./Subscription"),i=function(t){function e(e,n){t.call(this),this.subject=e,this.subscriber=n,this.closed=!1}return r(e,t),e.prototype.unsubscribe=function(){if(!this.closed){this.closed=!0;var t=this.subject,e=t.observers;if(this.subject=null,e&&0!==e.length&&!t.isStopped&&!t.closed){var n=e.indexOf(this.subscriber);-1!==n&&e.splice(n,1)}}},e}(o.Subscription);n.SubjectSubscription=i},{"./Subscription":23}],22:[function(t,e,n){"use strict";var r=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},o=t("./util/isFunction"),i=t("./Subscription"),s=t("./Observer"),a=t("./symbol/rxSubscriber"),u=function(t){function e(n,r,o){switch(t.call(this),this.syncErrorValue=null,this.syncErrorThrown=!1,this.syncErrorThrowable=!1,this.isStopped=!1,arguments.length){case 0:this.destination=s.empty;break;case 1:if(!n){this.destination=s.empty;break}if("object"==typeof n){n instanceof e?(this.destination=n,this.destination.add(this)):(this.syncErrorThrowable=!0,this.destination=new c(this,n));break}default:this.syncErrorThrowable=!0,this.destination=new c(this,n,r,o)}}return r(e,t),e.prototype[a.$$rxSubscriber]=function(){return this},e.create=function(t,n,r){var o=new e(t,n,r);return o.syncErrorThrowable=!1,o},e.prototype.next=function(t){this.isStopped||this._next(t)},e.prototype.error=function(t){this.isStopped||(this.isStopped=!0,this._error(t))},e.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},e.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,t.prototype.unsubscribe.call(this))},e.prototype._next=function(t){this.destination.next(t)},e.prototype._error=function(t){this.destination.error(t),this.unsubscribe()},e.prototype._complete=function(){this.destination.complete(),this.unsubscribe()},e.prototype._unsubscribeAndRecycle=function(){var t=this,e=t._parent,n=t._parents;return this._parent=null,this._parents=null,this.unsubscribe(),this.closed=!1,this.isStopped=!1,this._parent=e,this._parents=n,this},e}(i.Subscription);n.Subscriber=u;var c=function(t){function e(e,n,r,i){t.call(this),this._parentSubscriber=e;var s,a=this;o.isFunction(n)?s=n:n&&(a=n,s=n.next,r=n.error,i=n.complete,o.isFunction(a.unsubscribe)&&this.add(a.unsubscribe.bind(a)),a.unsubscribe=this.unsubscribe.bind(this)),this._context=a,this._next=s,this._error=r,this._complete=i}return r(e,t),e.prototype.next=function(t){if(!this.isStopped&&this._next){var e=this._parentSubscriber;e.syncErrorThrowable?this.__tryOrSetError(e,this._next,t)&&this.unsubscribe():this.__tryOrUnsub(this._next,t)}},e.prototype.error=function(t){if(!this.isStopped){var e=this._parentSubscriber;if(this._error)e.syncErrorThrowable?(this.__tryOrSetError(e,this._error,t),this.unsubscribe()):(this.__tryOrUnsub(this._error,t),this.unsubscribe());else{if(!e.syncErrorThrowable)throw this.unsubscribe(),t;e.syncErrorValue=t,e.syncErrorThrown=!0,this.unsubscribe()}}},e.prototype.complete=function(){if(!this.isStopped){var t=this._parentSubscriber;this._complete?t.syncErrorThrowable?(this.__tryOrSetError(t,this._complete),this.unsubscribe()):(this.__tryOrUnsub(this._complete),this.unsubscribe()):this.unsubscribe()}},e.prototype.__tryOrUnsub=function(t,e){try{t.call(this._context,e)}catch(n){throw this.unsubscribe(),n}},e.prototype.__tryOrSetError=function(t,e,n){try{e.call(this._context,n)}catch(r){return t.syncErrorValue=r,t.syncErrorThrown=!0,!0}return!1},e.prototype._unsubscribe=function(){var t=this._parentSubscriber;this._context=null,this._parentSubscriber=null,t.unsubscribe()},e}(u)},{"./Observer":18,"./Subscription":23,"./symbol/rxSubscriber":56,"./util/isFunction":63}],23:[function(t,e,n){"use strict";function r(t){return t.reduce(function(t,e){return t.concat(e instanceof c.UnsubscriptionError?e.errors:e)},[])}var o=t("./util/isArray"),i=t("./util/isObject"),s=t("./util/isFunction"),a=t("./util/tryCatch"),u=t("./util/errorObject"),c=t("./util/UnsubscriptionError"),l=function(){function t(t){this.closed=!1,this._parent=null,this._parents=null,this._subscriptions=null,t&&(this._unsubscribe=t)}return t.prototype.unsubscribe=function(){var t,e=!1;if(!this.closed){var n=this,l=n._parent,p=n._parents,h=n._unsubscribe,f=n._subscriptions;this.closed=!0,this._parent=null,this._parents=null,this._subscriptions=null;for(var d=-1,y=p?p.length:0;l;)l.remove(this),l=++d<y&&p[d]||null;if(s.isFunction(h)){var v=a.tryCatch(h).call(this);v===u.errorObject&&(e=!0,t=t||(u.errorObject.e instanceof c.UnsubscriptionError?r(u.errorObject.e.errors):[u.errorObject.e]))}if(o.isArray(f))for(d=-1,y=f.length;++d<y;){var m=f[d];if(i.isObject(m)){var v=a.tryCatch(m.unsubscribe).call(m);if(v===u.errorObject){e=!0,t=t||[];var g=u.errorObject.e;g instanceof c.UnsubscriptionError?t=t.concat(r(g.errors)):t.push(g)}}}if(e)throw new c.UnsubscriptionError(t)}},t.prototype.add=function(e){if(!e||e===t.EMPTY)return t.EMPTY;if(e===this)return this;var n=e;switch(typeof e){case"function":n=new t(e);case"object":if(n.closed||"function"!=typeof n.unsubscribe)return n;if(this.closed)return n.unsubscribe(),n;if("function"!=typeof n._addParent){var r=n;n=new t,n._subscriptions=[r]}break;default:throw new Error("unrecognized teardown "+e+" added to Subscription.")}var o=this._subscriptions||(this._subscriptions=[]);return o.push(n),n._addParent(this),n},t.prototype.remove=function(t){var e=this._subscriptions;if(e){var n=e.indexOf(t);-1!==n&&e.splice(n,1)}},t.prototype._addParent=function(t){var e=this,n=e._parent,r=e._parents;n&&n!==t?r?-1===r.indexOf(t)&&r.push(t):this._parents=[t]:this._parent=t},t.EMPTY=function(t){return t.closed=!0,t}(new t),t}();n.Subscription=l},{"./util/UnsubscriptionError":59,"./util/errorObject":60,"./util/isArray":61,"./util/isFunction":63,"./util/isObject":64,"./util/tryCatch":70}],24:[function(t){"use strict";var e=t("../../Observable"),n=t("../../operator/map");e.Observable.prototype.map=n.map},{"../../Observable":17,"../../operator/map":46}],25:[function(t,e,n){"use strict";var r=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},o=t("../Observable"),i=t("./ScalarObservable"),s=t("./EmptyObservable"),a=function(t){function e(e,n){t.call(this),this.arrayLike=e,this.scheduler=n,n||1!==e.length||(this._isScalar=!0,this.value=e[0])}return r(e,t),e.create=function(t,n){var r=t.length;return 0===r?new s.EmptyObservable:1===r?new i.ScalarObservable(t[0],n):new e(t,n)},e.dispatch=function(t){var e=t.arrayLike,n=t.index,r=t.length,o=t.subscriber;if(!o.closed){if(n>=r)return void o.complete();o.next(e[n]),t.index=n+1,this.schedule(t)}},e.prototype._subscribe=function(t){var n=0,r=this,o=r.arrayLike,i=r.scheduler,s=o.length;if(i)return i.schedule(e.dispatch,0,{arrayLike:o,index:n,length:s,subscriber:t});for(var a=0;s>a&&!t.closed;a++)t.next(o[a]);t.complete()},e}(o.Observable);n.ArrayLikeObservable=a},{"../Observable":17,"./EmptyObservable":28,"./ScalarObservable":33}],26:[function(t,e,n){"use strict";var r=this&&this.__extends||function(t,e){ +function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},o=t("../Observable"),i=t("./ScalarObservable"),s=t("./EmptyObservable"),a=t("../util/isScheduler"),u=function(t){function e(e,n){t.call(this),this.array=e,this.scheduler=n,n||1!==e.length||(this._isScalar=!0,this.value=e[0])}return r(e,t),e.create=function(t,n){return new e(t,n)},e.of=function(){for(var t=[],n=0;n<arguments.length;n++)t[n-0]=arguments[n];var r=t[t.length-1];a.isScheduler(r)?t.pop():r=null;var o=t.length;return o>1?new e(t,r):1===o?new i.ScalarObservable(t[0],r):new s.EmptyObservable(r)},e.dispatch=function(t){var e=t.array,n=t.index,r=t.count,o=t.subscriber;return n>=r?void o.complete():(o.next(e[n]),void(o.closed||(t.index=n+1,this.schedule(t))))},e.prototype._subscribe=function(t){var n=0,r=this.array,o=r.length,i=this.scheduler;if(i)return i.schedule(e.dispatch,0,{array:r,index:n,count:o,subscriber:t});for(var s=0;o>s&&!t.closed;s++)t.next(r[s]);t.complete()},e}(o.Observable);n.ArrayObservable=u},{"../Observable":17,"../util/isScheduler":66,"./EmptyObservable":28,"./ScalarObservable":33}],27:[function(t,e,n){"use strict";var r=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},o=t("../Subject"),i=t("../Observable"),s=t("../Subscriber"),a=t("../Subscription"),u=function(t){function e(e,n){t.call(this),this.source=e,this.subjectFactory=n,this._refCount=0}return r(e,t),e.prototype._subscribe=function(t){return this.getSubject().subscribe(t)},e.prototype.getSubject=function(){var t=this._subject;return(!t||t.isStopped)&&(this._subject=this.subjectFactory()),this._subject},e.prototype.connect=function(){var t=this._connection;return t||(t=this._connection=new a.Subscription,t.add(this.source.subscribe(new c(this.getSubject(),this))),t.closed?(this._connection=null,t=a.Subscription.EMPTY):this._connection=t),t},e.prototype.refCount=function(){return this.lift(new l(this))},e}(i.Observable);n.ConnectableObservable=u,n.connectableObservableDescriptor={operator:{value:null},_refCount:{value:0,writable:!0},_subscribe:{value:u.prototype._subscribe},getSubject:{value:u.prototype.getSubject},connect:{value:u.prototype.connect},refCount:{value:u.prototype.refCount}};var c=function(t){function e(e,n){t.call(this,e),this.connectable=n}return r(e,t),e.prototype._error=function(e){this._unsubscribe(),t.prototype._error.call(this,e)},e.prototype._complete=function(){this._unsubscribe(),t.prototype._complete.call(this)},e.prototype._unsubscribe=function(){var t=this.connectable;if(t){this.connectable=null;var e=t._connection;t._refCount=0,t._subject=null,t._connection=null,e&&e.unsubscribe()}},e}(o.SubjectSubscriber),l=function(){function t(t){this.connectable=t}return t.prototype.call=function(t,e){var n=this.connectable;n._refCount++;var r=new p(t,n),o=e.subscribe(r);return r.closed||(r.connection=n.connect()),o},t}(),p=function(t){function e(e,n){t.call(this,e),this.connectable=n}return r(e,t),e.prototype._unsubscribe=function(){var t=this.connectable;if(!t)return void(this.connection=null);this.connectable=null;var e=t._refCount;if(0>=e)return void(this.connection=null);if(t._refCount=e-1,e>1)return void(this.connection=null);var n=this.connection,r=t._connection;this.connection=null,!r||n&&r!==n||r.unsubscribe()},e}(s.Subscriber)},{"../Observable":17,"../Subject":20,"../Subscriber":22,"../Subscription":23}],28:[function(t,e,n){"use strict";var r=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},o=t("../Observable"),i=function(t){function e(e){t.call(this),this.scheduler=e}return r(e,t),e.create=function(t){return new e(t)},e.dispatch=function(t){var e=t.subscriber;e.complete()},e.prototype._subscribe=function(t){var n=this.scheduler;return n?n.schedule(e.dispatch,0,{subscriber:t}):void t.complete()},e}(o.Observable);n.EmptyObservable=i},{"../Observable":17}],29:[function(t,e,n){"use strict";var r=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},o=t("../Observable"),i=t("./EmptyObservable"),s=t("../util/isArray"),a=t("../util/subscribeToResult"),u=t("../OuterSubscriber"),c=function(t){function e(e,n){t.call(this),this.sources=e,this.resultSelector=n}return r(e,t),e.create=function(){for(var t=[],n=0;n<arguments.length;n++)t[n-0]=arguments[n];if(null===t||0===arguments.length)return new i.EmptyObservable;var r=null;return"function"==typeof t[t.length-1]&&(r=t.pop()),1===t.length&&s.isArray(t[0])&&(t=t[0]),0===t.length?new i.EmptyObservable:new e(t,r)},e.prototype._subscribe=function(t){return new l(t,this.sources,this.resultSelector)},e}(o.Observable);n.ForkJoinObservable=c;var l=function(t){function e(e,n,r){t.call(this,e),this.sources=n,this.resultSelector=r,this.completed=0,this.haveValues=0;var o=n.length;this.total=o,this.values=new Array(o);for(var i=0;o>i;i++){var s=n[i],u=a.subscribeToResult(this,s,null,i);u&&(u.outerIndex=i,this.add(u))}}return r(e,t),e.prototype.notifyNext=function(t,e,n,r,o){this.values[n]=e,o._hasValue||(o._hasValue=!0,this.haveValues++)},e.prototype.notifyComplete=function(t){var e=this.destination,n=this,r=n.haveValues,o=n.resultSelector,i=n.values,s=i.length;if(!t._hasValue)return void e.complete();if(this.completed++,this.completed===s){if(r===s){var a=o?o.apply(this,i):i;e.next(a)}e.complete()}},e}(u.OuterSubscriber)},{"../Observable":17,"../OuterSubscriber":19,"../util/isArray":61,"../util/subscribeToResult":68,"./EmptyObservable":28}],30:[function(t,e,n){"use strict";var r=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},o=t("../util/isArray"),i=t("../util/isArrayLike"),s=t("../util/isPromise"),a=t("./PromiseObservable"),u=t("./IteratorObservable"),c=t("./ArrayObservable"),l=t("./ArrayLikeObservable"),p=t("../symbol/iterator"),h=t("../Observable"),f=t("../operator/observeOn"),d=t("../symbol/observable"),y=function(t){function e(e,n){t.call(this,null),this.ish=e,this.scheduler=n}return r(e,t),e.create=function(t,n){if(null!=t){if("function"==typeof t[d.$$observable])return t instanceof h.Observable&&!n?t:new e(t,n);if(o.isArray(t))return new c.ArrayObservable(t,n);if(s.isPromise(t))return new a.PromiseObservable(t,n);if("function"==typeof t[p.$$iterator]||"string"==typeof t)return new u.IteratorObservable(t,n);if(i.isArrayLike(t))return new l.ArrayLikeObservable(t,n)}throw new TypeError((null!==t&&typeof t||t)+" is not observable")},e.prototype._subscribe=function(t){var e=this.ish,n=this.scheduler;return e[d.$$observable]().subscribe(null==n?t:new f.ObserveOnSubscriber(t,n,0))},e}(h.Observable);n.FromObservable=y},{"../Observable":17,"../operator/observeOn":51,"../symbol/iterator":54,"../symbol/observable":55,"../util/isArray":61,"../util/isArrayLike":62,"../util/isPromise":65,"./ArrayLikeObservable":25,"./ArrayObservable":26,"./IteratorObservable":31,"./PromiseObservable":32}],31:[function(t,e,n){"use strict";function r(t){var e=t[l.$$iterator];if(!e&&"string"==typeof t)return new h(t);if(!e&&void 0!==t.length)return new f(t);if(!e)throw new TypeError("object is not iterable");return t[l.$$iterator]()}function o(t){var e=+t.length;return isNaN(e)?0:0!==e&&i(e)?(e=s(e)*Math.floor(Math.abs(e)),0>=e?0:e>d?d:e):e}function i(t){return"number"==typeof t&&u.root.isFinite(t)}function s(t){var e=+t;return 0===e?e:isNaN(e)?e:0>e?-1:1}var a=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},u=t("../util/root"),c=t("../Observable"),l=t("../symbol/iterator"),p=function(t){function e(e,n){if(t.call(this),this.scheduler=n,null==e)throw new Error("iterator cannot be null.");this.iterator=r(e)}return a(e,t),e.create=function(t,n){return new e(t,n)},e.dispatch=function(t){var e=t.index,n=t.hasError,r=t.iterator,o=t.subscriber;if(n)return void o.error(t.error);var i=r.next();return i.done?void o.complete():(o.next(i.value),t.index=e+1,o.closed?void("function"==typeof r["return"]&&r["return"]()):void this.schedule(t))},e.prototype._subscribe=function(t){var n=0,r=this,o=r.iterator,i=r.scheduler;if(i)return i.schedule(e.dispatch,0,{index:n,iterator:o,subscriber:t});for(;;){var s=o.next();if(s.done){t.complete();break}if(t.next(s.value),t.closed){"function"==typeof o["return"]&&o["return"]();break}}},e}(c.Observable);n.IteratorObservable=p;var h=function(){function t(t,e,n){void 0===e&&(e=0),void 0===n&&(n=t.length),this.str=t,this.idx=e,this.len=n}return t.prototype[l.$$iterator]=function(){return this},t.prototype.next=function(){return this.idx<this.len?{done:!1,value:this.str.charAt(this.idx++)}:{done:!0,value:void 0}},t}(),f=function(){function t(t,e,n){void 0===e&&(e=0),void 0===n&&(n=o(t)),this.arr=t,this.idx=e,this.len=n}return t.prototype[l.$$iterator]=function(){return this},t.prototype.next=function(){return this.idx<this.len?{done:!1,value:this.arr[this.idx++]}:{done:!0,value:void 0}},t}(),d=Math.pow(2,53)-1},{"../Observable":17,"../symbol/iterator":54,"../util/root":67}],32:[function(t,e,n){"use strict";function r(t){var e=t.value,n=t.subscriber;n.closed||(n.next(e),n.complete())}function o(t){var e=t.err,n=t.subscriber;n.closed||n.error(e)}var i=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},s=t("../util/root"),a=t("../Observable"),u=function(t){function e(e,n){t.call(this),this.promise=e,this.scheduler=n}return i(e,t),e.create=function(t,n){return new e(t,n)},e.prototype._subscribe=function(t){var e=this,n=this.promise,i=this.scheduler;if(null==i)this._isScalar?t.closed||(t.next(this.value),t.complete()):n.then(function(n){e.value=n,e._isScalar=!0,t.closed||(t.next(n),t.complete())},function(e){t.closed||t.error(e)}).then(null,function(t){s.root.setTimeout(function(){throw t})});else if(this._isScalar){if(!t.closed)return i.schedule(r,0,{value:this.value,subscriber:t})}else n.then(function(n){e.value=n,e._isScalar=!0,t.closed||t.add(i.schedule(r,0,{value:n,subscriber:t}))},function(e){t.closed||t.add(i.schedule(o,0,{err:e,subscriber:t}))}).then(null,function(t){s.root.setTimeout(function(){throw t})})},e}(a.Observable);n.PromiseObservable=u},{"../Observable":17,"../util/root":67}],33:[function(t,e,n){"use strict";var r=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},o=t("../Observable"),i=function(t){function e(e,n){t.call(this),this.value=e,this.scheduler=n,this._isScalar=!0,n&&(this._isScalar=!1)}return r(e,t),e.create=function(t,n){return new e(t,n)},e.dispatch=function(t){var e=t.done,n=t.value,r=t.subscriber;return e?void r.complete():(r.next(n),void(r.closed||(t.done=!0,this.schedule(t))))},e.prototype._subscribe=function(t){var n=this.value,r=this.scheduler;return r?r.schedule(e.dispatch,0,{done:!1,value:n,subscriber:t}):(t.next(n),void(t.closed||t.complete()))},e}(o.Observable);n.ScalarObservable=i},{"../Observable":17}],34:[function(t,e,n){"use strict";var r=t("./ForkJoinObservable");n.forkJoin=r.ForkJoinObservable.create},{"./ForkJoinObservable":29}],35:[function(t,e,n){"use strict";var r=t("./FromObservable");n.from=r.FromObservable.create},{"./FromObservable":30}],36:[function(t,e,n){"use strict";var r=t("./PromiseObservable");n.fromPromise=r.PromiseObservable.create},{"./PromiseObservable":32}],37:[function(t,e,n){"use strict";var r=t("../operator/merge");n.merge=r.mergeStatic},{"../operator/merge":47}],38:[function(t,e,n){"use strict";var r=t("./ArrayObservable");n.of=r.ArrayObservable.of},{"./ArrayObservable":26}],39:[function(t,e,n){"use strict";function r(t){var e=new a(t),n=this.lift(e);return e.caught=n}var o=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},i=t("../OuterSubscriber"),s=t("../util/subscribeToResult");n._catch=r;var a=function(){function t(t){this.selector=t}return t.prototype.call=function(t,e){return e.subscribe(new u(t,this.selector,this.caught))},t}(),u=function(t){function e(e,n,r){t.call(this,e),this.selector=n,this.caught=r}return o(e,t),e.prototype.error=function(e){if(!this.isStopped){var n=void 0;try{n=this.selector(e,this.caught)}catch(r){return void t.prototype.error.call(this,r)}this._unsubscribeAndRecycle(),this.add(s.subscribeToResult(this,n))}},e}(i.OuterSubscriber)},{"../OuterSubscriber":19,"../util/subscribeToResult":68}],40:[function(t,e,n){"use strict";function r(){return this.lift(new o.MergeAllOperator(1))}var o=t("./mergeAll");n.concatAll=r},{"./mergeAll":48}],41:[function(t,e,n){"use strict";function r(t,e){return this.lift(new o.MergeMapOperator(t,e,1))}var o=t("./mergeMap");n.concatMap=r},{"./mergeMap":49}],42:[function(t,e,n){"use strict";function r(t,e){return this.lift(new s(t,e,this))}var o=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},i=t("../Subscriber");n.every=r;var s=function(){function t(t,e,n){this.predicate=t,this.thisArg=e,this.source=n}return t.prototype.call=function(t,e){return e.subscribe(new a(t,this.predicate,this.thisArg,this.source))},t}(),a=function(t){function e(e,n,r,o){t.call(this,e),this.predicate=n,this.thisArg=r,this.source=o,this.index=0,this.thisArg=r||this}return o(e,t),e.prototype.notifyComplete=function(t){this.destination.next(t),this.destination.complete()},e.prototype._next=function(t){var e=!1;try{e=this.predicate.call(this.thisArg,t,this.index++,this.source)}catch(n){return void this.destination.error(n)}e||this.notifyComplete(!1)},e.prototype._complete=function(){this.notifyComplete(!0)},e}(i.Subscriber)},{"../Subscriber":22}],43:[function(t,e,n){"use strict";function r(t,e){return this.lift(new s(t,e))}var o=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},i=t("../Subscriber");n.filter=r;var s=function(){function t(t,e){this.predicate=t,this.thisArg=e}return t.prototype.call=function(t,e){return e.subscribe(new a(t,this.predicate,this.thisArg))},t}(),a=function(t){function e(e,n,r){t.call(this,e),this.predicate=n,this.thisArg=r,this.count=0,this.predicate=n}return o(e,t),e.prototype._next=function(t){var e;try{e=this.predicate.call(this.thisArg,t,this.count++)}catch(n){return void this.destination.error(n)}e&&this.destination.next(t)},e}(i.Subscriber)},{"../Subscriber":22}],44:[function(t,e,n){"use strict";function r(t,e,n){return this.lift(new a(t,e,n,this))}var o=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},i=t("../Subscriber"),s=t("../util/EmptyError");n.first=r;var a=function(){function t(t,e,n,r){this.predicate=t,this.resultSelector=e,this.defaultValue=n,this.source=r}return t.prototype.call=function(t,e){return e.subscribe(new u(t,this.predicate,this.resultSelector,this.defaultValue,this.source))},t}(),u=function(t){function e(e,n,r,o,i){t.call(this,e),this.predicate=n,this.resultSelector=r,this.defaultValue=o,this.source=i,this.index=0,this.hasCompleted=!1,this._emitted=!1}return o(e,t),e.prototype._next=function(t){var e=this.index++;this.predicate?this._tryPredicate(t,e):this._emit(t,e)},e.prototype._tryPredicate=function(t,e){var n;try{n=this.predicate(t,e,this.source)}catch(r){return void this.destination.error(r)}n&&this._emit(t,e)},e.prototype._emit=function(t,e){return this.resultSelector?void this._tryResultSelector(t,e):void this._emitFinal(t)},e.prototype._tryResultSelector=function(t,e){var n;try{n=this.resultSelector(t,e)}catch(r){return void this.destination.error(r)}this._emitFinal(n)},e.prototype._emitFinal=function(t){var e=this.destination;this._emitted||(this._emitted=!0,e.next(t),e.complete(),this.hasCompleted=!0)},e.prototype._complete=function(){var t=this.destination;this.hasCompleted||"undefined"==typeof this.defaultValue?this.hasCompleted||t.error(new s.EmptyError):(t.next(this.defaultValue),t.complete())},e}(i.Subscriber)},{"../Subscriber":22,"../util/EmptyError":57}],45:[function(t,e,n){"use strict";function r(t,e,n){return this.lift(new a(t,e,n,this))}var o=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},i=t("../Subscriber"),s=t("../util/EmptyError");n.last=r;var a=function(){function t(t,e,n,r){this.predicate=t,this.resultSelector=e,this.defaultValue=n,this.source=r}return t.prototype.call=function(t,e){return e.subscribe(new u(t,this.predicate,this.resultSelector,this.defaultValue,this.source))},t}(),u=function(t){function e(e,n,r,o,i){t.call(this,e),this.predicate=n,this.resultSelector=r,this.defaultValue=o,this.source=i,this.hasValue=!1,this.index=0,"undefined"!=typeof o&&(this.lastValue=o,this.hasValue=!0)}return o(e,t),e.prototype._next=function(t){var e=this.index++;if(this.predicate)this._tryPredicate(t,e);else{if(this.resultSelector)return void this._tryResultSelector(t,e);this.lastValue=t,this.hasValue=!0}},e.prototype._tryPredicate=function(t,e){var n;try{n=this.predicate(t,e,this.source)}catch(r){return void this.destination.error(r)}if(n){if(this.resultSelector)return void this._tryResultSelector(t,e);this.lastValue=t,this.hasValue=!0}},e.prototype._tryResultSelector=function(t,e){var n;try{n=this.resultSelector(t,e)}catch(r){return void this.destination.error(r)}this.lastValue=n,this.hasValue=!0},e.prototype._complete=function(){var t=this.destination;this.hasValue?(t.next(this.lastValue),t.complete()):t.error(new s.EmptyError)},e}(i.Subscriber)},{"../Subscriber":22,"../util/EmptyError":57}],46:[function(t,e,n){"use strict";function r(t,e){if("function"!=typeof t)throw new TypeError("argument is not a function. Are you looking for `mapTo()`?");return this.lift(new s(t,e))}var o=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},i=t("../Subscriber");n.map=r;var s=function(){function t(t,e){this.project=t,this.thisArg=e}return t.prototype.call=function(t,e){return e.subscribe(new a(t,this.project,this.thisArg))},t}();n.MapOperator=s;var a=function(t){function e(e,n,r){t.call(this,e),this.project=n,this.count=0,this.thisArg=r||this}return o(e,t),e.prototype._next=function(t){var e;try{e=this.project.call(this.thisArg,t,this.count++)}catch(n){return void this.destination.error(n)}this.destination.next(e)},e}(i.Subscriber)},{"../Subscriber":22}],47:[function(t,e,n){"use strict";function r(){for(var t=[],e=0;e<arguments.length;e++)t[e-0]=arguments[e];return this.lift.call(o.apply(void 0,[this].concat(t)))}function o(){for(var t=[],e=0;e<arguments.length;e++)t[e-0]=arguments[e];var n=Number.POSITIVE_INFINITY,r=null,o=t[t.length-1];return u.isScheduler(o)?(r=t.pop(),t.length>1&&"number"==typeof t[t.length-1]&&(n=t.pop())):"number"==typeof o&&(n=t.pop()),null===r&&1===t.length&&t[0]instanceof i.Observable?t[0]:new s.ArrayObservable(t,r).lift(new a.MergeAllOperator(n))}var i=t("../Observable"),s=t("../observable/ArrayObservable"),a=t("./mergeAll"),u=t("../util/isScheduler");n.merge=r,n.mergeStatic=o},{"../Observable":17,"../observable/ArrayObservable":26,"../util/isScheduler":66,"./mergeAll":48}],48:[function(t,e,n){"use strict";function r(t){return void 0===t&&(t=Number.POSITIVE_INFINITY),this.lift(new a(t))}var o=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},i=t("../OuterSubscriber"),s=t("../util/subscribeToResult");n.mergeAll=r;var a=function(){function t(t){this.concurrent=t}return t.prototype.call=function(t,e){return e.subscribe(new u(t,this.concurrent))},t}();n.MergeAllOperator=a;var u=function(t){function e(e,n){t.call(this,e),this.concurrent=n,this.hasCompleted=!1,this.buffer=[],this.active=0}return o(e,t),e.prototype._next=function(t){this.active<this.concurrent?(this.active++,this.add(s.subscribeToResult(this,t))):this.buffer.push(t)},e.prototype._complete=function(){this.hasCompleted=!0,0===this.active&&0===this.buffer.length&&this.destination.complete()},e.prototype.notifyComplete=function(t){var e=this.buffer;this.remove(t),this.active--,e.length>0?this._next(e.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()},e}(i.OuterSubscriber);n.MergeAllSubscriber=u},{"../OuterSubscriber":19,"../util/subscribeToResult":68}],49:[function(t,e,n){"use strict";function r(t,e,n){return void 0===n&&(n=Number.POSITIVE_INFINITY),"number"==typeof e&&(n=e,e=null),this.lift(new a(t,e,n))}var o=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},i=t("../util/subscribeToResult"),s=t("../OuterSubscriber");n.mergeMap=r;var a=function(){function t(t,e,n){void 0===n&&(n=Number.POSITIVE_INFINITY),this.project=t,this.resultSelector=e,this.concurrent=n}return t.prototype.call=function(t,e){return e.subscribe(new u(t,this.project,this.resultSelector,this.concurrent))},t}();n.MergeMapOperator=a;var u=function(t){function e(e,n,r,o){void 0===o&&(o=Number.POSITIVE_INFINITY),t.call(this,e),this.project=n,this.resultSelector=r,this.concurrent=o,this.hasCompleted=!1,this.buffer=[],this.active=0,this.index=0}return o(e,t),e.prototype._next=function(t){this.active<this.concurrent?this._tryNext(t):this.buffer.push(t)},e.prototype._tryNext=function(t){var e,n=this.index++;try{e=this.project(t,n)}catch(r){return void this.destination.error(r)}this.active++,this._innerSub(e,t,n)},e.prototype._innerSub=function(t,e,n){this.add(i.subscribeToResult(this,t,e,n))},e.prototype._complete=function(){this.hasCompleted=!0,0===this.active&&0===this.buffer.length&&this.destination.complete()},e.prototype.notifyNext=function(t,e,n,r){this.resultSelector?this._notifyResultSelector(t,e,n,r):this.destination.next(e)},e.prototype._notifyResultSelector=function(t,e,n,r){var o;try{o=this.resultSelector(t,e,n,r)}catch(i){return void this.destination.error(i)}this.destination.next(o)},e.prototype.notifyComplete=function(t){var e=this.buffer;this.remove(t),this.active--,e.length>0?this._next(e.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()},e}(s.OuterSubscriber);n.MergeMapSubscriber=u},{"../OuterSubscriber":19,"../util/subscribeToResult":68}],50:[function(t,e,n){"use strict";function r(t,e){var n;if(n="function"==typeof t?t:function(){return t},"function"==typeof e)return this.lift(new i(n,e));var r=Object.create(this,o.connectableObservableDescriptor);return r.source=this,r.subjectFactory=n,r}var o=t("../observable/ConnectableObservable");n.multicast=r;var i=function(){function t(t,e){this.subjectFactory=t,this.selector=e}return t.prototype.call=function(t,e){var n=this.selector,r=this.subjectFactory(),o=n(r).subscribe(t);return o.add(e.subscribe(r)),o},t}();n.MulticastOperator=i},{"../observable/ConnectableObservable":27}],51:[function(t,e,n){"use strict";function r(t,e){return void 0===e&&(e=0),this.lift(new a(t,e))}var o=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},i=t("../Subscriber"),s=t("../Notification");n.observeOn=r;var a=function(){function t(t,e){void 0===e&&(e=0),this.scheduler=t,this.delay=e}return t.prototype.call=function(t,e){return e.subscribe(new u(t,this.scheduler,this.delay))},t}();n.ObserveOnOperator=a;var u=function(t){function e(e,n,r){void 0===r&&(r=0),t.call(this,e),this.scheduler=n,this.delay=r}return o(e,t),e.dispatch=function(t){var e=t.notification,n=t.destination;e.observe(n),this.unsubscribe()},e.prototype.scheduleMessage=function(t){this.add(this.scheduler.schedule(e.dispatch,this.delay,new c(t,this.destination)))},e.prototype._next=function(t){this.scheduleMessage(s.Notification.createNext(t))},e.prototype._error=function(t){this.scheduleMessage(s.Notification.createError(t))},e.prototype._complete=function(){this.scheduleMessage(s.Notification.createComplete())},e}(i.Subscriber);n.ObserveOnSubscriber=u;var c=function(){function t(t,e){this.notification=t,this.destination=e}return t}();n.ObserveOnMessage=c},{"../Notification":16,"../Subscriber":22}],52:[function(t,e,n){"use strict";function r(t,e){var n=!1;return arguments.length>=2&&(n=!0),this.lift(new s(t,e,n))}var o=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},i=t("../Subscriber");n.reduce=r;var s=function(){function t(t,e,n){void 0===n&&(n=!1),this.accumulator=t,this.seed=e,this.hasSeed=n}return t.prototype.call=function(t,e){return e.subscribe(new a(t,this.accumulator,this.seed,this.hasSeed))},t}();n.ReduceOperator=s;var a=function(t){function e(e,n,r,o){t.call(this,e),this.accumulator=n,this.hasSeed=o,this.index=0,this.hasValue=!1,this.acc=r,this.hasSeed||this.index++}return o(e,t),e.prototype._next=function(t){this.hasValue||(this.hasValue=this.hasSeed)?this._tryReduce(t):(this.acc=t,this.hasValue=!0)},e.prototype._tryReduce=function(t){var e;try{e=this.accumulator(this.acc,t,this.index++)}catch(n){return void this.destination.error(n)}this.acc=e},e.prototype._complete=function(){(this.hasValue||this.hasSeed)&&this.destination.next(this.acc),this.destination.complete()},e}(i.Subscriber);n.ReduceSubscriber=a},{"../Subscriber":22}],53:[function(t,e,n){"use strict";function r(){return new s.Subject}function o(){return i.multicast.call(this,r).refCount()}var i=t("./multicast"),s=t("../Subject");n.share=o},{"../Subject":20,"./multicast":50}],54:[function(t,e,n){"use strict";function r(t){var e=t.Symbol;if("function"==typeof e)return e.iterator||(e.iterator=e("iterator polyfill")),e.iterator;var n=t.Set;if(n&&"function"==typeof(new n)["@@iterator"])return"@@iterator";var r=t.Map;if(r)for(var o=Object.getOwnPropertyNames(r.prototype),i=0;i<o.length;++i){var s=o[i];if("entries"!==s&&"size"!==s&&r.prototype[s]===r.prototype.entries)return s}return"@@iterator"}var o=t("../util/root");n.symbolIteratorPonyfill=r,n.$$iterator=r(o.root)},{"../util/root":67}],55:[function(t,e,n){"use strict";function r(t){var e,n=t.Symbol;return"function"==typeof n?n.observable?e=n.observable:(e=n("observable"),n.observable=e):e="@@observable",e}var o=t("../util/root");n.getSymbolObservable=r,n.$$observable=r(o.root)},{"../util/root":67}],56:[function(t,e,n){"use strict";var r=t("../util/root"),o=r.root.Symbol;n.$$rxSubscriber="function"==typeof o&&"function"==typeof o["for"]?o["for"]("rxSubscriber"):"@@rxSubscriber"},{"../util/root":67}],57:[function(t,e,n){"use strict";var r=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},o=function(t){function e(){var e=t.call(this,"no elements in sequence");this.name=e.name="EmptyError",this.stack=e.stack,this.message=e.message}return r(e,t),e}(Error);n.EmptyError=o},{}],58:[function(t,e,n){"use strict";var r=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},o=function(t){function e(){var e=t.call(this,"object unsubscribed");this.name=e.name="ObjectUnsubscribedError",this.stack=e.stack,this.message=e.message}return r(e,t),e}(Error);n.ObjectUnsubscribedError=o},{}],59:[function(t,e,n){"use strict";var r=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},o=function(t){function e(e){t.call(this),this.errors=e;var n=Error.call(this,e?e.length+" errors occurred during unsubscription:\n "+e.map(function(t,e){return e+1+") "+t.toString()}).join("\n "):"");this.name=n.name="UnsubscriptionError",this.stack=n.stack,this.message=n.message}return r(e,t),e}(Error);n.UnsubscriptionError=o},{}],60:[function(t,e,n){"use strict";n.errorObject={e:{}}},{}],61:[function(t,e,n){"use strict";n.isArray=Array.isArray||function(t){return t&&"number"==typeof t.length}},{}],62:[function(t,e,n){"use strict";n.isArrayLike=function(t){return t&&"number"==typeof t.length}},{}],63:[function(t,e,n){"use strict";function r(t){return"function"==typeof t}n.isFunction=r},{}],64:[function(t,e,n){"use strict";function r(t){return null!=t&&"object"==typeof t}n.isObject=r},{}],65:[function(t,e,n){"use strict";function r(t){return t&&"function"!=typeof t.subscribe&&"function"==typeof t.then}n.isPromise=r},{}],66:[function(t,e,n){"use strict";function r(t){return t&&"function"==typeof t.schedule}n.isScheduler=r},{}],67:[function(t,e,n){(function(t){"use strict";if(n.root="object"==typeof window&&window.window===window&&window||"object"==typeof self&&self.self===self&&self||"object"==typeof t&&t.global===t&&t,!n.root)throw new Error("RxJS could not find any global context (window, self, global)")}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],68:[function(t,e,n){"use strict";function r(t,e,n,r){var h=new l.InnerSubscriber(t,n,r);if(h.closed)return null;if(e instanceof u.Observable)return e._isScalar?(h.next(e.value),h.complete(),null):e.subscribe(h);if(i.isArrayLike(e)){for(var f=0,d=e.length;d>f&&!h.closed;f++)h.next(e[f]);h.closed||h.complete()}else{if(s.isPromise(e))return e.then(function(t){h.closed||(h.next(t),h.complete())},function(t){return h.error(t)}).then(null,function(t){o.root.setTimeout(function(){throw t})}),h;if(e&&"function"==typeof e[c.$$iterator])for(var y=e[c.$$iterator]();;){var v=y.next();if(v.done){h.complete();break}if(h.next(v.value),h.closed)break}else if(e&&"function"==typeof e[p.$$observable]){var m=e[p.$$observable]();if("function"==typeof m.subscribe)return m.subscribe(new l.InnerSubscriber(t,n,r));h.error(new TypeError("Provided object does not correctly implement Symbol.observable"))}else{var g=a.isObject(e)?"an invalid object":"'"+e+"'",_="You provided "+g+" where a stream was expected. You can provide an Observable, Promise, Array, or Iterable.";h.error(new TypeError(_))}}return null}var o=t("./root"),i=t("./isArrayLike"),s=t("./isPromise"),a=t("./isObject"),u=t("../Observable"),c=t("../symbol/iterator"),l=t("../InnerSubscriber"),p=t("../symbol/observable");n.subscribeToResult=r},{"../InnerSubscriber":15,"../Observable":17,"../symbol/iterator":54,"../symbol/observable":55,"./isArrayLike":62,"./isObject":64,"./isPromise":65,"./root":67}],69:[function(t,e,n){"use strict";function r(t,e,n){if(t){if(t instanceof o.Subscriber)return t;if(t[i.$$rxSubscriber])return t[i.$$rxSubscriber]()}return t||e||n?new o.Subscriber(t,e,n):new o.Subscriber(s.empty)}var o=t("../Subscriber"),i=t("../symbol/rxSubscriber"),s=t("../Observer");n.toSubscriber=r},{"../Observer":18,"../Subscriber":22,"../symbol/rxSubscriber":56 +}],70:[function(t,e,n){"use strict";function r(){try{return i.apply(this,arguments)}catch(t){return s.errorObject.e=t,s.errorObject}}function o(t){return i=t,r}var i,s=t("./errorObject");n.tryCatch=o},{"./errorObject":60}]},{},[5])(5)}); \ No newline at end of file diff --git a/core/Controllers/UserController.php b/core/Controllers/UserController.php index 9508ca20e3f..d7662a5abe6 100644 --- a/core/Controllers/UserController.php +++ b/core/Controllers/UserController.php @@ -28,7 +28,7 @@ class UserController return $response->withStatus(401)->withJson(['errors' => 'User Not Connected']); } - $user = UserModel::getById(['userId' => $_SESSION['user']['UserId'], 'select' => ['user_id', 'firstname', 'lastname', 'phone', 'mail', 'initials']]); + $user = UserModel::getById(['userId' => $_SESSION['user']['UserId'], 'select' => ['user_id', 'firstname', 'lastname', 'phone', 'mail', 'initials', 'thumbprint']]); $user['signatures'] = UserModel::getSignaturesById(['userId' => $_SESSION['user']['UserId']]); $user['emailSignatures'] = UserModel::getEmailSignaturesById(['userId' => $_SESSION['user']['UserId']]); $user['groups'] = UserModel::getGroupsById(['userId' => $_SESSION['user']['UserId']]); @@ -37,4 +37,30 @@ class UserController return $response->withJson($user); } + public function update(RequestInterface $request, ResponseInterface $response, $aArgs) + { + $data = $request->getParams(); + + if (!$this->checkNeededParameters(['data' => $data, 'needed' => ['user_id', 'firstname', 'lastname']])) { + return $response->withStatus(400)->withJson(['errors' => 'Bad Request']); + } + + $r = UserModel::update(['user' => $data]); + + if ($r) { + return $response->withJson([]); + } else { + return $response->withStatus(500)->withJson(['errors' => 'User Update Error']); + } + } + + private function checkNeededParameters($aArgs = []) { + foreach ($aArgs['needed'] as $value) { + if (empty($aArgs['data'][$value])) { + return false; + } + } + + return true; + } } diff --git a/core/Models/UserModelAbstract.php b/core/Models/UserModelAbstract.php index 1a83fc8419b..c0136753d14 100644 --- a/core/Models/UserModelAbstract.php +++ b/core/Models/UserModelAbstract.php @@ -50,6 +50,29 @@ class UserModelAbstract extends \Apps_Table_Service return $aReturn; } + public static function update(array $aArgs = []) + { + static::checkRequired($aArgs, ['user']); + static::checkRequired($aArgs['user'], ['user_id', 'firstname', 'lastname']); + static::checkString($aArgs['user'], ['user_id', 'firstname', 'lastname', 'mail', 'initials', 'thumbprint', 'phone']); + + $aReturn = parent::update([ + 'table' => 'users', + 'set' => [ + 'firstname' => $aArgs['user']['firstname'], + 'lastname' => $aArgs['user']['lastname'], + 'mail' => $aArgs['user']['mail'], + 'phone' => $aArgs['user']['phone'], + 'initials' => $aArgs['user']['initials'], + 'thumbprint' => $aArgs['user']['thumbprint'] + ], + 'where' => ['user_id = ?'], + 'data' => [$aArgs['user']['user_id']] + ]); + + return $aReturn; + } + public static function getSignaturesById(array $aArgs = []) { static::checkRequired($aArgs, ['userId']); diff --git a/rest/index.php b/rest/index.php index fdbfa80bcd0..41cebb32782 100644 --- a/rest/index.php +++ b/rest/index.php @@ -133,5 +133,6 @@ $app->post('/resExt', \Core\Controllers\ResExtController::class . ':create'); //Users $app->get('/user/profile', \Core\Controllers\UserController::class . ':getCurrentUserInfos'); +$app->put('/user/{id}', \Core\Controllers\UserController::class . ':update'); $app->run(); -- GitLab