diff --git a/apps/maarch_entreprise/js/angular/app/Views/signatureBook.html b/apps/maarch_entreprise/js/angular/app/Views/signatureBook.html index 3743369bb60b123f2cee30d9e54f79852d7adb54..937840f5ccfe801e63ee44cccc0d319c70c6d336 100644 --- a/apps/maarch_entreprise/js/angular/app/Views/signatureBook.html +++ b/apps/maarch_entreprise/js/angular/app/Views/signatureBook.html @@ -48,7 +48,7 @@ <i class="fa fa-book" title="Fiche contact"></i> {{res.sender}} </div> <div class="resListContentInfo"> - <i class="fa fa-calendar" title="Date d'arrivée"></i> {{res.creation_date}} - <i class="fa fa-bell" title="Date limite de traitement"></i> {{res.process_limit_date}} + <i class="fa fa-calendar" title="Date d'arrivée"></i> {{res.creation_date | date:'dd/MM/y'}} - <i class="fa fa-bell" title="Date limite de traitement"></i> {{res.process_limit_date | date:'dd/MM/y'}} </div> </div> </div> @@ -76,31 +76,13 @@ <iframe *ngIf="leftViewerLink != ''" id="leftPanelShowDocumentIframe" [src]="leftViewerLink | safeUrl" [ngStyle]="{'height': showTopLeftPanel ? '69vh' : '75vh'}"></iframe> </div> <div class="contentShow" *ngIf="headerTab == 2"> - <!--<table ng-table="notesTable" class="table" id="notesTable">--> - <!--<tr ng-repeat="note in $data">--> - <!--<td title="'Date'" sortable="'date_note'" style="width:5%;">--> - <!--{{note.date_note}}--> - <!--</td>--> - <!--<td title="'Note'" sortable="'note_text'" filter="{ note_text: 'text'}" style="width:60%;">--> - <!--{{note.note_text}}--> - <!--</td>--> - <!--<td title="'Créateur'" sortable="'lastname'" filter="{ lastname: 'text'}" style="width:10%;">--> - <!--{{note.firstname + " " + note.lastname}}--> - <!--</td>--> - <!--<td title="'Visibilité'" style="width:20%;">--> - <!--{{note.entities_restriction}}--> - <!--</td>--> - <!--<td title="''" style="width:5%;">--> - <!--<i class="fa fa-pencil" style="cursor:pointer;color:#009DC5;" aria-hidden="true" title="Modifier" ></i>--> - <!--<i class="fa fa-times" style="cursor:pointer;color:red;" aria-hidden="true" title="Supprimer"></i>--> - <!--</td>--> - <!--</tr>--> - <!--</table>--> + <iframe [src]="notesViewerLink | safeUrl"></iframe> </div> <div class="contentShow" *ngIf="headerTab == 3"> - <!--<iframe id="leftPanelShow_iframe" src="{{signatureBook.linkVisaCircuit}}"></iframe>--> + <iframe [src]="visaViewerLink | safeUrl"></iframe> </div> <div class="contentShow" *ngIf="headerTab == 4"> + <iframe [src]="histViewerLink | safeUrl"></iframe> <!--<table ng-table="historyTable" class="table" id="historyTable">--> <!--<tr ng-repeat="history in $data">--> <!--<td title="'Date'" sortable="'event_date'" style="width:20%;">--> @@ -142,7 +124,7 @@ </div> <div class="infoPj"> <label>Créé le: </label> - <span>{{signatureBook.attachments[rightSelectedThumbnail].creation_date}}</span> + <span>{{signatureBook.attachments[rightSelectedThumbnail].creation_date | date:'dd/MM/y'}}</span> </div> <div class="infoPj" title="{{signatureBook.attachments[rightSelectedThumbnail].updated_by}}"> <label>Modifié par : </label> @@ -150,7 +132,7 @@ </div> <div class="infoPj"> <label>Retour : </label> - <span>{{signatureBook.attachments[rightSelectedThumbnail].validation_date}}</span> + <span>{{signatureBook.attachments[rightSelectedThumbnail].validation_date | date:'dd/MM/y'}}</span> </div> <div class="infoPj"> <label>Version : </label> 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 36dd338949709d58d02b854c892fde03ea024a3a..8ab80137e7ae55ee864923607607f5e2a0395a9f 100644 --- a/apps/maarch_entreprise/js/angular/app/signature-book.component.js +++ b/apps/maarch_entreprise/js/angular/app/signature-book.component.js @@ -38,7 +38,8 @@ var SignatureBookComponent = (function () { currentAction: {}, consigne: "", documents: [], - attachments: [] + attachments: [], + histories: [] }; this.rightSelectedThumbnail = 0; this.leftSelectedThumbnail = 0; @@ -50,6 +51,9 @@ var SignatureBookComponent = (function () { this.showResLeftPanel = true; this.showLeftPanel = true; this.showAttachmentEditionPanel = false; + this.notesViewerLink = ""; + this.visaViewerLink = ""; + this.histViewerLink = ""; window['angularSignatureBookComponent'] = { componentAfterAttach: function (value) { return _this.processAfterAttach(value); } }; @@ -84,6 +88,9 @@ var SignatureBookComponent = (function () { _this.showTopLeftPanel = false; _this.showTopRightPanel = false; _this.showAttachmentEditionPanel = false; + _this.notesViewerLink = "index.php?display=true&module=notes&page=notes&identifier=" + _this.resId + "&origin=document&coll_id=letterbox_coll&load&size=full"; + _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&dir=indexing_searching&page=document_workflow_history&id=" + _this.resId + "&coll_id=letterbox_coll&load&size=full"; }); }); }); 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 6df458713aa98ccc4670edd7dd51af610199c4e1..9733c6177c56c9e1281e87e52b5d797ac9e91399 100644 --- a/apps/maarch_entreprise/js/angular/app/signature-book.component.ts +++ b/apps/maarch_entreprise/js/angular/app/signature-book.component.ts @@ -32,7 +32,8 @@ export class SignatureBookComponent implements OnInit { currentAction : {}, consigne : "", documents : [], - attachments : [] + attachments : [], + histories : [] }; rightSelectedThumbnail : number = 0; @@ -46,6 +47,11 @@ export class SignatureBookComponent implements OnInit { showLeftPanel : boolean = true; showAttachmentEditionPanel : boolean = false; + notesViewerLink : string = ""; + visaViewerLink : string = ""; + histViewerLink : string = ""; + + constructor(public http: Http, private route: ActivatedRoute, private router: Router, private zone:NgZone) { window['angularSignatureBookComponent'] = { @@ -83,6 +89,9 @@ export class SignatureBookComponent implements OnInit { this.showTopLeftPanel = false; this.showTopRightPanel = false; this.showAttachmentEditionPanel = false; + this.notesViewerLink = "index.php?display=true&module=notes&page=notes&identifier=" + this.resId + "&origin=document&coll_id=letterbox_coll&load&size=full"; + 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&dir=indexing_searching&page=document_workflow_history&id=" + this.resId + "&coll_id=letterbox_coll&load&size=full"; }); }); }); diff --git a/apps/maarch_entreprise/js/angular/main.bundle.min.js b/apps/maarch_entreprise/js/angular/main.bundle.min.js index a312f7e08089fd9af77aa9df1ae7353c9251fc1c..f23c6ecc8dec3db9a1531b2217c0ac65c1f62803 100644 --- a/apps/maarch_entreprise/js/angular/main.bundle.min.js +++ b/apps/maarch_entreprise/js/angular/main.bundle.min.js @@ -1,33 +1,32 @@ -!function(t){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=t();else if("function"==typeof define&&define.amd)define([],t);else{var e;e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this,e.main=t()}}(function(){var t;return function e(t,n,r){function i(s,a){if(!n[s]){if(!t[s]){var u="function"==typeof require&&require;if(!a&&u)return u(s,!0);if(o)return o(s,!0);var c=new Error("Cannot find module '"+s+"'");throw c.code="MODULE_NOT_FOUND",c}var p=n[s]={exports:{}};t[s][0].call(p.exports,function(e){var n=t[s][1][e];return i(n?n:e)},p,p.exports,e,t,n,r)}return n[s].exports}for(var o="function"==typeof require&&require,s=0;s<r.length;s++)i(r[s]);return i}({1:[function(t,e,n){"use strict";var r=this&&this.__decorate||function(t,e,n,r){var i,o=arguments.length,s=3>o?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,r);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(3>o?i(s):o>3?i(e,n,s):i(e,n))||s);return o>3&&s&&Object.defineProperty(e,n,s),s},i=this&&this.__metadata||function(t,e){return"object"==typeof Reflect&&"function"==typeof Reflect.metadata?Reflect.metadata(t,e):void 0},o=t("@angular/core"),s=function(){function t(){}return t=r([o.Component({selector:"my-app",template:"<router-outlet></router-outlet>"}),i("design:paramtypes",[])],t)}();n.AppComponent=s},{"@angular/core":7}],2:[function(t,e,n){"use strict";var r=this&&this.__decorate||function(t,e,n,r){var i,o=arguments.length,s=3>o?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,r);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(3>o?i(s):o>3?i(e,n,s):i(e,n))||s);return o>3&&s&&Object.defineProperty(e,n,s),s},i=this&&this.__metadata||function(t,e){return"object"==typeof Reflect&&"function"==typeof Reflect.metadata?Reflect.metadata(t,e):void 0},o=t("@angular/core"),s=t("@angular/platform-browser"),a=t("@angular/router"),u=t("@angular/http"),c=t("./app.component"),p=t("./signature-book.component"),l=function(){function t(){}return t=r([o.NgModule({imports:[s.BrowserModule,a.RouterModule.forRoot([{path:":basketId/signatureBook/:resId",component:p.SignatureBookComponent},{path:"**",redirectTo:"",pathMatch:"full"}],{useHash:!0}),u.HttpModule],declarations:[c.AppComponent,p.SignatureBookComponent,p.SafeUrlPipe],bootstrap:[c.AppComponent]}),i("design:paramtypes",[])],t)}();n.AppModule=l},{"./app.component":1,"./signature-book.component":3,"@angular/core":7,"@angular/http":8,"@angular/platform-browser":10,"@angular/router":11}],3:[function(t,e,n){"use strict";var r=this&&this.__decorate||function(t,e,n,r){var i,o=arguments.length,s=3>o?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,r);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(3>o?i(s):o>3?i(e,n,s):i(e,n))||s);return o>3&&s&&Object.defineProperty(e,n,s),s},i=this&&this.__metadata||function(t,e){return"object"==typeof Reflect&&"function"==typeof Reflect.metadata?Reflect.metadata(t,e):void 0},o=t("@angular/core"),s=t("@angular/http"),a=t("@angular/platform-browser"),u=t("@angular/router");t("rxjs/add/operator/map");var c=function(){function t(t){this.sanitizer=t}return t.prototype.transform=function(t){return this.sanitizer.bypassSecurityTrustResourceUrl(t)},t=r([o.Pipe({name:"safeUrl"}),i("design:paramtypes",[a.DomSanitizer])],t)}();n.SafeUrlPipe=c;var p=function(){function t(t,e,n,r){var i=this;this.http=t,this.route=e,this.router=n,this.zone=r,this.signatureBook={currentAction:{},consigne:"",documents:[],attachments:[]},this.rightSelectedThumbnail=0,this.leftSelectedThumbnail=0,this.rightViewerLink="",this.leftViewerLink="",this.headerTab=1,this.showTopRightPanel=!1,this.showTopLeftPanel=!1,this.showResLeftPanel=!0,this.showLeftPanel=!0,this.showAttachmentEditionPanel=!1,window.angularSignatureBookComponent={componentAfterAttach:function(t){return i.processAfterAttach(t)}}}return t.prototype.ngOnInit=function(){var t=this;this.prepareSignatureBook(),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){t.signatureBook=e,t.signatureBook.documents[0]&&(t.leftViewerLink=t.signatureBook.documents[0].viewerLink),t.signatureBook.attachments[0]&&(t.rightViewerLink=t.signatureBook.attachments[0].viewerLink),t.headerTab=1,t.leftSelectedThumbnail=0,t.rightSelectedThumbnail=0,t.showLeftPanel=!0,t.showResLeftPanel=!0,t.showTopLeftPanel=!1,t.showTopRightPanel=!1,t.showAttachmentEditionPanel=!1})})})},t.prototype.prepareSignatureBook=function(){$j("#inner_content").remove(),$j("#header").remove(),$j("#viewBasketsTitle").remove(),$j("#homePageWelcomeTitle").remove(),$j("#footer").remove(),$j("#container").width("98%")},t.prototype.changeSignatureBookLeftContent=function(t){this.headerTab=t,this.showTopLeftPanel=!1},t.prototype.changeRightViewer=function(t){0>t?this.showAttachmentEditionPanel=!0:(this.rightViewerLink=this.signatureBook.attachments[t].viewerLink,this.showAttachmentEditionPanel=!1),this.rightSelectedThumbnail=t},t.prototype.changeLeftViewer=function(t){this.leftViewerLink=this.signatureBook.documents[t].viewerLink,this.leftSelectedThumbnail=t},t.prototype.displayPanel=function(t){"TOPRIGHT"==t?this.showTopRightPanel=!this.showTopRightPanel:"TOPLEFT"==t?this.showTopLeftPanel=!this.showTopLeftPanel:"LEFT"==t?(this.showLeftPanel=!this.showLeftPanel,this.showResLeftPanel=!1):"RESLEFT"==t&&(this.showResLeftPanel=!this.showResLeftPanel)},t.prototype.prepareSignFile=function(t){0==t.res_id?this.signatureBookSignFile(t.res_id_version,1):0==t.res_id_version&&this.signatureBookSignFile(t.res_id,0)},t.prototype.signatureBookSignFile=function(t,e){var n=this,r="";0==e?r="index.php?display=true&module=visa&page=sign_file&collId=letterbox_coll&resIdMaster="+this.resId+"&id="+t:1==e?r="index.php?display=true&module=visa&page=sign_file&collId=letterbox_coll&isVersion&resIdMaster="+this.resId+"&id="+t:2==e&&(r="index.php?display=true&module=visa&page=sign_file&collId=letterbox_coll&isOutgoing&resIdMaster="+this.resId+"&id="+t),this.http.get(r).map(function(t){return t.json()}).subscribe(function(t){0==t.status?(n.rightViewerLink="index.php?display=true&module=visa&page=view_pdf_attachement&res_id_master="+n.resId+"&id="+t.new_id,n.signatureBook.attachments[n.rightSelectedThumbnail].viewerLink=n.rightViewerLink,n.signatureBook.attachments[n.rightSelectedThumbnail].status="SIGN"):alert(t.error)})},t.prototype.unsignFile=function(t){var e,n,r=this;0==t.res_id?(n=t.res_id_version,e="res_version_attachments"):0==t.res_id_version&&(n=t.res_id,e="res_attachments"),this.http.put(this.coreUrl+"rest/"+e+"/"+n+"/unsign",{},{}).map(function(t){return t.json()}).subscribe(function(t){"OK"==t.status?(r.rightViewerLink="index.php?display=true&module=visa&page=view_pdf_attachement&res_id_master="+r.resId+"&id="+n,r.signatureBook.attachments[r.rightSelectedThumbnail].viewerLink=r.rightViewerLink,r.signatureBook.attachments[r.rightSelectedThumbnail].status="A_TRA"):alert(t.error)})},t.prototype.backToBasket=function(){location.hash="",location.reload()},t.prototype.changeLocation=function(t){var e="/"+this.basketId+"/signatureBook/"+t;this.router.navigate([e])},t.prototype.validForm=function(){""!=$j("#signatureBookActions option:selected")[0].value&&(unlockDocument(this.resId),valid_action_form("empty","index.php?display=true&page=manage_action&module=core",this.signatureBook.currentAction.id,this.resId,"res_letterbox","null","letterbox_coll","page",!1,[$j("#signatureBookActions option:selected")[0].value]))},t.prototype.refreshAttachments=function(t){var e=this;this.http.get(this.coreUrl+"rest/signatureBook/"+this.resId+"/attachments").map(function(t){return t.json()}).subscribe(function(n){e.signatureBook.attachments=n,"add"==t?e.changeRightViewer(e.signatureBook.attachments.length-1):"del"==t&&e.changeRightViewer(0)})},t.prototype.processAfterAttach=function(t){var e=this;this.zone.run(function(){return e.refreshAttachments(t)})},t.prototype.addAttachmentIframe=function(){showAttachmentsForm("index.php?display=true&module=attachments&page=attachments_content&docId="+this.resId)},t.prototype.editAttachmentIframe=function(t){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,n=confirm("Voulez-vous vraiment supprimer la pièce jointe ?");if(n){var r;0==t.res_id?r=t.res_id_version:0==t.res_id_version&&(r=t.res_id),this.http.get("index.php?display=true&module=attachments&page=del_attachment&id="+r+"&relation="+t.relation+"&rest=true").subscribe(function(){e.refreshAttachments("del")})}},t=r([o.Component({templateUrl:"js/angular/app/Views/signatureBook.html"}),i("design:paramtypes",[s.Http,u.ActivatedRoute,u.Router,o.NgZone])],t)}();n.SignatureBookComponent=p},{"@angular/core":7,"@angular/http":8,"@angular/platform-browser":10,"@angular/router":11,"rxjs/add/operator/map":22}],4:[function(t){"use strict";var e=t("@angular/platform-browser-dynamic"),n=t("@angular/core"),r=t("./app/app.module");n.enableProdMode(),e.platformBrowserDynamic().bootstrapModule(r.AppModule)},{"./app/app.module":2,"@angular/core":7,"@angular/platform-browser-dynamic":9}],5:[function(e,n,r){(function(i){!function(i,o){"object"==typeof r&&"undefined"!=typeof n?o(r,e("@angular/core")):"function"==typeof t&&t.amd?t(["exports","@angular/core"],o):o((i.ng=i.ng||{},i.ng.common=i.ng.common||{}),i.ng.core)}(this,function(t,e){"use strict";function n(t){return t.name||typeof t}function r(t){return null!=t}function o(t){return null==t}function s(t){if("string"==typeof t)return t;if(null==t)return""+t;if(t.overriddenName)return""+t.overriddenName;if(t.name)return""+t.name;var e=t.toString(),n=e.indexOf("\n");return-1===n?e:e.substring(0,n)}function a(t){return null!==t&&("function"==typeof t||"object"==typeof t)}function u(){if(!L)if(R.Symbol&&Symbol.iterator)L=Symbol.iterator;else for(var t=Object.getOwnPropertyNames(Map.prototype),e=0;e<t.length;++e){var n=t[e];"entries"!==n&&"size"!==n&&Map.prototype[n]===Map.prototype.entries&&(L=n)}return L}function c(t,e){return t&&e.startsWith(t)?e.substring(t.length):e}function p(t){return t.replace(/\/index.html$/,"")}function l(t,e,n){var r="="+t;if(e.indexOf(r)>-1)return r;if(r=n.getPluralCategory(t),e.indexOf(r)>-1)return r;if(e.indexOf("other")>-1)return"other";throw new Error('No plural message found for value "'+t+'"')}function h(t,e){"string"==typeof e&&(e=parseInt(e,10));var n=e,r=n.toString().replace(/^[^.]*\.?/,""),i=Math.floor(Math.abs(n)),o=r.length,s=parseInt(r,10),a=parseInt(n.toString().replace(/^[^.]*\.?|0+$/g,""),10)||0,u=t.split("-")[0].toLowerCase();switch(u){case"af":case"asa":case"az":case"bem":case"bez":case"bg":case"brx":case"ce":case"cgg":case"chr":case"ckb":case"ee":case"el":case"eo":case"es":case"eu":case"fo":case"fur":case"gsw":case"ha":case"haw":case"hu":case"jgo":case"jmc":case"ka":case"kk":case"kkj":case"kl":case"ks":case"ksb":case"ky":case"lb":case"lg":case"mas":case"mgo":case"ml":case"mn":case"nb":case"nd":case"ne":case"nn":case"nnh":case"nyn":case"om":case"or":case"os":case"ps":case"rm":case"rof":case"rwk":case"saq":case"seh":case"sn":case"so":case"sq":case"ta":case"te":case"teo":case"tk":case"tr":case"ug":case"uz":case"vo":case"vun":case"wae":case"xog":return 1===n?G.One:G.Other;case"agq":case"bas":case"cu":case"dav":case"dje":case"dua":case"dyo":case"ebu":case"ewo":case"guz":case"kam":case"khq":case"ki":case"kln":case"kok":case"ksf":case"lrc":case"lu":case"luo":case"luy":case"mer":case"mfe":case"mgh":case"mua":case"mzn":case"nmg":case"nus":case"qu":case"rn":case"rw":case"sbp":case"twq":case"vai":case"yav":case"yue":case"zgh":case"ak":case"ln":case"mg":case"pa":case"ti":return n===Math.floor(n)&&n>=0&&1>=n?G.One:G.Other;case"am":case"as":case"bn":case"fa":case"gu":case"hi":case"kn":case"mr":case"zu":return 0===i||1===n?G.One:G.Other;case"ar":return 0===n?G.Zero:1===n?G.One:2===n?G.Two:n%100===Math.floor(n%100)&&n%100>=3&&10>=n%100?G.Few:n%100===Math.floor(n%100)&&n%100>=11&&99>=n%100?G.Many:G.Other;case"ast":case"ca":case"de":case"en":case"et":case"fi":case"fy":case"gl":case"it":case"nl":case"sv":case"sw":case"ur":case"yi":return 1===i&&0===o?G.One:G.Other;case"be":return n%10===1&&n%100!==11?G.One:n%10===Math.floor(n%10)&&n%10>=2&&4>=n%10&&!(n%100>=12&&14>=n%100)?G.Few:n%10===0||n%10===Math.floor(n%10)&&n%10>=5&&9>=n%10||n%100===Math.floor(n%100)&&n%100>=11&&14>=n%100?G.Many:G.Other;case"br":return n%10===1&&n%100!==11&&n%100!==71&&n%100!==91?G.One:n%10===2&&n%100!==12&&n%100!==72&&n%100!==92?G.Two:n%10===Math.floor(n%10)&&(n%10>=3&&4>=n%10||n%10===9)&&!(n%100>=10&&19>=n%100||n%100>=70&&79>=n%100||n%100>=90&&99>=n%100)?G.Few:0!==n&&n%1e6===0?G.Many:G.Other;case"bs":case"hr":case"sr":return 0===o&&i%10===1&&i%100!==11||s%10===1&&s%100!==11?G.One:0===o&&i%10===Math.floor(i%10)&&i%10>=2&&4>=i%10&&!(i%100>=12&&14>=i%100)||s%10===Math.floor(s%10)&&s%10>=2&&4>=s%10&&!(s%100>=12&&14>=s%100)?G.Few:G.Other;case"cs":case"sk":return 1===i&&0===o?G.One:i===Math.floor(i)&&i>=2&&4>=i&&0===o?G.Few:0!==o?G.Many:G.Other;case"cy":return 0===n?G.Zero:1===n?G.One:2===n?G.Two:3===n?G.Few:6===n?G.Many:G.Other;case"da":return 1===n||0!==a&&(0===i||1===i)?G.One:G.Other;case"dsb":case"hsb":return 0===o&&i%100===1||s%100===1?G.One:0===o&&i%100===2||s%100===2?G.Two:0===o&&i%100===Math.floor(i%100)&&i%100>=3&&4>=i%100||s%100===Math.floor(s%100)&&s%100>=3&&4>=s%100?G.Few:G.Other;case"ff":case"fr":case"hy":case"kab":return 0===i||1===i?G.One:G.Other;case"fil":return 0===o&&(1===i||2===i||3===i)||0===o&&i%10!==4&&i%10!==6&&i%10!==9||0!==o&&s%10!==4&&s%10!==6&&s%10!==9?G.One:G.Other;case"ga":return 1===n?G.One:2===n?G.Two:n===Math.floor(n)&&n>=3&&6>=n?G.Few:n===Math.floor(n)&&n>=7&&10>=n?G.Many:G.Other;case"gd":return 1===n||11===n?G.One:2===n||12===n?G.Two:n===Math.floor(n)&&(n>=3&&10>=n||n>=13&&19>=n)?G.Few:G.Other;case"gv":return 0===o&&i%10===1?G.One:0===o&&i%10===2?G.Two:0!==o||i%100!==0&&i%100!==20&&i%100!==40&&i%100!==60&&i%100!==80?0!==o?G.Many:G.Other:G.Few;case"he":return 1===i&&0===o?G.One:2===i&&0===o?G.Two:0!==o||n>=0&&10>=n||n%10!==0?G.Other:G.Many;case"is":return 0===a&&i%10===1&&i%100!==11||0!==a?G.One:G.Other;case"ksh":return 0===n?G.Zero:1===n?G.One:G.Other;case"kw":case"naq":case"se":case"smn":return 1===n?G.One:2===n?G.Two:G.Other;case"lag":return 0===n?G.Zero:0!==i&&1!==i||0===n?G.Other:G.One;case"lt":return n%10!==1||n%100>=11&&19>=n%100?n%10===Math.floor(n%10)&&n%10>=2&&9>=n%10&&!(n%100>=11&&19>=n%100)?G.Few:0!==s?G.Many:G.Other:G.One;case"lv":case"prg":return n%10===0||n%100===Math.floor(n%100)&&n%100>=11&&19>=n%100||2===o&&s%100===Math.floor(s%100)&&s%100>=11&&19>=s%100?G.Zero:n%10===1&&n%100!==11||2===o&&s%10===1&&s%100!==11||2!==o&&s%10===1?G.One:G.Other;case"mk":return 0===o&&i%10===1||s%10===1?G.One:G.Other;case"mt":return 1===n?G.One:0===n||n%100===Math.floor(n%100)&&n%100>=2&&10>=n%100?G.Few:n%100===Math.floor(n%100)&&n%100>=11&&19>=n%100?G.Many:G.Other;case"pl":return 1===i&&0===o?G.One:0===o&&i%10===Math.floor(i%10)&&i%10>=2&&4>=i%10&&!(i%100>=12&&14>=i%100)?G.Few:0===o&&1!==i&&i%10===Math.floor(i%10)&&i%10>=0&&1>=i%10||0===o&&i%10===Math.floor(i%10)&&i%10>=5&&9>=i%10||0===o&&i%100===Math.floor(i%100)&&i%100>=12&&14>=i%100?G.Many:G.Other;case"pt":return n===Math.floor(n)&&n>=0&&2>=n&&2!==n?G.One:G.Other;case"ro":return 1===i&&0===o?G.One:0!==o||0===n||1!==n&&n%100===Math.floor(n%100)&&n%100>=1&&19>=n%100?G.Few:G.Other;case"ru":case"uk":return 0===o&&i%10===1&&i%100!==11?G.One:0===o&&i%10===Math.floor(i%10)&&i%10>=2&&4>=i%10&&!(i%100>=12&&14>=i%100)?G.Few:0===o&&i%10===0||0===o&&i%10===Math.floor(i%10)&&i%10>=5&&9>=i%10||0===o&&i%100===Math.floor(i%100)&&i%100>=11&&14>=i%100?G.Many:G.Other;case"shi":return 0===i||1===n?G.One:n===Math.floor(n)&&n>=2&&10>=n?G.Few:G.Other;case"si":return 0===n||1===n||0===i&&1===s?G.One:G.Other;case"sl":return 0===o&&i%100===1?G.One:0===o&&i%100===2?G.Two:0===o&&i%100===Math.floor(i%100)&&i%100>=3&&4>=i%100||0!==o?G.Few:G.Other;case"tzm":return n===Math.floor(n)&&n>=0&&1>=n||n===Math.floor(n)&&n>=11&&99>=n?G.One:G.Other;default:return G.Other}}function f(t){return a(t)?Array.isArray(t)||!(t instanceof Map)&&u()in t:!1}function d(t){return function(e,n){var r=t(e,n);return 1==r.length?"0"+r:r}}function y(t){return function(e,n){return t(e,n).split(" ")[1]}}function m(t){return function(e,n){return t(e,n).split(" ")[0]}}function v(t,e,n){return new Intl.DateTimeFormat(e,n).format(t).replace(/[\u200e\u200f]/g,"")}function g(t){var e={hour:"2-digit",hour12:!1,timeZoneName:t};return function(t,n){var r=v(t,n,e);return r?r.substring(3):""}}function _(t,e){return t.hour12=e,t}function b(t,e){var n={};return n[t]=2===e?"2-digit":"numeric",n}function w(t,e){var n={};return n[t]=4>e?e>1?"short":"narrow":"long",n}function E(t){return(e=Object).assign.apply(e,[{}].concat(t));var e}function S(t){return function(e,n){return v(e,n,t)}}function C(t,e,n){var r=wt[t];if(r)return r(e,n);var i=t,o=St.get(i);if(!o){o=[];var s=void 0;for(bt.exec(t);t;)s=bt.exec(t),s?(o=o.concat(s.slice(1)),t=o.pop()):(o.push(t),t=null);St.set(i,o)}return o.reduce(function(t,r){var i=Et[r];return t+(i?i(e,n):x(r))},"")}function x(t){return"''"===t?"'":t.replace(/(^'|'$)/g,"").replace(/''/g,"'")}function T(t){return null==t||""===t}function P(t){return t instanceof Date&&!isNaN(t.valueOf())}function O(t){var e=new Date(0),n=0,r=0,i=t[8]?e.setUTCFullYear:e.setFullYear,o=t[8]?e.setUTCHours:e.setHours;t[9]&&(n=A(t[9]+t[10]),r=A(t[9]+t[11])),i.call(e,A(t[1]),A(t[2])-1,A(t[3]));var s=A(t[4]||"0")-n,a=A(t[5]||"0")-r,u=A(t[6]||"0"),c=Math.round(1e3*parseFloat("0."+(t[7]||0)));return o.call(e,s,a,u,c),e}function A(t){return parseInt(t,10)}function M(t,e,n,r,i,o,s){if(void 0===o&&(o=null),void 0===s&&(s=!1),null==n)return null;if(n="string"==typeof n&&j.isNumeric(n)?+n:n,"number"!=typeof n)throw new ht(t,n);var a,u,c;if(r!==gt.Currency&&(a=1,u=0,c=3),i){var p=i.match(kt);if(null===p)throw new Error(i+" is not a valid digit info for number pipes");null!=p[1]&&(a=j.parseIntAutoRadix(p[1])),null!=p[3]&&(u=j.parseIntAutoRadix(p[3])),null!=p[5]&&(c=j.parseIntAutoRadix(p[5]))}return _t.format(n,e,r,{minimumIntegerDigits:a,minimumFractionDigits:u,maximumFractionDigits:c,currency:o,currencyAsSymbol:s})}var R,k=function(){function t(){}return t.prototype.getBaseHrefFromDOM=function(){},t.prototype.onPopState=function(){},t.prototype.onHashChange=function(){},Object.defineProperty(t.prototype,"pathname",{get:function(){return null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"search",{get:function(){return null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"hash",{get:function(){return null},enumerable:!0,configurable:!0}),t.prototype.replaceState=function(){},t.prototype.pushState=function(){},t.prototype.forward=function(){},t.prototype.back=function(){},t}(),N=function(){function t(){}return t.prototype.path=function(){},t.prototype.prepareExternalUrl=function(){},t.prototype.pushState=function(){},t.prototype.replaceState=function(){},t.prototype.forward=function(){},t.prototype.back=function(){},t.prototype.onPopState=function(){},t.prototype.getBaseHref=function(){},t}(),I=new e.OpaqueToken("appBaseHref");R="undefined"==typeof window?"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope?self:i:window;var D=R;D.assert=function(){};var j=function(){function t(){}return t.parseIntAutoRadix=function(t){var e=parseInt(t);if(isNaN(e))throw new Error("Invalid integer literal when parsing "+t);return e},t.isNumeric=function(t){return!isNaN(t-parseFloat(t))},t}(),L=null,V=function(){function t(n){var r=this;this._subject=new e.EventEmitter,this._platformStrategy=n;var i=this._platformStrategy.getBaseHref();this._baseHref=t.stripTrailingSlash(p(i)),this._platformStrategy.onPopState(function(t){r._subject.emit({url:r.path(!0),pop:!0,type:t.type})})}return t.prototype.path=function(t){return void 0===t&&(t=!1),this.normalize(this._platformStrategy.path(t))},t.prototype.isCurrentPathEqualTo=function(e,n){return void 0===n&&(n=""),this.path()==this.normalize(e+t.normalizeQueryParams(n))},t.prototype.normalize=function(e){return t.stripTrailingSlash(c(this._baseHref,p(e)))},t.prototype.prepareExternalUrl=function(t){return t&&"/"!==t[0]&&(t="/"+t),this._platformStrategy.prepareExternalUrl(t)},t.prototype.go=function(t,e){void 0===e&&(e=""),this._platformStrategy.pushState(null,"",t,e)},t.prototype.replaceState=function(t,e){void 0===e&&(e=""),this._platformStrategy.replaceState(null,"",t,e)},t.prototype.forward=function(){this._platformStrategy.forward()},t.prototype.back=function(){this._platformStrategy.back()},t.prototype.subscribe=function(t,e,n){return void 0===e&&(e=null),void 0===n&&(n=null),this._subject.subscribe({next:t,error:e,complete:n})},t.normalizeQueryParams=function(t){return t&&"?"!==t[0]?"?"+t:t},t.joinWithSlash=function(t,e){if(0==t.length)return e;if(0==e.length)return t;var n=0;return t.endsWith("/")&&n++,e.startsWith("/")&&n++,2==n?t+e.substring(1):1==n?t+e:t+"/"+e},t.stripTrailingSlash=function(t){return t.replace(/\/$/,"")},t.decorators=[{type:e.Injectable}],t.ctorParameters=function(){return[{type:N}]},t}(),F=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},U=function(t){function n(e,n){t.call(this),this._platformLocation=e,this._baseHref="",r(n)&&(this._baseHref=n)}return F(n,t),n.prototype.onPopState=function(t){this._platformLocation.onPopState(t),this._platformLocation.onHashChange(t)},n.prototype.getBaseHref=function(){return this._baseHref},n.prototype.path=function(t){void 0===t&&(t=!1);var e=this._platformLocation.hash;return r(e)||(e="#"),e.length>0?e.substring(1):e},n.prototype.prepareExternalUrl=function(t){var e=V.joinWithSlash(this._baseHref,t);return e.length>0?"#"+e:e},n.prototype.pushState=function(t,e,n,r){var i=this.prepareExternalUrl(n+V.normalizeQueryParams(r));0==i.length&&(i=this._platformLocation.pathname),this._platformLocation.pushState(t,e,i)},n.prototype.replaceState=function(t,e,n,r){var i=this.prepareExternalUrl(n+V.normalizeQueryParams(r));0==i.length&&(i=this._platformLocation.pathname),this._platformLocation.replaceState(t,e,i)},n.prototype.forward=function(){this._platformLocation.forward()},n.prototype.back=function(){this._platformLocation.back()},n.decorators=[{type:e.Injectable}],n.ctorParameters=function(){return[{type:k},{type:void 0,decorators:[{type:e.Optional},{type:e.Inject,args:[I]}]}]},n}(N),B=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},H=function(t){function n(e,n){if(t.call(this),this._platformLocation=e,o(n)&&(n=this._platformLocation.getBaseHrefFromDOM()),o(n))throw new Error("No base href set. Please provide a value for the APP_BASE_HREF token or add a base element to the document.");this._baseHref=n}return B(n,t),n.prototype.onPopState=function(t){this._platformLocation.onPopState(t),this._platformLocation.onHashChange(t)},n.prototype.getBaseHref=function(){return this._baseHref},n.prototype.prepareExternalUrl=function(t){return V.joinWithSlash(this._baseHref,t)},n.prototype.path=function(t){void 0===t&&(t=!1);var e=this._platformLocation.pathname+V.normalizeQueryParams(this._platformLocation.search),n=this._platformLocation.hash;return n&&t?""+e+n:e},n.prototype.pushState=function(t,e,n,r){var i=this.prepareExternalUrl(n+V.normalizeQueryParams(r));this._platformLocation.pushState(t,e,i)},n.prototype.replaceState=function(t,e,n,r){var i=this.prepareExternalUrl(n+V.normalizeQueryParams(r));this._platformLocation.replaceState(t,e,i)},n.prototype.forward=function(){this._platformLocation.forward()},n.prototype.back=function(){this._platformLocation.back()},n.decorators=[{type:e.Injectable}],n.ctorParameters=function(){return[{type:k},{type:void 0,decorators:[{type:e.Optional},{type:e.Inject,args:[I]}]}]},n}(N),q=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},z=function(){function t(){}return t.prototype.getPluralCategory=function(){},t}(),W=function(t){function n(e){t.call(this),this._locale=e}return q(n,t),n.prototype.getPluralCategory=function(t){var e=h(this._locale,t);switch(e){case G.Zero:return"zero";case G.One:return"one";case G.Two:return"two";case G.Few:return"few";case G.Many:return"many";default:return"other"}},n.decorators=[{type:e.Injectable}],n.ctorParameters=function(){return[{type:void 0,decorators:[{type:e.Inject,args:[e.LOCALE_ID]}]}]},n}(z),G={};G.Zero=0,G.One=1,G.Two=2,G.Few=3,G.Many=4,G.Other=5,G[G.Zero]="Zero",G[G.One]="One",G[G.Two]="Two",G[G.Few]="Few",G[G.Many]="Many",G[G.Other]="Other";var K=function(){function t(t,e,n,r){this._iterableDiffers=t,this._keyValueDiffers=e,this._ngEl=n,this._renderer=r,this._initialClasses=[]}return Object.defineProperty(t.prototype,"klass",{set:function(t){this._applyInitialClasses(!0),this._initialClasses="string"==typeof t?t.split(/\s+/):[],this._applyInitialClasses(!1),this._applyClasses(this._rawClass,!1)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"ngClass",{set:function(t){this._cleanupClasses(this._rawClass),this._iterableDiffer=null,this._keyValueDiffer=null,this._rawClass="string"==typeof t?t.split(/\s+/):t,this._rawClass&&(f(this._rawClass)?this._iterableDiffer=this._iterableDiffers.find(this._rawClass).create(null):this._keyValueDiffer=this._keyValueDiffers.find(this._rawClass).create(null))},enumerable:!0,configurable:!0}),t.prototype.ngDoCheck=function(){if(this._iterableDiffer){var t=this._iterableDiffer.diff(this._rawClass);t&&this._applyIterableChanges(t)}else if(this._keyValueDiffer){var t=this._keyValueDiffer.diff(this._rawClass);t&&this._applyKeyValueChanges(t)}},t.prototype._cleanupClasses=function(t){this._applyClasses(t,!0),this._applyInitialClasses(!1)},t.prototype._applyKeyValueChanges=function(t){var e=this;t.forEachAddedItem(function(t){return e._toggleClass(t.key,t.currentValue)}),t.forEachChangedItem(function(t){return e._toggleClass(t.key,t.currentValue)}),t.forEachRemovedItem(function(t){t.previousValue&&e._toggleClass(t.key,!1)})},t.prototype._applyIterableChanges=function(t){var e=this;t.forEachAddedItem(function(t){if("string"!=typeof t.item)throw new Error("NgClass can only toggle CSS classes expressed as strings, got "+s(t.item));e._toggleClass(t.item,!0)}),t.forEachRemovedItem(function(t){return e._toggleClass(t.item,!1)})},t.prototype._applyInitialClasses=function(t){var e=this;this._initialClasses.forEach(function(n){return e._toggleClass(n,!t)})},t.prototype._applyClasses=function(t,e){var n=this;t&&(Array.isArray(t)||t instanceof Set?t.forEach(function(t){return n._toggleClass(t,!e)}):Object.keys(t).forEach(function(r){null!=t[r]&&n._toggleClass(r,!e)}))},t.prototype._toggleClass=function(t,e){var n=this;t=t.trim(),t&&t.split(/\s+/g).forEach(function(t){n._renderer.setElementClass(n._ngEl.nativeElement,t,e)})},t.decorators=[{type:e.Directive,args:[{selector:"[ngClass]"}]}],t.ctorParameters=function(){return[{type:e.IterableDiffers},{type:e.KeyValueDiffers},{type:e.ElementRef},{type:e.Renderer}]},t.propDecorators={klass:[{type:e.Input,args:["class"]}],ngClass:[{type:e.Input}]},t}(),X=function(){function t(t,e,n){this.$implicit=t,this.index=e,this.count=n}return Object.defineProperty(t.prototype,"first",{get:function(){return 0===this.index},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"last",{get:function(){return this.index===this.count-1},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"even",{get:function(){return this.index%2===0},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"odd",{get:function(){return!this.even},enumerable:!0,configurable:!0}),t}(),Q=function(){function t(t,e,n,r){this._viewContainer=t,this._template=e,this._differs=n,this._cdr=r,this._differ=null}return Object.defineProperty(t.prototype,"ngForTrackBy",{get:function(){return this._trackByFn},set:function(t){e.isDevMode()&&null!=t&&"function"!=typeof t&&console&&console.warn&&console.warn("trackBy must be a function, but received "+JSON.stringify(t)+". See https://angular.io/docs/ts/latest/api/common/index/NgFor-directive.html#!#change-propagation for more information."),this._trackByFn=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"ngForTemplate",{set:function(t){t&&(this._template=t)},enumerable:!0,configurable:!0}),t.prototype.ngOnChanges=function(t){if("ngForOf"in t){var e=t.ngForOf.currentValue;if(!this._differ&&e)try{this._differ=this._differs.find(e).create(this._cdr,this.ngForTrackBy)}catch(r){throw new Error("Cannot find a differ supporting object '"+e+"' of type '"+n(e)+"'. NgFor only supports binding to Iterables such as Arrays.")}}},t.prototype.ngDoCheck=function(){if(this._differ){var t=this._differ.diff(this.ngForOf);t&&this._applyChanges(t)}},t.prototype._applyChanges=function(t){var e=this,n=[];t.forEachOperation(function(t,r,i){if(null==t.previousIndex){var o=e._viewContainer.createEmbeddedView(e._template,new X(null,null,null),i),s=new Y(t,o);n.push(s)}else if(null==i)e._viewContainer.remove(r);else{var o=e._viewContainer.get(r);e._viewContainer.move(o,i);var s=new Y(t,o);n.push(s)}});for(var r=0;r<n.length;r++)this._perViewChange(n[r].view,n[r].record);for(var r=0,i=this._viewContainer.length;i>r;r++){var o=this._viewContainer.get(r);o.context.index=r,o.context.count=i}t.forEachIdentityChange(function(t){var n=e._viewContainer.get(t.currentIndex);n.context.$implicit=t.item})},t.prototype._perViewChange=function(t,e){t.context.$implicit=e.item},t.decorators=[{type:e.Directive,args:[{selector:"[ngFor][ngForOf]"}]}],t.ctorParameters=function(){return[{type:e.ViewContainerRef},{type:e.TemplateRef},{type:e.IterableDiffers},{type:e.ChangeDetectorRef}]},t.propDecorators={ngForOf:[{type:e.Input}],ngForTrackBy:[{type:e.Input}],ngForTemplate:[{type:e.Input}]},t}(),Y=function(){function t(t,e){this.record=t,this.view=e}return t}(),$=function(){function t(t,e){this._viewContainer=t,this._template=e,this._hasView=!1}return Object.defineProperty(t.prototype,"ngIf",{set:function(t){t&&!this._hasView?(this._hasView=!0,this._viewContainer.createEmbeddedView(this._template)):!t&&this._hasView&&(this._hasView=!1,this._viewContainer.clear())},enumerable:!0,configurable:!0}),t.decorators=[{type:e.Directive,args:[{selector:"[ngIf]"}]}],t.ctorParameters=function(){return[{type:e.ViewContainerRef},{type:e.TemplateRef}]},t.propDecorators={ngIf:[{type:e.Input}]},t}(),Z=function(){function t(t,e){this._viewContainerRef=t,this._templateRef=e,this._created=!1}return t.prototype.create=function(){this._created=!0,this._viewContainerRef.createEmbeddedView(this._templateRef)},t.prototype.destroy=function(){this._created=!1,this._viewContainerRef.clear()},t.prototype.enforceState=function(t){t&&!this._created?this.create():!t&&this._created&&this.destroy()},t}(),J=function(){function t(){this._defaultUsed=!1,this._caseCount=0,this._lastCaseCheckIndex=0,this._lastCasesMatched=!1}return Object.defineProperty(t.prototype,"ngSwitch",{set:function(t){this._ngSwitch=t,0===this._caseCount&&this._updateDefaultCases(!0); +!function(t){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=t();else if("function"==typeof define&&define.amd)define([],t);else{var e;e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this,e.main=t()}}(function(){var t;return function e(t,n,r){function i(s,a){if(!n[s]){if(!t[s]){var u="function"==typeof require&&require;if(!a&&u)return u(s,!0);if(o)return o(s,!0);var c=new Error("Cannot find module '"+s+"'");throw c.code="MODULE_NOT_FOUND",c}var p=n[s]={exports:{}};t[s][0].call(p.exports,function(e){var n=t[s][1][e];return i(n?n:e)},p,p.exports,e,t,n,r)}return n[s].exports}for(var o="function"==typeof require&&require,s=0;s<r.length;s++)i(r[s]);return i}({1:[function(t,e,n){"use strict";var r=this&&this.__decorate||function(t,e,n,r){var i,o=arguments.length,s=3>o?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,r);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(3>o?i(s):o>3?i(e,n,s):i(e,n))||s);return o>3&&s&&Object.defineProperty(e,n,s),s},i=this&&this.__metadata||function(t,e){return"object"==typeof Reflect&&"function"==typeof Reflect.metadata?Reflect.metadata(t,e):void 0},o=t("@angular/core"),s=function(){function t(){}return t=r([o.Component({selector:"my-app",template:"<router-outlet></router-outlet>"}),i("design:paramtypes",[])],t)}();n.AppComponent=s},{"@angular/core":7}],2:[function(t,e,n){"use strict";var r=this&&this.__decorate||function(t,e,n,r){var i,o=arguments.length,s=3>o?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,r);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(3>o?i(s):o>3?i(e,n,s):i(e,n))||s);return o>3&&s&&Object.defineProperty(e,n,s),s},i=this&&this.__metadata||function(t,e){return"object"==typeof Reflect&&"function"==typeof Reflect.metadata?Reflect.metadata(t,e):void 0},o=t("@angular/core"),s=t("@angular/platform-browser"),a=t("@angular/router"),u=t("@angular/http"),c=t("./app.component"),p=t("./signature-book.component"),l=function(){function t(){}return t=r([o.NgModule({imports:[s.BrowserModule,a.RouterModule.forRoot([{path:":basketId/signatureBook/:resId",component:p.SignatureBookComponent},{path:"**",redirectTo:"",pathMatch:"full"}],{useHash:!0}),u.HttpModule],declarations:[c.AppComponent,p.SignatureBookComponent,p.SafeUrlPipe],bootstrap:[c.AppComponent]}),i("design:paramtypes",[])],t)}();n.AppModule=l},{"./app.component":1,"./signature-book.component":3,"@angular/core":7,"@angular/http":8,"@angular/platform-browser":10,"@angular/router":11}],3:[function(t,e,n){"use strict";var r=this&&this.__decorate||function(t,e,n,r){var i,o=arguments.length,s=3>o?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,r);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(3>o?i(s):o>3?i(e,n,s):i(e,n))||s);return o>3&&s&&Object.defineProperty(e,n,s),s},i=this&&this.__metadata||function(t,e){return"object"==typeof Reflect&&"function"==typeof Reflect.metadata?Reflect.metadata(t,e):void 0},o=t("@angular/core"),s=t("@angular/http"),a=t("@angular/platform-browser"),u=t("@angular/router");t("rxjs/add/operator/map");var c=function(){function t(t){this.sanitizer=t}return t.prototype.transform=function(t){return this.sanitizer.bypassSecurityTrustResourceUrl(t)},t=r([o.Pipe({name:"safeUrl"}),i("design:paramtypes",[a.DomSanitizer])],t)}();n.SafeUrlPipe=c;var p=function(){function t(t,e,n,r){var i=this;this.http=t,this.route=e,this.router=n,this.zone=r,this.signatureBook={currentAction:{},consigne:"",documents:[],attachments:[],histories:[]},this.rightSelectedThumbnail=0,this.leftSelectedThumbnail=0,this.rightViewerLink="",this.leftViewerLink="",this.headerTab=1,this.showTopRightPanel=!1,this.showTopLeftPanel=!1,this.showResLeftPanel=!0,this.showLeftPanel=!0,this.showAttachmentEditionPanel=!1,this.notesViewerLink="",this.visaViewerLink="",this.histViewerLink="",window.angularSignatureBookComponent={componentAfterAttach:function(t){return i.processAfterAttach(t)}}}return t.prototype.ngOnInit=function(){var t=this;this.prepareSignatureBook(),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){t.signatureBook=e,t.signatureBook.documents[0]&&(t.leftViewerLink=t.signatureBook.documents[0].viewerLink),t.signatureBook.attachments[0]&&(t.rightViewerLink=t.signatureBook.attachments[0].viewerLink),t.headerTab=1,t.leftSelectedThumbnail=0,t.rightSelectedThumbnail=0,t.showLeftPanel=!0,t.showResLeftPanel=!0,t.showTopLeftPanel=!1,t.showTopRightPanel=!1,t.showAttachmentEditionPanel=!1,t.notesViewerLink="index.php?display=true&module=notes&page=notes&identifier="+t.resId+"&origin=document&coll_id=letterbox_coll&load&size=full",t.visaViewerLink="index.php?display=true&page=show_visa_tab&module=visa&resId="+t.resId+"&collId=letterbox_coll&visaStep=true",t.histViewerLink="index.php?display=true&dir=indexing_searching&page=document_workflow_history&id="+t.resId+"&coll_id=letterbox_coll&load&size=full"})})})},t.prototype.prepareSignatureBook=function(){$j("#inner_content").remove(),$j("#header").remove(),$j("#viewBasketsTitle").remove(),$j("#homePageWelcomeTitle").remove(),$j("#footer").remove(),$j("#container").width("98%")},t.prototype.changeSignatureBookLeftContent=function(t){this.headerTab=t,this.showTopLeftPanel=!1},t.prototype.changeRightViewer=function(t){0>t?this.showAttachmentEditionPanel=!0:(this.rightViewerLink=this.signatureBook.attachments[t].viewerLink,this.showAttachmentEditionPanel=!1),this.rightSelectedThumbnail=t},t.prototype.changeLeftViewer=function(t){this.leftViewerLink=this.signatureBook.documents[t].viewerLink,this.leftSelectedThumbnail=t},t.prototype.displayPanel=function(t){"TOPRIGHT"==t?this.showTopRightPanel=!this.showTopRightPanel:"TOPLEFT"==t?this.showTopLeftPanel=!this.showTopLeftPanel:"LEFT"==t?(this.showLeftPanel=!this.showLeftPanel,this.showResLeftPanel=!1):"RESLEFT"==t&&(this.showResLeftPanel=!this.showResLeftPanel)},t.prototype.prepareSignFile=function(t){0==t.res_id?this.signatureBookSignFile(t.res_id_version,1):0==t.res_id_version&&this.signatureBookSignFile(t.res_id,0)},t.prototype.signatureBookSignFile=function(t,e){var n=this,r="";0==e?r="index.php?display=true&module=visa&page=sign_file&collId=letterbox_coll&resIdMaster="+this.resId+"&id="+t:1==e?r="index.php?display=true&module=visa&page=sign_file&collId=letterbox_coll&isVersion&resIdMaster="+this.resId+"&id="+t:2==e&&(r="index.php?display=true&module=visa&page=sign_file&collId=letterbox_coll&isOutgoing&resIdMaster="+this.resId+"&id="+t),this.http.get(r).map(function(t){return t.json()}).subscribe(function(t){0==t.status?(n.rightViewerLink="index.php?display=true&module=visa&page=view_pdf_attachement&res_id_master="+n.resId+"&id="+t.new_id,n.signatureBook.attachments[n.rightSelectedThumbnail].viewerLink=n.rightViewerLink,n.signatureBook.attachments[n.rightSelectedThumbnail].status="SIGN"):alert(t.error)})},t.prototype.unsignFile=function(t){var e,n,r=this;0==t.res_id?(n=t.res_id_version,e="res_version_attachments"):0==t.res_id_version&&(n=t.res_id,e="res_attachments"),this.http.put(this.coreUrl+"rest/"+e+"/"+n+"/unsign",{},{}).map(function(t){return t.json()}).subscribe(function(t){"OK"==t.status?(r.rightViewerLink="index.php?display=true&module=visa&page=view_pdf_attachement&res_id_master="+r.resId+"&id="+n,r.signatureBook.attachments[r.rightSelectedThumbnail].viewerLink=r.rightViewerLink,r.signatureBook.attachments[r.rightSelectedThumbnail].status="A_TRA"):alert(t.error)})},t.prototype.backToBasket=function(){location.hash="",location.reload()},t.prototype.changeLocation=function(t){var e="/"+this.basketId+"/signatureBook/"+t;this.router.navigate([e])},t.prototype.validForm=function(){""!=$j("#signatureBookActions option:selected")[0].value&&(unlockDocument(this.resId),valid_action_form("empty","index.php?display=true&page=manage_action&module=core",this.signatureBook.currentAction.id,this.resId,"res_letterbox","null","letterbox_coll","page",!1,[$j("#signatureBookActions option:selected")[0].value]))},t.prototype.refreshAttachments=function(t){var e=this;this.http.get(this.coreUrl+"rest/signatureBook/"+this.resId+"/attachments").map(function(t){return t.json()}).subscribe(function(n){e.signatureBook.attachments=n,"add"==t?e.changeRightViewer(e.signatureBook.attachments.length-1):"del"==t&&e.changeRightViewer(0)})},t.prototype.processAfterAttach=function(t){var e=this;this.zone.run(function(){return e.refreshAttachments(t)})},t.prototype.addAttachmentIframe=function(){showAttachmentsForm("index.php?display=true&module=attachments&page=attachments_content&docId="+this.resId)},t.prototype.editAttachmentIframe=function(t){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,n=confirm("Voulez-vous vraiment supprimer la pièce jointe ?");if(n){var r;0==t.res_id?r=t.res_id_version:0==t.res_id_version&&(r=t.res_id),this.http.get("index.php?display=true&module=attachments&page=del_attachment&id="+r+"&relation="+t.relation+"&rest=true").subscribe(function(){e.refreshAttachments("del")})}},t=r([o.Component({templateUrl:"js/angular/app/Views/signatureBook.html"}),i("design:paramtypes",[s.Http,u.ActivatedRoute,u.Router,o.NgZone])],t)}();n.SignatureBookComponent=p},{"@angular/core":7,"@angular/http":8,"@angular/platform-browser":10,"@angular/router":11,"rxjs/add/operator/map":22}],4:[function(t){"use strict";var e=t("@angular/platform-browser-dynamic"),n=t("@angular/core"),r=t("./app/app.module");n.enableProdMode(),e.platformBrowserDynamic().bootstrapModule(r.AppModule)},{"./app/app.module":2,"@angular/core":7,"@angular/platform-browser-dynamic":9}],5:[function(e,n,r){(function(i){!function(i,o){"object"==typeof r&&"undefined"!=typeof n?o(r,e("@angular/core")):"function"==typeof t&&t.amd?t(["exports","@angular/core"],o):o((i.ng=i.ng||{},i.ng.common=i.ng.common||{}),i.ng.core)}(this,function(t,e){"use strict";function n(t){return t.name||typeof t}function r(t){return null!=t}function o(t){return null==t}function s(t){if("string"==typeof t)return t;if(null==t)return""+t;if(t.overriddenName)return""+t.overriddenName;if(t.name)return""+t.name;var e=t.toString(),n=e.indexOf("\n");return-1===n?e:e.substring(0,n)}function a(t){return null!==t&&("function"==typeof t||"object"==typeof t)}function u(){if(!L)if(R.Symbol&&Symbol.iterator)L=Symbol.iterator;else for(var t=Object.getOwnPropertyNames(Map.prototype),e=0;e<t.length;++e){var n=t[e];"entries"!==n&&"size"!==n&&Map.prototype[n]===Map.prototype.entries&&(L=n)}return L}function c(t,e){return t&&e.startsWith(t)?e.substring(t.length):e}function p(t){return t.replace(/\/index.html$/,"")}function l(t,e,n){var r="="+t;if(e.indexOf(r)>-1)return r;if(r=n.getPluralCategory(t),e.indexOf(r)>-1)return r;if(e.indexOf("other")>-1)return"other";throw new Error('No plural message found for value "'+t+'"')}function h(t,e){"string"==typeof e&&(e=parseInt(e,10));var n=e,r=n.toString().replace(/^[^.]*\.?/,""),i=Math.floor(Math.abs(n)),o=r.length,s=parseInt(r,10),a=parseInt(n.toString().replace(/^[^.]*\.?|0+$/g,""),10)||0,u=t.split("-")[0].toLowerCase();switch(u){case"af":case"asa":case"az":case"bem":case"bez":case"bg":case"brx":case"ce":case"cgg":case"chr":case"ckb":case"ee":case"el":case"eo":case"es":case"eu":case"fo":case"fur":case"gsw":case"ha":case"haw":case"hu":case"jgo":case"jmc":case"ka":case"kk":case"kkj":case"kl":case"ks":case"ksb":case"ky":case"lb":case"lg":case"mas":case"mgo":case"ml":case"mn":case"nb":case"nd":case"ne":case"nn":case"nnh":case"nyn":case"om":case"or":case"os":case"ps":case"rm":case"rof":case"rwk":case"saq":case"seh":case"sn":case"so":case"sq":case"ta":case"te":case"teo":case"tk":case"tr":case"ug":case"uz":case"vo":case"vun":case"wae":case"xog":return 1===n?G.One:G.Other;case"agq":case"bas":case"cu":case"dav":case"dje":case"dua":case"dyo":case"ebu":case"ewo":case"guz":case"kam":case"khq":case"ki":case"kln":case"kok":case"ksf":case"lrc":case"lu":case"luo":case"luy":case"mer":case"mfe":case"mgh":case"mua":case"mzn":case"nmg":case"nus":case"qu":case"rn":case"rw":case"sbp":case"twq":case"vai":case"yav":case"yue":case"zgh":case"ak":case"ln":case"mg":case"pa":case"ti":return n===Math.floor(n)&&n>=0&&1>=n?G.One:G.Other;case"am":case"as":case"bn":case"fa":case"gu":case"hi":case"kn":case"mr":case"zu":return 0===i||1===n?G.One:G.Other;case"ar":return 0===n?G.Zero:1===n?G.One:2===n?G.Two:n%100===Math.floor(n%100)&&n%100>=3&&10>=n%100?G.Few:n%100===Math.floor(n%100)&&n%100>=11&&99>=n%100?G.Many:G.Other;case"ast":case"ca":case"de":case"en":case"et":case"fi":case"fy":case"gl":case"it":case"nl":case"sv":case"sw":case"ur":case"yi":return 1===i&&0===o?G.One:G.Other;case"be":return n%10===1&&n%100!==11?G.One:n%10===Math.floor(n%10)&&n%10>=2&&4>=n%10&&!(n%100>=12&&14>=n%100)?G.Few:n%10===0||n%10===Math.floor(n%10)&&n%10>=5&&9>=n%10||n%100===Math.floor(n%100)&&n%100>=11&&14>=n%100?G.Many:G.Other;case"br":return n%10===1&&n%100!==11&&n%100!==71&&n%100!==91?G.One:n%10===2&&n%100!==12&&n%100!==72&&n%100!==92?G.Two:n%10===Math.floor(n%10)&&(n%10>=3&&4>=n%10||n%10===9)&&!(n%100>=10&&19>=n%100||n%100>=70&&79>=n%100||n%100>=90&&99>=n%100)?G.Few:0!==n&&n%1e6===0?G.Many:G.Other;case"bs":case"hr":case"sr":return 0===o&&i%10===1&&i%100!==11||s%10===1&&s%100!==11?G.One:0===o&&i%10===Math.floor(i%10)&&i%10>=2&&4>=i%10&&!(i%100>=12&&14>=i%100)||s%10===Math.floor(s%10)&&s%10>=2&&4>=s%10&&!(s%100>=12&&14>=s%100)?G.Few:G.Other;case"cs":case"sk":return 1===i&&0===o?G.One:i===Math.floor(i)&&i>=2&&4>=i&&0===o?G.Few:0!==o?G.Many:G.Other;case"cy":return 0===n?G.Zero:1===n?G.One:2===n?G.Two:3===n?G.Few:6===n?G.Many:G.Other;case"da":return 1===n||0!==a&&(0===i||1===i)?G.One:G.Other;case"dsb":case"hsb":return 0===o&&i%100===1||s%100===1?G.One:0===o&&i%100===2||s%100===2?G.Two:0===o&&i%100===Math.floor(i%100)&&i%100>=3&&4>=i%100||s%100===Math.floor(s%100)&&s%100>=3&&4>=s%100?G.Few:G.Other;case"ff":case"fr":case"hy":case"kab":return 0===i||1===i?G.One:G.Other;case"fil":return 0===o&&(1===i||2===i||3===i)||0===o&&i%10!==4&&i%10!==6&&i%10!==9||0!==o&&s%10!==4&&s%10!==6&&s%10!==9?G.One:G.Other;case"ga":return 1===n?G.One:2===n?G.Two:n===Math.floor(n)&&n>=3&&6>=n?G.Few:n===Math.floor(n)&&n>=7&&10>=n?G.Many:G.Other;case"gd":return 1===n||11===n?G.One:2===n||12===n?G.Two:n===Math.floor(n)&&(n>=3&&10>=n||n>=13&&19>=n)?G.Few:G.Other;case"gv":return 0===o&&i%10===1?G.One:0===o&&i%10===2?G.Two:0!==o||i%100!==0&&i%100!==20&&i%100!==40&&i%100!==60&&i%100!==80?0!==o?G.Many:G.Other:G.Few;case"he":return 1===i&&0===o?G.One:2===i&&0===o?G.Two:0!==o||n>=0&&10>=n||n%10!==0?G.Other:G.Many;case"is":return 0===a&&i%10===1&&i%100!==11||0!==a?G.One:G.Other;case"ksh":return 0===n?G.Zero:1===n?G.One:G.Other;case"kw":case"naq":case"se":case"smn":return 1===n?G.One:2===n?G.Two:G.Other;case"lag":return 0===n?G.Zero:0!==i&&1!==i||0===n?G.Other:G.One;case"lt":return n%10!==1||n%100>=11&&19>=n%100?n%10===Math.floor(n%10)&&n%10>=2&&9>=n%10&&!(n%100>=11&&19>=n%100)?G.Few:0!==s?G.Many:G.Other:G.One;case"lv":case"prg":return n%10===0||n%100===Math.floor(n%100)&&n%100>=11&&19>=n%100||2===o&&s%100===Math.floor(s%100)&&s%100>=11&&19>=s%100?G.Zero:n%10===1&&n%100!==11||2===o&&s%10===1&&s%100!==11||2!==o&&s%10===1?G.One:G.Other;case"mk":return 0===o&&i%10===1||s%10===1?G.One:G.Other;case"mt":return 1===n?G.One:0===n||n%100===Math.floor(n%100)&&n%100>=2&&10>=n%100?G.Few:n%100===Math.floor(n%100)&&n%100>=11&&19>=n%100?G.Many:G.Other;case"pl":return 1===i&&0===o?G.One:0===o&&i%10===Math.floor(i%10)&&i%10>=2&&4>=i%10&&!(i%100>=12&&14>=i%100)?G.Few:0===o&&1!==i&&i%10===Math.floor(i%10)&&i%10>=0&&1>=i%10||0===o&&i%10===Math.floor(i%10)&&i%10>=5&&9>=i%10||0===o&&i%100===Math.floor(i%100)&&i%100>=12&&14>=i%100?G.Many:G.Other;case"pt":return n===Math.floor(n)&&n>=0&&2>=n&&2!==n?G.One:G.Other;case"ro":return 1===i&&0===o?G.One:0!==o||0===n||1!==n&&n%100===Math.floor(n%100)&&n%100>=1&&19>=n%100?G.Few:G.Other;case"ru":case"uk":return 0===o&&i%10===1&&i%100!==11?G.One:0===o&&i%10===Math.floor(i%10)&&i%10>=2&&4>=i%10&&!(i%100>=12&&14>=i%100)?G.Few:0===o&&i%10===0||0===o&&i%10===Math.floor(i%10)&&i%10>=5&&9>=i%10||0===o&&i%100===Math.floor(i%100)&&i%100>=11&&14>=i%100?G.Many:G.Other;case"shi":return 0===i||1===n?G.One:n===Math.floor(n)&&n>=2&&10>=n?G.Few:G.Other;case"si":return 0===n||1===n||0===i&&1===s?G.One:G.Other;case"sl":return 0===o&&i%100===1?G.One:0===o&&i%100===2?G.Two:0===o&&i%100===Math.floor(i%100)&&i%100>=3&&4>=i%100||0!==o?G.Few:G.Other;case"tzm":return n===Math.floor(n)&&n>=0&&1>=n||n===Math.floor(n)&&n>=11&&99>=n?G.One:G.Other;default:return G.Other}}function f(t){return a(t)?Array.isArray(t)||!(t instanceof Map)&&u()in t:!1}function d(t){return function(e,n){var r=t(e,n);return 1==r.length?"0"+r:r}}function y(t){return function(e,n){return t(e,n).split(" ")[1]}}function m(t){return function(e,n){return t(e,n).split(" ")[0]}}function v(t,e,n){return new Intl.DateTimeFormat(e,n).format(t).replace(/[\u200e\u200f]/g,"")}function g(t){var e={hour:"2-digit",hour12:!1,timeZoneName:t};return function(t,n){var r=v(t,n,e);return r?r.substring(3):""}}function _(t,e){return t.hour12=e,t}function b(t,e){var n={};return n[t]=2===e?"2-digit":"numeric",n}function w(t,e){var n={};return n[t]=4>e?e>1?"short":"narrow":"long",n}function E(t){return(e=Object).assign.apply(e,[{}].concat(t));var e}function S(t){return function(e,n){return v(e,n,t)}}function C(t,e,n){var r=wt[t];if(r)return r(e,n);var i=t,o=St.get(i);if(!o){o=[];var s=void 0;for(bt.exec(t);t;)s=bt.exec(t),s?(o=o.concat(s.slice(1)),t=o.pop()):(o.push(t),t=null);St.set(i,o)}return o.reduce(function(t,r){var i=Et[r];return t+(i?i(e,n):x(r))},"")}function x(t){return"''"===t?"'":t.replace(/(^'|'$)/g,"").replace(/''/g,"'")}function T(t){return null==t||""===t}function P(t){return t instanceof Date&&!isNaN(t.valueOf())}function O(t){var e=new Date(0),n=0,r=0,i=t[8]?e.setUTCFullYear:e.setFullYear,o=t[8]?e.setUTCHours:e.setHours;t[9]&&(n=A(t[9]+t[10]),r=A(t[9]+t[11])),i.call(e,A(t[1]),A(t[2])-1,A(t[3]));var s=A(t[4]||"0")-n,a=A(t[5]||"0")-r,u=A(t[6]||"0"),c=Math.round(1e3*parseFloat("0."+(t[7]||0)));return o.call(e,s,a,u,c),e}function A(t){return parseInt(t,10)}function M(t,e,n,r,i,o,s){if(void 0===o&&(o=null),void 0===s&&(s=!1),null==n)return null;if(n="string"==typeof n&&j.isNumeric(n)?+n:n,"number"!=typeof n)throw new ht(t,n);var a,u,c;if(r!==gt.Currency&&(a=1,u=0,c=3),i){var p=i.match(kt);if(null===p)throw new Error(i+" is not a valid digit info for number pipes");null!=p[1]&&(a=j.parseIntAutoRadix(p[1])),null!=p[3]&&(u=j.parseIntAutoRadix(p[3])),null!=p[5]&&(c=j.parseIntAutoRadix(p[5]))}return _t.format(n,e,r,{minimumIntegerDigits:a,minimumFractionDigits:u,maximumFractionDigits:c,currency:o,currencyAsSymbol:s})}var R,k=function(){function t(){}return t.prototype.getBaseHrefFromDOM=function(){},t.prototype.onPopState=function(){},t.prototype.onHashChange=function(){},Object.defineProperty(t.prototype,"pathname",{get:function(){return null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"search",{get:function(){return null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"hash",{get:function(){return null},enumerable:!0,configurable:!0}),t.prototype.replaceState=function(){},t.prototype.pushState=function(){},t.prototype.forward=function(){},t.prototype.back=function(){},t}(),N=function(){function t(){}return t.prototype.path=function(){},t.prototype.prepareExternalUrl=function(){},t.prototype.pushState=function(){},t.prototype.replaceState=function(){},t.prototype.forward=function(){},t.prototype.back=function(){},t.prototype.onPopState=function(){},t.prototype.getBaseHref=function(){},t}(),I=new e.OpaqueToken("appBaseHref");R="undefined"==typeof window?"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope?self:i:window;var D=R;D.assert=function(){};var j=function(){function t(){}return t.parseIntAutoRadix=function(t){var e=parseInt(t);if(isNaN(e))throw new Error("Invalid integer literal when parsing "+t);return e},t.isNumeric=function(t){return!isNaN(t-parseFloat(t))},t}(),L=null,V=function(){function t(n){var r=this;this._subject=new e.EventEmitter,this._platformStrategy=n;var i=this._platformStrategy.getBaseHref();this._baseHref=t.stripTrailingSlash(p(i)),this._platformStrategy.onPopState(function(t){r._subject.emit({url:r.path(!0),pop:!0,type:t.type})})}return t.prototype.path=function(t){return void 0===t&&(t=!1),this.normalize(this._platformStrategy.path(t))},t.prototype.isCurrentPathEqualTo=function(e,n){return void 0===n&&(n=""),this.path()==this.normalize(e+t.normalizeQueryParams(n))},t.prototype.normalize=function(e){return t.stripTrailingSlash(c(this._baseHref,p(e)))},t.prototype.prepareExternalUrl=function(t){return t&&"/"!==t[0]&&(t="/"+t),this._platformStrategy.prepareExternalUrl(t)},t.prototype.go=function(t,e){void 0===e&&(e=""),this._platformStrategy.pushState(null,"",t,e)},t.prototype.replaceState=function(t,e){void 0===e&&(e=""),this._platformStrategy.replaceState(null,"",t,e)},t.prototype.forward=function(){this._platformStrategy.forward()},t.prototype.back=function(){this._platformStrategy.back()},t.prototype.subscribe=function(t,e,n){return void 0===e&&(e=null),void 0===n&&(n=null),this._subject.subscribe({next:t,error:e,complete:n})},t.normalizeQueryParams=function(t){return t&&"?"!==t[0]?"?"+t:t},t.joinWithSlash=function(t,e){if(0==t.length)return e;if(0==e.length)return t;var n=0;return t.endsWith("/")&&n++,e.startsWith("/")&&n++,2==n?t+e.substring(1):1==n?t+e:t+"/"+e},t.stripTrailingSlash=function(t){return t.replace(/\/$/,"")},t.decorators=[{type:e.Injectable}],t.ctorParameters=function(){return[{type:N}]},t}(),F=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},U=function(t){function n(e,n){t.call(this),this._platformLocation=e,this._baseHref="",r(n)&&(this._baseHref=n)}return F(n,t),n.prototype.onPopState=function(t){this._platformLocation.onPopState(t),this._platformLocation.onHashChange(t)},n.prototype.getBaseHref=function(){return this._baseHref},n.prototype.path=function(t){void 0===t&&(t=!1);var e=this._platformLocation.hash;return r(e)||(e="#"),e.length>0?e.substring(1):e},n.prototype.prepareExternalUrl=function(t){var e=V.joinWithSlash(this._baseHref,t);return e.length>0?"#"+e:e},n.prototype.pushState=function(t,e,n,r){var i=this.prepareExternalUrl(n+V.normalizeQueryParams(r));0==i.length&&(i=this._platformLocation.pathname),this._platformLocation.pushState(t,e,i)},n.prototype.replaceState=function(t,e,n,r){var i=this.prepareExternalUrl(n+V.normalizeQueryParams(r));0==i.length&&(i=this._platformLocation.pathname),this._platformLocation.replaceState(t,e,i)},n.prototype.forward=function(){this._platformLocation.forward()},n.prototype.back=function(){this._platformLocation.back()},n.decorators=[{type:e.Injectable}],n.ctorParameters=function(){return[{type:k},{type:void 0,decorators:[{type:e.Optional},{type:e.Inject,args:[I]}]}]},n}(N),B=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},H=function(t){function n(e,n){if(t.call(this),this._platformLocation=e,o(n)&&(n=this._platformLocation.getBaseHrefFromDOM()),o(n))throw new Error("No base href set. Please provide a value for the APP_BASE_HREF token or add a base element to the document.");this._baseHref=n}return B(n,t),n.prototype.onPopState=function(t){this._platformLocation.onPopState(t),this._platformLocation.onHashChange(t)},n.prototype.getBaseHref=function(){return this._baseHref},n.prototype.prepareExternalUrl=function(t){return V.joinWithSlash(this._baseHref,t)},n.prototype.path=function(t){void 0===t&&(t=!1);var e=this._platformLocation.pathname+V.normalizeQueryParams(this._platformLocation.search),n=this._platformLocation.hash;return n&&t?""+e+n:e},n.prototype.pushState=function(t,e,n,r){var i=this.prepareExternalUrl(n+V.normalizeQueryParams(r));this._platformLocation.pushState(t,e,i)},n.prototype.replaceState=function(t,e,n,r){var i=this.prepareExternalUrl(n+V.normalizeQueryParams(r));this._platformLocation.replaceState(t,e,i)},n.prototype.forward=function(){this._platformLocation.forward()},n.prototype.back=function(){this._platformLocation.back()},n.decorators=[{type:e.Injectable}],n.ctorParameters=function(){return[{type:k},{type:void 0,decorators:[{type:e.Optional},{type:e.Inject,args:[I]}]}]},n}(N),q=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},z=function(){function t(){}return t.prototype.getPluralCategory=function(){},t}(),W=function(t){function n(e){t.call(this),this._locale=e}return q(n,t),n.prototype.getPluralCategory=function(t){var e=h(this._locale,t);switch(e){case G.Zero:return"zero";case G.One:return"one";case G.Two:return"two";case G.Few:return"few";case G.Many:return"many";default:return"other"}},n.decorators=[{type:e.Injectable}],n.ctorParameters=function(){return[{type:void 0,decorators:[{type:e.Inject,args:[e.LOCALE_ID]}]}]},n}(z),G={};G.Zero=0,G.One=1,G.Two=2,G.Few=3,G.Many=4,G.Other=5,G[G.Zero]="Zero",G[G.One]="One",G[G.Two]="Two",G[G.Few]="Few",G[G.Many]="Many",G[G.Other]="Other";var K=function(){function t(t,e,n,r){this._iterableDiffers=t,this._keyValueDiffers=e,this._ngEl=n,this._renderer=r,this._initialClasses=[]}return Object.defineProperty(t.prototype,"klass",{set:function(t){this._applyInitialClasses(!0),this._initialClasses="string"==typeof t?t.split(/\s+/):[],this._applyInitialClasses(!1),this._applyClasses(this._rawClass,!1)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"ngClass",{set:function(t){this._cleanupClasses(this._rawClass),this._iterableDiffer=null,this._keyValueDiffer=null,this._rawClass="string"==typeof t?t.split(/\s+/):t,this._rawClass&&(f(this._rawClass)?this._iterableDiffer=this._iterableDiffers.find(this._rawClass).create(null):this._keyValueDiffer=this._keyValueDiffers.find(this._rawClass).create(null))},enumerable:!0,configurable:!0}),t.prototype.ngDoCheck=function(){if(this._iterableDiffer){var t=this._iterableDiffer.diff(this._rawClass);t&&this._applyIterableChanges(t)}else if(this._keyValueDiffer){var t=this._keyValueDiffer.diff(this._rawClass);t&&this._applyKeyValueChanges(t)}},t.prototype._cleanupClasses=function(t){this._applyClasses(t,!0),this._applyInitialClasses(!1)},t.prototype._applyKeyValueChanges=function(t){var e=this;t.forEachAddedItem(function(t){return e._toggleClass(t.key,t.currentValue)}),t.forEachChangedItem(function(t){return e._toggleClass(t.key,t.currentValue)}),t.forEachRemovedItem(function(t){t.previousValue&&e._toggleClass(t.key,!1)})},t.prototype._applyIterableChanges=function(t){var e=this;t.forEachAddedItem(function(t){if("string"!=typeof t.item)throw new Error("NgClass can only toggle CSS classes expressed as strings, got "+s(t.item));e._toggleClass(t.item,!0)}),t.forEachRemovedItem(function(t){return e._toggleClass(t.item,!1)})},t.prototype._applyInitialClasses=function(t){var e=this;this._initialClasses.forEach(function(n){return e._toggleClass(n,!t)})},t.prototype._applyClasses=function(t,e){var n=this;t&&(Array.isArray(t)||t instanceof Set?t.forEach(function(t){return n._toggleClass(t,!e)}):Object.keys(t).forEach(function(r){null!=t[r]&&n._toggleClass(r,!e)}))},t.prototype._toggleClass=function(t,e){var n=this;t=t.trim(),t&&t.split(/\s+/g).forEach(function(t){n._renderer.setElementClass(n._ngEl.nativeElement,t,e)})},t.decorators=[{type:e.Directive,args:[{selector:"[ngClass]"}]}],t.ctorParameters=function(){return[{type:e.IterableDiffers},{type:e.KeyValueDiffers},{type:e.ElementRef},{type:e.Renderer}]},t.propDecorators={klass:[{type:e.Input,args:["class"]}],ngClass:[{type:e.Input}]},t}(),X=function(){function t(t,e,n){this.$implicit=t,this.index=e,this.count=n}return Object.defineProperty(t.prototype,"first",{get:function(){return 0===this.index},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"last",{get:function(){return this.index===this.count-1},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"even",{get:function(){return this.index%2===0},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"odd",{get:function(){return!this.even},enumerable:!0,configurable:!0}),t}(),Q=function(){function t(t,e,n,r){this._viewContainer=t,this._template=e,this._differs=n,this._cdr=r,this._differ=null}return Object.defineProperty(t.prototype,"ngForTrackBy",{get:function(){return this._trackByFn},set:function(t){e.isDevMode()&&null!=t&&"function"!=typeof t&&console&&console.warn&&console.warn("trackBy must be a function, but received "+JSON.stringify(t)+". See https://angular.io/docs/ts/latest/api/common/index/NgFor-directive.html#!#change-propagation for more information."),this._trackByFn=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"ngForTemplate",{set:function(t){t&&(this._template=t)},enumerable:!0,configurable:!0}),t.prototype.ngOnChanges=function(t){if("ngForOf"in t){var e=t.ngForOf.currentValue;if(!this._differ&&e)try{this._differ=this._differs.find(e).create(this._cdr,this.ngForTrackBy)}catch(r){throw new Error("Cannot find a differ supporting object '"+e+"' of type '"+n(e)+"'. NgFor only supports binding to Iterables such as Arrays.")}}},t.prototype.ngDoCheck=function(){if(this._differ){var t=this._differ.diff(this.ngForOf);t&&this._applyChanges(t)}},t.prototype._applyChanges=function(t){var e=this,n=[];t.forEachOperation(function(t,r,i){if(null==t.previousIndex){var o=e._viewContainer.createEmbeddedView(e._template,new X(null,null,null),i),s=new Y(t,o);n.push(s)}else if(null==i)e._viewContainer.remove(r);else{var o=e._viewContainer.get(r);e._viewContainer.move(o,i);var s=new Y(t,o);n.push(s)}});for(var r=0;r<n.length;r++)this._perViewChange(n[r].view,n[r].record);for(var r=0,i=this._viewContainer.length;i>r;r++){var o=this._viewContainer.get(r);o.context.index=r,o.context.count=i}t.forEachIdentityChange(function(t){var n=e._viewContainer.get(t.currentIndex);n.context.$implicit=t.item})},t.prototype._perViewChange=function(t,e){t.context.$implicit=e.item},t.decorators=[{type:e.Directive,args:[{selector:"[ngFor][ngForOf]"}]}],t.ctorParameters=function(){return[{type:e.ViewContainerRef},{type:e.TemplateRef},{type:e.IterableDiffers},{type:e.ChangeDetectorRef}]},t.propDecorators={ngForOf:[{type:e.Input}],ngForTrackBy:[{type:e.Input}],ngForTemplate:[{type:e.Input}]},t}(),Y=function(){function t(t,e){this.record=t,this.view=e}return t}(),$=function(){function t(t,e){this._viewContainer=t,this._template=e,this._hasView=!1}return Object.defineProperty(t.prototype,"ngIf",{set:function(t){t&&!this._hasView?(this._hasView=!0,this._viewContainer.createEmbeddedView(this._template)):!t&&this._hasView&&(this._hasView=!1,this._viewContainer.clear())},enumerable:!0,configurable:!0}),t.decorators=[{type:e.Directive,args:[{selector:"[ngIf]"}]}],t.ctorParameters=function(){return[{type:e.ViewContainerRef},{type:e.TemplateRef}]},t.propDecorators={ngIf:[{type:e.Input}]},t}(),Z=function(){function t(t,e){this._viewContainerRef=t,this._templateRef=e,this._created=!1}return t.prototype.create=function(){ +this._created=!0,this._viewContainerRef.createEmbeddedView(this._templateRef)},t.prototype.destroy=function(){this._created=!1,this._viewContainerRef.clear()},t.prototype.enforceState=function(t){t&&!this._created?this.create():!t&&this._created&&this.destroy()},t}(),J=function(){function t(){this._defaultUsed=!1,this._caseCount=0,this._lastCaseCheckIndex=0,this._lastCasesMatched=!1}return Object.defineProperty(t.prototype,"ngSwitch",{set:function(t){this._ngSwitch=t,0===this._caseCount&&this._updateDefaultCases(!0)},enumerable:!0,configurable:!0}),t.prototype._addCase=function(){return this._caseCount++},t.prototype._addDefault=function(t){this._defaultViews||(this._defaultViews=[]),this._defaultViews.push(t)},t.prototype._matchCase=function(t){var e=t==this._ngSwitch;return this._lastCasesMatched=this._lastCasesMatched||e,this._lastCaseCheckIndex++,this._lastCaseCheckIndex===this._caseCount&&(this._updateDefaultCases(!this._lastCasesMatched),this._lastCaseCheckIndex=0,this._lastCasesMatched=!1),e},t.prototype._updateDefaultCases=function(t){if(this._defaultViews&&t!==this._defaultUsed){this._defaultUsed=t;for(var e=0;e<this._defaultViews.length;e++){var n=this._defaultViews[e];n.enforceState(t)}}},t.decorators=[{type:e.Directive,args:[{selector:"[ngSwitch]"}]}],t.ctorParameters=function(){return[]},t.propDecorators={ngSwitch:[{type:e.Input}]},t}(),tt=function(){function t(t,e,n){this.ngSwitch=n,n._addCase(),this._view=new Z(t,e)}return t.prototype.ngDoCheck=function(){this._view.enforceState(this.ngSwitch._matchCase(this.ngSwitchCase))},t.decorators=[{type:e.Directive,args:[{selector:"[ngSwitchCase]"}]}],t.ctorParameters=function(){return[{type:e.ViewContainerRef},{type:e.TemplateRef},{type:J,decorators:[{type:e.Host}]}]},t.propDecorators={ngSwitchCase:[{type:e.Input}]},t}(),et=function(){function t(t,e,n){n._addDefault(new Z(t,e))}return t.decorators=[{type:e.Directive,args:[{selector:"[ngSwitchDefault]"}]}],t.ctorParameters=function(){return[{type:e.ViewContainerRef},{type:e.TemplateRef},{type:J,decorators:[{type:e.Host}]}]},t}(),nt=function(){function t(t){this._localization=t,this._caseViews={}}return Object.defineProperty(t.prototype,"ngPlural",{set:function(t){this._switchValue=t,this._updateView()},enumerable:!0,configurable:!0}),t.prototype.addCase=function(t,e){this._caseViews[t]=e},t.prototype._updateView=function(){this._clearViews();var t=Object.keys(this._caseViews),e=l(this._switchValue,t,this._localization);this._activateView(this._caseViews[e])},t.prototype._clearViews=function(){this._activeView&&this._activeView.destroy()},t.prototype._activateView=function(t){t&&(this._activeView=t,this._activeView.create())},t.decorators=[{type:e.Directive,args:[{selector:"[ngPlural]"}]}],t.ctorParameters=function(){return[{type:z}]},t.propDecorators={ngPlural:[{type:e.Input}]},t}(),rt=function(){function t(t,e,n,r){this.value=t;var i=!isNaN(Number(t));r.addCase(i?"="+t:t,new Z(n,e))}return t.decorators=[{type:e.Directive,args:[{selector:"[ngPluralCase]"}]}],t.ctorParameters=function(){return[{type:void 0,decorators:[{type:e.Attribute,args:["ngPluralCase"]}]},{type:e.TemplateRef},{type:e.ViewContainerRef},{type:nt,decorators:[{type:e.Host}]}]},t}(),it=function(){function t(t,e,n){this._differs=t,this._ngEl=e,this._renderer=n}return Object.defineProperty(t.prototype,"ngStyle",{set:function(t){this._ngStyle=t,!this._differ&&t&&(this._differ=this._differs.find(t).create(null))},enumerable:!0,configurable:!0}),t.prototype.ngDoCheck=function(){if(this._differ){var t=this._differ.diff(this._ngStyle);t&&this._applyChanges(t)}},t.prototype._applyChanges=function(t){var e=this;t.forEachRemovedItem(function(t){return e._setStyle(t.key,null)}),t.forEachAddedItem(function(t){return e._setStyle(t.key,t.currentValue)}),t.forEachChangedItem(function(t){return e._setStyle(t.key,t.currentValue)})},t.prototype._setStyle=function(t,e){var n=t.split("."),r=n[0],i=n[1];e=e&&i?""+e+i:e,this._renderer.setElementStyle(this._ngEl.nativeElement,r,e)},t.decorators=[{type:e.Directive,args:[{selector:"[ngStyle]"}]}],t.ctorParameters=function(){return[{type:e.KeyValueDiffers},{type:e.ElementRef},{type:e.Renderer}]},t.propDecorators={ngStyle:[{type:e.Input}]},t}(),ot=function(){function t(t){this._viewContainerRef=t}return Object.defineProperty(t.prototype,"ngOutletContext",{set:function(t){this._context=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"ngTemplateOutlet",{set:function(t){this._templateRef=t},enumerable:!0,configurable:!0}),t.prototype.ngOnChanges=function(){this._viewRef&&this._viewContainerRef.remove(this._viewContainerRef.indexOf(this._viewRef)),this._templateRef&&(this._viewRef=this._viewContainerRef.createEmbeddedView(this._templateRef,this._context))},t.decorators=[{type:e.Directive,args:[{selector:"[ngTemplateOutlet]"}]}],t.ctorParameters=function(){return[{type:e.ViewContainerRef}]},t.propDecorators={ngOutletContext:[{type:e.Input}],ngTemplateOutlet:[{type:e.Input}]},t}(),st=[K,Q,$,ot,it,J,tt,et,nt,rt],at=e.__core_private__.isPromise,ut=e.__core_private__.isObservable,ct=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},pt=function(t){function e(e){t.call(this,e);var n=new Error(e);this._nativeError=n}return ct(e,t),Object.defineProperty(e.prototype,"message",{get:function(){return this._nativeError.message},set:function(t){this._nativeError.message=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"name",{get:function(){return this._nativeError.name},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"stack",{get:function(){return this._nativeError.stack},set:function(t){this._nativeError.stack=t},enumerable:!0,configurable:!0}),e.prototype.toString=function(){return this._nativeError.toString()},e}(Error),lt=(function(t){function e(e,n){t.call(this,e+" caused by: "+(n instanceof Error?n.message:n)),this.originalError=n}return ct(e,t),Object.defineProperty(e.prototype,"stack",{get:function(){return(this.originalError instanceof Error?this.originalError:this._nativeError).stack},enumerable:!0,configurable:!0}),e}(pt),this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),ht=function(t){function e(e,n){t.call(this,"Invalid argument '"+n+"' for pipe '"+s(e)+"'")}return lt(e,t),e}(pt),ft=function(){function t(){}return t.prototype.createSubscription=function(t,e){return t.subscribe({next:e,error:function(t){throw t}})},t.prototype.dispose=function(t){t.unsubscribe()},t.prototype.onDestroy=function(t){t.unsubscribe()},t}(),dt=function(){function t(){}return t.prototype.createSubscription=function(t,e){return t.then(e,function(t){throw t})},t.prototype.dispose=function(){},t.prototype.onDestroy=function(){},t}(),yt=new dt,mt=new ft,vt=function(){function t(t){this._ref=t,this._latestValue=null,this._latestReturnedValue=null,this._subscription=null,this._obj=null,this._strategy=null}return t.prototype.ngOnDestroy=function(){this._subscription&&this._dispose()},t.prototype.transform=function(t){return this._obj?t!==this._obj?(this._dispose(),this.transform(t)):this._latestValue===this._latestReturnedValue?this._latestReturnedValue:(this._latestReturnedValue=this._latestValue,e.WrappedValue.wrap(this._latestValue)):(t&&this._subscribe(t),this._latestReturnedValue=this._latestValue,this._latestValue)},t.prototype._subscribe=function(t){var e=this;this._obj=t,this._strategy=this._selectStrategy(t),this._subscription=this._strategy.createSubscription(t,function(n){return e._updateLatestValue(t,n)})},t.prototype._selectStrategy=function(e){if(at(e))return yt;if(ut(e))return mt;throw new ht(t,e)},t.prototype._dispose=function(){this._strategy.dispose(this._subscription),this._latestValue=null,this._latestReturnedValue=null,this._subscription=null,this._obj=null},t.prototype._updateLatestValue=function(t,e){t===this._obj&&(this._latestValue=e,this._ref.markForCheck())},t.decorators=[{type:e.Pipe,args:[{name:"async",pure:!1}]}],t.ctorParameters=function(){return[{type:e.ChangeDetectorRef}]},t}(),gt={};gt.Decimal=0,gt.Percent=1,gt.Currency=2,gt[gt.Decimal]="Decimal",gt[gt.Percent]="Percent",gt[gt.Currency]="Currency";var _t=function(){function t(){}return t.format=function(t,e,n,r){var i=void 0===r?{}:r,o=i.minimumIntegerDigits,s=i.minimumFractionDigits,a=i.maximumFractionDigits,u=i.currency,c=i.currencyAsSymbol,p=void 0===c?!1:c,l={minimumIntegerDigits:o,minimumFractionDigits:s,maximumFractionDigits:a,style:gt[n].toLowerCase()};return n==gt.Currency&&(l.currency=u,l.currencyDisplay=p?"symbol":"code"),new Intl.NumberFormat(e,l).format(t)},t}(),bt=/((?:[^yMLdHhmsazZEwGjJ']+)|(?:'(?:[^']|'')*')|(?:E+|y+|M+|L+|d+|H+|h+|J+|j+|m+|s+|a|z|Z|G+|w+))(.*)/,wt={yMMMdjms:S(E([b("year",1),w("month",3),b("day",1),b("hour",1),b("minute",1),b("second",1)])),yMdjm:S(E([b("year",1),b("month",1),b("day",1),b("hour",1),b("minute",1)])),yMMMMEEEEd:S(E([b("year",1),w("month",4),w("weekday",4),b("day",1)])),yMMMMd:S(E([b("year",1),w("month",4),b("day",1)])),yMMMd:S(E([b("year",1),w("month",3),b("day",1)])),yMd:S(E([b("year",1),b("month",1),b("day",1)])),jms:S(E([b("hour",1),b("second",1),b("minute",1)])),jm:S(E([b("hour",1),b("minute",1)]))},Et={yyyy:S(b("year",4)),yy:S(b("year",2)),y:S(b("year",1)),MMMM:S(w("month",4)),MMM:S(w("month",3)),MM:S(b("month",2)),M:S(b("month",1)),LLLL:S(w("month",4)),L:S(w("month",1)),dd:S(b("day",2)),d:S(b("day",1)),HH:d(m(S(_(b("hour",2),!1)))),H:m(S(_(b("hour",1),!1))),hh:d(m(S(_(b("hour",2),!0)))),h:m(S(_(b("hour",1),!0))),jj:S(b("hour",2)),j:S(b("hour",1)),mm:d(S(b("minute",2))),m:S(b("minute",1)),ss:d(S(b("second",2))),s:S(b("second",1)),sss:S(b("second",3)),EEEE:S(w("weekday",4)),EEE:S(w("weekday",3)),EE:S(w("weekday",2)),E:S(w("weekday",1)),a:y(S(_(b("hour",1),!0))),Z:g("short"),z:g("long"),ww:S({}),w:S({}),G:S(w("era",1)),GG:S(w("era",2)),GGG:S(w("era",3)),GGGG:S(w("era",4))},St=new Map,Ct=function(){function t(){}return t.format=function(t,e,n){return C(n,t,e)},t}(),xt=/^(\d{4})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,Tt=function(){function t(t){this._locale=t}return t.prototype.transform=function(e,n){void 0===n&&(n="mediumDate");var r;if(T(e)||e!==e)return null;if("string"==typeof e&&(e=e.trim()),P(e))r=e;else if(j.isNumeric(e))r=new Date(parseFloat(e));else if("string"==typeof e&&/^(\d{4}-\d{1,2}-\d{1,2})$/.test(e)){var i=e.split("-").map(function(t){return parseInt(t,10)}),o=i[0],s=i[1],a=i[2];r=new Date(o,s-1,a)}else r=new Date(e);if(!P(r)){var u=void 0;if("string"!=typeof e||!(u=e.match(xt)))throw new ht(t,e);r=O(u)}return Ct.format(r,this._locale,t._ALIASES[n]||n)},t._ALIASES={medium:"yMMMdjms","short":"yMdjm",fullDate:"yMMMMEEEEd",longDate:"yMMMMd",mediumDate:"yMMMd",shortDate:"yMd",mediumTime:"jms",shortTime:"jm"},t.decorators=[{type:e.Pipe,args:[{name:"date",pure:!0}]}],t.ctorParameters=function(){return[{type:void 0,decorators:[{type:e.Inject,args:[e.LOCALE_ID]}]}]},t}(),Pt=/#/g,Ot=function(){function t(t){this._localization=t}return t.prototype.transform=function(e,n){if(null==e)return"";if("object"!=typeof n||null===n)throw new ht(t,n);var r=l(e,Object.keys(n),this._localization);return n[r].replace(Pt,e.toString())},t.decorators=[{type:e.Pipe,args:[{name:"i18nPlural",pure:!0}]}],t.ctorParameters=function(){return[{type:z}]},t}(),At=function(){function t(){}return t.prototype.transform=function(e,n){if(null==e)return"";if("object"!=typeof n||"string"!=typeof e)throw new ht(t,n);return n.hasOwnProperty(e)?n[e]:n.hasOwnProperty("other")?n.other:""},t.decorators=[{type:e.Pipe,args:[{name:"i18nSelect",pure:!0}]}],t.ctorParameters=function(){return[]},t}(),Mt=function(){function t(){}return t.prototype.transform=function(t){return JSON.stringify(t,null,2)},t.decorators=[{type:e.Pipe,args:[{name:"json",pure:!1}]}],t.ctorParameters=function(){return[]},t}(),Rt=function(){function t(){}return t.prototype.transform=function(e){if(o(e))return e;if("string"!=typeof e)throw new ht(t,e);return e.toLowerCase()},t.decorators=[{type:e.Pipe,args:[{name:"lowercase"}]}],t.ctorParameters=function(){return[]},t}(),kt=/^(\d+)?\.((\d+)(-(\d+))?)?$/,Nt=function(){function t(t){this._locale=t}return t.prototype.transform=function(e,n){return void 0===n&&(n=null),M(t,this._locale,e,gt.Decimal,n)},t.decorators=[{type:e.Pipe,args:[{name:"number"}]}],t.ctorParameters=function(){return[{type:void 0,decorators:[{type:e.Inject,args:[e.LOCALE_ID]}]}]},t}(),It=function(){function t(t){this._locale=t}return t.prototype.transform=function(e,n){return void 0===n&&(n=null),M(t,this._locale,e,gt.Percent,n)},t.decorators=[{type:e.Pipe,args:[{name:"percent"}]}],t.ctorParameters=function(){return[{type:void 0,decorators:[{type:e.Inject,args:[e.LOCALE_ID]}]}]},t}(),Dt=function(){function t(t){this._locale=t}return t.prototype.transform=function(e,n,r,i){return void 0===n&&(n="USD"),void 0===r&&(r=!1),void 0===i&&(i=null),M(t,this._locale,e,gt.Currency,i,n,r)},t.decorators=[{type:e.Pipe,args:[{name:"currency"}]}],t.ctorParameters=function(){return[{type:void 0,decorators:[{type:e.Inject,args:[e.LOCALE_ID]}]}]},t}(),jt=function(){function t(){}return t.prototype.transform=function(e,n,r){if(null==e)return e;if(!this.supports(e))throw new ht(t,e);return e.slice(n,r)},t.prototype.supports=function(t){return"string"==typeof t||Array.isArray(t)},t.decorators=[{type:e.Pipe,args:[{name:"slice",pure:!1}]}],t.ctorParameters=function(){return[]},t}(),Lt=function(){function t(){}return t.prototype.transform=function(e){if(o(e))return e;if("string"!=typeof e)throw new ht(t,e);return e.toUpperCase()},t.decorators=[{type:e.Pipe,args:[{name:"uppercase"}]}],t.ctorParameters=function(){return[]},t}(),Vt=[vt,Lt,Rt,Mt,jt,Nt,It,Dt,Tt,Ot,At],Ft=function(){function t(){}return t.decorators=[{type:e.NgModule,args:[{declarations:[st,Vt],exports:[st,Vt],providers:[{provide:z,useClass:W}]}]}],t.ctorParameters=function(){return[]},t}(),Ut=new e.Version("2.4.9");t.NgLocalization=z,t.CommonModule=Ft,t.NgClass=K,t.NgFor=Q,t.NgIf=$,t.NgPlural=nt,t.NgPluralCase=rt,t.NgStyle=it,t.NgSwitch=J,t.NgSwitchCase=tt,t.NgSwitchDefault=et,t.NgTemplateOutlet=ot,t.AsyncPipe=vt,t.DatePipe=Tt,t.I18nPluralPipe=Ot,t.I18nSelectPipe=At,t.JsonPipe=Mt,t.LowerCasePipe=Rt,t.CurrencyPipe=Dt,t.DecimalPipe=Nt,t.PercentPipe=It,t.SlicePipe=jt,t.UpperCasePipe=Lt,t.VERSION=Ut,t.Version=e.Version,t.PlatformLocation=k,t.LocationStrategy=N,t.APP_BASE_HREF=I,t.HashLocationStrategy=U,t.PathLocationStrategy=H,t.Location=V})}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"@angular/core":7}],6:[function(e,n,r){!function(i,o){"object"==typeof r&&"undefined"!=typeof n?o(r,e("@angular/core")):"function"==typeof t&&t.amd?t(["exports","@angular/core"],o):o((i.ng=i.ng||{},i.ng.compiler=i.ng.compiler||{}),i.ng.core)}(this,function(t,e){"use strict";function n(t,e,n){void 0===n&&(n=null);var r=[],i=t.visit?function(e){return t.visit(e,n)||e.visit(t,n)}:function(e){return e.visit(t,n)};return e.forEach(function(t){var e=i(t);e&&r.push(e)}),r}function r(t){return null!=t}function i(t){return null==t}function o(t){return"object"==typeof t&&null!==t&&Object.getPrototypeOf(t)===eo}function s(t){if("string"==typeof t)return t;if(null==t)return""+t;if(t.overriddenName)return""+t.overriddenName;if(t.name)return""+t.name;var e=t.toString(),n=e.indexOf("\n");return-1===n?e:e.substring(0,n)}function a(t){return null!==t&&("function"==typeof t||"object"==typeof t)}function u(t){return!a(t)}function c(t){return t.replace(/([.*+?^=!:${}()|[\]\/\\])/g,"\\$1")}function p(t){if(":"!=t[0])return[null,t];var e=t.indexOf(":",1);if(-1==e)throw new Error('Unsupported format "'+t+'" expecting ":namespace:name"');return[t.slice(1,e),t.slice(e+1)]}function l(t){return null===t?null:p(t)[0]}function h(t,e){return t?":"+t+":"+e:e}function f(t){return Qo[t.toLowerCase()]||Yo}function d(t){return t.replace(ss,function(){for(var t=[],e=0;e<arguments.length;e++)t[e-0]=arguments[e];return t[1].toUpperCase()})}function y(t,e){return v(t,":",e)}function m(t,e){return v(t,".",e)}function v(t,e,n){var r=t.indexOf(e);return-1==r?n:[t.slice(0,r).trim(),t.slice(r+1).trim()]}function g(t,e,n){return Array.isArray(t)?e.visitArray(t,n):o(t)?e.visitStringMap(t,n):null==t||u(t)?e.visitPrimitive(t,n):e.visitOther(t,n)}function _(t){return t.replace(/\W/g,"_")}function b(t){if(!t||!t.reference)return null;var e=t.reference;if(e instanceof Ji)return e.name;if(e.__anonymousType)return e.__anonymousType;var n=s(e);return n.indexOf("(")>=0?(n="anonymous_"+Ss++,e.__anonymousType=n):n=_(n),n}function w(t){var e=t.reference;return e instanceof Ji?e.filePath:Po.importUri(e)}function E(t){return r(t.value)?_(t.value):b(t.identifier)}function S(t){return r(t.identifier)?t.identifier.reference:t.value}function C(t,n){var r=Zo.parse(n.selector)[0].getMatchingElementTemplate();return Ps.create({isHost:!0,type:{reference:t,diDeps:[],lifecycleHooks:[]},template:new Ts({encapsulation:e.ViewEncapsulation.None,template:r,templateUrl:"",styles:[],styleUrls:[],ngContentSelectors:[],animations:[]}),changeDetection:e.ChangeDetectionStrategy.Default,inputs:[],outputs:[],host:{},isComponent:!0,selector:"*",providers:[],viewProviders:[],queries:[],viewQueries:[]})}function x(t){return t||[]}function T(t){return t>=Ns&&Vs>=t||t==Ra}function P(t){return t>=sa&&aa>=t}function O(t){return t>=ga&&Pa>=t||t>=ua&&ha>=t}function A(t){return t>=ga&&ba>=t||t>=ua&&pa>=t||P(t)}function M(){return function(t){return t}}function R(t,n){if(e.isDevMode()&&!i(n)){if(!Array.isArray(n))throw new Error("Expected '"+t+"' to be an array of strings.");for(var r=0;r<n.length;r+=1)if("string"!=typeof n[r])throw new Error("Expected '"+t+"' to be an array of strings.")}}function k(t,n){if(r(n)&&(!Array.isArray(n)||2!=n.length))throw new Error("Expected '"+t+"' to be an array, [start, end].");if(e.isDevMode()&&!i(n)){var o=n[0],s=n[1];Na.forEach(function(t){if(t.test(o)||t.test(s))throw new Error("['"+o+"', '"+s+"'] contains unusable interpolation symbol.")})}}function N(t,e){return new du(t,lu.Character,e,String.fromCharCode(e))}function I(t,e){return new du(t,lu.Identifier,0,e)}function D(t,e){return new du(t,lu.Keyword,0,e)}function j(t,e){return new du(t,lu.Operator,0,e)}function L(t,e){return new du(t,lu.String,0,e)}function V(t,e){return new du(t,lu.Number,e,"")}function F(t,e){return new du(t,lu.Error,0,e)}function U(t){return t>=ga&&Pa>=t||t>=ua&&ha>=t||t==va||t==Hs}function B(t){if(0==t.length)return!1;var e=new mu(t);if(!U(e.peek))return!1;for(e.advance();e.peek!==ks;){if(!H(e.peek))return!1;e.advance()}return!0}function H(t){return O(t)||P(t)||t==va||t==Hs}function q(t){return t==_a||t==ca}function z(t){return t==$s||t==Qs}function W(t){return t===Ws||t===Us||t===ka}function G(t){switch(t){case wa:return Is;case ba:return js;case Ea:return Ls;case Sa:return Ns;case xa:return Ds;default:return t}}function K(t){var e=c(t.start)+"([\\s\\S]*?)"+c(t.end);return new RegExp(e,"g")}function X(t,e,n){void 0===n&&(n=null);var r=[],i=t.visit?function(e){return t.visit(e,n)||e.visit(t,n)}:function(e){return e.visit(t,n)};return e.forEach(function(t){var e=i(t);e&&r.push(e)}),r}function Q(t,e,n,r,i){return void 0===r&&(r=!1),void 0===i&&(i=Da),new Hu(new xu(t,e),n,r,i).tokenize()}function Y(t){var e=t===ks?"EOF":String.fromCharCode(t);return'Unexpected character "'+e+'"'}function $(t){return'Unknown entity "'+t+'" - use the "&#<decimal>;" or "&#x<hex>;" syntax'}function Z(t){return!T(t)||t===ks}function J(t){return T(t)||t===ia||t===Js||t===Ws||t===Us||t===ra}function tt(t){return(ga>t||t>Pa)&&(ua>t||t>ha)&&(sa>t||t>aa)}function et(t){return t==ea||t==ks||!A(t)}function nt(t){return t==ea||t==ks||!O(t)}function rt(t,e,n){var r=n?t.indexOf(n.start,e)==e:!1;return t.charCodeAt(e)==Oa&&!r}function it(t){return t===ra||O(t)}function ot(t,e){return st(t)==st(e)}function st(t){return t>=ga&&Pa>=t?t-ga+ua:t}function at(t){for(var e,n=[],r=0;r<t.length;r++){var i=t[r];e&&e.type==ju.TEXT&&i.type==ju.TEXT?(e.parts[0]+=i.parts[0],e.sourceSpan.end=i.sourceSpan.end):(e=i,n.push(e))}return n}function ut(t,e){return t.length>0&&t[t.length-1]===e}function ct(t){var e=new ic(rc,t);return function(t,n,r){return e.toI18nMessage(t,n,r)}}function pt(t){return t.split(oc)[1]}function lt(t,e,n,r){var i=new fc(n,r);return i.extract(t,e)}function ht(t,e,n,r,i){var o=new fc(r,i);return o.merge(t,e,n)}function ft(t){return t instanceof Iu&&t.value&&t.value.startsWith("i18n")}function dt(t){return t instanceof Iu&&t.value&&"/i18n"===t.value}function yt(t){return t.attrs.find(function(t){return t.name===uc})||null}function mt(t){if(!t)return["",""];var e=t.indexOf("|");return-1==e?["",t]:[t.slice(0,e),t.slice(e+1)]}function vt(){return yc}function gt(t){return wt(bt(t.nodes).join("")+("["+t.meaning+"]"))}function _t(t){var e=new wc,n=t.nodes.map(function(t){return t.visit(e,null)});return Ct(n.join(""),t.meaning)}function bt(t){return t.map(function(t){return t.visit(bc,null)})}function wt(t){var e=Pt(t),n=Dt(e,Ec.Big),r=8*e.length,i=new Array(80),o=[1732584193,4023233417,2562383102,271733878,3285377520],s=o[0],a=o[1],u=o[2],c=o[3],p=o[4];n[r>>5]|=128<<24-r%32,n[(r+64>>9<<4)+15]=r;for(var l=0;l<n.length;l+=16){for(var h=[s,a,u,c,p],f=h[0],d=h[1],y=h[2],m=h[3],v=h[4],g=0;80>g;g++){i[g]=16>g?n[l+g]:Nt(i[g-3]^i[g-8]^i[g-14]^i[g-16],1);var _=Et(g,a,u,c),b=_[0],w=_[1],E=[Nt(s,5),b,p,w,i[g]].reduce(At);S=[c,u,Nt(a,30),s,E],p=S[0],c=S[1],u=S[2],a=S[3],s=S[4]}C=[At(s,f),At(a,d),At(u,y),At(c,m),At(p,v)],s=C[0],a=C[1],u=C[2],c=C[3],p=C[4]}return Ut(Vt([s,a,u,c,p]));var S,C}function Et(t,e,n,r){return 20>t?[e&n|~e&r,1518500249]:40>t?[e^n^r,1859775393]:60>t?[e&n|e&r|n&r,2400959708]:[e^n^r,3395469782]}function St(t){var e=Pt(t),n=[xt(e,0),xt(e,102072)],r=n[0],i=n[1];return 0!=r||0!=i&&1!=i||(r=319790063^r,i=-1801410264^i),[r,i]}function Ct(t,e){var n=St(t),r=n[0],i=n[1];if(e){var o=St(e),s=o[0],a=o[1];u=Rt(It([r,i],1),[s,a]),r=u[0],i=u[1]}return Bt(Vt([2147483647&r,i]));var u}function xt(t,e){var n,r=[2654435769,2654435769],i=r[0],o=r[1],s=t.length;for(n=0;s>=n+12;n+=12)i=At(i,Lt(t,n,Ec.Little)),o=At(o,Lt(t,n+4,Ec.Little)),e=At(e,Lt(t,n+8,Ec.Little)),a=Tt([i,o,e]),i=a[0],o=a[1],e=a[2];return i=At(i,Lt(t,n,Ec.Little)),o=At(o,Lt(t,n+4,Ec.Little)),e=At(e,s),e=At(e,Lt(t,n+8,Ec.Little)<<8),Tt([i,o,e])[2];var a}function Tt(t){var e=t[0],n=t[1],r=t[2];return e=kt(e,n),e=kt(e,r),e^=r>>>13,n=kt(n,r),n=kt(n,e),n^=e<<8,r=kt(r,e),r=kt(r,n),r^=n>>>13,e=kt(e,n),e=kt(e,r),e^=r>>>12,n=kt(n,r),n=kt(n,e),n^=e<<16,r=kt(r,e),r=kt(r,n),r^=n>>>5,e=kt(e,n),e=kt(e,r),e^=r>>>3,n=kt(n,r),n=kt(n,e),n^=e<<10,r=kt(r,e),r=kt(r,n),r^=n>>>15,[e,n,r]}function Pt(t){for(var e="",n=0;n<t.length;n++){var r=Ot(t,n);127>=r?e+=String.fromCharCode(r):2047>=r?e+=String.fromCharCode(192|r>>>6,128|63&r):65535>=r?e+=String.fromCharCode(224|r>>>12,128|r>>>6&63,128|63&r):2097151>=r&&(e+=String.fromCharCode(240|r>>>18,128|r>>>12&63,128|r>>>6&63,128|63&r))}return e}function Ot(t,e){if(0>e||e>=t.length)throw new Error("index="+e+' is out of range in "'+t+'"');var n=t.charCodeAt(e);if(n>=55296&&57343>=n&&t.length>e+1){var r=jt(t,e+1);if(r>=56320&&57343>=r)return 1024*(n-55296)+r-56320+65536}return n}function At(t,e){return Mt(t,e)[1]}function Mt(t,e){var n=(65535&t)+(65535&e),r=(t>>>16)+(e>>>16)+(n>>>16);return[r>>>16,r<<16|65535&n]}function Rt(t,e){var n=t[0],r=t[1],i=e[0],o=e[1],s=Mt(r,o),a=s[0],u=s[1],c=At(At(n,i),a);return[c,u]}function kt(t,e){var n=(65535&t)-(65535&e),r=(t>>16)-(e>>16)+(n>>16);return r<<16|65535&n}function Nt(t,e){return t<<e|t>>>32-e}function It(t,e){var n=t[0],r=t[1],i=n<<e|r>>>32-e,o=r<<e|n>>>32-e;return[i,o]}function Dt(t,e){for(var n=Array(t.length+3>>>2),r=0;r<n.length;r++)n[r]=Lt(t,4*r,e);return n}function jt(t,e){return e>=t.length?0:255&t.charCodeAt(e)}function Lt(t,e,n){var r=0;if(n===Ec.Big)for(var i=0;4>i;i++)r+=jt(t,e+i)<<24-8*i;else for(var i=0;4>i;i++)r+=jt(t,e+i)<<8*i;return r}function Vt(t){return t.reduce(function(t,e){return t+Ft(e)},"")}function Ft(t){for(var e="",n=0;4>n;n++)e+=String.fromCharCode(t>>>8*(3-n)&255);return e}function Ut(t){for(var e="",n=0;n<t.length;n++){var r=jt(t,n);e+=(r>>>4).toString(16)+(15&r).toString(16)}return e.toLowerCase()}function Bt(t){for(var e="",n="1",r=t.length-1;r>=0;r--)e=Ht(e,qt(jt(t,r),n)),n=qt(256,n);return e.split("").reverse().join("")}function Ht(t,e){for(var n="",r=Math.max(t.length,e.length),i=0,o=0;r>i||o;i++){var s=o+ +(t[i]||0)+ +(e[i]||0);s>=10?(o=1,n+=s-10):(o=0,n+=s)}return n}function qt(t,e){for(var n="",r=e;0!==t;t>>>=1)1&t&&(n=Ht(n,r)),r=Ht(r,r);return n}function zt(t){return t.map(function(t){return t.visit(Tc)}).join("")}function Wt(t){return kc.reduce(function(t,e){return t.replace(e[0],e[1])},t)}function Gt(t){switch(t.toLowerCase()){case"br":return"lb";case"img":return"image";default:return"x-"+t}}function Kt(t){return _t(t)}function Xt(t,e,n){return void 0===e&&(e=null),void 0===n&&(n="src"),null==e?"@angular/"+t+"/index":"@angular/"+t+"/"+n+"/"+e}function Qt(t){return Po.resolveIdentifier(t.name,t.moduleUrl,t.runtime)}function Yt(t){var e=Po.resolveIdentifier(t.name,t.moduleUrl,t.runtime);return{reference:e}}function $t(t){return{identifier:t}}function Zt(t){return $t(Yt(t))}function Jt(t,e){var n=Po.resolveEnum(Qt(t),e);return{reference:n}}function te(t){var e=new Cp;return new Ep(X(e,t),e.isExpanded,e.errors)}function ee(t,e){var n=t.cases.map(function(t){-1!=wp.indexOf(t.value)||t.value.match(/^=\d+$/)||e.push(new Sp(t.valueSourceSpan,'Plural cases should be "=<number>" or one of '+wp.join(", ")));var n=te(t.expression);return e.push.apply(e,n.errors),new Nu("template",[new ku("ngPluralCase",""+t.value,t.valueSourceSpan)],n.nodes,t.sourceSpan,t.sourceSpan,t.sourceSpan)}),r=new ku("[ngPlural]",t.switchValue,t.switchValueSourceSpan);return new Nu("ng-container",[r],n,t.sourceSpan,t.sourceSpan,t.sourceSpan)}function ne(t,e){var n=t.cases.map(function(t){var n=te(t.expression);return e.push.apply(e,n.errors),"other"===t.value?new Nu("template",[new ku("ngSwitchDefault","",t.valueSourceSpan)],n.nodes,t.sourceSpan,t.sourceSpan,t.sourceSpan):new Nu("template",[new ku("ngSwitchCase",""+t.value,t.valueSourceSpan)],n.nodes,t.sourceSpan,t.sourceSpan,t.sourceSpan)}),r=new ku("[ngSwitch]",t.switchValue,t.switchValueSourceSpan);return new Nu("ng-container",[r],n,t.sourceSpan,t.sourceSpan,t.sourceSpan)}function re(t,e){var n=e.useExisting,r=e.useValue,i=e.deps;return{token:t.token,useClass:t.useClass,useExisting:n,useFactory:t.useFactory,useValue:r,deps:i,multi:t.multi}}function ie(t,e){var n=e.eager,r=e.providers;return new Qi(t.token,t.multiProvider,t.eager||n,r,t.providerType,t.lifecycleHooks,t.sourceSpan)}function oe(t,e,n){var r=new Map;t.forEach(function(t){var i={token:{identifier:t.type},useClass:t.type};se([i],t.isComponent?Yi.Component:Yi.Directive,!0,e,n,r)});var i=t.filter(function(t){return t.isComponent}).concat(t.filter(function(t){return!t.isComponent}));return i.forEach(function(t){se(t.providers,Yi.PublicService,!1,e,n,r),se(t.viewProviders,Yi.PrivateService,!1,e,n,r)}),r}function se(t,e,n,i,o,s){t.forEach(function(t){var a=s.get(S(t.token));if(r(a)&&!!a.multiProvider!=!!t.multi&&o.push(new Tp("Mixing multi and non multi provider is not possible for token "+E(a.token),i)),a)t.multi||(a.providers.length=0),a.providers.push(t);else{var u=t.token.identifier&&t.token.identifier.lifecycleHooks?t.token.identifier.lifecycleHooks:[];a=new Qi(t.token,t.multi,n||u.length>0,[t],e,u,i),s.set(S(t.token),a)}})}function ae(t){var e=new Map;return t.viewQueries&&t.viewQueries.forEach(function(t){return ce(e,t)}),e}function ue(t){var e=new Map;return t.forEach(function(t){t.queries&&t.queries.forEach(function(t){return ce(e,t)})}),e}function ce(t,e){e.selectors.forEach(function(n){var r=t.get(S(n));r||(r=[],t.set(S(n),r)),r.push(e)})}function pe(t){if(null==t||0===t.length||"/"==t[0])return!1;var e=t.match(Ip);return null===e||"package"==e[1]||"asset"==e[1]}function le(t,e,n){var r=[],i=n.replace(Np,"").replace(kp,function(){for(var n=[],i=0;i<arguments.length;i++)n[i-0]=arguments[i];var o=n[1]||n[2];return pe(o)?(r.push(t.resolve(e,o)),""):n[0]});return new Rp(i,r)}function he(t){return"@"==t[0]}function fe(t,n,r,i){var o=[];return Zo.parse(n).forEach(function(e){var n=e.element?[e.element]:t.allKnownElementNames(),s=new Set(e.notSelectors.filter(function(t){return t.isElementSelector()}).map(function(t){return t.element})),a=n.filter(function(t){return!s.has(t)});o.push.apply(o,a.map(function(e){return t.securityContext(e,r,i)}))}),0===o.length?[e.SecurityContext.NONE]:Array.from(new Set(o)).sort()}function de(t){var e=null,n=null,r=null,i=!1,o=null;t.attrs.forEach(function(t){var s=t.name.toLowerCase();s==Wp?e=t.value:s==Qp?n=t.value:s==Xp?r=t.value:t.name==Jp?i=!0:t.name==tl&&t.value.length>0&&(o=t.value)}),e=ye(e);var s=t.name.toLowerCase(),a=el.OTHER;return p(s)[1]==Gp?a=el.NG_CONTENT:s==$p?a=el.STYLE:s==Zp?a=el.SCRIPT:s==Kp&&r==Yp&&(a=el.STYLESHEET),new nl(a,e,n,i,o)}function ye(t){return null===t||0===t.length?"*":t}function me(t){return t.trim().split(/\s+/g)}function ve(t,e){var n=new Zo,r=p(t)[1];n.setElement(r);for(var i=0;i<e.length;i++){var o=e[i][0],s=p(o)[1],a=e[i][1];if(n.addAttribute(s,a),o.toLowerCase()==bl){var u=me(a);u.forEach(function(t){return n.addClassName(t)})}}return n}function ge(t){return t instanceof Au&&0==t.value.trim().length}function _e(t){var e=new Map;return t.forEach(function(t){e.get(t.type.reference)||e.set(t.type.reference,t)}),Array.from(e.values())}function be(t,e,n){var r=xe(t.styles,{},e,n,!1),i=new ql(r),o=t.stateNameExpr.split(/\s*,\s*/);return o.map(function(t){return new Fl(t,i)})}function we(t,e,n,r){var i=new Ql,o=[],s=t.stateChangeExpr.split(/\s*,\s*/);s.forEach(function(t){o.push.apply(o,Se(t,r))});var a=Ce(t.steps),u=Te(a,e,n,r),c=Re(u,0,i,e,r);0==r.length&&ke(c,i,r);var p=c instanceof Wl?c:new Kl([c]);return new Bl(o,p)}function Ee(t,e){switch(t){case":enter":return"void => *";case":leave":return"* => void";default:return e.push(new nh('the transition alias value "'+t+'" is not supported')),"* => *"}}function Se(t,e){var n=[];":"==t[0]&&(t=Ee(t,e));var i=t.match(/^(\*|[-\w]+)\s*(<?[=-]>)\s*(\*|[-\w]+)$/);if(!r(i)||i.length<4)return e.push(new nh("the provided "+t+" is not of a supported format")),n;var o=i[1],s=i[2],a=i[3];n.push(new Ul(o,a));var u=o==Do&&a==Do;return"<"!=s[0]||u||n.push(new Ul(a,o)),n}function Ce(t){return Array.isArray(t)?new ws(t):t}function xe(t,e,n,r,i){var o=t.offset;(o>1||0>o)&&r.push(new nh("Offset values for animations must be between 0 and 1"));var s=[];return t.styles.forEach(function(t){if("string"==typeof t)i?s.push.apply(s,Ae(t,e,r)):r.push(new nh("State based animations cannot contain references to other states"));else{var o=t,a={};Object.keys(o).forEach(function(t){var e=n.normalizeAnimationStyleProperty(t),i=n.normalizeAnimationStyleValue(e,t,o[t]),s=i.error;s&&r.push(new nh(s)),a[e]=i.value}),s.push(a)}}),s}function Te(t,e,n,r){var i=Oe(t,e,n,r);return t instanceof Es?new Es(i):new ws(i)}function Pe(t,e){if("object"==typeof e&&null!==e&&t.length>0){var n=t.length-1,r=t[n];if("object"==typeof r&&null!==r)return void(t[n]=ro.merge(r,e))}t.push(e)}function Oe(t,e,n,i){var o;if(!(t instanceof bs))return[t];o=t.steps;var s,a=[];return o.forEach(function(t){if(t instanceof gs)r(s)||(s=[]),xe(t,e,n,i,!0).forEach(function(t){Pe(s,t)});else{if(r(s)&&(a.push(new gs(0,s)),s=null),t instanceof _s){var o=t.styles;o instanceof gs?o.styles=xe(o,e,n,i,!0):o instanceof vs&&o.steps.forEach(function(t){t.styles=xe(t,e,n,i,!0)})}else if(t instanceof bs){var u=Oe(t,e,n,i);t=t instanceof Es?new Es(u):new ws(u)}a.push(t)}}),r(s)&&a.push(new gs(0,s)),a}function Ae(t,e,n){var i=[];if(":"!=t[0])n.push(new nh('Animation states via styles must be prefixed with a ":"'));else{var o=t.substring(1),s=e[o]; -},enumerable:!0,configurable:!0}),t.prototype._addCase=function(){return this._caseCount++},t.prototype._addDefault=function(t){this._defaultViews||(this._defaultViews=[]),this._defaultViews.push(t)},t.prototype._matchCase=function(t){var e=t==this._ngSwitch;return this._lastCasesMatched=this._lastCasesMatched||e,this._lastCaseCheckIndex++,this._lastCaseCheckIndex===this._caseCount&&(this._updateDefaultCases(!this._lastCasesMatched),this._lastCaseCheckIndex=0,this._lastCasesMatched=!1),e},t.prototype._updateDefaultCases=function(t){if(this._defaultViews&&t!==this._defaultUsed){this._defaultUsed=t;for(var e=0;e<this._defaultViews.length;e++){var n=this._defaultViews[e];n.enforceState(t)}}},t.decorators=[{type:e.Directive,args:[{selector:"[ngSwitch]"}]}],t.ctorParameters=function(){return[]},t.propDecorators={ngSwitch:[{type:e.Input}]},t}(),tt=function(){function t(t,e,n){this.ngSwitch=n,n._addCase(),this._view=new Z(t,e)}return t.prototype.ngDoCheck=function(){this._view.enforceState(this.ngSwitch._matchCase(this.ngSwitchCase))},t.decorators=[{type:e.Directive,args:[{selector:"[ngSwitchCase]"}]}],t.ctorParameters=function(){return[{type:e.ViewContainerRef},{type:e.TemplateRef},{type:J,decorators:[{type:e.Host}]}]},t.propDecorators={ngSwitchCase:[{type:e.Input}]},t}(),et=function(){function t(t,e,n){n._addDefault(new Z(t,e))}return t.decorators=[{type:e.Directive,args:[{selector:"[ngSwitchDefault]"}]}],t.ctorParameters=function(){return[{type:e.ViewContainerRef},{type:e.TemplateRef},{type:J,decorators:[{type:e.Host}]}]},t}(),nt=function(){function t(t){this._localization=t,this._caseViews={}}return Object.defineProperty(t.prototype,"ngPlural",{set:function(t){this._switchValue=t,this._updateView()},enumerable:!0,configurable:!0}),t.prototype.addCase=function(t,e){this._caseViews[t]=e},t.prototype._updateView=function(){this._clearViews();var t=Object.keys(this._caseViews),e=l(this._switchValue,t,this._localization);this._activateView(this._caseViews[e])},t.prototype._clearViews=function(){this._activeView&&this._activeView.destroy()},t.prototype._activateView=function(t){t&&(this._activeView=t,this._activeView.create())},t.decorators=[{type:e.Directive,args:[{selector:"[ngPlural]"}]}],t.ctorParameters=function(){return[{type:z}]},t.propDecorators={ngPlural:[{type:e.Input}]},t}(),rt=function(){function t(t,e,n,r){this.value=t;var i=!isNaN(Number(t));r.addCase(i?"="+t:t,new Z(n,e))}return t.decorators=[{type:e.Directive,args:[{selector:"[ngPluralCase]"}]}],t.ctorParameters=function(){return[{type:void 0,decorators:[{type:e.Attribute,args:["ngPluralCase"]}]},{type:e.TemplateRef},{type:e.ViewContainerRef},{type:nt,decorators:[{type:e.Host}]}]},t}(),it=function(){function t(t,e,n){this._differs=t,this._ngEl=e,this._renderer=n}return Object.defineProperty(t.prototype,"ngStyle",{set:function(t){this._ngStyle=t,!this._differ&&t&&(this._differ=this._differs.find(t).create(null))},enumerable:!0,configurable:!0}),t.prototype.ngDoCheck=function(){if(this._differ){var t=this._differ.diff(this._ngStyle);t&&this._applyChanges(t)}},t.prototype._applyChanges=function(t){var e=this;t.forEachRemovedItem(function(t){return e._setStyle(t.key,null)}),t.forEachAddedItem(function(t){return e._setStyle(t.key,t.currentValue)}),t.forEachChangedItem(function(t){return e._setStyle(t.key,t.currentValue)})},t.prototype._setStyle=function(t,e){var n=t.split("."),r=n[0],i=n[1];e=e&&i?""+e+i:e,this._renderer.setElementStyle(this._ngEl.nativeElement,r,e)},t.decorators=[{type:e.Directive,args:[{selector:"[ngStyle]"}]}],t.ctorParameters=function(){return[{type:e.KeyValueDiffers},{type:e.ElementRef},{type:e.Renderer}]},t.propDecorators={ngStyle:[{type:e.Input}]},t}(),ot=function(){function t(t){this._viewContainerRef=t}return Object.defineProperty(t.prototype,"ngOutletContext",{set:function(t){this._context=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"ngTemplateOutlet",{set:function(t){this._templateRef=t},enumerable:!0,configurable:!0}),t.prototype.ngOnChanges=function(){this._viewRef&&this._viewContainerRef.remove(this._viewContainerRef.indexOf(this._viewRef)),this._templateRef&&(this._viewRef=this._viewContainerRef.createEmbeddedView(this._templateRef,this._context))},t.decorators=[{type:e.Directive,args:[{selector:"[ngTemplateOutlet]"}]}],t.ctorParameters=function(){return[{type:e.ViewContainerRef}]},t.propDecorators={ngOutletContext:[{type:e.Input}],ngTemplateOutlet:[{type:e.Input}]},t}(),st=[K,Q,$,ot,it,J,tt,et,nt,rt],at=e.__core_private__.isPromise,ut=e.__core_private__.isObservable,ct=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},pt=function(t){function e(e){t.call(this,e);var n=new Error(e);this._nativeError=n}return ct(e,t),Object.defineProperty(e.prototype,"message",{get:function(){return this._nativeError.message},set:function(t){this._nativeError.message=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"name",{get:function(){return this._nativeError.name},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"stack",{get:function(){return this._nativeError.stack},set:function(t){this._nativeError.stack=t},enumerable:!0,configurable:!0}),e.prototype.toString=function(){return this._nativeError.toString()},e}(Error),lt=(function(t){function e(e,n){t.call(this,e+" caused by: "+(n instanceof Error?n.message:n)),this.originalError=n}return ct(e,t),Object.defineProperty(e.prototype,"stack",{get:function(){return(this.originalError instanceof Error?this.originalError:this._nativeError).stack},enumerable:!0,configurable:!0}),e}(pt),this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),ht=function(t){function e(e,n){t.call(this,"Invalid argument '"+n+"' for pipe '"+s(e)+"'")}return lt(e,t),e}(pt),ft=function(){function t(){}return t.prototype.createSubscription=function(t,e){return t.subscribe({next:e,error:function(t){throw t}})},t.prototype.dispose=function(t){t.unsubscribe()},t.prototype.onDestroy=function(t){t.unsubscribe()},t}(),dt=function(){function t(){}return t.prototype.createSubscription=function(t,e){return t.then(e,function(t){throw t})},t.prototype.dispose=function(){},t.prototype.onDestroy=function(){},t}(),yt=new dt,mt=new ft,vt=function(){function t(t){this._ref=t,this._latestValue=null,this._latestReturnedValue=null,this._subscription=null,this._obj=null,this._strategy=null}return t.prototype.ngOnDestroy=function(){this._subscription&&this._dispose()},t.prototype.transform=function(t){return this._obj?t!==this._obj?(this._dispose(),this.transform(t)):this._latestValue===this._latestReturnedValue?this._latestReturnedValue:(this._latestReturnedValue=this._latestValue,e.WrappedValue.wrap(this._latestValue)):(t&&this._subscribe(t),this._latestReturnedValue=this._latestValue,this._latestValue)},t.prototype._subscribe=function(t){var e=this;this._obj=t,this._strategy=this._selectStrategy(t),this._subscription=this._strategy.createSubscription(t,function(n){return e._updateLatestValue(t,n)})},t.prototype._selectStrategy=function(e){if(at(e))return yt;if(ut(e))return mt;throw new ht(t,e)},t.prototype._dispose=function(){this._strategy.dispose(this._subscription),this._latestValue=null,this._latestReturnedValue=null,this._subscription=null,this._obj=null},t.prototype._updateLatestValue=function(t,e){t===this._obj&&(this._latestValue=e,this._ref.markForCheck())},t.decorators=[{type:e.Pipe,args:[{name:"async",pure:!1}]}],t.ctorParameters=function(){return[{type:e.ChangeDetectorRef}]},t}(),gt={};gt.Decimal=0,gt.Percent=1,gt.Currency=2,gt[gt.Decimal]="Decimal",gt[gt.Percent]="Percent",gt[gt.Currency]="Currency";var _t=function(){function t(){}return t.format=function(t,e,n,r){var i=void 0===r?{}:r,o=i.minimumIntegerDigits,s=i.minimumFractionDigits,a=i.maximumFractionDigits,u=i.currency,c=i.currencyAsSymbol,p=void 0===c?!1:c,l={minimumIntegerDigits:o,minimumFractionDigits:s,maximumFractionDigits:a,style:gt[n].toLowerCase()};return n==gt.Currency&&(l.currency=u,l.currencyDisplay=p?"symbol":"code"),new Intl.NumberFormat(e,l).format(t)},t}(),bt=/((?:[^yMLdHhmsazZEwGjJ']+)|(?:'(?:[^']|'')*')|(?:E+|y+|M+|L+|d+|H+|h+|J+|j+|m+|s+|a|z|Z|G+|w+))(.*)/,wt={yMMMdjms:S(E([b("year",1),w("month",3),b("day",1),b("hour",1),b("minute",1),b("second",1)])),yMdjm:S(E([b("year",1),b("month",1),b("day",1),b("hour",1),b("minute",1)])),yMMMMEEEEd:S(E([b("year",1),w("month",4),w("weekday",4),b("day",1)])),yMMMMd:S(E([b("year",1),w("month",4),b("day",1)])),yMMMd:S(E([b("year",1),w("month",3),b("day",1)])),yMd:S(E([b("year",1),b("month",1),b("day",1)])),jms:S(E([b("hour",1),b("second",1),b("minute",1)])),jm:S(E([b("hour",1),b("minute",1)]))},Et={yyyy:S(b("year",4)),yy:S(b("year",2)),y:S(b("year",1)),MMMM:S(w("month",4)),MMM:S(w("month",3)),MM:S(b("month",2)),M:S(b("month",1)),LLLL:S(w("month",4)),L:S(w("month",1)),dd:S(b("day",2)),d:S(b("day",1)),HH:d(m(S(_(b("hour",2),!1)))),H:m(S(_(b("hour",1),!1))),hh:d(m(S(_(b("hour",2),!0)))),h:m(S(_(b("hour",1),!0))),jj:S(b("hour",2)),j:S(b("hour",1)),mm:d(S(b("minute",2))),m:S(b("minute",1)),ss:d(S(b("second",2))),s:S(b("second",1)),sss:S(b("second",3)),EEEE:S(w("weekday",4)),EEE:S(w("weekday",3)),EE:S(w("weekday",2)),E:S(w("weekday",1)),a:y(S(_(b("hour",1),!0))),Z:g("short"),z:g("long"),ww:S({}),w:S({}),G:S(w("era",1)),GG:S(w("era",2)),GGG:S(w("era",3)),GGGG:S(w("era",4))},St=new Map,Ct=function(){function t(){}return t.format=function(t,e,n){return C(n,t,e)},t}(),xt=/^(\d{4})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,Tt=function(){function t(t){this._locale=t}return t.prototype.transform=function(e,n){void 0===n&&(n="mediumDate");var r;if(T(e)||e!==e)return null;if("string"==typeof e&&(e=e.trim()),P(e))r=e;else if(j.isNumeric(e))r=new Date(parseFloat(e));else if("string"==typeof e&&/^(\d{4}-\d{1,2}-\d{1,2})$/.test(e)){var i=e.split("-").map(function(t){return parseInt(t,10)}),o=i[0],s=i[1],a=i[2];r=new Date(o,s-1,a)}else r=new Date(e);if(!P(r)){var u=void 0;if("string"!=typeof e||!(u=e.match(xt)))throw new ht(t,e);r=O(u)}return Ct.format(r,this._locale,t._ALIASES[n]||n)},t._ALIASES={medium:"yMMMdjms","short":"yMdjm",fullDate:"yMMMMEEEEd",longDate:"yMMMMd",mediumDate:"yMMMd",shortDate:"yMd",mediumTime:"jms",shortTime:"jm"},t.decorators=[{type:e.Pipe,args:[{name:"date",pure:!0}]}],t.ctorParameters=function(){return[{type:void 0,decorators:[{type:e.Inject,args:[e.LOCALE_ID]}]}]},t}(),Pt=/#/g,Ot=function(){function t(t){this._localization=t}return t.prototype.transform=function(e,n){if(null==e)return"";if("object"!=typeof n||null===n)throw new ht(t,n);var r=l(e,Object.keys(n),this._localization);return n[r].replace(Pt,e.toString())},t.decorators=[{type:e.Pipe,args:[{name:"i18nPlural",pure:!0}]}],t.ctorParameters=function(){return[{type:z}]},t}(),At=function(){function t(){}return t.prototype.transform=function(e,n){if(null==e)return"";if("object"!=typeof n||"string"!=typeof e)throw new ht(t,n);return n.hasOwnProperty(e)?n[e]:n.hasOwnProperty("other")?n.other:""},t.decorators=[{type:e.Pipe,args:[{name:"i18nSelect",pure:!0}]}],t.ctorParameters=function(){return[]},t}(),Mt=function(){function t(){}return t.prototype.transform=function(t){return JSON.stringify(t,null,2)},t.decorators=[{type:e.Pipe,args:[{name:"json",pure:!1}]}],t.ctorParameters=function(){return[]},t}(),Rt=function(){function t(){}return t.prototype.transform=function(e){if(o(e))return e;if("string"!=typeof e)throw new ht(t,e);return e.toLowerCase()},t.decorators=[{type:e.Pipe,args:[{name:"lowercase"}]}],t.ctorParameters=function(){return[]},t}(),kt=/^(\d+)?\.((\d+)(-(\d+))?)?$/,Nt=function(){function t(t){this._locale=t}return t.prototype.transform=function(e,n){return void 0===n&&(n=null),M(t,this._locale,e,gt.Decimal,n)},t.decorators=[{type:e.Pipe,args:[{name:"number"}]}],t.ctorParameters=function(){return[{type:void 0,decorators:[{type:e.Inject,args:[e.LOCALE_ID]}]}]},t}(),It=function(){function t(t){this._locale=t}return t.prototype.transform=function(e,n){return void 0===n&&(n=null),M(t,this._locale,e,gt.Percent,n)},t.decorators=[{type:e.Pipe,args:[{name:"percent"}]}],t.ctorParameters=function(){return[{type:void 0,decorators:[{type:e.Inject,args:[e.LOCALE_ID]}]}]},t}(),Dt=function(){function t(t){this._locale=t}return t.prototype.transform=function(e,n,r,i){return void 0===n&&(n="USD"),void 0===r&&(r=!1),void 0===i&&(i=null),M(t,this._locale,e,gt.Currency,i,n,r)},t.decorators=[{type:e.Pipe,args:[{name:"currency"}]}],t.ctorParameters=function(){return[{type:void 0,decorators:[{type:e.Inject,args:[e.LOCALE_ID]}]}]},t}(),jt=function(){function t(){}return t.prototype.transform=function(e,n,r){if(null==e)return e;if(!this.supports(e))throw new ht(t,e);return e.slice(n,r)},t.prototype.supports=function(t){return"string"==typeof t||Array.isArray(t)},t.decorators=[{type:e.Pipe,args:[{name:"slice",pure:!1}]}],t.ctorParameters=function(){return[]},t}(),Lt=function(){function t(){}return t.prototype.transform=function(e){if(o(e))return e;if("string"!=typeof e)throw new ht(t,e);return e.toUpperCase()},t.decorators=[{type:e.Pipe,args:[{name:"uppercase"}]}],t.ctorParameters=function(){return[]},t}(),Vt=[vt,Lt,Rt,Mt,jt,Nt,It,Dt,Tt,Ot,At],Ft=function(){function t(){}return t.decorators=[{type:e.NgModule,args:[{declarations:[st,Vt],exports:[st,Vt],providers:[{provide:z,useClass:W}]}]}],t.ctorParameters=function(){return[]},t}(),Ut=new e.Version("2.4.9");t.NgLocalization=z,t.CommonModule=Ft,t.NgClass=K,t.NgFor=Q,t.NgIf=$,t.NgPlural=nt,t.NgPluralCase=rt,t.NgStyle=it,t.NgSwitch=J,t.NgSwitchCase=tt,t.NgSwitchDefault=et,t.NgTemplateOutlet=ot,t.AsyncPipe=vt,t.DatePipe=Tt,t.I18nPluralPipe=Ot,t.I18nSelectPipe=At,t.JsonPipe=Mt,t.LowerCasePipe=Rt,t.CurrencyPipe=Dt,t.DecimalPipe=Nt,t.PercentPipe=It,t.SlicePipe=jt,t.UpperCasePipe=Lt,t.VERSION=Ut,t.Version=e.Version,t.PlatformLocation=k,t.LocationStrategy=N,t.APP_BASE_HREF=I,t.HashLocationStrategy=U,t.PathLocationStrategy=H,t.Location=V})}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"@angular/core":7}],6:[function(e,n,r){!function(i,o){"object"==typeof r&&"undefined"!=typeof n?o(r,e("@angular/core")):"function"==typeof t&&t.amd?t(["exports","@angular/core"],o):o((i.ng=i.ng||{},i.ng.compiler=i.ng.compiler||{}),i.ng.core)}(this,function(t,e){"use strict";function n(t,e,n){void 0===n&&(n=null);var r=[],i=t.visit?function(e){return t.visit(e,n)||e.visit(t,n)}:function(e){return e.visit(t,n)};return e.forEach(function(t){var e=i(t);e&&r.push(e)}),r}function r(t){return null!=t}function i(t){return null==t}function o(t){return"object"==typeof t&&null!==t&&Object.getPrototypeOf(t)===eo}function s(t){if("string"==typeof t)return t;if(null==t)return""+t;if(t.overriddenName)return""+t.overriddenName;if(t.name)return""+t.name;var e=t.toString(),n=e.indexOf("\n");return-1===n?e:e.substring(0,n)}function a(t){return null!==t&&("function"==typeof t||"object"==typeof t)}function u(t){return!a(t)}function c(t){return t.replace(/([.*+?^=!:${}()|[\]\/\\])/g,"\\$1")}function p(t){if(":"!=t[0])return[null,t];var e=t.indexOf(":",1);if(-1==e)throw new Error('Unsupported format "'+t+'" expecting ":namespace:name"');return[t.slice(1,e),t.slice(e+1)]}function l(t){return null===t?null:p(t)[0]}function h(t,e){return t?":"+t+":"+e:e}function f(t){return Qo[t.toLowerCase()]||Yo}function d(t){return t.replace(ss,function(){for(var t=[],e=0;e<arguments.length;e++)t[e-0]=arguments[e];return t[1].toUpperCase()})}function y(t,e){return v(t,":",e)}function m(t,e){return v(t,".",e)}function v(t,e,n){var r=t.indexOf(e);return-1==r?n:[t.slice(0,r).trim(),t.slice(r+1).trim()]}function g(t,e,n){return Array.isArray(t)?e.visitArray(t,n):o(t)?e.visitStringMap(t,n):null==t||u(t)?e.visitPrimitive(t,n):e.visitOther(t,n)}function _(t){return t.replace(/\W/g,"_")}function b(t){if(!t||!t.reference)return null;var e=t.reference;if(e instanceof Ji)return e.name;if(e.__anonymousType)return e.__anonymousType;var n=s(e);return n.indexOf("(")>=0?(n="anonymous_"+Ss++,e.__anonymousType=n):n=_(n),n}function w(t){var e=t.reference;return e instanceof Ji?e.filePath:Po.importUri(e)}function E(t){return r(t.value)?_(t.value):b(t.identifier)}function S(t){return r(t.identifier)?t.identifier.reference:t.value}function C(t,n){var r=Zo.parse(n.selector)[0].getMatchingElementTemplate();return Ps.create({isHost:!0,type:{reference:t,diDeps:[],lifecycleHooks:[]},template:new Ts({encapsulation:e.ViewEncapsulation.None,template:r,templateUrl:"",styles:[],styleUrls:[],ngContentSelectors:[],animations:[]}),changeDetection:e.ChangeDetectionStrategy.Default,inputs:[],outputs:[],host:{},isComponent:!0,selector:"*",providers:[],viewProviders:[],queries:[],viewQueries:[]})}function x(t){return t||[]}function T(t){return t>=Ns&&Vs>=t||t==Ra}function P(t){return t>=sa&&aa>=t}function O(t){return t>=ga&&Pa>=t||t>=ua&&ha>=t}function A(t){return t>=ga&&ba>=t||t>=ua&&pa>=t||P(t)}function M(){return function(t){return t}}function R(t,n){if(e.isDevMode()&&!i(n)){if(!Array.isArray(n))throw new Error("Expected '"+t+"' to be an array of strings.");for(var r=0;r<n.length;r+=1)if("string"!=typeof n[r])throw new Error("Expected '"+t+"' to be an array of strings.")}}function k(t,n){if(r(n)&&(!Array.isArray(n)||2!=n.length))throw new Error("Expected '"+t+"' to be an array, [start, end].");if(e.isDevMode()&&!i(n)){var o=n[0],s=n[1];Na.forEach(function(t){if(t.test(o)||t.test(s))throw new Error("['"+o+"', '"+s+"'] contains unusable interpolation symbol.")})}}function N(t,e){return new du(t,lu.Character,e,String.fromCharCode(e))}function I(t,e){return new du(t,lu.Identifier,0,e)}function D(t,e){return new du(t,lu.Keyword,0,e)}function j(t,e){return new du(t,lu.Operator,0,e)}function L(t,e){return new du(t,lu.String,0,e)}function V(t,e){return new du(t,lu.Number,e,"")}function F(t,e){return new du(t,lu.Error,0,e)}function U(t){return t>=ga&&Pa>=t||t>=ua&&ha>=t||t==va||t==Hs}function B(t){if(0==t.length)return!1;var e=new mu(t);if(!U(e.peek))return!1;for(e.advance();e.peek!==ks;){if(!H(e.peek))return!1;e.advance()}return!0}function H(t){return O(t)||P(t)||t==va||t==Hs}function q(t){return t==_a||t==ca}function z(t){return t==$s||t==Qs}function W(t){return t===Ws||t===Us||t===ka}function G(t){switch(t){case wa:return Is;case ba:return js;case Ea:return Ls;case Sa:return Ns;case xa:return Ds;default:return t}}function K(t){var e=c(t.start)+"([\\s\\S]*?)"+c(t.end);return new RegExp(e,"g")}function X(t,e,n){void 0===n&&(n=null);var r=[],i=t.visit?function(e){return t.visit(e,n)||e.visit(t,n)}:function(e){return e.visit(t,n)};return e.forEach(function(t){var e=i(t);e&&r.push(e)}),r}function Q(t,e,n,r,i){return void 0===r&&(r=!1),void 0===i&&(i=Da),new Hu(new xu(t,e),n,r,i).tokenize()}function Y(t){var e=t===ks?"EOF":String.fromCharCode(t);return'Unexpected character "'+e+'"'}function $(t){return'Unknown entity "'+t+'" - use the "&#<decimal>;" or "&#x<hex>;" syntax'}function Z(t){return!T(t)||t===ks}function J(t){return T(t)||t===ia||t===Js||t===Ws||t===Us||t===ra}function tt(t){return(ga>t||t>Pa)&&(ua>t||t>ha)&&(sa>t||t>aa)}function et(t){return t==ea||t==ks||!A(t)}function nt(t){return t==ea||t==ks||!O(t)}function rt(t,e,n){var r=n?t.indexOf(n.start,e)==e:!1;return t.charCodeAt(e)==Oa&&!r}function it(t){return t===ra||O(t)}function ot(t,e){return st(t)==st(e)}function st(t){return t>=ga&&Pa>=t?t-ga+ua:t}function at(t){for(var e,n=[],r=0;r<t.length;r++){var i=t[r];e&&e.type==ju.TEXT&&i.type==ju.TEXT?(e.parts[0]+=i.parts[0],e.sourceSpan.end=i.sourceSpan.end):(e=i,n.push(e))}return n}function ut(t,e){return t.length>0&&t[t.length-1]===e}function ct(t){var e=new ic(rc,t);return function(t,n,r){return e.toI18nMessage(t,n,r)}}function pt(t){return t.split(oc)[1]}function lt(t,e,n,r){var i=new fc(n,r);return i.extract(t,e)}function ht(t,e,n,r,i){var o=new fc(r,i);return o.merge(t,e,n)}function ft(t){return t instanceof Iu&&t.value&&t.value.startsWith("i18n")}function dt(t){return t instanceof Iu&&t.value&&"/i18n"===t.value}function yt(t){return t.attrs.find(function(t){return t.name===uc})||null}function mt(t){if(!t)return["",""];var e=t.indexOf("|");return-1==e?["",t]:[t.slice(0,e),t.slice(e+1)]}function vt(){return yc}function gt(t){return wt(bt(t.nodes).join("")+("["+t.meaning+"]"))}function _t(t){var e=new wc,n=t.nodes.map(function(t){return t.visit(e,null)});return Ct(n.join(""),t.meaning)}function bt(t){return t.map(function(t){return t.visit(bc,null)})}function wt(t){var e=Pt(t),n=Dt(e,Ec.Big),r=8*e.length,i=new Array(80),o=[1732584193,4023233417,2562383102,271733878,3285377520],s=o[0],a=o[1],u=o[2],c=o[3],p=o[4];n[r>>5]|=128<<24-r%32,n[(r+64>>9<<4)+15]=r;for(var l=0;l<n.length;l+=16){for(var h=[s,a,u,c,p],f=h[0],d=h[1],y=h[2],m=h[3],v=h[4],g=0;80>g;g++){i[g]=16>g?n[l+g]:Nt(i[g-3]^i[g-8]^i[g-14]^i[g-16],1);var _=Et(g,a,u,c),b=_[0],w=_[1],E=[Nt(s,5),b,p,w,i[g]].reduce(At);S=[c,u,Nt(a,30),s,E],p=S[0],c=S[1],u=S[2],a=S[3],s=S[4]}C=[At(s,f),At(a,d),At(u,y),At(c,m),At(p,v)],s=C[0],a=C[1],u=C[2],c=C[3],p=C[4]}return Ut(Vt([s,a,u,c,p]));var S,C}function Et(t,e,n,r){return 20>t?[e&n|~e&r,1518500249]:40>t?[e^n^r,1859775393]:60>t?[e&n|e&r|n&r,2400959708]:[e^n^r,3395469782]}function St(t){var e=Pt(t),n=[xt(e,0),xt(e,102072)],r=n[0],i=n[1];return 0!=r||0!=i&&1!=i||(r=319790063^r,i=-1801410264^i),[r,i]}function Ct(t,e){var n=St(t),r=n[0],i=n[1];if(e){var o=St(e),s=o[0],a=o[1];u=Rt(It([r,i],1),[s,a]),r=u[0],i=u[1]}return Bt(Vt([2147483647&r,i]));var u}function xt(t,e){var n,r=[2654435769,2654435769],i=r[0],o=r[1],s=t.length;for(n=0;s>=n+12;n+=12)i=At(i,Lt(t,n,Ec.Little)),o=At(o,Lt(t,n+4,Ec.Little)),e=At(e,Lt(t,n+8,Ec.Little)),a=Tt([i,o,e]),i=a[0],o=a[1],e=a[2];return i=At(i,Lt(t,n,Ec.Little)),o=At(o,Lt(t,n+4,Ec.Little)),e=At(e,s),e=At(e,Lt(t,n+8,Ec.Little)<<8),Tt([i,o,e])[2];var a}function Tt(t){var e=t[0],n=t[1],r=t[2];return e=kt(e,n),e=kt(e,r),e^=r>>>13,n=kt(n,r),n=kt(n,e),n^=e<<8,r=kt(r,e),r=kt(r,n),r^=n>>>13,e=kt(e,n),e=kt(e,r),e^=r>>>12,n=kt(n,r),n=kt(n,e),n^=e<<16,r=kt(r,e),r=kt(r,n),r^=n>>>5,e=kt(e,n),e=kt(e,r),e^=r>>>3,n=kt(n,r),n=kt(n,e),n^=e<<10,r=kt(r,e),r=kt(r,n),r^=n>>>15,[e,n,r]}function Pt(t){for(var e="",n=0;n<t.length;n++){var r=Ot(t,n);127>=r?e+=String.fromCharCode(r):2047>=r?e+=String.fromCharCode(192|r>>>6,128|63&r):65535>=r?e+=String.fromCharCode(224|r>>>12,128|r>>>6&63,128|63&r):2097151>=r&&(e+=String.fromCharCode(240|r>>>18,128|r>>>12&63,128|r>>>6&63,128|63&r))}return e}function Ot(t,e){if(0>e||e>=t.length)throw new Error("index="+e+' is out of range in "'+t+'"');var n=t.charCodeAt(e);if(n>=55296&&57343>=n&&t.length>e+1){var r=jt(t,e+1);if(r>=56320&&57343>=r)return 1024*(n-55296)+r-56320+65536}return n}function At(t,e){return Mt(t,e)[1]}function Mt(t,e){var n=(65535&t)+(65535&e),r=(t>>>16)+(e>>>16)+(n>>>16);return[r>>>16,r<<16|65535&n]}function Rt(t,e){var n=t[0],r=t[1],i=e[0],o=e[1],s=Mt(r,o),a=s[0],u=s[1],c=At(At(n,i),a);return[c,u]}function kt(t,e){var n=(65535&t)-(65535&e),r=(t>>16)-(e>>16)+(n>>16);return r<<16|65535&n}function Nt(t,e){return t<<e|t>>>32-e}function It(t,e){var n=t[0],r=t[1],i=n<<e|r>>>32-e,o=r<<e|n>>>32-e;return[i,o]}function Dt(t,e){for(var n=Array(t.length+3>>>2),r=0;r<n.length;r++)n[r]=Lt(t,4*r,e);return n}function jt(t,e){return e>=t.length?0:255&t.charCodeAt(e)}function Lt(t,e,n){var r=0;if(n===Ec.Big)for(var i=0;4>i;i++)r+=jt(t,e+i)<<24-8*i;else for(var i=0;4>i;i++)r+=jt(t,e+i)<<8*i;return r}function Vt(t){return t.reduce(function(t,e){return t+Ft(e)},"")}function Ft(t){for(var e="",n=0;4>n;n++)e+=String.fromCharCode(t>>>8*(3-n)&255);return e}function Ut(t){for(var e="",n=0;n<t.length;n++){var r=jt(t,n);e+=(r>>>4).toString(16)+(15&r).toString(16)}return e.toLowerCase()}function Bt(t){for(var e="",n="1",r=t.length-1;r>=0;r--)e=Ht(e,qt(jt(t,r),n)),n=qt(256,n);return e.split("").reverse().join("")}function Ht(t,e){for(var n="",r=Math.max(t.length,e.length),i=0,o=0;r>i||o;i++){var s=o+ +(t[i]||0)+ +(e[i]||0);s>=10?(o=1,n+=s-10):(o=0,n+=s)}return n}function qt(t,e){for(var n="",r=e;0!==t;t>>>=1)1&t&&(n=Ht(n,r)),r=Ht(r,r);return n}function zt(t){return t.map(function(t){return t.visit(Tc)}).join("")}function Wt(t){return kc.reduce(function(t,e){return t.replace(e[0],e[1])},t)}function Gt(t){switch(t.toLowerCase()){case"br":return"lb";case"img":return"image";default:return"x-"+t}}function Kt(t){return _t(t)}function Xt(t,e,n){return void 0===e&&(e=null),void 0===n&&(n="src"),null==e?"@angular/"+t+"/index":"@angular/"+t+"/"+n+"/"+e}function Qt(t){return Po.resolveIdentifier(t.name,t.moduleUrl,t.runtime)}function Yt(t){var e=Po.resolveIdentifier(t.name,t.moduleUrl,t.runtime);return{reference:e}}function $t(t){return{identifier:t}}function Zt(t){return $t(Yt(t))}function Jt(t,e){var n=Po.resolveEnum(Qt(t),e);return{reference:n}}function te(t){var e=new Cp;return new Ep(X(e,t),e.isExpanded,e.errors)}function ee(t,e){var n=t.cases.map(function(t){-1!=wp.indexOf(t.value)||t.value.match(/^=\d+$/)||e.push(new Sp(t.valueSourceSpan,'Plural cases should be "=<number>" or one of '+wp.join(", ")));var n=te(t.expression);return e.push.apply(e,n.errors),new Nu("template",[new ku("ngPluralCase",""+t.value,t.valueSourceSpan)],n.nodes,t.sourceSpan,t.sourceSpan,t.sourceSpan)}),r=new ku("[ngPlural]",t.switchValue,t.switchValueSourceSpan);return new Nu("ng-container",[r],n,t.sourceSpan,t.sourceSpan,t.sourceSpan)}function ne(t,e){var n=t.cases.map(function(t){var n=te(t.expression);return e.push.apply(e,n.errors),"other"===t.value?new Nu("template",[new ku("ngSwitchDefault","",t.valueSourceSpan)],n.nodes,t.sourceSpan,t.sourceSpan,t.sourceSpan):new Nu("template",[new ku("ngSwitchCase",""+t.value,t.valueSourceSpan)],n.nodes,t.sourceSpan,t.sourceSpan,t.sourceSpan)}),r=new ku("[ngSwitch]",t.switchValue,t.switchValueSourceSpan);return new Nu("ng-container",[r],n,t.sourceSpan,t.sourceSpan,t.sourceSpan)}function re(t,e){var n=e.useExisting,r=e.useValue,i=e.deps;return{token:t.token,useClass:t.useClass,useExisting:n,useFactory:t.useFactory,useValue:r,deps:i,multi:t.multi}}function ie(t,e){var n=e.eager,r=e.providers;return new Qi(t.token,t.multiProvider,t.eager||n,r,t.providerType,t.lifecycleHooks,t.sourceSpan)}function oe(t,e,n){var r=new Map;t.forEach(function(t){var i={token:{identifier:t.type},useClass:t.type};se([i],t.isComponent?Yi.Component:Yi.Directive,!0,e,n,r)});var i=t.filter(function(t){return t.isComponent}).concat(t.filter(function(t){return!t.isComponent}));return i.forEach(function(t){se(t.providers,Yi.PublicService,!1,e,n,r),se(t.viewProviders,Yi.PrivateService,!1,e,n,r)}),r}function se(t,e,n,i,o,s){t.forEach(function(t){var a=s.get(S(t.token));if(r(a)&&!!a.multiProvider!=!!t.multi&&o.push(new Tp("Mixing multi and non multi provider is not possible for token "+E(a.token),i)),a)t.multi||(a.providers.length=0),a.providers.push(t);else{var u=t.token.identifier&&t.token.identifier.lifecycleHooks?t.token.identifier.lifecycleHooks:[];a=new Qi(t.token,t.multi,n||u.length>0,[t],e,u,i),s.set(S(t.token),a)}})}function ae(t){var e=new Map;return t.viewQueries&&t.viewQueries.forEach(function(t){return ce(e,t)}),e}function ue(t){var e=new Map;return t.forEach(function(t){t.queries&&t.queries.forEach(function(t){return ce(e,t)})}),e}function ce(t,e){e.selectors.forEach(function(n){var r=t.get(S(n));r||(r=[],t.set(S(n),r)),r.push(e)})}function pe(t){if(null==t||0===t.length||"/"==t[0])return!1;var e=t.match(Ip);return null===e||"package"==e[1]||"asset"==e[1]}function le(t,e,n){var r=[],i=n.replace(Np,"").replace(kp,function(){for(var n=[],i=0;i<arguments.length;i++)n[i-0]=arguments[i];var o=n[1]||n[2];return pe(o)?(r.push(t.resolve(e,o)),""):n[0]});return new Rp(i,r)}function he(t){return"@"==t[0]}function fe(t,n,r,i){var o=[];return Zo.parse(n).forEach(function(e){var n=e.element?[e.element]:t.allKnownElementNames(),s=new Set(e.notSelectors.filter(function(t){return t.isElementSelector()}).map(function(t){return t.element})),a=n.filter(function(t){return!s.has(t)});o.push.apply(o,a.map(function(e){return t.securityContext(e,r,i)}))}),0===o.length?[e.SecurityContext.NONE]:Array.from(new Set(o)).sort()}function de(t){var e=null,n=null,r=null,i=!1,o=null;t.attrs.forEach(function(t){var s=t.name.toLowerCase();s==Wp?e=t.value:s==Qp?n=t.value:s==Xp?r=t.value:t.name==Jp?i=!0:t.name==tl&&t.value.length>0&&(o=t.value)}),e=ye(e);var s=t.name.toLowerCase(),a=el.OTHER;return p(s)[1]==Gp?a=el.NG_CONTENT:s==$p?a=el.STYLE:s==Zp?a=el.SCRIPT:s==Kp&&r==Yp&&(a=el.STYLESHEET),new nl(a,e,n,i,o)}function ye(t){return null===t||0===t.length?"*":t}function me(t){return t.trim().split(/\s+/g)}function ve(t,e){var n=new Zo,r=p(t)[1];n.setElement(r);for(var i=0;i<e.length;i++){var o=e[i][0],s=p(o)[1],a=e[i][1];if(n.addAttribute(s,a),o.toLowerCase()==bl){var u=me(a);u.forEach(function(t){return n.addClassName(t)})}}return n}function ge(t){return t instanceof Au&&0==t.value.trim().length}function _e(t){var e=new Map;return t.forEach(function(t){e.get(t.type.reference)||e.set(t.type.reference,t)}),Array.from(e.values())}function be(t,e,n){var r=xe(t.styles,{},e,n,!1),i=new ql(r),o=t.stateNameExpr.split(/\s*,\s*/);return o.map(function(t){return new Fl(t,i)})}function we(t,e,n,r){var i=new Ql,o=[],s=t.stateChangeExpr.split(/\s*,\s*/);s.forEach(function(t){o.push.apply(o,Se(t,r))});var a=Ce(t.steps),u=Te(a,e,n,r),c=Re(u,0,i,e,r);0==r.length&&ke(c,i,r);var p=c instanceof Wl?c:new Kl([c]);return new Bl(o,p)}function Ee(t,e){switch(t){case":enter":return"void => *";case":leave":return"* => void";default:return e.push(new nh('the transition alias value "'+t+'" is not supported')),"* => *"}}function Se(t,e){var n=[];":"==t[0]&&(t=Ee(t,e));var i=t.match(/^(\*|[-\w]+)\s*(<?[=-]>)\s*(\*|[-\w]+)$/);if(!r(i)||i.length<4)return e.push(new nh("the provided "+t+" is not of a supported format")),n;var o=i[1],s=i[2],a=i[3];n.push(new Ul(o,a));var u=o==Do&&a==Do;return"<"!=s[0]||u||n.push(new Ul(a,o)),n}function Ce(t){return Array.isArray(t)?new ws(t):t}function xe(t,e,n,r,i){var o=t.offset;(o>1||0>o)&&r.push(new nh("Offset values for animations must be between 0 and 1"));var s=[];return t.styles.forEach(function(t){if("string"==typeof t)i?s.push.apply(s,Ae(t,e,r)):r.push(new nh("State based animations cannot contain references to other states"));else{var o=t,a={};Object.keys(o).forEach(function(t){var e=n.normalizeAnimationStyleProperty(t),i=n.normalizeAnimationStyleValue(e,t,o[t]),s=i.error;s&&r.push(new nh(s)),a[e]=i.value}),s.push(a)}}),s}function Te(t,e,n,r){var i=Oe(t,e,n,r);return t instanceof Es?new Es(i):new ws(i)}function Pe(t,e){if("object"==typeof e&&null!==e&&t.length>0){var n=t.length-1,r=t[n];if("object"==typeof r&&null!==r)return void(t[n]=ro.merge(r,e))}t.push(e)}function Oe(t,e,n,i){var o;if(!(t instanceof bs))return[t];o=t.steps;var s,a=[];return o.forEach(function(t){if(t instanceof gs)r(s)||(s=[]),xe(t,e,n,i,!0).forEach(function(t){Pe(s,t)});else{if(r(s)&&(a.push(new gs(0,s)),s=null),t instanceof _s){var o=t.styles;o instanceof gs?o.styles=xe(o,e,n,i,!0):o instanceof vs&&o.steps.forEach(function(t){t.styles=xe(t,e,n,i,!0)})}else if(t instanceof bs){var u=Oe(t,e,n,i);t=t instanceof Es?new Es(u):new ws(u)}a.push(t)}}),r(s)&&a.push(new gs(0,s)),a}function Ae(t,e,n){var i=[];if(":"!=t[0])n.push(new nh('Animation states via styles must be prefixed with a ":"'));else{var o=t.substring(1),s=e[o];r(s)?s.styles.forEach(function(t){"object"==typeof t&&null!==t&&i.push(t)}):n.push(new nh('Unable to apply styles due to missing a state: "'+o+'"'))}return i}function Me(t,e,n,i,o){var s=t.steps.length,a=0;t.steps.forEach(function(t){return a+=r(t.offset)?1:0}),a>0&&s>a&&(o.push(new nh("Not all style() entries contain an offset for the provided keyframe()")),a=s);var u=s-1,c=0==a?1/u:0,p=[],l=0,h=!1,f=0;t.steps.forEach(function(t){var e=t.offset,n={};t.styles.forEach(function(t){Object.keys(t).forEach(function(e){ -"offset"!=e&&(n[e]=t[e])})}),r(e)?h=h||f>e:e=l==u?th:c*l,p.push([e,n]),f=e,l++}),h&&p.sort(function(t,e){return t[0]<=e[0]?-1:1});var d=p[0];d[0]!=Jl&&p.splice(0,0,d=[Jl,{}]);var y=d[1];u=p.length-1;var m=p[u];m[0]!=th&&(p.push(m=[th,{}]),u++);for(var v=m[1],g=1;u>=g;g++){var _=p[g],b=_[1];Object.keys(b).forEach(function(t){r(y[t])||(y[t]=Vo)})}for(var w=function(t){var e=p[t],n=e[1];Object.keys(n).forEach(function(t){r(v[t])||(v[t]=n[t])})},g=u-1;g>=0;g--)w(g);return p.map(function(t){return new zl(t[0],new ql([t[1]]))})}function Re(t,e,n,i,o){var s,a=0,u=e;if(t instanceof bs){var c,p=0,l=[],h=t instanceof Es;if(t.steps.forEach(function(t){var s=h?u:e;if(t instanceof gs)return t.styles.forEach(function(t){var e=t;Object.keys(e).forEach(function(t){n.insertAtTime(t,s,e[t])})}),void(c=t.styles);var f=Re(t,s,n,i,o);if(r(c)){if(t instanceof bs){var d=new ql(c);l.push(new Hl(d,[],0,0,""))}else{var y=f;(v=y.startingStyles.styles).push.apply(v,c)}c=null}var m=f.playTime;e+=m,a+=m,p=Math.max(m,p),l.push(f);var v}),r(c)){var f=new ql(c);l.push(new Hl(f,[],0,0,""))}h?(s=new Gl(l),a=p,e=u+a):s=new Kl(l)}else if(t instanceof _s){var d=Ne(t.timings,o),y=t.styles,m=void 0;if(y instanceof vs)m=Me(y,e,n,i,o);else{var v=y,g=th,_=new ql(v.styles),b=new zl(g,_);m=[b]}s=new Hl(new ql([]),m,d.duration,d.delay,d.easing),a=d.duration+d.delay,e+=a,m.forEach(function(t){return t.styles.styles.forEach(function(t){return Object.keys(t).forEach(function(r){n.insertAtTime(r,e,t[r])})})})}else s=new Hl(null,[],0,0,"");return s.playTime=a,s.startTime=u,s}function ke(t,e,n){if(t instanceof Hl&&t.keyframes.length>0){var r=t.keyframes;if(1==r.length){var i=r[0],o=Ie(i,t.startTime,t.playTime,e,n);t.keyframes=[o,i]}}else t instanceof Wl&&t.steps.forEach(function(t){return ke(t,e,n)})}function Ne(t,e){var n,o=/^([\.\d]+)(m?s)(?:\s+([\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?/i,s=0,a=null;if("string"==typeof t){var u=t.match(o);if(null===u)return e.push(new nh('The provided timing value "'+t+'" is invalid.')),new oh(0,0,null);var c=parseFloat(u[1]),p=u[2];"s"==p&&(c*=eh),n=Math.floor(c);var l=u[3],h=u[4];if(r(l)){var f=parseFloat(l);r(h)&&"s"==h&&(f*=eh),s=Math.floor(f)}var d=u[5];i(d)||(a=d)}else n=t;return new oh(n,s,a)}function Ie(t,e,n,i,o){var s={},a=e+n;return t.styles.styles.forEach(function(t){Object.keys(t).forEach(function(n){var u=t[n];if("offset"!=n){var c,p,l,h=i.indexOfAtOrBeforeTime(n,e);r(h)?(c=i.getByIndex(n,h),l=c.value,p=i.getByIndex(n,h+1)):l=Vo,r(p)&&!p.matches(a,u)&&o.push(new nh('The animated CSS property "'+n+'" unexpectedly changes between steps "'+c.time+'ms" and "'+a+'ms" at "'+p.time+'ms"')),s[n]=l}})}),new zl(Jl,new ql([s]))}function De(){return new ph}function je(){return new ph(".")}function Le(t){var e=Fe(t);return e&&e[hh.Scheme]||""}function Ve(t,e,n,i,o,s,a){var u=[];return r(t)&&u.push(t+":"),r(n)&&(u.push("//"),r(e)&&u.push(e+"@"),u.push(n),r(i)&&u.push(":"+i)),r(o)&&u.push(o),r(s)&&u.push("?"+s),r(a)&&u.push("#"+a),u.join("")}function Fe(t){return t.match(lh)}function Ue(t){if("/"==t)return"/";for(var e="/"==t[0]?"/":"",n="/"===t[t.length-1]?"/":"",r=t.split("/"),i=[],o=0,s=0;s<r.length;s++){var a=r[s];switch(a){case"":case".":break;case"..":i.length>0?i.pop():o++;break;default:i.push(a)}}if(""==e){for(;o-->0;)i.unshift("..");0===i.length&&i.push(".")}return e+i.join("/")+n}function Be(t){var e=t[hh.Path];return e=i(e)?"":Ue(e),t[hh.Path]=e,Ve(t[hh.Scheme],t[hh.UserInfo],t[hh.Domain],t[hh.Port],e,t[hh.QueryData],t[hh.Fragment])}function He(t,e){var n=Fe(encodeURI(e)),o=Fe(t);if(r(n[hh.Scheme]))return Be(n);n[hh.Scheme]=o[hh.Scheme];for(var s=hh.Scheme;s<=hh.Port;s++)i(n[s])&&(n[s]=o[s]);if("/"==n[hh.Path][0])return Be(n);var a=o[hh.Path];i(a)&&(a="/");var u=a.lastIndexOf("/");return a=a.substring(0,u+1)+n[hh.Path],n[hh.Path]=a,Be(n)}function qe(t){return t instanceof e.Directive}function ze(t,e,n){var r=new xf(t,e);return n.visitExpression(r,null)}function We(t){var e=new Tf;return e.visitAllStatements(t,null),e.varNames}function Ge(t,e){return void 0===e&&(e=null),new Lh(t,e)}function Ke(t,e){return void 0===e&&(e=null),new Gh(t,null,e)}function Xe(t,e,n){return void 0===e&&(e=null),void 0===n&&(n=null),r(t)?Qe(Ke(t),e,n):null}function Qe(t,e,n){return void 0===e&&(e=null),void 0===n&&(n=null),r(t)?new xh(t,e,n):null}function Ye(t,e){return void 0===e&&(e=null),new ef(t,e)}function $e(t,e,n){return void 0===e&&(e=null),void 0===n&&(n=!1),new rf(t.map(function(t){return new nf(t[0],t[1],n)}),e)}function Ze(t){return new Xh(t)}function Je(t,e,n){return void 0===n&&(n=null),new $h(t,e,n)}function tn(t,e){return void 0===e&&(e=null),new Wh(t,e)}function en(t){var e=""+t.fields.length,n=rn(e);return t.fields.push(new mf(n.name,null,[cf.Private])),t.ctorStmts.push(of.prop(n.name).set(Ke(Yt(_p.UNINITIALIZED))).toStmt()),new Pf(n,e)}function nn(t,e,n,r){var i=Ke(Yt(_p.checkBinding)).callFn([n,e,t.currValExpr]);return t.forceUpdate&&(i=t.forceUpdate.or(i)),t.stmts.concat([new bf(i,r.concat([of.prop(e.name).set(t.currValExpr).toStmt()]))])}function rn(t){return of.prop("_expr_"+t)}function on(t){return r(t.value)?tn(t.value):Ke(t.identifier)}function sn(t){if(0===t.length)return Ke(Yt(_p.EMPTY_INLINE_ARRAY));var e=Math.log(t.length)/Math.log(2),n=Math.ceil(e),r=n<_p.inlineArrays.length?_p.inlineArrays[n]:_p.InlineArrayDynamic,i=Yt(r);return Ke(i).instantiate([tn(t.length)].concat(t))}function an(t,e,n,r){r.fields.push(new mf(n.name,null));var i=e<_p.pureProxies.length?_p.pureProxies[e]:null;if(!i)throw new Error("Unsupported number of argument for pure functions: "+e);r.ctorStmts.push(of.prop(n.name).set(Ke(Yt(i)).callFn([t])).toStmt())}function un(t,e){var n=Object.keys(t.runtime).find(function(n){return t.runtime[n]===e});if(!n)throw new Error("Unknown enum value "+e+" in "+t.name);return Ke(Jt(t,n))}function cn(t,e,n,r,i){var o=wn(i),s=[];e||(e=new If);var a=new Nf(t,e,n,Of,i,!1),u=r.visit(a,kf.Expression);if(!u)return null;if(a.temporaryCount)for(var c=0;c<a.temporaryCount;c++)s.push(fn(i,c));if(a.needsValueUnwrapper){var p=Of.callMethod("reset",[]).toStmt();s.push(p)}return s.push(o.set(u).toDeclStmt(null,[cf.Final])),a.needsValueUnwrapper?new Mf(s,o,Of.prop("hasWrappedValue")):new Mf(s,o,null)}function pn(t,e,n,r,i){e||(e=new If);var o=new Nf(t,e,n,null,i,!0),s=[];gn(r.visit(o,kf.Statement),s),dn(o.temporaryCount,i,s);var a=s.length-1,u=null;if(a>=0){var c=s[a],p=Sn(c);p&&(u=En(i),s[a]=u.set(p.cast(Oh).notIdentical(tn(!1))).toDeclStmt(null,[cf.Final]))}return new Rf(s,u)}function ln(t){var e=[],n=We(t);return n.has(Of.name)&&e.push(Of.set(Ke(Yt(_p.ValueUnwrapper)).instantiate([])).toDeclStmt(null,[cf.Final])),e}function hn(t,e){return"tmp_"+t+"_"+e}function fn(t,e){return new lf(hn(t,e),af)}function dn(t,e,n){for(var r=t-1;r>=0;r--)n.unshift(fn(e,r))}function yn(t,e){if(t!==kf.Statement)throw new Error("Expected a statement, but saw "+e)}function mn(t,e){if(t!==kf.Expression)throw new Error("Expected an expression, but saw "+e)}function vn(t,e){return t===kf.Statement?e.toStmt():e}function gn(t,e){Array.isArray(t)?t.forEach(function(t){return gn(t,e)}):e.push(t)}function _n(t,e){if(0===e.length)return Ke(Yt(_p.EMPTY_ARRAY));for(var n=of.prop("_arr_"+t.fields.length),r=[],i=[],o=0;o<e.length;o++){var s="p"+o;r.push(new Yh(s)),i.push(Ge(s))}return an(Je(r,[new df(Ye(i))],new Th(Oh)),e.length,n,t),n.callFn(e)}function bn(t,e){if(0===e.length)return Ke(Yt(_p.EMPTY_MAP));for(var n=of.prop("_map_"+t.fields.length),r=[],i=[],o=[],s=0;s<e.length;s++){var a="p"+s;r.push(new Yh(a)),i.push([e[s][0],Ge(a)]),o.push(e[s][1])}return an(Je(r,[new df($e(i))],new Ph(Oh)),e.length,n,t),n.callFn(o)}function wn(t){return Ge("currVal_"+t)}function En(t){return Ge("pd_"+t)}function Sn(t){return t instanceof ff?t.expr:t instanceof df?t.value:null}function Cn(t,e,n,i,o,s){var a=[],u=t.prop("renderer");switch(i=xn(t,e,i,s),e.type){case Zi.Property:o&&a.push(Ke(Yt(_p.setBindingDebugInfo)).callFn([u,n,tn(e.name),i]).toStmt()),a.push(u.callMethod("setElementProperty",[n,tn(e.name),i]).toStmt());break;case Zi.Attribute:i=i.isBlank().conditional(af,i.callMethod("toString",[])),a.push(u.callMethod("setElementAttribute",[n,tn(e.name),i]).toStmt());break;case Zi.Class:a.push(u.callMethod("setElementClass",[n,tn(e.name),i]).toStmt());break;case Zi.Style:var c=i.callMethod("toString",[]);r(e.unit)&&(c=c.plus(tn(e.unit))),i=i.isBlank().conditional(af,c),a.push(u.callMethod("setElementStyle",[n,tn(e.name),i]).toStmt());break;case Zi.Animation:throw new Error("Illegal state: Should not come here!")}return a}function xn(t,n,r,i){if(n.securityContext===e.SecurityContext.NONE)return r;if(n.needsRuntimeSecurityContext||(i=un(_p.SecurityContext,n.securityContext)),!i)throw new Error("internal error, no SecurityContext given "+n.name);var o=t.prop("viewUtils").prop("sanitizer"),s=[i,r];return o.callMethod("sanitize",s)}function Tn(t,e,n,r,i,o,s,a){var u=[],c=[],p=n.name,l=e.prop("componentType").prop("animations").key(tn(p)),h=tn(Lo),f=Ke(Yt(_p.UNINITIALIZED)),d=Ge("animationTransition_"+p);c.push(d.set(l.callFn([t,o,a.equals(f).conditional(h,a),s.equals(f).conditional(h,s)])).toDeclStmt()),u.push(d.set(l.callFn([t,o,a,h])).toDeclStmt());var y=[],m=r.find(function(t){return t.isAnimation&&t.name==p&&"start"==t.phase});m&&y.push(d.callMethod("onStart",[i.callMethod(Bh.Bind,[t,tn(Hi.calcFullName(p,null,"start"))])]).toStmt());var v=r.find(function(t){return t.isAnimation&&t.name==p&&"done"==t.phase});return v&&y.push(d.callMethod("onDone",[i.callMethod(Bh.Bind,[t,tn(Hi.calcFullName(p,null,"done"))])]).toStmt()),c.push.apply(c,y),u.push.apply(u,y),{updateStmts:c,detachStmts:u}}function Pn(t){var e=t.parentArgs||[],n=t.parent?[sf.callFn(e).toStmt()]:[],r=On(Array.isArray(t.builders)?t.builders:[t.builders]),i=new vf(null,t.ctorParams||[],n.concat(r.ctorStmts));return new _f(t.name,t.parent,r.fields,r.getters,i,r.methods,t.modifiers||[])}function On(t){return{fields:(e=[]).concat.apply(e,t.map(function(t){return t.fields||[]})),methods:(n=[]).concat.apply(n,t.map(function(t){return t.methods||[]})),getters:(r=[]).concat.apply(r,t.map(function(t){return t.getters||[]})),ctorStmts:(i=[]).concat.apply(i,t.map(function(t){return t.ctorStmts||[]}))};var e,n,r,i}function An(t){var e=Ge("changed"),n=[e.set(of.prop(Uf)).toDeclStmt(),of.prop(Uf).set(tn(!1)).toStmt()],r=[];if(t.genChanges){var i=[];t.ngOnChanges&&i.push(of.prop(Vf).callMethod("ngOnChanges",[of.prop(Ff)]).toStmt()),t.compilerConfig.logBindingUpdate&&i.push(Ke(Yt(_p.setBindingDebugInfoForChanges)).callFn([Wf.prop("renderer"),Kf,of.prop(Ff)]).toStmt()),i.push(Qf),r.push(new bf(e,i))}t.ngOnInit&&r.push(new bf(Wf.prop("numberOfChecks").identical(new Wh(0)),[of.prop(Vf).callMethod("ngOnInit",[]).toStmt()])),t.ngDoCheck&&r.push(of.prop(Vf).callMethod("ngDoCheck",[]).toStmt()),r.length>0&&n.push(new bf(Ze(qf),r)),n.push(new df(e)),t.methods.push(new vf("ngDoCheck",[new Yh(Wf.name,Xe(Yt(_p.AppView),[Oh])),new Yh(Kf.name,Oh),new Yh(qf.name,Ah)],n,Ah))}function Mn(t,e){var n=en(e),r=[of.prop(Uf).set(tn(!0)).toStmt(),of.prop(Vf).prop(t).set(Hf).toStmt()];e.genChanges&&r.push(of.prop(Ff).key(tn(t)).set(Ke(Yt(_p.SimpleChange)).instantiate([n.expression,Hf])).toStmt());var i=nn({currValExpr:Hf,forceUpdate:zf,stmts:[]},n.expression,qf,r);e.methods.push(new vf("check_"+t,[new Yh(Hf.name,Oh),new Yh(qf.name,Ah),new Yh(zf.name,Ah)],i))}function Rn(t,e,n){var r=[],i=[new Yh(Wf.name,Xe(Yt(_p.AppView),[Oh])),new Yh(Gf.name,Xe(Yt(_p.AppView),[Oh])),new Yh(Kf.name,Oh),new Yh(qf.name,Ah)];t.forEach(function(t){var o=en(n),s=cn(n,null,of.prop(Vf),t.value,o.bindingId);if(s){var a;t.needsRuntimeSecurityContext&&(a=Ge("secCtx_"+i.length),i.push(new Yh(a.name,Xe(Yt(_p.SecurityContext)))));var u;if(t.isAnimation){var c=Tn(Wf,Gf,t,e,of.prop(Bf).or(Ke(Yt(_p.noop))),Kf,s.currValExpr,o.expression),p=c.updateStmts,l=c.detachStmts;u=p,(h=n.detachStmts).push.apply(h,l)}else u=Cn(Wf,t,Kf,s.currValExpr,n.compilerConfig.logBindingUpdate,a);r.push.apply(r,nn(s,o.expression,qf,u));var h}}),n.methods.push(new vf("checkHost",i,r))}function kn(t,e){var n=Ge("result"),r=[n.set(tn(!0)).toDeclStmt(Ah)];t.forEach(function(t,i){var o=pn(e,null,of.prop(Vf),t.handler,"sub_"+i),s=o.stmts;o.preventDefault&&s.push(n.set(o.preventDefault.and(n)).toStmt()),r.push(new bf(Xf.equals(tn(t.fullName)),s))}),r.push(new df(n)),e.methods.push(new vf("handleEvent",[new Yh(Xf.name,Rh),new Yh(Af.event.name,Oh)],r,Ah))}function Nn(t,e){var n=[new Yh(Wf.name,Xe(Yt(_p.AppView),[Oh])),new Yh(Bf,Oh)],r=[of.prop(Bf).set(Ge(Bf)).toStmt()];Object.keys(t.outputs).forEach(function(i,o){var s=t.outputs[i],a="emit"+o;n.push(new Yh(a,Ah));var u="subscription"+o;e.fields.push(new mf(u,Oh)),r.push(new bf(Ge(a),[of.prop(u).set(of.prop(Vf).prop(i).callMethod(Bh.SubscribeObservable,[Ge(Bf).callMethod(Bh.Bind,[Wf,tn(s)])])).toStmt()])),e.destroyStmts.push(of.prop(u).and(of.prop(u).callMethod("unsubscribe",[])).toStmt())}),e.methods.push(new vf("subscribe",n,r))}function In(t,e,n){var r=[],i=new qp(e,Da,n,[],r),o=w(t.type),s=o?"in Directive "+b(t.type)+" in "+o:"in Directive "+b(t.type),a=new xu("",s),u=new Tu(new Cu(a,null,null,null),new Cu(a,null,null,null)),c=i.createDirectiveHostPropertyAsts(t.toSummary(),u),p=i.createDirectiveHostEventAsts(t.toSummary(),u);return new Zf(c,p,r)}function Dn(t){var e=t.filter(function(t){return t.level===Pu.WARNING}),n=t.filter(function(t){return t.level===Pu.FATAL});if(e.length>0&&this._console.warn("Directive parse warnings:\n"+e.join("\n")),n.length>0)throw new Error("Directive parse errors:\n"+n.join("\n"))}function jn(t,e){return Po.hasLifecycleHook(e,Ln(t))}function Ln(t){switch(t){case ao.OnInit:return"ngOnInit";case ao.OnDestroy:return"ngOnDestroy";case ao.DoCheck:return"ngDoCheck";case ao.OnChanges:return"ngOnChanges";case ao.AfterContentInit:return"ngAfterContentInit";case ao.AfterContentChecked:return"ngAfterContentChecked";case ao.AfterViewInit:return"ngAfterViewInit";case ao.AfterViewChecked:return"ngAfterViewChecked"}}function Vn(t){return t instanceof e.NgModule}function Fn(t){return t instanceof e.Pipe}function Un(t,n){if(void 0===n&&(n=[]),t)for(var r=0;r<t.length;r++){var i=e.resolveForwardRef(t[r]);Array.isArray(i)?Un(i,n):n.push(i)}return n}function Bn(t){return t?Array.from(new Set(t)):[]}function Hn(t){return Bn(Un(t))}function qn(t){return t instanceof Ji||t instanceof e.Type}function zn(t,e,n){if(e instanceof Ji)return e.filePath;var r=n.moduleId;if("string"==typeof r){var i=Le(r);return i?r:"package:"+r+os}if(null!==r&&void 0!==r)throw new cs('moduleId should be a string in "'+Gn(e)+"\". See https://goo.gl/wIDDiL for more information.\nIf you're using Webpack you should inline the template and the styles, see https://goo.gl/X2J8zc.");return t.importUri(e)}function Wn(t,e){g(t,new dd,e)}function Gn(t){return t instanceof Ji?t.name+" in "+t.filePath:s(t)}function Kn(t,e){return void 0===e&&(e=null),g(t,new md,e)}function Xn(t,e,n){if(void 0===n&&(n=!0),i(t))return null;var r=t.replace(xd,function(){for(var t=[],n=0;n<arguments.length;n++)t[n-0]=arguments[n];return"$"==t[0]?e?"\\$":"$":"\n"==t[0]?"\\n":"\r"==t[0]?"\\r":"\\"+t[0]}),o=n||!Td.test(r);return o?"'"+r+"'":r}function Qn(t){for(var e="",n=0;t>n;n++)e+=" ";return e}function Yn(t){var e=new Dd(Nd),n=Md.createRoot([]),r=Array.isArray(t)?t:[t];return r.forEach(function(t){if(t instanceof pf)t.visitStatement(e,n);else if(t instanceof Dh)t.visitExpression(e,n);else{if(!(t instanceof Eh))throw new Error("Don't know how to print debug info for "+t);t.visitType(e,n)}}),n.toSource()}function $n(t,e){for(var n=0,r=e;n<r.length;n++){var i=r[n];jd[i.toLowerCase()]=t}}function Zn(t){switch(t){case"width":case"height":case"minWidth":case"minHeight":case"maxWidth":case"maxHeight":case"left":case"top":case"bottom":case"right":case"fontSize":case"outlineWidth":case"outlineOffset":case"paddingTop":case"paddingLeft":case"paddingBottom":case"paddingRight":case"marginTop":case"marginLeft":case"marginBottom":case"marginRight":case"borderRadius":case"borderWidth":case"borderTopWidth":case"borderLeftWidth":case"borderRightWidth":case"borderBottomWidth":case"textIndent":return!0;default:return!1}}function Jn(t){return t.replace(ly,"")}function tr(t){var e=t.match(hy);return e?e[0]:""}function er(t,e){var n=nr(t),r=0;return n.escapedString.replace(fy,function(){for(var t=[],i=0;i<arguments.length;i++)t[i-0]=arguments[i];var o=t[2],s="",a=t[4],u="";a&&a.startsWith("{"+vy)&&(s=n.blocks[r++],a=a.substring(vy.length+1),u="{");var c=e(new gy(o,s));return""+t[1]+c.selector+t[3]+u+c.content+a})}function nr(t){for(var e=t.split(dy),n=[],r=[],i=0,o=[],s=0;s<e.length;s++){var a=e[s];a==my&&i--,i>0?o.push(a):(o.length>0&&(r.push(o.join("")),n.push(vy),o=[]),n.push(a)),a==yy&&i++}return o.length>0&&(r.push(o.join("")),n.push(vy)),new _y(n.join(""),r)}function rr(t){var e="styles";return t&&(e+="_"+b(t.type)),e}function ir(t,e,n){if(e===n)return t;for(var r=of,i=e;i!==n&&i.declarationElement.view;)i=i.declarationElement.view,r=r.prop("parentView");if(i!==n)throw new Error("Internal error: Could not calculate a property in a parent view: "+t);return t.visitExpression(new Ny(r,n),null)}function or(t,e,n){var r;r=t.viewType===go.HOST?of:of.prop("parentView");var i=[on(e),of.prop("parentIndex")];return n&&i.push(af),r.callMethod("injectorGet",i)}function sr(t,e){return"View_"+b(t.type)+e}function ar(t){return"handleEvent_"+t}function ur(t){return io.flatten(t.values.map(function(t){return t instanceof Iy?cr(t.view.declarationElement.viewContainer,t.view,ur(t)):t}))}function cr(t,e,n){var r=n.map(function(t){return ze(of.name,Ge("nestedView"),t)});return t.callMethod("mapNestedViews",[Ge(e.className),Je([new Yh("nestedView",e.classType)],[new df(Ye(r))],Oh)])}function pr(t,e){e.fields.push(new mf(t,Xe(Yt(_p.QueryList),[Oh])));var n=of.prop(t);return e.createMethod.addStmt(of.prop(t).set(Ke(Yt(_p.QueryList),[Oh]).instantiate([])).toStmt()),n}function lr(t,e){e.meta.selectors.forEach(function(n){var r=t.get(S(n));r||(r=[],t.set(S(n),r)),r.push(e)})}function hr(t,e,n,r){var i;return i=e>0?tn(t).lowerEquals(By.requestNodeIndex).and(By.requestNodeIndex.lowerEquals(tn(t+e))):tn(t).identical(By.requestNodeIndex),new bf(By.token.identical(on(n.token)).and(i),[new df(r)])}function fr(t,e,n,r,i){var o,s,a=i.view;if(n?(o=Ye(e),s=new Th(Oh)):(o=e[0],s=e[0].type),s||(s=Oh),r)a.fields.push(new mf(t,s)),a.createMethod.addStmt(of.prop(t).set(o).toStmt());else{var u="_"+t;a.fields.push(new mf(u,s));var c=new Ry(a);c.resetDebugInfo(i.nodeIndex,i.sourceAst),c.addStmt(new bf(of.prop(u).isBlank(),[of.prop(u).set(o).toStmt()])),c.addStmt(new df(of.prop(u))),a.getters.push(new gf(t,c.finish(),s))}return of.prop(t)}function dr(t,e){for(var n=null,r=t.pipeMetas.length-1;r>=0;r--){var i=t.pipeMetas[r];if(i.name==e){n=i;break}}if(!n)throw new Error("Illegal state: Could not find pipe "+e+" although the parser should have detected this error!");return n}function yr(t,e){return e>0?go.EMBEDDED:t.isHost?go.HOST:go.COMPONENT}function mr(t,e,n,r){var i=vr(t,e);return i.size?(r&&gr(i,n),_r(i,e,n),br(t,e,n),!0):!1}function vr(t,e){var n=new Map;return t.forEach(function(t){n.set(t.fullName,t)}),e.forEach(function(t){t.hostEvents.forEach(function(t){n.set(t.fullName,t)})}),n}function gr(t,e){var n=[];if(t.forEach(function(t){t.phase||n.push(tn(t.name),tn(t.target))}),n.length){var r=Ge("disposable_"+e.view.disposables.length);e.view.disposables.push(r),e.view.createMethod.addStmt(r.set(Ke(Yt(_p.subscribeToRenderElement)).callFn([of,e.renderNode,sn(n),wr(e)])).toDeclStmt(kh,[cf.Private]))}}function _r(t,e,n){var r=Array.from(t.keys());e.forEach(function(t){var e=n.directiveWrapperInstance.get(t.directive.type.reference);n.view.createMethod.addStmts(Jf.subscribe(t.directive,t.hostProperties,r,e,of,wr(n)))})}function br(t,e,n){var r=e.some(function(t){return t.hostEvents.some(function(){return t.directive.isComponent})}),i=r?n.compViewExpr:of,o=new Ry(n.view);o.resetDebugInfo(n.nodeIndex,n.sourceAst),o.push(i.callMethod("markPathToRootAsCheckOnce",[]).toStmt());var s=Ge("eventName"),a=Ge("result");o.push(a.set(tn(!0)).toDeclStmt(Ah)),e.forEach(function(t){var e=n.directiveWrapperInstance.get(t.directive.type.reference);t.hostEvents.length>0&&o.push(a.set(Jf.handleEvent(t.hostEvents,e,s,Af.event).and(a)).toStmt())}),t.forEach(function(t,e){var r=pn(n.view,n.view,n.view.componentContext,t.handler,"sub_"+e),i=r.stmts;r.preventDefault&&i.push(a.set(r.preventDefault.and(a)).toStmt()),o.push(new bf(s.equals(tn(t.fullName)),i))}),o.push(new df(a)),n.view.methods.push(new vf(ar(n.nodeIndex),[new Yh(s.name,Rh),new Yh(Af.event.name,Oh)],o.finish(),Ah))}function wr(t){var e=ar(t.nodeIndex);return of.callMethod("eventHandler",[of.prop(e)])}function Er(t,e,n){var r=n.view,i=t.type.lifecycleHooks,o=r.afterContentLifecycleCallbacksMethod;o.resetDebugInfo(n.nodeIndex,n.sourceAst),-1!==i.indexOf(ao.AfterContentInit)&&o.addStmt(new bf(Jy,[e.callMethod("ngAfterContentInit",[]).toStmt()])),-1!==i.indexOf(ao.AfterContentChecked)&&o.addStmt(e.callMethod("ngAfterContentChecked",[]).toStmt())}function Sr(t,e,n){var r=n.view,i=t.type.lifecycleHooks,o=r.afterViewLifecycleCallbacksMethod;o.resetDebugInfo(n.nodeIndex,n.sourceAst),-1!==i.indexOf(ao.AfterViewInit)&&o.addStmt(new bf(Jy,[e.callMethod("ngAfterViewInit",[]).toStmt()])),-1!==i.indexOf(ao.AfterViewChecked)&&o.addStmt(e.callMethod("ngAfterViewChecked",[]).toStmt())}function Cr(t,e,n){n.view.destroyMethod.addStmts(Jf.ngOnDestroy(t.directive,e)),n.view.detachMethod.addStmts(Jf.ngOnDetach(t.hostProperties,e,of,n.compViewExpr||of,n.renderNode))}function xr(t,e,n){var r=n.view.destroyMethod;r.resetDebugInfo(n.nodeIndex,n.sourceAst),t.providerType!==Yi.Directive&&t.providerType!==Yi.Component&&-1!==t.lifecycleHooks.indexOf(ao.OnDestroy)&&r.addStmt(e.callMethod("ngOnDestroy",[]).toStmt())}function Tr(t,e,n){var r=n.destroyMethod;-1!==t.type.lifecycleHooks.indexOf(ao.OnDestroy)&&r.addStmt(e.callMethod("ngOnDestroy",[]).toStmt())}function Pr(t,e,n){var r=en(n),i=cn(n,n,n.componentContext,t.value,r.bindingId);return i?(n.detectChangesRenderPropertiesMethod.resetDebugInfo(e.nodeIndex,t),void n.detectChangesRenderPropertiesMethod.addStmts(nn(i,r.expression,Hy.throwOnChange,[of.prop("renderer").callMethod("setText",[e.renderNode,i.currValExpr]).toStmt()]))):null}function Or(t,e,n,r){var i=r.view,o=r.renderNode;t.forEach(function(t){var s=en(i);i.detectChangesRenderPropertiesMethod.resetDebugInfo(r.nodeIndex,t);var a=cn(i,i,r.view.componentContext,t.value,s.bindingId);if(a){var u=[],c=i.detectChangesRenderPropertiesMethod;switch(t.type){case Zi.Property:case Zi.Attribute:case Zi.Class:case Zi.Style:u.push.apply(u,Cn(of,t,o,a.currValExpr,i.genConfig.logBindingUpdate));break;case Zi.Animation:c=i.animationBindingsMethod;var p=Tn(of,of,t,e,(n?of.prop(ar(r.nodeIndex)):Ke(Yt(_p.noop))).callMethod(Bh.Bind,[of]),r.renderNode,a.currValExpr,s.expression),l=p.updateStmts,h=p.detachStmts;u.push.apply(u,l),i.detachMethod.addStmts(h)}c.addStmts(nn(a,s.expression,Hy.throwOnChange,u))}})}function Ar(t,e,n,r,i){var o=t.hostProperties.filter(function(t){return t.needsRuntimeSecurityContext}).map(function(t){var e;switch(t.type){case Zi.Property:e=i.securityContext(r,t.name,!1);break;case Zi.Attribute:e=i.securityContext(r,t.name,!0);break;default:throw new Error("Illegal state: Only property / attribute bindings can have an unknown security context! Binding "+t.name)}return un(_p.SecurityContext,e)});n.view.detectChangesRenderPropertiesMethod.addStmts(Jf.checkHost(t.hostProperties,e,of,n.compViewExpr||of,n.renderNode,Hy.throwOnChange,o))}function Mr(t,e,n,r){var i=r.view,o=i.detectChangesInInputsMethod;o.resetDebugInfo(r.nodeIndex,r.sourceAst),t.inputs.forEach(function(t,s){var a=r.nodeIndex+"_"+n+"_"+s;o.resetDebugInfo(r.nodeIndex,t);var u=cn(i,i,i.componentContext,t.value,a);u&&(o.addStmts(u.stmts),o.addStmt(e.callMethod("check_"+t.directiveName,[u.currValExpr,Hy.throwOnChange,u.forceUpdate||tn(!1)]).toStmt()))});var s=t.directive.isComponent&&!oo(t.directive.changeDetection),a=Jf.ngDoCheck(e,of,r.renderNode,Hy.throwOnChange),u=s?new bf(a,[r.compViewExpr.callMethod("markAsCheckOnce",[]).toStmt()]):a.toStmt();o.addStmt(u)}function Rr(t){var e=[];t.getProviderTokens().forEach(function(n){var r=t.getQueriesFor(n);e.push.apply(e,r.map(function(t){return new tm(t,n)}))}),Object.keys(t.referenceTokens).forEach(function(n){var r={value:n};e.push.apply(e,t.getQueriesFor(r).map(function(t){return new tm(t,r)}))}),e.forEach(function(e){var n;if(e.read.identifier)n=t.instances.get(S(e.read));else{var r=t.referenceTokens[e.read.value];n=r?t.instances.get(S(r)):t.elementRef}n&&e.query.addValue(n,t.view)})}function kr(t,e,r){var i=new em(t,r);n(i,e),t.pipes.forEach(function(t){Tr(t.meta,t.instance,t.view)})}function Nr(t,e,r){var i=new um(t,r),o=t.declarationElement.isNull()?t.declarationElement:t.declarationElement.parent;return n(i,e,o),(t.viewType===go.EMBEDDED||t.viewType===go.HOST)&&(t.lastRenderNode=i.getOrCreateLastRenderNode()),i.nestedViewCount}function Ir(t,e){t.nodes.forEach(function(t){t instanceof Xy&&(t.finish(),t.hasEmbeddedView&&Ir(t.embeddedView,e))}),t.finish(),Br(t,e)}function Dr(t){for(var e=t.view;Lr(t.parent,e);)t=t.parent;return t}function jr(t){for(var e=t.view;Lr(t,e);)t=t.parent;return t}function Lr(t,e){return!t.isNull()&&t.sourceAst.name===om&&t.view===e}function Vr(t,e){var n={};Object.keys(t).forEach(function(e){n[e]=t[e]}),e.forEach(function(t){Object.keys(t.hostAttributes).forEach(function(e){var i=t.hostAttributes[e],o=n[e];n[e]=r(o)?Ur(e,o,i):i})});var i=[];return Object.keys(n).sort().forEach(function(t){i.push(t,n[t])}),i}function Fr(t){var e={};return t.forEach(function(t){e[t.name]=t.value}),e}function Ur(t,e,n){return t==rm||t==im?e+" "+n:n}function Br(t,e){var n=af;t.genConfig.genDebugInfo&&(n=Ge("nodeDebugInfos_"+b(t.component.type)+t.viewIndex),e.push(n.set(Ye(t.nodes.map(Hr),new Th(Xe(Yt(_p.StaticNodeDebugInfo)),[wh.Const]))).toDeclStmt(null,[cf.Final])));var r=Ge("renderType_"+b(t.component.type));if(0===t.viewIndex){var i=void 0;i=t.component.template.templateUrl==w(t.component.type)?w(t.component.type)+" class "+b(t.component.type)+" - inline template":t.component.template.templateUrl,e.push(r.set(Ke(Yt(_p.createRenderComponentType)).callFn([tn(t.genConfig.genDebugInfo?i:""),tn(t.component.template.ngContentSelectors.length),Ly.fromValue(t.component.template.encapsulation),t.styles,$e(t.animations.map(function(t){return[t.name,t.fnExp]}),null,!0)])).toDeclStmt(Xe(Yt(_p.RenderComponentType))))}var o=qr(t,r,n);e.push(o)}function Hr(t){var e=t instanceof Xy?t:null,n=[],i=af,o=[];return r(e)&&(n=e.getProviderTokens().map(function(t){return on(t)}),r(e.component)&&(i=on($t(e.component.type))),Object.keys(e.referenceTokens).forEach(function(t){var n=e.referenceTokens[t];o.push([t,r(n)?on(n):af])})),Ke(Yt(_p.StaticNodeDebugInfo)).instantiate([Ye(n,new Th(Oh,[wh.Const])),i,$e(o,new Ph(Oh,[wh.Const]))],Xe(Yt(_p.StaticNodeDebugInfo),null,[wh.Const]))}function qr(t,e,n){var r=[new Yh(Fy.viewUtils.name,Xe(Yt(_p.ViewUtils))),new Yh(Fy.parentView.name,Xe(Yt(_p.AppView),[Oh])),new Yh(Fy.parentIndex.name,Mh),new Yh(Fy.parentElement.name,Oh)],i=[Ge(t.className),e,jy.fromValue(t.viewType),Fy.viewUtils,Fy.parentView,Fy.parentIndex,Fy.parentElement,Vy.fromValue(Qr(t))];t.genConfig.genDebugInfo&&i.push(n),t.viewType===go.EMBEDDED&&(r.push(new Yh("declaredViewContainer",Xe(Yt(_p.ViewContainer)))),i.push(Ge("declaredViewContainer")));var o=[new vf("createInternal",[new Yh(am.name,Rh)],Wr(t),Xe(Yt(_p.ComponentRef),[Oh])),new vf("injectorGetInternal",[new Yh(By.token.name,Oh),new Yh(By.requestNodeIndex.name,Mh),new Yh(By.notFoundResult.name,Oh)],Kr(t.injectorGetMethod.finish(),By.notFoundResult),Oh),new vf("detectChangesInternal",[new Yh(Hy.throwOnChange.name,Ah)],Gr(t)),new vf("dirtyParentQueriesInternal",[],t.dirtyParentQueriesMethod.finish()),new vf("destroyInternal",[],zr(t)),new vf("detachInternal",[],t.detachMethod.finish()),Yr(t),$r(t),Jr(t)].filter(function(t){return t.body.length>0}),s=t.genConfig.genDebugInfo?_p.DebugAppView:_p.AppView,a=Pn({name:t.className,parent:Ke(Yt(s),[Xr(t)]),parentArgs:i,ctorParams:r,builders:[{methods:o},t]});return a}function zr(t){var e=[];return t.viewContainers.forEach(function(t){e.push(t.callMethod("destroyNestedViews",[]).toStmt())}),t.viewChildren.forEach(function(t){e.push(t.callMethod("destroy",[]).toStmt())}),e.push.apply(e,t.destroyMethod.finish()),e}function Wr(t){var e=af,n=[];t.viewType===go.COMPONENT&&(e=Uy.renderer.callMethod("createViewRoot",[of.prop("parentElement")]),n=[sm.set(e).toDeclStmt(Xe(t.genConfig.renderTypes.renderNode),[cf.Final])]);var r;if(t.viewType===go.HOST){var i=t.nodes[0];r=Ke(Yt(_p.ComponentRef_),[Oh]).instantiate([tn(i.nodeIndex),of,i.renderNode,i.getComponent()])}else r=af;var o=Uy.renderer.cast(Oh).prop("directRenderer").conditional(af,Ye(t.nodes.map(function(t){return t.renderNode})));return n.concat(t.createMethod.finish(),[of.callMethod("init",[t.lastRenderNode,o,t.disposables.length?Ye(t.disposables):af]).toStmt(),new df(r)])}function Gr(t){var e=[];if(t.animationBindingsMethod.isEmpty()&&t.detectChangesInInputsMethod.isEmpty()&&t.updateContentQueriesMethod.isEmpty()&&t.afterContentLifecycleCallbacksMethod.isEmpty()&&t.detectChangesRenderPropertiesMethod.isEmpty()&&t.updateViewQueriesMethod.isEmpty()&&t.afterViewLifecycleCallbacksMethod.isEmpty()&&0===t.viewContainers.length&&0===t.viewChildren.length)return e;e.push.apply(e,t.animationBindingsMethod.finish()),e.push.apply(e,t.detectChangesInInputsMethod.finish()),t.viewContainers.forEach(function(t){e.push(t.callMethod("detectChangesInNestedViews",[Hy.throwOnChange]).toStmt())});var n=t.updateContentQueriesMethod.finish().concat(t.afterContentLifecycleCallbacksMethod.finish());n.length>0&&e.push(new bf(Ze(Hy.throwOnChange),n)),e.push.apply(e,t.detectChangesRenderPropertiesMethod.finish()),t.viewChildren.forEach(function(t){e.push(t.callMethod("internalDetectChanges",[Hy.throwOnChange]).toStmt())});var r=t.updateViewQueriesMethod.finish().concat(t.afterViewLifecycleCallbacksMethod.finish());r.length>0&&e.push(new bf(Ze(Hy.throwOnChange),r));var i=[],o=We(e);return o.has(Hy.changed.name)&&i.push(Hy.changed.set(tn(!0)).toDeclStmt(Ah)),o.has(Hy.changes.name)&&i.push(Hy.changes.set(af).toDeclStmt(new Ph(Xe(Yt(_p.SimpleChange))))),i.push.apply(i,ln(e)),i.concat(e)}function Kr(t,e){return t.length>0?t.concat([new df(e)]):t}function Xr(t){return t.viewType===go.COMPONENT?Xe(t.component.type):Oh}function Qr(t){var e;return e=t.viewType===go.COMPONENT?oo(t.component.changeDetection)?so.CheckAlways:so.CheckOnce:so.CheckAlways}function Yr(t){var e=Ge("cb"),n=Ge("ctx"),r=Zr(t.rootNodes,e,n);return new vf("visitRootNodesInternal",[new Yh(e.name,Oh),new Yh(n.name,Oh)],r)}function $r(t){var e=Ge("nodeIndex"),n=Ge("ngContentIndex"),r=Ge("cb"),i=Ge("ctx"),o=[];return t.nodes.forEach(function(t){t instanceof Xy&&t.component&&t.contentNodesByNgContentIndex.forEach(function(s,a){o.push(new bf(e.equals(tn(t.nodeIndex)).and(n.equals(tn(a))),Zr(s,r,i)))})}),new vf("visitProjectableNodesInternal",[new Yh(e.name,Mh),new Yh(n.name,Mh),new Yh(r.name,Oh),new Yh(i.name,Oh)],o)}function Zr(t,e,n){var r=[];return t.forEach(function(t){switch(t.type){case Yy.Node:r.push(e.callFn([t.expr,n]).toStmt());break;case Yy.ViewContainer:r.push(e.callFn([t.expr.prop("nativeElement"),n]).toStmt()),r.push(t.expr.callMethod("visitNestedViewRootNodes",[e,n]).toStmt());break;case Yy.NgContent:r.push(of.callMethod("visitProjectedNodes",[tn(t.ngContentIndex),e,n]).toStmt())}}),r}function Jr(t){var e=Ge("nodeIndex"),n=[];return t.nodes.forEach(function(t){t instanceof Xy&&t.embeddedView&&n.push(new bf(e.equals(tn(t.nodeIndex)),[new df(t.embeddedView.classExpr.instantiate([Uy.viewUtils,of,tn(t.nodeIndex),t.renderNode,t.viewContainer]))]))}),n.length>0&&n.push(new df(af)),new vf("createEmbeddedViewInternal",[new Yh(e.name,Mh)],n,Xe(Yt(_p.AppView),[Oh]))}function ti(t,e){var n=tn(Lo);switch(e){case Lo:return t.equals(n);case Do:return tn(!0); +r(s)?s.styles.forEach(function(t){"object"==typeof t&&null!==t&&i.push(t)}):n.push(new nh('Unable to apply styles due to missing a state: "'+o+'"'))}return i}function Me(t,e,n,i,o){var s=t.steps.length,a=0;t.steps.forEach(function(t){return a+=r(t.offset)?1:0}),a>0&&s>a&&(o.push(new nh("Not all style() entries contain an offset for the provided keyframe()")),a=s);var u=s-1,c=0==a?1/u:0,p=[],l=0,h=!1,f=0;t.steps.forEach(function(t){var e=t.offset,n={};t.styles.forEach(function(t){Object.keys(t).forEach(function(e){"offset"!=e&&(n[e]=t[e])})}),r(e)?h=h||f>e:e=l==u?th:c*l,p.push([e,n]),f=e,l++}),h&&p.sort(function(t,e){return t[0]<=e[0]?-1:1});var d=p[0];d[0]!=Jl&&p.splice(0,0,d=[Jl,{}]);var y=d[1];u=p.length-1;var m=p[u];m[0]!=th&&(p.push(m=[th,{}]),u++);for(var v=m[1],g=1;u>=g;g++){var _=p[g],b=_[1];Object.keys(b).forEach(function(t){r(y[t])||(y[t]=Vo)})}for(var w=function(t){var e=p[t],n=e[1];Object.keys(n).forEach(function(t){r(v[t])||(v[t]=n[t])})},g=u-1;g>=0;g--)w(g);return p.map(function(t){return new zl(t[0],new ql([t[1]]))})}function Re(t,e,n,i,o){var s,a=0,u=e;if(t instanceof bs){var c,p=0,l=[],h=t instanceof Es;if(t.steps.forEach(function(t){var s=h?u:e;if(t instanceof gs)return t.styles.forEach(function(t){var e=t;Object.keys(e).forEach(function(t){n.insertAtTime(t,s,e[t])})}),void(c=t.styles);var f=Re(t,s,n,i,o);if(r(c)){if(t instanceof bs){var d=new ql(c);l.push(new Hl(d,[],0,0,""))}else{var y=f;(v=y.startingStyles.styles).push.apply(v,c)}c=null}var m=f.playTime;e+=m,a+=m,p=Math.max(m,p),l.push(f);var v}),r(c)){var f=new ql(c);l.push(new Hl(f,[],0,0,""))}h?(s=new Gl(l),a=p,e=u+a):s=new Kl(l)}else if(t instanceof _s){var d=Ne(t.timings,o),y=t.styles,m=void 0;if(y instanceof vs)m=Me(y,e,n,i,o);else{var v=y,g=th,_=new ql(v.styles),b=new zl(g,_);m=[b]}s=new Hl(new ql([]),m,d.duration,d.delay,d.easing),a=d.duration+d.delay,e+=a,m.forEach(function(t){return t.styles.styles.forEach(function(t){return Object.keys(t).forEach(function(r){n.insertAtTime(r,e,t[r])})})})}else s=new Hl(null,[],0,0,"");return s.playTime=a,s.startTime=u,s}function ke(t,e,n){if(t instanceof Hl&&t.keyframes.length>0){var r=t.keyframes;if(1==r.length){var i=r[0],o=Ie(i,t.startTime,t.playTime,e,n);t.keyframes=[o,i]}}else t instanceof Wl&&t.steps.forEach(function(t){return ke(t,e,n)})}function Ne(t,e){var n,o=/^([\.\d]+)(m?s)(?:\s+([\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?/i,s=0,a=null;if("string"==typeof t){var u=t.match(o);if(null===u)return e.push(new nh('The provided timing value "'+t+'" is invalid.')),new oh(0,0,null);var c=parseFloat(u[1]),p=u[2];"s"==p&&(c*=eh),n=Math.floor(c);var l=u[3],h=u[4];if(r(l)){var f=parseFloat(l);r(h)&&"s"==h&&(f*=eh),s=Math.floor(f)}var d=u[5];i(d)||(a=d)}else n=t;return new oh(n,s,a)}function Ie(t,e,n,i,o){var s={},a=e+n;return t.styles.styles.forEach(function(t){Object.keys(t).forEach(function(n){var u=t[n];if("offset"!=n){var c,p,l,h=i.indexOfAtOrBeforeTime(n,e);r(h)?(c=i.getByIndex(n,h),l=c.value,p=i.getByIndex(n,h+1)):l=Vo,r(p)&&!p.matches(a,u)&&o.push(new nh('The animated CSS property "'+n+'" unexpectedly changes between steps "'+c.time+'ms" and "'+a+'ms" at "'+p.time+'ms"')),s[n]=l}})}),new zl(Jl,new ql([s]))}function De(){return new ph}function je(){return new ph(".")}function Le(t){var e=Fe(t);return e&&e[hh.Scheme]||""}function Ve(t,e,n,i,o,s,a){var u=[];return r(t)&&u.push(t+":"),r(n)&&(u.push("//"),r(e)&&u.push(e+"@"),u.push(n),r(i)&&u.push(":"+i)),r(o)&&u.push(o),r(s)&&u.push("?"+s),r(a)&&u.push("#"+a),u.join("")}function Fe(t){return t.match(lh)}function Ue(t){if("/"==t)return"/";for(var e="/"==t[0]?"/":"",n="/"===t[t.length-1]?"/":"",r=t.split("/"),i=[],o=0,s=0;s<r.length;s++){var a=r[s];switch(a){case"":case".":break;case"..":i.length>0?i.pop():o++;break;default:i.push(a)}}if(""==e){for(;o-->0;)i.unshift("..");0===i.length&&i.push(".")}return e+i.join("/")+n}function Be(t){var e=t[hh.Path];return e=i(e)?"":Ue(e),t[hh.Path]=e,Ve(t[hh.Scheme],t[hh.UserInfo],t[hh.Domain],t[hh.Port],e,t[hh.QueryData],t[hh.Fragment])}function He(t,e){var n=Fe(encodeURI(e)),o=Fe(t);if(r(n[hh.Scheme]))return Be(n);n[hh.Scheme]=o[hh.Scheme];for(var s=hh.Scheme;s<=hh.Port;s++)i(n[s])&&(n[s]=o[s]);if("/"==n[hh.Path][0])return Be(n);var a=o[hh.Path];i(a)&&(a="/");var u=a.lastIndexOf("/");return a=a.substring(0,u+1)+n[hh.Path],n[hh.Path]=a,Be(n)}function qe(t){return t instanceof e.Directive}function ze(t,e,n){var r=new xf(t,e);return n.visitExpression(r,null)}function We(t){var e=new Tf;return e.visitAllStatements(t,null),e.varNames}function Ge(t,e){return void 0===e&&(e=null),new Lh(t,e)}function Ke(t,e){return void 0===e&&(e=null),new Gh(t,null,e)}function Xe(t,e,n){return void 0===e&&(e=null),void 0===n&&(n=null),r(t)?Qe(Ke(t),e,n):null}function Qe(t,e,n){return void 0===e&&(e=null),void 0===n&&(n=null),r(t)?new xh(t,e,n):null}function Ye(t,e){return void 0===e&&(e=null),new ef(t,e)}function $e(t,e,n){return void 0===e&&(e=null),void 0===n&&(n=!1),new rf(t.map(function(t){return new nf(t[0],t[1],n)}),e)}function Ze(t){return new Xh(t)}function Je(t,e,n){return void 0===n&&(n=null),new $h(t,e,n)}function tn(t,e){return void 0===e&&(e=null),new Wh(t,e)}function en(t){var e=""+t.fields.length,n=rn(e);return t.fields.push(new mf(n.name,null,[cf.Private])),t.ctorStmts.push(of.prop(n.name).set(Ke(Yt(_p.UNINITIALIZED))).toStmt()),new Pf(n,e)}function nn(t,e,n,r){var i=Ke(Yt(_p.checkBinding)).callFn([n,e,t.currValExpr]);return t.forceUpdate&&(i=t.forceUpdate.or(i)),t.stmts.concat([new bf(i,r.concat([of.prop(e.name).set(t.currValExpr).toStmt()]))])}function rn(t){return of.prop("_expr_"+t)}function on(t){return r(t.value)?tn(t.value):Ke(t.identifier)}function sn(t){if(0===t.length)return Ke(Yt(_p.EMPTY_INLINE_ARRAY));var e=Math.log(t.length)/Math.log(2),n=Math.ceil(e),r=n<_p.inlineArrays.length?_p.inlineArrays[n]:_p.InlineArrayDynamic,i=Yt(r);return Ke(i).instantiate([tn(t.length)].concat(t))}function an(t,e,n,r){r.fields.push(new mf(n.name,null));var i=e<_p.pureProxies.length?_p.pureProxies[e]:null;if(!i)throw new Error("Unsupported number of argument for pure functions: "+e);r.ctorStmts.push(of.prop(n.name).set(Ke(Yt(i)).callFn([t])).toStmt())}function un(t,e){var n=Object.keys(t.runtime).find(function(n){return t.runtime[n]===e});if(!n)throw new Error("Unknown enum value "+e+" in "+t.name);return Ke(Jt(t,n))}function cn(t,e,n,r,i){var o=wn(i),s=[];e||(e=new If);var a=new Nf(t,e,n,Of,i,!1),u=r.visit(a,kf.Expression);if(!u)return null;if(a.temporaryCount)for(var c=0;c<a.temporaryCount;c++)s.push(fn(i,c));if(a.needsValueUnwrapper){var p=Of.callMethod("reset",[]).toStmt();s.push(p)}return s.push(o.set(u).toDeclStmt(null,[cf.Final])),a.needsValueUnwrapper?new Mf(s,o,Of.prop("hasWrappedValue")):new Mf(s,o,null)}function pn(t,e,n,r,i){e||(e=new If);var o=new Nf(t,e,n,null,i,!0),s=[];gn(r.visit(o,kf.Statement),s),dn(o.temporaryCount,i,s);var a=s.length-1,u=null;if(a>=0){var c=s[a],p=Sn(c);p&&(u=En(i),s[a]=u.set(p.cast(Oh).notIdentical(tn(!1))).toDeclStmt(null,[cf.Final]))}return new Rf(s,u)}function ln(t){var e=[],n=We(t);return n.has(Of.name)&&e.push(Of.set(Ke(Yt(_p.ValueUnwrapper)).instantiate([])).toDeclStmt(null,[cf.Final])),e}function hn(t,e){return"tmp_"+t+"_"+e}function fn(t,e){return new lf(hn(t,e),af)}function dn(t,e,n){for(var r=t-1;r>=0;r--)n.unshift(fn(e,r))}function yn(t,e){if(t!==kf.Statement)throw new Error("Expected a statement, but saw "+e)}function mn(t,e){if(t!==kf.Expression)throw new Error("Expected an expression, but saw "+e)}function vn(t,e){return t===kf.Statement?e.toStmt():e}function gn(t,e){Array.isArray(t)?t.forEach(function(t){return gn(t,e)}):e.push(t)}function _n(t,e){if(0===e.length)return Ke(Yt(_p.EMPTY_ARRAY));for(var n=of.prop("_arr_"+t.fields.length),r=[],i=[],o=0;o<e.length;o++){var s="p"+o;r.push(new Yh(s)),i.push(Ge(s))}return an(Je(r,[new df(Ye(i))],new Th(Oh)),e.length,n,t),n.callFn(e)}function bn(t,e){if(0===e.length)return Ke(Yt(_p.EMPTY_MAP));for(var n=of.prop("_map_"+t.fields.length),r=[],i=[],o=[],s=0;s<e.length;s++){var a="p"+s;r.push(new Yh(a)),i.push([e[s][0],Ge(a)]),o.push(e[s][1])}return an(Je(r,[new df($e(i))],new Ph(Oh)),e.length,n,t),n.callFn(o)}function wn(t){return Ge("currVal_"+t)}function En(t){return Ge("pd_"+t)}function Sn(t){return t instanceof ff?t.expr:t instanceof df?t.value:null}function Cn(t,e,n,i,o,s){var a=[],u=t.prop("renderer");switch(i=xn(t,e,i,s),e.type){case Zi.Property:o&&a.push(Ke(Yt(_p.setBindingDebugInfo)).callFn([u,n,tn(e.name),i]).toStmt()),a.push(u.callMethod("setElementProperty",[n,tn(e.name),i]).toStmt());break;case Zi.Attribute:i=i.isBlank().conditional(af,i.callMethod("toString",[])),a.push(u.callMethod("setElementAttribute",[n,tn(e.name),i]).toStmt());break;case Zi.Class:a.push(u.callMethod("setElementClass",[n,tn(e.name),i]).toStmt());break;case Zi.Style:var c=i.callMethod("toString",[]);r(e.unit)&&(c=c.plus(tn(e.unit))),i=i.isBlank().conditional(af,c),a.push(u.callMethod("setElementStyle",[n,tn(e.name),i]).toStmt());break;case Zi.Animation:throw new Error("Illegal state: Should not come here!")}return a}function xn(t,n,r,i){if(n.securityContext===e.SecurityContext.NONE)return r;if(n.needsRuntimeSecurityContext||(i=un(_p.SecurityContext,n.securityContext)),!i)throw new Error("internal error, no SecurityContext given "+n.name);var o=t.prop("viewUtils").prop("sanitizer"),s=[i,r];return o.callMethod("sanitize",s)}function Tn(t,e,n,r,i,o,s,a){var u=[],c=[],p=n.name,l=e.prop("componentType").prop("animations").key(tn(p)),h=tn(Lo),f=Ke(Yt(_p.UNINITIALIZED)),d=Ge("animationTransition_"+p);c.push(d.set(l.callFn([t,o,a.equals(f).conditional(h,a),s.equals(f).conditional(h,s)])).toDeclStmt()),u.push(d.set(l.callFn([t,o,a,h])).toDeclStmt());var y=[],m=r.find(function(t){return t.isAnimation&&t.name==p&&"start"==t.phase});m&&y.push(d.callMethod("onStart",[i.callMethod(Bh.Bind,[t,tn(Hi.calcFullName(p,null,"start"))])]).toStmt());var v=r.find(function(t){return t.isAnimation&&t.name==p&&"done"==t.phase});return v&&y.push(d.callMethod("onDone",[i.callMethod(Bh.Bind,[t,tn(Hi.calcFullName(p,null,"done"))])]).toStmt()),c.push.apply(c,y),u.push.apply(u,y),{updateStmts:c,detachStmts:u}}function Pn(t){var e=t.parentArgs||[],n=t.parent?[sf.callFn(e).toStmt()]:[],r=On(Array.isArray(t.builders)?t.builders:[t.builders]),i=new vf(null,t.ctorParams||[],n.concat(r.ctorStmts));return new _f(t.name,t.parent,r.fields,r.getters,i,r.methods,t.modifiers||[])}function On(t){return{fields:(e=[]).concat.apply(e,t.map(function(t){return t.fields||[]})),methods:(n=[]).concat.apply(n,t.map(function(t){return t.methods||[]})),getters:(r=[]).concat.apply(r,t.map(function(t){return t.getters||[]})),ctorStmts:(i=[]).concat.apply(i,t.map(function(t){return t.ctorStmts||[]}))};var e,n,r,i}function An(t){var e=Ge("changed"),n=[e.set(of.prop(Uf)).toDeclStmt(),of.prop(Uf).set(tn(!1)).toStmt()],r=[];if(t.genChanges){var i=[];t.ngOnChanges&&i.push(of.prop(Vf).callMethod("ngOnChanges",[of.prop(Ff)]).toStmt()),t.compilerConfig.logBindingUpdate&&i.push(Ke(Yt(_p.setBindingDebugInfoForChanges)).callFn([Wf.prop("renderer"),Kf,of.prop(Ff)]).toStmt()),i.push(Qf),r.push(new bf(e,i))}t.ngOnInit&&r.push(new bf(Wf.prop("numberOfChecks").identical(new Wh(0)),[of.prop(Vf).callMethod("ngOnInit",[]).toStmt()])),t.ngDoCheck&&r.push(of.prop(Vf).callMethod("ngDoCheck",[]).toStmt()),r.length>0&&n.push(new bf(Ze(qf),r)),n.push(new df(e)),t.methods.push(new vf("ngDoCheck",[new Yh(Wf.name,Xe(Yt(_p.AppView),[Oh])),new Yh(Kf.name,Oh),new Yh(qf.name,Ah)],n,Ah))}function Mn(t,e){var n=en(e),r=[of.prop(Uf).set(tn(!0)).toStmt(),of.prop(Vf).prop(t).set(Hf).toStmt()];e.genChanges&&r.push(of.prop(Ff).key(tn(t)).set(Ke(Yt(_p.SimpleChange)).instantiate([n.expression,Hf])).toStmt());var i=nn({currValExpr:Hf,forceUpdate:zf,stmts:[]},n.expression,qf,r);e.methods.push(new vf("check_"+t,[new Yh(Hf.name,Oh),new Yh(qf.name,Ah),new Yh(zf.name,Ah)],i))}function Rn(t,e,n){var r=[],i=[new Yh(Wf.name,Xe(Yt(_p.AppView),[Oh])),new Yh(Gf.name,Xe(Yt(_p.AppView),[Oh])),new Yh(Kf.name,Oh),new Yh(qf.name,Ah)];t.forEach(function(t){var o=en(n),s=cn(n,null,of.prop(Vf),t.value,o.bindingId);if(s){var a;t.needsRuntimeSecurityContext&&(a=Ge("secCtx_"+i.length),i.push(new Yh(a.name,Xe(Yt(_p.SecurityContext)))));var u;if(t.isAnimation){var c=Tn(Wf,Gf,t,e,of.prop(Bf).or(Ke(Yt(_p.noop))),Kf,s.currValExpr,o.expression),p=c.updateStmts,l=c.detachStmts;u=p,(h=n.detachStmts).push.apply(h,l)}else u=Cn(Wf,t,Kf,s.currValExpr,n.compilerConfig.logBindingUpdate,a);r.push.apply(r,nn(s,o.expression,qf,u));var h}}),n.methods.push(new vf("checkHost",i,r))}function kn(t,e){var n=Ge("result"),r=[n.set(tn(!0)).toDeclStmt(Ah)];t.forEach(function(t,i){var o=pn(e,null,of.prop(Vf),t.handler,"sub_"+i),s=o.stmts;o.preventDefault&&s.push(n.set(o.preventDefault.and(n)).toStmt()),r.push(new bf(Xf.equals(tn(t.fullName)),s))}),r.push(new df(n)),e.methods.push(new vf("handleEvent",[new Yh(Xf.name,Rh),new Yh(Af.event.name,Oh)],r,Ah))}function Nn(t,e){var n=[new Yh(Wf.name,Xe(Yt(_p.AppView),[Oh])),new Yh(Bf,Oh)],r=[of.prop(Bf).set(Ge(Bf)).toStmt()];Object.keys(t.outputs).forEach(function(i,o){var s=t.outputs[i],a="emit"+o;n.push(new Yh(a,Ah));var u="subscription"+o;e.fields.push(new mf(u,Oh)),r.push(new bf(Ge(a),[of.prop(u).set(of.prop(Vf).prop(i).callMethod(Bh.SubscribeObservable,[Ge(Bf).callMethod(Bh.Bind,[Wf,tn(s)])])).toStmt()])),e.destroyStmts.push(of.prop(u).and(of.prop(u).callMethod("unsubscribe",[])).toStmt())}),e.methods.push(new vf("subscribe",n,r))}function In(t,e,n){var r=[],i=new qp(e,Da,n,[],r),o=w(t.type),s=o?"in Directive "+b(t.type)+" in "+o:"in Directive "+b(t.type),a=new xu("",s),u=new Tu(new Cu(a,null,null,null),new Cu(a,null,null,null)),c=i.createDirectiveHostPropertyAsts(t.toSummary(),u),p=i.createDirectiveHostEventAsts(t.toSummary(),u);return new Zf(c,p,r)}function Dn(t){var e=t.filter(function(t){return t.level===Pu.WARNING}),n=t.filter(function(t){return t.level===Pu.FATAL});if(e.length>0&&this._console.warn("Directive parse warnings:\n"+e.join("\n")),n.length>0)throw new Error("Directive parse errors:\n"+n.join("\n"))}function jn(t,e){return Po.hasLifecycleHook(e,Ln(t))}function Ln(t){switch(t){case ao.OnInit:return"ngOnInit";case ao.OnDestroy:return"ngOnDestroy";case ao.DoCheck:return"ngDoCheck";case ao.OnChanges:return"ngOnChanges";case ao.AfterContentInit:return"ngAfterContentInit";case ao.AfterContentChecked:return"ngAfterContentChecked";case ao.AfterViewInit:return"ngAfterViewInit";case ao.AfterViewChecked:return"ngAfterViewChecked"}}function Vn(t){return t instanceof e.NgModule}function Fn(t){return t instanceof e.Pipe}function Un(t,n){if(void 0===n&&(n=[]),t)for(var r=0;r<t.length;r++){var i=e.resolveForwardRef(t[r]);Array.isArray(i)?Un(i,n):n.push(i)}return n}function Bn(t){return t?Array.from(new Set(t)):[]}function Hn(t){return Bn(Un(t))}function qn(t){return t instanceof Ji||t instanceof e.Type}function zn(t,e,n){if(e instanceof Ji)return e.filePath;var r=n.moduleId;if("string"==typeof r){var i=Le(r);return i?r:"package:"+r+os}if(null!==r&&void 0!==r)throw new cs('moduleId should be a string in "'+Gn(e)+"\". See https://goo.gl/wIDDiL for more information.\nIf you're using Webpack you should inline the template and the styles, see https://goo.gl/X2J8zc.");return t.importUri(e)}function Wn(t,e){g(t,new dd,e)}function Gn(t){return t instanceof Ji?t.name+" in "+t.filePath:s(t)}function Kn(t,e){return void 0===e&&(e=null),g(t,new md,e)}function Xn(t,e,n){if(void 0===n&&(n=!0),i(t))return null;var r=t.replace(xd,function(){for(var t=[],n=0;n<arguments.length;n++)t[n-0]=arguments[n];return"$"==t[0]?e?"\\$":"$":"\n"==t[0]?"\\n":"\r"==t[0]?"\\r":"\\"+t[0]}),o=n||!Td.test(r);return o?"'"+r+"'":r}function Qn(t){for(var e="",n=0;t>n;n++)e+=" ";return e}function Yn(t){var e=new Dd(Nd),n=Md.createRoot([]),r=Array.isArray(t)?t:[t];return r.forEach(function(t){if(t instanceof pf)t.visitStatement(e,n);else if(t instanceof Dh)t.visitExpression(e,n);else{if(!(t instanceof Eh))throw new Error("Don't know how to print debug info for "+t);t.visitType(e,n)}}),n.toSource()}function $n(t,e){for(var n=0,r=e;n<r.length;n++){var i=r[n];jd[i.toLowerCase()]=t}}function Zn(t){switch(t){case"width":case"height":case"minWidth":case"minHeight":case"maxWidth":case"maxHeight":case"left":case"top":case"bottom":case"right":case"fontSize":case"outlineWidth":case"outlineOffset":case"paddingTop":case"paddingLeft":case"paddingBottom":case"paddingRight":case"marginTop":case"marginLeft":case"marginBottom":case"marginRight":case"borderRadius":case"borderWidth":case"borderTopWidth":case"borderLeftWidth":case"borderRightWidth":case"borderBottomWidth":case"textIndent":return!0;default:return!1}}function Jn(t){return t.replace(ly,"")}function tr(t){var e=t.match(hy);return e?e[0]:""}function er(t,e){var n=nr(t),r=0;return n.escapedString.replace(fy,function(){for(var t=[],i=0;i<arguments.length;i++)t[i-0]=arguments[i];var o=t[2],s="",a=t[4],u="";a&&a.startsWith("{"+vy)&&(s=n.blocks[r++],a=a.substring(vy.length+1),u="{");var c=e(new gy(o,s));return""+t[1]+c.selector+t[3]+u+c.content+a})}function nr(t){for(var e=t.split(dy),n=[],r=[],i=0,o=[],s=0;s<e.length;s++){var a=e[s];a==my&&i--,i>0?o.push(a):(o.length>0&&(r.push(o.join("")),n.push(vy),o=[]),n.push(a)),a==yy&&i++}return o.length>0&&(r.push(o.join("")),n.push(vy)),new _y(n.join(""),r)}function rr(t){var e="styles";return t&&(e+="_"+b(t.type)),e}function ir(t,e,n){if(e===n)return t;for(var r=of,i=e;i!==n&&i.declarationElement.view;)i=i.declarationElement.view,r=r.prop("parentView");if(i!==n)throw new Error("Internal error: Could not calculate a property in a parent view: "+t);return t.visitExpression(new Ny(r,n),null)}function or(t,e,n){var r;r=t.viewType===go.HOST?of:of.prop("parentView");var i=[on(e),of.prop("parentIndex")];return n&&i.push(af),r.callMethod("injectorGet",i)}function sr(t,e){return"View_"+b(t.type)+e}function ar(t){return"handleEvent_"+t}function ur(t){return io.flatten(t.values.map(function(t){return t instanceof Iy?cr(t.view.declarationElement.viewContainer,t.view,ur(t)):t}))}function cr(t,e,n){var r=n.map(function(t){return ze(of.name,Ge("nestedView"),t)});return t.callMethod("mapNestedViews",[Ge(e.className),Je([new Yh("nestedView",e.classType)],[new df(Ye(r))],Oh)])}function pr(t,e){e.fields.push(new mf(t,Xe(Yt(_p.QueryList),[Oh])));var n=of.prop(t);return e.createMethod.addStmt(of.prop(t).set(Ke(Yt(_p.QueryList),[Oh]).instantiate([])).toStmt()),n}function lr(t,e){e.meta.selectors.forEach(function(n){var r=t.get(S(n));r||(r=[],t.set(S(n),r)),r.push(e)})}function hr(t,e,n,r){var i;return i=e>0?tn(t).lowerEquals(By.requestNodeIndex).and(By.requestNodeIndex.lowerEquals(tn(t+e))):tn(t).identical(By.requestNodeIndex),new bf(By.token.identical(on(n.token)).and(i),[new df(r)])}function fr(t,e,n,r,i){var o,s,a=i.view;if(n?(o=Ye(e),s=new Th(Oh)):(o=e[0],s=e[0].type),s||(s=Oh),r)a.fields.push(new mf(t,s)),a.createMethod.addStmt(of.prop(t).set(o).toStmt());else{var u="_"+t;a.fields.push(new mf(u,s));var c=new Ry(a);c.resetDebugInfo(i.nodeIndex,i.sourceAst),c.addStmt(new bf(of.prop(u).isBlank(),[of.prop(u).set(o).toStmt()])),c.addStmt(new df(of.prop(u))),a.getters.push(new gf(t,c.finish(),s))}return of.prop(t)}function dr(t,e){for(var n=null,r=t.pipeMetas.length-1;r>=0;r--){var i=t.pipeMetas[r];if(i.name==e){n=i;break}}if(!n)throw new Error("Illegal state: Could not find pipe "+e+" although the parser should have detected this error!");return n}function yr(t,e){return e>0?go.EMBEDDED:t.isHost?go.HOST:go.COMPONENT}function mr(t,e,n,r){var i=vr(t,e);return i.size?(r&&gr(i,n),_r(i,e,n),br(t,e,n),!0):!1}function vr(t,e){var n=new Map;return t.forEach(function(t){n.set(t.fullName,t)}),e.forEach(function(t){t.hostEvents.forEach(function(t){n.set(t.fullName,t)})}),n}function gr(t,e){var n=[];if(t.forEach(function(t){t.phase||n.push(tn(t.name),tn(t.target))}),n.length){var r=Ge("disposable_"+e.view.disposables.length);e.view.disposables.push(r),e.view.createMethod.addStmt(r.set(Ke(Yt(_p.subscribeToRenderElement)).callFn([of,e.renderNode,sn(n),wr(e)])).toDeclStmt(kh,[cf.Private]))}}function _r(t,e,n){var r=Array.from(t.keys());e.forEach(function(t){var e=n.directiveWrapperInstance.get(t.directive.type.reference);n.view.createMethod.addStmts(Jf.subscribe(t.directive,t.hostProperties,r,e,of,wr(n)))})}function br(t,e,n){var r=e.some(function(t){return t.hostEvents.some(function(){return t.directive.isComponent})}),i=r?n.compViewExpr:of,o=new Ry(n.view);o.resetDebugInfo(n.nodeIndex,n.sourceAst),o.push(i.callMethod("markPathToRootAsCheckOnce",[]).toStmt());var s=Ge("eventName"),a=Ge("result");o.push(a.set(tn(!0)).toDeclStmt(Ah)),e.forEach(function(t){var e=n.directiveWrapperInstance.get(t.directive.type.reference);t.hostEvents.length>0&&o.push(a.set(Jf.handleEvent(t.hostEvents,e,s,Af.event).and(a)).toStmt())}),t.forEach(function(t,e){var r=pn(n.view,n.view,n.view.componentContext,t.handler,"sub_"+e),i=r.stmts;r.preventDefault&&i.push(a.set(r.preventDefault.and(a)).toStmt()),o.push(new bf(s.equals(tn(t.fullName)),i))}),o.push(new df(a)),n.view.methods.push(new vf(ar(n.nodeIndex),[new Yh(s.name,Rh),new Yh(Af.event.name,Oh)],o.finish(),Ah))}function wr(t){var e=ar(t.nodeIndex);return of.callMethod("eventHandler",[of.prop(e)])}function Er(t,e,n){var r=n.view,i=t.type.lifecycleHooks,o=r.afterContentLifecycleCallbacksMethod;o.resetDebugInfo(n.nodeIndex,n.sourceAst),-1!==i.indexOf(ao.AfterContentInit)&&o.addStmt(new bf(Jy,[e.callMethod("ngAfterContentInit",[]).toStmt()])),-1!==i.indexOf(ao.AfterContentChecked)&&o.addStmt(e.callMethod("ngAfterContentChecked",[]).toStmt())}function Sr(t,e,n){var r=n.view,i=t.type.lifecycleHooks,o=r.afterViewLifecycleCallbacksMethod;o.resetDebugInfo(n.nodeIndex,n.sourceAst),-1!==i.indexOf(ao.AfterViewInit)&&o.addStmt(new bf(Jy,[e.callMethod("ngAfterViewInit",[]).toStmt()])),-1!==i.indexOf(ao.AfterViewChecked)&&o.addStmt(e.callMethod("ngAfterViewChecked",[]).toStmt())}function Cr(t,e,n){n.view.destroyMethod.addStmts(Jf.ngOnDestroy(t.directive,e)),n.view.detachMethod.addStmts(Jf.ngOnDetach(t.hostProperties,e,of,n.compViewExpr||of,n.renderNode))}function xr(t,e,n){var r=n.view.destroyMethod;r.resetDebugInfo(n.nodeIndex,n.sourceAst),t.providerType!==Yi.Directive&&t.providerType!==Yi.Component&&-1!==t.lifecycleHooks.indexOf(ao.OnDestroy)&&r.addStmt(e.callMethod("ngOnDestroy",[]).toStmt())}function Tr(t,e,n){var r=n.destroyMethod;-1!==t.type.lifecycleHooks.indexOf(ao.OnDestroy)&&r.addStmt(e.callMethod("ngOnDestroy",[]).toStmt())}function Pr(t,e,n){var r=en(n),i=cn(n,n,n.componentContext,t.value,r.bindingId);return i?(n.detectChangesRenderPropertiesMethod.resetDebugInfo(e.nodeIndex,t),void n.detectChangesRenderPropertiesMethod.addStmts(nn(i,r.expression,Hy.throwOnChange,[of.prop("renderer").callMethod("setText",[e.renderNode,i.currValExpr]).toStmt()]))):null}function Or(t,e,n,r){var i=r.view,o=r.renderNode;t.forEach(function(t){var s=en(i);i.detectChangesRenderPropertiesMethod.resetDebugInfo(r.nodeIndex,t);var a=cn(i,i,r.view.componentContext,t.value,s.bindingId);if(a){var u=[],c=i.detectChangesRenderPropertiesMethod;switch(t.type){case Zi.Property:case Zi.Attribute:case Zi.Class:case Zi.Style:u.push.apply(u,Cn(of,t,o,a.currValExpr,i.genConfig.logBindingUpdate));break;case Zi.Animation:c=i.animationBindingsMethod;var p=Tn(of,of,t,e,(n?of.prop(ar(r.nodeIndex)):Ke(Yt(_p.noop))).callMethod(Bh.Bind,[of]),r.renderNode,a.currValExpr,s.expression),l=p.updateStmts,h=p.detachStmts;u.push.apply(u,l),i.detachMethod.addStmts(h)}c.addStmts(nn(a,s.expression,Hy.throwOnChange,u))}})}function Ar(t,e,n,r,i){var o=t.hostProperties.filter(function(t){return t.needsRuntimeSecurityContext}).map(function(t){var e;switch(t.type){case Zi.Property:e=i.securityContext(r,t.name,!1);break;case Zi.Attribute:e=i.securityContext(r,t.name,!0);break;default:throw new Error("Illegal state: Only property / attribute bindings can have an unknown security context! Binding "+t.name)}return un(_p.SecurityContext,e)});n.view.detectChangesRenderPropertiesMethod.addStmts(Jf.checkHost(t.hostProperties,e,of,n.compViewExpr||of,n.renderNode,Hy.throwOnChange,o))}function Mr(t,e,n,r){var i=r.view,o=i.detectChangesInInputsMethod;o.resetDebugInfo(r.nodeIndex,r.sourceAst),t.inputs.forEach(function(t,s){var a=r.nodeIndex+"_"+n+"_"+s;o.resetDebugInfo(r.nodeIndex,t);var u=cn(i,i,i.componentContext,t.value,a);u&&(o.addStmts(u.stmts),o.addStmt(e.callMethod("check_"+t.directiveName,[u.currValExpr,Hy.throwOnChange,u.forceUpdate||tn(!1)]).toStmt()))});var s=t.directive.isComponent&&!oo(t.directive.changeDetection),a=Jf.ngDoCheck(e,of,r.renderNode,Hy.throwOnChange),u=s?new bf(a,[r.compViewExpr.callMethod("markAsCheckOnce",[]).toStmt()]):a.toStmt();o.addStmt(u)}function Rr(t){var e=[];t.getProviderTokens().forEach(function(n){var r=t.getQueriesFor(n);e.push.apply(e,r.map(function(t){return new tm(t,n)}))}),Object.keys(t.referenceTokens).forEach(function(n){var r={value:n};e.push.apply(e,t.getQueriesFor(r).map(function(t){return new tm(t,r)}))}),e.forEach(function(e){var n;if(e.read.identifier)n=t.instances.get(S(e.read));else{var r=t.referenceTokens[e.read.value];n=r?t.instances.get(S(r)):t.elementRef}n&&e.query.addValue(n,t.view)})}function kr(t,e,r){var i=new em(t,r);n(i,e),t.pipes.forEach(function(t){Tr(t.meta,t.instance,t.view)})}function Nr(t,e,r){var i=new um(t,r),o=t.declarationElement.isNull()?t.declarationElement:t.declarationElement.parent;return n(i,e,o),(t.viewType===go.EMBEDDED||t.viewType===go.HOST)&&(t.lastRenderNode=i.getOrCreateLastRenderNode()),i.nestedViewCount}function Ir(t,e){t.nodes.forEach(function(t){t instanceof Xy&&(t.finish(),t.hasEmbeddedView&&Ir(t.embeddedView,e))}),t.finish(),Br(t,e)}function Dr(t){for(var e=t.view;Lr(t.parent,e);)t=t.parent;return t}function jr(t){for(var e=t.view;Lr(t,e);)t=t.parent;return t}function Lr(t,e){return!t.isNull()&&t.sourceAst.name===om&&t.view===e}function Vr(t,e){var n={};Object.keys(t).forEach(function(e){n[e]=t[e]}),e.forEach(function(t){Object.keys(t.hostAttributes).forEach(function(e){var i=t.hostAttributes[e],o=n[e];n[e]=r(o)?Ur(e,o,i):i})});var i=[];return Object.keys(n).sort().forEach(function(t){i.push(t,n[t])}),i}function Fr(t){var e={};return t.forEach(function(t){e[t.name]=t.value}),e}function Ur(t,e,n){return t==rm||t==im?e+" "+n:n}function Br(t,e){var n=af;t.genConfig.genDebugInfo&&(n=Ge("nodeDebugInfos_"+b(t.component.type)+t.viewIndex),e.push(n.set(Ye(t.nodes.map(Hr),new Th(Xe(Yt(_p.StaticNodeDebugInfo)),[wh.Const]))).toDeclStmt(null,[cf.Final])));var r=Ge("renderType_"+b(t.component.type));if(0===t.viewIndex){var i=void 0;i=t.component.template.templateUrl==w(t.component.type)?w(t.component.type)+" class "+b(t.component.type)+" - inline template":t.component.template.templateUrl,e.push(r.set(Ke(Yt(_p.createRenderComponentType)).callFn([tn(t.genConfig.genDebugInfo?i:""),tn(t.component.template.ngContentSelectors.length),Ly.fromValue(t.component.template.encapsulation),t.styles,$e(t.animations.map(function(t){return[t.name,t.fnExp]}),null,!0)])).toDeclStmt(Xe(Yt(_p.RenderComponentType))))}var o=qr(t,r,n);e.push(o)}function Hr(t){var e=t instanceof Xy?t:null,n=[],i=af,o=[];return r(e)&&(n=e.getProviderTokens().map(function(t){return on(t)}),r(e.component)&&(i=on($t(e.component.type))),Object.keys(e.referenceTokens).forEach(function(t){var n=e.referenceTokens[t];o.push([t,r(n)?on(n):af])})),Ke(Yt(_p.StaticNodeDebugInfo)).instantiate([Ye(n,new Th(Oh,[wh.Const])),i,$e(o,new Ph(Oh,[wh.Const]))],Xe(Yt(_p.StaticNodeDebugInfo),null,[wh.Const]))}function qr(t,e,n){var r=[new Yh(Fy.viewUtils.name,Xe(Yt(_p.ViewUtils))),new Yh(Fy.parentView.name,Xe(Yt(_p.AppView),[Oh])),new Yh(Fy.parentIndex.name,Mh),new Yh(Fy.parentElement.name,Oh)],i=[Ge(t.className),e,jy.fromValue(t.viewType),Fy.viewUtils,Fy.parentView,Fy.parentIndex,Fy.parentElement,Vy.fromValue(Qr(t))];t.genConfig.genDebugInfo&&i.push(n),t.viewType===go.EMBEDDED&&(r.push(new Yh("declaredViewContainer",Xe(Yt(_p.ViewContainer)))),i.push(Ge("declaredViewContainer")));var o=[new vf("createInternal",[new Yh(am.name,Rh)],Wr(t),Xe(Yt(_p.ComponentRef),[Oh])),new vf("injectorGetInternal",[new Yh(By.token.name,Oh),new Yh(By.requestNodeIndex.name,Mh),new Yh(By.notFoundResult.name,Oh)],Kr(t.injectorGetMethod.finish(),By.notFoundResult),Oh),new vf("detectChangesInternal",[new Yh(Hy.throwOnChange.name,Ah)],Gr(t)),new vf("dirtyParentQueriesInternal",[],t.dirtyParentQueriesMethod.finish()),new vf("destroyInternal",[],zr(t)),new vf("detachInternal",[],t.detachMethod.finish()),Yr(t),$r(t),Jr(t)].filter(function(t){return t.body.length>0}),s=t.genConfig.genDebugInfo?_p.DebugAppView:_p.AppView,a=Pn({name:t.className,parent:Ke(Yt(s),[Xr(t)]),parentArgs:i,ctorParams:r,builders:[{methods:o},t]});return a}function zr(t){var e=[];return t.viewContainers.forEach(function(t){e.push(t.callMethod("destroyNestedViews",[]).toStmt())}),t.viewChildren.forEach(function(t){e.push(t.callMethod("destroy",[]).toStmt())}),e.push.apply(e,t.destroyMethod.finish()),e}function Wr(t){var e=af,n=[];t.viewType===go.COMPONENT&&(e=Uy.renderer.callMethod("createViewRoot",[of.prop("parentElement")]),n=[sm.set(e).toDeclStmt(Xe(t.genConfig.renderTypes.renderNode),[cf.Final])]);var r;if(t.viewType===go.HOST){var i=t.nodes[0];r=Ke(Yt(_p.ComponentRef_),[Oh]).instantiate([tn(i.nodeIndex),of,i.renderNode,i.getComponent()])}else r=af;var o=Uy.renderer.cast(Oh).prop("directRenderer").conditional(af,Ye(t.nodes.map(function(t){return t.renderNode})));return n.concat(t.createMethod.finish(),[of.callMethod("init",[t.lastRenderNode,o,t.disposables.length?Ye(t.disposables):af]).toStmt(),new df(r)])}function Gr(t){var e=[];if(t.animationBindingsMethod.isEmpty()&&t.detectChangesInInputsMethod.isEmpty()&&t.updateContentQueriesMethod.isEmpty()&&t.afterContentLifecycleCallbacksMethod.isEmpty()&&t.detectChangesRenderPropertiesMethod.isEmpty()&&t.updateViewQueriesMethod.isEmpty()&&t.afterViewLifecycleCallbacksMethod.isEmpty()&&0===t.viewContainers.length&&0===t.viewChildren.length)return e;e.push.apply(e,t.animationBindingsMethod.finish()),e.push.apply(e,t.detectChangesInInputsMethod.finish()),t.viewContainers.forEach(function(t){e.push(t.callMethod("detectChangesInNestedViews",[Hy.throwOnChange]).toStmt())});var n=t.updateContentQueriesMethod.finish().concat(t.afterContentLifecycleCallbacksMethod.finish());n.length>0&&e.push(new bf(Ze(Hy.throwOnChange),n)),e.push.apply(e,t.detectChangesRenderPropertiesMethod.finish()),t.viewChildren.forEach(function(t){e.push(t.callMethod("internalDetectChanges",[Hy.throwOnChange]).toStmt())});var r=t.updateViewQueriesMethod.finish().concat(t.afterViewLifecycleCallbacksMethod.finish());r.length>0&&e.push(new bf(Ze(Hy.throwOnChange),r));var i=[],o=We(e);return o.has(Hy.changed.name)&&i.push(Hy.changed.set(tn(!0)).toDeclStmt(Ah)),o.has(Hy.changes.name)&&i.push(Hy.changes.set(af).toDeclStmt(new Ph(Xe(Yt(_p.SimpleChange))))),i.push.apply(i,ln(e)),i.concat(e)}function Kr(t,e){return t.length>0?t.concat([new df(e)]):t}function Xr(t){return t.viewType===go.COMPONENT?Xe(t.component.type):Oh}function Qr(t){var e;return e=t.viewType===go.COMPONENT?oo(t.component.changeDetection)?so.CheckAlways:so.CheckOnce:so.CheckAlways}function Yr(t){var e=Ge("cb"),n=Ge("ctx"),r=Zr(t.rootNodes,e,n);return new vf("visitRootNodesInternal",[new Yh(e.name,Oh),new Yh(n.name,Oh)],r)}function $r(t){var e=Ge("nodeIndex"),n=Ge("ngContentIndex"),r=Ge("cb"),i=Ge("ctx"),o=[];return t.nodes.forEach(function(t){t instanceof Xy&&t.component&&t.contentNodesByNgContentIndex.forEach(function(s,a){o.push(new bf(e.equals(tn(t.nodeIndex)).and(n.equals(tn(a))),Zr(s,r,i)))})}),new vf("visitProjectableNodesInternal",[new Yh(e.name,Mh),new Yh(n.name,Mh),new Yh(r.name,Oh),new Yh(i.name,Oh)],o)}function Zr(t,e,n){var r=[];return t.forEach(function(t){switch(t.type){case Yy.Node:r.push(e.callFn([t.expr,n]).toStmt());break;case Yy.ViewContainer:r.push(e.callFn([t.expr.prop("nativeElement"),n]).toStmt()),r.push(t.expr.callMethod("visitNestedViewRootNodes",[e,n]).toStmt());break;case Yy.NgContent:r.push(of.callMethod("visitProjectedNodes",[tn(t.ngContentIndex),e,n]).toStmt()); -default:return t.equals(tn(e))}}function ei(t){if(t instanceof Hl&&t.duration>0&&2==t.keyframes.length){var e=ni(t.keyframes[0])[0],n=ni(t.keyframes[1])[0];return 0===Object.keys(e).length&&0===Object.keys(n).length}return!1}function ni(t){return t.styles.styles}function ri(t,e,n,r,i){var o=new jm(t);r.forEach(function(t){return o.addOrMergeSummary({symbol:t.symbol,metadata:t.metadata})});for(var s=0;s<o.symbols.length;s++){var a=o.symbols[s];if(!t.isSourceFile(a.filePath)){var u=e.resolveSummary(a);if(!u){var c=n.resolveSymbol(a);c&&(u={symbol:c.symbol,metadata:c.metadata})}u&&o.addOrMergeSummary(u)}}return i.forEach(function(n){if(o.addOrMergeSummary({symbol:n.type.reference,metadata:{__symbolic:"class"},type:n}),n.summaryKind===Cs.NgModule){var r=n;r.exportedDirectives.concat(r.exportedPipes).forEach(function(n){var r=n.reference;t.isSourceFile(r.filePath)||o.addOrMergeSummary(e.resolveSummary(r))})}}),o.serialize()}function ii(t,e){var n=new Lm(t);return n.deserialize(e)}function oi(t){var e=t.replace(Dm,"");return e+".ngsummary.json"}function si(t,e){return e.dependencies.forEach(function(e){if(e instanceof qy){var n=e;n.placeholder.reference=t.getStaticSymbol(ui(w(n.comp)),e.name)}else if(e instanceof zy){var r=e;r.placeholder.reference=t.getStaticSymbol(ui(w(r.comp)),ci(r.comp))}else if(e instanceof Wy){var i=e;i.placeholder.reference=t.getStaticSymbol(ui(w(i.dir)),i.name)}}),e.statements}function ai(t,e,n){return e.dependencies.forEach(function(e){e.valuePlaceholder.reference=t.getStaticSymbol(pi(e.moduleUrl,e.isShimmed,n),e.name)}),e.statements}function ui(t){var e=hi(t);return e[0]+".ngfactory"+e[1]}function ci(t){return b(t)+"NgFactory"}function pi(t,e,n){return""+t+(e?".shim":"")+".ngstyle"+n}function li(t){if(!t.isComponent)throw new Error("Could not compile '"+b(t.type)+"' because it is not a component.")}function hi(t){if(t.endsWith(".d.ts"))return[t.slice(0,-5),".ts"];var e=t.lastIndexOf(".");return-1!==e?[t.substring(0,e),t.substring(e)]:[t,""]}function fi(t,e,n){var r=vi(t,e,n),i=r.ngModules,o=r.symbolsMissingModule;return yi(t,i,o,n)}function di(t,e,n){var r=fi(t,e,n);if(r.symbolsMissingModule&&r.symbolsMissingModule.length){var i=r.symbolsMissingModule.map(function(t){return"Cannot determine the module for class "+t.name+" in "+t.filePath+"!"});throw new Error(i.join("\n"))}return r}function yi(t,e,n,r){var i=new Map;e.forEach(function(t){return i.set(t.type.reference,t)});var o=new Map,s=new Map,a=new Map,u=new Map,c=new Map,p=new Set;t.forEach(function(t){var e=t.filePath;p.add(e),r.isInjectable(t)&&c.set(e,(c.get(e)||[]).concat(t))}),e.forEach(function(t){var e=t.type.reference.filePath;p.add(e),s.set(e,(s.get(e)||[]).concat(t.type.reference)),t.declaredDirectives.forEach(function(e){var n=e.reference.filePath;p.add(n),a.set(n,(a.get(n)||[]).concat(e.reference)),o.set(e.reference,t)}),t.declaredPipes.forEach(function(e){var n=e.reference.filePath;p.add(n),u.set(n,(u.get(n)||[]).concat(e.reference)),o.set(e.reference,t)})});var l=[];return p.forEach(function(t){var e=a.get(t)||[],n=u.get(t)||[],r=s.get(t)||[],i=c.get(t)||[];l.push({srcUrl:t,directives:e,pipes:n,ngModules:r,injectables:i})}),{ngModuleByPipeOrDirective:o,files:l,ngModules:e,symbolsMissingModule:n}}function mi(t,e,n){var r=[];return e.filter(function(t){return n.isSourceFile(t)}).forEach(function(e){t.getSymbolsOf(e).forEach(function(e){var n=t.resolveSymbol(e),i=n.metadata;i&&"error"!=i.__symbolic&&r.push(n.symbol)})}),r}function vi(t,e,n){var r=new Map,i=[],o=new Set,s=function(t){if(r.has(t)||!e.isSourceFile(t.filePath))return!1;var i=n.getNgModuleMetadata(t,!1);return i&&(r.set(i.type.reference,i),i.declaredDirectives.forEach(function(t){return o.add(t.reference)}),i.declaredPipes.forEach(function(t){return o.add(t.reference)}),i.transitiveModule.modules.forEach(function(t){return s(t.reference)})),!!i};t.forEach(function(t){s(t)||!n.isDirective(t)&&!n.isPipe(t)||i.push(t)});var a=i.filter(function(t){return!o.has(t)});return{ngModules:Array.from(r.values()),symbolsMissingModule:a}}function gi(t){return"object"==typeof t&&t.name&&t.filePath}function _i(t){switch(t.message){case"Reference to non-exported class":if(t.context&&t.context.className)return"Reference to a non-exported class "+t.context.className+". Consider exporting the class";break;case"Variable not initialized":return"Only initialized variables and constants can be referenced because the value of this variable is needed by the template compiler";case"Destructuring not supported":return"Referencing an exported destructured variable or constant is not supported by the template compiler. Consider simplifying this to avoid destructuring";case"Could not resolve type":if(t.context&&t.context.typeName)return"Could not resolve type "+t.context.typeName;break;case"Function call not supported":var e=t.context&&t.context.name?"Calling function '"+t.context.name+"', f":"F";return e+"unction calls are not supported. Consider replacing the function or lambda with a reference to an exported function";case"Reference to a local symbol":if(t.context&&t.context.name)return"Reference to a local (non-exported) symbol '"+t.context.name+"'. Consider exporting the symbol"}return t.message}function bi(t){return"Error encountered resolving symbol values statically. "+_i(t)}function wi(t,e){if(!t)return{};var n={};return Object.keys(t).forEach(function(r){var i=e(t[r],r);Si(i)||(Hm.test(r)?Object.defineProperty(n,r,{enumerable:!1,configurable:!0,value:i}):n[r]=i)}),n}function Ei(t){return null===t||"function"!=typeof t&&"object"!=typeof t}function Si(t){return t&&"ignore"==t.__symbolic}function Ci(t,e,n,r){var i=new Error(t);return i.fileName=e,i.line=n,i.column=r,i}function xi(t,n){var r=n.translations||"",i=je(),o=new to,s=new Ym(t,o),a=new Qm(t,o,s),u=new qm(a);Fm.install(u);var c=new dp(new lp,r,n.i18nFormat),p=new kl({genDebugInfo:n.debug===!0,defaultEncapsulation:e.ViewEncapsulation.Emulated,logBindingUpdate:!1,useJit:!1}),l=new yh({get:function(e){return t.loadResource(e)}},i,c,p),h=new wu(new fu),f=new Gd,d=new To,y=new xl(h,f,c,d,[]),m=new fd(new nd(u),new _h(u),new od(u),s,f,l,u),v=new Vm(t,m,y,new Oy(i),new hm(p,f),new Yf(p,h,f,d),new wd,new Id(t),s,n.locale,n.i18nFormat,new ih(f),a);return{compiler:v,reflector:u}}function Ti(t,e){var n=t.concat([new df(Ge(e))]),i=new $m(null,null,null,new Map),o=new Jm,s=o.visitAllStatements(n,i);return r(s)?s.value:null}function Pi(t,e,n,i,o){for(var s=i.createChildWihtLocalVars(),a=0;a<t.length;a++)s.vars.set(t[a],e[a]);var u=o.visitAllStatements(n,s);return r(u)?u.value:null}function Oi(t,e,n){var r={};t.getters.forEach(function(i){r[i.name]={configurable:!1,get:function(){var r=new $m(e,this,t.name,e.vars);return Pi([],[],i.body,r,n)}}}),t.methods.forEach(function(i){var o=i.params.map(function(t){return t.name});r[i.name]={writable:!1,configurable:!1,value:function(){for(var r=[],s=0;s<arguments.length;s++)r[s-0]=arguments[s];var a=new $m(e,this,t.name,e.vars);return Pi(o,r,i.body,a,n)}}});var i=t.constructorMethod.params.map(function(t){return t.name}),o=function(){for(var r=this,o=[],s=0;s<arguments.length;s++)o[s-0]=arguments[s];var a=new $m(e,this,t.name,e.vars);t.fields.forEach(function(t){r[t.name]=void 0}),Pi(i,o,t.constructorMethod.body,a,n)},s=t.parent?t.parent.visitExpression(n,e):Object;return o.prototype=Object.create(s.prototype,r),o}function Ai(t,e,n,r){return function(){for(var i=[],o=0;o<arguments.length;o++)i[o-0]=arguments[o];return Pi(t,i,e,n,r)}}function Mi(t,e,n,r){var i=n+"\nreturn "+e+"\n//# sourceURL="+t,o=[],s=[];for(var a in r)o.push(a),s.push(r[a]);return(new(Function.bind.apply(Function,[void 0].concat(o.concat(i))))).apply(void 0,s)}function Ri(t,e,n){var r=new ov,i=Md.createRoot([n]);return r.visitAllStatements(e,i),Mi(t,n,i.toSource(),r.getArgs())}function ki(t){if(!t.isComponent)throw new Error("Could not compile '"+b(t.type)+"' because it is not a component.")}function Ni(){Po.reflectionCapabilities=new Ao}function Ii(t){return{useDebug:Di(t.map(function(t){return t.useDebug})),useJit:Di(t.map(function(t){return t.useJit})),defaultEncapsulation:Di(t.map(function(t){return t.defaultEncapsulation})),providers:ji(t.map(function(t){return t.providers}))}}function Di(t){for(var e=t.length-1;e>=0;e--)if(void 0!==t[e])return t[e];return void 0}function ji(t){var e=[];return t.forEach(function(t){return t&&e.push.apply(e,t)}),e}var Li=new e.Version("2.4.9"),Vi=function(){function t(t,e,n){this.value=t,this.ngContentIndex=e,this.sourceSpan=n}return t.prototype.visit=function(t,e){return t.visitText(this,e)},t}(),Fi=function(){function t(t,e,n){this.value=t,this.ngContentIndex=e,this.sourceSpan=n}return t.prototype.visit=function(t,e){return t.visitBoundText(this,e)},t}(),Ui=function(){function t(t,e,n){this.name=t,this.value=e,this.sourceSpan=n}return t.prototype.visit=function(t,e){return t.visitAttr(this,e)},t}(),Bi=function(){function t(t,e,n,r,i,o,s){this.name=t,this.type=e,this.securityContext=n,this.needsRuntimeSecurityContext=r,this.value=i,this.unit=o,this.sourceSpan=s}return t.prototype.visit=function(t,e){return t.visitElementProperty(this,e)},Object.defineProperty(t.prototype,"isAnimation",{get:function(){return this.type===Zi.Animation},enumerable:!0,configurable:!0}),t}(),Hi=function(){function t(t,e,n,r,i){this.name=t,this.target=e,this.phase=n,this.handler=r,this.sourceSpan=i}return t.calcFullName=function(t,e,n){return e?e+":"+t:n?"@"+t+"."+n:t},t.prototype.visit=function(t,e){return t.visitEvent(this,e)},Object.defineProperty(t.prototype,"fullName",{get:function(){return t.calcFullName(this.name,this.target,this.phase)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isAnimation",{get:function(){return!!this.phase},enumerable:!0,configurable:!0}),t}(),qi=function(){function t(t,e,n){this.name=t,this.value=e,this.sourceSpan=n}return t.prototype.visit=function(t,e){return t.visitReference(this,e)},t}(),zi=function(){function t(t,e,n){this.name=t,this.value=e,this.sourceSpan=n}return t.prototype.visit=function(t,e){return t.visitVariable(this,e)},t}(),Wi=function(){function t(t,e,n,r,i,o,s,a,u,c,p,l){this.name=t,this.attrs=e,this.inputs=n,this.outputs=r,this.references=i,this.directives=o,this.providers=s,this.hasViewContainer=a,this.children=u,this.ngContentIndex=c,this.sourceSpan=p,this.endSourceSpan=l}return t.prototype.visit=function(t,e){return t.visitElement(this,e)},t}(),Gi=function(){function t(t,e,n,r,i,o,s,a,u,c){this.attrs=t,this.outputs=e,this.references=n,this.variables=r,this.directives=i,this.providers=o,this.hasViewContainer=s,this.children=a,this.ngContentIndex=u,this.sourceSpan=c}return t.prototype.visit=function(t,e){return t.visitEmbeddedTemplate(this,e)},t}(),Ki=function(){function t(t,e,n,r){this.directiveName=t,this.templateName=e,this.value=n,this.sourceSpan=r}return t.prototype.visit=function(t,e){return t.visitDirectiveProperty(this,e)},t}(),Xi=function(){function t(t,e,n,r,i){this.directive=t,this.inputs=e,this.hostProperties=n,this.hostEvents=r,this.sourceSpan=i}return t.prototype.visit=function(t,e){return t.visitDirective(this,e)},t}(),Qi=function(){function t(t,e,n,r,i,o,s){this.token=t,this.multiProvider=e,this.eager=n,this.providers=r,this.providerType=i,this.lifecycleHooks=o,this.sourceSpan=s}return t.prototype.visit=function(){return null},t}(),Yi={};Yi.PublicService=0,Yi.PrivateService=1,Yi.Component=2,Yi.Directive=3,Yi.Builtin=4,Yi[Yi.PublicService]="PublicService",Yi[Yi.PrivateService]="PrivateService",Yi[Yi.Component]="Component",Yi[Yi.Directive]="Directive",Yi[Yi.Builtin]="Builtin";var $i=function(){function t(t,e,n){this.index=t,this.ngContentIndex=e,this.sourceSpan=n}return t.prototype.visit=function(t,e){return t.visitNgContent(this,e)},t}(),Zi={};Zi.Property=0,Zi.Attribute=1,Zi.Class=2,Zi.Style=3,Zi.Animation=4,Zi[Zi.Property]="Property",Zi[Zi.Attribute]="Attribute",Zi[Zi.Class]="Class",Zi[Zi.Style]="Style",Zi[Zi.Animation]="Animation";var Ji=function(){function t(t,e,n){this.filePath=t,this.name=e,this.members=n}return t}(),to=function(){function t(){this.cache=new Map}return t.prototype.get=function(t,e,n){n=n||[];var r=n.length?"."+n.join("."):"",i='"'+t+'".'+e+r,o=this.cache.get(i);return o||(o=new Ji(t,e,n),this.cache.set(i,o)),o},t}(),eo=Object.getPrototypeOf({}),no=function(){function t(){}return t.parseIntAutoRadix=function(t){var e=parseInt(t);if(isNaN(e))throw new Error("Invalid integer literal when parsing "+t);return e},t.isNumeric=function(t){return!isNaN(t-parseFloat(t))},t}(),ro=function(){function t(){}return t.merge=function(t,e){for(var n={},r=0,i=Object.keys(t);r<i.length;r++){var o=i[r];n[o]=t[o]}for(var s=0,a=Object.keys(e);s<a.length;s++){var o=a[s];n[o]=e[o]}return n},t.equals=function(t,e){var n=Object.keys(t),r=Object.keys(e);if(n.length!=r.length)return!1;for(var i=0;i<n.length;i++){var o=n[i];if(t[o]!==e[o])return!1}return!0},t}(),io=function(){function t(){}return t.findLast=function(t,e){for(var n=t.length-1;n>=0;n--)if(e(t[n]))return t[n];return null},t.removeAll=function(t,e){for(var n=0;n<e.length;++n){var r=t.indexOf(e[n]);r>-1&&t.splice(r,1)}},t.remove=function(t,e){var n=t.indexOf(e);return n>-1?(t.splice(n,1),!0):!1},t.equals=function(t,e){if(t.length!=e.length)return!1;for(var n=0;n<t.length;++n)if(t[n]!==e[n])return!1;return!0},t.flatten=function(e){return e.reduce(function(e,n){var r=Array.isArray(n)?t.flatten(n):n;return e.concat(r)},[])},t}(),oo=e.__core_private__.isDefaultChangeDetectionStrategy,so=e.__core_private__.ChangeDetectorStatus,ao=e.__core_private__.LifecycleHooks,uo=e.__core_private__.LIFECYCLE_HOOKS_VALUES,co=e.__core_private__.ReflectorReader,po=e.__core_private__.ViewContainer,lo=e.__core_private__.CodegenComponentFactoryResolver,ho=e.__core_private__.ComponentRef_,fo=e.__core_private__.AppView,yo=e.__core_private__.DebugAppView,mo=e.__core_private__.NgModuleInjector,vo=e.__core_private__.registerModuleFactory,go=e.__core_private__.ViewType,_o=e.__core_private__.view_utils,bo=e.__core_private__.DebugContext,wo=e.__core_private__.StaticNodeDebugInfo,Eo=e.__core_private__.devModeEqual,So=e.__core_private__.UNINITIALIZED,Co=e.__core_private__.ValueUnwrapper,xo=e.__core_private__.TemplateRef_,To=e.__core_private__.Console,Po=e.__core_private__.reflector,Oo=e.__core_private__.Reflector,Ao=e.__core_private__.ReflectionCapabilities,Mo=e.__core_private__.NoOpAnimationPlayer,Ro=e.__core_private__.AnimationSequencePlayer,ko=e.__core_private__.AnimationGroupPlayer,No=e.__core_private__.AnimationKeyframe,Io=e.__core_private__.AnimationStyles,Do=e.__core_private__.ANY_STATE,jo=e.__core_private__.DEFAULT_STATE,Lo=e.__core_private__.EMPTY_STATE,Vo=e.__core_private__.FILL_STYLE_FLAG,Fo=e.__core_private__.prepareFinalAnimationStyles,Uo=e.__core_private__.balanceAnimationKeyframes,Bo=e.__core_private__.clearStyles,Ho=e.__core_private__.collectAndResolveStyles,qo=e.__core_private__.renderStyles,zo=e.__core_private__.ComponentStillLoadingError,Wo=e.__core_private__.AnimationTransition,Go={};Go.RAW_TEXT=0,Go.ESCAPABLE_RAW_TEXT=1,Go.PARSABLE_DATA=2,Go[Go.RAW_TEXT]="RAW_TEXT",Go[Go.ESCAPABLE_RAW_TEXT]="ESCAPABLE_RAW_TEXT",Go[Go.PARSABLE_DATA]="PARSABLE_DATA";var Ko={Aacute:"Ã",aacute:"á",Acirc:"Â",acirc:"â",acute:"´",AElig:"Æ",aelig:"æ",Agrave:"À",agrave:"à ",alefsym:"ℵ",Alpha:"Α",alpha:"α",amp:"&",and:"∧",ang:"∠",apos:"'",Aring:"Ã…",aring:"Ã¥",asymp:"≈",Atilde:"Ã",atilde:"ã",Auml:"Ä",auml:"ä",bdquo:"„",Beta:"Î’",beta:"β",brvbar:"¦",bull:"•",cap:"∩",Ccedil:"Ç",ccedil:"ç",cedil:"¸",cent:"¢",Chi:"Χ",chi:"χ",circ:"ˆ",clubs:"♣",cong:"≅",copy:"©",crarr:"↵",cup:"∪",curren:"¤",dagger:"†",Dagger:"‡",darr:"↓",dArr:"⇓",deg:"°",Delta:"Δ",delta:"δ",diams:"♦",divide:"÷",Eacute:"É",eacute:"é",Ecirc:"Ê",ecirc:"ê",Egrave:"È",egrave:"è",empty:"∅",emsp:" ",ensp:" ",Epsilon:"Ε",epsilon:"ε",equiv:"≡",Eta:"Η",eta:"η",ETH:"Ã",eth:"ð",Euml:"Ë",euml:"ë",euro:"€",exist:"∃",fnof:"Æ’",forall:"∀",frac12:"½",frac14:"¼",frac34:"¾",frasl:"â„",Gamma:"Γ",gamma:"γ",ge:"≥",gt:">",harr:"↔",hArr:"⇔",hearts:"♥",hellip:"…",Iacute:"Ã",iacute:"Ã",Icirc:"ÃŽ",icirc:"î",iexcl:"¡",Igrave:"ÃŒ",igrave:"ì",image:"â„‘",infin:"∞","int":"∫",Iota:"Ι",iota:"ι",iquest:"¿",isin:"∈",Iuml:"Ã",iuml:"ï",Kappa:"Κ",kappa:"κ",Lambda:"Λ",lambda:"λ",lang:"⟨",laquo:"«",larr:"â†",lArr:"â‡",lceil:"⌈",ldquo:"“",le:"≤",lfloor:"⌊",lowast:"∗",loz:"â—Š",lrm:"‎",lsaquo:"‹",lsquo:"‘",lt:"<",macr:"¯",mdash:"—",micro:"µ",middot:"·",minus:"−",Mu:"Îœ",mu:"μ",nabla:"∇",nbsp:" ",ndash:"–",ne:"≠",ni:"∋",not:"¬",notin:"∉",nsub:"⊄",Ntilde:"Ñ",ntilde:"ñ",Nu:"Î",nu:"ν",Oacute:"Ó",oacute:"ó",Ocirc:"Ô",ocirc:"ô",OElig:"Å’",oelig:"Å“",Ograve:"Ã’",ograve:"ò",oline:"‾",Omega:"Ω",omega:"ω",Omicron:"Ο",omicron:"ο",oplus:"⊕",or:"∨",ordf:"ª",ordm:"º",Oslash:"Ø",oslash:"ø",Otilde:"Õ",otilde:"õ",otimes:"⊗",Ouml:"Ö",ouml:"ö",para:"¶",permil:"‰",perp:"⊥",Phi:"Φ",phi:"φ",Pi:"Î ",pi:"Ï€",piv:"Ï–",plusmn:"±",pound:"£",prime:"′",Prime:"″",prod:"âˆ",prop:"âˆ",Psi:"Ψ",psi:"ψ",quot:'"',radic:"√",rang:"⟩",raquo:"»",rarr:"→",rArr:"⇒",rceil:"⌉",rdquo:"â€",real:"â„œ",reg:"®",rfloor:"⌋",Rho:"Ρ",rho:"Ï",rlm:"â€",rsaquo:"›",rsquo:"’",sbquo:"‚",Scaron:"Å ",scaron:"Å¡",sdot:"â‹…",sect:"§",shy:"Â",Sigma:"Σ",sigma:"σ",sigmaf:"Ï‚",sim:"∼",spades:"â™ ",sub:"⊂",sube:"⊆",sum:"∑",sup:"⊃",sup1:"¹",sup2:"²",sup3:"³",supe:"⊇",szlig:"ß",Tau:"Τ",tau:"Ï„",there4:"∴",Theta:"Θ",theta:"θ",thetasym:"Ï‘",thinsp:" ",THORN:"Þ",thorn:"þ",tilde:"Ëœ",times:"×",trade:"â„¢",Uacute:"Ú",uacute:"ú",uarr:"↑",uArr:"⇑",Ucirc:"Û",ucirc:"û",Ugrave:"Ù",ugrave:"ù",uml:"¨",upsih:"Ï’",Upsilon:"Î¥",upsilon:"Ï…",Uuml:"Ãœ",uuml:"ü",weierp:"℘",Xi:"Ξ",xi:"ξ",Yacute:"Ã",yacute:"ý",yen:"Â¥",yuml:"ÿ",Yuml:"Ÿ",Zeta:"Ζ",zeta:"ζ",zwj:"â€",zwnj:"‌"},Xo=function(){function t(t){var e=this,n=void 0===t?{}:t,r=n.closedByChildren,i=n.requiredParents,o=n.implicitNamespacePrefix,s=n.contentType,a=void 0===s?Go.PARSABLE_DATA:s,u=n.closedByParent,c=void 0===u?!1:u,p=n.isVoid,l=void 0===p?!1:p,h=n.ignoreFirstLf,f=void 0===h?!1:h;this.closedByChildren={},this.closedByParent=!1,this.canSelfClose=!1,r&&r.length>0&&r.forEach(function(t){return e.closedByChildren[t]=!0}),this.isVoid=l,this.closedByParent=c||l,i&&i.length>0&&(this.requiredParents={},this.parentToAdd=i[0],i.forEach(function(t){return e.requiredParents[t]=!0})),this.implicitNamespacePrefix=o,this.contentType=a,this.ignoreFirstLf=f}return t.prototype.requireExtraParent=function(t){if(!this.requiredParents)return!1;if(!t)return!0;var e=t.toLowerCase();return 1!=this.requiredParents[e]&&"template"!=e},t.prototype.isClosedByChild=function(t){return this.isVoid||t.toLowerCase()in this.closedByChildren},t}(),Qo={base:new Xo({isVoid:!0}),meta:new Xo({isVoid:!0}),area:new Xo({isVoid:!0}),embed:new Xo({isVoid:!0}),link:new Xo({isVoid:!0}),img:new Xo({isVoid:!0}),input:new Xo({isVoid:!0}),param:new Xo({isVoid:!0}),hr:new Xo({isVoid:!0}),br:new Xo({isVoid:!0}),source:new Xo({isVoid:!0}),track:new Xo({isVoid:!0}),wbr:new Xo({isVoid:!0}),p:new Xo({closedByChildren:["address","article","aside","blockquote","div","dl","fieldset","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","hr","main","nav","ol","p","pre","section","table","ul"],closedByParent:!0}),thead:new Xo({closedByChildren:["tbody","tfoot"]}),tbody:new Xo({closedByChildren:["tbody","tfoot"],closedByParent:!0}),tfoot:new Xo({closedByChildren:["tbody"],closedByParent:!0}),tr:new Xo({closedByChildren:["tr"],requiredParents:["tbody","tfoot","thead"],closedByParent:!0}),td:new Xo({closedByChildren:["td","th"],closedByParent:!0}),th:new Xo({closedByChildren:["td","th"],closedByParent:!0}),col:new Xo({requiredParents:["colgroup"],isVoid:!0}),svg:new Xo({implicitNamespacePrefix:"svg"}),math:new Xo({implicitNamespacePrefix:"math"}),li:new Xo({closedByChildren:["li"],closedByParent:!0}),dt:new Xo({closedByChildren:["dt","dd"]}),dd:new Xo({closedByChildren:["dt","dd"],closedByParent:!0}),rb:new Xo({closedByChildren:["rb","rt","rtc","rp"],closedByParent:!0}),rt:new Xo({closedByChildren:["rb","rt","rtc","rp"],closedByParent:!0}),rtc:new Xo({closedByChildren:["rb","rtc","rp"],closedByParent:!0}),rp:new Xo({closedByChildren:["rb","rt","rtc","rp"],closedByParent:!0}),optgroup:new Xo({closedByChildren:["optgroup"],closedByParent:!0}),option:new Xo({closedByChildren:["option","optgroup"],closedByParent:!0}),pre:new Xo({ignoreFirstLf:!0}),listing:new Xo({ignoreFirstLf:!0}),style:new Xo({contentType:Go.RAW_TEXT}),script:new Xo({contentType:Go.RAW_TEXT}),title:new Xo({contentType:Go.ESCAPABLE_RAW_TEXT}),textarea:new Xo({contentType:Go.ESCAPABLE_RAW_TEXT,ignoreFirstLf:!0})},Yo=new Xo,$o=new RegExp("(\\:not\\()|([-\\w]+)|(?:\\.([-\\w]+))|(?:\\[([-.\\w*]+)(?:=([^\\]]*))?\\])|(\\))|(\\s*,\\s*)","g"),Zo=function(){function t(){this.element=null,this.classNames=[],this.attrs=[],this.notSelectors=[]}return t.parse=function(e){var n,r=[],i=function(t,e){e.notSelectors.length>0&&!e.element&&0==e.classNames.length&&0==e.attrs.length&&(e.element="*"),t.push(e)},o=new t,s=o,a=!1;for($o.lastIndex=0;n=$o.exec(e);){if(n[1]){if(a)throw new Error("Nesting :not is not allowed in a selector");a=!0,s=new t,o.notSelectors.push(s)}if(n[2]&&s.setElement(n[2]),n[3]&&s.addClassName(n[3]),n[4]&&s.addAttribute(n[4],n[5]),n[6]&&(a=!1,s=o),n[7]){if(a)throw new Error("Multiple selectors in :not are not supported");i(r,o),o=s=new t}}return i(r,o),r},t.prototype.isElementSelector=function(){return this.hasElementSelector()&&0==this.classNames.length&&0==this.attrs.length&&0===this.notSelectors.length},t.prototype.hasElementSelector=function(){return!!this.element},t.prototype.setElement=function(t){void 0===t&&(t=null),this.element=t},t.prototype.getMatchingElementTemplate=function(){for(var t=this.element||"div",e=this.classNames.length>0?' class="'+this.classNames.join(" ")+'"':"",n="",r=0;r<this.attrs.length;r+=2){var i=this.attrs[r],o=""!==this.attrs[r+1]?'="'+this.attrs[r+1]+'"':"";n+=" "+i+o}return f(t).isVoid?"<"+t+e+n+"/>":"<"+t+e+n+"></"+t+">"},t.prototype.addAttribute=function(t,e){void 0===e&&(e=""),this.attrs.push(t,e&&e.toLowerCase()||"")},t.prototype.addClassName=function(t){this.classNames.push(t.toLowerCase())},t.prototype.toString=function(){var t=this.element||"";if(this.classNames&&this.classNames.forEach(function(e){return t+="."+e}),this.attrs)for(var e=0;e<this.attrs.length;e+=2){var n=this.attrs[e],r=this.attrs[e+1];t+="["+n+(r?"="+r:"")+"]"}return this.notSelectors.forEach(function(e){return t+=":not("+e+")"}),t},t}(),Jo=function(){function t(){this._elementMap=new Map,this._elementPartialMap=new Map,this._classMap=new Map,this._classPartialMap=new Map,this._attrValueMap=new Map,this._attrValuePartialMap=new Map,this._listContexts=[]}return t.createNotMatcher=function(e){var n=new t;return n.addSelectables(e,null),n},t.prototype.addSelectables=function(t,e){var n=null;t.length>1&&(n=new ts(t),this._listContexts.push(n));for(var r=0;r<t.length;r++)this._addSelectable(t[r],e,n)},t.prototype._addSelectable=function(t,e,n){var r=this,i=t.element,o=t.classNames,s=t.attrs,a=new es(t,e,n);if(i){var u=0===s.length&&0===o.length;u?this._addTerminal(r._elementMap,i,a):r=this._addPartial(r._elementPartialMap,i)}if(o)for(var c=0;c<o.length;c++){var u=0===s.length&&c===o.length-1,p=o[c];u?this._addTerminal(r._classMap,p,a):r=this._addPartial(r._classPartialMap,p)}if(s)for(var c=0;c<s.length;c+=2){var u=c===s.length-2,l=s[c],h=s[c+1];if(u){var f=r._attrValueMap,d=f.get(l);d||(d=new Map,f.set(l,d)),this._addTerminal(d,h,a)}else{var y=r._attrValuePartialMap,m=y.get(l);m||(m=new Map,y.set(l,m)),r=this._addPartial(m,h)}}},t.prototype._addTerminal=function(t,e,n){var r=t.get(e);r||(r=[],t.set(e,r)),r.push(n)},t.prototype._addPartial=function(e,n){var r=e.get(n);return r||(r=new t,e.set(n,r)),r},t.prototype.match=function(t,e){for(var n=!1,r=t.element,i=t.classNames,o=t.attrs,s=0;s<this._listContexts.length;s++)this._listContexts[s].alreadyMatched=!1;if(n=this._matchTerminal(this._elementMap,r,t,e)||n,n=this._matchPartial(this._elementPartialMap,r,t,e)||n,i)for(var s=0;s<i.length;s++){var a=i[s];n=this._matchTerminal(this._classMap,a,t,e)||n,n=this._matchPartial(this._classPartialMap,a,t,e)||n}if(o)for(var s=0;s<o.length;s+=2){var u=o[s],c=o[s+1],p=this._attrValueMap.get(u);c&&(n=this._matchTerminal(p,"",t,e)||n),n=this._matchTerminal(p,c,t,e)||n;var l=this._attrValuePartialMap.get(u);c&&(n=this._matchPartial(l,"",t,e)||n),n=this._matchPartial(l,c,t,e)||n}return n},t.prototype._matchTerminal=function(t,e,n,r){if(!t||"string"!=typeof e)return!1;var i=t.get(e)||[],o=t.get("*");if(o&&(i=i.concat(o)),0===i.length)return!1;for(var s,a=!1,u=0;u<i.length;u++)s=i[u],a=s.finalize(n,r)||a;return a},t.prototype._matchPartial=function(t,e,n,r){if(!t||"string"!=typeof e)return!1;var i=t.get(e);return i?i.match(n,r):!1},t}(),ts=function(){function t(t){this.selectors=t,this.alreadyMatched=!1}return t}(),es=function(){function t(t,e,n){this.selector=t,this.cbContext=e,this.listContext=n,this.notSelectors=t.notSelectors}return t.prototype.finalize=function(t,e){var n=!0;if(this.notSelectors.length>0&&(!this.listContext||!this.listContext.alreadyMatched)){var r=Jo.createNotMatcher(this.notSelectors);n=!r.match(t,null)}return!n||!e||this.listContext&&this.listContext.alreadyMatched||(this.listContext&&(this.listContext.alreadyMatched=!0),e(this.selector,this.cbContext)),n},t}(),ns=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},rs=function(t){function e(e){t.call(this,e);var n=new Error(e);this._nativeError=n}return ns(e,t),Object.defineProperty(e.prototype,"message",{get:function(){return this._nativeError.message},set:function(t){this._nativeError.message=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"name",{get:function(){return this._nativeError.name},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"stack",{get:function(){return this._nativeError.stack},set:function(t){this._nativeError.stack=t},enumerable:!0,configurable:!0}),e.prototype.toString=function(){return this._nativeError.toString()},e}(Error),is=(function(t){function e(e,n){t.call(this,e+" caused by: "+(n instanceof Error?n.message:n)),this.originalError=n}return ns(e,t),Object.defineProperty(e.prototype,"stack",{get:function(){return(this.originalError instanceof Error?this.originalError:this._nativeError).stack},enumerable:!0,configurable:!0}),e}(rs),this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),os="",ss=/-+([a-z0-9])/g,as=function(){function t(){}return t.prototype.visitArray=function(t,e){var n=this;return t.map(function(t){return g(t,n,e)})},t.prototype.visitStringMap=function(t,e){var n=this,r={};return Object.keys(t).forEach(function(i){r[i]=g(t[i],n,e)}),r},t.prototype.visitPrimitive=function(t){return t},t.prototype.visitOther=function(t){return t},t}(),us=function(){function t(t,e){void 0===e&&(e=null),this.syncResult=t,this.asyncResult=e,e||(this.asyncResult=Promise.resolve(t))}return t}(),cs=function(t){function e(){t.apply(this,arguments)}return is(e,t),e}(rs),ps=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},ls=/^(?:(?:\[([^\]]+)\])|(?:\(([^\)]+)\)))|(\@[-\w]+)$/,hs=function(){function t(t,e){void 0===t&&(t=null),void 0===e&&(e=null),this.name=t,this.definitions=e}return t}(),fs=function(){function t(){}return t}(),ds=function(t){function e(e,n){t.call(this),this.stateNameExpr=e,this.styles=n}return ps(e,t),e}(fs),ys=function(t){function e(e,n){t.call(this),this.stateChangeExpr=e,this.steps=n}return ps(e,t),e}(fs),ms=function(){function t(){}return t}(),vs=function(t){function e(e){void 0===e&&(e=[]),t.call(this),this.steps=e}return ps(e,t),e}(ms),gs=function(t){function e(e,n){void 0===n&&(n=null),t.call(this),this.offset=e,this.styles=n}return ps(e,t),e}(ms),_s=function(t){function e(e,n){void 0===e&&(e=0),void 0===n&&(n=null),t.call(this),this.timings=e,this.styles=n}return ps(e,t),e}(ms),bs=function(t){function e(e){void 0===e&&(e=null),t.call(this),this.steps=e}return ps(e,t),e}(ms),ws=function(t){function e(e){void 0===e&&(e=null),t.call(this,e)}return ps(e,t),e}(bs),Es=function(t){function e(e){void 0===e&&(e=null),t.call(this,e)}return ps(e,t),e}(bs),Ss=0,Cs={};Cs.Pipe=0,Cs.Directive=1,Cs.NgModule=2,Cs.Injectable=3,Cs[Cs.Pipe]="Pipe",Cs[Cs.Directive]="Directive",Cs[Cs.NgModule]="NgModule",Cs[Cs.Injectable]="Injectable";var xs=function(){function t(t){var e=void 0===t?{}:t,n=e.moduleUrl,r=e.styles,i=e.styleUrls;this.moduleUrl=n,this.styles=x(r),this.styleUrls=x(i)}return t}(),Ts=function(){function t(t){var e=void 0===t?{}:t,n=e.encapsulation,r=e.template,i=e.templateUrl,o=e.styles,s=e.styleUrls,a=e.externalStylesheets,u=e.animations,c=e.ngContentSelectors,p=e.interpolation;if(this.encapsulation=n,this.template=r,this.templateUrl=i,this.styles=x(o),this.styleUrls=x(s),this.externalStylesheets=x(a),this.animations=u?io.flatten(u):[],this.ngContentSelectors=c||[],p&&2!=p.length)throw new Error("'interpolation' should have a start and an end symbol.");this.interpolation=p}return t.prototype.toSummary=function(){return{animations:this.animations.map(function(t){return t.name}),ngContentSelectors:this.ngContentSelectors,encapsulation:this.encapsulation}},t}(),Ps=function(){function t(t){var e=void 0===t?{}:t,n=e.isHost,r=e.type,i=e.isComponent,o=e.selector,s=e.exportAs,a=e.changeDetection,u=e.inputs,c=e.outputs,p=e.hostListeners,l=e.hostProperties,h=e.hostAttributes,f=e.providers,d=e.viewProviders,y=e.queries,m=e.viewQueries,v=e.entryComponents,g=e.template;this.isHost=!!n,this.type=r,this.isComponent=i,this.selector=o,this.exportAs=s,this.changeDetection=a,this.inputs=u,this.outputs=c,this.hostListeners=p,this.hostProperties=l,this.hostAttributes=h,this.providers=x(f),this.viewProviders=x(d),this.queries=x(y),this.viewQueries=x(m),this.entryComponents=x(v),this.template=g}return t.create=function(e){var n=void 0===e?{}:e,i=n.isHost,o=n.type,s=n.isComponent,a=n.selector,u=n.exportAs,c=n.changeDetection,p=n.inputs,l=n.outputs,h=n.host,f=n.providers,d=n.viewProviders,m=n.queries,v=n.viewQueries,g=n.entryComponents,_=n.template,b={},w={},E={};r(h)&&Object.keys(h).forEach(function(t){var e=h[t],n=t.match(ls);null===n?E[t]=e:r(n[1])?w[n[1]]=e:r(n[2])&&(b[n[2]]=e)});var S={};r(p)&&p.forEach(function(t){var e=y(t,[t,t]);S[e[0]]=e[1]});var C={};return r(l)&&l.forEach(function(t){var e=y(t,[t,t]);C[e[0]]=e[1]}),new t({isHost:i,type:o,isComponent:!!s,selector:a,exportAs:u,changeDetection:c,inputs:S,outputs:C,hostListeners:b,hostProperties:w,hostAttributes:E,providers:f,viewProviders:d,queries:m,viewQueries:v,entryComponents:g,template:_})},t.prototype.toSummary=function(){return{summaryKind:Cs.Directive,type:this.type,isComponent:this.isComponent,selector:this.selector,exportAs:this.exportAs,inputs:this.inputs,outputs:this.outputs,hostListeners:this.hostListeners,hostProperties:this.hostProperties,hostAttributes:this.hostAttributes,providers:this.providers,viewProviders:this.viewProviders,queries:this.queries,entryComponents:this.entryComponents,changeDetection:this.changeDetection,template:this.template&&this.template.toSummary()}},t}(),Os=function(){function t(t){var e=void 0===t?{}:t,n=e.type,r=e.name,i=e.pure;this.type=n,this.name=r,this.pure=!!i}return t.prototype.toSummary=function(){return{summaryKind:Cs.Pipe,type:this.type,name:this.name,pure:this.pure}},t}(),As=function(){function t(t){var e=void 0===t?{}:t,n=e.type,r=e.providers,i=e.declaredDirectives,o=e.exportedDirectives,s=e.declaredPipes,a=e.exportedPipes,u=e.entryComponents,c=e.bootstrapComponents,p=e.importedModules,l=e.exportedModules,h=e.schemas,f=e.transitiveModule,d=e.id;this.type=n,this.declaredDirectives=x(i),this.exportedDirectives=x(o),this.declaredPipes=x(s),this.exportedPipes=x(a),this.providers=x(r),this.entryComponents=x(u),this.bootstrapComponents=x(c), -this.importedModules=x(p),this.exportedModules=x(l),this.schemas=x(h),this.id=d,this.transitiveModule=f}return t.prototype.toSummary=function(){return{summaryKind:Cs.NgModule,type:this.type,entryComponents:this.transitiveModule.entryComponents,providers:this.transitiveModule.providers,modules:this.transitiveModule.modules,exportedDirectives:this.transitiveModule.exportedDirectives,exportedPipes:this.transitiveModule.exportedPipes}},t}(),Ms=function(){function t(){this.directivesSet=new Set,this.directives=[],this.exportedDirectivesSet=new Set,this.exportedDirectives=[],this.pipesSet=new Set,this.pipes=[],this.exportedPipesSet=new Set,this.exportedPipes=[],this.modulesSet=new Set,this.modules=[],this.entryComponentsSet=new Set,this.entryComponents=[],this.providers=[]}return t.prototype.addProvider=function(t,e){this.providers.push({provider:t,module:e})},t.prototype.addDirective=function(t){this.directivesSet.has(t.reference)||(this.directivesSet.add(t.reference),this.directives.push(t))},t.prototype.addExportedDirective=function(t){this.exportedDirectivesSet.has(t.reference)||(this.exportedDirectivesSet.add(t.reference),this.exportedDirectives.push(t))},t.prototype.addPipe=function(t){this.pipesSet.has(t.reference)||(this.pipesSet.add(t.reference),this.pipes.push(t))},t.prototype.addExportedPipe=function(t){this.exportedPipesSet.has(t.reference)||(this.exportedPipesSet.add(t.reference),this.exportedPipes.push(t))},t.prototype.addModule=function(t){this.modulesSet.has(t.reference)||(this.modulesSet.add(t.reference),this.modules.push(t))},t.prototype.addEntryComponent=function(t){this.entryComponentsSet.has(t.reference)||(this.entryComponentsSet.add(t.reference),this.entryComponents.push(t))},t}(),Rs=function(){function t(t,e){var n=e.useClass,r=e.useValue,i=e.useExisting,o=e.useFactory,s=e.deps,a=e.multi;this.token=t,this.useClass=n,this.useValue=r,this.useExisting=i,this.useFactory=o,this.dependencies=s,this.multi=!!a}return t}(),ks=0,Ns=9,Is=10,Ds=11,js=12,Ls=13,Vs=32,Fs=33,Us=34,Bs=35,Hs=36,qs=37,zs=38,Ws=39,Gs=40,Ks=41,Xs=42,Qs=43,Ys=44,$s=45,Zs=46,Js=47,ta=58,ea=59,na=60,ra=61,ia=62,oa=63,sa=48,aa=57,ua=65,ca=69,pa=70,la=88,ha=90,fa=91,da=92,ya=93,ma=94,va=95,ga=97,_a=101,ba=102,wa=110,Ea=114,Sa=116,Ca=117,xa=118,Ta=120,Pa=122,Oa=123,Aa=124,Ma=125,Ra=160,ka=96,Na=[/^\s*$/,/[<>]/,/^[{}]$/,/&(#|[a-z])/i,/^\/\//],Ia=function(){function t(t,e){this.start=t,this.end=e}return t.fromArray=function(e){return e?(k("interpolation",e),new t(e[0],e[1])):Da},t}(),Da=new Ia("{{","}}"),ja=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},La=function(){function t(t,e,n,r){this.input=e,this.errLocation=n,this.ctxLocation=r,this.message="Parser Error: "+t+" "+n+" ["+e+"] in "+r}return t}(),Va=function(){function t(t,e){this.start=t,this.end=e}return t}(),Fa=function(){function t(t){this.span=t}return t.prototype.visit=function(t,e){return void 0===e&&(e=null),null},t.prototype.toString=function(){return"AST"},t}(),Ua=function(t){function e(e,n,r,i){t.call(this,e),this.prefix=n,this.uninterpretedExpression=r,this.location=i}return ja(e,t),e.prototype.visit=function(t,e){return void 0===e&&(e=null),t.visitQuote(this,e)},e.prototype.toString=function(){return"Quote"},e}(Fa),Ba=function(t){function e(){t.apply(this,arguments)}return ja(e,t),e.prototype.visit=function(t,e){void 0===e&&(e=null)},e}(Fa),Ha=function(t){function e(){t.apply(this,arguments)}return ja(e,t),e.prototype.visit=function(t,e){return void 0===e&&(e=null),t.visitImplicitReceiver(this,e)},e}(Fa),qa=function(t){function e(e,n){t.call(this,e),this.expressions=n}return ja(e,t),e.prototype.visit=function(t,e){return void 0===e&&(e=null),t.visitChain(this,e)},e}(Fa),za=function(t){function e(e,n,r,i){t.call(this,e),this.condition=n,this.trueExp=r,this.falseExp=i}return ja(e,t),e.prototype.visit=function(t,e){return void 0===e&&(e=null),t.visitConditional(this,e)},e}(Fa),Wa=function(t){function e(e,n,r){t.call(this,e),this.receiver=n,this.name=r}return ja(e,t),e.prototype.visit=function(t,e){return void 0===e&&(e=null),t.visitPropertyRead(this,e)},e}(Fa),Ga=function(t){function e(e,n,r,i){t.call(this,e),this.receiver=n,this.name=r,this.value=i}return ja(e,t),e.prototype.visit=function(t,e){return void 0===e&&(e=null),t.visitPropertyWrite(this,e)},e}(Fa),Ka=function(t){function e(e,n,r){t.call(this,e),this.receiver=n,this.name=r}return ja(e,t),e.prototype.visit=function(t,e){return void 0===e&&(e=null),t.visitSafePropertyRead(this,e)},e}(Fa),Xa=function(t){function e(e,n,r){t.call(this,e),this.obj=n,this.key=r}return ja(e,t),e.prototype.visit=function(t,e){return void 0===e&&(e=null),t.visitKeyedRead(this,e)},e}(Fa),Qa=function(t){function e(e,n,r,i){t.call(this,e),this.obj=n,this.key=r,this.value=i}return ja(e,t),e.prototype.visit=function(t,e){return void 0===e&&(e=null),t.visitKeyedWrite(this,e)},e}(Fa),Ya=function(t){function e(e,n,r,i){t.call(this,e),this.exp=n,this.name=r,this.args=i}return ja(e,t),e.prototype.visit=function(t,e){return void 0===e&&(e=null),t.visitPipe(this,e)},e}(Fa),$a=function(t){function e(e,n){t.call(this,e),this.value=n}return ja(e,t),e.prototype.visit=function(t,e){return void 0===e&&(e=null),t.visitLiteralPrimitive(this,e)},e}(Fa),Za=function(t){function e(e,n){t.call(this,e),this.expressions=n}return ja(e,t),e.prototype.visit=function(t,e){return void 0===e&&(e=null),t.visitLiteralArray(this,e)},e}(Fa),Ja=function(t){function e(e,n,r){t.call(this,e),this.keys=n,this.values=r}return ja(e,t),e.prototype.visit=function(t,e){return void 0===e&&(e=null),t.visitLiteralMap(this,e)},e}(Fa),tu=function(t){function e(e,n,r){t.call(this,e),this.strings=n,this.expressions=r}return ja(e,t),e.prototype.visit=function(t,e){return void 0===e&&(e=null),t.visitInterpolation(this,e)},e}(Fa),eu=function(t){function e(e,n,r,i){t.call(this,e),this.operation=n,this.left=r,this.right=i}return ja(e,t),e.prototype.visit=function(t,e){return void 0===e&&(e=null),t.visitBinary(this,e)},e}(Fa),nu=function(t){function e(e,n){t.call(this,e),this.expression=n}return ja(e,t),e.prototype.visit=function(t,e){return void 0===e&&(e=null),t.visitPrefixNot(this,e)},e}(Fa),ru=function(t){function e(e,n,r,i){t.call(this,e),this.receiver=n,this.name=r,this.args=i}return ja(e,t),e.prototype.visit=function(t,e){return void 0===e&&(e=null),t.visitMethodCall(this,e)},e}(Fa),iu=function(t){function e(e,n,r,i){t.call(this,e),this.receiver=n,this.name=r,this.args=i}return ja(e,t),e.prototype.visit=function(t,e){return void 0===e&&(e=null),t.visitSafeMethodCall(this,e)},e}(Fa),ou=function(t){function e(e,n,r){t.call(this,e),this.target=n,this.args=r}return ja(e,t),e.prototype.visit=function(t,e){return void 0===e&&(e=null),t.visitFunctionCall(this,e)},e}(Fa),su=function(t){function e(e,n,r,o){t.call(this,new Va(0,i(n)?0:n.length)),this.ast=e,this.source=n,this.location=r,this.errors=o}return ja(e,t),e.prototype.visit=function(t,e){return void 0===e&&(e=null),this.ast.visit(t,e)},e.prototype.toString=function(){return this.source+" in "+this.location},e}(Fa),au=function(){function t(t,e,n,r,i){this.span=t,this.key=e,this.keyIsVar=n,this.name=r,this.expression=i}return t}(),uu=function(){function t(){}return t.prototype.visitBinary=function(t){return t.left.visit(this),t.right.visit(this),null},t.prototype.visitChain=function(t,e){return this.visitAll(t.expressions,e)},t.prototype.visitConditional=function(t){return t.condition.visit(this),t.trueExp.visit(this),t.falseExp.visit(this),null},t.prototype.visitPipe=function(t,e){return t.exp.visit(this),this.visitAll(t.args,e),null},t.prototype.visitFunctionCall=function(t,e){return t.target.visit(this),this.visitAll(t.args,e),null},t.prototype.visitImplicitReceiver=function(){return null},t.prototype.visitInterpolation=function(t,e){return this.visitAll(t.expressions,e)},t.prototype.visitKeyedRead=function(t){return t.obj.visit(this),t.key.visit(this),null},t.prototype.visitKeyedWrite=function(t){return t.obj.visit(this),t.key.visit(this),t.value.visit(this),null},t.prototype.visitLiteralArray=function(t,e){return this.visitAll(t.expressions,e)},t.prototype.visitLiteralMap=function(t,e){return this.visitAll(t.values,e)},t.prototype.visitLiteralPrimitive=function(){return null},t.prototype.visitMethodCall=function(t,e){return t.receiver.visit(this),this.visitAll(t.args,e)},t.prototype.visitPrefixNot=function(t){return t.expression.visit(this),null},t.prototype.visitPropertyRead=function(t){return t.receiver.visit(this),null},t.prototype.visitPropertyWrite=function(t){return t.receiver.visit(this),t.value.visit(this),null},t.prototype.visitSafePropertyRead=function(t){return t.receiver.visit(this),null},t.prototype.visitSafeMethodCall=function(t,e){return t.receiver.visit(this),this.visitAll(t.args,e)},t.prototype.visitAll=function(t,e){var n=this;return t.forEach(function(t){return t.visit(n,e)}),null},t.prototype.visitQuote=function(){return null},t}(),cu=this&&this.__decorate||function(t,e,n,r){var i,o=arguments.length,s=3>o?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,r);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(3>o?i(s):o>3?i(e,n,s):i(e,n))||s);return o>3&&s&&Object.defineProperty(e,n,s),s},pu=this&&this.__metadata||function(t,e){return"object"==typeof Reflect&&"function"==typeof Reflect.metadata?Reflect.metadata(t,e):void 0},lu={};lu.Character=0,lu.Identifier=1,lu.Keyword=2,lu.String=3,lu.Operator=4,lu.Number=5,lu.Error=6,lu[lu.Character]="Character",lu[lu.Identifier]="Identifier",lu[lu.Keyword]="Keyword",lu[lu.String]="String",lu[lu.Operator]="Operator",lu[lu.Number]="Number",lu[lu.Error]="Error";var hu=["var","let","null","undefined","true","false","if","else","this"],fu=function(){function t(){}return t.prototype.tokenize=function(t){for(var e=new mu(t),n=[],r=e.scanToken();null!=r;)n.push(r),r=e.scanToken();return n},t=cu([M(),pu("design:paramtypes",[])],t)}(),du=function(){function t(t,e,n,r){this.index=t,this.type=e,this.numValue=n,this.strValue=r}return t.prototype.isCharacter=function(t){return this.type==lu.Character&&this.numValue==t},t.prototype.isNumber=function(){return this.type==lu.Number},t.prototype.isString=function(){return this.type==lu.String},t.prototype.isOperator=function(t){return this.type==lu.Operator&&this.strValue==t},t.prototype.isIdentifier=function(){return this.type==lu.Identifier},t.prototype.isKeyword=function(){return this.type==lu.Keyword},t.prototype.isKeywordLet=function(){return this.type==lu.Keyword&&"let"==this.strValue},t.prototype.isKeywordNull=function(){return this.type==lu.Keyword&&"null"==this.strValue},t.prototype.isKeywordUndefined=function(){return this.type==lu.Keyword&&"undefined"==this.strValue},t.prototype.isKeywordTrue=function(){return this.type==lu.Keyword&&"true"==this.strValue},t.prototype.isKeywordFalse=function(){return this.type==lu.Keyword&&"false"==this.strValue},t.prototype.isKeywordThis=function(){return this.type==lu.Keyword&&"this"==this.strValue},t.prototype.isError=function(){return this.type==lu.Error},t.prototype.toNumber=function(){return this.type==lu.Number?this.numValue:-1},t.prototype.toString=function(){switch(this.type){case lu.Character:case lu.Identifier:case lu.Keyword:case lu.Operator:case lu.String:case lu.Error:return this.strValue;case lu.Number:return this.numValue.toString();default:return null}},t}(),yu=new du(-1,lu.Character,0,""),mu=function(){function t(t){this.input=t,this.peek=0,this.index=-1,this.length=t.length,this.advance()}return t.prototype.advance=function(){this.peek=++this.index>=this.length?ks:this.input.charCodeAt(this.index)},t.prototype.scanToken=function(){for(var t=this.input,e=this.length,n=this.peek,r=this.index;Vs>=n;){if(++r>=e){n=ks;break}n=t.charCodeAt(r)}if(this.peek=n,this.index=r,r>=e)return null;if(U(n))return this.scanIdentifier();if(P(n))return this.scanNumber(r);var i=r;switch(n){case Zs:return this.advance(),P(this.peek)?this.scanNumber(i):N(i,Zs);case Gs:case Ks:case Oa:case Ma:case fa:case ya:case Ys:case ta:case ea:return this.scanCharacter(i,n);case Ws:case Us:return this.scanString();case Bs:case Qs:case $s:case Xs:case Js:case qs:case ma:return this.scanOperator(i,String.fromCharCode(n));case oa:return this.scanComplexOperator(i,"?",Zs,".");case na:case ia:return this.scanComplexOperator(i,String.fromCharCode(n),ra,"=");case Fs:case ra:return this.scanComplexOperator(i,String.fromCharCode(n),ra,"=",ra,"=");case zs:return this.scanComplexOperator(i,"&",zs,"&");case Aa:return this.scanComplexOperator(i,"|",Aa,"|");case Ra:for(;T(this.peek);)this.advance();return this.scanToken()}return this.advance(),this.error("Unexpected character ["+String.fromCharCode(n)+"]",0)},t.prototype.scanCharacter=function(t,e){return this.advance(),N(t,e)},t.prototype.scanOperator=function(t,e){return this.advance(),j(t,e)},t.prototype.scanComplexOperator=function(t,e,n,r,i,o){this.advance();var s=e;return this.peek==n&&(this.advance(),s+=r),null!=i&&this.peek==i&&(this.advance(),s+=o),j(t,s)},t.prototype.scanIdentifier=function(){var t=this.index;for(this.advance();H(this.peek);)this.advance();var e=this.input.substring(t,this.index);return hu.indexOf(e)>-1?D(t,e):I(t,e)},t.prototype.scanNumber=function(t){var e=this.index===t;for(this.advance();;){if(P(this.peek));else if(this.peek==Zs)e=!1;else{if(!q(this.peek))break;if(this.advance(),z(this.peek)&&this.advance(),!P(this.peek))return this.error("Invalid exponent",-1);e=!1}this.advance()}var n=this.input.substring(t,this.index),r=e?no.parseIntAutoRadix(n):parseFloat(n);return V(t,r)},t.prototype.scanString=function(){var t=this.index,e=this.peek;this.advance();for(var n="",r=this.index,i=this.input;this.peek!=e;)if(this.peek==da){n+=i.substring(r,this.index),this.advance();var o=void 0;if(this.peek==Ca){var s=i.substring(this.index+1,this.index+5);if(!/^[0-9a-f]+$/i.test(s))return this.error("Invalid unicode escape [\\u"+s+"]",0);o=parseInt(s,16);for(var a=0;5>a;a++)this.advance()}else o=G(this.peek),this.advance();n+=String.fromCharCode(o),r=this.index}else{if(this.peek==ks)return this.error("Unterminated quote",0);this.advance()}var u=i.substring(r,this.index);return this.advance(),L(t,n+u)},t.prototype.error=function(t,e){var n=this.index+e;return F(n,"Lexer Error: "+t+" at column "+n+" in expression ["+this.input+"]")},t}(),vu=this&&this.__decorate||function(t,e,n,r){var i,o=arguments.length,s=3>o?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,r);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(3>o?i(s):o>3?i(e,n,s):i(e,n))||s);return o>3&&s&&Object.defineProperty(e,n,s),s},gu=this&&this.__metadata||function(t,e){return"object"==typeof Reflect&&"function"==typeof Reflect.metadata?Reflect.metadata(t,e):void 0},_u=function(){function t(t,e,n){this.strings=t,this.expressions=e,this.offsets=n}return t}(),bu=function(){function t(t,e,n){this.templateBindings=t,this.warnings=e,this.errors=n}return t}(),wu=function(){function t(t){this._lexer=t,this.errors=[]}return t.prototype.parseAction=function(t,e,n){void 0===n&&(n=Da),this._checkNoInterpolation(t,e,n);var r=this._stripComments(t),i=this._lexer.tokenize(this._stripComments(t)),o=new Eu(t,e,i,r.length,!0,this.errors,t.length-r.length).parseChain();return new su(o,t,e,this.errors)},t.prototype.parseBinding=function(t,e,n){void 0===n&&(n=Da);var r=this._parseBindingAst(t,e,n);return new su(r,t,e,this.errors)},t.prototype.parseSimpleBinding=function(t,e,n){void 0===n&&(n=Da);var r=this._parseBindingAst(t,e,n),i=Su.check(r);return i.length>0&&this._reportError("Host binding expression cannot contain "+i.join(" "),t,e),new su(r,t,e,this.errors)},t.prototype._reportError=function(t,e,n,r){this.errors.push(new La(t,e,n,r))},t.prototype._parseBindingAst=function(t,e,n){var i=this._parseQuote(t,e);if(r(i))return i;this._checkNoInterpolation(t,e,n);var o=this._stripComments(t),s=this._lexer.tokenize(o);return new Eu(t,e,s,o.length,!1,this.errors,t.length-o.length).parseChain()},t.prototype._parseQuote=function(t,e){if(i(t))return null;var n=t.indexOf(":");if(-1==n)return null;var r=t.substring(0,n).trim();if(!B(r))return null;var o=t.substring(n+1);return new Ua(new Va(0,t.length),r,o,e)},t.prototype.parseTemplateBindings=function(t,e,n){var r=this._lexer.tokenize(e);if(t){var i=this._lexer.tokenize(t).map(function(t){return t.index=0,t});r.unshift.apply(r,i)}return new Eu(e,n,r,e.length,!1,this.errors,0).parseTemplateBindings()},t.prototype.parseInterpolation=function(t,e,n){void 0===n&&(n=Da);var r=this.splitInterpolation(t,e,n);if(null==r)return null;for(var o=[],s=0;s<r.expressions.length;++s){var a=r.expressions[s],u=this._stripComments(a),c=this._lexer.tokenize(this._stripComments(r.expressions[s])),p=new Eu(t,e,c,u.length,!1,this.errors,r.offsets[s]+(a.length-u.length)).parseChain();o.push(p)}return new su(new tu(new Va(0,i(t)?0:t.length),r.strings,o),t,e,this.errors)},t.prototype.splitInterpolation=function(t,e,n){void 0===n&&(n=Da);var r=K(n),i=t.split(r);if(i.length<=1)return null;for(var o=[],s=[],a=[],u=0,c=0;c<i.length;c++){var p=i[c];c%2===0?(o.push(p),u+=p.length):p.trim().length>0?(u+=n.start.length,s.push(p),a.push(u),u+=p.length+n.end.length):(this._reportError("Blank expressions are not allowed in interpolated strings",t,"at column "+this._findInterpolationErrorColumn(i,c,n)+" in",e),s.push("$implict"),a.push(u))}return new _u(o,s,a)},t.prototype.wrapLiteralPrimitive=function(t,e){return new su(new $a(new Va(0,i(t)?0:t.length),t),t,e,this.errors)},t.prototype._stripComments=function(t){var e=this._commentStart(t);return r(e)?t.substring(0,e).trim():t},t.prototype._commentStart=function(t){for(var e=null,n=0;n<t.length-1;n++){var r=t.charCodeAt(n),o=t.charCodeAt(n+1);if(r===Js&&o==Js&&i(e))return n;e===r?e=null:i(e)&&W(r)&&(e=r)}return null},t.prototype._checkNoInterpolation=function(t,e,n){var r=K(n),i=t.split(r);i.length>1&&this._reportError("Got interpolation ("+n.start+n.end+") where expression was expected",t,"at column "+this._findInterpolationErrorColumn(i,1,n)+" in",e)},t.prototype._findInterpolationErrorColumn=function(t,e,n){for(var r="",i=0;e>i;i++)r+=i%2===0?t[i]:""+n.start+t[i]+n.end;return r.length},t=vu([M(),gu("design:paramtypes",[fu])],t)}(),Eu=function(){function t(t,e,n,r,i,o,s){this.input=t,this.location=e,this.tokens=n,this.inputLength=r,this.parseAction=i,this.errors=o,this.offset=s,this.rparensExpected=0,this.rbracketsExpected=0,this.rbracesExpected=0,this.index=0}return t.prototype.peek=function(t){var e=this.index+t;return e<this.tokens.length?this.tokens[e]:yu},Object.defineProperty(t.prototype,"next",{get:function(){return this.peek(0)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"inputIndex",{get:function(){return this.index<this.tokens.length?this.next.index+this.offset:this.inputLength+this.offset},enumerable:!0,configurable:!0}),t.prototype.span=function(t){return new Va(t,this.inputIndex)},t.prototype.advance=function(){this.index++},t.prototype.optionalCharacter=function(t){return this.next.isCharacter(t)?(this.advance(),!0):!1},t.prototype.peekKeywordLet=function(){return this.next.isKeywordLet()},t.prototype.expectCharacter=function(t){this.optionalCharacter(t)||this.error("Missing expected "+String.fromCharCode(t))},t.prototype.optionalOperator=function(t){return this.next.isOperator(t)?(this.advance(),!0):!1},t.prototype.expectOperator=function(t){this.optionalOperator(t)||this.error("Missing expected operator "+t)},t.prototype.expectIdentifierOrKeyword=function(){var t=this.next;return t.isIdentifier()||t.isKeyword()?(this.advance(),t.toString()):(this.error("Unexpected token "+t+", expected identifier or keyword"),"")},t.prototype.expectIdentifierOrKeywordOrString=function(){var t=this.next;return t.isIdentifier()||t.isKeyword()||t.isString()?(this.advance(),t.toString()):(this.error("Unexpected token "+t+", expected identifier, keyword, or string"),"")},t.prototype.parseChain=function(){for(var t=[],e=this.inputIndex;this.index<this.tokens.length;){var n=this.parsePipe();if(t.push(n),this.optionalCharacter(ea))for(this.parseAction||this.error("Binding expression cannot contain chained expression");this.optionalCharacter(ea););else this.index<this.tokens.length&&this.error("Unexpected token '"+this.next+"'")}return 0==t.length?new Ba(this.span(e)):1==t.length?t[0]:new qa(this.span(e),t)},t.prototype.parsePipe=function(){var t=this.parseExpression();if(this.optionalOperator("|")){this.parseAction&&this.error("Cannot have a pipe in an action expression");do{for(var e=this.expectIdentifierOrKeyword(),n=[];this.optionalCharacter(ta);)n.push(this.parseExpression());t=new Ya(this.span(t.span.start),t,e,n)}while(this.optionalOperator("|"))}return t},t.prototype.parseExpression=function(){return this.parseConditional()},t.prototype.parseConditional=function(){var t=this.inputIndex,e=this.parseLogicalOr();if(this.optionalOperator("?")){var n=this.parsePipe(),r=void 0;if(this.optionalCharacter(ta))r=this.parsePipe();else{var i=this.inputIndex,o=this.input.substring(t,i);this.error("Conditional expression "+o+" requires all 3 expressions"),r=new Ba(this.span(t))}return new za(this.span(t),e,n,r)}return e},t.prototype.parseLogicalOr=function(){for(var t=this.parseLogicalAnd();this.optionalOperator("||");){var e=this.parseLogicalAnd();t=new eu(this.span(t.span.start),"||",t,e)}return t},t.prototype.parseLogicalAnd=function(){for(var t=this.parseEquality();this.optionalOperator("&&");){var e=this.parseEquality();t=new eu(this.span(t.span.start),"&&",t,e)}return t},t.prototype.parseEquality=function(){for(var t=this.parseRelational();this.next.type==lu.Operator;){var e=this.next.strValue;switch(e){case"==":case"===":case"!=":case"!==":this.advance();var n=this.parseRelational();t=new eu(this.span(t.span.start),e,t,n);continue}break}return t},t.prototype.parseRelational=function(){for(var t=this.parseAdditive();this.next.type==lu.Operator;){var e=this.next.strValue;switch(e){case"<":case">":case"<=":case">=":this.advance();var n=this.parseAdditive();t=new eu(this.span(t.span.start),e,t,n);continue}break}return t},t.prototype.parseAdditive=function(){for(var t=this.parseMultiplicative();this.next.type==lu.Operator;){var e=this.next.strValue;switch(e){case"+":case"-":this.advance();var n=this.parseMultiplicative();t=new eu(this.span(t.span.start),e,t,n);continue}break}return t},t.prototype.parseMultiplicative=function(){for(var t=this.parsePrefix();this.next.type==lu.Operator;){var e=this.next.strValue;switch(e){case"*":case"%":case"/":this.advance();var n=this.parsePrefix();t=new eu(this.span(t.span.start),e,t,n);continue}break}return t},t.prototype.parsePrefix=function(){if(this.next.type==lu.Operator){var t=this.inputIndex,e=this.next.strValue,n=void 0;switch(e){case"+":return this.advance(),this.parsePrefix();case"-":return this.advance(),n=this.parsePrefix(),new eu(this.span(t),e,new $a(new Va(t,t),0),n);case"!":return this.advance(),n=this.parsePrefix(),new nu(this.span(t),n)}}return this.parseCallChain()},t.prototype.parseCallChain=function(){for(var t=this.parsePrimary();;)if(this.optionalCharacter(Zs))t=this.parseAccessMemberOrMethodCall(t,!1);else if(this.optionalOperator("?."))t=this.parseAccessMemberOrMethodCall(t,!0);else if(this.optionalCharacter(fa)){this.rbracketsExpected++;var e=this.parsePipe();if(this.rbracketsExpected--,this.expectCharacter(ya),this.optionalOperator("=")){var n=this.parseConditional();t=new Qa(this.span(t.span.start),t,e,n)}else t=new Xa(this.span(t.span.start),t,e)}else{if(!this.optionalCharacter(Gs))return t;this.rparensExpected++;var r=this.parseCallArguments();this.rparensExpected--,this.expectCharacter(Ks),t=new ou(this.span(t.span.start),t,r)}},t.prototype.parsePrimary=function(){var t=this.inputIndex;if(this.optionalCharacter(Gs)){this.rparensExpected++;var e=this.parsePipe();return this.rparensExpected--,this.expectCharacter(Ks),e}if(this.next.isKeywordNull())return this.advance(),new $a(this.span(t),null);if(this.next.isKeywordUndefined())return this.advance(),new $a(this.span(t),void 0);if(this.next.isKeywordTrue())return this.advance(),new $a(this.span(t),!0);if(this.next.isKeywordFalse())return this.advance(),new $a(this.span(t),!1);if(this.next.isKeywordThis())return this.advance(),new Ha(this.span(t));if(this.optionalCharacter(fa)){this.rbracketsExpected++;var n=this.parseExpressionList(ya);return this.rbracketsExpected--,this.expectCharacter(ya),new Za(this.span(t),n)}if(this.next.isCharacter(Oa))return this.parseLiteralMap();if(this.next.isIdentifier())return this.parseAccessMemberOrMethodCall(new Ha(this.span(t)),!1);if(this.next.isNumber()){var r=this.next.toNumber();return this.advance(),new $a(this.span(t),r)}if(this.next.isString()){var i=this.next.toString();return this.advance(),new $a(this.span(t),i)}return this.index>=this.tokens.length?(this.error("Unexpected end of expression: "+this.input),new Ba(this.span(t))):(this.error("Unexpected token "+this.next),new Ba(this.span(t)))},t.prototype.parseExpressionList=function(t){var e=[];if(!this.next.isCharacter(t))do e.push(this.parsePipe());while(this.optionalCharacter(Ys));return e},t.prototype.parseLiteralMap=function(){var t=[],e=[],n=this.inputIndex;if(this.expectCharacter(Oa),!this.optionalCharacter(Ma)){this.rbracesExpected++;do{var r=this.expectIdentifierOrKeywordOrString();t.push(r),this.expectCharacter(ta),e.push(this.parsePipe())}while(this.optionalCharacter(Ys));this.rbracesExpected--,this.expectCharacter(Ma)}return new Ja(this.span(n),t,e)},t.prototype.parseAccessMemberOrMethodCall=function(t,e){void 0===e&&(e=!1);var n=t.span.start,r=this.expectIdentifierOrKeyword();if(this.optionalCharacter(Gs)){this.rparensExpected++;var i=this.parseCallArguments();this.expectCharacter(Ks),this.rparensExpected--;var o=this.span(n);return e?new iu(o,t,r,i):new ru(o,t,r,i)}if(e)return this.optionalOperator("=")?(this.error("The '?.' operator cannot be used in the assignment"),new Ba(this.span(n))):new Ka(this.span(n),t,r);if(this.optionalOperator("=")){if(!this.parseAction)return this.error("Bindings cannot contain assignments"),new Ba(this.span(n));var s=this.parseConditional();return new Ga(this.span(n),t,r,s)}return new Wa(this.span(n),t,r)},t.prototype.parseCallArguments=function(){if(this.next.isCharacter(Ks))return[];var t=[];do t.push(this.parsePipe());while(this.optionalCharacter(Ys));return t},t.prototype.expectTemplateBindingKey=function(){var t="",e=!1;do t+=this.expectIdentifierOrKeywordOrString(),e=this.optionalOperator("-"),e&&(t+="-");while(e);return t.toString()},t.prototype.parseTemplateBindings=function(){for(var t=[],e=null,n=[];this.index<this.tokens.length;){var r=this.inputIndex,i=this.peekKeywordLet();i&&this.advance();var o=this.expectTemplateBindingKey();i||(null==e?e=o:o=e+o[0].toUpperCase()+o.substring(1)),this.optionalCharacter(ta);var s=null,a=null;if(i)s=this.optionalOperator("=")?this.expectTemplateBindingKey():"$implicit";else if(this.next!==yu&&!this.peekKeywordLet()){var u=this.inputIndex,c=this.parsePipe(),p=this.input.substring(u-this.offset,this.inputIndex-this.offset);a=new su(c,p,this.location,this.errors)}t.push(new au(this.span(r),o,i,s,a)),this.optionalCharacter(ea)||this.optionalCharacter(Ys)}return new bu(t,n,this.errors)},t.prototype.error=function(t,e){void 0===e&&(e=null),this.errors.push(new La(t,this.input,this.locationText(e),this.location)),this.skip()},t.prototype.locationText=function(t){return void 0===t&&(t=null),i(t)&&(t=this.index),t<this.tokens.length?"at column "+(this.tokens[t].index+1)+" in":"at the end of the expression"},t.prototype.skip=function(){for(var t=this.next;this.index<this.tokens.length&&!t.isCharacter(ea)&&(this.rparensExpected<=0||!t.isCharacter(Ks))&&(this.rbracesExpected<=0||!t.isCharacter(Ma))&&(this.rbracketsExpected<=0||!t.isCharacter(ya));)this.next.isError()&&this.errors.push(new La(this.next.toString(),this.input,this.locationText(),this.location)),this.advance(),t=this.next},t}(),Su=function(){function t(){this.errors=[]}return t.check=function(e){var n=new t;return e.visit(n),n.errors},t.prototype.visitImplicitReceiver=function(){},t.prototype.visitInterpolation=function(){},t.prototype.visitLiteralPrimitive=function(){},t.prototype.visitPropertyRead=function(){},t.prototype.visitPropertyWrite=function(){},t.prototype.visitSafePropertyRead=function(){},t.prototype.visitMethodCall=function(){},t.prototype.visitSafeMethodCall=function(){},t.prototype.visitFunctionCall=function(){},t.prototype.visitLiteralArray=function(t){this.visitAll(t.expressions)},t.prototype.visitLiteralMap=function(t){this.visitAll(t.values)},t.prototype.visitBinary=function(){},t.prototype.visitPrefixNot=function(){},t.prototype.visitConditional=function(){},t.prototype.visitPipe=function(){this.errors.push("pipes")},t.prototype.visitKeyedRead=function(){},t.prototype.visitKeyedWrite=function(){},t.prototype.visitAll=function(t){var e=this;return t.map(function(t){return t.visit(e)})},t.prototype.visitChain=function(){},t.prototype.visitQuote=function(){},t}(),Cu=function(){function t(t,e,n,r){this.file=t,this.offset=e,this.line=n,this.col=r}return t.prototype.toString=function(){return r(this.offset)?this.file.url+"@"+this.line+":"+this.col:this.file.url},t.prototype.moveBy=function(e){for(var n=this.file.content,r=n.length,i=this.offset,o=this.line,s=this.col;i>0&&0>e;){i--,e++;var a=n.charCodeAt(i);if(a==Is){o--;var u=n.substr(0,i-1).lastIndexOf(String.fromCharCode(Is));s=u>0?i-u:i}else s--}for(;r>i&&e>0;){var a=n.charCodeAt(i);i++,e--,a==Is?(o++,s=0):s++}return new t(this.file,i,o,s)},t.prototype.getContext=function(t,e){var n=this.file.content,i=this.offset;if(r(i)){i>n.length-1&&(i=n.length-1);for(var o=i,s=0,a=0;t>s&&i>0&&(i--,s++,"\n"!=n[i]||++a!=e););for(s=0,a=0;t>s&&o<n.length-1&&(o++,s++,"\n"!=n[o]||++a!=e););return{before:n.substring(i,this.offset),after:n.substring(this.offset,o+1)}}return null},t}(),xu=function(){function t(t,e){this.content=t,this.url=e}return t}(),Tu=function(){function t(t,e,n){void 0===n&&(n=null),this.start=t,this.end=e,this.details=n}return t.prototype.toString=function(){return this.start.file.content.substring(this.start.offset,this.end.offset)},t}(),Pu={};Pu.WARNING=0,Pu.FATAL=1,Pu[Pu.WARNING]="WARNING",Pu[Pu.FATAL]="FATAL";var Ou=function(){function t(t,e,n){void 0===n&&(n=Pu.FATAL),this.span=t,this.msg=e,this.level=n}return t.prototype.toString=function(){var t=this.span.start.getContext(100,3),e=t?' ("'+t.before+"[ERROR ->]"+t.after+'")':"",n=this.span.details?", "+this.span.details:"";return""+this.msg+e+": "+this.span.start+n},t}(),Au=function(){function t(t,e){this.value=t,this.sourceSpan=e}return t.prototype.visit=function(t,e){return t.visitText(this,e)},t}(),Mu=function(){function t(t,e,n,r,i){this.switchValue=t,this.type=e,this.cases=n,this.sourceSpan=r,this.switchValueSourceSpan=i}return t.prototype.visit=function(t,e){return t.visitExpansion(this,e)},t}(),Ru=function(){function t(t,e,n,r,i){this.value=t,this.expression=e,this.sourceSpan=n,this.valueSourceSpan=r,this.expSourceSpan=i}return t.prototype.visit=function(t,e){return t.visitExpansionCase(this,e)},t}(),ku=function(){function t(t,e,n,r){this.name=t,this.value=e,this.sourceSpan=n,this.valueSpan=r}return t.prototype.visit=function(t,e){return t.visitAttribute(this,e)},t}(),Nu=function(){function t(t,e,n,r,i,o){this.name=t,this.attrs=e,this.children=n,this.sourceSpan=r,this.startSourceSpan=i,this.endSourceSpan=o}return t.prototype.visit=function(t,e){return t.visitElement(this,e)},t}(),Iu=function(){function t(t,e){this.value=t,this.sourceSpan=e}return t.prototype.visit=function(t,e){return t.visitComment(this,e)},t}(),Du=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype, -new n)},ju={};ju.TAG_OPEN_START=0,ju.TAG_OPEN_END=1,ju.TAG_OPEN_END_VOID=2,ju.TAG_CLOSE=3,ju.TEXT=4,ju.ESCAPABLE_RAW_TEXT=5,ju.RAW_TEXT=6,ju.COMMENT_START=7,ju.COMMENT_END=8,ju.CDATA_START=9,ju.CDATA_END=10,ju.ATTR_NAME=11,ju.ATTR_VALUE=12,ju.DOC_TYPE=13,ju.EXPANSION_FORM_START=14,ju.EXPANSION_CASE_VALUE=15,ju.EXPANSION_CASE_EXP_START=16,ju.EXPANSION_CASE_EXP_END=17,ju.EXPANSION_FORM_END=18,ju.EOF=19,ju[ju.TAG_OPEN_START]="TAG_OPEN_START",ju[ju.TAG_OPEN_END]="TAG_OPEN_END",ju[ju.TAG_OPEN_END_VOID]="TAG_OPEN_END_VOID",ju[ju.TAG_CLOSE]="TAG_CLOSE",ju[ju.TEXT]="TEXT",ju[ju.ESCAPABLE_RAW_TEXT]="ESCAPABLE_RAW_TEXT",ju[ju.RAW_TEXT]="RAW_TEXT",ju[ju.COMMENT_START]="COMMENT_START",ju[ju.COMMENT_END]="COMMENT_END",ju[ju.CDATA_START]="CDATA_START",ju[ju.CDATA_END]="CDATA_END",ju[ju.ATTR_NAME]="ATTR_NAME",ju[ju.ATTR_VALUE]="ATTR_VALUE",ju[ju.DOC_TYPE]="DOC_TYPE",ju[ju.EXPANSION_FORM_START]="EXPANSION_FORM_START",ju[ju.EXPANSION_CASE_VALUE]="EXPANSION_CASE_VALUE",ju[ju.EXPANSION_CASE_EXP_START]="EXPANSION_CASE_EXP_START",ju[ju.EXPANSION_CASE_EXP_END]="EXPANSION_CASE_EXP_END",ju[ju.EXPANSION_FORM_END]="EXPANSION_FORM_END",ju[ju.EOF]="EOF";var Lu=function(){function t(t,e,n){this.type=t,this.parts=e,this.sourceSpan=n}return t}(),Vu=function(t){function e(e,n,r){t.call(this,r,e),this.tokenType=n}return Du(e,t),e}(Ou),Fu=function(){function t(t,e){this.tokens=t,this.errors=e}return t}(),Uu=/\r\n?/g,Bu=function(){function t(t){this.error=t}return t}(),Hu=function(){function t(t,e,n,r){void 0===r&&(r=Da),this._file=t,this._getTagDefinition=e,this._tokenizeIcu=n,this._interpolationConfig=r,this._peek=-1,this._nextPeek=-1,this._index=-1,this._line=0,this._column=-1,this._expansionCaseStack=[],this._inInterpolation=!1,this.tokens=[],this.errors=[],this._input=t.content,this._length=t.content.length,this._advance()}return t.prototype._processCarriageReturns=function(t){return t.replace(Uu,"\n")},t.prototype.tokenize=function(){for(;this._peek!==ks;){var t=this._getLocation();try{this._attemptCharCode(na)?this._attemptCharCode(Fs)?this._attemptCharCode(fa)?this._consumeCdata(t):this._attemptCharCode($s)?this._consumeComment(t):this._consumeDocType(t):this._attemptCharCode(Js)?this._consumeTagClose(t):this._consumeTagOpen(t):this._tokenizeIcu&&this._tokenizeExpansionForm()||this._consumeText()}catch(e){if(!(e instanceof Bu))throw e;this.errors.push(e.error)}}return this._beginToken(ju.EOF),this._endToken([]),new Fu(at(this.tokens),this.errors)},t.prototype._tokenizeExpansionForm=function(){if(rt(this._input,this._index,this._interpolationConfig))return this._consumeExpansionFormStart(),!0;if(it(this._peek)&&this._isInExpansionForm())return this._consumeExpansionCaseStart(),!0;if(this._peek===Ma){if(this._isInExpansionCase())return this._consumeExpansionCaseEnd(),!0;if(this._isInExpansionForm())return this._consumeExpansionFormEnd(),!0}return!1},t.prototype._getLocation=function(){return new Cu(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 Tu(t,e)},t.prototype._beginToken=function(t,e){void 0===e&&(e=this._getLocation()),this._currentTokenStart=e,this._currentTokenType=t},t.prototype._endToken=function(t,e){void 0===e&&(e=this._getLocation());var n=new Lu(this._currentTokenType,t,new Tu(this._currentTokenStart,e));return this.tokens.push(n),this._currentTokenStart=null,this._currentTokenType=null,n},t.prototype._createError=function(t,e){this._isInExpansionForm()&&(t+=' (Do you have an unescaped "{" in your template? Use "{{ \'{\' }}") to escape it.)');var n=new Vu(t,this._currentTokenType,e);return this._currentTokenStart=null,this._currentTokenType=null,new Bu(n)},t.prototype._advance=function(){if(this._index>=this._length)throw this._createError(Y(ks),this._getSpan());this._peek===Is?(this._line++,this._column=0):this._peek!==Is&&this._peek!==Ls&&this._column++,this._index++,this._peek=this._index>=this._length?ks:this._input.charCodeAt(this._index),this._nextPeek=this._index+1>=this._length?ks: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 ot(this._peek,t)?(this._advance(),!0):!1},t.prototype._requireCharCode=function(t){var e=this._getLocation();if(!this._attemptCharCode(t))throw this._createError(Y(this._peek),this._getSpan(e,e))},t.prototype._attemptStr=function(t){var e=t.length;if(this._index+e>this._length)return!1;for(var n=this._savePosition(),r=0;e>r;r++)if(!this._attemptCharCode(t.charCodeAt(r)))return this._restorePosition(n),!1;return!0},t.prototype._attemptStrCaseInsensitive=function(t){for(var e=0;e<t.length;e++)if(!this._attemptCharCodeCaseInsensitive(t.charCodeAt(e)))return!1;return!0},t.prototype._requireStr=function(t){var e=this._getLocation();if(!this._attemptStr(t))throw this._createError(Y(this._peek),this._getSpan(e))},t.prototype._attemptCharCodeUntilFn=function(t){for(;!t(this._peek);)this._advance()},t.prototype._requireCharCodeUntilFn=function(t,e){var n=this._getLocation();if(this._attemptCharCodeUntilFn(t),this._index-n.offset<e)throw this._createError(Y(this._peek),this._getSpan(n,n))},t.prototype._attemptUntilChar=function(t){for(;this._peek!==t;)this._advance()},t.prototype._readChar=function(t){if(t&&this._peek===zs)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(Bs)){var e=this._savePosition();if(this._attemptCharCodeUntilFn(nt),this._peek!=ea)return this._restorePosition(e),"&";this._advance();var n=this._input.substring(t.offset+1,this._index-1),r=Ko[n];if(!r)throw this._createError($(n),this._getSpan(t));return r}var i=this._attemptCharCode(Ta)||this._attemptCharCode(la),o=this._getLocation().offset;if(this._attemptCharCodeUntilFn(et),this._peek!=ea)throw this._createError(Y(this._peek),this._getSpan());this._advance();var s=this._input.substring(o,this._index-1);try{var a=parseInt(s,i?16:10);return String.fromCharCode(a)}catch(u){var c=this._input.substring(t.offset+1,this._index-1);throw this._createError($(c),this._getSpan(t))}},t.prototype._consumeRawText=function(t,e,n){var r,i=this._getLocation();this._beginToken(t?ju.ESCAPABLE_RAW_TEXT:ju.RAW_TEXT,i);for(var o=[];;){if(r=this._getLocation(),this._attemptCharCode(e)&&n())break;for(this._index>r.offset&&o.push(this._input.substring(r.offset,this._index));this._peek!==e;)o.push(this._readChar(t))}return this._endToken([this._processCarriageReturns(o.join(""))],r)},t.prototype._consumeComment=function(t){var e=this;this._beginToken(ju.COMMENT_START,t),this._requireCharCode($s),this._endToken([]);var n=this._consumeRawText(!1,$s,function(){return e._attemptStr("->")});this._beginToken(ju.COMMENT_END,n.sourceSpan.end),this._endToken([])},t.prototype._consumeCdata=function(t){var e=this;this._beginToken(ju.CDATA_START,t),this._requireStr("CDATA["),this._endToken([]);var n=this._consumeRawText(!1,ya,function(){return e._attemptStr("]>")});this._beginToken(ju.CDATA_END,n.sourceSpan.end),this._endToken([])},t.prototype._consumeDocType=function(t){this._beginToken(ju.DOC_TYPE,t),this._attemptUntilChar(ia),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!==ta&&!tt(this._peek);)this._advance();var n;this._peek===ta?(this._advance(),e=this._input.substring(t,this._index-1),n=this._index):n=t,this._requireCharCodeUntilFn(J,this._index===n?1:0);var r=this._input.substring(n,this._index);return[e,r]},t.prototype._consumeTagOpen=function(t){var e,n,r=this._savePosition();try{if(!O(this._peek))throw this._createError(Y(this._peek),this._getSpan());var i=this._index;for(this._consumeTagOpenStart(t),e=this._input.substring(i,this._index),n=e.toLowerCase(),this._attemptCharCodeUntilFn(Z);this._peek!==Js&&this._peek!==ia;)this._consumeAttributeName(),this._attemptCharCodeUntilFn(Z),this._attemptCharCode(ra)&&(this._attemptCharCodeUntilFn(Z),this._consumeAttributeValue()),this._attemptCharCodeUntilFn(Z);this._consumeTagOpenEnd()}catch(o){if(o instanceof Bu)return this._restorePosition(r),this._beginToken(ju.TEXT,t),void this._endToken(["<"]);throw o}var s=this._getTagDefinition(e).contentType;s===Go.RAW_TEXT?this._consumeRawTextWithTagClose(n,!1):s===Go.ESCAPABLE_RAW_TEXT&&this._consumeRawTextWithTagClose(n,!0)},t.prototype._consumeRawTextWithTagClose=function(t,e){var n=this,r=this._consumeRawText(e,na,function(){return n._attemptCharCode(Js)?(n._attemptCharCodeUntilFn(Z),n._attemptStrCaseInsensitive(t)?(n._attemptCharCodeUntilFn(Z),n._attemptCharCode(ia)):!1):!1});this._beginToken(ju.TAG_CLOSE,r.sourceSpan.end),this._endToken([null,t])},t.prototype._consumeTagOpenStart=function(t){this._beginToken(ju.TAG_OPEN_START,t);var e=this._consumePrefixAndName();this._endToken(e)},t.prototype._consumeAttributeName=function(){this._beginToken(ju.ATTR_NAME);var t=this._consumePrefixAndName();this._endToken(t)},t.prototype._consumeAttributeValue=function(){this._beginToken(ju.ATTR_VALUE);var t;if(this._peek===Ws||this._peek===Us){var e=this._peek;this._advance();for(var n=[];this._peek!==e;)n.push(this._readChar(!0));t=n.join(""),this._advance()}else{var r=this._index;this._requireCharCodeUntilFn(J,1),t=this._input.substring(r,this._index)}this._endToken([this._processCarriageReturns(t)])},t.prototype._consumeTagOpenEnd=function(){var t=this._attemptCharCode(Js)?ju.TAG_OPEN_END_VOID:ju.TAG_OPEN_END;this._beginToken(t),this._requireCharCode(ia),this._endToken([])},t.prototype._consumeTagClose=function(t){this._beginToken(ju.TAG_CLOSE,t),this._attemptCharCodeUntilFn(Z);var e=this._consumePrefixAndName();this._attemptCharCodeUntilFn(Z),this._requireCharCode(ia),this._endToken(e)},t.prototype._consumeExpansionFormStart=function(){this._beginToken(ju.EXPANSION_FORM_START,this._getLocation()),this._requireCharCode(Oa),this._endToken([]),this._expansionCaseStack.push(ju.EXPANSION_FORM_START),this._beginToken(ju.RAW_TEXT,this._getLocation());var t=this._readUntil(Ys);this._endToken([t],this._getLocation()),this._requireCharCode(Ys),this._attemptCharCodeUntilFn(Z),this._beginToken(ju.RAW_TEXT,this._getLocation());var e=this._readUntil(Ys);this._endToken([e],this._getLocation()),this._requireCharCode(Ys),this._attemptCharCodeUntilFn(Z)},t.prototype._consumeExpansionCaseStart=function(){this._beginToken(ju.EXPANSION_CASE_VALUE,this._getLocation());var t=this._readUntil(Oa).trim();this._endToken([t],this._getLocation()),this._attemptCharCodeUntilFn(Z),this._beginToken(ju.EXPANSION_CASE_EXP_START,this._getLocation()),this._requireCharCode(Oa),this._endToken([],this._getLocation()),this._attemptCharCodeUntilFn(Z),this._expansionCaseStack.push(ju.EXPANSION_CASE_EXP_START)},t.prototype._consumeExpansionCaseEnd=function(){this._beginToken(ju.EXPANSION_CASE_EXP_END,this._getLocation()),this._requireCharCode(Ma),this._endToken([],this._getLocation()),this._attemptCharCodeUntilFn(Z),this._expansionCaseStack.pop()},t.prototype._consumeExpansionFormEnd=function(){this._beginToken(ju.EXPANSION_FORM_END,this._getLocation()),this._requireCharCode(Ma),this._endToken([]),this._expansionCaseStack.pop()},t.prototype._consumeText=function(){var t=this._getLocation();this._beginToken(ju.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===na||this._peek===ks)return!0;if(this._tokenizeIcu&&!this._inInterpolation){if(rt(this._input,this._index,this._interpolationConfig))return!0;if(this._peek===Ma&&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]===ju.EXPANSION_CASE_EXP_START},t.prototype._isInExpansionForm=function(){return this._expansionCaseStack.length>0&&this._expansionCaseStack[this._expansionCaseStack.length-1]===ju.EXPANSION_FORM_START},t}(),qu=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},zu=function(t){function e(e,n,r){t.call(this,n,r),this.elementName=e}return qu(e,t),e.create=function(t,n,r){return new e(t,n,r)},e}(Ou),Wu=function(){function t(t,e){this.rootNodes=t,this.errors=e}return t}(),Gu=function(){function t(t){this.getTagDefinition=t}return t.prototype.parse=function(t,e,n,r){void 0===n&&(n=!1),void 0===r&&(r=Da);var i=Q(t,e,this.getTagDefinition,n,r),o=new Ku(i.tokens,this.getTagDefinition).build();return new Wu(o.rootNodes,i.errors.concat(o.errors))},t}(),Ku=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!==ju.EOF;)this._peek.type===ju.TAG_OPEN_START?this._consumeStartTag(this._advance()):this._peek.type===ju.TAG_CLOSE?this._consumeEndTag(this._advance()):this._peek.type===ju.CDATA_START?(this._closeVoidElement(),this._consumeCdata(this._advance())):this._peek.type===ju.COMMENT_START?(this._closeVoidElement(),this._consumeComment(this._advance())):this._peek.type===ju.TEXT||this._peek.type===ju.RAW_TEXT||this._peek.type===ju.ESCAPABLE_RAW_TEXT?(this._closeVoidElement(),this._consumeText(this._advance())):this._peek.type===ju.EXPANSION_FORM_START?this._consumeExpansion(this._advance()):this._advance();return new Wu(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(ju.CDATA_END)},t.prototype._consumeComment=function(t){var e=this._advanceIf(ju.RAW_TEXT);this._advanceIf(ju.COMMENT_END);var n=r(e)?e.parts[0].trim():null;this._addToParent(new Iu(n,t.sourceSpan))},t.prototype._consumeExpansion=function(t){for(var e=this._advance(),n=this._advance(),r=[];this._peek.type===ju.EXPANSION_CASE_VALUE;){var i=this._parseExpansionCase();if(!i)return;r.push(i)}if(this._peek.type!==ju.EXPANSION_FORM_END)return void this._errors.push(zu.create(null,this._peek.sourceSpan,"Invalid ICU message. Missing '}'."));var o=new Tu(t.sourceSpan.start,this._peek.sourceSpan.end);this._addToParent(new Mu(e.parts[0],n.parts[0],r,o,e.sourceSpan)),this._advance()},t.prototype._parseExpansionCase=function(){var e=this._advance();if(this._peek.type!==ju.EXPANSION_CASE_EXP_START)return this._errors.push(zu.create(null,this._peek.sourceSpan,"Invalid ICU message. Missing '{'.")),null;var n=this._advance(),r=this._collectExpansionExpTokens(n);if(!r)return null;var i=this._advance();r.push(new Lu(ju.EOF,[],i.sourceSpan));var o=new t(r,this.getTagDefinition).build();if(o.errors.length>0)return this._errors=this._errors.concat(o.errors),null;var s=new Tu(e.sourceSpan.start,i.sourceSpan.end),a=new Tu(n.sourceSpan.start,i.sourceSpan.end);return new Ru(e.parts[0],o.rootNodes,s,e.sourceSpan,a)},t.prototype._collectExpansionExpTokens=function(t){for(var e=[],n=[ju.EXPANSION_CASE_EXP_START];;){if((this._peek.type===ju.EXPANSION_FORM_START||this._peek.type===ju.EXPANSION_CASE_EXP_START)&&n.push(this._peek.type),this._peek.type===ju.EXPANSION_CASE_EXP_END){if(!ut(n,ju.EXPANSION_CASE_EXP_START))return this._errors.push(zu.create(null,t.sourceSpan,"Invalid ICU message. Missing '}'.")),null;if(n.pop(),0==n.length)return e}if(this._peek.type===ju.EXPANSION_FORM_END){if(!ut(n,ju.EXPANSION_FORM_START))return this._errors.push(zu.create(null,t.sourceSpan,"Invalid ICU message. Missing '}'.")),null;n.pop()}if(this._peek.type===ju.EOF)return this._errors.push(zu.create(null,t.sourceSpan,"Invalid ICU message. Missing '}'.")),null;e.push(this._advance())}},t.prototype._consumeText=function(t){var e=t.parts[0];if(e.length>0&&"\n"==e[0]){var n=this._getParentElement();r(n)&&0==n.children.length&&this.getTagDefinition(n.name).ignoreFirstLf&&(e=e.substring(1))}e.length>0&&this._addToParent(new Au(e,t.sourceSpan))},t.prototype._closeVoidElement=function(){if(this._elementStack.length>0){var t=this._elementStack[this._elementStack.length-1];this.getTagDefinition(t.name).isVoid&&this._elementStack.pop()}},t.prototype._consumeStartTag=function(t){for(var e=t.parts[0],n=t.parts[1],r=[];this._peek.type===ju.ATTR_NAME;)r.push(this._consumeAttr(this._advance()));var i=this._getElementFullName(e,n,this._getParentElement()),o=!1;if(this._peek.type===ju.TAG_OPEN_END_VOID){this._advance(),o=!0;var s=this.getTagDefinition(i);s.canSelfClose||null!==l(i)||s.isVoid||this._errors.push(zu.create(i,t.sourceSpan,'Only void and foreign elements can be self closed "'+t.parts[1]+'"'))}else this._peek.type===ju.TAG_OPEN_END&&(this._advance(),o=!1);var a=this._peek.sourceSpan.start,u=new Tu(t.sourceSpan.start,a),c=new Nu(i,r,[],u,u,null);this._pushElement(c),o&&(this._popElement(i),c.endSourceSpan=u)},t.prototype._pushElement=function(t){if(this._elementStack.length>0){var e=this._elementStack[this._elementStack.length-1];this.getTagDefinition(e.name).isClosedByChild(t.name)&&this._elementStack.pop()}var n=this.getTagDefinition(t.name),r=this._getParentElementSkippingContainers(),i=r.parent,o=r.container;if(i&&n.requireExtraParent(i.name)){var s=new Nu(n.parentToAdd,[],[],t.sourceSpan,t.startSourceSpan,t.endSourceSpan);this._insertBeforeContainer(i,o,s)}this._addToParent(t),this._elementStack.push(t)},t.prototype._consumeEndTag=function(t){var e=this._getElementFullName(t.parts[0],t.parts[1],this._getParentElement());this._getParentElement()&&(this._getParentElement().endSourceSpan=t.sourceSpan),this.getTagDefinition(e).isVoid?this._errors.push(zu.create(e,t.sourceSpan,'Void elements do not have end tags "'+t.parts[1]+'"')):this._popElement(e)||this._errors.push(zu.create(e,t.sourceSpan,'Unexpected closing tag "'+t.parts[1]+'"'))},t.prototype._popElement=function(t){for(var e=this._elementStack.length-1;e>=0;e--){var n=this._elementStack[e];if(n.name==t)return this._elementStack.splice(e,this._elementStack.length-e),!0;if(!this.getTagDefinition(n.name).closedByParent)return!1}return!1},t.prototype._consumeAttr=function(t){var e,n=h(t.parts[0],t.parts[1]),r=t.sourceSpan.end,i="";if(this._peek.type===ju.ATTR_VALUE){var o=this._advance();i=o.parts[0],r=o.sourceSpan.end,e=o.sourceSpan}return new ku(n,i,new Tu(t.sourceSpan.start,r),e)},t.prototype._getParentElement=function(){return this._elementStack.length>0?this._elementStack[this._elementStack.length-1]:null},t.prototype._getParentElementSkippingContainers=function(){for(var t=null,e=this._elementStack.length-1;e>=0;e--){if("ng-container"!==this._elementStack[e].name)return{parent:this._elementStack[e],container:t};t=this._elementStack[e]}return{parent:this._elementStack[this._elementStack.length-1],container:t}},t.prototype._addToParent=function(t){var e=this._getParentElement();r(e)?e.children.push(t):this._rootNodes.push(t)},t.prototype._insertBeforeContainer=function(t,e,n){if(e){if(t){var r=t.children.indexOf(e);t.children[r]=n}else this._rootNodes.push(n);n.children.push(e),this._elementStack.splice(this._elementStack.indexOf(e),0,n)}else this._addToParent(n),this._elementStack.push(n)},t.prototype._getElementFullName=function(t,e,n){return i(t)&&(t=this.getTagDefinition(e).implicitNamespacePrefix,i(t)&&r(n)&&(t=l(n.name))),h(t,e)},t}(),Xu=function(){function t(t,e,n,r,i){this.nodes=t,this.placeholders=e,this.placeholderToMessage=n,this.meaning=r,this.description=i}return t}(),Qu=function(){function t(t,e){this.value=t,this.sourceSpan=e}return t.prototype.visit=function(t,e){return t.visitText(this,e)},t}(),Yu=function(){function t(t,e){this.children=t,this.sourceSpan=e}return t.prototype.visit=function(t,e){return t.visitContainer(this,e)},t}(),$u=function(){function t(t,e,n,r){this.expression=t,this.type=e,this.cases=n,this.sourceSpan=r}return t.prototype.visit=function(t,e){return t.visitIcu(this,e)},t}(),Zu=function(){function t(t,e,n,r,i,o,s){this.tag=t,this.attrs=e,this.startName=n,this.closeName=r,this.children=i,this.isVoid=o,this.sourceSpan=s}return t.prototype.visit=function(t,e){return t.visitTagPlaceholder(this,e)},t}(),Ju=function(){function t(t,e,n){this.value=t,this.name=e,this.sourceSpan=n}return t.prototype.visit=function(t,e){return t.visitPlaceholder(this,e)},t}(),tc=function(){function t(t,e,n){this.value=t,this.name=e,this.sourceSpan=n}return t.prototype.visit=function(t,e){return t.visitIcuPlaceholder(this,e)},t}(),ec={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"},nc=function(){function t(){this._placeHolderNameCounts={},this._signatureToName={}}return t.prototype.getStartTagPlaceholderName=function(t,e,n){var r=this._hashTag(t,e,n);if(this._signatureToName[r])return this._signatureToName[r];var i=t.toUpperCase(),o=ec[i]||"TAG_"+i,s=this._generateUniqueName(n?o:"START_"+o);return this._signatureToName[r]=s,s},t.prototype.getCloseTagPlaceholderName=function(t){var e=this._hashClosingTag(t);if(this._signatureToName[e])return this._signatureToName[e];var n=t.toUpperCase(),r=ec[n]||"TAG_"+n,i=this._generateUniqueName("CLOSE_"+r);return this._signatureToName[e]=i,i},t.prototype.getPlaceholderName=function(t,e){var n=t.toUpperCase(),r="PH: "+n+"="+e;if(this._signatureToName[r])return this._signatureToName[r];var i=this._generateUniqueName(n);return this._signatureToName[r]=i,i},t.prototype.getUniquePlaceholder=function(t){return this._generateUniqueName(t.toUpperCase())},t.prototype._hashTag=function(t,e,n){var r="<"+t,i=Object.keys(e).sort().map(function(t){return" "+t+"="+e[t]}).join(""),o=n?"/>":"></"+t+">";return r+i+o},t.prototype._hashClosingTag=function(t){return this._hashTag("/"+t,{},!1)},t.prototype._generateUniqueName=function(t){var e=this._placeHolderNameCounts.hasOwnProperty(t);if(!e)return this._placeHolderNameCounts[t]=1,t;var n=this._placeHolderNameCounts[t];return this._placeHolderNameCounts[t]=n+1,t+"_"+n},t}(),rc=new wu(new fu),ic=function(){function t(t,e){this._expressionParser=t,this._interpolationConfig=e}return t.prototype.toI18nMessage=function(t,e,n){this._isIcu=1==t.length&&t[0]instanceof Mu,this._icuDepth=0,this._placeholderRegistry=new nc,this._placeholderToContent={},this._placeholderToMessage={};var r=X(this,t,{});return new Xu(r,this._placeholderToContent,this._placeholderToMessage,e,n)},t.prototype.visitElement=function(t){var e=X(this,t.children),n={};t.attrs.forEach(function(t){n[t.name]=t.value});var r=f(t.name).isVoid,i=this._placeholderRegistry.getStartTagPlaceholderName(t.name,n,r);this._placeholderToContent[i]=t.sourceSpan.toString();var o="";return r||(o=this._placeholderRegistry.getCloseTagPlaceholderName(t.name),this._placeholderToContent[o]="</"+t.name+">"),new Zu(t.name,n,i,o,e,r,t.sourceSpan)},t.prototype.visitAttribute=function(t){return this._visitTextWithInterpolation(t.value,t.sourceSpan)},t.prototype.visitText=function(t){return this._visitTextWithInterpolation(t.value,t.sourceSpan)},t.prototype.visitComment=function(){return null},t.prototype.visitExpansion=function(e){var n=this;this._icuDepth++;var r={},i=new $u(e.switchValue,e.type,r,e.sourceSpan);if(e.cases.forEach(function(t){r[t.value]=new Yu(t.expression.map(function(t){return t.visit(n,{})}),t.expSourceSpan)}),this._icuDepth--,this._isIcu||this._icuDepth>0){var o=this._placeholderRegistry.getUniquePlaceholder("VAR_"+e.type);return i.expressionPlaceholder=o,this._placeholderToContent[o]=e.switchValue,i}var s=this._placeholderRegistry.getPlaceholderName("ICU",e.sourceSpan.toString()),a=new t(this._expressionParser,this._interpolationConfig);return this._placeholderToMessage[s]=a.toI18nMessage([e],"",""),new tc(i,s,e.sourceSpan)},t.prototype.visitExpansionCase=function(){throw new Error("Unreachable code")},t.prototype._visitTextWithInterpolation=function(t,e){var n=this._expressionParser.splitInterpolation(t,e.start.toString(),this._interpolationConfig);if(!n)return new Qu(t,e);for(var r=[],i=new Yu(r,e),o=this._interpolationConfig,s=o.start,a=o.end,u=0;u<n.strings.length-1;u++){var c=n.expressions[u],p=pt(c)||"INTERPOLATION",l=this._placeholderRegistry.getPlaceholderName(p,c);n.strings[u].length&&r.push(new Qu(n.strings[u],e)),r.push(new Ju(c,l,e)),this._placeholderToContent[l]=s+c+a}var h=n.strings.length-1;return n.strings[h].length&&r.push(new Qu(n.strings[h],e)),i},t}(),oc=/\/\/[\s\S]*i18n[\s\S]*\([\s\S]*ph[\s\S]*=[\s\S]*"([\s\S]*?)"[\s\S]*\)/g,sc=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},ac=function(t){function e(e,n){t.call(this,e,n)}return sc(e,t),e}(Ou),uc="i18n",cc="i18n-",pc=/^i18n:?/,lc=function(){function t(t,e){this.messages=t,this.errors=e}return t}(),hc={};hc.Extract=0,hc.Merge=1,hc[hc.Extract]="Extract",hc[hc.Merge]="Merge";var fc=function(){function t(t,e){this._implicitTags=t,this._implicitAttrs=e}return t.prototype.extract=function(t,e){var n=this;return this._init(hc.Extract,e),t.forEach(function(t){return t.visit(n,null)}),this._inI18nBlock&&this._reportError(t[t.length-1],"Unclosed block"),new lc(this._messages,this._errors)},t.prototype.merge=function(t,e,n){this._init(hc.Merge,n),this._translations=e;var r=new Nu("wrapper",[],t,null,null,null),i=r.visit(this,null);return this._inI18nBlock&&this._reportError(t[t.length-1],"Unclosed block"),new Wu(i.children,this._errors)},t.prototype.visitExpansionCase=function(t,e){var n=X(this,t.expression,e);return this._mode===hc.Merge?new Ru(t.value,n,t.sourceSpan,t.valueSourceSpan,t.expSourceSpan):void 0},t.prototype.visitExpansion=function(t,e){this._mayBeAddBlockChildren(t);var n=this._inIcu;this._inIcu||(this._isInTranslatableSection&&this._addMessage([t]),this._inIcu=!0);var r=X(this,t.cases,e);return this._mode===hc.Merge&&(t=new Mu(t.switchValue,t.type,r,t.sourceSpan,t.switchValueSourceSpan)),this._inIcu=n,t},t.prototype.visitComment=function(t){var e=ft(t);if(e&&this._isInTranslatableSection)return void this._reportError(t,"Could not start a block inside a translatable section");var n=dt(t);if(n&&!this._inI18nBlock)return void this._reportError(t,"Trying to close an unopened block");if(!this._inI18nNode&&!this._inIcu)if(this._inI18nBlock){if(n){if(this._depth==this._blockStartDepth){this._closeTranslatableSection(t,this._blockChildren),this._inI18nBlock=!1;var r=this._addMessage(this._blockChildren,this._blockMeaningAndDesc),i=this._translateMessage(t,r);return X(this,i)}return void this._reportError(t,"I18N blocks should not cross element boundaries")}}else e&&(this._inI18nBlock=!0,this._blockStartDepth=this._depth,this._blockChildren=[],this._blockMeaningAndDesc=t.value.replace(pc,"").trim(),this._openTranslatableSection(t))},t.prototype.visitText=function(t){return this._isInTranslatableSection&&this._mayBeAddBlockChildren(t),t},t.prototype.visitElement=function(t,e){var n=this;this._mayBeAddBlockChildren(t),this._depth++;var r,i=this._inI18nNode,o=this._inImplicitNode,s=[],a=yt(t),u=a?a.value:"",c=this._implicitTags.some(function(e){return t.name===e})&&!this._inIcu&&!this._isInTranslatableSection,p=!o&&c;if(this._inImplicitNode=o||c,this._isInTranslatableSection||this._inIcu)(a||p)&&this._reportError(t,"Could not mark an element as translatable inside a translatable section"),this._mode==hc.Extract&&X(this,t.children);else{if(a||p){this._inI18nNode=!0;var l=this._addMessage(t.children,u);r=this._translateMessage(t,l)}if(this._mode==hc.Extract){var h=a||p;h&&this._openTranslatableSection(t),X(this,t.children),h&&this._closeTranslatableSection(t,t.children)}}if(this._mode===hc.Merge){var f=r||t.children;f.forEach(function(t){var r=t.visit(n,e);r&&!n._isInTranslatableSection&&(s=s.concat(r))})}if(this._visitAttributesOf(t),this._depth--,this._inI18nNode=i,this._inImplicitNode=o,this._mode===hc.Merge){var d=this._translateAttributes(t);return new Nu(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=ct(e)},t.prototype._visitAttributesOf=function(t){var e=this,n={},r=this._implicitAttrs[t.name]||[];t.attrs.filter(function(t){return t.name.startsWith(cc)}).forEach(function(t){return n[t.name.slice(cc.length)]=t.value}),t.attrs.forEach(function(t){t.name in n?e._addMessage([t],n[t.name]):r.some(function(e){return t.name===e})&&e._addMessage([t])})},t.prototype._addMessage=function(t,e){if(!(0==t.length||1==t.length&&t[0]instanceof ku&&!t[0].value)){var n=mt(e),r=n[0],i=n[1],o=this._createI18nMessage(t,r,i);return this._messages.push(o),o}},t.prototype._translateMessage=function(t,e){if(e&&this._mode===hc.Merge){var n=this._translations.get(e);if(n)return n;this._reportError(t,'Translation unavailable for message id="'+this._translations.digest(e)+'"')}return[]},t.prototype._translateAttributes=function(t){var e=this,n=t.attrs,r={};n.forEach(function(t){t.name.startsWith(cc)&&(r[t.name.slice(cc.length)]=mt(t.value)[0])});var i=[];return n.forEach(function(n){if(n.name!==uc&&!n.name.startsWith(cc))if(n.value&&""!=n.value&&r.hasOwnProperty(n.name)){var o=r[n.name],s=e._createI18nMessage([n],o,""),a=e._translations.get(s);if(a)if(0==a.length)i.push(new ku(n.name,"",n.sourceSpan));else if(a[0]instanceof Au){var u=a[0].value;i.push(new ku(n.name,u,n.sourceSpan))}else e._reportError(t,'Unexpected translation for attribute "'+n.name+'" (id="'+e._translations.digest(s)+'")');else e._reportError(t,'Translation unavailable for attribute "'+n.name+'" (id="'+e._translations.digest(s)+'")')}else i.push(n)}),i},t.prototype._mayBeAddBlockChildren=function(t){this._inI18nBlock&&!this._inIcu&&this._depth==this._blockStartDepth&&this._blockChildren.push(t)},t.prototype._openTranslatableSection=function(t){this._isInTranslatableSection?this._reportError(t,"Unexpected section start"):this._msgCountAtSectionStart=this._messages.length},Object.defineProperty(t.prototype,"_isInTranslatableSection",{get:function(){return void 0!==this._msgCountAtSectionStart},enumerable:!0,configurable:!0}),t.prototype._closeTranslatableSection=function(t,e){if(!this._isInTranslatableSection)return void this._reportError(t,"Unexpected section end");var n=this._msgCountAtSectionStart,r=e.reduce(function(t,e){return t+(e instanceof Iu?0:1); +}}),r}function Jr(t){var e=Ge("nodeIndex"),n=[];return t.nodes.forEach(function(t){t instanceof Xy&&t.embeddedView&&n.push(new bf(e.equals(tn(t.nodeIndex)),[new df(t.embeddedView.classExpr.instantiate([Uy.viewUtils,of,tn(t.nodeIndex),t.renderNode,t.viewContainer]))]))}),n.length>0&&n.push(new df(af)),new vf("createEmbeddedViewInternal",[new Yh(e.name,Mh)],n,Xe(Yt(_p.AppView),[Oh]))}function ti(t,e){var n=tn(Lo);switch(e){case Lo:return t.equals(n);case Do:return tn(!0);default:return t.equals(tn(e))}}function ei(t){if(t instanceof Hl&&t.duration>0&&2==t.keyframes.length){var e=ni(t.keyframes[0])[0],n=ni(t.keyframes[1])[0];return 0===Object.keys(e).length&&0===Object.keys(n).length}return!1}function ni(t){return t.styles.styles}function ri(t,e,n,r,i){var o=new jm(t);r.forEach(function(t){return o.addOrMergeSummary({symbol:t.symbol,metadata:t.metadata})});for(var s=0;s<o.symbols.length;s++){var a=o.symbols[s];if(!t.isSourceFile(a.filePath)){var u=e.resolveSummary(a);if(!u){var c=n.resolveSymbol(a);c&&(u={symbol:c.symbol,metadata:c.metadata})}u&&o.addOrMergeSummary(u)}}return i.forEach(function(n){if(o.addOrMergeSummary({symbol:n.type.reference,metadata:{__symbolic:"class"},type:n}),n.summaryKind===Cs.NgModule){var r=n;r.exportedDirectives.concat(r.exportedPipes).forEach(function(n){var r=n.reference;t.isSourceFile(r.filePath)||o.addOrMergeSummary(e.resolveSummary(r))})}}),o.serialize()}function ii(t,e){var n=new Lm(t);return n.deserialize(e)}function oi(t){var e=t.replace(Dm,"");return e+".ngsummary.json"}function si(t,e){return e.dependencies.forEach(function(e){if(e instanceof qy){var n=e;n.placeholder.reference=t.getStaticSymbol(ui(w(n.comp)),e.name)}else if(e instanceof zy){var r=e;r.placeholder.reference=t.getStaticSymbol(ui(w(r.comp)),ci(r.comp))}else if(e instanceof Wy){var i=e;i.placeholder.reference=t.getStaticSymbol(ui(w(i.dir)),i.name)}}),e.statements}function ai(t,e,n){return e.dependencies.forEach(function(e){e.valuePlaceholder.reference=t.getStaticSymbol(pi(e.moduleUrl,e.isShimmed,n),e.name)}),e.statements}function ui(t){var e=hi(t);return e[0]+".ngfactory"+e[1]}function ci(t){return b(t)+"NgFactory"}function pi(t,e,n){return""+t+(e?".shim":"")+".ngstyle"+n}function li(t){if(!t.isComponent)throw new Error("Could not compile '"+b(t.type)+"' because it is not a component.")}function hi(t){if(t.endsWith(".d.ts"))return[t.slice(0,-5),".ts"];var e=t.lastIndexOf(".");return-1!==e?[t.substring(0,e),t.substring(e)]:[t,""]}function fi(t,e,n){var r=vi(t,e,n),i=r.ngModules,o=r.symbolsMissingModule;return yi(t,i,o,n)}function di(t,e,n){var r=fi(t,e,n);if(r.symbolsMissingModule&&r.symbolsMissingModule.length){var i=r.symbolsMissingModule.map(function(t){return"Cannot determine the module for class "+t.name+" in "+t.filePath+"!"});throw new Error(i.join("\n"))}return r}function yi(t,e,n,r){var i=new Map;e.forEach(function(t){return i.set(t.type.reference,t)});var o=new Map,s=new Map,a=new Map,u=new Map,c=new Map,p=new Set;t.forEach(function(t){var e=t.filePath;p.add(e),r.isInjectable(t)&&c.set(e,(c.get(e)||[]).concat(t))}),e.forEach(function(t){var e=t.type.reference.filePath;p.add(e),s.set(e,(s.get(e)||[]).concat(t.type.reference)),t.declaredDirectives.forEach(function(e){var n=e.reference.filePath;p.add(n),a.set(n,(a.get(n)||[]).concat(e.reference)),o.set(e.reference,t)}),t.declaredPipes.forEach(function(e){var n=e.reference.filePath;p.add(n),u.set(n,(u.get(n)||[]).concat(e.reference)),o.set(e.reference,t)})});var l=[];return p.forEach(function(t){var e=a.get(t)||[],n=u.get(t)||[],r=s.get(t)||[],i=c.get(t)||[];l.push({srcUrl:t,directives:e,pipes:n,ngModules:r,injectables:i})}),{ngModuleByPipeOrDirective:o,files:l,ngModules:e,symbolsMissingModule:n}}function mi(t,e,n){var r=[];return e.filter(function(t){return n.isSourceFile(t)}).forEach(function(e){t.getSymbolsOf(e).forEach(function(e){var n=t.resolveSymbol(e),i=n.metadata;i&&"error"!=i.__symbolic&&r.push(n.symbol)})}),r}function vi(t,e,n){var r=new Map,i=[],o=new Set,s=function(t){if(r.has(t)||!e.isSourceFile(t.filePath))return!1;var i=n.getNgModuleMetadata(t,!1);return i&&(r.set(i.type.reference,i),i.declaredDirectives.forEach(function(t){return o.add(t.reference)}),i.declaredPipes.forEach(function(t){return o.add(t.reference)}),i.transitiveModule.modules.forEach(function(t){return s(t.reference)})),!!i};t.forEach(function(t){s(t)||!n.isDirective(t)&&!n.isPipe(t)||i.push(t)});var a=i.filter(function(t){return!o.has(t)});return{ngModules:Array.from(r.values()),symbolsMissingModule:a}}function gi(t){return"object"==typeof t&&t.name&&t.filePath}function _i(t){switch(t.message){case"Reference to non-exported class":if(t.context&&t.context.className)return"Reference to a non-exported class "+t.context.className+". Consider exporting the class";break;case"Variable not initialized":return"Only initialized variables and constants can be referenced because the value of this variable is needed by the template compiler";case"Destructuring not supported":return"Referencing an exported destructured variable or constant is not supported by the template compiler. Consider simplifying this to avoid destructuring";case"Could not resolve type":if(t.context&&t.context.typeName)return"Could not resolve type "+t.context.typeName;break;case"Function call not supported":var e=t.context&&t.context.name?"Calling function '"+t.context.name+"', f":"F";return e+"unction calls are not supported. Consider replacing the function or lambda with a reference to an exported function";case"Reference to a local symbol":if(t.context&&t.context.name)return"Reference to a local (non-exported) symbol '"+t.context.name+"'. Consider exporting the symbol"}return t.message}function bi(t){return"Error encountered resolving symbol values statically. "+_i(t)}function wi(t,e){if(!t)return{};var n={};return Object.keys(t).forEach(function(r){var i=e(t[r],r);Si(i)||(Hm.test(r)?Object.defineProperty(n,r,{enumerable:!1,configurable:!0,value:i}):n[r]=i)}),n}function Ei(t){return null===t||"function"!=typeof t&&"object"!=typeof t}function Si(t){return t&&"ignore"==t.__symbolic}function Ci(t,e,n,r){var i=new Error(t);return i.fileName=e,i.line=n,i.column=r,i}function xi(t,n){var r=n.translations||"",i=je(),o=new to,s=new Ym(t,o),a=new Qm(t,o,s),u=new qm(a);Fm.install(u);var c=new dp(new lp,r,n.i18nFormat),p=new kl({genDebugInfo:n.debug===!0,defaultEncapsulation:e.ViewEncapsulation.Emulated,logBindingUpdate:!1,useJit:!1}),l=new yh({get:function(e){return t.loadResource(e)}},i,c,p),h=new wu(new fu),f=new Gd,d=new To,y=new xl(h,f,c,d,[]),m=new fd(new nd(u),new _h(u),new od(u),s,f,l,u),v=new Vm(t,m,y,new Oy(i),new hm(p,f),new Yf(p,h,f,d),new wd,new Id(t),s,n.locale,n.i18nFormat,new ih(f),a);return{compiler:v,reflector:u}}function Ti(t,e){var n=t.concat([new df(Ge(e))]),i=new $m(null,null,null,new Map),o=new Jm,s=o.visitAllStatements(n,i);return r(s)?s.value:null}function Pi(t,e,n,i,o){for(var s=i.createChildWihtLocalVars(),a=0;a<t.length;a++)s.vars.set(t[a],e[a]);var u=o.visitAllStatements(n,s);return r(u)?u.value:null}function Oi(t,e,n){var r={};t.getters.forEach(function(i){r[i.name]={configurable:!1,get:function(){var r=new $m(e,this,t.name,e.vars);return Pi([],[],i.body,r,n)}}}),t.methods.forEach(function(i){var o=i.params.map(function(t){return t.name});r[i.name]={writable:!1,configurable:!1,value:function(){for(var r=[],s=0;s<arguments.length;s++)r[s-0]=arguments[s];var a=new $m(e,this,t.name,e.vars);return Pi(o,r,i.body,a,n)}}});var i=t.constructorMethod.params.map(function(t){return t.name}),o=function(){for(var r=this,o=[],s=0;s<arguments.length;s++)o[s-0]=arguments[s];var a=new $m(e,this,t.name,e.vars);t.fields.forEach(function(t){r[t.name]=void 0}),Pi(i,o,t.constructorMethod.body,a,n)},s=t.parent?t.parent.visitExpression(n,e):Object;return o.prototype=Object.create(s.prototype,r),o}function Ai(t,e,n,r){return function(){for(var i=[],o=0;o<arguments.length;o++)i[o-0]=arguments[o];return Pi(t,i,e,n,r)}}function Mi(t,e,n,r){var i=n+"\nreturn "+e+"\n//# sourceURL="+t,o=[],s=[];for(var a in r)o.push(a),s.push(r[a]);return(new(Function.bind.apply(Function,[void 0].concat(o.concat(i))))).apply(void 0,s)}function Ri(t,e,n){var r=new ov,i=Md.createRoot([n]);return r.visitAllStatements(e,i),Mi(t,n,i.toSource(),r.getArgs())}function ki(t){if(!t.isComponent)throw new Error("Could not compile '"+b(t.type)+"' because it is not a component.")}function Ni(){Po.reflectionCapabilities=new Ao}function Ii(t){return{useDebug:Di(t.map(function(t){return t.useDebug})),useJit:Di(t.map(function(t){return t.useJit})),defaultEncapsulation:Di(t.map(function(t){return t.defaultEncapsulation})),providers:ji(t.map(function(t){return t.providers}))}}function Di(t){for(var e=t.length-1;e>=0;e--)if(void 0!==t[e])return t[e];return void 0}function ji(t){var e=[];return t.forEach(function(t){return t&&e.push.apply(e,t)}),e}var Li=new e.Version("2.4.9"),Vi=function(){function t(t,e,n){this.value=t,this.ngContentIndex=e,this.sourceSpan=n}return t.prototype.visit=function(t,e){return t.visitText(this,e)},t}(),Fi=function(){function t(t,e,n){this.value=t,this.ngContentIndex=e,this.sourceSpan=n}return t.prototype.visit=function(t,e){return t.visitBoundText(this,e)},t}(),Ui=function(){function t(t,e,n){this.name=t,this.value=e,this.sourceSpan=n}return t.prototype.visit=function(t,e){return t.visitAttr(this,e)},t}(),Bi=function(){function t(t,e,n,r,i,o,s){this.name=t,this.type=e,this.securityContext=n,this.needsRuntimeSecurityContext=r,this.value=i,this.unit=o,this.sourceSpan=s}return t.prototype.visit=function(t,e){return t.visitElementProperty(this,e)},Object.defineProperty(t.prototype,"isAnimation",{get:function(){return this.type===Zi.Animation},enumerable:!0,configurable:!0}),t}(),Hi=function(){function t(t,e,n,r,i){this.name=t,this.target=e,this.phase=n,this.handler=r,this.sourceSpan=i}return t.calcFullName=function(t,e,n){return e?e+":"+t:n?"@"+t+"."+n:t},t.prototype.visit=function(t,e){return t.visitEvent(this,e)},Object.defineProperty(t.prototype,"fullName",{get:function(){return t.calcFullName(this.name,this.target,this.phase)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isAnimation",{get:function(){return!!this.phase},enumerable:!0,configurable:!0}),t}(),qi=function(){function t(t,e,n){this.name=t,this.value=e,this.sourceSpan=n}return t.prototype.visit=function(t,e){return t.visitReference(this,e)},t}(),zi=function(){function t(t,e,n){this.name=t,this.value=e,this.sourceSpan=n}return t.prototype.visit=function(t,e){return t.visitVariable(this,e)},t}(),Wi=function(){function t(t,e,n,r,i,o,s,a,u,c,p,l){this.name=t,this.attrs=e,this.inputs=n,this.outputs=r,this.references=i,this.directives=o,this.providers=s,this.hasViewContainer=a,this.children=u,this.ngContentIndex=c,this.sourceSpan=p,this.endSourceSpan=l}return t.prototype.visit=function(t,e){return t.visitElement(this,e)},t}(),Gi=function(){function t(t,e,n,r,i,o,s,a,u,c){this.attrs=t,this.outputs=e,this.references=n,this.variables=r,this.directives=i,this.providers=o,this.hasViewContainer=s,this.children=a,this.ngContentIndex=u,this.sourceSpan=c}return t.prototype.visit=function(t,e){return t.visitEmbeddedTemplate(this,e)},t}(),Ki=function(){function t(t,e,n,r){this.directiveName=t,this.templateName=e,this.value=n,this.sourceSpan=r}return t.prototype.visit=function(t,e){return t.visitDirectiveProperty(this,e)},t}(),Xi=function(){function t(t,e,n,r,i){this.directive=t,this.inputs=e,this.hostProperties=n,this.hostEvents=r,this.sourceSpan=i}return t.prototype.visit=function(t,e){return t.visitDirective(this,e)},t}(),Qi=function(){function t(t,e,n,r,i,o,s){this.token=t,this.multiProvider=e,this.eager=n,this.providers=r,this.providerType=i,this.lifecycleHooks=o,this.sourceSpan=s}return t.prototype.visit=function(){return null},t}(),Yi={};Yi.PublicService=0,Yi.PrivateService=1,Yi.Component=2,Yi.Directive=3,Yi.Builtin=4,Yi[Yi.PublicService]="PublicService",Yi[Yi.PrivateService]="PrivateService",Yi[Yi.Component]="Component",Yi[Yi.Directive]="Directive",Yi[Yi.Builtin]="Builtin";var $i=function(){function t(t,e,n){this.index=t,this.ngContentIndex=e,this.sourceSpan=n}return t.prototype.visit=function(t,e){return t.visitNgContent(this,e)},t}(),Zi={};Zi.Property=0,Zi.Attribute=1,Zi.Class=2,Zi.Style=3,Zi.Animation=4,Zi[Zi.Property]="Property",Zi[Zi.Attribute]="Attribute",Zi[Zi.Class]="Class",Zi[Zi.Style]="Style",Zi[Zi.Animation]="Animation";var Ji=function(){function t(t,e,n){this.filePath=t,this.name=e,this.members=n}return t}(),to=function(){function t(){this.cache=new Map}return t.prototype.get=function(t,e,n){n=n||[];var r=n.length?"."+n.join("."):"",i='"'+t+'".'+e+r,o=this.cache.get(i);return o||(o=new Ji(t,e,n),this.cache.set(i,o)),o},t}(),eo=Object.getPrototypeOf({}),no=function(){function t(){}return t.parseIntAutoRadix=function(t){var e=parseInt(t);if(isNaN(e))throw new Error("Invalid integer literal when parsing "+t);return e},t.isNumeric=function(t){return!isNaN(t-parseFloat(t))},t}(),ro=function(){function t(){}return t.merge=function(t,e){for(var n={},r=0,i=Object.keys(t);r<i.length;r++){var o=i[r];n[o]=t[o]}for(var s=0,a=Object.keys(e);s<a.length;s++){var o=a[s];n[o]=e[o]}return n},t.equals=function(t,e){var n=Object.keys(t),r=Object.keys(e);if(n.length!=r.length)return!1;for(var i=0;i<n.length;i++){var o=n[i];if(t[o]!==e[o])return!1}return!0},t}(),io=function(){function t(){}return t.findLast=function(t,e){for(var n=t.length-1;n>=0;n--)if(e(t[n]))return t[n];return null},t.removeAll=function(t,e){for(var n=0;n<e.length;++n){var r=t.indexOf(e[n]);r>-1&&t.splice(r,1)}},t.remove=function(t,e){var n=t.indexOf(e);return n>-1?(t.splice(n,1),!0):!1},t.equals=function(t,e){if(t.length!=e.length)return!1;for(var n=0;n<t.length;++n)if(t[n]!==e[n])return!1;return!0},t.flatten=function(e){return e.reduce(function(e,n){var r=Array.isArray(n)?t.flatten(n):n;return e.concat(r)},[])},t}(),oo=e.__core_private__.isDefaultChangeDetectionStrategy,so=e.__core_private__.ChangeDetectorStatus,ao=e.__core_private__.LifecycleHooks,uo=e.__core_private__.LIFECYCLE_HOOKS_VALUES,co=e.__core_private__.ReflectorReader,po=e.__core_private__.ViewContainer,lo=e.__core_private__.CodegenComponentFactoryResolver,ho=e.__core_private__.ComponentRef_,fo=e.__core_private__.AppView,yo=e.__core_private__.DebugAppView,mo=e.__core_private__.NgModuleInjector,vo=e.__core_private__.registerModuleFactory,go=e.__core_private__.ViewType,_o=e.__core_private__.view_utils,bo=e.__core_private__.DebugContext,wo=e.__core_private__.StaticNodeDebugInfo,Eo=e.__core_private__.devModeEqual,So=e.__core_private__.UNINITIALIZED,Co=e.__core_private__.ValueUnwrapper,xo=e.__core_private__.TemplateRef_,To=e.__core_private__.Console,Po=e.__core_private__.reflector,Oo=e.__core_private__.Reflector,Ao=e.__core_private__.ReflectionCapabilities,Mo=e.__core_private__.NoOpAnimationPlayer,Ro=e.__core_private__.AnimationSequencePlayer,ko=e.__core_private__.AnimationGroupPlayer,No=e.__core_private__.AnimationKeyframe,Io=e.__core_private__.AnimationStyles,Do=e.__core_private__.ANY_STATE,jo=e.__core_private__.DEFAULT_STATE,Lo=e.__core_private__.EMPTY_STATE,Vo=e.__core_private__.FILL_STYLE_FLAG,Fo=e.__core_private__.prepareFinalAnimationStyles,Uo=e.__core_private__.balanceAnimationKeyframes,Bo=e.__core_private__.clearStyles,Ho=e.__core_private__.collectAndResolveStyles,qo=e.__core_private__.renderStyles,zo=e.__core_private__.ComponentStillLoadingError,Wo=e.__core_private__.AnimationTransition,Go={};Go.RAW_TEXT=0,Go.ESCAPABLE_RAW_TEXT=1,Go.PARSABLE_DATA=2,Go[Go.RAW_TEXT]="RAW_TEXT",Go[Go.ESCAPABLE_RAW_TEXT]="ESCAPABLE_RAW_TEXT",Go[Go.PARSABLE_DATA]="PARSABLE_DATA";var Ko={Aacute:"Ã",aacute:"á",Acirc:"Â",acirc:"â",acute:"´",AElig:"Æ",aelig:"æ",Agrave:"À",agrave:"à ",alefsym:"ℵ",Alpha:"Α",alpha:"α",amp:"&",and:"∧",ang:"∠",apos:"'",Aring:"Ã…",aring:"Ã¥",asymp:"≈",Atilde:"Ã",atilde:"ã",Auml:"Ä",auml:"ä",bdquo:"„",Beta:"Î’",beta:"β",brvbar:"¦",bull:"•",cap:"∩",Ccedil:"Ç",ccedil:"ç",cedil:"¸",cent:"¢",Chi:"Χ",chi:"χ",circ:"ˆ",clubs:"♣",cong:"≅",copy:"©",crarr:"↵",cup:"∪",curren:"¤",dagger:"†",Dagger:"‡",darr:"↓",dArr:"⇓",deg:"°",Delta:"Δ",delta:"δ",diams:"♦",divide:"÷",Eacute:"É",eacute:"é",Ecirc:"Ê",ecirc:"ê",Egrave:"È",egrave:"è",empty:"∅",emsp:" ",ensp:" ",Epsilon:"Ε",epsilon:"ε",equiv:"≡",Eta:"Η",eta:"η",ETH:"Ã",eth:"ð",Euml:"Ë",euml:"ë",euro:"€",exist:"∃",fnof:"Æ’",forall:"∀",frac12:"½",frac14:"¼",frac34:"¾",frasl:"â„",Gamma:"Γ",gamma:"γ",ge:"≥",gt:">",harr:"↔",hArr:"⇔",hearts:"♥",hellip:"…",Iacute:"Ã",iacute:"Ã",Icirc:"ÃŽ",icirc:"î",iexcl:"¡",Igrave:"ÃŒ",igrave:"ì",image:"â„‘",infin:"∞","int":"∫",Iota:"Ι",iota:"ι",iquest:"¿",isin:"∈",Iuml:"Ã",iuml:"ï",Kappa:"Κ",kappa:"κ",Lambda:"Λ",lambda:"λ",lang:"⟨",laquo:"«",larr:"â†",lArr:"â‡",lceil:"⌈",ldquo:"“",le:"≤",lfloor:"⌊",lowast:"∗",loz:"â—Š",lrm:"‎",lsaquo:"‹",lsquo:"‘",lt:"<",macr:"¯",mdash:"—",micro:"µ",middot:"·",minus:"−",Mu:"Îœ",mu:"μ",nabla:"∇",nbsp:" ",ndash:"–",ne:"≠",ni:"∋",not:"¬",notin:"∉",nsub:"⊄",Ntilde:"Ñ",ntilde:"ñ",Nu:"Î",nu:"ν",Oacute:"Ó",oacute:"ó",Ocirc:"Ô",ocirc:"ô",OElig:"Å’",oelig:"Å“",Ograve:"Ã’",ograve:"ò",oline:"‾",Omega:"Ω",omega:"ω",Omicron:"Ο",omicron:"ο",oplus:"⊕",or:"∨",ordf:"ª",ordm:"º",Oslash:"Ø",oslash:"ø",Otilde:"Õ",otilde:"õ",otimes:"⊗",Ouml:"Ö",ouml:"ö",para:"¶",permil:"‰",perp:"⊥",Phi:"Φ",phi:"φ",Pi:"Î ",pi:"Ï€",piv:"Ï–",plusmn:"±",pound:"£",prime:"′",Prime:"″",prod:"âˆ",prop:"âˆ",Psi:"Ψ",psi:"ψ",quot:'"',radic:"√",rang:"⟩",raquo:"»",rarr:"→",rArr:"⇒",rceil:"⌉",rdquo:"â€",real:"â„œ",reg:"®",rfloor:"⌋",Rho:"Ρ",rho:"Ï",rlm:"â€",rsaquo:"›",rsquo:"’",sbquo:"‚",Scaron:"Å ",scaron:"Å¡",sdot:"â‹…",sect:"§",shy:"Â",Sigma:"Σ",sigma:"σ",sigmaf:"Ï‚",sim:"∼",spades:"â™ ",sub:"⊂",sube:"⊆",sum:"∑",sup:"⊃",sup1:"¹",sup2:"²",sup3:"³",supe:"⊇",szlig:"ß",Tau:"Τ",tau:"Ï„",there4:"∴",Theta:"Θ",theta:"θ",thetasym:"Ï‘",thinsp:" ",THORN:"Þ",thorn:"þ",tilde:"Ëœ",times:"×",trade:"â„¢",Uacute:"Ú",uacute:"ú",uarr:"↑",uArr:"⇑",Ucirc:"Û",ucirc:"û",Ugrave:"Ù",ugrave:"ù",uml:"¨",upsih:"Ï’",Upsilon:"Î¥",upsilon:"Ï…",Uuml:"Ãœ",uuml:"ü",weierp:"℘",Xi:"Ξ",xi:"ξ",Yacute:"Ã",yacute:"ý",yen:"Â¥",yuml:"ÿ",Yuml:"Ÿ",Zeta:"Ζ",zeta:"ζ",zwj:"â€",zwnj:"‌"},Xo=function(){function t(t){var e=this,n=void 0===t?{}:t,r=n.closedByChildren,i=n.requiredParents,o=n.implicitNamespacePrefix,s=n.contentType,a=void 0===s?Go.PARSABLE_DATA:s,u=n.closedByParent,c=void 0===u?!1:u,p=n.isVoid,l=void 0===p?!1:p,h=n.ignoreFirstLf,f=void 0===h?!1:h;this.closedByChildren={},this.closedByParent=!1,this.canSelfClose=!1,r&&r.length>0&&r.forEach(function(t){return e.closedByChildren[t]=!0}),this.isVoid=l,this.closedByParent=c||l,i&&i.length>0&&(this.requiredParents={},this.parentToAdd=i[0],i.forEach(function(t){return e.requiredParents[t]=!0})),this.implicitNamespacePrefix=o,this.contentType=a,this.ignoreFirstLf=f}return t.prototype.requireExtraParent=function(t){if(!this.requiredParents)return!1;if(!t)return!0;var e=t.toLowerCase();return 1!=this.requiredParents[e]&&"template"!=e},t.prototype.isClosedByChild=function(t){return this.isVoid||t.toLowerCase()in this.closedByChildren},t}(),Qo={base:new Xo({isVoid:!0}),meta:new Xo({isVoid:!0}),area:new Xo({isVoid:!0}),embed:new Xo({isVoid:!0}),link:new Xo({isVoid:!0}),img:new Xo({isVoid:!0}),input:new Xo({isVoid:!0}),param:new Xo({isVoid:!0}),hr:new Xo({isVoid:!0}),br:new Xo({isVoid:!0}),source:new Xo({isVoid:!0}),track:new Xo({isVoid:!0}),wbr:new Xo({isVoid:!0}),p:new Xo({closedByChildren:["address","article","aside","blockquote","div","dl","fieldset","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","hr","main","nav","ol","p","pre","section","table","ul"],closedByParent:!0}),thead:new Xo({closedByChildren:["tbody","tfoot"]}),tbody:new Xo({closedByChildren:["tbody","tfoot"],closedByParent:!0}),tfoot:new Xo({closedByChildren:["tbody"],closedByParent:!0}),tr:new Xo({closedByChildren:["tr"],requiredParents:["tbody","tfoot","thead"],closedByParent:!0}),td:new Xo({closedByChildren:["td","th"],closedByParent:!0}),th:new Xo({closedByChildren:["td","th"],closedByParent:!0}),col:new Xo({requiredParents:["colgroup"],isVoid:!0}),svg:new Xo({implicitNamespacePrefix:"svg"}),math:new Xo({implicitNamespacePrefix:"math"}),li:new Xo({closedByChildren:["li"],closedByParent:!0}),dt:new Xo({closedByChildren:["dt","dd"]}),dd:new Xo({closedByChildren:["dt","dd"],closedByParent:!0}),rb:new Xo({closedByChildren:["rb","rt","rtc","rp"],closedByParent:!0}),rt:new Xo({closedByChildren:["rb","rt","rtc","rp"],closedByParent:!0}),rtc:new Xo({closedByChildren:["rb","rtc","rp"],closedByParent:!0}),rp:new Xo({closedByChildren:["rb","rt","rtc","rp"],closedByParent:!0}),optgroup:new Xo({closedByChildren:["optgroup"],closedByParent:!0}),option:new Xo({closedByChildren:["option","optgroup"],closedByParent:!0}),pre:new Xo({ignoreFirstLf:!0}),listing:new Xo({ignoreFirstLf:!0}),style:new Xo({contentType:Go.RAW_TEXT}),script:new Xo({contentType:Go.RAW_TEXT}),title:new Xo({contentType:Go.ESCAPABLE_RAW_TEXT}),textarea:new Xo({contentType:Go.ESCAPABLE_RAW_TEXT,ignoreFirstLf:!0})},Yo=new Xo,$o=new RegExp("(\\:not\\()|([-\\w]+)|(?:\\.([-\\w]+))|(?:\\[([-.\\w*]+)(?:=([^\\]]*))?\\])|(\\))|(\\s*,\\s*)","g"),Zo=function(){function t(){this.element=null,this.classNames=[],this.attrs=[],this.notSelectors=[]}return t.parse=function(e){var n,r=[],i=function(t,e){e.notSelectors.length>0&&!e.element&&0==e.classNames.length&&0==e.attrs.length&&(e.element="*"),t.push(e)},o=new t,s=o,a=!1;for($o.lastIndex=0;n=$o.exec(e);){if(n[1]){if(a)throw new Error("Nesting :not is not allowed in a selector");a=!0,s=new t,o.notSelectors.push(s)}if(n[2]&&s.setElement(n[2]),n[3]&&s.addClassName(n[3]),n[4]&&s.addAttribute(n[4],n[5]),n[6]&&(a=!1,s=o),n[7]){if(a)throw new Error("Multiple selectors in :not are not supported");i(r,o),o=s=new t}}return i(r,o),r},t.prototype.isElementSelector=function(){return this.hasElementSelector()&&0==this.classNames.length&&0==this.attrs.length&&0===this.notSelectors.length},t.prototype.hasElementSelector=function(){return!!this.element},t.prototype.setElement=function(t){void 0===t&&(t=null),this.element=t},t.prototype.getMatchingElementTemplate=function(){for(var t=this.element||"div",e=this.classNames.length>0?' class="'+this.classNames.join(" ")+'"':"",n="",r=0;r<this.attrs.length;r+=2){var i=this.attrs[r],o=""!==this.attrs[r+1]?'="'+this.attrs[r+1]+'"':"";n+=" "+i+o}return f(t).isVoid?"<"+t+e+n+"/>":"<"+t+e+n+"></"+t+">"},t.prototype.addAttribute=function(t,e){void 0===e&&(e=""),this.attrs.push(t,e&&e.toLowerCase()||"")},t.prototype.addClassName=function(t){this.classNames.push(t.toLowerCase())},t.prototype.toString=function(){var t=this.element||"";if(this.classNames&&this.classNames.forEach(function(e){return t+="."+e}),this.attrs)for(var e=0;e<this.attrs.length;e+=2){var n=this.attrs[e],r=this.attrs[e+1];t+="["+n+(r?"="+r:"")+"]"}return this.notSelectors.forEach(function(e){return t+=":not("+e+")"}),t},t}(),Jo=function(){function t(){this._elementMap=new Map,this._elementPartialMap=new Map,this._classMap=new Map,this._classPartialMap=new Map,this._attrValueMap=new Map,this._attrValuePartialMap=new Map,this._listContexts=[]}return t.createNotMatcher=function(e){var n=new t;return n.addSelectables(e,null),n},t.prototype.addSelectables=function(t,e){var n=null;t.length>1&&(n=new ts(t),this._listContexts.push(n));for(var r=0;r<t.length;r++)this._addSelectable(t[r],e,n)},t.prototype._addSelectable=function(t,e,n){var r=this,i=t.element,o=t.classNames,s=t.attrs,a=new es(t,e,n);if(i){var u=0===s.length&&0===o.length;u?this._addTerminal(r._elementMap,i,a):r=this._addPartial(r._elementPartialMap,i)}if(o)for(var c=0;c<o.length;c++){var u=0===s.length&&c===o.length-1,p=o[c];u?this._addTerminal(r._classMap,p,a):r=this._addPartial(r._classPartialMap,p)}if(s)for(var c=0;c<s.length;c+=2){var u=c===s.length-2,l=s[c],h=s[c+1];if(u){var f=r._attrValueMap,d=f.get(l);d||(d=new Map,f.set(l,d)),this._addTerminal(d,h,a)}else{var y=r._attrValuePartialMap,m=y.get(l);m||(m=new Map,y.set(l,m)),r=this._addPartial(m,h)}}},t.prototype._addTerminal=function(t,e,n){var r=t.get(e);r||(r=[],t.set(e,r)),r.push(n)},t.prototype._addPartial=function(e,n){var r=e.get(n);return r||(r=new t,e.set(n,r)),r},t.prototype.match=function(t,e){for(var n=!1,r=t.element,i=t.classNames,o=t.attrs,s=0;s<this._listContexts.length;s++)this._listContexts[s].alreadyMatched=!1;if(n=this._matchTerminal(this._elementMap,r,t,e)||n,n=this._matchPartial(this._elementPartialMap,r,t,e)||n,i)for(var s=0;s<i.length;s++){var a=i[s];n=this._matchTerminal(this._classMap,a,t,e)||n,n=this._matchPartial(this._classPartialMap,a,t,e)||n}if(o)for(var s=0;s<o.length;s+=2){var u=o[s],c=o[s+1],p=this._attrValueMap.get(u);c&&(n=this._matchTerminal(p,"",t,e)||n),n=this._matchTerminal(p,c,t,e)||n;var l=this._attrValuePartialMap.get(u);c&&(n=this._matchPartial(l,"",t,e)||n),n=this._matchPartial(l,c,t,e)||n}return n},t.prototype._matchTerminal=function(t,e,n,r){if(!t||"string"!=typeof e)return!1;var i=t.get(e)||[],o=t.get("*");if(o&&(i=i.concat(o)),0===i.length)return!1;for(var s,a=!1,u=0;u<i.length;u++)s=i[u],a=s.finalize(n,r)||a;return a},t.prototype._matchPartial=function(t,e,n,r){if(!t||"string"!=typeof e)return!1;var i=t.get(e);return i?i.match(n,r):!1},t}(),ts=function(){function t(t){this.selectors=t,this.alreadyMatched=!1}return t}(),es=function(){function t(t,e,n){this.selector=t,this.cbContext=e,this.listContext=n,this.notSelectors=t.notSelectors}return t.prototype.finalize=function(t,e){var n=!0;if(this.notSelectors.length>0&&(!this.listContext||!this.listContext.alreadyMatched)){var r=Jo.createNotMatcher(this.notSelectors);n=!r.match(t,null)}return!n||!e||this.listContext&&this.listContext.alreadyMatched||(this.listContext&&(this.listContext.alreadyMatched=!0),e(this.selector,this.cbContext)),n},t}(),ns=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},rs=function(t){function e(e){t.call(this,e);var n=new Error(e);this._nativeError=n}return ns(e,t),Object.defineProperty(e.prototype,"message",{get:function(){return this._nativeError.message},set:function(t){this._nativeError.message=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"name",{get:function(){return this._nativeError.name},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"stack",{get:function(){return this._nativeError.stack},set:function(t){this._nativeError.stack=t},enumerable:!0,configurable:!0}),e.prototype.toString=function(){return this._nativeError.toString()},e}(Error),is=(function(t){function e(e,n){t.call(this,e+" caused by: "+(n instanceof Error?n.message:n)),this.originalError=n}return ns(e,t),Object.defineProperty(e.prototype,"stack",{get:function(){return(this.originalError instanceof Error?this.originalError:this._nativeError).stack},enumerable:!0,configurable:!0}),e}(rs),this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),os="",ss=/-+([a-z0-9])/g,as=function(){function t(){}return t.prototype.visitArray=function(t,e){var n=this;return t.map(function(t){return g(t,n,e)})},t.prototype.visitStringMap=function(t,e){var n=this,r={};return Object.keys(t).forEach(function(i){r[i]=g(t[i],n,e)}),r},t.prototype.visitPrimitive=function(t){return t},t.prototype.visitOther=function(t){return t},t}(),us=function(){function t(t,e){void 0===e&&(e=null),this.syncResult=t,this.asyncResult=e,e||(this.asyncResult=Promise.resolve(t))}return t}(),cs=function(t){function e(){t.apply(this,arguments)}return is(e,t),e}(rs),ps=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},ls=/^(?:(?:\[([^\]]+)\])|(?:\(([^\)]+)\)))|(\@[-\w]+)$/,hs=function(){function t(t,e){void 0===t&&(t=null),void 0===e&&(e=null),this.name=t,this.definitions=e}return t}(),fs=function(){function t(){}return t}(),ds=function(t){function e(e,n){t.call(this),this.stateNameExpr=e,this.styles=n}return ps(e,t),e}(fs),ys=function(t){function e(e,n){t.call(this),this.stateChangeExpr=e,this.steps=n}return ps(e,t),e}(fs),ms=function(){function t(){}return t}(),vs=function(t){function e(e){void 0===e&&(e=[]),t.call(this),this.steps=e}return ps(e,t),e}(ms),gs=function(t){function e(e,n){void 0===n&&(n=null),t.call(this),this.offset=e,this.styles=n}return ps(e,t),e}(ms),_s=function(t){function e(e,n){void 0===e&&(e=0),void 0===n&&(n=null),t.call(this),this.timings=e,this.styles=n}return ps(e,t),e}(ms),bs=function(t){function e(e){void 0===e&&(e=null),t.call(this),this.steps=e}return ps(e,t),e}(ms),ws=function(t){function e(e){void 0===e&&(e=null),t.call(this,e)}return ps(e,t),e}(bs),Es=function(t){function e(e){void 0===e&&(e=null),t.call(this,e)}return ps(e,t),e}(bs),Ss=0,Cs={};Cs.Pipe=0,Cs.Directive=1,Cs.NgModule=2,Cs.Injectable=3,Cs[Cs.Pipe]="Pipe",Cs[Cs.Directive]="Directive",Cs[Cs.NgModule]="NgModule",Cs[Cs.Injectable]="Injectable";var xs=function(){function t(t){var e=void 0===t?{}:t,n=e.moduleUrl,r=e.styles,i=e.styleUrls;this.moduleUrl=n,this.styles=x(r),this.styleUrls=x(i)}return t}(),Ts=function(){function t(t){var e=void 0===t?{}:t,n=e.encapsulation,r=e.template,i=e.templateUrl,o=e.styles,s=e.styleUrls,a=e.externalStylesheets,u=e.animations,c=e.ngContentSelectors,p=e.interpolation;if(this.encapsulation=n,this.template=r,this.templateUrl=i,this.styles=x(o),this.styleUrls=x(s),this.externalStylesheets=x(a),this.animations=u?io.flatten(u):[],this.ngContentSelectors=c||[],p&&2!=p.length)throw new Error("'interpolation' should have a start and an end symbol.");this.interpolation=p}return t.prototype.toSummary=function(){return{animations:this.animations.map(function(t){return t.name}),ngContentSelectors:this.ngContentSelectors,encapsulation:this.encapsulation}},t}(),Ps=function(){function t(t){var e=void 0===t?{}:t,n=e.isHost,r=e.type,i=e.isComponent,o=e.selector,s=e.exportAs,a=e.changeDetection,u=e.inputs,c=e.outputs,p=e.hostListeners,l=e.hostProperties,h=e.hostAttributes,f=e.providers,d=e.viewProviders,y=e.queries,m=e.viewQueries,v=e.entryComponents,g=e.template;this.isHost=!!n,this.type=r,this.isComponent=i,this.selector=o,this.exportAs=s,this.changeDetection=a,this.inputs=u,this.outputs=c,this.hostListeners=p,this.hostProperties=l,this.hostAttributes=h,this.providers=x(f),this.viewProviders=x(d),this.queries=x(y),this.viewQueries=x(m),this.entryComponents=x(v),this.template=g}return t.create=function(e){var n=void 0===e?{}:e,i=n.isHost,o=n.type,s=n.isComponent,a=n.selector,u=n.exportAs,c=n.changeDetection,p=n.inputs,l=n.outputs,h=n.host,f=n.providers,d=n.viewProviders,m=n.queries,v=n.viewQueries,g=n.entryComponents,_=n.template,b={},w={},E={};r(h)&&Object.keys(h).forEach(function(t){var e=h[t],n=t.match(ls);null===n?E[t]=e:r(n[1])?w[n[1]]=e:r(n[2])&&(b[n[2]]=e)});var S={};r(p)&&p.forEach(function(t){var e=y(t,[t,t]);S[e[0]]=e[1]});var C={};return r(l)&&l.forEach(function(t){var e=y(t,[t,t]);C[e[0]]=e[1]}),new t({isHost:i,type:o,isComponent:!!s,selector:a,exportAs:u,changeDetection:c,inputs:S,outputs:C,hostListeners:b,hostProperties:w,hostAttributes:E,providers:f,viewProviders:d,queries:m,viewQueries:v,entryComponents:g,template:_})},t.prototype.toSummary=function(){return{summaryKind:Cs.Directive,type:this.type,isComponent:this.isComponent,selector:this.selector,exportAs:this.exportAs,inputs:this.inputs,outputs:this.outputs,hostListeners:this.hostListeners,hostProperties:this.hostProperties,hostAttributes:this.hostAttributes,providers:this.providers,viewProviders:this.viewProviders,queries:this.queries,entryComponents:this.entryComponents,changeDetection:this.changeDetection,template:this.template&&this.template.toSummary()}},t}(),Os=function(){function t(t){var e=void 0===t?{}:t,n=e.type,r=e.name,i=e.pure;this.type=n,this.name=r,this.pure=!!i}return t.prototype.toSummary=function(){return{summaryKind:Cs.Pipe,type:this.type,name:this.name, +pure:this.pure}},t}(),As=function(){function t(t){var e=void 0===t?{}:t,n=e.type,r=e.providers,i=e.declaredDirectives,o=e.exportedDirectives,s=e.declaredPipes,a=e.exportedPipes,u=e.entryComponents,c=e.bootstrapComponents,p=e.importedModules,l=e.exportedModules,h=e.schemas,f=e.transitiveModule,d=e.id;this.type=n,this.declaredDirectives=x(i),this.exportedDirectives=x(o),this.declaredPipes=x(s),this.exportedPipes=x(a),this.providers=x(r),this.entryComponents=x(u),this.bootstrapComponents=x(c),this.importedModules=x(p),this.exportedModules=x(l),this.schemas=x(h),this.id=d,this.transitiveModule=f}return t.prototype.toSummary=function(){return{summaryKind:Cs.NgModule,type:this.type,entryComponents:this.transitiveModule.entryComponents,providers:this.transitiveModule.providers,modules:this.transitiveModule.modules,exportedDirectives:this.transitiveModule.exportedDirectives,exportedPipes:this.transitiveModule.exportedPipes}},t}(),Ms=function(){function t(){this.directivesSet=new Set,this.directives=[],this.exportedDirectivesSet=new Set,this.exportedDirectives=[],this.pipesSet=new Set,this.pipes=[],this.exportedPipesSet=new Set,this.exportedPipes=[],this.modulesSet=new Set,this.modules=[],this.entryComponentsSet=new Set,this.entryComponents=[],this.providers=[]}return t.prototype.addProvider=function(t,e){this.providers.push({provider:t,module:e})},t.prototype.addDirective=function(t){this.directivesSet.has(t.reference)||(this.directivesSet.add(t.reference),this.directives.push(t))},t.prototype.addExportedDirective=function(t){this.exportedDirectivesSet.has(t.reference)||(this.exportedDirectivesSet.add(t.reference),this.exportedDirectives.push(t))},t.prototype.addPipe=function(t){this.pipesSet.has(t.reference)||(this.pipesSet.add(t.reference),this.pipes.push(t))},t.prototype.addExportedPipe=function(t){this.exportedPipesSet.has(t.reference)||(this.exportedPipesSet.add(t.reference),this.exportedPipes.push(t))},t.prototype.addModule=function(t){this.modulesSet.has(t.reference)||(this.modulesSet.add(t.reference),this.modules.push(t))},t.prototype.addEntryComponent=function(t){this.entryComponentsSet.has(t.reference)||(this.entryComponentsSet.add(t.reference),this.entryComponents.push(t))},t}(),Rs=function(){function t(t,e){var n=e.useClass,r=e.useValue,i=e.useExisting,o=e.useFactory,s=e.deps,a=e.multi;this.token=t,this.useClass=n,this.useValue=r,this.useExisting=i,this.useFactory=o,this.dependencies=s,this.multi=!!a}return t}(),ks=0,Ns=9,Is=10,Ds=11,js=12,Ls=13,Vs=32,Fs=33,Us=34,Bs=35,Hs=36,qs=37,zs=38,Ws=39,Gs=40,Ks=41,Xs=42,Qs=43,Ys=44,$s=45,Zs=46,Js=47,ta=58,ea=59,na=60,ra=61,ia=62,oa=63,sa=48,aa=57,ua=65,ca=69,pa=70,la=88,ha=90,fa=91,da=92,ya=93,ma=94,va=95,ga=97,_a=101,ba=102,wa=110,Ea=114,Sa=116,Ca=117,xa=118,Ta=120,Pa=122,Oa=123,Aa=124,Ma=125,Ra=160,ka=96,Na=[/^\s*$/,/[<>]/,/^[{}]$/,/&(#|[a-z])/i,/^\/\//],Ia=function(){function t(t,e){this.start=t,this.end=e}return t.fromArray=function(e){return e?(k("interpolation",e),new t(e[0],e[1])):Da},t}(),Da=new Ia("{{","}}"),ja=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},La=function(){function t(t,e,n,r){this.input=e,this.errLocation=n,this.ctxLocation=r,this.message="Parser Error: "+t+" "+n+" ["+e+"] in "+r}return t}(),Va=function(){function t(t,e){this.start=t,this.end=e}return t}(),Fa=function(){function t(t){this.span=t}return t.prototype.visit=function(t,e){return void 0===e&&(e=null),null},t.prototype.toString=function(){return"AST"},t}(),Ua=function(t){function e(e,n,r,i){t.call(this,e),this.prefix=n,this.uninterpretedExpression=r,this.location=i}return ja(e,t),e.prototype.visit=function(t,e){return void 0===e&&(e=null),t.visitQuote(this,e)},e.prototype.toString=function(){return"Quote"},e}(Fa),Ba=function(t){function e(){t.apply(this,arguments)}return ja(e,t),e.prototype.visit=function(t,e){void 0===e&&(e=null)},e}(Fa),Ha=function(t){function e(){t.apply(this,arguments)}return ja(e,t),e.prototype.visit=function(t,e){return void 0===e&&(e=null),t.visitImplicitReceiver(this,e)},e}(Fa),qa=function(t){function e(e,n){t.call(this,e),this.expressions=n}return ja(e,t),e.prototype.visit=function(t,e){return void 0===e&&(e=null),t.visitChain(this,e)},e}(Fa),za=function(t){function e(e,n,r,i){t.call(this,e),this.condition=n,this.trueExp=r,this.falseExp=i}return ja(e,t),e.prototype.visit=function(t,e){return void 0===e&&(e=null),t.visitConditional(this,e)},e}(Fa),Wa=function(t){function e(e,n,r){t.call(this,e),this.receiver=n,this.name=r}return ja(e,t),e.prototype.visit=function(t,e){return void 0===e&&(e=null),t.visitPropertyRead(this,e)},e}(Fa),Ga=function(t){function e(e,n,r,i){t.call(this,e),this.receiver=n,this.name=r,this.value=i}return ja(e,t),e.prototype.visit=function(t,e){return void 0===e&&(e=null),t.visitPropertyWrite(this,e)},e}(Fa),Ka=function(t){function e(e,n,r){t.call(this,e),this.receiver=n,this.name=r}return ja(e,t),e.prototype.visit=function(t,e){return void 0===e&&(e=null),t.visitSafePropertyRead(this,e)},e}(Fa),Xa=function(t){function e(e,n,r){t.call(this,e),this.obj=n,this.key=r}return ja(e,t),e.prototype.visit=function(t,e){return void 0===e&&(e=null),t.visitKeyedRead(this,e)},e}(Fa),Qa=function(t){function e(e,n,r,i){t.call(this,e),this.obj=n,this.key=r,this.value=i}return ja(e,t),e.prototype.visit=function(t,e){return void 0===e&&(e=null),t.visitKeyedWrite(this,e)},e}(Fa),Ya=function(t){function e(e,n,r,i){t.call(this,e),this.exp=n,this.name=r,this.args=i}return ja(e,t),e.prototype.visit=function(t,e){return void 0===e&&(e=null),t.visitPipe(this,e)},e}(Fa),$a=function(t){function e(e,n){t.call(this,e),this.value=n}return ja(e,t),e.prototype.visit=function(t,e){return void 0===e&&(e=null),t.visitLiteralPrimitive(this,e)},e}(Fa),Za=function(t){function e(e,n){t.call(this,e),this.expressions=n}return ja(e,t),e.prototype.visit=function(t,e){return void 0===e&&(e=null),t.visitLiteralArray(this,e)},e}(Fa),Ja=function(t){function e(e,n,r){t.call(this,e),this.keys=n,this.values=r}return ja(e,t),e.prototype.visit=function(t,e){return void 0===e&&(e=null),t.visitLiteralMap(this,e)},e}(Fa),tu=function(t){function e(e,n,r){t.call(this,e),this.strings=n,this.expressions=r}return ja(e,t),e.prototype.visit=function(t,e){return void 0===e&&(e=null),t.visitInterpolation(this,e)},e}(Fa),eu=function(t){function e(e,n,r,i){t.call(this,e),this.operation=n,this.left=r,this.right=i}return ja(e,t),e.prototype.visit=function(t,e){return void 0===e&&(e=null),t.visitBinary(this,e)},e}(Fa),nu=function(t){function e(e,n){t.call(this,e),this.expression=n}return ja(e,t),e.prototype.visit=function(t,e){return void 0===e&&(e=null),t.visitPrefixNot(this,e)},e}(Fa),ru=function(t){function e(e,n,r,i){t.call(this,e),this.receiver=n,this.name=r,this.args=i}return ja(e,t),e.prototype.visit=function(t,e){return void 0===e&&(e=null),t.visitMethodCall(this,e)},e}(Fa),iu=function(t){function e(e,n,r,i){t.call(this,e),this.receiver=n,this.name=r,this.args=i}return ja(e,t),e.prototype.visit=function(t,e){return void 0===e&&(e=null),t.visitSafeMethodCall(this,e)},e}(Fa),ou=function(t){function e(e,n,r){t.call(this,e),this.target=n,this.args=r}return ja(e,t),e.prototype.visit=function(t,e){return void 0===e&&(e=null),t.visitFunctionCall(this,e)},e}(Fa),su=function(t){function e(e,n,r,o){t.call(this,new Va(0,i(n)?0:n.length)),this.ast=e,this.source=n,this.location=r,this.errors=o}return ja(e,t),e.prototype.visit=function(t,e){return void 0===e&&(e=null),this.ast.visit(t,e)},e.prototype.toString=function(){return this.source+" in "+this.location},e}(Fa),au=function(){function t(t,e,n,r,i){this.span=t,this.key=e,this.keyIsVar=n,this.name=r,this.expression=i}return t}(),uu=function(){function t(){}return t.prototype.visitBinary=function(t){return t.left.visit(this),t.right.visit(this),null},t.prototype.visitChain=function(t,e){return this.visitAll(t.expressions,e)},t.prototype.visitConditional=function(t){return t.condition.visit(this),t.trueExp.visit(this),t.falseExp.visit(this),null},t.prototype.visitPipe=function(t,e){return t.exp.visit(this),this.visitAll(t.args,e),null},t.prototype.visitFunctionCall=function(t,e){return t.target.visit(this),this.visitAll(t.args,e),null},t.prototype.visitImplicitReceiver=function(){return null},t.prototype.visitInterpolation=function(t,e){return this.visitAll(t.expressions,e)},t.prototype.visitKeyedRead=function(t){return t.obj.visit(this),t.key.visit(this),null},t.prototype.visitKeyedWrite=function(t){return t.obj.visit(this),t.key.visit(this),t.value.visit(this),null},t.prototype.visitLiteralArray=function(t,e){return this.visitAll(t.expressions,e)},t.prototype.visitLiteralMap=function(t,e){return this.visitAll(t.values,e)},t.prototype.visitLiteralPrimitive=function(){return null},t.prototype.visitMethodCall=function(t,e){return t.receiver.visit(this),this.visitAll(t.args,e)},t.prototype.visitPrefixNot=function(t){return t.expression.visit(this),null},t.prototype.visitPropertyRead=function(t){return t.receiver.visit(this),null},t.prototype.visitPropertyWrite=function(t){return t.receiver.visit(this),t.value.visit(this),null},t.prototype.visitSafePropertyRead=function(t){return t.receiver.visit(this),null},t.prototype.visitSafeMethodCall=function(t,e){return t.receiver.visit(this),this.visitAll(t.args,e)},t.prototype.visitAll=function(t,e){var n=this;return t.forEach(function(t){return t.visit(n,e)}),null},t.prototype.visitQuote=function(){return null},t}(),cu=this&&this.__decorate||function(t,e,n,r){var i,o=arguments.length,s=3>o?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,r);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(3>o?i(s):o>3?i(e,n,s):i(e,n))||s);return o>3&&s&&Object.defineProperty(e,n,s),s},pu=this&&this.__metadata||function(t,e){return"object"==typeof Reflect&&"function"==typeof Reflect.metadata?Reflect.metadata(t,e):void 0},lu={};lu.Character=0,lu.Identifier=1,lu.Keyword=2,lu.String=3,lu.Operator=4,lu.Number=5,lu.Error=6,lu[lu.Character]="Character",lu[lu.Identifier]="Identifier",lu[lu.Keyword]="Keyword",lu[lu.String]="String",lu[lu.Operator]="Operator",lu[lu.Number]="Number",lu[lu.Error]="Error";var hu=["var","let","null","undefined","true","false","if","else","this"],fu=function(){function t(){}return t.prototype.tokenize=function(t){for(var e=new mu(t),n=[],r=e.scanToken();null!=r;)n.push(r),r=e.scanToken();return n},t=cu([M(),pu("design:paramtypes",[])],t)}(),du=function(){function t(t,e,n,r){this.index=t,this.type=e,this.numValue=n,this.strValue=r}return t.prototype.isCharacter=function(t){return this.type==lu.Character&&this.numValue==t},t.prototype.isNumber=function(){return this.type==lu.Number},t.prototype.isString=function(){return this.type==lu.String},t.prototype.isOperator=function(t){return this.type==lu.Operator&&this.strValue==t},t.prototype.isIdentifier=function(){return this.type==lu.Identifier},t.prototype.isKeyword=function(){return this.type==lu.Keyword},t.prototype.isKeywordLet=function(){return this.type==lu.Keyword&&"let"==this.strValue},t.prototype.isKeywordNull=function(){return this.type==lu.Keyword&&"null"==this.strValue},t.prototype.isKeywordUndefined=function(){return this.type==lu.Keyword&&"undefined"==this.strValue},t.prototype.isKeywordTrue=function(){return this.type==lu.Keyword&&"true"==this.strValue},t.prototype.isKeywordFalse=function(){return this.type==lu.Keyword&&"false"==this.strValue},t.prototype.isKeywordThis=function(){return this.type==lu.Keyword&&"this"==this.strValue},t.prototype.isError=function(){return this.type==lu.Error},t.prototype.toNumber=function(){return this.type==lu.Number?this.numValue:-1},t.prototype.toString=function(){switch(this.type){case lu.Character:case lu.Identifier:case lu.Keyword:case lu.Operator:case lu.String:case lu.Error:return this.strValue;case lu.Number:return this.numValue.toString();default:return null}},t}(),yu=new du(-1,lu.Character,0,""),mu=function(){function t(t){this.input=t,this.peek=0,this.index=-1,this.length=t.length,this.advance()}return t.prototype.advance=function(){this.peek=++this.index>=this.length?ks:this.input.charCodeAt(this.index)},t.prototype.scanToken=function(){for(var t=this.input,e=this.length,n=this.peek,r=this.index;Vs>=n;){if(++r>=e){n=ks;break}n=t.charCodeAt(r)}if(this.peek=n,this.index=r,r>=e)return null;if(U(n))return this.scanIdentifier();if(P(n))return this.scanNumber(r);var i=r;switch(n){case Zs:return this.advance(),P(this.peek)?this.scanNumber(i):N(i,Zs);case Gs:case Ks:case Oa:case Ma:case fa:case ya:case Ys:case ta:case ea:return this.scanCharacter(i,n);case Ws:case Us:return this.scanString();case Bs:case Qs:case $s:case Xs:case Js:case qs:case ma:return this.scanOperator(i,String.fromCharCode(n));case oa:return this.scanComplexOperator(i,"?",Zs,".");case na:case ia:return this.scanComplexOperator(i,String.fromCharCode(n),ra,"=");case Fs:case ra:return this.scanComplexOperator(i,String.fromCharCode(n),ra,"=",ra,"=");case zs:return this.scanComplexOperator(i,"&",zs,"&");case Aa:return this.scanComplexOperator(i,"|",Aa,"|");case Ra:for(;T(this.peek);)this.advance();return this.scanToken()}return this.advance(),this.error("Unexpected character ["+String.fromCharCode(n)+"]",0)},t.prototype.scanCharacter=function(t,e){return this.advance(),N(t,e)},t.prototype.scanOperator=function(t,e){return this.advance(),j(t,e)},t.prototype.scanComplexOperator=function(t,e,n,r,i,o){this.advance();var s=e;return this.peek==n&&(this.advance(),s+=r),null!=i&&this.peek==i&&(this.advance(),s+=o),j(t,s)},t.prototype.scanIdentifier=function(){var t=this.index;for(this.advance();H(this.peek);)this.advance();var e=this.input.substring(t,this.index);return hu.indexOf(e)>-1?D(t,e):I(t,e)},t.prototype.scanNumber=function(t){var e=this.index===t;for(this.advance();;){if(P(this.peek));else if(this.peek==Zs)e=!1;else{if(!q(this.peek))break;if(this.advance(),z(this.peek)&&this.advance(),!P(this.peek))return this.error("Invalid exponent",-1);e=!1}this.advance()}var n=this.input.substring(t,this.index),r=e?no.parseIntAutoRadix(n):parseFloat(n);return V(t,r)},t.prototype.scanString=function(){var t=this.index,e=this.peek;this.advance();for(var n="",r=this.index,i=this.input;this.peek!=e;)if(this.peek==da){n+=i.substring(r,this.index),this.advance();var o=void 0;if(this.peek==Ca){var s=i.substring(this.index+1,this.index+5);if(!/^[0-9a-f]+$/i.test(s))return this.error("Invalid unicode escape [\\u"+s+"]",0);o=parseInt(s,16);for(var a=0;5>a;a++)this.advance()}else o=G(this.peek),this.advance();n+=String.fromCharCode(o),r=this.index}else{if(this.peek==ks)return this.error("Unterminated quote",0);this.advance()}var u=i.substring(r,this.index);return this.advance(),L(t,n+u)},t.prototype.error=function(t,e){var n=this.index+e;return F(n,"Lexer Error: "+t+" at column "+n+" in expression ["+this.input+"]")},t}(),vu=this&&this.__decorate||function(t,e,n,r){var i,o=arguments.length,s=3>o?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,r);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(3>o?i(s):o>3?i(e,n,s):i(e,n))||s);return o>3&&s&&Object.defineProperty(e,n,s),s},gu=this&&this.__metadata||function(t,e){return"object"==typeof Reflect&&"function"==typeof Reflect.metadata?Reflect.metadata(t,e):void 0},_u=function(){function t(t,e,n){this.strings=t,this.expressions=e,this.offsets=n}return t}(),bu=function(){function t(t,e,n){this.templateBindings=t,this.warnings=e,this.errors=n}return t}(),wu=function(){function t(t){this._lexer=t,this.errors=[]}return t.prototype.parseAction=function(t,e,n){void 0===n&&(n=Da),this._checkNoInterpolation(t,e,n);var r=this._stripComments(t),i=this._lexer.tokenize(this._stripComments(t)),o=new Eu(t,e,i,r.length,!0,this.errors,t.length-r.length).parseChain();return new su(o,t,e,this.errors)},t.prototype.parseBinding=function(t,e,n){void 0===n&&(n=Da);var r=this._parseBindingAst(t,e,n);return new su(r,t,e,this.errors)},t.prototype.parseSimpleBinding=function(t,e,n){void 0===n&&(n=Da);var r=this._parseBindingAst(t,e,n),i=Su.check(r);return i.length>0&&this._reportError("Host binding expression cannot contain "+i.join(" "),t,e),new su(r,t,e,this.errors)},t.prototype._reportError=function(t,e,n,r){this.errors.push(new La(t,e,n,r))},t.prototype._parseBindingAst=function(t,e,n){var i=this._parseQuote(t,e);if(r(i))return i;this._checkNoInterpolation(t,e,n);var o=this._stripComments(t),s=this._lexer.tokenize(o);return new Eu(t,e,s,o.length,!1,this.errors,t.length-o.length).parseChain()},t.prototype._parseQuote=function(t,e){if(i(t))return null;var n=t.indexOf(":");if(-1==n)return null;var r=t.substring(0,n).trim();if(!B(r))return null;var o=t.substring(n+1);return new Ua(new Va(0,t.length),r,o,e)},t.prototype.parseTemplateBindings=function(t,e,n){var r=this._lexer.tokenize(e);if(t){var i=this._lexer.tokenize(t).map(function(t){return t.index=0,t});r.unshift.apply(r,i)}return new Eu(e,n,r,e.length,!1,this.errors,0).parseTemplateBindings()},t.prototype.parseInterpolation=function(t,e,n){void 0===n&&(n=Da);var r=this.splitInterpolation(t,e,n);if(null==r)return null;for(var o=[],s=0;s<r.expressions.length;++s){var a=r.expressions[s],u=this._stripComments(a),c=this._lexer.tokenize(this._stripComments(r.expressions[s])),p=new Eu(t,e,c,u.length,!1,this.errors,r.offsets[s]+(a.length-u.length)).parseChain();o.push(p)}return new su(new tu(new Va(0,i(t)?0:t.length),r.strings,o),t,e,this.errors)},t.prototype.splitInterpolation=function(t,e,n){void 0===n&&(n=Da);var r=K(n),i=t.split(r);if(i.length<=1)return null;for(var o=[],s=[],a=[],u=0,c=0;c<i.length;c++){var p=i[c];c%2===0?(o.push(p),u+=p.length):p.trim().length>0?(u+=n.start.length,s.push(p),a.push(u),u+=p.length+n.end.length):(this._reportError("Blank expressions are not allowed in interpolated strings",t,"at column "+this._findInterpolationErrorColumn(i,c,n)+" in",e),s.push("$implict"),a.push(u))}return new _u(o,s,a)},t.prototype.wrapLiteralPrimitive=function(t,e){return new su(new $a(new Va(0,i(t)?0:t.length),t),t,e,this.errors)},t.prototype._stripComments=function(t){var e=this._commentStart(t);return r(e)?t.substring(0,e).trim():t},t.prototype._commentStart=function(t){for(var e=null,n=0;n<t.length-1;n++){var r=t.charCodeAt(n),o=t.charCodeAt(n+1);if(r===Js&&o==Js&&i(e))return n;e===r?e=null:i(e)&&W(r)&&(e=r)}return null},t.prototype._checkNoInterpolation=function(t,e,n){var r=K(n),i=t.split(r);i.length>1&&this._reportError("Got interpolation ("+n.start+n.end+") where expression was expected",t,"at column "+this._findInterpolationErrorColumn(i,1,n)+" in",e)},t.prototype._findInterpolationErrorColumn=function(t,e,n){for(var r="",i=0;e>i;i++)r+=i%2===0?t[i]:""+n.start+t[i]+n.end;return r.length},t=vu([M(),gu("design:paramtypes",[fu])],t)}(),Eu=function(){function t(t,e,n,r,i,o,s){this.input=t,this.location=e,this.tokens=n,this.inputLength=r,this.parseAction=i,this.errors=o,this.offset=s,this.rparensExpected=0,this.rbracketsExpected=0,this.rbracesExpected=0,this.index=0}return t.prototype.peek=function(t){var e=this.index+t;return e<this.tokens.length?this.tokens[e]:yu},Object.defineProperty(t.prototype,"next",{get:function(){return this.peek(0)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"inputIndex",{get:function(){return this.index<this.tokens.length?this.next.index+this.offset:this.inputLength+this.offset},enumerable:!0,configurable:!0}),t.prototype.span=function(t){return new Va(t,this.inputIndex)},t.prototype.advance=function(){this.index++},t.prototype.optionalCharacter=function(t){return this.next.isCharacter(t)?(this.advance(),!0):!1},t.prototype.peekKeywordLet=function(){return this.next.isKeywordLet()},t.prototype.expectCharacter=function(t){this.optionalCharacter(t)||this.error("Missing expected "+String.fromCharCode(t))},t.prototype.optionalOperator=function(t){return this.next.isOperator(t)?(this.advance(),!0):!1},t.prototype.expectOperator=function(t){this.optionalOperator(t)||this.error("Missing expected operator "+t)},t.prototype.expectIdentifierOrKeyword=function(){var t=this.next;return t.isIdentifier()||t.isKeyword()?(this.advance(),t.toString()):(this.error("Unexpected token "+t+", expected identifier or keyword"),"")},t.prototype.expectIdentifierOrKeywordOrString=function(){var t=this.next;return t.isIdentifier()||t.isKeyword()||t.isString()?(this.advance(),t.toString()):(this.error("Unexpected token "+t+", expected identifier, keyword, or string"),"")},t.prototype.parseChain=function(){for(var t=[],e=this.inputIndex;this.index<this.tokens.length;){var n=this.parsePipe();if(t.push(n),this.optionalCharacter(ea))for(this.parseAction||this.error("Binding expression cannot contain chained expression");this.optionalCharacter(ea););else this.index<this.tokens.length&&this.error("Unexpected token '"+this.next+"'")}return 0==t.length?new Ba(this.span(e)):1==t.length?t[0]:new qa(this.span(e),t)},t.prototype.parsePipe=function(){var t=this.parseExpression();if(this.optionalOperator("|")){this.parseAction&&this.error("Cannot have a pipe in an action expression");do{for(var e=this.expectIdentifierOrKeyword(),n=[];this.optionalCharacter(ta);)n.push(this.parseExpression());t=new Ya(this.span(t.span.start),t,e,n)}while(this.optionalOperator("|"))}return t},t.prototype.parseExpression=function(){return this.parseConditional()},t.prototype.parseConditional=function(){var t=this.inputIndex,e=this.parseLogicalOr();if(this.optionalOperator("?")){var n=this.parsePipe(),r=void 0;if(this.optionalCharacter(ta))r=this.parsePipe();else{var i=this.inputIndex,o=this.input.substring(t,i);this.error("Conditional expression "+o+" requires all 3 expressions"),r=new Ba(this.span(t))}return new za(this.span(t),e,n,r)}return e},t.prototype.parseLogicalOr=function(){for(var t=this.parseLogicalAnd();this.optionalOperator("||");){var e=this.parseLogicalAnd();t=new eu(this.span(t.span.start),"||",t,e)}return t},t.prototype.parseLogicalAnd=function(){for(var t=this.parseEquality();this.optionalOperator("&&");){var e=this.parseEquality();t=new eu(this.span(t.span.start),"&&",t,e)}return t},t.prototype.parseEquality=function(){for(var t=this.parseRelational();this.next.type==lu.Operator;){var e=this.next.strValue;switch(e){case"==":case"===":case"!=":case"!==":this.advance();var n=this.parseRelational();t=new eu(this.span(t.span.start),e,t,n);continue}break}return t},t.prototype.parseRelational=function(){for(var t=this.parseAdditive();this.next.type==lu.Operator;){var e=this.next.strValue;switch(e){case"<":case">":case"<=":case">=":this.advance();var n=this.parseAdditive();t=new eu(this.span(t.span.start),e,t,n);continue}break}return t},t.prototype.parseAdditive=function(){for(var t=this.parseMultiplicative();this.next.type==lu.Operator;){var e=this.next.strValue;switch(e){case"+":case"-":this.advance();var n=this.parseMultiplicative();t=new eu(this.span(t.span.start),e,t,n);continue}break}return t},t.prototype.parseMultiplicative=function(){for(var t=this.parsePrefix();this.next.type==lu.Operator;){var e=this.next.strValue;switch(e){case"*":case"%":case"/":this.advance();var n=this.parsePrefix();t=new eu(this.span(t.span.start),e,t,n);continue}break}return t},t.prototype.parsePrefix=function(){if(this.next.type==lu.Operator){var t=this.inputIndex,e=this.next.strValue,n=void 0;switch(e){case"+":return this.advance(),this.parsePrefix();case"-":return this.advance(),n=this.parsePrefix(),new eu(this.span(t),e,new $a(new Va(t,t),0),n);case"!":return this.advance(),n=this.parsePrefix(),new nu(this.span(t),n)}}return this.parseCallChain()},t.prototype.parseCallChain=function(){for(var t=this.parsePrimary();;)if(this.optionalCharacter(Zs))t=this.parseAccessMemberOrMethodCall(t,!1);else if(this.optionalOperator("?."))t=this.parseAccessMemberOrMethodCall(t,!0);else if(this.optionalCharacter(fa)){this.rbracketsExpected++;var e=this.parsePipe();if(this.rbracketsExpected--,this.expectCharacter(ya),this.optionalOperator("=")){var n=this.parseConditional();t=new Qa(this.span(t.span.start),t,e,n)}else t=new Xa(this.span(t.span.start),t,e)}else{if(!this.optionalCharacter(Gs))return t;this.rparensExpected++;var r=this.parseCallArguments();this.rparensExpected--,this.expectCharacter(Ks),t=new ou(this.span(t.span.start),t,r)}},t.prototype.parsePrimary=function(){var t=this.inputIndex;if(this.optionalCharacter(Gs)){this.rparensExpected++;var e=this.parsePipe();return this.rparensExpected--,this.expectCharacter(Ks),e}if(this.next.isKeywordNull())return this.advance(),new $a(this.span(t),null);if(this.next.isKeywordUndefined())return this.advance(),new $a(this.span(t),void 0);if(this.next.isKeywordTrue())return this.advance(),new $a(this.span(t),!0);if(this.next.isKeywordFalse())return this.advance(),new $a(this.span(t),!1);if(this.next.isKeywordThis())return this.advance(),new Ha(this.span(t));if(this.optionalCharacter(fa)){this.rbracketsExpected++;var n=this.parseExpressionList(ya);return this.rbracketsExpected--,this.expectCharacter(ya),new Za(this.span(t),n)}if(this.next.isCharacter(Oa))return this.parseLiteralMap();if(this.next.isIdentifier())return this.parseAccessMemberOrMethodCall(new Ha(this.span(t)),!1);if(this.next.isNumber()){var r=this.next.toNumber();return this.advance(),new $a(this.span(t),r)}if(this.next.isString()){var i=this.next.toString();return this.advance(),new $a(this.span(t),i)}return this.index>=this.tokens.length?(this.error("Unexpected end of expression: "+this.input),new Ba(this.span(t))):(this.error("Unexpected token "+this.next),new Ba(this.span(t)))},t.prototype.parseExpressionList=function(t){var e=[];if(!this.next.isCharacter(t))do e.push(this.parsePipe());while(this.optionalCharacter(Ys));return e},t.prototype.parseLiteralMap=function(){var t=[],e=[],n=this.inputIndex;if(this.expectCharacter(Oa),!this.optionalCharacter(Ma)){this.rbracesExpected++;do{var r=this.expectIdentifierOrKeywordOrString();t.push(r),this.expectCharacter(ta),e.push(this.parsePipe())}while(this.optionalCharacter(Ys));this.rbracesExpected--,this.expectCharacter(Ma)}return new Ja(this.span(n),t,e)},t.prototype.parseAccessMemberOrMethodCall=function(t,e){void 0===e&&(e=!1);var n=t.span.start,r=this.expectIdentifierOrKeyword();if(this.optionalCharacter(Gs)){this.rparensExpected++;var i=this.parseCallArguments();this.expectCharacter(Ks),this.rparensExpected--;var o=this.span(n);return e?new iu(o,t,r,i):new ru(o,t,r,i)}if(e)return this.optionalOperator("=")?(this.error("The '?.' operator cannot be used in the assignment"),new Ba(this.span(n))):new Ka(this.span(n),t,r);if(this.optionalOperator("=")){if(!this.parseAction)return this.error("Bindings cannot contain assignments"),new Ba(this.span(n));var s=this.parseConditional();return new Ga(this.span(n),t,r,s)}return new Wa(this.span(n),t,r)},t.prototype.parseCallArguments=function(){if(this.next.isCharacter(Ks))return[];var t=[];do t.push(this.parsePipe());while(this.optionalCharacter(Ys));return t},t.prototype.expectTemplateBindingKey=function(){var t="",e=!1;do t+=this.expectIdentifierOrKeywordOrString(),e=this.optionalOperator("-"),e&&(t+="-");while(e);return t.toString()},t.prototype.parseTemplateBindings=function(){for(var t=[],e=null,n=[];this.index<this.tokens.length;){var r=this.inputIndex,i=this.peekKeywordLet();i&&this.advance();var o=this.expectTemplateBindingKey();i||(null==e?e=o:o=e+o[0].toUpperCase()+o.substring(1)),this.optionalCharacter(ta);var s=null,a=null;if(i)s=this.optionalOperator("=")?this.expectTemplateBindingKey():"$implicit";else if(this.next!==yu&&!this.peekKeywordLet()){var u=this.inputIndex,c=this.parsePipe(),p=this.input.substring(u-this.offset,this.inputIndex-this.offset);a=new su(c,p,this.location,this.errors)}t.push(new au(this.span(r),o,i,s,a)),this.optionalCharacter(ea)||this.optionalCharacter(Ys)}return new bu(t,n,this.errors)},t.prototype.error=function(t,e){void 0===e&&(e=null),this.errors.push(new La(t,this.input,this.locationText(e),this.location)),this.skip()},t.prototype.locationText=function(t){return void 0===t&&(t=null),i(t)&&(t=this.index),t<this.tokens.length?"at column "+(this.tokens[t].index+1)+" in":"at the end of the expression"},t.prototype.skip=function(){for(var t=this.next;this.index<this.tokens.length&&!t.isCharacter(ea)&&(this.rparensExpected<=0||!t.isCharacter(Ks))&&(this.rbracesExpected<=0||!t.isCharacter(Ma))&&(this.rbracketsExpected<=0||!t.isCharacter(ya));)this.next.isError()&&this.errors.push(new La(this.next.toString(),this.input,this.locationText(),this.location)),this.advance(),t=this.next},t}(),Su=function(){function t(){this.errors=[]}return t.check=function(e){var n=new t;return e.visit(n),n.errors},t.prototype.visitImplicitReceiver=function(){},t.prototype.visitInterpolation=function(){},t.prototype.visitLiteralPrimitive=function(){},t.prototype.visitPropertyRead=function(){},t.prototype.visitPropertyWrite=function(){},t.prototype.visitSafePropertyRead=function(){},t.prototype.visitMethodCall=function(){},t.prototype.visitSafeMethodCall=function(){},t.prototype.visitFunctionCall=function(){},t.prototype.visitLiteralArray=function(t){this.visitAll(t.expressions)},t.prototype.visitLiteralMap=function(t){this.visitAll(t.values)},t.prototype.visitBinary=function(){},t.prototype.visitPrefixNot=function(){},t.prototype.visitConditional=function(){},t.prototype.visitPipe=function(){this.errors.push("pipes")},t.prototype.visitKeyedRead=function(){},t.prototype.visitKeyedWrite=function(){},t.prototype.visitAll=function(t){var e=this;return t.map(function(t){return t.visit(e)})},t.prototype.visitChain=function(){},t.prototype.visitQuote=function(){},t}(),Cu=function(){function t(t,e,n,r){this.file=t,this.offset=e,this.line=n,this.col=r}return t.prototype.toString=function(){return r(this.offset)?this.file.url+"@"+this.line+":"+this.col:this.file.url},t.prototype.moveBy=function(e){for(var n=this.file.content,r=n.length,i=this.offset,o=this.line,s=this.col;i>0&&0>e;){i--,e++;var a=n.charCodeAt(i);if(a==Is){o--;var u=n.substr(0,i-1).lastIndexOf(String.fromCharCode(Is));s=u>0?i-u:i}else s--}for(;r>i&&e>0;){var a=n.charCodeAt(i);i++,e--,a==Is?(o++,s=0):s++}return new t(this.file,i,o,s)},t.prototype.getContext=function(t,e){var n=this.file.content,i=this.offset;if(r(i)){i>n.length-1&&(i=n.length-1);for(var o=i,s=0,a=0;t>s&&i>0&&(i--,s++,"\n"!=n[i]||++a!=e););for(s=0,a=0;t>s&&o<n.length-1&&(o++,s++,"\n"!=n[o]||++a!=e););return{before:n.substring(i,this.offset),after:n.substring(this.offset,o+1)}}return null},t}(),xu=function(){function t(t,e){this.content=t,this.url=e}return t}(),Tu=function(){function t(t,e,n){void 0===n&&(n=null),this.start=t,this.end=e,this.details=n}return t.prototype.toString=function(){return this.start.file.content.substring(this.start.offset,this.end.offset)},t}(),Pu={};Pu.WARNING=0,Pu.FATAL=1,Pu[Pu.WARNING]="WARNING",Pu[Pu.FATAL]="FATAL";var Ou=function(){function t(t,e,n){void 0===n&&(n=Pu.FATAL),this.span=t,this.msg=e,this.level=n}return t.prototype.toString=function(){var t=this.span.start.getContext(100,3),e=t?' ("'+t.before+"[ERROR ->]"+t.after+'")':"",n=this.span.details?", "+this.span.details:"";return""+this.msg+e+": "+this.span.start+n},t}(),Au=function(){function t(t,e){this.value=t,this.sourceSpan=e}return t.prototype.visit=function(t,e){return t.visitText(this,e)},t}(),Mu=function(){function t(t,e,n,r,i){this.switchValue=t,this.type=e,this.cases=n,this.sourceSpan=r,this.switchValueSourceSpan=i}return t.prototype.visit=function(t,e){return t.visitExpansion(this,e)},t}(),Ru=function(){function t(t,e,n,r,i){this.value=t,this.expression=e,this.sourceSpan=n,this.valueSourceSpan=r,this.expSourceSpan=i}return t.prototype.visit=function(t,e){return t.visitExpansionCase(this,e)},t}(),ku=function(){function t(t,e,n,r){this.name=t,this.value=e,this.sourceSpan=n,this.valueSpan=r}return t.prototype.visit=function(t,e){return t.visitAttribute(this,e); -},0);if(1==r)for(var i=this._messages.length-1;i>=n;i--){var o=this._messages[i].nodes;if(!(1==o.length&&o[0]instanceof Qu)){this._messages.splice(i,1);break}}this._msgCountAtSectionStart=void 0},t.prototype._reportError=function(t,e){this._errors.push(new ac(t.sourceSpan,e))},t}(),dc=function(){function t(){this.closedByParent=!1,this.contentType=Go.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}(),yc=new dc,mc=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},vc=function(t){function e(){t.call(this,vt)}return mc(e,t),e.prototype.parse=function(e,n,r){return void 0===r&&(r=!1),t.prototype.parse.call(this,e,n,r,null)},e}(Gu),gc=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},_c=function(){function t(){}return t.prototype.visitText=function(t){return t.value},t.prototype.visitContainer=function(t){var e=this;return"["+t.children.map(function(t){return t.visit(e)}).join(", ")+"]"},t.prototype.visitIcu=function(t){var e=this,n=Object.keys(t.cases).map(function(n){return n+" {"+t.cases[n].visit(e)+"}"});return"{"+t.expression+", "+t.type+", "+n.join(", ")+"}"},t.prototype.visitTagPlaceholder=function(t){var e=this;return t.isVoid?'<ph tag name="'+t.startName+'"/>':'<ph tag name="'+t.startName+'">'+t.children.map(function(t){return t.visit(e)}).join(", ")+'</ph name="'+t.closeName+'">'},t.prototype.visitPlaceholder=function(t){return t.value?'<ph name="'+t.name+'">'+t.value+"</ph>":'<ph name="'+t.name+'"/>'},t.prototype.visitIcuPlaceholder=function(t){return'<ph icu name="'+t.name+'">'+t.value.visit(this)+"</ph>"},t}(),bc=new _c,wc=function(t){function e(){t.apply(this,arguments)}return gc(e,t),e.prototype.visitIcu=function(t){var e=this,n=Object.keys(t.cases).map(function(n){return n+" {"+t.cases[n].visit(e)+"}"});return"{"+t.type+", "+n.join(", ")+"}"},e}(_c),Ec={};Ec.Little=0,Ec.Big=1,Ec[Ec.Little]="Little",Ec[Ec.Big]="Big";var Sc=function(){function t(){}return t.prototype.write=function(){},t.prototype.load=function(){},t.prototype.digest=function(){},t.prototype.createNameMapper=function(){return null},t}(),Cc=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},xc=function(){function t(){}return t.prototype.visitTag=function(t){var e=this,n=this._serializeAttributes(t.attrs);if(0==t.children.length)return"<"+t.name+n+"/>";var r=t.children.map(function(t){return t.visit(e)});return"<"+t.name+n+">"+r.join("")+"</"+t.name+">"},t.prototype.visitText=function(t){return t.value},t.prototype.visitDeclaration=function(t){return"<?xml"+this._serializeAttributes(t.attrs)+" ?>"},t.prototype._serializeAttributes=function(t){var e=Object.keys(t).map(function(e){return e+'="'+t[e]+'"'}).join(" ");return e.length>0?" "+e:""},t.prototype.visitDoctype=function(t){return"<!DOCTYPE "+t.rootTag+" [\n"+t.dtd+"\n]>"},t}(),Tc=new xc,Pc=function(){function t(t){var e=this;this.attrs={},Object.keys(t).forEach(function(n){e.attrs[n]=Wt(t[n])})}return t.prototype.visit=function(t){return t.visitDeclaration(this)},t}(),Oc=function(){function t(t,e){this.rootTag=t,this.dtd=e}return t.prototype.visit=function(t){return t.visitDoctype(this)},t}(),Ac=function(){function t(t,e,n){var r=this;void 0===e&&(e={}),void 0===n&&(n=[]),this.name=t,this.children=n,this.attrs={},Object.keys(e).forEach(function(t){r.attrs[t]=Wt(e[t])})}return t.prototype.visit=function(t){return t.visitTag(this)},t}(),Mc=function(){function t(t){this.value=Wt(t)}return t.prototype.visit=function(t){return t.visitText(this)},t}(),Rc=function(t){function e(e){void 0===e&&(e=0),t.call(this,"\n"+new Array(e+1).join(" "))}return Cc(e,t),e}(Mc),kc=[[/&/g,"&"],[/"/g,"""],[/'/g,"'"],[/</g,"<"],[/>/g,">"]],Nc=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},Ic="1.2",Dc="urn:oasis:names:tc:xliff:document:1.2",jc="en",Lc="x",Vc="source",Fc="target",Uc="trans-unit",Bc=function(t){function e(){t.apply(this,arguments)}return Nc(e,t),e.prototype.write=function(t){var e=this,n=new Hc,r={},i=[];t.forEach(function(t){var o=e.digest(t);if(!r[o]){r[o]=!0;var s=new Ac(Uc,{id:o,datatype:"html"});s.children.push(new Rc(8),new Ac(Vc,{},n.serialize(t.nodes)),new Rc(8),new Ac(Fc)),t.description&&s.children.push(new Rc(8),new Ac("note",{priority:"1",from:"description"},[new Mc(t.description)])),t.meaning&&s.children.push(new Rc(8),new Ac("note",{priority:"1",from:"meaning"},[new Mc(t.meaning)])),s.children.push(new Rc(6)),i.push(new Rc(6),s)}});var o=new Ac("body",{},i.concat([new Rc(4)])),s=new Ac("file",{"source-language":jc,datatype:"plaintext",original:"ng2.template"},[new Rc(4),o,new Rc(2)]),a=new Ac("xliff",{version:Ic,xmlns:Dc},[new Rc(2),s,new Rc]);return zt([new Pc({version:"1.0",encoding:"UTF-8"}),new Rc,a,new Rc])},e.prototype.load=function(t,e){var n=new qc,r=n.parse(t,e),i=r.mlNodesByMsgId,o=r.errors,s={},a=new zc;if(Object.keys(i).forEach(function(t){var e=a.convert(i[t]),n=e.i18nNodes,r=e.errors;o.push.apply(o,r),s[t]=n}),o.length)throw new Error("xliff parse errors:\n"+o.join("\n"));return s},e.prototype.digest=function(t){return gt(t)},e}(Sc),Hc=function(){function t(){}return t.prototype.visitText=function(t){return[new Mc(t.value)]},t.prototype.visitContainer=function(t){var e=this,n=[];return t.children.forEach(function(t){return n.push.apply(n,t.visit(e))}),n},t.prototype.visitIcu=function(){if(this._isInIcu)throw new Error("xliff does not support nested ICU messages");this._isInIcu=!0;var t=[];return this._isInIcu=!1,t},t.prototype.visitTagPlaceholder=function(t){var e=Gt(t.tag),n=new Ac(Lc,{id:t.startName,ctype:e});if(t.isVoid)return[n];var r=new Ac(Lc,{id:t.closeName,ctype:e});return[n].concat(this.serialize(t.children),[r])},t.prototype.visitPlaceholder=function(t){return[new Ac(Lc,{id:t.name})]},t.prototype.visitIcuPlaceholder=function(t){return[new Ac(Lc,{id:t.name})]},t.prototype.serialize=function(t){var e=this;return this._isInIcu=!1,(n=[]).concat.apply(n,t.map(function(t){return t.visit(e)}));var n},t}(),qc=function(){function t(){}return t.prototype.parse=function(t,e){this._unitMlNodes=[],this._mlNodesByMsgId={};var n=(new vc).parse(t,e,!1);return this._errors=n.errors,X(this,n.rootNodes,null),{mlNodesByMsgId:this._mlNodesByMsgId,errors:this._errors}},t.prototype.visitElement=function(t){switch(t.name){case Uc:this._unitMlNodes=null;var e=t.attrs.find(function(t){return"id"===t.name});if(e){var n=e.value;this._mlNodesByMsgId.hasOwnProperty(n)?this._addError(t,"Duplicated translations for msg "+n):(X(this,t.children,null),this._unitMlNodes?this._mlNodesByMsgId[n]=this._unitMlNodes:this._addError(t,"Message "+n+" misses a translation"))}else this._addError(t,"<"+Uc+'> misses the "id" attribute');break;case Vc:break;case Fc:this._unitMlNodes=t.children;break;default:X(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 ac(t.sourceSpan,e))},t}(),zc=function(){function t(){}return t.prototype.convert=function(t){return this._errors=[],{i18nNodes:X(this,t),errors:this._errors}},t.prototype.visitText=function(t){return new Qu(t.value,t.sourceSpan)},t.prototype.visitElement=function(t){if(t.name===Lc){var e=t.attrs.find(function(t){return"id"===t.name});if(e)return new Ju("",e.value,t.sourceSpan);this._addError(t,"<"+Lc+'> 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 ac(t.sourceSpan,e))},t}(),Wc=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},Gc="messagebundle",Kc="msg",Xc="ph",Qc="ex",Yc='<!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)>',$c=function(t){function e(){t.apply(this,arguments)}return Wc(e,t),e.prototype.write=function(t){var e=this,n=new Jc,r=new Zc,i={},o=new Ac(Gc);return t.forEach(function(t){var n=e.digest(t);if(!i[n]){i[n]=!0;var s=e.createNameMapper(t),a={id:n};t.description&&(a.desc=t.description),t.meaning&&(a.meaning=t.meaning),o.children.push(new Rc(2),new Ac(Kc,a,r.serialize(t.nodes,{mapper:s})))}}),o.children.push(new Rc),zt([new Pc({version:"1.0",encoding:"UTF-8"}),new Rc,new Oc(Gc,Yc),new Rc,n.addDefaultExamples(o),new Rc])},e.prototype.load=function(){throw new Error("Unsupported")},e.prototype.digest=function(t){return Kt(t)},e.prototype.createNameMapper=function(t){return new tp(t)},e}(Sc),Zc=function(){function t(){}return t.prototype.visitText=function(t){return[new Mc(t.value)]},t.prototype.visitContainer=function(t,e){var n=this,r=[];return t.children.forEach(function(t){return r.push.apply(r,t.visit(n,e))}),r},t.prototype.visitIcu=function(t,e){var n=this,r=[new Mc("{"+t.expressionPlaceholder+", "+t.type+", ")];return Object.keys(t.cases).forEach(function(i){r.push.apply(r,[new Mc(i+" {")].concat(t.cases[i].visit(n,e),[new Mc("} ")]))}),r.push(new Mc("}")),r},t.prototype.visitTagPlaceholder=function(t,e){var n=new Ac(Qc,{},[new Mc("<"+t.tag+">")]),r=e.mapper.toPublicName(t.startName),i=new Ac(Xc,{name:r},[n]);if(t.isVoid)return[i];var o=new Ac(Qc,{},[new Mc("</"+t.tag+">")]);r=e.mapper.toPublicName(t.closeName);var s=new Ac(Xc,{name:r},[o]);return[i].concat(this.serialize(t.children,e),[s])},t.prototype.visitPlaceholder=function(t,e){var n=e.mapper.toPublicName(t.name);return[new Ac(Xc,{name:n})]},t.prototype.visitIcuPlaceholder=function(t,e){var n=e.mapper.toPublicName(t.name);return[new Ac(Xc,{name:n})]},t.prototype.serialize=function(t,e){var n=this;return(r=[]).concat.apply(r,t.map(function(t){return t.visit(n,e)}));var r},t}(),Jc=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===Xc){if(!t.children||0==t.children.length){var n=new Mc(t.attrs.name||"...");t.children=[new Ac(Qc,{},[n])]}}else t.children&&t.children.forEach(function(t){return t.visit(e)})},t.prototype.visitText=function(){},t.prototype.visitDeclaration=function(){},t.prototype.visitDoctype=function(){},t}(),tp=function(){function t(t){var e=this;this.internalToXmb={},this.xmbToNextId={},this.xmbToInternal={},t.nodes.forEach(function(t){return t.visit(e)})}return t.prototype.toPublicName=function(t){return this.internalToXmb.hasOwnProperty(t)?this.internalToXmb[t]:null},t.prototype.toInternalName=function(t){return this.xmbToInternal.hasOwnProperty(t)?this.xmbToInternal[t]:null},t.prototype.visitText=function(){return null},t.prototype.visitContainer=function(t){var e=this;t.children.forEach(function(t){return t.visit(e)})},t.prototype.visitIcu=function(t){var e=this;Object.keys(t.cases).forEach(function(n){t.cases[n].visit(e)})},t.prototype.visitTagPlaceholder=function(t){var e=this;this.addPlaceholder(t.startName),t.children.forEach(function(t){return t.visit(e)}),this.addPlaceholder(t.closeName)},t.prototype.visitPlaceholder=function(t){this.addPlaceholder(t.name)},t.prototype.visitIcuPlaceholder=function(t){this.addPlaceholder(t.name)},t.prototype.addPlaceholder=function(t){if(t&&!this.internalToXmb.hasOwnProperty(t)){var e=t.toUpperCase().replace(/[^A-Z0-9_]/g,"_");if(this.xmbToInternal.hasOwnProperty(e)){var n=this.xmbToNextId[e];this.xmbToNextId[e]=n+1,e=e+"_"+n}else this.xmbToNextId[e]=1;this.internalToXmb[t]=e,this.xmbToInternal[e]=t}},t}(),ep=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},np="translationbundle",rp="translation",ip="ph",op=function(t){function e(){t.apply(this,arguments)}return ep(e,t),e.prototype.write=function(){throw new Error("Unsupported")},e.prototype.load=function(t,e){var n=new sp,r=n.parse(t,e),i=r.mlNodesByMsgId,o=r.errors,s={},a=new ap;if(Object.keys(i).forEach(function(t){var e=a.convert(i[t]),n=e.i18nNodes,r=e.errors;o.push.apply(o,r),s[t]=n}),o.length)throw new Error("xtb parse errors:\n"+o.join("\n"));return s},e.prototype.digest=function(t){return Kt(t)},e.prototype.createNameMapper=function(t){return new tp(t)},e}(Sc),sp=function(){function t(){}return t.prototype.parse=function(t,e){this._bundleDepth=0,this._mlNodesByMsgId={};var n=(new vc).parse(t,e,!0);return this._errors=n.errors,X(this,n.rootNodes),{mlNodesByMsgId:this._mlNodesByMsgId,errors:this._errors}},t.prototype.visitElement=function(t){switch(t.name){case np:this._bundleDepth++,this._bundleDepth>1&&this._addError(t,"<"+np+"> elements can not be nested"),X(this,t.children,null),this._bundleDepth--;break;case rp:var e=t.attrs.find(function(t){return"id"===t.name});if(e){var n=e.value;this._mlNodesByMsgId.hasOwnProperty(n)?this._addError(t,"Duplicated translations for msg "+n):this._mlNodesByMsgId[n]=t.children}else this._addError(t,"<"+rp+'> 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 ac(t.sourceSpan,e))},t}(),ap=function(){function t(){}return t.prototype.convert=function(t){return this._errors=[],{i18nNodes:X(this,t),errors:this._errors}},t.prototype.visitText=function(t){return new Qu(t.value,t.sourceSpan)},t.prototype.visitExpansion=function(t){var e={};return X(this,t.cases).forEach(function(n){e[n.value]=new Yu(n.nodes,t.sourceSpan)}),new $u(t.switchValue,t.type,e,t.sourceSpan)},t.prototype.visitExpansionCase=function(t){return{value:t.value,nodes:X(this,t.expression)}},t.prototype.visitElement=function(t){if(t.name===ip){var e=t.attrs.find(function(t){return"name"===t.name});if(e)return new Ju("",e.value,t.sourceSpan);this._addError(t,"<"+ip+'> 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 ac(t.sourceSpan,e))},t}(),up=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},cp=this&&this.__decorate||function(t,e,n,r){var i,o=arguments.length,s=3>o?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,r);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(3>o?i(s):o>3?i(e,n,s):i(e,n))||s);return o>3&&s&&Object.defineProperty(e,n,s),s},pp=this&&this.__metadata||function(t,e){return"object"==typeof Reflect&&"function"==typeof Reflect.metadata?Reflect.metadata(t,e):void 0},lp=function(t){function e(){t.call(this,f)}return up(e,t),e.prototype.parse=function(e,n,r,i){return void 0===r&&(r=!1),void 0===i&&(i=Da),t.prototype.parse.call(this,e,n,r,i)},e=cp([M(),pp("design:paramtypes",[])],e)}(Gu),hp=function(){function t(t,e,n){void 0===t&&(t={}),this._i18nNodesByMsgId=t,this.digest=e,this.mapperFactory=n,this._i18nToHtml=new fp(t,e,n)}return t.load=function(e,n,r){var i=r.load(e,n),o=function(t){return r.digest(t)},s=function(t){return r.createNameMapper(t)};return new t(i,o,s)},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}(),fp=function(){function t(t,e,n){void 0===t&&(t={}),this._i18nNodesByMsgId=t,this._digest=e,this._mapperFactory=n,this._contextStack=[],this._errors=[]}return t.prototype.convert=function(t){this._contextStack.length=0,this._errors.length=0;var e=this._convertToText(t),n=t.nodes[0].sourceSpan.start.file.url,r=(new lp).parse(e,n,!0);return{nodes:r.rootNodes,errors:this._errors.concat(r.errors)}},t.prototype.visitText=function(t){return t.value},t.prototype.visitContainer=function(t){var e=this;return t.children.map(function(t){return t.visit(e)}).join("")},t.prototype.visitIcu=function(t){var e=this,n=Object.keys(t.cases).map(function(n){return n+" {"+t.cases[n].visit(e)+"}"}),r=this._srcMsg.placeholders.hasOwnProperty(t.expression)?this._srcMsg.placeholders[t.expression]:t.expression;return"{"+r+", "+t.type+", "+n.join(" ")+"}"},t.prototype.visitPlaceholder=function(t){var e=this._mapper(t.name);return this._srcMsg.placeholders.hasOwnProperty(e)?this._srcMsg.placeholders[e]:this._srcMsg.placeholderToMessage.hasOwnProperty(e)?this._convertToText(this._srcMsg.placeholderToMessage[e]):(this._addError(t,"Unknown placeholder"),"")},t.prototype.visitTagPlaceholder=function(){throw"unreachable code"},t.prototype.visitIcuPlaceholder=function(){throw"unreachable code"},t.prototype._convertToText=function(t){var e=this,n=this._digest(t),r=this._mapperFactory?this._mapperFactory(t):null;if(this._i18nNodesByMsgId.hasOwnProperty(n)){this._contextStack.push({msg:this._srcMsg,mapper:this._mapper}),this._srcMsg=t,this._mapper=function(t){return r?r.toInternalName(t):t};var i=this._i18nNodesByMsgId[n],o=i.map(function(t){return t.visit(e)}).join(""),s=this._contextStack.pop();return this._srcMsg=s.msg,this._mapper=s.mapper,o}return this._addError(t.nodes[0],"Missing translation for message "+n),""},t.prototype._addError=function(t,e){this._errors.push(new ac(t.sourceSpan,e))},t}(),dp=function(){function t(t,e,n){this._htmlParser=t,this._translations=e,this._translationsFormat=n}return t.prototype.parse=function(t,e,n,r){void 0===n&&(n=!1),void 0===r&&(r=Da);var i=this._htmlParser.parse(t,e,n,r);if(!this._translations||""===this._translations)return i;if(i.errors.length)return new Wu(i.rootNodes,i.errors);var o=this._createSerializer(),s=hp.load(this._translations,e,o);return ht(i.rootNodes,s,r,[],{})},t.prototype._createSerializer=function(){var t=(this._translationsFormat||"xlf").toLowerCase();switch(t){case"xmb":return new $c;case"xtb":return new op;case"xliff":case"xlf":default:return new Bc}},t}(),yp=Xt("core","linker/view"),mp=Xt("core","linker/view_utils"),vp=Xt("core","change_detection/change_detection"),gp=Xt("core","animation/animation_style_util"),_p=function(){function t(){}return t.ANALYZE_FOR_ENTRY_COMPONENTS={name:"ANALYZE_FOR_ENTRY_COMPONENTS",moduleUrl:Xt("core","metadata/di"),runtime:e.ANALYZE_FOR_ENTRY_COMPONENTS},t.ViewUtils={name:"ViewUtils",moduleUrl:Xt("core","linker/view_utils"),runtime:_o.ViewUtils},t.AppView={name:"AppView",moduleUrl:yp,runtime:fo},t.DebugAppView={name:"DebugAppView",moduleUrl:yp,runtime:yo},t.ViewContainer={name:"ViewContainer",moduleUrl:Xt("core","linker/view_container"),runtime:po},t.ElementRef={name:"ElementRef",moduleUrl:Xt("core","linker/element_ref"),runtime:e.ElementRef},t.ViewContainerRef={name:"ViewContainerRef",moduleUrl:Xt("core","linker/view_container_ref"),runtime:e.ViewContainerRef},t.ChangeDetectorRef={name:"ChangeDetectorRef",moduleUrl:Xt("core","change_detection/change_detector_ref"),runtime:e.ChangeDetectorRef},t.RenderComponentType={name:"RenderComponentType",moduleUrl:Xt("core","render/api"),runtime:e.RenderComponentType},t.QueryList={name:"QueryList",moduleUrl:Xt("core","linker/query_list"),runtime:e.QueryList},t.TemplateRef={name:"TemplateRef",moduleUrl:Xt("core","linker/template_ref"),runtime:e.TemplateRef},t.TemplateRef_={name:"TemplateRef_",moduleUrl:Xt("core","linker/template_ref"),runtime:xo},t.CodegenComponentFactoryResolver={name:"CodegenComponentFactoryResolver",moduleUrl:Xt("core","linker/component_factory_resolver"),runtime:lo},t.ComponentFactoryResolver={name:"ComponentFactoryResolver",moduleUrl:Xt("core","linker/component_factory_resolver"),runtime:e.ComponentFactoryResolver},t.ComponentFactory={name:"ComponentFactory",runtime:e.ComponentFactory,moduleUrl:Xt("core","linker/component_factory")},t.ComponentRef_={name:"ComponentRef_",runtime:ho,moduleUrl:Xt("core","linker/component_factory")},t.ComponentRef={name:"ComponentRef",runtime:e.ComponentRef,moduleUrl:Xt("core","linker/component_factory")},t.NgModuleFactory={name:"NgModuleFactory",runtime:e.NgModuleFactory,moduleUrl:Xt("core","linker/ng_module_factory")},t.NgModuleInjector={name:"NgModuleInjector",runtime:mo,moduleUrl:Xt("core","linker/ng_module_factory")},t.RegisterModuleFactoryFn={name:"registerModuleFactory",runtime:vo,moduleUrl:Xt("core","linker/ng_module_factory_loader")},t.ValueUnwrapper={name:"ValueUnwrapper",moduleUrl:vp,runtime:Co},t.Injector={name:"Injector",moduleUrl:Xt("core","di/injector"),runtime:e.Injector},t.ViewEncapsulation={name:"ViewEncapsulation",moduleUrl:Xt("core","metadata/view"),runtime:e.ViewEncapsulation},t.ViewType={name:"ViewType",moduleUrl:Xt("core","linker/view_type"),runtime:go},t.ChangeDetectionStrategy={name:"ChangeDetectionStrategy",moduleUrl:vp,runtime:e.ChangeDetectionStrategy},t.StaticNodeDebugInfo={name:"StaticNodeDebugInfo",moduleUrl:Xt("core","linker/debug_context"),runtime:wo},t.DebugContext={name:"DebugContext",moduleUrl:Xt("core","linker/debug_context"),runtime:bo},t.Renderer={name:"Renderer",moduleUrl:Xt("core","render/api"),runtime:e.Renderer},t.SimpleChange={name:"SimpleChange",moduleUrl:vp,runtime:e.SimpleChange},t.UNINITIALIZED={name:"UNINITIALIZED",moduleUrl:vp,runtime:So},t.ChangeDetectorStatus={name:"ChangeDetectorStatus",moduleUrl:vp,runtime:so},t.checkBinding={name:"checkBinding",moduleUrl:mp,runtime:_o.checkBinding},t.devModeEqual={name:"devModeEqual",moduleUrl:vp,runtime:Eo},t.inlineInterpolate={name:"inlineInterpolate",moduleUrl:mp,runtime:_o.inlineInterpolate},t.interpolate={name:"interpolate",moduleUrl:mp,runtime:_o.interpolate},t.castByValue={name:"castByValue",moduleUrl:mp,runtime:_o.castByValue},t.EMPTY_ARRAY={name:"EMPTY_ARRAY",moduleUrl:mp,runtime:_o.EMPTY_ARRAY},t.EMPTY_MAP={name:"EMPTY_MAP",moduleUrl:mp,runtime:_o.EMPTY_MAP},t.createRenderElement={name:"createRenderElement",moduleUrl:mp,runtime:_o.createRenderElement},t.selectOrCreateRenderHostElement={name:"selectOrCreateRenderHostElement",moduleUrl:mp,runtime:_o.selectOrCreateRenderHostElement},t.pureProxies=[null,{name:"pureProxy1",moduleUrl:mp,runtime:_o.pureProxy1},{name:"pureProxy2",moduleUrl:mp,runtime:_o.pureProxy2},{name:"pureProxy3",moduleUrl:mp,runtime:_o.pureProxy3},{name:"pureProxy4",moduleUrl:mp,runtime:_o.pureProxy4},{name:"pureProxy5",moduleUrl:mp,runtime:_o.pureProxy5},{name:"pureProxy6",moduleUrl:mp,runtime:_o.pureProxy6},{name:"pureProxy7",moduleUrl:mp,runtime:_o.pureProxy7},{name:"pureProxy8",moduleUrl:mp,runtime:_o.pureProxy8},{name:"pureProxy9",moduleUrl:mp,runtime:_o.pureProxy9},{name:"pureProxy10",moduleUrl:mp,runtime:_o.pureProxy10}],t.SecurityContext={name:"SecurityContext",moduleUrl:Xt("core","security"),runtime:e.SecurityContext},t.AnimationKeyframe={name:"AnimationKeyframe",moduleUrl:Xt("core","animation/animation_keyframe"),runtime:No},t.AnimationStyles={name:"AnimationStyles",moduleUrl:Xt("core","animation/animation_styles"),runtime:Io},t.NoOpAnimationPlayer={name:"NoOpAnimationPlayer",moduleUrl:Xt("core","animation/animation_player"),runtime:Mo},t.AnimationGroupPlayer={name:"AnimationGroupPlayer",moduleUrl:Xt("core","animation/animation_group_player"),runtime:ko},t.AnimationSequencePlayer={name:"AnimationSequencePlayer",moduleUrl:Xt("core","animation/animation_sequence_player"),runtime:Ro},t.prepareFinalAnimationStyles={name:"prepareFinalAnimationStyles",moduleUrl:gp,runtime:Fo},t.balanceAnimationKeyframes={name:"balanceAnimationKeyframes",moduleUrl:gp,runtime:Uo},t.clearStyles={name:"clearStyles",moduleUrl:gp,runtime:Bo},t.renderStyles={name:"renderStyles",moduleUrl:gp,runtime:qo},t.collectAndResolveStyles={name:"collectAndResolveStyles",moduleUrl:gp,runtime:Ho},t.LOCALE_ID={name:"LOCALE_ID",moduleUrl:Xt("core","i18n/tokens"),runtime:e.LOCALE_ID},t.TRANSLATIONS_FORMAT={name:"TRANSLATIONS_FORMAT",moduleUrl:Xt("core","i18n/tokens"),runtime:e.TRANSLATIONS_FORMAT},t.setBindingDebugInfo={name:"setBindingDebugInfo",moduleUrl:mp,runtime:_o.setBindingDebugInfo},t.setBindingDebugInfoForChanges={name:"setBindingDebugInfoForChanges",moduleUrl:mp,runtime:_o.setBindingDebugInfoForChanges},t.AnimationTransition={name:"AnimationTransition",moduleUrl:Xt("core","animation/animation_transition"),runtime:Wo},t.InlineArray={name:"InlineArray",moduleUrl:mp,runtime:null},t.inlineArrays=[{name:"InlineArray2",moduleUrl:mp,runtime:_o.InlineArray2},{name:"InlineArray2",moduleUrl:mp,runtime:_o.InlineArray2},{name:"InlineArray4",moduleUrl:mp,runtime:_o.InlineArray4},{name:"InlineArray8",moduleUrl:mp,runtime:_o.InlineArray8},{name:"InlineArray16",moduleUrl:mp,runtime:_o.InlineArray16}],t.EMPTY_INLINE_ARRAY={name:"EMPTY_INLINE_ARRAY",moduleUrl:mp,runtime:_o.EMPTY_INLINE_ARRAY},t.InlineArrayDynamic={name:"InlineArrayDynamic",moduleUrl:mp,runtime:_o.InlineArrayDynamic},t.subscribeToRenderElement={name:"subscribeToRenderElement",moduleUrl:mp,runtime:_o.subscribeToRenderElement},t.createRenderComponentType={name:"createRenderComponentType",moduleUrl:mp,runtime:_o.createRenderComponentType},t.noop={name:"noop",moduleUrl:mp,runtime:_o.noop},t}(),bp=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},wp=["zero","one","two","few","many","other"],Ep=function(){function t(t,e,n){this.nodes=t,this.expanded=e,this.errors=n}return t}(),Sp=function(t){function e(e,n){t.call(this,e,n)}return bp(e,t),e}(Ou),Cp=function(){function t(){this.isExpanded=!1,this.errors=[]}return t.prototype.visitElement=function(t){return new Nu(t.name,t.attrs,X(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?ee(t,this.errors):ne(t,this.errors)},t.prototype.visitExpansionCase=function(){throw new Error("Should not be reached")},t}(),xp=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},Tp=function(t){function e(e,n){t.call(this,n,e)}return xp(e,t),e}(Ou),Pp=function(){function t(t,e){var n=this;this.component=t,this.sourceSpan=e,this.errors=[],this.viewQueries=ae(t),this.viewProviders=new Map,t.viewProviders.forEach(function(t){i(n.viewProviders.get(S(t.token)))&&n.viewProviders.set(S(t.token),!0)})}return t}(),Op=function(){function t(t,e,n,i,o,s,a){var u=this;this.viewContext=t,this._parent=e,this._isViewRoot=n,this._directiveAsts=i,this._sourceSpan=a,this._transformedProviders=new Map,this._seenProviders=new Map,this._hasViewContainer=!1,this._attrs={},o.forEach(function(t){return u._attrs[t.name]=t.value});var c=i.map(function(t){return t.directive});this._allProviders=oe(c,a,t.errors),this._contentQueries=ue(c);var p=new Map;Array.from(this._allProviders.values()).forEach(function(t){u._addQueryReadsTo(t.token,p)}),s.forEach(function(t){u._addQueryReadsTo({value:t.name},p)}),r(p.get(Qt(_p.ViewContainerRef)))&&(this._hasViewContainer=!0),Array.from(this._allProviders.values()).forEach(function(t){var e=t.eager||r(p.get(S(t.token)));e&&u._getOrCreateLocalProvider(t.providerType,t.token,!0)})}return t.prototype.afterElement=function(){var t=this;Array.from(this._allProviders.values()).forEach(function(e){t._getOrCreateLocalProvider(e.providerType,e.token,!1)})},Object.defineProperty(t.prototype,"transformProviders",{get:function(){return Array.from(this._transformedProviders.values())},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"transformedDirectiveAsts",{get:function(){var t=this.transformProviders.map(function(t){return t.token.identifier}),e=this._directiveAsts.slice();return e.sort(function(e,n){return t.indexOf(e.directive.type)-t.indexOf(n.directive.type)}),e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"transformedHasViewContainer",{get:function(){return this._hasViewContainer},enumerable:!0,configurable:!0}),t.prototype._addQueryReadsTo=function(t,e){this._getQueriesFor(t).forEach(function(n){var r=n.read||t;i(e.get(S(r)))&&e.set(S(r),!0)})},t.prototype._getQueriesFor=function(t){for(var e,n=[],r=this,i=0;null!==r;)e=r._contentQueries.get(S(t)),e&&n.push.apply(n,e.filter(function(t){return t.descendants||1>=i})),r._directiveAsts.length>0&&i++,r=r._parent;return e=this.viewContext.viewQueries.get(S(t)),e&&n.push.apply(n,e),n},t.prototype._getOrCreateLocalProvider=function(t,e,n){var i=this,o=this._allProviders.get(S(e));if(!o||(t===Yi.Directive||t===Yi.PublicService)&&o.providerType===Yi.PrivateService||(t===Yi.PrivateService||t===Yi.PublicService)&&o.providerType===Yi.Builtin)return null;var s=this._transformedProviders.get(S(e));if(s)return s;if(r(this._seenProviders.get(S(e))))return this.viewContext.errors.push(new Tp("Cannot instantiate cyclic dependency! "+E(e),this._sourceSpan)),null;this._seenProviders.set(S(e),!0);var a=o.providers.map(function(t){var e,s=t.useValue,a=t.useExisting;if(r(t.useExisting)){var u=i._getDependency(o.providerType,{token:t.useExisting},n);r(u.token)?a=u.token:(a=null,s=u.value)}else if(t.useFactory){var c=t.deps||t.useFactory.diDeps;e=c.map(function(t){return i._getDependency(o.providerType,t,n)})}else if(t.useClass){var c=t.deps||t.useClass.diDeps;e=c.map(function(t){return i._getDependency(o.providerType,t,n)})}return re(t,{useExisting:a,useValue:s,deps:e})});return s=ie(o,{eager:n,providers:a}),this._transformedProviders.set(S(e),s),s},t.prototype._getLocalDependency=function(t,e,n){if(void 0===n&&(n=null),e.isAttribute){var i=this._attrs[e.token.value];return{isValue:!0,value:null==i?null:i}}if(r(e.token)){if(t===Yi.Directive||t===Yi.Component){if(S(e.token)===Qt(_p.Renderer)||S(e.token)===Qt(_p.ElementRef)||S(e.token)===Qt(_p.ChangeDetectorRef)||S(e.token)===Qt(_p.TemplateRef))return e;S(e.token)===Qt(_p.ViewContainerRef)&&(this._hasViewContainer=!0)}if(S(e.token)===Qt(_p.Injector))return e;if(r(this._getOrCreateLocalProvider(t,e.token,n)))return e}return null},t.prototype._getDependency=function(t,e,n){void 0===n&&(n=null);var i=this,o=n,s=null;if(e.isSkipSelf||(s=this._getLocalDependency(t,e,n)),e.isSelf)!s&&e.isOptional&&(s={isValue:!0,value:null});else{for(;!s&&i._parent;){var a=i;i=i._parent,a._isViewRoot&&(o=!1),s=i._getLocalDependency(Yi.PublicService,e,o)}s||(s=!e.isHost||this.viewContext.component.isHost||this.viewContext.component.type.reference===S(e.token)||r(this.viewContext.viewProviders.get(S(e.token)))?e:e.isOptional?s={isValue:!0,value:null}:null)}return s||this.viewContext.errors.push(new Tp("No provider for "+E(e.token),this._sourceSpan)), -s},t}(),Ap=function(){function t(t,e,n){var r=this;this._transformedProviders=new Map,this._seenProviders=new Map,this._errors=[],this._allProviders=new Map,t.transitiveModule.modules.forEach(function(t){var e={token:{identifier:t},useClass:t};se([e],Yi.PublicService,!0,n,r._errors,r._allProviders)}),se(t.transitiveModule.providers.map(function(t){return t.provider}).concat(e),Yi.PublicService,!1,n,this._errors,this._allProviders)}return t.prototype.parse=function(){var t=this;if(Array.from(this._allProviders.values()).forEach(function(e){t._getOrCreateLocalProvider(e.token,e.eager)}),this._errors.length>0){var e=this._errors.join("\n");throw new Error("Provider parse errors:\n"+e)}return Array.from(this._transformedProviders.values())},t.prototype._getOrCreateLocalProvider=function(t,e){var n=this,i=this._allProviders.get(S(t));if(!i)return null;var o=this._transformedProviders.get(S(t));if(o)return o;if(r(this._seenProviders.get(S(t))))return this._errors.push(new Tp("Cannot instantiate cyclic dependency! "+E(t),i.sourceSpan)),null;this._seenProviders.set(S(t),!0);var s=i.providers.map(function(t){var o,s=t.useValue,a=t.useExisting;if(r(t.useExisting)){var u=n._getDependency({token:t.useExisting},e,i.sourceSpan);r(u.token)?a=u.token:(a=null,s=u.value)}else if(t.useFactory){var c=t.deps||t.useFactory.diDeps;o=c.map(function(t){return n._getDependency(t,e,i.sourceSpan)})}else if(t.useClass){var c=t.deps||t.useClass.diDeps;o=c.map(function(t){return n._getDependency(t,e,i.sourceSpan)})}return re(t,{useExisting:a,useValue:s,deps:o})});return o=ie(i,{eager:e,providers:s}),this._transformedProviders.set(S(t),o),o},t.prototype._getDependency=function(t,e,n){void 0===e&&(e=null);var i=!1;!t.isSkipSelf&&r(t.token)&&(S(t.token)===Qt(_p.Injector)||S(t.token)===Qt(_p.ComponentFactoryResolver)?i=!0:r(this._getOrCreateLocalProvider(t.token,e))&&(i=!0));var o=t;return t.isSelf&&!i&&(t.isOptional?o={isValue:!0,value:null}:this._errors.push(new Tp("No provider for "+E(t.token),n))),o},t}(),Mp=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}(),Rp=function(){function t(t,e){this.style=t,this.styleUrls=e}return t}(),kp=/@import\s+(?:url\()?\s*(?:(?:['"]([^'"]*))|([^;\)\s]*))[^;]*;?/g,Np=/\/\*.+?\*\//g,Ip=/^([^:\/?#]+):/,Dp=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},jp=".",Lp="attr",Vp="class",Fp="style",Up="animate-",Bp={};Bp.DEFAULT=0,Bp.LITERAL_ATTR=1,Bp.ANIMATION=2,Bp[Bp.DEFAULT]="DEFAULT",Bp[Bp.LITERAL_ATTR]="LITERAL_ATTR",Bp[Bp.ANIMATION]="ANIMATION";var Hp=function(){function t(t,e,n,r){this.name=t,this.expression=e,this.type=n,this.sourceSpan=r}return Object.defineProperty(t.prototype,"isLiteral",{get:function(){return this.type===Bp.LITERAL_ATTR},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isAnimation",{get:function(){return this.type===Bp.ANIMATION},enumerable:!0,configurable:!0}),t}(),qp=function(){function t(t,e,n,r,i){var o=this;this._exprParser=t,this._interpolationConfig=e,this._schemaRegistry=n,this._targetErrors=i,this.pipesByName=new Map,r.forEach(function(t){return o.pipesByName.set(t.name,t)})}return t.prototype.createDirectiveHostPropertyAsts=function(t,e){var n=this;if(t.hostProperties){var r=[];return Object.keys(t.hostProperties).forEach(function(i){var o=t.hostProperties[i];"string"==typeof o?n.parsePropertyBinding(i,o,!0,e,[],r):n._reportError('Value of the host property binding "'+i+'" needs to be a string representing an expression but got "'+o+'" ('+typeof o+")",e)}),r.map(function(e){return n.createElementPropertyAst(t.selector,e)})}},t.prototype.createDirectiveHostEventAsts=function(t,e){var n=this;if(t.hostListeners){var r=[];return Object.keys(t.hostListeners).forEach(function(i){var o=t.hostListeners[i];"string"==typeof o?n.parseEvent(i,o,e,[],r):n._reportError('Value of the host listener "'+i+'" needs to be a string representing an expression but got "'+o+'" ('+typeof o+")",e)}),r}},t.prototype.parseInterpolation=function(t,e){var n=e.start.toString();try{var r=this._exprParser.parseInterpolation(t,n,this._interpolationConfig);return r&&this._reportExpressionParserErrors(r.errors,e),this._checkPipes(r,e),r}catch(i){return this._reportError(""+i,e),this._exprParser.wrapLiteralPrimitive("ERROR",n)}},t.prototype.parseInlineTemplateBinding=function(t,e,n,r,i,o){for(var s=this._parseTemplateBindings(t,e,n),a=0;a<s.length;a++){var u=s[a];u.keyIsVar?o.push(new zi(u.key,u.name,n)):u.expression?this._parsePropertyAst(u.key,u.expression,n,r,i):(r.push([u.key,""]),this.parseLiteralAttr(u.key,null,n,r,i))}},t.prototype._parseTemplateBindings=function(t,e,n){var r=this,i=n.start.toString();try{var o=this._exprParser.parseTemplateBindings(t,e,i);return this._reportExpressionParserErrors(o.errors,n),o.templateBindings.forEach(function(t){t.expression&&r._checkPipes(t.expression,n)}),o.warnings.forEach(function(t){r._reportError(t,n,Pu.WARNING)}),o.templateBindings}catch(s){return this._reportError(""+s,n),[]}},t.prototype.parseLiteralAttr=function(t,e,n,r,i){he(t)?(t=t.substring(1),e&&this._reportError('Assigning animation triggers via @prop="exp" attributes with an expression is invalid. Use property bindings (e.g. [@prop]="exp") or use an attribute without a value (e.g. @prop) instead.',n,Pu.FATAL),this._parseAnimation(t,e,n,r,i)):i.push(new Hp(t,this._exprParser.wrapLiteralPrimitive(e,""),Bp.LITERAL_ATTR,n))},t.prototype.parsePropertyBinding=function(t,e,n,r,i,o){var s=!1;t.startsWith(Up)?(s=!0,t=t.substring(Up.length)):he(t)&&(s=!0,t=t.substring(1)),s?this._parseAnimation(t,e,r,i,o):this._parsePropertyAst(t,this._parseBinding(e,n,r),r,i,o)},t.prototype.parsePropertyInterpolation=function(t,e,n,r,i){var o=this.parseInterpolation(e,n);return o?(this._parsePropertyAst(t,o,n,r,i),!0):!1},t.prototype._parsePropertyAst=function(t,e,n,r,i){r.push([t,e.source]),i.push(new Hp(t,e,Bp.DEFAULT,n))},t.prototype._parseAnimation=function(t,e,n,r,i){var o=this._parseBinding(e||"null",!1,n);r.push([t,o.source]),i.push(new Hp(t,o,Bp.ANIMATION,n))},t.prototype._parseBinding=function(t,e,n){var r=n.start.toString();try{var i=e?this._exprParser.parseSimpleBinding(t,r,this._interpolationConfig):this._exprParser.parseBinding(t,r,this._interpolationConfig);return i&&this._reportExpressionParserErrors(i.errors,n),this._checkPipes(i,n),i}catch(o){return this._reportError(""+o,n),this._exprParser.wrapLiteralPrimitive("ERROR",r)}},t.prototype.createElementPropertyAst=function(t,n){if(n.isAnimation)return new Bi(n.name,Zi.Animation,e.SecurityContext.NONE,!1,n.expression,null,n.sourceSpan);var r,i,o=null,s=null,a=n.name.split(jp);if(a.length>1)if(a[0]==Lp){s=a[1],this._validatePropertyOrAttributeName(s,n.sourceSpan,!0),i=fe(this._schemaRegistry,t,s,!0);var u=s.indexOf(":");if(u>-1){var c=s.substring(0,u),p=s.substring(u+1);s=h(c,p)}r=Zi.Attribute}else a[0]==Vp?(s=a[1],r=Zi.Class,i=[e.SecurityContext.NONE]):a[0]==Fp&&(o=a.length>2?a[2]:null,s=a[1],r=Zi.Style,i=[e.SecurityContext.STYLE]);return null===s&&(s=this._schemaRegistry.getMappedPropName(n.name),i=fe(this._schemaRegistry,t,s,!1),r=Zi.Property,this._validatePropertyOrAttributeName(s,n.sourceSpan,!1)),new Bi(s,r,1===i.length?i[0]:null,i.length>1,n.expression,o,n.sourceSpan)},t.prototype.parseEvent=function(t,e,n,r,i){he(t)?(t=t.substr(1),this._parseAnimationEvent(t,e,n,i)):this._parseEvent(t,e,n,r,i)},t.prototype._parseAnimationEvent=function(t,e,n,r){var i=m(t,[t,""]),o=i[0],s=i[1].toLowerCase();if(s)switch(s){case"start":case"done":var a=this._parseAction(e,n);r.push(new Hi(o,null,s,a,n));break;default:this._reportError('The provided animation output phase value "'+s+'" for "@'+o+'" is not supported (use start or done)',n)}else this._reportError("The animation trigger output event (@"+o+") is missing its phase value name (start or done are currently supported)",n)},t.prototype._parseEvent=function(t,e,n,r,i){var o=y(t,[null,t]),s=o[0],a=o[1],u=this._parseAction(e,n);r.push([t,u.source]),i.push(new Hi(a,s,null,u,n))},t.prototype._parseAction=function(t,e){var n=e.start.toString();try{var r=this._exprParser.parseAction(t,n,this._interpolationConfig);return r&&this._reportExpressionParserErrors(r.errors,e),!r||r.ast instanceof Ba?(this._reportError("Empty expressions are not allowed",e),this._exprParser.wrapLiteralPrimitive("ERROR",n)):(this._checkPipes(r,e),r)}catch(i){return this._reportError(""+i,e),this._exprParser.wrapLiteralPrimitive("ERROR",n)}},t.prototype._reportError=function(t,e,n){void 0===n&&(n=Pu.FATAL),this._targetErrors.push(new Ou(e,t,n))},t.prototype._reportExpressionParserErrors=function(t,e){for(var n=0,r=t;n<r.length;n++){var i=r[n];this._reportError(i.message,e)}},t.prototype._checkPipes=function(t,e){var n=this;if(t){var r=new zp;t.visit(r),r.pipes.forEach(function(t,r){n.pipesByName.has(r)||n._reportError("The pipe '"+r+"' could not be found",new Tu(e.start.moveBy(t.span.start),e.start.moveBy(t.span.end)))})}},t.prototype._validatePropertyOrAttributeName=function(t,e,n){var r=n?this._schemaRegistry.validateAttribute(t):this._schemaRegistry.validateProperty(t);r.error&&this._reportError(r.msg,e,Pu.FATAL)},t}(),zp=function(t){function e(){t.apply(this,arguments),this.pipes=new Map}return Dp(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}(uu),Wp="select",Gp="ng-content",Kp="link",Xp="rel",Qp="href",Yp="stylesheet",$p="style",Zp="script",Jp="ngNonBindable",tl="ngProjectAs",el={};el.NG_CONTENT=0,el.STYLE=1,el.STYLESHEET=2,el.SCRIPT=3,el.OTHER=4,el[el.NG_CONTENT]="NG_CONTENT",el[el.STYLE]="STYLE",el[el.STYLESHEET]="STYLESHEET",el[el.SCRIPT]="SCRIPT",el[el.OTHER]="OTHER";var nl=function(){function t(t,e,n,r,i){this.type=t,this.selectAttr=e,this.hrefAttr=n,this.nonBindable=r,this.projectAs=i}return t}(),rl=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},il=this&&this.__decorate||function(t,e,n,r){var i,o=arguments.length,s=3>o?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,r);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(3>o?i(s):o>3?i(e,n,s):i(e,n))||s);return o>3&&s&&Object.defineProperty(e,n,s),s},ol=this&&this.__metadata||function(t,e){return"object"==typeof Reflect&&"function"==typeof Reflect.metadata?Reflect.metadata(t,e):void 0},sl=/^(?:(?:(?:(bind-)|(let-)|(ref-|#)|(on-)|(bindon-)|(@))(.+))|\[\(([^\)]+)\)\]|\[([^\]]+)\]|\(([^\)]+)\))$/,al=1,ul=2,cl=3,pl=4,ll=5,hl=6,fl=7,dl=8,yl=9,ml=10,vl="template",gl="template",_l="*",bl="class",wl=Zo.parse("*")[0],El=new e.OpaqueToken("TemplateTransforms"),Sl=function(t){function e(e,n,r){t.call(this,n,e,r)}return rl(e,t),e}(Ou),Cl=function(){function t(t,e){this.templateAst=t,this.errors=e}return t}(),xl=function(){function t(t,e,n,r,i){this._exprParser=t,this._schemaRegistry=e,this._htmlParser=n,this._console=r,this.transforms=i}return t.prototype.parse=function(t,e,n,r,i,o){var s=this.tryParse(t,e,n,r,i,o),a=s.errors.filter(function(t){return t.level===Pu.WARNING}),u=s.errors.filter(function(t){return t.level===Pu.FATAL});if(a.length>0&&this._console.warn("Template parse warnings:\n"+a.join("\n")),u.length>0){var c=u.join("\n");throw new cs("Template parse errors:\n"+c)}return s.templateAst},t.prototype.tryParse=function(t,e,n,r,i,o){return this.tryParseHtml(this.expandHtml(this._htmlParser.parse(e,o,!0,this.getInterpolationConfig(t))),t,e,n,r,i,o)},t.prototype.tryParseHtml=function(t,e,r,i,o,s){var a,u=t.errors;if(t.rootNodes.length>0){var c=_e(i),p=_e(o),l=new Pp(e,t.rootNodes[0].sourceSpan),h=void 0;e.template&&e.template.interpolation&&(h={start:e.template.interpolation[0],end:e.template.interpolation[1]});var f=new qp(this._exprParser,h,this._schemaRegistry,p,u),d=new Tl(l,c,f,this._schemaRegistry,s,u);a=X(d,t.rootNodes,Ml),u.push.apply(u,l.errors)}else a=[];return this._assertNoReferenceDuplicationOnTemplate(a,u),u.length>0?new Cl(a,u):(this.transforms&&this.transforms.forEach(function(t){a=n(t,a)}),new Cl(a,u))},t.prototype.expandHtml=function(t,e){void 0===e&&(e=!1);var n=t.errors;if(0==n.length||e){var r=te(t.rootNodes);n.push.apply(n,r.errors),t=new Wu(r.nodes,n)}return t},t.prototype.getInterpolationConfig=function(t){return t.template?Ia.fromArray(t.template.interpolation):void 0},t.prototype._assertNoReferenceDuplicationOnTemplate=function(t,e){var n=[];t.filter(function(t){return!!t.references}).forEach(function(t){return t.references.forEach(function(t){var r=t.name;if(n.indexOf(r)<0)n.push(r);else{var i=new Sl('Reference "#'+r+'" is defined several times',t.sourceSpan,Pu.FATAL);e.push(i)}})})},t.ctorParameters=function(){return[{type:wu},{type:Mp},{type:dp},{type:To},{type:Array,decorators:[{type:e.Optional},{type:e.Inject,args:[El]}]}]},t=il([M(),ol("design:paramtypes",[wu,Mp,dp,To,Array])],t)}(),Tl=function(){function t(t,e,n,r,i,o){var s=this;this.providerViewContext=t,this._bindingParser=n,this._schemaRegistry=r,this._schemas=i,this._targetErrors=o,this.selectorMatcher=new Jo,this.directivesIndex=new Map,this.ngContentCount=0,e.forEach(function(t,e){var n=Zo.parse(t.selector);s.selectorMatcher.addSelectables(n,t),s.directivesIndex.set(t,e)})}return t.prototype.visitExpansion=function(){return null},t.prototype.visitExpansionCase=function(){return null},t.prototype.visitText=function(t,e){var n=e.findNgContentIndex(wl),r=this._bindingParser.parseInterpolation(t.value,t.sourceSpan);return r?new Fi(r,n,t.sourceSpan):new Vi(t.value,n,t.sourceSpan)},t.prototype.visitAttribute=function(t){return new Ui(t.name,t.value,t.sourceSpan)},t.prototype.visitComment=function(){return null},t.prototype.visitElement=function(t,e){var n=this,i=t.name,o=de(t);if(o.type===el.SCRIPT||o.type===el.STYLE)return null;if(o.type===el.STYLESHEET&&pe(o.hrefAttr))return null;var s=[],a=[],u=[],c=[],l=[],h=[],f=[],d=[],y=!1,m=[],v=p(i.toLowerCase())[1],g=v==vl;t.attrs.forEach(function(t){var e,i,o=n._parseAttr(g,t,s,a,l,u,c),p=n._normalizeAttributeName(t.name);p==gl?e=t.value:p.startsWith(_l)&&(e=t.value,i=p.substring(_l.length)+":");var v=r(e);v&&(y&&n._reportError("Can't have multiple template bindings on one element. Use only one attribute named 'template' or prefixed with *",t.sourceSpan),y=!0,n._bindingParser.parseInlineTemplateBinding(i,e,t.sourceSpan,f,h,d)),o||v||(m.push(n.visitAttribute(t,null)),s.push([t.name,t.value]))});var _=ve(i,s),b=this._parseDirectives(this.selectorMatcher,_),w=b.directives,E=b.matchElement,S=[],C=this._createDirectiveAsts(g,t.name,w,a,u,t.sourceSpan,S),x=this._createElementPropertyAsts(t.name,a,C),T=e.isTemplateElement||y,P=new Op(this.providerViewContext,e.providerContext,T,C,m,S,t.sourceSpan),O=X(o.nonBindable?Rl:this,t.children,Al.create(g,C,g?e.providerContext:P));P.afterElement();var A,M=r(o.projectAs)?Zo.parse(o.projectAs)[0]:_,R=e.findNgContentIndex(M);if(o.type===el.NG_CONTENT)t.children&&!t.children.every(ge)&&this._reportError("<ng-content> element cannot have content.",t.sourceSpan),A=new $i(this.ngContentCount++,y?null:R,t.sourceSpan);else if(g)this._assertAllEventsPublishedByDirectives(C,l),this._assertNoComponentsNorElementBindingsOnTemplate(C,x,t.sourceSpan),A=new Gi(m,l,S,c,P.transformedDirectiveAsts,P.transformProviders,P.transformedHasViewContainer,O,y?null:R,t.sourceSpan);else{this._assertElementExists(E,t),this._assertOnlyOneComponent(C,t.sourceSpan);var k=y?null:e.findNgContentIndex(M);A=new Wi(i,m,x,l,S,P.transformedDirectiveAsts,P.transformProviders,P.transformedHasViewContainer,O,y?null:k,t.sourceSpan,t.endSourceSpan),this._findComponentDirectives(C).forEach(function(t){return n._validateElementAnimationInputOutputs(t.hostProperties,t.hostEvents,t.directive.template)});var N=P.viewContext.component.template;this._validateElementAnimationInputOutputs(x,l,N.toSummary())}if(y){var I=ve(vl,f),D=this._parseDirectives(this.selectorMatcher,I).directives,j=this._createDirectiveAsts(!0,t.name,D,h,[],t.sourceSpan,[]),L=this._createElementPropertyAsts(t.name,h,j);this._assertNoComponentsNorElementBindingsOnTemplate(j,L,t.sourceSpan);var V=new Op(this.providerViewContext,e.providerContext,e.isTemplateElement,j,[],[],t.sourceSpan);V.afterElement(),A=new Gi([],[],[],d,V.transformedDirectiveAsts,V.transformProviders,V.transformedHasViewContainer,[A],R,t.sourceSpan)}return A},t.prototype._validateElementAnimationInputOutputs=function(t,e,n){var r=this,i=new Set;n.animations.forEach(function(t){i.add(t)});var o=t.filter(function(t){return t.isAnimation});o.forEach(function(t){var e=t.name;i.has(e)||r._reportError("Couldn't find an animation entry for \""+e+'"',t.sourceSpan)}),e.forEach(function(t){if(t.isAnimation){var e=o.find(function(e){return e.name==t.name});e||r._reportError("Unable to listen on (@"+t.name+"."+t.phase+") because the animation trigger [@"+t.name+"] isn't being used on the same element",t.sourceSpan)}})},t.prototype._parseAttr=function(t,e,n,i,o,s,a){var u=this._normalizeAttributeName(e.name),c=e.value,p=e.sourceSpan,l=u.match(sl),h=!1;if(null!==l)if(h=!0,r(l[al]))this._bindingParser.parsePropertyBinding(l[fl],c,!1,p,n,i);else if(l[ul])if(t){var f=l[fl];this._parseVariable(f,c,p,a)}else this._reportError('"let-" is only supported on template elements.',p);else if(l[cl]){var f=l[fl];this._parseReference(f,c,p,s)}else l[pl]?this._bindingParser.parseEvent(l[fl],c,p,n,o):l[ll]?(this._bindingParser.parsePropertyBinding(l[fl],c,!1,p,n,i),this._parseAssignmentEvent(l[fl],c,p,n,o)):l[hl]?this._bindingParser.parseLiteralAttr(u,c,p,n,i):l[dl]?(this._bindingParser.parsePropertyBinding(l[dl],c,!1,p,n,i),this._parseAssignmentEvent(l[dl],c,p,n,o)):l[yl]?this._bindingParser.parsePropertyBinding(l[yl],c,!1,p,n,i):l[ml]&&this._bindingParser.parseEvent(l[ml],c,p,n,o);else h=this._bindingParser.parsePropertyInterpolation(u,c,p,n,i);return h||this._bindingParser.parseLiteralAttr(u,c,p,n,i),h},t.prototype._normalizeAttributeName=function(t){return/^data-/i.test(t)?t.substring(5):t},t.prototype._parseVariable=function(t,e,n,r){t.indexOf("-")>-1&&this._reportError('"-" is not allowed in variable names',n),r.push(new zi(t,e,n))},t.prototype._parseReference=function(t,e,n,r){t.indexOf("-")>-1&&this._reportError('"-" is not allowed in reference names',n),r.push(new Ol(t,e,n))},t.prototype._parseAssignmentEvent=function(t,e,n,r,i){this._bindingParser.parseEvent(t+"Change",e+"=$event",n,r,i)},t.prototype._parseDirectives=function(t,e){var n=this,r=new Array(this.directivesIndex.size),i=!1;return t.match(e,function(t,e){r[n.directivesIndex.get(e)]=e,i=i||t.hasElementSelector()}),{directives:r.filter(function(t){return!!t}),matchElement:i}},t.prototype._createDirectiveAsts=function(t,e,n,r,i,o,s){var a=this,u=new Set,c=null,p=n.map(function(t){var n=new Tu(o.start,o.end,"Directive "+b(t.type));t.isComponent&&(c=t);var p=[],l=a._bindingParser.createDirectiveHostPropertyAsts(t,n);a._checkPropertiesInSchema(e,l);var h=a._bindingParser.createDirectiveHostEventAsts(t,n);return a._createDirectivePropertyAsts(t.inputs,r,p),i.forEach(function(e){(0===e.value.length&&t.isComponent||t.exportAs==e.value)&&(s.push(new qi(e.name,$t(t.type),e.sourceSpan)),u.add(e.name))}),new Xi(t,p,l,h,n)});return i.forEach(function(e){if(e.value.length>0)u.has(e.name)||a._reportError('There is no directive with "exportAs" set to "'+e.value+'"',e.sourceSpan);else if(!c){var n=null;t&&(n=Zt(_p.TemplateRef)),s.push(new qi(e.name,n,e.sourceSpan))}}),p},t.prototype._createDirectivePropertyAsts=function(t,e,n){if(t){var r=new Map;e.forEach(function(t){var e=r.get(t.name);(!e||e.isLiteral)&&r.set(t.name,t)}),Object.keys(t).forEach(function(e){var i=t[e],o=r.get(i);o&&n.push(new Ki(e,o.name,o.expression,o.sourceSpan))})}},t.prototype._createElementPropertyAsts=function(t,e,n){var r=this,i=[],o=new Map;return n.forEach(function(t){t.inputs.forEach(function(t){o.set(t.templateName,t)})}),e.forEach(function(e){e.isLiteral||o.get(e.name)||i.push(r._bindingParser.createElementPropertyAst(t,e))}),this._checkPropertiesInSchema(t,i),i},t.prototype._findComponentDirectives=function(t){return t.filter(function(t){return t.directive.isComponent})},t.prototype._findComponentDirectiveNames=function(t){return this._findComponentDirectives(t).map(function(t){return b(t.directive.type)})},t.prototype._assertOnlyOneComponent=function(t,e){var n=this._findComponentDirectiveNames(t);n.length>1&&this._reportError("More than one component matched on this element.\nMake sure that only one component's selector can match a given element.\nConflicting components: "+n.join(","),e)},t.prototype._assertElementExists=function(t,e){var n=e.name.replace(/^:xhtml:/,"");if(!t&&!this._schemaRegistry.hasElement(n,this._schemas)){var r="'"+n+"' is not a known element:\n"+("1. If '"+n+"' is an Angular component, then verify that it is part of this module.\n")+("2. If '"+n+"' is a Web Component then add \"CUSTOM_ELEMENTS_SCHEMA\" to the '@NgModule.schemas' of this component to suppress this message.");this._reportError(r,e.sourceSpan)}},t.prototype._assertNoComponentsNorElementBindingsOnTemplate=function(t,e,n){var r=this,i=this._findComponentDirectiveNames(t);i.length>0&&this._reportError("Components on an embedded template: "+i.join(","),n),e.forEach(function(t){r._reportError("Property binding "+t.name+' not used by any directive on an embedded template. Make sure that the property name is spelled correctly and all directives are listed in the "@NgModule.declarations".',n)})},t.prototype._assertAllEventsPublishedByDirectives=function(t,e){var n=this,i=new Set;t.forEach(function(t){Object.keys(t.directive.outputs).forEach(function(e){var n=t.directive.outputs[e];i.add(n)})}),e.forEach(function(t){(r(t.target)||!i.has(t.name))&&n._reportError("Event binding "+t.fullName+' not emitted by any directive on an embedded template. Make sure that the event name is spelled correctly and all directives are listed in the "@NgModule.declarations".',t.sourceSpan)})},t.prototype._checkPropertiesInSchema=function(t,e){var n=this;e.forEach(function(e){if(e.type===Zi.Property&&!n._schemaRegistry.hasProperty(t,e.name,n._schemas)){var r="Can't bind to '"+e.name+"' since it isn't a known property of '"+t+"'.";t.indexOf("-")>-1&&(r+="\n1. If '"+t+"' is an Angular component and it has '"+e.name+"' input, then verify that it is part of this module."+("\n2. If '"+t+"' is a Web Component then add \"CUSTOM_ELEMENTS_SCHEMA\" to the '@NgModule.schemas' of this component to suppress this message.\n")),n._reportError(r,e.sourceSpan)}})},t.prototype._reportError=function(t,e,n){void 0===n&&(n=Pu.FATAL),this._targetErrors.push(new Ou(e,t,n))},t}(),Pl=function(){function t(){}return t.prototype.visitElement=function(t,e){var n=de(t);if(n.type===el.SCRIPT||n.type===el.STYLE||n.type===el.STYLESHEET)return null;var r=t.attrs.map(function(t){return[t.name,t.value]}),i=ve(t.name,r),o=e.findNgContentIndex(i),s=X(this,t.children,Ml);return new Wi(t.name,X(this,t.attrs),[],[],[],[],[],!1,s,o,t.sourceSpan,t.endSourceSpan)},t.prototype.visitComment=function(){return null},t.prototype.visitAttribute=function(t){return new Ui(t.name,t.value,t.sourceSpan)},t.prototype.visitText=function(t,e){var n=e.findNgContentIndex(wl);return new Vi(t.value,n,t.sourceSpan)},t.prototype.visitExpansion=function(t){return t},t.prototype.visitExpansionCase=function(t){return t},t}(),Ol=function(){function t(t,e,n){this.name=t,this.value=e,this.sourceSpan=n}return t}(),Al=function(){function t(t,e,n,r){this.isTemplateElement=t,this._ngContentIndexMatcher=e,this._wildcardNgContentIndex=n,this.providerContext=r}return t.create=function(e,n,r){var i=new Jo,o=null,s=n.find(function(t){return t.directive.isComponent});if(s)for(var a=s.directive.template.ngContentSelectors,u=0;u<a.length;u++){var c=a[u];"*"===c?o=u:i.addSelectables(Zo.parse(a[u]),u)}return new t(e,i,o,r)},t.prototype.findNgContentIndex=function(t){var e=[];return this._ngContentIndexMatcher.match(t,function(t,n){e.push(n)}),e.sort(),r(this._wildcardNgContentIndex)&&e.push(this._wildcardNgContentIndex),e.length>0?e[0]:null},t}(),Ml=new Al(!0,new Jo,null,null),Rl=new Pl,kl=function(){function t(t){var n=void 0===t?{}:t,r=n.renderTypes,i=void 0===r?new Il:r,o=n.defaultEncapsulation,s=void 0===o?e.ViewEncapsulation.Emulated:o,a=n.genDebugInfo,u=n.logBindingUpdate,c=n.useJit,p=void 0===c?!0:c;this.renderTypes=i,this.defaultEncapsulation=s,this._genDebugInfo=a,this._logBindingUpdate=u,this.useJit=p}return Object.defineProperty(t.prototype,"genDebugInfo",{get:function(){return void 0===this._genDebugInfo?e.isDevMode():this._genDebugInfo},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"logBindingUpdate",{get:function(){return void 0===this._logBindingUpdate?e.isDevMode():this._logBindingUpdate},enumerable:!0,configurable:!0}),t}(),Nl=function(){function t(){}return t.prototype.renderer=function(){},t.prototype.renderText=function(){},t.prototype.renderElement=function(){},t.prototype.renderComment=function(){},t.prototype.renderNode=function(){},t.prototype.renderEvent=function(){},t}(),Il=function(){function t(){this.renderText=null,this.renderElement=null,this.renderComment=null,this.renderNode=null,this.renderEvent=null}return Object.defineProperty(t.prototype,"renderer",{get:function(){return Yt(_p.Renderer)},enumerable:!0,configurable:!0}),t}(),Dl=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},jl=function(){function t(){this.startTime=0,this.playTime=0}return t.prototype.visit=function(){},t}(),Ll=function(t){function e(){t.apply(this,arguments)}return Dl(e,t),e.prototype.visit=function(){},e}(jl),Vl=function(t){function e(e,n,r){t.call(this),this.name=e,this.stateDeclarations=n,this.stateTransitions=r}return Dl(e,t),e.prototype.visit=function(t,e){return t.visitAnimationEntry(this,e)},e}(jl),Fl=function(t){function e(e,n){t.call(this),this.stateName=e,this.styles=n}return Dl(e,t),e.prototype.visit=function(t,e){return t.visitAnimationStateDeclaration(this,e)},e}(Ll),Ul=function(){function t(t,e){this.fromState=t,this.toState=e}return t}(),Bl=function(t){function e(e,n){t.call(this),this.stateChanges=e,this.animation=n}return Dl(e,t),e.prototype.visit=function(t,e){return t.visitAnimationStateTransition(this,e)},e}(Ll),Hl=function(t){function e(e,n,r,i,o){t.call(this),this.startingStyles=e,this.keyframes=n,this.duration=r,this.delay=i,this.easing=o}return Dl(e,t),e.prototype.visit=function(t,e){return t.visitAnimationStep(this,e)},e}(jl),ql=function(t){function e(e){t.call(this),this.styles=e}return Dl(e,t),e.prototype.visit=function(t,e){return t.visitAnimationStyles(this,e)},e}(jl),zl=function(t){function e(e,n){t.call(this),this.offset=e,this.styles=n}return Dl(e,t),e.prototype.visit=function(t,e){return t.visitAnimationKeyframe(this,e)},e}(jl),Wl=function(t){function e(e){t.call(this),this.steps=e}return Dl(e,t),e}(jl),Gl=function(t){function e(e){t.call(this,e)}return Dl(e,t),e.prototype.visit=function(t,e){return t.visitAnimationGroup(this,e)},e}(Wl),Kl=function(t){function e(e){t.call(this,e)}return Dl(e,t),e.prototype.visit=function(t,e){return t.visitAnimationSequence(this,e)},e}(Wl),Xl=function(){function t(t,e){this.time=t,this.value=e}return t.prototype.matches=function(t,e){return t==this.time&&e==this.value},t}(),Ql=function(){function t(){this.styles={}}return t.prototype.insertAtTime=function(t,e,n){var i=new Xl(e,n),o=this.styles[t];r(o)||(o=this.styles[t]=[]);for(var s=0,a=o.length-1;a>=0;a--)if(o[a].time<=e){s=a+1;break}o.splice(s,0,i)},t.prototype.getByIndex=function(t,e){var n=this.styles[t];return r(n)?e>=n.length?null:n[e]:null},t.prototype.indexOfAtOrBeforeTime=function(t,e){var n=this.styles[t];if(r(n))for(var i=n.length-1;i>=0;i--)if(n[i].time<=e)return i;return null},t}(),Yl=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},$l=this&&this.__decorate||function(t,e,n,r){var i,o=arguments.length,s=3>o?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,r);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(3>o?i(s):o>3?i(e,n,s):i(e,n))||s);return o>3&&s&&Object.defineProperty(e,n,s),s},Zl=this&&this.__metadata||function(t,e){return"object"==typeof Reflect&&"function"==typeof Reflect.metadata?Reflect.metadata(t,e):void 0},Jl=0,th=1,eh=1e3,nh=function(t){function e(e){t.call(this,null,e)}return Yl(e,t),e.prototype.toString=function(){return""+this.msg},e}(Ou),rh=function(){function t(t,e){this.ast=t,this.errors=e}return t}(),ih=function(){function t(t){this._schema=t}return t.prototype.parseComponent=function(t){var e=this,n=[],r=b(t.type),i=new Set,o=t.template.animations.map(function(t){var o=e.parseEntry(t),s=o.ast,a=s.name;if(i.has(a)?o.errors.push(new nh('The animation trigger "'+a+'" has already been registered for the '+r+" component")):i.add(a),o.errors.length>0){var u='- Unable to parse the animation sequence for "'+a+'" on the '+r+" component due to the following errors:";o.errors.forEach(function(t){u+="\n-- "+t.msg}),n.push(u)}return s});if(n.length>0){var s=n.join("\n");throw new Error("Animation parse errors:\n"+s)}return o},t.prototype.parseEntry=function(t){var e=this,n=[],r={},i=[],o=[];t.definitions.forEach(function(t){t instanceof ds?be(t,e._schema,n).forEach(function(t){o.push(t),r[t.stateName]=t.styles}):i.push(t)});var s=i.map(function(t){return we(t,r,e._schema,n)}),a=new Vl(t.name,o,s);return new rh(a,n)},t=$l([M(),Zl("design:paramtypes",[Mp])],t)}(),oh=function(){function t(t,e,n){this.duration=t,this.delay=e,this.easing=n}return t}(),sh=function(){function t(){}return t.prototype.get=function(){return null},t}(),ah=this&&this.__decorate||function(t,e,n,r){var i,o=arguments.length,s=3>o?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,r);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(3>o?i(s):o>3?i(e,n,s):i(e,n))||s);return o>3&&s&&Object.defineProperty(e,n,s),s},uh=this&&this.__metadata||function(t,e){return"object"==typeof Reflect&&"function"==typeof Reflect.metadata?Reflect.metadata(t,e):void 0},ch={provide:e.PACKAGE_ROOT_URL,useValue:"/"},ph=function(){function t(t){void 0===t&&(t=null),this._packagePrefix=t}return t.prototype.resolve=function(t,e){var n=e;r(t)&&t.length>0&&(n=He(t,n));var i=Fe(n),o=this._packagePrefix;if(r(o)&&r(i)&&"package"==i[hh.Scheme]){var s=i[hh.Path];return o=o.replace(/\/+$/,""),s=s.replace(/^\/+/,""),o+"/"+s}return n},t.ctorParameters=function(){return[{type:void 0,decorators:[{type:e.Inject,args:[e.PACKAGE_ROOT_URL]}]}]},t=ah([M(),uh("design:paramtypes",[String])],t)}(),lh=new RegExp("^(?:([^:/?#.]+):)?(?://(?:([^/?#]*)@)?([\\w\\d\\-\\u0100-\\uffff.%]*)(?::([0-9]+))?)?([^?#]+)?(?:\\?([^#]*))?(?:#(.*))?$"),hh={};hh.Scheme=1,hh.UserInfo=2,hh.Domain=3,hh.Port=4,hh.Path=5,hh.QueryData=6,hh.Fragment=7,hh[hh.Scheme]="Scheme",hh[hh.UserInfo]="UserInfo",hh[hh.Domain]="Domain",hh[hh.Port]="Port",hh[hh.Path]="Path",hh[hh.QueryData]="QueryData",hh[hh.Fragment]="Fragment";var fh=this&&this.__decorate||function(t,e,n,r){var i,o=arguments.length,s=3>o?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,r); -else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(3>o?i(s):o>3?i(e,n,s):i(e,n))||s);return o>3&&s&&Object.defineProperty(e,n,s),s},dh=this&&this.__metadata||function(t,e){return"object"==typeof Reflect&&"function"==typeof Reflect.metadata?Reflect.metadata(t,e):void 0},yh=function(){function t(t,e,n,r){this._resourceLoader=t,this._urlResolver=e,this._htmlParser=n,this._config=r,this._resourceLoaderCache=new Map}return t.prototype.clearCache=function(){this._resourceLoaderCache.clear()},t.prototype.clearCacheFor=function(t){var e=this;t.isComponent&&(this._resourceLoaderCache["delete"](t.template.templateUrl),t.template.externalStylesheets.forEach(function(t){e._resourceLoaderCache["delete"](t.moduleUrl)}))},t.prototype._fetch=function(t){var e=this._resourceLoaderCache.get(t);return e||(e=this._resourceLoader.get(t),this._resourceLoaderCache.set(t,e)),e},t.prototype.normalizeTemplate=function(t){var e,n=this,i=null;if(r(t.template))i=this.normalizeTemplateSync(t),e=Promise.resolve(i);else{if(!t.templateUrl)throw new cs("No template specified for component "+s(t.componentType));e=this.normalizeTemplateAsync(t)}return i&&0===i.styleUrls.length?new us(i):new us(null,e.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,n=this._urlResolver.resolve(t.moduleUrl,t.templateUrl);return this._fetch(n).then(function(r){return e.normalizeLoadedTemplate(t,r,n)})},t.prototype.normalizeLoadedTemplate=function(t,n,r){var o=Ia.fromArray(t.interpolation),a=this._htmlParser.parse(n,s(t.componentType),!0,o);if(a.errors.length>0){var u=a.errors.join("\n");throw new cs("Template parse errors:\n"+u)}var c=this.normalizeStylesheet(new xs({styles:t.styles,styleUrls:t.styleUrls,moduleUrl:t.moduleUrl})),p=new mh;X(p,a.rootNodes);var l=this.normalizeStylesheet(new xs({styles:p.styles,styleUrls:p.styleUrls,moduleUrl:r})),h=t.encapsulation;i(h)&&(h=this._config.defaultEncapsulation);var f=c.styles.concat(l.styles),d=c.styleUrls.concat(l.styleUrls);return h===e.ViewEncapsulation.Emulated&&0===f.length&&0===d.length&&(h=e.ViewEncapsulation.None),new Ts({encapsulation:h,template:n,templateUrl:r,styles:f,styleUrls:d,ngContentSelectors:p.ngContentSelectors,animations:t.animations,interpolation:t.interpolation})},t.prototype.normalizeExternalStylesheets=function(t){return this._loadMissingExternalStylesheets(t.styleUrls).then(function(e){return new Ts({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})})},t.prototype._loadMissingExternalStylesheets=function(t,e){var n=this;return void 0===e&&(e=new Map),Promise.all(t.filter(function(t){return!e.has(t)}).map(function(t){return n._fetch(t).then(function(r){var i=n.normalizeStylesheet(new xs({styles:[r],moduleUrl:t}));return e.set(t,i),n._loadMissingExternalStylesheets(i.styleUrls,e)})})).then(function(){return Array.from(e.values())})},t.prototype.normalizeStylesheet=function(t){var e=this,n=t.styleUrls.filter(pe).map(function(n){return e._urlResolver.resolve(t.moduleUrl,n)}),r=t.styles.map(function(r){var i=le(e._urlResolver,t.moduleUrl,r);return n.push.apply(n,i.styleUrls),i.style});return new xs({styles:r,styleUrls:n,moduleUrl:t.moduleUrl})},t=fh([M(),dh("design:paramtypes",[sh,ph,lp,kl])],t)}(),mh=function(){function t(){this.ngContentSelectors=[],this.styles=[],this.styleUrls=[],this.ngNonBindableStackCount=0}return t.prototype.visitElement=function(t){var e=de(t);switch(e.type){case el.NG_CONTENT:0===this.ngNonBindableStackCount&&this.ngContentSelectors.push(e.selectAttr);break;case el.STYLE:var n="";t.children.forEach(function(t){t instanceof Au&&(n+=t.value)}),this.styles.push(n);break;case el.STYLESHEET:this.styleUrls.push(e.hrefAttr)}return e.nonBindable&&this.ngNonBindableStackCount++,X(this,t.children),e.nonBindable&&this.ngNonBindableStackCount--,null},t.prototype.visitExpansion=function(t){X(this,t.cases)},t.prototype.visitExpansionCase=function(t){X(this,t.expression)},t.prototype.visitComment=function(){return null},t.prototype.visitAttribute=function(){return null},t.prototype.visitText=function(){return null},t}(),vh=this&&this.__decorate||function(t,e,n,r){var i,o=arguments.length,s=3>o?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,r);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(3>o?i(s):o>3?i(e,n,s):i(e,n))||s);return o>3&&s&&Object.defineProperty(e,n,s),s},gh=this&&this.__metadata||function(t,e){return"object"==typeof Reflect&&"function"==typeof Reflect.metadata?Reflect.metadata(t,e):void 0},_h=function(){function t(t){void 0===t&&(t=Po),this._reflector=t}return t.prototype.isDirective=function(t){var n=this._reflector.annotations(e.resolveForwardRef(t));return n&&n.some(qe)},t.prototype.resolve=function(t,n){void 0===n&&(n=!0);var r=this._reflector.annotations(e.resolveForwardRef(t));if(r){var i=io.findLast(r,qe);if(i){var o=this._reflector.propMetadata(t);return this._mergeWithPropertyMetadata(i,o,t)}}if(n)throw new Error("No Directive annotation found on "+s(t));return null},t.prototype._mergeWithPropertyMetadata=function(t,n,r){var i=[],o=[],s={},a={};return Object.keys(n).forEach(function(t){var r=io.findLast(n[t],function(t){return t instanceof e.Input});r&&i.push(r.bindingPropertyName?t+": "+r.bindingPropertyName:t);var u=io.findLast(n[t],function(t){return t instanceof e.Output});u&&o.push(u.bindingPropertyName?t+": "+u.bindingPropertyName:t);var c=n[t].filter(function(t){return t&&t instanceof e.HostBinding});c.forEach(function(e){if(e.hostPropertyName){var n=e.hostPropertyName[0];if("("===n)throw new Error("@HostBinding can not bind to events. Use @HostListener instead.");if("["===n)throw new Error("@HostBinding parameter should be a property name, 'class.<name>', or 'attr.<name>'.");s["["+e.hostPropertyName+"]"]=t}else s["["+t+"]"]=t});var p=n[t].filter(function(t){return t&&t instanceof e.HostListener});p.forEach(function(e){var n=e.args||[];s["("+e.eventName+")"]=t+"("+n.join(",")+")"});var l=io.findLast(n[t],function(t){return t instanceof e.Query});l&&(a[t]=l)}),this._merge(t,i,o,s,a,r)},t.prototype._extractPublicName=function(t){return y(t,[null,t])[1].trim()},t.prototype._dedupeBindings=function(t){for(var e=new Set,n=[],r=t.length-1;r>=0;r--){var i=t[r],o=this._extractPublicName(i);e.has(o)||(e.add(o),n.push(i))}return n.reverse()},t.prototype._merge=function(t,n,r,i,o){var s=this._dedupeBindings(t.inputs?t.inputs.concat(n):n),a=this._dedupeBindings(t.outputs?t.outputs.concat(r):r),u=t.host?ro.merge(t.host,i):i,c=t.queries?ro.merge(t.queries,o):o;return t instanceof e.Component?new e.Component({selector:t.selector,inputs:s,outputs:a,host:u,exportAs:t.exportAs,moduleId:t.moduleId,queries:c,changeDetection:t.changeDetection,providers:t.providers,viewProviders:t.viewProviders,entryComponents:t.entryComponents,template:t.template,templateUrl:t.templateUrl,styles:t.styles,styleUrls:t.styleUrls,encapsulation:t.encapsulation,animations:t.animations,interpolation:t.interpolation}):new e.Directive({selector:t.selector,inputs:s,outputs:a,host:u,exportAs:t.exportAs,queries:c,providers:t.providers})},t=vh([M(),gh("design:paramtypes",[co])],t)}(),bh=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},wh={};wh.Const=0,wh[wh.Const]="Const";var Eh=function(){function t(t){void 0===t&&(t=null),this.modifiers=t,t||(this.modifiers=[])}return t.prototype.visitType=function(){},t.prototype.hasModifier=function(t){return-1!==this.modifiers.indexOf(t)},t}(),Sh={};Sh.Dynamic=0,Sh.Bool=1,Sh.String=2,Sh.Int=3,Sh.Number=4,Sh.Function=5,Sh.Null=6,Sh[Sh.Dynamic]="Dynamic",Sh[Sh.Bool]="Bool",Sh[Sh.String]="String",Sh[Sh.Int]="Int",Sh[Sh.Number]="Number",Sh[Sh.Function]="Function",Sh[Sh.Null]="Null";var Ch=function(t){function e(e,n){void 0===n&&(n=null),t.call(this,n),this.name=e}return bh(e,t),e.prototype.visitType=function(t,e){return t.visitBuiltintType(this,e)},e}(Eh),xh=function(t){function e(e,n,r){void 0===n&&(n=null),void 0===r&&(r=null),t.call(this,r),this.value=e,this.typeParams=n}return bh(e,t),e.prototype.visitType=function(t,e){return t.visitExpressionType(this,e)},e}(Eh),Th=function(t){function e(e,n){void 0===n&&(n=null),t.call(this,n),this.of=e}return bh(e,t),e.prototype.visitType=function(t,e){return t.visitArrayType(this,e)},e}(Eh),Ph=function(t){function e(e,n){void 0===n&&(n=null),t.call(this,n),this.valueType=e}return bh(e,t),e.prototype.visitType=function(t,e){return t.visitMapType(this,e)},e}(Eh),Oh=new Ch(Sh.Dynamic),Ah=new Ch(Sh.Bool),Mh=(new Ch(Sh.Int),new Ch(Sh.Number)),Rh=new Ch(Sh.String),kh=new Ch(Sh.Function),Nh=new Ch(Sh.Null),Ih={};Ih.Equals=0,Ih.NotEquals=1,Ih.Identical=2,Ih.NotIdentical=3,Ih.Minus=4,Ih.Plus=5,Ih.Divide=6,Ih.Multiply=7,Ih.Modulo=8,Ih.And=9,Ih.Or=10,Ih.Lower=11,Ih.LowerEquals=12,Ih.Bigger=13,Ih.BiggerEquals=14,Ih[Ih.Equals]="Equals",Ih[Ih.NotEquals]="NotEquals",Ih[Ih.Identical]="Identical",Ih[Ih.NotIdentical]="NotIdentical",Ih[Ih.Minus]="Minus",Ih[Ih.Plus]="Plus",Ih[Ih.Divide]="Divide",Ih[Ih.Multiply]="Multiply",Ih[Ih.Modulo]="Modulo",Ih[Ih.And]="And",Ih[Ih.Or]="Or",Ih[Ih.Lower]="Lower",Ih[Ih.LowerEquals]="LowerEquals",Ih[Ih.Bigger]="Bigger",Ih[Ih.BiggerEquals]="BiggerEquals";var Dh=function(){function t(t){this.type=t}return t.prototype.visitExpression=function(){},t.prototype.prop=function(t){return new Jh(this,t)},t.prototype.key=function(t,e){return void 0===e&&(e=null),new tf(this,t,e)},t.prototype.callMethod=function(t,e){return new Hh(this,t,e)},t.prototype.callFn=function(t){return new qh(this,t)},t.prototype.instantiate=function(t,e){return void 0===e&&(e=null),new zh(this,t,e)},t.prototype.conditional=function(t,e){return void 0===e&&(e=null),new Kh(this,t,e)},t.prototype.equals=function(t){return new Zh(Ih.Equals,this,t)},t.prototype.notEquals=function(t){return new Zh(Ih.NotEquals,this,t)},t.prototype.identical=function(t){return new Zh(Ih.Identical,this,t)},t.prototype.notIdentical=function(t){return new Zh(Ih.NotIdentical,this,t)},t.prototype.minus=function(t){return new Zh(Ih.Minus,this,t)},t.prototype.plus=function(t){return new Zh(Ih.Plus,this,t)},t.prototype.divide=function(t){return new Zh(Ih.Divide,this,t)},t.prototype.multiply=function(t){return new Zh(Ih.Multiply,this,t)},t.prototype.modulo=function(t){return new Zh(Ih.Modulo,this,t)},t.prototype.and=function(t){return new Zh(Ih.And,this,t)},t.prototype.or=function(t){return new Zh(Ih.Or,this,t)},t.prototype.lower=function(t){return new Zh(Ih.Lower,this,t)},t.prototype.lowerEquals=function(t){return new Zh(Ih.LowerEquals,this,t)},t.prototype.bigger=function(t){return new Zh(Ih.Bigger,this,t)},t.prototype.biggerEquals=function(t){return new Zh(Ih.BiggerEquals,this,t)},t.prototype.isBlank=function(){return this.equals(uf)},t.prototype.cast=function(t){return new Qh(this,t)},t.prototype.toStmt=function(){return new ff(this)},t}(),jh={};jh.This=0,jh.Super=1,jh.CatchError=2,jh.CatchStack=3,jh[jh.This]="This",jh[jh.Super]="Super",jh[jh.CatchError]="CatchError",jh[jh.CatchStack]="CatchStack";var Lh=function(t){function e(e,n){void 0===n&&(n=null),t.call(this,n),"string"==typeof e?(this.name=e,this.builtin=null):(this.name=null,this.builtin=e)}return bh(e,t),e.prototype.visitExpression=function(t,e){return t.visitReadVarExpr(this,e)},e.prototype.set=function(t){return new Vh(this.name,t)},e}(Dh),Vh=function(t){function e(e,n,r){void 0===r&&(r=null),t.call(this,r||n.type),this.name=e,this.value=n}return bh(e,t),e.prototype.visitExpression=function(t,e){return t.visitWriteVarExpr(this,e)},e.prototype.toDeclStmt=function(t,e){return void 0===t&&(t=null),void 0===e&&(e=null),new lf(this.name,this.value,t,e)},e}(Dh),Fh=function(t){function e(e,n,r,i){void 0===i&&(i=null),t.call(this,i||r.type),this.receiver=e,this.index=n,this.value=r}return bh(e,t),e.prototype.visitExpression=function(t,e){return t.visitWriteKeyExpr(this,e)},e}(Dh),Uh=function(t){function e(e,n,r,i){void 0===i&&(i=null),t.call(this,i||r.type),this.receiver=e,this.name=n,this.value=r}return bh(e,t),e.prototype.visitExpression=function(t,e){return t.visitWritePropExpr(this,e)},e}(Dh),Bh={};Bh.ConcatArray=0,Bh.SubscribeObservable=1,Bh.Bind=2,Bh[Bh.ConcatArray]="ConcatArray",Bh[Bh.SubscribeObservable]="SubscribeObservable",Bh[Bh.Bind]="Bind";var Hh=function(t){function e(e,n,r,i){void 0===i&&(i=null),t.call(this,i),this.receiver=e,this.args=r,"string"==typeof n?(this.name=n,this.builtin=null):(this.name=null,this.builtin=n)}return bh(e,t),e.prototype.visitExpression=function(t,e){return t.visitInvokeMethodExpr(this,e)},e}(Dh),qh=function(t){function e(e,n,r){void 0===r&&(r=null),t.call(this,r),this.fn=e,this.args=n}return bh(e,t),e.prototype.visitExpression=function(t,e){return t.visitInvokeFunctionExpr(this,e)},e}(Dh),zh=function(t){function e(e,n,r){t.call(this,r),this.classExpr=e,this.args=n}return bh(e,t),e.prototype.visitExpression=function(t,e){return t.visitInstantiateExpr(this,e)},e}(Dh),Wh=function(t){function e(e,n){void 0===n&&(n=null),t.call(this,n),this.value=e}return bh(e,t),e.prototype.visitExpression=function(t,e){return t.visitLiteralExpr(this,e)},e}(Dh),Gh=function(t){function e(e,n,r){void 0===n&&(n=null),void 0===r&&(r=null),t.call(this,n),this.value=e,this.typeParams=r}return bh(e,t),e.prototype.visitExpression=function(t,e){return t.visitExternalExpr(this,e)},e}(Dh),Kh=function(t){function e(e,n,r,i){void 0===r&&(r=null),void 0===i&&(i=null),t.call(this,i||n.type),this.condition=e,this.falseCase=r,this.trueCase=n}return bh(e,t),e.prototype.visitExpression=function(t,e){return t.visitConditionalExpr(this,e)},e}(Dh),Xh=function(t){function e(e){t.call(this,Ah),this.condition=e}return bh(e,t),e.prototype.visitExpression=function(t,e){return t.visitNotExpr(this,e)},e}(Dh),Qh=function(t){function e(e,n){t.call(this,n),this.value=e}return bh(e,t),e.prototype.visitExpression=function(t,e){return t.visitCastExpr(this,e)},e}(Dh),Yh=function(){function t(t,e){void 0===e&&(e=null),this.name=t,this.type=e}return t}(),$h=function(t){function e(e,n,r){void 0===r&&(r=null),t.call(this,r),this.params=e,this.statements=n}return bh(e,t),e.prototype.visitExpression=function(t,e){return t.visitFunctionExpr(this,e)},e.prototype.toDeclStmt=function(t,e){return void 0===e&&(e=null),new hf(t,this.params,this.statements,this.type,e)},e}(Dh),Zh=function(t){function e(e,n,r,i){void 0===i&&(i=null),t.call(this,i||n.type),this.operator=e,this.rhs=r,this.lhs=n}return bh(e,t),e.prototype.visitExpression=function(t,e){return t.visitBinaryOperatorExpr(this,e)},e}(Dh),Jh=function(t){function e(e,n,r){void 0===r&&(r=null),t.call(this,r),this.receiver=e,this.name=n}return bh(e,t),e.prototype.visitExpression=function(t,e){return t.visitReadPropExpr(this,e)},e.prototype.set=function(t){return new Uh(this.receiver,this.name,t)},e}(Dh),tf=function(t){function e(e,n,r){void 0===r&&(r=null),t.call(this,r),this.receiver=e,this.index=n}return bh(e,t),e.prototype.visitExpression=function(t,e){return t.visitReadKeyExpr(this,e)},e.prototype.set=function(t){return new Fh(this.receiver,this.index,t)},e}(Dh),ef=function(t){function e(e,n){void 0===n&&(n=null),t.call(this,n),this.entries=e}return bh(e,t),e.prototype.visitExpression=function(t,e){return t.visitLiteralArrayExpr(this,e)},e}(Dh),nf=function(){function t(t,e,n){void 0===n&&(n=!1),this.key=t,this.value=e,this.quoted=n}return t}(),rf=function(t){function e(e,n){void 0===n&&(n=null),t.call(this,n),this.entries=e,this.valueType=null,r(n)&&(this.valueType=n.valueType)}return bh(e,t),e.prototype.visitExpression=function(t,e){return t.visitLiteralMapExpr(this,e)},e}(Dh),of=new Lh(jh.This),sf=new Lh(jh.Super),af=(new Lh(jh.CatchError),new Lh(jh.CatchStack),new Wh(null,null)),uf=new Wh(null,Nh),cf={};cf.Final=0,cf.Private=1,cf[cf.Final]="Final",cf[cf.Private]="Private";var pf=function(){function t(t){void 0===t&&(t=null),this.modifiers=t,t||(this.modifiers=[])}return t.prototype.visitStatement=function(){},t.prototype.hasModifier=function(t){return-1!==this.modifiers.indexOf(t)},t}(),lf=function(t){function e(e,n,r,i){void 0===r&&(r=null),void 0===i&&(i=null),t.call(this,i),this.name=e,this.value=n,this.type=r||n.type}return bh(e,t),e.prototype.visitStatement=function(t,e){return t.visitDeclareVarStmt(this,e)},e}(pf),hf=function(t){function e(e,n,r,i,o){void 0===i&&(i=null),void 0===o&&(o=null),t.call(this,o),this.name=e,this.params=n,this.statements=r,this.type=i}return bh(e,t),e.prototype.visitStatement=function(t,e){return t.visitDeclareFunctionStmt(this,e)},e}(pf),ff=function(t){function e(e){t.call(this),this.expr=e}return bh(e,t),e.prototype.visitStatement=function(t,e){return t.visitExpressionStmt(this,e)},e}(pf),df=function(t){function e(e){t.call(this),this.value=e}return bh(e,t),e.prototype.visitStatement=function(t,e){return t.visitReturnStmt(this,e)},e}(pf),yf=function(){function t(t,e){void 0===t&&(t=null),this.type=t,this.modifiers=e,e||(this.modifiers=[])}return t.prototype.hasModifier=function(t){return-1!==this.modifiers.indexOf(t)},t}(),mf=function(t){function e(e,n,r){void 0===n&&(n=null),void 0===r&&(r=null),t.call(this,n,r),this.name=e}return bh(e,t),e}(yf),vf=function(t){function e(e,n,r,i,o){void 0===i&&(i=null),void 0===o&&(o=null),t.call(this,i,o),this.name=e,this.params=n,this.body=r}return bh(e,t),e}(yf),gf=function(t){function e(e,n,r,i){void 0===r&&(r=null),void 0===i&&(i=null),t.call(this,r,i),this.name=e,this.body=n}return bh(e,t),e}(yf),_f=function(t){function e(e,n,r,i,o,s,a){void 0===a&&(a=null),t.call(this,a),this.name=e,this.parent=n,this.fields=r,this.getters=i,this.constructorMethod=o,this.methods=s}return bh(e,t),e.prototype.visitStatement=function(t,e){return t.visitDeclareClassStmt(this,e)},e}(pf),bf=function(t){function e(e,n,r){void 0===r&&(r=[]),t.call(this),this.condition=e,this.trueCase=n,this.falseCase=r}return bh(e,t),e.prototype.visitStatement=function(t,e){return t.visitIfStmt(this,e)},e}(pf),wf=(function(t){function e(e){t.call(this),this.comment=e}return bh(e,t),e.prototype.visitStatement=function(t,e){return t.visitCommentStmt(this,e)},e}(pf),function(t){function e(e,n){t.call(this),this.bodyStmts=e,this.catchStmts=n}return bh(e,t),e.prototype.visitStatement=function(t,e){return t.visitTryCatchStmt(this,e)},e}(pf)),Ef=function(t){function e(e){t.call(this),this.error=e}return bh(e,t),e.prototype.visitStatement=function(t,e){return t.visitThrowStmt(this,e)},e}(pf),Sf=function(){function t(){}return t.prototype.visitReadVarExpr=function(t){return t},t.prototype.visitWriteVarExpr=function(t,e){return new Vh(t.name,t.value.visitExpression(this,e))},t.prototype.visitWriteKeyExpr=function(t,e){return new Fh(t.receiver.visitExpression(this,e),t.index.visitExpression(this,e),t.value.visitExpression(this,e))},t.prototype.visitWritePropExpr=function(t,e){return new Uh(t.receiver.visitExpression(this,e),t.name,t.value.visitExpression(this,e))},t.prototype.visitInvokeMethodExpr=function(t,e){var n=t.builtin||t.name;return new Hh(t.receiver.visitExpression(this,e),n,this.visitAllExpressions(t.args,e),t.type)},t.prototype.visitInvokeFunctionExpr=function(t,e){return new qh(t.fn.visitExpression(this,e),this.visitAllExpressions(t.args,e),t.type)},t.prototype.visitInstantiateExpr=function(t,e){return new zh(t.classExpr.visitExpression(this,e),this.visitAllExpressions(t.args,e),t.type)},t.prototype.visitLiteralExpr=function(t){return t},t.prototype.visitExternalExpr=function(t){return t},t.prototype.visitConditionalExpr=function(t,e){return new Kh(t.condition.visitExpression(this,e),t.trueCase.visitExpression(this,e),t.falseCase.visitExpression(this,e))},t.prototype.visitNotExpr=function(t,e){return new Xh(t.condition.visitExpression(this,e))},t.prototype.visitCastExpr=function(t,e){return new Qh(t.value.visitExpression(this,e),e)},t.prototype.visitFunctionExpr=function(t){return t},t.prototype.visitBinaryOperatorExpr=function(t,e){return new Zh(t.operator,t.lhs.visitExpression(this,e),t.rhs.visitExpression(this,e),t.type)},t.prototype.visitReadPropExpr=function(t,e){return new Jh(t.receiver.visitExpression(this,e),t.name,t.type)},t.prototype.visitReadKeyExpr=function(t,e){return new tf(t.receiver.visitExpression(this,e),t.index.visitExpression(this,e),t.type)},t.prototype.visitLiteralArrayExpr=function(t,e){return new ef(this.visitAllExpressions(t.entries,e))},t.prototype.visitLiteralMapExpr=function(t,e){var n=this,r=t.entries.map(function(t){return new nf(t.key,t.value.visitExpression(n,e),t.quoted)});return new rf(r)},t.prototype.visitAllExpressions=function(t,e){var n=this;return t.map(function(t){return t.visitExpression(n,e)})},t.prototype.visitDeclareVarStmt=function(t,e){return new lf(t.name,t.value.visitExpression(this,e),t.type,t.modifiers)},t.prototype.visitDeclareFunctionStmt=function(t){return t},t.prototype.visitExpressionStmt=function(t,e){return new ff(t.expr.visitExpression(this,e))},t.prototype.visitReturnStmt=function(t,e){return new df(t.value.visitExpression(this,e))},t.prototype.visitDeclareClassStmt=function(t){return t},t.prototype.visitIfStmt=function(t,e){return new bf(t.condition.visitExpression(this,e),this.visitAllStatements(t.trueCase,e),this.visitAllStatements(t.falseCase,e))},t.prototype.visitTryCatchStmt=function(t,e){return new wf(this.visitAllStatements(t.bodyStmts,e),this.visitAllStatements(t.catchStmts,e))},t.prototype.visitThrowStmt=function(t,e){return new Ef(t.error.visitExpression(this,e))},t.prototype.visitCommentStmt=function(t){return t},t.prototype.visitAllStatements=function(t,e){var n=this;return t.map(function(t){return t.visitStatement(n,e)})},t}(),Cf=function(){function t(){}return t.prototype.visitReadVarExpr=function(t){return t},t.prototype.visitWriteVarExpr=function(t,e){return t.value.visitExpression(this,e),t},t.prototype.visitWriteKeyExpr=function(t,e){return t.receiver.visitExpression(this,e),t.index.visitExpression(this,e),t.value.visitExpression(this,e),t},t.prototype.visitWritePropExpr=function(t,e){return t.receiver.visitExpression(this,e),t.value.visitExpression(this,e),t},t.prototype.visitInvokeMethodExpr=function(t,e){return t.receiver.visitExpression(this,e),this.visitAllExpressions(t.args,e),t},t.prototype.visitInvokeFunctionExpr=function(t,e){return t.fn.visitExpression(this,e),this.visitAllExpressions(t.args,e),t},t.prototype.visitInstantiateExpr=function(t,e){return t.classExpr.visitExpression(this,e),this.visitAllExpressions(t.args,e),t},t.prototype.visitLiteralExpr=function(t){return t},t.prototype.visitExternalExpr=function(t){return t},t.prototype.visitConditionalExpr=function(t,e){return t.condition.visitExpression(this,e),t.trueCase.visitExpression(this,e),t.falseCase.visitExpression(this,e),t},t.prototype.visitNotExpr=function(t,e){return t.condition.visitExpression(this,e),t},t.prototype.visitCastExpr=function(t,e){return t.value.visitExpression(this,e),t},t.prototype.visitFunctionExpr=function(t){return t},t.prototype.visitBinaryOperatorExpr=function(t,e){return t.lhs.visitExpression(this,e),t.rhs.visitExpression(this,e),t},t.prototype.visitReadPropExpr=function(t,e){return t.receiver.visitExpression(this,e),t},t.prototype.visitReadKeyExpr=function(t,e){return t.receiver.visitExpression(this,e),t.index.visitExpression(this,e),t},t.prototype.visitLiteralArrayExpr=function(t,e){return this.visitAllExpressions(t.entries,e),t},t.prototype.visitLiteralMapExpr=function(t,e){var n=this;return t.entries.forEach(function(t){return t.value.visitExpression(n,e)}),t},t.prototype.visitAllExpressions=function(t,e){var n=this;t.forEach(function(t){return t.visitExpression(n,e)})},t.prototype.visitDeclareVarStmt=function(t,e){return t.value.visitExpression(this,e),t},t.prototype.visitDeclareFunctionStmt=function(t){return t},t.prototype.visitExpressionStmt=function(t,e){return t.expr.visitExpression(this,e),t},t.prototype.visitReturnStmt=function(t,e){return t.value.visitExpression(this,e),t},t.prototype.visitDeclareClassStmt=function(t){return t},t.prototype.visitIfStmt=function(t,e){return t.condition.visitExpression(this,e),this.visitAllStatements(t.trueCase,e),this.visitAllStatements(t.falseCase,e),t},t.prototype.visitTryCatchStmt=function(t,e){return this.visitAllStatements(t.bodyStmts,e),this.visitAllStatements(t.catchStmts,e),t},t.prototype.visitThrowStmt=function(t,e){return t.error.visitExpression(this,e),t},t.prototype.visitCommentStmt=function(t){return t},t.prototype.visitAllStatements=function(t,e){var n=this;t.forEach(function(t){return t.visitStatement(n,e)})},t}(),xf=function(t){function e(e,n){t.call(this),this._varName=e,this._newValue=n}return bh(e,t),e.prototype.visitReadVarExpr=function(t){return t.name==this._varName?this._newValue:t},e}(Sf),Tf=function(t){function e(){t.apply(this,arguments),this.varNames=new Set}return bh(e,t),e.prototype.visitReadVarExpr=function(t){return this.varNames.add(t.name),null},e}(Cf),Pf=function(){function t(t,e){this.expression=t,this.bindingId=e}return t}(),Of=Ge("valUnwrapper"),Af=function(){function t(){}return t.event=Ge("$event"),t}(),Mf=function(){function t(t,e,n){this.stmts=t,this.currValExpr=e,this.forceUpdate=n}return t}(),Rf=function(){function t(t,e){this.stmts=t,this.preventDefault=e}return t}(),kf={};kf.Statement=0,kf.Expression=1,kf[kf.Statement]="Statement",kf[kf.Expression]="Expression";var Nf=function(){function t(t,e,n,r,i,o){this._builder=t,this._nameResolver=e,this._implicitReceiver=n,this._valueUnwrapper=r,this.bindingId=i,this.isAction=o,this._nodeMap=new Map,this._resultMap=new Map,this._currentTemporary=0,this.needsValueUnwrapper=!1,this.temporaryCount=0}return t.prototype.visitBinary=function(t,e){var n;switch(t.operation){case"+":n=Ih.Plus;break;case"-":n=Ih.Minus;break;case"*":n=Ih.Multiply;break;case"/":n=Ih.Divide;break;case"%":n=Ih.Modulo;break;case"&&":n=Ih.And;break;case"||":n=Ih.Or;break;case"==":n=Ih.Equals;break;case"!=":n=Ih.NotEquals;break;case"===":n=Ih.Identical;break;case"!==":n=Ih.NotIdentical;break;case"<":n=Ih.Lower;break;case">":n=Ih.Bigger;break;case"<=":n=Ih.LowerEquals;break;case">=":n=Ih.BiggerEquals;break;default:throw new Error("Unsupported operation "+t.operation)}return vn(e,new Zh(n,this.visit(t.left,kf.Expression),this.visit(t.right,kf.Expression)))},t.prototype.visitChain=function(t,e){return yn(e,t),this.visitAll(t.expressions,e)},t.prototype.visitConditional=function(t,e){var n=this.visit(t.condition,kf.Expression);return vn(e,n.conditional(this.visit(t.trueExp,kf.Expression),this.visit(t.falseExp,kf.Expression)))},t.prototype.visitPipe=function(t,e){var n=this.visit(t.exp,kf.Expression),r=this.visitAll(t.args,kf.Expression),i=this._nameResolver.callPipe(t.name,n,r);if(!i)throw new Error("Illegal state: Pipe "+t.name+" is not allowed here!");return this.needsValueUnwrapper=!0,vn(e,this._valueUnwrapper.callMethod("unwrap",[i]))},t.prototype.visitFunctionCall=function(t,e){return vn(e,this.visit(t.target,kf.Expression).callFn(this.visitAll(t.args,kf.Expression)))},t.prototype.visitImplicitReceiver=function(t,e){return mn(e,t),this._implicitReceiver},t.prototype.visitInterpolation=function(t,e){mn(e,t);for(var n=[tn(t.expressions.length)],r=0;r<t.strings.length-1;r++)n.push(tn(t.strings[r])),n.push(this.visit(t.expressions[r],kf.Expression));return n.push(tn(t.strings[t.strings.length-1])),t.expressions.length<=9?Ke(Yt(_p.inlineInterpolate)).callFn(n):Ke(Yt(_p.interpolate)).callFn([n[0],Ye(n.slice(1))])},t.prototype.visitKeyedRead=function(t,e){var n=this.leftMostSafeNode(t);return n?this.convertSafeAccess(t,n,e):vn(e,this.visit(t.obj,kf.Expression).key(this.visit(t.key,kf.Expression)))},t.prototype.visitKeyedWrite=function(t,e){var n=this.visit(t.obj,kf.Expression),r=this.visit(t.key,kf.Expression),i=this.visit(t.value,kf.Expression);return vn(e,n.key(r).set(i))},t.prototype.visitLiteralArray=function(t,e){var n=this.visitAll(t.expressions,e),r=this.isAction?Ye(n):_n(this._builder,n);return vn(e,r)},t.prototype.visitLiteralMap=function(t,e){for(var n=[],r=0;r<t.keys.length;r++)n.push([t.keys[r],this.visit(t.values[r],kf.Expression)]);var i=this.isAction?$e(n):bn(this._builder,n);return vn(e,i)},t.prototype.visitLiteralPrimitive=function(t,e){return vn(e,tn(t.value))},t.prototype._getLocal=function(t){return this.isAction&&t==Af.event.name?Af.event:this._nameResolver.getLocal(t)},t.prototype.visitMethodCall=function(t,e){var n=this.leftMostSafeNode(t);if(n)return this.convertSafeAccess(t,n,e);var r=this.visitAll(t.args,kf.Expression),o=null,s=this.visit(t.receiver,kf.Expression);if(s===this._implicitReceiver){var a=this._getLocal(t.name);a&&(o=a.callFn(r))}return i(o)&&(o=s.callMethod(t.name,r)),vn(e,o)},t.prototype.visitPrefixNot=function(t,e){return vn(e,Ze(this.visit(t.expression,kf.Expression)))},t.prototype.visitPropertyRead=function(t,e){var n=this.leftMostSafeNode(t);if(n)return this.convertSafeAccess(t,n,e);var r=null,o=this.visit(t.receiver,kf.Expression);return o===this._implicitReceiver&&(r=this._getLocal(t.name)),i(r)&&(r=o.prop(t.name)),vn(e,r)},t.prototype.visitPropertyWrite=function(t,e){var n=this.visit(t.receiver,kf.Expression);if(n===this._implicitReceiver){var r=this._getLocal(t.name);if(r)throw new Error("Cannot assign to a reference or variable!")}return vn(e,n.prop(t.name).set(this.visit(t.value,kf.Expression)))},t.prototype.visitSafePropertyRead=function(t,e){return this.convertSafeAccess(t,this.leftMostSafeNode(t),e)},t.prototype.visitSafeMethodCall=function(t,e){return this.convertSafeAccess(t,this.leftMostSafeNode(t),e)},t.prototype.visitAll=function(t,e){var n=this;return t.map(function(t){return n.visit(t,e)})},t.prototype.visitQuote=function(){throw new Error("Quotes are not supported for evaluation!")},t.prototype.visit=function(t,e){var n=this._resultMap.get(t);return n?n:(this._nodeMap.get(t)||t).visit(this,e)},t.prototype.convertSafeAccess=function(t,e,n){var r,i=this.visit(e.receiver,kf.Expression);this.needsTemporary(e.receiver)&&(r=this.allocateTemporary(),i=r.set(i),this._resultMap.set(e.receiver,r));var o=i.isBlank();e instanceof iu?this._nodeMap.set(e,new ru(e.span,e.receiver,e.name,e.args)):this._nodeMap.set(e,new Wa(e.span,e.receiver,e.name));var s=this.visit(t,kf.Expression);return this._nodeMap["delete"](e),r&&this.releaseTemporary(r),vn(n,o.conditional(tn(null),s))},t.prototype.leftMostSafeNode=function(t){var e=this,n=function(t,n){return(e._nodeMap.get(n)||n).visit(t)};return t.visit({visitBinary:function(){return null},visitChain:function(){return null},visitConditional:function(){return null},visitFunctionCall:function(){return null},visitImplicitReceiver:function(){return null},visitInterpolation:function(){return null},visitKeyedRead:function(t){return n(this,t.obj)},visitKeyedWrite:function(){return null},visitLiteralArray:function(){return null},visitLiteralMap:function(){return null},visitLiteralPrimitive:function(){return null},visitMethodCall:function(t){return n(this,t.receiver)},visitPipe:function(){return null},visitPrefixNot:function(){return null},visitPropertyRead:function(t){return n(this,t.receiver)},visitPropertyWrite:function(){return null},visitQuote:function(){return null},visitSafeMethodCall:function(t){return n(this,t.receiver)||t},visitSafePropertyRead:function(t){return n(this,t.receiver)||t}})},t.prototype.needsTemporary=function(t){var e=this,n=function(t,n){return n&&(e._nodeMap.get(n)||n).visit(t)},r=function(t,e){return e.some(function(e){return n(t,e)})};return t.visit({visitBinary:function(t){return n(this,t.left)||n(this,t.right)},visitChain:function(){return!1},visitConditional:function(t){return n(this,t.condition)||n(this,t.trueExp)||n(this,t.falseExp)},visitFunctionCall:function(){return!0},visitImplicitReceiver:function(){ -return!1},visitInterpolation:function(t){return r(this,t.expressions)},visitKeyedRead:function(){return!1},visitKeyedWrite:function(){return!1},visitLiteralArray:function(){return!0},visitLiteralMap:function(){return!0},visitLiteralPrimitive:function(){return!1},visitMethodCall:function(){return!0},visitPipe:function(){return!0},visitPrefixNot:function(t){return n(this,t.expression)},visitPropertyRead:function(){return!1},visitPropertyWrite:function(){return!1},visitQuote:function(){return!1},visitSafeMethodCall:function(){return!0},visitSafePropertyRead:function(){return!1}})},t.prototype.allocateTemporary=function(){var t=this._currentTemporary++;return this.temporaryCount=Math.max(this._currentTemporary,this.temporaryCount),new Lh(hn(this.bindingId,t))},t.prototype.releaseTemporary=function(t){if(this._currentTemporary--,t.name!=hn(this.bindingId,this._currentTemporary))throw new Error("Temporary "+t.name+" released out of order")},t}(),If=function(){function t(){}return t.prototype.callPipe=function(){return null},t.prototype.getLocal=function(){return null},t}(),Df=this&&this.__decorate||function(t,e,n,r){var i,o=arguments.length,s=3>o?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,r);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(3>o?i(s):o>3?i(e,n,s):i(e,n))||s);return o>3&&s&&Object.defineProperty(e,n,s),s},jf=this&&this.__metadata||function(t,e){return"object"==typeof Reflect&&"function"==typeof Reflect.metadata?Reflect.metadata(t,e):void 0},Lf=function(){function t(t,e){this.statements=t,this.dirWrapperClassVar=e}return t}(),Vf="context",Ff="_changes",Uf="_changed",Bf="_eventHandler",Hf=Ge("currValue"),qf=Ge("throwOnChange"),zf=Ge("forceUpdate"),Wf=Ge("view"),Gf=Ge("componentView"),Kf=Ge("el"),Xf=Ge("eventName"),Qf=of.prop(Ff).set($e([])).toStmt(),Yf=function(){function t(t,e,n,r){this.compilerConfig=t,this._exprParser=e,this._schemaRegistry=n,this._console=r}return t.dirWrapperClassName=function(t){return"Wrapper_"+b(t)},t.prototype.compile=function(t){var e=In(t,this._exprParser,this._schemaRegistry);Dn(e.errors,this._console);var n=new $f(this.compilerConfig,t);Object.keys(t.inputs).forEach(function(t){Mn(t,n)}),An(n),Rn(e.hostProps,e.hostListeners,n),kn(e.hostListeners,n),Nn(t,n);var r=n.build();return new Lf([r],r.name)},t=Df([M(),jf("design:paramtypes",[kl,wu,Mp,To])],t)}(),$f=function(){function t(t,e){this.compilerConfig=t,this.dirMeta=e,this.fields=[],this.getters=[],this.methods=[],this.ctorStmts=[],this.detachStmts=[],this.destroyStmts=[];var n=e.type.lifecycleHooks;this.genChanges=-1!==n.indexOf(ao.OnChanges)||this.compilerConfig.logBindingUpdate,this.ngOnChanges=-1!==n.indexOf(ao.OnChanges),this.ngOnInit=-1!==n.indexOf(ao.OnInit),this.ngDoCheck=-1!==n.indexOf(ao.DoCheck),this.ngOnDestroy=-1!==n.indexOf(ao.OnDestroy),this.ngOnDestroy&&this.destroyStmts.push(of.prop(Vf).callMethod("ngOnDestroy",[]).toStmt())}return t.prototype.build=function(){for(var t=[],e=0;e<this.dirMeta.type.diDeps.length;e++)t.push("p"+e);var n=[new vf("ngOnDetach",[new Yh(Wf.name,Xe(Yt(_p.AppView),[Oh])),new Yh(Gf.name,Xe(Yt(_p.AppView),[Oh])),new Yh(Kf.name,Oh)],this.detachStmts),new vf("ngOnDestroy",[],this.destroyStmts)],r=[new mf(Bf,kh,[cf.Private]),new mf(Vf,Xe(this.dirMeta.type)),new mf(Uf,Ah,[cf.Private])],i=[of.prop(Uf).set(tn(!1)).toStmt()];return this.genChanges&&(r.push(new mf(Ff,new Ph(Oh),[cf.Private])),i.push(Qf)),i.push(of.prop(Vf).set(Ke(this.dirMeta.type).instantiate(t.map(function(t){return Ge(t)}))).toStmt()),Pn({name:Yf.dirWrapperClassName(this.dirMeta.type),ctorParams:t.map(function(t){return new Yh(t,Oh)}),builders:[{fields:r,ctorStmts:i,methods:n},this]})},t}(),Zf=function(){function t(t,e,n){this.hostProps=t,this.hostListeners=e,this.errors=n}return t}(),Jf=function(){function t(){}return t.create=function(t,e){return Ke(t).instantiate(e,Xe(t))},t.context=function(t){return t.prop(Vf)},t.ngDoCheck=function(t,e,n,r){return t.callMethod("ngDoCheck",[e,n,r])},t.checkHost=function(t,e,n,r,i,o,s){return t.length?[e.callMethod("checkHost",[n,r,i,o].concat(s)).toStmt()]:[]},t.ngOnDetach=function(t,e,n,r,i){return t.some(function(t){return t.isAnimation})?[e.callMethod("ngOnDetach",[n,r,i]).toStmt()]:[]},t.ngOnDestroy=function(t,e){return-1!==t.type.lifecycleHooks.indexOf(ao.OnDestroy)||Object.keys(t.outputs).length>0?[e.callMethod("ngOnDestroy",[]).toStmt()]:[]},t.subscribe=function(t,e,n,r,i,o){var s=!1,a=[];return Object.keys(t.outputs).forEach(function(e){var r=t.outputs[e],i=n.indexOf(r)>-1;s=s||i,a.push(tn(i))}),e.forEach(function(t){t.isAnimation&&n.length>0&&(s=!0)}),s?[r.callMethod("subscribe",[i,o].concat(a)).toStmt()]:[]},t.handleEvent=function(t,e,n,r){return e.callMethod("handleEvent",[n,r])},t}(),td=this&&this.__decorate||function(t,e,n,r){var i,o=arguments.length,s=3>o?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,r);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(3>o?i(s):o>3?i(e,n,s):i(e,n))||s);return o>3&&s&&Object.defineProperty(e,n,s),s},ed=this&&this.__metadata||function(t,e){return"object"==typeof Reflect&&"function"==typeof Reflect.metadata?Reflect.metadata(t,e):void 0},nd=function(){function t(t){void 0===t&&(t=Po),this._reflector=t}return t.prototype.isNgModule=function(t){return this._reflector.annotations(t).some(Vn)},t.prototype.resolve=function(t,e){void 0===e&&(e=!0);var n=io.findLast(this._reflector.annotations(t),Vn);if(n)return n;if(e)throw new Error("No NgModule metadata found for '"+s(t)+"'.");return null},t=td([M(),ed("design:paramtypes",[co])],t)}(),rd=this&&this.__decorate||function(t,e,n,r){var i,o=arguments.length,s=3>o?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,r);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(3>o?i(s):o>3?i(e,n,s):i(e,n))||s);return o>3&&s&&Object.defineProperty(e,n,s),s},id=this&&this.__metadata||function(t,e){return"object"==typeof Reflect&&"function"==typeof Reflect.metadata?Reflect.metadata(t,e):void 0},od=function(){function t(t){void 0===t&&(t=Po),this._reflector=t}return t.prototype.isPipe=function(t){var n=this._reflector.annotations(e.resolveForwardRef(t));return n&&n.some(Fn)},t.prototype.resolve=function(t,n){void 0===n&&(n=!0);var r=this._reflector.annotations(e.resolveForwardRef(t));if(r){var i=io.findLast(r,Fn);if(i)return i}if(n)throw new Error("No Pipe decorator found on "+s(t));return null},t=rd([M(),id("design:paramtypes",[co])],t)}(),sd=this&&this.__decorate||function(t,e,n,r){var i,o=arguments.length,s=3>o?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,r);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(3>o?i(s):o>3?i(e,n,s):i(e,n))||s);return o>3&&s&&Object.defineProperty(e,n,s),s},ad=this&&this.__metadata||function(t,e){return"object"==typeof Reflect&&"function"==typeof Reflect.metadata?Reflect.metadata(t,e):void 0},ud=function(){function t(){}return t.prototype.resolveSummary=function(){return null},t.prototype.getSymbolsOf=function(){return[]},t=sd([M(),ad("design:paramtypes",[])],t)}(),cd=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},pd=this&&this.__decorate||function(t,e,n,r){var i,o=arguments.length,s=3>o?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,r);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(3>o?i(s):o>3?i(e,n,s):i(e,n))||s);return o>3&&s&&Object.defineProperty(e,n,s),s},ld=this&&this.__metadata||function(t,e){return"object"==typeof Reflect&&"function"==typeof Reflect.metadata?Reflect.metadata(t,e):void 0},hd=new e.OpaqueToken("ErrorCollector"),fd=function(){function t(t,e,n,r,i,o,s,a){void 0===s&&(s=Po),this._ngModuleResolver=t,this._directiveResolver=e,this._pipeResolver=n,this._summaryResolver=r,this._schemaRegistry=i,this._directiveNormalizer=o,this._reflector=s,this._errorCollector=a,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._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._summaryCache.clear(),this._pipeCache.clear(),this._ngModuleCache.clear(),this._ngModuleOfTypes.clear(),this._directiveNormalizer.clearCache()},t.prototype.getAnimationEntryMetadata=function(t){var e=this,n=t.definitions.map(function(t){return e._getAnimationStateMetadata(t)});return new hs(t.name,n)},t.prototype._getAnimationStateMetadata=function(t){if(t instanceof e.AnimationStateDeclarationMetadata){var n=this._getAnimationStyleMetadata(t.styles);return new ds(t.stateNameExpr,n)}return t instanceof e.AnimationStateTransitionMetadata?new ys(t.stateChangeExpr,this._getAnimationMetadata(t.steps)):null},t.prototype._getAnimationStyleMetadata=function(t){return new gs(t.offset,t.styles)},t.prototype._getAnimationMetadata=function(t){var n=this;if(t instanceof e.AnimationStyleMetadata)return this._getAnimationStyleMetadata(t);if(t instanceof e.AnimationKeyframesSequenceMetadata)return new vs(t.steps.map(function(t){return n._getAnimationStyleMetadata(t)}));if(t instanceof e.AnimationAnimateMetadata){var r=this._getAnimationMetadata(t.styles);return new _s(t.timings,r)}if(t instanceof e.AnimationWithStepsMetadata){var i=t.steps.map(function(t){return n._getAnimationMetadata(t)});return t instanceof e.AnimationGroupMetadata?new Es(i):new ws(i)}return null},t.prototype._loadSummary=function(t,e){var n=this._summaryCache.get(t);if(!n){var r=this._summaryResolver.resolveSummary(t);n=r?r.type:null,this._summaryCache.set(t,n)}return n&&n.summaryKind===e?n:null},t.prototype._loadDirectiveMetadata=function(t,n){var r=this;if(!this._directiveCache.has(t)){t=e.resolveForwardRef(t);var i=this.getNonNormalizedDirectiveMetadata(t),o=i.annotation,s=i.metadata,a=function(e){var n=new Ps({type:s.type,isComponent:s.isComponent,selector:s.selector,exportAs:s.exportAs,changeDetection:s.changeDetection,inputs:s.inputs,outputs:s.outputs,hostListeners:s.hostListeners,hostProperties:s.hostProperties,hostAttributes:s.hostAttributes,providers:s.providers,viewProviders:s.viewProviders,queries:s.queries,viewQueries:s.viewQueries,entryComponents:s.entryComponents,template:e});return r._directiveCache.set(t,n),r._summaryCache.set(t,n.toSummary()),n};if(s.isComponent){var u=this._directiveNormalizer.normalizeTemplate({componentType:t,moduleUrl:zn(this._reflector,t,o),encapsulation:s.template.encapsulation,template:s.template.template,templateUrl:s.template.templateUrl,styles:s.template.styles,styleUrls:s.template.styleUrls,animations:s.template.animations,interpolation:s.template.interpolation});return u.syncResult?(a(u.syncResult),null):n?(this._reportError(new zo(t),t),null):u.asyncResult.then(a)}return a(null),null}},t.prototype.getNonNormalizedDirectiveMetadata=function(t){var n=this;t=e.resolveForwardRef(t);var i=this._directiveResolver.resolve(t);if(!i)return null;var o;if(i instanceof e.Component){R("styles",i.styles),R("styleUrls",i.styleUrls),k("interpolation",i.interpolation);var s=i.animations?i.animations.map(function(t){return n.getAnimationEntryMetadata(t)}):null;o=new Ts({encapsulation:i.encapsulation,template:i.template,templateUrl:i.templateUrl,styles:i.styles,styleUrls:i.styleUrls,animations:s,interpolation:i.interpolation})}var a=null,u=[],c=[],p=i.selector;i instanceof e.Component?(a=i.changeDetection,i.viewProviders&&(u=this._getProvidersMetadata(i.viewProviders,c,'viewProviders for "'+Gn(t)+'"',[],t)),i.entryComponents&&(c=Hn(i.entryComponents).map(function(t){return n._getIdentifierMetadata(t)}).concat(c)),p||(p=this._schemaRegistry.getDefaultComponentElementName())):p||(this._reportError(new cs("Directive "+Gn(t)+" has no selector, please add it!"),t),p="error");var l=[];r(i.providers)&&(l=this._getProvidersMetadata(i.providers,c,'providers for "'+Gn(t)+'"',[],t));var h=[],f=[];r(i.queries)&&(h=this._getQueriesMetadata(i.queries,!1,t),f=this._getQueriesMetadata(i.queries,!0,t));var d=Ps.create({selector:p,exportAs:i.exportAs,isComponent:!!o,type:this._getTypeMetadata(t),template:o,changeDetection:a,inputs:i.inputs,outputs:i.outputs,host:i.host,providers:l,viewProviders:u,queries:h,viewQueries:f,entryComponents:c});return{metadata:d,annotation:i}},t.prototype.getDirectiveMetadata=function(t){var e=this._directiveCache.get(t);return e||this._reportError(new cs("Illegal state: getDirectiveMetadata can only be called after loadNgModuleDirectiveAndPipeMetadata for a module that declares it. Directive "+Gn(t)+"."),t),e},t.prototype.getDirectiveSummary=function(t){var e=this._loadSummary(t,Cs.Directive);return e||this._reportError(new cs("Illegal state: Could not load the summary for directive "+Gn(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,Cs.NgModule);if(!e){var n=this.getNgModuleMetadata(t,!1);e=n?n.toSummary():null,e&&this._summaryCache.set(t,e)}return e},t.prototype.loadNgModuleDirectiveAndPipeMetadata=function(t,e,n){var r=this;void 0===n&&(n=!0);var i=this.getNgModuleMetadata(t,n),o=[];return i&&(i.declaredDirectives.forEach(function(t){var n=r._loadDirectiveMetadata(t.reference,e);n&&o.push(n)}),i.declaredPipes.forEach(function(t){return r._loadPipeMetadata(t.reference)})),Promise.all(o)},t.prototype.getNgModuleMetadata=function(t,n){var r=this;void 0===n&&(n=!0),t=e.resolveForwardRef(t);var i=this._ngModuleCache.get(t);if(i)return i;var o=this._ngModuleResolver.resolve(t,n);if(!o)return null;var s=[],a=[],u=[],c=[],p=[],l=[],h=[],f=[],d=[];o.imports&&Hn(o.imports).forEach(function(e){var n;if(qn(e))n=e;else if(e&&e.ngModule){var i=e;n=i.ngModule,i.providers&&l.push.apply(l,r._getProvidersMetadata(i.providers,h,"provider for the NgModule '"+Gn(n)+"'",[],e))}if(!n)return void r._reportError(new cs("Unexpected value '"+Gn(e)+"' imported by the module '"+Gn(t)+"'"),t);var o=r.getNgModuleSummary(n);return o?void c.push(o):void r._reportError(new cs("Unexpected "+r._getTypeDescriptor(e)+" '"+Gn(e)+"' imported by the module '"+Gn(t)+"'"),t)}),o.exports&&Hn(o.exports).forEach(function(e){if(!qn(e))return void r._reportError(new cs("Unexpected value '"+Gn(e)+"' exported by the module '"+Gn(t)+"'"),t);var n=r.getNgModuleSummary(e);n?p.push(n):a.push(r._getIdentifierMetadata(e))});var y=this._getTransitiveNgModuleMetadata(c,p);o.declarations&&Hn(o.declarations).forEach(function(e){if(!qn(e))return void r._reportError(new cs("Unexpected value '"+Gn(e)+"' declared by the module '"+Gn(t)+"'"),t);var n=r._getIdentifierMetadata(e);if(r._directiveResolver.isDirective(e))y.addDirective(n),s.push(n),r._addTypeToModule(e,t);else{if(!r._pipeResolver.isPipe(e))return void r._reportError(new cs("Unexpected "+r._getTypeDescriptor(e)+" '"+Gn(e)+"' declared by the module '"+Gn(t)+"'"),t);y.addPipe(n),y.pipes.push(n),u.push(n),r._addTypeToModule(e,t)}});var m=[],v=[];return a.forEach(function(e){y.directivesSet.has(e.reference)?(m.push(e),y.addExportedDirective(e)):y.pipesSet.has(e.reference)?(v.push(e),y.addExportedPipe(e)):r._reportError(new cs("Can't export "+r._getTypeDescriptor(e.reference)+" "+Gn(e.reference)+" from "+Gn(t)+" as it was neither declared nor imported!"),t)}),o.providers&&l.push.apply(l,this._getProvidersMetadata(o.providers,h,"provider for the NgModule '"+Gn(t)+"'",[],t)),o.entryComponents&&h.push.apply(h,Hn(o.entryComponents).map(function(t){return r._getIdentifierMetadata(t)})),o.bootstrap&&Hn(o.bootstrap).forEach(function(e){return qn(e)?void f.push(r._getIdentifierMetadata(e)):void r._reportError(new cs("Unexpected value '"+Gn(e)+"' used in the bootstrap property of module '"+Gn(t)+"'"),t)}),h.push.apply(h,f),o.schemas&&d.push.apply(d,Hn(o.schemas)),i=new As({type:this._getTypeMetadata(t),providers:l,entryComponents:h,bootstrapComponents:f,schemas:d,declaredDirectives:s,exportedDirectives:m,declaredPipes:u,exportedPipes:v,importedModules:c,exportedModules:p,transitiveModule:y,id:o.id}),h.forEach(function(t){return y.addEntryComponent(t)}),l.forEach(function(t){return y.addProvider(t,i.type)}),y.addModule(i.type),this._ngModuleCache.set(t,i),i},t.prototype._getTypeDescriptor=function(t){return this._directiveResolver.isDirective(t)?"directive":this._pipeResolver.isPipe(t)?"pipe":this._ngModuleResolver.isNgModule(t)?"module":t.provide?"provider":"value"},t.prototype._addTypeToModule=function(t,e){var n=this._ngModuleOfTypes.get(t);n&&n!==e&&this._reportError(new cs("Type "+Gn(t)+" is part of the declarations of 2 modules: "+Gn(n)+" and "+Gn(e)+"! "+("Please consider moving "+Gn(t)+" to a higher module that imports "+Gn(n)+" and "+Gn(e)+". ")+("You can also create a new NgModule that exports and includes "+Gn(t)+" then import that NgModule in "+Gn(n)+" and "+Gn(e)+".")),e),this._ngModuleOfTypes.set(t,e)},t.prototype._getTransitiveNgModuleMetadata=function(t,e){var n=new Ms,r=new Map;return t.concat(e).forEach(function(t){t.modules.forEach(function(t){return n.addModule(t)}),t.entryComponents.forEach(function(t){return n.addEntryComponent(t)});var e=new Set;t.providers.forEach(function(t){var i=S(t.provider.token),o=r.get(i);o||(o=new Set,r.set(i,o));var s=t.module.reference;(e.has(i)||!o.has(s))&&(o.add(s),e.add(i),n.addProvider(t.provider,t.module))})}),e.forEach(function(t){t.exportedDirectives.forEach(function(t){return n.addExportedDirective(t)}),t.exportedPipes.forEach(function(t){return n.addExportedPipe(t)})}),t.forEach(function(t){t.exportedDirectives.forEach(function(t){return n.addDirective(t)}),t.exportedPipes.forEach(function(t){return n.addPipe(t)})}),n},t.prototype._getIdentifierMetadata=function(t){return t=e.resolveForwardRef(t),{reference:t}},t.prototype.isInjectable=function(t){var n=this._reflector.annotations(t);return n.some(function(t){return t.constructor===e.Injectable})},t.prototype.getInjectableSummary=function(t){return{summaryKind:Cs.Injectable,type:this._getTypeMetadata(t)}},t.prototype._getInjectableMetadata=function(t,e){void 0===e&&(e=null);var n=this._loadSummary(t,Cs.Injectable);return n?n.type:this._getTypeMetadata(t,e)},t.prototype._getTypeMetadata=function(t,e){void 0===e&&(e=null);var n=this._getIdentifierMetadata(t);return{reference:n.reference,diDeps:this._getDependenciesMetadata(n.reference,e),lifecycleHooks:uo.filter(function(t){return jn(t,n.reference)})}},t.prototype._getFactoryMetadata=function(t,n){return void 0===n&&(n=null),t=e.resolveForwardRef(t),{reference:t,diDeps:this._getDependenciesMetadata(t,n)}},t.prototype.getPipeMetadata=function(t){var e=this._pipeCache.get(t);return e||this._reportError(new cs("Illegal state: getPipeMetadata can only be called after loadNgModuleDirectiveAndPipeMetadata for a module that declares it. Pipe "+Gn(t)+"."),t),e},t.prototype.getPipeSummary=function(t){var e=this._loadSummary(t,Cs.Pipe);return e||this._reportError(new cs("Illegal state: Could not load the summary for pipe "+Gn(t)+"."),t),e},t.prototype.getOrLoadPipeMetadata=function(t){var e=this._pipeCache.get(t);return e||(e=this._loadPipeMetadata(t)),e},t.prototype._loadPipeMetadata=function(t){t=e.resolveForwardRef(t);var n=this._pipeResolver.resolve(t),r=new Os({type:this._getTypeMetadata(t),name:n.name,pure:n.pure});return this._pipeCache.set(t,r),this._summaryCache.set(t,r.toSummary()),r},t.prototype._getDependenciesMetadata=function(t,n){var r=this,o=!1,s=n||this._reflector.parameters(t)||[],a=s.map(function(t){var n=!1,s=!1,a=!1,u=!1,c=!1,p=null;return Array.isArray(t)?t.forEach(function(t){t instanceof e.Host?s=!0:t instanceof e.Self?a=!0:t instanceof e.SkipSelf?u=!0:t instanceof e.Optional?c=!0:t instanceof e.Attribute?(n=!0,p=t.attributeName):t instanceof e.Inject?p=t.token:qn(t)&&i(p)&&(p=t)}):p=t,i(p)?(o=!0,null):{isAttribute:n,isHost:s,isSelf:a,isSkipSelf:u,isOptional:c,token:r._getTokenMetadata(p)}});if(o){var u=a.map(function(t){return t?Gn(t.token):"?"}).join(", ");this._reportError(new cs("Can't resolve all parameters for "+Gn(t)+": ("+u+")."),t)}return a},t.prototype._getTokenMetadata=function(t){t=e.resolveForwardRef(t);var n;return n="string"==typeof t?{value:t}:{identifier:{reference:t}}},t.prototype._getProvidersMetadata=function(t,n,r,i,o){var s=this;return void 0===i&&(i=[]),t.forEach(function(a,u){if(Array.isArray(a))s._getProvidersMetadata(a,n,r,i);else{a=e.resolveForwardRef(a);var c=void 0;if(a&&"object"==typeof a&&a.hasOwnProperty("provide"))c=new Rs(a.provide,a);else if(qn(a))c=new Rs(a,{useClass:a});else{var p=t.reduce(function(t,e,n){return u>n?t.push(""+Gn(e)):n==u?t.push("?"+Gn(e)+"?"):n==u+1&&t.push("..."),t},[]).join(", ");s._reportError(new cs("Invalid "+(r?r:"provider")+" - only instances of Provider and Type are allowed, got: ["+p+"]"),o)}c.token===Qt(_p.ANALYZE_FOR_ENTRY_COMPONENTS)?n.push.apply(n,s._getEntryComponentsFromProvider(c,o)):i.push(s.getProviderMetadata(c))}}),i},t.prototype._getEntryComponentsFromProvider=function(t,e){var n=this,r=[],i=[];return t.useFactory||t.useExisting||t.useClass?(this._reportError(new cs("The ANALYZE_FOR_ENTRY_COMPONENTS token only supports useValue!"),e),[]):t.multi?(Wn(t.useValue,i),i.forEach(function(t){(n._directiveResolver.isDirective(t.reference)||n._loadSummary(t.reference,Cs.Directive))&&r.push(t)}),r):(this._reportError(new cs("The ANALYZE_FOR_ENTRY_COMPONENTS token only supports 'multi = true'!"),e),[])},t.prototype.getProviderMetadata=function(t){var e,n=null,r=null,i=this._getTokenMetadata(t.token);return t.useClass?(n=this._getInjectableMetadata(t.useClass,t.dependencies),e=n.diDeps,t.token===t.useClass&&(i={identifier:n})):t.useFactory&&(r=this._getFactoryMetadata(t.useFactory,t.dependencies),e=r.diDeps),{token:i,useClass:n,useValue:t.useValue,useFactory:r,useExisting:t.useExisting?this._getTokenMetadata(t.useExisting):null,deps:e,multi:t.multi}},t.prototype._getQueriesMetadata=function(t,e,n){var r=this,i=[];return Object.keys(t).forEach(function(o){var s=t[o];s.isViewQuery===e&&i.push(r._getQueryMetadata(s,o,n))}),i},t.prototype._queryVarBindings=function(t){return t.split(/\s*,\s*/)},t.prototype._getQueryMetadata=function(t,e,n){var r,i=this;return"string"==typeof t.selector?r=this._queryVarBindings(t.selector).map(function(t){return i._getTokenMetadata(t)}):(t.selector||this._reportError(new cs("Can't construct a query for the property \""+e+'" of "'+Gn(n)+"\" since the query selector wasn't defined."),n),r=[this._getTokenMetadata(t.selector)]),{selectors:r,first:t.first,descendants:t.descendants,propertyName:e,read:t.read?this._getTokenMetadata(t.read):null}},t.prototype._reportError=function(t,e,n){if(!this._errorCollector)throw t;this._errorCollector(t,e),n&&this._errorCollector(t,n)},t.ctorParameters=function(){return[{type:nd},{type:_h},{type:od},{type:ud},{type:Mp},{type:yh},{type:co},{type:void 0,decorators:[{type:e.Optional},{type:e.Inject,args:[hd]}]}]},t=pd([M(),ld("design:paramtypes",[nd,_h,od,ud,Mp,yh,co,Function])],t)}(),dd=function(t){function e(){t.apply(this,arguments)}return cd(e,t),e.prototype.visitOther=function(t,e){e.push({reference:t})},e}(as),yd="$quoted$",md=function(){function t(){}return t.prototype.visitArray=function(t,e){var n=this;return Ye(t.map(function(t){return g(t,n,null)}),e)},t.prototype.visitStringMap=function(t,e){var n=this,r=[],i=new Set(t&&t[yd]);return Object.keys(t).forEach(function(e){r.push(new nf(e,g(t[e],n,null),i.has(e)))}),new rf(r,e)},t.prototype.visitPrimitive=function(t,e){return tn(t,e)},t.prototype.visitOther=function(t){return t instanceof Dh?t:Ke({reference:t})},t}(),vd=this&&this.__decorate||function(t,e,n,r){var i,o=arguments.length,s=3>o?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,r);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(3>o?i(s):o>3?i(e,n,s):i(e,n))||s);return o>3&&s&&Object.defineProperty(e,n,s),s},gd=this&&this.__metadata||function(t,e){return"object"==typeof Reflect&&"function"==typeof Reflect.metadata?Reflect.metadata(t,e):void 0},_d=function(){function t(t,e){this.comp=t,this.placeholder=e}return t}(),bd=function(){function t(t,e,n){this.statements=t,this.ngModuleFactoryVar=e,this.dependencies=n}return t}(),wd=function(){function t(){}return t.prototype.compile=function(t,e){var n=w(t.type),i=r(n)?"in NgModule "+b(t.type)+" in "+n:"in NgModule "+b(t.type),o=new xu("",i),s=new Tu(new Cu(o,null,null,null),new Cu(o,null,null,null)),a=[],u=[],c=t.transitiveModule.entryComponents.map(function(e){var n={reference:null};return t.bootstrapComponents.some(function(t){return t.reference===e.reference})&&u.push(n),a.push(new _d(e,n)),n}),p=new Ed(t,c,u,s),l=new Ap(t,e,s);l.parse().forEach(function(t){return p.addProvider(t)});var h=p.build(),f=b(t.type)+"NgFactory",d=Ge(f).set(Ke(Yt(_p.NgModuleFactory)).instantiate([Ge(h.name),Ke(t.type)],Xe(Yt(_p.NgModuleFactory),[Xe(t.type)],[wh.Const]))).toDeclStmt(null,[cf.Final]),y=[h,d];if(t.id){var m=Ke(Yt(_p.RegisterModuleFactoryFn)).callFn([tn(t.id),Ge(f)]).toStmt();y.push(m)}return new bd(y,f,a)},t=vd([M(),gd("design:paramtypes",[])],t)}(),Ed=function(){function t(t,e,n,r){this._ngModuleMeta=t,this._entryComponentFactories=e,this._bootstrapComponentFactories=n,this._sourceSpan=r,this.fields=[],this.getters=[],this.methods=[],this.ctorStmts=[],this._tokens=[],this._instances=new Map,this._createStmts=[],this._destroyStmts=[]}return t.prototype.addProvider=function(t){var e=this,n=t.providers.map(function(t){return e._getProviderValue(t)}),r="_"+E(t.token)+"_"+this._instances.size,i=this._createProviderProperty(r,t,n,t.multiProvider,t.eager);-1!==t.lifecycleHooks.indexOf(ao.OnDestroy)&&this._destroyStmts.push(i.callMethod("ngOnDestroy",[]).toStmt()),this._tokens.push(t.token),this._instances.set(S(t.token),i)},t.prototype.build=function(){var t=this,e=this._tokens.map(function(e){var n=t._instances.get(S(e));return new bf(Cd.token.identical(on(e)),[new df(n)])}),n=[new vf("createInternal",[],this._createStmts.concat(new df(this._instances.get(this._ngModuleMeta.type.reference))),Xe(this._ngModuleMeta.type)),new vf("getInternal",[new Yh(Cd.token.name,Oh),new Yh(Cd.notFoundResult.name,Oh)],e.concat([new df(Cd.notFoundResult)]),Oh),new vf("destroyInternal",[],this._destroyStmts)],r=[Ge(Sd.parent.name),Ye(this._entryComponentFactories.map(function(t){return Ke(t)})),Ye(this._bootstrapComponentFactories.map(function(t){return Ke(t)}))],i=b(this._ngModuleMeta.type)+"Injector";return Pn({name:i,ctorParams:[new Yh(Sd.parent.name,Xe(Yt(_p.Injector)))],parent:Ke(Yt(_p.NgModuleInjector),[Xe(this._ngModuleMeta.type)]),parentArgs:r,builders:[{methods:n},this]})},t.prototype._getProviderValue=function(t){var e,n=this;if(r(t.useExisting))e=this._getDependency({token:t.useExisting});else if(r(t.useFactory)){var i=t.deps||t.useFactory.diDeps,o=i.map(function(t){return n._getDependency(t)});e=Ke(t.useFactory).callFn(o)}else if(r(t.useClass)){var i=t.deps||t.useClass.diDeps,o=i.map(function(t){return n._getDependency(t)});e=Ke(t.useClass).instantiate(o,Xe(t.useClass))}else e=Kn(t.useValue);return e},t.prototype._createProviderProperty=function(t,e,n,r,i){var o,s;if(r?(o=Ye(n),s=new Th(Oh)):(o=n[0],s=n[0].type),s||(s=Oh),i)this.fields.push(new mf(t,s)),this._createStmts.push(of.prop(t).set(o).toStmt());else{var a="_"+t;this.fields.push(new mf(a,s));var u=[new bf(of.prop(a).isBlank(),[of.prop(a).set(o).toStmt()]),new df(of.prop(a))];this.getters.push(new gf(t,u,s))}return of.prop(t)},t.prototype._getDependency=function(t){var e=null;if(t.isValue&&(e=tn(t.value)),t.isSkipSelf||(!t.token||S(t.token)!==Qt(_p.Injector)&&S(t.token)!==Qt(_p.ComponentFactoryResolver)||(e=of),e||(e=this._instances.get(S(t.token)))),!e){var n=[on(t.token)];t.isOptional&&n.push(af),e=Sd.parent.callMethod("get",n)}return e},t}(),Sd=function(){function t(){}return t.parent=of.prop("parent"),t}(),Cd=function(){function t(){}return t.token=Ge("token"),t.notFoundResult=Ge("notFoundResult"),t}(),xd=/'|\\|\n|\r|\$/g,Td=/^[$A-Z_][0-9A-Z_$]*$/i,Pd=Ge("error"),Od=Ge("stack"),Ad=function(){function t(t){this.indent=t,this.parts=[]}return t}(),Md=function(){function t(t,e){this._exportedVars=t,this._indent=e,this._classes=[],this._lines=[new Ad(e)]}return t.createRoot=function(e){return new t(e,0)},Object.defineProperty(t.prototype,"_currentLine",{get:function(){return this._lines[this._lines.length-1]},enumerable:!0,configurable:!0}),t.prototype.isExportedVar=function(t){return-1!==this._exportedVars.indexOf(t)},t.prototype.println=function(t){void 0===t&&(t=""),this.print(t,!0)},t.prototype.lineIsEmpty=function(){return 0===this._currentLine.parts.length},t.prototype.print=function(t,e){void 0===e&&(e=!1),t.length>0&&this._currentLine.parts.push(t),e&&this._lines.push(new Ad(this._indent))},t.prototype.removeEmptyLastLine=function(){this.lineIsEmpty()&&this._lines.pop()},t.prototype.incIndent=function(){this._indent++,this._currentLine.indent=this._indent},t.prototype.decIndent=function(){this._indent--,this._currentLine.indent=this._indent},t.prototype.pushClass=function(t){this._classes.push(t)},t.prototype.popClass=function(){return this._classes.pop()},Object.defineProperty(t.prototype,"currentClass",{get:function(){return this._classes.length>0?this._classes[this._classes.length-1]:null},enumerable:!0,configurable:!0}),t.prototype.toSource=function(){var t=this._lines;return 0===t[t.length-1].parts.length&&(t=t.slice(0,t.length-1)),t.map(function(t){return t.parts.length>0?Qn(t.indent)+t.parts.join(""):""}).join("\n")},t}(),Rd=function(){function t(t){this._escapeDollarInStrings=t}return t.prototype.visitExpressionStmt=function(t,e){return t.expr.visitExpression(this,e),e.println(";"),null},t.prototype.visitReturnStmt=function(t,e){return e.print("return "),t.value.visitExpression(this,e),e.println(";"),null},t.prototype.visitCastExpr=function(){},t.prototype.visitDeclareClassStmt=function(){},t.prototype.visitIfStmt=function(t,e){e.print("if ("),t.condition.visitExpression(this,e),e.print(") {");var n=r(t.falseCase)&&t.falseCase.length>0;return t.trueCase.length<=1&&!n?(e.print(" "),this.visitAllStatements(t.trueCase,e),e.removeEmptyLastLine(),e.print(" ")):(e.println(),e.incIndent(),this.visitAllStatements(t.trueCase,e),e.decIndent(),n&&(e.println("} else {"),e.incIndent(),this.visitAllStatements(t.falseCase,e),e.decIndent())),e.println("}"),null},t.prototype.visitTryCatchStmt=function(){},t.prototype.visitThrowStmt=function(t,e){return e.print("throw "),t.error.visitExpression(this,e),e.println(";"),null},t.prototype.visitCommentStmt=function(t,e){var n=t.comment.split("\n");return n.forEach(function(t){e.println("// "+t)}),null},t.prototype.visitDeclareVarStmt=function(){},t.prototype.visitWriteVarExpr=function(t,e){var n=e.lineIsEmpty();return n||e.print("("),e.print(t.name+" = "),t.value.visitExpression(this,e),n||e.print(")"),null},t.prototype.visitWriteKeyExpr=function(t,e){var n=e.lineIsEmpty();return n||e.print("("),t.receiver.visitExpression(this,e),e.print("["),t.index.visitExpression(this,e),e.print("] = "),t.value.visitExpression(this,e),n||e.print(")"),null},t.prototype.visitWritePropExpr=function(t,e){var n=e.lineIsEmpty();return n||e.print("("),t.receiver.visitExpression(this,e),e.print("."+t.name+" = "),t.value.visitExpression(this,e),n||e.print(")"),null},t.prototype.visitInvokeMethodExpr=function(t,e){t.receiver.visitExpression(this,e); +},t}(),Nu=function(){function t(t,e,n,r,i,o){this.name=t,this.attrs=e,this.children=n,this.sourceSpan=r,this.startSourceSpan=i,this.endSourceSpan=o}return t.prototype.visit=function(t,e){return t.visitElement(this,e)},t}(),Iu=function(){function t(t,e){this.value=t,this.sourceSpan=e}return t.prototype.visit=function(t,e){return t.visitComment(this,e)},t}(),Du=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},ju={};ju.TAG_OPEN_START=0,ju.TAG_OPEN_END=1,ju.TAG_OPEN_END_VOID=2,ju.TAG_CLOSE=3,ju.TEXT=4,ju.ESCAPABLE_RAW_TEXT=5,ju.RAW_TEXT=6,ju.COMMENT_START=7,ju.COMMENT_END=8,ju.CDATA_START=9,ju.CDATA_END=10,ju.ATTR_NAME=11,ju.ATTR_VALUE=12,ju.DOC_TYPE=13,ju.EXPANSION_FORM_START=14,ju.EXPANSION_CASE_VALUE=15,ju.EXPANSION_CASE_EXP_START=16,ju.EXPANSION_CASE_EXP_END=17,ju.EXPANSION_FORM_END=18,ju.EOF=19,ju[ju.TAG_OPEN_START]="TAG_OPEN_START",ju[ju.TAG_OPEN_END]="TAG_OPEN_END",ju[ju.TAG_OPEN_END_VOID]="TAG_OPEN_END_VOID",ju[ju.TAG_CLOSE]="TAG_CLOSE",ju[ju.TEXT]="TEXT",ju[ju.ESCAPABLE_RAW_TEXT]="ESCAPABLE_RAW_TEXT",ju[ju.RAW_TEXT]="RAW_TEXT",ju[ju.COMMENT_START]="COMMENT_START",ju[ju.COMMENT_END]="COMMENT_END",ju[ju.CDATA_START]="CDATA_START",ju[ju.CDATA_END]="CDATA_END",ju[ju.ATTR_NAME]="ATTR_NAME",ju[ju.ATTR_VALUE]="ATTR_VALUE",ju[ju.DOC_TYPE]="DOC_TYPE",ju[ju.EXPANSION_FORM_START]="EXPANSION_FORM_START",ju[ju.EXPANSION_CASE_VALUE]="EXPANSION_CASE_VALUE",ju[ju.EXPANSION_CASE_EXP_START]="EXPANSION_CASE_EXP_START",ju[ju.EXPANSION_CASE_EXP_END]="EXPANSION_CASE_EXP_END",ju[ju.EXPANSION_FORM_END]="EXPANSION_FORM_END",ju[ju.EOF]="EOF";var Lu=function(){function t(t,e,n){this.type=t,this.parts=e,this.sourceSpan=n}return t}(),Vu=function(t){function e(e,n,r){t.call(this,r,e),this.tokenType=n}return Du(e,t),e}(Ou),Fu=function(){function t(t,e){this.tokens=t,this.errors=e}return t}(),Uu=/\r\n?/g,Bu=function(){function t(t){this.error=t}return t}(),Hu=function(){function t(t,e,n,r){void 0===r&&(r=Da),this._file=t,this._getTagDefinition=e,this._tokenizeIcu=n,this._interpolationConfig=r,this._peek=-1,this._nextPeek=-1,this._index=-1,this._line=0,this._column=-1,this._expansionCaseStack=[],this._inInterpolation=!1,this.tokens=[],this.errors=[],this._input=t.content,this._length=t.content.length,this._advance()}return t.prototype._processCarriageReturns=function(t){return t.replace(Uu,"\n")},t.prototype.tokenize=function(){for(;this._peek!==ks;){var t=this._getLocation();try{this._attemptCharCode(na)?this._attemptCharCode(Fs)?this._attemptCharCode(fa)?this._consumeCdata(t):this._attemptCharCode($s)?this._consumeComment(t):this._consumeDocType(t):this._attemptCharCode(Js)?this._consumeTagClose(t):this._consumeTagOpen(t):this._tokenizeIcu&&this._tokenizeExpansionForm()||this._consumeText()}catch(e){if(!(e instanceof Bu))throw e;this.errors.push(e.error)}}return this._beginToken(ju.EOF),this._endToken([]),new Fu(at(this.tokens),this.errors)},t.prototype._tokenizeExpansionForm=function(){if(rt(this._input,this._index,this._interpolationConfig))return this._consumeExpansionFormStart(),!0;if(it(this._peek)&&this._isInExpansionForm())return this._consumeExpansionCaseStart(),!0;if(this._peek===Ma){if(this._isInExpansionCase())return this._consumeExpansionCaseEnd(),!0;if(this._isInExpansionForm())return this._consumeExpansionFormEnd(),!0}return!1},t.prototype._getLocation=function(){return new Cu(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 Tu(t,e)},t.prototype._beginToken=function(t,e){void 0===e&&(e=this._getLocation()),this._currentTokenStart=e,this._currentTokenType=t},t.prototype._endToken=function(t,e){void 0===e&&(e=this._getLocation());var n=new Lu(this._currentTokenType,t,new Tu(this._currentTokenStart,e));return this.tokens.push(n),this._currentTokenStart=null,this._currentTokenType=null,n},t.prototype._createError=function(t,e){this._isInExpansionForm()&&(t+=' (Do you have an unescaped "{" in your template? Use "{{ \'{\' }}") to escape it.)');var n=new Vu(t,this._currentTokenType,e);return this._currentTokenStart=null,this._currentTokenType=null,new Bu(n)},t.prototype._advance=function(){if(this._index>=this._length)throw this._createError(Y(ks),this._getSpan());this._peek===Is?(this._line++,this._column=0):this._peek!==Is&&this._peek!==Ls&&this._column++,this._index++,this._peek=this._index>=this._length?ks:this._input.charCodeAt(this._index),this._nextPeek=this._index+1>=this._length?ks: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 ot(this._peek,t)?(this._advance(),!0):!1},t.prototype._requireCharCode=function(t){var e=this._getLocation();if(!this._attemptCharCode(t))throw this._createError(Y(this._peek),this._getSpan(e,e))},t.prototype._attemptStr=function(t){var e=t.length;if(this._index+e>this._length)return!1;for(var n=this._savePosition(),r=0;e>r;r++)if(!this._attemptCharCode(t.charCodeAt(r)))return this._restorePosition(n),!1;return!0},t.prototype._attemptStrCaseInsensitive=function(t){for(var e=0;e<t.length;e++)if(!this._attemptCharCodeCaseInsensitive(t.charCodeAt(e)))return!1;return!0},t.prototype._requireStr=function(t){var e=this._getLocation();if(!this._attemptStr(t))throw this._createError(Y(this._peek),this._getSpan(e))},t.prototype._attemptCharCodeUntilFn=function(t){for(;!t(this._peek);)this._advance()},t.prototype._requireCharCodeUntilFn=function(t,e){var n=this._getLocation();if(this._attemptCharCodeUntilFn(t),this._index-n.offset<e)throw this._createError(Y(this._peek),this._getSpan(n,n))},t.prototype._attemptUntilChar=function(t){for(;this._peek!==t;)this._advance()},t.prototype._readChar=function(t){if(t&&this._peek===zs)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(Bs)){var e=this._savePosition();if(this._attemptCharCodeUntilFn(nt),this._peek!=ea)return this._restorePosition(e),"&";this._advance();var n=this._input.substring(t.offset+1,this._index-1),r=Ko[n];if(!r)throw this._createError($(n),this._getSpan(t));return r}var i=this._attemptCharCode(Ta)||this._attemptCharCode(la),o=this._getLocation().offset;if(this._attemptCharCodeUntilFn(et),this._peek!=ea)throw this._createError(Y(this._peek),this._getSpan());this._advance();var s=this._input.substring(o,this._index-1);try{var a=parseInt(s,i?16:10);return String.fromCharCode(a)}catch(u){var c=this._input.substring(t.offset+1,this._index-1);throw this._createError($(c),this._getSpan(t))}},t.prototype._consumeRawText=function(t,e,n){var r,i=this._getLocation();this._beginToken(t?ju.ESCAPABLE_RAW_TEXT:ju.RAW_TEXT,i);for(var o=[];;){if(r=this._getLocation(),this._attemptCharCode(e)&&n())break;for(this._index>r.offset&&o.push(this._input.substring(r.offset,this._index));this._peek!==e;)o.push(this._readChar(t))}return this._endToken([this._processCarriageReturns(o.join(""))],r)},t.prototype._consumeComment=function(t){var e=this;this._beginToken(ju.COMMENT_START,t),this._requireCharCode($s),this._endToken([]);var n=this._consumeRawText(!1,$s,function(){return e._attemptStr("->")});this._beginToken(ju.COMMENT_END,n.sourceSpan.end),this._endToken([])},t.prototype._consumeCdata=function(t){var e=this;this._beginToken(ju.CDATA_START,t),this._requireStr("CDATA["),this._endToken([]);var n=this._consumeRawText(!1,ya,function(){return e._attemptStr("]>")});this._beginToken(ju.CDATA_END,n.sourceSpan.end),this._endToken([])},t.prototype._consumeDocType=function(t){this._beginToken(ju.DOC_TYPE,t),this._attemptUntilChar(ia),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!==ta&&!tt(this._peek);)this._advance();var n;this._peek===ta?(this._advance(),e=this._input.substring(t,this._index-1),n=this._index):n=t,this._requireCharCodeUntilFn(J,this._index===n?1:0);var r=this._input.substring(n,this._index);return[e,r]},t.prototype._consumeTagOpen=function(t){var e,n,r=this._savePosition();try{if(!O(this._peek))throw this._createError(Y(this._peek),this._getSpan());var i=this._index;for(this._consumeTagOpenStart(t),e=this._input.substring(i,this._index),n=e.toLowerCase(),this._attemptCharCodeUntilFn(Z);this._peek!==Js&&this._peek!==ia;)this._consumeAttributeName(),this._attemptCharCodeUntilFn(Z),this._attemptCharCode(ra)&&(this._attemptCharCodeUntilFn(Z),this._consumeAttributeValue()),this._attemptCharCodeUntilFn(Z);this._consumeTagOpenEnd()}catch(o){if(o instanceof Bu)return this._restorePosition(r),this._beginToken(ju.TEXT,t),void this._endToken(["<"]);throw o}var s=this._getTagDefinition(e).contentType;s===Go.RAW_TEXT?this._consumeRawTextWithTagClose(n,!1):s===Go.ESCAPABLE_RAW_TEXT&&this._consumeRawTextWithTagClose(n,!0)},t.prototype._consumeRawTextWithTagClose=function(t,e){var n=this,r=this._consumeRawText(e,na,function(){return n._attemptCharCode(Js)?(n._attemptCharCodeUntilFn(Z),n._attemptStrCaseInsensitive(t)?(n._attemptCharCodeUntilFn(Z),n._attemptCharCode(ia)):!1):!1});this._beginToken(ju.TAG_CLOSE,r.sourceSpan.end),this._endToken([null,t])},t.prototype._consumeTagOpenStart=function(t){this._beginToken(ju.TAG_OPEN_START,t);var e=this._consumePrefixAndName();this._endToken(e)},t.prototype._consumeAttributeName=function(){this._beginToken(ju.ATTR_NAME);var t=this._consumePrefixAndName();this._endToken(t)},t.prototype._consumeAttributeValue=function(){this._beginToken(ju.ATTR_VALUE);var t;if(this._peek===Ws||this._peek===Us){var e=this._peek;this._advance();for(var n=[];this._peek!==e;)n.push(this._readChar(!0));t=n.join(""),this._advance()}else{var r=this._index;this._requireCharCodeUntilFn(J,1),t=this._input.substring(r,this._index)}this._endToken([this._processCarriageReturns(t)])},t.prototype._consumeTagOpenEnd=function(){var t=this._attemptCharCode(Js)?ju.TAG_OPEN_END_VOID:ju.TAG_OPEN_END;this._beginToken(t),this._requireCharCode(ia),this._endToken([])},t.prototype._consumeTagClose=function(t){this._beginToken(ju.TAG_CLOSE,t),this._attemptCharCodeUntilFn(Z);var e=this._consumePrefixAndName();this._attemptCharCodeUntilFn(Z),this._requireCharCode(ia),this._endToken(e)},t.prototype._consumeExpansionFormStart=function(){this._beginToken(ju.EXPANSION_FORM_START,this._getLocation()),this._requireCharCode(Oa),this._endToken([]),this._expansionCaseStack.push(ju.EXPANSION_FORM_START),this._beginToken(ju.RAW_TEXT,this._getLocation());var t=this._readUntil(Ys);this._endToken([t],this._getLocation()),this._requireCharCode(Ys),this._attemptCharCodeUntilFn(Z),this._beginToken(ju.RAW_TEXT,this._getLocation());var e=this._readUntil(Ys);this._endToken([e],this._getLocation()),this._requireCharCode(Ys),this._attemptCharCodeUntilFn(Z)},t.prototype._consumeExpansionCaseStart=function(){this._beginToken(ju.EXPANSION_CASE_VALUE,this._getLocation());var t=this._readUntil(Oa).trim();this._endToken([t],this._getLocation()),this._attemptCharCodeUntilFn(Z),this._beginToken(ju.EXPANSION_CASE_EXP_START,this._getLocation()),this._requireCharCode(Oa),this._endToken([],this._getLocation()),this._attemptCharCodeUntilFn(Z),this._expansionCaseStack.push(ju.EXPANSION_CASE_EXP_START)},t.prototype._consumeExpansionCaseEnd=function(){this._beginToken(ju.EXPANSION_CASE_EXP_END,this._getLocation()),this._requireCharCode(Ma),this._endToken([],this._getLocation()),this._attemptCharCodeUntilFn(Z),this._expansionCaseStack.pop()},t.prototype._consumeExpansionFormEnd=function(){this._beginToken(ju.EXPANSION_FORM_END,this._getLocation()),this._requireCharCode(Ma),this._endToken([]),this._expansionCaseStack.pop()},t.prototype._consumeText=function(){var t=this._getLocation();this._beginToken(ju.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===na||this._peek===ks)return!0;if(this._tokenizeIcu&&!this._inInterpolation){if(rt(this._input,this._index,this._interpolationConfig))return!0;if(this._peek===Ma&&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]===ju.EXPANSION_CASE_EXP_START},t.prototype._isInExpansionForm=function(){return this._expansionCaseStack.length>0&&this._expansionCaseStack[this._expansionCaseStack.length-1]===ju.EXPANSION_FORM_START},t}(),qu=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},zu=function(t){function e(e,n,r){t.call(this,n,r),this.elementName=e}return qu(e,t),e.create=function(t,n,r){return new e(t,n,r)},e}(Ou),Wu=function(){function t(t,e){this.rootNodes=t,this.errors=e}return t}(),Gu=function(){function t(t){this.getTagDefinition=t}return t.prototype.parse=function(t,e,n,r){void 0===n&&(n=!1),void 0===r&&(r=Da);var i=Q(t,e,this.getTagDefinition,n,r),o=new Ku(i.tokens,this.getTagDefinition).build();return new Wu(o.rootNodes,i.errors.concat(o.errors))},t}(),Ku=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!==ju.EOF;)this._peek.type===ju.TAG_OPEN_START?this._consumeStartTag(this._advance()):this._peek.type===ju.TAG_CLOSE?this._consumeEndTag(this._advance()):this._peek.type===ju.CDATA_START?(this._closeVoidElement(),this._consumeCdata(this._advance())):this._peek.type===ju.COMMENT_START?(this._closeVoidElement(),this._consumeComment(this._advance())):this._peek.type===ju.TEXT||this._peek.type===ju.RAW_TEXT||this._peek.type===ju.ESCAPABLE_RAW_TEXT?(this._closeVoidElement(),this._consumeText(this._advance())):this._peek.type===ju.EXPANSION_FORM_START?this._consumeExpansion(this._advance()):this._advance();return new Wu(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(ju.CDATA_END)},t.prototype._consumeComment=function(t){var e=this._advanceIf(ju.RAW_TEXT);this._advanceIf(ju.COMMENT_END);var n=r(e)?e.parts[0].trim():null;this._addToParent(new Iu(n,t.sourceSpan))},t.prototype._consumeExpansion=function(t){for(var e=this._advance(),n=this._advance(),r=[];this._peek.type===ju.EXPANSION_CASE_VALUE;){var i=this._parseExpansionCase();if(!i)return;r.push(i)}if(this._peek.type!==ju.EXPANSION_FORM_END)return void this._errors.push(zu.create(null,this._peek.sourceSpan,"Invalid ICU message. Missing '}'."));var o=new Tu(t.sourceSpan.start,this._peek.sourceSpan.end);this._addToParent(new Mu(e.parts[0],n.parts[0],r,o,e.sourceSpan)),this._advance()},t.prototype._parseExpansionCase=function(){var e=this._advance();if(this._peek.type!==ju.EXPANSION_CASE_EXP_START)return this._errors.push(zu.create(null,this._peek.sourceSpan,"Invalid ICU message. Missing '{'.")),null;var n=this._advance(),r=this._collectExpansionExpTokens(n);if(!r)return null;var i=this._advance();r.push(new Lu(ju.EOF,[],i.sourceSpan));var o=new t(r,this.getTagDefinition).build();if(o.errors.length>0)return this._errors=this._errors.concat(o.errors),null;var s=new Tu(e.sourceSpan.start,i.sourceSpan.end),a=new Tu(n.sourceSpan.start,i.sourceSpan.end);return new Ru(e.parts[0],o.rootNodes,s,e.sourceSpan,a)},t.prototype._collectExpansionExpTokens=function(t){for(var e=[],n=[ju.EXPANSION_CASE_EXP_START];;){if((this._peek.type===ju.EXPANSION_FORM_START||this._peek.type===ju.EXPANSION_CASE_EXP_START)&&n.push(this._peek.type),this._peek.type===ju.EXPANSION_CASE_EXP_END){if(!ut(n,ju.EXPANSION_CASE_EXP_START))return this._errors.push(zu.create(null,t.sourceSpan,"Invalid ICU message. Missing '}'.")),null;if(n.pop(),0==n.length)return e}if(this._peek.type===ju.EXPANSION_FORM_END){if(!ut(n,ju.EXPANSION_FORM_START))return this._errors.push(zu.create(null,t.sourceSpan,"Invalid ICU message. Missing '}'.")),null;n.pop()}if(this._peek.type===ju.EOF)return this._errors.push(zu.create(null,t.sourceSpan,"Invalid ICU message. Missing '}'.")),null;e.push(this._advance())}},t.prototype._consumeText=function(t){var e=t.parts[0];if(e.length>0&&"\n"==e[0]){var n=this._getParentElement();r(n)&&0==n.children.length&&this.getTagDefinition(n.name).ignoreFirstLf&&(e=e.substring(1))}e.length>0&&this._addToParent(new Au(e,t.sourceSpan))},t.prototype._closeVoidElement=function(){if(this._elementStack.length>0){var t=this._elementStack[this._elementStack.length-1];this.getTagDefinition(t.name).isVoid&&this._elementStack.pop()}},t.prototype._consumeStartTag=function(t){for(var e=t.parts[0],n=t.parts[1],r=[];this._peek.type===ju.ATTR_NAME;)r.push(this._consumeAttr(this._advance()));var i=this._getElementFullName(e,n,this._getParentElement()),o=!1;if(this._peek.type===ju.TAG_OPEN_END_VOID){this._advance(),o=!0;var s=this.getTagDefinition(i);s.canSelfClose||null!==l(i)||s.isVoid||this._errors.push(zu.create(i,t.sourceSpan,'Only void and foreign elements can be self closed "'+t.parts[1]+'"'))}else this._peek.type===ju.TAG_OPEN_END&&(this._advance(),o=!1);var a=this._peek.sourceSpan.start,u=new Tu(t.sourceSpan.start,a),c=new Nu(i,r,[],u,u,null);this._pushElement(c),o&&(this._popElement(i),c.endSourceSpan=u)},t.prototype._pushElement=function(t){if(this._elementStack.length>0){var e=this._elementStack[this._elementStack.length-1];this.getTagDefinition(e.name).isClosedByChild(t.name)&&this._elementStack.pop()}var n=this.getTagDefinition(t.name),r=this._getParentElementSkippingContainers(),i=r.parent,o=r.container;if(i&&n.requireExtraParent(i.name)){var s=new Nu(n.parentToAdd,[],[],t.sourceSpan,t.startSourceSpan,t.endSourceSpan);this._insertBeforeContainer(i,o,s)}this._addToParent(t),this._elementStack.push(t)},t.prototype._consumeEndTag=function(t){var e=this._getElementFullName(t.parts[0],t.parts[1],this._getParentElement());this._getParentElement()&&(this._getParentElement().endSourceSpan=t.sourceSpan),this.getTagDefinition(e).isVoid?this._errors.push(zu.create(e,t.sourceSpan,'Void elements do not have end tags "'+t.parts[1]+'"')):this._popElement(e)||this._errors.push(zu.create(e,t.sourceSpan,'Unexpected closing tag "'+t.parts[1]+'"'))},t.prototype._popElement=function(t){for(var e=this._elementStack.length-1;e>=0;e--){var n=this._elementStack[e];if(n.name==t)return this._elementStack.splice(e,this._elementStack.length-e),!0;if(!this.getTagDefinition(n.name).closedByParent)return!1}return!1},t.prototype._consumeAttr=function(t){var e,n=h(t.parts[0],t.parts[1]),r=t.sourceSpan.end,i="";if(this._peek.type===ju.ATTR_VALUE){var o=this._advance();i=o.parts[0],r=o.sourceSpan.end,e=o.sourceSpan}return new ku(n,i,new Tu(t.sourceSpan.start,r),e)},t.prototype._getParentElement=function(){return this._elementStack.length>0?this._elementStack[this._elementStack.length-1]:null},t.prototype._getParentElementSkippingContainers=function(){for(var t=null,e=this._elementStack.length-1;e>=0;e--){if("ng-container"!==this._elementStack[e].name)return{parent:this._elementStack[e],container:t};t=this._elementStack[e]}return{parent:this._elementStack[this._elementStack.length-1],container:t}},t.prototype._addToParent=function(t){var e=this._getParentElement();r(e)?e.children.push(t):this._rootNodes.push(t)},t.prototype._insertBeforeContainer=function(t,e,n){if(e){if(t){var r=t.children.indexOf(e);t.children[r]=n}else this._rootNodes.push(n);n.children.push(e),this._elementStack.splice(this._elementStack.indexOf(e),0,n)}else this._addToParent(n),this._elementStack.push(n)},t.prototype._getElementFullName=function(t,e,n){return i(t)&&(t=this.getTagDefinition(e).implicitNamespacePrefix,i(t)&&r(n)&&(t=l(n.name))),h(t,e)},t}(),Xu=function(){function t(t,e,n,r,i){this.nodes=t,this.placeholders=e,this.placeholderToMessage=n,this.meaning=r,this.description=i}return t}(),Qu=function(){function t(t,e){this.value=t,this.sourceSpan=e}return t.prototype.visit=function(t,e){return t.visitText(this,e)},t}(),Yu=function(){function t(t,e){this.children=t,this.sourceSpan=e}return t.prototype.visit=function(t,e){return t.visitContainer(this,e)},t}(),$u=function(){function t(t,e,n,r){this.expression=t,this.type=e,this.cases=n,this.sourceSpan=r}return t.prototype.visit=function(t,e){return t.visitIcu(this,e)},t}(),Zu=function(){function t(t,e,n,r,i,o,s){this.tag=t,this.attrs=e,this.startName=n,this.closeName=r,this.children=i,this.isVoid=o,this.sourceSpan=s}return t.prototype.visit=function(t,e){return t.visitTagPlaceholder(this,e)},t}(),Ju=function(){function t(t,e,n){this.value=t,this.name=e,this.sourceSpan=n}return t.prototype.visit=function(t,e){return t.visitPlaceholder(this,e)},t}(),tc=function(){function t(t,e,n){this.value=t,this.name=e,this.sourceSpan=n}return t.prototype.visit=function(t,e){return t.visitIcuPlaceholder(this,e)},t}(),ec={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"},nc=function(){function t(){this._placeHolderNameCounts={},this._signatureToName={}}return t.prototype.getStartTagPlaceholderName=function(t,e,n){var r=this._hashTag(t,e,n);if(this._signatureToName[r])return this._signatureToName[r];var i=t.toUpperCase(),o=ec[i]||"TAG_"+i,s=this._generateUniqueName(n?o:"START_"+o);return this._signatureToName[r]=s,s},t.prototype.getCloseTagPlaceholderName=function(t){var e=this._hashClosingTag(t);if(this._signatureToName[e])return this._signatureToName[e];var n=t.toUpperCase(),r=ec[n]||"TAG_"+n,i=this._generateUniqueName("CLOSE_"+r);return this._signatureToName[e]=i,i},t.prototype.getPlaceholderName=function(t,e){var n=t.toUpperCase(),r="PH: "+n+"="+e;if(this._signatureToName[r])return this._signatureToName[r];var i=this._generateUniqueName(n);return this._signatureToName[r]=i,i},t.prototype.getUniquePlaceholder=function(t){return this._generateUniqueName(t.toUpperCase())},t.prototype._hashTag=function(t,e,n){var r="<"+t,i=Object.keys(e).sort().map(function(t){return" "+t+"="+e[t]}).join(""),o=n?"/>":"></"+t+">";return r+i+o},t.prototype._hashClosingTag=function(t){return this._hashTag("/"+t,{},!1)},t.prototype._generateUniqueName=function(t){var e=this._placeHolderNameCounts.hasOwnProperty(t);if(!e)return this._placeHolderNameCounts[t]=1,t;var n=this._placeHolderNameCounts[t];return this._placeHolderNameCounts[t]=n+1,t+"_"+n},t}(),rc=new wu(new fu),ic=function(){function t(t,e){this._expressionParser=t,this._interpolationConfig=e}return t.prototype.toI18nMessage=function(t,e,n){this._isIcu=1==t.length&&t[0]instanceof Mu,this._icuDepth=0,this._placeholderRegistry=new nc,this._placeholderToContent={},this._placeholderToMessage={};var r=X(this,t,{});return new Xu(r,this._placeholderToContent,this._placeholderToMessage,e,n)},t.prototype.visitElement=function(t){var e=X(this,t.children),n={};t.attrs.forEach(function(t){n[t.name]=t.value});var r=f(t.name).isVoid,i=this._placeholderRegistry.getStartTagPlaceholderName(t.name,n,r);this._placeholderToContent[i]=t.sourceSpan.toString();var o="";return r||(o=this._placeholderRegistry.getCloseTagPlaceholderName(t.name),this._placeholderToContent[o]="</"+t.name+">"),new Zu(t.name,n,i,o,e,r,t.sourceSpan)},t.prototype.visitAttribute=function(t){return this._visitTextWithInterpolation(t.value,t.sourceSpan)},t.prototype.visitText=function(t){return this._visitTextWithInterpolation(t.value,t.sourceSpan)},t.prototype.visitComment=function(){return null},t.prototype.visitExpansion=function(e){var n=this;this._icuDepth++;var r={},i=new $u(e.switchValue,e.type,r,e.sourceSpan);if(e.cases.forEach(function(t){r[t.value]=new Yu(t.expression.map(function(t){return t.visit(n,{})}),t.expSourceSpan)}),this._icuDepth--,this._isIcu||this._icuDepth>0){var o=this._placeholderRegistry.getUniquePlaceholder("VAR_"+e.type);return i.expressionPlaceholder=o,this._placeholderToContent[o]=e.switchValue,i}var s=this._placeholderRegistry.getPlaceholderName("ICU",e.sourceSpan.toString()),a=new t(this._expressionParser,this._interpolationConfig);return this._placeholderToMessage[s]=a.toI18nMessage([e],"",""),new tc(i,s,e.sourceSpan)},t.prototype.visitExpansionCase=function(){throw new Error("Unreachable code")},t.prototype._visitTextWithInterpolation=function(t,e){var n=this._expressionParser.splitInterpolation(t,e.start.toString(),this._interpolationConfig);if(!n)return new Qu(t,e);for(var r=[],i=new Yu(r,e),o=this._interpolationConfig,s=o.start,a=o.end,u=0;u<n.strings.length-1;u++){var c=n.expressions[u],p=pt(c)||"INTERPOLATION",l=this._placeholderRegistry.getPlaceholderName(p,c);n.strings[u].length&&r.push(new Qu(n.strings[u],e)),r.push(new Ju(c,l,e)),this._placeholderToContent[l]=s+c+a}var h=n.strings.length-1;return n.strings[h].length&&r.push(new Qu(n.strings[h],e)),i},t}(),oc=/\/\/[\s\S]*i18n[\s\S]*\([\s\S]*ph[\s\S]*=[\s\S]*"([\s\S]*?)"[\s\S]*\)/g,sc=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},ac=function(t){function e(e,n){t.call(this,e,n)}return sc(e,t),e}(Ou),uc="i18n",cc="i18n-",pc=/^i18n:?/,lc=function(){function t(t,e){this.messages=t,this.errors=e}return t}(),hc={};hc.Extract=0,hc.Merge=1,hc[hc.Extract]="Extract",hc[hc.Merge]="Merge";var fc=function(){function t(t,e){this._implicitTags=t,this._implicitAttrs=e}return t.prototype.extract=function(t,e){var n=this;return this._init(hc.Extract,e),t.forEach(function(t){return t.visit(n,null)}),this._inI18nBlock&&this._reportError(t[t.length-1],"Unclosed block"),new lc(this._messages,this._errors)},t.prototype.merge=function(t,e,n){this._init(hc.Merge,n),this._translations=e;var r=new Nu("wrapper",[],t,null,null,null),i=r.visit(this,null);return this._inI18nBlock&&this._reportError(t[t.length-1],"Unclosed block"),new Wu(i.children,this._errors)},t.prototype.visitExpansionCase=function(t,e){var n=X(this,t.expression,e);return this._mode===hc.Merge?new Ru(t.value,n,t.sourceSpan,t.valueSourceSpan,t.expSourceSpan):void 0},t.prototype.visitExpansion=function(t,e){this._mayBeAddBlockChildren(t);var n=this._inIcu;this._inIcu||(this._isInTranslatableSection&&this._addMessage([t]),this._inIcu=!0);var r=X(this,t.cases,e);return this._mode===hc.Merge&&(t=new Mu(t.switchValue,t.type,r,t.sourceSpan,t.switchValueSourceSpan)),this._inIcu=n,t},t.prototype.visitComment=function(t){var e=ft(t);if(e&&this._isInTranslatableSection)return void this._reportError(t,"Could not start a block inside a translatable section");var n=dt(t);if(n&&!this._inI18nBlock)return void this._reportError(t,"Trying to close an unopened block");if(!this._inI18nNode&&!this._inIcu)if(this._inI18nBlock){if(n){if(this._depth==this._blockStartDepth){this._closeTranslatableSection(t,this._blockChildren),this._inI18nBlock=!1;var r=this._addMessage(this._blockChildren,this._blockMeaningAndDesc),i=this._translateMessage(t,r);return X(this,i)}return void this._reportError(t,"I18N blocks should not cross element boundaries")}}else e&&(this._inI18nBlock=!0,this._blockStartDepth=this._depth,this._blockChildren=[],this._blockMeaningAndDesc=t.value.replace(pc,"").trim(),this._openTranslatableSection(t))},t.prototype.visitText=function(t){return this._isInTranslatableSection&&this._mayBeAddBlockChildren(t),t},t.prototype.visitElement=function(t,e){var n=this;this._mayBeAddBlockChildren(t),this._depth++;var r,i=this._inI18nNode,o=this._inImplicitNode,s=[],a=yt(t),u=a?a.value:"",c=this._implicitTags.some(function(e){return t.name===e})&&!this._inIcu&&!this._isInTranslatableSection,p=!o&&c;if(this._inImplicitNode=o||c,this._isInTranslatableSection||this._inIcu)(a||p)&&this._reportError(t,"Could not mark an element as translatable inside a translatable section"),this._mode==hc.Extract&&X(this,t.children);else{if(a||p){this._inI18nNode=!0;var l=this._addMessage(t.children,u);r=this._translateMessage(t,l)}if(this._mode==hc.Extract){var h=a||p;h&&this._openTranslatableSection(t),X(this,t.children),h&&this._closeTranslatableSection(t,t.children)}}if(this._mode===hc.Merge){var f=r||t.children;f.forEach(function(t){var r=t.visit(n,e);r&&!n._isInTranslatableSection&&(s=s.concat(r))})}if(this._visitAttributesOf(t),this._depth--,this._inI18nNode=i,this._inImplicitNode=o,this._mode===hc.Merge){var d=this._translateAttributes(t);return new Nu(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=ct(e)},t.prototype._visitAttributesOf=function(t){var e=this,n={},r=this._implicitAttrs[t.name]||[];t.attrs.filter(function(t){return t.name.startsWith(cc)}).forEach(function(t){return n[t.name.slice(cc.length)]=t.value}),t.attrs.forEach(function(t){t.name in n?e._addMessage([t],n[t.name]):r.some(function(e){return t.name===e})&&e._addMessage([t])})},t.prototype._addMessage=function(t,e){if(!(0==t.length||1==t.length&&t[0]instanceof ku&&!t[0].value)){var n=mt(e),r=n[0],i=n[1],o=this._createI18nMessage(t,r,i);return this._messages.push(o),o}},t.prototype._translateMessage=function(t,e){if(e&&this._mode===hc.Merge){var n=this._translations.get(e);if(n)return n;this._reportError(t,'Translation unavailable for message id="'+this._translations.digest(e)+'"')}return[]},t.prototype._translateAttributes=function(t){var e=this,n=t.attrs,r={};n.forEach(function(t){t.name.startsWith(cc)&&(r[t.name.slice(cc.length)]=mt(t.value)[0])});var i=[];return n.forEach(function(n){if(n.name!==uc&&!n.name.startsWith(cc))if(n.value&&""!=n.value&&r.hasOwnProperty(n.name)){var o=r[n.name],s=e._createI18nMessage([n],o,""),a=e._translations.get(s);if(a)if(0==a.length)i.push(new ku(n.name,"",n.sourceSpan));else if(a[0]instanceof Au){var u=a[0].value;i.push(new ku(n.name,u,n.sourceSpan))}else e._reportError(t,'Unexpected translation for attribute "'+n.name+'" (id="'+e._translations.digest(s)+'")');else e._reportError(t,'Translation unavailable for attribute "'+n.name+'" (id="'+e._translations.digest(s)+'")')}else i.push(n)}),i},t.prototype._mayBeAddBlockChildren=function(t){this._inI18nBlock&&!this._inIcu&&this._depth==this._blockStartDepth&&this._blockChildren.push(t)},t.prototype._openTranslatableSection=function(t){ +this._isInTranslatableSection?this._reportError(t,"Unexpected section start"):this._msgCountAtSectionStart=this._messages.length},Object.defineProperty(t.prototype,"_isInTranslatableSection",{get:function(){return void 0!==this._msgCountAtSectionStart},enumerable:!0,configurable:!0}),t.prototype._closeTranslatableSection=function(t,e){if(!this._isInTranslatableSection)return void this._reportError(t,"Unexpected section end");var n=this._msgCountAtSectionStart,r=e.reduce(function(t,e){return t+(e instanceof Iu?0:1)},0);if(1==r)for(var i=this._messages.length-1;i>=n;i--){var o=this._messages[i].nodes;if(!(1==o.length&&o[0]instanceof Qu)){this._messages.splice(i,1);break}}this._msgCountAtSectionStart=void 0},t.prototype._reportError=function(t,e){this._errors.push(new ac(t.sourceSpan,e))},t}(),dc=function(){function t(){this.closedByParent=!1,this.contentType=Go.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}(),yc=new dc,mc=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},vc=function(t){function e(){t.call(this,vt)}return mc(e,t),e.prototype.parse=function(e,n,r){return void 0===r&&(r=!1),t.prototype.parse.call(this,e,n,r,null)},e}(Gu),gc=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},_c=function(){function t(){}return t.prototype.visitText=function(t){return t.value},t.prototype.visitContainer=function(t){var e=this;return"["+t.children.map(function(t){return t.visit(e)}).join(", ")+"]"},t.prototype.visitIcu=function(t){var e=this,n=Object.keys(t.cases).map(function(n){return n+" {"+t.cases[n].visit(e)+"}"});return"{"+t.expression+", "+t.type+", "+n.join(", ")+"}"},t.prototype.visitTagPlaceholder=function(t){var e=this;return t.isVoid?'<ph tag name="'+t.startName+'"/>':'<ph tag name="'+t.startName+'">'+t.children.map(function(t){return t.visit(e)}).join(", ")+'</ph name="'+t.closeName+'">'},t.prototype.visitPlaceholder=function(t){return t.value?'<ph name="'+t.name+'">'+t.value+"</ph>":'<ph name="'+t.name+'"/>'},t.prototype.visitIcuPlaceholder=function(t){return'<ph icu name="'+t.name+'">'+t.value.visit(this)+"</ph>"},t}(),bc=new _c,wc=function(t){function e(){t.apply(this,arguments)}return gc(e,t),e.prototype.visitIcu=function(t){var e=this,n=Object.keys(t.cases).map(function(n){return n+" {"+t.cases[n].visit(e)+"}"});return"{"+t.type+", "+n.join(", ")+"}"},e}(_c),Ec={};Ec.Little=0,Ec.Big=1,Ec[Ec.Little]="Little",Ec[Ec.Big]="Big";var Sc=function(){function t(){}return t.prototype.write=function(){},t.prototype.load=function(){},t.prototype.digest=function(){},t.prototype.createNameMapper=function(){return null},t}(),Cc=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},xc=function(){function t(){}return t.prototype.visitTag=function(t){var e=this,n=this._serializeAttributes(t.attrs);if(0==t.children.length)return"<"+t.name+n+"/>";var r=t.children.map(function(t){return t.visit(e)});return"<"+t.name+n+">"+r.join("")+"</"+t.name+">"},t.prototype.visitText=function(t){return t.value},t.prototype.visitDeclaration=function(t){return"<?xml"+this._serializeAttributes(t.attrs)+" ?>"},t.prototype._serializeAttributes=function(t){var e=Object.keys(t).map(function(e){return e+'="'+t[e]+'"'}).join(" ");return e.length>0?" "+e:""},t.prototype.visitDoctype=function(t){return"<!DOCTYPE "+t.rootTag+" [\n"+t.dtd+"\n]>"},t}(),Tc=new xc,Pc=function(){function t(t){var e=this;this.attrs={},Object.keys(t).forEach(function(n){e.attrs[n]=Wt(t[n])})}return t.prototype.visit=function(t){return t.visitDeclaration(this)},t}(),Oc=function(){function t(t,e){this.rootTag=t,this.dtd=e}return t.prototype.visit=function(t){return t.visitDoctype(this)},t}(),Ac=function(){function t(t,e,n){var r=this;void 0===e&&(e={}),void 0===n&&(n=[]),this.name=t,this.children=n,this.attrs={},Object.keys(e).forEach(function(t){r.attrs[t]=Wt(e[t])})}return t.prototype.visit=function(t){return t.visitTag(this)},t}(),Mc=function(){function t(t){this.value=Wt(t)}return t.prototype.visit=function(t){return t.visitText(this)},t}(),Rc=function(t){function e(e){void 0===e&&(e=0),t.call(this,"\n"+new Array(e+1).join(" "))}return Cc(e,t),e}(Mc),kc=[[/&/g,"&"],[/"/g,"""],[/'/g,"'"],[/</g,"<"],[/>/g,">"]],Nc=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},Ic="1.2",Dc="urn:oasis:names:tc:xliff:document:1.2",jc="en",Lc="x",Vc="source",Fc="target",Uc="trans-unit",Bc=function(t){function e(){t.apply(this,arguments)}return Nc(e,t),e.prototype.write=function(t){var e=this,n=new Hc,r={},i=[];t.forEach(function(t){var o=e.digest(t);if(!r[o]){r[o]=!0;var s=new Ac(Uc,{id:o,datatype:"html"});s.children.push(new Rc(8),new Ac(Vc,{},n.serialize(t.nodes)),new Rc(8),new Ac(Fc)),t.description&&s.children.push(new Rc(8),new Ac("note",{priority:"1",from:"description"},[new Mc(t.description)])),t.meaning&&s.children.push(new Rc(8),new Ac("note",{priority:"1",from:"meaning"},[new Mc(t.meaning)])),s.children.push(new Rc(6)),i.push(new Rc(6),s)}});var o=new Ac("body",{},i.concat([new Rc(4)])),s=new Ac("file",{"source-language":jc,datatype:"plaintext",original:"ng2.template"},[new Rc(4),o,new Rc(2)]),a=new Ac("xliff",{version:Ic,xmlns:Dc},[new Rc(2),s,new Rc]);return zt([new Pc({version:"1.0",encoding:"UTF-8"}),new Rc,a,new Rc])},e.prototype.load=function(t,e){var n=new qc,r=n.parse(t,e),i=r.mlNodesByMsgId,o=r.errors,s={},a=new zc;if(Object.keys(i).forEach(function(t){var e=a.convert(i[t]),n=e.i18nNodes,r=e.errors;o.push.apply(o,r),s[t]=n}),o.length)throw new Error("xliff parse errors:\n"+o.join("\n"));return s},e.prototype.digest=function(t){return gt(t)},e}(Sc),Hc=function(){function t(){}return t.prototype.visitText=function(t){return[new Mc(t.value)]},t.prototype.visitContainer=function(t){var e=this,n=[];return t.children.forEach(function(t){return n.push.apply(n,t.visit(e))}),n},t.prototype.visitIcu=function(){if(this._isInIcu)throw new Error("xliff does not support nested ICU messages");this._isInIcu=!0;var t=[];return this._isInIcu=!1,t},t.prototype.visitTagPlaceholder=function(t){var e=Gt(t.tag),n=new Ac(Lc,{id:t.startName,ctype:e});if(t.isVoid)return[n];var r=new Ac(Lc,{id:t.closeName,ctype:e});return[n].concat(this.serialize(t.children),[r])},t.prototype.visitPlaceholder=function(t){return[new Ac(Lc,{id:t.name})]},t.prototype.visitIcuPlaceholder=function(t){return[new Ac(Lc,{id:t.name})]},t.prototype.serialize=function(t){var e=this;return this._isInIcu=!1,(n=[]).concat.apply(n,t.map(function(t){return t.visit(e)}));var n},t}(),qc=function(){function t(){}return t.prototype.parse=function(t,e){this._unitMlNodes=[],this._mlNodesByMsgId={};var n=(new vc).parse(t,e,!1);return this._errors=n.errors,X(this,n.rootNodes,null),{mlNodesByMsgId:this._mlNodesByMsgId,errors:this._errors}},t.prototype.visitElement=function(t){switch(t.name){case Uc:this._unitMlNodes=null;var e=t.attrs.find(function(t){return"id"===t.name});if(e){var n=e.value;this._mlNodesByMsgId.hasOwnProperty(n)?this._addError(t,"Duplicated translations for msg "+n):(X(this,t.children,null),this._unitMlNodes?this._mlNodesByMsgId[n]=this._unitMlNodes:this._addError(t,"Message "+n+" misses a translation"))}else this._addError(t,"<"+Uc+'> misses the "id" attribute');break;case Vc:break;case Fc:this._unitMlNodes=t.children;break;default:X(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 ac(t.sourceSpan,e))},t}(),zc=function(){function t(){}return t.prototype.convert=function(t){return this._errors=[],{i18nNodes:X(this,t),errors:this._errors}},t.prototype.visitText=function(t){return new Qu(t.value,t.sourceSpan)},t.prototype.visitElement=function(t){if(t.name===Lc){var e=t.attrs.find(function(t){return"id"===t.name});if(e)return new Ju("",e.value,t.sourceSpan);this._addError(t,"<"+Lc+'> 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 ac(t.sourceSpan,e))},t}(),Wc=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},Gc="messagebundle",Kc="msg",Xc="ph",Qc="ex",Yc='<!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)>',$c=function(t){function e(){t.apply(this,arguments)}return Wc(e,t),e.prototype.write=function(t){var e=this,n=new Jc,r=new Zc,i={},o=new Ac(Gc);return t.forEach(function(t){var n=e.digest(t);if(!i[n]){i[n]=!0;var s=e.createNameMapper(t),a={id:n};t.description&&(a.desc=t.description),t.meaning&&(a.meaning=t.meaning),o.children.push(new Rc(2),new Ac(Kc,a,r.serialize(t.nodes,{mapper:s})))}}),o.children.push(new Rc),zt([new Pc({version:"1.0",encoding:"UTF-8"}),new Rc,new Oc(Gc,Yc),new Rc,n.addDefaultExamples(o),new Rc])},e.prototype.load=function(){throw new Error("Unsupported")},e.prototype.digest=function(t){return Kt(t)},e.prototype.createNameMapper=function(t){return new tp(t)},e}(Sc),Zc=function(){function t(){}return t.prototype.visitText=function(t){return[new Mc(t.value)]},t.prototype.visitContainer=function(t,e){var n=this,r=[];return t.children.forEach(function(t){return r.push.apply(r,t.visit(n,e))}),r},t.prototype.visitIcu=function(t,e){var n=this,r=[new Mc("{"+t.expressionPlaceholder+", "+t.type+", ")];return Object.keys(t.cases).forEach(function(i){r.push.apply(r,[new Mc(i+" {")].concat(t.cases[i].visit(n,e),[new Mc("} ")]))}),r.push(new Mc("}")),r},t.prototype.visitTagPlaceholder=function(t,e){var n=new Ac(Qc,{},[new Mc("<"+t.tag+">")]),r=e.mapper.toPublicName(t.startName),i=new Ac(Xc,{name:r},[n]);if(t.isVoid)return[i];var o=new Ac(Qc,{},[new Mc("</"+t.tag+">")]);r=e.mapper.toPublicName(t.closeName);var s=new Ac(Xc,{name:r},[o]);return[i].concat(this.serialize(t.children,e),[s])},t.prototype.visitPlaceholder=function(t,e){var n=e.mapper.toPublicName(t.name);return[new Ac(Xc,{name:n})]},t.prototype.visitIcuPlaceholder=function(t,e){var n=e.mapper.toPublicName(t.name);return[new Ac(Xc,{name:n})]},t.prototype.serialize=function(t,e){var n=this;return(r=[]).concat.apply(r,t.map(function(t){return t.visit(n,e)}));var r},t}(),Jc=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===Xc){if(!t.children||0==t.children.length){var n=new Mc(t.attrs.name||"...");t.children=[new Ac(Qc,{},[n])]}}else t.children&&t.children.forEach(function(t){return t.visit(e)})},t.prototype.visitText=function(){},t.prototype.visitDeclaration=function(){},t.prototype.visitDoctype=function(){},t}(),tp=function(){function t(t){var e=this;this.internalToXmb={},this.xmbToNextId={},this.xmbToInternal={},t.nodes.forEach(function(t){return t.visit(e)})}return t.prototype.toPublicName=function(t){return this.internalToXmb.hasOwnProperty(t)?this.internalToXmb[t]:null},t.prototype.toInternalName=function(t){return this.xmbToInternal.hasOwnProperty(t)?this.xmbToInternal[t]:null},t.prototype.visitText=function(){return null},t.prototype.visitContainer=function(t){var e=this;t.children.forEach(function(t){return t.visit(e)})},t.prototype.visitIcu=function(t){var e=this;Object.keys(t.cases).forEach(function(n){t.cases[n].visit(e)})},t.prototype.visitTagPlaceholder=function(t){var e=this;this.addPlaceholder(t.startName),t.children.forEach(function(t){return t.visit(e)}),this.addPlaceholder(t.closeName)},t.prototype.visitPlaceholder=function(t){this.addPlaceholder(t.name)},t.prototype.visitIcuPlaceholder=function(t){this.addPlaceholder(t.name)},t.prototype.addPlaceholder=function(t){if(t&&!this.internalToXmb.hasOwnProperty(t)){var e=t.toUpperCase().replace(/[^A-Z0-9_]/g,"_");if(this.xmbToInternal.hasOwnProperty(e)){var n=this.xmbToNextId[e];this.xmbToNextId[e]=n+1,e=e+"_"+n}else this.xmbToNextId[e]=1;this.internalToXmb[t]=e,this.xmbToInternal[e]=t}},t}(),ep=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},np="translationbundle",rp="translation",ip="ph",op=function(t){function e(){t.apply(this,arguments)}return ep(e,t),e.prototype.write=function(){throw new Error("Unsupported")},e.prototype.load=function(t,e){var n=new sp,r=n.parse(t,e),i=r.mlNodesByMsgId,o=r.errors,s={},a=new ap;if(Object.keys(i).forEach(function(t){var e=a.convert(i[t]),n=e.i18nNodes,r=e.errors;o.push.apply(o,r),s[t]=n}),o.length)throw new Error("xtb parse errors:\n"+o.join("\n"));return s},e.prototype.digest=function(t){return Kt(t)},e.prototype.createNameMapper=function(t){return new tp(t)},e}(Sc),sp=function(){function t(){}return t.prototype.parse=function(t,e){this._bundleDepth=0,this._mlNodesByMsgId={};var n=(new vc).parse(t,e,!0);return this._errors=n.errors,X(this,n.rootNodes),{mlNodesByMsgId:this._mlNodesByMsgId,errors:this._errors}},t.prototype.visitElement=function(t){switch(t.name){case np:this._bundleDepth++,this._bundleDepth>1&&this._addError(t,"<"+np+"> elements can not be nested"),X(this,t.children,null),this._bundleDepth--;break;case rp:var e=t.attrs.find(function(t){return"id"===t.name});if(e){var n=e.value;this._mlNodesByMsgId.hasOwnProperty(n)?this._addError(t,"Duplicated translations for msg "+n):this._mlNodesByMsgId[n]=t.children}else this._addError(t,"<"+rp+'> 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 ac(t.sourceSpan,e))},t}(),ap=function(){function t(){}return t.prototype.convert=function(t){return this._errors=[],{i18nNodes:X(this,t),errors:this._errors}},t.prototype.visitText=function(t){return new Qu(t.value,t.sourceSpan)},t.prototype.visitExpansion=function(t){var e={};return X(this,t.cases).forEach(function(n){e[n.value]=new Yu(n.nodes,t.sourceSpan)}),new $u(t.switchValue,t.type,e,t.sourceSpan)},t.prototype.visitExpansionCase=function(t){return{value:t.value,nodes:X(this,t.expression)}},t.prototype.visitElement=function(t){if(t.name===ip){var e=t.attrs.find(function(t){return"name"===t.name});if(e)return new Ju("",e.value,t.sourceSpan);this._addError(t,"<"+ip+'> 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 ac(t.sourceSpan,e))},t}(),up=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},cp=this&&this.__decorate||function(t,e,n,r){var i,o=arguments.length,s=3>o?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,r);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(3>o?i(s):o>3?i(e,n,s):i(e,n))||s);return o>3&&s&&Object.defineProperty(e,n,s),s},pp=this&&this.__metadata||function(t,e){return"object"==typeof Reflect&&"function"==typeof Reflect.metadata?Reflect.metadata(t,e):void 0},lp=function(t){function e(){t.call(this,f)}return up(e,t),e.prototype.parse=function(e,n,r,i){return void 0===r&&(r=!1),void 0===i&&(i=Da),t.prototype.parse.call(this,e,n,r,i)},e=cp([M(),pp("design:paramtypes",[])],e)}(Gu),hp=function(){function t(t,e,n){void 0===t&&(t={}),this._i18nNodesByMsgId=t,this.digest=e,this.mapperFactory=n,this._i18nToHtml=new fp(t,e,n)}return t.load=function(e,n,r){var i=r.load(e,n),o=function(t){return r.digest(t)},s=function(t){return r.createNameMapper(t)};return new t(i,o,s)},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}(),fp=function(){function t(t,e,n){void 0===t&&(t={}),this._i18nNodesByMsgId=t,this._digest=e,this._mapperFactory=n,this._contextStack=[],this._errors=[]}return t.prototype.convert=function(t){this._contextStack.length=0,this._errors.length=0;var e=this._convertToText(t),n=t.nodes[0].sourceSpan.start.file.url,r=(new lp).parse(e,n,!0);return{nodes:r.rootNodes,errors:this._errors.concat(r.errors)}},t.prototype.visitText=function(t){return t.value},t.prototype.visitContainer=function(t){var e=this;return t.children.map(function(t){return t.visit(e)}).join("")},t.prototype.visitIcu=function(t){var e=this,n=Object.keys(t.cases).map(function(n){return n+" {"+t.cases[n].visit(e)+"}"}),r=this._srcMsg.placeholders.hasOwnProperty(t.expression)?this._srcMsg.placeholders[t.expression]:t.expression;return"{"+r+", "+t.type+", "+n.join(" ")+"}"},t.prototype.visitPlaceholder=function(t){var e=this._mapper(t.name);return this._srcMsg.placeholders.hasOwnProperty(e)?this._srcMsg.placeholders[e]:this._srcMsg.placeholderToMessage.hasOwnProperty(e)?this._convertToText(this._srcMsg.placeholderToMessage[e]):(this._addError(t,"Unknown placeholder"),"")},t.prototype.visitTagPlaceholder=function(){throw"unreachable code"},t.prototype.visitIcuPlaceholder=function(){throw"unreachable code"},t.prototype._convertToText=function(t){var e=this,n=this._digest(t),r=this._mapperFactory?this._mapperFactory(t):null;if(this._i18nNodesByMsgId.hasOwnProperty(n)){this._contextStack.push({msg:this._srcMsg,mapper:this._mapper}),this._srcMsg=t,this._mapper=function(t){return r?r.toInternalName(t):t};var i=this._i18nNodesByMsgId[n],o=i.map(function(t){return t.visit(e)}).join(""),s=this._contextStack.pop();return this._srcMsg=s.msg,this._mapper=s.mapper,o}return this._addError(t.nodes[0],"Missing translation for message "+n),""},t.prototype._addError=function(t,e){this._errors.push(new ac(t.sourceSpan,e))},t}(),dp=function(){function t(t,e,n){this._htmlParser=t,this._translations=e,this._translationsFormat=n}return t.prototype.parse=function(t,e,n,r){void 0===n&&(n=!1),void 0===r&&(r=Da);var i=this._htmlParser.parse(t,e,n,r);if(!this._translations||""===this._translations)return i;if(i.errors.length)return new Wu(i.rootNodes,i.errors);var o=this._createSerializer(),s=hp.load(this._translations,e,o);return ht(i.rootNodes,s,r,[],{})},t.prototype._createSerializer=function(){var t=(this._translationsFormat||"xlf").toLowerCase();switch(t){case"xmb":return new $c;case"xtb":return new op;case"xliff":case"xlf":default:return new Bc}},t}(),yp=Xt("core","linker/view"),mp=Xt("core","linker/view_utils"),vp=Xt("core","change_detection/change_detection"),gp=Xt("core","animation/animation_style_util"),_p=function(){function t(){}return t.ANALYZE_FOR_ENTRY_COMPONENTS={name:"ANALYZE_FOR_ENTRY_COMPONENTS",moduleUrl:Xt("core","metadata/di"),runtime:e.ANALYZE_FOR_ENTRY_COMPONENTS},t.ViewUtils={name:"ViewUtils",moduleUrl:Xt("core","linker/view_utils"),runtime:_o.ViewUtils},t.AppView={name:"AppView",moduleUrl:yp,runtime:fo},t.DebugAppView={name:"DebugAppView",moduleUrl:yp,runtime:yo},t.ViewContainer={name:"ViewContainer",moduleUrl:Xt("core","linker/view_container"),runtime:po},t.ElementRef={name:"ElementRef",moduleUrl:Xt("core","linker/element_ref"),runtime:e.ElementRef},t.ViewContainerRef={name:"ViewContainerRef",moduleUrl:Xt("core","linker/view_container_ref"),runtime:e.ViewContainerRef},t.ChangeDetectorRef={name:"ChangeDetectorRef",moduleUrl:Xt("core","change_detection/change_detector_ref"),runtime:e.ChangeDetectorRef},t.RenderComponentType={name:"RenderComponentType",moduleUrl:Xt("core","render/api"),runtime:e.RenderComponentType},t.QueryList={name:"QueryList",moduleUrl:Xt("core","linker/query_list"),runtime:e.QueryList},t.TemplateRef={name:"TemplateRef",moduleUrl:Xt("core","linker/template_ref"),runtime:e.TemplateRef},t.TemplateRef_={name:"TemplateRef_",moduleUrl:Xt("core","linker/template_ref"),runtime:xo},t.CodegenComponentFactoryResolver={name:"CodegenComponentFactoryResolver",moduleUrl:Xt("core","linker/component_factory_resolver"),runtime:lo},t.ComponentFactoryResolver={name:"ComponentFactoryResolver",moduleUrl:Xt("core","linker/component_factory_resolver"),runtime:e.ComponentFactoryResolver},t.ComponentFactory={name:"ComponentFactory",runtime:e.ComponentFactory,moduleUrl:Xt("core","linker/component_factory")},t.ComponentRef_={name:"ComponentRef_",runtime:ho,moduleUrl:Xt("core","linker/component_factory")},t.ComponentRef={name:"ComponentRef",runtime:e.ComponentRef,moduleUrl:Xt("core","linker/component_factory")},t.NgModuleFactory={name:"NgModuleFactory",runtime:e.NgModuleFactory,moduleUrl:Xt("core","linker/ng_module_factory")},t.NgModuleInjector={name:"NgModuleInjector",runtime:mo,moduleUrl:Xt("core","linker/ng_module_factory")},t.RegisterModuleFactoryFn={name:"registerModuleFactory",runtime:vo,moduleUrl:Xt("core","linker/ng_module_factory_loader")},t.ValueUnwrapper={name:"ValueUnwrapper",moduleUrl:vp,runtime:Co},t.Injector={name:"Injector",moduleUrl:Xt("core","di/injector"),runtime:e.Injector},t.ViewEncapsulation={name:"ViewEncapsulation",moduleUrl:Xt("core","metadata/view"),runtime:e.ViewEncapsulation},t.ViewType={name:"ViewType",moduleUrl:Xt("core","linker/view_type"),runtime:go},t.ChangeDetectionStrategy={name:"ChangeDetectionStrategy",moduleUrl:vp,runtime:e.ChangeDetectionStrategy},t.StaticNodeDebugInfo={name:"StaticNodeDebugInfo",moduleUrl:Xt("core","linker/debug_context"),runtime:wo},t.DebugContext={name:"DebugContext",moduleUrl:Xt("core","linker/debug_context"),runtime:bo},t.Renderer={name:"Renderer",moduleUrl:Xt("core","render/api"),runtime:e.Renderer},t.SimpleChange={name:"SimpleChange",moduleUrl:vp,runtime:e.SimpleChange},t.UNINITIALIZED={name:"UNINITIALIZED",moduleUrl:vp,runtime:So},t.ChangeDetectorStatus={name:"ChangeDetectorStatus",moduleUrl:vp,runtime:so},t.checkBinding={name:"checkBinding",moduleUrl:mp,runtime:_o.checkBinding},t.devModeEqual={name:"devModeEqual",moduleUrl:vp,runtime:Eo},t.inlineInterpolate={name:"inlineInterpolate",moduleUrl:mp,runtime:_o.inlineInterpolate},t.interpolate={name:"interpolate",moduleUrl:mp,runtime:_o.interpolate},t.castByValue={name:"castByValue",moduleUrl:mp,runtime:_o.castByValue},t.EMPTY_ARRAY={name:"EMPTY_ARRAY",moduleUrl:mp,runtime:_o.EMPTY_ARRAY},t.EMPTY_MAP={name:"EMPTY_MAP",moduleUrl:mp,runtime:_o.EMPTY_MAP},t.createRenderElement={name:"createRenderElement",moduleUrl:mp,runtime:_o.createRenderElement},t.selectOrCreateRenderHostElement={name:"selectOrCreateRenderHostElement",moduleUrl:mp,runtime:_o.selectOrCreateRenderHostElement},t.pureProxies=[null,{name:"pureProxy1",moduleUrl:mp,runtime:_o.pureProxy1},{name:"pureProxy2",moduleUrl:mp,runtime:_o.pureProxy2},{name:"pureProxy3",moduleUrl:mp,runtime:_o.pureProxy3},{name:"pureProxy4",moduleUrl:mp,runtime:_o.pureProxy4},{name:"pureProxy5",moduleUrl:mp,runtime:_o.pureProxy5},{name:"pureProxy6",moduleUrl:mp,runtime:_o.pureProxy6},{name:"pureProxy7",moduleUrl:mp,runtime:_o.pureProxy7},{name:"pureProxy8",moduleUrl:mp,runtime:_o.pureProxy8},{name:"pureProxy9",moduleUrl:mp,runtime:_o.pureProxy9},{name:"pureProxy10",moduleUrl:mp,runtime:_o.pureProxy10}],t.SecurityContext={name:"SecurityContext",moduleUrl:Xt("core","security"),runtime:e.SecurityContext},t.AnimationKeyframe={name:"AnimationKeyframe",moduleUrl:Xt("core","animation/animation_keyframe"),runtime:No},t.AnimationStyles={name:"AnimationStyles",moduleUrl:Xt("core","animation/animation_styles"),runtime:Io},t.NoOpAnimationPlayer={name:"NoOpAnimationPlayer",moduleUrl:Xt("core","animation/animation_player"),runtime:Mo},t.AnimationGroupPlayer={name:"AnimationGroupPlayer",moduleUrl:Xt("core","animation/animation_group_player"),runtime:ko},t.AnimationSequencePlayer={name:"AnimationSequencePlayer",moduleUrl:Xt("core","animation/animation_sequence_player"),runtime:Ro},t.prepareFinalAnimationStyles={name:"prepareFinalAnimationStyles",moduleUrl:gp,runtime:Fo},t.balanceAnimationKeyframes={name:"balanceAnimationKeyframes",moduleUrl:gp,runtime:Uo},t.clearStyles={name:"clearStyles",moduleUrl:gp,runtime:Bo},t.renderStyles={name:"renderStyles",moduleUrl:gp,runtime:qo},t.collectAndResolveStyles={name:"collectAndResolveStyles",moduleUrl:gp,runtime:Ho},t.LOCALE_ID={name:"LOCALE_ID",moduleUrl:Xt("core","i18n/tokens"),runtime:e.LOCALE_ID},t.TRANSLATIONS_FORMAT={name:"TRANSLATIONS_FORMAT",moduleUrl:Xt("core","i18n/tokens"),runtime:e.TRANSLATIONS_FORMAT},t.setBindingDebugInfo={name:"setBindingDebugInfo",moduleUrl:mp,runtime:_o.setBindingDebugInfo},t.setBindingDebugInfoForChanges={name:"setBindingDebugInfoForChanges",moduleUrl:mp,runtime:_o.setBindingDebugInfoForChanges},t.AnimationTransition={name:"AnimationTransition",moduleUrl:Xt("core","animation/animation_transition"),runtime:Wo},t.InlineArray={name:"InlineArray",moduleUrl:mp,runtime:null},t.inlineArrays=[{name:"InlineArray2",moduleUrl:mp,runtime:_o.InlineArray2},{name:"InlineArray2",moduleUrl:mp,runtime:_o.InlineArray2},{name:"InlineArray4",moduleUrl:mp,runtime:_o.InlineArray4},{name:"InlineArray8",moduleUrl:mp,runtime:_o.InlineArray8},{name:"InlineArray16",moduleUrl:mp,runtime:_o.InlineArray16}],t.EMPTY_INLINE_ARRAY={name:"EMPTY_INLINE_ARRAY",moduleUrl:mp,runtime:_o.EMPTY_INLINE_ARRAY},t.InlineArrayDynamic={name:"InlineArrayDynamic",moduleUrl:mp,runtime:_o.InlineArrayDynamic},t.subscribeToRenderElement={name:"subscribeToRenderElement",moduleUrl:mp,runtime:_o.subscribeToRenderElement},t.createRenderComponentType={name:"createRenderComponentType",moduleUrl:mp,runtime:_o.createRenderComponentType},t.noop={name:"noop",moduleUrl:mp,runtime:_o.noop},t}(),bp=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},wp=["zero","one","two","few","many","other"],Ep=function(){function t(t,e,n){this.nodes=t,this.expanded=e,this.errors=n}return t}(),Sp=function(t){function e(e,n){t.call(this,e,n)}return bp(e,t),e}(Ou),Cp=function(){function t(){this.isExpanded=!1,this.errors=[]}return t.prototype.visitElement=function(t){return new Nu(t.name,t.attrs,X(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?ee(t,this.errors):ne(t,this.errors)},t.prototype.visitExpansionCase=function(){throw new Error("Should not be reached")},t}(),xp=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},Tp=function(t){function e(e,n){t.call(this,n,e)}return xp(e,t),e}(Ou),Pp=function(){function t(t,e){var n=this;this.component=t,this.sourceSpan=e,this.errors=[],this.viewQueries=ae(t),this.viewProviders=new Map,t.viewProviders.forEach(function(t){i(n.viewProviders.get(S(t.token)))&&n.viewProviders.set(S(t.token),!0)})}return t}(),Op=function(){function t(t,e,n,i,o,s,a){var u=this;this.viewContext=t,this._parent=e,this._isViewRoot=n,this._directiveAsts=i,this._sourceSpan=a,this._transformedProviders=new Map,this._seenProviders=new Map,this._hasViewContainer=!1,this._attrs={},o.forEach(function(t){return u._attrs[t.name]=t.value});var c=i.map(function(t){return t.directive});this._allProviders=oe(c,a,t.errors),this._contentQueries=ue(c);var p=new Map;Array.from(this._allProviders.values()).forEach(function(t){u._addQueryReadsTo(t.token,p)}),s.forEach(function(t){u._addQueryReadsTo({value:t.name},p)}),r(p.get(Qt(_p.ViewContainerRef)))&&(this._hasViewContainer=!0),Array.from(this._allProviders.values()).forEach(function(t){var e=t.eager||r(p.get(S(t.token)));e&&u._getOrCreateLocalProvider(t.providerType,t.token,!0)})}return t.prototype.afterElement=function(){var t=this;Array.from(this._allProviders.values()).forEach(function(e){t._getOrCreateLocalProvider(e.providerType,e.token,!1)})},Object.defineProperty(t.prototype,"transformProviders",{get:function(){return Array.from(this._transformedProviders.values())},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"transformedDirectiveAsts",{get:function(){var t=this.transformProviders.map(function(t){return t.token.identifier}),e=this._directiveAsts.slice();return e.sort(function(e,n){return t.indexOf(e.directive.type)-t.indexOf(n.directive.type)}),e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"transformedHasViewContainer",{get:function(){return this._hasViewContainer},enumerable:!0,configurable:!0}),t.prototype._addQueryReadsTo=function(t,e){this._getQueriesFor(t).forEach(function(n){var r=n.read||t;i(e.get(S(r)))&&e.set(S(r),!0)})},t.prototype._getQueriesFor=function(t){for(var e,n=[],r=this,i=0;null!==r;)e=r._contentQueries.get(S(t)),e&&n.push.apply(n,e.filter(function(t){return t.descendants||1>=i})),r._directiveAsts.length>0&&i++,r=r._parent;return e=this.viewContext.viewQueries.get(S(t)),e&&n.push.apply(n,e),n},t.prototype._getOrCreateLocalProvider=function(t,e,n){var i=this,o=this._allProviders.get(S(e));if(!o||(t===Yi.Directive||t===Yi.PublicService)&&o.providerType===Yi.PrivateService||(t===Yi.PrivateService||t===Yi.PublicService)&&o.providerType===Yi.Builtin)return null;var s=this._transformedProviders.get(S(e));if(s)return s;if(r(this._seenProviders.get(S(e))))return this.viewContext.errors.push(new Tp("Cannot instantiate cyclic dependency! "+E(e),this._sourceSpan)),null;this._seenProviders.set(S(e),!0);var a=o.providers.map(function(t){var e,s=t.useValue,a=t.useExisting;if(r(t.useExisting)){var u=i._getDependency(o.providerType,{token:t.useExisting},n);r(u.token)?a=u.token:(a=null,s=u.value)}else if(t.useFactory){var c=t.deps||t.useFactory.diDeps;e=c.map(function(t){return i._getDependency(o.providerType,t,n)})}else if(t.useClass){var c=t.deps||t.useClass.diDeps;e=c.map(function(t){return i._getDependency(o.providerType,t,n)})}return re(t,{useExisting:a,useValue:s,deps:e})});return s=ie(o,{eager:n,providers:a}),this._transformedProviders.set(S(e),s),s},t.prototype._getLocalDependency=function(t,e,n){if(void 0===n&&(n=null),e.isAttribute){var i=this._attrs[e.token.value];return{isValue:!0,value:null==i?null:i}}if(r(e.token)){if(t===Yi.Directive||t===Yi.Component){if(S(e.token)===Qt(_p.Renderer)||S(e.token)===Qt(_p.ElementRef)||S(e.token)===Qt(_p.ChangeDetectorRef)||S(e.token)===Qt(_p.TemplateRef))return e;S(e.token)===Qt(_p.ViewContainerRef)&&(this._hasViewContainer=!0)}if(S(e.token)===Qt(_p.Injector))return e;if(r(this._getOrCreateLocalProvider(t,e.token,n)))return e}return null},t.prototype._getDependency=function(t,e,n){ +void 0===n&&(n=null);var i=this,o=n,s=null;if(e.isSkipSelf||(s=this._getLocalDependency(t,e,n)),e.isSelf)!s&&e.isOptional&&(s={isValue:!0,value:null});else{for(;!s&&i._parent;){var a=i;i=i._parent,a._isViewRoot&&(o=!1),s=i._getLocalDependency(Yi.PublicService,e,o)}s||(s=!e.isHost||this.viewContext.component.isHost||this.viewContext.component.type.reference===S(e.token)||r(this.viewContext.viewProviders.get(S(e.token)))?e:e.isOptional?s={isValue:!0,value:null}:null)}return s||this.viewContext.errors.push(new Tp("No provider for "+E(e.token),this._sourceSpan)),s},t}(),Ap=function(){function t(t,e,n){var r=this;this._transformedProviders=new Map,this._seenProviders=new Map,this._errors=[],this._allProviders=new Map,t.transitiveModule.modules.forEach(function(t){var e={token:{identifier:t},useClass:t};se([e],Yi.PublicService,!0,n,r._errors,r._allProviders)}),se(t.transitiveModule.providers.map(function(t){return t.provider}).concat(e),Yi.PublicService,!1,n,this._errors,this._allProviders)}return t.prototype.parse=function(){var t=this;if(Array.from(this._allProviders.values()).forEach(function(e){t._getOrCreateLocalProvider(e.token,e.eager)}),this._errors.length>0){var e=this._errors.join("\n");throw new Error("Provider parse errors:\n"+e)}return Array.from(this._transformedProviders.values())},t.prototype._getOrCreateLocalProvider=function(t,e){var n=this,i=this._allProviders.get(S(t));if(!i)return null;var o=this._transformedProviders.get(S(t));if(o)return o;if(r(this._seenProviders.get(S(t))))return this._errors.push(new Tp("Cannot instantiate cyclic dependency! "+E(t),i.sourceSpan)),null;this._seenProviders.set(S(t),!0);var s=i.providers.map(function(t){var o,s=t.useValue,a=t.useExisting;if(r(t.useExisting)){var u=n._getDependency({token:t.useExisting},e,i.sourceSpan);r(u.token)?a=u.token:(a=null,s=u.value)}else if(t.useFactory){var c=t.deps||t.useFactory.diDeps;o=c.map(function(t){return n._getDependency(t,e,i.sourceSpan)})}else if(t.useClass){var c=t.deps||t.useClass.diDeps;o=c.map(function(t){return n._getDependency(t,e,i.sourceSpan)})}return re(t,{useExisting:a,useValue:s,deps:o})});return o=ie(i,{eager:e,providers:s}),this._transformedProviders.set(S(t),o),o},t.prototype._getDependency=function(t,e,n){void 0===e&&(e=null);var i=!1;!t.isSkipSelf&&r(t.token)&&(S(t.token)===Qt(_p.Injector)||S(t.token)===Qt(_p.ComponentFactoryResolver)?i=!0:r(this._getOrCreateLocalProvider(t.token,e))&&(i=!0));var o=t;return t.isSelf&&!i&&(t.isOptional?o={isValue:!0,value:null}:this._errors.push(new Tp("No provider for "+E(t.token),n))),o},t}(),Mp=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}(),Rp=function(){function t(t,e){this.style=t,this.styleUrls=e}return t}(),kp=/@import\s+(?:url\()?\s*(?:(?:['"]([^'"]*))|([^;\)\s]*))[^;]*;?/g,Np=/\/\*.+?\*\//g,Ip=/^([^:\/?#]+):/,Dp=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},jp=".",Lp="attr",Vp="class",Fp="style",Up="animate-",Bp={};Bp.DEFAULT=0,Bp.LITERAL_ATTR=1,Bp.ANIMATION=2,Bp[Bp.DEFAULT]="DEFAULT",Bp[Bp.LITERAL_ATTR]="LITERAL_ATTR",Bp[Bp.ANIMATION]="ANIMATION";var Hp=function(){function t(t,e,n,r){this.name=t,this.expression=e,this.type=n,this.sourceSpan=r}return Object.defineProperty(t.prototype,"isLiteral",{get:function(){return this.type===Bp.LITERAL_ATTR},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isAnimation",{get:function(){return this.type===Bp.ANIMATION},enumerable:!0,configurable:!0}),t}(),qp=function(){function t(t,e,n,r,i){var o=this;this._exprParser=t,this._interpolationConfig=e,this._schemaRegistry=n,this._targetErrors=i,this.pipesByName=new Map,r.forEach(function(t){return o.pipesByName.set(t.name,t)})}return t.prototype.createDirectiveHostPropertyAsts=function(t,e){var n=this;if(t.hostProperties){var r=[];return Object.keys(t.hostProperties).forEach(function(i){var o=t.hostProperties[i];"string"==typeof o?n.parsePropertyBinding(i,o,!0,e,[],r):n._reportError('Value of the host property binding "'+i+'" needs to be a string representing an expression but got "'+o+'" ('+typeof o+")",e)}),r.map(function(e){return n.createElementPropertyAst(t.selector,e)})}},t.prototype.createDirectiveHostEventAsts=function(t,e){var n=this;if(t.hostListeners){var r=[];return Object.keys(t.hostListeners).forEach(function(i){var o=t.hostListeners[i];"string"==typeof o?n.parseEvent(i,o,e,[],r):n._reportError('Value of the host listener "'+i+'" needs to be a string representing an expression but got "'+o+'" ('+typeof o+")",e)}),r}},t.prototype.parseInterpolation=function(t,e){var n=e.start.toString();try{var r=this._exprParser.parseInterpolation(t,n,this._interpolationConfig);return r&&this._reportExpressionParserErrors(r.errors,e),this._checkPipes(r,e),r}catch(i){return this._reportError(""+i,e),this._exprParser.wrapLiteralPrimitive("ERROR",n)}},t.prototype.parseInlineTemplateBinding=function(t,e,n,r,i,o){for(var s=this._parseTemplateBindings(t,e,n),a=0;a<s.length;a++){var u=s[a];u.keyIsVar?o.push(new zi(u.key,u.name,n)):u.expression?this._parsePropertyAst(u.key,u.expression,n,r,i):(r.push([u.key,""]),this.parseLiteralAttr(u.key,null,n,r,i))}},t.prototype._parseTemplateBindings=function(t,e,n){var r=this,i=n.start.toString();try{var o=this._exprParser.parseTemplateBindings(t,e,i);return this._reportExpressionParserErrors(o.errors,n),o.templateBindings.forEach(function(t){t.expression&&r._checkPipes(t.expression,n)}),o.warnings.forEach(function(t){r._reportError(t,n,Pu.WARNING)}),o.templateBindings}catch(s){return this._reportError(""+s,n),[]}},t.prototype.parseLiteralAttr=function(t,e,n,r,i){he(t)?(t=t.substring(1),e&&this._reportError('Assigning animation triggers via @prop="exp" attributes with an expression is invalid. Use property bindings (e.g. [@prop]="exp") or use an attribute without a value (e.g. @prop) instead.',n,Pu.FATAL),this._parseAnimation(t,e,n,r,i)):i.push(new Hp(t,this._exprParser.wrapLiteralPrimitive(e,""),Bp.LITERAL_ATTR,n))},t.prototype.parsePropertyBinding=function(t,e,n,r,i,o){var s=!1;t.startsWith(Up)?(s=!0,t=t.substring(Up.length)):he(t)&&(s=!0,t=t.substring(1)),s?this._parseAnimation(t,e,r,i,o):this._parsePropertyAst(t,this._parseBinding(e,n,r),r,i,o)},t.prototype.parsePropertyInterpolation=function(t,e,n,r,i){var o=this.parseInterpolation(e,n);return o?(this._parsePropertyAst(t,o,n,r,i),!0):!1},t.prototype._parsePropertyAst=function(t,e,n,r,i){r.push([t,e.source]),i.push(new Hp(t,e,Bp.DEFAULT,n))},t.prototype._parseAnimation=function(t,e,n,r,i){var o=this._parseBinding(e||"null",!1,n);r.push([t,o.source]),i.push(new Hp(t,o,Bp.ANIMATION,n))},t.prototype._parseBinding=function(t,e,n){var r=n.start.toString();try{var i=e?this._exprParser.parseSimpleBinding(t,r,this._interpolationConfig):this._exprParser.parseBinding(t,r,this._interpolationConfig);return i&&this._reportExpressionParserErrors(i.errors,n),this._checkPipes(i,n),i}catch(o){return this._reportError(""+o,n),this._exprParser.wrapLiteralPrimitive("ERROR",r)}},t.prototype.createElementPropertyAst=function(t,n){if(n.isAnimation)return new Bi(n.name,Zi.Animation,e.SecurityContext.NONE,!1,n.expression,null,n.sourceSpan);var r,i,o=null,s=null,a=n.name.split(jp);if(a.length>1)if(a[0]==Lp){s=a[1],this._validatePropertyOrAttributeName(s,n.sourceSpan,!0),i=fe(this._schemaRegistry,t,s,!0);var u=s.indexOf(":");if(u>-1){var c=s.substring(0,u),p=s.substring(u+1);s=h(c,p)}r=Zi.Attribute}else a[0]==Vp?(s=a[1],r=Zi.Class,i=[e.SecurityContext.NONE]):a[0]==Fp&&(o=a.length>2?a[2]:null,s=a[1],r=Zi.Style,i=[e.SecurityContext.STYLE]);return null===s&&(s=this._schemaRegistry.getMappedPropName(n.name),i=fe(this._schemaRegistry,t,s,!1),r=Zi.Property,this._validatePropertyOrAttributeName(s,n.sourceSpan,!1)),new Bi(s,r,1===i.length?i[0]:null,i.length>1,n.expression,o,n.sourceSpan)},t.prototype.parseEvent=function(t,e,n,r,i){he(t)?(t=t.substr(1),this._parseAnimationEvent(t,e,n,i)):this._parseEvent(t,e,n,r,i)},t.prototype._parseAnimationEvent=function(t,e,n,r){var i=m(t,[t,""]),o=i[0],s=i[1].toLowerCase();if(s)switch(s){case"start":case"done":var a=this._parseAction(e,n);r.push(new Hi(o,null,s,a,n));break;default:this._reportError('The provided animation output phase value "'+s+'" for "@'+o+'" is not supported (use start or done)',n)}else this._reportError("The animation trigger output event (@"+o+") is missing its phase value name (start or done are currently supported)",n)},t.prototype._parseEvent=function(t,e,n,r,i){var o=y(t,[null,t]),s=o[0],a=o[1],u=this._parseAction(e,n);r.push([t,u.source]),i.push(new Hi(a,s,null,u,n))},t.prototype._parseAction=function(t,e){var n=e.start.toString();try{var r=this._exprParser.parseAction(t,n,this._interpolationConfig);return r&&this._reportExpressionParserErrors(r.errors,e),!r||r.ast instanceof Ba?(this._reportError("Empty expressions are not allowed",e),this._exprParser.wrapLiteralPrimitive("ERROR",n)):(this._checkPipes(r,e),r)}catch(i){return this._reportError(""+i,e),this._exprParser.wrapLiteralPrimitive("ERROR",n)}},t.prototype._reportError=function(t,e,n){void 0===n&&(n=Pu.FATAL),this._targetErrors.push(new Ou(e,t,n))},t.prototype._reportExpressionParserErrors=function(t,e){for(var n=0,r=t;n<r.length;n++){var i=r[n];this._reportError(i.message,e)}},t.prototype._checkPipes=function(t,e){var n=this;if(t){var r=new zp;t.visit(r),r.pipes.forEach(function(t,r){n.pipesByName.has(r)||n._reportError("The pipe '"+r+"' could not be found",new Tu(e.start.moveBy(t.span.start),e.start.moveBy(t.span.end)))})}},t.prototype._validatePropertyOrAttributeName=function(t,e,n){var r=n?this._schemaRegistry.validateAttribute(t):this._schemaRegistry.validateProperty(t);r.error&&this._reportError(r.msg,e,Pu.FATAL)},t}(),zp=function(t){function e(){t.apply(this,arguments),this.pipes=new Map}return Dp(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}(uu),Wp="select",Gp="ng-content",Kp="link",Xp="rel",Qp="href",Yp="stylesheet",$p="style",Zp="script",Jp="ngNonBindable",tl="ngProjectAs",el={};el.NG_CONTENT=0,el.STYLE=1,el.STYLESHEET=2,el.SCRIPT=3,el.OTHER=4,el[el.NG_CONTENT]="NG_CONTENT",el[el.STYLE]="STYLE",el[el.STYLESHEET]="STYLESHEET",el[el.SCRIPT]="SCRIPT",el[el.OTHER]="OTHER";var nl=function(){function t(t,e,n,r,i){this.type=t,this.selectAttr=e,this.hrefAttr=n,this.nonBindable=r,this.projectAs=i}return t}(),rl=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},il=this&&this.__decorate||function(t,e,n,r){var i,o=arguments.length,s=3>o?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,r);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(3>o?i(s):o>3?i(e,n,s):i(e,n))||s);return o>3&&s&&Object.defineProperty(e,n,s),s},ol=this&&this.__metadata||function(t,e){return"object"==typeof Reflect&&"function"==typeof Reflect.metadata?Reflect.metadata(t,e):void 0},sl=/^(?:(?:(?:(bind-)|(let-)|(ref-|#)|(on-)|(bindon-)|(@))(.+))|\[\(([^\)]+)\)\]|\[([^\]]+)\]|\(([^\)]+)\))$/,al=1,ul=2,cl=3,pl=4,ll=5,hl=6,fl=7,dl=8,yl=9,ml=10,vl="template",gl="template",_l="*",bl="class",wl=Zo.parse("*")[0],El=new e.OpaqueToken("TemplateTransforms"),Sl=function(t){function e(e,n,r){t.call(this,n,e,r)}return rl(e,t),e}(Ou),Cl=function(){function t(t,e){this.templateAst=t,this.errors=e}return t}(),xl=function(){function t(t,e,n,r,i){this._exprParser=t,this._schemaRegistry=e,this._htmlParser=n,this._console=r,this.transforms=i}return t.prototype.parse=function(t,e,n,r,i,o){var s=this.tryParse(t,e,n,r,i,o),a=s.errors.filter(function(t){return t.level===Pu.WARNING}),u=s.errors.filter(function(t){return t.level===Pu.FATAL});if(a.length>0&&this._console.warn("Template parse warnings:\n"+a.join("\n")),u.length>0){var c=u.join("\n");throw new cs("Template parse errors:\n"+c)}return s.templateAst},t.prototype.tryParse=function(t,e,n,r,i,o){return this.tryParseHtml(this.expandHtml(this._htmlParser.parse(e,o,!0,this.getInterpolationConfig(t))),t,e,n,r,i,o)},t.prototype.tryParseHtml=function(t,e,r,i,o,s){var a,u=t.errors;if(t.rootNodes.length>0){var c=_e(i),p=_e(o),l=new Pp(e,t.rootNodes[0].sourceSpan),h=void 0;e.template&&e.template.interpolation&&(h={start:e.template.interpolation[0],end:e.template.interpolation[1]});var f=new qp(this._exprParser,h,this._schemaRegistry,p,u),d=new Tl(l,c,f,this._schemaRegistry,s,u);a=X(d,t.rootNodes,Ml),u.push.apply(u,l.errors)}else a=[];return this._assertNoReferenceDuplicationOnTemplate(a,u),u.length>0?new Cl(a,u):(this.transforms&&this.transforms.forEach(function(t){a=n(t,a)}),new Cl(a,u))},t.prototype.expandHtml=function(t,e){void 0===e&&(e=!1);var n=t.errors;if(0==n.length||e){var r=te(t.rootNodes);n.push.apply(n,r.errors),t=new Wu(r.nodes,n)}return t},t.prototype.getInterpolationConfig=function(t){return t.template?Ia.fromArray(t.template.interpolation):void 0},t.prototype._assertNoReferenceDuplicationOnTemplate=function(t,e){var n=[];t.filter(function(t){return!!t.references}).forEach(function(t){return t.references.forEach(function(t){var r=t.name;if(n.indexOf(r)<0)n.push(r);else{var i=new Sl('Reference "#'+r+'" is defined several times',t.sourceSpan,Pu.FATAL);e.push(i)}})})},t.ctorParameters=function(){return[{type:wu},{type:Mp},{type:dp},{type:To},{type:Array,decorators:[{type:e.Optional},{type:e.Inject,args:[El]}]}]},t=il([M(),ol("design:paramtypes",[wu,Mp,dp,To,Array])],t)}(),Tl=function(){function t(t,e,n,r,i,o){var s=this;this.providerViewContext=t,this._bindingParser=n,this._schemaRegistry=r,this._schemas=i,this._targetErrors=o,this.selectorMatcher=new Jo,this.directivesIndex=new Map,this.ngContentCount=0,e.forEach(function(t,e){var n=Zo.parse(t.selector);s.selectorMatcher.addSelectables(n,t),s.directivesIndex.set(t,e)})}return t.prototype.visitExpansion=function(){return null},t.prototype.visitExpansionCase=function(){return null},t.prototype.visitText=function(t,e){var n=e.findNgContentIndex(wl),r=this._bindingParser.parseInterpolation(t.value,t.sourceSpan);return r?new Fi(r,n,t.sourceSpan):new Vi(t.value,n,t.sourceSpan)},t.prototype.visitAttribute=function(t){return new Ui(t.name,t.value,t.sourceSpan)},t.prototype.visitComment=function(){return null},t.prototype.visitElement=function(t,e){var n=this,i=t.name,o=de(t);if(o.type===el.SCRIPT||o.type===el.STYLE)return null;if(o.type===el.STYLESHEET&&pe(o.hrefAttr))return null;var s=[],a=[],u=[],c=[],l=[],h=[],f=[],d=[],y=!1,m=[],v=p(i.toLowerCase())[1],g=v==vl;t.attrs.forEach(function(t){var e,i,o=n._parseAttr(g,t,s,a,l,u,c),p=n._normalizeAttributeName(t.name);p==gl?e=t.value:p.startsWith(_l)&&(e=t.value,i=p.substring(_l.length)+":");var v=r(e);v&&(y&&n._reportError("Can't have multiple template bindings on one element. Use only one attribute named 'template' or prefixed with *",t.sourceSpan),y=!0,n._bindingParser.parseInlineTemplateBinding(i,e,t.sourceSpan,f,h,d)),o||v||(m.push(n.visitAttribute(t,null)),s.push([t.name,t.value]))});var _=ve(i,s),b=this._parseDirectives(this.selectorMatcher,_),w=b.directives,E=b.matchElement,S=[],C=this._createDirectiveAsts(g,t.name,w,a,u,t.sourceSpan,S),x=this._createElementPropertyAsts(t.name,a,C),T=e.isTemplateElement||y,P=new Op(this.providerViewContext,e.providerContext,T,C,m,S,t.sourceSpan),O=X(o.nonBindable?Rl:this,t.children,Al.create(g,C,g?e.providerContext:P));P.afterElement();var A,M=r(o.projectAs)?Zo.parse(o.projectAs)[0]:_,R=e.findNgContentIndex(M);if(o.type===el.NG_CONTENT)t.children&&!t.children.every(ge)&&this._reportError("<ng-content> element cannot have content.",t.sourceSpan),A=new $i(this.ngContentCount++,y?null:R,t.sourceSpan);else if(g)this._assertAllEventsPublishedByDirectives(C,l),this._assertNoComponentsNorElementBindingsOnTemplate(C,x,t.sourceSpan),A=new Gi(m,l,S,c,P.transformedDirectiveAsts,P.transformProviders,P.transformedHasViewContainer,O,y?null:R,t.sourceSpan);else{this._assertElementExists(E,t),this._assertOnlyOneComponent(C,t.sourceSpan);var k=y?null:e.findNgContentIndex(M);A=new Wi(i,m,x,l,S,P.transformedDirectiveAsts,P.transformProviders,P.transformedHasViewContainer,O,y?null:k,t.sourceSpan,t.endSourceSpan),this._findComponentDirectives(C).forEach(function(t){return n._validateElementAnimationInputOutputs(t.hostProperties,t.hostEvents,t.directive.template)});var N=P.viewContext.component.template;this._validateElementAnimationInputOutputs(x,l,N.toSummary())}if(y){var I=ve(vl,f),D=this._parseDirectives(this.selectorMatcher,I).directives,j=this._createDirectiveAsts(!0,t.name,D,h,[],t.sourceSpan,[]),L=this._createElementPropertyAsts(t.name,h,j);this._assertNoComponentsNorElementBindingsOnTemplate(j,L,t.sourceSpan);var V=new Op(this.providerViewContext,e.providerContext,e.isTemplateElement,j,[],[],t.sourceSpan);V.afterElement(),A=new Gi([],[],[],d,V.transformedDirectiveAsts,V.transformProviders,V.transformedHasViewContainer,[A],R,t.sourceSpan)}return A},t.prototype._validateElementAnimationInputOutputs=function(t,e,n){var r=this,i=new Set;n.animations.forEach(function(t){i.add(t)});var o=t.filter(function(t){return t.isAnimation});o.forEach(function(t){var e=t.name;i.has(e)||r._reportError("Couldn't find an animation entry for \""+e+'"',t.sourceSpan)}),e.forEach(function(t){if(t.isAnimation){var e=o.find(function(e){return e.name==t.name});e||r._reportError("Unable to listen on (@"+t.name+"."+t.phase+") because the animation trigger [@"+t.name+"] isn't being used on the same element",t.sourceSpan)}})},t.prototype._parseAttr=function(t,e,n,i,o,s,a){var u=this._normalizeAttributeName(e.name),c=e.value,p=e.sourceSpan,l=u.match(sl),h=!1;if(null!==l)if(h=!0,r(l[al]))this._bindingParser.parsePropertyBinding(l[fl],c,!1,p,n,i);else if(l[ul])if(t){var f=l[fl];this._parseVariable(f,c,p,a)}else this._reportError('"let-" is only supported on template elements.',p);else if(l[cl]){var f=l[fl];this._parseReference(f,c,p,s)}else l[pl]?this._bindingParser.parseEvent(l[fl],c,p,n,o):l[ll]?(this._bindingParser.parsePropertyBinding(l[fl],c,!1,p,n,i),this._parseAssignmentEvent(l[fl],c,p,n,o)):l[hl]?this._bindingParser.parseLiteralAttr(u,c,p,n,i):l[dl]?(this._bindingParser.parsePropertyBinding(l[dl],c,!1,p,n,i),this._parseAssignmentEvent(l[dl],c,p,n,o)):l[yl]?this._bindingParser.parsePropertyBinding(l[yl],c,!1,p,n,i):l[ml]&&this._bindingParser.parseEvent(l[ml],c,p,n,o);else h=this._bindingParser.parsePropertyInterpolation(u,c,p,n,i);return h||this._bindingParser.parseLiteralAttr(u,c,p,n,i),h},t.prototype._normalizeAttributeName=function(t){return/^data-/i.test(t)?t.substring(5):t},t.prototype._parseVariable=function(t,e,n,r){t.indexOf("-")>-1&&this._reportError('"-" is not allowed in variable names',n),r.push(new zi(t,e,n))},t.prototype._parseReference=function(t,e,n,r){t.indexOf("-")>-1&&this._reportError('"-" is not allowed in reference names',n),r.push(new Ol(t,e,n))},t.prototype._parseAssignmentEvent=function(t,e,n,r,i){this._bindingParser.parseEvent(t+"Change",e+"=$event",n,r,i)},t.prototype._parseDirectives=function(t,e){var n=this,r=new Array(this.directivesIndex.size),i=!1;return t.match(e,function(t,e){r[n.directivesIndex.get(e)]=e,i=i||t.hasElementSelector()}),{directives:r.filter(function(t){return!!t}),matchElement:i}},t.prototype._createDirectiveAsts=function(t,e,n,r,i,o,s){var a=this,u=new Set,c=null,p=n.map(function(t){var n=new Tu(o.start,o.end,"Directive "+b(t.type));t.isComponent&&(c=t);var p=[],l=a._bindingParser.createDirectiveHostPropertyAsts(t,n);a._checkPropertiesInSchema(e,l);var h=a._bindingParser.createDirectiveHostEventAsts(t,n);return a._createDirectivePropertyAsts(t.inputs,r,p),i.forEach(function(e){(0===e.value.length&&t.isComponent||t.exportAs==e.value)&&(s.push(new qi(e.name,$t(t.type),e.sourceSpan)),u.add(e.name))}),new Xi(t,p,l,h,n)});return i.forEach(function(e){if(e.value.length>0)u.has(e.name)||a._reportError('There is no directive with "exportAs" set to "'+e.value+'"',e.sourceSpan);else if(!c){var n=null;t&&(n=Zt(_p.TemplateRef)),s.push(new qi(e.name,n,e.sourceSpan))}}),p},t.prototype._createDirectivePropertyAsts=function(t,e,n){if(t){var r=new Map;e.forEach(function(t){var e=r.get(t.name);(!e||e.isLiteral)&&r.set(t.name,t)}),Object.keys(t).forEach(function(e){var i=t[e],o=r.get(i);o&&n.push(new Ki(e,o.name,o.expression,o.sourceSpan))})}},t.prototype._createElementPropertyAsts=function(t,e,n){var r=this,i=[],o=new Map;return n.forEach(function(t){t.inputs.forEach(function(t){o.set(t.templateName,t)})}),e.forEach(function(e){e.isLiteral||o.get(e.name)||i.push(r._bindingParser.createElementPropertyAst(t,e))}),this._checkPropertiesInSchema(t,i),i},t.prototype._findComponentDirectives=function(t){return t.filter(function(t){return t.directive.isComponent})},t.prototype._findComponentDirectiveNames=function(t){return this._findComponentDirectives(t).map(function(t){return b(t.directive.type)})},t.prototype._assertOnlyOneComponent=function(t,e){var n=this._findComponentDirectiveNames(t);n.length>1&&this._reportError("More than one component matched on this element.\nMake sure that only one component's selector can match a given element.\nConflicting components: "+n.join(","),e)},t.prototype._assertElementExists=function(t,e){var n=e.name.replace(/^:xhtml:/,"");if(!t&&!this._schemaRegistry.hasElement(n,this._schemas)){var r="'"+n+"' is not a known element:\n"+("1. If '"+n+"' is an Angular component, then verify that it is part of this module.\n")+("2. If '"+n+"' is a Web Component then add \"CUSTOM_ELEMENTS_SCHEMA\" to the '@NgModule.schemas' of this component to suppress this message.");this._reportError(r,e.sourceSpan)}},t.prototype._assertNoComponentsNorElementBindingsOnTemplate=function(t,e,n){var r=this,i=this._findComponentDirectiveNames(t);i.length>0&&this._reportError("Components on an embedded template: "+i.join(","),n),e.forEach(function(t){r._reportError("Property binding "+t.name+' not used by any directive on an embedded template. Make sure that the property name is spelled correctly and all directives are listed in the "@NgModule.declarations".',n)})},t.prototype._assertAllEventsPublishedByDirectives=function(t,e){var n=this,i=new Set;t.forEach(function(t){Object.keys(t.directive.outputs).forEach(function(e){var n=t.directive.outputs[e];i.add(n)})}),e.forEach(function(t){(r(t.target)||!i.has(t.name))&&n._reportError("Event binding "+t.fullName+' not emitted by any directive on an embedded template. Make sure that the event name is spelled correctly and all directives are listed in the "@NgModule.declarations".',t.sourceSpan)})},t.prototype._checkPropertiesInSchema=function(t,e){var n=this;e.forEach(function(e){if(e.type===Zi.Property&&!n._schemaRegistry.hasProperty(t,e.name,n._schemas)){var r="Can't bind to '"+e.name+"' since it isn't a known property of '"+t+"'.";t.indexOf("-")>-1&&(r+="\n1. If '"+t+"' is an Angular component and it has '"+e.name+"' input, then verify that it is part of this module."+("\n2. If '"+t+"' is a Web Component then add \"CUSTOM_ELEMENTS_SCHEMA\" to the '@NgModule.schemas' of this component to suppress this message.\n")),n._reportError(r,e.sourceSpan)}})},t.prototype._reportError=function(t,e,n){void 0===n&&(n=Pu.FATAL),this._targetErrors.push(new Ou(e,t,n))},t}(),Pl=function(){function t(){}return t.prototype.visitElement=function(t,e){var n=de(t);if(n.type===el.SCRIPT||n.type===el.STYLE||n.type===el.STYLESHEET)return null;var r=t.attrs.map(function(t){return[t.name,t.value]}),i=ve(t.name,r),o=e.findNgContentIndex(i),s=X(this,t.children,Ml);return new Wi(t.name,X(this,t.attrs),[],[],[],[],[],!1,s,o,t.sourceSpan,t.endSourceSpan)},t.prototype.visitComment=function(){return null},t.prototype.visitAttribute=function(t){return new Ui(t.name,t.value,t.sourceSpan)},t.prototype.visitText=function(t,e){var n=e.findNgContentIndex(wl);return new Vi(t.value,n,t.sourceSpan)},t.prototype.visitExpansion=function(t){return t},t.prototype.visitExpansionCase=function(t){return t},t}(),Ol=function(){function t(t,e,n){this.name=t,this.value=e,this.sourceSpan=n}return t}(),Al=function(){function t(t,e,n,r){this.isTemplateElement=t,this._ngContentIndexMatcher=e,this._wildcardNgContentIndex=n,this.providerContext=r}return t.create=function(e,n,r){var i=new Jo,o=null,s=n.find(function(t){return t.directive.isComponent});if(s)for(var a=s.directive.template.ngContentSelectors,u=0;u<a.length;u++){var c=a[u];"*"===c?o=u:i.addSelectables(Zo.parse(a[u]),u)}return new t(e,i,o,r)},t.prototype.findNgContentIndex=function(t){var e=[];return this._ngContentIndexMatcher.match(t,function(t,n){e.push(n)}),e.sort(),r(this._wildcardNgContentIndex)&&e.push(this._wildcardNgContentIndex),e.length>0?e[0]:null},t}(),Ml=new Al(!0,new Jo,null,null),Rl=new Pl,kl=function(){function t(t){var n=void 0===t?{}:t,r=n.renderTypes,i=void 0===r?new Il:r,o=n.defaultEncapsulation,s=void 0===o?e.ViewEncapsulation.Emulated:o,a=n.genDebugInfo,u=n.logBindingUpdate,c=n.useJit,p=void 0===c?!0:c;this.renderTypes=i,this.defaultEncapsulation=s,this._genDebugInfo=a,this._logBindingUpdate=u,this.useJit=p}return Object.defineProperty(t.prototype,"genDebugInfo",{get:function(){return void 0===this._genDebugInfo?e.isDevMode():this._genDebugInfo},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"logBindingUpdate",{get:function(){return void 0===this._logBindingUpdate?e.isDevMode():this._logBindingUpdate},enumerable:!0,configurable:!0}),t}(),Nl=function(){function t(){}return t.prototype.renderer=function(){},t.prototype.renderText=function(){},t.prototype.renderElement=function(){},t.prototype.renderComment=function(){},t.prototype.renderNode=function(){},t.prototype.renderEvent=function(){},t}(),Il=function(){function t(){this.renderText=null,this.renderElement=null,this.renderComment=null,this.renderNode=null,this.renderEvent=null}return Object.defineProperty(t.prototype,"renderer",{get:function(){return Yt(_p.Renderer)},enumerable:!0,configurable:!0}),t}(),Dl=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},jl=function(){function t(){this.startTime=0,this.playTime=0}return t.prototype.visit=function(){},t}(),Ll=function(t){function e(){t.apply(this,arguments)}return Dl(e,t),e.prototype.visit=function(){},e}(jl),Vl=function(t){function e(e,n,r){t.call(this),this.name=e,this.stateDeclarations=n,this.stateTransitions=r}return Dl(e,t),e.prototype.visit=function(t,e){return t.visitAnimationEntry(this,e)},e}(jl),Fl=function(t){function e(e,n){t.call(this),this.stateName=e,this.styles=n}return Dl(e,t),e.prototype.visit=function(t,e){return t.visitAnimationStateDeclaration(this,e)},e}(Ll),Ul=function(){function t(t,e){this.fromState=t,this.toState=e}return t}(),Bl=function(t){function e(e,n){t.call(this),this.stateChanges=e,this.animation=n}return Dl(e,t),e.prototype.visit=function(t,e){return t.visitAnimationStateTransition(this,e)},e}(Ll),Hl=function(t){function e(e,n,r,i,o){t.call(this),this.startingStyles=e,this.keyframes=n,this.duration=r,this.delay=i,this.easing=o}return Dl(e,t),e.prototype.visit=function(t,e){return t.visitAnimationStep(this,e)},e}(jl),ql=function(t){function e(e){t.call(this),this.styles=e}return Dl(e,t),e.prototype.visit=function(t,e){return t.visitAnimationStyles(this,e)},e}(jl),zl=function(t){function e(e,n){t.call(this),this.offset=e,this.styles=n}return Dl(e,t),e.prototype.visit=function(t,e){return t.visitAnimationKeyframe(this,e)},e}(jl),Wl=function(t){function e(e){t.call(this),this.steps=e}return Dl(e,t),e}(jl),Gl=function(t){function e(e){t.call(this,e)}return Dl(e,t),e.prototype.visit=function(t,e){return t.visitAnimationGroup(this,e)},e}(Wl),Kl=function(t){function e(e){t.call(this,e)}return Dl(e,t),e.prototype.visit=function(t,e){return t.visitAnimationSequence(this,e)},e}(Wl),Xl=function(){function t(t,e){this.time=t,this.value=e}return t.prototype.matches=function(t,e){return t==this.time&&e==this.value},t}(),Ql=function(){function t(){this.styles={}}return t.prototype.insertAtTime=function(t,e,n){var i=new Xl(e,n),o=this.styles[t];r(o)||(o=this.styles[t]=[]);for(var s=0,a=o.length-1;a>=0;a--)if(o[a].time<=e){s=a+1;break}o.splice(s,0,i)},t.prototype.getByIndex=function(t,e){var n=this.styles[t];return r(n)?e>=n.length?null:n[e]:null},t.prototype.indexOfAtOrBeforeTime=function(t,e){var n=this.styles[t];if(r(n))for(var i=n.length-1;i>=0;i--)if(n[i].time<=e)return i;return null},t}(),Yl=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},$l=this&&this.__decorate||function(t,e,n,r){var i,o=arguments.length,s=3>o?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,r);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(3>o?i(s):o>3?i(e,n,s):i(e,n))||s);return o>3&&s&&Object.defineProperty(e,n,s),s},Zl=this&&this.__metadata||function(t,e){return"object"==typeof Reflect&&"function"==typeof Reflect.metadata?Reflect.metadata(t,e):void 0},Jl=0,th=1,eh=1e3,nh=function(t){function e(e){t.call(this,null,e)}return Yl(e,t),e.prototype.toString=function(){return""+this.msg},e}(Ou),rh=function(){function t(t,e){this.ast=t,this.errors=e}return t}(),ih=function(){function t(t){this._schema=t}return t.prototype.parseComponent=function(t){var e=this,n=[],r=b(t.type),i=new Set,o=t.template.animations.map(function(t){var o=e.parseEntry(t),s=o.ast,a=s.name;if(i.has(a)?o.errors.push(new nh('The animation trigger "'+a+'" has already been registered for the '+r+" component")):i.add(a),o.errors.length>0){var u='- Unable to parse the animation sequence for "'+a+'" on the '+r+" component due to the following errors:";o.errors.forEach(function(t){u+="\n-- "+t.msg}),n.push(u)}return s});if(n.length>0){var s=n.join("\n");throw new Error("Animation parse errors:\n"+s)}return o},t.prototype.parseEntry=function(t){var e=this,n=[],r={},i=[],o=[];t.definitions.forEach(function(t){t instanceof ds?be(t,e._schema,n).forEach(function(t){o.push(t),r[t.stateName]=t.styles}):i.push(t)});var s=i.map(function(t){return we(t,r,e._schema,n)}),a=new Vl(t.name,o,s);return new rh(a,n)},t=$l([M(),Zl("design:paramtypes",[Mp])],t)}(),oh=function(){function t(t,e,n){this.duration=t,this.delay=e,this.easing=n}return t}(),sh=function(){function t(){}return t.prototype.get=function(){return null},t}(),ah=this&&this.__decorate||function(t,e,n,r){var i,o=arguments.length,s=3>o?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,r);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(3>o?i(s):o>3?i(e,n,s):i(e,n))||s);return o>3&&s&&Object.defineProperty(e,n,s),s},uh=this&&this.__metadata||function(t,e){return"object"==typeof Reflect&&"function"==typeof Reflect.metadata?Reflect.metadata(t,e):void 0},ch={provide:e.PACKAGE_ROOT_URL,useValue:"/"},ph=function(){function t(t){void 0===t&&(t=null),this._packagePrefix=t}return t.prototype.resolve=function(t,e){var n=e;r(t)&&t.length>0&&(n=He(t,n));var i=Fe(n),o=this._packagePrefix;if(r(o)&&r(i)&&"package"==i[hh.Scheme]){var s=i[hh.Path];return o=o.replace(/\/+$/,""),s=s.replace(/^\/+/,""),o+"/"+s}return n},t.ctorParameters=function(){return[{type:void 0,decorators:[{type:e.Inject,args:[e.PACKAGE_ROOT_URL]}]}]},t=ah([M(),uh("design:paramtypes",[String])],t); -var n=t.name;return r(t.builtin)&&(n=this.getBuiltinMethodName(t.builtin),i(n))?null:(e.print("."+n+"("),this.visitAllExpressions(t.args,e,","),e.print(")"),null)},t.prototype.getBuiltinMethodName=function(){},t.prototype.visitInvokeFunctionExpr=function(t,e){return t.fn.visitExpression(this,e),e.print("("),this.visitAllExpressions(t.args,e,","),e.print(")"),null},t.prototype.visitReadVarExpr=function(t,e){var n=t.name;if(r(t.builtin))switch(t.builtin){case jh.Super:n="super";break;case jh.This:n="this";break;case jh.CatchError:n=Pd.name;break;case jh.CatchStack:n=Od.name;break;default:throw new Error("Unknown builtin variable "+t.builtin)}return e.print(n),null},t.prototype.visitInstantiateExpr=function(t,e){return e.print("new "),t.classExpr.visitExpression(this,e),e.print("("),this.visitAllExpressions(t.args,e,","),e.print(")"),null},t.prototype.visitLiteralExpr=function(t,e){var n=t.value;return e.print("string"==typeof n?Xn(n,this._escapeDollarInStrings):""+n),null},t.prototype.visitExternalExpr=function(){},t.prototype.visitConditionalExpr=function(t,e){return e.print("("),t.condition.visitExpression(this,e),e.print("? "),t.trueCase.visitExpression(this,e),e.print(": "),t.falseCase.visitExpression(this,e),e.print(")"),null},t.prototype.visitNotExpr=function(t,e){return e.print("!"),t.condition.visitExpression(this,e),null},t.prototype.visitFunctionExpr=function(){},t.prototype.visitDeclareFunctionStmt=function(){},t.prototype.visitBinaryOperatorExpr=function(t,e){var n;switch(t.operator){case Ih.Equals:n="==";break;case Ih.Identical:n="===";break;case Ih.NotEquals:n="!=";break;case Ih.NotIdentical:n="!==";break;case Ih.And:n="&&";break;case Ih.Or:n="||";break;case Ih.Plus:n="+";break;case Ih.Minus:n="-";break;case Ih.Divide:n="/";break;case Ih.Multiply:n="*";break;case Ih.Modulo:n="%";break;case Ih.Lower:n="<";break;case Ih.LowerEquals:n="<=";break;case Ih.Bigger:n=">";break;case Ih.BiggerEquals:n=">=";break;default:throw new Error("Unknown operator "+t.operator)}return e.print("("),t.lhs.visitExpression(this,e),e.print(" "+n+" "),t.rhs.visitExpression(this,e),e.print(")"),null},t.prototype.visitReadPropExpr=function(t,e){return t.receiver.visitExpression(this,e),e.print("."),e.print(t.name),null},t.prototype.visitReadKeyExpr=function(t,e){return t.receiver.visitExpression(this,e),e.print("["),t.index.visitExpression(this,e),e.print("]"),null},t.prototype.visitLiteralArrayExpr=function(t,e){var n=t.entries.length>1;return e.print("[",n),e.incIndent(),this.visitAllExpressions(t.entries,e,",",n),e.decIndent(),e.print("]",n),null},t.prototype.visitLiteralMapExpr=function(t,e){var n=this,r=t.entries.length>1;return e.print("{",r),e.incIndent(),this.visitAllObjects(function(t){e.print(Xn(t.key,n._escapeDollarInStrings,t.quoted)+": "),t.value.visitExpression(n,e)},t.entries,e,",",r),e.decIndent(),e.print("}",r),null},t.prototype.visitAllExpressions=function(t,e,n,r){var i=this;void 0===r&&(r=!1),this.visitAllObjects(function(t){return t.visitExpression(i,e)},t,e,n,r)},t.prototype.visitAllObjects=function(t,e,n,r,i){void 0===i&&(i=!1);for(var o=0;o<e.length;o++)o>0&&n.print(r,i),t(e[o]);i&&n.println()},t.prototype.visitAllStatements=function(t,e){var n=this;t.forEach(function(t){return t.visitStatement(n,e)})},t}(),kd=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},Nd="/debug/lib",Id=function(){function t(t){this._importGenerator=t}return t.prototype.emitStatements=function(t,e,n){var r=this,i=new Dd(t),o=Md.createRoot(n);i.visitAllStatements(e,o);var s=[];return i.importsWithPrefixes.forEach(function(e,n){s.push("imp"+("ort * as "+e+" from '"+r._importGenerator.fileNameToModuleName(n,t)+"';"))}),s.push(o.toSource()),s.join("\n")},t}(),Dd=function(t){function e(e){t.call(this,!1),this._moduleUrl=e,this.importsWithPrefixes=new Map}return kd(e,t),e.prototype.visitType=function(t,e,n){void 0===n&&(n="any"),r(t)?t.visitType(this,e):e.print(n)},e.prototype.visitLiteralExpr=function(e,n){var r=e.value;return i(r)&&e.type!=Nh?(n.print("("+r+" as any)"),null):t.prototype.visitLiteralExpr.call(this,e,n)},e.prototype.visitLiteralArrayExpr=function(e,n){0===e.entries.length&&n.print("(");var r=t.prototype.visitLiteralArrayExpr.call(this,e,n);return 0===e.entries.length&&n.print(" as any[])"),r},e.prototype.visitExternalExpr=function(t,e){return this._visitIdentifier(t.value,t.typeParams,e),null},e.prototype.visitDeclareVarStmt=function(t,e){return e.isExportedVar(t.name)&&e.print("export "),e.print(t.hasModifier(cf.Final)?"const":"var"),e.print(" "+t.name+":"),this.visitType(t.type,e),e.print(" = "),t.value.visitExpression(this,e),e.println(";"),null},e.prototype.visitCastExpr=function(t,e){return e.print("(<"),t.type.visitType(this,e),e.print(">"),t.value.visitExpression(this,e),e.print(")"),null},e.prototype.visitDeclareClassStmt=function(t,e){var n=this;return e.pushClass(t),e.isExportedVar(t.name)&&e.print("export "),e.print("class "+t.name),r(t.parent)&&(e.print(" extends "),t.parent.visitExpression(this,e)),e.println(" {"),e.incIndent(),t.fields.forEach(function(t){return n._visitClassField(t,e)}),r(t.constructorMethod)&&this._visitClassConstructor(t,e),t.getters.forEach(function(t){return n._visitClassGetter(t,e)}),t.methods.forEach(function(t){return n._visitClassMethod(t,e)}),e.decIndent(),e.println("}"),e.popClass(),null},e.prototype._visitClassField=function(t,e){t.hasModifier(cf.Private)&&e.print("/*private*/ "),e.print(t.name),e.print(":"),this.visitType(t.type,e),e.println(";")},e.prototype._visitClassGetter=function(t,e){t.hasModifier(cf.Private)&&e.print("private "),e.print("get "+t.name+"()"),e.print(":"),this.visitType(t.type,e),e.println(" {"),e.incIndent(),this.visitAllStatements(t.body,e),e.decIndent(),e.println("}")},e.prototype._visitClassConstructor=function(t,e){e.print("constructor("),this._visitParams(t.constructorMethod.params,e),e.println(") {"),e.incIndent(),this.visitAllStatements(t.constructorMethod.body,e),e.decIndent(),e.println("}")},e.prototype._visitClassMethod=function(t,e){t.hasModifier(cf.Private)&&e.print("private "),e.print(t.name+"("),this._visitParams(t.params,e),e.print("):"),this.visitType(t.type,e,"void"),e.println(" {"),e.incIndent(),this.visitAllStatements(t.body,e),e.decIndent(),e.println("}")},e.prototype.visitFunctionExpr=function(t,e){return e.print("("),this._visitParams(t.params,e),e.print("):"),this.visitType(t.type,e,"void"),e.println(" => {"),e.incIndent(),this.visitAllStatements(t.statements,e),e.decIndent(),e.print("}"),null},e.prototype.visitDeclareFunctionStmt=function(t,e){return e.isExportedVar(t.name)&&e.print("export "),e.print("function "+t.name+"("),this._visitParams(t.params,e),e.print("):"),this.visitType(t.type,e,"void"),e.println(" {"),e.incIndent(),this.visitAllStatements(t.statements,e),e.decIndent(),e.println("}"),null},e.prototype.visitTryCatchStmt=function(t,e){e.println("try {"),e.incIndent(),this.visitAllStatements(t.bodyStmts,e),e.decIndent(),e.println("} catch ("+Pd.name+") {"),e.incIndent();var n=[Od.set(Pd.prop("stack")).toDeclStmt(null,[cf.Final])].concat(t.catchStmts);return this.visitAllStatements(n,e),e.decIndent(),e.println("}"),null},e.prototype.visitBuiltintType=function(t,e){var n;switch(t.name){case Sh.Bool:n="boolean";break;case Sh.Dynamic:n="any";break;case Sh.Function:n="Function";break;case Sh.Number:n="number";break;case Sh.Int:n="number";break;case Sh.String:n="string";break;default:throw new Error("Unsupported builtin type "+t.name)}return e.print(n),null},e.prototype.visitExpressionType=function(t,e){var n=this;return t.value.visitExpression(this,e),r(t.typeParams)&&t.typeParams.length>0&&(e.print("<"),this.visitAllObjects(function(t){return t.visitType(n,e)},t.typeParams,e,","),e.print(">")),null},e.prototype.visitArrayType=function(t,e){return this.visitType(t.of,e),e.print("[]"),null},e.prototype.visitMapType=function(t,e){return e.print("{[key: string]:"),this.visitType(t.valueType,e),e.print("}"),null},e.prototype.getBuiltinMethodName=function(t){var e;switch(t){case Bh.ConcatArray:e="concat";break;case Bh.SubscribeObservable:e="subscribe";break;case Bh.Bind:e="bind";break;default:throw new Error("Unknown builtin method: "+t)}return e},e.prototype._visitParams=function(t,e){var n=this;this.visitAllObjects(function(t){e.print(t.name),e.print(":"),n.visitType(t.type,e)},t,e,",")},e.prototype._visitIdentifier=function(t,e,n){var o=this,s=b(t),a=w(t);if(i(s))throw new Error("Internal error: unknown identifier "+t);if(r(a)&&a!=this._moduleUrl){var u=this.importsWithPrefixes.get(a);i(u)&&(u="import"+this.importsWithPrefixes.size,this.importsWithPrefixes.set(a,u)),n.print(u+".")}t.reference&&t.reference.members&&t.reference.members.length?(n.print(t.reference.name),n.print("."),n.print(t.reference.members.join("."))):n.print(s),r(e)&&e.length>0&&(n.print("<"),this.visitAllObjects(function(t){return t.visitType(o,n)},e,n,","),n.print(">"))},e}(Rd),jd={};$n(e.SecurityContext.HTML,["iframe|srcdoc","*|innerHTML","*|outerHTML"]),$n(e.SecurityContext.STYLE,["*|style"]),$n(e.SecurityContext.URL,["*|formAction","area|href","area|ping","audio|src","a|href","a|ping","blockquote|cite","body|background","del|cite","form|action","img|src","img|srcset","input|src","ins|cite","q|cite","source|src","source|srcset","track|src","video|poster","video|src"]),$n(e.SecurityContext.RESOURCE_URL,["applet|code","applet|codebase","base|href","embed|src","frame|src","head|profile","html|manifest","iframe|src","link|href","media|src","object|codebase","object|data","script|src"]);var Ld=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},Vd=this&&this.__decorate||function(t,e,n,r){var i,o=arguments.length,s=3>o?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,r);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(3>o?i(s):o>3?i(e,n,s):i(e,n))||s);return o>3&&s&&Object.defineProperty(e,n,s),s},Fd=this&&this.__metadata||function(t,e){return"object"==typeof Reflect&&"function"==typeof Reflect.metadata?Reflect.metadata(t,e):void 0},Ud="boolean",Bd="number",Hd="string",qd="object",zd=["[Element]|textContent,%classList,className,id,innerHTML,*beforecopy,*beforecut,*beforepaste,*copy,*cut,*paste,*search,*selectstart,*webkitfullscreenchange,*webkitfullscreenerror,*wheel,outerHTML,#scrollLeft,#scrollTop","[HTMLElement]^[Element]|accessKey,contentEditable,dir,!draggable,!hidden,innerText,lang,*abort,*beforecopy,*beforecut,*beforepaste,*blur,*cancel,*canplay,*canplaythrough,*change,*click,*close,*contextmenu,*copy,*cuechange,*cut,*dblclick,*drag,*dragend,*dragenter,*dragleave,*dragover,*dragstart,*drop,*durationchange,*emptied,*ended,*error,*focus,*input,*invalid,*keydown,*keypress,*keyup,*load,*loadeddata,*loadedmetadata,*loadstart,*message,*mousedown,*mouseenter,*mouseleave,*mousemove,*mouseout,*mouseover,*mouseup,*mousewheel,*mozfullscreenchange,*mozfullscreenerror,*mozpointerlockchange,*mozpointerlockerror,*paste,*pause,*play,*playing,*progress,*ratechange,*reset,*resize,*scroll,*search,*seeked,*seeking,*select,*selectstart,*show,*stalled,*submit,*suspend,*timeupdate,*toggle,*volumechange,*waiting,*webglcontextcreationerror,*webglcontextlost,*webglcontextrestored,*webkitfullscreenchange,*webkitfullscreenerror,*wheel,outerText,!spellcheck,%style,#tabIndex,title,!translate","abbr,address,article,aside,b,bdi,bdo,cite,code,dd,dfn,dt,em,figcaption,figure,footer,header,i,kbd,main,mark,nav,noscript,rb,rp,rt,rtc,ruby,s,samp,section,small,strong,sub,sup,u,var,wbr^[HTMLElement]|accessKey,contentEditable,dir,!draggable,!hidden,innerText,lang,*abort,*beforecopy,*beforecut,*beforepaste,*blur,*cancel,*canplay,*canplaythrough,*change,*click,*close,*contextmenu,*copy,*cuechange,*cut,*dblclick,*drag,*dragend,*dragenter,*dragleave,*dragover,*dragstart,*drop,*durationchange,*emptied,*ended,*error,*focus,*input,*invalid,*keydown,*keypress,*keyup,*load,*loadeddata,*loadedmetadata,*loadstart,*message,*mousedown,*mouseenter,*mouseleave,*mousemove,*mouseout,*mouseover,*mouseup,*mousewheel,*mozfullscreenchange,*mozfullscreenerror,*mozpointerlockchange,*mozpointerlockerror,*paste,*pause,*play,*playing,*progress,*ratechange,*reset,*resize,*scroll,*search,*seeked,*seeking,*select,*selectstart,*show,*stalled,*submit,*suspend,*timeupdate,*toggle,*volumechange,*waiting,*webglcontextcreationerror,*webglcontextlost,*webglcontextrestored,*webkitfullscreenchange,*webkitfullscreenerror,*wheel,outerText,!spellcheck,%style,#tabIndex,title,!translate","media^[HTMLElement]|!autoplay,!controls,%crossOrigin,#currentTime,!defaultMuted,#defaultPlaybackRate,!disableRemotePlayback,!loop,!muted,*encrypted,#playbackRate,preload,src,%srcObject,#volume",":svg:^[HTMLElement]|*abort,*blur,*cancel,*canplay,*canplaythrough,*change,*click,*close,*contextmenu,*cuechange,*dblclick,*drag,*dragend,*dragenter,*dragleave,*dragover,*dragstart,*drop,*durationchange,*emptied,*ended,*error,*focus,*input,*invalid,*keydown,*keypress,*keyup,*load,*loadeddata,*loadedmetadata,*loadstart,*mousedown,*mouseenter,*mouseleave,*mousemove,*mouseout,*mouseover,*mouseup,*mousewheel,*pause,*play,*playing,*progress,*ratechange,*reset,*resize,*scroll,*seeked,*seeking,*select,*show,*stalled,*submit,*suspend,*timeupdate,*toggle,*volumechange,*waiting,%style,#tabIndex",":svg:graphics^:svg:|",":svg:animation^:svg:|*begin,*end,*repeat",":svg:geometry^:svg:|",":svg:componentTransferFunction^:svg:|",":svg:gradient^:svg:|",":svg:textContent^:svg:graphics|",":svg:textPositioning^:svg:textContent|","a^[HTMLElement]|charset,coords,download,hash,host,hostname,href,hreflang,name,password,pathname,ping,port,protocol,referrerPolicy,rel,rev,search,shape,target,text,type,username","area^[HTMLElement]|alt,coords,hash,host,hostname,href,!noHref,password,pathname,ping,port,protocol,referrerPolicy,search,shape,target,username","audio^media|","br^[HTMLElement]|clear","base^[HTMLElement]|href,target","body^[HTMLElement]|aLink,background,bgColor,link,*beforeunload,*blur,*error,*focus,*hashchange,*languagechange,*load,*message,*offline,*online,*pagehide,*pageshow,*popstate,*rejectionhandled,*resize,*scroll,*storage,*unhandledrejection,*unload,text,vLink","button^[HTMLElement]|!autofocus,!disabled,formAction,formEnctype,formMethod,!formNoValidate,formTarget,name,type,value","canvas^[HTMLElement]|#height,#width","content^[HTMLElement]|select","dl^[HTMLElement]|!compact","datalist^[HTMLElement]|","details^[HTMLElement]|!open","dialog^[HTMLElement]|!open,returnValue","dir^[HTMLElement]|!compact","div^[HTMLElement]|align","embed^[HTMLElement]|align,height,name,src,type,width","fieldset^[HTMLElement]|!disabled,name","font^[HTMLElement]|color,face,size","form^[HTMLElement]|acceptCharset,action,autocomplete,encoding,enctype,method,name,!noValidate,target","frame^[HTMLElement]|frameBorder,longDesc,marginHeight,marginWidth,name,!noResize,scrolling,src","frameset^[HTMLElement]|cols,*beforeunload,*blur,*error,*focus,*hashchange,*languagechange,*load,*message,*offline,*online,*pagehide,*pageshow,*popstate,*rejectionhandled,*resize,*scroll,*storage,*unhandledrejection,*unload,rows","hr^[HTMLElement]|align,color,!noShade,size,width","head^[HTMLElement]|","h1,h2,h3,h4,h5,h6^[HTMLElement]|align","html^[HTMLElement]|version","iframe^[HTMLElement]|align,!allowFullscreen,frameBorder,height,longDesc,marginHeight,marginWidth,name,referrerPolicy,%sandbox,scrolling,src,srcdoc,width","img^[HTMLElement]|align,alt,border,%crossOrigin,#height,#hspace,!isMap,longDesc,lowsrc,name,referrerPolicy,sizes,src,srcset,useMap,#vspace,#width","input^[HTMLElement]|accept,align,alt,autocapitalize,autocomplete,!autofocus,!checked,!defaultChecked,defaultValue,dirName,!disabled,%files,formAction,formEnctype,formMethod,!formNoValidate,formTarget,#height,!incremental,!indeterminate,max,#maxLength,min,#minLength,!multiple,name,pattern,placeholder,!readOnly,!required,selectionDirection,#selectionEnd,#selectionStart,#size,src,step,type,useMap,value,%valueAsDate,#valueAsNumber,#width","keygen^[HTMLElement]|!autofocus,challenge,!disabled,keytype,name","li^[HTMLElement]|type,#value","label^[HTMLElement]|htmlFor","legend^[HTMLElement]|align","link^[HTMLElement]|as,charset,%crossOrigin,!disabled,href,hreflang,integrity,media,rel,%relList,rev,%sizes,target,type","map^[HTMLElement]|name","marquee^[HTMLElement]|behavior,bgColor,direction,height,#hspace,#loop,#scrollAmount,#scrollDelay,!trueSpeed,#vspace,width","menu^[HTMLElement]|!compact","meta^[HTMLElement]|content,httpEquiv,name,scheme","meter^[HTMLElement]|#high,#low,#max,#min,#optimum,#value","ins,del^[HTMLElement]|cite,dateTime","ol^[HTMLElement]|!compact,!reversed,#start,type","object^[HTMLElement]|align,archive,border,code,codeBase,codeType,data,!declare,height,#hspace,name,standby,type,useMap,#vspace,width","optgroup^[HTMLElement]|!disabled,label","option^[HTMLElement]|!defaultSelected,!disabled,label,!selected,text,value","output^[HTMLElement]|defaultValue,%htmlFor,name,value","p^[HTMLElement]|align","param^[HTMLElement]|name,type,value,valueType","picture^[HTMLElement]|","pre^[HTMLElement]|#width","progress^[HTMLElement]|#max,#value","q,blockquote,cite^[HTMLElement]|","script^[HTMLElement]|!async,charset,%crossOrigin,!defer,event,htmlFor,integrity,src,text,type","select^[HTMLElement]|!autofocus,!disabled,#length,!multiple,name,!required,#selectedIndex,#size,value","shadow^[HTMLElement]|","source^[HTMLElement]|media,sizes,src,srcset,type","span^[HTMLElement]|","style^[HTMLElement]|!disabled,media,type","caption^[HTMLElement]|align","th,td^[HTMLElement]|abbr,align,axis,bgColor,ch,chOff,#colSpan,headers,height,!noWrap,#rowSpan,scope,vAlign,width","col,colgroup^[HTMLElement]|align,ch,chOff,#span,vAlign,width","table^[HTMLElement]|align,bgColor,border,%caption,cellPadding,cellSpacing,frame,rules,summary,%tFoot,%tHead,width","tr^[HTMLElement]|align,bgColor,ch,chOff,vAlign","tfoot,thead,tbody^[HTMLElement]|align,ch,chOff,vAlign","template^[HTMLElement]|","textarea^[HTMLElement]|autocapitalize,!autofocus,#cols,defaultValue,dirName,!disabled,#maxLength,#minLength,name,placeholder,!readOnly,!required,#rows,selectionDirection,#selectionEnd,#selectionStart,value,wrap","title^[HTMLElement]|text","track^[HTMLElement]|!default,kind,label,src,srclang","ul^[HTMLElement]|!compact,type","unknown^[HTMLElement]|","video^media|#height,poster,#width",":svg:a^:svg:graphics|",":svg:animate^:svg:animation|",":svg:animateMotion^:svg:animation|",":svg:animateTransform^:svg:animation|",":svg:circle^:svg:geometry|",":svg:clipPath^:svg:graphics|",":svg:cursor^:svg:|",":svg:defs^:svg:graphics|",":svg:desc^:svg:|",":svg:discard^:svg:|",":svg:ellipse^:svg:geometry|",":svg:feBlend^:svg:|",":svg:feColorMatrix^:svg:|",":svg:feComponentTransfer^:svg:|",":svg:feComposite^:svg:|",":svg:feConvolveMatrix^:svg:|",":svg:feDiffuseLighting^:svg:|",":svg:feDisplacementMap^:svg:|",":svg:feDistantLight^:svg:|",":svg:feDropShadow^:svg:|",":svg:feFlood^:svg:|",":svg:feFuncA^:svg:componentTransferFunction|",":svg:feFuncB^:svg:componentTransferFunction|",":svg:feFuncG^:svg:componentTransferFunction|",":svg:feFuncR^:svg:componentTransferFunction|",":svg:feGaussianBlur^:svg:|",":svg:feImage^:svg:|",":svg:feMerge^:svg:|",":svg:feMergeNode^:svg:|",":svg:feMorphology^:svg:|",":svg:feOffset^:svg:|",":svg:fePointLight^:svg:|",":svg:feSpecularLighting^:svg:|",":svg:feSpotLight^:svg:|",":svg:feTile^:svg:|",":svg:feTurbulence^:svg:|",":svg:filter^:svg:|",":svg:foreignObject^:svg:graphics|",":svg:g^:svg:graphics|",":svg:image^:svg:graphics|",":svg:line^:svg:geometry|",":svg:linearGradient^:svg:gradient|",":svg:mpath^:svg:|",":svg:marker^:svg:|",":svg:mask^:svg:|",":svg:metadata^:svg:|",":svg:path^:svg:geometry|",":svg:pattern^:svg:|",":svg:polygon^:svg:geometry|",":svg:polyline^:svg:geometry|",":svg:radialGradient^:svg:gradient|",":svg:rect^:svg:geometry|",":svg:svg^:svg:graphics|#currentScale,#zoomAndPan",":svg:script^:svg:|type",":svg:set^:svg:animation|",":svg:stop^:svg:|",":svg:style^:svg:|!disabled,media,title,type",":svg:switch^:svg:graphics|",":svg:symbol^:svg:|",":svg:tspan^:svg:textPositioning|",":svg:text^:svg:textPositioning|",":svg:textPath^:svg:textContent|",":svg:title^:svg:|",":svg:use^:svg:graphics|",":svg:view^:svg:|#zoomAndPan","data^[HTMLElement]|value","menuitem^[HTMLElement]|type,label,icon,!disabled,!checked,radiogroup,!default","summary^[HTMLElement]|","time^[HTMLElement]|dateTime"],Wd={"class":"className","for":"htmlFor",formaction:"formAction",innerHtml:"innerHTML",readonly:"readOnly",tabindex:"tabIndex"},Gd=function(t){function n(){var e=this;t.call(this),this._schema={},zd.forEach(function(t){var n={},r=t.split("|"),i=r[0],o=r[1],s=o.split(","),a=i.split("^"),u=a[0],c=a[1];u.split(",").forEach(function(t){return e._schema[t.toLowerCase()]=n});var p=c&&e._schema[c.toLowerCase()];p&&Object.keys(p).forEach(function(t){n[t]=p[t]}),s.forEach(function(t){if(t.length>0)switch(t[0]){case"*":break;case"!":n[t.substring(1)]=Ud;break;case"#":n[t.substring(1)]=Bd;break;case"%":n[t.substring(1)]=qd;break;default:n[t]=Hd}})})}return Ld(n,t),n.prototype.hasProperty=function(t,n,r){if(r.some(function(t){return t.name===e.NO_ERRORS_SCHEMA.name}))return!0;if(t.indexOf("-")>-1){if("ng-container"===t||"ng-content"===t)return!1;if(r.some(function(t){return t.name===e.CUSTOM_ELEMENTS_SCHEMA.name}))return!0}var i=this._schema[t.toLowerCase()]||this._schema.unknown;return!!i[n]},n.prototype.hasElement=function(t,n){if(n.some(function(t){return t.name===e.NO_ERRORS_SCHEMA.name}))return!0;if(t.indexOf("-")>-1){if("ng-container"===t||"ng-content"===t)return!0;if(n.some(function(t){return t.name===e.CUSTOM_ELEMENTS_SCHEMA.name}))return!0}return!!this._schema[t.toLowerCase()]},n.prototype.securityContext=function(t,n,r){r&&(n=this.getMappedPropName(n)),t=t.toLowerCase(),n=n.toLowerCase();var i=jd[t+"|"+n];return i?i:(i=jd["*|"+n],i?i:e.SecurityContext.NONE)},n.prototype.getMappedPropName=function(t){return Wd[t]||t},n.prototype.getDefaultComponentElementName=function(){return"ng-component"},n.prototype.validateProperty=function(t){if(t.toLowerCase().startsWith("on")){var e="Binding to event property '"+t+"' is disallowed for security reasons, "+("please use ("+t.slice(2)+")=...")+("\nIf '"+t+"' is a directive input, make sure the directive is imported by the")+" current module.";return{error:!0,msg:e}}return{error:!1}},n.prototype.validateAttribute=function(t){if(t.toLowerCase().startsWith("on")){var e="Binding to event attribute '"+t+"' is disallowed for security reasons, "+("please use ("+t.slice(2)+")=...");return{error:!0,msg:e}}return{error:!1}},n.prototype.allKnownElementNames=function(){return Object.keys(this._schema)},n.prototype.normalizeAnimationStyleProperty=function(t){return d(t)},n.prototype.normalizeAnimationStyleValue=function(t,e,n){var r="",i=n.toString().trim(),o=null;if(Zn(t)&&0!==n&&"0"!==n)if("number"==typeof n)r="px";else{var s=n.match(/^[+-]?[\d\.]+([a-z]*)$/);s&&0==s[1].length&&(o="Please provide a CSS unit value for "+e+":"+n)}return{error:o,value:i+r}},n=Vd([M(),Fd("design:paramtypes",[])],n)}(Mp),Kd=function(){function t(){this.strictStyling=!0}return t.prototype.shimCssText=function(t,e,n){void 0===n&&(n="");var r=tr(t);return t=Jn(t),t=this._insertDirectives(t),this._scopeCssText(t,e,n)+r},t.prototype._insertDirectives=function(t){return t=this._insertPolyfillDirectivesInCssText(t),this._insertPolyfillRulesInCssText(t)},t.prototype._insertPolyfillDirectivesInCssText=function(t){return t.replace(Qd,function(){for(var t=[],e=0;e<arguments.length;e++)t[e-0]=arguments[e];return t[2]+"{"})},t.prototype._insertPolyfillRulesInCssText=function(t){return t.replace(Yd,function(){for(var t=[],e=0;e<arguments.length;e++)t[e-0]=arguments[e];var n=t[0].replace(t[1],"").replace(t[2],"");return t[4]+n})},t.prototype._scopeCssText=function(t,e,n){var r=this._extractUnscopedRulesFromCssText(t);return t=this._insertPolyfillHostInCssText(t),t=this._convertColonHost(t),t=this._convertColonHostContext(t),t=this._convertShadowDOMSelectors(t),e&&(t=this._scopeSelectors(t,e,n)),t=t+"\n"+r,t.trim()},t.prototype._extractUnscopedRulesFromCssText=function(t){var e,n="";for($d.lastIndex=0;null!==(e=$d.exec(t));){var r=e[0].replace(e[2],"").replace(e[1],e[4]);n+=r+"\n\n"}return n},t.prototype._convertColonHost=function(t){return this._convertColonRule(t,ey,this._colonHostPartReplacer)},t.prototype._convertColonHostContext=function(t){return this._convertColonRule(t,ny,this._colonHostContextPartReplacer)},t.prototype._convertColonRule=function(t,e,n){return t.replace(e,function(){for(var t=[],e=0;e<arguments.length;e++)t[e-0]=arguments[e];if(t[2]){for(var r=t[2].split(","),i=[],o=0;o<r.length;o++){var s=r[o].trim();if(!s)break;i.push(n(ry,s,t[3]))}return i.join(",")}return ry+t[3]})},t.prototype._colonHostContextPartReplacer=function(t,e,n){return e.indexOf(Zd)>-1?this._colonHostPartReplacer(t,e,n):t+e+n+", "+e+" "+t+n},t.prototype._colonHostPartReplacer=function(t,e,n){return t+e.replace(Zd,"")+n},t.prototype._convertShadowDOMSelectors=function(t){return oy.reduce(function(t,e){return t.replace(e," ")},t)},t.prototype._scopeSelectors=function(t,e,n){var r=this;return er(t,function(t){var i=t.selector,o=t.content;return"@"!=t.selector[0]?i=r._scopeSelector(t.selector,e,n,r.strictStyling):(t.selector.startsWith("@media")||t.selector.startsWith("@supports")||t.selector.startsWith("@page")||t.selector.startsWith("@document"))&&(o=r._scopeSelectors(t.content,e,n)),new gy(i,o)})},t.prototype._scopeSelector=function(t,e,n,r){var i=this;return t.split(",").map(function(t){return t.trim().split(sy)}).map(function(t){var o=t[0],s=t.slice(1),a=function(t){return i._selectorNeedsScoping(t,e)?r?i._applyStrictSelectorScope(t,e,n):i._applySelectorScope(t,e,n):t};return[a(o)].concat(s).join(" ")}).join(", ")},t.prototype._selectorNeedsScoping=function(t,e){var n=this._makeScopeMatcher(e);return!n.test(t)},t.prototype._makeScopeMatcher=function(t){var e=/\[/g,n=/\]/g;return t=t.replace(e,"\\[").replace(n,"\\]"),new RegExp("^("+t+")"+ay,"m")},t.prototype._applySelectorScope=function(t,e,n){return this._applySimpleSelectorScope(t,e,n)},t.prototype._applySimpleSelectorScope=function(t,e,n){if(uy.lastIndex=0,uy.test(t)){var r=this.strictStyling?"["+n+"]":e;return t.replace(iy,function(t,e){return e.replace(/([^:]*)(:*)(.*)/,function(t,e,n,i){return e+r+n+i})}).replace(uy,r+" ")}return e+" "+t},t.prototype._applyStrictSelectorScope=function(t,e,n){var r=this,i=/\[is=([^\]]*)\]/g;e=e.replace(i,function(){for(var t=[],e=1;e<arguments.length;e++)t[e-1]=arguments[e];return t[0]});var o="["+e+"]",s=function(t){var i=t.trim();if(!i)return"";if(t.indexOf(ry)>-1)i=r._applySimpleSelectorScope(t,e,n);else{var s=t.replace(uy,"");if(s.length>0){var a=s.match(/([^:]*)(:*)(.*)/);a&&(i=a[1]+o+a[2]+a[3])}}return i},a=new Xd(t);t=a.content();for(var u,c="",p=0,l=/( |>|\+|~(?!=))\s*/g,h=t.indexOf(ry);null!==(u=l.exec(t));){var f=u[1],d=t.slice(p,u.index).trim(),y=p>=h?s(d):d;c+=y+" "+f+" ",p=l.lastIndex}return c+=s(t.substring(p)),a.restore(c)},t.prototype._insertPolyfillHostInCssText=function(t){return t.replace(py,Jd).replace(cy,Zd)},t}(),Xd=function(){function t(t){var e=this;this.placeholders=[],this.index=0,t=t.replace(/(\[[^\]]*\])/g,function(t,n){var r="__ph-"+e.index+"__";return e.placeholders.push(n),e.index++,r}),this._content=t.replace(/(:nth-[-\w]+)(\([^)]+\))/g,function(t,n,r){var i="__ph-"+e.index+"__";return e.placeholders.push(r),e.index++,n+i})}return t.prototype.restore=function(t){var e=this;return t.replace(/__ph-(\d+)__/g,function(t,n){return e.placeholders[+n]})},t.prototype.content=function(){return this._content},t}(),Qd=/polyfill-next-selector[^}]*content:[\s]*?(['"])(.*?)\1[;\s]*}([^{]*?){/gim,Yd=/(polyfill-rule)[^}]*(content:[\s]*(['"])(.*?)\3)[;\s]*[^}]*}/gim,$d=/(polyfill-unscoped-rule)[^}]*(content:[\s]*(['"])(.*?)\3)[;\s]*[^}]*}/gim,Zd="-shadowcsshost",Jd="-shadowcsscontext",ty=")(?:\\(((?:\\([^)(]*\\)|[^)(]*)+?)\\))?([^,{]*)",ey=new RegExp("("+Zd+ty,"gim"),ny=new RegExp("("+Jd+ty,"gim"),ry=Zd+"-no-combinator",iy=/-shadowcsshost-no-combinator([^\s]*)/,oy=[/::shadow/g,/::content/g,/\/shadow-deep\//g,/\/shadow\//g],sy=/(?:>>>)|(?:\/deep\/)/g,ay="([>\\s~+[.,{:][\\s\\S]*)?$",uy=/-shadowcsshost/gim,cy=/:host/gim,py=/:host-context/gim,ly=/\/\*\s*[\s\S]*?\*\//g,hy=/\/\*\s*#\s*sourceMappingURL=[\s\S]+?\*\//,fy=/(\s*)([^;\{\}]+?)(\s*)((?:{%BLOCK%}?\s*;?)|(?:\s*;))/g,dy=/([{}])/g,yy="{",my="}",vy="%BLOCK%",gy=function(){function t(t,e){this.selector=t,this.content=e}return t}(),_y=function(){function t(t,e){this.escapedString=t,this.blocks=e}return t}(),by=this&&this.__decorate||function(t,e,n,r){var i,o=arguments.length,s=3>o?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,r);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(3>o?i(s):o>3?i(e,n,s):i(e,n))||s);return o>3&&s&&Object.defineProperty(e,n,s),s},wy=this&&this.__metadata||function(t,e){return"object"==typeof Reflect&&"function"==typeof Reflect.metadata?Reflect.metadata(t,e):void 0},Ey="%COMP%",Sy="_nghost-"+Ey,Cy="_ngcontent-"+Ey,xy=function(){function t(t,e,n,r){this.name=t,this.moduleUrl=e,this.isShimmed=n,this.valuePlaceholder=r}return t}(),Ty=function(){function t(t,e){this.componentStylesheet=t,this.externalStylesheets=e}return t}(),Py=function(){function t(t,e,n,r,i){this.statements=t,this.stylesVar=e,this.dependencies=n,this.isShimmed=r,this.meta=i}return t}(),Oy=function(){function t(t){this._urlResolver=t,this._shadowCss=new Kd}return t.prototype.compileComponent=function(t){var e=this,n=[],r=this._compileStyles(t,new xs({styles:t.template.styles,styleUrls:t.template.styleUrls,moduleUrl:w(t.type)}),!0);return t.template.externalStylesheets.forEach(function(r){var i=e._compileStyles(t,r,!1);n.push(i)}),new Ty(r,n)},t.prototype._compileStyles=function(t,n,r){for(var i=this,o=t.template.encapsulation===e.ViewEncapsulation.Emulated,s=n.styles.map(function(t){return tn(i._shimIfNeeded(t,o))}),a=[],u=0;u<n.styleUrls.length;u++){var c={reference:null};a.push(new xy(rr(null),n.styleUrls[u],o,c)),s.push(new Gh(c))}var p=rr(r?t:null),l=Ge(p).set(Ye(s,new Th(Oh,[wh.Const]))).toDeclStmt(null,[cf.Final]);return new Py([l],p,a,o,n)},t.prototype._shimIfNeeded=function(t,e){return e?this._shadowCss.shimCssText(t,Cy,Sy):t},t=by([M(),wy("design:paramtypes",[ph])],t)}(),Ay=function(){function t(t,e){this.nodeIndex=t,this.sourceAst=e}return t}(),My=new Ay(null,null),Ry=function(){function t(t){this._view=t,this._newState=My,this._currState=My,this._bodyStatements=[],this._debugEnabled=this._view.genConfig.genDebugInfo}return t.prototype._updateDebugContextIfNeeded=function(){if(this._newState.nodeIndex!==this._currState.nodeIndex||this._newState.sourceAst!==this._currState.sourceAst){var t=this._updateDebugContext(this._newState);t&&this._bodyStatements.push(t.toStmt())}},t.prototype._updateDebugContext=function(t){if(this._currState=this._newState=t,this._debugEnabled){var e=t.sourceAst?t.sourceAst.sourceSpan.start:null;return of.callMethod("debug",[tn(t.nodeIndex),e?tn(e.line):af,e?tn(e.col):af])}return null},t.prototype.resetDebugInfoExpr=function(t,e){var n=this._updateDebugContext(new Ay(t,e));return n||af},t.prototype.resetDebugInfo=function(t,e){this._newState=new Ay(t,e)},t.prototype.push=function(){for(var t=[],e=0;e<arguments.length;e++)t[e-0]=arguments[e];this.addStmts(t)},t.prototype.addStmt=function(t){this._updateDebugContextIfNeeded(),this._bodyStatements.push(t)},t.prototype.addStmts=function(t){this._updateDebugContextIfNeeded(),(e=this._bodyStatements).push.apply(e,t);var e},t.prototype.finish=function(){return this._bodyStatements},t.prototype.isEmpty=function(){return 0===this._bodyStatements.length; +}(),lh=new RegExp("^(?:([^:/?#.]+):)?(?://(?:([^/?#]*)@)?([\\w\\d\\-\\u0100-\\uffff.%]*)(?::([0-9]+))?)?([^?#]+)?(?:\\?([^#]*))?(?:#(.*))?$"),hh={};hh.Scheme=1,hh.UserInfo=2,hh.Domain=3,hh.Port=4,hh.Path=5,hh.QueryData=6,hh.Fragment=7,hh[hh.Scheme]="Scheme",hh[hh.UserInfo]="UserInfo",hh[hh.Domain]="Domain",hh[hh.Port]="Port",hh[hh.Path]="Path",hh[hh.QueryData]="QueryData",hh[hh.Fragment]="Fragment";var fh=this&&this.__decorate||function(t,e,n,r){var i,o=arguments.length,s=3>o?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,r);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(3>o?i(s):o>3?i(e,n,s):i(e,n))||s);return o>3&&s&&Object.defineProperty(e,n,s),s},dh=this&&this.__metadata||function(t,e){return"object"==typeof Reflect&&"function"==typeof Reflect.metadata?Reflect.metadata(t,e):void 0},yh=function(){function t(t,e,n,r){this._resourceLoader=t,this._urlResolver=e,this._htmlParser=n,this._config=r,this._resourceLoaderCache=new Map}return t.prototype.clearCache=function(){this._resourceLoaderCache.clear()},t.prototype.clearCacheFor=function(t){var e=this;t.isComponent&&(this._resourceLoaderCache["delete"](t.template.templateUrl),t.template.externalStylesheets.forEach(function(t){e._resourceLoaderCache["delete"](t.moduleUrl)}))},t.prototype._fetch=function(t){var e=this._resourceLoaderCache.get(t);return e||(e=this._resourceLoader.get(t),this._resourceLoaderCache.set(t,e)),e},t.prototype.normalizeTemplate=function(t){var e,n=this,i=null;if(r(t.template))i=this.normalizeTemplateSync(t),e=Promise.resolve(i);else{if(!t.templateUrl)throw new cs("No template specified for component "+s(t.componentType));e=this.normalizeTemplateAsync(t)}return i&&0===i.styleUrls.length?new us(i):new us(null,e.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,n=this._urlResolver.resolve(t.moduleUrl,t.templateUrl);return this._fetch(n).then(function(r){return e.normalizeLoadedTemplate(t,r,n)})},t.prototype.normalizeLoadedTemplate=function(t,n,r){var o=Ia.fromArray(t.interpolation),a=this._htmlParser.parse(n,s(t.componentType),!0,o);if(a.errors.length>0){var u=a.errors.join("\n");throw new cs("Template parse errors:\n"+u)}var c=this.normalizeStylesheet(new xs({styles:t.styles,styleUrls:t.styleUrls,moduleUrl:t.moduleUrl})),p=new mh;X(p,a.rootNodes);var l=this.normalizeStylesheet(new xs({styles:p.styles,styleUrls:p.styleUrls,moduleUrl:r})),h=t.encapsulation;i(h)&&(h=this._config.defaultEncapsulation);var f=c.styles.concat(l.styles),d=c.styleUrls.concat(l.styleUrls);return h===e.ViewEncapsulation.Emulated&&0===f.length&&0===d.length&&(h=e.ViewEncapsulation.None),new Ts({encapsulation:h,template:n,templateUrl:r,styles:f,styleUrls:d,ngContentSelectors:p.ngContentSelectors,animations:t.animations,interpolation:t.interpolation})},t.prototype.normalizeExternalStylesheets=function(t){return this._loadMissingExternalStylesheets(t.styleUrls).then(function(e){return new Ts({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})})},t.prototype._loadMissingExternalStylesheets=function(t,e){var n=this;return void 0===e&&(e=new Map),Promise.all(t.filter(function(t){return!e.has(t)}).map(function(t){return n._fetch(t).then(function(r){var i=n.normalizeStylesheet(new xs({styles:[r],moduleUrl:t}));return e.set(t,i),n._loadMissingExternalStylesheets(i.styleUrls,e)})})).then(function(){return Array.from(e.values())})},t.prototype.normalizeStylesheet=function(t){var e=this,n=t.styleUrls.filter(pe).map(function(n){return e._urlResolver.resolve(t.moduleUrl,n)}),r=t.styles.map(function(r){var i=le(e._urlResolver,t.moduleUrl,r);return n.push.apply(n,i.styleUrls),i.style});return new xs({styles:r,styleUrls:n,moduleUrl:t.moduleUrl})},t=fh([M(),dh("design:paramtypes",[sh,ph,lp,kl])],t)}(),mh=function(){function t(){this.ngContentSelectors=[],this.styles=[],this.styleUrls=[],this.ngNonBindableStackCount=0}return t.prototype.visitElement=function(t){var e=de(t);switch(e.type){case el.NG_CONTENT:0===this.ngNonBindableStackCount&&this.ngContentSelectors.push(e.selectAttr);break;case el.STYLE:var n="";t.children.forEach(function(t){t instanceof Au&&(n+=t.value)}),this.styles.push(n);break;case el.STYLESHEET:this.styleUrls.push(e.hrefAttr)}return e.nonBindable&&this.ngNonBindableStackCount++,X(this,t.children),e.nonBindable&&this.ngNonBindableStackCount--,null},t.prototype.visitExpansion=function(t){X(this,t.cases)},t.prototype.visitExpansionCase=function(t){X(this,t.expression)},t.prototype.visitComment=function(){return null},t.prototype.visitAttribute=function(){return null},t.prototype.visitText=function(){return null},t}(),vh=this&&this.__decorate||function(t,e,n,r){var i,o=arguments.length,s=3>o?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,r);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(3>o?i(s):o>3?i(e,n,s):i(e,n))||s);return o>3&&s&&Object.defineProperty(e,n,s),s},gh=this&&this.__metadata||function(t,e){return"object"==typeof Reflect&&"function"==typeof Reflect.metadata?Reflect.metadata(t,e):void 0},_h=function(){function t(t){void 0===t&&(t=Po),this._reflector=t}return t.prototype.isDirective=function(t){var n=this._reflector.annotations(e.resolveForwardRef(t));return n&&n.some(qe)},t.prototype.resolve=function(t,n){void 0===n&&(n=!0);var r=this._reflector.annotations(e.resolveForwardRef(t));if(r){var i=io.findLast(r,qe);if(i){var o=this._reflector.propMetadata(t);return this._mergeWithPropertyMetadata(i,o,t)}}if(n)throw new Error("No Directive annotation found on "+s(t));return null},t.prototype._mergeWithPropertyMetadata=function(t,n,r){var i=[],o=[],s={},a={};return Object.keys(n).forEach(function(t){var r=io.findLast(n[t],function(t){return t instanceof e.Input});r&&i.push(r.bindingPropertyName?t+": "+r.bindingPropertyName:t);var u=io.findLast(n[t],function(t){return t instanceof e.Output});u&&o.push(u.bindingPropertyName?t+": "+u.bindingPropertyName:t);var c=n[t].filter(function(t){return t&&t instanceof e.HostBinding});c.forEach(function(e){if(e.hostPropertyName){var n=e.hostPropertyName[0];if("("===n)throw new Error("@HostBinding can not bind to events. Use @HostListener instead.");if("["===n)throw new Error("@HostBinding parameter should be a property name, 'class.<name>', or 'attr.<name>'.");s["["+e.hostPropertyName+"]"]=t}else s["["+t+"]"]=t});var p=n[t].filter(function(t){return t&&t instanceof e.HostListener});p.forEach(function(e){var n=e.args||[];s["("+e.eventName+")"]=t+"("+n.join(",")+")"});var l=io.findLast(n[t],function(t){return t instanceof e.Query});l&&(a[t]=l)}),this._merge(t,i,o,s,a,r)},t.prototype._extractPublicName=function(t){return y(t,[null,t])[1].trim()},t.prototype._dedupeBindings=function(t){for(var e=new Set,n=[],r=t.length-1;r>=0;r--){var i=t[r],o=this._extractPublicName(i);e.has(o)||(e.add(o),n.push(i))}return n.reverse()},t.prototype._merge=function(t,n,r,i,o){var s=this._dedupeBindings(t.inputs?t.inputs.concat(n):n),a=this._dedupeBindings(t.outputs?t.outputs.concat(r):r),u=t.host?ro.merge(t.host,i):i,c=t.queries?ro.merge(t.queries,o):o;return t instanceof e.Component?new e.Component({selector:t.selector,inputs:s,outputs:a,host:u,exportAs:t.exportAs,moduleId:t.moduleId,queries:c,changeDetection:t.changeDetection,providers:t.providers,viewProviders:t.viewProviders,entryComponents:t.entryComponents,template:t.template,templateUrl:t.templateUrl,styles:t.styles,styleUrls:t.styleUrls,encapsulation:t.encapsulation,animations:t.animations,interpolation:t.interpolation}):new e.Directive({selector:t.selector,inputs:s,outputs:a,host:u,exportAs:t.exportAs,queries:c,providers:t.providers})},t=vh([M(),gh("design:paramtypes",[co])],t)}(),bh=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},wh={};wh.Const=0,wh[wh.Const]="Const";var Eh=function(){function t(t){void 0===t&&(t=null),this.modifiers=t,t||(this.modifiers=[])}return t.prototype.visitType=function(){},t.prototype.hasModifier=function(t){return-1!==this.modifiers.indexOf(t)},t}(),Sh={};Sh.Dynamic=0,Sh.Bool=1,Sh.String=2,Sh.Int=3,Sh.Number=4,Sh.Function=5,Sh.Null=6,Sh[Sh.Dynamic]="Dynamic",Sh[Sh.Bool]="Bool",Sh[Sh.String]="String",Sh[Sh.Int]="Int",Sh[Sh.Number]="Number",Sh[Sh.Function]="Function",Sh[Sh.Null]="Null";var Ch=function(t){function e(e,n){void 0===n&&(n=null),t.call(this,n),this.name=e}return bh(e,t),e.prototype.visitType=function(t,e){return t.visitBuiltintType(this,e)},e}(Eh),xh=function(t){function e(e,n,r){void 0===n&&(n=null),void 0===r&&(r=null),t.call(this,r),this.value=e,this.typeParams=n}return bh(e,t),e.prototype.visitType=function(t,e){return t.visitExpressionType(this,e)},e}(Eh),Th=function(t){function e(e,n){void 0===n&&(n=null),t.call(this,n),this.of=e}return bh(e,t),e.prototype.visitType=function(t,e){return t.visitArrayType(this,e)},e}(Eh),Ph=function(t){function e(e,n){void 0===n&&(n=null),t.call(this,n),this.valueType=e}return bh(e,t),e.prototype.visitType=function(t,e){return t.visitMapType(this,e)},e}(Eh),Oh=new Ch(Sh.Dynamic),Ah=new Ch(Sh.Bool),Mh=(new Ch(Sh.Int),new Ch(Sh.Number)),Rh=new Ch(Sh.String),kh=new Ch(Sh.Function),Nh=new Ch(Sh.Null),Ih={};Ih.Equals=0,Ih.NotEquals=1,Ih.Identical=2,Ih.NotIdentical=3,Ih.Minus=4,Ih.Plus=5,Ih.Divide=6,Ih.Multiply=7,Ih.Modulo=8,Ih.And=9,Ih.Or=10,Ih.Lower=11,Ih.LowerEquals=12,Ih.Bigger=13,Ih.BiggerEquals=14,Ih[Ih.Equals]="Equals",Ih[Ih.NotEquals]="NotEquals",Ih[Ih.Identical]="Identical",Ih[Ih.NotIdentical]="NotIdentical",Ih[Ih.Minus]="Minus",Ih[Ih.Plus]="Plus",Ih[Ih.Divide]="Divide",Ih[Ih.Multiply]="Multiply",Ih[Ih.Modulo]="Modulo",Ih[Ih.And]="And",Ih[Ih.Or]="Or",Ih[Ih.Lower]="Lower",Ih[Ih.LowerEquals]="LowerEquals",Ih[Ih.Bigger]="Bigger",Ih[Ih.BiggerEquals]="BiggerEquals";var Dh=function(){function t(t){this.type=t}return t.prototype.visitExpression=function(){},t.prototype.prop=function(t){return new Jh(this,t)},t.prototype.key=function(t,e){return void 0===e&&(e=null),new tf(this,t,e)},t.prototype.callMethod=function(t,e){return new Hh(this,t,e)},t.prototype.callFn=function(t){return new qh(this,t)},t.prototype.instantiate=function(t,e){return void 0===e&&(e=null),new zh(this,t,e)},t.prototype.conditional=function(t,e){return void 0===e&&(e=null),new Kh(this,t,e)},t.prototype.equals=function(t){return new Zh(Ih.Equals,this,t)},t.prototype.notEquals=function(t){return new Zh(Ih.NotEquals,this,t)},t.prototype.identical=function(t){return new Zh(Ih.Identical,this,t)},t.prototype.notIdentical=function(t){return new Zh(Ih.NotIdentical,this,t)},t.prototype.minus=function(t){return new Zh(Ih.Minus,this,t)},t.prototype.plus=function(t){return new Zh(Ih.Plus,this,t)},t.prototype.divide=function(t){return new Zh(Ih.Divide,this,t)},t.prototype.multiply=function(t){return new Zh(Ih.Multiply,this,t)},t.prototype.modulo=function(t){return new Zh(Ih.Modulo,this,t)},t.prototype.and=function(t){return new Zh(Ih.And,this,t)},t.prototype.or=function(t){return new Zh(Ih.Or,this,t)},t.prototype.lower=function(t){return new Zh(Ih.Lower,this,t)},t.prototype.lowerEquals=function(t){return new Zh(Ih.LowerEquals,this,t)},t.prototype.bigger=function(t){return new Zh(Ih.Bigger,this,t)},t.prototype.biggerEquals=function(t){return new Zh(Ih.BiggerEquals,this,t)},t.prototype.isBlank=function(){return this.equals(uf)},t.prototype.cast=function(t){return new Qh(this,t)},t.prototype.toStmt=function(){return new ff(this)},t}(),jh={};jh.This=0,jh.Super=1,jh.CatchError=2,jh.CatchStack=3,jh[jh.This]="This",jh[jh.Super]="Super",jh[jh.CatchError]="CatchError",jh[jh.CatchStack]="CatchStack";var Lh=function(t){function e(e,n){void 0===n&&(n=null),t.call(this,n),"string"==typeof e?(this.name=e,this.builtin=null):(this.name=null,this.builtin=e)}return bh(e,t),e.prototype.visitExpression=function(t,e){return t.visitReadVarExpr(this,e)},e.prototype.set=function(t){return new Vh(this.name,t)},e}(Dh),Vh=function(t){function e(e,n,r){void 0===r&&(r=null),t.call(this,r||n.type),this.name=e,this.value=n}return bh(e,t),e.prototype.visitExpression=function(t,e){return t.visitWriteVarExpr(this,e)},e.prototype.toDeclStmt=function(t,e){return void 0===t&&(t=null),void 0===e&&(e=null),new lf(this.name,this.value,t,e)},e}(Dh),Fh=function(t){function e(e,n,r,i){void 0===i&&(i=null),t.call(this,i||r.type),this.receiver=e,this.index=n,this.value=r}return bh(e,t),e.prototype.visitExpression=function(t,e){return t.visitWriteKeyExpr(this,e)},e}(Dh),Uh=function(t){function e(e,n,r,i){void 0===i&&(i=null),t.call(this,i||r.type),this.receiver=e,this.name=n,this.value=r}return bh(e,t),e.prototype.visitExpression=function(t,e){return t.visitWritePropExpr(this,e)},e}(Dh),Bh={};Bh.ConcatArray=0,Bh.SubscribeObservable=1,Bh.Bind=2,Bh[Bh.ConcatArray]="ConcatArray",Bh[Bh.SubscribeObservable]="SubscribeObservable",Bh[Bh.Bind]="Bind";var Hh=function(t){function e(e,n,r,i){void 0===i&&(i=null),t.call(this,i),this.receiver=e,this.args=r,"string"==typeof n?(this.name=n,this.builtin=null):(this.name=null,this.builtin=n)}return bh(e,t),e.prototype.visitExpression=function(t,e){return t.visitInvokeMethodExpr(this,e)},e}(Dh),qh=function(t){function e(e,n,r){void 0===r&&(r=null),t.call(this,r),this.fn=e,this.args=n}return bh(e,t),e.prototype.visitExpression=function(t,e){return t.visitInvokeFunctionExpr(this,e)},e}(Dh),zh=function(t){function e(e,n,r){t.call(this,r),this.classExpr=e,this.args=n}return bh(e,t),e.prototype.visitExpression=function(t,e){return t.visitInstantiateExpr(this,e)},e}(Dh),Wh=function(t){function e(e,n){void 0===n&&(n=null),t.call(this,n),this.value=e}return bh(e,t),e.prototype.visitExpression=function(t,e){return t.visitLiteralExpr(this,e)},e}(Dh),Gh=function(t){function e(e,n,r){void 0===n&&(n=null),void 0===r&&(r=null),t.call(this,n),this.value=e,this.typeParams=r}return bh(e,t),e.prototype.visitExpression=function(t,e){return t.visitExternalExpr(this,e)},e}(Dh),Kh=function(t){function e(e,n,r,i){void 0===r&&(r=null),void 0===i&&(i=null),t.call(this,i||n.type),this.condition=e,this.falseCase=r,this.trueCase=n}return bh(e,t),e.prototype.visitExpression=function(t,e){return t.visitConditionalExpr(this,e)},e}(Dh),Xh=function(t){function e(e){t.call(this,Ah),this.condition=e}return bh(e,t),e.prototype.visitExpression=function(t,e){return t.visitNotExpr(this,e)},e}(Dh),Qh=function(t){function e(e,n){t.call(this,n),this.value=e}return bh(e,t),e.prototype.visitExpression=function(t,e){return t.visitCastExpr(this,e)},e}(Dh),Yh=function(){function t(t,e){void 0===e&&(e=null),this.name=t,this.type=e}return t}(),$h=function(t){function e(e,n,r){void 0===r&&(r=null),t.call(this,r),this.params=e,this.statements=n}return bh(e,t),e.prototype.visitExpression=function(t,e){return t.visitFunctionExpr(this,e)},e.prototype.toDeclStmt=function(t,e){return void 0===e&&(e=null),new hf(t,this.params,this.statements,this.type,e)},e}(Dh),Zh=function(t){function e(e,n,r,i){void 0===i&&(i=null),t.call(this,i||n.type),this.operator=e,this.rhs=r,this.lhs=n}return bh(e,t),e.prototype.visitExpression=function(t,e){return t.visitBinaryOperatorExpr(this,e)},e}(Dh),Jh=function(t){function e(e,n,r){void 0===r&&(r=null),t.call(this,r),this.receiver=e,this.name=n}return bh(e,t),e.prototype.visitExpression=function(t,e){return t.visitReadPropExpr(this,e)},e.prototype.set=function(t){return new Uh(this.receiver,this.name,t)},e}(Dh),tf=function(t){function e(e,n,r){void 0===r&&(r=null),t.call(this,r),this.receiver=e,this.index=n}return bh(e,t),e.prototype.visitExpression=function(t,e){return t.visitReadKeyExpr(this,e)},e.prototype.set=function(t){return new Fh(this.receiver,this.index,t)},e}(Dh),ef=function(t){function e(e,n){void 0===n&&(n=null),t.call(this,n),this.entries=e}return bh(e,t),e.prototype.visitExpression=function(t,e){return t.visitLiteralArrayExpr(this,e)},e}(Dh),nf=function(){function t(t,e,n){void 0===n&&(n=!1),this.key=t,this.value=e,this.quoted=n}return t}(),rf=function(t){function e(e,n){void 0===n&&(n=null),t.call(this,n),this.entries=e,this.valueType=null,r(n)&&(this.valueType=n.valueType)}return bh(e,t),e.prototype.visitExpression=function(t,e){return t.visitLiteralMapExpr(this,e)},e}(Dh),of=new Lh(jh.This),sf=new Lh(jh.Super),af=(new Lh(jh.CatchError),new Lh(jh.CatchStack),new Wh(null,null)),uf=new Wh(null,Nh),cf={};cf.Final=0,cf.Private=1,cf[cf.Final]="Final",cf[cf.Private]="Private";var pf=function(){function t(t){void 0===t&&(t=null),this.modifiers=t,t||(this.modifiers=[])}return t.prototype.visitStatement=function(){},t.prototype.hasModifier=function(t){return-1!==this.modifiers.indexOf(t)},t}(),lf=function(t){function e(e,n,r,i){void 0===r&&(r=null),void 0===i&&(i=null),t.call(this,i),this.name=e,this.value=n,this.type=r||n.type}return bh(e,t),e.prototype.visitStatement=function(t,e){return t.visitDeclareVarStmt(this,e)},e}(pf),hf=function(t){function e(e,n,r,i,o){void 0===i&&(i=null),void 0===o&&(o=null),t.call(this,o),this.name=e,this.params=n,this.statements=r,this.type=i}return bh(e,t),e.prototype.visitStatement=function(t,e){return t.visitDeclareFunctionStmt(this,e)},e}(pf),ff=function(t){function e(e){t.call(this),this.expr=e}return bh(e,t),e.prototype.visitStatement=function(t,e){return t.visitExpressionStmt(this,e)},e}(pf),df=function(t){function e(e){t.call(this),this.value=e}return bh(e,t),e.prototype.visitStatement=function(t,e){return t.visitReturnStmt(this,e)},e}(pf),yf=function(){function t(t,e){void 0===t&&(t=null),this.type=t,this.modifiers=e,e||(this.modifiers=[])}return t.prototype.hasModifier=function(t){return-1!==this.modifiers.indexOf(t)},t}(),mf=function(t){function e(e,n,r){void 0===n&&(n=null),void 0===r&&(r=null),t.call(this,n,r),this.name=e}return bh(e,t),e}(yf),vf=function(t){function e(e,n,r,i,o){void 0===i&&(i=null),void 0===o&&(o=null),t.call(this,i,o),this.name=e,this.params=n,this.body=r}return bh(e,t),e}(yf),gf=function(t){function e(e,n,r,i){void 0===r&&(r=null),void 0===i&&(i=null),t.call(this,r,i),this.name=e,this.body=n}return bh(e,t),e}(yf),_f=function(t){function e(e,n,r,i,o,s,a){void 0===a&&(a=null),t.call(this,a),this.name=e,this.parent=n,this.fields=r,this.getters=i,this.constructorMethod=o,this.methods=s}return bh(e,t),e.prototype.visitStatement=function(t,e){return t.visitDeclareClassStmt(this,e)},e}(pf),bf=function(t){function e(e,n,r){void 0===r&&(r=[]),t.call(this),this.condition=e,this.trueCase=n,this.falseCase=r}return bh(e,t),e.prototype.visitStatement=function(t,e){return t.visitIfStmt(this,e)},e}(pf),wf=(function(t){function e(e){t.call(this),this.comment=e}return bh(e,t),e.prototype.visitStatement=function(t,e){return t.visitCommentStmt(this,e)},e}(pf),function(t){function e(e,n){t.call(this),this.bodyStmts=e,this.catchStmts=n}return bh(e,t),e.prototype.visitStatement=function(t,e){return t.visitTryCatchStmt(this,e)},e}(pf)),Ef=function(t){function e(e){t.call(this),this.error=e}return bh(e,t),e.prototype.visitStatement=function(t,e){return t.visitThrowStmt(this,e)},e}(pf),Sf=function(){function t(){}return t.prototype.visitReadVarExpr=function(t){return t},t.prototype.visitWriteVarExpr=function(t,e){return new Vh(t.name,t.value.visitExpression(this,e))},t.prototype.visitWriteKeyExpr=function(t,e){return new Fh(t.receiver.visitExpression(this,e),t.index.visitExpression(this,e),t.value.visitExpression(this,e))},t.prototype.visitWritePropExpr=function(t,e){return new Uh(t.receiver.visitExpression(this,e),t.name,t.value.visitExpression(this,e))},t.prototype.visitInvokeMethodExpr=function(t,e){var n=t.builtin||t.name;return new Hh(t.receiver.visitExpression(this,e),n,this.visitAllExpressions(t.args,e),t.type)},t.prototype.visitInvokeFunctionExpr=function(t,e){return new qh(t.fn.visitExpression(this,e),this.visitAllExpressions(t.args,e),t.type)},t.prototype.visitInstantiateExpr=function(t,e){return new zh(t.classExpr.visitExpression(this,e),this.visitAllExpressions(t.args,e),t.type)},t.prototype.visitLiteralExpr=function(t){return t},t.prototype.visitExternalExpr=function(t){return t},t.prototype.visitConditionalExpr=function(t,e){return new Kh(t.condition.visitExpression(this,e),t.trueCase.visitExpression(this,e),t.falseCase.visitExpression(this,e))},t.prototype.visitNotExpr=function(t,e){return new Xh(t.condition.visitExpression(this,e))},t.prototype.visitCastExpr=function(t,e){return new Qh(t.value.visitExpression(this,e),e)},t.prototype.visitFunctionExpr=function(t){return t},t.prototype.visitBinaryOperatorExpr=function(t,e){return new Zh(t.operator,t.lhs.visitExpression(this,e),t.rhs.visitExpression(this,e),t.type)},t.prototype.visitReadPropExpr=function(t,e){return new Jh(t.receiver.visitExpression(this,e),t.name,t.type)},t.prototype.visitReadKeyExpr=function(t,e){return new tf(t.receiver.visitExpression(this,e),t.index.visitExpression(this,e),t.type)},t.prototype.visitLiteralArrayExpr=function(t,e){return new ef(this.visitAllExpressions(t.entries,e))},t.prototype.visitLiteralMapExpr=function(t,e){var n=this,r=t.entries.map(function(t){return new nf(t.key,t.value.visitExpression(n,e),t.quoted)});return new rf(r)},t.prototype.visitAllExpressions=function(t,e){var n=this;return t.map(function(t){return t.visitExpression(n,e)})},t.prototype.visitDeclareVarStmt=function(t,e){return new lf(t.name,t.value.visitExpression(this,e),t.type,t.modifiers)},t.prototype.visitDeclareFunctionStmt=function(t){return t},t.prototype.visitExpressionStmt=function(t,e){return new ff(t.expr.visitExpression(this,e))},t.prototype.visitReturnStmt=function(t,e){return new df(t.value.visitExpression(this,e))},t.prototype.visitDeclareClassStmt=function(t){return t},t.prototype.visitIfStmt=function(t,e){return new bf(t.condition.visitExpression(this,e),this.visitAllStatements(t.trueCase,e),this.visitAllStatements(t.falseCase,e))},t.prototype.visitTryCatchStmt=function(t,e){return new wf(this.visitAllStatements(t.bodyStmts,e),this.visitAllStatements(t.catchStmts,e))},t.prototype.visitThrowStmt=function(t,e){return new Ef(t.error.visitExpression(this,e))},t.prototype.visitCommentStmt=function(t){return t},t.prototype.visitAllStatements=function(t,e){var n=this;return t.map(function(t){return t.visitStatement(n,e)})},t}(),Cf=function(){function t(){}return t.prototype.visitReadVarExpr=function(t){return t},t.prototype.visitWriteVarExpr=function(t,e){return t.value.visitExpression(this,e),t},t.prototype.visitWriteKeyExpr=function(t,e){return t.receiver.visitExpression(this,e),t.index.visitExpression(this,e),t.value.visitExpression(this,e),t},t.prototype.visitWritePropExpr=function(t,e){return t.receiver.visitExpression(this,e),t.value.visitExpression(this,e),t},t.prototype.visitInvokeMethodExpr=function(t,e){return t.receiver.visitExpression(this,e),this.visitAllExpressions(t.args,e),t},t.prototype.visitInvokeFunctionExpr=function(t,e){return t.fn.visitExpression(this,e),this.visitAllExpressions(t.args,e),t},t.prototype.visitInstantiateExpr=function(t,e){return t.classExpr.visitExpression(this,e),this.visitAllExpressions(t.args,e),t},t.prototype.visitLiteralExpr=function(t){return t},t.prototype.visitExternalExpr=function(t){return t},t.prototype.visitConditionalExpr=function(t,e){return t.condition.visitExpression(this,e),t.trueCase.visitExpression(this,e),t.falseCase.visitExpression(this,e),t},t.prototype.visitNotExpr=function(t,e){return t.condition.visitExpression(this,e),t},t.prototype.visitCastExpr=function(t,e){return t.value.visitExpression(this,e),t},t.prototype.visitFunctionExpr=function(t){return t},t.prototype.visitBinaryOperatorExpr=function(t,e){return t.lhs.visitExpression(this,e),t.rhs.visitExpression(this,e),t},t.prototype.visitReadPropExpr=function(t,e){return t.receiver.visitExpression(this,e),t},t.prototype.visitReadKeyExpr=function(t,e){return t.receiver.visitExpression(this,e),t.index.visitExpression(this,e),t},t.prototype.visitLiteralArrayExpr=function(t,e){return this.visitAllExpressions(t.entries,e),t},t.prototype.visitLiteralMapExpr=function(t,e){var n=this;return t.entries.forEach(function(t){return t.value.visitExpression(n,e)}),t},t.prototype.visitAllExpressions=function(t,e){var n=this;t.forEach(function(t){return t.visitExpression(n,e)})},t.prototype.visitDeclareVarStmt=function(t,e){return t.value.visitExpression(this,e),t},t.prototype.visitDeclareFunctionStmt=function(t){return t},t.prototype.visitExpressionStmt=function(t,e){return t.expr.visitExpression(this,e),t},t.prototype.visitReturnStmt=function(t,e){return t.value.visitExpression(this,e),t},t.prototype.visitDeclareClassStmt=function(t){return t},t.prototype.visitIfStmt=function(t,e){return t.condition.visitExpression(this,e),this.visitAllStatements(t.trueCase,e),this.visitAllStatements(t.falseCase,e),t},t.prototype.visitTryCatchStmt=function(t,e){return this.visitAllStatements(t.bodyStmts,e),this.visitAllStatements(t.catchStmts,e),t},t.prototype.visitThrowStmt=function(t,e){return t.error.visitExpression(this,e),t},t.prototype.visitCommentStmt=function(t){return t},t.prototype.visitAllStatements=function(t,e){var n=this;t.forEach(function(t){return t.visitStatement(n,e)})},t}(),xf=function(t){function e(e,n){t.call(this),this._varName=e,this._newValue=n}return bh(e,t),e.prototype.visitReadVarExpr=function(t){return t.name==this._varName?this._newValue:t},e}(Sf),Tf=function(t){function e(){t.apply(this,arguments),this.varNames=new Set}return bh(e,t),e.prototype.visitReadVarExpr=function(t){return this.varNames.add(t.name),null},e}(Cf),Pf=function(){function t(t,e){this.expression=t,this.bindingId=e}return t}(),Of=Ge("valUnwrapper"),Af=function(){function t(){}return t.event=Ge("$event"),t}(),Mf=function(){function t(t,e,n){this.stmts=t,this.currValExpr=e,this.forceUpdate=n}return t}(),Rf=function(){function t(t,e){this.stmts=t,this.preventDefault=e}return t}(),kf={};kf.Statement=0,kf.Expression=1,kf[kf.Statement]="Statement",kf[kf.Expression]="Expression";var Nf=function(){function t(t,e,n,r,i,o){this._builder=t,this._nameResolver=e,this._implicitReceiver=n,this._valueUnwrapper=r,this.bindingId=i,this.isAction=o,this._nodeMap=new Map,this._resultMap=new Map,this._currentTemporary=0,this.needsValueUnwrapper=!1,this.temporaryCount=0}return t.prototype.visitBinary=function(t,e){var n;switch(t.operation){case"+":n=Ih.Plus;break;case"-":n=Ih.Minus;break;case"*":n=Ih.Multiply;break;case"/":n=Ih.Divide;break;case"%":n=Ih.Modulo;break;case"&&":n=Ih.And;break;case"||":n=Ih.Or;break;case"==":n=Ih.Equals;break;case"!=":n=Ih.NotEquals;break;case"===":n=Ih.Identical;break;case"!==":n=Ih.NotIdentical;break;case"<":n=Ih.Lower;break;case">":n=Ih.Bigger;break;case"<=":n=Ih.LowerEquals;break;case">=":n=Ih.BiggerEquals;break;default:throw new Error("Unsupported operation "+t.operation)}return vn(e,new Zh(n,this.visit(t.left,kf.Expression),this.visit(t.right,kf.Expression)))},t.prototype.visitChain=function(t,e){return yn(e,t),this.visitAll(t.expressions,e)},t.prototype.visitConditional=function(t,e){var n=this.visit(t.condition,kf.Expression);return vn(e,n.conditional(this.visit(t.trueExp,kf.Expression),this.visit(t.falseExp,kf.Expression)))},t.prototype.visitPipe=function(t,e){var n=this.visit(t.exp,kf.Expression),r=this.visitAll(t.args,kf.Expression),i=this._nameResolver.callPipe(t.name,n,r);if(!i)throw new Error("Illegal state: Pipe "+t.name+" is not allowed here!");return this.needsValueUnwrapper=!0,vn(e,this._valueUnwrapper.callMethod("unwrap",[i]))},t.prototype.visitFunctionCall=function(t,e){return vn(e,this.visit(t.target,kf.Expression).callFn(this.visitAll(t.args,kf.Expression)))},t.prototype.visitImplicitReceiver=function(t,e){return mn(e,t),this._implicitReceiver},t.prototype.visitInterpolation=function(t,e){mn(e,t);for(var n=[tn(t.expressions.length)],r=0;r<t.strings.length-1;r++)n.push(tn(t.strings[r])),n.push(this.visit(t.expressions[r],kf.Expression));return n.push(tn(t.strings[t.strings.length-1])),t.expressions.length<=9?Ke(Yt(_p.inlineInterpolate)).callFn(n):Ke(Yt(_p.interpolate)).callFn([n[0],Ye(n.slice(1))])},t.prototype.visitKeyedRead=function(t,e){var n=this.leftMostSafeNode(t);return n?this.convertSafeAccess(t,n,e):vn(e,this.visit(t.obj,kf.Expression).key(this.visit(t.key,kf.Expression)))},t.prototype.visitKeyedWrite=function(t,e){var n=this.visit(t.obj,kf.Expression),r=this.visit(t.key,kf.Expression),i=this.visit(t.value,kf.Expression);return vn(e,n.key(r).set(i))},t.prototype.visitLiteralArray=function(t,e){var n=this.visitAll(t.expressions,e),r=this.isAction?Ye(n):_n(this._builder,n);return vn(e,r)},t.prototype.visitLiteralMap=function(t,e){for(var n=[],r=0;r<t.keys.length;r++)n.push([t.keys[r],this.visit(t.values[r],kf.Expression)]);var i=this.isAction?$e(n):bn(this._builder,n);return vn(e,i)},t.prototype.visitLiteralPrimitive=function(t,e){return vn(e,tn(t.value))},t.prototype._getLocal=function(t){return this.isAction&&t==Af.event.name?Af.event:this._nameResolver.getLocal(t)},t.prototype.visitMethodCall=function(t,e){var n=this.leftMostSafeNode(t);if(n)return this.convertSafeAccess(t,n,e);var r=this.visitAll(t.args,kf.Expression),o=null,s=this.visit(t.receiver,kf.Expression);if(s===this._implicitReceiver){var a=this._getLocal(t.name);a&&(o=a.callFn(r))}return i(o)&&(o=s.callMethod(t.name,r)),vn(e,o)},t.prototype.visitPrefixNot=function(t,e){return vn(e,Ze(this.visit(t.expression,kf.Expression)))},t.prototype.visitPropertyRead=function(t,e){var n=this.leftMostSafeNode(t);if(n)return this.convertSafeAccess(t,n,e);var r=null,o=this.visit(t.receiver,kf.Expression);return o===this._implicitReceiver&&(r=this._getLocal(t.name)),i(r)&&(r=o.prop(t.name)),vn(e,r)},t.prototype.visitPropertyWrite=function(t,e){var n=this.visit(t.receiver,kf.Expression);if(n===this._implicitReceiver){var r=this._getLocal(t.name);if(r)throw new Error("Cannot assign to a reference or variable!")}return vn(e,n.prop(t.name).set(this.visit(t.value,kf.Expression)))},t.prototype.visitSafePropertyRead=function(t,e){return this.convertSafeAccess(t,this.leftMostSafeNode(t),e)},t.prototype.visitSafeMethodCall=function(t,e){return this.convertSafeAccess(t,this.leftMostSafeNode(t),e)},t.prototype.visitAll=function(t,e){var n=this;return t.map(function(t){return n.visit(t,e)})},t.prototype.visitQuote=function(){throw new Error("Quotes are not supported for evaluation!")},t.prototype.visit=function(t,e){var n=this._resultMap.get(t);return n?n:(this._nodeMap.get(t)||t).visit(this,e)},t.prototype.convertSafeAccess=function(t,e,n){var r,i=this.visit(e.receiver,kf.Expression);this.needsTemporary(e.receiver)&&(r=this.allocateTemporary(),i=r.set(i),this._resultMap.set(e.receiver,r));var o=i.isBlank();e instanceof iu?this._nodeMap.set(e,new ru(e.span,e.receiver,e.name,e.args)):this._nodeMap.set(e,new Wa(e.span,e.receiver,e.name));var s=this.visit(t,kf.Expression);return this._nodeMap["delete"](e),r&&this.releaseTemporary(r),vn(n,o.conditional(tn(null),s))},t.prototype.leftMostSafeNode=function(t){var e=this,n=function(t,n){return(e._nodeMap.get(n)||n).visit(t)};return t.visit({visitBinary:function(){return null},visitChain:function(){return null},visitConditional:function(){return null},visitFunctionCall:function(){return null},visitImplicitReceiver:function(){return null},visitInterpolation:function(){return null},visitKeyedRead:function(t){return n(this,t.obj)},visitKeyedWrite:function(){return null},visitLiteralArray:function(){return null},visitLiteralMap:function(){return null},visitLiteralPrimitive:function(){return null},visitMethodCall:function(t){return n(this,t.receiver)},visitPipe:function(){return null},visitPrefixNot:function(){return null},visitPropertyRead:function(t){return n(this,t.receiver)},visitPropertyWrite:function(){ +return null},visitQuote:function(){return null},visitSafeMethodCall:function(t){return n(this,t.receiver)||t},visitSafePropertyRead:function(t){return n(this,t.receiver)||t}})},t.prototype.needsTemporary=function(t){var e=this,n=function(t,n){return n&&(e._nodeMap.get(n)||n).visit(t)},r=function(t,e){return e.some(function(e){return n(t,e)})};return t.visit({visitBinary:function(t){return n(this,t.left)||n(this,t.right)},visitChain:function(){return!1},visitConditional:function(t){return n(this,t.condition)||n(this,t.trueExp)||n(this,t.falseExp)},visitFunctionCall:function(){return!0},visitImplicitReceiver:function(){return!1},visitInterpolation:function(t){return r(this,t.expressions)},visitKeyedRead:function(){return!1},visitKeyedWrite:function(){return!1},visitLiteralArray:function(){return!0},visitLiteralMap:function(){return!0},visitLiteralPrimitive:function(){return!1},visitMethodCall:function(){return!0},visitPipe:function(){return!0},visitPrefixNot:function(t){return n(this,t.expression)},visitPropertyRead:function(){return!1},visitPropertyWrite:function(){return!1},visitQuote:function(){return!1},visitSafeMethodCall:function(){return!0},visitSafePropertyRead:function(){return!1}})},t.prototype.allocateTemporary=function(){var t=this._currentTemporary++;return this.temporaryCount=Math.max(this._currentTemporary,this.temporaryCount),new Lh(hn(this.bindingId,t))},t.prototype.releaseTemporary=function(t){if(this._currentTemporary--,t.name!=hn(this.bindingId,this._currentTemporary))throw new Error("Temporary "+t.name+" released out of order")},t}(),If=function(){function t(){}return t.prototype.callPipe=function(){return null},t.prototype.getLocal=function(){return null},t}(),Df=this&&this.__decorate||function(t,e,n,r){var i,o=arguments.length,s=3>o?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,r);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(3>o?i(s):o>3?i(e,n,s):i(e,n))||s);return o>3&&s&&Object.defineProperty(e,n,s),s},jf=this&&this.__metadata||function(t,e){return"object"==typeof Reflect&&"function"==typeof Reflect.metadata?Reflect.metadata(t,e):void 0},Lf=function(){function t(t,e){this.statements=t,this.dirWrapperClassVar=e}return t}(),Vf="context",Ff="_changes",Uf="_changed",Bf="_eventHandler",Hf=Ge("currValue"),qf=Ge("throwOnChange"),zf=Ge("forceUpdate"),Wf=Ge("view"),Gf=Ge("componentView"),Kf=Ge("el"),Xf=Ge("eventName"),Qf=of.prop(Ff).set($e([])).toStmt(),Yf=function(){function t(t,e,n,r){this.compilerConfig=t,this._exprParser=e,this._schemaRegistry=n,this._console=r}return t.dirWrapperClassName=function(t){return"Wrapper_"+b(t)},t.prototype.compile=function(t){var e=In(t,this._exprParser,this._schemaRegistry);Dn(e.errors,this._console);var n=new $f(this.compilerConfig,t);Object.keys(t.inputs).forEach(function(t){Mn(t,n)}),An(n),Rn(e.hostProps,e.hostListeners,n),kn(e.hostListeners,n),Nn(t,n);var r=n.build();return new Lf([r],r.name)},t=Df([M(),jf("design:paramtypes",[kl,wu,Mp,To])],t)}(),$f=function(){function t(t,e){this.compilerConfig=t,this.dirMeta=e,this.fields=[],this.getters=[],this.methods=[],this.ctorStmts=[],this.detachStmts=[],this.destroyStmts=[];var n=e.type.lifecycleHooks;this.genChanges=-1!==n.indexOf(ao.OnChanges)||this.compilerConfig.logBindingUpdate,this.ngOnChanges=-1!==n.indexOf(ao.OnChanges),this.ngOnInit=-1!==n.indexOf(ao.OnInit),this.ngDoCheck=-1!==n.indexOf(ao.DoCheck),this.ngOnDestroy=-1!==n.indexOf(ao.OnDestroy),this.ngOnDestroy&&this.destroyStmts.push(of.prop(Vf).callMethod("ngOnDestroy",[]).toStmt())}return t.prototype.build=function(){for(var t=[],e=0;e<this.dirMeta.type.diDeps.length;e++)t.push("p"+e);var n=[new vf("ngOnDetach",[new Yh(Wf.name,Xe(Yt(_p.AppView),[Oh])),new Yh(Gf.name,Xe(Yt(_p.AppView),[Oh])),new Yh(Kf.name,Oh)],this.detachStmts),new vf("ngOnDestroy",[],this.destroyStmts)],r=[new mf(Bf,kh,[cf.Private]),new mf(Vf,Xe(this.dirMeta.type)),new mf(Uf,Ah,[cf.Private])],i=[of.prop(Uf).set(tn(!1)).toStmt()];return this.genChanges&&(r.push(new mf(Ff,new Ph(Oh),[cf.Private])),i.push(Qf)),i.push(of.prop(Vf).set(Ke(this.dirMeta.type).instantiate(t.map(function(t){return Ge(t)}))).toStmt()),Pn({name:Yf.dirWrapperClassName(this.dirMeta.type),ctorParams:t.map(function(t){return new Yh(t,Oh)}),builders:[{fields:r,ctorStmts:i,methods:n},this]})},t}(),Zf=function(){function t(t,e,n){this.hostProps=t,this.hostListeners=e,this.errors=n}return t}(),Jf=function(){function t(){}return t.create=function(t,e){return Ke(t).instantiate(e,Xe(t))},t.context=function(t){return t.prop(Vf)},t.ngDoCheck=function(t,e,n,r){return t.callMethod("ngDoCheck",[e,n,r])},t.checkHost=function(t,e,n,r,i,o,s){return t.length?[e.callMethod("checkHost",[n,r,i,o].concat(s)).toStmt()]:[]},t.ngOnDetach=function(t,e,n,r,i){return t.some(function(t){return t.isAnimation})?[e.callMethod("ngOnDetach",[n,r,i]).toStmt()]:[]},t.ngOnDestroy=function(t,e){return-1!==t.type.lifecycleHooks.indexOf(ao.OnDestroy)||Object.keys(t.outputs).length>0?[e.callMethod("ngOnDestroy",[]).toStmt()]:[]},t.subscribe=function(t,e,n,r,i,o){var s=!1,a=[];return Object.keys(t.outputs).forEach(function(e){var r=t.outputs[e],i=n.indexOf(r)>-1;s=s||i,a.push(tn(i))}),e.forEach(function(t){t.isAnimation&&n.length>0&&(s=!0)}),s?[r.callMethod("subscribe",[i,o].concat(a)).toStmt()]:[]},t.handleEvent=function(t,e,n,r){return e.callMethod("handleEvent",[n,r])},t}(),td=this&&this.__decorate||function(t,e,n,r){var i,o=arguments.length,s=3>o?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,r);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(3>o?i(s):o>3?i(e,n,s):i(e,n))||s);return o>3&&s&&Object.defineProperty(e,n,s),s},ed=this&&this.__metadata||function(t,e){return"object"==typeof Reflect&&"function"==typeof Reflect.metadata?Reflect.metadata(t,e):void 0},nd=function(){function t(t){void 0===t&&(t=Po),this._reflector=t}return t.prototype.isNgModule=function(t){return this._reflector.annotations(t).some(Vn)},t.prototype.resolve=function(t,e){void 0===e&&(e=!0);var n=io.findLast(this._reflector.annotations(t),Vn);if(n)return n;if(e)throw new Error("No NgModule metadata found for '"+s(t)+"'.");return null},t=td([M(),ed("design:paramtypes",[co])],t)}(),rd=this&&this.__decorate||function(t,e,n,r){var i,o=arguments.length,s=3>o?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,r);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(3>o?i(s):o>3?i(e,n,s):i(e,n))||s);return o>3&&s&&Object.defineProperty(e,n,s),s},id=this&&this.__metadata||function(t,e){return"object"==typeof Reflect&&"function"==typeof Reflect.metadata?Reflect.metadata(t,e):void 0},od=function(){function t(t){void 0===t&&(t=Po),this._reflector=t}return t.prototype.isPipe=function(t){var n=this._reflector.annotations(e.resolveForwardRef(t));return n&&n.some(Fn)},t.prototype.resolve=function(t,n){void 0===n&&(n=!0);var r=this._reflector.annotations(e.resolveForwardRef(t));if(r){var i=io.findLast(r,Fn);if(i)return i}if(n)throw new Error("No Pipe decorator found on "+s(t));return null},t=rd([M(),id("design:paramtypes",[co])],t)}(),sd=this&&this.__decorate||function(t,e,n,r){var i,o=arguments.length,s=3>o?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,r);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(3>o?i(s):o>3?i(e,n,s):i(e,n))||s);return o>3&&s&&Object.defineProperty(e,n,s),s},ad=this&&this.__metadata||function(t,e){return"object"==typeof Reflect&&"function"==typeof Reflect.metadata?Reflect.metadata(t,e):void 0},ud=function(){function t(){}return t.prototype.resolveSummary=function(){return null},t.prototype.getSymbolsOf=function(){return[]},t=sd([M(),ad("design:paramtypes",[])],t)}(),cd=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},pd=this&&this.__decorate||function(t,e,n,r){var i,o=arguments.length,s=3>o?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,r);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(3>o?i(s):o>3?i(e,n,s):i(e,n))||s);return o>3&&s&&Object.defineProperty(e,n,s),s},ld=this&&this.__metadata||function(t,e){return"object"==typeof Reflect&&"function"==typeof Reflect.metadata?Reflect.metadata(t,e):void 0},hd=new e.OpaqueToken("ErrorCollector"),fd=function(){function t(t,e,n,r,i,o,s,a){void 0===s&&(s=Po),this._ngModuleResolver=t,this._directiveResolver=e,this._pipeResolver=n,this._summaryResolver=r,this._schemaRegistry=i,this._directiveNormalizer=o,this._reflector=s,this._errorCollector=a,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._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._summaryCache.clear(),this._pipeCache.clear(),this._ngModuleCache.clear(),this._ngModuleOfTypes.clear(),this._directiveNormalizer.clearCache()},t.prototype.getAnimationEntryMetadata=function(t){var e=this,n=t.definitions.map(function(t){return e._getAnimationStateMetadata(t)});return new hs(t.name,n)},t.prototype._getAnimationStateMetadata=function(t){if(t instanceof e.AnimationStateDeclarationMetadata){var n=this._getAnimationStyleMetadata(t.styles);return new ds(t.stateNameExpr,n)}return t instanceof e.AnimationStateTransitionMetadata?new ys(t.stateChangeExpr,this._getAnimationMetadata(t.steps)):null},t.prototype._getAnimationStyleMetadata=function(t){return new gs(t.offset,t.styles)},t.prototype._getAnimationMetadata=function(t){var n=this;if(t instanceof e.AnimationStyleMetadata)return this._getAnimationStyleMetadata(t);if(t instanceof e.AnimationKeyframesSequenceMetadata)return new vs(t.steps.map(function(t){return n._getAnimationStyleMetadata(t)}));if(t instanceof e.AnimationAnimateMetadata){var r=this._getAnimationMetadata(t.styles);return new _s(t.timings,r)}if(t instanceof e.AnimationWithStepsMetadata){var i=t.steps.map(function(t){return n._getAnimationMetadata(t)});return t instanceof e.AnimationGroupMetadata?new Es(i):new ws(i)}return null},t.prototype._loadSummary=function(t,e){var n=this._summaryCache.get(t);if(!n){var r=this._summaryResolver.resolveSummary(t);n=r?r.type:null,this._summaryCache.set(t,n)}return n&&n.summaryKind===e?n:null},t.prototype._loadDirectiveMetadata=function(t,n){var r=this;if(!this._directiveCache.has(t)){t=e.resolveForwardRef(t);var i=this.getNonNormalizedDirectiveMetadata(t),o=i.annotation,s=i.metadata,a=function(e){var n=new Ps({type:s.type,isComponent:s.isComponent,selector:s.selector,exportAs:s.exportAs,changeDetection:s.changeDetection,inputs:s.inputs,outputs:s.outputs,hostListeners:s.hostListeners,hostProperties:s.hostProperties,hostAttributes:s.hostAttributes,providers:s.providers,viewProviders:s.viewProviders,queries:s.queries,viewQueries:s.viewQueries,entryComponents:s.entryComponents,template:e});return r._directiveCache.set(t,n),r._summaryCache.set(t,n.toSummary()),n};if(s.isComponent){var u=this._directiveNormalizer.normalizeTemplate({componentType:t,moduleUrl:zn(this._reflector,t,o),encapsulation:s.template.encapsulation,template:s.template.template,templateUrl:s.template.templateUrl,styles:s.template.styles,styleUrls:s.template.styleUrls,animations:s.template.animations,interpolation:s.template.interpolation});return u.syncResult?(a(u.syncResult),null):n?(this._reportError(new zo(t),t),null):u.asyncResult.then(a)}return a(null),null}},t.prototype.getNonNormalizedDirectiveMetadata=function(t){var n=this;t=e.resolveForwardRef(t);var i=this._directiveResolver.resolve(t);if(!i)return null;var o;if(i instanceof e.Component){R("styles",i.styles),R("styleUrls",i.styleUrls),k("interpolation",i.interpolation);var s=i.animations?i.animations.map(function(t){return n.getAnimationEntryMetadata(t)}):null;o=new Ts({encapsulation:i.encapsulation,template:i.template,templateUrl:i.templateUrl,styles:i.styles,styleUrls:i.styleUrls,animations:s,interpolation:i.interpolation})}var a=null,u=[],c=[],p=i.selector;i instanceof e.Component?(a=i.changeDetection,i.viewProviders&&(u=this._getProvidersMetadata(i.viewProviders,c,'viewProviders for "'+Gn(t)+'"',[],t)),i.entryComponents&&(c=Hn(i.entryComponents).map(function(t){return n._getIdentifierMetadata(t)}).concat(c)),p||(p=this._schemaRegistry.getDefaultComponentElementName())):p||(this._reportError(new cs("Directive "+Gn(t)+" has no selector, please add it!"),t),p="error");var l=[];r(i.providers)&&(l=this._getProvidersMetadata(i.providers,c,'providers for "'+Gn(t)+'"',[],t));var h=[],f=[];r(i.queries)&&(h=this._getQueriesMetadata(i.queries,!1,t),f=this._getQueriesMetadata(i.queries,!0,t));var d=Ps.create({selector:p,exportAs:i.exportAs,isComponent:!!o,type:this._getTypeMetadata(t),template:o,changeDetection:a,inputs:i.inputs,outputs:i.outputs,host:i.host,providers:l,viewProviders:u,queries:h,viewQueries:f,entryComponents:c});return{metadata:d,annotation:i}},t.prototype.getDirectiveMetadata=function(t){var e=this._directiveCache.get(t);return e||this._reportError(new cs("Illegal state: getDirectiveMetadata can only be called after loadNgModuleDirectiveAndPipeMetadata for a module that declares it. Directive "+Gn(t)+"."),t),e},t.prototype.getDirectiveSummary=function(t){var e=this._loadSummary(t,Cs.Directive);return e||this._reportError(new cs("Illegal state: Could not load the summary for directive "+Gn(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,Cs.NgModule);if(!e){var n=this.getNgModuleMetadata(t,!1);e=n?n.toSummary():null,e&&this._summaryCache.set(t,e)}return e},t.prototype.loadNgModuleDirectiveAndPipeMetadata=function(t,e,n){var r=this;void 0===n&&(n=!0);var i=this.getNgModuleMetadata(t,n),o=[];return i&&(i.declaredDirectives.forEach(function(t){var n=r._loadDirectiveMetadata(t.reference,e);n&&o.push(n)}),i.declaredPipes.forEach(function(t){return r._loadPipeMetadata(t.reference)})),Promise.all(o)},t.prototype.getNgModuleMetadata=function(t,n){var r=this;void 0===n&&(n=!0),t=e.resolveForwardRef(t);var i=this._ngModuleCache.get(t);if(i)return i;var o=this._ngModuleResolver.resolve(t,n);if(!o)return null;var s=[],a=[],u=[],c=[],p=[],l=[],h=[],f=[],d=[];o.imports&&Hn(o.imports).forEach(function(e){var n;if(qn(e))n=e;else if(e&&e.ngModule){var i=e;n=i.ngModule,i.providers&&l.push.apply(l,r._getProvidersMetadata(i.providers,h,"provider for the NgModule '"+Gn(n)+"'",[],e))}if(!n)return void r._reportError(new cs("Unexpected value '"+Gn(e)+"' imported by the module '"+Gn(t)+"'"),t);var o=r.getNgModuleSummary(n);return o?void c.push(o):void r._reportError(new cs("Unexpected "+r._getTypeDescriptor(e)+" '"+Gn(e)+"' imported by the module '"+Gn(t)+"'"),t)}),o.exports&&Hn(o.exports).forEach(function(e){if(!qn(e))return void r._reportError(new cs("Unexpected value '"+Gn(e)+"' exported by the module '"+Gn(t)+"'"),t);var n=r.getNgModuleSummary(e);n?p.push(n):a.push(r._getIdentifierMetadata(e))});var y=this._getTransitiveNgModuleMetadata(c,p);o.declarations&&Hn(o.declarations).forEach(function(e){if(!qn(e))return void r._reportError(new cs("Unexpected value '"+Gn(e)+"' declared by the module '"+Gn(t)+"'"),t);var n=r._getIdentifierMetadata(e);if(r._directiveResolver.isDirective(e))y.addDirective(n),s.push(n),r._addTypeToModule(e,t);else{if(!r._pipeResolver.isPipe(e))return void r._reportError(new cs("Unexpected "+r._getTypeDescriptor(e)+" '"+Gn(e)+"' declared by the module '"+Gn(t)+"'"),t);y.addPipe(n),y.pipes.push(n),u.push(n),r._addTypeToModule(e,t)}});var m=[],v=[];return a.forEach(function(e){y.directivesSet.has(e.reference)?(m.push(e),y.addExportedDirective(e)):y.pipesSet.has(e.reference)?(v.push(e),y.addExportedPipe(e)):r._reportError(new cs("Can't export "+r._getTypeDescriptor(e.reference)+" "+Gn(e.reference)+" from "+Gn(t)+" as it was neither declared nor imported!"),t)}),o.providers&&l.push.apply(l,this._getProvidersMetadata(o.providers,h,"provider for the NgModule '"+Gn(t)+"'",[],t)),o.entryComponents&&h.push.apply(h,Hn(o.entryComponents).map(function(t){return r._getIdentifierMetadata(t)})),o.bootstrap&&Hn(o.bootstrap).forEach(function(e){return qn(e)?void f.push(r._getIdentifierMetadata(e)):void r._reportError(new cs("Unexpected value '"+Gn(e)+"' used in the bootstrap property of module '"+Gn(t)+"'"),t)}),h.push.apply(h,f),o.schemas&&d.push.apply(d,Hn(o.schemas)),i=new As({type:this._getTypeMetadata(t),providers:l,entryComponents:h,bootstrapComponents:f,schemas:d,declaredDirectives:s,exportedDirectives:m,declaredPipes:u,exportedPipes:v,importedModules:c,exportedModules:p,transitiveModule:y,id:o.id}),h.forEach(function(t){return y.addEntryComponent(t)}),l.forEach(function(t){return y.addProvider(t,i.type)}),y.addModule(i.type),this._ngModuleCache.set(t,i),i},t.prototype._getTypeDescriptor=function(t){return this._directiveResolver.isDirective(t)?"directive":this._pipeResolver.isPipe(t)?"pipe":this._ngModuleResolver.isNgModule(t)?"module":t.provide?"provider":"value"},t.prototype._addTypeToModule=function(t,e){var n=this._ngModuleOfTypes.get(t);n&&n!==e&&this._reportError(new cs("Type "+Gn(t)+" is part of the declarations of 2 modules: "+Gn(n)+" and "+Gn(e)+"! "+("Please consider moving "+Gn(t)+" to a higher module that imports "+Gn(n)+" and "+Gn(e)+". ")+("You can also create a new NgModule that exports and includes "+Gn(t)+" then import that NgModule in "+Gn(n)+" and "+Gn(e)+".")),e),this._ngModuleOfTypes.set(t,e)},t.prototype._getTransitiveNgModuleMetadata=function(t,e){var n=new Ms,r=new Map;return t.concat(e).forEach(function(t){t.modules.forEach(function(t){return n.addModule(t)}),t.entryComponents.forEach(function(t){return n.addEntryComponent(t)});var e=new Set;t.providers.forEach(function(t){var i=S(t.provider.token),o=r.get(i);o||(o=new Set,r.set(i,o));var s=t.module.reference;(e.has(i)||!o.has(s))&&(o.add(s),e.add(i),n.addProvider(t.provider,t.module))})}),e.forEach(function(t){t.exportedDirectives.forEach(function(t){return n.addExportedDirective(t)}),t.exportedPipes.forEach(function(t){return n.addExportedPipe(t)})}),t.forEach(function(t){t.exportedDirectives.forEach(function(t){return n.addDirective(t)}),t.exportedPipes.forEach(function(t){return n.addPipe(t)})}),n},t.prototype._getIdentifierMetadata=function(t){return t=e.resolveForwardRef(t),{reference:t}},t.prototype.isInjectable=function(t){var n=this._reflector.annotations(t);return n.some(function(t){return t.constructor===e.Injectable})},t.prototype.getInjectableSummary=function(t){return{summaryKind:Cs.Injectable,type:this._getTypeMetadata(t)}},t.prototype._getInjectableMetadata=function(t,e){void 0===e&&(e=null);var n=this._loadSummary(t,Cs.Injectable);return n?n.type:this._getTypeMetadata(t,e)},t.prototype._getTypeMetadata=function(t,e){void 0===e&&(e=null);var n=this._getIdentifierMetadata(t);return{reference:n.reference,diDeps:this._getDependenciesMetadata(n.reference,e),lifecycleHooks:uo.filter(function(t){return jn(t,n.reference)})}},t.prototype._getFactoryMetadata=function(t,n){return void 0===n&&(n=null),t=e.resolveForwardRef(t),{reference:t,diDeps:this._getDependenciesMetadata(t,n)}},t.prototype.getPipeMetadata=function(t){var e=this._pipeCache.get(t);return e||this._reportError(new cs("Illegal state: getPipeMetadata can only be called after loadNgModuleDirectiveAndPipeMetadata for a module that declares it. Pipe "+Gn(t)+"."),t),e},t.prototype.getPipeSummary=function(t){var e=this._loadSummary(t,Cs.Pipe);return e||this._reportError(new cs("Illegal state: Could not load the summary for pipe "+Gn(t)+"."),t),e},t.prototype.getOrLoadPipeMetadata=function(t){var e=this._pipeCache.get(t);return e||(e=this._loadPipeMetadata(t)),e},t.prototype._loadPipeMetadata=function(t){t=e.resolveForwardRef(t);var n=this._pipeResolver.resolve(t),r=new Os({type:this._getTypeMetadata(t),name:n.name,pure:n.pure});return this._pipeCache.set(t,r),this._summaryCache.set(t,r.toSummary()),r},t.prototype._getDependenciesMetadata=function(t,n){var r=this,o=!1,s=n||this._reflector.parameters(t)||[],a=s.map(function(t){var n=!1,s=!1,a=!1,u=!1,c=!1,p=null;return Array.isArray(t)?t.forEach(function(t){t instanceof e.Host?s=!0:t instanceof e.Self?a=!0:t instanceof e.SkipSelf?u=!0:t instanceof e.Optional?c=!0:t instanceof e.Attribute?(n=!0,p=t.attributeName):t instanceof e.Inject?p=t.token:qn(t)&&i(p)&&(p=t)}):p=t,i(p)?(o=!0,null):{isAttribute:n,isHost:s,isSelf:a,isSkipSelf:u,isOptional:c,token:r._getTokenMetadata(p)}});if(o){var u=a.map(function(t){return t?Gn(t.token):"?"}).join(", ");this._reportError(new cs("Can't resolve all parameters for "+Gn(t)+": ("+u+")."),t)}return a},t.prototype._getTokenMetadata=function(t){t=e.resolveForwardRef(t);var n;return n="string"==typeof t?{value:t}:{identifier:{reference:t}}},t.prototype._getProvidersMetadata=function(t,n,r,i,o){var s=this;return void 0===i&&(i=[]),t.forEach(function(a,u){if(Array.isArray(a))s._getProvidersMetadata(a,n,r,i);else{a=e.resolveForwardRef(a);var c=void 0;if(a&&"object"==typeof a&&a.hasOwnProperty("provide"))c=new Rs(a.provide,a);else if(qn(a))c=new Rs(a,{useClass:a});else{var p=t.reduce(function(t,e,n){return u>n?t.push(""+Gn(e)):n==u?t.push("?"+Gn(e)+"?"):n==u+1&&t.push("..."),t},[]).join(", ");s._reportError(new cs("Invalid "+(r?r:"provider")+" - only instances of Provider and Type are allowed, got: ["+p+"]"),o)}c.token===Qt(_p.ANALYZE_FOR_ENTRY_COMPONENTS)?n.push.apply(n,s._getEntryComponentsFromProvider(c,o)):i.push(s.getProviderMetadata(c))}}),i},t.prototype._getEntryComponentsFromProvider=function(t,e){var n=this,r=[],i=[];return t.useFactory||t.useExisting||t.useClass?(this._reportError(new cs("The ANALYZE_FOR_ENTRY_COMPONENTS token only supports useValue!"),e),[]):t.multi?(Wn(t.useValue,i),i.forEach(function(t){(n._directiveResolver.isDirective(t.reference)||n._loadSummary(t.reference,Cs.Directive))&&r.push(t)}),r):(this._reportError(new cs("The ANALYZE_FOR_ENTRY_COMPONENTS token only supports 'multi = true'!"),e),[])},t.prototype.getProviderMetadata=function(t){var e,n=null,r=null,i=this._getTokenMetadata(t.token);return t.useClass?(n=this._getInjectableMetadata(t.useClass,t.dependencies),e=n.diDeps,t.token===t.useClass&&(i={identifier:n})):t.useFactory&&(r=this._getFactoryMetadata(t.useFactory,t.dependencies),e=r.diDeps),{token:i,useClass:n,useValue:t.useValue,useFactory:r,useExisting:t.useExisting?this._getTokenMetadata(t.useExisting):null,deps:e,multi:t.multi}},t.prototype._getQueriesMetadata=function(t,e,n){var r=this,i=[];return Object.keys(t).forEach(function(o){var s=t[o];s.isViewQuery===e&&i.push(r._getQueryMetadata(s,o,n))}),i},t.prototype._queryVarBindings=function(t){return t.split(/\s*,\s*/)},t.prototype._getQueryMetadata=function(t,e,n){var r,i=this;return"string"==typeof t.selector?r=this._queryVarBindings(t.selector).map(function(t){return i._getTokenMetadata(t)}):(t.selector||this._reportError(new cs("Can't construct a query for the property \""+e+'" of "'+Gn(n)+"\" since the query selector wasn't defined."),n),r=[this._getTokenMetadata(t.selector)]),{selectors:r,first:t.first,descendants:t.descendants,propertyName:e,read:t.read?this._getTokenMetadata(t.read):null}},t.prototype._reportError=function(t,e,n){if(!this._errorCollector)throw t;this._errorCollector(t,e),n&&this._errorCollector(t,n)},t.ctorParameters=function(){return[{type:nd},{type:_h},{type:od},{type:ud},{type:Mp},{type:yh},{type:co},{type:void 0,decorators:[{type:e.Optional},{type:e.Inject,args:[hd]}]}]},t=pd([M(),ld("design:paramtypes",[nd,_h,od,ud,Mp,yh,co,Function])],t)}(),dd=function(t){function e(){t.apply(this,arguments)}return cd(e,t),e.prototype.visitOther=function(t,e){e.push({reference:t})},e}(as),yd="$quoted$",md=function(){function t(){}return t.prototype.visitArray=function(t,e){var n=this;return Ye(t.map(function(t){return g(t,n,null)}),e)},t.prototype.visitStringMap=function(t,e){var n=this,r=[],i=new Set(t&&t[yd]);return Object.keys(t).forEach(function(e){r.push(new nf(e,g(t[e],n,null),i.has(e)))}),new rf(r,e)},t.prototype.visitPrimitive=function(t,e){return tn(t,e)},t.prototype.visitOther=function(t){return t instanceof Dh?t:Ke({reference:t})},t}(),vd=this&&this.__decorate||function(t,e,n,r){var i,o=arguments.length,s=3>o?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,r);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(3>o?i(s):o>3?i(e,n,s):i(e,n))||s);return o>3&&s&&Object.defineProperty(e,n,s),s},gd=this&&this.__metadata||function(t,e){return"object"==typeof Reflect&&"function"==typeof Reflect.metadata?Reflect.metadata(t,e):void 0},_d=function(){function t(t,e){this.comp=t,this.placeholder=e}return t}(),bd=function(){function t(t,e,n){this.statements=t,this.ngModuleFactoryVar=e,this.dependencies=n}return t}(),wd=function(){function t(){}return t.prototype.compile=function(t,e){var n=w(t.type),i=r(n)?"in NgModule "+b(t.type)+" in "+n:"in NgModule "+b(t.type),o=new xu("",i),s=new Tu(new Cu(o,null,null,null),new Cu(o,null,null,null)),a=[],u=[],c=t.transitiveModule.entryComponents.map(function(e){var n={reference:null};return t.bootstrapComponents.some(function(t){return t.reference===e.reference})&&u.push(n),a.push(new _d(e,n)),n}),p=new Ed(t,c,u,s),l=new Ap(t,e,s);l.parse().forEach(function(t){return p.addProvider(t)});var h=p.build(),f=b(t.type)+"NgFactory",d=Ge(f).set(Ke(Yt(_p.NgModuleFactory)).instantiate([Ge(h.name),Ke(t.type)],Xe(Yt(_p.NgModuleFactory),[Xe(t.type)],[wh.Const]))).toDeclStmt(null,[cf.Final]),y=[h,d];if(t.id){var m=Ke(Yt(_p.RegisterModuleFactoryFn)).callFn([tn(t.id),Ge(f)]).toStmt();y.push(m)}return new bd(y,f,a)},t=vd([M(),gd("design:paramtypes",[])],t)}(),Ed=function(){function t(t,e,n,r){this._ngModuleMeta=t,this._entryComponentFactories=e,this._bootstrapComponentFactories=n,this._sourceSpan=r,this.fields=[],this.getters=[],this.methods=[],this.ctorStmts=[],this._tokens=[],this._instances=new Map,this._createStmts=[],this._destroyStmts=[]}return t.prototype.addProvider=function(t){var e=this,n=t.providers.map(function(t){return e._getProviderValue(t)}),r="_"+E(t.token)+"_"+this._instances.size,i=this._createProviderProperty(r,t,n,t.multiProvider,t.eager);-1!==t.lifecycleHooks.indexOf(ao.OnDestroy)&&this._destroyStmts.push(i.callMethod("ngOnDestroy",[]).toStmt()),this._tokens.push(t.token),this._instances.set(S(t.token),i)},t.prototype.build=function(){var t=this,e=this._tokens.map(function(e){var n=t._instances.get(S(e));return new bf(Cd.token.identical(on(e)),[new df(n)])}),n=[new vf("createInternal",[],this._createStmts.concat(new df(this._instances.get(this._ngModuleMeta.type.reference))),Xe(this._ngModuleMeta.type)),new vf("getInternal",[new Yh(Cd.token.name,Oh),new Yh(Cd.notFoundResult.name,Oh)],e.concat([new df(Cd.notFoundResult)]),Oh),new vf("destroyInternal",[],this._destroyStmts)],r=[Ge(Sd.parent.name),Ye(this._entryComponentFactories.map(function(t){return Ke(t)})),Ye(this._bootstrapComponentFactories.map(function(t){return Ke(t)}))],i=b(this._ngModuleMeta.type)+"Injector";return Pn({name:i,ctorParams:[new Yh(Sd.parent.name,Xe(Yt(_p.Injector)))],parent:Ke(Yt(_p.NgModuleInjector),[Xe(this._ngModuleMeta.type)]),parentArgs:r,builders:[{methods:n},this]})},t.prototype._getProviderValue=function(t){var e,n=this;if(r(t.useExisting))e=this._getDependency({token:t.useExisting});else if(r(t.useFactory)){var i=t.deps||t.useFactory.diDeps,o=i.map(function(t){return n._getDependency(t)});e=Ke(t.useFactory).callFn(o)}else if(r(t.useClass)){var i=t.deps||t.useClass.diDeps,o=i.map(function(t){return n._getDependency(t)});e=Ke(t.useClass).instantiate(o,Xe(t.useClass))}else e=Kn(t.useValue);return e},t.prototype._createProviderProperty=function(t,e,n,r,i){var o,s;if(r?(o=Ye(n),s=new Th(Oh)):(o=n[0],s=n[0].type),s||(s=Oh),i)this.fields.push(new mf(t,s)),this._createStmts.push(of.prop(t).set(o).toStmt());else{var a="_"+t;this.fields.push(new mf(a,s));var u=[new bf(of.prop(a).isBlank(),[of.prop(a).set(o).toStmt()]),new df(of.prop(a))];this.getters.push(new gf(t,u,s))}return of.prop(t)},t.prototype._getDependency=function(t){var e=null;if(t.isValue&&(e=tn(t.value)),t.isSkipSelf||(!t.token||S(t.token)!==Qt(_p.Injector)&&S(t.token)!==Qt(_p.ComponentFactoryResolver)||(e=of),e||(e=this._instances.get(S(t.token)))),!e){var n=[on(t.token)];t.isOptional&&n.push(af),e=Sd.parent.callMethod("get",n)}return e},t}(),Sd=function(){function t(){}return t.parent=of.prop("parent"),t}(),Cd=function(){function t(){}return t.token=Ge("token"),t.notFoundResult=Ge("notFoundResult"),t}(),xd=/'|\\|\n|\r|\$/g,Td=/^[$A-Z_][0-9A-Z_$]*$/i,Pd=Ge("error"),Od=Ge("stack"),Ad=function(){function t(t){this.indent=t,this.parts=[]}return t}(),Md=function(){function t(t,e){this._exportedVars=t,this._indent=e,this._classes=[],this._lines=[new Ad(e)]}return t.createRoot=function(e){return new t(e,0)},Object.defineProperty(t.prototype,"_currentLine",{get:function(){return this._lines[this._lines.length-1]},enumerable:!0,configurable:!0}),t.prototype.isExportedVar=function(t){return-1!==this._exportedVars.indexOf(t)},t.prototype.println=function(t){void 0===t&&(t=""),this.print(t,!0)},t.prototype.lineIsEmpty=function(){return 0===this._currentLine.parts.length},t.prototype.print=function(t,e){void 0===e&&(e=!1),t.length>0&&this._currentLine.parts.push(t),e&&this._lines.push(new Ad(this._indent))},t.prototype.removeEmptyLastLine=function(){this.lineIsEmpty()&&this._lines.pop()},t.prototype.incIndent=function(){this._indent++,this._currentLine.indent=this._indent},t.prototype.decIndent=function(){this._indent--,this._currentLine.indent=this._indent},t.prototype.pushClass=function(t){this._classes.push(t)},t.prototype.popClass=function(){return this._classes.pop()},Object.defineProperty(t.prototype,"currentClass",{get:function(){return this._classes.length>0?this._classes[this._classes.length-1]:null},enumerable:!0,configurable:!0}),t.prototype.toSource=function(){var t=this._lines;return 0===t[t.length-1].parts.length&&(t=t.slice(0,t.length-1)),t.map(function(t){return t.parts.length>0?Qn(t.indent)+t.parts.join(""):""}).join("\n")},t}(),Rd=function(){function t(t){this._escapeDollarInStrings=t}return t.prototype.visitExpressionStmt=function(t,e){return t.expr.visitExpression(this,e),e.println(";"),null},t.prototype.visitReturnStmt=function(t,e){return e.print("return "),t.value.visitExpression(this,e),e.println(";"),null},t.prototype.visitCastExpr=function(){},t.prototype.visitDeclareClassStmt=function(){},t.prototype.visitIfStmt=function(t,e){e.print("if ("),t.condition.visitExpression(this,e),e.print(") {");var n=r(t.falseCase)&&t.falseCase.length>0;return t.trueCase.length<=1&&!n?(e.print(" "),this.visitAllStatements(t.trueCase,e),e.removeEmptyLastLine(),e.print(" ")):(e.println(),e.incIndent(),this.visitAllStatements(t.trueCase,e),e.decIndent(),n&&(e.println("} else {"),e.incIndent(),this.visitAllStatements(t.falseCase,e),e.decIndent())),e.println("}"),null},t.prototype.visitTryCatchStmt=function(){},t.prototype.visitThrowStmt=function(t,e){return e.print("throw "),t.error.visitExpression(this,e),e.println(";"),null},t.prototype.visitCommentStmt=function(t,e){var n=t.comment.split("\n");return n.forEach(function(t){e.println("// "+t)}),null},t.prototype.visitDeclareVarStmt=function(){},t.prototype.visitWriteVarExpr=function(t,e){var n=e.lineIsEmpty(); -},t}(),ky=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},Ny=function(t){function e(e,n){t.call(this),this._viewExpr=e,this._view=n}return ky(e,t),e.prototype._isThis=function(t){return t instanceof Lh&&t.builtin===jh.This},e.prototype.visitReadVarExpr=function(t){return this._isThis(t)?this._viewExpr:t},e.prototype.visitReadPropExpr=function(e,n){return this._isThis(e.receiver)&&(this._view.fields.some(function(t){return t.name==e.name})||this._view.getters.some(function(t){return t.name==e.name}))?this._viewExpr.cast(this._view.classType).prop(e.name):t.prototype.visitReadPropExpr.call(this,e,n)},e}(Sf),Iy=function(){function t(t,e){this.view=t,this.values=e}return t}(),Dy=function(){function t(t,e,n,r){this.meta=t,this.queryList=e,this.ownerDirectiveExpression=n,this.view=r,this._values=new Iy(r,[])}return t.prototype.addValue=function(t,e){for(var n=e,r=[];n&&n!==this.view;){var i=n.declarationElement;r.unshift(i),n=i.view}var o=ir(this.queryList,e,this.view),s=this._values;r.forEach(function(t){var e=s.values.length>0?s.values[s.values.length-1]:null;if(e instanceof Iy&&e.view===t.embeddedView)s=e;else{var n=new Iy(t.embeddedView,[]);s.values.push(n),s=n}}),s.values.push(t),r.length>0&&e.dirtyParentQueriesMethod.addStmt(o.callMethod("setDirty",[]).toStmt())},t.prototype._isStatic=function(){return!this._values.values.some(function(t){return t instanceof Iy})},t.prototype.generateStatements=function(t,e){var n=ur(this._values),r=[this.queryList.callMethod("reset",[Ye(n)]).toStmt()];if(this.ownerDirectiveExpression){var i=this.meta.first?this.queryList.prop("first"):this.queryList;r.push(this.ownerDirectiveExpression.prop(this.meta.propertyName).set(i).toStmt())}this.meta.first||r.push(this.queryList.callMethod("notifyOnChanges",[]).toStmt()),this.meta.first&&this._isStatic()?t.addStmts(r):e.addStmt(new bf(this.queryList.prop("dirty"),r))},t}(),jy=function(){function t(){}return t.fromValue=function(t){return un(_p.ViewType,t)},t}(),Ly=function(){function t(){}return t.fromValue=function(t){return un(_p.ViewEncapsulation,t)},t}(),Vy=function(){function t(){}return t.fromValue=function(t){return un(_p.ChangeDetectorStatus,t)},t}(),Fy=function(){function t(){}return t.viewUtils=Ge("viewUtils"),t.parentView=Ge("parentView"),t.parentIndex=Ge("parentIndex"),t.parentElement=Ge("parentElement"),t}(),Uy=function(){function t(){}return t.renderer=of.prop("renderer"),t.viewUtils=of.prop("viewUtils"),t}(),By=function(){function t(){}return t.token=Ge("token"),t.requestNodeIndex=Ge("requestNodeIndex"),t.notFoundResult=Ge("notFoundResult"),t}(),Hy=function(){function t(){}return t.throwOnChange=Ge("throwOnChange"),t.changes=Ge("changes"),t.changed=Ge("changed"),t}(),qy=function(){function t(t,e,n){this.comp=t,this.name=e,this.placeholder=n}return t}(),zy=function(){function t(t,e){this.comp=t,this.placeholder=e}return t}(),Wy=function(){function t(t,e,n){this.dir=t,this.name=e,this.placeholder=n}return t}(),Gy=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},Ky=function(){function t(t,e,n,r,i){this.parent=t,this.view=e,this.nodeIndex=n,this.renderNode=r,this.sourceAst=i}return t.prototype.isNull=function(){return!this.renderNode},t.prototype.isRootElement=function(){return this.view!=this.parent.view},t}(),Xy=function(t){function e(e,n,r,i,o,s,a,u,c,p,l){var h=this;t.call(this,e,n,r,i,o),this.component=s,this._directives=a,this._resolvedProvidersArray=u,this.hasViewContainer=c,this.hasEmbeddedView=p,this.compViewExpr=null,this.instances=new Map,this.directiveWrapperInstance=new Map,this._queryCount=0,this._queries=new Map,this.contentNodesByNgContentIndex=null,this.referenceTokens={},l.forEach(function(t){return h.referenceTokens[t.name]=t.value}),this.elementRef=Ke(Yt(_p.ElementRef)).instantiate([this.renderNode]),this.instances.set(Qt(_p.ElementRef),this.elementRef),this.instances.set(Qt(_p.Injector),of.callMethod("injector",[tn(this.nodeIndex)])),this.instances.set(Qt(_p.Renderer),of.prop("renderer")),(this.hasViewContainer||this.hasEmbeddedView)&&this._createViewContainer(),this.component&&this._createComponentFactoryResolver()}return Gy(e,t),e.createNull=function(){return new e(null,null,null,null,null,null,[],[],!1,!1,[])},e.prototype._createViewContainer=function(){var t="_vc_"+this.nodeIndex,e=this.isRootElement()?null:this.parent.nodeIndex;this.view.fields.push(new mf(t,Xe(Yt(_p.ViewContainer)),[cf.Private]));var n=of.prop(t).set(Ke(Yt(_p.ViewContainer)).instantiate([tn(this.nodeIndex),tn(e),of,this.renderNode])).toStmt();this.view.createMethod.addStmt(n),this.viewContainer=of.prop(t),this.instances.set(Qt(_p.ViewContainer),this.viewContainer),this.view.viewContainers.push(this.viewContainer)},e.prototype._createComponentFactoryResolver=function(){var t=this,e=this.component.entryComponents.map(function(e){var n={reference:null};return t.view.targetDependencies.push(new zy(e,n)),n});if(e&&0!==e.length){var n=Ke(Yt(_p.CodegenComponentFactoryResolver)).instantiate([Ye(e.map(function(t){return Ke(t)})),or(this.view,Zt(_p.ComponentFactoryResolver),!1)]),r={token:Zt(_p.ComponentFactoryResolver),useValue:n};this._resolvedProvidersArray.unshift(new Qi(r.token,!1,!0,[r],Yi.PrivateService,[],this.sourceAst.sourceSpan))}},e.prototype.setComponentView=function(t){this.compViewExpr=t,this.contentNodesByNgContentIndex=new Array(this.component.template.ngContentSelectors.length);for(var e=0;e<this.contentNodesByNgContentIndex.length;e++)this.contentNodesByNgContentIndex[e]=[]},e.prototype.setEmbeddedView=function(t){if(this.embeddedView=t,r(t)){var e=Ke(Yt(_p.TemplateRef_)).instantiate([of,tn(this.nodeIndex),this.renderNode]),n={token:Zt(_p.TemplateRef),useValue:e};this._resolvedProvidersArray.unshift(new Qi(n.token,!1,!0,[n],Yi.Builtin,[],this.sourceAst.sourceSpan))}},e.prototype.beforeChildren=function(){var t=this;this.hasViewContainer&&this.instances.set(Qt(_p.ViewContainerRef),this.viewContainer.prop("vcRef")),this._resolvedProviders=new Map,this._resolvedProvidersArray.forEach(function(e){return t._resolvedProviders.set(S(e.token),e)}),Array.from(this._resolvedProviders.values()).forEach(function(e){var n=e.providerType===Yi.Component||e.providerType===Yi.Directive,r=e.providers.map(function(r){if(r.useExisting)return t._getDependency(e.providerType,{token:r.useExisting});if(r.useFactory){var i=r.deps||r.useFactory.diDeps,o=i.map(function(n){return t._getDependency(e.providerType,n)});return Ke(r.useFactory).callFn(o)}if(r.useClass){var i=r.deps||r.useClass.diDeps,o=i.map(function(n){return t._getDependency(e.providerType,n)});if(n){var s={reference:null};return t.view.targetDependencies.push(new Wy(r.useClass,Yf.dirWrapperClassName(r.useClass),s)),Jf.create(s,o)}return Ke(r.useClass).instantiate(o,Xe(r.useClass))}return Kn(r.useValue)}),i="_"+E(e.token)+"_"+t.nodeIndex+"_"+t.instances.size,o=fr(i,r,e.multiProvider,e.eager,t);n?(t.directiveWrapperInstance.set(S(e.token),o),t.instances.set(S(e.token),Jf.context(o))):t.instances.set(S(e.token),o)});for(var e=function(e){var r=n._directives[e],i=n.instances.get(S($t(r.type)));r.queries.forEach(function(e){t._addQuery(e,i)})},n=this,r=0;r<this._directives.length;r++)e(r);Object.keys(this.referenceTokens).forEach(function(e){var n,r=t.referenceTokens[e];n=r?t.instances.get(S(r)):t.renderNode,t.view.locals.set(e,n)})},e.prototype.afterChildren=function(t){var e=this;Array.from(this._resolvedProviders.values()).forEach(function(n){var r=e.instances.get(S(n.token)),i=n.providerType===Yi.PrivateService?0:t;e.view.injectorGetMethod.addStmt(hr(e.nodeIndex,i,n,r))})},e.prototype.finish=function(){var t=this;Array.from(this._queries.values()).forEach(function(e){return e.forEach(function(e){return e.generateStatements(t.view.createMethod,t.view.updateContentQueriesMethod)})})},e.prototype.addContentNode=function(t,e){this.contentNodesByNgContentIndex[t].push(e)},e.prototype.getComponent=function(){return r(this.component)?this.instances.get(S($t(this.component.type))):null},e.prototype.getProviderTokens=function(){return Array.from(this._resolvedProviders.values()).map(function(t){return t.token})},e.prototype.getQueriesFor=function(t){for(var e,n=[],i=this,o=0;!i.isNull();)e=i._queries.get(S(t)),r(e)&&n.push.apply(n,e.filter(function(t){return t.meta.descendants||1>=o})),i._directives.length>0&&o++,i=i.parent;return e=this.view.componentView.viewQueries.get(S(t)),r(e)&&n.push.apply(n,e),n},e.prototype._addQuery=function(t,e){var n="_query_"+E(t.selectors[0])+"_"+this.nodeIndex+"_"+this._queryCount++,r=pr(n,this.view),i=new Dy(t,r,e,this.view);return lr(this._queries,i),i},e.prototype._getLocalDependency=function(t,e){var n=null;if(r(e.token)){if(!n&&S(e.token)===Qt(_p.ChangeDetectorRef))return t===Yi.Component?this.compViewExpr.prop("ref"):ir(of.prop("ref"),this.view,this.view.componentView);if(!n){var i=this._resolvedProviders.get(S(e.token));if(i&&(t===Yi.Directive||t===Yi.PublicService)&&i.providerType===Yi.PrivateService)return null;n=this.instances.get(S(e.token))}}return n},e.prototype._getDependency=function(t,e){var n=this,r=null;for(e.isValue&&(r=tn(e.value)),r||e.isSkipSelf||(r=this._getLocalDependency(t,e));!r&&!n.parent.isNull();)n=n.parent,r=n._getLocalDependency(Yi.PublicService,{token:e.token});return r||(r=or(this.view,e.token,e.isOptional)),r||(r=af),ir(r,this.view,n.view)},e}(Ky),Qy=function(){function t(t,e){var n=this;this.view=t,this.meta=e,this._purePipeProxyCount=0,this.instance=of.prop("_pipe_"+e.name+"_"+t.pipeCount++);var r=this.meta.type.diDeps.map(function(e){return S(e.token)===Qt(_p.ChangeDetectorRef)?ir(of.prop("ref"),n.view,n.view.componentView):or(t,e.token,!1)});this.view.fields.push(new mf(this.instance.name,Xe(this.meta.type))),this.view.createMethod.resetDebugInfo(null,null),this.view.createMethod.addStmt(of.prop(this.instance.name).set(Ke(this.meta.type).instantiate(r)).toStmt())}return t.call=function(e,n,r){var i,o=e.componentView,s=dr(o,n);return s.pure?(i=o.purePipes.get(n),i||(i=new t(o,s),o.purePipes.set(n,i),o.pipes.push(i))):(i=new t(e,s),e.pipes.push(i)),i._call(e,r)},Object.defineProperty(t.prototype,"pure",{get:function(){return this.meta.pure},enumerable:!0,configurable:!0}),t.prototype._call=function(t,e){if(this.meta.pure){var n=of.prop(this.instance.name+"_"+this._purePipeProxyCount++),r=ir(this.instance,t,this.view);return an(r.prop("transform").callMethod(Bh.Bind,[r]),e.length,n,{fields:t.fields,ctorStmts:t.createMethod}),Ke(Yt(_p.castByValue)).callFn([n,r.prop("transform")]).callFn(e)}return ir(this.instance,t,this.view).callMethod("transform",e)},t}(),Yy={};Yy.Node=0,Yy.ViewContainer=1,Yy.NgContent=2,Yy[Yy.Node]="Node",Yy[Yy.ViewContainer]="ViewContainer",Yy[Yy.NgContent]="NgContent";var $y=function(){function t(t,e,n){this.type=t,this.expr=e,this.ngContentIndex=n}return t}(),Zy=function(){function t(t,e,n,r,i,o,s,a,u){var c=this;this.component=t,this.genConfig=e,this.pipeMetas=n,this.styles=r,this.animations=i,this.viewIndex=o,this.declarationElement=s,this.templateVariableBindings=a,this.targetDependencies=u,this.viewChildren=[],this.nodes=[],this.rootNodes=[],this.lastRenderNode=af,this.viewContainers=[],this.methods=[],this.ctorStmts=[],this.fields=[],this.getters=[],this.disposables=[],this.purePipes=new Map,this.pipes=[],this.locals=new Map,this.literalArrayCount=0,this.literalMapCount=0,this.pipeCount=0,this.createMethod=new Ry(this),this.animationBindingsMethod=new Ry(this),this.injectorGetMethod=new Ry(this),this.updateContentQueriesMethod=new Ry(this),this.dirtyParentQueriesMethod=new Ry(this),this.updateViewQueriesMethod=new Ry(this),this.detectChangesInInputsMethod=new Ry(this),this.detectChangesRenderPropertiesMethod=new Ry(this),this.afterContentLifecycleCallbacksMethod=new Ry(this),this.afterViewLifecycleCallbacksMethod=new Ry(this),this.destroyMethod=new Ry(this),this.detachMethod=new Ry(this),this.viewType=yr(t,o),this.className=sr(t,o),this.classType=Qe(Ge(this.className)),this.classExpr=Ge(this.className),this.componentView=this.viewType===go.COMPONENT||this.viewType===go.HOST?this:this.declarationElement.view.componentView,this.componentContext=ir(of.prop("context"),this,this.componentView);var p=new Map;if(this.viewType===go.COMPONENT){var l=of.prop("context");this.component.viewQueries.forEach(function(t,e){var n="_viewQuery_"+E(t.selectors[0])+"_"+e,r=pr(n,c),i=new Dy(t,r,l,c);lr(p,i)})}this.viewQueries=p,a.forEach(function(t){c.locals.set(t[1],of.prop("context").prop(t[0]))}),this.declarationElement.isNull()||this.declarationElement.setEmbeddedView(this)}return t.prototype.callPipe=function(t,e,n){return Qy.call(this,t,[e].concat(n))},t.prototype.getLocal=function(t){if(t==Af.event.name)return Af.event;for(var e=this,n=e.locals.get(t);!n&&r(e.declarationElement.view);)e=e.declarationElement.view,n=e.locals.get(t);return r(n)?ir(n,this,e):null},t.prototype.finish=function(){var t=this;Array.from(this.viewQueries.values()).forEach(function(e){return e.forEach(function(e){return e.generateStatements(t.createMethod,t.updateViewQueriesMethod)})})},t}(),Jy=of.prop("numberOfChecks").identical(new Wh(0)),tm=(Ze(Hy.throwOnChange),function(){function t(t,e){this.query=t,this.read=t.meta.read||e}return t}()),em=function(){function t(t,e){this.view=t,this._schemaRegistry=e,this._nodeIndex=0}return t.prototype.visitBoundText=function(t){var e=this.view.nodes[this._nodeIndex++];return Pr(t,e,this.view),null},t.prototype.visitText=function(){return this._nodeIndex++,null},t.prototype.visitNgContent=function(){return null},t.prototype.visitElement=function(t){var e=this,r=this.view.nodes[this._nodeIndex++];Rr(r);var i=mr(t.outputs,t.directives,r,!0);return Or(t.inputs,t.outputs,i,r),t.directives.forEach(function(n,i){var o=r.directiveWrapperInstance.get(n.directive.type.reference);Mr(n,o,i,r),Ar(n,o,r,t.name,e._schemaRegistry)}),n(this,t.children,r),t.directives.forEach(function(t){var e=r.instances.get(t.directive.type.reference),n=r.directiveWrapperInstance.get(t.directive.type.reference);Er(t.directive,e,r),Sr(t.directive,e,r),Cr(t,n,r)}),t.providers.forEach(function(t){var e=r.instances.get(S(t.token));xr(t,e,r)}),null},t.prototype.visitEmbeddedTemplate=function(t){var e=this.view.nodes[this._nodeIndex++];return Rr(e),mr(t.outputs,t.directives,e,!1),t.directives.forEach(function(t,n){var r=e.instances.get(t.directive.type.reference),i=e.directiveWrapperInstance.get(t.directive.type.reference);Mr(t,i,n,e),Er(t.directive,r,e),Sr(t.directive,r,e),Cr(t,i,e)}),t.providers.forEach(function(t){var n=e.instances.get(S(t.token));xr(t,n,e)}),kr(e.embeddedView,t.children,this._schemaRegistry),null},t.prototype.visitAttr=function(){return null},t.prototype.visitDirective=function(){return null},t.prototype.visitEvent=function(){return null},t.prototype.visitReference=function(){return null},t.prototype.visitVariable=function(){return null},t.prototype.visitDirectiveProperty=function(){return null},t.prototype.visitElementProperty=function(){return null},t}(),nm="$implicit",rm="class",im="style",om="ng-container",sm=Ge("parentRenderNode"),am=Ge("rootSelector"),um=function(){function t(t,e){this.view=t,this.targetDependencies=e,this.nestedViewCount=0}return t.prototype._isRootNode=function(t){return t.view!==this.view},t.prototype._addRootNodeAndProject=function(t){var e=Dr(t),n=e.parent,i=e.sourceAst.ngContentIndex,o=t instanceof Xy&&t.hasViewContainer?t.viewContainer:null;this._isRootNode(n)?this.view.viewType!==go.COMPONENT&&this.view.rootNodes.push(new $y(o?Yy.ViewContainer:Yy.Node,o||t.renderNode)):r(n.component)&&r(i)&&n.addContentNode(i,new $y(o?Yy.ViewContainer:Yy.Node,o||t.renderNode))},t.prototype._getParentRenderNode=function(t){return t=jr(t),this._isRootNode(t)?this.view.viewType===go.COMPONENT?sm:af:r(t.component)&&t.component.template.encapsulation!==e.ViewEncapsulation.Native?af:t.renderNode},t.prototype.getOrCreateLastRenderNode=function(){var t=this.view;if(0===t.rootNodes.length||t.rootNodes[t.rootNodes.length-1].type!==Yy.Node){var e="_el_"+t.nodes.length;t.fields.push(new mf(e,Xe(t.genConfig.renderTypes.renderElement))),t.createMethod.addStmt(of.prop(e).set(Uy.renderer.callMethod("createTemplateAnchor",[af,af])).toStmt()),t.rootNodes.push(new $y(Yy.Node,of.prop(e)))}return t.rootNodes[t.rootNodes.length-1].expr},t.prototype.visitBoundText=function(t,e){return this._visitText(t,"",e)},t.prototype.visitText=function(t,e){return this._visitText(t,t.value,e)},t.prototype._visitText=function(t,e,n){var r="_text_"+this.view.nodes.length;this.view.fields.push(new mf(r,Xe(this.view.genConfig.renderTypes.renderText)));var i=of.prop(r),o=new Ky(n,this.view,this.view.nodes.length,i,t),s=of.prop(r).set(Uy.renderer.callMethod("createText",[this._getParentRenderNode(n),tn(e),this.view.createMethod.resetDebugInfoExpr(this.view.nodes.length,t)])).toStmt();return this.view.nodes.push(o),this.view.createMethod.addStmt(s),this._addRootNodeAndProject(o),i},t.prototype.visitNgContent=function(t,e){this.view.createMethod.resetDebugInfo(null,t);var n=this._getParentRenderNode(e);return n!==af?this.view.createMethod.addStmt(of.callMethod("projectNodes",[n,tn(t.index)]).toStmt()):this._isRootNode(e)?this.view.viewType!==go.COMPONENT&&this.view.rootNodes.push(new $y(Yy.NgContent,null,t.index)):r(e.component)&&r(t.ngContentIndex)&&e.addContentNode(t.ngContentIndex,new $y(Yy.NgContent,null,t.index)),null},t.prototype.visitElement=function(t,e){var i,o=this.view.nodes.length,s=this.view.createMethod.resetDebugInfoExpr(o,t),a=t.directives.map(function(t){return t.directive}),u=a.find(function(t){return t.isComponent});if(t.name===om)i=Uy.renderer.callMethod("createTemplateAnchor",[this._getParentRenderNode(e),s]);else{var c=Fr(t.attrs),p=sn(Vr(c,a).map(function(t){return tn(t)}));i=0===o&&this.view.viewType===go.HOST?Ke(Yt(_p.selectOrCreateRenderHostElement)).callFn([Uy.renderer,tn(t.name),p,am,s]):Ke(Yt(_p.createRenderElement)).callFn([Uy.renderer,this._getParentRenderNode(e),tn(t.name),p,s])}var l="_el_"+o;this.view.fields.push(new mf(l,Xe(this.view.genConfig.renderTypes.renderElement))),this.view.createMethod.addStmt(of.prop(l).set(i).toStmt());var h=of.prop(l),f=new Xy(e,this.view,o,h,t,u,a,t.providers,t.hasViewContainer,!1,t.references);this.view.nodes.push(f);var d=null;if(r(u)){var y={reference:null};this.targetDependencies.push(new qy(u.type,sr(u,0),y)),d=of.prop("compView_"+o),this.view.fields.push(new mf(d.name,Xe(Yt(_p.AppView),[Xe(u.type)]))),this.view.viewChildren.push(d),f.setComponentView(d),this.view.createMethod.addStmt(d.set(Ke(y).instantiate([Uy.viewUtils,of,tn(o),h])).toStmt())}return f.beforeChildren(),this._addRootNodeAndProject(f),n(this,t.children,f),f.afterChildren(this.view.nodes.length-o-1),r(d)&&this.view.createMethod.addStmt(d.callMethod("create",[f.getComponent()]).toStmt()),null},t.prototype.visitEmbeddedTemplate=function(t,e){var n=this.view.nodes.length,r="_anchor_"+n;this.view.fields.push(new mf(r,Xe(this.view.genConfig.renderTypes.renderComment))),this.view.createMethod.addStmt(of.prop(r).set(Uy.renderer.callMethod("createTemplateAnchor",[this._getParentRenderNode(e),this.view.createMethod.resetDebugInfoExpr(n,t)])).toStmt());var i=of.prop(r),o=t.variables.map(function(t){return[t.value.length>0?t.value:nm,t.name]}),s=t.directives.map(function(t){return t.directive}),a=new Xy(e,this.view,n,i,t,null,s,t.providers,t.hasViewContainer,!0,t.references);this.view.nodes.push(a),this.nestedViewCount++;var u=new Zy(this.view.component,this.view.genConfig,this.view.pipeMetas,af,this.view.animations,this.view.viewIndex+this.nestedViewCount,a,o,this.targetDependencies);return this.nestedViewCount+=Nr(u,t.children,this.targetDependencies),a.beforeChildren(),this._addRootNodeAndProject(a),a.afterChildren(0),null},t.prototype.visitAttr=function(){return null},t.prototype.visitDirective=function(){return null},t.prototype.visitEvent=function(){return null},t.prototype.visitReference=function(){return null},t.prototype.visitVariable=function(){return null},t.prototype.visitDirectiveProperty=function(){return null},t.prototype.visitElementProperty=function(){return null},t}(),cm=this&&this.__decorate||function(t,e,n,r){var i,o=arguments.length,s=3>o?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,r);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(3>o?i(s):o>3?i(e,n,s):i(e,n))||s);return o>3&&s&&Object.defineProperty(e,n,s),s},pm=this&&this.__metadata||function(t,e){return"object"==typeof Reflect&&"function"==typeof Reflect.metadata?Reflect.metadata(t,e):void 0},lm=function(){function t(t,e,n){this.statements=t,this.viewClassVar=e,this.dependencies=n}return t}(),hm=function(){function t(t,e){this._genConfig=t,this._schemaRegistry=e}return t.prototype.compileComponent=function(t,e,n,r,i){var o=[],s=new Zy(t,this._genConfig,r,n,i,0,Xy.createNull(),[],o),a=[];return Nr(s,e,o),kr(s,e,this._schemaRegistry),Ir(s,a),new lm(a,s.classExpr.name,o)},t=cm([M(),pm("design:paramtypes",[kl,Mp])],t)}(),fm=function(){function t(t,e,n){this.name=t,this.statements=e,this.fnExp=n}return t}(),dm=function(){function t(){}return t.prototype.compile=function(t,e){return e.map(function(e){var n=t+"_"+e.name,r=new Mm(e.name,n);return r.build(e)})},t}(),ym=Ge("element"),mm=Ge("defaultStateStyles"),vm=Ge("view"),gm=vm.prop("animationContext"),_m=vm.prop("renderer"),bm=Ge("currentState"),wm=Ge("nextState"),Em=Ge("player"),Sm=Ge("totalTime"),Cm=Ge("startStateStyles"),xm=Ge("endStateStyles"),Tm=Ge("collectedStyles"),Pm=Ge("previousPlayers"),Om=$e([]),Am=Ye([]),Mm=function(){function t(t,e){this.animationName=t,this._fnVarName=e+"_factory",this._statesMapVarName=e+"_states",this._statesMapVar=Ge(this._statesMapVarName)}return t.prototype.visitAnimationStyles=function(t,e){var n=[];return e.isExpectingFirstStyleStep&&(n.push(Cm),e.isExpectingFirstStyleStep=!1),t.styles.forEach(function(t){var e=Object.keys(t).map(function(e){return[e,tn(t[e])]});n.push($e(e,null,!0))}),Ke(Yt(_p.AnimationStyles)).instantiate([Ke(Yt(_p.collectAndResolveStyles)).callFn([Tm,Ye(n)])])},t.prototype.visitAnimationKeyframe=function(t,e){return Ke(Yt(_p.AnimationKeyframe)).instantiate([tn(t.offset),t.styles.visit(this,e)])},t.prototype.visitAnimationStep=function(t,e){var n=this;if(e.endStateAnimateStep===t)return this._visitEndStateAnimation(t,e);var r=t.startingStyles.visit(this,e),i=t.keyframes.map(function(t){return t.visit(n,e)});return this._callAnimateMethod(t,r,Ye(i),e)},t.prototype._visitEndStateAnimation=function(t,e){var n=this,r=t.startingStyles.visit(this,e),i=t.keyframes.map(function(t){return t.visit(n,e)}),o=Ke(Yt(_p.balanceAnimationKeyframes)).callFn([Tm,xm,Ye(i)]);return this._callAnimateMethod(t,r,o,e)},t.prototype._callAnimateMethod=function(t,e,n,r){var i=Am;return r.isExpectingFirstAnimateStep&&(i=Pm,r.isExpectingFirstAnimateStep=!1),r.totalTransitionTime+=t.duration+t.delay,_m.callMethod("animate",[ym,e,n,tn(t.duration),tn(t.delay),tn(t.easing),i])},t.prototype.visitAnimationSequence=function(t,e){var n=this,r=t.steps.map(function(t){return t.visit(n,e)});return Ke(Yt(_p.AnimationSequencePlayer)).instantiate([Ye(r)])},t.prototype.visitAnimationGroup=function(t,e){var n=this,r=t.steps.map(function(t){return t.visit(n,e)});return Ke(Yt(_p.AnimationGroupPlayer)).instantiate([Ye(r)])},t.prototype.visitAnimationStateDeclaration=function(t,e){var n={};ni(t).forEach(function(t){Object.keys(t).forEach(function(e){n[e]=t[e]})}),e.stateMap.registerState(t.stateName,n)},t.prototype.visitAnimationStateTransition=function(t,e){var n=t.animation.steps,r=n[n.length-1];ei(r)&&(e.endStateAnimateStep=r),e.totalTransitionTime=0,e.isExpectingFirstStyleStep=!0,e.isExpectingFirstAnimateStep=!0;var i=[];t.stateChanges.forEach(function(t){i.push(ti(bm,t.fromState).and(ti(wm,t.toState))),t.fromState!=Do&&e.stateMap.registerState(t.fromState),t.toState!=Do&&e.stateMap.registerState(t.toState)});var o=t.animation.visit(this,e),s=i.reduce(function(t,e){return t.or(e)}),a=Em.equals(af).and(s),u=Em.set(o).toStmt(),c=Sm.set(tn(e.totalTransitionTime)).toStmt();return new bf(a,[u,c])},t.prototype.visitAnimationEntry=function(t,e){var n=this;t.stateDeclarations.forEach(function(t){return t.visit(n,e)}),e.stateMap.registerState(jo,{});var r=[];r.push(Pm.set(gm.callMethod("getAnimationPlayers",[ym,wm.equals(tn(Lo)).conditional(af,tn(this.animationName))])).toDeclStmt()),r.push(Tm.set(Om).toDeclStmt()),r.push(Em.set(af).toDeclStmt()),r.push(Sm.set(tn(0)).toDeclStmt()),r.push(mm.set(this._statesMapVar.key(tn(jo))).toDeclStmt()),r.push(Cm.set(this._statesMapVar.key(bm)).toDeclStmt()),r.push(new bf(Cm.equals(af),[Cm.set(mm).toStmt()])),r.push(xm.set(this._statesMapVar.key(wm)).toDeclStmt()),r.push(new bf(xm.equals(af),[xm.set(mm).toStmt()]));var i=Ke(Yt(_p.renderStyles));return t.stateTransitions.forEach(function(t){return r.push(t.visit(n,e))}),r.push(new bf(Em.equals(af),[Em.set(Ke(Yt(_p.NoOpAnimationPlayer)).instantiate([])).toStmt()])),r.push(Em.callMethod("onDone",[Je([],[Em.callMethod("destroy",[]).toStmt(),i.callFn([ym,_m,Ke(Yt(_p.prepareFinalAnimationStyles)).callFn([Cm,xm])]).toStmt()])]).toStmt()),r.push(Ke(Yt(_p.AnimationSequencePlayer)).instantiate([Pm]).callMethod("destroy",[]).toStmt()),r.push(i.callFn([ym,_m,Ke(Yt(_p.clearStyles)).callFn([Cm])]).toStmt()),r.push(gm.callMethod("queueAnimation",[ym,tn(this.animationName),Em]).toStmt()),r.push(new df(Ke(Yt(_p.AnimationTransition)).instantiate([Em,bm,wm,Sm]))),Je([new Yh(vm.name,Xe(Yt(_p.AppView),[Oh])),new Yh(ym.name,Oh),new Yh(bm.name,Oh),new Yh(wm.name,Oh)],r,Xe(Yt(_p.AnimationTransition)))},t.prototype.build=function(t){var e=new Rm,n=t.visit(this,e).toDeclStmt(this._fnVarName),i=Ge(this._fnVarName),o=[];Object.keys(e.stateMap.states).forEach(function(t){var n=e.stateMap.states[t],i=Om;if(r(n)){var s=[];Object.keys(n).forEach(function(t){s.push([t,tn(n[t])])}),i=$e(s,null,!0)}o.push([t,i])});var s=this._statesMapVar.set($e(o,null,!0)).toDeclStmt(),a=[s,n];return new fm(this.animationName,a,i)},t}(),Rm=function(){function t(){this.stateMap=new km,this.endStateAnimateStep=null,this.isExpectingFirstStyleStep=!1,this.isExpectingFirstAnimateStep=!1,this.totalTransitionTime=0}return t}(),km=function(){function t(){this._states={}}return Object.defineProperty(t.prototype,"states",{get:function(){return this._states},enumerable:!0,configurable:!0}),t.prototype.registerState=function(t,e){void 0===e&&(e=null);var n=this._states[t];n||(this._states[t]=e)},t}(),Nm=function(){function t(t,e,n){this.srcFileUrl=t,this.genFileUrl=e,this.source=n}return t}(),Im=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},Dm=/(\.ts|\.d\.ts|\.js|\.jsx|\.tsx)$/,jm=function(t){function e(e){t.call(this),this.host=e,this.symbols=[],this.indexBySymbol=new Map,this.processedSummaryBySymbol=new Map,this.processedSummaries=[]}return Im(e,t),e.prototype.addOrMergeSummary=function(t){var e=t.metadata;e&&"class"===e.__symbolic&&(e={__symbolic:"class",statics:e.statics});var n=this.processedSummaryBySymbol.get(t.symbol);n||(n=this.processValue({symbol:t.symbol}),this.processedSummaries.push(n),this.processedSummaryBySymbol.set(t.symbol,n)),null==n.metadata&&null!=e&&(n.metadata=this.processValue(e)),null==n.type&&null!=t.type&&(n.type=this.processValue(t.type))},e.prototype.serialize=function(){var t=this;return JSON.stringify({summaries:this.processedSummaries,symbols:this.symbols.map(function(e,n){return{__symbol:n,name:e.name,filePath:t.host.getOutputFileName(e.filePath)}})})},e.prototype.processValue=function(t){return g(t,this,null)},e.prototype.visitOther=function(t){if(t instanceof Ji){var e=this.indexBySymbol.get(t);return null==e&&(e=this.indexBySymbol.size,this.indexBySymbol.set(t,e),this.symbols.push(t)),{__symbol:e}}},e}(as),Lm=function(t){function e(e){t.call(this),this.symbolCache=e}return Im(e,t),e.prototype.deserialize=function(t){var e=this,n=JSON.parse(t);return this.symbols=n.symbols.map(function(t){return e.symbolCache.get(t.filePath,t.name)}),g(n.summaries,this,null)},e.prototype.visitStringMap=function(e,n){return"__symbol"in e?this.symbols[e.__symbol]:t.prototype.visitStringMap.call(this,e,n)},e}(as),Vm=function(){function t(t,e,n,r,i,o,s,a,u,c,p,l,h){this._host=t,this._metadataResolver=e,this._templateParser=n,this._styleCompiler=r,this._viewCompiler=i,this._dirWrapperCompiler=o,this._ngModuleCompiler=s,this._outputEmitter=a,this._summaryResolver=u,this._localeId=c,this._translationFormat=p,this._animationParser=l,this._symbolResolver=h,this._animationCompiler=new dm}return t.prototype.clearCache=function(){this._metadataResolver.clearCache()},t.prototype.compileAll=function(t){var e=this,n=mi(this._symbolResolver,t,this._host),r=di(n,this._host,this._metadataResolver),i=r.ngModuleByPipeOrDirective,o=r.files,s=r.ngModules;return Promise.all(s.map(function(t){return e._metadataResolver.loadNgModuleDirectiveAndPipeMetadata(t.type.reference,!1)})).then(function(){var t=o.map(function(t){return e._compileSrcFile(t.srcUrl,i,t.directives,t.pipes,t.ngModules,t.injectables)});return io.flatten(t)})},t.prototype._compileSrcFile=function(t,e,n,r,i,o){var s=this,a=hi(t)[1],u=[],c=[],p=[];if(p.push(this._createSummary(t,n,r,i,o)),c.push.apply(c,i.map(function(t){return s._compileModule(t,u)})),c.push.apply(c,n.map(function(t){return s._compileDirectiveWrapper(t,u)})),n.forEach(function(n){var r=s._metadataResolver.getDirectiveMetadata(n);if(!r.isComponent)return Promise.resolve(null);var i=e.get(n);if(!i)throw new Error("Internal Error: cannot determine the module for component "+b(r.type)+"!");li(r);var o=s._styleCompiler.compileComponent(r);o.externalStylesheets.forEach(function(e){p.push(s._codgenStyles(t,e,a))}),c.push(s._compileComponentFactory(r,i,a,u),s._compileComponent(r,i,i.transitiveModule.directives,o.componentStylesheet,a,u))}),u.length>0){var l=this._codegenSourceModule(t,ui(t),u,c);p.unshift(l)}return p},t.prototype._createSummary=function(t,e,n,r,i){var o=this,s=this._symbolResolver.getSymbolsOf(t).map(function(t){return o._symbolResolver.resolveSymbol(t)}),a=r.map(function(t){return o._metadataResolver.getNgModuleSummary(t)}).concat(e.map(function(t){return o._metadataResolver.getDirectiveSummary(t)}),n.map(function(t){return o._metadataResolver.getPipeSummary(t)}),i.map(function(t){return o._metadataResolver.getInjectableSummary(t)})),u=ri(this._host,this._summaryResolver,this._symbolResolver,s,a);return new Nm(t,oi(t),u)},t.prototype._compileModule=function(t,e){var n=this,r=this._metadataResolver.getNgModuleMetadata(t),i=[];this._localeId&&i.push({token:Zt(_p.LOCALE_ID),useValue:this._localeId}),this._translationFormat&&i.push({token:Zt(_p.TRANSLATIONS_FORMAT),useValue:this._translationFormat});var o=this._ngModuleCompiler.compile(r,i);return o.dependencies.forEach(function(t){t.placeholder.reference=n._symbolResolver.getStaticSymbol(ui(w(t.comp)),ci(t.comp))}),e.push.apply(e,o.statements),o.ngModuleFactoryVar},t.prototype._compileDirectiveWrapper=function(t,e){var n=this._metadataResolver.getDirectiveMetadata(t),r=this._dirWrapperCompiler.compile(n);return e.push.apply(e,r.statements),r.dirWrapperClassVar},t.prototype._compileComponentFactory=function(t,e,n,r){var i=C(this._symbolResolver.getStaticSymbol(w(t.type),b(t.type)+"_Host"),t),o=this._compileComponent(i,e,[t.type],null,n,r),s=ci(t.type);return r.push(Ge(s).set(Ke(Yt(_p.ComponentFactory),[Xe(t.type)]).instantiate([tn(t.selector),Ge(o),Ke(t.type)],Xe(Yt(_p.ComponentFactory),[Xe(t.type)],[wh.Const]))).toDeclStmt(null,[cf.Final])),s},t.prototype._compileComponent=function(t,e,n,r,i,o){var s=this,a=this._animationParser.parseComponent(t),u=n.map(function(t){ -return s._metadataResolver.getDirectiveSummary(t.reference)}),c=e.transitiveModule.pipes.map(function(t){return s._metadataResolver.getPipeSummary(t.reference)}),p=this._templateParser.parse(t,t.template.template,u,c,e.schemas,b(t.type)),l=r?Ge(r.stylesVar):Ye([]),h=this._animationCompiler.compile(b(t.type),a),f=this._viewCompiler.compileComponent(t,p,l,c,h);return r&&o.push.apply(o,ai(this._symbolResolver,r,i)),h.forEach(function(t){return o.push.apply(o,t.statements)}),o.push.apply(o,si(this._symbolResolver,f)),f.viewClassVar},t.prototype._codgenStyles=function(t,e,n){return ai(this._symbolResolver,e,n),this._codegenSourceModule(t,pi(e.meta.moduleUrl,e.isShimmed,n),e.statements,[e.stylesVar])},t.prototype._codegenSourceModule=function(t,e,n,r){return new Nm(t,e,this._outputEmitter.emitStatements(e,n,r))},t}(),Fm=function(){function t(t){this.staticDelegate=t,this.dynamicDelegate=new Ao}return t.install=function(e){Po.updateCapabilities(new t(e))},t.prototype.isReflectionEnabled=function(){return!0},t.prototype.factory=function(t){return this.dynamicDelegate.factory(t)},t.prototype.hasLifecycleHook=function(t,e){return gi(t)?this.staticDelegate.hasLifecycleHook(t,e):this.dynamicDelegate.hasLifecycleHook(t,e)},t.prototype.parameters=function(t){return gi(t)?this.staticDelegate.parameters(t):this.dynamicDelegate.parameters(t)},t.prototype.annotations=function(t){return gi(t)?this.staticDelegate.annotations(t):this.dynamicDelegate.annotations(t)},t.prototype.propMetadata=function(t){return gi(t)?this.staticDelegate.propMetadata(t):this.dynamicDelegate.propMetadata(t)},t.prototype.getter=function(t){return this.dynamicDelegate.getter(t)},t.prototype.setter=function(t){return this.dynamicDelegate.setter(t)},t.prototype.method=function(t){return this.dynamicDelegate.method(t)},t.prototype.importUri=function(t){return this.staticDelegate.importUri(t)},t.prototype.resolveIdentifier=function(t,e){return this.staticDelegate.resolveIdentifier(t,e)},t.prototype.resolveEnum=function(t,e){return gi(t)?this.staticDelegate.resolveEnum(t,e):null},t}(),Um=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},Bm={coreDecorators:"@angular/core/src/metadata",diDecorators:"@angular/core/src/di/metadata",diMetadata:"@angular/core/src/di/metadata",diOpaqueToken:"@angular/core/src/di/opaque_token",animationMetadata:"@angular/core/src/animation/metadata",provider:"@angular/core/src/di/provider"},Hm=/^\$.*\$$/,qm=function(){function t(t,e,n,r){var i=this;void 0===e&&(e=[]),void 0===n&&(n=[]),this.symbolResolver=t,this.errorRecorder=r,this.annotationCache=new Map,this.propertyCache=new Map,this.parameterCache=new Map,this.methodCache=new Map,this.conversionMap=new Map,this.initializeConversionMap(),e.forEach(function(t){return i._registerDecoratorOrConstructor(i.getStaticSymbol(t.filePath,t.name),t.ctor)}),n.forEach(function(t){return i._registerFunction(i.getStaticSymbol(t.filePath,t.name),t.fn)})}return t.prototype.importUri=function(t){var e=this.findSymbolDeclaration(t);return e?e.filePath:null},t.prototype.resolveIdentifier=function(t,e){return this.findDeclaration(e,t)},t.prototype.findDeclaration=function(t,e,n){return this.findSymbolDeclaration(this.symbolResolver.getSymbolByModule(t,e,n))},t.prototype.findSymbolDeclaration=function(t){var e=this.symbolResolver.resolveSymbol(t);return e&&e.metadata instanceof Ji?this.findSymbolDeclaration(e.metadata):t},t.prototype.resolveEnum=function(t,e){var n=t;return this.getStaticSymbol(n.filePath,n.name,[e])},t.prototype.annotations=function(t){var e=this.annotationCache.get(t);if(!e){e=[];var n=this.getTypeMetadata(t);if(n["extends"]){var r=this.annotations(this.simplify(t,n["extends"]));e.push.apply(e,r)}if(n.decorators){var i=this.simplify(t,n.decorators);e.push.apply(e,i)}this.annotationCache.set(t,e.filter(function(t){return!!t}))}return e},t.prototype.propMetadata=function(t){var e=this,n=this.propertyCache.get(t);if(!n){var r=this.getTypeMetadata(t);if(n={},r["extends"]){var i=this.propMetadata(this.simplify(t,r["extends"]));Object.keys(i).forEach(function(t){n[t]=i[t]})}var o=r.members||{};Object.keys(o).forEach(function(r){var i=o[r],s=i.find(function(t){return"property"==t.__symbolic||"method"==t.__symbolic}),a=[];n[r]&&a.push.apply(a,n[r]),n[r]=a,s&&s.decorators&&a.push.apply(a,e.simplify(t,s.decorators))}),this.propertyCache.set(t,n)}return n},t.prototype.parameters=function(t){if(!(t instanceof Ji))return this.reportError(new Error("parameters received "+JSON.stringify(t)+" which is not a StaticSymbol"),t),[];try{var e=this.parameterCache.get(t);if(!e){var n=this.getTypeMetadata(t),r=n?n.members:null,i=r?r.__ctor__:null;if(i){var o=i.find(function(t){return"constructor"==t.__symbolic}),s=this.simplify(t,o.parameters||[]),a=this.simplify(t,o.parameterDecorators||[]);e=[],s.forEach(function(t,n){var r=[];t&&r.push(t);var i=a?a[n]:null;i&&r.push.apply(r,i),e.push(r)})}else n["extends"]&&(e=this.parameters(this.simplify(t,n["extends"])));e||(e=[]),this.parameterCache.set(t,e)}return e}catch(u){throw console.error("Failed on type "+JSON.stringify(t)+" with error "+u),u}},t.prototype._methodNames=function(t){var e=this.methodCache.get(t);if(!e){var n=this.getTypeMetadata(t);if(e={},n["extends"]){var r=this._methodNames(this.simplify(t,n["extends"]));Object.keys(r).forEach(function(t){e[t]=r[t]})}var i=n.members||{};Object.keys(i).forEach(function(t){var n=i[t],r=n.some(function(t){return"method"==t.__symbolic});e[t]=e[t]||r}),this.methodCache.set(t,e)}return e},t.prototype.hasLifecycleHook=function(t,e){t instanceof Ji||this.reportError(new Error("hasLifecycleHook received "+JSON.stringify(t)+" which is not a StaticSymbol"),t);try{return!!this._methodNames(t)[e]}catch(n){throw console.error("Failed on type "+JSON.stringify(t)+" with error "+n),n}},t.prototype._registerDecoratorOrConstructor=function(t,e){this.conversionMap.set(t,function(t,n){return new(e.bind.apply(e,[void 0].concat(n)))})},t.prototype._registerFunction=function(t,e){this.conversionMap.set(t,function(t,n){return e.apply(void 0,n)})},t.prototype.initializeConversionMap=function(){{var t=Bm.coreDecorators,n=Bm.diDecorators,r=Bm.diMetadata,i=Bm.diOpaqueToken,o=Bm.animationMetadata;Bm.provider}this.opaqueToken=this.findDeclaration(i,"OpaqueToken"),this._registerDecoratorOrConstructor(this.findDeclaration(n,"Host"),e.Host),this._registerDecoratorOrConstructor(this.findDeclaration(n,"Injectable"),e.Injectable),this._registerDecoratorOrConstructor(this.findDeclaration(n,"Self"),e.Self),this._registerDecoratorOrConstructor(this.findDeclaration(n,"SkipSelf"),e.SkipSelf),this._registerDecoratorOrConstructor(this.findDeclaration(n,"Inject"),e.Inject),this._registerDecoratorOrConstructor(this.findDeclaration(n,"Optional"),e.Optional),this._registerDecoratorOrConstructor(this.findDeclaration(t,"Attribute"),e.Attribute),this._registerDecoratorOrConstructor(this.findDeclaration(t,"ContentChild"),e.ContentChild),this._registerDecoratorOrConstructor(this.findDeclaration(t,"ContentChildren"),e.ContentChildren),this._registerDecoratorOrConstructor(this.findDeclaration(t,"ViewChild"),e.ViewChild),this._registerDecoratorOrConstructor(this.findDeclaration(t,"ViewChildren"),e.ViewChildren),this._registerDecoratorOrConstructor(this.findDeclaration(t,"Input"),e.Input),this._registerDecoratorOrConstructor(this.findDeclaration(t,"Output"),e.Output),this._registerDecoratorOrConstructor(this.findDeclaration(t,"Pipe"),e.Pipe),this._registerDecoratorOrConstructor(this.findDeclaration(t,"HostBinding"),e.HostBinding),this._registerDecoratorOrConstructor(this.findDeclaration(t,"HostListener"),e.HostListener),this._registerDecoratorOrConstructor(this.findDeclaration(t,"Directive"),e.Directive),this._registerDecoratorOrConstructor(this.findDeclaration(t,"Component"),e.Component),this._registerDecoratorOrConstructor(this.findDeclaration(t,"NgModule"),e.NgModule),this._registerDecoratorOrConstructor(this.findDeclaration(r,"Host"),e.Host),this._registerDecoratorOrConstructor(this.findDeclaration(r,"Self"),e.Self),this._registerDecoratorOrConstructor(this.findDeclaration(r,"SkipSelf"),e.SkipSelf),this._registerDecoratorOrConstructor(this.findDeclaration(r,"Optional"),e.Optional),this._registerFunction(this.findDeclaration(o,"trigger"),e.trigger),this._registerFunction(this.findDeclaration(o,"state"),e.state),this._registerFunction(this.findDeclaration(o,"transition"),e.transition),this._registerFunction(this.findDeclaration(o,"style"),e.style),this._registerFunction(this.findDeclaration(o,"animate"),e.animate),this._registerFunction(this.findDeclaration(o,"keyframes"),e.keyframes),this._registerFunction(this.findDeclaration(o,"sequence"),e.sequence),this._registerFunction(this.findDeclaration(o,"group"),e.group)},t.prototype.getStaticSymbol=function(t,e,n){return this.symbolResolver.getStaticSymbol(t,e,n)},t.prototype.reportError=function(t,e,n){if(!this.errorRecorder)throw t;this.errorRecorder(t,e&&e.filePath||n)},t.prototype.simplify=function(t,e){function n(t,e,r){function a(t){var e=i.symbolResolver.resolveSymbol(t);return e?e.metadata:null}function u(e,i,a){if(i&&"function"==i.__symbolic){if(s.get(e))throw new Error("Recursion not supported");s.set(e,!0);try{var u=i.value;if(u&&(0!=r||"error"!=u.__symbolic)){var p=i.parameters,l=i.defaults;a=a.map(function(e){return n(t,e,r+1)}),l&&l.length>a.length&&a.push.apply(a,l.slice(a.length).map(function(t){return c(t)}));for(var h=zm.build(),f=0;f<p.length;f++)h.define(p[f],a[f]);var d,y=o;try{o=h.done(),d=n(e,u,r+1)}finally{o=y}return d}}finally{s["delete"](e)}}return 0===r?{__symbolic:"ignore"}:c({__symbolic:"error",message:"Function call not supported",context:e})}function c(e){if(Ei(e))return e;if(e instanceof Array){for(var s=[],p=0,l=e;p<l.length;p++){var h=l[p];if(h&&"spread"===h.__symbolic){var f=c(h.expression);if(Array.isArray(f)){for(var d=0,y=f;d<y.length;d++){var m=y[d];s.push(m)}continue}}var v=c(h);Si(v)||s.push(v)}return s}if(e instanceof Ji){if(e===i.opaqueToken||i.conversionMap.has(e))return e;var g=e,_=a(g);return _?n(g,_,r+1):g}if(e){if(e.__symbolic){var g=void 0;switch(e.__symbolic){case"binop":var b=c(e.left);if(Si(b))return b;var w=c(e.right);if(Si(w))return w;switch(e.operator){case"&&":return b&&w;case"||":return b||w;case"|":return b|w;case"^":return b^w;case"&":return b&w;case"==":return b==w;case"!=":return b!=w;case"===":return b===w;case"!==":return b!==w;case"<":return w>b;case">":return b>w;case"<=":return w>=b;case">=":return b>=w;case"<<":return b<<w;case">>":return b>>w;case"+":return b+w;case"-":return b-w;case"*":return b*w;case"/":return b/w;case"%":return b%w}return null;case"if":var E=c(e.condition);return c(E?e.thenExpression:e.elseExpression);case"pre":var S=c(e.operand);if(Si(S))return S;switch(e.operator){case"+":return S;case"-":return-S;case"!":return!S;case"~":return~S}return null;case"index":var C=c(e.expression),x=c(e.index);return C&&Ei(x)?C[x]:null;case"select":var T=e.member,P=t,O=c(e.expression);if(O instanceof Ji){var A=O.members.concat(T);P=i.getStaticSymbol(O.filePath,O.name,A);var _=a(P);return _?n(P,_,r+1):P}return O&&Ei(T)?n(P,O[T],r+1):null;case"reference":var M=e.name,R=o.resolve(M);if(R!=zm.missing)return R;break;case"class":return t;case"function":return t;case"new":case"call":if(g=n(t,e.expression,r+1),g instanceof Ji){if(g===i.opaqueToken)return t;var k=e.arguments||[],N=i.conversionMap.get(g);if(N){var I=k.map(function(e){return n(t,e,r+1)});return N(t,I)}var D=a(g);return u(g,D,k)}break;case"error":var j=bi(e);if(e.line)throw j=j+" (position "+(e.line+1)+":"+(e.character+1)+" in the original .ts file)",Ci(j,t.filePath,e.line,e.character);throw new Error(j)}return null}return wi(e,function(t){return c(t)})}return null}try{return c(e)}catch(p){var l=t.members.length?"."+t.members.join("."):"",h=p.message+", resolving symbol "+t.name+l+" in "+t.filePath;if(p.fileName)throw Ci(h,p.fileName,p.line,p.column);throw new cs(h)}}var r=this,i=this,o=zm.empty,s=new Map,a=function(t,e,i){try{return n(t,e,i)}catch(o){r.reportError(o,t)}},u=this.errorRecorder?a(t,e,0):n(t,e,0);return Si(u)?void 0:u},t.prototype.getTypeMetadata=function(t){var e=this.symbolResolver.resolveSymbol(t);return e&&e.metadata?e.metadata:{__symbolic:"class"}},t}(),zm=function(){function t(){}return t.prototype.resolve=function(){},t.build=function(){var e=new Map;return{define:function(t,n){return e.set(t,n),this},done:function(){return e.size>0?new Wm(e):t.empty}}},t.missing={},t.empty={resolve:function(){return t.missing}},t}(),Wm=function(t){function e(e){t.call(this),this.bindings=e}return Um(e,t),e.prototype.resolve=function(t){return this.bindings.has(t)?this.bindings.get(t):zm.missing},e}(zm),Gm=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},Km=function(){function t(t,e){this.symbol=t,this.metadata=e}return t}(),Xm=3,Qm=function(){function t(t,e,n,r){this.host=t,this.staticSymbolCache=e,this.summaryResolver=n,this.errorRecorder=r,this.metadataCache=new Map,this.resolvedSymbols=new Map,this.resolvedFilePaths=new Set}return t.prototype.resolveSymbol=function(t){if(t.members.length>0)return this._resolveSymbolMembers(t);var e=this._resolveSymbolFromSummary(t);return e||(this._createSymbolsOf(t.filePath),e=this.resolvedSymbols.get(t)),e},t.prototype._resolveSymbolMembers=function(t){var e=t.members,n=this.resolveSymbol(this.getStaticSymbol(t.filePath,t.name));if(!n)return null;var r=n.metadata;if(r instanceof Ji)return new Km(t,this.getStaticSymbol(r.filePath,r.name,e));if(!r||"class"!==r.__symbolic){for(var i=r,o=0;o<e.length&&i;o++)i=i[e[o]];return new Km(t,i)}return r.statics&&1===e.length?new Km(t,r.statics[e[0]]):null},t.prototype._resolveSymbolFromSummary=function(t){var e=this.summaryResolver.resolveSummary(t);return e?new Km(t,e.metadata):null},t.prototype.getStaticSymbol=function(t,e,n){return this.staticSymbolCache.get(t,e,n)},t.prototype.getSymbolsOf=function(t){var e=new Set(this.summaryResolver.getSymbolsOf(t));return this._createSymbolsOf(t),this.resolvedSymbols.forEach(function(n){n.symbol.filePath===t&&e.add(n.symbol)}),Array.from(e)},t.prototype._createSymbolsOf=function(t){var e=this;if(!this.resolvedFilePaths.has(t)){this.resolvedFilePaths.add(t);var n=[],r=this.getModuleMetadata(t);if(r.metadata&&Object.keys(r.metadata).forEach(function(i){var o=r.metadata[i];n.push(e.createResolvedSymbol(e.getStaticSymbol(t,i),o))}),r.exports)for(var i=function(r){if(r["export"])r["export"].forEach(function(i){var o;o="string"==typeof i?i:i.as;var s=o;"string"!=typeof i&&(s=i.name);var a=e.resolveModule(r.from,t);if(a){var u=e.getStaticSymbol(a,s),c=e.getStaticSymbol(t,o);n.push(new Km(c,u))}});else{var i=o.resolveModule(r.from,t);if(i){var s=o.getSymbolsOf(i);s.forEach(function(r){var i=e.getStaticSymbol(t,r.name);n.push(new Km(i,r))})}}},o=this,s=0,a=r.exports;s<a.length;s++){var u=a[s];i(u)}n.forEach(function(t){return e.resolvedSymbols.set(t.symbol,t)})}},t.prototype.createResolvedSymbol=function(t,e){var n=this,r=function(e){function r(){e.apply(this,arguments)}return Gm(r,e),r.prototype.visitStringMap=function(r,i){var o=r.__symbolic;if("function"===o){var s=i.length;i.push.apply(i,r.parameters||[]);var a=e.prototype.visitStringMap.call(this,r,i);return i.length=s,a}if("reference"===o){var u=r.module,c=r.name;if(!c)return null;var p=void 0;if(u){if(p=n.resolveModule(u,t.filePath),!p)return{__symbolic:"error",message:"Could not resolve "+u+" relative to "+t.filePath+"."}}else{var l=i.indexOf(c)>=0;l||(p=t.filePath)}return p?n.getStaticSymbol(p,c):{__symbolic:"reference",name:c}}return e.prototype.visitStringMap.call(this,r,i)},r}(as),i=g(e,new r,[]);return new Km(t,i)},t.prototype.reportError=function(t,e,n){if(!this.errorRecorder)throw t;this.errorRecorder(t,e&&e.filePath||n)},t.prototype.getModuleMetadata=function(t){var e=this.metadataCache.get(t);if(!e){var n=this.host.getMetadataFor(t);if(n){var r=-1;n.forEach(function(t){t.version>r&&(r=t.version,e=t)})}if(e||(e={__symbolic:"module",version:Xm,module:t,metadata:{}}),e.version!=Xm){var i=2==e.version?"Unsupported metadata version "+e.version+" for module "+t+". This module should be compiled with a newer version of ngc":"Metadata version mismatch for module "+t+", found version "+e.version+", expected "+Xm;this.reportError(new Error(i),null)}this.metadataCache.set(t,e)}return e},t.prototype.getSymbolByModule=function(t,e,n){var r=this.resolveModule(t,n);return r?this.getStaticSymbol(r,e):(this.reportError(new Error("Could not resolve module "+t+(n?" relative to $ {\n containingFile\n } ":"")),null),this.getStaticSymbol("ERROR:"+t,e))},t.prototype.resolveModule=function(t,e){try{return this.host.moduleNameToFileName(t,e)}catch(n){console.error("Could not resolve module '"+t+"' relative to file "+e),this.reportError(new n,null,e)}},t}(),Ym=function(){function t(t,e){this.host=t,this.staticSymbolCache=e,this.summaryCache=new Map,this.loadedFilePaths=new Set}return t.prototype._assertNoMembers=function(t){if(t.members.length)throw new Error("Internal state: StaticSymbols in summaries can't have members! "+JSON.stringify(t))},t.prototype.resolveSummary=function(t){this._assertNoMembers(t);var e=this.summaryCache.get(t);return e||(this._loadSummaryFile(t.filePath),e=this.summaryCache.get(t)),e},t.prototype.getSymbolsOf=function(t){return this._loadSummaryFile(t),Array.from(this.summaryCache.keys()).filter(function(e){return e.filePath===t})},t.prototype._loadSummaryFile=function(t){var e=this;if(!this.loadedFilePaths.has(t)&&(this.loadedFilePaths.add(t),!this.host.isSourceFile(t))){var n=oi(t),r=void 0;try{r=this.host.loadSummary(n)}catch(i){throw console.error("Error loading summary file "+n),i}if(r){var o=ii(this.staticSymbolCache,r);o.forEach(function(t){e.summaryCache.set(t.symbol,t)})}}},t}(),$m=function(){function t(t,e,n,r){this.parent=t,this.instance=e,this.className=n,this.vars=r}return t.prototype.createChildWihtLocalVars=function(){return new t(this,this.instance,this.className,new Map)},t}(),Zm=function(){function t(t){this.value=t}return t}(),Jm=function(){function t(){}return t.prototype.debugAst=function(t){return Yn(t)},t.prototype.visitDeclareVarStmt=function(t,e){return e.vars.set(t.name,t.value.visitExpression(this,e)),null},t.prototype.visitWriteVarExpr=function(t,e){for(var n=t.value.visitExpression(this,e),r=e;null!=r;){if(r.vars.has(t.name))return r.vars.set(t.name,n),n;r=r.parent}throw new Error("Not declared variable "+t.name)},t.prototype.visitReadVarExpr=function(t,e){var n=t.name;if(r(t.builtin))switch(t.builtin){case jh.Super:return e.instance.__proto__;case jh.This:return e.instance;case jh.CatchError:n=tv;break;case jh.CatchStack:n=ev;break;default:throw new Error("Unknown builtin variable "+t.builtin)}for(var i=e;null!=i;){if(i.vars.has(n))return i.vars.get(n);i=i.parent}throw new Error("Not declared variable "+n)},t.prototype.visitWriteKeyExpr=function(t,e){var n=t.receiver.visitExpression(this,e),r=t.index.visitExpression(this,e),i=t.value.visitExpression(this,e);return n[r]=i,i},t.prototype.visitWritePropExpr=function(t,e){var n=t.receiver.visitExpression(this,e),r=t.value.visitExpression(this,e);return n[t.name]=r,r},t.prototype.visitInvokeMethodExpr=function(t,e){var n,i=t.receiver.visitExpression(this,e),o=this.visitAllExpressions(t.args,e);if(r(t.builtin))switch(t.builtin){case Bh.ConcatArray:n=i.concat.apply(i,o);break;case Bh.SubscribeObservable:n=i.subscribe({next:o[0]});break;case Bh.Bind:n=i.bind.apply(i,o);break;default:throw new Error("Unknown builtin method "+t.builtin)}else n=i[t.name].apply(i,o);return n},t.prototype.visitInvokeFunctionExpr=function(t,e){var n=this.visitAllExpressions(t.args,e),r=t.fn;if(r instanceof Lh&&r.builtin===jh.Super)return e.instance.constructor.prototype.constructor.apply(e.instance,n),null;var i=t.fn.visitExpression(this,e);return i.apply(null,n)},t.prototype.visitReturnStmt=function(t,e){return new Zm(t.value.visitExpression(this,e))},t.prototype.visitDeclareClassStmt=function(t,e){var n=Oi(t,e,this);return e.vars.set(t.name,n),null},t.prototype.visitExpressionStmt=function(t,e){return t.expr.visitExpression(this,e)},t.prototype.visitIfStmt=function(t,e){var n=t.condition.visitExpression(this,e);return n?this.visitAllStatements(t.trueCase,e):r(t.falseCase)?this.visitAllStatements(t.falseCase,e):null},t.prototype.visitTryCatchStmt=function(t,e){try{return this.visitAllStatements(t.bodyStmts,e)}catch(n){var r=e.createChildWihtLocalVars();return r.vars.set(tv,n),r.vars.set(ev,n.stack),this.visitAllStatements(t.catchStmts,r)}},t.prototype.visitThrowStmt=function(t,e){throw t.error.visitExpression(this,e)},t.prototype.visitCommentStmt=function(){return null},t.prototype.visitInstantiateExpr=function(t,e){var n=this.visitAllExpressions(t.args,e),r=t.classExpr.visitExpression(this,e);return new(r.bind.apply(r,[void 0].concat(n)))},t.prototype.visitLiteralExpr=function(t){return t.value},t.prototype.visitExternalExpr=function(t){return t.value.reference},t.prototype.visitConditionalExpr=function(t,e){return t.condition.visitExpression(this,e)?t.trueCase.visitExpression(this,e):r(t.falseCase)?t.falseCase.visitExpression(this,e):null},t.prototype.visitNotExpr=function(t,e){return!t.condition.visitExpression(this,e)},t.prototype.visitCastExpr=function(t,e){return t.value.visitExpression(this,e)},t.prototype.visitFunctionExpr=function(t,e){var n=t.params.map(function(t){return t.name});return Ai(n,t.statements,e,this)},t.prototype.visitDeclareFunctionStmt=function(t,e){var n=t.params.map(function(t){return t.name});return e.vars.set(t.name,Ai(n,t.statements,e,this)),null},t.prototype.visitBinaryOperatorExpr=function(t,e){var n=this,r=function(){return t.lhs.visitExpression(n,e)},i=function(){return t.rhs.visitExpression(n,e)};switch(t.operator){case Ih.Equals:return r()==i();case Ih.Identical:return r()===i();case Ih.NotEquals:return r()!=i();case Ih.NotIdentical:return r()!==i();case Ih.And:return r()&&i();case Ih.Or:return r()||i();case Ih.Plus:return r()+i();case Ih.Minus:return r()-i();case Ih.Divide:return r()/i();case Ih.Multiply:return r()*i();case Ih.Modulo:return r()%i();case Ih.Lower:return r()<i();case Ih.LowerEquals:return r()<=i();case Ih.Bigger:return r()>i();case Ih.BiggerEquals:return r()>=i();default:throw new Error("Unknown operator "+t.operator)}},t.prototype.visitReadPropExpr=function(t,e){var n,r=t.receiver.visitExpression(this,e);return n=r[t.name]},t.prototype.visitReadKeyExpr=function(t,e){var n=t.receiver.visitExpression(this,e),r=t.index.visitExpression(this,e);return n[r]},t.prototype.visitLiteralArrayExpr=function(t,e){return this.visitAllExpressions(t.entries,e)},t.prototype.visitLiteralMapExpr=function(t,e){var n=this,r={};return t.entries.forEach(function(t){return r[t.key]=t.value.visitExpression(n,e)}),r},t.prototype.visitAllExpressions=function(t,e){var n=this;return t.map(function(t){return t.visitExpression(n,e)})},t.prototype.visitAllStatements=function(t,e){for(var n=0;n<t.length;n++){var r=t[n],i=r.visitStatement(this,e);if(i instanceof Zm)return i}return null},t}(),tv="error",ev="stack",nv=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},rv=function(t){function e(){t.call(this,!1)}return nv(e,t),e.prototype.visitDeclareClassStmt=function(t,e){var n=this;return e.pushClass(t),this._visitClassConstructor(t,e),r(t.parent)&&(e.print(t.name+".prototype = Object.create("),t.parent.visitExpression(this,e),e.println(".prototype);")),t.getters.forEach(function(r){return n._visitClassGetter(t,r,e)}),t.methods.forEach(function(r){return n._visitClassMethod(t,r,e)}),e.popClass(),null},e.prototype._visitClassConstructor=function(t,e){e.print("function "+t.name+"("),r(t.constructorMethod)&&this._visitParams(t.constructorMethod.params,e),e.println(") {"),e.incIndent(),r(t.constructorMethod)&&t.constructorMethod.body.length>0&&(e.println("var self = this;"),this.visitAllStatements(t.constructorMethod.body,e)),e.decIndent(),e.println("}")},e.prototype._visitClassGetter=function(t,e,n){n.println("Object.defineProperty("+t.name+".prototype, '"+e.name+"', { get: function() {"),n.incIndent(),e.body.length>0&&(n.println("var self = this;"),this.visitAllStatements(e.body,n)),n.decIndent(),n.println("}});")},e.prototype._visitClassMethod=function(t,e,n){n.print(t.name+".prototype."+e.name+" = function("),this._visitParams(e.params,n),n.println(") {"),n.incIndent(),e.body.length>0&&(n.println("var self = this;"),this.visitAllStatements(e.body,n)),n.decIndent(),n.println("};")},e.prototype.visitReadVarExpr=function(e,n){if(e.builtin===jh.This)n.print("self");else{if(e.builtin===jh.Super)throw new Error("'super' needs to be handled at a parent ast node, not at the variable level!");t.prototype.visitReadVarExpr.call(this,e,n)}return null},e.prototype.visitDeclareVarStmt=function(t,e){return e.print("var "+t.name+" = "),t.value.visitExpression(this,e),e.println(";"),null},e.prototype.visitCastExpr=function(t,e){return t.value.visitExpression(this,e),null},e.prototype.visitInvokeFunctionExpr=function(e,n){var r=e.fn;return r instanceof Lh&&r.builtin===jh.Super?(n.currentClass.parent.visitExpression(this,n),n.print(".call(this"),e.args.length>0&&(n.print(", "),this.visitAllExpressions(e.args,n,",")),n.print(")")):t.prototype.visitInvokeFunctionExpr.call(this,e,n),null},e.prototype.visitFunctionExpr=function(t,e){return e.print("function("),this._visitParams(t.params,e),e.println(") {"),e.incIndent(),this.visitAllStatements(t.statements,e),e.decIndent(),e.print("}"),null},e.prototype.visitDeclareFunctionStmt=function(t,e){return e.print("function "+t.name+"("),this._visitParams(t.params,e),e.println(") {"),e.incIndent(),this.visitAllStatements(t.statements,e),e.decIndent(),e.println("}"),null},e.prototype.visitTryCatchStmt=function(t,e){e.println("try {"),e.incIndent(),this.visitAllStatements(t.bodyStmts,e),e.decIndent(),e.println("} catch ("+Pd.name+") {"),e.incIndent();var n=[Od.set(Pd.prop("stack")).toDeclStmt(null,[cf.Final])].concat(t.catchStmts);return this.visitAllStatements(n,e),e.decIndent(),e.println("}"),null},e.prototype._visitParams=function(t,e){this.visitAllObjects(function(t){return e.print(t.name)},t,e,",")},e.prototype.getBuiltinMethodName=function(t){var e;switch(t){case Bh.ConcatArray:e="concat";break;case Bh.SubscribeObservable:e="subscribe";break;case Bh.Bind:e="bind";break;default:throw new Error("Unknown builtin method: "+t)}return e},e}(Rd),iv=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},ov=function(t){function e(){t.apply(this,arguments),this._evalArgNames=[],this._evalArgValues=[]}return iv(e,t),e.prototype.getArgs=function(){for(var t={},e=0;e<this._evalArgNames.length;e++)t[this._evalArgNames[e]]=this._evalArgValues[e];return t},e.prototype.visitExternalExpr=function(t,e){var n=t.value.reference,r=this._evalArgValues.indexOf(n);if(-1===r){r=this._evalArgValues.length,this._evalArgValues.push(n);var i=b(t.value)||"val";this._evalArgNames.push("jit_"+i+r)}return e.print(this._evalArgNames[r]),null},e}(rv),sv=this&&this.__decorate||function(t,e,n,r){var i,o=arguments.length,s=3>o?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,r);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(3>o?i(s):o>3?i(e,n,s):i(e,n))||s);return o>3&&s&&Object.defineProperty(e,n,s),s},av=this&&this.__metadata||function(t,e){return"object"==typeof Reflect&&"function"==typeof Reflect.metadata?Reflect.metadata(t,e):void 0},uv=function(){function t(t,e,n,r,i,o,s,a,u){this._injector=t,this._metadataResolver=e,this._templateParser=n,this._styleCompiler=r,this._viewCompiler=i,this._ngModuleCompiler=o,this._directiveWrapperCompiler=s,this._compilerConfig=a,this._animationParser=u,this._compiledTemplateCache=new Map,this._compiledHostTemplateCache=new Map,this._compiledDirectiveWrapperCache=new Map,this._compiledNgModuleCache=new Map,this._animationCompiler=new dm}return Object.defineProperty(t.prototype,"injector",{get:function(){return this._injector},enumerable:!0,configurable:!0}),t.prototype.compileModuleSync=function(t){return this._compileModuleAndComponents(t,!0).syncResult},t.prototype.compileModuleAsync=function(t){return this._compileModuleAndComponents(t,!1).asyncResult},t.prototype.compileModuleAndAllComponentsSync=function(t){return this._compileModuleAndAllComponents(t,!0).syncResult},t.prototype.compileModuleAndAllComponentsAsync=function(t){return this._compileModuleAndAllComponents(t,!1).asyncResult},t.prototype.getNgContentSelectors=function(t){var e=this._compiledTemplateCache.get(t);if(!e)throw new Error("The component "+s(t)+" is not yet compiled!");return e.compMeta.template.ngContentSelectors},t.prototype._compileModuleAndComponents=function(t,e){var n=this,r=this._loadModules(t,e),i=function(){return n._compileComponents(t,null),n._compileModule(t)};return e?new us(i()):new us(null,r.then(i))},t.prototype._compileModuleAndAllComponents=function(t,n){var r=this,i=this._loadModules(t,n),o=function(){var n=[];return r._compileComponents(t,n),new e.ModuleWithComponentFactories(r._compileModule(t),n)};return n?new us(o()):new us(null,i.then(o))},t.prototype._loadModules=function(t,e){var n=this,r=[],i=this._metadataResolver.getNgModuleMetadata(t);return i.transitiveModule.modules.forEach(function(t){r.push(n._metadataResolver.loadNgModuleDirectiveAndPipeMetadata(t.reference,e))}),Promise.all(r)},t.prototype._compileModule=function(t){var n=this,r=this._compiledNgModuleCache.get(t);if(!r){var i=this._metadataResolver.getNgModuleMetadata(t),o=[this._metadataResolver.getProviderMetadata(new Rs(e.Compiler,{useFactory:function(){return new pv(n,i.type.reference)}}))],s=this._ngModuleCompiler.compile(i,o);s.dependencies.forEach(function(t){t.placeholder.reference=n._assertComponentKnown(t.comp.reference,!0).proxyComponentFactory}),r=this._compilerConfig.useJit?Ri("/"+b(i.type)+"/module.ngfactory.js",s.statements,s.ngModuleFactoryVar):Ti(s.statements,s.ngModuleFactoryVar),this._compiledNgModuleCache.set(i.type.reference,r)}return r},t.prototype._compileComponents=function(t,e){var n=this,r=this._metadataResolver.getNgModuleMetadata(t),i=new Map,o=new Set;r.transitiveModule.modules.forEach(function(t){var r=n._metadataResolver.getNgModuleMetadata(t.reference);r.declaredDirectives.forEach(function(t){i.set(t.reference,r);var s=n._metadataResolver.getDirectiveMetadata(t.reference);if(n._compileDirectiveWrapper(s,r),s.isComponent&&(o.add(n._createCompiledTemplate(s,r)),e)){var a=n._createCompiledHostTemplate(s.type.reference,r);o.add(a),e.push(a.proxyComponentFactory)}})}),r.transitiveModule.modules.forEach(function(t){var e=n._metadataResolver.getNgModuleMetadata(t.reference);e.declaredDirectives.forEach(function(t){var e=n._metadataResolver.getDirectiveMetadata(t.reference);e.isComponent&&e.entryComponents.forEach(function(t){var e=i.get(t.reference);o.add(n._createCompiledHostTemplate(t.reference,e))})}),e.entryComponents.forEach(function(t){var e=i.get(t.reference);o.add(n._createCompiledHostTemplate(t.reference,e))})}),o.forEach(function(t){return n._compileTemplate(t)})},t.prototype.clearCacheFor=function(t){this._compiledNgModuleCache["delete"](t),this._metadataResolver.clearCacheFor(t),this._compiledHostTemplateCache["delete"](t);var e=this._compiledTemplateCache.get(t);e&&this._compiledTemplateCache["delete"](t)},t.prototype.clearCache=function(){this._metadataResolver.clearCache(),this._compiledTemplateCache.clear(),this._compiledHostTemplateCache.clear(), -this._compiledNgModuleCache.clear()},t.prototype._createCompiledHostTemplate=function(t,e){if(!e)throw new Error("Component "+s(t)+" is not part of any NgModule or the module has not been imported into your module.");var n=this._compiledHostTemplateCache.get(t);if(!n){var r=this._metadataResolver.getDirectiveMetadata(t);ki(r);var i=function(){};i.overriddenName=b(r.type)+"_Host";var o=C(i,r);n=new cv(!0,r.selector,r.type,o,e,[r.type]),this._compiledHostTemplateCache.set(t,n)}return n},t.prototype._createCompiledTemplate=function(t,e){var n=this._compiledTemplateCache.get(t.type.reference);return n||(ki(t),n=new cv(!1,t.selector,t.type,t,e,e.transitiveModule.directives),this._compiledTemplateCache.set(t.type.reference,n)),n},t.prototype._assertComponentKnown=function(t,e){var n=e?this._compiledHostTemplateCache.get(t):this._compiledTemplateCache.get(t);if(!n)throw new Error("Illegal state: Compiled view for component "+s(t)+" (host: "+e+") does not exist!");return n},t.prototype._assertDirectiveWrapper=function(t){var e=this._compiledDirectiveWrapperCache.get(t);if(!e)throw new Error("Illegal state: Directive wrapper for "+s(t)+" has not been compiled!");return e},t.prototype._compileDirectiveWrapper=function(t,e){var n,r=this._directiveWrapperCompiler.compile(t),i=r.statements;n=this._compilerConfig.useJit?Ri("/"+b(e.type)+"/"+b(t.type)+"/wrapper.ngfactory.js",i,r.dirWrapperClassVar):Ti(i,r.dirWrapperClassVar),this._compiledDirectiveWrapperCache.set(t.type.reference,n)},t.prototype._compileTemplate=function(t){var e=this;if(!t.isCompiled){var n=t.compMeta,r=new Map,i=this._styleCompiler.compileComponent(n);i.externalStylesheets.forEach(function(t){r.set(t.meta.moduleUrl,t)}),this._resolveStylesCompileResult(i.componentStylesheet,r);var o=this._animationParser.parseComponent(n),s=t.directives.map(function(t){return e._metadataResolver.getDirectiveSummary(t.reference)}),a=t.ngModule.transitiveModule.pipes.map(function(t){return e._metadataResolver.getPipeSummary(t.reference)}),u=this._templateParser.parse(n,n.template.template,s,a,t.ngModule.schemas,b(n.type)),c=this._animationCompiler.compile(b(n.type),o),p=this._viewCompiler.compileComponent(n,u,Ge(i.componentStylesheet.stylesVar),a,c);p.dependencies.forEach(function(t){var n;if(t instanceof qy){var r=t;n=e._assertComponentKnown(r.comp.reference,!1),r.placeholder.reference=n.proxyViewClass}else if(t instanceof zy){var i=t;n=e._assertComponentKnown(i.comp.reference,!0),i.placeholder.reference=n.proxyComponentFactory}else if(t instanceof Wy){var o=t;o.placeholder.reference=e._assertDirectiveWrapper(o.dir.reference)}});var l,h=(f=i.componentStylesheet.statements).concat.apply(f,c.map(function(t){return t.statements})).concat(p.statements);l=this._compilerConfig.useJit?Ri("/"+b(t.ngModule.type)+"/"+b(t.compType)+"/"+(t.isHost?"host":"component")+".ngfactory.js",h,p.viewClassVar):Ti(h,p.viewClassVar),t.compiled(l);var f}},t.prototype._resolveStylesCompileResult=function(t,e){var n=this;t.dependencies.forEach(function(t){var r=e.get(t.moduleUrl),i=n._resolveAndEvalStylesCompileResult(r,e);t.valuePlaceholder.reference=i})},t.prototype._resolveAndEvalStylesCompileResult=function(t,e){return this._resolveStylesCompileResult(t,e),this._compilerConfig.useJit?Ri("/"+t.meta.moduleUrl+".ngstyle.js",t.statements,t.stylesVar):Ti(t.statements,t.stylesVar)},t=sv([M(),av("design:paramtypes",[e.Injector,fd,xl,Oy,hm,wd,Yf,kl,ih])],t)}(),cv=function(){function t(t,n,r,i,o,a){this.isHost=t,this.compType=r,this.compMeta=i,this.ngModule=o,this.directives=a,this._viewClass=null,this.isCompiled=!1;var u=this;this.proxyViewClass=function(){if(!u._viewClass)throw new Error("Illegal state: CompiledTemplate for "+s(u.compType)+" is not compiled yet!");return u._viewClass.apply(this,arguments)},this.proxyComponentFactory=t?new e.ComponentFactory(n,this.proxyViewClass,r.reference):null}return t.prototype.compiled=function(t){this._viewClass=t,this.proxyViewClass.prototype=t.prototype,this.isCompiled=!0},t}(),pv=function(){function t(t,e){this._delegate=t,this._ngModule=e}return Object.defineProperty(t.prototype,"_injector",{get:function(){return this._delegate.injector},enumerable:!0,configurable:!0}),t.prototype.compileModuleSync=function(t){return this._delegate.compileModuleSync(t)},t.prototype.compileModuleAsync=function(t){return this._delegate.compileModuleAsync(t)},t.prototype.compileModuleAndAllComponentsSync=function(t){return this._delegate.compileModuleAndAllComponentsSync(t)},t.prototype.compileModuleAndAllComponentsAsync=function(t){return this._delegate.compileModuleAndAllComponentsAsync(t)},t.prototype.getNgContentSelectors=function(t){return this._delegate.getNgContentSelectors(t)},t.prototype.clearCache=function(){this._delegate.clearCache()},t.prototype.clearCacheFor=function(t){this._delegate.clearCacheFor(t)},t}(),lv=function(){function t(t,e,n){this._htmlParser=t,this._implicitTags=e,this._implicitAttrs=n,this._messages=[]}return t.prototype.updateFromTemplate=function(t,e,n){var r=this._htmlParser.parse(t,e,!0,n);if(r.errors.length)return r.errors;var i=lt(r.rootNodes,n,this._implicitTags,this._implicitAttrs);if(i.errors.length)return i.errors;(o=this._messages).push.apply(o,i.messages);var o},t.prototype.getMessages=function(){return this._messages},t.prototype.write=function(t){return t.write(this._messages)},t}(),hv=function(){function t(t,e,n,r){this.host=t,this.staticSymbolResolver=e,this.messageBundle=n,this.metadataResolver=r}return t.prototype.extract=function(t){var e=this,n=mi(this.staticSymbolResolver,t,this.host),r=di(n,this.host,this.metadataResolver),i=r.files,o=r.ngModules;return Promise.all(o.map(function(t){return e.metadataResolver.loadNgModuleDirectiveAndPipeMetadata(t.type.reference,!1)})).then(function(){var t=[];if(i.forEach(function(n){var r=[];n.directives.forEach(function(t){var n=e.metadataResolver.getDirectiveMetadata(t);n&&n.isComponent&&r.push(n)}),r.forEach(function(r){var i=r.template.template,o=Ia.fromArray(r.template.interpolation);t.push.apply(t,e.messageBundle.updateFromTemplate(i,n.srcUrl,o))})}),t.length)throw new Error(t.map(function(t){return t.toString()}).join("\n"));return e.messageBundle})},t.create=function(n){var r=new dp(new lp),i=je(),o=new to,s=new Ym(n,o),a=new Qm(n,o,s),u=new qm(a);Fm.install(u);var c=new kl({genDebugInfo:!1,defaultEncapsulation:e.ViewEncapsulation.Emulated,logBindingUpdate:!1,useJit:!1}),p=new yh({get:function(t){return n.loadResource(t)}},i,r,c),l=new Gd,h=new fd(new nd(u),new _h(u),new od(u),s,l,p,u),f=new lv(r,[],{}),d=new t(n,a,f,h);return{extractor:d,staticReflector:u}},t}(),fv=this&&this.__decorate||function(t,e,n,r){var i,o=arguments.length,s=3>o?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,r);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(3>o?i(s):o>3?i(e,n,s):i(e,n))||s);return o>3&&s&&Object.defineProperty(e,n,s),s},dv=this&&this.__metadata||function(t,e){return"object"==typeof Reflect&&"function"==typeof Reflect.metadata?Reflect.metadata(t,e):void 0},yv={get:function(t){throw new Error("No ResourceLoader implementation has been provided. Can't read the url \""+t+'"')}},mv=new e.OpaqueToken("HtmlParser"),vv=[{provide:Oo,useValue:Po},{provide:co,useExisting:Oo},{provide:sh,useValue:yv},ud,To,fu,wu,{provide:mv,useClass:lp},{provide:dp,useFactory:function(t,e,n){return new dp(t,e,n)},deps:[mv,[new e.Optional,new e.Inject(e.TRANSLATIONS)],[new e.Optional,new e.Inject(e.TRANSLATIONS_FORMAT)]]},{provide:lp,useExisting:dp},xl,yh,fd,ch,Oy,hm,wd,Yf,{provide:kl,useValue:new kl},uv,{provide:e.Compiler,useExisting:uv},Gd,{provide:Mp,useExisting:Gd},ph,_h,od,nd,ih],gv=function(){function t(t){this._defaultOptions=[{useDebug:e.isDevMode(),useJit:!0,defaultEncapsulation:e.ViewEncapsulation.Emulated}].concat(t)}return t.prototype.createCompiler=function(t){void 0===t&&(t=[]);var n=Ii(this._defaultOptions.concat(t)),r=e.ReflectiveInjector.resolveAndCreate([vv,{provide:kl,useFactory:function(){return new kl({genDebugInfo:n.useDebug,useJit:n.useJit,defaultEncapsulation:n.defaultEncapsulation,logBindingUpdate:n.useDebug})},deps:[]},n.providers]);return r.get(e.Compiler)},t.ctorParameters=function(){return[{type:Array,decorators:[{type:e.Inject,args:[e.COMPILER_OPTIONS]}]}]},t=fv([M(),dv("design:paramtypes",[Array])],t)}(),_v=e.createPlatformFactory(e.platformCore,"coreDynamic",[{provide:e.COMPILER_OPTIONS,useValue:{},multi:!0},{provide:e.CompilerFactory,useClass:gv},{provide:e.PLATFORM_INITIALIZER,useValue:Ni,multi:!0}]),bv=function(){function t(){}return t.prototype.fileNameToModuleName=function(){},t}();t.VERSION=Li,t.TextAst=Vi,t.BoundTextAst=Fi,t.AttrAst=Ui,t.BoundElementPropertyAst=Bi,t.BoundEventAst=Hi,t.ReferenceAst=qi,t.VariableAst=zi,t.ElementAst=Wi,t.EmbeddedTemplateAst=Gi,t.BoundDirectivePropertyAst=Ki,t.DirectiveAst=Xi,t.ProviderAst=Qi,t.ProviderAstType=Yi,t.NgContentAst=$i,t.PropertyBindingType=Zi,t.templateVisitAll=n,t.TEMPLATE_TRANSFORMS=El,t.CompilerConfig=kl,t.RenderTypes=Nl,t.CompileAnimationEntryMetadata=hs,t.CompileAnimationStateMetadata=fs,t.CompileAnimationStateDeclarationMetadata=ds,t.CompileAnimationStateTransitionMetadata=ys,t.CompileAnimationMetadata=ms,t.CompileAnimationKeyframesSequenceMetadata=vs,t.CompileAnimationStyleMetadata=gs,t.CompileAnimationAnimateMetadata=_s,t.CompileAnimationWithStepsMetadata=bs,t.CompileAnimationSequenceMetadata=ws,t.CompileAnimationGroupMetadata=Es,t.identifierName=b,t.identifierModuleUrl=w,t.CompileSummaryKind=Cs,t.tokenName=E,t.tokenReference=S,t.CompileStylesheetMetadata=xs,t.CompileTemplateMetadata=Ts,t.CompileDirectiveMetadata=Ps,t.createHostComponentMeta=C,t.CompilePipeMetadata=Os,t.CompileNgModuleMetadata=As,t.TransitiveCompileNgModuleMetadata=Ms,t.ProviderMeta=Rs,t.createAotCompiler=xi,t.AotCompiler=Vm,t.analyzeNgModules=fi,t.analyzeAndValidateNgModules=di,t.extractProgramSymbols=mi,t.StaticReflector=qm,t.StaticAndDynamicReflectionCapabilities=Fm,t.StaticSymbol=Ji,t.StaticSymbolCache=to,t.ResolvedStaticSymbol=Km,t.StaticSymbolResolver=Qm,t.AotSummaryResolver=Ym,t.SummaryResolver=ud,t.JitCompiler=uv,t.COMPILER_PROVIDERS=vv,t.JitCompilerFactory=gv,t.platformCoreDynamic=_v,t.createUrlResolverWithoutPackagePrefix=De,t.createOfflineCompileUrlResolver=je,t.DEFAULT_PACKAGE_URL_PROVIDER=ch,t.UrlResolver=ph,t.getUrlScheme=Le,t.ResourceLoader=sh,t.DirectiveResolver=_h,t.PipeResolver=od,t.NgModuleResolver=nd,t.DEFAULT_INTERPOLATION_CONFIG=Da,t.InterpolationConfig=Ia,t.ElementSchemaRegistry=Mp,t.Extractor=hv,t.I18NHtmlParser=dp,t.MessageBundle=lv,t.Serializer=Sc,t.Xliff=Bc,t.Xmb=$c,t.Xtb=op,t.DirectiveNormalizer=yh,t.TokenType=lu,t.Lexer=fu,t.Token=du,t.EOF=yu,t.isIdentifier=B,t.isQuote=W,t.SplitInterpolation=_u,t.TemplateBindingParseResult=bu,t.Parser=wu,t._ParseAST=Eu,t.ERROR_COLLECTOR_TOKEN=hd,t.CompileMetadataResolver=fd,t.componentModuleUrl=zn,t.ParseTreeResult=Wu,t.TreeError=zu,t.HtmlParser=lp,t.NgModuleCompiler=wd,t.DirectiveWrapperCompiler=Yf,t.ImportResolver=bv,t.debugOutputAstAsTypeScript=Yn,t.TypeScriptEmitter=Id,t.ParseLocation=Cu,t.ParseSourceFile=xu,t.ParseSourceSpan=Tu,t.ParseErrorLevel=Pu,t.ParseError=Ou,t.DomElementSchemaRegistry=Gd,t.CssSelector=Zo,t.SelectorMatcher=Jo,t.SelectorListContext=ts,t.SelectorContext=es,t.StylesCompileDependency=xy,t.StylesCompileResult=Ty,t.CompiledStylesheet=Py,t.StyleCompiler=Oy,t.TemplateParseError=Sl,t.TemplateParseResult=Cl,t.TemplateParser=xl,t.splitClasses=me,t.createElementCssSelector=ve,t.removeSummaryDuplicates=_e,t.ViewCompiler=hm,t.AnimationParser=ih,t.SyntaxError=cs})},{"@angular/core":7}],7:[function(e,n,r){(function(i){!function(i,o){"object"==typeof r&&"undefined"!=typeof n?o(r,e("rxjs/symbol/observable"),e("rxjs/Subject"),e("rxjs/Observable")):"function"==typeof t&&t.amd?t(["exports","rxjs/symbol/observable","rxjs/Subject","rxjs/Observable"],o):o((i.ng=i.ng||{},i.ng.core=i.ng.core||{}),i.rxjs_symbol_observable,i.Rx,i.Rx)}(this,function(t,e,n){"use strict";function r(t){Zone.current.scheduleMicroTask("scheduleMicrotask",t)}function o(t){return t.name||typeof t}function s(t){return null!=t}function a(t){return null==t}function u(t){if("string"==typeof t)return t;if(null==t)return""+t;if(t.overriddenName)return""+t.overriddenName;if(t.name)return""+t.name;var e=t.toString(),n=e.indexOf("\n");return-1===n?e:e.substring(0,n)}function c(t,e){return t===e||"number"==typeof t&&"number"==typeof e&&isNaN(t)&&isNaN(e)}function p(t){return null!==t&&("function"==typeof t||"object"==typeof t)}function l(t){console.log(t)}function h(t){console.warn(t)}function f(){if(!fe)if(le.Symbol&&Symbol.iterator)fe=Symbol.iterator;else for(var t=Object.getOwnPropertyNames(Map.prototype),e=0;e<t.length;++e){var n=t[e];"entries"!==n&&"size"!==n&&Map.prototype[n]===Map.prototype.entries&&(fe=n)}return fe}function d(t){return!p(t)}function y(t){return"function"==typeof t&&t.hasOwnProperty("annotation")&&(t=t.annotation),t}function m(t,e){if(t===Object||t===String||t===Function||t===Number||t===Array)throw new Error("Can not use native "+u(t)+" as constructor");if("function"==typeof t)return t;if(Array.isArray(t)){var n=t,r=n.length-1,i=t[r];if("function"!=typeof i)throw new Error("Last position of Class method array must be Function in key "+e+" was '"+u(i)+"'");if(r!=i.length)throw new Error("Number of annotations ("+r+") does not match number of arguments ("+i.length+") in the function: "+u(i));for(var o=[],s=0,a=n.length-1;a>s;s++){var c=[];o.push(c);var p=n[s];if(Array.isArray(p))for(var l=0;l<p.length;l++)c.push(y(p[l]));else c.push("function"==typeof p?y(p):p)}return ye.defineMetadata("parameters",o,i),i}throw new Error("Only Function or Array is supported in Class definition for key '"+e+"' is '"+u(t)+"'")}function v(t){var e=m(t.hasOwnProperty("constructor")?t.constructor:void 0,"constructor"),n=e.prototype;if(t.hasOwnProperty("extends")){if("function"!=typeof t["extends"])throw new Error("Class definition 'extends' property must be a constructor function was: "+u(t["extends"]));e.prototype=n=Object.create(t["extends"].prototype)}for(var r in t)"extends"!==r&&"prototype"!==r&&t.hasOwnProperty(r)&&(n[r]=m(t[r],r));this&&this.annotations instanceof Array&&ye.defineMetadata("annotations",this.annotations,e);var i=e.name;return i&&"constructor"!==i||(e.overriddenName="class"+de++),e}function g(t,e,n,r){function i(t){if(!ye||!ye.getOwnMetadata)throw"reflect-metadata shim is required when using class decorators";if(this instanceof i)return o.call(this,t),this;var e=new i(t),n="function"==typeof this&&Array.isArray(this.annotations)?this.annotations:[];n.push(e);var s=function(t){var n=ye.getOwnMetadata("annotations",t)||[];return n.push(e),ye.defineMetadata("annotations",n,t),t};return s.annotations=n,s.Class=v,r&&r(s),s}void 0===r&&(r=null);var o=_([e]);return n&&(i.prototype=Object.create(n.prototype)),i.prototype.toString=function(){return"@"+t},i.annotationCls=i,i}function _(t){return function(){for(var e=this,n=[],r=0;r<arguments.length;r++)n[r-0]=arguments[r];t.forEach(function(t,r){var i=n[r];if(Array.isArray(t))e[t[0]]=void 0===i?t[1]:i;else for(var o in t)e[o]=i&&i.hasOwnProperty(o)?i[o]:t[o]})}}function b(t,e,n){function r(){function t(t,e,n){for(var r=ye.getOwnMetadata("parameters",t)||[];r.length<=n;)r.push(null);return r[n]=r[n]||[],r[n].push(o),ye.defineMetadata("parameters",r,t),t}for(var e=[],n=0;n<arguments.length;n++)e[n-0]=arguments[n];if(this instanceof r)return i.apply(this,e),this;var o=new((s=r).bind.apply(s,[void 0].concat(e)));return t.annotation=o,t;var s}var i=_(e);return n&&(r.prototype=Object.create(n.prototype)),r.prototype.toString=function(){return"@"+t},r.annotationCls=r,r}function w(t,e,n){function r(){for(var t=[],e=0;e<arguments.length;e++)t[e-0]=arguments[e];if(this instanceof r)return i.apply(this,t),this;var n=new((o=r).bind.apply(o,[void 0].concat(t)));return function(t,e){var r=ye.getOwnMetadata("propMetadata",t.constructor)||{};r[e]=r.hasOwnProperty(e)&&r[e]||[],r[e].unshift(n),ye.defineMetadata("propMetadata",r,t.constructor)};var o}var i=_(e);return n&&(r.prototype=Object.create(n.prototype)),r.prototype.toString=function(){return"@"+t},r.annotationCls=r,r}function E(t){return a(t)||t===Me.Default}function S(t){return t.__forward_ref__=S,t.toString=function(){return u(this())},t}function C(t){return"function"==typeof t&&t.hasOwnProperty("__forward_ref__")&&t.__forward_ref__===S?t():t}function x(t){for(var e=[],n=0;n<t.length;++n){if(e.indexOf(t[n])>-1)return e.push(t[n]),e;e.push(t[n])}return e}function T(t){if(t.length>1){var e=x(t.slice().reverse()),n=e.map(function(t){return u(t.token)});return" ("+n.join(" -> ")+")"}return""}function P(t){return"function"==typeof t}function O(t){return t?t.map(function(t){var e=t.type,n=e.annotationCls,r=t.args?t.args:[];return new(n.bind.apply(n,[void 0].concat(r)))}):[]}function A(t){var e=Object.getPrototypeOf(t.prototype),n=e?e.constructor:null;return n||Object}function M(t){var e,n;if(t.useClass){var r=C(t.useClass);e=On.factory(r),n=j(r)}else t.useExisting?(e=function(t){return t},n=[An.fromKey(_n.get(t.useExisting))]):t.useFactory?(e=t.useFactory,n=D(t.useFactory,t.deps)):(e=function(){return t.useValue},n=Mn);return new kn(e,n)}function R(t){return new Rn(_n.get(t.provide),[M(t)],t.multi)}function k(t){var e=I(t,[]),n=e.map(R),r=N(n,new Map);return Array.from(r.values())}function N(t,e){for(var n=0;n<t.length;n++){var r=t[n],i=e.get(r.key.id);if(i){if(r.multiProvider!==i.multiProvider)throw new gn(i,r);if(r.multiProvider)for(var o=0;o<r.resolvedFactories.length;o++)i.resolvedFactories.push(r.resolvedFactories[o]);else e.set(r.key.id,r)}else{var s=void 0;s=r.multiProvider?new Rn(r.key,r.resolvedFactories.slice(),r.multiProvider):r,e.set(r.key.id,s)}}return e}function I(t,e){return t.forEach(function(t){if(t instanceof En)e.push({provide:t,useClass:t});else if(t&&"object"==typeof t&&void 0!==t.provide)e.push(t);else{if(!(t instanceof Array))throw new yn(t);I(t,e)}}),e}function D(t,e){if(e){var n=e.map(function(t){return[t]});return e.map(function(e){return L(t,e,n)})}return j(t)}function j(t){var e=On.parameters(t);if(!e)return[];if(e.some(function(t){return null==t}))throw new mn(t,e);return e.map(function(n){return L(t,n,e)})}function L(t,e,n){var r=null,i=!1;if(!Array.isArray(e))return e instanceof me?V(e.token,i,null):V(e,i,null);for(var o=null,s=0;s<e.length;++s){var a=e[s];a instanceof En?r=a:a instanceof me?r=a.token:a instanceof ve?i=!0:(a instanceof _e||a instanceof be)&&(o=a)}if(r=C(r),null!=r)return V(r,i,o);throw new mn(t,n)}function V(t,e,n){return new An(_n.get(t),e,n)}function F(t,e){for(var n=new Array(t._providers.length),r=0;r<t._providers.length;++r)n[r]=e(t.getProviderAtIndex(r));return n}function U(t){return p(t)?Array.isArray(t)||!(t instanceof Map)&&f()in t:!1}function B(t,e,n){for(var r=t[f()](),i=e[f()]();;){var o=r.next(),s=i.next();if(o.done&&s.done)return!0;if(o.done||s.done)return!1;if(!n(o.value,s.value))return!1}}function H(t,e){if(Array.isArray(t))for(var n=0;n<t.length;n++)e(t[n]);else for(var r=t[f()](),i=void 0;!(i=r.next()).done;)e(i.value)}function q(t){return!!t&&"function"==typeof t.then}function z(t){return!(!t||!t[e.$$observable])}function W(){return""+G()+G()+G()}function G(){return String.fromCharCode(97+Math.floor(25*Math.random()))}function K(){throw new Error("Runtime compiler is not loaded")}function X(t,e,n){var r=t.previousIndex;if(null===r)return r;var i=0;return n&&r<n.length&&(i=n[r]),r+e+i}function Q(t,e){return U(t)&&U(e)?B(t,e,Q):U(t)||d(t)||U(e)||d(e)?c(t,e):!0}function Y(t,e,n,r,i){return new xr(""+Fr++,t,e,n,r,i)}function $(t,e){e.push(t)}function Z(t,e){for(var n="",r=0;2*t>r;r+=2)n=n+e[r]+tt(e[r+1]);return n+e[2*t]}function J(t,e,n,r,i,o,s,a,u,c,p,l,h,f,d,y,m,v,g,_){switch(t){case 1:return e+tt(n)+r;case 2:return e+tt(n)+r+tt(i)+o;case 3:return e+tt(n)+r+tt(i)+o+tt(s)+a;case 4:return e+tt(n)+r+tt(i)+o+tt(s)+a+tt(u)+c;case 5:return e+tt(n)+r+tt(i)+o+tt(s)+a+tt(u)+c+tt(p)+l;case 6:return e+tt(n)+r+tt(i)+o+tt(s)+a+tt(u)+c+tt(p)+l+tt(h)+f;case 7:return e+tt(n)+r+tt(i)+o+tt(s)+a+tt(u)+c+tt(p)+l+tt(h)+f+tt(d)+y;case 8:return e+tt(n)+r+tt(i)+o+tt(s)+a+tt(u)+c+tt(p)+l+tt(h)+f+tt(d)+y+tt(m)+v;case 9:return e+tt(n)+r+tt(i)+o+tt(s)+a+tt(u)+c+tt(p)+l+tt(h)+f+tt(d)+y+tt(m)+v+tt(g)+_;default:throw new Error("Does not support more than 9 expressions")}}function tt(t){return null!=t?t.toString():""}function et(t,e,n){if(t){if(!Q(e,n))throw new Dr(e,n);return!1}return!c(e,n)}function nt(t){return t}function rt(t){var e,n=mr;return function(r){return c(n,r)||(n=r,e=t(r)),e}}function it(t){var e,n=mr,r=mr;return function(i,o){return c(n,i)&&c(r,o)||(n=i,r=o,e=t(i,o)),e}}function ot(t){var e,n=mr,r=mr,i=mr;return function(o,s,a){return c(n,o)&&c(r,s)&&c(i,a)||(n=o,r=s,i=a,e=t(o,s,a)),e}}function st(t){var e,n,r,i,o;return n=r=i=o=mr,function(s,a,u,p){return c(n,s)&&c(r,a)&&c(i,u)&&c(o,p)||(n=s,r=a,i=u,o=p,e=t(s,a,u,p)),e}}function at(t){var e,n,r,i,o,s;return n=r=i=o=s=mr,function(a,u,p,l,h){return c(n,a)&&c(r,u)&&c(i,p)&&c(o,l)&&c(s,h)||(n=a,r=u,i=p,o=l,s=h,e=t(a,u,p,l,h)),e}}function ut(t){var e,n,r,i,o,s,a;return n=r=i=o=s=a=mr,function(u,p,l,h,f,d){return c(n,u)&&c(r,p)&&c(i,l)&&c(o,h)&&c(s,f)&&c(a,d)||(n=u,r=p,i=l,o=h,s=f,a=d,e=t(u,p,l,h,f,d)),e}}function ct(t){var e,n,r,i,o,s,a,u;return n=r=i=o=s=a=u=mr,function(p,l,h,f,d,y,m){return c(n,p)&&c(r,l)&&c(i,h)&&c(o,f)&&c(s,d)&&c(a,y)&&c(u,m)||(n=p,r=l,i=h,o=f,s=d,a=y,u=m,e=t(p,l,h,f,d,y,m)),e}}function pt(t){var e,n,r,i,o,s,a,u,p;return n=r=i=o=s=a=u=p=mr,function(l,h,f,d,y,m,v,g){return c(n,l)&&c(r,h)&&c(i,f)&&c(o,d)&&c(s,y)&&c(a,m)&&c(u,v)&&c(p,g)||(n=l,r=h,i=f,o=d,s=y,a=m,u=v,p=g,e=t(l,h,f,d,y,m,v,g)),e}}function lt(t){var e,n,r,i,o,s,a,u,p,l;return n=r=i=o=s=a=u=p=l=mr,function(h,f,d,y,m,v,g,_,b){return c(n,h)&&c(r,f)&&c(i,d)&&c(o,y)&&c(s,m)&&c(a,v)&&c(u,g)&&c(p,_)&&c(l,b)||(n=h,r=f,i=d,o=y,s=m,a=v,u=g,p=_,l=b,e=t(h,f,d,y,m,v,g,_,b)),e}}function ht(t){var e,n,r,i,o,s,a,u,p,l,h;return n=r=i=o=s=a=u=p=l=h=mr,function(f,d,y,m,v,g,_,b,w,E){return c(n,f)&&c(r,d)&&c(i,y)&&c(o,m)&&c(s,v)&&c(a,g)&&c(u,_)&&c(p,b)&&c(l,w)&&c(h,E)||(n=f,r=d,i=y,o=m,s=v,a=g,u=_,p=b,l=w,h=E,e=t(f,d,y,m,v,g,_,b,w,E)),e}}function ft(t,e,n){Object.keys(n).forEach(function(r){dt(t,e,r,n[r].currentValue)})}function dt(t,e,n,r){try{t.setBindingDebugInfo(e,"ng-reflect-"+yt(n),r?r.toString():null)}catch(i){t.setBindingDebugInfo(e,"ng-reflect-"+yt(n),"[ERROR] Exception while trying to serialize the value")}}function yt(t){return t.replace(Hr,function(){for(var t=[],e=0;e<arguments.length;e++)t[e-0]=arguments[e];return"-"+t[1].toLowerCase()})}function mt(t,e,n,r,i){for(var o=t.createElement(e,n,i),s=0;s<r.length;s+=2)t.setElementAttribute(o,r.get(s),r.get(s+1));return o}function vt(t,e,n,r,i){var o;if(s(r)){o=t.selectRootElement(r,i);for(var a=0;a<n.length;a+=2)t.setElementAttribute(o,n.get(a),n.get(a+1));t.setElementAttribute(o,"ng-version",en.full)}else o=mt(t,null,e,n,i);return o}function gt(t,e,n,r){for(var i=wt(n.length/2),o=0;o<n.length;o+=2){var s=n.get(o),a=n.get(o+1),u=void 0;u=a?t.renderer.listenGlobal(a,s,r.bind(t,a+":"+s)):t.renderer.listen(e,s,r.bind(t,s)),i.set(o/2,u)}return _t.bind(null,i)}function _t(t){for(var e=0;e<t.length;e++)t.get(e)()}function bt(){}function wt(t){var e;return new(e=2>=t?zr:4>=t?Wr:8>=t?Gr:16>=t?Kr:Xr)(t)}function Et(){var t=he.wtf;return t&&(Mr=t.trace)?(Rr=Mr.events,!0):!1}function St(t,e){return void 0===e&&(e=null),Rr.createScope(t,e)}function Ct(t,e){return Mr.leaveScope(t,e),e}function xt(t,e){return Mr.beginTimeRange(t,e)}function Tt(t){Mr.endTimeRange(t)}function Pt(){return null}function Ot(t){di=t}function At(){if(vi)throw new Error("Cannot enable prod mode after platform setup.");mi=!1}function Mt(){return vi=!0,mi}function Rt(t){if(kr&&!kr.destroyed)throw new Error("There can be only one platform. Destroy the previous one to create a new one.");kr=t.get(_i);var e=t.get(zn,null);return e&&e.forEach(function(t){return t()}),kr}function kt(t,e,n){void 0===n&&(n=[]);var r=new Ee("Platform: "+e);return function(e){return void 0===e&&(e=[]),Dt()||(t?t(n.concat(e).concat({provide:r,useValue:!0})):Rt(In.resolveAndCreate(n.concat(e).concat({provide:r,useValue:!0})))),Nt(r)}}function Nt(t){var e=Dt();if(!e)throw new Error("No platform exists!");if(!e.injector.get(t,null))throw new Error("A platform with a different configuration has been created. Please destroy it first.");return e}function It(){kr&&!kr.destroyed&&kr.destroy()}function Dt(){return kr&&!kr.destroyed?kr:null}function jt(t,e){try{var n=e();return q(n)?n["catch"](function(e){throw t.handleError(e),e}):n}catch(r){throw t.handleError(r),r}}function Lt(t,e){var n=Ai.get(t);if(n)throw new Error("Duplicate module registered for "+t+" - "+n.moduleType.name+" vs "+e.moduleType.name);Ai.set(t,e)}function Vt(t){var e=Ai.get(t);if(!e)throw new Error("No module with ID "+t+" loaded");return e}function Ft(t,e,n){if(!t)throw new Error("Cannot find '"+n+"' in '"+e+"'");return t}function Ut(t){return t.map(function(t){return t.nativeElement})}function Bt(t,e,n){t.childNodes.forEach(function(t){t instanceof Xi&&(e(t)&&n.push(t),Bt(t,e,n))})}function Ht(t,e,n){t instanceof Xi&&t.childNodes.forEach(function(t){e(t)&&n.push(t),t instanceof Xi&&Ht(t,e,n)})}function qt(t){return Qi.get(t)}function zt(t){Qi.set(t.nativeNode,t)}function Wt(t){Qi["delete"](t.nativeNode)}function Gt(){return On}function Kt(){return Sr}function Xt(){return Cr}function Qt(t){return t||"en-US"}function Yt(t,e){void 0===e&&(e=null);var n=e;if(!s(n)){var r={};n=new bo([r],1)}return new wo(t,n)}function $t(t){return new Co(t)}function Zt(t){return new So(t)}function Jt(t){var e,n=null;return"string"==typeof t?e=[t]:(e=Array.isArray(t)?t:[t],e.forEach(function(t){var e=t.offset;s(e)&&(n=null==n?parseFloat(e):n)})),new bo(e,n)}function te(t,e){return new mo(t,e)}function ee(t){return new _o(t)}function ne(t,e){var n=Array.isArray(e)?new So(e):e;return new vo(t,n)}function re(t,e){return new fo(t,e)}function ie(t,e,n){void 0===n&&(n=null);var r={};return Object.keys(e).forEach(function(t){var i=e[t];r[t]=i==ho?n:i.toString()}),Object.keys(t).forEach(function(t){s(r[t])||(r[t]=n)}),r}function oe(t,e,n){var r=n.length-1,i=n[0],o=ce(i.styles.styles),a={},u=!1;Object.keys(t).forEach(function(e){var n=t[e];o[e]||(o[e]=n,a[e]=n,u=!0)});var c=Vn.merge({},o),p=n[r];p.styles.styles.unshift(e);var l=ce(p.styles.styles),h={},f=!1;return Object.keys(c).forEach(function(t){s(l[t])||(h[t]=ho,f=!0)}),f&&p.styles.styles.push(h),Object.keys(l).forEach(function(t){s(o[t])||(a[t]=ho,u=!0)}),u&&i.styles.styles.push(a),ae(t,[e]),n}function se(t){var e={};return Object.keys(t).forEach(function(t){e[t]=null}),e}function ae(t,e){return e.map(function(e){var n={};return Object.keys(e).forEach(function(r){var i=e[r];i==no&&(i=t[r],s(i)||(i=ho)),t[r]=i,n[r]=i}),n})}function ue(t,e,n){Object.keys(n).forEach(function(r){e.setElementStyle(t,r,n[r])})}function ce(t){var e={};return t.forEach(function(t){Object.keys(t).forEach(function(n){e[n]=t[n]})}),e}function pe(t,e){t instanceof so||t instanceof po?t.players.forEach(function(t){return pe(t,e)}):e.push(t)}var le;le="undefined"==typeof window?"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope?self:i:window;var he=le;he.assert=function(){};var fe=null,de=0,ye=he.Reflect,me=b("Inject",[["token",void 0]]),ve=b("Optional",[]),ge=g("Injectable",[]),_e=b("Self",[]),be=b("SkipSelf",[]),we=b("Host",[]),Ee=function(){function t(t){this._desc=t}return t.prototype.toString=function(){return"Token "+this._desc},t.decorators=[{type:ge}],t.ctorParameters=function(){return[null]},t}(),Se=new Ee("AnalyzeForEntryComponents"),Ce=b("Attribute",[["attributeName",void 0]]),xe=function(){function t(){}return t}(),Te=w("ContentChildren",[["selector",void 0],{first:!1,isViewQuery:!1,descendants:!1,read:void 0}],xe),Pe=w("ContentChild",[["selector",void 0],{first:!0,isViewQuery:!1,descendants:!0,read:void 0}],xe),Oe=w("ViewChildren",[["selector",void 0],{first:!1,isViewQuery:!0,descendants:!0,read:void 0}],xe),Ae=w("ViewChild",[["selector",void 0],{first:!0,isViewQuery:!0,descendants:!0,read:void 0}],xe),Me={};Me.OnPush=0,Me.Default=1,Me[Me.OnPush]="OnPush",Me[Me.Default]="Default";var Re={};Re.CheckOnce=0,Re.Checked=1,Re.CheckAlways=2,Re.Detached=3,Re.Errored=4,Re.Destroyed=5,Re[Re.CheckOnce]="CheckOnce",Re[Re.Checked]="Checked",Re[Re.CheckAlways]="CheckAlways",Re[Re.Detached]="Detached",Re[Re.Errored]="Errored",Re[Re.Destroyed]="Destroyed";var ke=g("Directive",{selector:void 0,inputs:void 0,outputs:void 0,host:void 0,providers:void 0,exportAs:void 0,queries:void 0}),Ne=g("Component",{selector:void 0,inputs:void 0,outputs:void 0,host:void 0,exportAs:void 0,moduleId:void 0,providers:void 0,viewProviders:void 0,changeDetection:Me.Default,queries:void 0,templateUrl:void 0,template:void 0,styleUrls:void 0,styles:void 0,animations:void 0,encapsulation:void 0,interpolation:void 0,entryComponents:void 0},ke),Ie=g("Pipe",{name:void 0,pure:!0}),De=w("Input",[["bindingPropertyName",void 0]]),je=w("Output",[["bindingPropertyName",void 0]]),Le=w("HostBinding",[["hostPropertyName",void 0]]),Ve=w("HostListener",[["eventName",void 0],["args",[]]]),Fe={};Fe.OnInit=0,Fe.OnDestroy=1,Fe.DoCheck=2,Fe.OnChanges=3,Fe.AfterContentInit=4,Fe.AfterContentChecked=5,Fe.AfterViewInit=6,Fe.AfterViewChecked=7,Fe[Fe.OnInit]="OnInit",Fe[Fe.OnDestroy]="OnDestroy",Fe[Fe.DoCheck]="DoCheck",Fe[Fe.OnChanges]="OnChanges",Fe[Fe.AfterContentInit]="AfterContentInit",Fe[Fe.AfterContentChecked]="AfterContentChecked",Fe[Fe.AfterViewInit]="AfterViewInit",Fe[Fe.AfterViewChecked]="AfterViewChecked";var Ue=[Fe.OnInit,Fe.OnDestroy,Fe.DoCheck,Fe.OnChanges,Fe.AfterContentInit,Fe.AfterContentChecked,Fe.AfterViewInit,Fe.AfterViewChecked],Be=function(){function t(){}return t.prototype.ngOnChanges=function(){},t}(),He=function(){function t(){}return t.prototype.ngOnInit=function(){},t}(),qe=function(){function t(){}return t.prototype.ngDoCheck=function(){},t}(),ze=function(){function t(){}return t.prototype.ngOnDestroy=function(){},t}(),We=function(){function t(){}return t.prototype.ngAfterContentInit=function(){},t}(),Ge=function(){function t(){}return t.prototype.ngAfterContentChecked=function(){},t}(),Ke=function(){function t(){}return t.prototype.ngAfterViewInit=function(){},t}(),Xe=function(){function t(){}return t.prototype.ngAfterViewChecked=function(){},t}(),Qe={name:"custom-elements"},Ye={name:"no-errors-schema"},$e=g("NgModule",{providers:void 0,declarations:void 0,imports:void 0,exports:void 0,entryComponents:void 0,bootstrap:void 0,schemas:void 0,id:void 0}),Ze={};Ze.Emulated=0,Ze.Native=1,Ze.None=2,Ze[Ze.Emulated]="Emulated",Ze[Ze.Native]="Native",Ze[Ze.None]="None";var Je=function(){function t(t){var e=void 0===t?{}:t,n=e.templateUrl,r=e.template,i=e.encapsulation,o=e.styles,s=e.styleUrls,a=e.animations,u=e.interpolation;this.templateUrl=n,this.template=r,this.styleUrls=s,this.styles=o,this.encapsulation=i,this.animations=a,this.interpolation=u}return t}(),tn=function(){function t(t){this.full=t}return Object.defineProperty(t.prototype,"major",{get:function(){return this.full.split(".")[0]},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"minor",{get:function(){return this.full.split(".")[1]},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"patch",{get:function(){return this.full.split(".").slice(2).join(".")},enumerable:!0,configurable:!0}),t}(),en=new tn("2.4.9"),nn=new Object,rn=nn,on=function(){function t(){}return t.prototype.get=function(t,e){if(void 0===e&&(e=nn),e===nn)throw new Error("No provider for "+u(t)+"!");return e},t}(),sn=function(){function t(){}return t.prototype.get=function(){},t.THROW_IF_NOT_FOUND=nn,t.NULL=new on,t}(),an=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},un=function(t){function e(e){t.call(this,e);var n=new Error(e); +return n||e.print("("),e.print(t.name+" = "),t.value.visitExpression(this,e),n||e.print(")"),null},t.prototype.visitWriteKeyExpr=function(t,e){var n=e.lineIsEmpty();return n||e.print("("),t.receiver.visitExpression(this,e),e.print("["),t.index.visitExpression(this,e),e.print("] = "),t.value.visitExpression(this,e),n||e.print(")"),null},t.prototype.visitWritePropExpr=function(t,e){var n=e.lineIsEmpty();return n||e.print("("),t.receiver.visitExpression(this,e),e.print("."+t.name+" = "),t.value.visitExpression(this,e),n||e.print(")"),null},t.prototype.visitInvokeMethodExpr=function(t,e){t.receiver.visitExpression(this,e);var n=t.name;return r(t.builtin)&&(n=this.getBuiltinMethodName(t.builtin),i(n))?null:(e.print("."+n+"("),this.visitAllExpressions(t.args,e,","),e.print(")"),null)},t.prototype.getBuiltinMethodName=function(){},t.prototype.visitInvokeFunctionExpr=function(t,e){return t.fn.visitExpression(this,e),e.print("("),this.visitAllExpressions(t.args,e,","),e.print(")"),null},t.prototype.visitReadVarExpr=function(t,e){var n=t.name;if(r(t.builtin))switch(t.builtin){case jh.Super:n="super";break;case jh.This:n="this";break;case jh.CatchError:n=Pd.name;break;case jh.CatchStack:n=Od.name;break;default:throw new Error("Unknown builtin variable "+t.builtin)}return e.print(n),null},t.prototype.visitInstantiateExpr=function(t,e){return e.print("new "),t.classExpr.visitExpression(this,e),e.print("("),this.visitAllExpressions(t.args,e,","),e.print(")"),null},t.prototype.visitLiteralExpr=function(t,e){var n=t.value;return e.print("string"==typeof n?Xn(n,this._escapeDollarInStrings):""+n),null},t.prototype.visitExternalExpr=function(){},t.prototype.visitConditionalExpr=function(t,e){return e.print("("),t.condition.visitExpression(this,e),e.print("? "),t.trueCase.visitExpression(this,e),e.print(": "),t.falseCase.visitExpression(this,e),e.print(")"),null},t.prototype.visitNotExpr=function(t,e){return e.print("!"),t.condition.visitExpression(this,e),null},t.prototype.visitFunctionExpr=function(){},t.prototype.visitDeclareFunctionStmt=function(){},t.prototype.visitBinaryOperatorExpr=function(t,e){var n;switch(t.operator){case Ih.Equals:n="==";break;case Ih.Identical:n="===";break;case Ih.NotEquals:n="!=";break;case Ih.NotIdentical:n="!==";break;case Ih.And:n="&&";break;case Ih.Or:n="||";break;case Ih.Plus:n="+";break;case Ih.Minus:n="-";break;case Ih.Divide:n="/";break;case Ih.Multiply:n="*";break;case Ih.Modulo:n="%";break;case Ih.Lower:n="<";break;case Ih.LowerEquals:n="<=";break;case Ih.Bigger:n=">";break;case Ih.BiggerEquals:n=">=";break;default:throw new Error("Unknown operator "+t.operator)}return e.print("("),t.lhs.visitExpression(this,e),e.print(" "+n+" "),t.rhs.visitExpression(this,e),e.print(")"),null},t.prototype.visitReadPropExpr=function(t,e){return t.receiver.visitExpression(this,e),e.print("."),e.print(t.name),null},t.prototype.visitReadKeyExpr=function(t,e){return t.receiver.visitExpression(this,e),e.print("["),t.index.visitExpression(this,e),e.print("]"),null},t.prototype.visitLiteralArrayExpr=function(t,e){var n=t.entries.length>1;return e.print("[",n),e.incIndent(),this.visitAllExpressions(t.entries,e,",",n),e.decIndent(),e.print("]",n),null},t.prototype.visitLiteralMapExpr=function(t,e){var n=this,r=t.entries.length>1;return e.print("{",r),e.incIndent(),this.visitAllObjects(function(t){e.print(Xn(t.key,n._escapeDollarInStrings,t.quoted)+": "),t.value.visitExpression(n,e)},t.entries,e,",",r),e.decIndent(),e.print("}",r),null},t.prototype.visitAllExpressions=function(t,e,n,r){var i=this;void 0===r&&(r=!1),this.visitAllObjects(function(t){return t.visitExpression(i,e)},t,e,n,r)},t.prototype.visitAllObjects=function(t,e,n,r,i){void 0===i&&(i=!1);for(var o=0;o<e.length;o++)o>0&&n.print(r,i),t(e[o]);i&&n.println()},t.prototype.visitAllStatements=function(t,e){var n=this;t.forEach(function(t){return t.visitStatement(n,e)})},t}(),kd=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},Nd="/debug/lib",Id=function(){function t(t){this._importGenerator=t}return t.prototype.emitStatements=function(t,e,n){var r=this,i=new Dd(t),o=Md.createRoot(n);i.visitAllStatements(e,o);var s=[];return i.importsWithPrefixes.forEach(function(e,n){s.push("imp"+("ort * as "+e+" from '"+r._importGenerator.fileNameToModuleName(n,t)+"';"))}),s.push(o.toSource()),s.join("\n")},t}(),Dd=function(t){function e(e){t.call(this,!1),this._moduleUrl=e,this.importsWithPrefixes=new Map}return kd(e,t),e.prototype.visitType=function(t,e,n){void 0===n&&(n="any"),r(t)?t.visitType(this,e):e.print(n)},e.prototype.visitLiteralExpr=function(e,n){var r=e.value;return i(r)&&e.type!=Nh?(n.print("("+r+" as any)"),null):t.prototype.visitLiteralExpr.call(this,e,n)},e.prototype.visitLiteralArrayExpr=function(e,n){0===e.entries.length&&n.print("(");var r=t.prototype.visitLiteralArrayExpr.call(this,e,n);return 0===e.entries.length&&n.print(" as any[])"),r},e.prototype.visitExternalExpr=function(t,e){return this._visitIdentifier(t.value,t.typeParams,e),null},e.prototype.visitDeclareVarStmt=function(t,e){return e.isExportedVar(t.name)&&e.print("export "),e.print(t.hasModifier(cf.Final)?"const":"var"),e.print(" "+t.name+":"),this.visitType(t.type,e),e.print(" = "),t.value.visitExpression(this,e),e.println(";"),null},e.prototype.visitCastExpr=function(t,e){return e.print("(<"),t.type.visitType(this,e),e.print(">"),t.value.visitExpression(this,e),e.print(")"),null},e.prototype.visitDeclareClassStmt=function(t,e){var n=this;return e.pushClass(t),e.isExportedVar(t.name)&&e.print("export "),e.print("class "+t.name),r(t.parent)&&(e.print(" extends "),t.parent.visitExpression(this,e)),e.println(" {"),e.incIndent(),t.fields.forEach(function(t){return n._visitClassField(t,e)}),r(t.constructorMethod)&&this._visitClassConstructor(t,e),t.getters.forEach(function(t){return n._visitClassGetter(t,e)}),t.methods.forEach(function(t){return n._visitClassMethod(t,e)}),e.decIndent(),e.println("}"),e.popClass(),null},e.prototype._visitClassField=function(t,e){t.hasModifier(cf.Private)&&e.print("/*private*/ "),e.print(t.name),e.print(":"),this.visitType(t.type,e),e.println(";")},e.prototype._visitClassGetter=function(t,e){t.hasModifier(cf.Private)&&e.print("private "),e.print("get "+t.name+"()"),e.print(":"),this.visitType(t.type,e),e.println(" {"),e.incIndent(),this.visitAllStatements(t.body,e),e.decIndent(),e.println("}")},e.prototype._visitClassConstructor=function(t,e){e.print("constructor("),this._visitParams(t.constructorMethod.params,e),e.println(") {"),e.incIndent(),this.visitAllStatements(t.constructorMethod.body,e),e.decIndent(),e.println("}")},e.prototype._visitClassMethod=function(t,e){t.hasModifier(cf.Private)&&e.print("private "),e.print(t.name+"("),this._visitParams(t.params,e),e.print("):"),this.visitType(t.type,e,"void"),e.println(" {"),e.incIndent(),this.visitAllStatements(t.body,e),e.decIndent(),e.println("}")},e.prototype.visitFunctionExpr=function(t,e){return e.print("("),this._visitParams(t.params,e),e.print("):"),this.visitType(t.type,e,"void"),e.println(" => {"),e.incIndent(),this.visitAllStatements(t.statements,e),e.decIndent(),e.print("}"),null},e.prototype.visitDeclareFunctionStmt=function(t,e){return e.isExportedVar(t.name)&&e.print("export "),e.print("function "+t.name+"("),this._visitParams(t.params,e),e.print("):"),this.visitType(t.type,e,"void"),e.println(" {"),e.incIndent(),this.visitAllStatements(t.statements,e),e.decIndent(),e.println("}"),null},e.prototype.visitTryCatchStmt=function(t,e){e.println("try {"),e.incIndent(),this.visitAllStatements(t.bodyStmts,e),e.decIndent(),e.println("} catch ("+Pd.name+") {"),e.incIndent();var n=[Od.set(Pd.prop("stack")).toDeclStmt(null,[cf.Final])].concat(t.catchStmts);return this.visitAllStatements(n,e),e.decIndent(),e.println("}"),null},e.prototype.visitBuiltintType=function(t,e){var n;switch(t.name){case Sh.Bool:n="boolean";break;case Sh.Dynamic:n="any";break;case Sh.Function:n="Function";break;case Sh.Number:n="number";break;case Sh.Int:n="number";break;case Sh.String:n="string";break;default:throw new Error("Unsupported builtin type "+t.name)}return e.print(n),null},e.prototype.visitExpressionType=function(t,e){var n=this;return t.value.visitExpression(this,e),r(t.typeParams)&&t.typeParams.length>0&&(e.print("<"),this.visitAllObjects(function(t){return t.visitType(n,e)},t.typeParams,e,","),e.print(">")),null},e.prototype.visitArrayType=function(t,e){return this.visitType(t.of,e),e.print("[]"),null},e.prototype.visitMapType=function(t,e){return e.print("{[key: string]:"),this.visitType(t.valueType,e),e.print("}"),null},e.prototype.getBuiltinMethodName=function(t){var e;switch(t){case Bh.ConcatArray:e="concat";break;case Bh.SubscribeObservable:e="subscribe";break;case Bh.Bind:e="bind";break;default:throw new Error("Unknown builtin method: "+t)}return e},e.prototype._visitParams=function(t,e){var n=this;this.visitAllObjects(function(t){e.print(t.name),e.print(":"),n.visitType(t.type,e)},t,e,",")},e.prototype._visitIdentifier=function(t,e,n){var o=this,s=b(t),a=w(t);if(i(s))throw new Error("Internal error: unknown identifier "+t);if(r(a)&&a!=this._moduleUrl){var u=this.importsWithPrefixes.get(a);i(u)&&(u="import"+this.importsWithPrefixes.size,this.importsWithPrefixes.set(a,u)),n.print(u+".")}t.reference&&t.reference.members&&t.reference.members.length?(n.print(t.reference.name),n.print("."),n.print(t.reference.members.join("."))):n.print(s),r(e)&&e.length>0&&(n.print("<"),this.visitAllObjects(function(t){return t.visitType(o,n)},e,n,","),n.print(">"))},e}(Rd),jd={};$n(e.SecurityContext.HTML,["iframe|srcdoc","*|innerHTML","*|outerHTML"]),$n(e.SecurityContext.STYLE,["*|style"]),$n(e.SecurityContext.URL,["*|formAction","area|href","area|ping","audio|src","a|href","a|ping","blockquote|cite","body|background","del|cite","form|action","img|src","img|srcset","input|src","ins|cite","q|cite","source|src","source|srcset","track|src","video|poster","video|src"]),$n(e.SecurityContext.RESOURCE_URL,["applet|code","applet|codebase","base|href","embed|src","frame|src","head|profile","html|manifest","iframe|src","link|href","media|src","object|codebase","object|data","script|src"]);var Ld=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},Vd=this&&this.__decorate||function(t,e,n,r){var i,o=arguments.length,s=3>o?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,r);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(3>o?i(s):o>3?i(e,n,s):i(e,n))||s);return o>3&&s&&Object.defineProperty(e,n,s),s},Fd=this&&this.__metadata||function(t,e){return"object"==typeof Reflect&&"function"==typeof Reflect.metadata?Reflect.metadata(t,e):void 0},Ud="boolean",Bd="number",Hd="string",qd="object",zd=["[Element]|textContent,%classList,className,id,innerHTML,*beforecopy,*beforecut,*beforepaste,*copy,*cut,*paste,*search,*selectstart,*webkitfullscreenchange,*webkitfullscreenerror,*wheel,outerHTML,#scrollLeft,#scrollTop","[HTMLElement]^[Element]|accessKey,contentEditable,dir,!draggable,!hidden,innerText,lang,*abort,*beforecopy,*beforecut,*beforepaste,*blur,*cancel,*canplay,*canplaythrough,*change,*click,*close,*contextmenu,*copy,*cuechange,*cut,*dblclick,*drag,*dragend,*dragenter,*dragleave,*dragover,*dragstart,*drop,*durationchange,*emptied,*ended,*error,*focus,*input,*invalid,*keydown,*keypress,*keyup,*load,*loadeddata,*loadedmetadata,*loadstart,*message,*mousedown,*mouseenter,*mouseleave,*mousemove,*mouseout,*mouseover,*mouseup,*mousewheel,*mozfullscreenchange,*mozfullscreenerror,*mozpointerlockchange,*mozpointerlockerror,*paste,*pause,*play,*playing,*progress,*ratechange,*reset,*resize,*scroll,*search,*seeked,*seeking,*select,*selectstart,*show,*stalled,*submit,*suspend,*timeupdate,*toggle,*volumechange,*waiting,*webglcontextcreationerror,*webglcontextlost,*webglcontextrestored,*webkitfullscreenchange,*webkitfullscreenerror,*wheel,outerText,!spellcheck,%style,#tabIndex,title,!translate","abbr,address,article,aside,b,bdi,bdo,cite,code,dd,dfn,dt,em,figcaption,figure,footer,header,i,kbd,main,mark,nav,noscript,rb,rp,rt,rtc,ruby,s,samp,section,small,strong,sub,sup,u,var,wbr^[HTMLElement]|accessKey,contentEditable,dir,!draggable,!hidden,innerText,lang,*abort,*beforecopy,*beforecut,*beforepaste,*blur,*cancel,*canplay,*canplaythrough,*change,*click,*close,*contextmenu,*copy,*cuechange,*cut,*dblclick,*drag,*dragend,*dragenter,*dragleave,*dragover,*dragstart,*drop,*durationchange,*emptied,*ended,*error,*focus,*input,*invalid,*keydown,*keypress,*keyup,*load,*loadeddata,*loadedmetadata,*loadstart,*message,*mousedown,*mouseenter,*mouseleave,*mousemove,*mouseout,*mouseover,*mouseup,*mousewheel,*mozfullscreenchange,*mozfullscreenerror,*mozpointerlockchange,*mozpointerlockerror,*paste,*pause,*play,*playing,*progress,*ratechange,*reset,*resize,*scroll,*search,*seeked,*seeking,*select,*selectstart,*show,*stalled,*submit,*suspend,*timeupdate,*toggle,*volumechange,*waiting,*webglcontextcreationerror,*webglcontextlost,*webglcontextrestored,*webkitfullscreenchange,*webkitfullscreenerror,*wheel,outerText,!spellcheck,%style,#tabIndex,title,!translate","media^[HTMLElement]|!autoplay,!controls,%crossOrigin,#currentTime,!defaultMuted,#defaultPlaybackRate,!disableRemotePlayback,!loop,!muted,*encrypted,#playbackRate,preload,src,%srcObject,#volume",":svg:^[HTMLElement]|*abort,*blur,*cancel,*canplay,*canplaythrough,*change,*click,*close,*contextmenu,*cuechange,*dblclick,*drag,*dragend,*dragenter,*dragleave,*dragover,*dragstart,*drop,*durationchange,*emptied,*ended,*error,*focus,*input,*invalid,*keydown,*keypress,*keyup,*load,*loadeddata,*loadedmetadata,*loadstart,*mousedown,*mouseenter,*mouseleave,*mousemove,*mouseout,*mouseover,*mouseup,*mousewheel,*pause,*play,*playing,*progress,*ratechange,*reset,*resize,*scroll,*seeked,*seeking,*select,*show,*stalled,*submit,*suspend,*timeupdate,*toggle,*volumechange,*waiting,%style,#tabIndex",":svg:graphics^:svg:|",":svg:animation^:svg:|*begin,*end,*repeat",":svg:geometry^:svg:|",":svg:componentTransferFunction^:svg:|",":svg:gradient^:svg:|",":svg:textContent^:svg:graphics|",":svg:textPositioning^:svg:textContent|","a^[HTMLElement]|charset,coords,download,hash,host,hostname,href,hreflang,name,password,pathname,ping,port,protocol,referrerPolicy,rel,rev,search,shape,target,text,type,username","area^[HTMLElement]|alt,coords,hash,host,hostname,href,!noHref,password,pathname,ping,port,protocol,referrerPolicy,search,shape,target,username","audio^media|","br^[HTMLElement]|clear","base^[HTMLElement]|href,target","body^[HTMLElement]|aLink,background,bgColor,link,*beforeunload,*blur,*error,*focus,*hashchange,*languagechange,*load,*message,*offline,*online,*pagehide,*pageshow,*popstate,*rejectionhandled,*resize,*scroll,*storage,*unhandledrejection,*unload,text,vLink","button^[HTMLElement]|!autofocus,!disabled,formAction,formEnctype,formMethod,!formNoValidate,formTarget,name,type,value","canvas^[HTMLElement]|#height,#width","content^[HTMLElement]|select","dl^[HTMLElement]|!compact","datalist^[HTMLElement]|","details^[HTMLElement]|!open","dialog^[HTMLElement]|!open,returnValue","dir^[HTMLElement]|!compact","div^[HTMLElement]|align","embed^[HTMLElement]|align,height,name,src,type,width","fieldset^[HTMLElement]|!disabled,name","font^[HTMLElement]|color,face,size","form^[HTMLElement]|acceptCharset,action,autocomplete,encoding,enctype,method,name,!noValidate,target","frame^[HTMLElement]|frameBorder,longDesc,marginHeight,marginWidth,name,!noResize,scrolling,src","frameset^[HTMLElement]|cols,*beforeunload,*blur,*error,*focus,*hashchange,*languagechange,*load,*message,*offline,*online,*pagehide,*pageshow,*popstate,*rejectionhandled,*resize,*scroll,*storage,*unhandledrejection,*unload,rows","hr^[HTMLElement]|align,color,!noShade,size,width","head^[HTMLElement]|","h1,h2,h3,h4,h5,h6^[HTMLElement]|align","html^[HTMLElement]|version","iframe^[HTMLElement]|align,!allowFullscreen,frameBorder,height,longDesc,marginHeight,marginWidth,name,referrerPolicy,%sandbox,scrolling,src,srcdoc,width","img^[HTMLElement]|align,alt,border,%crossOrigin,#height,#hspace,!isMap,longDesc,lowsrc,name,referrerPolicy,sizes,src,srcset,useMap,#vspace,#width","input^[HTMLElement]|accept,align,alt,autocapitalize,autocomplete,!autofocus,!checked,!defaultChecked,defaultValue,dirName,!disabled,%files,formAction,formEnctype,formMethod,!formNoValidate,formTarget,#height,!incremental,!indeterminate,max,#maxLength,min,#minLength,!multiple,name,pattern,placeholder,!readOnly,!required,selectionDirection,#selectionEnd,#selectionStart,#size,src,step,type,useMap,value,%valueAsDate,#valueAsNumber,#width","keygen^[HTMLElement]|!autofocus,challenge,!disabled,keytype,name","li^[HTMLElement]|type,#value","label^[HTMLElement]|htmlFor","legend^[HTMLElement]|align","link^[HTMLElement]|as,charset,%crossOrigin,!disabled,href,hreflang,integrity,media,rel,%relList,rev,%sizes,target,type","map^[HTMLElement]|name","marquee^[HTMLElement]|behavior,bgColor,direction,height,#hspace,#loop,#scrollAmount,#scrollDelay,!trueSpeed,#vspace,width","menu^[HTMLElement]|!compact","meta^[HTMLElement]|content,httpEquiv,name,scheme","meter^[HTMLElement]|#high,#low,#max,#min,#optimum,#value","ins,del^[HTMLElement]|cite,dateTime","ol^[HTMLElement]|!compact,!reversed,#start,type","object^[HTMLElement]|align,archive,border,code,codeBase,codeType,data,!declare,height,#hspace,name,standby,type,useMap,#vspace,width","optgroup^[HTMLElement]|!disabled,label","option^[HTMLElement]|!defaultSelected,!disabled,label,!selected,text,value","output^[HTMLElement]|defaultValue,%htmlFor,name,value","p^[HTMLElement]|align","param^[HTMLElement]|name,type,value,valueType","picture^[HTMLElement]|","pre^[HTMLElement]|#width","progress^[HTMLElement]|#max,#value","q,blockquote,cite^[HTMLElement]|","script^[HTMLElement]|!async,charset,%crossOrigin,!defer,event,htmlFor,integrity,src,text,type","select^[HTMLElement]|!autofocus,!disabled,#length,!multiple,name,!required,#selectedIndex,#size,value","shadow^[HTMLElement]|","source^[HTMLElement]|media,sizes,src,srcset,type","span^[HTMLElement]|","style^[HTMLElement]|!disabled,media,type","caption^[HTMLElement]|align","th,td^[HTMLElement]|abbr,align,axis,bgColor,ch,chOff,#colSpan,headers,height,!noWrap,#rowSpan,scope,vAlign,width","col,colgroup^[HTMLElement]|align,ch,chOff,#span,vAlign,width","table^[HTMLElement]|align,bgColor,border,%caption,cellPadding,cellSpacing,frame,rules,summary,%tFoot,%tHead,width","tr^[HTMLElement]|align,bgColor,ch,chOff,vAlign","tfoot,thead,tbody^[HTMLElement]|align,ch,chOff,vAlign","template^[HTMLElement]|","textarea^[HTMLElement]|autocapitalize,!autofocus,#cols,defaultValue,dirName,!disabled,#maxLength,#minLength,name,placeholder,!readOnly,!required,#rows,selectionDirection,#selectionEnd,#selectionStart,value,wrap","title^[HTMLElement]|text","track^[HTMLElement]|!default,kind,label,src,srclang","ul^[HTMLElement]|!compact,type","unknown^[HTMLElement]|","video^media|#height,poster,#width",":svg:a^:svg:graphics|",":svg:animate^:svg:animation|",":svg:animateMotion^:svg:animation|",":svg:animateTransform^:svg:animation|",":svg:circle^:svg:geometry|",":svg:clipPath^:svg:graphics|",":svg:cursor^:svg:|",":svg:defs^:svg:graphics|",":svg:desc^:svg:|",":svg:discard^:svg:|",":svg:ellipse^:svg:geometry|",":svg:feBlend^:svg:|",":svg:feColorMatrix^:svg:|",":svg:feComponentTransfer^:svg:|",":svg:feComposite^:svg:|",":svg:feConvolveMatrix^:svg:|",":svg:feDiffuseLighting^:svg:|",":svg:feDisplacementMap^:svg:|",":svg:feDistantLight^:svg:|",":svg:feDropShadow^:svg:|",":svg:feFlood^:svg:|",":svg:feFuncA^:svg:componentTransferFunction|",":svg:feFuncB^:svg:componentTransferFunction|",":svg:feFuncG^:svg:componentTransferFunction|",":svg:feFuncR^:svg:componentTransferFunction|",":svg:feGaussianBlur^:svg:|",":svg:feImage^:svg:|",":svg:feMerge^:svg:|",":svg:feMergeNode^:svg:|",":svg:feMorphology^:svg:|",":svg:feOffset^:svg:|",":svg:fePointLight^:svg:|",":svg:feSpecularLighting^:svg:|",":svg:feSpotLight^:svg:|",":svg:feTile^:svg:|",":svg:feTurbulence^:svg:|",":svg:filter^:svg:|",":svg:foreignObject^:svg:graphics|",":svg:g^:svg:graphics|",":svg:image^:svg:graphics|",":svg:line^:svg:geometry|",":svg:linearGradient^:svg:gradient|",":svg:mpath^:svg:|",":svg:marker^:svg:|",":svg:mask^:svg:|",":svg:metadata^:svg:|",":svg:path^:svg:geometry|",":svg:pattern^:svg:|",":svg:polygon^:svg:geometry|",":svg:polyline^:svg:geometry|",":svg:radialGradient^:svg:gradient|",":svg:rect^:svg:geometry|",":svg:svg^:svg:graphics|#currentScale,#zoomAndPan",":svg:script^:svg:|type",":svg:set^:svg:animation|",":svg:stop^:svg:|",":svg:style^:svg:|!disabled,media,title,type",":svg:switch^:svg:graphics|",":svg:symbol^:svg:|",":svg:tspan^:svg:textPositioning|",":svg:text^:svg:textPositioning|",":svg:textPath^:svg:textContent|",":svg:title^:svg:|",":svg:use^:svg:graphics|",":svg:view^:svg:|#zoomAndPan","data^[HTMLElement]|value","menuitem^[HTMLElement]|type,label,icon,!disabled,!checked,radiogroup,!default","summary^[HTMLElement]|","time^[HTMLElement]|dateTime"],Wd={"class":"className","for":"htmlFor",formaction:"formAction",innerHtml:"innerHTML",readonly:"readOnly",tabindex:"tabIndex"},Gd=function(t){function n(){var e=this;t.call(this),this._schema={},zd.forEach(function(t){var n={},r=t.split("|"),i=r[0],o=r[1],s=o.split(","),a=i.split("^"),u=a[0],c=a[1];u.split(",").forEach(function(t){return e._schema[t.toLowerCase()]=n});var p=c&&e._schema[c.toLowerCase()];p&&Object.keys(p).forEach(function(t){n[t]=p[t]}),s.forEach(function(t){if(t.length>0)switch(t[0]){case"*":break;case"!":n[t.substring(1)]=Ud;break;case"#":n[t.substring(1)]=Bd;break;case"%":n[t.substring(1)]=qd;break;default:n[t]=Hd}})})}return Ld(n,t),n.prototype.hasProperty=function(t,n,r){if(r.some(function(t){return t.name===e.NO_ERRORS_SCHEMA.name}))return!0;if(t.indexOf("-")>-1){if("ng-container"===t||"ng-content"===t)return!1;if(r.some(function(t){return t.name===e.CUSTOM_ELEMENTS_SCHEMA.name}))return!0}var i=this._schema[t.toLowerCase()]||this._schema.unknown;return!!i[n]},n.prototype.hasElement=function(t,n){if(n.some(function(t){return t.name===e.NO_ERRORS_SCHEMA.name}))return!0;if(t.indexOf("-")>-1){if("ng-container"===t||"ng-content"===t)return!0;if(n.some(function(t){return t.name===e.CUSTOM_ELEMENTS_SCHEMA.name}))return!0}return!!this._schema[t.toLowerCase()]},n.prototype.securityContext=function(t,n,r){r&&(n=this.getMappedPropName(n)),t=t.toLowerCase(),n=n.toLowerCase();var i=jd[t+"|"+n];return i?i:(i=jd["*|"+n],i?i:e.SecurityContext.NONE)},n.prototype.getMappedPropName=function(t){return Wd[t]||t},n.prototype.getDefaultComponentElementName=function(){return"ng-component"},n.prototype.validateProperty=function(t){if(t.toLowerCase().startsWith("on")){var e="Binding to event property '"+t+"' is disallowed for security reasons, "+("please use ("+t.slice(2)+")=...")+("\nIf '"+t+"' is a directive input, make sure the directive is imported by the")+" current module.";return{error:!0,msg:e}}return{error:!1}},n.prototype.validateAttribute=function(t){if(t.toLowerCase().startsWith("on")){var e="Binding to event attribute '"+t+"' is disallowed for security reasons, "+("please use ("+t.slice(2)+")=...");return{error:!0,msg:e}}return{error:!1}},n.prototype.allKnownElementNames=function(){return Object.keys(this._schema)},n.prototype.normalizeAnimationStyleProperty=function(t){return d(t)},n.prototype.normalizeAnimationStyleValue=function(t,e,n){var r="",i=n.toString().trim(),o=null;if(Zn(t)&&0!==n&&"0"!==n)if("number"==typeof n)r="px";else{var s=n.match(/^[+-]?[\d\.]+([a-z]*)$/);s&&0==s[1].length&&(o="Please provide a CSS unit value for "+e+":"+n)}return{error:o,value:i+r}},n=Vd([M(),Fd("design:paramtypes",[])],n)}(Mp),Kd=function(){function t(){this.strictStyling=!0}return t.prototype.shimCssText=function(t,e,n){void 0===n&&(n="");var r=tr(t);return t=Jn(t),t=this._insertDirectives(t),this._scopeCssText(t,e,n)+r},t.prototype._insertDirectives=function(t){return t=this._insertPolyfillDirectivesInCssText(t),this._insertPolyfillRulesInCssText(t)},t.prototype._insertPolyfillDirectivesInCssText=function(t){return t.replace(Qd,function(){for(var t=[],e=0;e<arguments.length;e++)t[e-0]=arguments[e];return t[2]+"{"})},t.prototype._insertPolyfillRulesInCssText=function(t){return t.replace(Yd,function(){for(var t=[],e=0;e<arguments.length;e++)t[e-0]=arguments[e];var n=t[0].replace(t[1],"").replace(t[2],"");return t[4]+n})},t.prototype._scopeCssText=function(t,e,n){var r=this._extractUnscopedRulesFromCssText(t);return t=this._insertPolyfillHostInCssText(t),t=this._convertColonHost(t),t=this._convertColonHostContext(t),t=this._convertShadowDOMSelectors(t),e&&(t=this._scopeSelectors(t,e,n)),t=t+"\n"+r,t.trim()},t.prototype._extractUnscopedRulesFromCssText=function(t){var e,n="";for($d.lastIndex=0;null!==(e=$d.exec(t));){var r=e[0].replace(e[2],"").replace(e[1],e[4]);n+=r+"\n\n"}return n},t.prototype._convertColonHost=function(t){return this._convertColonRule(t,ey,this._colonHostPartReplacer)},t.prototype._convertColonHostContext=function(t){return this._convertColonRule(t,ny,this._colonHostContextPartReplacer)},t.prototype._convertColonRule=function(t,e,n){return t.replace(e,function(){for(var t=[],e=0;e<arguments.length;e++)t[e-0]=arguments[e];if(t[2]){for(var r=t[2].split(","),i=[],o=0;o<r.length;o++){var s=r[o].trim();if(!s)break;i.push(n(ry,s,t[3]))}return i.join(",")}return ry+t[3]})},t.prototype._colonHostContextPartReplacer=function(t,e,n){return e.indexOf(Zd)>-1?this._colonHostPartReplacer(t,e,n):t+e+n+", "+e+" "+t+n},t.prototype._colonHostPartReplacer=function(t,e,n){return t+e.replace(Zd,"")+n},t.prototype._convertShadowDOMSelectors=function(t){return oy.reduce(function(t,e){return t.replace(e," ")},t)},t.prototype._scopeSelectors=function(t,e,n){var r=this;return er(t,function(t){var i=t.selector,o=t.content;return"@"!=t.selector[0]?i=r._scopeSelector(t.selector,e,n,r.strictStyling):(t.selector.startsWith("@media")||t.selector.startsWith("@supports")||t.selector.startsWith("@page")||t.selector.startsWith("@document"))&&(o=r._scopeSelectors(t.content,e,n)),new gy(i,o)})},t.prototype._scopeSelector=function(t,e,n,r){var i=this;return t.split(",").map(function(t){return t.trim().split(sy)}).map(function(t){var o=t[0],s=t.slice(1),a=function(t){return i._selectorNeedsScoping(t,e)?r?i._applyStrictSelectorScope(t,e,n):i._applySelectorScope(t,e,n):t};return[a(o)].concat(s).join(" ")}).join(", ")},t.prototype._selectorNeedsScoping=function(t,e){var n=this._makeScopeMatcher(e);return!n.test(t)},t.prototype._makeScopeMatcher=function(t){var e=/\[/g,n=/\]/g;return t=t.replace(e,"\\[").replace(n,"\\]"),new RegExp("^("+t+")"+ay,"m")},t.prototype._applySelectorScope=function(t,e,n){return this._applySimpleSelectorScope(t,e,n)},t.prototype._applySimpleSelectorScope=function(t,e,n){if(uy.lastIndex=0,uy.test(t)){var r=this.strictStyling?"["+n+"]":e;return t.replace(iy,function(t,e){return e.replace(/([^:]*)(:*)(.*)/,function(t,e,n,i){return e+r+n+i})}).replace(uy,r+" ")}return e+" "+t},t.prototype._applyStrictSelectorScope=function(t,e,n){var r=this,i=/\[is=([^\]]*)\]/g;e=e.replace(i,function(){for(var t=[],e=1;e<arguments.length;e++)t[e-1]=arguments[e];return t[0]});var o="["+e+"]",s=function(t){var i=t.trim();if(!i)return"";if(t.indexOf(ry)>-1)i=r._applySimpleSelectorScope(t,e,n);else{var s=t.replace(uy,"");if(s.length>0){var a=s.match(/([^:]*)(:*)(.*)/);a&&(i=a[1]+o+a[2]+a[3])}}return i},a=new Xd(t);t=a.content();for(var u,c="",p=0,l=/( |>|\+|~(?!=))\s*/g,h=t.indexOf(ry);null!==(u=l.exec(t));){var f=u[1],d=t.slice(p,u.index).trim(),y=p>=h?s(d):d;c+=y+" "+f+" ",p=l.lastIndex}return c+=s(t.substring(p)),a.restore(c)},t.prototype._insertPolyfillHostInCssText=function(t){return t.replace(py,Jd).replace(cy,Zd)},t}(),Xd=function(){function t(t){var e=this;this.placeholders=[],this.index=0,t=t.replace(/(\[[^\]]*\])/g,function(t,n){var r="__ph-"+e.index+"__";return e.placeholders.push(n),e.index++,r}),this._content=t.replace(/(:nth-[-\w]+)(\([^)]+\))/g,function(t,n,r){var i="__ph-"+e.index+"__";return e.placeholders.push(r),e.index++,n+i})}return t.prototype.restore=function(t){var e=this;return t.replace(/__ph-(\d+)__/g,function(t,n){return e.placeholders[+n]})},t.prototype.content=function(){return this._content},t}(),Qd=/polyfill-next-selector[^}]*content:[\s]*?(['"])(.*?)\1[;\s]*}([^{]*?){/gim,Yd=/(polyfill-rule)[^}]*(content:[\s]*(['"])(.*?)\3)[;\s]*[^}]*}/gim,$d=/(polyfill-unscoped-rule)[^}]*(content:[\s]*(['"])(.*?)\3)[;\s]*[^}]*}/gim,Zd="-shadowcsshost",Jd="-shadowcsscontext",ty=")(?:\\(((?:\\([^)(]*\\)|[^)(]*)+?)\\))?([^,{]*)",ey=new RegExp("("+Zd+ty,"gim"),ny=new RegExp("("+Jd+ty,"gim"),ry=Zd+"-no-combinator",iy=/-shadowcsshost-no-combinator([^\s]*)/,oy=[/::shadow/g,/::content/g,/\/shadow-deep\//g,/\/shadow\//g],sy=/(?:>>>)|(?:\/deep\/)/g,ay="([>\\s~+[.,{:][\\s\\S]*)?$",uy=/-shadowcsshost/gim,cy=/:host/gim,py=/:host-context/gim,ly=/\/\*\s*[\s\S]*?\*\//g,hy=/\/\*\s*#\s*sourceMappingURL=[\s\S]+?\*\//,fy=/(\s*)([^;\{\}]+?)(\s*)((?:{%BLOCK%}?\s*;?)|(?:\s*;))/g,dy=/([{}])/g,yy="{",my="}",vy="%BLOCK%",gy=function(){function t(t,e){this.selector=t,this.content=e}return t}(),_y=function(){function t(t,e){this.escapedString=t,this.blocks=e}return t}(),by=this&&this.__decorate||function(t,e,n,r){var i,o=arguments.length,s=3>o?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,r);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(3>o?i(s):o>3?i(e,n,s):i(e,n))||s);return o>3&&s&&Object.defineProperty(e,n,s),s},wy=this&&this.__metadata||function(t,e){return"object"==typeof Reflect&&"function"==typeof Reflect.metadata?Reflect.metadata(t,e):void 0},Ey="%COMP%",Sy="_nghost-"+Ey,Cy="_ngcontent-"+Ey,xy=function(){function t(t,e,n,r){this.name=t,this.moduleUrl=e,this.isShimmed=n,this.valuePlaceholder=r}return t}(),Ty=function(){function t(t,e){this.componentStylesheet=t,this.externalStylesheets=e}return t}(),Py=function(){function t(t,e,n,r,i){this.statements=t,this.stylesVar=e,this.dependencies=n,this.isShimmed=r,this.meta=i}return t}(),Oy=function(){function t(t){this._urlResolver=t,this._shadowCss=new Kd}return t.prototype.compileComponent=function(t){var e=this,n=[],r=this._compileStyles(t,new xs({styles:t.template.styles,styleUrls:t.template.styleUrls,moduleUrl:w(t.type)}),!0);return t.template.externalStylesheets.forEach(function(r){var i=e._compileStyles(t,r,!1);n.push(i)}),new Ty(r,n)},t.prototype._compileStyles=function(t,n,r){for(var i=this,o=t.template.encapsulation===e.ViewEncapsulation.Emulated,s=n.styles.map(function(t){return tn(i._shimIfNeeded(t,o))}),a=[],u=0;u<n.styleUrls.length;u++){var c={reference:null};a.push(new xy(rr(null),n.styleUrls[u],o,c)),s.push(new Gh(c))}var p=rr(r?t:null),l=Ge(p).set(Ye(s,new Th(Oh,[wh.Const]))).toDeclStmt(null,[cf.Final]);return new Py([l],p,a,o,n)},t.prototype._shimIfNeeded=function(t,e){return e?this._shadowCss.shimCssText(t,Cy,Sy):t},t=by([M(),wy("design:paramtypes",[ph])],t)}(),Ay=function(){function t(t,e){this.nodeIndex=t,this.sourceAst=e}return t}(),My=new Ay(null,null),Ry=function(){function t(t){this._view=t,this._newState=My,this._currState=My,this._bodyStatements=[],this._debugEnabled=this._view.genConfig.genDebugInfo}return t.prototype._updateDebugContextIfNeeded=function(){if(this._newState.nodeIndex!==this._currState.nodeIndex||this._newState.sourceAst!==this._currState.sourceAst){var t=this._updateDebugContext(this._newState);t&&this._bodyStatements.push(t.toStmt())}},t.prototype._updateDebugContext=function(t){if(this._currState=this._newState=t,this._debugEnabled){var e=t.sourceAst?t.sourceAst.sourceSpan.start:null;return of.callMethod("debug",[tn(t.nodeIndex),e?tn(e.line):af,e?tn(e.col):af])}return null; -this._nativeError=n}return an(e,t),Object.defineProperty(e.prototype,"message",{get:function(){return this._nativeError.message},set:function(t){this._nativeError.message=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"name",{get:function(){return this._nativeError.name},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"stack",{get:function(){return this._nativeError.stack},set:function(t){this._nativeError.stack=t},enumerable:!0,configurable:!0}),e.prototype.toString=function(){return this._nativeError.toString()},e}(Error),cn=function(t){function e(e,n){t.call(this,e+" caused by: "+(n instanceof Error?n.message:n)),this.originalError=n}return an(e,t),Object.defineProperty(e.prototype,"stack",{get:function(){return(this.originalError instanceof Error?this.originalError:this._nativeError).stack},enumerable:!0,configurable:!0}),e}(un),pn=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},ln=function(t){function e(e,n,r){t.call(this,"DI Error"),this.keys=[n],this.injectors=[e],this.constructResolvingMessage=r,this.message=this.constructResolvingMessage(this.keys)}return pn(e,t),e.prototype.addKey=function(t,e){this.injectors.push(t),this.keys.push(e),this.message=this.constructResolvingMessage(this.keys)},e}(un),hn=function(t){function e(e,n){t.call(this,e,n,function(t){var e=u(t[0].token);return"No provider for "+e+"!"+T(t)})}return pn(e,t),e}(ln),fn=function(t){function e(e,n){t.call(this,e,n,function(t){return"Cannot instantiate cyclic dependency!"+T(t)})}return pn(e,t),e}(ln),dn=function(t){function e(e,n,r,i){t.call(this,"DI Error",n),this.keys=[i],this.injectors=[e]}return pn(e,t),e.prototype.addKey=function(t,e){this.injectors.push(t),this.keys.push(e)},Object.defineProperty(e.prototype,"message",{get:function(){var t=u(this.keys[0].token);return this.originalError.message+": Error during instantiation of "+t+"!"+T(this.keys)+"."},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"causeKey",{get:function(){return this.keys[0]},enumerable:!0,configurable:!0}),e}(cn),yn=function(t){function e(e){t.call(this,"Invalid provider - only instances of Provider and Type are allowed, got: "+e)}return pn(e,t),e}(un),mn=function(t){function e(n,r){t.call(this,e._genMessage(n,r))}return pn(e,t),e._genMessage=function(t,e){for(var n=[],r=0,i=e.length;i>r;r++){var o=e[r];n.push(o&&0!=o.length?o.map(u).join(" "):"?")}return"Cannot resolve all parameters for '"+u(t)+"'("+n.join(", ")+"). Make sure that all the parameters are decorated with Inject or have valid type annotations and that '"+u(t)+"' is decorated with Injectable."},e}(un),vn=function(t){function e(e){t.call(this,"Index "+e+" is out-of-bounds.")}return pn(e,t),e}(un),gn=function(t){function e(e,n){t.call(this,"Cannot mix multi providers and regular providers, got: "+e.toString()+" "+n.toString())}return pn(e,t),e}(un),_n=function(){function t(t,e){if(this.token=t,this.id=e,!t)throw new Error("Token must be defined!")}return Object.defineProperty(t.prototype,"displayName",{get:function(){return u(this.token)},enumerable:!0,configurable:!0}),t.get=function(t){return wn.get(C(t))},Object.defineProperty(t,"numberOfKeys",{get:function(){return wn.numberOfKeys},enumerable:!0,configurable:!0}),t}(),bn=function(){function t(){this._allKeys=new Map}return t.prototype.get=function(t){if(t instanceof _n)return t;if(this._allKeys.has(t))return this._allKeys.get(t);var e=new _n(t,_n.numberOfKeys);return this._allKeys.set(t,e),e},Object.defineProperty(t.prototype,"numberOfKeys",{get:function(){return this._allKeys.size},enumerable:!0,configurable:!0}),t}(),wn=new bn,En=Function,Sn=/^function\s+\S+\(\)\s*{\s*("use strict";)?\s*(return\s+)?\S+\.apply\(this,\s*arguments\)/,Cn=function(){function t(t){this._reflect=t||he.Reflect}return t.prototype.isReflectionEnabled=function(){return!0},t.prototype.factory=function(t){return function(){for(var e=[],n=0;n<arguments.length;n++)e[n-0]=arguments[n];return new(t.bind.apply(t,[void 0].concat(e)))}},t.prototype._zipTypesAndAnnotations=function(t,e){var n;n=new Array("undefined"==typeof t?e.length:t.length);for(var r=0;r<n.length;r++)n[r]="undefined"==typeof t?[]:t[r]!=Object?[t[r]]:[],e&&s(e[r])&&(n[r]=n[r].concat(e[r]));return n},t.prototype._ownParameters=function(t,e){if(Sn.exec(t.toString()))return null;if(t.parameters&&t.parameters!==e.parameters)return t.parameters;var n=t.ctorParameters;if(n&&n!==e.ctorParameters){var r="function"==typeof n?n():n,i=r.map(function(t){return t&&t.type}),o=r.map(function(t){return t&&O(t.decorators)});return this._zipTypesAndAnnotations(i,o)}if(s(this._reflect)&&s(this._reflect.getOwnMetadata)){var o=this._reflect.getOwnMetadata("parameters",t),i=this._reflect.getOwnMetadata("design:paramtypes",t);if(i||o)return this._zipTypesAndAnnotations(i,o)}return new Array(t.length).fill(void 0)},t.prototype.parameters=function(t){if(!P(t))return[];var e=A(t),n=this._ownParameters(t,e);return n||e===Object||(n=this.parameters(e)),n||[]},t.prototype._ownAnnotations=function(t,e){if(t.annotations&&t.annotations!==e.annotations){var n=t.annotations;return"function"==typeof n&&n.annotations&&(n=n.annotations),n}return t.decorators&&t.decorators!==e.decorators?O(t.decorators):this._reflect&&this._reflect.getOwnMetadata?this._reflect.getOwnMetadata("annotations",t):void 0},t.prototype.annotations=function(t){if(!P(t))return[];var e=A(t),n=this._ownAnnotations(t,e)||[],r=e!==Object?this.annotations(e):[];return r.concat(n)},t.prototype._ownPropMetadata=function(t,e){if(t.propMetadata&&t.propMetadata!==e.propMetadata){var n=t.propMetadata;return"function"==typeof n&&n.propMetadata&&(n=n.propMetadata),n}if(t.propDecorators&&t.propDecorators!==e.propDecorators){var r=t.propDecorators,i={};return Object.keys(r).forEach(function(t){i[t]=O(r[t])}),i}return this._reflect&&this._reflect.getOwnMetadata?this._reflect.getOwnMetadata("propMetadata",t):void 0},t.prototype.propMetadata=function(t){if(!P(t))return{};var e=A(t),n={};if(e!==Object){var r=this.propMetadata(e);Object.keys(r).forEach(function(t){n[t]=r[t]})}var i=this._ownPropMetadata(t,e);return i&&Object.keys(i).forEach(function(t){var e=[];n.hasOwnProperty(t)&&e.push.apply(e,n[t]),e.push.apply(e,i[t]),n[t]=e}),n},t.prototype.hasLifecycleHook=function(t,e){return t instanceof En&&e in t.prototype},t.prototype.getter=function(t){return new Function("o","return o."+t+";")},t.prototype.setter=function(t){return new Function("o","v","return o."+t+" = v;")},t.prototype.method=function(t){var e="if (!o."+t+") throw new Error('\""+t+"\" is undefined');\n return o."+t+".apply(o, args);";return new Function("o","args",e)},t.prototype.importUri=function(t){return"object"==typeof t&&t.filePath?t.filePath:"./"+u(t)},t.prototype.resolveIdentifier=function(t,e,n){return n},t.prototype.resolveEnum=function(t,e){return t[e]},t}(),xn=function(){function t(){}return t.prototype.parameters=function(){},t.prototype.annotations=function(){},t.prototype.propMetadata=function(){},t.prototype.importUri=function(){},t.prototype.resolveIdentifier=function(){},t.prototype.resolveEnum=function(){},t}(),Tn=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},Pn=function(t){function e(e){t.call(this),this.reflectionCapabilities=e}return Tn(e,t),e.prototype.updateCapabilities=function(t){this.reflectionCapabilities=t},e.prototype.factory=function(t){return this.reflectionCapabilities.factory(t)},e.prototype.parameters=function(t){return this.reflectionCapabilities.parameters(t)},e.prototype.annotations=function(t){return this.reflectionCapabilities.annotations(t)},e.prototype.propMetadata=function(t){return this.reflectionCapabilities.propMetadata(t)},e.prototype.hasLifecycleHook=function(t,e){return this.reflectionCapabilities.hasLifecycleHook(t,e)},e.prototype.getter=function(t){return this.reflectionCapabilities.getter(t)},e.prototype.setter=function(t){return this.reflectionCapabilities.setter(t)},e.prototype.method=function(t){return this.reflectionCapabilities.method(t)},e.prototype.importUri=function(t){return this.reflectionCapabilities.importUri(t)},e.prototype.resolveIdentifier=function(t,e,n){return this.reflectionCapabilities.resolveIdentifier(t,e,n)},e.prototype.resolveEnum=function(t,e){return this.reflectionCapabilities.resolveEnum(t,e)},e}(xn),On=new Pn(new Cn),An=function(){function t(t,e,n){this.key=t,this.optional=e,this.visibility=n}return t.fromKey=function(e){return new t(e,!1,null)},t}(),Mn=[],Rn=function(){function t(t,e,n){this.key=t,this.resolvedFactories=e,this.multiProvider=n}return Object.defineProperty(t.prototype,"resolvedFactory",{get:function(){return this.resolvedFactories[0]},enumerable:!0,configurable:!0}),t}(),kn=function(){function t(t,e){this.factory=t,this.dependencies=e}return t}(),Nn=new Object,In=function(){function t(){}return t.resolve=function(t){return k(t)},t.resolveAndCreate=function(e,n){void 0===n&&(n=null);var r=t.resolve(e);return t.fromResolvedProviders(r,n)},t.fromResolvedProviders=function(t,e){return void 0===e&&(e=null),new Dn(t,e)},t.prototype.parent=function(){},t.prototype.resolveAndCreateChild=function(){},t.prototype.createChildFromResolved=function(){},t.prototype.resolveAndInstantiate=function(){},t.prototype.instantiateResolved=function(){},t.prototype.get=function(){},t}(),Dn=function(){function t(t,e){void 0===e&&(e=null),this._constructionCounter=0,this._providers=t,this._parent=e;var n=t.length;this.keyIds=new Array(n),this.objs=new Array(n);for(var r=0;n>r;r++)this.keyIds[r]=t[r].key.id,this.objs[r]=Nn}return t.prototype.get=function(t,e){return void 0===e&&(e=rn),this._getByKey(_n.get(t),null,e)},Object.defineProperty(t.prototype,"parent",{get:function(){return this._parent},enumerable:!0,configurable:!0}),t.prototype.resolveAndCreateChild=function(t){var e=In.resolve(t);return this.createChildFromResolved(e)},t.prototype.createChildFromResolved=function(e){var n=new t(e);return n._parent=this,n},t.prototype.resolveAndInstantiate=function(t){return this.instantiateResolved(In.resolve([t])[0])},t.prototype.instantiateResolved=function(t){return this._instantiateProvider(t)},t.prototype.getProviderAtIndex=function(t){if(0>t||t>=this._providers.length)throw new vn(t);return this._providers[t]},t.prototype._new=function(t){if(this._constructionCounter++>this._getMaxNumberOfObjects())throw new fn(this,t.key);return this._instantiateProvider(t)},t.prototype._getMaxNumberOfObjects=function(){return this.objs.length},t.prototype._instantiateProvider=function(t){if(t.multiProvider){for(var e=new Array(t.resolvedFactories.length),n=0;n<t.resolvedFactories.length;++n)e[n]=this._instantiate(t,t.resolvedFactories[n]);return e}return this._instantiate(t,t.resolvedFactories[0])},t.prototype._instantiate=function(t,e){var n,r=this,i=e.factory;try{n=e.dependencies.map(function(t){return r._getByReflectiveDependency(t)})}catch(o){throw(o instanceof ln||o instanceof dn)&&o.addKey(this,t.key),o}var s;try{s=i.apply(void 0,n)}catch(o){throw new dn(this,o,o.stack,t.key)}return s},t.prototype._getByReflectiveDependency=function(t){return this._getByKey(t.key,t.visibility,t.optional?null:rn)},t.prototype._getByKey=function(t,e,n){return t===jn?this:e instanceof _e?this._getByKeySelf(t,n):this._getByKeyDefault(t,n,e)},t.prototype._getObjByKeyId=function(t){for(var e=0;e<this.keyIds.length;e++)if(this.keyIds[e]===t)return this.objs[e]===Nn&&(this.objs[e]=this._new(this._providers[e])),this.objs[e];return Nn},t.prototype._throwOrNull=function(t,e){if(e!==rn)return e;throw new hn(this,t)},t.prototype._getByKeySelf=function(t,e){var n=this._getObjByKeyId(t.id);return n!==Nn?n:this._throwOrNull(t,e)},t.prototype._getByKeyDefault=function(e,n,r){var i;for(i=r instanceof be?this._parent:this;i instanceof t;){var o=i,s=o._getObjByKeyId(e.id);if(s!==Nn)return s;i=o._parent}return null!==i?i.get(e.token,n):this._throwOrNull(e,n)},Object.defineProperty(t.prototype,"displayName",{get:function(){var t=F(this,function(t){return' "'+t.key.displayName+'" '}).join(", ");return"ReflectiveInjector(providers: ["+t+"])"},enumerable:!0,configurable:!0}),t.prototype.toString=function(){return this.displayName},t}(),jn=_n.get(sn),Ln=function(){function t(t){void 0===t&&(t=!0),this._console=console,this.rethrowError=t}return t.prototype.handleError=function(t){var e=this._findOriginalError(t),n=this._findOriginalStack(t),r=this._findContext(t);if(this._console.error("EXCEPTION: "+this._extractMessage(t)),e&&this._console.error("ORIGINAL EXCEPTION: "+this._extractMessage(e)),n&&(this._console.error("ORIGINAL STACKTRACE:"),this._console.error(n)),r&&(this._console.error("ERROR CONTEXT:"),this._console.error(r)),this.rethrowError)throw t},t.prototype._extractMessage=function(t){return t instanceof Error?t.message:t.toString()},t.prototype._findContext=function(t){return t?t.context?t.context:this._findContext(t.originalError):null},t.prototype._findOriginalError=function(t){for(var e=t.originalError;e&&e.originalError;)e=e.originalError;return e},t.prototype._findOriginalStack=function(t){if(!(t instanceof Error))return null;for(var e=t,n=e.stack;e instanceof Error&&e.originalError;)e=e.originalError,e instanceof Error&&e.stack&&(n=e.stack);return n},t}(),Vn=function(){function t(){}return t.merge=function(t,e){for(var n={},r=0,i=Object.keys(t);r<i.length;r++){var o=i[r];n[o]=t[o]}for(var s=0,a=Object.keys(e);s<a.length;s++){var o=a[s];n[o]=e[o]}return n},t.equals=function(t,e){var n=Object.keys(t),r=Object.keys(e);if(n.length!=r.length)return!1;for(var i=0;i<n.length;i++){var o=n[i];if(t[o]!==e[o])return!1}return!0},t}(),Fn=function(){function t(){}return t.findLast=function(t,e){for(var n=t.length-1;n>=0;n--)if(e(t[n]))return t[n];return null},t.removeAll=function(t,e){for(var n=0;n<e.length;++n){var r=t.indexOf(e[n]);r>-1&&t.splice(r,1)}},t.remove=function(t,e){var n=t.indexOf(e);return n>-1?(t.splice(n,1),!0):!1},t.equals=function(t,e){if(t.length!=e.length)return!1;for(var n=0;n<t.length;++n)if(t[n]!==e[n])return!1;return!0},t.flatten=function(e){return e.reduce(function(e,n){var r=Array.isArray(n)?t.flatten(n):n;return e.concat(r)},[])},t}(),Un=new Ee("Application Initializer"),Bn=function(){function t(t){var e=this;this._done=!1;var n=[];if(t)for(var r=0;r<t.length;r++){var i=t[r]();q(i)&&n.push(i)}this._donePromise=Promise.all(n).then(function(){e._done=!0}),0===n.length&&(this._done=!0)}return Object.defineProperty(t.prototype,"done",{get:function(){return this._done},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"donePromise",{get:function(){return this._donePromise},enumerable:!0,configurable:!0}),t.decorators=[{type:ge}],t.ctorParameters=function(){return[{type:Array,decorators:[{type:me,args:[Un]},{type:ve}]}]},t}(),Hn=new Ee("AppId"),qn={provide:Hn,useFactory:W,deps:[]},zn=new Ee("Platform Initializer"),Wn=new Ee("appBootstrapListener"),Gn=new Ee("Application Packages Root URL"),Kn=function(){function t(){}return t.prototype.log=function(t){l(t)},t.prototype.warn=function(t){h(t)},t.decorators=[{type:ge}],t.ctorParameters=function(){return[]},t}(),Xn=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},Qn=function(t){function e(e){t.call(this,"Can't compile synchronously as "+u(e)+" is still being loaded!"),this.compType=e}return Xn(e,t),e}(un),Yn=function(){function t(t,e){this.ngModuleFactory=t,this.componentFactories=e}return t}(),$n=function(){function t(){}return t.prototype.compileModuleSync=function(){throw K()},t.prototype.compileModuleAsync=function(){throw K()},t.prototype.compileModuleAndAllComponentsSync=function(){throw K()},t.prototype.compileModuleAndAllComponentsAsync=function(){throw K()},t.prototype.getNgContentSelectors=function(){throw K()},t.prototype.clearCache=function(){},t.prototype.clearCacheFor=function(){},t.decorators=[{type:ge}],t.ctorParameters=function(){return[]},t}(),Zn=new Ee("compilerOptions"),Jn=function(){function t(){}return t.prototype.createCompiler=function(){},t}(),tr=function(){function t(t){this.nativeElement=t}return t}(),er=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},nr=function(t){function e(e){void 0===e&&(e=!1),t.call(this),this.__isAsync=e}return er(e,t),e.prototype.emit=function(e){t.prototype.next.call(this,e)},e.prototype.subscribe=function(e,n,r){var i,o=function(){return null},s=function(){return null};return e&&"object"==typeof e?(i=this.__isAsync?function(t){setTimeout(function(){return e.next(t)})}:function(t){e.next(t)},e.error&&(o=this.__isAsync?function(t){setTimeout(function(){return e.error(t)})}:function(t){e.error(t)}),e.complete&&(s=this.__isAsync?function(){setTimeout(function(){return e.complete()})}:function(){e.complete()})):(i=this.__isAsync?function(t){setTimeout(function(){return e(t)})}:function(t){e(t)},n&&(o=this.__isAsync?function(t){setTimeout(function(){return n(t)})}:function(t){n(t)}),r&&(s=this.__isAsync?function(){setTimeout(function(){return r()})}:function(){r()})),t.prototype.subscribe.call(this,i,o,s)},e}(n.Subject),rr=function(){function t(t){var e=t.enableLongStackTrace,n=void 0===e?!1:e;if(this._hasPendingMicrotasks=!1,this._hasPendingMacrotasks=!1,this._isStable=!0,this._nesting=0,this._onUnstable=new nr(!1),this._onMicrotaskEmpty=new nr(!1),this._onStable=new nr(!1),this._onErrorEvents=new nr(!1),"undefined"==typeof Zone)throw new Error("Angular requires Zone.js prolyfill.");Zone.assertZonePatched(),this.outer=this.inner=Zone.current,Zone.wtfZoneSpec&&(this.inner=this.inner.fork(Zone.wtfZoneSpec)),n&&Zone.longStackTraceZoneSpec&&(this.inner=this.inner.fork(Zone.longStackTraceZoneSpec)),this.forkInnerZoneWithAngularBehavior()}return t.isInAngularZone=function(){return Zone.current.get("isAngularZone")===!0},t.assertInAngularZone=function(){if(!t.isInAngularZone())throw new Error("Expected to be in Angular Zone, but it is not!")},t.assertNotInAngularZone=function(){if(t.isInAngularZone())throw new Error("Expected to not be in Angular Zone, but it is!")},t.prototype.run=function(t){return this.inner.run(t)},t.prototype.runGuarded=function(t){return this.inner.runGuarded(t)},t.prototype.runOutsideAngular=function(t){return this.outer.run(t)},Object.defineProperty(t.prototype,"onUnstable",{get:function(){return this._onUnstable},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"onMicrotaskEmpty",{get:function(){return this._onMicrotaskEmpty},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"onStable",{get:function(){return this._onStable},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"onError",{get:function(){return this._onErrorEvents},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isStable",{get:function(){return this._isStable},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"hasPendingMicrotasks",{get:function(){return this._hasPendingMicrotasks},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"hasPendingMacrotasks",{get:function(){return this._hasPendingMacrotasks},enumerable:!0,configurable:!0}),t.prototype.checkStable=function(){var t=this;if(0==this._nesting&&!this._hasPendingMicrotasks&&!this._isStable)try{this._nesting++,this._onMicrotaskEmpty.emit(null)}finally{if(this._nesting--,!this._hasPendingMicrotasks)try{this.runOutsideAngular(function(){return t._onStable.emit(null)})}finally{this._isStable=!0}}},t.prototype.forkInnerZoneWithAngularBehavior=function(){var t=this;this.inner=this.inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:function(e,n,r,i,o,s){try{return t.onEnter(),e.invokeTask(r,i,o,s)}finally{t.onLeave()}},onInvoke:function(e,n,r,i,o,s,a){try{return t.onEnter(),e.invoke(r,i,o,s,a)}finally{t.onLeave()}},onHasTask:function(e,n,r,i){e.hasTask(r,i),n===r&&("microTask"==i.change?t.setHasMicrotask(i.microTask):"macroTask"==i.change&&t.setHasMacrotask(i.macroTask))},onHandleError:function(e,n,r,i){return e.handleError(r,i),t.triggerError(i),!1}})},t.prototype.onEnter=function(){this._nesting++,this._isStable&&(this._isStable=!1,this._onUnstable.emit(null))},t.prototype.onLeave=function(){this._nesting--,this.checkStable()},t.prototype.setHasMicrotask=function(t){this._hasPendingMicrotasks=t,this.checkStable()},t.prototype.setHasMacrotask=function(t){this._hasPendingMacrotasks=t},t.prototype.triggerError=function(t){this._onErrorEvents.emit(t)},t}(),ir=function(){function t(t){this._zone=t,this.entries=[]}return t.prototype.enqueue=function(t){this.entries.push(t)},t.prototype.flush=function(){var t=this;this.entries.length&&this._zone.runOutsideAngular(function(){Promise.resolve(null).then(function(){return t._triggerAnimations()})})},t.prototype._triggerAnimations=function(){for(rr.assertNotInAngularZone();this.entries.length;){var t=this.entries.shift();t.hasStarted()||t.play()}},t.decorators=[{type:ge}],t.ctorParameters=function(){return[{type:rr}]},t}(),or=function(){function t(){}return t.prototype.supports=function(t){return U(t)},t.prototype.create=function(t,e){return new ar(e)},t}(),sr=function(t,e){return e},ar=function(){function t(t){this._trackByFn=t,this._length=null,this._collection=null,this._linkedRecords=null,this._unlinkedRecords=null,this._previousItHead=null,this._itHead=null,this._itTail=null,this._additionsHead=null,this._additionsTail=null,this._movesHead=null,this._movesTail=null,this._removalsHead=null,this._removalsTail=null,this._identityChangesHead=null,this._identityChangesTail=null,this._trackByFn=this._trackByFn||sr}return Object.defineProperty(t.prototype,"collection",{get:function(){return this._collection},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"length",{get:function(){return this._length},enumerable:!0,configurable:!0}),t.prototype.forEachItem=function(t){var e;for(e=this._itHead;null!==e;e=e._next)t(e)},t.prototype.forEachOperation=function(t){for(var e=this._itHead,n=this._removalsHead,r=0,i=null;e||n;){var o=!n||e&&e.currentIndex<X(n,r,i)?e:n,s=X(o,r,i),a=o.currentIndex;if(o===n)r--,n=n._nextRemoved;else if(e=e._next,null==o.previousIndex)r++;else{i||(i=[]);var u=s-r,c=a-r;if(u!=c){for(var p=0;u>p;p++){var l=p<i.length?i[p]:i[p]=0,h=l+p;h>=c&&u>h&&(i[p]=l+1)}var f=o.previousIndex;i[f]=c-u}}s!==a&&t(o,s,a)}},t.prototype.forEachPreviousItem=function(t){var e;for(e=this._previousItHead;null!==e;e=e._nextPrevious)t(e)},t.prototype.forEachAddedItem=function(t){var e;for(e=this._additionsHead;null!==e;e=e._nextAdded)t(e)},t.prototype.forEachMovedItem=function(t){var e;for(e=this._movesHead;null!==e;e=e._nextMoved)t(e)},t.prototype.forEachRemovedItem=function(t){var e;for(e=this._removalsHead;null!==e;e=e._nextRemoved)t(e)},t.prototype.forEachIdentityChange=function(t){var e;for(e=this._identityChangesHead;null!==e;e=e._nextIdentityChange)t(e)},t.prototype.diff=function(t){if(a(t)&&(t=[]),!U(t))throw new Error("Error trying to diff '"+t+"'");return this.check(t)?this:null},t.prototype.onDestroy=function(){},t.prototype.check=function(t){var e=this;this._reset();var n,r,i,o=this._itHead,s=!1;if(Array.isArray(t)){var a=t;this._length=t.length;for(var u=0;u<this._length;u++)r=a[u],i=this._trackByFn(u,r),null!==o&&c(o.trackById,i)?(s&&(o=this._verifyReinsertion(o,r,i,u)),c(o.item,r)||this._addIdentityChange(o,r)):(o=this._mismatch(o,r,i,u),s=!0),o=o._next}else n=0,H(t,function(t){i=e._trackByFn(n,t),null!==o&&c(o.trackById,i)?(s&&(o=e._verifyReinsertion(o,t,i,n)),c(o.item,t)||e._addIdentityChange(o,t)):(o=e._mismatch(o,t,i,n),s=!0),o=o._next,n++}),this._length=n;return this._truncate(o),this._collection=t,this.isDirty},Object.defineProperty(t.prototype,"isDirty",{get:function(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead},enumerable:!0,configurable:!0}),t.prototype._reset=function(){if(this.isDirty){var t=void 0,e=void 0;for(t=this._previousItHead=this._itHead;null!==t;t=t._next)t._nextPrevious=t._next;for(t=this._additionsHead;null!==t;t=t._nextAdded)t.previousIndex=t.currentIndex;for(this._additionsHead=this._additionsTail=null,t=this._movesHead;null!==t;t=e)t.previousIndex=t.currentIndex,e=t._nextMoved;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}},t.prototype._mismatch=function(t,e,n,r){var i;return null===t?i=this._itTail:(i=t._prev,this._remove(t)),t=null===this._linkedRecords?null:this._linkedRecords.get(n,r),null!==t?(c(t.item,e)||this._addIdentityChange(t,e),this._moveAfter(t,i,r)):(t=null===this._unlinkedRecords?null:this._unlinkedRecords.get(n),null!==t?(c(t.item,e)||this._addIdentityChange(t,e),this._reinsertAfter(t,i,r)):t=this._addAfter(new ur(e,n),i,r)),t},t.prototype._verifyReinsertion=function(t,e,n,r){var i=null===this._unlinkedRecords?null:this._unlinkedRecords.get(n);return null!==i?t=this._reinsertAfter(i,t._prev,r):t.currentIndex!=r&&(t.currentIndex=r,this._addToMoves(t,r)),t},t.prototype._truncate=function(t){for(;null!==t;){var e=t._next;this._addToRemovals(this._unlink(t)),t=e}null!==this._unlinkedRecords&&this._unlinkedRecords.clear(),null!==this._additionsTail&&(this._additionsTail._nextAdded=null),null!==this._movesTail&&(this._movesTail._nextMoved=null),null!==this._itTail&&(this._itTail._next=null),null!==this._removalsTail&&(this._removalsTail._nextRemoved=null),null!==this._identityChangesTail&&(this._identityChangesTail._nextIdentityChange=null)},t.prototype._reinsertAfter=function(t,e,n){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(t);var r=t._prevRemoved,i=t._nextRemoved;return null===r?this._removalsHead=i:r._nextRemoved=i,null===i?this._removalsTail=r:i._prevRemoved=r,this._insertAfter(t,e,n),this._addToMoves(t,n),t},t.prototype._moveAfter=function(t,e,n){return this._unlink(t),this._insertAfter(t,e,n),this._addToMoves(t,n),t},t.prototype._addAfter=function(t,e,n){return this._insertAfter(t,e,n),this._additionsTail=null===this._additionsTail?this._additionsHead=t:this._additionsTail._nextAdded=t,t},t.prototype._insertAfter=function(t,e,n){var r=null===e?this._itHead:e._next;return t._next=r,t._prev=e,null===r?this._itTail=t:r._prev=t,null===e?this._itHead=t:e._next=t,null===this._linkedRecords&&(this._linkedRecords=new pr),this._linkedRecords.put(t),t.currentIndex=n,t},t.prototype._remove=function(t){return this._addToRemovals(this._unlink(t))},t.prototype._unlink=function(t){null!==this._linkedRecords&&this._linkedRecords.remove(t);var e=t._prev,n=t._next;return null===e?this._itHead=n:e._next=n,null===n?this._itTail=e:n._prev=e,t},t.prototype._addToMoves=function(t,e){return t.previousIndex===e?t:(this._movesTail=null===this._movesTail?this._movesHead=t:this._movesTail._nextMoved=t,t)},t.prototype._addToRemovals=function(t){return null===this._unlinkedRecords&&(this._unlinkedRecords=new pr),this._unlinkedRecords.put(t),t.currentIndex=null,t._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=t,t._prevRemoved=null):(t._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=t),t},t.prototype._addIdentityChange=function(t,e){return t.item=e,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=t:this._identityChangesTail._nextIdentityChange=t,t},t.prototype.toString=function(){var t=[];this.forEachItem(function(e){return t.push(e)});var e=[];this.forEachPreviousItem(function(t){return e.push(t)});var n=[];this.forEachAddedItem(function(t){return n.push(t)});var r=[];this.forEachMovedItem(function(t){return r.push(t)});var i=[];this.forEachRemovedItem(function(t){return i.push(t)});var o=[];return this.forEachIdentityChange(function(t){return o.push(t)}),"collection: "+t.join(", ")+"\nprevious: "+e.join(", ")+"\nadditions: "+n.join(", ")+"\nmoves: "+r.join(", ")+"\nremovals: "+i.join(", ")+"\nidentityChanges: "+o.join(", ")+"\n"},t}(),ur=function(){function t(t,e){this.item=t,this.trackById=e,this.currentIndex=null,this.previousIndex=null,this._nextPrevious=null,this._prev=null,this._next=null,this._prevDup=null,this._nextDup=null,this._prevRemoved=null,this._nextRemoved=null,this._nextAdded=null,this._nextMoved=null,this._nextIdentityChange=null}return t.prototype.toString=function(){return this.previousIndex===this.currentIndex?u(this.item):u(this.item)+"["+u(this.previousIndex)+"->"+u(this.currentIndex)+"]"},t}(),cr=function(){function t(){this._head=null,this._tail=null}return t.prototype.add=function(t){null===this._head?(this._head=this._tail=t,t._nextDup=null,t._prevDup=null):(this._tail._nextDup=t,t._prevDup=this._tail,t._nextDup=null,this._tail=t)},t.prototype.get=function(t,e){var n;for(n=this._head;null!==n;n=n._nextDup)if((null===e||e<n.currentIndex)&&c(n.trackById,t))return n;return null},t.prototype.remove=function(t){var e=t._prevDup,n=t._nextDup;return null===e?this._head=n:e._nextDup=n,null===n?this._tail=e:n._prevDup=e,null===this._head},t}(),pr=function(){function t(){this.map=new Map}return t.prototype.put=function(t){var e=t.trackById,n=this.map.get(e);n||(n=new cr,this.map.set(e,n)),n.add(t)},t.prototype.get=function(t,e){void 0===e&&(e=null);var n=t,r=this.map.get(n);return r?r.get(t,e):null},t.prototype.remove=function(t){var e=t.trackById,n=this.map.get(e);return n.remove(t)&&this.map["delete"](e),t},Object.defineProperty(t.prototype,"isEmpty",{get:function(){return 0===this.map.size},enumerable:!0,configurable:!0}),t.prototype.clear=function(){this.map.clear()},t.prototype.toString=function(){return"_DuplicateMap("+u(this.map)+")"},t}(),lr=function(){function t(){}return t.prototype.supports=function(t){return t instanceof Map||p(t)},t.prototype.create=function(){return new hr},t}(),hr=function(){function t(){this._records=new Map,this._mapHead=null,this._previousMapHead=null,this._changesHead=null,this._changesTail=null,this._additionsHead=null,this._additionsTail=null,this._removalsHead=null,this._removalsTail=null}return Object.defineProperty(t.prototype,"isDirty",{get:function(){return null!==this._additionsHead||null!==this._changesHead||null!==this._removalsHead},enumerable:!0,configurable:!0}),t.prototype.forEachItem=function(t){var e;for(e=this._mapHead;null!==e;e=e._next)t(e)},t.prototype.forEachPreviousItem=function(t){var e;for(e=this._previousMapHead;null!==e;e=e._nextPrevious)t(e)},t.prototype.forEachChangedItem=function(t){var e;for(e=this._changesHead;null!==e;e=e._nextChanged)t(e)},t.prototype.forEachAddedItem=function(t){var e;for(e=this._additionsHead;null!==e;e=e._nextAdded)t(e)},t.prototype.forEachRemovedItem=function(t){var e;for(e=this._removalsHead;null!==e;e=e._nextRemoved)t(e)},t.prototype.diff=function(t){if(t){if(!(t instanceof Map||p(t)))throw new Error("Error trying to diff '"+t+"'")}else t=new Map;return this.check(t)?this:null},t.prototype.onDestroy=function(){},t.prototype.check=function(t){var e=this;this._reset();var n=this._records,r=this._mapHead,i=null,o=null,s=!1;return this._forEach(t,function(t,a){var u;r&&a===r.key?(u=r,e._maybeAddToChanges(u,t)):(s=!0,null!==r&&(e._removeFromSeq(i,r),e._addToRemovals(r)),n.has(a)?(u=n.get(a),e._maybeAddToChanges(u,t)):(u=new fr(a),n.set(a,u),u.currentValue=t,e._addToAdditions(u))),s&&(e._isInRemovals(u)&&e._removeFromRemovals(u),null==o?e._mapHead=u:o._next=u),i=r,o=u,r=r&&r._next}),this._truncate(i,r),this.isDirty},t.prototype._reset=function(){if(this.isDirty){var t=void 0;for(t=this._previousMapHead=this._mapHead;null!==t;t=t._next)t._nextPrevious=t._next;for(t=this._changesHead;null!==t;t=t._nextChanged)t.previousValue=t.currentValue; +},t.prototype.resetDebugInfoExpr=function(t,e){var n=this._updateDebugContext(new Ay(t,e));return n||af},t.prototype.resetDebugInfo=function(t,e){this._newState=new Ay(t,e)},t.prototype.push=function(){for(var t=[],e=0;e<arguments.length;e++)t[e-0]=arguments[e];this.addStmts(t)},t.prototype.addStmt=function(t){this._updateDebugContextIfNeeded(),this._bodyStatements.push(t)},t.prototype.addStmts=function(t){this._updateDebugContextIfNeeded(),(e=this._bodyStatements).push.apply(e,t);var e},t.prototype.finish=function(){return this._bodyStatements},t.prototype.isEmpty=function(){return 0===this._bodyStatements.length},t}(),ky=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},Ny=function(t){function e(e,n){t.call(this),this._viewExpr=e,this._view=n}return ky(e,t),e.prototype._isThis=function(t){return t instanceof Lh&&t.builtin===jh.This},e.prototype.visitReadVarExpr=function(t){return this._isThis(t)?this._viewExpr:t},e.prototype.visitReadPropExpr=function(e,n){return this._isThis(e.receiver)&&(this._view.fields.some(function(t){return t.name==e.name})||this._view.getters.some(function(t){return t.name==e.name}))?this._viewExpr.cast(this._view.classType).prop(e.name):t.prototype.visitReadPropExpr.call(this,e,n)},e}(Sf),Iy=function(){function t(t,e){this.view=t,this.values=e}return t}(),Dy=function(){function t(t,e,n,r){this.meta=t,this.queryList=e,this.ownerDirectiveExpression=n,this.view=r,this._values=new Iy(r,[])}return t.prototype.addValue=function(t,e){for(var n=e,r=[];n&&n!==this.view;){var i=n.declarationElement;r.unshift(i),n=i.view}var o=ir(this.queryList,e,this.view),s=this._values;r.forEach(function(t){var e=s.values.length>0?s.values[s.values.length-1]:null;if(e instanceof Iy&&e.view===t.embeddedView)s=e;else{var n=new Iy(t.embeddedView,[]);s.values.push(n),s=n}}),s.values.push(t),r.length>0&&e.dirtyParentQueriesMethod.addStmt(o.callMethod("setDirty",[]).toStmt())},t.prototype._isStatic=function(){return!this._values.values.some(function(t){return t instanceof Iy})},t.prototype.generateStatements=function(t,e){var n=ur(this._values),r=[this.queryList.callMethod("reset",[Ye(n)]).toStmt()];if(this.ownerDirectiveExpression){var i=this.meta.first?this.queryList.prop("first"):this.queryList;r.push(this.ownerDirectiveExpression.prop(this.meta.propertyName).set(i).toStmt())}this.meta.first||r.push(this.queryList.callMethod("notifyOnChanges",[]).toStmt()),this.meta.first&&this._isStatic()?t.addStmts(r):e.addStmt(new bf(this.queryList.prop("dirty"),r))},t}(),jy=function(){function t(){}return t.fromValue=function(t){return un(_p.ViewType,t)},t}(),Ly=function(){function t(){}return t.fromValue=function(t){return un(_p.ViewEncapsulation,t)},t}(),Vy=function(){function t(){}return t.fromValue=function(t){return un(_p.ChangeDetectorStatus,t)},t}(),Fy=function(){function t(){}return t.viewUtils=Ge("viewUtils"),t.parentView=Ge("parentView"),t.parentIndex=Ge("parentIndex"),t.parentElement=Ge("parentElement"),t}(),Uy=function(){function t(){}return t.renderer=of.prop("renderer"),t.viewUtils=of.prop("viewUtils"),t}(),By=function(){function t(){}return t.token=Ge("token"),t.requestNodeIndex=Ge("requestNodeIndex"),t.notFoundResult=Ge("notFoundResult"),t}(),Hy=function(){function t(){}return t.throwOnChange=Ge("throwOnChange"),t.changes=Ge("changes"),t.changed=Ge("changed"),t}(),qy=function(){function t(t,e,n){this.comp=t,this.name=e,this.placeholder=n}return t}(),zy=function(){function t(t,e){this.comp=t,this.placeholder=e}return t}(),Wy=function(){function t(t,e,n){this.dir=t,this.name=e,this.placeholder=n}return t}(),Gy=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},Ky=function(){function t(t,e,n,r,i){this.parent=t,this.view=e,this.nodeIndex=n,this.renderNode=r,this.sourceAst=i}return t.prototype.isNull=function(){return!this.renderNode},t.prototype.isRootElement=function(){return this.view!=this.parent.view},t}(),Xy=function(t){function e(e,n,r,i,o,s,a,u,c,p,l){var h=this;t.call(this,e,n,r,i,o),this.component=s,this._directives=a,this._resolvedProvidersArray=u,this.hasViewContainer=c,this.hasEmbeddedView=p,this.compViewExpr=null,this.instances=new Map,this.directiveWrapperInstance=new Map,this._queryCount=0,this._queries=new Map,this.contentNodesByNgContentIndex=null,this.referenceTokens={},l.forEach(function(t){return h.referenceTokens[t.name]=t.value}),this.elementRef=Ke(Yt(_p.ElementRef)).instantiate([this.renderNode]),this.instances.set(Qt(_p.ElementRef),this.elementRef),this.instances.set(Qt(_p.Injector),of.callMethod("injector",[tn(this.nodeIndex)])),this.instances.set(Qt(_p.Renderer),of.prop("renderer")),(this.hasViewContainer||this.hasEmbeddedView)&&this._createViewContainer(),this.component&&this._createComponentFactoryResolver()}return Gy(e,t),e.createNull=function(){return new e(null,null,null,null,null,null,[],[],!1,!1,[])},e.prototype._createViewContainer=function(){var t="_vc_"+this.nodeIndex,e=this.isRootElement()?null:this.parent.nodeIndex;this.view.fields.push(new mf(t,Xe(Yt(_p.ViewContainer)),[cf.Private]));var n=of.prop(t).set(Ke(Yt(_p.ViewContainer)).instantiate([tn(this.nodeIndex),tn(e),of,this.renderNode])).toStmt();this.view.createMethod.addStmt(n),this.viewContainer=of.prop(t),this.instances.set(Qt(_p.ViewContainer),this.viewContainer),this.view.viewContainers.push(this.viewContainer)},e.prototype._createComponentFactoryResolver=function(){var t=this,e=this.component.entryComponents.map(function(e){var n={reference:null};return t.view.targetDependencies.push(new zy(e,n)),n});if(e&&0!==e.length){var n=Ke(Yt(_p.CodegenComponentFactoryResolver)).instantiate([Ye(e.map(function(t){return Ke(t)})),or(this.view,Zt(_p.ComponentFactoryResolver),!1)]),r={token:Zt(_p.ComponentFactoryResolver),useValue:n};this._resolvedProvidersArray.unshift(new Qi(r.token,!1,!0,[r],Yi.PrivateService,[],this.sourceAst.sourceSpan))}},e.prototype.setComponentView=function(t){this.compViewExpr=t,this.contentNodesByNgContentIndex=new Array(this.component.template.ngContentSelectors.length);for(var e=0;e<this.contentNodesByNgContentIndex.length;e++)this.contentNodesByNgContentIndex[e]=[]},e.prototype.setEmbeddedView=function(t){if(this.embeddedView=t,r(t)){var e=Ke(Yt(_p.TemplateRef_)).instantiate([of,tn(this.nodeIndex),this.renderNode]),n={token:Zt(_p.TemplateRef),useValue:e};this._resolvedProvidersArray.unshift(new Qi(n.token,!1,!0,[n],Yi.Builtin,[],this.sourceAst.sourceSpan))}},e.prototype.beforeChildren=function(){var t=this;this.hasViewContainer&&this.instances.set(Qt(_p.ViewContainerRef),this.viewContainer.prop("vcRef")),this._resolvedProviders=new Map,this._resolvedProvidersArray.forEach(function(e){return t._resolvedProviders.set(S(e.token),e)}),Array.from(this._resolvedProviders.values()).forEach(function(e){var n=e.providerType===Yi.Component||e.providerType===Yi.Directive,r=e.providers.map(function(r){if(r.useExisting)return t._getDependency(e.providerType,{token:r.useExisting});if(r.useFactory){var i=r.deps||r.useFactory.diDeps,o=i.map(function(n){return t._getDependency(e.providerType,n)});return Ke(r.useFactory).callFn(o)}if(r.useClass){var i=r.deps||r.useClass.diDeps,o=i.map(function(n){return t._getDependency(e.providerType,n)});if(n){var s={reference:null};return t.view.targetDependencies.push(new Wy(r.useClass,Yf.dirWrapperClassName(r.useClass),s)),Jf.create(s,o)}return Ke(r.useClass).instantiate(o,Xe(r.useClass))}return Kn(r.useValue)}),i="_"+E(e.token)+"_"+t.nodeIndex+"_"+t.instances.size,o=fr(i,r,e.multiProvider,e.eager,t);n?(t.directiveWrapperInstance.set(S(e.token),o),t.instances.set(S(e.token),Jf.context(o))):t.instances.set(S(e.token),o)});for(var e=function(e){var r=n._directives[e],i=n.instances.get(S($t(r.type)));r.queries.forEach(function(e){t._addQuery(e,i)})},n=this,r=0;r<this._directives.length;r++)e(r);Object.keys(this.referenceTokens).forEach(function(e){var n,r=t.referenceTokens[e];n=r?t.instances.get(S(r)):t.renderNode,t.view.locals.set(e,n)})},e.prototype.afterChildren=function(t){var e=this;Array.from(this._resolvedProviders.values()).forEach(function(n){var r=e.instances.get(S(n.token)),i=n.providerType===Yi.PrivateService?0:t;e.view.injectorGetMethod.addStmt(hr(e.nodeIndex,i,n,r))})},e.prototype.finish=function(){var t=this;Array.from(this._queries.values()).forEach(function(e){return e.forEach(function(e){return e.generateStatements(t.view.createMethod,t.view.updateContentQueriesMethod)})})},e.prototype.addContentNode=function(t,e){this.contentNodesByNgContentIndex[t].push(e)},e.prototype.getComponent=function(){return r(this.component)?this.instances.get(S($t(this.component.type))):null},e.prototype.getProviderTokens=function(){return Array.from(this._resolvedProviders.values()).map(function(t){return t.token})},e.prototype.getQueriesFor=function(t){for(var e,n=[],i=this,o=0;!i.isNull();)e=i._queries.get(S(t)),r(e)&&n.push.apply(n,e.filter(function(t){return t.meta.descendants||1>=o})),i._directives.length>0&&o++,i=i.parent;return e=this.view.componentView.viewQueries.get(S(t)),r(e)&&n.push.apply(n,e),n},e.prototype._addQuery=function(t,e){var n="_query_"+E(t.selectors[0])+"_"+this.nodeIndex+"_"+this._queryCount++,r=pr(n,this.view),i=new Dy(t,r,e,this.view);return lr(this._queries,i),i},e.prototype._getLocalDependency=function(t,e){var n=null;if(r(e.token)){if(!n&&S(e.token)===Qt(_p.ChangeDetectorRef))return t===Yi.Component?this.compViewExpr.prop("ref"):ir(of.prop("ref"),this.view,this.view.componentView);if(!n){var i=this._resolvedProviders.get(S(e.token));if(i&&(t===Yi.Directive||t===Yi.PublicService)&&i.providerType===Yi.PrivateService)return null;n=this.instances.get(S(e.token))}}return n},e.prototype._getDependency=function(t,e){var n=this,r=null;for(e.isValue&&(r=tn(e.value)),r||e.isSkipSelf||(r=this._getLocalDependency(t,e));!r&&!n.parent.isNull();)n=n.parent,r=n._getLocalDependency(Yi.PublicService,{token:e.token});return r||(r=or(this.view,e.token,e.isOptional)),r||(r=af),ir(r,this.view,n.view)},e}(Ky),Qy=function(){function t(t,e){var n=this;this.view=t,this.meta=e,this._purePipeProxyCount=0,this.instance=of.prop("_pipe_"+e.name+"_"+t.pipeCount++);var r=this.meta.type.diDeps.map(function(e){return S(e.token)===Qt(_p.ChangeDetectorRef)?ir(of.prop("ref"),n.view,n.view.componentView):or(t,e.token,!1)});this.view.fields.push(new mf(this.instance.name,Xe(this.meta.type))),this.view.createMethod.resetDebugInfo(null,null),this.view.createMethod.addStmt(of.prop(this.instance.name).set(Ke(this.meta.type).instantiate(r)).toStmt())}return t.call=function(e,n,r){var i,o=e.componentView,s=dr(o,n);return s.pure?(i=o.purePipes.get(n),i||(i=new t(o,s),o.purePipes.set(n,i),o.pipes.push(i))):(i=new t(e,s),e.pipes.push(i)),i._call(e,r)},Object.defineProperty(t.prototype,"pure",{get:function(){return this.meta.pure},enumerable:!0,configurable:!0}),t.prototype._call=function(t,e){if(this.meta.pure){var n=of.prop(this.instance.name+"_"+this._purePipeProxyCount++),r=ir(this.instance,t,this.view);return an(r.prop("transform").callMethod(Bh.Bind,[r]),e.length,n,{fields:t.fields,ctorStmts:t.createMethod}),Ke(Yt(_p.castByValue)).callFn([n,r.prop("transform")]).callFn(e)}return ir(this.instance,t,this.view).callMethod("transform",e)},t}(),Yy={};Yy.Node=0,Yy.ViewContainer=1,Yy.NgContent=2,Yy[Yy.Node]="Node",Yy[Yy.ViewContainer]="ViewContainer",Yy[Yy.NgContent]="NgContent";var $y=function(){function t(t,e,n){this.type=t,this.expr=e,this.ngContentIndex=n}return t}(),Zy=function(){function t(t,e,n,r,i,o,s,a,u){var c=this;this.component=t,this.genConfig=e,this.pipeMetas=n,this.styles=r,this.animations=i,this.viewIndex=o,this.declarationElement=s,this.templateVariableBindings=a,this.targetDependencies=u,this.viewChildren=[],this.nodes=[],this.rootNodes=[],this.lastRenderNode=af,this.viewContainers=[],this.methods=[],this.ctorStmts=[],this.fields=[],this.getters=[],this.disposables=[],this.purePipes=new Map,this.pipes=[],this.locals=new Map,this.literalArrayCount=0,this.literalMapCount=0,this.pipeCount=0,this.createMethod=new Ry(this),this.animationBindingsMethod=new Ry(this),this.injectorGetMethod=new Ry(this),this.updateContentQueriesMethod=new Ry(this),this.dirtyParentQueriesMethod=new Ry(this),this.updateViewQueriesMethod=new Ry(this),this.detectChangesInInputsMethod=new Ry(this),this.detectChangesRenderPropertiesMethod=new Ry(this),this.afterContentLifecycleCallbacksMethod=new Ry(this),this.afterViewLifecycleCallbacksMethod=new Ry(this),this.destroyMethod=new Ry(this),this.detachMethod=new Ry(this),this.viewType=yr(t,o),this.className=sr(t,o),this.classType=Qe(Ge(this.className)),this.classExpr=Ge(this.className),this.componentView=this.viewType===go.COMPONENT||this.viewType===go.HOST?this:this.declarationElement.view.componentView,this.componentContext=ir(of.prop("context"),this,this.componentView);var p=new Map;if(this.viewType===go.COMPONENT){var l=of.prop("context");this.component.viewQueries.forEach(function(t,e){var n="_viewQuery_"+E(t.selectors[0])+"_"+e,r=pr(n,c),i=new Dy(t,r,l,c);lr(p,i)})}this.viewQueries=p,a.forEach(function(t){c.locals.set(t[1],of.prop("context").prop(t[0]))}),this.declarationElement.isNull()||this.declarationElement.setEmbeddedView(this)}return t.prototype.callPipe=function(t,e,n){return Qy.call(this,t,[e].concat(n))},t.prototype.getLocal=function(t){if(t==Af.event.name)return Af.event;for(var e=this,n=e.locals.get(t);!n&&r(e.declarationElement.view);)e=e.declarationElement.view,n=e.locals.get(t);return r(n)?ir(n,this,e):null},t.prototype.finish=function(){var t=this;Array.from(this.viewQueries.values()).forEach(function(e){return e.forEach(function(e){return e.generateStatements(t.createMethod,t.updateViewQueriesMethod)})})},t}(),Jy=of.prop("numberOfChecks").identical(new Wh(0)),tm=(Ze(Hy.throwOnChange),function(){function t(t,e){this.query=t,this.read=t.meta.read||e}return t}()),em=function(){function t(t,e){this.view=t,this._schemaRegistry=e,this._nodeIndex=0}return t.prototype.visitBoundText=function(t){var e=this.view.nodes[this._nodeIndex++];return Pr(t,e,this.view),null},t.prototype.visitText=function(){return this._nodeIndex++,null},t.prototype.visitNgContent=function(){return null},t.prototype.visitElement=function(t){var e=this,r=this.view.nodes[this._nodeIndex++];Rr(r);var i=mr(t.outputs,t.directives,r,!0);return Or(t.inputs,t.outputs,i,r),t.directives.forEach(function(n,i){var o=r.directiveWrapperInstance.get(n.directive.type.reference);Mr(n,o,i,r),Ar(n,o,r,t.name,e._schemaRegistry)}),n(this,t.children,r),t.directives.forEach(function(t){var e=r.instances.get(t.directive.type.reference),n=r.directiveWrapperInstance.get(t.directive.type.reference);Er(t.directive,e,r),Sr(t.directive,e,r),Cr(t,n,r)}),t.providers.forEach(function(t){var e=r.instances.get(S(t.token));xr(t,e,r)}),null},t.prototype.visitEmbeddedTemplate=function(t){var e=this.view.nodes[this._nodeIndex++];return Rr(e),mr(t.outputs,t.directives,e,!1),t.directives.forEach(function(t,n){var r=e.instances.get(t.directive.type.reference),i=e.directiveWrapperInstance.get(t.directive.type.reference);Mr(t,i,n,e),Er(t.directive,r,e),Sr(t.directive,r,e),Cr(t,i,e)}),t.providers.forEach(function(t){var n=e.instances.get(S(t.token));xr(t,n,e)}),kr(e.embeddedView,t.children,this._schemaRegistry),null},t.prototype.visitAttr=function(){return null},t.prototype.visitDirective=function(){return null},t.prototype.visitEvent=function(){return null},t.prototype.visitReference=function(){return null},t.prototype.visitVariable=function(){return null},t.prototype.visitDirectiveProperty=function(){return null},t.prototype.visitElementProperty=function(){return null},t}(),nm="$implicit",rm="class",im="style",om="ng-container",sm=Ge("parentRenderNode"),am=Ge("rootSelector"),um=function(){function t(t,e){this.view=t,this.targetDependencies=e,this.nestedViewCount=0}return t.prototype._isRootNode=function(t){return t.view!==this.view},t.prototype._addRootNodeAndProject=function(t){var e=Dr(t),n=e.parent,i=e.sourceAst.ngContentIndex,o=t instanceof Xy&&t.hasViewContainer?t.viewContainer:null;this._isRootNode(n)?this.view.viewType!==go.COMPONENT&&this.view.rootNodes.push(new $y(o?Yy.ViewContainer:Yy.Node,o||t.renderNode)):r(n.component)&&r(i)&&n.addContentNode(i,new $y(o?Yy.ViewContainer:Yy.Node,o||t.renderNode))},t.prototype._getParentRenderNode=function(t){return t=jr(t),this._isRootNode(t)?this.view.viewType===go.COMPONENT?sm:af:r(t.component)&&t.component.template.encapsulation!==e.ViewEncapsulation.Native?af:t.renderNode},t.prototype.getOrCreateLastRenderNode=function(){var t=this.view;if(0===t.rootNodes.length||t.rootNodes[t.rootNodes.length-1].type!==Yy.Node){var e="_el_"+t.nodes.length;t.fields.push(new mf(e,Xe(t.genConfig.renderTypes.renderElement))),t.createMethod.addStmt(of.prop(e).set(Uy.renderer.callMethod("createTemplateAnchor",[af,af])).toStmt()),t.rootNodes.push(new $y(Yy.Node,of.prop(e)))}return t.rootNodes[t.rootNodes.length-1].expr},t.prototype.visitBoundText=function(t,e){return this._visitText(t,"",e)},t.prototype.visitText=function(t,e){return this._visitText(t,t.value,e)},t.prototype._visitText=function(t,e,n){var r="_text_"+this.view.nodes.length;this.view.fields.push(new mf(r,Xe(this.view.genConfig.renderTypes.renderText)));var i=of.prop(r),o=new Ky(n,this.view,this.view.nodes.length,i,t),s=of.prop(r).set(Uy.renderer.callMethod("createText",[this._getParentRenderNode(n),tn(e),this.view.createMethod.resetDebugInfoExpr(this.view.nodes.length,t)])).toStmt();return this.view.nodes.push(o),this.view.createMethod.addStmt(s),this._addRootNodeAndProject(o),i},t.prototype.visitNgContent=function(t,e){this.view.createMethod.resetDebugInfo(null,t);var n=this._getParentRenderNode(e);return n!==af?this.view.createMethod.addStmt(of.callMethod("projectNodes",[n,tn(t.index)]).toStmt()):this._isRootNode(e)?this.view.viewType!==go.COMPONENT&&this.view.rootNodes.push(new $y(Yy.NgContent,null,t.index)):r(e.component)&&r(t.ngContentIndex)&&e.addContentNode(t.ngContentIndex,new $y(Yy.NgContent,null,t.index)),null},t.prototype.visitElement=function(t,e){var i,o=this.view.nodes.length,s=this.view.createMethod.resetDebugInfoExpr(o,t),a=t.directives.map(function(t){return t.directive}),u=a.find(function(t){return t.isComponent});if(t.name===om)i=Uy.renderer.callMethod("createTemplateAnchor",[this._getParentRenderNode(e),s]);else{var c=Fr(t.attrs),p=sn(Vr(c,a).map(function(t){return tn(t)}));i=0===o&&this.view.viewType===go.HOST?Ke(Yt(_p.selectOrCreateRenderHostElement)).callFn([Uy.renderer,tn(t.name),p,am,s]):Ke(Yt(_p.createRenderElement)).callFn([Uy.renderer,this._getParentRenderNode(e),tn(t.name),p,s])}var l="_el_"+o;this.view.fields.push(new mf(l,Xe(this.view.genConfig.renderTypes.renderElement))),this.view.createMethod.addStmt(of.prop(l).set(i).toStmt());var h=of.prop(l),f=new Xy(e,this.view,o,h,t,u,a,t.providers,t.hasViewContainer,!1,t.references);this.view.nodes.push(f);var d=null;if(r(u)){var y={reference:null};this.targetDependencies.push(new qy(u.type,sr(u,0),y)),d=of.prop("compView_"+o),this.view.fields.push(new mf(d.name,Xe(Yt(_p.AppView),[Xe(u.type)]))),this.view.viewChildren.push(d),f.setComponentView(d),this.view.createMethod.addStmt(d.set(Ke(y).instantiate([Uy.viewUtils,of,tn(o),h])).toStmt())}return f.beforeChildren(),this._addRootNodeAndProject(f),n(this,t.children,f),f.afterChildren(this.view.nodes.length-o-1),r(d)&&this.view.createMethod.addStmt(d.callMethod("create",[f.getComponent()]).toStmt()),null},t.prototype.visitEmbeddedTemplate=function(t,e){var n=this.view.nodes.length,r="_anchor_"+n;this.view.fields.push(new mf(r,Xe(this.view.genConfig.renderTypes.renderComment))),this.view.createMethod.addStmt(of.prop(r).set(Uy.renderer.callMethod("createTemplateAnchor",[this._getParentRenderNode(e),this.view.createMethod.resetDebugInfoExpr(n,t)])).toStmt());var i=of.prop(r),o=t.variables.map(function(t){return[t.value.length>0?t.value:nm,t.name]}),s=t.directives.map(function(t){return t.directive}),a=new Xy(e,this.view,n,i,t,null,s,t.providers,t.hasViewContainer,!0,t.references);this.view.nodes.push(a),this.nestedViewCount++;var u=new Zy(this.view.component,this.view.genConfig,this.view.pipeMetas,af,this.view.animations,this.view.viewIndex+this.nestedViewCount,a,o,this.targetDependencies);return this.nestedViewCount+=Nr(u,t.children,this.targetDependencies),a.beforeChildren(),this._addRootNodeAndProject(a),a.afterChildren(0),null},t.prototype.visitAttr=function(){return null},t.prototype.visitDirective=function(){return null},t.prototype.visitEvent=function(){return null},t.prototype.visitReference=function(){return null},t.prototype.visitVariable=function(){return null},t.prototype.visitDirectiveProperty=function(){return null},t.prototype.visitElementProperty=function(){return null},t}(),cm=this&&this.__decorate||function(t,e,n,r){var i,o=arguments.length,s=3>o?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,r);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(3>o?i(s):o>3?i(e,n,s):i(e,n))||s);return o>3&&s&&Object.defineProperty(e,n,s),s},pm=this&&this.__metadata||function(t,e){return"object"==typeof Reflect&&"function"==typeof Reflect.metadata?Reflect.metadata(t,e):void 0},lm=function(){function t(t,e,n){this.statements=t,this.viewClassVar=e,this.dependencies=n}return t}(),hm=function(){function t(t,e){this._genConfig=t,this._schemaRegistry=e}return t.prototype.compileComponent=function(t,e,n,r,i){var o=[],s=new Zy(t,this._genConfig,r,n,i,0,Xy.createNull(),[],o),a=[];return Nr(s,e,o),kr(s,e,this._schemaRegistry),Ir(s,a),new lm(a,s.classExpr.name,o)},t=cm([M(),pm("design:paramtypes",[kl,Mp])],t)}(),fm=function(){function t(t,e,n){this.name=t,this.statements=e,this.fnExp=n}return t}(),dm=function(){function t(){}return t.prototype.compile=function(t,e){return e.map(function(e){var n=t+"_"+e.name,r=new Mm(e.name,n);return r.build(e)})},t}(),ym=Ge("element"),mm=Ge("defaultStateStyles"),vm=Ge("view"),gm=vm.prop("animationContext"),_m=vm.prop("renderer"),bm=Ge("currentState"),wm=Ge("nextState"),Em=Ge("player"),Sm=Ge("totalTime"),Cm=Ge("startStateStyles"),xm=Ge("endStateStyles"),Tm=Ge("collectedStyles"),Pm=Ge("previousPlayers"),Om=$e([]),Am=Ye([]),Mm=function(){function t(t,e){this.animationName=t,this._fnVarName=e+"_factory",this._statesMapVarName=e+"_states",this._statesMapVar=Ge(this._statesMapVarName)}return t.prototype.visitAnimationStyles=function(t,e){var n=[];return e.isExpectingFirstStyleStep&&(n.push(Cm),e.isExpectingFirstStyleStep=!1),t.styles.forEach(function(t){var e=Object.keys(t).map(function(e){return[e,tn(t[e])]});n.push($e(e,null,!0))}),Ke(Yt(_p.AnimationStyles)).instantiate([Ke(Yt(_p.collectAndResolveStyles)).callFn([Tm,Ye(n)])])},t.prototype.visitAnimationKeyframe=function(t,e){return Ke(Yt(_p.AnimationKeyframe)).instantiate([tn(t.offset),t.styles.visit(this,e)])},t.prototype.visitAnimationStep=function(t,e){var n=this;if(e.endStateAnimateStep===t)return this._visitEndStateAnimation(t,e);var r=t.startingStyles.visit(this,e),i=t.keyframes.map(function(t){return t.visit(n,e)});return this._callAnimateMethod(t,r,Ye(i),e)},t.prototype._visitEndStateAnimation=function(t,e){var n=this,r=t.startingStyles.visit(this,e),i=t.keyframes.map(function(t){return t.visit(n,e)}),o=Ke(Yt(_p.balanceAnimationKeyframes)).callFn([Tm,xm,Ye(i)]);return this._callAnimateMethod(t,r,o,e)},t.prototype._callAnimateMethod=function(t,e,n,r){var i=Am;return r.isExpectingFirstAnimateStep&&(i=Pm,r.isExpectingFirstAnimateStep=!1),r.totalTransitionTime+=t.duration+t.delay,_m.callMethod("animate",[ym,e,n,tn(t.duration),tn(t.delay),tn(t.easing),i])},t.prototype.visitAnimationSequence=function(t,e){var n=this,r=t.steps.map(function(t){return t.visit(n,e)});return Ke(Yt(_p.AnimationSequencePlayer)).instantiate([Ye(r)])},t.prototype.visitAnimationGroup=function(t,e){var n=this,r=t.steps.map(function(t){return t.visit(n,e)});return Ke(Yt(_p.AnimationGroupPlayer)).instantiate([Ye(r)])},t.prototype.visitAnimationStateDeclaration=function(t,e){var n={};ni(t).forEach(function(t){Object.keys(t).forEach(function(e){n[e]=t[e]})}),e.stateMap.registerState(t.stateName,n)},t.prototype.visitAnimationStateTransition=function(t,e){var n=t.animation.steps,r=n[n.length-1];ei(r)&&(e.endStateAnimateStep=r),e.totalTransitionTime=0,e.isExpectingFirstStyleStep=!0,e.isExpectingFirstAnimateStep=!0;var i=[];t.stateChanges.forEach(function(t){i.push(ti(bm,t.fromState).and(ti(wm,t.toState))),t.fromState!=Do&&e.stateMap.registerState(t.fromState),t.toState!=Do&&e.stateMap.registerState(t.toState)});var o=t.animation.visit(this,e),s=i.reduce(function(t,e){return t.or(e)}),a=Em.equals(af).and(s),u=Em.set(o).toStmt(),c=Sm.set(tn(e.totalTransitionTime)).toStmt();return new bf(a,[u,c])},t.prototype.visitAnimationEntry=function(t,e){var n=this;t.stateDeclarations.forEach(function(t){return t.visit(n,e)}),e.stateMap.registerState(jo,{});var r=[];r.push(Pm.set(gm.callMethod("getAnimationPlayers",[ym,wm.equals(tn(Lo)).conditional(af,tn(this.animationName))])).toDeclStmt()),r.push(Tm.set(Om).toDeclStmt()),r.push(Em.set(af).toDeclStmt()),r.push(Sm.set(tn(0)).toDeclStmt()),r.push(mm.set(this._statesMapVar.key(tn(jo))).toDeclStmt()),r.push(Cm.set(this._statesMapVar.key(bm)).toDeclStmt()),r.push(new bf(Cm.equals(af),[Cm.set(mm).toStmt()])),r.push(xm.set(this._statesMapVar.key(wm)).toDeclStmt()),r.push(new bf(xm.equals(af),[xm.set(mm).toStmt()]));var i=Ke(Yt(_p.renderStyles));return t.stateTransitions.forEach(function(t){return r.push(t.visit(n,e))}),r.push(new bf(Em.equals(af),[Em.set(Ke(Yt(_p.NoOpAnimationPlayer)).instantiate([])).toStmt()])),r.push(Em.callMethod("onDone",[Je([],[Em.callMethod("destroy",[]).toStmt(),i.callFn([ym,_m,Ke(Yt(_p.prepareFinalAnimationStyles)).callFn([Cm,xm])]).toStmt()])]).toStmt()),r.push(Ke(Yt(_p.AnimationSequencePlayer)).instantiate([Pm]).callMethod("destroy",[]).toStmt()),r.push(i.callFn([ym,_m,Ke(Yt(_p.clearStyles)).callFn([Cm])]).toStmt()),r.push(gm.callMethod("queueAnimation",[ym,tn(this.animationName),Em]).toStmt()),r.push(new df(Ke(Yt(_p.AnimationTransition)).instantiate([Em,bm,wm,Sm]))),Je([new Yh(vm.name,Xe(Yt(_p.AppView),[Oh])),new Yh(ym.name,Oh),new Yh(bm.name,Oh),new Yh(wm.name,Oh)],r,Xe(Yt(_p.AnimationTransition)))},t.prototype.build=function(t){var e=new Rm,n=t.visit(this,e).toDeclStmt(this._fnVarName),i=Ge(this._fnVarName),o=[];Object.keys(e.stateMap.states).forEach(function(t){var n=e.stateMap.states[t],i=Om;if(r(n)){var s=[];Object.keys(n).forEach(function(t){s.push([t,tn(n[t])])}),i=$e(s,null,!0)}o.push([t,i])});var s=this._statesMapVar.set($e(o,null,!0)).toDeclStmt(),a=[s,n];return new fm(this.animationName,a,i)},t}(),Rm=function(){function t(){this.stateMap=new km,this.endStateAnimateStep=null,this.isExpectingFirstStyleStep=!1,this.isExpectingFirstAnimateStep=!1,this.totalTransitionTime=0}return t}(),km=function(){function t(){this._states={}}return Object.defineProperty(t.prototype,"states",{get:function(){return this._states},enumerable:!0,configurable:!0}),t.prototype.registerState=function(t,e){void 0===e&&(e=null);var n=this._states[t];n||(this._states[t]=e)},t}(),Nm=function(){function t(t,e,n){this.srcFileUrl=t,this.genFileUrl=e,this.source=n}return t}(),Im=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},Dm=/(\.ts|\.d\.ts|\.js|\.jsx|\.tsx)$/,jm=function(t){function e(e){t.call(this),this.host=e,this.symbols=[],this.indexBySymbol=new Map,this.processedSummaryBySymbol=new Map,this.processedSummaries=[]}return Im(e,t),e.prototype.addOrMergeSummary=function(t){var e=t.metadata;e&&"class"===e.__symbolic&&(e={__symbolic:"class",statics:e.statics});var n=this.processedSummaryBySymbol.get(t.symbol);n||(n=this.processValue({symbol:t.symbol}),this.processedSummaries.push(n),this.processedSummaryBySymbol.set(t.symbol,n)),null==n.metadata&&null!=e&&(n.metadata=this.processValue(e)),null==n.type&&null!=t.type&&(n.type=this.processValue(t.type))},e.prototype.serialize=function(){var t=this;return JSON.stringify({summaries:this.processedSummaries,symbols:this.symbols.map(function(e,n){return{__symbol:n,name:e.name,filePath:t.host.getOutputFileName(e.filePath)}})})},e.prototype.processValue=function(t){return g(t,this,null)},e.prototype.visitOther=function(t){if(t instanceof Ji){var e=this.indexBySymbol.get(t);return null==e&&(e=this.indexBySymbol.size,this.indexBySymbol.set(t,e),this.symbols.push(t)),{__symbol:e}}},e}(as),Lm=function(t){function e(e){t.call(this),this.symbolCache=e}return Im(e,t),e.prototype.deserialize=function(t){var e=this,n=JSON.parse(t);return this.symbols=n.symbols.map(function(t){return e.symbolCache.get(t.filePath,t.name)}),g(n.summaries,this,null)},e.prototype.visitStringMap=function(e,n){return"__symbol"in e?this.symbols[e.__symbol]:t.prototype.visitStringMap.call(this,e,n)},e}(as),Vm=function(){function t(t,e,n,r,i,o,s,a,u,c,p,l,h){this._host=t,this._metadataResolver=e,this._templateParser=n,this._styleCompiler=r,this._viewCompiler=i,this._dirWrapperCompiler=o,this._ngModuleCompiler=s,this._outputEmitter=a,this._summaryResolver=u,this._localeId=c,this._translationFormat=p,this._animationParser=l,this._symbolResolver=h,this._animationCompiler=new dm}return t.prototype.clearCache=function(){this._metadataResolver.clearCache()},t.prototype.compileAll=function(t){var e=this,n=mi(this._symbolResolver,t,this._host),r=di(n,this._host,this._metadataResolver),i=r.ngModuleByPipeOrDirective,o=r.files,s=r.ngModules;return Promise.all(s.map(function(t){return e._metadataResolver.loadNgModuleDirectiveAndPipeMetadata(t.type.reference,!1)})).then(function(){var t=o.map(function(t){return e._compileSrcFile(t.srcUrl,i,t.directives,t.pipes,t.ngModules,t.injectables)});return io.flatten(t)})},t.prototype._compileSrcFile=function(t,e,n,r,i,o){var s=this,a=hi(t)[1],u=[],c=[],p=[];if(p.push(this._createSummary(t,n,r,i,o)),c.push.apply(c,i.map(function(t){return s._compileModule(t,u)})),c.push.apply(c,n.map(function(t){return s._compileDirectiveWrapper(t,u)})),n.forEach(function(n){var r=s._metadataResolver.getDirectiveMetadata(n);if(!r.isComponent)return Promise.resolve(null);var i=e.get(n);if(!i)throw new Error("Internal Error: cannot determine the module for component "+b(r.type)+"!");li(r);var o=s._styleCompiler.compileComponent(r);o.externalStylesheets.forEach(function(e){p.push(s._codgenStyles(t,e,a))}),c.push(s._compileComponentFactory(r,i,a,u),s._compileComponent(r,i,i.transitiveModule.directives,o.componentStylesheet,a,u))}),u.length>0){var l=this._codegenSourceModule(t,ui(t),u,c);p.unshift(l)}return p},t.prototype._createSummary=function(t,e,n,r,i){var o=this,s=this._symbolResolver.getSymbolsOf(t).map(function(t){return o._symbolResolver.resolveSymbol(t)}),a=r.map(function(t){return o._metadataResolver.getNgModuleSummary(t)}).concat(e.map(function(t){return o._metadataResolver.getDirectiveSummary(t)}),n.map(function(t){return o._metadataResolver.getPipeSummary(t)}),i.map(function(t){return o._metadataResolver.getInjectableSummary(t)})),u=ri(this._host,this._summaryResolver,this._symbolResolver,s,a);return new Nm(t,oi(t),u)},t.prototype._compileModule=function(t,e){var n=this,r=this._metadataResolver.getNgModuleMetadata(t),i=[];this._localeId&&i.push({token:Zt(_p.LOCALE_ID),useValue:this._localeId}),this._translationFormat&&i.push({token:Zt(_p.TRANSLATIONS_FORMAT),useValue:this._translationFormat});var o=this._ngModuleCompiler.compile(r,i);return o.dependencies.forEach(function(t){t.placeholder.reference=n._symbolResolver.getStaticSymbol(ui(w(t.comp)),ci(t.comp))}),e.push.apply(e,o.statements),o.ngModuleFactoryVar},t.prototype._compileDirectiveWrapper=function(t,e){var n=this._metadataResolver.getDirectiveMetadata(t),r=this._dirWrapperCompiler.compile(n); -for(t=this._additionsHead;null!=t;t=t._nextAdded)t.previousValue=t.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=this._removalsTail=null}},t.prototype._truncate=function(t,e){for(;null!==e;){null===t?this._mapHead=null:t._next=null;var n=e._next;this._addToRemovals(e),t=e,e=n}for(var r=this._removalsHead;null!==r;r=r._nextRemoved)r.previousValue=r.currentValue,r.currentValue=null,this._records["delete"](r.key)},t.prototype._maybeAddToChanges=function(t,e){c(e,t.currentValue)||(t.previousValue=t.currentValue,t.currentValue=e,this._addToChanges(t))},t.prototype._isInRemovals=function(t){return t===this._removalsHead||null!==t._nextRemoved||null!==t._prevRemoved},t.prototype._addToRemovals=function(t){null===this._removalsHead?this._removalsHead=this._removalsTail=t:(this._removalsTail._nextRemoved=t,t._prevRemoved=this._removalsTail,this._removalsTail=t)},t.prototype._removeFromSeq=function(t,e){var n=e._next;null===t?this._mapHead=n:t._next=n,e._next=null},t.prototype._removeFromRemovals=function(t){var e=t._prevRemoved,n=t._nextRemoved;null===e?this._removalsHead=n:e._nextRemoved=n,null===n?this._removalsTail=e:n._prevRemoved=e,t._prevRemoved=t._nextRemoved=null},t.prototype._addToAdditions=function(t){null===this._additionsHead?this._additionsHead=this._additionsTail=t:(this._additionsTail._nextAdded=t,this._additionsTail=t)},t.prototype._addToChanges=function(t){null===this._changesHead?this._changesHead=this._changesTail=t:(this._changesTail._nextChanged=t,this._changesTail=t)},t.prototype.toString=function(){var t,e=[],n=[],r=[],i=[],o=[];for(t=this._mapHead;null!==t;t=t._next)e.push(u(t));for(t=this._previousMapHead;null!==t;t=t._nextPrevious)n.push(u(t));for(t=this._changesHead;null!==t;t=t._nextChanged)r.push(u(t));for(t=this._additionsHead;null!==t;t=t._nextAdded)i.push(u(t));for(t=this._removalsHead;null!==t;t=t._nextRemoved)o.push(u(t));return"map: "+e.join(", ")+"\nprevious: "+n.join(", ")+"\nadditions: "+i.join(", ")+"\nchanges: "+r.join(", ")+"\nremovals: "+o.join(", ")+"\n"},t.prototype._forEach=function(t,e){t instanceof Map?t.forEach(e):Object.keys(t).forEach(function(n){return e(t[n],n)})},t}(),fr=function(){function t(t){this.key=t,this.previousValue=null,this.currentValue=null,this._nextPrevious=null,this._next=null,this._nextAdded=null,this._nextRemoved=null,this._prevRemoved=null,this._nextChanged=null}return t.prototype.toString=function(){return c(this.previousValue,this.currentValue)?u(this.key):u(this.key)+"["+u(this.previousValue)+"->"+u(this.currentValue)+"]"},t}(),dr=function(){function t(t){this.factories=t}return t.create=function(e,n){if(s(n)){var r=n.factories.slice();return e=e.concat(r),new t(e)}return new t(e)},t.extend=function(e){return{provide:t,useFactory:function(n){if(!n)throw new Error("Cannot extend IterableDiffers without a parent injector");return t.create(e,n)},deps:[[t,new be,new ve]]}},t.prototype.find=function(t){var e=this.factories.find(function(e){return e.supports(t)});if(s(e))return e;throw new Error("Cannot find a differ supporting object '"+t+"' of type '"+o(t)+"'")},t}(),yr=function(){function t(t){this.factories=t}return t.create=function(e,n){if(s(n)){var r=n.factories.slice();return e=e.concat(r),new t(e)}return new t(e)},t.extend=function(e){return{provide:t,useFactory:function(n){if(!n)throw new Error("Cannot extend KeyValueDiffers without a parent injector");return t.create(e,n)},deps:[[t,new be,new ve]]}},t.prototype.find=function(t){var e=this.factories.find(function(e){return e.supports(t)});if(s(e))return e;throw new Error("Cannot find a differ supporting object '"+t+"'")},t}(),mr={toString:function(){return"CD_INIT_VALUE"}},vr=function(){function t(t){this.wrapped=t}return t.wrap=function(e){return new t(e)},t}(),gr=function(){function t(){this.hasWrappedValue=!1}return t.prototype.unwrap=function(t){return t instanceof vr?(this.hasWrappedValue=!0,t.wrapped):t},t.prototype.reset=function(){this.hasWrappedValue=!1},t}(),_r=function(){function t(t,e){this.previousValue=t,this.currentValue=e}return t.prototype.isFirstChange=function(){return this.previousValue===mr},t}(),br=function(){function t(){}return t.prototype.markForCheck=function(){},t.prototype.detach=function(){},t.prototype.detectChanges=function(){},t.prototype.checkNoChanges=function(){},t.prototype.reattach=function(){},t}(),wr=[new lr],Er=[new or],Sr=new dr(Er),Cr=new yr(wr),xr=function(){function t(t,e,n,r,i,o){this.id=t,this.templateUrl=e,this.slotCount=n,this.encapsulation=r,this.styles=i,this.animations=o}return t}(),Tr=function(){function t(){}return t.prototype.injector=function(){},t.prototype.component=function(){},t.prototype.providerTokens=function(){},t.prototype.references=function(){},t.prototype.context=function(){},t.prototype.source=function(){},t}(),Pr=function(){function t(){}return t.prototype.selectRootElement=function(){},t.prototype.createElement=function(){},t.prototype.createViewRoot=function(){},t.prototype.createTemplateAnchor=function(){},t.prototype.createText=function(){},t.prototype.projectNodes=function(){},t.prototype.attachViewAfter=function(){},t.prototype.detachView=function(){},t.prototype.destroyView=function(){},t.prototype.listen=function(){},t.prototype.listenGlobal=function(){},t.prototype.setElementProperty=function(){},t.prototype.setElementAttribute=function(){},t.prototype.setBindingDebugInfo=function(){},t.prototype.setElementClass=function(){},t.prototype.setElementStyle=function(){},t.prototype.invokeElementMethod=function(){},t.prototype.setText=function(){},t.prototype.animate=function(){},t}(),Or=function(){function t(){}return t.prototype.renderComponent=function(){},t}(),Ar={};Ar.NONE=0,Ar.HTML=1,Ar.STYLE=2,Ar.SCRIPT=3,Ar.URL=4,Ar.RESOURCE_URL=5,Ar[Ar.NONE]="NONE",Ar[Ar.HTML]="HTML",Ar[Ar.STYLE]="STYLE",Ar[Ar.SCRIPT]="SCRIPT",Ar[Ar.URL]="URL",Ar[Ar.RESOURCE_URL]="RESOURCE_URL";var Mr,Rr,kr,Nr=function(){function t(){}return t.prototype.sanitize=function(){},t}(),Ir=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},Dr=function(t){function e(e,n){var r="Expression has changed after it was checked. Previous value: '"+e+"'. Current value: '"+n+"'.";e===mr&&(r+=" It seems like the view has been created after its parent and its children have been dirty checked. Has it been created in a change detection hook ?"),t.call(this,r)}return Ir(e,t),e}(un),jr=function(t){function e(e,n){t.call(this,"Error in "+n.source,e),this.context=n}return Ir(e,t),e}(cn),Lr=function(t){function e(e){t.call(this,"Attempt to use a destroyed view: "+e)}return Ir(e,t),e}(un),Vr=function(){function t(t,e,n){this._renderer=t,this.animationQueue=n,this.sanitizer=e}return t.prototype.renderComponent=function(t){return this._renderer.renderComponent(t)},t.decorators=[{type:ge}],t.ctorParameters=function(){return[{type:Or},{type:Nr},{type:ir}]},t}(),Fr=0,Ur=[],Br={},Hr=/([A-Z])/g,qr=function(){function t(){this.length=0}return t.prototype.get=function(){return void 0},t.prototype.set=function(){},t}(),zr=function(){function t(t,e,n){this.length=t,this._v0=e,this._v1=n}return t.prototype.get=function(t){switch(t){case 0:return this._v0;case 1:return this._v1;default:return void 0}},t.prototype.set=function(t,e){switch(t){case 0:this._v0=e;break;case 1:this._v1=e}},t}(),Wr=function(){function t(t,e,n,r,i){this.length=t,this._v0=e,this._v1=n,this._v2=r,this._v3=i}return t.prototype.get=function(t){switch(t){case 0:return this._v0;case 1:return this._v1;case 2:return this._v2;case 3:return this._v3;default:return void 0}},t.prototype.set=function(t,e){switch(t){case 0:this._v0=e;break;case 1:this._v1=e;break;case 2:this._v2=e;break;case 3:this._v3=e}},t}(),Gr=function(){function t(t,e,n,r,i,o,s,a,u){this.length=t,this._v0=e,this._v1=n,this._v2=r,this._v3=i,this._v4=o,this._v5=s,this._v6=a,this._v7=u}return t.prototype.get=function(t){switch(t){case 0:return this._v0;case 1:return this._v1;case 2:return this._v2;case 3:return this._v3;case 4:return this._v4;case 5:return this._v5;case 6:return this._v6;case 7:return this._v7;default:return void 0}},t.prototype.set=function(t,e){switch(t){case 0:this._v0=e;break;case 1:this._v1=e;break;case 2:this._v2=e;break;case 3:this._v3=e;break;case 4:this._v4=e;break;case 5:this._v5=e;break;case 6:this._v6=e;break;case 7:this._v7=e}},t}(),Kr=function(){function t(t,e,n,r,i,o,s,a,u,c,p,l,h,f,d,y,m){this.length=t,this._v0=e,this._v1=n,this._v2=r,this._v3=i,this._v4=o,this._v5=s,this._v6=a,this._v7=u,this._v8=c,this._v9=p,this._v10=l,this._v11=h,this._v12=f,this._v13=d,this._v14=y,this._v15=m}return t.prototype.get=function(t){switch(t){case 0:return this._v0;case 1:return this._v1;case 2:return this._v2;case 3:return this._v3;case 4:return this._v4;case 5:return this._v5;case 6:return this._v6;case 7:return this._v7;case 8:return this._v8;case 9:return this._v9;case 10:return this._v10;case 11:return this._v11;case 12:return this._v12;case 13:return this._v13;case 14:return this._v14;case 15:return this._v15;default:return void 0}},t.prototype.set=function(t,e){switch(t){case 0:this._v0=e;break;case 1:this._v1=e;break;case 2:this._v2=e;break;case 3:this._v3=e;break;case 4:this._v4=e;break;case 5:this._v5=e;break;case 6:this._v6=e;break;case 7:this._v7=e;break;case 8:this._v8=e;break;case 9:this._v9=e;break;case 10:this._v10=e;break;case 11:this._v11=e;break;case 12:this._v12=e;break;case 13:this._v13=e;break;case 14:this._v14=e;break;case 15:this._v15=e}},t}(),Xr=function(){function t(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];this.length=t,this._values=e}return t.prototype.get=function(t){return this._values[t]},t.prototype.set=function(t,e){this._values[t]=e},t}(),Qr=new qr,Yr=Object.freeze({ViewUtils:Vr,createRenderComponentType:Y,addToArray:$,interpolate:Z,inlineInterpolate:J,checkBinding:et,castByValue:nt,EMPTY_ARRAY:Ur,EMPTY_MAP:Br,pureProxy1:rt,pureProxy2:it,pureProxy3:ot,pureProxy4:st,pureProxy5:at,pureProxy6:ut,pureProxy7:ct,pureProxy8:pt,pureProxy9:lt,pureProxy10:ht,setBindingDebugInfoForChanges:ft,setBindingDebugInfo:dt,createRenderElement:mt,selectOrCreateRenderHostElement:vt,subscribeToRenderElement:gt,noop:bt,InlineArray2:zr,InlineArray4:Wr,InlineArray8:Gr,InlineArray16:Kr,InlineArrayDynamic:Xr,EMPTY_INLINE_ARRAY:Qr}),$r=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},Zr=function(){function t(){}return t.prototype.location=function(){},t.prototype.injector=function(){},t.prototype.instance=function(){},t.prototype.hostView=function(){},t.prototype.changeDetectorRef=function(){},t.prototype.componentType=function(){},t.prototype.destroy=function(){},t.prototype.onDestroy=function(){},t}(),Jr=function(t){function e(e,n,r,i){t.call(this),this._index=e,this._parentView=n,this._nativeElement=r,this._component=i}return $r(e,t),Object.defineProperty(e.prototype,"location",{get:function(){return new tr(this._nativeElement)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"injector",{get:function(){return this._parentView.injector(this._index)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"instance",{get:function(){return this._component},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"hostView",{get:function(){return this._parentView.ref},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"changeDetectorRef",{get:function(){return this._parentView.ref},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"componentType",{get:function(){return this._component.constructor},enumerable:!0,configurable:!0}),e.prototype.destroy=function(){this._parentView.detachAndDestroy()},e.prototype.onDestroy=function(t){this.hostView.onDestroy(t)},e}(Zr),ti=function(){function t(t,e,n){this.selector=t,this._viewClass=e,this._componentType=n}return Object.defineProperty(t.prototype,"componentType",{get:function(){return this._componentType},enumerable:!0,configurable:!0}),t.prototype.create=function(t,e,n){void 0===e&&(e=null),void 0===n&&(n=null);var r=t.get(Vr);e||(e=[]);var i=new this._viewClass(r,null,null,null);return i.createHostView(n,t,e)},t}(),ei=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},ni=function(t){function e(e){t.call(this,"No component factory found for "+u(e)+". Did you add it to @NgModule.entryComponents?"),this.component=e}return ei(e,t),e}(un),ri=function(){function t(){}return t.prototype.resolveComponentFactory=function(t){throw new ni(t)},t}(),ii=function(){function t(){}return t.prototype.resolveComponentFactory=function(){},t.NULL=new ri,t}(),oi=function(){function t(t,e){this._parent=e,this._factories=new Map;for(var n=0;n<t.length;n++){var r=t[n];this._factories.set(r.componentType,r)}}return t.prototype.resolveComponentFactory=function(t){var e=this._factories.get(t);return e||(e=this._parent.resolveComponentFactory(t)),e},t}(),si=Et(),ai=si?St:function(){return Pt},ui=si?Ct:function(t,e){return e},ci=si?xt:function(){return null},pi=si?Tt:function(){return null},li=function(){function t(t){this._ngZone=t,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this._watchAngularEvents()}return t.prototype._watchAngularEvents=function(){var t=this;this._ngZone.onUnstable.subscribe({next:function(){t._didWork=!0,t._isZoneStable=!1}}),this._ngZone.runOutsideAngular(function(){t._ngZone.onStable.subscribe({next:function(){rr.assertNotInAngularZone(),r(function(){t._isZoneStable=!0,t._runCallbacksIfReady()})}})})},t.prototype.increasePendingRequestCount=function(){return this._pendingCount+=1,this._didWork=!0,this._pendingCount},t.prototype.decreasePendingRequestCount=function(){if(this._pendingCount-=1,this._pendingCount<0)throw new Error("pending async requests below zero");return this._runCallbacksIfReady(),this._pendingCount},t.prototype.isStable=function(){return this._isZoneStable&&0==this._pendingCount&&!this._ngZone.hasPendingMacrotasks},t.prototype._runCallbacksIfReady=function(){var t=this;this.isStable()?r(function(){for(;0!==t._callbacks.length;)t._callbacks.pop()(t._didWork);t._didWork=!1}):this._didWork=!0},t.prototype.whenStable=function(t){this._callbacks.push(t),this._runCallbacksIfReady()},t.prototype.getPendingRequestCount=function(){return this._pendingCount},t.prototype.findBindings=function(){return[]},t.prototype.findProviders=function(){return[]},t.decorators=[{type:ge}],t.ctorParameters=function(){return[{type:rr}]},t}(),hi=function(){function t(){this._applications=new Map,di.addToWindow(this)}return t.prototype.registerApplication=function(t,e){this._applications.set(t,e)},t.prototype.getTestability=function(t){return this._applications.get(t)},t.prototype.getAllTestabilities=function(){return Array.from(this._applications.values())},t.prototype.getAllRootElements=function(){return Array.from(this._applications.keys())},t.prototype.findTestabilityInTree=function(t,e){return void 0===e&&(e=!0),di.findTestabilityInTree(this,t,e)},t.decorators=[{type:ge}],t.ctorParameters=function(){return[]},t}(),fi=function(){function t(){}return t.prototype.addToWindow=function(){},t.prototype.findTestabilityInTree=function(){return null},t}(),di=new fi,yi=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},mi=!0,vi=!1,gi=function(){function t(t,e){this.name=t,this.token=e}return t}(),_i=function(){function t(){}return t.prototype.bootstrapModuleFactory=function(){},t.prototype.bootstrapModule=function(){},t.prototype.onDestroy=function(){},t.prototype.injector=function(){},t.prototype.destroy=function(){},t.prototype.destroyed=function(){},t}(),bi=function(t){function e(e){t.call(this),this._injector=e,this._modules=[],this._destroyListeners=[],this._destroyed=!1}return yi(e,t),e.prototype.onDestroy=function(t){this._destroyListeners.push(t)},Object.defineProperty(e.prototype,"injector",{get:function(){return this._injector},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"destroyed",{get:function(){return this._destroyed},enumerable:!0,configurable:!0}),e.prototype.destroy=function(){if(this._destroyed)throw new Error("The platform has already been destroyed!");this._modules.slice().forEach(function(t){return t.destroy()}),this._destroyListeners.forEach(function(t){return t()}),this._destroyed=!0},e.prototype.bootstrapModuleFactory=function(t){return this._bootstrapModuleFactoryWithZone(t,null)},e.prototype._bootstrapModuleFactoryWithZone=function(t,e){var n=this;return e||(e=new rr({enableLongStackTrace:Mt()})),e.run(function(){var r=In.resolveAndCreate([{provide:rr,useValue:e}],n.injector),i=t.create(r),o=i.injector.get(Ln,null);if(!o)throw new Error("No ErrorHandler. Is platform module (BrowserModule) included?");return i.onDestroy(function(){return Fn.remove(n._modules,i)}),e.onError.subscribe({next:function(t){o.handleError(t)}}),jt(o,function(){var t=i.injector.get(Bn);return t.donePromise.then(function(){return n._moduleDoBootstrap(i),i})})})},e.prototype.bootstrapModule=function(t,e){return void 0===e&&(e=[]),this._bootstrapModuleWithZone(t,e,null)},e.prototype._bootstrapModuleWithZone=function(t,e,n,r){var i=this;void 0===e&&(e=[]);var o=this.injector.get(Jn),s=o.createCompiler(Array.isArray(e)?e:[e]);return r?s.compileModuleAndAllComponentsAsync(t).then(function(t){var e=t.ngModuleFactory,o=t.componentFactories;return r(o),i._bootstrapModuleFactoryWithZone(e,n)}):s.compileModuleAsync(t).then(function(t){return i._bootstrapModuleFactoryWithZone(t,n)})},e.prototype._moduleDoBootstrap=function(t){var e=t.injector.get(wi);if(t.bootstrapFactories.length>0)t.bootstrapFactories.forEach(function(t){return e.bootstrap(t)});else{if(!t.instance.ngDoBootstrap)throw new Error("The module "+u(t.instance.constructor)+' was bootstrapped, but it does not declare "@NgModule.bootstrap" components nor a "ngDoBootstrap" method. Please define one of these.');t.instance.ngDoBootstrap(e)}this._modules.push(t)},e.decorators=[{type:ge}],e.ctorParameters=function(){return[{type:sn}]},e}(_i),wi=function(){function t(){}return t.prototype.bootstrap=function(){},t.prototype.tick=function(){},t.prototype.componentTypes=function(){},t.prototype.components=function(){},t.prototype.attachView=function(){},t.prototype.detachView=function(){},t.prototype.viewCount=function(){},t}(),Ei=function(t){function e(e,n,r,i,o,s,a,u){var c=this;t.call(this),this._zone=e,this._console=n,this._injector=r,this._exceptionHandler=i,this._componentFactoryResolver=o,this._initStatus=s,this._testabilityRegistry=a,this._testability=u,this._bootstrapListeners=[],this._rootComponents=[],this._rootComponentTypes=[],this._views=[],this._runningTick=!1,this._enforceNoNewChanges=!1,this._enforceNoNewChanges=Mt(),this._zone.onMicrotaskEmpty.subscribe({next:function(){c._zone.run(function(){c.tick()})}})}return yi(e,t),e.prototype.attachView=function(t){var e=t.internalView;this._views.push(e),e.attachToAppRef(this)},e.prototype.detachView=function(t){var e=t.internalView;Fn.remove(this._views,e),e.detach()},e.prototype.bootstrap=function(t){var e=this;if(!this._initStatus.done)throw new Error("Cannot bootstrap as there are still asynchronous initializers running. Bootstrap components in the `ngDoBootstrap` method of the root module.");var n;n=t instanceof ti?t:this._componentFactoryResolver.resolveComponentFactory(t),this._rootComponentTypes.push(n.componentType);var r=n.create(this._injector,[],n.selector);r.onDestroy(function(){e._unloadComponent(r)});var i=r.injector.get(li,null);return i&&r.injector.get(hi).registerApplication(r.location.nativeElement,i),this._loadComponent(r),Mt()&&this._console.log("Angular is running in the development mode. Call enableProdMode() to enable the production mode."),r},e.prototype._loadComponent=function(t){this.attachView(t.hostView),this.tick(),this._rootComponents.push(t);var e=this._injector.get(Wn,[]).concat(this._bootstrapListeners);e.forEach(function(e){return e(t)})},e.prototype._unloadComponent=function(t){this.detachView(t.hostView),Fn.remove(this._rootComponents,t)},e.prototype.tick=function(){if(this._runningTick)throw new Error("ApplicationRef.tick is called recursively");var t=e._tickScope();try{this._runningTick=!0,this._views.forEach(function(t){return t.ref.detectChanges()}),this._enforceNoNewChanges&&this._views.forEach(function(t){return t.ref.checkNoChanges()})}finally{this._runningTick=!1,ui(t)}},e.prototype.ngOnDestroy=function(){this._views.slice().forEach(function(t){return t.destroy()})},Object.defineProperty(e.prototype,"viewCount",{get:function(){return this._views.length},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"componentTypes",{get:function(){return this._rootComponentTypes},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"components",{get:function(){return this._rootComponents},enumerable:!0,configurable:!0}),e._tickScope=ai("ApplicationRef#tick()"),e.decorators=[{type:ge}],e.ctorParameters=function(){return[{type:rr},{type:Kn},{type:sn},{type:Ln},{type:ii},{type:Bn},{type:hi,decorators:[{type:ve}]},{type:li,decorators:[{type:ve}]}]},e}(wi),Si=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},Ci=function(){function t(){}return t.prototype.injector=function(){},t.prototype.componentFactoryResolver=function(){},t.prototype.instance=function(){},t.prototype.destroy=function(){},t.prototype.onDestroy=function(){},t}(),xi=function(){function t(t,e){this._injectorClass=t,this._moduleType=e}return Object.defineProperty(t.prototype,"moduleType",{get:function(){return this._moduleType},enumerable:!0,configurable:!0}),t.prototype.create=function(t){t||(t=sn.NULL);var e=new this._injectorClass(t);return e.create(),e},t}(),Ti=new Object,Pi=function(t){function e(e,n,r){t.call(this,n,e.get(ii,ii.NULL)),this.parent=e,this.bootstrapFactories=r,this._destroyListeners=[],this._destroyed=!1}return Si(e,t),e.prototype.create=function(){this.instance=this.createInternal()},e.prototype.createInternal=function(){},e.prototype.get=function(t,e){if(void 0===e&&(e=rn),t===sn||t===ii)return this;var n=this.getInternal(t,Ti);return n===Ti?this.parent.get(t,e):n},e.prototype.getInternal=function(){},Object.defineProperty(e.prototype,"injector",{get:function(){return this},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"componentFactoryResolver",{get:function(){return this},enumerable:!0,configurable:!0}),e.prototype.destroy=function(){if(this._destroyed)throw new Error("The ng module "+u(this.instance.constructor)+" has already been destroyed.");this._destroyed=!0,this.destroyInternal(),this._destroyListeners.forEach(function(t){return t()})},e.prototype.onDestroy=function(t){this._destroyListeners.push(t)},e.prototype.destroyInternal=function(){},e}(oi),Oi=function(){function t(){}return t.prototype.load=function(){},t}(),Ai=new Map,Mi=function(){function t(){this._dirty=!0,this._results=[],this._emitter=new nr}return Object.defineProperty(t.prototype,"changes",{get:function(){return this._emitter},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"length",{get:function(){return this._results.length},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"first",{get:function(){return this._results[0]},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"last",{get:function(){return this._results[this.length-1]},enumerable:!0,configurable:!0}),t.prototype.map=function(t){return this._results.map(t)},t.prototype.filter=function(t){return this._results.filter(t)},t.prototype.find=function(t){return this._results.find(t)},t.prototype.reduce=function(t,e){return this._results.reduce(t,e)},t.prototype.forEach=function(t){this._results.forEach(t)},t.prototype.some=function(t){return this._results.some(t)},t.prototype.toArray=function(){return this._results.slice()},t.prototype[f()]=function(){return this._results[f()]()},t.prototype.toString=function(){return this._results.toString()},t.prototype.reset=function(t){this._results=Fn.flatten(t),this._dirty=!1},t.prototype.notifyOnChanges=function(){this._emitter.emit(this)},t.prototype.setDirty=function(){this._dirty=!0},Object.defineProperty(t.prototype,"dirty",{get:function(){return this._dirty},enumerable:!0,configurable:!0}),t}(),Ri="#",ki="NgFactory",Ni=function(){function t(){}return t}(),Ii={factoryPathPrefix:"",factoryPathSuffix:".ngfactory"},Di=function(){function t(t,e){this._compiler=t,this._config=e||Ii}return t.prototype.load=function(t){var e=this._compiler instanceof $n;return e?this.loadFactory(t):this.loadAndCompile(t)},t.prototype.loadAndCompile=function(t){var e=this,n=t.split(Ri),r=n[0],i=n[1];return void 0===i&&(i="default"),System["import"](r).then(function(t){return t[i]}).then(function(t){return Ft(t,r,i)}).then(function(t){return e._compiler.compileModuleAsync(t)})},t.prototype.loadFactory=function(t){var e=t.split(Ri),n=e[0],r=e[1],i=ki;return void 0===r&&(r="default",i=""),System["import"](this._config.factoryPathPrefix+n+this._config.factoryPathSuffix).then(function(t){return t[r+i]}).then(function(t){return Ft(t,n,r)})},t.decorators=[{type:ge}],t.ctorParameters=function(){return[{type:$n},{type:Ni,decorators:[{type:ve}]}]},t}(),ji=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},Li=function(){function t(){}return t.prototype.elementRef=function(){},t.prototype.createEmbeddedView=function(){},t}(),Vi=function(t){function e(e,n,r){t.call(this),this._parentView=e,this._nodeIndex=n,this._nativeElement=r}return ji(e,t),e.prototype.createEmbeddedView=function(t){var e=this._parentView.createEmbeddedViewInternal(this._nodeIndex);return e.create(t||{}),e.ref},Object.defineProperty(e.prototype,"elementRef",{get:function(){return new tr(this._nativeElement)},enumerable:!0,configurable:!0}),e}(Li),Fi=function(){function t(){}return t.prototype.element=function(){},t.prototype.injector=function(){},t.prototype.parentInjector=function(){},t.prototype.clear=function(){},t.prototype.get=function(){},t.prototype.length=function(){},t.prototype.createEmbeddedView=function(){},t.prototype.createComponent=function(){},t.prototype.insert=function(){},t.prototype.move=function(){},t.prototype.indexOf=function(){},t.prototype.remove=function(){},t.prototype.detach=function(){},t}(),Ui=function(){function t(t){this._element=t,this._createComponentInContainerScope=ai("ViewContainerRef#createComponent()"),this._insertScope=ai("ViewContainerRef#insert()"),this._removeScope=ai("ViewContainerRef#remove()"),this._detachScope=ai("ViewContainerRef#detach()")}return t.prototype.get=function(t){return this._element.nestedViews[t].ref},Object.defineProperty(t.prototype,"length",{get:function(){var t=this._element.nestedViews;return s(t)?t.length:0},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"element",{get:function(){return this._element.elementRef},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"injector",{get:function(){return this._element.injector},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"parentInjector",{get:function(){return this._element.parentInjector},enumerable:!0,configurable:!0}),t.prototype.createEmbeddedView=function(t,e,n){void 0===e&&(e=null),void 0===n&&(n=-1);var r=t.createEmbeddedView(e);return this.insert(r,n),r},t.prototype.createComponent=function(t,e,n,r){void 0===e&&(e=-1),void 0===n&&(n=null),void 0===r&&(r=null);var i=this._createComponentInContainerScope(),o=n||this._element.parentInjector,s=t.create(o,r);return this.insert(s.hostView,e),ui(i,s)},t.prototype.insert=function(t,e){void 0===e&&(e=-1);var n=this._insertScope();-1==e&&(e=this.length);var r=t;return this._element.attachView(r.internalView,e),ui(n,r)},t.prototype.move=function(t,e){var n=this._insertScope();if(-1!=e){var r=t;return this._element.moveView(r.internalView,e),ui(n,r)}},t.prototype.indexOf=function(t){return this.length?this._element.nestedViews.indexOf(t.internalView):-1},t.prototype.remove=function(t){void 0===t&&(t=-1);var e=this._removeScope();-1==t&&(t=this.length-1);var n=this._element.detachView(t);n.destroy(),ui(e)},t.prototype.detach=function(t){void 0===t&&(t=-1);var e=this._detachScope();-1==t&&(t=this.length-1);var n=this._element.detachView(t);return ui(e,n.ref)},t.prototype.clear=function(){for(var t=this.length-1;t>=0;t--)this.remove(t)},t}(),Bi=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},Hi=function(t){function e(){t.apply(this,arguments)}return Bi(e,t),e.prototype.destroy=function(){},e.prototype.destroyed=function(){},e.prototype.onDestroy=function(){},e}(br),qi=function(t){function e(){t.apply(this,arguments)}return Bi(e,t),e.prototype.context=function(){},e.prototype.rootNodes=function(){},e}(Hi),zi=function(){function t(t,e){this._view=t,this.animationQueue=e,this._view=t,this._originalMode=this._view.cdMode}return Object.defineProperty(t.prototype,"internalView",{get:function(){return this._view},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"rootNodes",{get:function(){return this._view.flatRootNodes},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"context",{get:function(){return this._view.context},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"destroyed",{get:function(){return this._view.destroyed},enumerable:!0,configurable:!0}),t.prototype.markForCheck=function(){this._view.markPathToRootAsCheckOnce()},t.prototype.detach=function(){this._view.cdMode=Re.Detached},t.prototype.detectChanges=function(){this._view.detectChanges(!1),this.animationQueue.flush()},t.prototype.checkNoChanges=function(){this._view.detectChanges(!0)},t.prototype.reattach=function(){this._view.cdMode=this._originalMode,this.markForCheck()},t.prototype.onDestroy=function(t){this._view.disposables||(this._view.disposables=[]),this._view.disposables.push(t)},t.prototype.destroy=function(){this._view.detachAndDestroy()},t}(),Wi=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},Gi=function(){function t(t,e){this.name=t,this.callback=e}return t}(),Ki=function(){function t(t,e,n){this._debugInfo=n,this.nativeNode=t,e&&e instanceof Xi?e.addChild(this):this.parent=null,this.listeners=[]}return Object.defineProperty(t.prototype,"injector",{get:function(){return this._debugInfo?this._debugInfo.injector:null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"componentInstance",{get:function(){return this._debugInfo?this._debugInfo.component:null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"context",{get:function(){return this._debugInfo?this._debugInfo.context:null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"references",{get:function(){return this._debugInfo?this._debugInfo.references:null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"providerTokens",{get:function(){return this._debugInfo?this._debugInfo.providerTokens:null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"source",{get:function(){return this._debugInfo?this._debugInfo.source:null; +return e.push.apply(e,r.statements),r.dirWrapperClassVar},t.prototype._compileComponentFactory=function(t,e,n,r){var i=C(this._symbolResolver.getStaticSymbol(w(t.type),b(t.type)+"_Host"),t),o=this._compileComponent(i,e,[t.type],null,n,r),s=ci(t.type);return r.push(Ge(s).set(Ke(Yt(_p.ComponentFactory),[Xe(t.type)]).instantiate([tn(t.selector),Ge(o),Ke(t.type)],Xe(Yt(_p.ComponentFactory),[Xe(t.type)],[wh.Const]))).toDeclStmt(null,[cf.Final])),s},t.prototype._compileComponent=function(t,e,n,r,i,o){var s=this,a=this._animationParser.parseComponent(t),u=n.map(function(t){return s._metadataResolver.getDirectiveSummary(t.reference)}),c=e.transitiveModule.pipes.map(function(t){return s._metadataResolver.getPipeSummary(t.reference)}),p=this._templateParser.parse(t,t.template.template,u,c,e.schemas,b(t.type)),l=r?Ge(r.stylesVar):Ye([]),h=this._animationCompiler.compile(b(t.type),a),f=this._viewCompiler.compileComponent(t,p,l,c,h);return r&&o.push.apply(o,ai(this._symbolResolver,r,i)),h.forEach(function(t){return o.push.apply(o,t.statements)}),o.push.apply(o,si(this._symbolResolver,f)),f.viewClassVar},t.prototype._codgenStyles=function(t,e,n){return ai(this._symbolResolver,e,n),this._codegenSourceModule(t,pi(e.meta.moduleUrl,e.isShimmed,n),e.statements,[e.stylesVar])},t.prototype._codegenSourceModule=function(t,e,n,r){return new Nm(t,e,this._outputEmitter.emitStatements(e,n,r))},t}(),Fm=function(){function t(t){this.staticDelegate=t,this.dynamicDelegate=new Ao}return t.install=function(e){Po.updateCapabilities(new t(e))},t.prototype.isReflectionEnabled=function(){return!0},t.prototype.factory=function(t){return this.dynamicDelegate.factory(t)},t.prototype.hasLifecycleHook=function(t,e){return gi(t)?this.staticDelegate.hasLifecycleHook(t,e):this.dynamicDelegate.hasLifecycleHook(t,e)},t.prototype.parameters=function(t){return gi(t)?this.staticDelegate.parameters(t):this.dynamicDelegate.parameters(t)},t.prototype.annotations=function(t){return gi(t)?this.staticDelegate.annotations(t):this.dynamicDelegate.annotations(t)},t.prototype.propMetadata=function(t){return gi(t)?this.staticDelegate.propMetadata(t):this.dynamicDelegate.propMetadata(t)},t.prototype.getter=function(t){return this.dynamicDelegate.getter(t)},t.prototype.setter=function(t){return this.dynamicDelegate.setter(t)},t.prototype.method=function(t){return this.dynamicDelegate.method(t)},t.prototype.importUri=function(t){return this.staticDelegate.importUri(t)},t.prototype.resolveIdentifier=function(t,e){return this.staticDelegate.resolveIdentifier(t,e)},t.prototype.resolveEnum=function(t,e){return gi(t)?this.staticDelegate.resolveEnum(t,e):null},t}(),Um=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},Bm={coreDecorators:"@angular/core/src/metadata",diDecorators:"@angular/core/src/di/metadata",diMetadata:"@angular/core/src/di/metadata",diOpaqueToken:"@angular/core/src/di/opaque_token",animationMetadata:"@angular/core/src/animation/metadata",provider:"@angular/core/src/di/provider"},Hm=/^\$.*\$$/,qm=function(){function t(t,e,n,r){var i=this;void 0===e&&(e=[]),void 0===n&&(n=[]),this.symbolResolver=t,this.errorRecorder=r,this.annotationCache=new Map,this.propertyCache=new Map,this.parameterCache=new Map,this.methodCache=new Map,this.conversionMap=new Map,this.initializeConversionMap(),e.forEach(function(t){return i._registerDecoratorOrConstructor(i.getStaticSymbol(t.filePath,t.name),t.ctor)}),n.forEach(function(t){return i._registerFunction(i.getStaticSymbol(t.filePath,t.name),t.fn)})}return t.prototype.importUri=function(t){var e=this.findSymbolDeclaration(t);return e?e.filePath:null},t.prototype.resolveIdentifier=function(t,e){return this.findDeclaration(e,t)},t.prototype.findDeclaration=function(t,e,n){return this.findSymbolDeclaration(this.symbolResolver.getSymbolByModule(t,e,n))},t.prototype.findSymbolDeclaration=function(t){var e=this.symbolResolver.resolveSymbol(t);return e&&e.metadata instanceof Ji?this.findSymbolDeclaration(e.metadata):t},t.prototype.resolveEnum=function(t,e){var n=t;return this.getStaticSymbol(n.filePath,n.name,[e])},t.prototype.annotations=function(t){var e=this.annotationCache.get(t);if(!e){e=[];var n=this.getTypeMetadata(t);if(n["extends"]){var r=this.annotations(this.simplify(t,n["extends"]));e.push.apply(e,r)}if(n.decorators){var i=this.simplify(t,n.decorators);e.push.apply(e,i)}this.annotationCache.set(t,e.filter(function(t){return!!t}))}return e},t.prototype.propMetadata=function(t){var e=this,n=this.propertyCache.get(t);if(!n){var r=this.getTypeMetadata(t);if(n={},r["extends"]){var i=this.propMetadata(this.simplify(t,r["extends"]));Object.keys(i).forEach(function(t){n[t]=i[t]})}var o=r.members||{};Object.keys(o).forEach(function(r){var i=o[r],s=i.find(function(t){return"property"==t.__symbolic||"method"==t.__symbolic}),a=[];n[r]&&a.push.apply(a,n[r]),n[r]=a,s&&s.decorators&&a.push.apply(a,e.simplify(t,s.decorators))}),this.propertyCache.set(t,n)}return n},t.prototype.parameters=function(t){if(!(t instanceof Ji))return this.reportError(new Error("parameters received "+JSON.stringify(t)+" which is not a StaticSymbol"),t),[];try{var e=this.parameterCache.get(t);if(!e){var n=this.getTypeMetadata(t),r=n?n.members:null,i=r?r.__ctor__:null;if(i){var o=i.find(function(t){return"constructor"==t.__symbolic}),s=this.simplify(t,o.parameters||[]),a=this.simplify(t,o.parameterDecorators||[]);e=[],s.forEach(function(t,n){var r=[];t&&r.push(t);var i=a?a[n]:null;i&&r.push.apply(r,i),e.push(r)})}else n["extends"]&&(e=this.parameters(this.simplify(t,n["extends"])));e||(e=[]),this.parameterCache.set(t,e)}return e}catch(u){throw console.error("Failed on type "+JSON.stringify(t)+" with error "+u),u}},t.prototype._methodNames=function(t){var e=this.methodCache.get(t);if(!e){var n=this.getTypeMetadata(t);if(e={},n["extends"]){var r=this._methodNames(this.simplify(t,n["extends"]));Object.keys(r).forEach(function(t){e[t]=r[t]})}var i=n.members||{};Object.keys(i).forEach(function(t){var n=i[t],r=n.some(function(t){return"method"==t.__symbolic});e[t]=e[t]||r}),this.methodCache.set(t,e)}return e},t.prototype.hasLifecycleHook=function(t,e){t instanceof Ji||this.reportError(new Error("hasLifecycleHook received "+JSON.stringify(t)+" which is not a StaticSymbol"),t);try{return!!this._methodNames(t)[e]}catch(n){throw console.error("Failed on type "+JSON.stringify(t)+" with error "+n),n}},t.prototype._registerDecoratorOrConstructor=function(t,e){this.conversionMap.set(t,function(t,n){return new(e.bind.apply(e,[void 0].concat(n)))})},t.prototype._registerFunction=function(t,e){this.conversionMap.set(t,function(t,n){return e.apply(void 0,n)})},t.prototype.initializeConversionMap=function(){{var t=Bm.coreDecorators,n=Bm.diDecorators,r=Bm.diMetadata,i=Bm.diOpaqueToken,o=Bm.animationMetadata;Bm.provider}this.opaqueToken=this.findDeclaration(i,"OpaqueToken"),this._registerDecoratorOrConstructor(this.findDeclaration(n,"Host"),e.Host),this._registerDecoratorOrConstructor(this.findDeclaration(n,"Injectable"),e.Injectable),this._registerDecoratorOrConstructor(this.findDeclaration(n,"Self"),e.Self),this._registerDecoratorOrConstructor(this.findDeclaration(n,"SkipSelf"),e.SkipSelf),this._registerDecoratorOrConstructor(this.findDeclaration(n,"Inject"),e.Inject),this._registerDecoratorOrConstructor(this.findDeclaration(n,"Optional"),e.Optional),this._registerDecoratorOrConstructor(this.findDeclaration(t,"Attribute"),e.Attribute),this._registerDecoratorOrConstructor(this.findDeclaration(t,"ContentChild"),e.ContentChild),this._registerDecoratorOrConstructor(this.findDeclaration(t,"ContentChildren"),e.ContentChildren),this._registerDecoratorOrConstructor(this.findDeclaration(t,"ViewChild"),e.ViewChild),this._registerDecoratorOrConstructor(this.findDeclaration(t,"ViewChildren"),e.ViewChildren),this._registerDecoratorOrConstructor(this.findDeclaration(t,"Input"),e.Input),this._registerDecoratorOrConstructor(this.findDeclaration(t,"Output"),e.Output),this._registerDecoratorOrConstructor(this.findDeclaration(t,"Pipe"),e.Pipe),this._registerDecoratorOrConstructor(this.findDeclaration(t,"HostBinding"),e.HostBinding),this._registerDecoratorOrConstructor(this.findDeclaration(t,"HostListener"),e.HostListener),this._registerDecoratorOrConstructor(this.findDeclaration(t,"Directive"),e.Directive),this._registerDecoratorOrConstructor(this.findDeclaration(t,"Component"),e.Component),this._registerDecoratorOrConstructor(this.findDeclaration(t,"NgModule"),e.NgModule),this._registerDecoratorOrConstructor(this.findDeclaration(r,"Host"),e.Host),this._registerDecoratorOrConstructor(this.findDeclaration(r,"Self"),e.Self),this._registerDecoratorOrConstructor(this.findDeclaration(r,"SkipSelf"),e.SkipSelf),this._registerDecoratorOrConstructor(this.findDeclaration(r,"Optional"),e.Optional),this._registerFunction(this.findDeclaration(o,"trigger"),e.trigger),this._registerFunction(this.findDeclaration(o,"state"),e.state),this._registerFunction(this.findDeclaration(o,"transition"),e.transition),this._registerFunction(this.findDeclaration(o,"style"),e.style),this._registerFunction(this.findDeclaration(o,"animate"),e.animate),this._registerFunction(this.findDeclaration(o,"keyframes"),e.keyframes),this._registerFunction(this.findDeclaration(o,"sequence"),e.sequence),this._registerFunction(this.findDeclaration(o,"group"),e.group)},t.prototype.getStaticSymbol=function(t,e,n){return this.symbolResolver.getStaticSymbol(t,e,n)},t.prototype.reportError=function(t,e,n){if(!this.errorRecorder)throw t;this.errorRecorder(t,e&&e.filePath||n)},t.prototype.simplify=function(t,e){function n(t,e,r){function a(t){var e=i.symbolResolver.resolveSymbol(t);return e?e.metadata:null}function u(e,i,a){if(i&&"function"==i.__symbolic){if(s.get(e))throw new Error("Recursion not supported");s.set(e,!0);try{var u=i.value;if(u&&(0!=r||"error"!=u.__symbolic)){var p=i.parameters,l=i.defaults;a=a.map(function(e){return n(t,e,r+1)}),l&&l.length>a.length&&a.push.apply(a,l.slice(a.length).map(function(t){return c(t)}));for(var h=zm.build(),f=0;f<p.length;f++)h.define(p[f],a[f]);var d,y=o;try{o=h.done(),d=n(e,u,r+1)}finally{o=y}return d}}finally{s["delete"](e)}}return 0===r?{__symbolic:"ignore"}:c({__symbolic:"error",message:"Function call not supported",context:e})}function c(e){if(Ei(e))return e;if(e instanceof Array){for(var s=[],p=0,l=e;p<l.length;p++){var h=l[p];if(h&&"spread"===h.__symbolic){var f=c(h.expression);if(Array.isArray(f)){for(var d=0,y=f;d<y.length;d++){var m=y[d];s.push(m)}continue}}var v=c(h);Si(v)||s.push(v)}return s}if(e instanceof Ji){if(e===i.opaqueToken||i.conversionMap.has(e))return e;var g=e,_=a(g);return _?n(g,_,r+1):g}if(e){if(e.__symbolic){var g=void 0;switch(e.__symbolic){case"binop":var b=c(e.left);if(Si(b))return b;var w=c(e.right);if(Si(w))return w;switch(e.operator){case"&&":return b&&w;case"||":return b||w;case"|":return b|w;case"^":return b^w;case"&":return b&w;case"==":return b==w;case"!=":return b!=w;case"===":return b===w;case"!==":return b!==w;case"<":return w>b;case">":return b>w;case"<=":return w>=b;case">=":return b>=w;case"<<":return b<<w;case">>":return b>>w;case"+":return b+w;case"-":return b-w;case"*":return b*w;case"/":return b/w;case"%":return b%w}return null;case"if":var E=c(e.condition);return c(E?e.thenExpression:e.elseExpression);case"pre":var S=c(e.operand);if(Si(S))return S;switch(e.operator){case"+":return S;case"-":return-S;case"!":return!S;case"~":return~S}return null;case"index":var C=c(e.expression),x=c(e.index);return C&&Ei(x)?C[x]:null;case"select":var T=e.member,P=t,O=c(e.expression);if(O instanceof Ji){var A=O.members.concat(T);P=i.getStaticSymbol(O.filePath,O.name,A);var _=a(P);return _?n(P,_,r+1):P}return O&&Ei(T)?n(P,O[T],r+1):null;case"reference":var M=e.name,R=o.resolve(M);if(R!=zm.missing)return R;break;case"class":return t;case"function":return t;case"new":case"call":if(g=n(t,e.expression,r+1),g instanceof Ji){if(g===i.opaqueToken)return t;var k=e.arguments||[],N=i.conversionMap.get(g);if(N){var I=k.map(function(e){return n(t,e,r+1)});return N(t,I)}var D=a(g);return u(g,D,k)}break;case"error":var j=bi(e);if(e.line)throw j=j+" (position "+(e.line+1)+":"+(e.character+1)+" in the original .ts file)",Ci(j,t.filePath,e.line,e.character);throw new Error(j)}return null}return wi(e,function(t){return c(t)})}return null}try{return c(e)}catch(p){var l=t.members.length?"."+t.members.join("."):"",h=p.message+", resolving symbol "+t.name+l+" in "+t.filePath;if(p.fileName)throw Ci(h,p.fileName,p.line,p.column);throw new cs(h)}}var r=this,i=this,o=zm.empty,s=new Map,a=function(t,e,i){try{return n(t,e,i)}catch(o){r.reportError(o,t)}},u=this.errorRecorder?a(t,e,0):n(t,e,0);return Si(u)?void 0:u},t.prototype.getTypeMetadata=function(t){var e=this.symbolResolver.resolveSymbol(t);return e&&e.metadata?e.metadata:{__symbolic:"class"}},t}(),zm=function(){function t(){}return t.prototype.resolve=function(){},t.build=function(){var e=new Map;return{define:function(t,n){return e.set(t,n),this},done:function(){return e.size>0?new Wm(e):t.empty}}},t.missing={},t.empty={resolve:function(){return t.missing}},t}(),Wm=function(t){function e(e){t.call(this),this.bindings=e}return Um(e,t),e.prototype.resolve=function(t){return this.bindings.has(t)?this.bindings.get(t):zm.missing},e}(zm),Gm=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},Km=function(){function t(t,e){this.symbol=t,this.metadata=e}return t}(),Xm=3,Qm=function(){function t(t,e,n,r){this.host=t,this.staticSymbolCache=e,this.summaryResolver=n,this.errorRecorder=r,this.metadataCache=new Map,this.resolvedSymbols=new Map,this.resolvedFilePaths=new Set}return t.prototype.resolveSymbol=function(t){if(t.members.length>0)return this._resolveSymbolMembers(t);var e=this._resolveSymbolFromSummary(t);return e||(this._createSymbolsOf(t.filePath),e=this.resolvedSymbols.get(t)),e},t.prototype._resolveSymbolMembers=function(t){var e=t.members,n=this.resolveSymbol(this.getStaticSymbol(t.filePath,t.name));if(!n)return null;var r=n.metadata;if(r instanceof Ji)return new Km(t,this.getStaticSymbol(r.filePath,r.name,e));if(!r||"class"!==r.__symbolic){for(var i=r,o=0;o<e.length&&i;o++)i=i[e[o]];return new Km(t,i)}return r.statics&&1===e.length?new Km(t,r.statics[e[0]]):null},t.prototype._resolveSymbolFromSummary=function(t){var e=this.summaryResolver.resolveSummary(t);return e?new Km(t,e.metadata):null},t.prototype.getStaticSymbol=function(t,e,n){return this.staticSymbolCache.get(t,e,n)},t.prototype.getSymbolsOf=function(t){var e=new Set(this.summaryResolver.getSymbolsOf(t));return this._createSymbolsOf(t),this.resolvedSymbols.forEach(function(n){n.symbol.filePath===t&&e.add(n.symbol)}),Array.from(e)},t.prototype._createSymbolsOf=function(t){var e=this;if(!this.resolvedFilePaths.has(t)){this.resolvedFilePaths.add(t);var n=[],r=this.getModuleMetadata(t);if(r.metadata&&Object.keys(r.metadata).forEach(function(i){var o=r.metadata[i];n.push(e.createResolvedSymbol(e.getStaticSymbol(t,i),o))}),r.exports)for(var i=function(r){if(r["export"])r["export"].forEach(function(i){var o;o="string"==typeof i?i:i.as;var s=o;"string"!=typeof i&&(s=i.name);var a=e.resolveModule(r.from,t);if(a){var u=e.getStaticSymbol(a,s),c=e.getStaticSymbol(t,o);n.push(new Km(c,u))}});else{var i=o.resolveModule(r.from,t);if(i){var s=o.getSymbolsOf(i);s.forEach(function(r){var i=e.getStaticSymbol(t,r.name);n.push(new Km(i,r))})}}},o=this,s=0,a=r.exports;s<a.length;s++){var u=a[s];i(u)}n.forEach(function(t){return e.resolvedSymbols.set(t.symbol,t)})}},t.prototype.createResolvedSymbol=function(t,e){var n=this,r=function(e){function r(){e.apply(this,arguments)}return Gm(r,e),r.prototype.visitStringMap=function(r,i){var o=r.__symbolic;if("function"===o){var s=i.length;i.push.apply(i,r.parameters||[]);var a=e.prototype.visitStringMap.call(this,r,i);return i.length=s,a}if("reference"===o){var u=r.module,c=r.name;if(!c)return null;var p=void 0;if(u){if(p=n.resolveModule(u,t.filePath),!p)return{__symbolic:"error",message:"Could not resolve "+u+" relative to "+t.filePath+"."}}else{var l=i.indexOf(c)>=0;l||(p=t.filePath)}return p?n.getStaticSymbol(p,c):{__symbolic:"reference",name:c}}return e.prototype.visitStringMap.call(this,r,i)},r}(as),i=g(e,new r,[]);return new Km(t,i)},t.prototype.reportError=function(t,e,n){if(!this.errorRecorder)throw t;this.errorRecorder(t,e&&e.filePath||n)},t.prototype.getModuleMetadata=function(t){var e=this.metadataCache.get(t);if(!e){var n=this.host.getMetadataFor(t);if(n){var r=-1;n.forEach(function(t){t.version>r&&(r=t.version,e=t)})}if(e||(e={__symbolic:"module",version:Xm,module:t,metadata:{}}),e.version!=Xm){var i=2==e.version?"Unsupported metadata version "+e.version+" for module "+t+". This module should be compiled with a newer version of ngc":"Metadata version mismatch for module "+t+", found version "+e.version+", expected "+Xm;this.reportError(new Error(i),null)}this.metadataCache.set(t,e)}return e},t.prototype.getSymbolByModule=function(t,e,n){var r=this.resolveModule(t,n);return r?this.getStaticSymbol(r,e):(this.reportError(new Error("Could not resolve module "+t+(n?" relative to $ {\n containingFile\n } ":"")),null),this.getStaticSymbol("ERROR:"+t,e))},t.prototype.resolveModule=function(t,e){try{return this.host.moduleNameToFileName(t,e)}catch(n){console.error("Could not resolve module '"+t+"' relative to file "+e),this.reportError(new n,null,e)}},t}(),Ym=function(){function t(t,e){this.host=t,this.staticSymbolCache=e,this.summaryCache=new Map,this.loadedFilePaths=new Set}return t.prototype._assertNoMembers=function(t){if(t.members.length)throw new Error("Internal state: StaticSymbols in summaries can't have members! "+JSON.stringify(t))},t.prototype.resolveSummary=function(t){this._assertNoMembers(t);var e=this.summaryCache.get(t);return e||(this._loadSummaryFile(t.filePath),e=this.summaryCache.get(t)),e},t.prototype.getSymbolsOf=function(t){return this._loadSummaryFile(t),Array.from(this.summaryCache.keys()).filter(function(e){return e.filePath===t})},t.prototype._loadSummaryFile=function(t){var e=this;if(!this.loadedFilePaths.has(t)&&(this.loadedFilePaths.add(t),!this.host.isSourceFile(t))){var n=oi(t),r=void 0;try{r=this.host.loadSummary(n)}catch(i){throw console.error("Error loading summary file "+n),i}if(r){var o=ii(this.staticSymbolCache,r);o.forEach(function(t){e.summaryCache.set(t.symbol,t)})}}},t}(),$m=function(){function t(t,e,n,r){this.parent=t,this.instance=e,this.className=n,this.vars=r}return t.prototype.createChildWihtLocalVars=function(){return new t(this,this.instance,this.className,new Map)},t}(),Zm=function(){function t(t){this.value=t}return t}(),Jm=function(){function t(){}return t.prototype.debugAst=function(t){return Yn(t)},t.prototype.visitDeclareVarStmt=function(t,e){return e.vars.set(t.name,t.value.visitExpression(this,e)),null},t.prototype.visitWriteVarExpr=function(t,e){for(var n=t.value.visitExpression(this,e),r=e;null!=r;){if(r.vars.has(t.name))return r.vars.set(t.name,n),n;r=r.parent}throw new Error("Not declared variable "+t.name)},t.prototype.visitReadVarExpr=function(t,e){var n=t.name;if(r(t.builtin))switch(t.builtin){case jh.Super:return e.instance.__proto__;case jh.This:return e.instance;case jh.CatchError:n=tv;break;case jh.CatchStack:n=ev;break;default:throw new Error("Unknown builtin variable "+t.builtin)}for(var i=e;null!=i;){if(i.vars.has(n))return i.vars.get(n);i=i.parent}throw new Error("Not declared variable "+n)},t.prototype.visitWriteKeyExpr=function(t,e){var n=t.receiver.visitExpression(this,e),r=t.index.visitExpression(this,e),i=t.value.visitExpression(this,e);return n[r]=i,i},t.prototype.visitWritePropExpr=function(t,e){var n=t.receiver.visitExpression(this,e),r=t.value.visitExpression(this,e);return n[t.name]=r,r},t.prototype.visitInvokeMethodExpr=function(t,e){var n,i=t.receiver.visitExpression(this,e),o=this.visitAllExpressions(t.args,e);if(r(t.builtin))switch(t.builtin){case Bh.ConcatArray:n=i.concat.apply(i,o);break;case Bh.SubscribeObservable:n=i.subscribe({next:o[0]});break;case Bh.Bind:n=i.bind.apply(i,o);break;default:throw new Error("Unknown builtin method "+t.builtin)}else n=i[t.name].apply(i,o);return n},t.prototype.visitInvokeFunctionExpr=function(t,e){var n=this.visitAllExpressions(t.args,e),r=t.fn;if(r instanceof Lh&&r.builtin===jh.Super)return e.instance.constructor.prototype.constructor.apply(e.instance,n),null;var i=t.fn.visitExpression(this,e);return i.apply(null,n)},t.prototype.visitReturnStmt=function(t,e){return new Zm(t.value.visitExpression(this,e))},t.prototype.visitDeclareClassStmt=function(t,e){var n=Oi(t,e,this);return e.vars.set(t.name,n),null},t.prototype.visitExpressionStmt=function(t,e){return t.expr.visitExpression(this,e)},t.prototype.visitIfStmt=function(t,e){var n=t.condition.visitExpression(this,e);return n?this.visitAllStatements(t.trueCase,e):r(t.falseCase)?this.visitAllStatements(t.falseCase,e):null},t.prototype.visitTryCatchStmt=function(t,e){try{return this.visitAllStatements(t.bodyStmts,e)}catch(n){var r=e.createChildWihtLocalVars();return r.vars.set(tv,n),r.vars.set(ev,n.stack),this.visitAllStatements(t.catchStmts,r)}},t.prototype.visitThrowStmt=function(t,e){throw t.error.visitExpression(this,e)},t.prototype.visitCommentStmt=function(){return null},t.prototype.visitInstantiateExpr=function(t,e){var n=this.visitAllExpressions(t.args,e),r=t.classExpr.visitExpression(this,e);return new(r.bind.apply(r,[void 0].concat(n)))},t.prototype.visitLiteralExpr=function(t){return t.value},t.prototype.visitExternalExpr=function(t){return t.value.reference},t.prototype.visitConditionalExpr=function(t,e){return t.condition.visitExpression(this,e)?t.trueCase.visitExpression(this,e):r(t.falseCase)?t.falseCase.visitExpression(this,e):null},t.prototype.visitNotExpr=function(t,e){return!t.condition.visitExpression(this,e)},t.prototype.visitCastExpr=function(t,e){return t.value.visitExpression(this,e)},t.prototype.visitFunctionExpr=function(t,e){var n=t.params.map(function(t){return t.name});return Ai(n,t.statements,e,this)},t.prototype.visitDeclareFunctionStmt=function(t,e){var n=t.params.map(function(t){return t.name});return e.vars.set(t.name,Ai(n,t.statements,e,this)),null},t.prototype.visitBinaryOperatorExpr=function(t,e){var n=this,r=function(){return t.lhs.visitExpression(n,e)},i=function(){return t.rhs.visitExpression(n,e)};switch(t.operator){case Ih.Equals:return r()==i();case Ih.Identical:return r()===i();case Ih.NotEquals:return r()!=i();case Ih.NotIdentical:return r()!==i();case Ih.And:return r()&&i();case Ih.Or:return r()||i();case Ih.Plus:return r()+i();case Ih.Minus:return r()-i();case Ih.Divide:return r()/i();case Ih.Multiply:return r()*i();case Ih.Modulo:return r()%i();case Ih.Lower:return r()<i();case Ih.LowerEquals:return r()<=i();case Ih.Bigger:return r()>i();case Ih.BiggerEquals:return r()>=i();default:throw new Error("Unknown operator "+t.operator)}},t.prototype.visitReadPropExpr=function(t,e){var n,r=t.receiver.visitExpression(this,e);return n=r[t.name]},t.prototype.visitReadKeyExpr=function(t,e){var n=t.receiver.visitExpression(this,e),r=t.index.visitExpression(this,e);return n[r]},t.prototype.visitLiteralArrayExpr=function(t,e){return this.visitAllExpressions(t.entries,e)},t.prototype.visitLiteralMapExpr=function(t,e){var n=this,r={};return t.entries.forEach(function(t){return r[t.key]=t.value.visitExpression(n,e)}),r},t.prototype.visitAllExpressions=function(t,e){var n=this;return t.map(function(t){return t.visitExpression(n,e)})},t.prototype.visitAllStatements=function(t,e){for(var n=0;n<t.length;n++){var r=t[n],i=r.visitStatement(this,e);if(i instanceof Zm)return i}return null},t}(),tv="error",ev="stack",nv=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},rv=function(t){function e(){t.call(this,!1)}return nv(e,t),e.prototype.visitDeclareClassStmt=function(t,e){var n=this;return e.pushClass(t),this._visitClassConstructor(t,e),r(t.parent)&&(e.print(t.name+".prototype = Object.create("),t.parent.visitExpression(this,e),e.println(".prototype);")),t.getters.forEach(function(r){return n._visitClassGetter(t,r,e)}),t.methods.forEach(function(r){return n._visitClassMethod(t,r,e)}),e.popClass(),null},e.prototype._visitClassConstructor=function(t,e){e.print("function "+t.name+"("),r(t.constructorMethod)&&this._visitParams(t.constructorMethod.params,e),e.println(") {"),e.incIndent(),r(t.constructorMethod)&&t.constructorMethod.body.length>0&&(e.println("var self = this;"),this.visitAllStatements(t.constructorMethod.body,e)),e.decIndent(),e.println("}")},e.prototype._visitClassGetter=function(t,e,n){n.println("Object.defineProperty("+t.name+".prototype, '"+e.name+"', { get: function() {"),n.incIndent(),e.body.length>0&&(n.println("var self = this;"),this.visitAllStatements(e.body,n)),n.decIndent(),n.println("}});")},e.prototype._visitClassMethod=function(t,e,n){n.print(t.name+".prototype."+e.name+" = function("),this._visitParams(e.params,n),n.println(") {"),n.incIndent(),e.body.length>0&&(n.println("var self = this;"),this.visitAllStatements(e.body,n)),n.decIndent(),n.println("};")},e.prototype.visitReadVarExpr=function(e,n){if(e.builtin===jh.This)n.print("self");else{if(e.builtin===jh.Super)throw new Error("'super' needs to be handled at a parent ast node, not at the variable level!");t.prototype.visitReadVarExpr.call(this,e,n)}return null},e.prototype.visitDeclareVarStmt=function(t,e){return e.print("var "+t.name+" = "),t.value.visitExpression(this,e),e.println(";"),null},e.prototype.visitCastExpr=function(t,e){return t.value.visitExpression(this,e),null},e.prototype.visitInvokeFunctionExpr=function(e,n){var r=e.fn;return r instanceof Lh&&r.builtin===jh.Super?(n.currentClass.parent.visitExpression(this,n),n.print(".call(this"),e.args.length>0&&(n.print(", "),this.visitAllExpressions(e.args,n,",")),n.print(")")):t.prototype.visitInvokeFunctionExpr.call(this,e,n),null},e.prototype.visitFunctionExpr=function(t,e){return e.print("function("),this._visitParams(t.params,e),e.println(") {"),e.incIndent(),this.visitAllStatements(t.statements,e),e.decIndent(),e.print("}"),null},e.prototype.visitDeclareFunctionStmt=function(t,e){return e.print("function "+t.name+"("),this._visitParams(t.params,e),e.println(") {"),e.incIndent(),this.visitAllStatements(t.statements,e),e.decIndent(),e.println("}"),null},e.prototype.visitTryCatchStmt=function(t,e){e.println("try {"),e.incIndent(),this.visitAllStatements(t.bodyStmts,e),e.decIndent(),e.println("} catch ("+Pd.name+") {"),e.incIndent();var n=[Od.set(Pd.prop("stack")).toDeclStmt(null,[cf.Final])].concat(t.catchStmts);return this.visitAllStatements(n,e),e.decIndent(),e.println("}"),null},e.prototype._visitParams=function(t,e){this.visitAllObjects(function(t){return e.print(t.name)},t,e,",")},e.prototype.getBuiltinMethodName=function(t){var e;switch(t){case Bh.ConcatArray:e="concat";break;case Bh.SubscribeObservable:e="subscribe";break;case Bh.Bind:e="bind";break;default:throw new Error("Unknown builtin method: "+t)}return e},e}(Rd),iv=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},ov=function(t){function e(){t.apply(this,arguments),this._evalArgNames=[],this._evalArgValues=[]}return iv(e,t),e.prototype.getArgs=function(){for(var t={},e=0;e<this._evalArgNames.length;e++)t[this._evalArgNames[e]]=this._evalArgValues[e];return t},e.prototype.visitExternalExpr=function(t,e){var n=t.value.reference,r=this._evalArgValues.indexOf(n);if(-1===r){r=this._evalArgValues.length,this._evalArgValues.push(n);var i=b(t.value)||"val";this._evalArgNames.push("jit_"+i+r)}return e.print(this._evalArgNames[r]),null},e}(rv),sv=this&&this.__decorate||function(t,e,n,r){var i,o=arguments.length,s=3>o?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,r);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(3>o?i(s):o>3?i(e,n,s):i(e,n))||s);return o>3&&s&&Object.defineProperty(e,n,s),s},av=this&&this.__metadata||function(t,e){return"object"==typeof Reflect&&"function"==typeof Reflect.metadata?Reflect.metadata(t,e):void 0},uv=function(){function t(t,e,n,r,i,o,s,a,u){this._injector=t,this._metadataResolver=e,this._templateParser=n,this._styleCompiler=r,this._viewCompiler=i,this._ngModuleCompiler=o,this._directiveWrapperCompiler=s,this._compilerConfig=a,this._animationParser=u,this._compiledTemplateCache=new Map,this._compiledHostTemplateCache=new Map,this._compiledDirectiveWrapperCache=new Map,this._compiledNgModuleCache=new Map,this._animationCompiler=new dm}return Object.defineProperty(t.prototype,"injector",{get:function(){return this._injector},enumerable:!0,configurable:!0}),t.prototype.compileModuleSync=function(t){return this._compileModuleAndComponents(t,!0).syncResult},t.prototype.compileModuleAsync=function(t){return this._compileModuleAndComponents(t,!1).asyncResult},t.prototype.compileModuleAndAllComponentsSync=function(t){return this._compileModuleAndAllComponents(t,!0).syncResult},t.prototype.compileModuleAndAllComponentsAsync=function(t){return this._compileModuleAndAllComponents(t,!1).asyncResult},t.prototype.getNgContentSelectors=function(t){var e=this._compiledTemplateCache.get(t);if(!e)throw new Error("The component "+s(t)+" is not yet compiled!");return e.compMeta.template.ngContentSelectors},t.prototype._compileModuleAndComponents=function(t,e){var n=this,r=this._loadModules(t,e),i=function(){return n._compileComponents(t,null),n._compileModule(t)};return e?new us(i()):new us(null,r.then(i))},t.prototype._compileModuleAndAllComponents=function(t,n){var r=this,i=this._loadModules(t,n),o=function(){var n=[];return r._compileComponents(t,n),new e.ModuleWithComponentFactories(r._compileModule(t),n)};return n?new us(o()):new us(null,i.then(o))},t.prototype._loadModules=function(t,e){var n=this,r=[],i=this._metadataResolver.getNgModuleMetadata(t);return i.transitiveModule.modules.forEach(function(t){r.push(n._metadataResolver.loadNgModuleDirectiveAndPipeMetadata(t.reference,e))}),Promise.all(r)},t.prototype._compileModule=function(t){var n=this,r=this._compiledNgModuleCache.get(t);if(!r){var i=this._metadataResolver.getNgModuleMetadata(t),o=[this._metadataResolver.getProviderMetadata(new Rs(e.Compiler,{useFactory:function(){return new pv(n,i.type.reference)}}))],s=this._ngModuleCompiler.compile(i,o);s.dependencies.forEach(function(t){t.placeholder.reference=n._assertComponentKnown(t.comp.reference,!0).proxyComponentFactory}),r=this._compilerConfig.useJit?Ri("/"+b(i.type)+"/module.ngfactory.js",s.statements,s.ngModuleFactoryVar):Ti(s.statements,s.ngModuleFactoryVar),this._compiledNgModuleCache.set(i.type.reference,r)}return r},t.prototype._compileComponents=function(t,e){var n=this,r=this._metadataResolver.getNgModuleMetadata(t),i=new Map,o=new Set;r.transitiveModule.modules.forEach(function(t){var r=n._metadataResolver.getNgModuleMetadata(t.reference);r.declaredDirectives.forEach(function(t){i.set(t.reference,r);var s=n._metadataResolver.getDirectiveMetadata(t.reference);if(n._compileDirectiveWrapper(s,r),s.isComponent&&(o.add(n._createCompiledTemplate(s,r)),e)){var a=n._createCompiledHostTemplate(s.type.reference,r);o.add(a),e.push(a.proxyComponentFactory)}})}),r.transitiveModule.modules.forEach(function(t){var e=n._metadataResolver.getNgModuleMetadata(t.reference);e.declaredDirectives.forEach(function(t){var e=n._metadataResolver.getDirectiveMetadata(t.reference);e.isComponent&&e.entryComponents.forEach(function(t){var e=i.get(t.reference);o.add(n._createCompiledHostTemplate(t.reference,e)); -},enumerable:!0,configurable:!0}),t}(),Xi=function(t){function e(e,n,r){t.call(this,e,n,r),this.properties={},this.attributes={},this.classes={},this.styles={},this.childNodes=[],this.nativeElement=e}return Wi(e,t),e.prototype.addChild=function(t){t&&(this.childNodes.push(t),t.parent=this)},e.prototype.removeChild=function(t){var e=this.childNodes.indexOf(t);-1!==e&&(t.parent=null,this.childNodes.splice(e,1))},e.prototype.insertChildrenAfter=function(t,e){var n=this.childNodes.indexOf(t);if(-1!==n){var r=this.childNodes.slice(0,n+1),i=this.childNodes.slice(n+1);this.childNodes=r.concat(e,i);for(var o=0;o<e.length;++o){var s=e[o];s.parent&&s.parent.removeChild(s),s.parent=this}}},e.prototype.query=function(t){var e=this.queryAll(t);return e[0]||null},e.prototype.queryAll=function(t){var e=[];return Bt(this,t,e),e},e.prototype.queryAllNodes=function(t){var e=[];return Ht(this,t,e),e},Object.defineProperty(e.prototype,"children",{get:function(){return this.childNodes.filter(function(t){return t instanceof e})},enumerable:!0,configurable:!0}),e.prototype.triggerEventHandler=function(t,e){this.listeners.forEach(function(n){n.name==t&&n.callback(e)})},e}(Ki),Qi=new Map,Yi=[bi,{provide:_i,useExisting:bi},{provide:Pn,useFactory:Gt,deps:[]},{provide:xn,useExisting:Pn},hi,Kn],$i=kt(null,"core",Yi),Zi=new Ee("LocaleId"),Ji=new Ee("Translations"),to=new Ee("TranslationsFormat"),eo=function(){function t(){}return t.decorators=[{type:$e,args:[{providers:[Ei,{provide:wi,useExisting:Ei},Bn,$n,qn,Vr,ir,{provide:dr,useFactory:Kt},{provide:yr,useFactory:Xt},{provide:Zi,useFactory:Qt,deps:[[new me(Zi),new ve,new be]]}]}]}],t.ctorParameters=function(){return[]},t}(),no="true",ro="*",io="*",oo="void",so=function(){function t(t){var e=this;this._players=t,this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this.parentPlayer=null;var n=0,i=this._players.length;0==i?r(function(){return e._onFinish()}):this._players.forEach(function(t){t.parentPlayer=e,t.onDone(function(){++n>=i&&e._onFinish()})})}return t.prototype._onFinish=function(){this._finished||(this._finished=!0,this._onDoneFns.forEach(function(t){return t()}),this._onDoneFns=[])},t.prototype.init=function(){this._players.forEach(function(t){return t.init()})},t.prototype.onStart=function(t){this._onStartFns.push(t)},t.prototype.onDone=function(t){this._onDoneFns.push(t)},t.prototype.hasStarted=function(){return this._started},t.prototype.play=function(){s(this.parentPlayer)||this.init(),this.hasStarted()||(this._onStartFns.forEach(function(t){return t()}),this._onStartFns=[],this._started=!0),this._players.forEach(function(t){return t.play()})},t.prototype.pause=function(){this._players.forEach(function(t){return t.pause()})},t.prototype.restart=function(){this._players.forEach(function(t){return t.restart()})},t.prototype.finish=function(){this._onFinish(),this._players.forEach(function(t){return t.finish()})},t.prototype.destroy=function(){this._destroyed||(this._onFinish(),this._players.forEach(function(t){return t.destroy()}),this._destroyed=!0)},t.prototype.reset=function(){this._players.forEach(function(t){return t.reset()}),this._destroyed=!1,this._finished=!1,this._started=!1},t.prototype.setPosition=function(t){this._players.forEach(function(e){e.setPosition(t)})},t.prototype.getPosition=function(){var t=0;return this._players.forEach(function(e){var n=e.getPosition();t=Math.min(n,t)}),t},Object.defineProperty(t.prototype,"players",{get:function(){return this._players},enumerable:!0,configurable:!0}),t}(),ao=function(){function t(t,e){this.offset=t,this.styles=e}return t}(),uo=function(){function t(){}return t.prototype.onDone=function(){},t.prototype.onStart=function(){},t.prototype.init=function(){},t.prototype.hasStarted=function(){},t.prototype.play=function(){},t.prototype.pause=function(){},t.prototype.restart=function(){},t.prototype.finish=function(){},t.prototype.destroy=function(){},t.prototype.reset=function(){},t.prototype.setPosition=function(){},t.prototype.getPosition=function(){},Object.defineProperty(t.prototype,"parentPlayer",{get:function(){throw new Error("NOT IMPLEMENTED: Base Class")},set:function(){throw new Error("NOT IMPLEMENTED: Base Class")},enumerable:!0,configurable:!0}),t}(),co=function(){function t(){var t=this;this._onDoneFns=[],this._onStartFns=[],this._started=!1,this.parentPlayer=null,r(function(){return t._onFinish()})}return t.prototype._onFinish=function(){this._onDoneFns.forEach(function(t){return t()}),this._onDoneFns=[]},t.prototype.onStart=function(t){this._onStartFns.push(t)},t.prototype.onDone=function(t){this._onDoneFns.push(t)},t.prototype.hasStarted=function(){return this._started},t.prototype.init=function(){},t.prototype.play=function(){this.hasStarted()||(this._onStartFns.forEach(function(t){return t()}),this._onStartFns=[]),this._started=!0},t.prototype.pause=function(){},t.prototype.restart=function(){},t.prototype.finish=function(){this._onFinish()},t.prototype.destroy=function(){},t.prototype.reset=function(){},t.prototype.setPosition=function(){},t.prototype.getPosition=function(){return 0},t}(),po=function(){function t(t){var e=this;this._players=t,this._currentIndex=0,this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this.parentPlayer=null,this._players.forEach(function(t){t.parentPlayer=e}),this._onNext(!1)}return t.prototype._onNext=function(t){var e=this;if(!this._finished)if(0==this._players.length)this._activePlayer=new co,r(function(){return e._onFinish()});else if(this._currentIndex>=this._players.length)this._activePlayer=new co,this._onFinish();else{var n=this._players[this._currentIndex++];n.onDone(function(){return e._onNext(!0)}),this._activePlayer=n,t&&n.play()}},t.prototype._onFinish=function(){this._finished||(this._finished=!0,this._onDoneFns.forEach(function(t){return t()}),this._onDoneFns=[])},t.prototype.init=function(){this._players.forEach(function(t){return t.init()})},t.prototype.onStart=function(t){this._onStartFns.push(t)},t.prototype.onDone=function(t){this._onDoneFns.push(t)},t.prototype.hasStarted=function(){return this._started},t.prototype.play=function(){s(this.parentPlayer)||this.init(),this.hasStarted()||(this._onStartFns.forEach(function(t){return t()}),this._onStartFns=[],this._started=!0),this._activePlayer.play()},t.prototype.pause=function(){this._activePlayer.pause()},t.prototype.restart=function(){this.reset(),this._players.length>0&&this._players[0].restart()},t.prototype.reset=function(){this._players.forEach(function(t){return t.reset()}),this._destroyed=!1,this._finished=!1,this._started=!1},t.prototype.finish=function(){this._onFinish(),this._players.forEach(function(t){return t.finish()})},t.prototype.destroy=function(){this._destroyed||(this._onFinish(),this._players.forEach(function(t){return t.destroy()}),this._destroyed=!0,this._activePlayer=new co)},t.prototype.setPosition=function(t){this._players[0].setPosition(t)},t.prototype.getPosition=function(){return this._players[0].getPosition()},Object.defineProperty(t.prototype,"players",{get:function(){return this._players},enumerable:!0,configurable:!0}),t}(),lo=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},ho="*",fo=function(){function t(t,e){this.name=t,this.definitions=e}return t}(),yo=function(){function t(){}return t}(),mo=function(t){function e(e,n){t.call(this),this.stateNameExpr=e,this.styles=n}return lo(e,t),e}(yo),vo=function(t){function e(e,n){t.call(this),this.stateChangeExpr=e,this.steps=n}return lo(e,t),e}(yo),go=function(){function t(){}return t}(),_o=function(t){function e(e){t.call(this),this.steps=e}return lo(e,t),e}(go),bo=function(t){function e(e,n){void 0===n&&(n=null),t.call(this),this.styles=e,this.offset=n}return lo(e,t),e}(go),wo=function(t){function e(e,n){t.call(this),this.timings=e,this.styles=n}return lo(e,t),e}(go),Eo=function(t){function e(){t.call(this)}return lo(e,t),Object.defineProperty(e.prototype,"steps",{get:function(){throw new Error("NOT IMPLEMENTED: Base Class")},enumerable:!0,configurable:!0}),e}(go),So=function(t){function e(e){t.call(this),this._steps=e}return lo(e,t),Object.defineProperty(e.prototype,"steps",{get:function(){return this._steps},enumerable:!0,configurable:!0}),e}(Eo),Co=function(t){function e(e){t.call(this),this._steps=e}return lo(e,t),Object.defineProperty(e.prototype,"steps",{get:function(){return this._steps},enumerable:!0,configurable:!0}),e}(Eo),xo=function(){function t(t){this.styles=t}return t}(),To=function(){function t(t){var e=t.fromState,n=t.toState,r=t.totalTime,i=t.phaseName;this.fromState=e,this.toState=n,this.totalTime=r,this.phaseName=i}return t}(),Po=function(){function t(t,e,n,r){this._player=t,this._fromState=e,this._toState=n,this._totalTime=r}return t.prototype._createEvent=function(t){return new To({fromState:this._fromState,toState:this._toState,totalTime:this._totalTime,phaseName:t})},t.prototype.onStart=function(t){var e=this,n=Zone.current.wrap(function(){return t(e._createEvent("start"))},"player.onStart");this._player.onStart(n)},t.prototype.onDone=function(t){var e=this,n=Zone.current.wrap(function(){return t(e._createEvent("done"))},"player.onDone");this._player.onDone(n)},t}(),Oo=function(){function t(t){this._delegate=t}return t.prototype.renderComponent=function(t){return new Ao(this._delegate.renderComponent(t))},t}(),Ao=function(){function t(t){this._delegate=t}return t.prototype.selectRootElement=function(t,e){var n=this._delegate.selectRootElement(t,e),r=new Xi(n,null,e);return zt(r),n},t.prototype.createElement=function(t,e,n){var r=this._delegate.createElement(t,e,n),i=new Xi(r,qt(t),n);return i.name=e,zt(i),r},t.prototype.createViewRoot=function(t){return this._delegate.createViewRoot(t)},t.prototype.createTemplateAnchor=function(t,e){var n=this._delegate.createTemplateAnchor(t,e),r=new Ki(n,qt(t),e);return zt(r),n},t.prototype.createText=function(t,e,n){var r=this._delegate.createText(t,e,n),i=new Ki(r,qt(t),n);return zt(i),r},t.prototype.projectNodes=function(t,e){var n=qt(t);if(s(n)&&n instanceof Xi){var r=n;e.forEach(function(t){r.addChild(qt(t))})}this._delegate.projectNodes(t,e)},t.prototype.attachViewAfter=function(t,e){var n=qt(t);if(s(n)){var r=n.parent;if(e.length>0&&s(r)){var i=[];e.forEach(function(t){return i.push(qt(t))}),r.insertChildrenAfter(n,i)}}this._delegate.attachViewAfter(t,e)},t.prototype.detachView=function(t){t.forEach(function(t){var e=qt(t);s(e)&&s(e.parent)&&e.parent.removeChild(e)}),this._delegate.detachView(t)},t.prototype.destroyView=function(t,e){e=e||[],e.forEach(function(t){Wt(qt(t))}),this._delegate.destroyView(t,e)},t.prototype.listen=function(t,e,n){var r=qt(t);return s(r)&&r.listeners.push(new Gi(e,n)),this._delegate.listen(t,e,n)},t.prototype.listenGlobal=function(t,e,n){return this._delegate.listenGlobal(t,e,n)},t.prototype.setElementProperty=function(t,e,n){var r=qt(t);s(r)&&r instanceof Xi&&(r.properties[e]=n),this._delegate.setElementProperty(t,e,n)},t.prototype.setElementAttribute=function(t,e,n){var r=qt(t);s(r)&&r instanceof Xi&&(r.attributes[e]=n),this._delegate.setElementAttribute(t,e,n)},t.prototype.setBindingDebugInfo=function(t,e,n){this._delegate.setBindingDebugInfo(t,e,n)},t.prototype.setElementClass=function(t,e,n){var r=qt(t);s(r)&&r instanceof Xi&&(r.classes[e]=n),this._delegate.setElementClass(t,e,n)},t.prototype.setElementStyle=function(t,e,n){var r=qt(t);s(r)&&r instanceof Xi&&(r.styles[e]=n),this._delegate.setElementStyle(t,e,n)},t.prototype.invokeElementMethod=function(t,e,n){this._delegate.invokeElementMethod(t,e,n)},t.prototype.setText=function(t,e){this._delegate.setText(t,e)},t.prototype.animate=function(t,e,n,r,i,o,s){return void 0===s&&(s=[]),this._delegate.animate(t,e,n,r,i,o,s)},t}(),Mo={};Mo.HOST=0,Mo.COMPONENT=1,Mo.EMBEDDED=2,Mo[Mo.HOST]="HOST",Mo[Mo.COMPONENT]="COMPONENT",Mo[Mo.EMBEDDED]="EMBEDDED";var Ro=function(){function t(t,e,n){this.providerTokens=t,this.componentToken=e,this.refTokens=n}return t}(),ko=function(){function t(t,e,n,r){this._view=t,this._nodeIndex=e,this._tplRow=n,this._tplCol=r}return Object.defineProperty(t.prototype,"_staticNodeInfo",{get:function(){return s(this._nodeIndex)?this._view.staticNodeDebugInfos[this._nodeIndex]:null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"context",{get:function(){return this._view.context},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"component",{get:function(){var t=this._staticNodeInfo;return s(t)&&s(t.componentToken)?this.injector.get(t.componentToken):null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"componentRenderElement",{get:function(){for(var t=this._view;s(t.parentView)&&t.type!==Mo.COMPONENT;)t=t.parentView;return t.parentElement},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"injector",{get:function(){return this._view.injector(this._nodeIndex)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"renderNode",{get:function(){return s(this._nodeIndex)&&this._view.allNodes?this._view.allNodes[this._nodeIndex]:null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"providerTokens",{get:function(){var t=this._staticNodeInfo;return s(t)?t.providerTokens:null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"source",{get:function(){return this._view.componentType.templateUrl+":"+this._tplRow+":"+this._tplCol},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"references",{get:function(){var t=this,e={},n=this._staticNodeInfo;if(s(n)){var r=n.refTokens;Object.keys(r).forEach(function(n){var i,o=r[n];i=a(o)?t._view.allNodes?t._view.allNodes[t._nodeIndex]:null:t._view.injectorGet(o,t._nodeIndex,null),e[n]=i})}return e},enumerable:!0,configurable:!0}),t}(),No=function(){function t(){this._map=new Map,this._allPlayers=[]}return t.prototype.find=function(t,e){var n=this._map.get(t);return s(n)?n[e]:void 0},t.prototype.findAllPlayersByElement=function(t){var e=this._map.get(t);return e?Object.keys(e).map(function(t){return e[t]}):[]},t.prototype.set=function(t,e,n){var r=this._map.get(t);s(r)||(r={});var i=r[e];s(i)&&this.remove(t,e),r[e]=n,this._allPlayers.push(n),this._map.set(t,r)},t.prototype.getAllPlayers=function(){return this._allPlayers},t.prototype.remove=function(t,e,n){void 0===n&&(n=null);var r=this._map.get(t);if(r){var i=r[e];if(!n||i===n){delete r[e];var o=this._allPlayers.indexOf(i);this._allPlayers.splice(o,1),0===Object.keys(r).length&&this._map["delete"](t)}}},t}(),Io=function(){function t(t){this._animationQueue=t,this._players=new No}return t.prototype.onAllActiveAnimationsDone=function(t){var e=this._players.getAllPlayers();e.length?new so(e).onDone(function(){return t()}):t()},t.prototype.queueAnimation=function(t,e,n){var r=this;this._animationQueue.enqueue(n),this._players.set(t,e,n),n.onDone(function(){return r._players.remove(t,e,n)})},t.prototype.getAnimationPlayers=function(t,e){void 0===e&&(e=null);var n=[];if(e){var r=this._players.find(t,e);r&&pe(r,n)}else this._players.findAllPlayersByElement(t).forEach(function(t){return pe(t,n)});return n},t}(),Do=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},jo=function(t){function e(e,n){t.call(this),this._view=e,this._nodeIndex=n}return Do(e,t),e.prototype.get=function(t,e){return void 0===e&&(e=rn),this._view.injectorGet(t,this._nodeIndex,e)},e}(sn),Lo=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},Vo=ai("AppView#check(ascii id)"),Fo=new Object,Uo=new Object,Bo=function(){function t(t,e,n,r,i,o,s,a,u){void 0===u&&(u=null),this.clazz=t,this.componentType=e,this.type=n,this.viewUtils=r,this.parentView=i,this.parentIndex=o,this.parentElement=s,this.cdMode=a,this.declaredViewContainer=u,this.numberOfChecks=0,this.ref=new zi(this,r.animationQueue),this.renderer=n===Mo.COMPONENT||n===Mo.HOST?r.renderComponent(e):i.renderer,this._directRenderer=this.renderer.directRenderer}return Object.defineProperty(t.prototype,"animationContext",{get:function(){return this._animationContext||(this._animationContext=new Io(this.viewUtils.animationQueue)),this._animationContext},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"destroyed",{get:function(){return this.cdMode===Re.Destroyed},enumerable:!0,configurable:!0}),t.prototype.create=function(t){return this.context=t,this.createInternal(null)},t.prototype.createHostView=function(t,e,n){return this.context=Fo,this._hasExternalHostElement=s(t),this._hostInjector=e,this._hostProjectableNodes=n,this.createInternal(t)},t.prototype.createInternal=function(){return null},t.prototype.createEmbeddedViewInternal=function(){return null},t.prototype.init=function(t,e,n){this.lastRootNode=t,this.allNodes=e,this.disposables=n,this.type===Mo.COMPONENT&&this.dirtyParentQueriesInternal()},t.prototype.injectorGet=function(t,e,n){void 0===n&&(n=rn);for(var r=Uo,i=this;r===Uo;)s(e)&&(r=i.injectorGetInternal(t,e,Uo)),r===Uo&&i.type===Mo.HOST&&(r=i._hostInjector.get(t,n)),e=i.parentIndex,i=i.parentView;return r},t.prototype.injectorGetInternal=function(t,e,n){return n},t.prototype.injector=function(t){return new jo(this,t)},t.prototype.detachAndDestroy=function(){this.viewContainer?this.viewContainer.detachView(this.viewContainer.nestedViews.indexOf(this)):this.appRef?this.appRef.detachView(this.ref):this._hasExternalHostElement&&this.detach(),this.destroy()},t.prototype.destroy=function(){var t=this;if(this.cdMode!==Re.Destroyed){var e=this.type===Mo.COMPONENT?this.parentElement:null;if(this.disposables)for(var n=0;n<this.disposables.length;n++)this.disposables[n]();this.destroyInternal(),this.dirtyParentQueriesInternal(),this._animationContext?this._animationContext.onAllActiveAnimationsDone(function(){return t.renderer.destroyView(e,t.allNodes)}):this.renderer.destroyView(e,this.allNodes),this.cdMode=Re.Destroyed}},t.prototype.destroyInternal=function(){},t.prototype.detachInternal=function(){},t.prototype.detach=function(){var t=this;if(this.detachInternal(),this._animationContext?this._animationContext.onAllActiveAnimationsDone(function(){return t._renderDetach()}):this._renderDetach(),this.declaredViewContainer&&this.declaredViewContainer!==this.viewContainer&&this.declaredViewContainer.projectedViews){var e=this.declaredViewContainer.projectedViews,n=e.indexOf(this);n>=e.length-1?e.pop():e.splice(n,1)}this.appRef=null,this.viewContainer=null,this.dirtyParentQueriesInternal()},t.prototype._renderDetach=function(){this._directRenderer?this.visitRootNodesInternal(this._directRenderer.remove,null):this.renderer.detachView(this.flatRootNodes)},t.prototype.attachToAppRef=function(t){if(this.viewContainer)throw new Error("This view is already attached to a ViewContainer!");this.appRef=t,this.dirtyParentQueriesInternal()},t.prototype.attachAfter=function(t,e){if(this.appRef)throw new Error("This view is already attached directly to the ApplicationRef!");this._renderAttach(t,e),this.viewContainer=t,this.declaredViewContainer&&this.declaredViewContainer!==t&&(this.declaredViewContainer.projectedViews||(this.declaredViewContainer.projectedViews=[]),this.declaredViewContainer.projectedViews.push(this)),this.dirtyParentQueriesInternal()},t.prototype.moveAfter=function(t,e){this._renderAttach(t,e),this.dirtyParentQueriesInternal()},t.prototype._renderAttach=function(t,e){var n=e?e.lastRootNode:t.nativeElement;if(this._directRenderer){var r=this._directRenderer.nextSibling(n);if(r)this.visitRootNodesInternal(this._directRenderer.insertBefore,r);else{var i=this._directRenderer.parentElement(n);i&&this.visitRootNodesInternal(this._directRenderer.appendChild,i)}}else this.renderer.attachViewAfter(n,this.flatRootNodes)},Object.defineProperty(t.prototype,"changeDetectorRef",{get:function(){return this.ref},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"flatRootNodes",{get:function(){var t=[];return this.visitRootNodesInternal($,t),t},enumerable:!0,configurable:!0}),t.prototype.projectNodes=function(t,e){if(this._directRenderer)this.visitProjectedNodes(e,this._directRenderer.appendChild,t);else{var n=[];this.visitProjectedNodes(e,$,n),this.renderer.projectNodes(t,n)}},t.prototype.visitProjectedNodes=function(t,e,n){switch(this.type){case Mo.EMBEDDED:this.parentView.visitProjectedNodes(t,e,n);break;case Mo.COMPONENT:if(this.parentView.type===Mo.HOST)for(var r=this.parentView._hostProjectableNodes[t]||[],i=0;i<r.length;i++)e(r[i],n);else this.parentView.visitProjectableNodesInternal(this.parentIndex,t,e,n)}},t.prototype.visitRootNodesInternal=function(){},t.prototype.visitProjectableNodesInternal=function(){},t.prototype.dirtyParentQueriesInternal=function(){},t.prototype.internalDetectChanges=function(t){this.cdMode!==Re.Detached&&this.detectChanges(t)},t.prototype.detectChanges=function(t){var e=Vo(this.clazz);this.cdMode!==Re.Checked&&this.cdMode!==Re.Errored&&(this.cdMode===Re.Destroyed&&this.throwDestroyedError("detectChanges"),this.detectChangesInternal(t),this.cdMode===Re.CheckOnce&&(this.cdMode=Re.Checked),this.numberOfChecks++,ui(e))},t.prototype.detectChangesInternal=function(){},t.prototype.markAsCheckOnce=function(){this.cdMode=Re.CheckOnce},t.prototype.markPathToRootAsCheckOnce=function(){for(var t=this;s(t)&&t.cdMode!==Re.Detached;)t.cdMode===Re.Checked&&(t.cdMode=Re.CheckOnce),t=t.type===Mo.COMPONENT?t.parentView:t.viewContainer?t.viewContainer.parentView:null},t.prototype.eventHandler=function(t){return t},t.prototype.throwDestroyedError=function(t){throw new Lr(t)},t}(),Ho=function(t){function e(e,n,r,i,o,s,a,u,c,p){void 0===p&&(p=null),t.call(this,e,n,r,i,o,s,a,u,p),this.staticNodeDebugInfos=c,this._currentDebugContext=null}return Lo(e,t),e.prototype.create=function(e){this._resetDebug();try{return t.prototype.create.call(this,e)}catch(n){throw this._rethrowWithContext(n),n}},e.prototype.createHostView=function(e,n,r){void 0===r&&(r=null),this._resetDebug();try{return t.prototype.createHostView.call(this,e,n,r)}catch(i){throw this._rethrowWithContext(i),i}},e.prototype.injectorGet=function(e,n,r){this._resetDebug();try{return t.prototype.injectorGet.call(this,e,n,r)}catch(i){throw this._rethrowWithContext(i),i}},e.prototype.detach=function(){this._resetDebug();try{t.prototype.detach.call(this)}catch(e){throw this._rethrowWithContext(e),e}},e.prototype.destroy=function(){this._resetDebug();try{t.prototype.destroy.call(this)}catch(e){throw this._rethrowWithContext(e),e}},e.prototype.detectChanges=function(e){this._resetDebug();try{t.prototype.detectChanges.call(this,e)}catch(n){throw this._rethrowWithContext(n),n}},e.prototype._resetDebug=function(){this._currentDebugContext=null},e.prototype.debug=function(t,e,n){return this._currentDebugContext=new ko(this,t,e,n)},e.prototype._rethrowWithContext=function(t){if(!(t instanceof jr)&&(t instanceof Dr||(this.cdMode=Re.Errored),s(this._currentDebugContext)))throw new jr(t,this._currentDebugContext)},e.prototype.eventHandler=function(e){var n=this,r=t.prototype.eventHandler.call(this,e);return function(t,e){n._resetDebug();try{return r.call(n,t,e)}catch(i){throw n._rethrowWithContext(i),i}}},e}(Bo),qo=function(){function t(t,e,n,r){this.index=t,this.parentIndex=e,this.parentView=n,this.nativeElement=r}return Object.defineProperty(t.prototype,"elementRef",{get:function(){return new tr(this.nativeElement)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"vcRef",{get:function(){return new Ui(this)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"parentInjector",{get:function(){return this.parentView.injector(this.parentIndex)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"injector",{get:function(){return this.parentView.injector(this.index)},enumerable:!0,configurable:!0}),t.prototype.detectChangesInNestedViews=function(t){if(this.nestedViews)for(var e=0;e<this.nestedViews.length;e++)this.nestedViews[e].detectChanges(t)},t.prototype.destroyNestedViews=function(){if(this.nestedViews)for(var t=0;t<this.nestedViews.length;t++)this.nestedViews[t].destroy()},t.prototype.visitNestedViewRootNodes=function(t,e){if(this.nestedViews)for(var n=0;n<this.nestedViews.length;n++)this.nestedViews[n].visitRootNodesInternal(t,e)},t.prototype.mapNestedViews=function(t,e){var n=[];if(this.nestedViews)for(var r=0;r<this.nestedViews.length;r++){var i=this.nestedViews[r];i.clazz===t&&n.push(e(i))}if(this.projectedViews)for(var r=0;r<this.projectedViews.length;r++){var o=this.projectedViews[r];o.clazz===t&&n.push(e(o))}return n},t.prototype.moveView=function(t,e){var n=this.nestedViews.indexOf(t);if(t.type===Mo.COMPONENT)throw new Error("Component views can't be moved!");var r=this.nestedViews;null==r&&(r=[],this.nestedViews=r),r.splice(n,1),r.splice(e,0,t);var i=e>0?r[e-1]:null;t.moveAfter(this,i)},t.prototype.attachView=function(t,e){if(t.type===Mo.COMPONENT)throw new Error("Component views can't be moved!");var n=this.nestedViews;null==n&&(n=[],this.nestedViews=n),e>=n.length?n.push(t):n.splice(e,0,t);var r=e>0?n[e-1]:null;t.attachAfter(this,r)},t.prototype.detachView=function(t){var e=this.nestedViews[t];if(t>=this.nestedViews.length-1?this.nestedViews.pop():this.nestedViews.splice(t,1),e.type===Mo.COMPONENT)throw new Error("Component views can't be moved!");return e.detach(),e},t}(),zo={isDefaultChangeDetectionStrategy:E,ChangeDetectorStatus:Re,constructDependencies:D,LifecycleHooks:Fe,LIFECYCLE_HOOKS_VALUES:Ue,ReflectorReader:xn,CodegenComponentFactoryResolver:oi,ComponentRef_:Jr,ViewContainer:qo,AppView:Bo,DebugAppView:Ho,NgModuleInjector:Pi,registerModuleFactory:Lt,ViewType:Mo,view_utils:Yr,ViewMetadata:Je,DebugContext:ko,StaticNodeDebugInfo:Ro,devModeEqual:Q,UNINITIALIZED:mr,ValueUnwrapper:gr,RenderDebugInfo:Tr,TemplateRef_:Vi,ReflectionCapabilities:Cn,makeDecorator:g,DebugDomRootRenderer:Oo,Console:Kn,reflector:On,Reflector:Pn,NoOpAnimationPlayer:co,AnimationPlayer:uo,AnimationSequencePlayer:po,AnimationGroupPlayer:so,AnimationKeyframe:ao,prepareFinalAnimationStyles:ie,balanceAnimationKeyframes:oe,flattenStyles:ce,clearStyles:se,renderStyles:ue,collectAndResolveStyles:ae,APP_ID_RANDOM_PROVIDER:qn,AnimationStyles:xo,ANY_STATE:ro,DEFAULT_STATE:io,EMPTY_STATE:oo,FILL_STYLE_FLAG:no,ComponentStillLoadingError:Qn,isPromise:q,isObservable:z,AnimationTransition:Po};t.createPlatform=Rt,t.assertPlatform=Nt,t.destroyPlatform=It,t.getPlatform=Dt,t.PlatformRef=_i,t.ApplicationRef=wi,t.enableProdMode=At,t.isDevMode=Mt,t.createPlatformFactory=kt,t.NgProbeToken=gi,t.APP_ID=Hn,t.PACKAGE_ROOT_URL=Gn,t.PLATFORM_INITIALIZER=zn,t.APP_BOOTSTRAP_LISTENER=Wn,t.APP_INITIALIZER=Un,t.ApplicationInitStatus=Bn,t.DebugElement=Xi,t.DebugNode=Ki,t.asNativeElements=Ut,t.getDebugNode=qt,t.Testability=li,t.TestabilityRegistry=hi,t.setTestabilityGetter=Ot,t.TRANSLATIONS=Ji,t.TRANSLATIONS_FORMAT=to,t.LOCALE_ID=Zi,t.ApplicationModule=eo,t.wtfCreateScope=ai,t.wtfLeave=ui,t.wtfStartTimeRange=ci,t.wtfEndTimeRange=pi,t.Type=En,t.EventEmitter=nr,t.ErrorHandler=Ln,t.AnimationTransitionEvent=To,t.AnimationPlayer=uo,t.AnimationStyles=xo,t.AnimationKeyframe=ao,t.Sanitizer=Nr,t.SecurityContext=Ar,t.ANALYZE_FOR_ENTRY_COMPONENTS=Se,t.Attribute=Ce,t.ContentChild=Pe,t.ContentChildren=Te,t.Query=xe,t.ViewChild=Ae,t.ViewChildren=Oe,t.Component=Ne,t.Directive=ke,t.HostBinding=Le,t.HostListener=Ve,t.Input=De,t.Output=je,t.Pipe=Ie,t.AfterContentChecked=Ge,t.AfterContentInit=We,t.AfterViewChecked=Xe,t.AfterViewInit=Ke,t.DoCheck=qe,t.OnChanges=Be,t.OnDestroy=ze,t.OnInit=He,t.CUSTOM_ELEMENTS_SCHEMA=Qe,t.NO_ERRORS_SCHEMA=Ye,t.NgModule=$e,t.ViewEncapsulation=Ze,t.Version=tn,t.VERSION=en,t.Class=v,t.forwardRef=S,t.resolveForwardRef=C,t.Injector=sn,t.ReflectiveInjector=In,t.ResolvedReflectiveFactory=kn,t.ReflectiveKey=_n,t.OpaqueToken=Ee,t.Inject=me,t.Optional=ve,t.Injectable=ge,t.Self=_e,t.SkipSelf=be,t.Host=we,t.NgZone=rr,t.RenderComponentType=xr,t.Renderer=Pr,t.RootRenderer=Or,t.COMPILER_OPTIONS=Zn,t.Compiler=$n,t.CompilerFactory=Jn,t.ModuleWithComponentFactories=Yn,t.ComponentFactory=ti,t.ComponentRef=Zr,t.ComponentFactoryResolver=ii,t.ElementRef=tr,t.NgModuleFactory=xi,t.NgModuleRef=Ci,t.NgModuleFactoryLoader=Oi,t.getModuleFactory=Vt,t.QueryList=Mi,t.SystemJsNgModuleLoader=Di,t.SystemJsNgModuleLoaderConfig=Ni,t.TemplateRef=Li,t.ViewContainerRef=Fi,t.EmbeddedViewRef=qi,t.ViewRef=Hi,t.ChangeDetectionStrategy=Me,t.ChangeDetectorRef=br,t.CollectionChangeRecord=ur,t.DefaultIterableDiffer=ar,t.IterableDiffers=dr,t.KeyValueChangeRecord=fr,t.KeyValueDiffers=yr,t.SimpleChange=_r,t.WrappedValue=vr,t.platformCore=$i,t.__core_private__=zo,t.AUTO_STYLE=ho,t.AnimationEntryMetadata=fo,t.AnimationStateMetadata=yo,t.AnimationStateDeclarationMetadata=mo,t.AnimationStateTransitionMetadata=vo,t.AnimationMetadata=go,t.AnimationKeyframesSequenceMetadata=_o,t.AnimationStyleMetadata=bo,t.AnimationAnimateMetadata=wo,t.AnimationWithStepsMetadata=Eo,t.AnimationSequenceMetadata=So,t.AnimationGroupMetadata=Co,t.animate=Yt,t.group=$t,t.sequence=Zt,t.style=Jt,t.state=te,t.keyframes=ee,t.transition=ne,t.trigger=re})}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"rxjs/Observable":15,"rxjs/Subject":18,"rxjs/symbol/observable":46}],8:[function(e,n,r){!function(i,o){"object"==typeof r&&"undefined"!=typeof n?o(r,e("@angular/core"),e("rxjs/Observable"),e("@angular/platform-browser")):"function"==typeof t&&t.amd?t(["exports","@angular/core","rxjs/Observable","@angular/platform-browser"],o):o((i.ng=i.ng||{},i.ng.http=i.ng.http||{}),i.ng.core,i.Rx,i.ng.platformBrowser)}(this,function(t,e,n,r){"use strict";function i(t){if("string"!=typeof t)return t;switch(t.toUpperCase()){case"GET":return m.Get;case"POST":return m.Post;case"PUT":return m.Put;case"DELETE":return m.Delete;case"OPTIONS":return m.Options;case"HEAD":return m.Head;case"PATCH":return m.Patch}throw new Error('Invalid request method. The method "'+t+'" is not supported.')}function o(t){return"responseURL"in t?t.responseURL:/^X-Request-URL:/m.test(t.getAllResponseHeaders())?t.getResponseHeader("X-Request-URL"):void 0}function s(t){for(var e=new Uint16Array(t.length),n=0,r=t.length;r>n;n++)e[n]=t.charCodeAt(n);return e.buffer}function a(t){void 0===t&&(t="");var e=new Map;if(t.length>0){var n=t.split("&");n.forEach(function(t){var n=t.indexOf("="),r=-1==n?[t,""]:[t.slice(0,n),t.slice(n+1)],i=r[0],o=r[1],s=e.get(i)||[];s.push(o),e.set(i,s)})}return e}function u(t){return encodeURIComponent(t).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/gi,"$").replace(/%2C/gi,",").replace(/%3B/gi,";").replace(/%2B/gi,"+").replace(/%3D/gi,"=").replace(/%3F/gi,"?").replace(/%2F/gi,"/")}function c(){var t="object"==typeof window?window:{};return null===j&&(j=t[D]={}),j}function p(t,e){return t.createConnection(e).response}function l(t,e,n,r){var i=t;return i.merge(e?new Y({method:e.method||n,url:e.url||r,search:e.search,headers:e.headers,body:e.body,withCredentials:e.withCredentials,responseType:e.responseType}):new Y({method:n,url:r}))}function h(){return new K}function f(t,e){return new st(t,e)}function d(t,e){return new at(t,e)}var y=function(){function t(){}return t.prototype.build=function(){return new XMLHttpRequest},t.decorators=[{type:e.Injectable}],t.ctorParameters=function(){return[]},t}(),m={};m.Get=0,m.Post=1,m.Put=2,m.Delete=3,m.Options=4,m.Head=5,m.Patch=6,m[m.Get]="Get",m[m.Post]="Post",m[m.Put]="Put",m[m.Delete]="Delete",m[m.Options]="Options",m[m.Head]="Head",m[m.Patch]="Patch";var v={};v.Unsent=0,v.Open=1,v.HeadersReceived=2,v.Loading=3,v.Done=4,v.Cancelled=5,v[v.Unsent]="Unsent",v[v.Open]="Open",v[v.HeadersReceived]="HeadersReceived",v[v.Loading]="Loading",v[v.Done]="Done", -v[v.Cancelled]="Cancelled";var g={};g.Basic=0,g.Cors=1,g.Default=2,g.Error=3,g.Opaque=4,g[g.Basic]="Basic",g[g.Cors]="Cors",g[g.Default]="Default",g[g.Error]="Error",g[g.Opaque]="Opaque";var _={};_.NONE=0,_.JSON=1,_.FORM=2,_.FORM_DATA=3,_.TEXT=4,_.BLOB=5,_.ARRAY_BUFFER=6,_[_.NONE]="NONE",_[_.JSON]="JSON",_[_.FORM]="FORM",_[_.FORM_DATA]="FORM_DATA",_[_.TEXT]="TEXT",_[_.BLOB]="BLOB",_[_.ARRAY_BUFFER]="ARRAY_BUFFER";var b={};b.Text=0,b.Json=1,b.ArrayBuffer=2,b.Blob=3,b[b.Text]="Text",b[b.Json]="Json",b[b.ArrayBuffer]="ArrayBuffer",b[b.Blob]="Blob";var w=function(){function t(e){var n=this;return this._headers=new Map,this._normalizedNames=new Map,e?e instanceof t?void e.forEach(function(t,e){t.forEach(function(t){return n.append(e,t)})}):void Object.keys(e).forEach(function(t){var r=Array.isArray(e[t])?e[t]:[e[t]];n["delete"](t),r.forEach(function(e){return n.append(t,e)})}):void 0}return t.fromResponseHeaderString=function(e){var n=new t;return e.split("\n").forEach(function(t){var e=t.indexOf(":");if(e>0){var r=t.slice(0,e),i=t.slice(e+1).trim();n.set(r,i)}}),n},t.prototype.append=function(t,e){var n=this.getAll(t);null===n?this.set(t,e):n.push(e)},t.prototype["delete"]=function(t){var e=t.toLowerCase();this._normalizedNames["delete"](e),this._headers["delete"](e)},t.prototype.forEach=function(t){var e=this;this._headers.forEach(function(n,r){return t(n,e._normalizedNames.get(r),e._headers)})},t.prototype.get=function(t){var e=this.getAll(t);return null===e?null:e.length>0?e[0]:null},t.prototype.has=function(t){return this._headers.has(t.toLowerCase())},t.prototype.keys=function(){return Array.from(this._normalizedNames.values())},t.prototype.set=function(t,e){Array.isArray(e)?e.length&&this._headers.set(t.toLowerCase(),[e.join(",")]):this._headers.set(t.toLowerCase(),[e]),this.mayBeSetNormalizedName(t)},t.prototype.values=function(){return Array.from(this._headers.values())},t.prototype.toJSON=function(){var t=this,e={};return this._headers.forEach(function(n,r){var i=[];n.forEach(function(t){return i.push.apply(i,t.split(","))}),e[t._normalizedNames.get(r)]=i}),e},t.prototype.getAll=function(t){return this.has(t)?this._headers.get(t.toLowerCase()):null},t.prototype.entries=function(){throw new Error('"entries" method is not implemented on Headers class')},t.prototype.mayBeSetNormalizedName=function(t){var e=t.toLowerCase();this._normalizedNames.has(e)||this._normalizedNames.set(e,t)},t}(),E=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},S=function(){function t(t){var e=void 0===t?{}:t,n=e.body,r=e.status,i=e.headers,o=e.statusText,s=e.type,a=e.url;this.body=null!=n?n:null,this.status=null!=r?r:null,this.headers=null!=i?i:null,this.statusText=null!=o?o:null,this.type=null!=s?s:null,this.url=null!=a?a:null}return t.prototype.merge=function(e){return new t({body:e&&null!=e.body?e.body:this.body,status:e&&null!=e.status?e.status:this.status,headers:e&&null!=e.headers?e.headers:this.headers,statusText:e&&null!=e.statusText?e.statusText:this.statusText,type:e&&null!=e.type?e.type:this.type,url:e&&null!=e.url?e.url:this.url})},t}(),C=function(t){function n(){t.call(this,{status:200,statusText:"Ok",type:g.Default,headers:new w})}return E(n,t),n.decorators=[{type:e.Injectable}],n.ctorParameters=function(){return[]},n}(S),x=function(){function t(){}return t.prototype.createConnection=function(){},t}(),T=function(){function t(){}return t}(),P=function(){function t(){}return t.prototype.configureRequest=function(){},t}(),O=function(t){return t>=200&&300>t},A=function(){function t(){}return t.prototype.encodeKey=function(t){return u(t)},t.prototype.encodeValue=function(t){return u(t)},t}(),M=function(){function t(t,e){void 0===t&&(t=""),void 0===e&&(e=new A),this.rawParams=t,this.queryEncoder=e,this.paramsMap=a(t)}return t.prototype.clone=function(){var e=new t("",this.queryEncoder);return e.appendAll(this),e},t.prototype.has=function(t){return this.paramsMap.has(t)},t.prototype.get=function(t){var e=this.paramsMap.get(t);return Array.isArray(e)?e[0]:null},t.prototype.getAll=function(t){return this.paramsMap.get(t)||[]},t.prototype.set=function(t,e){if(void 0===e||null===e)return void this["delete"](t);var n=this.paramsMap.get(t)||[];n.length=0,n.push(e),this.paramsMap.set(t,n)},t.prototype.setAll=function(t){var e=this;t.paramsMap.forEach(function(t,n){var r=e.paramsMap.get(n)||[];r.length=0,r.push(t[0]),e.paramsMap.set(n,r)})},t.prototype.append=function(t,e){if(void 0!==e&&null!==e){var n=this.paramsMap.get(t)||[];n.push(e),this.paramsMap.set(t,n)}},t.prototype.appendAll=function(t){var e=this;t.paramsMap.forEach(function(t,n){for(var r=e.paramsMap.get(n)||[],i=0;i<t.length;++i)r.push(t[i]);e.paramsMap.set(n,r)})},t.prototype.replaceAll=function(t){var e=this;t.paramsMap.forEach(function(t,n){var r=e.paramsMap.get(n)||[];r.length=0;for(var i=0;i<t.length;++i)r.push(t[i]);e.paramsMap.set(n,r)})},t.prototype.toString=function(){var t=this,e=[];return this.paramsMap.forEach(function(n,r){n.forEach(function(n){return e.push(t.queryEncoder.encodeKey(r)+"="+t.queryEncoder.encodeValue(n))})}),e.join("&")},t.prototype["delete"]=function(t){this.paramsMap["delete"](t)},t}(),R=function(){function t(){}return t.prototype.json=function(){return"string"==typeof this._body?JSON.parse(this._body):this._body instanceof ArrayBuffer?JSON.parse(this.text()):this._body},t.prototype.text=function(){return this._body instanceof M?this._body.toString():this._body instanceof ArrayBuffer?String.fromCharCode.apply(null,new Uint16Array(this._body)):null==this._body?"":"object"==typeof this._body?JSON.stringify(this._body,null,2):this._body.toString()},t.prototype.arrayBuffer=function(){return this._body instanceof ArrayBuffer?this._body:s(this.text())},t.prototype.blob=function(){if(this._body instanceof Blob)return this._body;if(this._body instanceof ArrayBuffer)return new Blob([this._body]);throw new Error("The request body isn't either a blob or an array buffer")},t}(),k=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},N=function(t){function e(e){t.call(this),this._body=e.body,this.status=e.status,this.ok=this.status>=200&&this.status<=299,this.statusText=e.statusText,this.headers=e.headers,this.type=e.type,this.url=e.url}return k(e,t),e.prototype.toString=function(){return"Response with status: "+this.status+" "+this.statusText+" for URL: "+this.url},e}(R),I=0,D="__ng_jsonp__",j=null,L=function(){function t(){}return t.prototype.build=function(t){var e=document.createElement("script");return e.src=t,e},t.prototype.nextRequestID=function(){return"__req"+I++},t.prototype.requestCallback=function(t){return D+"."+t+".finished"},t.prototype.exposeConnection=function(t,e){var n=c();n[t]=e},t.prototype.removeConnection=function(t){var e=c();e[t]=null},t.prototype.send=function(t){document.body.appendChild(t)},t.prototype.cleanup=function(t){t.parentNode&&t.parentNode.removeChild(t)},t.decorators=[{type:e.Injectable}],t.ctorParameters=function(){return[]},t}(),V=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},F="JSONP injected script did not invoke callback.",U="JSONP requests must use GET request method.",B=function(){function t(){}return t.prototype.finished=function(){},t}(),H=function(t){function e(e,r,i){var o=this;if(t.call(this),this._dom=r,this.baseResponseOptions=i,this._finished=!1,e.method!==m.Get)throw new TypeError(U);this.request=e,this.response=new n.Observable(function(t){o.readyState=v.Loading;var n=o._id=r.nextRequestID();r.exposeConnection(n,o);var s=r.requestCallback(o._id),a=e.url;a.indexOf("=JSONP_CALLBACK&")>-1?a=a.replace("=JSONP_CALLBACK&","="+s+"&"):a.lastIndexOf("=JSONP_CALLBACK")===a.length-"=JSONP_CALLBACK".length&&(a=a.substring(0,a.length-"=JSONP_CALLBACK".length)+("="+s));var u=o._script=r.build(a),c=function(){if(o.readyState!==v.Cancelled){if(o.readyState=v.Done,r.cleanup(u),!o._finished){var e=new S({body:F,type:g.Error,url:a});return i&&(e=i.merge(e)),void t.error(new N(e))}var n=new S({body:o._responseData,url:a});o.baseResponseOptions&&(n=o.baseResponseOptions.merge(n)),t.next(new N(n)),t.complete()}},p=function(e){if(o.readyState!==v.Cancelled){o.readyState=v.Done,r.cleanup(u);var n=new S({body:e.message,type:g.Error});i&&(n=i.merge(n)),t.error(new N(n))}};return u.addEventListener("load",c),u.addEventListener("error",p),r.send(u),function(){o.readyState=v.Cancelled,u.removeEventListener("load",c),u.removeEventListener("error",p),o._dom.cleanup(u)}})}return V(e,t),e.prototype.finished=function(t){this._finished=!0,this._dom.removeConnection(this._id),this.readyState!==v.Cancelled&&(this._responseData=t)},e}(B),q=function(t){function e(){t.apply(this,arguments)}return V(e,t),e}(x),z=function(t){function n(e,n){t.call(this),this._browserJSONP=e,this._baseResponseOptions=n}return V(n,t),n.prototype.createConnection=function(t){return new H(t,this._browserJSONP,this._baseResponseOptions)},n.decorators=[{type:e.Injectable}],n.ctorParameters=function(){return[{type:L},{type:S}]},n}(q),W=/^\)\]\}',?\n/,G=function(){function t(t,e,r){var i=this;this.request=t,this.response=new n.Observable(function(n){var s=e.build();s.open(m[t.method].toUpperCase(),t.url),null!=t.withCredentials&&(s.withCredentials=t.withCredentials);var a=function(){var e=1223===s.status?204:s.status,i=null;204!==e&&(i="undefined"==typeof s.response?s.responseText:s.response,"string"==typeof i&&(i=i.replace(W,""))),0===e&&(e=i?200:0);var a=w.fromResponseHeaderString(s.getAllResponseHeaders()),u=o(s)||t.url,c=s.statusText||"OK",p=new S({body:i,status:e,headers:a,statusText:c,url:u});null!=r&&(p=r.merge(p));var l=new N(p);return l.ok=O(e),l.ok?(n.next(l),void n.complete()):void n.error(l)},u=function(t){var e=new S({body:t,type:g.Error,status:s.status,statusText:s.statusText});null!=r&&(e=r.merge(e)),n.error(new N(e))};if(i.setDetectedContentType(t,s),null==t.headers&&(t.headers=new w),t.headers.has("Accept")||t.headers.append("Accept","application/json, text/plain, */*"),t.headers.forEach(function(t,e){return s.setRequestHeader(e,t.join(","))}),null!=t.responseType&&null!=s.responseType)switch(t.responseType){case b.ArrayBuffer:s.responseType="arraybuffer";break;case b.Json:s.responseType="json";break;case b.Text:s.responseType="text";break;case b.Blob:s.responseType="blob";break;default:throw new Error("The selected responseType is not supported")}return s.addEventListener("load",a),s.addEventListener("error",u),s.send(i.request.getBody()),function(){s.removeEventListener("load",a),s.removeEventListener("error",u),s.abort()}})}return t.prototype.setDetectedContentType=function(t,e){if(null==t.headers||null==t.headers.get("Content-Type"))switch(t.contentType){case _.NONE:break;case _.JSON:e.setRequestHeader("content-type","application/json");break;case _.FORM:e.setRequestHeader("content-type","application/x-www-form-urlencoded;charset=UTF-8");break;case _.TEXT:e.setRequestHeader("content-type","text/plain");break;case _.BLOB:var n=t.blob();n.type&&e.setRequestHeader("content-type",n.type)}},t}(),K=function(){function t(t,e){void 0===t&&(t="XSRF-TOKEN"),void 0===e&&(e="X-XSRF-TOKEN"),this._cookieName=t,this._headerName=e}return t.prototype.configureRequest=function(t){var e=r.__platform_browser_private__.getDOM().getCookie(this._cookieName);e&&t.headers.set(this._headerName,e)},t}(),X=function(){function t(t,e,n){this._browserXHR=t,this._baseResponseOptions=e,this._xsrfStrategy=n}return t.prototype.createConnection=function(t){return this._xsrfStrategy.configureRequest(t),new G(t,this._browserXHR,this._baseResponseOptions)},t.decorators=[{type:e.Injectable}],t.ctorParameters=function(){return[{type:y},{type:S},{type:P}]},t}(),Q=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},Y=function(){function t(t){var e=void 0===t?{}:t,n=e.method,r=e.headers,o=e.body,s=e.url,a=e.search,u=e.withCredentials,c=e.responseType;this.method=null!=n?i(n):null,this.headers=null!=r?r:null,this.body=null!=o?o:null,this.url=null!=s?s:null,this.search=null!=a?"string"==typeof a?new M(a):a:null,this.withCredentials=null!=u?u:null,this.responseType=null!=c?c:null}return t.prototype.merge=function(e){return new t({method:e&&null!=e.method?e.method:this.method,headers:e&&null!=e.headers?e.headers:new w(this.headers),body:e&&null!=e.body?e.body:this.body,url:e&&null!=e.url?e.url:this.url,search:e&&null!=e.search?"string"==typeof e.search?new M(e.search):e.search.clone():this.search,withCredentials:e&&null!=e.withCredentials?e.withCredentials:this.withCredentials,responseType:e&&null!=e.responseType?e.responseType:this.responseType})},t}(),$=function(t){function n(){t.call(this,{method:m.Get,headers:new w})}return Q(n,t),n.decorators=[{type:e.Injectable}],n.ctorParameters=function(){return[]},n}(Y),Z=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},J=function(t){function e(e){t.call(this);var n=e.url;if(this.url=e.url,e.search){var r=e.search.toString();if(r.length>0){var o="?";-1!=this.url.indexOf("?")&&(o="&"==this.url[this.url.length-1]?"":"&"),this.url=n+o+r}}this._body=e.body,this.method=i(e.method),this.headers=new w(e.headers),this.contentType=this.detectContentType(),this.withCredentials=e.withCredentials,this.responseType=e.responseType}return Z(e,t),e.prototype.detectContentType=function(){switch(this.headers.get("content-type")){case"application/json":return _.JSON;case"application/x-www-form-urlencoded":return _.FORM;case"multipart/form-data":return _.FORM_DATA;case"text/plain":case"text/html":return _.TEXT;case"application/octet-stream":return this._body instanceof it?_.ARRAY_BUFFER:_.BLOB;default:return this.detectContentTypeFromBody()}},e.prototype.detectContentTypeFromBody=function(){return null==this._body?_.NONE:this._body instanceof M?_.FORM:this._body instanceof nt?_.FORM_DATA:this._body instanceof rt?_.BLOB:this._body instanceof it?_.ARRAY_BUFFER:this._body&&"object"==typeof this._body?_.JSON:_.TEXT},e.prototype.getBody=function(){switch(this.contentType){case _.JSON:return this.text();case _.FORM:return this.text();case _.FORM_DATA:return this._body;case _.TEXT:return this.text();case _.BLOB:return this.blob();case _.ARRAY_BUFFER:return this.arrayBuffer();default:return null}},e}(R),tt=function(){},et="object"==typeof window?window:tt,nt=et.FormData||tt,rt=et.Blob||tt,it=et.ArrayBuffer||tt,ot=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},st=function(){function t(t,e){this._backend=t,this._defaultOptions=e}return t.prototype.request=function(t,e){var n;if("string"==typeof t)n=p(this._backend,new J(l(this._defaultOptions,e,m.Get,t)));else{if(!(t instanceof J))throw new Error("First argument must be a url string or Request instance.");n=p(this._backend,t)}return n},t.prototype.get=function(t,e){return this.request(new J(l(this._defaultOptions,e,m.Get,t)))},t.prototype.post=function(t,e,n){return this.request(new J(l(this._defaultOptions.merge(new Y({body:e})),n,m.Post,t)))},t.prototype.put=function(t,e,n){return this.request(new J(l(this._defaultOptions.merge(new Y({body:e})),n,m.Put,t)))},t.prototype["delete"]=function(t,e){return this.request(new J(l(this._defaultOptions,e,m.Delete,t)))},t.prototype.patch=function(t,e,n){return this.request(new J(l(this._defaultOptions.merge(new Y({body:e})),n,m.Patch,t)))},t.prototype.head=function(t,e){return this.request(new J(l(this._defaultOptions,e,m.Head,t)))},t.prototype.options=function(t,e){return this.request(new J(l(this._defaultOptions,e,m.Options,t)))},t.decorators=[{type:e.Injectable}],t.ctorParameters=function(){return[{type:x},{type:Y}]},t}(),at=function(t){function n(e,n){t.call(this,e,n)}return ot(n,t),n.prototype.request=function(t,e){var n;if("string"==typeof t&&(t=new J(l(this._defaultOptions,e,m.Get,t))),!(t instanceof J))throw new Error("First argument must be a url string or Request instance.");if(t.method!==m.Get)throw new Error("JSONP requests must use GET request method.");return n=p(this._backend,t)},n.decorators=[{type:e.Injectable}],n.ctorParameters=function(){return[{type:x},{type:Y}]},n}(st),ut=function(){function t(){}return t.decorators=[{type:e.NgModule,args:[{providers:[{provide:st,useFactory:f,deps:[X,Y]},y,{provide:Y,useClass:$},{provide:S,useClass:C},X,{provide:P,useFactory:h}]}]}],t.ctorParameters=function(){return[]},t}(),ct=function(){function t(){}return t.decorators=[{type:e.NgModule,args:[{providers:[{provide:at,useFactory:d,deps:[q,Y]},L,{provide:Y,useClass:$},{provide:S,useClass:C},{provide:q,useClass:z}]}]}],t.ctorParameters=function(){return[]},t}(),pt=new e.Version("2.4.9");t.BrowserXhr=y,t.JSONPBackend=q,t.JSONPConnection=B,t.CookieXSRFStrategy=K,t.XHRBackend=X,t.XHRConnection=G,t.BaseRequestOptions=$,t.RequestOptions=Y,t.BaseResponseOptions=C,t.ResponseOptions=S,t.ReadyState=v,t.RequestMethod=m,t.ResponseContentType=b,t.ResponseType=g,t.Headers=w,t.Http=st,t.Jsonp=at,t.HttpModule=ut,t.JsonpModule=ct,t.Connection=T,t.ConnectionBackend=x,t.XSRFStrategy=P,t.Request=J,t.Response=N,t.QueryEncoder=A,t.URLSearchParams=M,t.VERSION=pt})},{"@angular/core":7,"@angular/platform-browser":10,"rxjs/Observable":15}],9:[function(e,n,r){(function(i){!function(i,o){"object"==typeof r&&"undefined"!=typeof n?o(r,e("@angular/compiler"),e("@angular/core"),e("@angular/platform-browser")):"function"==typeof t&&t.amd?t(["exports","@angular/compiler","@angular/core","@angular/platform-browser"],o):o((i.ng=i.ng||{},i.ng.platformBrowserDynamic=i.ng.platformBrowserDynamic||{}),i.ng.compiler,i.ng.core,i.ng.platformBrowser)}(this,function(t,e,n,r){"use strict";var o,s=r.__platform_browser_private__.INTERNAL_BROWSER_PLATFORM_PROVIDERS,a=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},u=function(t){function e(){t.apply(this,arguments)}return a(e,t),e.prototype.get=function(t){var e,n,r=new Promise(function(t,r){e=t,n=r}),i=new XMLHttpRequest;return i.open("GET",t,!0),i.responseType="text",i.onload=function(){var r=i.response||i.responseText,o=1223===i.status?204:i.status;0===o&&(o=r?200:0),o>=200&&300>=o?e(r):n("Failed to load "+t)},i.onerror=function(){n("Failed to load "+t)},i.send(),r},e.decorators=[{type:n.Injectable}],e.ctorParameters=function(){return[]},e}(e.ResourceLoader),c=[s,{provide:n.COMPILER_OPTIONS,useValue:{providers:[{provide:e.ResourceLoader,useClass:u}]},multi:!0}];o="undefined"==typeof window?"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope?self:i:window;var p=o;p.assert=function(){};var l=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},h=function(t){function e(){if(t.call(this),this._cache=p.$templateCache,null==this._cache)throw new Error("CachedResourceLoader: Template cache was not found in $templateCache.")}return l(e,t),e.prototype.get=function(t){return this._cache.hasOwnProperty(t)?Promise.resolve(this._cache[t]):Promise.reject("CachedResourceLoader: Did not find cached template for "+t)},e}(e.ResourceLoader),f={INTERNAL_BROWSER_DYNAMIC_PLATFORM_PROVIDERS:c,ResourceLoaderImpl:u},d=new n.Version("2.4.9"),y=[{provide:e.ResourceLoader,useClass:h}],m=n.createPlatformFactory(e.platformCoreDynamic,"browserDynamic",c);t.RESOURCE_CACHE_PROVIDER=y,t.platformBrowserDynamic=m,t.VERSION=d,t.__platform_browser_dynamic_private__=f})}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"@angular/compiler":6,"@angular/core":7,"@angular/platform-browser":10}],10:[function(e,n,r){(function(i){!function(i,o){"object"==typeof r&&"undefined"!=typeof n?o(r,e("@angular/common"),e("@angular/core")):"function"==typeof t&&t.amd?t(["exports","@angular/common","@angular/core"],o):o((i.ng=i.ng||{},i.ng.platformBrowser=i.ng.platformBrowser||{}),i.ng.common,i.ng.core)}(this,function(t,e,n){"use strict";function r(t){return null!=t}function o(t){return null==t}function s(t){if("string"==typeof t)return t;if(null==t)return""+t;if(t.overriddenName)return""+t.overriddenName;if(t.name)return""+t.name;var e=t.toString(),n=e.indexOf("\n");return-1===n?e:e.substring(0,n)}function a(t,e,n){for(var r=e.split("."),i=t;r.length>1;){var o=r.shift();i=i.hasOwnProperty(o)&&null!=i[o]?i[o]:i[o]={}}(void 0===i||null===i)&&(i={}),i[r.shift()]=n}function u(){return J}function c(t){J||(J=t)}function p(t,e){return u().getComputedStyle(t)[e]}function l(t){var e={};return Object.keys(t).forEach(function(n){"offset"!=n&&(e[n]=t[n])}),e}function h(t,e){var n={};return t.styles.forEach(function(t){Object.keys(t).forEach(function(e){n[e]=t[e]})}),Object.keys(e).forEach(function(t){r(n[t])||(n[t]=e[t])}),n}function f(t){return t instanceof et}function d(){return lt||(lt=document.querySelector("base"))?lt.getAttribute("href"):null}function y(t){return Z||(Z=document.createElement("a")),Z.setAttribute("href",t),"/"===Z.pathname.charAt(0)?Z.pathname:"/"+Z.pathname}function m(t,e){e=encodeURIComponent(e);for(var n=0,r=t.split(";");n<r.length;n++){var i=r[n],o=i.indexOf("="),s=-1==o?[i,""]:[i.slice(0,o),i.slice(o+1)],a=s[0],u=s[1];if(a.trim()===e)return decodeURIComponent(u)}return null}function v(){return!!window.history.pushState}function g(t,e){var n=t.parentNode;if(e.length>0&&n){var r=t.nextSibling;if(r)for(var i=0;i<e.length;i++)n.insertBefore(e[i],r);else for(var i=0;i<e.length;i++)n.appendChild(e[i])}}function _(t,e){for(var n=0;n<e.length;n++)t.appendChild(e[n])}function b(t){return function(e){var n=t(e);n===!1&&(e.preventDefault(),e.returnValue=!1)}}function w(t){return Dt.replace(kt,t)}function E(t){return It.replace(kt,t)}function S(t,e,n){for(var r=0;r<e.length;r++){var i=e[r];Array.isArray(i)?S(t,i,n):(i=i.replace(kt,t),n.push(i))}return n}function C(t){return":"===t[0]}function x(t){var e=t.match(jt);return[e[1],e[2]]}function T(t){return n.getDebugNode(t)}function P(t,e,r){return n.isDevMode()?O(t,(e||[]).concat(r||[])):t}function O(t,e){return u().setGlobalVar(Vt,T),u().setGlobalVar(Ft,mt.merge(Lt,A(e||[]))),new K(t)}function A(t){return t.reduce(function(t,e){return t[e.name]=e.token,t},{})}function M(t){return t=String(t),t.match(Jt)||t.match(te)?t:(n.isDevMode()&&u().log("WARNING: sanitizing unsafe URL value "+t+" (see http://g.co/ng/security#xss)"),"unsafe:"+t)}function R(t){return t=String(t),t.split(",").map(function(t){return M(t.trim())}).join(", ")}function k(){if(ee)return ee;ne=u();var t=ne.createElement("template");if("content"in t)return t;var e=ne.createHtmlDocument();if(ee=ne.querySelector(e,"body"),null==ee){var n=ne.createElement("html",e);ee=ne.createElement("body",e),ne.appendChild(n,ee),ne.appendChild(e,n)}return ee}function N(t){for(var e={},n=0,r=t.split(",");n<r.length;n++){var i=r[n];e[i]=!0}return e}function I(){for(var t=[],e=0;e<arguments.length;e++)t[e-0]=arguments[e];for(var n={},r=0,i=t;r<i.length;r++){var o=i[r];for(var s in o)o.hasOwnProperty(s)&&(n[s]=!0)}return n}function D(t){return t.replace(/&/g,"&").replace(ye,function(t){var e=t.charCodeAt(0),n=t.charCodeAt(1);return"&#"+(1024*(e-55296)+(n-56320)+65536)+";"}).replace(me,function(t){return"&#"+t.charCodeAt(0)+";"}).replace(/</g,"<").replace(/>/g,">")}function j(t){ne.attributeMap(t).forEach(function(e,n){("xmlns:ns1"===n||0===n.indexOf("ns1:"))&&ne.removeAttribute(t,n)});for(var e=0,n=ne.childNodesAsList(t);e<n.length;e++){var r=n[e];ne.isElementNode(r)&&j(r)}}function L(t){try{var e=k(),r=t?String(t):"",i=5,o=r;do{if(0===i)throw new Error("Failed to sanitize html because the input is unstable");i--,r=o,ne.setInnerHTML(e,r),ne.defaultDoc().documentMode&&j(e),o=ne.getInnerHTML(e)}while(r!==o);for(var s=new de,a=s.sanitizeChildren(ne.getTemplateContent(e)||e),u=ne.getTemplateContent(e)||e,c=0,p=ne.childNodesAsList(u);c<p.length;c++){var l=p[c];ne.removeChild(u,l)}return n.isDevMode()&&s.sanitizedSomething&&ne.log("WARNING: sanitizing HTML stripped some content (see http://g.co/ng/security#xss)."),a}catch(h){throw ee=null,h}}function V(t){for(var e=!0,n=!0,r=0;r<t.length;r++){var i=t.charAt(r);"'"===i&&n?e=!e:'"'===i&&e&&(n=!n)}return e&&n}function F(t){if(t=String(t).trim(),!t)return"";var e=t.match(Ce);return e&&M(e[1])===e[1]||t.match(Se)&&V(t)?t:(n.isDevMode()&&u().log("WARNING: sanitizing unsafe style value "+t+" (see http://g.co/ng/security#xss)."),"unsafe")}function U(){pt.makeCurrent(),dt.init()}function B(){return new n.ErrorHandler}function H(){return u().defaultDoc()}function q(){return u().supportsWebAnimation()?new nt:Y.NOOP}function z(t){return Object.assign(He.ng,new Ue(t)),t}function W(){He.ng&&delete He.ng.profiler}var G,K=n.__core_private__.DebugDomRootRenderer,X=n.__core_private__.NoOpAnimationPlayer,Q=function(){function t(){}return t.prototype.animate=function(t,e,n,r,i,o,s){return void 0===s&&(s=[]),new X},t}(),Y=function(){function t(){}return t.prototype.animate=function(){},t.NOOP=new Q,t}();G="undefined"==typeof window?"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope?self:i:window;var $=G;$.assert=function(){};var Z,J=null,tt=function(){function t(){this.resourceLoaderType=null}return t.prototype.hasProperty=function(){},t.prototype.setProperty=function(){},t.prototype.getProperty=function(){},t.prototype.invoke=function(){},t.prototype.logError=function(){},t.prototype.log=function(){},t.prototype.logGroup=function(){},t.prototype.logGroupEnd=function(){},Object.defineProperty(t.prototype,"attrToPropMap",{get:function(){return this._attrToPropMap},set:function(t){this._attrToPropMap=t},enumerable:!0,configurable:!0}),t.prototype.parse=function(){},t.prototype.query=function(){},t.prototype.querySelector=function(){},t.prototype.querySelectorAll=function(){},t.prototype.on=function(){},t.prototype.onAndCancel=function(){},t.prototype.dispatchEvent=function(){},t.prototype.createMouseEvent=function(){},t.prototype.createEvent=function(){},t.prototype.preventDefault=function(){},t.prototype.isPrevented=function(){},t.prototype.getInnerHTML=function(){},t.prototype.getTemplateContent=function(){},t.prototype.getOuterHTML=function(){},t.prototype.nodeName=function(){},t.prototype.nodeValue=function(){},t.prototype.type=function(){},t.prototype.content=function(){},t.prototype.firstChild=function(){},t.prototype.nextSibling=function(){},t.prototype.parentElement=function(){},t.prototype.childNodes=function(){},t.prototype.childNodesAsList=function(){},t.prototype.clearNodes=function(){},t.prototype.appendChild=function(){},t.prototype.removeChild=function(){},t.prototype.replaceChild=function(){},t.prototype.remove=function(){},t.prototype.insertBefore=function(){},t.prototype.insertAllBefore=function(){},t.prototype.insertAfter=function(){},t.prototype.setInnerHTML=function(){},t.prototype.getText=function(){},t.prototype.setText=function(){},t.prototype.getValue=function(){},t.prototype.setValue=function(){},t.prototype.getChecked=function(){},t.prototype.setChecked=function(){},t.prototype.createComment=function(){},t.prototype.createTemplate=function(){},t.prototype.createElement=function(){},t.prototype.createElementNS=function(){},t.prototype.createTextNode=function(){},t.prototype.createScriptTag=function(){},t.prototype.createStyleElement=function(){},t.prototype.createShadowRoot=function(){},t.prototype.getShadowRoot=function(){},t.prototype.getHost=function(){},t.prototype.getDistributedNodes=function(){},t.prototype.clone=function(){},t.prototype.getElementsByClassName=function(){},t.prototype.getElementsByTagName=function(){},t.prototype.classList=function(){},t.prototype.addClass=function(){},t.prototype.removeClass=function(){},t.prototype.hasClass=function(){},t.prototype.setStyle=function(){},t.prototype.removeStyle=function(){},t.prototype.getStyle=function(){},t.prototype.hasStyle=function(){},t.prototype.tagName=function(){},t.prototype.attributeMap=function(){},t.prototype.hasAttribute=function(){},t.prototype.hasAttributeNS=function(){},t.prototype.getAttribute=function(){},t.prototype.getAttributeNS=function(){},t.prototype.setAttribute=function(){},t.prototype.setAttributeNS=function(){},t.prototype.removeAttribute=function(){},t.prototype.removeAttributeNS=function(){},t.prototype.templateAwareRoot=function(){},t.prototype.createHtmlDocument=function(){},t.prototype.defaultDoc=function(){},t.prototype.getBoundingClientRect=function(){},t.prototype.getTitle=function(){},t.prototype.setTitle=function(){},t.prototype.elementMatches=function(){},t.prototype.isTemplateElement=function(){},t.prototype.isTextNode=function(){},t.prototype.isCommentNode=function(){},t.prototype.isElementNode=function(){},t.prototype.hasShadowRoot=function(){},t.prototype.isShadowRoot=function(){},t.prototype.importIntoDoc=function(){},t.prototype.adoptNode=function(){},t.prototype.getHref=function(){},t.prototype.getEventKey=function(){},t.prototype.resolveAndSetHref=function(){},t.prototype.supportsDOMEvents=function(){},t.prototype.supportsNativeShadowDOM=function(){},t.prototype.getGlobalEventTarget=function(){},t.prototype.getHistory=function(){},t.prototype.getLocation=function(){},t.prototype.getBaseHref=function(){},t.prototype.resetBaseElement=function(){},t.prototype.getUserAgent=function(){},t.prototype.setData=function(){},t.prototype.getComputedStyle=function(){},t.prototype.getData=function(){},t.prototype.setGlobalVar=function(){},t.prototype.supportsWebAnimation=function(){},t.prototype.performanceNow=function(){},t.prototype.getAnimationPrefix=function(){},t.prototype.getTransitionEnd=function(){},t.prototype.supportsAnimation=function(){},t.prototype.supportsCookies=function(){},t.prototype.getCookie=function(){},t.prototype.setCookie=function(){},t}(),et=function(){function t(t,e,n,r){var i=this;void 0===r&&(r=[]),this.element=t,this.keyframes=e,this.options=n,this._onDoneFns=[],this._onStartFns=[],this._initialized=!1,this._finished=!1,this._started=!1,this._destroyed=!1,this.parentPlayer=null,this._duration=n.duration,this.previousStyles={},r.forEach(function(t){var e=t._captureStyles();Object.keys(e).forEach(function(t){return i.previousStyles[t]=e[t]})})}return t.prototype._onFinish=function(){this._finished||(this._finished=!0,this._onDoneFns.forEach(function(t){return t()}),this._onDoneFns=[])},t.prototype.init=function(){var t=this;if(!this._initialized){this._initialized=!0;var e=this.keyframes.map(function(e){var r={};return Object.keys(e).forEach(function(i){var o=e[i];o==n.AUTO_STYLE&&(o=p(t.element,i)),void 0!=o&&(r[i]=o)}),r}),i=Object.keys(this.previousStyles);if(i.length){var o=e[0],s=[];if(i.forEach(function(e){r(o[e])||s.push(e),o[e]=t.previousStyles[e]}),s.length)for(var a=function(n){var r=e[n];s.forEach(function(e){r[e]=p(t.element,e)})},u=1;u<e.length;u++)a(u)}this._player=this._triggerWebAnimation(this.element,e,this.options),this._finalKeyframe=l(e[e.length-1]),this._resetDomPlayerState(),this._player.addEventListener("finish",function(){return t._onFinish()})}},t.prototype._triggerWebAnimation=function(t,e,n){return t.animate(e,n)},Object.defineProperty(t.prototype,"domPlayer",{get:function(){return this._player},enumerable:!0,configurable:!0}),t.prototype.onStart=function(t){this._onStartFns.push(t)},t.prototype.onDone=function(t){this._onDoneFns.push(t); +})}),e.entryComponents.forEach(function(t){var e=i.get(t.reference);o.add(n._createCompiledHostTemplate(t.reference,e))})}),o.forEach(function(t){return n._compileTemplate(t)})},t.prototype.clearCacheFor=function(t){this._compiledNgModuleCache["delete"](t),this._metadataResolver.clearCacheFor(t),this._compiledHostTemplateCache["delete"](t);var e=this._compiledTemplateCache.get(t);e&&this._compiledTemplateCache["delete"](t)},t.prototype.clearCache=function(){this._metadataResolver.clearCache(),this._compiledTemplateCache.clear(),this._compiledHostTemplateCache.clear(),this._compiledNgModuleCache.clear()},t.prototype._createCompiledHostTemplate=function(t,e){if(!e)throw new Error("Component "+s(t)+" is not part of any NgModule or the module has not been imported into your module.");var n=this._compiledHostTemplateCache.get(t);if(!n){var r=this._metadataResolver.getDirectiveMetadata(t);ki(r);var i=function(){};i.overriddenName=b(r.type)+"_Host";var o=C(i,r);n=new cv(!0,r.selector,r.type,o,e,[r.type]),this._compiledHostTemplateCache.set(t,n)}return n},t.prototype._createCompiledTemplate=function(t,e){var n=this._compiledTemplateCache.get(t.type.reference);return n||(ki(t),n=new cv(!1,t.selector,t.type,t,e,e.transitiveModule.directives),this._compiledTemplateCache.set(t.type.reference,n)),n},t.prototype._assertComponentKnown=function(t,e){var n=e?this._compiledHostTemplateCache.get(t):this._compiledTemplateCache.get(t);if(!n)throw new Error("Illegal state: Compiled view for component "+s(t)+" (host: "+e+") does not exist!");return n},t.prototype._assertDirectiveWrapper=function(t){var e=this._compiledDirectiveWrapperCache.get(t);if(!e)throw new Error("Illegal state: Directive wrapper for "+s(t)+" has not been compiled!");return e},t.prototype._compileDirectiveWrapper=function(t,e){var n,r=this._directiveWrapperCompiler.compile(t),i=r.statements;n=this._compilerConfig.useJit?Ri("/"+b(e.type)+"/"+b(t.type)+"/wrapper.ngfactory.js",i,r.dirWrapperClassVar):Ti(i,r.dirWrapperClassVar),this._compiledDirectiveWrapperCache.set(t.type.reference,n)},t.prototype._compileTemplate=function(t){var e=this;if(!t.isCompiled){var n=t.compMeta,r=new Map,i=this._styleCompiler.compileComponent(n);i.externalStylesheets.forEach(function(t){r.set(t.meta.moduleUrl,t)}),this._resolveStylesCompileResult(i.componentStylesheet,r);var o=this._animationParser.parseComponent(n),s=t.directives.map(function(t){return e._metadataResolver.getDirectiveSummary(t.reference)}),a=t.ngModule.transitiveModule.pipes.map(function(t){return e._metadataResolver.getPipeSummary(t.reference)}),u=this._templateParser.parse(n,n.template.template,s,a,t.ngModule.schemas,b(n.type)),c=this._animationCompiler.compile(b(n.type),o),p=this._viewCompiler.compileComponent(n,u,Ge(i.componentStylesheet.stylesVar),a,c);p.dependencies.forEach(function(t){var n;if(t instanceof qy){var r=t;n=e._assertComponentKnown(r.comp.reference,!1),r.placeholder.reference=n.proxyViewClass}else if(t instanceof zy){var i=t;n=e._assertComponentKnown(i.comp.reference,!0),i.placeholder.reference=n.proxyComponentFactory}else if(t instanceof Wy){var o=t;o.placeholder.reference=e._assertDirectiveWrapper(o.dir.reference)}});var l,h=(f=i.componentStylesheet.statements).concat.apply(f,c.map(function(t){return t.statements})).concat(p.statements);l=this._compilerConfig.useJit?Ri("/"+b(t.ngModule.type)+"/"+b(t.compType)+"/"+(t.isHost?"host":"component")+".ngfactory.js",h,p.viewClassVar):Ti(h,p.viewClassVar),t.compiled(l);var f}},t.prototype._resolveStylesCompileResult=function(t,e){var n=this;t.dependencies.forEach(function(t){var r=e.get(t.moduleUrl),i=n._resolveAndEvalStylesCompileResult(r,e);t.valuePlaceholder.reference=i})},t.prototype._resolveAndEvalStylesCompileResult=function(t,e){return this._resolveStylesCompileResult(t,e),this._compilerConfig.useJit?Ri("/"+t.meta.moduleUrl+".ngstyle.js",t.statements,t.stylesVar):Ti(t.statements,t.stylesVar)},t=sv([M(),av("design:paramtypes",[e.Injector,fd,xl,Oy,hm,wd,Yf,kl,ih])],t)}(),cv=function(){function t(t,n,r,i,o,a){this.isHost=t,this.compType=r,this.compMeta=i,this.ngModule=o,this.directives=a,this._viewClass=null,this.isCompiled=!1;var u=this;this.proxyViewClass=function(){if(!u._viewClass)throw new Error("Illegal state: CompiledTemplate for "+s(u.compType)+" is not compiled yet!");return u._viewClass.apply(this,arguments)},this.proxyComponentFactory=t?new e.ComponentFactory(n,this.proxyViewClass,r.reference):null}return t.prototype.compiled=function(t){this._viewClass=t,this.proxyViewClass.prototype=t.prototype,this.isCompiled=!0},t}(),pv=function(){function t(t,e){this._delegate=t,this._ngModule=e}return Object.defineProperty(t.prototype,"_injector",{get:function(){return this._delegate.injector},enumerable:!0,configurable:!0}),t.prototype.compileModuleSync=function(t){return this._delegate.compileModuleSync(t)},t.prototype.compileModuleAsync=function(t){return this._delegate.compileModuleAsync(t)},t.prototype.compileModuleAndAllComponentsSync=function(t){return this._delegate.compileModuleAndAllComponentsSync(t)},t.prototype.compileModuleAndAllComponentsAsync=function(t){return this._delegate.compileModuleAndAllComponentsAsync(t)},t.prototype.getNgContentSelectors=function(t){return this._delegate.getNgContentSelectors(t)},t.prototype.clearCache=function(){this._delegate.clearCache()},t.prototype.clearCacheFor=function(t){this._delegate.clearCacheFor(t)},t}(),lv=function(){function t(t,e,n){this._htmlParser=t,this._implicitTags=e,this._implicitAttrs=n,this._messages=[]}return t.prototype.updateFromTemplate=function(t,e,n){var r=this._htmlParser.parse(t,e,!0,n);if(r.errors.length)return r.errors;var i=lt(r.rootNodes,n,this._implicitTags,this._implicitAttrs);if(i.errors.length)return i.errors;(o=this._messages).push.apply(o,i.messages);var o},t.prototype.getMessages=function(){return this._messages},t.prototype.write=function(t){return t.write(this._messages)},t}(),hv=function(){function t(t,e,n,r){this.host=t,this.staticSymbolResolver=e,this.messageBundle=n,this.metadataResolver=r}return t.prototype.extract=function(t){var e=this,n=mi(this.staticSymbolResolver,t,this.host),r=di(n,this.host,this.metadataResolver),i=r.files,o=r.ngModules;return Promise.all(o.map(function(t){return e.metadataResolver.loadNgModuleDirectiveAndPipeMetadata(t.type.reference,!1)})).then(function(){var t=[];if(i.forEach(function(n){var r=[];n.directives.forEach(function(t){var n=e.metadataResolver.getDirectiveMetadata(t);n&&n.isComponent&&r.push(n)}),r.forEach(function(r){var i=r.template.template,o=Ia.fromArray(r.template.interpolation);t.push.apply(t,e.messageBundle.updateFromTemplate(i,n.srcUrl,o))})}),t.length)throw new Error(t.map(function(t){return t.toString()}).join("\n"));return e.messageBundle})},t.create=function(n){var r=new dp(new lp),i=je(),o=new to,s=new Ym(n,o),a=new Qm(n,o,s),u=new qm(a);Fm.install(u);var c=new kl({genDebugInfo:!1,defaultEncapsulation:e.ViewEncapsulation.Emulated,logBindingUpdate:!1,useJit:!1}),p=new yh({get:function(t){return n.loadResource(t)}},i,r,c),l=new Gd,h=new fd(new nd(u),new _h(u),new od(u),s,l,p,u),f=new lv(r,[],{}),d=new t(n,a,f,h);return{extractor:d,staticReflector:u}},t}(),fv=this&&this.__decorate||function(t,e,n,r){var i,o=arguments.length,s=3>o?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,r);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(3>o?i(s):o>3?i(e,n,s):i(e,n))||s);return o>3&&s&&Object.defineProperty(e,n,s),s},dv=this&&this.__metadata||function(t,e){return"object"==typeof Reflect&&"function"==typeof Reflect.metadata?Reflect.metadata(t,e):void 0},yv={get:function(t){throw new Error("No ResourceLoader implementation has been provided. Can't read the url \""+t+'"')}},mv=new e.OpaqueToken("HtmlParser"),vv=[{provide:Oo,useValue:Po},{provide:co,useExisting:Oo},{provide:sh,useValue:yv},ud,To,fu,wu,{provide:mv,useClass:lp},{provide:dp,useFactory:function(t,e,n){return new dp(t,e,n)},deps:[mv,[new e.Optional,new e.Inject(e.TRANSLATIONS)],[new e.Optional,new e.Inject(e.TRANSLATIONS_FORMAT)]]},{provide:lp,useExisting:dp},xl,yh,fd,ch,Oy,hm,wd,Yf,{provide:kl,useValue:new kl},uv,{provide:e.Compiler,useExisting:uv},Gd,{provide:Mp,useExisting:Gd},ph,_h,od,nd,ih],gv=function(){function t(t){this._defaultOptions=[{useDebug:e.isDevMode(),useJit:!0,defaultEncapsulation:e.ViewEncapsulation.Emulated}].concat(t)}return t.prototype.createCompiler=function(t){void 0===t&&(t=[]);var n=Ii(this._defaultOptions.concat(t)),r=e.ReflectiveInjector.resolveAndCreate([vv,{provide:kl,useFactory:function(){return new kl({genDebugInfo:n.useDebug,useJit:n.useJit,defaultEncapsulation:n.defaultEncapsulation,logBindingUpdate:n.useDebug})},deps:[]},n.providers]);return r.get(e.Compiler)},t.ctorParameters=function(){return[{type:Array,decorators:[{type:e.Inject,args:[e.COMPILER_OPTIONS]}]}]},t=fv([M(),dv("design:paramtypes",[Array])],t)}(),_v=e.createPlatformFactory(e.platformCore,"coreDynamic",[{provide:e.COMPILER_OPTIONS,useValue:{},multi:!0},{provide:e.CompilerFactory,useClass:gv},{provide:e.PLATFORM_INITIALIZER,useValue:Ni,multi:!0}]),bv=function(){function t(){}return t.prototype.fileNameToModuleName=function(){},t}();t.VERSION=Li,t.TextAst=Vi,t.BoundTextAst=Fi,t.AttrAst=Ui,t.BoundElementPropertyAst=Bi,t.BoundEventAst=Hi,t.ReferenceAst=qi,t.VariableAst=zi,t.ElementAst=Wi,t.EmbeddedTemplateAst=Gi,t.BoundDirectivePropertyAst=Ki,t.DirectiveAst=Xi,t.ProviderAst=Qi,t.ProviderAstType=Yi,t.NgContentAst=$i,t.PropertyBindingType=Zi,t.templateVisitAll=n,t.TEMPLATE_TRANSFORMS=El,t.CompilerConfig=kl,t.RenderTypes=Nl,t.CompileAnimationEntryMetadata=hs,t.CompileAnimationStateMetadata=fs,t.CompileAnimationStateDeclarationMetadata=ds,t.CompileAnimationStateTransitionMetadata=ys,t.CompileAnimationMetadata=ms,t.CompileAnimationKeyframesSequenceMetadata=vs,t.CompileAnimationStyleMetadata=gs,t.CompileAnimationAnimateMetadata=_s,t.CompileAnimationWithStepsMetadata=bs,t.CompileAnimationSequenceMetadata=ws,t.CompileAnimationGroupMetadata=Es,t.identifierName=b,t.identifierModuleUrl=w,t.CompileSummaryKind=Cs,t.tokenName=E,t.tokenReference=S,t.CompileStylesheetMetadata=xs,t.CompileTemplateMetadata=Ts,t.CompileDirectiveMetadata=Ps,t.createHostComponentMeta=C,t.CompilePipeMetadata=Os,t.CompileNgModuleMetadata=As,t.TransitiveCompileNgModuleMetadata=Ms,t.ProviderMeta=Rs,t.createAotCompiler=xi,t.AotCompiler=Vm,t.analyzeNgModules=fi,t.analyzeAndValidateNgModules=di,t.extractProgramSymbols=mi,t.StaticReflector=qm,t.StaticAndDynamicReflectionCapabilities=Fm,t.StaticSymbol=Ji,t.StaticSymbolCache=to,t.ResolvedStaticSymbol=Km,t.StaticSymbolResolver=Qm,t.AotSummaryResolver=Ym,t.SummaryResolver=ud,t.JitCompiler=uv,t.COMPILER_PROVIDERS=vv,t.JitCompilerFactory=gv,t.platformCoreDynamic=_v,t.createUrlResolverWithoutPackagePrefix=De,t.createOfflineCompileUrlResolver=je,t.DEFAULT_PACKAGE_URL_PROVIDER=ch,t.UrlResolver=ph,t.getUrlScheme=Le,t.ResourceLoader=sh,t.DirectiveResolver=_h,t.PipeResolver=od,t.NgModuleResolver=nd,t.DEFAULT_INTERPOLATION_CONFIG=Da,t.InterpolationConfig=Ia,t.ElementSchemaRegistry=Mp,t.Extractor=hv,t.I18NHtmlParser=dp,t.MessageBundle=lv,t.Serializer=Sc,t.Xliff=Bc,t.Xmb=$c,t.Xtb=op,t.DirectiveNormalizer=yh,t.TokenType=lu,t.Lexer=fu,t.Token=du,t.EOF=yu,t.isIdentifier=B,t.isQuote=W,t.SplitInterpolation=_u,t.TemplateBindingParseResult=bu,t.Parser=wu,t._ParseAST=Eu,t.ERROR_COLLECTOR_TOKEN=hd,t.CompileMetadataResolver=fd,t.componentModuleUrl=zn,t.ParseTreeResult=Wu,t.TreeError=zu,t.HtmlParser=lp,t.NgModuleCompiler=wd,t.DirectiveWrapperCompiler=Yf,t.ImportResolver=bv,t.debugOutputAstAsTypeScript=Yn,t.TypeScriptEmitter=Id,t.ParseLocation=Cu,t.ParseSourceFile=xu,t.ParseSourceSpan=Tu,t.ParseErrorLevel=Pu,t.ParseError=Ou,t.DomElementSchemaRegistry=Gd,t.CssSelector=Zo,t.SelectorMatcher=Jo,t.SelectorListContext=ts,t.SelectorContext=es,t.StylesCompileDependency=xy,t.StylesCompileResult=Ty,t.CompiledStylesheet=Py,t.StyleCompiler=Oy,t.TemplateParseError=Sl,t.TemplateParseResult=Cl,t.TemplateParser=xl,t.splitClasses=me,t.createElementCssSelector=ve,t.removeSummaryDuplicates=_e,t.ViewCompiler=hm,t.AnimationParser=ih,t.SyntaxError=cs})},{"@angular/core":7}],7:[function(e,n,r){(function(i){!function(i,o){"object"==typeof r&&"undefined"!=typeof n?o(r,e("rxjs/symbol/observable"),e("rxjs/Subject"),e("rxjs/Observable")):"function"==typeof t&&t.amd?t(["exports","rxjs/symbol/observable","rxjs/Subject","rxjs/Observable"],o):o((i.ng=i.ng||{},i.ng.core=i.ng.core||{}),i.rxjs_symbol_observable,i.Rx,i.Rx)}(this,function(t,e,n){"use strict";function r(t){Zone.current.scheduleMicroTask("scheduleMicrotask",t)}function o(t){return t.name||typeof t}function s(t){return null!=t}function a(t){return null==t}function u(t){if("string"==typeof t)return t;if(null==t)return""+t;if(t.overriddenName)return""+t.overriddenName;if(t.name)return""+t.name;var e=t.toString(),n=e.indexOf("\n");return-1===n?e:e.substring(0,n)}function c(t,e){return t===e||"number"==typeof t&&"number"==typeof e&&isNaN(t)&&isNaN(e)}function p(t){return null!==t&&("function"==typeof t||"object"==typeof t)}function l(t){console.log(t)}function h(t){console.warn(t)}function f(){if(!fe)if(le.Symbol&&Symbol.iterator)fe=Symbol.iterator;else for(var t=Object.getOwnPropertyNames(Map.prototype),e=0;e<t.length;++e){var n=t[e];"entries"!==n&&"size"!==n&&Map.prototype[n]===Map.prototype.entries&&(fe=n)}return fe}function d(t){return!p(t)}function y(t){return"function"==typeof t&&t.hasOwnProperty("annotation")&&(t=t.annotation),t}function m(t,e){if(t===Object||t===String||t===Function||t===Number||t===Array)throw new Error("Can not use native "+u(t)+" as constructor");if("function"==typeof t)return t;if(Array.isArray(t)){var n=t,r=n.length-1,i=t[r];if("function"!=typeof i)throw new Error("Last position of Class method array must be Function in key "+e+" was '"+u(i)+"'");if(r!=i.length)throw new Error("Number of annotations ("+r+") does not match number of arguments ("+i.length+") in the function: "+u(i));for(var o=[],s=0,a=n.length-1;a>s;s++){var c=[];o.push(c);var p=n[s];if(Array.isArray(p))for(var l=0;l<p.length;l++)c.push(y(p[l]));else c.push("function"==typeof p?y(p):p)}return ye.defineMetadata("parameters",o,i),i}throw new Error("Only Function or Array is supported in Class definition for key '"+e+"' is '"+u(t)+"'")}function v(t){var e=m(t.hasOwnProperty("constructor")?t.constructor:void 0,"constructor"),n=e.prototype;if(t.hasOwnProperty("extends")){if("function"!=typeof t["extends"])throw new Error("Class definition 'extends' property must be a constructor function was: "+u(t["extends"]));e.prototype=n=Object.create(t["extends"].prototype)}for(var r in t)"extends"!==r&&"prototype"!==r&&t.hasOwnProperty(r)&&(n[r]=m(t[r],r));this&&this.annotations instanceof Array&&ye.defineMetadata("annotations",this.annotations,e);var i=e.name;return i&&"constructor"!==i||(e.overriddenName="class"+de++),e}function g(t,e,n,r){function i(t){if(!ye||!ye.getOwnMetadata)throw"reflect-metadata shim is required when using class decorators";if(this instanceof i)return o.call(this,t),this;var e=new i(t),n="function"==typeof this&&Array.isArray(this.annotations)?this.annotations:[];n.push(e);var s=function(t){var n=ye.getOwnMetadata("annotations",t)||[];return n.push(e),ye.defineMetadata("annotations",n,t),t};return s.annotations=n,s.Class=v,r&&r(s),s}void 0===r&&(r=null);var o=_([e]);return n&&(i.prototype=Object.create(n.prototype)),i.prototype.toString=function(){return"@"+t},i.annotationCls=i,i}function _(t){return function(){for(var e=this,n=[],r=0;r<arguments.length;r++)n[r-0]=arguments[r];t.forEach(function(t,r){var i=n[r];if(Array.isArray(t))e[t[0]]=void 0===i?t[1]:i;else for(var o in t)e[o]=i&&i.hasOwnProperty(o)?i[o]:t[o]})}}function b(t,e,n){function r(){function t(t,e,n){for(var r=ye.getOwnMetadata("parameters",t)||[];r.length<=n;)r.push(null);return r[n]=r[n]||[],r[n].push(o),ye.defineMetadata("parameters",r,t),t}for(var e=[],n=0;n<arguments.length;n++)e[n-0]=arguments[n];if(this instanceof r)return i.apply(this,e),this;var o=new((s=r).bind.apply(s,[void 0].concat(e)));return t.annotation=o,t;var s}var i=_(e);return n&&(r.prototype=Object.create(n.prototype)),r.prototype.toString=function(){return"@"+t},r.annotationCls=r,r}function w(t,e,n){function r(){for(var t=[],e=0;e<arguments.length;e++)t[e-0]=arguments[e];if(this instanceof r)return i.apply(this,t),this;var n=new((o=r).bind.apply(o,[void 0].concat(t)));return function(t,e){var r=ye.getOwnMetadata("propMetadata",t.constructor)||{};r[e]=r.hasOwnProperty(e)&&r[e]||[],r[e].unshift(n),ye.defineMetadata("propMetadata",r,t.constructor)};var o}var i=_(e);return n&&(r.prototype=Object.create(n.prototype)),r.prototype.toString=function(){return"@"+t},r.annotationCls=r,r}function E(t){return a(t)||t===Me.Default}function S(t){return t.__forward_ref__=S,t.toString=function(){return u(this())},t}function C(t){return"function"==typeof t&&t.hasOwnProperty("__forward_ref__")&&t.__forward_ref__===S?t():t}function x(t){for(var e=[],n=0;n<t.length;++n){if(e.indexOf(t[n])>-1)return e.push(t[n]),e;e.push(t[n])}return e}function T(t){if(t.length>1){var e=x(t.slice().reverse()),n=e.map(function(t){return u(t.token)});return" ("+n.join(" -> ")+")"}return""}function P(t){return"function"==typeof t}function O(t){return t?t.map(function(t){var e=t.type,n=e.annotationCls,r=t.args?t.args:[];return new(n.bind.apply(n,[void 0].concat(r)))}):[]}function A(t){var e=Object.getPrototypeOf(t.prototype),n=e?e.constructor:null;return n||Object}function M(t){var e,n;if(t.useClass){var r=C(t.useClass);e=On.factory(r),n=j(r)}else t.useExisting?(e=function(t){return t},n=[An.fromKey(_n.get(t.useExisting))]):t.useFactory?(e=t.useFactory,n=D(t.useFactory,t.deps)):(e=function(){return t.useValue},n=Mn);return new kn(e,n)}function R(t){return new Rn(_n.get(t.provide),[M(t)],t.multi)}function k(t){var e=I(t,[]),n=e.map(R),r=N(n,new Map);return Array.from(r.values())}function N(t,e){for(var n=0;n<t.length;n++){var r=t[n],i=e.get(r.key.id);if(i){if(r.multiProvider!==i.multiProvider)throw new gn(i,r);if(r.multiProvider)for(var o=0;o<r.resolvedFactories.length;o++)i.resolvedFactories.push(r.resolvedFactories[o]);else e.set(r.key.id,r)}else{var s=void 0;s=r.multiProvider?new Rn(r.key,r.resolvedFactories.slice(),r.multiProvider):r,e.set(r.key.id,s)}}return e}function I(t,e){return t.forEach(function(t){if(t instanceof En)e.push({provide:t,useClass:t});else if(t&&"object"==typeof t&&void 0!==t.provide)e.push(t);else{if(!(t instanceof Array))throw new yn(t);I(t,e)}}),e}function D(t,e){if(e){var n=e.map(function(t){return[t]});return e.map(function(e){return L(t,e,n)})}return j(t)}function j(t){var e=On.parameters(t);if(!e)return[];if(e.some(function(t){return null==t}))throw new mn(t,e);return e.map(function(n){return L(t,n,e)})}function L(t,e,n){var r=null,i=!1;if(!Array.isArray(e))return e instanceof me?V(e.token,i,null):V(e,i,null);for(var o=null,s=0;s<e.length;++s){var a=e[s];a instanceof En?r=a:a instanceof me?r=a.token:a instanceof ve?i=!0:(a instanceof _e||a instanceof be)&&(o=a)}if(r=C(r),null!=r)return V(r,i,o);throw new mn(t,n)}function V(t,e,n){return new An(_n.get(t),e,n)}function F(t,e){for(var n=new Array(t._providers.length),r=0;r<t._providers.length;++r)n[r]=e(t.getProviderAtIndex(r));return n}function U(t){return p(t)?Array.isArray(t)||!(t instanceof Map)&&f()in t:!1}function B(t,e,n){for(var r=t[f()](),i=e[f()]();;){var o=r.next(),s=i.next();if(o.done&&s.done)return!0;if(o.done||s.done)return!1;if(!n(o.value,s.value))return!1}}function H(t,e){if(Array.isArray(t))for(var n=0;n<t.length;n++)e(t[n]);else for(var r=t[f()](),i=void 0;!(i=r.next()).done;)e(i.value)}function q(t){return!!t&&"function"==typeof t.then}function z(t){return!(!t||!t[e.$$observable])}function W(){return""+G()+G()+G()}function G(){return String.fromCharCode(97+Math.floor(25*Math.random()))}function K(){throw new Error("Runtime compiler is not loaded")}function X(t,e,n){var r=t.previousIndex;if(null===r)return r;var i=0;return n&&r<n.length&&(i=n[r]),r+e+i}function Q(t,e){return U(t)&&U(e)?B(t,e,Q):U(t)||d(t)||U(e)||d(e)?c(t,e):!0}function Y(t,e,n,r,i){return new xr(""+Fr++,t,e,n,r,i)}function $(t,e){e.push(t)}function Z(t,e){for(var n="",r=0;2*t>r;r+=2)n=n+e[r]+tt(e[r+1]);return n+e[2*t]}function J(t,e,n,r,i,o,s,a,u,c,p,l,h,f,d,y,m,v,g,_){switch(t){case 1:return e+tt(n)+r;case 2:return e+tt(n)+r+tt(i)+o;case 3:return e+tt(n)+r+tt(i)+o+tt(s)+a;case 4:return e+tt(n)+r+tt(i)+o+tt(s)+a+tt(u)+c;case 5:return e+tt(n)+r+tt(i)+o+tt(s)+a+tt(u)+c+tt(p)+l;case 6:return e+tt(n)+r+tt(i)+o+tt(s)+a+tt(u)+c+tt(p)+l+tt(h)+f;case 7:return e+tt(n)+r+tt(i)+o+tt(s)+a+tt(u)+c+tt(p)+l+tt(h)+f+tt(d)+y;case 8:return e+tt(n)+r+tt(i)+o+tt(s)+a+tt(u)+c+tt(p)+l+tt(h)+f+tt(d)+y+tt(m)+v;case 9:return e+tt(n)+r+tt(i)+o+tt(s)+a+tt(u)+c+tt(p)+l+tt(h)+f+tt(d)+y+tt(m)+v+tt(g)+_;default:throw new Error("Does not support more than 9 expressions")}}function tt(t){return null!=t?t.toString():""}function et(t,e,n){if(t){if(!Q(e,n))throw new Dr(e,n);return!1}return!c(e,n)}function nt(t){return t}function rt(t){var e,n=mr;return function(r){return c(n,r)||(n=r,e=t(r)),e}}function it(t){var e,n=mr,r=mr;return function(i,o){return c(n,i)&&c(r,o)||(n=i,r=o,e=t(i,o)),e}}function ot(t){var e,n=mr,r=mr,i=mr;return function(o,s,a){return c(n,o)&&c(r,s)&&c(i,a)||(n=o,r=s,i=a,e=t(o,s,a)),e}}function st(t){var e,n,r,i,o;return n=r=i=o=mr,function(s,a,u,p){return c(n,s)&&c(r,a)&&c(i,u)&&c(o,p)||(n=s,r=a,i=u,o=p,e=t(s,a,u,p)),e}}function at(t){var e,n,r,i,o,s;return n=r=i=o=s=mr,function(a,u,p,l,h){return c(n,a)&&c(r,u)&&c(i,p)&&c(o,l)&&c(s,h)||(n=a,r=u,i=p,o=l,s=h,e=t(a,u,p,l,h)),e}}function ut(t){var e,n,r,i,o,s,a;return n=r=i=o=s=a=mr,function(u,p,l,h,f,d){return c(n,u)&&c(r,p)&&c(i,l)&&c(o,h)&&c(s,f)&&c(a,d)||(n=u,r=p,i=l,o=h,s=f,a=d,e=t(u,p,l,h,f,d)),e}}function ct(t){var e,n,r,i,o,s,a,u;return n=r=i=o=s=a=u=mr,function(p,l,h,f,d,y,m){return c(n,p)&&c(r,l)&&c(i,h)&&c(o,f)&&c(s,d)&&c(a,y)&&c(u,m)||(n=p,r=l,i=h,o=f,s=d,a=y,u=m,e=t(p,l,h,f,d,y,m)),e}}function pt(t){var e,n,r,i,o,s,a,u,p;return n=r=i=o=s=a=u=p=mr,function(l,h,f,d,y,m,v,g){return c(n,l)&&c(r,h)&&c(i,f)&&c(o,d)&&c(s,y)&&c(a,m)&&c(u,v)&&c(p,g)||(n=l,r=h,i=f,o=d,s=y,a=m,u=v,p=g,e=t(l,h,f,d,y,m,v,g)),e}}function lt(t){var e,n,r,i,o,s,a,u,p,l;return n=r=i=o=s=a=u=p=l=mr,function(h,f,d,y,m,v,g,_,b){return c(n,h)&&c(r,f)&&c(i,d)&&c(o,y)&&c(s,m)&&c(a,v)&&c(u,g)&&c(p,_)&&c(l,b)||(n=h,r=f,i=d,o=y,s=m,a=v,u=g,p=_,l=b,e=t(h,f,d,y,m,v,g,_,b)),e}}function ht(t){var e,n,r,i,o,s,a,u,p,l,h;return n=r=i=o=s=a=u=p=l=h=mr,function(f,d,y,m,v,g,_,b,w,E){return c(n,f)&&c(r,d)&&c(i,y)&&c(o,m)&&c(s,v)&&c(a,g)&&c(u,_)&&c(p,b)&&c(l,w)&&c(h,E)||(n=f,r=d,i=y,o=m,s=v,a=g,u=_,p=b,l=w,h=E,e=t(f,d,y,m,v,g,_,b,w,E)),e}}function ft(t,e,n){Object.keys(n).forEach(function(r){dt(t,e,r,n[r].currentValue)})}function dt(t,e,n,r){try{t.setBindingDebugInfo(e,"ng-reflect-"+yt(n),r?r.toString():null)}catch(i){t.setBindingDebugInfo(e,"ng-reflect-"+yt(n),"[ERROR] Exception while trying to serialize the value")}}function yt(t){return t.replace(Hr,function(){for(var t=[],e=0;e<arguments.length;e++)t[e-0]=arguments[e];return"-"+t[1].toLowerCase()})}function mt(t,e,n,r,i){for(var o=t.createElement(e,n,i),s=0;s<r.length;s+=2)t.setElementAttribute(o,r.get(s),r.get(s+1));return o}function vt(t,e,n,r,i){var o;if(s(r)){o=t.selectRootElement(r,i);for(var a=0;a<n.length;a+=2)t.setElementAttribute(o,n.get(a),n.get(a+1));t.setElementAttribute(o,"ng-version",en.full)}else o=mt(t,null,e,n,i);return o}function gt(t,e,n,r){for(var i=wt(n.length/2),o=0;o<n.length;o+=2){var s=n.get(o),a=n.get(o+1),u=void 0;u=a?t.renderer.listenGlobal(a,s,r.bind(t,a+":"+s)):t.renderer.listen(e,s,r.bind(t,s)),i.set(o/2,u)}return _t.bind(null,i)}function _t(t){for(var e=0;e<t.length;e++)t.get(e)()}function bt(){}function wt(t){var e;return new(e=2>=t?zr:4>=t?Wr:8>=t?Gr:16>=t?Kr:Xr)(t)}function Et(){var t=he.wtf;return t&&(Mr=t.trace)?(Rr=Mr.events,!0):!1}function St(t,e){return void 0===e&&(e=null),Rr.createScope(t,e)}function Ct(t,e){return Mr.leaveScope(t,e),e}function xt(t,e){return Mr.beginTimeRange(t,e)}function Tt(t){Mr.endTimeRange(t)}function Pt(){return null}function Ot(t){di=t}function At(){if(vi)throw new Error("Cannot enable prod mode after platform setup.");mi=!1}function Mt(){return vi=!0,mi}function Rt(t){if(kr&&!kr.destroyed)throw new Error("There can be only one platform. Destroy the previous one to create a new one.");kr=t.get(_i);var e=t.get(zn,null);return e&&e.forEach(function(t){return t()}),kr}function kt(t,e,n){void 0===n&&(n=[]);var r=new Ee("Platform: "+e);return function(e){return void 0===e&&(e=[]),Dt()||(t?t(n.concat(e).concat({provide:r,useValue:!0})):Rt(In.resolveAndCreate(n.concat(e).concat({provide:r,useValue:!0})))),Nt(r)}}function Nt(t){var e=Dt();if(!e)throw new Error("No platform exists!");if(!e.injector.get(t,null))throw new Error("A platform with a different configuration has been created. Please destroy it first.");return e}function It(){kr&&!kr.destroyed&&kr.destroy()}function Dt(){return kr&&!kr.destroyed?kr:null}function jt(t,e){try{var n=e();return q(n)?n["catch"](function(e){throw t.handleError(e),e}):n}catch(r){throw t.handleError(r),r}}function Lt(t,e){var n=Ai.get(t);if(n)throw new Error("Duplicate module registered for "+t+" - "+n.moduleType.name+" vs "+e.moduleType.name);Ai.set(t,e)}function Vt(t){var e=Ai.get(t);if(!e)throw new Error("No module with ID "+t+" loaded");return e}function Ft(t,e,n){if(!t)throw new Error("Cannot find '"+n+"' in '"+e+"'");return t}function Ut(t){return t.map(function(t){return t.nativeElement})}function Bt(t,e,n){t.childNodes.forEach(function(t){t instanceof Xi&&(e(t)&&n.push(t),Bt(t,e,n))})}function Ht(t,e,n){t instanceof Xi&&t.childNodes.forEach(function(t){e(t)&&n.push(t),t instanceof Xi&&Ht(t,e,n)})}function qt(t){return Qi.get(t)}function zt(t){Qi.set(t.nativeNode,t)}function Wt(t){Qi["delete"](t.nativeNode)}function Gt(){return On}function Kt(){return Sr}function Xt(){return Cr}function Qt(t){return t||"en-US"}function Yt(t,e){void 0===e&&(e=null);var n=e;if(!s(n)){var r={};n=new bo([r],1)}return new wo(t,n)}function $t(t){return new Co(t)}function Zt(t){return new So(t)}function Jt(t){var e,n=null;return"string"==typeof t?e=[t]:(e=Array.isArray(t)?t:[t],e.forEach(function(t){var e=t.offset;s(e)&&(n=null==n?parseFloat(e):n)})),new bo(e,n)}function te(t,e){return new mo(t,e)}function ee(t){return new _o(t)}function ne(t,e){var n=Array.isArray(e)?new So(e):e;return new vo(t,n)}function re(t,e){return new fo(t,e)}function ie(t,e,n){void 0===n&&(n=null);var r={};return Object.keys(e).forEach(function(t){var i=e[t];r[t]=i==ho?n:i.toString()}),Object.keys(t).forEach(function(t){s(r[t])||(r[t]=n)}),r}function oe(t,e,n){var r=n.length-1,i=n[0],o=ce(i.styles.styles),a={},u=!1;Object.keys(t).forEach(function(e){var n=t[e];o[e]||(o[e]=n,a[e]=n,u=!0)});var c=Vn.merge({},o),p=n[r];p.styles.styles.unshift(e);var l=ce(p.styles.styles),h={},f=!1;return Object.keys(c).forEach(function(t){s(l[t])||(h[t]=ho,f=!0)}),f&&p.styles.styles.push(h),Object.keys(l).forEach(function(t){s(o[t])||(a[t]=ho,u=!0)}),u&&i.styles.styles.push(a),ae(t,[e]),n}function se(t){var e={};return Object.keys(t).forEach(function(t){e[t]=null}),e}function ae(t,e){return e.map(function(e){var n={};return Object.keys(e).forEach(function(r){var i=e[r];i==no&&(i=t[r],s(i)||(i=ho)),t[r]=i,n[r]=i}),n})}function ue(t,e,n){Object.keys(n).forEach(function(r){e.setElementStyle(t,r,n[r])})}function ce(t){var e={};return t.forEach(function(t){Object.keys(t).forEach(function(n){e[n]=t[n]})}),e}function pe(t,e){t instanceof so||t instanceof po?t.players.forEach(function(t){return pe(t,e)}):e.push(t)}var le;le="undefined"==typeof window?"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope?self:i:window;var he=le;he.assert=function(){};var fe=null,de=0,ye=he.Reflect,me=b("Inject",[["token",void 0]]),ve=b("Optional",[]),ge=g("Injectable",[]),_e=b("Self",[]),be=b("SkipSelf",[]),we=b("Host",[]),Ee=function(){function t(t){this._desc=t}return t.prototype.toString=function(){return"Token "+this._desc},t.decorators=[{type:ge}],t.ctorParameters=function(){return[null]},t}(),Se=new Ee("AnalyzeForEntryComponents"),Ce=b("Attribute",[["attributeName",void 0]]),xe=function(){function t(){}return t}(),Te=w("ContentChildren",[["selector",void 0],{first:!1,isViewQuery:!1,descendants:!1,read:void 0}],xe),Pe=w("ContentChild",[["selector",void 0],{first:!0,isViewQuery:!1,descendants:!0,read:void 0}],xe),Oe=w("ViewChildren",[["selector",void 0],{first:!1,isViewQuery:!0,descendants:!0,read:void 0}],xe),Ae=w("ViewChild",[["selector",void 0],{first:!0,isViewQuery:!0,descendants:!0,read:void 0}],xe),Me={};Me.OnPush=0,Me.Default=1,Me[Me.OnPush]="OnPush",Me[Me.Default]="Default";var Re={};Re.CheckOnce=0,Re.Checked=1,Re.CheckAlways=2,Re.Detached=3,Re.Errored=4,Re.Destroyed=5,Re[Re.CheckOnce]="CheckOnce",Re[Re.Checked]="Checked",Re[Re.CheckAlways]="CheckAlways",Re[Re.Detached]="Detached",Re[Re.Errored]="Errored",Re[Re.Destroyed]="Destroyed";var ke=g("Directive",{selector:void 0,inputs:void 0,outputs:void 0,host:void 0,providers:void 0,exportAs:void 0,queries:void 0}),Ne=g("Component",{selector:void 0,inputs:void 0,outputs:void 0,host:void 0,exportAs:void 0,moduleId:void 0,providers:void 0,viewProviders:void 0,changeDetection:Me.Default,queries:void 0,templateUrl:void 0,template:void 0,styleUrls:void 0,styles:void 0,animations:void 0,encapsulation:void 0,interpolation:void 0,entryComponents:void 0},ke),Ie=g("Pipe",{name:void 0,pure:!0}),De=w("Input",[["bindingPropertyName",void 0]]),je=w("Output",[["bindingPropertyName",void 0]]),Le=w("HostBinding",[["hostPropertyName",void 0]]),Ve=w("HostListener",[["eventName",void 0],["args",[]]]),Fe={};Fe.OnInit=0,Fe.OnDestroy=1,Fe.DoCheck=2,Fe.OnChanges=3,Fe.AfterContentInit=4,Fe.AfterContentChecked=5,Fe.AfterViewInit=6,Fe.AfterViewChecked=7,Fe[Fe.OnInit]="OnInit",Fe[Fe.OnDestroy]="OnDestroy",Fe[Fe.DoCheck]="DoCheck",Fe[Fe.OnChanges]="OnChanges",Fe[Fe.AfterContentInit]="AfterContentInit",Fe[Fe.AfterContentChecked]="AfterContentChecked",Fe[Fe.AfterViewInit]="AfterViewInit",Fe[Fe.AfterViewChecked]="AfterViewChecked";var Ue=[Fe.OnInit,Fe.OnDestroy,Fe.DoCheck,Fe.OnChanges,Fe.AfterContentInit,Fe.AfterContentChecked,Fe.AfterViewInit,Fe.AfterViewChecked],Be=function(){function t(){}return t.prototype.ngOnChanges=function(){},t}(),He=function(){function t(){}return t.prototype.ngOnInit=function(){},t}(),qe=function(){function t(){}return t.prototype.ngDoCheck=function(){},t}(),ze=function(){function t(){}return t.prototype.ngOnDestroy=function(){},t}(),We=function(){function t(){}return t.prototype.ngAfterContentInit=function(){},t}(),Ge=function(){function t(){}return t.prototype.ngAfterContentChecked=function(){},t}(),Ke=function(){function t(){}return t.prototype.ngAfterViewInit=function(){},t}(),Xe=function(){function t(){}return t.prototype.ngAfterViewChecked=function(){},t}(),Qe={name:"custom-elements"},Ye={name:"no-errors-schema"},$e=g("NgModule",{providers:void 0,declarations:void 0,imports:void 0,exports:void 0,entryComponents:void 0,bootstrap:void 0,schemas:void 0,id:void 0}),Ze={};Ze.Emulated=0,Ze.Native=1,Ze.None=2,Ze[Ze.Emulated]="Emulated",Ze[Ze.Native]="Native",Ze[Ze.None]="None";var Je=function(){function t(t){var e=void 0===t?{}:t,n=e.templateUrl,r=e.template,i=e.encapsulation,o=e.styles,s=e.styleUrls,a=e.animations,u=e.interpolation;this.templateUrl=n,this.template=r,this.styleUrls=s,this.styles=o,this.encapsulation=i,this.animations=a,this.interpolation=u}return t}(),tn=function(){function t(t){this.full=t}return Object.defineProperty(t.prototype,"major",{get:function(){return this.full.split(".")[0]},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"minor",{get:function(){return this.full.split(".")[1]},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"patch",{get:function(){return this.full.split(".").slice(2).join(".")},enumerable:!0,configurable:!0 +}),t}(),en=new tn("2.4.9"),nn=new Object,rn=nn,on=function(){function t(){}return t.prototype.get=function(t,e){if(void 0===e&&(e=nn),e===nn)throw new Error("No provider for "+u(t)+"!");return e},t}(),sn=function(){function t(){}return t.prototype.get=function(){},t.THROW_IF_NOT_FOUND=nn,t.NULL=new on,t}(),an=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},un=function(t){function e(e){t.call(this,e);var n=new Error(e);this._nativeError=n}return an(e,t),Object.defineProperty(e.prototype,"message",{get:function(){return this._nativeError.message},set:function(t){this._nativeError.message=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"name",{get:function(){return this._nativeError.name},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"stack",{get:function(){return this._nativeError.stack},set:function(t){this._nativeError.stack=t},enumerable:!0,configurable:!0}),e.prototype.toString=function(){return this._nativeError.toString()},e}(Error),cn=function(t){function e(e,n){t.call(this,e+" caused by: "+(n instanceof Error?n.message:n)),this.originalError=n}return an(e,t),Object.defineProperty(e.prototype,"stack",{get:function(){return(this.originalError instanceof Error?this.originalError:this._nativeError).stack},enumerable:!0,configurable:!0}),e}(un),pn=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},ln=function(t){function e(e,n,r){t.call(this,"DI Error"),this.keys=[n],this.injectors=[e],this.constructResolvingMessage=r,this.message=this.constructResolvingMessage(this.keys)}return pn(e,t),e.prototype.addKey=function(t,e){this.injectors.push(t),this.keys.push(e),this.message=this.constructResolvingMessage(this.keys)},e}(un),hn=function(t){function e(e,n){t.call(this,e,n,function(t){var e=u(t[0].token);return"No provider for "+e+"!"+T(t)})}return pn(e,t),e}(ln),fn=function(t){function e(e,n){t.call(this,e,n,function(t){return"Cannot instantiate cyclic dependency!"+T(t)})}return pn(e,t),e}(ln),dn=function(t){function e(e,n,r,i){t.call(this,"DI Error",n),this.keys=[i],this.injectors=[e]}return pn(e,t),e.prototype.addKey=function(t,e){this.injectors.push(t),this.keys.push(e)},Object.defineProperty(e.prototype,"message",{get:function(){var t=u(this.keys[0].token);return this.originalError.message+": Error during instantiation of "+t+"!"+T(this.keys)+"."},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"causeKey",{get:function(){return this.keys[0]},enumerable:!0,configurable:!0}),e}(cn),yn=function(t){function e(e){t.call(this,"Invalid provider - only instances of Provider and Type are allowed, got: "+e)}return pn(e,t),e}(un),mn=function(t){function e(n,r){t.call(this,e._genMessage(n,r))}return pn(e,t),e._genMessage=function(t,e){for(var n=[],r=0,i=e.length;i>r;r++){var o=e[r];n.push(o&&0!=o.length?o.map(u).join(" "):"?")}return"Cannot resolve all parameters for '"+u(t)+"'("+n.join(", ")+"). Make sure that all the parameters are decorated with Inject or have valid type annotations and that '"+u(t)+"' is decorated with Injectable."},e}(un),vn=function(t){function e(e){t.call(this,"Index "+e+" is out-of-bounds.")}return pn(e,t),e}(un),gn=function(t){function e(e,n){t.call(this,"Cannot mix multi providers and regular providers, got: "+e.toString()+" "+n.toString())}return pn(e,t),e}(un),_n=function(){function t(t,e){if(this.token=t,this.id=e,!t)throw new Error("Token must be defined!")}return Object.defineProperty(t.prototype,"displayName",{get:function(){return u(this.token)},enumerable:!0,configurable:!0}),t.get=function(t){return wn.get(C(t))},Object.defineProperty(t,"numberOfKeys",{get:function(){return wn.numberOfKeys},enumerable:!0,configurable:!0}),t}(),bn=function(){function t(){this._allKeys=new Map}return t.prototype.get=function(t){if(t instanceof _n)return t;if(this._allKeys.has(t))return this._allKeys.get(t);var e=new _n(t,_n.numberOfKeys);return this._allKeys.set(t,e),e},Object.defineProperty(t.prototype,"numberOfKeys",{get:function(){return this._allKeys.size},enumerable:!0,configurable:!0}),t}(),wn=new bn,En=Function,Sn=/^function\s+\S+\(\)\s*{\s*("use strict";)?\s*(return\s+)?\S+\.apply\(this,\s*arguments\)/,Cn=function(){function t(t){this._reflect=t||he.Reflect}return t.prototype.isReflectionEnabled=function(){return!0},t.prototype.factory=function(t){return function(){for(var e=[],n=0;n<arguments.length;n++)e[n-0]=arguments[n];return new(t.bind.apply(t,[void 0].concat(e)))}},t.prototype._zipTypesAndAnnotations=function(t,e){var n;n=new Array("undefined"==typeof t?e.length:t.length);for(var r=0;r<n.length;r++)n[r]="undefined"==typeof t?[]:t[r]!=Object?[t[r]]:[],e&&s(e[r])&&(n[r]=n[r].concat(e[r]));return n},t.prototype._ownParameters=function(t,e){if(Sn.exec(t.toString()))return null;if(t.parameters&&t.parameters!==e.parameters)return t.parameters;var n=t.ctorParameters;if(n&&n!==e.ctorParameters){var r="function"==typeof n?n():n,i=r.map(function(t){return t&&t.type}),o=r.map(function(t){return t&&O(t.decorators)});return this._zipTypesAndAnnotations(i,o)}if(s(this._reflect)&&s(this._reflect.getOwnMetadata)){var o=this._reflect.getOwnMetadata("parameters",t),i=this._reflect.getOwnMetadata("design:paramtypes",t);if(i||o)return this._zipTypesAndAnnotations(i,o)}return new Array(t.length).fill(void 0)},t.prototype.parameters=function(t){if(!P(t))return[];var e=A(t),n=this._ownParameters(t,e);return n||e===Object||(n=this.parameters(e)),n||[]},t.prototype._ownAnnotations=function(t,e){if(t.annotations&&t.annotations!==e.annotations){var n=t.annotations;return"function"==typeof n&&n.annotations&&(n=n.annotations),n}return t.decorators&&t.decorators!==e.decorators?O(t.decorators):this._reflect&&this._reflect.getOwnMetadata?this._reflect.getOwnMetadata("annotations",t):void 0},t.prototype.annotations=function(t){if(!P(t))return[];var e=A(t),n=this._ownAnnotations(t,e)||[],r=e!==Object?this.annotations(e):[];return r.concat(n)},t.prototype._ownPropMetadata=function(t,e){if(t.propMetadata&&t.propMetadata!==e.propMetadata){var n=t.propMetadata;return"function"==typeof n&&n.propMetadata&&(n=n.propMetadata),n}if(t.propDecorators&&t.propDecorators!==e.propDecorators){var r=t.propDecorators,i={};return Object.keys(r).forEach(function(t){i[t]=O(r[t])}),i}return this._reflect&&this._reflect.getOwnMetadata?this._reflect.getOwnMetadata("propMetadata",t):void 0},t.prototype.propMetadata=function(t){if(!P(t))return{};var e=A(t),n={};if(e!==Object){var r=this.propMetadata(e);Object.keys(r).forEach(function(t){n[t]=r[t]})}var i=this._ownPropMetadata(t,e);return i&&Object.keys(i).forEach(function(t){var e=[];n.hasOwnProperty(t)&&e.push.apply(e,n[t]),e.push.apply(e,i[t]),n[t]=e}),n},t.prototype.hasLifecycleHook=function(t,e){return t instanceof En&&e in t.prototype},t.prototype.getter=function(t){return new Function("o","return o."+t+";")},t.prototype.setter=function(t){return new Function("o","v","return o."+t+" = v;")},t.prototype.method=function(t){var e="if (!o."+t+") throw new Error('\""+t+"\" is undefined');\n return o."+t+".apply(o, args);";return new Function("o","args",e)},t.prototype.importUri=function(t){return"object"==typeof t&&t.filePath?t.filePath:"./"+u(t)},t.prototype.resolveIdentifier=function(t,e,n){return n},t.prototype.resolveEnum=function(t,e){return t[e]},t}(),xn=function(){function t(){}return t.prototype.parameters=function(){},t.prototype.annotations=function(){},t.prototype.propMetadata=function(){},t.prototype.importUri=function(){},t.prototype.resolveIdentifier=function(){},t.prototype.resolveEnum=function(){},t}(),Tn=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},Pn=function(t){function e(e){t.call(this),this.reflectionCapabilities=e}return Tn(e,t),e.prototype.updateCapabilities=function(t){this.reflectionCapabilities=t},e.prototype.factory=function(t){return this.reflectionCapabilities.factory(t)},e.prototype.parameters=function(t){return this.reflectionCapabilities.parameters(t)},e.prototype.annotations=function(t){return this.reflectionCapabilities.annotations(t)},e.prototype.propMetadata=function(t){return this.reflectionCapabilities.propMetadata(t)},e.prototype.hasLifecycleHook=function(t,e){return this.reflectionCapabilities.hasLifecycleHook(t,e)},e.prototype.getter=function(t){return this.reflectionCapabilities.getter(t)},e.prototype.setter=function(t){return this.reflectionCapabilities.setter(t)},e.prototype.method=function(t){return this.reflectionCapabilities.method(t)},e.prototype.importUri=function(t){return this.reflectionCapabilities.importUri(t)},e.prototype.resolveIdentifier=function(t,e,n){return this.reflectionCapabilities.resolveIdentifier(t,e,n)},e.prototype.resolveEnum=function(t,e){return this.reflectionCapabilities.resolveEnum(t,e)},e}(xn),On=new Pn(new Cn),An=function(){function t(t,e,n){this.key=t,this.optional=e,this.visibility=n}return t.fromKey=function(e){return new t(e,!1,null)},t}(),Mn=[],Rn=function(){function t(t,e,n){this.key=t,this.resolvedFactories=e,this.multiProvider=n}return Object.defineProperty(t.prototype,"resolvedFactory",{get:function(){return this.resolvedFactories[0]},enumerable:!0,configurable:!0}),t}(),kn=function(){function t(t,e){this.factory=t,this.dependencies=e}return t}(),Nn=new Object,In=function(){function t(){}return t.resolve=function(t){return k(t)},t.resolveAndCreate=function(e,n){void 0===n&&(n=null);var r=t.resolve(e);return t.fromResolvedProviders(r,n)},t.fromResolvedProviders=function(t,e){return void 0===e&&(e=null),new Dn(t,e)},t.prototype.parent=function(){},t.prototype.resolveAndCreateChild=function(){},t.prototype.createChildFromResolved=function(){},t.prototype.resolveAndInstantiate=function(){},t.prototype.instantiateResolved=function(){},t.prototype.get=function(){},t}(),Dn=function(){function t(t,e){void 0===e&&(e=null),this._constructionCounter=0,this._providers=t,this._parent=e;var n=t.length;this.keyIds=new Array(n),this.objs=new Array(n);for(var r=0;n>r;r++)this.keyIds[r]=t[r].key.id,this.objs[r]=Nn}return t.prototype.get=function(t,e){return void 0===e&&(e=rn),this._getByKey(_n.get(t),null,e)},Object.defineProperty(t.prototype,"parent",{get:function(){return this._parent},enumerable:!0,configurable:!0}),t.prototype.resolveAndCreateChild=function(t){var e=In.resolve(t);return this.createChildFromResolved(e)},t.prototype.createChildFromResolved=function(e){var n=new t(e);return n._parent=this,n},t.prototype.resolveAndInstantiate=function(t){return this.instantiateResolved(In.resolve([t])[0])},t.prototype.instantiateResolved=function(t){return this._instantiateProvider(t)},t.prototype.getProviderAtIndex=function(t){if(0>t||t>=this._providers.length)throw new vn(t);return this._providers[t]},t.prototype._new=function(t){if(this._constructionCounter++>this._getMaxNumberOfObjects())throw new fn(this,t.key);return this._instantiateProvider(t)},t.prototype._getMaxNumberOfObjects=function(){return this.objs.length},t.prototype._instantiateProvider=function(t){if(t.multiProvider){for(var e=new Array(t.resolvedFactories.length),n=0;n<t.resolvedFactories.length;++n)e[n]=this._instantiate(t,t.resolvedFactories[n]);return e}return this._instantiate(t,t.resolvedFactories[0])},t.prototype._instantiate=function(t,e){var n,r=this,i=e.factory;try{n=e.dependencies.map(function(t){return r._getByReflectiveDependency(t)})}catch(o){throw(o instanceof ln||o instanceof dn)&&o.addKey(this,t.key),o}var s;try{s=i.apply(void 0,n)}catch(o){throw new dn(this,o,o.stack,t.key)}return s},t.prototype._getByReflectiveDependency=function(t){return this._getByKey(t.key,t.visibility,t.optional?null:rn)},t.prototype._getByKey=function(t,e,n){return t===jn?this:e instanceof _e?this._getByKeySelf(t,n):this._getByKeyDefault(t,n,e)},t.prototype._getObjByKeyId=function(t){for(var e=0;e<this.keyIds.length;e++)if(this.keyIds[e]===t)return this.objs[e]===Nn&&(this.objs[e]=this._new(this._providers[e])),this.objs[e];return Nn},t.prototype._throwOrNull=function(t,e){if(e!==rn)return e;throw new hn(this,t)},t.prototype._getByKeySelf=function(t,e){var n=this._getObjByKeyId(t.id);return n!==Nn?n:this._throwOrNull(t,e)},t.prototype._getByKeyDefault=function(e,n,r){var i;for(i=r instanceof be?this._parent:this;i instanceof t;){var o=i,s=o._getObjByKeyId(e.id);if(s!==Nn)return s;i=o._parent}return null!==i?i.get(e.token,n):this._throwOrNull(e,n)},Object.defineProperty(t.prototype,"displayName",{get:function(){var t=F(this,function(t){return' "'+t.key.displayName+'" '}).join(", ");return"ReflectiveInjector(providers: ["+t+"])"},enumerable:!0,configurable:!0}),t.prototype.toString=function(){return this.displayName},t}(),jn=_n.get(sn),Ln=function(){function t(t){void 0===t&&(t=!0),this._console=console,this.rethrowError=t}return t.prototype.handleError=function(t){var e=this._findOriginalError(t),n=this._findOriginalStack(t),r=this._findContext(t);if(this._console.error("EXCEPTION: "+this._extractMessage(t)),e&&this._console.error("ORIGINAL EXCEPTION: "+this._extractMessage(e)),n&&(this._console.error("ORIGINAL STACKTRACE:"),this._console.error(n)),r&&(this._console.error("ERROR CONTEXT:"),this._console.error(r)),this.rethrowError)throw t},t.prototype._extractMessage=function(t){return t instanceof Error?t.message:t.toString()},t.prototype._findContext=function(t){return t?t.context?t.context:this._findContext(t.originalError):null},t.prototype._findOriginalError=function(t){for(var e=t.originalError;e&&e.originalError;)e=e.originalError;return e},t.prototype._findOriginalStack=function(t){if(!(t instanceof Error))return null;for(var e=t,n=e.stack;e instanceof Error&&e.originalError;)e=e.originalError,e instanceof Error&&e.stack&&(n=e.stack);return n},t}(),Vn=function(){function t(){}return t.merge=function(t,e){for(var n={},r=0,i=Object.keys(t);r<i.length;r++){var o=i[r];n[o]=t[o]}for(var s=0,a=Object.keys(e);s<a.length;s++){var o=a[s];n[o]=e[o]}return n},t.equals=function(t,e){var n=Object.keys(t),r=Object.keys(e);if(n.length!=r.length)return!1;for(var i=0;i<n.length;i++){var o=n[i];if(t[o]!==e[o])return!1}return!0},t}(),Fn=function(){function t(){}return t.findLast=function(t,e){for(var n=t.length-1;n>=0;n--)if(e(t[n]))return t[n];return null},t.removeAll=function(t,e){for(var n=0;n<e.length;++n){var r=t.indexOf(e[n]);r>-1&&t.splice(r,1)}},t.remove=function(t,e){var n=t.indexOf(e);return n>-1?(t.splice(n,1),!0):!1},t.equals=function(t,e){if(t.length!=e.length)return!1;for(var n=0;n<t.length;++n)if(t[n]!==e[n])return!1;return!0},t.flatten=function(e){return e.reduce(function(e,n){var r=Array.isArray(n)?t.flatten(n):n;return e.concat(r)},[])},t}(),Un=new Ee("Application Initializer"),Bn=function(){function t(t){var e=this;this._done=!1;var n=[];if(t)for(var r=0;r<t.length;r++){var i=t[r]();q(i)&&n.push(i)}this._donePromise=Promise.all(n).then(function(){e._done=!0}),0===n.length&&(this._done=!0)}return Object.defineProperty(t.prototype,"done",{get:function(){return this._done},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"donePromise",{get:function(){return this._donePromise},enumerable:!0,configurable:!0}),t.decorators=[{type:ge}],t.ctorParameters=function(){return[{type:Array,decorators:[{type:me,args:[Un]},{type:ve}]}]},t}(),Hn=new Ee("AppId"),qn={provide:Hn,useFactory:W,deps:[]},zn=new Ee("Platform Initializer"),Wn=new Ee("appBootstrapListener"),Gn=new Ee("Application Packages Root URL"),Kn=function(){function t(){}return t.prototype.log=function(t){l(t)},t.prototype.warn=function(t){h(t)},t.decorators=[{type:ge}],t.ctorParameters=function(){return[]},t}(),Xn=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},Qn=function(t){function e(e){t.call(this,"Can't compile synchronously as "+u(e)+" is still being loaded!"),this.compType=e}return Xn(e,t),e}(un),Yn=function(){function t(t,e){this.ngModuleFactory=t,this.componentFactories=e}return t}(),$n=function(){function t(){}return t.prototype.compileModuleSync=function(){throw K()},t.prototype.compileModuleAsync=function(){throw K()},t.prototype.compileModuleAndAllComponentsSync=function(){throw K()},t.prototype.compileModuleAndAllComponentsAsync=function(){throw K()},t.prototype.getNgContentSelectors=function(){throw K()},t.prototype.clearCache=function(){},t.prototype.clearCacheFor=function(){},t.decorators=[{type:ge}],t.ctorParameters=function(){return[]},t}(),Zn=new Ee("compilerOptions"),Jn=function(){function t(){}return t.prototype.createCompiler=function(){},t}(),tr=function(){function t(t){this.nativeElement=t}return t}(),er=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},nr=function(t){function e(e){void 0===e&&(e=!1),t.call(this),this.__isAsync=e}return er(e,t),e.prototype.emit=function(e){t.prototype.next.call(this,e)},e.prototype.subscribe=function(e,n,r){var i,o=function(){return null},s=function(){return null};return e&&"object"==typeof e?(i=this.__isAsync?function(t){setTimeout(function(){return e.next(t)})}:function(t){e.next(t)},e.error&&(o=this.__isAsync?function(t){setTimeout(function(){return e.error(t)})}:function(t){e.error(t)}),e.complete&&(s=this.__isAsync?function(){setTimeout(function(){return e.complete()})}:function(){e.complete()})):(i=this.__isAsync?function(t){setTimeout(function(){return e(t)})}:function(t){e(t)},n&&(o=this.__isAsync?function(t){setTimeout(function(){return n(t)})}:function(t){n(t)}),r&&(s=this.__isAsync?function(){setTimeout(function(){return r()})}:function(){r()})),t.prototype.subscribe.call(this,i,o,s)},e}(n.Subject),rr=function(){function t(t){var e=t.enableLongStackTrace,n=void 0===e?!1:e;if(this._hasPendingMicrotasks=!1,this._hasPendingMacrotasks=!1,this._isStable=!0,this._nesting=0,this._onUnstable=new nr(!1),this._onMicrotaskEmpty=new nr(!1),this._onStable=new nr(!1),this._onErrorEvents=new nr(!1),"undefined"==typeof Zone)throw new Error("Angular requires Zone.js prolyfill.");Zone.assertZonePatched(),this.outer=this.inner=Zone.current,Zone.wtfZoneSpec&&(this.inner=this.inner.fork(Zone.wtfZoneSpec)),n&&Zone.longStackTraceZoneSpec&&(this.inner=this.inner.fork(Zone.longStackTraceZoneSpec)),this.forkInnerZoneWithAngularBehavior()}return t.isInAngularZone=function(){return Zone.current.get("isAngularZone")===!0},t.assertInAngularZone=function(){if(!t.isInAngularZone())throw new Error("Expected to be in Angular Zone, but it is not!")},t.assertNotInAngularZone=function(){if(t.isInAngularZone())throw new Error("Expected to not be in Angular Zone, but it is!")},t.prototype.run=function(t){return this.inner.run(t)},t.prototype.runGuarded=function(t){return this.inner.runGuarded(t)},t.prototype.runOutsideAngular=function(t){return this.outer.run(t)},Object.defineProperty(t.prototype,"onUnstable",{get:function(){return this._onUnstable},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"onMicrotaskEmpty",{get:function(){return this._onMicrotaskEmpty},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"onStable",{get:function(){return this._onStable},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"onError",{get:function(){return this._onErrorEvents},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isStable",{get:function(){return this._isStable},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"hasPendingMicrotasks",{get:function(){return this._hasPendingMicrotasks},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"hasPendingMacrotasks",{get:function(){return this._hasPendingMacrotasks},enumerable:!0,configurable:!0}),t.prototype.checkStable=function(){var t=this;if(0==this._nesting&&!this._hasPendingMicrotasks&&!this._isStable)try{this._nesting++,this._onMicrotaskEmpty.emit(null)}finally{if(this._nesting--,!this._hasPendingMicrotasks)try{this.runOutsideAngular(function(){return t._onStable.emit(null)})}finally{this._isStable=!0}}},t.prototype.forkInnerZoneWithAngularBehavior=function(){var t=this;this.inner=this.inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:function(e,n,r,i,o,s){try{return t.onEnter(),e.invokeTask(r,i,o,s)}finally{t.onLeave()}},onInvoke:function(e,n,r,i,o,s,a){try{return t.onEnter(),e.invoke(r,i,o,s,a)}finally{t.onLeave()}},onHasTask:function(e,n,r,i){e.hasTask(r,i),n===r&&("microTask"==i.change?t.setHasMicrotask(i.microTask):"macroTask"==i.change&&t.setHasMacrotask(i.macroTask))},onHandleError:function(e,n,r,i){return e.handleError(r,i),t.triggerError(i),!1}})},t.prototype.onEnter=function(){this._nesting++,this._isStable&&(this._isStable=!1,this._onUnstable.emit(null))},t.prototype.onLeave=function(){this._nesting--,this.checkStable()},t.prototype.setHasMicrotask=function(t){this._hasPendingMicrotasks=t,this.checkStable()},t.prototype.setHasMacrotask=function(t){this._hasPendingMacrotasks=t},t.prototype.triggerError=function(t){this._onErrorEvents.emit(t)},t}(),ir=function(){function t(t){this._zone=t,this.entries=[]}return t.prototype.enqueue=function(t){this.entries.push(t)},t.prototype.flush=function(){var t=this;this.entries.length&&this._zone.runOutsideAngular(function(){Promise.resolve(null).then(function(){return t._triggerAnimations()})})},t.prototype._triggerAnimations=function(){for(rr.assertNotInAngularZone();this.entries.length;){var t=this.entries.shift();t.hasStarted()||t.play()}},t.decorators=[{type:ge}],t.ctorParameters=function(){return[{type:rr}]},t}(),or=function(){function t(){}return t.prototype.supports=function(t){return U(t)},t.prototype.create=function(t,e){return new ar(e)},t}(),sr=function(t,e){return e},ar=function(){function t(t){this._trackByFn=t,this._length=null,this._collection=null,this._linkedRecords=null,this._unlinkedRecords=null,this._previousItHead=null,this._itHead=null,this._itTail=null,this._additionsHead=null,this._additionsTail=null,this._movesHead=null,this._movesTail=null,this._removalsHead=null,this._removalsTail=null,this._identityChangesHead=null,this._identityChangesTail=null,this._trackByFn=this._trackByFn||sr}return Object.defineProperty(t.prototype,"collection",{get:function(){return this._collection},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"length",{get:function(){return this._length},enumerable:!0,configurable:!0}),t.prototype.forEachItem=function(t){var e;for(e=this._itHead;null!==e;e=e._next)t(e)},t.prototype.forEachOperation=function(t){for(var e=this._itHead,n=this._removalsHead,r=0,i=null;e||n;){var o=!n||e&&e.currentIndex<X(n,r,i)?e:n,s=X(o,r,i),a=o.currentIndex;if(o===n)r--,n=n._nextRemoved;else if(e=e._next,null==o.previousIndex)r++;else{i||(i=[]);var u=s-r,c=a-r;if(u!=c){for(var p=0;u>p;p++){var l=p<i.length?i[p]:i[p]=0,h=l+p;h>=c&&u>h&&(i[p]=l+1)}var f=o.previousIndex;i[f]=c-u}}s!==a&&t(o,s,a)}},t.prototype.forEachPreviousItem=function(t){var e;for(e=this._previousItHead;null!==e;e=e._nextPrevious)t(e)},t.prototype.forEachAddedItem=function(t){var e;for(e=this._additionsHead;null!==e;e=e._nextAdded)t(e)},t.prototype.forEachMovedItem=function(t){var e;for(e=this._movesHead;null!==e;e=e._nextMoved)t(e)},t.prototype.forEachRemovedItem=function(t){var e;for(e=this._removalsHead;null!==e;e=e._nextRemoved)t(e)},t.prototype.forEachIdentityChange=function(t){var e;for(e=this._identityChangesHead;null!==e;e=e._nextIdentityChange)t(e)},t.prototype.diff=function(t){if(a(t)&&(t=[]),!U(t))throw new Error("Error trying to diff '"+t+"'");return this.check(t)?this:null},t.prototype.onDestroy=function(){},t.prototype.check=function(t){var e=this;this._reset();var n,r,i,o=this._itHead,s=!1;if(Array.isArray(t)){var a=t;this._length=t.length;for(var u=0;u<this._length;u++)r=a[u],i=this._trackByFn(u,r),null!==o&&c(o.trackById,i)?(s&&(o=this._verifyReinsertion(o,r,i,u)),c(o.item,r)||this._addIdentityChange(o,r)):(o=this._mismatch(o,r,i,u),s=!0),o=o._next}else n=0,H(t,function(t){i=e._trackByFn(n,t),null!==o&&c(o.trackById,i)?(s&&(o=e._verifyReinsertion(o,t,i,n)),c(o.item,t)||e._addIdentityChange(o,t)):(o=e._mismatch(o,t,i,n),s=!0),o=o._next,n++}),this._length=n;return this._truncate(o),this._collection=t,this.isDirty},Object.defineProperty(t.prototype,"isDirty",{get:function(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead},enumerable:!0,configurable:!0}),t.prototype._reset=function(){if(this.isDirty){var t=void 0,e=void 0;for(t=this._previousItHead=this._itHead;null!==t;t=t._next)t._nextPrevious=t._next;for(t=this._additionsHead;null!==t;t=t._nextAdded)t.previousIndex=t.currentIndex;for(this._additionsHead=this._additionsTail=null,t=this._movesHead;null!==t;t=e)t.previousIndex=t.currentIndex,e=t._nextMoved;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}},t.prototype._mismatch=function(t,e,n,r){var i;return null===t?i=this._itTail:(i=t._prev,this._remove(t)),t=null===this._linkedRecords?null:this._linkedRecords.get(n,r),null!==t?(c(t.item,e)||this._addIdentityChange(t,e),this._moveAfter(t,i,r)):(t=null===this._unlinkedRecords?null:this._unlinkedRecords.get(n),null!==t?(c(t.item,e)||this._addIdentityChange(t,e),this._reinsertAfter(t,i,r)):t=this._addAfter(new ur(e,n),i,r)),t},t.prototype._verifyReinsertion=function(t,e,n,r){var i=null===this._unlinkedRecords?null:this._unlinkedRecords.get(n);return null!==i?t=this._reinsertAfter(i,t._prev,r):t.currentIndex!=r&&(t.currentIndex=r,this._addToMoves(t,r)),t},t.prototype._truncate=function(t){for(;null!==t;){var e=t._next;this._addToRemovals(this._unlink(t)),t=e}null!==this._unlinkedRecords&&this._unlinkedRecords.clear(),null!==this._additionsTail&&(this._additionsTail._nextAdded=null),null!==this._movesTail&&(this._movesTail._nextMoved=null),null!==this._itTail&&(this._itTail._next=null),null!==this._removalsTail&&(this._removalsTail._nextRemoved=null),null!==this._identityChangesTail&&(this._identityChangesTail._nextIdentityChange=null)},t.prototype._reinsertAfter=function(t,e,n){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(t);var r=t._prevRemoved,i=t._nextRemoved;return null===r?this._removalsHead=i:r._nextRemoved=i,null===i?this._removalsTail=r:i._prevRemoved=r,this._insertAfter(t,e,n),this._addToMoves(t,n),t},t.prototype._moveAfter=function(t,e,n){return this._unlink(t),this._insertAfter(t,e,n),this._addToMoves(t,n),t},t.prototype._addAfter=function(t,e,n){return this._insertAfter(t,e,n),this._additionsTail=null===this._additionsTail?this._additionsHead=t:this._additionsTail._nextAdded=t,t},t.prototype._insertAfter=function(t,e,n){var r=null===e?this._itHead:e._next;return t._next=r,t._prev=e,null===r?this._itTail=t:r._prev=t,null===e?this._itHead=t:e._next=t,null===this._linkedRecords&&(this._linkedRecords=new pr),this._linkedRecords.put(t),t.currentIndex=n,t},t.prototype._remove=function(t){return this._addToRemovals(this._unlink(t))},t.prototype._unlink=function(t){null!==this._linkedRecords&&this._linkedRecords.remove(t);var e=t._prev,n=t._next;return null===e?this._itHead=n:e._next=n,null===n?this._itTail=e:n._prev=e,t},t.prototype._addToMoves=function(t,e){return t.previousIndex===e?t:(this._movesTail=null===this._movesTail?this._movesHead=t:this._movesTail._nextMoved=t,t)},t.prototype._addToRemovals=function(t){return null===this._unlinkedRecords&&(this._unlinkedRecords=new pr),this._unlinkedRecords.put(t),t.currentIndex=null,t._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=t,t._prevRemoved=null):(t._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=t),t},t.prototype._addIdentityChange=function(t,e){return t.item=e,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=t:this._identityChangesTail._nextIdentityChange=t,t},t.prototype.toString=function(){var t=[];this.forEachItem(function(e){return t.push(e)});var e=[];this.forEachPreviousItem(function(t){return e.push(t)});var n=[];this.forEachAddedItem(function(t){return n.push(t)});var r=[];this.forEachMovedItem(function(t){return r.push(t)});var i=[];this.forEachRemovedItem(function(t){return i.push(t)});var o=[];return this.forEachIdentityChange(function(t){return o.push(t)}),"collection: "+t.join(", ")+"\nprevious: "+e.join(", ")+"\nadditions: "+n.join(", ")+"\nmoves: "+r.join(", ")+"\nremovals: "+i.join(", ")+"\nidentityChanges: "+o.join(", ")+"\n"},t}(),ur=function(){function t(t,e){this.item=t,this.trackById=e,this.currentIndex=null,this.previousIndex=null,this._nextPrevious=null,this._prev=null,this._next=null,this._prevDup=null,this._nextDup=null,this._prevRemoved=null,this._nextRemoved=null,this._nextAdded=null,this._nextMoved=null,this._nextIdentityChange=null}return t.prototype.toString=function(){return this.previousIndex===this.currentIndex?u(this.item):u(this.item)+"["+u(this.previousIndex)+"->"+u(this.currentIndex)+"]"},t}(),cr=function(){function t(){this._head=null,this._tail=null}return t.prototype.add=function(t){null===this._head?(this._head=this._tail=t,t._nextDup=null,t._prevDup=null):(this._tail._nextDup=t,t._prevDup=this._tail,t._nextDup=null,this._tail=t)},t.prototype.get=function(t,e){var n;for(n=this._head;null!==n;n=n._nextDup)if((null===e||e<n.currentIndex)&&c(n.trackById,t))return n;return null},t.prototype.remove=function(t){var e=t._prevDup,n=t._nextDup;return null===e?this._head=n:e._nextDup=n,null===n?this._tail=e:n._prevDup=e,null===this._head},t}(),pr=function(){function t(){this.map=new Map}return t.prototype.put=function(t){var e=t.trackById,n=this.map.get(e);n||(n=new cr,this.map.set(e,n)),n.add(t)},t.prototype.get=function(t,e){void 0===e&&(e=null);var n=t,r=this.map.get(n);return r?r.get(t,e):null},t.prototype.remove=function(t){var e=t.trackById,n=this.map.get(e);return n.remove(t)&&this.map["delete"](e),t},Object.defineProperty(t.prototype,"isEmpty",{get:function(){return 0===this.map.size},enumerable:!0,configurable:!0}),t.prototype.clear=function(){this.map.clear()},t.prototype.toString=function(){return"_DuplicateMap("+u(this.map)+")"},t}(),lr=function(){function t(){}return t.prototype.supports=function(t){return t instanceof Map||p(t)},t.prototype.create=function(){return new hr},t}(),hr=function(){function t(){this._records=new Map,this._mapHead=null,this._previousMapHead=null,this._changesHead=null,this._changesTail=null,this._additionsHead=null,this._additionsTail=null,this._removalsHead=null,this._removalsTail=null}return Object.defineProperty(t.prototype,"isDirty",{get:function(){return null!==this._additionsHead||null!==this._changesHead||null!==this._removalsHead},enumerable:!0,configurable:!0}),t.prototype.forEachItem=function(t){var e;for(e=this._mapHead;null!==e;e=e._next)t(e)},t.prototype.forEachPreviousItem=function(t){var e;for(e=this._previousMapHead;null!==e;e=e._nextPrevious)t(e)},t.prototype.forEachChangedItem=function(t){var e;for(e=this._changesHead;null!==e;e=e._nextChanged)t(e)},t.prototype.forEachAddedItem=function(t){var e;for(e=this._additionsHead;null!==e;e=e._nextAdded)t(e)},t.prototype.forEachRemovedItem=function(t){var e;for(e=this._removalsHead;null!==e;e=e._nextRemoved)t(e)},t.prototype.diff=function(t){if(t){if(!(t instanceof Map||p(t)))throw new Error("Error trying to diff '"+t+"'")}else t=new Map;return this.check(t)?this:null},t.prototype.onDestroy=function(){},t.prototype.check=function(t){var e=this;this._reset();var n=this._records,r=this._mapHead,i=null,o=null,s=!1;return this._forEach(t,function(t,a){var u;r&&a===r.key?(u=r, +e._maybeAddToChanges(u,t)):(s=!0,null!==r&&(e._removeFromSeq(i,r),e._addToRemovals(r)),n.has(a)?(u=n.get(a),e._maybeAddToChanges(u,t)):(u=new fr(a),n.set(a,u),u.currentValue=t,e._addToAdditions(u))),s&&(e._isInRemovals(u)&&e._removeFromRemovals(u),null==o?e._mapHead=u:o._next=u),i=r,o=u,r=r&&r._next}),this._truncate(i,r),this.isDirty},t.prototype._reset=function(){if(this.isDirty){var t=void 0;for(t=this._previousMapHead=this._mapHead;null!==t;t=t._next)t._nextPrevious=t._next;for(t=this._changesHead;null!==t;t=t._nextChanged)t.previousValue=t.currentValue;for(t=this._additionsHead;null!=t;t=t._nextAdded)t.previousValue=t.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=this._removalsTail=null}},t.prototype._truncate=function(t,e){for(;null!==e;){null===t?this._mapHead=null:t._next=null;var n=e._next;this._addToRemovals(e),t=e,e=n}for(var r=this._removalsHead;null!==r;r=r._nextRemoved)r.previousValue=r.currentValue,r.currentValue=null,this._records["delete"](r.key)},t.prototype._maybeAddToChanges=function(t,e){c(e,t.currentValue)||(t.previousValue=t.currentValue,t.currentValue=e,this._addToChanges(t))},t.prototype._isInRemovals=function(t){return t===this._removalsHead||null!==t._nextRemoved||null!==t._prevRemoved},t.prototype._addToRemovals=function(t){null===this._removalsHead?this._removalsHead=this._removalsTail=t:(this._removalsTail._nextRemoved=t,t._prevRemoved=this._removalsTail,this._removalsTail=t)},t.prototype._removeFromSeq=function(t,e){var n=e._next;null===t?this._mapHead=n:t._next=n,e._next=null},t.prototype._removeFromRemovals=function(t){var e=t._prevRemoved,n=t._nextRemoved;null===e?this._removalsHead=n:e._nextRemoved=n,null===n?this._removalsTail=e:n._prevRemoved=e,t._prevRemoved=t._nextRemoved=null},t.prototype._addToAdditions=function(t){null===this._additionsHead?this._additionsHead=this._additionsTail=t:(this._additionsTail._nextAdded=t,this._additionsTail=t)},t.prototype._addToChanges=function(t){null===this._changesHead?this._changesHead=this._changesTail=t:(this._changesTail._nextChanged=t,this._changesTail=t)},t.prototype.toString=function(){var t,e=[],n=[],r=[],i=[],o=[];for(t=this._mapHead;null!==t;t=t._next)e.push(u(t));for(t=this._previousMapHead;null!==t;t=t._nextPrevious)n.push(u(t));for(t=this._changesHead;null!==t;t=t._nextChanged)r.push(u(t));for(t=this._additionsHead;null!==t;t=t._nextAdded)i.push(u(t));for(t=this._removalsHead;null!==t;t=t._nextRemoved)o.push(u(t));return"map: "+e.join(", ")+"\nprevious: "+n.join(", ")+"\nadditions: "+i.join(", ")+"\nchanges: "+r.join(", ")+"\nremovals: "+o.join(", ")+"\n"},t.prototype._forEach=function(t,e){t instanceof Map?t.forEach(e):Object.keys(t).forEach(function(n){return e(t[n],n)})},t}(),fr=function(){function t(t){this.key=t,this.previousValue=null,this.currentValue=null,this._nextPrevious=null,this._next=null,this._nextAdded=null,this._nextRemoved=null,this._prevRemoved=null,this._nextChanged=null}return t.prototype.toString=function(){return c(this.previousValue,this.currentValue)?u(this.key):u(this.key)+"["+u(this.previousValue)+"->"+u(this.currentValue)+"]"},t}(),dr=function(){function t(t){this.factories=t}return t.create=function(e,n){if(s(n)){var r=n.factories.slice();return e=e.concat(r),new t(e)}return new t(e)},t.extend=function(e){return{provide:t,useFactory:function(n){if(!n)throw new Error("Cannot extend IterableDiffers without a parent injector");return t.create(e,n)},deps:[[t,new be,new ve]]}},t.prototype.find=function(t){var e=this.factories.find(function(e){return e.supports(t)});if(s(e))return e;throw new Error("Cannot find a differ supporting object '"+t+"' of type '"+o(t)+"'")},t}(),yr=function(){function t(t){this.factories=t}return t.create=function(e,n){if(s(n)){var r=n.factories.slice();return e=e.concat(r),new t(e)}return new t(e)},t.extend=function(e){return{provide:t,useFactory:function(n){if(!n)throw new Error("Cannot extend KeyValueDiffers without a parent injector");return t.create(e,n)},deps:[[t,new be,new ve]]}},t.prototype.find=function(t){var e=this.factories.find(function(e){return e.supports(t)});if(s(e))return e;throw new Error("Cannot find a differ supporting object '"+t+"'")},t}(),mr={toString:function(){return"CD_INIT_VALUE"}},vr=function(){function t(t){this.wrapped=t}return t.wrap=function(e){return new t(e)},t}(),gr=function(){function t(){this.hasWrappedValue=!1}return t.prototype.unwrap=function(t){return t instanceof vr?(this.hasWrappedValue=!0,t.wrapped):t},t.prototype.reset=function(){this.hasWrappedValue=!1},t}(),_r=function(){function t(t,e){this.previousValue=t,this.currentValue=e}return t.prototype.isFirstChange=function(){return this.previousValue===mr},t}(),br=function(){function t(){}return t.prototype.markForCheck=function(){},t.prototype.detach=function(){},t.prototype.detectChanges=function(){},t.prototype.checkNoChanges=function(){},t.prototype.reattach=function(){},t}(),wr=[new lr],Er=[new or],Sr=new dr(Er),Cr=new yr(wr),xr=function(){function t(t,e,n,r,i,o){this.id=t,this.templateUrl=e,this.slotCount=n,this.encapsulation=r,this.styles=i,this.animations=o}return t}(),Tr=function(){function t(){}return t.prototype.injector=function(){},t.prototype.component=function(){},t.prototype.providerTokens=function(){},t.prototype.references=function(){},t.prototype.context=function(){},t.prototype.source=function(){},t}(),Pr=function(){function t(){}return t.prototype.selectRootElement=function(){},t.prototype.createElement=function(){},t.prototype.createViewRoot=function(){},t.prototype.createTemplateAnchor=function(){},t.prototype.createText=function(){},t.prototype.projectNodes=function(){},t.prototype.attachViewAfter=function(){},t.prototype.detachView=function(){},t.prototype.destroyView=function(){},t.prototype.listen=function(){},t.prototype.listenGlobal=function(){},t.prototype.setElementProperty=function(){},t.prototype.setElementAttribute=function(){},t.prototype.setBindingDebugInfo=function(){},t.prototype.setElementClass=function(){},t.prototype.setElementStyle=function(){},t.prototype.invokeElementMethod=function(){},t.prototype.setText=function(){},t.prototype.animate=function(){},t}(),Or=function(){function t(){}return t.prototype.renderComponent=function(){},t}(),Ar={};Ar.NONE=0,Ar.HTML=1,Ar.STYLE=2,Ar.SCRIPT=3,Ar.URL=4,Ar.RESOURCE_URL=5,Ar[Ar.NONE]="NONE",Ar[Ar.HTML]="HTML",Ar[Ar.STYLE]="STYLE",Ar[Ar.SCRIPT]="SCRIPT",Ar[Ar.URL]="URL",Ar[Ar.RESOURCE_URL]="RESOURCE_URL";var Mr,Rr,kr,Nr=function(){function t(){}return t.prototype.sanitize=function(){},t}(),Ir=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},Dr=function(t){function e(e,n){var r="Expression has changed after it was checked. Previous value: '"+e+"'. Current value: '"+n+"'.";e===mr&&(r+=" It seems like the view has been created after its parent and its children have been dirty checked. Has it been created in a change detection hook ?"),t.call(this,r)}return Ir(e,t),e}(un),jr=function(t){function e(e,n){t.call(this,"Error in "+n.source,e),this.context=n}return Ir(e,t),e}(cn),Lr=function(t){function e(e){t.call(this,"Attempt to use a destroyed view: "+e)}return Ir(e,t),e}(un),Vr=function(){function t(t,e,n){this._renderer=t,this.animationQueue=n,this.sanitizer=e}return t.prototype.renderComponent=function(t){return this._renderer.renderComponent(t)},t.decorators=[{type:ge}],t.ctorParameters=function(){return[{type:Or},{type:Nr},{type:ir}]},t}(),Fr=0,Ur=[],Br={},Hr=/([A-Z])/g,qr=function(){function t(){this.length=0}return t.prototype.get=function(){return void 0},t.prototype.set=function(){},t}(),zr=function(){function t(t,e,n){this.length=t,this._v0=e,this._v1=n}return t.prototype.get=function(t){switch(t){case 0:return this._v0;case 1:return this._v1;default:return void 0}},t.prototype.set=function(t,e){switch(t){case 0:this._v0=e;break;case 1:this._v1=e}},t}(),Wr=function(){function t(t,e,n,r,i){this.length=t,this._v0=e,this._v1=n,this._v2=r,this._v3=i}return t.prototype.get=function(t){switch(t){case 0:return this._v0;case 1:return this._v1;case 2:return this._v2;case 3:return this._v3;default:return void 0}},t.prototype.set=function(t,e){switch(t){case 0:this._v0=e;break;case 1:this._v1=e;break;case 2:this._v2=e;break;case 3:this._v3=e}},t}(),Gr=function(){function t(t,e,n,r,i,o,s,a,u){this.length=t,this._v0=e,this._v1=n,this._v2=r,this._v3=i,this._v4=o,this._v5=s,this._v6=a,this._v7=u}return t.prototype.get=function(t){switch(t){case 0:return this._v0;case 1:return this._v1;case 2:return this._v2;case 3:return this._v3;case 4:return this._v4;case 5:return this._v5;case 6:return this._v6;case 7:return this._v7;default:return void 0}},t.prototype.set=function(t,e){switch(t){case 0:this._v0=e;break;case 1:this._v1=e;break;case 2:this._v2=e;break;case 3:this._v3=e;break;case 4:this._v4=e;break;case 5:this._v5=e;break;case 6:this._v6=e;break;case 7:this._v7=e}},t}(),Kr=function(){function t(t,e,n,r,i,o,s,a,u,c,p,l,h,f,d,y,m){this.length=t,this._v0=e,this._v1=n,this._v2=r,this._v3=i,this._v4=o,this._v5=s,this._v6=a,this._v7=u,this._v8=c,this._v9=p,this._v10=l,this._v11=h,this._v12=f,this._v13=d,this._v14=y,this._v15=m}return t.prototype.get=function(t){switch(t){case 0:return this._v0;case 1:return this._v1;case 2:return this._v2;case 3:return this._v3;case 4:return this._v4;case 5:return this._v5;case 6:return this._v6;case 7:return this._v7;case 8:return this._v8;case 9:return this._v9;case 10:return this._v10;case 11:return this._v11;case 12:return this._v12;case 13:return this._v13;case 14:return this._v14;case 15:return this._v15;default:return void 0}},t.prototype.set=function(t,e){switch(t){case 0:this._v0=e;break;case 1:this._v1=e;break;case 2:this._v2=e;break;case 3:this._v3=e;break;case 4:this._v4=e;break;case 5:this._v5=e;break;case 6:this._v6=e;break;case 7:this._v7=e;break;case 8:this._v8=e;break;case 9:this._v9=e;break;case 10:this._v10=e;break;case 11:this._v11=e;break;case 12:this._v12=e;break;case 13:this._v13=e;break;case 14:this._v14=e;break;case 15:this._v15=e}},t}(),Xr=function(){function t(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];this.length=t,this._values=e}return t.prototype.get=function(t){return this._values[t]},t.prototype.set=function(t,e){this._values[t]=e},t}(),Qr=new qr,Yr=Object.freeze({ViewUtils:Vr,createRenderComponentType:Y,addToArray:$,interpolate:Z,inlineInterpolate:J,checkBinding:et,castByValue:nt,EMPTY_ARRAY:Ur,EMPTY_MAP:Br,pureProxy1:rt,pureProxy2:it,pureProxy3:ot,pureProxy4:st,pureProxy5:at,pureProxy6:ut,pureProxy7:ct,pureProxy8:pt,pureProxy9:lt,pureProxy10:ht,setBindingDebugInfoForChanges:ft,setBindingDebugInfo:dt,createRenderElement:mt,selectOrCreateRenderHostElement:vt,subscribeToRenderElement:gt,noop:bt,InlineArray2:zr,InlineArray4:Wr,InlineArray8:Gr,InlineArray16:Kr,InlineArrayDynamic:Xr,EMPTY_INLINE_ARRAY:Qr}),$r=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},Zr=function(){function t(){}return t.prototype.location=function(){},t.prototype.injector=function(){},t.prototype.instance=function(){},t.prototype.hostView=function(){},t.prototype.changeDetectorRef=function(){},t.prototype.componentType=function(){},t.prototype.destroy=function(){},t.prototype.onDestroy=function(){},t}(),Jr=function(t){function e(e,n,r,i){t.call(this),this._index=e,this._parentView=n,this._nativeElement=r,this._component=i}return $r(e,t),Object.defineProperty(e.prototype,"location",{get:function(){return new tr(this._nativeElement)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"injector",{get:function(){return this._parentView.injector(this._index)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"instance",{get:function(){return this._component},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"hostView",{get:function(){return this._parentView.ref},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"changeDetectorRef",{get:function(){return this._parentView.ref},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"componentType",{get:function(){return this._component.constructor},enumerable:!0,configurable:!0}),e.prototype.destroy=function(){this._parentView.detachAndDestroy()},e.prototype.onDestroy=function(t){this.hostView.onDestroy(t)},e}(Zr),ti=function(){function t(t,e,n){this.selector=t,this._viewClass=e,this._componentType=n}return Object.defineProperty(t.prototype,"componentType",{get:function(){return this._componentType},enumerable:!0,configurable:!0}),t.prototype.create=function(t,e,n){void 0===e&&(e=null),void 0===n&&(n=null);var r=t.get(Vr);e||(e=[]);var i=new this._viewClass(r,null,null,null);return i.createHostView(n,t,e)},t}(),ei=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},ni=function(t){function e(e){t.call(this,"No component factory found for "+u(e)+". Did you add it to @NgModule.entryComponents?"),this.component=e}return ei(e,t),e}(un),ri=function(){function t(){}return t.prototype.resolveComponentFactory=function(t){throw new ni(t)},t}(),ii=function(){function t(){}return t.prototype.resolveComponentFactory=function(){},t.NULL=new ri,t}(),oi=function(){function t(t,e){this._parent=e,this._factories=new Map;for(var n=0;n<t.length;n++){var r=t[n];this._factories.set(r.componentType,r)}}return t.prototype.resolveComponentFactory=function(t){var e=this._factories.get(t);return e||(e=this._parent.resolveComponentFactory(t)),e},t}(),si=Et(),ai=si?St:function(){return Pt},ui=si?Ct:function(t,e){return e},ci=si?xt:function(){return null},pi=si?Tt:function(){return null},li=function(){function t(t){this._ngZone=t,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this._watchAngularEvents()}return t.prototype._watchAngularEvents=function(){var t=this;this._ngZone.onUnstable.subscribe({next:function(){t._didWork=!0,t._isZoneStable=!1}}),this._ngZone.runOutsideAngular(function(){t._ngZone.onStable.subscribe({next:function(){rr.assertNotInAngularZone(),r(function(){t._isZoneStable=!0,t._runCallbacksIfReady()})}})})},t.prototype.increasePendingRequestCount=function(){return this._pendingCount+=1,this._didWork=!0,this._pendingCount},t.prototype.decreasePendingRequestCount=function(){if(this._pendingCount-=1,this._pendingCount<0)throw new Error("pending async requests below zero");return this._runCallbacksIfReady(),this._pendingCount},t.prototype.isStable=function(){return this._isZoneStable&&0==this._pendingCount&&!this._ngZone.hasPendingMacrotasks},t.prototype._runCallbacksIfReady=function(){var t=this;this.isStable()?r(function(){for(;0!==t._callbacks.length;)t._callbacks.pop()(t._didWork);t._didWork=!1}):this._didWork=!0},t.prototype.whenStable=function(t){this._callbacks.push(t),this._runCallbacksIfReady()},t.prototype.getPendingRequestCount=function(){return this._pendingCount},t.prototype.findBindings=function(){return[]},t.prototype.findProviders=function(){return[]},t.decorators=[{type:ge}],t.ctorParameters=function(){return[{type:rr}]},t}(),hi=function(){function t(){this._applications=new Map,di.addToWindow(this)}return t.prototype.registerApplication=function(t,e){this._applications.set(t,e)},t.prototype.getTestability=function(t){return this._applications.get(t)},t.prototype.getAllTestabilities=function(){return Array.from(this._applications.values())},t.prototype.getAllRootElements=function(){return Array.from(this._applications.keys())},t.prototype.findTestabilityInTree=function(t,e){return void 0===e&&(e=!0),di.findTestabilityInTree(this,t,e)},t.decorators=[{type:ge}],t.ctorParameters=function(){return[]},t}(),fi=function(){function t(){}return t.prototype.addToWindow=function(){},t.prototype.findTestabilityInTree=function(){return null},t}(),di=new fi,yi=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},mi=!0,vi=!1,gi=function(){function t(t,e){this.name=t,this.token=e}return t}(),_i=function(){function t(){}return t.prototype.bootstrapModuleFactory=function(){},t.prototype.bootstrapModule=function(){},t.prototype.onDestroy=function(){},t.prototype.injector=function(){},t.prototype.destroy=function(){},t.prototype.destroyed=function(){},t}(),bi=function(t){function e(e){t.call(this),this._injector=e,this._modules=[],this._destroyListeners=[],this._destroyed=!1}return yi(e,t),e.prototype.onDestroy=function(t){this._destroyListeners.push(t)},Object.defineProperty(e.prototype,"injector",{get:function(){return this._injector},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"destroyed",{get:function(){return this._destroyed},enumerable:!0,configurable:!0}),e.prototype.destroy=function(){if(this._destroyed)throw new Error("The platform has already been destroyed!");this._modules.slice().forEach(function(t){return t.destroy()}),this._destroyListeners.forEach(function(t){return t()}),this._destroyed=!0},e.prototype.bootstrapModuleFactory=function(t){return this._bootstrapModuleFactoryWithZone(t,null)},e.prototype._bootstrapModuleFactoryWithZone=function(t,e){var n=this;return e||(e=new rr({enableLongStackTrace:Mt()})),e.run(function(){var r=In.resolveAndCreate([{provide:rr,useValue:e}],n.injector),i=t.create(r),o=i.injector.get(Ln,null);if(!o)throw new Error("No ErrorHandler. Is platform module (BrowserModule) included?");return i.onDestroy(function(){return Fn.remove(n._modules,i)}),e.onError.subscribe({next:function(t){o.handleError(t)}}),jt(o,function(){var t=i.injector.get(Bn);return t.donePromise.then(function(){return n._moduleDoBootstrap(i),i})})})},e.prototype.bootstrapModule=function(t,e){return void 0===e&&(e=[]),this._bootstrapModuleWithZone(t,e,null)},e.prototype._bootstrapModuleWithZone=function(t,e,n,r){var i=this;void 0===e&&(e=[]);var o=this.injector.get(Jn),s=o.createCompiler(Array.isArray(e)?e:[e]);return r?s.compileModuleAndAllComponentsAsync(t).then(function(t){var e=t.ngModuleFactory,o=t.componentFactories;return r(o),i._bootstrapModuleFactoryWithZone(e,n)}):s.compileModuleAsync(t).then(function(t){return i._bootstrapModuleFactoryWithZone(t,n)})},e.prototype._moduleDoBootstrap=function(t){var e=t.injector.get(wi);if(t.bootstrapFactories.length>0)t.bootstrapFactories.forEach(function(t){return e.bootstrap(t)});else{if(!t.instance.ngDoBootstrap)throw new Error("The module "+u(t.instance.constructor)+' was bootstrapped, but it does not declare "@NgModule.bootstrap" components nor a "ngDoBootstrap" method. Please define one of these.');t.instance.ngDoBootstrap(e)}this._modules.push(t)},e.decorators=[{type:ge}],e.ctorParameters=function(){return[{type:sn}]},e}(_i),wi=function(){function t(){}return t.prototype.bootstrap=function(){},t.prototype.tick=function(){},t.prototype.componentTypes=function(){},t.prototype.components=function(){},t.prototype.attachView=function(){},t.prototype.detachView=function(){},t.prototype.viewCount=function(){},t}(),Ei=function(t){function e(e,n,r,i,o,s,a,u){var c=this;t.call(this),this._zone=e,this._console=n,this._injector=r,this._exceptionHandler=i,this._componentFactoryResolver=o,this._initStatus=s,this._testabilityRegistry=a,this._testability=u,this._bootstrapListeners=[],this._rootComponents=[],this._rootComponentTypes=[],this._views=[],this._runningTick=!1,this._enforceNoNewChanges=!1,this._enforceNoNewChanges=Mt(),this._zone.onMicrotaskEmpty.subscribe({next:function(){c._zone.run(function(){c.tick()})}})}return yi(e,t),e.prototype.attachView=function(t){var e=t.internalView;this._views.push(e),e.attachToAppRef(this)},e.prototype.detachView=function(t){var e=t.internalView;Fn.remove(this._views,e),e.detach()},e.prototype.bootstrap=function(t){var e=this;if(!this._initStatus.done)throw new Error("Cannot bootstrap as there are still asynchronous initializers running. Bootstrap components in the `ngDoBootstrap` method of the root module.");var n;n=t instanceof ti?t:this._componentFactoryResolver.resolveComponentFactory(t),this._rootComponentTypes.push(n.componentType);var r=n.create(this._injector,[],n.selector);r.onDestroy(function(){e._unloadComponent(r)});var i=r.injector.get(li,null);return i&&r.injector.get(hi).registerApplication(r.location.nativeElement,i),this._loadComponent(r),Mt()&&this._console.log("Angular is running in the development mode. Call enableProdMode() to enable the production mode."),r},e.prototype._loadComponent=function(t){this.attachView(t.hostView),this.tick(),this._rootComponents.push(t);var e=this._injector.get(Wn,[]).concat(this._bootstrapListeners);e.forEach(function(e){return e(t)})},e.prototype._unloadComponent=function(t){this.detachView(t.hostView),Fn.remove(this._rootComponents,t)},e.prototype.tick=function(){if(this._runningTick)throw new Error("ApplicationRef.tick is called recursively");var t=e._tickScope();try{this._runningTick=!0,this._views.forEach(function(t){return t.ref.detectChanges()}),this._enforceNoNewChanges&&this._views.forEach(function(t){return t.ref.checkNoChanges()})}finally{this._runningTick=!1,ui(t)}},e.prototype.ngOnDestroy=function(){this._views.slice().forEach(function(t){return t.destroy()})},Object.defineProperty(e.prototype,"viewCount",{get:function(){return this._views.length},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"componentTypes",{get:function(){return this._rootComponentTypes},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"components",{get:function(){return this._rootComponents},enumerable:!0,configurable:!0}),e._tickScope=ai("ApplicationRef#tick()"),e.decorators=[{type:ge}],e.ctorParameters=function(){return[{type:rr},{type:Kn},{type:sn},{type:Ln},{type:ii},{type:Bn},{type:hi,decorators:[{type:ve}]},{type:li,decorators:[{type:ve}]}]},e}(wi),Si=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},Ci=function(){function t(){}return t.prototype.injector=function(){},t.prototype.componentFactoryResolver=function(){},t.prototype.instance=function(){},t.prototype.destroy=function(){},t.prototype.onDestroy=function(){},t}(),xi=function(){function t(t,e){this._injectorClass=t,this._moduleType=e}return Object.defineProperty(t.prototype,"moduleType",{get:function(){return this._moduleType},enumerable:!0,configurable:!0}),t.prototype.create=function(t){t||(t=sn.NULL);var e=new this._injectorClass(t);return e.create(),e},t}(),Ti=new Object,Pi=function(t){function e(e,n,r){t.call(this,n,e.get(ii,ii.NULL)),this.parent=e,this.bootstrapFactories=r,this._destroyListeners=[],this._destroyed=!1}return Si(e,t),e.prototype.create=function(){this.instance=this.createInternal()},e.prototype.createInternal=function(){},e.prototype.get=function(t,e){if(void 0===e&&(e=rn),t===sn||t===ii)return this;var n=this.getInternal(t,Ti);return n===Ti?this.parent.get(t,e):n},e.prototype.getInternal=function(){},Object.defineProperty(e.prototype,"injector",{get:function(){return this},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"componentFactoryResolver",{get:function(){return this},enumerable:!0,configurable:!0}),e.prototype.destroy=function(){if(this._destroyed)throw new Error("The ng module "+u(this.instance.constructor)+" has already been destroyed.");this._destroyed=!0,this.destroyInternal(),this._destroyListeners.forEach(function(t){return t()})},e.prototype.onDestroy=function(t){this._destroyListeners.push(t)},e.prototype.destroyInternal=function(){},e}(oi),Oi=function(){function t(){}return t.prototype.load=function(){},t}(),Ai=new Map,Mi=function(){function t(){this._dirty=!0,this._results=[],this._emitter=new nr}return Object.defineProperty(t.prototype,"changes",{get:function(){return this._emitter},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"length",{get:function(){return this._results.length},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"first",{get:function(){return this._results[0]},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"last",{get:function(){return this._results[this.length-1]},enumerable:!0,configurable:!0}),t.prototype.map=function(t){return this._results.map(t)},t.prototype.filter=function(t){return this._results.filter(t)},t.prototype.find=function(t){return this._results.find(t)},t.prototype.reduce=function(t,e){return this._results.reduce(t,e)},t.prototype.forEach=function(t){this._results.forEach(t)},t.prototype.some=function(t){return this._results.some(t)},t.prototype.toArray=function(){return this._results.slice()},t.prototype[f()]=function(){return this._results[f()]()},t.prototype.toString=function(){return this._results.toString()},t.prototype.reset=function(t){this._results=Fn.flatten(t),this._dirty=!1},t.prototype.notifyOnChanges=function(){this._emitter.emit(this)},t.prototype.setDirty=function(){this._dirty=!0},Object.defineProperty(t.prototype,"dirty",{get:function(){return this._dirty},enumerable:!0,configurable:!0}),t}(),Ri="#",ki="NgFactory",Ni=function(){function t(){}return t}(),Ii={factoryPathPrefix:"",factoryPathSuffix:".ngfactory"},Di=function(){function t(t,e){this._compiler=t,this._config=e||Ii}return t.prototype.load=function(t){var e=this._compiler instanceof $n;return e?this.loadFactory(t):this.loadAndCompile(t)},t.prototype.loadAndCompile=function(t){var e=this,n=t.split(Ri),r=n[0],i=n[1];return void 0===i&&(i="default"),System["import"](r).then(function(t){return t[i]}).then(function(t){return Ft(t,r,i)}).then(function(t){return e._compiler.compileModuleAsync(t)})},t.prototype.loadFactory=function(t){var e=t.split(Ri),n=e[0],r=e[1],i=ki;return void 0===r&&(r="default",i=""),System["import"](this._config.factoryPathPrefix+n+this._config.factoryPathSuffix).then(function(t){return t[r+i]}).then(function(t){return Ft(t,n,r)})},t.decorators=[{type:ge}],t.ctorParameters=function(){return[{type:$n},{type:Ni,decorators:[{type:ve}]}]},t}(),ji=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},Li=function(){function t(){}return t.prototype.elementRef=function(){},t.prototype.createEmbeddedView=function(){},t}(),Vi=function(t){function e(e,n,r){t.call(this),this._parentView=e,this._nodeIndex=n,this._nativeElement=r}return ji(e,t),e.prototype.createEmbeddedView=function(t){var e=this._parentView.createEmbeddedViewInternal(this._nodeIndex);return e.create(t||{}),e.ref},Object.defineProperty(e.prototype,"elementRef",{get:function(){return new tr(this._nativeElement)},enumerable:!0,configurable:!0}),e}(Li),Fi=function(){function t(){}return t.prototype.element=function(){},t.prototype.injector=function(){},t.prototype.parentInjector=function(){},t.prototype.clear=function(){},t.prototype.get=function(){},t.prototype.length=function(){},t.prototype.createEmbeddedView=function(){},t.prototype.createComponent=function(){},t.prototype.insert=function(){},t.prototype.move=function(){},t.prototype.indexOf=function(){},t.prototype.remove=function(){},t.prototype.detach=function(){},t}(),Ui=function(){function t(t){this._element=t,this._createComponentInContainerScope=ai("ViewContainerRef#createComponent()"),this._insertScope=ai("ViewContainerRef#insert()"),this._removeScope=ai("ViewContainerRef#remove()"),this._detachScope=ai("ViewContainerRef#detach()")}return t.prototype.get=function(t){return this._element.nestedViews[t].ref},Object.defineProperty(t.prototype,"length",{get:function(){var t=this._element.nestedViews;return s(t)?t.length:0},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"element",{get:function(){return this._element.elementRef},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"injector",{get:function(){return this._element.injector},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"parentInjector",{get:function(){return this._element.parentInjector},enumerable:!0,configurable:!0}),t.prototype.createEmbeddedView=function(t,e,n){void 0===e&&(e=null),void 0===n&&(n=-1);var r=t.createEmbeddedView(e);return this.insert(r,n),r},t.prototype.createComponent=function(t,e,n,r){void 0===e&&(e=-1),void 0===n&&(n=null),void 0===r&&(r=null);var i=this._createComponentInContainerScope(),o=n||this._element.parentInjector,s=t.create(o,r);return this.insert(s.hostView,e),ui(i,s)},t.prototype.insert=function(t,e){void 0===e&&(e=-1);var n=this._insertScope();-1==e&&(e=this.length);var r=t;return this._element.attachView(r.internalView,e),ui(n,r)},t.prototype.move=function(t,e){var n=this._insertScope();if(-1!=e){var r=t;return this._element.moveView(r.internalView,e),ui(n,r)}},t.prototype.indexOf=function(t){return this.length?this._element.nestedViews.indexOf(t.internalView):-1},t.prototype.remove=function(t){void 0===t&&(t=-1);var e=this._removeScope();-1==t&&(t=this.length-1);var n=this._element.detachView(t);n.destroy(),ui(e)},t.prototype.detach=function(t){void 0===t&&(t=-1);var e=this._detachScope();-1==t&&(t=this.length-1);var n=this._element.detachView(t);return ui(e,n.ref)},t.prototype.clear=function(){for(var t=this.length-1;t>=0;t--)this.remove(t)},t}(),Bi=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},Hi=function(t){function e(){t.apply(this,arguments)}return Bi(e,t),e.prototype.destroy=function(){},e.prototype.destroyed=function(){},e.prototype.onDestroy=function(){},e}(br),qi=function(t){function e(){t.apply(this,arguments)}return Bi(e,t),e.prototype.context=function(){},e.prototype.rootNodes=function(){},e}(Hi),zi=function(){function t(t,e){this._view=t,this.animationQueue=e,this._view=t,this._originalMode=this._view.cdMode}return Object.defineProperty(t.prototype,"internalView",{get:function(){return this._view},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"rootNodes",{get:function(){return this._view.flatRootNodes},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"context",{get:function(){return this._view.context},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"destroyed",{get:function(){return this._view.destroyed},enumerable:!0,configurable:!0}),t.prototype.markForCheck=function(){this._view.markPathToRootAsCheckOnce()},t.prototype.detach=function(){this._view.cdMode=Re.Detached},t.prototype.detectChanges=function(){this._view.detectChanges(!1),this.animationQueue.flush()},t.prototype.checkNoChanges=function(){this._view.detectChanges(!0)},t.prototype.reattach=function(){this._view.cdMode=this._originalMode,this.markForCheck()},t.prototype.onDestroy=function(t){this._view.disposables||(this._view.disposables=[]),this._view.disposables.push(t)},t.prototype.destroy=function(){this._view.detachAndDestroy()},t}(),Wi=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},Gi=function(){function t(t,e){this.name=t,this.callback=e}return t}(),Ki=function(){function t(t,e,n){this._debugInfo=n,this.nativeNode=t,e&&e instanceof Xi?e.addChild(this):this.parent=null,this.listeners=[]}return Object.defineProperty(t.prototype,"injector",{get:function(){return this._debugInfo?this._debugInfo.injector:null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"componentInstance",{get:function(){return this._debugInfo?this._debugInfo.component:null},enumerable:!0,configurable:!0}), +Object.defineProperty(t.prototype,"context",{get:function(){return this._debugInfo?this._debugInfo.context:null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"references",{get:function(){return this._debugInfo?this._debugInfo.references:null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"providerTokens",{get:function(){return this._debugInfo?this._debugInfo.providerTokens:null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"source",{get:function(){return this._debugInfo?this._debugInfo.source:null},enumerable:!0,configurable:!0}),t}(),Xi=function(t){function e(e,n,r){t.call(this,e,n,r),this.properties={},this.attributes={},this.classes={},this.styles={},this.childNodes=[],this.nativeElement=e}return Wi(e,t),e.prototype.addChild=function(t){t&&(this.childNodes.push(t),t.parent=this)},e.prototype.removeChild=function(t){var e=this.childNodes.indexOf(t);-1!==e&&(t.parent=null,this.childNodes.splice(e,1))},e.prototype.insertChildrenAfter=function(t,e){var n=this.childNodes.indexOf(t);if(-1!==n){var r=this.childNodes.slice(0,n+1),i=this.childNodes.slice(n+1);this.childNodes=r.concat(e,i);for(var o=0;o<e.length;++o){var s=e[o];s.parent&&s.parent.removeChild(s),s.parent=this}}},e.prototype.query=function(t){var e=this.queryAll(t);return e[0]||null},e.prototype.queryAll=function(t){var e=[];return Bt(this,t,e),e},e.prototype.queryAllNodes=function(t){var e=[];return Ht(this,t,e),e},Object.defineProperty(e.prototype,"children",{get:function(){return this.childNodes.filter(function(t){return t instanceof e})},enumerable:!0,configurable:!0}),e.prototype.triggerEventHandler=function(t,e){this.listeners.forEach(function(n){n.name==t&&n.callback(e)})},e}(Ki),Qi=new Map,Yi=[bi,{provide:_i,useExisting:bi},{provide:Pn,useFactory:Gt,deps:[]},{provide:xn,useExisting:Pn},hi,Kn],$i=kt(null,"core",Yi),Zi=new Ee("LocaleId"),Ji=new Ee("Translations"),to=new Ee("TranslationsFormat"),eo=function(){function t(){}return t.decorators=[{type:$e,args:[{providers:[Ei,{provide:wi,useExisting:Ei},Bn,$n,qn,Vr,ir,{provide:dr,useFactory:Kt},{provide:yr,useFactory:Xt},{provide:Zi,useFactory:Qt,deps:[[new me(Zi),new ve,new be]]}]}]}],t.ctorParameters=function(){return[]},t}(),no="true",ro="*",io="*",oo="void",so=function(){function t(t){var e=this;this._players=t,this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this.parentPlayer=null;var n=0,i=this._players.length;0==i?r(function(){return e._onFinish()}):this._players.forEach(function(t){t.parentPlayer=e,t.onDone(function(){++n>=i&&e._onFinish()})})}return t.prototype._onFinish=function(){this._finished||(this._finished=!0,this._onDoneFns.forEach(function(t){return t()}),this._onDoneFns=[])},t.prototype.init=function(){this._players.forEach(function(t){return t.init()})},t.prototype.onStart=function(t){this._onStartFns.push(t)},t.prototype.onDone=function(t){this._onDoneFns.push(t)},t.prototype.hasStarted=function(){return this._started},t.prototype.play=function(){s(this.parentPlayer)||this.init(),this.hasStarted()||(this._onStartFns.forEach(function(t){return t()}),this._onStartFns=[],this._started=!0),this._players.forEach(function(t){return t.play()})},t.prototype.pause=function(){this._players.forEach(function(t){return t.pause()})},t.prototype.restart=function(){this._players.forEach(function(t){return t.restart()})},t.prototype.finish=function(){this._onFinish(),this._players.forEach(function(t){return t.finish()})},t.prototype.destroy=function(){this._destroyed||(this._onFinish(),this._players.forEach(function(t){return t.destroy()}),this._destroyed=!0)},t.prototype.reset=function(){this._players.forEach(function(t){return t.reset()}),this._destroyed=!1,this._finished=!1,this._started=!1},t.prototype.setPosition=function(t){this._players.forEach(function(e){e.setPosition(t)})},t.prototype.getPosition=function(){var t=0;return this._players.forEach(function(e){var n=e.getPosition();t=Math.min(n,t)}),t},Object.defineProperty(t.prototype,"players",{get:function(){return this._players},enumerable:!0,configurable:!0}),t}(),ao=function(){function t(t,e){this.offset=t,this.styles=e}return t}(),uo=function(){function t(){}return t.prototype.onDone=function(){},t.prototype.onStart=function(){},t.prototype.init=function(){},t.prototype.hasStarted=function(){},t.prototype.play=function(){},t.prototype.pause=function(){},t.prototype.restart=function(){},t.prototype.finish=function(){},t.prototype.destroy=function(){},t.prototype.reset=function(){},t.prototype.setPosition=function(){},t.prototype.getPosition=function(){},Object.defineProperty(t.prototype,"parentPlayer",{get:function(){throw new Error("NOT IMPLEMENTED: Base Class")},set:function(){throw new Error("NOT IMPLEMENTED: Base Class")},enumerable:!0,configurable:!0}),t}(),co=function(){function t(){var t=this;this._onDoneFns=[],this._onStartFns=[],this._started=!1,this.parentPlayer=null,r(function(){return t._onFinish()})}return t.prototype._onFinish=function(){this._onDoneFns.forEach(function(t){return t()}),this._onDoneFns=[]},t.prototype.onStart=function(t){this._onStartFns.push(t)},t.prototype.onDone=function(t){this._onDoneFns.push(t)},t.prototype.hasStarted=function(){return this._started},t.prototype.init=function(){},t.prototype.play=function(){this.hasStarted()||(this._onStartFns.forEach(function(t){return t()}),this._onStartFns=[]),this._started=!0},t.prototype.pause=function(){},t.prototype.restart=function(){},t.prototype.finish=function(){this._onFinish()},t.prototype.destroy=function(){},t.prototype.reset=function(){},t.prototype.setPosition=function(){},t.prototype.getPosition=function(){return 0},t}(),po=function(){function t(t){var e=this;this._players=t,this._currentIndex=0,this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this.parentPlayer=null,this._players.forEach(function(t){t.parentPlayer=e}),this._onNext(!1)}return t.prototype._onNext=function(t){var e=this;if(!this._finished)if(0==this._players.length)this._activePlayer=new co,r(function(){return e._onFinish()});else if(this._currentIndex>=this._players.length)this._activePlayer=new co,this._onFinish();else{var n=this._players[this._currentIndex++];n.onDone(function(){return e._onNext(!0)}),this._activePlayer=n,t&&n.play()}},t.prototype._onFinish=function(){this._finished||(this._finished=!0,this._onDoneFns.forEach(function(t){return t()}),this._onDoneFns=[])},t.prototype.init=function(){this._players.forEach(function(t){return t.init()})},t.prototype.onStart=function(t){this._onStartFns.push(t)},t.prototype.onDone=function(t){this._onDoneFns.push(t)},t.prototype.hasStarted=function(){return this._started},t.prototype.play=function(){s(this.parentPlayer)||this.init(),this.hasStarted()||(this._onStartFns.forEach(function(t){return t()}),this._onStartFns=[],this._started=!0),this._activePlayer.play()},t.prototype.pause=function(){this._activePlayer.pause()},t.prototype.restart=function(){this.reset(),this._players.length>0&&this._players[0].restart()},t.prototype.reset=function(){this._players.forEach(function(t){return t.reset()}),this._destroyed=!1,this._finished=!1,this._started=!1},t.prototype.finish=function(){this._onFinish(),this._players.forEach(function(t){return t.finish()})},t.prototype.destroy=function(){this._destroyed||(this._onFinish(),this._players.forEach(function(t){return t.destroy()}),this._destroyed=!0,this._activePlayer=new co)},t.prototype.setPosition=function(t){this._players[0].setPosition(t)},t.prototype.getPosition=function(){return this._players[0].getPosition()},Object.defineProperty(t.prototype,"players",{get:function(){return this._players},enumerable:!0,configurable:!0}),t}(),lo=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},ho="*",fo=function(){function t(t,e){this.name=t,this.definitions=e}return t}(),yo=function(){function t(){}return t}(),mo=function(t){function e(e,n){t.call(this),this.stateNameExpr=e,this.styles=n}return lo(e,t),e}(yo),vo=function(t){function e(e,n){t.call(this),this.stateChangeExpr=e,this.steps=n}return lo(e,t),e}(yo),go=function(){function t(){}return t}(),_o=function(t){function e(e){t.call(this),this.steps=e}return lo(e,t),e}(go),bo=function(t){function e(e,n){void 0===n&&(n=null),t.call(this),this.styles=e,this.offset=n}return lo(e,t),e}(go),wo=function(t){function e(e,n){t.call(this),this.timings=e,this.styles=n}return lo(e,t),e}(go),Eo=function(t){function e(){t.call(this)}return lo(e,t),Object.defineProperty(e.prototype,"steps",{get:function(){throw new Error("NOT IMPLEMENTED: Base Class")},enumerable:!0,configurable:!0}),e}(go),So=function(t){function e(e){t.call(this),this._steps=e}return lo(e,t),Object.defineProperty(e.prototype,"steps",{get:function(){return this._steps},enumerable:!0,configurable:!0}),e}(Eo),Co=function(t){function e(e){t.call(this),this._steps=e}return lo(e,t),Object.defineProperty(e.prototype,"steps",{get:function(){return this._steps},enumerable:!0,configurable:!0}),e}(Eo),xo=function(){function t(t){this.styles=t}return t}(),To=function(){function t(t){var e=t.fromState,n=t.toState,r=t.totalTime,i=t.phaseName;this.fromState=e,this.toState=n,this.totalTime=r,this.phaseName=i}return t}(),Po=function(){function t(t,e,n,r){this._player=t,this._fromState=e,this._toState=n,this._totalTime=r}return t.prototype._createEvent=function(t){return new To({fromState:this._fromState,toState:this._toState,totalTime:this._totalTime,phaseName:t})},t.prototype.onStart=function(t){var e=this,n=Zone.current.wrap(function(){return t(e._createEvent("start"))},"player.onStart");this._player.onStart(n)},t.prototype.onDone=function(t){var e=this,n=Zone.current.wrap(function(){return t(e._createEvent("done"))},"player.onDone");this._player.onDone(n)},t}(),Oo=function(){function t(t){this._delegate=t}return t.prototype.renderComponent=function(t){return new Ao(this._delegate.renderComponent(t))},t}(),Ao=function(){function t(t){this._delegate=t}return t.prototype.selectRootElement=function(t,e){var n=this._delegate.selectRootElement(t,e),r=new Xi(n,null,e);return zt(r),n},t.prototype.createElement=function(t,e,n){var r=this._delegate.createElement(t,e,n),i=new Xi(r,qt(t),n);return i.name=e,zt(i),r},t.prototype.createViewRoot=function(t){return this._delegate.createViewRoot(t)},t.prototype.createTemplateAnchor=function(t,e){var n=this._delegate.createTemplateAnchor(t,e),r=new Ki(n,qt(t),e);return zt(r),n},t.prototype.createText=function(t,e,n){var r=this._delegate.createText(t,e,n),i=new Ki(r,qt(t),n);return zt(i),r},t.prototype.projectNodes=function(t,e){var n=qt(t);if(s(n)&&n instanceof Xi){var r=n;e.forEach(function(t){r.addChild(qt(t))})}this._delegate.projectNodes(t,e)},t.prototype.attachViewAfter=function(t,e){var n=qt(t);if(s(n)){var r=n.parent;if(e.length>0&&s(r)){var i=[];e.forEach(function(t){return i.push(qt(t))}),r.insertChildrenAfter(n,i)}}this._delegate.attachViewAfter(t,e)},t.prototype.detachView=function(t){t.forEach(function(t){var e=qt(t);s(e)&&s(e.parent)&&e.parent.removeChild(e)}),this._delegate.detachView(t)},t.prototype.destroyView=function(t,e){e=e||[],e.forEach(function(t){Wt(qt(t))}),this._delegate.destroyView(t,e)},t.prototype.listen=function(t,e,n){var r=qt(t);return s(r)&&r.listeners.push(new Gi(e,n)),this._delegate.listen(t,e,n)},t.prototype.listenGlobal=function(t,e,n){return this._delegate.listenGlobal(t,e,n)},t.prototype.setElementProperty=function(t,e,n){var r=qt(t);s(r)&&r instanceof Xi&&(r.properties[e]=n),this._delegate.setElementProperty(t,e,n)},t.prototype.setElementAttribute=function(t,e,n){var r=qt(t);s(r)&&r instanceof Xi&&(r.attributes[e]=n),this._delegate.setElementAttribute(t,e,n)},t.prototype.setBindingDebugInfo=function(t,e,n){this._delegate.setBindingDebugInfo(t,e,n)},t.prototype.setElementClass=function(t,e,n){var r=qt(t);s(r)&&r instanceof Xi&&(r.classes[e]=n),this._delegate.setElementClass(t,e,n)},t.prototype.setElementStyle=function(t,e,n){var r=qt(t);s(r)&&r instanceof Xi&&(r.styles[e]=n),this._delegate.setElementStyle(t,e,n)},t.prototype.invokeElementMethod=function(t,e,n){this._delegate.invokeElementMethod(t,e,n)},t.prototype.setText=function(t,e){this._delegate.setText(t,e)},t.prototype.animate=function(t,e,n,r,i,o,s){return void 0===s&&(s=[]),this._delegate.animate(t,e,n,r,i,o,s)},t}(),Mo={};Mo.HOST=0,Mo.COMPONENT=1,Mo.EMBEDDED=2,Mo[Mo.HOST]="HOST",Mo[Mo.COMPONENT]="COMPONENT",Mo[Mo.EMBEDDED]="EMBEDDED";var Ro=function(){function t(t,e,n){this.providerTokens=t,this.componentToken=e,this.refTokens=n}return t}(),ko=function(){function t(t,e,n,r){this._view=t,this._nodeIndex=e,this._tplRow=n,this._tplCol=r}return Object.defineProperty(t.prototype,"_staticNodeInfo",{get:function(){return s(this._nodeIndex)?this._view.staticNodeDebugInfos[this._nodeIndex]:null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"context",{get:function(){return this._view.context},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"component",{get:function(){var t=this._staticNodeInfo;return s(t)&&s(t.componentToken)?this.injector.get(t.componentToken):null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"componentRenderElement",{get:function(){for(var t=this._view;s(t.parentView)&&t.type!==Mo.COMPONENT;)t=t.parentView;return t.parentElement},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"injector",{get:function(){return this._view.injector(this._nodeIndex)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"renderNode",{get:function(){return s(this._nodeIndex)&&this._view.allNodes?this._view.allNodes[this._nodeIndex]:null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"providerTokens",{get:function(){var t=this._staticNodeInfo;return s(t)?t.providerTokens:null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"source",{get:function(){return this._view.componentType.templateUrl+":"+this._tplRow+":"+this._tplCol},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"references",{get:function(){var t=this,e={},n=this._staticNodeInfo;if(s(n)){var r=n.refTokens;Object.keys(r).forEach(function(n){var i,o=r[n];i=a(o)?t._view.allNodes?t._view.allNodes[t._nodeIndex]:null:t._view.injectorGet(o,t._nodeIndex,null),e[n]=i})}return e},enumerable:!0,configurable:!0}),t}(),No=function(){function t(){this._map=new Map,this._allPlayers=[]}return t.prototype.find=function(t,e){var n=this._map.get(t);return s(n)?n[e]:void 0},t.prototype.findAllPlayersByElement=function(t){var e=this._map.get(t);return e?Object.keys(e).map(function(t){return e[t]}):[]},t.prototype.set=function(t,e,n){var r=this._map.get(t);s(r)||(r={});var i=r[e];s(i)&&this.remove(t,e),r[e]=n,this._allPlayers.push(n),this._map.set(t,r)},t.prototype.getAllPlayers=function(){return this._allPlayers},t.prototype.remove=function(t,e,n){void 0===n&&(n=null);var r=this._map.get(t);if(r){var i=r[e];if(!n||i===n){delete r[e];var o=this._allPlayers.indexOf(i);this._allPlayers.splice(o,1),0===Object.keys(r).length&&this._map["delete"](t)}}},t}(),Io=function(){function t(t){this._animationQueue=t,this._players=new No}return t.prototype.onAllActiveAnimationsDone=function(t){var e=this._players.getAllPlayers();e.length?new so(e).onDone(function(){return t()}):t()},t.prototype.queueAnimation=function(t,e,n){var r=this;this._animationQueue.enqueue(n),this._players.set(t,e,n),n.onDone(function(){return r._players.remove(t,e,n)})},t.prototype.getAnimationPlayers=function(t,e){void 0===e&&(e=null);var n=[];if(e){var r=this._players.find(t,e);r&&pe(r,n)}else this._players.findAllPlayersByElement(t).forEach(function(t){return pe(t,n)});return n},t}(),Do=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},jo=function(t){function e(e,n){t.call(this),this._view=e,this._nodeIndex=n}return Do(e,t),e.prototype.get=function(t,e){return void 0===e&&(e=rn),this._view.injectorGet(t,this._nodeIndex,e)},e}(sn),Lo=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},Vo=ai("AppView#check(ascii id)"),Fo=new Object,Uo=new Object,Bo=function(){function t(t,e,n,r,i,o,s,a,u){void 0===u&&(u=null),this.clazz=t,this.componentType=e,this.type=n,this.viewUtils=r,this.parentView=i,this.parentIndex=o,this.parentElement=s,this.cdMode=a,this.declaredViewContainer=u,this.numberOfChecks=0,this.ref=new zi(this,r.animationQueue),this.renderer=n===Mo.COMPONENT||n===Mo.HOST?r.renderComponent(e):i.renderer,this._directRenderer=this.renderer.directRenderer}return Object.defineProperty(t.prototype,"animationContext",{get:function(){return this._animationContext||(this._animationContext=new Io(this.viewUtils.animationQueue)),this._animationContext},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"destroyed",{get:function(){return this.cdMode===Re.Destroyed},enumerable:!0,configurable:!0}),t.prototype.create=function(t){return this.context=t,this.createInternal(null)},t.prototype.createHostView=function(t,e,n){return this.context=Fo,this._hasExternalHostElement=s(t),this._hostInjector=e,this._hostProjectableNodes=n,this.createInternal(t)},t.prototype.createInternal=function(){return null},t.prototype.createEmbeddedViewInternal=function(){return null},t.prototype.init=function(t,e,n){this.lastRootNode=t,this.allNodes=e,this.disposables=n,this.type===Mo.COMPONENT&&this.dirtyParentQueriesInternal()},t.prototype.injectorGet=function(t,e,n){void 0===n&&(n=rn);for(var r=Uo,i=this;r===Uo;)s(e)&&(r=i.injectorGetInternal(t,e,Uo)),r===Uo&&i.type===Mo.HOST&&(r=i._hostInjector.get(t,n)),e=i.parentIndex,i=i.parentView;return r},t.prototype.injectorGetInternal=function(t,e,n){return n},t.prototype.injector=function(t){return new jo(this,t)},t.prototype.detachAndDestroy=function(){this.viewContainer?this.viewContainer.detachView(this.viewContainer.nestedViews.indexOf(this)):this.appRef?this.appRef.detachView(this.ref):this._hasExternalHostElement&&this.detach(),this.destroy()},t.prototype.destroy=function(){var t=this;if(this.cdMode!==Re.Destroyed){var e=this.type===Mo.COMPONENT?this.parentElement:null;if(this.disposables)for(var n=0;n<this.disposables.length;n++)this.disposables[n]();this.destroyInternal(),this.dirtyParentQueriesInternal(),this._animationContext?this._animationContext.onAllActiveAnimationsDone(function(){return t.renderer.destroyView(e,t.allNodes)}):this.renderer.destroyView(e,this.allNodes),this.cdMode=Re.Destroyed}},t.prototype.destroyInternal=function(){},t.prototype.detachInternal=function(){},t.prototype.detach=function(){var t=this;if(this.detachInternal(),this._animationContext?this._animationContext.onAllActiveAnimationsDone(function(){return t._renderDetach()}):this._renderDetach(),this.declaredViewContainer&&this.declaredViewContainer!==this.viewContainer&&this.declaredViewContainer.projectedViews){var e=this.declaredViewContainer.projectedViews,n=e.indexOf(this);n>=e.length-1?e.pop():e.splice(n,1)}this.appRef=null,this.viewContainer=null,this.dirtyParentQueriesInternal()},t.prototype._renderDetach=function(){this._directRenderer?this.visitRootNodesInternal(this._directRenderer.remove,null):this.renderer.detachView(this.flatRootNodes)},t.prototype.attachToAppRef=function(t){if(this.viewContainer)throw new Error("This view is already attached to a ViewContainer!");this.appRef=t,this.dirtyParentQueriesInternal()},t.prototype.attachAfter=function(t,e){if(this.appRef)throw new Error("This view is already attached directly to the ApplicationRef!");this._renderAttach(t,e),this.viewContainer=t,this.declaredViewContainer&&this.declaredViewContainer!==t&&(this.declaredViewContainer.projectedViews||(this.declaredViewContainer.projectedViews=[]),this.declaredViewContainer.projectedViews.push(this)),this.dirtyParentQueriesInternal()},t.prototype.moveAfter=function(t,e){this._renderAttach(t,e),this.dirtyParentQueriesInternal()},t.prototype._renderAttach=function(t,e){var n=e?e.lastRootNode:t.nativeElement;if(this._directRenderer){var r=this._directRenderer.nextSibling(n);if(r)this.visitRootNodesInternal(this._directRenderer.insertBefore,r);else{var i=this._directRenderer.parentElement(n);i&&this.visitRootNodesInternal(this._directRenderer.appendChild,i)}}else this.renderer.attachViewAfter(n,this.flatRootNodes)},Object.defineProperty(t.prototype,"changeDetectorRef",{get:function(){return this.ref},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"flatRootNodes",{get:function(){var t=[];return this.visitRootNodesInternal($,t),t},enumerable:!0,configurable:!0}),t.prototype.projectNodes=function(t,e){if(this._directRenderer)this.visitProjectedNodes(e,this._directRenderer.appendChild,t);else{var n=[];this.visitProjectedNodes(e,$,n),this.renderer.projectNodes(t,n)}},t.prototype.visitProjectedNodes=function(t,e,n){switch(this.type){case Mo.EMBEDDED:this.parentView.visitProjectedNodes(t,e,n);break;case Mo.COMPONENT:if(this.parentView.type===Mo.HOST)for(var r=this.parentView._hostProjectableNodes[t]||[],i=0;i<r.length;i++)e(r[i],n);else this.parentView.visitProjectableNodesInternal(this.parentIndex,t,e,n)}},t.prototype.visitRootNodesInternal=function(){},t.prototype.visitProjectableNodesInternal=function(){},t.prototype.dirtyParentQueriesInternal=function(){},t.prototype.internalDetectChanges=function(t){this.cdMode!==Re.Detached&&this.detectChanges(t)},t.prototype.detectChanges=function(t){var e=Vo(this.clazz);this.cdMode!==Re.Checked&&this.cdMode!==Re.Errored&&(this.cdMode===Re.Destroyed&&this.throwDestroyedError("detectChanges"),this.detectChangesInternal(t),this.cdMode===Re.CheckOnce&&(this.cdMode=Re.Checked),this.numberOfChecks++,ui(e))},t.prototype.detectChangesInternal=function(){},t.prototype.markAsCheckOnce=function(){this.cdMode=Re.CheckOnce},t.prototype.markPathToRootAsCheckOnce=function(){for(var t=this;s(t)&&t.cdMode!==Re.Detached;)t.cdMode===Re.Checked&&(t.cdMode=Re.CheckOnce),t=t.type===Mo.COMPONENT?t.parentView:t.viewContainer?t.viewContainer.parentView:null},t.prototype.eventHandler=function(t){return t},t.prototype.throwDestroyedError=function(t){throw new Lr(t)},t}(),Ho=function(t){function e(e,n,r,i,o,s,a,u,c,p){void 0===p&&(p=null),t.call(this,e,n,r,i,o,s,a,u,p),this.staticNodeDebugInfos=c,this._currentDebugContext=null}return Lo(e,t),e.prototype.create=function(e){this._resetDebug();try{return t.prototype.create.call(this,e)}catch(n){throw this._rethrowWithContext(n),n}},e.prototype.createHostView=function(e,n,r){void 0===r&&(r=null),this._resetDebug();try{return t.prototype.createHostView.call(this,e,n,r)}catch(i){throw this._rethrowWithContext(i),i}},e.prototype.injectorGet=function(e,n,r){this._resetDebug();try{return t.prototype.injectorGet.call(this,e,n,r)}catch(i){throw this._rethrowWithContext(i),i}},e.prototype.detach=function(){this._resetDebug();try{t.prototype.detach.call(this)}catch(e){throw this._rethrowWithContext(e),e}},e.prototype.destroy=function(){this._resetDebug();try{t.prototype.destroy.call(this)}catch(e){throw this._rethrowWithContext(e),e}},e.prototype.detectChanges=function(e){this._resetDebug();try{t.prototype.detectChanges.call(this,e)}catch(n){throw this._rethrowWithContext(n),n}},e.prototype._resetDebug=function(){this._currentDebugContext=null},e.prototype.debug=function(t,e,n){return this._currentDebugContext=new ko(this,t,e,n)},e.prototype._rethrowWithContext=function(t){if(!(t instanceof jr)&&(t instanceof Dr||(this.cdMode=Re.Errored),s(this._currentDebugContext)))throw new jr(t,this._currentDebugContext)},e.prototype.eventHandler=function(e){var n=this,r=t.prototype.eventHandler.call(this,e);return function(t,e){n._resetDebug();try{return r.call(n,t,e)}catch(i){throw n._rethrowWithContext(i),i}}},e}(Bo),qo=function(){function t(t,e,n,r){this.index=t,this.parentIndex=e,this.parentView=n,this.nativeElement=r}return Object.defineProperty(t.prototype,"elementRef",{get:function(){return new tr(this.nativeElement)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"vcRef",{get:function(){return new Ui(this)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"parentInjector",{get:function(){return this.parentView.injector(this.parentIndex)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"injector",{get:function(){return this.parentView.injector(this.index)},enumerable:!0,configurable:!0}),t.prototype.detectChangesInNestedViews=function(t){if(this.nestedViews)for(var e=0;e<this.nestedViews.length;e++)this.nestedViews[e].detectChanges(t)},t.prototype.destroyNestedViews=function(){if(this.nestedViews)for(var t=0;t<this.nestedViews.length;t++)this.nestedViews[t].destroy()},t.prototype.visitNestedViewRootNodes=function(t,e){if(this.nestedViews)for(var n=0;n<this.nestedViews.length;n++)this.nestedViews[n].visitRootNodesInternal(t,e)},t.prototype.mapNestedViews=function(t,e){var n=[];if(this.nestedViews)for(var r=0;r<this.nestedViews.length;r++){var i=this.nestedViews[r];i.clazz===t&&n.push(e(i))}if(this.projectedViews)for(var r=0;r<this.projectedViews.length;r++){var o=this.projectedViews[r];o.clazz===t&&n.push(e(o))}return n},t.prototype.moveView=function(t,e){var n=this.nestedViews.indexOf(t);if(t.type===Mo.COMPONENT)throw new Error("Component views can't be moved!");var r=this.nestedViews;null==r&&(r=[],this.nestedViews=r),r.splice(n,1),r.splice(e,0,t);var i=e>0?r[e-1]:null;t.moveAfter(this,i)},t.prototype.attachView=function(t,e){if(t.type===Mo.COMPONENT)throw new Error("Component views can't be moved!");var n=this.nestedViews;null==n&&(n=[],this.nestedViews=n),e>=n.length?n.push(t):n.splice(e,0,t);var r=e>0?n[e-1]:null;t.attachAfter(this,r)},t.prototype.detachView=function(t){var e=this.nestedViews[t];if(t>=this.nestedViews.length-1?this.nestedViews.pop():this.nestedViews.splice(t,1),e.type===Mo.COMPONENT)throw new Error("Component views can't be moved!");return e.detach(),e},t}(),zo={isDefaultChangeDetectionStrategy:E,ChangeDetectorStatus:Re,constructDependencies:D,LifecycleHooks:Fe,LIFECYCLE_HOOKS_VALUES:Ue,ReflectorReader:xn,CodegenComponentFactoryResolver:oi,ComponentRef_:Jr,ViewContainer:qo,AppView:Bo,DebugAppView:Ho,NgModuleInjector:Pi,registerModuleFactory:Lt,ViewType:Mo,view_utils:Yr,ViewMetadata:Je,DebugContext:ko,StaticNodeDebugInfo:Ro,devModeEqual:Q,UNINITIALIZED:mr,ValueUnwrapper:gr,RenderDebugInfo:Tr,TemplateRef_:Vi,ReflectionCapabilities:Cn,makeDecorator:g,DebugDomRootRenderer:Oo,Console:Kn,reflector:On,Reflector:Pn,NoOpAnimationPlayer:co,AnimationPlayer:uo,AnimationSequencePlayer:po,AnimationGroupPlayer:so,AnimationKeyframe:ao,prepareFinalAnimationStyles:ie,balanceAnimationKeyframes:oe,flattenStyles:ce,clearStyles:se,renderStyles:ue,collectAndResolveStyles:ae,APP_ID_RANDOM_PROVIDER:qn,AnimationStyles:xo,ANY_STATE:ro,DEFAULT_STATE:io,EMPTY_STATE:oo,FILL_STYLE_FLAG:no,ComponentStillLoadingError:Qn,isPromise:q,isObservable:z,AnimationTransition:Po};t.createPlatform=Rt,t.assertPlatform=Nt,t.destroyPlatform=It,t.getPlatform=Dt,t.PlatformRef=_i,t.ApplicationRef=wi,t.enableProdMode=At,t.isDevMode=Mt,t.createPlatformFactory=kt,t.NgProbeToken=gi,t.APP_ID=Hn,t.PACKAGE_ROOT_URL=Gn,t.PLATFORM_INITIALIZER=zn,t.APP_BOOTSTRAP_LISTENER=Wn,t.APP_INITIALIZER=Un,t.ApplicationInitStatus=Bn,t.DebugElement=Xi,t.DebugNode=Ki,t.asNativeElements=Ut,t.getDebugNode=qt,t.Testability=li,t.TestabilityRegistry=hi,t.setTestabilityGetter=Ot,t.TRANSLATIONS=Ji,t.TRANSLATIONS_FORMAT=to,t.LOCALE_ID=Zi,t.ApplicationModule=eo,t.wtfCreateScope=ai,t.wtfLeave=ui,t.wtfStartTimeRange=ci,t.wtfEndTimeRange=pi,t.Type=En,t.EventEmitter=nr,t.ErrorHandler=Ln,t.AnimationTransitionEvent=To,t.AnimationPlayer=uo,t.AnimationStyles=xo,t.AnimationKeyframe=ao,t.Sanitizer=Nr,t.SecurityContext=Ar,t.ANALYZE_FOR_ENTRY_COMPONENTS=Se,t.Attribute=Ce,t.ContentChild=Pe,t.ContentChildren=Te,t.Query=xe,t.ViewChild=Ae,t.ViewChildren=Oe,t.Component=Ne,t.Directive=ke,t.HostBinding=Le,t.HostListener=Ve,t.Input=De,t.Output=je,t.Pipe=Ie,t.AfterContentChecked=Ge,t.AfterContentInit=We,t.AfterViewChecked=Xe,t.AfterViewInit=Ke,t.DoCheck=qe,t.OnChanges=Be,t.OnDestroy=ze,t.OnInit=He,t.CUSTOM_ELEMENTS_SCHEMA=Qe,t.NO_ERRORS_SCHEMA=Ye,t.NgModule=$e,t.ViewEncapsulation=Ze,t.Version=tn,t.VERSION=en,t.Class=v,t.forwardRef=S,t.resolveForwardRef=C,t.Injector=sn,t.ReflectiveInjector=In,t.ResolvedReflectiveFactory=kn,t.ReflectiveKey=_n,t.OpaqueToken=Ee,t.Inject=me,t.Optional=ve,t.Injectable=ge,t.Self=_e,t.SkipSelf=be,t.Host=we,t.NgZone=rr,t.RenderComponentType=xr,t.Renderer=Pr,t.RootRenderer=Or,t.COMPILER_OPTIONS=Zn,t.Compiler=$n,t.CompilerFactory=Jn,t.ModuleWithComponentFactories=Yn,t.ComponentFactory=ti,t.ComponentRef=Zr,t.ComponentFactoryResolver=ii,t.ElementRef=tr,t.NgModuleFactory=xi,t.NgModuleRef=Ci,t.NgModuleFactoryLoader=Oi,t.getModuleFactory=Vt,t.QueryList=Mi,t.SystemJsNgModuleLoader=Di,t.SystemJsNgModuleLoaderConfig=Ni,t.TemplateRef=Li,t.ViewContainerRef=Fi,t.EmbeddedViewRef=qi,t.ViewRef=Hi,t.ChangeDetectionStrategy=Me,t.ChangeDetectorRef=br,t.CollectionChangeRecord=ur,t.DefaultIterableDiffer=ar,t.IterableDiffers=dr,t.KeyValueChangeRecord=fr,t.KeyValueDiffers=yr,t.SimpleChange=_r,t.WrappedValue=vr,t.platformCore=$i,t.__core_private__=zo,t.AUTO_STYLE=ho,t.AnimationEntryMetadata=fo,t.AnimationStateMetadata=yo,t.AnimationStateDeclarationMetadata=mo,t.AnimationStateTransitionMetadata=vo,t.AnimationMetadata=go,t.AnimationKeyframesSequenceMetadata=_o,t.AnimationStyleMetadata=bo,t.AnimationAnimateMetadata=wo,t.AnimationWithStepsMetadata=Eo,t.AnimationSequenceMetadata=So,t.AnimationGroupMetadata=Co,t.animate=Yt,t.group=$t,t.sequence=Zt,t.style=Jt,t.state=te,t.keyframes=ee,t.transition=ne,t.trigger=re})}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"rxjs/Observable":15,"rxjs/Subject":18,"rxjs/symbol/observable":46}],8:[function(e,n,r){!function(i,o){"object"==typeof r&&"undefined"!=typeof n?o(r,e("@angular/core"),e("rxjs/Observable"),e("@angular/platform-browser")):"function"==typeof t&&t.amd?t(["exports","@angular/core","rxjs/Observable","@angular/platform-browser"],o):o((i.ng=i.ng||{},i.ng.http=i.ng.http||{}),i.ng.core,i.Rx,i.ng.platformBrowser)}(this,function(t,e,n,r){"use strict";function i(t){if("string"!=typeof t)return t;switch(t.toUpperCase()){case"GET":return m.Get;case"POST":return m.Post;case"PUT":return m.Put;case"DELETE":return m.Delete;case"OPTIONS":return m.Options;case"HEAD":return m.Head;case"PATCH":return m.Patch}throw new Error('Invalid request method. The method "'+t+'" is not supported.')}function o(t){return"responseURL"in t?t.responseURL:/^X-Request-URL:/m.test(t.getAllResponseHeaders())?t.getResponseHeader("X-Request-URL"):void 0}function s(t){for(var e=new Uint16Array(t.length),n=0,r=t.length;r>n;n++)e[n]=t.charCodeAt(n);return e.buffer}function a(t){void 0===t&&(t="");var e=new Map;if(t.length>0){var n=t.split("&");n.forEach(function(t){var n=t.indexOf("="),r=-1==n?[t,""]:[t.slice(0,n),t.slice(n+1)],i=r[0],o=r[1],s=e.get(i)||[];s.push(o),e.set(i,s)})}return e}function u(t){return encodeURIComponent(t).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/gi,"$").replace(/%2C/gi,",").replace(/%3B/gi,";").replace(/%2B/gi,"+").replace(/%3D/gi,"=").replace(/%3F/gi,"?").replace(/%2F/gi,"/")}function c(){var t="object"==typeof window?window:{};return null===j&&(j=t[D]={}),j}function p(t,e){return t.createConnection(e).response}function l(t,e,n,r){var i=t;return i.merge(e?new Y({method:e.method||n,url:e.url||r,search:e.search,headers:e.headers,body:e.body,withCredentials:e.withCredentials,responseType:e.responseType}):new Y({method:n,url:r}))}function h(){return new K}function f(t,e){return new st(t,e)}function d(t,e){return new at(t,e)}var y=function(){ +function t(){}return t.prototype.build=function(){return new XMLHttpRequest},t.decorators=[{type:e.Injectable}],t.ctorParameters=function(){return[]},t}(),m={};m.Get=0,m.Post=1,m.Put=2,m.Delete=3,m.Options=4,m.Head=5,m.Patch=6,m[m.Get]="Get",m[m.Post]="Post",m[m.Put]="Put",m[m.Delete]="Delete",m[m.Options]="Options",m[m.Head]="Head",m[m.Patch]="Patch";var v={};v.Unsent=0,v.Open=1,v.HeadersReceived=2,v.Loading=3,v.Done=4,v.Cancelled=5,v[v.Unsent]="Unsent",v[v.Open]="Open",v[v.HeadersReceived]="HeadersReceived",v[v.Loading]="Loading",v[v.Done]="Done",v[v.Cancelled]="Cancelled";var g={};g.Basic=0,g.Cors=1,g.Default=2,g.Error=3,g.Opaque=4,g[g.Basic]="Basic",g[g.Cors]="Cors",g[g.Default]="Default",g[g.Error]="Error",g[g.Opaque]="Opaque";var _={};_.NONE=0,_.JSON=1,_.FORM=2,_.FORM_DATA=3,_.TEXT=4,_.BLOB=5,_.ARRAY_BUFFER=6,_[_.NONE]="NONE",_[_.JSON]="JSON",_[_.FORM]="FORM",_[_.FORM_DATA]="FORM_DATA",_[_.TEXT]="TEXT",_[_.BLOB]="BLOB",_[_.ARRAY_BUFFER]="ARRAY_BUFFER";var b={};b.Text=0,b.Json=1,b.ArrayBuffer=2,b.Blob=3,b[b.Text]="Text",b[b.Json]="Json",b[b.ArrayBuffer]="ArrayBuffer",b[b.Blob]="Blob";var w=function(){function t(e){var n=this;return this._headers=new Map,this._normalizedNames=new Map,e?e instanceof t?void e.forEach(function(t,e){t.forEach(function(t){return n.append(e,t)})}):void Object.keys(e).forEach(function(t){var r=Array.isArray(e[t])?e[t]:[e[t]];n["delete"](t),r.forEach(function(e){return n.append(t,e)})}):void 0}return t.fromResponseHeaderString=function(e){var n=new t;return e.split("\n").forEach(function(t){var e=t.indexOf(":");if(e>0){var r=t.slice(0,e),i=t.slice(e+1).trim();n.set(r,i)}}),n},t.prototype.append=function(t,e){var n=this.getAll(t);null===n?this.set(t,e):n.push(e)},t.prototype["delete"]=function(t){var e=t.toLowerCase();this._normalizedNames["delete"](e),this._headers["delete"](e)},t.prototype.forEach=function(t){var e=this;this._headers.forEach(function(n,r){return t(n,e._normalizedNames.get(r),e._headers)})},t.prototype.get=function(t){var e=this.getAll(t);return null===e?null:e.length>0?e[0]:null},t.prototype.has=function(t){return this._headers.has(t.toLowerCase())},t.prototype.keys=function(){return Array.from(this._normalizedNames.values())},t.prototype.set=function(t,e){Array.isArray(e)?e.length&&this._headers.set(t.toLowerCase(),[e.join(",")]):this._headers.set(t.toLowerCase(),[e]),this.mayBeSetNormalizedName(t)},t.prototype.values=function(){return Array.from(this._headers.values())},t.prototype.toJSON=function(){var t=this,e={};return this._headers.forEach(function(n,r){var i=[];n.forEach(function(t){return i.push.apply(i,t.split(","))}),e[t._normalizedNames.get(r)]=i}),e},t.prototype.getAll=function(t){return this.has(t)?this._headers.get(t.toLowerCase()):null},t.prototype.entries=function(){throw new Error('"entries" method is not implemented on Headers class')},t.prototype.mayBeSetNormalizedName=function(t){var e=t.toLowerCase();this._normalizedNames.has(e)||this._normalizedNames.set(e,t)},t}(),E=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},S=function(){function t(t){var e=void 0===t?{}:t,n=e.body,r=e.status,i=e.headers,o=e.statusText,s=e.type,a=e.url;this.body=null!=n?n:null,this.status=null!=r?r:null,this.headers=null!=i?i:null,this.statusText=null!=o?o:null,this.type=null!=s?s:null,this.url=null!=a?a:null}return t.prototype.merge=function(e){return new t({body:e&&null!=e.body?e.body:this.body,status:e&&null!=e.status?e.status:this.status,headers:e&&null!=e.headers?e.headers:this.headers,statusText:e&&null!=e.statusText?e.statusText:this.statusText,type:e&&null!=e.type?e.type:this.type,url:e&&null!=e.url?e.url:this.url})},t}(),C=function(t){function n(){t.call(this,{status:200,statusText:"Ok",type:g.Default,headers:new w})}return E(n,t),n.decorators=[{type:e.Injectable}],n.ctorParameters=function(){return[]},n}(S),x=function(){function t(){}return t.prototype.createConnection=function(){},t}(),T=function(){function t(){}return t}(),P=function(){function t(){}return t.prototype.configureRequest=function(){},t}(),O=function(t){return t>=200&&300>t},A=function(){function t(){}return t.prototype.encodeKey=function(t){return u(t)},t.prototype.encodeValue=function(t){return u(t)},t}(),M=function(){function t(t,e){void 0===t&&(t=""),void 0===e&&(e=new A),this.rawParams=t,this.queryEncoder=e,this.paramsMap=a(t)}return t.prototype.clone=function(){var e=new t("",this.queryEncoder);return e.appendAll(this),e},t.prototype.has=function(t){return this.paramsMap.has(t)},t.prototype.get=function(t){var e=this.paramsMap.get(t);return Array.isArray(e)?e[0]:null},t.prototype.getAll=function(t){return this.paramsMap.get(t)||[]},t.prototype.set=function(t,e){if(void 0===e||null===e)return void this["delete"](t);var n=this.paramsMap.get(t)||[];n.length=0,n.push(e),this.paramsMap.set(t,n)},t.prototype.setAll=function(t){var e=this;t.paramsMap.forEach(function(t,n){var r=e.paramsMap.get(n)||[];r.length=0,r.push(t[0]),e.paramsMap.set(n,r)})},t.prototype.append=function(t,e){if(void 0!==e&&null!==e){var n=this.paramsMap.get(t)||[];n.push(e),this.paramsMap.set(t,n)}},t.prototype.appendAll=function(t){var e=this;t.paramsMap.forEach(function(t,n){for(var r=e.paramsMap.get(n)||[],i=0;i<t.length;++i)r.push(t[i]);e.paramsMap.set(n,r)})},t.prototype.replaceAll=function(t){var e=this;t.paramsMap.forEach(function(t,n){var r=e.paramsMap.get(n)||[];r.length=0;for(var i=0;i<t.length;++i)r.push(t[i]);e.paramsMap.set(n,r)})},t.prototype.toString=function(){var t=this,e=[];return this.paramsMap.forEach(function(n,r){n.forEach(function(n){return e.push(t.queryEncoder.encodeKey(r)+"="+t.queryEncoder.encodeValue(n))})}),e.join("&")},t.prototype["delete"]=function(t){this.paramsMap["delete"](t)},t}(),R=function(){function t(){}return t.prototype.json=function(){return"string"==typeof this._body?JSON.parse(this._body):this._body instanceof ArrayBuffer?JSON.parse(this.text()):this._body},t.prototype.text=function(){return this._body instanceof M?this._body.toString():this._body instanceof ArrayBuffer?String.fromCharCode.apply(null,new Uint16Array(this._body)):null==this._body?"":"object"==typeof this._body?JSON.stringify(this._body,null,2):this._body.toString()},t.prototype.arrayBuffer=function(){return this._body instanceof ArrayBuffer?this._body:s(this.text())},t.prototype.blob=function(){if(this._body instanceof Blob)return this._body;if(this._body instanceof ArrayBuffer)return new Blob([this._body]);throw new Error("The request body isn't either a blob or an array buffer")},t}(),k=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},N=function(t){function e(e){t.call(this),this._body=e.body,this.status=e.status,this.ok=this.status>=200&&this.status<=299,this.statusText=e.statusText,this.headers=e.headers,this.type=e.type,this.url=e.url}return k(e,t),e.prototype.toString=function(){return"Response with status: "+this.status+" "+this.statusText+" for URL: "+this.url},e}(R),I=0,D="__ng_jsonp__",j=null,L=function(){function t(){}return t.prototype.build=function(t){var e=document.createElement("script");return e.src=t,e},t.prototype.nextRequestID=function(){return"__req"+I++},t.prototype.requestCallback=function(t){return D+"."+t+".finished"},t.prototype.exposeConnection=function(t,e){var n=c();n[t]=e},t.prototype.removeConnection=function(t){var e=c();e[t]=null},t.prototype.send=function(t){document.body.appendChild(t)},t.prototype.cleanup=function(t){t.parentNode&&t.parentNode.removeChild(t)},t.decorators=[{type:e.Injectable}],t.ctorParameters=function(){return[]},t}(),V=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},F="JSONP injected script did not invoke callback.",U="JSONP requests must use GET request method.",B=function(){function t(){}return t.prototype.finished=function(){},t}(),H=function(t){function e(e,r,i){var o=this;if(t.call(this),this._dom=r,this.baseResponseOptions=i,this._finished=!1,e.method!==m.Get)throw new TypeError(U);this.request=e,this.response=new n.Observable(function(t){o.readyState=v.Loading;var n=o._id=r.nextRequestID();r.exposeConnection(n,o);var s=r.requestCallback(o._id),a=e.url;a.indexOf("=JSONP_CALLBACK&")>-1?a=a.replace("=JSONP_CALLBACK&","="+s+"&"):a.lastIndexOf("=JSONP_CALLBACK")===a.length-"=JSONP_CALLBACK".length&&(a=a.substring(0,a.length-"=JSONP_CALLBACK".length)+("="+s));var u=o._script=r.build(a),c=function(){if(o.readyState!==v.Cancelled){if(o.readyState=v.Done,r.cleanup(u),!o._finished){var e=new S({body:F,type:g.Error,url:a});return i&&(e=i.merge(e)),void t.error(new N(e))}var n=new S({body:o._responseData,url:a});o.baseResponseOptions&&(n=o.baseResponseOptions.merge(n)),t.next(new N(n)),t.complete()}},p=function(e){if(o.readyState!==v.Cancelled){o.readyState=v.Done,r.cleanup(u);var n=new S({body:e.message,type:g.Error});i&&(n=i.merge(n)),t.error(new N(n))}};return u.addEventListener("load",c),u.addEventListener("error",p),r.send(u),function(){o.readyState=v.Cancelled,u.removeEventListener("load",c),u.removeEventListener("error",p),o._dom.cleanup(u)}})}return V(e,t),e.prototype.finished=function(t){this._finished=!0,this._dom.removeConnection(this._id),this.readyState!==v.Cancelled&&(this._responseData=t)},e}(B),q=function(t){function e(){t.apply(this,arguments)}return V(e,t),e}(x),z=function(t){function n(e,n){t.call(this),this._browserJSONP=e,this._baseResponseOptions=n}return V(n,t),n.prototype.createConnection=function(t){return new H(t,this._browserJSONP,this._baseResponseOptions)},n.decorators=[{type:e.Injectable}],n.ctorParameters=function(){return[{type:L},{type:S}]},n}(q),W=/^\)\]\}',?\n/,G=function(){function t(t,e,r){var i=this;this.request=t,this.response=new n.Observable(function(n){var s=e.build();s.open(m[t.method].toUpperCase(),t.url),null!=t.withCredentials&&(s.withCredentials=t.withCredentials);var a=function(){var e=1223===s.status?204:s.status,i=null;204!==e&&(i="undefined"==typeof s.response?s.responseText:s.response,"string"==typeof i&&(i=i.replace(W,""))),0===e&&(e=i?200:0);var a=w.fromResponseHeaderString(s.getAllResponseHeaders()),u=o(s)||t.url,c=s.statusText||"OK",p=new S({body:i,status:e,headers:a,statusText:c,url:u});null!=r&&(p=r.merge(p));var l=new N(p);return l.ok=O(e),l.ok?(n.next(l),void n.complete()):void n.error(l)},u=function(t){var e=new S({body:t,type:g.Error,status:s.status,statusText:s.statusText});null!=r&&(e=r.merge(e)),n.error(new N(e))};if(i.setDetectedContentType(t,s),null==t.headers&&(t.headers=new w),t.headers.has("Accept")||t.headers.append("Accept","application/json, text/plain, */*"),t.headers.forEach(function(t,e){return s.setRequestHeader(e,t.join(","))}),null!=t.responseType&&null!=s.responseType)switch(t.responseType){case b.ArrayBuffer:s.responseType="arraybuffer";break;case b.Json:s.responseType="json";break;case b.Text:s.responseType="text";break;case b.Blob:s.responseType="blob";break;default:throw new Error("The selected responseType is not supported")}return s.addEventListener("load",a),s.addEventListener("error",u),s.send(i.request.getBody()),function(){s.removeEventListener("load",a),s.removeEventListener("error",u),s.abort()}})}return t.prototype.setDetectedContentType=function(t,e){if(null==t.headers||null==t.headers.get("Content-Type"))switch(t.contentType){case _.NONE:break;case _.JSON:e.setRequestHeader("content-type","application/json");break;case _.FORM:e.setRequestHeader("content-type","application/x-www-form-urlencoded;charset=UTF-8");break;case _.TEXT:e.setRequestHeader("content-type","text/plain");break;case _.BLOB:var n=t.blob();n.type&&e.setRequestHeader("content-type",n.type)}},t}(),K=function(){function t(t,e){void 0===t&&(t="XSRF-TOKEN"),void 0===e&&(e="X-XSRF-TOKEN"),this._cookieName=t,this._headerName=e}return t.prototype.configureRequest=function(t){var e=r.__platform_browser_private__.getDOM().getCookie(this._cookieName);e&&t.headers.set(this._headerName,e)},t}(),X=function(){function t(t,e,n){this._browserXHR=t,this._baseResponseOptions=e,this._xsrfStrategy=n}return t.prototype.createConnection=function(t){return this._xsrfStrategy.configureRequest(t),new G(t,this._browserXHR,this._baseResponseOptions)},t.decorators=[{type:e.Injectable}],t.ctorParameters=function(){return[{type:y},{type:S},{type:P}]},t}(),Q=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},Y=function(){function t(t){var e=void 0===t?{}:t,n=e.method,r=e.headers,o=e.body,s=e.url,a=e.search,u=e.withCredentials,c=e.responseType;this.method=null!=n?i(n):null,this.headers=null!=r?r:null,this.body=null!=o?o:null,this.url=null!=s?s:null,this.search=null!=a?"string"==typeof a?new M(a):a:null,this.withCredentials=null!=u?u:null,this.responseType=null!=c?c:null}return t.prototype.merge=function(e){return new t({method:e&&null!=e.method?e.method:this.method,headers:e&&null!=e.headers?e.headers:new w(this.headers),body:e&&null!=e.body?e.body:this.body,url:e&&null!=e.url?e.url:this.url,search:e&&null!=e.search?"string"==typeof e.search?new M(e.search):e.search.clone():this.search,withCredentials:e&&null!=e.withCredentials?e.withCredentials:this.withCredentials,responseType:e&&null!=e.responseType?e.responseType:this.responseType})},t}(),$=function(t){function n(){t.call(this,{method:m.Get,headers:new w})}return Q(n,t),n.decorators=[{type:e.Injectable}],n.ctorParameters=function(){return[]},n}(Y),Z=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},J=function(t){function e(e){t.call(this);var n=e.url;if(this.url=e.url,e.search){var r=e.search.toString();if(r.length>0){var o="?";-1!=this.url.indexOf("?")&&(o="&"==this.url[this.url.length-1]?"":"&"),this.url=n+o+r}}this._body=e.body,this.method=i(e.method),this.headers=new w(e.headers),this.contentType=this.detectContentType(),this.withCredentials=e.withCredentials,this.responseType=e.responseType}return Z(e,t),e.prototype.detectContentType=function(){switch(this.headers.get("content-type")){case"application/json":return _.JSON;case"application/x-www-form-urlencoded":return _.FORM;case"multipart/form-data":return _.FORM_DATA;case"text/plain":case"text/html":return _.TEXT;case"application/octet-stream":return this._body instanceof it?_.ARRAY_BUFFER:_.BLOB;default:return this.detectContentTypeFromBody()}},e.prototype.detectContentTypeFromBody=function(){return null==this._body?_.NONE:this._body instanceof M?_.FORM:this._body instanceof nt?_.FORM_DATA:this._body instanceof rt?_.BLOB:this._body instanceof it?_.ARRAY_BUFFER:this._body&&"object"==typeof this._body?_.JSON:_.TEXT},e.prototype.getBody=function(){switch(this.contentType){case _.JSON:return this.text();case _.FORM:return this.text();case _.FORM_DATA:return this._body;case _.TEXT:return this.text();case _.BLOB:return this.blob();case _.ARRAY_BUFFER:return this.arrayBuffer();default:return null}},e}(R),tt=function(){},et="object"==typeof window?window:tt,nt=et.FormData||tt,rt=et.Blob||tt,it=et.ArrayBuffer||tt,ot=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},st=function(){function t(t,e){this._backend=t,this._defaultOptions=e}return t.prototype.request=function(t,e){var n;if("string"==typeof t)n=p(this._backend,new J(l(this._defaultOptions,e,m.Get,t)));else{if(!(t instanceof J))throw new Error("First argument must be a url string or Request instance.");n=p(this._backend,t)}return n},t.prototype.get=function(t,e){return this.request(new J(l(this._defaultOptions,e,m.Get,t)))},t.prototype.post=function(t,e,n){return this.request(new J(l(this._defaultOptions.merge(new Y({body:e})),n,m.Post,t)))},t.prototype.put=function(t,e,n){return this.request(new J(l(this._defaultOptions.merge(new Y({body:e})),n,m.Put,t)))},t.prototype["delete"]=function(t,e){return this.request(new J(l(this._defaultOptions,e,m.Delete,t)))},t.prototype.patch=function(t,e,n){return this.request(new J(l(this._defaultOptions.merge(new Y({body:e})),n,m.Patch,t)))},t.prototype.head=function(t,e){return this.request(new J(l(this._defaultOptions,e,m.Head,t)))},t.prototype.options=function(t,e){return this.request(new J(l(this._defaultOptions,e,m.Options,t)))},t.decorators=[{type:e.Injectable}],t.ctorParameters=function(){return[{type:x},{type:Y}]},t}(),at=function(t){function n(e,n){t.call(this,e,n)}return ot(n,t),n.prototype.request=function(t,e){var n;if("string"==typeof t&&(t=new J(l(this._defaultOptions,e,m.Get,t))),!(t instanceof J))throw new Error("First argument must be a url string or Request instance.");if(t.method!==m.Get)throw new Error("JSONP requests must use GET request method.");return n=p(this._backend,t)},n.decorators=[{type:e.Injectable}],n.ctorParameters=function(){return[{type:x},{type:Y}]},n}(st),ut=function(){function t(){}return t.decorators=[{type:e.NgModule,args:[{providers:[{provide:st,useFactory:f,deps:[X,Y]},y,{provide:Y,useClass:$},{provide:S,useClass:C},X,{provide:P,useFactory:h}]}]}],t.ctorParameters=function(){return[]},t}(),ct=function(){function t(){}return t.decorators=[{type:e.NgModule,args:[{providers:[{provide:at,useFactory:d,deps:[q,Y]},L,{provide:Y,useClass:$},{provide:S,useClass:C},{provide:q,useClass:z}]}]}],t.ctorParameters=function(){return[]},t}(),pt=new e.Version("2.4.9");t.BrowserXhr=y,t.JSONPBackend=q,t.JSONPConnection=B,t.CookieXSRFStrategy=K,t.XHRBackend=X,t.XHRConnection=G,t.BaseRequestOptions=$,t.RequestOptions=Y,t.BaseResponseOptions=C,t.ResponseOptions=S,t.ReadyState=v,t.RequestMethod=m,t.ResponseContentType=b,t.ResponseType=g,t.Headers=w,t.Http=st,t.Jsonp=at,t.HttpModule=ut,t.JsonpModule=ct,t.Connection=T,t.ConnectionBackend=x,t.XSRFStrategy=P,t.Request=J,t.Response=N,t.QueryEncoder=A,t.URLSearchParams=M,t.VERSION=pt})},{"@angular/core":7,"@angular/platform-browser":10,"rxjs/Observable":15}],9:[function(e,n,r){(function(i){!function(i,o){"object"==typeof r&&"undefined"!=typeof n?o(r,e("@angular/compiler"),e("@angular/core"),e("@angular/platform-browser")):"function"==typeof t&&t.amd?t(["exports","@angular/compiler","@angular/core","@angular/platform-browser"],o):o((i.ng=i.ng||{},i.ng.platformBrowserDynamic=i.ng.platformBrowserDynamic||{}),i.ng.compiler,i.ng.core,i.ng.platformBrowser)}(this,function(t,e,n,r){"use strict";var o,s=r.__platform_browser_private__.INTERNAL_BROWSER_PLATFORM_PROVIDERS,a=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},u=function(t){function e(){t.apply(this,arguments)}return a(e,t),e.prototype.get=function(t){var e,n,r=new Promise(function(t,r){e=t,n=r}),i=new XMLHttpRequest;return i.open("GET",t,!0),i.responseType="text",i.onload=function(){var r=i.response||i.responseText,o=1223===i.status?204:i.status;0===o&&(o=r?200:0),o>=200&&300>=o?e(r):n("Failed to load "+t)},i.onerror=function(){n("Failed to load "+t)},i.send(),r},e.decorators=[{type:n.Injectable}],e.ctorParameters=function(){return[]},e}(e.ResourceLoader),c=[s,{provide:n.COMPILER_OPTIONS,useValue:{providers:[{provide:e.ResourceLoader,useClass:u}]},multi:!0}];o="undefined"==typeof window?"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope?self:i:window;var p=o;p.assert=function(){};var l=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},h=function(t){function e(){if(t.call(this),this._cache=p.$templateCache,null==this._cache)throw new Error("CachedResourceLoader: Template cache was not found in $templateCache.")}return l(e,t),e.prototype.get=function(t){return this._cache.hasOwnProperty(t)?Promise.resolve(this._cache[t]):Promise.reject("CachedResourceLoader: Did not find cached template for "+t)},e}(e.ResourceLoader),f={INTERNAL_BROWSER_DYNAMIC_PLATFORM_PROVIDERS:c,ResourceLoaderImpl:u},d=new n.Version("2.4.9"),y=[{provide:e.ResourceLoader,useClass:h}],m=n.createPlatformFactory(e.platformCoreDynamic,"browserDynamic",c);t.RESOURCE_CACHE_PROVIDER=y,t.platformBrowserDynamic=m,t.VERSION=d,t.__platform_browser_dynamic_private__=f})}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"@angular/compiler":6,"@angular/core":7,"@angular/platform-browser":10}],10:[function(e,n,r){(function(i){!function(i,o){"object"==typeof r&&"undefined"!=typeof n?o(r,e("@angular/common"),e("@angular/core")):"function"==typeof t&&t.amd?t(["exports","@angular/common","@angular/core"],o):o((i.ng=i.ng||{},i.ng.platformBrowser=i.ng.platformBrowser||{}),i.ng.common,i.ng.core)}(this,function(t,e,n){"use strict";function r(t){return null!=t}function o(t){return null==t}function s(t){if("string"==typeof t)return t;if(null==t)return""+t;if(t.overriddenName)return""+t.overriddenName;if(t.name)return""+t.name;var e=t.toString(),n=e.indexOf("\n");return-1===n?e:e.substring(0,n)}function a(t,e,n){for(var r=e.split("."),i=t;r.length>1;){var o=r.shift();i=i.hasOwnProperty(o)&&null!=i[o]?i[o]:i[o]={}}(void 0===i||null===i)&&(i={}),i[r.shift()]=n}function u(){return J}function c(t){J||(J=t)}function p(t,e){return u().getComputedStyle(t)[e]}function l(t){var e={};return Object.keys(t).forEach(function(n){"offset"!=n&&(e[n]=t[n])}),e}function h(t,e){var n={};return t.styles.forEach(function(t){Object.keys(t).forEach(function(e){n[e]=t[e]})}),Object.keys(e).forEach(function(t){r(n[t])||(n[t]=e[t])}),n}function f(t){return t instanceof et}function d(){return lt||(lt=document.querySelector("base"))?lt.getAttribute("href"):null}function y(t){return Z||(Z=document.createElement("a")),Z.setAttribute("href",t),"/"===Z.pathname.charAt(0)?Z.pathname:"/"+Z.pathname}function m(t,e){e=encodeURIComponent(e);for(var n=0,r=t.split(";");n<r.length;n++){var i=r[n],o=i.indexOf("="),s=-1==o?[i,""]:[i.slice(0,o),i.slice(o+1)],a=s[0],u=s[1];if(a.trim()===e)return decodeURIComponent(u)}return null}function v(){return!!window.history.pushState}function g(t,e){var n=t.parentNode;if(e.length>0&&n){var r=t.nextSibling;if(r)for(var i=0;i<e.length;i++)n.insertBefore(e[i],r);else for(var i=0;i<e.length;i++)n.appendChild(e[i])}}function _(t,e){for(var n=0;n<e.length;n++)t.appendChild(e[n])}function b(t){return function(e){var n=t(e);n===!1&&(e.preventDefault(),e.returnValue=!1)}}function w(t){return Dt.replace(kt,t)}function E(t){return It.replace(kt,t)}function S(t,e,n){for(var r=0;r<e.length;r++){var i=e[r];Array.isArray(i)?S(t,i,n):(i=i.replace(kt,t),n.push(i))}return n}function C(t){return":"===t[0]}function x(t){var e=t.match(jt);return[e[1],e[2]]}function T(t){return n.getDebugNode(t)}function P(t,e,r){return n.isDevMode()?O(t,(e||[]).concat(r||[])):t}function O(t,e){return u().setGlobalVar(Vt,T),u().setGlobalVar(Ft,mt.merge(Lt,A(e||[]))),new K(t)}function A(t){return t.reduce(function(t,e){return t[e.name]=e.token,t},{})}function M(t){return t=String(t),t.match(Jt)||t.match(te)?t:(n.isDevMode()&&u().log("WARNING: sanitizing unsafe URL value "+t+" (see http://g.co/ng/security#xss)"),"unsafe:"+t)}function R(t){return t=String(t),t.split(",").map(function(t){return M(t.trim())}).join(", ")}function k(){if(ee)return ee;ne=u();var t=ne.createElement("template");if("content"in t)return t;var e=ne.createHtmlDocument();if(ee=ne.querySelector(e,"body"),null==ee){var n=ne.createElement("html",e);ee=ne.createElement("body",e),ne.appendChild(n,ee),ne.appendChild(e,n)}return ee}function N(t){for(var e={},n=0,r=t.split(",");n<r.length;n++){var i=r[n];e[i]=!0}return e}function I(){for(var t=[],e=0;e<arguments.length;e++)t[e-0]=arguments[e];for(var n={},r=0,i=t;r<i.length;r++){var o=i[r];for(var s in o)o.hasOwnProperty(s)&&(n[s]=!0)}return n}function D(t){return t.replace(/&/g,"&").replace(ye,function(t){var e=t.charCodeAt(0),n=t.charCodeAt(1);return"&#"+(1024*(e-55296)+(n-56320)+65536)+";"}).replace(me,function(t){return"&#"+t.charCodeAt(0)+";"}).replace(/</g,"<").replace(/>/g,">")}function j(t){ne.attributeMap(t).forEach(function(e,n){("xmlns:ns1"===n||0===n.indexOf("ns1:"))&&ne.removeAttribute(t,n)});for(var e=0,n=ne.childNodesAsList(t);e<n.length;e++){var r=n[e];ne.isElementNode(r)&&j(r)}}function L(t){try{var e=k(),r=t?String(t):"",i=5,o=r;do{if(0===i)throw new Error("Failed to sanitize html because the input is unstable");i--,r=o,ne.setInnerHTML(e,r),ne.defaultDoc().documentMode&&j(e),o=ne.getInnerHTML(e)}while(r!==o);for(var s=new de,a=s.sanitizeChildren(ne.getTemplateContent(e)||e),u=ne.getTemplateContent(e)||e,c=0,p=ne.childNodesAsList(u);c<p.length;c++){var l=p[c];ne.removeChild(u,l)}return n.isDevMode()&&s.sanitizedSomething&&ne.log("WARNING: sanitizing HTML stripped some content (see http://g.co/ng/security#xss)."),a}catch(h){throw ee=null,h}}function V(t){for(var e=!0,n=!0,r=0;r<t.length;r++){var i=t.charAt(r);"'"===i&&n?e=!e:'"'===i&&e&&(n=!n)}return e&&n}function F(t){if(t=String(t).trim(),!t)return"";var e=t.match(Ce);return e&&M(e[1])===e[1]||t.match(Se)&&V(t)?t:(n.isDevMode()&&u().log("WARNING: sanitizing unsafe style value "+t+" (see http://g.co/ng/security#xss)."),"unsafe")}function U(){pt.makeCurrent(),dt.init()}function B(){return new n.ErrorHandler}function H(){return u().defaultDoc()}function q(){return u().supportsWebAnimation()?new nt:Y.NOOP}function z(t){return Object.assign(He.ng,new Ue(t)),t}function W(){He.ng&&delete He.ng.profiler}var G,K=n.__core_private__.DebugDomRootRenderer,X=n.__core_private__.NoOpAnimationPlayer,Q=function(){function t(){}return t.prototype.animate=function(t,e,n,r,i,o,s){return void 0===s&&(s=[]),new X},t}(),Y=function(){function t(){}return t.prototype.animate=function(){},t.NOOP=new Q,t}();G="undefined"==typeof window?"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope?self:i:window;var $=G;$.assert=function(){};var Z,J=null,tt=function(){function t(){this.resourceLoaderType=null}return t.prototype.hasProperty=function(){},t.prototype.setProperty=function(){},t.prototype.getProperty=function(){},t.prototype.invoke=function(){},t.prototype.logError=function(){},t.prototype.log=function(){},t.prototype.logGroup=function(){},t.prototype.logGroupEnd=function(){},Object.defineProperty(t.prototype,"attrToPropMap",{get:function(){return this._attrToPropMap},set:function(t){this._attrToPropMap=t},enumerable:!0,configurable:!0}),t.prototype.parse=function(){},t.prototype.query=function(){},t.prototype.querySelector=function(){},t.prototype.querySelectorAll=function(){},t.prototype.on=function(){},t.prototype.onAndCancel=function(){},t.prototype.dispatchEvent=function(){},t.prototype.createMouseEvent=function(){},t.prototype.createEvent=function(){},t.prototype.preventDefault=function(){},t.prototype.isPrevented=function(){},t.prototype.getInnerHTML=function(){},t.prototype.getTemplateContent=function(){},t.prototype.getOuterHTML=function(){},t.prototype.nodeName=function(){},t.prototype.nodeValue=function(){},t.prototype.type=function(){},t.prototype.content=function(){},t.prototype.firstChild=function(){},t.prototype.nextSibling=function(){},t.prototype.parentElement=function(){},t.prototype.childNodes=function(){},t.prototype.childNodesAsList=function(){},t.prototype.clearNodes=function(){},t.prototype.appendChild=function(){},t.prototype.removeChild=function(){},t.prototype.replaceChild=function(){},t.prototype.remove=function(){},t.prototype.insertBefore=function(){},t.prototype.insertAllBefore=function(){},t.prototype.insertAfter=function(){},t.prototype.setInnerHTML=function(){},t.prototype.getText=function(){},t.prototype.setText=function(){},t.prototype.getValue=function(){},t.prototype.setValue=function(){},t.prototype.getChecked=function(){},t.prototype.setChecked=function(){},t.prototype.createComment=function(){},t.prototype.createTemplate=function(){},t.prototype.createElement=function(){},t.prototype.createElementNS=function(){},t.prototype.createTextNode=function(){},t.prototype.createScriptTag=function(){},t.prototype.createStyleElement=function(){},t.prototype.createShadowRoot=function(){},t.prototype.getShadowRoot=function(){},t.prototype.getHost=function(){},t.prototype.getDistributedNodes=function(){},t.prototype.clone=function(){},t.prototype.getElementsByClassName=function(){},t.prototype.getElementsByTagName=function(){},t.prototype.classList=function(){},t.prototype.addClass=function(){},t.prototype.removeClass=function(){},t.prototype.hasClass=function(){},t.prototype.setStyle=function(){},t.prototype.removeStyle=function(){},t.prototype.getStyle=function(){},t.prototype.hasStyle=function(){},t.prototype.tagName=function(){},t.prototype.attributeMap=function(){},t.prototype.hasAttribute=function(){},t.prototype.hasAttributeNS=function(){},t.prototype.getAttribute=function(){},t.prototype.getAttributeNS=function(){},t.prototype.setAttribute=function(){},t.prototype.setAttributeNS=function(){},t.prototype.removeAttribute=function(){},t.prototype.removeAttributeNS=function(){},t.prototype.templateAwareRoot=function(){},t.prototype.createHtmlDocument=function(){},t.prototype.defaultDoc=function(){},t.prototype.getBoundingClientRect=function(){},t.prototype.getTitle=function(){},t.prototype.setTitle=function(){},t.prototype.elementMatches=function(){},t.prototype.isTemplateElement=function(){},t.prototype.isTextNode=function(){},t.prototype.isCommentNode=function(){},t.prototype.isElementNode=function(){},t.prototype.hasShadowRoot=function(){},t.prototype.isShadowRoot=function(){},t.prototype.importIntoDoc=function(){},t.prototype.adoptNode=function(){},t.prototype.getHref=function(){},t.prototype.getEventKey=function(){},t.prototype.resolveAndSetHref=function(){},t.prototype.supportsDOMEvents=function(){},t.prototype.supportsNativeShadowDOM=function(){},t.prototype.getGlobalEventTarget=function(){},t.prototype.getHistory=function(){},t.prototype.getLocation=function(){},t.prototype.getBaseHref=function(){},t.prototype.resetBaseElement=function(){},t.prototype.getUserAgent=function(){},t.prototype.setData=function(){},t.prototype.getComputedStyle=function(){},t.prototype.getData=function(){},t.prototype.setGlobalVar=function(){},t.prototype.supportsWebAnimation=function(){},t.prototype.performanceNow=function(){},t.prototype.getAnimationPrefix=function(){},t.prototype.getTransitionEnd=function(){},t.prototype.supportsAnimation=function(){},t.prototype.supportsCookies=function(){},t.prototype.getCookie=function(){},t.prototype.setCookie=function(){},t}(),et=function(){function t(t,e,n,r){var i=this;void 0===r&&(r=[]),this.element=t,this.keyframes=e,this.options=n,this._onDoneFns=[],this._onStartFns=[],this._initialized=!1,this._finished=!1,this._started=!1,this._destroyed=!1,this.parentPlayer=null,this._duration=n.duration,this.previousStyles={},r.forEach(function(t){var e=t._captureStyles();Object.keys(e).forEach(function(t){return i.previousStyles[t]=e[t]})})}return t.prototype._onFinish=function(){this._finished||(this._finished=!0,this._onDoneFns.forEach(function(t){return t()}),this._onDoneFns=[])},t.prototype.init=function(){var t=this;if(!this._initialized){this._initialized=!0;var e=this.keyframes.map(function(e){var r={};return Object.keys(e).forEach(function(i){var o=e[i];o==n.AUTO_STYLE&&(o=p(t.element,i)),void 0!=o&&(r[i]=o)}),r}),i=Object.keys(this.previousStyles);if(i.length){var o=e[0],s=[];if(i.forEach(function(e){r(o[e])||s.push(e),o[e]=t.previousStyles[e]}),s.length)for(var a=function(n){var r=e[n];s.forEach(function(e){ +r[e]=p(t.element,e)})},u=1;u<e.length;u++)a(u)}this._player=this._triggerWebAnimation(this.element,e,this.options),this._finalKeyframe=l(e[e.length-1]),this._resetDomPlayerState(),this._player.addEventListener("finish",function(){return t._onFinish()})}},t.prototype._triggerWebAnimation=function(t,e,n){return t.animate(e,n)},Object.defineProperty(t.prototype,"domPlayer",{get:function(){return this._player},enumerable:!0,configurable:!0}),t.prototype.onStart=function(t){this._onStartFns.push(t)},t.prototype.onDone=function(t){this._onDoneFns.push(t)},t.prototype.play=function(){this.init(),this.hasStarted()||(this._onStartFns.forEach(function(t){return t()}),this._onStartFns=[],this._started=!0),this._player.play()},t.prototype.pause=function(){this.init(),this._player.pause()},t.prototype.finish=function(){this.init(),this._onFinish(),this._player.finish()},t.prototype.reset=function(){this._resetDomPlayerState(),this._destroyed=!1,this._finished=!1,this._started=!1},t.prototype._resetDomPlayerState=function(){this._player&&this._player.cancel()},t.prototype.restart=function(){this.reset(),this.play()},t.prototype.hasStarted=function(){return this._started},t.prototype.destroy=function(){this._destroyed||(this._resetDomPlayerState(),this._onFinish(),this._destroyed=!0)},Object.defineProperty(t.prototype,"totalTime",{get:function(){return this._duration},enumerable:!0,configurable:!0}),t.prototype.setPosition=function(t){this._player.currentTime=t*this.totalTime},t.prototype.getPosition=function(){return this._player.currentTime/this.totalTime},t.prototype._captureStyles=function(){var t=this,e={};return this.hasStarted()&&Object.keys(this._finalKeyframe).forEach(function(n){"offset"!=n&&(e[n]=t._finished?t._finalKeyframe[n]:p(t.element,n))}),e},t}(),nt=function(){function t(){}return t.prototype.animate=function(t,e,n,i,o,s,a){void 0===a&&(a=[]);var u=[],c={};if(r(e)&&(c=h(e,{})),n.forEach(function(t){var e=h(t.styles,c);e.offset=Math.max(0,Math.min(1,t.offset)),u.push(e)}),0==u.length)u=[c,c];else if(1==u.length){var p=c,l=u[0];l.offset=null,u=[p,l]}var d={duration:i,delay:o,fill:"both"};return s&&(d.easing=s),a=a.filter(f),new et(t,u,d,a)},t}(),rt=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},it=function(t){function e(){var e=this;t.call(this),this._animationPrefix=null,this._transitionEnd=null;try{var n=this.createElement("div",this.defaultDoc());if(r(this.getStyle(n,"animationName")))this._animationPrefix="";else for(var i=["Webkit","Moz","O","ms"],o=0;o<i.length;o++)if(r(this.getStyle(n,i[o]+"AnimationName"))){this._animationPrefix="-"+i[o].toLowerCase()+"-";break}var s={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend",transition:"transitionend"};Object.keys(s).forEach(function(t){r(e.getStyle(n,t))&&(e._transitionEnd=s[t])})}catch(a){this._animationPrefix=null,this._transitionEnd=null}}return rt(e,t),e.prototype.getDistributedNodes=function(t){return t.getDistributedNodes()},e.prototype.resolveAndSetHref=function(t,e,n){t.href=null==n?e:e+"/../"+n},e.prototype.supportsDOMEvents=function(){return!0},e.prototype.supportsNativeShadowDOM=function(){return"function"==typeof this.defaultDoc().body.createShadowRoot},e.prototype.getAnimationPrefix=function(){return this._animationPrefix?this._animationPrefix:""},e.prototype.getTransitionEnd=function(){return this._transitionEnd?this._transitionEnd:""},e.prototype.supportsAnimation=function(){return r(this._animationPrefix)&&r(this._transitionEnd)},e}(tt),ot=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},st={"class":"className",innerHtml:"innerHTML",readonly:"readOnly",tabindex:"tabIndex"},at=3,ut={"\b":"Backspace"," ":"Tab","":"Delete","":"Escape",Del:"Delete",Esc:"Escape",Left:"ArrowLeft",Right:"ArrowRight",Up:"ArrowUp",Down:"ArrowDown",Menu:"ContextMenu",Scroll:"ScrollLock",Win:"OS"},ct={A:"1",B:"2",C:"3",D:"4",E:"5",F:"6",G:"7",H:"8",I:"9",J:"*",K:"+",M:"-",N:".",O:"/","`":"0","Â":"NumLock"},pt=function(t){function e(){t.apply(this,arguments)}return ot(e,t),e.prototype.parse=function(){throw new Error("parse not implemented")},e.makeCurrent=function(){c(new e)},e.prototype.hasProperty=function(t,e){return e in t},e.prototype.setProperty=function(t,e,n){t[e]=n},e.prototype.getProperty=function(t,e){return t[e]},e.prototype.invoke=function(t,e,n){(r=t)[e].apply(r,n);var r},e.prototype.logError=function(t){window.console&&(console.error?console.error(t):console.log(t))},e.prototype.log=function(t){window.console&&window.console.log&&window.console.log(t)},e.prototype.logGroup=function(t){window.console&&window.console.group&&window.console.group(t)},e.prototype.logGroupEnd=function(){window.console&&window.console.groupEnd&&window.console.groupEnd()},Object.defineProperty(e.prototype,"attrToPropMap",{get:function(){return st},enumerable:!0,configurable:!0}),e.prototype.query=function(t){return document.querySelector(t)},e.prototype.querySelector=function(t,e){return t.querySelector(e)},e.prototype.querySelectorAll=function(t,e){return t.querySelectorAll(e)},e.prototype.on=function(t,e,n){t.addEventListener(e,n,!1)},e.prototype.onAndCancel=function(t,e,n){return t.addEventListener(e,n,!1),function(){t.removeEventListener(e,n,!1)}},e.prototype.dispatchEvent=function(t,e){t.dispatchEvent(e)},e.prototype.createMouseEvent=function(t){var e=document.createEvent("MouseEvent");return e.initEvent(t,!0,!0),e},e.prototype.createEvent=function(t){var e=document.createEvent("Event");return e.initEvent(t,!0,!0),e},e.prototype.preventDefault=function(t){t.preventDefault(),t.returnValue=!1},e.prototype.isPrevented=function(t){return t.defaultPrevented||r(t.returnValue)&&!t.returnValue},e.prototype.getInnerHTML=function(t){return t.innerHTML},e.prototype.getTemplateContent=function(t){return"content"in t&&t instanceof HTMLTemplateElement?t.content:null},e.prototype.getOuterHTML=function(t){return t.outerHTML},e.prototype.nodeName=function(t){return t.nodeName},e.prototype.nodeValue=function(t){return t.nodeValue},e.prototype.type=function(t){return t.type},e.prototype.content=function(t){return this.hasProperty(t,"content")?t.content:t},e.prototype.firstChild=function(t){return t.firstChild},e.prototype.nextSibling=function(t){return t.nextSibling},e.prototype.parentElement=function(t){return t.parentNode},e.prototype.childNodes=function(t){return t.childNodes},e.prototype.childNodesAsList=function(t){for(var e=t.childNodes,n=new Array(e.length),r=0;r<e.length;r++)n[r]=e[r];return n},e.prototype.clearNodes=function(t){for(;t.firstChild;)t.removeChild(t.firstChild)},e.prototype.appendChild=function(t,e){t.appendChild(e)},e.prototype.removeChild=function(t,e){t.removeChild(e)},e.prototype.replaceChild=function(t,e,n){t.replaceChild(e,n)},e.prototype.remove=function(t){return t.parentNode&&t.parentNode.removeChild(t),t},e.prototype.insertBefore=function(t,e){t.parentNode.insertBefore(e,t)},e.prototype.insertAllBefore=function(t,e){e.forEach(function(e){return t.parentNode.insertBefore(e,t)})},e.prototype.insertAfter=function(t,e){t.parentNode.insertBefore(e,t.nextSibling)},e.prototype.setInnerHTML=function(t,e){t.innerHTML=e},e.prototype.getText=function(t){return t.textContent},e.prototype.setText=function(t,e){t.textContent=e},e.prototype.getValue=function(t){return t.value},e.prototype.setValue=function(t,e){t.value=e},e.prototype.getChecked=function(t){return t.checked},e.prototype.setChecked=function(t,e){t.checked=e},e.prototype.createComment=function(t){return document.createComment(t)},e.prototype.createTemplate=function(t){var e=document.createElement("template");return e.innerHTML=t,e},e.prototype.createElement=function(t,e){return void 0===e&&(e=document),e.createElement(t)},e.prototype.createElementNS=function(t,e,n){return void 0===n&&(n=document),n.createElementNS(t,e)},e.prototype.createTextNode=function(t,e){return void 0===e&&(e=document),e.createTextNode(t)},e.prototype.createScriptTag=function(t,e,n){void 0===n&&(n=document);var r=n.createElement("SCRIPT");return r.setAttribute(t,e),r},e.prototype.createStyleElement=function(t,e){void 0===e&&(e=document);var n=e.createElement("style");return this.appendChild(n,this.createTextNode(t)),n},e.prototype.createShadowRoot=function(t){return t.createShadowRoot()},e.prototype.getShadowRoot=function(t){return t.shadowRoot},e.prototype.getHost=function(t){return t.host},e.prototype.clone=function(t){return t.cloneNode(!0)},e.prototype.getElementsByClassName=function(t,e){return t.getElementsByClassName(e)},e.prototype.getElementsByTagName=function(t,e){return t.getElementsByTagName(e)},e.prototype.classList=function(t){return Array.prototype.slice.call(t.classList,0)},e.prototype.addClass=function(t,e){t.classList.add(e)},e.prototype.removeClass=function(t,e){t.classList.remove(e)},e.prototype.hasClass=function(t,e){return t.classList.contains(e)},e.prototype.setStyle=function(t,e,n){t.style[e]=n},e.prototype.removeStyle=function(t,e){t.style[e]=""},e.prototype.getStyle=function(t,e){return t.style[e]},e.prototype.hasStyle=function(t,e,n){void 0===n&&(n=null);var r=this.getStyle(t,e)||"";return n?r==n:r.length>0},e.prototype.tagName=function(t){return t.tagName},e.prototype.attributeMap=function(t){for(var e=new Map,n=t.attributes,r=0;r<n.length;r++){var i=n[r];e.set(i.name,i.value)}return e},e.prototype.hasAttribute=function(t,e){return t.hasAttribute(e)},e.prototype.hasAttributeNS=function(t,e,n){return t.hasAttributeNS(e,n)},e.prototype.getAttribute=function(t,e){return t.getAttribute(e)},e.prototype.getAttributeNS=function(t,e,n){return t.getAttributeNS(e,n)},e.prototype.setAttribute=function(t,e,n){t.setAttribute(e,n)},e.prototype.setAttributeNS=function(t,e,n,r){t.setAttributeNS(e,n,r)},e.prototype.removeAttribute=function(t,e){t.removeAttribute(e)},e.prototype.removeAttributeNS=function(t,e,n){t.removeAttributeNS(e,n)},e.prototype.templateAwareRoot=function(t){return this.isTemplateElement(t)?this.content(t):t},e.prototype.createHtmlDocument=function(){return document.implementation.createHTMLDocument("fakeTitle")},e.prototype.defaultDoc=function(){return document},e.prototype.getBoundingClientRect=function(t){try{return t.getBoundingClientRect()}catch(e){return{top:0,bottom:0,left:0,right:0,width:0,height:0}}},e.prototype.getTitle=function(){return document.title},e.prototype.setTitle=function(t){document.title=t||""},e.prototype.elementMatches=function(t,e){return t instanceof HTMLElement?t.matches&&t.matches(e)||t.msMatchesSelector&&t.msMatchesSelector(e)||t.webkitMatchesSelector&&t.webkitMatchesSelector(e):!1},e.prototype.isTemplateElement=function(t){return t instanceof HTMLElement&&"TEMPLATE"==t.nodeName},e.prototype.isTextNode=function(t){return t.nodeType===Node.TEXT_NODE},e.prototype.isCommentNode=function(t){return t.nodeType===Node.COMMENT_NODE},e.prototype.isElementNode=function(t){return t.nodeType===Node.ELEMENT_NODE},e.prototype.hasShadowRoot=function(t){return r(t.shadowRoot)&&t instanceof HTMLElement},e.prototype.isShadowRoot=function(t){return t instanceof DocumentFragment},e.prototype.importIntoDoc=function(t){return document.importNode(this.templateAwareRoot(t),!0)},e.prototype.adoptNode=function(t){return document.adoptNode(t)},e.prototype.getHref=function(t){return t.href},e.prototype.getEventKey=function(t){var e=t.key;if(o(e)){if(e=t.keyIdentifier,o(e))return"Unidentified";e.startsWith("U+")&&(e=String.fromCharCode(parseInt(e.substring(2),16)),t.location===at&&ct.hasOwnProperty(e)&&(e=ct[e]))}return ut[e]||e},e.prototype.getGlobalEventTarget=function(t){return"window"===t?window:"document"===t?document:"body"===t?document.body:void 0},e.prototype.getHistory=function(){return window.history},e.prototype.getLocation=function(){return window.location},e.prototype.getBaseHref=function(){var t=d();return o(t)?null:y(t)},e.prototype.resetBaseElement=function(){lt=null},e.prototype.getUserAgent=function(){return window.navigator.userAgent},e.prototype.setData=function(t,e,n){this.setAttribute(t,"data-"+e,n)},e.prototype.getData=function(t,e){return this.getAttribute(t,"data-"+e)},e.prototype.getComputedStyle=function(t){return getComputedStyle(t)},e.prototype.setGlobalVar=function(t,e){a($,t,e)},e.prototype.supportsWebAnimation=function(){return"function"==typeof Element.prototype.animate},e.prototype.performanceNow=function(){return window.performance&&window.performance.now?window.performance.now():(new Date).getTime()},e.prototype.supportsCookies=function(){return!0},e.prototype.getCookie=function(t){return m(document.cookie,t)},e.prototype.setCookie=function(t,e){document.cookie=encodeURIComponent(t)+"="+encodeURIComponent(e)},e}(it),lt=null,ht=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},ft=function(t){function e(){t.call(this),this._init()}return ht(e,t),e.prototype._init=function(){this._location=u().getLocation(),this._history=u().getHistory()},Object.defineProperty(e.prototype,"location",{get:function(){return this._location},enumerable:!0,configurable:!0}),e.prototype.getBaseHrefFromDOM=function(){return u().getBaseHref()},e.prototype.onPopState=function(t){u().getGlobalEventTarget("window").addEventListener("popstate",t,!1)},e.prototype.onHashChange=function(t){u().getGlobalEventTarget("window").addEventListener("hashchange",t,!1)},Object.defineProperty(e.prototype,"pathname",{get:function(){return this._location.pathname},set:function(t){this._location.pathname=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"search",{get:function(){return this._location.search},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"hash",{get:function(){return this._location.hash},enumerable:!0,configurable:!0}),e.prototype.pushState=function(t,e,n){v()?this._history.pushState(t,e,n):this._location.hash=n},e.prototype.replaceState=function(t,e,n){v()?this._history.replaceState(t,e,n):this._location.hash=n},e.prototype.forward=function(){this._history.forward()},e.prototype.back=function(){this._history.back()},e.decorators=[{type:n.Injectable}],e.ctorParameters=function(){return[]},e}(e.PlatformLocation),dt=function(){function t(){}return t.init=function(){n.setTestabilityGetter(new t)},t.prototype.addToWindow=function(t){$.getAngularTestability=function(e,n){void 0===n&&(n=!0);var r=t.findTestabilityInTree(e,n);if(null==r)throw new Error("Could not find testability for element.");return r},$.getAllAngularTestabilities=function(){return t.getAllTestabilities()},$.getAllAngularRootElements=function(){return t.getAllRootElements()};var e=function(t){var e=$.getAllAngularTestabilities(),n=e.length,r=!1,i=function(e){r=r||e,n--,0==n&&t(r)};e.forEach(function(t){t.whenStable(i)})};$.frameworkStabilizers||($.frameworkStabilizers=[]),$.frameworkStabilizers.push(e)},t.prototype.findTestabilityInTree=function(t,e,n){if(null==e)return null;var i=t.getTestability(e);return r(i)?i:n?u().isShadowRoot(e)?this.findTestabilityInTree(t,u().getHost(e),!0):this.findTestabilityInTree(t,u().parentElement(e),!0):null},t}(),yt=function(){function t(){}return t.prototype.getTitle=function(){return u().getTitle()},t.prototype.setTitle=function(t){u().setTitle(t)},t}(),mt=function(){function t(){}return t.merge=function(t,e){for(var n={},r=0,i=Object.keys(t);r<i.length;r++){var o=i[r];n[o]=t[o]}for(var s=0,a=Object.keys(e);s<a.length;s++){var o=a[s];n[o]=e[o]}return n},t.equals=function(t,e){var n=Object.keys(t),r=Object.keys(e);if(n.length!=r.length)return!1;for(var i=0;i<n.length;i++){var o=n[i];if(t[o]!==e[o])return!1}return!0},t}(),vt=new n.OpaqueToken("DocumentToken"),gt=new n.OpaqueToken("EventManagerPlugins"),_t=function(){function t(t,e){var n=this;this._zone=e,this._eventNameToPlugin=new Map,t.forEach(function(t){return t.manager=n}),this._plugins=t.slice().reverse()}return t.prototype.addEventListener=function(t,e,n){var r=this._findPluginFor(e);return r.addEventListener(t,e,n)},t.prototype.addGlobalEventListener=function(t,e,n){var r=this._findPluginFor(e);return r.addGlobalEventListener(t,e,n)},t.prototype.getZone=function(){return this._zone},t.prototype._findPluginFor=function(t){var e=this._eventNameToPlugin.get(t);if(e)return e;for(var n=this._plugins,r=0;r<n.length;r++){var i=n[r];if(i.supports(t))return this._eventNameToPlugin.set(t,i),i}throw new Error("No event manager plugin found for event "+t)},t.decorators=[{type:n.Injectable}],t.ctorParameters=function(){return[{type:Array,decorators:[{type:n.Inject,args:[gt]}]},{type:n.NgZone}]},t}(),bt=function(){function t(){}return t.prototype.supports=function(){},t.prototype.addEventListener=function(){},t.prototype.addGlobalEventListener=function(t,e,n){var r=u().getGlobalEventTarget(t);if(!r)throw new Error("Unsupported event target "+r+" for event "+e);return this.addEventListener(r,e,n)},t}(),wt=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},Et=function(){function t(){this._stylesSet=new Set}return t.prototype.addStyles=function(t){var e=this,n=new Set;t.forEach(function(t){e._stylesSet.has(t)||(e._stylesSet.add(t),n.add(t))}),this.onStylesAdded(n)},t.prototype.onStylesAdded=function(){},t.prototype.getAllStyles=function(){return Array.from(this._stylesSet)},t.decorators=[{type:n.Injectable}],t.ctorParameters=function(){return[]},t}(),St=function(t){function e(e){t.call(this),this._doc=e,this._hostNodes=new Set,this._styleNodes=new Set,this._hostNodes.add(e.head)}return wt(e,t),e.prototype._addStylesToHost=function(t,e){var n=this;t.forEach(function(t){var r=n._doc.createElement("style");r.textContent=t,n._styleNodes.add(e.appendChild(r))})},e.prototype.addHost=function(t){this._addStylesToHost(this._stylesSet,t),this._hostNodes.add(t)},e.prototype.removeHost=function(t){this._hostNodes["delete"](t)},e.prototype.onStylesAdded=function(t){var e=this;this._hostNodes.forEach(function(n){return e._addStylesToHost(t,n)})},e.prototype.ngOnDestroy=function(){this._styleNodes.forEach(function(t){return u().remove(t)})},e.decorators=[{type:n.Injectable}],e.ctorParameters=function(){return[{type:void 0,decorators:[{type:n.Inject,args:[vt]}]}]},e}(Et),Ct=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},xt={xlink:"http://www.w3.org/1999/xlink",svg:"http://www.w3.org/2000/svg",xhtml:"http://www.w3.org/1999/xhtml"},Tt="template bindings={}",Pt=/^template bindings=(.*)$/,Ot=function(){function t(t,e,n,r,i){this.document=t,this.eventManager=e,this.sharedStylesHost=n,this.animationDriver=r,this.appId=i,this.registeredComponents=new Map}return t.prototype.renderComponent=function(t){var e=this.registeredComponents.get(t.id);return e||(e=new Rt(this,t,this.animationDriver,this.appId+"-"+t.id),this.registeredComponents.set(t.id,e)),e},t}(),At=function(t){function e(e,n,r,i,o){t.call(this,e,n,r,i,o)}return Ct(e,t),e.decorators=[{type:n.Injectable}],e.ctorParameters=function(){return[{type:void 0,decorators:[{type:n.Inject,args:[vt]}]},{type:_t},{type:St},{type:Y},{type:void 0,decorators:[{type:n.Inject,args:[n.APP_ID]}]}]},e}(Ot),Mt={remove:function(t){t.parentNode&&t.parentNode.removeChild(t)},appendChild:function(t,e){e.appendChild(t)},insertBefore:function(t,e){e.parentNode.insertBefore(t,e)},nextSibling:function(t){return t.nextSibling},parentElement:function(t){return t.parentNode}},Rt=function(){function t(t,e,r,i){this._rootRenderer=t,this.componentProto=e,this._animationDriver=r,this.directRenderer=Mt,this._styles=S(i,e.styles,[]),e.encapsulation!==n.ViewEncapsulation.Native&&this._rootRenderer.sharedStylesHost.addStyles(this._styles),this.componentProto.encapsulation===n.ViewEncapsulation.Emulated?(this._contentAttr=w(i),this._hostAttr=E(i)):(this._contentAttr=null,this._hostAttr=null)}return t.prototype.selectRootElement=function(t){var e;if("string"==typeof t){if(e=this._rootRenderer.document.querySelector(t),!e)throw new Error('The selector "'+t+'" did not match any elements')}else e=t;for(;e.firstChild;)e.removeChild(e.firstChild);return e},t.prototype.createElement=function(t,e){var n;if(C(e)){var r=x(e);n=document.createElementNS(xt[r[0]],r[1])}else n=document.createElement(e);return this._contentAttr&&n.setAttribute(this._contentAttr,""),t&&t.appendChild(n),n},t.prototype.createViewRoot=function(t){var e;if(this.componentProto.encapsulation===n.ViewEncapsulation.Native){e=t.createShadowRoot();for(var r=0;r<this._styles.length;r++){var i=document.createElement("style");i.textContent=this._styles[r],e.appendChild(i)}}else this._hostAttr&&t.setAttribute(this._hostAttr,""),e=t;return e},t.prototype.createTemplateAnchor=function(t){var e=document.createComment(Tt);return t&&t.appendChild(e),e},t.prototype.createText=function(t,e){var n=document.createTextNode(e);return t&&t.appendChild(n),n},t.prototype.projectNodes=function(t,e){t&&_(t,e)},t.prototype.attachViewAfter=function(t,e){g(t,e)},t.prototype.detachView=function(t){for(var e=0;e<t.length;e++){var n=t[e];n.parentNode&&n.parentNode.removeChild(n)}},t.prototype.destroyView=function(t){this.componentProto.encapsulation===n.ViewEncapsulation.Native&&t&&this._rootRenderer.sharedStylesHost.removeHost(t.shadowRoot)},t.prototype.listen=function(t,e,n){return this._rootRenderer.eventManager.addEventListener(t,e,b(n))},t.prototype.listenGlobal=function(t,e,n){return this._rootRenderer.eventManager.addGlobalEventListener(t,e,b(n))},t.prototype.setElementProperty=function(t,e,n){t[e]=n},t.prototype.setElementAttribute=function(t,e,n){var i,o=e;if(C(e)){var s=x(e);o=s[1],e=s[0]+":"+s[1],i=xt[s[0]]}r(n)?i?t.setAttributeNS(i,e,n):t.setAttribute(e,n):r(i)?t.removeAttributeNS(i,o):t.removeAttribute(e)},t.prototype.setBindingDebugInfo=function(t,e,n){if(t.nodeType===Node.COMMENT_NODE){var r=t.nodeValue.replace(/\n/g,"").match(Pt),i=JSON.parse(r[1]);i[e]=n,t.nodeValue=Tt.replace("{}",JSON.stringify(i,null,2))}else this.setElementAttribute(t,e,n)},t.prototype.setElementClass=function(t,e,n){n?t.classList.add(e):t.classList.remove(e)},t.prototype.setElementStyle=function(t,e,n){t.style[e]=r(n)?s(n):""},t.prototype.invokeElementMethod=function(t,e,n){t[e].apply(t,n)},t.prototype.setText=function(t,e){t.nodeValue=e},t.prototype.animate=function(t,e,n,r,i,o,s){return void 0===s&&(s=[]),this._rootRenderer.document.body.contains(t)?this._animationDriver.animate(t,e,n,r,i,o,s):new X},t}(),kt=/%COMP%/g,Nt="%COMP%",It="_nghost-"+Nt,Dt="_ngcontent-"+Nt,jt=/^:([^:]+):(.+)$/,Lt={ApplicationRef:n.ApplicationRef,NgZone:n.NgZone},Vt="ng.probe",Ft="ng.coreTokens",Ut=function(){function t(t,e){this.name=t,this.token=e}return t}(),Bt=[{provide:n.RootRenderer,useFactory:P,deps:[Ot,[Ut,new n.Optional],[n.NgProbeToken,new n.Optional]]}],Ht=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},qt=function(t){function e(){t.apply(this,arguments)}return Ht(e,t),e.prototype.supports=function(){return!0},e.prototype.addEventListener=function(t,e,n){return t.addEventListener(e,n,!1),function(){return t.removeEventListener(e,n,!1)}},e.decorators=[{type:n.Injectable}],e.ctorParameters=function(){return[]},e}(bt),zt=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},Wt={pan:!0,panstart:!0,panmove:!0,panend:!0,pancancel:!0,panleft:!0,panright:!0,panup:!0,pandown:!0,pinch:!0,pinchstart:!0,pinchmove:!0,pinchend:!0,pinchcancel:!0,pinchin:!0,pinchout:!0,press:!0,pressup:!0,rotate:!0,rotatestart:!0,rotatemove:!0,rotateend:!0,rotatecancel:!0,swipe:!0,swipeleft:!0,swiperight:!0,swipeup:!0,swipedown:!0,tap:!0},Gt=new n.OpaqueToken("HammerGestureConfig"),Kt=function(){function t(){this.events=[],this.overrides={}}return t.prototype.buildHammer=function(t){var e=new Hammer(t);e.get("pinch").set({enable:!0}),e.get("rotate").set({enable:!0});for(var n in this.overrides)e.get(n).set(this.overrides[n]);return e},t.decorators=[{type:n.Injectable}],t.ctorParameters=function(){return[]},t}(),Xt=function(t){function e(e){t.call(this),this._config=e}return zt(e,t),e.prototype.supports=function(t){if(!Wt.hasOwnProperty(t.toLowerCase())&&!this.isCustomEvent(t))return!1;if(!window.Hammer)throw new Error("Hammer.js is not loaded, can not bind "+t+" event");return!0},e.prototype.addEventListener=function(t,e,n){var r=this,i=this.manager.getZone();return e=e.toLowerCase(),i.runOutsideAngular(function(){var o=r._config.buildHammer(t),s=function(t){i.runGuarded(function(){n(t)})};return o.on(e,s),function(){return o.off(e,s)}})},e.prototype.isCustomEvent=function(t){return this._config.events.indexOf(t)>-1},e.decorators=[{type:n.Injectable}],e.ctorParameters=function(){return[{type:Kt,decorators:[{type:n.Inject,args:[Gt]}]}]},e}(bt),Qt=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},Yt=["alt","control","meta","shift"],$t={alt:function(t){return t.altKey},control:function(t){return t.ctrlKey},meta:function(t){return t.metaKey},shift:function(t){return t.shiftKey}},Zt=function(t){function e(){t.call(this)}return Qt(e,t),e.prototype.supports=function(t){return null!=e.parseEventName(t)},e.prototype.addEventListener=function(t,n,r){var i=e.parseEventName(n),o=e.eventCallback(i.fullKey,r,this.manager.getZone());return this.manager.getZone().runOutsideAngular(function(){return u().onAndCancel(t,i.domEventName,o)})},e.parseEventName=function(t){var n=t.toLowerCase().split("."),r=n.shift();if(0===n.length||"keydown"!==r&&"keyup"!==r)return null;var i=e._normalizeKey(n.pop()),o="";if(Yt.forEach(function(t){var e=n.indexOf(t);e>-1&&(n.splice(e,1),o+=t+".")}),o+=i,0!=n.length||0===i.length)return null;var s={};return s.domEventName=r,s.fullKey=o,s},e.getEventFullKey=function(t){var e="",n=u().getEventKey(t);return n=n.toLowerCase()," "===n?n="space":"."===n&&(n="dot"),Yt.forEach(function(r){if(r!=n){var i=$t[r];i(t)&&(e+=r+".")}}),e+=n},e.eventCallback=function(t,n,r){return function(i){e.getEventFullKey(i)===t&&r.runGuarded(function(){return n(i)})}},e._normalizeKey=function(t){switch(t){case"esc":return"escape";default:return t}},e.decorators=[{type:n.Injectable}],e.ctorParameters=function(){return[]},e}(bt),Jt=/^(?:(?:https?|mailto|ftp|tel|file):|[^&:\/?#]*(?:[\/?#]|$))/gi,te=/^data:(?:image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp)|video\/(?:mpeg|mp4|ogg|webm)|audio\/(?:mp3|oga|ogg|opus));base64,[a-z0-9+\/]+=*$/i,ee=null,ne=null,re=N("area,br,col,hr,img,wbr"),ie=N("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),oe=N("rp,rt"),se=I(oe,ie),ae=I(ie,N("address,article,aside,blockquote,caption,center,del,details,dialog,dir,div,dl,figure,figcaption,footer,h1,h2,h3,h4,h5,h6,header,hgroup,hr,ins,main,map,menu,nav,ol,pre,section,summary,table,ul")),ue=I(oe,N("a,abbr,acronym,audio,b,bdi,bdo,big,br,cite,code,del,dfn,em,font,i,img,ins,kbd,label,map,mark,picture,q,ruby,rp,rt,s,samp,small,source,span,strike,strong,sub,sup,time,track,tt,u,var,video")),ce=I(re,ae,ue,se),pe=N("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),le=N("srcset"),he=N("abbr,accesskey,align,alt,autoplay,axis,bgcolor,border,cellpadding,cellspacing,class,clear,color,cols,colspan,compact,controls,coords,datetime,default,dir,download,face,headers,height,hidden,hreflang,hspace,ismap,itemscope,itemprop,kind,label,lang,language,loop,media,muted,nohref,nowrap,open,preload,rel,rev,role,rows,rowspan,rules,scope,scrolling,shape,size,sizes,span,srclang,start,summary,tabindex,target,title,translate,type,usemap,valign,value,vspace,width"),fe=I(pe,le,he),de=function(){function t(){this.sanitizedSomething=!1,this.buf=[]}return t.prototype.sanitizeChildren=function(t){for(var e=t.firstChild;e;)if(ne.isElementNode(e)?this.startElement(e):ne.isTextNode(e)?this.chars(ne.nodeValue(e)):this.sanitizedSomething=!0,ne.firstChild(e))e=ne.firstChild(e);else for(;e;){if(ne.isElementNode(e)&&this.endElement(e),ne.nextSibling(e)){e=ne.nextSibling(e);break}e=ne.parentElement(e)}return this.buf.join("")},t.prototype.startElement=function(t){var e=this,n=ne.nodeName(t).toLowerCase();return ce.hasOwnProperty(n)?(this.buf.push("<"),this.buf.push(n),ne.attributeMap(t).forEach(function(t,n){var r=n.toLowerCase();return fe.hasOwnProperty(r)?(pe[r]&&(t=M(t)),le[r]&&(t=R(t)),e.buf.push(" "),e.buf.push(n),e.buf.push('="'),e.buf.push(D(t)),void e.buf.push('"')):void(e.sanitizedSomething=!0)}),void this.buf.push(">")):void(this.sanitizedSomething=!0)},t.prototype.endElement=function(t){var e=ne.nodeName(t).toLowerCase();ce.hasOwnProperty(e)&&!re.hasOwnProperty(e)&&(this.buf.push("</"),this.buf.push(e),this.buf.push(">"))},t.prototype.chars=function(t){this.buf.push(D(t))},t}(),ye=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,me=/([^\#-~ |!])/g,ve="[-,.\"'%_!# a-zA-Z0-9]+",ge="(?:matrix|translate|scale|rotate|skew|perspective)(?:X|Y|3d)?",_e="(?:rgb|hsl)a?",be="(?:repeating-)?(?:linear|radial)-gradient",we="(?:calc|attr)",Ee="\\([-0-9.%, #a-zA-Z]+\\)",Se=new RegExp("^("+ve+"|"+("(?:"+ge+"|"+_e+"|"+be+"|"+we+")")+(Ee+")$"),"g"),Ce=/^url\(([^)]+)\)$/,xe=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},Te=function(){function t(){}return t.prototype.sanitize=function(){},t.prototype.bypassSecurityTrustHtml=function(){},t.prototype.bypassSecurityTrustStyle=function(){},t.prototype.bypassSecurityTrustScript=function(){},t.prototype.bypassSecurityTrustUrl=function(){},t.prototype.bypassSecurityTrustResourceUrl=function(){},t}(),Pe=function(t){function e(){t.apply(this,arguments)}return xe(e,t),e.prototype.sanitize=function(t,e){if(null==e)return null;switch(t){case n.SecurityContext.NONE:return e;case n.SecurityContext.HTML:return e instanceof Ae?e.changingThisBreaksApplicationSecurity:(this.checkNotSafeValue(e,"HTML"),L(String(e)));case n.SecurityContext.STYLE:return e instanceof Me?e.changingThisBreaksApplicationSecurity:(this.checkNotSafeValue(e,"Style"),F(e));case n.SecurityContext.SCRIPT:if(e instanceof Re)return e.changingThisBreaksApplicationSecurity;throw this.checkNotSafeValue(e,"Script"),new Error("unsafe value used in a script context");case n.SecurityContext.URL:return e instanceof Ne||e instanceof ke?e.changingThisBreaksApplicationSecurity:(this.checkNotSafeValue(e,"URL"),M(String(e)));case n.SecurityContext.RESOURCE_URL:if(e instanceof Ne)return e.changingThisBreaksApplicationSecurity;throw this.checkNotSafeValue(e,"ResourceURL"),new Error("unsafe value used in a resource URL context (see http://g.co/ng/security#xss)");default:throw new Error("Unexpected SecurityContext "+t+" (see http://g.co/ng/security#xss)")}},e.prototype.checkNotSafeValue=function(t,e){if(t instanceof Oe)throw new Error("Required a safe "+e+", got a "+t.getTypeName()+" (see http://g.co/ng/security#xss)")},e.prototype.bypassSecurityTrustHtml=function(t){return new Ae(t)},e.prototype.bypassSecurityTrustStyle=function(t){return new Me(t)},e.prototype.bypassSecurityTrustScript=function(t){return new Re(t)},e.prototype.bypassSecurityTrustUrl=function(t){return new ke(t)},e.prototype.bypassSecurityTrustResourceUrl=function(t){return new Ne(t)},e.decorators=[{type:n.Injectable}],e.ctorParameters=function(){return[]},e}(Te),Oe=function(){function t(t){this.changingThisBreaksApplicationSecurity=t; -},t.prototype.play=function(){this.init(),this.hasStarted()||(this._onStartFns.forEach(function(t){return t()}),this._onStartFns=[],this._started=!0),this._player.play()},t.prototype.pause=function(){this.init(),this._player.pause()},t.prototype.finish=function(){this.init(),this._onFinish(),this._player.finish()},t.prototype.reset=function(){this._resetDomPlayerState(),this._destroyed=!1,this._finished=!1,this._started=!1},t.prototype._resetDomPlayerState=function(){this._player&&this._player.cancel()},t.prototype.restart=function(){this.reset(),this.play()},t.prototype.hasStarted=function(){return this._started},t.prototype.destroy=function(){this._destroyed||(this._resetDomPlayerState(),this._onFinish(),this._destroyed=!0)},Object.defineProperty(t.prototype,"totalTime",{get:function(){return this._duration},enumerable:!0,configurable:!0}),t.prototype.setPosition=function(t){this._player.currentTime=t*this.totalTime},t.prototype.getPosition=function(){return this._player.currentTime/this.totalTime},t.prototype._captureStyles=function(){var t=this,e={};return this.hasStarted()&&Object.keys(this._finalKeyframe).forEach(function(n){"offset"!=n&&(e[n]=t._finished?t._finalKeyframe[n]:p(t.element,n))}),e},t}(),nt=function(){function t(){}return t.prototype.animate=function(t,e,n,i,o,s,a){void 0===a&&(a=[]);var u=[],c={};if(r(e)&&(c=h(e,{})),n.forEach(function(t){var e=h(t.styles,c);e.offset=Math.max(0,Math.min(1,t.offset)),u.push(e)}),0==u.length)u=[c,c];else if(1==u.length){var p=c,l=u[0];l.offset=null,u=[p,l]}var d={duration:i,delay:o,fill:"both"};return s&&(d.easing=s),a=a.filter(f),new et(t,u,d,a)},t}(),rt=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},it=function(t){function e(){var e=this;t.call(this),this._animationPrefix=null,this._transitionEnd=null;try{var n=this.createElement("div",this.defaultDoc());if(r(this.getStyle(n,"animationName")))this._animationPrefix="";else for(var i=["Webkit","Moz","O","ms"],o=0;o<i.length;o++)if(r(this.getStyle(n,i[o]+"AnimationName"))){this._animationPrefix="-"+i[o].toLowerCase()+"-";break}var s={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend",transition:"transitionend"};Object.keys(s).forEach(function(t){r(e.getStyle(n,t))&&(e._transitionEnd=s[t])})}catch(a){this._animationPrefix=null,this._transitionEnd=null}}return rt(e,t),e.prototype.getDistributedNodes=function(t){return t.getDistributedNodes()},e.prototype.resolveAndSetHref=function(t,e,n){t.href=null==n?e:e+"/../"+n},e.prototype.supportsDOMEvents=function(){return!0},e.prototype.supportsNativeShadowDOM=function(){return"function"==typeof this.defaultDoc().body.createShadowRoot},e.prototype.getAnimationPrefix=function(){return this._animationPrefix?this._animationPrefix:""},e.prototype.getTransitionEnd=function(){return this._transitionEnd?this._transitionEnd:""},e.prototype.supportsAnimation=function(){return r(this._animationPrefix)&&r(this._transitionEnd)},e}(tt),ot=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},st={"class":"className",innerHtml:"innerHTML",readonly:"readOnly",tabindex:"tabIndex"},at=3,ut={"\b":"Backspace"," ":"Tab","":"Delete","":"Escape",Del:"Delete",Esc:"Escape",Left:"ArrowLeft",Right:"ArrowRight",Up:"ArrowUp",Down:"ArrowDown",Menu:"ContextMenu",Scroll:"ScrollLock",Win:"OS"},ct={A:"1",B:"2",C:"3",D:"4",E:"5",F:"6",G:"7",H:"8",I:"9",J:"*",K:"+",M:"-",N:".",O:"/","`":"0","Â":"NumLock"},pt=function(t){function e(){t.apply(this,arguments)}return ot(e,t),e.prototype.parse=function(){throw new Error("parse not implemented")},e.makeCurrent=function(){c(new e)},e.prototype.hasProperty=function(t,e){return e in t},e.prototype.setProperty=function(t,e,n){t[e]=n},e.prototype.getProperty=function(t,e){return t[e]},e.prototype.invoke=function(t,e,n){(r=t)[e].apply(r,n);var r},e.prototype.logError=function(t){window.console&&(console.error?console.error(t):console.log(t))},e.prototype.log=function(t){window.console&&window.console.log&&window.console.log(t)},e.prototype.logGroup=function(t){window.console&&window.console.group&&window.console.group(t)},e.prototype.logGroupEnd=function(){window.console&&window.console.groupEnd&&window.console.groupEnd()},Object.defineProperty(e.prototype,"attrToPropMap",{get:function(){return st},enumerable:!0,configurable:!0}),e.prototype.query=function(t){return document.querySelector(t)},e.prototype.querySelector=function(t,e){return t.querySelector(e)},e.prototype.querySelectorAll=function(t,e){return t.querySelectorAll(e)},e.prototype.on=function(t,e,n){t.addEventListener(e,n,!1)},e.prototype.onAndCancel=function(t,e,n){return t.addEventListener(e,n,!1),function(){t.removeEventListener(e,n,!1)}},e.prototype.dispatchEvent=function(t,e){t.dispatchEvent(e)},e.prototype.createMouseEvent=function(t){var e=document.createEvent("MouseEvent");return e.initEvent(t,!0,!0),e},e.prototype.createEvent=function(t){var e=document.createEvent("Event");return e.initEvent(t,!0,!0),e},e.prototype.preventDefault=function(t){t.preventDefault(),t.returnValue=!1},e.prototype.isPrevented=function(t){return t.defaultPrevented||r(t.returnValue)&&!t.returnValue},e.prototype.getInnerHTML=function(t){return t.innerHTML},e.prototype.getTemplateContent=function(t){return"content"in t&&t instanceof HTMLTemplateElement?t.content:null},e.prototype.getOuterHTML=function(t){return t.outerHTML},e.prototype.nodeName=function(t){return t.nodeName},e.prototype.nodeValue=function(t){return t.nodeValue},e.prototype.type=function(t){return t.type},e.prototype.content=function(t){return this.hasProperty(t,"content")?t.content:t},e.prototype.firstChild=function(t){return t.firstChild},e.prototype.nextSibling=function(t){return t.nextSibling},e.prototype.parentElement=function(t){return t.parentNode},e.prototype.childNodes=function(t){return t.childNodes},e.prototype.childNodesAsList=function(t){for(var e=t.childNodes,n=new Array(e.length),r=0;r<e.length;r++)n[r]=e[r];return n},e.prototype.clearNodes=function(t){for(;t.firstChild;)t.removeChild(t.firstChild)},e.prototype.appendChild=function(t,e){t.appendChild(e)},e.prototype.removeChild=function(t,e){t.removeChild(e)},e.prototype.replaceChild=function(t,e,n){t.replaceChild(e,n)},e.prototype.remove=function(t){return t.parentNode&&t.parentNode.removeChild(t),t},e.prototype.insertBefore=function(t,e){t.parentNode.insertBefore(e,t)},e.prototype.insertAllBefore=function(t,e){e.forEach(function(e){return t.parentNode.insertBefore(e,t)})},e.prototype.insertAfter=function(t,e){t.parentNode.insertBefore(e,t.nextSibling)},e.prototype.setInnerHTML=function(t,e){t.innerHTML=e},e.prototype.getText=function(t){return t.textContent},e.prototype.setText=function(t,e){t.textContent=e},e.prototype.getValue=function(t){return t.value},e.prototype.setValue=function(t,e){t.value=e},e.prototype.getChecked=function(t){return t.checked},e.prototype.setChecked=function(t,e){t.checked=e},e.prototype.createComment=function(t){return document.createComment(t)},e.prototype.createTemplate=function(t){var e=document.createElement("template");return e.innerHTML=t,e},e.prototype.createElement=function(t,e){return void 0===e&&(e=document),e.createElement(t)},e.prototype.createElementNS=function(t,e,n){return void 0===n&&(n=document),n.createElementNS(t,e)},e.prototype.createTextNode=function(t,e){return void 0===e&&(e=document),e.createTextNode(t)},e.prototype.createScriptTag=function(t,e,n){void 0===n&&(n=document);var r=n.createElement("SCRIPT");return r.setAttribute(t,e),r},e.prototype.createStyleElement=function(t,e){void 0===e&&(e=document);var n=e.createElement("style");return this.appendChild(n,this.createTextNode(t)),n},e.prototype.createShadowRoot=function(t){return t.createShadowRoot()},e.prototype.getShadowRoot=function(t){return t.shadowRoot},e.prototype.getHost=function(t){return t.host},e.prototype.clone=function(t){return t.cloneNode(!0)},e.prototype.getElementsByClassName=function(t,e){return t.getElementsByClassName(e)},e.prototype.getElementsByTagName=function(t,e){return t.getElementsByTagName(e)},e.prototype.classList=function(t){return Array.prototype.slice.call(t.classList,0)},e.prototype.addClass=function(t,e){t.classList.add(e)},e.prototype.removeClass=function(t,e){t.classList.remove(e)},e.prototype.hasClass=function(t,e){return t.classList.contains(e)},e.prototype.setStyle=function(t,e,n){t.style[e]=n},e.prototype.removeStyle=function(t,e){t.style[e]=""},e.prototype.getStyle=function(t,e){return t.style[e]},e.prototype.hasStyle=function(t,e,n){void 0===n&&(n=null);var r=this.getStyle(t,e)||"";return n?r==n:r.length>0},e.prototype.tagName=function(t){return t.tagName},e.prototype.attributeMap=function(t){for(var e=new Map,n=t.attributes,r=0;r<n.length;r++){var i=n[r];e.set(i.name,i.value)}return e},e.prototype.hasAttribute=function(t,e){return t.hasAttribute(e)},e.prototype.hasAttributeNS=function(t,e,n){return t.hasAttributeNS(e,n)},e.prototype.getAttribute=function(t,e){return t.getAttribute(e)},e.prototype.getAttributeNS=function(t,e,n){return t.getAttributeNS(e,n)},e.prototype.setAttribute=function(t,e,n){t.setAttribute(e,n)},e.prototype.setAttributeNS=function(t,e,n,r){t.setAttributeNS(e,n,r)},e.prototype.removeAttribute=function(t,e){t.removeAttribute(e)},e.prototype.removeAttributeNS=function(t,e,n){t.removeAttributeNS(e,n)},e.prototype.templateAwareRoot=function(t){return this.isTemplateElement(t)?this.content(t):t},e.prototype.createHtmlDocument=function(){return document.implementation.createHTMLDocument("fakeTitle")},e.prototype.defaultDoc=function(){return document},e.prototype.getBoundingClientRect=function(t){try{return t.getBoundingClientRect()}catch(e){return{top:0,bottom:0,left:0,right:0,width:0,height:0}}},e.prototype.getTitle=function(){return document.title},e.prototype.setTitle=function(t){document.title=t||""},e.prototype.elementMatches=function(t,e){return t instanceof HTMLElement?t.matches&&t.matches(e)||t.msMatchesSelector&&t.msMatchesSelector(e)||t.webkitMatchesSelector&&t.webkitMatchesSelector(e):!1},e.prototype.isTemplateElement=function(t){return t instanceof HTMLElement&&"TEMPLATE"==t.nodeName},e.prototype.isTextNode=function(t){return t.nodeType===Node.TEXT_NODE},e.prototype.isCommentNode=function(t){return t.nodeType===Node.COMMENT_NODE},e.prototype.isElementNode=function(t){return t.nodeType===Node.ELEMENT_NODE},e.prototype.hasShadowRoot=function(t){return r(t.shadowRoot)&&t instanceof HTMLElement},e.prototype.isShadowRoot=function(t){return t instanceof DocumentFragment},e.prototype.importIntoDoc=function(t){return document.importNode(this.templateAwareRoot(t),!0)},e.prototype.adoptNode=function(t){return document.adoptNode(t)},e.prototype.getHref=function(t){return t.href},e.prototype.getEventKey=function(t){var e=t.key;if(o(e)){if(e=t.keyIdentifier,o(e))return"Unidentified";e.startsWith("U+")&&(e=String.fromCharCode(parseInt(e.substring(2),16)),t.location===at&&ct.hasOwnProperty(e)&&(e=ct[e]))}return ut[e]||e},e.prototype.getGlobalEventTarget=function(t){return"window"===t?window:"document"===t?document:"body"===t?document.body:void 0},e.prototype.getHistory=function(){return window.history},e.prototype.getLocation=function(){return window.location},e.prototype.getBaseHref=function(){var t=d();return o(t)?null:y(t)},e.prototype.resetBaseElement=function(){lt=null},e.prototype.getUserAgent=function(){return window.navigator.userAgent},e.prototype.setData=function(t,e,n){this.setAttribute(t,"data-"+e,n)},e.prototype.getData=function(t,e){return this.getAttribute(t,"data-"+e)},e.prototype.getComputedStyle=function(t){return getComputedStyle(t)},e.prototype.setGlobalVar=function(t,e){a($,t,e)},e.prototype.supportsWebAnimation=function(){return"function"==typeof Element.prototype.animate},e.prototype.performanceNow=function(){return window.performance&&window.performance.now?window.performance.now():(new Date).getTime()},e.prototype.supportsCookies=function(){return!0},e.prototype.getCookie=function(t){return m(document.cookie,t)},e.prototype.setCookie=function(t,e){document.cookie=encodeURIComponent(t)+"="+encodeURIComponent(e)},e}(it),lt=null,ht=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},ft=function(t){function e(){t.call(this),this._init()}return ht(e,t),e.prototype._init=function(){this._location=u().getLocation(),this._history=u().getHistory()},Object.defineProperty(e.prototype,"location",{get:function(){return this._location},enumerable:!0,configurable:!0}),e.prototype.getBaseHrefFromDOM=function(){return u().getBaseHref()},e.prototype.onPopState=function(t){u().getGlobalEventTarget("window").addEventListener("popstate",t,!1)},e.prototype.onHashChange=function(t){u().getGlobalEventTarget("window").addEventListener("hashchange",t,!1)},Object.defineProperty(e.prototype,"pathname",{get:function(){return this._location.pathname},set:function(t){this._location.pathname=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"search",{get:function(){return this._location.search},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"hash",{get:function(){return this._location.hash},enumerable:!0,configurable:!0}),e.prototype.pushState=function(t,e,n){v()?this._history.pushState(t,e,n):this._location.hash=n},e.prototype.replaceState=function(t,e,n){v()?this._history.replaceState(t,e,n):this._location.hash=n},e.prototype.forward=function(){this._history.forward()},e.prototype.back=function(){this._history.back()},e.decorators=[{type:n.Injectable}],e.ctorParameters=function(){return[]},e}(e.PlatformLocation),dt=function(){function t(){}return t.init=function(){n.setTestabilityGetter(new t)},t.prototype.addToWindow=function(t){$.getAngularTestability=function(e,n){void 0===n&&(n=!0);var r=t.findTestabilityInTree(e,n);if(null==r)throw new Error("Could not find testability for element.");return r},$.getAllAngularTestabilities=function(){return t.getAllTestabilities()},$.getAllAngularRootElements=function(){return t.getAllRootElements()};var e=function(t){var e=$.getAllAngularTestabilities(),n=e.length,r=!1,i=function(e){r=r||e,n--,0==n&&t(r)};e.forEach(function(t){t.whenStable(i)})};$.frameworkStabilizers||($.frameworkStabilizers=[]),$.frameworkStabilizers.push(e)},t.prototype.findTestabilityInTree=function(t,e,n){if(null==e)return null;var i=t.getTestability(e);return r(i)?i:n?u().isShadowRoot(e)?this.findTestabilityInTree(t,u().getHost(e),!0):this.findTestabilityInTree(t,u().parentElement(e),!0):null},t}(),yt=function(){function t(){}return t.prototype.getTitle=function(){return u().getTitle()},t.prototype.setTitle=function(t){u().setTitle(t)},t}(),mt=function(){function t(){}return t.merge=function(t,e){for(var n={},r=0,i=Object.keys(t);r<i.length;r++){var o=i[r];n[o]=t[o]}for(var s=0,a=Object.keys(e);s<a.length;s++){var o=a[s];n[o]=e[o]}return n},t.equals=function(t,e){var n=Object.keys(t),r=Object.keys(e);if(n.length!=r.length)return!1;for(var i=0;i<n.length;i++){var o=n[i];if(t[o]!==e[o])return!1}return!0},t}(),vt=new n.OpaqueToken("DocumentToken"),gt=new n.OpaqueToken("EventManagerPlugins"),_t=function(){function t(t,e){var n=this;this._zone=e,this._eventNameToPlugin=new Map,t.forEach(function(t){return t.manager=n}),this._plugins=t.slice().reverse()}return t.prototype.addEventListener=function(t,e,n){var r=this._findPluginFor(e);return r.addEventListener(t,e,n)},t.prototype.addGlobalEventListener=function(t,e,n){var r=this._findPluginFor(e);return r.addGlobalEventListener(t,e,n)},t.prototype.getZone=function(){return this._zone},t.prototype._findPluginFor=function(t){var e=this._eventNameToPlugin.get(t);if(e)return e;for(var n=this._plugins,r=0;r<n.length;r++){var i=n[r];if(i.supports(t))return this._eventNameToPlugin.set(t,i),i}throw new Error("No event manager plugin found for event "+t)},t.decorators=[{type:n.Injectable}],t.ctorParameters=function(){return[{type:Array,decorators:[{type:n.Inject,args:[gt]}]},{type:n.NgZone}]},t}(),bt=function(){function t(){}return t.prototype.supports=function(){},t.prototype.addEventListener=function(){},t.prototype.addGlobalEventListener=function(t,e,n){var r=u().getGlobalEventTarget(t);if(!r)throw new Error("Unsupported event target "+r+" for event "+e);return this.addEventListener(r,e,n)},t}(),wt=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},Et=function(){function t(){this._stylesSet=new Set}return t.prototype.addStyles=function(t){var e=this,n=new Set;t.forEach(function(t){e._stylesSet.has(t)||(e._stylesSet.add(t),n.add(t))}),this.onStylesAdded(n)},t.prototype.onStylesAdded=function(){},t.prototype.getAllStyles=function(){return Array.from(this._stylesSet)},t.decorators=[{type:n.Injectable}],t.ctorParameters=function(){return[]},t}(),St=function(t){function e(e){t.call(this),this._doc=e,this._hostNodes=new Set,this._styleNodes=new Set,this._hostNodes.add(e.head)}return wt(e,t),e.prototype._addStylesToHost=function(t,e){var n=this;t.forEach(function(t){var r=n._doc.createElement("style");r.textContent=t,n._styleNodes.add(e.appendChild(r))})},e.prototype.addHost=function(t){this._addStylesToHost(this._stylesSet,t),this._hostNodes.add(t)},e.prototype.removeHost=function(t){this._hostNodes["delete"](t)},e.prototype.onStylesAdded=function(t){var e=this;this._hostNodes.forEach(function(n){return e._addStylesToHost(t,n)})},e.prototype.ngOnDestroy=function(){this._styleNodes.forEach(function(t){return u().remove(t)})},e.decorators=[{type:n.Injectable}],e.ctorParameters=function(){return[{type:void 0,decorators:[{type:n.Inject,args:[vt]}]}]},e}(Et),Ct=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},xt={xlink:"http://www.w3.org/1999/xlink",svg:"http://www.w3.org/2000/svg",xhtml:"http://www.w3.org/1999/xhtml"},Tt="template bindings={}",Pt=/^template bindings=(.*)$/,Ot=function(){function t(t,e,n,r,i){this.document=t,this.eventManager=e,this.sharedStylesHost=n,this.animationDriver=r,this.appId=i,this.registeredComponents=new Map}return t.prototype.renderComponent=function(t){var e=this.registeredComponents.get(t.id);return e||(e=new Rt(this,t,this.animationDriver,this.appId+"-"+t.id),this.registeredComponents.set(t.id,e)),e},t}(),At=function(t){function e(e,n,r,i,o){t.call(this,e,n,r,i,o)}return Ct(e,t),e.decorators=[{type:n.Injectable}],e.ctorParameters=function(){return[{type:void 0,decorators:[{type:n.Inject,args:[vt]}]},{type:_t},{type:St},{type:Y},{type:void 0,decorators:[{type:n.Inject,args:[n.APP_ID]}]}]},e}(Ot),Mt={remove:function(t){t.parentNode&&t.parentNode.removeChild(t)},appendChild:function(t,e){e.appendChild(t)},insertBefore:function(t,e){e.parentNode.insertBefore(t,e)},nextSibling:function(t){return t.nextSibling},parentElement:function(t){return t.parentNode}},Rt=function(){function t(t,e,r,i){this._rootRenderer=t,this.componentProto=e,this._animationDriver=r,this.directRenderer=Mt,this._styles=S(i,e.styles,[]),e.encapsulation!==n.ViewEncapsulation.Native&&this._rootRenderer.sharedStylesHost.addStyles(this._styles),this.componentProto.encapsulation===n.ViewEncapsulation.Emulated?(this._contentAttr=w(i),this._hostAttr=E(i)):(this._contentAttr=null,this._hostAttr=null)}return t.prototype.selectRootElement=function(t){var e;if("string"==typeof t){if(e=this._rootRenderer.document.querySelector(t),!e)throw new Error('The selector "'+t+'" did not match any elements')}else e=t;for(;e.firstChild;)e.removeChild(e.firstChild);return e},t.prototype.createElement=function(t,e){var n;if(C(e)){var r=x(e);n=document.createElementNS(xt[r[0]],r[1])}else n=document.createElement(e);return this._contentAttr&&n.setAttribute(this._contentAttr,""),t&&t.appendChild(n),n},t.prototype.createViewRoot=function(t){var e;if(this.componentProto.encapsulation===n.ViewEncapsulation.Native){e=t.createShadowRoot();for(var r=0;r<this._styles.length;r++){var i=document.createElement("style");i.textContent=this._styles[r],e.appendChild(i)}}else this._hostAttr&&t.setAttribute(this._hostAttr,""),e=t;return e},t.prototype.createTemplateAnchor=function(t){var e=document.createComment(Tt);return t&&t.appendChild(e),e},t.prototype.createText=function(t,e){var n=document.createTextNode(e);return t&&t.appendChild(n),n},t.prototype.projectNodes=function(t,e){t&&_(t,e)},t.prototype.attachViewAfter=function(t,e){g(t,e)},t.prototype.detachView=function(t){for(var e=0;e<t.length;e++){var n=t[e];n.parentNode&&n.parentNode.removeChild(n)}},t.prototype.destroyView=function(t){this.componentProto.encapsulation===n.ViewEncapsulation.Native&&t&&this._rootRenderer.sharedStylesHost.removeHost(t.shadowRoot)},t.prototype.listen=function(t,e,n){return this._rootRenderer.eventManager.addEventListener(t,e,b(n))},t.prototype.listenGlobal=function(t,e,n){return this._rootRenderer.eventManager.addGlobalEventListener(t,e,b(n))},t.prototype.setElementProperty=function(t,e,n){t[e]=n},t.prototype.setElementAttribute=function(t,e,n){var i,o=e;if(C(e)){var s=x(e);o=s[1],e=s[0]+":"+s[1],i=xt[s[0]]}r(n)?i?t.setAttributeNS(i,e,n):t.setAttribute(e,n):r(i)?t.removeAttributeNS(i,o):t.removeAttribute(e)},t.prototype.setBindingDebugInfo=function(t,e,n){if(t.nodeType===Node.COMMENT_NODE){var r=t.nodeValue.replace(/\n/g,"").match(Pt),i=JSON.parse(r[1]);i[e]=n,t.nodeValue=Tt.replace("{}",JSON.stringify(i,null,2))}else this.setElementAttribute(t,e,n)},t.prototype.setElementClass=function(t,e,n){n?t.classList.add(e):t.classList.remove(e)},t.prototype.setElementStyle=function(t,e,n){t.style[e]=r(n)?s(n):""},t.prototype.invokeElementMethod=function(t,e,n){t[e].apply(t,n)},t.prototype.setText=function(t,e){t.nodeValue=e},t.prototype.animate=function(t,e,n,r,i,o,s){return void 0===s&&(s=[]),this._rootRenderer.document.body.contains(t)?this._animationDriver.animate(t,e,n,r,i,o,s):new X},t}(),kt=/%COMP%/g,Nt="%COMP%",It="_nghost-"+Nt,Dt="_ngcontent-"+Nt,jt=/^:([^:]+):(.+)$/,Lt={ApplicationRef:n.ApplicationRef,NgZone:n.NgZone},Vt="ng.probe",Ft="ng.coreTokens",Ut=function(){function t(t,e){this.name=t,this.token=e}return t}(),Bt=[{provide:n.RootRenderer,useFactory:P,deps:[Ot,[Ut,new n.Optional],[n.NgProbeToken,new n.Optional]]}],Ht=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},qt=function(t){function e(){t.apply(this,arguments)}return Ht(e,t),e.prototype.supports=function(){return!0},e.prototype.addEventListener=function(t,e,n){return t.addEventListener(e,n,!1),function(){return t.removeEventListener(e,n,!1)}},e.decorators=[{type:n.Injectable}],e.ctorParameters=function(){return[]},e}(bt),zt=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},Wt={pan:!0,panstart:!0,panmove:!0,panend:!0,pancancel:!0,panleft:!0,panright:!0,panup:!0,pandown:!0,pinch:!0,pinchstart:!0,pinchmove:!0,pinchend:!0,pinchcancel:!0,pinchin:!0,pinchout:!0,press:!0,pressup:!0,rotate:!0,rotatestart:!0,rotatemove:!0,rotateend:!0,rotatecancel:!0,swipe:!0,swipeleft:!0,swiperight:!0,swipeup:!0,swipedown:!0,tap:!0},Gt=new n.OpaqueToken("HammerGestureConfig"),Kt=function(){function t(){this.events=[],this.overrides={}}return t.prototype.buildHammer=function(t){var e=new Hammer(t);e.get("pinch").set({enable:!0}),e.get("rotate").set({enable:!0});for(var n in this.overrides)e.get(n).set(this.overrides[n]);return e},t.decorators=[{type:n.Injectable}],t.ctorParameters=function(){return[]},t}(),Xt=function(t){function e(e){t.call(this),this._config=e}return zt(e,t),e.prototype.supports=function(t){if(!Wt.hasOwnProperty(t.toLowerCase())&&!this.isCustomEvent(t))return!1;if(!window.Hammer)throw new Error("Hammer.js is not loaded, can not bind "+t+" event");return!0},e.prototype.addEventListener=function(t,e,n){var r=this,i=this.manager.getZone();return e=e.toLowerCase(),i.runOutsideAngular(function(){var o=r._config.buildHammer(t),s=function(t){i.runGuarded(function(){n(t)})};return o.on(e,s),function(){return o.off(e,s)}})},e.prototype.isCustomEvent=function(t){return this._config.events.indexOf(t)>-1},e.decorators=[{type:n.Injectable}],e.ctorParameters=function(){return[{type:Kt,decorators:[{type:n.Inject,args:[Gt]}]}]},e}(bt),Qt=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},Yt=["alt","control","meta","shift"],$t={alt:function(t){return t.altKey},control:function(t){return t.ctrlKey},meta:function(t){return t.metaKey},shift:function(t){return t.shiftKey}},Zt=function(t){function e(){t.call(this)}return Qt(e,t),e.prototype.supports=function(t){return null!=e.parseEventName(t)},e.prototype.addEventListener=function(t,n,r){var i=e.parseEventName(n),o=e.eventCallback(i.fullKey,r,this.manager.getZone());return this.manager.getZone().runOutsideAngular(function(){return u().onAndCancel(t,i.domEventName,o)})},e.parseEventName=function(t){var n=t.toLowerCase().split("."),r=n.shift();if(0===n.length||"keydown"!==r&&"keyup"!==r)return null;var i=e._normalizeKey(n.pop()),o="";if(Yt.forEach(function(t){var e=n.indexOf(t);e>-1&&(n.splice(e,1),o+=t+".")}),o+=i,0!=n.length||0===i.length)return null;var s={};return s.domEventName=r,s.fullKey=o,s},e.getEventFullKey=function(t){var e="",n=u().getEventKey(t);return n=n.toLowerCase()," "===n?n="space":"."===n&&(n="dot"),Yt.forEach(function(r){if(r!=n){var i=$t[r];i(t)&&(e+=r+".")}}),e+=n},e.eventCallback=function(t,n,r){return function(i){e.getEventFullKey(i)===t&&r.runGuarded(function(){return n(i)})}},e._normalizeKey=function(t){switch(t){case"esc":return"escape";default:return t}},e.decorators=[{type:n.Injectable}],e.ctorParameters=function(){return[]},e}(bt),Jt=/^(?:(?:https?|mailto|ftp|tel|file):|[^&:\/?#]*(?:[\/?#]|$))/gi,te=/^data:(?:image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp)|video\/(?:mpeg|mp4|ogg|webm)|audio\/(?:mp3|oga|ogg|opus));base64,[a-z0-9+\/]+=*$/i,ee=null,ne=null,re=N("area,br,col,hr,img,wbr"),ie=N("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),oe=N("rp,rt"),se=I(oe,ie),ae=I(ie,N("address,article,aside,blockquote,caption,center,del,details,dialog,dir,div,dl,figure,figcaption,footer,h1,h2,h3,h4,h5,h6,header,hgroup,hr,ins,main,map,menu,nav,ol,pre,section,summary,table,ul")),ue=I(oe,N("a,abbr,acronym,audio,b,bdi,bdo,big,br,cite,code,del,dfn,em,font,i,img,ins,kbd,label,map,mark,picture,q,ruby,rp,rt,s,samp,small,source,span,strike,strong,sub,sup,time,track,tt,u,var,video")),ce=I(re,ae,ue,se),pe=N("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),le=N("srcset"),he=N("abbr,accesskey,align,alt,autoplay,axis,bgcolor,border,cellpadding,cellspacing,class,clear,color,cols,colspan,compact,controls,coords,datetime,default,dir,download,face,headers,height,hidden,hreflang,hspace,ismap,itemscope,itemprop,kind,label,lang,language,loop,media,muted,nohref,nowrap,open,preload,rel,rev,role,rows,rowspan,rules,scope,scrolling,shape,size,sizes,span,srclang,start,summary,tabindex,target,title,translate,type,usemap,valign,value,vspace,width"),fe=I(pe,le,he),de=function(){function t(){this.sanitizedSomething=!1,this.buf=[]}return t.prototype.sanitizeChildren=function(t){for(var e=t.firstChild;e;)if(ne.isElementNode(e)?this.startElement(e):ne.isTextNode(e)?this.chars(ne.nodeValue(e)):this.sanitizedSomething=!0,ne.firstChild(e))e=ne.firstChild(e);else for(;e;){if(ne.isElementNode(e)&&this.endElement(e),ne.nextSibling(e)){e=ne.nextSibling(e);break}e=ne.parentElement(e)}return this.buf.join("")},t.prototype.startElement=function(t){var e=this,n=ne.nodeName(t).toLowerCase();return ce.hasOwnProperty(n)?(this.buf.push("<"),this.buf.push(n),ne.attributeMap(t).forEach(function(t,n){var r=n.toLowerCase();return fe.hasOwnProperty(r)?(pe[r]&&(t=M(t)),le[r]&&(t=R(t)),e.buf.push(" "),e.buf.push(n),e.buf.push('="'),e.buf.push(D(t)),void e.buf.push('"')):void(e.sanitizedSomething=!0)}),void this.buf.push(">")):void(this.sanitizedSomething=!0)},t.prototype.endElement=function(t){var e=ne.nodeName(t).toLowerCase();ce.hasOwnProperty(e)&&!re.hasOwnProperty(e)&&(this.buf.push("</"),this.buf.push(e),this.buf.push(">"))},t.prototype.chars=function(t){this.buf.push(D(t))},t}(),ye=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,me=/([^\#-~ |!])/g,ve="[-,.\"'%_!# a-zA-Z0-9]+",ge="(?:matrix|translate|scale|rotate|skew|perspective)(?:X|Y|3d)?",_e="(?:rgb|hsl)a?",be="(?:repeating-)?(?:linear|radial)-gradient",we="(?:calc|attr)",Ee="\\([-0-9.%, #a-zA-Z]+\\)",Se=new RegExp("^("+ve+"|"+("(?:"+ge+"|"+_e+"|"+be+"|"+we+")")+(Ee+")$"),"g"),Ce=/^url\(([^)]+)\)$/,xe=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},Te=function(){function t(){}return t.prototype.sanitize=function(){},t.prototype.bypassSecurityTrustHtml=function(){},t.prototype.bypassSecurityTrustStyle=function(){},t.prototype.bypassSecurityTrustScript=function(){},t.prototype.bypassSecurityTrustUrl=function(){},t.prototype.bypassSecurityTrustResourceUrl=function(){},t}(),Pe=function(t){function e(){t.apply(this,arguments)}return xe(e,t),e.prototype.sanitize=function(t,e){if(null==e)return null;switch(t){case n.SecurityContext.NONE:return e;case n.SecurityContext.HTML:return e instanceof Ae?e.changingThisBreaksApplicationSecurity:(this.checkNotSafeValue(e,"HTML"),L(String(e)));case n.SecurityContext.STYLE:return e instanceof Me?e.changingThisBreaksApplicationSecurity:(this.checkNotSafeValue(e,"Style"),F(e));case n.SecurityContext.SCRIPT:if(e instanceof Re)return e.changingThisBreaksApplicationSecurity;throw this.checkNotSafeValue(e,"Script"),new Error("unsafe value used in a script context");case n.SecurityContext.URL:return e instanceof Ne||e instanceof ke?e.changingThisBreaksApplicationSecurity:(this.checkNotSafeValue(e,"URL"),M(String(e)));case n.SecurityContext.RESOURCE_URL:if(e instanceof Ne)return e.changingThisBreaksApplicationSecurity;throw this.checkNotSafeValue(e,"ResourceURL"),new Error("unsafe value used in a resource URL context (see http://g.co/ng/security#xss)");default:throw new Error("Unexpected SecurityContext "+t+" (see http://g.co/ng/security#xss)")}},e.prototype.checkNotSafeValue=function(t,e){if(t instanceof Oe)throw new Error("Required a safe "+e+", got a "+t.getTypeName()+" (see http://g.co/ng/security#xss)")},e.prototype.bypassSecurityTrustHtml=function(t){return new Ae(t)},e.prototype.bypassSecurityTrustStyle=function(t){return new Me(t)},e.prototype.bypassSecurityTrustScript=function(t){return new Re(t)},e.prototype.bypassSecurityTrustUrl=function(t){return new ke(t)},e.prototype.bypassSecurityTrustResourceUrl=function(t){return new Ne(t)},e.decorators=[{type:n.Injectable}],e.ctorParameters=function(){return[]},e}(Te),Oe=function(){function t(t){this.changingThisBreaksApplicationSecurity=t}return t.prototype.getTypeName=function(){},t.prototype.toString=function(){return"SafeValue must use [property]=binding: "+this.changingThisBreaksApplicationSecurity+" (see http://g.co/ng/security#xss)"},t}(),Ae=function(t){function e(){t.apply(this,arguments)}return xe(e,t),e.prototype.getTypeName=function(){return"HTML"},e}(Oe),Me=function(t){function e(){t.apply(this,arguments)}return xe(e,t),e.prototype.getTypeName=function(){return"Style"},e}(Oe),Re=function(t){function e(){t.apply(this,arguments)}return xe(e,t), -e.prototype.getTypeName=function(){return"Script"},e}(Oe),ke=function(t){function e(){t.apply(this,arguments)}return xe(e,t),e.prototype.getTypeName=function(){return"URL"},e}(Oe),Ne=function(t){function e(){t.apply(this,arguments)}return xe(e,t),e.prototype.getTypeName=function(){return"ResourceURL"},e}(Oe),Ie=[{provide:n.PLATFORM_INITIALIZER,useValue:U,multi:!0},{provide:e.PlatformLocation,useClass:ft}],De=[{provide:n.Sanitizer,useExisting:Te},{provide:Te,useClass:Pe}],je=n.createPlatformFactory(n.platformCore,"browser",Ie),Le=function(){function t(t){if(t)throw new Error("BrowserModule has already been loaded. If you need access to common directives such as NgIf and NgFor from a lazy loaded module, import CommonModule instead.")}return t.decorators=[{type:n.NgModule,args:[{providers:[De,{provide:n.ErrorHandler,useFactory:B,deps:[]},{provide:vt,useFactory:H,deps:[]},{provide:gt,useClass:qt,multi:!0},{provide:gt,useClass:Zt,multi:!0},{provide:gt,useClass:Xt,multi:!0},{provide:Gt,useClass:Kt},{provide:Ot,useClass:At},{provide:n.RootRenderer,useExisting:Ot},{provide:Et,useExisting:St},{provide:Y,useFactory:q},St,n.Testability,_t,Bt,yt],exports:[e.CommonModule,n.ApplicationModule]}]}],t.ctorParameters=function(){return[{type:t,decorators:[{type:n.Optional},{type:n.SkipSelf}]}]},t}(),Ve="undefined"!=typeof window&&window||{},Fe=function(){function t(t,e){this.msPerTick=t,this.numTicks=e}return t}(),Ue=function(){function t(t){this.profiler=new Be(t)}return t}(),Be=function(){function t(t){this.appRef=t.injector.get(n.ApplicationRef)}return t.prototype.timeChangeDetection=function(t){var e=t&&t.record,n="Change Detection",i=r(Ve.console.profile);e&&i&&Ve.console.profile(n);for(var o=u().performanceNow(),s=0;5>s||u().performanceNow()-o<500;)this.appRef.tick(),s++;var a=u().performanceNow();e&&i&&Ve.console.profileEnd(n);var c=(a-o)/s;return Ve.console.log("ran "+s+" change detection cycles"),Ve.console.log(c.toFixed(2)+" ms per check"),new Fe(c,s)},t}(),He=$,qe=function(){function t(){}return t.all=function(){return function(){return!0}},t.css=function(t){return function(e){return r(e.nativeElement)?u().elementMatches(e.nativeElement,t):!1}},t.directive=function(t){return function(e){return-1!==e.providerTokens.indexOf(t)}},t}(),ze={BrowserPlatformLocation:ft,DomAdapter:tt,BrowserDomAdapter:pt,BrowserGetTestability:dt,getDOM:u,setRootDomAdapter:c,DomRootRenderer_:At,DomRootRenderer:Ot,NAMESPACE_URIS:xt,shimContentAttribute:w,shimHostAttribute:E,flattenStyles:S,splitNamespace:x,isNamespaced:C,DomSharedStylesHost:St,SharedStylesHost:Et,ELEMENT_PROBE_PROVIDERS:Bt,DomEventsPlugin:qt,KeyEventsPlugin:Zt,HammerGesturesPlugin:Xt,initDomAdapter:U,INTERNAL_BROWSER_PLATFORM_PROVIDERS:Ie,BROWSER_SANITIZATION_PROVIDERS:De,WebAnimationsDriver:nt},We=new n.Version("2.4.9");t.BrowserModule=Le,t.platformBrowser=je,t.Title=yt,t.disableDebugTools=W,t.enableDebugTools=z,t.AnimationDriver=Y,t.By=qe,t.NgProbeToken=Ut,t.DOCUMENT=vt,t.EVENT_MANAGER_PLUGINS=gt,t.EventManager=_t,t.HAMMER_GESTURE_CONFIG=Gt,t.HammerGestureConfig=Kt,t.DomSanitizer=Te,t.VERSION=We,t.__platform_browser_private__=ze})}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"@angular/common":5,"@angular/core":7}],11:[function(e,n,r){!function(i,o){"object"==typeof r&&"undefined"!=typeof n?o(r,e("@angular/common"),e("@angular/core"),e("rxjs/BehaviorSubject"),e("rxjs/Subject"),e("rxjs/observable/from"),e("rxjs/observable/of"),e("rxjs/operator/concatMap"),e("rxjs/operator/every"),e("rxjs/operator/first"),e("rxjs/operator/map"),e("rxjs/operator/mergeMap"),e("rxjs/operator/reduce"),e("rxjs/Observable"),e("rxjs/operator/catch"),e("rxjs/operator/concatAll"),e("rxjs/util/EmptyError"),e("rxjs/observable/fromPromise"),e("rxjs/operator/last"),e("rxjs/operator/mergeAll"),e("@angular/platform-browser"),e("rxjs/operator/filter")):"function"==typeof t&&t.amd?t(["exports","@angular/common","@angular/core","rxjs/BehaviorSubject","rxjs/Subject","rxjs/observable/from","rxjs/observable/of","rxjs/operator/concatMap","rxjs/operator/every","rxjs/operator/first","rxjs/operator/map","rxjs/operator/mergeMap","rxjs/operator/reduce","rxjs/Observable","rxjs/operator/catch","rxjs/operator/concatAll","rxjs/util/EmptyError","rxjs/observable/fromPromise","rxjs/operator/last","rxjs/operator/mergeAll","@angular/platform-browser","rxjs/operator/filter"],o):o((i.ng=i.ng||{},i.ng.router=i.ng.router||{}),i.ng.common,i.ng.core,i.Rx,i.Rx,i.Rx.Observable,i.Rx.Observable,i.Rx.Observable.prototype,i.Rx.Observable.prototype,i.Rx.Observable.prototype,i.Rx.Observable.prototype,i.Rx.Observable.prototype,i.Rx.Observable.prototype,i.Rx,i.Rx.Observable.prototype,i.Rx.Observable.prototype,i.Rx,i.Rx.Observable,i.Rx.Observable.prototype,i.Rx.Observable.prototype,i.ng.platformBrowser,i.Rx.Observable.prototype)}(this,function(t,e,n,r,i,o,s,a,u,c,p,l,h,f,d,y,m,v,g,_,b,w){"use strict";function E(t,e,n){for(var r=n.path,i=r.split("/"),o={},s=[],a=0,u=0;u<i.length;++u){if(a>=t.length)return null;var c=t[a],p=i[u],l=p.startsWith(":");if(!l&&p!==c.path)return null;l&&(o[p.substring(1)]=c),s.push(c),a++}return"full"===n.pathMatch&&(e.hasChildren()||a<t.length)?null:{consumed:s,posParams:o}}function S(t,e){if(t.length!==e.length)return!1;for(var n=0;n<t.length;++n)if(!C(t[n],e[n]))return!1;return!0}function C(t,e){var n=Object.keys(t),r=Object.keys(e);if(n.length!=r.length)return!1;for(var i,o=0;o<n.length;o++)if(i=n[o],t[i]!==e[i])return!1;return!0}function x(t){for(var e=[],n=0;n<t.length;++n)for(var r=0;r<t[n].length;++r)e.push(t[n][r]);return e}function T(t){return t.length>0?t[t.length-1]:null}function P(t,e){var n={};for(var r in t)t.hasOwnProperty(r)&&(n[r]=t[r]);for(var r in e)e.hasOwnProperty(r)&&(n[r]=e[r]);return n}function O(t,e){for(var n in t)t.hasOwnProperty(n)&&e(t[n],n)}function A(t,e){var n=[],r={};if(O(t,function(t,i){i===Oe&&n.push(p.map.call(e(i,t),function(t){return r[i]=t,t}))}),O(t,function(t,i){i!==Oe&&n.push(p.map.call(e(i,t),function(t){return r[i]=t,t}))}),n.length>0){var i=y.concatAll.call(s.of.apply(void 0,n)),o=g.last.call(i);return p.map.call(o,function(){return r})}return s.of(r)}function M(t){var e=_.mergeAll.call(t);return u.every.call(e,function(t){return t===!0})}function R(t){return Te(t)?t:xe(t)?v.fromPromise(t):s.of(t)}function k(){return new Ne(new Ie([],{}),{},null)}function N(t,e,n){return n?I(t.queryParams,e.queryParams)&&D(t.root,e.root):j(t.queryParams,e.queryParams)&&L(t.root,e.root)}function I(t,e){return C(t,e)}function D(t,e){if(!U(t.segments,e.segments))return!1;if(t.numberOfChildren!==e.numberOfChildren)return!1;for(var n in e.children){if(!t.children[n])return!1;if(!D(t.children[n],e.children[n]))return!1}return!0}function j(t,e){return Object.keys(e).length<=Object.keys(t).length&&Object.keys(e).every(function(n){return e[n]===t[n]})}function L(t,e){return V(t,e,e.segments)}function V(t,e,n){if(t.segments.length>n.length){var r=t.segments.slice(0,n.length);return U(r,n)?e.hasChildren()?!1:!0:!1}if(t.segments.length===n.length){if(!U(t.segments,n))return!1;for(var i in e.children){if(!t.children[i])return!1;if(!L(t.children[i],e.children[i]))return!1}return!0}var r=n.slice(0,t.segments.length),o=n.slice(t.segments.length);return U(t.segments,r)&&t.children[Oe]?V(t.children[Oe],e,o):!1}function F(t,e){if(t.length!==e.length)return!1;for(var n=0;n<t.length;++n){if(t[n].path!==e[n].path)return!1;if(!C(t[n].parameters,e[n].parameters))return!1}return!0}function U(t,e){if(t.length!==e.length)return!1;for(var n=0;n<t.length;++n)if(t[n].path!==e[n].path)return!1;return!0}function B(t,e){var n=[];return O(t.children,function(t,r){r===Oe&&(n=n.concat(e(t,r)))}),O(t.children,function(t,r){r!==Oe&&(n=n.concat(e(t,r)))}),n}function H(t){return t.segments.map(function(t){return G(t)}).join("/")}function q(t,e){if(t.hasChildren()&&e){var n=t.children[Oe]?q(t.children[Oe],!1):"",r=[];return O(t.children,function(t,e){e!==Oe&&r.push(e+":"+q(t,!1))}),r.length>0?n+"("+r.join("//")+")":""+n}if(t.hasChildren()&&!e){var i=B(t,function(e,n){return n===Oe?[q(t.children[Oe],!1)]:[n+":"+q(e,!1)]});return H(t)+"/("+i.join("//")+")"}return H(t)}function z(t){return encodeURIComponent(t)}function W(t){return decodeURIComponent(t)}function G(t){return""+z(t.path)+K(t.parameters)}function K(t){return Q(t).map(function(t){return";"+z(t.first)+"="+z(t.second)}).join("")}function X(t){var e=Object.keys(t).map(function(e){var n=t[e];return Array.isArray(n)?n.map(function(t){return z(e)+"="+z(t)}).join("&"):z(e)+"="+z(n)});return e.length?"?"+e.join("&"):""}function Q(t){var e=[];for(var n in t)t.hasOwnProperty(n)&&e.push(new Ve(n,t[n]));return e}function Y(t){Fe.lastIndex=0;var e=t.match(Fe);return e?e[0]:""}function $(t){Ue.lastIndex=0;var e=t.match(Fe);return e?e[0]:""}function Z(t){Be.lastIndex=0;var e=t.match(Be);return e?e[0]:""}function J(t){return new f.Observable(function(e){return e.error(new qe(t))})}function tt(t){return new f.Observable(function(e){return e.error(new ze(t))})}function et(t){return new f.Observable(function(e){return e.error(new Error("Only absolute redirects can have named outlets. redirectTo: '"+t+"'"))})}function nt(t){return new f.Observable(function(e){return e.error(new Ae("Cannot load children because the guard of the route \"path: '"+t.path+"'\" returned false"))})}function rt(t,e,n,r,i){return new We(t,e,n,r,i).apply()}function it(t,e){var n=e.canLoad;if(!n||0===n.length)return s.of(!0);var r=p.map.call(o.from(n),function(n){var r=t.get(n);return R(r.canLoad?r.canLoad(e):r(e))});return M(r)}function ot(t,e,n){var r={matched:!1,consumedSegments:[],lastChild:0,positionalParamSegments:{}};if(""===e.path)return"full"===e.pathMatch&&(t.hasChildren()||n.length>0)?{matched:!1,consumedSegments:[],lastChild:0,positionalParamSegments:{}}:{matched:!0,consumedSegments:[],lastChild:0,positionalParamSegments:{}};var i=e.matcher||E,o=i(n,t,e);return o?{matched:!0,consumedSegments:o.consumed,lastChild:o.consumed.length,positionalParamSegments:o.posParams}:r}function st(t,e,n,r){if(n.length>0&&pt(t,n,r)){var i=new Ie(e,ct(r,new Ie(n,t.children)));return{segmentGroup:at(i),slicedSegments:[]}}if(0===n.length&<(t,n,r)){var i=new Ie(t.segments,ut(t,n,r,t.children));return{segmentGroup:at(i),slicedSegments:n}}return{segmentGroup:t,slicedSegments:n}}function at(t){if(1===t.numberOfChildren&&t.children[Oe]){var e=t.children[Oe];return new Ie(t.segments.concat(e.segments),e.children)}return t}function ut(t,e,n,r){for(var i={},o=0,s=n;o<s.length;o++){var a=s[o];ht(t,e,a)&&!r[ft(a)]&&(i[ft(a)]=new Ie([],{}))}return P(r,i)}function ct(t,e){var n={};n[Oe]=e;for(var r=0,i=t;r<i.length;r++){var o=i[r];""===o.path&&ft(o)!==Oe&&(n[ft(o)]=new Ie([],{}))}return n}function pt(t,e,n){return n.filter(function(n){return ht(t,e,n)&&ft(n)!==Oe}).length>0}function lt(t,e,n){return n.filter(function(n){return ht(t,e,n)}).length>0}function ht(t,e,n){return(t.hasChildren()||e.length>0)&&"full"===n.pathMatch?!1:""===n.path&&void 0!==n.redirectTo}function ft(t){return t.outlet?t.outlet:Oe}function dt(t,e){void 0===e&&(e="");for(var n=0;n<t.length;n++){var r=t[n],i=mt(e,r);yt(r,i)}}function yt(t,e){if(!t)throw new Error("\n Invalid configuration of route '"+e+"': Encountered undefined route.\n The reason might be an extra comma.\n \n Example: \n const routes: Routes = [\n { path: '', redirectTo: '/dashboard', pathMatch: 'full' },\n { path: 'dashboard', component: DashboardComponent },, << two commas\n { path: 'detail/:id', component: HeroDetailComponent }\n ];\n ");if(Array.isArray(t))throw new Error("Invalid configuration of route '"+e+"': Array cannot be specified");if(!t.component&&t.outlet&&t.outlet!==Oe)throw new Error("Invalid configuration of route '"+e+"': a componentless route cannot have a named outlet set");if(t.redirectTo&&t.children)throw new Error("Invalid configuration of route '"+e+"': redirectTo and children cannot be used together");if(t.redirectTo&&t.loadChildren)throw new Error("Invalid configuration of route '"+e+"': redirectTo and loadChildren cannot be used together");if(t.children&&t.loadChildren)throw new Error("Invalid configuration of route '"+e+"': children and loadChildren cannot be used together");if(t.redirectTo&&t.component)throw new Error("Invalid configuration of route '"+e+"': redirectTo and component cannot be used together");if(t.path&&t.matcher)throw new Error("Invalid configuration of route '"+e+"': path and matcher cannot be used together");if(void 0===t.redirectTo&&!t.component&&!t.children&&!t.loadChildren)throw new Error("Invalid configuration of route '"+e+"'. One of the following must be provided: component, redirectTo, children or loadChildren");if(void 0===t.path&&void 0===t.matcher)throw new Error("Invalid configuration of route '"+e+"': routes must have either a path or a matcher specified");if("string"==typeof t.path&&"/"===t.path.charAt(0))throw new Error("Invalid configuration of route '"+e+"': path cannot start with a slash");if(""===t.path&&void 0!==t.redirectTo&&void 0===t.pathMatch){var n="The default value of 'pathMatch' is 'prefix', but often the intent is to use 'full'.";throw new Error("Invalid configuration of route '{path: \""+e+'", redirectTo: "'+t.redirectTo+"\"}': please provide 'pathMatch'. "+n)}if(void 0!==t.pathMatch&&"full"!==t.pathMatch&&"prefix"!==t.pathMatch)throw new Error("Invalid configuration of route '"+e+"': pathMatch can only be set to 'prefix' or 'full'");t.children&&dt(t.children,e)}function mt(t,e){return e?t||e.path?t&&!e.path?t+"/":!t&&e.path?e.path:t+"/"+e.path:"":t}function vt(t,e){if(t===e.value)return e;for(var n=0,r=e.children;n<r.length;n++){var i=r[n],o=vt(t,i);if(o)return o}return null}function gt(t,e,n){if(n.push(e),t===e.value)return n;for(var r=0,i=e.children;r<i.length;r++){var o=i[r],s=n.slice(0),a=gt(t,o,s);if(a.length>0)return a}return[]}function _t(t,e){var n=bt(t,e),i=new r.BehaviorSubject([new De("",{})]),o=new r.BehaviorSubject({}),s=new r.BehaviorSubject({}),a=new r.BehaviorSubject({}),u=new r.BehaviorSubject(""),c=new Ye(i,o,a,u,s,Oe,e,n.root);return c.snapshot=n.root,new Qe(new Ke(c,[]),n)}function bt(t,e){var n={},r={},i={},o="",s=new $e([],n,i,o,r,Oe,e,null,t.root,-1,{});return new Ze("",new Ke(s,[]))}function wt(t){for(var e=t.pathFromRoot,n=e.length-1;n>=1;){var r=e[n],i=e[n-1];if(r.routeConfig&&""===r.routeConfig.path)n--;else{if(i.component)break;n--}}return e.slice(n).reduce(function(t,e){var n=P(t.params,e.params),r=P(t.data,e.data),i=P(t.resolve,e._resolvedData);return{params:n,data:r,resolve:i}},{params:{},data:{},resolve:{}})}function Et(t,e){e.value._routerState=t,e.children.forEach(function(e){return Et(t,e)})}function St(t){var e=t.children.length>0?" { "+t.children.map(St).join(", ")+" } ":"";return""+t.value+e}function Ct(t){if(t.snapshot){var e=t.snapshot;t.snapshot=t._futureSnapshot,C(e.queryParams,t._futureSnapshot.queryParams)||t.queryParams.next(t._futureSnapshot.queryParams),e.fragment!==t._futureSnapshot.fragment&&t.fragment.next(t._futureSnapshot.fragment),C(e.params,t._futureSnapshot.params)||t.params.next(t._futureSnapshot.params),S(e.url,t._futureSnapshot.url)||t.url.next(t._futureSnapshot.url),xt(e,t._futureSnapshot)||t.data.next(t._futureSnapshot.data)}else t.snapshot=t._futureSnapshot,t.data.next(t._futureSnapshot.data)}function xt(t,e){return C(t.params,e.params)&&F(t.url,e.url)}function Tt(t,e,n){var r=Pt(t,e._root,n?n._root:void 0);return new Qe(r,e)}function Pt(t,e,n){if(n&&t.shouldReuseRoute(e.value,n.value.snapshot)){var r=n.value;r._futureSnapshot=e.value;var i=At(t,e,n);return new Ke(r,i)}if(t.retrieve(e.value)){var o=t.retrieve(e.value).route;return Ot(e,o),o}var r=Mt(e.value),i=e.children.map(function(e){return Pt(t,e)});return new Ke(r,i)}function Ot(t,e){if(t.value.routeConfig!==e.value.routeConfig)throw new Error("Cannot reattach ActivatedRouteSnapshot created from a different route");if(t.children.length!==e.children.length)throw new Error("Cannot reattach ActivatedRouteSnapshot with a different number of children");e.value._futureSnapshot=t.value;for(var n=0;n<t.children.length;++n)Ot(t.children[n],e.children[n])}function At(t,e,n){return e.children.map(function(e){for(var r=0,i=n.children;r<i.length;r++){var o=i[r];if(t.shouldReuseRoute(o.value.snapshot,e.value))return Pt(t,e,o)}return Pt(t,e)})}function Mt(t){return new Ye(new r.BehaviorSubject(t.url),new r.BehaviorSubject(t.params),new r.BehaviorSubject(t.queryParams),new r.BehaviorSubject(t.fragment),new r.BehaviorSubject(t.data),t.outlet,t.component,t)}function Rt(t,e,n,r,i){if(0===n.length)return Nt(e.root,e.root,e,r,i);var o=Dt(n);if(o.toRoot())return Nt(e.root,new Ie([],{}),e,r,i);var s=jt(o,e,t),a=s.processChildren?Bt(s.segmentGroup,s.index,o.commands):Ut(s.segmentGroup,s.index,o.commands);return Nt(s.segmentGroup,a,e,r,i)}function kt(t){return"object"==typeof t&&null!=t&&!t.outlets&&!t.segmentPath}function Nt(t,e,n,r,i){return n.root===t?new Ne(e,Wt(r),i):new Ne(It(n.root,t,e),Wt(r),i)}function It(t,e,n){var r={};return O(t.children,function(t,i){r[i]=t===e?n:It(t,e,n)}),new Ie(t.segments,r)}function Dt(t){if("string"==typeof t[0]&&1===t.length&&"/"===t[0])return new Je(!0,0,t);var e=0,n=!1,r=t.reduce(function(t,r,i){if("object"==typeof r&&null!=r){if(r.outlets){var o={};return O(r.outlets,function(t,e){o[e]="string"==typeof t?t.split("/"):t}),t.concat([{outlets:o}])}if(r.segmentPath)return t.concat([r.segmentPath])}return"string"!=typeof r?t.concat([r]):0===i?(r.split("/").forEach(function(r,i){0==i&&"."===r||(0==i&&""===r?n=!0:".."===r?e++:""!=r&&t.push(r))}),t):t.concat([r])},[]);return new Je(n,e,r)}function jt(t,e,n){if(t.isAbsolute)return new tn(e.root,!0,0);if(-1===n.snapshot._lastPathIndex)return new tn(n.snapshot._urlSegment,!0,0);var r=kt(t.commands[0])?0:1,i=n.snapshot._lastPathIndex+r;return Lt(n.snapshot._urlSegment,i,t.numberOfDoubleDots)}function Lt(t,e,n){for(var r=t,i=e,o=n;o>i;){if(o-=i,r=r.parent,!r)throw new Error("Invalid number of '../'");i=r.segments.length}return new tn(r,!1,i-o)}function Vt(t){return"object"==typeof t&&null!=t&&t.outlets?t.outlets[Oe]:""+t}function Ft(t){return"object"!=typeof t[0]?(e={},e[Oe]=t,e):void 0===t[0].outlets?(n={},n[Oe]=t,n):t[0].outlets;var e,n}function Ut(t,e,n){if(t||(t=new Ie([],{})),0===t.segments.length&&t.hasChildren())return Bt(t,e,n);var r=Ht(t,e,n),i=n.slice(r.commandIndex);if(r.match&&r.pathIndex<t.segments.length){var o=new Ie(t.segments.slice(0,r.pathIndex),{});return o.children[Oe]=new Ie(t.segments.slice(r.pathIndex),t.children),Bt(o,0,i)}return r.match&&0===i.length?new Ie(t.segments,{}):r.match&&!t.hasChildren()?qt(t,e,n):r.match?Bt(t,0,i):qt(t,e,n)}function Bt(t,e,n){if(0===n.length)return new Ie(t.segments,{});var r=Ft(n),i={};return O(r,function(n,r){null!==n&&(i[r]=Ut(t.children[r],e,n))}),O(t.children,function(t,e){void 0===r[e]&&(i[e]=t)}),new Ie(t.segments,i)}function Ht(t,e,n){for(var r=0,i=e,o={match:!1,pathIndex:0,commandIndex:0};i<t.segments.length;){if(r>=n.length)return o;var s=t.segments[i],a=Vt(n[r]),u=r<n.length-1?n[r+1]:null;if(i>0&&void 0===a)break;if(a&&u&&"object"==typeof u&&void 0===u.outlets){if(!Gt(a,u,s))return o;r+=2}else{if(!Gt(a,{},s))return o;r++}i++}return{match:!0,pathIndex:i,commandIndex:r}}function qt(t,e,n){for(var r=t.segments.slice(0,e),i=0;i<n.length;){if("object"==typeof n[i]&&void 0!==n[i].outlets){var o=zt(n[i].outlets);return new Ie(r,o)}if(0===i&&kt(n[0])){var s=t.segments[e];r.push(new De(s.path,n[0])),i++}else{var a=Vt(n[i]),u=i<n.length-1?n[i+1]:null;a&&u&&kt(u)?(r.push(new De(a,Wt(u))),i+=2):(r.push(new De(a,{})),i++)}}return new Ie(r,{})}function zt(t){var e={};return O(t,function(t,n){null!==t&&(e[n]=qt(new Ie([],{}),0,t))}),e}function Wt(t){var e={};return O(t,function(t,n){return e[n]=""+t}),e}function Gt(t,e,n){return t==n.path&&C(e,n.parameters)}function Kt(t,e,n,r){return new nn(t,e,n,r).recognize()}function Xt(t){t.sort(function(t,e){return t.value.outlet===Oe?-1:e.value.outlet===Oe?1:t.value.outlet.localeCompare(e.value.outlet)})}function Qt(t){return t.children?t.children:t.loadChildren?t._loadedConfig.routes:[]}function Yt(t,e,n){if(""===e.path){if("full"===e.pathMatch&&(t.hasChildren()||n.length>0))throw new en;return{consumedSegments:[],lastChild:0,parameters:{}}}var r=e.matcher||E,i=r(n,t,e);if(!i)throw new en;var o={};O(i.posParams,function(t,e){o[e]=t.path});var s=P(o,i.consumed[i.consumed.length-1].parameters);return{consumedSegments:i.consumed,lastChild:i.consumed.length,parameters:s}}function $t(t){var e={};t.forEach(function(t){var n=e[t.value.outlet];if(n){var r=n.url.map(function(t){return t.toString()}).join("/"),i=t.value.url.map(function(t){return t.toString()}).join("/");throw new Error("Two segments cannot have the same outlet name: '"+r+"' and '"+i+"'.")}e[t.value.outlet]=t.value})}function Zt(t){for(var e=t;e._sourceSegment;)e=e._sourceSegment;return e}function Jt(t){for(var e=t,n=e._segmentIndexShift?e._segmentIndexShift:0;e._sourceSegment;)e=e._sourceSegment,n+=e._segmentIndexShift?e._segmentIndexShift:0;return n-1}function te(t,e,n,r){if(n.length>0&&re(t,n,r)){var i=new Ie(e,ne(t,e,r,new Ie(n,t.children)));return i._sourceSegment=t,i._segmentIndexShift=e.length,{segmentGroup:i,slicedSegments:[]}}if(0===n.length&&ie(t,n,r)){var i=new Ie(t.segments,ee(t,n,r,t.children));return i._sourceSegment=t,i._segmentIndexShift=e.length,{segmentGroup:i,slicedSegments:n}}var i=new Ie(t.segments,t.children);return i._sourceSegment=t,i._segmentIndexShift=e.length,{segmentGroup:i,slicedSegments:n}}function ee(t,e,n,r){for(var i={},o=0,s=n;o<s.length;o++){var a=s[o];if(oe(t,e,a)&&!r[se(a)]){var u=new Ie([],{});u._sourceSegment=t,u._segmentIndexShift=t.segments.length,i[se(a)]=u}}return P(r,i)}function ne(t,e,n,r){var i={};i[Oe]=r,r._sourceSegment=t,r._segmentIndexShift=e.length;for(var o=0,s=n;o<s.length;o++){var a=s[o];if(""===a.path&&se(a)!==Oe){var u=new Ie([],{});u._sourceSegment=t,u._segmentIndexShift=e.length,i[se(a)]=u}}return i}function re(t,e,n){return n.filter(function(n){return oe(t,e,n)&&se(n)!==Oe}).length>0}function ie(t,e,n){return n.filter(function(n){return oe(t,e,n)}).length>0}function oe(t,e,n){return(t.hasChildren()||e.length>0)&&"full"===n.pathMatch?!1:""===n.path&&void 0===n.redirectTo}function se(t){return t.outlet?t.outlet:Oe}function ae(t){return t.data?t.data:{}}function ue(t){return t.resolve?t.resolve:{}}function ce(t){throw t}function pe(t){Ct(t.value),t.children.forEach(pe)}function le(t){for(var e=t.parent;e;){var n=e._routeConfig;if(n&&n._loadedConfig)return n._loadedConfig;if(n&&n.component)return null;e=e.parent}return null}function he(t){if(!t)return null;for(var e=t.parent;e;){var n=e._routeConfig;if(n&&n._loadedConfig)return n._loadedConfig;e=e.parent}return null}function fe(t){return t?t.children.reduce(function(t,e){return t[e.value.outlet]=e,t},{}):{}}function de(t,e){var n=t._outlets[e.outlet];if(!n){var r=e.component.name;throw new Error(e.outlet===Oe?"Cannot find primary outlet to load '"+r+"'":"Cannot find the outlet "+e.outlet+" to load '"+r+"'")}return n}function ye(t){for(var e=0;e<t.length;e++){var n=t[e];if(null==n)throw new Error("The requested path contains "+n+" segment at index "+e)}}function me(t){return""===t||!!t}function ve(){return new n.NgProbeToken("Router",fn)}function ge(t,n,r){return void 0===r&&(r={}),r.useHash?new e.HashLocationStrategy(t,n):new e.PathLocationStrategy(t,n)}function _e(t){if(t)throw new Error("RouterModule.forRoot() called twice. Lazy loaded modules should use RouterModule.forChild() instead.");return"guarded"}function be(t){return[{provide:n.ANALYZE_FOR_ENTRY_COMPONENTS,multi:!0,useValue:t},{provide:Me,multi:!0,useValue:t}]}function we(t,e,n,r,i,o,s,a,u,c,p){void 0===u&&(u={});var l=new fn(null,e,n,r,i,o,s,x(a));if(c&&(l.urlHandlingStrategy=c),p&&(l.routeReuseStrategy=p),u.errorHandler&&(l.errorHandler=u.errorHandler),u.enableTracing){var h=Sn();l.events.subscribe(function(t){h.logGroup("Router Event: "+t.constructor.name),h.log(t.toString()),h.log(t),h.logGroupEnd()})}return l}function Ee(t){return t.routerState.root}function Se(t,e,n,r){return function(i){i===e.components[0]&&(t.resetRootComponentType(e.componentTypes[0]),n.setUpPreloading(),r.initialNavigation===!1?t.setUpLocationChangeListener():t.initialNavigation())}}function Ce(){return[{provide:Nn,useFactory:Se,deps:[fn,n.ApplicationRef,Pn,An]},{provide:n.APP_BOOTSTRAP_LISTENER,multi:!0,useExisting:Nn}]}var xe=n.__core_private__.isPromise,Te=n.__core_private__.isObservable,Pe=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},Oe="primary",Ae=function(t){function e(e){t.call(this,e),this.message=e,this.stack=new Error(e).stack}return Pe(e,t),e.prototype.toString=function(){return this.message},e}(Error),Me=new n.OpaqueToken("ROUTES"),Re=function(){function t(t,e,n,r){this.routes=t,this.injector=e,this.factoryResolver=n,this.injectorFactory=r}return t}(),ke=function(){function t(t,e){this.loader=t,this.compiler=e}return t.prototype.load=function(t,e){return p.map.call(this.loadModuleFactory(e),function(e){var n=e.create(t),r=function(t){return e.create(t).injector};return new Re(x(n.injector.get(Me)),n.injector,n.componentFactoryResolver,r)})},t.prototype.loadModuleFactory=function(t){var e=this;return"string"==typeof t?v.fromPromise(this.loader.load(t)):l.mergeMap.call(R(t()),function(t){return t instanceof n.NgModuleFactory?s.of(t):v.fromPromise(e.compiler.compileModuleAsync(t))})},t}(),Ne=function(){function t(t,e,n){this.root=t,this.queryParams=e,this.fragment=n}return t.prototype.toString=function(){return(new Le).serialize(this)},t}(),Ie=function(){function t(t,e){var n=this;this.segments=t,this.children=e,this.parent=null,O(e,function(t){return t.parent=n})}return t.prototype.hasChildren=function(){return this.numberOfChildren>0},Object.defineProperty(t.prototype,"numberOfChildren",{get:function(){return Object.keys(this.children).length},enumerable:!0,configurable:!0}),t.prototype.toString=function(){return H(this)},t}(),De=function(){function t(t,e){this.path=t,this.parameters=e}return t.prototype.toString=function(){return G(this)},t}(),je=function(){function t(){}return t.prototype.parse=function(){},t.prototype.serialize=function(){},t}(),Le=function(){function t(){}return t.prototype.parse=function(t){var e=new He(t);return new Ne(e.parseRootSegment(),e.parseQueryParams(),e.parseFragment())},t.prototype.serialize=function(t){var e="/"+q(t.root,!0),n=X(t.queryParams),r=null!==t.fragment&&void 0!==t.fragment?"#"+encodeURI(t.fragment):"";return""+e+n+r},t}(),Ve=function(){function t(t,e){this.first=t,this.second=e}return t}(),Fe=/^[^\/()?;=&#]+/,Ue=/^[^=?&#]+/,Be=/^[^?&#]+/,He=function(){function t(t){this.url=t,this.remaining=t}return t.prototype.peekStartsWith=function(t){return this.remaining.startsWith(t)},t.prototype.capture=function(t){if(!this.remaining.startsWith(t))throw new Error('Expected "'+t+'".');this.remaining=this.remaining.substring(t.length)},t.prototype.parseRootSegment=function(){return this.remaining.startsWith("/")&&this.capture("/"),""===this.remaining||this.remaining.startsWith("?")||this.remaining.startsWith("#")?new Ie([],{}):new Ie([],this.parseChildren())},t.prototype.parseChildren=function(){if(0==this.remaining.length)return{};this.peekStartsWith("/")&&this.capture("/");var t=[];for(this.peekStartsWith("(")||t.push(this.parseSegments());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),t.push(this.parseSegments());var e={};this.peekStartsWith("/(")&&(this.capture("/"),e=this.parseParens(!0));var n={};return this.peekStartsWith("(")&&(n=this.parseParens(!1)),(t.length>0||Object.keys(e).length>0)&&(n[Oe]=new Ie(t,e)),n},t.prototype.parseSegments=function(){var t=Y(this.remaining);if(""===t&&this.peekStartsWith(";"))throw new Error("Empty path url segment cannot have parameters: '"+this.remaining+"'.");this.capture(t);var e={};return this.peekStartsWith(";")&&(e=this.parseMatrixParams()),new De(W(t),e)},t.prototype.parseQueryParams=function(){var t={};if(this.peekStartsWith("?"))for(this.capture("?"),this.parseQueryParam(t);this.remaining.length>0&&this.peekStartsWith("&");)this.capture("&"),this.parseQueryParam(t);return t},t.prototype.parseFragment=function(){return this.peekStartsWith("#")?decodeURI(this.remaining.substring(1)):null},t.prototype.parseMatrixParams=function(){for(var t={};this.remaining.length>0&&this.peekStartsWith(";");)this.capture(";"),this.parseParam(t);return t},t.prototype.parseParam=function(t){var e=Y(this.remaining);if(e){this.capture(e);var n="";if(this.peekStartsWith("=")){this.capture("=");var r=Y(this.remaining);r&&(n=r,this.capture(n))}t[W(e)]=W(n)}},t.prototype.parseQueryParam=function(t){var e=$(this.remaining);if(e){this.capture(e);var n="";if(this.peekStartsWith("=")){this.capture("=");var r=Z(this.remaining);r&&(n=r,this.capture(n))}var i=W(e),o=W(n);if(t.hasOwnProperty(i)){var s=t[i];Array.isArray(s)||(s=[s],t[i]=s),s.push(o)}else t[i]=o}},t.prototype.parseParens=function(t){var e={};for(this.capture("(");!this.peekStartsWith(")")&&this.remaining.length>0;){var n=Y(this.remaining),r=this.remaining[n.length];if("/"!==r&&")"!==r&&";"!==r)throw new Error("Cannot parse url '"+this.url+"'");var i=void 0;n.indexOf(":")>-1?(i=n.substr(0,n.indexOf(":")),this.capture(i),this.capture(":")):t&&(i=Oe);var o=this.parseChildren();e[i]=1===Object.keys(o).length?o[Oe]:new Ie([],o),this.peekStartsWith("//")&&this.capture("//")}return this.capture(")"),e},t}(),qe=function(){function t(t){void 0===t&&(t=null),this.segmentGroup=t}return t}(),ze=function(){function t(t){this.urlTree=t}return t}(),We=function(){function t(t,e,n,r,i){this.injector=t,this.configLoader=e,this.urlSerializer=n,this.urlTree=r,this.config=i,this.allowRedirects=!0}return t.prototype.apply=function(){var t=this,e=this.expandSegmentGroup(this.injector,this.config,this.urlTree.root,Oe),n=p.map.call(e,function(e){return t.createUrlTree(e,t.urlTree.queryParams,t.urlTree.fragment)});return d._catch.call(n,function(e){if(e instanceof ze)return t.allowRedirects=!1,t.match(e.urlTree);throw e instanceof qe?t.noMatchError(e):e})},t.prototype.match=function(t){var e=this,n=this.expandSegmentGroup(this.injector,this.config,t.root,Oe),r=p.map.call(n,function(n){return e.createUrlTree(n,t.queryParams,t.fragment)});return d._catch.call(r,function(t){throw t instanceof qe?e.noMatchError(t):t})},t.prototype.noMatchError=function(t){return new Error("Cannot match any routes. URL Segment: '"+t.segmentGroup+"'")},t.prototype.createUrlTree=function(t,e,n){var r=t.segments.length>0?new Ie([],(i={},i[Oe]=t,i)):t;return new Ne(r,e,n);var i},t.prototype.expandSegmentGroup=function(t,e,n,r){return 0===n.segments.length&&n.hasChildren()?p.map.call(this.expandChildren(t,e,n),function(t){return new Ie([],t)}):this.expandSegment(t,n,e,n.segments,r,!0)},t.prototype.expandChildren=function(t,e,n){var r=this;return A(n.children,function(n,i){return r.expandSegmentGroup(t,e,i,n)})},t.prototype.expandSegment=function(t,e,n,r,i,o){var a=this,u=s.of.apply(void 0,n),l=p.map.call(u,function(u){var c=a.expandSegmentAgainstRoute(t,e,n,u,r,i,o);return d._catch.call(c,function(t){if(t instanceof qe)return s.of(null);throw t})}),h=y.concatAll.call(l),f=c.first.call(h,function(t){return!!t});return d._catch.call(f,function(t){if(t instanceof m.EmptyError){if(a.noLeftoversInUrl(e,r,i))return s.of(new Ie([],{}));throw new qe(e)}throw t})},t.prototype.noLeftoversInUrl=function(t,e,n){return 0===e.length&&!t.children[n]},t.prototype.expandSegmentAgainstRoute=function(t,e,n,r,i,o,s){return ft(r)!==o?J(e):void 0===r.redirectTo||s&&this.allowRedirects?void 0===r.redirectTo?this.matchSegmentAgainstRoute(t,e,r,i):this.expandSegmentAgainstRouteUsingRedirect(t,e,n,r,i,o):J(e)},t.prototype.expandSegmentAgainstRouteUsingRedirect=function(t,e,n,r,i,o){ -return"**"===r.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(t,n,r,o):this.expandRegularSegmentAgainstRouteUsingRedirect(t,e,n,r,i,o)},t.prototype.expandWildCardWithParamsAgainstRouteUsingRedirect=function(t,e,n,r){var i=this,o=this.applyRedirectCommands([],n.redirectTo,{});return n.redirectTo.startsWith("/")?tt(o):l.mergeMap.call(this.lineralizeSegments(n,o),function(n){var o=new Ie(n,{});return i.expandSegment(t,o,e,n,r,!1)})},t.prototype.expandRegularSegmentAgainstRouteUsingRedirect=function(t,e,n,r,i,o){var s=this,a=ot(e,r,i),u=a.matched,c=a.consumedSegments,p=a.lastChild,h=a.positionalParamSegments;if(!u)return J(e);var f=this.applyRedirectCommands(c,r.redirectTo,h);return r.redirectTo.startsWith("/")?tt(f):l.mergeMap.call(this.lineralizeSegments(r,f),function(r){return s.expandSegment(t,e,n,r.concat(i.slice(p)),o,!1)})},t.prototype.matchSegmentAgainstRoute=function(t,e,n,r){var i=this;if("**"===n.path)return n.loadChildren?p.map.call(this.configLoader.load(t,n.loadChildren),function(t){return n._loadedConfig=t,new Ie(r,{})}):s.of(new Ie(r,{}));var o=ot(e,n,r),a=o.matched,u=o.consumedSegments,c=o.lastChild;if(!a)return J(e);var h=r.slice(c),f=this.getChildConfig(t,n);return l.mergeMap.call(f,function(t){var n=t.injector,r=t.routes,o=st(e,u,h,r),a=o.segmentGroup,c=o.slicedSegments;if(0===c.length&&a.hasChildren()){var l=i.expandChildren(n,r,a);return p.map.call(l,function(t){return new Ie(u,t)})}if(0===r.length&&0===c.length)return s.of(new Ie(u,{}));var l=i.expandSegment(n,a,r,c,Oe,!0);return p.map.call(l,function(t){return new Ie(u.concat(t.segments),t.children)})})},t.prototype.getChildConfig=function(t,e){var n=this;return e.children?s.of(new Re(e.children,t,null,null)):e.loadChildren?l.mergeMap.call(it(t,e),function(r){return r?e._loadedConfig?s.of(e._loadedConfig):p.map.call(n.configLoader.load(t,e.loadChildren),function(t){return e._loadedConfig=t,t}):nt(e)}):s.of(new Re([],t,null,null))},t.prototype.lineralizeSegments=function(t,e){for(var n=[],r=e.root;;){if(n=n.concat(r.segments),0===r.numberOfChildren)return s.of(n);if(r.numberOfChildren>1||!r.children[Oe])return et(t.redirectTo);r=r.children[Oe]}},t.prototype.applyRedirectCommands=function(t,e,n){this.urlSerializer.parse(e);return this.applyRedirectCreatreUrlTree(e,this.urlSerializer.parse(e),t,n)},t.prototype.applyRedirectCreatreUrlTree=function(t,e,n,r){var i=this.createSegmentGroup(t,e.root,n,r);return new Ne(i,this.createQueryParams(e.queryParams,this.urlTree.queryParams),e.fragment)},t.prototype.createQueryParams=function(t,e){var n={};return O(t,function(t,r){n[r]=t.startsWith(":")?e[t.substring(1)]:t}),n},t.prototype.createSegmentGroup=function(t,e,n,r){var i=this,o=this.createSegments(t,e.segments,n,r),s={};return O(e.children,function(e,o){s[o]=i.createSegmentGroup(t,e,n,r)}),new Ie(o,s)},t.prototype.createSegments=function(t,e,n,r){var i=this;return e.map(function(e){return e.path.startsWith(":")?i.findPosParam(t,e,r):i.findOrReturn(e,n)})},t.prototype.findPosParam=function(t,e,n){var r=n[e.path.substring(1)];if(!r)throw new Error("Cannot redirect to '"+t+"'. Cannot find '"+e.path+"'.");return r},t.prototype.findOrReturn=function(t,e){for(var n=0,r=0,i=e;r<i.length;r++){var o=i[r];if(o.path===t.path)return e.splice(n),o;n++}return t},t}(),Ge=function(){function t(t){this._root=t}return Object.defineProperty(t.prototype,"root",{get:function(){return this._root.value},enumerable:!0,configurable:!0}),t.prototype.parent=function(t){var e=this.pathFromRoot(t);return e.length>1?e[e.length-2]:null},t.prototype.children=function(t){var e=vt(t,this._root);return e?e.children.map(function(t){return t.value}):[]},t.prototype.firstChild=function(t){var e=vt(t,this._root);return e&&e.children.length>0?e.children[0].value:null},t.prototype.siblings=function(t){var e=gt(t,this._root,[]);if(e.length<2)return[];var n=e[e.length-2].children.map(function(t){return t.value});return n.filter(function(e){return e!==t})},t.prototype.pathFromRoot=function(t){return gt(t,this._root,[]).map(function(t){return t.value})},t}(),Ke=function(){function t(t,e){this.value=t,this.children=e}return t.prototype.toString=function(){return"TreeNode("+this.value+")"},t}(),Xe=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},Qe=function(t){function e(e,n){t.call(this,e),this.snapshot=n,Et(this,e)}return Xe(e,t),e.prototype.toString=function(){return this.snapshot.toString()},e}(Ge),Ye=function(){function t(t,e,n,r,i,o,s,a){this.url=t,this.params=e,this.queryParams=n,this.fragment=r,this.data=i,this.outlet=o,this.component=s,this._futureSnapshot=a}return Object.defineProperty(t.prototype,"routeConfig",{get:function(){return this._futureSnapshot.routeConfig},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"root",{get:function(){return this._routerState.root},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"parent",{get:function(){return this._routerState.parent(this)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"firstChild",{get:function(){return this._routerState.firstChild(this)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"children",{get:function(){return this._routerState.children(this)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"pathFromRoot",{get:function(){return this._routerState.pathFromRoot(this)},enumerable:!0,configurable:!0}),t.prototype.toString=function(){return this.snapshot?this.snapshot.toString():"Future("+this._futureSnapshot+")"},t}(),$e=function(){function t(t,e,n,r,i,o,s,a,u,c,p){this.url=t,this.params=e,this.queryParams=n,this.fragment=r,this.data=i,this.outlet=o,this.component=s,this._routeConfig=a,this._urlSegment=u,this._lastPathIndex=c,this._resolve=p}return Object.defineProperty(t.prototype,"routeConfig",{get:function(){return this._routeConfig},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"root",{get:function(){return this._routerState.root},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"parent",{get:function(){return this._routerState.parent(this)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"firstChild",{get:function(){return this._routerState.firstChild(this)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"children",{get:function(){return this._routerState.children(this)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"pathFromRoot",{get:function(){return this._routerState.pathFromRoot(this)},enumerable:!0,configurable:!0}),t.prototype.toString=function(){var t=this.url.map(function(t){return t.toString()}).join("/"),e=this._routeConfig?this._routeConfig.path:"";return"Route(url:'"+t+"', path:'"+e+"')"},t}(),Ze=function(t){function e(e,n){t.call(this,n),this.url=e,Et(this,n)}return Xe(e,t),e.prototype.toString=function(){return St(this._root)},e}(Ge),Je=function(){function t(t,e,n){if(this.isAbsolute=t,this.numberOfDoubleDots=e,this.commands=n,t&&n.length>0&&kt(n[0]))throw new Error("Root segment cannot have matrix parameters");var r=n.find(function(t){return"object"==typeof t&&null!=t&&t.outlets});if(r&&r!==T(n))throw new Error("{outlets:{}} has to be the last command")}return t.prototype.toRoot=function(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]},t}(),tn=function(){function t(t,e,n){this.segmentGroup=t,this.processChildren=e,this.index=n}return t}(),en=function(){function t(){}return t}(),nn=function(){function t(t,e,n,r){this.rootComponentType=t,this.config=e,this.urlTree=n,this.url=r}return t.prototype.recognize=function(){try{var t=te(this.urlTree.root,[],[],this.config).segmentGroup,e=this.processSegmentGroup(this.config,t,Oe),n=new $e([],Object.freeze({}),Object.freeze(this.urlTree.queryParams),this.urlTree.fragment,{},Oe,this.rootComponentType,null,this.urlTree.root,-1,{}),r=new Ke(n,e),i=new Ze(this.url,r);return this.inheriteParamsAndData(i._root),s.of(i)}catch(o){return new f.Observable(function(t){return t.error(o)})}},t.prototype.inheriteParamsAndData=function(t){var e=this,n=t.value,r=wt(n);n.params=Object.freeze(r.params),n.data=Object.freeze(r.data),t.children.forEach(function(t){return e.inheriteParamsAndData(t)})},t.prototype.processSegmentGroup=function(t,e,n){return 0===e.segments.length&&e.hasChildren()?this.processChildren(t,e):this.processSegment(t,e,e.segments,n)},t.prototype.processChildren=function(t,e){var n=this,r=B(e,function(e,r){return n.processSegmentGroup(t,e,r)});return $t(r),Xt(r),r},t.prototype.processSegment=function(t,e,n,r){for(var i=0,o=t;i<o.length;i++){var s=o[i];try{return this.processSegmentAgainstRoute(s,e,n,r)}catch(a){if(!(a instanceof en))throw a}}if(this.noLeftoversInUrl(e,n,r))return[];throw new en},t.prototype.noLeftoversInUrl=function(t,e,n){return 0===e.length&&!t.children[n]},t.prototype.processSegmentAgainstRoute=function(t,e,n,r){if(t.redirectTo)throw new en;if((t.outlet?t.outlet:Oe)!==r)throw new en;if("**"===t.path){var i=n.length>0?T(n).parameters:{},o=new $e(n,i,Object.freeze(this.urlTree.queryParams),this.urlTree.fragment,ae(t),r,t.component,t,Zt(e),Jt(e)+n.length,ue(t));return[new Ke(o,[])]}var s=Yt(e,t,n),a=s.consumedSegments,u=s.parameters,c=s.lastChild,p=n.slice(c),l=Qt(t),h=te(e,a,p,l),f=h.segmentGroup,d=h.slicedSegments,y=new $e(a,u,Object.freeze(this.urlTree.queryParams),this.urlTree.fragment,ae(t),r,t.component,t,Zt(e),Jt(e)+a.length,ue(t));if(0===d.length&&f.hasChildren()){var m=this.processChildren(l,f);return[new Ke(y,m)]}if(0===l.length&&0===d.length)return[new Ke(y,[])];var m=this.processSegment(l,f,d,Oe);return[new Ke(y,m)]},t}(),rn=function(){function t(){this._outlets={}}return t.prototype.registerOutlet=function(t,e){this._outlets[t]=e},t.prototype.removeOutlet=function(t){this._outlets[t]=void 0},t}(),on=function(){function t(){}return t.prototype.shouldProcessUrl=function(){},t.prototype.extract=function(){},t.prototype.merge=function(){},t}(),sn=function(){function t(){}return t.prototype.shouldProcessUrl=function(){return!0},t.prototype.extract=function(t){return t},t.prototype.merge=function(t){return t},t}(),an=function(){function t(t,e){this.id=t,this.url=e}return t.prototype.toString=function(){return"NavigationStart(id: "+this.id+", url: '"+this.url+"')"},t}(),un=function(){function t(t,e,n){this.id=t,this.url=e,this.urlAfterRedirects=n}return t.prototype.toString=function(){return"NavigationEnd(id: "+this.id+", url: '"+this.url+"', urlAfterRedirects: '"+this.urlAfterRedirects+"')"},t}(),cn=function(){function t(t,e,n){this.id=t,this.url=e,this.reason=n}return t.prototype.toString=function(){return"NavigationCancel(id: "+this.id+", url: '"+this.url+"')"},t}(),pn=function(){function t(t,e,n){this.id=t,this.url=e,this.error=n}return t.prototype.toString=function(){return"NavigationError(id: "+this.id+", url: '"+this.url+"', error: "+this.error+")"},t}(),ln=function(){function t(t,e,n,r){this.id=t,this.url=e,this.urlAfterRedirects=n,this.state=r}return t.prototype.toString=function(){return"RoutesRecognized(id: "+this.id+", url: '"+this.url+"', urlAfterRedirects: '"+this.urlAfterRedirects+"', state: "+this.state+")"},t}(),hn=function(){function t(){}return t.prototype.shouldDetach=function(){return!1},t.prototype.store=function(){},t.prototype.shouldAttach=function(){return!1},t.prototype.retrieve=function(){return null},t.prototype.shouldReuseRoute=function(t,e){return t.routeConfig===e.routeConfig},t}(),fn=function(){function t(t,e,n,o,s,a,u,c){this.rootComponentType=t,this.urlSerializer=e,this.outletMap=n,this.location=o,this.injector=s,this.config=c,this.navigations=new r.BehaviorSubject(null),this.routerEvents=new i.Subject,this.navigationId=0,this.errorHandler=ce,this.navigated=!1,this.urlHandlingStrategy=new sn,this.routeReuseStrategy=new hn,this.resetConfig(c),this.currentUrlTree=k(),this.rawUrlTree=this.currentUrlTree,this.configLoader=new ke(a,u),this.currentRouterState=_t(this.currentUrlTree,this.rootComponentType),this.processNavigations()}return t.prototype.resetRootComponentType=function(t){this.rootComponentType=t,this.currentRouterState.root.component=this.rootComponentType},t.prototype.initialNavigation=function(){this.setUpLocationChangeListener(),0===this.navigationId&&this.navigateByUrl(this.location.path(!0),{replaceUrl:!0})},t.prototype.setUpLocationChangeListener=function(){var t=this;this.locationSubscription||(this.locationSubscription=this.location.subscribe(Zone.current.wrap(function(e){var n=t.urlSerializer.parse(e.url),r="popstate"===e.type?"popstate":"hashchange";setTimeout(function(){t.scheduleNavigation(n,r,{replaceUrl:!0})},0)})))},Object.defineProperty(t.prototype,"routerState",{get:function(){return this.currentRouterState},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"url",{get:function(){return this.serializeUrl(this.currentUrlTree)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"events",{get:function(){return this.routerEvents},enumerable:!0,configurable:!0}),t.prototype.resetConfig=function(t){dt(t),this.config=t},t.prototype.ngOnDestroy=function(){this.dispose()},t.prototype.dispose=function(){this.locationSubscription&&(this.locationSubscription.unsubscribe(),this.locationSubscription=null)},t.prototype.createUrlTree=function(t,e){var n=void 0===e?{}:e,r=n.relativeTo,i=n.queryParams,o=n.fragment,s=n.preserveQueryParams,a=n.preserveFragment,u=r||this.routerState.root,c=s?this.currentUrlTree.queryParams:i,p=a?this.currentUrlTree.fragment:o;return Rt(u,this.currentUrlTree,t,c,p)},t.prototype.navigateByUrl=function(t,e){if(void 0===e&&(e={skipLocationChange:!1}),t instanceof Ne)return this.scheduleNavigation(this.urlHandlingStrategy.merge(t,this.rawUrlTree),"imperative",e);var n=this.urlSerializer.parse(t);return this.scheduleNavigation(this.urlHandlingStrategy.merge(n,this.rawUrlTree),"imperative",e)},t.prototype.navigate=function(t,e){return void 0===e&&(e={skipLocationChange:!1}),ye(t),"object"==typeof e.queryParams&&null!==e.queryParams&&(e.queryParams=this.removeEmptyProps(e.queryParams)),this.navigateByUrl(this.createUrlTree(t,e),e)},t.prototype.serializeUrl=function(t){return this.urlSerializer.serialize(t)},t.prototype.parseUrl=function(t){return this.urlSerializer.parse(t)},t.prototype.isActive=function(t,e){if(t instanceof Ne)return N(this.currentUrlTree,t,e);var n=this.urlSerializer.parse(t);return N(this.currentUrlTree,n,e)},t.prototype.removeEmptyProps=function(t){return Object.keys(t).reduce(function(e,n){var r=t[n];return null!==r&&void 0!==r&&(e[n]=r),e},{})},t.prototype.processNavigations=function(){var t=this;a.concatMap.call(this.navigations,function(e){return e?(t.executeScheduledNavigation(e),e.promise["catch"](function(){})):s.of(null)}).subscribe(function(){})},t.prototype.scheduleNavigation=function(t,e,n){var r=this.navigations.value;if(r&&"imperative"!==e&&"imperative"===r.source&&r.rawUrl.toString()===t.toString())return null;if(r&&"hashchange"==e&&"popstate"===r.source&&r.rawUrl.toString()===t.toString())return null;var i=null,o=null,s=new Promise(function(t,e){i=t,o=e}),a=++this.navigationId;return this.navigations.next({id:a,source:e,rawUrl:t,extras:n,resolve:i,reject:o,promise:s}),s["catch"](function(t){return Promise.reject(t)})},t.prototype.executeScheduledNavigation=function(t){var e=this,n=t.id,r=t.rawUrl,i=t.extras,o=t.resolve,s=t.reject,a=this.urlHandlingStrategy.extract(r),u=!this.navigated||a.toString()!==this.currentUrlTree.toString();u&&this.urlHandlingStrategy.shouldProcessUrl(r)?(this.routerEvents.next(new an(n,this.serializeUrl(a))),Promise.resolve().then(function(){return e.runNavigate(a,r,i.skipLocationChange,i.replaceUrl,n,null)}).then(o,s)):u&&this.rawUrlTree&&this.urlHandlingStrategy.shouldProcessUrl(this.rawUrlTree)?(this.routerEvents.next(new an(n,this.serializeUrl(a))),Promise.resolve().then(function(){return e.runNavigate(a,r,!1,!1,n,_t(a,e.rootComponentType).snapshot)}).then(o,s)):(this.rawUrlTree=r,o(null))},t.prototype.runNavigate=function(t,e,n,r,i,o){var a=this;return i!==this.navigationId?(this.location.go(this.urlSerializer.serialize(this.currentUrlTree)),this.routerEvents.next(new cn(i,this.serializeUrl(t),"Navigation ID "+i+" is not equal to the current navigation id "+this.navigationId)),Promise.resolve(!1)):new Promise(function(u,c){var h;if(o)h=s.of({appliedUrl:t,snapshot:o});else{var f=rt(a.injector,a.configLoader,a.urlSerializer,t,a.config);h=l.mergeMap.call(f,function(e){return p.map.call(Kt(a.rootComponentType,a.config,e,a.serializeUrl(e)),function(n){return a.routerEvents.next(new ln(i,a.serializeUrl(t),a.serializeUrl(e),n)),{appliedUrl:e,snapshot:n}})})}var d,y,m=p.map.call(h,function(t){var e=t.appliedUrl,n=t.snapshot;return d=new mn(n,a.currentRouterState.snapshot,a.injector),d.traverse(a.outletMap),{appliedUrl:e,snapshot:n}}),v=l.mergeMap.call(m,function(t){var e=t.appliedUrl,n=t.snapshot;return a.navigationId!==i?s.of(!1):p.map.call(d.checkGuards(),function(t){return{appliedUrl:e,snapshot:n,shouldActivate:t}})}),g=l.mergeMap.call(v,function(t){return a.navigationId!==i?s.of(!1):t.shouldActivate?p.map.call(d.resolveData(),function(){return t}):s.of(t)}),_=p.map.call(g,function(t){var e=t.appliedUrl,n=t.snapshot,r=t.shouldActivate;if(r){var i=Tt(a.routeReuseStrategy,n,a.currentRouterState);return{appliedUrl:e,state:i,shouldActivate:r}}return{appliedUrl:e,state:null,shouldActivate:r}}),b=a.currentRouterState,w=a.currentUrlTree;_.forEach(function(t){var o=t.appliedUrl,s=t.state,u=t.shouldActivate;if(!u||i!==a.navigationId)return void(y=!1);if(a.currentUrlTree=o,a.rawUrlTree=a.urlHandlingStrategy.merge(a.currentUrlTree,e),a.currentRouterState=s,!n){var c=a.urlSerializer.serialize(a.rawUrlTree);a.location.isCurrentPathEqualTo(c)||r?a.location.replaceState(c):a.location.go(c)}new vn(a.routeReuseStrategy,s,b).activate(a.outletMap),y=!0}).then(function(){y?(a.navigated=!0,a.routerEvents.next(new un(i,a.serializeUrl(t),a.serializeUrl(a.currentUrlTree))),u(!0)):(a.resetUrlToCurrentUrlTree(),a.routerEvents.next(new cn(i,a.serializeUrl(t),"")),u(!1))},function(n){if(n instanceof Ae)a.resetUrlToCurrentUrlTree(),a.navigated=!0,a.routerEvents.next(new cn(i,a.serializeUrl(t),n.message)),u(!1);else{a.routerEvents.next(new pn(i,a.serializeUrl(t),n));try{u(a.errorHandler(n))}catch(r){c(r)}}a.currentRouterState=b,a.currentUrlTree=w,a.rawUrlTree=a.urlHandlingStrategy.merge(a.currentUrlTree,e),a.location.replaceState(a.serializeUrl(a.rawUrlTree))})})},t.prototype.resetUrlToCurrentUrlTree=function(){var t=this.urlSerializer.serialize(this.rawUrlTree);this.location.replaceState(t)},t}(),dn=function(){function t(t){this.path=t}return Object.defineProperty(t.prototype,"route",{get:function(){return this.path[this.path.length-1]},enumerable:!0,configurable:!0}),t}(),yn=function(){function t(t,e){this.component=t,this.route=e}return t}(),mn=function(){function t(t,e,n){this.future=t,this.curr=e,this.injector=n,this.checks=[]}return t.prototype.traverse=function(t){var e=this.future._root,n=this.curr?this.curr._root:null;this.traverseChildRoutes(e,n,t,[e.value])},t.prototype.checkGuards=function(){var t=this;if(0===this.checks.length)return s.of(!0);var e=o.from(this.checks),n=l.mergeMap.call(e,function(e){if(e instanceof dn)return M(o.from([t.runCanActivateChild(e.path),t.runCanActivate(e.route)]));if(e instanceof yn){var n=e;return t.runCanDeactivate(n.component,n.route)}throw new Error("Cannot be reached")});return u.every.call(n,function(t){return t===!0})},t.prototype.resolveData=function(){var t=this;if(0===this.checks.length)return s.of(null);var e=o.from(this.checks),n=a.concatMap.call(e,function(e){return e instanceof dn?t.runResolve(e.route):s.of(null)});return h.reduce.call(n,function(t){return t})},t.prototype.traverseChildRoutes=function(t,e,n,r){var i=this,o=fe(e);t.children.forEach(function(t){i.traverseRoutes(t,o[t.value.outlet],n,r.concat([t.value])),delete o[t.value.outlet]}),O(o,function(t,e){return i.deactiveRouteAndItsChildren(t,n._outlets[e])})},t.prototype.traverseRoutes=function(t,e,n,r){var i=t.value,o=e?e.value:null,s=n?n._outlets[t.value.outlet]:null;o&&i._routeConfig===o._routeConfig?(xt(i,o)?(i.data=o.data,i._resolvedData=o._resolvedData):this.checks.push(new yn(s.component,o),new dn(r)),i.component?this.traverseChildRoutes(t,e,s?s.outletMap:null,r):this.traverseChildRoutes(t,e,n,r)):(o&&this.deactiveRouteAndItsChildren(e,s),this.checks.push(new dn(r)),i.component?this.traverseChildRoutes(t,null,s?s.outletMap:null,r):this.traverseChildRoutes(t,null,n,r))},t.prototype.deactiveRouteAndItsChildren=function(t,e){var n=this,r=fe(t),i=t.value;O(r,function(t,r){i.component?e?n.deactiveRouteAndItsChildren(t,e.outletMap._outlets[r]):n.deactiveRouteAndItsChildren(t,null):n.deactiveRouteAndItsChildren(t,e)}),this.checks.push(i.component?e&&e.isActivated?new yn(e.component,i):new yn(null,i):new yn(null,i))},t.prototype.runCanActivate=function(t){var e=this,n=t._routeConfig?t._routeConfig.canActivate:null;if(!n||0===n.length)return s.of(!0);var r=p.map.call(o.from(n),function(n){var r,i=e.getToken(n,t);return r=R(i.canActivate?i.canActivate(t,e.future):i(t,e.future)),c.first.call(r)});return M(r)},t.prototype.runCanActivateChild=function(t){var e=this,n=t[t.length-1],r=t.slice(0,t.length-1).reverse().map(function(t){return e.extractCanActivateChild(t)}).filter(function(t){return null!==t});return M(p.map.call(o.from(r),function(t){var r=p.map.call(o.from(t.guards),function(r){var i,o=e.getToken(r,t.node);return i=R(o.canActivateChild?o.canActivateChild(n,e.future):o(n,e.future)),c.first.call(i)});return M(r)}))},t.prototype.extractCanActivateChild=function(t){var e=t._routeConfig?t._routeConfig.canActivateChild:null;return e&&0!==e.length?{node:t,guards:e}:null},t.prototype.runCanDeactivate=function(t,e){var n=this,r=e&&e._routeConfig?e._routeConfig.canDeactivate:null;if(!r||0===r.length)return s.of(!0);var i=l.mergeMap.call(o.from(r),function(r){var i,o=n.getToken(r,e);return i=R(o.canDeactivate?o.canDeactivate(t,e,n.curr):o(t,e,n.curr)),c.first.call(i)});return u.every.call(i,function(t){return t===!0})},t.prototype.runResolve=function(t){var e=t._resolve;return p.map.call(this.resolveNode(e,t),function(e){return t._resolvedData=e,t.data=P(t.data,wt(t).resolve),null})},t.prototype.resolveNode=function(t,e){var n=this;return A(t,function(t,r){var i=n.getToken(r,e);return R(i.resolve?i.resolve(e,n.future):i(e,n.future))})},t.prototype.getToken=function(t,e){var n=he(e),r=n?n.injector:this.injector;return r.get(t)},t}(),vn=function(){function t(t,e,n){this.routeReuseStrategy=t,this.futureState=e,this.currState=n}return t.prototype.activate=function(t){var e=this.futureState._root,n=this.currState?this.currState._root:null;this.deactivateChildRoutes(e,n,t),Ct(this.futureState.root),this.activateChildRoutes(e,n,t)},t.prototype.deactivateChildRoutes=function(t,e,n){var r=this,i=fe(e);t.children.forEach(function(t){r.deactivateRoutes(t,i[t.value.outlet],n),delete i[t.value.outlet]}),O(i,function(t){return r.deactiveRouteAndItsChildren(t,n)})},t.prototype.activateChildRoutes=function(t,e,n){var r=this,i=fe(e);t.children.forEach(function(t){r.activateRoutes(t,i[t.value.outlet],n)})},t.prototype.deactivateRoutes=function(t,e,n){var r=t.value,i=e?e.value:null;if(r===i)if(r.component){var o=de(n,r);this.deactivateChildRoutes(t,e,o.outletMap)}else this.deactivateChildRoutes(t,e,n);else i&&this.deactiveRouteAndItsChildren(e,n)},t.prototype.activateRoutes=function(t,e,n){var r=t.value,i=e?e.value:null;if(r===i)if(Ct(r),r.component){var o=de(n,r);this.activateChildRoutes(t,e,o.outletMap)}else this.activateChildRoutes(t,e,n);else if(r.component){Ct(r);var o=de(n,t.value);if(this.routeReuseStrategy.shouldAttach(r.snapshot)){var s=this.routeReuseStrategy.retrieve(r.snapshot);this.routeReuseStrategy.store(r.snapshot,null),o.attach(s.componentRef,s.route.value),pe(s.route)}else{var a=new rn;this.placeComponentIntoOutlet(a,r,o),this.activateChildRoutes(t,null,a)}}else Ct(r),this.activateChildRoutes(t,null,n)},t.prototype.placeComponentIntoOutlet=function(t,e,r){var i=[{provide:Ye,useValue:e},{provide:rn,useValue:t}],o=le(e.snapshot),s=null,a=null;o?(a=o.injectorFactory(r.locationInjector),s=o.factoryResolver,i.push({provide:n.ComponentFactoryResolver,useValue:s})):(a=r.locationInjector,s=r.locationFactoryResolver),r.activate(e,s,a,n.ReflectiveInjector.resolve(i),t)},t.prototype.deactiveRouteAndItsChildren=function(t,e){this.routeReuseStrategy.shouldDetach(t.value.snapshot)?this.detachAndStoreRouteSubtree(t,e):this.deactiveRouteAndOutlet(t,e)},t.prototype.detachAndStoreRouteSubtree=function(t,e){var n=de(e,t.value),r=n.detach();this.routeReuseStrategy.store(t.value.snapshot,{componentRef:r,route:t})},t.prototype.deactiveRouteAndOutlet=function(t,e){var n=this,r=fe(t),i=null;try{i=de(e,t.value)}catch(o){return}var s=i.outletMap;O(r,function(r){t.value.component?n.deactiveRouteAndItsChildren(r,s):n.deactiveRouteAndItsChildren(r,e)}),i&&i.isActivated&&i.deactivate()},t}(),gn=function(){function t(t,e){this.router=t,this.route=e,this.commands=[]}return Object.defineProperty(t.prototype,"routerLink",{set:function(t){this.commands=null!=t?Array.isArray(t)?t:[t]:[]},enumerable:!0,configurable:!0}),t.prototype.onClick=function(){var t={skipLocationChange:me(this.skipLocationChange),replaceUrl:me(this.replaceUrl)};return this.router.navigateByUrl(this.urlTree,t),!0},Object.defineProperty(t.prototype,"urlTree",{get:function(){return this.router.createUrlTree(this.commands,{relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,preserveQueryParams:me(this.preserveQueryParams),preserveFragment:me(this.preserveFragment)})},enumerable:!0,configurable:!0}),t.decorators=[{type:n.Directive,args:[{selector:":not(a)[routerLink]"}]}],t.ctorParameters=function(){return[{type:fn},{type:Ye}]},t.propDecorators={queryParams:[{type:n.Input}],fragment:[{type:n.Input}],preserveQueryParams:[{type:n.Input}],preserveFragment:[{type:n.Input}],skipLocationChange:[{type:n.Input}],replaceUrl:[{type:n.Input}],routerLink:[{type:n.Input}],onClick:[{type:n.HostListener,args:["click"]}]},t}(),_n=function(){function t(t,e,n){var r=this;this.router=t,this.route=e,this.locationStrategy=n,this.commands=[],this.subscription=t.events.subscribe(function(t){t instanceof un&&r.updateTargetUrlAndHref()})}return Object.defineProperty(t.prototype,"routerLink",{set:function(t){this.commands=null!=t?Array.isArray(t)?t:[t]:[]},enumerable:!0,configurable:!0}),t.prototype.ngOnChanges=function(){this.updateTargetUrlAndHref()},t.prototype.ngOnDestroy=function(){this.subscription.unsubscribe()},t.prototype.onClick=function(t,e,n){if(0!==t||e||n)return!0;if("string"==typeof this.target&&"_self"!=this.target)return!0;var r={skipLocationChange:me(this.skipLocationChange),replaceUrl:me(this.replaceUrl)};return this.router.navigateByUrl(this.urlTree,r),!1},t.prototype.updateTargetUrlAndHref=function(){this.href=this.locationStrategy.prepareExternalUrl(this.router.serializeUrl(this.urlTree))},Object.defineProperty(t.prototype,"urlTree",{get:function(){return this.router.createUrlTree(this.commands,{relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,preserveQueryParams:me(this.preserveQueryParams),preserveFragment:me(this.preserveFragment)})},enumerable:!0,configurable:!0}),t.decorators=[{type:n.Directive,args:[{selector:"a[routerLink]"}]}],t.ctorParameters=function(){return[{type:fn},{type:Ye},{type:e.LocationStrategy}]},t.propDecorators={target:[{type:n.HostBinding,args:["attr.target"]},{type:n.Input}],queryParams:[{type:n.Input}],fragment:[{type:n.Input}],preserveQueryParams:[{type:n.Input}],preserveFragment:[{type:n.Input}],skipLocationChange:[{type:n.Input}],replaceUrl:[{type:n.Input}],href:[{type:n.HostBinding}],routerLink:[{type:n.Input}],onClick:[{type:n.HostListener,args:["click",["$event.button","$event.ctrlKey","$event.metaKey"]]}]},t}(),bn=function(){function t(t,e,n,r){var i=this;this.router=t,this.element=e,this.renderer=n,this.cdr=r,this.classes=[],this.active=!1,this.routerLinkActiveOptions={exact:!1},this.subscription=t.events.subscribe(function(t){t instanceof un&&i.update()})}return Object.defineProperty(t.prototype,"isActive",{get:function(){return this.active},enumerable:!0,configurable:!0}),t.prototype.ngAfterContentInit=function(){var t=this;this.links.changes.subscribe(function(){return t.update()}),this.linksWithHrefs.changes.subscribe(function(){return t.update()}),this.update()},Object.defineProperty(t.prototype,"routerLinkActive",{set:function(t){var e=Array.isArray(t)?t:t.split(" ");this.classes=e.filter(function(t){return!!t})},enumerable:!0,configurable:!0}),t.prototype.ngOnChanges=function(){this.update()},t.prototype.ngOnDestroy=function(){this.subscription.unsubscribe()},t.prototype.update=function(){var t=this;if(this.links&&this.linksWithHrefs&&this.router.navigated){var e=this.hasActiveLinks();this.active!==e&&(this.active=e,this.classes.forEach(function(n){return t.renderer.setElementClass(t.element.nativeElement,n,e)}),this.cdr.detectChanges())}},t.prototype.isLinkActive=function(t){var e=this;return function(n){return t.isActive(n.urlTree,e.routerLinkActiveOptions.exact)}},t.prototype.hasActiveLinks=function(){return this.links.some(this.isLinkActive(this.router))||this.linksWithHrefs.some(this.isLinkActive(this.router))},t.decorators=[{type:n.Directive,args:[{selector:"[routerLinkActive]",exportAs:"routerLinkActive"}]}],t.ctorParameters=function(){return[{type:fn},{type:n.ElementRef},{type:n.Renderer},{type:n.ChangeDetectorRef}]},t.propDecorators={links:[{type:n.ContentChildren,args:[gn,{descendants:!0}]}],linksWithHrefs:[{type:n.ContentChildren,args:[_n,{descendants:!0}]}],routerLinkActiveOptions:[{type:n.Input}],routerLinkActive:[{type:n.Input}]},t}(),wn=function(){function t(t,e,r,i){this.parentOutletMap=t,this.location=e,this.resolver=r,this.name=i,this.activateEvents=new n.EventEmitter,this.deactivateEvents=new n.EventEmitter,t.registerOutlet(i?i:Oe,this)}return t.prototype.ngOnDestroy=function(){this.parentOutletMap.removeOutlet(this.name?this.name:Oe)},Object.defineProperty(t.prototype,"locationInjector",{get:function(){return this.location.injector},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"locationFactoryResolver",{get:function(){return this.resolver},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isActivated",{get:function(){return!!this.activated},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"component",{get:function(){if(!this.activated)throw new Error("Outlet is not activated");return this.activated.instance},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"activatedRoute",{get:function(){if(!this.activated)throw new Error("Outlet is not activated");return this._activatedRoute},enumerable:!0,configurable:!0}),t.prototype.detach=function(){if(!this.activated)throw new Error("Outlet is not activated");this.location.detach();var t=this.activated;return this.activated=null,this._activatedRoute=null,t},t.prototype.attach=function(t,e){this.activated=t,this._activatedRoute=e,this.location.insert(t.hostView)},t.prototype.deactivate=function(){if(this.activated){var t=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(t)}},t.prototype.activate=function(t,e,r,i,o){if(this.isActivated)throw new Error("Cannot activate an already activated outlet");this.outletMap=o,this._activatedRoute=t;var s=t._futureSnapshot,a=s._routeConfig.component,u=e.resolveComponentFactory(a),c=n.ReflectiveInjector.fromResolvedProviders(i,r);this.activated=this.location.createComponent(u,this.location.length,c,[]),this.activated.changeDetectorRef.detectChanges(),this.activateEvents.emit(this.activated.instance)},t.decorators=[{type:n.Directive,args:[{selector:"router-outlet"}]}],t.ctorParameters=function(){ -return[{type:rn},{type:n.ViewContainerRef},{type:n.ComponentFactoryResolver},{type:void 0,decorators:[{type:n.Attribute,args:["name"]}]}]},t.propDecorators={activateEvents:[{type:n.Output,args:["activate"]}],deactivateEvents:[{type:n.Output,args:["deactivate"]}]},t}(),En=function(){function t(){}return t.prototype.shouldDetach=function(){},t.prototype.store=function(){},t.prototype.shouldAttach=function(){},t.prototype.retrieve=function(){},t.prototype.shouldReuseRoute=function(){},t}(),Sn=b.__platform_browser_private__.getDOM,Cn=function(){function t(){}return t.prototype.preload=function(){},t}(),xn=function(){function t(){}return t.prototype.preload=function(t,e){return d._catch.call(e(),function(){return s.of(null)})},t}(),Tn=function(){function t(){}return t.prototype.preload=function(){return s.of(null)},t}(),Pn=function(){function t(t,e,n,r,i){this.router=t,this.injector=r,this.preloadingStrategy=i,this.loader=new ke(e,n)}return t.prototype.setUpPreloading=function(){var t=this,e=w.filter.call(this.router.events,function(t){return t instanceof un});this.subscription=a.concatMap.call(e,function(){return t.preload()}).subscribe(function(){})},t.prototype.preload=function(){return this.processRoutes(this.injector,this.router.config)},t.prototype.ngOnDestroy=function(){this.subscription.unsubscribe()},t.prototype.processRoutes=function(t,e){for(var n=[],r=0,i=e;r<i.length;r++){var s=i[r];if(s.loadChildren&&!s.canLoad&&s._loadedConfig){var a=s._loadedConfig;n.push(this.processRoutes(a.injector,a.routes))}else s.loadChildren&&!s.canLoad?n.push(this.preloadConfig(t,s)):s.children&&n.push(this.processRoutes(t,s.children))}return _.mergeAll.call(o.from(n))},t.prototype.preloadConfig=function(t,e){var n=this;return this.preloadingStrategy.preload(e,function(){var r=n.loader.load(t,e.loadChildren);return l.mergeMap.call(r,function(t){var r=e;return r._loadedConfig=t,n.processRoutes(t.injector,t.routes)})})},t.decorators=[{type:n.Injectable}],t.ctorParameters=function(){return[{type:fn},{type:n.NgModuleFactoryLoader},{type:n.Compiler},{type:n.Injector},{type:Cn}]},t}(),On=[wn,gn,_n,bn],An=new n.OpaqueToken("ROUTER_CONFIGURATION"),Mn=new n.OpaqueToken("ROUTER_FORROOT_GUARD"),Rn=[e.Location,{provide:je,useClass:Le},{provide:fn,useFactory:we,deps:[n.ApplicationRef,je,rn,e.Location,n.Injector,n.NgModuleFactoryLoader,n.Compiler,Me,An,[on,new n.Optional],[En,new n.Optional]]},rn,{provide:Ye,useFactory:Ee,deps:[fn]},{provide:n.NgModuleFactoryLoader,useClass:n.SystemJsNgModuleLoader},Pn,Tn,xn,{provide:An,useValue:{enableTracing:!1}}],kn=function(){function t(){}return t.forRoot=function(r,i){return{ngModule:t,providers:[Rn,be(r),{provide:Mn,useFactory:_e,deps:[[fn,new n.Optional,new n.SkipSelf]]},{provide:An,useValue:i?i:{}},{provide:e.LocationStrategy,useFactory:ge,deps:[e.PlatformLocation,[new n.Inject(e.APP_BASE_HREF),new n.Optional],An]},{provide:Cn,useExisting:i&&i.preloadingStrategy?i.preloadingStrategy:Tn},{provide:n.NgProbeToken,multi:!0,useFactory:ve},Ce()]}},t.forChild=function(e){return{ngModule:t,providers:[be(e)]}},t.decorators=[{type:n.NgModule,args:[{declarations:On,exports:On}]}],t.ctorParameters=function(){return[{type:void 0,decorators:[{type:n.Optional},{type:n.Inject,args:[Mn]}]}]},t}(),Nn=new n.OpaqueToken("Router Initializer"),In=new n.Version("3.4.9"),Dn={ROUTER_PROVIDERS:Rn,ROUTES:Me,flatten:x};t.RouterLink=gn,t.RouterLinkWithHref=_n,t.RouterLinkActive=bn,t.RouterOutlet=wn,t.RouteReuseStrategy=En,t.NavigationCancel=cn,t.NavigationEnd=un,t.NavigationError=pn,t.NavigationStart=an,t.Router=fn,t.RoutesRecognized=ln,t.ROUTER_CONFIGURATION=An,t.ROUTER_INITIALIZER=Nn,t.RouterModule=kn,t.provideRoutes=be,t.RouterOutletMap=rn,t.NoPreloading=Tn,t.PreloadAllModules=xn,t.PreloadingStrategy=Cn,t.RouterPreloader=Pn,t.ActivatedRoute=Ye,t.ActivatedRouteSnapshot=$e,t.RouterState=Qe,t.RouterStateSnapshot=Ze,t.PRIMARY_OUTLET=Oe,t.UrlHandlingStrategy=on,t.DefaultUrlSerializer=Le,t.UrlSegment=De,t.UrlSegmentGroup=Ie,t.UrlSerializer=je,t.UrlTree=Ne,t.VERSION=In,t.__router_private__=Dn})},{"@angular/common":5,"@angular/core":7,"@angular/platform-browser":10,"rxjs/BehaviorSubject":12,"rxjs/Observable":15,"rxjs/Subject":18,"rxjs/observable/from":30,"rxjs/observable/fromPromise":31,"rxjs/observable/of":32,"rxjs/operator/catch":33,"rxjs/operator/concatAll":34,"rxjs/operator/concatMap":35,"rxjs/operator/every":36,"rxjs/operator/filter":37,"rxjs/operator/first":38,"rxjs/operator/last":39,"rxjs/operator/map":40,"rxjs/operator/mergeAll":41,"rxjs/operator/mergeMap":42,"rxjs/operator/reduce":44,"rxjs/util/EmptyError":48}],12:[function(t,e,n){"use strict";var r=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},i=t("./Subject"),o=t("./util/ObjectUnsubscribedError"),s=function(t){function e(e){t.call(this),this._value=e}return r(e,t),Object.defineProperty(e.prototype,"value",{get:function(){return this.getValue()},enumerable:!0,configurable:!0}),e.prototype._subscribe=function(e){var n=t.prototype._subscribe.call(this,e);return n&&!n.closed&&e.next(this._value),n},e.prototype.getValue=function(){if(this.hasError)throw this.thrownError;if(this.closed)throw new o.ObjectUnsubscribedError;return this._value},e.prototype.next=function(e){t.prototype.next.call(this,this._value=e)},e}(i.Subject);n.BehaviorSubject=s},{"./Subject":18,"./util/ObjectUnsubscribedError":49}],13:[function(t,e,n){"use strict";var r=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},i=t("./Subscriber"),o=function(t){function e(e,n,r){t.call(this),this.parent=e,this.outerValue=n,this.outerIndex=r,this.index=0}return r(e,t),e.prototype._next=function(t){this.parent.notifyNext(this.outerValue,t,this.outerIndex,this.index++,this)},e.prototype._error=function(t){this.parent.notifyError(t,this),this.unsubscribe()},e.prototype._complete=function(){this.parent.notifyComplete(this),this.unsubscribe()},e}(i.Subscriber);n.InnerSubscriber=o},{"./Subscriber":20}],14:[function(t,e,n){"use strict";var r=t("./Observable"),i=function(){function t(t,e,n){this.kind=t,this.value=e,this.error=n,this.hasValue="N"===t}return t.prototype.observe=function(t){switch(this.kind){case"N":return t.next&&t.next(this.value);case"E":return t.error&&t.error(this.error);case"C":return t.complete&&t.complete()}},t.prototype["do"]=function(t,e,n){var r=this.kind;switch(r){case"N":return t&&t(this.value);case"E":return e&&e(this.error);case"C":return n&&n()}},t.prototype.accept=function(t,e,n){return t&&"function"==typeof t.next?this.observe(t):this["do"](t,e,n)},t.prototype.toObservable=function(){var t=this.kind;switch(t){case"N":return r.Observable.of(this.value);case"E":return r.Observable["throw"](this.error);case"C":return r.Observable.empty()}throw new Error("unexpected notification kind value")},t.createNext=function(e){return"undefined"!=typeof e?new t("N",e):this.undefinedValueNotification},t.createError=function(e){return new t("E",void 0,e)},t.createComplete=function(){return this.completeNotification},t.completeNotification=new t("C"),t.undefinedValueNotification=new t("N",void 0),t}();n.Notification=i},{"./Observable":15}],15:[function(t,e,n){"use strict";var r=t("./util/root"),i=t("./util/toSubscriber"),o=t("./symbol/observable"),s=function(){function t(t){this._isScalar=!1,t&&(this._subscribe=t)}return t.prototype.lift=function(e){var n=new t;return n.source=this,n.operator=e,n},t.prototype.subscribe=function(t,e,n){var r=this.operator,o=i.toSubscriber(t,e,n);if(r?r.call(o,this.source):o.add(this._subscribe(o)),o.syncErrorThrowable&&(o.syncErrorThrowable=!1,o.syncErrorThrown))throw o.syncErrorValue;return o},t.prototype.forEach=function(t,e){var n=this;if(e||(r.root.Rx&&r.root.Rx.config&&r.root.Rx.config.Promise?e=r.root.Rx.config.Promise:r.root.Promise&&(e=r.root.Promise)),!e)throw new Error("no Promise impl found");return new e(function(e,r){var i=n.subscribe(function(e){if(i)try{t(e)}catch(n){r(n),i.unsubscribe()}else t(e)},r,e)})},t.prototype._subscribe=function(t){return this.source.subscribe(t)},t.prototype[o.$$observable]=function(){return this},t.create=function(e){return new t(e)},t}();n.Observable=s},{"./symbol/observable":46,"./util/root":57,"./util/toSubscriber":59}],16:[function(t,e,n){"use strict";n.empty={closed:!0,next:function(){},error:function(t){throw t},complete:function(){}}},{}],17:[function(t,e,n){"use strict";var r=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},i=t("./Subscriber"),o=function(t){function e(){t.apply(this,arguments)}return r(e,t),e.prototype.notifyNext=function(t,e){this.destination.next(e)},e.prototype.notifyError=function(t){this.destination.error(t)},e.prototype.notifyComplete=function(){this.destination.complete()},e}(i.Subscriber);n.OuterSubscriber=o},{"./Subscriber":20}],18:[function(t,e,n){"use strict";var r=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},i=t("./Observable"),o=t("./Subscriber"),s=t("./Subscription"),a=t("./util/ObjectUnsubscribedError"),u=t("./SubjectSubscription"),c=t("./symbol/rxSubscriber"),p=function(t){function e(e){t.call(this,e),this.destination=e}return r(e,t),e}(o.Subscriber);n.SubjectSubscriber=p;var l=function(t){function e(){t.call(this),this.observers=[],this.closed=!1,this.isStopped=!1,this.hasError=!1,this.thrownError=null}return r(e,t),e.prototype[c.$$rxSubscriber]=function(){return new p(this)},e.prototype.lift=function(t){var e=new h(this,this);return e.operator=t,e},e.prototype.next=function(t){if(this.closed)throw new a.ObjectUnsubscribedError;if(!this.isStopped)for(var e=this.observers,n=e.length,r=e.slice(),i=0;n>i;i++)r[i].next(t)},e.prototype.error=function(t){if(this.closed)throw new a.ObjectUnsubscribedError;this.hasError=!0,this.thrownError=t,this.isStopped=!0;for(var e=this.observers,n=e.length,r=e.slice(),i=0;n>i;i++)r[i].error(t);this.observers.length=0},e.prototype.complete=function(){if(this.closed)throw new a.ObjectUnsubscribedError;this.isStopped=!0;for(var t=this.observers,e=t.length,n=t.slice(),r=0;e>r;r++)n[r].complete();this.observers.length=0},e.prototype.unsubscribe=function(){this.isStopped=!0,this.closed=!0,this.observers=null},e.prototype._subscribe=function(t){if(this.closed)throw new a.ObjectUnsubscribedError;return this.hasError?(t.error(this.thrownError),s.Subscription.EMPTY):this.isStopped?(t.complete(),s.Subscription.EMPTY):(this.observers.push(t),new u.SubjectSubscription(this,t))},e.prototype.asObservable=function(){var t=new i.Observable;return t.source=this,t},e.create=function(t,e){return new h(t,e)},e}(i.Observable);n.Subject=l;var h=function(t){function e(e,n){t.call(this),this.destination=e,this.source=n}return r(e,t),e.prototype.next=function(t){var e=this.destination;e&&e.next&&e.next(t)},e.prototype.error=function(t){var e=this.destination;e&&e.error&&this.destination.error(t)},e.prototype.complete=function(){var t=this.destination;t&&t.complete&&this.destination.complete()},e.prototype._subscribe=function(t){var e=this.source;return e?this.source.subscribe(t):s.Subscription.EMPTY},e}(l);n.AnonymousSubject=h},{"./Observable":15,"./SubjectSubscription":19,"./Subscriber":20,"./Subscription":21,"./symbol/rxSubscriber":47,"./util/ObjectUnsubscribedError":49}],19:[function(t,e,n){"use strict";var r=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},i=t("./Subscription"),o=function(t){function e(e,n){t.call(this),this.subject=e,this.subscriber=n,this.closed=!1}return r(e,t),e.prototype.unsubscribe=function(){if(!this.closed){this.closed=!0;var t=this.subject,e=t.observers;if(this.subject=null,e&&0!==e.length&&!t.isStopped&&!t.closed){var n=e.indexOf(this.subscriber);-1!==n&&e.splice(n,1)}}},e}(i.Subscription);n.SubjectSubscription=o},{"./Subscription":21}],20:[function(t,e,n){"use strict";var r=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},i=t("./util/isFunction"),o=t("./Subscription"),s=t("./Observer"),a=t("./symbol/rxSubscriber"),u=function(t){function e(n,r,i){switch(t.call(this),this.syncErrorValue=null,this.syncErrorThrown=!1,this.syncErrorThrowable=!1,this.isStopped=!1,arguments.length){case 0:this.destination=s.empty;break;case 1:if(!n){this.destination=s.empty;break}if("object"==typeof n){n instanceof e?(this.destination=n,this.destination.add(this)):(this.syncErrorThrowable=!0,this.destination=new c(this,n));break}default:this.syncErrorThrowable=!0,this.destination=new c(this,n,r,i)}}return r(e,t),e.prototype[a.$$rxSubscriber]=function(){return this},e.create=function(t,n,r){var i=new e(t,n,r);return i.syncErrorThrowable=!1,i},e.prototype.next=function(t){this.isStopped||this._next(t)},e.prototype.error=function(t){this.isStopped||(this.isStopped=!0,this._error(t))},e.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},e.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,t.prototype.unsubscribe.call(this))},e.prototype._next=function(t){this.destination.next(t)},e.prototype._error=function(t){this.destination.error(t),this.unsubscribe()},e.prototype._complete=function(){this.destination.complete(),this.unsubscribe()},e}(o.Subscription);n.Subscriber=u;var c=function(t){function e(e,n,r,o){t.call(this),this._parent=e;var s,a=this;i.isFunction(n)?s=n:n&&(a=n,s=n.next,r=n.error,o=n.complete,i.isFunction(a.unsubscribe)&&this.add(a.unsubscribe.bind(a)),a.unsubscribe=this.unsubscribe.bind(this)),this._context=a,this._next=s,this._error=r,this._complete=o}return r(e,t),e.prototype.next=function(t){if(!this.isStopped&&this._next){var e=this._parent;e.syncErrorThrowable?this.__tryOrSetError(e,this._next,t)&&this.unsubscribe():this.__tryOrUnsub(this._next,t)}},e.prototype.error=function(t){if(!this.isStopped){var e=this._parent;if(this._error)e.syncErrorThrowable?(this.__tryOrSetError(e,this._error,t),this.unsubscribe()):(this.__tryOrUnsub(this._error,t),this.unsubscribe());else{if(!e.syncErrorThrowable)throw this.unsubscribe(),t;e.syncErrorValue=t,e.syncErrorThrown=!0,this.unsubscribe()}}},e.prototype.complete=function(){if(!this.isStopped){var t=this._parent;this._complete?t.syncErrorThrowable?(this.__tryOrSetError(t,this._complete),this.unsubscribe()):(this.__tryOrUnsub(this._complete),this.unsubscribe()):this.unsubscribe()}},e.prototype.__tryOrUnsub=function(t,e){try{t.call(this._context,e)}catch(n){throw this.unsubscribe(),n}},e.prototype.__tryOrSetError=function(t,e,n){try{e.call(this._context,n)}catch(r){return t.syncErrorValue=r,t.syncErrorThrown=!0,!0}return!1},e.prototype._unsubscribe=function(){var t=this._parent;this._context=null,this._parent=null,t.unsubscribe()},e}(u)},{"./Observer":16,"./Subscription":21,"./symbol/rxSubscriber":47,"./util/isFunction":53}],21:[function(t,e,n){"use strict";var r=t("./util/isArray"),i=t("./util/isObject"),o=t("./util/isFunction"),s=t("./util/tryCatch"),a=t("./util/errorObject"),u=t("./util/UnsubscriptionError"),c=function(){function t(t){this.closed=!1,t&&(this._unsubscribe=t)}return t.prototype.unsubscribe=function(){var t,e=!1;if(!this.closed){this.closed=!0;var n=this,c=n._unsubscribe,p=n._subscriptions;if(this._subscriptions=null,o.isFunction(c)){var l=s.tryCatch(c).call(this);l===a.errorObject&&(e=!0,(t=t||[]).push(a.errorObject.e))}if(r.isArray(p))for(var h=-1,f=p.length;++h<f;){var d=p[h];if(i.isObject(d)){var l=s.tryCatch(d.unsubscribe).call(d);if(l===a.errorObject){e=!0,t=t||[];var y=a.errorObject.e;y instanceof u.UnsubscriptionError?t=t.concat(y.errors):t.push(y)}}}if(e)throw new u.UnsubscriptionError(t)}},t.prototype.add=function(e){if(!e||e===t.EMPTY)return t.EMPTY;if(e===this)return this;var n=e;switch(typeof e){case"function":n=new t(e);case"object":if(n.closed||"function"!=typeof n.unsubscribe)break;this.closed?n.unsubscribe():(this._subscriptions||(this._subscriptions=[])).push(n);break;default:throw new Error("unrecognized teardown "+e+" added to Subscription.")}return n},t.prototype.remove=function(e){if(null!=e&&e!==this&&e!==t.EMPTY){var n=this._subscriptions;if(n){var r=n.indexOf(e);-1!==r&&n.splice(r,1)}}},t.EMPTY=function(t){return t.closed=!0,t}(new t),t}();n.Subscription=c},{"./util/UnsubscriptionError":50,"./util/errorObject":51,"./util/isArray":52,"./util/isFunction":53,"./util/isObject":54,"./util/tryCatch":60}],22:[function(t){"use strict";var e=t("../../Observable"),n=t("../../operator/map");e.Observable.prototype.map=n.map},{"../../Observable":15,"../../operator/map":40}],23:[function(t,e,n){"use strict";var r=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},i=t("../Observable"),o=t("./ScalarObservable"),s=t("./EmptyObservable"),a=function(t){function e(e,n){t.call(this),this.arrayLike=e,this.scheduler=n,n||1!==e.length||(this._isScalar=!0,this.value=e[0])}return r(e,t),e.create=function(t,n){var r=t.length;return 0===r?new s.EmptyObservable:1===r?new o.ScalarObservable(t[0],n):new e(t,n)},e.dispatch=function(t){var e=t.arrayLike,n=t.index,r=t.length,i=t.subscriber;if(!i.closed){if(n>=r)return void i.complete();i.next(e[n]),t.index=n+1,this.schedule(t)}},e.prototype._subscribe=function(t){var n=0,r=this,i=r.arrayLike,o=r.scheduler,s=i.length;if(o)return o.schedule(e.dispatch,0,{arrayLike:i,index:n,length:s,subscriber:t});for(var a=0;s>a&&!t.closed;a++)t.next(i[a]);t.complete()},e}(i.Observable);n.ArrayLikeObservable=a},{"../Observable":15,"./EmptyObservable":25,"./ScalarObservable":29}],24:[function(t,e,n){"use strict";var r=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},i=t("../Observable"),o=t("./ScalarObservable"),s=t("./EmptyObservable"),a=t("../util/isScheduler"),u=function(t){function e(e,n){t.call(this),this.array=e,this.scheduler=n,n||1!==e.length||(this._isScalar=!0,this.value=e[0])}return r(e,t),e.create=function(t,n){return new e(t,n)},e.of=function(){for(var t=[],n=0;n<arguments.length;n++)t[n-0]=arguments[n];var r=t[t.length-1];a.isScheduler(r)?t.pop():r=null;var i=t.length;return i>1?new e(t,r):1===i?new o.ScalarObservable(t[0],r):new s.EmptyObservable(r)},e.dispatch=function(t){var e=t.array,n=t.index,r=t.count,i=t.subscriber;return n>=r?void i.complete():(i.next(e[n]),void(i.closed||(t.index=n+1,this.schedule(t))))},e.prototype._subscribe=function(t){var n=0,r=this.array,i=r.length,o=this.scheduler;if(o)return o.schedule(e.dispatch,0,{array:r,index:n,count:i,subscriber:t});for(var s=0;i>s&&!t.closed;s++)t.next(r[s]);t.complete()},e}(i.Observable);n.ArrayObservable=u},{"../Observable":15,"../util/isScheduler":56,"./EmptyObservable":25,"./ScalarObservable":29}],25:[function(t,e,n){"use strict";var r=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},i=t("../Observable"),o=function(t){function e(e){t.call(this),this.scheduler=e}return r(e,t),e.create=function(t){return new e(t)},e.dispatch=function(t){var e=t.subscriber;e.complete()},e.prototype._subscribe=function(t){var n=this.scheduler;return n?n.schedule(e.dispatch,0,{subscriber:t}):void t.complete()},e}(i.Observable);n.EmptyObservable=o},{"../Observable":15}],26:[function(t,e,n){"use strict";var r=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},i=t("../util/isArray"),o=t("../util/isPromise"),s=t("./PromiseObservable"),a=t("./IteratorObservable"),u=t("./ArrayObservable"),c=t("./ArrayLikeObservable"),p=t("../symbol/iterator"),l=t("../Observable"),h=t("../operator/observeOn"),f=t("../symbol/observable"),d=function(t){return t&&"number"==typeof t.length},y=function(t){function e(e,n){t.call(this,null),this.ish=e,this.scheduler=n}return r(e,t),e.create=function(t,n){if(null!=t){if("function"==typeof t[f.$$observable])return t instanceof l.Observable&&!n?t:new e(t,n);if(i.isArray(t))return new u.ArrayObservable(t,n);if(o.isPromise(t))return new s.PromiseObservable(t,n);if("function"==typeof t[p.$$iterator]||"string"==typeof t)return new a.IteratorObservable(t,n);if(d(t))return new c.ArrayLikeObservable(t,n)}throw new TypeError((null!==t&&typeof t||t)+" is not observable")},e.prototype._subscribe=function(t){var e=this.ish,n=this.scheduler;return e[f.$$observable]().subscribe(null==n?t:new h.ObserveOnSubscriber(t,n,0))},e}(l.Observable);n.FromObservable=y},{"../Observable":15,"../operator/observeOn":43,"../symbol/iterator":45,"../symbol/observable":46,"../util/isArray":52,"../util/isPromise":55,"./ArrayLikeObservable":23,"./ArrayObservable":24,"./IteratorObservable":27,"./PromiseObservable":28}],27:[function(t,e,n){"use strict";function r(t){var e=t[p.$$iterator];if(!e&&"string"==typeof t)return new h(t);if(!e&&void 0!==t.length)return new f(t);if(!e)throw new TypeError("object is not iterable");return t[p.$$iterator]()}function i(t){var e=+t.length;return isNaN(e)?0:0!==e&&o(e)?(e=s(e)*Math.floor(Math.abs(e)),0>=e?0:e>d?d:e):e}function o(t){return"number"==typeof t&&u.root.isFinite(t)}function s(t){var e=+t;return 0===e?e:isNaN(e)?e:0>e?-1:1}var a=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},u=t("../util/root"),c=t("../Observable"),p=t("../symbol/iterator"),l=function(t){function e(e,n){if(t.call(this),this.scheduler=n,null==e)throw new Error("iterator cannot be null.");this.iterator=r(e)}return a(e,t),e.create=function(t,n){return new e(t,n)},e.dispatch=function(t){var e=t.index,n=t.hasError,r=t.iterator,i=t.subscriber;if(n)return void i.error(t.error);var o=r.next();return o.done?void i.complete():(i.next(o.value),t.index=e+1,i.closed?void("function"==typeof r["return"]&&r["return"]()):void this.schedule(t))},e.prototype._subscribe=function(t){var n=0,r=this,i=r.iterator,o=r.scheduler;if(o)return o.schedule(e.dispatch,0,{index:n,iterator:i,subscriber:t});for(;;){var s=i.next();if(s.done){t.complete();break}if(t.next(s.value),t.closed){"function"==typeof i["return"]&&i["return"]();break}}},e}(c.Observable);n.IteratorObservable=l;var h=function(){function t(t,e,n){void 0===e&&(e=0),void 0===n&&(n=t.length),this.str=t,this.idx=e,this.len=n}return t.prototype[p.$$iterator]=function(){return this},t.prototype.next=function(){return this.idx<this.len?{done:!1,value:this.str.charAt(this.idx++)}:{done:!0,value:void 0}},t}(),f=function(){function t(t,e,n){void 0===e&&(e=0),void 0===n&&(n=i(t)),this.arr=t,this.idx=e,this.len=n}return t.prototype[p.$$iterator]=function(){return this},t.prototype.next=function(){return this.idx<this.len?{done:!1,value:this.arr[this.idx++]}:{done:!0,value:void 0}},t}(),d=Math.pow(2,53)-1},{"../Observable":15,"../symbol/iterator":45,"../util/root":57}],28:[function(t,e,n){"use strict";function r(t){var e=t.value,n=t.subscriber;n.closed||(n.next(e),n.complete())}function i(t){var e=t.err,n=t.subscriber;n.closed||n.error(e)}var o=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},s=t("../util/root"),a=t("../Observable"),u=function(t){function e(e,n){t.call(this),this.promise=e,this.scheduler=n}return o(e,t),e.create=function(t,n){return new e(t,n)},e.prototype._subscribe=function(t){var e=this,n=this.promise,o=this.scheduler;if(null==o)this._isScalar?t.closed||(t.next(this.value),t.complete()):n.then(function(n){e.value=n,e._isScalar=!0,t.closed||(t.next(n),t.complete())},function(e){t.closed||t.error(e)}).then(null,function(t){s.root.setTimeout(function(){throw t})});else if(this._isScalar){if(!t.closed)return o.schedule(r,0,{value:this.value,subscriber:t})}else n.then(function(n){e.value=n,e._isScalar=!0,t.closed||t.add(o.schedule(r,0,{value:n,subscriber:t}))},function(e){t.closed||t.add(o.schedule(i,0,{err:e,subscriber:t}))}).then(null,function(t){s.root.setTimeout(function(){throw t})})},e}(a.Observable);n.PromiseObservable=u},{"../Observable":15,"../util/root":57}],29:[function(t,e,n){"use strict";var r=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},i=t("../Observable"),o=function(t){function e(e,n){t.call(this),this.value=e,this.scheduler=n,this._isScalar=!0,n&&(this._isScalar=!1)}return r(e,t),e.create=function(t,n){return new e(t,n)},e.dispatch=function(t){var e=t.done,n=t.value,r=t.subscriber;return e?void r.complete():(r.next(n),void(r.closed||(t.done=!0,this.schedule(t))))},e.prototype._subscribe=function(t){var n=this.value,r=this.scheduler;return r?r.schedule(e.dispatch,0,{done:!1,value:n,subscriber:t}):(t.next(n),void(t.closed||t.complete()))},e}(i.Observable);n.ScalarObservable=o},{"../Observable":15}],30:[function(t,e,n){"use strict";var r=t("./FromObservable");n.from=r.FromObservable.create},{"./FromObservable":26}],31:[function(t,e,n){"use strict";var r=t("./PromiseObservable");n.fromPromise=r.PromiseObservable.create},{"./PromiseObservable":28}],32:[function(t,e,n){"use strict";var r=t("./ArrayObservable");n.of=r.ArrayObservable.of},{"./ArrayObservable":24}],33:[function(t,e,n){"use strict";function r(t){var e=new a(t),n=this.lift(e);return e.caught=n}var i=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},o=t("../OuterSubscriber"),s=t("../util/subscribeToResult");n._catch=r;var a=function(){function t(t){this.selector=t}return t.prototype.call=function(t,e){return e.subscribe(new u(t,this.selector,this.caught))},t}(),u=function(t){function e(e,n,r){t.call(this,e),this.selector=n,this.caught=r}return i(e,t),e.prototype.error=function(t){if(!this.isStopped){var e=void 0;try{e=this.selector(t,this.caught)}catch(t){return void this.destination.error(t)}this.unsubscribe(),this.destination.remove(this),s.subscribeToResult(this,e)}},e}(o.OuterSubscriber)},{"../OuterSubscriber":17,"../util/subscribeToResult":58}],34:[function(t,e,n){"use strict";function r(){return this.lift(new i.MergeAllOperator(1))}var i=t("./mergeAll");n.concatAll=r},{"./mergeAll":41}],35:[function(t,e,n){"use strict";function r(t,e){return this.lift(new i.MergeMapOperator(t,e,1))}var i=t("./mergeMap");n.concatMap=r},{"./mergeMap":42}],36:[function(t,e,n){"use strict";function r(t,e){return this.lift(new s(t,e,this))}var i=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},o=t("../Subscriber");n.every=r;var s=function(){function t(t,e,n){this.predicate=t,this.thisArg=e,this.source=n}return t.prototype.call=function(t,e){return e.subscribe(new a(t,this.predicate,this.thisArg,this.source))},t}(),a=function(t){function e(e,n,r,i){t.call(this,e),this.predicate=n,this.thisArg=r,this.source=i,this.index=0,this.thisArg=r||this}return i(e,t),e.prototype.notifyComplete=function(t){this.destination.next(t),this.destination.complete()},e.prototype._next=function(t){var e=!1;try{e=this.predicate.call(this.thisArg,t,this.index++,this.source)}catch(n){return void this.destination.error(n)}e||this.notifyComplete(!1)},e.prototype._complete=function(){this.notifyComplete(!0)},e}(o.Subscriber)},{"../Subscriber":20}],37:[function(t,e,n){"use strict";function r(t,e){return this.lift(new s(t,e))}var i=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},o=t("../Subscriber");n.filter=r;var s=function(){function t(t,e){this.predicate=t,this.thisArg=e}return t.prototype.call=function(t,e){return e.subscribe(new a(t,this.predicate,this.thisArg))},t}(),a=function(t){function e(e,n,r){t.call(this,e),this.predicate=n,this.thisArg=r,this.count=0,this.predicate=n}return i(e,t),e.prototype._next=function(t){var e;try{e=this.predicate.call(this.thisArg,t,this.count++)}catch(n){return void this.destination.error(n)}e&&this.destination.next(t)},e}(o.Subscriber)},{"../Subscriber":20}],38:[function(t,e,n){"use strict";function r(t,e,n){return this.lift(new a(t,e,n,this))}var i=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},o=t("../Subscriber"),s=t("../util/EmptyError");n.first=r;var a=function(){function t(t,e,n,r){this.predicate=t,this.resultSelector=e,this.defaultValue=n,this.source=r}return t.prototype.call=function(t,e){return e.subscribe(new u(t,this.predicate,this.resultSelector,this.defaultValue,this.source))},t}(),u=function(t){function e(e,n,r,i,o){t.call(this,e),this.predicate=n,this.resultSelector=r,this.defaultValue=i,this.source=o,this.index=0,this.hasCompleted=!1,this._emitted=!1}return i(e,t),e.prototype._next=function(t){var e=this.index++;this.predicate?this._tryPredicate(t,e):this._emit(t,e)},e.prototype._tryPredicate=function(t,e){var n;try{n=this.predicate(t,e,this.source)}catch(r){return void this.destination.error(r)}n&&this._emit(t,e)},e.prototype._emit=function(t,e){return this.resultSelector?void this._tryResultSelector(t,e):void this._emitFinal(t)},e.prototype._tryResultSelector=function(t,e){var n;try{n=this.resultSelector(t,e)}catch(r){return void this.destination.error(r)}this._emitFinal(n)},e.prototype._emitFinal=function(t){var e=this.destination;this._emitted||(this._emitted=!0,e.next(t),e.complete(),this.hasCompleted=!0)},e.prototype._complete=function(){var t=this.destination;this.hasCompleted||"undefined"==typeof this.defaultValue?this.hasCompleted||t.error(new s.EmptyError):(t.next(this.defaultValue),t.complete())},e}(o.Subscriber)},{"../Subscriber":20,"../util/EmptyError":48}],39:[function(t,e,n){"use strict";function r(t,e,n){return this.lift(new a(t,e,n,this))}var i=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},o=t("../Subscriber"),s=t("../util/EmptyError");n.last=r;var a=function(){function t(t,e,n,r){this.predicate=t,this.resultSelector=e,this.defaultValue=n,this.source=r}return t.prototype.call=function(t,e){return e.subscribe(new u(t,this.predicate,this.resultSelector,this.defaultValue,this.source))},t}(),u=function(t){function e(e,n,r,i,o){t.call(this,e),this.predicate=n,this.resultSelector=r,this.defaultValue=i,this.source=o,this.hasValue=!1,this.index=0,"undefined"!=typeof i&&(this.lastValue=i,this.hasValue=!0)}return i(e,t),e.prototype._next=function(t){var e=this.index++;if(this.predicate)this._tryPredicate(t,e);else{if(this.resultSelector)return void this._tryResultSelector(t,e);this.lastValue=t,this.hasValue=!0}},e.prototype._tryPredicate=function(t,e){var n;try{n=this.predicate(t,e,this.source)}catch(r){return void this.destination.error(r)}if(n){if(this.resultSelector)return void this._tryResultSelector(t,e); - -this.lastValue=t,this.hasValue=!0}},e.prototype._tryResultSelector=function(t,e){var n;try{n=this.resultSelector(t,e)}catch(r){return void this.destination.error(r)}this.lastValue=n,this.hasValue=!0},e.prototype._complete=function(){var t=this.destination;this.hasValue?(t.next(this.lastValue),t.complete()):t.error(new s.EmptyError)},e}(o.Subscriber)},{"../Subscriber":20,"../util/EmptyError":48}],40:[function(t,e,n){"use strict";function r(t,e){if("function"!=typeof t)throw new TypeError("argument is not a function. Are you looking for `mapTo()`?");return this.lift(new s(t,e))}var i=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},o=t("../Subscriber");n.map=r;var s=function(){function t(t,e){this.project=t,this.thisArg=e}return t.prototype.call=function(t,e){return e.subscribe(new a(t,this.project,this.thisArg))},t}();n.MapOperator=s;var a=function(t){function e(e,n,r){t.call(this,e),this.project=n,this.count=0,this.thisArg=r||this}return i(e,t),e.prototype._next=function(t){var e;try{e=this.project.call(this.thisArg,t,this.count++)}catch(n){return void this.destination.error(n)}this.destination.next(e)},e}(o.Subscriber)},{"../Subscriber":20}],41:[function(t,e,n){"use strict";function r(t){return void 0===t&&(t=Number.POSITIVE_INFINITY),this.lift(new a(t))}var i=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},o=t("../OuterSubscriber"),s=t("../util/subscribeToResult");n.mergeAll=r;var a=function(){function t(t){this.concurrent=t}return t.prototype.call=function(t,e){return e.subscribe(new u(t,this.concurrent))},t}();n.MergeAllOperator=a;var u=function(t){function e(e,n){t.call(this,e),this.concurrent=n,this.hasCompleted=!1,this.buffer=[],this.active=0}return i(e,t),e.prototype._next=function(t){this.active<this.concurrent?(this.active++,this.add(s.subscribeToResult(this,t))):this.buffer.push(t)},e.prototype._complete=function(){this.hasCompleted=!0,0===this.active&&0===this.buffer.length&&this.destination.complete()},e.prototype.notifyComplete=function(t){var e=this.buffer;this.remove(t),this.active--,e.length>0?this._next(e.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()},e}(o.OuterSubscriber);n.MergeAllSubscriber=u},{"../OuterSubscriber":17,"../util/subscribeToResult":58}],42:[function(t,e,n){"use strict";function r(t,e,n){return void 0===n&&(n=Number.POSITIVE_INFINITY),"number"==typeof e&&(n=e,e=null),this.lift(new a(t,e,n))}var i=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},o=t("../util/subscribeToResult"),s=t("../OuterSubscriber");n.mergeMap=r;var a=function(){function t(t,e,n){void 0===n&&(n=Number.POSITIVE_INFINITY),this.project=t,this.resultSelector=e,this.concurrent=n}return t.prototype.call=function(t,e){return e.subscribe(new u(t,this.project,this.resultSelector,this.concurrent))},t}();n.MergeMapOperator=a;var u=function(t){function e(e,n,r,i){void 0===i&&(i=Number.POSITIVE_INFINITY),t.call(this,e),this.project=n,this.resultSelector=r,this.concurrent=i,this.hasCompleted=!1,this.buffer=[],this.active=0,this.index=0}return i(e,t),e.prototype._next=function(t){this.active<this.concurrent?this._tryNext(t):this.buffer.push(t)},e.prototype._tryNext=function(t){var e,n=this.index++;try{e=this.project(t,n)}catch(r){return void this.destination.error(r)}this.active++,this._innerSub(e,t,n)},e.prototype._innerSub=function(t,e,n){this.add(o.subscribeToResult(this,t,e,n))},e.prototype._complete=function(){this.hasCompleted=!0,0===this.active&&0===this.buffer.length&&this.destination.complete()},e.prototype.notifyNext=function(t,e,n,r){this.resultSelector?this._notifyResultSelector(t,e,n,r):this.destination.next(e)},e.prototype._notifyResultSelector=function(t,e,n,r){var i;try{i=this.resultSelector(t,e,n,r)}catch(o){return void this.destination.error(o)}this.destination.next(i)},e.prototype.notifyComplete=function(t){var e=this.buffer;this.remove(t),this.active--,e.length>0?this._next(e.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()},e}(s.OuterSubscriber);n.MergeMapSubscriber=u},{"../OuterSubscriber":17,"../util/subscribeToResult":58}],43:[function(t,e,n){"use strict";function r(t,e){return void 0===e&&(e=0),this.lift(new a(t,e))}var i=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},o=t("../Subscriber"),s=t("../Notification");n.observeOn=r;var a=function(){function t(t,e){void 0===e&&(e=0),this.scheduler=t,this.delay=e}return t.prototype.call=function(t,e){return e.subscribe(new u(t,this.scheduler,this.delay))},t}();n.ObserveOnOperator=a;var u=function(t){function e(e,n,r){void 0===r&&(r=0),t.call(this,e),this.scheduler=n,this.delay=r}return i(e,t),e.dispatch=function(t){var e=t.notification,n=t.destination;e.observe(n)},e.prototype.scheduleMessage=function(t){this.add(this.scheduler.schedule(e.dispatch,this.delay,new c(t,this.destination)))},e.prototype._next=function(t){this.scheduleMessage(s.Notification.createNext(t))},e.prototype._error=function(t){this.scheduleMessage(s.Notification.createError(t))},e.prototype._complete=function(){this.scheduleMessage(s.Notification.createComplete())},e}(o.Subscriber);n.ObserveOnSubscriber=u;var c=function(){function t(t,e){this.notification=t,this.destination=e}return t}();n.ObserveOnMessage=c},{"../Notification":14,"../Subscriber":20}],44:[function(t,e,n){"use strict";function r(t,e){var n=!1;return arguments.length>=2&&(n=!0),this.lift(new s(t,e,n))}var i=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},o=t("../Subscriber");n.reduce=r;var s=function(){function t(t,e,n){void 0===n&&(n=!1),this.accumulator=t,this.seed=e,this.hasSeed=n}return t.prototype.call=function(t,e){return e.subscribe(new a(t,this.accumulator,this.seed,this.hasSeed))},t}();n.ReduceOperator=s;var a=function(t){function e(e,n,r,i){t.call(this,e),this.accumulator=n,this.hasSeed=i,this.hasValue=!1,this.acc=r}return i(e,t),e.prototype._next=function(t){this.hasValue||(this.hasValue=this.hasSeed)?this._tryReduce(t):(this.acc=t,this.hasValue=!0)},e.prototype._tryReduce=function(t){var e;try{e=this.accumulator(this.acc,t)}catch(n){return void this.destination.error(n)}this.acc=e},e.prototype._complete=function(){(this.hasValue||this.hasSeed)&&this.destination.next(this.acc),this.destination.complete()},e}(o.Subscriber);n.ReduceSubscriber=a},{"../Subscriber":20}],45:[function(t,e,n){"use strict";function r(t){var e=t.Symbol;if("function"==typeof e)return e.iterator||(e.iterator=e("iterator polyfill")),e.iterator;var n=t.Set;if(n&&"function"==typeof(new n)["@@iterator"])return"@@iterator";var r=t.Map;if(r)for(var i=Object.getOwnPropertyNames(r.prototype),o=0;o<i.length;++o){var s=i[o];if("entries"!==s&&"size"!==s&&r.prototype[s]===r.prototype.entries)return s}return"@@iterator"}var i=t("../util/root");n.symbolIteratorPonyfill=r,n.$$iterator=r(i.root)},{"../util/root":57}],46:[function(t,e,n){"use strict";function r(t){var e,n=t.Symbol;return"function"==typeof n?n.observable?e=n.observable:(e=n("observable"),n.observable=e):e="@@observable",e}var i=t("../util/root");n.getSymbolObservable=r,n.$$observable=r(i.root)},{"../util/root":57}],47:[function(t,e,n){"use strict";var r=t("../util/root"),i=r.root.Symbol;n.$$rxSubscriber="function"==typeof i&&"function"==typeof i["for"]?i["for"]("rxSubscriber"):"@@rxSubscriber"},{"../util/root":57}],48:[function(t,e,n){"use strict";var r=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},i=function(t){function e(){var e=t.call(this,"no elements in sequence");this.name=e.name="EmptyError",this.stack=e.stack,this.message=e.message}return r(e,t),e}(Error);n.EmptyError=i},{}],49:[function(t,e,n){"use strict";var r=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},i=function(t){function e(){var e=t.call(this,"object unsubscribed");this.name=e.name="ObjectUnsubscribedError",this.stack=e.stack,this.message=e.message}return r(e,t),e}(Error);n.ObjectUnsubscribedError=i},{}],50:[function(t,e,n){"use strict";var r=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},i=function(t){function e(e){t.call(this),this.errors=e;var n=Error.call(this,e?e.length+" errors occurred during unsubscription:\n "+e.map(function(t,e){return e+1+") "+t.toString()}).join("\n "):"");this.name=n.name="UnsubscriptionError",this.stack=n.stack,this.message=n.message}return r(e,t),e}(Error);n.UnsubscriptionError=i},{}],51:[function(t,e,n){"use strict";n.errorObject={e:{}}},{}],52:[function(t,e,n){"use strict";n.isArray=Array.isArray||function(t){return t&&"number"==typeof t.length}},{}],53:[function(t,e,n){"use strict";function r(t){return"function"==typeof t}n.isFunction=r},{}],54:[function(t,e,n){"use strict";function r(t){return null!=t&&"object"==typeof t}n.isObject=r},{}],55:[function(t,e,n){"use strict";function r(t){return t&&"function"!=typeof t.subscribe&&"function"==typeof t.then}n.isPromise=r},{}],56:[function(t,e,n){"use strict";function r(t){return t&&"function"==typeof t.schedule}n.isScheduler=r},{}],57:[function(t,e,n){(function(t){"use strict";if(n.root="object"==typeof window&&window.window===window&&window||"object"==typeof self&&self.self===self&&self||"object"==typeof t&&t.global===t&&t,!n.root)throw new Error("RxJS could not find any global context (window, self, global)")}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],58:[function(t,e,n){"use strict";function r(t,e,n,r){var h=new p.InnerSubscriber(t,n,r);if(h.closed)return null;if(e instanceof u.Observable)return e._isScalar?(h.next(e.value),h.complete(),null):e.subscribe(h);if(o.isArray(e)){for(var f=0,d=e.length;d>f&&!h.closed;f++)h.next(e[f]);h.closed||h.complete()}else{if(s.isPromise(e))return e.then(function(t){h.closed||(h.next(t),h.complete())},function(t){return h.error(t)}).then(null,function(t){i.root.setTimeout(function(){throw t})}),h;if(e&&"function"==typeof e[c.$$iterator])for(var y=e[c.$$iterator]();;){var m=y.next();if(m.done){h.complete();break}if(h.next(m.value),h.closed)break}else if(e&&"function"==typeof e[l.$$observable]){var v=e[l.$$observable]();if("function"==typeof v.subscribe)return v.subscribe(new p.InnerSubscriber(t,n,r));h.error(new TypeError("Provided object does not correctly implement Symbol.observable"))}else{var g=a.isObject(e)?"an invalid object":"'"+e+"'",_="You provided "+g+" where a stream was expected. You can provide an Observable, Promise, Array, or Iterable.";h.error(new TypeError(_))}}return null}var i=t("./root"),o=t("./isArray"),s=t("./isPromise"),a=t("./isObject"),u=t("../Observable"),c=t("../symbol/iterator"),p=t("../InnerSubscriber"),l=t("../symbol/observable");n.subscribeToResult=r},{"../InnerSubscriber":13,"../Observable":15,"../symbol/iterator":45,"../symbol/observable":46,"./isArray":52,"./isObject":54,"./isPromise":55,"./root":57}],59:[function(t,e,n){"use strict";function r(t,e,n){if(t){if(t instanceof i.Subscriber)return t;if(t[o.$$rxSubscriber])return t[o.$$rxSubscriber]()}return t||e||n?new i.Subscriber(t,e,n):new i.Subscriber(s.empty)}var i=t("../Subscriber"),o=t("../symbol/rxSubscriber"),s=t("../Observer");n.toSubscriber=r},{"../Observer":16,"../Subscriber":20,"../symbol/rxSubscriber":47}],60:[function(t,e,n){"use strict";function r(){try{return o.apply(this,arguments)}catch(t){return s.errorObject.e=t,s.errorObject}}function i(t){return o=t,r}var o,s=t("./errorObject");n.tryCatch=i},{"./errorObject":51}]},{},[4])(4)}); \ No newline at end of file +}return t.prototype.getTypeName=function(){},t.prototype.toString=function(){return"SafeValue must use [property]=binding: "+this.changingThisBreaksApplicationSecurity+" (see http://g.co/ng/security#xss)"},t}(),Ae=function(t){function e(){t.apply(this,arguments)}return xe(e,t),e.prototype.getTypeName=function(){return"HTML"},e}(Oe),Me=function(t){function e(){t.apply(this,arguments)}return xe(e,t),e.prototype.getTypeName=function(){return"Style"},e}(Oe),Re=function(t){function e(){t.apply(this,arguments)}return xe(e,t),e.prototype.getTypeName=function(){return"Script"},e}(Oe),ke=function(t){function e(){t.apply(this,arguments)}return xe(e,t),e.prototype.getTypeName=function(){return"URL"},e}(Oe),Ne=function(t){function e(){t.apply(this,arguments)}return xe(e,t),e.prototype.getTypeName=function(){return"ResourceURL"},e}(Oe),Ie=[{provide:n.PLATFORM_INITIALIZER,useValue:U,multi:!0},{provide:e.PlatformLocation,useClass:ft}],De=[{provide:n.Sanitizer,useExisting:Te},{provide:Te,useClass:Pe}],je=n.createPlatformFactory(n.platformCore,"browser",Ie),Le=function(){function t(t){if(t)throw new Error("BrowserModule has already been loaded. If you need access to common directives such as NgIf and NgFor from a lazy loaded module, import CommonModule instead.")}return t.decorators=[{type:n.NgModule,args:[{providers:[De,{provide:n.ErrorHandler,useFactory:B,deps:[]},{provide:vt,useFactory:H,deps:[]},{provide:gt,useClass:qt,multi:!0},{provide:gt,useClass:Zt,multi:!0},{provide:gt,useClass:Xt,multi:!0},{provide:Gt,useClass:Kt},{provide:Ot,useClass:At},{provide:n.RootRenderer,useExisting:Ot},{provide:Et,useExisting:St},{provide:Y,useFactory:q},St,n.Testability,_t,Bt,yt],exports:[e.CommonModule,n.ApplicationModule]}]}],t.ctorParameters=function(){return[{type:t,decorators:[{type:n.Optional},{type:n.SkipSelf}]}]},t}(),Ve="undefined"!=typeof window&&window||{},Fe=function(){function t(t,e){this.msPerTick=t,this.numTicks=e}return t}(),Ue=function(){function t(t){this.profiler=new Be(t)}return t}(),Be=function(){function t(t){this.appRef=t.injector.get(n.ApplicationRef)}return t.prototype.timeChangeDetection=function(t){var e=t&&t.record,n="Change Detection",i=r(Ve.console.profile);e&&i&&Ve.console.profile(n);for(var o=u().performanceNow(),s=0;5>s||u().performanceNow()-o<500;)this.appRef.tick(),s++;var a=u().performanceNow();e&&i&&Ve.console.profileEnd(n);var c=(a-o)/s;return Ve.console.log("ran "+s+" change detection cycles"),Ve.console.log(c.toFixed(2)+" ms per check"),new Fe(c,s)},t}(),He=$,qe=function(){function t(){}return t.all=function(){return function(){return!0}},t.css=function(t){return function(e){return r(e.nativeElement)?u().elementMatches(e.nativeElement,t):!1}},t.directive=function(t){return function(e){return-1!==e.providerTokens.indexOf(t)}},t}(),ze={BrowserPlatformLocation:ft,DomAdapter:tt,BrowserDomAdapter:pt,BrowserGetTestability:dt,getDOM:u,setRootDomAdapter:c,DomRootRenderer_:At,DomRootRenderer:Ot,NAMESPACE_URIS:xt,shimContentAttribute:w,shimHostAttribute:E,flattenStyles:S,splitNamespace:x,isNamespaced:C,DomSharedStylesHost:St,SharedStylesHost:Et,ELEMENT_PROBE_PROVIDERS:Bt,DomEventsPlugin:qt,KeyEventsPlugin:Zt,HammerGesturesPlugin:Xt,initDomAdapter:U,INTERNAL_BROWSER_PLATFORM_PROVIDERS:Ie,BROWSER_SANITIZATION_PROVIDERS:De,WebAnimationsDriver:nt},We=new n.Version("2.4.9");t.BrowserModule=Le,t.platformBrowser=je,t.Title=yt,t.disableDebugTools=W,t.enableDebugTools=z,t.AnimationDriver=Y,t.By=qe,t.NgProbeToken=Ut,t.DOCUMENT=vt,t.EVENT_MANAGER_PLUGINS=gt,t.EventManager=_t,t.HAMMER_GESTURE_CONFIG=Gt,t.HammerGestureConfig=Kt,t.DomSanitizer=Te,t.VERSION=We,t.__platform_browser_private__=ze})}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"@angular/common":5,"@angular/core":7}],11:[function(e,n,r){!function(i,o){"object"==typeof r&&"undefined"!=typeof n?o(r,e("@angular/common"),e("@angular/core"),e("rxjs/BehaviorSubject"),e("rxjs/Subject"),e("rxjs/observable/from"),e("rxjs/observable/of"),e("rxjs/operator/concatMap"),e("rxjs/operator/every"),e("rxjs/operator/first"),e("rxjs/operator/map"),e("rxjs/operator/mergeMap"),e("rxjs/operator/reduce"),e("rxjs/Observable"),e("rxjs/operator/catch"),e("rxjs/operator/concatAll"),e("rxjs/util/EmptyError"),e("rxjs/observable/fromPromise"),e("rxjs/operator/last"),e("rxjs/operator/mergeAll"),e("@angular/platform-browser"),e("rxjs/operator/filter")):"function"==typeof t&&t.amd?t(["exports","@angular/common","@angular/core","rxjs/BehaviorSubject","rxjs/Subject","rxjs/observable/from","rxjs/observable/of","rxjs/operator/concatMap","rxjs/operator/every","rxjs/operator/first","rxjs/operator/map","rxjs/operator/mergeMap","rxjs/operator/reduce","rxjs/Observable","rxjs/operator/catch","rxjs/operator/concatAll","rxjs/util/EmptyError","rxjs/observable/fromPromise","rxjs/operator/last","rxjs/operator/mergeAll","@angular/platform-browser","rxjs/operator/filter"],o):o((i.ng=i.ng||{},i.ng.router=i.ng.router||{}),i.ng.common,i.ng.core,i.Rx,i.Rx,i.Rx.Observable,i.Rx.Observable,i.Rx.Observable.prototype,i.Rx.Observable.prototype,i.Rx.Observable.prototype,i.Rx.Observable.prototype,i.Rx.Observable.prototype,i.Rx.Observable.prototype,i.Rx,i.Rx.Observable.prototype,i.Rx.Observable.prototype,i.Rx,i.Rx.Observable,i.Rx.Observable.prototype,i.Rx.Observable.prototype,i.ng.platformBrowser,i.Rx.Observable.prototype)}(this,function(t,e,n,r,i,o,s,a,u,c,p,l,h,f,d,y,m,v,g,_,b,w){"use strict";function E(t,e,n){for(var r=n.path,i=r.split("/"),o={},s=[],a=0,u=0;u<i.length;++u){if(a>=t.length)return null;var c=t[a],p=i[u],l=p.startsWith(":");if(!l&&p!==c.path)return null;l&&(o[p.substring(1)]=c),s.push(c),a++}return"full"===n.pathMatch&&(e.hasChildren()||a<t.length)?null:{consumed:s,posParams:o}}function S(t,e){if(t.length!==e.length)return!1;for(var n=0;n<t.length;++n)if(!C(t[n],e[n]))return!1;return!0}function C(t,e){var n=Object.keys(t),r=Object.keys(e);if(n.length!=r.length)return!1;for(var i,o=0;o<n.length;o++)if(i=n[o],t[i]!==e[i])return!1;return!0}function x(t){for(var e=[],n=0;n<t.length;++n)for(var r=0;r<t[n].length;++r)e.push(t[n][r]);return e}function T(t){return t.length>0?t[t.length-1]:null}function P(t,e){var n={};for(var r in t)t.hasOwnProperty(r)&&(n[r]=t[r]);for(var r in e)e.hasOwnProperty(r)&&(n[r]=e[r]);return n}function O(t,e){for(var n in t)t.hasOwnProperty(n)&&e(t[n],n)}function A(t,e){var n=[],r={};if(O(t,function(t,i){i===Oe&&n.push(p.map.call(e(i,t),function(t){return r[i]=t,t}))}),O(t,function(t,i){i!==Oe&&n.push(p.map.call(e(i,t),function(t){return r[i]=t,t}))}),n.length>0){var i=y.concatAll.call(s.of.apply(void 0,n)),o=g.last.call(i);return p.map.call(o,function(){return r})}return s.of(r)}function M(t){var e=_.mergeAll.call(t);return u.every.call(e,function(t){return t===!0})}function R(t){return Te(t)?t:xe(t)?v.fromPromise(t):s.of(t)}function k(){return new Ne(new Ie([],{}),{},null)}function N(t,e,n){return n?I(t.queryParams,e.queryParams)&&D(t.root,e.root):j(t.queryParams,e.queryParams)&&L(t.root,e.root)}function I(t,e){return C(t,e)}function D(t,e){if(!U(t.segments,e.segments))return!1;if(t.numberOfChildren!==e.numberOfChildren)return!1;for(var n in e.children){if(!t.children[n])return!1;if(!D(t.children[n],e.children[n]))return!1}return!0}function j(t,e){return Object.keys(e).length<=Object.keys(t).length&&Object.keys(e).every(function(n){return e[n]===t[n]})}function L(t,e){return V(t,e,e.segments)}function V(t,e,n){if(t.segments.length>n.length){var r=t.segments.slice(0,n.length);return U(r,n)?e.hasChildren()?!1:!0:!1}if(t.segments.length===n.length){if(!U(t.segments,n))return!1;for(var i in e.children){if(!t.children[i])return!1;if(!L(t.children[i],e.children[i]))return!1}return!0}var r=n.slice(0,t.segments.length),o=n.slice(t.segments.length);return U(t.segments,r)&&t.children[Oe]?V(t.children[Oe],e,o):!1}function F(t,e){if(t.length!==e.length)return!1;for(var n=0;n<t.length;++n){if(t[n].path!==e[n].path)return!1;if(!C(t[n].parameters,e[n].parameters))return!1}return!0}function U(t,e){if(t.length!==e.length)return!1;for(var n=0;n<t.length;++n)if(t[n].path!==e[n].path)return!1;return!0}function B(t,e){var n=[];return O(t.children,function(t,r){r===Oe&&(n=n.concat(e(t,r)))}),O(t.children,function(t,r){r!==Oe&&(n=n.concat(e(t,r)))}),n}function H(t){return t.segments.map(function(t){return G(t)}).join("/")}function q(t,e){if(t.hasChildren()&&e){var n=t.children[Oe]?q(t.children[Oe],!1):"",r=[];return O(t.children,function(t,e){e!==Oe&&r.push(e+":"+q(t,!1))}),r.length>0?n+"("+r.join("//")+")":""+n}if(t.hasChildren()&&!e){var i=B(t,function(e,n){return n===Oe?[q(t.children[Oe],!1)]:[n+":"+q(e,!1)]});return H(t)+"/("+i.join("//")+")"}return H(t)}function z(t){return encodeURIComponent(t)}function W(t){return decodeURIComponent(t)}function G(t){return""+z(t.path)+K(t.parameters)}function K(t){return Q(t).map(function(t){return";"+z(t.first)+"="+z(t.second)}).join("")}function X(t){var e=Object.keys(t).map(function(e){var n=t[e];return Array.isArray(n)?n.map(function(t){return z(e)+"="+z(t)}).join("&"):z(e)+"="+z(n)});return e.length?"?"+e.join("&"):""}function Q(t){var e=[];for(var n in t)t.hasOwnProperty(n)&&e.push(new Ve(n,t[n]));return e}function Y(t){Fe.lastIndex=0;var e=t.match(Fe);return e?e[0]:""}function $(t){Ue.lastIndex=0;var e=t.match(Fe);return e?e[0]:""}function Z(t){Be.lastIndex=0;var e=t.match(Be);return e?e[0]:""}function J(t){return new f.Observable(function(e){return e.error(new qe(t))})}function tt(t){return new f.Observable(function(e){return e.error(new ze(t))})}function et(t){return new f.Observable(function(e){return e.error(new Error("Only absolute redirects can have named outlets. redirectTo: '"+t+"'"))})}function nt(t){return new f.Observable(function(e){return e.error(new Ae("Cannot load children because the guard of the route \"path: '"+t.path+"'\" returned false"))})}function rt(t,e,n,r,i){return new We(t,e,n,r,i).apply()}function it(t,e){var n=e.canLoad;if(!n||0===n.length)return s.of(!0);var r=p.map.call(o.from(n),function(n){var r=t.get(n);return R(r.canLoad?r.canLoad(e):r(e))});return M(r)}function ot(t,e,n){var r={matched:!1,consumedSegments:[],lastChild:0,positionalParamSegments:{}};if(""===e.path)return"full"===e.pathMatch&&(t.hasChildren()||n.length>0)?{matched:!1,consumedSegments:[],lastChild:0,positionalParamSegments:{}}:{matched:!0,consumedSegments:[],lastChild:0,positionalParamSegments:{}};var i=e.matcher||E,o=i(n,t,e);return o?{matched:!0,consumedSegments:o.consumed,lastChild:o.consumed.length,positionalParamSegments:o.posParams}:r}function st(t,e,n,r){if(n.length>0&&pt(t,n,r)){var i=new Ie(e,ct(r,new Ie(n,t.children)));return{segmentGroup:at(i),slicedSegments:[]}}if(0===n.length&<(t,n,r)){var i=new Ie(t.segments,ut(t,n,r,t.children));return{segmentGroup:at(i),slicedSegments:n}}return{segmentGroup:t,slicedSegments:n}}function at(t){if(1===t.numberOfChildren&&t.children[Oe]){var e=t.children[Oe];return new Ie(t.segments.concat(e.segments),e.children)}return t}function ut(t,e,n,r){for(var i={},o=0,s=n;o<s.length;o++){var a=s[o];ht(t,e,a)&&!r[ft(a)]&&(i[ft(a)]=new Ie([],{}))}return P(r,i)}function ct(t,e){var n={};n[Oe]=e;for(var r=0,i=t;r<i.length;r++){var o=i[r];""===o.path&&ft(o)!==Oe&&(n[ft(o)]=new Ie([],{}))}return n}function pt(t,e,n){return n.filter(function(n){return ht(t,e,n)&&ft(n)!==Oe}).length>0}function lt(t,e,n){return n.filter(function(n){return ht(t,e,n)}).length>0}function ht(t,e,n){return(t.hasChildren()||e.length>0)&&"full"===n.pathMatch?!1:""===n.path&&void 0!==n.redirectTo}function ft(t){return t.outlet?t.outlet:Oe}function dt(t,e){void 0===e&&(e="");for(var n=0;n<t.length;n++){var r=t[n],i=mt(e,r);yt(r,i)}}function yt(t,e){if(!t)throw new Error("\n Invalid configuration of route '"+e+"': Encountered undefined route.\n The reason might be an extra comma.\n \n Example: \n const routes: Routes = [\n { path: '', redirectTo: '/dashboard', pathMatch: 'full' },\n { path: 'dashboard', component: DashboardComponent },, << two commas\n { path: 'detail/:id', component: HeroDetailComponent }\n ];\n ");if(Array.isArray(t))throw new Error("Invalid configuration of route '"+e+"': Array cannot be specified");if(!t.component&&t.outlet&&t.outlet!==Oe)throw new Error("Invalid configuration of route '"+e+"': a componentless route cannot have a named outlet set");if(t.redirectTo&&t.children)throw new Error("Invalid configuration of route '"+e+"': redirectTo and children cannot be used together");if(t.redirectTo&&t.loadChildren)throw new Error("Invalid configuration of route '"+e+"': redirectTo and loadChildren cannot be used together");if(t.children&&t.loadChildren)throw new Error("Invalid configuration of route '"+e+"': children and loadChildren cannot be used together");if(t.redirectTo&&t.component)throw new Error("Invalid configuration of route '"+e+"': redirectTo and component cannot be used together");if(t.path&&t.matcher)throw new Error("Invalid configuration of route '"+e+"': path and matcher cannot be used together");if(void 0===t.redirectTo&&!t.component&&!t.children&&!t.loadChildren)throw new Error("Invalid configuration of route '"+e+"'. One of the following must be provided: component, redirectTo, children or loadChildren");if(void 0===t.path&&void 0===t.matcher)throw new Error("Invalid configuration of route '"+e+"': routes must have either a path or a matcher specified");if("string"==typeof t.path&&"/"===t.path.charAt(0))throw new Error("Invalid configuration of route '"+e+"': path cannot start with a slash");if(""===t.path&&void 0!==t.redirectTo&&void 0===t.pathMatch){var n="The default value of 'pathMatch' is 'prefix', but often the intent is to use 'full'.";throw new Error("Invalid configuration of route '{path: \""+e+'", redirectTo: "'+t.redirectTo+"\"}': please provide 'pathMatch'. "+n)}if(void 0!==t.pathMatch&&"full"!==t.pathMatch&&"prefix"!==t.pathMatch)throw new Error("Invalid configuration of route '"+e+"': pathMatch can only be set to 'prefix' or 'full'");t.children&&dt(t.children,e)}function mt(t,e){return e?t||e.path?t&&!e.path?t+"/":!t&&e.path?e.path:t+"/"+e.path:"":t}function vt(t,e){if(t===e.value)return e;for(var n=0,r=e.children;n<r.length;n++){var i=r[n],o=vt(t,i);if(o)return o}return null}function gt(t,e,n){if(n.push(e),t===e.value)return n;for(var r=0,i=e.children;r<i.length;r++){var o=i[r],s=n.slice(0),a=gt(t,o,s);if(a.length>0)return a}return[]}function _t(t,e){var n=bt(t,e),i=new r.BehaviorSubject([new De("",{})]),o=new r.BehaviorSubject({}),s=new r.BehaviorSubject({}),a=new r.BehaviorSubject({}),u=new r.BehaviorSubject(""),c=new Ye(i,o,a,u,s,Oe,e,n.root);return c.snapshot=n.root,new Qe(new Ke(c,[]),n)}function bt(t,e){var n={},r={},i={},o="",s=new $e([],n,i,o,r,Oe,e,null,t.root,-1,{});return new Ze("",new Ke(s,[]))}function wt(t){for(var e=t.pathFromRoot,n=e.length-1;n>=1;){var r=e[n],i=e[n-1];if(r.routeConfig&&""===r.routeConfig.path)n--;else{if(i.component)break;n--}}return e.slice(n).reduce(function(t,e){var n=P(t.params,e.params),r=P(t.data,e.data),i=P(t.resolve,e._resolvedData);return{params:n,data:r,resolve:i}},{params:{},data:{},resolve:{}})}function Et(t,e){e.value._routerState=t,e.children.forEach(function(e){return Et(t,e)})}function St(t){var e=t.children.length>0?" { "+t.children.map(St).join(", ")+" } ":"";return""+t.value+e}function Ct(t){if(t.snapshot){var e=t.snapshot;t.snapshot=t._futureSnapshot,C(e.queryParams,t._futureSnapshot.queryParams)||t.queryParams.next(t._futureSnapshot.queryParams),e.fragment!==t._futureSnapshot.fragment&&t.fragment.next(t._futureSnapshot.fragment),C(e.params,t._futureSnapshot.params)||t.params.next(t._futureSnapshot.params),S(e.url,t._futureSnapshot.url)||t.url.next(t._futureSnapshot.url),xt(e,t._futureSnapshot)||t.data.next(t._futureSnapshot.data)}else t.snapshot=t._futureSnapshot,t.data.next(t._futureSnapshot.data)}function xt(t,e){return C(t.params,e.params)&&F(t.url,e.url)}function Tt(t,e,n){var r=Pt(t,e._root,n?n._root:void 0);return new Qe(r,e)}function Pt(t,e,n){if(n&&t.shouldReuseRoute(e.value,n.value.snapshot)){var r=n.value;r._futureSnapshot=e.value;var i=At(t,e,n);return new Ke(r,i)}if(t.retrieve(e.value)){var o=t.retrieve(e.value).route;return Ot(e,o),o}var r=Mt(e.value),i=e.children.map(function(e){return Pt(t,e)});return new Ke(r,i)}function Ot(t,e){if(t.value.routeConfig!==e.value.routeConfig)throw new Error("Cannot reattach ActivatedRouteSnapshot created from a different route");if(t.children.length!==e.children.length)throw new Error("Cannot reattach ActivatedRouteSnapshot with a different number of children");e.value._futureSnapshot=t.value;for(var n=0;n<t.children.length;++n)Ot(t.children[n],e.children[n])}function At(t,e,n){return e.children.map(function(e){for(var r=0,i=n.children;r<i.length;r++){var o=i[r];if(t.shouldReuseRoute(o.value.snapshot,e.value))return Pt(t,e,o)}return Pt(t,e)})}function Mt(t){return new Ye(new r.BehaviorSubject(t.url),new r.BehaviorSubject(t.params),new r.BehaviorSubject(t.queryParams),new r.BehaviorSubject(t.fragment),new r.BehaviorSubject(t.data),t.outlet,t.component,t)}function Rt(t,e,n,r,i){if(0===n.length)return Nt(e.root,e.root,e,r,i);var o=Dt(n);if(o.toRoot())return Nt(e.root,new Ie([],{}),e,r,i);var s=jt(o,e,t),a=s.processChildren?Bt(s.segmentGroup,s.index,o.commands):Ut(s.segmentGroup,s.index,o.commands);return Nt(s.segmentGroup,a,e,r,i)}function kt(t){return"object"==typeof t&&null!=t&&!t.outlets&&!t.segmentPath}function Nt(t,e,n,r,i){return n.root===t?new Ne(e,Wt(r),i):new Ne(It(n.root,t,e),Wt(r),i)}function It(t,e,n){var r={};return O(t.children,function(t,i){r[i]=t===e?n:It(t,e,n)}),new Ie(t.segments,r)}function Dt(t){if("string"==typeof t[0]&&1===t.length&&"/"===t[0])return new Je(!0,0,t);var e=0,n=!1,r=t.reduce(function(t,r,i){if("object"==typeof r&&null!=r){if(r.outlets){var o={};return O(r.outlets,function(t,e){o[e]="string"==typeof t?t.split("/"):t}),t.concat([{outlets:o}])}if(r.segmentPath)return t.concat([r.segmentPath])}return"string"!=typeof r?t.concat([r]):0===i?(r.split("/").forEach(function(r,i){0==i&&"."===r||(0==i&&""===r?n=!0:".."===r?e++:""!=r&&t.push(r))}),t):t.concat([r])},[]);return new Je(n,e,r)}function jt(t,e,n){if(t.isAbsolute)return new tn(e.root,!0,0);if(-1===n.snapshot._lastPathIndex)return new tn(n.snapshot._urlSegment,!0,0);var r=kt(t.commands[0])?0:1,i=n.snapshot._lastPathIndex+r;return Lt(n.snapshot._urlSegment,i,t.numberOfDoubleDots)}function Lt(t,e,n){for(var r=t,i=e,o=n;o>i;){if(o-=i,r=r.parent,!r)throw new Error("Invalid number of '../'");i=r.segments.length}return new tn(r,!1,i-o)}function Vt(t){return"object"==typeof t&&null!=t&&t.outlets?t.outlets[Oe]:""+t}function Ft(t){return"object"!=typeof t[0]?(e={},e[Oe]=t,e):void 0===t[0].outlets?(n={},n[Oe]=t,n):t[0].outlets;var e,n}function Ut(t,e,n){if(t||(t=new Ie([],{})),0===t.segments.length&&t.hasChildren())return Bt(t,e,n);var r=Ht(t,e,n),i=n.slice(r.commandIndex);if(r.match&&r.pathIndex<t.segments.length){var o=new Ie(t.segments.slice(0,r.pathIndex),{});return o.children[Oe]=new Ie(t.segments.slice(r.pathIndex),t.children),Bt(o,0,i)}return r.match&&0===i.length?new Ie(t.segments,{}):r.match&&!t.hasChildren()?qt(t,e,n):r.match?Bt(t,0,i):qt(t,e,n)}function Bt(t,e,n){if(0===n.length)return new Ie(t.segments,{});var r=Ft(n),i={};return O(r,function(n,r){null!==n&&(i[r]=Ut(t.children[r],e,n))}),O(t.children,function(t,e){void 0===r[e]&&(i[e]=t)}),new Ie(t.segments,i)}function Ht(t,e,n){for(var r=0,i=e,o={match:!1,pathIndex:0,commandIndex:0};i<t.segments.length;){if(r>=n.length)return o;var s=t.segments[i],a=Vt(n[r]),u=r<n.length-1?n[r+1]:null;if(i>0&&void 0===a)break;if(a&&u&&"object"==typeof u&&void 0===u.outlets){if(!Gt(a,u,s))return o;r+=2}else{if(!Gt(a,{},s))return o;r++}i++}return{match:!0,pathIndex:i,commandIndex:r}}function qt(t,e,n){for(var r=t.segments.slice(0,e),i=0;i<n.length;){if("object"==typeof n[i]&&void 0!==n[i].outlets){var o=zt(n[i].outlets);return new Ie(r,o)}if(0===i&&kt(n[0])){var s=t.segments[e];r.push(new De(s.path,n[0])),i++}else{var a=Vt(n[i]),u=i<n.length-1?n[i+1]:null;a&&u&&kt(u)?(r.push(new De(a,Wt(u))),i+=2):(r.push(new De(a,{})),i++)}}return new Ie(r,{})}function zt(t){var e={};return O(t,function(t,n){null!==t&&(e[n]=qt(new Ie([],{}),0,t))}),e}function Wt(t){var e={};return O(t,function(t,n){return e[n]=""+t}),e}function Gt(t,e,n){return t==n.path&&C(e,n.parameters)}function Kt(t,e,n,r){return new nn(t,e,n,r).recognize()}function Xt(t){t.sort(function(t,e){return t.value.outlet===Oe?-1:e.value.outlet===Oe?1:t.value.outlet.localeCompare(e.value.outlet)})}function Qt(t){return t.children?t.children:t.loadChildren?t._loadedConfig.routes:[]}function Yt(t,e,n){if(""===e.path){if("full"===e.pathMatch&&(t.hasChildren()||n.length>0))throw new en;return{consumedSegments:[],lastChild:0,parameters:{}}}var r=e.matcher||E,i=r(n,t,e);if(!i)throw new en;var o={};O(i.posParams,function(t,e){o[e]=t.path});var s=P(o,i.consumed[i.consumed.length-1].parameters);return{consumedSegments:i.consumed,lastChild:i.consumed.length,parameters:s}}function $t(t){var e={};t.forEach(function(t){var n=e[t.value.outlet];if(n){var r=n.url.map(function(t){return t.toString()}).join("/"),i=t.value.url.map(function(t){return t.toString()}).join("/");throw new Error("Two segments cannot have the same outlet name: '"+r+"' and '"+i+"'.")}e[t.value.outlet]=t.value})}function Zt(t){for(var e=t;e._sourceSegment;)e=e._sourceSegment;return e}function Jt(t){for(var e=t,n=e._segmentIndexShift?e._segmentIndexShift:0;e._sourceSegment;)e=e._sourceSegment,n+=e._segmentIndexShift?e._segmentIndexShift:0;return n-1}function te(t,e,n,r){if(n.length>0&&re(t,n,r)){var i=new Ie(e,ne(t,e,r,new Ie(n,t.children)));return i._sourceSegment=t,i._segmentIndexShift=e.length,{segmentGroup:i,slicedSegments:[]}}if(0===n.length&&ie(t,n,r)){var i=new Ie(t.segments,ee(t,n,r,t.children));return i._sourceSegment=t,i._segmentIndexShift=e.length,{segmentGroup:i,slicedSegments:n}}var i=new Ie(t.segments,t.children);return i._sourceSegment=t,i._segmentIndexShift=e.length,{segmentGroup:i,slicedSegments:n}}function ee(t,e,n,r){for(var i={},o=0,s=n;o<s.length;o++){var a=s[o];if(oe(t,e,a)&&!r[se(a)]){var u=new Ie([],{});u._sourceSegment=t,u._segmentIndexShift=t.segments.length,i[se(a)]=u}}return P(r,i)}function ne(t,e,n,r){var i={};i[Oe]=r,r._sourceSegment=t,r._segmentIndexShift=e.length;for(var o=0,s=n;o<s.length;o++){var a=s[o];if(""===a.path&&se(a)!==Oe){var u=new Ie([],{});u._sourceSegment=t,u._segmentIndexShift=e.length,i[se(a)]=u}}return i}function re(t,e,n){return n.filter(function(n){return oe(t,e,n)&&se(n)!==Oe}).length>0}function ie(t,e,n){return n.filter(function(n){return oe(t,e,n)}).length>0}function oe(t,e,n){return(t.hasChildren()||e.length>0)&&"full"===n.pathMatch?!1:""===n.path&&void 0===n.redirectTo}function se(t){return t.outlet?t.outlet:Oe}function ae(t){return t.data?t.data:{}}function ue(t){return t.resolve?t.resolve:{}}function ce(t){throw t}function pe(t){Ct(t.value),t.children.forEach(pe)}function le(t){for(var e=t.parent;e;){var n=e._routeConfig;if(n&&n._loadedConfig)return n._loadedConfig;if(n&&n.component)return null;e=e.parent}return null}function he(t){if(!t)return null;for(var e=t.parent;e;){var n=e._routeConfig;if(n&&n._loadedConfig)return n._loadedConfig;e=e.parent}return null}function fe(t){return t?t.children.reduce(function(t,e){return t[e.value.outlet]=e,t},{}):{}}function de(t,e){var n=t._outlets[e.outlet];if(!n){var r=e.component.name;throw new Error(e.outlet===Oe?"Cannot find primary outlet to load '"+r+"'":"Cannot find the outlet "+e.outlet+" to load '"+r+"'")}return n}function ye(t){for(var e=0;e<t.length;e++){var n=t[e];if(null==n)throw new Error("The requested path contains "+n+" segment at index "+e)}}function me(t){return""===t||!!t}function ve(){return new n.NgProbeToken("Router",fn)}function ge(t,n,r){return void 0===r&&(r={}),r.useHash?new e.HashLocationStrategy(t,n):new e.PathLocationStrategy(t,n)}function _e(t){if(t)throw new Error("RouterModule.forRoot() called twice. Lazy loaded modules should use RouterModule.forChild() instead.");return"guarded"}function be(t){return[{provide:n.ANALYZE_FOR_ENTRY_COMPONENTS,multi:!0,useValue:t},{provide:Me,multi:!0,useValue:t}]}function we(t,e,n,r,i,o,s,a,u,c,p){void 0===u&&(u={});var l=new fn(null,e,n,r,i,o,s,x(a));if(c&&(l.urlHandlingStrategy=c),p&&(l.routeReuseStrategy=p),u.errorHandler&&(l.errorHandler=u.errorHandler),u.enableTracing){var h=Sn();l.events.subscribe(function(t){h.logGroup("Router Event: "+t.constructor.name),h.log(t.toString()),h.log(t),h.logGroupEnd()})}return l}function Ee(t){return t.routerState.root}function Se(t,e,n,r){return function(i){i===e.components[0]&&(t.resetRootComponentType(e.componentTypes[0]),n.setUpPreloading(),r.initialNavigation===!1?t.setUpLocationChangeListener():t.initialNavigation())}}function Ce(){return[{provide:Nn,useFactory:Se,deps:[fn,n.ApplicationRef,Pn,An]},{provide:n.APP_BOOTSTRAP_LISTENER,multi:!0,useExisting:Nn}]}var xe=n.__core_private__.isPromise,Te=n.__core_private__.isObservable,Pe=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},Oe="primary",Ae=function(t){function e(e){t.call(this,e),this.message=e,this.stack=new Error(e).stack}return Pe(e,t),e.prototype.toString=function(){return this.message},e}(Error),Me=new n.OpaqueToken("ROUTES"),Re=function(){function t(t,e,n,r){this.routes=t,this.injector=e,this.factoryResolver=n,this.injectorFactory=r}return t}(),ke=function(){function t(t,e){this.loader=t,this.compiler=e}return t.prototype.load=function(t,e){return p.map.call(this.loadModuleFactory(e),function(e){var n=e.create(t),r=function(t){return e.create(t).injector};return new Re(x(n.injector.get(Me)),n.injector,n.componentFactoryResolver,r)})},t.prototype.loadModuleFactory=function(t){var e=this;return"string"==typeof t?v.fromPromise(this.loader.load(t)):l.mergeMap.call(R(t()),function(t){return t instanceof n.NgModuleFactory?s.of(t):v.fromPromise(e.compiler.compileModuleAsync(t))})},t}(),Ne=function(){function t(t,e,n){this.root=t,this.queryParams=e,this.fragment=n}return t.prototype.toString=function(){return(new Le).serialize(this)},t}(),Ie=function(){function t(t,e){var n=this;this.segments=t,this.children=e,this.parent=null,O(e,function(t){return t.parent=n})}return t.prototype.hasChildren=function(){return this.numberOfChildren>0},Object.defineProperty(t.prototype,"numberOfChildren",{get:function(){return Object.keys(this.children).length},enumerable:!0,configurable:!0}),t.prototype.toString=function(){return H(this)},t}(),De=function(){function t(t,e){this.path=t,this.parameters=e}return t.prototype.toString=function(){return G(this)},t}(),je=function(){function t(){}return t.prototype.parse=function(){},t.prototype.serialize=function(){},t}(),Le=function(){function t(){}return t.prototype.parse=function(t){var e=new He(t);return new Ne(e.parseRootSegment(),e.parseQueryParams(),e.parseFragment())},t.prototype.serialize=function(t){var e="/"+q(t.root,!0),n=X(t.queryParams),r=null!==t.fragment&&void 0!==t.fragment?"#"+encodeURI(t.fragment):"";return""+e+n+r},t}(),Ve=function(){function t(t,e){this.first=t,this.second=e}return t}(),Fe=/^[^\/()?;=&#]+/,Ue=/^[^=?&#]+/,Be=/^[^?&#]+/,He=function(){function t(t){this.url=t,this.remaining=t}return t.prototype.peekStartsWith=function(t){return this.remaining.startsWith(t)},t.prototype.capture=function(t){if(!this.remaining.startsWith(t))throw new Error('Expected "'+t+'".');this.remaining=this.remaining.substring(t.length)},t.prototype.parseRootSegment=function(){return this.remaining.startsWith("/")&&this.capture("/"),""===this.remaining||this.remaining.startsWith("?")||this.remaining.startsWith("#")?new Ie([],{}):new Ie([],this.parseChildren())},t.prototype.parseChildren=function(){if(0==this.remaining.length)return{};this.peekStartsWith("/")&&this.capture("/");var t=[];for(this.peekStartsWith("(")||t.push(this.parseSegments());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),t.push(this.parseSegments());var e={};this.peekStartsWith("/(")&&(this.capture("/"),e=this.parseParens(!0));var n={};return this.peekStartsWith("(")&&(n=this.parseParens(!1)),(t.length>0||Object.keys(e).length>0)&&(n[Oe]=new Ie(t,e)),n},t.prototype.parseSegments=function(){var t=Y(this.remaining);if(""===t&&this.peekStartsWith(";"))throw new Error("Empty path url segment cannot have parameters: '"+this.remaining+"'.");this.capture(t);var e={};return this.peekStartsWith(";")&&(e=this.parseMatrixParams()),new De(W(t),e)},t.prototype.parseQueryParams=function(){var t={};if(this.peekStartsWith("?"))for(this.capture("?"),this.parseQueryParam(t);this.remaining.length>0&&this.peekStartsWith("&");)this.capture("&"),this.parseQueryParam(t);return t},t.prototype.parseFragment=function(){return this.peekStartsWith("#")?decodeURI(this.remaining.substring(1)):null},t.prototype.parseMatrixParams=function(){for(var t={};this.remaining.length>0&&this.peekStartsWith(";");)this.capture(";"),this.parseParam(t);return t},t.prototype.parseParam=function(t){var e=Y(this.remaining);if(e){this.capture(e);var n="";if(this.peekStartsWith("=")){this.capture("=");var r=Y(this.remaining);r&&(n=r,this.capture(n))}t[W(e)]=W(n)}},t.prototype.parseQueryParam=function(t){var e=$(this.remaining);if(e){this.capture(e);var n="";if(this.peekStartsWith("=")){this.capture("=");var r=Z(this.remaining);r&&(n=r,this.capture(n))}var i=W(e),o=W(n);if(t.hasOwnProperty(i)){var s=t[i];Array.isArray(s)||(s=[s],t[i]=s),s.push(o)}else t[i]=o}},t.prototype.parseParens=function(t){var e={};for(this.capture("(");!this.peekStartsWith(")")&&this.remaining.length>0;){var n=Y(this.remaining),r=this.remaining[n.length];if("/"!==r&&")"!==r&&";"!==r)throw new Error("Cannot parse url '"+this.url+"'");var i=void 0;n.indexOf(":")>-1?(i=n.substr(0,n.indexOf(":")),this.capture(i),this.capture(":")):t&&(i=Oe);var o=this.parseChildren();e[i]=1===Object.keys(o).length?o[Oe]:new Ie([],o),this.peekStartsWith("//")&&this.capture("//")}return this.capture(")"),e},t}(),qe=function(){function t(t){void 0===t&&(t=null),this.segmentGroup=t}return t}(),ze=function(){function t(t){this.urlTree=t}return t}(),We=function(){function t(t,e,n,r,i){this.injector=t,this.configLoader=e,this.urlSerializer=n,this.urlTree=r,this.config=i,this.allowRedirects=!0}return t.prototype.apply=function(){var t=this,e=this.expandSegmentGroup(this.injector,this.config,this.urlTree.root,Oe),n=p.map.call(e,function(e){return t.createUrlTree(e,t.urlTree.queryParams,t.urlTree.fragment)});return d._catch.call(n,function(e){if(e instanceof ze)return t.allowRedirects=!1,t.match(e.urlTree);throw e instanceof qe?t.noMatchError(e):e})},t.prototype.match=function(t){var e=this,n=this.expandSegmentGroup(this.injector,this.config,t.root,Oe),r=p.map.call(n,function(n){return e.createUrlTree(n,t.queryParams,t.fragment)});return d._catch.call(r,function(t){throw t instanceof qe?e.noMatchError(t):t})},t.prototype.noMatchError=function(t){return new Error("Cannot match any routes. URL Segment: '"+t.segmentGroup+"'")},t.prototype.createUrlTree=function(t,e,n){var r=t.segments.length>0?new Ie([],(i={},i[Oe]=t,i)):t;return new Ne(r,e,n);var i},t.prototype.expandSegmentGroup=function(t,e,n,r){return 0===n.segments.length&&n.hasChildren()?p.map.call(this.expandChildren(t,e,n),function(t){return new Ie([],t)}):this.expandSegment(t,n,e,n.segments,r,!0)},t.prototype.expandChildren=function(t,e,n){var r=this;return A(n.children,function(n,i){return r.expandSegmentGroup(t,e,i,n)})},t.prototype.expandSegment=function(t,e,n,r,i,o){var a=this,u=s.of.apply(void 0,n),l=p.map.call(u,function(u){var c=a.expandSegmentAgainstRoute(t,e,n,u,r,i,o);return d._catch.call(c,function(t){if(t instanceof qe)return s.of(null);throw t})}),h=y.concatAll.call(l),f=c.first.call(h,function(t){return!!t});return d._catch.call(f,function(t){ +if(t instanceof m.EmptyError){if(a.noLeftoversInUrl(e,r,i))return s.of(new Ie([],{}));throw new qe(e)}throw t})},t.prototype.noLeftoversInUrl=function(t,e,n){return 0===e.length&&!t.children[n]},t.prototype.expandSegmentAgainstRoute=function(t,e,n,r,i,o,s){return ft(r)!==o?J(e):void 0===r.redirectTo||s&&this.allowRedirects?void 0===r.redirectTo?this.matchSegmentAgainstRoute(t,e,r,i):this.expandSegmentAgainstRouteUsingRedirect(t,e,n,r,i,o):J(e)},t.prototype.expandSegmentAgainstRouteUsingRedirect=function(t,e,n,r,i,o){return"**"===r.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(t,n,r,o):this.expandRegularSegmentAgainstRouteUsingRedirect(t,e,n,r,i,o)},t.prototype.expandWildCardWithParamsAgainstRouteUsingRedirect=function(t,e,n,r){var i=this,o=this.applyRedirectCommands([],n.redirectTo,{});return n.redirectTo.startsWith("/")?tt(o):l.mergeMap.call(this.lineralizeSegments(n,o),function(n){var o=new Ie(n,{});return i.expandSegment(t,o,e,n,r,!1)})},t.prototype.expandRegularSegmentAgainstRouteUsingRedirect=function(t,e,n,r,i,o){var s=this,a=ot(e,r,i),u=a.matched,c=a.consumedSegments,p=a.lastChild,h=a.positionalParamSegments;if(!u)return J(e);var f=this.applyRedirectCommands(c,r.redirectTo,h);return r.redirectTo.startsWith("/")?tt(f):l.mergeMap.call(this.lineralizeSegments(r,f),function(r){return s.expandSegment(t,e,n,r.concat(i.slice(p)),o,!1)})},t.prototype.matchSegmentAgainstRoute=function(t,e,n,r){var i=this;if("**"===n.path)return n.loadChildren?p.map.call(this.configLoader.load(t,n.loadChildren),function(t){return n._loadedConfig=t,new Ie(r,{})}):s.of(new Ie(r,{}));var o=ot(e,n,r),a=o.matched,u=o.consumedSegments,c=o.lastChild;if(!a)return J(e);var h=r.slice(c),f=this.getChildConfig(t,n);return l.mergeMap.call(f,function(t){var n=t.injector,r=t.routes,o=st(e,u,h,r),a=o.segmentGroup,c=o.slicedSegments;if(0===c.length&&a.hasChildren()){var l=i.expandChildren(n,r,a);return p.map.call(l,function(t){return new Ie(u,t)})}if(0===r.length&&0===c.length)return s.of(new Ie(u,{}));var l=i.expandSegment(n,a,r,c,Oe,!0);return p.map.call(l,function(t){return new Ie(u.concat(t.segments),t.children)})})},t.prototype.getChildConfig=function(t,e){var n=this;return e.children?s.of(new Re(e.children,t,null,null)):e.loadChildren?l.mergeMap.call(it(t,e),function(r){return r?e._loadedConfig?s.of(e._loadedConfig):p.map.call(n.configLoader.load(t,e.loadChildren),function(t){return e._loadedConfig=t,t}):nt(e)}):s.of(new Re([],t,null,null))},t.prototype.lineralizeSegments=function(t,e){for(var n=[],r=e.root;;){if(n=n.concat(r.segments),0===r.numberOfChildren)return s.of(n);if(r.numberOfChildren>1||!r.children[Oe])return et(t.redirectTo);r=r.children[Oe]}},t.prototype.applyRedirectCommands=function(t,e,n){this.urlSerializer.parse(e);return this.applyRedirectCreatreUrlTree(e,this.urlSerializer.parse(e),t,n)},t.prototype.applyRedirectCreatreUrlTree=function(t,e,n,r){var i=this.createSegmentGroup(t,e.root,n,r);return new Ne(i,this.createQueryParams(e.queryParams,this.urlTree.queryParams),e.fragment)},t.prototype.createQueryParams=function(t,e){var n={};return O(t,function(t,r){n[r]=t.startsWith(":")?e[t.substring(1)]:t}),n},t.prototype.createSegmentGroup=function(t,e,n,r){var i=this,o=this.createSegments(t,e.segments,n,r),s={};return O(e.children,function(e,o){s[o]=i.createSegmentGroup(t,e,n,r)}),new Ie(o,s)},t.prototype.createSegments=function(t,e,n,r){var i=this;return e.map(function(e){return e.path.startsWith(":")?i.findPosParam(t,e,r):i.findOrReturn(e,n)})},t.prototype.findPosParam=function(t,e,n){var r=n[e.path.substring(1)];if(!r)throw new Error("Cannot redirect to '"+t+"'. Cannot find '"+e.path+"'.");return r},t.prototype.findOrReturn=function(t,e){for(var n=0,r=0,i=e;r<i.length;r++){var o=i[r];if(o.path===t.path)return e.splice(n),o;n++}return t},t}(),Ge=function(){function t(t){this._root=t}return Object.defineProperty(t.prototype,"root",{get:function(){return this._root.value},enumerable:!0,configurable:!0}),t.prototype.parent=function(t){var e=this.pathFromRoot(t);return e.length>1?e[e.length-2]:null},t.prototype.children=function(t){var e=vt(t,this._root);return e?e.children.map(function(t){return t.value}):[]},t.prototype.firstChild=function(t){var e=vt(t,this._root);return e&&e.children.length>0?e.children[0].value:null},t.prototype.siblings=function(t){var e=gt(t,this._root,[]);if(e.length<2)return[];var n=e[e.length-2].children.map(function(t){return t.value});return n.filter(function(e){return e!==t})},t.prototype.pathFromRoot=function(t){return gt(t,this._root,[]).map(function(t){return t.value})},t}(),Ke=function(){function t(t,e){this.value=t,this.children=e}return t.prototype.toString=function(){return"TreeNode("+this.value+")"},t}(),Xe=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},Qe=function(t){function e(e,n){t.call(this,e),this.snapshot=n,Et(this,e)}return Xe(e,t),e.prototype.toString=function(){return this.snapshot.toString()},e}(Ge),Ye=function(){function t(t,e,n,r,i,o,s,a){this.url=t,this.params=e,this.queryParams=n,this.fragment=r,this.data=i,this.outlet=o,this.component=s,this._futureSnapshot=a}return Object.defineProperty(t.prototype,"routeConfig",{get:function(){return this._futureSnapshot.routeConfig},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"root",{get:function(){return this._routerState.root},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"parent",{get:function(){return this._routerState.parent(this)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"firstChild",{get:function(){return this._routerState.firstChild(this)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"children",{get:function(){return this._routerState.children(this)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"pathFromRoot",{get:function(){return this._routerState.pathFromRoot(this)},enumerable:!0,configurable:!0}),t.prototype.toString=function(){return this.snapshot?this.snapshot.toString():"Future("+this._futureSnapshot+")"},t}(),$e=function(){function t(t,e,n,r,i,o,s,a,u,c,p){this.url=t,this.params=e,this.queryParams=n,this.fragment=r,this.data=i,this.outlet=o,this.component=s,this._routeConfig=a,this._urlSegment=u,this._lastPathIndex=c,this._resolve=p}return Object.defineProperty(t.prototype,"routeConfig",{get:function(){return this._routeConfig},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"root",{get:function(){return this._routerState.root},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"parent",{get:function(){return this._routerState.parent(this)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"firstChild",{get:function(){return this._routerState.firstChild(this)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"children",{get:function(){return this._routerState.children(this)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"pathFromRoot",{get:function(){return this._routerState.pathFromRoot(this)},enumerable:!0,configurable:!0}),t.prototype.toString=function(){var t=this.url.map(function(t){return t.toString()}).join("/"),e=this._routeConfig?this._routeConfig.path:"";return"Route(url:'"+t+"', path:'"+e+"')"},t}(),Ze=function(t){function e(e,n){t.call(this,n),this.url=e,Et(this,n)}return Xe(e,t),e.prototype.toString=function(){return St(this._root)},e}(Ge),Je=function(){function t(t,e,n){if(this.isAbsolute=t,this.numberOfDoubleDots=e,this.commands=n,t&&n.length>0&&kt(n[0]))throw new Error("Root segment cannot have matrix parameters");var r=n.find(function(t){return"object"==typeof t&&null!=t&&t.outlets});if(r&&r!==T(n))throw new Error("{outlets:{}} has to be the last command")}return t.prototype.toRoot=function(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]},t}(),tn=function(){function t(t,e,n){this.segmentGroup=t,this.processChildren=e,this.index=n}return t}(),en=function(){function t(){}return t}(),nn=function(){function t(t,e,n,r){this.rootComponentType=t,this.config=e,this.urlTree=n,this.url=r}return t.prototype.recognize=function(){try{var t=te(this.urlTree.root,[],[],this.config).segmentGroup,e=this.processSegmentGroup(this.config,t,Oe),n=new $e([],Object.freeze({}),Object.freeze(this.urlTree.queryParams),this.urlTree.fragment,{},Oe,this.rootComponentType,null,this.urlTree.root,-1,{}),r=new Ke(n,e),i=new Ze(this.url,r);return this.inheriteParamsAndData(i._root),s.of(i)}catch(o){return new f.Observable(function(t){return t.error(o)})}},t.prototype.inheriteParamsAndData=function(t){var e=this,n=t.value,r=wt(n);n.params=Object.freeze(r.params),n.data=Object.freeze(r.data),t.children.forEach(function(t){return e.inheriteParamsAndData(t)})},t.prototype.processSegmentGroup=function(t,e,n){return 0===e.segments.length&&e.hasChildren()?this.processChildren(t,e):this.processSegment(t,e,e.segments,n)},t.prototype.processChildren=function(t,e){var n=this,r=B(e,function(e,r){return n.processSegmentGroup(t,e,r)});return $t(r),Xt(r),r},t.prototype.processSegment=function(t,e,n,r){for(var i=0,o=t;i<o.length;i++){var s=o[i];try{return this.processSegmentAgainstRoute(s,e,n,r)}catch(a){if(!(a instanceof en))throw a}}if(this.noLeftoversInUrl(e,n,r))return[];throw new en},t.prototype.noLeftoversInUrl=function(t,e,n){return 0===e.length&&!t.children[n]},t.prototype.processSegmentAgainstRoute=function(t,e,n,r){if(t.redirectTo)throw new en;if((t.outlet?t.outlet:Oe)!==r)throw new en;if("**"===t.path){var i=n.length>0?T(n).parameters:{},o=new $e(n,i,Object.freeze(this.urlTree.queryParams),this.urlTree.fragment,ae(t),r,t.component,t,Zt(e),Jt(e)+n.length,ue(t));return[new Ke(o,[])]}var s=Yt(e,t,n),a=s.consumedSegments,u=s.parameters,c=s.lastChild,p=n.slice(c),l=Qt(t),h=te(e,a,p,l),f=h.segmentGroup,d=h.slicedSegments,y=new $e(a,u,Object.freeze(this.urlTree.queryParams),this.urlTree.fragment,ae(t),r,t.component,t,Zt(e),Jt(e)+a.length,ue(t));if(0===d.length&&f.hasChildren()){var m=this.processChildren(l,f);return[new Ke(y,m)]}if(0===l.length&&0===d.length)return[new Ke(y,[])];var m=this.processSegment(l,f,d,Oe);return[new Ke(y,m)]},t}(),rn=function(){function t(){this._outlets={}}return t.prototype.registerOutlet=function(t,e){this._outlets[t]=e},t.prototype.removeOutlet=function(t){this._outlets[t]=void 0},t}(),on=function(){function t(){}return t.prototype.shouldProcessUrl=function(){},t.prototype.extract=function(){},t.prototype.merge=function(){},t}(),sn=function(){function t(){}return t.prototype.shouldProcessUrl=function(){return!0},t.prototype.extract=function(t){return t},t.prototype.merge=function(t){return t},t}(),an=function(){function t(t,e){this.id=t,this.url=e}return t.prototype.toString=function(){return"NavigationStart(id: "+this.id+", url: '"+this.url+"')"},t}(),un=function(){function t(t,e,n){this.id=t,this.url=e,this.urlAfterRedirects=n}return t.prototype.toString=function(){return"NavigationEnd(id: "+this.id+", url: '"+this.url+"', urlAfterRedirects: '"+this.urlAfterRedirects+"')"},t}(),cn=function(){function t(t,e,n){this.id=t,this.url=e,this.reason=n}return t.prototype.toString=function(){return"NavigationCancel(id: "+this.id+", url: '"+this.url+"')"},t}(),pn=function(){function t(t,e,n){this.id=t,this.url=e,this.error=n}return t.prototype.toString=function(){return"NavigationError(id: "+this.id+", url: '"+this.url+"', error: "+this.error+")"},t}(),ln=function(){function t(t,e,n,r){this.id=t,this.url=e,this.urlAfterRedirects=n,this.state=r}return t.prototype.toString=function(){return"RoutesRecognized(id: "+this.id+", url: '"+this.url+"', urlAfterRedirects: '"+this.urlAfterRedirects+"', state: "+this.state+")"},t}(),hn=function(){function t(){}return t.prototype.shouldDetach=function(){return!1},t.prototype.store=function(){},t.prototype.shouldAttach=function(){return!1},t.prototype.retrieve=function(){return null},t.prototype.shouldReuseRoute=function(t,e){return t.routeConfig===e.routeConfig},t}(),fn=function(){function t(t,e,n,o,s,a,u,c){this.rootComponentType=t,this.urlSerializer=e,this.outletMap=n,this.location=o,this.injector=s,this.config=c,this.navigations=new r.BehaviorSubject(null),this.routerEvents=new i.Subject,this.navigationId=0,this.errorHandler=ce,this.navigated=!1,this.urlHandlingStrategy=new sn,this.routeReuseStrategy=new hn,this.resetConfig(c),this.currentUrlTree=k(),this.rawUrlTree=this.currentUrlTree,this.configLoader=new ke(a,u),this.currentRouterState=_t(this.currentUrlTree,this.rootComponentType),this.processNavigations()}return t.prototype.resetRootComponentType=function(t){this.rootComponentType=t,this.currentRouterState.root.component=this.rootComponentType},t.prototype.initialNavigation=function(){this.setUpLocationChangeListener(),0===this.navigationId&&this.navigateByUrl(this.location.path(!0),{replaceUrl:!0})},t.prototype.setUpLocationChangeListener=function(){var t=this;this.locationSubscription||(this.locationSubscription=this.location.subscribe(Zone.current.wrap(function(e){var n=t.urlSerializer.parse(e.url),r="popstate"===e.type?"popstate":"hashchange";setTimeout(function(){t.scheduleNavigation(n,r,{replaceUrl:!0})},0)})))},Object.defineProperty(t.prototype,"routerState",{get:function(){return this.currentRouterState},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"url",{get:function(){return this.serializeUrl(this.currentUrlTree)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"events",{get:function(){return this.routerEvents},enumerable:!0,configurable:!0}),t.prototype.resetConfig=function(t){dt(t),this.config=t},t.prototype.ngOnDestroy=function(){this.dispose()},t.prototype.dispose=function(){this.locationSubscription&&(this.locationSubscription.unsubscribe(),this.locationSubscription=null)},t.prototype.createUrlTree=function(t,e){var n=void 0===e?{}:e,r=n.relativeTo,i=n.queryParams,o=n.fragment,s=n.preserveQueryParams,a=n.preserveFragment,u=r||this.routerState.root,c=s?this.currentUrlTree.queryParams:i,p=a?this.currentUrlTree.fragment:o;return Rt(u,this.currentUrlTree,t,c,p)},t.prototype.navigateByUrl=function(t,e){if(void 0===e&&(e={skipLocationChange:!1}),t instanceof Ne)return this.scheduleNavigation(this.urlHandlingStrategy.merge(t,this.rawUrlTree),"imperative",e);var n=this.urlSerializer.parse(t);return this.scheduleNavigation(this.urlHandlingStrategy.merge(n,this.rawUrlTree),"imperative",e)},t.prototype.navigate=function(t,e){return void 0===e&&(e={skipLocationChange:!1}),ye(t),"object"==typeof e.queryParams&&null!==e.queryParams&&(e.queryParams=this.removeEmptyProps(e.queryParams)),this.navigateByUrl(this.createUrlTree(t,e),e)},t.prototype.serializeUrl=function(t){return this.urlSerializer.serialize(t)},t.prototype.parseUrl=function(t){return this.urlSerializer.parse(t)},t.prototype.isActive=function(t,e){if(t instanceof Ne)return N(this.currentUrlTree,t,e);var n=this.urlSerializer.parse(t);return N(this.currentUrlTree,n,e)},t.prototype.removeEmptyProps=function(t){return Object.keys(t).reduce(function(e,n){var r=t[n];return null!==r&&void 0!==r&&(e[n]=r),e},{})},t.prototype.processNavigations=function(){var t=this;a.concatMap.call(this.navigations,function(e){return e?(t.executeScheduledNavigation(e),e.promise["catch"](function(){})):s.of(null)}).subscribe(function(){})},t.prototype.scheduleNavigation=function(t,e,n){var r=this.navigations.value;if(r&&"imperative"!==e&&"imperative"===r.source&&r.rawUrl.toString()===t.toString())return null;if(r&&"hashchange"==e&&"popstate"===r.source&&r.rawUrl.toString()===t.toString())return null;var i=null,o=null,s=new Promise(function(t,e){i=t,o=e}),a=++this.navigationId;return this.navigations.next({id:a,source:e,rawUrl:t,extras:n,resolve:i,reject:o,promise:s}),s["catch"](function(t){return Promise.reject(t)})},t.prototype.executeScheduledNavigation=function(t){var e=this,n=t.id,r=t.rawUrl,i=t.extras,o=t.resolve,s=t.reject,a=this.urlHandlingStrategy.extract(r),u=!this.navigated||a.toString()!==this.currentUrlTree.toString();u&&this.urlHandlingStrategy.shouldProcessUrl(r)?(this.routerEvents.next(new an(n,this.serializeUrl(a))),Promise.resolve().then(function(){return e.runNavigate(a,r,i.skipLocationChange,i.replaceUrl,n,null)}).then(o,s)):u&&this.rawUrlTree&&this.urlHandlingStrategy.shouldProcessUrl(this.rawUrlTree)?(this.routerEvents.next(new an(n,this.serializeUrl(a))),Promise.resolve().then(function(){return e.runNavigate(a,r,!1,!1,n,_t(a,e.rootComponentType).snapshot)}).then(o,s)):(this.rawUrlTree=r,o(null))},t.prototype.runNavigate=function(t,e,n,r,i,o){var a=this;return i!==this.navigationId?(this.location.go(this.urlSerializer.serialize(this.currentUrlTree)),this.routerEvents.next(new cn(i,this.serializeUrl(t),"Navigation ID "+i+" is not equal to the current navigation id "+this.navigationId)),Promise.resolve(!1)):new Promise(function(u,c){var h;if(o)h=s.of({appliedUrl:t,snapshot:o});else{var f=rt(a.injector,a.configLoader,a.urlSerializer,t,a.config);h=l.mergeMap.call(f,function(e){return p.map.call(Kt(a.rootComponentType,a.config,e,a.serializeUrl(e)),function(n){return a.routerEvents.next(new ln(i,a.serializeUrl(t),a.serializeUrl(e),n)),{appliedUrl:e,snapshot:n}})})}var d,y,m=p.map.call(h,function(t){var e=t.appliedUrl,n=t.snapshot;return d=new mn(n,a.currentRouterState.snapshot,a.injector),d.traverse(a.outletMap),{appliedUrl:e,snapshot:n}}),v=l.mergeMap.call(m,function(t){var e=t.appliedUrl,n=t.snapshot;return a.navigationId!==i?s.of(!1):p.map.call(d.checkGuards(),function(t){return{appliedUrl:e,snapshot:n,shouldActivate:t}})}),g=l.mergeMap.call(v,function(t){return a.navigationId!==i?s.of(!1):t.shouldActivate?p.map.call(d.resolveData(),function(){return t}):s.of(t)}),_=p.map.call(g,function(t){var e=t.appliedUrl,n=t.snapshot,r=t.shouldActivate;if(r){var i=Tt(a.routeReuseStrategy,n,a.currentRouterState);return{appliedUrl:e,state:i,shouldActivate:r}}return{appliedUrl:e,state:null,shouldActivate:r}}),b=a.currentRouterState,w=a.currentUrlTree;_.forEach(function(t){var o=t.appliedUrl,s=t.state,u=t.shouldActivate;if(!u||i!==a.navigationId)return void(y=!1);if(a.currentUrlTree=o,a.rawUrlTree=a.urlHandlingStrategy.merge(a.currentUrlTree,e),a.currentRouterState=s,!n){var c=a.urlSerializer.serialize(a.rawUrlTree);a.location.isCurrentPathEqualTo(c)||r?a.location.replaceState(c):a.location.go(c)}new vn(a.routeReuseStrategy,s,b).activate(a.outletMap),y=!0}).then(function(){y?(a.navigated=!0,a.routerEvents.next(new un(i,a.serializeUrl(t),a.serializeUrl(a.currentUrlTree))),u(!0)):(a.resetUrlToCurrentUrlTree(),a.routerEvents.next(new cn(i,a.serializeUrl(t),"")),u(!1))},function(n){if(n instanceof Ae)a.resetUrlToCurrentUrlTree(),a.navigated=!0,a.routerEvents.next(new cn(i,a.serializeUrl(t),n.message)),u(!1);else{a.routerEvents.next(new pn(i,a.serializeUrl(t),n));try{u(a.errorHandler(n))}catch(r){c(r)}}a.currentRouterState=b,a.currentUrlTree=w,a.rawUrlTree=a.urlHandlingStrategy.merge(a.currentUrlTree,e),a.location.replaceState(a.serializeUrl(a.rawUrlTree))})})},t.prototype.resetUrlToCurrentUrlTree=function(){var t=this.urlSerializer.serialize(this.rawUrlTree);this.location.replaceState(t)},t}(),dn=function(){function t(t){this.path=t}return Object.defineProperty(t.prototype,"route",{get:function(){return this.path[this.path.length-1]},enumerable:!0,configurable:!0}),t}(),yn=function(){function t(t,e){this.component=t,this.route=e}return t}(),mn=function(){function t(t,e,n){this.future=t,this.curr=e,this.injector=n,this.checks=[]}return t.prototype.traverse=function(t){var e=this.future._root,n=this.curr?this.curr._root:null;this.traverseChildRoutes(e,n,t,[e.value])},t.prototype.checkGuards=function(){var t=this;if(0===this.checks.length)return s.of(!0);var e=o.from(this.checks),n=l.mergeMap.call(e,function(e){if(e instanceof dn)return M(o.from([t.runCanActivateChild(e.path),t.runCanActivate(e.route)]));if(e instanceof yn){var n=e;return t.runCanDeactivate(n.component,n.route)}throw new Error("Cannot be reached")});return u.every.call(n,function(t){return t===!0})},t.prototype.resolveData=function(){var t=this;if(0===this.checks.length)return s.of(null);var e=o.from(this.checks),n=a.concatMap.call(e,function(e){return e instanceof dn?t.runResolve(e.route):s.of(null)});return h.reduce.call(n,function(t){return t})},t.prototype.traverseChildRoutes=function(t,e,n,r){var i=this,o=fe(e);t.children.forEach(function(t){i.traverseRoutes(t,o[t.value.outlet],n,r.concat([t.value])),delete o[t.value.outlet]}),O(o,function(t,e){return i.deactiveRouteAndItsChildren(t,n._outlets[e])})},t.prototype.traverseRoutes=function(t,e,n,r){var i=t.value,o=e?e.value:null,s=n?n._outlets[t.value.outlet]:null;o&&i._routeConfig===o._routeConfig?(xt(i,o)?(i.data=o.data,i._resolvedData=o._resolvedData):this.checks.push(new yn(s.component,o),new dn(r)),i.component?this.traverseChildRoutes(t,e,s?s.outletMap:null,r):this.traverseChildRoutes(t,e,n,r)):(o&&this.deactiveRouteAndItsChildren(e,s),this.checks.push(new dn(r)),i.component?this.traverseChildRoutes(t,null,s?s.outletMap:null,r):this.traverseChildRoutes(t,null,n,r))},t.prototype.deactiveRouteAndItsChildren=function(t,e){var n=this,r=fe(t),i=t.value;O(r,function(t,r){i.component?e?n.deactiveRouteAndItsChildren(t,e.outletMap._outlets[r]):n.deactiveRouteAndItsChildren(t,null):n.deactiveRouteAndItsChildren(t,e)}),this.checks.push(i.component?e&&e.isActivated?new yn(e.component,i):new yn(null,i):new yn(null,i))},t.prototype.runCanActivate=function(t){var e=this,n=t._routeConfig?t._routeConfig.canActivate:null;if(!n||0===n.length)return s.of(!0);var r=p.map.call(o.from(n),function(n){var r,i=e.getToken(n,t);return r=R(i.canActivate?i.canActivate(t,e.future):i(t,e.future)),c.first.call(r)});return M(r)},t.prototype.runCanActivateChild=function(t){var e=this,n=t[t.length-1],r=t.slice(0,t.length-1).reverse().map(function(t){return e.extractCanActivateChild(t)}).filter(function(t){return null!==t});return M(p.map.call(o.from(r),function(t){var r=p.map.call(o.from(t.guards),function(r){var i,o=e.getToken(r,t.node);return i=R(o.canActivateChild?o.canActivateChild(n,e.future):o(n,e.future)),c.first.call(i)});return M(r)}))},t.prototype.extractCanActivateChild=function(t){var e=t._routeConfig?t._routeConfig.canActivateChild:null;return e&&0!==e.length?{node:t,guards:e}:null},t.prototype.runCanDeactivate=function(t,e){var n=this,r=e&&e._routeConfig?e._routeConfig.canDeactivate:null;if(!r||0===r.length)return s.of(!0);var i=l.mergeMap.call(o.from(r),function(r){var i,o=n.getToken(r,e);return i=R(o.canDeactivate?o.canDeactivate(t,e,n.curr):o(t,e,n.curr)),c.first.call(i)});return u.every.call(i,function(t){return t===!0})},t.prototype.runResolve=function(t){var e=t._resolve;return p.map.call(this.resolveNode(e,t),function(e){return t._resolvedData=e,t.data=P(t.data,wt(t).resolve),null})},t.prototype.resolveNode=function(t,e){var n=this;return A(t,function(t,r){var i=n.getToken(r,e);return R(i.resolve?i.resolve(e,n.future):i(e,n.future))})},t.prototype.getToken=function(t,e){var n=he(e),r=n?n.injector:this.injector;return r.get(t)},t}(),vn=function(){function t(t,e,n){this.routeReuseStrategy=t,this.futureState=e,this.currState=n}return t.prototype.activate=function(t){var e=this.futureState._root,n=this.currState?this.currState._root:null;this.deactivateChildRoutes(e,n,t),Ct(this.futureState.root),this.activateChildRoutes(e,n,t)},t.prototype.deactivateChildRoutes=function(t,e,n){var r=this,i=fe(e);t.children.forEach(function(t){r.deactivateRoutes(t,i[t.value.outlet],n),delete i[t.value.outlet]}),O(i,function(t){return r.deactiveRouteAndItsChildren(t,n)})},t.prototype.activateChildRoutes=function(t,e,n){var r=this,i=fe(e);t.children.forEach(function(t){r.activateRoutes(t,i[t.value.outlet],n)})},t.prototype.deactivateRoutes=function(t,e,n){var r=t.value,i=e?e.value:null;if(r===i)if(r.component){var o=de(n,r);this.deactivateChildRoutes(t,e,o.outletMap)}else this.deactivateChildRoutes(t,e,n);else i&&this.deactiveRouteAndItsChildren(e,n)},t.prototype.activateRoutes=function(t,e,n){var r=t.value,i=e?e.value:null;if(r===i)if(Ct(r),r.component){var o=de(n,r);this.activateChildRoutes(t,e,o.outletMap)}else this.activateChildRoutes(t,e,n);else if(r.component){Ct(r);var o=de(n,t.value);if(this.routeReuseStrategy.shouldAttach(r.snapshot)){var s=this.routeReuseStrategy.retrieve(r.snapshot);this.routeReuseStrategy.store(r.snapshot,null),o.attach(s.componentRef,s.route.value),pe(s.route)}else{var a=new rn;this.placeComponentIntoOutlet(a,r,o),this.activateChildRoutes(t,null,a)}}else Ct(r),this.activateChildRoutes(t,null,n)},t.prototype.placeComponentIntoOutlet=function(t,e,r){var i=[{provide:Ye,useValue:e},{provide:rn,useValue:t}],o=le(e.snapshot),s=null,a=null;o?(a=o.injectorFactory(r.locationInjector),s=o.factoryResolver,i.push({provide:n.ComponentFactoryResolver,useValue:s})):(a=r.locationInjector,s=r.locationFactoryResolver),r.activate(e,s,a,n.ReflectiveInjector.resolve(i),t)},t.prototype.deactiveRouteAndItsChildren=function(t,e){this.routeReuseStrategy.shouldDetach(t.value.snapshot)?this.detachAndStoreRouteSubtree(t,e):this.deactiveRouteAndOutlet(t,e)},t.prototype.detachAndStoreRouteSubtree=function(t,e){var n=de(e,t.value),r=n.detach();this.routeReuseStrategy.store(t.value.snapshot,{componentRef:r,route:t})},t.prototype.deactiveRouteAndOutlet=function(t,e){var n=this,r=fe(t),i=null;try{i=de(e,t.value)}catch(o){return}var s=i.outletMap;O(r,function(r){t.value.component?n.deactiveRouteAndItsChildren(r,s):n.deactiveRouteAndItsChildren(r,e)}),i&&i.isActivated&&i.deactivate()},t}(),gn=function(){function t(t,e){this.router=t,this.route=e,this.commands=[]}return Object.defineProperty(t.prototype,"routerLink",{set:function(t){this.commands=null!=t?Array.isArray(t)?t:[t]:[]},enumerable:!0,configurable:!0}),t.prototype.onClick=function(){var t={skipLocationChange:me(this.skipLocationChange),replaceUrl:me(this.replaceUrl)};return this.router.navigateByUrl(this.urlTree,t),!0},Object.defineProperty(t.prototype,"urlTree",{get:function(){return this.router.createUrlTree(this.commands,{relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,preserveQueryParams:me(this.preserveQueryParams),preserveFragment:me(this.preserveFragment)})},enumerable:!0,configurable:!0}),t.decorators=[{type:n.Directive,args:[{selector:":not(a)[routerLink]"}]}],t.ctorParameters=function(){return[{type:fn},{type:Ye}]},t.propDecorators={queryParams:[{type:n.Input}],fragment:[{type:n.Input}],preserveQueryParams:[{type:n.Input}],preserveFragment:[{type:n.Input}],skipLocationChange:[{type:n.Input}],replaceUrl:[{type:n.Input}],routerLink:[{type:n.Input}],onClick:[{type:n.HostListener,args:["click"]}]},t}(),_n=function(){function t(t,e,n){var r=this;this.router=t,this.route=e,this.locationStrategy=n,this.commands=[],this.subscription=t.events.subscribe(function(t){t instanceof un&&r.updateTargetUrlAndHref()})}return Object.defineProperty(t.prototype,"routerLink",{set:function(t){this.commands=null!=t?Array.isArray(t)?t:[t]:[]},enumerable:!0,configurable:!0}),t.prototype.ngOnChanges=function(){this.updateTargetUrlAndHref()},t.prototype.ngOnDestroy=function(){this.subscription.unsubscribe()},t.prototype.onClick=function(t,e,n){if(0!==t||e||n)return!0;if("string"==typeof this.target&&"_self"!=this.target)return!0;var r={skipLocationChange:me(this.skipLocationChange),replaceUrl:me(this.replaceUrl)};return this.router.navigateByUrl(this.urlTree,r),!1},t.prototype.updateTargetUrlAndHref=function(){this.href=this.locationStrategy.prepareExternalUrl(this.router.serializeUrl(this.urlTree))},Object.defineProperty(t.prototype,"urlTree",{get:function(){return this.router.createUrlTree(this.commands,{relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,preserveQueryParams:me(this.preserveQueryParams),preserveFragment:me(this.preserveFragment)})},enumerable:!0,configurable:!0}),t.decorators=[{type:n.Directive,args:[{selector:"a[routerLink]"}]}],t.ctorParameters=function(){return[{type:fn},{type:Ye},{type:e.LocationStrategy}]},t.propDecorators={target:[{type:n.HostBinding,args:["attr.target"]},{type:n.Input}],queryParams:[{type:n.Input}],fragment:[{type:n.Input}],preserveQueryParams:[{type:n.Input}],preserveFragment:[{type:n.Input}],skipLocationChange:[{type:n.Input}],replaceUrl:[{type:n.Input}],href:[{type:n.HostBinding}],routerLink:[{type:n.Input}],onClick:[{type:n.HostListener,args:["click",["$event.button","$event.ctrlKey","$event.metaKey"]]}]},t}(),bn=function(){function t(t,e,n,r){var i=this;this.router=t,this.element=e,this.renderer=n,this.cdr=r,this.classes=[],this.active=!1,this.routerLinkActiveOptions={exact:!1},this.subscription=t.events.subscribe(function(t){t instanceof un&&i.update()})}return Object.defineProperty(t.prototype,"isActive",{get:function(){return this.active},enumerable:!0,configurable:!0}),t.prototype.ngAfterContentInit=function(){var t=this;this.links.changes.subscribe(function(){return t.update()}),this.linksWithHrefs.changes.subscribe(function(){return t.update()}),this.update()},Object.defineProperty(t.prototype,"routerLinkActive",{set:function(t){var e=Array.isArray(t)?t:t.split(" ");this.classes=e.filter(function(t){return!!t})},enumerable:!0,configurable:!0}),t.prototype.ngOnChanges=function(){this.update()},t.prototype.ngOnDestroy=function(){this.subscription.unsubscribe()},t.prototype.update=function(){var t=this;if(this.links&&this.linksWithHrefs&&this.router.navigated){var e=this.hasActiveLinks();this.active!==e&&(this.active=e,this.classes.forEach(function(n){return t.renderer.setElementClass(t.element.nativeElement,n,e)}),this.cdr.detectChanges())}},t.prototype.isLinkActive=function(t){var e=this;return function(n){return t.isActive(n.urlTree,e.routerLinkActiveOptions.exact)}},t.prototype.hasActiveLinks=function(){return this.links.some(this.isLinkActive(this.router))||this.linksWithHrefs.some(this.isLinkActive(this.router))},t.decorators=[{type:n.Directive,args:[{selector:"[routerLinkActive]",exportAs:"routerLinkActive"}]}],t.ctorParameters=function(){return[{type:fn},{type:n.ElementRef},{type:n.Renderer},{type:n.ChangeDetectorRef}]},t.propDecorators={links:[{type:n.ContentChildren,args:[gn,{descendants:!0}]}],linksWithHrefs:[{type:n.ContentChildren,args:[_n,{descendants:!0}]}],routerLinkActiveOptions:[{type:n.Input}],routerLinkActive:[{type:n.Input}]},t}(),wn=function(){function t(t,e,r,i){this.parentOutletMap=t,this.location=e,this.resolver=r,this.name=i,this.activateEvents=new n.EventEmitter,this.deactivateEvents=new n.EventEmitter,t.registerOutlet(i?i:Oe,this)}return t.prototype.ngOnDestroy=function(){this.parentOutletMap.removeOutlet(this.name?this.name:Oe)},Object.defineProperty(t.prototype,"locationInjector",{get:function(){return this.location.injector},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"locationFactoryResolver",{get:function(){return this.resolver},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isActivated",{get:function(){return!!this.activated},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"component",{get:function(){if(!this.activated)throw new Error("Outlet is not activated");return this.activated.instance},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"activatedRoute",{get:function(){if(!this.activated)throw new Error("Outlet is not activated");return this._activatedRoute},enumerable:!0,configurable:!0}),t.prototype.detach=function(){if(!this.activated)throw new Error("Outlet is not activated");this.location.detach();var t=this.activated;return this.activated=null,this._activatedRoute=null,t},t.prototype.attach=function(t,e){this.activated=t,this._activatedRoute=e,this.location.insert(t.hostView)},t.prototype.deactivate=function(){if(this.activated){var t=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(t)}},t.prototype.activate=function(t,e,r,i,o){ +if(this.isActivated)throw new Error("Cannot activate an already activated outlet");this.outletMap=o,this._activatedRoute=t;var s=t._futureSnapshot,a=s._routeConfig.component,u=e.resolveComponentFactory(a),c=n.ReflectiveInjector.fromResolvedProviders(i,r);this.activated=this.location.createComponent(u,this.location.length,c,[]),this.activated.changeDetectorRef.detectChanges(),this.activateEvents.emit(this.activated.instance)},t.decorators=[{type:n.Directive,args:[{selector:"router-outlet"}]}],t.ctorParameters=function(){return[{type:rn},{type:n.ViewContainerRef},{type:n.ComponentFactoryResolver},{type:void 0,decorators:[{type:n.Attribute,args:["name"]}]}]},t.propDecorators={activateEvents:[{type:n.Output,args:["activate"]}],deactivateEvents:[{type:n.Output,args:["deactivate"]}]},t}(),En=function(){function t(){}return t.prototype.shouldDetach=function(){},t.prototype.store=function(){},t.prototype.shouldAttach=function(){},t.prototype.retrieve=function(){},t.prototype.shouldReuseRoute=function(){},t}(),Sn=b.__platform_browser_private__.getDOM,Cn=function(){function t(){}return t.prototype.preload=function(){},t}(),xn=function(){function t(){}return t.prototype.preload=function(t,e){return d._catch.call(e(),function(){return s.of(null)})},t}(),Tn=function(){function t(){}return t.prototype.preload=function(){return s.of(null)},t}(),Pn=function(){function t(t,e,n,r,i){this.router=t,this.injector=r,this.preloadingStrategy=i,this.loader=new ke(e,n)}return t.prototype.setUpPreloading=function(){var t=this,e=w.filter.call(this.router.events,function(t){return t instanceof un});this.subscription=a.concatMap.call(e,function(){return t.preload()}).subscribe(function(){})},t.prototype.preload=function(){return this.processRoutes(this.injector,this.router.config)},t.prototype.ngOnDestroy=function(){this.subscription.unsubscribe()},t.prototype.processRoutes=function(t,e){for(var n=[],r=0,i=e;r<i.length;r++){var s=i[r];if(s.loadChildren&&!s.canLoad&&s._loadedConfig){var a=s._loadedConfig;n.push(this.processRoutes(a.injector,a.routes))}else s.loadChildren&&!s.canLoad?n.push(this.preloadConfig(t,s)):s.children&&n.push(this.processRoutes(t,s.children))}return _.mergeAll.call(o.from(n))},t.prototype.preloadConfig=function(t,e){var n=this;return this.preloadingStrategy.preload(e,function(){var r=n.loader.load(t,e.loadChildren);return l.mergeMap.call(r,function(t){var r=e;return r._loadedConfig=t,n.processRoutes(t.injector,t.routes)})})},t.decorators=[{type:n.Injectable}],t.ctorParameters=function(){return[{type:fn},{type:n.NgModuleFactoryLoader},{type:n.Compiler},{type:n.Injector},{type:Cn}]},t}(),On=[wn,gn,_n,bn],An=new n.OpaqueToken("ROUTER_CONFIGURATION"),Mn=new n.OpaqueToken("ROUTER_FORROOT_GUARD"),Rn=[e.Location,{provide:je,useClass:Le},{provide:fn,useFactory:we,deps:[n.ApplicationRef,je,rn,e.Location,n.Injector,n.NgModuleFactoryLoader,n.Compiler,Me,An,[on,new n.Optional],[En,new n.Optional]]},rn,{provide:Ye,useFactory:Ee,deps:[fn]},{provide:n.NgModuleFactoryLoader,useClass:n.SystemJsNgModuleLoader},Pn,Tn,xn,{provide:An,useValue:{enableTracing:!1}}],kn=function(){function t(){}return t.forRoot=function(r,i){return{ngModule:t,providers:[Rn,be(r),{provide:Mn,useFactory:_e,deps:[[fn,new n.Optional,new n.SkipSelf]]},{provide:An,useValue:i?i:{}},{provide:e.LocationStrategy,useFactory:ge,deps:[e.PlatformLocation,[new n.Inject(e.APP_BASE_HREF),new n.Optional],An]},{provide:Cn,useExisting:i&&i.preloadingStrategy?i.preloadingStrategy:Tn},{provide:n.NgProbeToken,multi:!0,useFactory:ve},Ce()]}},t.forChild=function(e){return{ngModule:t,providers:[be(e)]}},t.decorators=[{type:n.NgModule,args:[{declarations:On,exports:On}]}],t.ctorParameters=function(){return[{type:void 0,decorators:[{type:n.Optional},{type:n.Inject,args:[Mn]}]}]},t}(),Nn=new n.OpaqueToken("Router Initializer"),In=new n.Version("3.4.9"),Dn={ROUTER_PROVIDERS:Rn,ROUTES:Me,flatten:x};t.RouterLink=gn,t.RouterLinkWithHref=_n,t.RouterLinkActive=bn,t.RouterOutlet=wn,t.RouteReuseStrategy=En,t.NavigationCancel=cn,t.NavigationEnd=un,t.NavigationError=pn,t.NavigationStart=an,t.Router=fn,t.RoutesRecognized=ln,t.ROUTER_CONFIGURATION=An,t.ROUTER_INITIALIZER=Nn,t.RouterModule=kn,t.provideRoutes=be,t.RouterOutletMap=rn,t.NoPreloading=Tn,t.PreloadAllModules=xn,t.PreloadingStrategy=Cn,t.RouterPreloader=Pn,t.ActivatedRoute=Ye,t.ActivatedRouteSnapshot=$e,t.RouterState=Qe,t.RouterStateSnapshot=Ze,t.PRIMARY_OUTLET=Oe,t.UrlHandlingStrategy=on,t.DefaultUrlSerializer=Le,t.UrlSegment=De,t.UrlSegmentGroup=Ie,t.UrlSerializer=je,t.UrlTree=Ne,t.VERSION=In,t.__router_private__=Dn})},{"@angular/common":5,"@angular/core":7,"@angular/platform-browser":10,"rxjs/BehaviorSubject":12,"rxjs/Observable":15,"rxjs/Subject":18,"rxjs/observable/from":30,"rxjs/observable/fromPromise":31,"rxjs/observable/of":32,"rxjs/operator/catch":33,"rxjs/operator/concatAll":34,"rxjs/operator/concatMap":35,"rxjs/operator/every":36,"rxjs/operator/filter":37,"rxjs/operator/first":38,"rxjs/operator/last":39,"rxjs/operator/map":40,"rxjs/operator/mergeAll":41,"rxjs/operator/mergeMap":42,"rxjs/operator/reduce":44,"rxjs/util/EmptyError":48}],12:[function(t,e,n){"use strict";var r=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},i=t("./Subject"),o=t("./util/ObjectUnsubscribedError"),s=function(t){function e(e){t.call(this),this._value=e}return r(e,t),Object.defineProperty(e.prototype,"value",{get:function(){return this.getValue()},enumerable:!0,configurable:!0}),e.prototype._subscribe=function(e){var n=t.prototype._subscribe.call(this,e);return n&&!n.closed&&e.next(this._value),n},e.prototype.getValue=function(){if(this.hasError)throw this.thrownError;if(this.closed)throw new o.ObjectUnsubscribedError;return this._value},e.prototype.next=function(e){t.prototype.next.call(this,this._value=e)},e}(i.Subject);n.BehaviorSubject=s},{"./Subject":18,"./util/ObjectUnsubscribedError":49}],13:[function(t,e,n){"use strict";var r=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},i=t("./Subscriber"),o=function(t){function e(e,n,r){t.call(this),this.parent=e,this.outerValue=n,this.outerIndex=r,this.index=0}return r(e,t),e.prototype._next=function(t){this.parent.notifyNext(this.outerValue,t,this.outerIndex,this.index++,this)},e.prototype._error=function(t){this.parent.notifyError(t,this),this.unsubscribe()},e.prototype._complete=function(){this.parent.notifyComplete(this),this.unsubscribe()},e}(i.Subscriber);n.InnerSubscriber=o},{"./Subscriber":20}],14:[function(t,e,n){"use strict";var r=t("./Observable"),i=function(){function t(t,e,n){this.kind=t,this.value=e,this.error=n,this.hasValue="N"===t}return t.prototype.observe=function(t){switch(this.kind){case"N":return t.next&&t.next(this.value);case"E":return t.error&&t.error(this.error);case"C":return t.complete&&t.complete()}},t.prototype["do"]=function(t,e,n){var r=this.kind;switch(r){case"N":return t&&t(this.value);case"E":return e&&e(this.error);case"C":return n&&n()}},t.prototype.accept=function(t,e,n){return t&&"function"==typeof t.next?this.observe(t):this["do"](t,e,n)},t.prototype.toObservable=function(){var t=this.kind;switch(t){case"N":return r.Observable.of(this.value);case"E":return r.Observable["throw"](this.error);case"C":return r.Observable.empty()}throw new Error("unexpected notification kind value")},t.createNext=function(e){return"undefined"!=typeof e?new t("N",e):this.undefinedValueNotification},t.createError=function(e){return new t("E",void 0,e)},t.createComplete=function(){return this.completeNotification},t.completeNotification=new t("C"),t.undefinedValueNotification=new t("N",void 0),t}();n.Notification=i},{"./Observable":15}],15:[function(t,e,n){"use strict";var r=t("./util/root"),i=t("./util/toSubscriber"),o=t("./symbol/observable"),s=function(){function t(t){this._isScalar=!1,t&&(this._subscribe=t)}return t.prototype.lift=function(e){var n=new t;return n.source=this,n.operator=e,n},t.prototype.subscribe=function(t,e,n){var r=this.operator,o=i.toSubscriber(t,e,n);if(r?r.call(o,this.source):o.add(this._trySubscribe(o)),o.syncErrorThrowable&&(o.syncErrorThrowable=!1,o.syncErrorThrown))throw o.syncErrorValue;return o},t.prototype._trySubscribe=function(t){try{return this._subscribe(t)}catch(e){t.syncErrorThrown=!0,t.syncErrorValue=e,t.error(e)}},t.prototype.forEach=function(t,e){var n=this;if(e||(r.root.Rx&&r.root.Rx.config&&r.root.Rx.config.Promise?e=r.root.Rx.config.Promise:r.root.Promise&&(e=r.root.Promise)),!e)throw new Error("no Promise impl found");return new e(function(e,r){var i=n.subscribe(function(e){if(i)try{t(e)}catch(n){r(n),i.unsubscribe()}else t(e)},r,e)})},t.prototype._subscribe=function(t){return this.source.subscribe(t)},t.prototype[o.$$observable]=function(){return this},t.create=function(e){return new t(e)},t}();n.Observable=s},{"./symbol/observable":46,"./util/root":58,"./util/toSubscriber":60}],16:[function(t,e,n){"use strict";n.empty={closed:!0,next:function(){},error:function(t){throw t},complete:function(){}}},{}],17:[function(t,e,n){"use strict";var r=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},i=t("./Subscriber"),o=function(t){function e(){t.apply(this,arguments)}return r(e,t),e.prototype.notifyNext=function(t,e){this.destination.next(e)},e.prototype.notifyError=function(t){this.destination.error(t)},e.prototype.notifyComplete=function(){this.destination.complete()},e}(i.Subscriber);n.OuterSubscriber=o},{"./Subscriber":20}],18:[function(t,e,n){"use strict";var r=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},i=t("./Observable"),o=t("./Subscriber"),s=t("./Subscription"),a=t("./util/ObjectUnsubscribedError"),u=t("./SubjectSubscription"),c=t("./symbol/rxSubscriber"),p=function(t){function e(e){t.call(this,e),this.destination=e}return r(e,t),e}(o.Subscriber);n.SubjectSubscriber=p;var l=function(t){function e(){t.call(this),this.observers=[],this.closed=!1,this.isStopped=!1,this.hasError=!1,this.thrownError=null}return r(e,t),e.prototype[c.$$rxSubscriber]=function(){return new p(this)},e.prototype.lift=function(t){var e=new h(this,this);return e.operator=t,e},e.prototype.next=function(t){if(this.closed)throw new a.ObjectUnsubscribedError;if(!this.isStopped)for(var e=this.observers,n=e.length,r=e.slice(),i=0;n>i;i++)r[i].next(t)},e.prototype.error=function(t){if(this.closed)throw new a.ObjectUnsubscribedError;this.hasError=!0,this.thrownError=t,this.isStopped=!0;for(var e=this.observers,n=e.length,r=e.slice(),i=0;n>i;i++)r[i].error(t);this.observers.length=0},e.prototype.complete=function(){if(this.closed)throw new a.ObjectUnsubscribedError;this.isStopped=!0;for(var t=this.observers,e=t.length,n=t.slice(),r=0;e>r;r++)n[r].complete();this.observers.length=0},e.prototype.unsubscribe=function(){this.isStopped=!0,this.closed=!0,this.observers=null},e.prototype._trySubscribe=function(e){if(this.closed)throw new a.ObjectUnsubscribedError;return t.prototype._trySubscribe.call(this,e)},e.prototype._subscribe=function(t){if(this.closed)throw new a.ObjectUnsubscribedError;return this.hasError?(t.error(this.thrownError),s.Subscription.EMPTY):this.isStopped?(t.complete(),s.Subscription.EMPTY):(this.observers.push(t),new u.SubjectSubscription(this,t))},e.prototype.asObservable=function(){var t=new i.Observable;return t.source=this,t},e.create=function(t,e){return new h(t,e)},e}(i.Observable);n.Subject=l;var h=function(t){function e(e,n){t.call(this),this.destination=e,this.source=n}return r(e,t),e.prototype.next=function(t){var e=this.destination;e&&e.next&&e.next(t)},e.prototype.error=function(t){var e=this.destination;e&&e.error&&this.destination.error(t)},e.prototype.complete=function(){var t=this.destination;t&&t.complete&&this.destination.complete()},e.prototype._subscribe=function(t){var e=this.source;return e?this.source.subscribe(t):s.Subscription.EMPTY},e}(l);n.AnonymousSubject=h},{"./Observable":15,"./SubjectSubscription":19,"./Subscriber":20,"./Subscription":21,"./symbol/rxSubscriber":47,"./util/ObjectUnsubscribedError":49}],19:[function(t,e,n){"use strict";var r=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},i=t("./Subscription"),o=function(t){function e(e,n){t.call(this),this.subject=e,this.subscriber=n,this.closed=!1}return r(e,t),e.prototype.unsubscribe=function(){if(!this.closed){this.closed=!0;var t=this.subject,e=t.observers;if(this.subject=null,e&&0!==e.length&&!t.isStopped&&!t.closed){var n=e.indexOf(this.subscriber);-1!==n&&e.splice(n,1)}}},e}(i.Subscription);n.SubjectSubscription=o},{"./Subscription":21}],20:[function(t,e,n){"use strict";var r=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},i=t("./util/isFunction"),o=t("./Subscription"),s=t("./Observer"),a=t("./symbol/rxSubscriber"),u=function(t){function e(n,r,i){switch(t.call(this),this.syncErrorValue=null,this.syncErrorThrown=!1,this.syncErrorThrowable=!1,this.isStopped=!1,arguments.length){case 0:this.destination=s.empty;break;case 1:if(!n){this.destination=s.empty;break}if("object"==typeof n){n instanceof e?(this.destination=n,this.destination.add(this)):(this.syncErrorThrowable=!0,this.destination=new c(this,n));break}default:this.syncErrorThrowable=!0,this.destination=new c(this,n,r,i)}}return r(e,t),e.prototype[a.$$rxSubscriber]=function(){return this},e.create=function(t,n,r){var i=new e(t,n,r);return i.syncErrorThrowable=!1,i},e.prototype.next=function(t){this.isStopped||this._next(t)},e.prototype.error=function(t){this.isStopped||(this.isStopped=!0,this._error(t))},e.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},e.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,t.prototype.unsubscribe.call(this))},e.prototype._next=function(t){this.destination.next(t)},e.prototype._error=function(t){this.destination.error(t),this.unsubscribe()},e.prototype._complete=function(){this.destination.complete(),this.unsubscribe()},e.prototype._unsubscribeAndRecycle=function(){var t=this,e=t._parent,n=t._parents;return this._parent=null,this._parents=null,this.unsubscribe(),this.closed=!1,this.isStopped=!1,this._parent=e,this._parents=n,this},e}(o.Subscription);n.Subscriber=u;var c=function(t){function e(e,n,r,o){t.call(this),this._parentSubscriber=e;var s,a=this;i.isFunction(n)?s=n:n&&(a=n,s=n.next,r=n.error,o=n.complete,i.isFunction(a.unsubscribe)&&this.add(a.unsubscribe.bind(a)),a.unsubscribe=this.unsubscribe.bind(this)),this._context=a,this._next=s,this._error=r,this._complete=o}return r(e,t),e.prototype.next=function(t){if(!this.isStopped&&this._next){var e=this._parentSubscriber;e.syncErrorThrowable?this.__tryOrSetError(e,this._next,t)&&this.unsubscribe():this.__tryOrUnsub(this._next,t)}},e.prototype.error=function(t){if(!this.isStopped){var e=this._parentSubscriber;if(this._error)e.syncErrorThrowable?(this.__tryOrSetError(e,this._error,t),this.unsubscribe()):(this.__tryOrUnsub(this._error,t),this.unsubscribe());else{if(!e.syncErrorThrowable)throw this.unsubscribe(),t;e.syncErrorValue=t,e.syncErrorThrown=!0,this.unsubscribe()}}},e.prototype.complete=function(){if(!this.isStopped){var t=this._parentSubscriber;this._complete?t.syncErrorThrowable?(this.__tryOrSetError(t,this._complete),this.unsubscribe()):(this.__tryOrUnsub(this._complete),this.unsubscribe()):this.unsubscribe()}},e.prototype.__tryOrUnsub=function(t,e){try{t.call(this._context,e)}catch(n){throw this.unsubscribe(),n}},e.prototype.__tryOrSetError=function(t,e,n){try{e.call(this._context,n)}catch(r){return t.syncErrorValue=r,t.syncErrorThrown=!0,!0}return!1},e.prototype._unsubscribe=function(){var t=this._parentSubscriber;this._context=null,this._parentSubscriber=null,t.unsubscribe()},e}(u)},{"./Observer":16,"./Subscription":21,"./symbol/rxSubscriber":47,"./util/isFunction":54}],21:[function(t,e,n){"use strict";function r(t){return t.reduce(function(t,e){return t.concat(e instanceof c.UnsubscriptionError?e.errors:e)},[])}var i=t("./util/isArray"),o=t("./util/isObject"),s=t("./util/isFunction"),a=t("./util/tryCatch"),u=t("./util/errorObject"),c=t("./util/UnsubscriptionError"),p=function(){function t(t){this.closed=!1,this._parent=null,this._parents=null,this._subscriptions=null,t&&(this._unsubscribe=t)}return t.prototype.unsubscribe=function(){var t,e=!1;if(!this.closed){var n=this,p=n._parent,l=n._parents,h=n._unsubscribe,f=n._subscriptions;this.closed=!0,this._parent=null,this._parents=null,this._subscriptions=null;for(var d=-1,y=l?l.length:0;p;)p.remove(this),p=++d<y&&l[d]||null;if(s.isFunction(h)){var m=a.tryCatch(h).call(this);m===u.errorObject&&(e=!0,t=t||(u.errorObject.e instanceof c.UnsubscriptionError?r(u.errorObject.e.errors):[u.errorObject.e]))}if(i.isArray(f))for(d=-1,y=f.length;++d<y;){var v=f[d];if(o.isObject(v)){var m=a.tryCatch(v.unsubscribe).call(v);if(m===u.errorObject){e=!0,t=t||[];var g=u.errorObject.e;g instanceof c.UnsubscriptionError?t=t.concat(r(g.errors)):t.push(g)}}}if(e)throw new c.UnsubscriptionError(t)}},t.prototype.add=function(e){if(!e||e===t.EMPTY)return t.EMPTY;if(e===this)return this;var n=e;switch(typeof e){case"function":n=new t(e);case"object":if(n.closed||"function"!=typeof n.unsubscribe)return n;if(this.closed)return n.unsubscribe(),n;if("function"!=typeof n._addParent){var r=n;n=new t,n._subscriptions=[r]}break;default:throw new Error("unrecognized teardown "+e+" added to Subscription.")}var i=this._subscriptions||(this._subscriptions=[]);return i.push(n),n._addParent(this),n},t.prototype.remove=function(t){var e=this._subscriptions;if(e){var n=e.indexOf(t);-1!==n&&e.splice(n,1)}},t.prototype._addParent=function(t){var e=this,n=e._parent,r=e._parents;n&&n!==t?r?-1===r.indexOf(t)&&r.push(t):this._parents=[t]:this._parent=t},t.EMPTY=function(t){return t.closed=!0,t}(new t),t}();n.Subscription=p},{"./util/UnsubscriptionError":50,"./util/errorObject":51,"./util/isArray":52,"./util/isFunction":54,"./util/isObject":55,"./util/tryCatch":61}],22:[function(t){"use strict";var e=t("../../Observable"),n=t("../../operator/map");e.Observable.prototype.map=n.map},{"../../Observable":15,"../../operator/map":40}],23:[function(t,e,n){"use strict";var r=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},i=t("../Observable"),o=t("./ScalarObservable"),s=t("./EmptyObservable"),a=function(t){function e(e,n){t.call(this),this.arrayLike=e,this.scheduler=n,n||1!==e.length||(this._isScalar=!0,this.value=e[0])}return r(e,t),e.create=function(t,n){var r=t.length;return 0===r?new s.EmptyObservable:1===r?new o.ScalarObservable(t[0],n):new e(t,n)},e.dispatch=function(t){var e=t.arrayLike,n=t.index,r=t.length,i=t.subscriber;if(!i.closed){if(n>=r)return void i.complete();i.next(e[n]),t.index=n+1,this.schedule(t)}},e.prototype._subscribe=function(t){var n=0,r=this,i=r.arrayLike,o=r.scheduler,s=i.length;if(o)return o.schedule(e.dispatch,0,{arrayLike:i,index:n,length:s,subscriber:t});for(var a=0;s>a&&!t.closed;a++)t.next(i[a]);t.complete()},e}(i.Observable);n.ArrayLikeObservable=a},{"../Observable":15,"./EmptyObservable":25,"./ScalarObservable":29}],24:[function(t,e,n){"use strict";var r=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},i=t("../Observable"),o=t("./ScalarObservable"),s=t("./EmptyObservable"),a=t("../util/isScheduler"),u=function(t){function e(e,n){t.call(this),this.array=e,this.scheduler=n,n||1!==e.length||(this._isScalar=!0,this.value=e[0])}return r(e,t),e.create=function(t,n){return new e(t,n)},e.of=function(){for(var t=[],n=0;n<arguments.length;n++)t[n-0]=arguments[n];var r=t[t.length-1];a.isScheduler(r)?t.pop():r=null;var i=t.length;return i>1?new e(t,r):1===i?new o.ScalarObservable(t[0],r):new s.EmptyObservable(r)},e.dispatch=function(t){var e=t.array,n=t.index,r=t.count,i=t.subscriber;return n>=r?void i.complete():(i.next(e[n]),void(i.closed||(t.index=n+1,this.schedule(t))))},e.prototype._subscribe=function(t){var n=0,r=this.array,i=r.length,o=this.scheduler;if(o)return o.schedule(e.dispatch,0,{array:r,index:n,count:i,subscriber:t});for(var s=0;i>s&&!t.closed;s++)t.next(r[s]);t.complete()},e}(i.Observable);n.ArrayObservable=u},{"../Observable":15,"../util/isScheduler":57,"./EmptyObservable":25,"./ScalarObservable":29}],25:[function(t,e,n){"use strict";var r=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},i=t("../Observable"),o=function(t){function e(e){t.call(this),this.scheduler=e}return r(e,t),e.create=function(t){return new e(t)},e.dispatch=function(t){var e=t.subscriber;e.complete()},e.prototype._subscribe=function(t){var n=this.scheduler;return n?n.schedule(e.dispatch,0,{subscriber:t}):void t.complete()},e}(i.Observable);n.EmptyObservable=o},{"../Observable":15}],26:[function(t,e,n){"use strict";var r=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},i=t("../util/isArray"),o=t("../util/isArrayLike"),s=t("../util/isPromise"),a=t("./PromiseObservable"),u=t("./IteratorObservable"),c=t("./ArrayObservable"),p=t("./ArrayLikeObservable"),l=t("../symbol/iterator"),h=t("../Observable"),f=t("../operator/observeOn"),d=t("../symbol/observable"),y=function(t){function e(e,n){t.call(this,null),this.ish=e,this.scheduler=n}return r(e,t),e.create=function(t,n){if(null!=t){if("function"==typeof t[d.$$observable])return t instanceof h.Observable&&!n?t:new e(t,n);if(i.isArray(t))return new c.ArrayObservable(t,n);if(s.isPromise(t))return new a.PromiseObservable(t,n);if("function"==typeof t[l.$$iterator]||"string"==typeof t)return new u.IteratorObservable(t,n);if(o.isArrayLike(t))return new p.ArrayLikeObservable(t,n)}throw new TypeError((null!==t&&typeof t||t)+" is not observable")},e.prototype._subscribe=function(t){var e=this.ish,n=this.scheduler;return e[d.$$observable]().subscribe(null==n?t:new f.ObserveOnSubscriber(t,n,0))},e}(h.Observable);n.FromObservable=y},{"../Observable":15,"../operator/observeOn":43,"../symbol/iterator":45,"../symbol/observable":46,"../util/isArray":52,"../util/isArrayLike":53,"../util/isPromise":56,"./ArrayLikeObservable":23,"./ArrayObservable":24,"./IteratorObservable":27,"./PromiseObservable":28}],27:[function(t,e,n){"use strict";function r(t){var e=t[p.$$iterator];if(!e&&"string"==typeof t)return new h(t);if(!e&&void 0!==t.length)return new f(t);if(!e)throw new TypeError("object is not iterable");return t[p.$$iterator]()}function i(t){var e=+t.length;return isNaN(e)?0:0!==e&&o(e)?(e=s(e)*Math.floor(Math.abs(e)),0>=e?0:e>d?d:e):e}function o(t){return"number"==typeof t&&u.root.isFinite(t)}function s(t){var e=+t;return 0===e?e:isNaN(e)?e:0>e?-1:1}var a=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},u=t("../util/root"),c=t("../Observable"),p=t("../symbol/iterator"),l=function(t){function e(e,n){if(t.call(this),this.scheduler=n,null==e)throw new Error("iterator cannot be null.");this.iterator=r(e)}return a(e,t),e.create=function(t,n){return new e(t,n)},e.dispatch=function(t){var e=t.index,n=t.hasError,r=t.iterator,i=t.subscriber;if(n)return void i.error(t.error);var o=r.next();return o.done?void i.complete():(i.next(o.value),t.index=e+1,i.closed?void("function"==typeof r["return"]&&r["return"]()):void this.schedule(t))},e.prototype._subscribe=function(t){var n=0,r=this,i=r.iterator,o=r.scheduler;if(o)return o.schedule(e.dispatch,0,{index:n,iterator:i,subscriber:t});for(;;){var s=i.next();if(s.done){t.complete();break}if(t.next(s.value),t.closed){"function"==typeof i["return"]&&i["return"]();break}}},e}(c.Observable);n.IteratorObservable=l;var h=function(){function t(t,e,n){void 0===e&&(e=0),void 0===n&&(n=t.length),this.str=t,this.idx=e,this.len=n}return t.prototype[p.$$iterator]=function(){return this},t.prototype.next=function(){return this.idx<this.len?{done:!1,value:this.str.charAt(this.idx++)}:{done:!0,value:void 0}},t}(),f=function(){function t(t,e,n){void 0===e&&(e=0),void 0===n&&(n=i(t)),this.arr=t,this.idx=e,this.len=n}return t.prototype[p.$$iterator]=function(){return this},t.prototype.next=function(){return this.idx<this.len?{done:!1,value:this.arr[this.idx++]}:{done:!0,value:void 0}},t}(),d=Math.pow(2,53)-1},{"../Observable":15,"../symbol/iterator":45,"../util/root":58}],28:[function(t,e,n){"use strict";function r(t){var e=t.value,n=t.subscriber;n.closed||(n.next(e),n.complete())}function i(t){var e=t.err,n=t.subscriber;n.closed||n.error(e)}var o=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},s=t("../util/root"),a=t("../Observable"),u=function(t){function e(e,n){t.call(this),this.promise=e,this.scheduler=n}return o(e,t),e.create=function(t,n){return new e(t,n)},e.prototype._subscribe=function(t){var e=this,n=this.promise,o=this.scheduler;if(null==o)this._isScalar?t.closed||(t.next(this.value),t.complete()):n.then(function(n){e.value=n,e._isScalar=!0,t.closed||(t.next(n),t.complete())},function(e){t.closed||t.error(e)}).then(null,function(t){s.root.setTimeout(function(){throw t})});else if(this._isScalar){if(!t.closed)return o.schedule(r,0,{value:this.value,subscriber:t})}else n.then(function(n){e.value=n,e._isScalar=!0,t.closed||t.add(o.schedule(r,0,{value:n,subscriber:t}))},function(e){t.closed||t.add(o.schedule(i,0,{err:e,subscriber:t}))}).then(null,function(t){s.root.setTimeout(function(){throw t})})},e}(a.Observable);n.PromiseObservable=u},{"../Observable":15,"../util/root":58}],29:[function(t,e,n){"use strict";var r=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},i=t("../Observable"),o=function(t){function e(e,n){t.call(this),this.value=e,this.scheduler=n,this._isScalar=!0,n&&(this._isScalar=!1)}return r(e,t),e.create=function(t,n){return new e(t,n)},e.dispatch=function(t){var e=t.done,n=t.value,r=t.subscriber;return e?void r.complete():(r.next(n),void(r.closed||(t.done=!0,this.schedule(t))))},e.prototype._subscribe=function(t){var n=this.value,r=this.scheduler;return r?r.schedule(e.dispatch,0,{done:!1,value:n,subscriber:t}):(t.next(n),void(t.closed||t.complete()))},e}(i.Observable);n.ScalarObservable=o},{"../Observable":15}],30:[function(t,e,n){"use strict";var r=t("./FromObservable");n.from=r.FromObservable.create},{"./FromObservable":26}],31:[function(t,e,n){"use strict";var r=t("./PromiseObservable");n.fromPromise=r.PromiseObservable.create},{"./PromiseObservable":28}],32:[function(t,e,n){"use strict";var r=t("./ArrayObservable");n.of=r.ArrayObservable.of},{"./ArrayObservable":24}],33:[function(t,e,n){"use strict";function r(t){var e=new a(t),n=this.lift(e);return e.caught=n}var i=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},o=t("../OuterSubscriber"),s=t("../util/subscribeToResult");n._catch=r;var a=function(){function t(t){this.selector=t}return t.prototype.call=function(t,e){return e.subscribe(new u(t,this.selector,this.caught))},t}(),u=function(t){function e(e,n,r){t.call(this,e),this.selector=n,this.caught=r}return i(e,t),e.prototype.error=function(e){if(!this.isStopped){var n=void 0;try{n=this.selector(e,this.caught)}catch(r){return void t.prototype.error.call(this,r)}this._unsubscribeAndRecycle(),this.add(s.subscribeToResult(this,n))}},e}(o.OuterSubscriber)},{"../OuterSubscriber":17,"../util/subscribeToResult":59}],34:[function(t,e,n){"use strict";function r(){return this.lift(new i.MergeAllOperator(1))}var i=t("./mergeAll");n.concatAll=r},{"./mergeAll":41}],35:[function(t,e,n){"use strict";function r(t,e){return this.lift(new i.MergeMapOperator(t,e,1))}var i=t("./mergeMap");n.concatMap=r},{"./mergeMap":42}],36:[function(t,e,n){"use strict";function r(t,e){return this.lift(new s(t,e,this))}var i=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},o=t("../Subscriber");n.every=r;var s=function(){function t(t,e,n){this.predicate=t,this.thisArg=e,this.source=n}return t.prototype.call=function(t,e){return e.subscribe(new a(t,this.predicate,this.thisArg,this.source))},t}(),a=function(t){function e(e,n,r,i){t.call(this,e),this.predicate=n,this.thisArg=r,this.source=i,this.index=0,this.thisArg=r||this}return i(e,t),e.prototype.notifyComplete=function(t){this.destination.next(t),this.destination.complete()},e.prototype._next=function(t){var e=!1;try{e=this.predicate.call(this.thisArg,t,this.index++,this.source)}catch(n){return void this.destination.error(n)}e||this.notifyComplete(!1)},e.prototype._complete=function(){this.notifyComplete(!0)},e}(o.Subscriber)},{"../Subscriber":20}],37:[function(t,e,n){"use strict";function r(t,e){return this.lift(new s(t,e))}var i=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},o=t("../Subscriber");n.filter=r;var s=function(){function t(t,e){this.predicate=t,this.thisArg=e}return t.prototype.call=function(t,e){return e.subscribe(new a(t,this.predicate,this.thisArg))},t}(),a=function(t){function e(e,n,r){t.call(this,e),this.predicate=n,this.thisArg=r,this.count=0,this.predicate=n}return i(e,t),e.prototype._next=function(t){var e;try{e=this.predicate.call(this.thisArg,t,this.count++)}catch(n){return void this.destination.error(n)}e&&this.destination.next(t)},e}(o.Subscriber)},{"../Subscriber":20}],38:[function(t,e,n){"use strict";function r(t,e,n){return this.lift(new a(t,e,n,this))}var i=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},o=t("../Subscriber"),s=t("../util/EmptyError");n.first=r;var a=function(){function t(t,e,n,r){this.predicate=t,this.resultSelector=e,this.defaultValue=n,this.source=r}return t.prototype.call=function(t,e){return e.subscribe(new u(t,this.predicate,this.resultSelector,this.defaultValue,this.source))},t}(),u=function(t){function e(e,n,r,i,o){t.call(this,e),this.predicate=n,this.resultSelector=r,this.defaultValue=i,this.source=o,this.index=0,this.hasCompleted=!1,this._emitted=!1}return i(e,t),e.prototype._next=function(t){var e=this.index++;this.predicate?this._tryPredicate(t,e):this._emit(t,e)},e.prototype._tryPredicate=function(t,e){var n;try{n=this.predicate(t,e,this.source)}catch(r){return void this.destination.error(r)}n&&this._emit(t,e)},e.prototype._emit=function(t,e){return this.resultSelector?void this._tryResultSelector(t,e):void this._emitFinal(t)},e.prototype._tryResultSelector=function(t,e){var n;try{n=this.resultSelector(t,e)}catch(r){ +return void this.destination.error(r)}this._emitFinal(n)},e.prototype._emitFinal=function(t){var e=this.destination;this._emitted||(this._emitted=!0,e.next(t),e.complete(),this.hasCompleted=!0)},e.prototype._complete=function(){var t=this.destination;this.hasCompleted||"undefined"==typeof this.defaultValue?this.hasCompleted||t.error(new s.EmptyError):(t.next(this.defaultValue),t.complete())},e}(o.Subscriber)},{"../Subscriber":20,"../util/EmptyError":48}],39:[function(t,e,n){"use strict";function r(t,e,n){return this.lift(new a(t,e,n,this))}var i=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},o=t("../Subscriber"),s=t("../util/EmptyError");n.last=r;var a=function(){function t(t,e,n,r){this.predicate=t,this.resultSelector=e,this.defaultValue=n,this.source=r}return t.prototype.call=function(t,e){return e.subscribe(new u(t,this.predicate,this.resultSelector,this.defaultValue,this.source))},t}(),u=function(t){function e(e,n,r,i,o){t.call(this,e),this.predicate=n,this.resultSelector=r,this.defaultValue=i,this.source=o,this.hasValue=!1,this.index=0,"undefined"!=typeof i&&(this.lastValue=i,this.hasValue=!0)}return i(e,t),e.prototype._next=function(t){var e=this.index++;if(this.predicate)this._tryPredicate(t,e);else{if(this.resultSelector)return void this._tryResultSelector(t,e);this.lastValue=t,this.hasValue=!0}},e.prototype._tryPredicate=function(t,e){var n;try{n=this.predicate(t,e,this.source)}catch(r){return void this.destination.error(r)}if(n){if(this.resultSelector)return void this._tryResultSelector(t,e);this.lastValue=t,this.hasValue=!0}},e.prototype._tryResultSelector=function(t,e){var n;try{n=this.resultSelector(t,e)}catch(r){return void this.destination.error(r)}this.lastValue=n,this.hasValue=!0},e.prototype._complete=function(){var t=this.destination;this.hasValue?(t.next(this.lastValue),t.complete()):t.error(new s.EmptyError)},e}(o.Subscriber)},{"../Subscriber":20,"../util/EmptyError":48}],40:[function(t,e,n){"use strict";function r(t,e){if("function"!=typeof t)throw new TypeError("argument is not a function. Are you looking for `mapTo()`?");return this.lift(new s(t,e))}var i=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},o=t("../Subscriber");n.map=r;var s=function(){function t(t,e){this.project=t,this.thisArg=e}return t.prototype.call=function(t,e){return e.subscribe(new a(t,this.project,this.thisArg))},t}();n.MapOperator=s;var a=function(t){function e(e,n,r){t.call(this,e),this.project=n,this.count=0,this.thisArg=r||this}return i(e,t),e.prototype._next=function(t){var e;try{e=this.project.call(this.thisArg,t,this.count++)}catch(n){return void this.destination.error(n)}this.destination.next(e)},e}(o.Subscriber)},{"../Subscriber":20}],41:[function(t,e,n){"use strict";function r(t){return void 0===t&&(t=Number.POSITIVE_INFINITY),this.lift(new a(t))}var i=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},o=t("../OuterSubscriber"),s=t("../util/subscribeToResult");n.mergeAll=r;var a=function(){function t(t){this.concurrent=t}return t.prototype.call=function(t,e){return e.subscribe(new u(t,this.concurrent))},t}();n.MergeAllOperator=a;var u=function(t){function e(e,n){t.call(this,e),this.concurrent=n,this.hasCompleted=!1,this.buffer=[],this.active=0}return i(e,t),e.prototype._next=function(t){this.active<this.concurrent?(this.active++,this.add(s.subscribeToResult(this,t))):this.buffer.push(t)},e.prototype._complete=function(){this.hasCompleted=!0,0===this.active&&0===this.buffer.length&&this.destination.complete()},e.prototype.notifyComplete=function(t){var e=this.buffer;this.remove(t),this.active--,e.length>0?this._next(e.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()},e}(o.OuterSubscriber);n.MergeAllSubscriber=u},{"../OuterSubscriber":17,"../util/subscribeToResult":59}],42:[function(t,e,n){"use strict";function r(t,e,n){return void 0===n&&(n=Number.POSITIVE_INFINITY),"number"==typeof e&&(n=e,e=null),this.lift(new a(t,e,n))}var i=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},o=t("../util/subscribeToResult"),s=t("../OuterSubscriber");n.mergeMap=r;var a=function(){function t(t,e,n){void 0===n&&(n=Number.POSITIVE_INFINITY),this.project=t,this.resultSelector=e,this.concurrent=n}return t.prototype.call=function(t,e){return e.subscribe(new u(t,this.project,this.resultSelector,this.concurrent))},t}();n.MergeMapOperator=a;var u=function(t){function e(e,n,r,i){void 0===i&&(i=Number.POSITIVE_INFINITY),t.call(this,e),this.project=n,this.resultSelector=r,this.concurrent=i,this.hasCompleted=!1,this.buffer=[],this.active=0,this.index=0}return i(e,t),e.prototype._next=function(t){this.active<this.concurrent?this._tryNext(t):this.buffer.push(t)},e.prototype._tryNext=function(t){var e,n=this.index++;try{e=this.project(t,n)}catch(r){return void this.destination.error(r)}this.active++,this._innerSub(e,t,n)},e.prototype._innerSub=function(t,e,n){this.add(o.subscribeToResult(this,t,e,n))},e.prototype._complete=function(){this.hasCompleted=!0,0===this.active&&0===this.buffer.length&&this.destination.complete()},e.prototype.notifyNext=function(t,e,n,r){this.resultSelector?this._notifyResultSelector(t,e,n,r):this.destination.next(e)},e.prototype._notifyResultSelector=function(t,e,n,r){var i;try{i=this.resultSelector(t,e,n,r)}catch(o){return void this.destination.error(o)}this.destination.next(i)},e.prototype.notifyComplete=function(t){var e=this.buffer;this.remove(t),this.active--,e.length>0?this._next(e.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()},e}(s.OuterSubscriber);n.MergeMapSubscriber=u},{"../OuterSubscriber":17,"../util/subscribeToResult":59}],43:[function(t,e,n){"use strict";function r(t,e){return void 0===e&&(e=0),this.lift(new a(t,e))}var i=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},o=t("../Subscriber"),s=t("../Notification");n.observeOn=r;var a=function(){function t(t,e){void 0===e&&(e=0),this.scheduler=t,this.delay=e}return t.prototype.call=function(t,e){return e.subscribe(new u(t,this.scheduler,this.delay))},t}();n.ObserveOnOperator=a;var u=function(t){function e(e,n,r){void 0===r&&(r=0),t.call(this,e),this.scheduler=n,this.delay=r}return i(e,t),e.dispatch=function(t){var e=t.notification,n=t.destination;e.observe(n),this.unsubscribe()},e.prototype.scheduleMessage=function(t){this.add(this.scheduler.schedule(e.dispatch,this.delay,new c(t,this.destination)))},e.prototype._next=function(t){this.scheduleMessage(s.Notification.createNext(t))},e.prototype._error=function(t){this.scheduleMessage(s.Notification.createError(t))},e.prototype._complete=function(){this.scheduleMessage(s.Notification.createComplete())},e}(o.Subscriber);n.ObserveOnSubscriber=u;var c=function(){function t(t,e){this.notification=t,this.destination=e}return t}();n.ObserveOnMessage=c},{"../Notification":14,"../Subscriber":20}],44:[function(t,e,n){"use strict";function r(t,e){var n=!1;return arguments.length>=2&&(n=!0),this.lift(new s(t,e,n))}var i=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},o=t("../Subscriber");n.reduce=r;var s=function(){function t(t,e,n){void 0===n&&(n=!1),this.accumulator=t,this.seed=e,this.hasSeed=n}return t.prototype.call=function(t,e){return e.subscribe(new a(t,this.accumulator,this.seed,this.hasSeed))},t}();n.ReduceOperator=s;var a=function(t){function e(e,n,r,i){t.call(this,e),this.accumulator=n,this.hasSeed=i,this.index=0,this.hasValue=!1,this.acc=r,this.hasSeed||this.index++}return i(e,t),e.prototype._next=function(t){this.hasValue||(this.hasValue=this.hasSeed)?this._tryReduce(t):(this.acc=t,this.hasValue=!0)},e.prototype._tryReduce=function(t){var e;try{e=this.accumulator(this.acc,t,this.index++)}catch(n){return void this.destination.error(n)}this.acc=e},e.prototype._complete=function(){(this.hasValue||this.hasSeed)&&this.destination.next(this.acc),this.destination.complete()},e}(o.Subscriber);n.ReduceSubscriber=a},{"../Subscriber":20}],45:[function(t,e,n){"use strict";function r(t){var e=t.Symbol;if("function"==typeof e)return e.iterator||(e.iterator=e("iterator polyfill")),e.iterator;var n=t.Set;if(n&&"function"==typeof(new n)["@@iterator"])return"@@iterator";var r=t.Map;if(r)for(var i=Object.getOwnPropertyNames(r.prototype),o=0;o<i.length;++o){var s=i[o];if("entries"!==s&&"size"!==s&&r.prototype[s]===r.prototype.entries)return s}return"@@iterator"}var i=t("../util/root");n.symbolIteratorPonyfill=r,n.$$iterator=r(i.root)},{"../util/root":58}],46:[function(t,e,n){"use strict";function r(t){var e,n=t.Symbol;return"function"==typeof n?n.observable?e=n.observable:(e=n("observable"),n.observable=e):e="@@observable",e}var i=t("../util/root");n.getSymbolObservable=r,n.$$observable=r(i.root)},{"../util/root":58}],47:[function(t,e,n){"use strict";var r=t("../util/root"),i=r.root.Symbol;n.$$rxSubscriber="function"==typeof i&&"function"==typeof i["for"]?i["for"]("rxSubscriber"):"@@rxSubscriber"},{"../util/root":58}],48:[function(t,e,n){"use strict";var r=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},i=function(t){function e(){var e=t.call(this,"no elements in sequence");this.name=e.name="EmptyError",this.stack=e.stack,this.message=e.message}return r(e,t),e}(Error);n.EmptyError=i},{}],49:[function(t,e,n){"use strict";var r=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},i=function(t){function e(){var e=t.call(this,"object unsubscribed");this.name=e.name="ObjectUnsubscribedError",this.stack=e.stack,this.message=e.message}return r(e,t),e}(Error);n.ObjectUnsubscribedError=i},{}],50:[function(t,e,n){"use strict";var r=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},i=function(t){function e(e){t.call(this),this.errors=e;var n=Error.call(this,e?e.length+" errors occurred during unsubscription:\n "+e.map(function(t,e){return e+1+") "+t.toString()}).join("\n "):"");this.name=n.name="UnsubscriptionError",this.stack=n.stack,this.message=n.message}return r(e,t),e}(Error);n.UnsubscriptionError=i},{}],51:[function(t,e,n){"use strict";n.errorObject={e:{}}},{}],52:[function(t,e,n){"use strict";n.isArray=Array.isArray||function(t){return t&&"number"==typeof t.length}},{}],53:[function(t,e,n){"use strict";n.isArrayLike=function(t){return t&&"number"==typeof t.length}},{}],54:[function(t,e,n){"use strict";function r(t){return"function"==typeof t}n.isFunction=r},{}],55:[function(t,e,n){"use strict";function r(t){return null!=t&&"object"==typeof t}n.isObject=r},{}],56:[function(t,e,n){"use strict";function r(t){return t&&"function"!=typeof t.subscribe&&"function"==typeof t.then}n.isPromise=r},{}],57:[function(t,e,n){"use strict";function r(t){return t&&"function"==typeof t.schedule}n.isScheduler=r},{}],58:[function(t,e,n){(function(t){"use strict";if(n.root="object"==typeof window&&window.window===window&&window||"object"==typeof self&&self.self===self&&self||"object"==typeof t&&t.global===t&&t,!n.root)throw new Error("RxJS could not find any global context (window, self, global)")}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],59:[function(t,e,n){"use strict";function r(t,e,n,r){var h=new p.InnerSubscriber(t,n,r);if(h.closed)return null;if(e instanceof u.Observable)return e._isScalar?(h.next(e.value),h.complete(),null):e.subscribe(h);if(o.isArrayLike(e)){for(var f=0,d=e.length;d>f&&!h.closed;f++)h.next(e[f]);h.closed||h.complete()}else{if(s.isPromise(e))return e.then(function(t){h.closed||(h.next(t),h.complete())},function(t){return h.error(t)}).then(null,function(t){i.root.setTimeout(function(){throw t})}),h;if(e&&"function"==typeof e[c.$$iterator])for(var y=e[c.$$iterator]();;){var m=y.next();if(m.done){h.complete();break}if(h.next(m.value),h.closed)break}else if(e&&"function"==typeof e[l.$$observable]){var v=e[l.$$observable]();if("function"==typeof v.subscribe)return v.subscribe(new p.InnerSubscriber(t,n,r));h.error(new TypeError("Provided object does not correctly implement Symbol.observable"))}else{var g=a.isObject(e)?"an invalid object":"'"+e+"'",_="You provided "+g+" where a stream was expected. You can provide an Observable, Promise, Array, or Iterable.";h.error(new TypeError(_))}}return null}var i=t("./root"),o=t("./isArrayLike"),s=t("./isPromise"),a=t("./isObject"),u=t("../Observable"),c=t("../symbol/iterator"),p=t("../InnerSubscriber"),l=t("../symbol/observable");n.subscribeToResult=r},{"../InnerSubscriber":13,"../Observable":15,"../symbol/iterator":45,"../symbol/observable":46,"./isArrayLike":53,"./isObject":55,"./isPromise":56,"./root":58}],60:[function(t,e,n){"use strict";function r(t,e,n){if(t){if(t instanceof i.Subscriber)return t;if(t[o.$$rxSubscriber])return t[o.$$rxSubscriber]()}return t||e||n?new i.Subscriber(t,e,n):new i.Subscriber(s.empty)}var i=t("../Subscriber"),o=t("../symbol/rxSubscriber"),s=t("../Observer");n.toSubscriber=r},{"../Observer":16,"../Subscriber":20,"../symbol/rxSubscriber":47}],61:[function(t,e,n){"use strict";function r(){try{return o.apply(this,arguments)}catch(t){return s.errorObject.e=t,s.errorObject}}function i(t){return o=t,r}var o,s=t("./errorObject");n.tryCatch=i},{"./errorObject":51}]},{},[4])(4)}); \ No newline at end of file diff --git a/modules/visa/Controllers/VisaController.php b/modules/visa/Controllers/VisaController.php index 127c8c2ec975a9a9bff19bce726855cbc89775c4..1ff5978335f5d287f6fe2d8076761a0386e91945 100644 --- a/modules/visa/Controllers/VisaController.php +++ b/modules/visa/Controllers/VisaController.php @@ -104,8 +104,7 @@ class VisaController unset($resList[$key]['priority'], $resList[$key]['contact_id'], $resList[$key]['address_id'], $resList[$key]['user_lastname'], $resList[$key]['user_firstname']); } - $actionLabel = \BasketsModel::getActionByActionId(['actionId' => \BasketsModel::getActionIdById(['basketId' => $basketId]), 'select' => ['label_action']])['label_action'] . ' n°'; - $actionLabel .= (_ID_TO_DISPLAY == 'res_id' ? $incomingMail[0]['res_id'] : $incomingMail[0]['alt_identifier']); + $actionLabel = (_ID_TO_DISPLAY == 'res_id' ? $incomingMail[0]['res_id'] : $incomingMail[0]['alt_identifier']); $actionLabel .= ' : ' . $incomingMail[0]['subject']; $currentAction = [ 'id' => $_SESSION['current_basket']['default_action'], //TODO No Session diff --git a/package.json b/package.json index 6a981f9ee8a459f5f9b4b42985212c38092896de..77db12f12da2d7915558e320f705a4185f645a77 100644 --- a/package.json +++ b/package.json @@ -11,8 +11,8 @@ "author": "Maarch", "license": "GPL-3.0", "dependencies": { - "systemjs": "0.19.40", "core-js": "^2.4.1", + "systemjs": "0.19.40", "zone.js": "^0.7.4" }, "devDependencies": { @@ -24,13 +24,12 @@ "@angular/platform-browser": "~2.4.0", "@angular/platform-browser-dynamic": "~2.4.0", "@angular/router": "~3.4.0", - - "rxjs": "5.0.1", + "rxjs": "5.2.0", "angular-in-memory-web-api": "~0.2.4", "browserify": "^13.0.1", "uglifyjs": "^2.4.10", - "typescript": "~2.0.10", + "@types/node": "^7.0.8", "@types/jquery": "~2.0.40" }, "repository": {}