From efc55013c2b46cb3b385f41b91fd0e95b2527deb Mon Sep 17 00:00:00 2001
From: Damien Burel <damien.burel@maarch.org>
Date: Thu, 13 Apr 2017 11:54:24 +0200
Subject: [PATCH] [FEAT] [PARA V2] Hide modification and supression on
 attachments iframe list

---
 apps/maarch_entreprise/class/class_lists_Abstract.php  |  8 +++++---
 .../js/angular/app/profile.component.js                |  1 -
 .../js/angular/app/signature-book.component.js         |  2 +-
 .../js/angular/app/signature-book.component.ts         |  2 +-
 apps/maarch_entreprise/js/angular/main.bundle.min.js   | 10 +++++-----
 modules/attachments/frame_list_attachments.php         |  6 ++++++
 modules/attachments/xml/IVS/validation_rules.xml       |  1 +
 7 files changed, 19 insertions(+), 11 deletions(-)

diff --git a/apps/maarch_entreprise/class/class_lists_Abstract.php b/apps/maarch_entreprise/class/class_lists_Abstract.php
index 893d30d5b6b..4f047a13ed6 100644
--- a/apps/maarch_entreprise/class/class_lists_Abstract.php
+++ b/apps/maarch_entreprise/class/class_lists_Abstract.php
@@ -1847,7 +1847,7 @@ abstract class lists_Abstract extends Database
     }
 
     
