From 577c088674d8ca389b7e165b23ab86154bba39a1 Mon Sep 17 00:00:00 2001 From: Damien Burel <damien.burel@maarch.org> Date: Fri, 19 May 2017 10:03:31 +0200 Subject: [PATCH] FEAT [PARA V2] Tooltipster just once --- .../angular/app/signature-book.component.js | 8 ++++--- .../angular/app/signature-book.component.ts | 8 ++++--- .../js/angular/main.bundle.min.js | 21 +++++++++---------- 3 files changed, 20 insertions(+), 17 deletions(-) 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 a8f2bce7d96..51c82af6b7f 100644 --- a/apps/maarch_entreprise/js/angular/app/signature-book.component.js +++ b/apps/maarch_entreprise/js/angular/app/signature-book.component.js @@ -131,9 +131,11 @@ var SignatureBookComponent = (function () { setTimeout(function () { $j("#rightPanelContent").niceScroll({ touchbehavior: false, cursorcolor: "#666", cursoropacitymax: 0.6, cursorwidth: 4 }); $j(".pjSign").niceScroll({ touchbehavior: false, cursorcolor: "#666", cursoropacitymax: 0.6, cursorwidth: 4 }); - $j("#obsVersion").tooltipster({ - interactive: true - }); + if ($j(".tooltipstered").length == 0) { + $j("#obsVersion").tooltipster({ + interactive: true + }); + } }, 0); }); }); 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 4ef86928681..0596ac42ab4 100644 --- a/apps/maarch_entreprise/js/angular/app/signature-book.component.ts +++ b/apps/maarch_entreprise/js/angular/app/signature-book.component.ts @@ -141,9 +141,11 @@ export class SignatureBookComponent implements OnInit { setTimeout(() => { $j("#rightPanelContent").niceScroll({touchbehavior:false, cursorcolor:"#666", cursoropacitymax:0.6, cursorwidth:4}); $j(".pjSign").niceScroll({touchbehavior:false, cursorcolor:"#666", cursoropacitymax:0.6, cursorwidth:4}); - $j("#obsVersion").tooltipster({ - interactive: true - }); + if ($j(".tooltipstered").length == 0) { + $j("#obsVersion").tooltipster({ + interactive: true + }); + } }, 0); }); }); diff --git a/apps/maarch_entreprise/js/angular/main.bundle.min.js b/apps/maarch_entreprise/js/angular/main.bundle.min.js index 8d090a39f1e..15b346cd463 100644 --- a/apps/maarch_entreprise/js/angular/main.bundle.min.js +++ b/apps/maarch_entreprise/js/angular/main.bundle.min.js @@ -1,18 +1,17 @@ -!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,r,n){function o(s,a){if(!r[s]){if(!t[s]){var u="function"==typeof require&&require;if(!a&&u)return u(s,!0);if(i)return i(s,!0);var c=new Error("Cannot find module '"+s+"'");throw c.code="MODULE_NOT_FOUND",c}var l=r[s]={exports:{}};t[s][0].call(l.exports,function(e){var r=t[s][1][e];return o(r?r:e)},l,l.exports,e,t,r,n)}return r[s].exports}for(var i="function"==typeof require&&require,s=0;s<n.length;s++)o(n[s]);return o}({1:[function(t,e,r){"use strict";var n=this&&this.__decorate||function(t,e,r,n){var o,i=arguments.length,s=3>i?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(s=(3>i?o(s):i>3?o(e,r,s):o(e,r))||s);return i>3&&s&&Object.defineProperty(e,r,s),s};Object.defineProperty(r,"__esModule",{value:!0});var o=t("@angular/core"),i=function(){function t(){}return t}();i=n([o.Component({selector:"my-app",template:"<router-outlet></router-outlet>"})],i),r.AppComponent=i},{"@angular/core":8}],2:[function(t,e,r){"use strict";var n=this&&this.__decorate||function(t,e,r,n){var o,i=arguments.length,s=3>i?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(s=(3>i?o(s):i>3?o(e,r,s):o(e,r))||s);return i>3&&s&&Object.defineProperty(e,r,s),s};Object.defineProperty(r,"__esModule",{value:!0});var o=t("@angular/core"),i=t("@angular/platform-browser"),s=t("@angular/router"),a=t("@angular/http"),u=t("@angular/forms"),c=t("./app.component"),l=t("./profile.component"),p=t("./signature-book.component"),h=function(){function t(){}return t}();h=n([o.NgModule({imports:[i.BrowserModule,u.FormsModule,s.RouterModule.forRoot([{path:"profile",component:l.ProfileComponent},{path:":basketId/signatureBook/:resId",component:p.SignatureBookComponent},{path:"**",redirectTo:"",pathMatch:"full"}],{useHash:!0}),a.HttpModule],declarations:[c.AppComponent,l.ProfileComponent,p.SignatureBookComponent,p.SafeUrlPipe],bootstrap:[c.AppComponent]})],h),r.AppModule=h},{"./app.component":1,"./profile.component":3,"./signature-book.component":4,"@angular/core":8,"@angular/forms":9,"@angular/http":10,"@angular/platform-browser":12,"@angular/router":13}],3:[function(t,e,r){"use strict";var n=this&&this.__decorate||function(t,e,r,n){var o,i=arguments.length,s=3>i?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(s=(3>i?o(s):i>3?o(e,r,s):o(e,r))||s);return i>3&&s&&Object.defineProperty(e,r,s),s},o=this&&this.__metadata||function(t,e){return"object"==typeof Reflect&&"function"==typeof Reflect.metadata?Reflect.metadata(t,e):void 0};Object.defineProperty(r,"__esModule",{value:!0});var i=t("@angular/core"),s=t("@angular/http");t("rxjs/add/operator/map");var a=function(){function t(t,e){var r=this;this.http=t,this.zone=e,this.user={lang:{}},this.passwordModel={currentPassword:"",newPassword:"",reNewPassword:""},this.signatureModel={base64:"",base64ForJs:"",name:"",type:"",size:0,label:""},this.mailSignatureModel={selected:0,htmlBody:"",title:""},this.showPassword=!1,this.selectedSignature=-1,this.selectedSignatureLabel="",this.resultInfo="",this.loading=!1,window.angularProfileComponent={componentAfterUpload:function(t){return r.processAfterUpload(t)}}}return t.prototype.prepareProfile=function(){if($j("#inner_content").remove(),$j("#menunav").hide(),$j("#divList").remove(),$j("#magicContactsTable").remove(),$j("#manageBasketsOrderTable").remove(),$j("#container").width("99%"),$j("#content h1")[0]&&$j("#content h1")[0]!=$j("my-app h1")[0]&&$j("#content h1")[0].remove(),Prototype.BrowserFeatures.ElementExtensions){var t=["collapse","dropdown","modal","tooltip","popover","tab"];disablePrototypeJS("show",t),disablePrototypeJS("hide",t)}tinymce.baseURL="../../node_modules/tinymce",tinymce.suffix=".min",tinymce.init({selector:"textarea#emailSignature",statusbar:!1,language:"fr_FR",language_url:"tools/tinymce/langs/fr_FR.js",height:"200",plugins:["textcolor"],external_plugins:{bdesk_photo:"../../apps/maarch_entreprise/tools/tinymce/bdesk_photo/plugin.min.js"},menubar:!1,toolbar:"undo | bold italic underline | alignleft aligncenter alignright | bdesk_photo | forecolor",theme_buttons1_add:"fontselect,fontsizeselect",theme_buttons2_add_before:"cut,copy,paste,pastetext,pasteword,separator,search,replace,separator",theme_buttons2_add:"separator,insertdate,inserttime,preview,separator,forecolor,backcolor",theme_buttons3_add_before:"tablecontrols,separator",theme_buttons3_add:"separator,print,separator,ltr,rtl,separator,fullscreen,separator,insertlayer,moveforward,movebackward,absolut",theme_toolbar_align:"left",theme_advanced_toolbar_location:"top",theme_styles:"Header 1=header1;Header 2=header2;Header 3=header3;Table Row=tableRow1"})},t.prototype.updateBreadcrumb=function(t){$j("#ariane")[0]&&($j("#ariane")[0].innerHTML="<a href='index.php?reinit=true'>"+t+"</a> > Profil")},t.prototype.ngOnInit=function(){var t=this;this.prepareProfile(),this.updateBreadcrumb(angularGlobals.applicationName),this.coreUrl=angularGlobals.coreUrl,this.loading=!0,this.http.get(this.coreUrl+"rest/user/profile").map(function(t){return t.json()}).subscribe(function(e){t.user=e,t.loading=!1})},t.prototype.processAfterUpload=function(t){var e=this;this.zone.run(function(){return e.resfreshUpload(t)})},t.prototype.resfreshUpload=function(t){this.signatureModel.size<=2e6?(this.signatureModel.base64=t.replace(/^data:.*?;base64,/,""),this.signatureModel.base64ForJs=t):(this.signatureModel.name="",this.signatureModel.size=0,this.signatureModel.type="",this.signatureModel.base64="",this.signatureModel.base64ForJs="",this.resultInfo="Taille maximum de fichier dépassée (2 MB)",$j("#resultInfo").removeClass().addClass("alert alert-danger alert-dismissible"),$j("#resultInfo").fadeTo(3e3,500).slideUp(500,function(){$j("#resultInfo").slideUp(500)}))},t.prototype.displayPassword=function(){this.showPassword=!this.showPassword},t.prototype.clickOnUploader=function(t){$j("#"+t).click()},t.prototype.uploadSignatureTrigger=function(t){if(t.target.files&&t.target.files[0]){var e=new FileReader;this.signatureModel.name=t.target.files[0].name,this.signatureModel.size=t.target.files[0].size,this.signatureModel.type=t.target.files[0].type,""==this.signatureModel.label&&(this.signatureModel.label=this.signatureModel.name),e.readAsDataURL(t.target.files[0]),e.onload=function(t){window.angularProfileComponent.componentAfterUpload(t.target.result)}}},t.prototype.displaySignatureEditionForm=function(t){this.selectedSignature=t,this.selectedSignatureLabel=this.user.signatures[t].signature_label},t.prototype.changeEmailSignature=function(){var t=$j("#emailSignaturesSelect").prop("selectedIndex");this.mailSignatureModel.selected=t,t>0?(tinymce.get("emailSignature").setContent(this.user.emailSignatures[t-1].html_body),this.mailSignatureModel.title=this.user.emailSignatures[t-1].title):(tinymce.get("emailSignature").setContent(""),this.mailSignatureModel.title="")},t.prototype.getAbsenceInfos=function(){var t=this;this.http.get(this.coreUrl+"rest/currentUser/baskets/absence").map(function(t){return t.json()}).subscribe(function(){t.loading=!1})},t.prototype.updatePassword=function(){var t=this;this.http.put(this.coreUrl+"rest/currentUser/password",this.passwordModel).map(function(t){return t.json()}).subscribe(function(e){e.errors?(t.resultInfo=e.errors,$j("#resultInfo").removeClass().addClass("alert alert-danger alert-dismissible"),$j("#resultInfo").fadeTo(3e3,500).slideUp(500,function(){$j("#resultInfo").slideUp(500)})):(t.showPassword=!1,t.passwordModel={currentPassword:"",newPassword:"",reNewPassword:""},t.resultInfo=e.success,$j("#resultInfo").removeClass().addClass("alert alert-success alert-dismissible"),$j("#resultInfo").fadeTo(3e3,500).slideUp(500,function(){$j("#resultInfo").slideUp(500)}))})},t.prototype.submitEmailSignature=function(){var t=this;this.mailSignatureModel.htmlBody=tinymce.get("emailSignature").getContent(),this.http.post(this.coreUrl+"rest/currentUser/emailSignature",this.mailSignatureModel).map(function(t){return t.json()}).subscribe(function(e){e.errors?(t.resultInfo=e.errors,$j("#resultInfo").removeClass().addClass("alert alert-danger alert-dismissible"),$j("#resultInfo").fadeTo(3e3,500).slideUp(500,function(){$j("#resultInfo").slideUp(500)})):(t.user.emailSignatures=e.emailSignatures,t.mailSignatureModel={selected:0,htmlBody:"",title:""},tinymce.get("emailSignature").setContent(""),t.resultInfo=e.success,$j("#resultInfo").removeClass().addClass("alert alert-success alert-dismissible"),$j("#resultInfo").fadeTo(3e3,500).slideUp(500,function(){$j("#resultInfo").slideUp(500)}))})},t.prototype.updateEmailSignature=function(){var t=this;this.mailSignatureModel.htmlBody=tinymce.get("emailSignature").getContent();var e=this.user.emailSignatures[this.mailSignatureModel.selected-1].id;this.http.put(this.coreUrl+"rest/currentUser/emailSignature/"+e,this.mailSignatureModel).map(function(t){return t.json()}).subscribe(function(e){e.errors?(t.resultInfo=e.errors,$j("#resultInfo").removeClass().addClass("alert alert-danger alert-dismissible"),$j("#resultInfo").fadeTo(3e3,500).slideUp(500,function(){$j("#resultInfo").slideUp(500)})):(t.user.emailSignatures[t.mailSignatureModel.selected-1].title=e.emailSignature.title,t.user.emailSignatures[t.mailSignatureModel.selected-1].html_body=e.emailSignature.html_body,t.resultInfo=e.success,$j("#resultInfo").removeClass().addClass("alert alert-success alert-dismissible"),$j("#resultInfo").fadeTo(3e3,500).slideUp(500,function(){$j("#resultInfo").slideUp(500)}))})},t.prototype.deleteEmailSignature=function(){var t=this,e=confirm("Voulez-vous vraiment supprimer la signature de mail ?");if(e){var r=this.user.emailSignatures[this.mailSignatureModel.selected-1].id;this.http["delete"](this.coreUrl+"rest/currentUser/emailSignature/"+r).map(function(t){return t.json()}).subscribe(function(e){e.errors?(t.resultInfo=e.errors,$j("#resultInfo").removeClass().addClass("alert alert-danger alert-dismissible"),$j("#resultInfo").fadeTo(3e3,500).slideUp(500,function(){$j("#resultInfo").slideUp(500)})):(t.user.emailSignatures=e.emailSignatures,t.mailSignatureModel={selected:0,htmlBody:"",title:""},tinymce.get("emailSignature").setContent(""),t.resultInfo=e.success,$j("#resultInfo").removeClass().addClass("alert alert-success alert-dismissible"),$j("#resultInfo").fadeTo(3e3,500).slideUp(500,function(){$j("#resultInfo").slideUp(500)}))})}},t.prototype.submitSignature=function(){var t=this;this.http.post(this.coreUrl+"rest/currentUser/signature",this.signatureModel).map(function(t){return t.json()}).subscribe(function(e){e.errors?(t.resultInfo=e.errors,$j("#resultInfo").removeClass().addClass("alert alert-danger alert-dismissible"),$j("#resultInfo").fadeTo(3e3,500).slideUp(500,function(){$j("#resultInfo").slideUp(500)})):(t.user.signatures=e.signatures,t.signatureModel={base64:"",base64ForJs:"",name:"",type:"",size:0,label:""},t.resultInfo=e.success,$j("#resultInfo").removeClass().addClass("alert alert-success alert-dismissible"),$j("#resultInfo").fadeTo(3e3,500).slideUp(500,function(){$j("#resultInfo").slideUp(500)}))})},t.prototype.updateSignature=function(){var t=this,e=this.user.signatures[this.selectedSignature].id;this.http.put(this.coreUrl+"rest/currentUser/signature/"+e,{label:this.selectedSignatureLabel}).map(function(t){return t.json()}).subscribe(function(e){e.errors?(t.resultInfo=e.errors,$j("#resultInfo").removeClass().addClass("alert alert-danger alert-dismissible"),$j("#resultInfo").fadeTo(3e3,500).slideUp(500,function(){$j("#resultInfo").slideUp(500)})):(t.user.signatures[t.selectedSignature].signature_label=e.signature.signature_label,t.selectedSignature=-1,t.selectedSignatureLabel="",t.resultInfo=e.success,$j("#resultInfo").removeClass().addClass("alert alert-success alert-dismissible"),$j("#resultInfo").fadeTo(3e3,500).slideUp(500,function(){$j("#resultInfo").slideUp(500)}))})},t.prototype.deleteSignature=function(t){var e=this,r=confirm("Voulez-vous vraiment supprimer la signature ?");r&&this.http["delete"](this.coreUrl+"rest/currentUser/signature/"+t).map(function(t){return t.json()}).subscribe(function(t){t.errors?(e.resultInfo=t.errors,$j("#resultInfo").removeClass().addClass("alert alert-danger alert-dismissible"),$j("#resultInfo").fadeTo(3e3,500).slideUp(500,function(){$j("#resultInfo").slideUp(500)})):(e.user.signatures=t.signatures,e.resultInfo=t.success,$j("#resultInfo").removeClass().addClass("alert alert-success alert-dismissible"),$j("#resultInfo").fadeTo(3e3,500).slideUp(500,function(){$j("#resultInfo").slideUp(500)}))})},t.prototype.onSubmit=function(){var t=this;this.http.put(this.coreUrl+"rest/user/profile",this.user).map(function(t){return t.json()}).subscribe(function(e){e.errors?(t.resultInfo=e.errors,$j("#resultInfo").removeClass().addClass("alert alert-danger alert-dismissible"),$j("#resultInfo").fadeTo(3e3,500).slideUp(500,function(){$j("#resultInfo").slideUp(500)})):(t.resultInfo=e.success,$j("#resultInfo").removeClass().addClass("alert alert-success alert-dismissible"),$j("#resultInfo").fadeTo(3e3,500).slideUp(500,function(){$j("#resultInfo").slideUp(500)}))},function(t){alert(t.statusText)})},t.prototype.absenceModal=function(){createModal(this.user.absence,"modal_redirect","auto","950px"),autocomplete(this.user.countBasketsForAbsence,"index.php?display=true&module=basket&page=autocomplete_users_list")},t}();a=n([i.Component({templateUrl:angularGlobals.profileView,styleUrls:["../../node_modules/bootstrap/dist/css/bootstrap.min.css","js/angular/app/Css/profile.component.css"]}),o("design:paramtypes",[s.Http,i.NgZone])],a),r.ProfileComponent=a},{"@angular/core":8,"@angular/http":10,"rxjs/add/operator/map":24}],4:[function(t,e,r){"use strict";var n=this&&this.__decorate||function(t,e,r,n){var o,i=arguments.length,s=3>i?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(s=(3>i?o(s):i>3?o(e,r,s):o(e,r))||s);return i>3&&s&&Object.defineProperty(e,r,s),s},o=this&&this.__metadata||function(t,e){return"object"==typeof Reflect&&"function"==typeof Reflect.metadata?Reflect.metadata(t,e):void 0};Object.defineProperty(r,"__esModule",{value:!0});var i=t("@angular/core"),s=t("@angular/http"),a=t("@angular/platform-browser"),u=t("@angular/router");t("rxjs/add/operator/map");var c=function(){function t(t){this.sanitizer=t}return t.prototype.transform=function(t){return this.sanitizer.bypassSecurityTrustResourceUrl(t)},t}();c=n([i.Pipe({name:"safeUrl"}),o("design:paramtypes",[a.DomSanitizer])],c),r.SafeUrlPipe=c;var l=function(){function t(t,e,r,n){var o=this;this.http=t,this.route=e,this.router=r,this.zone=n,this.signatureBook={currentAction:{},consigne:"",documents:[],attachments:[],resList:[],resListIndex:0,lang:{}},this.rightSelectedThumbnail=0,this.leftSelectedThumbnail=0,this.rightViewerLink="",this.leftViewerLink="",this.headerTab=1,this.showTopRightPanel=!1,this.showTopLeftPanel=!1,this.showResLeftPanel=!0,this.showLeftPanel=!0,this.showRightPanel=!0,this.showAttachmentPanel=!1,this.showSignaturesPanel=!1,this.loading=!1,this.loadingSign=!1,this.leftContentWidth="44%",this.rightContentWidth="44%",this.notesViewerLink="",this.visaViewerLink="",this.histViewerLink="",this.linksViewerLink="",this.attachmentsViewerLink="",window.angularSignatureBookComponent={componentAfterAttach:function(t){return o.processAfterAttach(t)},componentAfterAction:function(){return o.processAfterAction()},componentAfterNotes:function(){return o.processAfterNotes()}}}return t.prototype.prepareSignatureBook=function(){$j("#inner_content").remove(),$j("#header").remove(),$j("#viewBasketsTitle").remove(),$j("#homePageWelcomeTitle").remove(),$j("#footer").remove(),$j("#container").width("99%")},t.prototype.ngOnInit=function(){var t=this;this.prepareSignatureBook(),this.coreUrl=angularGlobals.coreUrl,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(t.coreUrl+"rest/"+t.basketId+"/signatureBook/"+t.resId).map(function(t){return t.json()}).subscribe(function(e){return e.error?(location.hash="",void(location.search="")):(t.signatureBook=e,t.headerTab=1,t.leftSelectedThumbnail=0,t.rightSelectedThumbnail=0,t.leftViewerLink="",t.rightViewerLink="",t.showLeftPanel=!0,t.showRightPanel=!0,t.showResLeftPanel=!0,t.showTopLeftPanel=!1,t.showTopRightPanel=!1,t.showAttachmentPanel=!1,t.notesViewerLink="index.php?display=true&module=notes&page=notes&identifier="+t.resId+"&origin=document&coll_id=letterbox_coll&load&size=full",t.visaViewerLink="index.php?display=true&page=show_visa_tab&module=visa&resId="+t.resId+"&collId=letterbox_coll&visaStep=true",t.histViewerLink="index.php?display=true&page=show_history_tab&resId="+t.resId+"&collId=letterbox_coll",t.linksViewerLink="index.php?display=true&page=show_links_tab&id="+t.resId,t.attachmentsViewerLink="index.php?display=true&module=attachments&page=frame_list_attachments&resId="+t.resId+"&noModification=true&template_selected=documents_list_attachments_simple&load&attach_type_exclude=converted_pdf,print_folder",t.leftContentWidth="44%",t.rightContentWidth="44%",t.signatureBook.documents[0]&&(t.leftViewerLink=t.signatureBook.documents[0].viewerLink,"outgoing"==t.signatureBook.documents[0].category_id&&(t.headerTab=3)),t.signatureBook.attachments[0]&&(t.rightViewerLink=t.signatureBook.attachments[0].viewerLink),t.displayPanel("RESLEFT"),t.loading=!1,void setTimeout(function(){$j("#rightPanelContent").niceScroll({touchbehavior:!1,cursorcolor:"#666",cursoropacitymax:.6,cursorwidth:4}),$j(".pjSign").niceScroll({touchbehavior:!1,cursorcolor:"#666",cursoropacitymax:.6,cursorwidth:4}),$j("#obsVersion").tooltipster({interactive:!0})},0))})})},t.prototype.ngOnDestroy=function(){delete window.angularSignatureBookComponent},t.prototype.processAfterAttach=function(t){var e=this;this.zone.run(function(){return e.refreshAttachments(t)})},t.prototype.processAfterNotes=function(){var t=this;this.zone.run(function(){return t.refreshNotes()})},t.prototype.processAfterAction=function(){for(var t=this,e=-1,r=this.signatureBook.resList.length,n=0;r>n;n++)this.signatureBook.resList[n].res_id==this.resId&&(this.signatureBook.resList[n+1]?e=this.signatureBook.resList[n+1].res_id:n>0&&(e=this.signatureBook.resList[n-1].res_id));unlockDocument(this.resId),e>=0?($j("#send").removeAttr("disabled"),$j("#send").css("opacity","1"),this.zone.run(function(){return t.changeLocation(e,"action")})):this.zone.run(function(){return t.backToBasket()})},t.prototype.changeSignatureBookLeftContent=function(t){this.headerTab=t,this.showTopLeftPanel=!1},t.prototype.changeRightViewer=function(t){this.showAttachmentPanel=!1,this.rightViewerLink=this.signatureBook.attachments[t].viewerLink,this.rightSelectedThumbnail=t},t.prototype.changeLeftViewer=function(t){this.leftViewerLink=this.signatureBook.documents[t].viewerLink,this.leftSelectedThumbnail=t},t.prototype.displayPanel=function(t){var e=this;"TOPRIGHT"==t?this.showTopRightPanel=!this.showTopRightPanel:"TOPLEFT"==t?this.showTopLeftPanel=!this.showTopLeftPanel:"LEFT"==t?(this.showLeftPanel=!this.showLeftPanel,this.showResLeftPanel=!1,this.showLeftPanel?(this.rightContentWidth="48%",this.leftContentWidth="48%",$j("#hideLeftContent").css("background","#CEE9F1")):(this.rightContentWidth="96%",$j("#hideLeftContent").css("background","none"))):"RESLEFT"==t?(this.showResLeftPanel=!this.showResLeftPanel,this.showResLeftPanel?(this.rightContentWidth="44%",this.leftContentWidth="44%",0==this.signatureBook.resList.length&&this.http.get(this.coreUrl+"rest/"+this.basketId+"/signatureBook/resList").map(function(t){return t.json()}).subscribe(function(t){e.signatureBook.resList=t.resList,e.signatureBook.resList.forEach(function(t,r){t.res_id==e.resId&&(e.signatureBook.resListIndex=r)}),setTimeout(function(){$j("#resListContent").niceScroll({touchbehavior:!1,cursorcolor:"#666",cursoropacitymax:.6,cursorwidth:4}),$j("#resListContent").scrollTop(0),$j("#resListContent").scrollTop($j(".resListContentFrameSelected").offset().top-42)},0)})):(this.rightContentWidth="48%",this.leftContentWidth="48%")):"MIDDLE"==t&&(this.showRightPanel=!this.showRightPanel,this.showResLeftPanel=!1,this.showRightPanel?(this.rightContentWidth="48%",this.leftContentWidth="48%",$j("#contentLeft").css("border-right","solid 1px")):(this.leftContentWidth="96%",$j("#contentLeft").css("border-right","none")))},t.prototype.displayAttachmentPanel=function(){this.showAttachmentPanel=!this.showAttachmentPanel,this.rightSelectedThumbnail=0,this.signatureBook.attachments[0]&&(this.rightViewerLink=this.signatureBook.attachments[0].viewerLink)},t.prototype.refreshAttachments=function(t){var e=this;"rightContent"==t?this.http.get(this.coreUrl+"rest/signatureBook/"+this.resId+"/incomingMailAttachments").map(function(t){return t.json()}).subscribe(function(t){e.signatureBook.documents=t}):this.http.get(this.coreUrl+"rest/signatureBook/"+this.resId+"/attachments").map(function(t){return t.json()}).subscribe(function(r){var n=0;if("add"==t){var o=!1;r.forEach(function(t,r){o||e.signatureBook.attachments[r]&&t.res_id==e.signatureBook.attachments[r].res_id||(n=r,o=!0)})}else if("edit"==t){var i=e.signatureBook.attachments[e.rightSelectedThumbnail].res_id;r.forEach(function(t,e){t.res_id==i&&(n=e)})}e.signatureBook.attachments=r,"add"==t||"edit"==t?e.changeRightViewer(n):"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){if(this.signatureBook.attachments.length<=1)var r=confirm("Attention, ceci est votre dernière pièce jointe pour ce courrier, voulez-vous vraiment la supprimer ?");else var r=confirm("Voulez-vous vraiment supprimer la pièce jointe ?");if(r){var n;0==t.res_id?n=t.res_id_version:0==t.res_id_version&&(n=t.res_id),this.http.get("index.php?display=true&module=attachments&page=del_attachment&id="+n+"&relation="+t.relation+"&rest=true").subscribe(function(){e.refreshAttachments("del")})}}},t.prototype.refreshNotes=function(){var t=this;this.http.get(this.coreUrl+"rest/res/"+this.resId+"/notes/count").map(function(t){return t.json()}).subscribe(function(e){t.signatureBook.nbNotes=e})},t.prototype.signFile=function(t,e){var r=this;if(!this.loadingSign&&this.signatureBook.canSign){this.loadingSign=!0;var n="index.php?display=true&module=visa&page=sign_file&collId=letterbox_coll&resIdMaster="+this.resId+"&signatureId="+e.id;0==t.res_id?n+="outgoing_mail"==t.attachment_type&&"outgoing"==this.signatureBook.documents[0].category_id?"&isVersion&isOutgoing&id="+t.res_id_version:"&isVersion&id="+t.res_id_version:0==t.res_id_version&&(n+="outgoing_mail"==t.attachment_type&&"outgoing"==this.signatureBook.documents[0].category_id?"&isOutgoing&id="+t.res_id:"&id="+t.res_id),this.http.get(n,e).map(function(t){return t.json()}).subscribe(function(t){if(0==t.status){r.rightViewerLink="index.php?display=true&module=attachments&page=view_attachment&res_id_master="+r.resId+"&id="+t.new_id+"&isVersion=false",r.signatureBook.attachments[r.rightSelectedThumbnail].viewerLink=r.rightViewerLink,r.signatureBook.attachments[r.rightSelectedThumbnail].status="SIGN",r.signatureBook.attachments[r.rightSelectedThumbnail].idToDl=t.new_id;var e=!0;r.signatureBook.attachments.forEach(function(t){t.sign&&"SIGN"!=t.status&&(e=!1)}),r.signatureBook.resList.length>0&&(r.signatureBook.resList[r.signatureBook.resListIndex].allSigned=e)}else alert(t.error);r.showSignaturesPanel=!1,r.loadingSign=!1})}},t.prototype.unsignFile=function(t){var e,r,n,o=this;0==t.res_id?(r=t.res_id_version,e="res_version_attachments",n="true"):0==t.res_id_version&&(r=t.res_id,e="res_attachments",n="false"),this.http.put(this.coreUrl+"rest/"+e+"/"+r+"/unsign",{},{}).map(function(t){return t.json()}).subscribe(function(e){"OK"==e.status?(o.rightViewerLink="index.php?display=true&module=attachments&page=view_attachment&res_id_master="+o.resId+"&id="+t.viewerNoSignId+"&isVersion="+n,o.signatureBook.attachments[o.rightSelectedThumbnail].viewerLink=o.rightViewerLink,o.signatureBook.attachments[o.rightSelectedThumbnail].status="A_TRA",o.signatureBook.attachments[o.rightSelectedThumbnail].idToDl=r,o.signatureBook.resList.length>0&&(o.signatureBook.resList[o.signatureBook.resListIndex].allSigned=!1)):alert(e.error)})},t.prototype.backToBasket=function(){unlockDocument(this.resId),location.hash="",location.reload()},t.prototype.backToDetails=function(){unlockDocument(this.resId),location.hash="",location.search="?page=details&dir=indexing_searching&id="+this.resId},t.prototype.changeLocation=function(t,e){var r=this;this.http.get(this.coreUrl+"rest/res/"+t+"/lock").map(function(t){return t.json()}).subscribe(function(n){if(n.lock)"view"==e?alert("Courrier verouillé par "+n.lockBy):"action"==e&&(alert("Courrier suivant verouillé par "+n.lockBy),r.backToBasket());else{var o="/"+r.basketId+"/signatureBook/"+t;r.router.navigate([o])}})},t.prototype.validForm=function(){var t=this;""!=$j("#signatureBookActions option:selected")[0].value?(unlockDocument(this.resId),0==this.signatureBook.resList.length&&this.http.get(this.coreUrl+"rest/"+this.basketId+"/signatureBook/resList").map(function(t){return t.json()}).subscribe(function(e){t.signatureBook.resList=e.resList,valid_action_form("empty","index.php?display=true&page=manage_action&module=core",t.signatureBook.currentAction.id,t.resId,"res_letterbox","null","letterbox_coll","page",!1,[$j("#signatureBookActions option:selected")[0].value])})):alert("Aucune action choisie")},t}();l=n([i.Component({templateUrl:angularGlobals["signature-bookView"]}),o("design:paramtypes",[s.Http,u.ActivatedRoute,u.Router,i.NgZone])],l),r.SignatureBookComponent=l},{"@angular/core":8,"@angular/http":10,"@angular/platform-browser":12,"@angular/router":13,"rxjs/add/operator/map":24}],5:[function(t,e,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n=t("@angular/platform-browser-dynamic"),o=t("@angular/core"),i=t("./app/app.module");o.enableProdMode(),n.platformBrowserDynamic().bootstrapModule(i.AppModule)},{"./app/app.module":2,"@angular/core":8,"@angular/platform-browser-dynamic":11}],6:[function(e,r,n){!function(o,i){"object"==typeof n&&"undefined"!=typeof r?i(n,e("@angular/core")):"function"==typeof t&&t.amd?t(["exports","@angular/core"],i):i((o.ng=o.ng||{},o.ng.common=o.ng.common||{}),o.ng.core)}(this,function(t,e){"use strict";function r(t,e){return t&&e.startsWith(t)?e.substring(t.length):e}function n(t){return t.replace(/\/index.html$/,"")}function o(t,e,r){var n="="+t;if(e.indexOf(n)>-1)return n;if(n=r.getPluralCategory(t),e.indexOf(n)>-1)return n;if(e.indexOf("other")>-1)return"other";throw new Error('No plural message found for value "'+t+'"')}function i(t,e){"string"==typeof e&&(e=parseInt(e,10));var r=e,n=r.toString().replace(/^[^.]*\.?/,""),o=Math.floor(Math.abs(r)),i=n.length,s=parseInt(n,10),a=parseInt(r.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===r?H.One:H.Other;case"agq":case"bas":case"cu":case"dav":case"dje":case"dua":case"dyo":case"ebu":case"ewo":case"guz":case"kam":case"khq":case"ki":case"kln":case"kok":case"ksf":case"lrc":case"lu":case"luo":case"luy":case"mer":case"mfe":case"mgh":case"mua":case"mzn":case"nmg":case"nus":case"qu":case"rn":case"rw":case"sbp":case"twq":case"vai":case"yav":case"yue":case"zgh":case"ak":case"ln":case"mg":case"pa":case"ti":return r===Math.floor(r)&&r>=0&&1>=r?H.One:H.Other;case"am":case"as":case"bn":case"fa":case"gu":case"hi":case"kn":case"mr":case"zu":return 0===o||1===r?H.One:H.Other;case"ar":return 0===r?H.Zero:1===r?H.One:2===r?H.Two:r%100===Math.floor(r%100)&&r%100>=3&&10>=r%100?H.Few:r%100===Math.floor(r%100)&&r%100>=11&&99>=r%100?H.Many:H.Other;case"ast":case"ca":case"de":case"en":case"et":case"fi":case"fy":case"gl":case"it":case"nl":case"sv":case"sw":case"ur":case"yi":return 1===o&&0===i?H.One:H.Other;case"be":return r%10===1&&r%100!==11?H.One:r%10===Math.floor(r%10)&&r%10>=2&&4>=r%10&&!(r%100>=12&&14>=r%100)?H.Few:r%10===0||r%10===Math.floor(r%10)&&r%10>=5&&9>=r%10||r%100===Math.floor(r%100)&&r%100>=11&&14>=r%100?H.Many:H.Other;case"br":return r%10===1&&r%100!==11&&r%100!==71&&r%100!==91?H.One:r%10===2&&r%100!==12&&r%100!==72&&r%100!==92?H.Two:r%10===Math.floor(r%10)&&(r%10>=3&&4>=r%10||r%10===9)&&!(r%100>=10&&19>=r%100||r%100>=70&&79>=r%100||r%100>=90&&99>=r%100)?H.Few:0!==r&&r%1e6===0?H.Many:H.Other;case"bs":case"hr":case"sr":return 0===i&&o%10===1&&o%100!==11||s%10===1&&s%100!==11?H.One:0===i&&o%10===Math.floor(o%10)&&o%10>=2&&4>=o%10&&!(o%100>=12&&14>=o%100)||s%10===Math.floor(s%10)&&s%10>=2&&4>=s%10&&!(s%100>=12&&14>=s%100)?H.Few:H.Other;case"cs":case"sk":return 1===o&&0===i?H.One:o===Math.floor(o)&&o>=2&&4>=o&&0===i?H.Few:0!==i?H.Many:H.Other;case"cy":return 0===r?H.Zero:1===r?H.One:2===r?H.Two:3===r?H.Few:6===r?H.Many:H.Other;case"da":return 1===r||0!==a&&(0===o||1===o)?H.One:H.Other;case"dsb":case"hsb":return 0===i&&o%100===1||s%100===1?H.One:0===i&&o%100===2||s%100===2?H.Two:0===i&&o%100===Math.floor(o%100)&&o%100>=3&&4>=o%100||s%100===Math.floor(s%100)&&s%100>=3&&4>=s%100?H.Few:H.Other;case"ff":case"fr":case"hy":case"kab":return 0===o||1===o?H.One:H.Other;case"fil":return 0===i&&(1===o||2===o||3===o)||0===i&&o%10!==4&&o%10!==6&&o%10!==9||0!==i&&s%10!==4&&s%10!==6&&s%10!==9?H.One:H.Other;case"ga":return 1===r?H.One:2===r?H.Two:r===Math.floor(r)&&r>=3&&6>=r?H.Few:r===Math.floor(r)&&r>=7&&10>=r?H.Many:H.Other;case"gd":return 1===r||11===r?H.One:2===r||12===r?H.Two:r===Math.floor(r)&&(r>=3&&10>=r||r>=13&&19>=r)?H.Few:H.Other;case"gv":return 0===i&&o%10===1?H.One:0===i&&o%10===2?H.Two:0!==i||o%100!==0&&o%100!==20&&o%100!==40&&o%100!==60&&o%100!==80?0!==i?H.Many:H.Other:H.Few;case"he":return 1===o&&0===i?H.One:2===o&&0===i?H.Two:0!==i||r>=0&&10>=r||r%10!==0?H.Other:H.Many;case"is":return 0===a&&o%10===1&&o%100!==11||0!==a?H.One:H.Other;case"ksh":return 0===r?H.Zero:1===r?H.One:H.Other;case"kw":case"naq":case"se":case"smn":return 1===r?H.One:2===r?H.Two:H.Other;case"lag":return 0===r?H.Zero:0!==o&&1!==o||0===r?H.Other:H.One;case"lt":return r%10!==1||r%100>=11&&19>=r%100?r%10===Math.floor(r%10)&&r%10>=2&&9>=r%10&&!(r%100>=11&&19>=r%100)?H.Few:0!==s?H.Many:H.Other:H.One;case"lv":case"prg":return r%10===0||r%100===Math.floor(r%100)&&r%100>=11&&19>=r%100||2===i&&s%100===Math.floor(s%100)&&s%100>=11&&19>=s%100?H.Zero:r%10===1&&r%100!==11||2===i&&s%10===1&&s%100!==11||2!==i&&s%10===1?H.One:H.Other; +!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,r,n){function o(s,a){if(!r[s]){if(!t[s]){var u="function"==typeof require&&require;if(!a&&u)return u(s,!0);if(i)return i(s,!0);var c=new Error("Cannot find module '"+s+"'");throw c.code="MODULE_NOT_FOUND",c}var l=r[s]={exports:{}};t[s][0].call(l.exports,function(e){var r=t[s][1][e];return o(r?r:e)},l,l.exports,e,t,r,n)}return r[s].exports}for(var i="function"==typeof require&&require,s=0;s<n.length;s++)o(n[s]);return o}({1:[function(t,e,r){"use strict";var n=this&&this.__decorate||function(t,e,r,n){var o,i=arguments.length,s=3>i?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(s=(3>i?o(s):i>3?o(e,r,s):o(e,r))||s);return i>3&&s&&Object.defineProperty(e,r,s),s};Object.defineProperty(r,"__esModule",{value:!0});var o=t("@angular/core"),i=function(){function t(){}return t}();i=n([o.Component({selector:"my-app",template:"<router-outlet></router-outlet>"})],i),r.AppComponent=i},{"@angular/core":8}],2:[function(t,e,r){"use strict";var n=this&&this.__decorate||function(t,e,r,n){var o,i=arguments.length,s=3>i?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(s=(3>i?o(s):i>3?o(e,r,s):o(e,r))||s);return i>3&&s&&Object.defineProperty(e,r,s),s};Object.defineProperty(r,"__esModule",{value:!0});var o=t("@angular/core"),i=t("@angular/platform-browser"),s=t("@angular/router"),a=t("@angular/http"),u=t("@angular/forms"),c=t("./app.component"),l=t("./profile.component"),p=t("./signature-book.component"),h=function(){function t(){}return t}();h=n([o.NgModule({imports:[i.BrowserModule,u.FormsModule,s.RouterModule.forRoot([{path:"profile",component:l.ProfileComponent},{path:":basketId/signatureBook/:resId",component:p.SignatureBookComponent},{path:"**",redirectTo:"",pathMatch:"full"}],{useHash:!0}),a.HttpModule],declarations:[c.AppComponent,l.ProfileComponent,p.SignatureBookComponent,p.SafeUrlPipe],bootstrap:[c.AppComponent]})],h),r.AppModule=h},{"./app.component":1,"./profile.component":3,"./signature-book.component":4,"@angular/core":8,"@angular/forms":9,"@angular/http":10,"@angular/platform-browser":12,"@angular/router":13}],3:[function(t,e,r){"use strict";var n=this&&this.__decorate||function(t,e,r,n){var o,i=arguments.length,s=3>i?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(s=(3>i?o(s):i>3?o(e,r,s):o(e,r))||s);return i>3&&s&&Object.defineProperty(e,r,s),s},o=this&&this.__metadata||function(t,e){return"object"==typeof Reflect&&"function"==typeof Reflect.metadata?Reflect.metadata(t,e):void 0};Object.defineProperty(r,"__esModule",{value:!0});var i=t("@angular/core"),s=t("@angular/http");t("rxjs/add/operator/map");var a=function(){function t(t,e){var r=this;this.http=t,this.zone=e,this.user={lang:{}},this.passwordModel={currentPassword:"",newPassword:"",reNewPassword:""},this.signatureModel={base64:"",base64ForJs:"",name:"",type:"",size:0,label:""},this.mailSignatureModel={selected:0,htmlBody:"",title:""},this.showPassword=!1,this.selectedSignature=-1,this.selectedSignatureLabel="",this.resultInfo="",this.loading=!1,window.angularProfileComponent={componentAfterUpload:function(t){return r.processAfterUpload(t)}}}return t.prototype.prepareProfile=function(){if($j("#inner_content").remove(),$j("#menunav").hide(),$j("#divList").remove(),$j("#magicContactsTable").remove(),$j("#manageBasketsOrderTable").remove(),$j("#container").width("99%"),$j("#content h1")[0]&&$j("#content h1")[0]!=$j("my-app h1")[0]&&$j("#content h1")[0].remove(),Prototype.BrowserFeatures.ElementExtensions){var t=["collapse","dropdown","modal","tooltip","popover","tab"];disablePrototypeJS("show",t),disablePrototypeJS("hide",t)}tinymce.baseURL="../../node_modules/tinymce",tinymce.suffix=".min",tinymce.init({selector:"textarea#emailSignature",statusbar:!1,language:"fr_FR",language_url:"tools/tinymce/langs/fr_FR.js",height:"200",plugins:["textcolor"],external_plugins:{bdesk_photo:"../../apps/maarch_entreprise/tools/tinymce/bdesk_photo/plugin.min.js"},menubar:!1,toolbar:"undo | bold italic underline | alignleft aligncenter alignright | bdesk_photo | forecolor",theme_buttons1_add:"fontselect,fontsizeselect",theme_buttons2_add_before:"cut,copy,paste,pastetext,pasteword,separator,search,replace,separator",theme_buttons2_add:"separator,insertdate,inserttime,preview,separator,forecolor,backcolor",theme_buttons3_add_before:"tablecontrols,separator",theme_buttons3_add:"separator,print,separator,ltr,rtl,separator,fullscreen,separator,insertlayer,moveforward,movebackward,absolut",theme_toolbar_align:"left",theme_advanced_toolbar_location:"top",theme_styles:"Header 1=header1;Header 2=header2;Header 3=header3;Table Row=tableRow1"})},t.prototype.updateBreadcrumb=function(t){$j("#ariane")[0]&&($j("#ariane")[0].innerHTML="<a href='index.php?reinit=true'>"+t+"</a> > Profil")},t.prototype.ngOnInit=function(){var t=this;this.prepareProfile(),this.updateBreadcrumb(angularGlobals.applicationName),this.coreUrl=angularGlobals.coreUrl,this.loading=!0,this.http.get(this.coreUrl+"rest/user/profile").map(function(t){return t.json()}).subscribe(function(e){t.user=e,t.loading=!1})},t.prototype.processAfterUpload=function(t){var e=this;this.zone.run(function(){return e.resfreshUpload(t)})},t.prototype.resfreshUpload=function(t){this.signatureModel.size<=2e6?(this.signatureModel.base64=t.replace(/^data:.*?;base64,/,""),this.signatureModel.base64ForJs=t):(this.signatureModel.name="",this.signatureModel.size=0,this.signatureModel.type="",this.signatureModel.base64="",this.signatureModel.base64ForJs="",this.resultInfo="Taille maximum de fichier dépassée (2 MB)",$j("#resultInfo").removeClass().addClass("alert alert-danger alert-dismissible"),$j("#resultInfo").fadeTo(3e3,500).slideUp(500,function(){$j("#resultInfo").slideUp(500)}))},t.prototype.displayPassword=function(){this.showPassword=!this.showPassword},t.prototype.clickOnUploader=function(t){$j("#"+t).click()},t.prototype.uploadSignatureTrigger=function(t){if(t.target.files&&t.target.files[0]){var e=new FileReader;this.signatureModel.name=t.target.files[0].name,this.signatureModel.size=t.target.files[0].size,this.signatureModel.type=t.target.files[0].type,""==this.signatureModel.label&&(this.signatureModel.label=this.signatureModel.name),e.readAsDataURL(t.target.files[0]),e.onload=function(t){window.angularProfileComponent.componentAfterUpload(t.target.result)}}},t.prototype.displaySignatureEditionForm=function(t){this.selectedSignature=t,this.selectedSignatureLabel=this.user.signatures[t].signature_label},t.prototype.changeEmailSignature=function(){var t=$j("#emailSignaturesSelect").prop("selectedIndex");this.mailSignatureModel.selected=t,t>0?(tinymce.get("emailSignature").setContent(this.user.emailSignatures[t-1].html_body),this.mailSignatureModel.title=this.user.emailSignatures[t-1].title):(tinymce.get("emailSignature").setContent(""),this.mailSignatureModel.title="")},t.prototype.getAbsenceInfos=function(){var t=this;this.http.get(this.coreUrl+"rest/currentUser/baskets/absence").map(function(t){return t.json()}).subscribe(function(){t.loading=!1})},t.prototype.updatePassword=function(){var t=this;this.http.put(this.coreUrl+"rest/currentUser/password",this.passwordModel).map(function(t){return t.json()}).subscribe(function(e){e.errors?(t.resultInfo=e.errors,$j("#resultInfo").removeClass().addClass("alert alert-danger alert-dismissible"),$j("#resultInfo").fadeTo(3e3,500).slideUp(500,function(){$j("#resultInfo").slideUp(500)})):(t.showPassword=!1,t.passwordModel={currentPassword:"",newPassword:"",reNewPassword:""},t.resultInfo=e.success,$j("#resultInfo").removeClass().addClass("alert alert-success alert-dismissible"),$j("#resultInfo").fadeTo(3e3,500).slideUp(500,function(){$j("#resultInfo").slideUp(500)}))})},t.prototype.submitEmailSignature=function(){var t=this;this.mailSignatureModel.htmlBody=tinymce.get("emailSignature").getContent(),this.http.post(this.coreUrl+"rest/currentUser/emailSignature",this.mailSignatureModel).map(function(t){return t.json()}).subscribe(function(e){e.errors?(t.resultInfo=e.errors,$j("#resultInfo").removeClass().addClass("alert alert-danger alert-dismissible"),$j("#resultInfo").fadeTo(3e3,500).slideUp(500,function(){$j("#resultInfo").slideUp(500)})):(t.user.emailSignatures=e.emailSignatures,t.mailSignatureModel={selected:0,htmlBody:"",title:""},tinymce.get("emailSignature").setContent(""),t.resultInfo=e.success,$j("#resultInfo").removeClass().addClass("alert alert-success alert-dismissible"),$j("#resultInfo").fadeTo(3e3,500).slideUp(500,function(){$j("#resultInfo").slideUp(500)}))})},t.prototype.updateEmailSignature=function(){var t=this;this.mailSignatureModel.htmlBody=tinymce.get("emailSignature").getContent();var e=this.user.emailSignatures[this.mailSignatureModel.selected-1].id;this.http.put(this.coreUrl+"rest/currentUser/emailSignature/"+e,this.mailSignatureModel).map(function(t){return t.json()}).subscribe(function(e){e.errors?(t.resultInfo=e.errors,$j("#resultInfo").removeClass().addClass("alert alert-danger alert-dismissible"),$j("#resultInfo").fadeTo(3e3,500).slideUp(500,function(){$j("#resultInfo").slideUp(500)})):(t.user.emailSignatures[t.mailSignatureModel.selected-1].title=e.emailSignature.title,t.user.emailSignatures[t.mailSignatureModel.selected-1].html_body=e.emailSignature.html_body,t.resultInfo=e.success,$j("#resultInfo").removeClass().addClass("alert alert-success alert-dismissible"),$j("#resultInfo").fadeTo(3e3,500).slideUp(500,function(){$j("#resultInfo").slideUp(500)}))})},t.prototype.deleteEmailSignature=function(){var t=this,e=confirm("Voulez-vous vraiment supprimer la signature de mail ?");if(e){var r=this.user.emailSignatures[this.mailSignatureModel.selected-1].id;this.http["delete"](this.coreUrl+"rest/currentUser/emailSignature/"+r).map(function(t){return t.json()}).subscribe(function(e){e.errors?(t.resultInfo=e.errors,$j("#resultInfo").removeClass().addClass("alert alert-danger alert-dismissible"),$j("#resultInfo").fadeTo(3e3,500).slideUp(500,function(){$j("#resultInfo").slideUp(500)})):(t.user.emailSignatures=e.emailSignatures,t.mailSignatureModel={selected:0,htmlBody:"",title:""},tinymce.get("emailSignature").setContent(""),t.resultInfo=e.success,$j("#resultInfo").removeClass().addClass("alert alert-success alert-dismissible"),$j("#resultInfo").fadeTo(3e3,500).slideUp(500,function(){$j("#resultInfo").slideUp(500)}))})}},t.prototype.submitSignature=function(){var t=this;this.http.post(this.coreUrl+"rest/currentUser/signature",this.signatureModel).map(function(t){return t.json()}).subscribe(function(e){e.errors?(t.resultInfo=e.errors,$j("#resultInfo").removeClass().addClass("alert alert-danger alert-dismissible"),$j("#resultInfo").fadeTo(3e3,500).slideUp(500,function(){$j("#resultInfo").slideUp(500)})):(t.user.signatures=e.signatures,t.signatureModel={base64:"",base64ForJs:"",name:"",type:"",size:0,label:""},t.resultInfo=e.success,$j("#resultInfo").removeClass().addClass("alert alert-success alert-dismissible"),$j("#resultInfo").fadeTo(3e3,500).slideUp(500,function(){$j("#resultInfo").slideUp(500)}))})},t.prototype.updateSignature=function(){var t=this,e=this.user.signatures[this.selectedSignature].id;this.http.put(this.coreUrl+"rest/currentUser/signature/"+e,{label:this.selectedSignatureLabel}).map(function(t){return t.json()}).subscribe(function(e){e.errors?(t.resultInfo=e.errors,$j("#resultInfo").removeClass().addClass("alert alert-danger alert-dismissible"),$j("#resultInfo").fadeTo(3e3,500).slideUp(500,function(){$j("#resultInfo").slideUp(500)})):(t.user.signatures[t.selectedSignature].signature_label=e.signature.signature_label,t.selectedSignature=-1,t.selectedSignatureLabel="",t.resultInfo=e.success,$j("#resultInfo").removeClass().addClass("alert alert-success alert-dismissible"),$j("#resultInfo").fadeTo(3e3,500).slideUp(500,function(){$j("#resultInfo").slideUp(500)}))})},t.prototype.deleteSignature=function(t){var e=this,r=confirm("Voulez-vous vraiment supprimer la signature ?");r&&this.http["delete"](this.coreUrl+"rest/currentUser/signature/"+t).map(function(t){return t.json()}).subscribe(function(t){t.errors?(e.resultInfo=t.errors,$j("#resultInfo").removeClass().addClass("alert alert-danger alert-dismissible"),$j("#resultInfo").fadeTo(3e3,500).slideUp(500,function(){$j("#resultInfo").slideUp(500)})):(e.user.signatures=t.signatures,e.resultInfo=t.success,$j("#resultInfo").removeClass().addClass("alert alert-success alert-dismissible"),$j("#resultInfo").fadeTo(3e3,500).slideUp(500,function(){$j("#resultInfo").slideUp(500)}))})},t.prototype.onSubmit=function(){var t=this;this.http.put(this.coreUrl+"rest/user/profile",this.user).map(function(t){return t.json()}).subscribe(function(e){e.errors?(t.resultInfo=e.errors,$j("#resultInfo").removeClass().addClass("alert alert-danger alert-dismissible"),$j("#resultInfo").fadeTo(3e3,500).slideUp(500,function(){$j("#resultInfo").slideUp(500)})):(t.resultInfo=e.success,$j("#resultInfo").removeClass().addClass("alert alert-success alert-dismissible"),$j("#resultInfo").fadeTo(3e3,500).slideUp(500,function(){$j("#resultInfo").slideUp(500)}))},function(t){alert(t.statusText)})},t.prototype.absenceModal=function(){createModal(this.user.absence,"modal_redirect","auto","950px"),autocomplete(this.user.countBasketsForAbsence,"index.php?display=true&module=basket&page=autocomplete_users_list")},t}();a=n([i.Component({templateUrl:angularGlobals.profileView,styleUrls:["../../node_modules/bootstrap/dist/css/bootstrap.min.css","js/angular/app/Css/profile.component.css"]}),o("design:paramtypes",[s.Http,i.NgZone])],a),r.ProfileComponent=a},{"@angular/core":8,"@angular/http":10,"rxjs/add/operator/map":24}],4:[function(t,e,r){"use strict";var n=this&&this.__decorate||function(t,e,r,n){var o,i=arguments.length,s=3>i?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(s=(3>i?o(s):i>3?o(e,r,s):o(e,r))||s);return i>3&&s&&Object.defineProperty(e,r,s),s},o=this&&this.__metadata||function(t,e){return"object"==typeof Reflect&&"function"==typeof Reflect.metadata?Reflect.metadata(t,e):void 0};Object.defineProperty(r,"__esModule",{value:!0});var i=t("@angular/core"),s=t("@angular/http"),a=t("@angular/platform-browser"),u=t("@angular/router");t("rxjs/add/operator/map");var c=function(){function t(t){this.sanitizer=t}return t.prototype.transform=function(t){return this.sanitizer.bypassSecurityTrustResourceUrl(t)},t}();c=n([i.Pipe({name:"safeUrl"}),o("design:paramtypes",[a.DomSanitizer])],c),r.SafeUrlPipe=c;var l=function(){function t(t,e,r,n){var o=this;this.http=t,this.route=e,this.router=r,this.zone=n,this.signatureBook={currentAction:{},consigne:"",documents:[],attachments:[],resList:[],resListIndex:0,lang:{}},this.rightSelectedThumbnail=0,this.leftSelectedThumbnail=0,this.rightViewerLink="",this.leftViewerLink="",this.headerTab=1,this.showTopRightPanel=!1,this.showTopLeftPanel=!1,this.showResLeftPanel=!0,this.showLeftPanel=!0,this.showRightPanel=!0,this.showAttachmentPanel=!1,this.showSignaturesPanel=!1,this.loading=!1,this.loadingSign=!1,this.leftContentWidth="44%",this.rightContentWidth="44%",this.notesViewerLink="",this.visaViewerLink="",this.histViewerLink="",this.linksViewerLink="",this.attachmentsViewerLink="",window.angularSignatureBookComponent={componentAfterAttach:function(t){return o.processAfterAttach(t)},componentAfterAction:function(){return o.processAfterAction()},componentAfterNotes:function(){return o.processAfterNotes()}}}return t.prototype.prepareSignatureBook=function(){$j("#inner_content").remove(),$j("#header").remove(),$j("#viewBasketsTitle").remove(),$j("#homePageWelcomeTitle").remove(),$j("#footer").remove(),$j("#container").width("99%")},t.prototype.ngOnInit=function(){var t=this;this.prepareSignatureBook(),this.coreUrl=angularGlobals.coreUrl,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(t.coreUrl+"rest/"+t.basketId+"/signatureBook/"+t.resId).map(function(t){return t.json()}).subscribe(function(e){return e.error?(location.hash="",void(location.search="")):(t.signatureBook=e,t.headerTab=1,t.leftSelectedThumbnail=0,t.rightSelectedThumbnail=0,t.leftViewerLink="",t.rightViewerLink="",t.showLeftPanel=!0,t.showRightPanel=!0,t.showResLeftPanel=!0,t.showTopLeftPanel=!1,t.showTopRightPanel=!1,t.showAttachmentPanel=!1,t.notesViewerLink="index.php?display=true&module=notes&page=notes&identifier="+t.resId+"&origin=document&coll_id=letterbox_coll&load&size=full",t.visaViewerLink="index.php?display=true&page=show_visa_tab&module=visa&resId="+t.resId+"&collId=letterbox_coll&visaStep=true",t.histViewerLink="index.php?display=true&page=show_history_tab&resId="+t.resId+"&collId=letterbox_coll",t.linksViewerLink="index.php?display=true&page=show_links_tab&id="+t.resId,t.attachmentsViewerLink="index.php?display=true&module=attachments&page=frame_list_attachments&resId="+t.resId+"&noModification=true&template_selected=documents_list_attachments_simple&load&attach_type_exclude=converted_pdf,print_folder",t.leftContentWidth="44%",t.rightContentWidth="44%",t.signatureBook.documents[0]&&(t.leftViewerLink=t.signatureBook.documents[0].viewerLink,"outgoing"==t.signatureBook.documents[0].category_id&&(t.headerTab=3)),t.signatureBook.attachments[0]&&(t.rightViewerLink=t.signatureBook.attachments[0].viewerLink),t.displayPanel("RESLEFT"),t.loading=!1,void setTimeout(function(){$j("#rightPanelContent").niceScroll({touchbehavior:!1,cursorcolor:"#666",cursoropacitymax:.6,cursorwidth:4}),$j(".pjSign").niceScroll({touchbehavior:!1,cursorcolor:"#666",cursoropacitymax:.6,cursorwidth:4}),0==$j(".tooltipstered").length&&$j("#obsVersion").tooltipster({interactive:!0})},0))})})},t.prototype.ngOnDestroy=function(){delete window.angularSignatureBookComponent},t.prototype.processAfterAttach=function(t){var e=this;this.zone.run(function(){return e.refreshAttachments(t)})},t.prototype.processAfterNotes=function(){var t=this;this.zone.run(function(){return t.refreshNotes()})},t.prototype.processAfterAction=function(){for(var t=this,e=-1,r=this.signatureBook.resList.length,n=0;r>n;n++)this.signatureBook.resList[n].res_id==this.resId&&(this.signatureBook.resList[n+1]?e=this.signatureBook.resList[n+1].res_id:n>0&&(e=this.signatureBook.resList[n-1].res_id));unlockDocument(this.resId),e>=0?($j("#send").removeAttr("disabled"),$j("#send").css("opacity","1"),this.zone.run(function(){return t.changeLocation(e,"action")})):this.zone.run(function(){return t.backToBasket()})},t.prototype.changeSignatureBookLeftContent=function(t){this.headerTab=t,this.showTopLeftPanel=!1},t.prototype.changeRightViewer=function(t){this.showAttachmentPanel=!1,this.rightViewerLink=this.signatureBook.attachments[t].viewerLink,this.rightSelectedThumbnail=t},t.prototype.changeLeftViewer=function(t){this.leftViewerLink=this.signatureBook.documents[t].viewerLink,this.leftSelectedThumbnail=t},t.prototype.displayPanel=function(t){var e=this;"TOPRIGHT"==t?this.showTopRightPanel=!this.showTopRightPanel:"TOPLEFT"==t?this.showTopLeftPanel=!this.showTopLeftPanel:"LEFT"==t?(this.showLeftPanel=!this.showLeftPanel,this.showResLeftPanel=!1,this.showLeftPanel?(this.rightContentWidth="48%",this.leftContentWidth="48%",$j("#hideLeftContent").css("background","#CEE9F1")):(this.rightContentWidth="96%",$j("#hideLeftContent").css("background","none"))):"RESLEFT"==t?(this.showResLeftPanel=!this.showResLeftPanel,this.showResLeftPanel?(this.rightContentWidth="44%",this.leftContentWidth="44%",0==this.signatureBook.resList.length&&this.http.get(this.coreUrl+"rest/"+this.basketId+"/signatureBook/resList").map(function(t){return t.json()}).subscribe(function(t){e.signatureBook.resList=t.resList,e.signatureBook.resList.forEach(function(t,r){t.res_id==e.resId&&(e.signatureBook.resListIndex=r)}),setTimeout(function(){$j("#resListContent").niceScroll({touchbehavior:!1,cursorcolor:"#666",cursoropacitymax:.6,cursorwidth:4}),$j("#resListContent").scrollTop(0),$j("#resListContent").scrollTop($j(".resListContentFrameSelected").offset().top-42)},0)})):(this.rightContentWidth="48%",this.leftContentWidth="48%")):"MIDDLE"==t&&(this.showRightPanel=!this.showRightPanel,this.showResLeftPanel=!1,this.showRightPanel?(this.rightContentWidth="48%",this.leftContentWidth="48%",$j("#contentLeft").css("border-right","solid 1px")):(this.leftContentWidth="96%",$j("#contentLeft").css("border-right","none")))},t.prototype.displayAttachmentPanel=function(){this.showAttachmentPanel=!this.showAttachmentPanel,this.rightSelectedThumbnail=0,this.signatureBook.attachments[0]&&(this.rightViewerLink=this.signatureBook.attachments[0].viewerLink)},t.prototype.refreshAttachments=function(t){var e=this;"rightContent"==t?this.http.get(this.coreUrl+"rest/signatureBook/"+this.resId+"/incomingMailAttachments").map(function(t){return t.json()}).subscribe(function(t){e.signatureBook.documents=t}):this.http.get(this.coreUrl+"rest/signatureBook/"+this.resId+"/attachments").map(function(t){return t.json()}).subscribe(function(r){var n=0;if("add"==t){var o=!1;r.forEach(function(t,r){o||e.signatureBook.attachments[r]&&t.res_id==e.signatureBook.attachments[r].res_id||(n=r,o=!0)})}else if("edit"==t){var i=e.signatureBook.attachments[e.rightSelectedThumbnail].res_id;r.forEach(function(t,e){t.res_id==i&&(n=e)})}e.signatureBook.attachments=r,"add"==t||"edit"==t?e.changeRightViewer(n):"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){if(this.signatureBook.attachments.length<=1)var r=confirm("Attention, ceci est votre dernière pièce jointe pour ce courrier, voulez-vous vraiment la supprimer ?");else var r=confirm("Voulez-vous vraiment supprimer la pièce jointe ?");if(r){var n;0==t.res_id?n=t.res_id_version:0==t.res_id_version&&(n=t.res_id),this.http.get("index.php?display=true&module=attachments&page=del_attachment&id="+n+"&relation="+t.relation+"&rest=true").subscribe(function(){e.refreshAttachments("del")})}}},t.prototype.refreshNotes=function(){var t=this;this.http.get(this.coreUrl+"rest/res/"+this.resId+"/notes/count").map(function(t){return t.json()}).subscribe(function(e){t.signatureBook.nbNotes=e})},t.prototype.signFile=function(t,e){var r=this;if(!this.loadingSign&&this.signatureBook.canSign){this.loadingSign=!0;var n="index.php?display=true&module=visa&page=sign_file&collId=letterbox_coll&resIdMaster="+this.resId+"&signatureId="+e.id;0==t.res_id?n+="outgoing_mail"==t.attachment_type&&"outgoing"==this.signatureBook.documents[0].category_id?"&isVersion&isOutgoing&id="+t.res_id_version:"&isVersion&id="+t.res_id_version:0==t.res_id_version&&(n+="outgoing_mail"==t.attachment_type&&"outgoing"==this.signatureBook.documents[0].category_id?"&isOutgoing&id="+t.res_id:"&id="+t.res_id),this.http.get(n,e).map(function(t){return t.json()}).subscribe(function(t){if(0==t.status){r.rightViewerLink="index.php?display=true&module=attachments&page=view_attachment&res_id_master="+r.resId+"&id="+t.new_id+"&isVersion=false",r.signatureBook.attachments[r.rightSelectedThumbnail].viewerLink=r.rightViewerLink,r.signatureBook.attachments[r.rightSelectedThumbnail].status="SIGN",r.signatureBook.attachments[r.rightSelectedThumbnail].idToDl=t.new_id;var e=!0;r.signatureBook.attachments.forEach(function(t){t.sign&&"SIGN"!=t.status&&(e=!1)}),r.signatureBook.resList.length>0&&(r.signatureBook.resList[r.signatureBook.resListIndex].allSigned=e)}else alert(t.error);r.showSignaturesPanel=!1,r.loadingSign=!1})}},t.prototype.unsignFile=function(t){var e,r,n,o=this;0==t.res_id?(r=t.res_id_version,e="res_version_attachments",n="true"):0==t.res_id_version&&(r=t.res_id,e="res_attachments",n="false"),this.http.put(this.coreUrl+"rest/"+e+"/"+r+"/unsign",{},{}).map(function(t){return t.json()}).subscribe(function(e){"OK"==e.status?(o.rightViewerLink="index.php?display=true&module=attachments&page=view_attachment&res_id_master="+o.resId+"&id="+t.viewerNoSignId+"&isVersion="+n,o.signatureBook.attachments[o.rightSelectedThumbnail].viewerLink=o.rightViewerLink,o.signatureBook.attachments[o.rightSelectedThumbnail].status="A_TRA",o.signatureBook.attachments[o.rightSelectedThumbnail].idToDl=r,o.signatureBook.resList.length>0&&(o.signatureBook.resList[o.signatureBook.resListIndex].allSigned=!1)):alert(e.error)})},t.prototype.backToBasket=function(){unlockDocument(this.resId),location.hash="",location.reload()},t.prototype.backToDetails=function(){unlockDocument(this.resId),location.hash="",location.search="?page=details&dir=indexing_searching&id="+this.resId},t.prototype.changeLocation=function(t,e){var r=this;this.http.get(this.coreUrl+"rest/res/"+t+"/lock").map(function(t){return t.json()}).subscribe(function(n){if(n.lock)"view"==e?alert("Courrier verouillé par "+n.lockBy):"action"==e&&(alert("Courrier suivant verouillé par "+n.lockBy),r.backToBasket());else{var o="/"+r.basketId+"/signatureBook/"+t;r.router.navigate([o])}})},t.prototype.validForm=function(){var t=this;""!=$j("#signatureBookActions option:selected")[0].value?(unlockDocument(this.resId),0==this.signatureBook.resList.length&&this.http.get(this.coreUrl+"rest/"+this.basketId+"/signatureBook/resList").map(function(t){return t.json()}).subscribe(function(e){t.signatureBook.resList=e.resList,valid_action_form("empty","index.php?display=true&page=manage_action&module=core",t.signatureBook.currentAction.id,t.resId,"res_letterbox","null","letterbox_coll","page",!1,[$j("#signatureBookActions option:selected")[0].value])})):alert("Aucune action choisie")},t}();l=n([i.Component({templateUrl:angularGlobals["signature-bookView"]}),o("design:paramtypes",[s.Http,u.ActivatedRoute,u.Router,i.NgZone])],l),r.SignatureBookComponent=l},{"@angular/core":8,"@angular/http":10,"@angular/platform-browser":12,"@angular/router":13,"rxjs/add/operator/map":24}],5:[function(t,e,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n=t("@angular/platform-browser-dynamic"),o=t("@angular/core"),i=t("./app/app.module");o.enableProdMode(),n.platformBrowserDynamic().bootstrapModule(i.AppModule)},{"./app/app.module":2,"@angular/core":8,"@angular/platform-browser-dynamic":11}],6:[function(e,r,n){!function(o,i){"object"==typeof n&&"undefined"!=typeof r?i(n,e("@angular/core")):"function"==typeof t&&t.amd?t(["exports","@angular/core"],i):i((o.ng=o.ng||{},o.ng.common=o.ng.common||{}),o.ng.core)}(this,function(t,e){"use strict";function r(t,e){return t&&e.startsWith(t)?e.substring(t.length):e}function n(t){return t.replace(/\/index.html$/,"")}function o(t,e,r){var n="="+t;if(e.indexOf(n)>-1)return n;if(n=r.getPluralCategory(t),e.indexOf(n)>-1)return n;if(e.indexOf("other")>-1)return"other";throw new Error('No plural message found for value "'+t+'"')}function i(t,e){"string"==typeof e&&(e=parseInt(e,10));var r=e,n=r.toString().replace(/^[^.]*\.?/,""),o=Math.floor(Math.abs(r)),i=n.length,s=parseInt(n,10),a=parseInt(r.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===r?H.One:H.Other;case"agq":case"bas":case"cu":case"dav":case"dje":case"dua":case"dyo":case"ebu":case"ewo":case"guz":case"kam":case"khq":case"ki":case"kln":case"kok":case"ksf":case"lrc":case"lu":case"luo":case"luy":case"mer":case"mfe":case"mgh":case"mua":case"mzn":case"nmg":case"nus":case"qu":case"rn":case"rw":case"sbp":case"twq":case"vai":case"yav":case"yue":case"zgh":case"ak":case"ln":case"mg":case"pa":case"ti":return r===Math.floor(r)&&r>=0&&1>=r?H.One:H.Other;case"am":case"as":case"bn":case"fa":case"gu":case"hi":case"kn":case"mr":case"zu":return 0===o||1===r?H.One:H.Other;case"ar":return 0===r?H.Zero:1===r?H.One:2===r?H.Two:r%100===Math.floor(r%100)&&r%100>=3&&10>=r%100?H.Few:r%100===Math.floor(r%100)&&r%100>=11&&99>=r%100?H.Many:H.Other;case"ast":case"ca":case"de":case"en":case"et":case"fi":case"fy":case"gl":case"it":case"nl":case"sv":case"sw":case"ur":case"yi":return 1===o&&0===i?H.One:H.Other;case"be":return r%10===1&&r%100!==11?H.One:r%10===Math.floor(r%10)&&r%10>=2&&4>=r%10&&!(r%100>=12&&14>=r%100)?H.Few:r%10===0||r%10===Math.floor(r%10)&&r%10>=5&&9>=r%10||r%100===Math.floor(r%100)&&r%100>=11&&14>=r%100?H.Many:H.Other;case"br":return r%10===1&&r%100!==11&&r%100!==71&&r%100!==91?H.One:r%10===2&&r%100!==12&&r%100!==72&&r%100!==92?H.Two:r%10===Math.floor(r%10)&&(r%10>=3&&4>=r%10||r%10===9)&&!(r%100>=10&&19>=r%100||r%100>=70&&79>=r%100||r%100>=90&&99>=r%100)?H.Few:0!==r&&r%1e6===0?H.Many:H.Other;case"bs":case"hr":case"sr":return 0===i&&o%10===1&&o%100!==11||s%10===1&&s%100!==11?H.One:0===i&&o%10===Math.floor(o%10)&&o%10>=2&&4>=o%10&&!(o%100>=12&&14>=o%100)||s%10===Math.floor(s%10)&&s%10>=2&&4>=s%10&&!(s%100>=12&&14>=s%100)?H.Few:H.Other;case"cs":case"sk":return 1===o&&0===i?H.One:o===Math.floor(o)&&o>=2&&4>=o&&0===i?H.Few:0!==i?H.Many:H.Other;case"cy":return 0===r?H.Zero:1===r?H.One:2===r?H.Two:3===r?H.Few:6===r?H.Many:H.Other;case"da":return 1===r||0!==a&&(0===o||1===o)?H.One:H.Other;case"dsb":case"hsb":return 0===i&&o%100===1||s%100===1?H.One:0===i&&o%100===2||s%100===2?H.Two:0===i&&o%100===Math.floor(o%100)&&o%100>=3&&4>=o%100||s%100===Math.floor(s%100)&&s%100>=3&&4>=s%100?H.Few:H.Other;case"ff":case"fr":case"hy":case"kab":return 0===o||1===o?H.One:H.Other;case"fil":return 0===i&&(1===o||2===o||3===o)||0===i&&o%10!==4&&o%10!==6&&o%10!==9||0!==i&&s%10!==4&&s%10!==6&&s%10!==9?H.One:H.Other;case"ga":return 1===r?H.One:2===r?H.Two:r===Math.floor(r)&&r>=3&&6>=r?H.Few:r===Math.floor(r)&&r>=7&&10>=r?H.Many:H.Other;case"gd":return 1===r||11===r?H.One:2===r||12===r?H.Two:r===Math.floor(r)&&(r>=3&&10>=r||r>=13&&19>=r)?H.Few:H.Other;case"gv":return 0===i&&o%10===1?H.One:0===i&&o%10===2?H.Two:0!==i||o%100!==0&&o%100!==20&&o%100!==40&&o%100!==60&&o%100!==80?0!==i?H.Many:H.Other:H.Few;case"he":return 1===o&&0===i?H.One:2===o&&0===i?H.Two:0!==i||r>=0&&10>=r||r%10!==0?H.Other:H.Many;case"is":return 0===a&&o%10===1&&o%100!==11||0!==a?H.One:H.Other;case"ksh":return 0===r?H.Zero:1===r?H.One:H.Other;case"kw":case"naq":case"se":case"smn":return 1===r?H.One:2===r?H.Two:H.Other;case"lag":return 0===r?H.Zero:0!==o&&1!==o||0===r?H.Other:H.One;case"lt":return r%10!==1||r%100>=11&&19>=r%100?r%10===Math.floor(r%10)&&r%10>=2&&9>=r%10&&!(r%100>=11&&19>=r%100)?H.Few:0!==s?H.Many:H.Other:H.One;case"lv":case"prg": +return r%10===0||r%100===Math.floor(r%100)&&r%100>=11&&19>=r%100||2===i&&s%100===Math.floor(s%100)&&s%100>=11&&19>=s%100?H.Zero:r%10===1&&r%100!==11||2===i&&s%10===1&&s%100!==11||2!==i&&s%10===1?H.One:H.Other;case"mk":return 0===i&&o%10===1||s%10===1?H.One:H.Other;case"mt":return 1===r?H.One:0===r||r%100===Math.floor(r%100)&&r%100>=2&&10>=r%100?H.Few:r%100===Math.floor(r%100)&&r%100>=11&&19>=r%100?H.Many:H.Other;case"pl":return 1===o&&0===i?H.One:0===i&&o%10===Math.floor(o%10)&&o%10>=2&&4>=o%10&&!(o%100>=12&&14>=o%100)?H.Few:0===i&&1!==o&&o%10===Math.floor(o%10)&&o%10>=0&&1>=o%10||0===i&&o%10===Math.floor(o%10)&&o%10>=5&&9>=o%10||0===i&&o%100===Math.floor(o%100)&&o%100>=12&&14>=o%100?H.Many:H.Other;case"pt":return r===Math.floor(r)&&r>=0&&2>=r&&2!==r?H.One:H.Other;case"ro":return 1===o&&0===i?H.One:0!==i||0===r||1!==r&&r%100===Math.floor(r%100)&&r%100>=1&&19>=r%100?H.Few:H.Other;case"ru":case"uk":return 0===i&&o%10===1&&o%100!==11?H.One:0===i&&o%10===Math.floor(o%10)&&o%10>=2&&4>=o%10&&!(o%100>=12&&14>=o%100)?H.Few:0===i&&o%10===0||0===i&&o%10===Math.floor(o%10)&&o%10>=5&&9>=o%10||0===i&&o%100===Math.floor(o%100)&&o%100>=11&&14>=o%100?H.Many:H.Other;case"shi":return 0===o||1===r?H.One:r===Math.floor(r)&&r>=2&&10>=r?H.Few:H.Other;case"si":return 0===r||1===r||0===o&&1===s?H.One:H.Other;case"sl":return 0===i&&o%100===1?H.One:0===i&&o%100===2?H.Two:0===i&&o%100===Math.floor(o%100)&&o%100>=3&&4>=o%100||0!==i?H.Few:H.Other;case"tzm":return r===Math.floor(r)&&r>=0&&1>=r||r===Math.floor(r)&&r>=11&&99>=r?H.One:H.Other;default:return H.Other}}function s(t){return t.name||typeof t}function a(t,r){return Error("InvalidPipeArgument: '"+r+"' for pipe '"+e.ɵstringify(t)+"'")}function u(t){return t?t[0].toUpperCase()+t.substr(1).toLowerCase():t}function c(t){return function(e,r){var n=t(e,r);return 1==n.length?"0"+n:n}}function l(t){return function(e,r){return t(e,r).split(" ")[1]}}function p(t){return function(e,r){return t(e,r).split(" ")[0]}}function h(t,e,r){return new Intl.DateTimeFormat(e,r).format(t).replace(/[\u200e\u200f]/g,"")}function f(t){var e={hour:"2-digit",hour12:!1,timeZoneName:t};return function(t,r){var n=h(t,r,e);return n?n.substring(3):""}}function d(t,e){return t.hour12=e,t}function m(t,e){var r={};return r[t]=2===e?"2-digit":"numeric",r}function y(t,e){var r={};return r[t]=4>e?e>1?"short":"narrow":"long",r}function v(t){return Object.assign.apply(Object,[{}].concat(t))}function g(t){return function(e,r){return h(e,r,t)}}function _(t,e,r){var n=vt[t];if(n)return n(e,r);var o=t,i=_t.get(o);if(!i){i=[];var s=void 0;yt.exec(t);for(var a=t;a;)s=yt.exec(a),s?(i=i.concat(s.slice(1)),a=i.pop()):(i.push(a),a=null);_t.set(o,i)}return i.reduce(function(t,n){var o=gt[n];return t+(o?o(e,r):b(n))},"")}function b(t){return"''"===t?"'":t.replace(/(^'|'$)/g,"").replace(/''/g,"'")}function w(t,e,r,n,o,i,s){if(void 0===i&&(i=null),void 0===s&&(s=!1),null==r)return null;if(r="string"==typeof r&&E(r)?+r:r,"number"!=typeof r)throw a(t,r);var u=void 0,c=void 0,l=void 0;if(n!==dt.Currency&&(u=1,c=0,l=3),o){var p=o.match(wt);if(null===p)throw new Error(o+" is not a valid digit info for number pipes");null!=p[1]&&(u=C(p[1])),null!=p[3]&&(c=C(p[3])),null!=p[5]&&(l=C(p[5]))}return mt.format(r,e,n,{minimumIntegerDigits:u,minimumFractionDigits:c,maximumFractionDigits:l,currency:i,currencyAsSymbol:s})}function C(t){var e=parseInt(t);if(isNaN(e))throw new Error("Invalid integer literal when parsing "+t);return e}function E(t){return!isNaN(t-parseFloat(t))}function S(t){return null==t||""===t}function x(t){return t instanceof Date&&!isNaN(t.valueOf())}function T(t){var e=new Date(0),r=0,n=0,o=t[8]?e.setUTCFullYear:e.setFullYear,i=t[8]?e.setUTCHours:e.setHours;t[9]&&(r=P(t[9]+t[10]),n=P(t[9]+t[11])),o.call(e,P(t[1]),P(t[2])-1,P(t[3]));var s=P(t[4]||"0")-r,a=P(t[5]||"0")-n,u=P(t[6]||"0"),c=Math.round(1e3*parseFloat("0."+(t[7]||0)));return i.call(e,s,a,u,c),e}function P(t){return parseInt(t,10)}function A(t){return t===Nt}function O(t){return t===Dt}function M(t){return t===jt}function R(t){return t===Lt}var k=void 0||function(t,e){function r(){this.constructor=t}for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)},I=function(){function t(){}return t.prototype.getBaseHrefFromDOM=function(){},t.prototype.onPopState=function(){},t.prototype.onHashChange=function(){},t.prototype.pathname=function(){},t.prototype.search=function(){},t.prototype.hash=function(){},t.prototype.replaceState=function(){},t.prototype.pushState=function(){},t.prototype.forward=function(){},t.prototype.back=function(){},t}(),N=new e.InjectionToken("Location Initialized"),D=function(){function t(){}return t.prototype.path=function(){},t.prototype.prepareExternalUrl=function(){},t.prototype.pushState=function(){},t.prototype.replaceState=function(){},t.prototype.forward=function(){},t.prototype.back=function(){},t.prototype.onPopState=function(){},t.prototype.getBaseHref=function(){},t}(),j=new e.InjectionToken("appBaseHref"),L=function(){function t(r){var o=this;this._subject=new e.EventEmitter,this._platformStrategy=r;var i=this._platformStrategy.getBaseHref();this._baseHref=t.stripTrailingSlash(n(i)),this._platformStrategy.onPopState(function(t){o._subject.emit({url:o.path(!0),pop:!0,type:t.type})})}return t.prototype.path=function(t){return void 0===t&&(t=!1),this.normalize(this._platformStrategy.path(t))},t.prototype.isCurrentPathEqualTo=function(e,r){return void 0===r&&(r=""),this.path()==this.normalize(e+t.normalizeQueryParams(r))},t.prototype.normalize=function(e){return t.stripTrailingSlash(r(this._baseHref,n(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,r){return this._subject.subscribe({next:t,error:e,complete:r})},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 r=0;return t.endsWith("/")&&r++,e.startsWith("/")&&r++,2==r?t+e.substring(1):1==r?t+e:t+"/"+e},t.stripTrailingSlash=function(t){return t.replace(/\/$/,"")},t}();L.decorators=[{type:e.Injectable}],L.ctorParameters=function(){return[{type:D}]};var V=function(t){function e(e,r){var n=t.call(this)||this;return n._platformLocation=e,n._baseHref="",null!=r&&(n._baseHref=r),n}return k(e,t),e.prototype.onPopState=function(t){this._platformLocation.onPopState(t),this._platformLocation.onHashChange(t)},e.prototype.getBaseHref=function(){return this._baseHref},e.prototype.path=function(t){void 0===t&&(t=!1);var e=this._platformLocation.hash;return null==e&&(e="#"),e.length>0?e.substring(1):e},e.prototype.prepareExternalUrl=function(t){var e=L.joinWithSlash(this._baseHref,t);return e.length>0?"#"+e:e},e.prototype.pushState=function(t,e,r,n){var o=this.prepareExternalUrl(r+L.normalizeQueryParams(n));0==o.length&&(o=this._platformLocation.pathname),this._platformLocation.pushState(t,e,o)},e.prototype.replaceState=function(t,e,r,n){var o=this.prepareExternalUrl(r+L.normalizeQueryParams(n));0==o.length&&(o=this._platformLocation.pathname),this._platformLocation.replaceState(t,e,o)},e.prototype.forward=function(){this._platformLocation.forward()},e.prototype.back=function(){this._platformLocation.back()},e}(D);V.decorators=[{type:e.Injectable}],V.ctorParameters=function(){return[{type:I},{type:void 0,decorators:[{type:e.Optional},{type:e.Inject,args:[j]}]}]};var F=function(t){function e(e,r){var n=t.call(this)||this;if(n._platformLocation=e,null==r&&(r=n._platformLocation.getBaseHrefFromDOM()),null==r)throw new Error("No base href set. Please provide a value for the APP_BASE_HREF token or add a base element to the document.");return n._baseHref=r,n}return k(e,t),e.prototype.onPopState=function(t){this._platformLocation.onPopState(t),this._platformLocation.onHashChange(t)},e.prototype.getBaseHref=function(){return this._baseHref},e.prototype.prepareExternalUrl=function(t){return L.joinWithSlash(this._baseHref,t)},e.prototype.path=function(t){void 0===t&&(t=!1);var e=this._platformLocation.pathname+L.normalizeQueryParams(this._platformLocation.search),r=this._platformLocation.hash;return r&&t?""+e+r:e},e.prototype.pushState=function(t,e,r,n){var o=this.prepareExternalUrl(r+L.normalizeQueryParams(n));this._platformLocation.pushState(t,e,o)},e.prototype.replaceState=function(t,e,r,n){var o=this.prepareExternalUrl(r+L.normalizeQueryParams(n));this._platformLocation.replaceState(t,e,o)},e.prototype.forward=function(){this._platformLocation.forward()},e.prototype.back=function(){this._platformLocation.back()},e}(D);F.decorators=[{type:e.Injectable}],F.ctorParameters=function(){return[{type:I},{type:void 0,decorators:[{type:e.Optional},{type:e.Inject,args:[j]}]}]};var U=function(){function t(){}return t.prototype.getPluralCategory=function(){},t}(),B=function(t){function e(e){var r=t.call(this)||this;return r.locale=e,r}return k(e,t),e.prototype.getPluralCategory=function(t){var e=i(this.locale,t);switch(e){case H.Zero:return"zero";case H.One:return"one";case H.Two:return"two";case H.Few:return"few";case H.Many:return"many";default:return"other"}},e}(U);B.decorators=[{type:e.Injectable}],B.ctorParameters=function(){return[{type:void 0,decorators:[{type:e.Inject,args:[e.LOCALE_ID]}]}]};var H={};H.Zero=0,H.One=1,H.Two=2,H.Few=3,H.Many=4,H.Other=5,H[H.Zero]="Zero",H[H.One]="One",H[H.Two]="Two",H[H.Few]="Few",H[H.Many]="Many",H[H.Other]="Other";var q=function(){function t(t,e,r,n){this._iterableDiffers=t,this._keyValueDiffers=e,this._ngEl=r,this._renderer=n,this._initialClasses=[]}return Object.defineProperty(t.prototype,"klass",{set:function(t){this._applyInitialClasses(!0),this._initialClasses="string"==typeof t?t.split(/\s+/):[],this._applyInitialClasses(!1),this._applyClasses(this._rawClass,!1)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"ngClass",{set:function(t){this._cleanupClasses(this._rawClass),this._iterableDiffer=null,this._keyValueDiffer=null,this._rawClass="string"==typeof t?t.split(/\s+/):t,this._rawClass&&(e.ɵisListLikeIterable(this._rawClass)?this._iterableDiffer=this._iterableDiffers.find(this._rawClass).create():this._keyValueDiffer=this._keyValueDiffers.find(this._rawClass).create())},enumerable:!0,configurable:!0}),t.prototype.ngDoCheck=function(){if(this._iterableDiffer){var t=this._iterableDiffer.diff(this._rawClass);t&&this._applyIterableChanges(t)}else if(this._keyValueDiffer){var e=this._keyValueDiffer.diff(this._rawClass);e&&this._applyKeyValueChanges(e)}},t.prototype._cleanupClasses=function(t){this._applyClasses(t,!0),this._applyInitialClasses(!1)},t.prototype._applyKeyValueChanges=function(t){var e=this;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 r=this;t.forEachAddedItem(function(t){if("string"!=typeof t.item)throw new Error("NgClass can only toggle CSS classes expressed as strings, got "+e.ɵstringify(t.item));r._toggleClass(t.item,!0)}),t.forEachRemovedItem(function(t){return r._toggleClass(t.item,!1)})},t.prototype._applyInitialClasses=function(t){var e=this;this._initialClasses.forEach(function(r){return e._toggleClass(r,!t)})},t.prototype._applyClasses=function(t,e){var r=this;t&&(Array.isArray(t)||t instanceof Set?t.forEach(function(t){return r._toggleClass(t,!e)}):Object.keys(t).forEach(function(n){null!=t[n]&&r._toggleClass(n,!e)}))},t.prototype._toggleClass=function(t,e){var r=this;t=t.trim(),t&&t.split(/\s+/g).forEach(function(t){r._renderer.setElementClass(r._ngEl.nativeElement,t,!!e)})},t}();q.decorators=[{type:e.Directive,args:[{selector:"[ngClass]"}]}],q.ctorParameters=function(){return[{type:e.IterableDiffers},{type:e.KeyValueDiffers},{type:e.ElementRef},{type:e.Renderer}]},q.propDecorators={klass:[{type:e.Input,args:["class"]}],ngClass:[{type:e.Input}]};var z=function(){function t(t){this._viewContainerRef=t,this._componentRef=null,this._moduleRef=null}return t.prototype.ngOnChanges=function(t){if(this._viewContainerRef.clear(),this._componentRef=null,this.ngComponentOutlet){var r=this.ngComponentOutletInjector||this._viewContainerRef.parentInjector;if(t.ngComponentOutletNgModuleFactory)if(this._moduleRef&&this._moduleRef.destroy(),this.ngComponentOutletNgModuleFactory){var n=r.get(e.NgModuleRef);this._moduleRef=this.ngComponentOutletNgModuleFactory.create(n.injector)}else this._moduleRef=null;var o=this._moduleRef?this._moduleRef.componentFactoryResolver:r.get(e.ComponentFactoryResolver),i=o.resolveComponentFactory(this.ngComponentOutlet);this._componentRef=this._viewContainerRef.createComponent(i,this._viewContainerRef.length,r,this.ngComponentOutletContent)}},t.prototype.ngOnDestroy=function(){this._moduleRef&&this._moduleRef.destroy()},t}();z.decorators=[{type:e.Directive,args:[{selector:"[ngComponentOutlet]"}]}],z.ctorParameters=function(){return[{type:e.ViewContainerRef}]},z.propDecorators={ngComponentOutlet:[{type:e.Input}],ngComponentOutletInjector:[{type:e.Input}],ngComponentOutletContent:[{type:e.Input}],ngComponentOutletNgModuleFactory:[{type:e.Input}]};var G=function(){function t(t,e,r,n){this.$implicit=t,this.ngForOf=e,this.index=r,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}(),W=function(){function t(t,e,r){this._viewContainer=t,this._template=e,this._differs=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.ngForTrackBy)}catch(r){throw new Error("Cannot find a differ supporting object '"+e+"' of type '"+s(e)+"'. NgFor only supports binding to Iterables such as Arrays.")}}},t.prototype.ngDoCheck=function(){if(this._differ){var t=this._differ.diff(this.ngForOf);t&&this._applyChanges(t)}},t.prototype._applyChanges=function(t){var e=this,r=[];t.forEachOperation(function(t,n,o){if(null==t.previousIndex){var i=e._viewContainer.createEmbeddedView(e._template,new G(null,e.ngForOf,-1,-1),o),s=new $(t,i);r.push(s)}else if(null==o)e._viewContainer.remove(n);else{var i=e._viewContainer.get(n);e._viewContainer.move(i,o);var s=new $(t,i);r.push(s)}});for(var n=0;n<r.length;n++)this._perViewChange(r[n].view,r[n].record);for(var n=0,o=this._viewContainer.length;o>n;n++){var i=this._viewContainer.get(n);i.context.index=n,i.context.count=o}t.forEachIdentityChange(function(t){var r=e._viewContainer.get(t.currentIndex);r.context.$implicit=t.item})},t.prototype._perViewChange=function(t,e){t.context.$implicit=e.item},t}();W.decorators=[{type:e.Directive,args:[{selector:"[ngFor][ngForOf]"}]}],W.ctorParameters=function(){return[{type:e.ViewContainerRef},{type:e.TemplateRef},{type:e.IterableDiffers}]},W.propDecorators={ngForOf:[{type:e.Input}],ngForTrackBy:[{type:e.Input}],ngForTemplate:[{type:e.Input}]};var $=function(){function t(t,e){this.record=t,this.view=e}return t}(),K=W,Q=function(){function t(t,e){this._viewContainer=t,this._context=new X,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=e}return Object.defineProperty(t.prototype,"ngIf",{set:function(t){this._context.$implicit=this._context.ngIf=t,this._updateView()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"ngIfThen",{set:function(t){this._thenTemplateRef=t,this._thenViewRef=null,this._updateView()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"ngIfElse",{set:function(t){this._elseTemplateRef=t,this._elseViewRef=null,this._updateView()},enumerable:!0,configurable:!0}),t.prototype._updateView=function(){this._context.$implicit?this._thenViewRef||(this._viewContainer.clear(),this._elseViewRef=null,this._thenTemplateRef&&(this._thenViewRef=this._viewContainer.createEmbeddedView(this._thenTemplateRef,this._context))):this._elseViewRef||(this._viewContainer.clear(),this._thenViewRef=null,this._elseTemplateRef&&(this._elseViewRef=this._viewContainer.createEmbeddedView(this._elseTemplateRef,this._context)))},t}();Q.decorators=[{type:e.Directive,args:[{selector:"[ngIf]"}]}],Q.ctorParameters=function(){return[{type:e.ViewContainerRef},{type:e.TemplateRef}]},Q.propDecorators={ngIf:[{type:e.Input}],ngIfThen:[{type:e.Input}],ngIfElse:[{type:e.Input}]};var X=function(){function t(){this.$implicit=null,this.ngIf=null}return t}(),Z=function(){function t(t,e){this._viewContainerRef=t,this._templateRef=e,this._created=!1}return t.prototype.create=function(){this._created=!0,this._viewContainerRef.createEmbeddedView(this._templateRef)},t.prototype.destroy=function(){this._created=!1,this._viewContainerRef.clear()},t.prototype.enforceState=function(t){t&&!this._created?this.create():!t&&this._created&&this.destroy()},t}(),Y=function(){function t(){this._defaultUsed=!1,this._caseCount=0,this._lastCaseCheckIndex=0,this._lastCasesMatched=!1}return Object.defineProperty(t.prototype,"ngSwitch",{set:function(t){this._ngSwitch=t,0===this._caseCount&&this._updateDefaultCases(!0)},enumerable:!0,configurable:!0}),t.prototype._addCase=function(){return this._caseCount++},t.prototype._addDefault=function(t){this._defaultViews||(this._defaultViews=[]),this._defaultViews.push(t)},t.prototype._matchCase=function(t){var e=t==this._ngSwitch;return this._lastCasesMatched=this._lastCasesMatched||e,this._lastCaseCheckIndex++,this._lastCaseCheckIndex===this._caseCount&&(this._updateDefaultCases(!this._lastCasesMatched),this._lastCaseCheckIndex=0,this._lastCasesMatched=!1),e},t.prototype._updateDefaultCases=function(t){if(this._defaultViews&&t!==this._defaultUsed){this._defaultUsed=t;for(var e=0;e<this._defaultViews.length;e++){var r=this._defaultViews[e];r.enforceState(t)}}},t}();Y.decorators=[{type:e.Directive,args:[{selector:"[ngSwitch]"}]}],Y.ctorParameters=function(){return[]},Y.propDecorators={ngSwitch:[{type:e.Input}]};var J=function(){function t(t,e,r){this.ngSwitch=r,r._addCase(),this._view=new Z(t,e)}return t.prototype.ngDoCheck=function(){this._view.enforceState(this.ngSwitch._matchCase(this.ngSwitchCase))},t}();J.decorators=[{type:e.Directive,args:[{selector:"[ngSwitchCase]"}]}],J.ctorParameters=function(){return[{type:e.ViewContainerRef},{type:e.TemplateRef},{type:Y,decorators:[{type:e.Host}]}]},J.propDecorators={ngSwitchCase:[{type:e.Input}]};var tt=function(){function t(t,e,r){r._addDefault(new Z(t,e))}return t}();tt.decorators=[{type:e.Directive,args:[{selector:"[ngSwitchDefault]"}]}],tt.ctorParameters=function(){return[{type:e.ViewContainerRef},{type:e.TemplateRef},{type:Y,decorators:[{type:e.Host}]}]};var et=function(){function t(t){this._localization=t,this._caseViews={}}return Object.defineProperty(t.prototype,"ngPlural",{set:function(t){this._switchValue=t,this._updateView()},enumerable:!0,configurable:!0}),t.prototype.addCase=function(t,e){this._caseViews[t]=e},t.prototype._updateView=function(){this._clearViews();var t=Object.keys(this._caseViews),e=o(this._switchValue,t,this._localization);this._activateView(this._caseViews[e])},t.prototype._clearViews=function(){this._activeView&&this._activeView.destroy()},t.prototype._activateView=function(t){t&&(this._activeView=t,this._activeView.create())},t}();et.decorators=[{type:e.Directive,args:[{selector:"[ngPlural]"}]}],et.ctorParameters=function(){return[{type:U}]},et.propDecorators={ngPlural:[{type:e.Input}]};var rt=function(){function t(t,e,r,n){this.value=t;var o=!isNaN(Number(t));n.addCase(o?"="+t:t,new Z(r,e))}return t}();rt.decorators=[{type:e.Directive,args:[{selector:"[ngPluralCase]"}]}],rt.ctorParameters=function(){return[{type:void 0,decorators:[{type:e.Attribute,args:["ngPluralCase"]}]},{type:e.TemplateRef},{type:e.ViewContainerRef},{type:et,decorators:[{type:e.Host}]}]};var nt=function(){function t(t,e,r){this._differs=t,this._ngEl=e,this._renderer=r}return Object.defineProperty(t.prototype,"ngStyle",{set:function(t){this._ngStyle=t,!this._differ&&t&&(this._differ=this._differs.find(t).create())},enumerable:!0,configurable:!0}),t.prototype.ngDoCheck=function(){if(this._differ){var t=this._differ.diff(this._ngStyle);t&&this._applyChanges(t)}},t.prototype._applyChanges=function(t){var e=this;t.forEachRemovedItem(function(t){return e._setStyle(t.key,null)}),t.forEachAddedItem(function(t){return e._setStyle(t.key,t.currentValue)}),t.forEachChangedItem(function(t){return e._setStyle(t.key,t.currentValue)})},t.prototype._setStyle=function(t,e){var r=t.split("."),n=r[0],o=r[1];e=null!=e&&o?""+e+o:e,this._renderer.setElementStyle(this._ngEl.nativeElement,n,e)},t}();nt.decorators=[{type:e.Directive,args:[{selector:"[ngStyle]"}]}],nt.ctorParameters=function(){return[{type:e.KeyValueDiffers},{type:e.ElementRef},{type:e.Renderer}]},nt.propDecorators={ngStyle:[{type:e.Input}]};var ot=function(){function t(t){this._viewContainerRef=t}return Object.defineProperty(t.prototype,"ngOutletContext",{set:function(t){this.ngTemplateOutletContext=t},enumerable:!0,configurable:!0}),t.prototype.ngOnChanges=function(){this._viewRef&&this._viewContainerRef.remove(this._viewContainerRef.indexOf(this._viewRef)),this.ngTemplateOutlet&&(this._viewRef=this._viewContainerRef.createEmbeddedView(this.ngTemplateOutlet,this.ngTemplateOutletContext))},t}();ot.decorators=[{type:e.Directive,args:[{selector:"[ngTemplateOutlet]"}]}],ot.ctorParameters=function(){return[{type:e.ViewContainerRef}]},ot.propDecorators={ngTemplateOutletContext:[{type:e.Input}],ngTemplateOutlet:[{type:e.Input}],ngOutletContext:[{type:e.Input}]};var it=[q,z,W,Q,ot,nt,Y,J,tt,et,rt],st=function(){function t(){}return t.prototype.createSubscription=function(t,e){return t.subscribe({next:e,error:function(t){throw t}})},t.prototype.dispose=function(t){t.unsubscribe()},t.prototype.onDestroy=function(t){t.unsubscribe()},t}(),at=function(){function t(){}return t.prototype.createSubscription=function(t,e){return t.then(e,function(t){throw t})},t.prototype.dispose=function(){},t.prototype.onDestroy=function(){},t}(),ut=new at,ct=new st,lt=function(){function t(t){this._ref=t,this._latestValue=null,this._latestReturnedValue=null,this._subscription=null,this._obj=null,this._strategy=null}return t.prototype.ngOnDestroy=function(){this._subscription&&this._dispose()},t.prototype.transform=function(t){return this._obj?t!==this._obj?(this._dispose(),this.transform(t)):this._latestValue===this._latestReturnedValue?this._latestReturnedValue:(this._latestReturnedValue=this._latestValue,e.WrappedValue.wrap(this._latestValue)):(t&&this._subscribe(t),this._latestReturnedValue=this._latestValue,this._latestValue)},t.prototype._subscribe=function(t){var e=this;this._obj=t,this._strategy=this._selectStrategy(t),this._subscription=this._strategy.createSubscription(t,function(r){return e._updateLatestValue(t,r)})},t.prototype._selectStrategy=function(r){if(e.ɵisPromise(r))return ut;if(e.ɵisObservable(r))return ct;throw a(t,r)},t.prototype._dispose=function(){this._strategy.dispose(this._subscription),this._latestValue=null,this._latestReturnedValue=null,this._subscription=null,this._obj=null},t.prototype._updateLatestValue=function(t,e){t===this._obj&&(this._latestValue=e,this._ref.markForCheck())},t}();lt.decorators=[{type:e.Pipe,args:[{name:"async",pure:!1}]}],lt.ctorParameters=function(){return[{type:e.ChangeDetectorRef}]};var pt=function(){function t(){}return t.prototype.transform=function(e){if(!e)return e;if("string"!=typeof e)throw a(t,e);return e.toLowerCase()},t}();pt.decorators=[{type:e.Pipe,args:[{name:"lowercase"}]}],pt.ctorParameters=function(){return[]};var ht=function(){function t(){}return t.prototype.transform=function(e){if(!e)return e;if("string"!=typeof e)throw a(t,e);return e.split(/\b/g).map(function(t){return u(t)}).join("")},t}();ht.decorators=[{type:e.Pipe,args:[{name:"titlecase"}]}],ht.ctorParameters=function(){return[]};var ft=function(){function t(){}return t.prototype.transform=function(e){if(!e)return e;if("string"!=typeof e)throw a(t,e);return e.toUpperCase()},t}();ft.decorators=[{type:e.Pipe,args:[{name:"uppercase"}]}],ft.ctorParameters=function(){return[]};var dt={};dt.Decimal=0,dt.Percent=1,dt.Currency=2,dt[dt.Decimal]="Decimal",dt[dt.Percent]="Percent",dt[dt.Currency]="Currency";var mt=function(){function t(){}return t.format=function(t,e,r,n){var o=void 0===n?{}:n,i=o.minimumIntegerDigits,s=o.minimumFractionDigits,a=o.maximumFractionDigits,u=o.currency,c=o.currencyAsSymbol,l=void 0===c?!1:c,p={minimumIntegerDigits:i,minimumFractionDigits:s,maximumFractionDigits:a,style:dt[r].toLowerCase()};return r==dt.Currency&&(p.currency="string"==typeof u?u:void 0,p.currencyDisplay=l?"symbol":"code"),new Intl.NumberFormat(e,p).format(t)},t}(),yt=/((?:[^yMLdHhmsazZEwGjJ']+)|(?:'(?:[^']|'')*')|(?:E+|y+|M+|L+|d+|H+|h+|J+|j+|m+|s+|a|z|Z|G+|w+))(.*)/,vt={yMMMdjms:g(v([m("year",1),y("month",3),m("day",1),m("hour",1),m("minute",1),m("second",1)])),yMdjm:g(v([m("year",1),m("month",1),m("day",1),m("hour",1),m("minute",1)])),yMMMMEEEEd:g(v([m("year",1),y("month",4),y("weekday",4),m("day",1)])),yMMMMd:g(v([m("year",1),y("month",4),m("day",1)])),yMMMd:g(v([m("year",1),y("month",3),m("day",1)])),yMd:g(v([m("year",1),m("month",1),m("day",1)])),jms:g(v([m("hour",1),m("second",1),m("minute",1)])),jm:g(v([m("hour",1),m("minute",1)]))},gt={yyyy:g(m("year",4)),yy:g(m("year",2)),y:g(m("year",1)),MMMM:g(y("month",4)),MMM:g(y("month",3)),MM:g(m("month",2)),M:g(m("month",1)),LLLL:g(y("month",4)),L:g(y("month",1)),dd:g(m("day",2)),d:g(m("day",1)),HH:c(p(g(d(m("hour",2),!1)))),H:p(g(d(m("hour",1),!1))),hh:c(p(g(d(m("hour",2),!0)))),h:p(g(d(m("hour",1),!0))),jj:g(m("hour",2)),j:g(m("hour",1)),mm:c(g(m("minute",2))),m:g(m("minute",1)),ss:c(g(m("second",2))),s:g(m("second",1)),sss:g(m("second",3)),EEEE:g(y("weekday",4)),EEE:g(y("weekday",3)),EE:g(y("weekday",2)),E:g(y("weekday",1)),a:l(g(d(m("hour",1),!0))),Z:f("short"),z:f("long"),ww:g({}),w:g({}),G:g(y("era",1)),GG:g(y("era",2)),GGG:g(y("era",3)),GGGG:g(y("era",4))},_t=new Map,bt=function(){function t(){}return t.format=function(t,e,r){return _(r,t,e)},t}(),wt=/^(\d+)?\.((\d+)(-(\d+))?)?$/,Ct=function(){function t(t){this._locale=t}return t.prototype.transform=function(e,r){return w(t,this._locale,e,dt.Decimal,r)},t}();Ct.decorators=[{type:e.Pipe,args:[{name:"number"}]}],Ct.ctorParameters=function(){return[{type:void 0,decorators:[{type:e.Inject,args:[e.LOCALE_ID]}]}]};var Et=function(){function t(t){this._locale=t}return t.prototype.transform=function(e,r){return w(t,this._locale,e,dt.Percent,r)},t}();Et.decorators=[{type:e.Pipe,args:[{name:"percent"}]}],Et.ctorParameters=function(){return[{type:void 0,decorators:[{type:e.Inject,args:[e.LOCALE_ID]}]}]};var St=function(){function t(t){this._locale=t}return t.prototype.transform=function(e,r,n,o){return void 0===r&&(r="USD"),void 0===n&&(n=!1),w(t,this._locale,e,dt.Currency,o,r,n)},t}();St.decorators=[{type:e.Pipe,args:[{name:"currency"}]}],St.ctorParameters=function(){return[{type:void 0,decorators:[{type:e.Inject,args:[e.LOCALE_ID]}]}]};var xt=/^(\d{4})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,Tt=function(){function t(t){this._locale=t}return t.prototype.transform=function(e,r){void 0===r&&(r="mediumDate");var n;if(S(e)||e!==e)return null;if("string"==typeof e&&(e=e.trim()),x(e))n=e;else if(E(e))n=new Date(parseFloat(e));else if("string"==typeof e&&/^(\d{4}-\d{1,2}-\d{1,2})$/.test(e)){var o=e.split("-").map(function(t){return parseInt(t,10)}),i=o[0],s=o[1],u=o[2];n=new Date(i,s-1,u)}else n=new Date(e);if(!x(n)){var c=void 0;if("string"!=typeof e||!(c=e.match(xt)))throw a(t,e);n=T(c)}return bt.format(n,this._locale,t._ALIASES[r]||r)},t}();Tt._ALIASES={medium:"yMMMdjms","short":"yMdjm",fullDate:"yMMMMEEEEd",longDate:"yMMMMd",mediumDate:"yMMMd",shortDate:"yMd",mediumTime:"jms",shortTime:"jm"},Tt.decorators=[{type:e.Pipe,args:[{name:"date",pure:!0}]}],Tt.ctorParameters=function(){return[{type:void 0,decorators:[{type:e.Inject,args:[e.LOCALE_ID]}]}]};var Pt=/#/g,At=function(){function t(t){this._localization=t}return t.prototype.transform=function(e,r){if(null==e)return"";if("object"!=typeof r||null===r)throw a(t,r);var n=o(e,Object.keys(r),this._localization);return r[n].replace(Pt,e.toString())},t}();At.decorators=[{type:e.Pipe,args:[{name:"i18nPlural",pure:!0}]}],At.ctorParameters=function(){return[{type:U}]};var Ot=function(){function t(){}return t.prototype.transform=function(e,r){if(null==e)return"";if("object"!=typeof r||"string"!=typeof e)throw a(t,r);return r.hasOwnProperty(e)?r[e]:r.hasOwnProperty("other")?r.other:""},t}();Ot.decorators=[{type:e.Pipe,args:[{name:"i18nSelect",pure:!0}]}],Ot.ctorParameters=function(){return[]};var Mt=function(){function t(){}return t.prototype.transform=function(t){return JSON.stringify(t,null,2)},t}();Mt.decorators=[{type:e.Pipe,args:[{name:"json",pure:!1}]}],Mt.ctorParameters=function(){return[]};var Rt=function(){function t(){}return t.prototype.transform=function(e,r,n){if(null==e)return e;if(!this.supports(e))throw a(t,e);return e.slice(r,n)},t.prototype.supports=function(t){return"string"==typeof t||Array.isArray(t)},t}();Rt.decorators=[{type:e.Pipe,args:[{name:"slice",pure:!1}]}],Rt.ctorParameters=function(){return[]};var kt=[lt,ft,pt,Mt,Rt,Ct,Et,ht,St,Tt,At,Ot],It=function(){function t(){}return t}();It.decorators=[{type:e.NgModule,args:[{declarations:[it,kt],exports:[it,kt],providers:[{provide:U,useClass:B}]}]}],It.ctorParameters=function(){return[]};var Nt="browser",Dt="server",jt="browserWorkerApp",Lt="browserWorkerUi",Vt=new e.Version("4.1.0");t.NgLocaleLocalization=B,t.NgLocalization=U,t.CommonModule=It,t.NgClass=q,t.NgFor=K,t.NgForOf=W,t.NgForOfContext=G,t.NgIf=Q,t.NgIfContext=X,t.NgPlural=et,t.NgPluralCase=rt,t.NgStyle=nt,t.NgSwitch=Y,t.NgSwitchCase=J,t.NgSwitchDefault=tt,t.NgTemplateOutlet=ot,t.NgComponentOutlet=z,t.AsyncPipe=lt,t.DatePipe=Tt,t.I18nPluralPipe=At,t.I18nSelectPipe=Ot,t.JsonPipe=Mt,t.LowerCasePipe=pt,t.CurrencyPipe=St,t.DecimalPipe=Ct,t.PercentPipe=Et,t.SlicePipe=Rt,t.UpperCasePipe=ft,t.TitleCasePipe=ht,t.ɵPLATFORM_BROWSER_ID=Nt,t.ɵPLATFORM_SERVER_ID=Dt,t.ɵPLATFORM_WORKER_APP_ID=jt,t.ɵPLATFORM_WORKER_UI_ID=Lt,t.isPlatformBrowser=A,t.isPlatformServer=O,t.isPlatformWorkerApp=M,t.isPlatformWorkerUi=R,t.VERSION=Vt,t.PlatformLocation=I,t.LOCATION_INITIALIZED=N,t.LocationStrategy=D,t.APP_BASE_HREF=j,t.HashLocationStrategy=V,t.PathLocationStrategy=F,t.Location=L,t.ɵa=it,t.ɵb=kt,Object.defineProperty(t,"__esModule",{value:!0})})},{"@angular/core":8}],7:[function(e,r,n){!function(o,i){"object"==typeof n&&"undefined"!=typeof r?i(n,e("@angular/core")):"function"==typeof t&&t.amd?t(["exports","@angular/core"],i):i((o.ng=o.ng||{}, +o.ng.compiler=o.ng.compiler||{}),o.ng.core)}(this,function(t,e){"use strict";function r(t,e,r){void 0===r&&(r=null);var n=[],o=t.visit?function(e){return t.visit(e,r)||e.visit(t,r)}:function(e){return e.visit(t,r)};return e.forEach(function(t){var e=o(t);e&&n.push(e)}),n}function n(t){if(":"!=t[0])return[null,t];var e=t.indexOf(":",1);if(-1==e)throw new Error('Unsupported format "'+t+'" expecting ":namespace:name"');return[t.slice(1,e),t.slice(e+1)]}function o(t){return"ng-container"===n(t)[1]}function i(t){return"ng-content"===n(t)[1]}function s(t){return"ng-template"===n(t)[1]}function a(t){return null===t?null:n(t)[0]}function u(t,e){return t?":"+t+":"+e:e}function c(t){return bo[t.toLowerCase()]||wo}function l(t){return t.replace(Ao,function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return t[1].toUpperCase()})}function p(t,e){return f(t,":",e)}function h(t,e){return f(t,".",e)}function f(t,e,r){var n=t.indexOf(e);return-1==n?r:[t.slice(0,n).trim(),t.slice(n+1).trim()]}function d(t,e,r){return Array.isArray(t)?e.visitArray(t,r):b(t)?e.visitStringMap(t,r):null==t||"string"==typeof t||"number"==typeof t||"boolean"==typeof t?e.visitPrimitive(t,r):e.visitOther(t,r)}function m(t){return null!==t&&void 0!==t}function y(t){return void 0===t?null:t}function v(t){var e=Error(t);return e[Ro]=!0,e}function g(t){return t[Ro]}function _(t){return t.replace(/([.*+?^=!:${}()|[\]\/\\])/g,"\\$1")}function b(t){return"object"==typeof t&&null!==t&&Object.getPrototypeOf(t)===ko}function w(t){for(var e="",r=0;r<t.length;r++){var n=t.charCodeAt(r);if(n>=55296&&56319>=n&&t.length>r+1){var o=t.charCodeAt(r+1);o>=56320&&57343>=o&&(r++,n=(n-55296<<10)+o-56320+65536)}127>=n?e+=String.fromCharCode(n):2047>=n?e+=String.fromCharCode(n>>6&31|192,63&n|128):65535>=n?e+=String.fromCharCode(n>>12|224,n>>6&63|128,63&n|128):2097151>=n&&(e+=String.fromCharCode(n>>18&7|240,n>>12&63|128,n>>6&63|128,63&n|128))}return e}function C(t){return t.replace(/\W/g,"_")}function E(t){if(!t||!t.reference)return null;var r=t.reference;if(r instanceof mo)return r.name;if(r.__anonymousType)return r.__anonymousType;var n=e.ɵstringify(r);return n.indexOf("(")>=0?(n="anonymous_"+Go++,r.__anonymousType=n):n=C(n),n}function S(t){var r=t.reference;return r instanceof mo?r.filePath:e.ɵreflector.importUri(r)}function x(t,e){return"View_"+E({reference:t})+"_"+e}function T(t){return"RenderType_"+E({reference:t})}function P(t){return"HostView_"+E({reference:t})}function A(t){return"Wrapper_"+E({reference:t})}function O(t){return E({reference:t})+"NgFactory"}function M(t){return null!=t.value?C(t.value):E(t.identifier)}function R(t){return null!=t.identifier?t.identifier.reference:t.value}function k(t,r,n){var o=Eo.parse(r.selector)[0].getMatchingElementTemplate();return Qo.create({isHost:!0,type:{reference:t,diDeps:[],lifecycleHooks:[]},template:new Ko({encapsulation:e.ViewEncapsulation.None,template:o,templateUrl:"",styles:[],styleUrls:[],ngContentSelectors:[],animations:[],isInline:!0,externalStylesheets:[],interpolation:null}),exportAs:null,changeDetection:e.ChangeDetectionStrategy.Default,inputs:[],outputs:[],host:{},isComponent:!0,selector:"*",providers:[],viewProviders:[],queries:[],viewQueries:[],componentViewType:n,rendererType:{id:"__Host__",encapsulation:e.ViewEncapsulation.None,styles:[],data:{}},entryComponents:[],componentFactory:null})}function I(t){return t||[]}function N(t){return t.reduce(function(t,e){var r=Array.isArray(e)?N(e):e;return t.concat(r)},[])}function D(t){return t.replace(/(\w+:\/\/[\w:-]+)?(\/+)?/,"ng:///")}function j(t,e,r){var n;return n=r.isInline?e.type.reference instanceof mo?e.type.reference.filePath+"."+e.type.reference.name+".html":E(t)+"/"+E(e.type)+".html":r.templateUrl,D(n)}function L(t,e){var r=t.moduleUrl.split(/\/\\/g),n=r[r.length-1];return D("css/"+e+n+".ngstyle.js")}function V(t){return D(E(t.type)+"/module.ngfactory.js")}function F(t,e){return D(E(t)+"/"+E(e.type)+".ngfactory.js")}function U(t){return t>=Oi&&Ni>=t||t==Ps}function B(t){return t>=rs&&ns>=t}function H(t){return t>=ds&&Es>=t||t>=os&&us>=t}function q(t){return t>=ds&&ys>=t||t>=os&&ss>=t||B(t)}function z(){return function(t){return t}}function G(t,r){if(e.isDevMode()&&null!=r){if(!Array.isArray(r))throw new Error("Expected '"+t+"' to be an array of strings.");for(var n=0;n<r.length;n+=1)if("string"!=typeof r[n])throw new Error("Expected '"+t+"' to be an array of strings.")}}function W(t,r){if(!(null==r||Array.isArray(r)&&2==r.length))throw new Error("Expected '"+t+"' to be an array, [start, end].");if(e.isDevMode()&&null!=r){var n=r[0],o=r[1];Os.forEach(function(t){if(t.test(n)||t.test(o))throw new Error("['"+n+"', '"+o+"'] contains unusable interpolation symbol.")})}}function $(t,e){return new Ds(t,ks.Character,e,String.fromCharCode(e))}function K(t,e){return new Ds(t,ks.Identifier,0,e)}function Q(t,e){return new Ds(t,ks.Keyword,0,e)}function X(t,e){return new Ds(t,ks.Operator,0,e)}function Z(t,e){return new Ds(t,ks.String,0,e)}function Y(t,e){return new Ds(t,ks.Number,e,"")}function J(t,e){return new Ds(t,ks.Error,0,e)}function tt(t){return t>=ds&&Es>=t||t>=os&&us>=t||t==fs||t==Vi}function et(t){if(0==t.length)return!1;var e=new Ls(t);if(!tt(e.peek))return!1;for(e.advance();e.peek!==Ai;){if(!rt(e.peek))return!1;e.advance()}return!0}function rt(t){return H(t)||B(t)||t==fs||t==Vi}function nt(t){return t==ms||t==is}function ot(t){return t==$i||t==Gi}function it(t){return t===Bi||t===ji||t===As}function st(t){switch(t){case vs:return Mi;case ys:return ki;case gs:return Ii;case _s:return Oi;case ws:return Ri;default:return t}}function at(t){var e=parseInt(t);if(isNaN(e))throw new Error("Invalid integer literal when parsing "+t);return e}function ut(t){var e=_(t.start)+"([\\s\\S]*?)"+_(t.end);return new RegExp(e,"g")}function ct(t,e){var r=S(e),n=null!=r?"in "+t+" "+E(e)+" in "+r:"in "+t+" "+E(e),o=new zs("",n);return new Gs(new qs(o,-1,-1,-1),new qs(o,-1,-1,-1))}function lt(t,e,r){void 0===r&&(r=null);var n=[],o=t.visit?function(e){return t.visit(e,r)||e.visit(t,r)}:function(e){return e.visit(t,r)};return e.forEach(function(t){var e=o(t);e&&n.push(e)}),n}function pt(t,e,r,n,o){return void 0===n&&(n=!1),void 0===o&&(o=Rs),new sa(new zs(t,e),r,n,o).tokenize()}function ht(t){var e=t===Ai?"EOF":String.fromCharCode(t);return'Unexpected character "'+e+'"'}function ft(t){return'Unknown entity "'+t+'" - use the "&#<decimal>;" or "&#x<hex>;" syntax'}function dt(t){return!U(t)||t===Ai}function mt(t){return U(t)||t===ts||t===Qi||t===Bi||t===ji||t===Ji}function yt(t){return(ds>t||t>Es)&&(os>t||t>us)&&(rs>t||t>ns)}function vt(t){return t==Zi||t==Ai||!q(t)}function gt(t){return t==Zi||t==Ai||!H(t)}function _t(t,e,r){var n=r?t.indexOf(r.start,e)==e:!1;return t.charCodeAt(e)==Ss&&!n}function bt(t){return t===Ji||H(t)}function wt(t,e){return Ct(t)==Ct(e)}function Ct(t){return t>=ds&&Es>=t?t-ds+os:t}function Et(t){for(var e=[],r=void 0,n=0;n<t.length;n++){var o=t[n];r&&r.type==ta.TEXT&&o.type==ta.TEXT?(r.parts[0]+=o.parts[0],r.sourceSpan.end=o.sourceSpan.end):(r=o,e.push(r))}return e}function St(t,e){return t.length>0&&t[t.length-1]===e}function xt(t){var e=new Ea(Ca,t);return function(t,r,n,o){return e.toI18nMessage(t,r,n,o)}}function Tt(t){return t.split(Sa)[2]}function Pt(t,e,r,n){var o=new Ia(r,n);return o.extract(t,e)}function At(t,e,r,n,o){var i=new Ia(n,o);return i.merge(t,e,r)}function Ot(t){return!!(t instanceof Js&&t.value&&t.value.startsWith("i18n"))}function Mt(t){return!!(t instanceof Js&&t.value&&"/i18n"===t.value)}function Rt(t){return t.attrs.find(function(t){return t.name===Ta})||null}function kt(t){if(!t)return{meaning:"",description:"",id:""};var e=t.indexOf(Ma),r=t.indexOf(Oa),n=e>-1?[t.slice(0,e),t.slice(e+2)]:[t,""],o=n[0],i=n[1],s=r>-1?[o.slice(0,r),o.slice(r+1)]:["",o],a=s[0],u=s[1];return{meaning:a,description:u,id:i}}function It(){return Da}function Nt(t){return t.id||Lt(jt(t.nodes).join("")+("["+t.meaning+"]"))}function Dt(t){if(t.id)return t.id;var e=new Fa,r=t.nodes.map(function(t){return t.visit(e,null)});return Ut(r.join(""),t.meaning)}function jt(t){return t.map(function(t){return t.visit(Va,null)})}function Lt(t){var e=w(t),r=Qt(e,Ua.Big),n=8*e.length,o=new Array(80),i=[1732584193,4023233417,2562383102,271733878,3285377520],s=i[0],a=i[1],u=i[2],c=i[3],l=i[4];r[n>>5]|=128<<24-n%32,r[(n+64>>9<<4)+15]=n;for(var p=0;p<r.length;p+=16){for(var h=[s,a,u,c,l],f=h[0],d=h[1],m=h[2],y=h[3],v=h[4],g=0;80>g;g++){o[g]=16>g?r[p+g]:$t(o[g-3]^o[g-8]^o[g-14]^o[g-16],1);var _=Vt(g,a,u,c),b=_[0],C=_[1],E=[$t(s,5),b,l,C,o[g]].reduce(qt);S=[c,u,$t(a,30),s,E],l=S[0],c=S[1],u=S[2],a=S[3],s=S[4]}x=[qt(s,f),qt(a,d),qt(u,m),qt(c,y),qt(l,v)],s=x[0],a=x[1],u=x[2],c=x[3],l=x[4]}return te(Yt([s,a,u,c,l]));var S,x}function Vt(t,e,r,n){return 20>t?[e&r|~e&n,1518500249]:40>t?[e^r^n,1859775393]:60>t?[e&r|e&n|r&n,2400959708]:[e^r^n,3395469782]}function Ft(t){var e=w(t),r=[Bt(e,0),Bt(e,102072)],n=r[0],o=r[1];return 0!=n||0!=o&&1!=o||(n=319790063^n,o=-1801410264^o),[n,o]}function Ut(t,e){var r=Ft(t),n=r[0],o=r[1];if(e){var i=Ft(e),s=i[0],a=i[1];u=Gt(Kt([n,o],1),[s,a]),n=u[0],o=u[1]}return ee(Yt([2147483647&n,o]));var u}function Bt(t,e){var r,n=[2654435769,2654435769],o=n[0],i=n[1],s=t.length;for(r=0;s>=r+12;r+=12)o=qt(o,Zt(t,r,Ua.Little)),i=qt(i,Zt(t,r+4,Ua.Little)),e=qt(e,Zt(t,r+8,Ua.Little)),a=Ht([o,i,e]),o=a[0],i=a[1],e=a[2];return o=qt(o,Zt(t,r,Ua.Little)),i=qt(i,Zt(t,r+4,Ua.Little)),e=qt(e,s),e=qt(e,Zt(t,r+8,Ua.Little)<<8),Ht([o,i,e])[2];var a}function Ht(t){var e=t[0],r=t[1],n=t[2];return e=Wt(e,r),e=Wt(e,n),e^=n>>>13,r=Wt(r,n),r=Wt(r,e),r^=e<<8,n=Wt(n,e),n=Wt(n,r),n^=r>>>13,e=Wt(e,r),e=Wt(e,n),e^=n>>>12,r=Wt(r,n),r=Wt(r,e),r^=e<<16,n=Wt(n,e),n=Wt(n,r),n^=r>>>5,e=Wt(e,r),e=Wt(e,n),e^=n>>>3,r=Wt(r,n),r=Wt(r,e),r^=e<<10,n=Wt(n,e),n=Wt(n,r),n^=r>>>15,[e,r,n]}function qt(t,e){return zt(t,e)[1]}function zt(t,e){var r=(65535&t)+(65535&e),n=(t>>>16)+(e>>>16)+(r>>>16);return[n>>>16,n<<16|65535&r]}function Gt(t,e){var r=t[0],n=t[1],o=e[0],i=e[1],s=zt(n,i),a=s[0],u=s[1],c=qt(qt(r,o),a);return[c,u]}function Wt(t,e){var r=(65535&t)-(65535&e),n=(t>>16)-(e>>16)+(r>>16);return n<<16|65535&r}function $t(t,e){return t<<e|t>>>32-e}function Kt(t,e){var r=t[0],n=t[1],o=r<<e|n>>>32-e,i=n<<e|r>>>32-e;return[o,i]}function Qt(t,e){for(var r=Array(t.length+3>>>2),n=0;n<r.length;n++)r[n]=Zt(t,4*n,e);return r}function Xt(t,e){return e>=t.length?0:255&t.charCodeAt(e)}function Zt(t,e,r){var n=0;if(r===Ua.Big)for(var o=0;4>o;o++)n+=Xt(t,e+o)<<24-8*o;else for(var o=0;4>o;o++)n+=Xt(t,e+o)<<8*o;return n}function Yt(t){return t.reduce(function(t,e){return t+Jt(e)},"")}function Jt(t){for(var e="",r=0;4>r;r++)e+=String.fromCharCode(t>>>8*(3-r)&255);return e}function te(t){for(var e="",r=0;r<t.length;r++){var n=Xt(t,r);e+=(n>>>4).toString(16)+(15&n).toString(16)}return e.toLowerCase()}function ee(t){for(var e="",r="1",n=t.length-1;n>=0;n--)e=re(e,ne(Xt(t,n),r)),r=ne(256,r);return e.split("").reverse().join("")}function re(t,e){for(var r="",n=Math.max(t.length,e.length),o=0,i=0;n>o||i;o++){var s=i+ +(t[o]||0)+ +(e[o]||0);s>=10?(i=1,r+=s-10):(i=0,r+=s)}return r}function ne(t,e){for(var r="",n=e;0!==t;t>>>=1)1&t&&(r=re(r,n)),n=re(n,n);return r}function oe(t){return t.map(function(t){return t.visit(za)}).join("")}function ie(t){return Xa.reduce(function(t,e){return t.replace(e[0],e[1])},t)}function se(t){switch(t.toLowerCase()){case"br":return"lb";case"img":return"image";default:return"x-"+t}}function ae(t){switch(t.toLowerCase()){case"br":case"b":case"i":case"u":return"fmt";case"img":return"image";case"a":return"link";default:return"other"}}function ue(t){return Dt(t)}function ce(t){return t.toUpperCase().replace(/[^A-Z0-9_]/g,"_")}function le(t,e,r){Object.defineProperty(t,e,{configurable:!0,enumerable:!0,get:function(){var n=r();return Object.defineProperty(t,e,{enumerable:!0,value:n}),n},set:function(){throw new Error("Could not overwrite an XTB translation")}})}function pe(t){switch(t=(t||"xlf").toLowerCase()){case"xmb":return new Mu;case"xtb":return new ju;case"xliff2":case"xlf2":return new bu;case"xliff":case"xlf":default:return new au}}function he(t,e,r){return void 0===e&&(e=null),void 0===r&&(r="src"),null==e?"@angular/"+t:"@angular/"+t+"/"+r+"/"+e}function fe(t){var r=t.name;return e.ɵreflector.resolveIdentifier(r,t.moduleUrl,null,t.runtime)}function de(t){return{reference:fe(t)}}function me(t){return{identifier:t}}function ye(t){return me(de(t))}function ve(t){var e=new Ku;return new Wu(lt(e,t),e.isExpanded,e.errors)}function ge(t,e){var r=t.cases.map(function(t){-1!=Gu.indexOf(t.value)||t.value.match(/^=\d+$/)||e.push(new $u(t.valueSourceSpan,'Plural cases should be "=<number>" or one of '+Gu.join(", ")));var r=ve(t.expression);return e.push.apply(e,r.errors),new Ys("ng-template",[new Zs("ngPluralCase",""+t.value,t.valueSourceSpan)],r.nodes,t.sourceSpan,t.sourceSpan,t.sourceSpan)}),n=new Zs("[ngPlural]",t.switchValue,t.switchValueSourceSpan);return new Ys("ng-container",[n],r,t.sourceSpan,t.sourceSpan,t.sourceSpan)}function _e(t,e){var r=t.cases.map(function(t){var r=ve(t.expression);return e.push.apply(e,r.errors),"other"===t.value?new Ys("ng-template",[new Zs("ngSwitchDefault","",t.valueSourceSpan)],r.nodes,t.sourceSpan,t.sourceSpan,t.sourceSpan):new Ys("ng-template",[new Zs("ngSwitchCase",""+t.value,t.valueSourceSpan)],r.nodes,t.sourceSpan,t.sourceSpan,t.sourceSpan)}),n=new Zs("[ngSwitch]",t.switchValue,t.switchValueSourceSpan);return new Ys("ng-container",[n],r,t.sourceSpan,t.sourceSpan,t.sourceSpan)}function be(t,e){var r=e.useExisting,n=e.useValue,o=e.deps;return{token:t.token,useClass:t.useClass,useExisting:r,useFactory:t.useFactory,useValue:n,deps:o,multi:t.multi}}function we(t,e){var r=e.eager,n=e.providers;return new lo(t.token,t.multiProvider,t.eager||r,n,t.providerType,t.lifecycleHooks,t.sourceSpan)}function Ce(t,e,r){var n=new Map;t.forEach(function(t){var o={token:{identifier:t.type},useClass:t.type};Ee([o],t.isComponent?po.Component:po.Directive,!0,e,r,n)});var o=t.filter(function(t){return t.isComponent}).concat(t.filter(function(t){return!t.isComponent}));return o.forEach(function(t){Ee(t.providers,po.PublicService,!1,e,r,n),Ee(t.viewProviders,po.PrivateService,!1,e,r,n)}),n}function Ee(t,e,r,n,o,i){t.forEach(function(t){var s=i.get(R(t.token));if(null!=s&&!!s.multiProvider!=!!t.multi&&o.push(new Qu("Mixing multi and non multi provider is not possible for token "+M(s.token),n)),s)t.multi||(s.providers.length=0),s.providers.push(t);else{var a=t.token.identifier&&t.token.identifier.lifecycleHooks?t.token.identifier.lifecycleHooks:[],u=!(t.useClass||t.useExisting||t.useFactory);s=new lo(t.token,!!t.multi,r||u,[t],e,a,n),i.set(R(t.token),s)}})}function Se(t){var e=1,r=new Map;return t.viewQueries&&t.viewQueries.forEach(function(t){return Te(r,{meta:t,queryId:e++})}),r}function xe(t,e){var r=t,n=new Map;return e.forEach(function(t){t.queries&&t.queries.forEach(function(t){return Te(n,{meta:t,queryId:r++})})}),n}function Te(t,e){e.meta.selectors.forEach(function(r){var n=t.get(R(r));n||(n=[],t.set(R(r),n)),n.push(e)})}function Pe(t){if(null==t||0===t.length||"/"==t[0])return!1;var e=t.match(nc);return null===e||"package"==e[1]||"asset"==e[1]}function Ae(t,e,r){var n=[],o=r.replace(rc,"").replace(ec,function(){for(var r=[],o=0;o<arguments.length;o++)r[o]=arguments[o];var i=r[1]||r[2];return Pe(i)?(n.push(t.resolve(e,i)),""):r[0]});return new tc(o,n)}function Oe(t){return"@"==t[0]}function Me(t,r,n,o){var i=[];return Eo.parse(r).forEach(function(e){var r=e.element?[e.element]:t.allKnownElementNames(),s=new Set(e.notSelectors.filter(function(t){return t.isElementSelector()}).map(function(t){return t.element})),a=r.filter(function(t){return!s.has(t)});i.push.apply(i,a.map(function(e){return t.securityContext(e,n,o)}))}),0===i.length?[e.SecurityContext.NONE]:Array.from(new Set(i)).sort()}function Re(t){var e=null,r=null,n=null,o=!1,s=null;t.attrs.forEach(function(t){var i=t.name.toLowerCase();i==fc?e=t.value:i==yc?r=t.value:i==mc?n=t.value:t.name==bc?o=!0:t.name==wc&&t.value.length>0&&(s=t.value)}),e=ke(e);var a=t.name.toLowerCase(),u=Cc.OTHER;return i(a)?u=Cc.NG_CONTENT:a==gc?u=Cc.STYLE:a==_c?u=Cc.SCRIPT:a==dc&&n==vc&&(u=Cc.STYLESHEET),new Ec(u,e,r,o,s)}function ke(t){return null===t||0===t.length?"*":t}function Ie(t){return function(e){return-1!==t.indexOf(e.msg)?(Hc[e.msg]=(Hc[e.msg]||0)+1,Hc[e.msg]<=1):!0}}function Ne(t){return t.trim().split(/\s+/g)}function De(t,e){var r=new Eo,o=n(t)[1];r.setElement(o);for(var i=0;i<e.length;i++){var s=e[i][0],a=n(s)[1],u=e[i][1];if(r.addAttribute(a,u),s.toLowerCase()==Vc){var c=Ne(u);c.forEach(function(t){return r.addClassName(t)})}}return r}function je(t){return t instanceof Ks&&0==t.value.trim().length}function Le(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 Ve(t){return t instanceof Si&&(t=t.ast),t instanceof ii}function Fe(t,e,r){if(s(t.name))return!0;var o=n(t.name)[1];return o.toLowerCase()===Dc&&e&&o.toLowerCase()===Dc?(r(Uc,t.sourceSpan),!0):!1}function Ue(){return new el}function Be(){return new el(".")}function He(t){var e=ze(t);return e&&e[nl.Scheme]||""}function qe(t,e,r,n,o,i,s){var a=[];return null!=t&&a.push(t+":"),null!=r&&(a.push("//"),null!=e&&a.push(e+"@"),a.push(r),null!=n&&a.push(":"+n)),null!=o&&a.push(o),null!=i&&a.push("?"+i),null!=s&&a.push("#"+s),a.join("")}function ze(t){return t.match(rl)}function Ge(t){if("/"==t)return"/";for(var e="/"==t[0]?"/":"",r="/"===t[t.length-1]?"/":"",n=t.split("/"),o=[],i=0,s=0;s<n.length;s++){var a=n[s];switch(a){case"":case".":break;case"..":o.length>0?o.pop():i++;break;default:o.push(a)}}if(""==e){for(;i-->0;)o.unshift("..");0===o.length&&o.push(".")}return e+o.join("/")+r}function We(t){var e=t[nl.Path];return e=null==e?"":Ge(e),t[nl.Path]=e,qe(t[nl.Scheme],t[nl.UserInfo],t[nl.Domain],t[nl.Port],e,t[nl.QueryData],t[nl.Fragment])}function $e(t,e){var r=ze(encodeURI(e)),n=ze(t);if(null!=r[nl.Scheme])return We(r);r[nl.Scheme]=n[nl.Scheme];for(var o=nl.Scheme;o<=nl.Port;o++)null==r[o]&&(r[o]=n[o]);if("/"==r[nl.Path][0])return We(r);var i=n[nl.Path];null==i&&(i="/");var s=i.lastIndexOf("/");return i=i.substring(0,s+1)+r[nl.Path],r[nl.Path]=i,We(r)}function Ke(t){return t instanceof e.Directive}function Qe(t,e){for(var r=t.length-1;r>=0;r--)if(e(t[r]))return t[r];return null}function Xe(t){var e=Je(t);return e[0]+".ngfactory"+e[1]}function Ze(t){return t.replace(cl,".")}function Ye(t){return cl.test(t)}function Je(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 tr(t){var e=t.replace(ul,"");return e+".ngsummary.json"}function er(t,r){return e.ɵreflector.hasLifecycleHook(r,rr(t))}function rr(t){switch(t){case e.ɵLifecycleHooks.OnInit:return"ngOnInit";case e.ɵLifecycleHooks.OnDestroy:return"ngOnDestroy";case e.ɵLifecycleHooks.DoCheck:return"ngDoCheck";case e.ɵLifecycleHooks.OnChanges:return"ngOnChanges";case e.ɵLifecycleHooks.AfterContentInit:return"ngAfterContentInit";case e.ɵLifecycleHooks.AfterContentChecked:return"ngAfterContentChecked";case e.ɵLifecycleHooks.AfterViewInit:return"ngAfterViewInit";case e.ɵLifecycleHooks.AfterViewChecked:return"ngAfterViewChecked"}}function nr(t){return t instanceof e.NgModule}function or(t){return t instanceof e.Pipe}function ir(t,r){if(void 0===r&&(r=[]),t)for(var n=0;n<t.length;n++){var o=e.resolveForwardRef(t[n]);Array.isArray(o)?ir(o,r):r.push(o)}return r}function sr(t){return t?Array.from(new Set(t)):[]}function ar(t){return sr(ir(t))}function ur(t){return t instanceof mo||t instanceof e.Type}function cr(t,e,r){if(e instanceof mo)return t.resourceUri(e);var n=r.moduleId;if("string"==typeof n){var o=He(n);return o?n:"package:"+n+Po}if(null!==n&&void 0!==n)throw v('moduleId should be a string in "'+pr(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 lr(t,e){d(t,new ml,e)}function pr(t){return t instanceof mo?t.name+" in "+t.filePath:e.ɵstringify(t)}function hr(t){var r=Error("Can't compile synchronously as "+e.ɵstringify(t)+" is still being loaded!");return r[e.ɵERROR_COMPONENT_TYPE]=t,r}function fr(t){var e=new vp;return e.visitAllStatements(t,null),e.varNames}function dr(t,e){if(!e)return t;var r=new gp(e);return t.visitStatement(r,null)}function mr(t,e){if(!e)return t;var r=new gp(e);return t.visitExpression(r,null)}function yr(t,e,r){return new Ol(t,e,r)}function vr(t,e,r){return void 0===e&&(e=null),new Vl(t,null,e,r)}function gr(t,e,r){return void 0===e&&(e=null),void 0===r&&(r=null),null!=t?_r(vr(t,e,null),r):null}function _r(t,e){return void 0===e&&(e=null),null!=t?new bl(t,e):null}function br(t,e,r){return new $l(t,e,r)}function wr(t,e,r){return void 0===e&&(e=null),void 0===r&&(r=!1),new Ql(t.map(function(t){return new Kl(t[0],t[1],r)}),e,null)}function Cr(t,e){return new Ul(t,e)}function Er(t,e,r,n){return new ql(t,e,r,n)}function Sr(t,e,r){return new Ll(t,e,r)}function xr(t){var e=t.parentArgs||[],r=t.parent?[Yl.callFn(e).toStmt()]:[],n=Tr(Array.isArray(t.builders)?t.builders:[t.builders]),o=new cp(null,t.ctorParams||[],r.concat(n.ctorStmts));return new pp(t.name,t.parent||null,n.fields,n.getters,o,n.methods,t.modifiers||[],t.sourceSpan)}function Tr(t){return{fields:[].concat.apply([],t.map(function(t){return t.fields||[]})),methods:[].concat.apply([],t.map(function(t){return t.methods||[]})),getters:[].concat.apply([],t.map(function(t){return t.getters||[]})),ctorStmts:[].concat.apply([],t.map(function(t){return t.ctorStmts||[]}))}}function Pr(t,e){return void 0===e&&(e=null),d(t,new bp,e)}function Ar(t){return null!=t.value?Sr(t.value):vr(t.identifier)}function Or(t){var e="";t=w(t);for(var r=0;r<t.length;){var n=t.charCodeAt(r++),o=t.charCodeAt(r++),i=t.charCodeAt(r++);e+=Rr(n>>2),e+=Rr((3&n)<<4|(isNaN(o)?0:o>>4)),e+=isNaN(o)?"=":Rr((15&o)<<2|i>>6),e+=isNaN(o)||isNaN(i)?"=":Rr(63&i)}return e}function Mr(t){t=0>t?(-t<<1)+1:t<<1;var e="";do{var r=31&t;t>>=5,t>0&&(r=32|r),e+=Rr(r)}while(t>0);return e}function Rr(t){if(0>t||t>=64)throw new Error("Can only encode value in the range [0, 63]");return Mp[t]}function kr(t,e,r){if(void 0===r&&(r=!0),null==t)return null;var n=t.replace(Rp,function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return"$"==t[0]?e?"\\$":"$":"\n"==t[0]?"\\n":"\r"==t[0]?"\\r":"\\"+t[0]}),o=r||!kp.test(n);return o?"'"+n+"'":n}function Ir(t){for(var e="",r=0;t>r;r++)e+=Ip;return e}function Nr(t){var e=new Bp(Fp,{fileNameToModuleName:function(t){return t},getImportAs:function(){return null},getTypeArity:function(){return null}}),r=Lp.createRoot([]),n=Array.isArray(t)?t:[t];return n.forEach(function(t){if(t instanceof rp)t.visitStatement(e,r);else if(t instanceof Pl)t.visitExpression(e,r);else{if(!(t instanceof vl))throw new Error("Don't know how to print debug info for "+t);t.visitType(e,r)}}),r.toSource()}function Dr(t,e){for(var r=0,n=e;r<n.length;r++){var o=n[r];Hp[o.toLowerCase()]=t}}function jr(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 Lr(t){return t.replace(dh,"")}function Vr(t){var e=t.match(mh);return e?e[0]:""}function Fr(t,e){var r=Ur(t),n=0;return r.escapedString.replace(yh,function(){for(var t=[],o=0;o<arguments.length;o++)t[o]=arguments[o];var i=t[2],s="",a=t[4],u="";a&&a.startsWith("{"+bh)&&(s=r.blocks[n++],a=a.substring(bh.length+1),u="{");var c=e(new wh(i,s));return""+t[1]+c.selector+t[3]+u+c.content+a})}function Ur(t){for(var e=t.split(vh),r=[],n=[],o=0,i=[],s=0;s<e.length;s++){var a=e[s];a==_h&&o--,o>0?i.push(a):(i.length>0&&(n.push(i.join("")),r.push(bh),i=[]),r.push(a)),a==gh&&o++}return i.length>0&&(n.push(i.join("")),r.push(bh)),new Ch(r.join(""),n)}function Br(t){var e="styles";return t&&(e+="_"+E(t.type)),e}function Hr(t,e,r,n){t||(t=new jh);var o=qr({createLiteralArrayConverter:function(){return function(t){return br(t)}},createLiteralMapConverter:function(t){return function(e){return wr(t.map(function(t,r){return[t,e[r]]}))}},createPipeConverter:function(t){throw new Error("Illegal State: Actions are not allowed to contain pipes. Pipe: "+t)}},r),i=new Dh(t,e,n),s=[];Yr(o.visit(i,Ih.Statement),s),Kr(i.temporaryCount,n,s);var a=s.length-1,u=null;if(a>=0){var c=s[a],l=en(c);l&&(u=tn(n),s[a]=u.set(l.cast(El).notIdentical(Sr(!1))).toDeclStmt(null,[ep.Final]))}return new Rh(s,u)}function qr(t,e){return Gr(t,e)}function zr(t,e,r,n){t||(t=new jh);var o=Jr(n),i=[],s=new Dh(t,e,n),a=r.visit(s,Ih.Expression);if(s.temporaryCount)for(var u=0;u<s.temporaryCount;u++)i.push($r(n,u));return i.push(o.set(a).toDeclStmt(null,[ep.Final])),new kh(i,o)}function Gr(t,e){var r=new Nh(t);return e.visit(r)}function Wr(t,e){return"tmp_"+t+"_"+e}function $r(t,e){return new np(Wr(t,e),Jl)}function Kr(t,e,r){for(var n=t-1;n>=0;n--)r.unshift($r(e,n))}function Qr(t,e){if(t!==Ih.Statement)throw new Error("Expected a statement, but saw "+e)}function Xr(t,e){if(t!==Ih.Expression)throw new Error("Expected an expression, but saw "+e)}function Zr(t,e){return t===Ih.Statement?e.toStmt():e}function Yr(t,e){Array.isArray(t)?t.forEach(function(t){return Yr(t,e)}):e.push(t)}function Jr(t){return yr("currVal_"+t)}function tn(t){return yr("pd_"+t)}function en(t){return t instanceof ip?t.expr:t instanceof sp?t.value:null}function rn(t){return t.multiProvider?nn(t.providers):on(t.providerType,t.providers[0])}function nn(t){function e(t,e){return e.map(function(e,o){var i="p"+t+"_"+o;return n.push(new Hl(i,El)),r.push(an(e)),yr(i)})}var r=[],n=[],o=t.map(function(t,r){var n;if(t.useClass){var o=e(r,t.deps||t.useClass.diDeps);n=vr(t.useClass).instantiate(o)}else if(t.useFactory){var o=e(r,t.deps||t.useFactory.diDeps);n=vr(t.useFactory).callFn(o)}else if(t.useExisting){var o=e(r,[{token:t.useExisting}]);n=o[0]}else n=Pr(t.useValue);return n}),i=Er(n,[new sp(br(o))],Sl);return{providerExpr:i,flags:512,depsExpr:br(r)}}function on(t,e){var r,n,o;t===po.Directive||t===po.Component?(r=vr(e.useClass),n=8192,o=e.deps||e.useClass.diDeps):e.useClass?(r=vr(e.useClass),n=256,o=e.deps||e.useClass.diDeps):e.useFactory?(r=vr(e.useFactory),n=512,o=e.deps||e.useFactory.diDeps):e.useExisting?(r=Jl,n=1024,o=[{token:e.useExisting}]):(r=Pr(e.useValue),n=128,o=[]);var i=br(o.map(function(t){return an(t)}));return{providerExpr:r,flags:n,depsExpr:i}}function sn(t){return t.identifier?vr(t.identifier):Sr(t.value)}function an(t){var e=t.isValue?Pr(t.value):sn(t.token),r=0;return t.isSkipSelf&&(r|=1),t.isOptional&&(r|=2),t.isValue&&(r|=8),0===r?e:br([Sr(r),e])}function un(t){var e=t[t.length-1];return e instanceof ao?e.hasViewContainer:e instanceof so?o(e.name)&&e.children.length?un(e.children):e.hasViewContainer:e instanceof ho}function cn(t){var r=0;switch(t){case e.ɵLifecycleHooks.AfterContentChecked:r=1048576;break;case e.ɵLifecycleHooks.AfterContentInit:r=524288;break;case e.ɵLifecycleHooks.AfterViewChecked:r=4194304;break;case e.ɵLifecycleHooks.AfterViewInit:r=2097152;break;case e.ɵLifecycleHooks.DoCheck:r=131072;break;case e.ɵLifecycleHooks.OnChanges:r=262144;break;case e.ɵLifecycleHooks.OnDestroy:r=65536;break;case e.ɵLifecycleHooks.OnInit:r=32768}return r}function ln(t,e){switch(t.type){case fo.Attribute:return br([Sr(1),Sr(t.name),Sr(t.securityContext)]);case fo.Property:return br([Sr(8),Sr(t.name),Sr(t.securityContext)]);case fo.Animation:var r=8|(e&&e.directive.isComponent?32:16);return br([Sr(r),Sr("@"+t.name),Sr(t.securityContext)]);case fo.Class:return br([Sr(2),Sr(t.name),Jl]);case fo.Style:return br([Sr(4),Sr(t.name),Sr(t.unit)])}}function pn(t){var e=Object.create(null);return t.attrs.forEach(function(t){e[t.name]=t.value}),t.directives.forEach(function(t){Object.keys(t.directive.hostAttributes).forEach(function(r){var n=t.directive.hostAttributes[r],o=e[r];e[r]=null!=o?hn(r,o,n):n})}),br(Object.keys(e).sort().map(function(t){return br([Sr(t),Sr(e[t])])}))}function hn(t,e,r){return t==Vh||t==Fh?e+" "+r:r}function fn(t,e){return Gh.callFn(e.length>10?[zh,Sr(t),Sr(1),br(e)]:[zh,Sr(t),Sr(0)].concat(e))}function dn(t,e,r){return vr(de(zu.unwrapValue)).callFn([zh,Sr(t),Sr(e),r])}function mn(t,e){return void 0===e&&(e=new Map),t.forEach(function(t){var r=new Set,n=new Set,o=void 0;t instanceof so?(mn(t.children,e),t.children.forEach(function(t){var o=e.get(t);o.staticQueryIds.forEach(function(t){return r.add(t)}),o.dynamicQueryIds.forEach(function(t){return n.add(t)})}),o=t.queryMatches):t instanceof ao&&(mn(t.children,e),t.children.forEach(function(t){var r=e.get(t);r.staticQueryIds.forEach(function(t){return n.add(t)}),r.dynamicQueryIds.forEach(function(t){return n.add(t)})}),o=t.queryMatches),o&&o.forEach(function(t){return r.add(t.queryId)}),n.forEach(function(t){return r["delete"](t)}),e.set(t,{staticQueryIds:r,dynamicQueryIds:n})}),e}function yn(t){var e=new Set,r=new Set;return Array.from(t.values()).forEach(function(t){t.staticQueryIds.forEach(function(t){return e.add(t)}),t.dynamicQueryIds.forEach(function(t){return r.add(t)})}),r.forEach(function(t){return e["delete"](t)}),{staticQueryIds:e,dynamicQueryIds:r}}function vn(t){var e=t.find(function(t){return t.directive.isComponent});if(e&&e.directive.entryComponents.length){var r=e.directive.entryComponents.map(function(t){return vr({reference:t.componentFactory})}),n=ye(zu.ComponentFactoryResolver),o={diDeps:[{isValue:!0,value:br(r)},{token:n,isSkipSelf:!0,isOptional:!0},{token:ye(zu.NgModuleRef)}],lifecycleHooks:[],reference:fe(zu.CodegenComponentFactoryResolver)};return new lo(n,!1,!0,[{token:n,multi:!1,useClass:o}],po.PrivateService,[],e.sourceSpan)}return null}function gn(t,e){return t.isAnimation?{name:"@"+t.name+"."+t.phase,target:e&&e.directive.isComponent?"component":null}:t}function _n(t,e,r){var n=0;return n|=!r||!t.staticQueryIds.has(e)&&t.dynamicQueryIds.has(e)?268435456:134217728}function bn(t,e,r,n){var o=new Zh(e,t);r.forEach(function(t){return o.addOrMergeSummary({symbol:t.symbol,metadata:t.metadata})});for(var i=0;i<o.symbols.length;i++){var s=o.symbols[i];if(t.isLibraryFile(s.filePath)){var a=t.resolveSummary(s);if(!a){var u=e.resolveSymbol(s);u&&(a={symbol:u.symbol,metadata:u.metadata})}a&&o.addOrMergeSummary(a)}}return n.forEach(function(e){if(o.addOrMergeSummary({symbol:e.type.reference,metadata:null,type:e}),e.summaryKind===Wo.NgModule){var r=e;r.exportedDirectives.concat(r.exportedPipes).forEach(function(e){var r=e.reference;if(t.isLibraryFile(r.filePath)){var n=t.resolveSummary(r);n&&o.addOrMergeSummary(n)}})}}),o.serialize()}function wn(t,e){var r=new Yh(t);return r.deserialize(e)}function Cn(t,e,r){return e.dependencies.forEach(function(e){e.valuePlaceholder.reference=t.getStaticSymbol(En(e.moduleUrl,e.isShimmed,r),e.name)}),e.statements}function En(t,e,r){return""+t+(e?".shim":"")+".ngstyle"+r}function Sn(t){if(!t.isComponent)throw new Error("Could not compile '"+E(t.type)+"' because it is not a component.")}function xn(t,e,r){var n=On(t,e,r),o=n.ngModules,i=n.symbolsMissingModule;return Pn(t,o,i,r)}function Tn(t,e,r){var n=xn(t,e,r);if(n.symbolsMissingModule&&n.symbolsMissingModule.length){var o=n.symbolsMissingModule.map(function(t){return"Cannot determine the module for class "+t.name+" in "+t.filePath+"! Add "+t.name+" to the NgModule to fix it."});throw v(o.join("\n"))}return n}function Pn(t,e,r,n){var o=new Map;e.forEach(function(t){return o.set(t.type.reference,t)});var i=new Map,s=new Map,a=new Map,u=new Map,c=new Map,l=new Set;t.forEach(function(t){var e=t.filePath;l.add(e),n.isInjectable(t)&&c.set(e,(c.get(e)||[]).concat(t))}),e.forEach(function(t){ +var e=t.type.reference.filePath;l.add(e),s.set(e,(s.get(e)||[]).concat(t.type.reference)),t.declaredDirectives.forEach(function(e){var r=e.reference.filePath;l.add(r),a.set(r,(a.get(r)||[]).concat(e.reference)),i.set(e.reference,t)}),t.declaredPipes.forEach(function(e){var r=e.reference.filePath;l.add(r),u.set(r,(u.get(r)||[]).concat(e.reference)),i.set(e.reference,t)})});var p=[];return l.forEach(function(t){var e=a.get(t)||[],r=u.get(t)||[],n=s.get(t)||[],o=c.get(t)||[];p.push({srcUrl:t,directives:e,pipes:r,ngModules:n,injectables:o})}),{ngModuleByPipeOrDirective:i,files:p,ngModules:e,symbolsMissingModule:r}}function An(t,e,r){var n=[];return e.filter(function(t){return r.isSourceFile(t)}).forEach(function(e){t.getSymbolsOf(e).forEach(function(e){var r=t.resolveSymbol(e),o=r.metadata;o&&"error"!=o.__symbolic&&n.push(r.symbol)})}),n}function On(t,e,r){var n=new Map,o=[],i=new Set,s=function(t){if(n.has(t)||!e.isSourceFile(t.filePath))return!1;var o=r.getNgModuleMetadata(t,!1);return o&&(n.set(o.type.reference,o),o.declaredDirectives.forEach(function(t){return i.add(t.reference)}),o.declaredPipes.forEach(function(t){return i.add(t.reference)}),o.transitiveModule.modules.forEach(function(t){return s(t.reference)})),!!o};t.forEach(function(t){s(t)||!r.isDirective(t)&&!r.isPipe(t)||o.push(t)});var a=o.filter(function(t){return!i.has(t)});return{ngModules:Array.from(n.values()),symbolsMissingModule:a}}function Mn(t){return"object"==typeof t&&t.name&&t.filePath}function Rn(t){return t&&"ignore"==t.__symbolic}function kn(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 In(t){return"Error encountered resolving symbol values statically. "+kn(t)}function Nn(t,e){if(!t)return{};var r={};return Object.keys(t).forEach(function(n){var o=e(t[n],n);Rn(o)||(rf.test(n)?Object.defineProperty(r,n,{enumerable:!1,configurable:!0,value:o}):r[n]=o)}),r}function Dn(t){return null===t||"function"!=typeof t&&"object"!=typeof t}function jn(t,e,r,n){var o=new Error(t);return o.fileName=e,o.line=r,o.column=n,o}function Ln(t){return t.startsWith("___")?t.substr(1):t}function Vn(t,r){var n=r.translations||"",o=Be(),i=new yo,s=new pf(t,i),a=new lf(t,i,s),u=new of(s,a);tf.install(u);var c=new e.ɵConsole,l=new Hu(new Fu,n,r.i18nFormat,e.MissingTranslationStrategy.Warning,c),p=new ti({defaultEncapsulation:e.ViewEncapsulation.Emulated,useJit:!1,enableLegacyTemplate:r.enableLegacyTemplate!==!1}),h=new ol({get:function(e){return t.loadResource(e)}},o,l,p),f=new Us(new Ns),d=new Qp,m=new Wc(p,f,d,l,c,[]),y=new dl(p,new ll(u),new al(u),new pl(u),s,d,h,c,i,u),v={getImportAs:function(t){return a.getImportAs(t)},fileNameToModuleName:function(e,r){return t.fileNameToModuleName(e,r)},getTypeArity:function(t){return a.getTypeArity(t)}},g=new Hh(p,d),_=new Jh(p,t,y,m,new Oh(o),g,new Ep,new Up(v),s,r.locale||null,r.i18nFormat||null,r.genFilePreamble||null,a);return{compiler:_,reflector:u}}function Fn(t,e){var r=t.concat([new sp(br(e.map(function(t){return yr(t)})))]),n=new hf(null,null,null,new Map),o=new df,i=o.visitAllStatements(r,n);return null!=i?i.value:null}function Un(t,e,r,n,o){for(var i=n.createChildWihtLocalVars(),s=0;s<t.length;s++)i.vars.set(t[s],e[s]);var a=o.visitAllStatements(r,i);return a?a.value:null}function Bn(t,e,r){var n={};t.getters.forEach(function(o){n[o.name]={configurable:!1,get:function(){var n=new hf(e,this,t.name,e.vars);return Un([],[],o.body,n,r)}}}),t.methods.forEach(function(o){var i=o.params.map(function(t){return t.name});n[o.name]={writable:!1,configurable:!1,value:function(){for(var n=[],s=0;s<arguments.length;s++)n[s]=arguments[s];var a=new hf(e,this,t.name,e.vars);return Un(i,n,o.body,a,r)}}});var o=t.constructorMethod.params.map(function(t){return t.name}),i=function(){for(var n=this,i=[],s=0;s<arguments.length;s++)i[s]=arguments[s];var a=new hf(e,this,t.name,e.vars);t.fields.forEach(function(t){n[t.name]=void 0}),Un(o,i,t.constructorMethod.body,a,r)},s=t.parent?t.parent.visitExpression(r,e):Object;return i.prototype=Object.create(s.prototype,n),i}function Hn(t,e,r,n){return function(){for(var o=[],i=0;i<arguments.length;i++)o[i]=arguments[i];return Un(t,o,e,r,n)}}function qn(t,r,n){var o=r.toSource()+"\n//# sourceURL="+t,i=[],s=[];for(var a in n)i.push(a),s.push(n[a]);if(e.isDevMode()){var u=(new(Function.bind.apply(Function,[void 0].concat(i.concat("return null;"))))).toString(),c=u.slice(0,u.indexOf("return null;")).split("\n").length-1;o+="\n"+r.toSourceMapGenerator(t,t,c).toJsComment()}return(new(Function.bind.apply(Function,[void 0].concat(i.concat(o))))).apply(void 0,s)}function zn(t,e,r){var n=new gf,o=Lp.createRoot(r),i=new sp(br(r.map(function(t){return yr(t)})));return n.visitAllStatements(e.concat([i]),o),qn(t,o,n.getArgs())}function Gn(t){if(!t.isComponent)throw new Error("Could not compile '"+E(t.type)+"' because it is not a component.")}function Wn(t,e,r,n,o){return new Hu(t,e,r,n.missingTranslation,o)}function $n(){e.ɵreflector.reflectionCapabilities=new e.ɵReflectionCapabilities}function Kn(t){return{useJit:Qn(t.map(function(t){return t.useJit})),defaultEncapsulation:Qn(t.map(function(t){return t.defaultEncapsulation})),providers:Xn(t.map(function(t){return t.providers})),missingTranslation:Qn(t.map(function(t){return t.missingTranslation}))}}function Qn(t){for(var e=t.length-1;e>=0;e--)if(void 0!==t[e])return t[e];return void 0}function Xn(t){var e=[];return t.forEach(function(t){return t&&e.push.apply(e,t)}),e}var Zn=void 0||function(t,e){function r(){this.constructor=t}for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)},Yn=new e.Version("4.1.0"),Jn=function(){function t(t,e,r){this.value=t,this.ngContentIndex=e,this.sourceSpan=r}return t.prototype.visit=function(t,e){return t.visitText(this,e)},t}(),to=function(){function t(t,e,r){this.value=t,this.ngContentIndex=e,this.sourceSpan=r}return t.prototype.visit=function(t,e){return t.visitBoundText(this,e)},t}(),eo=function(){function t(t,e,r){this.name=t,this.value=e,this.sourceSpan=r}return t.prototype.visit=function(t,e){return t.visitAttr(this,e)},t}(),ro=function(){function t(t,e,r,n,o,i){this.name=t,this.type=e,this.securityContext=r,this.value=n,this.unit=o,this.sourceSpan=i}return t.prototype.visit=function(t,e){return t.visitElementProperty(this,e)},Object.defineProperty(t.prototype,"isAnimation",{get:function(){return this.type===fo.Animation},enumerable:!0,configurable:!0}),t}(),no=function(){function t(t,e,r,n,o){this.name=t,this.target=e,this.phase=r,this.handler=n,this.sourceSpan=o}return t.calcFullName=function(t,e,r){return e?e+":"+t:r?"@"+t+"."+r: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}(),oo=function(){function t(t,e,r){this.name=t,this.value=e,this.sourceSpan=r}return t.prototype.visit=function(t,e){return t.visitReference(this,e)},t}(),io=function(){function t(t,e,r){this.name=t,this.value=e,this.sourceSpan=r}return t.prototype.visit=function(t,e){return t.visitVariable(this,e)},t}(),so=function(){function t(t,e,r,n,o,i,s,a,u,c,l,p,h){this.name=t,this.attrs=e,this.inputs=r,this.outputs=n,this.references=o,this.directives=i,this.providers=s,this.hasViewContainer=a,this.queryMatches=u,this.children=c,this.ngContentIndex=l,this.sourceSpan=p,this.endSourceSpan=h}return t.prototype.visit=function(t,e){return t.visitElement(this,e)},t}(),ao=function(){function t(t,e,r,n,o,i,s,a,u,c,l){this.attrs=t,this.outputs=e,this.references=r,this.variables=n,this.directives=o,this.providers=i,this.hasViewContainer=s,this.queryMatches=a,this.children=u,this.ngContentIndex=c,this.sourceSpan=l}return t.prototype.visit=function(t,e){return t.visitEmbeddedTemplate(this,e)},t}(),uo=function(){function t(t,e,r,n){this.directiveName=t,this.templateName=e,this.value=r,this.sourceSpan=n}return t.prototype.visit=function(t,e){return t.visitDirectiveProperty(this,e)},t}(),co=function(){function t(t,e,r,n,o,i){this.directive=t,this.inputs=e,this.hostProperties=r,this.hostEvents=n,this.contentQueryStartId=o,this.sourceSpan=i}return t.prototype.visit=function(t,e){return t.visitDirective(this,e)},t}(),lo=function(){function t(t,e,r,n,o,i,s){this.token=t,this.multiProvider=e,this.eager=r,this.providers=n,this.providerType=o,this.lifecycleHooks=i,this.sourceSpan=s}return t.prototype.visit=function(){return null},t}(),po={};po.PublicService=0,po.PrivateService=1,po.Component=2,po.Directive=3,po.Builtin=4,po[po.PublicService]="PublicService",po[po.PrivateService]="PrivateService",po[po.Component]="Component",po[po.Directive]="Directive",po[po.Builtin]="Builtin";var ho=function(){function t(t,e,r){this.index=t,this.ngContentIndex=e,this.sourceSpan=r}return t.prototype.visit=function(t,e){return t.visitNgContent(this,e)},t}(),fo={};fo.Property=0,fo.Attribute=1,fo.Class=2,fo.Style=3,fo.Animation=4,fo[fo.Property]="Property",fo[fo.Attribute]="Attribute",fo[fo.Class]="Class",fo[fo.Style]="Style",fo[fo.Animation]="Animation";var mo=function(){function t(t,e,r){this.filePath=t,this.name=e,this.members=r}return t.prototype.assertNoMembers=function(){if(this.members.length)throw new Error("Illegal state: symbol without members expected, but got "+JSON.stringify(this)+".")},t}(),yo=function(){function t(){this.cache=new Map}return t.prototype.get=function(t,e,r){r=r||[];var n=r.length?"."+r.join("."):"",o='"'+t+'".'+e+n,i=this.cache.get(o);return i||(i=new mo(t,e,r),this.cache.set(o,i)),i},t}(),vo={};vo.RAW_TEXT=0,vo.ESCAPABLE_RAW_TEXT=1,vo.PARSABLE_DATA=2,vo[vo.RAW_TEXT]="RAW_TEXT",vo[vo.ESCAPABLE_RAW_TEXT]="ESCAPABLE_RAW_TEXT",vo[vo.PARSABLE_DATA]="PARSABLE_DATA";var go={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:"‌"},_o=function(){function t(t){var e=void 0===t?{}:t,r=e.closedByChildren,n=e.requiredParents,o=e.implicitNamespacePrefix,i=e.contentType,s=void 0===i?vo.PARSABLE_DATA:i,a=e.closedByParent,u=void 0===a?!1:a,c=e.isVoid,l=void 0===c?!1:c,p=e.ignoreFirstLf,h=void 0===p?!1:p,f=this;this.closedByChildren={},this.closedByParent=!1,this.canSelfClose=!1,r&&r.length>0&&r.forEach(function(t){return f.closedByChildren[t]=!0}),this.isVoid=l,this.closedByParent=u||l,n&&n.length>0&&(this.requiredParents={},this.parentToAdd=n[0],n.forEach(function(t){return f.requiredParents[t]=!0})),this.implicitNamespacePrefix=o||null,this.contentType=s,this.ignoreFirstLf=h}return t.prototype.requireExtraParent=function(t){if(!this.requiredParents)return!1;if(!t)return!0;var e=t.toLowerCase(),r="template"===e||"ng-template"===t;return!r&&1!=this.requiredParents[e]},t.prototype.isClosedByChild=function(t){return this.isVoid||t.toLowerCase()in this.closedByChildren},t}(),bo={base:new _o({isVoid:!0}),meta:new _o({isVoid:!0}),area:new _o({isVoid:!0}),embed:new _o({isVoid:!0}),link:new _o({isVoid:!0}),img:new _o({isVoid:!0}),input:new _o({isVoid:!0}),param:new _o({isVoid:!0}),hr:new _o({isVoid:!0}),br:new _o({isVoid:!0}),source:new _o({isVoid:!0}),track:new _o({isVoid:!0}),wbr:new _o({isVoid:!0}),p:new _o({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 _o({closedByChildren:["tbody","tfoot"]}),tbody:new _o({closedByChildren:["tbody","tfoot"],closedByParent:!0}),tfoot:new _o({closedByChildren:["tbody"],closedByParent:!0}),tr:new _o({closedByChildren:["tr"],requiredParents:["tbody","tfoot","thead"],closedByParent:!0}),td:new _o({closedByChildren:["td","th"],closedByParent:!0}),th:new _o({closedByChildren:["td","th"],closedByParent:!0}),col:new _o({requiredParents:["colgroup"],isVoid:!0}),svg:new _o({implicitNamespacePrefix:"svg"}),math:new _o({implicitNamespacePrefix:"math"}),li:new _o({closedByChildren:["li"],closedByParent:!0}),dt:new _o({closedByChildren:["dt","dd"]}),dd:new _o({closedByChildren:["dt","dd"],closedByParent:!0}),rb:new _o({closedByChildren:["rb","rt","rtc","rp"],closedByParent:!0}),rt:new _o({closedByChildren:["rb","rt","rtc","rp"],closedByParent:!0}),rtc:new _o({closedByChildren:["rb","rtc","rp"],closedByParent:!0}),rp:new _o({closedByChildren:["rb","rt","rtc","rp"],closedByParent:!0}),optgroup:new _o({closedByChildren:["optgroup"],closedByParent:!0}),option:new _o({closedByChildren:["option","optgroup"],closedByParent:!0}),pre:new _o({ignoreFirstLf:!0}),listing:new _o({ignoreFirstLf:!0}),style:new _o({contentType:vo.RAW_TEXT}),script:new _o({contentType:vo.RAW_TEXT}),title:new _o({contentType:vo.ESCAPABLE_RAW_TEXT}),textarea:new _o({contentType:vo.ESCAPABLE_RAW_TEXT,ignoreFirstLf:!0})},wo=new _o,Co=new RegExp("(\\:not\\()|([-\\w]+)|(?:\\.([-\\w]+))|(?:\\[([-.\\w*]+)(?:=([\"']?)([^\\]\"']*)\\5)?\\])|(\\))|(\\s*,\\s*)","g"),Eo=function(){function t(){this.element=null,this.classNames=[],this.attrs=[],this.notSelectors=[]}return t.parse=function(e){var r,n=[],o=function(t,e){e.notSelectors.length>0&&!e.element&&0==e.classNames.length&&0==e.attrs.length&&(e.element="*"),t.push(e)},i=new t,s=i,a=!1;for(Co.lastIndex=0;r=Co.exec(e);){if(r[1]){if(a)throw new Error("Nesting :not is not allowed in a selector");a=!0,s=new t,i.notSelectors.push(s)}if(r[2]&&s.setElement(r[2]),r[3]&&s.addClassName(r[3]),r[4]&&s.addAttribute(r[4],r[6]),r[7]&&(a=!1,s=i),r[8]){if(a)throw new Error("Multiple selectors in :not are not supported");o(n,i),i=s=new t}}return o(n,i),n},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(" ")+'"':"",r="",n=0;n<this.attrs.length;n+=2){var o=this.attrs[n],i=""!==this.attrs[n+1]?'="'+this.attrs[n+1]+'"':"";r+=" "+o+i}return c(t).isVoid?"<"+t+e+r+"/>":"<"+t+e+r+"></"+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 r=this.attrs[e],n=this.attrs[e+1];t+="["+r+(n?"="+n:"")+"]"}return this.notSelectors.forEach(function(e){return t+=":not("+e+")"}),t},t}(),So=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 r=new t;return r.addSelectables(e,null),r},t.prototype.addSelectables=function(t,e){var r=null;t.length>1&&(r=new xo(t),this._listContexts.push(r));for(var n=0;n<t.length;n++)this._addSelectable(t[n],e,r)},t.prototype._addSelectable=function(t,e,r){var n=this,o=t.element,i=t.classNames,s=t.attrs,a=new To(t,e,r);if(o){var u=0===s.length&&0===i.length;u?this._addTerminal(n._elementMap,o,a):n=this._addPartial(n._elementPartialMap,o)}if(i)for(var c=0;c<i.length;c++){var u=0===s.length&&c===i.length-1,l=i[c];u?this._addTerminal(n._classMap,l,a):n=this._addPartial(n._classPartialMap,l)}if(s)for(var c=0;c<s.length;c+=2){var u=c===s.length-2,p=s[c],h=s[c+1];if(u){var f=n._attrValueMap,d=f.get(p);d||(d=new Map,f.set(p,d)),this._addTerminal(d,h,a)}else{var m=n._attrValuePartialMap,y=m.get(p);y||(y=new Map,m.set(p,y)),n=this._addPartial(y,h)}}},t.prototype._addTerminal=function(t,e,r){var n=t.get(e);n||(n=[],t.set(e,n)),n.push(r)},t.prototype._addPartial=function(e,r){var n=e.get(r);return n||(n=new t,e.set(r,n)),n},t.prototype.match=function(t,e){for(var r=!1,n=t.element,o=t.classNames,i=t.attrs,s=0;s<this._listContexts.length;s++)this._listContexts[s].alreadyMatched=!1;if(r=this._matchTerminal(this._elementMap,n,t,e)||r,r=this._matchPartial(this._elementPartialMap,n,t,e)||r,o)for(var s=0;s<o.length;s++){var a=o[s];r=this._matchTerminal(this._classMap,a,t,e)||r,r=this._matchPartial(this._classPartialMap,a,t,e)||r}if(i)for(var s=0;s<i.length;s+=2){var u=i[s],c=i[s+1],l=this._attrValueMap.get(u);c&&(r=this._matchTerminal(l,"",t,e)||r),r=this._matchTerminal(l,c,t,e)||r;var p=this._attrValuePartialMap.get(u);c&&(r=this._matchPartial(p,"",t,e)||r),r=this._matchPartial(p,c,t,e)||r}return r},t.prototype._matchTerminal=function(t,e,r,n){if(!t||"string"!=typeof e)return!1;var o=t.get(e)||[],i=t.get("*");if(i&&(o=o.concat(i)),0===o.length)return!1;for(var s,a=!1,u=0;u<o.length;u++)s=o[u],a=s.finalize(r,n)||a;return a},t.prototype._matchPartial=function(t,e,r,n){if(!t||"string"!=typeof e)return!1;var o=t.get(e);return o?o.match(r,n):!1},t}(),xo=function(){function t(t){this.selectors=t,this.alreadyMatched=!1}return t}(),To=function(){function t(t,e,r){this.selector=t,this.cbContext=e,this.listContext=r,this.notSelectors=t.notSelectors}return t.prototype.finalize=function(t,e){var r=!0;if(this.notSelectors.length>0&&(!this.listContext||!this.listContext.alreadyMatched)){var n=So.createNotMatcher(this.notSelectors);r=!n.match(t,null)}return!r||!e||this.listContext&&this.listContext.alreadyMatched||(this.listContext&&(this.listContext.alreadyMatched=!0),e(this.selector,this.cbContext)),r},t}(),Po="",Ao=/-+([a-z0-9])/g,Oo=function(){function t(){}return t.prototype.visitArray=function(t,e){var r=this;return t.map(function(t){return d(t,r,e)})},t.prototype.visitStringMap=function(t,e){var r=this,n={};return Object.keys(t).forEach(function(o){n[o]=d(t[o],r,e)}),n},t.prototype.visitPrimitive=function(t){return t},t.prototype.visitOther=function(t){return t},t}(),Mo=function(){function t(t,e){void 0===e&&(e=null),this.syncResult=t,this.asyncResult=e,e||(this.asyncResult=Promise.resolve(t))}return t}(),Ro="ngSyntaxError",ko=Object.getPrototypeOf({}),Io=/^(?:(?:\[([^\]]+)\])|(?:\(([^\)]+)\)))|(\@[-\w]+)$/,No=function(){function t(t,e){void 0===t&&(t=null),void 0===e&&(e=null),this.name=t,this.definitions=e}return t}(),Do=function(){function t(){}return t}(),jo=function(t){function e(e,r){var n=t.call(this)||this;return n.stateNameExpr=e,n.styles=r,n}return Zn(e,t),e}(Do),Lo=function(t){function e(e,r){var n=t.call(this)||this;return n.stateChangeExpr=e,n.steps=r,n}return Zn(e,t),e}(Do),Vo=function(){function t(){}return t}(),Fo=function(t){function e(e){void 0===e&&(e=[]);var r=t.call(this)||this;return r.steps=e,r}return Zn(e,t),e}(Vo),Uo=function(t){function e(e,r){void 0===r&&(r=null);var n=t.call(this)||this;return n.offset=e,n.styles=r,n}return Zn(e,t),e}(Vo),Bo=function(t){function e(e,r){void 0===e&&(e=0),void 0===r&&(r=null);var n=t.call(this)||this;return n.timings=e,n.styles=r,n}return Zn(e,t),e}(Vo),Ho=function(t){function e(e){void 0===e&&(e=null);var r=t.call(this)||this;return r.steps=e,r}return Zn(e,t),e}(Vo),qo=function(t){function e(e){return void 0===e&&(e=null),t.call(this,e)||this}return Zn(e,t),e}(Ho),zo=function(t){function e(e){return void 0===e&&(e=null),t.call(this,e)||this}return Zn(e,t),e}(Ho),Go=0,Wo={};Wo.Pipe=0,Wo.Directive=1,Wo.NgModule=2,Wo.Injectable=3,Wo[Wo.Pipe]="Pipe",Wo[Wo.Directive]="Directive",Wo[Wo.NgModule]="NgModule",Wo[Wo.Injectable]="Injectable";var $o=function(){function t(t){var e=void 0===t?{}:t,r=e.moduleUrl,n=e.styles,o=e.styleUrls;this.moduleUrl=r||null,this.styles=I(n),this.styleUrls=I(o)}return t}(),Ko=function(){function t(t){var e=t.encapsulation,r=t.template,n=t.templateUrl,o=t.styles,i=t.styleUrls,s=t.externalStylesheets,a=t.animations,u=t.ngContentSelectors,c=t.interpolation,l=t.isInline;if(this.encapsulation=e,this.template=r,this.templateUrl=n,this.styles=I(o),this.styleUrls=I(i),this.externalStylesheets=I(s),this.animations=a?N(a):[],this.ngContentSelectors=u||[],c&&2!=c.length)throw new Error("'interpolation' should have a start and an end symbol.");this.interpolation=c,this.isInline=l}return t.prototype.toSummary=function(){return{animations:this.animations.map(function(t){return t.name}),ngContentSelectors:this.ngContentSelectors,encapsulation:this.encapsulation}},t}(),Qo=function(){function t(t){var e=t.isHost,r=t.type,n=t.isComponent,o=t.selector,i=t.exportAs,s=t.changeDetection,a=t.inputs,u=t.outputs,c=t.hostListeners,l=t.hostProperties,p=t.hostAttributes,h=t.providers,f=t.viewProviders,d=t.queries,m=t.viewQueries,y=t.entryComponents,v=t.template,g=t.componentViewType,_=t.rendererType,b=t.componentFactory;this.isHost=!!e,this.type=r,this.isComponent=n,this.selector=o,this.exportAs=i,this.changeDetection=s,this.inputs=a,this.outputs=u,this.hostListeners=c,this.hostProperties=l,this.hostAttributes=p,this.providers=I(h),this.viewProviders=I(f),this.queries=I(d),this.viewQueries=I(m),this.entryComponents=I(y),this.template=v,this.componentViewType=g,this.rendererType=_,this.componentFactory=b}return t.create=function(e){var r=e.isHost,n=e.type,o=e.isComponent,i=e.selector,s=e.exportAs,a=e.changeDetection,u=e.inputs,c=e.outputs,l=e.host,h=e.providers,f=e.viewProviders,d=e.queries,m=e.viewQueries,y=e.entryComponents,v=e.template,g=e.componentViewType,_=e.rendererType,b=e.componentFactory,w={},C={},E={};null!=l&&Object.keys(l).forEach(function(t){var e=l[t],r=t.match(Io);null===r?E[t]=e:null!=r[1]?C[r[1]]=e:null!=r[2]&&(w[r[2]]=e)});var S={};null!=u&&u.forEach(function(t){var e=p(t,[t,t]);S[e[0]]=e[1]});var x={};return null!=c&&c.forEach(function(t){var e=p(t,[t,t]);x[e[0]]=e[1]}),new t({isHost:r,type:n,isComponent:!!o,selector:i,exportAs:s,changeDetection:a,inputs:S,outputs:x,hostListeners:w,hostProperties:C,hostAttributes:E,providers:h,viewProviders:f,queries:d,viewQueries:m,entryComponents:y,template:v,componentViewType:g,rendererType:_,componentFactory:b})},t.prototype.toSummary=function(){return{summaryKind:Wo.Directive,type:this.type,isComponent:this.isComponent,selector:this.selector,exportAs:this.exportAs,inputs:this.inputs,outputs:this.outputs,hostListeners:this.hostListeners,hostProperties:this.hostProperties,hostAttributes:this.hostAttributes,providers:this.providers,viewProviders:this.viewProviders,queries:this.queries,viewQueries:this.viewQueries,entryComponents:this.entryComponents,changeDetection:this.changeDetection,template:this.template&&this.template.toSummary(),componentViewType:this.componentViewType,rendererType:this.rendererType,componentFactory:this.componentFactory}},t}(),Xo=function(){function t(t){var e=t.type,r=t.name,n=t.pure;this.type=e,this.name=r,this.pure=!!n}return t.prototype.toSummary=function(){return{summaryKind:Wo.Pipe,type:this.type,name:this.name,pure:this.pure}},t}(),Zo=function(){function t(t){var e=t.type,r=t.providers,n=t.declaredDirectives,o=t.exportedDirectives,i=t.declaredPipes,s=t.exportedPipes,a=t.entryComponents,u=t.bootstrapComponents,c=t.importedModules,l=t.exportedModules,p=t.schemas,h=t.transitiveModule,f=t.id;this.type=e||null,this.declaredDirectives=I(n),this.exportedDirectives=I(o),this.declaredPipes=I(i),this.exportedPipes=I(s),this.providers=I(r),this.entryComponents=I(a),this.bootstrapComponents=I(u),this.importedModules=I(c),this.exportedModules=I(l),this.schemas=I(p),this.id=f||null,this.transitiveModule=h||null}return t.prototype.toSummary=function(){var t=this.transitiveModule;return{summaryKind:Wo.NgModule,type:this.type,entryComponents:t.entryComponents,providers:t.providers,modules:t.modules,exportedDirectives:t.exportedDirectives,exportedPipes:t.exportedPipes}},t}(),Yo=function(){function t(){this.directivesSet=new Set,this.directives=[],this.exportedDirectivesSet=new Set,this.exportedDirectives=[],this.pipesSet=new Set,this.pipes=[],this.exportedPipesSet=new Set,this.exportedPipes=[],this.modulesSet=new Set,this.modules=[],this.entryComponentsSet=new Set,this.entryComponents=[],this.providers=[]}return t.prototype.addProvider=function(t,e){this.providers.push({provider:t,module:e})},t.prototype.addDirective=function(t){this.directivesSet.has(t.reference)||(this.directivesSet.add(t.reference),this.directives.push(t))},t.prototype.addExportedDirective=function(t){this.exportedDirectivesSet.has(t.reference)||(this.exportedDirectivesSet.add(t.reference),this.exportedDirectives.push(t))},t.prototype.addPipe=function(t){this.pipesSet.has(t.reference)||(this.pipesSet.add(t.reference),this.pipes.push(t))},t.prototype.addExportedPipe=function(t){this.exportedPipesSet.has(t.reference)||(this.exportedPipesSet.add(t.reference),this.exportedPipes.push(t))},t.prototype.addModule=function(t){this.modulesSet.has(t.reference)||(this.modulesSet.add(t.reference),this.modules.push(t))},t.prototype.addEntryComponent=function(t){this.entryComponentsSet.has(t.componentType)||(this.entryComponentsSet.add(t.componentType),this.entryComponents.push(t))},t}(),Jo=function(){function t(t,e){var r=e.useClass,n=e.useValue,o=e.useExisting,i=e.useFactory,s=e.deps,a=e.multi;this.token=t,this.useClass=r||null,this.useValue=n,this.useExisting=o,this.useFactory=i||null,this.dependencies=s||null,this.multi=!!a}return t}(),ti=function(){function t(t){var r=void 0===t?{}:t,n=r.defaultEncapsulation,o=void 0===n?e.ViewEncapsulation.Emulated:n,i=r.useJit,s=void 0===i?!0:i,a=r.missingTranslation,u=r.enableLegacyTemplate;this.defaultEncapsulation=o,this.useJit=!!s,this.missingTranslation=a||null,this.enableLegacyTemplate=u!==!1}return t}(),ei=function(){function t(t,e,r,n){this.input=e,this.errLocation=r,this.ctxLocation=n,this.message="Parser Error: "+t+" "+r+" ["+e+"] in "+n}return t}(),ri=function(){function t(t,e){this.start=t,this.end=e}return t}(),ni=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}(),oi=function(t){function e(e,r,n,o){var i=t.call(this,e)||this;return i.prefix=r,i.uninterpretedExpression=n,i.location=o,i}return Zn(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}(ni),ii=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Zn(e,t),e.prototype.visit=function(t,e){void 0===e&&(e=null)},e}(ni),si=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Zn(e,t),e.prototype.visit=function(t,e){return void 0===e&&(e=null),t.visitImplicitReceiver(this,e)},e}(ni),ai=function(t){function e(e,r){var n=t.call(this,e)||this;return n.expressions=r,n}return Zn(e,t),e.prototype.visit=function(t,e){return void 0===e&&(e=null),t.visitChain(this,e)},e}(ni),ui=function(t){function e(e,r,n,o){var i=t.call(this,e)||this;return i.condition=r,i.trueExp=n,i.falseExp=o,i}return Zn(e,t),e.prototype.visit=function(t,e){return void 0===e&&(e=null),t.visitConditional(this,e)},e}(ni),ci=function(t){function e(e,r,n){var o=t.call(this,e)||this;return o.receiver=r,o.name=n,o}return Zn(e,t),e.prototype.visit=function(t,e){return void 0===e&&(e=null),t.visitPropertyRead(this,e)},e}(ni),li=function(t){function e(e,r,n,o){var i=t.call(this,e)||this;return i.receiver=r,i.name=n,i.value=o,i}return Zn(e,t),e.prototype.visit=function(t,e){return void 0===e&&(e=null),t.visitPropertyWrite(this,e)},e}(ni),pi=function(t){function e(e,r,n){var o=t.call(this,e)||this;return o.receiver=r,o.name=n,o}return Zn(e,t),e.prototype.visit=function(t,e){return void 0===e&&(e=null),t.visitSafePropertyRead(this,e)},e}(ni),hi=function(t){function e(e,r,n){var o=t.call(this,e)||this;return o.obj=r,o.key=n,o}return Zn(e,t),e.prototype.visit=function(t,e){return void 0===e&&(e=null),t.visitKeyedRead(this,e)},e}(ni),fi=function(t){function e(e,r,n,o){var i=t.call(this,e)||this;return i.obj=r,i.key=n,i.value=o,i}return Zn(e,t),e.prototype.visit=function(t,e){return void 0===e&&(e=null),t.visitKeyedWrite(this,e)},e}(ni),di=function(t){function e(e,r,n,o){var i=t.call(this,e)||this;return i.exp=r,i.name=n,i.args=o,i}return Zn(e,t),e.prototype.visit=function(t,e){return void 0===e&&(e=null),t.visitPipe(this,e)},e}(ni),mi=function(t){function e(e,r){var n=t.call(this,e)||this;return n.value=r,n}return Zn(e,t),e.prototype.visit=function(t,e){return void 0===e&&(e=null),t.visitLiteralPrimitive(this,e)},e}(ni),yi=function(t){function e(e,r){var n=t.call(this,e)||this;return n.expressions=r,n}return Zn(e,t),e.prototype.visit=function(t,e){return void 0===e&&(e=null),t.visitLiteralArray(this,e)},e}(ni),vi=function(t){function e(e,r,n){ +var o=t.call(this,e)||this;return o.keys=r,o.values=n,o}return Zn(e,t),e.prototype.visit=function(t,e){return void 0===e&&(e=null),t.visitLiteralMap(this,e)},e}(ni),gi=function(t){function e(e,r,n){var o=t.call(this,e)||this;return o.strings=r,o.expressions=n,o}return Zn(e,t),e.prototype.visit=function(t,e){return void 0===e&&(e=null),t.visitInterpolation(this,e)},e}(ni),_i=function(t){function e(e,r,n,o){var i=t.call(this,e)||this;return i.operation=r,i.left=n,i.right=o,i}return Zn(e,t),e.prototype.visit=function(t,e){return void 0===e&&(e=null),t.visitBinary(this,e)},e}(ni),bi=function(t){function e(e,r){var n=t.call(this,e)||this;return n.expression=r,n}return Zn(e,t),e.prototype.visit=function(t,e){return void 0===e&&(e=null),t.visitPrefixNot(this,e)},e}(ni),wi=function(t){function e(e,r,n,o){var i=t.call(this,e)||this;return i.receiver=r,i.name=n,i.args=o,i}return Zn(e,t),e.prototype.visit=function(t,e){return void 0===e&&(e=null),t.visitMethodCall(this,e)},e}(ni),Ci=function(t){function e(e,r,n,o){var i=t.call(this,e)||this;return i.receiver=r,i.name=n,i.args=o,i}return Zn(e,t),e.prototype.visit=function(t,e){return void 0===e&&(e=null),t.visitSafeMethodCall(this,e)},e}(ni),Ei=function(t){function e(e,r,n){var o=t.call(this,e)||this;return o.target=r,o.args=n,o}return Zn(e,t),e.prototype.visit=function(t,e){return void 0===e&&(e=null),t.visitFunctionCall(this,e)},e}(ni),Si=function(t){function e(e,r,n,o){var i=t.call(this,new ri(0,null==r?0:r.length))||this;return i.ast=e,i.source=r,i.location=n,i.errors=o,i}return Zn(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}(ni),xi=function(){function t(t,e,r,n,o){this.span=t,this.key=e,this.keyIsVar=r,this.name=n,this.expression=o}return t}(),Ti=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 r=this;return t.forEach(function(t){return t.visit(r,e)}),null},t.prototype.visitQuote=function(){return null},t}(),Pi=function(){function t(){}return t.prototype.visitImplicitReceiver=function(t){return t},t.prototype.visitInterpolation=function(t){return new gi(t.span,t.strings,this.visitAll(t.expressions))},t.prototype.visitLiteralPrimitive=function(t){return new mi(t.span,t.value)},t.prototype.visitPropertyRead=function(t){return new ci(t.span,t.receiver.visit(this),t.name)},t.prototype.visitPropertyWrite=function(t){return new li(t.span,t.receiver.visit(this),t.name,t.value.visit(this))},t.prototype.visitSafePropertyRead=function(t){return new pi(t.span,t.receiver.visit(this),t.name)},t.prototype.visitMethodCall=function(t){return new wi(t.span,t.receiver.visit(this),t.name,this.visitAll(t.args))},t.prototype.visitSafeMethodCall=function(t){return new Ci(t.span,t.receiver.visit(this),t.name,this.visitAll(t.args))},t.prototype.visitFunctionCall=function(t){return new Ei(t.span,t.target.visit(this),this.visitAll(t.args))},t.prototype.visitLiteralArray=function(t){return new yi(t.span,this.visitAll(t.expressions))},t.prototype.visitLiteralMap=function(t){return new vi(t.span,t.keys,this.visitAll(t.values))},t.prototype.visitBinary=function(t){return new _i(t.span,t.operation,t.left.visit(this),t.right.visit(this))},t.prototype.visitPrefixNot=function(t){return new bi(t.span,t.expression.visit(this))},t.prototype.visitConditional=function(t){return new ui(t.span,t.condition.visit(this),t.trueExp.visit(this),t.falseExp.visit(this))},t.prototype.visitPipe=function(t){return new di(t.span,t.exp.visit(this),t.name,this.visitAll(t.args))},t.prototype.visitKeyedRead=function(t){return new hi(t.span,t.obj.visit(this),t.key.visit(this))},t.prototype.visitKeyedWrite=function(t){return new fi(t.span,t.obj.visit(this),t.key.visit(this),t.value.visit(this))},t.prototype.visitAll=function(t){for(var e=new Array(t.length),r=0;r<t.length;++r)e[r]=t[r].visit(this);return e},t.prototype.visitChain=function(t){return new ai(t.span,this.visitAll(t.expressions))},t.prototype.visitQuote=function(t){return new oi(t.span,t.prefix,t.uninterpretedExpression,t.location)},t}(),Ai=0,Oi=9,Mi=10,Ri=11,ki=12,Ii=13,Ni=32,Di=33,ji=34,Li=35,Vi=36,Fi=37,Ui=38,Bi=39,Hi=40,qi=41,zi=42,Gi=43,Wi=44,$i=45,Ki=46,Qi=47,Xi=58,Zi=59,Yi=60,Ji=61,ts=62,es=63,rs=48,ns=57,os=65,is=69,ss=70,as=88,us=90,cs=91,ls=92,ps=93,hs=94,fs=95,ds=97,ms=101,ys=102,vs=110,gs=114,_s=116,bs=117,ws=118,Cs=120,Es=122,Ss=123,xs=124,Ts=125,Ps=160,As=96,Os=[/^\s*$/,/[<>]/,/^[{}]$/,/&(#|[a-z])/i,/^\/\//],Ms=function(){function t(t,e){this.start=t,this.end=e}return t.fromArray=function(e){return e?(W("interpolation",e),new t(e[0],e[1])):Rs},t}(),Rs=new Ms("{{","}}"),ks={};ks.Character=0,ks.Identifier=1,ks.Keyword=2,ks.String=3,ks.Operator=4,ks.Number=5,ks.Error=6,ks[ks.Character]="Character",ks[ks.Identifier]="Identifier",ks[ks.Keyword]="Keyword",ks[ks.String]="String",ks[ks.Operator]="Operator",ks[ks.Number]="Number",ks[ks.Error]="Error";var Is=["var","let","as","null","undefined","true","false","if","else","this"],Ns=function(){function t(){}return t.prototype.tokenize=function(t){for(var e=new Ls(t),r=[],n=e.scanToken();null!=n;)r.push(n),n=e.scanToken();return r},t}();Ns.decorators=[{type:z}],Ns.ctorParameters=function(){return[]};var Ds=function(){function t(t,e,r,n){this.index=t,this.type=e,this.numValue=r,this.strValue=n}return t.prototype.isCharacter=function(t){return this.type==ks.Character&&this.numValue==t},t.prototype.isNumber=function(){return this.type==ks.Number},t.prototype.isString=function(){return this.type==ks.String},t.prototype.isOperator=function(t){return this.type==ks.Operator&&this.strValue==t},t.prototype.isIdentifier=function(){return this.type==ks.Identifier},t.prototype.isKeyword=function(){return this.type==ks.Keyword},t.prototype.isKeywordLet=function(){return this.type==ks.Keyword&&"let"==this.strValue},t.prototype.isKeywordAs=function(){return this.type==ks.Keyword&&"as"==this.strValue},t.prototype.isKeywordNull=function(){return this.type==ks.Keyword&&"null"==this.strValue},t.prototype.isKeywordUndefined=function(){return this.type==ks.Keyword&&"undefined"==this.strValue},t.prototype.isKeywordTrue=function(){return this.type==ks.Keyword&&"true"==this.strValue},t.prototype.isKeywordFalse=function(){return this.type==ks.Keyword&&"false"==this.strValue},t.prototype.isKeywordThis=function(){return this.type==ks.Keyword&&"this"==this.strValue},t.prototype.isError=function(){return this.type==ks.Error},t.prototype.toNumber=function(){return this.type==ks.Number?this.numValue:-1},t.prototype.toString=function(){switch(this.type){case ks.Character:case ks.Identifier:case ks.Keyword:case ks.Operator:case ks.String:case ks.Error:return this.strValue;case ks.Number:return this.numValue.toString();default:return null}},t}(),js=new Ds(-1,ks.Character,0,""),Ls=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?Ai:this.input.charCodeAt(this.index)},t.prototype.scanToken=function(){for(var t=this.input,e=this.length,r=this.peek,n=this.index;Ni>=r;){if(++n>=e){r=Ai;break}r=t.charCodeAt(n)}if(this.peek=r,this.index=n,n>=e)return null;if(tt(r))return this.scanIdentifier();if(B(r))return this.scanNumber(n);var o=n;switch(r){case Ki:return this.advance(),B(this.peek)?this.scanNumber(o):$(o,Ki);case Hi:case qi:case Ss:case Ts:case cs:case ps:case Wi:case Xi:case Zi:return this.scanCharacter(o,r);case Bi:case ji:return this.scanString();case Li:case Gi:case $i:case zi:case Qi:case Fi:case hs:return this.scanOperator(o,String.fromCharCode(r));case es:return this.scanComplexOperator(o,"?",Ki,".");case Yi:case ts:return this.scanComplexOperator(o,String.fromCharCode(r),Ji,"=");case Di:case Ji:return this.scanComplexOperator(o,String.fromCharCode(r),Ji,"=",Ji,"=");case Ui:return this.scanComplexOperator(o,"&",Ui,"&");case xs:return this.scanComplexOperator(o,"|",xs,"|");case Ps:for(;U(this.peek);)this.advance();return this.scanToken()}return this.advance(),this.error("Unexpected character ["+String.fromCharCode(r)+"]",0)},t.prototype.scanCharacter=function(t,e){return this.advance(),$(t,e)},t.prototype.scanOperator=function(t,e){return this.advance(),X(t,e)},t.prototype.scanComplexOperator=function(t,e,r,n,o,i){this.advance();var s=e;return this.peek==r&&(this.advance(),s+=n),null!=o&&this.peek==o&&(this.advance(),s+=i),X(t,s)},t.prototype.scanIdentifier=function(){var t=this.index;for(this.advance();rt(this.peek);)this.advance();var e=this.input.substring(t,this.index);return Is.indexOf(e)>-1?Q(t,e):K(t,e)},t.prototype.scanNumber=function(t){var e=this.index===t;for(this.advance();;){if(B(this.peek));else if(this.peek==Ki)e=!1;else{if(!nt(this.peek))break;if(this.advance(),ot(this.peek)&&this.advance(),!B(this.peek))return this.error("Invalid exponent",-1);e=!1}this.advance()}var r=this.input.substring(t,this.index),n=e?at(r):parseFloat(r);return Y(t,n)},t.prototype.scanString=function(){var t=this.index,e=this.peek;this.advance();for(var r="",n=this.index,o=this.input;this.peek!=e;)if(this.peek==ls){r+=o.substring(n,this.index),this.advance();var i=void 0;if(this.peek=this.peek,this.peek==bs){var s=o.substring(this.index+1,this.index+5);if(!/^[0-9a-f]+$/i.test(s))return this.error("Invalid unicode escape [\\u"+s+"]",0);i=parseInt(s,16);for(var a=0;5>a;a++)this.advance()}else i=st(this.peek),this.advance();r+=String.fromCharCode(i),n=this.index}else{if(this.peek==Ai)return this.error("Unterminated quote",0);this.advance()}var u=o.substring(n,this.index);return this.advance(),Z(t,r+u)},t.prototype.error=function(t,e){var r=this.index+e;return J(r,"Lexer Error: "+t+" at column "+r+" in expression ["+this.input+"]")},t}(),Vs=function(){function t(t,e,r){this.strings=t,this.expressions=e,this.offsets=r}return t}(),Fs=function(){function t(t,e,r){this.templateBindings=t,this.warnings=e,this.errors=r}return t}(),Us=function(){function t(t){this._lexer=t,this.errors=[]}return t.prototype.parseAction=function(t,e,r){void 0===r&&(r=Rs),this._checkNoInterpolation(t,e,r);var n=this._stripComments(t),o=this._lexer.tokenize(this._stripComments(t)),i=new Bs(t,e,o,n.length,!0,this.errors,t.length-n.length).parseChain();return new Si(i,t,e,this.errors)},t.prototype.parseBinding=function(t,e,r){void 0===r&&(r=Rs);var n=this._parseBindingAst(t,e,r);return new Si(n,t,e,this.errors)},t.prototype.parseSimpleBinding=function(t,e,r){void 0===r&&(r=Rs);var n=this._parseBindingAst(t,e,r),o=Hs.check(n);return o.length>0&&this._reportError("Host binding expression cannot contain "+o.join(" "),t,e),new Si(n,t,e,this.errors)},t.prototype._reportError=function(t,e,r,n){this.errors.push(new ei(t,e,r,n))},t.prototype._parseBindingAst=function(t,e,r){var n=this._parseQuote(t,e);if(null!=n)return n;this._checkNoInterpolation(t,e,r);var o=this._stripComments(t),i=this._lexer.tokenize(o);return new Bs(t,e,i,o.length,!1,this.errors,t.length-o.length).parseChain()},t.prototype._parseQuote=function(t,e){if(null==t)return null;var r=t.indexOf(":");if(-1==r)return null;var n=t.substring(0,r).trim();if(!et(n))return null;var o=t.substring(r+1);return new oi(new ri(0,t.length),n,o,e)},t.prototype.parseTemplateBindings=function(t,e,r){var n=this._lexer.tokenize(e);if(t){var o=this._lexer.tokenize(t).map(function(t){return t.index=0,t});n.unshift.apply(n,o)}return new Bs(e,r,n,e.length,!1,this.errors,0).parseTemplateBindings()},t.prototype.parseInterpolation=function(t,e,r){void 0===r&&(r=Rs);var n=this.splitInterpolation(t,e,r);if(null==n)return null;for(var o=[],i=0;i<n.expressions.length;++i){var s=n.expressions[i],a=this._stripComments(s),u=this._lexer.tokenize(this._stripComments(n.expressions[i])),c=new Bs(t,e,u,a.length,!1,this.errors,n.offsets[i]+(s.length-a.length)).parseChain();o.push(c)}return new Si(new gi(new ri(0,null==t?0:t.length),n.strings,o),t,e,this.errors)},t.prototype.splitInterpolation=function(t,e,r){void 0===r&&(r=Rs);var n=ut(r),o=t.split(n);if(o.length<=1)return null;for(var i=[],s=[],a=[],u=0,c=0;c<o.length;c++){var l=o[c];c%2===0?(i.push(l),u+=l.length):l.trim().length>0?(u+=r.start.length,s.push(l),a.push(u),u+=l.length+r.end.length):(this._reportError("Blank expressions are not allowed in interpolated strings",t,"at column "+this._findInterpolationErrorColumn(o,c,r)+" in",e),s.push("$implict"),a.push(u))}return new Vs(i,s,a)},t.prototype.wrapLiteralPrimitive=function(t,e){return new Si(new mi(new ri(0,null==t?0:t.length),t),t,e,this.errors)},t.prototype._stripComments=function(t){var e=this._commentStart(t);return null!=e?t.substring(0,e).trim():t},t.prototype._commentStart=function(t){for(var e=null,r=0;r<t.length-1;r++){var n=t.charCodeAt(r),o=t.charCodeAt(r+1);if(n===Qi&&o==Qi&&null==e)return r;e===n?e=null:null==e&&it(n)&&(e=n)}return null},t.prototype._checkNoInterpolation=function(t,e,r){var n=ut(r),o=t.split(n);o.length>1&&this._reportError("Got interpolation ("+r.start+r.end+") where expression was expected",t,"at column "+this._findInterpolationErrorColumn(o,1,r)+" in",e)},t.prototype._findInterpolationErrorColumn=function(t,e,r){for(var n="",o=0;e>o;o++)n+=o%2===0?t[o]:""+r.start+t[o]+r.end;return n.length},t}();Us.decorators=[{type:z}],Us.ctorParameters=function(){return[{type:Ns}]};var Bs=function(){function t(t,e,r,n,o,i,s){this.input=t,this.location=e,this.tokens=r,this.inputLength=n,this.parseAction=o,this.errors=i,this.offset=s,this.rparensExpected=0,this.rbracketsExpected=0,this.rbracesExpected=0,this.index=0}return t.prototype.peek=function(t){var e=this.index+t;return e<this.tokens.length?this.tokens[e]:js},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 ri(t,this.inputIndex)},t.prototype.advance=function(){this.index++},t.prototype.optionalCharacter=function(t){return this.next.isCharacter(t)?(this.advance(),!0):!1},t.prototype.peekKeywordLet=function(){return this.next.isKeywordLet()},t.prototype.peekKeywordAs=function(){return this.next.isKeywordAs()},t.prototype.expectCharacter=function(t){this.optionalCharacter(t)||this.error("Missing expected "+String.fromCharCode(t))},t.prototype.optionalOperator=function(t){return this.next.isOperator(t)?(this.advance(),!0):!1},t.prototype.expectOperator=function(t){this.optionalOperator(t)||this.error("Missing expected operator "+t)},t.prototype.expectIdentifierOrKeyword=function(){var t=this.next;return t.isIdentifier()||t.isKeyword()?(this.advance(),t.toString()):(this.error("Unexpected token "+t+", expected identifier or keyword"),"")},t.prototype.expectIdentifierOrKeywordOrString=function(){var t=this.next;return t.isIdentifier()||t.isKeyword()||t.isString()?(this.advance(),t.toString()):(this.error("Unexpected token "+t+", expected identifier, keyword, or string"),"")},t.prototype.parseChain=function(){for(var t=[],e=this.inputIndex;this.index<this.tokens.length;){var r=this.parsePipe();if(t.push(r),this.optionalCharacter(Zi))for(this.parseAction||this.error("Binding expression cannot contain chained expression");this.optionalCharacter(Zi););else this.index<this.tokens.length&&this.error("Unexpected token '"+this.next+"'")}return 0==t.length?new ii(this.span(e)):1==t.length?t[0]:new ai(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(),r=[];this.optionalCharacter(Xi);)r.push(this.parseExpression());t=new di(this.span(t.span.start),t,e,r)}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 r=this.parsePipe(),n=void 0;if(this.optionalCharacter(Xi))n=this.parsePipe();else{var o=this.inputIndex,i=this.input.substring(t,o);this.error("Conditional expression "+i+" requires all 3 expressions"),n=new ii(this.span(t))}return new ui(this.span(t),e,r,n)}return e},t.prototype.parseLogicalOr=function(){for(var t=this.parseLogicalAnd();this.optionalOperator("||");){var e=this.parseLogicalAnd();t=new _i(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 _i(this.span(t.span.start),"&&",t,e)}return t},t.prototype.parseEquality=function(){for(var t=this.parseRelational();this.next.type==ks.Operator;){var e=this.next.strValue;switch(e){case"==":case"===":case"!=":case"!==":this.advance();var r=this.parseRelational();t=new _i(this.span(t.span.start),e,t,r);continue}break}return t},t.prototype.parseRelational=function(){for(var t=this.parseAdditive();this.next.type==ks.Operator;){var e=this.next.strValue;switch(e){case"<":case">":case"<=":case">=":this.advance();var r=this.parseAdditive();t=new _i(this.span(t.span.start),e,t,r);continue}break}return t},t.prototype.parseAdditive=function(){for(var t=this.parseMultiplicative();this.next.type==ks.Operator;){var e=this.next.strValue;switch(e){case"+":case"-":this.advance();var r=this.parseMultiplicative();t=new _i(this.span(t.span.start),e,t,r);continue}break}return t},t.prototype.parseMultiplicative=function(){for(var t=this.parsePrefix();this.next.type==ks.Operator;){var e=this.next.strValue;switch(e){case"*":case"%":case"/":this.advance();var r=this.parsePrefix();t=new _i(this.span(t.span.start),e,t,r);continue}break}return t},t.prototype.parsePrefix=function(){if(this.next.type==ks.Operator){var t=this.inputIndex,e=this.next.strValue,r=void 0;switch(e){case"+":return this.advance(),this.parsePrefix();case"-":return this.advance(),r=this.parsePrefix(),new _i(this.span(t),e,new mi(new ri(t,t),0),r);case"!":return this.advance(),r=this.parsePrefix(),new bi(this.span(t),r)}}return this.parseCallChain()},t.prototype.parseCallChain=function(){for(var t=this.parsePrimary();;)if(this.optionalCharacter(Ki))t=this.parseAccessMemberOrMethodCall(t,!1);else if(this.optionalOperator("?."))t=this.parseAccessMemberOrMethodCall(t,!0);else if(this.optionalCharacter(cs)){this.rbracketsExpected++;var e=this.parsePipe();if(this.rbracketsExpected--,this.expectCharacter(ps),this.optionalOperator("=")){var r=this.parseConditional();t=new fi(this.span(t.span.start),t,e,r)}else t=new hi(this.span(t.span.start),t,e)}else{if(!this.optionalCharacter(Hi))return t;this.rparensExpected++;var n=this.parseCallArguments();this.rparensExpected--,this.expectCharacter(qi),t=new Ei(this.span(t.span.start),t,n)}},t.prototype.parsePrimary=function(){var t=this.inputIndex;if(this.optionalCharacter(Hi)){this.rparensExpected++;var e=this.parsePipe();return this.rparensExpected--,this.expectCharacter(qi),e}if(this.next.isKeywordNull())return this.advance(),new mi(this.span(t),null);if(this.next.isKeywordUndefined())return this.advance(),new mi(this.span(t),void 0);if(this.next.isKeywordTrue())return this.advance(),new mi(this.span(t),!0);if(this.next.isKeywordFalse())return this.advance(),new mi(this.span(t),!1);if(this.next.isKeywordThis())return this.advance(),new si(this.span(t));if(this.optionalCharacter(cs)){this.rbracketsExpected++;var r=this.parseExpressionList(ps);return this.rbracketsExpected--,this.expectCharacter(ps),new yi(this.span(t),r)}if(this.next.isCharacter(Ss))return this.parseLiteralMap();if(this.next.isIdentifier())return this.parseAccessMemberOrMethodCall(new si(this.span(t)),!1);if(this.next.isNumber()){var n=this.next.toNumber();return this.advance(),new mi(this.span(t),n)}if(this.next.isString()){var o=this.next.toString();return this.advance(),new mi(this.span(t),o)}return this.index>=this.tokens.length?(this.error("Unexpected end of expression: "+this.input),new ii(this.span(t))):(this.error("Unexpected token "+this.next),new ii(this.span(t)))},t.prototype.parseExpressionList=function(t){var e=[];if(!this.next.isCharacter(t))do e.push(this.parsePipe());while(this.optionalCharacter(Wi));return e},t.prototype.parseLiteralMap=function(){var t=[],e=[],r=this.inputIndex;if(this.expectCharacter(Ss),!this.optionalCharacter(Ts)){this.rbracesExpected++;do{var n=this.expectIdentifierOrKeywordOrString();t.push(n),this.expectCharacter(Xi),e.push(this.parsePipe())}while(this.optionalCharacter(Wi));this.rbracesExpected--,this.expectCharacter(Ts)}return new vi(this.span(r),t,e)},t.prototype.parseAccessMemberOrMethodCall=function(t,e){void 0===e&&(e=!1);var r=t.span.start,n=this.expectIdentifierOrKeyword();if(this.optionalCharacter(Hi)){this.rparensExpected++;var o=this.parseCallArguments();this.expectCharacter(qi),this.rparensExpected--;var i=this.span(r);return e?new Ci(i,t,n,o):new wi(i,t,n,o)}if(e)return this.optionalOperator("=")?(this.error("The '?.' operator cannot be used in the assignment"),new ii(this.span(r))):new pi(this.span(r),t,n);if(this.optionalOperator("=")){if(!this.parseAction)return this.error("Bindings cannot contain assignments"),new ii(this.span(r));var s=this.parseConditional();return new li(this.span(r),t,n,s)}return new ci(this.span(r),t,n)},t.prototype.parseCallArguments=function(){if(this.next.isCharacter(qi))return[];var t=[];do t.push(this.parsePipe());while(this.optionalCharacter(Wi));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,r=[];this.index<this.tokens.length;){var n=this.inputIndex,o=this.peekKeywordLet();o&&this.advance();var i=this.expectTemplateBindingKey(),s=i;o||(null==e?e=s:s=e+s[0].toUpperCase()+s.substring(1)),this.optionalCharacter(Xi);var a=null,u=null;if(o)a=this.optionalOperator("=")?this.expectTemplateBindingKey():"$implicit";else if(this.peekKeywordAs()){var c=this.inputIndex;this.advance(),a=i,s=this.expectTemplateBindingKey(),o=!0}else if(this.next!==js&&!this.peekKeywordLet()){var l=this.inputIndex,p=this.parsePipe(),h=this.input.substring(l-this.offset,this.inputIndex-this.offset);u=new Si(p,h,this.location,this.errors)}if(t.push(new xi(this.span(n),s,o,a,u)),this.peekKeywordAs()&&!o){var c=this.inputIndex;this.advance();var f=this.expectTemplateBindingKey();t.push(new xi(this.span(c),f,!0,s,null))}this.optionalCharacter(Zi)||this.optionalCharacter(Wi)}return new Fs(t,r,this.errors)},t.prototype.error=function(t,e){void 0===e&&(e=null),this.errors.push(new ei(t,this.input,this.locationText(e),this.location)),this.skip()},t.prototype.locationText=function(t){return void 0===t&&(t=null),null==t&&(t=this.index),t<this.tokens.length?"at column "+(this.tokens[t].index+1)+" in":"at the end of the expression"},t.prototype.skip=function(){for(var t=this.next;this.index<this.tokens.length&&!t.isCharacter(Zi)&&(this.rparensExpected<=0||!t.isCharacter(qi))&&(this.rbracesExpected<=0||!t.isCharacter(Ts))&&(this.rbracketsExpected<=0||!t.isCharacter(ps));)this.next.isError()&&this.errors.push(new ei(this.next.toString(),this.input,this.locationText(),this.location)),this.advance(),t=this.next},t}(),Hs=function(){function t(){this.errors=[]}return t.check=function(e){var r=new t;return e.visit(r),r.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}(),qs=function(){function t(t,e,r,n){this.file=t,this.offset=e,this.line=r,this.col=n}return t.prototype.toString=function(){return null!=this.offset?this.file.url+"@"+this.line+":"+this.col:this.file.url},t.prototype.moveBy=function(e){for(var r=this.file.content,n=r.length,o=this.offset,i=this.line,s=this.col;o>0&&0>e;){o--,e++;var a=r.charCodeAt(o);if(a==Mi){i--;var u=r.substr(0,o-1).lastIndexOf(String.fromCharCode(Mi));s=u>0?o-u:o}else s--}for(;n>o&&e>0;){var a=r.charCodeAt(o);o++,e--,a==Mi?(i++,s=0):s++}return new t(this.file,o,i,s)},t.prototype.getContext=function(t,e){var r=this.file.content,n=this.offset;if(null!=n){n>r.length-1&&(n=r.length-1);for(var o=n,i=0,s=0;t>i&&n>0&&(n--,i++,"\n"!=r[n]||++s!=e););for(i=0,s=0;t>i&&o<r.length-1&&(o++,i++,"\n"!=r[o]||++s!=e););return{before:r.substring(n,this.offset),after:r.substring(this.offset,o+1)}}return null},t}(),zs=function(){function t(t,e){this.content=t,this.url=e}return t}(),Gs=function(){function t(t,e,r){void 0===r&&(r=null),this.start=t,this.end=e,this.details=r}return t.prototype.toString=function(){return this.start.file.content.substring(this.start.offset,this.end.offset)},t}(),Ws={};Ws.WARNING=0,Ws.ERROR=1,Ws[Ws.WARNING]="WARNING",Ws[Ws.ERROR]="ERROR";var $s=function(){function t(t,e,r){void 0===r&&(r=Ws.ERROR),this.span=t,this.msg=e,this.level=r}return t.prototype.toString=function(){var t=this.span.start.getContext(100,3),e=t?' ("'+t.before+"["+Ws[this.level]+" ->]"+t.after+'")':"",r=this.span.details?", "+this.span.details:"";return""+this.msg+e+": "+this.span.start+r},t}(),Ks=function(){function t(t,e){this.value=t,this.sourceSpan=e}return t.prototype.visit=function(t,e){return t.visitText(this,e)},t}(),Qs=function(){function t(t,e,r,n,o){this.switchValue=t,this.type=e,this.cases=r,this.sourceSpan=n,this.switchValueSourceSpan=o}return t.prototype.visit=function(t,e){return t.visitExpansion(this,e)},t}(),Xs=function(){function t(t,e,r,n,o){this.value=t,this.expression=e,this.sourceSpan=r,this.valueSourceSpan=n,this.expSourceSpan=o}return t.prototype.visit=function(t,e){return t.visitExpansionCase(this,e)},t}(),Zs=function(){function t(t,e,r,n){this.name=t,this.value=e,this.sourceSpan=r,this.valueSpan=n}return t.prototype.visit=function(t,e){return t.visitAttribute(this,e)},t}(),Ys=function(){function t(t,e,r,n,o,i){void 0===o&&(o=null),void 0===i&&(i=null),this.name=t,this.attrs=e,this.children=r,this.sourceSpan=n,this.startSourceSpan=o,this.endSourceSpan=i}return t.prototype.visit=function(t,e){return t.visitElement(this,e)},t}(),Js=function(){function t(t,e){this.value=t,this.sourceSpan=e}return t.prototype.visit=function(t,e){return t.visitComment(this,e)},t}(),ta={};ta.TAG_OPEN_START=0,ta.TAG_OPEN_END=1,ta.TAG_OPEN_END_VOID=2,ta.TAG_CLOSE=3,ta.TEXT=4,ta.ESCAPABLE_RAW_TEXT=5,ta.RAW_TEXT=6,ta.COMMENT_START=7,ta.COMMENT_END=8,ta.CDATA_START=9,ta.CDATA_END=10,ta.ATTR_NAME=11,ta.ATTR_VALUE=12,ta.DOC_TYPE=13,ta.EXPANSION_FORM_START=14,ta.EXPANSION_CASE_VALUE=15,ta.EXPANSION_CASE_EXP_START=16,ta.EXPANSION_CASE_EXP_END=17,ta.EXPANSION_FORM_END=18,ta.EOF=19,ta[ta.TAG_OPEN_START]="TAG_OPEN_START",ta[ta.TAG_OPEN_END]="TAG_OPEN_END",ta[ta.TAG_OPEN_END_VOID]="TAG_OPEN_END_VOID",ta[ta.TAG_CLOSE]="TAG_CLOSE",ta[ta.TEXT]="TEXT",ta[ta.ESCAPABLE_RAW_TEXT]="ESCAPABLE_RAW_TEXT",ta[ta.RAW_TEXT]="RAW_TEXT",ta[ta.COMMENT_START]="COMMENT_START",ta[ta.COMMENT_END]="COMMENT_END",ta[ta.CDATA_START]="CDATA_START",ta[ta.CDATA_END]="CDATA_END",ta[ta.ATTR_NAME]="ATTR_NAME",ta[ta.ATTR_VALUE]="ATTR_VALUE",ta[ta.DOC_TYPE]="DOC_TYPE",ta[ta.EXPANSION_FORM_START]="EXPANSION_FORM_START",ta[ta.EXPANSION_CASE_VALUE]="EXPANSION_CASE_VALUE",ta[ta.EXPANSION_CASE_EXP_START]="EXPANSION_CASE_EXP_START",ta[ta.EXPANSION_CASE_EXP_END]="EXPANSION_CASE_EXP_END",ta[ta.EXPANSION_FORM_END]="EXPANSION_FORM_END",ta[ta.EOF]="EOF";var ea=function(){function t(t,e,r){this.type=t,this.parts=e,this.sourceSpan=r}return t}(),ra=function(t){function e(e,r,n){var o=t.call(this,n,e)||this;return o.tokenType=r,o}return Zn(e,t),e}($s),na=function(){function t(t,e){this.tokens=t,this.errors=e}return t}(),oa=/\r\n?/g,ia=function(){function t(t){this.error=t}return t}(),sa=function(){function t(t,e,r,n){void 0===n&&(n=Rs),this._file=t,this._getTagDefinition=e,this._tokenizeIcu=r,this._interpolationConfig=n,this._peek=-1,this._nextPeek=-1,this._index=-1,this._line=0,this._column=-1,this._expansionCaseStack=[],this._inInterpolation=!1,this.tokens=[],this.errors=[],this._input=t.content,this._length=t.content.length,this._advance()}return t.prototype._processCarriageReturns=function(t){return t.replace(oa,"\n")},t.prototype.tokenize=function(){for(;this._peek!==Ai;){var t=this._getLocation();try{this._attemptCharCode(Yi)?this._attemptCharCode(Di)?this._attemptCharCode(cs)?this._consumeCdata(t):this._attemptCharCode($i)?this._consumeComment(t):this._consumeDocType(t):this._attemptCharCode(Qi)?this._consumeTagClose(t):this._consumeTagOpen(t):this._tokenizeIcu&&this._tokenizeExpansionForm()||this._consumeText()}catch(e){if(!(e instanceof ia))throw e;this.errors.push(e.error)}}return this._beginToken(ta.EOF),this._endToken([]),new na(Et(this.tokens),this.errors)},t.prototype._tokenizeExpansionForm=function(){if(_t(this._input,this._index,this._interpolationConfig))return this._consumeExpansionFormStart(),!0;if(bt(this._peek)&&this._isInExpansionForm())return this._consumeExpansionCaseStart(),!0;if(this._peek===Ts){if(this._isInExpansionCase())return this._consumeExpansionCaseEnd(),!0;if(this._isInExpansionForm())return this._consumeExpansionFormEnd(),!0}return!1},t.prototype._getLocation=function(){return new qs(this._file,this._index,this._line,this._column)},t.prototype._getSpan=function(t,e){return void 0===t&&(t=this._getLocation()),void 0===e&&(e=this._getLocation()),new Gs(t,e)},t.prototype._beginToken=function(t,e){void 0===e&&(e=this._getLocation()),this._currentTokenStart=e,this._currentTokenType=t},t.prototype._endToken=function(t,e){void 0===e&&(e=this._getLocation());var r=new ea(this._currentTokenType,t,new Gs(this._currentTokenStart,e)); -case"mk":return 0===i&&o%10===1||s%10===1?H.One:H.Other;case"mt":return 1===r?H.One:0===r||r%100===Math.floor(r%100)&&r%100>=2&&10>=r%100?H.Few:r%100===Math.floor(r%100)&&r%100>=11&&19>=r%100?H.Many:H.Other;case"pl":return 1===o&&0===i?H.One:0===i&&o%10===Math.floor(o%10)&&o%10>=2&&4>=o%10&&!(o%100>=12&&14>=o%100)?H.Few:0===i&&1!==o&&o%10===Math.floor(o%10)&&o%10>=0&&1>=o%10||0===i&&o%10===Math.floor(o%10)&&o%10>=5&&9>=o%10||0===i&&o%100===Math.floor(o%100)&&o%100>=12&&14>=o%100?H.Many:H.Other;case"pt":return r===Math.floor(r)&&r>=0&&2>=r&&2!==r?H.One:H.Other;case"ro":return 1===o&&0===i?H.One:0!==i||0===r||1!==r&&r%100===Math.floor(r%100)&&r%100>=1&&19>=r%100?H.Few:H.Other;case"ru":case"uk":return 0===i&&o%10===1&&o%100!==11?H.One:0===i&&o%10===Math.floor(o%10)&&o%10>=2&&4>=o%10&&!(o%100>=12&&14>=o%100)?H.Few:0===i&&o%10===0||0===i&&o%10===Math.floor(o%10)&&o%10>=5&&9>=o%10||0===i&&o%100===Math.floor(o%100)&&o%100>=11&&14>=o%100?H.Many:H.Other;case"shi":return 0===o||1===r?H.One:r===Math.floor(r)&&r>=2&&10>=r?H.Few:H.Other;case"si":return 0===r||1===r||0===o&&1===s?H.One:H.Other;case"sl":return 0===i&&o%100===1?H.One:0===i&&o%100===2?H.Two:0===i&&o%100===Math.floor(o%100)&&o%100>=3&&4>=o%100||0!==i?H.Few:H.Other;case"tzm":return r===Math.floor(r)&&r>=0&&1>=r||r===Math.floor(r)&&r>=11&&99>=r?H.One:H.Other;default:return H.Other}}function s(t){return t.name||typeof t}function a(t,r){return Error("InvalidPipeArgument: '"+r+"' for pipe '"+e.ɵstringify(t)+"'")}function u(t){return t?t[0].toUpperCase()+t.substr(1).toLowerCase():t}function c(t){return function(e,r){var n=t(e,r);return 1==n.length?"0"+n:n}}function l(t){return function(e,r){return t(e,r).split(" ")[1]}}function p(t){return function(e,r){return t(e,r).split(" ")[0]}}function h(t,e,r){return new Intl.DateTimeFormat(e,r).format(t).replace(/[\u200e\u200f]/g,"")}function f(t){var e={hour:"2-digit",hour12:!1,timeZoneName:t};return function(t,r){var n=h(t,r,e);return n?n.substring(3):""}}function d(t,e){return t.hour12=e,t}function m(t,e){var r={};return r[t]=2===e?"2-digit":"numeric",r}function y(t,e){var r={};return r[t]=4>e?e>1?"short":"narrow":"long",r}function v(t){return Object.assign.apply(Object,[{}].concat(t))}function g(t){return function(e,r){return h(e,r,t)}}function _(t,e,r){var n=vt[t];if(n)return n(e,r);var o=t,i=_t.get(o);if(!i){i=[];var s=void 0;yt.exec(t);for(var a=t;a;)s=yt.exec(a),s?(i=i.concat(s.slice(1)),a=i.pop()):(i.push(a),a=null);_t.set(o,i)}return i.reduce(function(t,n){var o=gt[n];return t+(o?o(e,r):b(n))},"")}function b(t){return"''"===t?"'":t.replace(/(^'|'$)/g,"").replace(/''/g,"'")}function w(t,e,r,n,o,i,s){if(void 0===i&&(i=null),void 0===s&&(s=!1),null==r)return null;if(r="string"==typeof r&&E(r)?+r:r,"number"!=typeof r)throw a(t,r);var u=void 0,c=void 0,l=void 0;if(n!==dt.Currency&&(u=1,c=0,l=3),o){var p=o.match(wt);if(null===p)throw new Error(o+" is not a valid digit info for number pipes");null!=p[1]&&(u=C(p[1])),null!=p[3]&&(c=C(p[3])),null!=p[5]&&(l=C(p[5]))}return mt.format(r,e,n,{minimumIntegerDigits:u,minimumFractionDigits:c,maximumFractionDigits:l,currency:i,currencyAsSymbol:s})}function C(t){var e=parseInt(t);if(isNaN(e))throw new Error("Invalid integer literal when parsing "+t);return e}function E(t){return!isNaN(t-parseFloat(t))}function S(t){return null==t||""===t}function x(t){return t instanceof Date&&!isNaN(t.valueOf())}function T(t){var e=new Date(0),r=0,n=0,o=t[8]?e.setUTCFullYear:e.setFullYear,i=t[8]?e.setUTCHours:e.setHours;t[9]&&(r=P(t[9]+t[10]),n=P(t[9]+t[11])),o.call(e,P(t[1]),P(t[2])-1,P(t[3]));var s=P(t[4]||"0")-r,a=P(t[5]||"0")-n,u=P(t[6]||"0"),c=Math.round(1e3*parseFloat("0."+(t[7]||0)));return i.call(e,s,a,u,c),e}function P(t){return parseInt(t,10)}function A(t){return t===Nt}function O(t){return t===Dt}function M(t){return t===jt}function R(t){return t===Lt}var k=void 0||function(t,e){function r(){this.constructor=t}for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)},I=function(){function t(){}return t.prototype.getBaseHrefFromDOM=function(){},t.prototype.onPopState=function(){},t.prototype.onHashChange=function(){},t.prototype.pathname=function(){},t.prototype.search=function(){},t.prototype.hash=function(){},t.prototype.replaceState=function(){},t.prototype.pushState=function(){},t.prototype.forward=function(){},t.prototype.back=function(){},t}(),N=new e.InjectionToken("Location Initialized"),D=function(){function t(){}return t.prototype.path=function(){},t.prototype.prepareExternalUrl=function(){},t.prototype.pushState=function(){},t.prototype.replaceState=function(){},t.prototype.forward=function(){},t.prototype.back=function(){},t.prototype.onPopState=function(){},t.prototype.getBaseHref=function(){},t}(),j=new e.InjectionToken("appBaseHref"),L=function(){function t(r){var o=this;this._subject=new e.EventEmitter,this._platformStrategy=r;var i=this._platformStrategy.getBaseHref();this._baseHref=t.stripTrailingSlash(n(i)),this._platformStrategy.onPopState(function(t){o._subject.emit({url:o.path(!0),pop:!0,type:t.type})})}return t.prototype.path=function(t){return void 0===t&&(t=!1),this.normalize(this._platformStrategy.path(t))},t.prototype.isCurrentPathEqualTo=function(e,r){return void 0===r&&(r=""),this.path()==this.normalize(e+t.normalizeQueryParams(r))},t.prototype.normalize=function(e){return t.stripTrailingSlash(r(this._baseHref,n(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,r){return this._subject.subscribe({next:t,error:e,complete:r})},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 r=0;return t.endsWith("/")&&r++,e.startsWith("/")&&r++,2==r?t+e.substring(1):1==r?t+e:t+"/"+e},t.stripTrailingSlash=function(t){return t.replace(/\/$/,"")},t}();L.decorators=[{type:e.Injectable}],L.ctorParameters=function(){return[{type:D}]};var V=function(t){function e(e,r){var n=t.call(this)||this;return n._platformLocation=e,n._baseHref="",null!=r&&(n._baseHref=r),n}return k(e,t),e.prototype.onPopState=function(t){this._platformLocation.onPopState(t),this._platformLocation.onHashChange(t)},e.prototype.getBaseHref=function(){return this._baseHref},e.prototype.path=function(t){void 0===t&&(t=!1);var e=this._platformLocation.hash;return null==e&&(e="#"),e.length>0?e.substring(1):e},e.prototype.prepareExternalUrl=function(t){var e=L.joinWithSlash(this._baseHref,t);return e.length>0?"#"+e:e},e.prototype.pushState=function(t,e,r,n){var o=this.prepareExternalUrl(r+L.normalizeQueryParams(n));0==o.length&&(o=this._platformLocation.pathname),this._platformLocation.pushState(t,e,o)},e.prototype.replaceState=function(t,e,r,n){var o=this.prepareExternalUrl(r+L.normalizeQueryParams(n));0==o.length&&(o=this._platformLocation.pathname),this._platformLocation.replaceState(t,e,o)},e.prototype.forward=function(){this._platformLocation.forward()},e.prototype.back=function(){this._platformLocation.back()},e}(D);V.decorators=[{type:e.Injectable}],V.ctorParameters=function(){return[{type:I},{type:void 0,decorators:[{type:e.Optional},{type:e.Inject,args:[j]}]}]};var F=function(t){function e(e,r){var n=t.call(this)||this;if(n._platformLocation=e,null==r&&(r=n._platformLocation.getBaseHrefFromDOM()),null==r)throw new Error("No base href set. Please provide a value for the APP_BASE_HREF token or add a base element to the document.");return n._baseHref=r,n}return k(e,t),e.prototype.onPopState=function(t){this._platformLocation.onPopState(t),this._platformLocation.onHashChange(t)},e.prototype.getBaseHref=function(){return this._baseHref},e.prototype.prepareExternalUrl=function(t){return L.joinWithSlash(this._baseHref,t)},e.prototype.path=function(t){void 0===t&&(t=!1);var e=this._platformLocation.pathname+L.normalizeQueryParams(this._platformLocation.search),r=this._platformLocation.hash;return r&&t?""+e+r:e},e.prototype.pushState=function(t,e,r,n){var o=this.prepareExternalUrl(r+L.normalizeQueryParams(n));this._platformLocation.pushState(t,e,o)},e.prototype.replaceState=function(t,e,r,n){var o=this.prepareExternalUrl(r+L.normalizeQueryParams(n));this._platformLocation.replaceState(t,e,o)},e.prototype.forward=function(){this._platformLocation.forward()},e.prototype.back=function(){this._platformLocation.back()},e}(D);F.decorators=[{type:e.Injectable}],F.ctorParameters=function(){return[{type:I},{type:void 0,decorators:[{type:e.Optional},{type:e.Inject,args:[j]}]}]};var U=function(){function t(){}return t.prototype.getPluralCategory=function(){},t}(),B=function(t){function e(e){var r=t.call(this)||this;return r.locale=e,r}return k(e,t),e.prototype.getPluralCategory=function(t){var e=i(this.locale,t);switch(e){case H.Zero:return"zero";case H.One:return"one";case H.Two:return"two";case H.Few:return"few";case H.Many:return"many";default:return"other"}},e}(U);B.decorators=[{type:e.Injectable}],B.ctorParameters=function(){return[{type:void 0,decorators:[{type:e.Inject,args:[e.LOCALE_ID]}]}]};var H={};H.Zero=0,H.One=1,H.Two=2,H.Few=3,H.Many=4,H.Other=5,H[H.Zero]="Zero",H[H.One]="One",H[H.Two]="Two",H[H.Few]="Few",H[H.Many]="Many",H[H.Other]="Other";var q=function(){function t(t,e,r,n){this._iterableDiffers=t,this._keyValueDiffers=e,this._ngEl=r,this._renderer=n,this._initialClasses=[]}return Object.defineProperty(t.prototype,"klass",{set:function(t){this._applyInitialClasses(!0),this._initialClasses="string"==typeof t?t.split(/\s+/):[],this._applyInitialClasses(!1),this._applyClasses(this._rawClass,!1)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"ngClass",{set:function(t){this._cleanupClasses(this._rawClass),this._iterableDiffer=null,this._keyValueDiffer=null,this._rawClass="string"==typeof t?t.split(/\s+/):t,this._rawClass&&(e.ɵisListLikeIterable(this._rawClass)?this._iterableDiffer=this._iterableDiffers.find(this._rawClass).create():this._keyValueDiffer=this._keyValueDiffers.find(this._rawClass).create())},enumerable:!0,configurable:!0}),t.prototype.ngDoCheck=function(){if(this._iterableDiffer){var t=this._iterableDiffer.diff(this._rawClass);t&&this._applyIterableChanges(t)}else if(this._keyValueDiffer){var e=this._keyValueDiffer.diff(this._rawClass);e&&this._applyKeyValueChanges(e)}},t.prototype._cleanupClasses=function(t){this._applyClasses(t,!0),this._applyInitialClasses(!1)},t.prototype._applyKeyValueChanges=function(t){var e=this;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 r=this;t.forEachAddedItem(function(t){if("string"!=typeof t.item)throw new Error("NgClass can only toggle CSS classes expressed as strings, got "+e.ɵstringify(t.item));r._toggleClass(t.item,!0)}),t.forEachRemovedItem(function(t){return r._toggleClass(t.item,!1)})},t.prototype._applyInitialClasses=function(t){var e=this;this._initialClasses.forEach(function(r){return e._toggleClass(r,!t)})},t.prototype._applyClasses=function(t,e){var r=this;t&&(Array.isArray(t)||t instanceof Set?t.forEach(function(t){return r._toggleClass(t,!e)}):Object.keys(t).forEach(function(n){null!=t[n]&&r._toggleClass(n,!e)}))},t.prototype._toggleClass=function(t,e){var r=this;t=t.trim(),t&&t.split(/\s+/g).forEach(function(t){r._renderer.setElementClass(r._ngEl.nativeElement,t,!!e)})},t}();q.decorators=[{type:e.Directive,args:[{selector:"[ngClass]"}]}],q.ctorParameters=function(){return[{type:e.IterableDiffers},{type:e.KeyValueDiffers},{type:e.ElementRef},{type:e.Renderer}]},q.propDecorators={klass:[{type:e.Input,args:["class"]}],ngClass:[{type:e.Input}]};var z=function(){function t(t){this._viewContainerRef=t,this._componentRef=null,this._moduleRef=null}return t.prototype.ngOnChanges=function(t){if(this._viewContainerRef.clear(),this._componentRef=null,this.ngComponentOutlet){var r=this.ngComponentOutletInjector||this._viewContainerRef.parentInjector;if(t.ngComponentOutletNgModuleFactory)if(this._moduleRef&&this._moduleRef.destroy(),this.ngComponentOutletNgModuleFactory){var n=r.get(e.NgModuleRef);this._moduleRef=this.ngComponentOutletNgModuleFactory.create(n.injector)}else this._moduleRef=null;var o=this._moduleRef?this._moduleRef.componentFactoryResolver:r.get(e.ComponentFactoryResolver),i=o.resolveComponentFactory(this.ngComponentOutlet);this._componentRef=this._viewContainerRef.createComponent(i,this._viewContainerRef.length,r,this.ngComponentOutletContent)}},t.prototype.ngOnDestroy=function(){this._moduleRef&&this._moduleRef.destroy()},t}();z.decorators=[{type:e.Directive,args:[{selector:"[ngComponentOutlet]"}]}],z.ctorParameters=function(){return[{type:e.ViewContainerRef}]},z.propDecorators={ngComponentOutlet:[{type:e.Input}],ngComponentOutletInjector:[{type:e.Input}],ngComponentOutletContent:[{type:e.Input}],ngComponentOutletNgModuleFactory:[{type:e.Input}]};var G=function(){function t(t,e,r,n){this.$implicit=t,this.ngForOf=e,this.index=r,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}(),W=function(){function t(t,e,r){this._viewContainer=t,this._template=e,this._differs=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.ngForTrackBy)}catch(r){throw new Error("Cannot find a differ supporting object '"+e+"' of type '"+s(e)+"'. NgFor only supports binding to Iterables such as Arrays.")}}},t.prototype.ngDoCheck=function(){if(this._differ){var t=this._differ.diff(this.ngForOf);t&&this._applyChanges(t)}},t.prototype._applyChanges=function(t){var e=this,r=[];t.forEachOperation(function(t,n,o){if(null==t.previousIndex){var i=e._viewContainer.createEmbeddedView(e._template,new G(null,e.ngForOf,-1,-1),o),s=new $(t,i);r.push(s)}else if(null==o)e._viewContainer.remove(n);else{var i=e._viewContainer.get(n);e._viewContainer.move(i,o);var s=new $(t,i);r.push(s)}});for(var n=0;n<r.length;n++)this._perViewChange(r[n].view,r[n].record);for(var n=0,o=this._viewContainer.length;o>n;n++){var i=this._viewContainer.get(n);i.context.index=n,i.context.count=o}t.forEachIdentityChange(function(t){var r=e._viewContainer.get(t.currentIndex);r.context.$implicit=t.item})},t.prototype._perViewChange=function(t,e){t.context.$implicit=e.item},t}();W.decorators=[{type:e.Directive,args:[{selector:"[ngFor][ngForOf]"}]}],W.ctorParameters=function(){return[{type:e.ViewContainerRef},{type:e.TemplateRef},{type:e.IterableDiffers}]},W.propDecorators={ngForOf:[{type:e.Input}],ngForTrackBy:[{type:e.Input}],ngForTemplate:[{type:e.Input}]};var $=function(){function t(t,e){this.record=t,this.view=e}return t}(),K=W,Q=function(){function t(t,e){this._viewContainer=t,this._context=new X,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=e}return Object.defineProperty(t.prototype,"ngIf",{set:function(t){this._context.$implicit=this._context.ngIf=t,this._updateView()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"ngIfThen",{set:function(t){this._thenTemplateRef=t,this._thenViewRef=null,this._updateView()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"ngIfElse",{set:function(t){this._elseTemplateRef=t,this._elseViewRef=null,this._updateView()},enumerable:!0,configurable:!0}),t.prototype._updateView=function(){this._context.$implicit?this._thenViewRef||(this._viewContainer.clear(),this._elseViewRef=null,this._thenTemplateRef&&(this._thenViewRef=this._viewContainer.createEmbeddedView(this._thenTemplateRef,this._context))):this._elseViewRef||(this._viewContainer.clear(),this._thenViewRef=null,this._elseTemplateRef&&(this._elseViewRef=this._viewContainer.createEmbeddedView(this._elseTemplateRef,this._context)))},t}();Q.decorators=[{type:e.Directive,args:[{selector:"[ngIf]"}]}],Q.ctorParameters=function(){return[{type:e.ViewContainerRef},{type:e.TemplateRef}]},Q.propDecorators={ngIf:[{type:e.Input}],ngIfThen:[{type:e.Input}],ngIfElse:[{type:e.Input}]};var X=function(){function t(){this.$implicit=null,this.ngIf=null}return t}(),Z=function(){function t(t,e){this._viewContainerRef=t,this._templateRef=e,this._created=!1}return t.prototype.create=function(){this._created=!0,this._viewContainerRef.createEmbeddedView(this._templateRef)},t.prototype.destroy=function(){this._created=!1,this._viewContainerRef.clear()},t.prototype.enforceState=function(t){t&&!this._created?this.create():!t&&this._created&&this.destroy()},t}(),Y=function(){function t(){this._defaultUsed=!1,this._caseCount=0,this._lastCaseCheckIndex=0,this._lastCasesMatched=!1}return Object.defineProperty(t.prototype,"ngSwitch",{set:function(t){this._ngSwitch=t,0===this._caseCount&&this._updateDefaultCases(!0)},enumerable:!0,configurable:!0}),t.prototype._addCase=function(){return this._caseCount++},t.prototype._addDefault=function(t){this._defaultViews||(this._defaultViews=[]),this._defaultViews.push(t)},t.prototype._matchCase=function(t){var e=t==this._ngSwitch;return this._lastCasesMatched=this._lastCasesMatched||e,this._lastCaseCheckIndex++,this._lastCaseCheckIndex===this._caseCount&&(this._updateDefaultCases(!this._lastCasesMatched),this._lastCaseCheckIndex=0,this._lastCasesMatched=!1),e},t.prototype._updateDefaultCases=function(t){if(this._defaultViews&&t!==this._defaultUsed){this._defaultUsed=t;for(var e=0;e<this._defaultViews.length;e++){var r=this._defaultViews[e];r.enforceState(t)}}},t}();Y.decorators=[{type:e.Directive,args:[{selector:"[ngSwitch]"}]}],Y.ctorParameters=function(){return[]},Y.propDecorators={ngSwitch:[{type:e.Input}]};var J=function(){function t(t,e,r){this.ngSwitch=r,r._addCase(),this._view=new Z(t,e)}return t.prototype.ngDoCheck=function(){this._view.enforceState(this.ngSwitch._matchCase(this.ngSwitchCase))},t}();J.decorators=[{type:e.Directive,args:[{selector:"[ngSwitchCase]"}]}],J.ctorParameters=function(){return[{type:e.ViewContainerRef},{type:e.TemplateRef},{type:Y,decorators:[{type:e.Host}]}]},J.propDecorators={ngSwitchCase:[{type:e.Input}]};var tt=function(){function t(t,e,r){r._addDefault(new Z(t,e))}return t}();tt.decorators=[{type:e.Directive,args:[{selector:"[ngSwitchDefault]"}]}],tt.ctorParameters=function(){return[{type:e.ViewContainerRef},{type:e.TemplateRef},{type:Y,decorators:[{type:e.Host}]}]};var et=function(){function t(t){this._localization=t,this._caseViews={}}return Object.defineProperty(t.prototype,"ngPlural",{set:function(t){this._switchValue=t,this._updateView()},enumerable:!0,configurable:!0}),t.prototype.addCase=function(t,e){this._caseViews[t]=e},t.prototype._updateView=function(){this._clearViews();var t=Object.keys(this._caseViews),e=o(this._switchValue,t,this._localization);this._activateView(this._caseViews[e])},t.prototype._clearViews=function(){this._activeView&&this._activeView.destroy()},t.prototype._activateView=function(t){t&&(this._activeView=t,this._activeView.create())},t}();et.decorators=[{type:e.Directive,args:[{selector:"[ngPlural]"}]}],et.ctorParameters=function(){return[{type:U}]},et.propDecorators={ngPlural:[{type:e.Input}]};var rt=function(){function t(t,e,r,n){this.value=t;var o=!isNaN(Number(t));n.addCase(o?"="+t:t,new Z(r,e))}return t}();rt.decorators=[{type:e.Directive,args:[{selector:"[ngPluralCase]"}]}],rt.ctorParameters=function(){return[{type:void 0,decorators:[{type:e.Attribute,args:["ngPluralCase"]}]},{type:e.TemplateRef},{type:e.ViewContainerRef},{type:et,decorators:[{type:e.Host}]}]};var nt=function(){function t(t,e,r){this._differs=t,this._ngEl=e,this._renderer=r}return Object.defineProperty(t.prototype,"ngStyle",{set:function(t){this._ngStyle=t,!this._differ&&t&&(this._differ=this._differs.find(t).create())},enumerable:!0,configurable:!0}),t.prototype.ngDoCheck=function(){if(this._differ){var t=this._differ.diff(this._ngStyle);t&&this._applyChanges(t)}},t.prototype._applyChanges=function(t){var e=this;t.forEachRemovedItem(function(t){return e._setStyle(t.key,null)}),t.forEachAddedItem(function(t){return e._setStyle(t.key,t.currentValue)}),t.forEachChangedItem(function(t){return e._setStyle(t.key,t.currentValue)})},t.prototype._setStyle=function(t,e){var r=t.split("."),n=r[0],o=r[1];e=null!=e&&o?""+e+o:e,this._renderer.setElementStyle(this._ngEl.nativeElement,n,e)},t}();nt.decorators=[{type:e.Directive,args:[{selector:"[ngStyle]"}]}],nt.ctorParameters=function(){return[{type:e.KeyValueDiffers},{type:e.ElementRef},{type:e.Renderer}]},nt.propDecorators={ngStyle:[{type:e.Input}]};var ot=function(){function t(t){this._viewContainerRef=t}return Object.defineProperty(t.prototype,"ngOutletContext",{set:function(t){this.ngTemplateOutletContext=t},enumerable:!0,configurable:!0}),t.prototype.ngOnChanges=function(){this._viewRef&&this._viewContainerRef.remove(this._viewContainerRef.indexOf(this._viewRef)),this.ngTemplateOutlet&&(this._viewRef=this._viewContainerRef.createEmbeddedView(this.ngTemplateOutlet,this.ngTemplateOutletContext))},t}();ot.decorators=[{type:e.Directive,args:[{selector:"[ngTemplateOutlet]"}]}],ot.ctorParameters=function(){return[{type:e.ViewContainerRef}]},ot.propDecorators={ngTemplateOutletContext:[{type:e.Input}],ngTemplateOutlet:[{type:e.Input}],ngOutletContext:[{type:e.Input}]};var it=[q,z,W,Q,ot,nt,Y,J,tt,et,rt],st=function(){function t(){}return t.prototype.createSubscription=function(t,e){return t.subscribe({next:e,error:function(t){throw t}})},t.prototype.dispose=function(t){t.unsubscribe()},t.prototype.onDestroy=function(t){t.unsubscribe()},t}(),at=function(){function t(){}return t.prototype.createSubscription=function(t,e){return t.then(e,function(t){throw t})},t.prototype.dispose=function(){},t.prototype.onDestroy=function(){},t}(),ut=new at,ct=new st,lt=function(){function t(t){this._ref=t,this._latestValue=null,this._latestReturnedValue=null,this._subscription=null,this._obj=null,this._strategy=null}return t.prototype.ngOnDestroy=function(){this._subscription&&this._dispose()},t.prototype.transform=function(t){return this._obj?t!==this._obj?(this._dispose(),this.transform(t)):this._latestValue===this._latestReturnedValue?this._latestReturnedValue:(this._latestReturnedValue=this._latestValue,e.WrappedValue.wrap(this._latestValue)):(t&&this._subscribe(t),this._latestReturnedValue=this._latestValue,this._latestValue)},t.prototype._subscribe=function(t){var e=this;this._obj=t,this._strategy=this._selectStrategy(t),this._subscription=this._strategy.createSubscription(t,function(r){return e._updateLatestValue(t,r)})},t.prototype._selectStrategy=function(r){if(e.ɵisPromise(r))return ut;if(e.ɵisObservable(r))return ct;throw a(t,r)},t.prototype._dispose=function(){this._strategy.dispose(this._subscription),this._latestValue=null,this._latestReturnedValue=null,this._subscription=null,this._obj=null},t.prototype._updateLatestValue=function(t,e){t===this._obj&&(this._latestValue=e,this._ref.markForCheck())},t}();lt.decorators=[{type:e.Pipe,args:[{name:"async",pure:!1}]}],lt.ctorParameters=function(){return[{type:e.ChangeDetectorRef}]};var pt=function(){function t(){}return t.prototype.transform=function(e){if(!e)return e;if("string"!=typeof e)throw a(t,e);return e.toLowerCase()},t}();pt.decorators=[{type:e.Pipe,args:[{name:"lowercase"}]}],pt.ctorParameters=function(){return[]};var ht=function(){function t(){}return t.prototype.transform=function(e){if(!e)return e;if("string"!=typeof e)throw a(t,e);return e.split(/\b/g).map(function(t){return u(t)}).join("")},t}();ht.decorators=[{type:e.Pipe,args:[{name:"titlecase"}]}],ht.ctorParameters=function(){return[]};var ft=function(){function t(){}return t.prototype.transform=function(e){if(!e)return e;if("string"!=typeof e)throw a(t,e);return e.toUpperCase()},t}();ft.decorators=[{type:e.Pipe,args:[{name:"uppercase"}]}],ft.ctorParameters=function(){return[]};var dt={};dt.Decimal=0,dt.Percent=1,dt.Currency=2,dt[dt.Decimal]="Decimal",dt[dt.Percent]="Percent",dt[dt.Currency]="Currency";var mt=function(){function t(){}return t.format=function(t,e,r,n){var o=void 0===n?{}:n,i=o.minimumIntegerDigits,s=o.minimumFractionDigits,a=o.maximumFractionDigits,u=o.currency,c=o.currencyAsSymbol,l=void 0===c?!1:c,p={minimumIntegerDigits:i,minimumFractionDigits:s,maximumFractionDigits:a,style:dt[r].toLowerCase()};return r==dt.Currency&&(p.currency="string"==typeof u?u:void 0,p.currencyDisplay=l?"symbol":"code"),new Intl.NumberFormat(e,p).format(t)},t}(),yt=/((?:[^yMLdHhmsazZEwGjJ']+)|(?:'(?:[^']|'')*')|(?:E+|y+|M+|L+|d+|H+|h+|J+|j+|m+|s+|a|z|Z|G+|w+))(.*)/,vt={yMMMdjms:g(v([m("year",1),y("month",3),m("day",1),m("hour",1),m("minute",1),m("second",1)])),yMdjm:g(v([m("year",1),m("month",1),m("day",1),m("hour",1),m("minute",1)])),yMMMMEEEEd:g(v([m("year",1),y("month",4),y("weekday",4),m("day",1)])),yMMMMd:g(v([m("year",1),y("month",4),m("day",1)])),yMMMd:g(v([m("year",1),y("month",3),m("day",1)])),yMd:g(v([m("year",1),m("month",1),m("day",1)])),jms:g(v([m("hour",1),m("second",1),m("minute",1)])),jm:g(v([m("hour",1),m("minute",1)]))},gt={yyyy:g(m("year",4)),yy:g(m("year",2)),y:g(m("year",1)),MMMM:g(y("month",4)),MMM:g(y("month",3)),MM:g(m("month",2)),M:g(m("month",1)),LLLL:g(y("month",4)),L:g(y("month",1)),dd:g(m("day",2)),d:g(m("day",1)),HH:c(p(g(d(m("hour",2),!1)))),H:p(g(d(m("hour",1),!1))),hh:c(p(g(d(m("hour",2),!0)))),h:p(g(d(m("hour",1),!0))),jj:g(m("hour",2)),j:g(m("hour",1)),mm:c(g(m("minute",2))),m:g(m("minute",1)),ss:c(g(m("second",2))),s:g(m("second",1)),sss:g(m("second",3)),EEEE:g(y("weekday",4)),EEE:g(y("weekday",3)),EE:g(y("weekday",2)),E:g(y("weekday",1)),a:l(g(d(m("hour",1),!0))),Z:f("short"),z:f("long"),ww:g({}),w:g({}),G:g(y("era",1)),GG:g(y("era",2)),GGG:g(y("era",3)),GGGG:g(y("era",4))},_t=new Map,bt=function(){function t(){}return t.format=function(t,e,r){return _(r,t,e)},t}(),wt=/^(\d+)?\.((\d+)(-(\d+))?)?$/,Ct=function(){function t(t){this._locale=t}return t.prototype.transform=function(e,r){return w(t,this._locale,e,dt.Decimal,r)},t}();Ct.decorators=[{type:e.Pipe,args:[{name:"number"}]}],Ct.ctorParameters=function(){return[{type:void 0,decorators:[{type:e.Inject,args:[e.LOCALE_ID]}]}]};var Et=function(){function t(t){this._locale=t}return t.prototype.transform=function(e,r){return w(t,this._locale,e,dt.Percent,r)},t}();Et.decorators=[{type:e.Pipe,args:[{name:"percent"}]}],Et.ctorParameters=function(){return[{type:void 0,decorators:[{type:e.Inject,args:[e.LOCALE_ID]}]}]};var St=function(){function t(t){this._locale=t}return t.prototype.transform=function(e,r,n,o){return void 0===r&&(r="USD"),void 0===n&&(n=!1),w(t,this._locale,e,dt.Currency,o,r,n)},t}();St.decorators=[{type:e.Pipe,args:[{name:"currency"}]}],St.ctorParameters=function(){return[{type:void 0,decorators:[{type:e.Inject,args:[e.LOCALE_ID]}]}]};var xt=/^(\d{4})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,Tt=function(){function t(t){this._locale=t}return t.prototype.transform=function(e,r){void 0===r&&(r="mediumDate");var n;if(S(e)||e!==e)return null;if("string"==typeof e&&(e=e.trim()),x(e))n=e;else if(E(e))n=new Date(parseFloat(e));else if("string"==typeof e&&/^(\d{4}-\d{1,2}-\d{1,2})$/.test(e)){var o=e.split("-").map(function(t){return parseInt(t,10)}),i=o[0],s=o[1],u=o[2];n=new Date(i,s-1,u)}else n=new Date(e);if(!x(n)){var c=void 0;if("string"!=typeof e||!(c=e.match(xt)))throw a(t,e);n=T(c)}return bt.format(n,this._locale,t._ALIASES[r]||r)},t}();Tt._ALIASES={medium:"yMMMdjms","short":"yMdjm",fullDate:"yMMMMEEEEd",longDate:"yMMMMd",mediumDate:"yMMMd",shortDate:"yMd",mediumTime:"jms",shortTime:"jm"},Tt.decorators=[{type:e.Pipe,args:[{name:"date",pure:!0}]}],Tt.ctorParameters=function(){return[{type:void 0,decorators:[{type:e.Inject,args:[e.LOCALE_ID]}]}]};var Pt=/#/g,At=function(){function t(t){this._localization=t}return t.prototype.transform=function(e,r){if(null==e)return"";if("object"!=typeof r||null===r)throw a(t,r);var n=o(e,Object.keys(r),this._localization);return r[n].replace(Pt,e.toString())},t}();At.decorators=[{type:e.Pipe,args:[{name:"i18nPlural",pure:!0}]}],At.ctorParameters=function(){return[{type:U}]};var Ot=function(){function t(){}return t.prototype.transform=function(e,r){if(null==e)return"";if("object"!=typeof r||"string"!=typeof e)throw a(t,r);return r.hasOwnProperty(e)?r[e]:r.hasOwnProperty("other")?r.other:""},t}();Ot.decorators=[{type:e.Pipe,args:[{name:"i18nSelect",pure:!0}]}],Ot.ctorParameters=function(){return[]};var Mt=function(){function t(){}return t.prototype.transform=function(t){return JSON.stringify(t,null,2)},t}();Mt.decorators=[{type:e.Pipe,args:[{name:"json",pure:!1}]}],Mt.ctorParameters=function(){return[]};var Rt=function(){function t(){}return t.prototype.transform=function(e,r,n){if(null==e)return e;if(!this.supports(e))throw a(t,e);return e.slice(r,n)},t.prototype.supports=function(t){return"string"==typeof t||Array.isArray(t)},t}();Rt.decorators=[{type:e.Pipe,args:[{name:"slice",pure:!1}]}],Rt.ctorParameters=function(){return[]};var kt=[lt,ft,pt,Mt,Rt,Ct,Et,ht,St,Tt,At,Ot],It=function(){function t(){}return t}();It.decorators=[{type:e.NgModule,args:[{declarations:[it,kt],exports:[it,kt],providers:[{provide:U,useClass:B}]}]}],It.ctorParameters=function(){return[]};var Nt="browser",Dt="server",jt="browserWorkerApp",Lt="browserWorkerUi",Vt=new e.Version("4.1.0");t.NgLocaleLocalization=B,t.NgLocalization=U,t.CommonModule=It,t.NgClass=q,t.NgFor=K,t.NgForOf=W,t.NgForOfContext=G,t.NgIf=Q,t.NgIfContext=X,t.NgPlural=et,t.NgPluralCase=rt,t.NgStyle=nt,t.NgSwitch=Y,t.NgSwitchCase=J,t.NgSwitchDefault=tt,t.NgTemplateOutlet=ot,t.NgComponentOutlet=z,t.AsyncPipe=lt,t.DatePipe=Tt,t.I18nPluralPipe=At,t.I18nSelectPipe=Ot,t.JsonPipe=Mt,t.LowerCasePipe=pt,t.CurrencyPipe=St,t.DecimalPipe=Ct,t.PercentPipe=Et,t.SlicePipe=Rt,t.UpperCasePipe=ft,t.TitleCasePipe=ht,t.ɵPLATFORM_BROWSER_ID=Nt,t.ɵPLATFORM_SERVER_ID=Dt,t.ɵPLATFORM_WORKER_APP_ID=jt,t.ɵPLATFORM_WORKER_UI_ID=Lt,t.isPlatformBrowser=A,t.isPlatformServer=O,t.isPlatformWorkerApp=M,t.isPlatformWorkerUi=R,t.VERSION=Vt,t.PlatformLocation=I,t.LOCATION_INITIALIZED=N,t.LocationStrategy=D,t.APP_BASE_HREF=j,t.HashLocationStrategy=V,t.PathLocationStrategy=F,t.Location=L,t.ɵa=it,t.ɵb=kt,Object.defineProperty(t,"__esModule",{value:!0})})},{"@angular/core":8}],7:[function(e,r,n){!function(o,i){"object"==typeof n&&"undefined"!=typeof r?i(n,e("@angular/core")):"function"==typeof t&&t.amd?t(["exports","@angular/core"],i):i((o.ng=o.ng||{},o.ng.compiler=o.ng.compiler||{}),o.ng.core)}(this,function(t,e){"use strict";function r(t,e,r){void 0===r&&(r=null);var n=[],o=t.visit?function(e){return t.visit(e,r)||e.visit(t,r); +return this.tokens.push(r),this._currentTokenStart=null,this._currentTokenType=null,r},t.prototype._createError=function(t,e){this._isInExpansionForm()&&(t+=' (Do you have an unescaped "{" in your template? Use "{{ \'{\' }}") to escape it.)');var r=new ra(t,this._currentTokenType,e);return this._currentTokenStart=null,this._currentTokenType=null,new ia(r)},t.prototype._advance=function(){if(this._index>=this._length)throw this._createError(ht(Ai),this._getSpan());this._peek===Mi?(this._line++,this._column=0):this._peek!==Mi&&this._peek!==Ii&&this._column++,this._index++,this._peek=this._index>=this._length?Ai:this._input.charCodeAt(this._index),this._nextPeek=this._index+1>=this._length?Ai:this._input.charCodeAt(this._index+1)},t.prototype._attemptCharCode=function(t){return this._peek===t?(this._advance(),!0):!1},t.prototype._attemptCharCodeCaseInsensitive=function(t){return wt(this._peek,t)?(this._advance(),!0):!1},t.prototype._requireCharCode=function(t){var e=this._getLocation();if(!this._attemptCharCode(t))throw this._createError(ht(this._peek),this._getSpan(e,e))},t.prototype._attemptStr=function(t){var e=t.length;if(this._index+e>this._length)return!1;for(var r=this._savePosition(),n=0;e>n;n++)if(!this._attemptCharCode(t.charCodeAt(n)))return this._restorePosition(r),!1;return!0},t.prototype._attemptStrCaseInsensitive=function(t){for(var e=0;e<t.length;e++)if(!this._attemptCharCodeCaseInsensitive(t.charCodeAt(e)))return!1;return!0},t.prototype._requireStr=function(t){var e=this._getLocation();if(!this._attemptStr(t))throw this._createError(ht(this._peek),this._getSpan(e))},t.prototype._attemptCharCodeUntilFn=function(t){for(;!t(this._peek);)this._advance()},t.prototype._requireCharCodeUntilFn=function(t,e){var r=this._getLocation();if(this._attemptCharCodeUntilFn(t),this._index-r.offset<e)throw this._createError(ht(this._peek),this._getSpan(r,r))},t.prototype._attemptUntilChar=function(t){for(;this._peek!==t;)this._advance()},t.prototype._readChar=function(t){if(t&&this._peek===Ui)return this._decodeEntity();var e=this._index;return this._advance(),this._input[e]},t.prototype._decodeEntity=function(){var t=this._getLocation();if(this._advance(),!this._attemptCharCode(Li)){var e=this._savePosition();if(this._attemptCharCodeUntilFn(gt),this._peek!=Zi)return this._restorePosition(e),"&";this._advance();var r=this._input.substring(t.offset+1,this._index-1),n=go[r];if(!n)throw this._createError(ft(r),this._getSpan(t));return n}var o=this._attemptCharCode(Cs)||this._attemptCharCode(as),i=this._getLocation().offset;if(this._attemptCharCodeUntilFn(vt),this._peek!=Zi)throw this._createError(ht(this._peek),this._getSpan());this._advance();var s=this._input.substring(i,this._index-1);try{var a=parseInt(s,o?16:10);return String.fromCharCode(a)}catch(u){var c=this._input.substring(t.offset+1,this._index-1);throw this._createError(ft(c),this._getSpan(t))}},t.prototype._consumeRawText=function(t,e,r){var n,o=this._getLocation();this._beginToken(t?ta.ESCAPABLE_RAW_TEXT:ta.RAW_TEXT,o);for(var i=[];;){if(n=this._getLocation(),this._attemptCharCode(e)&&r())break;for(this._index>n.offset&&i.push(this._input.substring(n.offset,this._index));this._peek!==e;)i.push(this._readChar(t))}return this._endToken([this._processCarriageReturns(i.join(""))],n)},t.prototype._consumeComment=function(t){var e=this;this._beginToken(ta.COMMENT_START,t),this._requireCharCode($i),this._endToken([]);var r=this._consumeRawText(!1,$i,function(){return e._attemptStr("->")});this._beginToken(ta.COMMENT_END,r.sourceSpan.end),this._endToken([])},t.prototype._consumeCdata=function(t){var e=this;this._beginToken(ta.CDATA_START,t),this._requireStr("CDATA["),this._endToken([]);var r=this._consumeRawText(!1,ps,function(){return e._attemptStr("]>")});this._beginToken(ta.CDATA_END,r.sourceSpan.end),this._endToken([])},t.prototype._consumeDocType=function(t){this._beginToken(ta.DOC_TYPE,t),this._attemptUntilChar(ts),this._advance(),this._endToken([this._input.substring(t.offset+2,this._index-1)])},t.prototype._consumePrefixAndName=function(){for(var t=this._index,e=null;this._peek!==Xi&&!yt(this._peek);)this._advance();var r;this._peek===Xi?(this._advance(),e=this._input.substring(t,this._index-1),r=this._index):r=t,this._requireCharCodeUntilFn(mt,this._index===r?1:0);var n=this._input.substring(r,this._index);return[e,n]},t.prototype._consumeTagOpen=function(t){var e,r,n=this._savePosition();try{if(!H(this._peek))throw this._createError(ht(this._peek),this._getSpan());var o=this._index;for(this._consumeTagOpenStart(t),e=this._input.substring(o,this._index),r=e.toLowerCase(),this._attemptCharCodeUntilFn(dt);this._peek!==Qi&&this._peek!==ts;)this._consumeAttributeName(),this._attemptCharCodeUntilFn(dt),this._attemptCharCode(Ji)&&(this._attemptCharCodeUntilFn(dt),this._consumeAttributeValue()),this._attemptCharCodeUntilFn(dt);this._consumeTagOpenEnd()}catch(i){if(i instanceof ia)return this._restorePosition(n),this._beginToken(ta.TEXT,t),void this._endToken(["<"]);throw i}var s=this._getTagDefinition(e).contentType;s===vo.RAW_TEXT?this._consumeRawTextWithTagClose(r,!1):s===vo.ESCAPABLE_RAW_TEXT&&this._consumeRawTextWithTagClose(r,!0)},t.prototype._consumeRawTextWithTagClose=function(t,e){var r=this,n=this._consumeRawText(e,Yi,function(){return r._attemptCharCode(Qi)?(r._attemptCharCodeUntilFn(dt),r._attemptStrCaseInsensitive(t)?(r._attemptCharCodeUntilFn(dt),r._attemptCharCode(ts)):!1):!1});this._beginToken(ta.TAG_CLOSE,n.sourceSpan.end),this._endToken([null,t])},t.prototype._consumeTagOpenStart=function(t){this._beginToken(ta.TAG_OPEN_START,t);var e=this._consumePrefixAndName();this._endToken(e)},t.prototype._consumeAttributeName=function(){this._beginToken(ta.ATTR_NAME);var t=this._consumePrefixAndName();this._endToken(t)},t.prototype._consumeAttributeValue=function(){this._beginToken(ta.ATTR_VALUE);var t;if(this._peek===Bi||this._peek===ji){var e=this._peek;this._advance();for(var r=[];this._peek!==e;)r.push(this._readChar(!0));t=r.join(""),this._advance()}else{var n=this._index;this._requireCharCodeUntilFn(mt,1),t=this._input.substring(n,this._index)}this._endToken([this._processCarriageReturns(t)])},t.prototype._consumeTagOpenEnd=function(){var t=this._attemptCharCode(Qi)?ta.TAG_OPEN_END_VOID:ta.TAG_OPEN_END;this._beginToken(t),this._requireCharCode(ts),this._endToken([])},t.prototype._consumeTagClose=function(t){this._beginToken(ta.TAG_CLOSE,t),this._attemptCharCodeUntilFn(dt);var e=this._consumePrefixAndName();this._attemptCharCodeUntilFn(dt),this._requireCharCode(ts),this._endToken(e)},t.prototype._consumeExpansionFormStart=function(){this._beginToken(ta.EXPANSION_FORM_START,this._getLocation()),this._requireCharCode(Ss),this._endToken([]),this._expansionCaseStack.push(ta.EXPANSION_FORM_START),this._beginToken(ta.RAW_TEXT,this._getLocation());var t=this._readUntil(Wi);this._endToken([t],this._getLocation()),this._requireCharCode(Wi),this._attemptCharCodeUntilFn(dt),this._beginToken(ta.RAW_TEXT,this._getLocation());var e=this._readUntil(Wi);this._endToken([e],this._getLocation()),this._requireCharCode(Wi),this._attemptCharCodeUntilFn(dt)},t.prototype._consumeExpansionCaseStart=function(){this._beginToken(ta.EXPANSION_CASE_VALUE,this._getLocation());var t=this._readUntil(Ss).trim();this._endToken([t],this._getLocation()),this._attemptCharCodeUntilFn(dt),this._beginToken(ta.EXPANSION_CASE_EXP_START,this._getLocation()),this._requireCharCode(Ss),this._endToken([],this._getLocation()),this._attemptCharCodeUntilFn(dt),this._expansionCaseStack.push(ta.EXPANSION_CASE_EXP_START)},t.prototype._consumeExpansionCaseEnd=function(){this._beginToken(ta.EXPANSION_CASE_EXP_END,this._getLocation()),this._requireCharCode(Ts),this._endToken([],this._getLocation()),this._attemptCharCodeUntilFn(dt),this._expansionCaseStack.pop()},t.prototype._consumeExpansionFormEnd=function(){this._beginToken(ta.EXPANSION_FORM_END,this._getLocation()),this._requireCharCode(Ts),this._endToken([]),this._expansionCaseStack.pop()},t.prototype._consumeText=function(){var t=this._getLocation();this._beginToken(ta.TEXT,t);var e=[];do this._interpolationConfig&&this._attemptStr(this._interpolationConfig.start)?(e.push(this._interpolationConfig.start),this._inInterpolation=!0):this._interpolationConfig&&this._inInterpolation&&this._attemptStr(this._interpolationConfig.end)?(e.push(this._interpolationConfig.end),this._inInterpolation=!1):e.push(this._readChar(!0));while(!this._isTextEnd());this._endToken([this._processCarriageReturns(e.join(""))])},t.prototype._isTextEnd=function(){if(this._peek===Yi||this._peek===Ai)return!0;if(this._tokenizeIcu&&!this._inInterpolation){if(_t(this._input,this._index,this._interpolationConfig))return!0;if(this._peek===Ts&&this._isInExpansionCase())return!0}return!1},t.prototype._savePosition=function(){return[this._peek,this._index,this._column,this._line,this.tokens.length]},t.prototype._readUntil=function(t){var e=this._index;return this._attemptUntilChar(t),this._input.substring(e,this._index)},t.prototype._restorePosition=function(t){this._peek=t[0],this._index=t[1],this._column=t[2],this._line=t[3];var e=t[4];e<this.tokens.length&&(this.tokens=this.tokens.slice(0,e))},t.prototype._isInExpansionCase=function(){return this._expansionCaseStack.length>0&&this._expansionCaseStack[this._expansionCaseStack.length-1]===ta.EXPANSION_CASE_EXP_START},t.prototype._isInExpansionForm=function(){return this._expansionCaseStack.length>0&&this._expansionCaseStack[this._expansionCaseStack.length-1]===ta.EXPANSION_FORM_START},t}(),aa=function(t){function e(e,r,n){var o=t.call(this,r,n)||this;return o.elementName=e,o}return Zn(e,t),e.create=function(t,r,n){return new e(t,r,n)},e}($s),ua=function(){function t(t,e){this.rootNodes=t,this.errors=e}return t}(),ca=function(){function t(t){this.getTagDefinition=t}return t.prototype.parse=function(t,e,r,n){void 0===r&&(r=!1),void 0===n&&(n=Rs);var o=pt(t,e,this.getTagDefinition,r,n),i=new la(o.tokens,this.getTagDefinition).build();return new ua(i.rootNodes,o.errors.concat(i.errors))},t}(),la=function(){function t(t,e){this.tokens=t,this.getTagDefinition=e,this._index=-1,this._rootNodes=[],this._errors=[],this._elementStack=[],this._advance()}return t.prototype.build=function(){for(;this._peek.type!==ta.EOF;)this._peek.type===ta.TAG_OPEN_START?this._consumeStartTag(this._advance()):this._peek.type===ta.TAG_CLOSE?this._consumeEndTag(this._advance()):this._peek.type===ta.CDATA_START?(this._closeVoidElement(),this._consumeCdata(this._advance())):this._peek.type===ta.COMMENT_START?(this._closeVoidElement(),this._consumeComment(this._advance())):this._peek.type===ta.TEXT||this._peek.type===ta.RAW_TEXT||this._peek.type===ta.ESCAPABLE_RAW_TEXT?(this._closeVoidElement(),this._consumeText(this._advance())):this._peek.type===ta.EXPANSION_FORM_START?this._consumeExpansion(this._advance()):this._advance();return new ua(this._rootNodes,this._errors)},t.prototype._advance=function(){var t=this._peek;return this._index<this.tokens.length-1&&this._index++,this._peek=this.tokens[this._index],t},t.prototype._advanceIf=function(t){return this._peek.type===t?this._advance():null},t.prototype._consumeCdata=function(){this._consumeText(this._advance()),this._advanceIf(ta.CDATA_END)},t.prototype._consumeComment=function(t){var e=this._advanceIf(ta.RAW_TEXT);this._advanceIf(ta.COMMENT_END);var r=null!=e?e.parts[0].trim():null;this._addToParent(new Js(r,t.sourceSpan))},t.prototype._consumeExpansion=function(t){for(var e=this._advance(),r=this._advance(),n=[];this._peek.type===ta.EXPANSION_CASE_VALUE;){var o=this._parseExpansionCase();if(!o)return;n.push(o)}if(this._peek.type!==ta.EXPANSION_FORM_END)return void this._errors.push(aa.create(null,this._peek.sourceSpan,"Invalid ICU message. Missing '}'."));var i=new Gs(t.sourceSpan.start,this._peek.sourceSpan.end);this._addToParent(new Qs(e.parts[0],r.parts[0],n,i,e.sourceSpan)),this._advance()},t.prototype._parseExpansionCase=function(){var e=this._advance();if(this._peek.type!==ta.EXPANSION_CASE_EXP_START)return this._errors.push(aa.create(null,this._peek.sourceSpan,"Invalid ICU message. Missing '{'.")),null;var r=this._advance(),n=this._collectExpansionExpTokens(r);if(!n)return null;var o=this._advance();n.push(new ea(ta.EOF,[],o.sourceSpan));var i=new t(n,this.getTagDefinition).build();if(i.errors.length>0)return this._errors=this._errors.concat(i.errors),null;var s=new Gs(e.sourceSpan.start,o.sourceSpan.end),a=new Gs(r.sourceSpan.start,o.sourceSpan.end);return new Xs(e.parts[0],i.rootNodes,s,e.sourceSpan,a)},t.prototype._collectExpansionExpTokens=function(t){for(var e=[],r=[ta.EXPANSION_CASE_EXP_START];;){if((this._peek.type===ta.EXPANSION_FORM_START||this._peek.type===ta.EXPANSION_CASE_EXP_START)&&r.push(this._peek.type),this._peek.type===ta.EXPANSION_CASE_EXP_END){if(!St(r,ta.EXPANSION_CASE_EXP_START))return this._errors.push(aa.create(null,t.sourceSpan,"Invalid ICU message. Missing '}'.")),null;if(r.pop(),0==r.length)return e}if(this._peek.type===ta.EXPANSION_FORM_END){if(!St(r,ta.EXPANSION_FORM_START))return this._errors.push(aa.create(null,t.sourceSpan,"Invalid ICU message. Missing '}'.")),null;r.pop()}if(this._peek.type===ta.EOF)return this._errors.push(aa.create(null,t.sourceSpan,"Invalid ICU message. Missing '}'.")),null;e.push(this._advance())}},t.prototype._consumeText=function(t){var e=t.parts[0];if(e.length>0&&"\n"==e[0]){var r=this._getParentElement();null!=r&&0==r.children.length&&this.getTagDefinition(r.name).ignoreFirstLf&&(e=e.substring(1))}e.length>0&&this._addToParent(new Ks(e,t.sourceSpan))},t.prototype._closeVoidElement=function(){if(this._elementStack.length>0){var t=this._elementStack[this._elementStack.length-1];this.getTagDefinition(t.name).isVoid&&this._elementStack.pop()}},t.prototype._consumeStartTag=function(t){for(var e=t.parts[0],r=t.parts[1],n=[];this._peek.type===ta.ATTR_NAME;)n.push(this._consumeAttr(this._advance()));var o=this._getElementFullName(e,r,this._getParentElement()),i=!1;if(this._peek.type===ta.TAG_OPEN_END_VOID){this._advance(),i=!0;var s=this.getTagDefinition(o);s.canSelfClose||null!==a(o)||s.isVoid||this._errors.push(aa.create(o,t.sourceSpan,'Only void and foreign elements can be self closed "'+t.parts[1]+'"'))}else this._peek.type===ta.TAG_OPEN_END&&(this._advance(),i=!1);var u=this._peek.sourceSpan.start,c=new Gs(t.sourceSpan.start,u),l=new Ys(o,n,[],c,c,void 0);this._pushElement(l),i&&(this._popElement(o),l.endSourceSpan=c)},t.prototype._pushElement=function(t){if(this._elementStack.length>0){var e=this._elementStack[this._elementStack.length-1];this.getTagDefinition(e.name).isClosedByChild(t.name)&&this._elementStack.pop()}var r=this.getTagDefinition(t.name),n=this._getParentElementSkippingContainers(),o=n.parent,i=n.container;if(o&&r.requireExtraParent(o.name)){var s=new Ys(r.parentToAdd,[],[],t.sourceSpan,t.startSourceSpan,t.endSourceSpan);this._insertBeforeContainer(o,i,s)}this._addToParent(t),this._elementStack.push(t)},t.prototype._consumeEndTag=function(t){var e=this._getElementFullName(t.parts[0],t.parts[1],this._getParentElement());if(this._getParentElement()&&(this._getParentElement().endSourceSpan=t.sourceSpan),this.getTagDefinition(e).isVoid)this._errors.push(aa.create(e,t.sourceSpan,'Void elements do not have end tags "'+t.parts[1]+'"'));else if(!this._popElement(e)){var r='Unexpected closing tag "'+e+'". It may happen when the tag has already been closed by another tag. For more info see https://www.w3.org/TR/html5/syntax.html#closing-elements-that-have-implied-end-tags';this._errors.push(aa.create(e,t.sourceSpan,r))}},t.prototype._popElement=function(t){for(var e=this._elementStack.length-1;e>=0;e--){var r=this._elementStack[e];if(r.name==t)return this._elementStack.splice(e,this._elementStack.length-e),!0;if(!this.getTagDefinition(r.name).closedByParent)return!1}return!1},t.prototype._consumeAttr=function(t){var e=u(t.parts[0],t.parts[1]),r=t.sourceSpan.end,n="",o=void 0;if(this._peek.type===ta.ATTR_VALUE){var i=this._advance();n=i.parts[0],r=i.sourceSpan.end,o=i.sourceSpan}return new Zs(e,n,new Gs(t.sourceSpan.start,r),o)},t.prototype._getParentElement=function(){return this._elementStack.length>0?this._elementStack[this._elementStack.length-1]:null},t.prototype._getParentElementSkippingContainers=function(){for(var t=null,e=this._elementStack.length-1;e>=0;e--){if(!o(this._elementStack[e].name))return{parent:this._elementStack[e],container:t};t=this._elementStack[e]}return{parent:this._elementStack[this._elementStack.length-1],container:t}},t.prototype._addToParent=function(t){var e=this._getParentElement();null!=e?e.children.push(t):this._rootNodes.push(t)},t.prototype._insertBeforeContainer=function(t,e,r){if(e){if(t){var n=t.children.indexOf(e);t.children[n]=r}else this._rootNodes.push(r);r.children.push(e),this._elementStack.splice(this._elementStack.indexOf(e),0,r)}else this._addToParent(r),this._elementStack.push(r)},t.prototype._getElementFullName=function(t,e,r){return null==t&&(t=this.getTagDefinition(e).implicitNamespacePrefix,null==t&&null!=r&&(t=a(r.name))),u(t,e)},t}(),pa=function(){function t(t,e,r,n,o,i){this.nodes=t,this.placeholders=e,this.placeholderToMessage=r,this.meaning=n,this.description=o,this.id=i,this.sources=t.length?[{filePath:t[0].sourceSpan.start.file.url,startLine:t[0].sourceSpan.start.line+1,startCol:t[0].sourceSpan.start.col+1,endLine:t[t.length-1].sourceSpan.end.line+1,endCol:t[0].sourceSpan.start.col+1}]:[]}return t}(),ha=function(){function t(t,e){this.value=t,this.sourceSpan=e}return t.prototype.visit=function(t,e){return t.visitText(this,e)},t}(),fa=function(){function t(t,e){this.children=t,this.sourceSpan=e}return t.prototype.visit=function(t,e){return t.visitContainer(this,e)},t}(),da=function(){function t(t,e,r,n){this.expression=t,this.type=e,this.cases=r,this.sourceSpan=n}return t.prototype.visit=function(t,e){return t.visitIcu(this,e)},t}(),ma=function(){function t(t,e,r,n,o,i,s){this.tag=t,this.attrs=e,this.startName=r,this.closeName=n,this.children=o,this.isVoid=i,this.sourceSpan=s}return t.prototype.visit=function(t,e){return t.visitTagPlaceholder(this,e)},t}(),ya=function(){function t(t,e,r){this.value=t,this.name=e,this.sourceSpan=r}return t.prototype.visit=function(t,e){return t.visitPlaceholder(this,e)},t}(),va=function(){function t(t,e,r){this.value=t,this.name=e,this.sourceSpan=r}return t.prototype.visit=function(t,e){return t.visitIcuPlaceholder(this,e)},t}(),ga=function(){function t(){}return t.prototype.visitText=function(t){return new ha(t.value,t.sourceSpan)},t.prototype.visitContainer=function(t,e){var r=this,n=t.children.map(function(t){return t.visit(r,e)});return new fa(n,t.sourceSpan)},t.prototype.visitIcu=function(t,e){var r=this,n={};Object.keys(t.cases).forEach(function(o){return n[o]=t.cases[o].visit(r,e)});var o=new da(t.expression,t.type,n,t.sourceSpan);return o.expressionPlaceholder=t.expressionPlaceholder,o},t.prototype.visitTagPlaceholder=function(t,e){var r=this,n=t.children.map(function(t){return t.visit(r,e)});return new ma(t.tag,t.attrs,t.startName,t.closeName,n,t.isVoid,t.sourceSpan)},t.prototype.visitPlaceholder=function(t){return new ya(t.value,t.name,t.sourceSpan)},t.prototype.visitIcuPlaceholder=function(t){return new va(t.value,t.name,t.sourceSpan)},t}(),_a=function(){function t(){}return t.prototype.visitText=function(){},t.prototype.visitContainer=function(t){var e=this;t.children.forEach(function(t){return t.visit(e)})},t.prototype.visitIcu=function(t){var e=this;Object.keys(t.cases).forEach(function(r){t.cases[r].visit(e)})},t.prototype.visitTagPlaceholder=function(t){var e=this;t.children.forEach(function(t){return t.visit(e)})},t.prototype.visitPlaceholder=function(){},t.prototype.visitIcuPlaceholder=function(){},t}(),ba={A:"LINK",B:"BOLD_TEXT",BR:"LINE_BREAK",EM:"EMPHASISED_TEXT",H1:"HEADING_LEVEL1",H2:"HEADING_LEVEL2",H3:"HEADING_LEVEL3",H4:"HEADING_LEVEL4",H5:"HEADING_LEVEL5",H6:"HEADING_LEVEL6",HR:"HORIZONTAL_RULE",I:"ITALIC_TEXT",LI:"LIST_ITEM",LINK:"MEDIA_LINK",OL:"ORDERED_LIST",P:"PARAGRAPH",Q:"QUOTATION",S:"STRIKETHROUGH_TEXT",SMALL:"SMALL_TEXT",SUB:"SUBSTRIPT",SUP:"SUPERSCRIPT",TBODY:"TABLE_BODY",TD:"TABLE_CELL",TFOOT:"TABLE_FOOTER",TH:"TABLE_HEADER_CELL",THEAD:"TABLE_HEADER",TR:"TABLE_ROW",TT:"MONOSPACED_TEXT",U:"UNDERLINED_TEXT",UL:"UNORDERED_LIST"},wa=function(){function t(){this._placeHolderNameCounts={},this._signatureToName={}}return t.prototype.getStartTagPlaceholderName=function(t,e,r){var n=this._hashTag(t,e,r);if(this._signatureToName[n])return this._signatureToName[n];var o=t.toUpperCase(),i=ba[o]||"TAG_"+o,s=this._generateUniqueName(r?i:"START_"+i);return this._signatureToName[n]=s,s},t.prototype.getCloseTagPlaceholderName=function(t){var e=this._hashClosingTag(t);if(this._signatureToName[e])return this._signatureToName[e];var r=t.toUpperCase(),n=ba[r]||"TAG_"+r,o=this._generateUniqueName("CLOSE_"+n);return this._signatureToName[e]=o,o},t.prototype.getPlaceholderName=function(t,e){var r=t.toUpperCase(),n="PH: "+r+"="+e;if(this._signatureToName[n])return this._signatureToName[n];var o=this._generateUniqueName(r);return this._signatureToName[n]=o,o},t.prototype.getUniquePlaceholder=function(t){return this._generateUniqueName(t.toUpperCase())},t.prototype._hashTag=function(t,e,r){var n="<"+t,o=Object.keys(e).sort().map(function(t){return" "+t+"="+e[t]}).join(""),i=r?"/>":"></"+t+">";return n+o+i},t.prototype._hashClosingTag=function(t){return this._hashTag("/"+t,{},!1)},t.prototype._generateUniqueName=function(t){var e=this._placeHolderNameCounts.hasOwnProperty(t);if(!e)return this._placeHolderNameCounts[t]=1,t;var r=this._placeHolderNameCounts[t];return this._placeHolderNameCounts[t]=r+1,t+"_"+r},t}(),Ca=new Us(new Ns),Ea=function(){function t(t,e){this._expressionParser=t,this._interpolationConfig=e}return t.prototype.toI18nMessage=function(t,e,r,n){this._isIcu=1==t.length&&t[0]instanceof Qs,this._icuDepth=0,this._placeholderRegistry=new wa,this._placeholderToContent={},this._placeholderToMessage={};var o=lt(this,t,{});return new pa(o,this._placeholderToContent,this._placeholderToMessage,e,r,n)},t.prototype.visitElement=function(t){var e=lt(this,t.children),r={};t.attrs.forEach(function(t){r[t.name]=t.value});var n=c(t.name).isVoid,o=this._placeholderRegistry.getStartTagPlaceholderName(t.name,r,n);this._placeholderToContent[o]=t.sourceSpan.toString();var i="";return n||(i=this._placeholderRegistry.getCloseTagPlaceholderName(t.name),this._placeholderToContent[i]="</"+t.name+">"),new ma(t.name,r,o,i,e,n,t.sourceSpan)},t.prototype.visitAttribute=function(t){return this._visitTextWithInterpolation(t.value,t.sourceSpan)},t.prototype.visitText=function(t){return this._visitTextWithInterpolation(t.value,t.sourceSpan)},t.prototype.visitComment=function(){return null},t.prototype.visitExpansion=function(e){var r=this;this._icuDepth++;var n={},o=new da(e.switchValue,e.type,n,e.sourceSpan);if(e.cases.forEach(function(t){n[t.value]=new fa(t.expression.map(function(t){return t.visit(r,{})}),t.expSourceSpan)}),this._icuDepth--,this._isIcu||this._icuDepth>0){var i=this._placeholderRegistry.getUniquePlaceholder("VAR_"+e.type);return o.expressionPlaceholder=i,this._placeholderToContent[i]=e.switchValue,o}var s=this._placeholderRegistry.getPlaceholderName("ICU",e.sourceSpan.toString()),a=new t(this._expressionParser,this._interpolationConfig);return this._placeholderToMessage[s]=a.toI18nMessage([e],"","",""),new va(o,s,e.sourceSpan)},t.prototype.visitExpansionCase=function(){throw new Error("Unreachable code")},t.prototype._visitTextWithInterpolation=function(t,e){var r=this._expressionParser.splitInterpolation(t,e.start.toString(),this._interpolationConfig);if(!r)return new ha(t,e);for(var n=[],o=new fa(n,e),i=this._interpolationConfig,s=i.start,a=i.end,u=0;u<r.strings.length-1;u++){var c=r.expressions[u],l=Tt(c)||"INTERPOLATION",p=this._placeholderRegistry.getPlaceholderName(l,c);r.strings[u].length&&n.push(new ha(r.strings[u],e)),n.push(new ya(c,p,e)),this._placeholderToContent[p]=s+c+a}var h=r.strings.length-1;return r.strings[h].length&&n.push(new ha(r.strings[h],e)),o},t}(),Sa=/\/\/[\s\S]*i18n[\s\S]*\([\s\S]*ph[\s\S]*=[\s\S]*("|')([\s\S]*?)\1[\s\S]*\)/g,xa=function(t){function e(e,r){return t.call(this,e,r)||this}return Zn(e,t),e}($s),Ta="i18n",Pa="i18n-",Aa=/^i18n:?/,Oa="|",Ma="@@",Ra=function(){function t(t,e){this.messages=t,this.errors=e}return t}(),ka={};ka.Extract=0,ka.Merge=1,ka[ka.Extract]="Extract",ka[ka.Merge]="Merge";var Ia=function(){function t(t,e){this._implicitTags=t,this._implicitAttrs=e}return t.prototype.extract=function(t,e){var r=this;return this._init(ka.Extract,e),t.forEach(function(t){return t.visit(r,null)}),this._inI18nBlock&&this._reportError(t[t.length-1],"Unclosed block"),new Ra(this._messages,this._errors)},t.prototype.merge=function(t,e,r){this._init(ka.Merge,r),this._translations=e;var n=new Ys("wrapper",[],t,void 0,void 0,void 0),o=n.visit(this,null);return this._inI18nBlock&&this._reportError(t[t.length-1],"Unclosed block"),new ua(o.children,this._errors)},t.prototype.visitExpansionCase=function(t,e){var r=lt(this,t.expression,e);return this._mode===ka.Merge?new Xs(t.value,r,t.sourceSpan,t.valueSourceSpan,t.expSourceSpan):void 0},t.prototype.visitExpansion=function(t,e){this._mayBeAddBlockChildren(t);var r=this._inIcu;this._inIcu||(this._isInTranslatableSection&&this._addMessage([t]),this._inIcu=!0);var n=lt(this,t.cases,e);return this._mode===ka.Merge&&(t=new Qs(t.switchValue,t.type,n,t.sourceSpan,t.switchValueSourceSpan)),this._inIcu=r,t},t.prototype.visitComment=function(t){var e=Ot(t);if(e&&this._isInTranslatableSection)return void this._reportError(t,"Could not start a block inside a translatable section");var r=Mt(t);if(r&&!this._inI18nBlock)return void this._reportError(t,"Trying to close an unopened block");if(!this._inI18nNode&&!this._inIcu)if(this._inI18nBlock){if(r){if(this._depth==this._blockStartDepth){this._closeTranslatableSection(t,this._blockChildren),this._inI18nBlock=!1;var n=this._addMessage(this._blockChildren,this._blockMeaningAndDesc),o=this._translateMessage(t,n);return lt(this,o)}return void this._reportError(t,"I18N blocks should not cross element boundaries")}}else e&&(this._inI18nBlock=!0,this._blockStartDepth=this._depth,this._blockChildren=[],this._blockMeaningAndDesc=t.value.replace(Aa,"").trim(),this._openTranslatableSection(t))},t.prototype.visitText=function(t){return this._isInTranslatableSection&&this._mayBeAddBlockChildren(t),t},t.prototype.visitElement=function(t,e){var r=this;this._mayBeAddBlockChildren(t),this._depth++;var n=this._inI18nNode,o=this._inImplicitNode,i=[],s=void 0,a=Rt(t),u=a?a.value:"",c=this._implicitTags.some(function(e){return t.name===e})&&!this._inIcu&&!this._isInTranslatableSection,l=!o&&c;if(this._inImplicitNode=o||c,this._isInTranslatableSection||this._inIcu)(a||l)&&this._reportError(t,"Could not mark an element as translatable inside a translatable section"),this._mode==ka.Extract&<(this,t.children);else{if(a||l){this._inI18nNode=!0;var p=this._addMessage(t.children,u);s=this._translateMessage(t,p)}if(this._mode==ka.Extract){var h=a||l;h&&this._openTranslatableSection(t),lt(this,t.children),h&&this._closeTranslatableSection(t,t.children)}}if(this._mode===ka.Merge){var f=s||t.children;f.forEach(function(t){var n=t.visit(r,e);n&&!r._isInTranslatableSection&&(i=i.concat(n))})}if(this._visitAttributesOf(t),this._depth--,this._inI18nNode=n,this._inImplicitNode=o,this._mode===ka.Merge){var d=this._translateAttributes(t);return new Ys(t.name,d,i,t.sourceSpan,t.startSourceSpan,t.endSourceSpan)}return null},t.prototype.visitAttribute=function(){throw new Error("unreachable code")},t.prototype._init=function(t,e){this._mode=t,this._inI18nBlock=!1,this._inI18nNode=!1,this._depth=0,this._inIcu=!1,this._msgCountAtSectionStart=void 0,this._errors=[],this._messages=[],this._inImplicitNode=!1,this._createI18nMessage=xt(e)},t.prototype._visitAttributesOf=function(t){var e=this,r={},n=this._implicitAttrs[t.name]||[];t.attrs.filter(function(t){return t.name.startsWith(Pa)}).forEach(function(t){return r[t.name.slice(Pa.length)]=t.value}),t.attrs.forEach(function(t){t.name in r?e._addMessage([t],r[t.name]):n.some(function(e){return t.name===e})&&e._addMessage([t])})},t.prototype._addMessage=function(t,e){if(0==t.length||1==t.length&&t[0]instanceof Zs&&!t[0].value)return null;var r=kt(e),n=r.meaning,o=r.description,i=r.id,s=this._createI18nMessage(t,n,o,i);return this._messages.push(s),s},t.prototype._translateMessage=function(t,e){if(e&&this._mode===ka.Merge){var r=this._translations.get(e);if(r)return r;this._reportError(t,'Translation unavailable for message id="'+this._translations.digest(e)+'"')}return[]},t.prototype._translateAttributes=function(t){var e=this,r=t.attrs,n={};r.forEach(function(t){t.name.startsWith(Pa)&&(n[t.name.slice(Pa.length)]=kt(t.value))});var o=[];return r.forEach(function(r){if(r.name!==Ta&&!r.name.startsWith(Pa))if(r.value&&""!=r.value&&n.hasOwnProperty(r.name)){var i=n[r.name],s=i.meaning,a=i.description,u=i.id,c=e._createI18nMessage([r],s,a,u),l=e._translations.get(c);if(l)if(0==l.length)o.push(new Zs(r.name,"",r.sourceSpan));else if(l[0]instanceof Ks){var p=l[0].value;o.push(new Zs(r.name,p,r.sourceSpan))}else e._reportError(t,'Unexpected translation for attribute "'+r.name+'" (id="'+(u||e._translations.digest(c))+'")');else e._reportError(t,'Translation unavailable for attribute "'+r.name+'" (id="'+(u||e._translations.digest(c))+'")')}else o.push(r)}),o},t.prototype._mayBeAddBlockChildren=function(t){this._inI18nBlock&&!this._inIcu&&this._depth==this._blockStartDepth&&this._blockChildren.push(t)},t.prototype._openTranslatableSection=function(t){this._isInTranslatableSection?this._reportError(t,"Unexpected section start"):this._msgCountAtSectionStart=this._messages.length},Object.defineProperty(t.prototype,"_isInTranslatableSection",{get:function(){return void 0!==this._msgCountAtSectionStart},enumerable:!0,configurable:!0}),t.prototype._closeTranslatableSection=function(t,e){if(!this._isInTranslatableSection)return void this._reportError(t,"Unexpected section end");var r=this._msgCountAtSectionStart,n=e.reduce(function(t,e){return t+(e instanceof Js?0:1)},0);if(1==n)for(var o=this._messages.length-1;o>=r;o--){var i=this._messages[o].nodes;if(!(1==i.length&&i[0]instanceof ha)){this._messages.splice(o,1);break}}this._msgCountAtSectionStart=void 0},t.prototype._reportError=function(t,e){this._errors.push(new xa(t.sourceSpan,e))},t}(),Na=function(){function t(){this.closedByParent=!1,this.contentType=vo.PARSABLE_DATA,this.isVoid=!1,this.ignoreFirstLf=!1,this.canSelfClose=!0}return t.prototype.requireExtraParent=function(){return!1},t.prototype.isClosedByChild=function(){return!1},t}(),Da=new Na,ja=function(t){function e(){return t.call(this,It)||this}return Zn(e,t),e.prototype.parse=function(e,r,n){return void 0===n&&(n=!1),t.prototype.parse.call(this,e,r,n)},e}(ca),La=function(){function t(){}return t.prototype.visitText=function(t){return t.value},t.prototype.visitContainer=function(t){var e=this;return"["+t.children.map(function(t){return t.visit(e)}).join(", ")+"]"},t.prototype.visitIcu=function(t){var e=this,r=Object.keys(t.cases).map(function(r){return r+" {"+t.cases[r].visit(e)+"}"});return"{"+t.expression+", "+t.type+", "+r.join(", ")+"}"},t.prototype.visitTagPlaceholder=function(t){var e=this;return t.isVoid?'<ph tag name="'+t.startName+'"/>':'<ph tag name="'+t.startName+'">'+t.children.map(function(t){return t.visit(e)}).join(", ")+'</ph name="'+t.closeName+'">'},t.prototype.visitPlaceholder=function(t){return t.value?'<ph name="'+t.name+'">'+t.value+"</ph>":'<ph name="'+t.name+'"/>'},t.prototype.visitIcuPlaceholder=function(t){return'<ph icu name="'+t.name+'">'+t.value.visit(this)+"</ph>"},t}(),Va=new La,Fa=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Zn(e,t),e.prototype.visitIcu=function(t){var e=this,r=Object.keys(t.cases).map(function(r){return r+" {"+t.cases[r].visit(e)+"}"; -}:function(e){return e.visit(t,r)};return e.forEach(function(t){var e=o(t);e&&n.push(e)}),n}function n(t){if(":"!=t[0])return[null,t];var e=t.indexOf(":",1);if(-1==e)throw new Error('Unsupported format "'+t+'" expecting ":namespace:name"');return[t.slice(1,e),t.slice(e+1)]}function o(t){return"ng-container"===n(t)[1]}function i(t){return"ng-content"===n(t)[1]}function s(t){return"ng-template"===n(t)[1]}function a(t){return null===t?null:n(t)[0]}function u(t,e){return t?":"+t+":"+e:e}function c(t){return bo[t.toLowerCase()]||wo}function l(t){return t.replace(Ao,function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return t[1].toUpperCase()})}function p(t,e){return f(t,":",e)}function h(t,e){return f(t,".",e)}function f(t,e,r){var n=t.indexOf(e);return-1==n?r:[t.slice(0,n).trim(),t.slice(n+1).trim()]}function d(t,e,r){return Array.isArray(t)?e.visitArray(t,r):b(t)?e.visitStringMap(t,r):null==t||"string"==typeof t||"number"==typeof t||"boolean"==typeof t?e.visitPrimitive(t,r):e.visitOther(t,r)}function m(t){return null!==t&&void 0!==t}function y(t){return void 0===t?null:t}function v(t){var e=Error(t);return e[Ro]=!0,e}function g(t){return t[Ro]}function _(t){return t.replace(/([.*+?^=!:${}()|[\]\/\\])/g,"\\$1")}function b(t){return"object"==typeof t&&null!==t&&Object.getPrototypeOf(t)===ko}function w(t){for(var e="",r=0;r<t.length;r++){var n=t.charCodeAt(r);if(n>=55296&&56319>=n&&t.length>r+1){var o=t.charCodeAt(r+1);o>=56320&&57343>=o&&(r++,n=(n-55296<<10)+o-56320+65536)}127>=n?e+=String.fromCharCode(n):2047>=n?e+=String.fromCharCode(n>>6&31|192,63&n|128):65535>=n?e+=String.fromCharCode(n>>12|224,n>>6&63|128,63&n|128):2097151>=n&&(e+=String.fromCharCode(n>>18&7|240,n>>12&63|128,n>>6&63|128,63&n|128))}return e}function C(t){return t.replace(/\W/g,"_")}function E(t){if(!t||!t.reference)return null;var r=t.reference;if(r instanceof mo)return r.name;if(r.__anonymousType)return r.__anonymousType;var n=e.ɵstringify(r);return n.indexOf("(")>=0?(n="anonymous_"+Go++,r.__anonymousType=n):n=C(n),n}function S(t){var r=t.reference;return r instanceof mo?r.filePath:e.ɵreflector.importUri(r)}function x(t,e){return"View_"+E({reference:t})+"_"+e}function T(t){return"RenderType_"+E({reference:t})}function P(t){return"HostView_"+E({reference:t})}function A(t){return"Wrapper_"+E({reference:t})}function O(t){return E({reference:t})+"NgFactory"}function M(t){return null!=t.value?C(t.value):E(t.identifier)}function R(t){return null!=t.identifier?t.identifier.reference:t.value}function k(t,r,n){var o=Eo.parse(r.selector)[0].getMatchingElementTemplate();return Qo.create({isHost:!0,type:{reference:t,diDeps:[],lifecycleHooks:[]},template:new Ko({encapsulation:e.ViewEncapsulation.None,template:o,templateUrl:"",styles:[],styleUrls:[],ngContentSelectors:[],animations:[],isInline:!0,externalStylesheets:[],interpolation:null}),exportAs:null,changeDetection:e.ChangeDetectionStrategy.Default,inputs:[],outputs:[],host:{},isComponent:!0,selector:"*",providers:[],viewProviders:[],queries:[],viewQueries:[],componentViewType:n,rendererType:{id:"__Host__",encapsulation:e.ViewEncapsulation.None,styles:[],data:{}},entryComponents:[],componentFactory:null})}function I(t){return t||[]}function N(t){return t.reduce(function(t,e){var r=Array.isArray(e)?N(e):e;return t.concat(r)},[])}function D(t){return t.replace(/(\w+:\/\/[\w:-]+)?(\/+)?/,"ng:///")}function j(t,e,r){var n;return n=r.isInline?e.type.reference instanceof mo?e.type.reference.filePath+"."+e.type.reference.name+".html":E(t)+"/"+E(e.type)+".html":r.templateUrl,D(n)}function L(t,e){var r=t.moduleUrl.split(/\/\\/g),n=r[r.length-1];return D("css/"+e+n+".ngstyle.js")}function V(t){return D(E(t.type)+"/module.ngfactory.js")}function F(t,e){return D(E(t)+"/"+E(e.type)+".ngfactory.js")}function U(t){return t>=Oi&&Ni>=t||t==Ps}function B(t){return t>=rs&&ns>=t}function H(t){return t>=ds&&Es>=t||t>=os&&us>=t}function q(t){return t>=ds&&ys>=t||t>=os&&ss>=t||B(t)}function z(){return function(t){return t}}function G(t,r){if(e.isDevMode()&&null!=r){if(!Array.isArray(r))throw new Error("Expected '"+t+"' to be an array of strings.");for(var n=0;n<r.length;n+=1)if("string"!=typeof r[n])throw new Error("Expected '"+t+"' to be an array of strings.")}}function W(t,r){if(!(null==r||Array.isArray(r)&&2==r.length))throw new Error("Expected '"+t+"' to be an array, [start, end].");if(e.isDevMode()&&null!=r){var n=r[0],o=r[1];Os.forEach(function(t){if(t.test(n)||t.test(o))throw new Error("['"+n+"', '"+o+"'] contains unusable interpolation symbol.")})}}function $(t,e){return new Ds(t,ks.Character,e,String.fromCharCode(e))}function K(t,e){return new Ds(t,ks.Identifier,0,e)}function Q(t,e){return new Ds(t,ks.Keyword,0,e)}function X(t,e){return new Ds(t,ks.Operator,0,e)}function Z(t,e){return new Ds(t,ks.String,0,e)}function Y(t,e){return new Ds(t,ks.Number,e,"")}function J(t,e){return new Ds(t,ks.Error,0,e)}function tt(t){return t>=ds&&Es>=t||t>=os&&us>=t||t==fs||t==Vi}function et(t){if(0==t.length)return!1;var e=new Ls(t);if(!tt(e.peek))return!1;for(e.advance();e.peek!==Ai;){if(!rt(e.peek))return!1;e.advance()}return!0}function rt(t){return H(t)||B(t)||t==fs||t==Vi}function nt(t){return t==ms||t==is}function ot(t){return t==$i||t==Gi}function it(t){return t===Bi||t===ji||t===As}function st(t){switch(t){case vs:return Mi;case ys:return ki;case gs:return Ii;case _s:return Oi;case ws:return Ri;default:return t}}function at(t){var e=parseInt(t);if(isNaN(e))throw new Error("Invalid integer literal when parsing "+t);return e}function ut(t){var e=_(t.start)+"([\\s\\S]*?)"+_(t.end);return new RegExp(e,"g")}function ct(t,e){var r=S(e),n=null!=r?"in "+t+" "+E(e)+" in "+r:"in "+t+" "+E(e),o=new zs("",n);return new Gs(new qs(o,-1,-1,-1),new qs(o,-1,-1,-1))}function lt(t,e,r){void 0===r&&(r=null);var n=[],o=t.visit?function(e){return t.visit(e,r)||e.visit(t,r)}:function(e){return e.visit(t,r)};return e.forEach(function(t){var e=o(t);e&&n.push(e)}),n}function pt(t,e,r,n,o){return void 0===n&&(n=!1),void 0===o&&(o=Rs),new sa(new zs(t,e),r,n,o).tokenize()}function ht(t){var e=t===Ai?"EOF":String.fromCharCode(t);return'Unexpected character "'+e+'"'}function ft(t){return'Unknown entity "'+t+'" - use the "&#<decimal>;" or "&#x<hex>;" syntax'}function dt(t){return!U(t)||t===Ai}function mt(t){return U(t)||t===ts||t===Qi||t===Bi||t===ji||t===Ji}function yt(t){return(ds>t||t>Es)&&(os>t||t>us)&&(rs>t||t>ns)}function vt(t){return t==Zi||t==Ai||!q(t)}function gt(t){return t==Zi||t==Ai||!H(t)}function _t(t,e,r){var n=r?t.indexOf(r.start,e)==e:!1;return t.charCodeAt(e)==Ss&&!n}function bt(t){return t===Ji||H(t)}function wt(t,e){return Ct(t)==Ct(e)}function Ct(t){return t>=ds&&Es>=t?t-ds+os:t}function Et(t){for(var e=[],r=void 0,n=0;n<t.length;n++){var o=t[n];r&&r.type==ta.TEXT&&o.type==ta.TEXT?(r.parts[0]+=o.parts[0],r.sourceSpan.end=o.sourceSpan.end):(r=o,e.push(r))}return e}function St(t,e){return t.length>0&&t[t.length-1]===e}function xt(t){var e=new Ea(Ca,t);return function(t,r,n,o){return e.toI18nMessage(t,r,n,o)}}function Tt(t){return t.split(Sa)[2]}function Pt(t,e,r,n){var o=new Ia(r,n);return o.extract(t,e)}function At(t,e,r,n,o){var i=new Ia(n,o);return i.merge(t,e,r)}function Ot(t){return!!(t instanceof Js&&t.value&&t.value.startsWith("i18n"))}function Mt(t){return!!(t instanceof Js&&t.value&&"/i18n"===t.value)}function Rt(t){return t.attrs.find(function(t){return t.name===Ta})||null}function kt(t){if(!t)return{meaning:"",description:"",id:""};var e=t.indexOf(Ma),r=t.indexOf(Oa),n=e>-1?[t.slice(0,e),t.slice(e+2)]:[t,""],o=n[0],i=n[1],s=r>-1?[o.slice(0,r),o.slice(r+1)]:["",o],a=s[0],u=s[1];return{meaning:a,description:u,id:i}}function It(){return Da}function Nt(t){return t.id||Lt(jt(t.nodes).join("")+("["+t.meaning+"]"))}function Dt(t){if(t.id)return t.id;var e=new Fa,r=t.nodes.map(function(t){return t.visit(e,null)});return Ut(r.join(""),t.meaning)}function jt(t){return t.map(function(t){return t.visit(Va,null)})}function Lt(t){var e=w(t),r=Qt(e,Ua.Big),n=8*e.length,o=new Array(80),i=[1732584193,4023233417,2562383102,271733878,3285377520],s=i[0],a=i[1],u=i[2],c=i[3],l=i[4];r[n>>5]|=128<<24-n%32,r[(n+64>>9<<4)+15]=n;for(var p=0;p<r.length;p+=16){for(var h=[s,a,u,c,l],f=h[0],d=h[1],m=h[2],y=h[3],v=h[4],g=0;80>g;g++){o[g]=16>g?r[p+g]:$t(o[g-3]^o[g-8]^o[g-14]^o[g-16],1);var _=Vt(g,a,u,c),b=_[0],C=_[1],E=[$t(s,5),b,l,C,o[g]].reduce(qt);S=[c,u,$t(a,30),s,E],l=S[0],c=S[1],u=S[2],a=S[3],s=S[4]}x=[qt(s,f),qt(a,d),qt(u,m),qt(c,y),qt(l,v)],s=x[0],a=x[1],u=x[2],c=x[3],l=x[4]}return te(Yt([s,a,u,c,l]));var S,x}function Vt(t,e,r,n){return 20>t?[e&r|~e&n,1518500249]:40>t?[e^r^n,1859775393]:60>t?[e&r|e&n|r&n,2400959708]:[e^r^n,3395469782]}function Ft(t){var e=w(t),r=[Bt(e,0),Bt(e,102072)],n=r[0],o=r[1];return 0!=n||0!=o&&1!=o||(n=319790063^n,o=-1801410264^o),[n,o]}function Ut(t,e){var r=Ft(t),n=r[0],o=r[1];if(e){var i=Ft(e),s=i[0],a=i[1];u=Gt(Kt([n,o],1),[s,a]),n=u[0],o=u[1]}return ee(Yt([2147483647&n,o]));var u}function Bt(t,e){var r,n=[2654435769,2654435769],o=n[0],i=n[1],s=t.length;for(r=0;s>=r+12;r+=12)o=qt(o,Zt(t,r,Ua.Little)),i=qt(i,Zt(t,r+4,Ua.Little)),e=qt(e,Zt(t,r+8,Ua.Little)),a=Ht([o,i,e]),o=a[0],i=a[1],e=a[2];return o=qt(o,Zt(t,r,Ua.Little)),i=qt(i,Zt(t,r+4,Ua.Little)),e=qt(e,s),e=qt(e,Zt(t,r+8,Ua.Little)<<8),Ht([o,i,e])[2];var a}function Ht(t){var e=t[0],r=t[1],n=t[2];return e=Wt(e,r),e=Wt(e,n),e^=n>>>13,r=Wt(r,n),r=Wt(r,e),r^=e<<8,n=Wt(n,e),n=Wt(n,r),n^=r>>>13,e=Wt(e,r),e=Wt(e,n),e^=n>>>12,r=Wt(r,n),r=Wt(r,e),r^=e<<16,n=Wt(n,e),n=Wt(n,r),n^=r>>>5,e=Wt(e,r),e=Wt(e,n),e^=n>>>3,r=Wt(r,n),r=Wt(r,e),r^=e<<10,n=Wt(n,e),n=Wt(n,r),n^=r>>>15,[e,r,n]}function qt(t,e){return zt(t,e)[1]}function zt(t,e){var r=(65535&t)+(65535&e),n=(t>>>16)+(e>>>16)+(r>>>16);return[n>>>16,n<<16|65535&r]}function Gt(t,e){var r=t[0],n=t[1],o=e[0],i=e[1],s=zt(n,i),a=s[0],u=s[1],c=qt(qt(r,o),a);return[c,u]}function Wt(t,e){var r=(65535&t)-(65535&e),n=(t>>16)-(e>>16)+(r>>16);return n<<16|65535&r}function $t(t,e){return t<<e|t>>>32-e}function Kt(t,e){var r=t[0],n=t[1],o=r<<e|n>>>32-e,i=n<<e|r>>>32-e;return[o,i]}function Qt(t,e){for(var r=Array(t.length+3>>>2),n=0;n<r.length;n++)r[n]=Zt(t,4*n,e);return r}function Xt(t,e){return e>=t.length?0:255&t.charCodeAt(e)}function Zt(t,e,r){var n=0;if(r===Ua.Big)for(var o=0;4>o;o++)n+=Xt(t,e+o)<<24-8*o;else for(var o=0;4>o;o++)n+=Xt(t,e+o)<<8*o;return n}function Yt(t){return t.reduce(function(t,e){return t+Jt(e)},"")}function Jt(t){for(var e="",r=0;4>r;r++)e+=String.fromCharCode(t>>>8*(3-r)&255);return e}function te(t){for(var e="",r=0;r<t.length;r++){var n=Xt(t,r);e+=(n>>>4).toString(16)+(15&n).toString(16)}return e.toLowerCase()}function ee(t){for(var e="",r="1",n=t.length-1;n>=0;n--)e=re(e,ne(Xt(t,n),r)),r=ne(256,r);return e.split("").reverse().join("")}function re(t,e){for(var r="",n=Math.max(t.length,e.length),o=0,i=0;n>o||i;o++){var s=i+ +(t[o]||0)+ +(e[o]||0);s>=10?(i=1,r+=s-10):(i=0,r+=s)}return r}function ne(t,e){for(var r="",n=e;0!==t;t>>>=1)1&t&&(r=re(r,n)),n=re(n,n);return r}function oe(t){return t.map(function(t){return t.visit(za)}).join("")}function ie(t){return Xa.reduce(function(t,e){return t.replace(e[0],e[1])},t)}function se(t){switch(t.toLowerCase()){case"br":return"lb";case"img":return"image";default:return"x-"+t}}function ae(t){switch(t.toLowerCase()){case"br":case"b":case"i":case"u":return"fmt";case"img":return"image";case"a":return"link";default:return"other"}}function ue(t){return Dt(t)}function ce(t){return t.toUpperCase().replace(/[^A-Z0-9_]/g,"_")}function le(t,e,r){Object.defineProperty(t,e,{configurable:!0,enumerable:!0,get:function(){var n=r();return Object.defineProperty(t,e,{enumerable:!0,value:n}),n},set:function(){throw new Error("Could not overwrite an XTB translation")}})}function pe(t){switch(t=(t||"xlf").toLowerCase()){case"xmb":return new Mu;case"xtb":return new ju;case"xliff2":case"xlf2":return new bu;case"xliff":case"xlf":default:return new au}}function he(t,e,r){return void 0===e&&(e=null),void 0===r&&(r="src"),null==e?"@angular/"+t:"@angular/"+t+"/"+r+"/"+e}function fe(t){var r=t.name;return e.ɵreflector.resolveIdentifier(r,t.moduleUrl,null,t.runtime)}function de(t){return{reference:fe(t)}}function me(t){return{identifier:t}}function ye(t){return me(de(t))}function ve(t){var e=new Ku;return new Wu(lt(e,t),e.isExpanded,e.errors)}function ge(t,e){var r=t.cases.map(function(t){-1!=Gu.indexOf(t.value)||t.value.match(/^=\d+$/)||e.push(new $u(t.valueSourceSpan,'Plural cases should be "=<number>" or one of '+Gu.join(", ")));var r=ve(t.expression);return e.push.apply(e,r.errors),new Ys("ng-template",[new Zs("ngPluralCase",""+t.value,t.valueSourceSpan)],r.nodes,t.sourceSpan,t.sourceSpan,t.sourceSpan)}),n=new Zs("[ngPlural]",t.switchValue,t.switchValueSourceSpan);return new Ys("ng-container",[n],r,t.sourceSpan,t.sourceSpan,t.sourceSpan)}function _e(t,e){var r=t.cases.map(function(t){var r=ve(t.expression);return e.push.apply(e,r.errors),"other"===t.value?new Ys("ng-template",[new Zs("ngSwitchDefault","",t.valueSourceSpan)],r.nodes,t.sourceSpan,t.sourceSpan,t.sourceSpan):new Ys("ng-template",[new Zs("ngSwitchCase",""+t.value,t.valueSourceSpan)],r.nodes,t.sourceSpan,t.sourceSpan,t.sourceSpan)}),n=new Zs("[ngSwitch]",t.switchValue,t.switchValueSourceSpan);return new Ys("ng-container",[n],r,t.sourceSpan,t.sourceSpan,t.sourceSpan)}function be(t,e){var r=e.useExisting,n=e.useValue,o=e.deps;return{token:t.token,useClass:t.useClass,useExisting:r,useFactory:t.useFactory,useValue:n,deps:o,multi:t.multi}}function we(t,e){var r=e.eager,n=e.providers;return new lo(t.token,t.multiProvider,t.eager||r,n,t.providerType,t.lifecycleHooks,t.sourceSpan)}function Ce(t,e,r){var n=new Map;t.forEach(function(t){var o={token:{identifier:t.type},useClass:t.type};Ee([o],t.isComponent?po.Component:po.Directive,!0,e,r,n)});var o=t.filter(function(t){return t.isComponent}).concat(t.filter(function(t){return!t.isComponent}));return o.forEach(function(t){Ee(t.providers,po.PublicService,!1,e,r,n),Ee(t.viewProviders,po.PrivateService,!1,e,r,n)}),n}function Ee(t,e,r,n,o,i){t.forEach(function(t){var s=i.get(R(t.token));if(null!=s&&!!s.multiProvider!=!!t.multi&&o.push(new Qu("Mixing multi and non multi provider is not possible for token "+M(s.token),n)),s)t.multi||(s.providers.length=0),s.providers.push(t);else{var a=t.token.identifier&&t.token.identifier.lifecycleHooks?t.token.identifier.lifecycleHooks:[],u=!(t.useClass||t.useExisting||t.useFactory);s=new lo(t.token,!!t.multi,r||u,[t],e,a,n),i.set(R(t.token),s)}})}function Se(t){var e=1,r=new Map;return t.viewQueries&&t.viewQueries.forEach(function(t){return Te(r,{meta:t,queryId:e++})}),r}function xe(t,e){var r=t,n=new Map;return e.forEach(function(t){t.queries&&t.queries.forEach(function(t){return Te(n,{meta:t,queryId:r++})})}),n}function Te(t,e){e.meta.selectors.forEach(function(r){var n=t.get(R(r));n||(n=[],t.set(R(r),n)),n.push(e)})}function Pe(t){if(null==t||0===t.length||"/"==t[0])return!1;var e=t.match(nc);return null===e||"package"==e[1]||"asset"==e[1]}function Ae(t,e,r){var n=[],o=r.replace(rc,"").replace(ec,function(){for(var r=[],o=0;o<arguments.length;o++)r[o]=arguments[o];var i=r[1]||r[2];return Pe(i)?(n.push(t.resolve(e,i)),""):r[0]});return new tc(o,n)}function Oe(t){return"@"==t[0]}function Me(t,r,n,o){var i=[];return Eo.parse(r).forEach(function(e){var r=e.element?[e.element]:t.allKnownElementNames(),s=new Set(e.notSelectors.filter(function(t){return t.isElementSelector()}).map(function(t){return t.element})),a=r.filter(function(t){return!s.has(t)});i.push.apply(i,a.map(function(e){return t.securityContext(e,n,o)}))}),0===i.length?[e.SecurityContext.NONE]:Array.from(new Set(i)).sort()}function Re(t){var e=null,r=null,n=null,o=!1,s=null;t.attrs.forEach(function(t){var i=t.name.toLowerCase();i==fc?e=t.value:i==yc?r=t.value:i==mc?n=t.value:t.name==bc?o=!0:t.name==wc&&t.value.length>0&&(s=t.value)}),e=ke(e);var a=t.name.toLowerCase(),u=Cc.OTHER;return i(a)?u=Cc.NG_CONTENT:a==gc?u=Cc.STYLE:a==_c?u=Cc.SCRIPT:a==dc&&n==vc&&(u=Cc.STYLESHEET),new Ec(u,e,r,o,s)}function ke(t){return null===t||0===t.length?"*":t}function Ie(t){return function(e){return-1!==t.indexOf(e.msg)?(Hc[e.msg]=(Hc[e.msg]||0)+1,Hc[e.msg]<=1):!0}}function Ne(t){return t.trim().split(/\s+/g)}function De(t,e){var r=new Eo,o=n(t)[1];r.setElement(o);for(var i=0;i<e.length;i++){var s=e[i][0],a=n(s)[1],u=e[i][1];if(r.addAttribute(a,u),s.toLowerCase()==Vc){var c=Ne(u);c.forEach(function(t){return r.addClassName(t)})}}return r}function je(t){return t instanceof Ks&&0==t.value.trim().length}function Le(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 Ve(t){return t instanceof Si&&(t=t.ast),t instanceof ii}function Fe(t,e,r){if(s(t.name))return!0;var o=n(t.name)[1];return o.toLowerCase()===Dc&&e&&o.toLowerCase()===Dc?(r(Uc,t.sourceSpan),!0):!1}function Ue(){return new el}function Be(){return new el(".")}function He(t){var e=ze(t);return e&&e[nl.Scheme]||""}function qe(t,e,r,n,o,i,s){var a=[];return null!=t&&a.push(t+":"),null!=r&&(a.push("//"),null!=e&&a.push(e+"@"),a.push(r),null!=n&&a.push(":"+n)),null!=o&&a.push(o),null!=i&&a.push("?"+i),null!=s&&a.push("#"+s),a.join("")}function ze(t){return t.match(rl)}function Ge(t){if("/"==t)return"/";for(var e="/"==t[0]?"/":"",r="/"===t[t.length-1]?"/":"",n=t.split("/"),o=[],i=0,s=0;s<n.length;s++){var a=n[s];switch(a){case"":case".":break;case"..":o.length>0?o.pop():i++;break;default:o.push(a)}}if(""==e){for(;i-->0;)o.unshift("..");0===o.length&&o.push(".")}return e+o.join("/")+r}function We(t){var e=t[nl.Path];return e=null==e?"":Ge(e),t[nl.Path]=e,qe(t[nl.Scheme],t[nl.UserInfo],t[nl.Domain],t[nl.Port],e,t[nl.QueryData],t[nl.Fragment])}function $e(t,e){var r=ze(encodeURI(e)),n=ze(t);if(null!=r[nl.Scheme])return We(r);r[nl.Scheme]=n[nl.Scheme];for(var o=nl.Scheme;o<=nl.Port;o++)null==r[o]&&(r[o]=n[o]);if("/"==r[nl.Path][0])return We(r);var i=n[nl.Path];null==i&&(i="/");var s=i.lastIndexOf("/");return i=i.substring(0,s+1)+r[nl.Path],r[nl.Path]=i,We(r)}function Ke(t){return t instanceof e.Directive}function Qe(t,e){for(var r=t.length-1;r>=0;r--)if(e(t[r]))return t[r];return null}function Xe(t){var e=Je(t);return e[0]+".ngfactory"+e[1]}function Ze(t){return t.replace(cl,".")}function Ye(t){return cl.test(t)}function Je(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 tr(t){var e=t.replace(ul,"");return e+".ngsummary.json"}function er(t,r){return e.ɵreflector.hasLifecycleHook(r,rr(t))}function rr(t){switch(t){case e.ɵLifecycleHooks.OnInit:return"ngOnInit";case e.ɵLifecycleHooks.OnDestroy:return"ngOnDestroy";case e.ɵLifecycleHooks.DoCheck:return"ngDoCheck";case e.ɵLifecycleHooks.OnChanges:return"ngOnChanges";case e.ɵLifecycleHooks.AfterContentInit:return"ngAfterContentInit";case e.ɵLifecycleHooks.AfterContentChecked:return"ngAfterContentChecked";case e.ɵLifecycleHooks.AfterViewInit:return"ngAfterViewInit";case e.ɵLifecycleHooks.AfterViewChecked:return"ngAfterViewChecked"}}function nr(t){return t instanceof e.NgModule}function or(t){return t instanceof e.Pipe}function ir(t,r){if(void 0===r&&(r=[]),t)for(var n=0;n<t.length;n++){var o=e.resolveForwardRef(t[n]);Array.isArray(o)?ir(o,r):r.push(o)}return r}function sr(t){return t?Array.from(new Set(t)):[]}function ar(t){return sr(ir(t))}function ur(t){return t instanceof mo||t instanceof e.Type}function cr(t,e,r){if(e instanceof mo)return t.resourceUri(e);var n=r.moduleId;if("string"==typeof n){var o=He(n);return o?n:"package:"+n+Po}if(null!==n&&void 0!==n)throw v('moduleId should be a string in "'+pr(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 lr(t,e){d(t,new ml,e)}function pr(t){return t instanceof mo?t.name+" in "+t.filePath:e.ɵstringify(t)}function hr(t){var r=Error("Can't compile synchronously as "+e.ɵstringify(t)+" is still being loaded!");return r[e.ɵERROR_COMPONENT_TYPE]=t,r}function fr(t){var e=new vp;return e.visitAllStatements(t,null),e.varNames}function dr(t,e){if(!e)return t;var r=new gp(e);return t.visitStatement(r,null)}function mr(t,e){if(!e)return t;var r=new gp(e);return t.visitExpression(r,null)}function yr(t,e,r){return new Ol(t,e,r)}function vr(t,e,r){return void 0===e&&(e=null),new Vl(t,null,e,r)}function gr(t,e,r){return void 0===e&&(e=null),void 0===r&&(r=null),null!=t?_r(vr(t,e,null),r):null}function _r(t,e){return void 0===e&&(e=null),null!=t?new bl(t,e):null}function br(t,e,r){return new $l(t,e,r)}function wr(t,e,r){return void 0===e&&(e=null),void 0===r&&(r=!1),new Ql(t.map(function(t){return new Kl(t[0],t[1],r)}),e,null)}function Cr(t,e){return new Ul(t,e)}function Er(t,e,r,n){return new ql(t,e,r,n)}function Sr(t,e,r){return new Ll(t,e,r)}function xr(t){var e=t.parentArgs||[],r=t.parent?[Yl.callFn(e).toStmt()]:[],n=Tr(Array.isArray(t.builders)?t.builders:[t.builders]),o=new cp(null,t.ctorParams||[],r.concat(n.ctorStmts));return new pp(t.name,t.parent||null,n.fields,n.getters,o,n.methods,t.modifiers||[],t.sourceSpan)}function Tr(t){return{fields:[].concat.apply([],t.map(function(t){return t.fields||[]})),methods:[].concat.apply([],t.map(function(t){return t.methods||[]})),getters:[].concat.apply([],t.map(function(t){return t.getters||[]})),ctorStmts:[].concat.apply([],t.map(function(t){return t.ctorStmts||[]}))}}function Pr(t,e){return void 0===e&&(e=null),d(t,new bp,e)}function Ar(t){return null!=t.value?Sr(t.value):vr(t.identifier)}function Or(t){var e="";t=w(t);for(var r=0;r<t.length;){var n=t.charCodeAt(r++),o=t.charCodeAt(r++),i=t.charCodeAt(r++);e+=Rr(n>>2),e+=Rr((3&n)<<4|(isNaN(o)?0:o>>4)),e+=isNaN(o)?"=":Rr((15&o)<<2|i>>6),e+=isNaN(o)||isNaN(i)?"=":Rr(63&i)}return e}function Mr(t){t=0>t?(-t<<1)+1:t<<1;var e="";do{var r=31&t;t>>=5,t>0&&(r=32|r),e+=Rr(r)}while(t>0);return e}function Rr(t){if(0>t||t>=64)throw new Error("Can only encode value in the range [0, 63]");return Mp[t]}function kr(t,e,r){if(void 0===r&&(r=!0),null==t)return null;var n=t.replace(Rp,function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return"$"==t[0]?e?"\\$":"$":"\n"==t[0]?"\\n":"\r"==t[0]?"\\r":"\\"+t[0]}),o=r||!kp.test(n);return o?"'"+n+"'":n}function Ir(t){for(var e="",r=0;t>r;r++)e+=Ip;return e}function Nr(t){var e=new Bp(Fp,{fileNameToModuleName:function(t){return t},getImportAs:function(){return null},getTypeArity:function(){return null}}),r=Lp.createRoot([]),n=Array.isArray(t)?t:[t];return n.forEach(function(t){if(t instanceof rp)t.visitStatement(e,r);else if(t instanceof Pl)t.visitExpression(e,r);else{if(!(t instanceof vl))throw new Error("Don't know how to print debug info for "+t);t.visitType(e,r)}}),r.toSource()}function Dr(t,e){for(var r=0,n=e;r<n.length;r++){var o=n[r];Hp[o.toLowerCase()]=t}}function jr(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 Lr(t){return t.replace(dh,"")}function Vr(t){var e=t.match(mh);return e?e[0]:""}function Fr(t,e){var r=Ur(t),n=0;return r.escapedString.replace(yh,function(){for(var t=[],o=0;o<arguments.length;o++)t[o]=arguments[o];var i=t[2],s="",a=t[4],u="";a&&a.startsWith("{"+bh)&&(s=r.blocks[n++],a=a.substring(bh.length+1),u="{");var c=e(new wh(i,s));return""+t[1]+c.selector+t[3]+u+c.content+a})}function Ur(t){for(var e=t.split(vh),r=[],n=[],o=0,i=[],s=0;s<e.length;s++){var a=e[s];a==_h&&o--,o>0?i.push(a):(i.length>0&&(n.push(i.join("")),r.push(bh),i=[]),r.push(a)),a==gh&&o++}return i.length>0&&(n.push(i.join("")),r.push(bh)),new Ch(r.join(""),n)}function Br(t){var e="styles";return t&&(e+="_"+E(t.type)),e}function Hr(t,e,r,n){t||(t=new jh);var o=qr({createLiteralArrayConverter:function(){return function(t){return br(t)}},createLiteralMapConverter:function(t){return function(e){return wr(t.map(function(t,r){return[t,e[r]]}))}},createPipeConverter:function(t){throw new Error("Illegal State: Actions are not allowed to contain pipes. Pipe: "+t)}},r),i=new Dh(t,e,n),s=[];Yr(o.visit(i,Ih.Statement),s),Kr(i.temporaryCount,n,s);var a=s.length-1,u=null;if(a>=0){var c=s[a],l=en(c);l&&(u=tn(n),s[a]=u.set(l.cast(El).notIdentical(Sr(!1))).toDeclStmt(null,[ep.Final]))}return new Rh(s,u)}function qr(t,e){return Gr(t,e)}function zr(t,e,r,n){t||(t=new jh);var o=Jr(n),i=[],s=new Dh(t,e,n),a=r.visit(s,Ih.Expression);if(s.temporaryCount)for(var u=0;u<s.temporaryCount;u++)i.push($r(n,u));return i.push(o.set(a).toDeclStmt(null,[ep.Final])),new kh(i,o)}function Gr(t,e){var r=new Nh(t);return e.visit(r)}function Wr(t,e){return"tmp_"+t+"_"+e}function $r(t,e){return new np(Wr(t,e),Jl)}function Kr(t,e,r){for(var n=t-1;n>=0;n--)r.unshift($r(e,n))}function Qr(t,e){if(t!==Ih.Statement)throw new Error("Expected a statement, but saw "+e)}function Xr(t,e){if(t!==Ih.Expression)throw new Error("Expected an expression, but saw "+e)}function Zr(t,e){return t===Ih.Statement?e.toStmt():e}function Yr(t,e){Array.isArray(t)?t.forEach(function(t){return Yr(t,e)}):e.push(t)}function Jr(t){return yr("currVal_"+t)}function tn(t){return yr("pd_"+t)}function en(t){return t instanceof ip?t.expr:t instanceof sp?t.value:null}function rn(t){return t.multiProvider?nn(t.providers):on(t.providerType,t.providers[0])}function nn(t){function e(t,e){return e.map(function(e,o){var i="p"+t+"_"+o;return n.push(new Hl(i,El)),r.push(an(e)),yr(i)})}var r=[],n=[],o=t.map(function(t,r){var n;if(t.useClass){var o=e(r,t.deps||t.useClass.diDeps);n=vr(t.useClass).instantiate(o)}else if(t.useFactory){var o=e(r,t.deps||t.useFactory.diDeps);n=vr(t.useFactory).callFn(o)}else if(t.useExisting){var o=e(r,[{token:t.useExisting}]);n=o[0]}else n=Pr(t.useValue);return n}),i=Er(n,[new sp(br(o))],Sl);return{providerExpr:i,flags:512,depsExpr:br(r)}}function on(t,e){var r,n,o;t===po.Directive||t===po.Component?(r=vr(e.useClass),n=8192,o=e.deps||e.useClass.diDeps):e.useClass?(r=vr(e.useClass),n=256,o=e.deps||e.useClass.diDeps):e.useFactory?(r=vr(e.useFactory),n=512,o=e.deps||e.useFactory.diDeps):e.useExisting?(r=Jl,n=1024,o=[{token:e.useExisting}]):(r=Pr(e.useValue),n=128,o=[]);var i=br(o.map(function(t){return an(t)}));return{providerExpr:r,flags:n,depsExpr:i}}function sn(t){return t.identifier?vr(t.identifier):Sr(t.value)}function an(t){var e=t.isValue?Pr(t.value):sn(t.token),r=0;return t.isSkipSelf&&(r|=1),t.isOptional&&(r|=2),t.isValue&&(r|=8),0===r?e:br([Sr(r),e])}function un(t){var e=t[t.length-1];return e instanceof ao?e.hasViewContainer:e instanceof so?o(e.name)&&e.children.length?un(e.children):e.hasViewContainer:e instanceof ho}function cn(t){var r=0;switch(t){case e.ɵLifecycleHooks.AfterContentChecked:r=1048576;break;case e.ɵLifecycleHooks.AfterContentInit:r=524288;break;case e.ɵLifecycleHooks.AfterViewChecked:r=4194304;break;case e.ɵLifecycleHooks.AfterViewInit:r=2097152;break;case e.ɵLifecycleHooks.DoCheck:r=131072;break;case e.ɵLifecycleHooks.OnChanges:r=262144;break;case e.ɵLifecycleHooks.OnDestroy:r=65536;break;case e.ɵLifecycleHooks.OnInit:r=32768}return r}function ln(t,e){switch(t.type){case fo.Attribute:return br([Sr(1),Sr(t.name),Sr(t.securityContext)]);case fo.Property:return br([Sr(8),Sr(t.name),Sr(t.securityContext)]);case fo.Animation:var r=8|(e&&e.directive.isComponent?32:16);return br([Sr(r),Sr("@"+t.name),Sr(t.securityContext)]);case fo.Class:return br([Sr(2),Sr(t.name),Jl]);case fo.Style:return br([Sr(4),Sr(t.name),Sr(t.unit)])}}function pn(t){var e=Object.create(null);return t.attrs.forEach(function(t){e[t.name]=t.value}),t.directives.forEach(function(t){Object.keys(t.directive.hostAttributes).forEach(function(r){var n=t.directive.hostAttributes[r],o=e[r];e[r]=null!=o?hn(r,o,n):n})}),br(Object.keys(e).sort().map(function(t){return br([Sr(t),Sr(e[t])])}))}function hn(t,e,r){return t==Vh||t==Fh?e+" "+r:r}function fn(t,e){return Gh.callFn(e.length>10?[zh,Sr(t),Sr(1),br(e)]:[zh,Sr(t),Sr(0)].concat(e))}function dn(t,e,r){return vr(de(zu.unwrapValue)).callFn([zh,Sr(t),Sr(e),r])}function mn(t,e){return void 0===e&&(e=new Map),t.forEach(function(t){var r=new Set,n=new Set,o=void 0;t instanceof so?(mn(t.children,e),t.children.forEach(function(t){var o=e.get(t);o.staticQueryIds.forEach(function(t){return r.add(t)}),o.dynamicQueryIds.forEach(function(t){return n.add(t)})}),o=t.queryMatches):t instanceof ao&&(mn(t.children,e),t.children.forEach(function(t){var r=e.get(t);r.staticQueryIds.forEach(function(t){return n.add(t)}),r.dynamicQueryIds.forEach(function(t){return n.add(t)})}),o=t.queryMatches),o&&o.forEach(function(t){return r.add(t.queryId)}),n.forEach(function(t){return r["delete"](t)}),e.set(t,{staticQueryIds:r,dynamicQueryIds:n})}),e}function yn(t){var e=new Set,r=new Set;return Array.from(t.values()).forEach(function(t){t.staticQueryIds.forEach(function(t){return e.add(t)}),t.dynamicQueryIds.forEach(function(t){return r.add(t)})}),r.forEach(function(t){return e["delete"](t)}),{staticQueryIds:e,dynamicQueryIds:r}}function vn(t){var e=t.find(function(t){return t.directive.isComponent});if(e&&e.directive.entryComponents.length){var r=e.directive.entryComponents.map(function(t){return vr({reference:t.componentFactory})}),n=ye(zu.ComponentFactoryResolver),o={diDeps:[{isValue:!0,value:br(r)},{token:n,isSkipSelf:!0,isOptional:!0},{token:ye(zu.NgModuleRef)}],lifecycleHooks:[],reference:fe(zu.CodegenComponentFactoryResolver)};return new lo(n,!1,!0,[{token:n,multi:!1,useClass:o}],po.PrivateService,[],e.sourceSpan)}return null}function gn(t,e){return t.isAnimation?{name:"@"+t.name+"."+t.phase,target:e&&e.directive.isComponent?"component":null}:t}function _n(t,e,r){var n=0;return n|=!r||!t.staticQueryIds.has(e)&&t.dynamicQueryIds.has(e)?268435456:134217728}function bn(t,e,r,n){var o=new Zh(e,t);r.forEach(function(t){return o.addOrMergeSummary({symbol:t.symbol,metadata:t.metadata})});for(var i=0;i<o.symbols.length;i++){var s=o.symbols[i];if(t.isLibraryFile(s.filePath)){var a=t.resolveSummary(s);if(!a){var u=e.resolveSymbol(s);u&&(a={symbol:u.symbol,metadata:u.metadata})}a&&o.addOrMergeSummary(a)}}return n.forEach(function(e){if(o.addOrMergeSummary({symbol:e.type.reference,metadata:null,type:e}),e.summaryKind===Wo.NgModule){var r=e;r.exportedDirectives.concat(r.exportedPipes).forEach(function(e){var r=e.reference;if(t.isLibraryFile(r.filePath)){var n=t.resolveSummary(r);n&&o.addOrMergeSummary(n)}})}}),o.serialize()}function wn(t,e){var r=new Yh(t);return r.deserialize(e)}function Cn(t,e,r){return e.dependencies.forEach(function(e){e.valuePlaceholder.reference=t.getStaticSymbol(En(e.moduleUrl,e.isShimmed,r),e.name)}),e.statements}function En(t,e,r){return""+t+(e?".shim":"")+".ngstyle"+r}function Sn(t){if(!t.isComponent)throw new Error("Could not compile '"+E(t.type)+"' because it is not a component.")}function xn(t,e,r){var n=On(t,e,r),o=n.ngModules,i=n.symbolsMissingModule;return Pn(t,o,i,r)}function Tn(t,e,r){var n=xn(t,e,r);if(n.symbolsMissingModule&&n.symbolsMissingModule.length){var o=n.symbolsMissingModule.map(function(t){return"Cannot determine the module for class "+t.name+" in "+t.filePath+"! Add "+t.name+" to the NgModule to fix it."});throw v(o.join("\n"))}return n}function Pn(t,e,r,n){var o=new Map;e.forEach(function(t){return o.set(t.type.reference,t)});var i=new Map,s=new Map,a=new Map,u=new Map,c=new Map,l=new Set;t.forEach(function(t){var e=t.filePath;l.add(e),n.isInjectable(t)&&c.set(e,(c.get(e)||[]).concat(t))}),e.forEach(function(t){var e=t.type.reference.filePath;l.add(e),s.set(e,(s.get(e)||[]).concat(t.type.reference)),t.declaredDirectives.forEach(function(e){var r=e.reference.filePath;l.add(r),a.set(r,(a.get(r)||[]).concat(e.reference)), -i.set(e.reference,t)}),t.declaredPipes.forEach(function(e){var r=e.reference.filePath;l.add(r),u.set(r,(u.get(r)||[]).concat(e.reference)),i.set(e.reference,t)})});var p=[];return l.forEach(function(t){var e=a.get(t)||[],r=u.get(t)||[],n=s.get(t)||[],o=c.get(t)||[];p.push({srcUrl:t,directives:e,pipes:r,ngModules:n,injectables:o})}),{ngModuleByPipeOrDirective:i,files:p,ngModules:e,symbolsMissingModule:r}}function An(t,e,r){var n=[];return e.filter(function(t){return r.isSourceFile(t)}).forEach(function(e){t.getSymbolsOf(e).forEach(function(e){var r=t.resolveSymbol(e),o=r.metadata;o&&"error"!=o.__symbolic&&n.push(r.symbol)})}),n}function On(t,e,r){var n=new Map,o=[],i=new Set,s=function(t){if(n.has(t)||!e.isSourceFile(t.filePath))return!1;var o=r.getNgModuleMetadata(t,!1);return o&&(n.set(o.type.reference,o),o.declaredDirectives.forEach(function(t){return i.add(t.reference)}),o.declaredPipes.forEach(function(t){return i.add(t.reference)}),o.transitiveModule.modules.forEach(function(t){return s(t.reference)})),!!o};t.forEach(function(t){s(t)||!r.isDirective(t)&&!r.isPipe(t)||o.push(t)});var a=o.filter(function(t){return!i.has(t)});return{ngModules:Array.from(n.values()),symbolsMissingModule:a}}function Mn(t){return"object"==typeof t&&t.name&&t.filePath}function Rn(t){return t&&"ignore"==t.__symbolic}function kn(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 In(t){return"Error encountered resolving symbol values statically. "+kn(t)}function Nn(t,e){if(!t)return{};var r={};return Object.keys(t).forEach(function(n){var o=e(t[n],n);Rn(o)||(rf.test(n)?Object.defineProperty(r,n,{enumerable:!1,configurable:!0,value:o}):r[n]=o)}),r}function Dn(t){return null===t||"function"!=typeof t&&"object"!=typeof t}function jn(t,e,r,n){var o=new Error(t);return o.fileName=e,o.line=r,o.column=n,o}function Ln(t){return t.startsWith("___")?t.substr(1):t}function Vn(t,r){var n=r.translations||"",o=Be(),i=new yo,s=new pf(t,i),a=new lf(t,i,s),u=new of(s,a);tf.install(u);var c=new e.ɵConsole,l=new Hu(new Fu,n,r.i18nFormat,e.MissingTranslationStrategy.Warning,c),p=new ti({defaultEncapsulation:e.ViewEncapsulation.Emulated,useJit:!1,enableLegacyTemplate:r.enableLegacyTemplate!==!1}),h=new ol({get:function(e){return t.loadResource(e)}},o,l,p),f=new Us(new Ns),d=new Qp,m=new Wc(p,f,d,l,c,[]),y=new dl(p,new ll(u),new al(u),new pl(u),s,d,h,c,i,u),v={getImportAs:function(t){return a.getImportAs(t)},fileNameToModuleName:function(e,r){return t.fileNameToModuleName(e,r)},getTypeArity:function(t){return a.getTypeArity(t)}},g=new Hh(p,d),_=new Jh(p,t,y,m,new Oh(o),g,new Ep,new Up(v),s,r.locale||null,r.i18nFormat||null,r.genFilePreamble||null,a);return{compiler:_,reflector:u}}function Fn(t,e){var r=t.concat([new sp(br(e.map(function(t){return yr(t)})))]),n=new hf(null,null,null,new Map),o=new df,i=o.visitAllStatements(r,n);return null!=i?i.value:null}function Un(t,e,r,n,o){for(var i=n.createChildWihtLocalVars(),s=0;s<t.length;s++)i.vars.set(t[s],e[s]);var a=o.visitAllStatements(r,i);return a?a.value:null}function Bn(t,e,r){var n={};t.getters.forEach(function(o){n[o.name]={configurable:!1,get:function(){var n=new hf(e,this,t.name,e.vars);return Un([],[],o.body,n,r)}}}),t.methods.forEach(function(o){var i=o.params.map(function(t){return t.name});n[o.name]={writable:!1,configurable:!1,value:function(){for(var n=[],s=0;s<arguments.length;s++)n[s]=arguments[s];var a=new hf(e,this,t.name,e.vars);return Un(i,n,o.body,a,r)}}});var o=t.constructorMethod.params.map(function(t){return t.name}),i=function(){for(var n=this,i=[],s=0;s<arguments.length;s++)i[s]=arguments[s];var a=new hf(e,this,t.name,e.vars);t.fields.forEach(function(t){n[t.name]=void 0}),Un(o,i,t.constructorMethod.body,a,r)},s=t.parent?t.parent.visitExpression(r,e):Object;return i.prototype=Object.create(s.prototype,n),i}function Hn(t,e,r,n){return function(){for(var o=[],i=0;i<arguments.length;i++)o[i]=arguments[i];return Un(t,o,e,r,n)}}function qn(t,r,n){var o=r.toSource()+"\n//# sourceURL="+t,i=[],s=[];for(var a in n)i.push(a),s.push(n[a]);if(e.isDevMode()){var u=(new(Function.bind.apply(Function,[void 0].concat(i.concat("return null;"))))).toString(),c=u.slice(0,u.indexOf("return null;")).split("\n").length-1;o+="\n"+r.toSourceMapGenerator(t,t,c).toJsComment()}return(new(Function.bind.apply(Function,[void 0].concat(i.concat(o))))).apply(void 0,s)}function zn(t,e,r){var n=new gf,o=Lp.createRoot(r),i=new sp(br(r.map(function(t){return yr(t)})));return n.visitAllStatements(e.concat([i]),o),qn(t,o,n.getArgs())}function Gn(t){if(!t.isComponent)throw new Error("Could not compile '"+E(t.type)+"' because it is not a component.")}function Wn(t,e,r,n,o){return new Hu(t,e,r,n.missingTranslation,o)}function $n(){e.ɵreflector.reflectionCapabilities=new e.ɵReflectionCapabilities}function Kn(t){return{useJit:Qn(t.map(function(t){return t.useJit})),defaultEncapsulation:Qn(t.map(function(t){return t.defaultEncapsulation})),providers:Xn(t.map(function(t){return t.providers})),missingTranslation:Qn(t.map(function(t){return t.missingTranslation}))}}function Qn(t){for(var e=t.length-1;e>=0;e--)if(void 0!==t[e])return t[e];return void 0}function Xn(t){var e=[];return t.forEach(function(t){return t&&e.push.apply(e,t)}),e}var Zn=void 0||function(t,e){function r(){this.constructor=t}for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)},Yn=new e.Version("4.1.0"),Jn=function(){function t(t,e,r){this.value=t,this.ngContentIndex=e,this.sourceSpan=r}return t.prototype.visit=function(t,e){return t.visitText(this,e)},t}(),to=function(){function t(t,e,r){this.value=t,this.ngContentIndex=e,this.sourceSpan=r}return t.prototype.visit=function(t,e){return t.visitBoundText(this,e)},t}(),eo=function(){function t(t,e,r){this.name=t,this.value=e,this.sourceSpan=r}return t.prototype.visit=function(t,e){return t.visitAttr(this,e)},t}(),ro=function(){function t(t,e,r,n,o,i){this.name=t,this.type=e,this.securityContext=r,this.value=n,this.unit=o,this.sourceSpan=i}return t.prototype.visit=function(t,e){return t.visitElementProperty(this,e)},Object.defineProperty(t.prototype,"isAnimation",{get:function(){return this.type===fo.Animation},enumerable:!0,configurable:!0}),t}(),no=function(){function t(t,e,r,n,o){this.name=t,this.target=e,this.phase=r,this.handler=n,this.sourceSpan=o}return t.calcFullName=function(t,e,r){return e?e+":"+t:r?"@"+t+"."+r: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}(),oo=function(){function t(t,e,r){this.name=t,this.value=e,this.sourceSpan=r}return t.prototype.visit=function(t,e){return t.visitReference(this,e)},t}(),io=function(){function t(t,e,r){this.name=t,this.value=e,this.sourceSpan=r}return t.prototype.visit=function(t,e){return t.visitVariable(this,e)},t}(),so=function(){function t(t,e,r,n,o,i,s,a,u,c,l,p,h){this.name=t,this.attrs=e,this.inputs=r,this.outputs=n,this.references=o,this.directives=i,this.providers=s,this.hasViewContainer=a,this.queryMatches=u,this.children=c,this.ngContentIndex=l,this.sourceSpan=p,this.endSourceSpan=h}return t.prototype.visit=function(t,e){return t.visitElement(this,e)},t}(),ao=function(){function t(t,e,r,n,o,i,s,a,u,c,l){this.attrs=t,this.outputs=e,this.references=r,this.variables=n,this.directives=o,this.providers=i,this.hasViewContainer=s,this.queryMatches=a,this.children=u,this.ngContentIndex=c,this.sourceSpan=l}return t.prototype.visit=function(t,e){return t.visitEmbeddedTemplate(this,e)},t}(),uo=function(){function t(t,e,r,n){this.directiveName=t,this.templateName=e,this.value=r,this.sourceSpan=n}return t.prototype.visit=function(t,e){return t.visitDirectiveProperty(this,e)},t}(),co=function(){function t(t,e,r,n,o,i){this.directive=t,this.inputs=e,this.hostProperties=r,this.hostEvents=n,this.contentQueryStartId=o,this.sourceSpan=i}return t.prototype.visit=function(t,e){return t.visitDirective(this,e)},t}(),lo=function(){function t(t,e,r,n,o,i,s){this.token=t,this.multiProvider=e,this.eager=r,this.providers=n,this.providerType=o,this.lifecycleHooks=i,this.sourceSpan=s}return t.prototype.visit=function(){return null},t}(),po={};po.PublicService=0,po.PrivateService=1,po.Component=2,po.Directive=3,po.Builtin=4,po[po.PublicService]="PublicService",po[po.PrivateService]="PrivateService",po[po.Component]="Component",po[po.Directive]="Directive",po[po.Builtin]="Builtin";var ho=function(){function t(t,e,r){this.index=t,this.ngContentIndex=e,this.sourceSpan=r}return t.prototype.visit=function(t,e){return t.visitNgContent(this,e)},t}(),fo={};fo.Property=0,fo.Attribute=1,fo.Class=2,fo.Style=3,fo.Animation=4,fo[fo.Property]="Property",fo[fo.Attribute]="Attribute",fo[fo.Class]="Class",fo[fo.Style]="Style",fo[fo.Animation]="Animation";var mo=function(){function t(t,e,r){this.filePath=t,this.name=e,this.members=r}return t.prototype.assertNoMembers=function(){if(this.members.length)throw new Error("Illegal state: symbol without members expected, but got "+JSON.stringify(this)+".")},t}(),yo=function(){function t(){this.cache=new Map}return t.prototype.get=function(t,e,r){r=r||[];var n=r.length?"."+r.join("."):"",o='"'+t+'".'+e+n,i=this.cache.get(o);return i||(i=new mo(t,e,r),this.cache.set(o,i)),i},t}(),vo={};vo.RAW_TEXT=0,vo.ESCAPABLE_RAW_TEXT=1,vo.PARSABLE_DATA=2,vo[vo.RAW_TEXT]="RAW_TEXT",vo[vo.ESCAPABLE_RAW_TEXT]="ESCAPABLE_RAW_TEXT",vo[vo.PARSABLE_DATA]="PARSABLE_DATA";var go={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:"‌"},_o=function(){function t(t){var e=void 0===t?{}:t,r=e.closedByChildren,n=e.requiredParents,o=e.implicitNamespacePrefix,i=e.contentType,s=void 0===i?vo.PARSABLE_DATA:i,a=e.closedByParent,u=void 0===a?!1:a,c=e.isVoid,l=void 0===c?!1:c,p=e.ignoreFirstLf,h=void 0===p?!1:p,f=this;this.closedByChildren={},this.closedByParent=!1,this.canSelfClose=!1,r&&r.length>0&&r.forEach(function(t){return f.closedByChildren[t]=!0}),this.isVoid=l,this.closedByParent=u||l,n&&n.length>0&&(this.requiredParents={},this.parentToAdd=n[0],n.forEach(function(t){return f.requiredParents[t]=!0})),this.implicitNamespacePrefix=o||null,this.contentType=s,this.ignoreFirstLf=h}return t.prototype.requireExtraParent=function(t){if(!this.requiredParents)return!1;if(!t)return!0;var e=t.toLowerCase(),r="template"===e||"ng-template"===t;return!r&&1!=this.requiredParents[e]},t.prototype.isClosedByChild=function(t){return this.isVoid||t.toLowerCase()in this.closedByChildren},t}(),bo={base:new _o({isVoid:!0}),meta:new _o({isVoid:!0}),area:new _o({isVoid:!0}),embed:new _o({isVoid:!0}),link:new _o({isVoid:!0}),img:new _o({isVoid:!0}),input:new _o({isVoid:!0}),param:new _o({isVoid:!0}),hr:new _o({isVoid:!0}),br:new _o({isVoid:!0}),source:new _o({isVoid:!0}),track:new _o({isVoid:!0}),wbr:new _o({isVoid:!0}),p:new _o({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 _o({closedByChildren:["tbody","tfoot"]}),tbody:new _o({closedByChildren:["tbody","tfoot"],closedByParent:!0}),tfoot:new _o({closedByChildren:["tbody"],closedByParent:!0}),tr:new _o({closedByChildren:["tr"],requiredParents:["tbody","tfoot","thead"],closedByParent:!0}),td:new _o({closedByChildren:["td","th"],closedByParent:!0}),th:new _o({closedByChildren:["td","th"],closedByParent:!0}),col:new _o({requiredParents:["colgroup"],isVoid:!0}),svg:new _o({implicitNamespacePrefix:"svg"}),math:new _o({implicitNamespacePrefix:"math"}),li:new _o({closedByChildren:["li"],closedByParent:!0}),dt:new _o({closedByChildren:["dt","dd"]}),dd:new _o({closedByChildren:["dt","dd"],closedByParent:!0}),rb:new _o({closedByChildren:["rb","rt","rtc","rp"],closedByParent:!0}),rt:new _o({closedByChildren:["rb","rt","rtc","rp"],closedByParent:!0}),rtc:new _o({closedByChildren:["rb","rtc","rp"],closedByParent:!0}),rp:new _o({closedByChildren:["rb","rt","rtc","rp"],closedByParent:!0}),optgroup:new _o({closedByChildren:["optgroup"],closedByParent:!0}),option:new _o({closedByChildren:["option","optgroup"],closedByParent:!0}),pre:new _o({ignoreFirstLf:!0}),listing:new _o({ignoreFirstLf:!0}),style:new _o({contentType:vo.RAW_TEXT}),script:new _o({contentType:vo.RAW_TEXT}),title:new _o({contentType:vo.ESCAPABLE_RAW_TEXT}),textarea:new _o({contentType:vo.ESCAPABLE_RAW_TEXT,ignoreFirstLf:!0})},wo=new _o,Co=new RegExp("(\\:not\\()|([-\\w]+)|(?:\\.([-\\w]+))|(?:\\[([-.\\w*]+)(?:=([\"']?)([^\\]\"']*)\\5)?\\])|(\\))|(\\s*,\\s*)","g"),Eo=function(){function t(){this.element=null,this.classNames=[],this.attrs=[],this.notSelectors=[]}return t.parse=function(e){var r,n=[],o=function(t,e){e.notSelectors.length>0&&!e.element&&0==e.classNames.length&&0==e.attrs.length&&(e.element="*"),t.push(e)},i=new t,s=i,a=!1;for(Co.lastIndex=0;r=Co.exec(e);){if(r[1]){if(a)throw new Error("Nesting :not is not allowed in a selector");a=!0,s=new t,i.notSelectors.push(s)}if(r[2]&&s.setElement(r[2]),r[3]&&s.addClassName(r[3]),r[4]&&s.addAttribute(r[4],r[6]),r[7]&&(a=!1,s=i),r[8]){if(a)throw new Error("Multiple selectors in :not are not supported");o(n,i),i=s=new t}}return o(n,i),n},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(" ")+'"':"",r="",n=0;n<this.attrs.length;n+=2){var o=this.attrs[n],i=""!==this.attrs[n+1]?'="'+this.attrs[n+1]+'"':"";r+=" "+o+i}return c(t).isVoid?"<"+t+e+r+"/>":"<"+t+e+r+"></"+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 r=this.attrs[e],n=this.attrs[e+1];t+="["+r+(n?"="+n:"")+"]"}return this.notSelectors.forEach(function(e){return t+=":not("+e+")"}),t},t}(),So=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 r=new t;return r.addSelectables(e,null),r},t.prototype.addSelectables=function(t,e){var r=null;t.length>1&&(r=new xo(t),this._listContexts.push(r));for(var n=0;n<t.length;n++)this._addSelectable(t[n],e,r)},t.prototype._addSelectable=function(t,e,r){var n=this,o=t.element,i=t.classNames,s=t.attrs,a=new To(t,e,r);if(o){var u=0===s.length&&0===i.length;u?this._addTerminal(n._elementMap,o,a):n=this._addPartial(n._elementPartialMap,o)}if(i)for(var c=0;c<i.length;c++){var u=0===s.length&&c===i.length-1,l=i[c];u?this._addTerminal(n._classMap,l,a):n=this._addPartial(n._classPartialMap,l)}if(s)for(var c=0;c<s.length;c+=2){var u=c===s.length-2,p=s[c],h=s[c+1];if(u){var f=n._attrValueMap,d=f.get(p);d||(d=new Map,f.set(p,d)),this._addTerminal(d,h,a)}else{var m=n._attrValuePartialMap,y=m.get(p);y||(y=new Map,m.set(p,y)),n=this._addPartial(y,h)}}},t.prototype._addTerminal=function(t,e,r){var n=t.get(e);n||(n=[],t.set(e,n)),n.push(r)},t.prototype._addPartial=function(e,r){var n=e.get(r);return n||(n=new t,e.set(r,n)),n},t.prototype.match=function(t,e){for(var r=!1,n=t.element,o=t.classNames,i=t.attrs,s=0;s<this._listContexts.length;s++)this._listContexts[s].alreadyMatched=!1;if(r=this._matchTerminal(this._elementMap,n,t,e)||r,r=this._matchPartial(this._elementPartialMap,n,t,e)||r,o)for(var s=0;s<o.length;s++){var a=o[s];r=this._matchTerminal(this._classMap,a,t,e)||r,r=this._matchPartial(this._classPartialMap,a,t,e)||r}if(i)for(var s=0;s<i.length;s+=2){var u=i[s],c=i[s+1],l=this._attrValueMap.get(u);c&&(r=this._matchTerminal(l,"",t,e)||r),r=this._matchTerminal(l,c,t,e)||r;var p=this._attrValuePartialMap.get(u);c&&(r=this._matchPartial(p,"",t,e)||r),r=this._matchPartial(p,c,t,e)||r}return r},t.prototype._matchTerminal=function(t,e,r,n){if(!t||"string"!=typeof e)return!1;var o=t.get(e)||[],i=t.get("*");if(i&&(o=o.concat(i)),0===o.length)return!1;for(var s,a=!1,u=0;u<o.length;u++)s=o[u],a=s.finalize(r,n)||a;return a},t.prototype._matchPartial=function(t,e,r,n){if(!t||"string"!=typeof e)return!1;var o=t.get(e);return o?o.match(r,n):!1},t}(),xo=function(){function t(t){this.selectors=t,this.alreadyMatched=!1}return t}(),To=function(){function t(t,e,r){this.selector=t,this.cbContext=e,this.listContext=r,this.notSelectors=t.notSelectors}return t.prototype.finalize=function(t,e){var r=!0;if(this.notSelectors.length>0&&(!this.listContext||!this.listContext.alreadyMatched)){var n=So.createNotMatcher(this.notSelectors);r=!n.match(t,null)}return!r||!e||this.listContext&&this.listContext.alreadyMatched||(this.listContext&&(this.listContext.alreadyMatched=!0),e(this.selector,this.cbContext)),r},t}(),Po="",Ao=/-+([a-z0-9])/g,Oo=function(){function t(){}return t.prototype.visitArray=function(t,e){var r=this;return t.map(function(t){return d(t,r,e)})},t.prototype.visitStringMap=function(t,e){var r=this,n={};return Object.keys(t).forEach(function(o){n[o]=d(t[o],r,e)}),n},t.prototype.visitPrimitive=function(t){return t},t.prototype.visitOther=function(t){return t},t}(),Mo=function(){function t(t,e){void 0===e&&(e=null),this.syncResult=t,this.asyncResult=e,e||(this.asyncResult=Promise.resolve(t))}return t}(),Ro="ngSyntaxError",ko=Object.getPrototypeOf({}),Io=/^(?:(?:\[([^\]]+)\])|(?:\(([^\)]+)\)))|(\@[-\w]+)$/,No=function(){function t(t,e){void 0===t&&(t=null),void 0===e&&(e=null),this.name=t,this.definitions=e}return t}(),Do=function(){function t(){}return t}(),jo=function(t){function e(e,r){var n=t.call(this)||this;return n.stateNameExpr=e,n.styles=r,n}return Zn(e,t),e}(Do),Lo=function(t){function e(e,r){var n=t.call(this)||this;return n.stateChangeExpr=e,n.steps=r,n}return Zn(e,t),e}(Do),Vo=function(){function t(){}return t}(),Fo=function(t){function e(e){void 0===e&&(e=[]);var r=t.call(this)||this;return r.steps=e,r}return Zn(e,t),e}(Vo),Uo=function(t){function e(e,r){void 0===r&&(r=null);var n=t.call(this)||this;return n.offset=e,n.styles=r,n}return Zn(e,t),e}(Vo),Bo=function(t){function e(e,r){void 0===e&&(e=0),void 0===r&&(r=null);var n=t.call(this)||this;return n.timings=e,n.styles=r,n}return Zn(e,t),e}(Vo),Ho=function(t){function e(e){void 0===e&&(e=null);var r=t.call(this)||this;return r.steps=e,r}return Zn(e,t),e}(Vo),qo=function(t){function e(e){return void 0===e&&(e=null),t.call(this,e)||this}return Zn(e,t),e}(Ho),zo=function(t){function e(e){return void 0===e&&(e=null),t.call(this,e)||this}return Zn(e,t),e}(Ho),Go=0,Wo={};Wo.Pipe=0,Wo.Directive=1,Wo.NgModule=2,Wo.Injectable=3,Wo[Wo.Pipe]="Pipe",Wo[Wo.Directive]="Directive",Wo[Wo.NgModule]="NgModule",Wo[Wo.Injectable]="Injectable";var $o=function(){function t(t){var e=void 0===t?{}:t,r=e.moduleUrl,n=e.styles,o=e.styleUrls;this.moduleUrl=r||null,this.styles=I(n),this.styleUrls=I(o)}return t}(),Ko=function(){function t(t){var e=t.encapsulation,r=t.template,n=t.templateUrl,o=t.styles,i=t.styleUrls,s=t.externalStylesheets,a=t.animations,u=t.ngContentSelectors,c=t.interpolation,l=t.isInline;if(this.encapsulation=e,this.template=r,this.templateUrl=n,this.styles=I(o),this.styleUrls=I(i),this.externalStylesheets=I(s),this.animations=a?N(a):[],this.ngContentSelectors=u||[],c&&2!=c.length)throw new Error("'interpolation' should have a start and an end symbol.");this.interpolation=c,this.isInline=l}return t.prototype.toSummary=function(){return{animations:this.animations.map(function(t){return t.name}),ngContentSelectors:this.ngContentSelectors,encapsulation:this.encapsulation}},t}(),Qo=function(){function t(t){var e=t.isHost,r=t.type,n=t.isComponent,o=t.selector,i=t.exportAs,s=t.changeDetection,a=t.inputs,u=t.outputs,c=t.hostListeners,l=t.hostProperties,p=t.hostAttributes,h=t.providers,f=t.viewProviders,d=t.queries,m=t.viewQueries,y=t.entryComponents,v=t.template,g=t.componentViewType,_=t.rendererType,b=t.componentFactory;this.isHost=!!e,this.type=r,this.isComponent=n,this.selector=o,this.exportAs=i,this.changeDetection=s,this.inputs=a,this.outputs=u,this.hostListeners=c,this.hostProperties=l,this.hostAttributes=p,this.providers=I(h),this.viewProviders=I(f),this.queries=I(d),this.viewQueries=I(m),this.entryComponents=I(y),this.template=v,this.componentViewType=g,this.rendererType=_,this.componentFactory=b}return t.create=function(e){var r=e.isHost,n=e.type,o=e.isComponent,i=e.selector,s=e.exportAs,a=e.changeDetection,u=e.inputs,c=e.outputs,l=e.host,h=e.providers,f=e.viewProviders,d=e.queries,m=e.viewQueries,y=e.entryComponents,v=e.template,g=e.componentViewType,_=e.rendererType,b=e.componentFactory,w={},C={},E={};null!=l&&Object.keys(l).forEach(function(t){var e=l[t],r=t.match(Io);null===r?E[t]=e:null!=r[1]?C[r[1]]=e:null!=r[2]&&(w[r[2]]=e)});var S={};null!=u&&u.forEach(function(t){var e=p(t,[t,t]);S[e[0]]=e[1]});var x={};return null!=c&&c.forEach(function(t){var e=p(t,[t,t]);x[e[0]]=e[1]}),new t({isHost:r,type:n,isComponent:!!o,selector:i,exportAs:s,changeDetection:a,inputs:S,outputs:x,hostListeners:w,hostProperties:C,hostAttributes:E,providers:h,viewProviders:f,queries:d,viewQueries:m,entryComponents:y,template:v,componentViewType:g,rendererType:_,componentFactory:b})},t.prototype.toSummary=function(){return{summaryKind:Wo.Directive,type:this.type,isComponent:this.isComponent,selector:this.selector,exportAs:this.exportAs,inputs:this.inputs,outputs:this.outputs,hostListeners:this.hostListeners,hostProperties:this.hostProperties,hostAttributes:this.hostAttributes,providers:this.providers,viewProviders:this.viewProviders,queries:this.queries,viewQueries:this.viewQueries,entryComponents:this.entryComponents,changeDetection:this.changeDetection,template:this.template&&this.template.toSummary(),componentViewType:this.componentViewType,rendererType:this.rendererType,componentFactory:this.componentFactory}},t}(),Xo=function(){function t(t){var e=t.type,r=t.name,n=t.pure;this.type=e,this.name=r,this.pure=!!n}return t.prototype.toSummary=function(){return{summaryKind:Wo.Pipe,type:this.type,name:this.name,pure:this.pure}},t}(),Zo=function(){function t(t){var e=t.type,r=t.providers,n=t.declaredDirectives,o=t.exportedDirectives,i=t.declaredPipes,s=t.exportedPipes,a=t.entryComponents,u=t.bootstrapComponents,c=t.importedModules,l=t.exportedModules,p=t.schemas,h=t.transitiveModule,f=t.id;this.type=e||null,this.declaredDirectives=I(n),this.exportedDirectives=I(o),this.declaredPipes=I(i),this.exportedPipes=I(s),this.providers=I(r),this.entryComponents=I(a),this.bootstrapComponents=I(u),this.importedModules=I(c),this.exportedModules=I(l),this.schemas=I(p),this.id=f||null,this.transitiveModule=h||null}return t.prototype.toSummary=function(){var t=this.transitiveModule;return{summaryKind:Wo.NgModule,type:this.type,entryComponents:t.entryComponents,providers:t.providers,modules:t.modules,exportedDirectives:t.exportedDirectives,exportedPipes:t.exportedPipes}},t}(),Yo=function(){function t(){this.directivesSet=new Set,this.directives=[],this.exportedDirectivesSet=new Set,this.exportedDirectives=[],this.pipesSet=new Set,this.pipes=[],this.exportedPipesSet=new Set,this.exportedPipes=[],this.modulesSet=new Set,this.modules=[],this.entryComponentsSet=new Set,this.entryComponents=[],this.providers=[]}return t.prototype.addProvider=function(t,e){this.providers.push({provider:t,module:e})},t.prototype.addDirective=function(t){this.directivesSet.has(t.reference)||(this.directivesSet.add(t.reference),this.directives.push(t))},t.prototype.addExportedDirective=function(t){this.exportedDirectivesSet.has(t.reference)||(this.exportedDirectivesSet.add(t.reference),this.exportedDirectives.push(t))},t.prototype.addPipe=function(t){this.pipesSet.has(t.reference)||(this.pipesSet.add(t.reference),this.pipes.push(t))},t.prototype.addExportedPipe=function(t){this.exportedPipesSet.has(t.reference)||(this.exportedPipesSet.add(t.reference),this.exportedPipes.push(t))},t.prototype.addModule=function(t){this.modulesSet.has(t.reference)||(this.modulesSet.add(t.reference),this.modules.push(t))},t.prototype.addEntryComponent=function(t){this.entryComponentsSet.has(t.componentType)||(this.entryComponentsSet.add(t.componentType),this.entryComponents.push(t))},t}(),Jo=function(){function t(t,e){var r=e.useClass,n=e.useValue,o=e.useExisting,i=e.useFactory,s=e.deps,a=e.multi;this.token=t,this.useClass=r||null,this.useValue=n,this.useExisting=o,this.useFactory=i||null,this.dependencies=s||null,this.multi=!!a}return t}(),ti=function(){function t(t){var r=void 0===t?{}:t,n=r.defaultEncapsulation,o=void 0===n?e.ViewEncapsulation.Emulated:n,i=r.useJit,s=void 0===i?!0:i,a=r.missingTranslation,u=r.enableLegacyTemplate;this.defaultEncapsulation=o,this.useJit=!!s,this.missingTranslation=a||null,this.enableLegacyTemplate=u!==!1}return t}(),ei=function(){function t(t,e,r,n){this.input=e,this.errLocation=r,this.ctxLocation=n,this.message="Parser Error: "+t+" "+r+" ["+e+"] in "+n}return t}(),ri=function(){function t(t,e){this.start=t,this.end=e}return t}(),ni=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}(),oi=function(t){function e(e,r,n,o){var i=t.call(this,e)||this;return i.prefix=r,i.uninterpretedExpression=n,i.location=o,i}return Zn(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}(ni),ii=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Zn(e,t),e.prototype.visit=function(t,e){void 0===e&&(e=null)},e}(ni),si=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Zn(e,t),e.prototype.visit=function(t,e){return void 0===e&&(e=null),t.visitImplicitReceiver(this,e)},e}(ni),ai=function(t){function e(e,r){var n=t.call(this,e)||this;return n.expressions=r,n}return Zn(e,t),e.prototype.visit=function(t,e){return void 0===e&&(e=null),t.visitChain(this,e)},e}(ni),ui=function(t){function e(e,r,n,o){var i=t.call(this,e)||this;return i.condition=r,i.trueExp=n,i.falseExp=o,i}return Zn(e,t),e.prototype.visit=function(t,e){return void 0===e&&(e=null),t.visitConditional(this,e)},e}(ni),ci=function(t){function e(e,r,n){var o=t.call(this,e)||this;return o.receiver=r,o.name=n,o}return Zn(e,t),e.prototype.visit=function(t,e){return void 0===e&&(e=null),t.visitPropertyRead(this,e)},e}(ni),li=function(t){function e(e,r,n,o){var i=t.call(this,e)||this;return i.receiver=r,i.name=n,i.value=o,i}return Zn(e,t),e.prototype.visit=function(t,e){return void 0===e&&(e=null),t.visitPropertyWrite(this,e)},e}(ni),pi=function(t){function e(e,r,n){var o=t.call(this,e)||this;return o.receiver=r,o.name=n,o}return Zn(e,t),e.prototype.visit=function(t,e){return void 0===e&&(e=null),t.visitSafePropertyRead(this,e)},e}(ni),hi=function(t){function e(e,r,n){var o=t.call(this,e)||this;return o.obj=r,o.key=n,o}return Zn(e,t),e.prototype.visit=function(t,e){return void 0===e&&(e=null),t.visitKeyedRead(this,e)},e}(ni),fi=function(t){function e(e,r,n,o){var i=t.call(this,e)||this;return i.obj=r,i.key=n,i.value=o,i}return Zn(e,t),e.prototype.visit=function(t,e){return void 0===e&&(e=null),t.visitKeyedWrite(this,e)},e}(ni),di=function(t){function e(e,r,n,o){var i=t.call(this,e)||this;return i.exp=r,i.name=n,i.args=o,i}return Zn(e,t),e.prototype.visit=function(t,e){return void 0===e&&(e=null),t.visitPipe(this,e)},e}(ni),mi=function(t){function e(e,r){var n=t.call(this,e)||this;return n.value=r,n}return Zn(e,t),e.prototype.visit=function(t,e){return void 0===e&&(e=null),t.visitLiteralPrimitive(this,e)},e}(ni),yi=function(t){function e(e,r){var n=t.call(this,e)||this;return n.expressions=r,n}return Zn(e,t),e.prototype.visit=function(t,e){return void 0===e&&(e=null),t.visitLiteralArray(this,e)},e}(ni),vi=function(t){function e(e,r,n){var o=t.call(this,e)||this;return o.keys=r,o.values=n,o}return Zn(e,t),e.prototype.visit=function(t,e){return void 0===e&&(e=null),t.visitLiteralMap(this,e)},e}(ni),gi=function(t){function e(e,r,n){ -var o=t.call(this,e)||this;return o.strings=r,o.expressions=n,o}return Zn(e,t),e.prototype.visit=function(t,e){return void 0===e&&(e=null),t.visitInterpolation(this,e)},e}(ni),_i=function(t){function e(e,r,n,o){var i=t.call(this,e)||this;return i.operation=r,i.left=n,i.right=o,i}return Zn(e,t),e.prototype.visit=function(t,e){return void 0===e&&(e=null),t.visitBinary(this,e)},e}(ni),bi=function(t){function e(e,r){var n=t.call(this,e)||this;return n.expression=r,n}return Zn(e,t),e.prototype.visit=function(t,e){return void 0===e&&(e=null),t.visitPrefixNot(this,e)},e}(ni),wi=function(t){function e(e,r,n,o){var i=t.call(this,e)||this;return i.receiver=r,i.name=n,i.args=o,i}return Zn(e,t),e.prototype.visit=function(t,e){return void 0===e&&(e=null),t.visitMethodCall(this,e)},e}(ni),Ci=function(t){function e(e,r,n,o){var i=t.call(this,e)||this;return i.receiver=r,i.name=n,i.args=o,i}return Zn(e,t),e.prototype.visit=function(t,e){return void 0===e&&(e=null),t.visitSafeMethodCall(this,e)},e}(ni),Ei=function(t){function e(e,r,n){var o=t.call(this,e)||this;return o.target=r,o.args=n,o}return Zn(e,t),e.prototype.visit=function(t,e){return void 0===e&&(e=null),t.visitFunctionCall(this,e)},e}(ni),Si=function(t){function e(e,r,n,o){var i=t.call(this,new ri(0,null==r?0:r.length))||this;return i.ast=e,i.source=r,i.location=n,i.errors=o,i}return Zn(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}(ni),xi=function(){function t(t,e,r,n,o){this.span=t,this.key=e,this.keyIsVar=r,this.name=n,this.expression=o}return t}(),Ti=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 r=this;return t.forEach(function(t){return t.visit(r,e)}),null},t.prototype.visitQuote=function(){return null},t}(),Pi=function(){function t(){}return t.prototype.visitImplicitReceiver=function(t){return t},t.prototype.visitInterpolation=function(t){return new gi(t.span,t.strings,this.visitAll(t.expressions))},t.prototype.visitLiteralPrimitive=function(t){return new mi(t.span,t.value)},t.prototype.visitPropertyRead=function(t){return new ci(t.span,t.receiver.visit(this),t.name)},t.prototype.visitPropertyWrite=function(t){return new li(t.span,t.receiver.visit(this),t.name,t.value.visit(this))},t.prototype.visitSafePropertyRead=function(t){return new pi(t.span,t.receiver.visit(this),t.name)},t.prototype.visitMethodCall=function(t){return new wi(t.span,t.receiver.visit(this),t.name,this.visitAll(t.args))},t.prototype.visitSafeMethodCall=function(t){return new Ci(t.span,t.receiver.visit(this),t.name,this.visitAll(t.args))},t.prototype.visitFunctionCall=function(t){return new Ei(t.span,t.target.visit(this),this.visitAll(t.args))},t.prototype.visitLiteralArray=function(t){return new yi(t.span,this.visitAll(t.expressions))},t.prototype.visitLiteralMap=function(t){return new vi(t.span,t.keys,this.visitAll(t.values))},t.prototype.visitBinary=function(t){return new _i(t.span,t.operation,t.left.visit(this),t.right.visit(this))},t.prototype.visitPrefixNot=function(t){return new bi(t.span,t.expression.visit(this))},t.prototype.visitConditional=function(t){return new ui(t.span,t.condition.visit(this),t.trueExp.visit(this),t.falseExp.visit(this))},t.prototype.visitPipe=function(t){return new di(t.span,t.exp.visit(this),t.name,this.visitAll(t.args))},t.prototype.visitKeyedRead=function(t){return new hi(t.span,t.obj.visit(this),t.key.visit(this))},t.prototype.visitKeyedWrite=function(t){return new fi(t.span,t.obj.visit(this),t.key.visit(this),t.value.visit(this))},t.prototype.visitAll=function(t){for(var e=new Array(t.length),r=0;r<t.length;++r)e[r]=t[r].visit(this);return e},t.prototype.visitChain=function(t){return new ai(t.span,this.visitAll(t.expressions))},t.prototype.visitQuote=function(t){return new oi(t.span,t.prefix,t.uninterpretedExpression,t.location)},t}(),Ai=0,Oi=9,Mi=10,Ri=11,ki=12,Ii=13,Ni=32,Di=33,ji=34,Li=35,Vi=36,Fi=37,Ui=38,Bi=39,Hi=40,qi=41,zi=42,Gi=43,Wi=44,$i=45,Ki=46,Qi=47,Xi=58,Zi=59,Yi=60,Ji=61,ts=62,es=63,rs=48,ns=57,os=65,is=69,ss=70,as=88,us=90,cs=91,ls=92,ps=93,hs=94,fs=95,ds=97,ms=101,ys=102,vs=110,gs=114,_s=116,bs=117,ws=118,Cs=120,Es=122,Ss=123,xs=124,Ts=125,Ps=160,As=96,Os=[/^\s*$/,/[<>]/,/^[{}]$/,/&(#|[a-z])/i,/^\/\//],Ms=function(){function t(t,e){this.start=t,this.end=e}return t.fromArray=function(e){return e?(W("interpolation",e),new t(e[0],e[1])):Rs},t}(),Rs=new Ms("{{","}}"),ks={};ks.Character=0,ks.Identifier=1,ks.Keyword=2,ks.String=3,ks.Operator=4,ks.Number=5,ks.Error=6,ks[ks.Character]="Character",ks[ks.Identifier]="Identifier",ks[ks.Keyword]="Keyword",ks[ks.String]="String",ks[ks.Operator]="Operator",ks[ks.Number]="Number",ks[ks.Error]="Error";var Is=["var","let","as","null","undefined","true","false","if","else","this"],Ns=function(){function t(){}return t.prototype.tokenize=function(t){for(var e=new Ls(t),r=[],n=e.scanToken();null!=n;)r.push(n),n=e.scanToken();return r},t}();Ns.decorators=[{type:z}],Ns.ctorParameters=function(){return[]};var Ds=function(){function t(t,e,r,n){this.index=t,this.type=e,this.numValue=r,this.strValue=n}return t.prototype.isCharacter=function(t){return this.type==ks.Character&&this.numValue==t},t.prototype.isNumber=function(){return this.type==ks.Number},t.prototype.isString=function(){return this.type==ks.String},t.prototype.isOperator=function(t){return this.type==ks.Operator&&this.strValue==t},t.prototype.isIdentifier=function(){return this.type==ks.Identifier},t.prototype.isKeyword=function(){return this.type==ks.Keyword},t.prototype.isKeywordLet=function(){return this.type==ks.Keyword&&"let"==this.strValue},t.prototype.isKeywordAs=function(){return this.type==ks.Keyword&&"as"==this.strValue},t.prototype.isKeywordNull=function(){return this.type==ks.Keyword&&"null"==this.strValue},t.prototype.isKeywordUndefined=function(){return this.type==ks.Keyword&&"undefined"==this.strValue},t.prototype.isKeywordTrue=function(){return this.type==ks.Keyword&&"true"==this.strValue},t.prototype.isKeywordFalse=function(){return this.type==ks.Keyword&&"false"==this.strValue},t.prototype.isKeywordThis=function(){return this.type==ks.Keyword&&"this"==this.strValue},t.prototype.isError=function(){return this.type==ks.Error},t.prototype.toNumber=function(){return this.type==ks.Number?this.numValue:-1},t.prototype.toString=function(){switch(this.type){case ks.Character:case ks.Identifier:case ks.Keyword:case ks.Operator:case ks.String:case ks.Error:return this.strValue;case ks.Number:return this.numValue.toString();default:return null}},t}(),js=new Ds(-1,ks.Character,0,""),Ls=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?Ai:this.input.charCodeAt(this.index)},t.prototype.scanToken=function(){for(var t=this.input,e=this.length,r=this.peek,n=this.index;Ni>=r;){if(++n>=e){r=Ai;break}r=t.charCodeAt(n)}if(this.peek=r,this.index=n,n>=e)return null;if(tt(r))return this.scanIdentifier();if(B(r))return this.scanNumber(n);var o=n;switch(r){case Ki:return this.advance(),B(this.peek)?this.scanNumber(o):$(o,Ki);case Hi:case qi:case Ss:case Ts:case cs:case ps:case Wi:case Xi:case Zi:return this.scanCharacter(o,r);case Bi:case ji:return this.scanString();case Li:case Gi:case $i:case zi:case Qi:case Fi:case hs:return this.scanOperator(o,String.fromCharCode(r));case es:return this.scanComplexOperator(o,"?",Ki,".");case Yi:case ts:return this.scanComplexOperator(o,String.fromCharCode(r),Ji,"=");case Di:case Ji:return this.scanComplexOperator(o,String.fromCharCode(r),Ji,"=",Ji,"=");case Ui:return this.scanComplexOperator(o,"&",Ui,"&");case xs:return this.scanComplexOperator(o,"|",xs,"|");case Ps:for(;U(this.peek);)this.advance();return this.scanToken()}return this.advance(),this.error("Unexpected character ["+String.fromCharCode(r)+"]",0)},t.prototype.scanCharacter=function(t,e){return this.advance(),$(t,e)},t.prototype.scanOperator=function(t,e){return this.advance(),X(t,e)},t.prototype.scanComplexOperator=function(t,e,r,n,o,i){this.advance();var s=e;return this.peek==r&&(this.advance(),s+=n),null!=o&&this.peek==o&&(this.advance(),s+=i),X(t,s)},t.prototype.scanIdentifier=function(){var t=this.index;for(this.advance();rt(this.peek);)this.advance();var e=this.input.substring(t,this.index);return Is.indexOf(e)>-1?Q(t,e):K(t,e)},t.prototype.scanNumber=function(t){var e=this.index===t;for(this.advance();;){if(B(this.peek));else if(this.peek==Ki)e=!1;else{if(!nt(this.peek))break;if(this.advance(),ot(this.peek)&&this.advance(),!B(this.peek))return this.error("Invalid exponent",-1);e=!1}this.advance()}var r=this.input.substring(t,this.index),n=e?at(r):parseFloat(r);return Y(t,n)},t.prototype.scanString=function(){var t=this.index,e=this.peek;this.advance();for(var r="",n=this.index,o=this.input;this.peek!=e;)if(this.peek==ls){r+=o.substring(n,this.index),this.advance();var i=void 0;if(this.peek=this.peek,this.peek==bs){var s=o.substring(this.index+1,this.index+5);if(!/^[0-9a-f]+$/i.test(s))return this.error("Invalid unicode escape [\\u"+s+"]",0);i=parseInt(s,16);for(var a=0;5>a;a++)this.advance()}else i=st(this.peek),this.advance();r+=String.fromCharCode(i),n=this.index}else{if(this.peek==Ai)return this.error("Unterminated quote",0);this.advance()}var u=o.substring(n,this.index);return this.advance(),Z(t,r+u)},t.prototype.error=function(t,e){var r=this.index+e;return J(r,"Lexer Error: "+t+" at column "+r+" in expression ["+this.input+"]")},t}(),Vs=function(){function t(t,e,r){this.strings=t,this.expressions=e,this.offsets=r}return t}(),Fs=function(){function t(t,e,r){this.templateBindings=t,this.warnings=e,this.errors=r}return t}(),Us=function(){function t(t){this._lexer=t,this.errors=[]}return t.prototype.parseAction=function(t,e,r){void 0===r&&(r=Rs),this._checkNoInterpolation(t,e,r);var n=this._stripComments(t),o=this._lexer.tokenize(this._stripComments(t)),i=new Bs(t,e,o,n.length,!0,this.errors,t.length-n.length).parseChain();return new Si(i,t,e,this.errors)},t.prototype.parseBinding=function(t,e,r){void 0===r&&(r=Rs);var n=this._parseBindingAst(t,e,r);return new Si(n,t,e,this.errors)},t.prototype.parseSimpleBinding=function(t,e,r){void 0===r&&(r=Rs);var n=this._parseBindingAst(t,e,r),o=Hs.check(n);return o.length>0&&this._reportError("Host binding expression cannot contain "+o.join(" "),t,e),new Si(n,t,e,this.errors)},t.prototype._reportError=function(t,e,r,n){this.errors.push(new ei(t,e,r,n))},t.prototype._parseBindingAst=function(t,e,r){var n=this._parseQuote(t,e);if(null!=n)return n;this._checkNoInterpolation(t,e,r);var o=this._stripComments(t),i=this._lexer.tokenize(o);return new Bs(t,e,i,o.length,!1,this.errors,t.length-o.length).parseChain()},t.prototype._parseQuote=function(t,e){if(null==t)return null;var r=t.indexOf(":");if(-1==r)return null;var n=t.substring(0,r).trim();if(!et(n))return null;var o=t.substring(r+1);return new oi(new ri(0,t.length),n,o,e)},t.prototype.parseTemplateBindings=function(t,e,r){var n=this._lexer.tokenize(e);if(t){var o=this._lexer.tokenize(t).map(function(t){return t.index=0,t});n.unshift.apply(n,o)}return new Bs(e,r,n,e.length,!1,this.errors,0).parseTemplateBindings()},t.prototype.parseInterpolation=function(t,e,r){void 0===r&&(r=Rs);var n=this.splitInterpolation(t,e,r);if(null==n)return null;for(var o=[],i=0;i<n.expressions.length;++i){var s=n.expressions[i],a=this._stripComments(s),u=this._lexer.tokenize(this._stripComments(n.expressions[i])),c=new Bs(t,e,u,a.length,!1,this.errors,n.offsets[i]+(s.length-a.length)).parseChain();o.push(c)}return new Si(new gi(new ri(0,null==t?0:t.length),n.strings,o),t,e,this.errors)},t.prototype.splitInterpolation=function(t,e,r){void 0===r&&(r=Rs);var n=ut(r),o=t.split(n);if(o.length<=1)return null;for(var i=[],s=[],a=[],u=0,c=0;c<o.length;c++){var l=o[c];c%2===0?(i.push(l),u+=l.length):l.trim().length>0?(u+=r.start.length,s.push(l),a.push(u),u+=l.length+r.end.length):(this._reportError("Blank expressions are not allowed in interpolated strings",t,"at column "+this._findInterpolationErrorColumn(o,c,r)+" in",e),s.push("$implict"),a.push(u))}return new Vs(i,s,a)},t.prototype.wrapLiteralPrimitive=function(t,e){return new Si(new mi(new ri(0,null==t?0:t.length),t),t,e,this.errors)},t.prototype._stripComments=function(t){var e=this._commentStart(t);return null!=e?t.substring(0,e).trim():t},t.prototype._commentStart=function(t){for(var e=null,r=0;r<t.length-1;r++){var n=t.charCodeAt(r),o=t.charCodeAt(r+1);if(n===Qi&&o==Qi&&null==e)return r;e===n?e=null:null==e&&it(n)&&(e=n)}return null},t.prototype._checkNoInterpolation=function(t,e,r){var n=ut(r),o=t.split(n);o.length>1&&this._reportError("Got interpolation ("+r.start+r.end+") where expression was expected",t,"at column "+this._findInterpolationErrorColumn(o,1,r)+" in",e)},t.prototype._findInterpolationErrorColumn=function(t,e,r){for(var n="",o=0;e>o;o++)n+=o%2===0?t[o]:""+r.start+t[o]+r.end;return n.length},t}();Us.decorators=[{type:z}],Us.ctorParameters=function(){return[{type:Ns}]};var Bs=function(){function t(t,e,r,n,o,i,s){this.input=t,this.location=e,this.tokens=r,this.inputLength=n,this.parseAction=o,this.errors=i,this.offset=s,this.rparensExpected=0,this.rbracketsExpected=0,this.rbracesExpected=0,this.index=0}return t.prototype.peek=function(t){var e=this.index+t;return e<this.tokens.length?this.tokens[e]:js},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 ri(t,this.inputIndex)},t.prototype.advance=function(){this.index++},t.prototype.optionalCharacter=function(t){return this.next.isCharacter(t)?(this.advance(),!0):!1},t.prototype.peekKeywordLet=function(){return this.next.isKeywordLet()},t.prototype.peekKeywordAs=function(){return this.next.isKeywordAs()},t.prototype.expectCharacter=function(t){this.optionalCharacter(t)||this.error("Missing expected "+String.fromCharCode(t))},t.prototype.optionalOperator=function(t){return this.next.isOperator(t)?(this.advance(),!0):!1},t.prototype.expectOperator=function(t){this.optionalOperator(t)||this.error("Missing expected operator "+t)},t.prototype.expectIdentifierOrKeyword=function(){var t=this.next;return t.isIdentifier()||t.isKeyword()?(this.advance(),t.toString()):(this.error("Unexpected token "+t+", expected identifier or keyword"),"")},t.prototype.expectIdentifierOrKeywordOrString=function(){var t=this.next;return t.isIdentifier()||t.isKeyword()||t.isString()?(this.advance(),t.toString()):(this.error("Unexpected token "+t+", expected identifier, keyword, or string"),"")},t.prototype.parseChain=function(){for(var t=[],e=this.inputIndex;this.index<this.tokens.length;){var r=this.parsePipe();if(t.push(r),this.optionalCharacter(Zi))for(this.parseAction||this.error("Binding expression cannot contain chained expression");this.optionalCharacter(Zi););else this.index<this.tokens.length&&this.error("Unexpected token '"+this.next+"'")}return 0==t.length?new ii(this.span(e)):1==t.length?t[0]:new ai(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(),r=[];this.optionalCharacter(Xi);)r.push(this.parseExpression());t=new di(this.span(t.span.start),t,e,r)}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 r=this.parsePipe(),n=void 0;if(this.optionalCharacter(Xi))n=this.parsePipe();else{var o=this.inputIndex,i=this.input.substring(t,o);this.error("Conditional expression "+i+" requires all 3 expressions"),n=new ii(this.span(t))}return new ui(this.span(t),e,r,n)}return e},t.prototype.parseLogicalOr=function(){for(var t=this.parseLogicalAnd();this.optionalOperator("||");){var e=this.parseLogicalAnd();t=new _i(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 _i(this.span(t.span.start),"&&",t,e)}return t},t.prototype.parseEquality=function(){for(var t=this.parseRelational();this.next.type==ks.Operator;){var e=this.next.strValue;switch(e){case"==":case"===":case"!=":case"!==":this.advance();var r=this.parseRelational();t=new _i(this.span(t.span.start),e,t,r);continue}break}return t},t.prototype.parseRelational=function(){for(var t=this.parseAdditive();this.next.type==ks.Operator;){var e=this.next.strValue;switch(e){case"<":case">":case"<=":case">=":this.advance();var r=this.parseAdditive();t=new _i(this.span(t.span.start),e,t,r);continue}break}return t},t.prototype.parseAdditive=function(){for(var t=this.parseMultiplicative();this.next.type==ks.Operator;){var e=this.next.strValue;switch(e){case"+":case"-":this.advance();var r=this.parseMultiplicative();t=new _i(this.span(t.span.start),e,t,r);continue}break}return t},t.prototype.parseMultiplicative=function(){for(var t=this.parsePrefix();this.next.type==ks.Operator;){var e=this.next.strValue;switch(e){case"*":case"%":case"/":this.advance();var r=this.parsePrefix();t=new _i(this.span(t.span.start),e,t,r);continue}break}return t},t.prototype.parsePrefix=function(){if(this.next.type==ks.Operator){var t=this.inputIndex,e=this.next.strValue,r=void 0;switch(e){case"+":return this.advance(),this.parsePrefix();case"-":return this.advance(),r=this.parsePrefix(),new _i(this.span(t),e,new mi(new ri(t,t),0),r);case"!":return this.advance(),r=this.parsePrefix(),new bi(this.span(t),r)}}return this.parseCallChain()},t.prototype.parseCallChain=function(){for(var t=this.parsePrimary();;)if(this.optionalCharacter(Ki))t=this.parseAccessMemberOrMethodCall(t,!1);else if(this.optionalOperator("?."))t=this.parseAccessMemberOrMethodCall(t,!0);else if(this.optionalCharacter(cs)){this.rbracketsExpected++;var e=this.parsePipe();if(this.rbracketsExpected--,this.expectCharacter(ps),this.optionalOperator("=")){var r=this.parseConditional();t=new fi(this.span(t.span.start),t,e,r)}else t=new hi(this.span(t.span.start),t,e)}else{if(!this.optionalCharacter(Hi))return t;this.rparensExpected++;var n=this.parseCallArguments();this.rparensExpected--,this.expectCharacter(qi),t=new Ei(this.span(t.span.start),t,n)}},t.prototype.parsePrimary=function(){var t=this.inputIndex;if(this.optionalCharacter(Hi)){this.rparensExpected++;var e=this.parsePipe();return this.rparensExpected--,this.expectCharacter(qi),e}if(this.next.isKeywordNull())return this.advance(),new mi(this.span(t),null);if(this.next.isKeywordUndefined())return this.advance(),new mi(this.span(t),void 0);if(this.next.isKeywordTrue())return this.advance(),new mi(this.span(t),!0);if(this.next.isKeywordFalse())return this.advance(),new mi(this.span(t),!1);if(this.next.isKeywordThis())return this.advance(),new si(this.span(t));if(this.optionalCharacter(cs)){this.rbracketsExpected++;var r=this.parseExpressionList(ps);return this.rbracketsExpected--,this.expectCharacter(ps),new yi(this.span(t),r)}if(this.next.isCharacter(Ss))return this.parseLiteralMap();if(this.next.isIdentifier())return this.parseAccessMemberOrMethodCall(new si(this.span(t)),!1);if(this.next.isNumber()){var n=this.next.toNumber();return this.advance(),new mi(this.span(t),n)}if(this.next.isString()){var o=this.next.toString();return this.advance(),new mi(this.span(t),o)}return this.index>=this.tokens.length?(this.error("Unexpected end of expression: "+this.input),new ii(this.span(t))):(this.error("Unexpected token "+this.next),new ii(this.span(t)))},t.prototype.parseExpressionList=function(t){var e=[];if(!this.next.isCharacter(t))do e.push(this.parsePipe());while(this.optionalCharacter(Wi));return e},t.prototype.parseLiteralMap=function(){var t=[],e=[],r=this.inputIndex;if(this.expectCharacter(Ss),!this.optionalCharacter(Ts)){this.rbracesExpected++;do{var n=this.expectIdentifierOrKeywordOrString();t.push(n),this.expectCharacter(Xi),e.push(this.parsePipe())}while(this.optionalCharacter(Wi));this.rbracesExpected--,this.expectCharacter(Ts)}return new vi(this.span(r),t,e)},t.prototype.parseAccessMemberOrMethodCall=function(t,e){void 0===e&&(e=!1);var r=t.span.start,n=this.expectIdentifierOrKeyword();if(this.optionalCharacter(Hi)){this.rparensExpected++;var o=this.parseCallArguments();this.expectCharacter(qi),this.rparensExpected--;var i=this.span(r);return e?new Ci(i,t,n,o):new wi(i,t,n,o)}if(e)return this.optionalOperator("=")?(this.error("The '?.' operator cannot be used in the assignment"),new ii(this.span(r))):new pi(this.span(r),t,n);if(this.optionalOperator("=")){if(!this.parseAction)return this.error("Bindings cannot contain assignments"),new ii(this.span(r));var s=this.parseConditional();return new li(this.span(r),t,n,s)}return new ci(this.span(r),t,n)},t.prototype.parseCallArguments=function(){if(this.next.isCharacter(qi))return[];var t=[];do t.push(this.parsePipe());while(this.optionalCharacter(Wi));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,r=[];this.index<this.tokens.length;){var n=this.inputIndex,o=this.peekKeywordLet();o&&this.advance();var i=this.expectTemplateBindingKey(),s=i;o||(null==e?e=s:s=e+s[0].toUpperCase()+s.substring(1)),this.optionalCharacter(Xi);var a=null,u=null;if(o)a=this.optionalOperator("=")?this.expectTemplateBindingKey():"$implicit";else if(this.peekKeywordAs()){var c=this.inputIndex;this.advance(),a=i,s=this.expectTemplateBindingKey(),o=!0}else if(this.next!==js&&!this.peekKeywordLet()){var l=this.inputIndex,p=this.parsePipe(),h=this.input.substring(l-this.offset,this.inputIndex-this.offset);u=new Si(p,h,this.location,this.errors)}if(t.push(new xi(this.span(n),s,o,a,u)),this.peekKeywordAs()&&!o){var c=this.inputIndex;this.advance();var f=this.expectTemplateBindingKey();t.push(new xi(this.span(c),f,!0,s,null))}this.optionalCharacter(Zi)||this.optionalCharacter(Wi)}return new Fs(t,r,this.errors)},t.prototype.error=function(t,e){void 0===e&&(e=null),this.errors.push(new ei(t,this.input,this.locationText(e),this.location)),this.skip()},t.prototype.locationText=function(t){return void 0===t&&(t=null),null==t&&(t=this.index),t<this.tokens.length?"at column "+(this.tokens[t].index+1)+" in":"at the end of the expression"},t.prototype.skip=function(){for(var t=this.next;this.index<this.tokens.length&&!t.isCharacter(Zi)&&(this.rparensExpected<=0||!t.isCharacter(qi))&&(this.rbracesExpected<=0||!t.isCharacter(Ts))&&(this.rbracketsExpected<=0||!t.isCharacter(ps));)this.next.isError()&&this.errors.push(new ei(this.next.toString(),this.input,this.locationText(),this.location)),this.advance(),t=this.next},t}(),Hs=function(){function t(){this.errors=[]}return t.check=function(e){var r=new t;return e.visit(r),r.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}(),qs=function(){function t(t,e,r,n){this.file=t,this.offset=e,this.line=r,this.col=n}return t.prototype.toString=function(){return null!=this.offset?this.file.url+"@"+this.line+":"+this.col:this.file.url},t.prototype.moveBy=function(e){for(var r=this.file.content,n=r.length,o=this.offset,i=this.line,s=this.col;o>0&&0>e;){o--,e++;var a=r.charCodeAt(o);if(a==Mi){i--;var u=r.substr(0,o-1).lastIndexOf(String.fromCharCode(Mi));s=u>0?o-u:o}else s--}for(;n>o&&e>0;){var a=r.charCodeAt(o);o++,e--,a==Mi?(i++,s=0):s++}return new t(this.file,o,i,s)},t.prototype.getContext=function(t,e){var r=this.file.content,n=this.offset;if(null!=n){n>r.length-1&&(n=r.length-1);for(var o=n,i=0,s=0;t>i&&n>0&&(n--,i++,"\n"!=r[n]||++s!=e););for(i=0,s=0;t>i&&o<r.length-1&&(o++,i++,"\n"!=r[o]||++s!=e););return{before:r.substring(n,this.offset),after:r.substring(this.offset,o+1)}}return null},t}(),zs=function(){function t(t,e){this.content=t,this.url=e}return t}(),Gs=function(){function t(t,e,r){void 0===r&&(r=null),this.start=t,this.end=e,this.details=r}return t.prototype.toString=function(){return this.start.file.content.substring(this.start.offset,this.end.offset)},t}(),Ws={};Ws.WARNING=0,Ws.ERROR=1,Ws[Ws.WARNING]="WARNING",Ws[Ws.ERROR]="ERROR";var $s=function(){function t(t,e,r){void 0===r&&(r=Ws.ERROR),this.span=t,this.msg=e,this.level=r}return t.prototype.toString=function(){var t=this.span.start.getContext(100,3),e=t?' ("'+t.before+"["+Ws[this.level]+" ->]"+t.after+'")':"",r=this.span.details?", "+this.span.details:"";return""+this.msg+e+": "+this.span.start+r},t}(),Ks=function(){function t(t,e){this.value=t,this.sourceSpan=e}return t.prototype.visit=function(t,e){return t.visitText(this,e)},t}(),Qs=function(){function t(t,e,r,n,o){this.switchValue=t,this.type=e,this.cases=r,this.sourceSpan=n,this.switchValueSourceSpan=o}return t.prototype.visit=function(t,e){return t.visitExpansion(this,e)},t}(),Xs=function(){function t(t,e,r,n,o){this.value=t,this.expression=e,this.sourceSpan=r,this.valueSourceSpan=n,this.expSourceSpan=o}return t.prototype.visit=function(t,e){return t.visitExpansionCase(this,e)},t}(),Zs=function(){function t(t,e,r,n){this.name=t,this.value=e,this.sourceSpan=r,this.valueSpan=n}return t.prototype.visit=function(t,e){return t.visitAttribute(this,e)},t}(),Ys=function(){function t(t,e,r,n,o,i){void 0===o&&(o=null),void 0===i&&(i=null),this.name=t,this.attrs=e,this.children=r,this.sourceSpan=n,this.startSourceSpan=o,this.endSourceSpan=i}return t.prototype.visit=function(t,e){return t.visitElement(this,e)},t}(),Js=function(){function t(t,e){this.value=t,this.sourceSpan=e}return t.prototype.visit=function(t,e){return t.visitComment(this,e)},t}(),ta={};ta.TAG_OPEN_START=0,ta.TAG_OPEN_END=1,ta.TAG_OPEN_END_VOID=2,ta.TAG_CLOSE=3,ta.TEXT=4,ta.ESCAPABLE_RAW_TEXT=5,ta.RAW_TEXT=6,ta.COMMENT_START=7,ta.COMMENT_END=8,ta.CDATA_START=9,ta.CDATA_END=10,ta.ATTR_NAME=11,ta.ATTR_VALUE=12,ta.DOC_TYPE=13,ta.EXPANSION_FORM_START=14,ta.EXPANSION_CASE_VALUE=15,ta.EXPANSION_CASE_EXP_START=16,ta.EXPANSION_CASE_EXP_END=17,ta.EXPANSION_FORM_END=18,ta.EOF=19,ta[ta.TAG_OPEN_START]="TAG_OPEN_START",ta[ta.TAG_OPEN_END]="TAG_OPEN_END",ta[ta.TAG_OPEN_END_VOID]="TAG_OPEN_END_VOID",ta[ta.TAG_CLOSE]="TAG_CLOSE",ta[ta.TEXT]="TEXT",ta[ta.ESCAPABLE_RAW_TEXT]="ESCAPABLE_RAW_TEXT",ta[ta.RAW_TEXT]="RAW_TEXT",ta[ta.COMMENT_START]="COMMENT_START",ta[ta.COMMENT_END]="COMMENT_END",ta[ta.CDATA_START]="CDATA_START",ta[ta.CDATA_END]="CDATA_END",ta[ta.ATTR_NAME]="ATTR_NAME",ta[ta.ATTR_VALUE]="ATTR_VALUE",ta[ta.DOC_TYPE]="DOC_TYPE",ta[ta.EXPANSION_FORM_START]="EXPANSION_FORM_START",ta[ta.EXPANSION_CASE_VALUE]="EXPANSION_CASE_VALUE",ta[ta.EXPANSION_CASE_EXP_START]="EXPANSION_CASE_EXP_START",ta[ta.EXPANSION_CASE_EXP_END]="EXPANSION_CASE_EXP_END",ta[ta.EXPANSION_FORM_END]="EXPANSION_FORM_END",ta[ta.EOF]="EOF";var ea=function(){function t(t,e,r){this.type=t,this.parts=e,this.sourceSpan=r}return t}(),ra=function(t){function e(e,r,n){var o=t.call(this,n,e)||this;return o.tokenType=r,o}return Zn(e,t),e}($s),na=function(){function t(t,e){this.tokens=t,this.errors=e}return t}(),oa=/\r\n?/g,ia=function(){function t(t){this.error=t}return t}(),sa=function(){function t(t,e,r,n){void 0===n&&(n=Rs),this._file=t,this._getTagDefinition=e,this._tokenizeIcu=r,this._interpolationConfig=n,this._peek=-1,this._nextPeek=-1,this._index=-1,this._line=0,this._column=-1,this._expansionCaseStack=[],this._inInterpolation=!1,this.tokens=[],this.errors=[],this._input=t.content,this._length=t.content.length,this._advance()}return t.prototype._processCarriageReturns=function(t){return t.replace(oa,"\n")},t.prototype.tokenize=function(){for(;this._peek!==Ai;){var t=this._getLocation();try{this._attemptCharCode(Yi)?this._attemptCharCode(Di)?this._attemptCharCode(cs)?this._consumeCdata(t):this._attemptCharCode($i)?this._consumeComment(t):this._consumeDocType(t):this._attemptCharCode(Qi)?this._consumeTagClose(t):this._consumeTagOpen(t):this._tokenizeIcu&&this._tokenizeExpansionForm()||this._consumeText()}catch(e){if(!(e instanceof ia))throw e;this.errors.push(e.error)}}return this._beginToken(ta.EOF),this._endToken([]),new na(Et(this.tokens),this.errors)},t.prototype._tokenizeExpansionForm=function(){if(_t(this._input,this._index,this._interpolationConfig))return this._consumeExpansionFormStart(),!0;if(bt(this._peek)&&this._isInExpansionForm())return this._consumeExpansionCaseStart(),!0;if(this._peek===Ts){if(this._isInExpansionCase())return this._consumeExpansionCaseEnd(),!0;if(this._isInExpansionForm())return this._consumeExpansionFormEnd(),!0}return!1},t.prototype._getLocation=function(){return new qs(this._file,this._index,this._line,this._column)},t.prototype._getSpan=function(t,e){return void 0===t&&(t=this._getLocation()),void 0===e&&(e=this._getLocation()),new Gs(t,e)},t.prototype._beginToken=function(t,e){void 0===e&&(e=this._getLocation()),this._currentTokenStart=e,this._currentTokenType=t},t.prototype._endToken=function(t,e){void 0===e&&(e=this._getLocation());var r=new ea(this._currentTokenType,t,new Gs(this._currentTokenStart,e));return this.tokens.push(r),this._currentTokenStart=null,this._currentTokenType=null,r},t.prototype._createError=function(t,e){this._isInExpansionForm()&&(t+=' (Do you have an unescaped "{" in your template? Use "{{ \'{\' }}") to escape it.)'); +});return"{"+t.type+", "+r.join(", ")+"}"},e}(La),Ua={};Ua.Little=0,Ua.Big=1,Ua[Ua.Little]="Little",Ua[Ua.Big]="Big";var Ba=function(){function t(){}return t.prototype.write=function(){},t.prototype.load=function(){},t.prototype.digest=function(){},t.prototype.createNameMapper=function(){return null},t}(),Ha=function(t){function e(e,r){var n=t.call(this)||this;return n.mapName=r,n.internalToPublic={},n.publicToNextId={},n.publicToInternal={},e.nodes.forEach(function(t){return t.visit(n)}),n}return Zn(e,t),e.prototype.toPublicName=function(t){return this.internalToPublic.hasOwnProperty(t)?this.internalToPublic[t]:null},e.prototype.toInternalName=function(t){return this.publicToInternal.hasOwnProperty(t)?this.publicToInternal[t]:null},e.prototype.visitText=function(){return null},e.prototype.visitTagPlaceholder=function(e,r){this.visitPlaceholderName(e.startName),t.prototype.visitTagPlaceholder.call(this,e,r),this.visitPlaceholderName(e.closeName)},e.prototype.visitPlaceholder=function(t){this.visitPlaceholderName(t.name)},e.prototype.visitIcuPlaceholder=function(t){this.visitPlaceholderName(t.name)},e.prototype.visitPlaceholderName=function(t){if(t&&!this.internalToPublic.hasOwnProperty(t)){var e=this.mapName(t);if(this.publicToInternal.hasOwnProperty(e)){var r=this.publicToNextId[e];this.publicToNextId[e]=r+1,e=e+"_"+r}else this.publicToNextId[e]=1;this.internalToPublic[t]=e,this.publicToInternal[e]=t}},e}(_a),qa=function(){function t(){}return t.prototype.visitTag=function(t){var e=this,r=this._serializeAttributes(t.attrs);if(0==t.children.length)return"<"+t.name+r+"/>";var n=t.children.map(function(t){return t.visit(e)});return"<"+t.name+r+">"+n.join("")+"</"+t.name+">"},t.prototype.visitText=function(t){return t.value},t.prototype.visitDeclaration=function(t){return"<?xml"+this._serializeAttributes(t.attrs)+" ?>"},t.prototype._serializeAttributes=function(t){var e=Object.keys(t).map(function(e){return e+'="'+t[e]+'"'}).join(" ");return e.length>0?" "+e:""},t.prototype.visitDoctype=function(t){return"<!DOCTYPE "+t.rootTag+" [\n"+t.dtd+"\n]>"},t}(),za=new qa,Ga=function(){function t(t){var e=this;this.attrs={},Object.keys(t).forEach(function(r){e.attrs[r]=ie(t[r])})}return t.prototype.visit=function(t){return t.visitDeclaration(this)},t}(),Wa=function(){function t(t,e){this.rootTag=t,this.dtd=e}return t.prototype.visit=function(t){return t.visitDoctype(this)},t}(),$a=function(){function t(t,e,r){void 0===e&&(e={}),void 0===r&&(r=[]);var n=this;this.name=t,this.children=r,this.attrs={},Object.keys(e).forEach(function(t){n.attrs[t]=ie(e[t])})}return t.prototype.visit=function(t){return t.visitTag(this)},t}(),Ka=function(){function t(t){this.value=ie(t)}return t.prototype.visit=function(t){return t.visitText(this)},t}(),Qa=function(t){function e(e){return void 0===e&&(e=0),t.call(this,"\n"+new Array(e+1).join(" "))||this}return Zn(e,t),e}(Ka),Xa=[[/&/g,"&"],[/"/g,"""],[/'/g,"'"],[/</g,"<"],[/>/g,">"]],Za="1.2",Ya="urn:oasis:names:tc:xliff:document:1.2",Ja="en",tu="x",eu="file",ru="source",nu="target",ou="trans-unit",iu="context-group",su="context",au=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Zn(e,t),e.prototype.write=function(t,e){var r=new uu,n=[];t.forEach(function(t){var e=[];t.sources.forEach(function(t){var r=new $a(iu,{purpose:"location"});r.children.push(new Qa(10),new $a(su,{"context-type":"sourcefile"},[new Ka(t.filePath)]),new Qa(10),new $a(su,{"context-type":"linenumber"},[new Ka(""+t.startLine)]),new Qa(8)),e.push(new Qa(8),r)});var o=new $a(ou,{id:t.id,datatype:"html"});(i=o.children).push.apply(i,[new Qa(8),new $a(ru,{},r.serialize(t.nodes)),new Qa(8),new $a(nu)].concat(e)),t.description&&o.children.push(new Qa(8),new $a("note",{priority:"1",from:"description"},[new Ka(t.description)])),t.meaning&&o.children.push(new Qa(8),new $a("note",{priority:"1",from:"meaning"},[new Ka(t.meaning)])),o.children.push(new Qa(6)),n.push(new Qa(6),o);var i});var o=new $a("body",{},n.concat([new Qa(4)])),i=new $a("file",{"source-language":e||Ja,datatype:"plaintext",original:"ng2.template"},[new Qa(4),o,new Qa(2)]),s=new $a("xliff",{version:Za,xmlns:Ya},[new Qa(2),i,new Qa]);return oe([new Ga({version:"1.0",encoding:"UTF-8"}),new Qa,s,new Qa])},e.prototype.load=function(t,e){var r=new cu,n=r.parse(t,e),o=n.locale,i=n.msgIdToHtml,s=n.errors,a={},u=new lu;if(Object.keys(i).forEach(function(t){var r=u.convert(i[t],e),n=r.i18nNodes,o=r.errors;s.push.apply(s,o),a[t]=n}),s.length)throw new Error("xliff parse errors:\n"+s.join("\n"));return{locale:o,i18nNodesByMsgId:a}},e.prototype.digest=function(t){return Nt(t)},e}(Ba),uu=function(){function t(){}return t.prototype.visitText=function(t){return[new Ka(t.value)]},t.prototype.visitContainer=function(t){var e=this,r=[];return t.children.forEach(function(t){return r.push.apply(r,t.visit(e))}),r},t.prototype.visitIcu=function(t){var e=this,r=[new Ka("{"+t.expressionPlaceholder+", "+t.type+", ")];return Object.keys(t.cases).forEach(function(n){r.push.apply(r,[new Ka(n+" {")].concat(t.cases[n].visit(e),[new Ka("} ")]))}),r.push(new Ka("}")),r},t.prototype.visitTagPlaceholder=function(t){var e=se(t.tag),r=new $a(tu,{id:t.startName,ctype:e});if(t.isVoid)return[r];var n=new $a(tu,{id:t.closeName,ctype:e});return[r].concat(this.serialize(t.children),[n])},t.prototype.visitPlaceholder=function(t){return[new $a(tu,{id:t.name})]},t.prototype.visitIcuPlaceholder=function(t){return[new $a(tu,{id:t.name})]},t.prototype.serialize=function(t){var e=this;return[].concat.apply([],t.map(function(t){return t.visit(e)}))},t}(),cu=function(){function t(){this._locale=null}return t.prototype.parse=function(t,e){this._unitMlString=null,this._msgIdToHtml={};var r=(new ja).parse(t,e,!1);return this._errors=r.errors,lt(this,r.rootNodes,null),{msgIdToHtml:this._msgIdToHtml,errors:this._errors,locale:this._locale}},t.prototype.visitElement=function(t){switch(t.name){case ou:this._unitMlString=null;var e=t.attrs.find(function(t){return"id"===t.name});if(e){var r=e.value;this._msgIdToHtml.hasOwnProperty(r)?this._addError(t,"Duplicated translations for msg "+r):(lt(this,t.children,null),"string"==typeof this._unitMlString?this._msgIdToHtml[r]=this._unitMlString:this._addError(t,"Message "+r+" misses a translation"))}else this._addError(t,"<"+ou+'> misses the "id" attribute');break;case ru:break;case nu:var n=t.startSourceSpan.end.offset,o=t.endSourceSpan.start.offset,i=t.startSourceSpan.start.file.content,s=i.slice(n,o);this._unitMlString=s;break;case eu:var a=t.attrs.find(function(t){return"target-language"===t.name});a&&(this._locale=a.value),lt(this,t.children,null);break;default:lt(this,t.children,null)}},t.prototype.visitAttribute=function(){},t.prototype.visitText=function(){},t.prototype.visitComment=function(){},t.prototype.visitExpansion=function(){},t.prototype.visitExpansionCase=function(){},t.prototype._addError=function(t,e){this._errors.push(new xa(t.sourceSpan,e))},t}(),lu=function(){function t(){}return t.prototype.convert=function(t,e){var r=(new ja).parse(t,e,!0);this._errors=r.errors;var n=this._errors.length>0||0==r.rootNodes.length?[]:lt(this,r.rootNodes);return{i18nNodes:n,errors:this._errors}},t.prototype.visitText=function(t){return new ha(t.value,t.sourceSpan)},t.prototype.visitElement=function(t){if(t.name===tu){var e=t.attrs.find(function(t){return"id"===t.name});if(e)return new ya("",e.value,t.sourceSpan);this._addError(t,"<"+tu+'> misses the "id" attribute')}else this._addError(t,"Unexpected tag");return null},t.prototype.visitExpansion=function(t){var e={};return lt(this,t.cases).forEach(function(r){e[r.value]=new fa(r.nodes,t.sourceSpan)}),new da(t.switchValue,t.type,e,t.sourceSpan)},t.prototype.visitExpansionCase=function(t){return{value:t.value,nodes:lt(this,t.expression)}},t.prototype.visitComment=function(){},t.prototype.visitAttribute=function(){},t.prototype._addError=function(t,e){this._errors.push(new xa(t.sourceSpan,e))},t}(),pu="2.0",hu="urn:oasis:names:tc:xliff:document:2.0",fu="en",du="ph",mu="pc",yu="xliff",vu="source",gu="target",_u="unit",bu=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Zn(e,t),e.prototype.write=function(t,e){var r=new wu,n=[];t.forEach(function(t){var e=new $a(_u,{id:t.id});if(t.description||t.meaning){var o=new $a("notes");t.description&&o.children.push(new Qa(8),new $a("note",{category:"description"},[new Ka(t.description)])),t.meaning&&o.children.push(new Qa(8),new $a("note",{category:"meaning"},[new Ka(t.meaning)])),o.children.push(new Qa(6)),e.children.push(new Qa(6),o)}var i=new $a("segment");i.children.push(new Qa(8),new $a(vu,{},r.serialize(t.nodes)),new Qa(6)),e.children.push(new Qa(6),i,new Qa(4)),n.push(new Qa(4),e)});var o=new $a("file",{original:"ng.template",id:"ngi18n"},n.concat([new Qa(2)])),i=new $a(yu,{version:pu,xmlns:hu,srcLang:e||fu},[new Qa(2),o,new Qa]);return oe([new Ga({version:"1.0",encoding:"UTF-8"}),new Qa,i,new Qa])},e.prototype.load=function(t,e){var r=new Cu,n=r.parse(t,e),o=n.locale,i=n.msgIdToHtml,s=n.errors,a={},u=new Eu;if(Object.keys(i).forEach(function(t){var r=u.convert(i[t],e),n=r.i18nNodes,o=r.errors;s.push.apply(s,o),a[t]=n}),s.length)throw new Error("xliff2 parse errors:\n"+s.join("\n"));return{locale:o,i18nNodesByMsgId:a}},e.prototype.digest=function(t){return Dt(t)},e}(Ba),wu=function(){function t(){}return t.prototype.visitText=function(t){return[new Ka(t.value)]},t.prototype.visitContainer=function(t){var e=this,r=[];return t.children.forEach(function(t){return r.push.apply(r,t.visit(e))}),r},t.prototype.visitIcu=function(t){var e=this,r=[new Ka("{"+t.expressionPlaceholder+", "+t.type+", ")];return Object.keys(t.cases).forEach(function(n){r.push.apply(r,[new Ka(n+" {")].concat(t.cases[n].visit(e),[new Ka("} ")]))}),r.push(new Ka("}")),r},t.prototype.visitTagPlaceholder=function(t){var e=this,r=ae(t.tag);if(t.isVoid){var n=new $a(du,{id:(this._nextPlaceholderId++).toString(),equiv:t.startName,type:r,disp:"<"+t.tag+"/>"});return[n]}var o=new $a(mu,{id:(this._nextPlaceholderId++).toString(),equivStart:t.startName,equivEnd:t.closeName,type:r,dispStart:"<"+t.tag+">",dispEnd:"</"+t.tag+">"}),i=[].concat.apply([],t.children.map(function(t){return t.visit(e)}));return i.length?i.forEach(function(t){return o.children.push(t)}):o.children.push(new Ka("")),[o]},t.prototype.visitPlaceholder=function(t){return[new $a(du,{id:(this._nextPlaceholderId++).toString(),equiv:t.name,disp:"{{"+t.value+"}}"})]},t.prototype.visitIcuPlaceholder=function(){return[new $a(du,{id:(this._nextPlaceholderId++).toString()})]},t.prototype.serialize=function(t){var e=this;return this._nextPlaceholderId=0,[].concat.apply([],t.map(function(t){return t.visit(e)}))},t}(),Cu=function(){function t(){this._locale=null}return t.prototype.parse=function(t,e){this._unitMlString=null,this._msgIdToHtml={};var r=(new ja).parse(t,e,!1);return this._errors=r.errors,lt(this,r.rootNodes,null),{msgIdToHtml:this._msgIdToHtml,errors:this._errors,locale:this._locale}},t.prototype.visitElement=function(t){switch(t.name){case _u:this._unitMlString=null;var e=t.attrs.find(function(t){return"id"===t.name});if(e){var r=e.value;this._msgIdToHtml.hasOwnProperty(r)?this._addError(t,"Duplicated translations for msg "+r):(lt(this,t.children,null),"string"==typeof this._unitMlString?this._msgIdToHtml[r]=this._unitMlString:this._addError(t,"Message "+r+" misses a translation"))}else this._addError(t,"<"+_u+'> misses the "id" attribute');break;case vu:break;case gu:var n=t.startSourceSpan.end.offset,o=t.endSourceSpan.start.offset,i=t.startSourceSpan.start.file.content,s=i.slice(n,o);this._unitMlString=s;break;case yu:var a=t.attrs.find(function(t){return"trgLang"===t.name});a&&(this._locale=a.value);var u=t.attrs.find(function(t){return"version"===t.name});if(u){var c=u.value;"2.0"!==c?this._addError(t,"The XLIFF file version "+c+" is not compatible with XLIFF 2.0 serializer"):lt(this,t.children,null)}break;default:lt(this,t.children,null)}},t.prototype.visitAttribute=function(){},t.prototype.visitText=function(){},t.prototype.visitComment=function(){},t.prototype.visitExpansion=function(){},t.prototype.visitExpansionCase=function(){},t.prototype._addError=function(t,e){this._errors.push(new xa(t.sourceSpan,e))},t}(),Eu=function(){function t(){}return t.prototype.convert=function(t,e){var r=(new ja).parse(t,e,!0);this._errors=r.errors;var n=this._errors.length>0||0==r.rootNodes.length?[]:[].concat.apply([],lt(this,r.rootNodes));return{i18nNodes:n,errors:this._errors}},t.prototype.visitText=function(t){return new ha(t.value,t.sourceSpan)},t.prototype.visitElement=function(t){var e=this;switch(t.name){case du:var r=t.attrs.find(function(t){return"equiv"===t.name});if(r)return[new ya("",r.value,t.sourceSpan)];this._addError(t,"<"+du+'> misses the "equiv" attribute');break;case mu:var n=t.attrs.find(function(t){return"equivStart"===t.name}),o=t.attrs.find(function(t){return"equivEnd"===t.name});if(n){if(o){var i=n.value,s=o.value,a=[];return a.concat.apply(a,[new ya("",i,t.sourceSpan)].concat(t.children.map(function(t){return t.visit(e,null)}),[new ya("",s,t.sourceSpan)]))}this._addError(t,"<"+du+'> misses the "equivEnd" attribute')}else this._addError(t,"<"+du+'> misses the "equivStart" attribute');break;default:this._addError(t,"Unexpected tag")}return null},t.prototype.visitExpansion=function(t){var e={};return lt(this,t.cases).forEach(function(r){e[r.value]=new fa(r.nodes,t.sourceSpan)}),new da(t.switchValue,t.type,e,t.sourceSpan)},t.prototype.visitExpansionCase=function(t){return{value:t.value,nodes:[].concat.apply([],lt(this,t.expression))}},t.prototype.visitComment=function(){},t.prototype.visitAttribute=function(){},t.prototype._addError=function(t,e){this._errors.push(new xa(t.sourceSpan,e))},t}(),Su="messagebundle",xu="msg",Tu="ph",Pu="ex",Au="source",Ou='<!ELEMENT messagebundle (msg)*>\n<!ATTLIST messagebundle class CDATA #IMPLIED>\n\n<!ELEMENT msg (#PCDATA|ph|source)*>\n<!ATTLIST msg id CDATA #IMPLIED>\n<!ATTLIST msg seq CDATA #IMPLIED>\n<!ATTLIST msg name CDATA #IMPLIED>\n<!ATTLIST msg desc CDATA #IMPLIED>\n<!ATTLIST msg meaning CDATA #IMPLIED>\n<!ATTLIST msg obsolete (obsolete) #IMPLIED>\n<!ATTLIST msg xml:space (default|preserve) "default">\n<!ATTLIST msg is_hidden CDATA #IMPLIED>\n\n<!ELEMENT source (#PCDATA)>\n\n<!ELEMENT ph (#PCDATA|ex)*>\n<!ATTLIST ph name CDATA #REQUIRED>\n\n<!ELEMENT ex (#PCDATA)>',Mu=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Zn(e,t),e.prototype.write=function(t){var e=new ku,r=new Ru,n=new $a(Su);return t.forEach(function(t){var e={id:t.id};t.description&&(e.desc=t.description),t.meaning&&(e.meaning=t.meaning);var o=[];t.sources.forEach(function(t){o.push(new $a(Au,{},[new Ka(t.filePath+":"+t.startLine+(t.endLine!==t.startLine?","+t.endLine:""))]))}),n.children.push(new Qa(2),new $a(xu,e,o.concat(r.serialize(t.nodes))))}),n.children.push(new Qa),oe([new Ga({version:"1.0",encoding:"UTF-8"}),new Qa,new Wa(Su,Ou),new Qa,e.addDefaultExamples(n),new Qa])},e.prototype.load=function(){throw new Error("Unsupported")},e.prototype.digest=function(t){return ue(t)},e.prototype.createNameMapper=function(t){return new Ha(t,ce)},e}(Ba),Ru=function(){function t(){}return t.prototype.visitText=function(t){return[new Ka(t.value)]},t.prototype.visitContainer=function(t){var e=this,r=[];return t.children.forEach(function(t){return r.push.apply(r,t.visit(e))}),r},t.prototype.visitIcu=function(t){var e=this,r=[new Ka("{"+t.expressionPlaceholder+", "+t.type+", ")];return Object.keys(t.cases).forEach(function(n){r.push.apply(r,[new Ka(n+" {")].concat(t.cases[n].visit(e),[new Ka("} ")]))}),r.push(new Ka("}")),r},t.prototype.visitTagPlaceholder=function(t){var e=new $a(Pu,{},[new Ka("<"+t.tag+">")]),r=new $a(Tu,{name:t.startName},[e]);if(t.isVoid)return[r];var n=new $a(Pu,{},[new Ka("</"+t.tag+">")]),o=new $a(Tu,{name:t.closeName},[n]);return[r].concat(this.serialize(t.children),[o])},t.prototype.visitPlaceholder=function(t){return[new $a(Tu,{name:t.name})]},t.prototype.visitIcuPlaceholder=function(t){return[new $a(Tu,{name:t.name})]},t.prototype.serialize=function(t){var e=this;return[].concat.apply([],t.map(function(t){return t.visit(e)}))},t}(),ku=function(){function t(){}return t.prototype.addDefaultExamples=function(t){return t.visit(this),t},t.prototype.visitTag=function(t){var e=this;if(t.name===Tu){if(!t.children||0==t.children.length){var r=new Ka(t.attrs.name||"...");t.children=[new $a(Pu,{},[r])]}}else t.children&&t.children.forEach(function(t){return t.visit(e)})},t.prototype.visitText=function(){},t.prototype.visitDeclaration=function(){},t.prototype.visitDoctype=function(){},t}(),Iu="translationbundle",Nu="translation",Du="ph",ju=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Zn(e,t),e.prototype.write=function(){throw new Error("Unsupported")},e.prototype.load=function(t,e){var r=new Lu,n=r.parse(t,e),o=n.locale,i=n.msgIdToHtml,s=n.errors,a={},u=new Vu;if(Object.keys(i).forEach(function(t){var r=function(){var r=u.convert(i[t],e),n=r.i18nNodes,o=r.errors;if(o.length)throw new Error("xtb parse errors:\n"+o.join("\n"));return n};le(a,t,r)}),s.length)throw new Error("xtb parse errors:\n"+s.join("\n"));return{locale:o,i18nNodesByMsgId:a}},e.prototype.digest=function(t){return ue(t)},e.prototype.createNameMapper=function(t){return new Ha(t,ce)},e}(Ba),Lu=function(){function t(){this._locale=null}return t.prototype.parse=function(t,e){this._bundleDepth=0,this._msgIdToHtml={};var r=(new ja).parse(t,e,!1);return this._errors=r.errors,lt(this,r.rootNodes),{msgIdToHtml:this._msgIdToHtml,errors:this._errors,locale:this._locale}},t.prototype.visitElement=function(t){switch(t.name){case Iu:this._bundleDepth++,this._bundleDepth>1&&this._addError(t,"<"+Iu+"> elements can not be nested");var e=t.attrs.find(function(t){return"lang"===t.name});e&&(this._locale=e.value),lt(this,t.children,null),this._bundleDepth--;break;case Nu:var r=t.attrs.find(function(t){return"id"===t.name});if(r){var n=r.value;if(this._msgIdToHtml.hasOwnProperty(n))this._addError(t,"Duplicated translations for msg "+n);else{var o=t.startSourceSpan.end.offset,i=t.endSourceSpan.start.offset,s=t.startSourceSpan.start.file.content,a=s.slice(o,i);this._msgIdToHtml[n]=a}}else this._addError(t,"<"+Nu+'> misses the "id" attribute');break;default:this._addError(t,"Unexpected tag")}},t.prototype.visitAttribute=function(){},t.prototype.visitText=function(){},t.prototype.visitComment=function(){},t.prototype.visitExpansion=function(){},t.prototype.visitExpansionCase=function(){},t.prototype._addError=function(t,e){this._errors.push(new xa(t.sourceSpan,e))},t}(),Vu=function(){function t(){}return t.prototype.convert=function(t,e){var r=(new ja).parse(t,e,!0);this._errors=r.errors;var n=this._errors.length>0||0==r.rootNodes.length?[]:lt(this,r.rootNodes);return{i18nNodes:n,errors:this._errors}},t.prototype.visitText=function(t){return new ha(t.value,t.sourceSpan)},t.prototype.visitExpansion=function(t){var e={};return lt(this,t.cases).forEach(function(r){e[r.value]=new fa(r.nodes,t.sourceSpan)}),new da(t.switchValue,t.type,e,t.sourceSpan)},t.prototype.visitExpansionCase=function(t){return{value:t.value,nodes:lt(this,t.expression)}},t.prototype.visitElement=function(t){if(t.name===Du){var e=t.attrs.find(function(t){return"name"===t.name});if(e)return new ya("",e.value,t.sourceSpan);this._addError(t,"<"+Du+'> misses the "name" attribute')}else this._addError(t,"Unexpected tag");return null},t.prototype.visitComment=function(){},t.prototype.visitAttribute=function(){},t.prototype._addError=function(t,e){this._errors.push(new xa(t.sourceSpan,e))},t}(),Fu=function(t){function e(){return t.call(this,c)||this}return Zn(e,t),e.prototype.parse=function(e,r,n,o){return void 0===n&&(n=!1),void 0===o&&(o=Rs),t.prototype.parse.call(this,e,r,n,o)},e}(ca);Fu.decorators=[{type:z}],Fu.ctorParameters=function(){return[]};var Uu=function(){function t(t,r,n,o,i,s){void 0===t&&(t={}),void 0===i&&(i=e.MissingTranslationStrategy.Warning),this._i18nNodesByMsgId=t,this.digest=n,this.mapperFactory=o,this._i18nToHtml=new Bu(t,r,n,o,i,s)}return t.load=function(e,r,n,o,i){var s=n.load(e,r),a=s.locale,u=s.i18nNodesByMsgId,c=function(t){return n.digest(t)},l=function(t){return n.createNameMapper(t)};return new t(u,a,c,l,o,i)},t.prototype.get=function(t){var e=this._i18nToHtml.convert(t);if(e.errors.length)throw new Error(e.errors.join("\n"));return e.nodes},t.prototype.has=function(t){return this.digest(t)in this._i18nNodesByMsgId},t}(),Bu=function(){function t(t,e,r,n,o,i){void 0===t&&(t={}),this._i18nNodesByMsgId=t,this._locale=e,this._digest=r,this._mapperFactory=n,this._missingTranslationStrategy=o,this._console=i,this._contextStack=[],this._errors=[]}return t.prototype.convert=function(t){this._contextStack.length=0,this._errors.length=0;var e=this._convertToText(t),r=t.nodes[0].sourceSpan.start.file.url,n=(new Fu).parse(e,r,!0);return{nodes:n.rootNodes,errors:this._errors.concat(n.errors)}},t.prototype.visitText=function(t){return t.value},t.prototype.visitContainer=function(t){var e=this;return t.children.map(function(t){return t.visit(e)}).join("")},t.prototype.visitIcu=function(t){var e=this,r=Object.keys(t.cases).map(function(r){return r+" {"+t.cases[r].visit(e)+"}"}),n=this._srcMsg.placeholders.hasOwnProperty(t.expression)?this._srcMsg.placeholders[t.expression]:t.expression;return"{"+n+", "+t.type+", "+r.join(" ")+"}"},t.prototype.visitPlaceholder=function(t){var e=this._mapper(t.name);return this._srcMsg.placeholders.hasOwnProperty(e)?this._srcMsg.placeholders[e]:this._srcMsg.placeholderToMessage.hasOwnProperty(e)?this._convertToText(this._srcMsg.placeholderToMessage[e]):(this._addError(t,'Unknown placeholder "'+t.name+'"'),"")},t.prototype.visitTagPlaceholder=function(t){var e=this,r=""+t.tag,n=Object.keys(t.attrs).map(function(e){return e+'="'+t.attrs[e]+'"'}).join(" ");if(t.isVoid)return"<"+r+" "+n+"/>";var o=t.children.map(function(t){return t.visit(e)}).join("");return"<"+r+" "+n+">"+o+"</"+r+">"},t.prototype.visitIcuPlaceholder=function(t){return this._convertToText(this._srcMsg.placeholderToMessage[t.name])},t.prototype._convertToText=function(t){var r,n=this,o=this._digest(t),i=this._mapperFactory?this._mapperFactory(t):null;if(this._contextStack.push({msg:this._srcMsg,mapper:this._mapper}),this._srcMsg=t,this._i18nNodesByMsgId.hasOwnProperty(o))r=this._i18nNodesByMsgId[o],this._mapper=function(t){return i?i.toInternalName(t):t};else{if(this._missingTranslationStrategy===e.MissingTranslationStrategy.Error){var s=this._locale?' for locale "'+this._locale+'"':"";this._addError(t.nodes[0],'Missing translation for message "'+o+'"'+s)}else if(this._console&&this._missingTranslationStrategy===e.MissingTranslationStrategy.Warning){var s=this._locale?' for locale "'+this._locale+'"':"";this._console.warn('Missing translation for message "'+o+'"'+s)}r=t.nodes,this._mapper=function(t){return t}}var a=r.map(function(t){return t.visit(n)}).join(""),u=this._contextStack.pop();return this._srcMsg=u.msg,this._mapper=u.mapper,a},t.prototype._addError=function(t,e){this._errors.push(new xa(t.sourceSpan,e))},t}(),Hu=function(){function t(t,r,n,o,i){if(void 0===o&&(o=e.MissingTranslationStrategy.Warning),this._htmlParser=t,r){var s=pe(n);this._translationBundle=Uu.load(r,"i18n",s,o,i)}}return t.prototype.parse=function(t,e,r,n){void 0===r&&(r=!1),void 0===n&&(n=Rs);var o=this._htmlParser.parse(t,e,r,n);return this._translationBundle?o.errors.length?new ua(o.rootNodes,o.errors):At(o.rootNodes,this._translationBundle,n,[],{}):o},t}(),qu=he("core"),zu=function(){function t(){}return t}();zu.ANALYZE_FOR_ENTRY_COMPONENTS={name:"ANALYZE_FOR_ENTRY_COMPONENTS",moduleUrl:qu,runtime:e.ANALYZE_FOR_ENTRY_COMPONENTS},zu.ElementRef={name:"ElementRef",moduleUrl:qu,runtime:e.ElementRef},zu.NgModuleRef={name:"NgModuleRef",moduleUrl:qu,runtime:e.NgModuleRef},zu.ViewContainerRef={name:"ViewContainerRef",moduleUrl:qu,runtime:e.ViewContainerRef},zu.ChangeDetectorRef={name:"ChangeDetectorRef",moduleUrl:qu,runtime:e.ChangeDetectorRef},zu.QueryList={name:"QueryList",moduleUrl:qu,runtime:e.QueryList},zu.TemplateRef={name:"TemplateRef",moduleUrl:qu,runtime:e.TemplateRef},zu.CodegenComponentFactoryResolver={name:"ɵCodegenComponentFactoryResolver",moduleUrl:qu,runtime:e.ɵCodegenComponentFactoryResolver},zu.ComponentFactoryResolver={name:"ComponentFactoryResolver",moduleUrl:qu,runtime:e.ComponentFactoryResolver},zu.ComponentFactory={name:"ComponentFactory",moduleUrl:qu,runtime:e.ComponentFactory},zu.ComponentRef={name:"ComponentRef",moduleUrl:qu,runtime:e.ComponentRef},zu.NgModuleFactory={name:"NgModuleFactory",moduleUrl:qu,runtime:e.NgModuleFactory},zu.NgModuleInjector={name:"ɵNgModuleInjector",moduleUrl:qu,runtime:e.ɵNgModuleInjector},zu.RegisterModuleFactoryFn={name:"ɵregisterModuleFactory",moduleUrl:qu,runtime:e.ɵregisterModuleFactory},zu.Injector={name:"Injector",moduleUrl:qu,runtime:e.Injector},zu.ViewEncapsulation={name:"ViewEncapsulation",moduleUrl:qu,runtime:e.ViewEncapsulation},zu.ChangeDetectionStrategy={name:"ChangeDetectionStrategy",moduleUrl:qu,runtime:e.ChangeDetectionStrategy},zu.SecurityContext={name:"SecurityContext",moduleUrl:qu,runtime:e.SecurityContext},zu.LOCALE_ID={name:"LOCALE_ID",moduleUrl:qu,runtime:e.LOCALE_ID},zu.TRANSLATIONS_FORMAT={name:"TRANSLATIONS_FORMAT",moduleUrl:qu,runtime:e.TRANSLATIONS_FORMAT},zu.inlineInterpolate={name:"ɵinlineInterpolate",moduleUrl:qu,runtime:e.ɵinlineInterpolate},zu.interpolate={name:"ɵinterpolate",moduleUrl:qu,runtime:e.ɵinterpolate},zu.EMPTY_ARRAY={name:"ɵEMPTY_ARRAY",moduleUrl:qu,runtime:e.ɵEMPTY_ARRAY},zu.EMPTY_MAP={name:"ɵEMPTY_MAP",moduleUrl:qu,runtime:e.ɵEMPTY_MAP},zu.Renderer={name:"Renderer",moduleUrl:qu,runtime:e.Renderer},zu.viewDef={name:"ɵvid",moduleUrl:qu,runtime:e.ɵvid},zu.elementDef={name:"ɵeld",moduleUrl:qu,runtime:e.ɵeld},zu.anchorDef={name:"ɵand",moduleUrl:qu,runtime:e.ɵand},zu.textDef={name:"ɵted",moduleUrl:qu,runtime:e.ɵted},zu.directiveDef={name:"ɵdid",moduleUrl:qu,runtime:e.ɵdid},zu.providerDef={name:"ɵprd",moduleUrl:qu,runtime:e.ɵprd},zu.queryDef={name:"ɵqud",moduleUrl:qu,runtime:e.ɵqud},zu.pureArrayDef={name:"ɵpad",moduleUrl:qu,runtime:e.ɵpad},zu.pureObjectDef={name:"ɵpod",moduleUrl:qu,runtime:e.ɵpod},zu.purePipeDef={name:"ɵppd",moduleUrl:qu,runtime:e.ɵppd},zu.pipeDef={name:"ɵpid",moduleUrl:qu,runtime:e.ɵpid},zu.nodeValue={name:"ɵnov",moduleUrl:qu,runtime:e.ɵnov},zu.ngContentDef={name:"ɵncd",moduleUrl:qu,runtime:e.ɵncd},zu.unwrapValue={name:"ɵunv",moduleUrl:qu,runtime:e.ɵunv},zu.createRendererType2={name:"ɵcrt",moduleUrl:qu,runtime:e.ɵcrt},zu.RendererType2={name:"RendererType2",moduleUrl:qu,runtime:null},zu.ViewDefinition={name:"ɵViewDefinition",moduleUrl:qu,runtime:null},zu.createComponentFactory={name:"ɵccf",moduleUrl:qu,runtime:e.ɵccf};var Gu=["zero","one","two","few","many","other"],Wu=function(){function t(t,e,r){this.nodes=t,this.expanded=e,this.errors=r}return t}(),$u=function(t){function e(e,r){return t.call(this,e,r)||this}return Zn(e,t),e}($s),Ku=function(){function t(){this.isExpanded=!1,this.errors=[]}return t.prototype.visitElement=function(t){return new Ys(t.name,t.attrs,lt(this,t.children),t.sourceSpan,t.startSourceSpan,t.endSourceSpan)},t.prototype.visitAttribute=function(t){return t},t.prototype.visitText=function(t){return t},t.prototype.visitComment=function(t){return t},t.prototype.visitExpansion=function(t){return this.isExpanded=!0,"plural"==t.type?ge(t,this.errors):_e(t,this.errors)},t.prototype.visitExpansionCase=function(){throw new Error("Should not be reached")},t}(),Qu=function(t){function e(e,r){return t.call(this,r,e)||this}return Zn(e,t),e}($s),Xu=function(){function t(t){var e=this;this.component=t,this.errors=[],this.viewQueries=Se(t),this.viewProviders=new Map,t.viewProviders.forEach(function(t){null==e.viewProviders.get(R(t.token))&&e.viewProviders.set(R(t.token),!0)})}return t}(),Zu=function(){function t(t,e,r,n,o,i,s,a,u){var c=this;this.viewContext=t,this._parent=e,this._isViewRoot=r,this._directiveAsts=n,this._sourceSpan=u,this._transformedProviders=new Map,this._seenProviders=new Map,this._hasViewContainer=!1,this._queriedTokens=new Map,this._attrs={},o.forEach(function(t){return c._attrs[t.name]=t.value});var l=n.map(function(t){return t.directive});if(this._allProviders=Ce(l,u,t.errors),this._contentQueries=xe(a,l),Array.from(this._allProviders.values()).forEach(function(t){c._addQueryReadsTo(t.token,t.token,c._queriedTokens)}),s){var p=ye(zu.TemplateRef);this._addQueryReadsTo(p,p,this._queriedTokens)}i.forEach(function(t){var e=t.value||ye(zu.ElementRef);c._addQueryReadsTo({value:t.name},e,c._queriedTokens)}),this._queriedTokens.get(fe(zu.ViewContainerRef))&&(this._hasViewContainer=!0),Array.from(this._allProviders.values()).forEach(function(t){var e=t.eager||c._queriedTokens.get(R(t.token));e&&c._getOrCreateLocalProvider(t.providerType,t.token,!0)})}return t.prototype.afterElement=function(){var t=this;Array.from(this._allProviders.values()).forEach(function(e){t._getOrCreateLocalProvider(e.providerType,e.token,!1)})},Object.defineProperty(t.prototype,"transformProviders",{get:function(){return Array.from(this._transformedProviders.values())},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"transformedDirectiveAsts",{get:function(){var t=this.transformProviders.map(function(t){return t.token.identifier}),e=this._directiveAsts.slice();return e.sort(function(e,r){return t.indexOf(e.directive.type)-t.indexOf(r.directive.type)}),e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"transformedHasViewContainer",{get:function(){return this._hasViewContainer},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"queryMatches",{get:function(){var t=[];return this._queriedTokens.forEach(function(e){t.push.apply(t,e)}),t},enumerable:!0,configurable:!0}),t.prototype._addQueryReadsTo=function(t,e,r){this._getQueriesFor(t).forEach(function(t){var n=t.meta.read||e,o=R(n),i=r.get(o);i||(i=[],r.set(o,i)),i.push({queryId:t.queryId,value:n})})},t.prototype._getQueriesFor=function(t){for(var e,r=[],n=this,o=0;null!==n;)e=n._contentQueries.get(R(t)),e&&r.push.apply(r,e.filter(function(t){return t.meta.descendants||1>=o})),n._directiveAsts.length>0&&o++,n=n._parent;return e=this.viewContext.viewQueries.get(R(t)),e&&r.push.apply(r,e),r},t.prototype._getOrCreateLocalProvider=function(t,e,r){var n=this,o=this._allProviders.get(R(e));if(!o||(t===po.Directive||t===po.PublicService)&&o.providerType===po.PrivateService||(t===po.PrivateService||t===po.PublicService)&&o.providerType===po.Builtin)return null;var i=this._transformedProviders.get(R(e));if(i)return i;if(null!=this._seenProviders.get(R(e)))return this.viewContext.errors.push(new Qu("Cannot instantiate cyclic dependency! "+M(e),this._sourceSpan)),null;this._seenProviders.set(R(e),!0);var s=o.providers.map(function(t){var e=t.useValue,i=t.useExisting,s=void 0;if(null!=t.useExisting){var a=n._getDependency(o.providerType,{token:t.useExisting},r);null!=a.token?i=a.token:(i=null,e=a.value)}else if(t.useFactory){var u=t.deps||t.useFactory.diDeps;s=u.map(function(t){return n._getDependency(o.providerType,t,r)})}else if(t.useClass){var u=t.deps||t.useClass.diDeps;s=u.map(function(t){return n._getDependency(o.providerType,t,r)})}return be(t,{useExisting:i,useValue:e,deps:s})});return i=we(o,{eager:r,providers:s}),this._transformedProviders.set(R(e),i),i},t.prototype._getLocalDependency=function(t,e,r){if(void 0===r&&(r=!1),e.isAttribute){var n=this._attrs[e.token.value];return{isValue:!0,value:null==n?null:n}}if(null!=e.token){if(t===po.Directive||t===po.Component){if(R(e.token)===fe(zu.Renderer)||R(e.token)===fe(zu.ElementRef)||R(e.token)===fe(zu.ChangeDetectorRef)||R(e.token)===fe(zu.TemplateRef))return e;R(e.token)===fe(zu.ViewContainerRef)&&(this._hasViewContainer=!0)}if(R(e.token)===fe(zu.Injector))return e;if(null!=this._getOrCreateLocalProvider(t,e.token,r))return e}return null; -var r=new ra(t,this._currentTokenType,e);return this._currentTokenStart=null,this._currentTokenType=null,new ia(r)},t.prototype._advance=function(){if(this._index>=this._length)throw this._createError(ht(Ai),this._getSpan());this._peek===Mi?(this._line++,this._column=0):this._peek!==Mi&&this._peek!==Ii&&this._column++,this._index++,this._peek=this._index>=this._length?Ai:this._input.charCodeAt(this._index),this._nextPeek=this._index+1>=this._length?Ai:this._input.charCodeAt(this._index+1)},t.prototype._attemptCharCode=function(t){return this._peek===t?(this._advance(),!0):!1},t.prototype._attemptCharCodeCaseInsensitive=function(t){return wt(this._peek,t)?(this._advance(),!0):!1},t.prototype._requireCharCode=function(t){var e=this._getLocation();if(!this._attemptCharCode(t))throw this._createError(ht(this._peek),this._getSpan(e,e))},t.prototype._attemptStr=function(t){var e=t.length;if(this._index+e>this._length)return!1;for(var r=this._savePosition(),n=0;e>n;n++)if(!this._attemptCharCode(t.charCodeAt(n)))return this._restorePosition(r),!1;return!0},t.prototype._attemptStrCaseInsensitive=function(t){for(var e=0;e<t.length;e++)if(!this._attemptCharCodeCaseInsensitive(t.charCodeAt(e)))return!1;return!0},t.prototype._requireStr=function(t){var e=this._getLocation();if(!this._attemptStr(t))throw this._createError(ht(this._peek),this._getSpan(e))},t.prototype._attemptCharCodeUntilFn=function(t){for(;!t(this._peek);)this._advance()},t.prototype._requireCharCodeUntilFn=function(t,e){var r=this._getLocation();if(this._attemptCharCodeUntilFn(t),this._index-r.offset<e)throw this._createError(ht(this._peek),this._getSpan(r,r))},t.prototype._attemptUntilChar=function(t){for(;this._peek!==t;)this._advance()},t.prototype._readChar=function(t){if(t&&this._peek===Ui)return this._decodeEntity();var e=this._index;return this._advance(),this._input[e]},t.prototype._decodeEntity=function(){var t=this._getLocation();if(this._advance(),!this._attemptCharCode(Li)){var e=this._savePosition();if(this._attemptCharCodeUntilFn(gt),this._peek!=Zi)return this._restorePosition(e),"&";this._advance();var r=this._input.substring(t.offset+1,this._index-1),n=go[r];if(!n)throw this._createError(ft(r),this._getSpan(t));return n}var o=this._attemptCharCode(Cs)||this._attemptCharCode(as),i=this._getLocation().offset;if(this._attemptCharCodeUntilFn(vt),this._peek!=Zi)throw this._createError(ht(this._peek),this._getSpan());this._advance();var s=this._input.substring(i,this._index-1);try{var a=parseInt(s,o?16:10);return String.fromCharCode(a)}catch(u){var c=this._input.substring(t.offset+1,this._index-1);throw this._createError(ft(c),this._getSpan(t))}},t.prototype._consumeRawText=function(t,e,r){var n,o=this._getLocation();this._beginToken(t?ta.ESCAPABLE_RAW_TEXT:ta.RAW_TEXT,o);for(var i=[];;){if(n=this._getLocation(),this._attemptCharCode(e)&&r())break;for(this._index>n.offset&&i.push(this._input.substring(n.offset,this._index));this._peek!==e;)i.push(this._readChar(t))}return this._endToken([this._processCarriageReturns(i.join(""))],n)},t.prototype._consumeComment=function(t){var e=this;this._beginToken(ta.COMMENT_START,t),this._requireCharCode($i),this._endToken([]);var r=this._consumeRawText(!1,$i,function(){return e._attemptStr("->")});this._beginToken(ta.COMMENT_END,r.sourceSpan.end),this._endToken([])},t.prototype._consumeCdata=function(t){var e=this;this._beginToken(ta.CDATA_START,t),this._requireStr("CDATA["),this._endToken([]);var r=this._consumeRawText(!1,ps,function(){return e._attemptStr("]>")});this._beginToken(ta.CDATA_END,r.sourceSpan.end),this._endToken([])},t.prototype._consumeDocType=function(t){this._beginToken(ta.DOC_TYPE,t),this._attemptUntilChar(ts),this._advance(),this._endToken([this._input.substring(t.offset+2,this._index-1)])},t.prototype._consumePrefixAndName=function(){for(var t=this._index,e=null;this._peek!==Xi&&!yt(this._peek);)this._advance();var r;this._peek===Xi?(this._advance(),e=this._input.substring(t,this._index-1),r=this._index):r=t,this._requireCharCodeUntilFn(mt,this._index===r?1:0);var n=this._input.substring(r,this._index);return[e,n]},t.prototype._consumeTagOpen=function(t){var e,r,n=this._savePosition();try{if(!H(this._peek))throw this._createError(ht(this._peek),this._getSpan());var o=this._index;for(this._consumeTagOpenStart(t),e=this._input.substring(o,this._index),r=e.toLowerCase(),this._attemptCharCodeUntilFn(dt);this._peek!==Qi&&this._peek!==ts;)this._consumeAttributeName(),this._attemptCharCodeUntilFn(dt),this._attemptCharCode(Ji)&&(this._attemptCharCodeUntilFn(dt),this._consumeAttributeValue()),this._attemptCharCodeUntilFn(dt);this._consumeTagOpenEnd()}catch(i){if(i instanceof ia)return this._restorePosition(n),this._beginToken(ta.TEXT,t),void this._endToken(["<"]);throw i}var s=this._getTagDefinition(e).contentType;s===vo.RAW_TEXT?this._consumeRawTextWithTagClose(r,!1):s===vo.ESCAPABLE_RAW_TEXT&&this._consumeRawTextWithTagClose(r,!0)},t.prototype._consumeRawTextWithTagClose=function(t,e){var r=this,n=this._consumeRawText(e,Yi,function(){return r._attemptCharCode(Qi)?(r._attemptCharCodeUntilFn(dt),r._attemptStrCaseInsensitive(t)?(r._attemptCharCodeUntilFn(dt),r._attemptCharCode(ts)):!1):!1});this._beginToken(ta.TAG_CLOSE,n.sourceSpan.end),this._endToken([null,t])},t.prototype._consumeTagOpenStart=function(t){this._beginToken(ta.TAG_OPEN_START,t);var e=this._consumePrefixAndName();this._endToken(e)},t.prototype._consumeAttributeName=function(){this._beginToken(ta.ATTR_NAME);var t=this._consumePrefixAndName();this._endToken(t)},t.prototype._consumeAttributeValue=function(){this._beginToken(ta.ATTR_VALUE);var t;if(this._peek===Bi||this._peek===ji){var e=this._peek;this._advance();for(var r=[];this._peek!==e;)r.push(this._readChar(!0));t=r.join(""),this._advance()}else{var n=this._index;this._requireCharCodeUntilFn(mt,1),t=this._input.substring(n,this._index)}this._endToken([this._processCarriageReturns(t)])},t.prototype._consumeTagOpenEnd=function(){var t=this._attemptCharCode(Qi)?ta.TAG_OPEN_END_VOID:ta.TAG_OPEN_END;this._beginToken(t),this._requireCharCode(ts),this._endToken([])},t.prototype._consumeTagClose=function(t){this._beginToken(ta.TAG_CLOSE,t),this._attemptCharCodeUntilFn(dt);var e=this._consumePrefixAndName();this._attemptCharCodeUntilFn(dt),this._requireCharCode(ts),this._endToken(e)},t.prototype._consumeExpansionFormStart=function(){this._beginToken(ta.EXPANSION_FORM_START,this._getLocation()),this._requireCharCode(Ss),this._endToken([]),this._expansionCaseStack.push(ta.EXPANSION_FORM_START),this._beginToken(ta.RAW_TEXT,this._getLocation());var t=this._readUntil(Wi);this._endToken([t],this._getLocation()),this._requireCharCode(Wi),this._attemptCharCodeUntilFn(dt),this._beginToken(ta.RAW_TEXT,this._getLocation());var e=this._readUntil(Wi);this._endToken([e],this._getLocation()),this._requireCharCode(Wi),this._attemptCharCodeUntilFn(dt)},t.prototype._consumeExpansionCaseStart=function(){this._beginToken(ta.EXPANSION_CASE_VALUE,this._getLocation());var t=this._readUntil(Ss).trim();this._endToken([t],this._getLocation()),this._attemptCharCodeUntilFn(dt),this._beginToken(ta.EXPANSION_CASE_EXP_START,this._getLocation()),this._requireCharCode(Ss),this._endToken([],this._getLocation()),this._attemptCharCodeUntilFn(dt),this._expansionCaseStack.push(ta.EXPANSION_CASE_EXP_START)},t.prototype._consumeExpansionCaseEnd=function(){this._beginToken(ta.EXPANSION_CASE_EXP_END,this._getLocation()),this._requireCharCode(Ts),this._endToken([],this._getLocation()),this._attemptCharCodeUntilFn(dt),this._expansionCaseStack.pop()},t.prototype._consumeExpansionFormEnd=function(){this._beginToken(ta.EXPANSION_FORM_END,this._getLocation()),this._requireCharCode(Ts),this._endToken([]),this._expansionCaseStack.pop()},t.prototype._consumeText=function(){var t=this._getLocation();this._beginToken(ta.TEXT,t);var e=[];do this._interpolationConfig&&this._attemptStr(this._interpolationConfig.start)?(e.push(this._interpolationConfig.start),this._inInterpolation=!0):this._interpolationConfig&&this._inInterpolation&&this._attemptStr(this._interpolationConfig.end)?(e.push(this._interpolationConfig.end),this._inInterpolation=!1):e.push(this._readChar(!0));while(!this._isTextEnd());this._endToken([this._processCarriageReturns(e.join(""))])},t.prototype._isTextEnd=function(){if(this._peek===Yi||this._peek===Ai)return!0;if(this._tokenizeIcu&&!this._inInterpolation){if(_t(this._input,this._index,this._interpolationConfig))return!0;if(this._peek===Ts&&this._isInExpansionCase())return!0}return!1},t.prototype._savePosition=function(){return[this._peek,this._index,this._column,this._line,this.tokens.length]},t.prototype._readUntil=function(t){var e=this._index;return this._attemptUntilChar(t),this._input.substring(e,this._index)},t.prototype._restorePosition=function(t){this._peek=t[0],this._index=t[1],this._column=t[2],this._line=t[3];var e=t[4];e<this.tokens.length&&(this.tokens=this.tokens.slice(0,e))},t.prototype._isInExpansionCase=function(){return this._expansionCaseStack.length>0&&this._expansionCaseStack[this._expansionCaseStack.length-1]===ta.EXPANSION_CASE_EXP_START},t.prototype._isInExpansionForm=function(){return this._expansionCaseStack.length>0&&this._expansionCaseStack[this._expansionCaseStack.length-1]===ta.EXPANSION_FORM_START},t}(),aa=function(t){function e(e,r,n){var o=t.call(this,r,n)||this;return o.elementName=e,o}return Zn(e,t),e.create=function(t,r,n){return new e(t,r,n)},e}($s),ua=function(){function t(t,e){this.rootNodes=t,this.errors=e}return t}(),ca=function(){function t(t){this.getTagDefinition=t}return t.prototype.parse=function(t,e,r,n){void 0===r&&(r=!1),void 0===n&&(n=Rs);var o=pt(t,e,this.getTagDefinition,r,n),i=new la(o.tokens,this.getTagDefinition).build();return new ua(i.rootNodes,o.errors.concat(i.errors))},t}(),la=function(){function t(t,e){this.tokens=t,this.getTagDefinition=e,this._index=-1,this._rootNodes=[],this._errors=[],this._elementStack=[],this._advance()}return t.prototype.build=function(){for(;this._peek.type!==ta.EOF;)this._peek.type===ta.TAG_OPEN_START?this._consumeStartTag(this._advance()):this._peek.type===ta.TAG_CLOSE?this._consumeEndTag(this._advance()):this._peek.type===ta.CDATA_START?(this._closeVoidElement(),this._consumeCdata(this._advance())):this._peek.type===ta.COMMENT_START?(this._closeVoidElement(),this._consumeComment(this._advance())):this._peek.type===ta.TEXT||this._peek.type===ta.RAW_TEXT||this._peek.type===ta.ESCAPABLE_RAW_TEXT?(this._closeVoidElement(),this._consumeText(this._advance())):this._peek.type===ta.EXPANSION_FORM_START?this._consumeExpansion(this._advance()):this._advance();return new ua(this._rootNodes,this._errors)},t.prototype._advance=function(){var t=this._peek;return this._index<this.tokens.length-1&&this._index++,this._peek=this.tokens[this._index],t},t.prototype._advanceIf=function(t){return this._peek.type===t?this._advance():null},t.prototype._consumeCdata=function(){this._consumeText(this._advance()),this._advanceIf(ta.CDATA_END)},t.prototype._consumeComment=function(t){var e=this._advanceIf(ta.RAW_TEXT);this._advanceIf(ta.COMMENT_END);var r=null!=e?e.parts[0].trim():null;this._addToParent(new Js(r,t.sourceSpan))},t.prototype._consumeExpansion=function(t){for(var e=this._advance(),r=this._advance(),n=[];this._peek.type===ta.EXPANSION_CASE_VALUE;){var o=this._parseExpansionCase();if(!o)return;n.push(o)}if(this._peek.type!==ta.EXPANSION_FORM_END)return void this._errors.push(aa.create(null,this._peek.sourceSpan,"Invalid ICU message. Missing '}'."));var i=new Gs(t.sourceSpan.start,this._peek.sourceSpan.end);this._addToParent(new Qs(e.parts[0],r.parts[0],n,i,e.sourceSpan)),this._advance()},t.prototype._parseExpansionCase=function(){var e=this._advance();if(this._peek.type!==ta.EXPANSION_CASE_EXP_START)return this._errors.push(aa.create(null,this._peek.sourceSpan,"Invalid ICU message. Missing '{'.")),null;var r=this._advance(),n=this._collectExpansionExpTokens(r);if(!n)return null;var o=this._advance();n.push(new ea(ta.EOF,[],o.sourceSpan));var i=new t(n,this.getTagDefinition).build();if(i.errors.length>0)return this._errors=this._errors.concat(i.errors),null;var s=new Gs(e.sourceSpan.start,o.sourceSpan.end),a=new Gs(r.sourceSpan.start,o.sourceSpan.end);return new Xs(e.parts[0],i.rootNodes,s,e.sourceSpan,a)},t.prototype._collectExpansionExpTokens=function(t){for(var e=[],r=[ta.EXPANSION_CASE_EXP_START];;){if((this._peek.type===ta.EXPANSION_FORM_START||this._peek.type===ta.EXPANSION_CASE_EXP_START)&&r.push(this._peek.type),this._peek.type===ta.EXPANSION_CASE_EXP_END){if(!St(r,ta.EXPANSION_CASE_EXP_START))return this._errors.push(aa.create(null,t.sourceSpan,"Invalid ICU message. Missing '}'.")),null;if(r.pop(),0==r.length)return e}if(this._peek.type===ta.EXPANSION_FORM_END){if(!St(r,ta.EXPANSION_FORM_START))return this._errors.push(aa.create(null,t.sourceSpan,"Invalid ICU message. Missing '}'.")),null;r.pop()}if(this._peek.type===ta.EOF)return this._errors.push(aa.create(null,t.sourceSpan,"Invalid ICU message. Missing '}'.")),null;e.push(this._advance())}},t.prototype._consumeText=function(t){var e=t.parts[0];if(e.length>0&&"\n"==e[0]){var r=this._getParentElement();null!=r&&0==r.children.length&&this.getTagDefinition(r.name).ignoreFirstLf&&(e=e.substring(1))}e.length>0&&this._addToParent(new Ks(e,t.sourceSpan))},t.prototype._closeVoidElement=function(){if(this._elementStack.length>0){var t=this._elementStack[this._elementStack.length-1];this.getTagDefinition(t.name).isVoid&&this._elementStack.pop()}},t.prototype._consumeStartTag=function(t){for(var e=t.parts[0],r=t.parts[1],n=[];this._peek.type===ta.ATTR_NAME;)n.push(this._consumeAttr(this._advance()));var o=this._getElementFullName(e,r,this._getParentElement()),i=!1;if(this._peek.type===ta.TAG_OPEN_END_VOID){this._advance(),i=!0;var s=this.getTagDefinition(o);s.canSelfClose||null!==a(o)||s.isVoid||this._errors.push(aa.create(o,t.sourceSpan,'Only void and foreign elements can be self closed "'+t.parts[1]+'"'))}else this._peek.type===ta.TAG_OPEN_END&&(this._advance(),i=!1);var u=this._peek.sourceSpan.start,c=new Gs(t.sourceSpan.start,u),l=new Ys(o,n,[],c,c,void 0);this._pushElement(l),i&&(this._popElement(o),l.endSourceSpan=c)},t.prototype._pushElement=function(t){if(this._elementStack.length>0){var e=this._elementStack[this._elementStack.length-1];this.getTagDefinition(e.name).isClosedByChild(t.name)&&this._elementStack.pop()}var r=this.getTagDefinition(t.name),n=this._getParentElementSkippingContainers(),o=n.parent,i=n.container;if(o&&r.requireExtraParent(o.name)){var s=new Ys(r.parentToAdd,[],[],t.sourceSpan,t.startSourceSpan,t.endSourceSpan);this._insertBeforeContainer(o,i,s)}this._addToParent(t),this._elementStack.push(t)},t.prototype._consumeEndTag=function(t){var e=this._getElementFullName(t.parts[0],t.parts[1],this._getParentElement());if(this._getParentElement()&&(this._getParentElement().endSourceSpan=t.sourceSpan),this.getTagDefinition(e).isVoid)this._errors.push(aa.create(e,t.sourceSpan,'Void elements do not have end tags "'+t.parts[1]+'"'));else if(!this._popElement(e)){var r='Unexpected closing tag "'+e+'". It may happen when the tag has already been closed by another tag. For more info see https://www.w3.org/TR/html5/syntax.html#closing-elements-that-have-implied-end-tags';this._errors.push(aa.create(e,t.sourceSpan,r))}},t.prototype._popElement=function(t){for(var e=this._elementStack.length-1;e>=0;e--){var r=this._elementStack[e];if(r.name==t)return this._elementStack.splice(e,this._elementStack.length-e),!0;if(!this.getTagDefinition(r.name).closedByParent)return!1}return!1},t.prototype._consumeAttr=function(t){var e=u(t.parts[0],t.parts[1]),r=t.sourceSpan.end,n="",o=void 0;if(this._peek.type===ta.ATTR_VALUE){var i=this._advance();n=i.parts[0],r=i.sourceSpan.end,o=i.sourceSpan}return new Zs(e,n,new Gs(t.sourceSpan.start,r),o)},t.prototype._getParentElement=function(){return this._elementStack.length>0?this._elementStack[this._elementStack.length-1]:null},t.prototype._getParentElementSkippingContainers=function(){for(var t=null,e=this._elementStack.length-1;e>=0;e--){if(!o(this._elementStack[e].name))return{parent:this._elementStack[e],container:t};t=this._elementStack[e]}return{parent:this._elementStack[this._elementStack.length-1],container:t}},t.prototype._addToParent=function(t){var e=this._getParentElement();null!=e?e.children.push(t):this._rootNodes.push(t)},t.prototype._insertBeforeContainer=function(t,e,r){if(e){if(t){var n=t.children.indexOf(e);t.children[n]=r}else this._rootNodes.push(r);r.children.push(e),this._elementStack.splice(this._elementStack.indexOf(e),0,r)}else this._addToParent(r),this._elementStack.push(r)},t.prototype._getElementFullName=function(t,e,r){return null==t&&(t=this.getTagDefinition(e).implicitNamespacePrefix,null==t&&null!=r&&(t=a(r.name))),u(t,e)},t}(),pa=function(){function t(t,e,r,n,o,i){this.nodes=t,this.placeholders=e,this.placeholderToMessage=r,this.meaning=n,this.description=o,this.id=i,this.sources=t.length?[{filePath:t[0].sourceSpan.start.file.url,startLine:t[0].sourceSpan.start.line+1,startCol:t[0].sourceSpan.start.col+1,endLine:t[t.length-1].sourceSpan.end.line+1,endCol:t[0].sourceSpan.start.col+1}]:[]}return t}(),ha=function(){function t(t,e){this.value=t,this.sourceSpan=e}return t.prototype.visit=function(t,e){return t.visitText(this,e)},t}(),fa=function(){function t(t,e){this.children=t,this.sourceSpan=e}return t.prototype.visit=function(t,e){return t.visitContainer(this,e)},t}(),da=function(){function t(t,e,r,n){this.expression=t,this.type=e,this.cases=r,this.sourceSpan=n}return t.prototype.visit=function(t,e){return t.visitIcu(this,e)},t}(),ma=function(){function t(t,e,r,n,o,i,s){this.tag=t,this.attrs=e,this.startName=r,this.closeName=n,this.children=o,this.isVoid=i,this.sourceSpan=s}return t.prototype.visit=function(t,e){return t.visitTagPlaceholder(this,e)},t}(),ya=function(){function t(t,e,r){this.value=t,this.name=e,this.sourceSpan=r}return t.prototype.visit=function(t,e){return t.visitPlaceholder(this,e)},t}(),va=function(){function t(t,e,r){this.value=t,this.name=e,this.sourceSpan=r}return t.prototype.visit=function(t,e){return t.visitIcuPlaceholder(this,e)},t}(),ga=function(){function t(){}return t.prototype.visitText=function(t){return new ha(t.value,t.sourceSpan)},t.prototype.visitContainer=function(t,e){var r=this,n=t.children.map(function(t){return t.visit(r,e)});return new fa(n,t.sourceSpan)},t.prototype.visitIcu=function(t,e){var r=this,n={};Object.keys(t.cases).forEach(function(o){return n[o]=t.cases[o].visit(r,e)});var o=new da(t.expression,t.type,n,t.sourceSpan);return o.expressionPlaceholder=t.expressionPlaceholder,o},t.prototype.visitTagPlaceholder=function(t,e){var r=this,n=t.children.map(function(t){return t.visit(r,e)});return new ma(t.tag,t.attrs,t.startName,t.closeName,n,t.isVoid,t.sourceSpan)},t.prototype.visitPlaceholder=function(t){return new ya(t.value,t.name,t.sourceSpan)},t.prototype.visitIcuPlaceholder=function(t){return new va(t.value,t.name,t.sourceSpan)},t}(),_a=function(){function t(){}return t.prototype.visitText=function(){},t.prototype.visitContainer=function(t){var e=this;t.children.forEach(function(t){return t.visit(e)})},t.prototype.visitIcu=function(t){var e=this;Object.keys(t.cases).forEach(function(r){t.cases[r].visit(e)})},t.prototype.visitTagPlaceholder=function(t){var e=this;t.children.forEach(function(t){return t.visit(e)})},t.prototype.visitPlaceholder=function(){},t.prototype.visitIcuPlaceholder=function(){},t}(),ba={A:"LINK",B:"BOLD_TEXT",BR:"LINE_BREAK",EM:"EMPHASISED_TEXT",H1:"HEADING_LEVEL1",H2:"HEADING_LEVEL2",H3:"HEADING_LEVEL3",H4:"HEADING_LEVEL4",H5:"HEADING_LEVEL5",H6:"HEADING_LEVEL6",HR:"HORIZONTAL_RULE",I:"ITALIC_TEXT",LI:"LIST_ITEM",LINK:"MEDIA_LINK",OL:"ORDERED_LIST",P:"PARAGRAPH",Q:"QUOTATION",S:"STRIKETHROUGH_TEXT",SMALL:"SMALL_TEXT",SUB:"SUBSTRIPT",SUP:"SUPERSCRIPT",TBODY:"TABLE_BODY",TD:"TABLE_CELL",TFOOT:"TABLE_FOOTER",TH:"TABLE_HEADER_CELL",THEAD:"TABLE_HEADER",TR:"TABLE_ROW",TT:"MONOSPACED_TEXT",U:"UNDERLINED_TEXT",UL:"UNORDERED_LIST"},wa=function(){function t(){this._placeHolderNameCounts={},this._signatureToName={}}return t.prototype.getStartTagPlaceholderName=function(t,e,r){var n=this._hashTag(t,e,r);if(this._signatureToName[n])return this._signatureToName[n];var o=t.toUpperCase(),i=ba[o]||"TAG_"+o,s=this._generateUniqueName(r?i:"START_"+i);return this._signatureToName[n]=s,s},t.prototype.getCloseTagPlaceholderName=function(t){var e=this._hashClosingTag(t);if(this._signatureToName[e])return this._signatureToName[e];var r=t.toUpperCase(),n=ba[r]||"TAG_"+r,o=this._generateUniqueName("CLOSE_"+n);return this._signatureToName[e]=o,o},t.prototype.getPlaceholderName=function(t,e){var r=t.toUpperCase(),n="PH: "+r+"="+e;if(this._signatureToName[n])return this._signatureToName[n];var o=this._generateUniqueName(r);return this._signatureToName[n]=o,o},t.prototype.getUniquePlaceholder=function(t){return this._generateUniqueName(t.toUpperCase())},t.prototype._hashTag=function(t,e,r){var n="<"+t,o=Object.keys(e).sort().map(function(t){return" "+t+"="+e[t]}).join(""),i=r?"/>":"></"+t+">";return n+o+i},t.prototype._hashClosingTag=function(t){return this._hashTag("/"+t,{},!1)},t.prototype._generateUniqueName=function(t){var e=this._placeHolderNameCounts.hasOwnProperty(t);if(!e)return this._placeHolderNameCounts[t]=1,t;var r=this._placeHolderNameCounts[t];return this._placeHolderNameCounts[t]=r+1,t+"_"+r},t}(),Ca=new Us(new Ns),Ea=function(){function t(t,e){this._expressionParser=t,this._interpolationConfig=e}return t.prototype.toI18nMessage=function(t,e,r,n){this._isIcu=1==t.length&&t[0]instanceof Qs,this._icuDepth=0,this._placeholderRegistry=new wa,this._placeholderToContent={},this._placeholderToMessage={};var o=lt(this,t,{});return new pa(o,this._placeholderToContent,this._placeholderToMessage,e,r,n)},t.prototype.visitElement=function(t){var e=lt(this,t.children),r={};t.attrs.forEach(function(t){r[t.name]=t.value});var n=c(t.name).isVoid,o=this._placeholderRegistry.getStartTagPlaceholderName(t.name,r,n);this._placeholderToContent[o]=t.sourceSpan.toString();var i="";return n||(i=this._placeholderRegistry.getCloseTagPlaceholderName(t.name),this._placeholderToContent[i]="</"+t.name+">"),new ma(t.name,r,o,i,e,n,t.sourceSpan)},t.prototype.visitAttribute=function(t){return this._visitTextWithInterpolation(t.value,t.sourceSpan)},t.prototype.visitText=function(t){return this._visitTextWithInterpolation(t.value,t.sourceSpan)},t.prototype.visitComment=function(){return null},t.prototype.visitExpansion=function(e){var r=this;this._icuDepth++;var n={},o=new da(e.switchValue,e.type,n,e.sourceSpan);if(e.cases.forEach(function(t){n[t.value]=new fa(t.expression.map(function(t){return t.visit(r,{})}),t.expSourceSpan)}),this._icuDepth--,this._isIcu||this._icuDepth>0){var i=this._placeholderRegistry.getUniquePlaceholder("VAR_"+e.type);return o.expressionPlaceholder=i,this._placeholderToContent[i]=e.switchValue,o}var s=this._placeholderRegistry.getPlaceholderName("ICU",e.sourceSpan.toString()),a=new t(this._expressionParser,this._interpolationConfig);return this._placeholderToMessage[s]=a.toI18nMessage([e],"","",""),new va(o,s,e.sourceSpan)},t.prototype.visitExpansionCase=function(){throw new Error("Unreachable code")},t.prototype._visitTextWithInterpolation=function(t,e){var r=this._expressionParser.splitInterpolation(t,e.start.toString(),this._interpolationConfig);if(!r)return new ha(t,e);for(var n=[],o=new fa(n,e),i=this._interpolationConfig,s=i.start,a=i.end,u=0;u<r.strings.length-1;u++){var c=r.expressions[u],l=Tt(c)||"INTERPOLATION",p=this._placeholderRegistry.getPlaceholderName(l,c);r.strings[u].length&&n.push(new ha(r.strings[u],e)),n.push(new ya(c,p,e)),this._placeholderToContent[p]=s+c+a}var h=r.strings.length-1;return r.strings[h].length&&n.push(new ha(r.strings[h],e)),o},t}(),Sa=/\/\/[\s\S]*i18n[\s\S]*\([\s\S]*ph[\s\S]*=[\s\S]*("|')([\s\S]*?)\1[\s\S]*\)/g,xa=function(t){function e(e,r){return t.call(this,e,r)||this}return Zn(e,t),e}($s),Ta="i18n",Pa="i18n-",Aa=/^i18n:?/,Oa="|",Ma="@@",Ra=function(){function t(t,e){this.messages=t,this.errors=e}return t}(),ka={};ka.Extract=0,ka.Merge=1,ka[ka.Extract]="Extract",ka[ka.Merge]="Merge";var Ia=function(){function t(t,e){this._implicitTags=t,this._implicitAttrs=e}return t.prototype.extract=function(t,e){var r=this;return this._init(ka.Extract,e),t.forEach(function(t){return t.visit(r,null)}),this._inI18nBlock&&this._reportError(t[t.length-1],"Unclosed block"),new Ra(this._messages,this._errors)},t.prototype.merge=function(t,e,r){this._init(ka.Merge,r),this._translations=e;var n=new Ys("wrapper",[],t,void 0,void 0,void 0),o=n.visit(this,null);return this._inI18nBlock&&this._reportError(t[t.length-1],"Unclosed block"),new ua(o.children,this._errors)},t.prototype.visitExpansionCase=function(t,e){var r=lt(this,t.expression,e);return this._mode===ka.Merge?new Xs(t.value,r,t.sourceSpan,t.valueSourceSpan,t.expSourceSpan):void 0},t.prototype.visitExpansion=function(t,e){this._mayBeAddBlockChildren(t);var r=this._inIcu;this._inIcu||(this._isInTranslatableSection&&this._addMessage([t]),this._inIcu=!0);var n=lt(this,t.cases,e);return this._mode===ka.Merge&&(t=new Qs(t.switchValue,t.type,n,t.sourceSpan,t.switchValueSourceSpan)),this._inIcu=r,t},t.prototype.visitComment=function(t){var e=Ot(t);if(e&&this._isInTranslatableSection)return void this._reportError(t,"Could not start a block inside a translatable section");var r=Mt(t);if(r&&!this._inI18nBlock)return void this._reportError(t,"Trying to close an unopened block");if(!this._inI18nNode&&!this._inIcu)if(this._inI18nBlock){if(r){if(this._depth==this._blockStartDepth){this._closeTranslatableSection(t,this._blockChildren),this._inI18nBlock=!1;var n=this._addMessage(this._blockChildren,this._blockMeaningAndDesc),o=this._translateMessage(t,n);return lt(this,o)}return void this._reportError(t,"I18N blocks should not cross element boundaries")}}else e&&(this._inI18nBlock=!0,this._blockStartDepth=this._depth,this._blockChildren=[],this._blockMeaningAndDesc=t.value.replace(Aa,"").trim(),this._openTranslatableSection(t))},t.prototype.visitText=function(t){return this._isInTranslatableSection&&this._mayBeAddBlockChildren(t),t},t.prototype.visitElement=function(t,e){var r=this;this._mayBeAddBlockChildren(t),this._depth++;var n=this._inI18nNode,o=this._inImplicitNode,i=[],s=void 0,a=Rt(t),u=a?a.value:"",c=this._implicitTags.some(function(e){return t.name===e})&&!this._inIcu&&!this._isInTranslatableSection,l=!o&&c;if(this._inImplicitNode=o||c,this._isInTranslatableSection||this._inIcu)(a||l)&&this._reportError(t,"Could not mark an element as translatable inside a translatable section"),this._mode==ka.Extract&<(this,t.children);else{if(a||l){this._inI18nNode=!0;var p=this._addMessage(t.children,u);s=this._translateMessage(t,p)}if(this._mode==ka.Extract){var h=a||l;h&&this._openTranslatableSection(t),lt(this,t.children),h&&this._closeTranslatableSection(t,t.children)}}if(this._mode===ka.Merge){var f=s||t.children;f.forEach(function(t){var n=t.visit(r,e);n&&!r._isInTranslatableSection&&(i=i.concat(n))})}if(this._visitAttributesOf(t),this._depth--,this._inI18nNode=n,this._inImplicitNode=o,this._mode===ka.Merge){var d=this._translateAttributes(t);return new Ys(t.name,d,i,t.sourceSpan,t.startSourceSpan,t.endSourceSpan)}return null},t.prototype.visitAttribute=function(){throw new Error("unreachable code")},t.prototype._init=function(t,e){this._mode=t,this._inI18nBlock=!1,this._inI18nNode=!1,this._depth=0,this._inIcu=!1,this._msgCountAtSectionStart=void 0,this._errors=[],this._messages=[],this._inImplicitNode=!1,this._createI18nMessage=xt(e)},t.prototype._visitAttributesOf=function(t){var e=this,r={},n=this._implicitAttrs[t.name]||[];t.attrs.filter(function(t){return t.name.startsWith(Pa)}).forEach(function(t){return r[t.name.slice(Pa.length)]=t.value}),t.attrs.forEach(function(t){t.name in r?e._addMessage([t],r[t.name]):n.some(function(e){return t.name===e})&&e._addMessage([t])})},t.prototype._addMessage=function(t,e){if(0==t.length||1==t.length&&t[0]instanceof Zs&&!t[0].value)return null;var r=kt(e),n=r.meaning,o=r.description,i=r.id,s=this._createI18nMessage(t,n,o,i);return this._messages.push(s),s},t.prototype._translateMessage=function(t,e){if(e&&this._mode===ka.Merge){var r=this._translations.get(e);if(r)return r;this._reportError(t,'Translation unavailable for message id="'+this._translations.digest(e)+'"')}return[]},t.prototype._translateAttributes=function(t){var e=this,r=t.attrs,n={};r.forEach(function(t){t.name.startsWith(Pa)&&(n[t.name.slice(Pa.length)]=kt(t.value))});var o=[];return r.forEach(function(r){if(r.name!==Ta&&!r.name.startsWith(Pa))if(r.value&&""!=r.value&&n.hasOwnProperty(r.name)){var i=n[r.name],s=i.meaning,a=i.description,u=i.id,c=e._createI18nMessage([r],s,a,u),l=e._translations.get(c);if(l)if(0==l.length)o.push(new Zs(r.name,"",r.sourceSpan));else if(l[0]instanceof Ks){var p=l[0].value;o.push(new Zs(r.name,p,r.sourceSpan))}else e._reportError(t,'Unexpected translation for attribute "'+r.name+'" (id="'+(u||e._translations.digest(c))+'")');else e._reportError(t,'Translation unavailable for attribute "'+r.name+'" (id="'+(u||e._translations.digest(c))+'")')}else o.push(r)}),o},t.prototype._mayBeAddBlockChildren=function(t){this._inI18nBlock&&!this._inIcu&&this._depth==this._blockStartDepth&&this._blockChildren.push(t)},t.prototype._openTranslatableSection=function(t){this._isInTranslatableSection?this._reportError(t,"Unexpected section start"):this._msgCountAtSectionStart=this._messages.length},Object.defineProperty(t.prototype,"_isInTranslatableSection",{get:function(){return void 0!==this._msgCountAtSectionStart},enumerable:!0,configurable:!0}),t.prototype._closeTranslatableSection=function(t,e){if(!this._isInTranslatableSection)return void this._reportError(t,"Unexpected section end");var r=this._msgCountAtSectionStart,n=e.reduce(function(t,e){return t+(e instanceof Js?0:1)},0);if(1==n)for(var o=this._messages.length-1;o>=r;o--){var i=this._messages[o].nodes;if(!(1==i.length&&i[0]instanceof ha)){this._messages.splice(o,1);break}}this._msgCountAtSectionStart=void 0},t.prototype._reportError=function(t,e){this._errors.push(new xa(t.sourceSpan,e))},t}(),Na=function(){function t(){this.closedByParent=!1,this.contentType=vo.PARSABLE_DATA,this.isVoid=!1,this.ignoreFirstLf=!1,this.canSelfClose=!0}return t.prototype.requireExtraParent=function(){return!1},t.prototype.isClosedByChild=function(){return!1},t}(),Da=new Na,ja=function(t){function e(){return t.call(this,It)||this}return Zn(e,t),e.prototype.parse=function(e,r,n){return void 0===n&&(n=!1),t.prototype.parse.call(this,e,r,n)},e}(ca),La=function(){function t(){}return t.prototype.visitText=function(t){return t.value},t.prototype.visitContainer=function(t){var e=this;return"["+t.children.map(function(t){return t.visit(e)}).join(", ")+"]"},t.prototype.visitIcu=function(t){var e=this,r=Object.keys(t.cases).map(function(r){return r+" {"+t.cases[r].visit(e)+"}"});return"{"+t.expression+", "+t.type+", "+r.join(", ")+"}"},t.prototype.visitTagPlaceholder=function(t){var e=this;return t.isVoid?'<ph tag name="'+t.startName+'"/>':'<ph tag name="'+t.startName+'">'+t.children.map(function(t){return t.visit(e)}).join(", ")+'</ph name="'+t.closeName+'">'},t.prototype.visitPlaceholder=function(t){return t.value?'<ph name="'+t.name+'">'+t.value+"</ph>":'<ph name="'+t.name+'"/>'},t.prototype.visitIcuPlaceholder=function(t){return'<ph icu name="'+t.name+'">'+t.value.visit(this)+"</ph>"},t}(),Va=new La,Fa=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Zn(e,t),e.prototype.visitIcu=function(t){var e=this,r=Object.keys(t.cases).map(function(r){return r+" {"+t.cases[r].visit(e)+"}"});return"{"+t.type+", "+r.join(", ")+"}"},e}(La),Ua={};Ua.Little=0,Ua.Big=1,Ua[Ua.Little]="Little",Ua[Ua.Big]="Big";var Ba=function(){function t(){}return t.prototype.write=function(){},t.prototype.load=function(){},t.prototype.digest=function(){}, -t.prototype.createNameMapper=function(){return null},t}(),Ha=function(t){function e(e,r){var n=t.call(this)||this;return n.mapName=r,n.internalToPublic={},n.publicToNextId={},n.publicToInternal={},e.nodes.forEach(function(t){return t.visit(n)}),n}return Zn(e,t),e.prototype.toPublicName=function(t){return this.internalToPublic.hasOwnProperty(t)?this.internalToPublic[t]:null},e.prototype.toInternalName=function(t){return this.publicToInternal.hasOwnProperty(t)?this.publicToInternal[t]:null},e.prototype.visitText=function(){return null},e.prototype.visitTagPlaceholder=function(e,r){this.visitPlaceholderName(e.startName),t.prototype.visitTagPlaceholder.call(this,e,r),this.visitPlaceholderName(e.closeName)},e.prototype.visitPlaceholder=function(t){this.visitPlaceholderName(t.name)},e.prototype.visitIcuPlaceholder=function(t){this.visitPlaceholderName(t.name)},e.prototype.visitPlaceholderName=function(t){if(t&&!this.internalToPublic.hasOwnProperty(t)){var e=this.mapName(t);if(this.publicToInternal.hasOwnProperty(e)){var r=this.publicToNextId[e];this.publicToNextId[e]=r+1,e=e+"_"+r}else this.publicToNextId[e]=1;this.internalToPublic[t]=e,this.publicToInternal[e]=t}},e}(_a),qa=function(){function t(){}return t.prototype.visitTag=function(t){var e=this,r=this._serializeAttributes(t.attrs);if(0==t.children.length)return"<"+t.name+r+"/>";var n=t.children.map(function(t){return t.visit(e)});return"<"+t.name+r+">"+n.join("")+"</"+t.name+">"},t.prototype.visitText=function(t){return t.value},t.prototype.visitDeclaration=function(t){return"<?xml"+this._serializeAttributes(t.attrs)+" ?>"},t.prototype._serializeAttributes=function(t){var e=Object.keys(t).map(function(e){return e+'="'+t[e]+'"'}).join(" ");return e.length>0?" "+e:""},t.prototype.visitDoctype=function(t){return"<!DOCTYPE "+t.rootTag+" [\n"+t.dtd+"\n]>"},t}(),za=new qa,Ga=function(){function t(t){var e=this;this.attrs={},Object.keys(t).forEach(function(r){e.attrs[r]=ie(t[r])})}return t.prototype.visit=function(t){return t.visitDeclaration(this)},t}(),Wa=function(){function t(t,e){this.rootTag=t,this.dtd=e}return t.prototype.visit=function(t){return t.visitDoctype(this)},t}(),$a=function(){function t(t,e,r){void 0===e&&(e={}),void 0===r&&(r=[]);var n=this;this.name=t,this.children=r,this.attrs={},Object.keys(e).forEach(function(t){n.attrs[t]=ie(e[t])})}return t.prototype.visit=function(t){return t.visitTag(this)},t}(),Ka=function(){function t(t){this.value=ie(t)}return t.prototype.visit=function(t){return t.visitText(this)},t}(),Qa=function(t){function e(e){return void 0===e&&(e=0),t.call(this,"\n"+new Array(e+1).join(" "))||this}return Zn(e,t),e}(Ka),Xa=[[/&/g,"&"],[/"/g,"""],[/'/g,"'"],[/</g,"<"],[/>/g,">"]],Za="1.2",Ya="urn:oasis:names:tc:xliff:document:1.2",Ja="en",tu="x",eu="file",ru="source",nu="target",ou="trans-unit",iu="context-group",su="context",au=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Zn(e,t),e.prototype.write=function(t,e){var r=new uu,n=[];t.forEach(function(t){var e=[];t.sources.forEach(function(t){var r=new $a(iu,{purpose:"location"});r.children.push(new Qa(10),new $a(su,{"context-type":"sourcefile"},[new Ka(t.filePath)]),new Qa(10),new $a(su,{"context-type":"linenumber"},[new Ka(""+t.startLine)]),new Qa(8)),e.push(new Qa(8),r)});var o=new $a(ou,{id:t.id,datatype:"html"});(i=o.children).push.apply(i,[new Qa(8),new $a(ru,{},r.serialize(t.nodes)),new Qa(8),new $a(nu)].concat(e)),t.description&&o.children.push(new Qa(8),new $a("note",{priority:"1",from:"description"},[new Ka(t.description)])),t.meaning&&o.children.push(new Qa(8),new $a("note",{priority:"1",from:"meaning"},[new Ka(t.meaning)])),o.children.push(new Qa(6)),n.push(new Qa(6),o);var i});var o=new $a("body",{},n.concat([new Qa(4)])),i=new $a("file",{"source-language":e||Ja,datatype:"plaintext",original:"ng2.template"},[new Qa(4),o,new Qa(2)]),s=new $a("xliff",{version:Za,xmlns:Ya},[new Qa(2),i,new Qa]);return oe([new Ga({version:"1.0",encoding:"UTF-8"}),new Qa,s,new Qa])},e.prototype.load=function(t,e){var r=new cu,n=r.parse(t,e),o=n.locale,i=n.msgIdToHtml,s=n.errors,a={},u=new lu;if(Object.keys(i).forEach(function(t){var r=u.convert(i[t],e),n=r.i18nNodes,o=r.errors;s.push.apply(s,o),a[t]=n}),s.length)throw new Error("xliff parse errors:\n"+s.join("\n"));return{locale:o,i18nNodesByMsgId:a}},e.prototype.digest=function(t){return Nt(t)},e}(Ba),uu=function(){function t(){}return t.prototype.visitText=function(t){return[new Ka(t.value)]},t.prototype.visitContainer=function(t){var e=this,r=[];return t.children.forEach(function(t){return r.push.apply(r,t.visit(e))}),r},t.prototype.visitIcu=function(t){var e=this,r=[new Ka("{"+t.expressionPlaceholder+", "+t.type+", ")];return Object.keys(t.cases).forEach(function(n){r.push.apply(r,[new Ka(n+" {")].concat(t.cases[n].visit(e),[new Ka("} ")]))}),r.push(new Ka("}")),r},t.prototype.visitTagPlaceholder=function(t){var e=se(t.tag),r=new $a(tu,{id:t.startName,ctype:e});if(t.isVoid)return[r];var n=new $a(tu,{id:t.closeName,ctype:e});return[r].concat(this.serialize(t.children),[n])},t.prototype.visitPlaceholder=function(t){return[new $a(tu,{id:t.name})]},t.prototype.visitIcuPlaceholder=function(t){return[new $a(tu,{id:t.name})]},t.prototype.serialize=function(t){var e=this;return[].concat.apply([],t.map(function(t){return t.visit(e)}))},t}(),cu=function(){function t(){this._locale=null}return t.prototype.parse=function(t,e){this._unitMlString=null,this._msgIdToHtml={};var r=(new ja).parse(t,e,!1);return this._errors=r.errors,lt(this,r.rootNodes,null),{msgIdToHtml:this._msgIdToHtml,errors:this._errors,locale:this._locale}},t.prototype.visitElement=function(t){switch(t.name){case ou:this._unitMlString=null;var e=t.attrs.find(function(t){return"id"===t.name});if(e){var r=e.value;this._msgIdToHtml.hasOwnProperty(r)?this._addError(t,"Duplicated translations for msg "+r):(lt(this,t.children,null),"string"==typeof this._unitMlString?this._msgIdToHtml[r]=this._unitMlString:this._addError(t,"Message "+r+" misses a translation"))}else this._addError(t,"<"+ou+'> misses the "id" attribute');break;case ru:break;case nu:var n=t.startSourceSpan.end.offset,o=t.endSourceSpan.start.offset,i=t.startSourceSpan.start.file.content,s=i.slice(n,o);this._unitMlString=s;break;case eu:var a=t.attrs.find(function(t){return"target-language"===t.name});a&&(this._locale=a.value),lt(this,t.children,null);break;default:lt(this,t.children,null)}},t.prototype.visitAttribute=function(){},t.prototype.visitText=function(){},t.prototype.visitComment=function(){},t.prototype.visitExpansion=function(){},t.prototype.visitExpansionCase=function(){},t.prototype._addError=function(t,e){this._errors.push(new xa(t.sourceSpan,e))},t}(),lu=function(){function t(){}return t.prototype.convert=function(t,e){var r=(new ja).parse(t,e,!0);this._errors=r.errors;var n=this._errors.length>0||0==r.rootNodes.length?[]:lt(this,r.rootNodes);return{i18nNodes:n,errors:this._errors}},t.prototype.visitText=function(t){return new ha(t.value,t.sourceSpan)},t.prototype.visitElement=function(t){if(t.name===tu){var e=t.attrs.find(function(t){return"id"===t.name});if(e)return new ya("",e.value,t.sourceSpan);this._addError(t,"<"+tu+'> misses the "id" attribute')}else this._addError(t,"Unexpected tag");return null},t.prototype.visitExpansion=function(t){var e={};return lt(this,t.cases).forEach(function(r){e[r.value]=new fa(r.nodes,t.sourceSpan)}),new da(t.switchValue,t.type,e,t.sourceSpan)},t.prototype.visitExpansionCase=function(t){return{value:t.value,nodes:lt(this,t.expression)}},t.prototype.visitComment=function(){},t.prototype.visitAttribute=function(){},t.prototype._addError=function(t,e){this._errors.push(new xa(t.sourceSpan,e))},t}(),pu="2.0",hu="urn:oasis:names:tc:xliff:document:2.0",fu="en",du="ph",mu="pc",yu="xliff",vu="source",gu="target",_u="unit",bu=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Zn(e,t),e.prototype.write=function(t,e){var r=new wu,n=[];t.forEach(function(t){var e=new $a(_u,{id:t.id});if(t.description||t.meaning){var o=new $a("notes");t.description&&o.children.push(new Qa(8),new $a("note",{category:"description"},[new Ka(t.description)])),t.meaning&&o.children.push(new Qa(8),new $a("note",{category:"meaning"},[new Ka(t.meaning)])),o.children.push(new Qa(6)),e.children.push(new Qa(6),o)}var i=new $a("segment");i.children.push(new Qa(8),new $a(vu,{},r.serialize(t.nodes)),new Qa(6)),e.children.push(new Qa(6),i,new Qa(4)),n.push(new Qa(4),e)});var o=new $a("file",{original:"ng.template",id:"ngi18n"},n.concat([new Qa(2)])),i=new $a(yu,{version:pu,xmlns:hu,srcLang:e||fu},[new Qa(2),o,new Qa]);return oe([new Ga({version:"1.0",encoding:"UTF-8"}),new Qa,i,new Qa])},e.prototype.load=function(t,e){var r=new Cu,n=r.parse(t,e),o=n.locale,i=n.msgIdToHtml,s=n.errors,a={},u=new Eu;if(Object.keys(i).forEach(function(t){var r=u.convert(i[t],e),n=r.i18nNodes,o=r.errors;s.push.apply(s,o),a[t]=n}),s.length)throw new Error("xliff2 parse errors:\n"+s.join("\n"));return{locale:o,i18nNodesByMsgId:a}},e.prototype.digest=function(t){return Dt(t)},e}(Ba),wu=function(){function t(){}return t.prototype.visitText=function(t){return[new Ka(t.value)]},t.prototype.visitContainer=function(t){var e=this,r=[];return t.children.forEach(function(t){return r.push.apply(r,t.visit(e))}),r},t.prototype.visitIcu=function(t){var e=this,r=[new Ka("{"+t.expressionPlaceholder+", "+t.type+", ")];return Object.keys(t.cases).forEach(function(n){r.push.apply(r,[new Ka(n+" {")].concat(t.cases[n].visit(e),[new Ka("} ")]))}),r.push(new Ka("}")),r},t.prototype.visitTagPlaceholder=function(t){var e=this,r=ae(t.tag);if(t.isVoid){var n=new $a(du,{id:(this._nextPlaceholderId++).toString(),equiv:t.startName,type:r,disp:"<"+t.tag+"/>"});return[n]}var o=new $a(mu,{id:(this._nextPlaceholderId++).toString(),equivStart:t.startName,equivEnd:t.closeName,type:r,dispStart:"<"+t.tag+">",dispEnd:"</"+t.tag+">"}),i=[].concat.apply([],t.children.map(function(t){return t.visit(e)}));return i.length?i.forEach(function(t){return o.children.push(t)}):o.children.push(new Ka("")),[o]},t.prototype.visitPlaceholder=function(t){return[new $a(du,{id:(this._nextPlaceholderId++).toString(),equiv:t.name,disp:"{{"+t.value+"}}"})]},t.prototype.visitIcuPlaceholder=function(){return[new $a(du,{id:(this._nextPlaceholderId++).toString()})]},t.prototype.serialize=function(t){var e=this;return this._nextPlaceholderId=0,[].concat.apply([],t.map(function(t){return t.visit(e)}))},t}(),Cu=function(){function t(){this._locale=null}return t.prototype.parse=function(t,e){this._unitMlString=null,this._msgIdToHtml={};var r=(new ja).parse(t,e,!1);return this._errors=r.errors,lt(this,r.rootNodes,null),{msgIdToHtml:this._msgIdToHtml,errors:this._errors,locale:this._locale}},t.prototype.visitElement=function(t){switch(t.name){case _u:this._unitMlString=null;var e=t.attrs.find(function(t){return"id"===t.name});if(e){var r=e.value;this._msgIdToHtml.hasOwnProperty(r)?this._addError(t,"Duplicated translations for msg "+r):(lt(this,t.children,null),"string"==typeof this._unitMlString?this._msgIdToHtml[r]=this._unitMlString:this._addError(t,"Message "+r+" misses a translation"))}else this._addError(t,"<"+_u+'> misses the "id" attribute');break;case vu:break;case gu:var n=t.startSourceSpan.end.offset,o=t.endSourceSpan.start.offset,i=t.startSourceSpan.start.file.content,s=i.slice(n,o);this._unitMlString=s;break;case yu:var a=t.attrs.find(function(t){return"trgLang"===t.name});a&&(this._locale=a.value);var u=t.attrs.find(function(t){return"version"===t.name});if(u){var c=u.value;"2.0"!==c?this._addError(t,"The XLIFF file version "+c+" is not compatible with XLIFF 2.0 serializer"):lt(this,t.children,null)}break;default:lt(this,t.children,null)}},t.prototype.visitAttribute=function(){},t.prototype.visitText=function(){},t.prototype.visitComment=function(){},t.prototype.visitExpansion=function(){},t.prototype.visitExpansionCase=function(){},t.prototype._addError=function(t,e){this._errors.push(new xa(t.sourceSpan,e))},t}(),Eu=function(){function t(){}return t.prototype.convert=function(t,e){var r=(new ja).parse(t,e,!0);this._errors=r.errors;var n=this._errors.length>0||0==r.rootNodes.length?[]:[].concat.apply([],lt(this,r.rootNodes));return{i18nNodes:n,errors:this._errors}},t.prototype.visitText=function(t){return new ha(t.value,t.sourceSpan)},t.prototype.visitElement=function(t){var e=this;switch(t.name){case du:var r=t.attrs.find(function(t){return"equiv"===t.name});if(r)return[new ya("",r.value,t.sourceSpan)];this._addError(t,"<"+du+'> misses the "equiv" attribute');break;case mu:var n=t.attrs.find(function(t){return"equivStart"===t.name}),o=t.attrs.find(function(t){return"equivEnd"===t.name});if(n){if(o){var i=n.value,s=o.value,a=[];return a.concat.apply(a,[new ya("",i,t.sourceSpan)].concat(t.children.map(function(t){return t.visit(e,null)}),[new ya("",s,t.sourceSpan)]))}this._addError(t,"<"+du+'> misses the "equivEnd" attribute')}else this._addError(t,"<"+du+'> misses the "equivStart" attribute');break;default:this._addError(t,"Unexpected tag")}return null},t.prototype.visitExpansion=function(t){var e={};return lt(this,t.cases).forEach(function(r){e[r.value]=new fa(r.nodes,t.sourceSpan)}),new da(t.switchValue,t.type,e,t.sourceSpan)},t.prototype.visitExpansionCase=function(t){return{value:t.value,nodes:[].concat.apply([],lt(this,t.expression))}},t.prototype.visitComment=function(){},t.prototype.visitAttribute=function(){},t.prototype._addError=function(t,e){this._errors.push(new xa(t.sourceSpan,e))},t}(),Su="messagebundle",xu="msg",Tu="ph",Pu="ex",Au="source",Ou='<!ELEMENT messagebundle (msg)*>\n<!ATTLIST messagebundle class CDATA #IMPLIED>\n\n<!ELEMENT msg (#PCDATA|ph|source)*>\n<!ATTLIST msg id CDATA #IMPLIED>\n<!ATTLIST msg seq CDATA #IMPLIED>\n<!ATTLIST msg name CDATA #IMPLIED>\n<!ATTLIST msg desc CDATA #IMPLIED>\n<!ATTLIST msg meaning CDATA #IMPLIED>\n<!ATTLIST msg obsolete (obsolete) #IMPLIED>\n<!ATTLIST msg xml:space (default|preserve) "default">\n<!ATTLIST msg is_hidden CDATA #IMPLIED>\n\n<!ELEMENT source (#PCDATA)>\n\n<!ELEMENT ph (#PCDATA|ex)*>\n<!ATTLIST ph name CDATA #REQUIRED>\n\n<!ELEMENT ex (#PCDATA)>',Mu=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Zn(e,t),e.prototype.write=function(t){var e=new ku,r=new Ru,n=new $a(Su);return t.forEach(function(t){var e={id:t.id};t.description&&(e.desc=t.description),t.meaning&&(e.meaning=t.meaning);var o=[];t.sources.forEach(function(t){o.push(new $a(Au,{},[new Ka(t.filePath+":"+t.startLine+(t.endLine!==t.startLine?","+t.endLine:""))]))}),n.children.push(new Qa(2),new $a(xu,e,o.concat(r.serialize(t.nodes))))}),n.children.push(new Qa),oe([new Ga({version:"1.0",encoding:"UTF-8"}),new Qa,new Wa(Su,Ou),new Qa,e.addDefaultExamples(n),new Qa])},e.prototype.load=function(){throw new Error("Unsupported")},e.prototype.digest=function(t){return ue(t)},e.prototype.createNameMapper=function(t){return new Ha(t,ce)},e}(Ba),Ru=function(){function t(){}return t.prototype.visitText=function(t){return[new Ka(t.value)]},t.prototype.visitContainer=function(t){var e=this,r=[];return t.children.forEach(function(t){return r.push.apply(r,t.visit(e))}),r},t.prototype.visitIcu=function(t){var e=this,r=[new Ka("{"+t.expressionPlaceholder+", "+t.type+", ")];return Object.keys(t.cases).forEach(function(n){r.push.apply(r,[new Ka(n+" {")].concat(t.cases[n].visit(e),[new Ka("} ")]))}),r.push(new Ka("}")),r},t.prototype.visitTagPlaceholder=function(t){var e=new $a(Pu,{},[new Ka("<"+t.tag+">")]),r=new $a(Tu,{name:t.startName},[e]);if(t.isVoid)return[r];var n=new $a(Pu,{},[new Ka("</"+t.tag+">")]),o=new $a(Tu,{name:t.closeName},[n]);return[r].concat(this.serialize(t.children),[o])},t.prototype.visitPlaceholder=function(t){return[new $a(Tu,{name:t.name})]},t.prototype.visitIcuPlaceholder=function(t){return[new $a(Tu,{name:t.name})]},t.prototype.serialize=function(t){var e=this;return[].concat.apply([],t.map(function(t){return t.visit(e)}))},t}(),ku=function(){function t(){}return t.prototype.addDefaultExamples=function(t){return t.visit(this),t},t.prototype.visitTag=function(t){var e=this;if(t.name===Tu){if(!t.children||0==t.children.length){var r=new Ka(t.attrs.name||"...");t.children=[new $a(Pu,{},[r])]}}else t.children&&t.children.forEach(function(t){return t.visit(e)})},t.prototype.visitText=function(){},t.prototype.visitDeclaration=function(){},t.prototype.visitDoctype=function(){},t}(),Iu="translationbundle",Nu="translation",Du="ph",ju=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Zn(e,t),e.prototype.write=function(){throw new Error("Unsupported")},e.prototype.load=function(t,e){var r=new Lu,n=r.parse(t,e),o=n.locale,i=n.msgIdToHtml,s=n.errors,a={},u=new Vu;if(Object.keys(i).forEach(function(t){var r=function(){var r=u.convert(i[t],e),n=r.i18nNodes,o=r.errors;if(o.length)throw new Error("xtb parse errors:\n"+o.join("\n"));return n};le(a,t,r)}),s.length)throw new Error("xtb parse errors:\n"+s.join("\n"));return{locale:o,i18nNodesByMsgId:a}},e.prototype.digest=function(t){return ue(t)},e.prototype.createNameMapper=function(t){return new Ha(t,ce)},e}(Ba),Lu=function(){function t(){this._locale=null}return t.prototype.parse=function(t,e){this._bundleDepth=0,this._msgIdToHtml={};var r=(new ja).parse(t,e,!1);return this._errors=r.errors,lt(this,r.rootNodes),{msgIdToHtml:this._msgIdToHtml,errors:this._errors,locale:this._locale}},t.prototype.visitElement=function(t){switch(t.name){case Iu:this._bundleDepth++,this._bundleDepth>1&&this._addError(t,"<"+Iu+"> elements can not be nested");var e=t.attrs.find(function(t){return"lang"===t.name});e&&(this._locale=e.value),lt(this,t.children,null),this._bundleDepth--;break;case Nu:var r=t.attrs.find(function(t){return"id"===t.name});if(r){var n=r.value;if(this._msgIdToHtml.hasOwnProperty(n))this._addError(t,"Duplicated translations for msg "+n);else{var o=t.startSourceSpan.end.offset,i=t.endSourceSpan.start.offset,s=t.startSourceSpan.start.file.content,a=s.slice(o,i);this._msgIdToHtml[n]=a}}else this._addError(t,"<"+Nu+'> misses the "id" attribute');break;default:this._addError(t,"Unexpected tag")}},t.prototype.visitAttribute=function(){},t.prototype.visitText=function(){},t.prototype.visitComment=function(){},t.prototype.visitExpansion=function(){},t.prototype.visitExpansionCase=function(){},t.prototype._addError=function(t,e){this._errors.push(new xa(t.sourceSpan,e))},t}(),Vu=function(){function t(){}return t.prototype.convert=function(t,e){var r=(new ja).parse(t,e,!0);this._errors=r.errors;var n=this._errors.length>0||0==r.rootNodes.length?[]:lt(this,r.rootNodes);return{i18nNodes:n,errors:this._errors}},t.prototype.visitText=function(t){return new ha(t.value,t.sourceSpan)},t.prototype.visitExpansion=function(t){var e={};return lt(this,t.cases).forEach(function(r){e[r.value]=new fa(r.nodes,t.sourceSpan)}),new da(t.switchValue,t.type,e,t.sourceSpan)},t.prototype.visitExpansionCase=function(t){return{value:t.value,nodes:lt(this,t.expression)}},t.prototype.visitElement=function(t){if(t.name===Du){var e=t.attrs.find(function(t){return"name"===t.name});if(e)return new ya("",e.value,t.sourceSpan);this._addError(t,"<"+Du+'> misses the "name" attribute')}else this._addError(t,"Unexpected tag");return null},t.prototype.visitComment=function(){},t.prototype.visitAttribute=function(){},t.prototype._addError=function(t,e){this._errors.push(new xa(t.sourceSpan,e))},t}(),Fu=function(t){function e(){return t.call(this,c)||this}return Zn(e,t),e.prototype.parse=function(e,r,n,o){return void 0===n&&(n=!1),void 0===o&&(o=Rs),t.prototype.parse.call(this,e,r,n,o)},e}(ca);Fu.decorators=[{type:z}],Fu.ctorParameters=function(){return[]};var Uu=function(){function t(t,r,n,o,i,s){void 0===t&&(t={}),void 0===i&&(i=e.MissingTranslationStrategy.Warning),this._i18nNodesByMsgId=t,this.digest=n,this.mapperFactory=o,this._i18nToHtml=new Bu(t,r,n,o,i,s)}return t.load=function(e,r,n,o,i){var s=n.load(e,r),a=s.locale,u=s.i18nNodesByMsgId,c=function(t){return n.digest(t)},l=function(t){return n.createNameMapper(t)};return new t(u,a,c,l,o,i)},t.prototype.get=function(t){var e=this._i18nToHtml.convert(t);if(e.errors.length)throw new Error(e.errors.join("\n"));return e.nodes},t.prototype.has=function(t){return this.digest(t)in this._i18nNodesByMsgId},t}(),Bu=function(){function t(t,e,r,n,o,i){void 0===t&&(t={}),this._i18nNodesByMsgId=t,this._locale=e,this._digest=r,this._mapperFactory=n,this._missingTranslationStrategy=o,this._console=i,this._contextStack=[],this._errors=[]}return t.prototype.convert=function(t){this._contextStack.length=0,this._errors.length=0;var e=this._convertToText(t),r=t.nodes[0].sourceSpan.start.file.url,n=(new Fu).parse(e,r,!0);return{nodes:n.rootNodes,errors:this._errors.concat(n.errors)}},t.prototype.visitText=function(t){return t.value},t.prototype.visitContainer=function(t){var e=this;return t.children.map(function(t){return t.visit(e)}).join("")},t.prototype.visitIcu=function(t){var e=this,r=Object.keys(t.cases).map(function(r){return r+" {"+t.cases[r].visit(e)+"}"}),n=this._srcMsg.placeholders.hasOwnProperty(t.expression)?this._srcMsg.placeholders[t.expression]:t.expression;return"{"+n+", "+t.type+", "+r.join(" ")+"}"},t.prototype.visitPlaceholder=function(t){var e=this._mapper(t.name);return this._srcMsg.placeholders.hasOwnProperty(e)?this._srcMsg.placeholders[e]:this._srcMsg.placeholderToMessage.hasOwnProperty(e)?this._convertToText(this._srcMsg.placeholderToMessage[e]):(this._addError(t,'Unknown placeholder "'+t.name+'"'),"")},t.prototype.visitTagPlaceholder=function(t){var e=this,r=""+t.tag,n=Object.keys(t.attrs).map(function(e){return e+'="'+t.attrs[e]+'"'}).join(" ");if(t.isVoid)return"<"+r+" "+n+"/>";var o=t.children.map(function(t){return t.visit(e)}).join("");return"<"+r+" "+n+">"+o+"</"+r+">"},t.prototype.visitIcuPlaceholder=function(t){return this._convertToText(this._srcMsg.placeholderToMessage[t.name])},t.prototype._convertToText=function(t){var r,n=this,o=this._digest(t),i=this._mapperFactory?this._mapperFactory(t):null;if(this._contextStack.push({msg:this._srcMsg,mapper:this._mapper}),this._srcMsg=t,this._i18nNodesByMsgId.hasOwnProperty(o))r=this._i18nNodesByMsgId[o],this._mapper=function(t){return i?i.toInternalName(t):t};else{if(this._missingTranslationStrategy===e.MissingTranslationStrategy.Error){var s=this._locale?' for locale "'+this._locale+'"':"";this._addError(t.nodes[0],'Missing translation for message "'+o+'"'+s)}else if(this._console&&this._missingTranslationStrategy===e.MissingTranslationStrategy.Warning){var s=this._locale?' for locale "'+this._locale+'"':"";this._console.warn('Missing translation for message "'+o+'"'+s)}r=t.nodes,this._mapper=function(t){return t}}var a=r.map(function(t){return t.visit(n)}).join(""),u=this._contextStack.pop();return this._srcMsg=u.msg,this._mapper=u.mapper,a},t.prototype._addError=function(t,e){this._errors.push(new xa(t.sourceSpan,e))},t}(),Hu=function(){function t(t,r,n,o,i){if(void 0===o&&(o=e.MissingTranslationStrategy.Warning),this._htmlParser=t,r){var s=pe(n);this._translationBundle=Uu.load(r,"i18n",s,o,i)}}return t.prototype.parse=function(t,e,r,n){void 0===r&&(r=!1),void 0===n&&(n=Rs);var o=this._htmlParser.parse(t,e,r,n);return this._translationBundle?o.errors.length?new ua(o.rootNodes,o.errors):At(o.rootNodes,this._translationBundle,n,[],{}):o},t}(),qu=he("core"),zu=function(){function t(){}return t}();zu.ANALYZE_FOR_ENTRY_COMPONENTS={name:"ANALYZE_FOR_ENTRY_COMPONENTS",moduleUrl:qu,runtime:e.ANALYZE_FOR_ENTRY_COMPONENTS},zu.ElementRef={name:"ElementRef",moduleUrl:qu,runtime:e.ElementRef},zu.NgModuleRef={name:"NgModuleRef",moduleUrl:qu,runtime:e.NgModuleRef},zu.ViewContainerRef={name:"ViewContainerRef",moduleUrl:qu,runtime:e.ViewContainerRef},zu.ChangeDetectorRef={name:"ChangeDetectorRef",moduleUrl:qu,runtime:e.ChangeDetectorRef},zu.QueryList={name:"QueryList",moduleUrl:qu,runtime:e.QueryList},zu.TemplateRef={name:"TemplateRef",moduleUrl:qu,runtime:e.TemplateRef},zu.CodegenComponentFactoryResolver={name:"ɵCodegenComponentFactoryResolver",moduleUrl:qu,runtime:e.ɵCodegenComponentFactoryResolver},zu.ComponentFactoryResolver={name:"ComponentFactoryResolver",moduleUrl:qu,runtime:e.ComponentFactoryResolver},zu.ComponentFactory={name:"ComponentFactory",moduleUrl:qu,runtime:e.ComponentFactory},zu.ComponentRef={name:"ComponentRef",moduleUrl:qu,runtime:e.ComponentRef},zu.NgModuleFactory={name:"NgModuleFactory",moduleUrl:qu,runtime:e.NgModuleFactory},zu.NgModuleInjector={name:"ɵNgModuleInjector",moduleUrl:qu,runtime:e.ɵNgModuleInjector},zu.RegisterModuleFactoryFn={name:"ɵregisterModuleFactory",moduleUrl:qu,runtime:e.ɵregisterModuleFactory},zu.Injector={name:"Injector",moduleUrl:qu,runtime:e.Injector},zu.ViewEncapsulation={name:"ViewEncapsulation",moduleUrl:qu,runtime:e.ViewEncapsulation},zu.ChangeDetectionStrategy={name:"ChangeDetectionStrategy",moduleUrl:qu,runtime:e.ChangeDetectionStrategy},zu.SecurityContext={name:"SecurityContext",moduleUrl:qu,runtime:e.SecurityContext},zu.LOCALE_ID={name:"LOCALE_ID",moduleUrl:qu,runtime:e.LOCALE_ID},zu.TRANSLATIONS_FORMAT={name:"TRANSLATIONS_FORMAT",moduleUrl:qu,runtime:e.TRANSLATIONS_FORMAT},zu.inlineInterpolate={name:"ɵinlineInterpolate",moduleUrl:qu,runtime:e.ɵinlineInterpolate},zu.interpolate={name:"ɵinterpolate",moduleUrl:qu,runtime:e.ɵinterpolate},zu.EMPTY_ARRAY={name:"ɵEMPTY_ARRAY",moduleUrl:qu,runtime:e.ɵEMPTY_ARRAY},zu.EMPTY_MAP={name:"ɵEMPTY_MAP",moduleUrl:qu,runtime:e.ɵEMPTY_MAP},zu.Renderer={name:"Renderer",moduleUrl:qu,runtime:e.Renderer},zu.viewDef={name:"ɵvid",moduleUrl:qu,runtime:e.ɵvid},zu.elementDef={name:"ɵeld",moduleUrl:qu,runtime:e.ɵeld},zu.anchorDef={name:"ɵand",moduleUrl:qu,runtime:e.ɵand},zu.textDef={name:"ɵted",moduleUrl:qu,runtime:e.ɵted},zu.directiveDef={name:"ɵdid",moduleUrl:qu,runtime:e.ɵdid},zu.providerDef={name:"ɵprd",moduleUrl:qu,runtime:e.ɵprd},zu.queryDef={name:"ɵqud",moduleUrl:qu,runtime:e.ɵqud},zu.pureArrayDef={name:"ɵpad",moduleUrl:qu,runtime:e.ɵpad},zu.pureObjectDef={name:"ɵpod",moduleUrl:qu,runtime:e.ɵpod},zu.purePipeDef={name:"ɵppd",moduleUrl:qu,runtime:e.ɵppd},zu.pipeDef={name:"ɵpid",moduleUrl:qu,runtime:e.ɵpid},zu.nodeValue={name:"ɵnov",moduleUrl:qu,runtime:e.ɵnov},zu.ngContentDef={name:"ɵncd",moduleUrl:qu,runtime:e.ɵncd},zu.unwrapValue={name:"ɵunv",moduleUrl:qu,runtime:e.ɵunv},zu.createRendererType2={name:"ɵcrt",moduleUrl:qu,runtime:e.ɵcrt},zu.RendererType2={name:"RendererType2",moduleUrl:qu,runtime:null},zu.ViewDefinition={name:"ɵViewDefinition",moduleUrl:qu,runtime:null},zu.createComponentFactory={name:"ɵccf",moduleUrl:qu,runtime:e.ɵccf};var Gu=["zero","one","two","few","many","other"],Wu=function(){function t(t,e,r){this.nodes=t,this.expanded=e,this.errors=r}return t}(),$u=function(t){function e(e,r){return t.call(this,e,r)||this}return Zn(e,t),e}($s),Ku=function(){function t(){this.isExpanded=!1,this.errors=[]}return t.prototype.visitElement=function(t){return new Ys(t.name,t.attrs,lt(this,t.children),t.sourceSpan,t.startSourceSpan,t.endSourceSpan)},t.prototype.visitAttribute=function(t){return t},t.prototype.visitText=function(t){return t},t.prototype.visitComment=function(t){return t},t.prototype.visitExpansion=function(t){return this.isExpanded=!0,"plural"==t.type?ge(t,this.errors):_e(t,this.errors)},t.prototype.visitExpansionCase=function(){throw new Error("Should not be reached")},t}(),Qu=function(t){function e(e,r){return t.call(this,r,e)||this}return Zn(e,t),e}($s),Xu=function(){function t(t){var e=this;this.component=t,this.errors=[],this.viewQueries=Se(t),this.viewProviders=new Map,t.viewProviders.forEach(function(t){null==e.viewProviders.get(R(t.token))&&e.viewProviders.set(R(t.token),!0)})}return t}(),Zu=function(){function t(t,e,r,n,o,i,s,a,u){var c=this;this.viewContext=t,this._parent=e,this._isViewRoot=r,this._directiveAsts=n,this._sourceSpan=u,this._transformedProviders=new Map,this._seenProviders=new Map,this._hasViewContainer=!1,this._queriedTokens=new Map,this._attrs={},o.forEach(function(t){return c._attrs[t.name]=t.value});var l=n.map(function(t){return t.directive});if(this._allProviders=Ce(l,u,t.errors),this._contentQueries=xe(a,l),Array.from(this._allProviders.values()).forEach(function(t){c._addQueryReadsTo(t.token,t.token,c._queriedTokens)}),s){var p=ye(zu.TemplateRef);this._addQueryReadsTo(p,p,this._queriedTokens)}i.forEach(function(t){var e=t.value||ye(zu.ElementRef);c._addQueryReadsTo({value:t.name},e,c._queriedTokens)}),this._queriedTokens.get(fe(zu.ViewContainerRef))&&(this._hasViewContainer=!0),Array.from(this._allProviders.values()).forEach(function(t){var e=t.eager||c._queriedTokens.get(R(t.token));e&&c._getOrCreateLocalProvider(t.providerType,t.token,!0)})}return t.prototype.afterElement=function(){var t=this;Array.from(this._allProviders.values()).forEach(function(e){t._getOrCreateLocalProvider(e.providerType,e.token,!1)})},Object.defineProperty(t.prototype,"transformProviders",{get:function(){return Array.from(this._transformedProviders.values())},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"transformedDirectiveAsts",{get:function(){var t=this.transformProviders.map(function(t){return t.token.identifier}),e=this._directiveAsts.slice();return e.sort(function(e,r){return t.indexOf(e.directive.type)-t.indexOf(r.directive.type)}),e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"transformedHasViewContainer",{get:function(){return this._hasViewContainer},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"queryMatches",{get:function(){var t=[];return this._queriedTokens.forEach(function(e){t.push.apply(t,e)}),t},enumerable:!0,configurable:!0}),t.prototype._addQueryReadsTo=function(t,e,r){this._getQueriesFor(t).forEach(function(t){var n=t.meta.read||e,o=R(n),i=r.get(o);i||(i=[],r.set(o,i)),i.push({queryId:t.queryId,value:n})})},t.prototype._getQueriesFor=function(t){for(var e,r=[],n=this,o=0;null!==n;)e=n._contentQueries.get(R(t)),e&&r.push.apply(r,e.filter(function(t){return t.meta.descendants||1>=o})),n._directiveAsts.length>0&&o++,n=n._parent;return e=this.viewContext.viewQueries.get(R(t)),e&&r.push.apply(r,e),r},t.prototype._getOrCreateLocalProvider=function(t,e,r){var n=this,o=this._allProviders.get(R(e));if(!o||(t===po.Directive||t===po.PublicService)&&o.providerType===po.PrivateService||(t===po.PrivateService||t===po.PublicService)&&o.providerType===po.Builtin)return null;var i=this._transformedProviders.get(R(e));if(i)return i;if(null!=this._seenProviders.get(R(e)))return this.viewContext.errors.push(new Qu("Cannot instantiate cyclic dependency! "+M(e),this._sourceSpan)),null;this._seenProviders.set(R(e),!0);var s=o.providers.map(function(t){var e=t.useValue,i=t.useExisting,s=void 0;if(null!=t.useExisting){var a=n._getDependency(o.providerType,{token:t.useExisting},r);null!=a.token?i=a.token:(i=null,e=a.value)}else if(t.useFactory){var u=t.deps||t.useFactory.diDeps;s=u.map(function(t){return n._getDependency(o.providerType,t,r)})}else if(t.useClass){var u=t.deps||t.useClass.diDeps;s=u.map(function(t){return n._getDependency(o.providerType,t,r)})}return be(t,{useExisting:i,useValue:e,deps:s})});return i=we(o,{eager:r,providers:s}),this._transformedProviders.set(R(e),i),i},t.prototype._getLocalDependency=function(t,e,r){if(void 0===r&&(r=!1),e.isAttribute){var n=this._attrs[e.token.value];return{isValue:!0,value:null==n?null:n}}if(null!=e.token){if(t===po.Directive||t===po.Component){if(R(e.token)===fe(zu.Renderer)||R(e.token)===fe(zu.ElementRef)||R(e.token)===fe(zu.ChangeDetectorRef)||R(e.token)===fe(zu.TemplateRef))return e;R(e.token)===fe(zu.ViewContainerRef)&&(this._hasViewContainer=!0)}if(R(e.token)===fe(zu.Injector))return e;if(null!=this._getOrCreateLocalProvider(t,e.token,r))return e}return null},t.prototype._getDependency=function(t,e,r){void 0===r&&(r=!1);var n=this,o=r,i=null;if(e.isSkipSelf||(i=this._getLocalDependency(t,e,r)),e.isSelf)!i&&e.isOptional&&(i={isValue:!0,value:null});else{for(;!i&&n._parent;){var s=n;n=n._parent,s._isViewRoot&&(o=!1), -i=n._getLocalDependency(po.PublicService,e,o)}i||(i=!e.isHost||this.viewContext.component.isHost||this.viewContext.component.type.reference===R(e.token)||null!=this.viewContext.viewProviders.get(R(e.token))?e:e.isOptional?i={isValue:!0,value:null}:null)}return i||this.viewContext.errors.push(new Qu("No provider for "+M(e.token),this._sourceSpan)),i},t}(),Yu=function(){function t(t,e,r){var n=this;this._transformedProviders=new Map,this._seenProviders=new Map,this._errors=[],this._allProviders=new Map,t.transitiveModule.modules.forEach(function(t){var e={token:{identifier:t},useClass:t};Ee([e],po.PublicService,!0,r,n._errors,n._allProviders)}),Ee(t.transitiveModule.providers.map(function(t){return t.provider}).concat(e),po.PublicService,!1,r,this._errors,this._allProviders)}return t.prototype.parse=function(){var t=this;if(Array.from(this._allProviders.values()).forEach(function(e){t._getOrCreateLocalProvider(e.token,e.eager)}),this._errors.length>0){var e=this._errors.join("\n");throw new Error("Provider parse errors:\n"+e)}return Array.from(this._transformedProviders.values())},t.prototype._getOrCreateLocalProvider=function(t,e){var r=this,n=this._allProviders.get(R(t));if(!n)return null;var o=this._transformedProviders.get(R(t));if(o)return o;if(null!=this._seenProviders.get(R(t)))return this._errors.push(new Qu("Cannot instantiate cyclic dependency! "+M(t),n.sourceSpan)),null;this._seenProviders.set(R(t),!0);var i=n.providers.map(function(t){var o=t.useValue,i=t.useExisting,s=void 0;if(null!=t.useExisting){var a=r._getDependency({token:t.useExisting},e,n.sourceSpan);null!=a.token?i=a.token:(i=null,o=a.value)}else if(t.useFactory){var u=t.deps||t.useFactory.diDeps;s=u.map(function(t){return r._getDependency(t,e,n.sourceSpan)})}else if(t.useClass){var u=t.deps||t.useClass.diDeps;s=u.map(function(t){return r._getDependency(t,e,n.sourceSpan)})}return be(t,{useExisting:i,useValue:o,deps:s})});return o=we(n,{eager:e,providers:i}),this._transformedProviders.set(R(t),o),o},t.prototype._getDependency=function(t,e,r){void 0===e&&(e=!1);var n=!1;t.isSkipSelf||null==t.token||(R(t.token)===fe(zu.Injector)||R(t.token)===fe(zu.ComponentFactoryResolver)?n=!0:null!=this._getOrCreateLocalProvider(t.token,e)&&(n=!0));var o=t;return t.isSelf&&!n&&(t.isOptional?o={isValue:!0,value:null}:this._errors.push(new Qu("No provider for "+M(t.token),r))),o},t}(),Ju=function(){function t(){}return t.prototype.hasProperty=function(){},t.prototype.hasElement=function(){},t.prototype.securityContext=function(){},t.prototype.allKnownElementNames=function(){},t.prototype.getMappedPropName=function(){},t.prototype.getDefaultComponentElementName=function(){},t.prototype.validateProperty=function(){},t.prototype.validateAttribute=function(){},t.prototype.normalizeAnimationStyleProperty=function(){},t.prototype.normalizeAnimationStyleValue=function(){},t}(),tc=function(){function t(t,e){this.style=t,this.styleUrls=e}return t}(),ec=/@import\s+(?:url\()?\s*(?:(?:['"]([^'"]*))|([^;\)\s]*))[^;]*;?/g,rc=/\/\*.+?\*\//g,nc=/^([^:\/?#]+):/,oc=".",ic="attr",sc="class",ac="style",uc="animate-",cc={};cc.DEFAULT=0,cc.LITERAL_ATTR=1,cc.ANIMATION=2,cc[cc.DEFAULT]="DEFAULT",cc[cc.LITERAL_ATTR]="LITERAL_ATTR",cc[cc.ANIMATION]="ANIMATION";var lc=function(){function t(t,e,r,n){this.name=t,this.expression=e,this.type=r,this.sourceSpan=n}return Object.defineProperty(t.prototype,"isLiteral",{get:function(){return this.type===cc.LITERAL_ATTR},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isAnimation",{get:function(){return this.type===cc.ANIMATION},enumerable:!0,configurable:!0}),t}(),pc=function(){function t(t,e,r,n,o){var i=this;this._exprParser=t,this._interpolationConfig=e,this._schemaRegistry=r,this._targetErrors=o,this.pipesByName=new Map,this._usedPipes=new Map,n.forEach(function(t){return i.pipesByName.set(t.name,t)})}return t.prototype.getUsedPipes=function(){return Array.from(this._usedPipes.values())},t.prototype.createDirectiveHostPropertyAsts=function(t,e,r){var n=this;if(t.hostProperties){var o=[];return Object.keys(t.hostProperties).forEach(function(e){var i=t.hostProperties[e];"string"==typeof i?n.parsePropertyBinding(e,i,!0,r,[],o):n._reportError('Value of the host property binding "'+e+'" needs to be a string representing an expression but got "'+i+'" ('+typeof i+")",r)}),o.map(function(t){return n.createElementPropertyAst(e,t)})}return null},t.prototype.createDirectiveHostEventAsts=function(t,e){var r=this;if(t.hostListeners){var n=[];return Object.keys(t.hostListeners).forEach(function(o){var i=t.hostListeners[o];"string"==typeof i?r.parseEvent(o,i,e,[],n):r._reportError('Value of the host listener "'+o+'" needs to be a string representing an expression but got "'+i+'" ('+typeof i+")",e)}),n}return null},t.prototype.parseInterpolation=function(t,e){var r=e.start.toString();try{var n=this._exprParser.parseInterpolation(t,r,this._interpolationConfig);return n&&this._reportExpressionParserErrors(n.errors,e),this._checkPipes(n,e),n}catch(o){return this._reportError(""+o,e),this._exprParser.wrapLiteralPrimitive("ERROR",r)}},t.prototype.parseInlineTemplateBinding=function(t,e,r,n,o,i){for(var s=this._parseTemplateBindings(t,e,r),a=0;a<s.length;a++){var u=s[a];u.keyIsVar?i.push(new io(u.key,u.name,r)):u.expression?this._parsePropertyAst(u.key,u.expression,r,n,o):(n.push([u.key,""]),this.parseLiteralAttr(u.key,null,r,n,o))}},t.prototype._parseTemplateBindings=function(t,e,r){var n=this,o=r.start.toString();try{var i=this._exprParser.parseTemplateBindings(t,e,o);return this._reportExpressionParserErrors(i.errors,r),i.templateBindings.forEach(function(t){t.expression&&n._checkPipes(t.expression,r)}),i.warnings.forEach(function(t){n._reportError(t,r,Ws.WARNING)}),i.templateBindings}catch(s){return this._reportError(""+s,r),[]}},t.prototype.parseLiteralAttr=function(t,e,r,n,o){Oe(t)?(t=t.substring(1),e&&this._reportError('Assigning animation triggers via @prop="exp" attributes with an expression is invalid. Use property bindings (e.g. [@prop]="exp") or use an attribute without a value (e.g. @prop) instead.',r,Ws.ERROR),this._parseAnimation(t,e,r,n,o)):o.push(new lc(t,this._exprParser.wrapLiteralPrimitive(e,""),cc.LITERAL_ATTR,r))},t.prototype.parsePropertyBinding=function(t,e,r,n,o,i){var s=!1;t.startsWith(uc)?(s=!0,t=t.substring(uc.length)):Oe(t)&&(s=!0,t=t.substring(1)),s?this._parseAnimation(t,e,n,o,i):this._parsePropertyAst(t,this._parseBinding(e,r,n),n,o,i)},t.prototype.parsePropertyInterpolation=function(t,e,r,n,o){var i=this.parseInterpolation(e,r);return i?(this._parsePropertyAst(t,i,r,n,o),!0):!1},t.prototype._parsePropertyAst=function(t,e,r,n,o){n.push([t,e.source]),o.push(new lc(t,e,cc.DEFAULT,r))},t.prototype._parseAnimation=function(t,e,r,n,o){var i=this._parseBinding(e||"null",!1,r);n.push([t,i.source]),o.push(new lc(t,i,cc.ANIMATION,r))},t.prototype._parseBinding=function(t,e,r){var n=r.start.toString();try{var o=e?this._exprParser.parseSimpleBinding(t,n,this._interpolationConfig):this._exprParser.parseBinding(t,n,this._interpolationConfig);return o&&this._reportExpressionParserErrors(o.errors,r),this._checkPipes(o,r),o}catch(i){return this._reportError(""+i,r),this._exprParser.wrapLiteralPrimitive("ERROR",n)}},t.prototype.createElementPropertyAst=function(t,r){if(r.isAnimation)return new ro(r.name,fo.Animation,e.SecurityContext.NONE,r.expression,null,r.sourceSpan);var n=null,o=void 0,i=null,s=r.name.split(oc),a=void 0;if(s.length>1)if(s[0]==ic){i=s[1],this._validatePropertyOrAttributeName(i,r.sourceSpan,!0),a=Me(this._schemaRegistry,t,i,!0);var c=i.indexOf(":");if(c>-1){var l=i.substring(0,c),p=i.substring(c+1);i=u(l,p)}o=fo.Attribute}else s[0]==sc?(i=s[1],o=fo.Class,a=[e.SecurityContext.NONE]):s[0]==ac&&(n=s.length>2?s[2]:null,i=s[1],o=fo.Style,a=[e.SecurityContext.STYLE]);return null===i&&(i=this._schemaRegistry.getMappedPropName(r.name),a=Me(this._schemaRegistry,t,i,!1),o=fo.Property,this._validatePropertyOrAttributeName(i,r.sourceSpan,!1)),new ro(i,o,a[0],r.expression,n,r.sourceSpan)},t.prototype.parseEvent=function(t,e,r,n,o){Oe(t)?(t=t.substr(1),this._parseAnimationEvent(t,e,r,o)):this._parseEvent(t,e,r,n,o)},t.prototype._parseAnimationEvent=function(t,e,r,n){var o=h(t,[t,""]),i=o[0],s=o[1].toLowerCase();if(s)switch(s){case"start":case"done":var a=this._parseAction(e,r);n.push(new no(i,null,s,a,r));break;default:this._reportError('The provided animation output phase value "'+s+'" for "@'+i+'" is not supported (use start or done)',r)}else this._reportError("The animation trigger output event (@"+i+") is missing its phase value name (start or done are currently supported)",r)},t.prototype._parseEvent=function(t,e,r,n,o){var i=p(t,[null,t]),s=i[0],a=i[1],u=this._parseAction(e,r);n.push([t,u.source]),o.push(new no(a,s,null,u,r))},t.prototype._parseAction=function(t,e){var r=e.start.toString();try{var n=this._exprParser.parseAction(t,r,this._interpolationConfig);return n&&this._reportExpressionParserErrors(n.errors,e),!n||n.ast instanceof ii?(this._reportError("Empty expressions are not allowed",e),this._exprParser.wrapLiteralPrimitive("ERROR",r)):(this._checkPipes(n,e),n)}catch(o){return this._reportError(""+o,e),this._exprParser.wrapLiteralPrimitive("ERROR",r)}},t.prototype._reportError=function(t,e,r){void 0===r&&(r=Ws.ERROR),this._targetErrors.push(new $s(e,t,r))},t.prototype._reportExpressionParserErrors=function(t,e){for(var r=0,n=t;r<n.length;r++){var o=n[r];this._reportError(o.message,e)}},t.prototype._checkPipes=function(t,e){var r=this;if(t){var n=new hc;t.visit(n),n.pipes.forEach(function(t,n){var o=r.pipesByName.get(n);o?r._usedPipes.set(n,o):r._reportError("The pipe '"+n+"' could not be found",new Gs(e.start.moveBy(t.span.start),e.start.moveBy(t.span.end)))})}},t.prototype._validatePropertyOrAttributeName=function(t,e,r){var n=r?this._schemaRegistry.validateAttribute(t):this._schemaRegistry.validateProperty(t);n.error&&this._reportError(n.msg,e,Ws.ERROR)},t}(),hc=function(t){function e(){var e=t.apply(this,arguments)||this;return e.pipes=new Map,e}return Zn(e,t),e.prototype.visitPipe=function(t,e){return this.pipes.set(t.name,t),t.exp.visit(this),this.visitAll(t.args,e),null},e}(Ti),fc="select",dc="link",mc="rel",yc="href",vc="stylesheet",gc="style",_c="script",bc="ngNonBindable",wc="ngProjectAs",Cc={};Cc.NG_CONTENT=0,Cc.STYLE=1,Cc.STYLESHEET=2,Cc.SCRIPT=3,Cc.OTHER=4,Cc[Cc.NG_CONTENT]="NG_CONTENT",Cc[Cc.STYLE]="STYLE",Cc[Cc.STYLESHEET]="STYLESHEET",Cc[Cc.SCRIPT]="SCRIPT",Cc[Cc.OTHER]="OTHER";var Ec=function(){function t(t,e,r,n,o){this.type=t,this.selectAttr=e,this.hrefAttr=r,this.nonBindable=n,this.projectAs=o}return t}(),Sc=/^(?:(?:(?:(bind-)|(let-)|(ref-|#)|(on-)|(bindon-)|(@))(.+))|\[\(([^\)]+)\)\]|\[([^\]]+)\]|\(([^\)]+)\))$/,xc=1,Tc=2,Pc=3,Ac=4,Oc=5,Mc=6,Rc=7,kc=8,Ic=9,Nc=10,Dc="template",jc="template",Lc="*",Vc="class",Fc=Eo.parse("*")[0],Uc="The <template> element is deprecated. Use <ng-template> instead",Bc="The template attribute is deprecated. Use an ng-template element instead.",Hc={},qc=new e.InjectionToken("TemplateTransforms"),zc=function(t){function e(e,r,n){return t.call(this,r,e,n)||this}return Zn(e,t),e}($s),Gc=function(){function t(t,e,r){this.templateAst=t,this.usedPipes=e,this.errors=r}return t}(),Wc=function(){function t(t,e,r,n,o,i){this._config=t,this._exprParser=e,this._schemaRegistry=r,this._htmlParser=n,this._console=o,this.transforms=i}return t.prototype.parse=function(t,e,r,n,o,i){var s=this.tryParse(t,e,r,n,o,i),a=s.errors.filter(function(t){return t.level===Ws.WARNING}).filter(Ie([Bc,Uc])),u=s.errors.filter(function(t){return t.level===Ws.ERROR});if(a.length>0&&this._console.warn("Template parse warnings:\n"+a.join("\n")),u.length>0){var c=u.join("\n");throw v("Template parse errors:\n"+c)}return{template:s.templateAst,pipes:s.usedPipes}},t.prototype.tryParse=function(t,e,r,n,o,i){return this.tryParseHtml(this.expandHtml(this._htmlParser.parse(e,i,!0,this.getInterpolationConfig(t))),t,r,n,o)},t.prototype.tryParseHtml=function(t,e,n,o,i){var s,a=t.errors,u=[];if(t.rootNodes.length>0){var c=Le(n),l=Le(o),p=new Xu(e),h=void 0;e.template&&e.template.interpolation&&(h={start:e.template.interpolation[0],end:e.template.interpolation[1]});var f=new pc(this._exprParser,h,this._schemaRegistry,l,a),d=new $c(this._config,p,c,f,this._schemaRegistry,i,a);s=lt(d,t.rootNodes,Zc),a.push.apply(a,p.errors),u.push.apply(u,f.getUsedPipes())}else s=[];return this._assertNoReferenceDuplicationOnTemplate(s,a),a.length>0?new Gc(s,u,a):(this.transforms&&this.transforms.forEach(function(t){s=r(t,s)}),new Gc(s,u,a))},t.prototype.expandHtml=function(t,e){void 0===e&&(e=!1);var r=t.errors;if(0==r.length||e){var n=ve(t.rootNodes);r.push.apply(r,n.errors),t=new ua(n.nodes,r)}return t},t.prototype.getInterpolationConfig=function(t){return t.template?Ms.fromArray(t.template.interpolation):void 0},t.prototype._assertNoReferenceDuplicationOnTemplate=function(t,e){var r=[];t.filter(function(t){return!!t.references}).forEach(function(t){return t.references.forEach(function(t){var n=t.name;if(r.indexOf(n)<0)r.push(n);else{var o=new zc('Reference "#'+n+'" is defined several times',t.sourceSpan,Ws.ERROR);e.push(o)}})})},t}();Wc.decorators=[{type:z}],Wc.ctorParameters=function(){return[{type:ti},{type:Us},{type:Ju},{type:Hu},{type:e.ɵConsole},{type:Array,decorators:[{type:e.Optional},{type:e.Inject,args:[qc]}]}]};var $c=function(){function t(t,e,r,n,o,i,s){var a=this;this.config=t,this.providerViewContext=e,this._bindingParser=n,this._schemaRegistry=o,this._schemas=i,this._targetErrors=s,this.selectorMatcher=new So,this.directivesIndex=new Map,this.ngContentCount=0,this.contentQueryStartId=e.component.viewQueries.length+1,r.forEach(function(t,e){var r=Eo.parse(t.selector);a.selectorMatcher.addSelectables(r,t),a.directivesIndex.set(t,e)})}return t.prototype.visitExpansion=function(){return null},t.prototype.visitExpansionCase=function(){return null},t.prototype.visitText=function(t,e){var r=e.findNgContentIndex(Fc),n=this._bindingParser.parseInterpolation(t.value,t.sourceSpan);return n?new to(n,r,t.sourceSpan):new Jn(t.value,r,t.sourceSpan)},t.prototype.visitAttribute=function(t){return new eo(t.name,t.value,t.sourceSpan)},t.prototype.visitComment=function(){return null},t.prototype.visitElement=function(t,e){var r=this,n=this.contentQueryStartId,o=t.name,i=Re(t);if(i.type===Cc.SCRIPT||i.type===Cc.STYLE)return null;if(i.type===Cc.STYLESHEET&&Pe(i.hrefAttr))return null;var s=[],a=[],u=[],c=[],l=[],p=[],h=[],f=[],d=!1,m=[],y=Fe(t,this.config.enableLegacyTemplate,function(t,e){return r._reportError(t,e,Ws.WARNING)});t.attrs.forEach(function(t){var e,n,o=r._parseAttr(y,t,s,a,l,u,c),i=r._normalizeAttributeName(t.name);r.config.enableLegacyTemplate&&i==jc?(r._reportError(Bc,t.sourceSpan,Ws.WARNING),e=t.value):i.startsWith(Lc)&&(e=t.value,n=i.substring(Lc.length)+":");var v=null!=e;v&&(d&&r._reportError("Can't have multiple template bindings on one element. Use only one attribute named 'template' or prefixed with *",t.sourceSpan),d=!0,r._bindingParser.parseInlineTemplateBinding(n,e,t.sourceSpan,h,p,f)),o||v||(m.push(r.visitAttribute(t,null)),s.push([t.name,t.value]))});var v=De(o,s),g=this._parseDirectives(this.selectorMatcher,v),_=g.directives,b=g.matchElement,w=[],C=new Set,E=this._createDirectiveAsts(y,t.name,_,a,u,t.sourceSpan,w,C),S=this._createElementPropertyAsts(t.name,a,C),x=e.isTemplateElement||d,T=new Zu(this.providerViewContext,e.providerContext,x,E,m,w,y,n,t.sourceSpan),P=lt(i.nonBindable?Yc:this,t.children,Xc.create(y,E,y?e.providerContext:T));T.afterElement();var A,O=null!=i.projectAs?Eo.parse(i.projectAs)[0]:v,M=e.findNgContentIndex(O);if(i.type===Cc.NG_CONTENT)t.children&&!t.children.every(je)&&this._reportError("<ng-content> element cannot have content.",t.sourceSpan),A=new ho(this.ngContentCount++,d?null:M,t.sourceSpan);else if(y)this._assertAllEventsPublishedByDirectives(E,l),this._assertNoComponentsNorElementBindingsOnTemplate(E,S,t.sourceSpan),A=new ao(m,l,w,c,T.transformedDirectiveAsts,T.transformProviders,T.transformedHasViewContainer,T.queryMatches,P,d?null:M,t.sourceSpan);else{this._assertElementExists(b,t),this._assertOnlyOneComponent(E,t.sourceSpan);var R=d?null:e.findNgContentIndex(O);A=new so(o,m,S,l,w,T.transformedDirectiveAsts,T.transformProviders,T.transformedHasViewContainer,T.queryMatches,P,d?null:R,t.sourceSpan,t.endSourceSpan||null)}if(d){var k=this.contentQueryStartId,I=De(Dc,h),N=this._parseDirectives(this.selectorMatcher,I).directives,D=new Set,j=this._createDirectiveAsts(!0,t.name,N,p,[],t.sourceSpan,[],D),L=this._createElementPropertyAsts(t.name,p,D);this._assertNoComponentsNorElementBindingsOnTemplate(j,L,t.sourceSpan);var V=new Zu(this.providerViewContext,e.providerContext,e.isTemplateElement,j,[],[],!0,k,t.sourceSpan);V.afterElement(),A=new ao([],[],[],f,V.transformedDirectiveAsts,V.transformProviders,V.transformedHasViewContainer,V.queryMatches,[A],M,t.sourceSpan)}return A},t.prototype._parseAttr=function(t,e,r,n,o,i,s){var a=this._normalizeAttributeName(e.name),u=e.value,c=e.sourceSpan,l=a.match(Sc),p=!1;if(null!==l)if(p=!0,null!=l[xc])this._bindingParser.parsePropertyBinding(l[Rc],u,!1,c,r,n);else if(l[Tc])if(t){var h=l[Rc];this._parseVariable(h,u,c,s)}else this._reportError('"let-" is only supported on template elements.',c);else if(l[Pc]){var h=l[Rc];this._parseReference(h,u,c,i)}else l[Ac]?this._bindingParser.parseEvent(l[Rc],u,c,r,o):l[Oc]?(this._bindingParser.parsePropertyBinding(l[Rc],u,!1,c,r,n),this._parseAssignmentEvent(l[Rc],u,c,r,o)):l[Mc]?this._bindingParser.parseLiteralAttr(a,u,c,r,n):l[kc]?(this._bindingParser.parsePropertyBinding(l[kc],u,!1,c,r,n),this._parseAssignmentEvent(l[kc],u,c,r,o)):l[Ic]?this._bindingParser.parsePropertyBinding(l[Ic],u,!1,c,r,n):l[Nc]&&this._bindingParser.parseEvent(l[Nc],u,c,r,o);else p=this._bindingParser.parsePropertyInterpolation(a,u,c,r,n);return p||this._bindingParser.parseLiteralAttr(a,u,c,r,n),p},t.prototype._normalizeAttributeName=function(t){return/^data-/i.test(t)?t.substring(5):t},t.prototype._parseVariable=function(t,e,r,n){t.indexOf("-")>-1&&this._reportError('"-" is not allowed in variable names',r),n.push(new io(t,e,r))},t.prototype._parseReference=function(t,e,r,n){t.indexOf("-")>-1&&this._reportError('"-" is not allowed in reference names',r),n.push(new Qc(t,e,r))},t.prototype._parseAssignmentEvent=function(t,e,r,n,o){this._bindingParser.parseEvent(t+"Change",e+"=$event",r,n,o)},t.prototype._parseDirectives=function(t,e){var r=this,n=new Array(this.directivesIndex.size),o=!1;return t.match(e,function(t,e){n[r.directivesIndex.get(e)]=e,o=o||t.hasElementSelector()}),{directives:n.filter(function(t){return!!t}),matchElement:o}},t.prototype._createDirectiveAsts=function(t,e,r,n,o,i,s,a){var u=this,c=new Set,l=null,p=r.map(function(t){var r=new Gs(i.start,i.end,"Directive "+E(t.type));t.isComponent&&(l=t);var p=[],h=u._bindingParser.createDirectiveHostPropertyAsts(t,e,r);h=u._checkPropertiesInSchema(e,h);var f=u._bindingParser.createDirectiveHostEventAsts(t,r);u._createDirectivePropertyAsts(t.inputs,n,p,a),o.forEach(function(e){(0===e.value.length&&t.isComponent||t.exportAs==e.value)&&(s.push(new oo(e.name,me(t.type),e.sourceSpan)),c.add(e.name))});var d=u.contentQueryStartId;return u.contentQueryStartId+=t.queries.length,new co(t,p,h,f,d,r)});return o.forEach(function(e){if(e.value.length>0)c.has(e.name)||u._reportError('There is no directive with "exportAs" set to "'+e.value+'"',e.sourceSpan);else if(!l){var r=null;t&&(r=ye(zu.TemplateRef)),s.push(new oo(e.name,r,e.sourceSpan))}}),p},t.prototype._createDirectivePropertyAsts=function(t,e,r,n){if(t){var o=new Map;e.forEach(function(t){var e=o.get(t.name);(!e||e.isLiteral)&&o.set(t.name,t)}),Object.keys(t).forEach(function(e){var i=t[e],s=o.get(i);s&&(n.add(s.name),Ve(s.expression)||r.push(new uo(e,s.name,s.expression,s.sourceSpan)))})}},t.prototype._createElementPropertyAsts=function(t,e,r){var n=this,o=[];return e.forEach(function(e){e.isLiteral||r.has(e.name)||o.push(n._bindingParser.createElementPropertyAst(t,e))}),this._checkPropertiesInSchema(t,o)},t.prototype._findComponentDirectives=function(t){return t.filter(function(t){return t.directive.isComponent})},t.prototype._findComponentDirectiveNames=function(t){return this._findComponentDirectives(t).map(function(t){return E(t.directive.type)})},t.prototype._assertOnlyOneComponent=function(t,e){var r=this._findComponentDirectiveNames(t);r.length>1&&this._reportError("More than one component matched on this element.\nMake sure that only one component's selector can match a given element.\nConflicting components: "+r.join(","),e)},t.prototype._assertElementExists=function(t,e){var r=e.name.replace(/^:xhtml:/,"");if(!t&&!this._schemaRegistry.hasElement(r,this._schemas)){var n="'"+r+"' is not a known element:\n";n+="1. If '"+r+"' is an Angular component, then verify that it is part of this module.\n",n+=r.indexOf("-")>-1?"2. If '"+r+"' is a Web Component then add 'CUSTOM_ELEMENTS_SCHEMA' to the '@NgModule.schemas' of this component to suppress this message.":"2. To allow any element add 'NO_ERRORS_SCHEMA' to the '@NgModule.schemas' of this component.",this._reportError(n,e.sourceSpan)}},t.prototype._assertNoComponentsNorElementBindingsOnTemplate=function(t,e,r){var n=this,o=this._findComponentDirectiveNames(t);o.length>0&&this._reportError("Components on an embedded template: "+o.join(","),r),e.forEach(function(t){n._reportError("Property binding "+t.name+' not used by any directive on an embedded template. Make sure that the property name is spelled correctly and all directives are listed in the "@NgModule.declarations".',r)})},t.prototype._assertAllEventsPublishedByDirectives=function(t,e){var r=this,n=new Set;t.forEach(function(t){Object.keys(t.directive.outputs).forEach(function(e){var r=t.directive.outputs[e];n.add(r)})}),e.forEach(function(t){null==t.target&&n.has(t.name)||r._reportError("Event binding "+t.fullName+' not emitted by any directive on an embedded template. Make sure that the event name is spelled correctly and all directives are listed in the "@NgModule.declarations".',t.sourceSpan)})},t.prototype._checkPropertiesInSchema=function(t,e){var r=this;return e.filter(function(e){if(e.type===fo.Property&&!r._schemaRegistry.hasProperty(t,e.name,r._schemas)){var n="Can't bind to '"+e.name+"' since it isn't a known property of '"+t+"'.";t.startsWith("ng-")?n+="\n1. If '"+e.name+"' is an Angular directive, then add 'CommonModule' to the '@NgModule.imports' of this component.\n2. To allow any property add 'NO_ERRORS_SCHEMA' to the '@NgModule.schemas' of this component.":t.indexOf("-")>-1&&(n+="\n1. If '"+t+"' is an Angular component and it has '"+e.name+"' input, then verify that it is part of this module."+("\n2. If '"+t+"' is a Web Component then add 'CUSTOM_ELEMENTS_SCHEMA' to the '@NgModule.schemas' of this component to suppress this message.")+"\n3. To allow any property add 'NO_ERRORS_SCHEMA' to the '@NgModule.schemas' of this component."),r._reportError(n,e.sourceSpan)}return!Ve(e.value)})},t.prototype._reportError=function(t,e,r){void 0===r&&(r=Ws.ERROR),this._targetErrors.push(new $s(e,t,r))},t}(),Kc=function(){function t(){}return t.prototype.visitElement=function(t,e){var r=Re(t);if(r.type===Cc.SCRIPT||r.type===Cc.STYLE||r.type===Cc.STYLESHEET)return null;var n=t.attrs.map(function(t){return[t.name,t.value]}),o=De(t.name,n),i=e.findNgContentIndex(o),s=lt(this,t.children,Zc);return new so(t.name,lt(this,t.attrs),[],[],[],[],[],!1,[],s,i,t.sourceSpan,t.endSourceSpan)},t.prototype.visitComment=function(){return null},t.prototype.visitAttribute=function(t){return new eo(t.name,t.value,t.sourceSpan)},t.prototype.visitText=function(t,e){var r=e.findNgContentIndex(Fc);return new Jn(t.value,r,t.sourceSpan)},t.prototype.visitExpansion=function(t){return t},t.prototype.visitExpansionCase=function(t){return t},t}(),Qc=function(){function t(t,e,r){this.name=t,this.value=e,this.sourceSpan=r}return t}(),Xc=function(){function t(t,e,r,n){this.isTemplateElement=t,this._ngContentIndexMatcher=e,this._wildcardNgContentIndex=r,this.providerContext=n}return t.create=function(e,r,n){var o=new So,i=null,s=r.find(function(t){return t.directive.isComponent});if(s)for(var a=s.directive.template.ngContentSelectors,u=0;u<a.length;u++){var c=a[u];"*"===c?i=u:o.addSelectables(Eo.parse(a[u]),u)}return new t(e,o,i,n)},t.prototype.findNgContentIndex=function(t){var e=[];return this._ngContentIndexMatcher.match(t,function(t,r){e.push(r)}),e.sort(),null!=this._wildcardNgContentIndex&&e.push(this._wildcardNgContentIndex),e.length>0?e[0]:null},t}(),Zc=new Xc(!0,new So,null,null),Yc=new Kc,Jc=function(){function t(){}return t.prototype.get=function(){return null},t}(),tl={provide:e.PACKAGE_ROOT_URL,useValue:"/"},el=function(){function t(t){void 0===t&&(t=null),this._packagePrefix=t}return t.prototype.resolve=function(t,e){var r=e;null!=t&&t.length>0&&(r=$e(t,r));var n=ze(r),o=this._packagePrefix;if(null!=o&&null!=n&&"package"==n[nl.Scheme]){var i=n[nl.Path];return o=o.replace(/\/+$/,""),i=i.replace(/^\/+/,""),o+"/"+i}return r},t}();el.decorators=[{type:z}],el.ctorParameters=function(){return[{type:void 0,decorators:[{type:e.Inject,args:[e.PACKAGE_ROOT_URL]}]}]};var rl=new RegExp("^(?:([^:/?#.]+):)?(?://(?:([^/?#]*)@)?([\\w\\d\\-\\u0100-\\uffff.%]*)(?::([0-9]+))?)?([^?#]+)?(?:\\?([^#]*))?(?:#(.*))?$"),nl={};nl.Scheme=1,nl.UserInfo=2,nl.Domain=3,nl.Port=4,nl.Path=5,nl.QueryData=6,nl.Fragment=7,nl[nl.Scheme]="Scheme",nl[nl.UserInfo]="UserInfo",nl[nl.Domain]="Domain",nl[nl.Port]="Port",nl[nl.Path]="Path",nl[nl.QueryData]="QueryData",nl[nl.Fragment]="Fragment";var ol=function(){function t(t,e,r,n){this._resourceLoader=t,this._urlResolver=e,this._htmlParser=r,this._config=n,this._resourceLoaderCache=new Map}return t.prototype.clearCache=function(){this._resourceLoaderCache.clear()},t.prototype.clearCacheFor=function(t){var e=this;if(t.isComponent){var r=t.template;this._resourceLoaderCache["delete"](r.templateUrl),r.externalStylesheets.forEach(function(t){e._resourceLoaderCache["delete"](t.moduleUrl)})}},t.prototype._fetch=function(t){var e=this._resourceLoaderCache.get(t);return e||(e=this._resourceLoader.get(t),this._resourceLoaderCache.set(t,e)),e},t.prototype.normalizeTemplate=function(t){var r=this,n=null,o=void 0;if(m(t.template)){if(m(t.templateUrl))throw v("'"+e.ɵstringify(t.componentType)+"' component cannot define both template and templateUrl");if("string"!=typeof t.template)throw v("The template specified for component "+e.ɵstringify(t.componentType)+" is not a string");n=this.normalizeTemplateSync(t),o=Promise.resolve(n)}else{if(!m(t.templateUrl))throw v("No template specified for component "+e.ɵstringify(t.componentType));if("string"!=typeof t.templateUrl)throw v("The templateUrl specified for component "+e.ɵstringify(t.componentType)+" is not a string");o=this.normalizeTemplateAsync(t)}return n&&0===n.styleUrls.length?new Mo(n):new Mo(null,o.then(function(t){return r.normalizeExternalStylesheets(t)}))},t.prototype.normalizeTemplateSync=function(t){return this.normalizeLoadedTemplate(t,t.template,t.moduleUrl)},t.prototype.normalizeTemplateAsync=function(t){var e=this,r=this._urlResolver.resolve(t.moduleUrl,t.templateUrl);return this._fetch(r).then(function(n){return e.normalizeLoadedTemplate(t,n,r)})},t.prototype.normalizeLoadedTemplate=function(t,r,n){var o=!!t.template,i=Ms.fromArray(t.interpolation),s=this._htmlParser.parse(r,j({reference:t.ngModuleType},{type:{reference:t.componentType}},{isInline:o,templateUrl:n}),!0,i);if(s.errors.length>0){var a=s.errors.join("\n");throw v("Template parse errors:\n"+a)}var u=this.normalizeStylesheet(new $o({styles:t.styles,styleUrls:t.styleUrls,moduleUrl:t.moduleUrl})),c=new il;lt(c,s.rootNodes);var l=this.normalizeStylesheet(new $o({styles:c.styles,styleUrls:c.styleUrls,moduleUrl:n})),p=t.encapsulation;null==p&&(p=this._config.defaultEncapsulation);var h=u.styles.concat(l.styles),f=u.styleUrls.concat(l.styleUrls);return p===e.ViewEncapsulation.Emulated&&0===h.length&&0===f.length&&(p=e.ViewEncapsulation.None),new Ko({encapsulation:p,template:r,templateUrl:n,styles:h,styleUrls:f,ngContentSelectors:c.ngContentSelectors,animations:t.animations,interpolation:t.interpolation,isInline:o,externalStylesheets:[]})},t.prototype.normalizeExternalStylesheets=function(t){return this._loadMissingExternalStylesheets(t.styleUrls).then(function(e){return new Ko({encapsulation:t.encapsulation,template:t.template,templateUrl:t.templateUrl,styles:t.styles,styleUrls:t.styleUrls,externalStylesheets:e,ngContentSelectors:t.ngContentSelectors,animations:t.animations,interpolation:t.interpolation,isInline:t.isInline})})},t.prototype._loadMissingExternalStylesheets=function(t,e){var r=this;return void 0===e&&(e=new Map),Promise.all(t.filter(function(t){return!e.has(t)}).map(function(t){return r._fetch(t).then(function(n){var o=r.normalizeStylesheet(new $o({styles:[n],moduleUrl:t}));return e.set(t,o),r._loadMissingExternalStylesheets(o.styleUrls,e)})})).then(function(){return Array.from(e.values())})},t.prototype.normalizeStylesheet=function(t){var e=this,r=t.moduleUrl,n=t.styleUrls.filter(Pe).map(function(t){return e._urlResolver.resolve(r,t)}),o=t.styles.map(function(t){var o=Ae(e._urlResolver,r,t);return n.push.apply(n,o.styleUrls),o.style});return new $o({styles:o,styleUrls:n,moduleUrl:r})},t}();ol.decorators=[{type:z}],ol.ctorParameters=function(){return[{type:Jc},{type:el},{type:Fu},{type:ti}]};var il=function(){function t(){this.ngContentSelectors=[],this.styles=[],this.styleUrls=[],this.ngNonBindableStackCount=0}return t.prototype.visitElement=function(t){var e=Re(t);switch(e.type){case Cc.NG_CONTENT:0===this.ngNonBindableStackCount&&this.ngContentSelectors.push(e.selectAttr);break;case Cc.STYLE:var r="";t.children.forEach(function(t){t instanceof Ks&&(r+=t.value)}),this.styles.push(r);break;case Cc.STYLESHEET:this.styleUrls.push(e.hrefAttr)}return e.nonBindable&&this.ngNonBindableStackCount++,lt(this,t.children),e.nonBindable&&this.ngNonBindableStackCount--,null},t.prototype.visitExpansion=function(t){lt(this,t.cases)},t.prototype.visitExpansionCase=function(t){lt(this,t.expression)},t.prototype.visitComment=function(){return null},t.prototype.visitAttribute=function(){return null},t.prototype.visitText=function(){return null},t}(),sl=void 0||Object.assign||function(t){for(var e,r=1,n=arguments.length;n>r;r++){e=arguments[r];for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])}return t},al=function(){function t(t){void 0===t&&(t=e.ɵreflector),this._reflector=t}return t.prototype.isDirective=function(t){var r=this._reflector.annotations(e.resolveForwardRef(t));return r&&r.some(Ke)},t.prototype.resolve=function(t,r){void 0===r&&(r=!0);var n=this._reflector.annotations(e.resolveForwardRef(t));if(n){var o=Qe(n,Ke);if(o){var i=this._reflector.propMetadata(t);return this._mergeWithPropertyMetadata(o,i,t)}}if(r)throw new Error("No Directive annotation found on "+e.ɵstringify(t));return null},t.prototype._mergeWithPropertyMetadata=function(t,r,n){var o=[],i=[],s={},a={};return Object.keys(r).forEach(function(t){var n=Qe(r[t],function(t){return t instanceof e.Input});n&&o.push(n.bindingPropertyName?t+": "+n.bindingPropertyName:t);var u=Qe(r[t],function(t){return t instanceof e.Output});u&&i.push(u.bindingPropertyName?t+": "+u.bindingPropertyName:t);var c=r[t].filter(function(t){return t&&t instanceof e.HostBinding});c.forEach(function(e){if(e.hostPropertyName){var r=e.hostPropertyName[0];if("("===r)throw new Error("@HostBinding can not bind to events. Use @HostListener instead.");if("["===r)throw new Error("@HostBinding parameter should be a property name, 'class.<name>', or 'attr.<name>'.");s["["+e.hostPropertyName+"]"]=t}else s["["+t+"]"]=t});var l=r[t].filter(function(t){return t&&t instanceof e.HostListener});l.forEach(function(e){var r=e.args||[];s["("+e.eventName+")"]=t+"("+r.join(",")+")"});var p=Qe(r[t],function(t){return t instanceof e.Query});p&&(a[t]=p)}),this._merge(t,o,i,s,a,n); +},t.prototype._getDependency=function(t,e,r){void 0===r&&(r=!1);var n=this,o=r,i=null;if(e.isSkipSelf||(i=this._getLocalDependency(t,e,r)),e.isSelf)!i&&e.isOptional&&(i={isValue:!0,value:null});else{for(;!i&&n._parent;){var s=n;n=n._parent,s._isViewRoot&&(o=!1),i=n._getLocalDependency(po.PublicService,e,o)}i||(i=!e.isHost||this.viewContext.component.isHost||this.viewContext.component.type.reference===R(e.token)||null!=this.viewContext.viewProviders.get(R(e.token))?e:e.isOptional?i={isValue:!0,value:null}:null)}return i||this.viewContext.errors.push(new Qu("No provider for "+M(e.token),this._sourceSpan)),i},t}(),Yu=function(){function t(t,e,r){var n=this;this._transformedProviders=new Map,this._seenProviders=new Map,this._errors=[],this._allProviders=new Map,t.transitiveModule.modules.forEach(function(t){var e={token:{identifier:t},useClass:t};Ee([e],po.PublicService,!0,r,n._errors,n._allProviders)}),Ee(t.transitiveModule.providers.map(function(t){return t.provider}).concat(e),po.PublicService,!1,r,this._errors,this._allProviders)}return t.prototype.parse=function(){var t=this;if(Array.from(this._allProviders.values()).forEach(function(e){t._getOrCreateLocalProvider(e.token,e.eager)}),this._errors.length>0){var e=this._errors.join("\n");throw new Error("Provider parse errors:\n"+e)}return Array.from(this._transformedProviders.values())},t.prototype._getOrCreateLocalProvider=function(t,e){var r=this,n=this._allProviders.get(R(t));if(!n)return null;var o=this._transformedProviders.get(R(t));if(o)return o;if(null!=this._seenProviders.get(R(t)))return this._errors.push(new Qu("Cannot instantiate cyclic dependency! "+M(t),n.sourceSpan)),null;this._seenProviders.set(R(t),!0);var i=n.providers.map(function(t){var o=t.useValue,i=t.useExisting,s=void 0;if(null!=t.useExisting){var a=r._getDependency({token:t.useExisting},e,n.sourceSpan);null!=a.token?i=a.token:(i=null,o=a.value)}else if(t.useFactory){var u=t.deps||t.useFactory.diDeps;s=u.map(function(t){return r._getDependency(t,e,n.sourceSpan)})}else if(t.useClass){var u=t.deps||t.useClass.diDeps;s=u.map(function(t){return r._getDependency(t,e,n.sourceSpan)})}return be(t,{useExisting:i,useValue:o,deps:s})});return o=we(n,{eager:e,providers:i}),this._transformedProviders.set(R(t),o),o},t.prototype._getDependency=function(t,e,r){void 0===e&&(e=!1);var n=!1;t.isSkipSelf||null==t.token||(R(t.token)===fe(zu.Injector)||R(t.token)===fe(zu.ComponentFactoryResolver)?n=!0:null!=this._getOrCreateLocalProvider(t.token,e)&&(n=!0));var o=t;return t.isSelf&&!n&&(t.isOptional?o={isValue:!0,value:null}:this._errors.push(new Qu("No provider for "+M(t.token),r))),o},t}(),Ju=function(){function t(){}return t.prototype.hasProperty=function(){},t.prototype.hasElement=function(){},t.prototype.securityContext=function(){},t.prototype.allKnownElementNames=function(){},t.prototype.getMappedPropName=function(){},t.prototype.getDefaultComponentElementName=function(){},t.prototype.validateProperty=function(){},t.prototype.validateAttribute=function(){},t.prototype.normalizeAnimationStyleProperty=function(){},t.prototype.normalizeAnimationStyleValue=function(){},t}(),tc=function(){function t(t,e){this.style=t,this.styleUrls=e}return t}(),ec=/@import\s+(?:url\()?\s*(?:(?:['"]([^'"]*))|([^;\)\s]*))[^;]*;?/g,rc=/\/\*.+?\*\//g,nc=/^([^:\/?#]+):/,oc=".",ic="attr",sc="class",ac="style",uc="animate-",cc={};cc.DEFAULT=0,cc.LITERAL_ATTR=1,cc.ANIMATION=2,cc[cc.DEFAULT]="DEFAULT",cc[cc.LITERAL_ATTR]="LITERAL_ATTR",cc[cc.ANIMATION]="ANIMATION";var lc=function(){function t(t,e,r,n){this.name=t,this.expression=e,this.type=r,this.sourceSpan=n}return Object.defineProperty(t.prototype,"isLiteral",{get:function(){return this.type===cc.LITERAL_ATTR},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isAnimation",{get:function(){return this.type===cc.ANIMATION},enumerable:!0,configurable:!0}),t}(),pc=function(){function t(t,e,r,n,o){var i=this;this._exprParser=t,this._interpolationConfig=e,this._schemaRegistry=r,this._targetErrors=o,this.pipesByName=new Map,this._usedPipes=new Map,n.forEach(function(t){return i.pipesByName.set(t.name,t)})}return t.prototype.getUsedPipes=function(){return Array.from(this._usedPipes.values())},t.prototype.createDirectiveHostPropertyAsts=function(t,e,r){var n=this;if(t.hostProperties){var o=[];return Object.keys(t.hostProperties).forEach(function(e){var i=t.hostProperties[e];"string"==typeof i?n.parsePropertyBinding(e,i,!0,r,[],o):n._reportError('Value of the host property binding "'+e+'" needs to be a string representing an expression but got "'+i+'" ('+typeof i+")",r)}),o.map(function(t){return n.createElementPropertyAst(e,t)})}return null},t.prototype.createDirectiveHostEventAsts=function(t,e){var r=this;if(t.hostListeners){var n=[];return Object.keys(t.hostListeners).forEach(function(o){var i=t.hostListeners[o];"string"==typeof i?r.parseEvent(o,i,e,[],n):r._reportError('Value of the host listener "'+o+'" needs to be a string representing an expression but got "'+i+'" ('+typeof i+")",e)}),n}return null},t.prototype.parseInterpolation=function(t,e){var r=e.start.toString();try{var n=this._exprParser.parseInterpolation(t,r,this._interpolationConfig);return n&&this._reportExpressionParserErrors(n.errors,e),this._checkPipes(n,e),n}catch(o){return this._reportError(""+o,e),this._exprParser.wrapLiteralPrimitive("ERROR",r)}},t.prototype.parseInlineTemplateBinding=function(t,e,r,n,o,i){for(var s=this._parseTemplateBindings(t,e,r),a=0;a<s.length;a++){var u=s[a];u.keyIsVar?i.push(new io(u.key,u.name,r)):u.expression?this._parsePropertyAst(u.key,u.expression,r,n,o):(n.push([u.key,""]),this.parseLiteralAttr(u.key,null,r,n,o))}},t.prototype._parseTemplateBindings=function(t,e,r){var n=this,o=r.start.toString();try{var i=this._exprParser.parseTemplateBindings(t,e,o);return this._reportExpressionParserErrors(i.errors,r),i.templateBindings.forEach(function(t){t.expression&&n._checkPipes(t.expression,r)}),i.warnings.forEach(function(t){n._reportError(t,r,Ws.WARNING)}),i.templateBindings}catch(s){return this._reportError(""+s,r),[]}},t.prototype.parseLiteralAttr=function(t,e,r,n,o){Oe(t)?(t=t.substring(1),e&&this._reportError('Assigning animation triggers via @prop="exp" attributes with an expression is invalid. Use property bindings (e.g. [@prop]="exp") or use an attribute without a value (e.g. @prop) instead.',r,Ws.ERROR),this._parseAnimation(t,e,r,n,o)):o.push(new lc(t,this._exprParser.wrapLiteralPrimitive(e,""),cc.LITERAL_ATTR,r))},t.prototype.parsePropertyBinding=function(t,e,r,n,o,i){var s=!1;t.startsWith(uc)?(s=!0,t=t.substring(uc.length)):Oe(t)&&(s=!0,t=t.substring(1)),s?this._parseAnimation(t,e,n,o,i):this._parsePropertyAst(t,this._parseBinding(e,r,n),n,o,i)},t.prototype.parsePropertyInterpolation=function(t,e,r,n,o){var i=this.parseInterpolation(e,r);return i?(this._parsePropertyAst(t,i,r,n,o),!0):!1},t.prototype._parsePropertyAst=function(t,e,r,n,o){n.push([t,e.source]),o.push(new lc(t,e,cc.DEFAULT,r))},t.prototype._parseAnimation=function(t,e,r,n,o){var i=this._parseBinding(e||"null",!1,r);n.push([t,i.source]),o.push(new lc(t,i,cc.ANIMATION,r))},t.prototype._parseBinding=function(t,e,r){var n=r.start.toString();try{var o=e?this._exprParser.parseSimpleBinding(t,n,this._interpolationConfig):this._exprParser.parseBinding(t,n,this._interpolationConfig);return o&&this._reportExpressionParserErrors(o.errors,r),this._checkPipes(o,r),o}catch(i){return this._reportError(""+i,r),this._exprParser.wrapLiteralPrimitive("ERROR",n)}},t.prototype.createElementPropertyAst=function(t,r){if(r.isAnimation)return new ro(r.name,fo.Animation,e.SecurityContext.NONE,r.expression,null,r.sourceSpan);var n=null,o=void 0,i=null,s=r.name.split(oc),a=void 0;if(s.length>1)if(s[0]==ic){i=s[1],this._validatePropertyOrAttributeName(i,r.sourceSpan,!0),a=Me(this._schemaRegistry,t,i,!0);var c=i.indexOf(":");if(c>-1){var l=i.substring(0,c),p=i.substring(c+1);i=u(l,p)}o=fo.Attribute}else s[0]==sc?(i=s[1],o=fo.Class,a=[e.SecurityContext.NONE]):s[0]==ac&&(n=s.length>2?s[2]:null,i=s[1],o=fo.Style,a=[e.SecurityContext.STYLE]);return null===i&&(i=this._schemaRegistry.getMappedPropName(r.name),a=Me(this._schemaRegistry,t,i,!1),o=fo.Property,this._validatePropertyOrAttributeName(i,r.sourceSpan,!1)),new ro(i,o,a[0],r.expression,n,r.sourceSpan)},t.prototype.parseEvent=function(t,e,r,n,o){Oe(t)?(t=t.substr(1),this._parseAnimationEvent(t,e,r,o)):this._parseEvent(t,e,r,n,o)},t.prototype._parseAnimationEvent=function(t,e,r,n){var o=h(t,[t,""]),i=o[0],s=o[1].toLowerCase();if(s)switch(s){case"start":case"done":var a=this._parseAction(e,r);n.push(new no(i,null,s,a,r));break;default:this._reportError('The provided animation output phase value "'+s+'" for "@'+i+'" is not supported (use start or done)',r)}else this._reportError("The animation trigger output event (@"+i+") is missing its phase value name (start or done are currently supported)",r)},t.prototype._parseEvent=function(t,e,r,n,o){var i=p(t,[null,t]),s=i[0],a=i[1],u=this._parseAction(e,r);n.push([t,u.source]),o.push(new no(a,s,null,u,r))},t.prototype._parseAction=function(t,e){var r=e.start.toString();try{var n=this._exprParser.parseAction(t,r,this._interpolationConfig);return n&&this._reportExpressionParserErrors(n.errors,e),!n||n.ast instanceof ii?(this._reportError("Empty expressions are not allowed",e),this._exprParser.wrapLiteralPrimitive("ERROR",r)):(this._checkPipes(n,e),n)}catch(o){return this._reportError(""+o,e),this._exprParser.wrapLiteralPrimitive("ERROR",r)}},t.prototype._reportError=function(t,e,r){void 0===r&&(r=Ws.ERROR),this._targetErrors.push(new $s(e,t,r))},t.prototype._reportExpressionParserErrors=function(t,e){for(var r=0,n=t;r<n.length;r++){var o=n[r];this._reportError(o.message,e)}},t.prototype._checkPipes=function(t,e){var r=this;if(t){var n=new hc;t.visit(n),n.pipes.forEach(function(t,n){var o=r.pipesByName.get(n);o?r._usedPipes.set(n,o):r._reportError("The pipe '"+n+"' could not be found",new Gs(e.start.moveBy(t.span.start),e.start.moveBy(t.span.end)))})}},t.prototype._validatePropertyOrAttributeName=function(t,e,r){var n=r?this._schemaRegistry.validateAttribute(t):this._schemaRegistry.validateProperty(t);n.error&&this._reportError(n.msg,e,Ws.ERROR)},t}(),hc=function(t){function e(){var e=t.apply(this,arguments)||this;return e.pipes=new Map,e}return Zn(e,t),e.prototype.visitPipe=function(t,e){return this.pipes.set(t.name,t),t.exp.visit(this),this.visitAll(t.args,e),null},e}(Ti),fc="select",dc="link",mc="rel",yc="href",vc="stylesheet",gc="style",_c="script",bc="ngNonBindable",wc="ngProjectAs",Cc={};Cc.NG_CONTENT=0,Cc.STYLE=1,Cc.STYLESHEET=2,Cc.SCRIPT=3,Cc.OTHER=4,Cc[Cc.NG_CONTENT]="NG_CONTENT",Cc[Cc.STYLE]="STYLE",Cc[Cc.STYLESHEET]="STYLESHEET",Cc[Cc.SCRIPT]="SCRIPT",Cc[Cc.OTHER]="OTHER";var Ec=function(){function t(t,e,r,n,o){this.type=t,this.selectAttr=e,this.hrefAttr=r,this.nonBindable=n,this.projectAs=o}return t}(),Sc=/^(?:(?:(?:(bind-)|(let-)|(ref-|#)|(on-)|(bindon-)|(@))(.+))|\[\(([^\)]+)\)\]|\[([^\]]+)\]|\(([^\)]+)\))$/,xc=1,Tc=2,Pc=3,Ac=4,Oc=5,Mc=6,Rc=7,kc=8,Ic=9,Nc=10,Dc="template",jc="template",Lc="*",Vc="class",Fc=Eo.parse("*")[0],Uc="The <template> element is deprecated. Use <ng-template> instead",Bc="The template attribute is deprecated. Use an ng-template element instead.",Hc={},qc=new e.InjectionToken("TemplateTransforms"),zc=function(t){function e(e,r,n){return t.call(this,r,e,n)||this}return Zn(e,t),e}($s),Gc=function(){function t(t,e,r){this.templateAst=t,this.usedPipes=e,this.errors=r}return t}(),Wc=function(){function t(t,e,r,n,o,i){this._config=t,this._exprParser=e,this._schemaRegistry=r,this._htmlParser=n,this._console=o,this.transforms=i}return t.prototype.parse=function(t,e,r,n,o,i){var s=this.tryParse(t,e,r,n,o,i),a=s.errors.filter(function(t){return t.level===Ws.WARNING}).filter(Ie([Bc,Uc])),u=s.errors.filter(function(t){return t.level===Ws.ERROR});if(a.length>0&&this._console.warn("Template parse warnings:\n"+a.join("\n")),u.length>0){var c=u.join("\n");throw v("Template parse errors:\n"+c)}return{template:s.templateAst,pipes:s.usedPipes}},t.prototype.tryParse=function(t,e,r,n,o,i){return this.tryParseHtml(this.expandHtml(this._htmlParser.parse(e,i,!0,this.getInterpolationConfig(t))),t,r,n,o)},t.prototype.tryParseHtml=function(t,e,n,o,i){var s,a=t.errors,u=[];if(t.rootNodes.length>0){var c=Le(n),l=Le(o),p=new Xu(e),h=void 0;e.template&&e.template.interpolation&&(h={start:e.template.interpolation[0],end:e.template.interpolation[1]});var f=new pc(this._exprParser,h,this._schemaRegistry,l,a),d=new $c(this._config,p,c,f,this._schemaRegistry,i,a);s=lt(d,t.rootNodes,Zc),a.push.apply(a,p.errors),u.push.apply(u,f.getUsedPipes())}else s=[];return this._assertNoReferenceDuplicationOnTemplate(s,a),a.length>0?new Gc(s,u,a):(this.transforms&&this.transforms.forEach(function(t){s=r(t,s)}),new Gc(s,u,a))},t.prototype.expandHtml=function(t,e){void 0===e&&(e=!1);var r=t.errors;if(0==r.length||e){var n=ve(t.rootNodes);r.push.apply(r,n.errors),t=new ua(n.nodes,r)}return t},t.prototype.getInterpolationConfig=function(t){return t.template?Ms.fromArray(t.template.interpolation):void 0},t.prototype._assertNoReferenceDuplicationOnTemplate=function(t,e){var r=[];t.filter(function(t){return!!t.references}).forEach(function(t){return t.references.forEach(function(t){var n=t.name;if(r.indexOf(n)<0)r.push(n);else{var o=new zc('Reference "#'+n+'" is defined several times',t.sourceSpan,Ws.ERROR);e.push(o)}})})},t}();Wc.decorators=[{type:z}],Wc.ctorParameters=function(){return[{type:ti},{type:Us},{type:Ju},{type:Hu},{type:e.ɵConsole},{type:Array,decorators:[{type:e.Optional},{type:e.Inject,args:[qc]}]}]};var $c=function(){function t(t,e,r,n,o,i,s){var a=this;this.config=t,this.providerViewContext=e,this._bindingParser=n,this._schemaRegistry=o,this._schemas=i,this._targetErrors=s,this.selectorMatcher=new So,this.directivesIndex=new Map,this.ngContentCount=0,this.contentQueryStartId=e.component.viewQueries.length+1,r.forEach(function(t,e){var r=Eo.parse(t.selector);a.selectorMatcher.addSelectables(r,t),a.directivesIndex.set(t,e)})}return t.prototype.visitExpansion=function(){return null},t.prototype.visitExpansionCase=function(){return null},t.prototype.visitText=function(t,e){var r=e.findNgContentIndex(Fc),n=this._bindingParser.parseInterpolation(t.value,t.sourceSpan);return n?new to(n,r,t.sourceSpan):new Jn(t.value,r,t.sourceSpan)},t.prototype.visitAttribute=function(t){return new eo(t.name,t.value,t.sourceSpan)},t.prototype.visitComment=function(){return null},t.prototype.visitElement=function(t,e){var r=this,n=this.contentQueryStartId,o=t.name,i=Re(t);if(i.type===Cc.SCRIPT||i.type===Cc.STYLE)return null;if(i.type===Cc.STYLESHEET&&Pe(i.hrefAttr))return null;var s=[],a=[],u=[],c=[],l=[],p=[],h=[],f=[],d=!1,m=[],y=Fe(t,this.config.enableLegacyTemplate,function(t,e){return r._reportError(t,e,Ws.WARNING)});t.attrs.forEach(function(t){var e,n,o=r._parseAttr(y,t,s,a,l,u,c),i=r._normalizeAttributeName(t.name);r.config.enableLegacyTemplate&&i==jc?(r._reportError(Bc,t.sourceSpan,Ws.WARNING),e=t.value):i.startsWith(Lc)&&(e=t.value,n=i.substring(Lc.length)+":");var v=null!=e;v&&(d&&r._reportError("Can't have multiple template bindings on one element. Use only one attribute named 'template' or prefixed with *",t.sourceSpan),d=!0,r._bindingParser.parseInlineTemplateBinding(n,e,t.sourceSpan,h,p,f)),o||v||(m.push(r.visitAttribute(t,null)),s.push([t.name,t.value]))});var v=De(o,s),g=this._parseDirectives(this.selectorMatcher,v),_=g.directives,b=g.matchElement,w=[],C=new Set,E=this._createDirectiveAsts(y,t.name,_,a,u,t.sourceSpan,w,C),S=this._createElementPropertyAsts(t.name,a,C),x=e.isTemplateElement||d,T=new Zu(this.providerViewContext,e.providerContext,x,E,m,w,y,n,t.sourceSpan),P=lt(i.nonBindable?Yc:this,t.children,Xc.create(y,E,y?e.providerContext:T));T.afterElement();var A,O=null!=i.projectAs?Eo.parse(i.projectAs)[0]:v,M=e.findNgContentIndex(O);if(i.type===Cc.NG_CONTENT)t.children&&!t.children.every(je)&&this._reportError("<ng-content> element cannot have content.",t.sourceSpan),A=new ho(this.ngContentCount++,d?null:M,t.sourceSpan);else if(y)this._assertAllEventsPublishedByDirectives(E,l),this._assertNoComponentsNorElementBindingsOnTemplate(E,S,t.sourceSpan),A=new ao(m,l,w,c,T.transformedDirectiveAsts,T.transformProviders,T.transformedHasViewContainer,T.queryMatches,P,d?null:M,t.sourceSpan);else{this._assertElementExists(b,t),this._assertOnlyOneComponent(E,t.sourceSpan);var R=d?null:e.findNgContentIndex(O);A=new so(o,m,S,l,w,T.transformedDirectiveAsts,T.transformProviders,T.transformedHasViewContainer,T.queryMatches,P,d?null:R,t.sourceSpan,t.endSourceSpan||null)}if(d){var k=this.contentQueryStartId,I=De(Dc,h),N=this._parseDirectives(this.selectorMatcher,I).directives,D=new Set,j=this._createDirectiveAsts(!0,t.name,N,p,[],t.sourceSpan,[],D),L=this._createElementPropertyAsts(t.name,p,D);this._assertNoComponentsNorElementBindingsOnTemplate(j,L,t.sourceSpan);var V=new Zu(this.providerViewContext,e.providerContext,e.isTemplateElement,j,[],[],!0,k,t.sourceSpan);V.afterElement(),A=new ao([],[],[],f,V.transformedDirectiveAsts,V.transformProviders,V.transformedHasViewContainer,V.queryMatches,[A],M,t.sourceSpan)}return A},t.prototype._parseAttr=function(t,e,r,n,o,i,s){var a=this._normalizeAttributeName(e.name),u=e.value,c=e.sourceSpan,l=a.match(Sc),p=!1;if(null!==l)if(p=!0,null!=l[xc])this._bindingParser.parsePropertyBinding(l[Rc],u,!1,c,r,n);else if(l[Tc])if(t){var h=l[Rc];this._parseVariable(h,u,c,s)}else this._reportError('"let-" is only supported on template elements.',c);else if(l[Pc]){var h=l[Rc];this._parseReference(h,u,c,i)}else l[Ac]?this._bindingParser.parseEvent(l[Rc],u,c,r,o):l[Oc]?(this._bindingParser.parsePropertyBinding(l[Rc],u,!1,c,r,n),this._parseAssignmentEvent(l[Rc],u,c,r,o)):l[Mc]?this._bindingParser.parseLiteralAttr(a,u,c,r,n):l[kc]?(this._bindingParser.parsePropertyBinding(l[kc],u,!1,c,r,n),this._parseAssignmentEvent(l[kc],u,c,r,o)):l[Ic]?this._bindingParser.parsePropertyBinding(l[Ic],u,!1,c,r,n):l[Nc]&&this._bindingParser.parseEvent(l[Nc],u,c,r,o);else p=this._bindingParser.parsePropertyInterpolation(a,u,c,r,n);return p||this._bindingParser.parseLiteralAttr(a,u,c,r,n),p},t.prototype._normalizeAttributeName=function(t){return/^data-/i.test(t)?t.substring(5):t},t.prototype._parseVariable=function(t,e,r,n){t.indexOf("-")>-1&&this._reportError('"-" is not allowed in variable names',r),n.push(new io(t,e,r))},t.prototype._parseReference=function(t,e,r,n){t.indexOf("-")>-1&&this._reportError('"-" is not allowed in reference names',r),n.push(new Qc(t,e,r))},t.prototype._parseAssignmentEvent=function(t,e,r,n,o){this._bindingParser.parseEvent(t+"Change",e+"=$event",r,n,o)},t.prototype._parseDirectives=function(t,e){var r=this,n=new Array(this.directivesIndex.size),o=!1;return t.match(e,function(t,e){n[r.directivesIndex.get(e)]=e,o=o||t.hasElementSelector()}),{directives:n.filter(function(t){return!!t}),matchElement:o}},t.prototype._createDirectiveAsts=function(t,e,r,n,o,i,s,a){var u=this,c=new Set,l=null,p=r.map(function(t){var r=new Gs(i.start,i.end,"Directive "+E(t.type));t.isComponent&&(l=t);var p=[],h=u._bindingParser.createDirectiveHostPropertyAsts(t,e,r);h=u._checkPropertiesInSchema(e,h);var f=u._bindingParser.createDirectiveHostEventAsts(t,r);u._createDirectivePropertyAsts(t.inputs,n,p,a),o.forEach(function(e){(0===e.value.length&&t.isComponent||t.exportAs==e.value)&&(s.push(new oo(e.name,me(t.type),e.sourceSpan)),c.add(e.name))});var d=u.contentQueryStartId;return u.contentQueryStartId+=t.queries.length,new co(t,p,h,f,d,r)});return o.forEach(function(e){if(e.value.length>0)c.has(e.name)||u._reportError('There is no directive with "exportAs" set to "'+e.value+'"',e.sourceSpan);else if(!l){var r=null;t&&(r=ye(zu.TemplateRef)),s.push(new oo(e.name,r,e.sourceSpan))}}),p},t.prototype._createDirectivePropertyAsts=function(t,e,r,n){if(t){var o=new Map;e.forEach(function(t){var e=o.get(t.name);(!e||e.isLiteral)&&o.set(t.name,t)}),Object.keys(t).forEach(function(e){var i=t[e],s=o.get(i);s&&(n.add(s.name),Ve(s.expression)||r.push(new uo(e,s.name,s.expression,s.sourceSpan)))})}},t.prototype._createElementPropertyAsts=function(t,e,r){var n=this,o=[];return e.forEach(function(e){e.isLiteral||r.has(e.name)||o.push(n._bindingParser.createElementPropertyAst(t,e))}),this._checkPropertiesInSchema(t,o)},t.prototype._findComponentDirectives=function(t){return t.filter(function(t){return t.directive.isComponent})},t.prototype._findComponentDirectiveNames=function(t){return this._findComponentDirectives(t).map(function(t){return E(t.directive.type)})},t.prototype._assertOnlyOneComponent=function(t,e){var r=this._findComponentDirectiveNames(t);r.length>1&&this._reportError("More than one component matched on this element.\nMake sure that only one component's selector can match a given element.\nConflicting components: "+r.join(","),e)},t.prototype._assertElementExists=function(t,e){var r=e.name.replace(/^:xhtml:/,"");if(!t&&!this._schemaRegistry.hasElement(r,this._schemas)){var n="'"+r+"' is not a known element:\n";n+="1. If '"+r+"' is an Angular component, then verify that it is part of this module.\n",n+=r.indexOf("-")>-1?"2. If '"+r+"' is a Web Component then add 'CUSTOM_ELEMENTS_SCHEMA' to the '@NgModule.schemas' of this component to suppress this message.":"2. To allow any element add 'NO_ERRORS_SCHEMA' to the '@NgModule.schemas' of this component.",this._reportError(n,e.sourceSpan)}},t.prototype._assertNoComponentsNorElementBindingsOnTemplate=function(t,e,r){var n=this,o=this._findComponentDirectiveNames(t);o.length>0&&this._reportError("Components on an embedded template: "+o.join(","),r),e.forEach(function(t){n._reportError("Property binding "+t.name+' not used by any directive on an embedded template. Make sure that the property name is spelled correctly and all directives are listed in the "@NgModule.declarations".',r)})},t.prototype._assertAllEventsPublishedByDirectives=function(t,e){var r=this,n=new Set;t.forEach(function(t){Object.keys(t.directive.outputs).forEach(function(e){var r=t.directive.outputs[e];n.add(r)})}),e.forEach(function(t){null==t.target&&n.has(t.name)||r._reportError("Event binding "+t.fullName+' not emitted by any directive on an embedded template. Make sure that the event name is spelled correctly and all directives are listed in the "@NgModule.declarations".',t.sourceSpan)})},t.prototype._checkPropertiesInSchema=function(t,e){var r=this;return e.filter(function(e){if(e.type===fo.Property&&!r._schemaRegistry.hasProperty(t,e.name,r._schemas)){var n="Can't bind to '"+e.name+"' since it isn't a known property of '"+t+"'.";t.startsWith("ng-")?n+="\n1. If '"+e.name+"' is an Angular directive, then add 'CommonModule' to the '@NgModule.imports' of this component.\n2. To allow any property add 'NO_ERRORS_SCHEMA' to the '@NgModule.schemas' of this component.":t.indexOf("-")>-1&&(n+="\n1. If '"+t+"' is an Angular component and it has '"+e.name+"' input, then verify that it is part of this module."+("\n2. If '"+t+"' is a Web Component then add 'CUSTOM_ELEMENTS_SCHEMA' to the '@NgModule.schemas' of this component to suppress this message.")+"\n3. To allow any property add 'NO_ERRORS_SCHEMA' to the '@NgModule.schemas' of this component."),r._reportError(n,e.sourceSpan)}return!Ve(e.value)})},t.prototype._reportError=function(t,e,r){void 0===r&&(r=Ws.ERROR),this._targetErrors.push(new $s(e,t,r))},t}(),Kc=function(){function t(){}return t.prototype.visitElement=function(t,e){var r=Re(t);if(r.type===Cc.SCRIPT||r.type===Cc.STYLE||r.type===Cc.STYLESHEET)return null;var n=t.attrs.map(function(t){return[t.name,t.value]}),o=De(t.name,n),i=e.findNgContentIndex(o),s=lt(this,t.children,Zc);return new so(t.name,lt(this,t.attrs),[],[],[],[],[],!1,[],s,i,t.sourceSpan,t.endSourceSpan)},t.prototype.visitComment=function(){return null},t.prototype.visitAttribute=function(t){return new eo(t.name,t.value,t.sourceSpan)},t.prototype.visitText=function(t,e){var r=e.findNgContentIndex(Fc);return new Jn(t.value,r,t.sourceSpan)},t.prototype.visitExpansion=function(t){return t},t.prototype.visitExpansionCase=function(t){return t},t}(),Qc=function(){function t(t,e,r){this.name=t,this.value=e,this.sourceSpan=r}return t}(),Xc=function(){function t(t,e,r,n){this.isTemplateElement=t,this._ngContentIndexMatcher=e,this._wildcardNgContentIndex=r,this.providerContext=n}return t.create=function(e,r,n){var o=new So,i=null,s=r.find(function(t){return t.directive.isComponent});if(s)for(var a=s.directive.template.ngContentSelectors,u=0;u<a.length;u++){var c=a[u];"*"===c?i=u:o.addSelectables(Eo.parse(a[u]),u)}return new t(e,o,i,n)},t.prototype.findNgContentIndex=function(t){var e=[];return this._ngContentIndexMatcher.match(t,function(t,r){e.push(r)}),e.sort(),null!=this._wildcardNgContentIndex&&e.push(this._wildcardNgContentIndex),e.length>0?e[0]:null},t}(),Zc=new Xc(!0,new So,null,null),Yc=new Kc,Jc=function(){function t(){}return t.prototype.get=function(){return null},t}(),tl={provide:e.PACKAGE_ROOT_URL,useValue:"/"},el=function(){function t(t){void 0===t&&(t=null),this._packagePrefix=t}return t.prototype.resolve=function(t,e){var r=e;null!=t&&t.length>0&&(r=$e(t,r));var n=ze(r),o=this._packagePrefix;if(null!=o&&null!=n&&"package"==n[nl.Scheme]){var i=n[nl.Path];return o=o.replace(/\/+$/,""),i=i.replace(/^\/+/,""),o+"/"+i}return r},t}();el.decorators=[{type:z}],el.ctorParameters=function(){return[{type:void 0,decorators:[{type:e.Inject,args:[e.PACKAGE_ROOT_URL]}]}]};var rl=new RegExp("^(?:([^:/?#.]+):)?(?://(?:([^/?#]*)@)?([\\w\\d\\-\\u0100-\\uffff.%]*)(?::([0-9]+))?)?([^?#]+)?(?:\\?([^#]*))?(?:#(.*))?$"),nl={};nl.Scheme=1,nl.UserInfo=2,nl.Domain=3,nl.Port=4,nl.Path=5,nl.QueryData=6,nl.Fragment=7,nl[nl.Scheme]="Scheme",nl[nl.UserInfo]="UserInfo",nl[nl.Domain]="Domain",nl[nl.Port]="Port",nl[nl.Path]="Path",nl[nl.QueryData]="QueryData",nl[nl.Fragment]="Fragment";var ol=function(){function t(t,e,r,n){this._resourceLoader=t,this._urlResolver=e,this._htmlParser=r,this._config=n,this._resourceLoaderCache=new Map}return t.prototype.clearCache=function(){this._resourceLoaderCache.clear()},t.prototype.clearCacheFor=function(t){var e=this;if(t.isComponent){var r=t.template;this._resourceLoaderCache["delete"](r.templateUrl),r.externalStylesheets.forEach(function(t){e._resourceLoaderCache["delete"](t.moduleUrl)})}},t.prototype._fetch=function(t){var e=this._resourceLoaderCache.get(t);return e||(e=this._resourceLoader.get(t),this._resourceLoaderCache.set(t,e)),e},t.prototype.normalizeTemplate=function(t){var r=this,n=null,o=void 0;if(m(t.template)){if(m(t.templateUrl))throw v("'"+e.ɵstringify(t.componentType)+"' component cannot define both template and templateUrl");if("string"!=typeof t.template)throw v("The template specified for component "+e.ɵstringify(t.componentType)+" is not a string");n=this.normalizeTemplateSync(t),o=Promise.resolve(n)}else{if(!m(t.templateUrl))throw v("No template specified for component "+e.ɵstringify(t.componentType));if("string"!=typeof t.templateUrl)throw v("The templateUrl specified for component "+e.ɵstringify(t.componentType)+" is not a string");o=this.normalizeTemplateAsync(t)}return n&&0===n.styleUrls.length?new Mo(n):new Mo(null,o.then(function(t){return r.normalizeExternalStylesheets(t)}))},t.prototype.normalizeTemplateSync=function(t){return this.normalizeLoadedTemplate(t,t.template,t.moduleUrl)},t.prototype.normalizeTemplateAsync=function(t){var e=this,r=this._urlResolver.resolve(t.moduleUrl,t.templateUrl);return this._fetch(r).then(function(n){return e.normalizeLoadedTemplate(t,n,r)})},t.prototype.normalizeLoadedTemplate=function(t,r,n){var o=!!t.template,i=Ms.fromArray(t.interpolation),s=this._htmlParser.parse(r,j({reference:t.ngModuleType},{type:{reference:t.componentType}},{isInline:o,templateUrl:n}),!0,i);if(s.errors.length>0){var a=s.errors.join("\n");throw v("Template parse errors:\n"+a)}var u=this.normalizeStylesheet(new $o({styles:t.styles,styleUrls:t.styleUrls,moduleUrl:t.moduleUrl})),c=new il;lt(c,s.rootNodes);var l=this.normalizeStylesheet(new $o({styles:c.styles,styleUrls:c.styleUrls,moduleUrl:n})),p=t.encapsulation;null==p&&(p=this._config.defaultEncapsulation);var h=u.styles.concat(l.styles),f=u.styleUrls.concat(l.styleUrls);return p===e.ViewEncapsulation.Emulated&&0===h.length&&0===f.length&&(p=e.ViewEncapsulation.None),new Ko({encapsulation:p,template:r,templateUrl:n,styles:h,styleUrls:f,ngContentSelectors:c.ngContentSelectors,animations:t.animations,interpolation:t.interpolation,isInline:o,externalStylesheets:[]})},t.prototype.normalizeExternalStylesheets=function(t){return this._loadMissingExternalStylesheets(t.styleUrls).then(function(e){return new Ko({encapsulation:t.encapsulation,template:t.template,templateUrl:t.templateUrl,styles:t.styles,styleUrls:t.styleUrls,externalStylesheets:e,ngContentSelectors:t.ngContentSelectors,animations:t.animations,interpolation:t.interpolation,isInline:t.isInline})})},t.prototype._loadMissingExternalStylesheets=function(t,e){var r=this;return void 0===e&&(e=new Map),Promise.all(t.filter(function(t){return!e.has(t)}).map(function(t){return r._fetch(t).then(function(n){var o=r.normalizeStylesheet(new $o({styles:[n],moduleUrl:t}));return e.set(t,o),r._loadMissingExternalStylesheets(o.styleUrls,e)})})).then(function(){return Array.from(e.values())})},t.prototype.normalizeStylesheet=function(t){var e=this,r=t.moduleUrl,n=t.styleUrls.filter(Pe).map(function(t){return e._urlResolver.resolve(r,t)}),o=t.styles.map(function(t){var o=Ae(e._urlResolver,r,t);return n.push.apply(n,o.styleUrls),o.style});return new $o({styles:o,styleUrls:n,moduleUrl:r})},t}();ol.decorators=[{type:z}],ol.ctorParameters=function(){return[{type:Jc},{type:el},{type:Fu},{type:ti}]};var il=function(){function t(){this.ngContentSelectors=[],this.styles=[],this.styleUrls=[],this.ngNonBindableStackCount=0}return t.prototype.visitElement=function(t){var e=Re(t);switch(e.type){case Cc.NG_CONTENT:0===this.ngNonBindableStackCount&&this.ngContentSelectors.push(e.selectAttr);break;case Cc.STYLE:var r="";t.children.forEach(function(t){t instanceof Ks&&(r+=t.value)}),this.styles.push(r);break;case Cc.STYLESHEET:this.styleUrls.push(e.hrefAttr)}return e.nonBindable&&this.ngNonBindableStackCount++,lt(this,t.children),e.nonBindable&&this.ngNonBindableStackCount--,null},t.prototype.visitExpansion=function(t){lt(this,t.cases)},t.prototype.visitExpansionCase=function(t){lt(this,t.expression)},t.prototype.visitComment=function(){return null},t.prototype.visitAttribute=function(){return null},t.prototype.visitText=function(){return null},t}(),sl=void 0||Object.assign||function(t){for(var e,r=1,n=arguments.length;n>r;r++){e=arguments[r];for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])}return t},al=function(){function t(t){void 0===t&&(t=e.ɵreflector),this._reflector=t}return t.prototype.isDirective=function(t){var r=this._reflector.annotations(e.resolveForwardRef(t));return r&&r.some(Ke)},t.prototype.resolve=function(t,r){void 0===r&&(r=!0);var n=this._reflector.annotations(e.resolveForwardRef(t));if(n){var o=Qe(n,Ke);if(o){var i=this._reflector.propMetadata(t);return this._mergeWithPropertyMetadata(o,i,t)}}if(r)throw new Error("No Directive annotation found on "+e.ɵstringify(t));return null},t.prototype._mergeWithPropertyMetadata=function(t,r,n){var o=[],i=[],s={},a={};return Object.keys(r).forEach(function(t){var n=Qe(r[t],function(t){return t instanceof e.Input});n&&o.push(n.bindingPropertyName?t+": "+n.bindingPropertyName:t);var u=Qe(r[t],function(t){return t instanceof e.Output});u&&i.push(u.bindingPropertyName?t+": "+u.bindingPropertyName:t);var c=r[t].filter(function(t){return t&&t instanceof e.HostBinding});c.forEach(function(e){if(e.hostPropertyName){var r=e.hostPropertyName[0];if("("===r)throw new Error("@HostBinding can not bind to events. Use @HostListener instead.");if("["===r)throw new Error("@HostBinding parameter should be a property name, 'class.<name>', or 'attr.<name>'.");s["["+e.hostPropertyName+"]"]=t; -},t.prototype._extractPublicName=function(t){return p(t,[null,t])[1].trim()},t.prototype._dedupeBindings=function(t){for(var e=new Set,r=[],n=t.length-1;n>=0;n--){var o=t[n],i=this._extractPublicName(o);e.has(i)||(e.add(i),r.push(o))}return r.reverse()},t.prototype._merge=function(t,r,n,o,i){var s=this._dedupeBindings(t.inputs?t.inputs.concat(r):r),a=this._dedupeBindings(t.outputs?t.outputs.concat(n):n),u=t.host?sl({},t.host,o):o,c=t.queries?sl({},t.queries,i):i;return t instanceof e.Component?new e.Component({selector:t.selector,inputs:s,outputs:a,host:u,exportAs:t.exportAs,moduleId:t.moduleId,queries:c,changeDetection:t.changeDetection,providers:t.providers,viewProviders:t.viewProviders,entryComponents:t.entryComponents,template:t.template,templateUrl:t.templateUrl,styles:t.styles,styleUrls:t.styleUrls,encapsulation:t.encapsulation,animations:t.animations,interpolation:t.interpolation}):new e.Directive({selector:t.selector,inputs:s,outputs:a,host:u,exportAs:t.exportAs,queries:c,providers:t.providers})},t}();al.decorators=[{type:z}],al.ctorParameters=function(){return[{type:e.ɵReflectorReader}]};var ul=/(\.ts|\.d\.ts|\.js|\.jsx|\.tsx)$/,cl=/\.ngfactory\./,ll=function(){function t(t){void 0===t&&(t=e.ɵreflector),this._reflector=t}return t.prototype.isNgModule=function(t){return this._reflector.annotations(t).some(nr)},t.prototype.resolve=function(t,r){void 0===r&&(r=!0);var n=Qe(this._reflector.annotations(t),nr);if(n)return n;if(r)throw new Error("No NgModule metadata found for '"+e.ɵstringify(t)+"'.");return null},t}();ll.decorators=[{type:z}],ll.ctorParameters=function(){return[{type:e.ɵReflectorReader}]};var pl=function(){function t(t){void 0===t&&(t=e.ɵreflector),this._reflector=t}return t.prototype.isPipe=function(t){var r=this._reflector.annotations(e.resolveForwardRef(t));return r&&r.some(or)},t.prototype.resolve=function(t,r){void 0===r&&(r=!0);var n=this._reflector.annotations(e.resolveForwardRef(t));if(n){var o=Qe(n,or);if(o)return o}if(r)throw new Error("No Pipe decorator found on "+e.ɵstringify(t));return null},t}();pl.decorators=[{type:z}],pl.ctorParameters=function(){return[{type:e.ɵReflectorReader}]};var hl=function(){function t(){}return t.prototype.isLibraryFile=function(){return!1},t.prototype.getLibraryFileName=function(){return null},t.prototype.resolveSummary=function(){return null},t.prototype.getSymbolsOf=function(){return[]},t.prototype.getImportAs=function(t){return t},t}();hl.decorators=[{type:z}],hl.ctorParameters=function(){return[]};var fl=new e.InjectionToken("ErrorCollector"),dl=function(){function t(t,r,n,o,i,s,a,u,c,l,p){void 0===l&&(l=e.ɵreflector),this._config=t,this._ngModuleResolver=r,this._directiveResolver=n,this._pipeResolver=o,this._summaryResolver=i,this._schemaRegistry=s,this._directiveNormalizer=a,this._console=u,this._staticSymbolCache=c,this._reflector=l,this._errorCollector=p,this._nonNormalizedDirectiveCache=new Map,this._directiveCache=new Map,this._summaryCache=new Map,this._pipeCache=new Map,this._ngModuleCache=new Map,this._ngModuleOfTypes=new Map}return t.prototype.clearCacheFor=function(t){var e=this._directiveCache.get(t);this._directiveCache["delete"](t),this._nonNormalizedDirectiveCache["delete"](t),this._summaryCache["delete"](t),this._pipeCache["delete"](t),this._ngModuleOfTypes["delete"](t),this._ngModuleCache.clear(),e&&this._directiveNormalizer.clearCacheFor(e)},t.prototype.clearCache=function(){this._directiveCache.clear(),this._nonNormalizedDirectiveCache.clear(),this._summaryCache.clear(),this._pipeCache.clear(),this._ngModuleCache.clear(),this._ngModuleOfTypes.clear(),this._directiveNormalizer.clearCache()},t.prototype._createProxyClass=function(t,r){var n=null,o=function(){if(!n)throw new Error("Illegal state: Class "+r+" for type "+e.ɵstringify(t)+" is not compiled yet!");return n.apply(this,arguments)};return o.setDelegate=function(t){n=t,o.prototype=t.prototype},o.overriddenName=r,o},t.prototype.getGeneratedClass=function(t,e){return t instanceof mo?this._staticSymbolCache.get(Xe(t.filePath),e):this._createProxyClass(t,e)},t.prototype.getComponentViewClass=function(t){return this.getGeneratedClass(t,x(t,0))},t.prototype.getHostComponentViewClass=function(t){return this.getGeneratedClass(t,P(t))},t.prototype.getHostComponentType=function(t){var e=E({reference:t})+"_Host";if(t instanceof mo)return this._staticSymbolCache.get(t.filePath,e);var r=function(){};return r.overriddenName=e,r},t.prototype.getRendererType=function(t){return t instanceof mo?this._staticSymbolCache.get(Xe(t.filePath),T(t)):{}},t.prototype.getComponentFactory=function(t,r,n,o){if(r instanceof mo)return this._staticSymbolCache.get(Xe(r.filePath),O(r));var i=this.getHostComponentViewClass(r);return e.ɵccf(t,r,i,n,o,[])},t.prototype.initComponentFactory=function(t,e){t instanceof mo||(r=t.ngContentSelectors).push.apply(r,e);var r},t.prototype._loadSummary=function(t,e){var r=this._summaryCache.get(t);if(!r){var n=this._summaryResolver.resolveSummary(t);r=n?n.type:null,this._summaryCache.set(t,r||null)}return r&&r.summaryKind===e?r:null},t.prototype._loadDirectiveMetadata=function(t,r,n){var o=this;if(this._directiveCache.has(r))return null;r=e.resolveForwardRef(r);var i=this.getNonNormalizedDirectiveMetadata(r),s=i.annotation,a=i.metadata,u=function(t){var e=new Qo({isHost:!1,type:a.type,isComponent:a.isComponent,selector:a.selector,exportAs:a.exportAs,changeDetection:a.changeDetection,inputs:a.inputs,outputs:a.outputs,hostListeners:a.hostListeners,hostProperties:a.hostProperties,hostAttributes:a.hostAttributes,providers:a.providers,viewProviders:a.viewProviders,queries:a.queries,viewQueries:a.viewQueries,entryComponents:a.entryComponents,componentViewType:a.componentViewType,rendererType:a.rendererType,componentFactory:a.componentFactory,template:t});return t&&o.initComponentFactory(a.componentFactory,t.ngContentSelectors),o._directiveCache.set(r,e),o._summaryCache.set(r,e.toSummary()),e};if(a.isComponent){var c=a.template,l=this._directiveNormalizer.normalizeTemplate({ngModuleType:t,componentType:r,moduleUrl:cr(this._reflector,r,s),encapsulation:c.encapsulation,template:c.template,templateUrl:c.templateUrl,styles:c.styles,styleUrls:c.styleUrls,animations:c.animations,interpolation:c.interpolation});return l.syncResult?(u(l.syncResult),null):n?(this._reportError(hr(r),r),null):l.asyncResult.then(u)}return u(null),null},t.prototype.getNonNormalizedDirectiveMetadata=function(t){var r=this;if(t=e.resolveForwardRef(t),!t)return null;var n=this._nonNormalizedDirectiveCache.get(t);if(n)return n;var o=this._directiveResolver.resolve(t,!1);if(!o)return null;var i=void 0;if(o instanceof e.Component){G("styles",o.styles),G("styleUrls",o.styleUrls),W("interpolation",o.interpolation);var s=o.animations;i=new Ko({encapsulation:y(o.encapsulation),template:y(o.template),templateUrl:y(o.templateUrl),styles:o.styles||[],styleUrls:o.styleUrls||[],animations:s||[],interpolation:y(o.interpolation),isInline:!!o.template,externalStylesheets:[],ngContentSelectors:[]})}var a=null,u=[],c=[],l=o.selector;o instanceof e.Component?(a=o.changeDetection,o.viewProviders&&(u=this._getProvidersMetadata(o.viewProviders,c,'viewProviders for "'+pr(t)+'"',[],t)),o.entryComponents&&(c=ar(o.entryComponents).map(function(t){return r._getEntryComponentMetadata(t)}).concat(c)),l||(l=this._schemaRegistry.getDefaultComponentElementName())):l||(this._reportError(v("Directive "+pr(t)+" has no selector, please add it!"),t),l="error");var p=[];null!=o.providers&&(p=this._getProvidersMetadata(o.providers,c,'providers for "'+pr(t)+'"',[],t));var h=[],f=[];null!=o.queries&&(h=this._getQueriesMetadata(o.queries,!1,t),f=this._getQueriesMetadata(o.queries,!0,t));var d=Qo.create({isHost:!1,selector:l,exportAs:y(o.exportAs),isComponent:!!i,type:this._getTypeMetadata(t),template:i,changeDetection:a,inputs:o.inputs||[],outputs:o.outputs||[],host:o.host||{},providers:p||[],viewProviders:u||[],queries:h||[],viewQueries:f||[],entryComponents:c,componentViewType:i?this.getComponentViewClass(t):null,rendererType:i?this.getRendererType(t):null,componentFactory:null});return i&&(d.componentFactory=this.getComponentFactory(l,t,d.inputs,d.outputs)),n={metadata:d,annotation:o},this._nonNormalizedDirectiveCache.set(t,n),n},t.prototype.getDirectiveMetadata=function(t){var e=this._directiveCache.get(t);return e||this._reportError(v("Illegal state: getDirectiveMetadata can only be called after loadNgModuleDirectiveAndPipeMetadata for a module that declares it. Directive "+pr(t)+"."),t),e},t.prototype.getDirectiveSummary=function(t){var e=this._loadSummary(t,Wo.Directive);return e||this._reportError(v("Illegal state: Could not load the summary for directive "+pr(t)+"."),t),e},t.prototype.isDirective=function(t){return this._directiveResolver.isDirective(t)},t.prototype.isPipe=function(t){return this._pipeResolver.isPipe(t)},t.prototype.getNgModuleSummary=function(t){var e=this._loadSummary(t,Wo.NgModule);if(!e){var r=this.getNgModuleMetadata(t,!1);e=r?r.toSummary():null,e&&this._summaryCache.set(t,e)}return e},t.prototype.loadNgModuleDirectiveAndPipeMetadata=function(t,e,r){var n=this;void 0===r&&(r=!0);var o=this.getNgModuleMetadata(t,r),i=[];return o&&(o.declaredDirectives.forEach(function(r){var o=n._loadDirectiveMetadata(t,r.reference,e);o&&i.push(o)}),o.declaredPipes.forEach(function(t){return n._loadPipeMetadata(t.reference)})),Promise.all(i)},t.prototype.getNgModuleMetadata=function(t,r){var n=this;void 0===r&&(r=!0),t=e.resolveForwardRef(t);var o=this._ngModuleCache.get(t);if(o)return o;var i=this._ngModuleResolver.resolve(t,r);if(!i)return null;var s=[],a=[],u=[],c=[],l=[],p=[],h=[],f=[],d=[];i.imports&&ar(i.imports).forEach(function(e){var r=void 0;if(ur(e))r=e;else if(e&&e.ngModule){var o=e;r=o.ngModule,o.providers&&p.push.apply(p,n._getProvidersMetadata(o.providers,h,"provider for the NgModule '"+pr(r)+"'",[],e))}if(!r)return void n._reportError(v("Unexpected value '"+pr(e)+"' imported by the module '"+pr(t)+"'"),t);if(!n._checkSelfImport(t,r)){var i=n.getNgModuleSummary(r);return i?void c.push(i):void n._reportError(v("Unexpected "+n._getTypeDescriptor(e)+" '"+pr(e)+"' imported by the module '"+pr(t)+"'. Please add a @NgModule annotation."),t)}}),i.exports&&ar(i.exports).forEach(function(e){if(!ur(e))return void n._reportError(v("Unexpected value '"+pr(e)+"' exported by the module '"+pr(t)+"'"),t);var r=n.getNgModuleSummary(e);r?l.push(r):a.push(n._getIdentifierMetadata(e))});var m=this._getTransitiveNgModuleMetadata(c,l);i.declarations&&ar(i.declarations).forEach(function(e){if(!ur(e))return void n._reportError(v("Unexpected value '"+pr(e)+"' declared by the module '"+pr(t)+"'"),t);var r=n._getIdentifierMetadata(e);if(n._directiveResolver.isDirective(e))m.addDirective(r),s.push(r),n._addTypeToModule(e,t);else{if(!n._pipeResolver.isPipe(e))return void n._reportError(v("Unexpected "+n._getTypeDescriptor(e)+" '"+pr(e)+"' declared by the module '"+pr(t)+"'. Please add a @Pipe/@Directive/@Component annotation."),t);m.addPipe(r),m.pipes.push(r),u.push(r),n._addTypeToModule(e,t)}});var y=[],g=[];return a.forEach(function(e){if(m.directivesSet.has(e.reference))y.push(e),m.addExportedDirective(e);else{if(!m.pipesSet.has(e.reference))return void n._reportError(v("Can't export "+n._getTypeDescriptor(e.reference)+" "+pr(e.reference)+" from "+pr(t)+" as it was neither declared nor imported!"),t);g.push(e),m.addExportedPipe(e)}}),i.providers&&p.push.apply(p,this._getProvidersMetadata(i.providers,h,"provider for the NgModule '"+pr(t)+"'",[],t)),i.entryComponents&&h.push.apply(h,ar(i.entryComponents).map(function(t){return n._getEntryComponentMetadata(t)})),i.bootstrap&&ar(i.bootstrap).forEach(function(e){return ur(e)?void f.push(n._getIdentifierMetadata(e)):void n._reportError(v("Unexpected value '"+pr(e)+"' used in the bootstrap property of module '"+pr(t)+"'"),t)}),h.push.apply(h,f.map(function(t){return n._getEntryComponentMetadata(t.reference)})),i.schemas&&d.push.apply(d,ar(i.schemas)),o=new Zo({type:this._getTypeMetadata(t),providers:p,entryComponents:h,bootstrapComponents:f,schemas:d,declaredDirectives:s,exportedDirectives:y,declaredPipes:u,exportedPipes:g,importedModules:c,exportedModules:l,transitiveModule:m,id:i.id||null}),h.forEach(function(t){return m.addEntryComponent(t)}),p.forEach(function(t){return m.addProvider(t,o.type)}),m.addModule(o.type),this._ngModuleCache.set(t,o),o},t.prototype._checkSelfImport=function(t,e){return t===e?(this._reportError(v("'"+pr(t)+"' module can't import itself"),t),!0):!1},t.prototype._getTypeDescriptor=function(t){return this._directiveResolver.isDirective(t)?"directive":this._pipeResolver.isPipe(t)?"pipe":this._ngModuleResolver.isNgModule(t)?"module":t.provide?"provider":"value"},t.prototype._addTypeToModule=function(t,e){var r=this._ngModuleOfTypes.get(t);return r&&r!==e?void this._reportError(v("Type "+pr(t)+" is part of the declarations of 2 modules: "+pr(r)+" and "+pr(e)+"! "+("Please consider moving "+pr(t)+" to a higher module that imports "+pr(r)+" and "+pr(e)+". ")+("You can also create a new NgModule that exports and includes "+pr(t)+" then import that NgModule in "+pr(r)+" and "+pr(e)+".")),e):void this._ngModuleOfTypes.set(t,e)},t.prototype._getTransitiveNgModuleMetadata=function(t,e){var r=new Yo,n=new Map;return t.concat(e).forEach(function(t){t.modules.forEach(function(t){return r.addModule(t)}),t.entryComponents.forEach(function(t){return r.addEntryComponent(t)});var e=new Set;t.providers.forEach(function(t){var o=R(t.provider.token),i=n.get(o);i||(i=new Set,n.set(o,i));var s=t.module.reference;(e.has(o)||!i.has(s))&&(i.add(s),e.add(o),r.addProvider(t.provider,t.module))})}),e.forEach(function(t){t.exportedDirectives.forEach(function(t){return r.addExportedDirective(t)}),t.exportedPipes.forEach(function(t){return r.addExportedPipe(t)})}),t.forEach(function(t){t.exportedDirectives.forEach(function(t){return r.addDirective(t)}),t.exportedPipes.forEach(function(t){return r.addPipe(t)})}),r},t.prototype._getIdentifierMetadata=function(t){return t=e.resolveForwardRef(t),{reference:t}},t.prototype.isInjectable=function(t){var r=this._reflector.annotations(t);return r.some(function(t){return t.constructor===e.Injectable})},t.prototype.getInjectableSummary=function(t){return{summaryKind:Wo.Injectable,type:this._getTypeMetadata(t,null,!1)}},t.prototype._getInjectableMetadata=function(t,e){void 0===e&&(e=null);var r=this._loadSummary(t,Wo.Injectable);return r?r.type:this._getTypeMetadata(t,e)},t.prototype._getTypeMetadata=function(t,r,n){void 0===r&&(r=null),void 0===n&&(n=!0);var o=this._getIdentifierMetadata(t);return{reference:o.reference,diDeps:this._getDependenciesMetadata(o.reference,r,n),lifecycleHooks:e.ɵLIFECYCLE_HOOKS_VALUES.filter(function(t){return er(t,o.reference)})}},t.prototype._getFactoryMetadata=function(t,r){return void 0===r&&(r=null),t=e.resolveForwardRef(t),{reference:t,diDeps:this._getDependenciesMetadata(t,r)}},t.prototype.getPipeMetadata=function(t){var e=this._pipeCache.get(t);return e||this._reportError(v("Illegal state: getPipeMetadata can only be called after loadNgModuleDirectiveAndPipeMetadata for a module that declares it. Pipe "+pr(t)+"."),t),e||null},t.prototype.getPipeSummary=function(t){var e=this._loadSummary(t,Wo.Pipe);return e||this._reportError(v("Illegal state: Could not load the summary for pipe "+pr(t)+"."),t),e},t.prototype.getOrLoadPipeMetadata=function(t){var e=this._pipeCache.get(t);return e||(e=this._loadPipeMetadata(t)),e},t.prototype._loadPipeMetadata=function(t){t=e.resolveForwardRef(t);var r=this._pipeResolver.resolve(t),n=new Xo({type:this._getTypeMetadata(t),name:r.name,pure:!!r.pure});return this._pipeCache.set(t,n),this._summaryCache.set(t,n.toSummary()),n},t.prototype._getDependenciesMetadata=function(t,r,n){var o=this;void 0===n&&(n=!0);var i=!1,s=r||this._reflector.parameters(t)||[],a=s.map(function(t){var r=!1,n=!1,s=!1,a=!1,u=!1,c=null;return Array.isArray(t)?t.forEach(function(t){t instanceof e.Host?n=!0:t instanceof e.Self?s=!0:t instanceof e.SkipSelf?a=!0:t instanceof e.Optional?u=!0:t instanceof e.Attribute?(r=!0,c=t.attributeName):t instanceof e.Inject?c=t.token:t instanceof e.InjectionToken?c=t:ur(t)&&null==c&&(c=t)}):c=t,null==c?(i=!0,null):{isAttribute:r,isHost:n,isSelf:s,isSkipSelf:a,isOptional:u,token:o._getTokenMetadata(c)}});if(i){var u=a.map(function(t){return t?pr(t.token):"?"}).join(", "),c="Can't resolve all parameters for "+pr(t)+": ("+u+").";n?this._reportError(v(c),t):this._console.warn("Warning: "+c+" This will become an error in Angular v5.x")}return a},t.prototype._getTokenMetadata=function(t){t=e.resolveForwardRef(t);var r;return r="string"==typeof t?{value:t}:{identifier:{reference:t}}},t.prototype._getProvidersMetadata=function(t,r,n,o,i){var s=this;return void 0===o&&(o=[]),t.forEach(function(a,u){if(Array.isArray(a))s._getProvidersMetadata(a,r,n,o);else{a=e.resolveForwardRef(a);var c=void 0;if(a&&"object"==typeof a&&a.hasOwnProperty("provide"))s._validateProvider(a),c=new Jo(a.provide,a);else{if(!ur(a)){if(void 0===a)return void s._reportError(v("Encountered undefined provider! Usually this means you have a circular dependencies (might be caused by using 'barrel' index.ts files."));var l=t.reduce(function(t,e,r){return u>r?t.push(""+pr(e)):r==u?t.push("?"+pr(e)+"?"):r==u+1&&t.push("..."),t},[]).join(", ");return void s._reportError(v("Invalid "+(n?n:"provider")+" - only instances of Provider and Type are allowed, got: ["+l+"]"),i)}c=new Jo(a,{useClass:a})}c.token===fe(zu.ANALYZE_FOR_ENTRY_COMPONENTS)?r.push.apply(r,s._getEntryComponentsFromProvider(c,i)):o.push(s.getProviderMetadata(c))}}),o},t.prototype._validateProvider=function(t){t.hasOwnProperty("useClass")&&null==t.useClass&&this._reportError(v("Invalid provider for "+pr(t.provide)+". useClass cannot be "+t.useClass+".\n Usually it happens when:\n 1. There's a circular dependency (might be caused by using index.ts (barrel) files).\n 2. Class was used before it was declared. Use forwardRef in this case."))},t.prototype._getEntryComponentsFromProvider=function(t,e){var r=this,n=[],o=[];return t.useFactory||t.useExisting||t.useClass?(this._reportError(v("The ANALYZE_FOR_ENTRY_COMPONENTS token only supports useValue!"),e),[]):t.multi?(lr(t.useValue,o),o.forEach(function(t){var e=r._getEntryComponentMetadata(t.reference,!1);e&&n.push(e)}),n):(this._reportError(v("The ANALYZE_FOR_ENTRY_COMPONENTS token only supports 'multi = true'!"),e),[])},t.prototype._getEntryComponentMetadata=function(t,e){void 0===e&&(e=!0);var r=this.getNonNormalizedDirectiveMetadata(t);if(r&&r.metadata.isComponent)return{componentType:t,componentFactory:r.metadata.componentFactory};var n=this._loadSummary(t,Wo.Directive);if(n&&n.isComponent)return{componentType:t,componentFactory:n.componentFactory};if(e)throw v(t.name+" cannot be used as an entry component.");return null},t.prototype.getProviderMetadata=function(t){var e=void 0,r=null,n=null,o=this._getTokenMetadata(t.token);return t.useClass?(r=this._getInjectableMetadata(t.useClass,t.dependencies),e=r.diDeps,t.token===t.useClass&&(o={identifier:r})):t.useFactory&&(n=this._getFactoryMetadata(t.useFactory,t.dependencies),e=n.diDeps),{token:o,useClass:r,useValue:t.useValue,useFactory:n,useExisting:t.useExisting?this._getTokenMetadata(t.useExisting):void 0,deps:e,multi:t.multi}},t.prototype._getQueriesMetadata=function(t,e,r){var n=this,o=[];return Object.keys(t).forEach(function(i){var s=t[i];s.isViewQuery===e&&o.push(n._getQueryMetadata(s,i,r))}),o},t.prototype._queryVarBindings=function(t){return t.split(/\s*,\s*/)},t.prototype._getQueryMetadata=function(t,e,r){var n,o=this;return"string"==typeof t.selector?n=this._queryVarBindings(t.selector).map(function(t){return o._getTokenMetadata(t)}):t.selector?n=[this._getTokenMetadata(t.selector)]:(this._reportError(v("Can't construct a query for the property \""+e+'" of "'+pr(r)+"\" since the query selector wasn't defined."),r),n=[]),{selectors:n,first:t.first,descendants:t.descendants,propertyName:e,read:t.read?this._getTokenMetadata(t.read):null}},t.prototype._reportError=function(t,e,r){if(!this._errorCollector)throw t;this._errorCollector(t,e),r&&this._errorCollector(t,r)},t}();dl.decorators=[{type:z}],dl.ctorParameters=function(){return[{type:ti},{type:ll},{type:al},{type:pl},{type:hl},{type:Ju},{type:ol},{type:e.ɵConsole},{type:yo,decorators:[{type:e.Optional}]},{type:e.ɵReflectorReader},{type:void 0,decorators:[{type:e.Optional},{type:e.Inject,args:[fl]}]}]};var ml=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Zn(e,t),e.prototype.visitOther=function(t,e){e.push({reference:t})},e}(Oo),yl={};yl.Const=0,yl[yl.Const]="Const";var vl=function(){function t(t){void 0===t&&(t=null),this.modifiers=t,t||(this.modifiers=[])}return t.prototype.visitType=function(){},t.prototype.hasModifier=function(t){return-1!==this.modifiers.indexOf(t)},t}(),gl={};gl.Dynamic=0,gl.Bool=1,gl.String=2,gl.Int=3,gl.Number=4,gl.Function=5,gl.Inferred=6,gl[gl.Dynamic]="Dynamic",gl[gl.Bool]="Bool",gl[gl.String]="String",gl[gl.Int]="Int",gl[gl.Number]="Number",gl[gl.Function]="Function",gl[gl.Inferred]="Inferred";var _l=function(t){function e(e,r){void 0===r&&(r=null);var n=t.call(this,r)||this;return n.name=e,n}return Zn(e,t),e.prototype.visitType=function(t,e){return t.visitBuiltintType(this,e)},e}(vl),bl=function(t){function e(e,r){void 0===r&&(r=null);var n=t.call(this,r)||this;return n.value=e,n}return Zn(e,t),e.prototype.visitType=function(t,e){return t.visitExpressionType(this,e)},e}(vl),wl=function(t){function e(e,r){void 0===r&&(r=null);var n=t.call(this,r)||this;return n.of=e,n}return Zn(e,t),e.prototype.visitType=function(t,e){return t.visitArrayType(this,e)},e}(vl),Cl=function(t){function e(e,r){void 0===r&&(r=null);var n=t.call(this,r)||this;return n.valueType=e||null,n}return Zn(e,t),e.prototype.visitType=function(t,e){return t.visitMapType(this,e)},e}(vl),El=new _l(gl.Dynamic),Sl=new _l(gl.Inferred),xl=new _l(gl.Bool),Tl=(new _l(gl.Int),new _l(gl.Number),new _l(gl.String),new _l(gl.Function),{});Tl.Equals=0,Tl.NotEquals=1,Tl.Identical=2,Tl.NotIdentical=3,Tl.Minus=4,Tl.Plus=5,Tl.Divide=6,Tl.Multiply=7,Tl.Modulo=8,Tl.And=9,Tl.Or=10,Tl.Lower=11,Tl.LowerEquals=12,Tl.Bigger=13,Tl.BiggerEquals=14,Tl[Tl.Equals]="Equals",Tl[Tl.NotEquals]="NotEquals",Tl[Tl.Identical]="Identical",Tl[Tl.NotIdentical]="NotIdentical",Tl[Tl.Minus]="Minus",Tl[Tl.Plus]="Plus",Tl[Tl.Divide]="Divide",Tl[Tl.Multiply]="Multiply",Tl[Tl.Modulo]="Modulo",Tl[Tl.And]="And",Tl[Tl.Or]="Or",Tl[Tl.Lower]="Lower",Tl[Tl.LowerEquals]="LowerEquals",Tl[Tl.Bigger]="Bigger",Tl[Tl.BiggerEquals]="BiggerEquals";var Pl=function(){function t(t,e){this.type=t||null,this.sourceSpan=e||null}return t.prototype.visitExpression=function(){},t.prototype.prop=function(t,e){return new Gl(this,t,null,e)},t.prototype.key=function(t,e,r){return new Wl(this,t,e,r)},t.prototype.callMethod=function(t,e,r){return new Nl(this,t,e,null,r)},t.prototype.callFn=function(t,e){return new Dl(this,t,null,e)},t.prototype.instantiate=function(t,e,r){return new jl(this,t,e,r)},t.prototype.conditional=function(t,e,r){return void 0===e&&(e=null),new Fl(this,t,e,null,r)},t.prototype.equals=function(t,e){return new zl(Tl.Equals,this,t,null,e)},t.prototype.notEquals=function(t,e){return new zl(Tl.NotEquals,this,t,null,e)},t.prototype.identical=function(t,e){return new zl(Tl.Identical,this,t,null,e)},t.prototype.notIdentical=function(t,e){return new zl(Tl.NotIdentical,this,t,null,e)},t.prototype.minus=function(t,e){return new zl(Tl.Minus,this,t,null,e)},t.prototype.plus=function(t,e){return new zl(Tl.Plus,this,t,null,e)},t.prototype.divide=function(t,e){return new zl(Tl.Divide,this,t,null,e)},t.prototype.multiply=function(t,e){return new zl(Tl.Multiply,this,t,null,e)},t.prototype.modulo=function(t,e){return new zl(Tl.Modulo,this,t,null,e)},t.prototype.and=function(t,e){return new zl(Tl.And,this,t,null,e)},t.prototype.or=function(t,e){return new zl(Tl.Or,this,t,null,e)},t.prototype.lower=function(t,e){return new zl(Tl.Lower,this,t,null,e)},t.prototype.lowerEquals=function(t,e){return new zl(Tl.LowerEquals,this,t,null,e)},t.prototype.bigger=function(t,e){return new zl(Tl.Bigger,this,t,null,e)},t.prototype.biggerEquals=function(t,e){return new zl(Tl.BiggerEquals,this,t,null,e)},t.prototype.isBlank=function(t){return this.equals(tp,t)},t.prototype.cast=function(t,e){return new Bl(this,t,e)},t.prototype.toStmt=function(){return new ip(this,null)},t}(),Al={};Al.This=0,Al.Super=1,Al.CatchError=2,Al.CatchStack=3,Al[Al.This]="This",Al[Al.Super]="Super",Al[Al.CatchError]="CatchError",Al[Al.CatchStack]="CatchStack";var Ol=function(t){function e(e,r,n){var o=t.call(this,r,n)||this;return"string"==typeof e?(o.name=e,o.builtin=null):(o.name=null,o.builtin=e),o}return Zn(e,t),e.prototype.visitExpression=function(t,e){return t.visitReadVarExpr(this,e)},e.prototype.set=function(t){if(!this.name)throw new Error("Built in variable "+this.builtin+" can not be assigned to.");return new Ml(this.name,t,null,this.sourceSpan)},e}(Pl),Ml=function(t){function e(e,r,n,o){var i=t.call(this,n||r.type,o)||this;return i.name=e,i.value=r,i}return Zn(e,t),e.prototype.visitExpression=function(t,e){return t.visitWriteVarExpr(this,e)},e.prototype.toDeclStmt=function(t,e){return new np(this.name,this.value,t,e,this.sourceSpan)},e}(Pl),Rl=function(t){function e(e,r,n,o,i){var s=t.call(this,o||n.type,i)||this;return s.receiver=e,s.index=r,s.value=n,s}return Zn(e,t),e.prototype.visitExpression=function(t,e){return t.visitWriteKeyExpr(this,e)},e}(Pl),kl=function(t){function e(e,r,n,o,i){var s=t.call(this,o||n.type,i)||this;return s.receiver=e,s.name=r,s.value=n,s}return Zn(e,t),e.prototype.visitExpression=function(t,e){return t.visitWritePropExpr(this,e)},e}(Pl),Il={};Il.ConcatArray=0,Il.SubscribeObservable=1,Il.Bind=2,Il[Il.ConcatArray]="ConcatArray",Il[Il.SubscribeObservable]="SubscribeObservable",Il[Il.Bind]="Bind";var Nl=function(t){function e(e,r,n,o,i){var s=t.call(this,o,i)||this;return s.receiver=e,s.args=n,"string"==typeof r?(s.name=r,s.builtin=null):(s.name=null,s.builtin=r),s}return Zn(e,t),e.prototype.visitExpression=function(t,e){return t.visitInvokeMethodExpr(this,e)},e}(Pl),Dl=function(t){function e(e,r,n,o){var i=t.call(this,n,o)||this;return i.fn=e,i.args=r,i}return Zn(e,t),e.prototype.visitExpression=function(t,e){return t.visitInvokeFunctionExpr(this,e)},e}(Pl),jl=function(t){function e(e,r,n,o){var i=t.call(this,n,o)||this;return i.classExpr=e,i.args=r,i}return Zn(e,t),e.prototype.visitExpression=function(t,e){return t.visitInstantiateExpr(this,e)},e}(Pl),Ll=function(t){function e(e,r,n){var o=t.call(this,r,n)||this;return o.value=e,o}return Zn(e,t),e.prototype.visitExpression=function(t,e){return t.visitLiteralExpr(this,e)},e}(Pl),Vl=function(t){function e(e,r,n,o){void 0===n&&(n=null);var i=t.call(this,r,o)||this;return i.value=e,i.typeParams=n,i}return Zn(e,t),e.prototype.visitExpression=function(t,e){return t.visitExternalExpr(this,e)},e}(Pl),Fl=function(t){function e(e,r,n,o,i){void 0===n&&(n=null);var s=t.call(this,o||r.type,i)||this;return s.condition=e,s.falseCase=n,s.trueCase=r,s}return Zn(e,t),e.prototype.visitExpression=function(t,e){return t.visitConditionalExpr(this,e)},e}(Pl),Ul=function(t){function e(e,r){var n=t.call(this,xl,r)||this;return n.condition=e,n}return Zn(e,t),e.prototype.visitExpression=function(t,e){return t.visitNotExpr(this,e)},e}(Pl),Bl=function(t){function e(e,r,n){var o=t.call(this,r,n)||this;return o.value=e,o}return Zn(e,t),e.prototype.visitExpression=function(t,e){return t.visitCastExpr(this,e)},e}(Pl),Hl=function(){function t(t,e){void 0===e&&(e=null),this.name=t,this.type=e}return t}(),ql=function(t){function e(e,r,n,o){var i=t.call(this,n,o)||this;return i.params=e,i.statements=r,i}return Zn(e,t),e.prototype.visitExpression=function(t,e){return t.visitFunctionExpr(this,e)},e.prototype.toDeclStmt=function(t,e){return void 0===e&&(e=null),new op(t,this.params,this.statements,this.type,e,this.sourceSpan)},e}(Pl),zl=function(t){function e(e,r,n,o,i){var s=t.call(this,o||r.type,i)||this;return s.operator=e,s.rhs=n,s.lhs=r,s}return Zn(e,t),e.prototype.visitExpression=function(t,e){return t.visitBinaryOperatorExpr(this,e)},e}(Pl),Gl=function(t){function e(e,r,n,o){var i=t.call(this,n,o)||this;return i.receiver=e,i.name=r,i}return Zn(e,t),e.prototype.visitExpression=function(t,e){return t.visitReadPropExpr(this,e)},e.prototype.set=function(t){return new kl(this.receiver,this.name,t,null,this.sourceSpan)},e}(Pl),Wl=function(t){function e(e,r,n,o){var i=t.call(this,n,o)||this;return i.receiver=e,i.index=r,i}return Zn(e,t),e.prototype.visitExpression=function(t,e){return t.visitReadKeyExpr(this,e)},e.prototype.set=function(t){return new Rl(this.receiver,this.index,t,null,this.sourceSpan)},e}(Pl),$l=function(t){function e(e,r,n){var o=t.call(this,r,n)||this;return o.entries=e,o}return Zn(e,t),e.prototype.visitExpression=function(t,e){return t.visitLiteralArrayExpr(this,e)},e}(Pl),Kl=function(){function t(t,e,r){void 0===r&&(r=!1),this.key=t,this.value=e,this.quoted=r}return t}(),Ql=function(t){function e(e,r,n){var o=t.call(this,r,n)||this;return o.entries=e,o.valueType=null,r&&(o.valueType=r.valueType),o}return Zn(e,t),e.prototype.visitExpression=function(t,e){return t.visitLiteralMapExpr(this,e)},e}(Pl),Xl=function(t){function e(e,r){var n=t.call(this,e[e.length-1].type,r)||this;return n.parts=e,n}return Zn(e,t),e.prototype.visitExpression=function(t,e){return t.visitCommaExpr(this,e)},e}(Pl),Zl=new Ol(Al.This,null,null),Yl=new Ol(Al.Super,null,null),Jl=(new Ol(Al.CatchError,null,null),new Ol(Al.CatchStack,null,null),new Ll(null,null,null)),tp=new Ll(null,Sl,null),ep={};ep.Final=0,ep.Private=1,ep[ep.Final]="Final",ep[ep.Private]="Private";var rp=function(){function t(t,e){this.modifiers=t||[],this.sourceSpan=e||null}return t.prototype.visitStatement=function(){},t.prototype.hasModifier=function(t){return-1!==this.modifiers.indexOf(t)},t}(),np=function(t){function e(e,r,n,o,i){void 0===o&&(o=null);var s=t.call(this,o,i)||this;return s.name=e,s.value=r,s.type=n||r.type,s}return Zn(e,t),e.prototype.visitStatement=function(t,e){return t.visitDeclareVarStmt(this,e)},e}(rp),op=function(t){function e(e,r,n,o,i,s){void 0===i&&(i=null);var a=t.call(this,i,s)||this;return a.name=e,a.params=r,a.statements=n,a.type=o||null,a}return Zn(e,t),e.prototype.visitStatement=function(t,e){return t.visitDeclareFunctionStmt(this,e)},e}(rp),ip=function(t){function e(e,r){var n=t.call(this,null,r)||this;return n.expr=e,n}return Zn(e,t),e.prototype.visitStatement=function(t,e){return t.visitExpressionStmt(this,e)},e}(rp),sp=function(t){function e(e,r){var n=t.call(this,null,r)||this;return n.value=e,n}return Zn(e,t),e.prototype.visitStatement=function(t,e){return t.visitReturnStmt(this,e)},e}(rp),ap=function(){function t(t,e){this.modifiers=e,e||(this.modifiers=[]),this.type=t||null}return t.prototype.hasModifier=function(t){return-1!==this.modifiers.indexOf(t)},t}(),up=function(t){function e(e,r,n){void 0===n&&(n=null);var o=t.call(this,r,n)||this;return o.name=e,o}return Zn(e,t),e}(ap),cp=function(t){function e(e,r,n,o,i){void 0===i&&(i=null);var s=t.call(this,o,i)||this;return s.name=e,s.params=r,s.body=n,s}return Zn(e,t),e}(ap),lp=function(t){function e(e,r,n,o){void 0===o&&(o=null);var i=t.call(this,n,o)||this;return i.name=e,i.body=r,i}return Zn(e,t),e}(ap),pp=function(t){function e(e,r,n,o,i,s,a,u){void 0===a&&(a=null);var c=t.call(this,a,u)||this;return c.name=e,c.parent=r,c.fields=n,c.getters=o,c.constructorMethod=i,c.methods=s,c}return Zn(e,t),e.prototype.visitStatement=function(t,e){return t.visitDeclareClassStmt(this,e)},e}(rp),hp=function(t){function e(e,r,n,o){void 0===n&&(n=[]);var i=t.call(this,null,o)||this;return i.condition=e,i.trueCase=r,i.falseCase=n,i}return Zn(e,t),e.prototype.visitStatement=function(t,e){return t.visitIfStmt(this,e)},e}(rp),fp=function(t){function e(e,r,n){var o=t.call(this,null,n)||this; - -return o.bodyStmts=e,o.catchStmts=r,o}return Zn(e,t),e.prototype.visitStatement=function(t,e){return t.visitTryCatchStmt(this,e)},e}(rp),dp=function(t){function e(e,r){var n=t.call(this,null,r)||this;return n.error=e,n}return Zn(e,t),e.prototype.visitStatement=function(t,e){return t.visitThrowStmt(this,e)},e}(rp),mp=function(){function t(){}return t.prototype.transformExpr=function(t){return t},t.prototype.transformStmt=function(t){return t},t.prototype.visitReadVarExpr=function(t,e){return this.transformExpr(t,e)},t.prototype.visitWriteVarExpr=function(t,e){return this.transformExpr(new Ml(t.name,t.value.visitExpression(this,e),t.type,t.sourceSpan),e)},t.prototype.visitWriteKeyExpr=function(t,e){return this.transformExpr(new Rl(t.receiver.visitExpression(this,e),t.index.visitExpression(this,e),t.value.visitExpression(this,e),t.type,t.sourceSpan),e)},t.prototype.visitWritePropExpr=function(t,e){return this.transformExpr(new kl(t.receiver.visitExpression(this,e),t.name,t.value.visitExpression(this,e),t.type,t.sourceSpan),e)},t.prototype.visitInvokeMethodExpr=function(t,e){var r=t.builtin||t.name;return this.transformExpr(new Nl(t.receiver.visitExpression(this,e),r,this.visitAllExpressions(t.args,e),t.type,t.sourceSpan),e)},t.prototype.visitInvokeFunctionExpr=function(t,e){return this.transformExpr(new Dl(t.fn.visitExpression(this,e),this.visitAllExpressions(t.args,e),t.type,t.sourceSpan),e)},t.prototype.visitInstantiateExpr=function(t,e){return this.transformExpr(new jl(t.classExpr.visitExpression(this,e),this.visitAllExpressions(t.args,e),t.type,t.sourceSpan),e)},t.prototype.visitLiteralExpr=function(t,e){return this.transformExpr(t,e)},t.prototype.visitExternalExpr=function(t,e){return this.transformExpr(t,e)},t.prototype.visitConditionalExpr=function(t,e){return this.transformExpr(new Fl(t.condition.visitExpression(this,e),t.trueCase.visitExpression(this,e),t.falseCase.visitExpression(this,e),t.type,t.sourceSpan),e)},t.prototype.visitNotExpr=function(t,e){return this.transformExpr(new Ul(t.condition.visitExpression(this,e),t.sourceSpan),e)},t.prototype.visitCastExpr=function(t,e){return this.transformExpr(new Bl(t.value.visitExpression(this,e),t.type,t.sourceSpan),e)},t.prototype.visitFunctionExpr=function(t,e){return this.transformExpr(new ql(t.params,this.visitAllStatements(t.statements,e),t.type,t.sourceSpan),e)},t.prototype.visitBinaryOperatorExpr=function(t,e){return this.transformExpr(new zl(t.operator,t.lhs.visitExpression(this,e),t.rhs.visitExpression(this,e),t.type,t.sourceSpan),e)},t.prototype.visitReadPropExpr=function(t,e){return this.transformExpr(new Gl(t.receiver.visitExpression(this,e),t.name,t.type,t.sourceSpan),e)},t.prototype.visitReadKeyExpr=function(t,e){return this.transformExpr(new Wl(t.receiver.visitExpression(this,e),t.index.visitExpression(this,e),t.type,t.sourceSpan),e)},t.prototype.visitLiteralArrayExpr=function(t,e){return this.transformExpr(new $l(this.visitAllExpressions(t.entries,e),t.type,t.sourceSpan),e)},t.prototype.visitLiteralMapExpr=function(t,e){var r=this,n=t.entries.map(function(t){return new Kl(t.key,t.value.visitExpression(r,e),t.quoted)}),o=new Cl(t.valueType,null);return this.transformExpr(new Ql(n,o,t.sourceSpan),e)},t.prototype.visitCommaExpr=function(t,e){return this.transformExpr(new Xl(this.visitAllExpressions(t.parts,e),t.sourceSpan),e)},t.prototype.visitAllExpressions=function(t,e){var r=this;return t.map(function(t){return t.visitExpression(r,e)})},t.prototype.visitDeclareVarStmt=function(t,e){return this.transformStmt(new np(t.name,t.value.visitExpression(this,e),t.type,t.modifiers,t.sourceSpan),e)},t.prototype.visitDeclareFunctionStmt=function(t,e){return this.transformStmt(new op(t.name,t.params,this.visitAllStatements(t.statements,e),t.type,t.modifiers,t.sourceSpan),e)},t.prototype.visitExpressionStmt=function(t,e){return this.transformStmt(new ip(t.expr.visitExpression(this,e),t.sourceSpan),e)},t.prototype.visitReturnStmt=function(t,e){return this.transformStmt(new sp(t.value.visitExpression(this,e),t.sourceSpan),e)},t.prototype.visitDeclareClassStmt=function(t,e){var r=this,n=t.parent.visitExpression(this,e),o=t.getters.map(function(t){return new lp(t.name,r.visitAllStatements(t.body,e),t.type,t.modifiers)}),i=t.constructorMethod&&new cp(t.constructorMethod.name,t.constructorMethod.params,this.visitAllStatements(t.constructorMethod.body,e),t.constructorMethod.type,t.constructorMethod.modifiers),s=t.methods.map(function(t){return new cp(t.name,t.params,r.visitAllStatements(t.body,e),t.type,t.modifiers)});return this.transformStmt(new pp(t.name,n,t.fields,o,i,s,t.modifiers,t.sourceSpan),e)},t.prototype.visitIfStmt=function(t,e){return this.transformStmt(new hp(t.condition.visitExpression(this,e),this.visitAllStatements(t.trueCase,e),this.visitAllStatements(t.falseCase,e),t.sourceSpan),e)},t.prototype.visitTryCatchStmt=function(t,e){return this.transformStmt(new fp(this.visitAllStatements(t.bodyStmts,e),this.visitAllStatements(t.catchStmts,e),t.sourceSpan),e)},t.prototype.visitThrowStmt=function(t,e){return this.transformStmt(new dp(t.error.visitExpression(this,e),t.sourceSpan),e)},t.prototype.visitCommentStmt=function(t,e){return this.transformStmt(t,e)},t.prototype.visitAllStatements=function(t,e){var r=this;return t.map(function(t){return t.visitStatement(r,e)})},t}(),yp=function(){function t(){}return t.prototype.visitReadVarExpr=function(t){return t},t.prototype.visitWriteVarExpr=function(t,e){return t.value.visitExpression(this,e),t},t.prototype.visitWriteKeyExpr=function(t,e){return t.receiver.visitExpression(this,e),t.index.visitExpression(this,e),t.value.visitExpression(this,e),t},t.prototype.visitWritePropExpr=function(t,e){return t.receiver.visitExpression(this,e),t.value.visitExpression(this,e),t},t.prototype.visitInvokeMethodExpr=function(t,e){return t.receiver.visitExpression(this,e),this.visitAllExpressions(t.args,e),t},t.prototype.visitInvokeFunctionExpr=function(t,e){return t.fn.visitExpression(this,e),this.visitAllExpressions(t.args,e),t},t.prototype.visitInstantiateExpr=function(t,e){return t.classExpr.visitExpression(this,e),this.visitAllExpressions(t.args,e),t},t.prototype.visitLiteralExpr=function(t){return t},t.prototype.visitExternalExpr=function(t){return t},t.prototype.visitConditionalExpr=function(t,e){return t.condition.visitExpression(this,e),t.trueCase.visitExpression(this,e),t.falseCase.visitExpression(this,e),t},t.prototype.visitNotExpr=function(t,e){return t.condition.visitExpression(this,e),t},t.prototype.visitCastExpr=function(t,e){return t.value.visitExpression(this,e),t},t.prototype.visitFunctionExpr=function(t,e){return this.visitAllStatements(t.statements,e),t},t.prototype.visitBinaryOperatorExpr=function(t,e){return t.lhs.visitExpression(this,e),t.rhs.visitExpression(this,e),t},t.prototype.visitReadPropExpr=function(t,e){return t.receiver.visitExpression(this,e),t},t.prototype.visitReadKeyExpr=function(t,e){return t.receiver.visitExpression(this,e),t.index.visitExpression(this,e),t},t.prototype.visitLiteralArrayExpr=function(t,e){return this.visitAllExpressions(t.entries,e),t},t.prototype.visitLiteralMapExpr=function(t,e){var r=this;return t.entries.forEach(function(t){return t.value.visitExpression(r,e)}),t},t.prototype.visitCommaExpr=function(t,e){this.visitAllExpressions(t.parts,e)},t.prototype.visitAllExpressions=function(t,e){var r=this;t.forEach(function(t){return t.visitExpression(r,e)})},t.prototype.visitDeclareVarStmt=function(t,e){return t.value.visitExpression(this,e),t},t.prototype.visitDeclareFunctionStmt=function(t,e){return this.visitAllStatements(t.statements,e),t},t.prototype.visitExpressionStmt=function(t,e){return t.expr.visitExpression(this,e),t},t.prototype.visitReturnStmt=function(t,e){return t.value.visitExpression(this,e),t},t.prototype.visitDeclareClassStmt=function(t,e){var r=this;return t.parent.visitExpression(this,e),t.getters.forEach(function(t){return r.visitAllStatements(t.body,e)}),t.constructorMethod&&this.visitAllStatements(t.constructorMethod.body,e),t.methods.forEach(function(t){return r.visitAllStatements(t.body,e)}),t},t.prototype.visitIfStmt=function(t,e){return t.condition.visitExpression(this,e),this.visitAllStatements(t.trueCase,e),this.visitAllStatements(t.falseCase,e),t},t.prototype.visitTryCatchStmt=function(t,e){return this.visitAllStatements(t.bodyStmts,e),this.visitAllStatements(t.catchStmts,e),t},t.prototype.visitThrowStmt=function(t,e){return t.error.visitExpression(this,e),t},t.prototype.visitCommentStmt=function(t){return t},t.prototype.visitAllStatements=function(t,e){var r=this;t.forEach(function(t){return t.visitStatement(r,e)})},t}(),vp=function(t){function e(){var e=t.apply(this,arguments)||this;return e.varNames=new Set,e}return Zn(e,t),e.prototype.visitDeclareFunctionStmt=function(t){return t},e.prototype.visitDeclareClassStmt=function(t){return t},e.prototype.visitReadVarExpr=function(t){return t.name&&this.varNames.add(t.name),null},e}(yp),gp=function(t){function e(e){var r=t.call(this)||this;return r.sourceSpan=e,r}return Zn(e,t),e.prototype._clone=function(t){var e=Object.create(t.constructor.prototype);for(var r in t)e[r]=t[r];return e},e.prototype.transformExpr=function(t){return t.sourceSpan||(t=this._clone(t),t.sourceSpan=this.sourceSpan),t},e.prototype.transformStmt=function(t){return t.sourceSpan||(t=this._clone(t),t.sourceSpan=this.sourceSpan),t},e}(mp),_p="$quoted$",bp=function(){function t(){}return t.prototype.visitArray=function(t,e){var r=this;return br(t.map(function(t){return d(t,r,null)}),e)},t.prototype.visitStringMap=function(t,e){var r=this,n=[],o=new Set(t&&t[_p]);return Object.keys(t).forEach(function(e){n.push(new Kl(e,d(t[e],r,null),o.has(e)))}),new Ql(n,e)},t.prototype.visitPrimitive=function(t,e){return Sr(t,e)},t.prototype.visitOther=function(t){return t instanceof Pl?t:vr({reference:t})},t}(),wp=function(){function t(t){this.compType=t}return t}(),Cp=function(){function t(t,e,r){this.statements=t,this.ngModuleFactoryVar=e,this.dependencies=r}return t}(),Ep=function(){function t(){}return t.prototype.compile=function(t,e){var r=ct("NgModule",t.type),n=[],o=[],i=t.transitiveModule.entryComponents.map(function(e){return t.bootstrapComponents.some(function(t){return t.reference===e.componentType})&&o.push({reference:e.componentFactory}),n.push(new wp(e.componentType)),{reference:e.componentFactory}}),s=new Sp(t,i,o,r),a=new Yu(t,e,r);a.parse().forEach(function(t){return s.addProvider(t)});var u=s.build(),c=E(t.type)+"NgFactory",l=yr(c).set(vr(de(zu.NgModuleFactory)).instantiate([yr(u.name),vr(t.type)],gr(de(zu.NgModuleFactory),[gr(t.type)],[yl.Const]))).toDeclStmt(null,[ep.Final]),p=[u,l];if(t.id){var h=vr(de(zu.RegisterModuleFactoryFn)).callFn([Sr(t.id),yr(c)]).toStmt();p.push(h)}return new Cp(p,c,n)},t}();Ep.decorators=[{type:z}],Ep.ctorParameters=function(){return[]};var Sp=function(){function t(t,e,r,n){this._ngModuleMeta=t,this._entryComponentFactories=e,this._bootstrapComponentFactories=r,this._sourceSpan=n,this.fields=[],this.getters=[],this.methods=[],this.ctorStmts=[],this._lazyProps=new Map,this._tokens=[],this._instances=new Map,this._createStmts=[],this._destroyStmts=[]}return t.prototype.addProvider=function(t){var r=this,n=t.providers.map(function(t){return r._getProviderValue(t)}),o="_"+M(t.token)+"_"+this._instances.size,i=this._createProviderProperty(o,t,n,t.multiProvider,t.eager);if(-1!==t.lifecycleHooks.indexOf(e.ɵLifecycleHooks.OnDestroy)){var s=i.callMethod("ngOnDestroy",[]);t.eager||(s=this._lazyProps.get(i.name).and(s)),this._destroyStmts.push(s.toStmt())}this._tokens.push(t.token),this._instances.set(R(t.token),i)},t.prototype.build=function(){var t=this,e=this._tokens.map(function(e){var r=t._instances.get(R(e));return new hp(Tp.token.identical(Ar(e)),[new sp(r)])}),r=[new cp("createInternal",[],this._createStmts.concat(new sp(this._instances.get(this._ngModuleMeta.type.reference))),gr(this._ngModuleMeta.type)),new cp("getInternal",[new Hl(Tp.token.name,El),new Hl(Tp.notFoundResult.name,El)],e.concat([new sp(Tp.notFoundResult)]),El),new cp("destroyInternal",[],this._destroyStmts)],n=[yr(xp.parent.name),br(this._entryComponentFactories.map(function(t){return vr(t)})),br(this._bootstrapComponentFactories.map(function(t){return vr(t)}))],o=E(this._ngModuleMeta.type)+"Injector";return xr({name:o,ctorParams:[new Hl(xp.parent.name,gr(de(zu.Injector)))],parent:vr(de(zu.NgModuleInjector),[gr(this._ngModuleMeta.type)]),parentArgs:n,builders:[{methods:r},this]})},t.prototype._getProviderValue=function(t){var e,r=this;if(null!=t.useExisting)e=this._getDependency({token:t.useExisting});else if(null!=t.useFactory){var n=t.deps||t.useFactory.diDeps,o=n.map(function(t){return r._getDependency(t)});e=vr(t.useFactory).callFn(o)}else if(null!=t.useClass){var n=t.deps||t.useClass.diDeps,o=n.map(function(t){return r._getDependency(t)});e=vr(t.useClass).instantiate(o,gr(t.useClass))}else e=Pr(t.useValue);return e},t.prototype._createProviderProperty=function(t,e,r,n,o){var i,s;if(n?(i=br(r),s=new wl(El)):(i=r[0],s=r[0].type),s||(s=El),o)this.fields.push(new up(t,s)),this._createStmts.push(Zl.prop(t).set(i).toStmt());else{var a=Zl.prop("_"+t);this.fields.push(new up(a.name,s));var u=[new hp(a.isBlank(),[a.set(i).toStmt()]),new sp(a)];this.getters.push(new lp(t,u,s)),this._lazyProps.set(t,a)}return Zl.prop(t)},t.prototype._getDependency=function(t){var e=null;if(t.isValue&&(e=Sr(t.value)),t.isSkipSelf||(t.token&&(R(t.token)===fe(zu.Injector)?e=Zl:R(t.token)===fe(zu.ComponentFactoryResolver)&&(e=Zl.prop("componentFactoryResolver"))),e||(e=this._instances.get(R(t.token)))),!e){var r=[Ar(t.token)];t.isOptional&&r.push(Jl),e=xp.parent.callMethod("get",r)}return e},t}(),xp=function(){function t(){}return t}();xp.parent=Zl.prop("parent");var Tp=function(){function t(){}return t}();Tp.token=yr("token"),Tp.notFoundResult=yr("notFoundResult");var Pp=3,Ap="# sourceMappingURL=data:application/json;base64,",Op=function(){function t(t){void 0===t&&(t=null),this.file=t,this.sourcesContent=new Map,this.lines=[],this.lastCol0=0,this.hasMappings=!1}return t.prototype.addSource=function(t,e){return void 0===e&&(e=null),this.sourcesContent.has(t)||this.sourcesContent.set(t,e),this},t.prototype.addLine=function(){return this.lines.push([]),this.lastCol0=0,this},t.prototype.addMapping=function(t,e,r,n){if(!this.currentLine)throw new Error("A line must be added before mappings can be added");if(null!=e&&!this.sourcesContent.has(e))throw new Error('Unknown source file "'+e+'"');if(null==t)throw new Error("The column in the generated code must be provided");if(t<this.lastCol0)throw new Error("Mapping should be added in output order");if(e&&(null==r||null==n))throw new Error("The source location must be provided when a source url is provided");return this.hasMappings=!0,this.lastCol0=t,this.currentLine.push({col0:t,sourceUrl:e,sourceLine0:r,sourceCol0:n}),this},Object.defineProperty(t.prototype,"currentLine",{get:function(){return this.lines.slice(-1)[0]},enumerable:!0,configurable:!0}),t.prototype.toJSON=function(){var t=this;if(!this.hasMappings)return null;var e=new Map,r=[],n=[];Array.from(this.sourcesContent.keys()).forEach(function(o,i){e.set(o,i),r.push(o),n.push(t.sourcesContent.get(o)||null)});var o="",i=0,s=0,a=0,u=0;return this.lines.forEach(function(t){i=0,o+=t.map(function(t){var r=Mr(t.col0-i);return i=t.col0,null!=t.sourceUrl&&(r+=Mr(e.get(t.sourceUrl)-s),s=e.get(t.sourceUrl),r+=Mr(t.sourceLine0-a),a=t.sourceLine0,r+=Mr(t.sourceCol0-u),u=t.sourceCol0),r}).join(","),o+=";"}),o=o.slice(0,-1),{file:this.file||"",version:Pp,sourceRoot:"",sources:r,sourcesContent:n,mappings:o}},t.prototype.toJsComment=function(){return this.hasMappings?"//"+Ap+Or(JSON.stringify(this,null,0)):""},t}(),Mp="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Rp=/'|\\|\n|\r|\$/g,kp=/^[$A-Z_][0-9A-Z_$]*$/i,Ip=" ",Np=yr("error",null,null),Dp=yr("stack",null,null),jp=function(){function t(t){this.indent=t,this.parts=[],this.srcSpans=[]}return t}(),Lp=function(){function t(t,e){this._exportedVars=t,this._indent=e,this._classes=[],this._lines=[new jp(e)]}return t.createRoot=function(e){return new t(e,0)},Object.defineProperty(t.prototype,"_currentLine",{get:function(){return this._lines[this._lines.length-1]},enumerable:!0,configurable:!0}),t.prototype.isExportedVar=function(t){return-1!==this._exportedVars.indexOf(t)},t.prototype.println=function(t,e){void 0===e&&(e=""),this.print(t||null,e,!0)},t.prototype.lineIsEmpty=function(){return 0===this._currentLine.parts.length},t.prototype.print=function(t,e,r){void 0===r&&(r=!1),e.length>0&&(this._currentLine.parts.push(e),this._currentLine.srcSpans.push(t&&t.sourceSpan||null)),r&&this._lines.push(new jp(this._indent))},t.prototype.removeEmptyLastLine=function(){this.lineIsEmpty()&&this._lines.pop()},t.prototype.incIndent=function(){this._indent++,this._currentLine.indent=this._indent},t.prototype.decIndent=function(){this._indent--,this._currentLine.indent=this._indent},t.prototype.pushClass=function(t){this._classes.push(t)},t.prototype.popClass=function(){return this._classes.pop()},Object.defineProperty(t.prototype,"currentClass",{get:function(){return this._classes.length>0?this._classes[this._classes.length-1]:null},enumerable:!0,configurable:!0}),t.prototype.toSource=function(){return this.sourceLines.map(function(t){return t.parts.length>0?Ir(t.indent)+t.parts.join(""):""}).join("\n")},t.prototype.toSourceMapGenerator=function(t,e,r){void 0===r&&(r=0);for(var n=new Op(e),o=!1,i=function(){o||(n.addSource(t," ").addMapping(0,t,0,0),o=!0)},s=0;r>s;s++)n.addLine(),i();return this.sourceLines.forEach(function(t,e){n.addLine();for(var r=t.srcSpans,s=t.parts,a=t.indent*Ip.length,u=0;u<r.length&&!r[u];)a+=s[u].length,u++;for(u<r.length&&0===e&&0===a?o=!0:i();u<r.length;){var c=r[u],l=c.start.file,p=c.start.line,h=c.start.col;for(n.addSource(l.url,l.content).addMapping(a,l.url,p,h),a+=s[u].length,u++;u<r.length&&(c===r[u]||!r[u]);)a+=s[u].length,u++}}),n},Object.defineProperty(t.prototype,"sourceLines",{get:function(){return this._lines.length&&0===this._lines[this._lines.length-1].parts.length?this._lines.slice(0,-1):this._lines},enumerable:!0,configurable:!0}),t}(),Vp=function(){function t(t){this._escapeDollarInStrings=t}return t.prototype.visitExpressionStmt=function(t,e){return t.expr.visitExpression(this,e),e.println(t,";"),null},t.prototype.visitReturnStmt=function(t,e){return e.print(t,"return "),t.value.visitExpression(this,e),e.println(t,";"),null},t.prototype.visitCastExpr=function(){},t.prototype.visitDeclareClassStmt=function(){},t.prototype.visitIfStmt=function(t,e){e.print(t,"if ("),t.condition.visitExpression(this,e),e.print(t,") {");var r=null!=t.falseCase&&t.falseCase.length>0;return t.trueCase.length<=1&&!r?(e.print(t," "),this.visitAllStatements(t.trueCase,e),e.removeEmptyLastLine(),e.print(t," ")):(e.println(),e.incIndent(),this.visitAllStatements(t.trueCase,e),e.decIndent(),r&&(e.println(t,"} else {"),e.incIndent(),this.visitAllStatements(t.falseCase,e),e.decIndent())),e.println(t,"}"),null},t.prototype.visitTryCatchStmt=function(){},t.prototype.visitThrowStmt=function(t,e){return e.print(t,"throw "),t.error.visitExpression(this,e),e.println(t,";"),null},t.prototype.visitCommentStmt=function(t,e){var r=t.comment.split("\n");return r.forEach(function(r){e.println(t,"// "+r)}),null},t.prototype.visitDeclareVarStmt=function(){},t.prototype.visitWriteVarExpr=function(t,e){var r=e.lineIsEmpty();return r||e.print(t,"("),e.print(t,t.name+" = "),t.value.visitExpression(this,e),r||e.print(t,")"),null},t.prototype.visitWriteKeyExpr=function(t,e){var r=e.lineIsEmpty();return r||e.print(t,"("),t.receiver.visitExpression(this,e),e.print(t,"["),t.index.visitExpression(this,e),e.print(t,"] = "),t.value.visitExpression(this,e),r||e.print(t,")"),null},t.prototype.visitWritePropExpr=function(t,e){var r=e.lineIsEmpty();return r||e.print(t,"("),t.receiver.visitExpression(this,e),e.print(t,"."+t.name+" = "),t.value.visitExpression(this,e),r||e.print(t,")"),null},t.prototype.visitInvokeMethodExpr=function(t,e){t.receiver.visitExpression(this,e);var r=t.name;return null!=t.builtin&&(r=this.getBuiltinMethodName(t.builtin),null==r)?null:(e.print(t,"."+r+"("),this.visitAllExpressions(t.args,e,","),e.print(t,")"),null)},t.prototype.getBuiltinMethodName=function(){},t.prototype.visitInvokeFunctionExpr=function(t,e){return t.fn.visitExpression(this,e),e.print(t,"("),this.visitAllExpressions(t.args,e,","),e.print(t,")"),null},t.prototype.visitReadVarExpr=function(t,e){var r=t.name;if(null!=t.builtin)switch(t.builtin){case Al.Super:r="super";break;case Al.This:r="this";break;case Al.CatchError:r=Np.name;break;case Al.CatchStack:r=Dp.name;break;default:throw new Error("Unknown builtin variable "+t.builtin)}return e.print(t,r),null},t.prototype.visitInstantiateExpr=function(t,e){return e.print(t,"new "),t.classExpr.visitExpression(this,e),e.print(t,"("),this.visitAllExpressions(t.args,e,","),e.print(t,")"),null},t.prototype.visitLiteralExpr=function(t,e){var r=t.value;return"string"==typeof r?e.print(t,kr(r,this._escapeDollarInStrings)):e.print(t,""+r),null},t.prototype.visitExternalExpr=function(){},t.prototype.visitConditionalExpr=function(t,e){return e.print(t,"("),t.condition.visitExpression(this,e),e.print(t,"? "),t.trueCase.visitExpression(this,e),e.print(t,": "),t.falseCase.visitExpression(this,e),e.print(t,")"),null},t.prototype.visitNotExpr=function(t,e){return e.print(t,"!"),t.condition.visitExpression(this,e),null},t.prototype.visitFunctionExpr=function(){},t.prototype.visitDeclareFunctionStmt=function(){},t.prototype.visitBinaryOperatorExpr=function(t,e){var r;switch(t.operator){case Tl.Equals:r="==";break;case Tl.Identical:r="===";break;case Tl.NotEquals:r="!=";break;case Tl.NotIdentical:r="!==";break;case Tl.And:r="&&";break;case Tl.Or:r="||";break;case Tl.Plus:r="+";break;case Tl.Minus:r="-";break;case Tl.Divide:r="/";break;case Tl.Multiply:r="*";break;case Tl.Modulo:r="%";break;case Tl.Lower:r="<";break;case Tl.LowerEquals:r="<=";break;case Tl.Bigger:r=">";break;case Tl.BiggerEquals:r=">=";break;default:throw new Error("Unknown operator "+t.operator)}return e.print(t,"("),t.lhs.visitExpression(this,e),e.print(t," "+r+" "),t.rhs.visitExpression(this,e),e.print(t,")"),null},t.prototype.visitReadPropExpr=function(t,e){return t.receiver.visitExpression(this,e),e.print(t,"."),e.print(t,t.name),null},t.prototype.visitReadKeyExpr=function(t,e){return t.receiver.visitExpression(this,e),e.print(t,"["),t.index.visitExpression(this,e),e.print(t,"]"),null},t.prototype.visitLiteralArrayExpr=function(t,e){var r=t.entries.length>1;return e.print(t,"[",r),e.incIndent(),this.visitAllExpressions(t.entries,e,",",r),e.decIndent(),e.print(t,"]",r),null},t.prototype.visitLiteralMapExpr=function(t,e){var r=this,n=t.entries.length>1;return e.print(t,"{",n),e.incIndent(),this.visitAllObjects(function(n){e.print(t,kr(n.key,r._escapeDollarInStrings,n.quoted)+": "),n.value.visitExpression(r,e)},t.entries,e,",",n),e.decIndent(),e.print(t,"}",n),null},t.prototype.visitCommaExpr=function(t,e){return e.print(t,"("),this.visitAllExpressions(t.parts,e,","),e.print(t,")"),null},t.prototype.visitAllExpressions=function(t,e,r,n){var o=this;void 0===n&&(n=!1),this.visitAllObjects(function(t){return t.visitExpression(o,e)},t,e,r,n)},t.prototype.visitAllObjects=function(t,e,r,n,o){void 0===o&&(o=!1);for(var i=0;i<e.length;i++)i>0&&r.print(null,n,o),t(e[i]);o&&r.println()},t.prototype.visitAllStatements=function(t,e){var r=this;t.forEach(function(t){return t.visitStatement(r,e)})},t}(),Fp="/debug/lib",Up=function(){function t(t){this._importResolver=t}return t.prototype.emitStatements=function(t,e,r,n,o){var i=this;void 0===o&&(o="");var s=new Bp(e,this._importResolver),a=Lp.createRoot(n);s.visitAllStatements(r,a);var u=o?o.split("\n"):[];s.reexports.forEach(function(t,r){var n=t.map(function(t){return t.name+" as "+t.as}).join(",");u.push("export {"+n+"} from '"+i._importResolver.fileNameToModuleName(r,e)+"';")}),s.importsWithPrefixes.forEach(function(t,r){u.push("imp"+("ort * as "+t+" from '"+i._importResolver.fileNameToModuleName(r,e)+"';"))});var c=a.toSourceMapGenerator(t,e,u.length).toJsComment(),l=u.concat([a.toSource(),c]);return c&&l.push(""),l.join("\n")},t}(),Bp=function(t){function e(e,r){var n=t.call(this,!1)||this;return n._genFilePath=e,n._importResolver=r,n.typeExpression=0,n.importsWithPrefixes=new Map,n.reexports=new Map,n}return Zn(e,t),e.prototype.visitType=function(t,e,r){void 0===r&&(r="any"),t?(this.typeExpression++,t.visitType(this,e),this.typeExpression--):e.print(null,r)},e.prototype.visitLiteralExpr=function(e,r){var n=e.value;return null==n&&e.type!=Sl?(r.print(e,"("+n+" as any)"),null):t.prototype.visitLiteralExpr.call(this,e,r)},e.prototype.visitLiteralArrayExpr=function(e,r){0===e.entries.length&&r.print(e,"(");var n=t.prototype.visitLiteralArrayExpr.call(this,e,r);return 0===e.entries.length&&r.print(e," as any[])"),n},e.prototype.visitExternalExpr=function(t,e){return this._visitIdentifier(t.value,t.typeParams,e),null},e.prototype.visitDeclareVarStmt=function(t,e){if(e.isExportedVar(t.name)&&t.value instanceof Vl&&!t.type){var r=this._resolveStaticSymbol(t.value.value),n=r.name,o=r.filePath,i=r.members;if(0===i.length&&o!==this._genFilePath){var s=this.reexports.get(o);return s||(s=[],this.reexports.set(o,s)),s.push({name:n,as:t.name}),null}}return e.isExportedVar(t.name)&&e.print(t,"export "),t.hasModifier(ep.Final)?e.print(t,"const"):e.print(t,"var"),e.print(t," "+t.name),this._printColonType(t.type,e),e.print(t," = "),t.value.visitExpression(this,e),e.println(t,";"),null},e.prototype.visitCastExpr=function(t,e){return e.print(t,"(<"),t.type.visitType(this,e),e.print(t,">"),t.value.visitExpression(this,e),e.print(t,")"),null},e.prototype.visitInstantiateExpr=function(t,e){return e.print(t,"new "),this.typeExpression++,t.classExpr.visitExpression(this,e),this.typeExpression--,e.print(t,"("),this.visitAllExpressions(t.args,e,","),e.print(t,")"),null},e.prototype.visitDeclareClassStmt=function(t,e){var r=this;return e.pushClass(t),e.isExportedVar(t.name)&&e.print(t,"export "),e.print(t,"class "+t.name),null!=t.parent&&(e.print(t," extends "),this.typeExpression++,t.parent.visitExpression(this,e),this.typeExpression--),e.println(t," {"),e.incIndent(),t.fields.forEach(function(t){return r._visitClassField(t,e)}),null!=t.constructorMethod&&this._visitClassConstructor(t,e),t.getters.forEach(function(t){return r._visitClassGetter(t,e)}),t.methods.forEach(function(t){return r._visitClassMethod(t,e)}),e.decIndent(),e.println(t,"}"),e.popClass(),null},e.prototype._visitClassField=function(t,e){t.hasModifier(ep.Private)&&e.print(null,"/*private*/ "),e.print(null,t.name),this._printColonType(t.type,e),e.println(null,";")},e.prototype._visitClassGetter=function(t,e){t.hasModifier(ep.Private)&&e.print(null,"private "),e.print(null,"get "+t.name+"()"),this._printColonType(t.type,e),e.println(null," {"),e.incIndent(),this.visitAllStatements(t.body,e),e.decIndent(),e.println(null,"}")},e.prototype._visitClassConstructor=function(t,e){e.print(t,"constructor("),this._visitParams(t.constructorMethod.params,e),e.println(t,") {"),e.incIndent(),this.visitAllStatements(t.constructorMethod.body,e),e.decIndent(),e.println(t,"}")},e.prototype._visitClassMethod=function(t,e){t.hasModifier(ep.Private)&&e.print(null,"private "),e.print(null,t.name+"("),this._visitParams(t.params,e),e.print(null,")"),this._printColonType(t.type,e,"void"),e.println(null," {"),e.incIndent(),this.visitAllStatements(t.body,e),e.decIndent(),e.println(null,"}")},e.prototype.visitFunctionExpr=function(t,e){return e.print(t,"("),this._visitParams(t.params,e),e.print(t,")"),this._printColonType(t.type,e,"void"),e.println(t," => {"),e.incIndent(),this.visitAllStatements(t.statements,e),e.decIndent(),e.print(t,"}"),null},e.prototype.visitDeclareFunctionStmt=function(t,e){return e.isExportedVar(t.name)&&e.print(t,"export "),e.print(t,"function "+t.name+"("),this._visitParams(t.params,e),e.print(t,")"),this._printColonType(t.type,e,"void"),e.println(t," {"),e.incIndent(),this.visitAllStatements(t.statements,e),e.decIndent(),e.println(t,"}"),null},e.prototype.visitTryCatchStmt=function(t,e){e.println(t,"try {"),e.incIndent(),this.visitAllStatements(t.bodyStmts,e),e.decIndent(),e.println(t,"} catch ("+Np.name+") {"),e.incIndent();var r=[Dp.set(Np.prop("stack",null)).toDeclStmt(null,[ep.Final])].concat(t.catchStmts);return this.visitAllStatements(r,e),e.decIndent(),e.println(t,"}"),null},e.prototype.visitBuiltintType=function(t,e){var r;switch(t.name){case gl.Bool:r="boolean";break;case gl.Dynamic:r="any";break;case gl.Function:r="Function";break;case gl.Number:r="number";break;case gl.Int:r="number";break;case gl.String:r="string";break;default:throw new Error("Unsupported builtin type "+t.name)}return e.print(null,r),null},e.prototype.visitExpressionType=function(t,e){return t.value.visitExpression(this,e),null},e.prototype.visitArrayType=function(t,e){return this.visitType(t.of,e),e.print(null,"[]"),null},e.prototype.visitMapType=function(t,e){return e.print(null,"{[key: string]:"),this.visitType(t.valueType,e),e.print(null,"}"),null},e.prototype.getBuiltinMethodName=function(t){var e;switch(t){case Il.ConcatArray:e="concat";break;case Il.SubscribeObservable:e="subscribe";break;case Il.Bind:e="bind";break;default:throw new Error("Unknown builtin method: "+t)}return e},e.prototype._visitParams=function(t,e){var r=this;this.visitAllObjects(function(t){e.print(null,t.name),r._printColonType(t.type,e)},t,e,",")},e.prototype._resolveStaticSymbol=function(t){var e=t.reference;if(!(e instanceof mo))throw new Error("Internal error: unknown identifier "+JSON.stringify(t));var r=this._importResolver.getTypeArity(e)||void 0,n=this._importResolver.getImportAs(e)||e;return{name:n.name,filePath:n.filePath,members:n.members,arity:r}},e.prototype._visitIdentifier=function(t,e,r){var n=this,o=this._resolveStaticSymbol(t),i=o.name,s=o.filePath,a=o.members,u=o.arity;if(s!=this._genFilePath){var c=this.importsWithPrefixes.get(s);null==c&&(c="import"+this.importsWithPrefixes.size,this.importsWithPrefixes.set(s,c)),r.print(null,c+".")}if(a.length?(r.print(null,i),r.print(null,"."),r.print(null,a.join("."))):r.print(null,i),this.typeExpression>0){var l=e&&e.length||0,p=(u||0)-l;if(l>0||p>0){if(r.print(null,"<"),l>0&&this.visitAllObjects(function(t){return t.visitType(n,r)},e,r,","),p>0)for(var h=0;p>h;h++)(h>0||l>0)&&r.print(null,","),r.print(null,"any");r.print(null,">")}}},e.prototype._printColonType=function(t,e,r){t!==Sl&&(e.print(null,":"),this.visitType(t,e,r))},e}(Vp),Hp={};Dr(e.SecurityContext.HTML,["iframe|srcdoc","*|innerHTML","*|outerHTML"]),Dr(e.SecurityContext.STYLE,["*|style"]),Dr(e.SecurityContext.URL,["*|formAction","area|href","area|ping","audio|src","a|href","a|ping","blockquote|cite","body|background","del|cite","form|action","img|src","img|srcset","input|src","ins|cite","q|cite","source|src","source|srcset","track|src","video|poster","video|src"]),Dr(e.SecurityContext.RESOURCE_URL,["applet|code","applet|codebase","base|href","embed|src","frame|src","head|profile","html|manifest","iframe|src","link|href","media|src","object|codebase","object|data","script|src"]);var qp="boolean",zp="number",Gp="string",Wp="object",$p=["[Element]|textContent,%classList,className,id,innerHTML,*beforecopy,*beforecut,*beforepaste,*copy,*cut,*paste,*search,*selectstart,*webkitfullscreenchange,*webkitfullscreenerror,*wheel,outerHTML,#scrollLeft,#scrollTop","[HTMLElement]^[Element]|accessKey,contentEditable,dir,!draggable,!hidden,innerText,lang,*abort,*beforecopy,*beforecut,*beforepaste,*blur,*cancel,*canplay,*canplaythrough,*change,*click,*close,*contextmenu,*copy,*cuechange,*cut,*dblclick,*drag,*dragend,*dragenter,*dragleave,*dragover,*dragstart,*drop,*durationchange,*emptied,*ended,*error,*focus,*input,*invalid,*keydown,*keypress,*keyup,*load,*loadeddata,*loadedmetadata,*loadstart,*message,*mousedown,*mouseenter,*mouseleave,*mousemove,*mouseout,*mouseover,*mouseup,*mousewheel,*mozfullscreenchange,*mozfullscreenerror,*mozpointerlockchange,*mozpointerlockerror,*paste,*pause,*play,*playing,*progress,*ratechange,*reset,*resize,*scroll,*search,*seeked,*seeking,*select,*selectstart,*show,*stalled,*submit,*suspend,*timeupdate,*toggle,*volumechange,*waiting,*webglcontextcreationerror,*webglcontextlost,*webglcontextrestored,*webkitfullscreenchange,*webkitfullscreenerror,*wheel,outerText,!spellcheck,%style,#tabIndex,title,!translate","abbr,address,article,aside,b,bdi,bdo,cite,code,dd,dfn,dt,em,figcaption,figure,footer,header,i,kbd,main,mark,nav,noscript,rb,rp,rt,rtc,ruby,s,samp,section,small,strong,sub,sup,u,var,wbr^[HTMLElement]|accessKey,contentEditable,dir,!draggable,!hidden,innerText,lang,*abort,*beforecopy,*beforecut,*beforepaste,*blur,*cancel,*canplay,*canplaythrough,*change,*click,*close,*contextmenu,*copy,*cuechange,*cut,*dblclick,*drag,*dragend,*dragenter,*dragleave,*dragover,*dragstart,*drop,*durationchange,*emptied,*ended,*error,*focus,*input,*invalid,*keydown,*keypress,*keyup,*load,*loadeddata,*loadedmetadata,*loadstart,*message,*mousedown,*mouseenter,*mouseleave,*mousemove,*mouseout,*mouseover,*mouseup,*mousewheel,*mozfullscreenchange,*mozfullscreenerror,*mozpointerlockchange,*mozpointerlockerror,*paste,*pause,*play,*playing,*progress,*ratechange,*reset,*resize,*scroll,*search,*seeked,*seeking,*select,*selectstart,*show,*stalled,*submit,*suspend,*timeupdate,*toggle,*volumechange,*waiting,*webglcontextcreationerror,*webglcontextlost,*webglcontextrestored,*webkitfullscreenchange,*webkitfullscreenerror,*wheel,outerText,!spellcheck,%style,#tabIndex,title,!translate","media^[HTMLElement]|!autoplay,!controls,%crossOrigin,#currentTime,!defaultMuted,#defaultPlaybackRate,!disableRemotePlayback,!loop,!muted,*encrypted,#playbackRate,preload,src,%srcObject,#volume",":svg:^[HTMLElement]|*abort,*blur,*cancel,*canplay,*canplaythrough,*change,*click,*close,*contextmenu,*cuechange,*dblclick,*drag,*dragend,*dragenter,*dragleave,*dragover,*dragstart,*drop,*durationchange,*emptied,*ended,*error,*focus,*input,*invalid,*keydown,*keypress,*keyup,*load,*loadeddata,*loadedmetadata,*loadstart,*mousedown,*mouseenter,*mouseleave,*mousemove,*mouseout,*mouseover,*mouseup,*mousewheel,*pause,*play,*playing,*progress,*ratechange,*reset,*resize,*scroll,*seeked,*seeking,*select,*show,*stalled,*submit,*suspend,*timeupdate,*toggle,*volumechange,*waiting,%style,#tabIndex",":svg:graphics^:svg:|",":svg:animation^:svg:|*begin,*end,*repeat",":svg:geometry^:svg:|",":svg:componentTransferFunction^:svg:|",":svg:gradient^:svg:|",":svg:textContent^:svg:graphics|",":svg:textPositioning^:svg:textContent|","a^[HTMLElement]|charset,coords,download,hash,host,hostname,href,hreflang,name,password,pathname,ping,port,protocol,referrerPolicy,rel,rev,search,shape,target,text,type,username","area^[HTMLElement]|alt,coords,hash,host,hostname,href,!noHref,password,pathname,ping,port,protocol,referrerPolicy,search,shape,target,username","audio^media|","br^[HTMLElement]|clear","base^[HTMLElement]|href,target","body^[HTMLElement]|aLink,background,bgColor,link,*beforeunload,*blur,*error,*focus,*hashchange,*languagechange,*load,*message,*offline,*online,*pagehide,*pageshow,*popstate,*rejectionhandled,*resize,*scroll,*storage,*unhandledrejection,*unload,text,vLink","button^[HTMLElement]|!autofocus,!disabled,formAction,formEnctype,formMethod,!formNoValidate,formTarget,name,type,value","canvas^[HTMLElement]|#height,#width","content^[HTMLElement]|select","dl^[HTMLElement]|!compact","datalist^[HTMLElement]|","details^[HTMLElement]|!open","dialog^[HTMLElement]|!open,returnValue","dir^[HTMLElement]|!compact","div^[HTMLElement]|align","embed^[HTMLElement]|align,height,name,src,type,width","fieldset^[HTMLElement]|!disabled,name","font^[HTMLElement]|color,face,size","form^[HTMLElement]|acceptCharset,action,autocomplete,encoding,enctype,method,name,!noValidate,target","frame^[HTMLElement]|frameBorder,longDesc,marginHeight,marginWidth,name,!noResize,scrolling,src","frameset^[HTMLElement]|cols,*beforeunload,*blur,*error,*focus,*hashchange,*languagechange,*load,*message,*offline,*online,*pagehide,*pageshow,*popstate,*rejectionhandled,*resize,*scroll,*storage,*unhandledrejection,*unload,rows","hr^[HTMLElement]|align,color,!noShade,size,width","head^[HTMLElement]|","h1,h2,h3,h4,h5,h6^[HTMLElement]|align","html^[HTMLElement]|version","iframe^[HTMLElement]|align,!allowFullscreen,frameBorder,height,longDesc,marginHeight,marginWidth,name,referrerPolicy,%sandbox,scrolling,src,srcdoc,width","img^[HTMLElement]|align,alt,border,%crossOrigin,#height,#hspace,!isMap,longDesc,lowsrc,name,referrerPolicy,sizes,src,srcset,useMap,#vspace,#width","input^[HTMLElement]|accept,align,alt,autocapitalize,autocomplete,!autofocus,!checked,!defaultChecked,defaultValue,dirName,!disabled,%files,formAction,formEnctype,formMethod,!formNoValidate,formTarget,#height,!incremental,!indeterminate,max,#maxLength,min,#minLength,!multiple,name,pattern,placeholder,!readOnly,!required,selectionDirection,#selectionEnd,#selectionStart,#size,src,step,type,useMap,value,%valueAsDate,#valueAsNumber,#width","keygen^[HTMLElement]|!autofocus,challenge,!disabled,keytype,name","li^[HTMLElement]|type,#value","label^[HTMLElement]|htmlFor","legend^[HTMLElement]|align","link^[HTMLElement]|as,charset,%crossOrigin,!disabled,href,hreflang,integrity,media,rel,%relList,rev,%sizes,target,type","map^[HTMLElement]|name","marquee^[HTMLElement]|behavior,bgColor,direction,height,#hspace,#loop,#scrollAmount,#scrollDelay,!trueSpeed,#vspace,width","menu^[HTMLElement]|!compact","meta^[HTMLElement]|content,httpEquiv,name,scheme","meter^[HTMLElement]|#high,#low,#max,#min,#optimum,#value","ins,del^[HTMLElement]|cite,dateTime","ol^[HTMLElement]|!compact,!reversed,#start,type","object^[HTMLElement]|align,archive,border,code,codeBase,codeType,data,!declare,height,#hspace,name,standby,type,useMap,#vspace,width","optgroup^[HTMLElement]|!disabled,label","option^[HTMLElement]|!defaultSelected,!disabled,label,!selected,text,value","output^[HTMLElement]|defaultValue,%htmlFor,name,value","p^[HTMLElement]|align","param^[HTMLElement]|name,type,value,valueType","picture^[HTMLElement]|","pre^[HTMLElement]|#width","progress^[HTMLElement]|#max,#value","q,blockquote,cite^[HTMLElement]|","script^[HTMLElement]|!async,charset,%crossOrigin,!defer,event,htmlFor,integrity,src,text,type","select^[HTMLElement]|!autofocus,!disabled,#length,!multiple,name,!required,#selectedIndex,#size,value","shadow^[HTMLElement]|","source^[HTMLElement]|media,sizes,src,srcset,type","span^[HTMLElement]|","style^[HTMLElement]|!disabled,media,type","caption^[HTMLElement]|align","th,td^[HTMLElement]|abbr,align,axis,bgColor,ch,chOff,#colSpan,headers,height,!noWrap,#rowSpan,scope,vAlign,width","col,colgroup^[HTMLElement]|align,ch,chOff,#span,vAlign,width","table^[HTMLElement]|align,bgColor,border,%caption,cellPadding,cellSpacing,frame,rules,summary,%tFoot,%tHead,width","tr^[HTMLElement]|align,bgColor,ch,chOff,vAlign","tfoot,thead,tbody^[HTMLElement]|align,ch,chOff,vAlign","template^[HTMLElement]|","textarea^[HTMLElement]|autocapitalize,!autofocus,#cols,defaultValue,dirName,!disabled,#maxLength,#minLength,name,placeholder,!readOnly,!required,#rows,selectionDirection,#selectionEnd,#selectionStart,value,wrap","title^[HTMLElement]|text","track^[HTMLElement]|!default,kind,label,src,srclang","ul^[HTMLElement]|!compact,type","unknown^[HTMLElement]|","video^media|#height,poster,#width",":svg:a^:svg:graphics|",":svg:animate^:svg:animation|",":svg:animateMotion^:svg:animation|",":svg:animateTransform^:svg:animation|",":svg:circle^:svg:geometry|",":svg:clipPath^:svg:graphics|",":svg:cursor^:svg:|",":svg:defs^:svg:graphics|",":svg:desc^:svg:|",":svg:discard^:svg:|",":svg:ellipse^:svg:geometry|",":svg:feBlend^:svg:|",":svg:feColorMatrix^:svg:|",":svg:feComponentTransfer^:svg:|",":svg:feComposite^:svg:|",":svg:feConvolveMatrix^:svg:|",":svg:feDiffuseLighting^:svg:|",":svg:feDisplacementMap^:svg:|",":svg:feDistantLight^:svg:|",":svg:feDropShadow^:svg:|",":svg:feFlood^:svg:|",":svg:feFuncA^:svg:componentTransferFunction|",":svg:feFuncB^:svg:componentTransferFunction|",":svg:feFuncG^:svg:componentTransferFunction|",":svg:feFuncR^:svg:componentTransferFunction|",":svg:feGaussianBlur^:svg:|",":svg:feImage^:svg:|",":svg:feMerge^:svg:|",":svg:feMergeNode^:svg:|",":svg:feMorphology^:svg:|",":svg:feOffset^:svg:|",":svg:fePointLight^:svg:|",":svg:feSpecularLighting^:svg:|",":svg:feSpotLight^:svg:|",":svg:feTile^:svg:|",":svg:feTurbulence^:svg:|",":svg:filter^:svg:|",":svg:foreignObject^:svg:graphics|",":svg:g^:svg:graphics|",":svg:image^:svg:graphics|",":svg:line^:svg:geometry|",":svg:linearGradient^:svg:gradient|",":svg:mpath^:svg:|",":svg:marker^:svg:|",":svg:mask^:svg:|",":svg:metadata^:svg:|",":svg:path^:svg:geometry|",":svg:pattern^:svg:|",":svg:polygon^:svg:geometry|",":svg:polyline^:svg:geometry|",":svg:radialGradient^:svg:gradient|",":svg:rect^:svg:geometry|",":svg:svg^:svg:graphics|#currentScale,#zoomAndPan",":svg:script^:svg:|type",":svg:set^:svg:animation|",":svg:stop^:svg:|",":svg:style^:svg:|!disabled,media,title,type",":svg:switch^:svg:graphics|",":svg:symbol^:svg:|",":svg:tspan^:svg:textPositioning|",":svg:text^:svg:textPositioning|",":svg:textPath^:svg:textContent|",":svg:title^:svg:|",":svg:use^:svg:graphics|",":svg:view^:svg:|#zoomAndPan","data^[HTMLElement]|value","menuitem^[HTMLElement]|type,label,icon,!disabled,!checked,radiogroup,!default","summary^[HTMLElement]|","time^[HTMLElement]|dateTime"],Kp={ +}else s["["+t+"]"]=t});var l=r[t].filter(function(t){return t&&t instanceof e.HostListener});l.forEach(function(e){var r=e.args||[];s["("+e.eventName+")"]=t+"("+r.join(",")+")"});var p=Qe(r[t],function(t){return t instanceof e.Query});p&&(a[t]=p)}),this._merge(t,o,i,s,a,n)},t.prototype._extractPublicName=function(t){return p(t,[null,t])[1].trim()},t.prototype._dedupeBindings=function(t){for(var e=new Set,r=[],n=t.length-1;n>=0;n--){var o=t[n],i=this._extractPublicName(o);e.has(i)||(e.add(i),r.push(o))}return r.reverse()},t.prototype._merge=function(t,r,n,o,i){var s=this._dedupeBindings(t.inputs?t.inputs.concat(r):r),a=this._dedupeBindings(t.outputs?t.outputs.concat(n):n),u=t.host?sl({},t.host,o):o,c=t.queries?sl({},t.queries,i):i;return t instanceof e.Component?new e.Component({selector:t.selector,inputs:s,outputs:a,host:u,exportAs:t.exportAs,moduleId:t.moduleId,queries:c,changeDetection:t.changeDetection,providers:t.providers,viewProviders:t.viewProviders,entryComponents:t.entryComponents,template:t.template,templateUrl:t.templateUrl,styles:t.styles,styleUrls:t.styleUrls,encapsulation:t.encapsulation,animations:t.animations,interpolation:t.interpolation}):new e.Directive({selector:t.selector,inputs:s,outputs:a,host:u,exportAs:t.exportAs,queries:c,providers:t.providers})},t}();al.decorators=[{type:z}],al.ctorParameters=function(){return[{type:e.ɵReflectorReader}]};var ul=/(\.ts|\.d\.ts|\.js|\.jsx|\.tsx)$/,cl=/\.ngfactory\./,ll=function(){function t(t){void 0===t&&(t=e.ɵreflector),this._reflector=t}return t.prototype.isNgModule=function(t){return this._reflector.annotations(t).some(nr)},t.prototype.resolve=function(t,r){void 0===r&&(r=!0);var n=Qe(this._reflector.annotations(t),nr);if(n)return n;if(r)throw new Error("No NgModule metadata found for '"+e.ɵstringify(t)+"'.");return null},t}();ll.decorators=[{type:z}],ll.ctorParameters=function(){return[{type:e.ɵReflectorReader}]};var pl=function(){function t(t){void 0===t&&(t=e.ɵreflector),this._reflector=t}return t.prototype.isPipe=function(t){var r=this._reflector.annotations(e.resolveForwardRef(t));return r&&r.some(or)},t.prototype.resolve=function(t,r){void 0===r&&(r=!0);var n=this._reflector.annotations(e.resolveForwardRef(t));if(n){var o=Qe(n,or);if(o)return o}if(r)throw new Error("No Pipe decorator found on "+e.ɵstringify(t));return null},t}();pl.decorators=[{type:z}],pl.ctorParameters=function(){return[{type:e.ɵReflectorReader}]};var hl=function(){function t(){}return t.prototype.isLibraryFile=function(){return!1},t.prototype.getLibraryFileName=function(){return null},t.prototype.resolveSummary=function(){return null},t.prototype.getSymbolsOf=function(){return[]},t.prototype.getImportAs=function(t){return t},t}();hl.decorators=[{type:z}],hl.ctorParameters=function(){return[]};var fl=new e.InjectionToken("ErrorCollector"),dl=function(){function t(t,r,n,o,i,s,a,u,c,l,p){void 0===l&&(l=e.ɵreflector),this._config=t,this._ngModuleResolver=r,this._directiveResolver=n,this._pipeResolver=o,this._summaryResolver=i,this._schemaRegistry=s,this._directiveNormalizer=a,this._console=u,this._staticSymbolCache=c,this._reflector=l,this._errorCollector=p,this._nonNormalizedDirectiveCache=new Map,this._directiveCache=new Map,this._summaryCache=new Map,this._pipeCache=new Map,this._ngModuleCache=new Map,this._ngModuleOfTypes=new Map}return t.prototype.clearCacheFor=function(t){var e=this._directiveCache.get(t);this._directiveCache["delete"](t),this._nonNormalizedDirectiveCache["delete"](t),this._summaryCache["delete"](t),this._pipeCache["delete"](t),this._ngModuleOfTypes["delete"](t),this._ngModuleCache.clear(),e&&this._directiveNormalizer.clearCacheFor(e)},t.prototype.clearCache=function(){this._directiveCache.clear(),this._nonNormalizedDirectiveCache.clear(),this._summaryCache.clear(),this._pipeCache.clear(),this._ngModuleCache.clear(),this._ngModuleOfTypes.clear(),this._directiveNormalizer.clearCache()},t.prototype._createProxyClass=function(t,r){var n=null,o=function(){if(!n)throw new Error("Illegal state: Class "+r+" for type "+e.ɵstringify(t)+" is not compiled yet!");return n.apply(this,arguments)};return o.setDelegate=function(t){n=t,o.prototype=t.prototype},o.overriddenName=r,o},t.prototype.getGeneratedClass=function(t,e){return t instanceof mo?this._staticSymbolCache.get(Xe(t.filePath),e):this._createProxyClass(t,e)},t.prototype.getComponentViewClass=function(t){return this.getGeneratedClass(t,x(t,0))},t.prototype.getHostComponentViewClass=function(t){return this.getGeneratedClass(t,P(t))},t.prototype.getHostComponentType=function(t){var e=E({reference:t})+"_Host";if(t instanceof mo)return this._staticSymbolCache.get(t.filePath,e);var r=function(){};return r.overriddenName=e,r},t.prototype.getRendererType=function(t){return t instanceof mo?this._staticSymbolCache.get(Xe(t.filePath),T(t)):{}},t.prototype.getComponentFactory=function(t,r,n,o){if(r instanceof mo)return this._staticSymbolCache.get(Xe(r.filePath),O(r));var i=this.getHostComponentViewClass(r);return e.ɵccf(t,r,i,n,o,[])},t.prototype.initComponentFactory=function(t,e){t instanceof mo||(r=t.ngContentSelectors).push.apply(r,e);var r},t.prototype._loadSummary=function(t,e){var r=this._summaryCache.get(t);if(!r){var n=this._summaryResolver.resolveSummary(t);r=n?n.type:null,this._summaryCache.set(t,r||null)}return r&&r.summaryKind===e?r:null},t.prototype._loadDirectiveMetadata=function(t,r,n){var o=this;if(this._directiveCache.has(r))return null;r=e.resolveForwardRef(r);var i=this.getNonNormalizedDirectiveMetadata(r),s=i.annotation,a=i.metadata,u=function(t){var e=new Qo({isHost:!1,type:a.type,isComponent:a.isComponent,selector:a.selector,exportAs:a.exportAs,changeDetection:a.changeDetection,inputs:a.inputs,outputs:a.outputs,hostListeners:a.hostListeners,hostProperties:a.hostProperties,hostAttributes:a.hostAttributes,providers:a.providers,viewProviders:a.viewProviders,queries:a.queries,viewQueries:a.viewQueries,entryComponents:a.entryComponents,componentViewType:a.componentViewType,rendererType:a.rendererType,componentFactory:a.componentFactory,template:t});return t&&o.initComponentFactory(a.componentFactory,t.ngContentSelectors),o._directiveCache.set(r,e),o._summaryCache.set(r,e.toSummary()),e};if(a.isComponent){var c=a.template,l=this._directiveNormalizer.normalizeTemplate({ngModuleType:t,componentType:r,moduleUrl:cr(this._reflector,r,s),encapsulation:c.encapsulation,template:c.template,templateUrl:c.templateUrl,styles:c.styles,styleUrls:c.styleUrls,animations:c.animations,interpolation:c.interpolation});return l.syncResult?(u(l.syncResult),null):n?(this._reportError(hr(r),r),null):l.asyncResult.then(u)}return u(null),null},t.prototype.getNonNormalizedDirectiveMetadata=function(t){var r=this;if(t=e.resolveForwardRef(t),!t)return null;var n=this._nonNormalizedDirectiveCache.get(t);if(n)return n;var o=this._directiveResolver.resolve(t,!1);if(!o)return null;var i=void 0;if(o instanceof e.Component){G("styles",o.styles),G("styleUrls",o.styleUrls),W("interpolation",o.interpolation);var s=o.animations;i=new Ko({encapsulation:y(o.encapsulation),template:y(o.template),templateUrl:y(o.templateUrl),styles:o.styles||[],styleUrls:o.styleUrls||[],animations:s||[],interpolation:y(o.interpolation),isInline:!!o.template,externalStylesheets:[],ngContentSelectors:[]})}var a=null,u=[],c=[],l=o.selector;o instanceof e.Component?(a=o.changeDetection,o.viewProviders&&(u=this._getProvidersMetadata(o.viewProviders,c,'viewProviders for "'+pr(t)+'"',[],t)),o.entryComponents&&(c=ar(o.entryComponents).map(function(t){return r._getEntryComponentMetadata(t)}).concat(c)),l||(l=this._schemaRegistry.getDefaultComponentElementName())):l||(this._reportError(v("Directive "+pr(t)+" has no selector, please add it!"),t),l="error");var p=[];null!=o.providers&&(p=this._getProvidersMetadata(o.providers,c,'providers for "'+pr(t)+'"',[],t));var h=[],f=[];null!=o.queries&&(h=this._getQueriesMetadata(o.queries,!1,t),f=this._getQueriesMetadata(o.queries,!0,t));var d=Qo.create({isHost:!1,selector:l,exportAs:y(o.exportAs),isComponent:!!i,type:this._getTypeMetadata(t),template:i,changeDetection:a,inputs:o.inputs||[],outputs:o.outputs||[],host:o.host||{},providers:p||[],viewProviders:u||[],queries:h||[],viewQueries:f||[],entryComponents:c,componentViewType:i?this.getComponentViewClass(t):null,rendererType:i?this.getRendererType(t):null,componentFactory:null});return i&&(d.componentFactory=this.getComponentFactory(l,t,d.inputs,d.outputs)),n={metadata:d,annotation:o},this._nonNormalizedDirectiveCache.set(t,n),n},t.prototype.getDirectiveMetadata=function(t){var e=this._directiveCache.get(t);return e||this._reportError(v("Illegal state: getDirectiveMetadata can only be called after loadNgModuleDirectiveAndPipeMetadata for a module that declares it. Directive "+pr(t)+"."),t),e},t.prototype.getDirectiveSummary=function(t){var e=this._loadSummary(t,Wo.Directive);return e||this._reportError(v("Illegal state: Could not load the summary for directive "+pr(t)+"."),t),e},t.prototype.isDirective=function(t){return this._directiveResolver.isDirective(t)},t.prototype.isPipe=function(t){return this._pipeResolver.isPipe(t)},t.prototype.getNgModuleSummary=function(t){var e=this._loadSummary(t,Wo.NgModule);if(!e){var r=this.getNgModuleMetadata(t,!1);e=r?r.toSummary():null,e&&this._summaryCache.set(t,e)}return e},t.prototype.loadNgModuleDirectiveAndPipeMetadata=function(t,e,r){var n=this;void 0===r&&(r=!0);var o=this.getNgModuleMetadata(t,r),i=[];return o&&(o.declaredDirectives.forEach(function(r){var o=n._loadDirectiveMetadata(t,r.reference,e);o&&i.push(o)}),o.declaredPipes.forEach(function(t){return n._loadPipeMetadata(t.reference)})),Promise.all(i)},t.prototype.getNgModuleMetadata=function(t,r){var n=this;void 0===r&&(r=!0),t=e.resolveForwardRef(t);var o=this._ngModuleCache.get(t);if(o)return o;var i=this._ngModuleResolver.resolve(t,r);if(!i)return null;var s=[],a=[],u=[],c=[],l=[],p=[],h=[],f=[],d=[];i.imports&&ar(i.imports).forEach(function(e){var r=void 0;if(ur(e))r=e;else if(e&&e.ngModule){var o=e;r=o.ngModule,o.providers&&p.push.apply(p,n._getProvidersMetadata(o.providers,h,"provider for the NgModule '"+pr(r)+"'",[],e))}if(!r)return void n._reportError(v("Unexpected value '"+pr(e)+"' imported by the module '"+pr(t)+"'"),t);if(!n._checkSelfImport(t,r)){var i=n.getNgModuleSummary(r);return i?void c.push(i):void n._reportError(v("Unexpected "+n._getTypeDescriptor(e)+" '"+pr(e)+"' imported by the module '"+pr(t)+"'. Please add a @NgModule annotation."),t)}}),i.exports&&ar(i.exports).forEach(function(e){if(!ur(e))return void n._reportError(v("Unexpected value '"+pr(e)+"' exported by the module '"+pr(t)+"'"),t);var r=n.getNgModuleSummary(e);r?l.push(r):a.push(n._getIdentifierMetadata(e))});var m=this._getTransitiveNgModuleMetadata(c,l);i.declarations&&ar(i.declarations).forEach(function(e){if(!ur(e))return void n._reportError(v("Unexpected value '"+pr(e)+"' declared by the module '"+pr(t)+"'"),t);var r=n._getIdentifierMetadata(e);if(n._directiveResolver.isDirective(e))m.addDirective(r),s.push(r),n._addTypeToModule(e,t);else{if(!n._pipeResolver.isPipe(e))return void n._reportError(v("Unexpected "+n._getTypeDescriptor(e)+" '"+pr(e)+"' declared by the module '"+pr(t)+"'. Please add a @Pipe/@Directive/@Component annotation."),t);m.addPipe(r),m.pipes.push(r),u.push(r),n._addTypeToModule(e,t)}});var y=[],g=[];return a.forEach(function(e){if(m.directivesSet.has(e.reference))y.push(e),m.addExportedDirective(e);else{if(!m.pipesSet.has(e.reference))return void n._reportError(v("Can't export "+n._getTypeDescriptor(e.reference)+" "+pr(e.reference)+" from "+pr(t)+" as it was neither declared nor imported!"),t);g.push(e),m.addExportedPipe(e)}}),i.providers&&p.push.apply(p,this._getProvidersMetadata(i.providers,h,"provider for the NgModule '"+pr(t)+"'",[],t)),i.entryComponents&&h.push.apply(h,ar(i.entryComponents).map(function(t){return n._getEntryComponentMetadata(t)})),i.bootstrap&&ar(i.bootstrap).forEach(function(e){return ur(e)?void f.push(n._getIdentifierMetadata(e)):void n._reportError(v("Unexpected value '"+pr(e)+"' used in the bootstrap property of module '"+pr(t)+"'"),t)}),h.push.apply(h,f.map(function(t){return n._getEntryComponentMetadata(t.reference)})),i.schemas&&d.push.apply(d,ar(i.schemas)),o=new Zo({type:this._getTypeMetadata(t),providers:p,entryComponents:h,bootstrapComponents:f,schemas:d,declaredDirectives:s,exportedDirectives:y,declaredPipes:u,exportedPipes:g,importedModules:c,exportedModules:l,transitiveModule:m,id:i.id||null}),h.forEach(function(t){return m.addEntryComponent(t)}),p.forEach(function(t){return m.addProvider(t,o.type)}),m.addModule(o.type),this._ngModuleCache.set(t,o),o},t.prototype._checkSelfImport=function(t,e){return t===e?(this._reportError(v("'"+pr(t)+"' module can't import itself"),t),!0):!1},t.prototype._getTypeDescriptor=function(t){return this._directiveResolver.isDirective(t)?"directive":this._pipeResolver.isPipe(t)?"pipe":this._ngModuleResolver.isNgModule(t)?"module":t.provide?"provider":"value"},t.prototype._addTypeToModule=function(t,e){var r=this._ngModuleOfTypes.get(t);return r&&r!==e?void this._reportError(v("Type "+pr(t)+" is part of the declarations of 2 modules: "+pr(r)+" and "+pr(e)+"! "+("Please consider moving "+pr(t)+" to a higher module that imports "+pr(r)+" and "+pr(e)+". ")+("You can also create a new NgModule that exports and includes "+pr(t)+" then import that NgModule in "+pr(r)+" and "+pr(e)+".")),e):void this._ngModuleOfTypes.set(t,e)},t.prototype._getTransitiveNgModuleMetadata=function(t,e){var r=new Yo,n=new Map;return t.concat(e).forEach(function(t){t.modules.forEach(function(t){return r.addModule(t)}),t.entryComponents.forEach(function(t){return r.addEntryComponent(t)});var e=new Set;t.providers.forEach(function(t){var o=R(t.provider.token),i=n.get(o);i||(i=new Set,n.set(o,i));var s=t.module.reference;(e.has(o)||!i.has(s))&&(i.add(s),e.add(o),r.addProvider(t.provider,t.module))})}),e.forEach(function(t){t.exportedDirectives.forEach(function(t){return r.addExportedDirective(t)}),t.exportedPipes.forEach(function(t){return r.addExportedPipe(t)})}),t.forEach(function(t){t.exportedDirectives.forEach(function(t){return r.addDirective(t)}),t.exportedPipes.forEach(function(t){return r.addPipe(t)})}),r},t.prototype._getIdentifierMetadata=function(t){return t=e.resolveForwardRef(t),{reference:t}},t.prototype.isInjectable=function(t){var r=this._reflector.annotations(t);return r.some(function(t){return t.constructor===e.Injectable})},t.prototype.getInjectableSummary=function(t){return{summaryKind:Wo.Injectable,type:this._getTypeMetadata(t,null,!1)}},t.prototype._getInjectableMetadata=function(t,e){void 0===e&&(e=null);var r=this._loadSummary(t,Wo.Injectable);return r?r.type:this._getTypeMetadata(t,e)},t.prototype._getTypeMetadata=function(t,r,n){void 0===r&&(r=null),void 0===n&&(n=!0);var o=this._getIdentifierMetadata(t);return{reference:o.reference,diDeps:this._getDependenciesMetadata(o.reference,r,n),lifecycleHooks:e.ɵLIFECYCLE_HOOKS_VALUES.filter(function(t){return er(t,o.reference)})}},t.prototype._getFactoryMetadata=function(t,r){return void 0===r&&(r=null),t=e.resolveForwardRef(t),{reference:t,diDeps:this._getDependenciesMetadata(t,r)}},t.prototype.getPipeMetadata=function(t){var e=this._pipeCache.get(t);return e||this._reportError(v("Illegal state: getPipeMetadata can only be called after loadNgModuleDirectiveAndPipeMetadata for a module that declares it. Pipe "+pr(t)+"."),t),e||null},t.prototype.getPipeSummary=function(t){var e=this._loadSummary(t,Wo.Pipe);return e||this._reportError(v("Illegal state: Could not load the summary for pipe "+pr(t)+"."),t),e},t.prototype.getOrLoadPipeMetadata=function(t){var e=this._pipeCache.get(t);return e||(e=this._loadPipeMetadata(t)),e},t.prototype._loadPipeMetadata=function(t){t=e.resolveForwardRef(t);var r=this._pipeResolver.resolve(t),n=new Xo({type:this._getTypeMetadata(t),name:r.name,pure:!!r.pure});return this._pipeCache.set(t,n),this._summaryCache.set(t,n.toSummary()),n},t.prototype._getDependenciesMetadata=function(t,r,n){var o=this;void 0===n&&(n=!0);var i=!1,s=r||this._reflector.parameters(t)||[],a=s.map(function(t){var r=!1,n=!1,s=!1,a=!1,u=!1,c=null;return Array.isArray(t)?t.forEach(function(t){t instanceof e.Host?n=!0:t instanceof e.Self?s=!0:t instanceof e.SkipSelf?a=!0:t instanceof e.Optional?u=!0:t instanceof e.Attribute?(r=!0,c=t.attributeName):t instanceof e.Inject?c=t.token:t instanceof e.InjectionToken?c=t:ur(t)&&null==c&&(c=t)}):c=t,null==c?(i=!0,null):{isAttribute:r,isHost:n,isSelf:s,isSkipSelf:a,isOptional:u,token:o._getTokenMetadata(c)}});if(i){var u=a.map(function(t){return t?pr(t.token):"?"}).join(", "),c="Can't resolve all parameters for "+pr(t)+": ("+u+").";n?this._reportError(v(c),t):this._console.warn("Warning: "+c+" This will become an error in Angular v5.x")}return a},t.prototype._getTokenMetadata=function(t){t=e.resolveForwardRef(t);var r;return r="string"==typeof t?{value:t}:{identifier:{reference:t}}},t.prototype._getProvidersMetadata=function(t,r,n,o,i){var s=this;return void 0===o&&(o=[]),t.forEach(function(a,u){if(Array.isArray(a))s._getProvidersMetadata(a,r,n,o);else{a=e.resolveForwardRef(a);var c=void 0;if(a&&"object"==typeof a&&a.hasOwnProperty("provide"))s._validateProvider(a),c=new Jo(a.provide,a);else{if(!ur(a)){if(void 0===a)return void s._reportError(v("Encountered undefined provider! Usually this means you have a circular dependencies (might be caused by using 'barrel' index.ts files."));var l=t.reduce(function(t,e,r){return u>r?t.push(""+pr(e)):r==u?t.push("?"+pr(e)+"?"):r==u+1&&t.push("..."),t},[]).join(", ");return void s._reportError(v("Invalid "+(n?n:"provider")+" - only instances of Provider and Type are allowed, got: ["+l+"]"),i)}c=new Jo(a,{useClass:a})}c.token===fe(zu.ANALYZE_FOR_ENTRY_COMPONENTS)?r.push.apply(r,s._getEntryComponentsFromProvider(c,i)):o.push(s.getProviderMetadata(c))}}),o},t.prototype._validateProvider=function(t){t.hasOwnProperty("useClass")&&null==t.useClass&&this._reportError(v("Invalid provider for "+pr(t.provide)+". useClass cannot be "+t.useClass+".\n Usually it happens when:\n 1. There's a circular dependency (might be caused by using index.ts (barrel) files).\n 2. Class was used before it was declared. Use forwardRef in this case."))},t.prototype._getEntryComponentsFromProvider=function(t,e){var r=this,n=[],o=[];return t.useFactory||t.useExisting||t.useClass?(this._reportError(v("The ANALYZE_FOR_ENTRY_COMPONENTS token only supports useValue!"),e),[]):t.multi?(lr(t.useValue,o),o.forEach(function(t){var e=r._getEntryComponentMetadata(t.reference,!1);e&&n.push(e)}),n):(this._reportError(v("The ANALYZE_FOR_ENTRY_COMPONENTS token only supports 'multi = true'!"),e),[])},t.prototype._getEntryComponentMetadata=function(t,e){void 0===e&&(e=!0);var r=this.getNonNormalizedDirectiveMetadata(t);if(r&&r.metadata.isComponent)return{componentType:t,componentFactory:r.metadata.componentFactory};var n=this._loadSummary(t,Wo.Directive);if(n&&n.isComponent)return{componentType:t,componentFactory:n.componentFactory};if(e)throw v(t.name+" cannot be used as an entry component.");return null},t.prototype.getProviderMetadata=function(t){var e=void 0,r=null,n=null,o=this._getTokenMetadata(t.token);return t.useClass?(r=this._getInjectableMetadata(t.useClass,t.dependencies),e=r.diDeps,t.token===t.useClass&&(o={identifier:r})):t.useFactory&&(n=this._getFactoryMetadata(t.useFactory,t.dependencies),e=n.diDeps),{token:o,useClass:r,useValue:t.useValue,useFactory:n,useExisting:t.useExisting?this._getTokenMetadata(t.useExisting):void 0,deps:e,multi:t.multi}},t.prototype._getQueriesMetadata=function(t,e,r){var n=this,o=[];return Object.keys(t).forEach(function(i){var s=t[i];s.isViewQuery===e&&o.push(n._getQueryMetadata(s,i,r))}),o},t.prototype._queryVarBindings=function(t){return t.split(/\s*,\s*/)},t.prototype._getQueryMetadata=function(t,e,r){var n,o=this;return"string"==typeof t.selector?n=this._queryVarBindings(t.selector).map(function(t){return o._getTokenMetadata(t)}):t.selector?n=[this._getTokenMetadata(t.selector)]:(this._reportError(v("Can't construct a query for the property \""+e+'" of "'+pr(r)+"\" since the query selector wasn't defined."),r),n=[]),{selectors:n,first:t.first,descendants:t.descendants,propertyName:e,read:t.read?this._getTokenMetadata(t.read):null}},t.prototype._reportError=function(t,e,r){if(!this._errorCollector)throw t;this._errorCollector(t,e),r&&this._errorCollector(t,r)},t}();dl.decorators=[{type:z}],dl.ctorParameters=function(){return[{type:ti},{type:ll},{type:al},{type:pl},{type:hl},{type:Ju},{type:ol},{type:e.ɵConsole},{type:yo,decorators:[{type:e.Optional}]},{type:e.ɵReflectorReader},{type:void 0,decorators:[{type:e.Optional},{type:e.Inject,args:[fl]}]}]};var ml=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Zn(e,t),e.prototype.visitOther=function(t,e){e.push({reference:t})},e}(Oo),yl={};yl.Const=0,yl[yl.Const]="Const";var vl=function(){function t(t){void 0===t&&(t=null),this.modifiers=t,t||(this.modifiers=[])}return t.prototype.visitType=function(){},t.prototype.hasModifier=function(t){return-1!==this.modifiers.indexOf(t)},t}(),gl={};gl.Dynamic=0,gl.Bool=1,gl.String=2,gl.Int=3,gl.Number=4,gl.Function=5,gl.Inferred=6,gl[gl.Dynamic]="Dynamic",gl[gl.Bool]="Bool",gl[gl.String]="String",gl[gl.Int]="Int",gl[gl.Number]="Number",gl[gl.Function]="Function",gl[gl.Inferred]="Inferred";var _l=function(t){function e(e,r){void 0===r&&(r=null);var n=t.call(this,r)||this;return n.name=e,n}return Zn(e,t),e.prototype.visitType=function(t,e){return t.visitBuiltintType(this,e)},e}(vl),bl=function(t){function e(e,r){void 0===r&&(r=null);var n=t.call(this,r)||this;return n.value=e,n}return Zn(e,t),e.prototype.visitType=function(t,e){return t.visitExpressionType(this,e)},e}(vl),wl=function(t){function e(e,r){void 0===r&&(r=null);var n=t.call(this,r)||this;return n.of=e,n}return Zn(e,t),e.prototype.visitType=function(t,e){return t.visitArrayType(this,e)},e}(vl),Cl=function(t){function e(e,r){void 0===r&&(r=null);var n=t.call(this,r)||this;return n.valueType=e||null,n}return Zn(e,t),e.prototype.visitType=function(t,e){return t.visitMapType(this,e)},e}(vl),El=new _l(gl.Dynamic),Sl=new _l(gl.Inferred),xl=new _l(gl.Bool),Tl=(new _l(gl.Int),new _l(gl.Number),new _l(gl.String),new _l(gl.Function),{});Tl.Equals=0,Tl.NotEquals=1,Tl.Identical=2,Tl.NotIdentical=3,Tl.Minus=4,Tl.Plus=5,Tl.Divide=6,Tl.Multiply=7,Tl.Modulo=8,Tl.And=9,Tl.Or=10,Tl.Lower=11,Tl.LowerEquals=12,Tl.Bigger=13,Tl.BiggerEquals=14,Tl[Tl.Equals]="Equals",Tl[Tl.NotEquals]="NotEquals",Tl[Tl.Identical]="Identical",Tl[Tl.NotIdentical]="NotIdentical",Tl[Tl.Minus]="Minus",Tl[Tl.Plus]="Plus",Tl[Tl.Divide]="Divide",Tl[Tl.Multiply]="Multiply",Tl[Tl.Modulo]="Modulo",Tl[Tl.And]="And",Tl[Tl.Or]="Or",Tl[Tl.Lower]="Lower",Tl[Tl.LowerEquals]="LowerEquals",Tl[Tl.Bigger]="Bigger",Tl[Tl.BiggerEquals]="BiggerEquals";var Pl=function(){function t(t,e){this.type=t||null,this.sourceSpan=e||null}return t.prototype.visitExpression=function(){},t.prototype.prop=function(t,e){return new Gl(this,t,null,e)},t.prototype.key=function(t,e,r){return new Wl(this,t,e,r)},t.prototype.callMethod=function(t,e,r){return new Nl(this,t,e,null,r)},t.prototype.callFn=function(t,e){return new Dl(this,t,null,e)},t.prototype.instantiate=function(t,e,r){return new jl(this,t,e,r)},t.prototype.conditional=function(t,e,r){return void 0===e&&(e=null),new Fl(this,t,e,null,r)},t.prototype.equals=function(t,e){return new zl(Tl.Equals,this,t,null,e)},t.prototype.notEquals=function(t,e){return new zl(Tl.NotEquals,this,t,null,e)},t.prototype.identical=function(t,e){return new zl(Tl.Identical,this,t,null,e)},t.prototype.notIdentical=function(t,e){return new zl(Tl.NotIdentical,this,t,null,e)},t.prototype.minus=function(t,e){return new zl(Tl.Minus,this,t,null,e)},t.prototype.plus=function(t,e){return new zl(Tl.Plus,this,t,null,e)},t.prototype.divide=function(t,e){return new zl(Tl.Divide,this,t,null,e)},t.prototype.multiply=function(t,e){return new zl(Tl.Multiply,this,t,null,e)},t.prototype.modulo=function(t,e){return new zl(Tl.Modulo,this,t,null,e)},t.prototype.and=function(t,e){return new zl(Tl.And,this,t,null,e)},t.prototype.or=function(t,e){return new zl(Tl.Or,this,t,null,e)},t.prototype.lower=function(t,e){return new zl(Tl.Lower,this,t,null,e)},t.prototype.lowerEquals=function(t,e){return new zl(Tl.LowerEquals,this,t,null,e)},t.prototype.bigger=function(t,e){return new zl(Tl.Bigger,this,t,null,e)},t.prototype.biggerEquals=function(t,e){return new zl(Tl.BiggerEquals,this,t,null,e)},t.prototype.isBlank=function(t){return this.equals(tp,t)},t.prototype.cast=function(t,e){return new Bl(this,t,e)},t.prototype.toStmt=function(){return new ip(this,null)},t}(),Al={};Al.This=0,Al.Super=1,Al.CatchError=2,Al.CatchStack=3,Al[Al.This]="This",Al[Al.Super]="Super",Al[Al.CatchError]="CatchError",Al[Al.CatchStack]="CatchStack";var Ol=function(t){function e(e,r,n){var o=t.call(this,r,n)||this;return"string"==typeof e?(o.name=e,o.builtin=null):(o.name=null,o.builtin=e),o}return Zn(e,t),e.prototype.visitExpression=function(t,e){return t.visitReadVarExpr(this,e)},e.prototype.set=function(t){if(!this.name)throw new Error("Built in variable "+this.builtin+" can not be assigned to.");return new Ml(this.name,t,null,this.sourceSpan)},e}(Pl),Ml=function(t){function e(e,r,n,o){var i=t.call(this,n||r.type,o)||this;return i.name=e,i.value=r,i}return Zn(e,t),e.prototype.visitExpression=function(t,e){return t.visitWriteVarExpr(this,e)},e.prototype.toDeclStmt=function(t,e){return new np(this.name,this.value,t,e,this.sourceSpan)},e}(Pl),Rl=function(t){function e(e,r,n,o,i){var s=t.call(this,o||n.type,i)||this;return s.receiver=e,s.index=r,s.value=n,s}return Zn(e,t),e.prototype.visitExpression=function(t,e){return t.visitWriteKeyExpr(this,e)},e}(Pl),kl=function(t){function e(e,r,n,o,i){var s=t.call(this,o||n.type,i)||this;return s.receiver=e,s.name=r,s.value=n,s}return Zn(e,t),e.prototype.visitExpression=function(t,e){return t.visitWritePropExpr(this,e)},e}(Pl),Il={};Il.ConcatArray=0,Il.SubscribeObservable=1,Il.Bind=2,Il[Il.ConcatArray]="ConcatArray",Il[Il.SubscribeObservable]="SubscribeObservable",Il[Il.Bind]="Bind";var Nl=function(t){function e(e,r,n,o,i){var s=t.call(this,o,i)||this;return s.receiver=e,s.args=n,"string"==typeof r?(s.name=r,s.builtin=null):(s.name=null,s.builtin=r),s}return Zn(e,t),e.prototype.visitExpression=function(t,e){return t.visitInvokeMethodExpr(this,e)},e}(Pl),Dl=function(t){function e(e,r,n,o){var i=t.call(this,n,o)||this;return i.fn=e,i.args=r,i}return Zn(e,t),e.prototype.visitExpression=function(t,e){return t.visitInvokeFunctionExpr(this,e)},e}(Pl),jl=function(t){function e(e,r,n,o){var i=t.call(this,n,o)||this;return i.classExpr=e,i.args=r,i}return Zn(e,t),e.prototype.visitExpression=function(t,e){return t.visitInstantiateExpr(this,e)},e}(Pl),Ll=function(t){function e(e,r,n){var o=t.call(this,r,n)||this;return o.value=e,o}return Zn(e,t),e.prototype.visitExpression=function(t,e){return t.visitLiteralExpr(this,e)},e}(Pl),Vl=function(t){function e(e,r,n,o){void 0===n&&(n=null);var i=t.call(this,r,o)||this;return i.value=e,i.typeParams=n,i}return Zn(e,t),e.prototype.visitExpression=function(t,e){return t.visitExternalExpr(this,e)},e}(Pl),Fl=function(t){function e(e,r,n,o,i){void 0===n&&(n=null);var s=t.call(this,o||r.type,i)||this;return s.condition=e,s.falseCase=n,s.trueCase=r,s}return Zn(e,t),e.prototype.visitExpression=function(t,e){return t.visitConditionalExpr(this,e)},e}(Pl),Ul=function(t){function e(e,r){var n=t.call(this,xl,r)||this;return n.condition=e,n}return Zn(e,t),e.prototype.visitExpression=function(t,e){return t.visitNotExpr(this,e)},e}(Pl),Bl=function(t){function e(e,r,n){var o=t.call(this,r,n)||this;return o.value=e,o}return Zn(e,t),e.prototype.visitExpression=function(t,e){return t.visitCastExpr(this,e)},e}(Pl),Hl=function(){function t(t,e){void 0===e&&(e=null),this.name=t,this.type=e}return t}(),ql=function(t){function e(e,r,n,o){var i=t.call(this,n,o)||this;return i.params=e,i.statements=r,i}return Zn(e,t),e.prototype.visitExpression=function(t,e){return t.visitFunctionExpr(this,e)},e.prototype.toDeclStmt=function(t,e){return void 0===e&&(e=null),new op(t,this.params,this.statements,this.type,e,this.sourceSpan)},e}(Pl),zl=function(t){function e(e,r,n,o,i){var s=t.call(this,o||r.type,i)||this;return s.operator=e,s.rhs=n,s.lhs=r,s}return Zn(e,t),e.prototype.visitExpression=function(t,e){return t.visitBinaryOperatorExpr(this,e)},e}(Pl),Gl=function(t){function e(e,r,n,o){var i=t.call(this,n,o)||this;return i.receiver=e,i.name=r,i}return Zn(e,t),e.prototype.visitExpression=function(t,e){return t.visitReadPropExpr(this,e)},e.prototype.set=function(t){return new kl(this.receiver,this.name,t,null,this.sourceSpan)},e}(Pl),Wl=function(t){function e(e,r,n,o){var i=t.call(this,n,o)||this;return i.receiver=e,i.index=r,i}return Zn(e,t),e.prototype.visitExpression=function(t,e){return t.visitReadKeyExpr(this,e)},e.prototype.set=function(t){return new Rl(this.receiver,this.index,t,null,this.sourceSpan)},e}(Pl),$l=function(t){function e(e,r,n){var o=t.call(this,r,n)||this;return o.entries=e,o}return Zn(e,t),e.prototype.visitExpression=function(t,e){return t.visitLiteralArrayExpr(this,e)},e}(Pl),Kl=function(){function t(t,e,r){void 0===r&&(r=!1),this.key=t,this.value=e,this.quoted=r}return t}(),Ql=function(t){function e(e,r,n){var o=t.call(this,r,n)||this;return o.entries=e,o.valueType=null,r&&(o.valueType=r.valueType),o}return Zn(e,t),e.prototype.visitExpression=function(t,e){return t.visitLiteralMapExpr(this,e)},e}(Pl),Xl=function(t){function e(e,r){var n=t.call(this,e[e.length-1].type,r)||this;return n.parts=e,n}return Zn(e,t),e.prototype.visitExpression=function(t,e){return t.visitCommaExpr(this,e)},e}(Pl),Zl=new Ol(Al.This,null,null),Yl=new Ol(Al.Super,null,null),Jl=(new Ol(Al.CatchError,null,null),new Ol(Al.CatchStack,null,null),new Ll(null,null,null)),tp=new Ll(null,Sl,null),ep={};ep.Final=0,ep.Private=1,ep[ep.Final]="Final",ep[ep.Private]="Private";var rp=function(){function t(t,e){this.modifiers=t||[],this.sourceSpan=e||null}return t.prototype.visitStatement=function(){},t.prototype.hasModifier=function(t){return-1!==this.modifiers.indexOf(t)},t}(),np=function(t){function e(e,r,n,o,i){void 0===o&&(o=null);var s=t.call(this,o,i)||this;return s.name=e,s.value=r,s.type=n||r.type,s}return Zn(e,t),e.prototype.visitStatement=function(t,e){return t.visitDeclareVarStmt(this,e)},e}(rp),op=function(t){function e(e,r,n,o,i,s){void 0===i&&(i=null);var a=t.call(this,i,s)||this;return a.name=e,a.params=r,a.statements=n,a.type=o||null,a}return Zn(e,t),e.prototype.visitStatement=function(t,e){return t.visitDeclareFunctionStmt(this,e)},e}(rp),ip=function(t){function e(e,r){var n=t.call(this,null,r)||this;return n.expr=e,n}return Zn(e,t),e.prototype.visitStatement=function(t,e){return t.visitExpressionStmt(this,e)},e}(rp),sp=function(t){function e(e,r){var n=t.call(this,null,r)||this;return n.value=e,n}return Zn(e,t),e.prototype.visitStatement=function(t,e){return t.visitReturnStmt(this,e)},e}(rp),ap=function(){function t(t,e){this.modifiers=e,e||(this.modifiers=[]),this.type=t||null}return t.prototype.hasModifier=function(t){return-1!==this.modifiers.indexOf(t)},t}(),up=function(t){function e(e,r,n){void 0===n&&(n=null);var o=t.call(this,r,n)||this;return o.name=e,o}return Zn(e,t),e}(ap),cp=function(t){function e(e,r,n,o,i){void 0===i&&(i=null);var s=t.call(this,o,i)||this;return s.name=e,s.params=r,s.body=n,s}return Zn(e,t),e}(ap),lp=function(t){function e(e,r,n,o){void 0===o&&(o=null);var i=t.call(this,n,o)||this;return i.name=e,i.body=r,i}return Zn(e,t),e}(ap),pp=function(t){function e(e,r,n,o,i,s,a,u){void 0===a&&(a=null);var c=t.call(this,a,u)||this;return c.name=e,c.parent=r,c.fields=n,c.getters=o,c.constructorMethod=i,c.methods=s,c}return Zn(e,t),e.prototype.visitStatement=function(t,e){return t.visitDeclareClassStmt(this,e)},e}(rp),hp=function(t){ +function e(e,r,n,o){void 0===n&&(n=[]);var i=t.call(this,null,o)||this;return i.condition=e,i.trueCase=r,i.falseCase=n,i}return Zn(e,t),e.prototype.visitStatement=function(t,e){return t.visitIfStmt(this,e)},e}(rp),fp=function(t){function e(e,r,n){var o=t.call(this,null,n)||this;return o.bodyStmts=e,o.catchStmts=r,o}return Zn(e,t),e.prototype.visitStatement=function(t,e){return t.visitTryCatchStmt(this,e)},e}(rp),dp=function(t){function e(e,r){var n=t.call(this,null,r)||this;return n.error=e,n}return Zn(e,t),e.prototype.visitStatement=function(t,e){return t.visitThrowStmt(this,e)},e}(rp),mp=function(){function t(){}return t.prototype.transformExpr=function(t){return t},t.prototype.transformStmt=function(t){return t},t.prototype.visitReadVarExpr=function(t,e){return this.transformExpr(t,e)},t.prototype.visitWriteVarExpr=function(t,e){return this.transformExpr(new Ml(t.name,t.value.visitExpression(this,e),t.type,t.sourceSpan),e)},t.prototype.visitWriteKeyExpr=function(t,e){return this.transformExpr(new Rl(t.receiver.visitExpression(this,e),t.index.visitExpression(this,e),t.value.visitExpression(this,e),t.type,t.sourceSpan),e)},t.prototype.visitWritePropExpr=function(t,e){return this.transformExpr(new kl(t.receiver.visitExpression(this,e),t.name,t.value.visitExpression(this,e),t.type,t.sourceSpan),e)},t.prototype.visitInvokeMethodExpr=function(t,e){var r=t.builtin||t.name;return this.transformExpr(new Nl(t.receiver.visitExpression(this,e),r,this.visitAllExpressions(t.args,e),t.type,t.sourceSpan),e)},t.prototype.visitInvokeFunctionExpr=function(t,e){return this.transformExpr(new Dl(t.fn.visitExpression(this,e),this.visitAllExpressions(t.args,e),t.type,t.sourceSpan),e)},t.prototype.visitInstantiateExpr=function(t,e){return this.transformExpr(new jl(t.classExpr.visitExpression(this,e),this.visitAllExpressions(t.args,e),t.type,t.sourceSpan),e)},t.prototype.visitLiteralExpr=function(t,e){return this.transformExpr(t,e)},t.prototype.visitExternalExpr=function(t,e){return this.transformExpr(t,e)},t.prototype.visitConditionalExpr=function(t,e){return this.transformExpr(new Fl(t.condition.visitExpression(this,e),t.trueCase.visitExpression(this,e),t.falseCase.visitExpression(this,e),t.type,t.sourceSpan),e)},t.prototype.visitNotExpr=function(t,e){return this.transformExpr(new Ul(t.condition.visitExpression(this,e),t.sourceSpan),e)},t.prototype.visitCastExpr=function(t,e){return this.transformExpr(new Bl(t.value.visitExpression(this,e),t.type,t.sourceSpan),e)},t.prototype.visitFunctionExpr=function(t,e){return this.transformExpr(new ql(t.params,this.visitAllStatements(t.statements,e),t.type,t.sourceSpan),e)},t.prototype.visitBinaryOperatorExpr=function(t,e){return this.transformExpr(new zl(t.operator,t.lhs.visitExpression(this,e),t.rhs.visitExpression(this,e),t.type,t.sourceSpan),e)},t.prototype.visitReadPropExpr=function(t,e){return this.transformExpr(new Gl(t.receiver.visitExpression(this,e),t.name,t.type,t.sourceSpan),e)},t.prototype.visitReadKeyExpr=function(t,e){return this.transformExpr(new Wl(t.receiver.visitExpression(this,e),t.index.visitExpression(this,e),t.type,t.sourceSpan),e)},t.prototype.visitLiteralArrayExpr=function(t,e){return this.transformExpr(new $l(this.visitAllExpressions(t.entries,e),t.type,t.sourceSpan),e)},t.prototype.visitLiteralMapExpr=function(t,e){var r=this,n=t.entries.map(function(t){return new Kl(t.key,t.value.visitExpression(r,e),t.quoted)}),o=new Cl(t.valueType,null);return this.transformExpr(new Ql(n,o,t.sourceSpan),e)},t.prototype.visitCommaExpr=function(t,e){return this.transformExpr(new Xl(this.visitAllExpressions(t.parts,e),t.sourceSpan),e)},t.prototype.visitAllExpressions=function(t,e){var r=this;return t.map(function(t){return t.visitExpression(r,e)})},t.prototype.visitDeclareVarStmt=function(t,e){return this.transformStmt(new np(t.name,t.value.visitExpression(this,e),t.type,t.modifiers,t.sourceSpan),e)},t.prototype.visitDeclareFunctionStmt=function(t,e){return this.transformStmt(new op(t.name,t.params,this.visitAllStatements(t.statements,e),t.type,t.modifiers,t.sourceSpan),e)},t.prototype.visitExpressionStmt=function(t,e){return this.transformStmt(new ip(t.expr.visitExpression(this,e),t.sourceSpan),e)},t.prototype.visitReturnStmt=function(t,e){return this.transformStmt(new sp(t.value.visitExpression(this,e),t.sourceSpan),e)},t.prototype.visitDeclareClassStmt=function(t,e){var r=this,n=t.parent.visitExpression(this,e),o=t.getters.map(function(t){return new lp(t.name,r.visitAllStatements(t.body,e),t.type,t.modifiers)}),i=t.constructorMethod&&new cp(t.constructorMethod.name,t.constructorMethod.params,this.visitAllStatements(t.constructorMethod.body,e),t.constructorMethod.type,t.constructorMethod.modifiers),s=t.methods.map(function(t){return new cp(t.name,t.params,r.visitAllStatements(t.body,e),t.type,t.modifiers)});return this.transformStmt(new pp(t.name,n,t.fields,o,i,s,t.modifiers,t.sourceSpan),e)},t.prototype.visitIfStmt=function(t,e){return this.transformStmt(new hp(t.condition.visitExpression(this,e),this.visitAllStatements(t.trueCase,e),this.visitAllStatements(t.falseCase,e),t.sourceSpan),e)},t.prototype.visitTryCatchStmt=function(t,e){return this.transformStmt(new fp(this.visitAllStatements(t.bodyStmts,e),this.visitAllStatements(t.catchStmts,e),t.sourceSpan),e)},t.prototype.visitThrowStmt=function(t,e){return this.transformStmt(new dp(t.error.visitExpression(this,e),t.sourceSpan),e)},t.prototype.visitCommentStmt=function(t,e){return this.transformStmt(t,e)},t.prototype.visitAllStatements=function(t,e){var r=this;return t.map(function(t){return t.visitStatement(r,e)})},t}(),yp=function(){function t(){}return t.prototype.visitReadVarExpr=function(t){return t},t.prototype.visitWriteVarExpr=function(t,e){return t.value.visitExpression(this,e),t},t.prototype.visitWriteKeyExpr=function(t,e){return t.receiver.visitExpression(this,e),t.index.visitExpression(this,e),t.value.visitExpression(this,e),t},t.prototype.visitWritePropExpr=function(t,e){return t.receiver.visitExpression(this,e),t.value.visitExpression(this,e),t},t.prototype.visitInvokeMethodExpr=function(t,e){return t.receiver.visitExpression(this,e),this.visitAllExpressions(t.args,e),t},t.prototype.visitInvokeFunctionExpr=function(t,e){return t.fn.visitExpression(this,e),this.visitAllExpressions(t.args,e),t},t.prototype.visitInstantiateExpr=function(t,e){return t.classExpr.visitExpression(this,e),this.visitAllExpressions(t.args,e),t},t.prototype.visitLiteralExpr=function(t){return t},t.prototype.visitExternalExpr=function(t){return t},t.prototype.visitConditionalExpr=function(t,e){return t.condition.visitExpression(this,e),t.trueCase.visitExpression(this,e),t.falseCase.visitExpression(this,e),t},t.prototype.visitNotExpr=function(t,e){return t.condition.visitExpression(this,e),t},t.prototype.visitCastExpr=function(t,e){return t.value.visitExpression(this,e),t},t.prototype.visitFunctionExpr=function(t,e){return this.visitAllStatements(t.statements,e),t},t.prototype.visitBinaryOperatorExpr=function(t,e){return t.lhs.visitExpression(this,e),t.rhs.visitExpression(this,e),t},t.prototype.visitReadPropExpr=function(t,e){return t.receiver.visitExpression(this,e),t},t.prototype.visitReadKeyExpr=function(t,e){return t.receiver.visitExpression(this,e),t.index.visitExpression(this,e),t},t.prototype.visitLiteralArrayExpr=function(t,e){return this.visitAllExpressions(t.entries,e),t},t.prototype.visitLiteralMapExpr=function(t,e){var r=this;return t.entries.forEach(function(t){return t.value.visitExpression(r,e)}),t},t.prototype.visitCommaExpr=function(t,e){this.visitAllExpressions(t.parts,e)},t.prototype.visitAllExpressions=function(t,e){var r=this;t.forEach(function(t){return t.visitExpression(r,e)})},t.prototype.visitDeclareVarStmt=function(t,e){return t.value.visitExpression(this,e),t},t.prototype.visitDeclareFunctionStmt=function(t,e){return this.visitAllStatements(t.statements,e),t},t.prototype.visitExpressionStmt=function(t,e){return t.expr.visitExpression(this,e),t},t.prototype.visitReturnStmt=function(t,e){return t.value.visitExpression(this,e),t},t.prototype.visitDeclareClassStmt=function(t,e){var r=this;return t.parent.visitExpression(this,e),t.getters.forEach(function(t){return r.visitAllStatements(t.body,e)}),t.constructorMethod&&this.visitAllStatements(t.constructorMethod.body,e),t.methods.forEach(function(t){return r.visitAllStatements(t.body,e)}),t},t.prototype.visitIfStmt=function(t,e){return t.condition.visitExpression(this,e),this.visitAllStatements(t.trueCase,e),this.visitAllStatements(t.falseCase,e),t},t.prototype.visitTryCatchStmt=function(t,e){return this.visitAllStatements(t.bodyStmts,e),this.visitAllStatements(t.catchStmts,e),t},t.prototype.visitThrowStmt=function(t,e){return t.error.visitExpression(this,e),t},t.prototype.visitCommentStmt=function(t){return t},t.prototype.visitAllStatements=function(t,e){var r=this;t.forEach(function(t){return t.visitStatement(r,e)})},t}(),vp=function(t){function e(){var e=t.apply(this,arguments)||this;return e.varNames=new Set,e}return Zn(e,t),e.prototype.visitDeclareFunctionStmt=function(t){return t},e.prototype.visitDeclareClassStmt=function(t){return t},e.prototype.visitReadVarExpr=function(t){return t.name&&this.varNames.add(t.name),null},e}(yp),gp=function(t){function e(e){var r=t.call(this)||this;return r.sourceSpan=e,r}return Zn(e,t),e.prototype._clone=function(t){var e=Object.create(t.constructor.prototype);for(var r in t)e[r]=t[r];return e},e.prototype.transformExpr=function(t){return t.sourceSpan||(t=this._clone(t),t.sourceSpan=this.sourceSpan),t},e.prototype.transformStmt=function(t){return t.sourceSpan||(t=this._clone(t),t.sourceSpan=this.sourceSpan),t},e}(mp),_p="$quoted$",bp=function(){function t(){}return t.prototype.visitArray=function(t,e){var r=this;return br(t.map(function(t){return d(t,r,null)}),e)},t.prototype.visitStringMap=function(t,e){var r=this,n=[],o=new Set(t&&t[_p]);return Object.keys(t).forEach(function(e){n.push(new Kl(e,d(t[e],r,null),o.has(e)))}),new Ql(n,e)},t.prototype.visitPrimitive=function(t,e){return Sr(t,e)},t.prototype.visitOther=function(t){return t instanceof Pl?t:vr({reference:t})},t}(),wp=function(){function t(t){this.compType=t}return t}(),Cp=function(){function t(t,e,r){this.statements=t,this.ngModuleFactoryVar=e,this.dependencies=r}return t}(),Ep=function(){function t(){}return t.prototype.compile=function(t,e){var r=ct("NgModule",t.type),n=[],o=[],i=t.transitiveModule.entryComponents.map(function(e){return t.bootstrapComponents.some(function(t){return t.reference===e.componentType})&&o.push({reference:e.componentFactory}),n.push(new wp(e.componentType)),{reference:e.componentFactory}}),s=new Sp(t,i,o,r),a=new Yu(t,e,r);a.parse().forEach(function(t){return s.addProvider(t)});var u=s.build(),c=E(t.type)+"NgFactory",l=yr(c).set(vr(de(zu.NgModuleFactory)).instantiate([yr(u.name),vr(t.type)],gr(de(zu.NgModuleFactory),[gr(t.type)],[yl.Const]))).toDeclStmt(null,[ep.Final]),p=[u,l];if(t.id){var h=vr(de(zu.RegisterModuleFactoryFn)).callFn([Sr(t.id),yr(c)]).toStmt();p.push(h)}return new Cp(p,c,n)},t}();Ep.decorators=[{type:z}],Ep.ctorParameters=function(){return[]};var Sp=function(){function t(t,e,r,n){this._ngModuleMeta=t,this._entryComponentFactories=e,this._bootstrapComponentFactories=r,this._sourceSpan=n,this.fields=[],this.getters=[],this.methods=[],this.ctorStmts=[],this._lazyProps=new Map,this._tokens=[],this._instances=new Map,this._createStmts=[],this._destroyStmts=[]}return t.prototype.addProvider=function(t){var r=this,n=t.providers.map(function(t){return r._getProviderValue(t)}),o="_"+M(t.token)+"_"+this._instances.size,i=this._createProviderProperty(o,t,n,t.multiProvider,t.eager);if(-1!==t.lifecycleHooks.indexOf(e.ɵLifecycleHooks.OnDestroy)){var s=i.callMethod("ngOnDestroy",[]);t.eager||(s=this._lazyProps.get(i.name).and(s)),this._destroyStmts.push(s.toStmt())}this._tokens.push(t.token),this._instances.set(R(t.token),i)},t.prototype.build=function(){var t=this,e=this._tokens.map(function(e){var r=t._instances.get(R(e));return new hp(Tp.token.identical(Ar(e)),[new sp(r)])}),r=[new cp("createInternal",[],this._createStmts.concat(new sp(this._instances.get(this._ngModuleMeta.type.reference))),gr(this._ngModuleMeta.type)),new cp("getInternal",[new Hl(Tp.token.name,El),new Hl(Tp.notFoundResult.name,El)],e.concat([new sp(Tp.notFoundResult)]),El),new cp("destroyInternal",[],this._destroyStmts)],n=[yr(xp.parent.name),br(this._entryComponentFactories.map(function(t){return vr(t)})),br(this._bootstrapComponentFactories.map(function(t){return vr(t)}))],o=E(this._ngModuleMeta.type)+"Injector";return xr({name:o,ctorParams:[new Hl(xp.parent.name,gr(de(zu.Injector)))],parent:vr(de(zu.NgModuleInjector),[gr(this._ngModuleMeta.type)]),parentArgs:n,builders:[{methods:r},this]})},t.prototype._getProviderValue=function(t){var e,r=this;if(null!=t.useExisting)e=this._getDependency({token:t.useExisting});else if(null!=t.useFactory){var n=t.deps||t.useFactory.diDeps,o=n.map(function(t){return r._getDependency(t)});e=vr(t.useFactory).callFn(o)}else if(null!=t.useClass){var n=t.deps||t.useClass.diDeps,o=n.map(function(t){return r._getDependency(t)});e=vr(t.useClass).instantiate(o,gr(t.useClass))}else e=Pr(t.useValue);return e},t.prototype._createProviderProperty=function(t,e,r,n,o){var i,s;if(n?(i=br(r),s=new wl(El)):(i=r[0],s=r[0].type),s||(s=El),o)this.fields.push(new up(t,s)),this._createStmts.push(Zl.prop(t).set(i).toStmt());else{var a=Zl.prop("_"+t);this.fields.push(new up(a.name,s));var u=[new hp(a.isBlank(),[a.set(i).toStmt()]),new sp(a)];this.getters.push(new lp(t,u,s)),this._lazyProps.set(t,a)}return Zl.prop(t)},t.prototype._getDependency=function(t){var e=null;if(t.isValue&&(e=Sr(t.value)),t.isSkipSelf||(t.token&&(R(t.token)===fe(zu.Injector)?e=Zl:R(t.token)===fe(zu.ComponentFactoryResolver)&&(e=Zl.prop("componentFactoryResolver"))),e||(e=this._instances.get(R(t.token)))),!e){var r=[Ar(t.token)];t.isOptional&&r.push(Jl),e=xp.parent.callMethod("get",r)}return e},t}(),xp=function(){function t(){}return t}();xp.parent=Zl.prop("parent");var Tp=function(){function t(){}return t}();Tp.token=yr("token"),Tp.notFoundResult=yr("notFoundResult");var Pp=3,Ap="# sourceMappingURL=data:application/json;base64,",Op=function(){function t(t){void 0===t&&(t=null),this.file=t,this.sourcesContent=new Map,this.lines=[],this.lastCol0=0,this.hasMappings=!1}return t.prototype.addSource=function(t,e){return void 0===e&&(e=null),this.sourcesContent.has(t)||this.sourcesContent.set(t,e),this},t.prototype.addLine=function(){return this.lines.push([]),this.lastCol0=0,this},t.prototype.addMapping=function(t,e,r,n){if(!this.currentLine)throw new Error("A line must be added before mappings can be added");if(null!=e&&!this.sourcesContent.has(e))throw new Error('Unknown source file "'+e+'"');if(null==t)throw new Error("The column in the generated code must be provided");if(t<this.lastCol0)throw new Error("Mapping should be added in output order");if(e&&(null==r||null==n))throw new Error("The source location must be provided when a source url is provided");return this.hasMappings=!0,this.lastCol0=t,this.currentLine.push({col0:t,sourceUrl:e,sourceLine0:r,sourceCol0:n}),this},Object.defineProperty(t.prototype,"currentLine",{get:function(){return this.lines.slice(-1)[0]},enumerable:!0,configurable:!0}),t.prototype.toJSON=function(){var t=this;if(!this.hasMappings)return null;var e=new Map,r=[],n=[];Array.from(this.sourcesContent.keys()).forEach(function(o,i){e.set(o,i),r.push(o),n.push(t.sourcesContent.get(o)||null)});var o="",i=0,s=0,a=0,u=0;return this.lines.forEach(function(t){i=0,o+=t.map(function(t){var r=Mr(t.col0-i);return i=t.col0,null!=t.sourceUrl&&(r+=Mr(e.get(t.sourceUrl)-s),s=e.get(t.sourceUrl),r+=Mr(t.sourceLine0-a),a=t.sourceLine0,r+=Mr(t.sourceCol0-u),u=t.sourceCol0),r}).join(","),o+=";"}),o=o.slice(0,-1),{file:this.file||"",version:Pp,sourceRoot:"",sources:r,sourcesContent:n,mappings:o}},t.prototype.toJsComment=function(){return this.hasMappings?"//"+Ap+Or(JSON.stringify(this,null,0)):""},t}(),Mp="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Rp=/'|\\|\n|\r|\$/g,kp=/^[$A-Z_][0-9A-Z_$]*$/i,Ip=" ",Np=yr("error",null,null),Dp=yr("stack",null,null),jp=function(){function t(t){this.indent=t,this.parts=[],this.srcSpans=[]}return t}(),Lp=function(){function t(t,e){this._exportedVars=t,this._indent=e,this._classes=[],this._lines=[new jp(e)]}return t.createRoot=function(e){return new t(e,0)},Object.defineProperty(t.prototype,"_currentLine",{get:function(){return this._lines[this._lines.length-1]},enumerable:!0,configurable:!0}),t.prototype.isExportedVar=function(t){return-1!==this._exportedVars.indexOf(t)},t.prototype.println=function(t,e){void 0===e&&(e=""),this.print(t||null,e,!0)},t.prototype.lineIsEmpty=function(){return 0===this._currentLine.parts.length},t.prototype.print=function(t,e,r){void 0===r&&(r=!1),e.length>0&&(this._currentLine.parts.push(e),this._currentLine.srcSpans.push(t&&t.sourceSpan||null)),r&&this._lines.push(new jp(this._indent))},t.prototype.removeEmptyLastLine=function(){this.lineIsEmpty()&&this._lines.pop()},t.prototype.incIndent=function(){this._indent++,this._currentLine.indent=this._indent},t.prototype.decIndent=function(){this._indent--,this._currentLine.indent=this._indent},t.prototype.pushClass=function(t){this._classes.push(t)},t.prototype.popClass=function(){return this._classes.pop()},Object.defineProperty(t.prototype,"currentClass",{get:function(){return this._classes.length>0?this._classes[this._classes.length-1]:null},enumerable:!0,configurable:!0}),t.prototype.toSource=function(){return this.sourceLines.map(function(t){return t.parts.length>0?Ir(t.indent)+t.parts.join(""):""}).join("\n")},t.prototype.toSourceMapGenerator=function(t,e,r){void 0===r&&(r=0);for(var n=new Op(e),o=!1,i=function(){o||(n.addSource(t," ").addMapping(0,t,0,0),o=!0)},s=0;r>s;s++)n.addLine(),i();return this.sourceLines.forEach(function(t,e){n.addLine();for(var r=t.srcSpans,s=t.parts,a=t.indent*Ip.length,u=0;u<r.length&&!r[u];)a+=s[u].length,u++;for(u<r.length&&0===e&&0===a?o=!0:i();u<r.length;){var c=r[u],l=c.start.file,p=c.start.line,h=c.start.col;for(n.addSource(l.url,l.content).addMapping(a,l.url,p,h),a+=s[u].length,u++;u<r.length&&(c===r[u]||!r[u]);)a+=s[u].length,u++}}),n},Object.defineProperty(t.prototype,"sourceLines",{get:function(){return this._lines.length&&0===this._lines[this._lines.length-1].parts.length?this._lines.slice(0,-1):this._lines},enumerable:!0,configurable:!0}),t}(),Vp=function(){function t(t){this._escapeDollarInStrings=t}return t.prototype.visitExpressionStmt=function(t,e){return t.expr.visitExpression(this,e),e.println(t,";"),null},t.prototype.visitReturnStmt=function(t,e){return e.print(t,"return "),t.value.visitExpression(this,e),e.println(t,";"),null},t.prototype.visitCastExpr=function(){},t.prototype.visitDeclareClassStmt=function(){},t.prototype.visitIfStmt=function(t,e){e.print(t,"if ("),t.condition.visitExpression(this,e),e.print(t,") {");var r=null!=t.falseCase&&t.falseCase.length>0;return t.trueCase.length<=1&&!r?(e.print(t," "),this.visitAllStatements(t.trueCase,e),e.removeEmptyLastLine(),e.print(t," ")):(e.println(),e.incIndent(),this.visitAllStatements(t.trueCase,e),e.decIndent(),r&&(e.println(t,"} else {"),e.incIndent(),this.visitAllStatements(t.falseCase,e),e.decIndent())),e.println(t,"}"),null},t.prototype.visitTryCatchStmt=function(){},t.prototype.visitThrowStmt=function(t,e){return e.print(t,"throw "),t.error.visitExpression(this,e),e.println(t,";"),null},t.prototype.visitCommentStmt=function(t,e){var r=t.comment.split("\n");return r.forEach(function(r){e.println(t,"// "+r)}),null},t.prototype.visitDeclareVarStmt=function(){},t.prototype.visitWriteVarExpr=function(t,e){var r=e.lineIsEmpty();return r||e.print(t,"("),e.print(t,t.name+" = "),t.value.visitExpression(this,e),r||e.print(t,")"),null},t.prototype.visitWriteKeyExpr=function(t,e){var r=e.lineIsEmpty();return r||e.print(t,"("),t.receiver.visitExpression(this,e),e.print(t,"["),t.index.visitExpression(this,e),e.print(t,"] = "),t.value.visitExpression(this,e),r||e.print(t,")"),null},t.prototype.visitWritePropExpr=function(t,e){var r=e.lineIsEmpty();return r||e.print(t,"("),t.receiver.visitExpression(this,e),e.print(t,"."+t.name+" = "),t.value.visitExpression(this,e),r||e.print(t,")"),null},t.prototype.visitInvokeMethodExpr=function(t,e){t.receiver.visitExpression(this,e);var r=t.name;return null!=t.builtin&&(r=this.getBuiltinMethodName(t.builtin),null==r)?null:(e.print(t,"."+r+"("),this.visitAllExpressions(t.args,e,","),e.print(t,")"),null)},t.prototype.getBuiltinMethodName=function(){},t.prototype.visitInvokeFunctionExpr=function(t,e){return t.fn.visitExpression(this,e),e.print(t,"("),this.visitAllExpressions(t.args,e,","),e.print(t,")"),null},t.prototype.visitReadVarExpr=function(t,e){var r=t.name;if(null!=t.builtin)switch(t.builtin){case Al.Super:r="super";break;case Al.This:r="this";break;case Al.CatchError:r=Np.name;break;case Al.CatchStack:r=Dp.name;break;default:throw new Error("Unknown builtin variable "+t.builtin)}return e.print(t,r),null},t.prototype.visitInstantiateExpr=function(t,e){return e.print(t,"new "),t.classExpr.visitExpression(this,e),e.print(t,"("),this.visitAllExpressions(t.args,e,","),e.print(t,")"),null},t.prototype.visitLiteralExpr=function(t,e){var r=t.value;return"string"==typeof r?e.print(t,kr(r,this._escapeDollarInStrings)):e.print(t,""+r),null},t.prototype.visitExternalExpr=function(){},t.prototype.visitConditionalExpr=function(t,e){return e.print(t,"("),t.condition.visitExpression(this,e),e.print(t,"? "),t.trueCase.visitExpression(this,e),e.print(t,": "),t.falseCase.visitExpression(this,e),e.print(t,")"),null},t.prototype.visitNotExpr=function(t,e){return e.print(t,"!"),t.condition.visitExpression(this,e),null},t.prototype.visitFunctionExpr=function(){},t.prototype.visitDeclareFunctionStmt=function(){},t.prototype.visitBinaryOperatorExpr=function(t,e){var r;switch(t.operator){case Tl.Equals:r="==";break;case Tl.Identical:r="===";break;case Tl.NotEquals:r="!=";break;case Tl.NotIdentical:r="!==";break;case Tl.And:r="&&";break;case Tl.Or:r="||";break;case Tl.Plus:r="+";break;case Tl.Minus:r="-";break;case Tl.Divide:r="/";break;case Tl.Multiply:r="*";break;case Tl.Modulo:r="%";break;case Tl.Lower:r="<";break;case Tl.LowerEquals:r="<=";break;case Tl.Bigger:r=">";break;case Tl.BiggerEquals:r=">=";break;default:throw new Error("Unknown operator "+t.operator)}return e.print(t,"("),t.lhs.visitExpression(this,e),e.print(t," "+r+" "),t.rhs.visitExpression(this,e),e.print(t,")"),null},t.prototype.visitReadPropExpr=function(t,e){return t.receiver.visitExpression(this,e),e.print(t,"."),e.print(t,t.name),null},t.prototype.visitReadKeyExpr=function(t,e){return t.receiver.visitExpression(this,e),e.print(t,"["),t.index.visitExpression(this,e),e.print(t,"]"),null},t.prototype.visitLiteralArrayExpr=function(t,e){var r=t.entries.length>1;return e.print(t,"[",r),e.incIndent(),this.visitAllExpressions(t.entries,e,",",r),e.decIndent(),e.print(t,"]",r),null},t.prototype.visitLiteralMapExpr=function(t,e){var r=this,n=t.entries.length>1;return e.print(t,"{",n),e.incIndent(),this.visitAllObjects(function(n){e.print(t,kr(n.key,r._escapeDollarInStrings,n.quoted)+": "),n.value.visitExpression(r,e)},t.entries,e,",",n),e.decIndent(),e.print(t,"}",n),null},t.prototype.visitCommaExpr=function(t,e){return e.print(t,"("),this.visitAllExpressions(t.parts,e,","),e.print(t,")"),null},t.prototype.visitAllExpressions=function(t,e,r,n){var o=this;void 0===n&&(n=!1),this.visitAllObjects(function(t){return t.visitExpression(o,e)},t,e,r,n)},t.prototype.visitAllObjects=function(t,e,r,n,o){void 0===o&&(o=!1);for(var i=0;i<e.length;i++)i>0&&r.print(null,n,o),t(e[i]);o&&r.println()},t.prototype.visitAllStatements=function(t,e){var r=this;t.forEach(function(t){return t.visitStatement(r,e)})},t}(),Fp="/debug/lib",Up=function(){function t(t){this._importResolver=t}return t.prototype.emitStatements=function(t,e,r,n,o){var i=this;void 0===o&&(o="");var s=new Bp(e,this._importResolver),a=Lp.createRoot(n);s.visitAllStatements(r,a);var u=o?o.split("\n"):[];s.reexports.forEach(function(t,r){var n=t.map(function(t){return t.name+" as "+t.as}).join(",");u.push("export {"+n+"} from '"+i._importResolver.fileNameToModuleName(r,e)+"';")}),s.importsWithPrefixes.forEach(function(t,r){u.push("imp"+("ort * as "+t+" from '"+i._importResolver.fileNameToModuleName(r,e)+"';"))});var c=a.toSourceMapGenerator(t,e,u.length).toJsComment(),l=u.concat([a.toSource(),c]);return c&&l.push(""),l.join("\n")},t}(),Bp=function(t){function e(e,r){var n=t.call(this,!1)||this;return n._genFilePath=e,n._importResolver=r,n.typeExpression=0,n.importsWithPrefixes=new Map,n.reexports=new Map,n}return Zn(e,t),e.prototype.visitType=function(t,e,r){void 0===r&&(r="any"),t?(this.typeExpression++,t.visitType(this,e),this.typeExpression--):e.print(null,r)},e.prototype.visitLiteralExpr=function(e,r){var n=e.value;return null==n&&e.type!=Sl?(r.print(e,"("+n+" as any)"),null):t.prototype.visitLiteralExpr.call(this,e,r)},e.prototype.visitLiteralArrayExpr=function(e,r){0===e.entries.length&&r.print(e,"(");var n=t.prototype.visitLiteralArrayExpr.call(this,e,r);return 0===e.entries.length&&r.print(e," as any[])"),n},e.prototype.visitExternalExpr=function(t,e){return this._visitIdentifier(t.value,t.typeParams,e),null},e.prototype.visitDeclareVarStmt=function(t,e){if(e.isExportedVar(t.name)&&t.value instanceof Vl&&!t.type){var r=this._resolveStaticSymbol(t.value.value),n=r.name,o=r.filePath,i=r.members;if(0===i.length&&o!==this._genFilePath){var s=this.reexports.get(o);return s||(s=[],this.reexports.set(o,s)),s.push({name:n,as:t.name}),null}}return e.isExportedVar(t.name)&&e.print(t,"export "),t.hasModifier(ep.Final)?e.print(t,"const"):e.print(t,"var"),e.print(t," "+t.name),this._printColonType(t.type,e),e.print(t," = "),t.value.visitExpression(this,e),e.println(t,";"),null},e.prototype.visitCastExpr=function(t,e){return e.print(t,"(<"),t.type.visitType(this,e),e.print(t,">"),t.value.visitExpression(this,e),e.print(t,")"),null},e.prototype.visitInstantiateExpr=function(t,e){return e.print(t,"new "),this.typeExpression++,t.classExpr.visitExpression(this,e),this.typeExpression--,e.print(t,"("),this.visitAllExpressions(t.args,e,","),e.print(t,")"),null},e.prototype.visitDeclareClassStmt=function(t,e){var r=this;return e.pushClass(t),e.isExportedVar(t.name)&&e.print(t,"export "),e.print(t,"class "+t.name),null!=t.parent&&(e.print(t," extends "),this.typeExpression++,t.parent.visitExpression(this,e),this.typeExpression--),e.println(t," {"),e.incIndent(),t.fields.forEach(function(t){return r._visitClassField(t,e)}),null!=t.constructorMethod&&this._visitClassConstructor(t,e),t.getters.forEach(function(t){return r._visitClassGetter(t,e)}),t.methods.forEach(function(t){return r._visitClassMethod(t,e)}),e.decIndent(),e.println(t,"}"),e.popClass(),null},e.prototype._visitClassField=function(t,e){t.hasModifier(ep.Private)&&e.print(null,"/*private*/ "),e.print(null,t.name),this._printColonType(t.type,e),e.println(null,";")},e.prototype._visitClassGetter=function(t,e){t.hasModifier(ep.Private)&&e.print(null,"private "),e.print(null,"get "+t.name+"()"),this._printColonType(t.type,e),e.println(null," {"),e.incIndent(),this.visitAllStatements(t.body,e),e.decIndent(),e.println(null,"}")},e.prototype._visitClassConstructor=function(t,e){e.print(t,"constructor("),this._visitParams(t.constructorMethod.params,e),e.println(t,") {"),e.incIndent(),this.visitAllStatements(t.constructorMethod.body,e),e.decIndent(),e.println(t,"}")},e.prototype._visitClassMethod=function(t,e){t.hasModifier(ep.Private)&&e.print(null,"private "),e.print(null,t.name+"("),this._visitParams(t.params,e),e.print(null,")"),this._printColonType(t.type,e,"void"),e.println(null," {"),e.incIndent(),this.visitAllStatements(t.body,e),e.decIndent(),e.println(null,"}")},e.prototype.visitFunctionExpr=function(t,e){return e.print(t,"("),this._visitParams(t.params,e),e.print(t,")"),this._printColonType(t.type,e,"void"),e.println(t," => {"),e.incIndent(),this.visitAllStatements(t.statements,e),e.decIndent(),e.print(t,"}"),null},e.prototype.visitDeclareFunctionStmt=function(t,e){return e.isExportedVar(t.name)&&e.print(t,"export "),e.print(t,"function "+t.name+"("),this._visitParams(t.params,e),e.print(t,")"),this._printColonType(t.type,e,"void"),e.println(t," {"),e.incIndent(),this.visitAllStatements(t.statements,e),e.decIndent(),e.println(t,"}"),null},e.prototype.visitTryCatchStmt=function(t,e){e.println(t,"try {"),e.incIndent(),this.visitAllStatements(t.bodyStmts,e),e.decIndent(),e.println(t,"} catch ("+Np.name+") {"),e.incIndent();var r=[Dp.set(Np.prop("stack",null)).toDeclStmt(null,[ep.Final])].concat(t.catchStmts);return this.visitAllStatements(r,e),e.decIndent(),e.println(t,"}"),null},e.prototype.visitBuiltintType=function(t,e){var r;switch(t.name){case gl.Bool:r="boolean";break;case gl.Dynamic:r="any";break;case gl.Function:r="Function";break;case gl.Number:r="number";break;case gl.Int:r="number";break;case gl.String:r="string";break;default:throw new Error("Unsupported builtin type "+t.name)}return e.print(null,r),null},e.prototype.visitExpressionType=function(t,e){return t.value.visitExpression(this,e),null},e.prototype.visitArrayType=function(t,e){return this.visitType(t.of,e),e.print(null,"[]"),null},e.prototype.visitMapType=function(t,e){return e.print(null,"{[key: string]:"),this.visitType(t.valueType,e),e.print(null,"}"),null},e.prototype.getBuiltinMethodName=function(t){var e;switch(t){case Il.ConcatArray:e="concat";break;case Il.SubscribeObservable:e="subscribe";break;case Il.Bind:e="bind";break;default:throw new Error("Unknown builtin method: "+t)}return e},e.prototype._visitParams=function(t,e){var r=this;this.visitAllObjects(function(t){e.print(null,t.name),r._printColonType(t.type,e)},t,e,",")},e.prototype._resolveStaticSymbol=function(t){var e=t.reference;if(!(e instanceof mo))throw new Error("Internal error: unknown identifier "+JSON.stringify(t));var r=this._importResolver.getTypeArity(e)||void 0,n=this._importResolver.getImportAs(e)||e;return{name:n.name,filePath:n.filePath,members:n.members,arity:r}},e.prototype._visitIdentifier=function(t,e,r){var n=this,o=this._resolveStaticSymbol(t),i=o.name,s=o.filePath,a=o.members,u=o.arity;if(s!=this._genFilePath){var c=this.importsWithPrefixes.get(s);null==c&&(c="import"+this.importsWithPrefixes.size,this.importsWithPrefixes.set(s,c)),r.print(null,c+".")}if(a.length?(r.print(null,i),r.print(null,"."),r.print(null,a.join("."))):r.print(null,i),this.typeExpression>0){var l=e&&e.length||0,p=(u||0)-l;if(l>0||p>0){if(r.print(null,"<"),l>0&&this.visitAllObjects(function(t){return t.visitType(n,r)},e,r,","),p>0)for(var h=0;p>h;h++)(h>0||l>0)&&r.print(null,","),r.print(null,"any");r.print(null,">")}}},e.prototype._printColonType=function(t,e,r){t!==Sl&&(e.print(null,":"),this.visitType(t,e,r))},e}(Vp),Hp={};Dr(e.SecurityContext.HTML,["iframe|srcdoc","*|innerHTML","*|outerHTML"]),Dr(e.SecurityContext.STYLE,["*|style"]),Dr(e.SecurityContext.URL,["*|formAction","area|href","area|ping","audio|src","a|href","a|ping","blockquote|cite","body|background","del|cite","form|action","img|src","img|srcset","input|src","ins|cite","q|cite","source|src","source|srcset","track|src","video|poster","video|src"]),Dr(e.SecurityContext.RESOURCE_URL,["applet|code","applet|codebase","base|href","embed|src","frame|src","head|profile","html|manifest","iframe|src","link|href","media|src","object|codebase","object|data","script|src"]);var qp="boolean",zp="number",Gp="string",Wp="object",$p=["[Element]|textContent,%classList,className,id,innerHTML,*beforecopy,*beforecut,*beforepaste,*copy,*cut,*paste,*search,*selectstart,*webkitfullscreenchange,*webkitfullscreenerror,*wheel,outerHTML,#scrollLeft,#scrollTop","[HTMLElement]^[Element]|accessKey,contentEditable,dir,!draggable,!hidden,innerText,lang,*abort,*beforecopy,*beforecut,*beforepaste,*blur,*cancel,*canplay,*canplaythrough,*change,*click,*close,*contextmenu,*copy,*cuechange,*cut,*dblclick,*drag,*dragend,*dragenter,*dragleave,*dragover,*dragstart,*drop,*durationchange,*emptied,*ended,*error,*focus,*input,*invalid,*keydown,*keypress,*keyup,*load,*loadeddata,*loadedmetadata,*loadstart,*message,*mousedown,*mouseenter,*mouseleave,*mousemove,*mouseout,*mouseover,*mouseup,*mousewheel,*mozfullscreenchange,*mozfullscreenerror,*mozpointerlockchange,*mozpointerlockerror,*paste,*pause,*play,*playing,*progress,*ratechange,*reset,*resize,*scroll,*search,*seeked,*seeking,*select,*selectstart,*show,*stalled,*submit,*suspend,*timeupdate,*toggle,*volumechange,*waiting,*webglcontextcreationerror,*webglcontextlost,*webglcontextrestored,*webkitfullscreenchange,*webkitfullscreenerror,*wheel,outerText,!spellcheck,%style,#tabIndex,title,!translate","abbr,address,article,aside,b,bdi,bdo,cite,code,dd,dfn,dt,em,figcaption,figure,footer,header,i,kbd,main,mark,nav,noscript,rb,rp,rt,rtc,ruby,s,samp,section,small,strong,sub,sup,u,var,wbr^[HTMLElement]|accessKey,contentEditable,dir,!draggable,!hidden,innerText,lang,*abort,*beforecopy,*beforecut,*beforepaste,*blur,*cancel,*canplay,*canplaythrough,*change,*click,*close,*contextmenu,*copy,*cuechange,*cut,*dblclick,*drag,*dragend,*dragenter,*dragleave,*dragover,*dragstart,*drop,*durationchange,*emptied,*ended,*error,*focus,*input,*invalid,*keydown,*keypress,*keyup,*load,*loadeddata,*loadedmetadata,*loadstart,*message,*mousedown,*mouseenter,*mouseleave,*mousemove,*mouseout,*mouseover,*mouseup,*mousewheel,*mozfullscreenchange,*mozfullscreenerror,*mozpointerlockchange,*mozpointerlockerror,*paste,*pause,*play,*playing,*progress,*ratechange,*reset,*resize,*scroll,*search,*seeked,*seeking,*select,*selectstart,*show,*stalled,*submit,*suspend,*timeupdate,*toggle,*volumechange,*waiting,*webglcontextcreationerror,*webglcontextlost,*webglcontextrestored,*webkitfullscreenchange,*webkitfullscreenerror,*wheel,outerText,!spellcheck,%style,#tabIndex,title,!translate","media^[HTMLElement]|!autoplay,!controls,%crossOrigin,#currentTime,!defaultMuted,#defaultPlaybackRate,!disableRemotePlayback,!loop,!muted,*encrypted,#playbackRate,preload,src,%srcObject,#volume",":svg:^[HTMLElement]|*abort,*blur,*cancel,*canplay,*canplaythrough,*change,*click,*close,*contextmenu,*cuechange,*dblclick,*drag,*dragend,*dragenter,*dragleave,*dragover,*dragstart,*drop,*durationchange,*emptied,*ended,*error,*focus,*input,*invalid,*keydown,*keypress,*keyup,*load,*loadeddata,*loadedmetadata,*loadstart,*mousedown,*mouseenter,*mouseleave,*mousemove,*mouseout,*mouseover,*mouseup,*mousewheel,*pause,*play,*playing,*progress,*ratechange,*reset,*resize,*scroll,*seeked,*seeking,*select,*show,*stalled,*submit,*suspend,*timeupdate,*toggle,*volumechange,*waiting,%style,#tabIndex",":svg:graphics^:svg:|",":svg:animation^:svg:|*begin,*end,*repeat",":svg:geometry^:svg:|",":svg:componentTransferFunction^:svg:|",":svg:gradient^:svg:|",":svg:textContent^:svg:graphics|",":svg:textPositioning^:svg:textContent|","a^[HTMLElement]|charset,coords,download,hash,host,hostname,href,hreflang,name,password,pathname,ping,port,protocol,referrerPolicy,rel,rev,search,shape,target,text,type,username","area^[HTMLElement]|alt,coords,hash,host,hostname,href,!noHref,password,pathname,ping,port,protocol,referrerPolicy,search,shape,target,username","audio^media|","br^[HTMLElement]|clear","base^[HTMLElement]|href,target","body^[HTMLElement]|aLink,background,bgColor,link,*beforeunload,*blur,*error,*focus,*hashchange,*languagechange,*load,*message,*offline,*online,*pagehide,*pageshow,*popstate,*rejectionhandled,*resize,*scroll,*storage,*unhandledrejection,*unload,text,vLink","button^[HTMLElement]|!autofocus,!disabled,formAction,formEnctype,formMethod,!formNoValidate,formTarget,name,type,value","canvas^[HTMLElement]|#height,#width","content^[HTMLElement]|select","dl^[HTMLElement]|!compact","datalist^[HTMLElement]|","details^[HTMLElement]|!open","dialog^[HTMLElement]|!open,returnValue","dir^[HTMLElement]|!compact","div^[HTMLElement]|align","embed^[HTMLElement]|align,height,name,src,type,width","fieldset^[HTMLElement]|!disabled,name","font^[HTMLElement]|color,face,size","form^[HTMLElement]|acceptCharset,action,autocomplete,encoding,enctype,method,name,!noValidate,target","frame^[HTMLElement]|frameBorder,longDesc,marginHeight,marginWidth,name,!noResize,scrolling,src","frameset^[HTMLElement]|cols,*beforeunload,*blur,*error,*focus,*hashchange,*languagechange,*load,*message,*offline,*online,*pagehide,*pageshow,*popstate,*rejectionhandled,*resize,*scroll,*storage,*unhandledrejection,*unload,rows","hr^[HTMLElement]|align,color,!noShade,size,width","head^[HTMLElement]|","h1,h2,h3,h4,h5,h6^[HTMLElement]|align","html^[HTMLElement]|version","iframe^[HTMLElement]|align,!allowFullscreen,frameBorder,height,longDesc,marginHeight,marginWidth,name,referrerPolicy,%sandbox,scrolling,src,srcdoc,width","img^[HTMLElement]|align,alt,border,%crossOrigin,#height,#hspace,!isMap,longDesc,lowsrc,name,referrerPolicy,sizes,src,srcset,useMap,#vspace,#width","input^[HTMLElement]|accept,align,alt,autocapitalize,autocomplete,!autofocus,!checked,!defaultChecked,defaultValue,dirName,!disabled,%files,formAction,formEnctype,formMethod,!formNoValidate,formTarget,#height,!incremental,!indeterminate,max,#maxLength,min,#minLength,!multiple,name,pattern,placeholder,!readOnly,!required,selectionDirection,#selectionEnd,#selectionStart,#size,src,step,type,useMap,value,%valueAsDate,#valueAsNumber,#width","keygen^[HTMLElement]|!autofocus,challenge,!disabled,keytype,name","li^[HTMLElement]|type,#value","label^[HTMLElement]|htmlFor","legend^[HTMLElement]|align","link^[HTMLElement]|as,charset,%crossOrigin,!disabled,href,hreflang,integrity,media,rel,%relList,rev,%sizes,target,type","map^[HTMLElement]|name","marquee^[HTMLElement]|behavior,bgColor,direction,height,#hspace,#loop,#scrollAmount,#scrollDelay,!trueSpeed,#vspace,width","menu^[HTMLElement]|!compact","meta^[HTMLElement]|content,httpEquiv,name,scheme","meter^[HTMLElement]|#high,#low,#max,#min,#optimum,#value","ins,del^[HTMLElement]|cite,dateTime","ol^[HTMLElement]|!compact,!reversed,#start,type","object^[HTMLElement]|align,archive,border,code,codeBase,codeType,data,!declare,height,#hspace,name,standby,type,useMap,#vspace,width","optgroup^[HTMLElement]|!disabled,label","option^[HTMLElement]|!defaultSelected,!disabled,label,!selected,text,value","output^[HTMLElement]|defaultValue,%htmlFor,name,value","p^[HTMLElement]|align","param^[HTMLElement]|name,type,value,valueType","picture^[HTMLElement]|","pre^[HTMLElement]|#width","progress^[HTMLElement]|#max,#value","q,blockquote,cite^[HTMLElement]|","script^[HTMLElement]|!async,charset,%crossOrigin,!defer,event,htmlFor,integrity,src,text,type","select^[HTMLElement]|!autofocus,!disabled,#length,!multiple,name,!required,#selectedIndex,#size,value","shadow^[HTMLElement]|","source^[HTMLElement]|media,sizes,src,srcset,type","span^[HTMLElement]|","style^[HTMLElement]|!disabled,media,type","caption^[HTMLElement]|align","th,td^[HTMLElement]|abbr,align,axis,bgColor,ch,chOff,#colSpan,headers,height,!noWrap,#rowSpan,scope,vAlign,width","col,colgroup^[HTMLElement]|align,ch,chOff,#span,vAlign,width","table^[HTMLElement]|align,bgColor,border,%caption,cellPadding,cellSpacing,frame,rules,summary,%tFoot,%tHead,width","tr^[HTMLElement]|align,bgColor,ch,chOff,vAlign","tfoot,thead,tbody^[HTMLElement]|align,ch,chOff,vAlign","template^[HTMLElement]|","textarea^[HTMLElement]|autocapitalize,!autofocus,#cols,defaultValue,dirName,!disabled,#maxLength,#minLength,name,placeholder,!readOnly,!required,#rows,selectionDirection,#selectionEnd,#selectionStart,value,wrap","title^[HTMLElement]|text","track^[HTMLElement]|!default,kind,label,src,srclang","ul^[HTMLElement]|!compact,type","unknown^[HTMLElement]|","video^media|#height,poster,#width",":svg:a^:svg:graphics|",":svg:animate^:svg:animation|",":svg:animateMotion^:svg:animation|",":svg:animateTransform^:svg:animation|",":svg:circle^:svg:geometry|",":svg:clipPath^:svg:graphics|",":svg:cursor^:svg:|",":svg:defs^:svg:graphics|",":svg:desc^:svg:|",":svg:discard^:svg:|",":svg:ellipse^:svg:geometry|",":svg:feBlend^:svg:|",":svg:feColorMatrix^:svg:|",":svg:feComponentTransfer^:svg:|",":svg:feComposite^:svg:|",":svg:feConvolveMatrix^:svg:|",":svg:feDiffuseLighting^:svg:|",":svg:feDisplacementMap^:svg:|",":svg:feDistantLight^:svg:|",":svg:feDropShadow^:svg:|",":svg:feFlood^:svg:|",":svg:feFuncA^:svg:componentTransferFunction|",":svg:feFuncB^:svg:componentTransferFunction|",":svg:feFuncG^:svg:componentTransferFunction|",":svg:feFuncR^:svg:componentTransferFunction|",":svg:feGaussianBlur^:svg:|",":svg:feImage^:svg:|",":svg:feMerge^:svg:|",":svg:feMergeNode^:svg:|",":svg:feMorphology^:svg:|",":svg:feOffset^:svg:|",":svg:fePointLight^:svg:|",":svg:feSpecularLighting^:svg:|",":svg:feSpotLight^:svg:|",":svg:feTile^:svg:|",":svg:feTurbulence^:svg:|",":svg:filter^:svg:|",":svg:foreignObject^:svg:graphics|",":svg:g^:svg:graphics|",":svg:image^:svg:graphics|",":svg:line^:svg:geometry|",":svg:linearGradient^:svg:gradient|",":svg:mpath^:svg:|",":svg:marker^:svg:|",":svg:mask^:svg:|",":svg:metadata^:svg:|",":svg:path^:svg:geometry|",":svg:pattern^:svg:|",":svg:polygon^:svg:geometry|",":svg:polyline^:svg:geometry|",":svg:radialGradient^:svg:gradient|",":svg:rect^:svg:geometry|",":svg:svg^:svg:graphics|#currentScale,#zoomAndPan",":svg:script^:svg:|type",":svg:set^:svg:animation|",":svg:stop^:svg:|",":svg:style^:svg:|!disabled,media,title,type",":svg:switch^:svg:graphics|",":svg:symbol^:svg:|",":svg:tspan^:svg:textPositioning|",":svg:text^:svg:textPositioning|",":svg:textPath^:svg:textContent|",":svg:title^:svg:|",":svg:use^:svg:graphics|",":svg:view^:svg:|#zoomAndPan","data^[HTMLElement]|value","menuitem^[HTMLElement]|type,label,icon,!disabled,!checked,radiogroup,!default","summary^[HTMLElement]|","time^[HTMLElement]|dateTime"],Kp={ "class":"className","for":"htmlFor",formaction:"formAction",innerHtml:"innerHTML",readonly:"readOnly",tabindex:"tabIndex"},Qp=function(t){function r(){var e=t.call(this)||this;return e._schema={},$p.forEach(function(t){var r={},n=t.split("|"),o=n[0],i=n[1],s=i.split(","),a=o.split("^"),u=a[0],c=a[1];u.split(",").forEach(function(t){return e._schema[t.toLowerCase()]=r});var l=c&&e._schema[c.toLowerCase()];l&&Object.keys(l).forEach(function(t){r[t]=l[t]}),s.forEach(function(t){if(t.length>0)switch(t[0]){case"*":break;case"!":r[t.substring(1)]=qp;break;case"#":r[t.substring(1)]=zp;break;case"%":r[t.substring(1)]=Wp;break;default:r[t]=Gp}})}),e}return Zn(r,t),r.prototype.hasProperty=function(t,r,n){if(n.some(function(t){return t.name===e.NO_ERRORS_SCHEMA.name}))return!0;if(t.indexOf("-")>-1){if(o(t)||i(t))return!1;if(n.some(function(t){return t.name===e.CUSTOM_ELEMENTS_SCHEMA.name}))return!0}var s=this._schema[t.toLowerCase()]||this._schema.unknown;return!!s[r]},r.prototype.hasElement=function(t,r){if(r.some(function(t){return t.name===e.NO_ERRORS_SCHEMA.name}))return!0;if(t.indexOf("-")>-1){if(o(t)||i(t))return!0;if(r.some(function(t){return t.name===e.CUSTOM_ELEMENTS_SCHEMA.name}))return!0}return!!this._schema[t.toLowerCase()]},r.prototype.securityContext=function(t,r,n){n&&(r=this.getMappedPropName(r)),t=t.toLowerCase(),r=r.toLowerCase();var o=Hp[t+"|"+r];return o?o:(o=Hp["*|"+r],o?o:e.SecurityContext.NONE)},r.prototype.getMappedPropName=function(t){return Kp[t]||t},r.prototype.getDefaultComponentElementName=function(){return"ng-component"},r.prototype.validateProperty=function(t){if(t.toLowerCase().startsWith("on")){var e="Binding to event property '"+t+"' is disallowed for security reasons, "+("please use ("+t.slice(2)+")=...")+("\nIf '"+t+"' is a directive input, make sure the directive is imported by the")+" current module.";return{error:!0,msg:e}}return{error:!1}},r.prototype.validateAttribute=function(t){if(t.toLowerCase().startsWith("on")){var e="Binding to event attribute '"+t+"' is disallowed for security reasons, "+("please use ("+t.slice(2)+")=...");return{error:!0,msg:e}}return{error:!1}},r.prototype.allKnownElementNames=function(){return Object.keys(this._schema)},r.prototype.normalizeAnimationStyleProperty=function(t){return l(t)},r.prototype.normalizeAnimationStyleValue=function(t,e,r){var n="",o=r.toString().trim(),i=null;if(jr(t)&&0!==r&&"0"!==r)if("number"==typeof r)n="px";else{var s=r.match(/^[+-]?[\d\.]+([a-z]*)$/);s&&0==s[1].length&&(i="Please provide a CSS unit value for "+e+":"+r)}return{error:i,value:o+n}},r}(Ju);Qp.decorators=[{type:z}],Qp.ctorParameters=function(){return[]};var Xp=function(){function t(){this.strictStyling=!0}return t.prototype.shimCssText=function(t,e,r){void 0===r&&(r="");var n=Vr(t);return t=Lr(t),t=this._insertDirectives(t),this._scopeCssText(t,e,r)+n},t.prototype._insertDirectives=function(t){return t=this._insertPolyfillDirectivesInCssText(t),this._insertPolyfillRulesInCssText(t)},t.prototype._insertPolyfillDirectivesInCssText=function(t){return t.replace(Yp,function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return t[2]+"{"})},t.prototype._insertPolyfillRulesInCssText=function(t){return t.replace(Jp,function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var r=t[0].replace(t[1],"").replace(t[2],"");return t[4]+r})},t.prototype._scopeCssText=function(t,e,r){var n=this._extractUnscopedRulesFromCssText(t);return t=this._insertPolyfillHostInCssText(t),t=this._convertColonHost(t),t=this._convertColonHostContext(t),t=this._convertShadowDOMSelectors(t),e&&(t=this._scopeSelectors(t,e,r)),t=t+"\n"+n,t.trim()},t.prototype._extractUnscopedRulesFromCssText=function(t){var e,r="";for(th.lastIndex=0;null!==(e=th.exec(t));){var n=e[0].replace(e[2],"").replace(e[1],e[4]);r+=n+"\n\n"}return r},t.prototype._convertColonHost=function(t){return this._convertColonRule(t,oh,this._colonHostPartReplacer)},t.prototype._convertColonHostContext=function(t){return this._convertColonRule(t,ih,this._colonHostContextPartReplacer)},t.prototype._convertColonRule=function(t,e,r){return t.replace(e,function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];if(t[2]){for(var n=t[2].split(","),o=[],i=0;i<n.length;i++){var s=n[i].trim();if(!s)break;o.push(r(sh,s,t[3]))}return o.join(",")}return sh+t[3]})},t.prototype._colonHostContextPartReplacer=function(t,e,r){return e.indexOf(eh)>-1?this._colonHostPartReplacer(t,e,r):t+e+r+", "+e+" "+t+r},t.prototype._colonHostPartReplacer=function(t,e,r){return t+e.replace(eh,"")+r},t.prototype._convertShadowDOMSelectors=function(t){return uh.reduce(function(t,e){return t.replace(e," ")},t)},t.prototype._scopeSelectors=function(t,e,r){var n=this;return Fr(t,function(t){var o=t.selector,i=t.content;return"@"!=t.selector[0]?o=n._scopeSelector(t.selector,e,r,n.strictStyling):(t.selector.startsWith("@media")||t.selector.startsWith("@supports")||t.selector.startsWith("@page")||t.selector.startsWith("@document"))&&(i=n._scopeSelectors(t.content,e,r)),new wh(o,i)})},t.prototype._scopeSelector=function(t,e,r,n){var o=this;return t.split(",").map(function(t){return t.trim().split(ch)}).map(function(t){var i=t[0],s=t.slice(1),a=function(t){return o._selectorNeedsScoping(t,e)?n?o._applyStrictSelectorScope(t,e,r):o._applySelectorScope(t,e,r):t};return[a(i)].concat(s).join(" ")}).join(", ")},t.prototype._selectorNeedsScoping=function(t,e){var r=this._makeScopeMatcher(e);return!r.test(t)},t.prototype._makeScopeMatcher=function(t){var e=/\[/g,r=/\]/g;return t=t.replace(e,"\\[").replace(r,"\\]"),new RegExp("^("+t+")"+lh,"m")},t.prototype._applySelectorScope=function(t,e,r){return this._applySimpleSelectorScope(t,e,r)},t.prototype._applySimpleSelectorScope=function(t,e,r){if(ph.lastIndex=0,ph.test(t)){var n=this.strictStyling?"["+r+"]":e;return t.replace(ah,function(t,e){return e.replace(/([^:]*)(:*)(.*)/,function(t,e,r,o){return e+n+r+o})}).replace(ph,n+" ")}return e+" "+t},t.prototype._applyStrictSelectorScope=function(t,e,r){var n=this,o=/\[is=([^\]]*)\]/g;e=e.replace(o,function(){for(var t=[],e=1;e<arguments.length;e++)t[e-1]=arguments[e];return t[0]});var i="["+e+"]",s=function(t){var o=t.trim();if(!o)return"";if(t.indexOf(sh)>-1)o=n._applySimpleSelectorScope(t,e,r);else{var s=t.replace(ph,"");if(s.length>0){var a=s.match(/([^:]*)(:*)(.*)/);a&&(o=a[1]+i+a[2]+a[3])}}return o},a=new Zp(t);t=a.content();for(var u,c="",l=0,p=/( |>|\+|~(?!=))\s*/g,h=t.indexOf(sh);null!==(u=p.exec(t));){var f=u[1],d=t.slice(l,u.index).trim(),m=l>=h?s(d):d;c+=m+" "+f+" ",l=p.lastIndex}return c+=s(t.substring(l)),a.restore(c)},t.prototype._insertPolyfillHostInCssText=function(t){return t.replace(fh,rh).replace(hh,eh)},t}(),Zp=function(){function t(t){var e=this;this.placeholders=[],this.index=0,t=t.replace(/(\[[^\]]*\])/g,function(t,r){var n="__ph-"+e.index+"__";return e.placeholders.push(r),e.index++,n}),this._content=t.replace(/(:nth-[-\w]+)(\([^)]+\))/g,function(t,r,n){var o="__ph-"+e.index+"__";return e.placeholders.push(n),e.index++,r+o})}return t.prototype.restore=function(t){var e=this;return t.replace(/__ph-(\d+)__/g,function(t,r){return e.placeholders[+r]})},t.prototype.content=function(){return this._content},t}(),Yp=/polyfill-next-selector[^}]*content:[\s]*?(['"])(.*?)\1[;\s]*}([^{]*?){/gim,Jp=/(polyfill-rule)[^}]*(content:[\s]*(['"])(.*?)\3)[;\s]*[^}]*}/gim,th=/(polyfill-unscoped-rule)[^}]*(content:[\s]*(['"])(.*?)\3)[;\s]*[^}]*}/gim,eh="-shadowcsshost",rh="-shadowcsscontext",nh=")(?:\\(((?:\\([^)(]*\\)|[^)(]*)+?)\\))?([^,{]*)",oh=new RegExp("("+eh+nh,"gim"),ih=new RegExp("("+rh+nh,"gim"),sh=eh+"-no-combinator",ah=/-shadowcsshost-no-combinator([^\s]*)/,uh=[/::shadow/g,/::content/g,/\/shadow-deep\//g,/\/shadow\//g],ch=/(?:>>>)|(?:\/deep\/)/g,lh="([>\\s~+[.,{:][\\s\\S]*)?$",ph=/-shadowcsshost/gim,hh=/:host/gim,fh=/:host-context/gim,dh=/\/\*\s*[\s\S]*?\*\//g,mh=/\/\*\s*#\s*sourceMappingURL=[\s\S]+?\*\//,yh=/(\s*)([^;\{\}]+?)(\s*)((?:{%BLOCK%}?\s*;?)|(?:\s*;))/g,vh=/([{}])/g,gh="{",_h="}",bh="%BLOCK%",wh=function(){function t(t,e){this.selector=t,this.content=e}return t}(),Ch=function(){function t(t,e){this.escapedString=t,this.blocks=e}return t}(),Eh="%COMP%",Sh="_nghost-"+Eh,xh="_ngcontent-"+Eh,Th=function(){function t(t,e,r,n){this.name=t,this.moduleUrl=e,this.isShimmed=r,this.valuePlaceholder=n}return t}(),Ph=function(){function t(t,e){this.componentStylesheet=t,this.externalStylesheets=e}return t}(),Ah=function(){function t(t,e,r,n,o){this.statements=t,this.stylesVar=e,this.dependencies=r,this.isShimmed=n,this.meta=o}return t}(),Oh=function(){function t(t){this._urlResolver=t,this._shadowCss=new Xp}return t.prototype.compileComponent=function(t){var e=this,r=t.template,n=[],o=this._compileStyles(t,new $o({styles:r.styles,styleUrls:r.styleUrls,moduleUrl:S(t.type)}),!0);return r.externalStylesheets.forEach(function(r){var o=e._compileStyles(t,r,!1);n.push(o)}),new Ph(o,n)},t.prototype._compileStyles=function(t,r,n){for(var o=this,i=t.template.encapsulation===e.ViewEncapsulation.Emulated,s=r.styles.map(function(t){return Sr(o._shimIfNeeded(t,i))}),a=[],u=0;u<r.styleUrls.length;u++){var c={reference:null};a.push(new Th(Br(null),r.styleUrls[u],i,c)),s.push(new Vl(c))}var l=Br(n?t:null),p=yr(l).set(br(s,new wl(El,[yl.Const]))).toDeclStmt(null,[ep.Final]);return new Ah([p],l,a,i,r)},t.prototype._shimIfNeeded=function(t,e){return e?this._shadowCss.shimCssText(t,xh,Sh):t},t}();Oh.decorators=[{type:z}],Oh.ctorParameters=function(){return[{type:el}]};var Mh=function(){function t(){}return t}();Mh.event=yr("$event");var Rh=function(){function t(t,e){this.stmts=t,this.allowDefault=e}return t}(),kh=function(){function t(t,e){this.stmts=t,this.currValExpr=e}return t}(),Ih={};Ih.Statement=0,Ih.Expression=1,Ih[Ih.Statement]="Statement",Ih[Ih.Expression]="Expression";var Nh=function(t){function e(e){var r=t.call(this)||this;return r._converterFactory=e,r}return Zn(e,t),e.prototype.visitPipe=function(t,e){var r=this,n=[t.exp].concat(t.args).map(function(t){return t.visit(r,e)});return new Lh(t.span,n,this._converterFactory.createPipeConverter(t.name,n.length))},e.prototype.visitLiteralArray=function(t,e){var r=this,n=t.expressions.map(function(t){return t.visit(r,e)});return new Lh(t.span,n,this._converterFactory.createLiteralArrayConverter(t.expressions.length))},e.prototype.visitLiteralMap=function(t,e){var r=this,n=t.values.map(function(t){return t.visit(r,e)});return new Lh(t.span,n,this._converterFactory.createLiteralMapConverter(t.keys))},e}(Pi),Dh=function(){function t(t,e,r){this._localResolver=t,this._implicitReceiver=e,this.bindingId=r,this._nodeMap=new Map,this._resultMap=new Map,this._currentTemporary=0,this.temporaryCount=0}return t.prototype.visitBinary=function(t,e){var r;switch(t.operation){case"+":r=Tl.Plus;break;case"-":r=Tl.Minus;break;case"*":r=Tl.Multiply;break;case"/":r=Tl.Divide;break;case"%":r=Tl.Modulo;break;case"&&":r=Tl.And;break;case"||":r=Tl.Or;break;case"==":r=Tl.Equals;break;case"!=":r=Tl.NotEquals;break;case"===":r=Tl.Identical;break;case"!==":r=Tl.NotIdentical;break;case"<":r=Tl.Lower;break;case">":r=Tl.Bigger;break;case"<=":r=Tl.LowerEquals;break;case">=":r=Tl.BiggerEquals;break;default:throw new Error("Unsupported operation "+t.operation)}return Zr(e,new zl(r,this.visit(t.left,Ih.Expression),this.visit(t.right,Ih.Expression)))},t.prototype.visitChain=function(t,e){return Qr(e,t),this.visitAll(t.expressions,e)},t.prototype.visitConditional=function(t,e){var r=this.visit(t.condition,Ih.Expression);return Zr(e,r.conditional(this.visit(t.trueExp,Ih.Expression),this.visit(t.falseExp,Ih.Expression)))},t.prototype.visitPipe=function(t){throw new Error("Illegal state: Pipes should have been converted into functions. Pipe: "+t.name)},t.prototype.visitFunctionCall=function(t,e){var r,n=this.visitAll(t.args,Ih.Expression);return r=t instanceof Lh?t.converter(n):this.visit(t.target,Ih.Expression).callFn(n),Zr(e,r)},t.prototype.visitImplicitReceiver=function(t,e){return Xr(e,t),this._implicitReceiver},t.prototype.visitInterpolation=function(t,e){Xr(e,t);for(var r=[Sr(t.expressions.length)],n=0;n<t.strings.length-1;n++)r.push(Sr(t.strings[n])),r.push(this.visit(t.expressions[n],Ih.Expression));return r.push(Sr(t.strings[t.strings.length-1])),t.expressions.length<=9?vr(de(zu.inlineInterpolate)).callFn(r):vr(de(zu.interpolate)).callFn([r[0],br(r.slice(1))])},t.prototype.visitKeyedRead=function(t,e){var r=this.leftMostSafeNode(t);return r?this.convertSafeAccess(t,r,e):Zr(e,this.visit(t.obj,Ih.Expression).key(this.visit(t.key,Ih.Expression)))},t.prototype.visitKeyedWrite=function(t,e){var r=this.visit(t.obj,Ih.Expression),n=this.visit(t.key,Ih.Expression),o=this.visit(t.value,Ih.Expression);return Zr(e,r.key(n).set(o))},t.prototype.visitLiteralArray=function(){throw new Error("Illegal State: literal arrays should have been converted into functions")},t.prototype.visitLiteralMap=function(){throw new Error("Illegal State: literal maps should have been converted into functions")},t.prototype.visitLiteralPrimitive=function(t,e){return Zr(e,Sr(t.value))},t.prototype._getLocal=function(t){return this._localResolver.getLocal(t)},t.prototype.visitMethodCall=function(t,e){var r=this.leftMostSafeNode(t);if(r)return this.convertSafeAccess(t,r,e);var n=this.visitAll(t.args,Ih.Expression),o=null,i=this.visit(t.receiver,Ih.Expression);if(i===this._implicitReceiver){var s=this._getLocal(t.name);s&&(o=s.callFn(n))}return null==o&&(o=i.callMethod(t.name,n)),Zr(e,o)},t.prototype.visitPrefixNot=function(t,e){return Zr(e,Cr(this.visit(t.expression,Ih.Expression)))},t.prototype.visitPropertyRead=function(t,e){var r=this.leftMostSafeNode(t);if(r)return this.convertSafeAccess(t,r,e);var n=null,o=this.visit(t.receiver,Ih.Expression);return o===this._implicitReceiver&&(n=this._getLocal(t.name)),null==n&&(n=o.prop(t.name)),Zr(e,n)},t.prototype.visitPropertyWrite=function(t,e){var r=this.visit(t.receiver,Ih.Expression);if(r===this._implicitReceiver){var n=this._getLocal(t.name);if(n)throw new Error("Cannot assign to a reference or variable!")}return Zr(e,r.prop(t.name).set(this.visit(t.value,Ih.Expression)))},t.prototype.visitSafePropertyRead=function(t,e){return this.convertSafeAccess(t,this.leftMostSafeNode(t),e)},t.prototype.visitSafeMethodCall=function(t,e){return this.convertSafeAccess(t,this.leftMostSafeNode(t),e)},t.prototype.visitAll=function(t,e){var r=this;return t.map(function(t){return r.visit(t,e)})},t.prototype.visitQuote=function(t){throw new Error("Quotes are not supported for evaluation!\n Statement: "+t.uninterpretedExpression+" located at "+t.location)},t.prototype.visit=function(t,e){var r=this._resultMap.get(t);return r?r:(this._nodeMap.get(t)||t).visit(this,e)},t.prototype.convertSafeAccess=function(t,e,r){var n=this.visit(e.receiver,Ih.Expression),o=void 0;this.needsTemporary(e.receiver)&&(o=this.allocateTemporary(),n=o.set(n),this._resultMap.set(e.receiver,o));var i=n.isBlank();e instanceof Ci?this._nodeMap.set(e,new wi(e.span,e.receiver,e.name,e.args)):this._nodeMap.set(e,new ci(e.span,e.receiver,e.name));var s=this.visit(t,Ih.Expression);return this._nodeMap["delete"](e),o&&this.releaseTemporary(o),Zr(r,i.conditional(Sr(null),s))},t.prototype.leftMostSafeNode=function(t){var e=this,r=function(t,r){return(e._nodeMap.get(r)||r).visit(t)};return t.visit({visitBinary:function(){return null},visitChain:function(){return null},visitConditional:function(){return null},visitFunctionCall:function(){return null},visitImplicitReceiver:function(){return null},visitInterpolation:function(){return null},visitKeyedRead:function(t){return r(this,t.obj)},visitKeyedWrite:function(){return null},visitLiteralArray:function(){return null},visitLiteralMap:function(){return null},visitLiteralPrimitive:function(){return null},visitMethodCall:function(t){return r(this,t.receiver)},visitPipe:function(){return null},visitPrefixNot:function(){return null},visitPropertyRead:function(t){return r(this,t.receiver)},visitPropertyWrite:function(){return null},visitQuote:function(){return null},visitSafeMethodCall:function(t){return r(this,t.receiver)||t},visitSafePropertyRead:function(t){return r(this,t.receiver)||t}})},t.prototype.needsTemporary=function(t){var e=this,r=function(t,r){return r&&(e._nodeMap.get(r)||r).visit(t)},n=function(t,e){return e.some(function(e){return r(t,e)})};return t.visit({visitBinary:function(t){return r(this,t.left)||r(this,t.right)},visitChain:function(){return!1},visitConditional:function(t){return r(this,t.condition)||r(this,t.trueExp)||r(this,t.falseExp)},visitFunctionCall:function(){return!0},visitImplicitReceiver:function(){return!1},visitInterpolation:function(t){return n(this,t.expressions)},visitKeyedRead:function(){return!1},visitKeyedWrite:function(){return!1},visitLiteralArray:function(){return!0},visitLiteralMap:function(){return!0},visitLiteralPrimitive:function(){return!1},visitMethodCall:function(){return!0},visitPipe:function(){return!0},visitPrefixNot:function(t){return r(this,t.expression)},visitPropertyRead:function(){return!1},visitPropertyWrite:function(){return!1},visitQuote:function(){return!1},visitSafeMethodCall:function(){return!0},visitSafePropertyRead:function(){return!1}})},t.prototype.allocateTemporary=function(){var t=this._currentTemporary++;return this.temporaryCount=Math.max(this._currentTemporary,this.temporaryCount),new Ol(Wr(this.bindingId,t))},t.prototype.releaseTemporary=function(t){if(this._currentTemporary--,t.name!=Wr(this.bindingId,this._currentTemporary))throw new Error("Temporary "+t.name+" released out of order")},t}(),jh=function(){function t(){}return t.prototype.getLocal=function(t){return t===Mh.event.name?Mh.event:null},t}(),Lh=function(t){function e(e,r,n){var o=t.call(this,e,null,r)||this;return o.args=r,o.converter=n,o}return Zn(e,t),e}(Ei),Vh="class",Fh="style",Uh="$implicit",Bh=function(){function t(t,e,r){this.statements=t,this.viewClassVar=e,this.rendererTypeVar=r}return t}(),Hh=function(){function t(t,e){this._genConfigNext=t,this._schemaRegistry=e}return t.prototype.compileComponent=function(t,e,r,n){var o=0,i=mn(e),s=[],a=void 0;if(!t.isHost){var u=t.template,c=[];u.animations&&u.animations.length&&c.push(new Kl("animation",Pr(u.animations),!0));var l=yr(T(t.type.reference));a=l.name,s.push(l.set(vr(de(zu.createRendererType2)).callFn([new Ql([new Kl("encapsulation",Sr(u.encapsulation)),new Kl("styles",r),new Kl("data",new Ql(c))])])).toDeclStmt(gr(de(zu.RendererType2)),[ep.Final]))}var p=function(e){var r=o++;return new Qh(e,t,r,n,i,p)},h=p(null);return h.visitAll([],e),s.push.apply(s,h.build()),new Bh(s,h.viewName,a)},t}();Hh.decorators=[{type:z}],Hh.ctorParameters=function(){return[{type:ti},{type:Ju}]};var qh=yr("l"),zh=yr("v"),Gh=yr("ck"),Wh=yr("co"),$h=yr("en"),Kh=yr("ad"),Qh=function(){function t(t,e,r,n,o,i){this.parent=t,this.component=e,this.embeddedViewIndex=r,this.usedPipes=n,this.staticQueryIds=o,this.viewBuilderFactory=i,this.nodes=[],this.purePipeNodeIndices=Object.create(null),this.refNodeIndices=Object.create(null),this.variables=[],this.children=[],this.compType=this.embeddedViewIndex>0?El:gr(this.component.type)}return Object.defineProperty(t.prototype,"viewName",{get:function(){return x(this.component.type.reference,this.embeddedViewIndex)},enumerable:!0,configurable:!0}),t.prototype.visitAll=function(t,e){var n=this;if(this.variables=t,this.parent||this.usedPipes.forEach(function(t){t.pure&&(n.purePipeNodeIndices[t.name]=n._createPipe(null,t))}),!this.parent){var o=yn(this.staticQueryIds);this.component.viewQueries.forEach(function(t,e){var r=e+1,i=t.first?0:1,s=67108864|_n(o,r,t.first);n.nodes.push(function(){return{sourceSpan:null,nodeFlags:s,nodeDef:vr(de(zu.queryDef)).callFn([Sr(s),Sr(r),new Ql([new Kl(t.propertyName,Sr(i))])])}})})}r(this,e),this.parent&&(0===e.length||un(e))&&this.nodes.push(function(){return{sourceSpan:null,nodeFlags:1,nodeDef:vr(de(zu.anchorDef)).callFn([Sr(0),Jl,Jl,Sr(0)])}})},t.prototype.build=function(t){void 0===t&&(t=[]),this.children.forEach(function(e){return e.build(t)});var r=this._createNodeExpressions(),n=r.updateRendererStmts,o=r.updateDirectivesStmts,i=r.nodeDefExprs,s=this._createUpdateFn(n),a=this._createUpdateFn(o),u=0;this.parent||this.component.changeDetection!==e.ChangeDetectionStrategy.OnPush||(u|=2);var c=new op(this.viewName,[new Hl(qh.name)],[new sp(vr(de(zu.viewDef)).callFn([Sr(u),br(i),a,s]))],gr(de(zu.ViewDefinition)));return t.push(c),t},t.prototype._createUpdateFn=function(t){var e;if(t.length>0){var r=[];!this.component.isHost&&fr(t).has(Wh.name)&&r.push(Wh.set(zh.prop("component")).toDeclStmt(this.compType)),e=Er([new Hl(Gh.name,Sl),new Hl(zh.name,Sl)],r.concat(t),Sl)}else e=Jl;return e},t.prototype.visitNgContent=function(t){this.nodes.push(function(){return{sourceSpan:t.sourceSpan,nodeFlags:4,nodeDef:vr(de(zu.ngContentDef)).callFn([Sr(t.ngContentIndex),Sr(t.index)])}})},t.prototype.visitText=function(t){this.nodes.push(function(){return{sourceSpan:t.sourceSpan,nodeFlags:2,nodeDef:vr(de(zu.textDef)).callFn([Sr(t.ngContentIndex),br([Sr(t.value)])])}})},t.prototype.visitBoundText=function(t){var e=this,r=this.nodes.length;this.nodes.push(null);var n=t.value,o=n.ast,i=o.expressions.map(function(n,o){return e._preprocessUpdateExpression({nodeIndex:r,bindingIndex:o,sourceSpan:t.sourceSpan,context:Wh,value:n})});this.nodes[r]=function(){return{sourceSpan:t.sourceSpan,nodeFlags:2,nodeDef:vr(de(zu.textDef)).callFn([Sr(t.ngContentIndex),br(o.strings.map(function(t){return Sr(t)}))]),updateRenderer:i}}},t.prototype.visitEmbeddedTemplate=function(t){var e=this,r=this.nodes.length;this.nodes.push(null);var n=this._visitElementOrTemplate(r,t),o=n.flags,i=n.queryMatchesExpr,s=n.hostEvents,a=this.viewBuilderFactory(this);this.children.push(a),a.visitAll(t.variables,t.children);var u=this.nodes.length-r-1;this.nodes[r]=function(){return{sourceSpan:t.sourceSpan,nodeFlags:1|o,nodeDef:vr(de(zu.anchorDef)).callFn([Sr(o),i,Sr(t.ngContentIndex),Sr(u),e._createElementHandleEventFn(r,s),yr(a.viewName)])}}},t.prototype.visitElement=function(t){var e=this,n=this.nodes.length;this.nodes.push(null);var i=o(t.name)?null:t.name,s=this._visitElementOrTemplate(n,t),a=s.flags,u=s.usedEvents,c=s.queryMatchesExpr,l=s.hostBindings,p=s.hostEvents,h=[],f=[],d=[];if(i){var m=t.inputs.map(function(t){return{context:Wh,inputAst:t,dirAst:null}}).concat(l);m.length&&(f=m.map(function(t,r){return e._preprocessUpdateExpression({context:t.context,nodeIndex:n,bindingIndex:r,sourceSpan:t.inputAst.sourceSpan,value:t.inputAst.value})}),h=m.map(function(t){return ln(t.inputAst,t.dirAst)})),d=u.map(function(t){var e=t[0],r=t[1];return br([Sr(e),Sr(r)])})}r(this,t.children);var y=this.nodes.length-n-1,v=t.directives.find(function(t){return t.directive.isComponent}),g=Jl,_=Jl;v&&(_=vr({reference:v.directive.componentViewType}),g=vr({reference:v.directive.rendererType})),this.nodes[n]=function(){return{sourceSpan:t.sourceSpan,nodeFlags:1|a,nodeDef:vr(de(zu.elementDef)).callFn([Sr(a),c,Sr(t.ngContentIndex),Sr(y),Sr(i),i?pn(t):Jl,h.length?br(h):Jl,d.length?br(d):Jl,e._createElementHandleEventFn(n,p),_,g]),updateRenderer:f}}},t.prototype._visitElementOrTemplate=function(t,r){var n=this,o=0;r.hasViewContainer&&(o|=8388608);var i=new Map;r.outputs.forEach(function(t){var r=gn(t,null),n=r.name,o=r.target;i.set(e.ɵelementEventFullName(o,n),[o,n])}),r.directives.forEach(function(t){t.hostEvents.forEach(function(r){var n=gn(r,t),o=n.name,s=n.target;i.set(e.ɵelementEventFullName(s,o),[s,o])})});var s=[],a=[],u=vn(r.directives);u&&this._visitProvider(u,r.queryMatches),r.providers.forEach(function(e){var o=void 0,u=void 0;if(r.directives.forEach(function(t,r){t.directive.type.reference===R(e.token)&&(o=t,u=r)}),o){var c=n._visitDirective(e,o,u,t,r.references,r.queryMatches,i,n.staticQueryIds.get(r)),l=c.hostBindings,p=c.hostEvents;s.push.apply(s,l),a.push.apply(a,p)}else n._visitProvider(e,r.queryMatches)});var c=[];return r.queryMatches.forEach(function(t){var e=void 0;R(t.value)===fe(zu.ElementRef)?e=0:R(t.value)===fe(zu.ViewContainerRef)?e=3:R(t.value)===fe(zu.TemplateRef)&&(e=2),null!=e&&c.push(br([Sr(t.queryId),Sr(e)]))}),r.references.forEach(function(e){var r=void 0;e.value?R(e.value)===fe(zu.TemplateRef)&&(r=2):r=1,null!=r&&(n.refNodeIndices[e.name]=t,c.push(br([Sr(e.name),Sr(r)])))}),r.outputs.forEach(function(t){a.push({context:Wh,eventAst:t,dirAst:null})}),{flags:o,usedEvents:Array.from(i.values()),queryMatchesExpr:c.length?br(c):Jl,hostBindings:s,hostEvents:a}},t.prototype._visitDirective=function(t,e,r,n,o,i,s,a){var u=this,c=this.nodes.length;this.nodes.push(null),e.directive.queries.forEach(function(t,r){var n=e.contentQueryStartId+r,o=33554432|_n(a,n,t.first),i=t.first?0:1;u.nodes.push(function(){return{sourceSpan:e.sourceSpan,nodeFlags:o,nodeDef:vr(de(zu.queryDef)).callFn([Sr(o),Sr(n),new Ql([new Kl(t.propertyName,Sr(i))])])}})});var l=this.nodes.length-c-1,p=this._visitProviderOrDirective(t,i),h=p.flags,f=p.queryMatchExprs,d=p.providerExpr,m=p.depsExpr;o.forEach(function(e){e.value&&R(e.value)===R(t.token)&&(u.refNodeIndices[e.name]=c,f.push(br([Sr(e.name),Sr(4)])))}),e.directive.isComponent&&(h|=16384);var y=e.inputs.map(function(t,e){var r=br([Sr(e),Sr(t.directiveName)]);return new Kl(t.directiveName,r,!1)}),v=[],g=e.directive;Object.keys(g.outputs).forEach(function(t){var e=g.outputs[t];s.has(e)&&v.push(new Kl(t,Sr(e),!1))});var _=[];(e.inputs.length||(163840&h)>0)&&(_=e.inputs.map(function(t,e){return u._preprocessUpdateExpression({nodeIndex:c,bindingIndex:e,sourceSpan:t.sourceSpan,context:Wh,value:t.value})}));var b=vr(de(zu.nodeValue)).callFn([zh,Sr(c)]),w=e.hostProperties.map(function(t){return{context:b,dirAst:e,inputAst:t}}),C=e.hostEvents.map(function(t){return{context:b,eventAst:t,dirAst:e}});return this.nodes[c]=function(){return{sourceSpan:e.sourceSpan,nodeFlags:8192|h,nodeDef:vr(de(zu.directiveDef)).callFn([Sr(h),f.length?br(f):Jl,Sr(l),d,m,y.length?new Ql(y):Jl,v.length?new Ql(v):Jl]),updateDirectives:_,directive:e.directive.type}},{hostBindings:w,hostEvents:C}},t.prototype._visitProvider=function(t,e){var r=this.nodes.length;this.nodes.push(null);var n=this._visitProviderOrDirective(t,e),o=n.flags,i=n.queryMatchExprs,s=n.providerExpr,a=n.depsExpr;this.nodes[r]=function(){return{sourceSpan:t.sourceSpan,nodeFlags:o,nodeDef:vr(de(zu.providerDef)).callFn([Sr(o),i.length?br(i):Jl,sn(t.token),s,a])}}},t.prototype._visitProviderOrDirective=function(t,r){var n=0;t.eager||(n|=2048),t.providerType===po.PrivateService&&(n|=4096),t.lifecycleHooks.forEach(function(r){(r===e.ɵLifecycleHooks.OnDestroy||t.providerType===po.Directive||t.providerType===po.Component)&&(n|=cn(r))});var o=[];r.forEach(function(e){R(e.value)===R(t.token)&&o.push(br([Sr(e.queryId),Sr(4)]))});var i=rn(t),s=i.providerExpr,a=i.depsExpr,u=i.flags;return{flags:n|u,queryMatchExprs:o,providerExpr:s,depsExpr:a}},t.prototype.getLocal=function(t){if(t==Mh.event.name)return Mh.event;for(var e=zh,r=this;r;r=r.parent,e=e.prop("parent").cast(El)){var n=r.refNodeIndices[t];if(null!=n)return vr(de(zu.nodeValue)).callFn([e,Sr(n)]);var o=r.variables.find(function(e){return e.name===t});if(o){var i=o.value||Uh;return e.prop("context").prop(i)}}return null},t.prototype.createLiteralArrayConverter=function(t,e){if(0===e){var r=vr(de(zu.EMPTY_ARRAY));return function(){return r}}var n=this.nodes.length;return this.nodes.push(function(){return{sourceSpan:t,nodeFlags:16,nodeDef:vr(de(zu.pureArrayDef)).callFn([Sr(e)])}}),function(t){return fn(n,t)}},t.prototype.createLiteralMapConverter=function(t,e){if(0===e.length){var r=vr(de(zu.EMPTY_MAP));return function(){return r}}var n=this.nodes.length;return this.nodes.push(function(){return{sourceSpan:t,nodeFlags:32,nodeDef:vr(de(zu.pureObjectDef)).callFn([br(e.map(function(t){return Sr(t)}))])}}),function(t){return fn(n,t)}},t.prototype.createPipeConverter=function(t,e,r){var n=this.usedPipes.find(function(t){return t.name===e});if(n.pure){var o=this.nodes.length;this.nodes.push(function(){return{sourceSpan:t.sourceSpan,nodeFlags:64,nodeDef:vr(de(zu.purePipeDef)).callFn([Sr(r)])}});for(var i=zh,s=this;s.parent;)s=s.parent,i=i.prop("parent").cast(El);var a=s.purePipeNodeIndices[e],u=vr(de(zu.nodeValue)).callFn([i,Sr(a)]);return function(e){return dn(t.nodeIndex,t.bindingIndex,fn(o,[u].concat(e)))}}var c=this._createPipe(t.sourceSpan,n),l=vr(de(zu.nodeValue)).callFn([zh,Sr(c)]);return function(e){return dn(t.nodeIndex,t.bindingIndex,l.callMethod("transform",e))}},t.prototype._createPipe=function(t,r){var n=this.nodes.length,o=0;r.type.lifecycleHooks.forEach(function(t){t===e.ɵLifecycleHooks.OnDestroy&&(o|=cn(t))});var i=r.type.diDeps.map(an);return this.nodes.push(function(){return{sourceSpan:t,nodeFlags:8,nodeDef:vr(de(zu.pipeDef)).callFn([Sr(o),vr(r.type),br(i)])}}),n},t.prototype._preprocessUpdateExpression=function(t){var e=this;return{nodeIndex:t.nodeIndex,bindingIndex:t.bindingIndex,sourceSpan:t.sourceSpan,context:t.context,value:qr({createLiteralArrayConverter:function(r){return e.createLiteralArrayConverter(t.sourceSpan,r)},createLiteralMapConverter:function(r){return e.createLiteralMapConverter(t.sourceSpan,r)},createPipeConverter:function(r,n){return e.createPipeConverter(t,r,n)}},t.value)}},t.prototype._createNodeExpressions=function(){function t(t,n,o,i){var s=[],a=o.map(function(t){var n=t.sourceSpan,o=t.context,i=t.value,a=""+r++,u=o===Wh?e:null,c=zr(u,o,i,a),l=c.stmts,p=c.currValExpr;return s.push.apply(s,l.map(function(t){return dr(t,n)})),mr(p,n)});return(o.length||i)&&s.push(dr(fn(t,a).toStmt(),n)),s}var e=this,r=0,n=[],o=[],i=this.nodes.map(function(e,r){var i=e(),s=i.nodeDef,a=i.nodeFlags,u=i.updateDirectives,c=i.updateRenderer,l=i.sourceSpan;c&&n.push.apply(n,t(r,l,c,!1)),u&&o.push.apply(o,t(r,l,u,(163840&a)>0));var p=3&a?new Xl([qh.callFn([]).callFn([]),s]):s;return mr(p,l)});return{updateRendererStmts:n,updateDirectivesStmts:o,nodeDefExprs:i}},t.prototype._createElementHandleEventFn=function(t,r){var n=this,o=[],i=0;r.forEach(function(t){var r=t.context,s=t.eventAst,a=t.dirAst,u=""+i++,c=r===Wh?n:null,l=Hr(c,r,s.handler,u),p=l.stmts,h=l.allowDefault,f=p;h&&f.push(Kh.set(h.and(Kh)).toStmt());var d=gn(s,a),m=d.target,y=d.name,v=e.ɵelementEventFullName(m,y);o.push(dr(new hp(Sr(v).identical($h),f),s.sourceSpan))});var s;if(o.length>0){var a=[Kh.set(Sr(!0)).toDeclStmt(xl)];!this.component.isHost&&fr(o).has(Wh.name)&&a.push(Wh.set(zh.prop("component")).toDeclStmt(this.compType)),s=Er([new Hl(zh.name,Sl),new Hl($h.name,Sl),new Hl(Mh.event.name,Sl)],a.concat(o,[new sp(Kh)]),Sl)}else s=Jl;return s},t.prototype.visitDirective=function(){},t.prototype.visitDirectiveProperty=function(){},t.prototype.visitReference=function(){},t.prototype.visitVariable=function(){},t.prototype.visitEvent=function(){},t.prototype.visitElementProperty=function(){},t.prototype.visitAttr=function(){},t}(),Xh=function(){function t(t,e,r){this.srcFileUrl=t,this.genFileUrl=e,this.source=r}return t}(),Zh=function(t){function e(e,r){var n=t.call(this)||this;return n.symbolResolver=e,n.summaryResolver=r,n.symbols=[],n.indexBySymbol=new Map,n.processedSummaryBySymbol=new Map,n.processedSummaries=[],n}return Zn(e,t),e.prototype.addOrMergeSummary=function(t){var e=t.metadata;if(e&&"class"===e.__symbolic){var r={};Object.keys(e).forEach(function(t){"decorators"!==t&&(r[t]=e[t])}),e=r}var n=this.processedSummaryBySymbol.get(t.symbol);n||(n=this.processValue({symbol:t.symbol}),this.processedSummaries.push(n),this.processedSummaryBySymbol.set(t.symbol,n)),null==n.metadata&&null!=e&&(n.metadata=this.processValue(e)),null==n.type&&null!=t.type&&(n.type=this.processValue(t.type))},e.prototype.serialize=function(){var t=this,e=[],r=JSON.stringify({summaries:this.processedSummaries,symbols:this.symbols.map(function(r,n){r.assertNoMembers();var o=void 0;return t.summaryResolver.isLibraryFile(r.filePath)&&(o=r.name+"_"+n,e.push({symbol:r,exportAs:o})),{__symbol:n,name:r.name,filePath:t.summaryResolver.getLibraryFileName(r.filePath),importAs:o}})});return{json:r,exportAs:e }},e.prototype.processValue=function(t){return d(t,this,null)},e.prototype.visitOther=function(t){if(t instanceof mo){var e=this.symbolResolver.getStaticSymbol(t.filePath,t.name),r=this.indexBySymbol.get(e);return null==r&&(r=this.indexBySymbol.size,this.indexBySymbol.set(e,r),this.symbols.push(e)),{__symbol:r,members:t.members}}},e}(Oo),Yh=function(t){function e(e){var r=t.call(this)||this;return r.symbolCache=e,r}return Zn(e,t),e.prototype.deserialize=function(t){var e=this,r=JSON.parse(t),n=[];this.symbols=[],r.symbols.forEach(function(t){var r=e.symbolCache.get(t.filePath,t.name);e.symbols.push(r),t.importAs&&n.push({symbol:r,importAs:t.importAs})});var o=d(r.summaries,this,null);return{summaries:o,importAs:n}},e.prototype.visitStringMap=function(e,r){if("__symbol"in e){var n=this.symbols[e.__symbol],o=e.members;return o.length?this.symbolCache.get(n.filePath,n.name,o):n}return t.prototype.visitStringMap.call(this,e,r)},e}(Oo),Jh=function(){function t(t,e,r,n,o,i,s,a,u,c,l,p,h){this._config=t,this._host=e,this._metadataResolver=r,this._templateParser=n,this._styleCompiler=o,this._viewCompiler=i,this._ngModuleCompiler=s,this._outputEmitter=a,this._summaryResolver=u,this._localeId=c,this._translationFormat=l,this._genFilePreamble=p,this._symbolResolver=h}return t.prototype.clearCache=function(){this._metadataResolver.clearCache()},t.prototype.compileAll=function(t){var e=this,r=An(this._symbolResolver,t,this._host),n=Tn(r,this._host,this._metadataResolver),o=n.ngModuleByPipeOrDirective,i=n.files,s=n.ngModules;return Promise.all(s.map(function(t){return e._metadataResolver.loadNgModuleDirectiveAndPipeMetadata(t.type.reference,!1)})).then(function(){var t=i.map(function(t){return e._compileSrcFile(t.srcUrl,o,t.directives,t.pipes,t.ngModules,t.injectables)});return N(t)})},t.prototype._compileSrcFile=function(t,e,r,n,o,i){var s=this,a=Je(t)[1],u=[],c=[],l=[];if(l.push(this._createSummary(t,r,n,o,i,u,c)),c.push.apply(c,o.map(function(t){return s._compileModule(t,u)})),r.forEach(function(r){var n=s._metadataResolver.getDirectiveMetadata(r);if(!n.isComponent)return Promise.resolve(null);var o=e.get(r);if(!o)throw new Error("Internal Error: cannot determine the module for component "+E(n.type)+"!");Sn(n);var i=s._styleCompiler.compileComponent(n);i.externalStylesheets.forEach(function(e){l.push(s._codgenStyles(t,e,a))});var p=s._compileComponent(n,o,o.transitiveModule.directives,i.componentStylesheet,a,u);c.push(s._compileComponentFactory(n,o,a,u),p.viewClassVar,p.compRenderTypeVar)}),u.length>0){var p=this._codegenSourceModule(t,Xe(t),u,c);l.unshift(p)}return l},t.prototype._createSummary=function(t,e,r,n,o,i,s){var a=this,u=this._symbolResolver.getSymbolsOf(t).map(function(t){return a._symbolResolver.resolveSymbol(t)}),c=n.map(function(t){return a._metadataResolver.getNgModuleSummary(t)}).concat(e.map(function(t){return a._metadataResolver.getDirectiveSummary(t)}),r.map(function(t){return a._metadataResolver.getPipeSummary(t)}),o.map(function(t){return a._metadataResolver.getInjectableSummary(t)})),l=bn(this._summaryResolver,this._symbolResolver,u,c),p=l.json,h=l.exportAs;return h.forEach(function(t){i.push(yr(t.exportAs).set(vr({reference:t.symbol})).toDeclStmt()),s.push(t.exportAs)}),new Xh(t,tr(t),p)},t.prototype._compileModule=function(t,e){var r=this._metadataResolver.getNgModuleMetadata(t),n=[];this._localeId&&n.push({token:ye(zu.LOCALE_ID),useValue:this._localeId}),this._translationFormat&&n.push({token:ye(zu.TRANSLATIONS_FORMAT),useValue:this._translationFormat});var o=this._ngModuleCompiler.compile(r,n);return e.push.apply(e,o.statements),o.ngModuleFactoryVar},t.prototype._compileComponentFactory=function(t,e,r,n){var o=this._metadataResolver.getHostComponentType(t.type.reference),i=k(o,t,this._metadataResolver.getHostComponentViewClass(o)),s=this._compileComponent(i,e,[t.type],null,r,n).viewClassVar,a=O(t.type.reference),u=[];for(var c in t.inputs){var l=t.inputs[c];u.push(new Kl(c,Sr(l),!1))}var p=[];for(var c in t.outputs){var l=t.outputs[c];p.push(new Kl(c,Sr(l),!1))}return n.push(yr(a).set(vr(de(zu.createComponentFactory)).callFn([Sr(t.selector),vr(t.type),yr(s),new Ql(u),new Ql(p),br(t.template.ngContentSelectors.map(function(t){return Sr(t)}))])).toDeclStmt(gr(de(zu.ComponentFactory),[gr(t.type)],[yl.Const]),[ep.Final])),a},t.prototype._compileComponent=function(t,e,r,n,o,i){var s=this,a=r.map(function(t){return s._metadataResolver.getDirectiveSummary(t.reference)}),u=e.transitiveModule.pipes.map(function(t){return s._metadataResolver.getPipeSummary(t.reference)}),c=this._templateParser.parse(t,t.template.template,a,u,e.schemas,j(e.type,t,t.template)),l=c.template,p=c.pipes,h=n?yr(n.stylesVar):br([]),f=this._viewCompiler.compileComponent(t,l,h,p);return n&&i.push.apply(i,Cn(this._symbolResolver,n,o)),i.push.apply(i,f.statements),{viewClassVar:f.viewClassVar,compRenderTypeVar:f.rendererTypeVar}},t.prototype._codgenStyles=function(t,e,r){return Cn(this._symbolResolver,e,r),this._codegenSourceModule(t,En(e.meta.moduleUrl,e.isShimmed,r),e.statements,[e.stylesVar])},t.prototype._codegenSourceModule=function(t,e,r,n){return new Xh(t,e,this._outputEmitter.emitStatements(D(t),e,r,n,this._genFilePreamble))},t}(),tf=function(){function t(t){this.staticDelegate=t,this.dynamicDelegate=new e.ɵReflectionCapabilities}return t.install=function(r){e.ɵreflector.updateCapabilities(new t(r))},t.prototype.isReflectionEnabled=function(){return!0},t.prototype.factory=function(t){return this.dynamicDelegate.factory(t)},t.prototype.hasLifecycleHook=function(t,e){return Mn(t)?this.staticDelegate.hasLifecycleHook(t,e):this.dynamicDelegate.hasLifecycleHook(t,e)},t.prototype.parameters=function(t){return Mn(t)?this.staticDelegate.parameters(t):this.dynamicDelegate.parameters(t)},t.prototype.annotations=function(t){return Mn(t)?this.staticDelegate.annotations(t):this.dynamicDelegate.annotations(t)},t.prototype.propMetadata=function(t){return Mn(t)?this.staticDelegate.propMetadata(t):this.dynamicDelegate.propMetadata(t)},t.prototype.getter=function(t){return this.dynamicDelegate.getter(t)},t.prototype.setter=function(t){return this.dynamicDelegate.setter(t)},t.prototype.method=function(t){return this.dynamicDelegate.method(t)},t.prototype.importUri=function(t){return this.staticDelegate.importUri(t)},t.prototype.resourceUri=function(t){return this.staticDelegate.resourceUri(t)},t.prototype.resolveIdentifier=function(t,e,r){return this.staticDelegate.resolveIdentifier(t,e,r)},t.prototype.resolveEnum=function(t,e){return Mn(t)?this.staticDelegate.resolveEnum(t,e):null},t}(),ef="@angular/core",rf=/^\$.*\$$/,nf={__symbolic:"ignore"},of=function(){function t(t,r,n,o,i){void 0===n&&(n=[]),void 0===o&&(o=[]);var s=this;this.summaryResolver=t,this.symbolResolver=r,this.errorRecorder=i,this.annotationCache=new Map,this.propertyCache=new Map,this.parameterCache=new Map,this.methodCache=new Map,this.conversionMap=new Map,this.annotationForParentClassWithSummaryKind=new Map,this.annotationNames=new Map,this.initializeConversionMap(),n.forEach(function(t){return s._registerDecoratorOrConstructor(s.getStaticSymbol(t.filePath,t.name),t.ctor)}),o.forEach(function(t){return s._registerFunction(s.getStaticSymbol(t.filePath,t.name),t.fn)}),this.annotationForParentClassWithSummaryKind.set(Wo.Directive,[e.Directive,e.Component]),this.annotationForParentClassWithSummaryKind.set(Wo.Pipe,[e.Pipe]),this.annotationForParentClassWithSummaryKind.set(Wo.NgModule,[e.NgModule]),this.annotationForParentClassWithSummaryKind.set(Wo.Injectable,[e.Injectable,e.Pipe,e.Directive,e.Component,e.NgModule]),this.annotationNames.set(e.Directive,"Directive"),this.annotationNames.set(e.Component,"Component"),this.annotationNames.set(e.Pipe,"Pipe"),this.annotationNames.set(e.NgModule,"NgModule"),this.annotationNames.set(e.Injectable,"Injectable")}return t.prototype.importUri=function(t){var e=this.findSymbolDeclaration(t);return e?e.filePath:null},t.prototype.resourceUri=function(t){var e=this.findSymbolDeclaration(t);return this.symbolResolver.getResourcePath(e)},t.prototype.resolveIdentifier=function(t,e,r){var n=this.getStaticSymbol(e,t),o=this.findDeclaration(e,t);return n!=o&&this.symbolResolver.recordImportAs(o,n),r&&r.length?this.getStaticSymbol(o.filePath,o.name,r):o},t.prototype.findDeclaration=function(t,e,r){return this.findSymbolDeclaration(this.symbolResolver.getSymbolByModule(t,e,r))},t.prototype.findSymbolDeclaration=function(t){var e=this.symbolResolver.resolveSymbol(t);return e&&e.metadata instanceof mo?this.findSymbolDeclaration(e.metadata):t},t.prototype.resolveEnum=function(t,e){var r=t,n=(r.members||[]).concat(e);return this.getStaticSymbol(r.filePath,r.name,n)},t.prototype.annotations=function(t){var e=this,r=this.annotationCache.get(t);if(!r){r=[];var n=this.getTypeMetadata(t),o=this.findParentType(t,n);if(o){var i=this.annotations(o);r.push.apply(r,i)}var s=[];if(n.decorators&&(s=this.simplify(t,n.decorators),r.push.apply(r,s)),o&&!this.summaryResolver.isLibraryFile(t.filePath)&&this.summaryResolver.isLibraryFile(o.filePath)){var a=this.summaryResolver.resolveSummary(o);if(a&&a.type){var u=this.annotationForParentClassWithSummaryKind.get(a.type.summaryKind),c=u.some(function(t){return s.some(function(e){return e instanceof t})});c||this.reportError(v("Class "+t.name+" in "+t.filePath+" extends from a "+Wo[a.type.summaryKind]+" in another compilation unit without duplicating the decorator. "+("Please add a "+u.map(function(t){return e.annotationNames.get(t)}).join(" or ")+" decorator to the class.")),t)}}this.annotationCache.set(t,r.filter(function(t){return!!t}))}return r},t.prototype.propMetadata=function(t){var e=this,r=this.propertyCache.get(t);if(!r){var n=this.getTypeMetadata(t);r={};var o=this.findParentType(t,n);if(o){var i=this.propMetadata(o);Object.keys(i).forEach(function(t){r[t]=i[t]})}var s=n.members||{};Object.keys(s).forEach(function(n){var o=s[n],i=o.find(function(t){return"property"==t.__symbolic||"method"==t.__symbolic}),a=[];r[n]&&a.push.apply(a,r[n]),r[n]=a,i&&i.decorators&&a.push.apply(a,e.simplify(t,i.decorators))}),this.propertyCache.set(t,r)}return r},t.prototype.parameters=function(t){if(!(t instanceof mo))return this.reportError(new Error("parameters received "+JSON.stringify(t)+" which is not a StaticSymbol"),t),[];try{var e=this.parameterCache.get(t);if(!e){var r=this.getTypeMetadata(t),n=this.findParentType(t,r),o=r?r.members:null,i=o?o.__ctor__:null;if(i){var s=i.find(function(t){return"constructor"==t.__symbolic}),a=this.simplify(t,s.parameters||[]),u=this.simplify(t,s.parameterDecorators||[]);e=[],a.forEach(function(t,r){var n=[];t&&n.push(t);var o=u?u[r]:null;o&&n.push.apply(n,o),e.push(n)})}else n&&(e=this.parameters(n));e||(e=[]),this.parameterCache.set(t,e)}return e}catch(c){throw console.error("Failed on type "+JSON.stringify(t)+" with error "+c),c}},t.prototype._methodNames=function(t){var e=this.methodCache.get(t);if(!e){var r=this.getTypeMetadata(t);e={};var n=this.findParentType(t,r);if(n){var o=this._methodNames(n);Object.keys(o).forEach(function(t){e[t]=o[t]})}var i=r.members||{};Object.keys(i).forEach(function(t){var r=i[t],n=r.some(function(t){return"method"==t.__symbolic});e[t]=e[t]||n}),this.methodCache.set(t,e)}return e},t.prototype.findParentType=function(t,e){var r=this.trySimplify(t,e["extends"]);return r instanceof mo?r:void 0},t.prototype.hasLifecycleHook=function(t,e){t instanceof mo||this.reportError(new Error("hasLifecycleHook received "+JSON.stringify(t)+" which is not a StaticSymbol"),t);try{return!!this._methodNames(t)[e]}catch(r){throw console.error("Failed on type "+JSON.stringify(t)+" with error "+r),r}},t.prototype._registerDecoratorOrConstructor=function(t,e){this.conversionMap.set(t,function(t,r){return new(e.bind.apply(e,[void 0].concat(r)))})},t.prototype._registerFunction=function(t,e){this.conversionMap.set(t,function(t,r){return e.apply(void 0,r)})},t.prototype.initializeConversionMap=function(){this.injectionToken=this.findDeclaration(ef,"InjectionToken"),this.opaqueToken=this.findDeclaration(ef,"OpaqueToken"),this._registerDecoratorOrConstructor(this.findDeclaration(ef,"Host"),e.Host),this._registerDecoratorOrConstructor(this.findDeclaration(ef,"Injectable"),e.Injectable),this._registerDecoratorOrConstructor(this.findDeclaration(ef,"Self"),e.Self),this._registerDecoratorOrConstructor(this.findDeclaration(ef,"SkipSelf"),e.SkipSelf),this._registerDecoratorOrConstructor(this.findDeclaration(ef,"Inject"),e.Inject),this._registerDecoratorOrConstructor(this.findDeclaration(ef,"Optional"),e.Optional),this._registerDecoratorOrConstructor(this.findDeclaration(ef,"Attribute"),e.Attribute),this._registerDecoratorOrConstructor(this.findDeclaration(ef,"ContentChild"),e.ContentChild),this._registerDecoratorOrConstructor(this.findDeclaration(ef,"ContentChildren"),e.ContentChildren),this._registerDecoratorOrConstructor(this.findDeclaration(ef,"ViewChild"),e.ViewChild),this._registerDecoratorOrConstructor(this.findDeclaration(ef,"ViewChildren"),e.ViewChildren),this._registerDecoratorOrConstructor(this.findDeclaration(ef,"Input"),e.Input),this._registerDecoratorOrConstructor(this.findDeclaration(ef,"Output"),e.Output),this._registerDecoratorOrConstructor(this.findDeclaration(ef,"Pipe"),e.Pipe),this._registerDecoratorOrConstructor(this.findDeclaration(ef,"HostBinding"),e.HostBinding),this._registerDecoratorOrConstructor(this.findDeclaration(ef,"HostListener"),e.HostListener),this._registerDecoratorOrConstructor(this.findDeclaration(ef,"Directive"),e.Directive),this._registerDecoratorOrConstructor(this.findDeclaration(ef,"Component"),e.Component),this._registerDecoratorOrConstructor(this.findDeclaration(ef,"NgModule"),e.NgModule),this._registerDecoratorOrConstructor(this.findDeclaration(ef,"Host"),e.Host),this._registerDecoratorOrConstructor(this.findDeclaration(ef,"Self"),e.Self),this._registerDecoratorOrConstructor(this.findDeclaration(ef,"SkipSelf"),e.SkipSelf),this._registerDecoratorOrConstructor(this.findDeclaration(ef,"Optional"),e.Optional),this._registerFunction(this.findDeclaration(ef,"trigger"),e.trigger),this._registerFunction(this.findDeclaration(ef,"state"),e.state),this._registerFunction(this.findDeclaration(ef,"transition"),e.transition),this._registerFunction(this.findDeclaration(ef,"style"),e.style),this._registerFunction(this.findDeclaration(ef,"animate"),e.animate),this._registerFunction(this.findDeclaration(ef,"keyframes"),e.keyframes),this._registerFunction(this.findDeclaration(ef,"sequence"),e.sequence),this._registerFunction(this.findDeclaration(ef,"group"),e.group)},t.prototype.getStaticSymbol=function(t,e,r){return this.symbolResolver.getStaticSymbol(t,e,r)},t.prototype.reportError=function(t,e,r){if(!this.errorRecorder)throw t;this.errorRecorder(t,e&&e.filePath||r)},t.prototype.trySimplify=function(t,e){var r=this.errorRecorder;this.errorRecorder=function(){};var n=this.simplify(t,e);return this.errorRecorder=r,n},t.prototype.simplify=function(t,e){function r(t,e,n){function a(t){var e=o.symbolResolver.resolveSymbol(t);return e?e.metadata:null}function u(e,o,a){if(o&&"function"==o.__symbolic){if(s.get(e))throw new Error("Recursion not supported");s.set(e,!0);try{var u=o.value;if(u&&(0!=n||"error"!=u.__symbolic)){var l=o.parameters,p=o.defaults;a=a.map(function(e){return r(t,e,n+1)}).map(function(t){return Rn(t)?void 0:t}),p&&p.length>a.length&&a.push.apply(a,p.slice(a.length).map(function(t){return c(t)}));for(var h=sf.build(),f=0;f<l.length;f++)h.define(l[f],a[f]);var d,m=i;try{i=h.done(),d=r(e,u,n+1)}finally{i=m}return d}}finally{s["delete"](e)}}return 0===n?nf:c({__symbolic:"error",message:"Function call not supported",context:e})}function c(e){if(Dn(e))return e;if(e instanceof Array){for(var s=[],l=0,p=e;l<p.length;l++){var h=p[l];if(h&&"spread"===h.__symbolic){var f=c(h.expression);if(Array.isArray(f)){for(var d=0,m=f;d<m.length;d++){var y=m[d];s.push(y)}continue}}var v=c(h);Rn(v)||s.push(v)}return s}if(e instanceof mo){if(e===o.injectionToken||e===o.opaqueToken||o.conversionMap.has(e))return e;var g=e,_=a(g);return _?r(g,_,n+1):g}if(e){if(e.__symbolic){var g=void 0;switch(e.__symbolic){case"binop":var b=c(e.left);if(Rn(b))return b;var w=c(e.right);if(Rn(w))return w;switch(e.operator){case"&&":return b&&w;case"||":return b||w;case"|":return b|w;case"^":return b^w;case"&":return b&w;case"==":return b==w;case"!=":return b!=w;case"===":return b===w;case"!==":return b!==w;case"<":return w>b;case">":return b>w;case"<=":return w>=b;case">=":return b>=w;case"<<":return b<<w;case">>":return b>>w;case"+":return b+w;case"-":return b-w;case"*":return b*w;case"/":return b/w;case"%":return b%w}return null;case"if":var C=c(e.condition);return c(C?e.thenExpression:e.elseExpression);case"pre":var E=c(e.operand);if(Rn(E))return E;switch(e.operator){case"+":return E;case"-":return-E;case"!":return!E;case"~":return~E}return null;case"index":var S=c(e.expression),x=c(e.index);return S&&Dn(x)?S[x]:null;case"select":var T=e.member,P=t,A=c(e.expression);if(A instanceof mo){var O=A.members.concat(T);P=o.getStaticSymbol(A.filePath,A.name,O);var _=a(P);return _?r(P,_,n+1):P}return A&&Dn(T)?r(P,A[T],n+1):null;case"reference":var M=e.name,R=i.resolve(M);if(R!=sf.missing)return R;break;case"class":return t;case"function":return t;case"new":case"call":if(g=r(t,e.expression,n+1),g instanceof mo){if(g===o.injectionToken||g===o.opaqueToken)return t;var k=e.arguments||[],I=o.conversionMap.get(g);if(I){var N=k.map(function(e){return r(t,e,n+1)}).map(function(t){return Rn(t)?void 0:t});return I(t,N)}var D=a(g);return u(g,D,k)}return nf;case"error":var j=In(e);return e.line?(j=j+" (position "+(e.line+1)+":"+(e.character+1)+" in the original .ts file)",o.reportError(jn(j,t.filePath,e.line,e.character),t)):o.reportError(new Error(j),t),nf;case"ignore":return e}return null}return Nn(e,function(t){return c(t)})}return nf}try{return c(e)}catch(l){var p=t.members.length?"."+t.members.join("."):"",h=l.message+", resolving symbol "+t.name+p+" in "+t.filePath;if(l.fileName)throw jn(h,l.fileName,l.line,l.column);throw v(h)}}var n=this,o=this,i=sf.empty,s=new Map,a=function(t,e,o){try{return r(t,e,o)}catch(i){n.reportError(i,t)}},u=this.errorRecorder?a(t,e,0):r(t,e,0);return Rn(u)?void 0:u},t.prototype.getTypeMetadata=function(t){var e=this.symbolResolver.resolveSymbol(t);return e&&e.metadata?e.metadata:{__symbolic:"class"}},t}(),sf=function(){function t(){}return t.prototype.resolve=function(){},t.build=function(){var e=new Map;return{define:function(t,r){return e.set(t,r),this},done:function(){return e.size>0?new af(e):t.empty}}},t}();sf.missing={},sf.empty={resolve:function(){return sf.missing}};var af=function(t){function e(e){var r=t.call(this)||this;return r.bindings=e,r}return Zn(e,t),e.prototype.resolve=function(t){return this.bindings.has(t)?this.bindings.get(t):sf.missing},e}(sf),uf=function(){function t(t,e){this.symbol=t,this.metadata=e}return t}(),cf=3,lf=function(){function t(t,e,r,n){this.host=t,this.staticSymbolCache=e,this.summaryResolver=r,this.errorRecorder=n,this.metadataCache=new Map,this.resolvedSymbols=new Map,this.resolvedFilePaths=new Set,this.importAs=new Map,this.symbolResourcePaths=new Map,this.symbolFromFile=new Map}return t.prototype.resolveSymbol=function(t){if(t.members.length>0)return this._resolveSymbolMembers(t);var e=this.resolvedSymbols.get(t);return e?e:(e=this._resolveSymbolFromSummary(t))?e:(this._createSymbolsOf(t.filePath),e=this.resolvedSymbols.get(t))},t.prototype.getImportAs=function(t){if(t.members.length){var e=this.getStaticSymbol(t.filePath,t.name),r=this.getImportAs(e);return r?this.getStaticSymbol(r.filePath,r.name,t.members):null}var n=this.summaryResolver.getImportAs(t);return n||(n=this.importAs.get(t)),n},t.prototype.getResourcePath=function(t){return this.symbolResourcePaths.get(t)||t.filePath},t.prototype.getTypeArity=function(t){if(Ye(t.filePath))return null;for(var e=this.resolveSymbol(t);e&&e.metadata instanceof mo;)e=this.resolveSymbol(e.metadata);return e&&e.metadata&&e.metadata.arity||null},t.prototype.recordImportAs=function(t,e){t.assertNoMembers(),e.assertNoMembers(),this.importAs.set(t,e)},t.prototype.invalidateFile=function(t){this.metadataCache["delete"](t),this.resolvedFilePaths["delete"](t);var e=this.symbolFromFile.get(t);if(e){this.symbolFromFile["delete"](t);for(var r=0,n=e;r<n.length;r++){var o=n[r];this.resolvedSymbols["delete"](o),this.importAs["delete"](o),this.symbolResourcePaths["delete"](o)}}},t.prototype._resolveSymbolMembers=function(t){var e=t.members,r=this.resolveSymbol(this.getStaticSymbol(t.filePath,t.name));if(!r)return null;var n=r.metadata;if(n instanceof mo)return new uf(t,this.getStaticSymbol(n.filePath,n.name,e));if(!n||"class"!==n.__symbolic){for(var o=n,i=0;i<e.length&&o;i++)o=o[e[i]];return new uf(t,o)}return n.statics&&1===e.length?new uf(t,n.statics[e[0]]):null},t.prototype._resolveSymbolFromSummary=function(t){var e=this.summaryResolver.resolveSummary(t);return e?new uf(t,e.metadata):null},t.prototype.getStaticSymbol=function(t,e,r){return this.staticSymbolCache.get(t,e,r)},t.prototype.getSymbolsOf=function(t){var e=new Set(this.summaryResolver.getSymbolsOf(t));return this._createSymbolsOf(t),this.resolvedSymbols.forEach(function(r){r.symbol.filePath===t&&e.add(r.symbol)}),Array.from(e)},t.prototype._createSymbolsOf=function(t){var e=this;if(!this.resolvedFilePaths.has(t)){this.resolvedFilePaths.add(t);var r=[],n=this.getModuleMetadata(t);if(n.metadata){var o=new Set(Object.keys(n.metadata).map(Ln)),i=n.origins||{};Object.keys(n.metadata).forEach(function(s){var a=n.metadata[s],u=Ln(s),c=e.getStaticSymbol(t,u),l=void 0;n.importAs&&(l=e.getStaticSymbol(n.importAs,u),e.recordImportAs(c,l));var p=i.hasOwnProperty(s)&&i[s];if(p){var h=e.resolveModule(p,t);h?e.symbolResourcePaths.set(c,h):e.reportError(new Error("Couldn't resolve original symbol for "+p+" from "+t))}r.push(e.createResolvedSymbol(c,t,o,a))})}if(n.exports)for(var s=function(n){if(n["export"])n["export"].forEach(function(o){var i;i="string"==typeof o?o:o.as,i=Ln(i);var s=i;"string"!=typeof o&&(s=Ln(o.name));var a=e.resolveModule(n.from,t);if(a){var u=e.getStaticSymbol(a,s),c=e.getStaticSymbol(t,i);r.push(e.createExport(c,u))}});else{var o=a.resolveModule(n.from,t);if(o){var i=a.getSymbolsOf(o);i.forEach(function(n){var o=e.getStaticSymbol(t,n.name);r.push(e.createExport(o,n))})}}},a=this,u=0,c=n.exports;u<c.length;u++){var l=c[u];s(l)}r.forEach(function(t){return e.resolvedSymbols.set(t.symbol,t)}),this.symbolFromFile.set(t,r.map(function(t){return t.symbol}))}},t.prototype.createResolvedSymbol=function(t,e,r,n){if(this.summaryResolver.isLibraryFile(t.filePath)&&n&&"class"===n.__symbolic){var o={__symbolic:"class",arity:n.arity};return new uf(t,o)}var i=this,s=function(n){function o(){return null!==n&&n.apply(this,arguments)||this}return Zn(o,n),o.prototype.visitStringMap=function(o,s){var a=o.__symbolic;if("function"===a){var u=s.length;s.push.apply(s,o.parameters||[]);var c=n.prototype.visitStringMap.call(this,o,s);return s.length=u,c}if("reference"!==a)return n.prototype.visitStringMap.call(this,o,s);var l=o.module,p=o.name?Ln(o.name):o.name;if(!p)return null;var h=void 0;return l?(h=i.resolveModule(l,t.filePath),h?i.getStaticSymbol(h,p):{__symbolic:"error",message:"Could not resolve "+l+" relative to "+t.filePath+"."}):s.indexOf(p)>=0?{__symbolic:"reference",name:p}:r.has(p)?i.getStaticSymbol(e,p):void 0},o}(Oo),a=d(n,new s,[]);return a instanceof mo?this.createExport(t,a):new uf(t,a)},t.prototype.createExport=function(t,e){return t.assertNoMembers(),e.assertNoMembers(),this.summaryResolver.isLibraryFile(t.filePath)&&this.importAs.set(e,this.getImportAs(t)||t),new uf(t,e)},t.prototype.reportError=function(t,e,r){if(!this.errorRecorder)throw t;this.errorRecorder(t,e&&e.filePath||r)},t.prototype.getModuleMetadata=function(t){var e=this.metadataCache.get(t);if(!e){var r=this.host.getMetadataFor(t);if(r){var n=-1;r.forEach(function(t){t.version>n&&(n=t.version,e=t)})}if(e||(e={__symbolic:"module",version:cf,module:t,metadata:{}}),e.version!=cf){var o=2==e.version?"Unsupported metadata version "+e.version+" for module "+t+". This module should be compiled with a newer version of ngc":"Metadata version mismatch for module "+t+", found version "+e.version+", expected "+cf;this.reportError(new Error(o))}this.metadataCache.set(t,e)}return e},t.prototype.getSymbolByModule=function(t,e,r){var n=this.resolveModule(t,r);return n?this.getStaticSymbol(n,e):(this.reportError(new Error("Could not resolve module "+t+(r?" relative to $ {\n containingFile\n } ":""))),this.getStaticSymbol("ERROR:"+t,e))},t.prototype.resolveModule=function(t,e){try{return this.host.moduleNameToFileName(t,e)}catch(r){console.error("Could not resolve module '"+t+"' relative to file "+e),this.reportError(r,void 0,e)}return null},t}(),pf=function(){function t(t,e){this.host=t,this.staticSymbolCache=e,this.summaryCache=new Map,this.loadedFilePaths=new Set,this.importAs=new Map}return t.prototype.isLibraryFile=function(t){return!this.host.isSourceFile(Ze(t))},t.prototype.getLibraryFileName=function(t){return this.host.getOutputFileName(t)},t.prototype.resolveSummary=function(t){t.assertNoMembers();var e=this.summaryCache.get(t);return e||(this._loadSummaryFile(t.filePath),e=this.summaryCache.get(t)),e},t.prototype.getSymbolsOf=function(t){return this._loadSummaryFile(t),Array.from(this.summaryCache.keys()).filter(function(e){return e.filePath===t})},t.prototype.getImportAs=function(t){return t.assertNoMembers(),this.importAs.get(t)},t.prototype._loadSummaryFile=function(t){var e=this;if(!this.loadedFilePaths.has(t)&&(this.loadedFilePaths.add(t),this.isLibraryFile(t))){var r=tr(t),n=void 0;try{n=this.host.loadSummary(r)}catch(o){throw console.error("Error loading summary file "+r),o}if(n){var i=wn(this.staticSymbolCache,n),s=i.summaries,a=i.importAs;s.forEach(function(t){return e.summaryCache.set(t.symbol,t)}),a.forEach(function(r){e.importAs.set(r.symbol,e.staticSymbolCache.get(Xe(t),r.importAs))})}}},t}(),hf=function(){function t(t,e,r,n){this.parent=t,this.instance=e,this.className=r,this.vars=n}return t.prototype.createChildWihtLocalVars=function(){return new t(this,this.instance,this.className,new Map)},t}(),ff=function(){function t(t){this.value=t}return t}(),df=function(){function t(){}return t.prototype.debugAst=function(t){return Nr(t)},t.prototype.visitDeclareVarStmt=function(t,e){return e.vars.set(t.name,t.value.visitExpression(this,e)),null},t.prototype.visitWriteVarExpr=function(t,e){for(var r=t.value.visitExpression(this,e),n=e;null!=n;){if(n.vars.has(t.name))return n.vars.set(t.name,r),r;n=n.parent}throw new Error("Not declared variable "+t.name)},t.prototype.visitReadVarExpr=function(t,e){var r=t.name;if(null!=t.builtin)switch(t.builtin){case Al.Super:return e.instance.__proto__;case Al.This:return e.instance;case Al.CatchError:r=mf;break;case Al.CatchStack:r=yf;break;default:throw new Error("Unknown builtin variable "+t.builtin)}for(var n=e;null!=n;){if(n.vars.has(r))return n.vars.get(r);n=n.parent}throw new Error("Not declared variable "+r)},t.prototype.visitWriteKeyExpr=function(t,e){var r=t.receiver.visitExpression(this,e),n=t.index.visitExpression(this,e),o=t.value.visitExpression(this,e);return r[n]=o,o},t.prototype.visitWritePropExpr=function(t,e){var r=t.receiver.visitExpression(this,e),n=t.value.visitExpression(this,e);return r[t.name]=n,n},t.prototype.visitInvokeMethodExpr=function(t,e){var r,n=t.receiver.visitExpression(this,e),o=this.visitAllExpressions(t.args,e);if(null!=t.builtin)switch(t.builtin){case Il.ConcatArray:r=n.concat.apply(n,o);break;case Il.SubscribeObservable:r=n.subscribe({next:o[0]});break;case Il.Bind:r=n.bind.apply(n,o);break;default:throw new Error("Unknown builtin method "+t.builtin)}else r=n[t.name].apply(n,o);return r},t.prototype.visitInvokeFunctionExpr=function(t,e){var r=this.visitAllExpressions(t.args,e),n=t.fn;if(n instanceof Ol&&n.builtin===Al.Super)return e.instance.constructor.prototype.constructor.apply(e.instance,r),null;var o=t.fn.visitExpression(this,e);return o.apply(null,r)},t.prototype.visitReturnStmt=function(t,e){return new ff(t.value.visitExpression(this,e))},t.prototype.visitDeclareClassStmt=function(t,e){var r=Bn(t,e,this);return e.vars.set(t.name,r),null},t.prototype.visitExpressionStmt=function(t,e){return t.expr.visitExpression(this,e)},t.prototype.visitIfStmt=function(t,e){var r=t.condition.visitExpression(this,e);return r?this.visitAllStatements(t.trueCase,e):null!=t.falseCase?this.visitAllStatements(t.falseCase,e):null},t.prototype.visitTryCatchStmt=function(t,e){try{return this.visitAllStatements(t.bodyStmts,e)}catch(r){var n=e.createChildWihtLocalVars();return n.vars.set(mf,r),n.vars.set(yf,r.stack),this.visitAllStatements(t.catchStmts,n)}},t.prototype.visitThrowStmt=function(t,e){throw t.error.visitExpression(this,e)},t.prototype.visitCommentStmt=function(){return null},t.prototype.visitInstantiateExpr=function(t,e){var r=this.visitAllExpressions(t.args,e),n=t.classExpr.visitExpression(this,e);return new(n.bind.apply(n,[void 0].concat(r)))},t.prototype.visitLiteralExpr=function(t){return t.value},t.prototype.visitExternalExpr=function(t){return t.value.reference},t.prototype.visitConditionalExpr=function(t,e){return t.condition.visitExpression(this,e)?t.trueCase.visitExpression(this,e):null!=t.falseCase?t.falseCase.visitExpression(this,e):null},t.prototype.visitNotExpr=function(t,e){return!t.condition.visitExpression(this,e)},t.prototype.visitCastExpr=function(t,e){return t.value.visitExpression(this,e)},t.prototype.visitFunctionExpr=function(t,e){var r=t.params.map(function(t){return t.name});return Hn(r,t.statements,e,this)},t.prototype.visitDeclareFunctionStmt=function(t,e){var r=t.params.map(function(t){return t.name});return e.vars.set(t.name,Hn(r,t.statements,e,this)),null},t.prototype.visitBinaryOperatorExpr=function(t,e){var r=this,n=function(){return t.lhs.visitExpression(r,e)},o=function(){return t.rhs.visitExpression(r,e)};switch(t.operator){case Tl.Equals:return n()==o();case Tl.Identical:return n()===o();case Tl.NotEquals:return n()!=o();case Tl.NotIdentical:return n()!==o();case Tl.And:return n()&&o();case Tl.Or:return n()||o();case Tl.Plus:return n()+o();case Tl.Minus:return n()-o();case Tl.Divide:return n()/o();case Tl.Multiply:return n()*o();case Tl.Modulo:return n()%o();case Tl.Lower:return n()<o();case Tl.LowerEquals:return n()<=o();case Tl.Bigger:return n()>o();case Tl.BiggerEquals:return n()>=o();default:throw new Error("Unknown operator "+t.operator)}},t.prototype.visitReadPropExpr=function(t,e){var r,n=t.receiver.visitExpression(this,e);return r=n[t.name]},t.prototype.visitReadKeyExpr=function(t,e){var r=t.receiver.visitExpression(this,e),n=t.index.visitExpression(this,e);return r[n]},t.prototype.visitLiteralArrayExpr=function(t,e){return this.visitAllExpressions(t.entries,e)},t.prototype.visitLiteralMapExpr=function(t,e){var r=this,n={};return t.entries.forEach(function(t){return n[t.key]=t.value.visitExpression(r,e)}),n},t.prototype.visitCommaExpr=function(t,e){var r=this.visitAllExpressions(t.parts,e);return r[r.length-1]},t.prototype.visitAllExpressions=function(t,e){var r=this;return t.map(function(t){return t.visitExpression(r,e)})},t.prototype.visitAllStatements=function(t,e){for(var r=0;r<t.length;r++){var n=t[r],o=n.visitStatement(this,e);if(o instanceof ff)return o}return null},t}(),mf="error",yf="stack",vf=function(t){function e(){return t.call(this,!1)||this}return Zn(e,t),e.prototype.visitDeclareClassStmt=function(t,e){var r=this;return e.pushClass(t),this._visitClassConstructor(t,e),null!=t.parent&&(e.print(t,t.name+".prototype = Object.create("),t.parent.visitExpression(this,e),e.println(t,".prototype);")),t.getters.forEach(function(n){return r._visitClassGetter(t,n,e)}),t.methods.forEach(function(n){return r._visitClassMethod(t,n,e)}),e.popClass(),null},e.prototype._visitClassConstructor=function(t,e){e.print(t,"function "+t.name+"("), null!=t.constructorMethod&&this._visitParams(t.constructorMethod.params,e),e.println(t,") {"),e.incIndent(),null!=t.constructorMethod&&t.constructorMethod.body.length>0&&(e.println(t,"var self = this;"),this.visitAllStatements(t.constructorMethod.body,e)),e.decIndent(),e.println(t,"}")},e.prototype._visitClassGetter=function(t,e,r){r.println(t,"Object.defineProperty("+t.name+".prototype, '"+e.name+"', { get: function() {"),r.incIndent(),e.body.length>0&&(r.println(t,"var self = this;"),this.visitAllStatements(e.body,r)),r.decIndent(),r.println(t,"}});")},e.prototype._visitClassMethod=function(t,e,r){r.print(t,t.name+".prototype."+e.name+" = function("),this._visitParams(e.params,r),r.println(t,") {"),r.incIndent(),e.body.length>0&&(r.println(t,"var self = this;"),this.visitAllStatements(e.body,r)),r.decIndent(),r.println(t,"};")},e.prototype.visitReadVarExpr=function(e,r){if(e.builtin===Al.This)r.print(e,"self");else{if(e.builtin===Al.Super)throw new Error("'super' needs to be handled at a parent ast node, not at the variable level!");t.prototype.visitReadVarExpr.call(this,e,r)}return null},e.prototype.visitDeclareVarStmt=function(t,e){return e.print(t,"var "+t.name+" = "),t.value.visitExpression(this,e),e.println(t,";"),null},e.prototype.visitCastExpr=function(t,e){return t.value.visitExpression(this,e),null},e.prototype.visitInvokeFunctionExpr=function(e,r){var n=e.fn;return n instanceof Ol&&n.builtin===Al.Super?(r.currentClass.parent.visitExpression(this,r),r.print(e,".call(this"),e.args.length>0&&(r.print(e,", "),this.visitAllExpressions(e.args,r,",")),r.print(e,")")):t.prototype.visitInvokeFunctionExpr.call(this,e,r),null},e.prototype.visitFunctionExpr=function(t,e){return e.print(t,"function("),this._visitParams(t.params,e),e.println(t,") {"),e.incIndent(),this.visitAllStatements(t.statements,e),e.decIndent(),e.print(t,"}"),null},e.prototype.visitDeclareFunctionStmt=function(t,e){return e.print(t,"function "+t.name+"("),this._visitParams(t.params,e),e.println(t,") {"),e.incIndent(),this.visitAllStatements(t.statements,e),e.decIndent(),e.println(t,"}"),null},e.prototype.visitTryCatchStmt=function(t,e){e.println(t,"try {"),e.incIndent(),this.visitAllStatements(t.bodyStmts,e),e.decIndent(),e.println(t,"} catch ("+Np.name+") {"),e.incIndent();var r=[Dp.set(Np.prop("stack")).toDeclStmt(null,[ep.Final])].concat(t.catchStmts);return this.visitAllStatements(r,e),e.decIndent(),e.println(t,"}"),null},e.prototype._visitParams=function(t,e){this.visitAllObjects(function(t){return e.print(null,t.name)},t,e,",")},e.prototype.getBuiltinMethodName=function(t){var e;switch(t){case Il.ConcatArray:e="concat";break;case Il.SubscribeObservable:e="subscribe";break;case Il.Bind:e="bind";break;default:throw new Error("Unknown builtin method: "+t)}return e},e}(Vp),gf=function(t){function e(){var e=t.apply(this,arguments)||this;return e._evalArgNames=[],e._evalArgValues=[],e}return Zn(e,t),e.prototype.getArgs=function(){for(var t={},e=0;e<this._evalArgNames.length;e++)t[this._evalArgNames[e]]=this._evalArgValues[e];return t},e.prototype.visitExternalExpr=function(t,e){var r=t.value.reference,n=this._evalArgValues.indexOf(r);if(-1===n){n=this._evalArgValues.length,this._evalArgValues.push(r);var o=E(t.value)||"val";this._evalArgNames.push("jit_"+o+n)}return e.print(t,this._evalArgNames[n]),null},e}(vf),_f=function(){function t(t,e,r,n,o,i,s,a){this._injector=t,this._metadataResolver=e,this._templateParser=r,this._styleCompiler=n,this._viewCompiler=o,this._ngModuleCompiler=i,this._compilerConfig=s,this._console=a,this._compiledTemplateCache=new Map,this._compiledHostTemplateCache=new Map,this._compiledDirectiveWrapperCache=new Map,this._compiledNgModuleCache=new Map,this._sharedStylesheetCount=0}return Object.defineProperty(t.prototype,"injector",{get:function(){return this._injector},enumerable:!0,configurable:!0}),t.prototype.compileModuleSync=function(t){return this._compileModuleAndComponents(t,!0).syncResult},t.prototype.compileModuleAsync=function(t){return this._compileModuleAndComponents(t,!1).asyncResult},t.prototype.compileModuleAndAllComponentsSync=function(t){return this._compileModuleAndAllComponents(t,!0).syncResult},t.prototype.compileModuleAndAllComponentsAsync=function(t){return this._compileModuleAndAllComponents(t,!1).asyncResult},t.prototype.getNgContentSelectors=function(t){this._console.warn("Compiler.getNgContentSelectors is deprecated. Use ComponentFactory.ngContentSelectors instead!");var r=this._compiledTemplateCache.get(t);if(!r)throw new Error("The component "+e.ɵstringify(t)+" is not yet compiled!");return r.compMeta.template.ngContentSelectors},t.prototype._compileModuleAndComponents=function(t,e){var r=this,n=this._loadModules(t,e),o=function(){return r._compileComponents(t,null),r._compileModule(t)};return e?new Mo(o()):new Mo(null,n.then(o))},t.prototype._compileModuleAndAllComponents=function(t,r){var n=this,o=this._loadModules(t,r),i=function(){var r=[];return n._compileComponents(t,r),new e.ModuleWithComponentFactories(n._compileModule(t),r)};return r?new Mo(i()):new Mo(null,o.then(i))},t.prototype._loadModules=function(t,e){var r=this,n=[],o=this._metadataResolver.getNgModuleMetadata(t);return o.transitiveModule.modules.forEach(function(t){n.push(r._metadataResolver.loadNgModuleDirectiveAndPipeMetadata(t.reference,e))}),Promise.all(n)},t.prototype._compileModule=function(t){var r=this,n=this._compiledNgModuleCache.get(t);if(!n){var o=this._metadataResolver.getNgModuleMetadata(t),i=[this._metadataResolver.getProviderMetadata(new Jo(e.Compiler,{useFactory:function(){return new wf(r,o.type.reference)}}))],s=this._ngModuleCompiler.compile(o,i);n=this._compilerConfig.useJit?zn(V(o),s.statements,[s.ngModuleFactoryVar])[0]:Fn(s.statements,[s.ngModuleFactoryVar])[0],this._compiledNgModuleCache.set(o.type.reference,n)}return n},t.prototype._compileComponents=function(t,e){var r=this,n=this._metadataResolver.getNgModuleMetadata(t),o=new Map,i=new Set;n.transitiveModule.modules.forEach(function(t){var n=r._metadataResolver.getNgModuleMetadata(t.reference);n.declaredDirectives.forEach(function(t){o.set(t.reference,n);var s=r._metadataResolver.getDirectiveMetadata(t.reference);if(s.isComponent&&(i.add(r._createCompiledTemplate(s,n)),e)){var a=r._createCompiledHostTemplate(s.type.reference,n);i.add(a),e.push(s.componentFactory)}})}),n.transitiveModule.modules.forEach(function(t){var e=r._metadataResolver.getNgModuleMetadata(t.reference);e.declaredDirectives.forEach(function(t){var e=r._metadataResolver.getDirectiveMetadata(t.reference);e.isComponent&&e.entryComponents.forEach(function(t){var e=o.get(t.componentType);i.add(r._createCompiledHostTemplate(t.componentType,e))})}),e.entryComponents.forEach(function(t){var e=o.get(t.componentType);i.add(r._createCompiledHostTemplate(t.componentType,e))})}),i.forEach(function(t){return r._compileTemplate(t)})},t.prototype.clearCacheFor=function(t){this._compiledNgModuleCache["delete"](t),this._metadataResolver.clearCacheFor(t),this._compiledHostTemplateCache["delete"](t);var e=this._compiledTemplateCache.get(t);e&&this._compiledTemplateCache["delete"](t)},t.prototype.clearCache=function(){this._metadataResolver.clearCache(),this._compiledTemplateCache.clear(),this._compiledHostTemplateCache.clear(),this._compiledNgModuleCache.clear()},t.prototype._createCompiledHostTemplate=function(t,r){if(!r)throw new Error("Component "+e.ɵstringify(t)+" is not part of any NgModule or the module has not been imported into your module.");var n=this._compiledHostTemplateCache.get(t);if(!n){var o=this._metadataResolver.getDirectiveMetadata(t);Gn(o);var i=o.componentFactory,s=this._metadataResolver.getHostComponentType(t),a=k(s,o,e.ɵgetComponentViewDefinitionFactory(i));n=new bf(!0,o.type,a,r,[o.type]),this._compiledHostTemplateCache.set(t,n)}return n},t.prototype._createCompiledTemplate=function(t,e){var r=this._compiledTemplateCache.get(t.type.reference);return r||(Gn(t),r=new bf(!1,t.type,t,e,e.transitiveModule.directives),this._compiledTemplateCache.set(t.type.reference,r)),r},t.prototype._compileTemplate=function(t){var e=this;if(!t.isCompiled){var r=t.compMeta,n=new Map,o=this._styleCompiler.compileComponent(r);o.externalStylesheets.forEach(function(t){n.set(t.meta.moduleUrl,t)}),this._resolveStylesCompileResult(o.componentStylesheet,n);var i,s,a=t.directives.map(function(t){return e._metadataResolver.getDirectiveSummary(t.reference)}),u=t.ngModule.transitiveModule.pipes.map(function(t){return e._metadataResolver.getPipeSummary(t.reference)}),c=this._templateParser.parse(r,r.template.template,a,u,t.ngModule.schemas,j(t.ngModule.type,t.compMeta,t.compMeta.template)),l=c.template,p=c.pipes,h=this._viewCompiler.compileComponent(r,l,yr(o.componentStylesheet.stylesVar),p),f=o.componentStylesheet.statements.concat(h.statements),d=r.isHost?[h.viewClassVar]:[h.viewClassVar,h.rendererTypeVar];this._compilerConfig.useJit?(y=zn(F(t.ngModule.type,t.compMeta),f,d),i=y[0],s=y[1]):(m=Fn(f,d),i=m[0],s=m[1]),t.compiled(i,s);var m,y}},t.prototype._resolveStylesCompileResult=function(t,e){var r=this;t.dependencies.forEach(function(t){var n=e.get(t.moduleUrl),o=r._resolveAndEvalStylesCompileResult(n,e);t.valuePlaceholder.reference=o})},t.prototype._resolveAndEvalStylesCompileResult=function(t,e){return this._resolveStylesCompileResult(t,e),this._compilerConfig.useJit?zn(L(t.meta,this._sharedStylesheetCount++),t.statements,[t.stylesVar])[0]:Fn(t.statements,[t.stylesVar])[0]},t}();_f.decorators=[{type:z}],_f.ctorParameters=function(){return[{type:e.Injector},{type:dl},{type:Wc},{type:Oh},{type:Hh},{type:Ep},{type:ti},{type:e.ɵConsole}]};var bf=function(){function t(t,e,r,n,o){this.isHost=t,this.compType=e,this.compMeta=r,this.ngModule=n,this.directives=o,this._viewClass=null,this.isCompiled=!1}return t.prototype.compiled=function(t,e){this._viewClass=t,this.compMeta.componentViewType.setDelegate(t);for(var r in e)this.compMeta.rendererType[r]=e[r];this.isCompiled=!0},t}(),wf=function(){function t(t,e){this._delegate=t,this._ngModule=e}return Object.defineProperty(t.prototype,"_injector",{get:function(){return this._delegate.injector},enumerable:!0,configurable:!0}),t.prototype.compileModuleSync=function(t){return this._delegate.compileModuleSync(t)},t.prototype.compileModuleAsync=function(t){return this._delegate.compileModuleAsync(t)},t.prototype.compileModuleAndAllComponentsSync=function(t){return this._delegate.compileModuleAndAllComponentsSync(t)},t.prototype.compileModuleAndAllComponentsAsync=function(t){return this._delegate.compileModuleAndAllComponentsAsync(t)},t.prototype.getNgContentSelectors=function(t){return this._delegate.getNgContentSelectors(t)},t.prototype.clearCache=function(){this._delegate.clearCache()},t.prototype.clearCacheFor=function(t){this._delegate.clearCacheFor(t)},t}(),Cf=function(){function t(t,e,r,n){void 0===n&&(n=null),this._htmlParser=t,this._implicitTags=e,this._implicitAttrs=r,this._locale=n,this._messages=[]}return t.prototype.updateFromTemplate=function(t,e,r){var n=this._htmlParser.parse(t,e,!0,r);if(n.errors.length)return n.errors;var o=Pt(n.rootNodes,r,this._implicitTags,this._implicitAttrs);return o.errors.length?o.errors:((i=this._messages).push.apply(i,o.messages),null);var i},t.prototype.getMessages=function(){return this._messages},t.prototype.write=function(t,e){var r={},n=new Ef;this._messages.forEach(function(e){var n=t.digest(e);r.hasOwnProperty(n)?(o=r[n].sources).push.apply(o,e.sources):r[n]=e;var o});var o=Object.keys(r).map(function(o){var i=t.createNameMapper(r[o]),s=r[o],a=i?n.convert(s.nodes,i):s.nodes,u=new pa(a,{},{},s.meaning,s.description,o);return u.sources=s.sources,e&&u.sources.forEach(function(t){return t.filePath=e(t.filePath)}),u});return t.write(o,this._locale)},t}(),Ef=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Zn(e,t),e.prototype.convert=function(t,e){var r=this;return e?t.map(function(t){return t.visit(r,e)}):t},e.prototype.visitTagPlaceholder=function(t,e){var r=this,n=e.toPublicName(t.startName),o=t.closeName?e.toPublicName(t.closeName):t.closeName,i=t.children.map(function(t){return t.visit(r,e)});return new ma(t.tag,t.attrs,n,o,i,t.isVoid,t.sourceSpan)},e.prototype.visitPlaceholder=function(t,e){return new ya(t.value,e.toPublicName(t.name),t.sourceSpan)},e.prototype.visitIcuPlaceholder=function(t,e){return new va(t.value,e.toPublicName(t.name),t.sourceSpan)},e}(ga),Sf=function(){function t(t,e,r,n){this.host=t,this.staticSymbolResolver=e,this.messageBundle=r,this.metadataResolver=n}return t.prototype.extract=function(t){var e=this,r=An(this.staticSymbolResolver,t,this.host),n=Tn(r,this.host,this.metadataResolver),o=n.files,i=n.ngModules;return Promise.all(i.map(function(t){return e.metadataResolver.loadNgModuleDirectiveAndPipeMetadata(t.type.reference,!1)})).then(function(){var t=[];if(o.forEach(function(r){var n=[];r.directives.forEach(function(t){var r=e.metadataResolver.getDirectiveMetadata(t);r&&r.isComponent&&n.push(r)}),n.forEach(function(n){var o=n.template.template,i=Ms.fromArray(n.template.interpolation);t.push.apply(t,e.messageBundle.updateFromTemplate(o,r.srcUrl,i))})}),t.length)throw new Error(t.map(function(t){return t.toString()}).join("\n"));return e.messageBundle})},t.create=function(r,n){var o=new Hu(new Fu),i=Be(),s=new yo,a=new pf(r,s),u=new lf(r,s,a),c=new of(a,u);tf.install(c);var l=new ti({defaultEncapsulation:e.ViewEncapsulation.Emulated,useJit:!1}),p=new ol({get:function(t){return r.loadResource(t)}},i,o,l),h=new Qp,f=new dl(l,new ll(c),new al(c),new pl(c),a,h,p,new e.ɵConsole,s,c),d=new Cf(o,[],{},n),m=new t(r,u,d,f);return{extractor:m,staticReflector:c}},t}(),xf={get:function(t){throw new Error("No ResourceLoader implementation has been provided. Can't read the url \""+t+'"')}},Tf=new e.InjectionToken("HtmlParser"),Pf=[{provide:e.ɵReflector,useValue:e.ɵreflector},{provide:e.ɵReflectorReader,useExisting:e.ɵReflector},{provide:Jc,useValue:xf},hl,e.ɵConsole,Ns,Us,{provide:Tf,useClass:Fu},{provide:Hu,useFactory:Wn,deps:[Tf,[new e.Optional,new e.Inject(e.TRANSLATIONS)],[new e.Optional,new e.Inject(e.TRANSLATIONS_FORMAT)],[ti],[e.ɵConsole]]},{provide:Fu,useExisting:Hu},Wc,ol,dl,tl,Oh,Hh,Ep,{provide:ti,useValue:new ti},_f,{provide:e.Compiler,useExisting:_f},Qp,{provide:Ju,useExisting:Qp},el,al,pl,ll],Af=function(){function t(t){var r={useDebug:e.isDevMode(),useJit:!0,defaultEncapsulation:e.ViewEncapsulation.Emulated,missingTranslation:e.MissingTranslationStrategy.Warning,enableLegacyTemplate:!0};this._defaultOptions=[r].concat(t)}return t.prototype.createCompiler=function(t){void 0===t&&(t=[]);var r=Kn(this._defaultOptions.concat(t)),n=e.ReflectiveInjector.resolveAndCreate([Pf,{provide:ti,useFactory:function(){return new ti({useJit:r.useJit,defaultEncapsulation:r.defaultEncapsulation,missingTranslation:r.missingTranslation,enableLegacyTemplate:r.enableLegacyTemplate})},deps:[]},r.providers]);return n.get(e.Compiler)},t}();Af.decorators=[{type:z}],Af.ctorParameters=function(){return[{type:Array,decorators:[{type:e.Inject,args:[e.COMPILER_OPTIONS]}]}]};var Of=e.createPlatformFactory(e.platformCore,"coreDynamic",[{provide:e.COMPILER_OPTIONS,useValue:{},multi:!0},{provide:e.CompilerFactory,useClass:Af},{provide:e.PLATFORM_INITIALIZER,useValue:$n,multi:!0}]),Mf=function(){function t(){}return t.prototype.fileNameToModuleName=function(){},t.prototype.getImportAs=function(){},t.prototype.getTypeArity=function(){},t}();t.VERSION=Yn,t.TEMPLATE_TRANSFORMS=qc,t.CompilerConfig=ti,t.JitCompiler=_f,t.DirectiveResolver=al,t.PipeResolver=pl,t.NgModuleResolver=ll,t.DEFAULT_INTERPOLATION_CONFIG=Rs,t.InterpolationConfig=Ms,t.NgModuleCompiler=Ep,t.ViewCompiler=Hh,t.isSyntaxError=g,t.syntaxError=v,t.TextAst=Jn,t.BoundTextAst=to,t.AttrAst=eo,t.BoundElementPropertyAst=ro,t.BoundEventAst=no,t.ReferenceAst=oo,t.VariableAst=io,t.ElementAst=so,t.EmbeddedTemplateAst=ao,t.BoundDirectivePropertyAst=uo,t.DirectiveAst=co,t.ProviderAst=lo,t.ProviderAstType=po,t.NgContentAst=ho,t.PropertyBindingType=fo,t.templateVisitAll=r,t.CompileAnimationEntryMetadata=No,t.CompileAnimationStateMetadata=Do,t.CompileAnimationStateDeclarationMetadata=jo,t.CompileAnimationStateTransitionMetadata=Lo,t.CompileAnimationMetadata=Vo,t.CompileAnimationKeyframesSequenceMetadata=Fo,t.CompileAnimationStyleMetadata=Uo,t.CompileAnimationAnimateMetadata=Bo,t.CompileAnimationWithStepsMetadata=Ho,t.CompileAnimationSequenceMetadata=qo,t.CompileAnimationGroupMetadata=zo,t.identifierName=E,t.identifierModuleUrl=S,t.viewClassName=x,t.rendererTypeName=T,t.hostViewClassName=P,t.dirWrapperClassName=A,t.componentFactoryName=O,t.CompileSummaryKind=Wo,t.tokenName=M,t.tokenReference=R,t.CompileStylesheetMetadata=$o,t.CompileTemplateMetadata=Ko,t.CompileDirectiveMetadata=Qo,t.createHostComponentMeta=k,t.CompilePipeMetadata=Xo,t.CompileNgModuleMetadata=Zo,t.TransitiveCompileNgModuleMetadata=Yo,t.ProviderMeta=Jo,t.flatten=N,t.sourceUrl=D,t.templateSourceUrl=j,t.sharedStylesheetJitUrl=L,t.ngModuleJitUrl=V,t.templateJitUrl=F,t.createAotCompiler=Vn,t.AotCompiler=Jh,t.analyzeNgModules=xn,t.analyzeAndValidateNgModules=Tn,t.extractProgramSymbols=An,t.GeneratedFile=Xh,t.StaticReflector=of,t.StaticAndDynamicReflectionCapabilities=tf,t.StaticSymbol=mo,t.StaticSymbolCache=yo,t.ResolvedStaticSymbol=uf,t.StaticSymbolResolver=lf,t.unescapeIdentifier=Ln,t.AotSummaryResolver=pf,t.SummaryResolver=hl,t.i18nHtmlParserFactory=Wn,t.COMPILER_PROVIDERS=Pf,t.JitCompilerFactory=Af,t.platformCoreDynamic=Of,t.createUrlResolverWithoutPackagePrefix=Ue,t.createOfflineCompileUrlResolver=Be,t.DEFAULT_PACKAGE_URL_PROVIDER=tl,t.UrlResolver=el,t.getUrlScheme=He,t.ResourceLoader=Jc,t.ElementSchemaRegistry=Ju,t.Extractor=Sf,t.I18NHtmlParser=Hu,t.MessageBundle=Cf,t.Serializer=Ba,t.Xliff=au,t.Xliff2=bu,t.Xmb=Mu,t.Xtb=ju,t.DirectiveNormalizer=ol,t.ParserError=ei,t.ParseSpan=ri,t.AST=ni,t.Quote=oi,t.EmptyExpr=ii,t.ImplicitReceiver=si,t.Chain=ai,t.Conditional=ui,t.PropertyRead=ci,t.PropertyWrite=li,t.SafePropertyRead=pi,t.KeyedRead=hi,t.KeyedWrite=fi,t.BindingPipe=di,t.LiteralPrimitive=mi,t.LiteralArray=yi,t.LiteralMap=vi,t.Interpolation=gi,t.Binary=_i,t.PrefixNot=bi,t.MethodCall=wi,t.SafeMethodCall=Ci,t.FunctionCall=Ei,t.ASTWithSource=Si,t.TemplateBinding=xi,t.RecursiveAstVisitor=Ti,t.AstTransformer=Pi,t.TokenType=ks,t.Lexer=Ns,t.Token=Ds,t.EOF=js,t.isIdentifier=et,t.isQuote=it,t.SplitInterpolation=Vs,t.TemplateBindingParseResult=Fs,t.Parser=Us,t._ParseAST=Bs,t.ERROR_COLLECTOR_TOKEN=fl,t.CompileMetadataResolver=dl,t.componentModuleUrl=cr,t.Text=Ks,t.Expansion=Qs,t.ExpansionCase=Xs,t.Attribute=Zs,t.Element=Ys,t.Comment=Js,t.visitAll=lt,t.ParseTreeResult=ua,t.TreeError=aa,t.HtmlParser=Fu,t.HtmlTagDefinition=_o,t.getHtmlTagDefinition=c,t.TagContentType=vo,t.splitNsName=n,t.isNgContainer=o,t.isNgContent=i,t.isNgTemplate=s,t.getNsPrefix=a,t.mergeNsAndName=u,t.NAMED_ENTITIES=go,t.ImportResolver=Mf,t.debugOutputAstAsTypeScript=Nr,t.TypeScriptEmitter=Up,t.ParseLocation=qs,t.ParseSourceFile=zs,t.ParseSourceSpan=Gs,t.ParseErrorLevel=Ws,t.ParseError=$s,t.typeSourceSpan=ct,t.DomElementSchemaRegistry=Qp,t.CssSelector=Eo,t.SelectorMatcher=So,t.SelectorListContext=xo,t.SelectorContext=To,t.StylesCompileDependency=Th,t.StylesCompileResult=Ph,t.CompiledStylesheet=Ah,t.StyleCompiler=Oh,t.TemplateParseError=zc,t.TemplateParseResult=Gc,t.TemplateParser=Wc,t.splitClasses=Ne,t.createElementCssSelector=De,t.removeSummaryDuplicates=Le,Object.defineProperty(t,"__esModule",{value:!0})})},{"@angular/core":8}],8:[function(e,r,n){(function(o){!function(o,i){"object"==typeof n&&"undefined"!=typeof r?i(n,e("rxjs/Observable"),e("rxjs/observable/merge"),e("rxjs/operator/share"),e("rxjs/Subject")):"function"==typeof t&&t.amd?t(["exports","rxjs/Observable","rxjs/observable/merge","rxjs/operator/share","rxjs/Subject"],i):i((o.ng=o.ng||{},o.ng.core=o.ng.core||{}),o.Rx,o.Rx.Observable,o.Rx.Observable.prototype,o.Rx)}(this,function(t,e,r,n,i){"use strict";function s(){if(!oo){var t=no.Symbol;if(t&&t.iterator)oo=t.iterator;else for(var e=Object.getOwnPropertyNames(Map.prototype),r=0;r<e.length;++r){var n=e[r];"entries"!==n&&"size"!==n&&Map.prototype[n]===Map.prototype.entries&&(oo=n)}}return oo}function a(t){Zone.current.scheduleMicroTask("scheduleMicrotask",t)}function u(t,e){return t===e||"number"==typeof t&&"number"==typeof e&&isNaN(t)&&isNaN(e)}function c(t){if("string"==typeof t)return t;if(null==t)return""+t;if(t.overriddenName)return""+t.overriddenName;if(t.name)return""+t.name;var e=t.toString();if(null==e)return""+e;var r=e.indexOf("\n");return-1===r?e:e.substring(0,r)}function l(t){return"function"==typeof t&&t.hasOwnProperty("annotation")&&(t=t.annotation),t}function p(t,e){if(t===Object||t===String||t===Function||t===Number||t===Array)throw new Error("Can not use native "+c(t)+" as constructor");if("function"==typeof t)return t;if(Array.isArray(t)){var r=t,n=r.length-1,o=t[n];if("function"!=typeof o)throw new Error("Last position of Class method array must be Function in key "+e+" was '"+c(o)+"'");if(n!=o.length)throw new Error("Number of annotations ("+n+") does not match number of arguments ("+o.length+") in the function: "+c(o));for(var i=[],s=0,a=r.length-1;a>s;s++){var u=[];i.push(u);var p=r[s];if(Array.isArray(p))for(var h=0;h<p.length;h++)u.push(l(p[h]));else u.push("function"==typeof p?l(p):p)}return so.defineMetadata("parameters",i,o),o}throw new Error("Only Function or Array is supported in Class definition for key '"+e+"' is '"+c(t)+"'")}function h(t){var e=p(t.hasOwnProperty("constructor")?t.constructor:void 0,"constructor"),r=e.prototype;if(t.hasOwnProperty("extends")){if("function"!=typeof t["extends"])throw new Error("Class definition 'extends' property must be a constructor function was: "+c(t["extends"]));e.prototype=r=Object.create(t["extends"].prototype)}for(var n in t)"extends"!==n&&"prototype"!==n&&t.hasOwnProperty(n)&&(r[n]=p(t[n],n));this&&this.annotations instanceof Array&&so.defineMetadata("annotations",this.annotations,e);var o=e.name;return o&&"constructor"!==o||(e.overriddenName="class"+io++),e}function f(t,e,r,n){function o(t){if(!so||!so.getOwnMetadata)throw"reflect-metadata shim is required when using class decorators";if(this instanceof o)return i.call(this,t),this;var e=new o(t),r="function"==typeof this&&Array.isArray(this.annotations)?this.annotations:[];r.push(e);var s=function(t){var r=so.getOwnMetadata("annotations",t)||[];return r.push(e),so.defineMetadata("annotations",r,t),t};return s.annotations=r,s.Class=h,n&&n(s),s}var i=d([e]);return r&&(o.prototype=Object.create(r.prototype)),o.prototype.toString=function(){return"@"+t},o.annotationCls=o,o}function d(t){return function(){for(var e=this,r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];t.forEach(function(t,n){var o=r[n];if(Array.isArray(t))e[t[0]]=void 0===o?t[1]:o;else for(var i in t)e[i]=o&&o.hasOwnProperty(i)?o[i]:t[i]})}}function m(t,e,r){function n(){function t(t,e,r){for(var n=so.getOwnMetadata("parameters",t)||[];n.length<=r;)n.push(null);return n[r]=n[r]||[],n[r].push(i),so.defineMetadata("parameters",n,t),t}for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];if(this instanceof n)return o.apply(this,e),this;var i=new(n.bind.apply(n,[void 0].concat(e)));return t.annotation=i,t}var o=d(e);return r&&(n.prototype=Object.create(r.prototype)),n.prototype.toString=function(){return"@"+t},n.annotationCls=n,n}function y(t,e,r){function n(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];if(this instanceof n)return o.apply(this,t),this;var r=new(n.bind.apply(n,[void 0].concat(t)));return function(t,e){var n=so.getOwnMetadata("propMetadata",t.constructor)||{};n[e]=n.hasOwnProperty(e)&&n[e]||[],n[e].unshift(r),so.defineMetadata("propMetadata",n,t.constructor)}}var o=d(e);return r&&(n.prototype=Object.create(r.prototype)),n.prototype.toString=function(){return"@"+t},n.annotationCls=n,n}function v(t){return null==t||t===mo.Default}function g(t){return t.__forward_ref__=g,t.toString=function(){return c(this())},t}function _(t){return"function"==typeof t&&t.hasOwnProperty("__forward_ref__")&&t.__forward_ref__===g?t():t}function b(t){return t[Ho]}function w(t){return t[qo]}function C(t){return t[zo]||E}function E(t){for(var e=[],r=1;r<arguments.length;r++)e[r-1]=arguments[r];t.error.apply(t,e)}function S(t,e){var r=t+" caused by: "+(e instanceof Error?e.message:e),n=Error(r);return n[qo]=e,n}function x(t){for(var e=[],r=0;r<t.length;++r){if(e.indexOf(t[r])>-1)return e.push(t[r]),e;e.push(t[r])}return e}function T(t){if(t.length>1){var e=x(t.slice().reverse()),r=e.map(function(t){return c(t.token)});return" ("+r.join(" -> ")+")"}return""}function P(t,e,r,n){var o=n?S("",n):Error();return o.addKey=A,o.keys=[e],o.injectors=[t],o.constructResolvingMessage=r,o.message=o.constructResolvingMessage(),o[qo]=n,o}function A(t,e){this.injectors.push(t),this.keys.push(e),this.message=this.constructResolvingMessage()}function O(t,e){return P(t,e,function(){var t=c(this.keys[0].token);return"No provider for "+t+"!"+T(this.keys)})}function M(t,e){return P(t,e,function(){return"Cannot instantiate cyclic dependency!"+T(this.keys)})}function R(t,e,r,n){return P(t,n,function(){var t=c(this.keys[0].token);return w(this).message+": Error during instantiation of "+t+"!"+T(this.keys)+"."},e)}function k(t){return Error("Invalid provider - only instances of Provider and Type are allowed, got: "+t)}function I(t,e){for(var r=[],n=0,o=e.length;o>n;n++){var i=e[n];r.push(i&&0!=i.length?i.map(c).join(" "):"?")}return Error("Cannot resolve all parameters for '"+c(t)+"'("+r.join(", ")+"). Make sure that all the parameters are decorated with Inject or have valid type annotations and that '"+c(t)+"' is decorated with Injectable.")}function N(t){return Error("Index "+t+" is out-of-bounds.")}function D(t,e){return Error("Cannot mix multi providers and regular providers, got: "+t+" "+e)}function j(t){return"function"==typeof t}function L(t){return t?t.map(function(t){var e=t.type,r=e.annotationCls,n=t.args?t.args:[];return new(r.bind.apply(r,[void 0].concat(n)))}):[]}function V(t){var e=Object.getPrototypeOf(t.prototype),r=e?e.constructor:null;return r||Object}function F(t){var e,r;if(t.useClass){var n=_(t.useClass);e=ti.factory(n),r=G(n)}else t.useExisting?(e=function(t){return t},r=[ei.fromKey(Wo.get(t.useExisting))]):t.useFactory?(e=t.useFactory,r=z(t.useFactory,t.deps)):(e=function(){return t.useValue},r=ri);return new oi(e,r)}function U(t){return new ni(Wo.get(t.provide),[F(t)],t.multi||!1)}function B(t){var e=q(t,[]),r=e.map(U),n=H(r,new Map);return Array.from(n.values())}function H(t,e){for(var r=0;r<t.length;r++){var n=t[r],o=e.get(n.key.id);if(o){if(n.multiProvider!==o.multiProvider)throw D(o,n);if(n.multiProvider)for(var i=0;i<n.resolvedFactories.length;i++)o.resolvedFactories.push(n.resolvedFactories[i]);else e.set(n.key.id,n)}else{var s=void 0;s=n.multiProvider?new ni(n.key,n.resolvedFactories.slice(),n.multiProvider):n,e.set(n.key.id,s)}}return e}function q(t,e){return t.forEach(function(t){if(t instanceof Qo)e.push({provide:t,useClass:t});else if(t&&"object"==typeof t&&void 0!==t.provide)e.push(t);else{if(!(t instanceof Array))throw k(t);q(t,e)}}),e}function z(t,e){if(e){var r=e.map(function(t){return[t]});return e.map(function(e){return W(t,e,r)})}return G(t)}function G(t){var e=ti.parameters(t);if(!e)return[];if(e.some(function(t){return null==t}))throw I(t,e);return e.map(function(r){return W(t,r,e)})}function W(t,e,r){var n=null,o=!1;if(!Array.isArray(e))return e instanceof Ro?$(e.token,o,null):$(e,o,null);for(var i=null,s=0;s<e.length;++s){var a=e[s];a instanceof Qo?n=a:a instanceof Ro?n=a.token:a instanceof ko?o=!0:a instanceof No||a instanceof Do?i=a:a instanceof Jn&&(n=a)}if(n=_(n),null!=n)return $(n,o,i);throw I(t,r)}function $(t,e,r){return new ei(Wo.get(t),e,r)}function K(t,e){for(var r=new Array(t._providers.length),n=0;n<t._providers.length;++n)r[n]=e(t.getProviderAtIndex(n));return r}function Q(t){return!!t&&"function"==typeof t.then}function X(t){return!!t&&"function"==typeof t.subscribe}function Z(){return""+Y()+Y()+Y()}function Y(){return String.fromCharCode(97+Math.floor(25*Math.random()))}function J(){throw new Error("Runtime compiler is not loaded")}function tt(t){var e=Error("No component factory found for "+c(t)+". Did you add it to @NgModule.entryComponents?");return e[Si]=t,e}function et(){var t=no.wtf;return t&&(Pi=t.trace)?(Ai=Pi.events,!0):!1}function rt(t,e){return void 0===e&&(e=null),Ai.createScope(t,e)}function nt(t,e){return Pi.leaveScope(t,e),e}function ot(t,e){return Pi.beginTimeRange(t,e)}function it(t){Pi.endTimeRange(t)}function st(){return null}function at(t){Wi=t}function ut(){if(Ki)throw new Error("Cannot enable prod mode after platform setup.");$i=!1}function ct(){return Ki=!0,$i}function lt(t){if(zi&&!zi.destroyed&&!zi.injector.get(Qi,!1))throw new Error("There can be only one platform. Destroy the previous one to create a new one.");zi=t.get(Zi);var e=t.get(fi,null);return e&&e.forEach(function(t){return t()}),zi}function pt(t,e,r){void 0===r&&(r=[]);var n=new Jn("Platform: "+e);return function(e){void 0===e&&(e=[]);var o=dt();return(!o||o.injector.get(Qi,!1))&&(t?t(r.concat(e).concat({provide:n,useValue:!0})):lt(si.resolveAndCreate(r.concat(e).concat({provide:n,useValue:!0})))),ht(n)}}function ht(t){var e=dt();if(!e)throw new Error("No platform exists!");if(!e.injector.get(t,null))throw new Error("A platform with a different configuration has been created. Please destroy it first.");return e}function ft(){zi&&!zi.destroyed&&zi.destroy()}function dt(){return zi&&!zi.destroyed?zi:null}function mt(t,e){try{var r=e();return Q(r)?r["catch"](function(e){throw t.handleError(e),e}):r}catch(n){throw t.handleError(n),n}}function yt(t,e){var r=t.indexOf(e);r>-1&&t.splice(r,1)}function vt(t,e){var r=ls.get(t);if(r)throw new Error("Duplicate module registered for "+t+" - "+r.moduleType.name+" vs "+e.moduleType.name);ls.set(t,e)}function gt(t){var e=ls.get(t);if(!e)throw new Error("No module with ID "+t+" loaded");return e}function _t(t){return t.reduce(function(t,e){var r=Array.isArray(e)?_t(e):e;return t.concat(r)},[])}function bt(t,e,r){if(!t)throw new Error("Cannot find '"+r+"' in '"+e+"'");return t}function wt(t){return t.map(function(t){return t.nativeElement})}function Ct(t,e,r){t.childNodes.forEach(function(t){t instanceof Ss&&(e(t)&&r.push(t),Ct(t,e,r))})}function Et(t,e,r){t instanceof Ss&&t.childNodes.forEach(function(t){e(t)&&r.push(t),t instanceof Ss&&Et(t,e,r)})}function St(t){return xs.get(t)||null}function xt(t){xs.set(t.nativeNode,t)}function Tt(t){xs["delete"](t.nativeNode)}function Pt(t,e){var r=At(t),n=At(e);if(r&&n)return Ot(t,e,Pt);var o=t&&("object"==typeof t||"function"==typeof t),i=e&&("object"==typeof e||"function"==typeof e);return!r&&o&&!n&&i?!0:u(t,e)}function At(t){return Rt(t)?Array.isArray(t)||!(t instanceof Map)&&s()in t:!1}function Ot(t,e,r){for(var n=t[s()](),o=e[s()]();;){var i=n.next(),a=o.next();if(i.done&&a.done)return!0;if(i.done||a.done)return!1;if(!r(i.value,a.value))return!1}}function Mt(t,e){if(Array.isArray(t))for(var r=0;r<t.length;r++)e(t[r]);else for(var n=t[s()](),o=void 0;!(o=n.next()).done;)e(o.value)}function Rt(t){return null!==t&&("function"==typeof t||"object"==typeof t)}function kt(t,e,r){var n=t.previousIndex;if(null===n)return n;var o=0;return r&&n<r.length&&(o=r[n]),n+e+o}function It(t){return t.name||typeof t}function Nt(){return ti}function Dt(t,e){return t.nodes[e]}function jt(t,e){return t.nodes[e]}function Lt(t,e){return t.nodes[e]}function Vt(t,e){return t.nodes[e]}function Ft(t,e){return t.nodes[e]}function Ut(t,e,r,n){var o="ExpressionChangedAfterItHasBeenCheckedError: Expression has changed after it was checked. Previous value: '"+e+"'. Current value: '"+r+"'.";return n&&(o+=" It seems like the view has been created after its parent and its children have been dirty checked. Has it been created in a change detection hook ?"),Ht(o,t)}function Bt(t,e){return t instanceof Error||(t=new Error(t.toString())),qt(t,e),t}function Ht(t,e){ -- GitLab