diff --git a/apps/maarch_entreprise/js/angular/app/Views/signatureBook.html b/apps/maarch_entreprise/js/angular/app/Views/signatureBook.html index 354bb491110ef2c8b0bf419232c3cada6da7738d..f607a87eeaca9295f200023c08e0b4a6ee41eb2a 100644 --- a/apps/maarch_entreprise/js/angular/app/Views/signatureBook.html +++ b/apps/maarch_entreprise/js/angular/app/Views/signatureBook.html @@ -85,19 +85,6 @@ </div> <div *ngIf="headerTab == 4" class="contentShow" style="width:98%;"> <iframe [src]="histViewerLink | safeUrl"></iframe> - <!--<table ng-table="historyTable" class="table" id="historyTable">--> - <!--<tr ng-repeat="history in $data">--> - <!--<td title="'Date'" sortable="'event_date'" style="width:20%;">--> - <!--{{history.event_date}}--> - <!--</td>--> - <!--<td title="'Utilisateur'" sortable="'lastname'" filter="{ lastname: 'text'}" style="width:20%;">--> - <!--{{history.firstname + " " + history.lastname}}--> - <!--</td>--> - <!--<td title="'Evènement'" sortable="'info'" style="width:60%;">--> - <!--{{history.info}}--> - <!--</td>--> - <!--</tr>--> - <!--</table>--> </div> </div> <div class="hideLeftContent" (click)="displayPanel('LEFT')"> @@ -157,6 +144,11 @@ <iframe *ngIf="signatureBook.attachments[rightSelectedThumbnail].format == 'pdf' || signatureBook.attachments[rightSelectedThumbnail].isConverted" id="rightPanelShowDocumentIframe" [src]="rightViewerLink | safeUrl" [ngStyle]="{'height': showTopRightPanel ? '80%' : '95%'}"></iframe> <div *ngIf="signatureBook.attachments[rightSelectedThumbnail].format != 'pdf' && !signatureBook.attachments[rightSelectedThumbnail].isConverted" [ngStyle]="{'height': showTopRightPanel ? '80%' : '95%'}" class="visaNoPdfWarning"> <div style="padding-top: 25%;">Aucun aperçu disponible<br/><sub>La version PDF de ce format n'a pas été trouvée.</sub></div> + <div class="visaPjView"> + <a title="Télécharger la pièce jointe" href="index.php?display=true&module=attachments&page=view_attachment&res_id_master={{resId}}&id={{signatureBook.attachments[rightSelectedThumbnail].res_id}}" target="_blank"> + <i class="fa fa-download fa-2x"></i> + </a> + </div> </div> <div *ngIf="signatureBook.attachments[rightSelectedThumbnail].sign && (signatureBook.attachments[rightSelectedThumbnail].format == 'pdf' || signatureBook.attachments[rightSelectedThumbnail].isConverted)" class="pjSign"> <span *ngIf="signatureBook.attachments[rightSelectedThumbnail].status != 'SIGN' && signatureBook.signature" (click)="prepareSignFile(signatureBook.attachments[rightSelectedThumbnail])" style="cursor: pointer"> @@ -177,64 +169,6 @@ <div *ngIf="!signatureBook.attachments[rightSelectedThumbnail] && signatureBook.hasWorkflow" class="visaNoPjWarning"> <div style="margin-top:200px;">Aucune pièce jointe disponible<br/><sub>Cliquez sur <i class="fa fa-plus"></i> pour en ajouter une</sub></div> </div> - <!--<div class="contentShow" ng-if="signatureBook.showAttachmentEditionPanel">--> - <!--<h1>Créer une pièce jointe</h1>--> - <!--<div class="pjCreate">--> - <!--<div class="infoPj" title="Type">--> - <!--<div class="input-group margin-bottom-sm">--> - <!--<span class="input-group-addon"><i class="fa fa-file fa-fw"></i></span>--> - <!--<select><option>Projet d réponse</option></select>--> - <!--</div>--> - <!--</div>--> - <!--<div class="infoPj" title="Objet">--> - <!--<div class="input-group margin-bottom-sm">--> - <!--<span class="input-group-addon"><i class="fa fa-info fa-fw"></i></span>--> - <!--<input class="form-control" type="text" placeholder="Objet">--> - <!--</div>--> - <!--</div>--> - <!--<div class="infoPj" title="Personne concerné">--> - <!--<div class="input-group margin-bottom-sm">--> - <!--<span class="input-group-addon"><i class="fa fa-book fa-fw"></i></span>--> - <!--<input class="form-control" type="text" placeholder="Personne concerné">--> - <!--</div>--> - <!--</div>--> - <!--<div class="infoPj" title="Numéro chrono">--> - <!--<div class="input-group margin-bottom-sm">--> - <!--<span class="input-group-addon"><i class="fa fa-compass fa-fw"></i></span>--> - <!--<input class="form-control" type="text" placeholder="Numéro chrono">--> - <!--</div>--> - <!--</div>--> - <!--<div class="infoPj" title="Crée par">--> - <!--<div class="input-group margin-bottom-sm">--> - <!--<span class="input-group-addon"><i class="fa fa-user fa-fw"></i></span>--> - <!--<input class="form-control" type="text" placeholder="Crée par">--> - <!--</div>--> - <!--</div>--> - <!--<div class="infoPj" title="Crée le">--> - <!--<div class="input-group margin-bottom-sm">--> - <!--<span class="input-group-addon"><i class="fa fa-calendar-o fa-fw"></i></span>--> - <!--<input class="form-control" type="text" placeholder="Crée le">--> - <!--</div>--> - <!--</div>--> - <!--<div class="infoPj" title="Retour">--> - <!--<div class="input-group margin-bottom-sm">--> - <!--<span class="input-group-addon"><i class="fa fa-calendar-o fa-fw"></i></span>--> - <!--<input class="form-control" type="text" placeholder="Retour">--> - <!--</div>--> - <!--</div>--> - <!--<div class="infoPj">--> - <!--<div class="input-group margin-bottom-sm" title="Version">--> - <!--<span class="input-group-addon"><i class="fa fa-code-fork fa-fw"></i></span>--> - <!--<input class="form-control" type="text" placeholder="Version">--> - <!--</div>--> - <!--</div>--> - <!--</div>--> - <!--<div class="pjCreateFile">--> - <!--<i class="fa fa-upload" aria-hidden="true" title="Tranférer un fichier depuis votre ordinateur"></i> --> - <!--<i> / </i>--> - <!--<i class="fa fa-pencil-square-o" aria-hidden="true" title="Editer un modèle de document"></i>--> - <!--</div>--> - <!--</div>--> </div> <div *ngIf="signatureBook.hasWorkflow" class="panelRight"> <div *ngIf="signatureBook.attachments" id="rightPanelContent" class="panelRightContent"> @@ -247,20 +181,10 @@ </div> </div> <div style="bottom: 0px;position: absolute;left: 5px;"> - <div *ngIf="signatureBook.attachments[rightSelectedThumbnail] && signatureBook.attachments[rightSelectedThumbnail].canDelete" title="Supprimer la pièce jointe" [ngStyle]="{'top': showTopRightPanel ? '150px' : '70px'}" class="visaPjDel" (click)="delAttachment(signatureBook.attachments[rightSelectedThumbnail])"> + <div [ngClass]="{'visaDisabledButton': !signatureBook.attachments[rightSelectedThumbnail].canDelete}" title="Supprimer la pièce jointe" class="visaPjDel" (click)="delAttachment(signatureBook.attachments[rightSelectedThumbnail])"> <i class="fa fa-trash fa-2x"></i> </div> - <!--<div class="visaPjView" *ngIf="signatureBook.attachments[rightSelectedThumbnail].status != 'SIGN'"> - <a title="Télécharger la pièce jointe" href="index.php?display=true&module=attachments&page=view_attachment&res_id_master={{resId}}&id={{signatureBook.attachments[rightSelectedThumbnail].res_id}}" target="_blank"> - <i class="fa fa-download fa-2x"></i> - </a> - </div> - <div class="visaPjView" *ngIf="signatureBook.attachments[rightSelectedThumbnail].status == 'SIGN'"> - <a title="Télécharger la pièce jointe" href="index.php?display=true&module=attachments&page=view_attachment&res_id_master={{resId}}&id={{signatureBook.attachments[rightSelectedThumbnail].idToDl}}" target="_blank"> - <i class="fa fa-download fa-2x"></i> - </a> - </div>--> - <div *ngIf="signatureBook.attachments[rightSelectedThumbnail] && signatureBook.attachments[rightSelectedThumbnail].canModify && signatureBook.attachments[rightSelectedThumbnail].status != 'SIGN'" title="Modifier la pièce jointe" class="visaPjUp" (click)="editAttachmentIframe(signatureBook.attachments[rightSelectedThumbnail])"> + <div [ngClass]="{'visaDisabledButton': !signatureBook.attachments[rightSelectedThumbnail].canModify || signatureBook.attachments[rightSelectedThumbnail].status == 'SIGN'}" title="Modifier la pièce jointe" class="visaPjUp" (click)="editAttachmentIframe(signatureBook.attachments[rightSelectedThumbnail])"> <i class="fa fa-pencil-square-o fa-2x"></i> </div> <hr style="background-color:#666;margin-bottom:0px;"/> diff --git a/apps/maarch_entreprise/js/angular/app/signature-book.component.js b/apps/maarch_entreprise/js/angular/app/signature-book.component.js index 16344087212a781008ff2faf50eb01def6d9d376..2980aa4c53495a3e41c5877def834bfbb8635912 100644 --- a/apps/maarch_entreprise/js/angular/app/signature-book.component.js +++ b/apps/maarch_entreprise/js/angular/app/signature-book.component.js @@ -61,7 +61,8 @@ var SignatureBookComponent = (function () { this.histViewerLink = ""; window['angularSignatureBookComponent'] = { componentAfterAttach: function (value) { return _this.processAfterAttach(value); }, - componentAfterAction: function () { return _this.processAfterAction(); } + componentAfterAction: function () { return _this.processAfterAction(); }, + componentAfterNotes: function () { return _this.processAfterNotes(); } }; } SignatureBookComponent.prototype.prepareSignatureBook = function () { @@ -131,6 +132,8 @@ var SignatureBookComponent = (function () { var _this = this; this.zone.run(function () { return _this.refreshAttachments(mode); }); }; + SignatureBookComponent.prototype.processAfterNotes = function () { + }; SignatureBookComponent.prototype.processAfterAction = function () { var _this = this; var idToGo = -1; @@ -236,7 +239,7 @@ var SignatureBookComponent = (function () { showAttachmentsForm('index.php?display=true&module=attachments&page=attachments_content&docId=' + this.resId); }; SignatureBookComponent.prototype.editAttachmentIframe = function (attachment) { - if (attachment.canModify) { + if (attachment.canModify && attachment.status != "SIGN") { var resId; if (attachment.res_id == 0) { resId = attachment.res_id_version; diff --git a/apps/maarch_entreprise/js/angular/app/signature-book.component.ts b/apps/maarch_entreprise/js/angular/app/signature-book.component.ts index 2b1b4191cb42eea367e40df29f5d7e67919e889e..48a17e0edf8a846d153c783a09150c9499bad9cd 100644 --- a/apps/maarch_entreprise/js/angular/app/signature-book.component.ts +++ b/apps/maarch_entreprise/js/angular/app/signature-book.component.ts @@ -61,7 +61,8 @@ export class SignatureBookComponent implements OnInit { constructor(public http: Http, private route: ActivatedRoute, private router: Router, private zone:NgZone) { window['angularSignatureBookComponent'] = { componentAfterAttach: (value: string) => this.processAfterAttach(value), - componentAfterAction: () => this.processAfterAction() + componentAfterAction: () => this.processAfterAction(), + componentAfterNotes: () => this.processAfterNotes() }; } @@ -138,6 +139,10 @@ export class SignatureBookComponent implements OnInit { this.zone.run(() => this.refreshAttachments(mode)); } + processAfterNotes() { + + } + processAfterAction() { var idToGo = -1; var c = this.signatureBook.resList.length; @@ -242,7 +247,7 @@ export class SignatureBookComponent implements OnInit { } editAttachmentIframe(attachment: any) { - if (attachment.canModify) { + if (attachment.canModify && attachment.status != "SIGN") { var resId: number; if (attachment.res_id == 0) { resId = attachment.res_id_version; diff --git a/apps/maarch_entreprise/js/angular/main.bundle.min.js b/apps/maarch_entreprise/js/angular/main.bundle.min.js index 380fb2dde8a42e430f780e719250f7f1edc4939a..ed0f388c4c3d2fb32af2bffb931376d5b9f1b096 100644 --- a/apps/maarch_entreprise/js/angular/main.bundle.min.js +++ b/apps/maarch_entreprise/js/angular/main.bundle.min.js @@ -1,8 +1,6 @@ -!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 p=n[s]={exports:{}};t[s][0].call(p.exports,function(e){var n=t[s][1][e];return i(n?n:e)},p,p.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},i=this&&this.__metadata||function(t,e){return"object"==typeof Reflect&&"function"==typeof Reflect.metadata?Reflect.metadata(t,e):void 0},o=t("@angular/core"),s=function(){function t(){}return t=r([o.Component({selector:"my-app",template:"<router-outlet></router-outlet>"}),i("design:paramtypes",[])],t)}();n.AppComponent=s},{"@angular/core":7}],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},i=this&&this.__metadata||function(t,e){return"object"==typeof Reflect&&"function"==typeof Reflect.metadata?Reflect.metadata(t,e):void 0},o=t("@angular/core"),s=t("@angular/platform-browser"),a=t("@angular/router"),u=t("@angular/http"),c=t("./app.component"),p=t("./signature-book.component"),l=function(){function t(){}return t=r([o.NgModule({imports:[s.BrowserModule,a.RouterModule.forRoot([{path:":basketId/signatureBook/:resId",component:p.SignatureBookComponent},{path:"**",redirectTo:"",pathMatch:"full"}],{useHash:!0}),u.HttpModule],declarations:[c.AppComponent,p.SignatureBookComponent,p.SafeUrlPipe],bootstrap:[c.AppComponent]}),i("design:paramtypes",[])],t)}();n.AppModule=l},{"./app.component":1,"./signature-book.component":3,"@angular/core":7,"@angular/http":8,"@angular/platform-browser":10,"@angular/router":11}],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},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=r([o.Pipe({name:"safeUrl"}),i("design:paramtypes",[a.DomSanitizer])],t)}();n.SafeUrlPipe=c;var p=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.showAttachmentEditionPanel=!1,this.loading=!1,this.loadingSign=!1,this.leftContentWidth="42%",this.rightContentWidth="42%",this.notesViewerLink="",this.visaViewerLink="",this.histViewerLink="",window.angularSignatureBookComponent={componentAfterAttach:function(t){return i.processAfterAttach(t)},componentAfterAction:function(){return i.processAfterAction()}}}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.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&dir=indexing_searching&page=document_workflow_history&id="+t.resId+"&coll_id=letterbox_coll&load&size=full",t.leftContentWidth="42%",t.rightContentWidth="42%",t.signatureBook.documents[0]&&(t.leftViewerLink=t.signatureBook.documents[0].viewerLink),t.signatureBook.attachments[0]&&(t.rightViewerLink=t.signatureBook.attachments[0].viewerLink),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})},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.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));this.zone.run(e>=0?function(){return t.changeLocation(e,"action")}: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="47%",this.leftContentWidth="47%"):this.rightContentWidth="96%"):"RESLEFT"==t&&(this.showResLeftPanel=!this.showResLeftPanel,this.showResLeftPanel?(this.rightContentWidth="42%",this.leftContentWidth="42%"):(this.rightContentWidth="47%",this.leftContentWidth="47%"))},t.prototype.refreshAttachments=function(t){var e=this;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){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.prepareSignFile=function(t){this.loadingSign||(0==t.res_id?this.signatureBookSignFile(t.res_id_version,1):0==t.res_id_version&&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),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(){location.hash="",location.reload()},t.prototype.backToDetails=function(){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]))},t=r([o.Component({templateUrl:"js/angular/app/Views/signatureBook.html"}),i("design:paramtypes",[s.Http,u.ActivatedRoute,u.Router,o.NgZone])],t)}();n.SignatureBookComponent=p},{"@angular/core":7,"@angular/http":8,"@angular/platform-browser":10,"@angular/router":11,"rxjs/add/operator/map":22}],4:[function(t){"use strict";var e=t("@angular/platform-browser-dynamic"),n=t("@angular/core"),r=t("./app/app.module");n.enableProdMode(),e.platformBrowserDynamic().bootstrapModule(r.AppModule)},{"./app/app.module":2,"@angular/core":7,"@angular/platform-browser-dynamic":9}],5:[function(e,n,r){(function(i){!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){return t.name||typeof t}function r(t){return null!=t}function o(t){return null==t}function s(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(),n=e.indexOf("\n");return-1===n?e:e.substring(0,n)}function a(t){return null!==t&&("function"==typeof t||"object"==typeof t)}function u(){if(!L)if(R.Symbol&&Symbol.iterator)L=Symbol.iterator;else for(var t=Object.getOwnPropertyNames(Map.prototype),e=0;e<t.length;++e){var n=t[e];"entries"!==n&&"size"!==n&&Map.prototype[n]===Map.prototype.entries&&(L=n)}return L}function c(t,e){return t&&e.startsWith(t)?e.substring(t.length):e}function p(t){return t.replace(/\/index.html$/,"")}function l(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 h(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?G.One:G.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?G.One:G.Other;case"am":case"as":case"bn":case"fa":case"gu":case"hi":case"kn":case"mr":case"zu":return 0===i||1===n?G.One:G.Other;case"ar":return 0===n?G.Zero:1===n?G.One:2===n?G.Two:n%100===Math.floor(n%100)&&n%100>=3&&10>=n%100?G.Few:n%100===Math.floor(n%100)&&n%100>=11&&99>=n%100?G.Many:G.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?G.One:G.Other;case"be":return n%10===1&&n%100!==11?G.One:n%10===Math.floor(n%10)&&n%10>=2&&4>=n%10&&!(n%100>=12&&14>=n%100)?G.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?G.Many:G.Other;case"br":return n%10===1&&n%100!==11&&n%100!==71&&n%100!==91?G.One:n%10===2&&n%100!==12&&n%100!==72&&n%100!==92?G.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)?G.Few:0!==n&&n%1e6===0?G.Many:G.Other;case"bs":case"hr":case"sr":return 0===o&&i%10===1&&i%100!==11||s%10===1&&s%100!==11?G.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)?G.Few:G.Other;case"cs":case"sk":return 1===i&&0===o?G.One:i===Math.floor(i)&&i>=2&&4>=i&&0===o?G.Few:0!==o?G.Many:G.Other;case"cy":return 0===n?G.Zero:1===n?G.One:2===n?G.Two:3===n?G.Few:6===n?G.Many:G.Other;case"da":return 1===n||0!==a&&(0===i||1===i)?G.One:G.Other;case"dsb":case"hsb":return 0===o&&i%100===1||s%100===1?G.One:0===o&&i%100===2||s%100===2?G.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?G.Few:G.Other;case"ff":case"fr":case"hy":case"kab":return 0===i||1===i?G.One:G.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?G.One:G.Other;case"ga":return 1===n?G.One:2===n?G.Two:n===Math.floor(n)&&n>=3&&6>=n?G.Few:n===Math.floor(n)&&n>=7&&10>=n?G.Many:G.Other;case"gd":return 1===n||11===n?G.One:2===n||12===n?G.Two:n===Math.floor(n)&&(n>=3&&10>=n||n>=13&&19>=n)?G.Few:G.Other;case"gv":return 0===o&&i%10===1?G.One:0===o&&i%10===2?G.Two:0!==o||i%100!==0&&i%100!==20&&i%100!==40&&i%100!==60&&i%100!==80?0!==o?G.Many:G.Other:G.Few;case"he":return 1===i&&0===o?G.One:2===i&&0===o?G.Two:0!==o||n>=0&&10>=n||n%10!==0?G.Other:G.Many;case"is":return 0===a&&i%10===1&&i%100!==11||0!==a?G.One:G.Other;case"ksh":return 0===n?G.Zero:1===n?G.One:G.Other;case"kw":case"naq":case"se":case"smn":return 1===n?G.One:2===n?G.Two:G.Other;case"lag":return 0===n?G.Zero:0!==i&&1!==i||0===n?G.Other:G.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)?G.Few:0!==s?G.Many:G.Other:G.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?G.Zero:n%10===1&&n%100!==11||2===o&&s%10===1&&s%100!==11||2!==o&&s%10===1?G.One:G.Other;case"mk":return 0===o&&i%10===1||s%10===1?G.One:G.Other;case"mt":return 1===n?G.One:0===n||n%100===Math.floor(n%100)&&n%100>=2&&10>=n%100?G.Few:n%100===Math.floor(n%100)&&n%100>=11&&19>=n%100?G.Many:G.Other;case"pl":return 1===i&&0===o?G.One:0===o&&i%10===Math.floor(i%10)&&i%10>=2&&4>=i%10&&!(i%100>=12&&14>=i%100)?G.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?G.Many:G.Other;case"pt":return n===Math.floor(n)&&n>=0&&2>=n&&2!==n?G.One:G.Other;case"ro":return 1===i&&0===o?G.One:0!==o||0===n||1!==n&&n%100===Math.floor(n%100)&&n%100>=1&&19>=n%100?G.Few:G.Other;case"ru":case"uk":return 0===o&&i%10===1&&i%100!==11?G.One:0===o&&i%10===Math.floor(i%10)&&i%10>=2&&4>=i%10&&!(i%100>=12&&14>=i%100)?G.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?G.Many:G.Other;case"shi":return 0===i||1===n?G.One:n===Math.floor(n)&&n>=2&&10>=n?G.Few:G.Other;case"si":return 0===n||1===n||0===i&&1===s?G.One:G.Other;case"sl":return 0===o&&i%100===1?G.One:0===o&&i%100===2?G.Two:0===o&&i%100===Math.floor(i%100)&&i%100>=3&&4>=i%100||0!==o?G.Few:G.Other;case"tzm":return n===Math.floor(n)&&n>=0&&1>=n||n===Math.floor(n)&&n>=11&&99>=n?G.One:G.Other;default:return G.Other}}function f(t){return a(t)?Array.isArray(t)||!(t instanceof Map)&&u()in t:!1}function d(t){return function(e,n){var r=t(e,n);return 1==r.length?"0"+r:r}}function y(t){return function(e,n){return t(e,n).split(" ")[1]}}function m(t){return function(e,n){return t(e,n).split(" ")[0]}}function v(t,e,n){return new Intl.DateTimeFormat(e,n).format(t).replace(/[\u200e\u200f]/g,"")}function g(t){var e={hour:"2-digit",hour12:!1,timeZoneName:t};return function(t,n){var r=v(t,n,e);return r?r.substring(3):""}}function _(t,e){return t.hour12=e,t}function b(t,e){var n={};return n[t]=2===e?"2-digit":"numeric",n}function w(t,e){var n={};return n[t]=4>e?e>1?"short":"narrow":"long",n}function E(t){return(e=Object).assign.apply(e,[{}].concat(t));var e}function S(t){return function(e,n){return v(e,n,t)}}function C(t,e,n){var r=wt[t];if(r)return r(e,n);var i=t,o=St.get(i);if(!o){o=[];var s=void 0;for(bt.exec(t);t;)s=bt.exec(t),s?(o=o.concat(s.slice(1)),t=o.pop()):(o.push(t),t=null);St.set(i,o)}return o.reduce(function(t,r){var i=Et[r];return t+(i?i(e,n):x(r))},"")}function x(t){return"''"===t?"'":t.replace(/(^'|'$)/g,"").replace(/''/g,"'")}function T(t){return null==t||""===t}function P(t){return t instanceof Date&&!isNaN(t.valueOf())}function A(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=O(t[9]+t[10]),r=O(t[9]+t[11])),i.call(e,O(t[1]),O(t[2])-1,O(t[3]));var s=O(t[4]||"0")-n,a=O(t[5]||"0")-r,u=O(t[6]||"0"),c=Math.round(1e3*parseFloat("0."+(t[7]||0)));return o.call(e,s,a,u,c),e}function O(t){return parseInt(t,10)}function M(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&&j.isNumeric(n)?+n:n,"number"!=typeof n)throw new ht(t,n);var a,u,c;if(r!==gt.Currency&&(a=1,u=0,c=3),i){var p=i.match(kt);if(null===p)throw new Error(i+" is not a valid digit info for number pipes");null!=p[1]&&(a=j.parseIntAutoRadix(p[1])),null!=p[3]&&(u=j.parseIntAutoRadix(p[3])),null!=p[5]&&(c=j.parseIntAutoRadix(p[5]))}return _t.format(n,e,r,{minimumIntegerDigits:a,minimumFractionDigits:u,maximumFractionDigits:c,currency:o,currencyAsSymbol:s})}var R,k=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=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}(),I=new e.OpaqueToken("appBaseHref");R="undefined"==typeof window?"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope?self:i:window;var D=R;D.assert=function(){};var j=function(){function t(){}return t.parseIntAutoRadix=function(t){var e=parseInt(t);if(isNaN(e))throw new Error("Invalid integer literal when parsing "+t);return e},t.isNumeric=function(t){return!isNaN(t-parseFloat(t))},t}(),L=null,V=function(){function t(n){var r=this;this._subject=new e.EventEmitter,this._platformStrategy=n;var i=this._platformStrategy.getBaseHref();this._baseHref=t.stripTrailingSlash(p(i)),this._platformStrategy.onPopState(function(t){r._subject.emit({url:r.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(c(this._baseHref,p(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.decorators=[{type:e.Injectable}],t.ctorParameters=function(){return[{type:N}]},t}(),F=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=function(t){function n(e,n){t.call(this),this._platformLocation=e,this._baseHref="",r(n)&&(this._baseHref=n)}return F(n,t),n.prototype.onPopState=function(t){this._platformLocation.onPopState(t),this._platformLocation.onHashChange(t)},n.prototype.getBaseHref=function(){return this._baseHref},n.prototype.path=function(t){void 0===t&&(t=!1);var e=this._platformLocation.hash;return r(e)||(e="#"),e.length>0?e.substring(1):e},n.prototype.prepareExternalUrl=function(t){var e=V.joinWithSlash(this._baseHref,t);return e.length>0?"#"+e:e},n.prototype.pushState=function(t,e,n,r){var i=this.prepareExternalUrl(n+V.normalizeQueryParams(r));0==i.length&&(i=this._platformLocation.pathname),this._platformLocation.pushState(t,e,i)},n.prototype.replaceState=function(t,e,n,r){var i=this.prepareExternalUrl(n+V.normalizeQueryParams(r));0==i.length&&(i=this._platformLocation.pathname),this._platformLocation.replaceState(t,e,i)},n.prototype.forward=function(){this._platformLocation.forward()},n.prototype.back=function(){this._platformLocation.back()},n.decorators=[{type:e.Injectable}],n.ctorParameters=function(){return[{type:k},{type:void 0,decorators:[{type:e.Optional},{type:e.Inject,args:[I]}]}]},n}(N),B=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)},H=function(t){function n(e,n){if(t.call(this),this._platformLocation=e,o(n)&&(n=this._platformLocation.getBaseHrefFromDOM()),o(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.");this._baseHref=n}return B(n,t),n.prototype.onPopState=function(t){this._platformLocation.onPopState(t),this._platformLocation.onHashChange(t)},n.prototype.getBaseHref=function(){return this._baseHref},n.prototype.prepareExternalUrl=function(t){return V.joinWithSlash(this._baseHref,t)},n.prototype.path=function(t){void 0===t&&(t=!1);var e=this._platformLocation.pathname+V.normalizeQueryParams(this._platformLocation.search),n=this._platformLocation.hash;return n&&t?""+e+n:e},n.prototype.pushState=function(t,e,n,r){var i=this.prepareExternalUrl(n+V.normalizeQueryParams(r));this._platformLocation.pushState(t,e,i)},n.prototype.replaceState=function(t,e,n,r){var i=this.prepareExternalUrl(n+V.normalizeQueryParams(r));this._platformLocation.replaceState(t,e,i)},n.prototype.forward=function(){this._platformLocation.forward()},n.prototype.back=function(){this._platformLocation.back()},n.decorators=[{type:e.Injectable}],n.ctorParameters=function(){return[{type:k},{type:void 0,decorators:[{type:e.Optional},{type:e.Inject,args:[I]}]}]},n}(N),q=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)},z=function(){function t(){}return t.prototype.getPluralCategory=function(){},t}(),W=function(t){function n(e){t.call(this),this._locale=e}return q(n,t),n.prototype.getPluralCategory=function(t){var e=h(this._locale,t);switch(e){case G.Zero:return"zero";case G.One:return"one";case G.Two:return"two";case G.Few:return"few";case G.Many:return"many";default:return"other"}},n.decorators=[{type:e.Injectable}],n.ctorParameters=function(){return[{type:void 0,decorators:[{type:e.Inject,args:[e.LOCALE_ID]}]}]},n}(z),G={};G.Zero=0,G.One=1,G.Two=2,G.Few=3,G.Many=4,G.Other=5,G[G.Zero]="Zero",G[G.One]="One",G[G.Two]="Two",G[G.Few]="Few",G[G.Many]="Many",G[G.Other]="Other";var K=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&&(f(this._rawClass)?this._iterableDiffer=this._iterableDiffers.find(this._rawClass).create(null):this._keyValueDiffer=this._keyValueDiffers.find(this._rawClass).create(null))},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 t=this._keyValueDiffer.diff(this._rawClass);t&&this._applyKeyValueChanges(t)}},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 e=this;t.forEachAddedItem(function(t){if("string"!=typeof t.item)throw new Error("NgClass can only toggle CSS classes expressed as strings, got "+s(t.item));e._toggleClass(t.item,!0)}),t.forEachRemovedItem(function(t){return e._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.decorators=[{type:e.Directive,args:[{selector:"[ngClass]"}]}],t.ctorParameters=function(){return[{type:e.IterableDiffers},{type:e.KeyValueDiffers},{type:e.ElementRef},{type:e.Renderer}]},t.propDecorators={klass:[{type:e.Input,args:["class"]}],ngClass:[{type:e.Input}]},t}(),X=function(){function t(t,e,n){this.$implicit=t,this.index=e,this.count=n}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}(),Q=function(){function t(t,e,n,r){this._viewContainer=t,this._template=e,this._differs=n,this._cdr=r,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._cdr,this.ngForTrackBy)}catch(r){throw new Error("Cannot find a differ supporting object '"+e+"' of type '"+n(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 X(null,null,null),i),s=new Y(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 Y(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.decorators=[{type:e.Directive,args:[{selector:"[ngFor][ngForOf]"}]}],t.ctorParameters=function(){return[{type:e.ViewContainerRef},{type:e.TemplateRef},{type:e.IterableDiffers},{type:e.ChangeDetectorRef}]},t.propDecorators={ngForOf:[{type:e.Input}],ngForTrackBy:[{type:e.Input}],ngForTemplate:[{type:e.Input}]},t}(),Y=function(){function t(t,e){this.record=t,this.view=e}return t}(),$=function(){function t(t,e){this._viewContainer=t,this._template=e,this._hasView=!1}return Object.defineProperty(t.prototype,"ngIf",{set:function(t){t&&!this._hasView?(this._hasView=!0,this._viewContainer.createEmbeddedView(this._template)):!t&&this._hasView&&(this._hasView=!1,this._viewContainer.clear())},enumerable:!0,configurable:!0}),t.decorators=[{type:e.Directive,args:[{selector:"[ngIf]"}]}],t.ctorParameters=function(){return[{type:e.ViewContainerRef},{type:e.TemplateRef}]},t.propDecorators={ngIf:[{type:e.Input}]},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}(),J=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.decorators=[{type:e.Directive,args:[{selector:"[ngSwitch]"}]}],t.ctorParameters=function(){return[]},t.propDecorators={ngSwitch:[{type:e.Input}]},t}(),tt=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.decorators=[{type:e.Directive,args:[{selector:"[ngSwitchCase]"}]}],t.ctorParameters=function(){return[{type:e.ViewContainerRef},{type:e.TemplateRef},{type:J,decorators:[{type:e.Host}]}]},t.propDecorators={ngSwitchCase:[{type:e.Input}]},t}(),et=function(){function t(t,e,n){n._addDefault(new Z(t,e))}return t.decorators=[{type:e.Directive,args:[{selector:"[ngSwitchDefault]"}]}],t.ctorParameters=function(){return[{type:e.ViewContainerRef},{type:e.TemplateRef},{type:J,decorators:[{type:e.Host}]}]},t}(),nt=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=l(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.decorators=[{type:e.Directive,args:[{selector:"[ngPlural]"}]}],t.ctorParameters=function(){return[{type:z}]},t.propDecorators={ngPlural:[{type:e.Input}]},t}(),rt=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.decorators=[{type:e.Directive,args:[{selector:"[ngPluralCase]"}]}],t.ctorParameters=function(){return[{type:void 0,decorators:[{type:e.Attribute,args:["ngPluralCase"]}]},{type:e.TemplateRef},{type:e.ViewContainerRef},{type:nt,decorators:[{type:e.Host}]}]},t}(),it=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(null))},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=e&&i?""+e+i:e,this._renderer.setElementStyle(this._ngEl.nativeElement,r,e)},t.decorators=[{type:e.Directive,args:[{selector:"[ngStyle]"}]}],t.ctorParameters=function(){return[{type:e.KeyValueDiffers},{type:e.ElementRef},{type:e.Renderer}]},t.propDecorators={ngStyle:[{type:e.Input}]},t}(),ot=function(){function t(t){this._viewContainerRef=t}return Object.defineProperty(t.prototype,"ngOutletContext",{set:function(t){this._context=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"ngTemplateOutlet",{set:function(t){this._templateRef=t},enumerable:!0,configurable:!0}),t.prototype.ngOnChanges=function(){this._viewRef&&this._viewContainerRef.remove(this._viewContainerRef.indexOf(this._viewRef)),this._templateRef&&(this._viewRef=this._viewContainerRef.createEmbeddedView(this._templateRef,this._context))},t.decorators=[{type:e.Directive,args:[{selector:"[ngTemplateOutlet]"}]}],t.ctorParameters=function(){return[{type:e.ViewContainerRef}]},t.propDecorators={ngOutletContext:[{type:e.Input}],ngTemplateOutlet:[{type:e.Input}]},t}(),st=[K,Q,$,ot,it,J,tt,et,nt,rt],at=e.__core_private__.isPromise,ut=e.__core_private__.isObservable,ct=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)},pt=function(t){function e(e){t.call(this,e);var n=new Error(e);this._nativeError=n}return ct(e,t),Object.defineProperty(e.prototype,"message",{get:function(){return this._nativeError.message},set:function(t){this._nativeError.message=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"name",{get:function(){return this._nativeError.name},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"stack",{get:function(){return this._nativeError.stack},set:function(t){this._nativeError.stack=t},enumerable:!0,configurable:!0}),e.prototype.toString=function(){return this._nativeError.toString()},e}(Error),lt=(function(t){function e(e,n){t.call(this,e+" caused by: "+(n instanceof Error?n.message:n)),this.originalError=n}return ct(e,t),Object.defineProperty(e.prototype,"stack",{get:function(){return(this.originalError instanceof Error?this.originalError:this._nativeError).stack},enumerable:!0,configurable:!0}),e}(pt),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)}),ht=function(t){function e(e,n){t.call(this,"Invalid argument '"+n+"' for pipe '"+s(e)+"'")}return lt(e,t),e}(pt),ft=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}(),dt=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}(),yt=new dt,mt=new ft,vt=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(e){if(at(e))return yt;if(ut(e))return mt;throw new ht(t,e)},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.decorators=[{type:e.Pipe,args:[{name:"async",pure:!1}]}],t.ctorParameters=function(){return[{type:e.ChangeDetectorRef}]},t}(),gt={};gt.Decimal=0,gt.Percent=1,gt.Currency=2,gt[gt.Decimal]="Decimal",gt[gt.Percent]="Percent",gt[gt.Currency]="Currency";var _t=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,p=void 0===c?!1:c,l={minimumIntegerDigits:o,minimumFractionDigits:s,maximumFractionDigits:a,style:gt[n].toLowerCase()};return n==gt.Currency&&(l.currency=u,l.currencyDisplay=p?"symbol":"code"),new Intl.NumberFormat(e,l).format(t)},t}(),bt=/((?:[^yMLdHhmsazZEwGjJ']+)|(?:'(?:[^']|'')*')|(?:E+|y+|M+|L+|d+|H+|h+|J+|j+|m+|s+|a|z|Z|G+|w+))(.*)/,wt={yMMMdjms:S(E([b("year",1),w("month",3),b("day",1),b("hour",1),b("minute",1),b("second",1)])),yMdjm:S(E([b("year",1),b("month",1),b("day",1),b("hour",1),b("minute",1)])),yMMMMEEEEd:S(E([b("year",1),w("month",4),w("weekday",4),b("day",1)])),yMMMMd:S(E([b("year",1),w("month",4),b("day",1)])),yMMMd:S(E([b("year",1),w("month",3),b("day",1)])),yMd:S(E([b("year",1),b("month",1),b("day",1)])),jms:S(E([b("hour",1),b("second",1),b("minute",1)])),jm:S(E([b("hour",1),b("minute",1)]))},Et={yyyy:S(b("year",4)),yy:S(b("year",2)),y:S(b("year",1)),MMMM:S(w("month",4)),MMM:S(w("month",3)),MM:S(b("month",2)),M:S(b("month",1)),LLLL:S(w("month",4)),L:S(w("month",1)),dd:S(b("day",2)),d:S(b("day",1)),HH:d(m(S(_(b("hour",2),!1)))),H:m(S(_(b("hour",1),!1))),hh:d(m(S(_(b("hour",2),!0)))),h:m(S(_(b("hour",1),!0))),jj:S(b("hour",2)),j:S(b("hour",1)),mm:d(S(b("minute",2))),m:S(b("minute",1)),ss:d(S(b("second",2))),s:S(b("second",1)),sss:S(b("second",3)),EEEE:S(w("weekday",4)),EEE:S(w("weekday",3)),EE:S(w("weekday",2)),E:S(w("weekday",1)),a:y(S(_(b("hour",1),!0))),Z:g("short"),z:g("long"),ww:S({}),w:S({}),G:S(w("era",1)),GG:S(w("era",2)),GGG:S(w("era",3)),GGGG:S(w("era",4))},St=new Map,Ct=function(){function t(){}return t.format=function(t,e,n){return C(n,t,e)},t}(),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(T(e)||e!==e)return null;if("string"==typeof e&&(e=e.trim()),P(e))r=e;else if(j.isNumeric(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],a=i[2];r=new Date(o,s-1,a)}else r=new Date(e);if(!P(r)){var u=void 0;if("string"!=typeof e||!(u=e.match(xt)))throw new ht(t,e);r=A(u)}return Ct.format(r,this._locale,t._ALIASES[n]||n)},t._ALIASES={medium:"yMMMdjms","short":"yMdjm",fullDate:"yMMMMEEEEd",longDate:"yMMMMd",mediumDate:"yMMMd",shortDate:"yMd",mediumTime:"jms",shortTime:"jm"},t.decorators=[{type:e.Pipe,args:[{name:"date",pure:!0}]}],t.ctorParameters=function(){return[{type:void 0,decorators:[{type:e.Inject,args:[e.LOCALE_ID]}]}]},t}(),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 new ht(t,n);var r=l(e,Object.keys(n),this._localization);return n[r].replace(Pt,e.toString())},t.decorators=[{type:e.Pipe,args:[{name:"i18nPlural",pure:!0}]}],t.ctorParameters=function(){return[{type:z}]},t}(),Ot=function(){function t(){}return t.prototype.transform=function(e,n){if(null==e)return"";if("object"!=typeof n||"string"!=typeof e)throw new ht(t,n);return n.hasOwnProperty(e)?n[e]:n.hasOwnProperty("other")?n.other:""},t.decorators=[{type:e.Pipe,args:[{name:"i18nSelect",pure:!0}]}],t.ctorParameters=function(){return[]},t}(),Mt=function(){function t(){}return t.prototype.transform=function(t){return JSON.stringify(t,null,2)},t.decorators=[{type:e.Pipe,args:[{name:"json",pure:!1}]}],t.ctorParameters=function(){return[]},t}(),Rt=function(){function t(){}return t.prototype.transform=function(e){if(o(e))return e;if("string"!=typeof e)throw new ht(t,e);return e.toLowerCase()},t.decorators=[{type:e.Pipe,args:[{name:"lowercase"}]}],t.ctorParameters=function(){return[]},t}(),kt=/^(\d+)?\.((\d+)(-(\d+))?)?$/,Nt=function(){function t(t){this._locale=t}return t.prototype.transform=function(e,n){return void 0===n&&(n=null),M(t,this._locale,e,gt.Decimal,n)},t.decorators=[{type:e.Pipe,args:[{name:"number"}]}],t.ctorParameters=function(){return[{type:void 0,decorators:[{type:e.Inject,args:[e.LOCALE_ID]}]}]},t}(),It=function(){function t(t){this._locale=t}return t.prototype.transform=function(e,n){return void 0===n&&(n=null),M(t,this._locale,e,gt.Percent,n)},t.decorators=[{type:e.Pipe,args:[{name:"percent"}]}],t.ctorParameters=function(){return[{type:void 0,decorators:[{type:e.Inject,args:[e.LOCALE_ID]}]}]},t}(),Dt=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),M(t,this._locale,e,gt.Currency,i,n,r)},t.decorators=[{type:e.Pipe,args:[{name:"currency"}]}],t.ctorParameters=function(){return[{type:void 0,decorators:[{type:e.Inject,args:[e.LOCALE_ID]}]}]},t}(),jt=function(){function t(){}return t.prototype.transform=function(e,n,r){if(null==e)return e;if(!this.supports(e))throw new ht(t,e);return e.slice(n,r)},t.prototype.supports=function(t){return"string"==typeof t||Array.isArray(t)},t.decorators=[{type:e.Pipe,args:[{name:"slice",pure:!1}]}],t.ctorParameters=function(){return[]},t}(),Lt=function(){function t(){}return t.prototype.transform=function(e){if(o(e))return e;if("string"!=typeof e)throw new ht(t,e);return e.toUpperCase()},t.decorators=[{type:e.Pipe,args:[{name:"uppercase"}]}],t.ctorParameters=function(){return[]},t}(),Vt=[vt,Lt,Rt,Mt,jt,Nt,It,Dt,Tt,At,Ot],Ft=function(){function t(){}return t.decorators=[{type:e.NgModule,args:[{declarations:[st,Vt],exports:[st,Vt],providers:[{provide:z,useClass:W}]}]}],t.ctorParameters=function(){return[]},t}(),Ut=new e.Version("2.4.9");t.NgLocalization=z,t.CommonModule=Ft,t.NgClass=K,t.NgFor=Q,t.NgIf=$,t.NgPlural=nt,t.NgPluralCase=rt,t.NgStyle=it,t.NgSwitch=J,t.NgSwitchCase=tt,t.NgSwitchDefault=et,t.NgTemplateOutlet=ot,t.AsyncPipe=vt,t.DatePipe=Tt,t.I18nPluralPipe=At,t.I18nSelectPipe=Ot,t.JsonPipe=Mt,t.LowerCasePipe=Rt,t.CurrencyPipe=Dt,t.DecimalPipe=Nt,t.PercentPipe=It,t.SlicePipe=jt,t.UpperCasePipe=Lt,t.VERSION=Ut,t.Version=e.Version,t.PlatformLocation=k,t.LocationStrategy=N,t.APP_BASE_HREF=I,t.HashLocationStrategy=U,t.PathLocationStrategy=H,t.Location=V})}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"@angular/core":7}],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.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){return null!=t}function i(t){return null==t}function o(t){return"object"==typeof t&&null!==t&&Object.getPrototypeOf(t)===eo}function s(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(),n=e.indexOf("\n");return-1===n?e:e.substring(0,n)}function a(t){return null!==t&&("function"==typeof t||"object"==typeof t)}function u(t){return!a(t)}function c(t){return t.replace(/([.*+?^=!:${}()|[\]\/\\])/g,"\\$1")}function p(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 l(t){return null===t?null:p(t)[0]}function h(t,e){return t?":"+t+":"+e:e}function f(t){return Qo[t.toLowerCase()]||Yo}function d(t){return t.replace(ss,function(){for(var t=[],e=0;e<arguments.length;e++)t[e-0]=arguments[e];return t[1].toUpperCase()})}function y(t,e){return v(t,":",e)}function m(t,e){return v(t,".",e)}function v(t,e,n){var r=t.indexOf(e);return-1==r?n:[t.slice(0,r).trim(),t.slice(r+1).trim()]}function g(t,e,n){return Array.isArray(t)?e.visitArray(t,n):o(t)?e.visitStringMap(t,n):null==t||u(t)?e.visitPrimitive(t,n):e.visitOther(t,n)}function _(t){return t.replace(/\W/g,"_")}function b(t){if(!t||!t.reference)return null;var e=t.reference;if(e instanceof Ji)return e.name;if(e.__anonymousType)return e.__anonymousType;var n=s(e);return n.indexOf("(")>=0?(n="anonymous_"+Ss++,e.__anonymousType=n):n=_(n),n}function w(t){var e=t.reference;return e instanceof Ji?e.filePath:Po.importUri(e)}function E(t){return r(t.value)?_(t.value):b(t.identifier)}function S(t){return r(t.identifier)?t.identifier.reference:t.value}function C(t,n){var r=Zo.parse(n.selector)[0].getMatchingElementTemplate();return Ps.create({isHost:!0,type:{reference:t,diDeps:[],lifecycleHooks:[]},template:new Ts({encapsulation:e.ViewEncapsulation.None,template:r,templateUrl:"",styles:[],styleUrls:[],ngContentSelectors:[],animations:[]}),changeDetection:e.ChangeDetectionStrategy.Default,inputs:[],outputs:[],host:{},isComponent:!0,selector:"*",providers:[],viewProviders:[],queries:[],viewQueries:[]})}function x(t){return t||[]}function T(t){return t>=Ns&&Vs>=t||t==Ra}function P(t){return t>=sa&&aa>=t}function A(t){return t>=ga&&Pa>=t||t>=ua&&ha>=t}function O(t){return t>=ga&&ba>=t||t>=ua&&pa>=t||P(t)}function M(){return function(t){return t}}function R(t,n){if(e.isDevMode()&&!i(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 k(t,n){if(r(n)&&(!Array.isArray(n)||2!=n.length))throw new Error("Expected '"+t+"' to be an array, [start, end].");if(e.isDevMode()&&!i(n)){var o=n[0],s=n[1];Na.forEach(function(t){if(t.test(o)||t.test(s))throw new Error("['"+o+"', '"+s+"'] contains unusable interpolation symbol.")})}}function N(t,e){return new du(t,lu.Character,e,String.fromCharCode(e))}function I(t,e){return new du(t,lu.Identifier,0,e)}function D(t,e){return new du(t,lu.Keyword,0,e)}function j(t,e){return new du(t,lu.Operator,0,e)}function L(t,e){return new du(t,lu.String,0,e)}function V(t,e){return new du(t,lu.Number,e,"")}function F(t,e){return new du(t,lu.Error,0,e)}function U(t){return t>=ga&&Pa>=t||t>=ua&&ha>=t||t==va||t==Hs}function B(t){if(0==t.length)return!1;var e=new mu(t);if(!U(e.peek))return!1;for(e.advance();e.peek!==ks;){if(!H(e.peek))return!1;e.advance()}return!0}function H(t){return A(t)||P(t)||t==va||t==Hs}function q(t){return t==_a||t==ca}function z(t){return t==$s||t==Qs}function W(t){return t===Ws||t===Us||t===ka}function G(t){switch(t){case wa:return Is;case ba:return js;case Ea:return Ls;case Sa:return Ns;case xa:return Ds;default:return t}}function K(t){var e=c(t.start)+"([\\s\\S]*?)"+c(t.end);return new RegExp(e,"g")}function X(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 Q(t,e,n,r,i){return void 0===r&&(r=!1),void 0===i&&(i=Da),new Hu(new xu(t,e),n,r,i).tokenize()}function Y(t){var e=t===ks?"EOF":String.fromCharCode(t);return'Unexpected character "'+e+'"'}function $(t){return'Unknown entity "'+t+'" - use the "&#<decimal>;" or "&#x<hex>;" syntax'}function Z(t){return!T(t)||t===ks}function J(t){return T(t)||t===ia||t===Js||t===Ws||t===Us||t===ra}function tt(t){return(ga>t||t>Pa)&&(ua>t||t>ha)&&(sa>t||t>aa)}function et(t){return t==ea||t==ks||!O(t)}function nt(t){return t==ea||t==ks||!A(t)}function rt(t,e,n){var r=n?t.indexOf(n.start,e)==e:!1;return t.charCodeAt(e)==Aa&&!r}function it(t){return t===ra||A(t)}function ot(t,e){return st(t)==st(e)}function st(t){return t>=ga&&Pa>=t?t-ga+ua:t}function at(t){for(var e,n=[],r=0;r<t.length;r++){var i=t[r];e&&e.type==ju.TEXT&&i.type==ju.TEXT?(e.parts[0]+=i.parts[0],e.sourceSpan.end=i.sourceSpan.end):(e=i,n.push(e))}return n}function ut(t,e){return t.length>0&&t[t.length-1]===e}function ct(t){var e=new ic(rc,t);return function(t,n,r){return e.toI18nMessage(t,n,r)}}function pt(t){return t.split(oc)[1]}function lt(t,e,n,r){var i=new fc(n,r);return i.extract(t,e)}function ht(t,e,n,r,i){var o=new fc(r,i);return o.merge(t,e,n)}function ft(t){return t instanceof Iu&&t.value&&t.value.startsWith("i18n")}function dt(t){return t instanceof Iu&&t.value&&"/i18n"===t.value}function yt(t){return t.attrs.find(function(t){return t.name===uc})||null}function mt(t){if(!t)return["",""];var e=t.indexOf("|");return-1==e?["",t]:[t.slice(0,e),t.slice(e+1)]}function vt(){return yc}function gt(t){return wt(bt(t.nodes).join("")+("["+t.meaning+"]"))}function _t(t){var e=new wc,n=t.nodes.map(function(t){return t.visit(e,null)});return Ct(n.join(""),t.meaning)}function bt(t){return t.map(function(t){return t.visit(bc,null)})}function wt(t){var e=Pt(t),n=Dt(e,Ec.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],p=o[4];n[r>>5]|=128<<24-r%32,n[(r+64>>9<<4)+15]=r;for(var l=0;l<n.length;l+=16){for(var h=[s,a,u,c,p],f=h[0],d=h[1],y=h[2],m=h[3],v=h[4],g=0;80>g;g++){i[g]=16>g?n[l+g]:Nt(i[g-3]^i[g-8]^i[g-14]^i[g-16],1);var _=Et(g,a,u,c),b=_[0],w=_[1],E=[Nt(s,5),b,p,w,i[g]].reduce(Ot);S=[c,u,Nt(a,30),s,E],p=S[0],c=S[1],u=S[2],a=S[3],s=S[4]}C=[Ot(s,f),Ot(a,d),Ot(u,y),Ot(c,m),Ot(p,v)],s=C[0],a=C[1],u=C[2],c=C[3],p=C[4]}return Ut(Vt([s,a,u,c,p]));var S,C}function Et(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 St(t){var e=Pt(t),n=[xt(e,0),xt(e,102072)],r=n[0],i=n[1];return 0!=r||0!=i&&1!=i||(r=319790063^r,i=-1801410264^i),[r,i]}function Ct(t,e){var n=St(t),r=n[0],i=n[1];if(e){var o=St(e),s=o[0],a=o[1];u=Rt(It([r,i],1),[s,a]),r=u[0],i=u[1]}return Bt(Vt([2147483647&r,i]));var u}function xt(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=Ot(i,Lt(t,n,Ec.Little)),o=Ot(o,Lt(t,n+4,Ec.Little)),e=Ot(e,Lt(t,n+8,Ec.Little)),a=Tt([i,o,e]),i=a[0],o=a[1],e=a[2];return i=Ot(i,Lt(t,n,Ec.Little)),o=Ot(o,Lt(t,n+4,Ec.Little)),e=Ot(e,s),e=Ot(e,Lt(t,n+8,Ec.Little)<<8),Tt([i,o,e])[2];var a}function Tt(t){var e=t[0],n=t[1],r=t[2];return e=kt(e,n),e=kt(e,r),e^=r>>>13,n=kt(n,r),n=kt(n,e),n^=e<<8,r=kt(r,e),r=kt(r,n),r^=n>>>13,e=kt(e,n),e=kt(e,r),e^=r>>>12,n=kt(n,r),n=kt(n,e),n^=e<<16,r=kt(r,e),r=kt(r,n),r^=n>>>5,e=kt(e,n),e=kt(e,r),e^=r>>>3,n=kt(n,r),n=kt(n,e),n^=e<<10,r=kt(r,e),r=kt(r,n),r^=n>>>15,[e,n,r]}function Pt(t){for(var e="",n=0;n<t.length;n++){var r=At(t,n);127>=r?e+=String.fromCharCode(r):2047>=r?e+=String.fromCharCode(192|r>>>6,128|63&r):65535>=r?e+=String.fromCharCode(224|r>>>12,128|r>>>6&63,128|63&r):2097151>=r&&(e+=String.fromCharCode(240|r>>>18,128|r>>>12&63,128|r>>>6&63,128|63&r))}return e}function At(t,e){if(0>e||e>=t.length)throw new Error("index="+e+' is out of range in "'+t+'"');var n=t.charCodeAt(e);if(n>=55296&&57343>=n&&t.length>e+1){var r=jt(t,e+1);if(r>=56320&&57343>=r)return 1024*(n-55296)+r-56320+65536}return n}function Ot(t,e){return Mt(t,e)[1]}function Mt(t,e){var n=(65535&t)+(65535&e),r=(t>>>16)+(e>>>16)+(n>>>16);return[r>>>16,r<<16|65535&n]}function Rt(t,e){var n=t[0],r=t[1],i=e[0],o=e[1],s=Mt(r,o),a=s[0],u=s[1],c=Ot(Ot(n,i),a);return[c,u]}function kt(t,e){var n=(65535&t)-(65535&e),r=(t>>16)-(e>>16)+(n>>16);return r<<16|65535&n}function Nt(t,e){return t<<e|t>>>32-e}function It(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 Dt(t,e){for(var n=Array(t.length+3>>>2),r=0;r<n.length;r++)n[r]=Lt(t,4*r,e);return n}function jt(t,e){return e>=t.length?0:255&t.charCodeAt(e)}function Lt(t,e,n){var r=0;if(n===Ec.Big)for(var i=0;4>i;i++)r+=jt(t,e+i)<<24-8*i;else for(var i=0;4>i;i++)r+=jt(t,e+i)<<8*i;return r}function Vt(t){return t.reduce(function(t,e){return t+Ft(e)},"")}function Ft(t){for(var e="",n=0;4>n;n++)e+=String.fromCharCode(t>>>8*(3-n)&255);return e}function Ut(t){for(var e="",n=0;n<t.length;n++){var r=jt(t,n);e+=(r>>>4).toString(16)+(15&r).toString(16)}return e.toLowerCase()}function Bt(t){for(var e="",n="1",r=t.length-1;r>=0;r--)e=Ht(e,qt(jt(t,r),n)),n=qt(256,n);return e.split("").reverse().join("")}function Ht(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 qt(t,e){for(var n="",r=e;0!==t;t>>>=1)1&t&&(n=Ht(n,r)),r=Ht(r,r);return n}function zt(t){return t.map(function(t){return t.visit(Tc)}).join("")}function Wt(t){return kc.reduce(function(t,e){return t.replace(e[0],e[1])},t)}function Gt(t){switch(t.toLowerCase()){case"br":return"lb";case"img":return"image";default:return"x-"+t}}function Kt(t){return _t(t)}function Xt(t,e,n){return void 0===e&&(e=null),void 0===n&&(n="src"),null==e?"@angular/"+t+"/index":"@angular/"+t+"/"+n+"/"+e}function Qt(t){return Po.resolveIdentifier(t.name,t.moduleUrl,t.runtime)}function Yt(t){var e=Po.resolveIdentifier(t.name,t.moduleUrl,t.runtime);return{reference:e}}function $t(t){return{identifier:t}}function Zt(t){return $t(Yt(t))}function Jt(t,e){var n=Po.resolveEnum(Qt(t),e);return{reference:n}}function te(t){var e=new Cp;return new Ep(X(e,t),e.isExpanded,e.errors)}function ee(t,e){var n=t.cases.map(function(t){-1!=wp.indexOf(t.value)||t.value.match(/^=\d+$/)||e.push(new Sp(t.valueSourceSpan,'Plural cases should be "=<number>" or one of '+wp.join(", ")));var n=te(t.expression);return e.push.apply(e,n.errors),new Nu("template",[new ku("ngPluralCase",""+t.value,t.valueSourceSpan)],n.nodes,t.sourceSpan,t.sourceSpan,t.sourceSpan)}),r=new ku("[ngPlural]",t.switchValue,t.switchValueSourceSpan);return new Nu("ng-container",[r],n,t.sourceSpan,t.sourceSpan,t.sourceSpan)}function ne(t,e){var n=t.cases.map(function(t){var n=te(t.expression);return e.push.apply(e,n.errors),"other"===t.value?new Nu("template",[new ku("ngSwitchDefault","",t.valueSourceSpan)],n.nodes,t.sourceSpan,t.sourceSpan,t.sourceSpan):new Nu("template",[new ku("ngSwitchCase",""+t.value,t.valueSourceSpan)],n.nodes,t.sourceSpan,t.sourceSpan,t.sourceSpan)}),r=new ku("[ngSwitch]",t.switchValue,t.switchValueSourceSpan);return new Nu("ng-container",[r],n,t.sourceSpan,t.sourceSpan,t.sourceSpan)}function re(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 ie(t,e){var n=e.eager,r=e.providers;return new Qi(t.token,t.multiProvider,t.eager||n,r,t.providerType,t.lifecycleHooks,t.sourceSpan)}function oe(t,e,n){var r=new Map;t.forEach(function(t){var i={token:{identifier:t.type},useClass:t.type};se([i],t.isComponent?Yi.Component:Yi.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){se(t.providers,Yi.PublicService,!1,e,n,r),se(t.viewProviders,Yi.PrivateService,!1,e,n,r)}),r}function se(t,e,n,i,o,s){t.forEach(function(t){var a=s.get(S(t.token));if(r(a)&&!!a.multiProvider!=!!t.multi&&o.push(new Tp("Mixing multi and non multi provider is not possible for token "+E(a.token),i)),a)t.multi||(a.providers.length=0),a.providers.push(t);else{var u=t.token.identifier&&t.token.identifier.lifecycleHooks?t.token.identifier.lifecycleHooks:[];a=new Qi(t.token,t.multi,n||u.length>0,[t],e,u,i),s.set(S(t.token),a)}})}function ae(t){var e=new Map;return t.viewQueries&&t.viewQueries.forEach(function(t){return ce(e,t)}),e}function ue(t){var e=new Map;return t.forEach(function(t){t.queries&&t.queries.forEach(function(t){return ce(e,t)})}),e}function ce(t,e){e.selectors.forEach(function(n){var r=t.get(S(n));r||(r=[],t.set(S(n),r)),r.push(e)})}function pe(t){if(null==t||0===t.length||"/"==t[0])return!1;var e=t.match(Ip);return null===e||"package"==e[1]||"asset"==e[1]}function le(t,e,n){var r=[],i=n.replace(Np,"").replace(kp,function(){for(var n=[],i=0;i<arguments.length;i++)n[i-0]=arguments[i];var o=n[1]||n[2];return pe(o)?(r.push(t.resolve(e,o)),""):n[0]});return new Rp(i,r)}function he(t){return"@"==t[0]}function fe(t,n,r,i){var o=[];return Zo.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 de(t){var e=null,n=null,r=null,i=!1,o=null;t.attrs.forEach(function(t){var s=t.name.toLowerCase();s==Wp?e=t.value:s==Qp?n=t.value:s==Xp?r=t.value:t.name==Jp?i=!0:t.name==tl&&t.value.length>0&&(o=t.value)}),e=ye(e);var s=t.name.toLowerCase(),a=el.OTHER;return p(s)[1]==Gp?a=el.NG_CONTENT:s==$p?a=el.STYLE:s==Zp?a=el.SCRIPT:s==Kp&&r==Yp&&(a=el.STYLESHEET),new nl(a,e,n,i,o)}function ye(t){return null===t||0===t.length?"*":t}function me(t){return t.trim().split(/\s+/g)}function ve(t,e){var n=new Zo,r=p(t)[1];n.setElement(r);for(var i=0;i<e.length;i++){var o=e[i][0],s=p(o)[1],a=e[i][1];if(n.addAttribute(s,a),o.toLowerCase()==bl){var u=me(a);u.forEach(function(t){return n.addClassName(t)})}}return n}function ge(t){return t instanceof Ou&&0==t.value.trim().length}function _e(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 be(t,e,n){var r=xe(t.styles,{},e,n,!1),i=new ql(r),o=t.stateNameExpr.split(/\s*,\s*/);return o.map(function(t){return new Fl(t,i)})}function we(t,e,n,r){var i=new Ql,o=[],s=t.stateChangeExpr.split(/\s*,\s*/);s.forEach(function(t){o.push.apply(o,Se(t,r))});var a=Ce(t.steps),u=Te(a,e,n,r),c=Re(u,0,i,e,r);0==r.length&&ke(c,i,r);var p=c instanceof Wl?c:new Kl([c]);return new Bl(o,p)}function Ee(t,e){switch(t){case":enter":return"void => *";case":leave":return"* => void";default:return e.push(new nh('the transition alias value "'+t+'" is not supported')),"* => *"}}function Se(t,e){var n=[];":"==t[0]&&(t=Ee(t,e));var i=t.match(/^(\*|[-\w]+)\s*(<?[=-]>)\s*(\*|[-\w]+)$/);if(!r(i)||i.length<4)return e.push(new nh("the provided "+t+" is not of a supported format")),n;var o=i[1],s=i[2],a=i[3];n.push(new Ul(o,a));var u=o==Do&&a==Do;return"<"!=s[0]||u||n.push(new Ul(a,o)),n}function Ce(t){return Array.isArray(t)?new ws(t):t}function xe(t,e,n,r,i){var o=t.offset;(o>1||0>o)&&r.push(new nh("Offset values for animations must be between 0 and 1"));var s=[];return t.styles.forEach(function(t){if("string"==typeof t)i?s.push.apply(s,Oe(t,e,r)):r.push(new nh("State based animations cannot contain references to other states"));else{var o=t,a={};Object.keys(o).forEach(function(t){var e=n.normalizeAnimationStyleProperty(t),i=n.normalizeAnimationStyleValue(e,t,o[t]),s=i.error;s&&r.push(new nh(s)),a[e]=i.value}),s.push(a)}}),s}function Te(t,e,n,r){var i=Ae(t,e,n,r);return t instanceof Es?new Es(i):new ws(i)}function Pe(t,e){if("object"==typeof e&&null!==e&&t.length>0){var n=t.length-1,r=t[n];if("object"==typeof r&&null!==r)return void(t[n]=ro.merge(r,e))}t.push(e)}function Ae(t,e,n,i){var o;if(!(t instanceof bs))return[t];o=t.steps;var s,a=[];return o.forEach(function(t){if(t instanceof gs)r(s)||(s=[]),xe(t,e,n,i,!0).forEach(function(t){Pe(s,t)});else{if(r(s)&&(a.push(new gs(0,s)),s=null),t instanceof _s){var o=t.styles;o instanceof gs?o.styles=xe(o,e,n,i,!0):o instanceof vs&&o.steps.forEach(function(t){t.styles=xe(t,e,n,i,!0)})}else if(t instanceof bs){var u=Ae(t,e,n,i);t=t instanceof Es?new Es(u):new ws(u)}a.push(t)}}),r(s)&&a.push(new gs(0,s)),a}function Oe(t,e,n){var i=[];if(":"!=t[0])n.push(new nh('Animation states via styles must be prefixed with a ":"'));else{var o=t.substring(1),s=e[o];r(s)?s.styles.forEach(function(t){"object"==typeof t&&null!==t&&i.push(t)}):n.push(new nh('Unable to apply styles due to missing a state: "'+o+'"'))}return i}function Me(t,e,n,i,o){var s=t.steps.length,a=0;t.steps.forEach(function(t){return a+=r(t.offset)?1:0}),a>0&&s>a&&(o.push(new nh("Not all style() entries contain an offset for the provided keyframe()")),a=s);var u=s-1,c=0==a?1/u:0,p=[],l=0,h=!1,f=0;t.steps.forEach(function(t){var e=t.offset,n={};t.styles.forEach(function(t){Object.keys(t).forEach(function(e){"offset"!=e&&(n[e]=t[e])})}),r(e)?h=h||f>e:e=l==u?th:c*l,p.push([e,n]),f=e,l++}),h&&p.sort(function(t,e){return t[0]<=e[0]?-1:1});var d=p[0];d[0]!=Jl&&p.splice(0,0,d=[Jl,{}]);var y=d[1];u=p.length-1;var m=p[u];m[0]!=th&&(p.push(m=[th,{}]),u++);for(var v=m[1],g=1;u>=g;g++){var _=p[g],b=_[1];Object.keys(b).forEach(function(t){r(y[t])||(y[t]=Vo)})}for(var w=function(t){var e=p[t],n=e[1];Object.keys(n).forEach(function(t){r(v[t])||(v[t]=n[t])})},g=u-1;g>=0;g--)w(g);return p.map(function(t){return new zl(t[0],new ql([t[1]]))})}function Re(t,e,n,i,o){var s,a=0,u=e;if(t instanceof bs){var c,p=0,l=[],h=t instanceof Es;if(t.steps.forEach(function(t){var s=h?u:e;if(t instanceof gs)return t.styles.forEach(function(t){var e=t;Object.keys(e).forEach(function(t){n.insertAtTime(t,s,e[t])})}),void(c=t.styles);var f=Re(t,s,n,i,o);if(r(c)){if(t instanceof bs){var d=new ql(c);l.push(new Hl(d,[],0,0,""))}else{var y=f;(v=y.startingStyles.styles).push.apply(v,c)}c=null}var m=f.playTime;e+=m,a+=m,p=Math.max(m,p),l.push(f);var v}),r(c)){var f=new ql(c);l.push(new Hl(f,[],0,0,""))}h?(s=new Gl(l),a=p,e=u+a):s=new Kl(l)}else if(t instanceof _s){var d=Ne(t.timings,o),y=t.styles,m=void 0;if(y instanceof vs)m=Me(y,e,n,i,o);else{var v=y,g=th,_=new ql(v.styles),b=new zl(g,_);m=[b]}s=new Hl(new ql([]),m,d.duration,d.delay,d.easing),a=d.duration+d.delay,e+=a,m.forEach(function(t){return t.styles.styles.forEach(function(t){return Object.keys(t).forEach(function(r){n.insertAtTime(r,e,t[r])})})})}else s=new Hl(null,[],0,0,"");return s.playTime=a,s.startTime=u,s}function ke(t,e,n){if(t instanceof Hl&&t.keyframes.length>0){var r=t.keyframes;if(1==r.length){var i=r[0],o=Ie(i,t.startTime,t.playTime,e,n);t.keyframes=[o,i]}}else t instanceof Wl&&t.steps.forEach(function(t){return ke(t,e,n)})}function Ne(t,e){var n,o=/^([\.\d]+)(m?s)(?:\s+([\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?/i,s=0,a=null;if("string"==typeof t){var u=t.match(o);if(null===u)return e.push(new nh('The provided timing value "'+t+'" is invalid.')),new oh(0,0,null);var c=parseFloat(u[1]),p=u[2];"s"==p&&(c*=eh),n=Math.floor(c);var l=u[3],h=u[4];if(r(l)){var f=parseFloat(l);r(h)&&"s"==h&&(f*=eh),s=Math.floor(f)}var d=u[5];i(d)||(a=d)}else n=t;return new oh(n,s,a)}function Ie(t,e,n,i,o){var s={},a=e+n;return t.styles.styles.forEach(function(t){Object.keys(t).forEach(function(n){var u=t[n];if("offset"!=n){var c,p,l,h=i.indexOfAtOrBeforeTime(n,e);r(h)?(c=i.getByIndex(n,h),l=c.value,p=i.getByIndex(n,h+1)):l=Vo,r(p)&&!p.matches(a,u)&&o.push(new nh('The animated CSS property "'+n+'" unexpectedly changes between steps "'+c.time+'ms" and "'+a+'ms" at "'+p.time+'ms"')),s[n]=l}})}),new zl(Jl,new ql([s]))}function De(){return new ph}function je(){return new ph(".")}function Le(t){var e=Fe(t);return e&&e[hh.Scheme]||""}function Ve(t,e,n,i,o,s,a){var u=[];return r(t)&&u.push(t+":"),r(n)&&(u.push("//"),r(e)&&u.push(e+"@"),u.push(n),r(i)&&u.push(":"+i)),r(o)&&u.push(o),r(s)&&u.push("?"+s),r(a)&&u.push("#"+a),u.join("")}function Fe(t){return t.match(lh)}function Ue(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 Be(t){var e=t[hh.Path];return e=i(e)?"":Ue(e),t[hh.Path]=e,Ve(t[hh.Scheme],t[hh.UserInfo],t[hh.Domain],t[hh.Port],e,t[hh.QueryData],t[hh.Fragment])}function He(t,e){var n=Fe(encodeURI(e)),o=Fe(t);if(r(n[hh.Scheme]))return Be(n);n[hh.Scheme]=o[hh.Scheme];for(var s=hh.Scheme;s<=hh.Port;s++)i(n[s])&&(n[s]=o[s]);if("/"==n[hh.Path][0])return Be(n);var a=o[hh.Path];i(a)&&(a="/");var u=a.lastIndexOf("/");return a=a.substring(0,u+1)+n[hh.Path],n[hh.Path]=a,Be(n)}function qe(t){return t instanceof e.Directive}function ze(t,e,n){var r=new xf(t,e);return n.visitExpression(r,null)}function We(t){var e=new Tf;return e.visitAllStatements(t,null),e.varNames}function Ge(t,e){return void 0===e&&(e=null),new Lh(t,e)}function Ke(t,e){return void 0===e&&(e=null),new Gh(t,null,e)}function Xe(t,e,n){return void 0===e&&(e=null),void 0===n&&(n=null),r(t)?Qe(Ke(t),e,n):null}function Qe(t,e,n){return void 0===e&&(e=null),void 0===n&&(n=null),r(t)?new xh(t,e,n):null}function Ye(t,e){return void 0===e&&(e=null),new ef(t,e)}function $e(t,e,n){return void 0===e&&(e=null),void 0===n&&(n=!1),new rf(t.map(function(t){return new nf(t[0],t[1],n)}),e)}function Ze(t){return new Xh(t)}function Je(t,e,n){return void 0===n&&(n=null),new $h(t,e,n)}function tn(t,e){return void 0===e&&(e=null),new Wh(t,e)}function en(t){var e=""+t.fields.length,n=rn(e);return t.fields.push(new mf(n.name,null,[cf.Private])),t.ctorStmts.push(of.prop(n.name).set(Ke(Yt(_p.UNINITIALIZED))).toStmt()),new Pf(n,e)}function nn(t,e,n,r){var i=Ke(Yt(_p.checkBinding)).callFn([n,e,t.currValExpr]);return t.forceUpdate&&(i=t.forceUpdate.or(i)),t.stmts.concat([new bf(i,r.concat([of.prop(e.name).set(t.currValExpr).toStmt()]))])}function rn(t){return of.prop("_expr_"+t)}function on(t){return r(t.value)?tn(t.value):Ke(t.identifier)}function sn(t){if(0===t.length)return Ke(Yt(_p.EMPTY_INLINE_ARRAY));var e=Math.log(t.length)/Math.log(2),n=Math.ceil(e),r=n<_p.inlineArrays.length?_p.inlineArrays[n]:_p.InlineArrayDynamic,i=Yt(r);return Ke(i).instantiate([tn(t.length)].concat(t))}function an(t,e,n,r){r.fields.push(new mf(n.name,null));var i=e<_p.pureProxies.length?_p.pureProxies[e]:null;if(!i)throw new Error("Unsupported number of argument for pure functions: "+e);r.ctorStmts.push(of.prop(n.name).set(Ke(Yt(i)).callFn([t])).toStmt())}function un(t,e){var n=Object.keys(t.runtime).find(function(n){return t.runtime[n]===e});if(!n)throw new Error("Unknown enum value "+e+" in "+t.name);return Ke(Jt(t,n))}function cn(t,e,n,r,i){var o=wn(i),s=[];e||(e=new If);var a=new Nf(t,e,n,Af,i,!1),u=r.visit(a,kf.Expression);if(!u)return null;if(a.temporaryCount)for(var c=0;c<a.temporaryCount;c++)s.push(fn(i,c));if(a.needsValueUnwrapper){var p=Af.callMethod("reset",[]).toStmt();s.push(p)}return s.push(o.set(u).toDeclStmt(null,[cf.Final])),a.needsValueUnwrapper?new Mf(s,o,Af.prop("hasWrappedValue")):new Mf(s,o,null)}function pn(t,e,n,r,i){e||(e=new If);var o=new Nf(t,e,n,null,i,!0),s=[];gn(r.visit(o,kf.Statement),s),dn(o.temporaryCount,i,s);var a=s.length-1,u=null;if(a>=0){var c=s[a],p=Sn(c);p&&(u=En(i),s[a]=u.set(p.cast(Ah).notIdentical(tn(!1))).toDeclStmt(null,[cf.Final]))}return new Rf(s,u)}function ln(t){var e=[],n=We(t);return n.has(Af.name)&&e.push(Af.set(Ke(Yt(_p.ValueUnwrapper)).instantiate([])).toDeclStmt(null,[cf.Final])),e}function hn(t,e){return"tmp_"+t+"_"+e}function fn(t,e){return new lf(hn(t,e),af)}function dn(t,e,n){for(var r=t-1;r>=0;r--)n.unshift(fn(e,r))}function yn(t,e){if(t!==kf.Statement)throw new Error("Expected a statement, but saw "+e)}function mn(t,e){if(t!==kf.Expression)throw new Error("Expected an expression, but saw "+e)}function vn(t,e){return t===kf.Statement?e.toStmt():e}function gn(t,e){Array.isArray(t)?t.forEach(function(t){return gn(t,e)}):e.push(t)}function _n(t,e){if(0===e.length)return Ke(Yt(_p.EMPTY_ARRAY));for(var n=of.prop("_arr_"+t.fields.length),r=[],i=[],o=0;o<e.length;o++){var s="p"+o;r.push(new Yh(s)),i.push(Ge(s))}return an(Je(r,[new df(Ye(i))],new Th(Ah)),e.length,n,t),n.callFn(e)}function bn(t,e){if(0===e.length)return Ke(Yt(_p.EMPTY_MAP));for(var n=of.prop("_map_"+t.fields.length),r=[],i=[],o=[],s=0;s<e.length;s++){var a="p"+s;r.push(new Yh(a)),i.push([e[s][0],Ge(a)]),o.push(e[s][1])}return an(Je(r,[new df($e(i))],new Ph(Ah)),e.length,n,t),n.callFn(o)}function wn(t){return Ge("currVal_"+t)}function En(t){return Ge("pd_"+t)}function Sn(t){return t instanceof ff?t.expr:t instanceof df?t.value:null}function Cn(t,e,n,i,o,s){var a=[],u=t.prop("renderer");switch(i=xn(t,e,i,s),e.type){case Zi.Property:o&&a.push(Ke(Yt(_p.setBindingDebugInfo)).callFn([u,n,tn(e.name),i]).toStmt()),a.push(u.callMethod("setElementProperty",[n,tn(e.name),i]).toStmt());break;case Zi.Attribute:i=i.isBlank().conditional(af,i.callMethod("toString",[])),a.push(u.callMethod("setElementAttribute",[n,tn(e.name),i]).toStmt());break;case Zi.Class:a.push(u.callMethod("setElementClass",[n,tn(e.name),i]).toStmt());break;case Zi.Style:var c=i.callMethod("toString",[]);r(e.unit)&&(c=c.plus(tn(e.unit))),i=i.isBlank().conditional(af,c),a.push(u.callMethod("setElementStyle",[n,tn(e.name),i]).toStmt());break;case Zi.Animation:throw new Error("Illegal state: Should not come here!")}return a}function xn(t,n,r,i){if(n.securityContext===e.SecurityContext.NONE)return r;if(n.needsRuntimeSecurityContext||(i=un(_p.SecurityContext,n.securityContext)),!i)throw new Error("internal error, no SecurityContext given "+n.name);var o=t.prop("viewUtils").prop("sanitizer"),s=[i,r];return o.callMethod("sanitize",s)}function Tn(t,e,n,r,i,o,s,a){var u=[],c=[],p=n.name,l=e.prop("componentType").prop("animations").key(tn(p)),h=tn(Lo),f=Ke(Yt(_p.UNINITIALIZED)),d=Ge("animationTransition_"+p);c.push(d.set(l.callFn([t,o,a.equals(f).conditional(h,a),s.equals(f).conditional(h,s)])).toDeclStmt()),u.push(d.set(l.callFn([t,o,a,h])).toDeclStmt());var y=[],m=r.find(function(t){return t.isAnimation&&t.name==p&&"start"==t.phase});m&&y.push(d.callMethod("onStart",[i.callMethod(Bh.Bind,[t,tn(Hi.calcFullName(p,null,"start"))])]).toStmt());var v=r.find(function(t){return t.isAnimation&&t.name==p&&"done"==t.phase});return v&&y.push(d.callMethod("onDone",[i.callMethod(Bh.Bind,[t,tn(Hi.calcFullName(p,null,"done"))])]).toStmt()),c.push.apply(c,y),u.push.apply(u,y),{updateStmts:c,detachStmts:u}}function Pn(t){var e=t.parentArgs||[],n=t.parent?[sf.callFn(e).toStmt()]:[],r=An(Array.isArray(t.builders)?t.builders:[t.builders]),i=new vf(null,t.ctorParams||[],n.concat(r.ctorStmts));return new _f(t.name,t.parent,r.fields,r.getters,i,r.methods,t.modifiers||[])}function An(t){return{fields:(e=[]).concat.apply(e,t.map(function(t){return t.fields||[]})),methods:(n=[]).concat.apply(n,t.map(function(t){return t.methods||[]})),getters:(r=[]).concat.apply(r,t.map(function(t){return t.getters||[]})),ctorStmts:(i=[]).concat.apply(i,t.map(function(t){return t.ctorStmts||[]}))};var e,n,r,i}function On(t){var e=Ge("changed"),n=[e.set(of.prop(Uf)).toDeclStmt(),of.prop(Uf).set(tn(!1)).toStmt()],r=[];if(t.genChanges){var i=[];t.ngOnChanges&&i.push(of.prop(Vf).callMethod("ngOnChanges",[of.prop(Ff)]).toStmt()),t.compilerConfig.logBindingUpdate&&i.push(Ke(Yt(_p.setBindingDebugInfoForChanges)).callFn([Wf.prop("renderer"),Kf,of.prop(Ff)]).toStmt()),i.push(Qf),r.push(new bf(e,i))}t.ngOnInit&&r.push(new bf(Wf.prop("numberOfChecks").identical(new Wh(0)),[of.prop(Vf).callMethod("ngOnInit",[]).toStmt()])),t.ngDoCheck&&r.push(of.prop(Vf).callMethod("ngDoCheck",[]).toStmt()),r.length>0&&n.push(new bf(Ze(qf),r)),n.push(new df(e)),t.methods.push(new vf("ngDoCheck",[new Yh(Wf.name,Xe(Yt(_p.AppView),[Ah])),new Yh(Kf.name,Ah),new Yh(qf.name,Oh)],n,Oh))}function Mn(t,e){var n=en(e),r=[of.prop(Uf).set(tn(!0)).toStmt(),of.prop(Vf).prop(t).set(Hf).toStmt()];e.genChanges&&r.push(of.prop(Ff).key(tn(t)).set(Ke(Yt(_p.SimpleChange)).instantiate([n.expression,Hf])).toStmt());var i=nn({currValExpr:Hf,forceUpdate:zf,stmts:[]},n.expression,qf,r);e.methods.push(new vf("check_"+t,[new Yh(Hf.name,Ah),new Yh(qf.name,Oh),new Yh(zf.name,Oh)],i))}function Rn(t,e,n){var r=[],i=[new Yh(Wf.name,Xe(Yt(_p.AppView),[Ah])),new Yh(Gf.name,Xe(Yt(_p.AppView),[Ah])),new Yh(Kf.name,Ah),new Yh(qf.name,Oh)];t.forEach(function(t){var o=en(n),s=cn(n,null,of.prop(Vf),t.value,o.bindingId);if(s){var a;t.needsRuntimeSecurityContext&&(a=Ge("secCtx_"+i.length),i.push(new Yh(a.name,Xe(Yt(_p.SecurityContext)))));var u;if(t.isAnimation){var c=Tn(Wf,Gf,t,e,of.prop(Bf).or(Ke(Yt(_p.noop))),Kf,s.currValExpr,o.expression),p=c.updateStmts,l=c.detachStmts;u=p,(h=n.detachStmts).push.apply(h,l)}else u=Cn(Wf,t,Kf,s.currValExpr,n.compilerConfig.logBindingUpdate,a);r.push.apply(r,nn(s,o.expression,qf,u));var h}}),n.methods.push(new vf("checkHost",i,r))}function kn(t,e){var n=Ge("result"),r=[n.set(tn(!0)).toDeclStmt(Oh)];t.forEach(function(t,i){var o=pn(e,null,of.prop(Vf),t.handler,"sub_"+i),s=o.stmts;o.preventDefault&&s.push(n.set(o.preventDefault.and(n)).toStmt()),r.push(new bf(Xf.equals(tn(t.fullName)),s))}),r.push(new df(n)),e.methods.push(new vf("handleEvent",[new Yh(Xf.name,Rh),new Yh(Of.event.name,Ah)],r,Oh))}function Nn(t,e){var n=[new Yh(Wf.name,Xe(Yt(_p.AppView),[Ah])),new Yh(Bf,Ah)],r=[of.prop(Bf).set(Ge(Bf)).toStmt()];Object.keys(t.outputs).forEach(function(i,o){var s=t.outputs[i],a="emit"+o;n.push(new Yh(a,Oh));var u="subscription"+o;e.fields.push(new mf(u,Ah)),r.push(new bf(Ge(a),[of.prop(u).set(of.prop(Vf).prop(i).callMethod(Bh.SubscribeObservable,[Ge(Bf).callMethod(Bh.Bind,[Wf,tn(s)])])).toStmt()])),e.destroyStmts.push(of.prop(u).and(of.prop(u).callMethod("unsubscribe",[])).toStmt())}),e.methods.push(new vf("subscribe",n,r))}function In(t,e,n){var r=[],i=new qp(e,Da,n,[],r),o=w(t.type),s=o?"in Directive "+b(t.type)+" in "+o:"in Directive "+b(t.type),a=new xu("",s),u=new Tu(new Cu(a,null,null,null),new Cu(a,null,null,null)),c=i.createDirectiveHostPropertyAsts(t.toSummary(),u),p=i.createDirectiveHostEventAsts(t.toSummary(),u);return new Zf(c,p,r)}function Dn(t){var e=t.filter(function(t){return t.level===Pu.WARNING}),n=t.filter(function(t){return t.level===Pu.FATAL});if(e.length>0&&this._console.warn("Directive parse warnings:\n"+e.join("\n")),n.length>0)throw new Error("Directive parse errors:\n"+n.join("\n"))}function jn(t,e){return Po.hasLifecycleHook(e,Ln(t))}function Ln(t){switch(t){case ao.OnInit:return"ngOnInit";case ao.OnDestroy:return"ngOnDestroy";case ao.DoCheck:return"ngDoCheck";case ao.OnChanges:return"ngOnChanges";case ao.AfterContentInit:return"ngAfterContentInit";case ao.AfterContentChecked:return"ngAfterContentChecked";case ao.AfterViewInit:return"ngAfterViewInit";case ao.AfterViewChecked:return"ngAfterViewChecked"}}function Vn(t){return t instanceof e.NgModule}function Fn(t){return t instanceof e.Pipe}function Un(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)?Un(i,n):n.push(i)}return n}function Bn(t){return t?Array.from(new Set(t)):[]}function Hn(t){return Bn(Un(t))}function qn(t){return t instanceof Ji||t instanceof e.Type}function zn(t,e,n){if(e instanceof Ji)return e.filePath;var r=n.moduleId;if("string"==typeof r){var i=Le(r);return i?r:"package:"+r+os}if(null!==r&&void 0!==r)throw new cs('moduleId should be a string in "'+Gn(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 Wn(t,e){g(t,new dd,e)}function Gn(t){return t instanceof Ji?t.name+" in "+t.filePath:s(t)}function Kn(t,e){return void 0===e&&(e=null),g(t,new md,e)}function Xn(t,e,n){if(void 0===n&&(n=!0),i(t))return null;var r=t.replace(xd,function(){for(var t=[],n=0;n<arguments.length;n++)t[n-0]=arguments[n];return"$"==t[0]?e?"\\$":"$":"\n"==t[0]?"\\n":"\r"==t[0]?"\\r":"\\"+t[0]}),o=n||!Td.test(r);return o?"'"+r+"'":r}function Qn(t){for(var e="",n=0;t>n;n++)e+=" ";return e}function Yn(t){var e=new Dd(Nd),n=Md.createRoot([]),r=Array.isArray(t)?t:[t];return r.forEach(function(t){if(t instanceof pf)t.visitStatement(e,n);else if(t instanceof Dh)t.visitExpression(e,n);else{if(!(t instanceof Eh))throw new Error("Don't know how to print debug info for "+t);t.visitType(e,n)}}),n.toSource()}function $n(t,e){for(var n=0,r=e;n<r.length;n++){var i=r[n];jd[i.toLowerCase()]=t}}function Zn(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 Jn(t){return t.replace(ly,"")}function tr(t){var e=t.match(hy);return e?e[0]:""}function er(t,e){var n=nr(t),r=0;return n.escapedString.replace(fy,function(){for(var t=[],i=0;i<arguments.length;i++)t[i-0]=arguments[i];var o=t[2],s="",a=t[4],u="";a&&a.startsWith("{"+vy)&&(s=n.blocks[r++],a=a.substring(vy.length+1),u="{");var c=e(new gy(o,s));return""+t[1]+c.selector+t[3]+u+c.content+a})}function nr(t){for(var e=t.split(dy),n=[],r=[],i=0,o=[],s=0;s<e.length;s++){var a=e[s];a==my&&i--,i>0?o.push(a):(o.length>0&&(r.push(o.join("")),n.push(vy),o=[]),n.push(a)),a==yy&&i++}return o.length>0&&(r.push(o.join("")),n.push(vy)),new _y(n.join(""),r)}function rr(t){var e="styles";return t&&(e+="_"+b(t.type)),e}function ir(t,e,n){if(e===n)return t;for(var r=of,i=e;i!==n&&i.declarationElement.view;)i=i.declarationElement.view,r=r.prop("parentView");if(i!==n)throw new Error("Internal error: Could not calculate a property in a parent view: "+t);return t.visitExpression(new Ny(r,n),null)}function or(t,e,n){var r;r=t.viewType===go.HOST?of:of.prop("parentView");var i=[on(e),of.prop("parentIndex")];return n&&i.push(af),r.callMethod("injectorGet",i)}function sr(t,e){return"View_"+b(t.type)+e}function ar(t){return"handleEvent_"+t}function ur(t){return io.flatten(t.values.map(function(t){return t instanceof Iy?cr(t.view.declarationElement.viewContainer,t.view,ur(t)):t}))}function cr(t,e,n){var r=n.map(function(t){return ze(of.name,Ge("nestedView"),t)});return t.callMethod("mapNestedViews",[Ge(e.className),Je([new Yh("nestedView",e.classType)],[new df(Ye(r))],Ah)])}function pr(t,e){e.fields.push(new mf(t,Xe(Yt(_p.QueryList),[Ah])));var n=of.prop(t);return e.createMethod.addStmt(of.prop(t).set(Ke(Yt(_p.QueryList),[Ah]).instantiate([])).toStmt()),n}function lr(t,e){e.meta.selectors.forEach(function(n){var r=t.get(S(n));r||(r=[],t.set(S(n),r)),r.push(e)})}function hr(t,e,n,r){var i;return i=e>0?tn(t).lowerEquals(By.requestNodeIndex).and(By.requestNodeIndex.lowerEquals(tn(t+e))):tn(t).identical(By.requestNodeIndex),new bf(By.token.identical(on(n.token)).and(i),[new df(r)])}function fr(t,e,n,r,i){var o,s,a=i.view;if(n?(o=Ye(e),s=new Th(Ah)):(o=e[0],s=e[0].type),s||(s=Ah),r)a.fields.push(new mf(t,s)),a.createMethod.addStmt(of.prop(t).set(o).toStmt());else{var u="_"+t;a.fields.push(new mf(u,s));var c=new Ry(a);c.resetDebugInfo(i.nodeIndex,i.sourceAst),c.addStmt(new bf(of.prop(u).isBlank(),[of.prop(u).set(o).toStmt()])),c.addStmt(new df(of.prop(u))),a.getters.push(new gf(t,c.finish(),s))}return of.prop(t)}function dr(t,e){for(var n=null,r=t.pipeMetas.length-1;r>=0;r--){var i=t.pipeMetas[r];if(i.name==e){n=i;break}}if(!n)throw new Error("Illegal state: Could not find pipe "+e+" although the parser should have detected this error!");return n}function yr(t,e){return e>0?go.EMBEDDED:t.isHost?go.HOST:go.COMPONENT}function mr(t,e,n,r){var i=vr(t,e);return i.size?(r&&gr(i,n),_r(i,e,n),br(t,e,n),!0):!1}function vr(t,e){var n=new Map;return t.forEach(function(t){n.set(t.fullName,t)}),e.forEach(function(t){t.hostEvents.forEach(function(t){n.set(t.fullName,t)})}),n}function gr(t,e){var n=[];if(t.forEach(function(t){t.phase||n.push(tn(t.name),tn(t.target))}),n.length){var r=Ge("disposable_"+e.view.disposables.length);e.view.disposables.push(r),e.view.createMethod.addStmt(r.set(Ke(Yt(_p.subscribeToRenderElement)).callFn([of,e.renderNode,sn(n),wr(e)])).toDeclStmt(kh,[cf.Private]))}}function _r(t,e,n){var r=Array.from(t.keys());e.forEach(function(t){var e=n.directiveWrapperInstance.get(t.directive.type.reference);n.view.createMethod.addStmts(Jf.subscribe(t.directive,t.hostProperties,r,e,of,wr(n)))})}function br(t,e,n){var r=e.some(function(t){return t.hostEvents.some(function(){return t.directive.isComponent})}),i=r?n.compViewExpr:of,o=new Ry(n.view);o.resetDebugInfo(n.nodeIndex,n.sourceAst),o.push(i.callMethod("markPathToRootAsCheckOnce",[]).toStmt());var s=Ge("eventName"),a=Ge("result");o.push(a.set(tn(!0)).toDeclStmt(Oh)),e.forEach(function(t){var e=n.directiveWrapperInstance.get(t.directive.type.reference);t.hostEvents.length>0&&o.push(a.set(Jf.handleEvent(t.hostEvents,e,s,Of.event).and(a)).toStmt())}),t.forEach(function(t,e){var r=pn(n.view,n.view,n.view.componentContext,t.handler,"sub_"+e),i=r.stmts;r.preventDefault&&i.push(a.set(r.preventDefault.and(a)).toStmt()),o.push(new bf(s.equals(tn(t.fullName)),i))}),o.push(new df(a)),n.view.methods.push(new vf(ar(n.nodeIndex),[new Yh(s.name,Rh),new Yh(Of.event.name,Ah)],o.finish(),Oh))}function wr(t){var e=ar(t.nodeIndex);return of.callMethod("eventHandler",[of.prop(e)])}function Er(t,e,n){var r=n.view,i=t.type.lifecycleHooks,o=r.afterContentLifecycleCallbacksMethod;o.resetDebugInfo(n.nodeIndex,n.sourceAst),-1!==i.indexOf(ao.AfterContentInit)&&o.addStmt(new bf(Jy,[e.callMethod("ngAfterContentInit",[]).toStmt()])),-1!==i.indexOf(ao.AfterContentChecked)&&o.addStmt(e.callMethod("ngAfterContentChecked",[]).toStmt())}function Sr(t,e,n){var r=n.view,i=t.type.lifecycleHooks,o=r.afterViewLifecycleCallbacksMethod;o.resetDebugInfo(n.nodeIndex,n.sourceAst),-1!==i.indexOf(ao.AfterViewInit)&&o.addStmt(new bf(Jy,[e.callMethod("ngAfterViewInit",[]).toStmt()])),-1!==i.indexOf(ao.AfterViewChecked)&&o.addStmt(e.callMethod("ngAfterViewChecked",[]).toStmt())}function Cr(t,e,n){n.view.destroyMethod.addStmts(Jf.ngOnDestroy(t.directive,e)),n.view.detachMethod.addStmts(Jf.ngOnDetach(t.hostProperties,e,of,n.compViewExpr||of,n.renderNode))}function xr(t,e,n){var r=n.view.destroyMethod;r.resetDebugInfo(n.nodeIndex,n.sourceAst),t.providerType!==Yi.Directive&&t.providerType!==Yi.Component&&-1!==t.lifecycleHooks.indexOf(ao.OnDestroy)&&r.addStmt(e.callMethod("ngOnDestroy",[]).toStmt())}function Tr(t,e,n){var r=n.destroyMethod;-1!==t.type.lifecycleHooks.indexOf(ao.OnDestroy)&&r.addStmt(e.callMethod("ngOnDestroy",[]).toStmt())}function Pr(t,e,n){var r=en(n),i=cn(n,n,n.componentContext,t.value,r.bindingId);return i?(n.detectChangesRenderPropertiesMethod.resetDebugInfo(e.nodeIndex,t),void n.detectChangesRenderPropertiesMethod.addStmts(nn(i,r.expression,Hy.throwOnChange,[of.prop("renderer").callMethod("setText",[e.renderNode,i.currValExpr]).toStmt()]))):null}function Ar(t,e,n,r){var i=r.view,o=r.renderNode;t.forEach(function(t){var s=en(i);i.detectChangesRenderPropertiesMethod.resetDebugInfo(r.nodeIndex,t);var a=cn(i,i,r.view.componentContext,t.value,s.bindingId);if(a){var u=[],c=i.detectChangesRenderPropertiesMethod;switch(t.type){case Zi.Property:case Zi.Attribute:case Zi.Class:case Zi.Style:u.push.apply(u,Cn(of,t,o,a.currValExpr,i.genConfig.logBindingUpdate));break;case Zi.Animation:c=i.animationBindingsMethod;var p=Tn(of,of,t,e,(n?of.prop(ar(r.nodeIndex)):Ke(Yt(_p.noop))).callMethod(Bh.Bind,[of]),r.renderNode,a.currValExpr,s.expression),l=p.updateStmts,h=p.detachStmts;u.push.apply(u,l),i.detachMethod.addStmts(h)}c.addStmts(nn(a,s.expression,Hy.throwOnChange,u))}})}function Or(t,e,n,r,i){var o=t.hostProperties.filter(function(t){return t.needsRuntimeSecurityContext}).map(function(t){var e;switch(t.type){case Zi.Property:e=i.securityContext(r,t.name,!1);break;case Zi.Attribute:e=i.securityContext(r,t.name,!0);break;default:throw new Error("Illegal state: Only property / attribute bindings can have an unknown security context! Binding "+t.name)}return un(_p.SecurityContext,e)});n.view.detectChangesRenderPropertiesMethod.addStmts(Jf.checkHost(t.hostProperties,e,of,n.compViewExpr||of,n.renderNode,Hy.throwOnChange,o))}function Mr(t,e,n,r){var i=r.view,o=i.detectChangesInInputsMethod;o.resetDebugInfo(r.nodeIndex,r.sourceAst),t.inputs.forEach(function(t,s){var a=r.nodeIndex+"_"+n+"_"+s;o.resetDebugInfo(r.nodeIndex,t);var u=cn(i,i,i.componentContext,t.value,a);u&&(o.addStmts(u.stmts),o.addStmt(e.callMethod("check_"+t.directiveName,[u.currValExpr,Hy.throwOnChange,u.forceUpdate||tn(!1)]).toStmt()))});var s=t.directive.isComponent&&!oo(t.directive.changeDetection),a=Jf.ngDoCheck(e,of,r.renderNode,Hy.throwOnChange),u=s?new bf(a,[r.compViewExpr.callMethod("markAsCheckOnce",[]).toStmt()]):a.toStmt();o.addStmt(u)}function Rr(t){var e=[];t.getProviderTokens().forEach(function(n){var r=t.getQueriesFor(n);e.push.apply(e,r.map(function(t){return new tm(t,n)}))}),Object.keys(t.referenceTokens).forEach(function(n){var r={value:n};e.push.apply(e,t.getQueriesFor(r).map(function(t){return new tm(t,r)}))}),e.forEach(function(e){var n;if(e.read.identifier)n=t.instances.get(S(e.read));else{var r=t.referenceTokens[e.read.value];n=r?t.instances.get(S(r)):t.elementRef}n&&e.query.addValue(n,t.view)})}function kr(t,e,r){var i=new em(t,r);n(i,e),t.pipes.forEach(function(t){Tr(t.meta,t.instance,t.view)})}function Nr(t,e,r){var i=new um(t,r),o=t.declarationElement.isNull()?t.declarationElement:t.declarationElement.parent;return n(i,e,o),(t.viewType===go.EMBEDDED||t.viewType===go.HOST)&&(t.lastRenderNode=i.getOrCreateLastRenderNode()),i.nestedViewCount}function Ir(t,e){t.nodes.forEach(function(t){t instanceof Xy&&(t.finish(),t.hasEmbeddedView&&Ir(t.embeddedView,e))}),t.finish(),Br(t,e)}function Dr(t){for(var e=t.view;Lr(t.parent,e);)t=t.parent;return t}function jr(t){for(var e=t.view;Lr(t,e);)t=t.parent;return t}function Lr(t,e){return!t.isNull()&&t.sourceAst.name===om&&t.view===e}function Vr(t,e){var n={};Object.keys(t).forEach(function(e){n[e]=t[e]}),e.forEach(function(t){Object.keys(t.hostAttributes).forEach(function(e){var i=t.hostAttributes[e],o=n[e];n[e]=r(o)?Ur(e,o,i):i})});var i=[];return Object.keys(n).sort().forEach(function(t){i.push(t,n[t])}),i}function Fr(t){var e={};return t.forEach(function(t){e[t.name]=t.value}),e}function Ur(t,e,n){return t==rm||t==im?e+" "+n:n}function Br(t,e){var n=af;t.genConfig.genDebugInfo&&(n=Ge("nodeDebugInfos_"+b(t.component.type)+t.viewIndex),e.push(n.set(Ye(t.nodes.map(Hr),new Th(Xe(Yt(_p.StaticNodeDebugInfo)),[wh.Const]))).toDeclStmt(null,[cf.Final])));var r=Ge("renderType_"+b(t.component.type));if(0===t.viewIndex){var i=void 0;i=t.component.template.templateUrl==w(t.component.type)?w(t.component.type)+" class "+b(t.component.type)+" - inline template":t.component.template.templateUrl,e.push(r.set(Ke(Yt(_p.createRenderComponentType)).callFn([tn(t.genConfig.genDebugInfo?i:""),tn(t.component.template.ngContentSelectors.length),Ly.fromValue(t.component.template.encapsulation),t.styles,$e(t.animations.map(function(t){return[t.name,t.fnExp]}),null,!0)])).toDeclStmt(Xe(Yt(_p.RenderComponentType))))}var o=qr(t,r,n);e.push(o)}function Hr(t){var e=t instanceof Xy?t:null,n=[],i=af,o=[];return r(e)&&(n=e.getProviderTokens().map(function(t){return on(t)}),r(e.component)&&(i=on($t(e.component.type))),Object.keys(e.referenceTokens).forEach(function(t){var n=e.referenceTokens[t];o.push([t,r(n)?on(n):af])})),Ke(Yt(_p.StaticNodeDebugInfo)).instantiate([Ye(n,new Th(Ah,[wh.Const])),i,$e(o,new Ph(Ah,[wh.Const]))],Xe(Yt(_p.StaticNodeDebugInfo),null,[wh.Const]))}function qr(t,e,n){var r=[new Yh(Fy.viewUtils.name,Xe(Yt(_p.ViewUtils))),new Yh(Fy.parentView.name,Xe(Yt(_p.AppView),[Ah])),new Yh(Fy.parentIndex.name,Mh),new Yh(Fy.parentElement.name,Ah)],i=[Ge(t.className),e,jy.fromValue(t.viewType),Fy.viewUtils,Fy.parentView,Fy.parentIndex,Fy.parentElement,Vy.fromValue(Qr(t))];t.genConfig.genDebugInfo&&i.push(n),t.viewType===go.EMBEDDED&&(r.push(new Yh("declaredViewContainer",Xe(Yt(_p.ViewContainer)))),i.push(Ge("declaredViewContainer")));var o=[new vf("createInternal",[new Yh(am.name,Rh)],Wr(t),Xe(Yt(_p.ComponentRef),[Ah])),new vf("injectorGetInternal",[new Yh(By.token.name,Ah),new Yh(By.requestNodeIndex.name,Mh),new Yh(By.notFoundResult.name,Ah)],Kr(t.injectorGetMethod.finish(),By.notFoundResult),Ah),new vf("detectChangesInternal",[new Yh(Hy.throwOnChange.name,Oh)],Gr(t)),new vf("dirtyParentQueriesInternal",[],t.dirtyParentQueriesMethod.finish()),new vf("destroyInternal",[],zr(t)),new vf("detachInternal",[],t.detachMethod.finish()),Yr(t),$r(t),Jr(t)].filter(function(t){return t.body.length>0}),s=t.genConfig.genDebugInfo?_p.DebugAppView:_p.AppView,a=Pn({name:t.className,parent:Ke(Yt(s),[Xr(t)]),parentArgs:i,ctorParams:r,builders:[{methods:o},t]});return a}function zr(t){var e=[];return t.viewContainers.forEach(function(t){e.push(t.callMethod("destroyNestedViews",[]).toStmt())}),t.viewChildren.forEach(function(t){e.push(t.callMethod("destroy",[]).toStmt())}),e.push.apply(e,t.destroyMethod.finish()),e}function Wr(t){var e=af,n=[];t.viewType===go.COMPONENT&&(e=Uy.renderer.callMethod("createViewRoot",[of.prop("parentElement")]),n=[sm.set(e).toDeclStmt(Xe(t.genConfig.renderTypes.renderNode),[cf.Final])]);var r;if(t.viewType===go.HOST){var i=t.nodes[0];r=Ke(Yt(_p.ComponentRef_),[Ah]).instantiate([tn(i.nodeIndex),of,i.renderNode,i.getComponent()])}else r=af;var o=Uy.renderer.cast(Ah).prop("directRenderer").conditional(af,Ye(t.nodes.map(function(t){return t.renderNode})));return n.concat(t.createMethod.finish(),[of.callMethod("init",[t.lastRenderNode,o,t.disposables.length?Ye(t.disposables):af]).toStmt(),new df(r)])}function Gr(t){var e=[];if(t.animationBindingsMethod.isEmpty()&&t.detectChangesInInputsMethod.isEmpty()&&t.updateContentQueriesMethod.isEmpty()&&t.afterContentLifecycleCallbacksMethod.isEmpty()&&t.detectChangesRenderPropertiesMethod.isEmpty()&&t.updateViewQueriesMethod.isEmpty()&&t.afterViewLifecycleCallbacksMethod.isEmpty()&&0===t.viewContainers.length&&0===t.viewChildren.length)return e; +!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 p=n[s]={exports:{}};t[s][0].call(p.exports,function(e){var n=t[s][1][e];return i(n?n:e)},p,p.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},i=this&&this.__metadata||function(t,e){return"object"==typeof Reflect&&"function"==typeof Reflect.metadata?Reflect.metadata(t,e):void 0},o=t("@angular/core"),s=function(){function t(){}return t=r([o.Component({selector:"my-app",template:"<router-outlet></router-outlet>"}),i("design:paramtypes",[])],t)}();n.AppComponent=s},{"@angular/core":7}],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},i=this&&this.__metadata||function(t,e){return"object"==typeof Reflect&&"function"==typeof Reflect.metadata?Reflect.metadata(t,e):void 0},o=t("@angular/core"),s=t("@angular/platform-browser"),a=t("@angular/router"),u=t("@angular/http"),c=t("./app.component"),p=t("./signature-book.component"),l=function(){function t(){}return t=r([o.NgModule({imports:[s.BrowserModule,a.RouterModule.forRoot([{path:":basketId/signatureBook/:resId",component:p.SignatureBookComponent},{path:"**",redirectTo:"",pathMatch:"full"}],{useHash:!0}),u.HttpModule],declarations:[c.AppComponent,p.SignatureBookComponent,p.SafeUrlPipe],bootstrap:[c.AppComponent]}),i("design:paramtypes",[])],t)}();n.AppModule=l},{"./app.component":1,"./signature-book.component":3,"@angular/core":7,"@angular/http":8,"@angular/platform-browser":10,"@angular/router":11}],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},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=r([o.Pipe({name:"safeUrl"}),i("design:paramtypes",[a.DomSanitizer])],t)}();n.SafeUrlPipe=c;var p=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.showAttachmentEditionPanel=!1,this.loading=!1,this.loadingSign=!1,this.leftContentWidth="42%",this.rightContentWidth="42%",this.notesViewerLink="",this.visaViewerLink="",this.histViewerLink="",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.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&dir=indexing_searching&page=document_workflow_history&id="+t.resId+"&coll_id=letterbox_coll&load&size=full",t.leftContentWidth="42%",t.rightContentWidth="42%",t.signatureBook.documents[0]&&(t.leftViewerLink=t.signatureBook.documents[0].viewerLink),t.signatureBook.attachments[0]&&(t.rightViewerLink=t.signatureBook.attachments[0].viewerLink),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})},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(){},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));this.zone.run(e>=0?function(){return t.changeLocation(e,"action")}: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="47%",this.leftContentWidth="47%"):this.rightContentWidth="96%"):"RESLEFT"==t&&(this.showResLeftPanel=!this.showResLeftPanel,this.showResLeftPanel?(this.rightContentWidth="42%",this.leftContentWidth="42%"):(this.rightContentWidth="47%",this.leftContentWidth="47%"))},t.prototype.refreshAttachments=function(t){var e=this;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.prepareSignFile=function(t){this.loadingSign||(0==t.res_id?this.signatureBookSignFile(t.res_id_version,1):0==t.res_id_version&&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),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(){location.hash="",location.reload()},t.prototype.backToDetails=function(){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]))},t=r([o.Component({templateUrl:"js/angular/app/Views/signatureBook.html"}),i("design:paramtypes",[s.Http,u.ActivatedRoute,u.Router,o.NgZone])],t)}();n.SignatureBookComponent=p},{"@angular/core":7,"@angular/http":8,"@angular/platform-browser":10,"@angular/router":11,"rxjs/add/operator/map":22}],4:[function(t){"use strict";var e=t("@angular/platform-browser-dynamic"),n=t("@angular/core"),r=t("./app/app.module");n.enableProdMode(),e.platformBrowserDynamic().bootstrapModule(r.AppModule)},{"./app/app.module":2,"@angular/core":7,"@angular/platform-browser-dynamic":9}],5:[function(e,n,r){(function(i){!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){return t.name||typeof t}function r(t){return null!=t}function o(t){return null==t}function s(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(),n=e.indexOf("\n");return-1===n?e:e.substring(0,n)}function a(t){return null!==t&&("function"==typeof t||"object"==typeof t)}function u(){if(!L)if(R.Symbol&&Symbol.iterator)L=Symbol.iterator;else for(var t=Object.getOwnPropertyNames(Map.prototype),e=0;e<t.length;++e){var n=t[e];"entries"!==n&&"size"!==n&&Map.prototype[n]===Map.prototype.entries&&(L=n)}return L}function c(t,e){return t&&e.startsWith(t)?e.substring(t.length):e}function p(t){return t.replace(/\/index.html$/,"")}function l(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 h(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?G.One:G.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?G.One:G.Other;case"am":case"as":case"bn":case"fa":case"gu":case"hi":case"kn":case"mr":case"zu":return 0===i||1===n?G.One:G.Other;case"ar":return 0===n?G.Zero:1===n?G.One:2===n?G.Two:n%100===Math.floor(n%100)&&n%100>=3&&10>=n%100?G.Few:n%100===Math.floor(n%100)&&n%100>=11&&99>=n%100?G.Many:G.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?G.One:G.Other;case"be":return n%10===1&&n%100!==11?G.One:n%10===Math.floor(n%10)&&n%10>=2&&4>=n%10&&!(n%100>=12&&14>=n%100)?G.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?G.Many:G.Other;case"br":return n%10===1&&n%100!==11&&n%100!==71&&n%100!==91?G.One:n%10===2&&n%100!==12&&n%100!==72&&n%100!==92?G.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)?G.Few:0!==n&&n%1e6===0?G.Many:G.Other;case"bs":case"hr":case"sr":return 0===o&&i%10===1&&i%100!==11||s%10===1&&s%100!==11?G.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)?G.Few:G.Other;case"cs":case"sk":return 1===i&&0===o?G.One:i===Math.floor(i)&&i>=2&&4>=i&&0===o?G.Few:0!==o?G.Many:G.Other;case"cy":return 0===n?G.Zero:1===n?G.One:2===n?G.Two:3===n?G.Few:6===n?G.Many:G.Other;case"da":return 1===n||0!==a&&(0===i||1===i)?G.One:G.Other;case"dsb":case"hsb":return 0===o&&i%100===1||s%100===1?G.One:0===o&&i%100===2||s%100===2?G.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?G.Few:G.Other;case"ff":case"fr":case"hy":case"kab":return 0===i||1===i?G.One:G.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?G.One:G.Other;case"ga":return 1===n?G.One:2===n?G.Two:n===Math.floor(n)&&n>=3&&6>=n?G.Few:n===Math.floor(n)&&n>=7&&10>=n?G.Many:G.Other;case"gd":return 1===n||11===n?G.One:2===n||12===n?G.Two:n===Math.floor(n)&&(n>=3&&10>=n||n>=13&&19>=n)?G.Few:G.Other;case"gv":return 0===o&&i%10===1?G.One:0===o&&i%10===2?G.Two:0!==o||i%100!==0&&i%100!==20&&i%100!==40&&i%100!==60&&i%100!==80?0!==o?G.Many:G.Other:G.Few;case"he":return 1===i&&0===o?G.One:2===i&&0===o?G.Two:0!==o||n>=0&&10>=n||n%10!==0?G.Other:G.Many;case"is":return 0===a&&i%10===1&&i%100!==11||0!==a?G.One:G.Other;case"ksh":return 0===n?G.Zero:1===n?G.One:G.Other;case"kw":case"naq":case"se":case"smn":return 1===n?G.One:2===n?G.Two:G.Other;case"lag":return 0===n?G.Zero:0!==i&&1!==i||0===n?G.Other:G.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)?G.Few:0!==s?G.Many:G.Other:G.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?G.Zero:n%10===1&&n%100!==11||2===o&&s%10===1&&s%100!==11||2!==o&&s%10===1?G.One:G.Other;case"mk":return 0===o&&i%10===1||s%10===1?G.One:G.Other;case"mt":return 1===n?G.One:0===n||n%100===Math.floor(n%100)&&n%100>=2&&10>=n%100?G.Few:n%100===Math.floor(n%100)&&n%100>=11&&19>=n%100?G.Many:G.Other;case"pl":return 1===i&&0===o?G.One:0===o&&i%10===Math.floor(i%10)&&i%10>=2&&4>=i%10&&!(i%100>=12&&14>=i%100)?G.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?G.Many:G.Other;case"pt":return n===Math.floor(n)&&n>=0&&2>=n&&2!==n?G.One:G.Other;case"ro":return 1===i&&0===o?G.One:0!==o||0===n||1!==n&&n%100===Math.floor(n%100)&&n%100>=1&&19>=n%100?G.Few:G.Other;case"ru":case"uk":return 0===o&&i%10===1&&i%100!==11?G.One:0===o&&i%10===Math.floor(i%10)&&i%10>=2&&4>=i%10&&!(i%100>=12&&14>=i%100)?G.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?G.Many:G.Other;case"shi":return 0===i||1===n?G.One:n===Math.floor(n)&&n>=2&&10>=n?G.Few:G.Other;case"si":return 0===n||1===n||0===i&&1===s?G.One:G.Other;case"sl":return 0===o&&i%100===1?G.One:0===o&&i%100===2?G.Two:0===o&&i%100===Math.floor(i%100)&&i%100>=3&&4>=i%100||0!==o?G.Few:G.Other;case"tzm":return n===Math.floor(n)&&n>=0&&1>=n||n===Math.floor(n)&&n>=11&&99>=n?G.One:G.Other;default:return G.Other}}function f(t){return a(t)?Array.isArray(t)||!(t instanceof Map)&&u()in t:!1}function d(t){return function(e,n){var r=t(e,n);return 1==r.length?"0"+r:r}}function y(t){return function(e,n){return t(e,n).split(" ")[1]}}function m(t){return function(e,n){return t(e,n).split(" ")[0]}}function v(t,e,n){return new Intl.DateTimeFormat(e,n).format(t).replace(/[\u200e\u200f]/g,"")}function g(t){var e={hour:"2-digit",hour12:!1,timeZoneName:t};return function(t,n){var r=v(t,n,e);return r?r.substring(3):""}}function _(t,e){return t.hour12=e,t}function b(t,e){var n={};return n[t]=2===e?"2-digit":"numeric",n}function w(t,e){var n={};return n[t]=4>e?e>1?"short":"narrow":"long",n}function E(t){return(e=Object).assign.apply(e,[{}].concat(t));var e}function S(t){return function(e,n){return v(e,n,t)}}function C(t,e,n){var r=wt[t];if(r)return r(e,n);var i=t,o=St.get(i);if(!o){o=[];var s=void 0;for(bt.exec(t);t;)s=bt.exec(t),s?(o=o.concat(s.slice(1)),t=o.pop()):(o.push(t),t=null);St.set(i,o)}return o.reduce(function(t,r){var i=Et[r];return t+(i?i(e,n):x(r))},"")}function x(t){return"''"===t?"'":t.replace(/(^'|'$)/g,"").replace(/''/g,"'")}function T(t){return null==t||""===t}function P(t){return t instanceof Date&&!isNaN(t.valueOf())}function A(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=O(t[9]+t[10]),r=O(t[9]+t[11])),i.call(e,O(t[1]),O(t[2])-1,O(t[3]));var s=O(t[4]||"0")-n,a=O(t[5]||"0")-r,u=O(t[6]||"0"),c=Math.round(1e3*parseFloat("0."+(t[7]||0)));return o.call(e,s,a,u,c),e}function O(t){return parseInt(t,10)}function M(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&&j.isNumeric(n)?+n:n,"number"!=typeof n)throw new ht(t,n);var a,u,c;if(r!==gt.Currency&&(a=1,u=0,c=3),i){var p=i.match(kt);if(null===p)throw new Error(i+" is not a valid digit info for number pipes");null!=p[1]&&(a=j.parseIntAutoRadix(p[1])),null!=p[3]&&(u=j.parseIntAutoRadix(p[3])),null!=p[5]&&(c=j.parseIntAutoRadix(p[5]))}return _t.format(n,e,r,{minimumIntegerDigits:a,minimumFractionDigits:u,maximumFractionDigits:c,currency:o,currencyAsSymbol:s})}var R,k=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=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}(),I=new e.OpaqueToken("appBaseHref");R="undefined"==typeof window?"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope?self:i:window;var D=R;D.assert=function(){};var j=function(){function t(){}return t.parseIntAutoRadix=function(t){var e=parseInt(t);if(isNaN(e))throw new Error("Invalid integer literal when parsing "+t);return e},t.isNumeric=function(t){return!isNaN(t-parseFloat(t))},t}(),L=null,V=function(){function t(n){var r=this;this._subject=new e.EventEmitter,this._platformStrategy=n;var i=this._platformStrategy.getBaseHref();this._baseHref=t.stripTrailingSlash(p(i)),this._platformStrategy.onPopState(function(t){r._subject.emit({url:r.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(c(this._baseHref,p(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.decorators=[{type:e.Injectable}],t.ctorParameters=function(){return[{type:N}]},t}(),F=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=function(t){function n(e,n){t.call(this),this._platformLocation=e,this._baseHref="",r(n)&&(this._baseHref=n)}return F(n,t),n.prototype.onPopState=function(t){this._platformLocation.onPopState(t),this._platformLocation.onHashChange(t)},n.prototype.getBaseHref=function(){return this._baseHref},n.prototype.path=function(t){void 0===t&&(t=!1);var e=this._platformLocation.hash;return r(e)||(e="#"),e.length>0?e.substring(1):e},n.prototype.prepareExternalUrl=function(t){var e=V.joinWithSlash(this._baseHref,t);return e.length>0?"#"+e:e},n.prototype.pushState=function(t,e,n,r){var i=this.prepareExternalUrl(n+V.normalizeQueryParams(r));0==i.length&&(i=this._platformLocation.pathname),this._platformLocation.pushState(t,e,i)},n.prototype.replaceState=function(t,e,n,r){var i=this.prepareExternalUrl(n+V.normalizeQueryParams(r));0==i.length&&(i=this._platformLocation.pathname),this._platformLocation.replaceState(t,e,i)},n.prototype.forward=function(){this._platformLocation.forward()},n.prototype.back=function(){this._platformLocation.back()},n.decorators=[{type:e.Injectable}],n.ctorParameters=function(){return[{type:k},{type:void 0,decorators:[{type:e.Optional},{type:e.Inject,args:[I]}]}]},n}(N),B=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)},H=function(t){function n(e,n){if(t.call(this),this._platformLocation=e,o(n)&&(n=this._platformLocation.getBaseHrefFromDOM()),o(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.");this._baseHref=n}return B(n,t),n.prototype.onPopState=function(t){this._platformLocation.onPopState(t),this._platformLocation.onHashChange(t)},n.prototype.getBaseHref=function(){return this._baseHref},n.prototype.prepareExternalUrl=function(t){return V.joinWithSlash(this._baseHref,t)},n.prototype.path=function(t){void 0===t&&(t=!1);var e=this._platformLocation.pathname+V.normalizeQueryParams(this._platformLocation.search),n=this._platformLocation.hash;return n&&t?""+e+n:e},n.prototype.pushState=function(t,e,n,r){var i=this.prepareExternalUrl(n+V.normalizeQueryParams(r));this._platformLocation.pushState(t,e,i)},n.prototype.replaceState=function(t,e,n,r){var i=this.prepareExternalUrl(n+V.normalizeQueryParams(r));this._platformLocation.replaceState(t,e,i)},n.prototype.forward=function(){this._platformLocation.forward()},n.prototype.back=function(){this._platformLocation.back()},n.decorators=[{type:e.Injectable}],n.ctorParameters=function(){return[{type:k},{type:void 0,decorators:[{type:e.Optional},{type:e.Inject,args:[I]}]}]},n}(N),q=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)},z=function(){function t(){}return t.prototype.getPluralCategory=function(){},t}(),W=function(t){function n(e){t.call(this),this._locale=e}return q(n,t),n.prototype.getPluralCategory=function(t){var e=h(this._locale,t);switch(e){case G.Zero:return"zero";case G.One:return"one";case G.Two:return"two";case G.Few:return"few";case G.Many:return"many";default:return"other"}},n.decorators=[{type:e.Injectable}],n.ctorParameters=function(){return[{type:void 0,decorators:[{type:e.Inject,args:[e.LOCALE_ID]}]}]},n}(z),G={};G.Zero=0,G.One=1,G.Two=2,G.Few=3,G.Many=4,G.Other=5,G[G.Zero]="Zero",G[G.One]="One",G[G.Two]="Two",G[G.Few]="Few",G[G.Many]="Many",G[G.Other]="Other";var K=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&&(f(this._rawClass)?this._iterableDiffer=this._iterableDiffers.find(this._rawClass).create(null):this._keyValueDiffer=this._keyValueDiffers.find(this._rawClass).create(null))},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 t=this._keyValueDiffer.diff(this._rawClass);t&&this._applyKeyValueChanges(t)}},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 e=this;t.forEachAddedItem(function(t){if("string"!=typeof t.item)throw new Error("NgClass can only toggle CSS classes expressed as strings, got "+s(t.item));e._toggleClass(t.item,!0)}),t.forEachRemovedItem(function(t){return e._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.decorators=[{type:e.Directive,args:[{selector:"[ngClass]"}]}],t.ctorParameters=function(){return[{type:e.IterableDiffers},{type:e.KeyValueDiffers},{type:e.ElementRef},{type:e.Renderer}]},t.propDecorators={klass:[{type:e.Input,args:["class"]}],ngClass:[{type:e.Input}]},t}(),X=function(){function t(t,e,n){this.$implicit=t,this.index=e,this.count=n}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}(),Q=function(){function t(t,e,n,r){this._viewContainer=t,this._template=e,this._differs=n,this._cdr=r,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._cdr,this.ngForTrackBy)}catch(r){throw new Error("Cannot find a differ supporting object '"+e+"' of type '"+n(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 X(null,null,null),i),s=new Y(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 Y(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.decorators=[{type:e.Directive,args:[{selector:"[ngFor][ngForOf]"}]}],t.ctorParameters=function(){return[{type:e.ViewContainerRef},{type:e.TemplateRef},{type:e.IterableDiffers},{type:e.ChangeDetectorRef}]},t.propDecorators={ngForOf:[{type:e.Input}],ngForTrackBy:[{type:e.Input}],ngForTemplate:[{type:e.Input}]},t}(),Y=function(){function t(t,e){this.record=t,this.view=e}return t}(),$=function(){function t(t,e){this._viewContainer=t,this._template=e,this._hasView=!1}return Object.defineProperty(t.prototype,"ngIf",{set:function(t){t&&!this._hasView?(this._hasView=!0,this._viewContainer.createEmbeddedView(this._template)):!t&&this._hasView&&(this._hasView=!1,this._viewContainer.clear())},enumerable:!0,configurable:!0}),t.decorators=[{type:e.Directive,args:[{selector:"[ngIf]"}]}],t.ctorParameters=function(){return[{type:e.ViewContainerRef},{type:e.TemplateRef}]},t.propDecorators={ngIf:[{type:e.Input}]},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}(),J=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.decorators=[{type:e.Directive,args:[{selector:"[ngSwitch]"}]}],t.ctorParameters=function(){return[]},t.propDecorators={ngSwitch:[{type:e.Input}]},t}(),tt=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.decorators=[{type:e.Directive,args:[{selector:"[ngSwitchCase]"}]}],t.ctorParameters=function(){return[{type:e.ViewContainerRef},{type:e.TemplateRef},{type:J,decorators:[{type:e.Host}]}]},t.propDecorators={ngSwitchCase:[{type:e.Input}]},t}(),et=function(){function t(t,e,n){n._addDefault(new Z(t,e))}return t.decorators=[{type:e.Directive,args:[{selector:"[ngSwitchDefault]"}]}],t.ctorParameters=function(){return[{type:e.ViewContainerRef},{type:e.TemplateRef},{type:J,decorators:[{type:e.Host}]}]},t}(),nt=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=l(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.decorators=[{type:e.Directive,args:[{selector:"[ngPlural]"}]}],t.ctorParameters=function(){return[{type:z}]},t.propDecorators={ngPlural:[{type:e.Input}]},t}(),rt=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.decorators=[{type:e.Directive,args:[{selector:"[ngPluralCase]"}]}],t.ctorParameters=function(){return[{type:void 0,decorators:[{type:e.Attribute,args:["ngPluralCase"]}]},{type:e.TemplateRef},{type:e.ViewContainerRef},{type:nt,decorators:[{type:e.Host}]}]},t}(),it=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(null))},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=e&&i?""+e+i:e,this._renderer.setElementStyle(this._ngEl.nativeElement,r,e)},t.decorators=[{type:e.Directive,args:[{selector:"[ngStyle]"}]}],t.ctorParameters=function(){return[{type:e.KeyValueDiffers},{type:e.ElementRef},{type:e.Renderer}]},t.propDecorators={ngStyle:[{type:e.Input}]},t}(),ot=function(){function t(t){this._viewContainerRef=t}return Object.defineProperty(t.prototype,"ngOutletContext",{set:function(t){this._context=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"ngTemplateOutlet",{set:function(t){this._templateRef=t},enumerable:!0,configurable:!0}),t.prototype.ngOnChanges=function(){this._viewRef&&this._viewContainerRef.remove(this._viewContainerRef.indexOf(this._viewRef)),this._templateRef&&(this._viewRef=this._viewContainerRef.createEmbeddedView(this._templateRef,this._context))},t.decorators=[{type:e.Directive,args:[{selector:"[ngTemplateOutlet]"}]}],t.ctorParameters=function(){return[{type:e.ViewContainerRef}]},t.propDecorators={ngOutletContext:[{type:e.Input}],ngTemplateOutlet:[{type:e.Input}]},t}(),st=[K,Q,$,ot,it,J,tt,et,nt,rt],at=e.__core_private__.isPromise,ut=e.__core_private__.isObservable,ct=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)},pt=function(t){function e(e){t.call(this,e);var n=new Error(e);this._nativeError=n}return ct(e,t),Object.defineProperty(e.prototype,"message",{get:function(){return this._nativeError.message},set:function(t){this._nativeError.message=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"name",{get:function(){return this._nativeError.name},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"stack",{get:function(){return this._nativeError.stack},set:function(t){this._nativeError.stack=t},enumerable:!0,configurable:!0}),e.prototype.toString=function(){return this._nativeError.toString()},e}(Error),lt=(function(t){function e(e,n){t.call(this,e+" caused by: "+(n instanceof Error?n.message:n)),this.originalError=n}return ct(e,t),Object.defineProperty(e.prototype,"stack",{get:function(){return(this.originalError instanceof Error?this.originalError:this._nativeError).stack},enumerable:!0,configurable:!0}),e}(pt),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)}),ht=function(t){function e(e,n){t.call(this,"Invalid argument '"+n+"' for pipe '"+s(e)+"'")}return lt(e,t),e}(pt),ft=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}(),dt=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}(),yt=new dt,mt=new ft,vt=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(e){if(at(e))return yt;if(ut(e))return mt;throw new ht(t,e)},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.decorators=[{type:e.Pipe,args:[{name:"async",pure:!1}]}],t.ctorParameters=function(){return[{type:e.ChangeDetectorRef}]},t}(),gt={};gt.Decimal=0,gt.Percent=1,gt.Currency=2,gt[gt.Decimal]="Decimal",gt[gt.Percent]="Percent",gt[gt.Currency]="Currency";var _t=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,p=void 0===c?!1:c,l={minimumIntegerDigits:o,minimumFractionDigits:s,maximumFractionDigits:a,style:gt[n].toLowerCase()};return n==gt.Currency&&(l.currency=u,l.currencyDisplay=p?"symbol":"code"),new Intl.NumberFormat(e,l).format(t)},t}(),bt=/((?:[^yMLdHhmsazZEwGjJ']+)|(?:'(?:[^']|'')*')|(?:E+|y+|M+|L+|d+|H+|h+|J+|j+|m+|s+|a|z|Z|G+|w+))(.*)/,wt={yMMMdjms:S(E([b("year",1),w("month",3),b("day",1),b("hour",1),b("minute",1),b("second",1)])),yMdjm:S(E([b("year",1),b("month",1),b("day",1),b("hour",1),b("minute",1)])),yMMMMEEEEd:S(E([b("year",1),w("month",4),w("weekday",4),b("day",1)])),yMMMMd:S(E([b("year",1),w("month",4),b("day",1)])),yMMMd:S(E([b("year",1),w("month",3),b("day",1)])),yMd:S(E([b("year",1),b("month",1),b("day",1)])),jms:S(E([b("hour",1),b("second",1),b("minute",1)])),jm:S(E([b("hour",1),b("minute",1)]))},Et={yyyy:S(b("year",4)),yy:S(b("year",2)),y:S(b("year",1)),MMMM:S(w("month",4)),MMM:S(w("month",3)),MM:S(b("month",2)),M:S(b("month",1)),LLLL:S(w("month",4)),L:S(w("month",1)),dd:S(b("day",2)),d:S(b("day",1)),HH:d(m(S(_(b("hour",2),!1)))),H:m(S(_(b("hour",1),!1))),hh:d(m(S(_(b("hour",2),!0)))),h:m(S(_(b("hour",1),!0))),jj:S(b("hour",2)),j:S(b("hour",1)),mm:d(S(b("minute",2))),m:S(b("minute",1)),ss:d(S(b("second",2))),s:S(b("second",1)),sss:S(b("second",3)),EEEE:S(w("weekday",4)),EEE:S(w("weekday",3)),EE:S(w("weekday",2)),E:S(w("weekday",1)),a:y(S(_(b("hour",1),!0))),Z:g("short"),z:g("long"),ww:S({}),w:S({}),G:S(w("era",1)),GG:S(w("era",2)),GGG:S(w("era",3)),GGGG:S(w("era",4))},St=new Map,Ct=function(){function t(){}return t.format=function(t,e,n){return C(n,t,e)},t}(),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(T(e)||e!==e)return null;if("string"==typeof e&&(e=e.trim()),P(e))r=e;else if(j.isNumeric(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],a=i[2];r=new Date(o,s-1,a)}else r=new Date(e);if(!P(r)){var u=void 0;if("string"!=typeof e||!(u=e.match(xt)))throw new ht(t,e);r=A(u)}return Ct.format(r,this._locale,t._ALIASES[n]||n)},t._ALIASES={medium:"yMMMdjms","short":"yMdjm",fullDate:"yMMMMEEEEd",longDate:"yMMMMd",mediumDate:"yMMMd",shortDate:"yMd",mediumTime:"jms",shortTime:"jm"},t.decorators=[{type:e.Pipe,args:[{name:"date",pure:!0}]}],t.ctorParameters=function(){return[{type:void 0,decorators:[{type:e.Inject,args:[e.LOCALE_ID]}]}]},t}(),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 new ht(t,n);var r=l(e,Object.keys(n),this._localization);return n[r].replace(Pt,e.toString())},t.decorators=[{type:e.Pipe,args:[{name:"i18nPlural",pure:!0}]}],t.ctorParameters=function(){return[{type:z}]},t}(),Ot=function(){function t(){}return t.prototype.transform=function(e,n){if(null==e)return"";if("object"!=typeof n||"string"!=typeof e)throw new ht(t,n);return n.hasOwnProperty(e)?n[e]:n.hasOwnProperty("other")?n.other:""},t.decorators=[{type:e.Pipe,args:[{name:"i18nSelect",pure:!0}]}],t.ctorParameters=function(){return[]},t}(),Mt=function(){function t(){}return t.prototype.transform=function(t){return JSON.stringify(t,null,2)},t.decorators=[{type:e.Pipe,args:[{name:"json",pure:!1}]}],t.ctorParameters=function(){return[]},t}(),Rt=function(){function t(){}return t.prototype.transform=function(e){if(o(e))return e;if("string"!=typeof e)throw new ht(t,e);return e.toLowerCase()},t.decorators=[{type:e.Pipe,args:[{name:"lowercase"}]}],t.ctorParameters=function(){return[]},t}(),kt=/^(\d+)?\.((\d+)(-(\d+))?)?$/,Nt=function(){function t(t){this._locale=t}return t.prototype.transform=function(e,n){return void 0===n&&(n=null),M(t,this._locale,e,gt.Decimal,n)},t.decorators=[{type:e.Pipe,args:[{name:"number"}]}],t.ctorParameters=function(){return[{type:void 0,decorators:[{type:e.Inject,args:[e.LOCALE_ID]}]}]},t}(),It=function(){function t(t){this._locale=t}return t.prototype.transform=function(e,n){return void 0===n&&(n=null),M(t,this._locale,e,gt.Percent,n)},t.decorators=[{type:e.Pipe,args:[{name:"percent"}]}],t.ctorParameters=function(){return[{type:void 0,decorators:[{type:e.Inject,args:[e.LOCALE_ID]}]}]},t}(),Dt=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),M(t,this._locale,e,gt.Currency,i,n,r)},t.decorators=[{type:e.Pipe,args:[{name:"currency"}]}],t.ctorParameters=function(){return[{type:void 0,decorators:[{type:e.Inject,args:[e.LOCALE_ID]}]}]},t}(),jt=function(){function t(){}return t.prototype.transform=function(e,n,r){if(null==e)return e;if(!this.supports(e))throw new ht(t,e);return e.slice(n,r)},t.prototype.supports=function(t){return"string"==typeof t||Array.isArray(t)},t.decorators=[{type:e.Pipe,args:[{name:"slice",pure:!1}]}],t.ctorParameters=function(){return[]},t}(),Lt=function(){function t(){}return t.prototype.transform=function(e){if(o(e))return e;if("string"!=typeof e)throw new ht(t,e);return e.toUpperCase()},t.decorators=[{type:e.Pipe,args:[{name:"uppercase"}]}],t.ctorParameters=function(){return[]},t}(),Vt=[vt,Lt,Rt,Mt,jt,Nt,It,Dt,Tt,At,Ot],Ft=function(){function t(){}return t.decorators=[{type:e.NgModule,args:[{declarations:[st,Vt],exports:[st,Vt],providers:[{provide:z,useClass:W}]}]}],t.ctorParameters=function(){return[]},t}(),Ut=new e.Version("2.4.9");t.NgLocalization=z,t.CommonModule=Ft,t.NgClass=K,t.NgFor=Q,t.NgIf=$,t.NgPlural=nt,t.NgPluralCase=rt,t.NgStyle=it,t.NgSwitch=J,t.NgSwitchCase=tt,t.NgSwitchDefault=et,t.NgTemplateOutlet=ot,t.AsyncPipe=vt,t.DatePipe=Tt,t.I18nPluralPipe=At,t.I18nSelectPipe=Ot,t.JsonPipe=Mt,t.LowerCasePipe=Rt,t.CurrencyPipe=Dt,t.DecimalPipe=Nt,t.PercentPipe=It,t.SlicePipe=jt,t.UpperCasePipe=Lt,t.VERSION=Ut,t.Version=e.Version,t.PlatformLocation=k,t.LocationStrategy=N,t.APP_BASE_HREF=I,t.HashLocationStrategy=U,t.PathLocationStrategy=H,t.Location=V})}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"@angular/core":7}],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.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){return null!=t}function i(t){return null==t}function o(t){return"object"==typeof t&&null!==t&&Object.getPrototypeOf(t)===eo}function s(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(),n=e.indexOf("\n");return-1===n?e:e.substring(0,n)}function a(t){return null!==t&&("function"==typeof t||"object"==typeof t)}function u(t){return!a(t)}function c(t){return t.replace(/([.*+?^=!:${}()|[\]\/\\])/g,"\\$1")}function p(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 l(t){return null===t?null:p(t)[0]}function h(t,e){return t?":"+t+":"+e:e}function f(t){return Qo[t.toLowerCase()]||Yo}function d(t){return t.replace(ss,function(){for(var t=[],e=0;e<arguments.length;e++)t[e-0]=arguments[e];return t[1].toUpperCase()})}function y(t,e){return v(t,":",e)}function m(t,e){return v(t,".",e)}function v(t,e,n){var r=t.indexOf(e);return-1==r?n:[t.slice(0,r).trim(),t.slice(r+1).trim()]}function g(t,e,n){return Array.isArray(t)?e.visitArray(t,n):o(t)?e.visitStringMap(t,n):null==t||u(t)?e.visitPrimitive(t,n):e.visitOther(t,n)}function _(t){return t.replace(/\W/g,"_")}function b(t){if(!t||!t.reference)return null;var e=t.reference;if(e instanceof Ji)return e.name;if(e.__anonymousType)return e.__anonymousType;var n=s(e);return n.indexOf("(")>=0?(n="anonymous_"+Ss++,e.__anonymousType=n):n=_(n),n}function w(t){var e=t.reference;return e instanceof Ji?e.filePath:Po.importUri(e)}function E(t){return r(t.value)?_(t.value):b(t.identifier)}function S(t){return r(t.identifier)?t.identifier.reference:t.value}function C(t,n){var r=Zo.parse(n.selector)[0].getMatchingElementTemplate();return Ps.create({isHost:!0,type:{reference:t,diDeps:[],lifecycleHooks:[]},template:new Ts({encapsulation:e.ViewEncapsulation.None,template:r,templateUrl:"",styles:[],styleUrls:[],ngContentSelectors:[],animations:[]}),changeDetection:e.ChangeDetectionStrategy.Default,inputs:[],outputs:[],host:{},isComponent:!0,selector:"*",providers:[],viewProviders:[],queries:[],viewQueries:[]})}function x(t){return t||[]}function T(t){return t>=Ns&&Vs>=t||t==Ra}function P(t){return t>=sa&&aa>=t}function A(t){return t>=ga&&Pa>=t||t>=ua&&ha>=t}function O(t){return t>=ga&&ba>=t||t>=ua&&pa>=t||P(t)}function M(){return function(t){return t}}function R(t,n){if(e.isDevMode()&&!i(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 k(t,n){if(r(n)&&(!Array.isArray(n)||2!=n.length))throw new Error("Expected '"+t+"' to be an array, [start, end].");if(e.isDevMode()&&!i(n)){var o=n[0],s=n[1];Na.forEach(function(t){if(t.test(o)||t.test(s))throw new Error("['"+o+"', '"+s+"'] contains unusable interpolation symbol.")})}}function N(t,e){return new du(t,lu.Character,e,String.fromCharCode(e))}function I(t,e){return new du(t,lu.Identifier,0,e)}function D(t,e){return new du(t,lu.Keyword,0,e)}function j(t,e){return new du(t,lu.Operator,0,e)}function L(t,e){return new du(t,lu.String,0,e)}function V(t,e){return new du(t,lu.Number,e,"")}function F(t,e){return new du(t,lu.Error,0,e)}function U(t){return t>=ga&&Pa>=t||t>=ua&&ha>=t||t==va||t==Hs}function B(t){if(0==t.length)return!1;var e=new mu(t);if(!U(e.peek))return!1;for(e.advance();e.peek!==ks;){if(!H(e.peek))return!1;e.advance()}return!0}function H(t){return A(t)||P(t)||t==va||t==Hs}function q(t){return t==_a||t==ca}function z(t){return t==$s||t==Qs}function W(t){return t===Ws||t===Us||t===ka}function G(t){switch(t){case wa:return Is;case ba:return js;case Ea:return Ls;case Sa:return Ns;case xa:return Ds;default:return t}}function K(t){var e=c(t.start)+"([\\s\\S]*?)"+c(t.end);return new RegExp(e,"g")}function X(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 Q(t,e,n,r,i){return void 0===r&&(r=!1),void 0===i&&(i=Da),new Hu(new xu(t,e),n,r,i).tokenize()}function Y(t){var e=t===ks?"EOF":String.fromCharCode(t);return'Unexpected character "'+e+'"'}function $(t){return'Unknown entity "'+t+'" - use the "&#<decimal>;" or "&#x<hex>;" syntax'}function Z(t){return!T(t)||t===ks}function J(t){return T(t)||t===ia||t===Js||t===Ws||t===Us||t===ra}function tt(t){return(ga>t||t>Pa)&&(ua>t||t>ha)&&(sa>t||t>aa)}function et(t){return t==ea||t==ks||!O(t)}function nt(t){return t==ea||t==ks||!A(t)}function rt(t,e,n){var r=n?t.indexOf(n.start,e)==e:!1;return t.charCodeAt(e)==Aa&&!r}function it(t){return t===ra||A(t)}function ot(t,e){return st(t)==st(e)}function st(t){return t>=ga&&Pa>=t?t-ga+ua:t}function at(t){for(var e,n=[],r=0;r<t.length;r++){var i=t[r];e&&e.type==ju.TEXT&&i.type==ju.TEXT?(e.parts[0]+=i.parts[0],e.sourceSpan.end=i.sourceSpan.end):(e=i,n.push(e))}return n}function ut(t,e){return t.length>0&&t[t.length-1]===e}function ct(t){var e=new ic(rc,t);return function(t,n,r){return e.toI18nMessage(t,n,r)}}function pt(t){return t.split(oc)[1]}function lt(t,e,n,r){var i=new fc(n,r);return i.extract(t,e)}function ht(t,e,n,r,i){var o=new fc(r,i);return o.merge(t,e,n)}function ft(t){return t instanceof Iu&&t.value&&t.value.startsWith("i18n")}function dt(t){return t instanceof Iu&&t.value&&"/i18n"===t.value}function yt(t){return t.attrs.find(function(t){return t.name===uc})||null}function mt(t){if(!t)return["",""];var e=t.indexOf("|");return-1==e?["",t]:[t.slice(0,e),t.slice(e+1)]}function vt(){return yc}function gt(t){return wt(bt(t.nodes).join("")+("["+t.meaning+"]"))}function _t(t){var e=new wc,n=t.nodes.map(function(t){return t.visit(e,null)});return Ct(n.join(""),t.meaning)}function bt(t){return t.map(function(t){return t.visit(bc,null)})}function wt(t){var e=Pt(t),n=Dt(e,Ec.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],p=o[4];n[r>>5]|=128<<24-r%32,n[(r+64>>9<<4)+15]=r;for(var l=0;l<n.length;l+=16){for(var h=[s,a,u,c,p],f=h[0],d=h[1],y=h[2],m=h[3],v=h[4],g=0;80>g;g++){i[g]=16>g?n[l+g]:Nt(i[g-3]^i[g-8]^i[g-14]^i[g-16],1);var _=Et(g,a,u,c),b=_[0],w=_[1],E=[Nt(s,5),b,p,w,i[g]].reduce(Ot);S=[c,u,Nt(a,30),s,E],p=S[0],c=S[1],u=S[2],a=S[3],s=S[4]}C=[Ot(s,f),Ot(a,d),Ot(u,y),Ot(c,m),Ot(p,v)],s=C[0],a=C[1],u=C[2],c=C[3],p=C[4]}return Ut(Vt([s,a,u,c,p]));var S,C}function Et(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 St(t){var e=Pt(t),n=[xt(e,0),xt(e,102072)],r=n[0],i=n[1];return 0!=r||0!=i&&1!=i||(r=319790063^r,i=-1801410264^i),[r,i]}function Ct(t,e){var n=St(t),r=n[0],i=n[1];if(e){var o=St(e),s=o[0],a=o[1];u=Rt(It([r,i],1),[s,a]),r=u[0],i=u[1]}return Bt(Vt([2147483647&r,i]));var u}function xt(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=Ot(i,Lt(t,n,Ec.Little)),o=Ot(o,Lt(t,n+4,Ec.Little)),e=Ot(e,Lt(t,n+8,Ec.Little)),a=Tt([i,o,e]),i=a[0],o=a[1],e=a[2];return i=Ot(i,Lt(t,n,Ec.Little)),o=Ot(o,Lt(t,n+4,Ec.Little)),e=Ot(e,s),e=Ot(e,Lt(t,n+8,Ec.Little)<<8),Tt([i,o,e])[2];var a}function Tt(t){var e=t[0],n=t[1],r=t[2];return e=kt(e,n),e=kt(e,r),e^=r>>>13,n=kt(n,r),n=kt(n,e),n^=e<<8,r=kt(r,e),r=kt(r,n),r^=n>>>13,e=kt(e,n),e=kt(e,r),e^=r>>>12,n=kt(n,r),n=kt(n,e),n^=e<<16,r=kt(r,e),r=kt(r,n),r^=n>>>5,e=kt(e,n),e=kt(e,r),e^=r>>>3,n=kt(n,r),n=kt(n,e),n^=e<<10,r=kt(r,e),r=kt(r,n),r^=n>>>15,[e,n,r]}function Pt(t){for(var e="",n=0;n<t.length;n++){var r=At(t,n);127>=r?e+=String.fromCharCode(r):2047>=r?e+=String.fromCharCode(192|r>>>6,128|63&r):65535>=r?e+=String.fromCharCode(224|r>>>12,128|r>>>6&63,128|63&r):2097151>=r&&(e+=String.fromCharCode(240|r>>>18,128|r>>>12&63,128|r>>>6&63,128|63&r))}return e}function At(t,e){if(0>e||e>=t.length)throw new Error("index="+e+' is out of range in "'+t+'"');var n=t.charCodeAt(e);if(n>=55296&&57343>=n&&t.length>e+1){var r=jt(t,e+1);if(r>=56320&&57343>=r)return 1024*(n-55296)+r-56320+65536}return n}function Ot(t,e){return Mt(t,e)[1]}function Mt(t,e){var n=(65535&t)+(65535&e),r=(t>>>16)+(e>>>16)+(n>>>16);return[r>>>16,r<<16|65535&n]}function Rt(t,e){var n=t[0],r=t[1],i=e[0],o=e[1],s=Mt(r,o),a=s[0],u=s[1],c=Ot(Ot(n,i),a);return[c,u]}function kt(t,e){var n=(65535&t)-(65535&e),r=(t>>16)-(e>>16)+(n>>16);return r<<16|65535&n}function Nt(t,e){return t<<e|t>>>32-e}function It(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 Dt(t,e){for(var n=Array(t.length+3>>>2),r=0;r<n.length;r++)n[r]=Lt(t,4*r,e);return n}function jt(t,e){return e>=t.length?0:255&t.charCodeAt(e)}function Lt(t,e,n){var r=0;if(n===Ec.Big)for(var i=0;4>i;i++)r+=jt(t,e+i)<<24-8*i;else for(var i=0;4>i;i++)r+=jt(t,e+i)<<8*i;return r}function Vt(t){return t.reduce(function(t,e){return t+Ft(e)},"")}function Ft(t){for(var e="",n=0;4>n;n++)e+=String.fromCharCode(t>>>8*(3-n)&255);return e}function Ut(t){for(var e="",n=0;n<t.length;n++){var r=jt(t,n);e+=(r>>>4).toString(16)+(15&r).toString(16)}return e.toLowerCase()}function Bt(t){for(var e="",n="1",r=t.length-1;r>=0;r--)e=Ht(e,qt(jt(t,r),n)),n=qt(256,n);return e.split("").reverse().join("")}function Ht(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 qt(t,e){for(var n="",r=e;0!==t;t>>>=1)1&t&&(n=Ht(n,r)),r=Ht(r,r);return n}function zt(t){return t.map(function(t){return t.visit(Tc)}).join("")}function Wt(t){return kc.reduce(function(t,e){return t.replace(e[0],e[1])},t)}function Gt(t){switch(t.toLowerCase()){case"br":return"lb";case"img":return"image";default:return"x-"+t}}function Kt(t){return _t(t)}function Xt(t,e,n){return void 0===e&&(e=null),void 0===n&&(n="src"),null==e?"@angular/"+t+"/index":"@angular/"+t+"/"+n+"/"+e}function Qt(t){return Po.resolveIdentifier(t.name,t.moduleUrl,t.runtime)}function Yt(t){var e=Po.resolveIdentifier(t.name,t.moduleUrl,t.runtime);return{reference:e}}function $t(t){return{identifier:t}}function Zt(t){return $t(Yt(t))}function Jt(t,e){var n=Po.resolveEnum(Qt(t),e);return{reference:n}}function te(t){var e=new Cp;return new Ep(X(e,t),e.isExpanded,e.errors)}function ee(t,e){var n=t.cases.map(function(t){-1!=wp.indexOf(t.value)||t.value.match(/^=\d+$/)||e.push(new Sp(t.valueSourceSpan,'Plural cases should be "=<number>" or one of '+wp.join(", ")));var n=te(t.expression);return e.push.apply(e,n.errors),new Nu("template",[new ku("ngPluralCase",""+t.value,t.valueSourceSpan)],n.nodes,t.sourceSpan,t.sourceSpan,t.sourceSpan)}),r=new ku("[ngPlural]",t.switchValue,t.switchValueSourceSpan);return new Nu("ng-container",[r],n,t.sourceSpan,t.sourceSpan,t.sourceSpan)}function ne(t,e){var n=t.cases.map(function(t){var n=te(t.expression);return e.push.apply(e,n.errors),"other"===t.value?new Nu("template",[new ku("ngSwitchDefault","",t.valueSourceSpan)],n.nodes,t.sourceSpan,t.sourceSpan,t.sourceSpan):new Nu("template",[new ku("ngSwitchCase",""+t.value,t.valueSourceSpan)],n.nodes,t.sourceSpan,t.sourceSpan,t.sourceSpan)}),r=new ku("[ngSwitch]",t.switchValue,t.switchValueSourceSpan);return new Nu("ng-container",[r],n,t.sourceSpan,t.sourceSpan,t.sourceSpan)}function re(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 ie(t,e){var n=e.eager,r=e.providers;return new Qi(t.token,t.multiProvider,t.eager||n,r,t.providerType,t.lifecycleHooks,t.sourceSpan)}function oe(t,e,n){var r=new Map;t.forEach(function(t){var i={token:{identifier:t.type},useClass:t.type};se([i],t.isComponent?Yi.Component:Yi.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){se(t.providers,Yi.PublicService,!1,e,n,r),se(t.viewProviders,Yi.PrivateService,!1,e,n,r)}),r}function se(t,e,n,i,o,s){t.forEach(function(t){var a=s.get(S(t.token));if(r(a)&&!!a.multiProvider!=!!t.multi&&o.push(new Tp("Mixing multi and non multi provider is not possible for token "+E(a.token),i)),a)t.multi||(a.providers.length=0),a.providers.push(t);else{var u=t.token.identifier&&t.token.identifier.lifecycleHooks?t.token.identifier.lifecycleHooks:[];a=new Qi(t.token,t.multi,n||u.length>0,[t],e,u,i),s.set(S(t.token),a)}})}function ae(t){var e=new Map;return t.viewQueries&&t.viewQueries.forEach(function(t){return ce(e,t)}),e}function ue(t){var e=new Map;return t.forEach(function(t){t.queries&&t.queries.forEach(function(t){return ce(e,t)})}),e}function ce(t,e){e.selectors.forEach(function(n){var r=t.get(S(n));r||(r=[],t.set(S(n),r)),r.push(e)})}function pe(t){if(null==t||0===t.length||"/"==t[0])return!1;var e=t.match(Ip);return null===e||"package"==e[1]||"asset"==e[1]}function le(t,e,n){var r=[],i=n.replace(Np,"").replace(kp,function(){for(var n=[],i=0;i<arguments.length;i++)n[i-0]=arguments[i];var o=n[1]||n[2];return pe(o)?(r.push(t.resolve(e,o)),""):n[0]});return new Rp(i,r)}function he(t){return"@"==t[0]}function fe(t,n,r,i){var o=[];return Zo.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 de(t){var e=null,n=null,r=null,i=!1,o=null;t.attrs.forEach(function(t){var s=t.name.toLowerCase();s==Wp?e=t.value:s==Qp?n=t.value:s==Xp?r=t.value:t.name==Jp?i=!0:t.name==tl&&t.value.length>0&&(o=t.value)}),e=ye(e);var s=t.name.toLowerCase(),a=el.OTHER;return p(s)[1]==Gp?a=el.NG_CONTENT:s==$p?a=el.STYLE:s==Zp?a=el.SCRIPT:s==Kp&&r==Yp&&(a=el.STYLESHEET),new nl(a,e,n,i,o)}function ye(t){return null===t||0===t.length?"*":t}function me(t){return t.trim().split(/\s+/g)}function ve(t,e){var n=new Zo,r=p(t)[1];n.setElement(r);for(var i=0;i<e.length;i++){var o=e[i][0],s=p(o)[1],a=e[i][1];if(n.addAttribute(s,a),o.toLowerCase()==bl){var u=me(a);u.forEach(function(t){return n.addClassName(t)})}}return n}function ge(t){return t instanceof Ou&&0==t.value.trim().length}function _e(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 be(t,e,n){var r=xe(t.styles,{},e,n,!1),i=new ql(r),o=t.stateNameExpr.split(/\s*,\s*/);return o.map(function(t){return new Fl(t,i)})}function we(t,e,n,r){var i=new Ql,o=[],s=t.stateChangeExpr.split(/\s*,\s*/);s.forEach(function(t){o.push.apply(o,Se(t,r))});var a=Ce(t.steps),u=Te(a,e,n,r),c=Re(u,0,i,e,r);0==r.length&&ke(c,i,r);var p=c instanceof Wl?c:new Kl([c]);return new Bl(o,p)}function Ee(t,e){switch(t){case":enter":return"void => *";case":leave":return"* => void";default:return e.push(new nh('the transition alias value "'+t+'" is not supported')),"* => *"}}function Se(t,e){var n=[];":"==t[0]&&(t=Ee(t,e));var i=t.match(/^(\*|[-\w]+)\s*(<?[=-]>)\s*(\*|[-\w]+)$/);if(!r(i)||i.length<4)return e.push(new nh("the provided "+t+" is not of a supported format")),n;var o=i[1],s=i[2],a=i[3];n.push(new Ul(o,a));var u=o==Do&&a==Do;return"<"!=s[0]||u||n.push(new Ul(a,o)),n}function Ce(t){return Array.isArray(t)?new ws(t):t}function xe(t,e,n,r,i){var o=t.offset;(o>1||0>o)&&r.push(new nh("Offset values for animations must be between 0 and 1"));var s=[];return t.styles.forEach(function(t){if("string"==typeof t)i?s.push.apply(s,Oe(t,e,r)):r.push(new nh("State based animations cannot contain references to other states"));else{var o=t,a={};Object.keys(o).forEach(function(t){var e=n.normalizeAnimationStyleProperty(t),i=n.normalizeAnimationStyleValue(e,t,o[t]),s=i.error;s&&r.push(new nh(s)),a[e]=i.value}),s.push(a)}}),s}function Te(t,e,n,r){var i=Ae(t,e,n,r);return t instanceof Es?new Es(i):new ws(i)}function Pe(t,e){if("object"==typeof e&&null!==e&&t.length>0){var n=t.length-1,r=t[n];if("object"==typeof r&&null!==r)return void(t[n]=ro.merge(r,e))}t.push(e)}function Ae(t,e,n,i){var o;if(!(t instanceof bs))return[t];o=t.steps;var s,a=[];return o.forEach(function(t){if(t instanceof gs)r(s)||(s=[]),xe(t,e,n,i,!0).forEach(function(t){Pe(s,t)});else{if(r(s)&&(a.push(new gs(0,s)),s=null),t instanceof _s){var o=t.styles;o instanceof gs?o.styles=xe(o,e,n,i,!0):o instanceof vs&&o.steps.forEach(function(t){t.styles=xe(t,e,n,i,!0)})}else if(t instanceof bs){var u=Ae(t,e,n,i);t=t instanceof Es?new Es(u):new ws(u)}a.push(t)}}),r(s)&&a.push(new gs(0,s)),a}function Oe(t,e,n){var i=[];if(":"!=t[0])n.push(new nh('Animation states via styles must be prefixed with a ":"'));else{var o=t.substring(1),s=e[o];r(s)?s.styles.forEach(function(t){"object"==typeof t&&null!==t&&i.push(t)}):n.push(new nh('Unable to apply styles due to missing a state: "'+o+'"'))}return i}function Me(t,e,n,i,o){var s=t.steps.length,a=0;t.steps.forEach(function(t){return a+=r(t.offset)?1:0}),a>0&&s>a&&(o.push(new nh("Not all style() entries contain an offset for the provided keyframe()")),a=s);var u=s-1,c=0==a?1/u:0,p=[],l=0,h=!1,f=0;t.steps.forEach(function(t){var e=t.offset,n={};t.styles.forEach(function(t){Object.keys(t).forEach(function(e){"offset"!=e&&(n[e]=t[e])})}),r(e)?h=h||f>e:e=l==u?th:c*l,p.push([e,n]),f=e,l++}),h&&p.sort(function(t,e){return t[0]<=e[0]?-1:1});var d=p[0];d[0]!=Jl&&p.splice(0,0,d=[Jl,{}]);var y=d[1];u=p.length-1;var m=p[u];m[0]!=th&&(p.push(m=[th,{}]),u++);for(var v=m[1],g=1;u>=g;g++){var _=p[g],b=_[1];Object.keys(b).forEach(function(t){r(y[t])||(y[t]=Vo)})}for(var w=function(t){var e=p[t],n=e[1];Object.keys(n).forEach(function(t){r(v[t])||(v[t]=n[t])})},g=u-1;g>=0;g--)w(g);return p.map(function(t){return new zl(t[0],new ql([t[1]]))})}function Re(t,e,n,i,o){var s,a=0,u=e;if(t instanceof bs){var c,p=0,l=[],h=t instanceof Es;if(t.steps.forEach(function(t){var s=h?u:e;if(t instanceof gs)return t.styles.forEach(function(t){var e=t;Object.keys(e).forEach(function(t){n.insertAtTime(t,s,e[t])})}),void(c=t.styles);var f=Re(t,s,n,i,o);if(r(c)){if(t instanceof bs){var d=new ql(c);l.push(new Hl(d,[],0,0,""))}else{var y=f;(v=y.startingStyles.styles).push.apply(v,c)}c=null}var m=f.playTime;e+=m,a+=m,p=Math.max(m,p),l.push(f);var v}),r(c)){var f=new ql(c);l.push(new Hl(f,[],0,0,""))}h?(s=new Gl(l),a=p,e=u+a):s=new Kl(l)}else if(t instanceof _s){var d=Ne(t.timings,o),y=t.styles,m=void 0;if(y instanceof vs)m=Me(y,e,n,i,o);else{var v=y,g=th,_=new ql(v.styles),b=new zl(g,_);m=[b]}s=new Hl(new ql([]),m,d.duration,d.delay,d.easing),a=d.duration+d.delay,e+=a,m.forEach(function(t){return t.styles.styles.forEach(function(t){return Object.keys(t).forEach(function(r){n.insertAtTime(r,e,t[r])})})})}else s=new Hl(null,[],0,0,"");return s.playTime=a,s.startTime=u,s}function ke(t,e,n){if(t instanceof Hl&&t.keyframes.length>0){var r=t.keyframes;if(1==r.length){var i=r[0],o=Ie(i,t.startTime,t.playTime,e,n);t.keyframes=[o,i]}}else t instanceof Wl&&t.steps.forEach(function(t){return ke(t,e,n)})}function Ne(t,e){var n,o=/^([\.\d]+)(m?s)(?:\s+([\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?/i,s=0,a=null;if("string"==typeof t){var u=t.match(o);if(null===u)return e.push(new nh('The provided timing value "'+t+'" is invalid.')),new oh(0,0,null);var c=parseFloat(u[1]),p=u[2];"s"==p&&(c*=eh),n=Math.floor(c);var l=u[3],h=u[4];if(r(l)){var f=parseFloat(l);r(h)&&"s"==h&&(f*=eh),s=Math.floor(f)}var d=u[5];i(d)||(a=d)}else n=t;return new oh(n,s,a)}function Ie(t,e,n,i,o){var s={},a=e+n;return t.styles.styles.forEach(function(t){Object.keys(t).forEach(function(n){var u=t[n];if("offset"!=n){var c,p,l,h=i.indexOfAtOrBeforeTime(n,e);r(h)?(c=i.getByIndex(n,h),l=c.value,p=i.getByIndex(n,h+1)):l=Vo,r(p)&&!p.matches(a,u)&&o.push(new nh('The animated CSS property "'+n+'" unexpectedly changes between steps "'+c.time+'ms" and "'+a+'ms" at "'+p.time+'ms"')),s[n]=l}})}),new zl(Jl,new ql([s]))}function De(){return new ph}function je(){return new ph(".")}function Le(t){var e=Fe(t);return e&&e[hh.Scheme]||""}function Ve(t,e,n,i,o,s,a){var u=[];return r(t)&&u.push(t+":"),r(n)&&(u.push("//"),r(e)&&u.push(e+"@"),u.push(n),r(i)&&u.push(":"+i)),r(o)&&u.push(o),r(s)&&u.push("?"+s),r(a)&&u.push("#"+a),u.join("")}function Fe(t){return t.match(lh)}function Ue(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 Be(t){var e=t[hh.Path];return e=i(e)?"":Ue(e),t[hh.Path]=e,Ve(t[hh.Scheme],t[hh.UserInfo],t[hh.Domain],t[hh.Port],e,t[hh.QueryData],t[hh.Fragment])}function He(t,e){var n=Fe(encodeURI(e)),o=Fe(t);if(r(n[hh.Scheme]))return Be(n);n[hh.Scheme]=o[hh.Scheme];for(var s=hh.Scheme;s<=hh.Port;s++)i(n[s])&&(n[s]=o[s]);if("/"==n[hh.Path][0])return Be(n);var a=o[hh.Path];i(a)&&(a="/");var u=a.lastIndexOf("/");return a=a.substring(0,u+1)+n[hh.Path],n[hh.Path]=a,Be(n)}function qe(t){return t instanceof e.Directive}function ze(t,e,n){var r=new xf(t,e);return n.visitExpression(r,null)}function We(t){var e=new Tf;return e.visitAllStatements(t,null),e.varNames}function Ge(t,e){return void 0===e&&(e=null),new Lh(t,e)}function Ke(t,e){return void 0===e&&(e=null),new Gh(t,null,e)}function Xe(t,e,n){return void 0===e&&(e=null),void 0===n&&(n=null),r(t)?Qe(Ke(t),e,n):null}function Qe(t,e,n){return void 0===e&&(e=null),void 0===n&&(n=null),r(t)?new xh(t,e,n):null}function Ye(t,e){return void 0===e&&(e=null),new ef(t,e)}function $e(t,e,n){return void 0===e&&(e=null),void 0===n&&(n=!1),new rf(t.map(function(t){return new nf(t[0],t[1],n)}),e)}function Ze(t){return new Xh(t)}function Je(t,e,n){return void 0===n&&(n=null),new $h(t,e,n)}function tn(t,e){return void 0===e&&(e=null),new Wh(t,e)}function en(t){var e=""+t.fields.length,n=rn(e);return t.fields.push(new mf(n.name,null,[cf.Private])),t.ctorStmts.push(of.prop(n.name).set(Ke(Yt(_p.UNINITIALIZED))).toStmt()),new Pf(n,e)}function nn(t,e,n,r){var i=Ke(Yt(_p.checkBinding)).callFn([n,e,t.currValExpr]);return t.forceUpdate&&(i=t.forceUpdate.or(i)),t.stmts.concat([new bf(i,r.concat([of.prop(e.name).set(t.currValExpr).toStmt()]))])}function rn(t){return of.prop("_expr_"+t)}function on(t){return r(t.value)?tn(t.value):Ke(t.identifier)}function sn(t){if(0===t.length)return Ke(Yt(_p.EMPTY_INLINE_ARRAY));var e=Math.log(t.length)/Math.log(2),n=Math.ceil(e),r=n<_p.inlineArrays.length?_p.inlineArrays[n]:_p.InlineArrayDynamic,i=Yt(r);return Ke(i).instantiate([tn(t.length)].concat(t))}function an(t,e,n,r){r.fields.push(new mf(n.name,null));var i=e<_p.pureProxies.length?_p.pureProxies[e]:null;if(!i)throw new Error("Unsupported number of argument for pure functions: "+e);r.ctorStmts.push(of.prop(n.name).set(Ke(Yt(i)).callFn([t])).toStmt())}function un(t,e){var n=Object.keys(t.runtime).find(function(n){return t.runtime[n]===e});if(!n)throw new Error("Unknown enum value "+e+" in "+t.name);return Ke(Jt(t,n))}function cn(t,e,n,r,i){var o=wn(i),s=[];e||(e=new If);var a=new Nf(t,e,n,Af,i,!1),u=r.visit(a,kf.Expression);if(!u)return null;if(a.temporaryCount)for(var c=0;c<a.temporaryCount;c++)s.push(fn(i,c));if(a.needsValueUnwrapper){var p=Af.callMethod("reset",[]).toStmt();s.push(p)}return s.push(o.set(u).toDeclStmt(null,[cf.Final])),a.needsValueUnwrapper?new Mf(s,o,Af.prop("hasWrappedValue")):new Mf(s,o,null)}function pn(t,e,n,r,i){e||(e=new If);var o=new Nf(t,e,n,null,i,!0),s=[];gn(r.visit(o,kf.Statement),s),dn(o.temporaryCount,i,s);var a=s.length-1,u=null;if(a>=0){var c=s[a],p=Sn(c);p&&(u=En(i),s[a]=u.set(p.cast(Ah).notIdentical(tn(!1))).toDeclStmt(null,[cf.Final]))}return new Rf(s,u)}function ln(t){var e=[],n=We(t);return n.has(Af.name)&&e.push(Af.set(Ke(Yt(_p.ValueUnwrapper)).instantiate([])).toDeclStmt(null,[cf.Final])),e}function hn(t,e){return"tmp_"+t+"_"+e}function fn(t,e){return new lf(hn(t,e),af)}function dn(t,e,n){for(var r=t-1;r>=0;r--)n.unshift(fn(e,r))}function yn(t,e){if(t!==kf.Statement)throw new Error("Expected a statement, but saw "+e)}function mn(t,e){if(t!==kf.Expression)throw new Error("Expected an expression, but saw "+e)}function vn(t,e){return t===kf.Statement?e.toStmt():e}function gn(t,e){Array.isArray(t)?t.forEach(function(t){return gn(t,e)}):e.push(t)}function _n(t,e){if(0===e.length)return Ke(Yt(_p.EMPTY_ARRAY));for(var n=of.prop("_arr_"+t.fields.length),r=[],i=[],o=0;o<e.length;o++){var s="p"+o;r.push(new Yh(s)),i.push(Ge(s))}return an(Je(r,[new df(Ye(i))],new Th(Ah)),e.length,n,t),n.callFn(e)}function bn(t,e){if(0===e.length)return Ke(Yt(_p.EMPTY_MAP));for(var n=of.prop("_map_"+t.fields.length),r=[],i=[],o=[],s=0;s<e.length;s++){var a="p"+s;r.push(new Yh(a)),i.push([e[s][0],Ge(a)]),o.push(e[s][1])}return an(Je(r,[new df($e(i))],new Ph(Ah)),e.length,n,t),n.callFn(o)}function wn(t){return Ge("currVal_"+t)}function En(t){return Ge("pd_"+t)}function Sn(t){return t instanceof ff?t.expr:t instanceof df?t.value:null}function Cn(t,e,n,i,o,s){var a=[],u=t.prop("renderer");switch(i=xn(t,e,i,s),e.type){case Zi.Property:o&&a.push(Ke(Yt(_p.setBindingDebugInfo)).callFn([u,n,tn(e.name),i]).toStmt()),a.push(u.callMethod("setElementProperty",[n,tn(e.name),i]).toStmt());break;case Zi.Attribute:i=i.isBlank().conditional(af,i.callMethod("toString",[])),a.push(u.callMethod("setElementAttribute",[n,tn(e.name),i]).toStmt());break;case Zi.Class:a.push(u.callMethod("setElementClass",[n,tn(e.name),i]).toStmt());break;case Zi.Style:var c=i.callMethod("toString",[]);r(e.unit)&&(c=c.plus(tn(e.unit))),i=i.isBlank().conditional(af,c),a.push(u.callMethod("setElementStyle",[n,tn(e.name),i]).toStmt());break;case Zi.Animation:throw new Error("Illegal state: Should not come here!")}return a}function xn(t,n,r,i){if(n.securityContext===e.SecurityContext.NONE)return r;if(n.needsRuntimeSecurityContext||(i=un(_p.SecurityContext,n.securityContext)),!i)throw new Error("internal error, no SecurityContext given "+n.name);var o=t.prop("viewUtils").prop("sanitizer"),s=[i,r];return o.callMethod("sanitize",s)}function Tn(t,e,n,r,i,o,s,a){var u=[],c=[],p=n.name,l=e.prop("componentType").prop("animations").key(tn(p)),h=tn(Lo),f=Ke(Yt(_p.UNINITIALIZED)),d=Ge("animationTransition_"+p);c.push(d.set(l.callFn([t,o,a.equals(f).conditional(h,a),s.equals(f).conditional(h,s)])).toDeclStmt()),u.push(d.set(l.callFn([t,o,a,h])).toDeclStmt());var y=[],m=r.find(function(t){return t.isAnimation&&t.name==p&&"start"==t.phase});m&&y.push(d.callMethod("onStart",[i.callMethod(Bh.Bind,[t,tn(Hi.calcFullName(p,null,"start"))])]).toStmt());var v=r.find(function(t){return t.isAnimation&&t.name==p&&"done"==t.phase});return v&&y.push(d.callMethod("onDone",[i.callMethod(Bh.Bind,[t,tn(Hi.calcFullName(p,null,"done"))])]).toStmt()),c.push.apply(c,y),u.push.apply(u,y),{updateStmts:c,detachStmts:u}}function Pn(t){var e=t.parentArgs||[],n=t.parent?[sf.callFn(e).toStmt()]:[],r=An(Array.isArray(t.builders)?t.builders:[t.builders]),i=new vf(null,t.ctorParams||[],n.concat(r.ctorStmts));return new _f(t.name,t.parent,r.fields,r.getters,i,r.methods,t.modifiers||[])}function An(t){return{fields:(e=[]).concat.apply(e,t.map(function(t){return t.fields||[]})),methods:(n=[]).concat.apply(n,t.map(function(t){return t.methods||[]})),getters:(r=[]).concat.apply(r,t.map(function(t){return t.getters||[]})),ctorStmts:(i=[]).concat.apply(i,t.map(function(t){return t.ctorStmts||[]}))};var e,n,r,i}function On(t){var e=Ge("changed"),n=[e.set(of.prop(Uf)).toDeclStmt(),of.prop(Uf).set(tn(!1)).toStmt()],r=[];if(t.genChanges){var i=[];t.ngOnChanges&&i.push(of.prop(Vf).callMethod("ngOnChanges",[of.prop(Ff)]).toStmt()),t.compilerConfig.logBindingUpdate&&i.push(Ke(Yt(_p.setBindingDebugInfoForChanges)).callFn([Wf.prop("renderer"),Kf,of.prop(Ff)]).toStmt()),i.push(Qf),r.push(new bf(e,i))}t.ngOnInit&&r.push(new bf(Wf.prop("numberOfChecks").identical(new Wh(0)),[of.prop(Vf).callMethod("ngOnInit",[]).toStmt()])),t.ngDoCheck&&r.push(of.prop(Vf).callMethod("ngDoCheck",[]).toStmt()),r.length>0&&n.push(new bf(Ze(qf),r)),n.push(new df(e)),t.methods.push(new vf("ngDoCheck",[new Yh(Wf.name,Xe(Yt(_p.AppView),[Ah])),new Yh(Kf.name,Ah),new Yh(qf.name,Oh)],n,Oh))}function Mn(t,e){var n=en(e),r=[of.prop(Uf).set(tn(!0)).toStmt(),of.prop(Vf).prop(t).set(Hf).toStmt()];e.genChanges&&r.push(of.prop(Ff).key(tn(t)).set(Ke(Yt(_p.SimpleChange)).instantiate([n.expression,Hf])).toStmt());var i=nn({currValExpr:Hf,forceUpdate:zf,stmts:[]},n.expression,qf,r);e.methods.push(new vf("check_"+t,[new Yh(Hf.name,Ah),new Yh(qf.name,Oh),new Yh(zf.name,Oh)],i))}function Rn(t,e,n){var r=[],i=[new Yh(Wf.name,Xe(Yt(_p.AppView),[Ah])),new Yh(Gf.name,Xe(Yt(_p.AppView),[Ah])),new Yh(Kf.name,Ah),new Yh(qf.name,Oh)];t.forEach(function(t){var o=en(n),s=cn(n,null,of.prop(Vf),t.value,o.bindingId);if(s){var a;t.needsRuntimeSecurityContext&&(a=Ge("secCtx_"+i.length),i.push(new Yh(a.name,Xe(Yt(_p.SecurityContext)))));var u;if(t.isAnimation){var c=Tn(Wf,Gf,t,e,of.prop(Bf).or(Ke(Yt(_p.noop))),Kf,s.currValExpr,o.expression),p=c.updateStmts,l=c.detachStmts;u=p,(h=n.detachStmts).push.apply(h,l)}else u=Cn(Wf,t,Kf,s.currValExpr,n.compilerConfig.logBindingUpdate,a);r.push.apply(r,nn(s,o.expression,qf,u));var h}}),n.methods.push(new vf("checkHost",i,r))}function kn(t,e){var n=Ge("result"),r=[n.set(tn(!0)).toDeclStmt(Oh)];t.forEach(function(t,i){var o=pn(e,null,of.prop(Vf),t.handler,"sub_"+i),s=o.stmts;o.preventDefault&&s.push(n.set(o.preventDefault.and(n)).toStmt()),r.push(new bf(Xf.equals(tn(t.fullName)),s))}),r.push(new df(n)),e.methods.push(new vf("handleEvent",[new Yh(Xf.name,Rh),new Yh(Of.event.name,Ah)],r,Oh))}function Nn(t,e){var n=[new Yh(Wf.name,Xe(Yt(_p.AppView),[Ah])),new Yh(Bf,Ah)],r=[of.prop(Bf).set(Ge(Bf)).toStmt()];Object.keys(t.outputs).forEach(function(i,o){var s=t.outputs[i],a="emit"+o;n.push(new Yh(a,Oh));var u="subscription"+o;e.fields.push(new mf(u,Ah)),r.push(new bf(Ge(a),[of.prop(u).set(of.prop(Vf).prop(i).callMethod(Bh.SubscribeObservable,[Ge(Bf).callMethod(Bh.Bind,[Wf,tn(s)])])).toStmt()])),e.destroyStmts.push(of.prop(u).and(of.prop(u).callMethod("unsubscribe",[])).toStmt())}),e.methods.push(new vf("subscribe",n,r))}function In(t,e,n){var r=[],i=new qp(e,Da,n,[],r),o=w(t.type),s=o?"in Directive "+b(t.type)+" in "+o:"in Directive "+b(t.type),a=new xu("",s),u=new Tu(new Cu(a,null,null,null),new Cu(a,null,null,null)),c=i.createDirectiveHostPropertyAsts(t.toSummary(),u),p=i.createDirectiveHostEventAsts(t.toSummary(),u);return new Zf(c,p,r)}function Dn(t){var e=t.filter(function(t){return t.level===Pu.WARNING}),n=t.filter(function(t){return t.level===Pu.FATAL});if(e.length>0&&this._console.warn("Directive parse warnings:\n"+e.join("\n")),n.length>0)throw new Error("Directive parse errors:\n"+n.join("\n"))}function jn(t,e){return Po.hasLifecycleHook(e,Ln(t))}function Ln(t){switch(t){case ao.OnInit:return"ngOnInit";case ao.OnDestroy:return"ngOnDestroy";case ao.DoCheck:return"ngDoCheck";case ao.OnChanges:return"ngOnChanges";case ao.AfterContentInit:return"ngAfterContentInit";case ao.AfterContentChecked:return"ngAfterContentChecked";case ao.AfterViewInit:return"ngAfterViewInit";case ao.AfterViewChecked:return"ngAfterViewChecked"}}function Vn(t){return t instanceof e.NgModule}function Fn(t){return t instanceof e.Pipe}function Un(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)?Un(i,n):n.push(i)}return n}function Bn(t){return t?Array.from(new Set(t)):[]}function Hn(t){return Bn(Un(t))}function qn(t){return t instanceof Ji||t instanceof e.Type}function zn(t,e,n){if(e instanceof Ji)return e.filePath;var r=n.moduleId;if("string"==typeof r){var i=Le(r);return i?r:"package:"+r+os}if(null!==r&&void 0!==r)throw new cs('moduleId should be a string in "'+Gn(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 Wn(t,e){g(t,new dd,e)}function Gn(t){return t instanceof Ji?t.name+" in "+t.filePath:s(t)}function Kn(t,e){return void 0===e&&(e=null),g(t,new md,e)}function Xn(t,e,n){if(void 0===n&&(n=!0),i(t))return null;var r=t.replace(xd,function(){for(var t=[],n=0;n<arguments.length;n++)t[n-0]=arguments[n];return"$"==t[0]?e?"\\$":"$":"\n"==t[0]?"\\n":"\r"==t[0]?"\\r":"\\"+t[0]}),o=n||!Td.test(r);return o?"'"+r+"'":r}function Qn(t){for(var e="",n=0;t>n;n++)e+=" ";return e}function Yn(t){var e=new Dd(Nd),n=Md.createRoot([]),r=Array.isArray(t)?t:[t];return r.forEach(function(t){if(t instanceof pf)t.visitStatement(e,n);else if(t instanceof Dh)t.visitExpression(e,n);else{if(!(t instanceof Eh))throw new Error("Don't know how to print debug info for "+t);t.visitType(e,n)}}),n.toSource()}function $n(t,e){for(var n=0,r=e;n<r.length;n++){var i=r[n];jd[i.toLowerCase()]=t}}function Zn(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 Jn(t){return t.replace(ly,"")}function tr(t){var e=t.match(hy);return e?e[0]:""}function er(t,e){var n=nr(t),r=0;return n.escapedString.replace(fy,function(){for(var t=[],i=0;i<arguments.length;i++)t[i-0]=arguments[i];var o=t[2],s="",a=t[4],u="";a&&a.startsWith("{"+vy)&&(s=n.blocks[r++],a=a.substring(vy.length+1),u="{");var c=e(new gy(o,s));return""+t[1]+c.selector+t[3]+u+c.content+a})}function nr(t){for(var e=t.split(dy),n=[],r=[],i=0,o=[],s=0;s<e.length;s++){var a=e[s];a==my&&i--,i>0?o.push(a):(o.length>0&&(r.push(o.join("")),n.push(vy),o=[]),n.push(a)),a==yy&&i++}return o.length>0&&(r.push(o.join("")),n.push(vy)),new _y(n.join(""),r)}function rr(t){var e="styles";return t&&(e+="_"+b(t.type)),e}function ir(t,e,n){if(e===n)return t;for(var r=of,i=e;i!==n&&i.declarationElement.view;)i=i.declarationElement.view,r=r.prop("parentView");if(i!==n)throw new Error("Internal error: Could not calculate a property in a parent view: "+t);return t.visitExpression(new Ny(r,n),null)}function or(t,e,n){var r;r=t.viewType===go.HOST?of:of.prop("parentView");var i=[on(e),of.prop("parentIndex")];return n&&i.push(af),r.callMethod("injectorGet",i)}function sr(t,e){return"View_"+b(t.type)+e}function ar(t){return"handleEvent_"+t}function ur(t){return io.flatten(t.values.map(function(t){return t instanceof Iy?cr(t.view.declarationElement.viewContainer,t.view,ur(t)):t}))}function cr(t,e,n){var r=n.map(function(t){return ze(of.name,Ge("nestedView"),t)});return t.callMethod("mapNestedViews",[Ge(e.className),Je([new Yh("nestedView",e.classType)],[new df(Ye(r))],Ah)])}function pr(t,e){e.fields.push(new mf(t,Xe(Yt(_p.QueryList),[Ah])));var n=of.prop(t);return e.createMethod.addStmt(of.prop(t).set(Ke(Yt(_p.QueryList),[Ah]).instantiate([])).toStmt()),n}function lr(t,e){e.meta.selectors.forEach(function(n){var r=t.get(S(n));r||(r=[],t.set(S(n),r)),r.push(e)})}function hr(t,e,n,r){var i;return i=e>0?tn(t).lowerEquals(By.requestNodeIndex).and(By.requestNodeIndex.lowerEquals(tn(t+e))):tn(t).identical(By.requestNodeIndex),new bf(By.token.identical(on(n.token)).and(i),[new df(r)])}function fr(t,e,n,r,i){var o,s,a=i.view;if(n?(o=Ye(e),s=new Th(Ah)):(o=e[0],s=e[0].type),s||(s=Ah),r)a.fields.push(new mf(t,s)),a.createMethod.addStmt(of.prop(t).set(o).toStmt());else{var u="_"+t;a.fields.push(new mf(u,s));var c=new Ry(a);c.resetDebugInfo(i.nodeIndex,i.sourceAst),c.addStmt(new bf(of.prop(u).isBlank(),[of.prop(u).set(o).toStmt()])),c.addStmt(new df(of.prop(u))),a.getters.push(new gf(t,c.finish(),s))}return of.prop(t)}function dr(t,e){for(var n=null,r=t.pipeMetas.length-1;r>=0;r--){var i=t.pipeMetas[r];if(i.name==e){n=i;break}}if(!n)throw new Error("Illegal state: Could not find pipe "+e+" although the parser should have detected this error!");return n}function yr(t,e){return e>0?go.EMBEDDED:t.isHost?go.HOST:go.COMPONENT}function mr(t,e,n,r){var i=vr(t,e);return i.size?(r&&gr(i,n),_r(i,e,n),br(t,e,n),!0):!1}function vr(t,e){var n=new Map;return t.forEach(function(t){n.set(t.fullName,t)}),e.forEach(function(t){t.hostEvents.forEach(function(t){n.set(t.fullName,t)})}),n}function gr(t,e){var n=[];if(t.forEach(function(t){t.phase||n.push(tn(t.name),tn(t.target))}),n.length){var r=Ge("disposable_"+e.view.disposables.length);e.view.disposables.push(r),e.view.createMethod.addStmt(r.set(Ke(Yt(_p.subscribeToRenderElement)).callFn([of,e.renderNode,sn(n),wr(e)])).toDeclStmt(kh,[cf.Private]))}}function _r(t,e,n){var r=Array.from(t.keys());e.forEach(function(t){var e=n.directiveWrapperInstance.get(t.directive.type.reference);n.view.createMethod.addStmts(Jf.subscribe(t.directive,t.hostProperties,r,e,of,wr(n)))})}function br(t,e,n){var r=e.some(function(t){return t.hostEvents.some(function(){return t.directive.isComponent})}),i=r?n.compViewExpr:of,o=new Ry(n.view);o.resetDebugInfo(n.nodeIndex,n.sourceAst),o.push(i.callMethod("markPathToRootAsCheckOnce",[]).toStmt());var s=Ge("eventName"),a=Ge("result");o.push(a.set(tn(!0)).toDeclStmt(Oh)),e.forEach(function(t){var e=n.directiveWrapperInstance.get(t.directive.type.reference);t.hostEvents.length>0&&o.push(a.set(Jf.handleEvent(t.hostEvents,e,s,Of.event).and(a)).toStmt())}),t.forEach(function(t,e){var r=pn(n.view,n.view,n.view.componentContext,t.handler,"sub_"+e),i=r.stmts;r.preventDefault&&i.push(a.set(r.preventDefault.and(a)).toStmt()),o.push(new bf(s.equals(tn(t.fullName)),i))}),o.push(new df(a)),n.view.methods.push(new vf(ar(n.nodeIndex),[new Yh(s.name,Rh),new Yh(Of.event.name,Ah)],o.finish(),Oh))}function wr(t){var e=ar(t.nodeIndex);return of.callMethod("eventHandler",[of.prop(e)])}function Er(t,e,n){var r=n.view,i=t.type.lifecycleHooks,o=r.afterContentLifecycleCallbacksMethod;o.resetDebugInfo(n.nodeIndex,n.sourceAst),-1!==i.indexOf(ao.AfterContentInit)&&o.addStmt(new bf(Jy,[e.callMethod("ngAfterContentInit",[]).toStmt()])),-1!==i.indexOf(ao.AfterContentChecked)&&o.addStmt(e.callMethod("ngAfterContentChecked",[]).toStmt())}function Sr(t,e,n){var r=n.view,i=t.type.lifecycleHooks,o=r.afterViewLifecycleCallbacksMethod;o.resetDebugInfo(n.nodeIndex,n.sourceAst),-1!==i.indexOf(ao.AfterViewInit)&&o.addStmt(new bf(Jy,[e.callMethod("ngAfterViewInit",[]).toStmt()])),-1!==i.indexOf(ao.AfterViewChecked)&&o.addStmt(e.callMethod("ngAfterViewChecked",[]).toStmt())}function Cr(t,e,n){n.view.destroyMethod.addStmts(Jf.ngOnDestroy(t.directive,e)),n.view.detachMethod.addStmts(Jf.ngOnDetach(t.hostProperties,e,of,n.compViewExpr||of,n.renderNode))}function xr(t,e,n){var r=n.view.destroyMethod;r.resetDebugInfo(n.nodeIndex,n.sourceAst),t.providerType!==Yi.Directive&&t.providerType!==Yi.Component&&-1!==t.lifecycleHooks.indexOf(ao.OnDestroy)&&r.addStmt(e.callMethod("ngOnDestroy",[]).toStmt())}function Tr(t,e,n){var r=n.destroyMethod;-1!==t.type.lifecycleHooks.indexOf(ao.OnDestroy)&&r.addStmt(e.callMethod("ngOnDestroy",[]).toStmt())}function Pr(t,e,n){var r=en(n),i=cn(n,n,n.componentContext,t.value,r.bindingId);return i?(n.detectChangesRenderPropertiesMethod.resetDebugInfo(e.nodeIndex,t),void n.detectChangesRenderPropertiesMethod.addStmts(nn(i,r.expression,Hy.throwOnChange,[of.prop("renderer").callMethod("setText",[e.renderNode,i.currValExpr]).toStmt()]))):null}function Ar(t,e,n,r){var i=r.view,o=r.renderNode;t.forEach(function(t){var s=en(i);i.detectChangesRenderPropertiesMethod.resetDebugInfo(r.nodeIndex,t);var a=cn(i,i,r.view.componentContext,t.value,s.bindingId);if(a){var u=[],c=i.detectChangesRenderPropertiesMethod;switch(t.type){case Zi.Property:case Zi.Attribute:case Zi.Class:case Zi.Style:u.push.apply(u,Cn(of,t,o,a.currValExpr,i.genConfig.logBindingUpdate));break;case Zi.Animation:c=i.animationBindingsMethod;var p=Tn(of,of,t,e,(n?of.prop(ar(r.nodeIndex)):Ke(Yt(_p.noop))).callMethod(Bh.Bind,[of]),r.renderNode,a.currValExpr,s.expression),l=p.updateStmts,h=p.detachStmts;u.push.apply(u,l),i.detachMethod.addStmts(h)}c.addStmts(nn(a,s.expression,Hy.throwOnChange,u))}})}function Or(t,e,n,r,i){var o=t.hostProperties.filter(function(t){return t.needsRuntimeSecurityContext}).map(function(t){var e;switch(t.type){case Zi.Property:e=i.securityContext(r,t.name,!1);break;case Zi.Attribute:e=i.securityContext(r,t.name,!0);break;default:throw new Error("Illegal state: Only property / attribute bindings can have an unknown security context! Binding "+t.name)}return un(_p.SecurityContext,e)});n.view.detectChangesRenderPropertiesMethod.addStmts(Jf.checkHost(t.hostProperties,e,of,n.compViewExpr||of,n.renderNode,Hy.throwOnChange,o))}function Mr(t,e,n,r){var i=r.view,o=i.detectChangesInInputsMethod;o.resetDebugInfo(r.nodeIndex,r.sourceAst),t.inputs.forEach(function(t,s){var a=r.nodeIndex+"_"+n+"_"+s;o.resetDebugInfo(r.nodeIndex,t);var u=cn(i,i,i.componentContext,t.value,a);u&&(o.addStmts(u.stmts),o.addStmt(e.callMethod("check_"+t.directiveName,[u.currValExpr,Hy.throwOnChange,u.forceUpdate||tn(!1)]).toStmt()))});var s=t.directive.isComponent&&!oo(t.directive.changeDetection),a=Jf.ngDoCheck(e,of,r.renderNode,Hy.throwOnChange),u=s?new bf(a,[r.compViewExpr.callMethod("markAsCheckOnce",[]).toStmt()]):a.toStmt();o.addStmt(u)}function Rr(t){var e=[];t.getProviderTokens().forEach(function(n){var r=t.getQueriesFor(n);e.push.apply(e,r.map(function(t){return new tm(t,n)}))}),Object.keys(t.referenceTokens).forEach(function(n){var r={value:n};e.push.apply(e,t.getQueriesFor(r).map(function(t){return new tm(t,r)}))}),e.forEach(function(e){var n;if(e.read.identifier)n=t.instances.get(S(e.read));else{var r=t.referenceTokens[e.read.value];n=r?t.instances.get(S(r)):t.elementRef}n&&e.query.addValue(n,t.view)})}function kr(t,e,r){var i=new em(t,r);n(i,e),t.pipes.forEach(function(t){Tr(t.meta,t.instance,t.view)})}function Nr(t,e,r){var i=new um(t,r),o=t.declarationElement.isNull()?t.declarationElement:t.declarationElement.parent;return n(i,e,o),(t.viewType===go.EMBEDDED||t.viewType===go.HOST)&&(t.lastRenderNode=i.getOrCreateLastRenderNode()),i.nestedViewCount}function Ir(t,e){t.nodes.forEach(function(t){t instanceof Xy&&(t.finish(),t.hasEmbeddedView&&Ir(t.embeddedView,e))}),t.finish(),Br(t,e)}function Dr(t){for(var e=t.view;Lr(t.parent,e);)t=t.parent;return t}function jr(t){for(var e=t.view;Lr(t,e);)t=t.parent;return t}function Lr(t,e){return!t.isNull()&&t.sourceAst.name===om&&t.view===e}function Vr(t,e){var n={};Object.keys(t).forEach(function(e){n[e]=t[e]}),e.forEach(function(t){Object.keys(t.hostAttributes).forEach(function(e){var i=t.hostAttributes[e],o=n[e];n[e]=r(o)?Ur(e,o,i):i})});var i=[];return Object.keys(n).sort().forEach(function(t){i.push(t,n[t])}),i}function Fr(t){var e={};return t.forEach(function(t){e[t.name]=t.value}),e}function Ur(t,e,n){return t==rm||t==im?e+" "+n:n}function Br(t,e){var n=af;t.genConfig.genDebugInfo&&(n=Ge("nodeDebugInfos_"+b(t.component.type)+t.viewIndex),e.push(n.set(Ye(t.nodes.map(Hr),new Th(Xe(Yt(_p.StaticNodeDebugInfo)),[wh.Const]))).toDeclStmt(null,[cf.Final])));var r=Ge("renderType_"+b(t.component.type));if(0===t.viewIndex){var i=void 0;i=t.component.template.templateUrl==w(t.component.type)?w(t.component.type)+" class "+b(t.component.type)+" - inline template":t.component.template.templateUrl,e.push(r.set(Ke(Yt(_p.createRenderComponentType)).callFn([tn(t.genConfig.genDebugInfo?i:""),tn(t.component.template.ngContentSelectors.length),Ly.fromValue(t.component.template.encapsulation),t.styles,$e(t.animations.map(function(t){return[t.name,t.fnExp]}),null,!0)])).toDeclStmt(Xe(Yt(_p.RenderComponentType))))}var o=qr(t,r,n);e.push(o)}function Hr(t){var e=t instanceof Xy?t:null,n=[],i=af,o=[];return r(e)&&(n=e.getProviderTokens().map(function(t){return on(t)}),r(e.component)&&(i=on($t(e.component.type))),Object.keys(e.referenceTokens).forEach(function(t){var n=e.referenceTokens[t];o.push([t,r(n)?on(n):af])})),Ke(Yt(_p.StaticNodeDebugInfo)).instantiate([Ye(n,new Th(Ah,[wh.Const])),i,$e(o,new Ph(Ah,[wh.Const]))],Xe(Yt(_p.StaticNodeDebugInfo),null,[wh.Const]))}function qr(t,e,n){var r=[new Yh(Fy.viewUtils.name,Xe(Yt(_p.ViewUtils))),new Yh(Fy.parentView.name,Xe(Yt(_p.AppView),[Ah])),new Yh(Fy.parentIndex.name,Mh),new Yh(Fy.parentElement.name,Ah)],i=[Ge(t.className),e,jy.fromValue(t.viewType),Fy.viewUtils,Fy.parentView,Fy.parentIndex,Fy.parentElement,Vy.fromValue(Qr(t))];t.genConfig.genDebugInfo&&i.push(n),t.viewType===go.EMBEDDED&&(r.push(new Yh("declaredViewContainer",Xe(Yt(_p.ViewContainer)))),i.push(Ge("declaredViewContainer")));var o=[new vf("createInternal",[new Yh(am.name,Rh)],Wr(t),Xe(Yt(_p.ComponentRef),[Ah])),new vf("injectorGetInternal",[new Yh(By.token.name,Ah),new Yh(By.requestNodeIndex.name,Mh),new Yh(By.notFoundResult.name,Ah)],Kr(t.injectorGetMethod.finish(),By.notFoundResult),Ah),new vf("detectChangesInternal",[new Yh(Hy.throwOnChange.name,Oh)],Gr(t)),new vf("dirtyParentQueriesInternal",[],t.dirtyParentQueriesMethod.finish()),new vf("destroyInternal",[],zr(t)),new vf("detachInternal",[],t.detachMethod.finish()),Yr(t),$r(t),Jr(t)].filter(function(t){return t.body.length>0}),s=t.genConfig.genDebugInfo?_p.DebugAppView:_p.AppView,a=Pn({name:t.className,parent:Ke(Yt(s),[Xr(t)]),parentArgs:i,ctorParams:r,builders:[{methods:o},t]});return a}function zr(t){var e=[];return t.viewContainers.forEach(function(t){e.push(t.callMethod("destroyNestedViews",[]).toStmt())}),t.viewChildren.forEach(function(t){e.push(t.callMethod("destroy",[]).toStmt())}),e.push.apply(e,t.destroyMethod.finish()),e}function Wr(t){var e=af,n=[];t.viewType===go.COMPONENT&&(e=Uy.renderer.callMethod("createViewRoot",[of.prop("parentElement")]),n=[sm.set(e).toDeclStmt(Xe(t.genConfig.renderTypes.renderNode),[cf.Final])]);var r;if(t.viewType===go.HOST){var i=t.nodes[0];r=Ke(Yt(_p.ComponentRef_),[Ah]).instantiate([tn(i.nodeIndex),of,i.renderNode,i.getComponent()])}else r=af;var o=Uy.renderer.cast(Ah).prop("directRenderer").conditional(af,Ye(t.nodes.map(function(t){return t.renderNode})));return n.concat(t.createMethod.finish(),[of.callMethod("init",[t.lastRenderNode,o,t.disposables.length?Ye(t.disposables):af]).toStmt(),new df(r)])}function Gr(t){var e=[];if(t.animationBindingsMethod.isEmpty()&&t.detectChangesInInputsMethod.isEmpty()&&t.updateContentQueriesMethod.isEmpty()&&t.afterContentLifecycleCallbacksMethod.isEmpty()&&t.detectChangesRenderPropertiesMethod.isEmpty()&&t.updateViewQueriesMethod.isEmpty()&&t.afterViewLifecycleCallbacksMethod.isEmpty()&&0===t.viewContainers.length&&0===t.viewChildren.length)return e; e.push.apply(e,t.animationBindingsMethod.finish()),e.push.apply(e,t.detectChangesInInputsMethod.finish()),t.viewContainers.forEach(function(t){e.push(t.callMethod("detectChangesInNestedViews",[Hy.throwOnChange]).toStmt())});var n=t.updateContentQueriesMethod.finish().concat(t.afterContentLifecycleCallbacksMethod.finish());n.length>0&&e.push(new bf(Ze(Hy.throwOnChange),n)),e.push.apply(e,t.detectChangesRenderPropertiesMethod.finish()),t.viewChildren.forEach(function(t){e.push(t.callMethod("internalDetectChanges",[Hy.throwOnChange]).toStmt())});var r=t.updateViewQueriesMethod.finish().concat(t.afterViewLifecycleCallbacksMethod.finish());r.length>0&&e.push(new bf(Ze(Hy.throwOnChange),r));var i=[],o=We(e);return o.has(Hy.changed.name)&&i.push(Hy.changed.set(tn(!0)).toDeclStmt(Oh)),o.has(Hy.changes.name)&&i.push(Hy.changes.set(af).toDeclStmt(new Ph(Xe(Yt(_p.SimpleChange))))),i.push.apply(i,ln(e)),i.concat(e)}function Kr(t,e){return t.length>0?t.concat([new df(e)]):t}function Xr(t){return t.viewType===go.COMPONENT?Xe(t.component.type):Ah}function Qr(t){var e;return e=t.viewType===go.COMPONENT?oo(t.component.changeDetection)?so.CheckAlways:so.CheckOnce:so.CheckAlways}function Yr(t){var e=Ge("cb"),n=Ge("ctx"),r=Zr(t.rootNodes,e,n);return new vf("visitRootNodesInternal",[new Yh(e.name,Ah),new Yh(n.name,Ah)],r)}function $r(t){var e=Ge("nodeIndex"),n=Ge("ngContentIndex"),r=Ge("cb"),i=Ge("ctx"),o=[];return t.nodes.forEach(function(t){t instanceof Xy&&t.component&&t.contentNodesByNgContentIndex.forEach(function(s,a){o.push(new bf(e.equals(tn(t.nodeIndex)).and(n.equals(tn(a))),Zr(s,r,i)))})}),new vf("visitProjectableNodesInternal",[new Yh(e.name,Mh),new Yh(n.name,Mh),new Yh(r.name,Ah),new Yh(i.name,Ah)],o)}function Zr(t,e,n){var r=[];return t.forEach(function(t){switch(t.type){case Yy.Node:r.push(e.callFn([t.expr,n]).toStmt());break;case Yy.ViewContainer:r.push(e.callFn([t.expr.prop("nativeElement"),n]).toStmt()),r.push(t.expr.callMethod("visitNestedViewRootNodes",[e,n]).toStmt());break;case Yy.NgContent:r.push(of.callMethod("visitProjectedNodes",[tn(t.ngContentIndex),e,n]).toStmt())}}),r}function Jr(t){var e=Ge("nodeIndex"),n=[];return t.nodes.forEach(function(t){t instanceof Xy&&t.embeddedView&&n.push(new bf(e.equals(tn(t.nodeIndex)),[new df(t.embeddedView.classExpr.instantiate([Uy.viewUtils,of,tn(t.nodeIndex),t.renderNode,t.viewContainer]))]))}),n.length>0&&n.push(new df(af)),new vf("createEmbeddedViewInternal",[new Yh(e.name,Mh)],n,Xe(Yt(_p.AppView),[Ah]))}function ti(t,e){var n=tn(Lo);switch(e){case Lo:return t.equals(n);case Do:return tn(!0);default:return t.equals(tn(e))}}function ei(t){if(t instanceof Hl&&t.duration>0&&2==t.keyframes.length){var e=ni(t.keyframes[0])[0],n=ni(t.keyframes[1])[0];return 0===Object.keys(e).length&&0===Object.keys(n).length}return!1}function ni(t){return t.styles.styles}function ri(t,e,n,r,i){var o=new jm(t);r.forEach(function(t){return o.addOrMergeSummary({symbol:t.symbol,metadata:t.metadata})});for(var s=0;s<o.symbols.length;s++){var a=o.symbols[s];if(!t.isSourceFile(a.filePath)){var u=e.resolveSummary(a);if(!u){var c=n.resolveSymbol(a);c&&(u={symbol:c.symbol,metadata:c.metadata})}u&&o.addOrMergeSummary(u)}}return i.forEach(function(n){if(o.addOrMergeSummary({symbol:n.type.reference,metadata:{__symbolic:"class"},type:n}),n.summaryKind===Cs.NgModule){var r=n;r.exportedDirectives.concat(r.exportedPipes).forEach(function(n){var r=n.reference;t.isSourceFile(r.filePath)||o.addOrMergeSummary(e.resolveSummary(r))})}}),o.serialize()}function ii(t,e){var n=new Lm(t);return n.deserialize(e)}function oi(t){var e=t.replace(Dm,"");return e+".ngsummary.json"}function si(t,e){return e.dependencies.forEach(function(e){if(e instanceof qy){var n=e;n.placeholder.reference=t.getStaticSymbol(ui(w(n.comp)),e.name)}else if(e instanceof zy){var r=e;r.placeholder.reference=t.getStaticSymbol(ui(w(r.comp)),ci(r.comp))}else if(e instanceof Wy){var i=e;i.placeholder.reference=t.getStaticSymbol(ui(w(i.dir)),i.name)}}),e.statements}function ai(t,e,n){return e.dependencies.forEach(function(e){e.valuePlaceholder.reference=t.getStaticSymbol(pi(e.moduleUrl,e.isShimmed,n),e.name)}),e.statements}function ui(t){var e=hi(t);return e[0]+".ngfactory"+e[1]}function ci(t){return b(t)+"NgFactory"}function pi(t,e,n){return""+t+(e?".shim":"")+".ngstyle"+n}function li(t){if(!t.isComponent)throw new Error("Could not compile '"+b(t.type)+"' because it is not a component.")}function hi(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 fi(t,e,n){var r=vi(t,e,n),i=r.ngModules,o=r.symbolsMissingModule;return yi(t,i,o,n)}function di(t,e,n){var r=fi(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+"!"});throw new Error(i.join("\n"))}return r}function yi(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,p=new Set;t.forEach(function(t){var e=t.filePath;p.add(e),r.isInjectable(t)&&c.set(e,(c.get(e)||[]).concat(t))}),e.forEach(function(t){var e=t.type.reference.filePath;p.add(e),s.set(e,(s.get(e)||[]).concat(t.type.reference)),t.declaredDirectives.forEach(function(e){var n=e.reference.filePath;p.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;p.add(n),u.set(n,(u.get(n)||[]).concat(e.reference)),o.set(e.reference,t)})});var l=[];return p.forEach(function(t){var e=a.get(t)||[],n=u.get(t)||[],r=s.get(t)||[],i=c.get(t)||[];l.push({srcUrl:t,directives:e,pipes:n,ngModules:r,injectables:i})}),{ngModuleByPipeOrDirective:o,files:l,ngModules:e,symbolsMissingModule:n}}function mi(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 vi(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 gi(t){return"object"==typeof t&&t.name&&t.filePath}function _i(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 bi(t){return"Error encountered resolving symbol values statically. "+_i(t)}function wi(t,e){if(!t)return{};var n={};return Object.keys(t).forEach(function(r){var i=e(t[r],r);Si(i)||(Hm.test(r)?Object.defineProperty(n,r,{enumerable:!1,configurable:!0,value:i}):n[r]=i)}),n}function Ei(t){return null===t||"function"!=typeof t&&"object"!=typeof t}function Si(t){return t&&"ignore"==t.__symbolic}function Ci(t,e,n,r){var i=new Error(t);return i.fileName=e,i.line=n,i.column=r,i}function xi(t,n){var r=n.translations||"",i=je(),o=new to,s=new Ym(t,o),a=new Qm(t,o,s),u=new qm(a);Fm.install(u);var c=new dp(new lp,r,n.i18nFormat),p=new kl({genDebugInfo:n.debug===!0,defaultEncapsulation:e.ViewEncapsulation.Emulated,logBindingUpdate:!1,useJit:!1}),l=new yh({get:function(e){return t.loadResource(e)}},i,c,p),h=new wu(new fu),f=new Gd,d=new To,y=new xl(h,f,c,d,[]),m=new fd(new nd(u),new _h(u),new od(u),s,f,l,u),v=new Vm(t,m,y,new Ay(i),new hm(p,f),new Yf(p,h,f,d),new wd,new Id(t),s,n.locale,n.i18nFormat,new ih(f),a);return{compiler:v,reflector:u}}function Ti(t,e){var n=t.concat([new df(Ge(e))]),i=new $m(null,null,null,new Map),o=new Jm,s=o.visitAllStatements(n,i);return r(s)?s.value:null}function Pi(t,e,n,i,o){for(var s=i.createChildWihtLocalVars(),a=0;a<t.length;a++)s.vars.set(t[a],e[a]);var u=o.visitAllStatements(n,s);return r(u)?u.value:null}function Ai(t,e,n){var r={};t.getters.forEach(function(i){r[i.name]={configurable:!1,get:function(){var r=new $m(e,this,t.name,e.vars);return Pi([],[],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-0]=arguments[s];var a=new $m(e,this,t.name,e.vars);return Pi(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-0]=arguments[s];var a=new $m(e,this,t.name,e.vars);t.fields.forEach(function(t){r[t.name]=void 0}),Pi(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 Oi(t,e,n,r){return function(){for(var i=[],o=0;o<arguments.length;o++)i[o-0]=arguments[o];return Pi(t,i,e,n,r)}}function Mi(t,e,n,r){var i=n+"\nreturn "+e+"\n//# sourceURL="+t,o=[],s=[];for(var a in r)o.push(a),s.push(r[a]);return(new(Function.bind.apply(Function,[void 0].concat(o.concat(i))))).apply(void 0,s)}function Ri(t,e,n){var r=new ov,i=Md.createRoot([n]);return r.visitAllStatements(e,i),Mi(t,n,i.toSource(),r.getArgs())}function ki(t){if(!t.isComponent)throw new Error("Could not compile '"+b(t.type)+"' because it is not a component.")}function Ni(){Po.reflectionCapabilities=new Oo}function Ii(t){return{useDebug:Di(t.map(function(t){return t.useDebug})),useJit:Di(t.map(function(t){return t.useJit})),defaultEncapsulation:Di(t.map(function(t){return t.defaultEncapsulation})),providers:ji(t.map(function(t){return t.providers}))}}function Di(t){for(var e=t.length-1;e>=0;e--)if(void 0!==t[e])return t[e];return void 0}function ji(t){var e=[];return t.forEach(function(t){return t&&e.push.apply(e,t)}),e}var Li=new e.Version("2.4.9"),Vi=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}(),Fi=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}(),Ui=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}(),Bi=function(){function t(t,e,n,r,i,o,s){this.name=t,this.type=e,this.securityContext=n,this.needsRuntimeSecurityContext=r,this.value=i,this.unit=o,this.sourceSpan=s}return t.prototype.visit=function(t,e){return t.visitElementProperty(this,e)},Object.defineProperty(t.prototype,"isAnimation",{get:function(){return this.type===Zi.Animation},enumerable:!0,configurable:!0}),t}(),Hi=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}(),qi=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}(),zi=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}(),Wi=function(){function t(t,e,n,r,i,o,s,a,u,c,p,l){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.children=u,this.ngContentIndex=c,this.sourceSpan=p,this.endSourceSpan=l}return t.prototype.visit=function(t,e){return t.visitElement(this,e)},t}(),Gi=function(){function t(t,e,n,r,i,o,s,a,u,c){this.attrs=t,this.outputs=e,this.references=n,this.variables=r,this.directives=i,this.providers=o,this.hasViewContainer=s,this.children=a,this.ngContentIndex=u,this.sourceSpan=c}return t.prototype.visit=function(t,e){return t.visitEmbeddedTemplate(this,e)},t}(),Ki=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}(),Xi=function(){function t(t,e,n,r,i){this.directive=t,this.inputs=e,this.hostProperties=n,this.hostEvents=r,this.sourceSpan=i}return t.prototype.visit=function(t,e){return t.visitDirective(this,e)},t}(),Qi=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}(),Yi={};Yi.PublicService=0,Yi.PrivateService=1,Yi.Component=2,Yi.Directive=3,Yi.Builtin=4,Yi[Yi.PublicService]="PublicService",Yi[Yi.PrivateService]="PrivateService",Yi[Yi.Component]="Component",Yi[Yi.Directive]="Directive",Yi[Yi.Builtin]="Builtin";var $i=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}(),Zi={};Zi.Property=0,Zi.Attribute=1,Zi.Class=2,Zi.Style=3,Zi.Animation=4,Zi[Zi.Property]="Property",Zi[Zi.Attribute]="Attribute",Zi[Zi.Class]="Class",Zi[Zi.Style]="Style",Zi[Zi.Animation]="Animation";var Ji=function(){function t(t,e,n){this.filePath=t,this.name=e,this.members=n}return t}(),to=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 Ji(t,e,n),this.cache.set(i,o)),o},t}(),eo=Object.getPrototypeOf({}),no=function(){function t(){}return t.parseIntAutoRadix=function(t){var e=parseInt(t);if(isNaN(e))throw new Error("Invalid integer literal when parsing "+t);return e},t.isNumeric=function(t){return!isNaN(t-parseFloat(t))},t}(),ro=function(){function t(){}return t.merge=function(t,e){for(var n={},r=0,i=Object.keys(t);r<i.length;r++){var o=i[r];n[o]=t[o]}for(var s=0,a=Object.keys(e);s<a.length;s++){var o=a[s];n[o]=e[o]}return n},t.equals=function(t,e){var n=Object.keys(t),r=Object.keys(e);if(n.length!=r.length)return!1;for(var i=0;i<n.length;i++){var o=n[i];if(t[o]!==e[o])return!1}return!0},t}(),io=function(){function t(){}return t.findLast=function(t,e){for(var n=t.length-1;n>=0;n--)if(e(t[n]))return t[n];return null},t.removeAll=function(t,e){for(var n=0;n<e.length;++n){var r=t.indexOf(e[n]);r>-1&&t.splice(r,1)}},t.remove=function(t,e){var n=t.indexOf(e);return n>-1?(t.splice(n,1),!0):!1},t.equals=function(t,e){if(t.length!=e.length)return!1;for(var n=0;n<t.length;++n)if(t[n]!==e[n])return!1;return!0},t.flatten=function(e){return e.reduce(function(e,n){var r=Array.isArray(n)?t.flatten(n):n;return e.concat(r)},[])},t}(),oo=e.__core_private__.isDefaultChangeDetectionStrategy,so=e.__core_private__.ChangeDetectorStatus,ao=e.__core_private__.LifecycleHooks,uo=e.__core_private__.LIFECYCLE_HOOKS_VALUES,co=e.__core_private__.ReflectorReader,po=e.__core_private__.ViewContainer,lo=e.__core_private__.CodegenComponentFactoryResolver,ho=e.__core_private__.ComponentRef_,fo=e.__core_private__.AppView,yo=e.__core_private__.DebugAppView,mo=e.__core_private__.NgModuleInjector,vo=e.__core_private__.registerModuleFactory,go=e.__core_private__.ViewType,_o=e.__core_private__.view_utils,bo=e.__core_private__.DebugContext,wo=e.__core_private__.StaticNodeDebugInfo,Eo=e.__core_private__.devModeEqual,So=e.__core_private__.UNINITIALIZED,Co=e.__core_private__.ValueUnwrapper,xo=e.__core_private__.TemplateRef_,To=e.__core_private__.Console,Po=e.__core_private__.reflector,Ao=e.__core_private__.Reflector,Oo=e.__core_private__.ReflectionCapabilities,Mo=e.__core_private__.NoOpAnimationPlayer,Ro=e.__core_private__.AnimationSequencePlayer,ko=e.__core_private__.AnimationGroupPlayer,No=e.__core_private__.AnimationKeyframe,Io=e.__core_private__.AnimationStyles,Do=e.__core_private__.ANY_STATE,jo=e.__core_private__.DEFAULT_STATE,Lo=e.__core_private__.EMPTY_STATE,Vo=e.__core_private__.FILL_STYLE_FLAG,Fo=e.__core_private__.prepareFinalAnimationStyles,Uo=e.__core_private__.balanceAnimationKeyframes,Bo=e.__core_private__.clearStyles,Ho=e.__core_private__.collectAndResolveStyles,qo=e.__core_private__.renderStyles,zo=e.__core_private__.ComponentStillLoadingError,Wo=e.__core_private__.AnimationTransition,Go={};Go.RAW_TEXT=0,Go.ESCAPABLE_RAW_TEXT=1,Go.PARSABLE_DATA=2,Go[Go.RAW_TEXT]="RAW_TEXT",Go[Go.ESCAPABLE_RAW_TEXT]="ESCAPABLE_RAW_TEXT",Go[Go.PARSABLE_DATA]="PARSABLE_DATA";var Ko={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:"‌"},Xo=function(){function t(t){var e=this,n=void 0===t?{}:t,r=n.closedByChildren,i=n.requiredParents,o=n.implicitNamespacePrefix,s=n.contentType,a=void 0===s?Go.PARSABLE_DATA:s,u=n.closedByParent,c=void 0===u?!1:u,p=n.isVoid,l=void 0===p?!1:p,h=n.ignoreFirstLf,f=void 0===h?!1:h;this.closedByChildren={},this.closedByParent=!1,this.canSelfClose=!1,r&&r.length>0&&r.forEach(function(t){return e.closedByChildren[t]=!0}),this.isVoid=l,this.closedByParent=c||l,i&&i.length>0&&(this.requiredParents={},this.parentToAdd=i[0],i.forEach(function(t){return e.requiredParents[t]=!0})),this.implicitNamespacePrefix=o,this.contentType=a,this.ignoreFirstLf=f}return t.prototype.requireExtraParent=function(t){if(!this.requiredParents)return!1;if(!t)return!0;var e=t.toLowerCase();return 1!=this.requiredParents[e]&&"template"!=e},t.prototype.isClosedByChild=function(t){return this.isVoid||t.toLowerCase()in this.closedByChildren},t}(),Qo={base:new Xo({isVoid:!0}),meta:new Xo({isVoid:!0}),area:new Xo({isVoid:!0}),embed:new Xo({isVoid:!0}),link:new Xo({isVoid:!0}),img:new Xo({isVoid:!0}),input:new Xo({isVoid:!0}),param:new Xo({isVoid:!0}),hr:new Xo({isVoid:!0}),br:new Xo({isVoid:!0}),source:new Xo({isVoid:!0}),track:new Xo({isVoid:!0}),wbr:new Xo({isVoid:!0}),p:new Xo({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 Xo({closedByChildren:["tbody","tfoot"]}),tbody:new Xo({closedByChildren:["tbody","tfoot"],closedByParent:!0}),tfoot:new Xo({closedByChildren:["tbody"],closedByParent:!0}),tr:new Xo({closedByChildren:["tr"],requiredParents:["tbody","tfoot","thead"],closedByParent:!0}),td:new Xo({closedByChildren:["td","th"],closedByParent:!0}),th:new Xo({closedByChildren:["td","th"],closedByParent:!0}),col:new Xo({requiredParents:["colgroup"],isVoid:!0}),svg:new Xo({implicitNamespacePrefix:"svg"}),math:new Xo({implicitNamespacePrefix:"math"}),li:new Xo({closedByChildren:["li"],closedByParent:!0}),dt:new Xo({closedByChildren:["dt","dd"]}),dd:new Xo({closedByChildren:["dt","dd"],closedByParent:!0}),rb:new Xo({closedByChildren:["rb","rt","rtc","rp"],closedByParent:!0}),rt:new Xo({closedByChildren:["rb","rt","rtc","rp"],closedByParent:!0}),rtc:new Xo({closedByChildren:["rb","rtc","rp"],closedByParent:!0}),rp:new Xo({closedByChildren:["rb","rt","rtc","rp"],closedByParent:!0}),optgroup:new Xo({closedByChildren:["optgroup"],closedByParent:!0}),option:new Xo({closedByChildren:["option","optgroup"],closedByParent:!0}),pre:new Xo({ignoreFirstLf:!0}),listing:new Xo({ignoreFirstLf:!0}),style:new Xo({contentType:Go.RAW_TEXT}),script:new Xo({contentType:Go.RAW_TEXT}),title:new Xo({contentType:Go.ESCAPABLE_RAW_TEXT}),textarea:new Xo({contentType:Go.ESCAPABLE_RAW_TEXT,ignoreFirstLf:!0})},Yo=new Xo,$o=new RegExp("(\\:not\\()|([-\\w]+)|(?:\\.([-\\w]+))|(?:\\[([-.\\w*]+)(?:=([^\\]]*))?\\])|(\\))|(\\s*,\\s*)","g"),Zo=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($o.lastIndex=0;n=$o.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[5]),n[6]&&(a=!1,s=o),n[7]){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 f(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}(),Jo=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 ts(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 es(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,p=o[c];u?this._addTerminal(r._classMap,p,a):r=this._addPartial(r._classPartialMap,p)}if(s)for(var c=0;c<s.length;c+=2){var u=c===s.length-2,l=s[c],h=s[c+1];if(u){var f=r._attrValueMap,d=f.get(l);d||(d=new Map,f.set(l,d)),this._addTerminal(d,h,a)}else{var y=r._attrValuePartialMap,m=y.get(l);m||(m=new Map,y.set(l,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],p=this._attrValueMap.get(u);c&&(n=this._matchTerminal(p,"",t,e)||n),n=this._matchTerminal(p,c,t,e)||n;var l=this._attrValuePartialMap.get(u);c&&(n=this._matchPartial(l,"",t,e)||n),n=this._matchPartial(l,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}(),ts=function(){function t(t){this.selectors=t,this.alreadyMatched=!1}return t}(),es=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=Jo.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}(),ns=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)},rs=function(t){function e(e){t.call(this,e);var n=new Error(e);this._nativeError=n}return ns(e,t),Object.defineProperty(e.prototype,"message",{get:function(){return this._nativeError.message},set:function(t){this._nativeError.message=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"name",{get:function(){return this._nativeError.name},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"stack",{get:function(){return this._nativeError.stack},set:function(t){this._nativeError.stack=t},enumerable:!0,configurable:!0}),e.prototype.toString=function(){return this._nativeError.toString()},e}(Error),is=(function(t){function e(e,n){t.call(this,e+" caused by: "+(n instanceof Error?n.message:n)),this.originalError=n}return ns(e,t),Object.defineProperty(e.prototype,"stack",{get:function(){return(this.originalError instanceof Error?this.originalError:this._nativeError).stack},enumerable:!0,configurable:!0}),e}(rs),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)}),os="",ss=/-+([a-z0-9])/g,as=function(){function t(){}return t.prototype.visitArray=function(t,e){var n=this;return t.map(function(t){return g(t,n,e)})},t.prototype.visitStringMap=function(t,e){var n=this,r={};return Object.keys(t).forEach(function(i){r[i]=g(t[i],n,e)}),r},t.prototype.visitPrimitive=function(t){return t},t.prototype.visitOther=function(t){return t},t}(),us=function(){function t(t,e){void 0===e&&(e=null),this.syncResult=t,this.asyncResult=e,e||(this.asyncResult=Promise.resolve(t))}return t}(),cs=function(t){function e(){t.apply(this,arguments)}return is(e,t),e}(rs),ps=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)},ls=/^(?:(?:\[([^\]]+)\])|(?:\(([^\)]+)\)))|(\@[-\w]+)$/,hs=function(){function t(t,e){void 0===t&&(t=null),void 0===e&&(e=null),this.name=t,this.definitions=e}return t}(),fs=function(){function t(){}return t}(),ds=function(t){function e(e,n){t.call(this),this.stateNameExpr=e,this.styles=n}return ps(e,t),e}(fs),ys=function(t){function e(e,n){t.call(this),this.stateChangeExpr=e,this.steps=n}return ps(e,t),e}(fs),ms=function(){function t(){}return t}(),vs=function(t){function e(e){void 0===e&&(e=[]),t.call(this),this.steps=e}return ps(e,t),e}(ms),gs=function(t){function e(e,n){void 0===n&&(n=null),t.call(this),this.offset=e,this.styles=n}return ps(e,t),e}(ms),_s=function(t){function e(e,n){void 0===e&&(e=0),void 0===n&&(n=null),t.call(this),this.timings=e,this.styles=n}return ps(e,t),e}(ms),bs=function(t){function e(e){void 0===e&&(e=null),t.call(this),this.steps=e}return ps(e,t),e}(ms),ws=function(t){function e(e){void 0===e&&(e=null),t.call(this,e)}return ps(e,t),e}(bs),Es=function(t){function e(e){void 0===e&&(e=null),t.call(this,e)}return ps(e,t),e}(bs),Ss=0,Cs={};Cs.Pipe=0,Cs.Directive=1,Cs.NgModule=2,Cs.Injectable=3,Cs[Cs.Pipe]="Pipe",Cs[Cs.Directive]="Directive",Cs[Cs.NgModule]="NgModule",Cs[Cs.Injectable]="Injectable";var xs=function(){function t(t){var e=void 0===t?{}:t,n=e.moduleUrl,r=e.styles,i=e.styleUrls;this.moduleUrl=n,this.styles=x(r),this.styleUrls=x(i)}return t}(),Ts=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,p=e.interpolation;if(this.encapsulation=n,this.template=r,this.templateUrl=i,this.styles=x(o),this.styleUrls=x(s),this.externalStylesheets=x(a),this.animations=u?io.flatten(u):[],this.ngContentSelectors=c||[],p&&2!=p.length)throw new Error("'interpolation' should have a start and an end symbol.");this.interpolation=p}return t.prototype.toSummary=function(){return{animations:this.animations.map(function(t){return t.name}),ngContentSelectors:this.ngContentSelectors,encapsulation:this.encapsulation}},t}(),Ps=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,p=e.hostListeners,l=e.hostProperties,h=e.hostAttributes,f=e.providers,d=e.viewProviders,y=e.queries,m=e.viewQueries,v=e.entryComponents,g=e.template;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=p,this.hostProperties=l,this.hostAttributes=h,this.providers=x(f),this.viewProviders=x(d),this.queries=x(y),this.viewQueries=x(m),this.entryComponents=x(v),this.template=g}return t.create=function(e){var n=void 0===e?{}:e,i=n.isHost,o=n.type,s=n.isComponent,a=n.selector,u=n.exportAs,c=n.changeDetection,p=n.inputs,l=n.outputs,h=n.host,f=n.providers,d=n.viewProviders,m=n.queries,v=n.viewQueries,g=n.entryComponents,_=n.template,b={},w={},E={};r(h)&&Object.keys(h).forEach(function(t){var e=h[t],n=t.match(ls);null===n?E[t]=e:r(n[1])?w[n[1]]=e:r(n[2])&&(b[n[2]]=e)});var S={};r(p)&&p.forEach(function(t){var e=y(t,[t,t]);S[e[0]]=e[1]});var C={};return r(l)&&l.forEach(function(t){var e=y(t,[t,t]);C[e[0]]=e[1]}),new t({isHost:i,type:o,isComponent:!!s,selector:a,exportAs:u,changeDetection:c,inputs:S,outputs:C,hostListeners:b,hostProperties:w,hostAttributes:E,providers:f,viewProviders:d,queries:m,viewQueries:v,entryComponents:g,template:_})},t.prototype.toSummary=function(){return{summaryKind:Cs.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,entryComponents:this.entryComponents,changeDetection:this.changeDetection,template:this.template&&this.template.toSummary()}},t}(),As=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:Cs.Pipe,type:this.type,name:this.name,pure:this.pure}},t}(),Os=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,p=e.importedModules,l=e.exportedModules,h=e.schemas,f=e.transitiveModule,d=e.id;this.type=n,this.declaredDirectives=x(i),this.exportedDirectives=x(o),this.declaredPipes=x(s),this.exportedPipes=x(a),this.providers=x(r),this.entryComponents=x(u),this.bootstrapComponents=x(c),this.importedModules=x(p),this.exportedModules=x(l),this.schemas=x(h),this.id=d,this.transitiveModule=f}return t.prototype.toSummary=function(){return{summaryKind:Cs.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}(),Ms=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.reference)||(this.entryComponentsSet.add(t.reference),this.entryComponents.push(t))},t}(),Rs=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}(),ks=0,Ns=9,Is=10,Ds=11,js=12,Ls=13,Vs=32,Fs=33,Us=34,Bs=35,Hs=36,qs=37,zs=38,Ws=39,Gs=40,Ks=41,Xs=42,Qs=43,Ys=44,$s=45,Zs=46,Js=47,ta=58,ea=59,na=60,ra=61,ia=62,oa=63,sa=48,aa=57,ua=65,ca=69,pa=70,la=88,ha=90,fa=91,da=92,ya=93,ma=94,va=95,ga=97,_a=101,ba=102,wa=110,Ea=114,Sa=116,Ca=117,xa=118,Ta=120,Pa=122,Aa=123,Oa=124,Ma=125,Ra=160,ka=96,Na=[/^\s*$/,/[<>]/,/^[{}]$/,/&(#|[a-z])/i,/^\/\//],Ia=function(){function t(t,e){this.start=t,this.end=e}return t.fromArray=function(e){return e?(k("interpolation",e),new t(e[0],e[1])):Da},t}(),Da=new Ia("{{","}}"),ja=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)},La=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}(),Va=function(){function t(t,e){this.start=t,this.end=e}return t}(),Fa=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}(),Ua=function(t){function e(e,n,r,i){t.call(this,e),this.prefix=n,this.uninterpretedExpression=r,this.location=i}return ja(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}(Fa),Ba=function(t){function e(){t.apply(this,arguments)}return ja(e,t),e.prototype.visit=function(t,e){void 0===e&&(e=null)},e}(Fa),Ha=function(t){function e(){t.apply(this,arguments)}return ja(e,t),e.prototype.visit=function(t,e){return void 0===e&&(e=null),t.visitImplicitReceiver(this,e)},e}(Fa),qa=function(t){function e(e,n){t.call(this,e),this.expressions=n}return ja(e,t),e.prototype.visit=function(t,e){return void 0===e&&(e=null),t.visitChain(this,e)},e}(Fa),za=function(t){function e(e,n,r,i){t.call(this,e),this.condition=n,this.trueExp=r,this.falseExp=i}return ja(e,t),e.prototype.visit=function(t,e){return void 0===e&&(e=null),t.visitConditional(this,e)},e}(Fa),Wa=function(t){function e(e,n,r){t.call(this,e),this.receiver=n,this.name=r}return ja(e,t),e.prototype.visit=function(t,e){return void 0===e&&(e=null),t.visitPropertyRead(this,e)},e}(Fa),Ga=function(t){function e(e,n,r,i){t.call(this,e),this.receiver=n,this.name=r,this.value=i}return ja(e,t),e.prototype.visit=function(t,e){return void 0===e&&(e=null),t.visitPropertyWrite(this,e)},e}(Fa),Ka=function(t){function e(e,n,r){t.call(this,e),this.receiver=n,this.name=r}return ja(e,t),e.prototype.visit=function(t,e){return void 0===e&&(e=null),t.visitSafePropertyRead(this,e)},e}(Fa),Xa=function(t){function e(e,n,r){t.call(this,e),this.obj=n,this.key=r}return ja(e,t),e.prototype.visit=function(t,e){return void 0===e&&(e=null),t.visitKeyedRead(this,e)},e}(Fa),Qa=function(t){function e(e,n,r,i){t.call(this,e),this.obj=n,this.key=r,this.value=i}return ja(e,t),e.prototype.visit=function(t,e){return void 0===e&&(e=null),t.visitKeyedWrite(this,e)},e}(Fa),Ya=function(t){function e(e,n,r,i){t.call(this,e),this.exp=n,this.name=r,this.args=i}return ja(e,t),e.prototype.visit=function(t,e){return void 0===e&&(e=null),t.visitPipe(this,e)},e}(Fa),$a=function(t){function e(e,n){t.call(this,e),this.value=n}return ja(e,t),e.prototype.visit=function(t,e){return void 0===e&&(e=null),t.visitLiteralPrimitive(this,e)},e}(Fa),Za=function(t){function e(e,n){t.call(this,e),this.expressions=n}return ja(e,t),e.prototype.visit=function(t,e){return void 0===e&&(e=null),t.visitLiteralArray(this,e)},e}(Fa),Ja=function(t){function e(e,n,r){t.call(this,e),this.keys=n,this.values=r}return ja(e,t),e.prototype.visit=function(t,e){return void 0===e&&(e=null),t.visitLiteralMap(this,e)},e}(Fa),tu=function(t){function e(e,n,r){t.call(this,e),this.strings=n,this.expressions=r}return ja(e,t),e.prototype.visit=function(t,e){return void 0===e&&(e=null),t.visitInterpolation(this,e)},e}(Fa),eu=function(t){function e(e,n,r,i){t.call(this,e),this.operation=n,this.left=r,this.right=i}return ja(e,t),e.prototype.visit=function(t,e){return void 0===e&&(e=null),t.visitBinary(this,e)},e}(Fa),nu=function(t){function e(e,n){t.call(this,e),this.expression=n}return ja(e,t),e.prototype.visit=function(t,e){return void 0===e&&(e=null),t.visitPrefixNot(this,e)},e}(Fa),ru=function(t){function e(e,n,r,i){t.call(this,e),this.receiver=n,this.name=r,this.args=i}return ja(e,t),e.prototype.visit=function(t,e){return void 0===e&&(e=null),t.visitMethodCall(this,e)},e}(Fa),iu=function(t){function e(e,n,r,i){t.call(this,e),this.receiver=n,this.name=r,this.args=i}return ja(e,t),e.prototype.visit=function(t,e){return void 0===e&&(e=null),t.visitSafeMethodCall(this,e)},e}(Fa),ou=function(t){function e(e,n,r){t.call(this,e),this.target=n,this.args=r}return ja(e,t),e.prototype.visit=function(t,e){return void 0===e&&(e=null),t.visitFunctionCall(this,e)},e}(Fa),su=function(t){function e(e,n,r,o){t.call(this,new Va(0,i(n)?0:n.length)),this.ast=e,this.source=n,this.location=r,this.errors=o}return ja(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}(Fa),au=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}(),uu=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}(),cu=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},pu=this&&this.__metadata||function(t,e){return"object"==typeof Reflect&&"function"==typeof Reflect.metadata?Reflect.metadata(t,e):void 0},lu={};lu.Character=0,lu.Identifier=1,lu.Keyword=2,lu.String=3,lu.Operator=4,lu.Number=5,lu.Error=6,lu[lu.Character]="Character",lu[lu.Identifier]="Identifier",lu[lu.Keyword]="Keyword",lu[lu.String]="String",lu[lu.Operator]="Operator",lu[lu.Number]="Number",lu[lu.Error]="Error";var hu=["var","let","null","undefined","true","false","if","else","this"],fu=function(){function t(){}return t.prototype.tokenize=function(t){for(var e=new mu(t),n=[],r=e.scanToken();null!=r;)n.push(r),r=e.scanToken();return n},t=cu([M(),pu("design:paramtypes",[])],t)}(),du=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==lu.Character&&this.numValue==t},t.prototype.isNumber=function(){return this.type==lu.Number},t.prototype.isString=function(){return this.type==lu.String},t.prototype.isOperator=function(t){return this.type==lu.Operator&&this.strValue==t},t.prototype.isIdentifier=function(){return this.type==lu.Identifier},t.prototype.isKeyword=function(){return this.type==lu.Keyword},t.prototype.isKeywordLet=function(){return this.type==lu.Keyword&&"let"==this.strValue},t.prototype.isKeywordNull=function(){return this.type==lu.Keyword&&"null"==this.strValue},t.prototype.isKeywordUndefined=function(){return this.type==lu.Keyword&&"undefined"==this.strValue},t.prototype.isKeywordTrue=function(){return this.type==lu.Keyword&&"true"==this.strValue},t.prototype.isKeywordFalse=function(){return this.type==lu.Keyword&&"false"==this.strValue},t.prototype.isKeywordThis=function(){return this.type==lu.Keyword&&"this"==this.strValue},t.prototype.isError=function(){return this.type==lu.Error},t.prototype.toNumber=function(){return this.type==lu.Number?this.numValue:-1},t.prototype.toString=function(){switch(this.type){case lu.Character:case lu.Identifier:case lu.Keyword:case lu.Operator:case lu.String:case lu.Error:return this.strValue;case lu.Number:return this.numValue.toString();default:return null}},t}(),yu=new du(-1,lu.Character,0,""),mu=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?ks:this.input.charCodeAt(this.index)},t.prototype.scanToken=function(){for(var t=this.input,e=this.length,n=this.peek,r=this.index;Vs>=n;){if(++r>=e){n=ks;break}n=t.charCodeAt(r)}if(this.peek=n,this.index=r,r>=e)return null;if(U(n))return this.scanIdentifier();if(P(n))return this.scanNumber(r);var i=r;switch(n){case Zs:return this.advance(),P(this.peek)?this.scanNumber(i):N(i,Zs);case Gs:case Ks:case Aa:case Ma:case fa:case ya:case Ys:case ta:case ea:return this.scanCharacter(i,n);case Ws:case Us:return this.scanString();case Bs:case Qs:case $s:case Xs:case Js:case qs:case ma:return this.scanOperator(i,String.fromCharCode(n));case oa:return this.scanComplexOperator(i,"?",Zs,".");case na:case ia:return this.scanComplexOperator(i,String.fromCharCode(n),ra,"=");case Fs:case ra:return this.scanComplexOperator(i,String.fromCharCode(n),ra,"=",ra,"=");case zs:return this.scanComplexOperator(i,"&",zs,"&");case Oa:return this.scanComplexOperator(i,"|",Oa,"|");case Ra:for(;T(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(),N(t,e)},t.prototype.scanOperator=function(t,e){return this.advance(),j(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),j(t,s)},t.prototype.scanIdentifier=function(){var t=this.index;for(this.advance();H(this.peek);)this.advance();var e=this.input.substring(t,this.index);return hu.indexOf(e)>-1?D(t,e):I(t,e)},t.prototype.scanNumber=function(t){var e=this.index===t;for(this.advance();;){if(P(this.peek));else if(this.peek==Zs)e=!1;else{if(!q(this.peek))break;if(this.advance(),z(this.peek)&&this.advance(),!P(this.peek))return this.error("Invalid exponent",-1);e=!1}this.advance()}var n=this.input.substring(t,this.index),r=e?no.parseIntAutoRadix(n):parseFloat(n);return V(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==da){n+=i.substring(r,this.index),this.advance();var o=void 0;if(this.peek==Ca){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=G(this.peek),this.advance();n+=String.fromCharCode(o),r=this.index}else{if(this.peek==ks)return this.error("Unterminated quote",0);this.advance()}var u=i.substring(r,this.index);return this.advance(),L(t,n+u)},t.prototype.error=function(t,e){var n=this.index+e;return F(n,"Lexer Error: "+t+" at column "+n+" in expression ["+this.input+"]")},t}(),vu=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},gu=this&&this.__metadata||function(t,e){return"object"==typeof Reflect&&"function"==typeof Reflect.metadata?Reflect.metadata(t,e):void 0},_u=function(){function t(t,e,n){this.strings=t,this.expressions=e,this.offsets=n}return t}(),bu=function(){function t(t,e,n){this.templateBindings=t,this.warnings=e,this.errors=n}return t}(),wu=function(){function t(t){this._lexer=t,this.errors=[]}return t.prototype.parseAction=function(t,e,n){void 0===n&&(n=Da),this._checkNoInterpolation(t,e,n);var r=this._stripComments(t),i=this._lexer.tokenize(this._stripComments(t)),o=new Eu(t,e,i,r.length,!0,this.errors,t.length-r.length).parseChain();return new su(o,t,e,this.errors)},t.prototype.parseBinding=function(t,e,n){void 0===n&&(n=Da);var r=this._parseBindingAst(t,e,n);return new su(r,t,e,this.errors)},t.prototype.parseSimpleBinding=function(t,e,n){void 0===n&&(n=Da);var r=this._parseBindingAst(t,e,n),i=Su.check(r);return i.length>0&&this._reportError("Host binding expression cannot contain "+i.join(" "),t,e),new su(r,t,e,this.errors)},t.prototype._reportError=function(t,e,n,r){this.errors.push(new La(t,e,n,r))},t.prototype._parseBindingAst=function(t,e,n){var i=this._parseQuote(t,e);if(r(i))return i;this._checkNoInterpolation(t,e,n);var o=this._stripComments(t),s=this._lexer.tokenize(o);return new Eu(t,e,s,o.length,!1,this.errors,t.length-o.length).parseChain()},t.prototype._parseQuote=function(t,e){if(i(t))return null;var n=t.indexOf(":");if(-1==n)return null;var r=t.substring(0,n).trim();if(!B(r))return null;var o=t.substring(n+1);return new Ua(new Va(0,t.length),r,o,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 Eu(e,n,r,e.length,!1,this.errors,0).parseTemplateBindings()},t.prototype.parseInterpolation=function(t,e,n){void 0===n&&(n=Da);var r=this.splitInterpolation(t,e,n);if(null==r)return null;for(var o=[],s=0;s<r.expressions.length;++s){var a=r.expressions[s],u=this._stripComments(a),c=this._lexer.tokenize(this._stripComments(r.expressions[s])),p=new Eu(t,e,c,u.length,!1,this.errors,r.offsets[s]+(a.length-u.length)).parseChain();o.push(p)}return new su(new tu(new Va(0,i(t)?0:t.length),r.strings,o),t,e,this.errors)},t.prototype.splitInterpolation=function(t,e,n){void 0===n&&(n=Da);var r=K(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 p=i[c];c%2===0?(o.push(p),u+=p.length):p.trim().length>0?(u+=n.start.length,s.push(p),a.push(u),u+=p.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 _u(o,s,a)},t.prototype.wrapLiteralPrimitive=function(t,e){return new su(new $a(new Va(0,i(t)?0:t.length),t),t,e,this.errors)},t.prototype._stripComments=function(t){var e=this._commentStart(t);return r(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===Js&&o==Js&&i(e))return n;e===r?e=null:i(e)&&W(r)&&(e=r)}return null},t.prototype._checkNoInterpolation=function(t,e,n){var r=K(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=vu([M(),gu("design:paramtypes",[fu])],t)}(),Eu=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]:yu},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 Va(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.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(ea))for(this.parseAction||this.error("Binding expression cannot contain chained expression");this.optionalCharacter(ea););else this.index<this.tokens.length&&this.error("Unexpected token '"+this.next+"'")}return 0==t.length?new Ba(this.span(e)):1==t.length?t[0]:new qa(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(ta);)n.push(this.parseExpression());t=new Ya(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(ta))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 Ba(this.span(t))}return new za(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 eu(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 eu(this.span(t.span.start),"&&",t,e)}return t},t.prototype.parseEquality=function(){for(var t=this.parseRelational();this.next.type==lu.Operator;){var e=this.next.strValue;switch(e){case"==":case"===":case"!=":case"!==":this.advance();var n=this.parseRelational();t=new eu(this.span(t.span.start),e,t,n);continue}break}return t},t.prototype.parseRelational=function(){for(var t=this.parseAdditive();this.next.type==lu.Operator;){var e=this.next.strValue;switch(e){case"<":case">":case"<=":case">=":this.advance();var n=this.parseAdditive();t=new eu(this.span(t.span.start),e,t,n);continue}break}return t},t.prototype.parseAdditive=function(){for(var t=this.parseMultiplicative();this.next.type==lu.Operator;){var e=this.next.strValue;switch(e){case"+":case"-":this.advance();var n=this.parseMultiplicative();t=new eu(this.span(t.span.start),e,t,n);continue}break}return t},t.prototype.parseMultiplicative=function(){for(var t=this.parsePrefix();this.next.type==lu.Operator;){var e=this.next.strValue;switch(e){case"*":case"%":case"/":this.advance();var n=this.parsePrefix();t=new eu(this.span(t.span.start),e,t,n);continue}break}return t},t.prototype.parsePrefix=function(){if(this.next.type==lu.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 eu(this.span(t),e,new $a(new Va(t,t),0),n);case"!":return this.advance(),n=this.parsePrefix(),new nu(this.span(t),n)}}return this.parseCallChain()},t.prototype.parseCallChain=function(){for(var t=this.parsePrimary();;)if(this.optionalCharacter(Zs))t=this.parseAccessMemberOrMethodCall(t,!1);else if(this.optionalOperator("?."))t=this.parseAccessMemberOrMethodCall(t,!0);else if(this.optionalCharacter(fa)){this.rbracketsExpected++;var e=this.parsePipe();if(this.rbracketsExpected--,this.expectCharacter(ya),this.optionalOperator("=")){var n=this.parseConditional();t=new Qa(this.span(t.span.start),t,e,n)}else t=new Xa(this.span(t.span.start),t,e)}else{if(!this.optionalCharacter(Gs))return t;this.rparensExpected++;var r=this.parseCallArguments();this.rparensExpected--,this.expectCharacter(Ks),t=new ou(this.span(t.span.start),t,r)}},t.prototype.parsePrimary=function(){var t=this.inputIndex;if(this.optionalCharacter(Gs)){this.rparensExpected++;var e=this.parsePipe();return this.rparensExpected--,this.expectCharacter(Ks),e}if(this.next.isKeywordNull())return this.advance(),new $a(this.span(t),null);if(this.next.isKeywordUndefined())return this.advance(),new $a(this.span(t),void 0);if(this.next.isKeywordTrue())return this.advance(),new $a(this.span(t),!0);if(this.next.isKeywordFalse())return this.advance(),new $a(this.span(t),!1);if(this.next.isKeywordThis())return this.advance(),new Ha(this.span(t));if(this.optionalCharacter(fa)){this.rbracketsExpected++;var n=this.parseExpressionList(ya);return this.rbracketsExpected--,this.expectCharacter(ya),new Za(this.span(t),n)}if(this.next.isCharacter(Aa))return this.parseLiteralMap();if(this.next.isIdentifier())return this.parseAccessMemberOrMethodCall(new Ha(this.span(t)),!1);if(this.next.isNumber()){var r=this.next.toNumber();return this.advance(),new $a(this.span(t),r)}if(this.next.isString()){var i=this.next.toString();return this.advance(),new $a(this.span(t),i)}return this.index>=this.tokens.length?(this.error("Unexpected end of expression: "+this.input),new Ba(this.span(t))):(this.error("Unexpected token "+this.next),new Ba(this.span(t)))},t.prototype.parseExpressionList=function(t){var e=[];if(!this.next.isCharacter(t))do e.push(this.parsePipe());while(this.optionalCharacter(Ys));return e},t.prototype.parseLiteralMap=function(){var t=[],e=[],n=this.inputIndex;if(this.expectCharacter(Aa),!this.optionalCharacter(Ma)){this.rbracesExpected++;do{var r=this.expectIdentifierOrKeywordOrString();t.push(r),this.expectCharacter(ta),e.push(this.parsePipe())}while(this.optionalCharacter(Ys));this.rbracesExpected--,this.expectCharacter(Ma)}return new Ja(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(Gs)){this.rparensExpected++;var i=this.parseCallArguments();this.expectCharacter(Ks),this.rparensExpected--;var o=this.span(n);return e?new iu(o,t,r,i):new ru(o,t,r,i)}if(e)return this.optionalOperator("=")?(this.error("The '?.' operator cannot be used in the assignment"),new Ba(this.span(n))):new Ka(this.span(n),t,r);if(this.optionalOperator("=")){if(!this.parseAction)return this.error("Bindings cannot contain assignments"),new Ba(this.span(n));var s=this.parseConditional();return new Ga(this.span(n),t,r,s)}return new Wa(this.span(n),t,r)},t.prototype.parseCallArguments=function(){if(this.next.isCharacter(Ks))return[];var t=[];do t.push(this.parsePipe());while(this.optionalCharacter(Ys));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();i||(null==e?e=o:o=e+o[0].toUpperCase()+o.substring(1)),this.optionalCharacter(ta);var s=null,a=null;if(i)s=this.optionalOperator("=")?this.expectTemplateBindingKey():"$implicit";else if(this.next!==yu&&!this.peekKeywordLet()){var u=this.inputIndex,c=this.parsePipe(),p=this.input.substring(u-this.offset,this.inputIndex-this.offset);a=new su(c,p,this.location,this.errors)}t.push(new au(this.span(r),o,i,s,a)),this.optionalCharacter(ea)||this.optionalCharacter(Ys)}return new bu(t,n,this.errors)},t.prototype.error=function(t,e){void 0===e&&(e=null),this.errors.push(new La(t,this.input,this.locationText(e),this.location)),this.skip()},t.prototype.locationText=function(t){return void 0===t&&(t=null),i(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(ea)&&(this.rparensExpected<=0||!t.isCharacter(Ks))&&(this.rbracesExpected<=0||!t.isCharacter(Ma))&&(this.rbracketsExpected<=0||!t.isCharacter(ya));)this.next.isError()&&this.errors.push(new La(this.next.toString(),this.input,this.locationText(),this.location)),this.advance(),t=this.next},t}(),Su=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}(),Cu=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 r(this.offset)?this.file.url+"@"+this.line+":"+this.col:this.file.url; diff --git a/core/Controllers/ResController.php b/core/Controllers/ResController.php index ea040c25ca9c67ffe860e5529b913d1f7da13d9d..587428aa819b4076a34b1926ea589a593d4c29f0 100644 --- a/core/Controllers/ResController.php +++ b/core/Controllers/ResController.php @@ -27,6 +27,7 @@ use Core\Controllers\DocserverController; use Core\Controllers\DocserverToolsController; require_once 'core/class/class_db_pdo.php'; +require_once 'modules/notes/Models/NotesModel.php'; class ResController { @@ -82,6 +83,11 @@ class ResController return $response->withJson(ResModel::isLockForCurrentUser(['resId' => $aArgs['resId']])); } + public function getNotesCountById(RequestInterface $request, ResponseInterface $response, $aArgs) + { + return $response->withJson(\NotesModel::countByResId(['resId' => $aArgs['resId']])); + } + /** * Deletes ext resource on database. * @param $resId integer diff --git a/modules/notes/js/functions.js b/modules/notes/js/functions.js index 3b7b0a8578051496d8c5aa63d2065f4985ca6376..da8f303217157e9e4c102ef4edb94f751553dcd8 100644 --- a/modules/notes/js/functions.js +++ b/modules/notes/js/functions.js @@ -38,6 +38,9 @@ function validNotesForm (path, form_id) { onSuccess: function(answer){ eval("response = "+answer.responseText); if(response.status == 0){ + if (typeof window['angularSignatureBookComponent'] != "undefined") { + window.angularSignatureBookComponent.componentAfterNotes(); + } destroyModal('form_notes'); eval(response.exec_js); } else { diff --git a/modules/visa/Controllers/VisaController.php b/modules/visa/Controllers/VisaController.php index 2389eb84bb90f53e392b7e6cf805e434e2ae684a..d0c93c3febf354a9ce54e8a174adba5b3f81b764 100644 --- a/modules/visa/Controllers/VisaController.php +++ b/modules/visa/Controllers/VisaController.php @@ -151,7 +151,7 @@ class VisaController // $datas['histories'] = $history; $datas['resList'] = $resList; $datas['resListIndex'] = $resListIndex; - $datas['nbNotes'] = \NotesModel::countByResId(['resId' => $resId]);; + $datas['nbNotes'] = \NotesModel::countByResId(['resId' => $resId]); $datas['signature'] = \UsersModel::getSignatureForCurrentUser()['pathToSignatureOnTmp']; $datas['consigne'] = \UsersModel::getCurrentConsigneById(['resId' => $resId]); $datas['hasWorkflow'] = \VisaModel::hasVisaWorkflowByResId(['resId' => $resId]); @@ -307,7 +307,6 @@ class VisaController if ($attachments[$key]['doc_date']) { $attachments[$key]['doc_date'] = date(DATE_ATOM, strtotime($attachments[$key]['doc_date'])); } - $attachments[$key]['idToDl'] = $viewerId; $attachments[$key]['isConverted'] = $isConverted; $attachments[$key]['attachment_type'] = $attachmentTypes[$value['attachment_type']]['label']; $attachments[$key]['icon'] = $attachmentTypes[$value['attachment_type']]['icon']; diff --git a/modules/visa/css/module.css b/modules/visa/css/module.css index 5e201b5a95931dbbd129ef15695656f2178cf435..ea0bc32ec010ac7b42c3f7185b62f48491adda13 100644 --- a/modules/visa/css/module.css +++ b/modules/visa/css/module.css @@ -910,6 +910,10 @@ img.panelSelectedThumbnail,img:hover.panelSelectedThumbnail{ margin-top: 10px; } +.visaDisabledButton{ + cursor: inherit; + opacity: 0.3; +} /*.showResLeftPanel.contentLeft,.showResLeftPanel.contentRight{*/ /*width:39%;*/ diff --git a/rest/index.php b/rest/index.php index b490e4f7c2ea0cf433aec5785f2ab1f40d0efacc..40dfc510c3974a4a52574a48ab0cf31924c8ce1c 100644 --- a/rest/index.php +++ b/rest/index.php @@ -124,6 +124,7 @@ $app->put('/{collId}/{resId}/unsign', \Visa\Controllers\VisaController::class . //resource $app->post('/res', \Core\Controllers\ResController::class . ':create'); $app->get('/res/{resId}/lock', \Core\Controllers\ResController::class . ':isLock'); +$app->get('/res/{resId}/notes/count', \Core\Controllers\ResController::class . ':getNotesCountById'); //extresource $app->post('/resExt', \Core\Controllers\ResExtController::class . ':create');