-    protected function _buildTemplate($templateFile, $resultArray, $listKey) {
+    protected function _buildTemplate($templateFile, $resultArray, $listKey, $parameters = []) {
         
         if (file_exists('custom/' . $_SESSION['custom_override_id']  . '/' . $templateFile)) {
             $templateFile = 'custom/' . $_SESSION['custom_override_id']  . '/' . $templateFile;
@@ -1941,7 +1941,9 @@ abstract class lists_Abstract extends Database
                     
                     // echo '<- '.$output[1][$i].'<br><br>';
 
-                    $remplacement = $this->_tmplt_loadVarSys($output[1][$i], $resultArray[$theLine], $listKey, $lineIsDisabled);
+                    if (empty($parameters) || empty($parameters['noModification']) || ($output[1][$i] != 'func_modify' && $output[1][$i] != 'func_delete')) {
+                        $remplacement = $this->_tmplt_loadVarSys($output[1][$i], $resultArray[$theLine], $listKey, $lineIsDisabled);
+                    }
                     $trueContent = str_replace($output[0][$i],$remplacement,$trueContent);
                     
                 }
@@ -3574,7 +3576,7 @@ abstract class lists_Abstract extends Database
             //Template mode
             if (!empty($this->template) && $this->template <> 'none') {
                 //Build the grid from template
-                $gridContent .= $this->_buildTemplate($_SESSION['html_templates'][$this->template]['PATH'], $resultArray, $listKey);
+                $gridContent .= $this->_buildTemplate($_SESSION['html_templates'][$this->template]['PATH'], $resultArray, $listKey, $parameters);
                 
                 //Build the list
                 $grid .= $B_form . $B_height . $gridContent . $E_height . $E_form;
diff --git a/apps/maarch_entreprise/js/angular/app/profile.component.js b/apps/maarch_entreprise/js/angular/app/profile.component.js
index 2e68b911946..bad47dabccc 100644
--- a/apps/maarch_entreprise/js/angular/app/profile.component.js
+++ b/apps/maarch_entreprise/js/angular/app/profile.component.js
@@ -77,7 +77,6 @@ var ProfileComponent = (function () {
             .map(function (res) { return res.json(); })
             .subscribe(function (data) {
             _this.coreUrl = data.coreurl;
-            _this.businessappurl = data.businessappurl;
             _this.http.get(_this.coreUrl + 'rest/user/profile')
                 .map(function (res) { return res.json(); })
                 .subscribe(function (data) {
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 39f7dd30fa6..888f4fbff84 100644
--- a/apps/maarch_entreprise/js/angular/app/signature-book.component.js
+++ b/apps/maarch_entreprise/js/angular/app/signature-book.component.js
@@ -114,7 +114,7 @@ var SignatureBookComponent = (function () {
                     _this.visaViewerLink = "index.php?display=true&page=show_visa_tab&module=visa&resId=" + _this.resId + "&collId=letterbox_coll&visaStep=true";
                     _this.histViewerLink = "index.php?display=true&page=show_history_tab&resId=" + _this.resId + "&collId=letterbox_coll";
                     _this.linksViewerLink = "index.php?display=true&page=show_links_tab&id=" + _this.resId;
-                    _this.attachmentsViewerLink = "index.php?display=true&module=attachments&page=frame_list_attachments&resId=" + _this.resId + "&template_selected=documents_list_attachments_simple&load&attach_type_exclude=converted_pdf,print_folder";
+                    _this.attachmentsViewerLink = "index.php?display=true&module=attachments&page=frame_list_attachments&resId=" + _this.resId + "&noModification=true&template_selected=documents_list_attachments_simple&load&attach_type_exclude=converted_pdf,print_folder";
                     _this.leftContentWidth = "44%";
                     _this.rightContentWidth = "44%";
                     if (_this.signatureBook.documents[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 01bc8f232b5..052c274700b 100644
--- a/apps/maarch_entreprise/js/angular/app/signature-book.component.ts
+++ b/apps/maarch_entreprise/js/angular/app/signature-book.component.ts
@@ -117,7 +117,7 @@ export class SignatureBookComponent implements OnInit {
                             this.visaViewerLink  = "index.php?display=true&page=show_visa_tab&module=visa&resId=" + this.resId + "&collId=letterbox_coll&visaStep=true";
                             this.histViewerLink  = "index.php?display=true&page=show_history_tab&resId=" + this.resId + "&collId=letterbox_coll";
                             this.linksViewerLink = "index.php?display=true&page=show_links_tab&id=" + this.resId;
-                            this.attachmentsViewerLink = "index.php?display=true&module=attachments&page=frame_list_attachments&resId=" + this.resId + "&template_selected=documents_list_attachments_simple&load&attach_type_exclude=converted_pdf,print_folder";
+                            this.attachmentsViewerLink = "index.php?display=true&module=attachments&page=frame_list_attachments&resId=" + this.resId + "&noModification=true&template_selected=documents_list_attachments_simple&load&attach_type_exclude=converted_pdf,print_folder";
 
                             this.leftContentWidth  = "44%";
                             this.rightContentWidth = "44%";
diff --git a/apps/maarch_entreprise/js/angular/main.bundle.min.js b/apps/maarch_entreprise/js/angular/main.bundle.min.js
index 855ab864bc0..941ef1842f6 100644
--- a/apps/maarch_entreprise/js/angular/main.bundle.min.js
+++ b/apps/maarch_entreprise/js/angular/main.bundle.min.js
@@ -1,9 +1,9 @@
-!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={},this.passwordModel={currentPassword:"",newPassword:"",reNewPassword:""},this.signatureModel={base64:"",name:"",type:"",size:0,label:""},this.showPassword=!1,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("#container").width("99%"),Prototype.BrowserFeatures.ElementExtensions){var t=["collapse","dropdown","modal","tooltip","popover","tab"];disablePrototypeJS("show",t),disablePrototypeJS("hide",t)}},t.prototype.ngOnInit=function(){var t=this;this.prepareProfile(),this.loading=!0,this.http.get("index.php?display=true&page=initializeJsGlobalConfig").map(function(t){return t.json()}).subscribe(function(e){t.coreUrl=e.coreurl,t.businessappurl=e.businessappurl,t.http.get(t.coreUrl+"rest/user/profile").map(function(t){return t.json()}).subscribe(function(e){t.user=e,t.loading=!1})})},t.prototype.processAfterUpload=function(t){var e=this;this.zone.run(function(){return e.resfreshUpload(t)})},t.prototype.resfreshUpload=function(t){this.signatureModel.base64=t},t.prototype.displayPassword=function(){this.showPassword=!this.showPassword},t.prototype.exitProfile=function(){location.hash="",location.reload()},t.prototype.changePassword=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").modal("show").show()):(t.showPassword=!1,t.passwordModel={currentPassword:"",newPassword:"",reNewPassword:""},t.resultInfo="Le mot de passe a bien été modifié",$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;this.http["delete"](this.coreUrl+"rest/currentUser/signature/"+t).map(function(t){return t.json()}).subscribe(function(t){t.errors?alert(t.errors):e.user.signatures=t.signatures})},t.prototype.uploadSignatureTrigger=function(t){if(t.target.files&&t.target.files[0]){var e=new FileReader;e.readAsDataURL(t.target.files[0]),e.onload=function(){var t=e.result.replace(/^data:.*?;base64,/,"");window.angularProfileComponent.componentAfterUpload(t)},this.signatureModel.name=t.target.files[0].name,this.signatureModel.size=t.target.files[0].size,this.signatureModel.type=t.target.files[0].type}},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?alert(e.errors):(t.user.signatures=e.signatures,t.signatureModel={base64:"",name:"",type:"",size:0,label:""})})},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").modal("show").show()):(t.resultInfo="Les informations utilisateur ont été modifiées",$j("#resultInfo").removeClass().addClass("alert alert-success alert-dismissible"),$j("#resultInfo").fadeTo(3e3,500).slideUp(500,function(){$j("#resultInfo").slideUp(500)}))})},t}();a=n([i.Component({templateUrl:"js/angular/app/Views/profile.html"}),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:[]},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.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.loading=!0,this.route.params.subscribe(function(e){t.resId=+e.resId,t.basketId=e.basketId,lockDocument(t.resId),setInterval(function(){lockDocument(t.resId)},5e4),t.http.get("index.php?display=true&page=initializeJsGlobalConfig").map(function(t){return t.json()}).subscribe(function(e){t.coreUrl=e.coreurl,t.http.get(t.coreUrl+"rest/"+t.basketId+"/signatureBook/"+t.resId).map(function(t){return t.json()}).subscribe(function(e){return e.error?(location.hash="",void(location.search="")):(t.signatureBook=e,t.headerTab=1,t.leftSelectedThumbnail=0,t.rightSelectedThumbnail=0,t.leftViewerLink="",t.rightViewerLink="",t.showLeftPanel=!0,t.showRightPanel=!0,t.showResLeftPanel=!0,t.showTopLeftPanel=!1,t.showTopRightPanel=!1,t.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+"&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("#resListContent").niceScroll({touchbehavior:!1,cursorcolor:"#666",cursoropacitymax:.6,cursorwidth:4}),$j("#rightPanelContent").niceScroll({touchbehavior:!1,cursorcolor:"#666",cursoropacitymax:.6,cursorwidth:4}),$j("#resListContent").scrollTop(0),$j("#resListContent").scrollTop($j(".resListContentFrameSelected").offset().top-42),$j("#obsVersion").tooltipster({interactive:!0})},0))})})})},t.prototype.ngOnDestroy=function(){delete window.angularSignatureBookComponent},t.prototype.processAfterAttach=function(t){var e=this;this.zone.run(function(){return e.refreshAttachments(t)})},t.prototype.processAfterNotes=function(){var t=this;this.zone.run(function(){return t.refreshNotes()})},t.prototype.processAfterAction=function(){for(var t=this,e=-1,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));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){"TOPRIGHT"==t?this.showTopRightPanel=!this.showTopRightPanel:"TOPLEFT"==t?this.showTopLeftPanel=!this.showTopLeftPanel:"LEFT"==t?(this.showLeftPanel=!this.showLeftPanel,this.showResLeftPanel=!1,this.showLeftPanel?(this.rightContentWidth="48%",this.leftContentWidth="48%",$j("#hideLeftContent").css("background","#CEE9F1")):(this.rightContentWidth="96%",$j("#hideLeftContent").css("background","none"))):"RESLEFT"==t?(this.showResLeftPanel=!this.showResLeftPanel,this.showResLeftPanel?(this.rightContentWidth="44%",this.leftContentWidth="44%"):(this.rightContentWidth="48%",this.leftContentWidth="48%")):"MIDDLE"==t&&(this.showRightPanel=!this.showRightPanel,this.showResLeftPanel=!1,this.showRightPanel?(this.rightContentWidth="48%",this.leftContentWidth="48%",$j("#contentLeft").css("border-right","solid 1px")):(this.leftContentWidth="96%",$j("#contentLeft").css("border-right","none")))},t.prototype.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){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.prepareSignFile=function(t){!this.loadingSign&&this.signatureBook.canSign&&(0==t.res_id?"outgoing_mail"==t.attachment_type&&"outgoing"==this.signatureBook.documents[0].category_id?this.signatureBookSignFile(t.res_id_version,4):this.signatureBookSignFile(t.res_id_version,1):0==t.res_id_version&&("outgoing_mail"==t.attachment_type&&"outgoing"==this.signatureBook.documents[0].category_id?this.signatureBookSignFile(t.res_id,3):this.signatureBookSignFile(t.res_id,0)))},t.prototype.signatureBookSignFile=function(t,e){var r=this;this.loadingSign=!0;var n="";0==e?n="index.php?display=true&module=visa&page=sign_file&collId=letterbox_coll&resIdMaster="+this.resId+"&id="+t:1==e?n="index.php?display=true&module=visa&page=sign_file&collId=letterbox_coll&isVersion&resIdMaster="+this.resId+"&id="+t:2==e?n="index.php?display=true&module=visa&page=sign_file&collId=letterbox_coll&isOutgoing&resIdMaster="+this.resId+"&id="+t:3==e&&(n="index.php?display=true&module=visa&page=sign_file&collId=letterbox_coll&isOutgoing&isVersion&resIdMaster="+this.resId+"&id="+t),this.http.get(n).map(function(t){return t.json()}).subscribe(function(t){if(0==t.status){r.rightViewerLink="index.php?display=true&module=visa&page=view_pdf_attachement&res_id_master="+r.resId+"&id="+t.new_id,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[r.signatureBook.resListIndex].allSigned=e}else alert(t.error);r.loadingSign=!1})},t.prototype.unsignFile=function(t){var e,r,n=this;0==t.res_id?(r=t.res_id_version,e="res_version_attachments"):0==t.res_id_version&&(r=t.res_id,e="res_attachments"),this.http.put(this.coreUrl+"rest/"+e+"/"+r+"/unsign",{},{}).map(function(t){return t.json()}).subscribe(function(t){"OK"==t.status?(n.rightViewerLink="index.php?display=true&module=visa&page=view_pdf_attachement&res_id_master="+n.resId+"&id="+r,n.signatureBook.attachments[n.rightSelectedThumbnail].viewerLink=n.rightViewerLink,n.signatureBook.attachments[n.rightSelectedThumbnail].status="A_TRA",n.signatureBook.attachments[n.rightSelectedThumbnail].idToDl=r,n.signatureBook.resList[n.signatureBook.resListIndex].allSigned=!1):alert(t.error)})},t.prototype.backToBasket=function(){unlockDocument(this.resId),location.hash="",location.reload()},t.prototype.backToDetails=function(){unlockDocument(this.resId),location.hash="",location.search="?page=details&dir=indexing_searching&id="+this.resId},t.prototype.changeLocation=function(t,e){var 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(){""!=$j("#signatureBookActions option:selected")[0].value?(unlockDocument(this.resId),valid_action_form("empty","index.php?display=true&page=manage_action&module=core",this.signatureBook.currentAction.id,this.resId,"res_letterbox","null","letterbox_coll","page",!1,[$j("#signatureBookActions option:selected")[0].value])):alert("Aucune action choisie")},t}();l=n([i.Component({templateUrl:"js/angular/app/Views/signatureBook.html"}),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 y(t,e){var r={};return r[t]=2===e?"2-digit":"numeric",r}function v(t,e){var r={};return r[t]=4>e?e>1?"short":"narrow":"long",r}function m(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=mt[t];if(n)return n(e,r);var o=t,i=_t.get(o);if(!i){i=[];var s=void 0;for(vt.exec(t);t;)s=vt.exec(t),s?(i=i.concat(s.slice(1)),t=i.pop()):(i.push(t),t=null);_t.set(o,i)}return i.reduce(function(t,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,c,l;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 yt.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(){},Object.defineProperty(t.prototype,"pathname",{get:function(){return null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"search",{get:function(){return null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"hash",{get:function(){return null},enumerable:!0,configurable:!0}),t.prototype.replaceState=function(){},t.prototype.pushState=function(){},t.prototype.forward=function(){},t.prototype.back=function(){},t}(),N=new e.InjectionToken("Location Initialized"),D=function(){function t(){}return t.prototype.path=function(){},t.prototype.prepareExternalUrl=function(){},t.prototype.pushState=function(){},t.prototype.replaceState=function(){},t.prototype.forward=function(){},t.prototype.back=function(){},t.prototype.onPopState=function(){},t.prototype.getBaseHref=function(){},t}(),j=new e.InjectionToken("appBaseHref"),L=function(){function t(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 void 0===e&&(e=null),void 0===r&&(r=null),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,null,null),o),s=new K(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 K(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 K=function(){function t(t,e){this.record=t,this.view=e}return t}(),Q=W,$=function(){function t(t,e){this._viewContainer=t,this._context=new X,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=e}return Object.defineProperty(t.prototype,"ngIf",{set:function(t){this._context.$implicit=this._context.ngIf=t,this._updateView()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"ngIfThen",{set:function(t){this._thenTemplateRef=t,this._thenViewRef=null,this._updateView()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"ngIfElse",{set:function(t){this._elseTemplateRef=t,this._elseViewRef=null,this._updateView()},enumerable:!0,configurable:!0}),t.prototype._updateView=function(){this._context.$implicit?this._thenViewRef||(this._viewContainer.clear(),this._elseViewRef=null,this._thenTemplateRef&&(this._thenViewRef=this._viewContainer.createEmbeddedView(this._thenTemplateRef,this._context))):this._elseViewRef||(this._viewContainer.clear(),this._thenViewRef=null,this._elseTemplateRef&&(this._elseViewRef=this._viewContainer.createEmbeddedView(this._elseTemplateRef,this._context)))},t}();$.decorators=[{type:e.Directive,args:[{selector:"[ngIf]"}]}],$.ctorParameters=function(){return[{type:e.ViewContainerRef},{type:e.TemplateRef}]},$.propDecorators={ngIf:[{type:e.Input}],ngIfThen:[{type:e.Input}],ngIfElse:[{type:e.Input}]};var X=function(){function t(){this.$implicit=null,this.ngIf=null}return t}(),Z=function(){function t(t,e){this._viewContainerRef=t,this._templateRef=e,this._created=!1}return t.prototype.create=function(){this._created=!0,this._viewContainerRef.createEmbeddedView(this._templateRef)},t.prototype.destroy=function(){this._created=!1,this._viewContainerRef.clear()},t.prototype.enforceState=function(t){t&&!this._created?this.create():!t&&this._created&&this.destroy()},t}(),Y=function(){function t(){this._defaultUsed=!1,this._caseCount=0,this._lastCaseCheckIndex=0,this._lastCasesMatched=!1}return Object.defineProperty(t.prototype,"ngSwitch",{set:function(t){this._ngSwitch=t,0===this._caseCount&&this._updateDefaultCases(!0)},enumerable:!0,configurable:!0}),t.prototype._addCase=function(){return this._caseCount++},t.prototype._addDefault=function(t){this._defaultViews||(this._defaultViews=[]),this._defaultViews.push(t)},t.prototype._matchCase=function(t){var e=t==this._ngSwitch;return this._lastCasesMatched=this._lastCasesMatched||e,this._lastCaseCheckIndex++,this._lastCaseCheckIndex===this._caseCount&&(this._updateDefaultCases(!this._lastCasesMatched),this._lastCaseCheckIndex=0,this._lastCasesMatched=!1),e},t.prototype._updateDefaultCases=function(t){if(this._defaultViews&&t!==this._defaultUsed){this._defaultUsed=t;for(var e=0;e<this._defaultViews.length;e++){var 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,$,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 yt=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=u,p.currencyDisplay=l?"symbol":"code"),new Intl.NumberFormat(e,p).format(t)},t}(),vt=/((?:[^yMLdHhmsazZEwGjJ']+)|(?:'(?:[^']|'')*')|(?:E+|y+|M+|L+|d+|H+|h+|J+|j+|m+|s+|a|z|Z|G+|w+))(.*)/,mt={yMMMdjms:g(m([y("year",1),v("month",3),y("day",1),y("hour",1),y("minute",1),y("second",1)])),yMdjm:g(m([y("year",1),y("month",1),y("day",1),y("hour",1),y("minute",1)])),yMMMMEEEEd:g(m([y("year",1),v("month",4),v("weekday",4),y("day",1)])),yMMMMd:g(m([y("year",1),v("month",4),y("day",1)])),yMMMd:g(m([y("year",1),v("month",3),y("day",1)])),yMd:g(m([y("year",1),y("month",1),y("day",1)])),jms:g(m([y("hour",1),y("second",1),y("minute",1)])),jm:g(m([y("hour",1),y("minute",1)]))},gt={yyyy:g(y("year",4)),yy:g(y("year",2)),y:g(y("year",1)),MMMM:g(v("month",4)),MMM:g(v("month",3)),MM:g(y("month",2)),M:g(y("month",1)),LLLL:g(v("month",4)),L:g(v("month",1)),dd:g(y("day",2)),d:g(y("day",1)),HH:c(p(g(d(y("hour",2),!1)))),H:p(g(d(y("hour",1),!1))),hh:c(p(g(d(y("hour",2),!0)))),h:p(g(d(y("hour",1),!0))),jj:g(y("hour",2)),j:g(y("hour",1)),mm:c(g(y("minute",2))),m:g(y("minute",1)),ss:c(g(y("second",2))),s:g(y("second",1)),sss:g(y("second",3)),EEEE:g(v("weekday",4)),EEE:g(v("weekday",3)),EE:g(v("weekday",2)),E:g(v("weekday",1)),a:l(g(d(y("hour",1),!0))),Z:f("short"),z:f("long"),ww:g({}),w:g({}),G:g(v("era",1)),GG:g(v("era",2)),GGG:g(v("era",3)),GGGG:g(v("era",4))},_t=new Map,bt=function(){function t(){}return t.format=function(t,e,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 void 0===r&&(r=null),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 void 0===r&&(r=null),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),void 0===o&&(o=null),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.0.1");t.NgLocaleLocalization=B,t.NgLocalization=U,t.CommonModule=It,t.NgClass=q,t.NgFor=Q,t.NgForOf=W,t.NgForOfContext=G,t.NgIf=$,t.NgIfContext=X,t.NgPlural=et,t.NgPluralCase=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 null===t?null:n(t)[0]}function i(t,e){return t?":"+t+":"+e:e}function s(t){return ho[t.toLowerCase()]||fo}function a(t){return t.replace(wo,function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return t[1].toUpperCase()})}function u(t,e){return l(t,":",e)}function c(t,e){return l(t,".",e)}function l(t,e,r){var n=t.indexOf(e);return-1==n?r:[t.slice(0,n).trim(),t.slice(n+1).trim()]}function p(t,e,r){return Array.isArray(t)?e.visitArray(t,r):y(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 h(t){var e=Error(t);return e[So]=!0,e}function f(t){return t[So]}function d(t){return t.replace(/([.*+?^=!:${}()|[\]\/\\])/g,"\\$1")}function y(t){return"object"==typeof t&&null!==t&&Object.getPrototypeOf(t)===xo}function v(t){for(var e="",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 m(t){return t.replace(/\W/g,"_")}function g(t){if(!t||!t.reference)return null;var r=t.reference;if(r instanceof ao)return r.name;if(r.__anonymousType)return r.__anonymousType;var n=e.ɵstringify(r);return n.indexOf("(")>=0?(n="anonymous_"+Vo++,r.__anonymousType=n):n=m(n),n}function _(t){var r=t.reference;return r instanceof ao?r.filePath:e.ɵreflector.importUri(r)}function b(t,e){return"View_"+g({reference:t})+"_"+e}function w(t){return"RenderType_"+g({reference:t})}function C(t){return"HostView_"+g({reference:t})}function E(t){return"Wrapper_"+g({reference:t})}function S(t){return g({reference:t})+"NgFactory"}function x(t){return null!=t.value?m(t.value):g(t.identifier)}function T(t){return null!=t.identifier?t.identifier.reference:t.value}function P(t,r,n){var o=vo.parse(r.selector)[0].getMatchingElementTemplate();return Ho.create({isHost:!0,type:{reference:t,diDeps:[],lifecycleHooks:[]},template:new Bo({encapsulation:e.ViewEncapsulation.None,template:o,templateUrl:"",styles:[],styleUrls:[],ngContentSelectors:[],animations:[],isInline:!0}),changeDetection:e.ChangeDetectionStrategy.Default,inputs:[],outputs:[],host:{},isComponent:!0,selector:"*",providers:[],viewProviders:[],queries:[],viewQueries:[],componentViewType:n,rendererType:{id:"__Host__",encapsulation:e.ViewEncapsulation.None,styles:[],data:{}}})}function A(t){return t||[]}function O(t){return t.reduce(function(t,e){var r=Array.isArray(e)?O(e):e;return t.concat(r)},[])}function M(t){return t.replace(/(\w+:\/\/[\w:-]+)?(\/+)?/,"ng:///")}function R(t,e,r){var n;return n=r.isInline?e.type.reference instanceof ao?e.type.reference.filePath+"."+e.type.reference.name+".html":g(t)+"/"+g(e.type)+".html":r.templateUrl,M(n)}function k(t,e){var r=t.moduleUrl.split(/\/\\/g),n=r[r.length-1];return M("css/"+e+n+".ngstyle.js")}function I(t){return M(g(t.type)+"/module.ngfactory.js")}function N(t,e){return M(g(t)+"/"+g(e.type)+".ngfactory.js")}function D(t){return t>=Ci&&Pi>=t||t==bs}function j(t){return t>=$i&&Xi>=t}function L(t){return t>=as&&vs>=t||t>=Zi&&es>=t}function V(t){return t>=as&&cs>=t||t>=Zi&&Ji>=t||j(t)}function F(){return function(t){return t}}function U(t,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 B(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];Cs.forEach(function(t){if(t.test(n)||t.test(o))throw new Error("['"+n+"', '"+o+"'] contains unusable interpolation symbol.")})}}function H(t,e){return new As(t,xs.Character,e,String.fromCharCode(e))}function q(t,e){return new As(t,xs.Identifier,0,e)}function z(t,e){return new As(t,xs.Keyword,0,e)}function G(t,e){return new As(t,xs.Operator,0,e)}function W(t,e){return new As(t,xs.String,0,e)}function K(t,e){return new As(t,xs.Number,e,"")}function Q(t,e){return new As(t,xs.Error,0,e)}function $(t){return t>=as&&vs>=t||t>=Zi&&es>=t||t==ss||t==Ri}function X(t){if(0==t.length)return!1;var e=new Ms(t);if(!$(e.peek))return!1;for(e.advance();e.peek!==wi;){if(!Z(e.peek))return!1;e.advance()}return!0}function Z(t){return L(t)||j(t)||t==ss||t==Ri}function Y(t){return t==us||t==Yi}function J(t){return t==Ui||t==Vi}function tt(t){return t===Ni||t===Oi||t===ws}function et(t){switch(t){case ls:return Ei;case cs:return xi;case ps:return Ti;case hs:return Ci;case ds:return Si;default:return t}}function rt(t){var e=parseInt(t);if(isNaN(e))throw new Error("Invalid integer literal when parsing "+t);return e}function nt(t){var e=d(t.start)+"([\\s\\S]*?)"+d(t.end);return new RegExp(e,"g")}function ot(t,e){var r=_(e),n=null!=r?"in "+t+" "+g(e)+" in "+r:"in "+t+" "+g(e),o=new Ls("",n);return new Vs(new js(o,null,null,null),new js(o,null,null,null))}function it(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 st(t,e,r,n,o){return void 0===n&&(n=!1),void 0===o&&(o=Ss),new Js(new Ls(t,e),r,n,o).tokenize()}function at(t){var e=t===wi?"EOF":String.fromCharCode(t);return'Unexpected character "'+e+'"'}function ut(t){return'Unknown entity "'+t+'" - use the "&#<decimal>;" or  "&#x<hex>;" syntax'}function ct(t){return!D(t)||t===wi}function lt(t){return D(t)||t===Ki||t===Hi||t===Ni||t===Oi||t===Wi}function pt(t){return(as>t||t>vs)&&(Zi>t||t>es)&&($i>t||t>Xi)}function ht(t){return t==zi||t==wi||!V(t)}function ft(t){return t==zi||t==wi||!L(t)}function dt(t,e,r){var n=r?t.indexOf(r.start,e)==e:!1;return t.charCodeAt(e)==ms&&!n}function yt(t){return t===Wi||L(t)}function vt(t,e){return mt(t)==mt(e)}function mt(t){return t>=as&&vs>=t?t-as+Zi:t}function gt(t){for(var e,r=[],n=0;n<t.length;n++){var o=t[n];e&&e.type==Ks.TEXT&&o.type==Ks.TEXT?(e.parts[0]+=o.parts[0],e.sourceSpan.end=o.sourceSpan.end):(e=o,r.push(e))}return r}function _t(t,e){return t.length>0&&t[t.length-1]===e}function bt(t){var e=new va(ya,t);return function(t,r,n,o){return e.toI18nMessage(t,r,n,o)}}function wt(t){return t.split(ma)[2]}function Ct(t,e,r,n){var o=new Ta(r,n);return o.extract(t,e)}function Et(t,e,r,n,o){var i=new Ta(n,o);return i.merge(t,e,r)}function St(t){return t instanceof Ws&&t.value&&t.value.startsWith("i18n")}function xt(t){return t instanceof Ws&&t.value&&"/i18n"===t.value}function Tt(t){return t.attrs.find(function(t){return t.name===_a})||null}function Pt(t){if(!t)return{meaning:"",description:"",id:""};var e=t.indexOf(Ea),r=t.indexOf(Ca),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];
+!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={},this.passwordModel={currentPassword:"",newPassword:"",reNewPassword:""},this.signatureModel={base64:"",name:"",type:"",size:0,label:""},this.showPassword=!1,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("#container").width("99%"),Prototype.BrowserFeatures.ElementExtensions){var t=["collapse","dropdown","modal","tooltip","popover","tab"];disablePrototypeJS("show",t),disablePrototypeJS("hide",t)}},t.prototype.ngOnInit=function(){var t=this;this.prepareProfile(),this.loading=!0,this.http.get("index.php?display=true&page=initializeJsGlobalConfig").map(function(t){return t.json()}).subscribe(function(e){t.coreUrl=e.coreurl,t.http.get(t.coreUrl+"rest/user/profile").map(function(t){return t.json()}).subscribe(function(e){t.user=e,t.loading=!1})})},t.prototype.processAfterUpload=function(t){var e=this;this.zone.run(function(){return e.resfreshUpload(t)})},t.prototype.resfreshUpload=function(t){this.signatureModel.base64=t},t.prototype.displayPassword=function(){this.showPassword=!this.showPassword},t.prototype.exitProfile=function(){location.hash="",location.reload()},t.prototype.changePassword=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").modal("show").show()):(t.showPassword=!1,t.passwordModel={currentPassword:"",newPassword:"",reNewPassword:""},t.resultInfo="Le mot de passe a bien été modifié",$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;this.http["delete"](this.coreUrl+"rest/currentUser/signature/"+t).map(function(t){return t.json()}).subscribe(function(t){t.errors?alert(t.errors):e.user.signatures=t.signatures})},t.prototype.uploadSignatureTrigger=function(t){if(t.target.files&&t.target.files[0]){var e=new FileReader;e.readAsDataURL(t.target.files[0]),e.onload=function(){var t=e.result.replace(/^data:.*?;base64,/,"");window.angularProfileComponent.componentAfterUpload(t)},this.signatureModel.name=t.target.files[0].name,this.signatureModel.size=t.target.files[0].size,this.signatureModel.type=t.target.files[0].type}},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?alert(e.errors):(t.user.signatures=e.signatures,t.signatureModel={base64:"",name:"",type:"",size:0,label:""})})},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").modal("show").show()):(t.resultInfo="Les informations utilisateur ont été modifiées",$j("#resultInfo").removeClass().addClass("alert alert-success alert-dismissible"),$j("#resultInfo").fadeTo(3e3,500).slideUp(500,function(){$j("#resultInfo").slideUp(500)}))})},t}();a=n([i.Component({templateUrl:"js/angular/app/Views/profile.html"}),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:[]},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.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.loading=!0,this.route.params.subscribe(function(e){t.resId=+e.resId,t.basketId=e.basketId,lockDocument(t.resId),setInterval(function(){lockDocument(t.resId)},5e4),t.http.get("index.php?display=true&page=initializeJsGlobalConfig").map(function(t){return t.json()}).subscribe(function(e){t.coreUrl=e.coreurl,t.http.get(t.coreUrl+"rest/"+t.basketId+"/signatureBook/"+t.resId).map(function(t){return t.json()}).subscribe(function(e){return e.error?(location.hash="",void(location.search="")):(t.signatureBook=e,t.headerTab=1,t.leftSelectedThumbnail=0,t.rightSelectedThumbnail=0,t.leftViewerLink="",t.rightViewerLink="",t.showLeftPanel=!0,t.showRightPanel=!0,t.showResLeftPanel=!0,t.showTopLeftPanel=!1,t.showTopRightPanel=!1,t.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("#resListContent").niceScroll({touchbehavior:!1,cursorcolor:"#666",cursoropacitymax:.6,cursorwidth:4}),$j("#rightPanelContent").niceScroll({touchbehavior:!1,cursorcolor:"#666",cursoropacitymax:.6,cursorwidth:4}),$j("#resListContent").scrollTop(0),$j("#resListContent").scrollTop($j(".resListContentFrameSelected").offset().top-42),$j("#obsVersion").tooltipster({interactive:!0})},0))})})})},t.prototype.ngOnDestroy=function(){delete window.angularSignatureBookComponent},t.prototype.processAfterAttach=function(t){var e=this;this.zone.run(function(){return e.refreshAttachments(t)})},t.prototype.processAfterNotes=function(){var t=this;this.zone.run(function(){return t.refreshNotes()})},t.prototype.processAfterAction=function(){for(var t=this,e=-1,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));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){"TOPRIGHT"==t?this.showTopRightPanel=!this.showTopRightPanel:"TOPLEFT"==t?this.showTopLeftPanel=!this.showTopLeftPanel:"LEFT"==t?(this.showLeftPanel=!this.showLeftPanel,this.showResLeftPanel=!1,this.showLeftPanel?(this.rightContentWidth="48%",this.leftContentWidth="48%",$j("#hideLeftContent").css("background","#CEE9F1")):(this.rightContentWidth="96%",$j("#hideLeftContent").css("background","none"))):"RESLEFT"==t?(this.showResLeftPanel=!this.showResLeftPanel,this.showResLeftPanel?(this.rightContentWidth="44%",this.leftContentWidth="44%"):(this.rightContentWidth="48%",this.leftContentWidth="48%")):"MIDDLE"==t&&(this.showRightPanel=!this.showRightPanel,this.showResLeftPanel=!1,this.showRightPanel?(this.rightContentWidth="48%",this.leftContentWidth="48%",$j("#contentLeft").css("border-right","solid 1px")):(this.leftContentWidth="96%",$j("#contentLeft").css("border-right","none")))},t.prototype.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){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.prepareSignFile=function(t){!this.loadingSign&&this.signatureBook.canSign&&(0==t.res_id?"outgoing_mail"==t.attachment_type&&"outgoing"==this.signatureBook.documents[0].category_id?this.signatureBookSignFile(t.res_id_version,4):this.signatureBookSignFile(t.res_id_version,1):0==t.res_id_version&&("outgoing_mail"==t.attachment_type&&"outgoing"==this.signatureBook.documents[0].category_id?this.signatureBookSignFile(t.res_id,3):this.signatureBookSignFile(t.res_id,0)))},t.prototype.signatureBookSignFile=function(t,e){var r=this;this.loadingSign=!0;var n="";0==e?n="index.php?display=true&module=visa&page=sign_file&collId=letterbox_coll&resIdMaster="+this.resId+"&id="+t:1==e?n="index.php?display=true&module=visa&page=sign_file&collId=letterbox_coll&isVersion&resIdMaster="+this.resId+"&id="+t:2==e?n="index.php?display=true&module=visa&page=sign_file&collId=letterbox_coll&isOutgoing&resIdMaster="+this.resId+"&id="+t:3==e&&(n="index.php?display=true&module=visa&page=sign_file&collId=letterbox_coll&isOutgoing&isVersion&resIdMaster="+this.resId+"&id="+t),this.http.get(n).map(function(t){return t.json()}).subscribe(function(t){if(0==t.status){r.rightViewerLink="index.php?display=true&module=visa&page=view_pdf_attachement&res_id_master="+r.resId+"&id="+t.new_id,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[r.signatureBook.resListIndex].allSigned=e}else alert(t.error);r.loadingSign=!1})},t.prototype.unsignFile=function(t){var e,r,n=this;0==t.res_id?(r=t.res_id_version,e="res_version_attachments"):0==t.res_id_version&&(r=t.res_id,e="res_attachments"),this.http.put(this.coreUrl+"rest/"+e+"/"+r+"/unsign",{},{}).map(function(t){return t.json()}).subscribe(function(t){"OK"==t.status?(n.rightViewerLink="index.php?display=true&module=visa&page=view_pdf_attachement&res_id_master="+n.resId+"&id="+r,n.signatureBook.attachments[n.rightSelectedThumbnail].viewerLink=n.rightViewerLink,n.signatureBook.attachments[n.rightSelectedThumbnail].status="A_TRA",n.signatureBook.attachments[n.rightSelectedThumbnail].idToDl=r,n.signatureBook.resList[n.signatureBook.resListIndex].allSigned=!1):alert(t.error)})},t.prototype.backToBasket=function(){unlockDocument(this.resId),location.hash="",location.reload()},t.prototype.backToDetails=function(){unlockDocument(this.resId),location.hash="",location.search="?page=details&dir=indexing_searching&id="+this.resId},t.prototype.changeLocation=function(t,e){var 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(){""!=$j("#signatureBookActions option:selected")[0].value?(unlockDocument(this.resId),valid_action_form("empty","index.php?display=true&page=manage_action&module=core",this.signatureBook.currentAction.id,this.resId,"res_letterbox","null","letterbox_coll","page",!1,[$j("#signatureBookActions option:selected")[0].value])):alert("Aucune action choisie")},t}();l=n([i.Component({templateUrl:"js/angular/app/Views/signatureBook.html"}),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 y(t,e){var r={};return r[t]=2===e?"2-digit":"numeric",r}function v(t,e){var r={};return r[t]=4>e?e>1?"short":"narrow":"long",r}function m(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=mt[t];if(n)return n(e,r);var o=t,i=_t.get(o);if(!i){i=[];var s=void 0;for(vt.exec(t);t;)s=vt.exec(t),s?(i=i.concat(s.slice(1)),t=i.pop()):(i.push(t),t=null);_t.set(o,i)}return i.reduce(function(t,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,c,l;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 yt.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(){},Object.defineProperty(t.prototype,"pathname",{get:function(){return null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"search",{get:function(){return null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"hash",{get:function(){return null},enumerable:!0,configurable:!0}),t.prototype.replaceState=function(){},t.prototype.pushState=function(){},t.prototype.forward=function(){},t.prototype.back=function(){},t}(),N=new e.InjectionToken("Location Initialized"),D=function(){function t(){}return t.prototype.path=function(){},t.prototype.prepareExternalUrl=function(){},t.prototype.pushState=function(){},t.prototype.replaceState=function(){},t.prototype.forward=function(){},t.prototype.back=function(){},t.prototype.onPopState=function(){},t.prototype.getBaseHref=function(){},t}(),j=new e.InjectionToken("appBaseHref"),L=function(){function t(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 void 0===e&&(e=null),void 0===r&&(r=null),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();
 
-return{meaning:a,description:u,id:i}}function At(){return Aa}function Ot(t){return t.id||kt(Rt(t.nodes).join("")+("["+t.meaning+"]"))}function Mt(t){if(t.id)return t.id;var e=new ka,r=t.nodes.map(function(t){return t.visit(e,null)});return Dt(r.join(""),t.meaning)}function Rt(t){return t.map(function(t){return t.visit(Ra,null)})}function kt(t){var e=v(t),r=zt(e,Ia.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],y=h[2],m=h[3],g=h[4],_=0;80>_;_++){o[_]=16>_?r[p+_]:Ht(o[_-3]^o[_-8]^o[_-14]^o[_-16],1);var b=It(_,a,u,c),w=b[0],C=b[1],E=[Ht(s,5),w,l,C,o[_]].reduce(Vt);S=[c,u,Ht(a,30),s,E],l=S[0],c=S[1],u=S[2],a=S[3],s=S[4]}x=[Vt(s,f),Vt(a,d),Vt(u,y),Vt(c,m),Vt(l,g)],s=x[0],a=x[1],u=x[2],c=x[3],l=x[4]}return $t(Kt([s,a,u,c,l]));var S,x}function It(t,e,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 Nt(t){var e=v(t),r=[jt(e,0),jt(e,102072)],n=r[0],o=r[1];return 0!=n||0!=o&&1!=o||(n=319790063^n,o=-1801410264^o),[n,o]}function Dt(t,e){var r=Nt(t),n=r[0],o=r[1];if(e){var i=Nt(e),s=i[0],a=i[1];u=Ut(qt([n,o],1),[s,a]),n=u[0],o=u[1]}return Xt(Kt([2147483647&n,o]));var u}function jt(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=Vt(o,Wt(t,r,Ia.Little)),i=Vt(i,Wt(t,r+4,Ia.Little)),e=Vt(e,Wt(t,r+8,Ia.Little)),a=Lt([o,i,e]),o=a[0],i=a[1],e=a[2];return o=Vt(o,Wt(t,r,Ia.Little)),i=Vt(i,Wt(t,r+4,Ia.Little)),e=Vt(e,s),e=Vt(e,Wt(t,r+8,Ia.Little)<<8),Lt([o,i,e])[2];var a}function Lt(t){var e=t[0],r=t[1],n=t[2];return e=Bt(e,r),e=Bt(e,n),e^=n>>>13,r=Bt(r,n),r=Bt(r,e),r^=e<<8,n=Bt(n,e),n=Bt(n,r),n^=r>>>13,e=Bt(e,r),e=Bt(e,n),e^=n>>>12,r=Bt(r,n),r=Bt(r,e),r^=e<<16,n=Bt(n,e),n=Bt(n,r),n^=r>>>5,e=Bt(e,r),e=Bt(e,n),e^=n>>>3,r=Bt(r,n),r=Bt(r,e),r^=e<<10,n=Bt(n,e),n=Bt(n,r),n^=r>>>15,[e,r,n]}function Vt(t,e){return Ft(t,e)[1]}function Ft(t,e){var r=(65535&t)+(65535&e),n=(t>>>16)+(e>>>16)+(r>>>16);return[n>>>16,n<<16|65535&r]}function Ut(t,e){var r=t[0],n=t[1],o=e[0],i=e[1],s=Ft(n,i),a=s[0],u=s[1],c=Vt(Vt(r,o),a);return[c,u]}function Bt(t,e){var r=(65535&t)-(65535&e),n=(t>>16)-(e>>16)+(r>>16);return n<<16|65535&r}function Ht(t,e){return t<<e|t>>>32-e}function qt(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 zt(t,e){for(var r=Array(t.length+3>>>2),n=0;n<r.length;n++)r[n]=Wt(t,4*n,e);return r}function Gt(t,e){return e>=t.length?0:255&t.charCodeAt(e)}function Wt(t,e,r){var n=0;if(r===Ia.Big)for(var o=0;4>o;o++)n+=Gt(t,e+o)<<24-8*o;else for(var o=0;4>o;o++)n+=Gt(t,e+o)<<8*o;return n}function Kt(t){return t.reduce(function(t,e){return t+Qt(e)},"")}function Qt(t){for(var e="",r=0;4>r;r++)e+=String.fromCharCode(t>>>8*(3-r)&255);return e}function $t(t){for(var e="",r=0;r<t.length;r++){var n=Gt(t,r);e+=(n>>>4).toString(16)+(15&n).toString(16)}return e.toLowerCase()}function Xt(t){for(var e="",r="1",n=t.length-1;n>=0;n--)e=Zt(e,Yt(Gt(t,n),r)),r=Yt(256,r);return e.split("").reverse().join("")}function Zt(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 Yt(t,e){for(var r="",n=e;0!==t;t>>>=1)1&t&&(r=Zt(r,n)),n=Zt(n,n);return r}function Jt(t){return t.map(function(t){return t.visit(La)}).join("")}function te(t){return qa.reduce(function(t,e){return t.replace(e[0],e[1])},t)}function ee(t){switch(t.toLowerCase()){case"br":return"lb";case"img":return"image";default:return"x-"+t}}function re(t){return Mt(t)}function ne(t){return t.toUpperCase().replace(/[^A-Z0-9_]/g,"_")}function oe(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 ie(t){switch(t=(t||"xlf").toLowerCase()){case"xmb":return new au;case"xtb":return new fu;case"xliff":case"xlf":default:return new Ya}}function se(t,e,r){return void 0===e&&(e=null),void 0===r&&(r="src"),null==e?"@angular/"+t:"@angular/"+t+"/"+r+"/"+e}function ae(t){var r=t.name;return e.ɵreflector.resolveIdentifier(r,t.moduleUrl,null,t.runtime)}function ue(t){return{reference:ae(t)}}function ce(t){return{identifier:t}}function le(t){return ce(ue(t))}function pe(t){var e=new xu;return new Eu(it(e,t),e.isExpanded,e.errors)}function he(t,e){var r=t.cases.map(function(t){-1!=Cu.indexOf(t.value)||t.value.match(/^=\d+$/)||e.push(new Su(t.valueSourceSpan,'Plural cases should be "=<number>" or one of '+Cu.join(", ")));var r=pe(t.expression);return e.push.apply(e,r.errors),new Gs("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 Gs("ng-container",[n],r,t.sourceSpan,t.sourceSpan,t.sourceSpan)}function fe(t,e){var r=t.cases.map(function(t){var r=pe(t.expression);return e.push.apply(e,r.errors),"other"===t.value?new Gs("ng-template",[new zs("ngSwitchDefault","",t.valueSourceSpan)],r.nodes,t.sourceSpan,t.sourceSpan,t.sourceSpan):new Gs("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 Gs("ng-container",[n],r,t.sourceSpan,t.sourceSpan,t.sourceSpan)}function de(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 ye(t,e){var r=e.eager,n=e.providers;return new no(t.token,t.multiProvider,t.eager||r,n,t.providerType,t.lifecycleHooks,t.sourceSpan)}function ve(t,e,r){var n=new Map;t.forEach(function(t){var o={token:{identifier:t.type},useClass:t.type};me([o],t.isComponent?oo.Component:oo.Directive,!0,e,r,n)});var o=t.filter(function(t){return t.isComponent}).concat(t.filter(function(t){return!t.isComponent}));return o.forEach(function(t){me(t.providers,oo.PublicService,!1,e,r,n),me(t.viewProviders,oo.PrivateService,!1,e,r,n)}),n}function me(t,e,r,n,o,i){t.forEach(function(t){var s=i.get(T(t.token));if(null!=s&&!!s.multiProvider!=!!t.multi&&o.push(new Tu("Mixing multi and non multi provider is not possible for token "+x(s.token),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 no(t.token,t.multi,r||u,[t],e,a,n),i.set(T(t.token),s)}})}function ge(t){var e=1,r=new Map;return t.viewQueries&&t.viewQueries.forEach(function(t){return be(r,{meta:t,queryId:e++})}),r}function _e(t,e){var r=t,n=new Map;return e.forEach(function(t){t.queries&&t.queries.forEach(function(t){return be(n,{meta:t,queryId:r++})})}),n}function be(t,e){e.meta.selectors.forEach(function(r){var n=t.get(T(r));n||(n=[],t.set(T(r),n)),n.push(e)})}function we(t){if(null==t||0===t.length||"/"==t[0])return!1;var e=t.match(Nu);return null===e||"package"==e[1]||"asset"==e[1]}function Ce(t,e,r){var n=[],o=r.replace(Iu,"").replace(ku,function(){for(var r=[],o=0;o<arguments.length;o++)r[o]=arguments[o];var i=r[1]||r[2];return we(i)?(n.push(t.resolve(e,i)),""):r[0]});return new Ru(o,n)}function Ee(t){return"@"==t[0]}function Se(t,r,n,o){var i=[];return vo.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 xe(t){var e=null,r=null,o=null,i=!1,s=null;t.attrs.forEach(function(t){var n=t.name.toLowerCase();n==zu?e=t.value:n==Qu?r=t.value:n==Ku?o=t.value:t.name==Yu?i=!0:t.name==Ju&&t.value.length>0&&(s=t.value)}),e=Te(e);var a=t.name.toLowerCase(),u=tc.OTHER;return n(a)[1]==Gu?u=tc.NG_CONTENT:a==Xu?u=tc.STYLE:a==Zu?u=tc.SCRIPT:a==Wu&&o==$u&&(u=tc.STYLESHEET),new ec(u,e,r,i,s)}function Te(t){return null===t||0===t.length?"*":t}function Pe(t){return function(e){return-1!==t.indexOf(e.msg)?(wc[e.msg]=(wc[e.msg]||0)+1,wc[e.msg]<=1):!0}}function Ae(t){return t.trim().split(/\s+/g)}function Oe(t,e){var r=new vo,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()==mc){var c=Ae(u);c.forEach(function(t){return r.addClassName(t)})}}return r}function Me(t){return t instanceof Bs&&0==t.value.trim().length}function Re(t){var e=new Map;return t.forEach(function(t){e.get(t.type.reference)||e.set(t.type.reference,t)}),Array.from(e.values())}function ke(t){return t instanceof mi&&(t=t.ast),t instanceof Yo}function Ie(t,e,r){var o=n(t.name)[1];return o===fc?!0:o.toLowerCase()===dc?e&&o.toLowerCase()===dc?(r(_c,t.sourceSpan),!0):!1:void 0}function Ne(){return new Nc}function De(){return new Nc(".")}function je(t){var e=Ve(t);return e&&e[jc.Scheme]||""}function Le(t,e,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 Ve(t){return t.match(Dc)}function Fe(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 Ue(t){var e=t[jc.Path];return e=null==e?"":Fe(e),t[jc.Path]=e,Le(t[jc.Scheme],t[jc.UserInfo],t[jc.Domain],t[jc.Port],e,t[jc.QueryData],t[jc.Fragment])}function Be(t,e){var r=Ve(encodeURI(e)),n=Ve(t);if(null!=r[jc.Scheme])return Ue(r);r[jc.Scheme]=n[jc.Scheme];for(var o=jc.Scheme;o<=jc.Port;o++)null==r[o]&&(r[o]=n[o]);if("/"==r[jc.Path][0])return Ue(r);var i=n[jc.Path];null==i&&(i="/");var s=i.lastIndexOf("/");return i=i.substring(0,s+1)+r[jc.Path],r[jc.Path]=i,Ue(r)}function He(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 ze(t){var e=Ke(t);return e[0]+".ngfactory"+e[1]}function Ge(t){return t.replace(Hc,".")}function We(t){return Hc.test(t)}function Ke(t){if(t.endsWith(".d.ts"))return[t.slice(0,-5),".ts"];var e=t.lastIndexOf(".");return-1!==e?[t.substring(0,e),t.substring(e)]:[t,""]}function Qe(t){var e=t.replace(Bc,"");return e+".ngsummary.json"}function $e(t,r){return e.ɵreflector.hasLifecycleHook(r,Xe(t))}function Xe(t){switch(t){case e.ɵLifecycleHooks.OnInit:return"ngOnInit";case e.ɵLifecycleHooks.OnDestroy:return"ngOnDestroy";case e.ɵLifecycleHooks.DoCheck:return"ngDoCheck";case e.ɵLifecycleHooks.OnChanges:return"ngOnChanges";case e.ɵLifecycleHooks.AfterContentInit:return"ngAfterContentInit";case e.ɵLifecycleHooks.AfterContentChecked:return"ngAfterContentChecked";case e.ɵLifecycleHooks.AfterViewInit:return"ngAfterViewInit";case e.ɵLifecycleHooks.AfterViewChecked:return"ngAfterViewChecked"}}function Ze(t){return t instanceof e.NgModule}function Ye(t){return t instanceof e.Pipe}function Je(t,r){if(void 0===r&&(r=[]),t)for(var n=0;n<t.length;n++){var o=e.resolveForwardRef(t[n]);Array.isArray(o)?Je(o,r):r.push(o)}return r}function tr(t){return t?Array.from(new Set(t)):[]}function er(t){return tr(Je(t))}function rr(t){return t instanceof ao||t instanceof e.Type}function nr(t,e,r){if(e instanceof ao)return t.resourceUri(e);var n=r.moduleId;if("string"==typeof n){var o=je(n);return o?n:"package:"+n+bo}if(null!==n&&void 0!==n)throw h('moduleId should be a string in "'+ir(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 or(t,e){p(t,new Qc,e)}function ir(t){return t instanceof ao?t.name+" in "+t.filePath:e.ɵstringify(t)}function sr(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 ar(t){var e=new Xl;return e.visitAllStatements(t,null),e.varNames}function ur(t,e){if(!e)return t;var r=new Zl(e);return t.visitStatement(r,null)}function cr(t,e){if(!e)return t;var r=new Zl(e);return t.visitExpression(r,null)}function lr(t,e,r){return void 0===e&&(e=null),new ul(t,e,r)}function pr(t,e,r){return void 0===e&&(e=null),new ml(t,null,e,r)}function hr(t,e,r){return void 0===e&&(e=null),void 0===r&&(r=null),null!=t?fr(pr(t,e),r):null}function fr(t,e){return void 0===e&&(e=null),null!=t?new Jc(t,e):null}function dr(t,e,r){return void 0===e&&(e=null),new Tl(t,e,r)}function yr(t,e,r){return void 0===e&&(e=null),void 0===r&&(r=!1),new Al(t.map(function(t){return new Pl(t[0],t[1],r)}),e)}function vr(t,e){return new _l(t,e)}function mr(t,e,r,n){return void 0===r&&(r=null),new Cl(t,e,r,n)}function gr(t,e,r){return void 0===e&&(e=null),new vl(t,e,r)}function _r(t){var e=t.parentArgs||[],r=t.parent?[Rl.callFn(e).toStmt()]:[],n=br(Array.isArray(t.builders)?t.builders:[t.builders]),o=new Hl(null,t.ctorParams||[],r.concat(n.ctorStmts));return new zl(t.name,t.parent,n.fields,n.getters,o,n.methods,t.modifiers||[],t.sourceSpan)}function br(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 wr(t,e){return void 0===e&&(e=null),p(t,new Jl,e)}function Cr(t){return null!=t.value?gr(t.value):pr(t.identifier)}function Er(t){var e="";t=v(t);for(var r=0;r<t.length;){var n=t.charCodeAt(r++),o=t.charCodeAt(r++),i=t.charCodeAt(r++);e+=xr(n>>2),e+=xr((3&n)<<4|(isNaN(o)?0:o>>4)),e+=isNaN(o)?"=":xr((15&o)<<2|i>>6),e+=isNaN(o)||isNaN(i)?"=":xr(63&i)}return e}function Sr(t){t=0>t?(-t<<1)+1:t<<1;var e="";do{var r=31&t;t>>=5,t>0&&(r=32|r),e+=xr(r)}while(t>0);return e}function xr(t){if(0>t||t>=64)throw new Error("Can only encode value in the range [0, 63]");return cp[t]}function Tr(t,e,r){if(void 0===r&&(r=!0),null==t)return null;var n=t.replace(lp,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||!pp.test(n);return o?"'"+n+"'":n}function Pr(t){for(var e="",r=0;t>r;r++)e+=hp;return e}function Ar(t){var e=new bp(gp,{fileNameToModuleName:function(t){return t},getImportAs:function(){return null},getTypeArity:function(){return null}}),r=vp.createRoot([]),n=Array.isArray(t)?t:[t];return n.forEach(function(t){if(t instanceof Dl)t.visitStatement(e,r);else if(t instanceof sl)t.visitExpression(e,r);else{if(!(t instanceof Xc))throw new Error("Don't know how to print debug info for "+t);t.visitType(e,r)}}),r.toSource()}function Or(t,e){for(var r=0,n=e;r<n.length;r++){var o=n[r];wp[o.toLowerCase()]=t}}function Mr(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 Rr(t){return t.replace(Kp,"")}function kr(t){var e=t.match(Qp);return e?e[0]:""}function Ir(t,e){var r=Nr(t),n=0;return r.escapedString.replace($p,function(){for(var t=[],o=0;o<arguments.length;o++)t[o]=arguments[o];var i=t[2],s="",a=t[4],u="";a&&a.startsWith("{"+Jp)&&(s=r.blocks[n++],a=a.substring(Jp.length+1),u="{");var c=e(new th(i,s));return""+t[1]+c.selector+t[3]+u+c.content+a})}function Nr(t){for(var e=t.split(Xp),r=[],n=[],o=0,i=[],s=0;s<e.length;s++){var a=e[s];a==Yp&&o--,o>0?i.push(a):(i.length>0&&(n.push(i.join("")),r.push(Jp),i=[]),r.push(a)),a==Zp&&o++}return i.length>0&&(n.push(i.join("")),r.push(Jp)),new eh(r.join(""),n)}function Dr(t){var e="styles";return t&&(e+="_"+g(t.type)),e}function jr(t,e,r,n){t||(t=new yh);var o=Lr({createLiteralArrayConverter:function(){return function(t){return dr(t)}},createLiteralMapConverter:function(t){return function(e){return yr(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=[];Wr(o.visit(i,hh.Statement),s),Hr(i.temporaryCount,n,s);var a=s.length-1,u=null;if(a>=0){var c=s[a],l=$r(c);l&&(u=Qr(n),s[a]=u.set(l.cast(rl).notIdentical(gr(!1))).toDeclStmt(null,[Nl.Final]))}return new lh(s,u)}function Lr(t,e){return Fr(t,e)}function Vr(t,e,r,n){t||(t=new yh);var o=Kr(n),i=[],s=new dh(t,e,n),a=r.visit(s,hh.Expression);if(s.temporaryCount)for(var u=0;u<s.temporaryCount;u++)i.push(Br(n,u));return i.push(o.set(a).toDeclStmt(null,[Nl.Final])),new ph(i,o)}function Fr(t,e){var r=new fh(t);return e.visit(r)}function Ur(t,e){return"tmp_"+t+"_"+e}function Br(t,e){return new jl(Ur(t,e),kl)}function Hr(t,e,r){for(var n=t-1;n>=0;n--)r.unshift(Br(e,n))}function qr(t,e){if(t!==hh.Statement)throw new Error("Expected a statement, but saw "+e)}function zr(t,e){if(t!==hh.Expression)throw new Error("Expected an expression, but saw "+e)}function Gr(t,e){return t===hh.Statement?e.toStmt():e}function Wr(t,e){Array.isArray(t)?t.forEach(function(t){return Wr(t,e)}):e.push(t)}function Kr(t){return lr("currVal_"+t)}function Qr(t){return lr("pd_"+t)}function $r(t){return t instanceof Vl?t.expr:t instanceof Fl?t.value:null}function Xr(t){return t.multiProvider?Zr(t.providers):Yr(t.providerType,t.providers[0])}function Zr(t){function e(t,e){return e.map(function(e,o){var i="p"+t+"_"+o;return n.push(new wl(i,rl)),r.push(tn(e)),lr(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=pr(t.useClass).instantiate(o)}else if(t.useFactory){var o=e(r,t.deps||t.useFactory.diDeps);n=pr(t.useFactory).callFn(o)}else if(t.useExisting){var o=e(r,[{token:t.useExisting}]);n=o[0]}else n=wr(t.useValue);return n}),i=mr(n,[new Fl(dr(o))],nl);return{providerExpr:i,flags:512,depsExpr:dr(r)}}function Yr(t,e){var r,n,o;t===oo.Directive||t===oo.Component?(r=pr(e.useClass),n=8192,o=e.deps||e.useClass.diDeps):e.useClass?(r=pr(e.useClass),n=256,o=e.deps||e.useClass.diDeps):e.useFactory?(r=pr(e.useFactory),n=512,o=e.deps||e.useFactory.diDeps):e.useExisting?(r=kl,n=1024,o=[{token:e.useExisting}]):(r=wr(e.useValue),n=128,o=[]);var i=dr(o.map(function(t){return tn(t)}));return{providerExpr:r,flags:n,depsExpr:i}}function Jr(t){return t.identifier?pr(t.identifier):gr(t.value)}function tn(t){var e=t.isValue?wr(t.value):Jr(t.token),r=0;return t.isSkipSelf&&(r|=1),t.isOptional&&(r|=2),t.isValue&&(r|=8),0===r?e:dr([gr(r),e])}function en(t){var e=t[t.length-1];return e instanceof to?e.hasViewContainer:e instanceof Jn?e.name===bh&&e.children.length?en(e.children):e.hasViewContainer:e instanceof io}function rn(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 nn(t,e){switch(t.type){case so.Attribute:return dr([gr(1),gr(t.name),gr(t.securityContext)]);case so.Property:return dr([gr(8),gr(t.name),gr(t.securityContext)]);case so.Animation:var r=8|(e&&e.directive.isComponent?32:16);return dr([gr(r),gr("@"+t.name),gr(t.securityContext)]);case so.Class:return dr([gr(2),gr(t.name),kl]);case so.Style:return dr([gr(4),gr(t.name),gr(t.unit)])}}function on(t){var e=Object.create(null);t.attrs.forEach(function(t){e[t.name]=t.value}),t.directives.forEach(function(t){Object.keys(t.directive.hostAttributes).forEach(function(r){var n=t.directive.hostAttributes[r],o=e[r];e[r]=null!=o?sn(r,o,n):n})});return dr(Object.keys(e).sort().map(function(t){return dr([gr(t),gr(e[t])])}))}function sn(t,e,r){return t==mh||t==gh?e+" "+r:r}function an(t,e){return xh.callFn(e.length>10?[Sh,gr(t),gr(1),dr(e)]:[Sh,gr(t),gr(0)].concat(e))}function un(t,e,r){return pr(ue(wu.unwrapValue)).callFn([Sh,gr(t),gr(e),r])}function cn(t,e){return void 0===e&&(e=new Map),t.forEach(function(t){var r,n=new Set,o=new Set;t instanceof Jn?(cn(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 o.add(t)})}),r=t.queryMatches):t instanceof to&&(cn(t.children,e),t.children.forEach(function(t){var r=e.get(t);r.staticQueryIds.forEach(function(t){return o.add(t)}),r.dynamicQueryIds.forEach(function(t){return o.add(t)})}),r=t.queryMatches),r&&r.forEach(function(t){return n.add(t.queryId)}),o.forEach(function(t){return n["delete"](t)}),e.set(t,{staticQueryIds:n,dynamicQueryIds:o})}),e}function ln(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 pn(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 pr({reference:t.componentFactory})}),n=le(wu.ComponentFactoryResolver),o={diDeps:[{isValue:!0,value:dr(r)},{token:n,isSkipSelf:!0,isOptional:!0},{token:le(wu.NgModuleRef)}],lifecycleHooks:[],reference:ae(wu.CodegenComponentFactoryResolver)};return new no(n,!1,!0,[{token:n,multi:!1,useClass:o}],oo.PrivateService,[],e.sourceSpan)}return null}function hn(t,e){return t.isAnimation?{name:"@"+t.name+"."+t.phase,target:e&&e.directive.isComponent?"component":null}:t}function fn(t,e,r){var n=0;return n|=!r||!t.staticQueryIds.has(e)&&t.dynamicQueryIds.has(e)?268435456:134217728}function dn(t,e,r,n){var o=new Rh(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:{__symbolic:"class"},type:e}),e.summaryKind===Fo.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 yn(t,e){var r=new kh(t);return r.deserialize(e)}function vn(t,e,r){return e.dependencies.forEach(function(e){e.valuePlaceholder.reference=t.getStaticSymbol(mn(e.moduleUrl,e.isShimmed,r),e.name)}),e.statements}function mn(t,e,r){return""+t+(e?".shim":"")+".ngstyle"+r}function gn(t){if(!t.isComponent)throw new Error("Could not compile '"+g(t.type)+"' because it is not a component.")}function _n(t,e,r){var n=En(t,e,r),o=n.ngModules,i=n.symbolsMissingModule;return wn(t,o,i,r)}function bn(t,e,r){var n=_n(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 h(o.join("\n"))}return n}function wn(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 Cn(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 En(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 Sn(t){return"object"==typeof t&&t.name&&t.filePath}function xn(t){return t&&"ignore"==t.__symbolic}function Tn(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 Pn(t){return"Error encountered resolving symbol values statically. "+Tn(t)}function An(t,e){if(!t)return{};var r={};return Object.keys(t).forEach(function(n){var o=e(t[n],n);xn(o)||(jh.test(n)?Object.defineProperty(r,n,{enumerable:!1,configurable:!0,value:o}):r[n]=o)}),r}function On(t){return null===t||"function"!=typeof t&&"object"!=typeof t}function Mn(t,e,r,n){var o=new Error(t);return o.fileName=e,o.line=r,o.column=n,o}function Rn(t){return t.startsWith("___")?t.substr(1):t}function kn(t,r){var n=r.translations||"",o=De(),i=new uo,s=new zh(t,i),a=new qh(t,i,s),u=new Vh(a);Nh.install(u);var c=new e.ɵConsole,l=new _u(new vu,n,r.i18nFormat,e.MissingTranslationStrategy.Warning,c),p=new Ko({defaultEncapsulation:e.ViewEncapsulation.Emulated,useJit:!1,enableLegacyTemplate:r.enableLegacyTemplate!==!1}),h=new Lc({get:function(e){return t.loadResource(e)}},o,l,p),f=new Is(new Ps),d=new Ap,y=new xc(p,f,d,l,c,[]),v=new Kc(p,new qc(u),new Uc(u),new zc(u),s,d,h,c,i,u),m={getImportAs:function(t){return a.getImportAs(t)},fileNameToModuleName:function(e,r){return t.fileNameToModuleName(e,r)},getTypeArity:function(t){return a.getTypeArity(t)}},g=new Ch(p,d),_=new Ih(p,t,v,y,new uh(o),g,new rp,new _p(m),s,r.locale,r.i18nFormat,r.genFilePreamble,a);return{compiler:_,reflector:u}}function In(t,e){var r=t.concat([new Fl(dr(e.map(function(t){return lr(t)})))]),n=new Gh(null,null,null,new Map),o=new Kh,i=o.visitAllStatements(r,n);return null!=i?i.value:null}function Nn(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 Dn(t,e,r){var n={};t.getters.forEach(function(o){n[o.name]={configurable:!1,get:function(){var n=new Gh(e,this,t.name,e.vars);return Nn([],[],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 Gh(e,this,t.name,e.vars);return Nn(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 Gh(e,this,t.name,e.vars);t.fields.forEach(function(t){n[t.name]=void 0}),Nn(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 jn(t,e,r,n){return function(){for(var o=[],i=0;i<arguments.length;i++)o[i]=arguments[i];return Nn(t,o,e,r,n)}}function Ln(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 Vn(t,e,r){var n=new Zh,o=vp.createRoot(r),i=new Fl(dr(r.map(function(t){return lr(t)})));return n.visitAllStatements(e.concat([i]),o),Ln(t,o,n.getArgs())}function Fn(t){if(!t.isComponent)throw new Error("Could not compile '"+g(t.type)+"' because it is not a component.")}function Un(){e.ɵreflector.reflectionCapabilities=new e.ɵReflectionCapabilities}function Bn(t){return{useJit:Hn(t.map(function(t){return t.useJit})),defaultEncapsulation:Hn(t.map(function(t){return t.defaultEncapsulation})),providers:qn(t.map(function(t){return t.providers})),missingTranslation:Hn(t.map(function(t){return t.missingTranslation}))}}function Hn(t){for(var e=t.length-1;e>=0;e--)if(void 0!==t[e])return t[e];return void 0}function qn(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)},Gn=new e.Version("4.0.1"),Wn=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}(),Kn=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}(),Qn=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}(),$n=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===so.Animation},enumerable:!0,configurable:!0}),t}(),Xn=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}(),Zn=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}(),Yn=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}(),Jn=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}(),to=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}(),eo=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}(),ro=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}(),no=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}(),oo={};oo.PublicService=0,oo.PrivateService=1,oo.Component=2,oo.Directive=3,oo.Builtin=4,oo[oo.PublicService]="PublicService",oo[oo.PrivateService]="PrivateService",oo[oo.Component]="Component",oo[oo.Directive]="Directive",oo[oo.Builtin]="Builtin";var io=function(){function t(t,e,r){this.index=t,this.ngContentIndex=e,this.sourceSpan=r}return t.prototype.visit=function(t,e){return t.visitNgContent(this,e)},t}(),so={};so.Property=0,so.Attribute=1,so.Class=2,so.Style=3,so.Animation=4,so[so.Property]="Property",so[so.Attribute]="Attribute",so[so.Class]="Class",so[so.Style]="Style",so[so.Animation]="Animation";var ao=function(){function t(t,e,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}(),uo=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 ao(t,e,r),this.cache.set(o,i)),i},t}(),co={};co.RAW_TEXT=0,co.ESCAPABLE_RAW_TEXT=1,co.PARSABLE_DATA=2,co[co.RAW_TEXT]="RAW_TEXT",co[co.ESCAPABLE_RAW_TEXT]="ESCAPABLE_RAW_TEXT",co[co.PARSABLE_DATA]="PARSABLE_DATA";var lo={Aacute:"Á",aacute:"á",Acirc:"Â",acirc:"â",acute:"´",AElig:"Æ",aelig:"æ",Agrave:"À",agrave:"à",alefsym:"ℵ",Alpha:"Α",alpha:"α",amp:"&",and:"∧",ang:"∠",apos:"'",Aring:"Å",aring:"å",asymp:"≈",Atilde:"Ã",atilde:"ã",Auml:"Ä",auml:"ä",bdquo:"„",Beta:"Β",beta:"β",brvbar:"¦",bull:"•",cap:"∩",Ccedil:"Ç",ccedil:"ç",cedil:"¸",cent:"¢",Chi:"Χ",chi:"χ",circ:"ˆ",clubs:"♣",cong:"≅",copy:"©",crarr:"↵",cup:"∪",curren:"¤",dagger:"†",Dagger:"‡",darr:"↓",dArr:"⇓",deg:"°",Delta:"Δ",delta:"δ",diams:"♦",divide:"÷",Eacute:"É",eacute:"é",Ecirc:"Ê",ecirc:"ê",Egrave:"È",egrave:"è",empty:"∅",emsp:" ",ensp:" ",Epsilon:"Ε",epsilon:"ε",equiv:"≡",Eta:"Η",eta:"η",ETH:"Ð",eth:"ð",Euml:"Ë",euml:"ë",euro:"€",exist:"∃",fnof:"ƒ",forall:"∀",frac12:"½",frac14:"¼",frac34:"¾",frasl:"⁄",Gamma:"Γ",gamma:"γ",ge:"≥",gt:">",harr:"↔",hArr:"⇔",hearts:"♥",hellip:"…",Iacute:"Í",iacute:"í",Icirc:"Î",icirc:"î",iexcl:"¡",Igrave:"Ì",igrave:"ì",image:"ℑ",infin:"∞","int":"∫",Iota:"Ι",iota:"ι",iquest:"¿",isin:"∈",Iuml:"Ï",iuml:"ï",Kappa:"Κ",kappa:"κ",Lambda:"Λ",lambda:"λ",lang:"⟨",laquo:"«",larr:"←",lArr:"⇐",lceil:"⌈",ldquo:"“",le:"≤",lfloor:"⌊",lowast:"∗",loz:"◊",lrm:"‎",lsaquo:"‹",lsquo:"‘",lt:"<",macr:"¯",mdash:"—",micro:"µ",middot:"·",minus:"−",Mu:"Μ",mu:"μ",nabla:"∇",nbsp:" ",ndash:"–",ne:"≠",ni:"∋",not:"¬",notin:"∉",nsub:"⊄",Ntilde:"Ñ",ntilde:"ñ",Nu:"Ν",nu:"ν",Oacute:"Ó",oacute:"ó",Ocirc:"Ô",ocirc:"ô",OElig:"Œ",oelig:"œ",Ograve:"Ò",ograve:"ò",oline:"‾",Omega:"Ω",omega:"ω",Omicron:"Ο",omicron:"ο",oplus:"⊕",or:"∨",ordf:"ª",ordm:"º",Oslash:"Ø",oslash:"ø",Otilde:"Õ",otilde:"õ",otimes:"⊗",Ouml:"Ö",ouml:"ö",para:"¶",permil:"‰",perp:"⊥",Phi:"Φ",phi:"φ",Pi:"Π",pi:"π",piv:"ϖ",plusmn:"±",pound:"£",prime:"′",Prime:"″",prod:"∏",prop:"∝",Psi:"Ψ",psi:"ψ",quot:'"',radic:"√",rang:"⟩",raquo:"»",rarr:"→",rArr:"⇒",rceil:"⌉",rdquo:"”",real:"ℜ",reg:"®",rfloor:"⌋",Rho:"Ρ",rho:"ρ",rlm:"‏",rsaquo:"›",rsquo:"’",sbquo:"‚",Scaron:"Š",scaron:"š",sdot:"⋅",sect:"§",shy:"­",Sigma:"Σ",sigma:"σ",sigmaf:"ς",sim:"∼",spades:"♠",sub:"⊂",sube:"⊆",sum:"∑",sup:"⊃",sup1:"¹",sup2:"²",sup3:"³",supe:"⊇",szlig:"ß",Tau:"Τ",tau:"τ",there4:"∴",Theta:"Θ",theta:"θ",thetasym:"ϑ",thinsp:" ",THORN:"Þ",thorn:"þ",tilde:"˜",times:"×",trade:"™",Uacute:"Ú",uacute:"ú",uarr:"↑",uArr:"⇑",Ucirc:"Û",ucirc:"û",Ugrave:"Ù",ugrave:"ù",uml:"¨",upsih:"ϒ",Upsilon:"Υ",upsilon:"υ",Uuml:"Ü",uuml:"ü",weierp:"℘",Xi:"Ξ",xi:"ξ",Yacute:"Ý",yacute:"ý",yen:"¥",yuml:"ÿ",Yuml:"Ÿ",Zeta:"Ζ",zeta:"ζ",zwj:"‍",zwnj:"‌"},po=function(){function t(t){var e=void 0===t?{}:t,r=e.closedByChildren,n=e.requiredParents,o=e.implicitNamespacePrefix,i=e.contentType,s=void 0===i?co.PARSABLE_DATA:i,a=e.closedByParent,u=void 0===a?!1:a,c=e.isVoid,l=void 0===c?!1:c,p=e.ignoreFirstLf,h=void 0===p?!1:p,f=this;this.closedByChildren={},this.closedByParent=!1,this.canSelfClose=!1,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,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}(),ho={base:new po({isVoid:!0}),meta:new po({isVoid:!0}),area:new po({isVoid:!0}),embed:new po({isVoid:!0}),link:new po({isVoid:!0}),img:new po({isVoid:!0}),input:new po({isVoid:!0}),param:new po({isVoid:!0}),hr:new po({isVoid:!0}),br:new po({isVoid:!0}),source:new po({isVoid:!0}),track:new po({isVoid:!0}),wbr:new po({isVoid:!0}),p:new po({closedByChildren:["address","article","aside","blockquote","div","dl","fieldset","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","hr","main","nav","ol","p","pre","section","table","ul"],closedByParent:!0}),thead:new po({closedByChildren:["tbody","tfoot"]}),tbody:new po({closedByChildren:["tbody","tfoot"],closedByParent:!0}),tfoot:new po({closedByChildren:["tbody"],closedByParent:!0}),tr:new po({closedByChildren:["tr"],requiredParents:["tbody","tfoot","thead"],closedByParent:!0}),td:new po({closedByChildren:["td","th"],closedByParent:!0}),th:new po({closedByChildren:["td","th"],closedByParent:!0}),col:new po({requiredParents:["colgroup"],isVoid:!0}),svg:new po({implicitNamespacePrefix:"svg"}),math:new po({implicitNamespacePrefix:"math"}),li:new po({closedByChildren:["li"],closedByParent:!0}),dt:new po({closedByChildren:["dt","dd"]}),dd:new po({closedByChildren:["dt","dd"],closedByParent:!0}),rb:new po({closedByChildren:["rb","rt","rtc","rp"],closedByParent:!0}),rt:new po({closedByChildren:["rb","rt","rtc","rp"],closedByParent:!0}),rtc:new po({closedByChildren:["rb","rtc","rp"],closedByParent:!0}),rp:new po({closedByChildren:["rb","rt","rtc","rp"],closedByParent:!0}),optgroup:new po({closedByChildren:["optgroup"],closedByParent:!0}),option:new po({closedByChildren:["option","optgroup"],closedByParent:!0}),pre:new po({ignoreFirstLf:!0}),listing:new po({ignoreFirstLf:!0}),style:new po({contentType:co.RAW_TEXT}),script:new po({contentType:co.RAW_TEXT}),title:new po({contentType:co.ESCAPABLE_RAW_TEXT}),textarea:new po({contentType:co.ESCAPABLE_RAW_TEXT,ignoreFirstLf:!0})},fo=new po,yo=new RegExp("(\\:not\\()|([-\\w]+)|(?:\\.([-\\w]+))|(?:\\[([-.\\w*]+)(?:=([\"']?)([^\\]\"']*)\\5)?\\])|(\\))|(\\s*,\\s*)","g"),vo=function(){function t(){this.element=null,this.classNames=[],this.attrs=[],this.notSelectors=[]}return t.parse=function(e){var 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(yo.lastIndex=0;r=yo.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 s(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}(),mo=function(){function t(){this._elementMap=new Map,this._elementPartialMap=new Map,this._classMap=new Map,this._classPartialMap=new Map,this._attrValueMap=new Map,this._attrValuePartialMap=new Map,this._listContexts=[]}return t.createNotMatcher=function(e){var r=new t;return r.addSelectables(e,null),r},t.prototype.addSelectables=function(t,e){var r=null;t.length>1&&(r=new go(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 _o(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 y=n._attrValuePartialMap,v=y.get(p);v||(v=new Map,y.set(p,v)),n=this._addPartial(v,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}(),go=function(){function t(t){this.selectors=t,this.alreadyMatched=!1}return t}(),_o=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=mo.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}(),bo="",wo=/-+([a-z0-9])/g,Co=function(){function t(){}return t.prototype.visitArray=function(t,e){var r=this;return t.map(function(t){return p(t,r,e)})},t.prototype.visitStringMap=function(t,e){var r=this,n={};return Object.keys(t).forEach(function(o){n[o]=p(t[o],r,e)}),n},t.prototype.visitPrimitive=function(t){return t},t.prototype.visitOther=function(t){return t},t}(),Eo=function(){function t(t,e){void 0===e&&(e=null),this.syncResult=t,this.asyncResult=e,e||(this.asyncResult=Promise.resolve(t))}return t}(),So="ngSyntaxError",xo=Object.getPrototypeOf({}),To=/^(?:(?:\[([^\]]+)\])|(?:\(([^\)]+)\)))|(\@[-\w]+)$/,Po=function(){function t(t,e){void 0===t&&(t=null),void 0===e&&(e=null),this.name=t,this.definitions=e}return t}(),Ao=function(){function t(){}return t}(),Oo=function(t){function e(e,r){var n=t.call(this)||this;return n.stateNameExpr=e,n.styles=r,n}return zn(e,t),e}(Ao),Mo=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}(Ao),Ro=function(){function t(){}return t}(),ko=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}(Ro),Io=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}(Ro),No=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}(Ro),Do=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}(Ro),jo=function(t){function e(e){return void 0===e&&(e=null),t.call(this,e)||this}return zn(e,t),e}(Do),Lo=function(t){function e(e){return void 0===e&&(e=null),t.call(this,e)||this}return zn(e,t),e}(Do),Vo=0,Fo={};Fo.Pipe=0,Fo.Directive=1,Fo.NgModule=2,Fo.Injectable=3,Fo[Fo.Pipe]="Pipe",Fo[Fo.Directive]="Directive",Fo[Fo.NgModule]="NgModule",Fo[Fo.Injectable]="Injectable";var Uo=function(){function t(t){var e=void 0===t?{}:t,r=e.moduleUrl,n=e.styles,o=e.styleUrls;this.moduleUrl=r,this.styles=A(n),this.styleUrls=A(o)}return t}(),Bo=function(){function t(t){var e=void 0===t?{}:t,r=e.encapsulation,n=e.template,o=e.templateUrl,i=e.styles,s=e.styleUrls,a=e.externalStylesheets,u=e.animations,c=e.ngContentSelectors,l=e.interpolation,p=e.isInline;if(this.encapsulation=r,this.template=n,this.templateUrl=o,this.styles=A(i),this.styleUrls=A(s),this.externalStylesheets=A(a),this.animations=u?O(u):[],this.ngContentSelectors=c||[],l&&2!=l.length)throw new Error("'interpolation' should have a start and an end symbol.");this.interpolation=l,this.isInline=p}return t.prototype.toSummary=function(){return{animations:this.animations.map(function(t){return t.name}),ngContentSelectors:this.ngContentSelectors,encapsulation:this.encapsulation}},t}(),Ho=function(){function t(t){var e=void 0===t?{}:t,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.hostListeners,p=e.hostProperties,h=e.hostAttributes,f=e.providers,d=e.viewProviders,y=e.queries,v=e.viewQueries,m=e.entryComponents,g=e.template,_=e.componentViewType,b=e.rendererType,w=e.componentFactory;this.isHost=!!r,this.type=n,this.isComponent=o,this.selector=i,this.exportAs=s,this.changeDetection=a,this.inputs=u,this.outputs=c,this.hostListeners=l,this.hostProperties=p,this.hostAttributes=h,this.providers=A(f),this.viewProviders=A(d),this.queries=A(y),this.viewQueries=A(v),this.entryComponents=A(m),this.template=g,this.componentViewType=_,this.rendererType=b,this.componentFactory=w}return t.create=function(e){var r=void 0===e?{}:e,n=r.isHost,o=r.type,i=r.isComponent,s=r.selector,a=r.exportAs,c=r.changeDetection,l=r.inputs,p=r.outputs,h=r.host,f=r.providers,d=r.viewProviders,y=r.queries,v=r.viewQueries,m=r.entryComponents,g=r.template,_=r.componentViewType,b=r.rendererType,w=r.componentFactory,C={},E={},S={};null!=h&&Object.keys(h).forEach(function(t){var e=h[t],r=t.match(To);null===r?S[t]=e:null!=r[1]?E[r[1]]=e:null!=r[2]&&(C[r[2]]=e)});var x={};null!=l&&l.forEach(function(t){var e=u(t,[t,t]);x[e[0]]=e[1]});var T={};return null!=p&&p.forEach(function(t){var e=u(t,[t,t]);T[e[0]]=e[1]}),new t({isHost:n,type:o,isComponent:!!i,selector:s,exportAs:a,changeDetection:c,inputs:x,outputs:T,hostListeners:C,hostProperties:E,hostAttributes:S,providers:f,viewProviders:d,queries:y,viewQueries:v,entryComponents:m,template:g,componentViewType:_,rendererType:b,componentFactory:w})},t.prototype.toSummary=function(){return{summaryKind:Fo.Directive,type:this.type,isComponent:this.isComponent,selector:this.selector,exportAs:this.exportAs,inputs:this.inputs,outputs:this.outputs,hostListeners:this.hostListeners,hostProperties:this.hostProperties,hostAttributes:this.hostAttributes,providers:this.providers,viewProviders:this.viewProviders,queries:this.queries,viewQueries:this.viewQueries,entryComponents:this.entryComponents,changeDetection:this.changeDetection,template:this.template&&this.template.toSummary(),componentViewType:this.componentViewType,rendererType:this.rendererType,componentFactory:this.componentFactory}},t}(),qo=function(){function t(t){var e=void 0===t?{}:t,r=e.type,n=e.name,o=e.pure;this.type=r,this.name=n,this.pure=!!o}return t.prototype.toSummary=function(){return{summaryKind:Fo.Pipe,type:this.type,name:this.name,pure:this.pure}},t}(),zo=function(){function t(t){var e=void 0===t?{}:t,r=e.type,n=e.providers,o=e.declaredDirectives,i=e.exportedDirectives,s=e.declaredPipes,a=e.exportedPipes,u=e.entryComponents,c=e.bootstrapComponents,l=e.importedModules,p=e.exportedModules,h=e.schemas,f=e.transitiveModule,d=e.id;this.type=r,this.declaredDirectives=A(o),this.exportedDirectives=A(i),this.declaredPipes=A(s),this.exportedPipes=A(a),this.providers=A(n),this.entryComponents=A(u),this.bootstrapComponents=A(c),this.importedModules=A(l),this.exportedModules=A(p),this.schemas=A(h),this.id=d,this.transitiveModule=f}return t.prototype.toSummary=function(){return{summaryKind:Fo.NgModule,type:this.type,entryComponents:this.transitiveModule.entryComponents,providers:this.transitiveModule.providers,modules:this.transitiveModule.modules,exportedDirectives:this.transitiveModule.exportedDirectives,exportedPipes:this.transitiveModule.exportedPipes}},t}(),Go=function(){function t(){this.directivesSet=new Set,this.directives=[],this.exportedDirectivesSet=new Set,this.exportedDirectives=[],this.pipesSet=new Set,this.pipes=[],this.exportedPipesSet=new Set,this.exportedPipes=[],this.modulesSet=new Set,this.modules=[],this.entryComponentsSet=new Set,this.entryComponents=[],this.providers=[]}return t.prototype.addProvider=function(t,e){this.providers.push({provider:t,module:e})},t.prototype.addDirective=function(t){this.directivesSet.has(t.reference)||(this.directivesSet.add(t.reference),this.directives.push(t))},t.prototype.addExportedDirective=function(t){this.exportedDirectivesSet.has(t.reference)||(this.exportedDirectivesSet.add(t.reference),this.exportedDirectives.push(t))},t.prototype.addPipe=function(t){this.pipesSet.has(t.reference)||(this.pipesSet.add(t.reference),this.pipes.push(t))},t.prototype.addExportedPipe=function(t){this.exportedPipesSet.has(t.reference)||(this.exportedPipesSet.add(t.reference),this.exportedPipes.push(t))},t.prototype.addModule=function(t){this.modulesSet.has(t.reference)||(this.modulesSet.add(t.reference),this.modules.push(t))},t.prototype.addEntryComponent=function(t){this.entryComponentsSet.has(t.componentType)||(this.entryComponentsSet.add(t.componentType),this.entryComponents.push(t))},t}(),Wo=function(){function t(t,e){var r=e.useClass,n=e.useValue,o=e.useExisting,i=e.useFactory,s=e.deps,a=e.multi;this.token=t,this.useClass=r,this.useValue=n,this.useExisting=o,this.useFactory=i,this.dependencies=s,this.multi=!!a}return t}(),Ko=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,this.enableLegacyTemplate=u!==!1}return t}(),Qo=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}(),$o=function(){function t(t,e){this.start=t,this.end=e}return t}(),Xo=function(){function t(t){this.span=t}return t.prototype.visit=function(t,e){return void 0===e&&(e=null),null},t.prototype.toString=function(){return"AST"},t}(),Zo=function(t){function e(e,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}(Xo),Yo=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}(Xo),Jo=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}(Xo),ti=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}(Xo),ei=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}(Xo),ri=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}(Xo),ni=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}(Xo),oi=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}(Xo),ii=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}(Xo),si=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}(Xo),ai=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}(Xo),ui=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}(Xo),ci=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}(Xo),li=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}(Xo),pi=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}(Xo),hi=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}(Xo),fi=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}(Xo),di=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}(Xo),yi=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}(Xo),vi=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}(Xo),mi=function(t){function e(e,r,n,o){var i=t.call(this,new $o(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}(Xo),gi=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}(),_i=function(){function t(){}return t.prototype.visitBinary=function(t){return t.left.visit(this),t.right.visit(this),null},t.prototype.visitChain=function(t,e){return this.visitAll(t.expressions,e)},t.prototype.visitConditional=function(t){return t.condition.visit(this),t.trueExp.visit(this),t.falseExp.visit(this),null},t.prototype.visitPipe=function(t,e){return t.exp.visit(this),this.visitAll(t.args,e),null},t.prototype.visitFunctionCall=function(t,e){return t.target.visit(this),this.visitAll(t.args,e),null},t.prototype.visitImplicitReceiver=function(){return null},t.prototype.visitInterpolation=function(t,e){return this.visitAll(t.expressions,e)},t.prototype.visitKeyedRead=function(t){return t.obj.visit(this),t.key.visit(this),null},t.prototype.visitKeyedWrite=function(t){return t.obj.visit(this),t.key.visit(this),t.value.visit(this),null},t.prototype.visitLiteralArray=function(t,e){return this.visitAll(t.expressions,e)},t.prototype.visitLiteralMap=function(t,e){return this.visitAll(t.values,e)},t.prototype.visitLiteralPrimitive=function(){return null},t.prototype.visitMethodCall=function(t,e){return t.receiver.visit(this),this.visitAll(t.args,e)},t.prototype.visitPrefixNot=function(t){return t.expression.visit(this),null},t.prototype.visitPropertyRead=function(t){return t.receiver.visit(this),null},t.prototype.visitPropertyWrite=function(t){return t.receiver.visit(this),t.value.visit(this),null},t.prototype.visitSafePropertyRead=function(t){return t.receiver.visit(this),null},t.prototype.visitSafeMethodCall=function(t,e){return t.receiver.visit(this),this.visitAll(t.args,e)},t.prototype.visitAll=function(t,e){var r=this;return t.forEach(function(t){return t.visit(r,e)}),null},t.prototype.visitQuote=function(){return null},t}(),bi=function(){function t(){}return t.prototype.visitImplicitReceiver=function(t){return t},t.prototype.visitInterpolation=function(t){return new pi(t.span,t.strings,this.visitAll(t.expressions))},t.prototype.visitLiteralPrimitive=function(t){return new ui(t.span,t.value)},t.prototype.visitPropertyRead=function(t){return new ri(t.span,t.receiver.visit(this),t.name)},t.prototype.visitPropertyWrite=function(t){return new ni(t.span,t.receiver.visit(this),t.name,t.value.visit(this))},t.prototype.visitSafePropertyRead=function(t){return new oi(t.span,t.receiver.visit(this),t.name)},t.prototype.visitMethodCall=function(t){return new di(t.span,t.receiver.visit(this),t.name,this.visitAll(t.args))},t.prototype.visitSafeMethodCall=function(t){return new yi(t.span,t.receiver.visit(this),t.name,this.visitAll(t.args))},t.prototype.visitFunctionCall=function(t){return new vi(t.span,t.target.visit(this),this.visitAll(t.args))},t.prototype.visitLiteralArray=function(t){return new ci(t.span,this.visitAll(t.expressions))},t.prototype.visitLiteralMap=function(t){return new li(t.span,t.keys,this.visitAll(t.values))},t.prototype.visitBinary=function(t){return new hi(t.span,t.operation,t.left.visit(this),t.right.visit(this))},t.prototype.visitPrefixNot=function(t){return new fi(t.span,t.expression.visit(this))},t.prototype.visitConditional=function(t){return new ei(t.span,t.condition.visit(this),t.trueExp.visit(this),t.falseExp.visit(this))},t.prototype.visitPipe=function(t){return new ai(t.span,t.exp.visit(this),t.name,this.visitAll(t.args))},t.prototype.visitKeyedRead=function(t){return new ii(t.span,t.obj.visit(this),t.key.visit(this))},t.prototype.visitKeyedWrite=function(t){return new si(t.span,t.obj.visit(this),t.key.visit(this),t.value.visit(this))},t.prototype.visitAll=function(t){for(var e=new Array(t.length),r=0;r<t.length;++r)e[r]=t[r].visit(this);return e},t.prototype.visitChain=function(t){return new ti(t.span,this.visitAll(t.expressions))},t.prototype.visitQuote=function(t){return new Zo(t.span,t.prefix,t.uninterpretedExpression,t.location)},t}(),wi=0,Ci=9,Ei=10,Si=11,xi=12,Ti=13,Pi=32,Ai=33,Oi=34,Mi=35,Ri=36,ki=37,Ii=38,Ni=39,Di=40,ji=41,Li=42,Vi=43,Fi=44,Ui=45,Bi=46,Hi=47,qi=58,zi=59,Gi=60,Wi=61,Ki=62,Qi=63,$i=48,Xi=57,Zi=65,Yi=69,Ji=70,ts=88,es=90,rs=91,ns=92,os=93,is=94,ss=95,as=97,us=101,cs=102,ls=110,ps=114,hs=116,fs=117,ds=118,ys=120,vs=122,ms=123,gs=124,_s=125,bs=160,ws=96,Cs=[/^\s*$/,/[<>]/,/^[{}]$/,/&(#|[a-z])/i,/^\/\//],Es=function(){function t(t,e){this.start=t,this.end=e}return t.fromArray=function(e){return e?(B("interpolation",e),new t(e[0],e[1])):Ss},t}(),Ss=new Es("{{","}}"),xs={};xs.Character=0,xs.Identifier=1,xs.Keyword=2,xs.String=3,xs.Operator=4,xs.Number=5,xs.Error=6,xs[xs.Character]="Character",xs[xs.Identifier]="Identifier",xs[xs.Keyword]="Keyword",xs[xs.String]="String",xs[xs.Operator]="Operator",xs[xs.Number]="Number",xs[xs.Error]="Error";var Ts=["var","let","as","null","undefined","true","false","if","else","this"],Ps=function(){function t(){}return t.prototype.tokenize=function(t){for(var e=new Ms(t),r=[],n=e.scanToken();null!=n;)r.push(n),n=e.scanToken();return r},t}();Ps.decorators=[{type:F}],Ps.ctorParameters=function(){return[]};var As=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==xs.Character&&this.numValue==t},t.prototype.isNumber=function(){return this.type==xs.Number},t.prototype.isString=function(){return this.type==xs.String},t.prototype.isOperator=function(t){return this.type==xs.Operator&&this.strValue==t},t.prototype.isIdentifier=function(){return this.type==xs.Identifier},t.prototype.isKeyword=function(){return this.type==xs.Keyword},t.prototype.isKeywordLet=function(){return this.type==xs.Keyword&&"let"==this.strValue},t.prototype.isKeywordAs=function(){return this.type==xs.Keyword&&"as"==this.strValue},t.prototype.isKeywordNull=function(){return this.type==xs.Keyword&&"null"==this.strValue},t.prototype.isKeywordUndefined=function(){return this.type==xs.Keyword&&"undefined"==this.strValue},t.prototype.isKeywordTrue=function(){return this.type==xs.Keyword&&"true"==this.strValue},t.prototype.isKeywordFalse=function(){return this.type==xs.Keyword&&"false"==this.strValue},
-t.prototype.isKeywordThis=function(){return this.type==xs.Keyword&&"this"==this.strValue},t.prototype.isError=function(){return this.type==xs.Error},t.prototype.toNumber=function(){return this.type==xs.Number?this.numValue:-1},t.prototype.toString=function(){switch(this.type){case xs.Character:case xs.Identifier:case xs.Keyword:case xs.Operator:case xs.String:case xs.Error:return this.strValue;case xs.Number:return this.numValue.toString();default:return null}},t}(),Os=new As(-1,xs.Character,0,""),Ms=function(){function t(t){this.input=t,this.peek=0,this.index=-1,this.length=t.length,this.advance()}return t.prototype.advance=function(){this.peek=++this.index>=this.length?wi:this.input.charCodeAt(this.index)},t.prototype.scanToken=function(){for(var t=this.input,e=this.length,r=this.peek,n=this.index;Pi>=r;){if(++n>=e){r=wi;break}r=t.charCodeAt(n)}if(this.peek=r,this.index=n,n>=e)return null;if($(r))return this.scanIdentifier();if(j(r))return this.scanNumber(n);var o=n;switch(r){case Bi:return this.advance(),j(this.peek)?this.scanNumber(o):H(o,Bi);case Di:case ji:case ms:case _s:case rs:case os:case Fi:case qi:case zi:return this.scanCharacter(o,r);case Ni:case Oi:return this.scanString();case Mi:case Vi:case Ui:case Li:case Hi:case ki:case is:return this.scanOperator(o,String.fromCharCode(r));case Qi:return this.scanComplexOperator(o,"?",Bi,".");case Gi:case Ki:return this.scanComplexOperator(o,String.fromCharCode(r),Wi,"=");case Ai:case Wi:return this.scanComplexOperator(o,String.fromCharCode(r),Wi,"=",Wi,"=");case Ii:return this.scanComplexOperator(o,"&",Ii,"&");case gs:return this.scanComplexOperator(o,"|",gs,"|");case bs:for(;D(this.peek);)this.advance();return this.scanToken()}return this.advance(),this.error("Unexpected character ["+String.fromCharCode(r)+"]",0)},t.prototype.scanCharacter=function(t,e){return this.advance(),H(t,e)},t.prototype.scanOperator=function(t,e){return this.advance(),G(t,e)},t.prototype.scanComplexOperator=function(t,e,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),G(t,s)},t.prototype.scanIdentifier=function(){var t=this.index;for(this.advance();Z(this.peek);)this.advance();var e=this.input.substring(t,this.index);return Ts.indexOf(e)>-1?z(t,e):q(t,e)},t.prototype.scanNumber=function(t){var e=this.index===t;for(this.advance();;){if(j(this.peek));else if(this.peek==Bi)e=!1;else{if(!Y(this.peek))break;if(this.advance(),J(this.peek)&&this.advance(),!j(this.peek))return this.error("Invalid exponent",-1);e=!1}this.advance()}var r=this.input.substring(t,this.index),n=e?rt(r):parseFloat(r);return K(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==ns){r+=o.substring(n,this.index),this.advance();var i=void 0;if(this.peek=this.peek,this.peek==fs){var s=o.substring(this.index+1,this.index+5);if(!/^[0-9a-f]+$/i.test(s))return this.error("Invalid unicode escape [\\u"+s+"]",0);i=parseInt(s,16);for(var a=0;5>a;a++)this.advance()}else i=et(this.peek),this.advance();r+=String.fromCharCode(i),n=this.index}else{if(this.peek==wi)return this.error("Unterminated quote",0);this.advance()}var u=o.substring(n,this.index);return this.advance(),W(t,r+u)},t.prototype.error=function(t,e){var r=this.index+e;return Q(r,"Lexer Error: "+t+" at column "+r+" in expression ["+this.input+"]")},t}(),Rs=function(){function t(t,e,r){this.strings=t,this.expressions=e,this.offsets=r}return t}(),ks=function(){function t(t,e,r){this.templateBindings=t,this.warnings=e,this.errors=r}return t}(),Is=function(){function t(t){this._lexer=t,this.errors=[]}return t.prototype.parseAction=function(t,e,r){void 0===r&&(r=Ss),this._checkNoInterpolation(t,e,r);var n=this._stripComments(t),o=this._lexer.tokenize(this._stripComments(t)),i=new Ns(t,e,o,n.length,!0,this.errors,t.length-n.length).parseChain();return new mi(i,t,e,this.errors)},t.prototype.parseBinding=function(t,e,r){void 0===r&&(r=Ss);var n=this._parseBindingAst(t,e,r);return new mi(n,t,e,this.errors)},t.prototype.parseSimpleBinding=function(t,e,r){void 0===r&&(r=Ss);var n=this._parseBindingAst(t,e,r),o=Ds.check(n);return o.length>0&&this._reportError("Host binding expression cannot contain "+o.join(" "),t,e),new mi(n,t,e,this.errors)},t.prototype._reportError=function(t,e,r,n){this.errors.push(new Qo(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 Ns(t,e,i,o.length,!1,this.errors,t.length-o.length).parseChain()},t.prototype._parseQuote=function(t,e){if(null==t)return null;var r=t.indexOf(":");if(-1==r)return null;var n=t.substring(0,r).trim();if(!X(n))return null;var o=t.substring(r+1);return new Zo(new $o(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 Ns(e,r,n,e.length,!1,this.errors,0).parseTemplateBindings()},t.prototype.parseInterpolation=function(t,e,r){void 0===r&&(r=Ss);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 Ns(t,e,u,a.length,!1,this.errors,n.offsets[i]+(s.length-a.length)).parseChain();o.push(c)}return new mi(new pi(new $o(0,null==t?0:t.length),n.strings,o),t,e,this.errors)},t.prototype.splitInterpolation=function(t,e,r){void 0===r&&(r=Ss);var n=nt(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 Rs(i,s,a)},t.prototype.wrapLiteralPrimitive=function(t,e){return new mi(new ui(new $o(0,null==t?0:t.length),t),t,e,this.errors)},t.prototype._stripComments=function(t){var e=this._commentStart(t);return null!=e?t.substring(0,e).trim():t},t.prototype._commentStart=function(t){for(var e=null,r=0;r<t.length-1;r++){var n=t.charCodeAt(r),o=t.charCodeAt(r+1);if(n===Hi&&o==Hi&&null==e)return r;e===n?e=null:null==e&&tt(n)&&(e=n)}return null},t.prototype._checkNoInterpolation=function(t,e,r){var n=nt(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}();Is.decorators=[{type:F}],Is.ctorParameters=function(){return[{type:Ps}]};var Ns=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]:Os},Object.defineProperty(t.prototype,"next",{get:function(){return this.peek(0)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"inputIndex",{get:function(){return this.index<this.tokens.length?this.next.index+this.offset:this.inputLength+this.offset},enumerable:!0,configurable:!0}),t.prototype.span=function(t){return new $o(t,this.inputIndex)},t.prototype.advance=function(){this.index++},t.prototype.optionalCharacter=function(t){return this.next.isCharacter(t)?(this.advance(),!0):!1},t.prototype.peekKeywordLet=function(){return this.next.isKeywordLet()},t.prototype.peekKeywordAs=function(){return this.next.isKeywordAs()},t.prototype.expectCharacter=function(t){this.optionalCharacter(t)||this.error("Missing expected "+String.fromCharCode(t))},t.prototype.optionalOperator=function(t){return this.next.isOperator(t)?(this.advance(),!0):!1},t.prototype.expectOperator=function(t){this.optionalOperator(t)||this.error("Missing expected operator "+t)},t.prototype.expectIdentifierOrKeyword=function(){var t=this.next;return t.isIdentifier()||t.isKeyword()?(this.advance(),t.toString()):(this.error("Unexpected token "+t+", expected identifier or keyword"),"")},t.prototype.expectIdentifierOrKeywordOrString=function(){var t=this.next;return t.isIdentifier()||t.isKeyword()||t.isString()?(this.advance(),t.toString()):(this.error("Unexpected token "+t+", expected identifier, keyword, or string"),"")},t.prototype.parseChain=function(){for(var t=[],e=this.inputIndex;this.index<this.tokens.length;){var 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 Yo(this.span(e)):1==t.length?t[0]:new ti(this.span(e),t)},t.prototype.parsePipe=function(){var t=this.parseExpression();if(this.optionalOperator("|")){this.parseAction&&this.error("Cannot have a pipe in an action expression");do{for(var e=this.expectIdentifierOrKeyword(),r=[];this.optionalCharacter(qi);)r.push(this.parseExpression());t=new ai(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(qi))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 Yo(this.span(t))}return new ei(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 hi(this.span(t.span.start),"||",t,e)}return t},t.prototype.parseLogicalAnd=function(){for(var t=this.parseEquality();this.optionalOperator("&&");){var e=this.parseEquality();t=new hi(this.span(t.span.start),"&&",t,e)}return t},t.prototype.parseEquality=function(){for(var t=this.parseRelational();this.next.type==xs.Operator;){var e=this.next.strValue;switch(e){case"==":case"===":case"!=":case"!==":this.advance();var r=this.parseRelational();t=new hi(this.span(t.span.start),e,t,r);continue}break}return t},t.prototype.parseRelational=function(){for(var t=this.parseAdditive();this.next.type==xs.Operator;){var e=this.next.strValue;switch(e){case"<":case">":case"<=":case">=":this.advance();var r=this.parseAdditive();t=new hi(this.span(t.span.start),e,t,r);continue}break}return t},t.prototype.parseAdditive=function(){for(var t=this.parseMultiplicative();this.next.type==xs.Operator;){var e=this.next.strValue;switch(e){case"+":case"-":this.advance();var r=this.parseMultiplicative();t=new hi(this.span(t.span.start),e,t,r);continue}break}return t},t.prototype.parseMultiplicative=function(){for(var t=this.parsePrefix();this.next.type==xs.Operator;){var e=this.next.strValue;switch(e){case"*":case"%":case"/":this.advance();var r=this.parsePrefix();t=new hi(this.span(t.span.start),e,t,r);continue}break}return t},t.prototype.parsePrefix=function(){if(this.next.type==xs.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 hi(this.span(t),e,new ui(new $o(t,t),0),r);case"!":return this.advance(),r=this.parsePrefix(),new fi(this.span(t),r)}}return this.parseCallChain()},t.prototype.parseCallChain=function(){for(var t=this.parsePrimary();;)if(this.optionalCharacter(Bi))t=this.parseAccessMemberOrMethodCall(t,!1);else if(this.optionalOperator("?."))t=this.parseAccessMemberOrMethodCall(t,!0);else if(this.optionalCharacter(rs)){this.rbracketsExpected++;var e=this.parsePipe();if(this.rbracketsExpected--,this.expectCharacter(os),this.optionalOperator("=")){var r=this.parseConditional();t=new si(this.span(t.span.start),t,e,r)}else t=new ii(this.span(t.span.start),t,e)}else{if(!this.optionalCharacter(Di))return t;this.rparensExpected++;var n=this.parseCallArguments();this.rparensExpected--,this.expectCharacter(ji),t=new vi(this.span(t.span.start),t,n)}},t.prototype.parsePrimary=function(){var t=this.inputIndex;if(this.optionalCharacter(Di)){this.rparensExpected++;var e=this.parsePipe();return this.rparensExpected--,this.expectCharacter(ji),e}if(this.next.isKeywordNull())return this.advance(),new ui(this.span(t),null);if(this.next.isKeywordUndefined())return this.advance(),new ui(this.span(t),void 0);if(this.next.isKeywordTrue())return this.advance(),new ui(this.span(t),!0);if(this.next.isKeywordFalse())return this.advance(),new ui(this.span(t),!1);if(this.next.isKeywordThis())return this.advance(),new Jo(this.span(t));if(this.optionalCharacter(rs)){this.rbracketsExpected++;var r=this.parseExpressionList(os);return this.rbracketsExpected--,this.expectCharacter(os),new ci(this.span(t),r)}if(this.next.isCharacter(ms))return this.parseLiteralMap();if(this.next.isIdentifier())return this.parseAccessMemberOrMethodCall(new Jo(this.span(t)),!1);if(this.next.isNumber()){var n=this.next.toNumber();return this.advance(),new ui(this.span(t),n)}if(this.next.isString()){var o=this.next.toString();return this.advance(),new ui(this.span(t),o)}return this.index>=this.tokens.length?(this.error("Unexpected end of expression: "+this.input),new Yo(this.span(t))):(this.error("Unexpected token "+this.next),new Yo(this.span(t)))},t.prototype.parseExpressionList=function(t){var e=[];if(!this.next.isCharacter(t))do e.push(this.parsePipe());while(this.optionalCharacter(Fi));return e},t.prototype.parseLiteralMap=function(){var t=[],e=[],r=this.inputIndex;if(this.expectCharacter(ms),!this.optionalCharacter(_s)){this.rbracesExpected++;do{var n=this.expectIdentifierOrKeywordOrString();t.push(n),this.expectCharacter(qi),e.push(this.parsePipe())}while(this.optionalCharacter(Fi));this.rbracesExpected--,this.expectCharacter(_s)}return new li(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(Di)){this.rparensExpected++;var o=this.parseCallArguments();this.expectCharacter(ji),this.rparensExpected--;var i=this.span(r);return e?new yi(i,t,n,o):new di(i,t,n,o)}if(e)return this.optionalOperator("=")?(this.error("The '?.' operator cannot be used in the assignment"),new Yo(this.span(r))):new oi(this.span(r),t,n);if(this.optionalOperator("=")){if(!this.parseAction)return this.error("Bindings cannot contain assignments"),new Yo(this.span(r));var s=this.parseConditional();return new ni(this.span(r),t,n,s)}return new ri(this.span(r),t,n)},t.prototype.parseCallArguments=function(){if(this.next.isCharacter(ji))return[];var t=[];do t.push(this.parsePipe());while(this.optionalCharacter(Fi));return t},t.prototype.expectTemplateBindingKey=function(){var t="",e=!1;do t+=this.expectIdentifierOrKeywordOrString(),e=this.optionalOperator("-"),e&&(t+="-");while(e);return t.toString()},t.prototype.parseTemplateBindings=function(){for(var t=[],e=null,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(qi);var a=null,u=null;if(o)a=this.optionalOperator("=")?this.expectTemplateBindingKey():"$implicit";else if(this.peekKeywordAs()){var c=this.inputIndex;this.advance(),a=i,s=this.expectTemplateBindingKey(),o=!0}else if(this.next!==Os&&!this.peekKeywordLet()){var l=this.inputIndex,p=this.parsePipe(),h=this.input.substring(l-this.offset,this.inputIndex-this.offset);u=new mi(p,h,this.location,this.errors)}if(t.push(new gi(this.span(n),s,o,a,u)),this.peekKeywordAs()&&!o){var c=this.inputIndex;this.advance();var f=this.expectTemplateBindingKey();t.push(new gi(this.span(c),f,!0,s,null))}this.optionalCharacter(zi)||this.optionalCharacter(Fi)}return new ks(t,r,this.errors)},t.prototype.error=function(t,e){void 0===e&&(e=null),this.errors.push(new Qo(t,this.input,this.locationText(e),this.location)),this.skip()},t.prototype.locationText=function(t){return void 0===t&&(t=null),null==t&&(t=this.index),t<this.tokens.length?"at column "+(this.tokens[t].index+1)+" in":"at the end of the expression"},t.prototype.skip=function(){for(var t=this.next;this.index<this.tokens.length&&!t.isCharacter(zi)&&(this.rparensExpected<=0||!t.isCharacter(ji))&&(this.rbracesExpected<=0||!t.isCharacter(_s))&&(this.rbracketsExpected<=0||!t.isCharacter(os));)this.next.isError()&&this.errors.push(new Qo(this.next.toString(),this.input,this.locationText(),this.location)),this.advance(),t=this.next},t}(),Ds=function(){function t(){this.errors=[]}return t.check=function(e){var 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}(),js=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==Ei){i--;var u=r.substr(0,o-1).lastIndexOf(String.fromCharCode(Ei));s=u>0?o-u:o}else s--}for(;n>o&&e>0;){var a=r.charCodeAt(o);o++,e--,a==Ei?(i++,s=0):s++}return new t(this.file,o,i,s)},t.prototype.getContext=function(t,e){var 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}(),Ls=function(){function t(t,e){this.content=t,this.url=e}return t}(),Vs=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}(),Fs={};Fs.WARNING=0,Fs.ERROR=1,Fs[Fs.WARNING]="WARNING",Fs[Fs.ERROR]="ERROR";var Us=function(){function t(t,e,r){void 0===r&&(r=Fs.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+"["+Fs[this.level]+" ->]"+t.after+'")':"",r=this.span.details?", "+this.span.details:"";return""+this.msg+e+": "+this.span.start+r},t}(),Bs=function(){function t(t,e){this.value=t,this.sourceSpan=e}return t.prototype.visit=function(t,e){return t.visitText(this,e)},t}(),Hs=function(){function t(t,e,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}(),qs=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}(),Gs=function(){function t(t,e,r,n,o,i){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}(),Ws=function(){function t(t,e){this.value=t,this.sourceSpan=e}return t.prototype.visit=function(t,e){return t.visitComment(this,e)},t}(),Ks={};Ks.TAG_OPEN_START=0,Ks.TAG_OPEN_END=1,Ks.TAG_OPEN_END_VOID=2,Ks.TAG_CLOSE=3,Ks.TEXT=4,Ks.ESCAPABLE_RAW_TEXT=5,Ks.RAW_TEXT=6,Ks.COMMENT_START=7,Ks.COMMENT_END=8,Ks.CDATA_START=9,Ks.CDATA_END=10,Ks.ATTR_NAME=11,Ks.ATTR_VALUE=12,Ks.DOC_TYPE=13,Ks.EXPANSION_FORM_START=14,Ks.EXPANSION_CASE_VALUE=15,Ks.EXPANSION_CASE_EXP_START=16,Ks.EXPANSION_CASE_EXP_END=17,Ks.EXPANSION_FORM_END=18,Ks.EOF=19,Ks[Ks.TAG_OPEN_START]="TAG_OPEN_START",Ks[Ks.TAG_OPEN_END]="TAG_OPEN_END",Ks[Ks.TAG_OPEN_END_VOID]="TAG_OPEN_END_VOID",Ks[Ks.TAG_CLOSE]="TAG_CLOSE",Ks[Ks.TEXT]="TEXT",Ks[Ks.ESCAPABLE_RAW_TEXT]="ESCAPABLE_RAW_TEXT",Ks[Ks.RAW_TEXT]="RAW_TEXT",Ks[Ks.COMMENT_START]="COMMENT_START",Ks[Ks.COMMENT_END]="COMMENT_END",Ks[Ks.CDATA_START]="CDATA_START",Ks[Ks.CDATA_END]="CDATA_END",Ks[Ks.ATTR_NAME]="ATTR_NAME",Ks[Ks.ATTR_VALUE]="ATTR_VALUE",Ks[Ks.DOC_TYPE]="DOC_TYPE",Ks[Ks.EXPANSION_FORM_START]="EXPANSION_FORM_START",Ks[Ks.EXPANSION_CASE_VALUE]="EXPANSION_CASE_VALUE",Ks[Ks.EXPANSION_CASE_EXP_START]="EXPANSION_CASE_EXP_START",Ks[Ks.EXPANSION_CASE_EXP_END]="EXPANSION_CASE_EXP_END",Ks[Ks.EXPANSION_FORM_END]="EXPANSION_FORM_END",Ks[Ks.EOF]="EOF";var Qs=function(){function t(t,e,r){this.type=t,this.parts=e,this.sourceSpan=r}return t}(),$s=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}(Us),Xs=function(){function t(t,e){this.tokens=t,this.errors=e}return t}(),Zs=/\r\n?/g,Ys=function(){function t(t){this.error=t}return t}(),Js=function(){function t(t,e,r,n){void 0===n&&(n=Ss),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(Zs,"\n")},t.prototype.tokenize=function(){for(;this._peek!==wi;){var t=this._getLocation();try{this._attemptCharCode(Gi)?this._attemptCharCode(Ai)?this._attemptCharCode(rs)?this._consumeCdata(t):this._attemptCharCode(Ui)?this._consumeComment(t):this._consumeDocType(t):this._attemptCharCode(Hi)?this._consumeTagClose(t):this._consumeTagOpen(t):this._tokenizeIcu&&this._tokenizeExpansionForm()||this._consumeText()}catch(e){if(!(e instanceof Ys))throw e;this.errors.push(e.error)}}return this._beginToken(Ks.EOF),this._endToken([]),new Xs(gt(this.tokens),this.errors)},t.prototype._tokenizeExpansionForm=function(){if(dt(this._input,this._index,this._interpolationConfig))return this._consumeExpansionFormStart(),!0;if(yt(this._peek)&&this._isInExpansionForm())return this._consumeExpansionCaseStart(),!0;if(this._peek===_s){if(this._isInExpansionCase())return this._consumeExpansionCaseEnd(),!0;if(this._isInExpansionForm())return this._consumeExpansionFormEnd(),!0}return!1},t.prototype._getLocation=function(){return new js(this._file,this._index,this._line,this._column)},t.prototype._getSpan=function(t,e){return void 0===t&&(t=this._getLocation()),void 0===e&&(e=this._getLocation()),new Vs(t,e)},t.prototype._beginToken=function(t,e){void 0===e&&(e=this._getLocation()),this._currentTokenStart=e,this._currentTokenType=t},t.prototype._endToken=function(t,e){void 0===e&&(e=this._getLocation());var r=new Qs(this._currentTokenType,t,new Vs(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.)');var r=new $s(t,this._currentTokenType,e);return this._currentTokenStart=null,this._currentTokenType=null,new Ys(r)},t.prototype._advance=function(){if(this._index>=this._length)throw this._createError(at(wi),this._getSpan());this._peek===Ei?(this._line++,this._column=0):this._peek!==Ei&&this._peek!==Ti&&this._column++,this._index++,this._peek=this._index>=this._length?wi:this._input.charCodeAt(this._index),this._nextPeek=this._index+1>=this._length?wi:this._input.charCodeAt(this._index+1)},t.prototype._attemptCharCode=function(t){return this._peek===t?(this._advance(),!0):!1},t.prototype._attemptCharCodeCaseInsensitive=function(t){return vt(this._peek,t)?(this._advance(),!0):!1},t.prototype._requireCharCode=function(t){var e=this._getLocation();if(!this._attemptCharCode(t))throw this._createError(at(this._peek),this._getSpan(e,e))},t.prototype._attemptStr=function(t){var e=t.length;if(this._index+e>this._length)return!1;for(var 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(at(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(at(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===Ii)return this._decodeEntity();var e=this._index;return this._advance(),this._input[e]},t.prototype._decodeEntity=function(){var t=this._getLocation();if(this._advance(),!this._attemptCharCode(Mi)){var e=this._savePosition();if(this._attemptCharCodeUntilFn(ft),this._peek!=zi)return this._restorePosition(e),"&";this._advance();var r=this._input.substring(t.offset+1,this._index-1),n=lo[r];if(!n)throw this._createError(ut(r),this._getSpan(t));return n}var o=this._attemptCharCode(ys)||this._attemptCharCode(ts),i=this._getLocation().offset;if(this._attemptCharCodeUntilFn(ht),this._peek!=zi)throw this._createError(at(this._peek),this._getSpan());this._advance();var s=this._input.substring(i,this._index-1);try{var a=parseInt(s,o?16:10);return String.fromCharCode(a)}catch(u){var c=this._input.substring(t.offset+1,this._index-1);throw this._createError(ut(c),this._getSpan(t))}},t.prototype._consumeRawText=function(t,e,r){var n,o=this._getLocation();this._beginToken(t?Ks.ESCAPABLE_RAW_TEXT:Ks.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(Ks.COMMENT_START,t),this._requireCharCode(Ui),this._endToken([]);var r=this._consumeRawText(!1,Ui,function(){return e._attemptStr("->")});this._beginToken(Ks.COMMENT_END,r.sourceSpan.end),this._endToken([])},t.prototype._consumeCdata=function(t){var e=this;this._beginToken(Ks.CDATA_START,t),this._requireStr("CDATA["),this._endToken([]);var r=this._consumeRawText(!1,os,function(){return e._attemptStr("]>")});this._beginToken(Ks.CDATA_END,r.sourceSpan.end),this._endToken([])},t.prototype._consumeDocType=function(t){this._beginToken(Ks.DOC_TYPE,t),this._attemptUntilChar(Ki),this._advance(),this._endToken([this._input.substring(t.offset+2,this._index-1)])},t.prototype._consumePrefixAndName=function(){for(var t=this._index,e=null;this._peek!==qi&&!pt(this._peek);)this._advance();var r;this._peek===qi?(this._advance(),e=this._input.substring(t,this._index-1),r=this._index):r=t,this._requireCharCodeUntilFn(lt,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(!L(this._peek))throw this._createError(at(this._peek),this._getSpan());var o=this._index;for(this._consumeTagOpenStart(t),e=this._input.substring(o,this._index),r=e.toLowerCase(),this._attemptCharCodeUntilFn(ct);this._peek!==Hi&&this._peek!==Ki;)this._consumeAttributeName(),this._attemptCharCodeUntilFn(ct),this._attemptCharCode(Wi)&&(this._attemptCharCodeUntilFn(ct),this._consumeAttributeValue()),this._attemptCharCodeUntilFn(ct);this._consumeTagOpenEnd()}catch(i){if(i instanceof Ys)return this._restorePosition(n),this._beginToken(Ks.TEXT,t),void this._endToken(["<"]);throw i}var s=this._getTagDefinition(e).contentType;s===co.RAW_TEXT?this._consumeRawTextWithTagClose(r,!1):s===co.ESCAPABLE_RAW_TEXT&&this._consumeRawTextWithTagClose(r,!0)},t.prototype._consumeRawTextWithTagClose=function(t,e){var r=this,n=this._consumeRawText(e,Gi,function(){return r._attemptCharCode(Hi)?(r._attemptCharCodeUntilFn(ct),r._attemptStrCaseInsensitive(t)?(r._attemptCharCodeUntilFn(ct),r._attemptCharCode(Ki)):!1):!1});this._beginToken(Ks.TAG_CLOSE,n.sourceSpan.end),this._endToken([null,t])},t.prototype._consumeTagOpenStart=function(t){this._beginToken(Ks.TAG_OPEN_START,t);var e=this._consumePrefixAndName();this._endToken(e)},t.prototype._consumeAttributeName=function(){this._beginToken(Ks.ATTR_NAME);var t=this._consumePrefixAndName();this._endToken(t)},t.prototype._consumeAttributeValue=function(){this._beginToken(Ks.ATTR_VALUE);var t;if(this._peek===Ni||this._peek===Oi){var e=this._peek;this._advance();for(var r=[];this._peek!==e;)r.push(this._readChar(!0));t=r.join(""),this._advance()}else{var n=this._index;this._requireCharCodeUntilFn(lt,1),t=this._input.substring(n,this._index)}this._endToken([this._processCarriageReturns(t)])},t.prototype._consumeTagOpenEnd=function(){var t=this._attemptCharCode(Hi)?Ks.TAG_OPEN_END_VOID:Ks.TAG_OPEN_END;this._beginToken(t),this._requireCharCode(Ki),this._endToken([])},t.prototype._consumeTagClose=function(t){this._beginToken(Ks.TAG_CLOSE,t),this._attemptCharCodeUntilFn(ct);var e=this._consumePrefixAndName();this._attemptCharCodeUntilFn(ct),this._requireCharCode(Ki),this._endToken(e)},t.prototype._consumeExpansionFormStart=function(){this._beginToken(Ks.EXPANSION_FORM_START,this._getLocation()),this._requireCharCode(ms),this._endToken([]),this._expansionCaseStack.push(Ks.EXPANSION_FORM_START),this._beginToken(Ks.RAW_TEXT,this._getLocation());var t=this._readUntil(Fi);this._endToken([t],this._getLocation()),this._requireCharCode(Fi),this._attemptCharCodeUntilFn(ct),this._beginToken(Ks.RAW_TEXT,this._getLocation());var e=this._readUntil(Fi);this._endToken([e],this._getLocation()),this._requireCharCode(Fi),this._attemptCharCodeUntilFn(ct)},t.prototype._consumeExpansionCaseStart=function(){this._beginToken(Ks.EXPANSION_CASE_VALUE,this._getLocation());var t=this._readUntil(ms).trim();this._endToken([t],this._getLocation()),this._attemptCharCodeUntilFn(ct),this._beginToken(Ks.EXPANSION_CASE_EXP_START,this._getLocation()),this._requireCharCode(ms),this._endToken([],this._getLocation()),this._attemptCharCodeUntilFn(ct),this._expansionCaseStack.push(Ks.EXPANSION_CASE_EXP_START)},t.prototype._consumeExpansionCaseEnd=function(){this._beginToken(Ks.EXPANSION_CASE_EXP_END,this._getLocation()),this._requireCharCode(_s),this._endToken([],this._getLocation()),this._attemptCharCodeUntilFn(ct),this._expansionCaseStack.pop()},t.prototype._consumeExpansionFormEnd=function(){this._beginToken(Ks.EXPANSION_FORM_END,this._getLocation()),
+},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,null,null),o),s=new K(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 K(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 K=function(){function t(t,e){this.record=t,this.view=e}return t}(),Q=W,$=function(){function t(t,e){this._viewContainer=t,this._context=new X,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=e}return Object.defineProperty(t.prototype,"ngIf",{set:function(t){this._context.$implicit=this._context.ngIf=t,this._updateView()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"ngIfThen",{set:function(t){this._thenTemplateRef=t,this._thenViewRef=null,this._updateView()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"ngIfElse",{set:function(t){this._elseTemplateRef=t,this._elseViewRef=null,this._updateView()},enumerable:!0,configurable:!0}),t.prototype._updateView=function(){this._context.$implicit?this._thenViewRef||(this._viewContainer.clear(),this._elseViewRef=null,this._thenTemplateRef&&(this._thenViewRef=this._viewContainer.createEmbeddedView(this._thenTemplateRef,this._context))):this._elseViewRef||(this._viewContainer.clear(),this._thenViewRef=null,this._elseTemplateRef&&(this._elseViewRef=this._viewContainer.createEmbeddedView(this._elseTemplateRef,this._context)))},t}();$.decorators=[{type:e.Directive,args:[{selector:"[ngIf]"}]}],$.ctorParameters=function(){return[{type:e.ViewContainerRef},{type:e.TemplateRef}]},$.propDecorators={ngIf:[{type:e.Input}],ngIfThen:[{type:e.Input}],ngIfElse:[{type:e.Input}]};var X=function(){function t(){this.$implicit=null,this.ngIf=null}return t}(),Z=function(){function t(t,e){this._viewContainerRef=t,this._templateRef=e,this._created=!1}return t.prototype.create=function(){this._created=!0,this._viewContainerRef.createEmbeddedView(this._templateRef)},t.prototype.destroy=function(){this._created=!1,this._viewContainerRef.clear()},t.prototype.enforceState=function(t){t&&!this._created?this.create():!t&&this._created&&this.destroy()},t}(),Y=function(){function t(){this._defaultUsed=!1,this._caseCount=0,this._lastCaseCheckIndex=0,this._lastCasesMatched=!1}return Object.defineProperty(t.prototype,"ngSwitch",{set:function(t){this._ngSwitch=t,0===this._caseCount&&this._updateDefaultCases(!0)},enumerable:!0,configurable:!0}),t.prototype._addCase=function(){return this._caseCount++},t.prototype._addDefault=function(t){this._defaultViews||(this._defaultViews=[]),this._defaultViews.push(t)},t.prototype._matchCase=function(t){var e=t==this._ngSwitch;return this._lastCasesMatched=this._lastCasesMatched||e,this._lastCaseCheckIndex++,this._lastCaseCheckIndex===this._caseCount&&(this._updateDefaultCases(!this._lastCasesMatched),this._lastCaseCheckIndex=0,this._lastCasesMatched=!1),e},t.prototype._updateDefaultCases=function(t){if(this._defaultViews&&t!==this._defaultUsed){this._defaultUsed=t;for(var e=0;e<this._defaultViews.length;e++){var 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,$,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 yt=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=u,p.currencyDisplay=l?"symbol":"code"),new Intl.NumberFormat(e,p).format(t)},t}(),vt=/((?:[^yMLdHhmsazZEwGjJ']+)|(?:'(?:[^']|'')*')|(?:E+|y+|M+|L+|d+|H+|h+|J+|j+|m+|s+|a|z|Z|G+|w+))(.*)/,mt={yMMMdjms:g(m([y("year",1),v("month",3),y("day",1),y("hour",1),y("minute",1),y("second",1)])),yMdjm:g(m([y("year",1),y("month",1),y("day",1),y("hour",1),y("minute",1)])),yMMMMEEEEd:g(m([y("year",1),v("month",4),v("weekday",4),y("day",1)])),yMMMMd:g(m([y("year",1),v("month",4),y("day",1)])),yMMMd:g(m([y("year",1),v("month",3),y("day",1)])),yMd:g(m([y("year",1),y("month",1),y("day",1)])),jms:g(m([y("hour",1),y("second",1),y("minute",1)])),jm:g(m([y("hour",1),y("minute",1)]))},gt={yyyy:g(y("year",4)),yy:g(y("year",2)),y:g(y("year",1)),MMMM:g(v("month",4)),MMM:g(v("month",3)),MM:g(y("month",2)),M:g(y("month",1)),LLLL:g(v("month",4)),L:g(v("month",1)),dd:g(y("day",2)),d:g(y("day",1)),HH:c(p(g(d(y("hour",2),!1)))),H:p(g(d(y("hour",1),!1))),hh:c(p(g(d(y("hour",2),!0)))),h:p(g(d(y("hour",1),!0))),jj:g(y("hour",2)),j:g(y("hour",1)),mm:c(g(y("minute",2))),m:g(y("minute",1)),ss:c(g(y("second",2))),s:g(y("second",1)),sss:g(y("second",3)),EEEE:g(v("weekday",4)),EEE:g(v("weekday",3)),EE:g(v("weekday",2)),E:g(v("weekday",1)),a:l(g(d(y("hour",1),!0))),Z:f("short"),z:f("long"),ww:g({}),w:g({}),G:g(v("era",1)),GG:g(v("era",2)),GGG:g(v("era",3)),GGGG:g(v("era",4))},_t=new Map,bt=function(){function t(){}return t.format=function(t,e,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 void 0===r&&(r=null),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 void 0===r&&(r=null),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),void 0===o&&(o=null),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.0.1");t.NgLocaleLocalization=B,t.NgLocalization=U,t.CommonModule=It,t.NgClass=q,t.NgFor=Q,t.NgForOf=W,t.NgForOfContext=G,t.NgIf=$,t.NgIfContext=X,t.NgPlural=et,t.NgPluralCase=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 null===t?null:n(t)[0]}function i(t,e){return t?":"+t+":"+e:e}function s(t){return ho[t.toLowerCase()]||fo}function a(t){return t.replace(wo,function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return t[1].toUpperCase()})}function u(t,e){return l(t,":",e)}function c(t,e){return l(t,".",e)}function l(t,e,r){var n=t.indexOf(e);return-1==n?r:[t.slice(0,n).trim(),t.slice(n+1).trim()]}function p(t,e,r){return Array.isArray(t)?e.visitArray(t,r):y(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 h(t){var e=Error(t);return e[So]=!0,e}function f(t){return t[So]}function d(t){return t.replace(/([.*+?^=!:${}()|[\]\/\\])/g,"\\$1")}function y(t){return"object"==typeof t&&null!==t&&Object.getPrototypeOf(t)===xo}function v(t){for(var e="",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 m(t){return t.replace(/\W/g,"_")}function g(t){if(!t||!t.reference)return null;var r=t.reference;if(r instanceof ao)return r.name;if(r.__anonymousType)return r.__anonymousType;var n=e.ɵstringify(r);return n.indexOf("(")>=0?(n="anonymous_"+Vo++,r.__anonymousType=n):n=m(n),n}function _(t){var r=t.reference;return r instanceof ao?r.filePath:e.ɵreflector.importUri(r)}function b(t,e){return"View_"+g({reference:t})+"_"+e}function w(t){return"RenderType_"+g({reference:t})}function C(t){return"HostView_"+g({reference:t})}function E(t){return"Wrapper_"+g({reference:t})}function S(t){return g({reference:t})+"NgFactory"}function x(t){return null!=t.value?m(t.value):g(t.identifier)}function T(t){return null!=t.identifier?t.identifier.reference:t.value}function P(t,r,n){var o=vo.parse(r.selector)[0].getMatchingElementTemplate();return Ho.create({isHost:!0,type:{reference:t,diDeps:[],lifecycleHooks:[]},template:new Bo({encapsulation:e.ViewEncapsulation.None,template:o,templateUrl:"",styles:[],styleUrls:[],ngContentSelectors:[],animations:[],isInline:!0}),changeDetection:e.ChangeDetectionStrategy.Default,inputs:[],outputs:[],host:{},isComponent:!0,selector:"*",providers:[],viewProviders:[],queries:[],viewQueries:[],componentViewType:n,rendererType:{id:"__Host__",encapsulation:e.ViewEncapsulation.None,styles:[],data:{}}})}function A(t){return t||[]}function O(t){return t.reduce(function(t,e){var r=Array.isArray(e)?O(e):e;return t.concat(r)},[])}function M(t){return t.replace(/(\w+:\/\/[\w:-]+)?(\/+)?/,"ng:///")}function R(t,e,r){var n;return n=r.isInline?e.type.reference instanceof ao?e.type.reference.filePath+"."+e.type.reference.name+".html":g(t)+"/"+g(e.type)+".html":r.templateUrl,M(n)}function k(t,e){var r=t.moduleUrl.split(/\/\\/g),n=r[r.length-1];return M("css/"+e+n+".ngstyle.js")}function I(t){return M(g(t.type)+"/module.ngfactory.js")}function N(t,e){return M(g(t)+"/"+g(e.type)+".ngfactory.js")}function D(t){return t>=Ci&&Pi>=t||t==bs}function j(t){return t>=$i&&Xi>=t}function L(t){return t>=as&&vs>=t||t>=Zi&&es>=t}function V(t){return t>=as&&cs>=t||t>=Zi&&Ji>=t||j(t)}function F(){return function(t){return t}}function U(t,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 B(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];Cs.forEach(function(t){if(t.test(n)||t.test(o))throw new Error("['"+n+"', '"+o+"'] contains unusable interpolation symbol.")})}}function H(t,e){return new As(t,xs.Character,e,String.fromCharCode(e))}function q(t,e){return new As(t,xs.Identifier,0,e)}function z(t,e){return new As(t,xs.Keyword,0,e)}function G(t,e){return new As(t,xs.Operator,0,e)}function W(t,e){return new As(t,xs.String,0,e)}function K(t,e){return new As(t,xs.Number,e,"")}function Q(t,e){return new As(t,xs.Error,0,e)}function $(t){return t>=as&&vs>=t||t>=Zi&&es>=t||t==ss||t==Ri}function X(t){if(0==t.length)return!1;var e=new Ms(t);if(!$(e.peek))return!1;for(e.advance();e.peek!==wi;){if(!Z(e.peek))return!1;e.advance()}return!0}function Z(t){return L(t)||j(t)||t==ss||t==Ri}function Y(t){return t==us||t==Yi}function J(t){return t==Ui||t==Vi}function tt(t){return t===Ni||t===Oi||t===ws}function et(t){switch(t){case ls:return Ei;case cs:return xi;case ps:return Ti;case hs:return Ci;case ds:return Si;default:return t}}function rt(t){var e=parseInt(t);if(isNaN(e))throw new Error("Invalid integer literal when parsing "+t);return e}function nt(t){var e=d(t.start)+"([\\s\\S]*?)"+d(t.end);return new RegExp(e,"g")}function ot(t,e){var r=_(e),n=null!=r?"in "+t+" "+g(e)+" in "+r:"in "+t+" "+g(e),o=new Ls("",n);return new Vs(new js(o,null,null,null),new js(o,null,null,null))}function it(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 st(t,e,r,n,o){return void 0===n&&(n=!1),void 0===o&&(o=Ss),new Js(new Ls(t,e),r,n,o).tokenize()}function at(t){var e=t===wi?"EOF":String.fromCharCode(t);return'Unexpected character "'+e+'"'}function ut(t){return'Unknown entity "'+t+'" - use the "&#<decimal>;" or  "&#x<hex>;" syntax'}function ct(t){return!D(t)||t===wi}function lt(t){return D(t)||t===Ki||t===Hi||t===Ni||t===Oi||t===Wi}function pt(t){return(as>t||t>vs)&&(Zi>t||t>es)&&($i>t||t>Xi)}function ht(t){return t==zi||t==wi||!V(t)}function ft(t){return t==zi||t==wi||!L(t)}function dt(t,e,r){var n=r?t.indexOf(r.start,e)==e:!1;return t.charCodeAt(e)==ms&&!n}function yt(t){return t===Wi||L(t)}function vt(t,e){return mt(t)==mt(e)}function mt(t){return t>=as&&vs>=t?t-as+Zi:t}function gt(t){for(var e,r=[],n=0;n<t.length;n++){var o=t[n];e&&e.type==Ks.TEXT&&o.type==Ks.TEXT?(e.parts[0]+=o.parts[0],e.sourceSpan.end=o.sourceSpan.end):(e=o,r.push(e))}return r}function _t(t,e){return t.length>0&&t[t.length-1]===e}function bt(t){var e=new va(ya,t);return function(t,r,n,o){return e.toI18nMessage(t,r,n,o)}}function wt(t){return t.split(ma)[2]}function Ct(t,e,r,n){var o=new Ta(r,n);return o.extract(t,e)}function Et(t,e,r,n,o){var i=new Ta(n,o);return i.merge(t,e,r)}function St(t){return t instanceof Ws&&t.value&&t.value.startsWith("i18n")}function xt(t){return t instanceof Ws&&t.value&&"/i18n"===t.value}function Tt(t){return t.attrs.find(function(t){return t.name===_a})||null}function Pt(t){if(!t)return{meaning:"",description:"",id:""};var e=t.indexOf(Ea),r=t.indexOf(Ca),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 At(){return Aa}function Ot(t){return t.id||kt(Rt(t.nodes).join("")+("["+t.meaning+"]"))}function Mt(t){if(t.id)return t.id;var e=new ka,r=t.nodes.map(function(t){return t.visit(e,null)});return Dt(r.join(""),t.meaning)}function Rt(t){return t.map(function(t){return t.visit(Ra,null)})}function kt(t){var e=v(t),r=zt(e,Ia.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],y=h[2],m=h[3],g=h[4],_=0;80>_;_++){o[_]=16>_?r[p+_]:Ht(o[_-3]^o[_-8]^o[_-14]^o[_-16],1);var b=It(_,a,u,c),w=b[0],C=b[1],E=[Ht(s,5),w,l,C,o[_]].reduce(Vt);S=[c,u,Ht(a,30),s,E],l=S[0],c=S[1],u=S[2],a=S[3],s=S[4]}x=[Vt(s,f),Vt(a,d),Vt(u,y),Vt(c,m),Vt(l,g)],s=x[0],a=x[1],u=x[2],c=x[3],l=x[4]}return $t(Kt([s,a,u,c,l]));var S,x}function It(t,e,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 Nt(t){var e=v(t),r=[jt(e,0),jt(e,102072)],n=r[0],o=r[1];return 0!=n||0!=o&&1!=o||(n=319790063^n,o=-1801410264^o),[n,o]}function Dt(t,e){var r=Nt(t),n=r[0],o=r[1];if(e){var i=Nt(e),s=i[0],a=i[1];u=Ut(qt([n,o],1),[s,a]),n=u[0],o=u[1]}return Xt(Kt([2147483647&n,o]));var u}function jt(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=Vt(o,Wt(t,r,Ia.Little)),i=Vt(i,Wt(t,r+4,Ia.Little)),e=Vt(e,Wt(t,r+8,Ia.Little)),a=Lt([o,i,e]),o=a[0],i=a[1],e=a[2];return o=Vt(o,Wt(t,r,Ia.Little)),i=Vt(i,Wt(t,r+4,Ia.Little)),e=Vt(e,s),e=Vt(e,Wt(t,r+8,Ia.Little)<<8),Lt([o,i,e])[2];var a}function Lt(t){var e=t[0],r=t[1],n=t[2];return e=Bt(e,r),e=Bt(e,n),e^=n>>>13,r=Bt(r,n),r=Bt(r,e),r^=e<<8,n=Bt(n,e),n=Bt(n,r),n^=r>>>13,e=Bt(e,r),e=Bt(e,n),e^=n>>>12,r=Bt(r,n),r=Bt(r,e),r^=e<<16,n=Bt(n,e),n=Bt(n,r),n^=r>>>5,e=Bt(e,r),e=Bt(e,n),e^=n>>>3,r=Bt(r,n),r=Bt(r,e),r^=e<<10,n=Bt(n,e),n=Bt(n,r),n^=r>>>15,[e,r,n]}function Vt(t,e){return Ft(t,e)[1]}function Ft(t,e){var r=(65535&t)+(65535&e),n=(t>>>16)+(e>>>16)+(r>>>16);return[n>>>16,n<<16|65535&r]}function Ut(t,e){var r=t[0],n=t[1],o=e[0],i=e[1],s=Ft(n,i),a=s[0],u=s[1],c=Vt(Vt(r,o),a);return[c,u]}function Bt(t,e){var r=(65535&t)-(65535&e),n=(t>>16)-(e>>16)+(r>>16);return n<<16|65535&r}function Ht(t,e){return t<<e|t>>>32-e}function qt(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 zt(t,e){for(var r=Array(t.length+3>>>2),n=0;n<r.length;n++)r[n]=Wt(t,4*n,e);return r}function Gt(t,e){return e>=t.length?0:255&t.charCodeAt(e)}function Wt(t,e,r){var n=0;if(r===Ia.Big)for(var o=0;4>o;o++)n+=Gt(t,e+o)<<24-8*o;else for(var o=0;4>o;o++)n+=Gt(t,e+o)<<8*o;return n}function Kt(t){return t.reduce(function(t,e){return t+Qt(e)},"")}function Qt(t){for(var e="",r=0;4>r;r++)e+=String.fromCharCode(t>>>8*(3-r)&255);return e}function $t(t){for(var e="",r=0;r<t.length;r++){var n=Gt(t,r);e+=(n>>>4).toString(16)+(15&n).toString(16)}return e.toLowerCase()}function Xt(t){for(var e="",r="1",n=t.length-1;n>=0;n--)e=Zt(e,Yt(Gt(t,n),r)),r=Yt(256,r);return e.split("").reverse().join("")}function Zt(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 Yt(t,e){for(var r="",n=e;0!==t;t>>>=1)1&t&&(r=Zt(r,n)),n=Zt(n,n);return r}function Jt(t){return t.map(function(t){return t.visit(La)}).join("")}function te(t){return qa.reduce(function(t,e){return t.replace(e[0],e[1])},t)}function ee(t){switch(t.toLowerCase()){case"br":return"lb";case"img":return"image";default:return"x-"+t}}function re(t){return Mt(t)}function ne(t){return t.toUpperCase().replace(/[^A-Z0-9_]/g,"_")}function oe(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 ie(t){switch(t=(t||"xlf").toLowerCase()){case"xmb":return new au;case"xtb":return new fu;case"xliff":case"xlf":default:return new Ya}}function se(t,e,r){return void 0===e&&(e=null),void 0===r&&(r="src"),null==e?"@angular/"+t:"@angular/"+t+"/"+r+"/"+e}function ae(t){var r=t.name;return e.ɵreflector.resolveIdentifier(r,t.moduleUrl,null,t.runtime)}function ue(t){return{reference:ae(t)}}function ce(t){return{identifier:t}}function le(t){return ce(ue(t))}function pe(t){var e=new xu;return new Eu(it(e,t),e.isExpanded,e.errors)}function he(t,e){var r=t.cases.map(function(t){-1!=Cu.indexOf(t.value)||t.value.match(/^=\d+$/)||e.push(new Su(t.valueSourceSpan,'Plural cases should be "=<number>" or one of '+Cu.join(", ")));var r=pe(t.expression);return e.push.apply(e,r.errors),new Gs("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 Gs("ng-container",[n],r,t.sourceSpan,t.sourceSpan,t.sourceSpan)}function fe(t,e){var r=t.cases.map(function(t){var r=pe(t.expression);return e.push.apply(e,r.errors),"other"===t.value?new Gs("ng-template",[new zs("ngSwitchDefault","",t.valueSourceSpan)],r.nodes,t.sourceSpan,t.sourceSpan,t.sourceSpan):new Gs("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 Gs("ng-container",[n],r,t.sourceSpan,t.sourceSpan,t.sourceSpan)}function de(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 ye(t,e){var r=e.eager,n=e.providers;return new no(t.token,t.multiProvider,t.eager||r,n,t.providerType,t.lifecycleHooks,t.sourceSpan)}function ve(t,e,r){var n=new Map;t.forEach(function(t){var o={token:{identifier:t.type},useClass:t.type};me([o],t.isComponent?oo.Component:oo.Directive,!0,e,r,n)});var o=t.filter(function(t){return t.isComponent}).concat(t.filter(function(t){return!t.isComponent}));return o.forEach(function(t){me(t.providers,oo.PublicService,!1,e,r,n),me(t.viewProviders,oo.PrivateService,!1,e,r,n)}),n}function me(t,e,r,n,o,i){t.forEach(function(t){var s=i.get(T(t.token));if(null!=s&&!!s.multiProvider!=!!t.multi&&o.push(new Tu("Mixing multi and non multi provider is not possible for token "+x(s.token),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 no(t.token,t.multi,r||u,[t],e,a,n),i.set(T(t.token),s)}})}function ge(t){var e=1,r=new Map;return t.viewQueries&&t.viewQueries.forEach(function(t){return be(r,{meta:t,queryId:e++})}),r}function _e(t,e){var r=t,n=new Map;return e.forEach(function(t){t.queries&&t.queries.forEach(function(t){return be(n,{meta:t,queryId:r++})})}),n}function be(t,e){e.meta.selectors.forEach(function(r){var n=t.get(T(r));n||(n=[],t.set(T(r),n)),n.push(e)})}function we(t){if(null==t||0===t.length||"/"==t[0])return!1;var e=t.match(Nu);return null===e||"package"==e[1]||"asset"==e[1]}function Ce(t,e,r){var n=[],o=r.replace(Iu,"").replace(ku,function(){for(var r=[],o=0;o<arguments.length;o++)r[o]=arguments[o];var i=r[1]||r[2];return we(i)?(n.push(t.resolve(e,i)),""):r[0]});return new Ru(o,n)}function Ee(t){return"@"==t[0]}function Se(t,r,n,o){var i=[];return vo.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 xe(t){var e=null,r=null,o=null,i=!1,s=null;t.attrs.forEach(function(t){var n=t.name.toLowerCase();n==zu?e=t.value:n==Qu?r=t.value:n==Ku?o=t.value:t.name==Yu?i=!0:t.name==Ju&&t.value.length>0&&(s=t.value)}),e=Te(e);var a=t.name.toLowerCase(),u=tc.OTHER;return n(a)[1]==Gu?u=tc.NG_CONTENT:a==Xu?u=tc.STYLE:a==Zu?u=tc.SCRIPT:a==Wu&&o==$u&&(u=tc.STYLESHEET),new ec(u,e,r,i,s)}function Te(t){return null===t||0===t.length?"*":t}function Pe(t){return function(e){return-1!==t.indexOf(e.msg)?(wc[e.msg]=(wc[e.msg]||0)+1,wc[e.msg]<=1):!0}}function Ae(t){return t.trim().split(/\s+/g)}function Oe(t,e){var r=new vo,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()==mc){var c=Ae(u);c.forEach(function(t){return r.addClassName(t)})}}return r}function Me(t){return t instanceof Bs&&0==t.value.trim().length}function Re(t){var e=new Map;return t.forEach(function(t){e.get(t.type.reference)||e.set(t.type.reference,t)}),Array.from(e.values())}function ke(t){return t instanceof mi&&(t=t.ast),t instanceof Yo}function Ie(t,e,r){var o=n(t.name)[1];return o===fc?!0:o.toLowerCase()===dc?e&&o.toLowerCase()===dc?(r(_c,t.sourceSpan),!0):!1:void 0}function Ne(){return new Nc}function De(){return new Nc(".")}function je(t){var e=Ve(t);return e&&e[jc.Scheme]||""}function Le(t,e,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 Ve(t){return t.match(Dc)}function Fe(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 Ue(t){var e=t[jc.Path];return e=null==e?"":Fe(e),t[jc.Path]=e,Le(t[jc.Scheme],t[jc.UserInfo],t[jc.Domain],t[jc.Port],e,t[jc.QueryData],t[jc.Fragment])}function Be(t,e){var r=Ve(encodeURI(e)),n=Ve(t);if(null!=r[jc.Scheme])return Ue(r);r[jc.Scheme]=n[jc.Scheme];for(var o=jc.Scheme;o<=jc.Port;o++)null==r[o]&&(r[o]=n[o]);if("/"==r[jc.Path][0])return Ue(r);var i=n[jc.Path];null==i&&(i="/");var s=i.lastIndexOf("/");return i=i.substring(0,s+1)+r[jc.Path],r[jc.Path]=i,Ue(r)}function He(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 ze(t){var e=Ke(t);return e[0]+".ngfactory"+e[1]}function Ge(t){return t.replace(Hc,".")}function We(t){return Hc.test(t)}function Ke(t){if(t.endsWith(".d.ts"))return[t.slice(0,-5),".ts"];var e=t.lastIndexOf(".");return-1!==e?[t.substring(0,e),t.substring(e)]:[t,""]}function Qe(t){var e=t.replace(Bc,"");return e+".ngsummary.json"}function $e(t,r){return e.ɵreflector.hasLifecycleHook(r,Xe(t))}function Xe(t){switch(t){case e.ɵLifecycleHooks.OnInit:return"ngOnInit";case e.ɵLifecycleHooks.OnDestroy:return"ngOnDestroy";case e.ɵLifecycleHooks.DoCheck:return"ngDoCheck";case e.ɵLifecycleHooks.OnChanges:return"ngOnChanges";case e.ɵLifecycleHooks.AfterContentInit:return"ngAfterContentInit";case e.ɵLifecycleHooks.AfterContentChecked:return"ngAfterContentChecked";case e.ɵLifecycleHooks.AfterViewInit:return"ngAfterViewInit";case e.ɵLifecycleHooks.AfterViewChecked:return"ngAfterViewChecked"}}function Ze(t){return t instanceof e.NgModule}function Ye(t){return t instanceof e.Pipe}function Je(t,r){if(void 0===r&&(r=[]),t)for(var n=0;n<t.length;n++){var o=e.resolveForwardRef(t[n]);Array.isArray(o)?Je(o,r):r.push(o)}return r}function tr(t){return t?Array.from(new Set(t)):[]}function er(t){return tr(Je(t))}function rr(t){return t instanceof ao||t instanceof e.Type}function nr(t,e,r){if(e instanceof ao)return t.resourceUri(e);var n=r.moduleId;if("string"==typeof n){var o=je(n);return o?n:"package:"+n+bo}if(null!==n&&void 0!==n)throw h('moduleId should be a string in "'+ir(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 or(t,e){p(t,new Qc,e)}function ir(t){return t instanceof ao?t.name+" in "+t.filePath:e.ɵstringify(t)}function sr(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 ar(t){var e=new Xl;return e.visitAllStatements(t,null),e.varNames}function ur(t,e){if(!e)return t;var r=new Zl(e);return t.visitStatement(r,null)}function cr(t,e){if(!e)return t;var r=new Zl(e);return t.visitExpression(r,null)}function lr(t,e,r){return void 0===e&&(e=null),new ul(t,e,r)}function pr(t,e,r){return void 0===e&&(e=null),new ml(t,null,e,r)}function hr(t,e,r){return void 0===e&&(e=null),void 0===r&&(r=null),null!=t?fr(pr(t,e),r):null}function fr(t,e){return void 0===e&&(e=null),null!=t?new Jc(t,e):null}function dr(t,e,r){return void 0===e&&(e=null),new Tl(t,e,r)}function yr(t,e,r){return void 0===e&&(e=null),void 0===r&&(r=!1),new Al(t.map(function(t){return new Pl(t[0],t[1],r)}),e)}function vr(t,e){return new _l(t,e)}function mr(t,e,r,n){return void 0===r&&(r=null),new Cl(t,e,r,n)}function gr(t,e,r){return void 0===e&&(e=null),new vl(t,e,r)}function _r(t){var e=t.parentArgs||[],r=t.parent?[Rl.callFn(e).toStmt()]:[],n=br(Array.isArray(t.builders)?t.builders:[t.builders]),o=new Hl(null,t.ctorParams||[],r.concat(n.ctorStmts));return new zl(t.name,t.parent,n.fields,n.getters,o,n.methods,t.modifiers||[],t.sourceSpan)}function br(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 wr(t,e){return void 0===e&&(e=null),p(t,new Jl,e)}function Cr(t){return null!=t.value?gr(t.value):pr(t.identifier)}function Er(t){var e="";t=v(t);for(var r=0;r<t.length;){var n=t.charCodeAt(r++),o=t.charCodeAt(r++),i=t.charCodeAt(r++);e+=xr(n>>2),e+=xr((3&n)<<4|(isNaN(o)?0:o>>4)),e+=isNaN(o)?"=":xr((15&o)<<2|i>>6),e+=isNaN(o)||isNaN(i)?"=":xr(63&i)}return e}function Sr(t){t=0>t?(-t<<1)+1:t<<1;var e="";do{var r=31&t;t>>=5,t>0&&(r=32|r),e+=xr(r)}while(t>0);return e}function xr(t){if(0>t||t>=64)throw new Error("Can only encode value in the range [0, 63]");return cp[t]}function Tr(t,e,r){if(void 0===r&&(r=!0),null==t)return null;var n=t.replace(lp,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||!pp.test(n);return o?"'"+n+"'":n}function Pr(t){for(var e="",r=0;t>r;r++)e+=hp;return e}function Ar(t){var e=new bp(gp,{fileNameToModuleName:function(t){return t},getImportAs:function(){return null},getTypeArity:function(){return null}}),r=vp.createRoot([]),n=Array.isArray(t)?t:[t];return n.forEach(function(t){if(t instanceof Dl)t.visitStatement(e,r);else if(t instanceof sl)t.visitExpression(e,r);else{if(!(t instanceof Xc))throw new Error("Don't know how to print debug info for "+t);t.visitType(e,r)}}),r.toSource()}function Or(t,e){for(var r=0,n=e;r<n.length;r++){var o=n[r];wp[o.toLowerCase()]=t}}function Mr(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 Rr(t){return t.replace(Kp,"")}function kr(t){var e=t.match(Qp);return e?e[0]:""}function Ir(t,e){var r=Nr(t),n=0;return r.escapedString.replace($p,function(){for(var t=[],o=0;o<arguments.length;o++)t[o]=arguments[o];var i=t[2],s="",a=t[4],u="";a&&a.startsWith("{"+Jp)&&(s=r.blocks[n++],a=a.substring(Jp.length+1),u="{");var c=e(new th(i,s));return""+t[1]+c.selector+t[3]+u+c.content+a})}function Nr(t){for(var e=t.split(Xp),r=[],n=[],o=0,i=[],s=0;s<e.length;s++){var a=e[s];a==Yp&&o--,o>0?i.push(a):(i.length>0&&(n.push(i.join("")),r.push(Jp),i=[]),r.push(a)),a==Zp&&o++}return i.length>0&&(n.push(i.join("")),r.push(Jp)),new eh(r.join(""),n)}function Dr(t){var e="styles";return t&&(e+="_"+g(t.type)),e}function jr(t,e,r,n){t||(t=new yh);var o=Lr({createLiteralArrayConverter:function(){return function(t){return dr(t)}},createLiteralMapConverter:function(t){return function(e){return yr(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=[];Wr(o.visit(i,hh.Statement),s),Hr(i.temporaryCount,n,s);var a=s.length-1,u=null;if(a>=0){var c=s[a],l=$r(c);l&&(u=Qr(n),s[a]=u.set(l.cast(rl).notIdentical(gr(!1))).toDeclStmt(null,[Nl.Final]))}return new lh(s,u)}function Lr(t,e){return Fr(t,e)}function Vr(t,e,r,n){t||(t=new yh);var o=Kr(n),i=[],s=new dh(t,e,n),a=r.visit(s,hh.Expression);if(s.temporaryCount)for(var u=0;u<s.temporaryCount;u++)i.push(Br(n,u));return i.push(o.set(a).toDeclStmt(null,[Nl.Final])),new ph(i,o)}function Fr(t,e){var r=new fh(t);return e.visit(r)}function Ur(t,e){return"tmp_"+t+"_"+e}function Br(t,e){return new jl(Ur(t,e),kl)}function Hr(t,e,r){for(var n=t-1;n>=0;n--)r.unshift(Br(e,n))}function qr(t,e){if(t!==hh.Statement)throw new Error("Expected a statement, but saw "+e)}function zr(t,e){if(t!==hh.Expression)throw new Error("Expected an expression, but saw "+e)}function Gr(t,e){return t===hh.Statement?e.toStmt():e}function Wr(t,e){Array.isArray(t)?t.forEach(function(t){return Wr(t,e)}):e.push(t)}function Kr(t){return lr("currVal_"+t)}function Qr(t){return lr("pd_"+t)}function $r(t){return t instanceof Vl?t.expr:t instanceof Fl?t.value:null}function Xr(t){return t.multiProvider?Zr(t.providers):Yr(t.providerType,t.providers[0])}function Zr(t){function e(t,e){return e.map(function(e,o){var i="p"+t+"_"+o;return n.push(new wl(i,rl)),r.push(tn(e)),lr(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=pr(t.useClass).instantiate(o)}else if(t.useFactory){var o=e(r,t.deps||t.useFactory.diDeps);n=pr(t.useFactory).callFn(o)}else if(t.useExisting){var o=e(r,[{token:t.useExisting}]);n=o[0]}else n=wr(t.useValue);return n}),i=mr(n,[new Fl(dr(o))],nl);return{providerExpr:i,flags:512,depsExpr:dr(r)}}function Yr(t,e){var r,n,o;t===oo.Directive||t===oo.Component?(r=pr(e.useClass),n=8192,o=e.deps||e.useClass.diDeps):e.useClass?(r=pr(e.useClass),n=256,o=e.deps||e.useClass.diDeps):e.useFactory?(r=pr(e.useFactory),n=512,o=e.deps||e.useFactory.diDeps):e.useExisting?(r=kl,n=1024,o=[{token:e.useExisting}]):(r=wr(e.useValue),n=128,o=[]);var i=dr(o.map(function(t){return tn(t)}));return{providerExpr:r,flags:n,depsExpr:i}}function Jr(t){return t.identifier?pr(t.identifier):gr(t.value)}function tn(t){var e=t.isValue?wr(t.value):Jr(t.token),r=0;return t.isSkipSelf&&(r|=1),t.isOptional&&(r|=2),t.isValue&&(r|=8),0===r?e:dr([gr(r),e])}function en(t){var e=t[t.length-1];return e instanceof to?e.hasViewContainer:e instanceof Jn?e.name===bh&&e.children.length?en(e.children):e.hasViewContainer:e instanceof io}function rn(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 nn(t,e){switch(t.type){case so.Attribute:return dr([gr(1),gr(t.name),gr(t.securityContext)]);case so.Property:return dr([gr(8),gr(t.name),gr(t.securityContext)]);case so.Animation:var r=8|(e&&e.directive.isComponent?32:16);return dr([gr(r),gr("@"+t.name),gr(t.securityContext)]);case so.Class:return dr([gr(2),gr(t.name),kl]);case so.Style:return dr([gr(4),gr(t.name),gr(t.unit)])}}function on(t){var e=Object.create(null);t.attrs.forEach(function(t){e[t.name]=t.value}),t.directives.forEach(function(t){Object.keys(t.directive.hostAttributes).forEach(function(r){var n=t.directive.hostAttributes[r],o=e[r];e[r]=null!=o?sn(r,o,n):n})});return dr(Object.keys(e).sort().map(function(t){return dr([gr(t),gr(e[t])])}))}function sn(t,e,r){return t==mh||t==gh?e+" "+r:r}function an(t,e){return xh.callFn(e.length>10?[Sh,gr(t),gr(1),dr(e)]:[Sh,gr(t),gr(0)].concat(e))}function un(t,e,r){return pr(ue(wu.unwrapValue)).callFn([Sh,gr(t),gr(e),r])}function cn(t,e){return void 0===e&&(e=new Map),t.forEach(function(t){var r,n=new Set,o=new Set;t instanceof Jn?(cn(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 o.add(t)})}),r=t.queryMatches):t instanceof to&&(cn(t.children,e),t.children.forEach(function(t){var r=e.get(t);r.staticQueryIds.forEach(function(t){return o.add(t)}),r.dynamicQueryIds.forEach(function(t){return o.add(t)})}),r=t.queryMatches),r&&r.forEach(function(t){return n.add(t.queryId)}),o.forEach(function(t){return n["delete"](t)}),e.set(t,{staticQueryIds:n,dynamicQueryIds:o})}),e}function ln(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 pn(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 pr({reference:t.componentFactory})}),n=le(wu.ComponentFactoryResolver),o={diDeps:[{isValue:!0,value:dr(r)},{token:n,isSkipSelf:!0,isOptional:!0},{token:le(wu.NgModuleRef)}],lifecycleHooks:[],reference:ae(wu.CodegenComponentFactoryResolver)};return new no(n,!1,!0,[{token:n,multi:!1,useClass:o}],oo.PrivateService,[],e.sourceSpan)}return null}function hn(t,e){return t.isAnimation?{name:"@"+t.name+"."+t.phase,target:e&&e.directive.isComponent?"component":null}:t}function fn(t,e,r){var n=0;return n|=!r||!t.staticQueryIds.has(e)&&t.dynamicQueryIds.has(e)?268435456:134217728}function dn(t,e,r,n){var o=new Rh(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:{__symbolic:"class"},type:e}),e.summaryKind===Fo.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 yn(t,e){var r=new kh(t);return r.deserialize(e)}function vn(t,e,r){return e.dependencies.forEach(function(e){e.valuePlaceholder.reference=t.getStaticSymbol(mn(e.moduleUrl,e.isShimmed,r),e.name)}),e.statements}function mn(t,e,r){return""+t+(e?".shim":"")+".ngstyle"+r}function gn(t){if(!t.isComponent)throw new Error("Could not compile '"+g(t.type)+"' because it is not a component.")}function _n(t,e,r){var n=En(t,e,r),o=n.ngModules,i=n.symbolsMissingModule;return wn(t,o,i,r)}function bn(t,e,r){var n=_n(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 h(o.join("\n"))}return n}function wn(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 Cn(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 En(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 Sn(t){return"object"==typeof t&&t.name&&t.filePath}function xn(t){return t&&"ignore"==t.__symbolic}function Tn(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 Pn(t){return"Error encountered resolving symbol values statically. "+Tn(t)}function An(t,e){if(!t)return{};var r={};return Object.keys(t).forEach(function(n){var o=e(t[n],n);xn(o)||(jh.test(n)?Object.defineProperty(r,n,{enumerable:!1,configurable:!0,value:o}):r[n]=o)}),r}function On(t){return null===t||"function"!=typeof t&&"object"!=typeof t}function Mn(t,e,r,n){var o=new Error(t);return o.fileName=e,o.line=r,o.column=n,o}function Rn(t){return t.startsWith("___")?t.substr(1):t}function kn(t,r){var n=r.translations||"",o=De(),i=new uo,s=new zh(t,i),a=new qh(t,i,s),u=new Vh(a);Nh.install(u);var c=new e.ɵConsole,l=new _u(new vu,n,r.i18nFormat,e.MissingTranslationStrategy.Warning,c),p=new Ko({defaultEncapsulation:e.ViewEncapsulation.Emulated,useJit:!1,enableLegacyTemplate:r.enableLegacyTemplate!==!1}),h=new Lc({get:function(e){return t.loadResource(e)}},o,l,p),f=new Is(new Ps),d=new Ap,y=new xc(p,f,d,l,c,[]),v=new Kc(p,new qc(u),new Uc(u),new zc(u),s,d,h,c,i,u),m={getImportAs:function(t){return a.getImportAs(t)},fileNameToModuleName:function(e,r){return t.fileNameToModuleName(e,r)},getTypeArity:function(t){return a.getTypeArity(t)}},g=new Ch(p,d),_=new Ih(p,t,v,y,new uh(o),g,new rp,new _p(m),s,r.locale,r.i18nFormat,r.genFilePreamble,a);return{compiler:_,reflector:u}}function In(t,e){var r=t.concat([new Fl(dr(e.map(function(t){return lr(t)})))]),n=new Gh(null,null,null,new Map),o=new Kh,i=o.visitAllStatements(r,n);return null!=i?i.value:null}function Nn(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 Dn(t,e,r){var n={};t.getters.forEach(function(o){n[o.name]={configurable:!1,get:function(){var n=new Gh(e,this,t.name,e.vars);return Nn([],[],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 Gh(e,this,t.name,e.vars);return Nn(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 Gh(e,this,t.name,e.vars);t.fields.forEach(function(t){n[t.name]=void 0}),Nn(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 jn(t,e,r,n){return function(){for(var o=[],i=0;i<arguments.length;i++)o[i]=arguments[i];return Nn(t,o,e,r,n)}}function Ln(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 Vn(t,e,r){var n=new Zh,o=vp.createRoot(r),i=new Fl(dr(r.map(function(t){return lr(t)})));return n.visitAllStatements(e.concat([i]),o),Ln(t,o,n.getArgs())}function Fn(t){if(!t.isComponent)throw new Error("Could not compile '"+g(t.type)+"' because it is not a component.")}function Un(){e.ɵreflector.reflectionCapabilities=new e.ɵReflectionCapabilities}function Bn(t){return{useJit:Hn(t.map(function(t){return t.useJit})),defaultEncapsulation:Hn(t.map(function(t){return t.defaultEncapsulation})),providers:qn(t.map(function(t){return t.providers})),missingTranslation:Hn(t.map(function(t){return t.missingTranslation}))}}function Hn(t){for(var e=t.length-1;e>=0;e--)if(void 0!==t[e])return t[e];return void 0}function qn(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)},Gn=new e.Version("4.0.1"),Wn=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}(),Kn=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}(),Qn=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}(),$n=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===so.Animation},enumerable:!0,configurable:!0}),t}(),Xn=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}(),Zn=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}(),Yn=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}(),Jn=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}(),to=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}(),eo=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}(),ro=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}(),no=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}(),oo={};oo.PublicService=0,oo.PrivateService=1,oo.Component=2,oo.Directive=3,oo.Builtin=4,oo[oo.PublicService]="PublicService",oo[oo.PrivateService]="PrivateService",oo[oo.Component]="Component",oo[oo.Directive]="Directive",oo[oo.Builtin]="Builtin";var io=function(){function t(t,e,r){this.index=t,this.ngContentIndex=e,this.sourceSpan=r}return t.prototype.visit=function(t,e){return t.visitNgContent(this,e)},t}(),so={};so.Property=0,so.Attribute=1,so.Class=2,so.Style=3,so.Animation=4,so[so.Property]="Property",so[so.Attribute]="Attribute",so[so.Class]="Class",so[so.Style]="Style",so[so.Animation]="Animation";var ao=function(){function t(t,e,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}(),uo=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 ao(t,e,r),this.cache.set(o,i)),i},t}(),co={};co.RAW_TEXT=0,co.ESCAPABLE_RAW_TEXT=1,co.PARSABLE_DATA=2,co[co.RAW_TEXT]="RAW_TEXT",co[co.ESCAPABLE_RAW_TEXT]="ESCAPABLE_RAW_TEXT",co[co.PARSABLE_DATA]="PARSABLE_DATA";var lo={Aacute:"Á",aacute:"á",Acirc:"Â",acirc:"â",acute:"´",AElig:"Æ",aelig:"æ",Agrave:"À",agrave:"à",alefsym:"ℵ",Alpha:"Α",alpha:"α",amp:"&",and:"∧",ang:"∠",apos:"'",Aring:"Å",aring:"å",asymp:"≈",Atilde:"Ã",atilde:"ã",Auml:"Ä",auml:"ä",bdquo:"„",Beta:"Β",beta:"β",brvbar:"¦",bull:"•",cap:"∩",Ccedil:"Ç",ccedil:"ç",cedil:"¸",cent:"¢",Chi:"Χ",chi:"χ",circ:"ˆ",clubs:"♣",cong:"≅",copy:"©",crarr:"↵",cup:"∪",curren:"¤",dagger:"†",Dagger:"‡",darr:"↓",dArr:"⇓",deg:"°",Delta:"Δ",delta:"δ",diams:"♦",divide:"÷",Eacute:"É",eacute:"é",Ecirc:"Ê",ecirc:"ê",Egrave:"È",egrave:"è",empty:"∅",emsp:" ",ensp:" ",Epsilon:"Ε",epsilon:"ε",equiv:"≡",Eta:"Η",eta:"η",ETH:"Ð",eth:"ð",Euml:"Ë",euml:"ë",euro:"€",exist:"∃",fnof:"ƒ",forall:"∀",frac12:"½",frac14:"¼",frac34:"¾",frasl:"⁄",Gamma:"Γ",gamma:"γ",ge:"≥",gt:">",harr:"↔",hArr:"⇔",hearts:"♥",hellip:"…",Iacute:"Í",iacute:"í",Icirc:"Î",icirc:"î",iexcl:"¡",Igrave:"Ì",igrave:"ì",image:"ℑ",infin:"∞","int":"∫",Iota:"Ι",iota:"ι",iquest:"¿",isin:"∈",Iuml:"Ï",iuml:"ï",Kappa:"Κ",kappa:"κ",Lambda:"Λ",lambda:"λ",lang:"⟨",laquo:"«",larr:"←",lArr:"⇐",lceil:"⌈",ldquo:"“",le:"≤",lfloor:"⌊",lowast:"∗",loz:"◊",lrm:"‎",lsaquo:"‹",lsquo:"‘",lt:"<",macr:"¯",mdash:"—",micro:"µ",middot:"·",minus:"−",Mu:"Μ",mu:"μ",nabla:"∇",nbsp:" ",ndash:"–",ne:"≠",ni:"∋",not:"¬",notin:"∉",nsub:"⊄",Ntilde:"Ñ",ntilde:"ñ",Nu:"Ν",nu:"ν",Oacute:"Ó",oacute:"ó",Ocirc:"Ô",ocirc:"ô",OElig:"Œ",oelig:"œ",Ograve:"Ò",ograve:"ò",oline:"‾",Omega:"Ω",omega:"ω",Omicron:"Ο",omicron:"ο",oplus:"⊕",or:"∨",ordf:"ª",ordm:"º",Oslash:"Ø",oslash:"ø",Otilde:"Õ",otilde:"õ",otimes:"⊗",Ouml:"Ö",ouml:"ö",para:"¶",permil:"‰",perp:"⊥",Phi:"Φ",phi:"φ",Pi:"Π",pi:"π",piv:"ϖ",plusmn:"±",pound:"£",prime:"′",Prime:"″",prod:"∏",prop:"∝",Psi:"Ψ",psi:"ψ",quot:'"',radic:"√",rang:"⟩",raquo:"»",rarr:"→",rArr:"⇒",rceil:"⌉",rdquo:"”",real:"ℜ",reg:"®",rfloor:"⌋",Rho:"Ρ",rho:"ρ",rlm:"‏",rsaquo:"›",rsquo:"’",sbquo:"‚",Scaron:"Š",scaron:"š",sdot:"⋅",sect:"§",shy:"­",Sigma:"Σ",sigma:"σ",sigmaf:"ς",sim:"∼",spades:"♠",sub:"⊂",sube:"⊆",sum:"∑",sup:"⊃",sup1:"¹",sup2:"²",sup3:"³",supe:"⊇",szlig:"ß",Tau:"Τ",tau:"τ",there4:"∴",Theta:"Θ",theta:"θ",thetasym:"ϑ",thinsp:" ",THORN:"Þ",thorn:"þ",tilde:"˜",times:"×",trade:"™",Uacute:"Ú",uacute:"ú",uarr:"↑",uArr:"⇑",Ucirc:"Û",ucirc:"û",Ugrave:"Ù",ugrave:"ù",uml:"¨",upsih:"ϒ",Upsilon:"Υ",upsilon:"υ",Uuml:"Ü",uuml:"ü",weierp:"℘",Xi:"Ξ",xi:"ξ",Yacute:"Ý",yacute:"ý",yen:"¥",yuml:"ÿ",Yuml:"Ÿ",Zeta:"Ζ",zeta:"ζ",zwj:"‍",zwnj:"‌"},po=function(){function t(t){var e=void 0===t?{}:t,r=e.closedByChildren,n=e.requiredParents,o=e.implicitNamespacePrefix,i=e.contentType,s=void 0===i?co.PARSABLE_DATA:i,a=e.closedByParent,u=void 0===a?!1:a,c=e.isVoid,l=void 0===c?!1:c,p=e.ignoreFirstLf,h=void 0===p?!1:p,f=this;this.closedByChildren={},this.closedByParent=!1,this.canSelfClose=!1,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,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}(),ho={base:new po({isVoid:!0}),meta:new po({isVoid:!0}),area:new po({isVoid:!0}),embed:new po({isVoid:!0}),link:new po({isVoid:!0}),img:new po({isVoid:!0}),input:new po({isVoid:!0}),param:new po({isVoid:!0}),hr:new po({isVoid:!0}),br:new po({isVoid:!0}),source:new po({isVoid:!0}),track:new po({isVoid:!0}),wbr:new po({isVoid:!0}),p:new po({closedByChildren:["address","article","aside","blockquote","div","dl","fieldset","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","hr","main","nav","ol","p","pre","section","table","ul"],closedByParent:!0}),thead:new po({closedByChildren:["tbody","tfoot"]}),tbody:new po({closedByChildren:["tbody","tfoot"],closedByParent:!0}),tfoot:new po({closedByChildren:["tbody"],closedByParent:!0}),tr:new po({closedByChildren:["tr"],requiredParents:["tbody","tfoot","thead"],closedByParent:!0}),td:new po({closedByChildren:["td","th"],closedByParent:!0}),th:new po({closedByChildren:["td","th"],closedByParent:!0}),col:new po({requiredParents:["colgroup"],isVoid:!0}),svg:new po({implicitNamespacePrefix:"svg"}),math:new po({implicitNamespacePrefix:"math"}),li:new po({closedByChildren:["li"],closedByParent:!0}),dt:new po({closedByChildren:["dt","dd"]}),dd:new po({closedByChildren:["dt","dd"],closedByParent:!0}),rb:new po({closedByChildren:["rb","rt","rtc","rp"],closedByParent:!0}),rt:new po({closedByChildren:["rb","rt","rtc","rp"],closedByParent:!0}),rtc:new po({closedByChildren:["rb","rtc","rp"],closedByParent:!0}),rp:new po({closedByChildren:["rb","rt","rtc","rp"],closedByParent:!0}),optgroup:new po({closedByChildren:["optgroup"],closedByParent:!0}),option:new po({closedByChildren:["option","optgroup"],closedByParent:!0}),pre:new po({ignoreFirstLf:!0}),listing:new po({ignoreFirstLf:!0}),style:new po({contentType:co.RAW_TEXT}),script:new po({contentType:co.RAW_TEXT}),title:new po({contentType:co.ESCAPABLE_RAW_TEXT}),textarea:new po({contentType:co.ESCAPABLE_RAW_TEXT,ignoreFirstLf:!0})},fo=new po,yo=new RegExp("(\\:not\\()|([-\\w]+)|(?:\\.([-\\w]+))|(?:\\[([-.\\w*]+)(?:=([\"']?)([^\\]\"']*)\\5)?\\])|(\\))|(\\s*,\\s*)","g"),vo=function(){function t(){this.element=null,this.classNames=[],this.attrs=[],this.notSelectors=[]}return t.parse=function(e){var 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(yo.lastIndex=0;r=yo.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 s(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}(),mo=function(){function t(){this._elementMap=new Map,this._elementPartialMap=new Map,this._classMap=new Map,this._classPartialMap=new Map,this._attrValueMap=new Map,this._attrValuePartialMap=new Map,this._listContexts=[]}return t.createNotMatcher=function(e){var r=new t;return r.addSelectables(e,null),r},t.prototype.addSelectables=function(t,e){var r=null;t.length>1&&(r=new go(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 _o(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 y=n._attrValuePartialMap,v=y.get(p);v||(v=new Map,y.set(p,v)),n=this._addPartial(v,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}(),go=function(){function t(t){this.selectors=t,this.alreadyMatched=!1}return t}(),_o=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=mo.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}(),bo="",wo=/-+([a-z0-9])/g,Co=function(){function t(){}return t.prototype.visitArray=function(t,e){var r=this;return t.map(function(t){return p(t,r,e)})},t.prototype.visitStringMap=function(t,e){var r=this,n={};return Object.keys(t).forEach(function(o){n[o]=p(t[o],r,e)}),n},t.prototype.visitPrimitive=function(t){return t},t.prototype.visitOther=function(t){return t},t}(),Eo=function(){function t(t,e){void 0===e&&(e=null),this.syncResult=t,this.asyncResult=e,e||(this.asyncResult=Promise.resolve(t))}return t}(),So="ngSyntaxError",xo=Object.getPrototypeOf({}),To=/^(?:(?:\[([^\]]+)\])|(?:\(([^\)]+)\)))|(\@[-\w]+)$/,Po=function(){function t(t,e){void 0===t&&(t=null),void 0===e&&(e=null),this.name=t,this.definitions=e}return t}(),Ao=function(){function t(){}return t}(),Oo=function(t){function e(e,r){var n=t.call(this)||this;return n.stateNameExpr=e,n.styles=r,n}return zn(e,t),e}(Ao),Mo=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}(Ao),Ro=function(){function t(){}return t}(),ko=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}(Ro),Io=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}(Ro),No=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}(Ro),Do=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}(Ro),jo=function(t){function e(e){return void 0===e&&(e=null),t.call(this,e)||this}return zn(e,t),e}(Do),Lo=function(t){function e(e){return void 0===e&&(e=null),t.call(this,e)||this}return zn(e,t),e}(Do),Vo=0,Fo={};Fo.Pipe=0,Fo.Directive=1,Fo.NgModule=2,Fo.Injectable=3,Fo[Fo.Pipe]="Pipe",Fo[Fo.Directive]="Directive",Fo[Fo.NgModule]="NgModule",Fo[Fo.Injectable]="Injectable";var Uo=function(){function t(t){var e=void 0===t?{}:t,r=e.moduleUrl,n=e.styles,o=e.styleUrls;this.moduleUrl=r,this.styles=A(n),this.styleUrls=A(o)}return t}(),Bo=function(){function t(t){var e=void 0===t?{}:t,r=e.encapsulation,n=e.template,o=e.templateUrl,i=e.styles,s=e.styleUrls,a=e.externalStylesheets,u=e.animations,c=e.ngContentSelectors,l=e.interpolation,p=e.isInline;if(this.encapsulation=r,this.template=n,this.templateUrl=o,this.styles=A(i),this.styleUrls=A(s),this.externalStylesheets=A(a),this.animations=u?O(u):[],this.ngContentSelectors=c||[],l&&2!=l.length)throw new Error("'interpolation' should have a start and an end symbol.");this.interpolation=l,this.isInline=p}return t.prototype.toSummary=function(){return{animations:this.animations.map(function(t){return t.name}),ngContentSelectors:this.ngContentSelectors,encapsulation:this.encapsulation}},t}(),Ho=function(){function t(t){var e=void 0===t?{}:t,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.hostListeners,p=e.hostProperties,h=e.hostAttributes,f=e.providers,d=e.viewProviders,y=e.queries,v=e.viewQueries,m=e.entryComponents,g=e.template,_=e.componentViewType,b=e.rendererType,w=e.componentFactory;this.isHost=!!r,this.type=n,this.isComponent=o,this.selector=i,this.exportAs=s,this.changeDetection=a,this.inputs=u,this.outputs=c,this.hostListeners=l,this.hostProperties=p,this.hostAttributes=h,this.providers=A(f),this.viewProviders=A(d),this.queries=A(y),this.viewQueries=A(v),this.entryComponents=A(m),this.template=g,this.componentViewType=_,this.rendererType=b,this.componentFactory=w}return t.create=function(e){var r=void 0===e?{}:e,n=r.isHost,o=r.type,i=r.isComponent,s=r.selector,a=r.exportAs,c=r.changeDetection,l=r.inputs,p=r.outputs,h=r.host,f=r.providers,d=r.viewProviders,y=r.queries,v=r.viewQueries,m=r.entryComponents,g=r.template,_=r.componentViewType,b=r.rendererType,w=r.componentFactory,C={},E={},S={};null!=h&&Object.keys(h).forEach(function(t){var e=h[t],r=t.match(To);null===r?S[t]=e:null!=r[1]?E[r[1]]=e:null!=r[2]&&(C[r[2]]=e)});var x={};null!=l&&l.forEach(function(t){var e=u(t,[t,t]);x[e[0]]=e[1]});var T={};return null!=p&&p.forEach(function(t){var e=u(t,[t,t]);T[e[0]]=e[1]}),new t({isHost:n,type:o,isComponent:!!i,selector:s,exportAs:a,changeDetection:c,inputs:x,outputs:T,hostListeners:C,hostProperties:E,hostAttributes:S,providers:f,viewProviders:d,queries:y,viewQueries:v,entryComponents:m,template:g,componentViewType:_,rendererType:b,componentFactory:w})},t.prototype.toSummary=function(){return{summaryKind:Fo.Directive,type:this.type,isComponent:this.isComponent,selector:this.selector,exportAs:this.exportAs,inputs:this.inputs,outputs:this.outputs,hostListeners:this.hostListeners,hostProperties:this.hostProperties,hostAttributes:this.hostAttributes,providers:this.providers,viewProviders:this.viewProviders,queries:this.queries,viewQueries:this.viewQueries,entryComponents:this.entryComponents,changeDetection:this.changeDetection,template:this.template&&this.template.toSummary(),componentViewType:this.componentViewType,rendererType:this.rendererType,componentFactory:this.componentFactory}},t}(),qo=function(){function t(t){var e=void 0===t?{}:t,r=e.type,n=e.name,o=e.pure;this.type=r,this.name=n,this.pure=!!o}return t.prototype.toSummary=function(){return{summaryKind:Fo.Pipe,type:this.type,name:this.name,pure:this.pure}},t}(),zo=function(){function t(t){var e=void 0===t?{}:t,r=e.type,n=e.providers,o=e.declaredDirectives,i=e.exportedDirectives,s=e.declaredPipes,a=e.exportedPipes,u=e.entryComponents,c=e.bootstrapComponents,l=e.importedModules,p=e.exportedModules,h=e.schemas,f=e.transitiveModule,d=e.id;this.type=r,this.declaredDirectives=A(o),this.exportedDirectives=A(i),this.declaredPipes=A(s),this.exportedPipes=A(a),this.providers=A(n),this.entryComponents=A(u),this.bootstrapComponents=A(c),this.importedModules=A(l),this.exportedModules=A(p),this.schemas=A(h),this.id=d,this.transitiveModule=f}return t.prototype.toSummary=function(){return{summaryKind:Fo.NgModule,type:this.type,entryComponents:this.transitiveModule.entryComponents,providers:this.transitiveModule.providers,modules:this.transitiveModule.modules,exportedDirectives:this.transitiveModule.exportedDirectives,exportedPipes:this.transitiveModule.exportedPipes}},t}(),Go=function(){function t(){this.directivesSet=new Set,this.directives=[],this.exportedDirectivesSet=new Set,this.exportedDirectives=[],this.pipesSet=new Set,this.pipes=[],this.exportedPipesSet=new Set,this.exportedPipes=[],this.modulesSet=new Set,this.modules=[],this.entryComponentsSet=new Set,this.entryComponents=[],this.providers=[]}return t.prototype.addProvider=function(t,e){this.providers.push({provider:t,module:e})},t.prototype.addDirective=function(t){this.directivesSet.has(t.reference)||(this.directivesSet.add(t.reference),this.directives.push(t))},t.prototype.addExportedDirective=function(t){this.exportedDirectivesSet.has(t.reference)||(this.exportedDirectivesSet.add(t.reference),this.exportedDirectives.push(t))},t.prototype.addPipe=function(t){this.pipesSet.has(t.reference)||(this.pipesSet.add(t.reference),this.pipes.push(t))},t.prototype.addExportedPipe=function(t){this.exportedPipesSet.has(t.reference)||(this.exportedPipesSet.add(t.reference),this.exportedPipes.push(t))},t.prototype.addModule=function(t){this.modulesSet.has(t.reference)||(this.modulesSet.add(t.reference),this.modules.push(t))},t.prototype.addEntryComponent=function(t){this.entryComponentsSet.has(t.componentType)||(this.entryComponentsSet.add(t.componentType),this.entryComponents.push(t))},t}(),Wo=function(){function t(t,e){var r=e.useClass,n=e.useValue,o=e.useExisting,i=e.useFactory,s=e.deps,a=e.multi;this.token=t,this.useClass=r,this.useValue=n,this.useExisting=o,this.useFactory=i,this.dependencies=s,this.multi=!!a}return t}(),Ko=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,this.enableLegacyTemplate=u!==!1}return t}(),Qo=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}(),$o=function(){function t(t,e){this.start=t,this.end=e}return t}(),Xo=function(){function t(t){this.span=t}return t.prototype.visit=function(t,e){return void 0===e&&(e=null),null},t.prototype.toString=function(){return"AST"},t}(),Zo=function(t){function e(e,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}(Xo),Yo=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}(Xo),Jo=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}(Xo),ti=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}(Xo),ei=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}(Xo),ri=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}(Xo),ni=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}(Xo),oi=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}(Xo),ii=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}(Xo),si=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}(Xo),ai=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}(Xo),ui=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}(Xo),ci=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}(Xo),li=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}(Xo),pi=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}(Xo),hi=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}(Xo),fi=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}(Xo),di=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}(Xo),yi=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}(Xo),vi=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}(Xo),mi=function(t){function e(e,r,n,o){var i=t.call(this,new $o(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}(Xo),gi=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}(),_i=function(){function t(){}return t.prototype.visitBinary=function(t){return t.left.visit(this),t.right.visit(this),null},t.prototype.visitChain=function(t,e){return this.visitAll(t.expressions,e)},t.prototype.visitConditional=function(t){return t.condition.visit(this),t.trueExp.visit(this),t.falseExp.visit(this),null},t.prototype.visitPipe=function(t,e){return t.exp.visit(this),this.visitAll(t.args,e),null},t.prototype.visitFunctionCall=function(t,e){return t.target.visit(this),this.visitAll(t.args,e),null},t.prototype.visitImplicitReceiver=function(){return null},t.prototype.visitInterpolation=function(t,e){return this.visitAll(t.expressions,e)},t.prototype.visitKeyedRead=function(t){return t.obj.visit(this),t.key.visit(this),null},t.prototype.visitKeyedWrite=function(t){return t.obj.visit(this),t.key.visit(this),t.value.visit(this),null},t.prototype.visitLiteralArray=function(t,e){return this.visitAll(t.expressions,e)},t.prototype.visitLiteralMap=function(t,e){return this.visitAll(t.values,e)},t.prototype.visitLiteralPrimitive=function(){return null},t.prototype.visitMethodCall=function(t,e){return t.receiver.visit(this),this.visitAll(t.args,e)},t.prototype.visitPrefixNot=function(t){return t.expression.visit(this),null},t.prototype.visitPropertyRead=function(t){return t.receiver.visit(this),null},t.prototype.visitPropertyWrite=function(t){return t.receiver.visit(this),t.value.visit(this),null},t.prototype.visitSafePropertyRead=function(t){return t.receiver.visit(this),null},t.prototype.visitSafeMethodCall=function(t,e){return t.receiver.visit(this),this.visitAll(t.args,e)},t.prototype.visitAll=function(t,e){var r=this;return t.forEach(function(t){return t.visit(r,e)}),null},t.prototype.visitQuote=function(){return null},t}(),bi=function(){function t(){}return t.prototype.visitImplicitReceiver=function(t){return t},t.prototype.visitInterpolation=function(t){return new pi(t.span,t.strings,this.visitAll(t.expressions))},t.prototype.visitLiteralPrimitive=function(t){return new ui(t.span,t.value)},t.prototype.visitPropertyRead=function(t){return new ri(t.span,t.receiver.visit(this),t.name)},t.prototype.visitPropertyWrite=function(t){return new ni(t.span,t.receiver.visit(this),t.name,t.value.visit(this))},t.prototype.visitSafePropertyRead=function(t){return new oi(t.span,t.receiver.visit(this),t.name)},t.prototype.visitMethodCall=function(t){return new di(t.span,t.receiver.visit(this),t.name,this.visitAll(t.args))},t.prototype.visitSafeMethodCall=function(t){return new yi(t.span,t.receiver.visit(this),t.name,this.visitAll(t.args))},t.prototype.visitFunctionCall=function(t){return new vi(t.span,t.target.visit(this),this.visitAll(t.args))},t.prototype.visitLiteralArray=function(t){return new ci(t.span,this.visitAll(t.expressions))},t.prototype.visitLiteralMap=function(t){return new li(t.span,t.keys,this.visitAll(t.values))},t.prototype.visitBinary=function(t){return new hi(t.span,t.operation,t.left.visit(this),t.right.visit(this))},t.prototype.visitPrefixNot=function(t){return new fi(t.span,t.expression.visit(this))},t.prototype.visitConditional=function(t){return new ei(t.span,t.condition.visit(this),t.trueExp.visit(this),t.falseExp.visit(this))},t.prototype.visitPipe=function(t){return new ai(t.span,t.exp.visit(this),t.name,this.visitAll(t.args))},t.prototype.visitKeyedRead=function(t){return new ii(t.span,t.obj.visit(this),t.key.visit(this))},t.prototype.visitKeyedWrite=function(t){return new si(t.span,t.obj.visit(this),t.key.visit(this),t.value.visit(this))},t.prototype.visitAll=function(t){for(var e=new Array(t.length),r=0;r<t.length;++r)e[r]=t[r].visit(this);return e},t.prototype.visitChain=function(t){return new ti(t.span,this.visitAll(t.expressions))},t.prototype.visitQuote=function(t){return new Zo(t.span,t.prefix,t.uninterpretedExpression,t.location)},t}(),wi=0,Ci=9,Ei=10,Si=11,xi=12,Ti=13,Pi=32,Ai=33,Oi=34,Mi=35,Ri=36,ki=37,Ii=38,Ni=39,Di=40,ji=41,Li=42,Vi=43,Fi=44,Ui=45,Bi=46,Hi=47,qi=58,zi=59,Gi=60,Wi=61,Ki=62,Qi=63,$i=48,Xi=57,Zi=65,Yi=69,Ji=70,ts=88,es=90,rs=91,ns=92,os=93,is=94,ss=95,as=97,us=101,cs=102,ls=110,ps=114,hs=116,fs=117,ds=118,ys=120,vs=122,ms=123,gs=124,_s=125,bs=160,ws=96,Cs=[/^\s*$/,/[<>]/,/^[{}]$/,/&(#|[a-z])/i,/^\/\//],Es=function(){function t(t,e){this.start=t,this.end=e}return t.fromArray=function(e){return e?(B("interpolation",e),new t(e[0],e[1])):Ss},t}(),Ss=new Es("{{","}}"),xs={};xs.Character=0,xs.Identifier=1,xs.Keyword=2,xs.String=3,xs.Operator=4,xs.Number=5,xs.Error=6,xs[xs.Character]="Character",xs[xs.Identifier]="Identifier",xs[xs.Keyword]="Keyword",xs[xs.String]="String",xs[xs.Operator]="Operator",xs[xs.Number]="Number",xs[xs.Error]="Error";var Ts=["var","let","as","null","undefined","true","false","if","else","this"],Ps=function(){function t(){}return t.prototype.tokenize=function(t){for(var e=new Ms(t),r=[],n=e.scanToken();null!=n;)r.push(n),n=e.scanToken();return r},t}();Ps.decorators=[{type:F}],Ps.ctorParameters=function(){return[]};var As=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==xs.Character&&this.numValue==t},t.prototype.isNumber=function(){return this.type==xs.Number},t.prototype.isString=function(){return this.type==xs.String},t.prototype.isOperator=function(t){return this.type==xs.Operator&&this.strValue==t},t.prototype.isIdentifier=function(){return this.type==xs.Identifier},t.prototype.isKeyword=function(){return this.type==xs.Keyword},t.prototype.isKeywordLet=function(){return this.type==xs.Keyword&&"let"==this.strValue},t.prototype.isKeywordAs=function(){return this.type==xs.Keyword&&"as"==this.strValue},t.prototype.isKeywordNull=function(){return this.type==xs.Keyword&&"null"==this.strValue},t.prototype.isKeywordUndefined=function(){return this.type==xs.Keyword&&"undefined"==this.strValue},t.prototype.isKeywordTrue=function(){return this.type==xs.Keyword&&"true"==this.strValue},t.prototype.isKeywordFalse=function(){return this.type==xs.Keyword&&"false"==this.strValue},t.prototype.isKeywordThis=function(){
+return this.type==xs.Keyword&&"this"==this.strValue},t.prototype.isError=function(){return this.type==xs.Error},t.prototype.toNumber=function(){return this.type==xs.Number?this.numValue:-1},t.prototype.toString=function(){switch(this.type){case xs.Character:case xs.Identifier:case xs.Keyword:case xs.Operator:case xs.String:case xs.Error:return this.strValue;case xs.Number:return this.numValue.toString();default:return null}},t}(),Os=new As(-1,xs.Character,0,""),Ms=function(){function t(t){this.input=t,this.peek=0,this.index=-1,this.length=t.length,this.advance()}return t.prototype.advance=function(){this.peek=++this.index>=this.length?wi:this.input.charCodeAt(this.index)},t.prototype.scanToken=function(){for(var t=this.input,e=this.length,r=this.peek,n=this.index;Pi>=r;){if(++n>=e){r=wi;break}r=t.charCodeAt(n)}if(this.peek=r,this.index=n,n>=e)return null;if($(r))return this.scanIdentifier();if(j(r))return this.scanNumber(n);var o=n;switch(r){case Bi:return this.advance(),j(this.peek)?this.scanNumber(o):H(o,Bi);case Di:case ji:case ms:case _s:case rs:case os:case Fi:case qi:case zi:return this.scanCharacter(o,r);case Ni:case Oi:return this.scanString();case Mi:case Vi:case Ui:case Li:case Hi:case ki:case is:return this.scanOperator(o,String.fromCharCode(r));case Qi:return this.scanComplexOperator(o,"?",Bi,".");case Gi:case Ki:return this.scanComplexOperator(o,String.fromCharCode(r),Wi,"=");case Ai:case Wi:return this.scanComplexOperator(o,String.fromCharCode(r),Wi,"=",Wi,"=");case Ii:return this.scanComplexOperator(o,"&",Ii,"&");case gs:return this.scanComplexOperator(o,"|",gs,"|");case bs:for(;D(this.peek);)this.advance();return this.scanToken()}return this.advance(),this.error("Unexpected character ["+String.fromCharCode(r)+"]",0)},t.prototype.scanCharacter=function(t,e){return this.advance(),H(t,e)},t.prototype.scanOperator=function(t,e){return this.advance(),G(t,e)},t.prototype.scanComplexOperator=function(t,e,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),G(t,s)},t.prototype.scanIdentifier=function(){var t=this.index;for(this.advance();Z(this.peek);)this.advance();var e=this.input.substring(t,this.index);return Ts.indexOf(e)>-1?z(t,e):q(t,e)},t.prototype.scanNumber=function(t){var e=this.index===t;for(this.advance();;){if(j(this.peek));else if(this.peek==Bi)e=!1;else{if(!Y(this.peek))break;if(this.advance(),J(this.peek)&&this.advance(),!j(this.peek))return this.error("Invalid exponent",-1);e=!1}this.advance()}var r=this.input.substring(t,this.index),n=e?rt(r):parseFloat(r);return K(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==ns){r+=o.substring(n,this.index),this.advance();var i=void 0;if(this.peek=this.peek,this.peek==fs){var s=o.substring(this.index+1,this.index+5);if(!/^[0-9a-f]+$/i.test(s))return this.error("Invalid unicode escape [\\u"+s+"]",0);i=parseInt(s,16);for(var a=0;5>a;a++)this.advance()}else i=et(this.peek),this.advance();r+=String.fromCharCode(i),n=this.index}else{if(this.peek==wi)return this.error("Unterminated quote",0);this.advance()}var u=o.substring(n,this.index);return this.advance(),W(t,r+u)},t.prototype.error=function(t,e){var r=this.index+e;return Q(r,"Lexer Error: "+t+" at column "+r+" in expression ["+this.input+"]")},t}(),Rs=function(){function t(t,e,r){this.strings=t,this.expressions=e,this.offsets=r}return t}(),ks=function(){function t(t,e,r){this.templateBindings=t,this.warnings=e,this.errors=r}return t}(),Is=function(){function t(t){this._lexer=t,this.errors=[]}return t.prototype.parseAction=function(t,e,r){void 0===r&&(r=Ss),this._checkNoInterpolation(t,e,r);var n=this._stripComments(t),o=this._lexer.tokenize(this._stripComments(t)),i=new Ns(t,e,o,n.length,!0,this.errors,t.length-n.length).parseChain();return new mi(i,t,e,this.errors)},t.prototype.parseBinding=function(t,e,r){void 0===r&&(r=Ss);var n=this._parseBindingAst(t,e,r);return new mi(n,t,e,this.errors)},t.prototype.parseSimpleBinding=function(t,e,r){void 0===r&&(r=Ss);var n=this._parseBindingAst(t,e,r),o=Ds.check(n);return o.length>0&&this._reportError("Host binding expression cannot contain "+o.join(" "),t,e),new mi(n,t,e,this.errors)},t.prototype._reportError=function(t,e,r,n){this.errors.push(new Qo(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 Ns(t,e,i,o.length,!1,this.errors,t.length-o.length).parseChain()},t.prototype._parseQuote=function(t,e){if(null==t)return null;var r=t.indexOf(":");if(-1==r)return null;var n=t.substring(0,r).trim();if(!X(n))return null;var o=t.substring(r+1);return new Zo(new $o(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 Ns(e,r,n,e.length,!1,this.errors,0).parseTemplateBindings()},t.prototype.parseInterpolation=function(t,e,r){void 0===r&&(r=Ss);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 Ns(t,e,u,a.length,!1,this.errors,n.offsets[i]+(s.length-a.length)).parseChain();o.push(c)}return new mi(new pi(new $o(0,null==t?0:t.length),n.strings,o),t,e,this.errors)},t.prototype.splitInterpolation=function(t,e,r){void 0===r&&(r=Ss);var n=nt(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 Rs(i,s,a)},t.prototype.wrapLiteralPrimitive=function(t,e){return new mi(new ui(new $o(0,null==t?0:t.length),t),t,e,this.errors)},t.prototype._stripComments=function(t){var e=this._commentStart(t);return null!=e?t.substring(0,e).trim():t},t.prototype._commentStart=function(t){for(var e=null,r=0;r<t.length-1;r++){var n=t.charCodeAt(r),o=t.charCodeAt(r+1);if(n===Hi&&o==Hi&&null==e)return r;e===n?e=null:null==e&&tt(n)&&(e=n)}return null},t.prototype._checkNoInterpolation=function(t,e,r){var n=nt(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}();Is.decorators=[{type:F}],Is.ctorParameters=function(){return[{type:Ps}]};var Ns=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]:Os},Object.defineProperty(t.prototype,"next",{get:function(){return this.peek(0)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"inputIndex",{get:function(){return this.index<this.tokens.length?this.next.index+this.offset:this.inputLength+this.offset},enumerable:!0,configurable:!0}),t.prototype.span=function(t){return new $o(t,this.inputIndex)},t.prototype.advance=function(){this.index++},t.prototype.optionalCharacter=function(t){return this.next.isCharacter(t)?(this.advance(),!0):!1},t.prototype.peekKeywordLet=function(){return this.next.isKeywordLet()},t.prototype.peekKeywordAs=function(){return this.next.isKeywordAs()},t.prototype.expectCharacter=function(t){this.optionalCharacter(t)||this.error("Missing expected "+String.fromCharCode(t))},t.prototype.optionalOperator=function(t){return this.next.isOperator(t)?(this.advance(),!0):!1},t.prototype.expectOperator=function(t){this.optionalOperator(t)||this.error("Missing expected operator "+t)},t.prototype.expectIdentifierOrKeyword=function(){var t=this.next;return t.isIdentifier()||t.isKeyword()?(this.advance(),t.toString()):(this.error("Unexpected token "+t+", expected identifier or keyword"),"")},t.prototype.expectIdentifierOrKeywordOrString=function(){var t=this.next;return t.isIdentifier()||t.isKeyword()||t.isString()?(this.advance(),t.toString()):(this.error("Unexpected token "+t+", expected identifier, keyword, or string"),"")},t.prototype.parseChain=function(){for(var t=[],e=this.inputIndex;this.index<this.tokens.length;){var 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 Yo(this.span(e)):1==t.length?t[0]:new ti(this.span(e),t)},t.prototype.parsePipe=function(){var t=this.parseExpression();if(this.optionalOperator("|")){this.parseAction&&this.error("Cannot have a pipe in an action expression");do{for(var e=this.expectIdentifierOrKeyword(),r=[];this.optionalCharacter(qi);)r.push(this.parseExpression());t=new ai(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(qi))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 Yo(this.span(t))}return new ei(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 hi(this.span(t.span.start),"||",t,e)}return t},t.prototype.parseLogicalAnd=function(){for(var t=this.parseEquality();this.optionalOperator("&&");){var e=this.parseEquality();t=new hi(this.span(t.span.start),"&&",t,e)}return t},t.prototype.parseEquality=function(){for(var t=this.parseRelational();this.next.type==xs.Operator;){var e=this.next.strValue;switch(e){case"==":case"===":case"!=":case"!==":this.advance();var r=this.parseRelational();t=new hi(this.span(t.span.start),e,t,r);continue}break}return t},t.prototype.parseRelational=function(){for(var t=this.parseAdditive();this.next.type==xs.Operator;){var e=this.next.strValue;switch(e){case"<":case">":case"<=":case">=":this.advance();var r=this.parseAdditive();t=new hi(this.span(t.span.start),e,t,r);continue}break}return t},t.prototype.parseAdditive=function(){for(var t=this.parseMultiplicative();this.next.type==xs.Operator;){var e=this.next.strValue;switch(e){case"+":case"-":this.advance();var r=this.parseMultiplicative();t=new hi(this.span(t.span.start),e,t,r);continue}break}return t},t.prototype.parseMultiplicative=function(){for(var t=this.parsePrefix();this.next.type==xs.Operator;){var e=this.next.strValue;switch(e){case"*":case"%":case"/":this.advance();var r=this.parsePrefix();t=new hi(this.span(t.span.start),e,t,r);continue}break}return t},t.prototype.parsePrefix=function(){if(this.next.type==xs.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 hi(this.span(t),e,new ui(new $o(t,t),0),r);case"!":return this.advance(),r=this.parsePrefix(),new fi(this.span(t),r)}}return this.parseCallChain()},t.prototype.parseCallChain=function(){for(var t=this.parsePrimary();;)if(this.optionalCharacter(Bi))t=this.parseAccessMemberOrMethodCall(t,!1);else if(this.optionalOperator("?."))t=this.parseAccessMemberOrMethodCall(t,!0);else if(this.optionalCharacter(rs)){this.rbracketsExpected++;var e=this.parsePipe();if(this.rbracketsExpected--,this.expectCharacter(os),this.optionalOperator("=")){var r=this.parseConditional();t=new si(this.span(t.span.start),t,e,r)}else t=new ii(this.span(t.span.start),t,e)}else{if(!this.optionalCharacter(Di))return t;this.rparensExpected++;var n=this.parseCallArguments();this.rparensExpected--,this.expectCharacter(ji),t=new vi(this.span(t.span.start),t,n)}},t.prototype.parsePrimary=function(){var t=this.inputIndex;if(this.optionalCharacter(Di)){this.rparensExpected++;var e=this.parsePipe();return this.rparensExpected--,this.expectCharacter(ji),e}if(this.next.isKeywordNull())return this.advance(),new ui(this.span(t),null);if(this.next.isKeywordUndefined())return this.advance(),new ui(this.span(t),void 0);if(this.next.isKeywordTrue())return this.advance(),new ui(this.span(t),!0);if(this.next.isKeywordFalse())return this.advance(),new ui(this.span(t),!1);if(this.next.isKeywordThis())return this.advance(),new Jo(this.span(t));if(this.optionalCharacter(rs)){this.rbracketsExpected++;var r=this.parseExpressionList(os);return this.rbracketsExpected--,this.expectCharacter(os),new ci(this.span(t),r)}if(this.next.isCharacter(ms))return this.parseLiteralMap();if(this.next.isIdentifier())return this.parseAccessMemberOrMethodCall(new Jo(this.span(t)),!1);if(this.next.isNumber()){var n=this.next.toNumber();return this.advance(),new ui(this.span(t),n)}if(this.next.isString()){var o=this.next.toString();return this.advance(),new ui(this.span(t),o)}return this.index>=this.tokens.length?(this.error("Unexpected end of expression: "+this.input),new Yo(this.span(t))):(this.error("Unexpected token "+this.next),new Yo(this.span(t)))},t.prototype.parseExpressionList=function(t){var e=[];if(!this.next.isCharacter(t))do e.push(this.parsePipe());while(this.optionalCharacter(Fi));return e},t.prototype.parseLiteralMap=function(){var t=[],e=[],r=this.inputIndex;if(this.expectCharacter(ms),!this.optionalCharacter(_s)){this.rbracesExpected++;do{var n=this.expectIdentifierOrKeywordOrString();t.push(n),this.expectCharacter(qi),e.push(this.parsePipe())}while(this.optionalCharacter(Fi));this.rbracesExpected--,this.expectCharacter(_s)}return new li(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(Di)){this.rparensExpected++;var o=this.parseCallArguments();this.expectCharacter(ji),this.rparensExpected--;var i=this.span(r);return e?new yi(i,t,n,o):new di(i,t,n,o)}if(e)return this.optionalOperator("=")?(this.error("The '?.' operator cannot be used in the assignment"),new Yo(this.span(r))):new oi(this.span(r),t,n);if(this.optionalOperator("=")){if(!this.parseAction)return this.error("Bindings cannot contain assignments"),new Yo(this.span(r));var s=this.parseConditional();return new ni(this.span(r),t,n,s)}return new ri(this.span(r),t,n)},t.prototype.parseCallArguments=function(){if(this.next.isCharacter(ji))return[];var t=[];do t.push(this.parsePipe());while(this.optionalCharacter(Fi));return t},t.prototype.expectTemplateBindingKey=function(){var t="",e=!1;do t+=this.expectIdentifierOrKeywordOrString(),e=this.optionalOperator("-"),e&&(t+="-");while(e);return t.toString()},t.prototype.parseTemplateBindings=function(){for(var t=[],e=null,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(qi);var a=null,u=null;if(o)a=this.optionalOperator("=")?this.expectTemplateBindingKey():"$implicit";else if(this.peekKeywordAs()){var c=this.inputIndex;this.advance(),a=i,s=this.expectTemplateBindingKey(),o=!0}else if(this.next!==Os&&!this.peekKeywordLet()){var l=this.inputIndex,p=this.parsePipe(),h=this.input.substring(l-this.offset,this.inputIndex-this.offset);u=new mi(p,h,this.location,this.errors)}if(t.push(new gi(this.span(n),s,o,a,u)),this.peekKeywordAs()&&!o){var c=this.inputIndex;this.advance();var f=this.expectTemplateBindingKey();t.push(new gi(this.span(c),f,!0,s,null))}this.optionalCharacter(zi)||this.optionalCharacter(Fi)}return new ks(t,r,this.errors)},t.prototype.error=function(t,e){void 0===e&&(e=null),this.errors.push(new Qo(t,this.input,this.locationText(e),this.location)),this.skip()},t.prototype.locationText=function(t){return void 0===t&&(t=null),null==t&&(t=this.index),t<this.tokens.length?"at column "+(this.tokens[t].index+1)+" in":"at the end of the expression"},t.prototype.skip=function(){for(var t=this.next;this.index<this.tokens.length&&!t.isCharacter(zi)&&(this.rparensExpected<=0||!t.isCharacter(ji))&&(this.rbracesExpected<=0||!t.isCharacter(_s))&&(this.rbracketsExpected<=0||!t.isCharacter(os));)this.next.isError()&&this.errors.push(new Qo(this.next.toString(),this.input,this.locationText(),this.location)),this.advance(),t=this.next},t}(),Ds=function(){function t(){this.errors=[]}return t.check=function(e){var 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}(),js=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==Ei){i--;var u=r.substr(0,o-1).lastIndexOf(String.fromCharCode(Ei));s=u>0?o-u:o}else s--}for(;n>o&&e>0;){var a=r.charCodeAt(o);o++,e--,a==Ei?(i++,s=0):s++}return new t(this.file,o,i,s)},t.prototype.getContext=function(t,e){var 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}(),Ls=function(){function t(t,e){this.content=t,this.url=e}return t}(),Vs=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}(),Fs={};Fs.WARNING=0,Fs.ERROR=1,Fs[Fs.WARNING]="WARNING",Fs[Fs.ERROR]="ERROR";var Us=function(){function t(t,e,r){void 0===r&&(r=Fs.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+"["+Fs[this.level]+" ->]"+t.after+'")':"",r=this.span.details?", "+this.span.details:"";return""+this.msg+e+": "+this.span.start+r},t}(),Bs=function(){function t(t,e){this.value=t,this.sourceSpan=e}return t.prototype.visit=function(t,e){return t.visitText(this,e)},t}(),Hs=function(){function t(t,e,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}(),qs=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}(),Gs=function(){function t(t,e,r,n,o,i){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}(),Ws=function(){function t(t,e){this.value=t,this.sourceSpan=e}return t.prototype.visit=function(t,e){return t.visitComment(this,e)},t}(),Ks={};Ks.TAG_OPEN_START=0,Ks.TAG_OPEN_END=1,Ks.TAG_OPEN_END_VOID=2,Ks.TAG_CLOSE=3,Ks.TEXT=4,Ks.ESCAPABLE_RAW_TEXT=5,Ks.RAW_TEXT=6,Ks.COMMENT_START=7,Ks.COMMENT_END=8,Ks.CDATA_START=9,Ks.CDATA_END=10,Ks.ATTR_NAME=11,Ks.ATTR_VALUE=12,Ks.DOC_TYPE=13,Ks.EXPANSION_FORM_START=14,Ks.EXPANSION_CASE_VALUE=15,Ks.EXPANSION_CASE_EXP_START=16,Ks.EXPANSION_CASE_EXP_END=17,Ks.EXPANSION_FORM_END=18,Ks.EOF=19,Ks[Ks.TAG_OPEN_START]="TAG_OPEN_START",Ks[Ks.TAG_OPEN_END]="TAG_OPEN_END",Ks[Ks.TAG_OPEN_END_VOID]="TAG_OPEN_END_VOID",Ks[Ks.TAG_CLOSE]="TAG_CLOSE",Ks[Ks.TEXT]="TEXT",Ks[Ks.ESCAPABLE_RAW_TEXT]="ESCAPABLE_RAW_TEXT",Ks[Ks.RAW_TEXT]="RAW_TEXT",Ks[Ks.COMMENT_START]="COMMENT_START",Ks[Ks.COMMENT_END]="COMMENT_END",Ks[Ks.CDATA_START]="CDATA_START",Ks[Ks.CDATA_END]="CDATA_END",Ks[Ks.ATTR_NAME]="ATTR_NAME",Ks[Ks.ATTR_VALUE]="ATTR_VALUE",Ks[Ks.DOC_TYPE]="DOC_TYPE",Ks[Ks.EXPANSION_FORM_START]="EXPANSION_FORM_START",Ks[Ks.EXPANSION_CASE_VALUE]="EXPANSION_CASE_VALUE",Ks[Ks.EXPANSION_CASE_EXP_START]="EXPANSION_CASE_EXP_START",Ks[Ks.EXPANSION_CASE_EXP_END]="EXPANSION_CASE_EXP_END",Ks[Ks.EXPANSION_FORM_END]="EXPANSION_FORM_END",Ks[Ks.EOF]="EOF";var Qs=function(){function t(t,e,r){this.type=t,this.parts=e,this.sourceSpan=r}return t}(),$s=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}(Us),Xs=function(){function t(t,e){this.tokens=t,this.errors=e}return t}(),Zs=/\r\n?/g,Ys=function(){function t(t){this.error=t}return t}(),Js=function(){function t(t,e,r,n){void 0===n&&(n=Ss),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(Zs,"\n")},t.prototype.tokenize=function(){for(;this._peek!==wi;){var t=this._getLocation();try{this._attemptCharCode(Gi)?this._attemptCharCode(Ai)?this._attemptCharCode(rs)?this._consumeCdata(t):this._attemptCharCode(Ui)?this._consumeComment(t):this._consumeDocType(t):this._attemptCharCode(Hi)?this._consumeTagClose(t):this._consumeTagOpen(t):this._tokenizeIcu&&this._tokenizeExpansionForm()||this._consumeText()}catch(e){if(!(e instanceof Ys))throw e;this.errors.push(e.error)}}return this._beginToken(Ks.EOF),this._endToken([]),new Xs(gt(this.tokens),this.errors)},t.prototype._tokenizeExpansionForm=function(){if(dt(this._input,this._index,this._interpolationConfig))return this._consumeExpansionFormStart(),!0;if(yt(this._peek)&&this._isInExpansionForm())return this._consumeExpansionCaseStart(),!0;if(this._peek===_s){if(this._isInExpansionCase())return this._consumeExpansionCaseEnd(),!0;if(this._isInExpansionForm())return this._consumeExpansionFormEnd(),!0}return!1},t.prototype._getLocation=function(){return new js(this._file,this._index,this._line,this._column)},t.prototype._getSpan=function(t,e){return void 0===t&&(t=this._getLocation()),void 0===e&&(e=this._getLocation()),new Vs(t,e)},t.prototype._beginToken=function(t,e){void 0===e&&(e=this._getLocation()),this._currentTokenStart=e,this._currentTokenType=t},t.prototype._endToken=function(t,e){void 0===e&&(e=this._getLocation());var r=new Qs(this._currentTokenType,t,new Vs(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.)');var r=new $s(t,this._currentTokenType,e);return this._currentTokenStart=null,this._currentTokenType=null,new Ys(r)},t.prototype._advance=function(){if(this._index>=this._length)throw this._createError(at(wi),this._getSpan());this._peek===Ei?(this._line++,this._column=0):this._peek!==Ei&&this._peek!==Ti&&this._column++,this._index++,this._peek=this._index>=this._length?wi:this._input.charCodeAt(this._index),this._nextPeek=this._index+1>=this._length?wi:this._input.charCodeAt(this._index+1)},t.prototype._attemptCharCode=function(t){return this._peek===t?(this._advance(),!0):!1},t.prototype._attemptCharCodeCaseInsensitive=function(t){return vt(this._peek,t)?(this._advance(),!0):!1},t.prototype._requireCharCode=function(t){var e=this._getLocation();if(!this._attemptCharCode(t))throw this._createError(at(this._peek),this._getSpan(e,e))},t.prototype._attemptStr=function(t){var e=t.length;if(this._index+e>this._length)return!1;for(var 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(at(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(at(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===Ii)return this._decodeEntity();var e=this._index;return this._advance(),this._input[e]},t.prototype._decodeEntity=function(){var t=this._getLocation();if(this._advance(),!this._attemptCharCode(Mi)){var e=this._savePosition();if(this._attemptCharCodeUntilFn(ft),this._peek!=zi)return this._restorePosition(e),"&";this._advance();var r=this._input.substring(t.offset+1,this._index-1),n=lo[r];if(!n)throw this._createError(ut(r),this._getSpan(t));return n}var o=this._attemptCharCode(ys)||this._attemptCharCode(ts),i=this._getLocation().offset;if(this._attemptCharCodeUntilFn(ht),this._peek!=zi)throw this._createError(at(this._peek),this._getSpan());this._advance();var s=this._input.substring(i,this._index-1);try{var a=parseInt(s,o?16:10);return String.fromCharCode(a)}catch(u){var c=this._input.substring(t.offset+1,this._index-1);throw this._createError(ut(c),this._getSpan(t))}},t.prototype._consumeRawText=function(t,e,r){var n,o=this._getLocation();this._beginToken(t?Ks.ESCAPABLE_RAW_TEXT:Ks.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(Ks.COMMENT_START,t),this._requireCharCode(Ui),this._endToken([]);var r=this._consumeRawText(!1,Ui,function(){return e._attemptStr("->")});this._beginToken(Ks.COMMENT_END,r.sourceSpan.end),this._endToken([])},t.prototype._consumeCdata=function(t){var e=this;this._beginToken(Ks.CDATA_START,t),this._requireStr("CDATA["),this._endToken([]);var r=this._consumeRawText(!1,os,function(){return e._attemptStr("]>")});this._beginToken(Ks.CDATA_END,r.sourceSpan.end),this._endToken([])},t.prototype._consumeDocType=function(t){this._beginToken(Ks.DOC_TYPE,t),this._attemptUntilChar(Ki),this._advance(),this._endToken([this._input.substring(t.offset+2,this._index-1)])},t.prototype._consumePrefixAndName=function(){for(var t=this._index,e=null;this._peek!==qi&&!pt(this._peek);)this._advance();var r;this._peek===qi?(this._advance(),e=this._input.substring(t,this._index-1),r=this._index):r=t,this._requireCharCodeUntilFn(lt,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(!L(this._peek))throw this._createError(at(this._peek),this._getSpan());var o=this._index;for(this._consumeTagOpenStart(t),e=this._input.substring(o,this._index),r=e.toLowerCase(),this._attemptCharCodeUntilFn(ct);this._peek!==Hi&&this._peek!==Ki;)this._consumeAttributeName(),this._attemptCharCodeUntilFn(ct),this._attemptCharCode(Wi)&&(this._attemptCharCodeUntilFn(ct),this._consumeAttributeValue()),this._attemptCharCodeUntilFn(ct);this._consumeTagOpenEnd()}catch(i){if(i instanceof Ys)return this._restorePosition(n),this._beginToken(Ks.TEXT,t),void this._endToken(["<"]);throw i}var s=this._getTagDefinition(e).contentType;s===co.RAW_TEXT?this._consumeRawTextWithTagClose(r,!1):s===co.ESCAPABLE_RAW_TEXT&&this._consumeRawTextWithTagClose(r,!0)},t.prototype._consumeRawTextWithTagClose=function(t,e){var r=this,n=this._consumeRawText(e,Gi,function(){return r._attemptCharCode(Hi)?(r._attemptCharCodeUntilFn(ct),r._attemptStrCaseInsensitive(t)?(r._attemptCharCodeUntilFn(ct),r._attemptCharCode(Ki)):!1):!1});this._beginToken(Ks.TAG_CLOSE,n.sourceSpan.end),this._endToken([null,t])},t.prototype._consumeTagOpenStart=function(t){this._beginToken(Ks.TAG_OPEN_START,t);var e=this._consumePrefixAndName();this._endToken(e)},t.prototype._consumeAttributeName=function(){this._beginToken(Ks.ATTR_NAME);var t=this._consumePrefixAndName();this._endToken(t)},t.prototype._consumeAttributeValue=function(){this._beginToken(Ks.ATTR_VALUE);var t;if(this._peek===Ni||this._peek===Oi){var e=this._peek;this._advance();for(var r=[];this._peek!==e;)r.push(this._readChar(!0));t=r.join(""),this._advance()}else{var n=this._index;this._requireCharCodeUntilFn(lt,1),t=this._input.substring(n,this._index)}this._endToken([this._processCarriageReturns(t)])},t.prototype._consumeTagOpenEnd=function(){var t=this._attemptCharCode(Hi)?Ks.TAG_OPEN_END_VOID:Ks.TAG_OPEN_END;this._beginToken(t),this._requireCharCode(Ki),this._endToken([])},t.prototype._consumeTagClose=function(t){this._beginToken(Ks.TAG_CLOSE,t),this._attemptCharCodeUntilFn(ct);var e=this._consumePrefixAndName();this._attemptCharCodeUntilFn(ct),this._requireCharCode(Ki),this._endToken(e)},t.prototype._consumeExpansionFormStart=function(){this._beginToken(Ks.EXPANSION_FORM_START,this._getLocation()),this._requireCharCode(ms),this._endToken([]),this._expansionCaseStack.push(Ks.EXPANSION_FORM_START),this._beginToken(Ks.RAW_TEXT,this._getLocation());var t=this._readUntil(Fi);this._endToken([t],this._getLocation()),this._requireCharCode(Fi),this._attemptCharCodeUntilFn(ct),this._beginToken(Ks.RAW_TEXT,this._getLocation());var e=this._readUntil(Fi);this._endToken([e],this._getLocation()),this._requireCharCode(Fi),this._attemptCharCodeUntilFn(ct)},t.prototype._consumeExpansionCaseStart=function(){this._beginToken(Ks.EXPANSION_CASE_VALUE,this._getLocation());var t=this._readUntil(ms).trim();this._endToken([t],this._getLocation()),this._attemptCharCodeUntilFn(ct),this._beginToken(Ks.EXPANSION_CASE_EXP_START,this._getLocation()),this._requireCharCode(ms),this._endToken([],this._getLocation()),this._attemptCharCodeUntilFn(ct),this._expansionCaseStack.push(Ks.EXPANSION_CASE_EXP_START)},t.prototype._consumeExpansionCaseEnd=function(){this._beginToken(Ks.EXPANSION_CASE_EXP_END,this._getLocation()),this._requireCharCode(_s),this._endToken([],this._getLocation()),this._attemptCharCodeUntilFn(ct),this._expansionCaseStack.pop()},t.prototype._consumeExpansionFormEnd=function(){this._beginToken(Ks.EXPANSION_FORM_END,this._getLocation()),
 this._requireCharCode(_s),this._endToken([]),this._expansionCaseStack.pop()},t.prototype._consumeText=function(){var t=this._getLocation();this._beginToken(Ks.TEXT,t);var e=[];do this._interpolationConfig&&this._attemptStr(this._interpolationConfig.start)?(e.push(this._interpolationConfig.start),this._inInterpolation=!0):this._interpolationConfig&&this._inInterpolation&&this._attemptStr(this._interpolationConfig.end)?(e.push(this._interpolationConfig.end),this._inInterpolation=!1):e.push(this._readChar(!0));while(!this._isTextEnd());this._endToken([this._processCarriageReturns(e.join(""))])},t.prototype._isTextEnd=function(){if(this._peek===Gi||this._peek===wi)return!0;if(this._tokenizeIcu&&!this._inInterpolation){if(dt(this._input,this._index,this._interpolationConfig))return!0;if(this._peek===_s&&this._isInExpansionCase())return!0}return!1},t.prototype._savePosition=function(){return[this._peek,this._index,this._column,this._line,this.tokens.length]},t.prototype._readUntil=function(t){var e=this._index;return this._attemptUntilChar(t),this._input.substring(e,this._index)},t.prototype._restorePosition=function(t){this._peek=t[0],this._index=t[1],this._column=t[2],this._line=t[3];var e=t[4];e<this.tokens.length&&(this.tokens=this.tokens.slice(0,e))},t.prototype._isInExpansionCase=function(){return this._expansionCaseStack.length>0&&this._expansionCaseStack[this._expansionCaseStack.length-1]===Ks.EXPANSION_CASE_EXP_START},t.prototype._isInExpansionForm=function(){return this._expansionCaseStack.length>0&&this._expansionCaseStack[this._expansionCaseStack.length-1]===Ks.EXPANSION_FORM_START},t}(),ta=function(t){function e(e,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}(Us),ea=function(){function t(t,e){this.rootNodes=t,this.errors=e}return t}(),ra=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=Ss);var o=st(t,e,this.getTagDefinition,r,n),i=new na(o.tokens,this.getTagDefinition).build();return new ea(i.rootNodes,o.errors.concat(i.errors))},t}(),na=function(){function t(t,e){this.tokens=t,this.getTagDefinition=e,this._index=-1,this._rootNodes=[],this._errors=[],this._elementStack=[],this._advance()}return t.prototype.build=function(){for(;this._peek.type!==Ks.EOF;)this._peek.type===Ks.TAG_OPEN_START?this._consumeStartTag(this._advance()):this._peek.type===Ks.TAG_CLOSE?this._consumeEndTag(this._advance()):this._peek.type===Ks.CDATA_START?(this._closeVoidElement(),this._consumeCdata(this._advance())):this._peek.type===Ks.COMMENT_START?(this._closeVoidElement(),this._consumeComment(this._advance())):this._peek.type===Ks.TEXT||this._peek.type===Ks.RAW_TEXT||this._peek.type===Ks.ESCAPABLE_RAW_TEXT?(this._closeVoidElement(),this._consumeText(this._advance())):this._peek.type===Ks.EXPANSION_FORM_START?this._consumeExpansion(this._advance()):this._advance();return new ea(this._rootNodes,this._errors)},t.prototype._advance=function(){var t=this._peek;return this._index<this.tokens.length-1&&this._index++,this._peek=this.tokens[this._index],t},t.prototype._advanceIf=function(t){return this._peek.type===t?this._advance():null},t.prototype._consumeCdata=function(){this._consumeText(this._advance()),this._advanceIf(Ks.CDATA_END)},t.prototype._consumeComment=function(t){var e=this._advanceIf(Ks.RAW_TEXT);this._advanceIf(Ks.COMMENT_END);var r=null!=e?e.parts[0].trim():null;this._addToParent(new Ws(r,t.sourceSpan))},t.prototype._consumeExpansion=function(t){for(var e=this._advance(),r=this._advance(),n=[];this._peek.type===Ks.EXPANSION_CASE_VALUE;){var o=this._parseExpansionCase();if(!o)return;n.push(o)}if(this._peek.type!==Ks.EXPANSION_FORM_END)return void this._errors.push(ta.create(null,this._peek.sourceSpan,"Invalid ICU message. Missing '}'."));var i=new Vs(t.sourceSpan.start,this._peek.sourceSpan.end);this._addToParent(new Hs(e.parts[0],r.parts[0],n,i,e.sourceSpan)),this._advance()},t.prototype._parseExpansionCase=function(){var e=this._advance();if(this._peek.type!==Ks.EXPANSION_CASE_EXP_START)return this._errors.push(ta.create(null,this._peek.sourceSpan,"Invalid ICU message. Missing '{'.")),null;var r=this._advance(),n=this._collectExpansionExpTokens(r);if(!n)return null;var o=this._advance();n.push(new Qs(Ks.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 Vs(e.sourceSpan.start,o.sourceSpan.end),a=new Vs(r.sourceSpan.start,o.sourceSpan.end);return new qs(e.parts[0],i.rootNodes,s,e.sourceSpan,a)},t.prototype._collectExpansionExpTokens=function(t){for(var e=[],r=[Ks.EXPANSION_CASE_EXP_START];;){if((this._peek.type===Ks.EXPANSION_FORM_START||this._peek.type===Ks.EXPANSION_CASE_EXP_START)&&r.push(this._peek.type),this._peek.type===Ks.EXPANSION_CASE_EXP_END){if(!_t(r,Ks.EXPANSION_CASE_EXP_START))return this._errors.push(ta.create(null,t.sourceSpan,"Invalid ICU message. Missing '}'.")),null;if(r.pop(),0==r.length)return e}if(this._peek.type===Ks.EXPANSION_FORM_END){if(!_t(r,Ks.EXPANSION_FORM_START))return this._errors.push(ta.create(null,t.sourceSpan,"Invalid ICU message. Missing '}'.")),null;r.pop()}if(this._peek.type===Ks.EOF)return this._errors.push(ta.create(null,t.sourceSpan,"Invalid ICU message. Missing '}'.")),null;e.push(this._advance())}},t.prototype._consumeText=function(t){var e=t.parts[0];if(e.length>0&&"\n"==e[0]){var r=this._getParentElement();null!=r&&0==r.children.length&&this.getTagDefinition(r.name).ignoreFirstLf&&(e=e.substring(1))}e.length>0&&this._addToParent(new Bs(e,t.sourceSpan))},t.prototype._closeVoidElement=function(){if(this._elementStack.length>0){var t=this._elementStack[this._elementStack.length-1];this.getTagDefinition(t.name).isVoid&&this._elementStack.pop()}},t.prototype._consumeStartTag=function(t){for(var e=t.parts[0],r=t.parts[1],n=[];this._peek.type===Ks.ATTR_NAME;)n.push(this._consumeAttr(this._advance()));var i=this._getElementFullName(e,r,this._getParentElement()),s=!1;if(this._peek.type===Ks.TAG_OPEN_END_VOID){this._advance(),s=!0;var a=this.getTagDefinition(i);a.canSelfClose||null!==o(i)||a.isVoid||this._errors.push(ta.create(i,t.sourceSpan,'Only void and foreign elements can be self closed "'+t.parts[1]+'"'))}else this._peek.type===Ks.TAG_OPEN_END&&(this._advance(),s=!1);var u=this._peek.sourceSpan.start,c=new Vs(t.sourceSpan.start,u),l=new Gs(i,n,[],c,c,null);this._pushElement(l),s&&(this._popElement(i),l.endSourceSpan=c)},t.prototype._pushElement=function(t){if(this._elementStack.length>0){var e=this._elementStack[this._elementStack.length-1];this.getTagDefinition(e.name).isClosedByChild(t.name)&&this._elementStack.pop()}var r=this.getTagDefinition(t.name),n=this._getParentElementSkippingContainers(),o=n.parent,i=n.container;if(o&&r.requireExtraParent(o.name)){var s=new Gs(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(ta.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(ta.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,r=i(t.parts[0],t.parts[1]),n=t.sourceSpan.end,o="";if(this._peek.type===Ks.ATTR_VALUE){var s=this._advance();o=s.parts[0],n=s.sourceSpan.end,e=s.sourceSpan}return new zs(r,o,new Vs(t.sourceSpan.start,n),e)},t.prototype._getParentElement=function(){return this._elementStack.length>0?this._elementStack[this._elementStack.length-1]:null},t.prototype._getParentElementSkippingContainers=function(){for(var t=null,e=this._elementStack.length-1;e>=0;e--){if("ng-container"!==this._elementStack[e].name)return{parent:this._elementStack[e],container:t};t=this._elementStack[e]}return{parent:this._elementStack[this._elementStack.length-1],container:t}},t.prototype._addToParent=function(t){var e=this._getParentElement();null!=e?e.children.push(t):this._rootNodes.push(t)},t.prototype._insertBeforeContainer=function(t,e,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=o(r.name))),i(t,e)},t}(),oa=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}return t}(),ia=function(){function t(t,e){this.value=t,this.sourceSpan=e}return t.prototype.visit=function(t,e){return t.visitText(this,e)},t}(),sa=function(){function t(t,e){this.children=t,this.sourceSpan=e}return t.prototype.visit=function(t,e){return t.visitContainer(this,e)},t}(),aa=function(){function t(t,e,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}(),ua=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}(),ca=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}(),la=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}(),pa=function(){function t(){}return t.prototype.visitText=function(t){return new ia(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 sa(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 aa(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 ua(t.tag,t.attrs,t.startName,t.closeName,n,t.isVoid,t.sourceSpan)},t.prototype.visitPlaceholder=function(t){return new ca(t.value,t.name,t.sourceSpan)},t.prototype.visitIcuPlaceholder=function(t){return new la(t.value,t.name,t.sourceSpan)},t}(),ha=function(){function t(){}return t.prototype.visitText=function(){},t.prototype.visitContainer=function(t){var e=this;t.children.forEach(function(t){return t.visit(e)})},t.prototype.visitIcu=function(t){var e=this;Object.keys(t.cases).forEach(function(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}(),fa={A:"LINK",B:"BOLD_TEXT",BR:"LINE_BREAK",EM:"EMPHASISED_TEXT",H1:"HEADING_LEVEL1",H2:"HEADING_LEVEL2",H3:"HEADING_LEVEL3",H4:"HEADING_LEVEL4",H5:"HEADING_LEVEL5",H6:"HEADING_LEVEL6",HR:"HORIZONTAL_RULE",I:"ITALIC_TEXT",LI:"LIST_ITEM",LINK:"MEDIA_LINK",OL:"ORDERED_LIST",P:"PARAGRAPH",Q:"QUOTATION",S:"STRIKETHROUGH_TEXT",SMALL:"SMALL_TEXT",SUB:"SUBSTRIPT",SUP:"SUPERSCRIPT",TBODY:"TABLE_BODY",TD:"TABLE_CELL",TFOOT:"TABLE_FOOTER",TH:"TABLE_HEADER_CELL",THEAD:"TABLE_HEADER",TR:"TABLE_ROW",TT:"MONOSPACED_TEXT",U:"UNDERLINED_TEXT",UL:"UNORDERED_LIST"},da=function(){function t(){this._placeHolderNameCounts={},this._signatureToName={}}return t.prototype.getStartTagPlaceholderName=function(t,e,r){var n=this._hashTag(t,e,r);if(this._signatureToName[n])return this._signatureToName[n];var o=t.toUpperCase(),i=fa[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=fa[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}(),ya=new Is(new Ps),va=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 Hs,this._icuDepth=0,this._placeholderRegistry=new da,this._placeholderToContent={},this._placeholderToMessage={};var o=it(this,t,{});return new oa(o,this._placeholderToContent,this._placeholderToMessage,e,r,n)},t.prototype.visitElement=function(t){var e=it(this,t.children),r={};t.attrs.forEach(function(t){r[t.name]=t.value});var n=s(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 ua(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 aa(e.switchValue,e.type,n,e.sourceSpan);if(e.cases.forEach(function(t){n[t.value]=new sa(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 la(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 ia(t,e);for(var n=[],o=new sa(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=wt(c)||"INTERPOLATION",p=this._placeholderRegistry.getPlaceholderName(l,c);r.strings[u].length&&n.push(new ia(r.strings[u],e)),n.push(new ca(c,p,e)),this._placeholderToContent[p]=s+c+a}var h=r.strings.length-1;return r.strings[h].length&&n.push(new ia(r.strings[h],e)),o},t}(),ma=/\/\/[\s\S]*i18n[\s\S]*\([\s\S]*ph[\s\S]*=[\s\S]*("|')([\s\S]*?)\1[\s\S]*\)/g,ga=function(t){function e(e,r){return t.call(this,e,r)||this}return zn(e,t),e}(Us),_a="i18n",ba="i18n-",wa=/^i18n:?/,Ca="|",Ea="@@",Sa=function(){function t(t,e){this.messages=t,this.errors=e}return t}(),xa={};xa.Extract=0,xa.Merge=1,xa[xa.Extract]="Extract",xa[xa.Merge]="Merge";var Ta=function(){function t(t,e){this._implicitTags=t,this._implicitAttrs=e}return t.prototype.extract=function(t,e){var r=this;return this._init(xa.Extract,e),t.forEach(function(t){return t.visit(r,null)}),this._inI18nBlock&&this._reportError(t[t.length-1],"Unclosed block"),new Sa(this._messages,this._errors)},t.prototype.merge=function(t,e,r){this._init(xa.Merge,r),this._translations=e;var n=new Gs("wrapper",[],t,null,null,null),o=n.visit(this,null);return this._inI18nBlock&&this._reportError(t[t.length-1],"Unclosed block"),new ea(o.children,this._errors)},t.prototype.visitExpansionCase=function(t,e){var r=it(this,t.expression,e);return this._mode===xa.Merge?new qs(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=it(this,t.cases,e);return this._mode===xa.Merge&&(t=new Hs(t.switchValue,t.type,n,t.sourceSpan,t.switchValueSourceSpan)),this._inIcu=r,t},t.prototype.visitComment=function(t){var e=St(t);if(e&&this._isInTranslatableSection)return void this._reportError(t,"Could not start a block inside a translatable section");var r=xt(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 it(this,o)}return void this._reportError(t,"I18N blocks should not cross element boundaries")}}else e&&(this._inI18nBlock=!0,this._blockStartDepth=this._depth,this._blockChildren=[],this._blockMeaningAndDesc=t.value.replace(wa,"").trim(),this._openTranslatableSection(t))},t.prototype.visitText=function(t){return this._isInTranslatableSection&&this._mayBeAddBlockChildren(t),t},t.prototype.visitElement=function(t,e){var r=this;this._mayBeAddBlockChildren(t),this._depth++;var n,o=this._inI18nNode,i=this._inImplicitNode,s=[],a=Tt(t),u=a?a.value:"",c=this._implicitTags.some(function(e){return t.name===e})&&!this._inIcu&&!this._isInTranslatableSection,l=!i&&c;if(this._inImplicitNode=i||c,this._isInTranslatableSection||this._inIcu)(a||l)&&this._reportError(t,"Could not mark an element as translatable inside a translatable section"),this._mode==xa.Extract&&it(this,t.children);else{if(a||l){this._inI18nNode=!0;var p=this._addMessage(t.children,u);n=this._translateMessage(t,p)}if(this._mode==xa.Extract){var h=a||l;h&&this._openTranslatableSection(t),it(this,t.children),h&&this._closeTranslatableSection(t,t.children)}}if(this._mode===xa.Merge){var f=n||t.children;f.forEach(function(t){var n=t.visit(r,e);n&&!r._isInTranslatableSection&&(s=s.concat(n))})}if(this._visitAttributesOf(t),this._depth--,this._inI18nNode=o,this._inImplicitNode=i,this._mode===xa.Merge){var d=this._translateAttributes(t);return new Gs(t.name,d,s,t.sourceSpan,t.startSourceSpan,t.endSourceSpan)}},t.prototype.visitAttribute=function(){throw new Error("unreachable code")},t.prototype._init=function(t,e){this._mode=t,this._inI18nBlock=!1,this._inI18nNode=!1,this._depth=0,this._inIcu=!1,this._msgCountAtSectionStart=void 0,this._errors=[],this._messages=[],this._inImplicitNode=!1,this._createI18nMessage=bt(e)},t.prototype._visitAttributesOf=function(t){var e=this,r={},n=this._implicitAttrs[t.name]||[];t.attrs.filter(function(t){return t.name.startsWith(ba)}).forEach(function(t){return r[t.name.slice(ba.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)){var r=Pt(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===xa.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(ba)&&(n[t.name.slice(ba.length)]=Pt(t.value))});var o=[];return r.forEach(function(r){if(r.name!==_a&&!r.name.startsWith(ba))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 Bs){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 Ws?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 ia)){this._messages.splice(o,1);break}}this._msgCountAtSectionStart=void 0},t.prototype._reportError=function(t,e){this._errors.push(new ga(t.sourceSpan,e))},t}(),Pa=function(){function t(){this.closedByParent=!1,this.contentType=co.PARSABLE_DATA,this.isVoid=!1,this.ignoreFirstLf=!1,this.canSelfClose=!0}return t.prototype.requireExtraParent=function(){return!1},t.prototype.isClosedByChild=function(){return!1},t}(),Aa=new Pa,Oa=function(t){function e(){return t.call(this,At)||this}return zn(e,t),e.prototype.parse=function(e,r,n){return void 0===n&&(n=!1),t.prototype.parse.call(this,e,r,n,null)},e}(ra),Ma=function(){function t(){}return t.prototype.visitText=function(t){return t.value},t.prototype.visitContainer=function(t){var e=this;return"["+t.children.map(function(t){return t.visit(e)}).join(", ")+"]"},t.prototype.visitIcu=function(t){var e=this,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}(),Ra=new Ma,ka=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}(Ma),Ia={};Ia.Little=0,Ia.Big=1,Ia[Ia.Little]="Little",Ia[Ia.Big]="Big";var Na=function(){function t(){}return t.prototype.write=function(){},t.prototype.load=function(){},t.prototype.digest=function(){},t.prototype.createNameMapper=function(){return null},t}(),Da=function(t){function e(e,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}(ha),ja=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}(),La=new ja,Va=function(){function t(t){var e=this;this.attrs={},Object.keys(t).forEach(function(r){e.attrs[r]=te(t[r])})}return t.prototype.visit=function(t){return t.visitDeclaration(this)},t}(),Fa=function(){function t(t,e){this.rootTag=t,this.dtd=e}return t.prototype.visit=function(t){return t.visitDoctype(this)},t}(),Ua=function(){function t(t,e,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]=te(e[t])})}return t.prototype.visit=function(t){return t.visitTag(this)},t}(),Ba=function(){function t(t){this.value=te(t)}return t.prototype.visit=function(t){return t.visitText(this)},t}(),Ha=function(t){function e(e){return void 0===e&&(e=0),t.call(this,"\n"+new Array(e+1).join(" "))||this}return zn(e,t),e}(Ba),qa=[[/&/g,"&amp;"],[/"/g,"&quot;"],[/'/g,"&apos;"],[/</g,"&lt;"],[/>/g,"&gt;"]],za="1.2",Ga="urn:oasis:names:tc:xliff:document:1.2",Wa="en",Ka="x",Qa="file",$a="source",Xa="target",Za="trans-unit",Ya=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return zn(e,t),e.prototype.write=function(t,e){var r=new Ja,n=[];t.forEach(function(t){var e=new Ua(Za,{id:t.id,datatype:"html"});e.children.push(new Ha(8),new Ua($a,{},r.serialize(t.nodes)),new Ha(8),new Ua(Xa)),t.description&&e.children.push(new Ha(8),new Ua("note",{priority:"1",from:"description"},[new Ba(t.description)])),t.meaning&&e.children.push(new Ha(8),new Ua("note",{priority:"1",from:"meaning"},[new Ba(t.meaning)])),e.children.push(new Ha(6)),n.push(new Ha(6),e)});var o=new Ua("body",{},n.concat([new Ha(4)])),i=new Ua("file",{"source-language":e||Wa,datatype:"plaintext",original:"ng2.template"},[new Ha(4),o,new Ha(2)]),s=new Ua("xliff",{version:za,xmlns:Ga},[new Ha(2),i,new Ha]);return Jt([new Va({version:"1.0",encoding:"UTF-8"}),new Ha,s,new Ha])},e.prototype.load=function(t,e){var r=new tu,n=r.parse(t,e),o=n.locale,i=n.mlNodesByMsgId,s=n.errors,a={},u=new eu;if(Object.keys(i).forEach(function(t){var e=u.convert(i[t]),r=e.i18nNodes,n=e.errors;s.push.apply(s,n),a[t]=r}),s.length)throw new Error("xliff parse errors:\n"+s.join("\n"));return{locale:o,i18nNodesByMsgId:a}},e.prototype.digest=function(t){return Ot(t)},e}(Na),Ja=function(){function t(){}return t.prototype.visitText=function(t){return[new Ba(t.value)]},t.prototype.visitContainer=function(t){var e=this,r=[];return t.children.forEach(function(t){return r.push.apply(r,t.visit(e))}),r},t.prototype.visitIcu=function(){if(this._isInIcu)throw new Error("xliff does not support nested ICU messages");this._isInIcu=!0;var t=[];return this._isInIcu=!1,t},t.prototype.visitTagPlaceholder=function(t){var e=ee(t.tag),r=new Ua(Ka,{id:t.startName,ctype:e});if(t.isVoid)return[r];var n=new Ua(Ka,{id:t.closeName,ctype:e});return[r].concat(this.serialize(t.children),[n])},t.prototype.visitPlaceholder=function(t){return[new Ua(Ka,{id:t.name})]},t.prototype.visitIcuPlaceholder=function(t){return[new Ua(Ka,{id:t.name})]},t.prototype.serialize=function(t){var e=this;return this._isInIcu=!1,[].concat.apply([],t.map(function(t){return t.visit(e)}))},t}(),tu=function(){function t(){this._locale=null}return t.prototype.parse=function(t,e){this._unitMlNodes=[],this._mlNodesByMsgId={};var r=(new Oa).parse(t,e,!1);return this._errors=r.errors,it(this,r.rootNodes,null),{mlNodesByMsgId:this._mlNodesByMsgId,errors:this._errors,locale:this._locale}},t.prototype.visitElement=function(t){switch(t.name){case Za:this._unitMlNodes=null;var e=t.attrs.find(function(t){return"id"===t.name});if(e){var r=e.value;this._mlNodesByMsgId.hasOwnProperty(r)?this._addError(t,"Duplicated translations for msg "+r):(it(this,t.children,null),this._unitMlNodes?this._mlNodesByMsgId[r]=this._unitMlNodes:this._addError(t,"Message "+r+" misses a translation"))}else this._addError(t,"<"+Za+'> misses the "id" attribute');break;case $a:break;case Xa:this._unitMlNodes=t.children;break;case Qa:var n=t.attrs.find(function(t){return"target-language"===t.name});n&&(this._locale=n.value),it(this,t.children,null);break;default:it(this,t.children,null)}},t.prototype.visitAttribute=function(){},t.prototype.visitText=function(){},t.prototype.visitComment=function(){},t.prototype.visitExpansion=function(){},t.prototype.visitExpansionCase=function(){},t.prototype._addError=function(t,e){this._errors.push(new ga(t.sourceSpan,e))},t}(),eu=function(){function t(){}return t.prototype.convert=function(t){return this._errors=[],{i18nNodes:it(this,t),errors:this._errors}},t.prototype.visitText=function(t){return new ia(t.value,t.sourceSpan)},t.prototype.visitElement=function(t){if(t.name===Ka){var e=t.attrs.find(function(t){return"id"===t.name});if(e)return new ca("",e.value,t.sourceSpan);this._addError(t,"<"+Ka+'> misses the "id" attribute')}else this._addError(t,"Unexpected tag")},t.prototype.visitExpansion=function(){},t.prototype.visitExpansionCase=function(){},t.prototype.visitComment=function(){},t.prototype.visitAttribute=function(){},t.prototype._addError=function(t,e){this._errors.push(new ga(t.sourceSpan,e))},t}(),ru="messagebundle",nu="msg",ou="ph",iu="ex",su='<!ELEMENT messagebundle (msg)*>\n<!ATTLIST messagebundle class CDATA #IMPLIED>\n\n<!ELEMENT msg (#PCDATA|ph|source)*>\n<!ATTLIST msg id CDATA #IMPLIED>\n<!ATTLIST msg seq CDATA #IMPLIED>\n<!ATTLIST msg name CDATA #IMPLIED>\n<!ATTLIST msg desc CDATA #IMPLIED>\n<!ATTLIST msg meaning CDATA #IMPLIED>\n<!ATTLIST msg obsolete (obsolete) #IMPLIED>\n<!ATTLIST msg xml:space (default|preserve) "default">\n<!ATTLIST msg is_hidden CDATA #IMPLIED>\n\n<!ELEMENT source (#PCDATA)>\n\n<!ELEMENT ph (#PCDATA|ex)*>\n<!ATTLIST ph name CDATA #REQUIRED>\n\n<!ELEMENT ex (#PCDATA)>',au=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return zn(e,t),e.prototype.write=function(t){var e=new cu,r=new uu,n=new Ua(ru);return t.forEach(function(t){var e={id:t.id};t.description&&(e.desc=t.description),t.meaning&&(e.meaning=t.meaning),n.children.push(new Ha(2),new Ua(nu,e,r.serialize(t.nodes)))}),n.children.push(new Ha),Jt([new Va({version:"1.0",encoding:"UTF-8"
 }),new Ha,new Fa(ru,su),new Ha,e.addDefaultExamples(n),new Ha])},e.prototype.load=function(){throw new Error("Unsupported")},e.prototype.digest=function(t){return re(t)},e.prototype.createNameMapper=function(t){return new Da(t,ne)},e}(Na),uu=function(){function t(){}return t.prototype.visitText=function(t){return[new Ba(t.value)]},t.prototype.visitContainer=function(t){var e=this,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 Ba("{"+t.expressionPlaceholder+", "+t.type+", ")];return Object.keys(t.cases).forEach(function(n){r.push.apply(r,[new Ba(n+" {")].concat(t.cases[n].visit(e),[new Ba("} ")]))}),r.push(new Ba("}")),r},t.prototype.visitTagPlaceholder=function(t){var e=new Ua(iu,{},[new Ba("<"+t.tag+">")]),r=new Ua(ou,{name:t.startName},[e]);if(t.isVoid)return[r];var n=new Ua(iu,{},[new Ba("</"+t.tag+">")]),o=new Ua(ou,{name:t.closeName},[n]);return[r].concat(this.serialize(t.children),[o])},t.prototype.visitPlaceholder=function(t){return[new Ua(ou,{name:t.name})]},t.prototype.visitIcuPlaceholder=function(t){return[new Ua(ou,{name:t.name})]},t.prototype.serialize=function(t){var e=this;return[].concat.apply([],t.map(function(t){return t.visit(e)}))},t}(),cu=function(){function t(){}return t.prototype.addDefaultExamples=function(t){return t.visit(this),t},t.prototype.visitTag=function(t){var e=this;if(t.name===ou){if(!t.children||0==t.children.length){var r=new Ba(t.attrs.name||"...");t.children=[new Ua(iu,{},[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}(),lu="translationbundle",pu="translation",hu="ph",fu=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 du,n=r.parse(t,e),o=n.locale,i=n.msgIdToHtml,s=n.errors,a={},u=new yu;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};oe(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 re(t)},e.prototype.createNameMapper=function(t){return new Da(t,ne)},e}(Na),du=function(){function t(){this._locale=null}return t.prototype.parse=function(t,e){this._bundleDepth=0,this._msgIdToHtml={};var r=(new Oa).parse(t,e,!1);return this._errors=r.errors,it(this,r.rootNodes),{msgIdToHtml:this._msgIdToHtml,errors:this._errors,locale:this._locale}},t.prototype.visitElement=function(t){switch(t.name){case lu:this._bundleDepth++,this._bundleDepth>1&&this._addError(t,"<"+lu+"> elements can not be nested");var e=t.attrs.find(function(t){return"lang"===t.name});e&&(this._locale=e.value),it(this,t.children,null),this._bundleDepth--;break;case pu:var 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,"<"+pu+'> misses the "id" attribute');break;default:this._addError(t,"Unexpected tag")}},t.prototype.visitAttribute=function(){},t.prototype.visitText=function(){},t.prototype.visitComment=function(){},t.prototype.visitExpansion=function(){},t.prototype.visitExpansionCase=function(){},t.prototype._addError=function(t,e){this._errors.push(new ga(t.sourceSpan,e))},t}(),yu=function(){function t(){}return t.prototype.convert=function(t,e){var r=(new Oa).parse(t,e,!0);this._errors=r.errors;var n=this._errors.length>0||0==r.rootNodes.length?[]:it(this,r.rootNodes);return{i18nNodes:n,errors:this._errors}},t.prototype.visitText=function(t){return new ia(t.value,t.sourceSpan)},t.prototype.visitExpansion=function(t){var e={};return it(this,t.cases).forEach(function(r){e[r.value]=new sa(r.nodes,t.sourceSpan)}),new aa(t.switchValue,t.type,e,t.sourceSpan)},t.prototype.visitExpansionCase=function(t){return{value:t.value,nodes:it(this,t.expression)}},t.prototype.visitElement=function(t){if(t.name===hu){var e=t.attrs.find(function(t){return"name"===t.name});if(e)return new ca("",e.value,t.sourceSpan);this._addError(t,"<"+hu+'> misses the "name" attribute')}else this._addError(t,"Unexpected tag")},t.prototype.visitComment=function(){},t.prototype.visitAttribute=function(){},t.prototype._addError=function(t,e){this._errors.push(new ga(t.sourceSpan,e))},t}(),vu=function(t){function e(){return t.call(this,s)||this}return zn(e,t),e.prototype.parse=function(e,r,n,o){return void 0===n&&(n=!1),void 0===o&&(o=Ss),t.prototype.parse.call(this,e,r,n,o)},e}(ra);vu.decorators=[{type:F}],vu.ctorParameters=function(){return[]};var mu=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 gu(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}(),gu=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 vu).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 ga(t.sourceSpan,e))},t}(),_u=function(){function t(t,r,n,o,i){if(void 0===o&&(o=e.MissingTranslationStrategy.Warning),this._htmlParser=t,r){var s=ie(n);this._translationBundle=mu.load(r,"i18n",s,o,i)}}return t.prototype.parse=function(t,e,r,n){void 0===r&&(r=!1),void 0===n&&(n=Ss);var o=this._htmlParser.parse(t,e,r,n);return this._translationBundle?o.errors.length?new ea(o.rootNodes,o.errors):Et(o.rootNodes,this._translationBundle,n,[],{}):o},t}(),bu=se("core"),wu=function(){function t(){}return t}();wu.ANALYZE_FOR_ENTRY_COMPONENTS={name:"ANALYZE_FOR_ENTRY_COMPONENTS",moduleUrl:bu,runtime:e.ANALYZE_FOR_ENTRY_COMPONENTS},wu.ElementRef={name:"ElementRef",moduleUrl:bu,runtime:e.ElementRef},wu.NgModuleRef={name:"NgModuleRef",moduleUrl:bu,runtime:e.NgModuleRef},wu.ViewContainerRef={name:"ViewContainerRef",moduleUrl:bu,runtime:e.ViewContainerRef},wu.ChangeDetectorRef={name:"ChangeDetectorRef",moduleUrl:bu,runtime:e.ChangeDetectorRef},wu.QueryList={name:"QueryList",moduleUrl:bu,runtime:e.QueryList},wu.TemplateRef={name:"TemplateRef",moduleUrl:bu,runtime:e.TemplateRef},wu.CodegenComponentFactoryResolver={name:"ɵCodegenComponentFactoryResolver",moduleUrl:bu,runtime:e.ɵCodegenComponentFactoryResolver},wu.ComponentFactoryResolver={name:"ComponentFactoryResolver",moduleUrl:bu,runtime:e.ComponentFactoryResolver},wu.ComponentFactory={name:"ComponentFactory",moduleUrl:bu,runtime:e.ComponentFactory},wu.ComponentRef={name:"ComponentRef",moduleUrl:bu,runtime:e.ComponentRef},wu.NgModuleFactory={name:"NgModuleFactory",moduleUrl:bu,runtime:e.NgModuleFactory},wu.NgModuleInjector={name:"ɵNgModuleInjector",moduleUrl:bu,runtime:e.ɵNgModuleInjector},wu.RegisterModuleFactoryFn={name:"ɵregisterModuleFactory",moduleUrl:bu,runtime:e.ɵregisterModuleFactory},wu.Injector={name:"Injector",moduleUrl:bu,runtime:e.Injector},wu.ViewEncapsulation={name:"ViewEncapsulation",moduleUrl:bu,runtime:e.ViewEncapsulation},wu.ChangeDetectionStrategy={name:"ChangeDetectionStrategy",moduleUrl:bu,runtime:e.ChangeDetectionStrategy},wu.SecurityContext={name:"SecurityContext",moduleUrl:bu,runtime:e.SecurityContext},wu.LOCALE_ID={name:"LOCALE_ID",moduleUrl:bu,runtime:e.LOCALE_ID},wu.TRANSLATIONS_FORMAT={name:"TRANSLATIONS_FORMAT",moduleUrl:bu,runtime:e.TRANSLATIONS_FORMAT},wu.inlineInterpolate={name:"ɵinlineInterpolate",moduleUrl:bu,runtime:e.ɵinlineInterpolate},wu.interpolate={name:"ɵinterpolate",moduleUrl:bu,runtime:e.ɵinterpolate},wu.EMPTY_ARRAY={name:"ɵEMPTY_ARRAY",moduleUrl:bu,runtime:e.ɵEMPTY_ARRAY},wu.EMPTY_MAP={name:"ɵEMPTY_MAP",moduleUrl:bu,runtime:e.ɵEMPTY_MAP},wu.Renderer={name:"Renderer",moduleUrl:bu,runtime:e.Renderer},wu.viewDef={name:"ɵvid",moduleUrl:bu,runtime:e.ɵvid},wu.elementDef={name:"ɵeld",moduleUrl:bu,runtime:e.ɵeld},wu.anchorDef={name:"ɵand",moduleUrl:bu,runtime:e.ɵand},wu.textDef={name:"ɵted",moduleUrl:bu,runtime:e.ɵted},wu.directiveDef={name:"ɵdid",moduleUrl:bu,runtime:e.ɵdid},wu.providerDef={name:"ɵprd",moduleUrl:bu,runtime:e.ɵprd},wu.queryDef={name:"ɵqud",moduleUrl:bu,runtime:e.ɵqud},wu.pureArrayDef={name:"ɵpad",moduleUrl:bu,runtime:e.ɵpad},wu.pureObjectDef={name:"ɵpod",moduleUrl:bu,runtime:e.ɵpod},wu.purePipeDef={name:"ɵppd",moduleUrl:bu,runtime:e.ɵppd},wu.pipeDef={name:"ɵpid",moduleUrl:bu,runtime:e.ɵpid},wu.nodeValue={name:"ɵnov",moduleUrl:bu,runtime:e.ɵnov},wu.ngContentDef={name:"ɵncd",moduleUrl:bu,runtime:e.ɵncd},wu.unwrapValue={name:"ɵunv",moduleUrl:bu,runtime:e.ɵunv},wu.createRendererType2={name:"ɵcrt",moduleUrl:bu,runtime:e.ɵcrt},wu.RendererType2={name:"RendererType2",moduleUrl:bu,runtime:null},wu.ViewDefinition={name:"ɵViewDefinition",moduleUrl:bu,runtime:null},wu.createComponentFactory={name:"ɵccf",moduleUrl:bu,runtime:e.ɵccf};var Cu=["zero","one","two","few","many","other"],Eu=function(){function t(t,e,r){this.nodes=t,this.expanded=e,this.errors=r}return t}(),Su=function(t){function e(e,r){return t.call(this,e,r)||this}return zn(e,t),e}(Us),xu=function(){function t(){this.isExpanded=!1,this.errors=[]}return t.prototype.visitElement=function(t){return new Gs(t.name,t.attrs,it(this,t.children),t.sourceSpan,t.startSourceSpan,t.endSourceSpan)},t.prototype.visitAttribute=function(t){return t},t.prototype.visitText=function(t){return t},t.prototype.visitComment=function(t){return t},t.prototype.visitExpansion=function(t){return this.isExpanded=!0,"plural"==t.type?he(t,this.errors):fe(t,this.errors)},t.prototype.visitExpansionCase=function(){throw new Error("Should not be reached")},t}(),Tu=function(t){function e(e,r){return t.call(this,r,e)||this}return zn(e,t),e}(Us),Pu=function(){function t(t){var e=this;this.component=t,this.errors=[],this.viewQueries=ge(t),this.viewProviders=new Map,t.viewProviders.forEach(function(t){null==e.viewProviders.get(T(t.token))&&e.viewProviders.set(T(t.token),!0)})}return t}(),Au=function(){function t(t,e,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=ve(l,u,t.errors),this._contentQueries=_e(a,l),Array.from(this._allProviders.values()).forEach(function(t){c._addQueryReadsTo(t.token,t.token,c._queriedTokens)}),s){var p=le(wu.TemplateRef);this._addQueryReadsTo(p,p,this._queriedTokens)}i.forEach(function(t){var e=t.value||le(wu.ElementRef);c._addQueryReadsTo({value:t.name},e,c._queriedTokens)}),this._queriedTokens.get(ae(wu.ViewContainerRef))&&(this._hasViewContainer=!0),Array.from(this._allProviders.values()).forEach(function(t){var e=t.eager||c._queriedTokens.get(T(t.token));e&&c._getOrCreateLocalProvider(t.providerType,t.token,!0)})}return t.prototype.afterElement=function(){var t=this;Array.from(this._allProviders.values()).forEach(function(e){t._getOrCreateLocalProvider(e.providerType,e.token,!1)})},Object.defineProperty(t.prototype,"transformProviders",{get:function(){return Array.from(this._transformedProviders.values())},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"transformedDirectiveAsts",{get:function(){var t=this.transformProviders.map(function(t){return t.token.identifier}),e=this._directiveAsts.slice();return e.sort(function(e,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=T(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(T(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(T(t)),e&&r.push.apply(r,e),r},t.prototype._getOrCreateLocalProvider=function(t,e,r){var n=this,o=this._allProviders.get(T(e));if(!o||(t===oo.Directive||t===oo.PublicService)&&o.providerType===oo.PrivateService||(t===oo.PrivateService||t===oo.PublicService)&&o.providerType===oo.Builtin)return null;var i=this._transformedProviders.get(T(e));if(i)return i;if(null!=this._seenProviders.get(T(e)))return this.viewContext.errors.push(new Tu("Cannot instantiate cyclic dependency! "+x(e),this._sourceSpan)),null;this._seenProviders.set(T(e),!0);var s=o.providers.map(function(t){var e,i=t.useValue,s=t.useExisting;if(null!=t.useExisting){var a=n._getDependency(o.providerType,{token:t.useExisting},r);null!=a.token?s=a.token:(s=null,i=a.value)}else if(t.useFactory){var u=t.deps||t.useFactory.diDeps;e=u.map(function(t){return n._getDependency(o.providerType,t,r)})}else if(t.useClass){var u=t.deps||t.useClass.diDeps;e=u.map(function(t){return n._getDependency(o.providerType,t,r)})}return de(t,{useExisting:s,useValue:i,deps:e})});return i=ye(o,{eager:r,providers:s}),this._transformedProviders.set(T(e),i),i},t.prototype._getLocalDependency=function(t,e,r){if(void 0===r&&(r=null),e.isAttribute){var n=this._attrs[e.token.value];return{isValue:!0,value:null==n?null:n}}if(null!=e.token){if(t===oo.Directive||t===oo.Component){if(T(e.token)===ae(wu.Renderer)||T(e.token)===ae(wu.ElementRef)||T(e.token)===ae(wu.ChangeDetectorRef)||T(e.token)===ae(wu.TemplateRef))return e;T(e.token)===ae(wu.ViewContainerRef)&&(this._hasViewContainer=!0)}if(T(e.token)===ae(wu.Injector))return e;if(null!=this._getOrCreateLocalProvider(t,e.token,r))return e}return null},t.prototype._getDependency=function(t,e,r){void 0===r&&(r=null);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(oo.PublicService,e,o)}i||(i=!e.isHost||this.viewContext.component.isHost||this.viewContext.component.type.reference===T(e.token)||null!=this.viewContext.viewProviders.get(T(e.token))?e:e.isOptional?i={isValue:!0,value:null}:null)}return i||this.viewContext.errors.push(new Tu("No provider for "+x(e.token),this._sourceSpan)),i},t}(),Ou=function(){function t(t,e,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};me([e],oo.PublicService,!0,r,n._errors,n._allProviders)}),me(t.transitiveModule.providers.map(function(t){return t.provider}).concat(e),oo.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(T(t));if(!n)return null;var o=this._transformedProviders.get(T(t));if(o)return o;if(null!=this._seenProviders.get(T(t)))return this._errors.push(new Tu("Cannot instantiate cyclic dependency! "+x(t),n.sourceSpan)),null;this._seenProviders.set(T(t),!0);var i=n.providers.map(function(t){var o,i=t.useValue,s=t.useExisting;if(null!=t.useExisting){var a=r._getDependency({token:t.useExisting},e,n.sourceSpan);null!=a.token?s=a.token:(s=null,i=a.value)}else if(t.useFactory){var u=t.deps||t.useFactory.diDeps;o=u.map(function(t){return r._getDependency(t,e,n.sourceSpan)})}else if(t.useClass){var u=t.deps||t.useClass.diDeps;o=u.map(function(t){return r._getDependency(t,e,n.sourceSpan)})}return de(t,{useExisting:s,useValue:i,deps:o})});return o=ye(n,{eager:e,providers:i}),this._transformedProviders.set(T(t),o),o},t.prototype._getDependency=function(t,e,r){void 0===e&&(e=null);var n=!1;t.isSkipSelf||null==t.token||(T(t.token)===ae(wu.Injector)||T(t.token)===ae(wu.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 Tu("No provider for "+x(t.token),r))),o},t}(),Mu=function(){function t(){}return t.prototype.hasProperty=function(){},t.prototype.hasElement=function(){},t.prototype.securityContext=function(){},t.prototype.allKnownElementNames=function(){},t.prototype.getMappedPropName=function(){},t.prototype.getDefaultComponentElementName=function(){},t.prototype.validateProperty=function(){},t.prototype.validateAttribute=function(){},t.prototype.normalizeAnimationStyleProperty=function(){},t.prototype.normalizeAnimationStyleValue=function(){},t}(),Ru=function(){function t(t,e){this.style=t,this.styleUrls=e}return t}(),ku=/@import\s+(?:url\()?\s*(?:(?:['"]([^'"]*))|([^;\)\s]*))[^;]*;?/g,Iu=/\/\*.+?\*\//g,Nu=/^([^:\/?#]+):/,Du=".",ju="attr",Lu="class",Vu="style",Fu="animate-",Uu={};Uu.DEFAULT=0,Uu.LITERAL_ATTR=1,Uu.ANIMATION=2,Uu[Uu.DEFAULT]="DEFAULT",Uu[Uu.LITERAL_ATTR]="LITERAL_ATTR",Uu[Uu.ANIMATION]="ANIMATION";var Bu=function(){function t(t,e,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===Uu.LITERAL_ATTR},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isAnimation",{get:function(){return this.type===Uu.ANIMATION},enumerable:!0,configurable:!0}),t}(),Hu=function(){function t(t,e,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)})}},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}},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 Yn(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,Fs.WARNING)}),i.templateBindings}catch(s){return this._reportError(""+s,r),[]}},t.prototype.parseLiteralAttr=function(t,e,r,n,o){Ee(t)?(t=t.substring(1),e&&this._reportError('Assigning animation triggers via @prop="exp" attributes with an expression is invalid. Use property bindings (e.g. [@prop]="exp") or use an attribute without a value (e.g. @prop) instead.',r,Fs.ERROR),this._parseAnimation(t,e,r,n,o)):o.push(new Bu(t,this._exprParser.wrapLiteralPrimitive(e,""),Uu.LITERAL_ATTR,r))},t.prototype.parsePropertyBinding=function(t,e,r,n,o,i){var s=!1;t.startsWith(Fu)?(s=!0,t=t.substring(Fu.length)):Ee(t)&&(s=!0,t=t.substring(1)),s?this._parseAnimation(t,e,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 Bu(t,e,Uu.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 Bu(t,i,Uu.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 $n(r.name,so.Animation,e.SecurityContext.NONE,r.expression,null,r.sourceSpan);var n,o,s=null,a=null,u=r.name.split(Du);if(u.length>1)if(u[0]==ju){a=u[1],this._validatePropertyOrAttributeName(a,r.sourceSpan,!0),o=Se(this._schemaRegistry,t,a,!0);var c=a.indexOf(":");if(c>-1){var l=a.substring(0,c),p=a.substring(c+1);a=i(l,p)}n=so.Attribute}else u[0]==Lu?(a=u[1],n=so.Class,o=[e.SecurityContext.NONE]):u[0]==Vu&&(s=u.length>2?u[2]:null,a=u[1],n=so.Style,o=[e.SecurityContext.STYLE]);return null===a&&(a=this._schemaRegistry.getMappedPropName(r.name),o=Se(this._schemaRegistry,t,a,!1),n=so.Property,this._validatePropertyOrAttributeName(a,r.sourceSpan,!1)),new $n(a,n,o[0],r.expression,s,r.sourceSpan)},t.prototype.parseEvent=function(t,e,r,n,o){Ee(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=c(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 Xn(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=u(t,[null,t]),s=i[0],a=i[1],c=this._parseAction(e,r);n.push([t,c.source]),o.push(new Xn(a,s,null,c,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 Yo?(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=Fs.ERROR),this._targetErrors.push(new Us(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 qu;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 Vs(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,Fs.ERROR)},t}(),qu=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}(_i),zu="select",Gu="ng-content",Wu="link",Ku="rel",Qu="href",$u="stylesheet",Xu="style",Zu="script",Yu="ngNonBindable",Ju="ngProjectAs",tc={};tc.NG_CONTENT=0,tc.STYLE=1,tc.STYLESHEET=2,tc.SCRIPT=3,tc.OTHER=4,tc[tc.NG_CONTENT]="NG_CONTENT",tc[tc.STYLE]="STYLE",tc[tc.STYLESHEET]="STYLESHEET",tc[tc.SCRIPT]="SCRIPT",tc[tc.OTHER]="OTHER";var ec=function(){function t(t,e,r,n,o){this.type=t,this.selectAttr=e,this.hrefAttr=r,this.nonBindable=n,this.projectAs=o}return t}(),rc=/^(?:(?:(?:(bind-)|(let-)|(ref-|#)|(on-)|(bindon-)|(@))(.+))|\[\(([^\)]+)\)\]|\[([^\]]+)\]|\(([^\)]+)\))$/,nc=1,oc=2,ic=3,sc=4,ac=5,uc=6,cc=7,lc=8,pc=9,hc=10,fc="ng-template",dc="template",yc="template",vc="*",mc="class",gc=vo.parse("*")[0],_c="The <template> element is deprecated. Use <ng-template> instead",bc="The template attribute is deprecated. Use an ng-template element instead.",wc={},Cc=new e.InjectionToken("TemplateTransforms"),Ec=function(t){function e(e,r,n){return t.call(this,r,e,n)||this}return zn(e,t),e}(Us),Sc=function(){function t(t,e,r){this.templateAst=t,this.usedPipes=e,this.errors=r}return t}(),xc=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===Fs.WARNING}).filter(Pe([bc,_c])),u=s.errors.filter(function(t){return t.level===Fs.ERROR});if(a.length>0&&this._console.warn("Template parse warnings:\n"+a.join("\n")),u.length>0){var c=u.join("\n");throw h("Template parse errors:\n"+c)}return{template:s.templateAst,pipes:s.usedPipes}},t.prototype.tryParse=function(t,e,r,n,o,i){return this.tryParseHtml(this.expandHtml(this._htmlParser.parse(e,i,!0,this.getInterpolationConfig(t))),t,e,r,n,o,i)},t.prototype.tryParseHtml=function(t,e,n,o,i,s){var a,u=t.errors,c=[];if(t.rootNodes.length>0){var l=Re(o),p=Re(i),h=new Pu(e),f=void 0;e.template&&e.template.interpolation&&(f={start:e.template.interpolation[0],end:e.template.interpolation[1]});var d=new Hu(this._exprParser,f,this._schemaRegistry,p,u),y=new Tc(this._config,h,l,d,this._schemaRegistry,s,u);a=it(y,t.rootNodes,Mc),u.push.apply(u,h.errors),c.push.apply(c,d.getUsedPipes())}else a=[];return this._assertNoReferenceDuplicationOnTemplate(a,u),u.length>0?new Sc(a,c,u):(this.transforms&&this.transforms.forEach(function(t){a=r(t,a)}),new Sc(a,c,u))},t.prototype.expandHtml=function(t,e){void 0===e&&(e=!1);var r=t.errors;if(0==r.length||e){var n=pe(t.rootNodes);r.push.apply(r,n.errors),t=new ea(n.nodes,r)}return t},t.prototype.getInterpolationConfig=function(t){return t.template?Es.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 Ec('Reference "#'+n+'" is defined several times',t.sourceSpan,Fs.ERROR);e.push(o)}})})},t}();xc.decorators=[{type:F}],xc.ctorParameters=function(){return[{type:Ko},{type:Is},{type:Mu},{type:_u},{type:e.ɵConsole},{type:Array,decorators:[{type:e.Optional},{type:e.Inject,args:[Cc]}]}]};var Tc=function(){function t(t,e,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 mo,this.directivesIndex=new Map,this.ngContentCount=0,this.contentQueryStartId=e.component.viewQueries.length+1,r.forEach(function(t,e){var r=vo.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(gc),n=this._bindingParser.parseInterpolation(t.value,t.sourceSpan);return n?new Kn(n,r,t.sourceSpan):new Wn(t.value,r,t.sourceSpan)},t.prototype.visitAttribute=function(t){return new Qn(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=xe(t);if(i.type===tc.SCRIPT||i.type===tc.STYLE)return null;if(i.type===tc.STYLESHEET&&we(i.hrefAttr))return null;var s=[],a=[],u=[],c=[],l=[],p=[],h=[],f=[],d=!1,y=[],v=Ie(t,this.config.enableLegacyTemplate,function(t,e){return r._reportError(t,e,Fs.WARNING)});t.attrs.forEach(function(t){var e,n,o=r._parseAttr(v,t,s,a,l,u,c),i=r._normalizeAttributeName(t.name);r.config.enableLegacyTemplate&&i==yc?(r._reportError(bc,t.sourceSpan,Fs.WARNING),
 e=t.value):i.startsWith(vc)&&(e=t.value,n=i.substring(vc.length)+":");var m=null!=e;m&&(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||m||(y.push(r.visitAttribute(t,null)),s.push([t.name,t.value]))});var m=Oe(o,s),g=this._parseDirectives(this.selectorMatcher,m),_=g.directives,b=g.matchElement,w=[],C=new Set,E=this._createDirectiveAsts(v,t.name,_,a,u,t.sourceSpan,w,C),S=this._createElementPropertyAsts(t.name,a,C),x=e.isTemplateElement||d,T=new Au(this.providerViewContext,e.providerContext,x,E,y,w,v,n,t.sourceSpan),P=it(i.nonBindable?Rc:this,t.children,Oc.create(v,E,v?e.providerContext:T));T.afterElement();var A,O=null!=i.projectAs?vo.parse(i.projectAs)[0]:m,M=e.findNgContentIndex(O);if(i.type===tc.NG_CONTENT)t.children&&!t.children.every(Me)&&this._reportError("<ng-content> element cannot have content.",t.sourceSpan),A=new io(this.ngContentCount++,d?null:M,t.sourceSpan);else if(v)this._assertAllEventsPublishedByDirectives(E,l),this._assertNoComponentsNorElementBindingsOnTemplate(E,S,t.sourceSpan),A=new to(y,l,w,c,T.transformedDirectiveAsts,T.transformProviders,T.transformedHasViewContainer,T.queryMatches,P,d?null:M,t.sourceSpan);else{this._assertElementExists(b,t),this._assertOnlyOneComponent(E,t.sourceSpan);var R=d?null:e.findNgContentIndex(O);A=new Jn(o,y,S,l,w,T.transformedDirectiveAsts,T.transformProviders,T.transformedHasViewContainer,T.queryMatches,P,d?null:R,t.sourceSpan,t.endSourceSpan)}if(d){var k=this.contentQueryStartId,I=Oe(dc,h),N=this._parseDirectives(this.selectorMatcher,I).directives,D=new Set,j=this._createDirectiveAsts(!0,t.name,N,p,[],t.sourceSpan,[],D),L=this._createElementPropertyAsts(t.name,p,D);this._assertNoComponentsNorElementBindingsOnTemplate(j,L,t.sourceSpan);var V=new Au(this.providerViewContext,e.providerContext,e.isTemplateElement,j,[],[],!0,k,t.sourceSpan);V.afterElement(),A=new to([],[],[],f,V.transformedDirectiveAsts,V.transformProviders,V.transformedHasViewContainer,V.queryMatches,[A],M,t.sourceSpan)}return A},t.prototype._parseAttr=function(t,e,r,n,o,i,s){var a=this._normalizeAttributeName(e.name),u=e.value,c=e.sourceSpan,l=a.match(rc),p=!1;if(null!==l)if(p=!0,null!=l[nc])this._bindingParser.parsePropertyBinding(l[cc],u,!1,c,r,n);else if(l[oc])if(t){var h=l[cc];this._parseVariable(h,u,c,s)}else this._reportError('"let-" is only supported on template elements.',c);else if(l[ic]){var h=l[cc];this._parseReference(h,u,c,i)}else l[sc]?this._bindingParser.parseEvent(l[cc],u,c,r,o):l[ac]?(this._bindingParser.parsePropertyBinding(l[cc],u,!1,c,r,n),this._parseAssignmentEvent(l[cc],u,c,r,o)):l[uc]?this._bindingParser.parseLiteralAttr(a,u,c,r,n):l[lc]?(this._bindingParser.parsePropertyBinding(l[lc],u,!1,c,r,n),this._parseAssignmentEvent(l[lc],u,c,r,o)):l[pc]?this._bindingParser.parsePropertyBinding(l[pc],u,!1,c,r,n):l[hc]&&this._bindingParser.parseEvent(l[hc],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 Yn(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 Ac(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 Vs(i.start,i.end,"Directive "+g(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 Zn(e.name,ce(t.type),e.sourceSpan)),c.add(e.name))});var d=u.contentQueryStartId;return u.contentQueryStartId+=t.queries.length,new ro(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=le(wu.TemplateRef)),s.push(new Zn(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),ke(s.expression)||r.push(new eo(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 g(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===so.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!ke(e.value)})},t.prototype._reportError=function(t,e,r){void 0===r&&(r=Fs.ERROR),this._targetErrors.push(new Us(e,t,r))},t}(),Pc=function(){function t(){}return t.prototype.visitElement=function(t,e){var r=xe(t);if(r.type===tc.SCRIPT||r.type===tc.STYLE||r.type===tc.STYLESHEET)return null;var n=t.attrs.map(function(t){return[t.name,t.value]}),o=Oe(t.name,n),i=e.findNgContentIndex(o),s=it(this,t.children,Mc);return new Jn(t.name,it(this,t.attrs),[],[],[],[],[],!1,[],s,i,t.sourceSpan,t.endSourceSpan)},t.prototype.visitComment=function(){return null},t.prototype.visitAttribute=function(t){return new Qn(t.name,t.value,t.sourceSpan)},t.prototype.visitText=function(t,e){var r=e.findNgContentIndex(gc);return new Wn(t.value,r,t.sourceSpan)},t.prototype.visitExpansion=function(t){return t},t.prototype.visitExpansionCase=function(t){return t},t}(),Ac=function(){function t(t,e,r){this.name=t,this.value=e,this.sourceSpan=r}return t}(),Oc=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 mo,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(vo.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}(),Mc=new Oc(!0,new mo,null,null),Rc=new Pc,kc=function(){function t(){}return t.prototype.get=function(){return null},t}(),Ic={provide:e.PACKAGE_ROOT_URL,useValue:"/"},Nc=function(){function t(t){void 0===t&&(t=null),this._packagePrefix=t}return t.prototype.resolve=function(t,e){var r=e;null!=t&&t.length>0&&(r=Be(t,r));var n=Ve(r),o=this._packagePrefix;if(null!=o&&null!=n&&"package"==n[jc.Scheme]){var i=n[jc.Path];return o=o.replace(/\/+$/,""),i=i.replace(/^\/+/,""),o+"/"+i}return r},t}();Nc.decorators=[{type:F}],Nc.ctorParameters=function(){return[{type:void 0,decorators:[{type:e.Inject,args:[e.PACKAGE_ROOT_URL]}]}]};var Dc=new RegExp("^(?:([^:/?#.]+):)?(?://(?:([^/?#]*)@)?([\\w\\d\\-\\u0100-\\uffff.%]*)(?::([0-9]+))?)?([^?#]+)?(?:\\?([^#]*))?(?:#(.*))?$"),jc={};jc.Scheme=1,jc.UserInfo=2,jc.Domain=3,jc.Port=4,jc.Path=5,jc.QueryData=6,jc.Fragment=7,jc[jc.Scheme]="Scheme",jc[jc.UserInfo]="UserInfo",jc[jc.Domain]="Domain",jc[jc.Port]="Port",jc[jc.Path]="Path",jc[jc.QueryData]="QueryData",jc[jc.Fragment]="Fragment";var Lc=function(){function t(t,e,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;t.isComponent&&(this._resourceLoaderCache["delete"](t.template.templateUrl),t.template.externalStylesheets.forEach(function(t){e._resourceLoaderCache["delete"](t.moduleUrl)}))},t.prototype._fetch=function(t){var e=this._resourceLoaderCache.get(t);return e||(e=this._resourceLoader.get(t),this._resourceLoaderCache.set(t,e)),e},t.prototype.normalizeTemplate=function(t){var r,n=this,o=null;if(null!=t.template){if(null!=t.templateUrl)throw h("'"+e.ɵstringify(t.componentType)+"' component cannot define both template and templateUrl");if("string"!=typeof t.template)throw h("The template specified for component "+e.ɵstringify(t.componentType)+" is not a string");o=this.normalizeTemplateSync(t),r=Promise.resolve(o)}else{if(!t.templateUrl)throw h("No template specified for component "+e.ɵstringify(t.componentType));if("string"!=typeof t.templateUrl)throw h("The templateUrl specified for component "+e.ɵstringify(t.componentType)+" is not a string");r=this.normalizeTemplateAsync(t)}return o&&0===o.styleUrls.length?new Eo(o):new Eo(null,r.then(function(t){return n.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=Es.fromArray(t.interpolation),s=this._htmlParser.parse(r,R({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 h("Template parse errors:\n"+a)}var u=this.normalizeStylesheet(new Uo({styles:t.styles,styleUrls:t.styleUrls,moduleUrl:t.moduleUrl})),c=new Vc;it(c,s.rootNodes);var l=this.normalizeStylesheet(new Uo({styles:c.styles,styleUrls:c.styleUrls,moduleUrl:n})),p=t.encapsulation;null==p&&(p=this._config.defaultEncapsulation);var f=u.styles.concat(l.styles),d=u.styleUrls.concat(l.styleUrls);return p===e.ViewEncapsulation.Emulated&&0===f.length&&0===d.length&&(p=e.ViewEncapsulation.None),new Bo({encapsulation:p,template:r,templateUrl:n,styles:f,styleUrls:d,ngContentSelectors:c.ngContentSelectors,animations:t.animations,interpolation:t.interpolation,isInline:o})},t.prototype.normalizeExternalStylesheets=function(t){return this._loadMissingExternalStylesheets(t.styleUrls).then(function(e){return new Bo({encapsulation:t.encapsulation,template:t.template,templateUrl:t.templateUrl,styles:t.styles,styleUrls:t.styleUrls,externalStylesheets:e,ngContentSelectors:t.ngContentSelectors,animations:t.animations,interpolation:t.interpolation,isInline:t.isInline})})},t.prototype._loadMissingExternalStylesheets=function(t,e){var 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 Uo({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.styleUrls.filter(we).map(function(r){return e._urlResolver.resolve(t.moduleUrl,r)}),n=t.styles.map(function(n){var o=Ce(e._urlResolver,t.moduleUrl,n);return r.push.apply(r,o.styleUrls),o.style});return new Uo({styles:n,styleUrls:r,moduleUrl:t.moduleUrl})},t}();Lc.decorators=[{type:F}],Lc.ctorParameters=function(){return[{type:kc},{type:Nc},{type:vu},{type:Ko}]};var Vc=function(){function t(){this.ngContentSelectors=[],this.styles=[],this.styleUrls=[],this.ngNonBindableStackCount=0}return t.prototype.visitElement=function(t){var e=xe(t);switch(e.type){case tc.NG_CONTENT:0===this.ngNonBindableStackCount&&this.ngContentSelectors.push(e.selectAttr);break;case tc.STYLE:var r="";t.children.forEach(function(t){t instanceof Bs&&(r+=t.value)}),this.styles.push(r);break;case tc.STYLESHEET:this.styleUrls.push(e.hrefAttr)}return e.nonBindable&&this.ngNonBindableStackCount++,it(this,t.children),e.nonBindable&&this.ngNonBindableStackCount--,null},t.prototype.visitExpansion=function(t){it(this,t.cases)},t.prototype.visitExpansionCase=function(t){it(this,t.expression)},t.prototype.visitComment=function(){return null},t.prototype.visitAttribute=function(){return null},t.prototype.visitText=function(){return null},t}(),Fc=void 0||Object.assign||function(t){for(var e,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},Uc=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(He)},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,He);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._extractPublicName=function(t){return u(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?Fc({},t.host,o):o,c=t.queries?Fc({},t.queries,i):i;return t instanceof e.Component?new e.Component({selector:t.selector,inputs:s,outputs:a,host:u,exportAs:t.exportAs,moduleId:t.moduleId,queries:c,changeDetection:t.changeDetection,providers:t.providers,viewProviders:t.viewProviders,entryComponents:t.entryComponents,template:t.template,templateUrl:t.templateUrl,styles:t.styles,styleUrls:t.styleUrls,encapsulation:t.encapsulation,animations:t.animations,interpolation:t.interpolation}):new e.Directive({selector:t.selector,inputs:s,outputs:a,host:u,exportAs:t.exportAs,queries:c,providers:t.providers})},t}();Uc.decorators=[{type:F}],Uc.ctorParameters=function(){return[{type:e.ɵReflectorReader}]};var Bc=/(\.ts|\.d\.ts|\.js|\.jsx|\.tsx)$/,Hc=/\.ngfactory\./,qc=function(){function t(t){void 0===t&&(t=e.ɵreflector),this._reflector=t}return t.prototype.isNgModule=function(t){return this._reflector.annotations(t).some(Ze)},t.prototype.resolve=function(t,r){void 0===r&&(r=!0);var n=qe(this._reflector.annotations(t),Ze);if(n)return n;if(r)throw new Error("No NgModule metadata found for '"+e.ɵstringify(t)+"'.");return null},t}();qc.decorators=[{type:F}],qc.ctorParameters=function(){return[{type:e.ɵReflectorReader}]};var zc=function(){function t(t){void 0===t&&(t=e.ɵreflector),this._reflector=t}return t.prototype.isPipe=function(t){var r=this._reflector.annotations(e.resolveForwardRef(t));return r&&r.some(Ye)},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,Ye);if(o)return o}if(r)throw new Error("No Pipe decorator found on "+e.ɵstringify(t));return null},t}();zc.decorators=[{type:F}],zc.ctorParameters=function(){return[{type:e.ɵReflectorReader}]};var Gc=function(){function t(){}return t.prototype.isLibraryFile=function(){return!1},t.prototype.getLibraryFileName=function(){return null},t.prototype.resolveSummary=function(){return null},t.prototype.getSymbolsOf=function(){return[]},t.prototype.getImportAs=function(t){return t},t}();Gc.decorators=[{type:F}],Gc.ctorParameters=function(){return[]};var Wc=new e.InjectionToken("ErrorCollector"),Kc=function(){function t(t,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 ao?this._staticSymbolCache.get(ze(t.filePath),e):this._createProxyClass(t,e)},t.prototype.getComponentViewClass=function(t){return this.getGeneratedClass(t,b(t,0))},t.prototype.getHostComponentViewClass=function(t){return this.getGeneratedClass(t,C(t))},t.prototype.getHostComponentType=function(t){var e=g({reference:t})+"_Host";if(t instanceof ao)return this._staticSymbolCache.get(t.filePath,e);var r=function(){};return r.overriddenName=e,r},t.prototype.getRendererType=function(t){return t instanceof ao?this._staticSymbolCache.get(ze(t.filePath),w(t)):{}},t.prototype.getComponentFactory=function(t,r,n,o){if(r instanceof ao)return this._staticSymbolCache.get(ze(r.filePath),S(r));var i=this.getHostComponentViewClass(r);return e.ɵccf(t,r,i,n,o,[])},t.prototype.initComponentFactory=function(t,e){t instanceof ao||(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)}return r&&r.summaryKind===e?r:null},t.prototype._loadDirectiveMetadata=function(t,r,n){var o=this;if(!this._directiveCache.has(r)){r=e.resolveForwardRef(r);var i=this.getNonNormalizedDirectiveMetadata(r),s=i.annotation,a=i.metadata,u=function(t){var e=new Ho({type:a.type,isComponent:a.isComponent,selector:a.selector,exportAs:a.exportAs,changeDetection:a.changeDetection,inputs:a.inputs,outputs:a.outputs,hostListeners:a.hostListeners,hostProperties:a.hostProperties,hostAttributes:a.hostAttributes,providers:a.providers,viewProviders:a.viewProviders,queries:a.queries,viewQueries:a.viewQueries,entryComponents:a.entryComponents,componentViewType:a.componentViewType,rendererType:a.rendererType,componentFactory:a.componentFactory,template:t});return t&&o.initComponentFactory(a.componentFactory,t.ngContentSelectors),o._directiveCache.set(r,e),o._summaryCache.set(r,e.toSummary()),e};if(a.isComponent){var c=this._directiveNormalizer.normalizeTemplate({ngModuleType:t,componentType:r,moduleUrl:nr(this._reflector,r,s),encapsulation:a.template.encapsulation,template:a.template.template,templateUrl:a.template.templateUrl,styles:a.template.styles,styleUrls:a.template.styleUrls,animations:a.template.animations,interpolation:a.template.interpolation});return c.syncResult?(u(c.syncResult),null):n?(this._reportError(sr(r),r),null):c.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;if(o instanceof e.Component){U("styles",o.styles),U("styleUrls",o.styleUrls),B("interpolation",o.interpolation);var s=o.animations;i=new Bo({encapsulation:o.encapsulation,template:o.template,templateUrl:o.templateUrl,styles:o.styles,styleUrls:o.styleUrls,animations:s,interpolation:o.interpolation,isInline:!!o.template})}var a=null,u=[],c=[],l=o.selector;o instanceof e.Component?(a=o.changeDetection,o.viewProviders&&(u=this._getProvidersMetadata(o.viewProviders,c,'viewProviders for "'+ir(t)+'"',[],t)),o.entryComponents&&(c=er(o.entryComponents).map(function(t){return r._getEntryComponentMetadata(t)}).concat(c)),l||(l=this._schemaRegistry.getDefaultComponentElementName())):l||(this._reportError(h("Directive "+ir(t)+" has no selector, please add it!"),t),l="error");var p=[];null!=o.providers&&(p=this._getProvidersMetadata(o.providers,c,'providers for "'+ir(t)+'"',[],t));var f=[],d=[];null!=o.queries&&(f=this._getQueriesMetadata(o.queries,!1,t),d=this._getQueriesMetadata(o.queries,!0,t));var y=Ho.create({selector:l,exportAs:o.exportAs,isComponent:!!i,type:this._getTypeMetadata(t),template:i,changeDetection:a,inputs:o.inputs,outputs:o.outputs,host:o.host,providers:p,viewProviders:u,queries:f,viewQueries:d,entryComponents:c,componentViewType:i?this.getComponentViewClass(t):void 0,rendererType:i?this.getRendererType(t):void 0,componentFactory:void 0});return i&&(y.componentFactory=this.getComponentFactory(l,t,y.inputs,y.outputs)),n={metadata:y,annotation:o},this._nonNormalizedDirectiveCache.set(t,n),n},t.prototype.getDirectiveMetadata=function(t){var e=this._directiveCache.get(t);return e||this._reportError(h("Illegal state: getDirectiveMetadata can only be called after loadNgModuleDirectiveAndPipeMetadata for a module that declares it. Directive "+ir(t)+"."),t),e},t.prototype.getDirectiveSummary=function(t){var e=this._loadSummary(t,Fo.Directive);return e||this._reportError(h("Illegal state: Could not load the summary for directive "+ir(t)+"."),t),e},t.prototype.isDirective=function(t){return this._directiveResolver.isDirective(t)},t.prototype.isPipe=function(t){return this._pipeResolver.isPipe(t)},t.prototype.getNgModuleSummary=function(t){var e=this._loadSummary(t,Fo.NgModule);if(!e){var 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=[],f=[],d=[],y=[];i.imports&&er(i.imports).forEach(function(e){var r;if(rr(e))r=e;else if(e&&e.ngModule){var o=e;r=o.ngModule,o.providers&&p.push.apply(p,n._getProvidersMetadata(o.providers,f,"provider for the NgModule '"+ir(r)+"'",[],e))}if(!r)return void n._reportError(h("Unexpected value '"+ir(e)+"' imported by the module '"+ir(t)+"'"),t);if(!n._checkSelfImport(t,r)){var i=n.getNgModuleSummary(r);return i?void c.push(i):void n._reportError(h("Unexpected "+n._getTypeDescriptor(e)+" '"+ir(e)+"' imported by the module '"+ir(t)+"'. Please add a @NgModule annotation."),t)}}),i.exports&&er(i.exports).forEach(function(e){if(!rr(e))return void n._reportError(h("Unexpected value '"+ir(e)+"' exported by the module '"+ir(t)+"'"),t);var r=n.getNgModuleSummary(e);r?l.push(r):a.push(n._getIdentifierMetadata(e))});var v=this._getTransitiveNgModuleMetadata(c,l);i.declarations&&er(i.declarations).forEach(function(e){if(!rr(e))return void n._reportError(h("Unexpected value '"+ir(e)+"' declared by the module '"+ir(t)+"'"),t);var r=n._getIdentifierMetadata(e);if(n._directiveResolver.isDirective(e))v.addDirective(r),s.push(r),n._addTypeToModule(e,t);else{if(!n._pipeResolver.isPipe(e))return void n._reportError(h("Unexpected "+n._getTypeDescriptor(e)+" '"+ir(e)+"' declared by the module '"+ir(t)+"'. Please add a @Pipe/@Directive/@Component annotation."),t);v.addPipe(r),v.pipes.push(r),u.push(r),n._addTypeToModule(e,t)}});var m=[],g=[];return a.forEach(function(e){v.directivesSet.has(e.reference)?(m.push(e),v.addExportedDirective(e)):v.pipesSet.has(e.reference)?(g.push(e),v.addExportedPipe(e)):n._reportError(h("Can't export "+n._getTypeDescriptor(e.reference)+" "+ir(e.reference)+" from "+ir(t)+" as it was neither declared nor imported!"),t)}),i.providers&&p.push.apply(p,this._getProvidersMetadata(i.providers,f,"provider for the NgModule '"+ir(t)+"'",[],t)),i.entryComponents&&f.push.apply(f,er(i.entryComponents).map(function(t){return n._getEntryComponentMetadata(t)})),i.bootstrap&&er(i.bootstrap).forEach(function(e){return rr(e)?void d.push(n._getIdentifierMetadata(e)):void n._reportError(h("Unexpected value '"+ir(e)+"' used in the bootstrap property of module '"+ir(t)+"'"),t)}),f.push.apply(f,d.map(function(t){return n._getEntryComponentMetadata(t.reference)})),i.schemas&&y.push.apply(y,er(i.schemas)),o=new zo({type:this._getTypeMetadata(t),providers:p,entryComponents:f,bootstrapComponents:d,schemas:y,declaredDirectives:s,exportedDirectives:m,declaredPipes:u,exportedPipes:g,importedModules:c,exportedModules:l,transitiveModule:v,id:i.id}),f.forEach(function(t){return v.addEntryComponent(t)}),p.forEach(function(t){return v.addProvider(t,o.type)}),v.addModule(o.type),this._ngModuleCache.set(t,o),o},t.prototype._checkSelfImport=function(t,e){return t===e?(this._reportError(h("'"+ir(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);r&&r!==e&&this._reportError(h("Type "+ir(t)+" is part of the declarations of 2 modules: "+ir(r)+" and "+ir(e)+"! "+("Please consider moving "+ir(t)+" to a higher module that imports "+ir(r)+" and "+ir(e)+". ")+("You can also create a new NgModule that exports and includes "+ir(t)+" then import that NgModule in "+ir(r)+" and "+ir(e)+".")),e),this._ngModuleOfTypes.set(t,e)},t.prototype._getTransitiveNgModuleMetadata=function(t,e){var r=new Go,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=T(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:Fo.Injectable,type:this._getTypeMetadata(t,null,!1)}},t.prototype._getInjectableMetadata=function(t,e){void 0===e&&(e=null);var r=this._loadSummary(t,Fo.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 $e(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)
diff --git a/modules/attachments/frame_list_attachments.php b/modules/attachments/frame_list_attachments.php
index 10356a4cbac..5d35464ae3b 100644
--- a/modules/attachments/frame_list_attachments.php
+++ b/modules/attachments/frame_list_attachments.php
@@ -121,6 +121,9 @@ if (isset($_REQUEST['order_field']) && !empty($_REQUEST['order_field'])) $parame
 if (isset($_REQUEST['what']) && !empty($_REQUEST['what'])) $parameters .= '&what='.$_REQUEST['what'];
 if (isset($_REQUEST['start']) && !empty($_REQUEST['start'])) $parameters .= '&start='.$_REQUEST['start'];
 if (isset($_REQUEST['template_selected']) && !empty($_REQUEST['template_selected'])) $parameters .= '&template_selected='.$_REQUEST['template_selected'];
+if (!empty($_REQUEST['noModification'])) {
+	$parameters .= '&noModification=true';
+}
 
 
 //test si le paramètre attach_type existe
@@ -370,6 +373,9 @@ if (isset($_REQUEST['load'])) {
     $paramsTab['listCss'] = 'listing largerList spec';                                                       //CSS
     $paramsTab['urlParameters'] =  'display=true'.$parameters;            //Parametres supplémentaires
     $paramsTab['defaultTemplate'] = $defaultTemplate;                                   //Default template
+    if (!empty($_REQUEST['noModification'])) {
+        $paramsTab['noModification'] = true;
+    }
     if ($useTemplate && count($template_list) >0 ) {                                    //Templates
         $paramsTab['templates'] = array();
         $paramsTab['templates'] = $template_list;
diff --git a/modules/attachments/xml/IVS/validation_rules.xml b/modules/attachments/xml/IVS/validation_rules.xml
index 30e0aa98887..10f4d4ca2b4 100755
--- a/modules/attachments/xml/IVS/validation_rules.xml
+++ b/modules/attachments/xml/IVS/validation_rules.xml
@@ -39,6 +39,7 @@
 		<parameter name="attach_type_exclude" type="string" />
 		<parameter name="load" type="string" />
 		<parameter name="resId" type="identifier" />
+		<parameter name="noModification" type="boolean" />
 		<parameter name="view_only" type="string" />
 	</validationRule>
 
-- 
GitLab