exam/example/app.js

767 lines
682 KiB
JavaScript
Raw Permalink Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

!function(t){function e(r){if(n[r])return n[r].exports;var o=n[r]={i:r,l:!1,exports:{}};return t[r].call(o.exports,o,o.exports,e),o.l=!0,o.exports}var n={};e.m=t,e.c=n,e.i=function(t){return t},e.d=function(t,n,r){e.o(t,n)||Object.defineProperty(t,n,{configurable:!1,enumerable:!0,get:r})},e.n=function(t){var n=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(n,"a",n),n},e.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},e.p="/build/",e(e.s=140)}({119:function(t,e,n){"use strict";e.empty={closed:!0,next:function(t){},error:function(t){throw t},complete:function(){}}},120:function(t,e,n){"use strict";var r=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},o=n(9),i=function(t){function e(e){t.call(this),this.scheduler=e}return r(e,t),e.create=function(t){return new e(t)},e.dispatch=function(t){t.subscriber.complete()},e.prototype._subscribe=function(t){var n=this.scheduler;if(n)return n.schedule(e.dispatch,0,{subscriber:t});t.complete()},e}(o.Observable);e.EmptyObservable=i},121:function(t,e,n){"use strict";function r(t){var e,n=t.Symbol;return"function"==typeof n?n.observable?e=n.observable:(e=n("observable"),n.observable=e):e="@@observable",e}var o=n(37);e.getSymbolObservable=r,e.observable=r(o.root),e.$$observable=e.observable},122:function(t,e,n){"use strict";e.errorObject={e:{}}},123:function(t,e,n){"use strict";e.isArray=Array.isArray||function(t){return t&&"number"==typeof t.length}},124:function(t,e,n){"use strict";function r(t){return"function"==typeof t}e.isFunction=r},125:function(t,e,n){"use strict";function r(t){return null!=t&&"object"==typeof t}e.isObject=r},126:function(t,e,n){"use strict";function r(t){return t&&"function"==typeof t.schedule}e.isScheduler=r},127:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(135),o=n(20),i=n(86),s=n(49);n.d(e,"RESOURCE_CACHE_PROVIDER",function(){return h}),n.d(e,"platformBrowserDynamic",function(){return f}),n.d(e,"VERSION",function(){return p}),n.d(e,"ɵINTERNAL_BROWSER_DYNAMIC_PLATFORM_PROVIDERS",function(){return c}),n.d(e,"ɵResourceLoaderImpl",function(){return u});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=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return a(e,t),e.prototype.get=function(t){var e,n,r=new Promise(function(t,r){e=t,n=r}),o=new XMLHttpRequest;return o.open("GET",t,!0),o.responseType="text",o.onload=function(){var r=o.response||o.responseText,i=1223===o.status?204:o.status;0===i&&(i=r?200:0),200<=i&&i<=300?e(r):n("Failed to load "+t)},o.onerror=function(){n("Failed to load "+t)},o.send(),r},e}(r.a);u.decorators=[{type:o.Injectable}],u.ctorParameters=function(){return[]};/**
* @license
* Copyright Google Inc. All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
var c=[s["ɵINTERNAL_BROWSER_PLATFORM_PROVIDERS"],{provide:o.COMPILER_OPTIONS,useValue:{providers:[{provide:r.a,useClass:u}]},multi:!0},{provide:o.PLATFORM_ID,useValue:i.b}],l=function(t){function e(){var e=t.call(this)||this;if(e._cache=o["ɵglobal"].$templateCache,null==e._cache)throw new Error("CachedResourceLoader: Template cache was not found in $templateCache.");return e}return a(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}(r.a),p=new o.Version("4.1.1"),h=[{provide:r.a,useClass:l}],f=n.i(o.createPlatformFactory)(r.b,"browserDynamic",c)},128:function(t,e,n){"use strict";var r=this&&this.__decorate||function(t,e,n,r){var o,i=arguments.length,s=i<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,r);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(s=(i<3?o(s):i>3?o(e,n,s):o(e,n))||s);return i>3&&s&&Object.defineProperty(e,n,s),s};Object.defineProperty(e,"__esModule",{value:!0});var o=n(20),i=n(49),s=n(88),a=n(136),u=n(137),c=n(139),l=n(138),p=function(){function t(){}return t}();p=r([o.NgModule({imports:[i.BrowserModule,s.HttpModule,a.FormsModule],declarations:[u.AppComponent],providers:[c.ContactService,l.MemContactService],bootstrap:[u.AppComponent]})],p),e.AppModule=p},131:function(t,e,n){"use strict";var r=n(9),o=n(304);r.Observable.throw=o._throw},132:function(t,e,n){"use strict";var r=n(9),o=n(305);r.Observable.prototype.catch=o._catch,r.Observable.prototype._catch=o._catch},133:function(t,e,n){"use strict";var r=n(9),o=n(311);r.Observable.prototype.toPromise=o.toPromise},135:function(t,e,n){"use strict";function r(t,e,n){void 0===n&&(n=null);var r=[],o=t.visit?function(e){return t.visit(e,n)||e.visit(t,n)}:function(e){return e.visit(t,n)};return e.forEach(function(t){var e=o(t);e&&r.push(e)}),r}function o(t){if(":"!=t[0])return[null,t];var e=t.indexOf(":",1);if(-1==e)throw new Error('Unsupported format "'+t+'" expecting ":namespace:name"');return[t.slice(1,e),t.slice(e+1)]}function i(t){return"ng-container"===o(t)[1]}function s(t){return"ng-content"===o(t)[1]}function a(t){return"ng-template"===o(t)[1]}function u(t){return null===t?null:o(t)[0]}function c(t,e){return t?":"+t+":"+e:e}function l(t){return vo[t.toLowerCase()]||mo}function p(t){return t.replace(So,function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return t[1].toUpperCase()})}function h(t,e){return d(t,":",e)}function f(t,e){return d(t,".",e)}function d(t,e,n){var r=t.indexOf(e);return-1==r?n:[t.slice(0,r).trim(),t.slice(r+1).trim()]}function y(t,e,n){return Array.isArray(t)?e.visitArray(t,n):b(t)?e.visitStringMap(t,n):null==t||"string"==typeof t||"number"==typeof t||"boolean"==typeof t?e.visitPrimitive(t,n):e.visitOther(t,n)}function v(t){return null!==t&&void 0!==t}function m(t){return void 0===t?null:t}function g(t){var e=Error(t);return e[Po]=!0,e}function _(t){return t.replace(/([.*+?^=!:${}()|[\]\/\\])/g,"\\$1")}function b(t){return"object"==typeof t&&null!==t&&Object.getPrototypeOf(t)===Ao}function w(t){for(var e="",n=0;n<t.length;n++){var r=t.charCodeAt(n);if(r>=55296&&r<=56319&&t.length>n+1){var o=t.charCodeAt(n+1);o>=56320&&o<=57343&&(n++,r=(r-55296<<10)+o-56320+65536)}r<=127?e+=String.fromCharCode(r):r<=2047?e+=String.fromCharCode(r>>6&31|192,63&r|128):r<=65535?e+=String.fromCharCode(r>>12|224,r>>6&63|128,63&r|128):r<=2097151&&(e+=String.fromCharCode(r>>18&7|240,r>>12&63|128,r>>6&63|128,63&r|128))}return e}function E(t){return t.replace(/\W/g,"_")}function C(t){if(!t||!t.reference)return null;var e=t.reference;if(e instanceof lo)return e.name;if(e.__anonymousType)return e.__anonymousType;var r=n.i(Kr["ɵstringify"])(e);return r.indexOf("(")>=0?(r="anonymous_"+No++,e.__anonymousType=r):r=E(r),r}function S(t){var e=t.reference;return e instanceof lo?e.filePath:Kr["ɵreflector"].importUri(e)}function x(t,e){return"View_"+C({reference:t})+"_"+e}function T(t){return"RenderType_"+C({reference:t})}function P(t){return"HostView_"+C({reference:t})}function A(t){return C({reference:t})+"NgFactory"}function O(t){return null!=t.value?E(t.value):C(t.identifier)}function M(t){return null!=t.identifier?t.identifier.reference:t.value}function k(t,e,n){var r=_o.parse(e.selector)[0].getMatchingElementTemplate();return Vo.create({isHost:!0,type:{reference:t,diDeps:[],lifecycleHooks:[]},template:new Do({encapsulation:Kr.ViewEncapsulation.None,template:r,templateUrl:"",styles:[],styleUrls:[],ngContentSelectors:[],animations:[],isInline:!0,externalStylesheets:[],interpolation:null}),exportAs:null,changeDetection:Kr.ChangeDetectionStrategy.Default,inputs:[],outputs:[],host:{},isComponent:!0,selector:"*",providers:[],viewProviders:[],queries:[],viewQueries:[],componentViewType:n,rendererType:{id:"__Host__",encapsulation:Kr.ViewEncapsulation.None,styles:[],data:{}},entryComponents:[],componentFactory:null})}function N(t){return t||[]}function I(t){return t.reduce(function(t,e){var n=Array.isArray(e)?I(e):e;return t.concat(n)},[])}function R(t){return t.replace(/(\w+:\/\/[\w:-]+)?(\/+)?/,"ng:///")}function D(t,e,n){var r;return r=n.isInline?e.type.reference instanceof lo?e.type.reference.filePath+"."+e.type.reference.name+".html":C(t)+"/"+C(e.type)+".html":n.templateUrl,R(r)}function V(t,e){var n=t.moduleUrl.split(/\/\\/g);return R("css/"+e+n[n.length-1]+".ngstyle.js")}function L(t){return R(C(t.type)+"/module.ngfactory.js")}function F(t,e){return R(C(t)+"/"+C(e.type)+".ngfactory.js")}function j(t){return t>=vi&&t<=wi||t==Ki}function H(t){return ki<=t&&t<=Ni}function U(t){return t>=Fi&&t<=zi||t>=Ii&&t<=Vi}function B(t){return t>=Fi&&t<=Hi||t>=Ii&&t<=Di||H(t)}function q(){return function(t){return t}}/**
* @license
* Copyright Google Inc. All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
function G(t,e){if(n.i(Kr.isDevMode)()&&null!=e){if(!Array.isArray(e))throw new Error("Expected '"+t+"' to be an array of strings.");for(var r=0;r<e.length;r+=1)if("string"!=typeof e[r])throw new Error("Expected '"+t+"' to be an array of strings.")}}function z(t,e){if(!(null==e||Array.isArray(e)&&2==e.length))throw new Error("Expected '"+t+"' to be an array, [start, end].");if(n.i(Kr.isDevMode)()&&null!=e){var r=e[0],o=e[1];Xi.forEach(function(t){if(t.test(r)||t.test(o))throw new Error("['"+r+"', '"+o+"'] contains unusable interpolation symbol.")})}}function W(t,e){return new es(t,$i.Character,e,String.fromCharCode(e))}function K(t,e){return new es(t,$i.Identifier,0,e)}function Q(t,e){return new es(t,$i.Keyword,0,e)}function X(t,e){return new es(t,$i.Operator,0,e)}function Z(t,e){return new es(t,$i.String,0,e)}function Y(t,e){return new es(t,$i.Number,e,"")}function $(t,e){return new es(t,$i.Error,0,e)}function J(t){return Fi<=t&&t<=zi||Ii<=t&&t<=Vi||t==Li||t==Ci}function tt(t){if(0==t.length)return!1;var e=new rs(t);if(!J(e.peek))return!1;for(e.advance();e.peek!==yi;){if(!et(e.peek))return!1;e.advance()}return!0}function et(t){return U(t)||H(t)||t==Li||t==Ci}function nt(t){return t==ji||t==Ri}function rt(t){return t==Ti||t==xi}function ot(t){return t===Si||t===Ei||t===Qi}function it(t){switch(t){case Ui:return mi;case Hi:return _i;case Bi:return bi;case qi:return vi;case Gi:return gi;default:return t}}function st(t){var e=parseInt(t);if(isNaN(e))throw new Error("Invalid integer literal when parsing "+t);return e}function at(t){var e=_(t.start)+"([\\s\\S]*?)"+_(t.end);return new RegExp(e,"g")}function ut(t,e){var n=S(e),r=null!=n?"in "+t+" "+C(e)+" in "+n:"in "+t+" "+C(e),o=new ls("",r);return new ps(new cs(o,-1,-1,-1),new cs(o,-1,-1,-1))}function ct(t,e,n){void 0===n&&(n=null);var r=[],o=t.visit?function(e){return t.visit(e,n)||e.visit(t,n)}:function(e){return e.visit(t,n)};return e.forEach(function(t){var e=o(t);e&&r.push(e)}),r}function lt(t,e,n,r,o){return void 0===r&&(r=!1),void 0===o&&(o=Yi),new xs(new ls(t,e),n,r,o).tokenize()}function pt(t){return'Unexpected character "'+(t===yi?"EOF":String.fromCharCode(t))+'"'}function ht(t){return'Unknown entity "'+t+'" - use the "&#<decimal>;" or "&#x<hex>;" syntax'}function ft(t){return!j(t)||t===yi}function dt(t){return j(t)||t===Mi||t===Pi||t===Si||t===Ei||t===Oi}function yt(t){return(t<Fi||zi<t)&&(t<Ii||Vi<t)&&(t<ki||t>Ni)}function vt(t){return t==Ai||t==yi||!B(t)}function mt(t){return t==Ai||t==yi||!U(t)}function gt(t,e,n){var r=!!n&&t.indexOf(n.start,e)==e;return t.charCodeAt(e)==Wi&&!r}function _t(t){return t===Oi||U(t)}function bt(t,e){return wt(t)==wt(e)}function wt(t){return t>=Fi&&t<=zi?t-Fi+Ii:t}function Et(t){for(var e=[],n=void 0,r=0;r<t.length;r++){var o=t[r];n&&n.type==bs.TEXT&&o.type==bs.TEXT?(n.parts[0]+=o.parts[0],n.sourceSpan.end=o.sourceSpan.end):(n=o,e.push(n))}return e}function Ct(t,e){return t.length>0&&t[t.length-1]===e}function St(t){var e=new Bs(Us,t);return function(t,n,r,o){return e.toI18nMessage(t,n,r,o)}}function xt(t){return t.split(qs)[2]}function Tt(t,e,n,r){return new Zs(n,r).extract(t,e)}function Pt(t,e,n,r,o){return new Zs(r,o).merge(t,e,n)}function At(t){return!!(t instanceof _s&&t.value&&t.value.startsWith("i18n"))}function Ot(t){return!!(t instanceof _s&&t.value&&"/i18n"===t.value)}function Mt(t){return t.attrs.find(function(t){return t.name===zs})||null}function kt(t){if(!t)return{meaning:"",description:"",id:""};var e=t.indexOf(Ks),n=t.indexOf(Ws),r=e>-1?[t.slice(0,e),t.slice(e+2)]:[t,""],o=r[0],i=r[1],s=n>-1?[o.slice(0,n),o.slice(n+1)]:["",o];return{meaning:s[0],description:s[1],id:i}}function Nt(t){return $s}/**
* @license
* Copyright Google Inc. All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
function It(t){return t.id||Vt(Dt(t.nodes).join("")+"["+t.meaning+"]")}function Rt(t){if(t.id)return t.id;var e=new na;return jt(t.nodes.map(function(t){return t.visit(e,null)}).join(""),t.meaning)}function Dt(t){return t.map(function(t){return t.visit(ea,null)})}function Vt(t){var e=w(t),n=Qt(e,ra.Big),r=8*e.length,o=new Array(80),i=[1732584193,4023233417,2562383102,271733878,3285377520],s=i[0],a=i[1],u=i[2],c=i[3],l=i[4];n[r>>5]|=128<<24-r%32,n[15+(r+64>>9<<4)]=r;for(var p=0;p<n.length;p+=16){for(var h=[s,a,u,c,l],f=h[0],d=h[1],y=h[2],v=h[3],m=h[4],g=0;g<80;g++){o[g]=g<16?n[p+g]:Wt(o[g-3]^o[g-8]^o[g-14]^o[g-16],1);var _=Lt(g,a,u,c),b=_[0],E=_[1],C=[Wt(s,5),b,l,E,o[g]].reduce(Bt);S=[c,u,Wt(a,30),s,C],l=S[0],c=S[1],u=S[2],a=S[3],s=S[4]}x=[Bt(s,f),Bt(a,d),Bt(u,y),Bt(c,v),Bt(l,m)],s=x[0],a=x[1],u=x[2],c=x[3],l=x[4]}return Jt(Yt([s,a,u,c,l]));var S,x}function Lt(t,e,n,r){return t<20?[e&n|~e&r,1518500249]:t<40?[e^n^r,1859775393]:t<60?[e&n|e&r|n&r,2400959708]:[e^n^r,3395469782]}function Ft(t){var e=w(t),n=[Ht(e,0),Ht(e,102072)],r=n[0],o=n[1];return 0!=r||0!=o&&1!=o||(r^=319790063,o^=-1801410264),[r,o]}function jt(t,e){var n=Ft(t),r=n[0],o=n[1];if(e){var i=Ft(e),s=i[0],a=i[1];u=Gt(Kt([r,o],1),[s,a]),r=u[0],o=u[1]}return te(Yt([2147483647&r,o]));var u}function Ht(t,e){var n,r=[2654435769,2654435769],o=r[0],i=r[1],s=t.length;for(n=0;n+12<=s;n+=12)o=Bt(o,Zt(t,n,ra.Little)),i=Bt(i,Zt(t,n+4,ra.Little)),e=Bt(e,Zt(t,n+8,ra.Little)),a=Ut([o,i,e]),o=a[0],i=a[1],e=a[2];return o=Bt(o,Zt(t,n,ra.Little)),i=Bt(i,Zt(t,n+4,ra.Little)),e=Bt(e,s),e=Bt(e,Zt(t,n+8,ra.Little)<<8),Ut([o,i,e])[2];var a}function Ut(t){var e=t[0],n=t[1],r=t[2];return e=zt(e,n),e=zt(e,r),e^=r>>>13,n=zt(n,r),n=zt(n,e),n^=e<<8,r=zt(r,e),r=zt(r,n),r^=n>>>13,e=zt(e,n),e=zt(e,r),e^=r>>>12,n=zt(n,r),n=zt(n,e),n^=e<<16,r=zt(r,e),r=zt(r,n),r^=n>>>5,e=zt(e,n),e=zt(e,r),e^=r>>>3,n=zt(n,r),n=zt(n,e),n^=e<<10,r=zt(r,e),r=zt(r,n),r^=n>>>15,[e,n,r]}function Bt(t,e){return qt(t,e)[1]}function qt(t,e){var n=(65535&t)+(65535&e),r=(t>>>16)+(e>>>16)+(n>>>16);return[r>>>16,r<<16|65535&n]}function Gt(t,e){var n=t[0],r=t[1],o=e[0],i=e[1],s=qt(r,i),a=s[0],u=s[1];return[Bt(Bt(n,o),a),u]}function zt(t,e){var n=(65535&t)-(65535&e);return(t>>16)-(e>>16)+(n>>16)<<16|65535&n}function Wt(t,e){return t<<e|t>>>32-e}function Kt(t,e){var n=t[0],r=t[1];return[n<<e|r>>>32-e,r<<e|n>>>32-e]}function Qt(t,e){for(var n=Array(t.length+3>>>2),r=0;r<n.length;r++)n[r]=Zt(t,4*r,e);return n}function Xt(t,e){return e>=t.length?0:255&t.charCodeAt(e)}function Zt(t,e,n){var r=0;if(n===ra.Big)for(var o=0;o<4;o++)r+=Xt(t,e+o)<<24-8*o;else for(var o=0;o<4;o++)r+=Xt(t,e+o)<<8*o;return r}function Yt(t){return t.reduce(function(t,e){return t+$t(e)},"")}function $t(t){for(var e="",n=0;n<4;n++)e+=String.fromCharCode(t>>>8*(3-n)&255);return e}function Jt(t){for(var e="",n=0;n<t.length;n++){var r=Xt(t,n);e+=(r>>>4).toString(16)+(15&r).toString(16)}return e.toLowerCase()}function te(t){for(var e="",n="1",r=t.length-1;r>=0;r--)e=ee(e,ne(Xt(t,r),n)),n=ne(256,n);return e.split("").reverse().join("")}function ee(t,e){for(var n="",r=Math.max(t.length,e.length),o=0,i=0;o<r||i;o++){var s=i+ +(t[o]||0)+ +(e[o]||0);s>=10?(i=1,n+=s-10):(i=0,n+=s)}return n}function ne(t,e){for(var n="",r=e;0!==t;t>>>=1)1&t&&(n=ee(n,r)),r=ee(r,r);return n}function re(t){return t.map(function(t){return t.visit(aa)}).join("")}function oe(t){return fa.reduce(function(t,e){return t.replace(e[0],e[1])},t)}function ie(t){switch(t.toLowerCase()){case"br":return"lb";case"img":return"image";default:return"x-"+t}}function se(t){switch(t.toLowerCase()){case"br":case"b":case"i":case"u":return"fmt";case"img":return"image";case"a":return"link";default:return"other"}}function ae(t){return Rt(t)}function ue(t){return t.toUpperCase().replace(/[^A-Z0-9_]/g,"_")}function ce(t,e,n){Object.defineProperty(t,e,{configurable:!0,enumerable:!0,get:function(){var r=n();return Object.defineProperty(t,e,{enumerable:!0,value:r}),r},set:function(t){throw new Error("Could not overwrite an XTB translation")}})}function le(t){switch(t=(t||"xlf").toLowerCase()){case"xmb":return new Ea;case"xtb":return new xa;case"xliff2":case"xlf2":return new ga;case"xliff":case"xlf":default:return new da}}function pe(t){var e=t.name;return Kr["ɵreflector"].resolveIdentifier(e,t.moduleUrl,null,t.runtime)}function he(t){return{reference:pe(t)}}function fe(t){return{identifier:t}}function de(t){return fe(he(t))}function ye(t){var e=new La;return new Da(ct(e,t),e.isExpanded,e.errors)}function ve(t,e){var n=t.cases.map(function(t){-1!=Ra.indexOf(t.value)||t.value.match(/^=\d+$/)||e.push(new Va(t.valueSourceSpan,'Plural cases should be "=<number>" or one of '+Ra.join(", ")));var n=ye(t.expression);return e.push.apply(e,n.errors),new gs("ng-template",[new ms("ngPluralCase",""+t.value,t.valueSourceSpan)],n.nodes,t.sourceSpan,t.sourceSpan,t.sourceSpan)}),r=new ms("[ngPlural]",t.switchValue,t.switchValueSourceSpan);return new gs("ng-container",[r],n,t.sourceSpan,t.sourceSpan,t.sourceSpan)}function me(t,e){var n=t.cases.map(function(t){var n=ye(t.expression);return e.push.apply(e,n.errors),"other"===t.value?new gs("ng-template",[new ms("ngSwitchDefault","",t.valueSourceSpan)],n.nodes,t.sourceSpan,t.sourceSpan,t.sourceSpan):new gs("ng-template",[new ms("ngSwitchCase",""+t.value,t.valueSourceSpan)],n.nodes,t.sourceSpan,t.sourceSpan,t.sourceSpan)}),r=new ms("[ngSwitch]",t.switchValue,t.switchValueSourceSpan);return new gs("ng-container",[r],n,t.sourceSpan,t.sourceSpan,t.sourceSpan)}function ge(t,e){var n=e.useExisting,r=e.useValue,o=e.deps;return{token:t.token,useClass:t.useClass,useExisting:n,useFactory:t.useFactory,useValue:r,deps:o,multi:t.multi}}function _e(t,e){var n=e.eager,r=e.providers;return new so(t.token,t.multiProvider,t.eager||n,r,t.providerType,t.lifecycleHooks,t.sourceSpan)}function be(t,e,n){var r=new Map;return t.forEach(function(t){we([{token:{identifier:t.type},useClass:t.type}],t.isComponent?ao.Component:ao.Directive,!0,e,n,r)}),t.filter(function(t){return t.isComponent}).concat(t.filter(function(t){return!t.isComponent})).forEach(function(t){we(t.providers,ao.PublicService,!1,e,n,r),we(t.viewProviders,ao.PrivateService,!1,e,n,r)}),r}function we(t,e,n,r,o,i){t.forEach(function(t){var s=i.get(M(t.token));if(null!=s&&!!s.multiProvider!=!!t.multi&&o.push(new Fa("Mixing multi and non multi provider is not possible for token "+O(s.token),r)),s)t.multi||(s.providers.length=0),s.providers.push(t);else{var a=t.token.identifier&&t.token.identifier.lifecycleHooks?t.token.identifier.lifecycleHooks:[],u=!(t.useClass||t.useExisting||t.useFactory);s=new so(t.token,!!t.multi,n||u,[t],e,a,r),i.set(M(t.token),s)}})}function Ee(t){var e=1,n=new Map;return t.viewQueries&&t.viewQueries.forEach(function(t){return Se(n,{meta:t,queryId:e++})}),n}function Ce(t,e){var n=t,r=new Map;return e.forEach(function(t,e){t.queries&&t.queries.forEach(function(t){return Se(r,{meta:t,queryId:n++})})}),r}function Se(t,e){e.meta.selectors.forEach(function(n){var r=t.get(M(n));r||(r=[],t.set(M(n),r)),r.push(e)})}function xe(t){if(null==t||0===t.length||"/"==t[0])return!1;var e=t.match(Wa);return null===e||"package"==e[1]||"asset"==e[1]}function Te(t,e,n){var r=[],o=n.replace(za,"").replace(Ga,function(){for(var n=[],o=0;o<arguments.length;o++)n[o]=arguments[o];var i=n[1]||n[2];return xe(i)?(r.push(t.resolve(e,i)),""):n[0]});return new qa(o,r)}function Pe(t){return"@"==t[0]}function Ae(t,e,n,r){var o=[];return _o.parse(e).forEach(function(e){var i=e.element?[e.element]:t.allKnownElementNames(),s=new Set(e.notSelectors.filter(function(t){return t.isElementSelector()}).map(function(t){return t.element})),a=i.filter(function(t){return!s.has(t)});o.push.apply(o,a.map(function(e){return t.securityContext(e,n,r)}))}),0===o.length?[Kr.SecurityContext.NONE]:Array.from(new Set(o)).sort()}function Oe(t){var e=null,n=null,r=null,o=!1,i=null;t.attrs.forEach(function(t){var s=t.name.toLowerCase();s==Ya?e=t.value:s==tu?n=t.value:s==Ja?r=t.value:t.name==ou?o=!0:t.name==iu&&t.value.length>0&&(i=t.value)}),e=Me(e);var a=t.name.toLowerCase(),u=su.OTHER;return s(a)?u=su.NG_CONTENT:a==nu?u=su.STYLE:a==ru?u=su.SCRIPT:a==$a&&r==eu&&(u=su.STYLESHEET),new au(u,e,n,o,i)}function Me(t){return null===t||0===t.length?"*":t}function ke(t){return function(e){return-1===t.indexOf(e.msg)||(hu[e.msg]=(hu[e.msg]||0)+1,hu[e.msg]<=1)}}function Ne(t){return t.trim().split(/\s+/g)}function Ie(t,e){var n=new _o,r=o(t)[1];n.setElement(r);for(var i=0;i<e.length;i++){var s=e[i][0],a=o(s)[1],u=e[i][1];if(n.addAttribute(a,u),s.toLowerCase()==cu){Ne(u).forEach(function(t){return n.addClassName(t)})}}return n}function Re(t){return t instanceof ds&&0==t.value.trim().length}function De(t){var e=new Map;return t.forEach(function(t){e.get(t.type.reference)||e.set(t.type.reference,t)}),Array.from(e.values())}function Ve(t){return t instanceof pi&&(t=t.ast),t instanceof Wo}function Le(t,e,n){if(a(t.name))return!0;var r=o(t.name)[1];return!(r.toLowerCase()!==uu||!e||r.toLowerCase()!==uu)&&(n(pu,t.sourceSpan),!0)}function Fe(){return new xu(".")}function je(t){var e=Ue(t);return e&&e[Pu.Scheme]||""}function He(t,e,n,r,o,i,s){var a=[];return null!=t&&a.push(t+":"),null!=n&&(a.push("//"),null!=e&&a.push(e+"@"),a.push(n),null!=r&&a.push(":"+r)),null!=o&&a.push(o),null!=i&&a.push("?"+i),null!=s&&a.push("#"+s),a.join("")}function Ue(t){return t.match(Tu)}function Be(t){if("/"==t)return"/";for(var e="/"==t[0]?"/":"",n="/"===t[t.length-1]?"/":"",r=t.split("/"),o=[],i=0,s=0;s<r.length;s++){var a=r[s];switch(a){case"":case".":break;case"..":o.length>0?o.pop():i++;break;default:o.push(a)}}if(""==e){for(;i-- >0;)o.unshift("..");0===o.length&&o.push(".")}return e+o.join("/")+n}function qe(t){var e=t[Pu.Path];return e=null==e?"":Be(e),t[Pu.Path]=e,He(t[Pu.Scheme],t[Pu.UserInfo],t[Pu.Domain],t[Pu.Port],e,t[Pu.QueryData],t[Pu.Fragment])}function Ge(t,e){var n=Ue(encodeURI(e)),r=Ue(t);if(null!=n[Pu.Scheme])return qe(n);n[Pu.Scheme]=r[Pu.Scheme];for(var o=Pu.Scheme;o<=Pu.Port;o++)null==n[o]&&(n[o]=r[o]);if("/"==n[Pu.Path][0])return qe(n);var i=r[Pu.Path];null==i&&(i="/");var s=i.lastIndexOf("/");return i=i.substring(0,s+1)+n[Pu.Path],n[Pu.Path]=i,qe(n)}function ze(t){return t instanceof Kr.Directive}function We(t,e){for(var n=t.length-1;n>=0;n--)if(e(t[n]))return t[n];return null}function Ke(t){var e=Ze(t);return e[0]+".ngfactory"+e[1]}function Qe(t){return t.replace(Iu,".")}function Xe(t){return Iu.test(t)}function Ze(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 Ye(t){return t.replace(Nu,"")+".ngsummary.json"}/**
* @license
* Copyright Google Inc. All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
function $e(t,e){return Kr["ɵreflector"].hasLifecycleHook(e,Je(t))}function Je(t){switch(t){case Kr["ɵLifecycleHooks"].OnInit:return"ngOnInit";case Kr["ɵLifecycleHooks"].OnDestroy:return"ngOnDestroy";case Kr["ɵLifecycleHooks"].DoCheck:return"ngDoCheck";case Kr["ɵLifecycleHooks"].OnChanges:return"ngOnChanges";case Kr["ɵLifecycleHooks"].AfterContentInit:return"ngAfterContentInit";case Kr["ɵLifecycleHooks"].AfterContentChecked:return"ngAfterContentChecked";case Kr["ɵLifecycleHooks"].AfterViewInit:return"ngAfterViewInit";case Kr["ɵLifecycleHooks"].AfterViewChecked:return"ngAfterViewChecked"}}/**
* @license
* Copyright Google Inc. All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
function tn(t){return t instanceof Kr.NgModule}/**
* @license
* Copyright Google Inc. All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
function en(t){return t instanceof Kr.Pipe}function nn(t,e){if(void 0===e&&(e=[]),t)for(var r=0;r<t.length;r++){var o=n.i(Kr.resolveForwardRef)(t[r]);Array.isArray(o)?nn(o,e):e.push(o)}return e}function rn(t){return t?Array.from(new Set(t)):[]}function on(t){return rn(nn(t))}function sn(t){return t instanceof lo||t instanceof Kr.Type}function an(t,e,n){if(e instanceof lo)return t.resourceUri(e);var r=n.moduleId;if("string"==typeof r){return je(r)?r:"package:"+r+Co}if(null!==r&&void 0!==r)throw g('moduleId should be a string in "'+cn(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 un(t,e){y(t,new ju,e)}function cn(t){return t instanceof lo?t.name+" in "+t.filePath:n.i(Kr["ɵstringify"])(t)}function ln(t){var e=Error("Can't compile synchronously as "+n.i(Kr["ɵstringify"])(t)+" is still being loaded!");return e[Kr["ɵERROR_COMPONENT_TYPE"]]=t,e}function pn(t){var e=new Uc;return e.visitAllStatements(t,null),e.varNames}function hn(t,e){if(!e)return t;var n=new Bc(e);return t.visitStatement(n,null)}function fn(t,e){if(!e)return t;var n=new Bc(e);return t.visitExpression(n,null)}function dn(t,e,n){return new Ju(t,e,n)}function yn(t,e,n){return void 0===e&&(e=null),new uc(t,null,e,n)}function vn(t,e,n){return void 0===e&&(e=null),void 0===n&&(n=null),null!=t?mn(yn(t,e,null),n):null}function mn(t,e){return void 0===e&&(e=null),null!=t?new Gu(t,e):null}function gn(t,e,n){return new mc(t,e,n)}function _n(t,e,n){return void 0===e&&(e=null),void 0===n&&(n=!1),new _c(t.map(function(t){return new gc(t[0],t[1],n)}),e,null)}function bn(t,e){return new lc(t,e)}function wn(t,e,n,r){return new fc(t,e,n,r)}function En(t,e,n){return new ac(t,e,n)}/**
* @license
* Copyright Google Inc. All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
function Cn(t){var e=t.parentArgs||[],n=t.parent?[Ec.callFn(e).toStmt()]:[],r=Sn(Array.isArray(t.builders)?t.builders:[t.builders]),o=new Ic(null,t.ctorParams||[],n.concat(r.ctorStmts));return new Dc(t.name,t.parent||null,r.fields,r.getters,o,r.methods,t.modifiers||[],t.sourceSpan)}function Sn(t){return{fields:[].concat.apply([],t.map(function(t){return t.fields||[]})),methods:[].concat.apply([],t.map(function(t){return t.methods||[]})),getters:[].concat.apply([],t.map(function(t){return t.getters||[]})),ctorStmts:[].concat.apply([],t.map(function(t){return t.ctorStmts||[]}))}}function xn(t,e){return void 0===e&&(e=null),y(t,new qc,e)}function Tn(t){return null!=t.value?En(t.value):yn(t.identifier)}function Pn(t){var e="";t=w(t);for(var n=0;n<t.length;){var r=t.charCodeAt(n++),o=t.charCodeAt(n++),i=t.charCodeAt(n++);e+=On(r>>2),e+=On((3&r)<<4|(isNaN(o)?0:o>>4)),e+=isNaN(o)?"=":On((15&o)<<2|i>>6),e+=isNaN(o)||isNaN(i)?"=":On(63&i)}return e}function An(t){t=t<0?1+(-t<<1):t<<1;var e="";do{var n=31&t;t>>=5,t>0&&(n|=32),e+=On(n)}while(t>0);return e}function On(t){if(t<0||t>=64)throw new Error("Can only encode value in the range [0, 63]");return Yc[t]}function Mn(t,e,n){if(void 0===n&&(n=!0),null==t)return null;var r=t.replace($c,function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return"$"==t[0]?e?"\\$":"$":"\n"==t[0]?"\\n":"\r"==t[0]?"\\r":"\\"+t[0]});return n||!Jc.test(r)?"'"+r+"'":r}function kn(t){for(var e="",n=0;n<t;n++)e+=tl;return e}function Nn(t){var e=new al(sl,{fileNameToModuleName:function(t,e){return t},getImportAs:function(t){return null},getTypeArity:function(t){return null}}),n=ol.createRoot([]);return(Array.isArray(t)?t:[t]).forEach(function(t){if(t instanceof Tc)t.visitStatement(e,n);else if(t instanceof Yu)t.visitExpression(e,n);else{if(!(t instanceof Uu))throw new Error("Don't know how to print debug info for "+t);t.visitType(e,n)}}),n.toSource()}function In(t,e){for(var n=0,r=e;n<r.length;n++){var o=r[n];ul[o.toLowerCase()]=t}}function Rn(t){switch(t){case"width":case"height":case"minWidth":case"minHeight":case"maxWidth":case"maxHeight":case"left":case"top":case"bottom":case"right":case"fontSize":case"outlineWidth":case"outlineOffset":case"paddingTop":case"paddingLeft":case"paddingBottom":case"paddingRight":case"marginTop":case"marginLeft":case"marginBottom":case"marginRight":case"borderRadius":case"borderWidth":case"borderTopWidth":case"borderLeftWidth":case"borderRightWidth":case"borderBottomWidth":case"textIndent":return!0;default:return!1}}function Dn(t){return t.replace(Rl,"")}function Vn(t){var e=t.match(Dl);return e?e[0]:""}function Ln(t,e){var n=Fn(t),r=0;return n.escapedString.replace(Vl,function(){for(var t=[],o=0;o<arguments.length;o++)t[o]=arguments[o];var i=t[2],s="",a=t[4],u="";a&&a.startsWith("{"+Hl)&&(s=n.blocks[r++],a=a.substring(Hl.length+1),u="{");var c=e(new Ul(i,s));return""+t[1]+c.selector+t[3]+u+c.content+a})}function Fn(t){for(var e=t.split(Ll),n=[],r=[],o=0,i=[],s=0;s<e.length;s++){var a=e[s];a==jl&&o--,o>0?i.push(a):(i.length>0&&(r.push(i.join("")),n.push(Hl),i=[]),n.push(a)),a==Fl&&o++}return i.length>0&&(r.push(i.join("")),n.push(Hl)),new Bl(n.join(""),r)}function jn(t){var e="styles";return t&&(e+="_"+C(t.type)),e}function Hn(t,e,n,r){t||(t=new Jl);var o=Un({createLiteralArrayConverter:function(t){return function(t){return gn(t)}},createLiteralMapConverter:function(t){return function(e){return _n(t.map(function(t,n){return[t,e[n]]}))}},createPipeConverter:function(t){throw new Error("Illegal State: Actions are not allowed to contain pipes. Pipe: "+t)}},n),i=new $l(t,e,r),s=[];Zn(o.visit(i,Zl.Statement),s),Wn(i.temporaryCount,r,s);var a=s.length-1,u=null;if(a>=0){var c=s[a],l=Jn(c);l&&(u=$n(r),s[a]=u.set(l.cast(Ku).notIdentical(En(!1))).toDeclStmt(null,[xc.Final]))}return new Ql(s,u)}function Un(t,e){return qn(t,e)}function Bn(t,e,n,r){t||(t=new Jl);var o=Yn(r),i=[],s=new $l(t,e,r),a=n.visit(s,Zl.Expression);if(s.temporaryCount)for(var u=0;u<s.temporaryCount;u++)i.push(zn(r,u));return i.push(o.set(a).toDeclStmt(null,[xc.Final])),new Xl(i,o)}function qn(t,e){var n=new Yl(t);return e.visit(n)}function Gn(t,e){return"tmp_"+t+"_"+e}function zn(t,e){return new Pc(Gn(t,e),Cc)}function Wn(t,e,n){for(var r=t-1;r>=0;r--)n.unshift(zn(e,r))}function Kn(t,e){if(t!==Zl.Statement)throw new Error("Expected a statement, but saw "+e)}function Qn(t,e){if(t!==Zl.Expression)throw new Error("Expected an expression, but saw "+e)}function Xn(t,e){return t===Zl.Statement?e.toStmt():e}function Zn(t,e){Array.isArray(t)?t.forEach(function(t){return Zn(t,e)}):e.push(t)}function Yn(t){return dn("currVal_"+t)}function $n(t){return dn("pd_"+t)}function Jn(t){return t instanceof Oc?t.expr:t instanceof Mc?t.value:null}function tr(t){return t.multiProvider?er(t.providers):nr(t.providerType,t.providers[0])}function er(t){function e(t,e){return e.map(function(e,o){var i="p"+t+"_"+o;return r.push(new hc(i,Ku)),n.push(or(e)),dn(i)})}var n=[],r=[],o=t.map(function(t,n){var r;if(t.useClass){var o=e(n,t.deps||t.useClass.diDeps);r=yn(t.useClass).instantiate(o)}else if(t.useFactory){var o=e(n,t.deps||t.useFactory.diDeps);r=yn(t.useFactory).callFn(o)}else if(t.useExisting){var o=e(n,[{token:t.useExisting}]);r=o[0]}else r=xn(t.useValue);return r});return{providerExpr:wn(r,[new Mc(gn(o))],Qu),flags:512,depsExpr:gn(n)}}function nr(t,e){var n,r,o;return t===ao.Directive||t===ao.Component?(n=yn(e.useClass),r=8192,o=e.deps||e.useClass.diDeps):e.useClass?(n=yn(e.useClass),r=256,o=e.deps||e.useClass.diDeps):e.useFactory?(n=yn(e.useFactory),r=512,o=e.deps||e.useFactory.diDeps):e.useExisting?(n=Cc,r=1024,o=[{token:e.useExisting}]):(n=xn(e.useValue),r=128,o=[]),{providerExpr:n,flags:r,depsExpr:gn(o.map(function(t){return or(t)}))}}function rr(t){return t.identifier?yn(t.identifier):En(t.value)}function or(t){var e=t.isValue?xn(t.value):rr(t.token),n=0;return t.isSkipSelf&&(n|=1),t.isOptional&&(n|=2),t.isValue&&(n|=8),0===n?e:gn([En(n),e])}function ir(t){var e=t[t.length-1];return e instanceof ro?e.hasViewContainer:e instanceof no?i(e.name)&&e.children.length?ir(e.children):e.hasViewContainer:e instanceof uo}function sr(t){var e=0;switch(t){case Kr["ɵLifecycleHooks"].AfterContentChecked:e=1048576;break;case Kr["ɵLifecycleHooks"].AfterContentInit:e=524288;break;case Kr["ɵLifecycleHooks"].AfterViewChecked:e=4194304;break;case Kr["ɵLifecycleHooks"].AfterViewInit:e=2097152;break;case Kr["ɵLifecycleHooks"].DoCheck:e=131072;break;case Kr["ɵLifecycleHooks"].OnChanges:e=262144;break;case Kr["ɵLifecycleHooks"].OnDestroy:e=65536;break;case Kr["ɵLifecycleHooks"].OnInit:e=32768}return e}function ar(t,e){switch(t.type){case co.Attribute:return gn([En(1),En(t.name),En(t.securityContext)]);case co.Property:return gn([En(8),En(t.name),En(t.securityContext)]);case co.Animation:return gn([En(8|(e&&e.directive.isComponent?32:16)),En("@"+t.name),En(t.securityContext)]);case co.Class:return gn([En(2),En(t.name),Cc]);case co.Style:return gn([En(4),En(t.name),En(t.unit)])}}function ur(t){var e=Object.create(null);return t.attrs.forEach(function(t){e[t.name]=t.value}),t.directives.forEach(function(t){Object.keys(t.directive.hostAttributes).forEach(function(n){var r=t.directive.hostAttributes[n],o=e[n];e[n]=null!=o?cr(n,o,r):r})}),gn(Object.keys(e).sort().map(function(t){return gn([En(t),En(e[t])])}))}function cr(t,e,n){return t==ep||t==np?e+" "+n:n}function lr(t,e){return e.length>10?ap.callFn([sp,En(t),En(1),gn(e)]):ap.callFn([sp,En(t),En(0)].concat(e))}function pr(t,e,n){return yn(he(Ia.unwrapValue)).callFn([sp,En(t),En(e),n])}function hr(t,e){return void 0===e&&(e=new Map),t.forEach(function(t){var n=new Set,r=new Set,o=void 0;t instanceof no?(hr(t.children,e),t.children.forEach(function(t){var o=e.get(t);o.staticQueryIds.forEach(function(t){return n.add(t)}),o.dynamicQueryIds.forEach(function(t){return r.add(t)})}),o=t.queryMatches):t instanceof ro&&(hr(t.children,e),t.children.forEach(function(t){var n=e.get(t);n.staticQueryIds.forEach(function(t){return r.add(t)}),n.dynamicQueryIds.forEach(function(t){return r.add(t)})}),o=t.queryMatches),o&&o.forEach(function(t){return n.add(t.queryId)}),r.forEach(function(t){return n.delete(t)}),e.set(t,{staticQueryIds:n,dynamicQueryIds:r})}),e}function fr(t){var e=new Set,n=new Set;return Array.from(t.values()).forEach(function(t){t.staticQueryIds.forEach(function(t){return e.add(t)}),t.dynamicQueryIds.forEach(function(t){return n.add(t)})}),n.forEach(function(t){return e.delete(t)}),{staticQueryIds:e,dynamicQueryIds:n}}function dr(t){var e=t.find(function(t){return t.directive.isComponent});if(e&&e.directive.entryComponents.length){var n=e.directive.entryComponents.map(function(t){return yn({reference:t.componentFactory})}),r=de(Ia.ComponentFactoryResolver),o={diDeps:[{isValue:!0,value:gn(n)},{token:r,isSkipSelf:!0,isOptional:!0},{token:de(Ia.NgModuleRef)}],lifecycleHooks:[],reference:pe(Ia.CodegenComponentFactoryResolver)};return new so(r,!1,!0,[{token:r,multi:!1,useClass:o}],ao.PrivateService,[],e.sourceSpan)}return null}function yr(t,e){return t.isAnimation?{name:"@"+t.name+"."+t.phase,target:e&&e.directive.isComponent?"component":null}:t}function vr(t,e,n){var r=0;return!n||!t.staticQueryIds.has(e)&&t.dynamicQueryIds.has(e)?r|=268435456:r|=134217728,r}/**
* @license
* Copyright Google Inc. All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
function mr(t,e,n,r){var o=new fp(e,t);n.forEach(function(t){return o.addOrMergeSummary({symbol:t.symbol,metadata:t.metadata})});for(var i=0;i<o.symbols.length;i++){var s=o.symbols[i];if(t.isLibraryFile(s.filePath)){var a=t.resolveSummary(s);if(!a){var u=e.resolveSymbol(s);u&&(a={symbol:u.symbol,metadata:u.metadata})}a&&o.addOrMergeSummary(a)}}return r.forEach(function(e){if(o.addOrMergeSummary({symbol:e.type.reference,metadata:null,type:e}),e.summaryKind===Io.NgModule){var n=e;n.exportedDirectives.concat(n.exportedPipes).forEach(function(e){var n=e.reference;if(t.isLibraryFile(n.filePath)){var r=t.resolveSummary(n);r&&o.addOrMergeSummary(r)}})}}),o.serialize()}function gr(t,e){return new dp(t).deserialize(e)}function _r(t,e,n){return e.dependencies.forEach(function(e){e.valuePlaceholder.reference=t.getStaticSymbol(br(e.moduleUrl,e.isShimmed,n),e.name)}),e.statements}function br(t,e,n){return t+(e?".shim":"")+".ngstyle"+n}function wr(t){if(!t.isComponent)throw new Error("Could not compile '"+C(t.type)+"' because it is not a component.")}function Er(t,e,n){var r=Tr(t,e,n);return Sr(t,r.ngModules,r.symbolsMissingModule,n)}function Cr(t,e,n){var r=Er(t,e,n);if(r.symbolsMissingModule&&r.symbolsMissingModule.length){throw g(r.symbolsMissingModule.map(function(t){return"Cannot determine the module for class "+t.name+" in "+t.filePath+"! Add "+t.name+" to the NgModule to fix it."}).join("\n"))}return r}function Sr(t,e,n,r){var o=new Map;e.forEach(function(t){return o.set(t.type.reference,t)});var i=new Map,s=new Map,a=new Map,u=new Map,c=new Map,l=new Set;t.forEach(function(t){var e=t.filePath;l.add(e),r.isInjectable(t)&&c.set(e,(c.get(e)||[]).concat(t))}),e.forEach(function(t){var e=t.type.reference.filePath;l.add(e),s.set(e,(s.get(e)||[]).concat(t.type.reference)),t.declaredDirectives.forEach(function(e){var n=e.reference.filePath;l.add(n),a.set(n,(a.get(n)||[]).concat(e.reference)),i.set(e.reference,t)}),t.declaredPipes.forEach(function(e){var n=e.reference.filePath;l.add(n),u.set(n,(u.get(n)||[]).concat(e.reference)),i.set(e.reference,t)})});var p=[];return l.forEach(function(t){var e=a.get(t)||[],n=u.get(t)||[],r=s.get(t)||[],o=c.get(t)||[];p.push({srcUrl:t,directives:e,pipes:n,ngModules:r,injectables:o})}),{ngModuleByPipeOrDirective:i,files:p,ngModules:e,symbolsMissingModule:n}}function xr(t,e,n){var r=[];return e.filter(function(t){return n.isSourceFile(t)}).forEach(function(e){t.getSymbolsOf(e).forEach(function(e){var n=t.resolveSymbol(e),o=n.metadata;o&&"error"!=o.__symbolic&&r.push(n.symbol)})}),r}function Tr(t,e,n){var r=new Map,o=[],i=new Set,s=function(t){if(r.has(t)||!e.isSourceFile(t.filePath))return!1;var o=n.getNgModuleMetadata(t,!1);return o&&(r.set(o.type.reference,o),o.declaredDirectives.forEach(function(t){return i.add(t.reference)}),o.declaredPipes.forEach(function(t){return i.add(t.reference)}),o.transitiveModule.modules.forEach(function(t){return s(t.reference)})),!!o};t.forEach(function(t){s(t)||!n.isDirective(t)&&!n.isPipe(t)||o.push(t)});var a=o.filter(function(t){return!i.has(t)});return{ngModules:Array.from(r.values()),symbolsMissingModule:a}}function Pr(t){return"object"==typeof t&&t.name&&t.filePath}function Ar(t){return t&&"ignore"==t.__symbolic}function Or(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":return(t.context&&t.context.name?"Calling function '"+t.context.name+"', f":"F")+"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 Mr(t){return"Error encountered resolving symbol values statically. "+Or(t)}function kr(t,e){if(!t)return{};var n={};return Object.keys(t).forEach(function(r){var o=e(t[r],r);Ar(o)||(mp.test(r)?Object.defineProperty(n,r,{enumerable:!1,configurable:!0,value:o}):n[r]=o)}),n}function Nr(t){return null===t||"function"!=typeof t&&"object"!=typeof t}function Ir(t,e,n,r){var o=new Error(t);return o.fileName=e,o.line=n,o.column=r,o}function Rr(t){return t.startsWith("___")?t.substr(1):t}/**
* @license
* Copyright Google Inc. All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
function Dr(t,e){var n=t.concat([new Mc(gn(e.map(function(t){return dn(t)})))]),r=new xp(null,null,null,new Map),o=new Pp,i=o.visitAllStatements(n,r);return null!=i?i.value:null}function Vr(t,e,n,r,o){for(var i=r.createChildWihtLocalVars(),s=0;s<t.length;s++)i.vars.set(t[s],e[s]);var a=o.visitAllStatements(n,i);return a?a.value:null}function Lr(t,e,n){var r={};t.getters.forEach(function(o){r[o.name]={configurable:!1,get:function(){var r=new xp(e,this,t.name,e.vars);return Vr([],[],o.body,r,n)}}}),t.methods.forEach(function(o){var i=o.params.map(function(t){return t.name});r[o.name]={writable:!1,configurable:!1,value:function(){for(var r=[],s=0;s<arguments.length;s++)r[s]=arguments[s];var a=new xp(e,this,t.name,e.vars);return Vr(i,r,o.body,a,n)}}});var o=t.constructorMethod.params.map(function(t){return t.name}),i=function(){for(var r=this,i=[],s=0;s<arguments.length;s++)i[s]=arguments[s];var a=new xp(e,this,t.name,e.vars);t.fields.forEach(function(t){r[t.name]=void 0}),Vr(o,i,t.constructorMethod.body,a,n)},s=t.parent?t.parent.visitExpression(n,e):Object;return i.prototype=Object.create(s.prototype,r),i}function Fr(t,e,n,r){return function(){for(var o=[],i=0;i<arguments.length;i++)o[i]=arguments[i];return Vr(t,o,e,n,r)}}/**
* @license
* Copyright Google Inc. All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
function jr(t,e,r){var o=e.toSource()+"\n//# sourceURL="+t,i=[],s=[];for(var a in r)i.push(a),s.push(r[a]);if(n.i(Kr.isDevMode)()){var u=(new(Function.bind.apply(Function,[void 0].concat(i.concat("return null;"))))).toString(),c=u.slice(0,u.indexOf("return null;")).split("\n").length-1;o+="\n"+e.toSourceMapGenerator(t,t,c).toJsComment()}return(new(Function.bind.apply(Function,[void 0].concat(i.concat(o))))).apply(void 0,s)}function Hr(t,e,n){var r=new kp,o=ol.createRoot(n),i=new Mc(gn(n.map(function(t){return dn(t)})));return r.visitAllStatements(e.concat([i]),o),jr(t,o,r.getArgs())}function Ur(t){if(!t.isComponent)throw new Error("Could not compile '"+C(t.type)+"' because it is not a component.")}function Br(t,e,n,r,o){return new ka(t,e,n,r.missingTranslation,o)}function qr(){Kr["ɵreflector"].reflectionCapabilities=new Kr["ɵReflectionCapabilities"]}function Gr(t){return{useJit:zr(t.map(function(t){return t.useJit})),defaultEncapsulation:zr(t.map(function(t){return t.defaultEncapsulation})),providers:Wr(t.map(function(t){return t.providers})),missingTranslation:zr(t.map(function(t){return t.missingTranslation}))}}function zr(t){for(var e=t.length-1;e>=0;e--)if(void 0!==t[e])return t[e]}function Wr(t){var e=[];return t.forEach(function(t){return t&&e.push.apply(e,t)}),e}var Kr=n(20);n.d(e,"b",function(){return Up}),n.d(e,"a",function(){return Cu});var Qr=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},Xr=(new Kr.Version("4.1.1"),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}()),Zr=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}(),Yr=function(){function t(t,e,n){this.name=t,this.value=e,this.sourceSpan=n}return t.prototype.visit=function(t,e){return t.visitAttr(this,e)},t}(),$r=function(){function t(t,e,n,r,o,i){this.name=t,this.type=e,this.securityContext=n,this.value=r,this.unit=o,this.sourceSpan=i}return t.prototype.visit=function(t,e){return t.visitElementProperty(this,e)},Object.defineProperty(t.prototype,"isAnimation",{get:function(){return this.type===co.Animation},enumerable:!0,configurable:!0}),t}(),Jr=function(){function t(t,e,n,r,o){this.name=t,this.target=e,this.phase=n,this.handler=r,this.sourceSpan=o}return t.calcFullName=function(t,e,n){return e?e+":"+t:n?"@"+t+"."+n:t},t.prototype.visit=function(t,e){return t.visitEvent(this,e)},Object.defineProperty(t.prototype,"fullName",{get:function(){return t.calcFullName(this.name,this.target,this.phase)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isAnimation",{get:function(){return!!this.phase},enumerable:!0,configurable:!0}),t}(),to=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}(),eo=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}(),no=function(){function t(t,e,n,r,o,i,s,a,u,c,l,p,h){this.name=t,this.attrs=e,this.inputs=n,this.outputs=r,this.references=o,this.directives=i,this.providers=s,this.hasViewContainer=a,this.queryMatches=u,this.children=c,this.ngContentIndex=l,this.sourceSpan=p,this.endSourceSpan=h}return t.prototype.visit=function(t,e){return t.visitElement(this,e)},t}(),ro=function(){function t(t,e,n,r,o,i,s,a,u,c,l){this.attrs=t,this.outputs=e,this.references=n,this.variables=r,this.directives=o,this.providers=i,this.hasViewContainer=s,this.queryMatches=a,this.children=u,this.ngContentIndex=c,this.sourceSpan=l}return t.prototype.visit=function(t,e){return t.visitEmbeddedTemplate(this,e)},t}(),oo=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}(),io=function(){function t(t,e,n,r,o,i){this.directive=t,this.inputs=e,this.hostProperties=n,this.hostEvents=r,this.contentQueryStartId=o,this.sourceSpan=i}return t.prototype.visit=function(t,e){return t.visitDirective(this,e)},t}(),so=function(){function t(t,e,n,r,o,i,s){this.token=t,this.multiProvider=e,this.eager=n,this.providers=r,this.providerType=o,this.lifecycleHooks=i,this.sourceSpan=s}return t.prototype.visit=function(t,e){return null},t}(),ao={};ao.PublicService=0,ao.PrivateService=1,ao.Component=2,ao.Directive=3,ao.Builtin=4,ao[ao.PublicService]="PublicService",ao[ao.PrivateService]="PrivateService",ao[ao.Component]="Component",ao[ao.Directive]="Directive",ao[ao.Builtin]="Builtin";var uo=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}(),co={};co.Property=0,co.Attribute=1,co.Class=2,co.Style=3,co.Animation=4,co[co.Property]="Property",co[co.Attribute]="Attribute",co[co.Class]="Class",co[co.Style]="Style",co[co.Animation]="Animation";var lo=function(){function t(t,e,n){this.filePath=t,this.name=e,this.members=n}return t.prototype.assertNoMembers=function(){if(this.members.length)throw new Error("Illegal state: symbol without members expected, but got "+JSON.stringify(this)+".")},t}(),po=function(){function t(){this.cache=new Map}return t.prototype.get=function(t,e,n){n=n||[];var r=n.length?"."+n.join("."):"",o='"'+t+'".'+e+r,i=this.cache.get(o);return i||(i=new lo(t,e,n),this.cache.set(o,i)),i},t}(),ho={};ho.RAW_TEXT=0,ho.ESCAPABLE_RAW_TEXT=1,ho.PARSABLE_DATA=2,ho[ho.RAW_TEXT]="RAW_TEXT",ho[ho.ESCAPABLE_RAW_TEXT]="ESCAPABLE_RAW_TEXT",ho[ho.PARSABLE_DATA]="PARSABLE_DATA";var fo={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:""},yo=function(){function t(t){var e=void 0===t?{}:t,n=e.closedByChildren,r=e.requiredParents,o=e.implicitNamespacePrefix,i=e.contentType,s=void 0===i?ho.PARSABLE_DATA:i,a=e.closedByParent,u=void 0!==a&&a,c=e.isVoid,l=void 0!==c&&c,p=e.ignoreFirstLf,h=void 0!==p&&p,f=this;this.closedByChildren={},this.closedByParent=!1,this.canSelfClose=!1,n&&n.length>0&&n.forEach(function(t){return f.closedByChildren[t]=!0}),this.isVoid=l,this.closedByParent=u||l,r&&r.length>0&&(this.requiredParents={},this.parentToAdd=r[0],r.forEach(function(t){return f.requiredParents[t]=!0})),this.implicitNamespacePrefix=o||null,this.contentType=s,this.ignoreFirstLf=h}return t.prototype.requireExtraParent=function(t){if(!this.requiredParents)return!1;if(!t)return!0;var e=t.toLowerCase();return!("template"===e||"ng-template"===t)&&1!=this.requiredParents[e]},t.prototype.isClosedByChild=function(t){return this.isVoid||t.toLowerCase()in this.closedByChildren},t}(),vo={base:new yo({isVoid:!0}),meta:new yo({isVoid:!0}),area:new yo({isVoid:!0}),embed:new yo({isVoid:!0}),link:new yo({isVoid:!0}),img:new yo({isVoid:!0}),input:new yo({isVoid:!0}),param:new yo({isVoid:!0}),hr:new yo({isVoid:!0}),br:new yo({isVoid:!0}),source:new yo({isVoid:!0}),track:new yo({isVoid:!0}),wbr:new yo({isVoid:!0}),p:new yo({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 yo({closedByChildren:["tbody","tfoot"]}),tbody:new yo({closedByChildren:["tbody","tfoot"],closedByParent:!0}),tfoot:new yo({closedByChildren:["tbody"],closedByParent:!0}),tr:new yo({closedByChildren:["tr"],requiredParents:["tbody","tfoot","thead"],closedByParent:!0}),td:new yo({closedByChildren:["td","th"],closedByParent:!0}),th:new yo({closedByChildren:["td","th"],closedByParent:!0}),col:new yo({requiredParents:["colgroup"],isVoid:!0}),svg:new yo({implicitNamespacePrefix:"svg"}),math:new yo({implicitNamespacePrefix:"math"}),li:new yo({closedByChildren:["li"],closedByParent:!0}),dt:new yo({closedByChildren:["dt","dd"]}),dd:new yo({closedByChildren:["dt","dd"],closedByParent:!0}),rb:new yo({closedByChildren:["rb","rt","rtc","rp"],closedByParent:!0}),rt:new yo({closedByChildren:["rb","rt","rtc","rp"],closedByParent:!0}),rtc:new yo({closedByChildren:["rb","rtc","rp"],closedByParent:!0}),rp:new yo({closedByChildren:["rb","rt","rtc","rp"],closedByParent:!0}),optgroup:new yo({closedByChildren:["optgroup"],closedByParent:!0}),option:new yo({closedByChildren:["option","optgroup"],closedByParent:!0}),pre:new yo({ignoreFirstLf:!0}),listing:new yo({ignoreFirstLf:!0}),style:new yo({contentType:ho.RAW_TEXT}),script:new yo({contentType:ho.RAW_TEXT}),title:new yo({contentType:ho.ESCAPABLE_RAW_TEXT}),textarea:new yo({contentType:ho.ESCAPABLE_RAW_TEXT,ignoreFirstLf:!0})},mo=new yo,go=new RegExp("(\\:not\\()|([-\\w]+)|(?:\\.([-\\w]+))|(?:\\[([-.\\w*]+)(?:=([\"']?)([^\\]\"']*)\\5)?\\])|(\\))|(\\s*,\\s*)","g"),_o=function(){function t(){this.element=null,this.classNames=[],this.attrs=[],this.notSelectors=[]}return t.parse=function(e){var n,r=[],o=function(t,e){e.notSelectors.length>0&&!e.element&&0==e.classNames.length&&0==e.attrs.length&&(e.element="*"),t.push(e)},i=new t,s=i,a=!1;for(go.lastIndex=0;n=go.exec(e);){if(n[1]){if(a)throw new Error("Nesting :not is not allowed in a selector");a=!0,s=new t,i.notSelectors.push(s)}if(n[2]&&s.setElement(n[2]),n[3]&&s.addClassName(n[3]),n[4]&&s.addAttribute(n[4],n[6]),n[7]&&(a=!1,s=i),n[8]){if(a)throw new Error("Multiple selectors in :not are not supported");o(r,i),i=s=new t}}return o(r,i),r},t.prototype.isElementSelector=function(){return this.hasElementSelector()&&0==this.classNames.length&&0==this.attrs.length&&0===this.notSelectors.length},t.prototype.hasElementSelector=function(){return!!this.element},t.prototype.setElement=function(t){void 0===t&&(t=null),this.element=t},t.prototype.getMatchingElementTemplate=function(){for(var t=this.element||"div",e=this.classNames.length>0?' class="'+this.classNames.join(" ")+'"':"",n="",r=0;r<this.attrs.length;r+=2){n+=" "+this.attrs[r]+(""!==this.attrs[r+1]?'="'+this.attrs[r+1]+'"':"")}return l(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}(),bo=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 wo(t),this._listContexts.push(n));for(var r=0;r<t.length;r++)this._addSelectable(t[r],e,n)},t.prototype._addSelectable=function(t,e,n){var r=this,o=t.element,i=t.classNames,s=t.attrs,a=new Eo(t,e,n);if(o){var u=0===s.length&&0===i.length;u?this._addTerminal(r._elementMap,o,a):r=this._addPartial(r._elementPartialMap,o)}if(i)for(var c=0;c<i.length;c++){var u=0===s.length&&c===i.length-1,l=i[c];u?this._addTerminal(r._classMap,l,a):r=this._addPartial(r._classPartialMap,l)}if(s)for(var c=0;c<s.length;c+=2){var u=c===s.length-2,p=s[c],h=s[c+1];if(u){var f=r._attrValueMap,d=f.get(p);d||(d=new Map,f.set(p,d)),this._addTerminal(d,h,a)}else{var y=r._attrValuePartialMap,v=y.get(p);v||(v=new Map,y.set(p,v)),r=this._addPartial(v,h)}}},t.prototype._addTerminal=function(t,e,n){var r=t.get(e);r||(r=[],t.set(e,r)),r.push(n)},t.prototype._addPartial=function(e,n){var r=e.get(n);return r||(r=new t,e.set(n,r)),r},t.prototype.match=function(t,e){for(var n=!1,r=t.element,o=t.classNames,i=t.attrs,s=0;s<this._listContexts.length;s++)this._listContexts[s].alreadyMatched=!1;if(n=this._matchTerminal(this._elementMap,r,t,e)||n,n=this._matchPartial(this._elementPartialMap,r,t,e)||n,o)for(var s=0;s<o.length;s++){var a=o[s];n=this._matchTerminal(this._classMap,a,t,e)||n,n=this._matchPartial(this._classPartialMap,a,t,e)||n}if(i)for(var s=0;s<i.length;s+=2){var u=i[s],c=i[s+1],l=this._attrValueMap.get(u);c&&(n=this._matchTerminal(l,"",t,e)||n),n=this._matchTerminal(l,c,t,e)||n;var p=this._attrValuePartialMap.get(u);c&&(n=this._matchPartial(p,"",t,e)||n),n=this._matchPartial(p,c,t,e)||n}return n},t.prototype._matchTerminal=function(t,e,n,r){if(!t||"string"!=typeof e)return!1;var o=t.get(e)||[],i=t.get("*");if(i&&(o=o.concat(i)),0===o.length)return!1;for(var s,a=!1,u=0;u<o.length;u++)s=o[u],a=s.finalize(n,r)||a;return a},t.prototype._matchPartial=function(t,e,n,r){if(!t||"string"!=typeof e)return!1;var o=t.get(e);return!!o&&o.match(n,r)},t}(),wo=function(){function t(t){this.selectors=t,this.alreadyMatched=!1}return t}(),Eo=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)){n=!bo.createNotMatcher(this.notSelectors).match(t,null)}return!n||!e||this.listContext&&this.listContext.alreadyMatched||(this.listContext&&(this.listContext.alreadyMatched=!0),e(this.selector,this.cbContext)),n},t}(),Co="",So=/-+([a-z0-9])/g,xo=function(){function t(){}return t.prototype.visitArray=function(t,e){var n=this;return t.map(function(t){return y(t,n,e)})},t.prototype.visitStringMap=function(t,e){var n=this,r={};return Object.keys(t).forEach(function(o){r[o]=y(t[o],n,e)}),r},t.prototype.visitPrimitive=function(t,e){return t},t.prototype.visitOther=function(t,e){return t},t}(),To=function(){function t(t,e){void 0===e&&(e=null),this.syncResult=t,this.asyncResult=e,e||(this.asyncResult=Promise.resolve(t))}return t}(),Po="ngSyntaxError",Ao=Object.getPrototypeOf({}),Oo=(function(){function t(t,e){void 0===t&&(t=null),void 0===e&&(e=null),this.name=t,this.definitions=e}}(),function(){function t(){}return t}()),Mo=(function(t){function e(e,n){var r=t.call(this)||this;return r.stateNameExpr=e,r.styles=n,r}Qr(e,t)}(Oo),function(t){function e(e,n){var r=t.call(this)||this;return r.stateChangeExpr=e,r.steps=n,r}Qr(e,t)}(Oo),function(){function t(){}return t}()),ko=(function(t){function e(e){void 0===e&&(e=[]);var n=t.call(this)||this;return n.steps=e,n}Qr(e,t)}(Mo),function(t){function e(e,n){void 0===n&&(n=null);var r=t.call(this)||this;return r.offset=e,r.styles=n,r}Qr(e,t)}(Mo),function(t){function e(e,n){void 0===e&&(e=0),void 0===n&&(n=null);var r=t.call(this)||this;return r.timings=e,r.styles=n,r}Qr(e,t)}(Mo),function(t){function e(e){void 0===e&&(e=null);var n=t.call(this)||this;return n.steps=e,n}return Qr(e,t),e}(Mo)),No=(function(t){function e(e){return void 0===e&&(e=null),t.call(this,e)||this}Qr(e,t)}(ko),function(t){function e(e){return void 0===e&&(e=null),t.call(this,e)||this}Qr(e,t)}(ko),0),Io={};Io.Pipe=0,Io.Directive=1,Io.NgModule=2,Io.Injectable=3,Io[Io.Pipe]="Pipe",Io[Io.Directive]="Directive",Io[Io.NgModule]="NgModule",Io[Io.Injectable]="Injectable";var Ro=function(){function t(t){var e=void 0===t?{}:t,n=e.moduleUrl,r=e.styles,o=e.styleUrls;this.moduleUrl=n||null,this.styles=N(r),this.styleUrls=N(o)}return t}(),Do=function(){function t(t){var e=t.encapsulation,n=t.template,r=t.templateUrl,o=t.styles,i=t.styleUrls,s=t.externalStylesheets,a=t.animations,u=t.ngContentSelectors,c=t.interpolation,l=t.isInline;if(this.encapsulation=e,this.template=n,this.templateUrl=r,this.styles=N(o),this.styleUrls=N(i),this.externalStylesheets=N(s),this.animations=a?I(a):[],this.ngContentSelectors=u||[],c&&2!=c.length)throw new Error("'interpolation' should have a start and an end symbol.");this.interpolation=c,this.isInline=l}return t.prototype.toSummary=function(){return{animations:this.animations.map(function(t){return t.name}),ngContentSelectors:this.ngContentSelectors,encapsulation:this.encapsulation}},t}(),Vo=function(){function t(t){var e=t.isHost,n=t.type,r=t.isComponent,o=t.selector,i=t.exportAs,s=t.changeDetection,a=t.inputs,u=t.outputs,c=t.hostListeners,l=t.hostProperties,p=t.hostAttributes,h=t.providers,f=t.viewProviders,d=t.queries,y=t.viewQueries,v=t.entryComponents,m=t.template,g=t.componentViewType,_=t.rendererType,b=t.componentFactory;this.isHost=!!e,this.type=n,this.isComponent=r,this.selector=o,this.exportAs=i,this.changeDetection=s,this.inputs=a,this.outputs=u,this.hostListeners=c,this.hostProperties=l,this.hostAttributes=p,this.providers=N(h),this.viewProviders=N(f),this.queries=N(d),this.viewQueries=N(y),this.entryComponents=N(v),this.template=m,this.componentViewType=g,this.rendererType=_,this.componentFactory=b}return t.create=function(e){var n=e.isHost,r=e.type,o=e.isComponent,i=e.selector,s=e.exportAs,a=e.changeDetection,u=e.inputs,c=e.outputs,l=e.host,p=e.providers,f=e.viewProviders,d=e.queries,y=e.viewQueries,v=e.entryComponents,m=e.template,g=e.componentViewType,_=e.rendererType,b=e.componentFactory,w={},E={},C={};null!=l&&Object.keys(l).forEach(function(t){var e=l[t],n=t.match(/^(?:(?:\[([^\]]+)\])|(?:\(([^\)]+)\)))|(\@[-\w]+)$/);null===n?C[t]=e:null!=n[1]?E[n[1]]=e:null!=n[2]&&(w[n[2]]=e)});var S={};null!=u&&u.forEach(function(t){var e=h(t,[t,t]);S[e[0]]=e[1]});var x={};return null!=c&&c.forEach(function(t){var e=h(t,[t,t]);x[e[0]]=e[1]}),new t({isHost:n,type:r,isComponent:!!o,selector:i,exportAs:s,changeDetection:a,inputs:S,outputs:x,hostListeners:w,hostProperties:E,hostAttributes:C,providers:p,viewProviders:f,queries:d,viewQueries:y,entryComponents:v,template:m,componentViewType:g,rendererType:_,componentFactory:b})},t.prototype.toSummary=function(){return{summaryKind:Io.Directive,type:this.type,isComponent:this.isComponent,selector:this.selector,exportAs:this.exportAs,inputs:this.inputs,outputs:this.outputs,hostListeners:this.hostListeners,hostProperties:this.hostProperties,hostAttributes:this.hostAttributes,providers:this.providers,viewProviders:this.viewProviders,queries:this.queries,viewQueries:this.viewQueries,entryComponents:this.entryComponents,changeDetection:this.changeDetection,template:this.template&&this.template.toSummary(),componentViewType:this.componentViewType,rendererType:this.rendererType,componentFactory:this.componentFactory}},t}(),Lo=function(){function t(t){var e=t.type,n=t.name,r=t.pure;this.type=e,this.name=n,this.pure=!!r}return t.prototype.toSummary=function(){return{summaryKind:Io.Pipe,type:this.type,name:this.name,pure:this.pure}},t}(),Fo=function(){function t(t){var e=t.type,n=t.providers,r=t.declaredDirectives,o=t.exportedDirectives,i=t.declaredPipes,s=t.exportedPipes,a=t.entryComponents,u=t.bootstrapComponents,c=t.importedModules,l=t.exportedModules,p=t.schemas,h=t.transitiveModule,f=t.id;this.type=e||null,this.declaredDirectives=N(r),this.exportedDirectives=N(o),this.declaredPipes=N(i),this.exportedPipes=N(s),this.providers=N(n),this.entryComponents=N(a),this.bootstrapComponents=N(u),this.importedModules=N(c),this.exportedModules=N(l),this.schemas=N(p),this.id=f||null,this.transitiveModule=h||null}return t.prototype.toSummary=function(){var t=this.transitiveModule;return{summaryKind:Io.NgModule,type:this.type,entryComponents:t.entryComponents,providers:t.providers,modules:t.modules,exportedDirectives:t.exportedDirectives,exportedPipes:t.exportedPipes}},t}(),jo=function(){function t(){this.directivesSet=new Set,this.directives=[],this.exportedDirectivesSet=new Set,this.exportedDirectives=[],this.pipesSet=new Set,this.pipes=[],this.exportedPipesSet=new Set,this.exportedPipes=[],this.modulesSet=new Set,this.modules=[],this.entryComponentsSet=new Set,this.entryComponents=[],this.providers=[]}return t.prototype.addProvider=function(t,e){this.providers.push({provider:t,module:e})},t.prototype.addDirective=function(t){this.directivesSet.has(t.reference)||(this.directivesSet.add(t.reference),this.directives.push(t))},t.prototype.addExportedDirective=function(t){this.exportedDirectivesSet.has(t.reference)||(this.exportedDirectivesSet.add(t.reference),this.exportedDirectives.push(t))},t.prototype.addPipe=function(t){this.pipesSet.has(t.reference)||(this.pipesSet.add(t.reference),this.pipes.push(t))},t.prototype.addExportedPipe=function(t){this.exportedPipesSet.has(t.reference)||(this.exportedPipesSet.add(t.reference),this.exportedPipes.push(t))},t.prototype.addModule=function(t){this.modulesSet.has(t.reference)||(this.modulesSet.add(t.reference),this.modules.push(t))},t.prototype.addEntryComponent=function(t){this.entryComponentsSet.has(t.componentType)||(this.entryComponentsSet.add(t.componentType),this.entryComponents.push(t))},t}(),Ho=function(){function t(t,e){var n=e.useClass,r=e.useValue,o=e.useExisting,i=e.useFactory,s=e.deps,a=e.multi;this.token=t,this.useClass=n||null,this.useValue=r,this.useExisting=o,this.useFactory=i||null,this.dependencies=s||null,this.multi=!!a}return t}(),Uo=function(){function t(t){var e=void 0===t?{}:t,n=e.defaultEncapsulation,r=void 0===n?Kr.ViewEncapsulation.Emulated:n,o=e.useJit,i=void 0===o||o,s=e.missingTranslation,a=e.enableLegacyTemplate;this.defaultEncapsulation=r,this.useJit=!!i,this.missingTranslation=s||null,this.enableLegacyTemplate=!1!==a}return t}(),Bo=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}(),qo=function(){function t(t,e){this.start=t,this.end=e}return t}(),Go=function(){function t(t){this.span=t}return t.prototype.visit=function(t,e){return void 0===e&&(e=null),null},t.prototype.toString=function(){return"AST"},t}(),zo=function(t){function e(e,n,r,o){var i=t.call(this,e)||this;return i.prefix=n,i.uninterpretedExpression=r,i.location=o,i}return Qr(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}(Go),Wo=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Qr(e,t),e.prototype.visit=function(t,e){void 0===e&&(e=null)},e}(Go),Ko=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Qr(e,t),e.prototype.visit=function(t,e){return void 0===e&&(e=null),t.visitImplicitReceiver(this,e)},e}(Go),Qo=function(t){function e(e,n){var r=t.call(this,e)||this;return r.expressions=n,r}return Qr(e,t),e.prototype.visit=function(t,e){return void 0===e&&(e=null),t.visitChain(this,e)},e}(Go),Xo=function(t){function e(e,n,r,o){var i=t.call(this,e)||this;return i.condition=n,i.trueExp=r,i.falseExp=o,i}return Qr(e,t),e.prototype.visit=function(t,e){return void 0===e&&(e=null),t.visitConditional(this,e)},e}(Go),Zo=function(t){function e(e,n,r){var o=t.call(this,e)||this;return o.receiver=n,o.name=r,o}return Qr(e,t),e.prototype.visit=function(t,e){return void 0===e&&(e=null),t.visitPropertyRead(this,e)},e}(Go),Yo=function(t){function e(e,n,r,o){var i=t.call(this,e)||this;return i.receiver=n,i.name=r,i.value=o,i}return Qr(e,t),e.prototype.visit=function(t,e){return void 0===e&&(e=null),t.visitPropertyWrite(this,e)},e}(Go),$o=function(t){function e(e,n,r){var o=t.call(this,e)||this;return o.receiver=n,o.name=r,o}return Qr(e,t),e.prototype.visit=function(t,e){return void 0===e&&(e=null),t.visitSafePropertyRead(this,e)},e}(Go),Jo=function(t){function e(e,n,r){var o=t.call(this,e)||this;return o.obj=n,o.key=r,o}return Qr(e,t),e.prototype.visit=function(t,e){return void 0===e&&(e=null),t.visitKeyedRead(this,e)},e}(Go),ti=function(t){function e(e,n,r,o){var i=t.call(this,e)||this;return i.obj=n,i.key=r,i.value=o,i}return Qr(e,t),e.prototype.visit=function(t,e){return void 0===e&&(e=null),t.visitKeyedWrite(this,e)},e}(Go),ei=function(t){function e(e,n,r,o){var i=t.call(this,e)||this;return i.exp=n,i.name=r,i.args=o,i}return Qr(e,t),e.prototype.visit=function(t,e){return void 0===e&&(e=null),t.visitPipe(this,e)},e}(Go),ni=function(t){function e(e,n){var r=t.call(this,e)||this;return r.value=n,r}return Qr(e,t),e.prototype.visit=function(t,e){return void 0===e&&(e=null),t.visitLiteralPrimitive(this,e)},e}(Go),ri=function(t){function e(e,n){var r=t.call(this,e)||this;return r.expressions=n,r}return Qr(e,t),e.prototype.visit=function(t,e){return void 0===e&&(e=null),t.visitLiteralArray(this,e)},e}(Go),oi=function(t){function e(e,n,r){var o=t.call(this,e)||this;return o.keys=n,o.values=r,o}return Qr(e,t),e.prototype.visit=function(t,e){return void 0===e&&(e=null),t.visitLiteralMap(this,e)},e}(Go),ii=function(t){function e(e,n,r){var o=t.call(this,e)||this;return o.strings=n,o.expressions=r,o}return Qr(e,t),e.prototype.visit=function(t,e){return void 0===e&&(e=null),t.visitInterpolation(this,e)},e}(Go),si=function(t){function e(e,n,r,o){var i=t.call(this,e)||this;return i.operation=n,i.left=r,i.right=o,i}return Qr(e,t),e.prototype.visit=function(t,e){return void 0===e&&(e=null),t.visitBinary(this,e)},e}(Go),ai=function(t){function e(e,n){var r=t.call(this,e)||this;return r.expression=n,r}return Qr(e,t),e.prototype.visit=function(t,e){return void 0===e&&(e=null),t.visitPrefixNot(this,e)},e}(Go),ui=function(t){function e(e,n,r,o){var i=t.call(this,e)||this;return i.receiver=n,i.name=r,i.args=o,i}return Qr(e,t),e.prototype.visit=function(t,e){return void 0===e&&(e=null),t.visitMethodCall(this,e)},e}(Go),ci=function(t){function e(e,n,r,o){var i=t.call(this,e)||this;return i.receiver=n,i.name=r,i.args=o,i}return Qr(e,t),e.prototype.visit=function(t,e){return void 0===e&&(e=null),t.visitSafeMethodCall(this,e)},e}(Go),li=function(t){function e(e,n,r){var o=t.call(this,e)||this;return o.target=n,o.args=r,o}return Qr(e,t),e.prototype.visit=function(t,e){return void 0===e&&(e=null),t.visitFunctionCall(this,e)},e}(Go),pi=function(t){function e(e,n,r,o){var i=t.call(this,new qo(0,null==n?0:n.length))||this;return i.ast=e,i.source=n,i.location=r,i.errors=o,i}return Qr(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}(Go),hi=function(){function t(t,e,n,r,o){this.span=t,this.key=e,this.keyIsVar=n,this.name=r,this.expression=o}return t}(),fi=function(){function t(){}return t.prototype.visitBinary=function(t,e){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,e){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(t,e){return null},t.prototype.visitInterpolation=function(t,e){return this.visitAll(t.expressions,e)},t.prototype.visitKeyedRead=function(t,e){return t.obj.visit(this),t.key.visit(this),null},t.prototype.visitKeyedWrite=function(t,e){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(t,e){return null},t.prototype.visitMethodCall=function(t,e){return t.receiver.visit(this),this.visitAll(t.args,e)},t.prototype.visitPrefixNot=function(t,e){return t.expression.visit(this),null},t.prototype.visitPropertyRead=function(t,e){return t.receiver.visit(this),null},t.prototype.visitPropertyWrite=function(t,e){return t.receiver.visit(this),t.value.visit(this),null},t.prototype.visitSafePropertyRead=function(t,e){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(t,e){return null},t}(),di=function(){function t(){}return t.prototype.visitImplicitReceiver=function(t,e){return t},t.prototype.visitInterpolation=function(t,e){return new ii(t.span,t.strings,this.visitAll(t.expressions))},t.prototype.visitLiteralPrimitive=function(t,e){return new ni(t.span,t.value)},t.prototype.visitPropertyRead=function(t,e){return new Zo(t.span,t.receiver.visit(this),t.name)},t.prototype.visitPropertyWrite=function(t,e){return new Yo(t.span,t.receiver.visit(this),t.name,t.value.visit(this))},t.prototype.visitSafePropertyRead=function(t,e){return new $o(t.span,t.receiver.visit(this),t.name)},t.prototype.visitMethodCall=function(t,e){return new ui(t.span,t.receiver.visit(this),t.name,this.visitAll(t.args))},t.prototype.visitSafeMethodCall=function(t,e){return new ci(t.span,t.receiver.visit(this),t.name,this.visitAll(t.args))},t.prototype.visitFunctionCall=function(t,e){return new li(t.span,t.target.visit(this),this.visitAll(t.args))},t.prototype.visitLiteralArray=function(t,e){return new ri(t.span,this.visitAll(t.expressions))},t.prototype.visitLiteralMap=function(t,e){return new oi(t.span,t.keys,this.visitAll(t.values))},t.prototype.visitBinary=function(t,e){return new si(t.span,t.operation,t.left.visit(this),t.right.visit(this))},t.prototype.visitPrefixNot=function(t,e){return new ai(t.span,t.expression.visit(this))},t.prototype.visitConditional=function(t,e){return new Xo(t.span,t.condition.visit(this),t.trueExp.visit(this),t.falseExp.visit(this))},t.prototype.visitPipe=function(t,e){return new ei(t.span,t.exp.visit(this),t.name,this.visitAll(t.args))},t.prototype.visitKeyedRead=function(t,e){return new Jo(t.span,t.obj.visit(this),t.key.visit(this))},t.prototype.visitKeyedWrite=function(t,e){return new ti(t.span,t.obj.visit(this),t.key.visit(this),t.value.visit(this))},t.prototype.visitAll=function(t){for(var e=new Array(t.length),n=0;n<t.length;++n)e[n]=t[n].visit(this);return e},t.prototype.visitChain=function(t,e){return new Qo(t.span,this.visitAll(t.expressions))},t.prototype.visitQuote=function(t,e){return new zo(t.span,t.prefix,t.uninterpretedExpression,t.location)},t}(),yi=0,vi=9,mi=10,gi=11,_i=12,bi=13,wi=32,Ei=34,Ci=36,Si=39,xi=43,Ti=45,Pi=47,Ai=59,Oi=61,Mi=62,ki=48,Ni=57,Ii=65,Ri=69,Di=70,Vi=90,Li=95,Fi=97,ji=101,Hi=102,Ui=110,Bi=114,qi=116,Gi=118,zi=122,Wi=123,Ki=160,Qi=96,Xi=[/^\s*$/,/[<>]/,/^[{}]$/,/&(#|[a-z])/i,/^\/\//],Zi=function(){function t(t,e){this.start=t,this.end=e}return t.fromArray=function(e){return e?(z("interpolation",e),new t(e[0],e[1])):Yi},t}(),Yi=new Zi("{{","}}"),$i={};$i.Character=0,$i.Identifier=1,$i.Keyword=2,$i.String=3,$i.Operator=4,$i.Number=5,$i.Error=6,$i[$i.Character]="Character",$i[$i.Identifier]="Identifier",$i[$i.Keyword]="Keyword",$i[$i.String]="String",$i[$i.Operator]="Operator",$i[$i.Number]="Number",$i[$i.Error]="Error";var Ji=["var","let","as","null","undefined","true","false","if","else","this"],ts=function(){function t(){}return t.prototype.tokenize=function(t){for(var e=new rs(t),n=[],r=e.scanToken();null!=r;)n.push(r),r=e.scanToken();return n},t}();ts.decorators=[{type:q}],ts.ctorParameters=function(){return[]};var es=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==$i.Character&&this.numValue==t},t.prototype.isNumber=function(){return this.type==$i.Number},t.prototype.isString=function(){return this.type==$i.String},t.prototype.isOperator=function(t){return this.type==$i.Operator&&this.strValue==t},t.prototype.isIdentifier=function(){return this.type==$i.Identifier},t.prototype.isKeyword=function(){return this.type==$i.Keyword},t.prototype.isKeywordLet=function(){return this.type==$i.Keyword&&"let"==this.strValue},t.prototype.isKeywordAs=function(){return this.type==$i.Keyword&&"as"==this.strValue},t.prototype.isKeywordNull=function(){return this.type==$i.Keyword&&"null"==this.strValue},t.prototype.isKeywordUndefined=function(){return this.type==$i.Keyword&&"undefined"==this.strValue},t.prototype.isKeywordTrue=function(){return this.type==$i.Keyword&&"true"==this.strValue},t.prototype.isKeywordFalse=function(){return this.type==$i.Keyword&&"false"==this.strValue},t.prototype.isKeywordThis=function(){return this.type==$i.Keyword&&"this"==this.strValue},t.prototype.isError=function(){return this.type==$i.Error},t.prototype.toNumber=function(){return this.type==$i.Number?this.numValue:-1},t.prototype.toString=function(){switch(this.type){case $i.Character:case $i.Identifier:case $i.Keyword:case $i.Operator:case $i.String:case $i.Error:return this.strValue;case $i.Number:return this.numValue.toString();default:return null}},t}(),ns=new es(-1,$i.Character,0,""),rs=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?yi:this.input.charCodeAt(this.index)},t.prototype.scanToken=function(){for(var t=this.input,e=this.length,n=this.peek,r=this.index;n<=wi;){if(++r>=e){n=yi;break}n=t.charCodeAt(r)}if(this.peek=n,this.index=r,r>=e)return null;if(J(n))return this.scanIdentifier();if(H(n))return this.scanNumber(r);var o=r;switch(n){case 46:return this.advance(),H(this.peek)?this.scanNumber(o):W(o,46);case 40:case 41:case Wi:case 125:case 91:case 93:case 44:case 58:case Ai:return this.scanCharacter(o,n);case Si:case Ei:return this.scanString();case 35:case xi:case Ti:case 42:case Pi:case 37:case 94:return this.scanOperator(o,String.fromCharCode(n));case 63:return this.scanComplexOperator(o,"?",46,".");case 60:case Mi:return this.scanComplexOperator(o,String.fromCharCode(n),Oi,"=");case 33:case Oi:return this.scanComplexOperator(o,String.fromCharCode(n),Oi,"=",Oi,"=");case 38:return this.scanComplexOperator(o,"&",38,"&");case 124:return this.scanComplexOperator(o,"|",124,"|");case Ki:for(;j(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(),W(t,e)},t.prototype.scanOperator=function(t,e){return this.advance(),X(t,e)},t.prototype.scanComplexOperator=function(t,e,n,r,o,i){this.advance();var s=e;return this.peek==n&&(this.advance(),s+=r),null!=o&&this.peek==o&&(this.advance(),s+=i),X(t,s)},t.prototype.scanIdentifier=function(){var t=this.index;for(this.advance();et(this.peek);)this.advance();var e=this.input.substring(t,this.index);return Ji.indexOf(e)>-1?Q(t,e):K(t,e)},t.prototype.scanNumber=function(t){var e=this.index===t;for(this.advance();;){if(H(this.peek));else if(46==this.peek)e=!1;else{if(!nt(this.peek))break;if(this.advance(),rt(this.peek)&&this.advance(),!H(this.peek))return this.error("Invalid exponent",-1);e=!1}this.advance()}var n=this.input.substring(t,this.index);return Y(t,e?st(n):parseFloat(n))},t.prototype.scanString=function(){var t=this.index,e=this.peek;this.advance();for(var n="",r=this.index,o=this.input;this.peek!=e;)if(92==this.peek){n+=o.substring(r,this.index),this.advance();var i=void 0;if(this.peek=this.peek,117==this.peek){var s=o.substring(this.index+1,this.index+5);if(!/^[0-9a-f]+$/i.test(s))return this.error("Invalid unicode escape [\\u"+s+"]",0);i=parseInt(s,16);for(var a=0;a<5;a++)this.advance()}else i=it(this.peek),this.advance();n+=String.fromCharCode(i),r=this.index}else{if(this.peek==yi)return this.error("Unterminated quote",0);this.advance()}var u=o.substring(r,this.index);return this.advance(),Z(t,n+u)},t.prototype.error=function(t,e){var n=this.index+e;return $(n,"Lexer Error: "+t+" at column "+n+" in expression ["+this.input+"]")},t}(),os=function(){function t(t,e,n){this.strings=t,this.expressions=e,this.offsets=n}return t}(),is=function(){function t(t,e,n){this.templateBindings=t,this.warnings=e,this.errors=n}return t}(),ss=function(){function t(t){this._lexer=t,this.errors=[]}return t.prototype.parseAction=function(t,e,n){void 0===n&&(n=Yi),this._checkNoInterpolation(t,e,n);var r=this._stripComments(t),o=this._lexer.tokenize(this._stripComments(t)),i=new as(t,e,o,r.length,!0,this.errors,t.length-r.length).parseChain();return new pi(i,t,e,this.errors)},t.prototype.parseBinding=function(t,e,n){void 0===n&&(n=Yi);var r=this._parseBindingAst(t,e,n);return new pi(r,t,e,this.errors)},t.prototype.parseSimpleBinding=function(t,e,n){void 0===n&&(n=Yi);var r=this._parseBindingAst(t,e,n),o=us.check(r);return o.length>0&&this._reportError("Host binding expression cannot contain "+o.join(" "),t,e),new pi(r,t,e,this.errors)},t.prototype._reportError=function(t,e,n,r){this.errors.push(new Bo(t,e,n,r))},t.prototype._parseBindingAst=function(t,e,n){var r=this._parseQuote(t,e);if(null!=r)return r;this._checkNoInterpolation(t,e,n);var o=this._stripComments(t),i=this._lexer.tokenize(o);return new as(t,e,i,o.length,!1,this.errors,t.length-o.length).parseChain()},t.prototype._parseQuote=function(t,e){if(null==t)return null;var n=t.indexOf(":");if(-1==n)return null;var r=t.substring(0,n).trim();if(!tt(r))return null;var o=t.substring(n+1);return new zo(new qo(0,t.length),r,o,e)},t.prototype.parseTemplateBindings=function(t,e,n){var r=this._lexer.tokenize(e);if(t){var o=this._lexer.tokenize(t).map(function(t){return t.index=0,t});r.unshift.apply(r,o)}return new as(e,n,r,e.length,!1,this.errors,0).parseTemplateBindings()},t.prototype.parseInterpolation=function(t,e,n){void 0===n&&(n=Yi);var r=this.splitInterpolation(t,e,n);if(null==r)return null;for(var o=[],i=0;i<r.expressions.length;++i){var s=r.expressions[i],a=this._stripComments(s),u=this._lexer.tokenize(this._stripComments(r.expressions[i])),c=new as(t,e,u,a.length,!1,this.errors,r.offsets[i]+(s.length-a.length)).parseChain();o.push(c)}return new pi(new ii(new qo(0,null==t?0:t.length),r.strings,o),t,e,this.errors)},t.prototype.splitInterpolation=function(t,e,n){void 0===n&&(n=Yi);var r=at(n),o=t.split(r);if(o.length<=1)return null;for(var i=[],s=[],a=[],u=0,c=0;c<o.length;c++){var l=o[c];c%2==0?(i.push(l),u+=l.length):l.trim().length>0?(u+=n.start.length,s.push(l),a.push(u),u+=l.length+n.end.length):(this._reportError("Blank expressions are not allowed in interpolated strings",t,"at column "+this._findInterpolationErrorColumn(o,c,n)+" in",e),s.push("$implict"),a.push(u))}return new os(i,s,a)},t.prototype.wrapLiteralPrimitive=function(t,e){return new pi(new ni(new qo(0,null==t?0:t.length),t),t,e,this.errors)},t.prototype._stripComments=function(t){var e=this._commentStart(t);return null!=e?t.substring(0,e).trim():t},t.prototype._commentStart=function(t){for(var e=null,n=0;n<t.length-1;n++){var r=t.charCodeAt(n),o=t.charCodeAt(n+1);if(r===Pi&&o==Pi&&null==e)return n;e===r?e=null:null==e&&ot(r)&&(e=r)}return null},t.prototype._checkNoInterpolation=function(t,e,n){var r=at(n),o=t.split(r);o.length>1&&this._reportError("Got interpolation ("+n.start+n.end+") where expression was expected",t,"at column "+this._findInterpolationErrorColumn(o,1,n)+" in",e)},t.prototype._findInterpolationErrorColumn=function(t,e,n){for(var r="",o=0;o<e;o++)r+=o%2==0?t[o]:""+n.start+t[o]+n.end;return r.length},t}();ss.decorators=[{type:q}],ss.ctorParameters=function(){return[{type:ts}]};var as=function(){function t(t,e,n,r,o,i,s){this.input=t,this.location=e,this.tokens=n,this.inputLength=r,this.parseAction=o,this.errors=i,this.offset=s,this.rparensExpected=0,this.rbracketsExpected=0,this.rbracesExpected=0,this.index=0}return t.prototype.peek=function(t){var e=this.index+t;return e<this.tokens.length?this.tokens[e]:ns},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 qo(t,this.inputIndex)},t.prototype.advance=function(){this.index++},t.prototype.optionalCharacter=function(t){return!!this.next.isCharacter(t)&&(this.advance(),!0)},t.prototype.peekKeywordLet=function(){return this.next.isKeywordLet()},t.prototype.peekKeywordAs=function(){return this.next.isKeywordAs()},t.prototype.expectCharacter=function(t){this.optionalCharacter(t)||this.error("Missing expected "+String.fromCharCode(t))},t.prototype.optionalOperator=function(t){return!!this.next.isOperator(t)&&(this.advance(),!0)},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(Ai))for(this.parseAction||this.error("Binding expression cannot contain chained expression");this.optionalCharacter(Ai););else this.index<this.tokens.length&&this.error("Unexpected token '"+this.next+"'")}return 0==t.length?new Wo(this.span(e)):1==t.length?t[0]:new Qo(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(58);)n.push(this.parseExpression());t=new ei(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(58))r=this.parsePipe();else{var o=this.inputIndex,i=this.input.substring(t,o);this.error("Conditional expression "+i+" requires all 3 expressions"),r=new Wo(this.span(t))}return new Xo(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 si(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 si(this.span(t.span.start),"&&",t,e)}return t},t.prototype.parseEquality=function(){for(var t=this.parseRelational();this.next.type==$i.Operator;){var e=this.next.strValue;switch(e){case"==":case"===":case"!=":case"!==":this.advance();var n=this.parseRelational();t=new si(this.span(t.span.start),e,t,n);continue}break}return t},t.prototype.parseRelational=function(){for(var t=this.parseAdditive();this.next.type==$i.Operator;){var e=this.next.strValue;switch(e){case"<":case">":case"<=":case">=":this.advance();var n=this.parseAdditive();t=new si(this.span(t.span.start),e,t,n);continue}break}return t},t.prototype.parseAdditive=function(){for(var t=this.parseMultiplicative();this.next.type==$i.Operator;){var e=this.next.strValue;switch(e){case"+":case"-":this.advance();var n=this.parseMultiplicative();t=new si(this.span(t.span.start),e,t,n);continue}break}return t},t.prototype.parseMultiplicative=function(){for(var t=this.parsePrefix();this.next.type==$i.Operator;){var e=this.next.strValue;switch(e){case"*":case"%":case"/":this.advance();var n=this.parsePrefix();t=new si(this.span(t.span.start),e,t,n);continue}break}return t},t.prototype.parsePrefix=function(){if(this.next.type==$i.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 si(this.span(t),e,new ni(new qo(t,t),0),n);case"!":return this.advance(),n=this.parsePrefix(),new ai(this.span(t),n)}}return this.parseCallChain()},t.prototype.parseCallChain=function(){for(var t=this.parsePrimary();;)if(this.optionalCharacter(46))t=this.parseAccessMemberOrMethodCall(t,!1);else if(this.optionalOperator("?."))t=this.parseAccessMemberOrMethodCall(t,!0);else if(this.optionalCharacter(91)){this.rbracketsExpected++;var e=this.parsePipe();if(this.rbracketsExpected--,this.expectCharacter(93),this.optionalOperator("=")){var n=this.parseConditional();t=new ti(this.span(t.span.start),t,e,n)}else t=new Jo(this.span(t.span.start),t,e)}else{if(!this.optionalCharacter(40))return t;this.rparensExpected++;var r=this.parseCallArguments();this.rparensExpected--,this.expectCharacter(41),t=new li(this.span(t.span.start),t,r)}},t.prototype.parsePrimary=function(){var t=this.inputIndex;if(this.optionalCharacter(40)){this.rparensExpected++;var e=this.parsePipe();return this.rparensExpected--,this.expectCharacter(41),e}if(this.next.isKeywordNull())return this.advance(),new ni(this.span(t),null);if(this.next.isKeywordUndefined())return this.advance(),new ni(this.span(t),void 0);if(this.next.isKeywordTrue())return this.advance(),new ni(this.span(t),!0);if(this.next.isKeywordFalse())return this.advance(),new ni(this.span(t),!1);if(this.next.isKeywordThis())return this.advance(),new Ko(this.span(t));if(this.optionalCharacter(91)){this.rbracketsExpected++;var n=this.parseExpressionList(93);return this.rbracketsExpected--,this.expectCharacter(93),new ri(this.span(t),n)}if(this.next.isCharacter(Wi))return this.parseLiteralMap();if(this.next.isIdentifier())return this.parseAccessMemberOrMethodCall(new Ko(this.span(t)),!1);if(this.next.isNumber()){var r=this.next.toNumber();return this.advance(),new ni(this.span(t),r)}if(this.next.isString()){var o=this.next.toString();return this.advance(),new ni(this.span(t),o)}return this.index>=this.tokens.length?(this.error("Unexpected end of expression: "+this.input),new Wo(this.span(t))):(this.error("Unexpected token "+this.next),new Wo(this.span(t)))},t.prototype.parseExpressionList=function(t){var e=[];if(!this.next.isCharacter(t))do{e.push(this.parsePipe())}while(this.optionalCharacter(44));return e},t.prototype.parseLiteralMap=function(){var t=[],e=[],n=this.inputIndex;if(this.expectCharacter(Wi),!this.optionalCharacter(125)){this.rbracesExpected++;do{var r=this.expectIdentifierOrKeywordOrString();t.push(r),this.expectCharacter(58),e.push(this.parsePipe())}while(this.optionalCharacter(44));this.rbracesExpected--,this.expectCharacter(125)}return new oi(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(40)){this.rparensExpected++;var o=this.parseCallArguments();this.expectCharacter(41),this.rparensExpected--;var i=this.span(n);return e?new ci(i,t,r,o):new ui(i,t,r,o)}if(e)return this.optionalOperator("=")?(this.error("The '?.' operator cannot be used in the assignment"),new Wo(this.span(n))):new $o(this.span(n),t,r);if(this.optionalOperator("=")){if(!this.parseAction)return this.error("Bindings cannot contain assignments"),new Wo(this.span(n));var s=this.parseConditional();return new Yo(this.span(n),t,r,s)}return new Zo(this.span(n),t,r)},t.prototype.parseCallArguments=function(){if(this.next.isCharacter(41))return[];var t=[];do{t.push(this.parsePipe())}while(this.optionalCharacter(44));return t},t.prototype.expectTemplateBindingKey=function(){var t="",e=!1;do{t+=this.expectIdentifierOrKeywordOrString(),(e=this.optionalOperator("-"))&&(t+="-")}while(e);return t.toString()},t.prototype.parseTemplateBindings=function(){for(var t=[],e=null,n=[];this.index<this.tokens.length;){var r=this.inputIndex,o=this.peekKeywordLet();o&&this.advance();var i=this.expectTemplateBindingKey(),s=i;o||(null==e?e=s:s=e+s[0].toUpperCase()+s.substring(1)),this.optionalCharacter(58);var a=null,u=null;if(o)a=this.optionalOperator("=")?this.expectTemplateBindingKey():"$implicit";else if(this.peekKeywordAs()){var c=this.inputIndex;this.advance(),a=i,s=this.expectTemplateBindingKey(),o=!0}else if(this.next!==ns&&!this.peekKeywordLet()){var l=this.inputIndex,p=this.parsePipe(),h=this.input.substring(l-this.offset,this.inputIndex-this.offset);u=new pi(p,h,this.location,this.errors)}if(t.push(new hi(this.span(r),s,o,a,u)),this.peekKeywordAs()&&!o){var c=this.inputIndex;this.advance();var f=this.expectTemplateBindingKey();t.push(new hi(this.span(c),f,!0,s,null))}this.optionalCharacter(Ai)||this.optionalCharacter(44)}return new is(t,n,this.errors)},t.prototype.error=function(t,e){void 0===e&&(e=null),this.errors.push(new Bo(t,this.input,this.locationText(e),this.location)),this.skip()},t.prototype.locationText=function(t){return void 0===t&&(t=null),null==t&&(t=this.index),t<this.tokens.length?"at column "+(this.tokens[t].index+1)+" in":"at the end of the expression"},t.prototype.skip=function(){for(var t=this.next;this.index<this.tokens.length&&!t.isCharacter(Ai)&&(this.rparensExpected<=0||!t.isCharacter(41))&&(this.rbracesExpected<=0||!t.isCharacter(125))&&(this.rbracketsExpected<=0||!t.isCharacter(93));)this.next.isError()&&this.errors.push(new Bo(this.next.toString(),this.input,this.locationText(),this.location)),this.advance(),t=this.next},t}(),us=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,e){},t.prototype.visitInterpolation=function(t,e){},t.prototype.visitLiteralPrimitive=function(t,e){},t.prototype.visitPropertyRead=function(t,e){},t.prototype.visitPropertyWrite=function(t,e){},t.prototype.visitSafePropertyRead=function(t,e){},t.prototype.visitMethodCall=function(t,e){},t.prototype.visitSafeMethodCall=function(t,e){},t.prototype.visitFunctionCall=function(t,e){},t.prototype.visitLiteralArray=function(t,e){this.visitAll(t.expressions)},t.prototype.visitLiteralMap=function(t,e){this.visitAll(t.values)},t.prototype.visitBinary=function(t,e){},t.prototype.visitPrefixNot=function(t,e){},t.prototype.visitConditional=function(t,e){},t.prototype.visitPipe=function(t,e){this.errors.push("pipes")},t.prototype.visitKeyedRead=function(t,e){},t.prototype.visitKeyedWrite=function(t,e){},t.prototype.visitAll=function(t){var e=this;return t.map(function(t){return t.visit(e)})},t.prototype.visitChain=function(t,e){},t.prototype.visitQuote=function(t,e){},t}(),cs=function(){function t(t,e,n,r){this.file=t,this.offset=e,this.line=n,this.col=r}return t.prototype.toString=function(){return null!=this.offset?this.file.url+"@"+this.line+":"+this.col:this.file.url},t.prototype.moveBy=function(e){for(var n=this.file.content,r=n.length,o=this.offset,i=this.line,s=this.col;o>0&&e<0;){o--,e++;var a=n.charCodeAt(o);if(a==mi){i--;var u=n.substr(0,o-1).lastIndexOf(String.fromCharCode(mi));s=u>0?o-u:o}else s--}for(;o<r&&e>0;){var a=n.charCodeAt(o);o++,e--,a==mi?(i++,s=0):s++}return new t(this.file,o,i,s)},t.prototype.getContext=function(t,e){var n=this.file.content,r=this.offset;if(null!=r){r>n.length-1&&(r=n.length-1);for(var o=r,i=0,s=0;i<t&&r>0&&(r--,i++,"\n"!=n[r]||++s!=e););for(i=0,s=0;i<t&&o<n.length-1&&(o++,i++,"\n"!=n[o]||++s!=e););return{before:n.substring(r,this.offset),after:n.substring(this.offset,o+1)}}return null},t}(),ls=function(){function t(t,e){this.content=t,this.url=e}return t}(),ps=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}(),hs={};hs.WARNING=0,hs.ERROR=1,hs[hs.WARNING]="WARNING",hs[hs.ERROR]="ERROR";var fs=function(){function t(t,e,n){void 0===n&&(n=hs.ERROR),this.span=t,this.msg=e,this.level=n}return t.prototype.toString=function(){var t=this.span.start.getContext(100,3),e=t?' ("'+t.before+"["+hs[this.level]+" ->]"+t.after+'")':"",n=this.span.details?", "+this.span.details:"";return""+this.msg+e+": "+this.span.start+n},t}(),ds=function(){function t(t,e){this.value=t,this.sourceSpan=e}return t.prototype.visit=function(t,e){return t.visitText(this,e)},t}(),ys=function(){function t(t,e,n,r,o){this.switchValue=t,this.type=e,this.cases=n,this.sourceSpan=r,this.switchValueSourceSpan=o}return t.prototype.visit=function(t,e){return t.visitExpansion(this,e)},t}(),vs=function(){function t(t,e,n,r,o){this.value=t,this.expression=e,this.sourceSpan=n,this.valueSourceSpan=r,this.expSourceSpan=o}return t.prototype.visit=function(t,e){return t.visitExpansionCase(this,e)},t}(),ms=function(){function t(t,e,n,r){this.name=t,this.value=e,this.sourceSpan=n,this.valueSpan=r}return t.prototype.visit=function(t,e){return t.visitAttribute(this,e)},t}(),gs=function(){function t(t,e,n,r,o,i){void 0===o&&(o=null),void 0===i&&(i=null),this.name=t,this.attrs=e,this.children=n,this.sourceSpan=r,this.startSourceSpan=o,this.endSourceSpan=i}return t.prototype.visit=function(t,e){return t.visitElement(this,e)},t}(),_s=function(){function t(t,e){this.value=t,this.sourceSpan=e}return t.prototype.visit=function(t,e){return t.visitComment(this,e)},t}(),bs={};bs.TAG_OPEN_START=0,bs.TAG_OPEN_END=1,bs.TAG_OPEN_END_VOID=2,bs.TAG_CLOSE=3,bs.TEXT=4,bs.ESCAPABLE_RAW_TEXT=5,bs.RAW_TEXT=6,bs.COMMENT_START=7,bs.COMMENT_END=8,bs.CDATA_START=9,bs.CDATA_END=10,bs.ATTR_NAME=11,bs.ATTR_VALUE=12,bs.DOC_TYPE=13,bs.EXPANSION_FORM_START=14,bs.EXPANSION_CASE_VALUE=15,bs.EXPANSION_CASE_EXP_START=16,bs.EXPANSION_CASE_EXP_END=17,bs.EXPANSION_FORM_END=18,bs.EOF=19,bs[bs.TAG_OPEN_START]="TAG_OPEN_START",bs[bs.TAG_OPEN_END]="TAG_OPEN_END",bs[bs.TAG_OPEN_END_VOID]="TAG_OPEN_END_VOID",bs[bs.TAG_CLOSE]="TAG_CLOSE",bs[bs.TEXT]="TEXT",bs[bs.ESCAPABLE_RAW_TEXT]="ESCAPABLE_RAW_TEXT",bs[bs.RAW_TEXT]="RAW_TEXT",bs[bs.COMMENT_START]="COMMENT_START",bs[bs.COMMENT_END]="COMMENT_END",bs[bs.CDATA_START]="CDATA_START",bs[bs.CDATA_END]="CDATA_END",bs[bs.ATTR_NAME]="ATTR_NAME",bs[bs.ATTR_VALUE]="ATTR_VALUE",bs[bs.DOC_TYPE]="DOC_TYPE",bs[bs.EXPANSION_FORM_START]="EXPANSION_FORM_START",bs[bs.EXPANSION_CASE_VALUE]="EXPANSION_CASE_VALUE",bs[bs.EXPANSION_CASE_EXP_START]="EXPANSION_CASE_EXP_START",bs[bs.EXPANSION_CASE_EXP_END]="EXPANSION_CASE_EXP_END",bs[bs.EXPANSION_FORM_END]="EXPANSION_FORM_END",bs[bs.EOF]="EOF";var ws=function(){function t(t,e,n){this.type=t,this.parts=e,this.sourceSpan=n}return t}(),Es=function(t){function e(e,n,r){var o=t.call(this,r,e)||this;return o.tokenType=n,o}return Qr(e,t),e}(fs),Cs=function(){function t(t,e){this.tokens=t,this.errors=e}return t}(),Ss=function(){function t(t){this.error=t}return t}(),xs=function(){function t(t,e,n,r){void 0===r&&(r=Yi),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(/\r\n?/g,"\n")},t.prototype.tokenize=function(){for(;this._peek!==yi;){var t=this._getLocation();try{this._attemptCharCode(60)?this._attemptCharCode(33)?this._attemptCharCode(91)?this._consumeCdata(t):this._attemptCharCode(Ti)?this._consumeComment(t):this._consumeDocType(t):this._attemptCharCode(Pi)?this._consumeTagClose(t):this._consumeTagOpen(t):this._tokenizeIcu&&this._tokenizeExpansionForm()||this._consumeText()}catch(t){if(!(t instanceof Ss))throw t;this.errors.push(t.error)}}return this._beginToken(bs.EOF),this._endToken([]),new Cs(Et(this.tokens),this.errors)},t.prototype._tokenizeExpansionForm=function(){if(gt(this._input,this._index,this._interpolationConfig))return this._consumeExpansionFormStart(),!0;if(_t(this._peek)&&this._isInExpansionForm())return this._consumeExpansionCaseStart(),!0;if(125===this._peek){if(this._isInExpansionCase())return this._consumeExpansionCaseEnd(),!0;if(this._isInExpansionForm())return this._consumeExpansionFormEnd(),!0}return!1},t.prototype._getLocation=function(){return new cs(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 ps(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 ws(this._currentTokenType,t,new ps(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 Es(t,this._currentTokenType,e);return this._currentTokenStart=null,this._currentTokenType=null,new Ss(n)},t.prototype._advance=function(){if(this._index>=this._length)throw this._createError(pt(yi),this._getSpan());this._peek===mi?(this._line++,this._column=0):this._peek!==mi&&this._peek!==bi&&this._column++,this._index++,this._peek=this._index>=this._length?yi:this._input.charCodeAt(this._index),this._nextPeek=this._index+1>=this._length?yi:this._input.charCodeAt(this._index+1)},t.prototype._attemptCharCode=function(t){return this._peek===t&&(this._advance(),!0)},t.prototype._attemptCharCodeCaseInsensitive=function(t){return!!bt(this._peek,t)&&(this._advance(),!0)},t.prototype._requireCharCode=function(t){var e=this._getLocation();if(!this._attemptCharCode(t))throw this._createError(pt(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;r<e;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(pt(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(pt(this._peek),this._getSpan(n,n))},t.prototype._attemptUntilChar=function(t){for(;this._peek!==t;)this._advance()},t.prototype._readChar=function(t){if(t&&38===this._peek)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(35)){var e=this._savePosition();if(this._attemptCharCodeUntilFn(mt),this._peek!=Ai)return this._restorePosition(e),"&";this._advance();var n=this._input.substring(t.offset+1,this._index-1),r=fo[n];if(!r)throw this._createError(ht(n),this._getSpan(t));return r}var o=this._attemptCharCode(120)||this._attemptCharCode(88),i=this._getLocation().offset;if(this._attemptCharCodeUntilFn(vt),this._peek!=Ai)throw this._createError(pt(this._peek),this._getSpan());this._advance();var s=this._input.substring(i,this._index-1);try{var a=parseInt(s,o?16:10);return String.fromCharCode(a)}catch(e){var u=this._input.substring(t.offset+1,this._index-1);throw this._createError(ht(u),this._getSpan(t))}},t.prototype._consumeRawText=function(t,e,n){var r,o=this._getLocation();this._beginToken(t?bs.ESCAPABLE_RAW_TEXT:bs.RAW_TEXT,o);for(var i=[];;){if(r=this._getLocation(),this._attemptCharCode(e)&&n())break;for(this._index>r.offset&&i.push(this._input.substring(r.offset,this._index));this._peek!==e;)i.push(this._readChar(t))}return this._endToken([this._processCarriageReturns(i.join(""))],r)},t.prototype._consumeComment=function(t){var e=this;this._beginToken(bs.COMMENT_START,t),this._requireCharCode(Ti),this._endToken([]);var n=this._consumeRawText(!1,Ti,function(){return e._attemptStr("->")});this._beginToken(bs.COMMENT_END,n.sourceSpan.end),this._endToken([])},t.prototype._consumeCdata=function(t){var e=this;this._beginToken(bs.CDATA_START,t),this._requireStr("CDATA["),this._endToken([]);var n=this._consumeRawText(!1,93,function(){return e._attemptStr("]>")});this._beginToken(bs.CDATA_END,n.sourceSpan.end),this._endToken([])},t.prototype._consumeDocType=function(t){this._beginToken(bs.DOC_TYPE,t),this._attemptUntilChar(Mi),this._advance(),this._endToken([this._input.substring(t.offset+2,this._index-1)])},t.prototype._consumePrefixAndName=function(){for(var t=this._index,e=null;58!==this._peek&&!yt(this._peek);)this._advance();var n;return 58===this._peek?(this._advance(),e=this._input.substring(t,this._index-1),n=this._index):n=t,this._requireCharCodeUntilFn(dt,this._index===n?1:0),[e,this._input.substring(n,this._index)]},t.prototype._consumeTagOpen=function(t){var e,n,r=this._savePosition();try{if(!U(this._peek))throw this._createError(pt(this._peek),this._getSpan());var o=this._index;for(this._consumeTagOpenStart(t),e=this._input.substring(o,this._index),n=e.toLowerCase(),this._attemptCharCodeUntilFn(ft);this._peek!==Pi&&this._peek!==Mi;)this._consumeAttributeName(),this._attemptCharCodeUntilFn(ft),this._attemptCharCode(Oi)&&(this._attemptCharCodeUntilFn(ft),this._consumeAttributeValue()),this._attemptCharCodeUntilFn(ft);this._consumeTagOpenEnd()}catch(e){if(e instanceof Ss)return this._restorePosition(r),this._beginToken(bs.TEXT,t),void this._endToken(["<"]);throw e}var i=this._getTagDefinition(e).contentType;i===ho.RAW_TEXT?this._consumeRawTextWithTagClose(n,!1):i===ho.ESCAPABLE_RAW_TEXT&&this._consumeRawTextWithTagClose(n,!0)},t.prototype._consumeRawTextWithTagClose=function(t,e){var n=this,r=this._consumeRawText(e,60,function(){return!!n._attemptCharCode(Pi)&&(n._attemptCharCodeUntilFn(ft),!!n._attemptStrCaseInsensitive(t)&&(n._attemptCharCodeUntilFn(ft),n._attemptCharCode(Mi)))});this._beginToken(bs.TAG_CLOSE,r.sourceSpan.end),this._endToken([null,t])},t.prototype._consumeTagOpenStart=function(t){this._beginToken(bs.TAG_OPEN_START,t);var e=this._consumePrefixAndName();this._endToken(e)},t.prototype._consumeAttributeName=function(){this._beginToken(bs.ATTR_NAME);var t=this._consumePrefixAndName();this._endToken(t)},t.prototype._consumeAttributeValue=function(){this._beginToken(bs.ATTR_VALUE);var t;if(this._peek===Si||this._peek===Ei){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(dt,1),t=this._input.substring(r,this._index)}this._endToken([this._processCarriageReturns(t)])},t.prototype._consumeTagOpenEnd=function(){var t=this._attemptCharCode(Pi)?bs.TAG_OPEN_END_VOID:bs.TAG_OPEN_END;this._beginToken(t),this._requireCharCode(Mi),this._endToken([])},t.prototype._consumeTagClose=function(t){this._beginToken(bs.TAG_CLOSE,t),this._attemptCharCodeUntilFn(ft);var e=this._consumePrefixAndName();this._attemptCharCodeUntilFn(ft),this._requireCharCode(Mi),this._endToken(e)},t.prototype._consumeExpansionFormStart=function(){this._beginToken(bs.EXPANSION_FORM_START,this._getLocation()),this._requireCharCode(Wi),this._endToken([]),this._expansionCaseStack.push(bs.EXPANSION_FORM_START),this._beginToken(bs.RAW_TEXT,this._getLocation());var t=this._readUntil(44);this._endToken([t],this._getLocation()),this._requireCharCode(44),this._attemptCharCodeUntilFn(ft),this._beginToken(bs.RAW_TEXT,this._getLocation());var e=this._readUntil(44);this._endToken([e],this._getLocation()),this._requireCharCode(44),this._attemptCharCodeUntilFn(ft)},t.prototype._consumeExpansionCaseStart=function(){this._beginToken(bs.EXPANSION_CASE_VALUE,this._getLocation());var t=this._readUntil(Wi).trim();this._endToken([t],this._getLocation()),this._attemptCharCodeUntilFn(ft),this._beginToken(bs.EXPANSION_CASE_EXP_START,this._getLocation()),this._requireCharCode(Wi),this._endToken([],this._getLocation()),this._attemptCharCodeUntilFn(ft),this._expansionCaseStack.push(bs.EXPANSION_CASE_EXP_START)},t.prototype._consumeExpansionCaseEnd=function(){this._beginToken(bs.EXPANSION_CASE_EXP_END,this._getLocation()),this._requireCharCode(125),this._endToken([],this._getLocation()),this._attemptCharCodeUntilFn(ft),this._expansionCaseStack.pop()},t.prototype._consumeExpansionFormEnd=function(){this._beginToken(bs.EXPANSION_FORM_END,this._getLocation()),this._requireCharCode(125),this._endToken([]),this._expansionCaseStack.pop()},t.prototype._consumeText=function(){var t=this._getLocation();this._beginToken(bs.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(60===this._peek||this._peek===yi)return!0;if(this._tokenizeIcu&&!this._inInterpolation){if(gt(this._input,this._index,this._interpolationConfig))return!0;if(125===this._peek&&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]===bs.EXPANSION_CASE_EXP_START},t.prototype._isInExpansionForm=function(){return this._expansionCaseStack.length>0&&this._expansionCaseStack[this._expansionCaseStack.length-1]===bs.EXPANSION_FORM_START},t}(),Ts=function(t){function e(e,n,r){var o=t.call(this,n,r)||this;return o.elementName=e,o}return Qr(e,t),e.create=function(t,n,r){return new e(t,n,r)},e}(fs),Ps=function(){function t(t,e){this.rootNodes=t,this.errors=e}return t}(),As=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=Yi);var o=lt(t,e,this.getTagDefinition,n,r),i=new Os(o.tokens,this.getTagDefinition).build();return new Ps(i.rootNodes,o.errors.concat(i.errors))},t}(),Os=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!==bs.EOF;)this._peek.type===bs.TAG_OPEN_START?this._consumeStartTag(this._advance()):this._peek.type===bs.TAG_CLOSE?this._consumeEndTag(this._advance()):this._peek.type===bs.CDATA_START?(this._closeVoidElement(),this._consumeCdata(this._advance())):this._peek.type===bs.COMMENT_START?(this._closeVoidElement(),this._consumeComment(this._advance())):this._peek.type===bs.TEXT||this._peek.type===bs.RAW_TEXT||this._peek.type===bs.ESCAPABLE_RAW_TEXT?(this._closeVoidElement(),this._consumeText(this._advance())):this._peek.type===bs.EXPANSION_FORM_START?this._consumeExpansion(this._advance()):this._advance();return new Ps(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(t){this._consumeText(this._advance()),this._advanceIf(bs.CDATA_END)},t.prototype._consumeComment=function(t){var e=this._advanceIf(bs.RAW_TEXT);this._advanceIf(bs.COMMENT_END);var n=null!=e?e.parts[0].trim():null;this._addToParent(new _s(n,t.sourceSpan))},t.prototype._consumeExpansion=function(t){for(var e=this._advance(),n=this._advance(),r=[];this._peek.type===bs.EXPANSION_CASE_VALUE;){var o=this._parseExpansionCase();if(!o)return;r.push(o)}if(this._peek.type!==bs.EXPANSION_FORM_END)return void this._errors.push(Ts.create(null,this._peek.sourceSpan,"Invalid ICU message. Missing '}'."));var i=new ps(t.sourceSpan.start,this._peek.sourceSpan.end);this._addToParent(new ys(e.parts[0],n.parts[0],r,i,e.sourceSpan)),this._advance()},t.prototype._parseExpansionCase=function(){var e=this._advance();if(this._peek.type!==bs.EXPANSION_CASE_EXP_START)return this._errors.push(Ts.create(null,this._peek.sourceSpan,"Invalid ICU message. Missing '{'.")),null;var n=this._advance(),r=this._collectExpansionExpTokens(n);if(!r)return null;var o=this._advance();r.push(new ws(bs.EOF,[],o.sourceSpan));var i=new t(r,this.getTagDefinition).build();if(i.errors.length>0)return this._errors=this._errors.concat(i.errors),null;var s=new ps(e.sourceSpan.start,o.sourceSpan.end),a=new ps(n.sourceSpan.start,o.sourceSpan.end);return new vs(e.parts[0],i.rootNodes,s,e.sourceSpan,a)},t.prototype._collectExpansionExpTokens=function(t){for(var e=[],n=[bs.EXPANSION_CASE_EXP_START];;){if(this._peek.type!==bs.EXPANSION_FORM_START&&this._peek.type!==bs.EXPANSION_CASE_EXP_START||n.push(this._peek.type),this._peek.type===bs.EXPANSION_CASE_EXP_END){if(!Ct(n,bs.EXPANSION_CASE_EXP_START))return this._errors.push(Ts.create(null,t.sourceSpan,"Invalid ICU message. Missing '}'.")),null;if(n.pop(),0==n.length)return e}if(this._peek.type===bs.EXPANSION_FORM_END){if(!Ct(n,bs.EXPANSION_FORM_START))return this._errors.push(Ts.create(null,t.sourceSpan,"Invalid ICU message. Missing '}'.")),null;n.pop()}if(this._peek.type===bs.EOF)return this._errors.push(Ts.create(null,t.sourceSpan,"Invalid ICU message. Missing '}'.")),null;e.push(this._advance())}},t.prototype._consumeText=function(t){var e=t.parts[0];if(e.length>0&&"\n"==e[0]){var n=this._getParentElement();null!=n&&0==n.children.length&&this.getTagDefinition(n.name).ignoreFirstLf&&(e=e.substring(1))}e.length>0&&this._addToParent(new ds(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===bs.ATTR_NAME;)r.push(this._consumeAttr(this._advance()));var o=this._getElementFullName(e,n,this._getParentElement()),i=!1;if(this._peek.type===bs.TAG_OPEN_END_VOID){this._advance(),i=!0;var s=this.getTagDefinition(o);s.canSelfClose||null!==u(o)||s.isVoid||this._errors.push(Ts.create(o,t.sourceSpan,'Only void and foreign elements can be self closed "'+t.parts[1]+'"'))}else this._peek.type===bs.TAG_OPEN_END&&(this._advance(),i=!1);var a=this._peek.sourceSpan.start,c=new ps(t.sourceSpan.start,a),l=new gs(o,r,[],c,c,void 0);this._pushElement(l),i&&(this._popElement(o),l.endSourceSpan=c)},t.prototype._pushElement=function(t){if(this._elementStack.length>0){var e=this._elementStack[this._elementStack.length-1];this.getTagDefinition(e.name).isClosedByChild(t.name)&&this._elementStack.pop()}var n=this.getTagDefinition(t.name),r=this._getParentElementSkippingContainers(),o=r.parent,i=r.container;if(o&&n.requireExtraParent(o.name)){var s=new gs(n.parentToAdd,[],[],t.sourceSpan,t.startSourceSpan,t.endSourceSpan);this._insertBeforeContainer(o,i,s)}this._addToParent(t),this._elementStack.push(t)},t.prototype._consumeEndTag=function(t){var e=this._getElementFullName(t.parts[0],t.parts[1],this._getParentElement());if(this._getParentElement()&&(this._getParentElement().endSourceSpan=t.sourceSpan),this.getTagDefinition(e).isVoid)this._errors.push(Ts.create(e,t.sourceSpan,'Void elements do not have end tags "'+t.parts[1]+'"'));else if(!this._popElement(e)){var n='Unexpected closing tag "'+e+'". It may happen when the tag has already been closed by another tag. For more info see https://www.w3.org/TR/html5/syntax.html#closing-elements-that-have-implied-end-tags';this._errors.push(Ts.create(e,t.sourceSpan,n))}},t.prototype._popElement=function(t){for(var e=this._elementStack.length-1;e>=0;e--){var n=this._elementStack[e];if(n.name==t)return this._elementStack.splice(e,this._elementStack.length-e),!0;if(!this.getTagDefinition(n.name).closedByParent)return!1}return!1},t.prototype._consumeAttr=function(t){var e=c(t.parts[0],t.parts[1]),n=t.sourceSpan.end,r="",o=void 0;if(this._peek.type===bs.ATTR_VALUE){var i=this._advance();r=i.parts[0],n=i.sourceSpan.end,o=i.sourceSpan}return new ms(e,r,new ps(t.sourceSpan.start,n),o)},t.prototype._getParentElement=function(){return this._elementStack.length>0?this._elementStack[this._elementStack.length-1]:null},t.prototype._getParentElementSkippingContainers=function(){for(var t=null,e=this._elementStack.length-1;e>=0;e--){if(!i(this._elementStack[e].name))return{parent:this._elementStack[e],container:t};t=this._elementStack[e]}return{parent:this._elementStack[this._elementStack.length-1],container:t}},t.prototype._addToParent=function(t){var e=this._getParentElement();null!=e?e.children.push(t):this._rootNodes.push(t)},t.prototype._insertBeforeContainer=function(t,e,n){if(e){if(t){var r=t.children.indexOf(e);t.children[r]=n}else this._rootNodes.push(n);n.children.push(e),this._elementStack.splice(this._elementStack.indexOf(e),0,n)}else this._addToParent(n),this._elementStack.push(n)},t.prototype._getElementFullName=function(t,e,n){return null==t&&null==(t=this.getTagDefinition(e).implicitNamespacePrefix)&&null!=n&&(t=u(n.name)),c(t,e)},t}(),Ms=function(){function t(t,e,n,r,o,i){this.nodes=t,this.placeholders=e,this.placeholderToMessage=n,this.meaning=r,this.description=o,this.id=i,t.length?this.sources=[{filePath:t[0].sourceSpan.start.file.url,startLine:t[0].sourceSpan.start.line+1,startCol:t[0].sourceSpan.start.col+1,endLine:t[t.length-1].sourceSpan.end.line+1,endCol:t[0].sourceSpan.start.col+1}]:this.sources=[]}return t}(),ks=function(){function t(t,e){this.value=t,this.sourceSpan=e}return t.prototype.visit=function(t,e){return t.visitText(this,e)},t}(),Ns=function(){function t(t,e){this.children=t,this.sourceSpan=e}return t.prototype.visit=function(t,e){return t.visitContainer(this,e)},t}(),Is=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}(),Rs=function(){function t(t,e,n,r,o,i,s){this.tag=t,this.attrs=e,this.startName=n,this.closeName=r,this.children=o,this.isVoid=i,this.sourceSpan=s}return t.prototype.visit=function(t,e){return t.visitTagPlaceholder(this,e)},t}(),Ds=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}(),Vs=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}(),Ls=function(){function t(){}return t.prototype.visitText=function(t,e){return new ks(t.value,t.sourceSpan)},t.prototype.visitContainer=function(t,e){var n=this,r=t.children.map(function(t){return t.visit(n,e)});return new Ns(r,t.sourceSpan)},t.prototype.visitIcu=function(t,e){var n=this,r={};Object.keys(t.cases).forEach(function(o){return r[o]=t.cases[o].visit(n,e)});var o=new Is(t.expression,t.type,r,t.sourceSpan);return o.expressionPlaceholder=t.expressionPlaceholder,o},t.prototype.visitTagPlaceholder=function(t,e){var n=this,r=t.children.map(function(t){return t.visit(n,e)});return new Rs(t.tag,t.attrs,t.startName,t.closeName,r,t.isVoid,t.sourceSpan)},t.prototype.visitPlaceholder=function(t,e){return new Ds(t.value,t.name,t.sourceSpan)},t.prototype.visitIcuPlaceholder=function(t,e){return new Vs(t.value,t.name,t.sourceSpan)},t}(),Fs=function(){function t(){}return t.prototype.visitText=function(t,e){},t.prototype.visitContainer=function(t,e){var n=this;t.children.forEach(function(t){return t.visit(n)})},t.prototype.visitIcu=function(t,e){var n=this;Object.keys(t.cases).forEach(function(e){t.cases[e].visit(n)})},t.prototype.visitTagPlaceholder=function(t,e){var n=this;t.children.forEach(function(t){return t.visit(n)})},t.prototype.visitPlaceholder=function(t,e){},t.prototype.visitIcuPlaceholder=function(t,e){},t}(),js={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"},Hs=function(){function t(){this._placeHolderNameCounts={},this._signatureToName={}}return t.prototype.getStartTagPlaceholderName=function(t,e,n){var r=this._hashTag(t,e,n);if(this._signatureToName[r])return this._signatureToName[r];var o=t.toUpperCase(),i=js[o]||"TAG_"+o,s=this._generateUniqueName(n?i:"START_"+i);return this._signatureToName[r]=s,s},t.prototype.getCloseTagPlaceholderName=function(t){var e=this._hashClosingTag(t);if(this._signatureToName[e])return this._signatureToName[e];var n=t.toUpperCase(),r=js[n]||"TAG_"+n,o=this._generateUniqueName("CLOSE_"+r);return this._signatureToName[e]=o,o},t.prototype.getPlaceholderName=function(t,e){var n=t.toUpperCase(),r="PH: "+n+"="+e;if(this._signatureToName[r])return this._signatureToName[r];var o=this._generateUniqueName(n);return this._signatureToName[r]=o,o},t.prototype.getUniquePlaceholder=function(t){return this._generateUniqueName(t.toUpperCase())},t.prototype._hashTag=function(t,e,n){return"<"+t+Object.keys(e).sort().map(function(t){return" "+t+"="+e[t]}).join("")+(n?"/>":"></"+t+">")},t.prototype._hashClosingTag=function(t){return this._hashTag("/"+t,{},!1)},t.prototype._generateUniqueName=function(t){if(!this._placeHolderNameCounts.hasOwnProperty(t))return this._placeHolderNameCounts[t]=1,t;var e=this._placeHolderNameCounts[t];return this._placeHolderNameCounts[t]=e+1,t+"_"+e},t}(),Us=new ss(new ts),Bs=function(){function t(t,e){this._expressionParser=t,this._interpolationConfig=e}return t.prototype.toI18nMessage=function(t,e,n,r){this._isIcu=1==t.length&&t[0]instanceof ys,this._icuDepth=0,this._placeholderRegistry=new Hs,this._placeholderToContent={},this._placeholderToMessage={};var o=ct(this,t,{});return new Ms(o,this._placeholderToContent,this._placeholderToMessage,e,n,r)},t.prototype.visitElement=function(t,e){var n=ct(this,t.children),r={};t.attrs.forEach(function(t){r[t.name]=t.value});var o=l(t.name).isVoid,i=this._placeholderRegistry.getStartTagPlaceholderName(t.name,r,o);this._placeholderToContent[i]=t.sourceSpan.toString();var s="";return o||(s=this._placeholderRegistry.getCloseTagPlaceholderName(t.name),this._placeholderToContent[s]="</"+t.name+">"),new Rs(t.name,r,i,s,n,o,t.sourceSpan)},t.prototype.visitAttribute=function(t,e){return this._visitTextWithInterpolation(t.value,t.sourceSpan)},t.prototype.visitText=function(t,e){return this._visitTextWithInterpolation(t.value,t.sourceSpan)},t.prototype.visitComment=function(t,e){return null},t.prototype.visitExpansion=function(e,n){var r=this;this._icuDepth++;var o={},i=new Is(e.switchValue,e.type,o,e.sourceSpan);if(e.cases.forEach(function(t){o[t.value]=new Ns(t.expression.map(function(t){return t.visit(r,{})}),t.expSourceSpan)}),this._icuDepth--,this._isIcu||this._icuDepth>0){var s=this._placeholderRegistry.getUniquePlaceholder("VAR_"+e.type);return i.expressionPlaceholder=s,this._placeholderToContent[s]=e.switchValue,i}var a=this._placeholderRegistry.getPlaceholderName("ICU",e.sourceSpan.toString()),u=new t(this._expressionParser,this._interpolationConfig);return this._placeholderToMessage[a]=u.toI18nMessage([e],"","",""),new Vs(i,a,e.sourceSpan)},t.prototype.visitExpansionCase=function(t,e){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 ks(t,e);for(var r=[],o=new Ns(r,e),i=this._interpolationConfig,s=i.start,a=i.end,u=0;u<n.strings.length-1;u++){var c=n.expressions[u],l=xt(c)||"INTERPOLATION",p=this._placeholderRegistry.getPlaceholderName(l,c);n.strings[u].length&&r.push(new ks(n.strings[u],e)),r.push(new Ds(c,p,e)),this._placeholderToContent[p]=s+c+a}var h=n.strings.length-1;return n.strings[h].length&&r.push(new ks(n.strings[h],e)),o},t}(),qs=/\/\/[\s\S]*i18n[\s\S]*\([\s\S]*ph[\s\S]*=[\s\S]*("|')([\s\S]*?)\1[\s\S]*\)/g,Gs=function(t){function e(e,n){return t.call(this,e,n)||this}return Qr(e,t),e}(fs),zs="i18n",Ws="|",Ks="@@",Qs=function(){function t(t,e){this.messages=t,this.errors=e}return t}(),Xs={};Xs.Extract=0,Xs.Merge=1,Xs[Xs.Extract]="Extract",Xs[Xs.Merge]="Merge";var Zs=function(){function t(t,e){this._implicitTags=t,this._implicitAttrs=e}return t.prototype.extract=function(t,e){var n=this;return this._init(Xs.Extract,e),t.forEach(function(t){return t.visit(n,null)}),this._inI18nBlock&&this._reportError(t[t.length-1],"Unclosed block"),new Qs(this._messages,this._errors)},t.prototype.merge=function(t,e,n){this._init(Xs.Merge,n),this._translations=e;var r=new gs("wrapper",[],t,void 0,void 0,void 0),o=r.visit(this,null);return this._inI18nBlock&&this._reportError(t[t.length-1],"Unclosed block"),new Ps(o.children,this._errors)},t.prototype.visitExpansionCase=function(t,e){var n=ct(this,t.expression,e);if(this._mode===Xs.Merge)return new vs(t.value,n,t.sourceSpan,t.valueSourceSpan,t.expSourceSpan)},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=ct(this,t.cases,e);return this._mode===Xs.Merge&&(t=new ys(t.switchValue,t.type,r,t.sourceSpan,t.switchValueSourceSpan)),this._inIcu=n,t},t.prototype.visitComment=function(t,e){var n=At(t);if(n&&this._isInTranslatableSection)return void this._reportError(t,"Could not start a block inside a translatable section");var r=Ot(t);if(r&&!this._inI18nBlock)return void this._reportError(t,"Trying to close an unopened block");if(!this._inI18nNode&&!this._inIcu)if(this._inI18nBlock){if(r){if(this._depth==this._blockStartDepth){this._closeTranslatableSection(t,this._blockChildren),this._inI18nBlock=!1;var o=this._addMessage(this._blockChildren,this._blockMeaningAndDesc),i=this._translateMessage(t,o);return ct(this,i)}return void this._reportError(t,"I18N blocks should not cross element boundaries")}}else n&&(this._inI18nBlock=!0,this._blockStartDepth=this._depth,this._blockChildren=[],this._blockMeaningAndDesc=t.value.replace(/^i18n:?/,"").trim(),this._openTranslatableSection(t))},t.prototype.visitText=function(t,e){return this._isInTranslatableSection&&this._mayBeAddBlockChildren(t),t},t.prototype.visitElement=function(t,e){var n=this;this._mayBeAddBlockChildren(t),this._depth++;var r=this._inI18nNode,o=this._inImplicitNode,i=[],s=void 0,a=Mt(t),u=a?a.value:"",c=this._implicitTags.some(function(e){return t.name===e})&&!this._inIcu&&!this._isInTranslatableSection,l=!o&&c;if(this._inImplicitNode=o||c,this._isInTranslatableSection||this._inIcu)(a||l)&&this._reportError(t,"Could not mark an element as translatable inside a translatable section"),this._mode==Xs.Extract&&ct(this,t.children);else{if(a||l){this._inI18nNode=!0;var p=this._addMessage(t.children,u);s=this._translateMessage(t,p)}if(this._mode==Xs.Extract){var h=a||l;h&&this._openTranslatableSection(t),ct(this,t.children),h&&this._closeTranslatableSection(t,t.children)}}if(this._mode===Xs.Merge){(s||t.children).forEach(function(t){var r=t.visit(n,e);r&&!n._isInTranslatableSection&&(i=i.concat(r))})}if(this._visitAttributesOf(t),this._depth--,this._inI18nNode=r,this._inImplicitNode=o,this._mode===Xs.Merge){var f=this._translateAttributes(t);return new gs(t.name,f,i,t.sourceSpan,t.startSourceSpan,t.endSourceSpan)}return null},t.prototype.visitAttribute=function(t,e){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=St(e)},t.prototype._visitAttributesOf=function(t){var e=this,n={},r=this._implicitAttrs[t.name]||[];t.attrs.filter(function(t){return t.name.startsWith("i18n-")}).forEach(function(t){return n[t.name.slice("i18n-".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 ms&&!t[0].value)return null;var n=kt(e),r=n.meaning,o=n.description,i=n.id,s=this._createI18nMessage(t,r,o,i);return this._messages.push(s),s},t.prototype._translateMessage=function(t,e){if(e&&this._mode===Xs.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("i18n-")&&(r[t.name.slice("i18n-".length)]=kt(t.value))});var o=[];return n.forEach(function(n){if(n.name!==zs&&!n.name.startsWith("i18n-"))if(n.value&&""!=n.value&&r.hasOwnProperty(n.name)){var i=r[n.name],s=i.meaning,a=i.description,u=i.id,c=e._createI18nMessage([n],s,a,u),l=e._translations.get(c);if(l)if(0==l.length)o.push(new ms(n.name,"",n.sourceSpan));else if(l[0]instanceof ds){var p=l[0].value;o.push(new ms(n.name,p,n.sourceSpan))}else e._reportError(t,'Unexpected translation for attribute "'+n.name+'" (id="'+(u||e._translations.digest(c))+'")');else e._reportError(t,'Translation unavailable for attribute "'+n.name+'" (id="'+(u||e._translations.digest(c))+'")')}else o.push(n)}),o},t.prototype._mayBeAddBlockChildren=function(t){this._inI18nBlock&&!this._inIcu&&this._depth==this._blockStartDepth&&this._blockChildren.push(t)},t.prototype._openTranslatableSection=function(t){this._isInTranslatableSection?this._reportError(t,"Unexpected section start"):this._msgCountAtSectionStart=this._messages.length},Object.defineProperty(t.prototype,"_isInTranslatableSection",{get:function(){return void 0!==this._msgCountAtSectionStart},enumerable:!0,configurable:!0}),t.prototype._closeTranslatableSection=function(t,e){if(!this._isInTranslatableSection)return void this._reportError(t,"Unexpected section end");var n=this._msgCountAtSectionStart;if(1==e.reduce(function(t,e){return t+(e instanceof _s?0:1)},0))for(var r=this._messages.length-1;r>=n;r--){var o=this._messages[r].nodes;if(!(1==o.length&&o[0]instanceof ks)){this._messages.splice(r,1);break}}this._msgCountAtSectionStart=void 0},t.prototype._reportError=function(t,e){this._errors.push(new Gs(t.sourceSpan,e))},t}(),Ys=function(){function t(){this.closedByParent=!1,this.contentType=ho.PARSABLE_DATA,this.isVoid=!1,this.ignoreFirstLf=!1,this.canSelfClose=!0}return t.prototype.requireExtraParent=function(t){return!1},t.prototype.isClosedByChild=function(t){return!1},t}(),$s=new Ys,Js=function(t){function e(){return t.call(this,Nt)||this}return Qr(e,t),e.prototype.parse=function(e,n,r){return void 0===r&&(r=!1),t.prototype.parse.call(this,e,n,r)},e}(As),ta=function(){function t(){}return t.prototype.visitText=function(t,e){return t.value},t.prototype.visitContainer=function(t,e){var n=this;return"["+t.children.map(function(t){return t.visit(n)}).join(", ")+"]"},t.prototype.visitIcu=function(t,e){var n=this,r=Object.keys(t.cases).map(function(e){return e+" {"+t.cases[e].visit(n)+"}"});return"{"+t.expression+", "+t.type+", "+r.join(", ")+"}"},t.prototype.visitTagPlaceholder=function(t,e){var n=this;return t.isVoid?'<ph tag name="'+t.startName+'"/>':'<ph tag name="'+t.startName+'">'+t.children.map(function(t){return t.visit(n)}).join(", ")+'</ph name="'+t.closeName+'">'},t.prototype.visitPlaceholder=function(t,e){return t.value?'<ph name="'+t.name+'">'+t.value+"</ph>":'<ph name="'+t.name+'"/>'},t.prototype.visitIcuPlaceholder=function(t,e){return'<ph icu name="'+t.name+'">'+t.value.visit(this)+"</ph>"},t}(),ea=new ta,na=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Qr(e,t),e.prototype.visitIcu=function(t,e){var n=this,r=Object.keys(t.cases).map(function(e){return e+" {"+t.cases[e].visit(n)+"}"});return"{"+t.type+", "+r.join(", ")+"}"},e}(ta),ra={};ra.Little=0,ra.Big=1,ra[ra.Little]="Little",ra[ra.Big]="Big";/**
* @license
* Copyright Google Inc. All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
var oa=function(){function t(){}return t.prototype.write=function(t,e){},t.prototype.load=function(t,e){},t.prototype.digest=function(t){},t.prototype.createNameMapper=function(t){return null},t}(),ia=function(t){function e(e,n){var r=t.call(this)||this;return r.mapName=n,r.internalToPublic={},r.publicToNextId={},r.publicToInternal={},e.nodes.forEach(function(t){return t.visit(r)}),r}return Qr(e,t),e.prototype.toPublicName=function(t){return this.internalToPublic.hasOwnProperty(t)?this.internalToPublic[t]:null},e.prototype.toInternalName=function(t){return this.publicToInternal.hasOwnProperty(t)?this.publicToInternal[t]:null},e.prototype.visitText=function(t,e){return null},e.prototype.visitTagPlaceholder=function(e,n){this.visitPlaceholderName(e.startName),t.prototype.visitTagPlaceholder.call(this,e,n),this.visitPlaceholderName(e.closeName)},e.prototype.visitPlaceholder=function(t,e){this.visitPlaceholderName(t.name)},e.prototype.visitIcuPlaceholder=function(t,e){this.visitPlaceholderName(t.name)},e.prototype.visitPlaceholderName=function(t){if(t&&!this.internalToPublic.hasOwnProperty(t)){var e=this.mapName(t);if(this.publicToInternal.hasOwnProperty(e)){var n=this.publicToNextId[e];this.publicToNextId[e]=n+1,e=e+"_"+n}else this.publicToNextId[e]=1;this.internalToPublic[t]=e,this.publicToInternal[e]=t}},e}(Fs),sa=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}(),aa=new sa,ua=function(){function t(t){var e=this;this.attrs={},Object.keys(t).forEach(function(n){e.attrs[n]=oe(t[n])})}return t.prototype.visit=function(t){return t.visitDeclaration(this)},t}(),ca=function(){function t(t,e){this.rootTag=t,this.dtd=e}return t.prototype.visit=function(t){return t.visitDoctype(this)},t}(),la=function(){function t(t,e,n){void 0===e&&(e={}),void 0===n&&(n=[]);var r=this;this.name=t,this.children=n,this.attrs={},Object.keys(e).forEach(function(t){r.attrs[t]=oe(e[t])})}return t.prototype.visit=function(t){return t.visitTag(this)},t}(),pa=function(){function t(t){this.value=oe(t)}return t.prototype.visit=function(t){return t.visitText(this)},t}(),ha=function(t){function e(e){return void 0===e&&(e=0),t.call(this,"\n"+new Array(e+1).join(" "))||this}return Qr(e,t),e}(pa),fa=[[/&/g,"&amp;"],[/"/g,"&quot;"],[/'/g,"&apos;"],[/</g,"&lt;"],[/>/g,"&gt;"]],da=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Qr(e,t),e.prototype.write=function(t,e){var n=new ya,r=[];t.forEach(function(t){var e=[];t.sources.forEach(function(t){var n=new la("context-group",{purpose:"location"});n.children.push(new ha(10),new la("context",{"context-type":"sourcefile"},[new pa(t.filePath)]),new ha(10),new la("context",{"context-type":"linenumber"},[new pa(""+t.startLine)]),new ha(8)),e.push(new ha(8),n)});var o=new la("trans-unit",{id:t.id,datatype:"html"});(i=o.children).push.apply(i,[new ha(8),new la("source",{},n.serialize(t.nodes)),new ha(8),new la("target")].concat(e)),t.description&&o.children.push(new ha(8),new la("note",{priority:"1",from:"description"},[new pa(t.description)])),t.meaning&&o.children.push(new ha(8),new la("note",{priority:"1",from:"meaning"},[new pa(t.meaning)])),o.children.push(new ha(6)),r.push(new ha(6),o);var i});var o=new la("body",{},r.concat([new ha(4)])),i=new la("file",{"source-language":e||"en",datatype:"plaintext",original:"ng2.template"},[new ha(4),o,new ha(2)]),s=new la("xliff",{version:"1.2",xmlns:"urn:oasis:names:tc:xliff:document:1.2"},[new ha(2),i,new ha]);return re([new ua({version:"1.0",encoding:"UTF-8"}),new ha,s,new ha])},e.prototype.load=function(t,e){var n=new va,r=n.parse(t,e),o=r.locale,i=r.msgIdToHtml,s=r.errors,a={},u=new ma;if(Object.keys(i).forEach(function(t){var n=u.convert(i[t],e),r=n.i18nNodes,o=n.errors;s.push.apply(s,o),a[t]=r}),s.length)throw new Error("xliff parse errors:\n"+s.join("\n"));return{locale:o,i18nNodesByMsgId:a}},e.prototype.digest=function(t){return It(t)},e}(oa),ya=function(){function t(){}return t.prototype.visitText=function(t,e){return[new pa(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))}),r},t.prototype.visitIcu=function(t,e){var n=this,r=[new pa("{"+t.expressionPlaceholder+", "+t.type+", ")];return Object.keys(t.cases).forEach(function(e){r.push.apply(r,[new pa(e+" {")].concat(t.cases[e].visit(n),[new pa("} ")]))}),r.push(new pa("}")),r},t.prototype.visitTagPlaceholder=function(t,e){var n=ie(t.tag),r=new la("x",{id:t.startName,ctype:n});if(t.isVoid)return[r];var o=new la("x",{id:t.closeName,ctype:n});return[r].concat(this.serialize(t.children),[o])},t.prototype.visitPlaceholder=function(t,e){return[new la("x",{id:t.name})]},t.prototype.visitIcuPlaceholder=function(t,e){return[new la("x",{id:t.name})]},t.prototype.serialize=function(t){var e=this;return[].concat.apply([],t.map(function(t){return t.visit(e)}))},t}(),va=function(){function t(){this._locale=null}return t.prototype.parse=function(t,e){this._unitMlString=null,this._msgIdToHtml={};var n=(new Js).parse(t,e,!1);return this._errors=n.errors,ct(this,n.rootNodes,null),{msgIdToHtml:this._msgIdToHtml,errors:this._errors,locale:this._locale}},t.prototype.visitElement=function(t,e){switch(t.name){case"trans-unit":this._unitMlString=null;var n=t.attrs.find(function(t){return"id"===t.name});if(n){var r=n.value;this._msgIdToHtml.hasOwnProperty(r)?this._addError(t,"Duplicated translations for msg "+r):(ct(this,t.children,null),"string"==typeof this._unitMlString?this._msgIdToHtml[r]=this._unitMlString:this._addError(t,"Message "+r+" misses a translation"))}else this._addError(t,'<trans-unit> misses the "id" attribute');break;case"source":break;case"target":var o=t.startSourceSpan.end.offset,i=t.endSourceSpan.start.offset,s=t.startSourceSpan.start.file.content,a=s.slice(o,i);this._unitMlString=a;break;case"file":var u=t.attrs.find(function(t){return"target-language"===t.name});u&&(this._locale=u.value),ct(this,t.children,null);break;default:ct(this,t.children,null)}},t.prototype.visitAttribute=function(t,e){},t.prototype.visitText=function(t,e){},t.prototype.visitComment=function(t,e){},t.prototype.visitExpansion=function(t,e){},t.prototype.visitExpansionCase=function(t,e){},t.prototype._addError=function(t,e){this._errors.push(new Gs(t.sourceSpan,e))},t}(),ma=function(){function t(){}return t.prototype.convert=function(t,e){var n=(new Js).parse(t,e,!0);return this._errors=n.errors,{i18nNodes:this._errors.length>0||0==n.rootNodes.length?[]:ct(this,n.rootNodes),errors:this._errors}},t.prototype.visitText=function(t,e){return new ks(t.value,t.sourceSpan)},t.prototype.visitElement=function(t,e){if("x"===t.name){var n=t.attrs.find(function(t){return"id"===t.name});if(n)return new Ds("",n.value,t.sourceSpan);this._addError(t,'<x> misses the "id" attribute')}else this._addError(t,"Unexpected tag");return null},t.prototype.visitExpansion=function(t,e){var n={};return ct(this,t.cases).forEach(function(e){n[e.value]=new Ns(e.nodes,t.sourceSpan)}),new Is(t.switchValue,t.type,n,t.sourceSpan)},t.prototype.visitExpansionCase=function(t,e){return{value:t.value,nodes:ct(this,t.expression)}},t.prototype.visitComment=function(t,e){},t.prototype.visitAttribute=function(t,e){},t.prototype._addError=function(t,e){this._errors.push(new Gs(t.sourceSpan,e))},t}(),ga=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Qr(e,t),e.prototype.write=function(t,e){var n=new _a,r=[];t.forEach(function(t){var e=new la("unit",{id:t.id});if(t.description||t.meaning){var o=new la("notes");t.description&&o.children.push(new ha(8),new la("note",{category:"description"},[new pa(t.description)])),t.meaning&&o.children.push(new ha(8),new la("note",{category:"meaning"},[new pa(t.meaning)])),o.children.push(new ha(6)),e.children.push(new ha(6),o)}var i=new la("segment");i.children.push(new ha(8),new la("source",{},n.serialize(t.nodes)),new ha(6)),e.children.push(new ha(6),i,new ha(4)),r.push(new ha(4),e)});var o=new la("file",{original:"ng.template",id:"ngi18n"},r.concat([new ha(2)])),i=new la("xliff",{version:"2.0",xmlns:"urn:oasis:names:tc:xliff:document:2.0",srcLang:e||"en"},[new ha(2),o,new ha]);return re([new ua({version:"1.0",encoding:"UTF-8"}),new ha,i,new ha])},e.prototype.load=function(t,e){var n=new ba,r=n.parse(t,e),o=r.locale,i=r.msgIdToHtml,s=r.errors,a={},u=new wa;if(Object.keys(i).forEach(function(t){var n=u.convert(i[t],e),r=n.i18nNodes,o=n.errors;s.push.apply(s,o),a[t]=r}),s.length)throw new Error("xliff2 parse errors:\n"+s.join("\n"));return{locale:o,i18nNodesByMsgId:a}},e.prototype.digest=function(t){return Rt(t)},e}(oa),_a=function(){function t(){}return t.prototype.visitText=function(t,e){return[new pa(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))}),r},t.prototype.visitIcu=function(t,e){var n=this,r=[new pa("{"+t.expressionPlaceholder+", "+t.type+", ")];return Object.keys(t.cases).forEach(function(e){r.push.apply(r,[new pa(e+" {")].concat(t.cases[e].visit(n),[new pa("} ")]))}),r.push(new pa("}")),r},t.prototype.visitTagPlaceholder=function(t,e){var n=this,r=se(t.tag);if(t.isVoid){return[new la("ph",{id:(this._nextPlaceholderId++).toString(),equiv:t.startName,type:r,disp:"<"+t.tag+"/>"})]}var o=new la("pc",{id:(this._nextPlaceholderId++).toString(),equivStart:t.startName,equivEnd:t.closeName,type:r,dispStart:"<"+t.tag+">",dispEnd:"</"+t.tag+">"}),i=[].concat.apply([],t.children.map(function(t){return t.visit(n)}));return i.length?i.forEach(function(t){return o.children.push(t)}):o.children.push(new pa("")),[o]},t.prototype.visitPlaceholder=function(t,e){return[new la("ph",{id:(this._nextPlaceholderId++).toString(),equiv:t.name,disp:"{{"+t.value+"}}"})]},t.prototype.visitIcuPlaceholder=function(t,e){return[new la("ph",{id:(this._nextPlaceholderId++).toString()})]},t.prototype.serialize=function(t){var e=this;return this._nextPlaceholderId=0,[].concat.apply([],t.map(function(t){return t.visit(e)}))},t}(),ba=function(){function t(){this._locale=null}return t.prototype.parse=function(t,e){this._unitMlString=null,this._msgIdToHtml={};var n=(new Js).parse(t,e,!1);return this._errors=n.errors,ct(this,n.rootNodes,null),{msgIdToHtml:this._msgIdToHtml,errors:this._errors,locale:this._locale}},t.prototype.visitElement=function(t,e){switch(t.name){case"unit":this._unitMlString=null;var n=t.attrs.find(function(t){return"id"===t.name});if(n){var r=n.value;this._msgIdToHtml.hasOwnProperty(r)?this._addError(t,"Duplicated translations for msg "+r):(ct(this,t.children,null),"string"==typeof this._unitMlString?this._msgIdToHtml[r]=this._unitMlString:this._addError(t,"Message "+r+" misses a translation"))}else this._addError(t,'<unit> misses the "id" attribute');break;case"source":break;case"target":var o=t.startSourceSpan.end.offset,i=t.endSourceSpan.start.offset,s=t.startSourceSpan.start.file.content,a=s.slice(o,i);this._unitMlString=a;break;case"xliff":var u=t.attrs.find(function(t){return"trgLang"===t.name});u&&(this._locale=u.value);var c=t.attrs.find(function(t){return"version"===t.name});if(c){var l=c.value;"2.0"!==l?this._addError(t,"The XLIFF file version "+l+" is not compatible with XLIFF 2.0 serializer"):ct(this,t.children,null)}break;default:ct(this,t.children,null)}},t.prototype.visitAttribute=function(t,e){},t.prototype.visitText=function(t,e){},t.prototype.visitComment=function(t,e){},t.prototype.visitExpansion=function(t,e){},t.prototype.visitExpansionCase=function(t,e){},t.prototype._addError=function(t,e){this._errors.push(new Gs(t.sourceSpan,e))},t}(),wa=function(){function t(){}return t.prototype.convert=function(t,e){var n=(new Js).parse(t,e,!0);return this._errors=n.errors,{i18nNodes:this._errors.length>0||0==n.rootNodes.length?[]:[].concat.apply([],ct(this,n.rootNodes)),errors:this._errors}},t.prototype.visitText=function(t,e){return new ks(t.value,t.sourceSpan)},t.prototype.visitElement=function(t,e){var n=this;switch(t.name){case"ph":var r=t.attrs.find(function(t){return"equiv"===t.name});if(r)return[new Ds("",r.value,t.sourceSpan)];this._addError(t,'<ph> misses the "equiv" attribute');break;case"pc":var o=t.attrs.find(function(t){return"equivStart"===t.name}),i=t.attrs.find(function(t){return"equivEnd"===t.name});if(o){if(i){var s=o.value,a=i.value,u=[];return u.concat.apply(u,[new Ds("",s,t.sourceSpan)].concat(t.children.map(function(t){return t.visit(n,null)}),[new Ds("",a,t.sourceSpan)]))}this._addError(t,'<ph> misses the "equivEnd" attribute')}else this._addError(t,'<ph> misses the "equivStart" attribute');break;default:this._addError(t,"Unexpected tag")}return null},t.prototype.visitExpansion=function(t,e){var n={};return ct(this,t.cases).forEach(function(e){n[e.value]=new Ns(e.nodes,t.sourceSpan)}),new Is(t.switchValue,t.type,n,t.sourceSpan)},t.prototype.visitExpansionCase=function(t,e){return{value:t.value,nodes:[].concat.apply([],ct(this,t.expression))}},t.prototype.visitComment=function(t,e){},t.prototype.visitAttribute=function(t,e){},t.prototype._addError=function(t,e){this._errors.push(new Gs(t.sourceSpan,e))},t}(),Ea=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Qr(e,t),e.prototype.write=function(t,e){var n=new Sa,r=new Ca,o=new la("messagebundle");return t.forEach(function(t){var e={id:t.id};t.description&&(e.desc=t.description),t.meaning&&(e.meaning=t.meaning);var n=[];t.sources.forEach(function(t){n.push(new la("source",{},[new pa(t.filePath+":"+t.startLine+(t.endLine!==t.startLine?","+t.endLine:""))]))}),o.children.push(new ha(2),new la("msg",e,n.concat(r.serialize(t.nodes))))}),o.children.push(new ha),re([new ua({version:"1.0",encoding:"UTF-8"}),new ha,new ca("messagebundle",'<!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)>'),new ha,n.addDefaultExamples(o),new ha])},e.prototype.load=function(t,e){throw new Error("Unsupported")},e.prototype.digest=function(t){return ae(t)},e.prototype.createNameMapper=function(t){return new ia(t,ue)},e}(oa),Ca=function(){function t(){}return t.prototype.visitText=function(t,e){return[new pa(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))}),r},t.prototype.visitIcu=function(t,e){var n=this,r=[new pa("{"+t.expressionPlaceholder+", "+t.type+", ")];return Object.keys(t.cases).forEach(function(e){r.push.apply(r,[new pa(e+" {")].concat(t.cases[e].visit(n),[new pa("} ")]))}),r.push(new pa("}")),r},t.prototype.visitTagPlaceholder=function(t,e){var n=new la("ex",{},[new pa("<"+t.tag+">")]),r=new la("ph",{name:t.startName},[n]);if(t.isVoid)return[r];var o=new la("ex",{},[new pa("</"+t.tag+">")]),i=new la("ph",{name:t.closeName},[o]);return[r].concat(this.serialize(t.children),[i])},t.prototype.visitPlaceholder=function(t,e){return[new la("ph",{name:t.name})]},t.prototype.visitIcuPlaceholder=function(t,e){return[new la("ph",{name:t.name})]},t.prototype.serialize=function(t){var e=this;return[].concat.apply([],t.map(function(t){return t.visit(e)}))},t}(),Sa=function(){function t(){}return t.prototype.addDefaultExamples=function(t){return t.visit(this),t},t.prototype.visitTag=function(t){var e=this;if("ph"===t.name){if(!t.children||0==t.children.length){var n=new pa(t.attrs.name||"...");t.children=[new la("ex",{},[n])]}}else t.children&&t.children.forEach(function(t){return t.visit(e)})},t.prototype.visitText=function(t){},t.prototype.visitDeclaration=function(t){},t.prototype.visitDoctype=function(t){},t}(),xa=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Qr(e,t),e.prototype.write=function(t,e){throw new Error("Unsupported")},e.prototype.load=function(t,e){var n=new Ta,r=n.parse(t,e),o=r.locale,i=r.msgIdToHtml,s=r.errors,a={},u=new Pa;if(Object.keys(i).forEach(function(t){ce(a,t,function(){var n=u.convert(i[t],e),r=n.i18nNodes,o=n.errors;if(o.length)throw new Error("xtb parse errors:\n"+o.join("\n"));return r})}),s.length)throw new Error("xtb parse errors:\n"+s.join("\n"));return{locale:o,i18nNodesByMsgId:a}},e.prototype.digest=function(t){return ae(t)},e.prototype.createNameMapper=function(t){return new ia(t,ue)},e}(oa),Ta=function(){function t(){this._locale=null}return t.prototype.parse=function(t,e){this._bundleDepth=0,this._msgIdToHtml={};var n=(new Js).parse(t,e,!1);return this._errors=n.errors,ct(this,n.rootNodes),{msgIdToHtml:this._msgIdToHtml,errors:this._errors,locale:this._locale}},t.prototype.visitElement=function(t,e){switch(t.name){case"translationbundle":this._bundleDepth++,this._bundleDepth>1&&this._addError(t,"<translationbundle> elements can not be nested");var n=t.attrs.find(function(t){return"lang"===t.name});n&&(this._locale=n.value),ct(this,t.children,null),this._bundleDepth--;break;case"translation":var r=t.attrs.find(function(t){return"id"===t.name});if(r){var o=r.value;if(this._msgIdToHtml.hasOwnProperty(o))this._addError(t,"Duplicated translations for msg "+o);else{var i=t.startSourceSpan.end.offset,s=t.endSourceSpan.start.offset,a=t.startSourceSpan.start.file.content,u=a.slice(i,s);this._msgIdToHtml[o]=u}}else this._addError(t,'<translation> misses the "id" attribute');break;default:this._addError(t,"Unexpected tag")}},t.prototype.visitAttribute=function(t,e){},t.prototype.visitText=function(t,e){},t.prototype.visitComment=function(t,e){},t.prototype.visitExpansion=function(t,e){},t.prototype.visitExpansionCase=function(t,e){},t.prototype._addError=function(t,e){this._errors.push(new Gs(t.sourceSpan,e))},t}(),Pa=function(){function t(){}return t.prototype.convert=function(t,e){var n=(new Js).parse(t,e,!0);return this._errors=n.errors,{i18nNodes:this._errors.length>0||0==n.rootNodes.length?[]:ct(this,n.rootNodes),errors:this._errors}},t.prototype.visitText=function(t,e){return new ks(t.value,t.sourceSpan)},t.prototype.visitExpansion=function(t,e){var n={};return ct(this,t.cases).forEach(function(e){n[e.value]=new Ns(e.nodes,t.sourceSpan)}),new Is(t.switchValue,t.type,n,t.sourceSpan)},t.prototype.visitExpansionCase=function(t,e){return{value:t.value,nodes:ct(this,t.expression)}},t.prototype.visitElement=function(t,e){if("ph"===t.name){var n=t.attrs.find(function(t){return"name"===t.name});if(n)return new Ds("",n.value,t.sourceSpan);this._addError(t,'<ph> misses the "name" attribute')}else this._addError(t,"Unexpected tag");return null},t.prototype.visitComment=function(t,e){},t.prototype.visitAttribute=function(t,e){},t.prototype._addError=function(t,e){this._errors.push(new Gs(t.sourceSpan,e))},t}(),Aa=function(t){function e(){return t.call(this,l)||this}return Qr(e,t),e.prototype.parse=function(e,n,r,o){return void 0===r&&(r=!1),void 0===o&&(o=Yi),t.prototype.parse.call(this,e,n,r,o)},e}(As);Aa.decorators=[{type:q}],Aa.ctorParameters=function(){return[]};/**
* @license
* Copyright Google Inc. All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
var Oa=function(){function t(t,e,n,r,o,i){void 0===t&&(t={}),void 0===o&&(o=Kr.MissingTranslationStrategy.Warning),this._i18nNodesByMsgId=t,this.digest=n,this.mapperFactory=r,this._i18nToHtml=new Ma(t,e,n,r,o,i)}return t.load=function(e,n,r,o,i){var s=r.load(e,n),a=s.locale;return new t(s.i18nNodesByMsgId,a,function(t){return r.digest(t)},function(t){return r.createNameMapper(t)},o,i)},t.prototype.get=function(t){var e=this._i18nToHtml.convert(t);if(e.errors.length)throw new Error(e.errors.join("\n"));return e.nodes},t.prototype.has=function(t){return this.digest(t)in this._i18nNodesByMsgId},t}(),Ma=function(){function t(t,e,n,r,o,i){void 0===t&&(t={}),this._i18nNodesByMsgId=t,this._locale=e,this._digest=n,this._mapperFactory=r,this._missingTranslationStrategy=o,this._console=i,this._contextStack=[],this._errors=[]}return t.prototype.convert=function(t){this._contextStack.length=0,this._errors.length=0;var e=this._convertToText(t),n=t.nodes[0].sourceSpan.start.file.url,r=(new Aa).parse(e,n,!0);return{nodes:r.rootNodes,errors:this._errors.concat(r.errors)}},t.prototype.visitText=function(t,e){return t.value},t.prototype.visitContainer=function(t,e){var n=this;return t.children.map(function(t){return t.visit(n)}).join("")},t.prototype.visitIcu=function(t,e){var n=this,r=Object.keys(t.cases).map(function(e){return e+" {"+t.cases[e].visit(n)+"}"});return"{"+(this._srcMsg.placeholders.hasOwnProperty(t.expression)?this._srcMsg.placeholders[t.expression]:t.expression)+", "+t.type+", "+r.join(" ")+"}"},t.prototype.visitPlaceholder=function(t,e){var n=this._mapper(t.name);return this._srcMsg.placeholders.hasOwnProperty(n)?this._srcMsg.placeholders[n]:this._srcMsg.placeholderToMessage.hasOwnProperty(n)?this._convertToText(this._srcMsg.placeholderToMessage[n]):(this._addError(t,'Unknown placeholder "'+t.name+'"'),"")},t.prototype.visitTagPlaceholder=function(t,e){var n=this,r=""+t.tag,o=Object.keys(t.attrs).map(function(e){return e+'="'+t.attrs[e]+'"'}).join(" ");return t.isVoid?"<"+r+" "+o+"/>":"<"+r+" "+o+">"+t.children.map(function(t){return t.visit(n)}).join("")+"</"+r+">"},t.prototype.visitIcuPlaceholder=function(t,e){return this._convertToText(this._srcMsg.placeholderToMessage[t.name])},t.prototype._convertToText=function(t){var e,n=this,r=this._digest(t),o=this._mapperFactory?this._mapperFactory(t):null;if(this._contextStack.push({msg:this._srcMsg,mapper:this._mapper}),this._srcMsg=t,this._i18nNodesByMsgId.hasOwnProperty(r))e=this._i18nNodesByMsgId[r],this._mapper=function(t){return o?o.toInternalName(t):t};else{if(this._missingTranslationStrategy===Kr.MissingTranslationStrategy.Error){var i=this._locale?' for locale "'+this._locale+'"':"";this._addError(t.nodes[0],'Missing translation for message "'+r+'"'+i)}else if(this._console&&this._missingTranslationStrategy===Kr.MissingTranslationStrategy.Warning){var i=this._locale?' for locale "'+this._locale+'"':"";this._console.warn('Missing translation for message "'+r+'"'+i)}e=t.nodes,this._mapper=function(t){return t}}var s=e.map(function(t){return t.visit(n)}).join(""),a=this._contextStack.pop();return this._srcMsg=a.msg,this._mapper=a.mapper,s},t.prototype._addError=function(t,e){this._errors.push(new Gs(t.sourceSpan,e))},t}(),ka=function(){function t(t,e,n,r,o){if(void 0===r&&(r=Kr.MissingTranslationStrategy.Warning),this._htmlParser=t,e){var i=le(n);this._translationBundle=Oa.load(e,"i18n",i,r,o)}}return t.prototype.parse=function(t,e,n,r){void 0===n&&(n=!1),void 0===r&&(r=Yi);var o=this._htmlParser.parse(t,e,n,r);return this._translationBundle?o.errors.length?new Ps(o.rootNodes,o.errors):Pt(o.rootNodes,this._translationBundle,r,[],{}):o},t}(),Na=function(t,e,n){return void 0===e&&(e=null),void 0===n&&(n="src"),null==e?"@angular/"+t:"@angular/"+t+"/"+n+"/"+e}("core"),Ia=function(){function t(){}return t}();Ia.ANALYZE_FOR_ENTRY_COMPONENTS={name:"ANALYZE_FOR_ENTRY_COMPONENTS",moduleUrl:Na,runtime:Kr.ANALYZE_FOR_ENTRY_COMPONENTS},Ia.ElementRef={name:"ElementRef",moduleUrl:Na,runtime:Kr.ElementRef},Ia.NgModuleRef={name:"NgModuleRef",moduleUrl:Na,runtime:Kr.NgModuleRef},Ia.ViewContainerRef={name:"ViewContainerRef",moduleUrl:Na,runtime:Kr.ViewContainerRef},Ia.ChangeDetectorRef={name:"ChangeDetectorRef",moduleUrl:Na,runtime:Kr.ChangeDetectorRef},Ia.QueryList={name:"QueryList",moduleUrl:Na,runtime:Kr.QueryList},Ia.TemplateRef={name:"TemplateRef",moduleUrl:Na,runtime:Kr.TemplateRef},Ia.CodegenComponentFactoryResolver={name:"ɵCodegenComponentFactoryResolver",moduleUrl:Na,runtime:Kr["ɵCodegenComponentFactoryResolver"]},Ia.ComponentFactoryResolver={name:"ComponentFactoryResolver",moduleUrl:Na,runtime:Kr.ComponentFactoryResolver},Ia.ComponentFactory={name:"ComponentFactory",moduleUrl:Na,runtime:Kr.ComponentFactory},Ia.ComponentRef={name:"ComponentRef",moduleUrl:Na,runtime:Kr.ComponentRef},Ia.NgModuleFactory={name:"NgModuleFactory",moduleUrl:Na,runtime:Kr.NgModuleFactory},Ia.NgModuleInjector={name:"ɵNgModuleInjector",moduleUrl:Na,runtime:Kr["ɵNgModuleInjector"]},Ia.RegisterModuleFactoryFn={name:"ɵregisterModuleFactory",moduleUrl:Na,runtime:Kr["ɵregisterModuleFactory"]},Ia.Injector={name:"Injector",moduleUrl:Na,runtime:Kr.Injector},Ia.ViewEncapsulation={name:"ViewEncapsulation",moduleUrl:Na,runtime:Kr.ViewEncapsulation},Ia.ChangeDetectionStrategy={name:"ChangeDetectionStrategy",moduleUrl:Na,runtime:Kr.ChangeDetectionStrategy},Ia.SecurityContext={name:"SecurityContext",moduleUrl:Na,runtime:Kr.SecurityContext},Ia.LOCALE_ID={name:"LOCALE_ID",moduleUrl:Na,runtime:Kr.LOCALE_ID},Ia.TRANSLATIONS_FORMAT={name:"TRANSLATIONS_FORMAT",moduleUrl:Na,runtime:Kr.TRANSLATIONS_FORMAT},Ia.inlineInterpolate={name:"ɵinlineInterpolate",moduleUrl:Na,runtime:Kr["ɵinlineInterpolate"]},Ia.interpolate={name:"ɵinterpolate",moduleUrl:Na,runtime:Kr["ɵinterpolate"]},Ia.EMPTY_ARRAY={name:"ɵEMPTY_ARRAY",moduleUrl:Na,runtime:Kr["ɵEMPTY_ARRAY"]},Ia.EMPTY_MAP={name:"ɵEMPTY_MAP",moduleUrl:Na,runtime:Kr["ɵEMPTY_MAP"]},Ia.Renderer={name:"Renderer",moduleUrl:Na,runtime:Kr.Renderer},Ia.viewDef={name:"ɵvid",moduleUrl:Na,runtime:Kr["ɵvid"]},Ia.elementDef={name:"ɵeld",moduleUrl:Na,runtime:Kr["ɵeld"]},Ia.anchorDef={name:"ɵand",moduleUrl:Na,runtime:Kr["ɵand"]},Ia.textDef={name:"ɵted",moduleUrl:Na,runtime:Kr["ɵted"]},Ia.directiveDef={name:"ɵdid",moduleUrl:Na,runtime:Kr["ɵdid"]},Ia.providerDef={name:"ɵprd",moduleUrl:Na,runtime:Kr["ɵprd"]},Ia.queryDef={name:"ɵqud",moduleUrl:Na,runtime:Kr["ɵqud"]},Ia.pureArrayDef={name:"ɵpad",moduleUrl:Na,runtime:Kr["ɵpad"]},Ia.pureObjectDef={name:"ɵpod",moduleUrl:Na,runtime:Kr["ɵpod"]},Ia.purePipeDef={name:"ɵppd",moduleUrl:Na,runtime:Kr["ɵppd"]},Ia.pipeDef={name:"ɵpid",moduleUrl:Na,runtime:Kr["ɵpid"]},Ia.nodeValue={name:"ɵnov",moduleUrl:Na,runtime:Kr["ɵnov"]},Ia.ngContentDef={name:"ɵncd",moduleUrl:Na,runtime:Kr["ɵncd"]},Ia.unwrapValue={name:"ɵunv",moduleUrl:Na,runtime:Kr["ɵunv"]},Ia.createRendererType2={name:"ɵcrt",moduleUrl:Na,runtime:Kr["ɵcrt"]},Ia.RendererType2={name:"RendererType2",moduleUrl:Na,runtime:null},Ia.ViewDefinition={name:"ɵViewDefinition",moduleUrl:Na,runtime:null},Ia.createComponentFactory={name:"ɵccf",moduleUrl:Na,runtime:Kr["ɵccf"]};/**
* @license
* Copyright Google Inc. All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
var Ra=["zero","one","two","few","many","other"],Da=function(){function t(t,e,n){this.nodes=t,this.expanded=e,this.errors=n}return t}(),Va=function(t){function e(e,n){return t.call(this,e,n)||this}return Qr(e,t),e}(fs),La=function(){function t(){this.isExpanded=!1,this.errors=[]}return t.prototype.visitElement=function(t,e){return new gs(t.name,t.attrs,ct(this,t.children),t.sourceSpan,t.startSourceSpan,t.endSourceSpan)},t.prototype.visitAttribute=function(t,e){return t},t.prototype.visitText=function(t,e){return t},t.prototype.visitComment=function(t,e){return t},t.prototype.visitExpansion=function(t,e){return this.isExpanded=!0,"plural"==t.type?ve(t,this.errors):me(t,this.errors)},t.prototype.visitExpansionCase=function(t,e){throw new Error("Should not be reached")},t}(),Fa=function(t){function e(e,n){return t.call(this,n,e)||this}return Qr(e,t),e}(fs),ja=function(){function t(t){var e=this;this.component=t,this.errors=[],this.viewQueries=Ee(t),this.viewProviders=new Map,t.viewProviders.forEach(function(t){null==e.viewProviders.get(M(t.token))&&e.viewProviders.set(M(t.token),!0)})}return t}(),Ha=function(){function t(t,e,n,r,o,i,s,a,u){var c=this;this.viewContext=t,this._parent=e,this._isViewRoot=n,this._directiveAsts=r,this._sourceSpan=u,this._transformedProviders=new Map,this._seenProviders=new Map,this._hasViewContainer=!1,this._queriedTokens=new Map,this._attrs={},o.forEach(function(t){return c._attrs[t.name]=t.value});var l=r.map(function(t){return t.directive});if(this._allProviders=be(l,u,t.errors),this._contentQueries=Ce(a,l),Array.from(this._allProviders.values()).forEach(function(t){c._addQueryReadsTo(t.token,t.token,c._queriedTokens)}),s){var p=de(Ia.TemplateRef);this._addQueryReadsTo(p,p,this._queriedTokens)}i.forEach(function(t){var e=t.value||de(Ia.ElementRef);c._addQueryReadsTo({value:t.name},e,c._queriedTokens)}),this._queriedTokens.get(pe(Ia.ViewContainerRef))&&(this._hasViewContainer=!0),Array.from(this._allProviders.values()).forEach(function(t){(t.eager||c._queriedTokens.get(M(t.token)))&&c._getOrCreateLocalProvider(t.providerType,t.token,!0)})}return t.prototype.afterElement=function(){var t=this;Array.from(this._allProviders.values()).forEach(function(e){t._getOrCreateLocalProvider(e.providerType,e.token,!1)})},Object.defineProperty(t.prototype,"transformProviders",{get:function(){return Array.from(this._transformedProviders.values())},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"transformedDirectiveAsts",{get:function(){var t=this.transformProviders.map(function(t){return t.token.identifier}),e=this._directiveAsts.slice();return e.sort(function(e,n){return t.indexOf(e.directive.type)-t.indexOf(n.directive.type)}),e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"transformedHasViewContainer",{get:function(){return this._hasViewContainer},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"queryMatches",{get:function(){var t=[];return this._queriedTokens.forEach(function(e){t.push.apply(t,e)}),t},enumerable:!0,configurable:!0}),t.prototype._addQueryReadsTo=function(t,e,n){this._getQueriesFor(t).forEach(function(t){var r=t.meta.read||e,o=M(r),i=n.get(o);i||(i=[],n.set(o,i)),i.push({queryId:t.queryId,value:r})})},t.prototype._getQueriesFor=function(t){for(var e,n=[],r=this,o=0;null!==r;)e=r._contentQueries.get(M(t)),e&&n.push.apply(n,e.filter(function(t){return t.meta.descendants||o<=1})),r._directiveAsts.length>0&&o++,r=r._parent;return e=this.viewContext.viewQueries.get(M(t)),e&&n.push.apply(n,e),n},t.prototype._getOrCreateLocalProvider=function(t,e,n){var r=this,o=this._allProviders.get(M(e));if(!o||(t===ao.Directive||t===ao.PublicService)&&o.providerType===ao.PrivateService||(t===ao.PrivateService||t===ao.PublicService)&&o.providerType===ao.Builtin)return null;var i=this._transformedProviders.get(M(e));if(i)return i;if(null!=this._seenProviders.get(M(e)))return this.viewContext.errors.push(new Fa("Cannot instantiate cyclic dependency! "+O(e),this._sourceSpan)),null;this._seenProviders.set(M(e),!0);var s=o.providers.map(function(t){var e=t.useValue,i=t.useExisting,s=void 0;if(null!=t.useExisting){var a=r._getDependency(o.providerType,{token:t.useExisting},n);null!=a.token?i=a.token:(i=null,e=a.value)}else if(t.useFactory){var u=t.deps||t.useFactory.diDeps;s=u.map(function(t){return r._getDependency(o.providerType,t,n)})}else if(t.useClass){var u=t.deps||t.useClass.diDeps;s=u.map(function(t){return r._getDependency(o.providerType,t,n)})}return ge(t,{useExisting:i,useValue:e,deps:s})});return i=_e(o,{eager:n,providers:s}),this._transformedProviders.set(M(e),i),i},t.prototype._getLocalDependency=function(t,e,n){if(void 0===n&&(n=!1),e.isAttribute){var r=this._attrs[e.token.value];return{isValue:!0,value:null==r?null:r}}if(null!=e.token){if(t===ao.Directive||t===ao.Component){if(M(e.token)===pe(Ia.Renderer)||M(e.token)===pe(Ia.ElementRef)||M(e.token)===pe(Ia.ChangeDetectorRef)||M(e.token)===pe(Ia.TemplateRef))return e;M(e.token)===pe(Ia.ViewContainerRef)&&(this._hasViewContainer=!0)}if(M(e.token)===pe(Ia.Injector))return e;if(null!=this._getOrCreateLocalProvider(t,e.token,n))return e}return null},t.prototype._getDependency=function(t,e,n){void 0===n&&(n=!1);var r=this,o=n,i=null;if(e.isSkipSelf||(i=this._getLocalDependency(t,e,n)),e.isSelf)!i&&e.isOptional&&(i={isValue:!0,value:null});else{for(;!i&&r._parent;){var s=r;r=r._parent,s._isViewRoot&&(o=!1),i=r._getLocalDependency(ao.PublicService,e,o)}i||(i=!e.isHost||this.viewContext.component.isHost||this.viewContext.component.type.reference===M(e.token)||null!=this.viewContext.viewProviders.get(M(e.token))?e:e.isOptional?i={isValue:!0,value:null}:null)}return i||this.viewContext.errors.push(new Fa("No provider for "+O(e.token),this._sourceSpan)),i},t}(),Ua=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){we([{token:{identifier:t},useClass:t}],ao.PublicService,!0,n,r._errors,r._allProviders)}),we(t.transitiveModule.providers.map(function(t){return t.provider}).concat(e),ao.PublicService,!1,n,this._errors,this._allProviders)}return t.prototype.parse=function(){var t=this;if(Array.from(this._allProviders.values()).forEach(function(e){t._getOrCreateLocalProvider(e.token,e.eager)}),this._errors.length>0){var e=this._errors.join("\n");throw new Error("Provider parse errors:\n"+e)}return Array.from(this._transformedProviders.values())},t.prototype._getOrCreateLocalProvider=function(t,e){var n=this,r=this._allProviders.get(M(t));if(!r)return null;var o=this._transformedProviders.get(M(t));if(o)return o;if(null!=this._seenProviders.get(M(t)))return this._errors.push(new Fa("Cannot instantiate cyclic dependency! "+O(t),r.sourceSpan)),null;this._seenProviders.set(M(t),!0);var i=r.providers.map(function(t){var o=t.useValue,i=t.useExisting,s=void 0;if(null!=t.useExisting){var a=n._getDependency({token:t.useExisting},e,r.sourceSpan);null!=a.token?i=a.token:(i=null,o=a.value)}else if(t.useFactory){var u=t.deps||t.useFactory.diDeps;s=u.map(function(t){return n._getDependency(t,e,r.sourceSpan)})}else if(t.useClass){var u=t.deps||t.useClass.diDeps;s=u.map(function(t){return n._getDependency(t,e,r.sourceSpan)})}return ge(t,{useExisting:i,useValue:o,deps:s})});return o=_e(r,{eager:e,providers:i}),this._transformedProviders.set(M(t),o),o},t.prototype._getDependency=function(t,e,n){void 0===e&&(e=!1);var r=!1;t.isSkipSelf||null==t.token||(M(t.token)===pe(Ia.Injector)||M(t.token)===pe(Ia.ComponentFactoryResolver)?r=!0:null!=this._getOrCreateLocalProvider(t.token,e)&&(r=!0));var o=t;return t.isSelf&&!r&&(t.isOptional?o={isValue:!0,value:null}:this._errors.push(new Fa("No provider for "+O(t.token),n))),o},t}(),Ba=function(){function t(){}return t.prototype.hasProperty=function(t,e,n){},t.prototype.hasElement=function(t,e){},t.prototype.securityContext=function(t,e,n){},t.prototype.allKnownElementNames=function(){},t.prototype.getMappedPropName=function(t){},t.prototype.getDefaultComponentElementName=function(){},t.prototype.validateProperty=function(t){},t.prototype.validateAttribute=function(t){},t.prototype.normalizeAnimationStyleProperty=function(t){},t.prototype.normalizeAnimationStyleValue=function(t,e,n){},t}(),qa=function(){function t(t,e){this.style=t,this.styleUrls=e}return t}(),Ga=/@import\s+(?:url\()?\s*(?:(?:['"]([^'"]*))|([^;\)\s]*))[^;]*;?/g,za=/\/\*.+?\*\//g,Wa=/^([^:\/?#]+):/,Ka={};Ka.DEFAULT=0,Ka.LITERAL_ATTR=1,Ka.ANIMATION=2,Ka[Ka.DEFAULT]="DEFAULT",Ka[Ka.LITERAL_ATTR]="LITERAL_ATTR",Ka[Ka.ANIMATION]="ANIMATION";var Qa=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===Ka.LITERAL_ATTR},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isAnimation",{get:function(){return this.type===Ka.ANIMATION},enumerable:!0,configurable:!0}),t}(),Xa=function(){function t(t,e,n,r,o){var i=this;this._exprParser=t,this._interpolationConfig=e,this._schemaRegistry=n,this._targetErrors=o,this.pipesByName=new Map,this._usedPipes=new Map,r.forEach(function(t){return i.pipesByName.set(t.name,t)})}return t.prototype.getUsedPipes=function(){return Array.from(this._usedPipes.values())},t.prototype.createDirectiveHostPropertyAsts=function(t,e,n){var r=this;if(t.hostProperties){var o=[];return Object.keys(t.hostProperties).forEach(function(e){var i=t.hostProperties[e];"string"==typeof i?r.parsePropertyBinding(e,i,!0,n,[],o):r._reportError('Value of the host property binding "'+e+'" needs to be a string representing an expression but got "'+i+'" ('+typeof i+")",n)}),o.map(function(t){return r.createElementPropertyAst(e,t)})}return null},t.prototype.createDirectiveHostEventAsts=function(t,e){var n=this;if(t.hostListeners){var r=[];return Object.keys(t.hostListeners).forEach(function(o){var i=t.hostListeners[o];"string"==typeof i?n.parseEvent(o,i,e,[],r):n._reportError('Value of the host listener "'+o+'" needs to be a string representing an expression but got "'+i+'" ('+typeof i+")",e)}),r}return null},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(t){return this._reportError(""+t,e),this._exprParser.wrapLiteralPrimitive("ERROR",n)}},t.prototype.parseInlineTemplateBinding=function(t,e,n,r,o,i){for(var s=this._parseTemplateBindings(t,e,n),a=0;a<s.length;a++){var u=s[a];u.keyIsVar?i.push(new eo(u.key,u.name,n)):u.expression?this._parsePropertyAst(u.key,u.expression,n,r,o):(r.push([u.key,""]),this.parseLiteralAttr(u.key,null,n,r,o))}},t.prototype._parseTemplateBindings=function(t,e,n){var r=this,o=n.start.toString();try{var i=this._exprParser.parseTemplateBindings(t,e,o);return this._reportExpressionParserErrors(i.errors,n),i.templateBindings.forEach(function(t){t.expression&&r._checkPipes(t.expression,n)}),i.warnings.forEach(function(t){r._reportError(t,n,hs.WARNING)}),i.templateBindings}catch(t){return this._reportError(""+t,n),[]}},t.prototype.parseLiteralAttr=function(t,e,n,r,o){Pe(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,hs.ERROR),this._parseAnimation(t,e,n,r,o)):o.push(new Qa(t,this._exprParser.wrapLiteralPrimitive(e,""),Ka.LITERAL_ATTR,n))},t.prototype.parsePropertyBinding=function(t,e,n,r,o,i){var s=!1;t.startsWith("animate-")?(s=!0,t=t.substring("animate-".length)):Pe(t)&&(s=!0,t=t.substring(1)),s?this._parseAnimation(t,e,r,o,i):this._parsePropertyAst(t,this._parseBinding(e,n,r),r,o,i)},t.prototype.parsePropertyInterpolation=function(t,e,n,r,o){var i=this.parseInterpolation(e,n);return!!i&&(this._parsePropertyAst(t,i,n,r,o),!0)},t.prototype._parsePropertyAst=function(t,e,n,r,o){r.push([t,e.source]),o.push(new Qa(t,e,Ka.DEFAULT,n))},t.prototype._parseAnimation=function(t,e,n,r,o){var i=this._parseBinding(e||"null",!1,n);r.push([t,i.source]),o.push(new Qa(t,i,Ka.ANIMATION,n))},t.prototype._parseBinding=function(t,e,n){var r=n.start.toString();try{var o=e?this._exprParser.parseSimpleBinding(t,r,this._interpolationConfig):this._exprParser.parseBinding(t,r,this._interpolationConfig);return o&&this._reportExpressionParserErrors(o.errors,n),this._checkPipes(o,n),o}catch(t){return this._reportError(""+t,n),this._exprParser.wrapLiteralPrimitive("ERROR",r)}},t.prototype.createElementPropertyAst=function(t,e){if(e.isAnimation)return new $r(e.name,co.Animation,Kr.SecurityContext.NONE,e.expression,null,e.sourceSpan);var n=null,r=void 0,o=null,i=e.name.split("."),s=void 0;if(i.length>1)if("attr"==i[0]){o=i[1],this._validatePropertyOrAttributeName(o,e.sourceSpan,!0),s=Ae(this._schemaRegistry,t,o,!0);var a=o.indexOf(":");if(a>-1){var u=o.substring(0,a),l=o.substring(a+1);o=c(u,l)}r=co.Attribute}else"class"==i[0]?(o=i[1],r=co.Class,s=[Kr.SecurityContext.NONE]):"style"==i[0]&&(n=i.length>2?i[2]:null,o=i[1],r=co.Style,s=[Kr.SecurityContext.STYLE]);return null===o&&(o=this._schemaRegistry.getMappedPropName(e.name),s=Ae(this._schemaRegistry,t,o,!1),r=co.Property,this._validatePropertyOrAttributeName(o,e.sourceSpan,!1)),new $r(o,r,s[0],e.expression,n,e.sourceSpan)},t.prototype.parseEvent=function(t,e,n,r,o){Pe(t)?(t=t.substr(1),this._parseAnimationEvent(t,e,n,o)):this._parseEvent(t,e,n,r,o)},t.prototype._parseAnimationEvent=function(t,e,n,r){var o=f(t,[t,""]),i=o[0],s=o[1].toLowerCase();if(s)switch(s){case"start":case"done":var a=this._parseAction(e,n);r.push(new Jr(i,null,s,a,n));break;default:this._reportError('The provided animation output phase value "'+s+'" for "@'+i+'" is not supported (use start or done)',n)}else this._reportError("The animation trigger output event (@"+i+") is missing its phase value name (start or done are currently supported)",n)},t.prototype._parseEvent=function(t,e,n,r,o){var i=h(t,[null,t]),s=i[0],a=i[1],u=this._parseAction(e,n);r.push([t,u.source]),o.push(new Jr(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 Wo?(this._reportError("Empty expressions are not allowed",e),this._exprParser.wrapLiteralPrimitive("ERROR",n)):(this._checkPipes(r,e),r)}catch(t){return this._reportError(""+t,e),this._exprParser.wrapLiteralPrimitive("ERROR",n)}},t.prototype._reportError=function(t,e,n){void 0===n&&(n=hs.ERROR),this._targetErrors.push(new fs(e,t,n))},t.prototype._reportExpressionParserErrors=function(t,e){for(var n=0,r=t;n<r.length;n++){var o=r[n];this._reportError(o.message,e)}},t.prototype._checkPipes=function(t,e){var n=this;if(t){var r=new Za;t.visit(r),r.pipes.forEach(function(t,r){var o=n.pipesByName.get(r);o?n._usedPipes.set(r,o):n._reportError("The pipe '"+r+"' could not be found",new ps(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,hs.ERROR)},t}(),Za=function(t){function e(){var e=t.apply(this,arguments)||this;return e.pipes=new Map,e}return Qr(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}(fi),Ya="select",$a="link",Ja="rel",tu="href",eu="stylesheet",nu="style",ru="script",ou="ngNonBindable",iu="ngProjectAs",su={};su.NG_CONTENT=0,su.STYLE=1,su.STYLESHEET=2,su.SCRIPT=3,su.OTHER=4,su[su.NG_CONTENT]="NG_CONTENT",su[su.STYLE]="STYLE",su[su.STYLESHEET]="STYLESHEET",su[su.SCRIPT]="SCRIPT",su[su.OTHER]="OTHER";var au=function(){function t(t,e,n,r,o){this.type=t,this.selectAttr=e,this.hrefAttr=n,this.nonBindable=r,this.projectAs=o}return t}(),uu="template",cu="class",lu=_o.parse("*")[0],pu="The <template> element is deprecated. Use <ng-template> instead",hu={},fu=new Kr.InjectionToken("TemplateTransforms"),du=function(t){function e(e,n,r){return t.call(this,n,e,r)||this}return Qr(e,t),e}(fs),yu=function(){function t(t,e,n){this.templateAst=t,this.usedPipes=e,this.errors=n}return t}(),vu=function(){function t(t,e,n,r,o,i){this._config=t,this._exprParser=e,this._schemaRegistry=n,this._htmlParser=r,this._console=o,this.transforms=i}return t.prototype.parse=function(t,e,n,r,o,i){var s=this.tryParse(t,e,n,r,o,i),a=s.errors.filter(function(t){return t.level===hs.WARNING}).filter(ke(["The template attribute is deprecated. Use an ng-template element instead.",pu])),u=s.errors.filter(function(t){return t.level===hs.ERROR});if(a.length>0&&this._console.warn("Template parse warnings:\n"+a.join("\n")),u.length>0){throw g("Template parse errors:\n"+u.join("\n"))}return{template:s.templateAst,pipes:s.usedPipes}},t.prototype.tryParse=function(t,e,n,r,o,i){return this.tryParseHtml(this.expandHtml(this._htmlParser.parse(e,i,!0,this.getInterpolationConfig(t))),t,n,r,o)},t.prototype.tryParseHtml=function(t,e,n,o,i){var s,a=t.errors,u=[];if(t.rootNodes.length>0){var c=De(n),l=De(o),p=new ja(e),h=void 0;e.template&&e.template.interpolation&&(h={start:e.template.interpolation[0],end:e.template.interpolation[1]});var f=new Xa(this._exprParser,h,this._schemaRegistry,l,a),d=new mu(this._config,p,c,f,this._schemaRegistry,i,a);s=ct(d,t.rootNodes,wu),a.push.apply(a,p.errors),u.push.apply(u,f.getUsedPipes())}else s=[];return this._assertNoReferenceDuplicationOnTemplate(s,a),a.length>0?new yu(s,u,a):(this.transforms&&this.transforms.forEach(function(t){s=r(t,s)}),new yu(s,u,a))},t.prototype.expandHtml=function(t,e){void 0===e&&(e=!1);var n=t.errors;if(0==n.length||e){var r=ye(t.rootNodes);n.push.apply(n,r.errors),t=new Ps(r.nodes,n)}return t},t.prototype.getInterpolationConfig=function(t){if(t.template)return Zi.fromArray(t.template.interpolation)},t.prototype._assertNoReferenceDuplicationOnTemplate=function(t,e){var n=[];t.filter(function(t){return!!t.references}).forEach(function(t){return t.references.forEach(function(t){var r=t.name;if(n.indexOf(r)<0)n.push(r);else{var o=new du('Reference "#'+r+'" is defined several times',t.sourceSpan,hs.ERROR);e.push(o)}})})},t}();vu.decorators=[{type:q}],vu.ctorParameters=function(){return[{type:Uo},{type:ss},{type:Ba},{type:ka},{type:Kr["ɵConsole"]},{type:Array,decorators:[{type:Kr.Optional},{type:Kr.Inject,args:[fu]}]}]};var mu=function(){function t(t,e,n,r,o,i,s){var a=this;this.config=t,this.providerViewContext=e,this._bindingParser=r,this._schemaRegistry=o,this._schemas=i,this._targetErrors=s,this.selectorMatcher=new bo,this.directivesIndex=new Map,this.ngContentCount=0,this.contentQueryStartId=e.component.viewQueries.length+1,n.forEach(function(t,e){var n=_o.parse(t.selector);a.selectorMatcher.addSelectables(n,t),a.directivesIndex.set(t,e)})}return t.prototype.visitExpansion=function(t,e){return null},t.prototype.visitExpansionCase=function(t,e){return null},t.prototype.visitText=function(t,e){var n=e.findNgContentIndex(lu),r=this._bindingParser.parseInterpolation(t.value,t.sourceSpan);return r?new Zr(r,n,t.sourceSpan):new Xr(t.value,n,t.sourceSpan)},t.prototype.visitAttribute=function(t,e){return new Yr(t.name,t.value,t.sourceSpan)},t.prototype.visitComment=function(t,e){return null},t.prototype.visitElement=function(t,e){var n=this,r=this.contentQueryStartId,o=t.name,i=Oe(t);if(i.type===su.SCRIPT||i.type===su.STYLE)return null;if(i.type===su.STYLESHEET&&xe(i.hrefAttr))return null;var s=[],a=[],u=[],c=[],l=[],p=[],h=[],f=[],d=!1,y=[],v=Le(t,this.config.enableLegacyTemplate,function(t,e){return n._reportError(t,e,hs.WARNING)});t.attrs.forEach(function(t){var e,r,o=n._parseAttr(v,t,s,a,l,u,c),i=n._normalizeAttributeName(t.name);n.config.enableLegacyTemplate&&"template"==i?(n._reportError("The template attribute is deprecated. Use an ng-template element instead.",t.sourceSpan,hs.WARNING),e=t.value):i.startsWith("*")&&(e=t.value,r=i.substring("*".length)+":");var m=null!=e;m&&(d&&n._reportError("Can't have multiple template bindings on one element. Use only one attribute named 'template' or prefixed with *",t.sourceSpan),d=!0,n._bindingParser.parseInlineTemplateBinding(r,e,t.sourceSpan,h,p,f)),o||m||(y.push(n.visitAttribute(t,null)),s.push([t.name,t.value]))});var m=Ie(o,s),g=this._parseDirectives(this.selectorMatcher,m),_=g.directives,b=g.matchElement,w=[],E=new Set,C=this._createDirectiveAsts(v,t.name,_,a,u,t.sourceSpan,w,E),S=this._createElementPropertyAsts(t.name,a,E),x=e.isTemplateElement||d,T=new Ha(this.providerViewContext,e.providerContext,x,C,y,w,v,r,t.sourceSpan),P=ct(i.nonBindable?Eu:this,t.children,bu.create(v,C,v?e.providerContext:T));T.afterElement();var A,O=null!=i.projectAs?_o.parse(i.projectAs)[0]:m,M=e.findNgContentIndex(O);if(i.type===su.NG_CONTENT)t.children&&!t.children.every(Re)&&this._reportError("<ng-content> element cannot have content.",t.sourceSpan),A=new uo(this.ngContentCount++,d?null:M,t.sourceSpan);else if(v)this._assertAllEventsPublishedByDirectives(C,l),this._assertNoComponentsNorElementBindingsOnTemplate(C,S,t.sourceSpan),A=new ro(y,l,w,c,T.transformedDirectiveAsts,T.transformProviders,T.transformedHasViewContainer,T.queryMatches,P,d?null:M,t.sourceSpan);else{this._assertElementExists(b,t),this._assertOnlyOneComponent(C,t.sourceSpan);var k=d?null:e.findNgContentIndex(O);A=new no(o,y,S,l,w,T.transformedDirectiveAsts,T.transformProviders,T.transformedHasViewContainer,T.queryMatches,P,d?null:k,t.sourceSpan,t.endSourceSpan||null)}if(d){var N=this.contentQueryStartId,I=Ie(uu,h),R=this._parseDirectives(this.selectorMatcher,I).directives,D=new Set,V=this._createDirectiveAsts(!0,t.name,R,p,[],t.sourceSpan,[],D),L=this._createElementPropertyAsts(t.name,p,D);this._assertNoComponentsNorElementBindingsOnTemplate(V,L,t.sourceSpan);var F=new Ha(this.providerViewContext,e.providerContext,e.isTemplateElement,V,[],[],!0,N,t.sourceSpan);F.afterElement(),A=new ro([],[],[],f,F.transformedDirectiveAsts,F.transformProviders,F.transformedHasViewContainer,F.queryMatches,[A],M,t.sourceSpan)}return A},t.prototype._parseAttr=function(t,e,n,r,o,i,s){var a=this._normalizeAttributeName(e.name),u=e.value,c=e.sourceSpan,l=a.match(/^(?:(?:(?:(bind-)|(let-)|(ref-|#)|(on-)|(bindon-)|(@))(.+))|\[\(([^\)]+)\)\]|\[([^\]]+)\]|\(([^\)]+)\))$/),p=!1;if(null!==l)if(p=!0,null!=l[1])this._bindingParser.parsePropertyBinding(l[7],u,!1,c,n,r);else if(l[2])if(t){var h=l[7];this._parseVariable(h,u,c,s)}else this._reportError('"let-" is only supported on template elements.',c);else if(l[3]){var h=l[7];this._parseReference(h,u,c,i)}else l[4]?this._bindingParser.parseEvent(l[7],u,c,n,o):l[5]?(this._bindingParser.parsePropertyBinding(l[7],u,!1,c,n,r),this._parseAssignmentEvent(l[7],u,c,n,o)):l[6]?this._bindingParser.parseLiteralAttr(a,u,c,n,r):l[8]?(this._bindingParser.parsePropertyBinding(l[8],u,!1,c,n,r),this._parseAssignmentEvent(l[8],u,c,n,o)):l[9]?this._bindingParser.parsePropertyBinding(l[9],u,!1,c,n,r):l[10]&&this._bindingParser.parseEvent(l[10],u,c,n,o);else p=this._bindingParser.parsePropertyInterpolation(a,u,c,n,r);return p||this._bindingParser.parseLiteralAttr(a,u,c,n,r),p},t.prototype._normalizeAttributeName=function(t){return/^data-/i.test(t)?t.substring(5):t},t.prototype._parseVariable=function(t,e,n,r){t.indexOf("-")>-1&&this._reportError('"-" is not allowed in variable names',n),r.push(new eo(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 _u(t,e,n))},t.prototype._parseAssignmentEvent=function(t,e,n,r,o){this._bindingParser.parseEvent(t+"Change",e+"=$event",n,r,o)},t.prototype._parseDirectives=function(t,e){var n=this,r=new Array(this.directivesIndex.size),o=!1;return t.match(e,function(t,e){r[n.directivesIndex.get(e)]=e,o=o||t.hasElementSelector()}),{directives:r.filter(function(t){return!!t}),matchElement:o}},t.prototype._createDirectiveAsts=function(t,e,n,r,o,i,s,a){var u=this,c=new Set,l=null,p=n.map(function(t){var n=new ps(i.start,i.end,"Directive "+C(t.type));t.isComponent&&(l=t);var p=[],h=u._bindingParser.createDirectiveHostPropertyAsts(t,e,n);h=u._checkPropertiesInSchema(e,h);var f=u._bindingParser.createDirectiveHostEventAsts(t,n);u._createDirectivePropertyAsts(t.inputs,r,p,a),o.forEach(function(e){(0===e.value.length&&t.isComponent||t.exportAs==e.value)&&(s.push(new to(e.name,fe(t.type),e.sourceSpan)),c.add(e.name))});var d=u.contentQueryStartId;return u.contentQueryStartId+=t.queries.length,new io(t,p,h,f,d,n)});return o.forEach(function(e){if(e.value.length>0)c.has(e.name)||u._reportError('There is no directive with "exportAs" set to "'+e.value+'"',e.sourceSpan);else if(!l){var n=null;t&&(n=de(Ia.TemplateRef)),s.push(new to(e.name,n,e.sourceSpan))}}),p},t.prototype._createDirectivePropertyAsts=function(t,e,n,r){if(t){var o=new Map;e.forEach(function(t){var e=o.get(t.name);e&&!e.isLiteral||o.set(t.name,t)}),Object.keys(t).forEach(function(e){var i=t[e],s=o.get(i);s&&(r.add(s.name),Ve(s.expression)||n.push(new oo(e,s.name,s.expression,s.sourceSpan)))})}},t.prototype._createElementPropertyAsts=function(t,e,n){var r=this,o=[];return e.forEach(function(e){e.isLiteral||n.has(e.name)||o.push(r._bindingParser.createElementPropertyAst(t,e))}),this._checkPropertiesInSchema(t,o)},t.prototype._findComponentDirectives=function(t){return t.filter(function(t){return t.directive.isComponent})},t.prototype._findComponentDirectiveNames=function(t){return this._findComponentDirectives(t).map(function(t){return C(t.directive.type)})},t.prototype._assertOnlyOneComponent=function(t,e){var n=this._findComponentDirectiveNames(t);n.length>1&&this._reportError("More than one component matched on this element.\nMake sure that only one component's selector can match a given element.\nConflicting components: "+n.join(","),e)},t.prototype._assertElementExists=function(t,e){var n=e.name.replace(/^:xhtml:/,"");if(!t&&!this._schemaRegistry.hasElement(n,this._schemas)){var r="'"+n+"' is not a known element:\n";r+="1. If '"+n+"' is an Angular component, then verify that it is part of this module.\n",n.indexOf("-")>-1?r+="2. If '"+n+"' is a Web Component then add 'CUSTOM_ELEMENTS_SCHEMA' to the '@NgModule.schemas' of this component to suppress this message.":r+="2. To allow any element add 'NO_ERRORS_SCHEMA' to the '@NgModule.schemas' of this component.",this._reportError(r,e.sourceSpan)}},t.prototype._assertNoComponentsNorElementBindingsOnTemplate=function(t,e,n){var r=this,o=this._findComponentDirectiveNames(t);o.length>0&&this._reportError("Components on an embedded template: "+o.join(","),n),e.forEach(function(t){r._reportError("Property binding "+t.name+' not used by any directive on an embedded template. Make sure that the property name is spelled correctly and all directives are listed in the "@NgModule.declarations".',n)})},t.prototype._assertAllEventsPublishedByDirectives=function(t,e){var n=this,r=new Set;t.forEach(function(t){Object.keys(t.directive.outputs).forEach(function(e){var n=t.directive.outputs[e];r.add(n)})}),e.forEach(function(t){null==t.target&&r.has(t.name)||n._reportError("Event binding "+t.fullName+' not emitted by any directive on an embedded template. Make sure that the event name is spelled correctly and all directives are listed in the "@NgModule.declarations".',t.sourceSpan)})},t.prototype._checkPropertiesInSchema=function(t,e){var n=this;return e.filter(function(e){if(e.type===co.Property&&!n._schemaRegistry.hasProperty(t,e.name,n._schemas)){var r="Can't bind to '"+e.name+"' since it isn't a known property of '"+t+"'.";t.startsWith("ng-")?r+="\n1. If '"+e.name+"' is an Angular directive, then add 'CommonModule' to the '@NgModule.imports' of this component.\n2. To allow any property add 'NO_ERRORS_SCHEMA' to the '@NgModule.schemas' of this component.":t.indexOf("-")>-1&&(r+="\n1. If '"+t+"' is an Angular component and it has '"+e.name+"' input, then verify that it is part of this module.\n2. If '"+t+"' is a Web Component then add 'CUSTOM_ELEMENTS_SCHEMA' to the '@NgModule.schemas' of this component to suppress this message.\n3. To allow any property add 'NO_ERRORS_SCHEMA' to the '@NgModule.schemas' of this component."),n._reportError(r,e.sourceSpan)}return!Ve(e.value)})},t.prototype._reportError=function(t,e,n){void 0===n&&(n=hs.ERROR),this._targetErrors.push(new fs(e,t,n))},t}(),gu=function(){function t(){}return t.prototype.visitElement=function(t,e){var n=Oe(t);if(n.type===su.SCRIPT||n.type===su.STYLE||n.type===su.STYLESHEET)return null;var r=t.attrs.map(function(t){return[t.name,t.value]}),o=Ie(t.name,r),i=e.findNgContentIndex(o),s=ct(this,t.children,wu);return new no(t.name,ct(this,t.attrs),[],[],[],[],[],!1,[],s,i,t.sourceSpan,t.endSourceSpan)},t.prototype.visitComment=function(t,e){return null},t.prototype.visitAttribute=function(t,e){return new Yr(t.name,t.value,t.sourceSpan)},t.prototype.visitText=function(t,e){var n=e.findNgContentIndex(lu);return new Xr(t.value,n,t.sourceSpan)},t.prototype.visitExpansion=function(t,e){return t},t.prototype.visitExpansionCase=function(t,e){return t},t}(),_u=function(){function t(t,e,n){this.name=t,this.value=e,this.sourceSpan=n}return t}(),bu=function(){function t(t,e,n,r){this.isTemplateElement=t,this._ngContentIndexMatcher=e,this._wildcardNgContentIndex=n,this.providerContext=r}return t.create=function(e,n,r){var o=new bo,i=null,s=n.find(function(t){return t.directive.isComponent});if(s)for(var a=s.directive.template.ngContentSelectors,u=0;u<a.length;u++){var c=a[u];"*"===c?i=u:o.addSelectables(_o.parse(a[u]),u)}return new t(e,o,i,r)},t.prototype.findNgContentIndex=function(t){var e=[];return this._ngContentIndexMatcher.match(t,function(t,n){e.push(n)}),e.sort(),null!=this._wildcardNgContentIndex&&e.push(this._wildcardNgContentIndex),e.length>0?e[0]:null},t}(),wu=new bu(!0,new bo,null,null),Eu=new gu,Cu=function(){function t(){}return t.prototype.get=function(t){return null},t}(),Su={provide:Kr.PACKAGE_ROOT_URL,useValue:"/"},xu=function(){function t(t){void 0===t&&(t=null),this._packagePrefix=t}return t.prototype.resolve=function(t,e){var n=e;null!=t&&t.length>0&&(n=Ge(t,n));var r=Ue(n),o=this._packagePrefix;if(null!=o&&null!=r&&"package"==r[Pu.Scheme]){var i=r[Pu.Path];return o=o.replace(/\/+$/,""),i=i.replace(/^\/+/,""),o+"/"+i}return n},t}();xu.decorators=[{type:q}],xu.ctorParameters=function(){return[{type:void 0,decorators:[{type:Kr.Inject,args:[Kr.PACKAGE_ROOT_URL]}]}]};var Tu=new RegExp("^(?:([^:/?#.]+):)?(?://(?:([^/?#]*)@)?([\\w\\d\\-\\u0100-\\uffff.%]*)(?::([0-9]+))?)?([^?#]+)?(?:\\?([^#]*))?(?:#(.*))?$"),Pu={};Pu.Scheme=1,Pu.UserInfo=2,Pu.Domain=3,Pu.Port=4,Pu.Path=5,Pu.QueryData=6,Pu.Fragment=7,Pu[Pu.Scheme]="Scheme",Pu[Pu.UserInfo]="UserInfo",Pu[Pu.Domain]="Domain",Pu[Pu.Port]="Port",Pu[Pu.Path]="Path",Pu[Pu.QueryData]="QueryData",Pu[Pu.Fragment]="Fragment";/**
* @license
* Copyright Google Inc. All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
var Au=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;if(t.isComponent){var n=t.template;this._resourceLoaderCache.delete(n.templateUrl),n.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=this,r=null,o=void 0;if(v(t.template)){if(v(t.templateUrl))throw g("'"+n.i(Kr["ɵstringify"])(t.componentType)+"' component cannot define both template and templateUrl");if("string"!=typeof t.template)throw g("The template specified for component "+n.i(Kr["ɵstringify"])(t.componentType)+" is not a string");r=this.normalizeTemplateSync(t),o=Promise.resolve(r)}else{if(!v(t.templateUrl))throw g("No template specified for component "+n.i(Kr["ɵstringify"])(t.componentType));if("string"!=typeof t.templateUrl)throw g("The templateUrl specified for component "+n.i(Kr["ɵstringify"])(t.componentType)+" is not a string");o=this.normalizeTemplateAsync(t)}return r&&0===r.styleUrls.length?new To(r):new To(null,o.then(function(t){return e.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,e,n){var r=!!t.template,o=Zi.fromArray(t.interpolation),i=this._htmlParser.parse(e,D({reference:t.ngModuleType},{type:{reference:t.componentType}},{isInline:r,templateUrl:n}),!0,o);if(i.errors.length>0){throw g("Template parse errors:\n"+i.errors.join("\n"))}var s=this.normalizeStylesheet(new Ro({styles:t.styles,styleUrls:t.styleUrls,moduleUrl:t.moduleUrl})),a=new Ou;ct(a,i.rootNodes);var u=this.normalizeStylesheet(new Ro({styles:a.styles,styleUrls:a.styleUrls,moduleUrl:n})),c=t.encapsulation;null==c&&(c=this._config.defaultEncapsulation);var l=s.styles.concat(u.styles),p=s.styleUrls.concat(u.styleUrls);return c===Kr.ViewEncapsulation.Emulated&&0===l.length&&0===p.length&&(c=Kr.ViewEncapsulation.None),new Do({encapsulation:c,template:e,templateUrl:n,styles:l,styleUrls:p,ngContentSelectors:a.ngContentSelectors,animations:t.animations,interpolation:t.interpolation,isInline:r,externalStylesheets:[]})},t.prototype.normalizeExternalStylesheets=function(t){return this._loadMissingExternalStylesheets(t.styleUrls).then(function(e){return new Do({encapsulation:t.encapsulation,template:t.template,templateUrl:t.templateUrl,styles:t.styles,styleUrls:t.styleUrls,externalStylesheets:e,ngContentSelectors:t.ngContentSelectors,animations:t.animations,interpolation:t.interpolation,isInline:t.isInline})})},t.prototype._loadMissingExternalStylesheets=function(t,e){var n=this;return void 0===e&&(e=new Map),Promise.all(t.filter(function(t){return!e.has(t)}).map(function(t){return n._fetch(t).then(function(r){var o=n.normalizeStylesheet(new Ro({styles:[r],moduleUrl:t}));return e.set(t,o),n._loadMissingExternalStylesheets(o.styleUrls,e)})})).then(function(t){return Array.from(e.values())})},t.prototype.normalizeStylesheet=function(t){var e=this,n=t.moduleUrl,r=t.styleUrls.filter(xe).map(function(t){return e._urlResolver.resolve(n,t)}),o=t.styles.map(function(t){var o=Te(e._urlResolver,n,t);return r.push.apply(r,o.styleUrls),o.style});return new Ro({styles:o,styleUrls:r,moduleUrl:n})},t}();Au.decorators=[{type:q}],Au.ctorParameters=function(){return[{type:Cu},{type:xu},{type:Aa},{type:Uo}]};var Ou=function(){function t(){this.ngContentSelectors=[],this.styles=[],this.styleUrls=[],this.ngNonBindableStackCount=0}return t.prototype.visitElement=function(t,e){var n=Oe(t);switch(n.type){case su.NG_CONTENT:0===this.ngNonBindableStackCount&&this.ngContentSelectors.push(n.selectAttr);break;case su.STYLE:var r="";t.children.forEach(function(t){t instanceof ds&&(r+=t.value)}),this.styles.push(r);break;case su.STYLESHEET:this.styleUrls.push(n.hrefAttr)}return n.nonBindable&&this.ngNonBindableStackCount++,ct(this,t.children),n.nonBindable&&this.ngNonBindableStackCount--,null},t.prototype.visitExpansion=function(t,e){ct(this,t.cases)},t.prototype.visitExpansionCase=function(t,e){ct(this,t.expression)},t.prototype.visitComment=function(t,e){return null},t.prototype.visitAttribute=function(t,e){return null},t.prototype.visitText=function(t,e){return null},t}(),Mu=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++){e=arguments[n];for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])}return t},ku=function(){function t(t){void 0===t&&(t=Kr["ɵreflector"]),this._reflector=t}return t.prototype.isDirective=function(t){var e=this._reflector.annotations(n.i(Kr.resolveForwardRef)(t));return e&&e.some(ze)},t.prototype.resolve=function(t,e){void 0===e&&(e=!0);var r=this._reflector.annotations(n.i(Kr.resolveForwardRef)(t));if(r){var o=We(r,ze);if(o){var i=this._reflector.propMetadata(t);return this._mergeWithPropertyMetadata(o,i,t)}}if(e)throw new Error("No Directive annotation found on "+n.i(Kr["ɵstringify"])(t));return null},t.prototype._mergeWithPropertyMetadata=function(t,e,n){var r=[],o=[],i={},s={};return Object.keys(e).forEach(function(t){var n=We(e[t],function(t){return t instanceof Kr.Input});n&&(n.bindingPropertyName?r.push(t+": "+n.bindingPropertyName):r.push(t));var a=We(e[t],function(t){return t instanceof Kr.Output});a&&(a.bindingPropertyName?o.push(t+": "+a.bindingPropertyName):o.push(t)),e[t].filter(function(t){return t&&t instanceof Kr.HostBinding}).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>'.");i["["+e.hostPropertyName+"]"]=t}else i["["+t+"]"]=t}),e[t].filter(function(t){return t&&t instanceof Kr.HostListener}).forEach(function(e){var n=e.args||[];i["("+e.eventName+")"]=t+"("+n.join(",")+")"});var u=We(e[t],function(t){return t instanceof Kr.Query});u&&(s[t]=u)}),this._merge(t,r,o,i,s,n)},t.prototype._extractPublicName=function(t){return h(t,[null,t])[1].trim()},t.prototype._dedupeBindings=function(t){for(var e=new Set,n=[],r=t.length-1;r>=0;r--){var o=t[r],i=this._extractPublicName(o);e.has(i)||(e.add(i),n.push(o))}return n.reverse()},t.prototype._merge=function(t,e,n,r,o,i){var s=this._dedupeBindings(t.inputs?t.inputs.concat(e):e),a=this._dedupeBindings(t.outputs?t.outputs.concat(n):n),u=t.host?Mu({},t.host,r):r,c=t.queries?Mu({},t.queries,o):o;return t instanceof Kr.Component?new Kr.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 Kr.Directive({selector:t.selector,inputs:s,outputs:a,host:u,exportAs:t.exportAs,queries:c,providers:t.providers})},t}();ku.decorators=[{type:q}],ku.ctorParameters=function(){return[{type:Kr["ɵReflectorReader"]}]};/**
* @license
* Copyright Google Inc. All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
var Nu=/(\.ts|\.d\.ts|\.js|\.jsx|\.tsx)$/,Iu=/\.ngfactory\./,Ru=function(){function t(t){void 0===t&&(t=Kr["ɵreflector"]),this._reflector=t}return t.prototype.isNgModule=function(t){return this._reflector.annotations(t).some(tn)},t.prototype.resolve=function(t,e){void 0===e&&(e=!0);var r=We(this._reflector.annotations(t),tn);if(r)return r;if(e)throw new Error("No NgModule metadata found for '"+n.i(Kr["ɵstringify"])(t)+"'.");return null},t}();Ru.decorators=[{type:q}],Ru.ctorParameters=function(){return[{type:Kr["ɵReflectorReader"]}]};var Du=function(){function t(t){void 0===t&&(t=Kr["ɵreflector"]),this._reflector=t}return t.prototype.isPipe=function(t){var e=this._reflector.annotations(n.i(Kr.resolveForwardRef)(t));return e&&e.some(en)},t.prototype.resolve=function(t,e){void 0===e&&(e=!0);var r=this._reflector.annotations(n.i(Kr.resolveForwardRef)(t));if(r){var o=We(r,en);if(o)return o}if(e)throw new Error("No Pipe decorator found on "+n.i(Kr["ɵstringify"])(t));return null},t}();Du.decorators=[{type:q}],Du.ctorParameters=function(){return[{type:Kr["ɵReflectorReader"]}]};/**
* @license
* Copyright Google Inc. All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
var Vu=function(){function t(){}return t.prototype.isLibraryFile=function(t){return!1},t.prototype.getLibraryFileName=function(t){return null},t.prototype.resolveSummary=function(t){return null},t.prototype.getSymbolsOf=function(t){return[]},t.prototype.getImportAs=function(t){return t},t}();Vu.decorators=[{type:q}],Vu.ctorParameters=function(){return[]};/**
* @license
* Copyright Google Inc. All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
var Lu=new Kr.InjectionToken("ErrorCollector"),Fu=function(){function t(t,e,n,r,o,i,s,a,u,c,l){void 0===c&&(c=Kr["ɵreflector"]),this._config=t,this._ngModuleResolver=e,this._directiveResolver=n,this._pipeResolver=r,this._summaryResolver=o,this._schemaRegistry=i,this._directiveNormalizer=s,this._console=a,this._staticSymbolCache=u,this._reflector=c,this._errorCollector=l,this._nonNormalizedDirectiveCache=new Map,this._directiveCache=new Map,this._summaryCache=new Map,this._pipeCache=new Map,this._ngModuleCache=new Map,this._ngModuleOfTypes=new Map}return t.prototype.clearCacheFor=function(t){var e=this._directiveCache.get(t);this._directiveCache.delete(t),this._nonNormalizedDirectiveCache.delete(t),this._summaryCache.delete(t),this._pipeCache.delete(t),this._ngModuleOfTypes.delete(t),this._ngModuleCache.clear(),e&&this._directiveNormalizer.clearCacheFor(e)},t.prototype.clearCache=function(){this._directiveCache.clear(),this._nonNormalizedDirectiveCache.clear(),this._summaryCache.clear(),this._pipeCache.clear(),this._ngModuleCache.clear(),this._ngModuleOfTypes.clear(),this._directiveNormalizer.clearCache()},t.prototype._createProxyClass=function(t,e){var r=null,o=function(){if(!r)throw new Error("Illegal state: Class "+e+" for type "+n.i(Kr["ɵstringify"])(t)+" is not compiled yet!");return r.apply(this,arguments)};return o.setDelegate=function(t){r=t,o.prototype=t.prototype},o.overriddenName=e,o},t.prototype.getGeneratedClass=function(t,e){return t instanceof lo?this._staticSymbolCache.get(Ke(t.filePath),e):this._createProxyClass(t,e)},t.prototype.getComponentViewClass=function(t){return this.getGeneratedClass(t,x(t,0))},t.prototype.getHostComponentViewClass=function(t){return this.getGeneratedClass(t,P(t))},t.prototype.getHostComponentType=function(t){var e=C({reference:t})+"_Host";if(t instanceof lo)return this._staticSymbolCache.get(t.filePath,e);var n=function(){};return n.overriddenName=e,n},t.prototype.getRendererType=function(t){return t instanceof lo?this._staticSymbolCache.get(Ke(t.filePath),T(t)):{}},t.prototype.getComponentFactory=function(t,e,r,o){if(e instanceof lo)return this._staticSymbolCache.get(Ke(e.filePath),A(e));var i=this.getHostComponentViewClass(e);return n.i(Kr["ɵccf"])(t,e,i,r,o,[])},t.prototype.initComponentFactory=function(t,e){t instanceof lo||(n=t.ngContentSelectors).push.apply(n,e);var n},t.prototype._loadSummary=function(t,e){var n=this._summaryCache.get(t);if(!n){var r=this._summaryResolver.resolveSummary(t);n=r?r.type:null,this._summaryCache.set(t,n||null)}return n&&n.summaryKind===e?n:null},t.prototype._loadDirectiveMetadata=function(t,e,r){var o=this;if(this._directiveCache.has(e))return null;e=n.i(Kr.resolveForwardRef)(e);var i=this.getNonNormalizedDirectiveMetadata(e),s=i.annotation,a=i.metadata,u=function(t){var n=new Vo({isHost:!1,type:a.type,isComponent:a.isComponent,selector:a.selector,exportAs:a.exportAs,changeDetection:a.changeDetection,inputs:a.inputs,outputs:a.outputs,hostListeners:a.hostListeners,hostProperties:a.hostProperties,hostAttributes:a.hostAttributes,providers:a.providers,viewProviders:a.viewProviders,queries:a.queries,viewQueries:a.viewQueries,entryComponents:a.entryComponents,componentViewType:a.componentViewType,rendererType:a.rendererType,componentFactory:a.componentFactory,template:t});return t&&o.initComponentFactory(a.componentFactory,t.ngContentSelectors),o._directiveCache.set(e,n),o._summaryCache.set(e,n.toSummary()),n};if(a.isComponent){var c=a.template,l=this._directiveNormalizer.normalizeTemplate({ngModuleType:t,componentType:e,moduleUrl:an(this._reflector,e,s),encapsulation:c.encapsulation,template:c.template,templateUrl:c.templateUrl,styles:c.styles,styleUrls:c.styleUrls,animations:c.animations,interpolation:c.interpolation});return l.syncResult?(u(l.syncResult),null):r?(this._reportError(ln(e),e),null):l.asyncResult.then(u)}return u(null),null},t.prototype.getNonNormalizedDirectiveMetadata=function(t){var e=this;if(!(t=n.i(Kr.resolveForwardRef)(t)))return null;var r=this._nonNormalizedDirectiveCache.get(t);if(r)return r;var o=this._directiveResolver.resolve(t,!1);if(!o)return null;var i=void 0;if(o instanceof Kr.Component){G("styles",o.styles),G("styleUrls",o.styleUrls),z("interpolation",o.interpolation);var s=o.animations;i=new Do({encapsulation:m(o.encapsulation),template:m(o.template),templateUrl:m(o.templateUrl),styles:o.styles||[],styleUrls:o.styleUrls||[],animations:s||[],interpolation:m(o.interpolation),isInline:!!o.template,externalStylesheets:[],ngContentSelectors:[]})}var a=null,u=[],c=[],l=o.selector;o instanceof Kr.Component?(a=o.changeDetection,o.viewProviders&&(u=this._getProvidersMetadata(o.viewProviders,c,'viewProviders for "'+cn(t)+'"',[],t)),o.entryComponents&&(c=on(o.entryComponents).map(function(t){return e._getEntryComponentMetadata(t)}).concat(c)),l||(l=this._schemaRegistry.getDefaultComponentElementName())):l||(this._reportError(g("Directive "+cn(t)+" has no selector, please add it!"),t),l="error");var p=[];null!=o.providers&&(p=this._getProvidersMetadata(o.providers,c,'providers for "'+cn(t)+'"',[],t));var h=[],f=[];null!=o.queries&&(h=this._getQueriesMetadata(o.queries,!1,t),f=this._getQueriesMetadata(o.queries,!0,t));var d=Vo.create({isHost:!1,selector:l,exportAs:m(o.exportAs),isComponent:!!i,type:this._getTypeMetadata(t),template:i,changeDetection:a,inputs:o.inputs||[],outputs:o.outputs||[],host:o.host||{},providers:p||[],viewProviders:u||[],queries:h||[],viewQueries:f||[],entryComponents:c,componentViewType:i?this.getComponentViewClass(t):null,rendererType:i?this.getRendererType(t):null,componentFactory:null});return i&&(d.componentFactory=this.getComponentFactory(l,t,d.inputs,d.outputs)),r={metadata:d,annotation:o},this._nonNormalizedDirectiveCache.set(t,r),r},t.prototype.getDirectiveMetadata=function(t){var e=this._directiveCache.get(t);return e||this._reportError(g("Illegal state: getDirectiveMetadata can only be called after loadNgModuleDirectiveAndPipeMetadata for a module that declares it. Directive "+cn(t)+"."),t),e},t.prototype.getDirectiveSummary=function(t){var e=this._loadSummary(t,Io.Directive);return e||this._reportError(g("Illegal state: Could not load the summary for directive "+cn(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,Io.NgModule);if(!e){var n=this.getNgModuleMetadata(t,!1);e=n?n.toSummary():null,e&&this._summaryCache.set(t,e)}return e},t.prototype.loadNgModuleDirectiveAndPipeMetadata=function(t,e,n){var r=this;void 0===n&&(n=!0);var o=this.getNgModuleMetadata(t,n),i=[];return o&&(o.declaredDirectives.forEach(function(n){var o=r._loadDirectiveMetadata(t,n.reference,e);o&&i.push(o)}),o.declaredPipes.forEach(function(t){return r._loadPipeMetadata(t.reference)})),Promise.all(i)},t.prototype.getNgModuleMetadata=function(t,e){var r=this;void 0===e&&(e=!0),t=n.i(Kr.resolveForwardRef)(t);var o=this._ngModuleCache.get(t);if(o)return o;var i=this._ngModuleResolver.resolve(t,e);if(!i)return null;var s=[],a=[],u=[],c=[],l=[],p=[],h=[],f=[],d=[];i.imports&&on(i.imports).forEach(function(e){var n=void 0;if(sn(e))n=e;else if(e&&e.ngModule){var o=e;n=o.ngModule,o.providers&&p.push.apply(p,r._getProvidersMetadata(o.providers,h,"provider for the NgModule '"+cn(n)+"'",[],e))}if(!n)return void r._reportError(g("Unexpected value '"+cn(e)+"' imported by the module '"+cn(t)+"'"),t);if(!r._checkSelfImport(t,n)){var i=r.getNgModuleSummary(n);if(!i)return void r._reportError(g("Unexpected "+r._getTypeDescriptor(e)+" '"+cn(e)+"' imported by the module '"+cn(t)+"'. Please add a @NgModule annotation."),t);c.push(i)}}),i.exports&&on(i.exports).forEach(function(e){if(!sn(e))return void r._reportError(g("Unexpected value '"+cn(e)+"' exported by the module '"+cn(t)+"'"),t);var n=r.getNgModuleSummary(e);n?l.push(n):a.push(r._getIdentifierMetadata(e))});var y=this._getTransitiveNgModuleMetadata(c,l);i.declarations&&on(i.declarations).forEach(function(e){if(!sn(e))return void r._reportError(g("Unexpected value '"+cn(e)+"' declared by the module '"+cn(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(g("Unexpected "+r._getTypeDescriptor(e)+" '"+cn(e)+"' declared by the module '"+cn(t)+"'. Please add a @Pipe/@Directive/@Component annotation."),t);y.addPipe(n),y.pipes.push(n),u.push(n),r._addTypeToModule(e,t)}});var v=[],m=[];return a.forEach(function(e){if(y.directivesSet.has(e.reference))v.push(e),y.addExportedDirective(e);else{if(!y.pipesSet.has(e.reference))return void r._reportError(g("Can't export "+r._getTypeDescriptor(e.reference)+" "+cn(e.reference)+" from "+cn(t)+" as it was neither declared nor imported!"),t);m.push(e),y.addExportedPipe(e)}}),i.providers&&p.push.apply(p,this._getProvidersMetadata(i.providers,h,"provider for the NgModule '"+cn(t)+"'",[],t)),i.entryComponents&&h.push.apply(h,on(i.entryComponents).map(function(t){return r._getEntryComponentMetadata(t)})),i.bootstrap&&on(i.bootstrap).forEach(function(e){if(!sn(e))return void r._reportError(g("Unexpected value '"+cn(e)+"' used in the bootstrap property of module '"+cn(t)+"'"),t);f.push(r._getIdentifierMetadata(e))}),h.push.apply(h,f.map(function(t){return r._getEntryComponentMetadata(t.reference)})),i.schemas&&d.push.apply(d,on(i.schemas)),o=new Fo({type:this._getTypeMetadata(t),providers:p,entryComponents:h,bootstrapComponents:f,schemas:d,declaredDirectives:s,exportedDirectives:v,declaredPipes:u,exportedPipes:m,importedModules:c,exportedModules:l,transitiveModule:y,id:i.id||null}),h.forEach(function(t){return y.addEntryComponent(t)}),p.forEach(function(t){return y.addProvider(t,o.type)}),y.addModule(o.type),this._ngModuleCache.set(t,o),o},t.prototype._checkSelfImport=function(t,e){return t===e&&(this._reportError(g("'"+cn(t)+"' module can't import itself"),t),!0)},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);if(n&&n!==e)return void this._reportError(g("Type "+cn(t)+" is part of the declarations of 2 modules: "+cn(n)+" and "+cn(e)+"! Please consider moving "+cn(t)+" to a higher module that imports "+cn(n)+" and "+cn(e)+". You can also create a new NgModule that exports and includes "+cn(t)+" then import that NgModule in "+cn(n)+" and "+cn(e)+"."),e);this._ngModuleOfTypes.set(t,e)},t.prototype._getTransitiveNgModuleMetadata=function(t,e){var n=new jo,r=new Map;return t.concat(e).forEach(function(t){t.modules.forEach(function(t){return n.addModule(t)}),t.entryComponents.forEach(function(t){return n.addEntryComponent(t)});var e=new Set;t.providers.forEach(function(t){var o=M(t.provider.token),i=r.get(o);i||(i=new Set,r.set(o,i));var s=t.module.reference;!e.has(o)&&i.has(s)||(i.add(s),e.add(o),n.addProvider(t.provider,t.module))})}),e.forEach(function(t){t.exportedDirectives.forEach(function(t){return n.addExportedDirective(t)}),t.exportedPipes.forEach(function(t){return n.addExportedPipe(t)})}),t.forEach(function(t){t.exportedDirectives.forEach(function(t){return n.addDirective(t)}),t.exportedPipes.forEach(function(t){return n.addPipe(t)})}),n},t.prototype._getIdentifierMetadata=function(t){return t=n.i(Kr.resolveForwardRef)(t),{reference:t}},t.prototype.isInjectable=function(t){return this._reflector.annotations(t).some(function(t){return t.constructor===Kr.Injectable})},t.prototype.getInjectableSummary=function(t){return{summaryKind:Io.Injectable,type:this._getTypeMetadata(t,null,!1)}},t.prototype._getInjectableMetadata=function(t,e){void 0===e&&(e=null);var n=this._loadSummary(t,Io.Injectable);return n?n.type:this._getTypeMetadata(t,e)},t.prototype._getTypeMetadata=function(t,e,n){void 0===e&&(e=null),void 0===n&&(n=!0);var r=this._getIdentifierMetadata(t);return{reference:r.reference,diDeps:this._getDependenciesMetadata(r.reference,e,n),lifecycleHooks:Kr["ɵLIFECYCLE_HOOKS_VALUES"].filter(function(t){return $e(t,r.reference)})}},t.prototype._getFactoryMetadata=function(t,e){return void 0===e&&(e=null),t=n.i(Kr.resolveForwardRef)(t),{reference:t,diDeps:this._getDependenciesMetadata(t,e)}},t.prototype.getPipeMetadata=function(t){var e=this._pipeCache.get(t);return e||this._reportError(g("Illegal state: getPipeMetadata can only be called after loadNgModuleDirectiveAndPipeMetadata for a module that declares it. Pipe "+cn(t)+"."),t),e||null},t.prototype.getPipeSummary=function(t){var e=this._loadSummary(t,Io.Pipe);return e||this._reportError(g("Illegal state: Could not load the summary for pipe "+cn(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=n.i(Kr.resolveForwardRef)(t);var e=this._pipeResolver.resolve(t),r=new Lo({type:this._getTypeMetadata(t),name:e.name,pure:!!e.pure});return this._pipeCache.set(t,r),this._summaryCache.set(t,r.toSummary()),r},t.prototype._getDependenciesMetadata=function(t,e,n){var r=this;void 0===n&&(n=!0);var o=!1,i=e||this._reflector.parameters(t)||[],s=i.map(function(t){var e=!1,n=!1,i=!1,s=!1,a=!1,u=null;return Array.isArray(t)?t.forEach(function(t){t instanceof Kr.Host?n=!0:t instanceof Kr.Self?i=!0:t instanceof Kr.SkipSelf?s=!0:t instanceof Kr.Optional?a=!0:t instanceof Kr.Attribute?(e=!0,u=t.attributeName):t instanceof Kr.Inject?u=t.token:t instanceof Kr.InjectionToken?u=t:sn(t)&&null==u&&(u=t)}):u=t,null==u?(o=!0,null):{isAttribute:e,isHost:n,isSelf:i,isSkipSelf:s,isOptional:a,token:r._getTokenMetadata(u)}});if(o){var a=s.map(function(t){return t?cn(t.token):"?"}).join(", "),u="Can't resolve all parameters for "+cn(t)+": ("+a+").";n?this._reportError(g(u),t):this._console.warn("Warning: "+u+" This will become an error in Angular v5.x")}return s},t.prototype._getTokenMetadata=function(t){t=n.i(Kr.resolveForwardRef)(t);return"string"==typeof t?{value:t}:{identifier:{reference:t}}},t.prototype._getProvidersMetadata=function(t,e,r,o,i){var s=this;return void 0===o&&(o=[]),t.forEach(function(a,u){if(Array.isArray(a))s._getProvidersMetadata(a,e,r,o);else{a=n.i(Kr.resolveForwardRef)(a);var c=void 0;if(a&&"object"==typeof a&&a.hasOwnProperty("provide"))s._validateProvider(a),c=new Ho(a.provide,a);else{if(!sn(a)){if(void 0===a)return void s._reportError(g("Encountered undefined provider! Usually this means you have a circular dependencies (might be caused by using 'barrel' index.ts files."));var l=t.reduce(function(t,e,n){return n<u?t.push(""+cn(e)):n==u?t.push("?"+cn(e)+"?"):n==u+1&&t.push("..."),t},[]).join(", ");return void s._reportError(g("Invalid "+(r||"provider")+" - only instances of Provider and Type are allowed, got: ["+l+"]"),i)}c=new Ho(a,{useClass:a})}c.token===pe(Ia.ANALYZE_FOR_ENTRY_COMPONENTS)?e.push.apply(e,s._getEntryComponentsFromProvider(c,i)):o.push(s.getProviderMetadata(c))}}),o},t.prototype._validateProvider=function(t){t.hasOwnProperty("useClass")&&null==t.useClass&&this._reportError(g("Invalid provider for "+cn(t.provide)+". useClass cannot be "+t.useClass+".\n Usually it happens when:\n 1. There's a circular dependency (might be caused by using index.ts (barrel) files).\n 2. Class was used before it was declared. Use forwardRef in this case."))},t.prototype._getEntryComponentsFromProvider=function(t,e){var n=this,r=[],o=[];return t.useFactory||t.useExisting||t.useClass?(this._reportError(g("The ANALYZE_FOR_ENTRY_COMPONENTS token only supports useValue!"),e),[]):t.multi?(un(t.useValue,o),o.forEach(function(t){var e=n._getEntryComponentMetadata(t.reference,!1);e&&r.push(e)}),r):(this._reportError(g("The ANALYZE_FOR_ENTRY_COMPONENTS token only supports 'multi = true'!"),e),[])},t.prototype._getEntryComponentMetadata=function(t,e){void 0===e&&(e=!0);var n=this.getNonNormalizedDirectiveMetadata(t);if(n&&n.metadata.isComponent)return{componentType:t,componentFactory:n.metadata.componentFactory};var r=this._loadSummary(t,Io.Directive);if(r&&r.isComponent)return{componentType:t,componentFactory:r.componentFactory};if(e)throw g(t.name+" cannot be used as an entry component.");return null},t.prototype.getProviderMetadata=function(t){var e=void 0,n=null,r=null,o=this._getTokenMetadata(t.token);return t.useClass?(n=this._getInjectableMetadata(t.useClass,t.dependencies),e=n.diDeps,t.token===t.useClass&&(o={identifier:n})):t.useFactory&&(r=this._getFactoryMetadata(t.useFactory,t.dependencies),e=r.diDeps),{token:o,useClass:n,useValue:t.useValue,useFactory:r,useExisting:t.useExisting?this._getTokenMetadata(t.useExisting):void 0,deps:e,multi:t.multi}},t.prototype._getQueriesMetadata=function(t,e,n){var r=this,o=[];return Object.keys(t).forEach(function(i){var s=t[i];s.isViewQuery===e&&o.push(r._getQueryMetadata(s,i,n))}),o},t.prototype._queryVarBindings=function(t){return t.split(/\s*,\s*/)},t.prototype._getQueryMetadata=function(t,e,n){var r,o=this;return"string"==typeof t.selector?r=this._queryVarBindings(t.selector).map(function(t){return o._getTokenMetadata(t)}):t.selector?r=[this._getTokenMetadata(t.selector)]:(this._reportError(g("Can't construct a query for the property \""+e+'" of "'+cn(n)+"\" since the query selector wasn't defined."),n),r=[]),{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}();Fu.decorators=[{type:q}],Fu.ctorParameters=function(){return[{type:Uo},{type:Ru},{type:ku},{type:Du},{type:Vu},{type:Ba},{type:Au},{type:Kr["ɵConsole"]},{type:po,decorators:[{type:Kr.Optional}]},{type:Kr["ɵReflectorReader"]},{type:void 0,decorators:[{type:Kr.Optional},{type:Kr.Inject,args:[Lu]}]}]};var ju=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Qr(e,t),e.prototype.visitOther=function(t,e){e.push({reference:t})},e}(xo),Hu={};Hu.Const=0,Hu[Hu.Const]="Const";var Uu=function(){function t(t){void 0===t&&(t=null),this.modifiers=t,t||(this.modifiers=[])}return t.prototype.visitType=function(t,e){},t.prototype.hasModifier=function(t){return-1!==this.modifiers.indexOf(t)},t}(),Bu={};Bu.Dynamic=0,Bu.Bool=1,Bu.String=2,Bu.Int=3,Bu.Number=4,Bu.Function=5,Bu.Inferred=6,Bu[Bu.Dynamic]="Dynamic",Bu[Bu.Bool]="Bool",Bu[Bu.String]="String",Bu[Bu.Int]="Int",Bu[Bu.Number]="Number",Bu[Bu.Function]="Function",Bu[Bu.Inferred]="Inferred";var qu=function(t){function e(e,n){void 0===n&&(n=null);var r=t.call(this,n)||this;return r.name=e,r}return Qr(e,t),e.prototype.visitType=function(t,e){return t.visitBuiltintType(this,e)},e}(Uu),Gu=function(t){function e(e,n){void 0===n&&(n=null);var r=t.call(this,n)||this;return r.value=e,r}return Qr(e,t),e.prototype.visitType=function(t,e){return t.visitExpressionType(this,e)},e}(Uu),zu=function(t){function e(e,n){void 0===n&&(n=null);var r=t.call(this,n)||this;return r.of=e,r}return Qr(e,t),e.prototype.visitType=function(t,e){return t.visitArrayType(this,e)},e}(Uu),Wu=function(t){function e(e,n){void 0===n&&(n=null);var r=t.call(this,n)||this;return r.valueType=e||null,r}return Qr(e,t),e.prototype.visitType=function(t,e){return t.visitMapType(this,e)},e}(Uu),Ku=new qu(Bu.Dynamic),Qu=new qu(Bu.Inferred),Xu=new qu(Bu.Bool),Zu=(new qu(Bu.Int),new qu(Bu.Number),new qu(Bu.String),new qu(Bu.Function),{});Zu.Equals=0,Zu.NotEquals=1,Zu.Identical=2,Zu.NotIdentical=3,Zu.Minus=4,Zu.Plus=5,Zu.Divide=6,Zu.Multiply=7,Zu.Modulo=8,Zu.And=9,Zu.Or=10,Zu.Lower=11,Zu.LowerEquals=12,Zu.Bigger=13,Zu.BiggerEquals=14,Zu[Zu.Equals]="Equals",Zu[Zu.NotEquals]="NotEquals",Zu[Zu.Identical]="Identical",Zu[Zu.NotIdentical]="NotIdentical",Zu[Zu.Minus]="Minus",Zu[Zu.Plus]="Plus",Zu[Zu.Divide]="Divide",Zu[Zu.Multiply]="Multiply",Zu[Zu.Modulo]="Modulo",Zu[Zu.And]="And",Zu[Zu.Or]="Or",Zu[Zu.Lower]="Lower",Zu[Zu.LowerEquals]="LowerEquals",Zu[Zu.Bigger]="Bigger",Zu[Zu.BiggerEquals]="BiggerEquals";var Yu=function(){function t(t,e){this.type=t||null,this.sourceSpan=e||null}return t.prototype.visitExpression=function(t,e){},t.prototype.prop=function(t,e){return new yc(this,t,null,e)},t.prototype.key=function(t,e,n){return new vc(this,t,e,n)},t.prototype.callMethod=function(t,e,n){return new oc(this,t,e,null,n)},t.prototype.callFn=function(t,e){return new ic(this,t,null,e)},t.prototype.instantiate=function(t,e,n){return new sc(this,t,e,n)},t.prototype.conditional=function(t,e,n){return void 0===e&&(e=null),new cc(this,t,e,null,n)},t.prototype.equals=function(t,e){return new dc(Zu.Equals,this,t,null,e)},t.prototype.notEquals=function(t,e){return new dc(Zu.NotEquals,this,t,null,e)},t.prototype.identical=function(t,e){return new dc(Zu.Identical,this,t,null,e)},t.prototype.notIdentical=function(t,e){return new dc(Zu.NotIdentical,this,t,null,e)},t.prototype.minus=function(t,e){return new dc(Zu.Minus,this,t,null,e)},t.prototype.plus=function(t,e){return new dc(Zu.Plus,this,t,null,e)},t.prototype.divide=function(t,e){return new dc(Zu.Divide,this,t,null,e)},t.prototype.multiply=function(t,e){return new dc(Zu.Multiply,this,t,null,e)},t.prototype.modulo=function(t,e){return new dc(Zu.Modulo,this,t,null,e)},t.prototype.and=function(t,e){return new dc(Zu.And,this,t,null,e)},t.prototype.or=function(t,e){return new dc(Zu.Or,this,t,null,e)},t.prototype.lower=function(t,e){return new dc(Zu.Lower,this,t,null,e)},t.prototype.lowerEquals=function(t,e){return new dc(Zu.LowerEquals,this,t,null,e)},t.prototype.bigger=function(t,e){return new dc(Zu.Bigger,this,t,null,e)},t.prototype.biggerEquals=function(t,e){return new dc(Zu.BiggerEquals,this,t,null,e)},t.prototype.isBlank=function(t){return this.equals(Sc,t)},t.prototype.cast=function(t,e){return new pc(this,t,e)},t.prototype.toStmt=function(){return new Oc(this,null)},t}(),$u={};$u.This=0,$u.Super=1,$u.CatchError=2,$u.CatchStack=3,$u[$u.This]="This",$u[$u.Super]="Super",$u[$u.CatchError]="CatchError",$u[$u.CatchStack]="CatchStack";var Ju=function(t){function e(e,n,r){var o=t.call(this,n,r)||this;return"string"==typeof e?(o.name=e,o.builtin=null):(o.name=null,o.builtin=e),o}return Qr(e,t),e.prototype.visitExpression=function(t,e){return t.visitReadVarExpr(this,e)},e.prototype.set=function(t){if(!this.name)throw new Error("Built in variable "+this.builtin+" can not be assigned to.");return new tc(this.name,t,null,this.sourceSpan)},e}(Yu),tc=function(t){function e(e,n,r,o){var i=t.call(this,r||n.type,o)||this;return i.name=e,i.value=n,i}return Qr(e,t),e.prototype.visitExpression=function(t,e){return t.visitWriteVarExpr(this,e)},e.prototype.toDeclStmt=function(t,e){return new Pc(this.name,this.value,t,e,this.sourceSpan)},e}(Yu),ec=function(t){function e(e,n,r,o,i){var s=t.call(this,o||r.type,i)||this;return s.receiver=e,s.index=n,s.value=r,s}return Qr(e,t),e.prototype.visitExpression=function(t,e){return t.visitWriteKeyExpr(this,e)},e}(Yu),nc=function(t){function e(e,n,r,o,i){var s=t.call(this,o||r.type,i)||this;return s.receiver=e,s.name=n,s.value=r,s}return Qr(e,t),e.prototype.visitExpression=function(t,e){return t.visitWritePropExpr(this,e)},e}(Yu),rc={};rc.ConcatArray=0,rc.SubscribeObservable=1,rc.Bind=2,rc[rc.ConcatArray]="ConcatArray",rc[rc.SubscribeObservable]="SubscribeObservable",rc[rc.Bind]="Bind";var oc=function(t){function e(e,n,r,o,i){var s=t.call(this,o,i)||this;return s.receiver=e,s.args=r,"string"==typeof n?(s.name=n,s.builtin=null):(s.name=null,s.builtin=n),s}return Qr(e,t),e.prototype.visitExpression=function(t,e){return t.visitInvokeMethodExpr(this,e)},e}(Yu),ic=function(t){function e(e,n,r,o){var i=t.call(this,r,o)||this;return i.fn=e,i.args=n,i}return Qr(e,t),e.prototype.visitExpression=function(t,e){return t.visitInvokeFunctionExpr(this,e)},e}(Yu),sc=function(t){function e(e,n,r,o){var i=t.call(this,r,o)||this;return i.classExpr=e,i.args=n,i}return Qr(e,t),e.prototype.visitExpression=function(t,e){return t.visitInstantiateExpr(this,e)},e}(Yu),ac=function(t){function e(e,n,r){var o=t.call(this,n,r)||this;return o.value=e,o}return Qr(e,t),e.prototype.visitExpression=function(t,e){return t.visitLiteralExpr(this,e)},e}(Yu),uc=function(t){function e(e,n,r,o){void 0===r&&(r=null);var i=t.call(this,n,o)||this;return i.value=e,i.typeParams=r,i}return Qr(e,t),e.prototype.visitExpression=function(t,e){return t.visitExternalExpr(this,e)},e}(Yu),cc=function(t){function e(e,n,r,o,i){void 0===r&&(r=null);var s=t.call(this,o||n.type,i)||this;return s.condition=e,s.falseCase=r,s.trueCase=n,s}return Qr(e,t),e.prototype.visitExpression=function(t,e){return t.visitConditionalExpr(this,e)},e}(Yu),lc=function(t){function e(e,n){var r=t.call(this,Xu,n)||this;return r.condition=e,r}return Qr(e,t),e.prototype.visitExpression=function(t,e){return t.visitNotExpr(this,e)},e}(Yu),pc=function(t){function e(e,n,r){var o=t.call(this,n,r)||this;return o.value=e,o}return Qr(e,t),e.prototype.visitExpression=function(t,e){return t.visitCastExpr(this,e)},e}(Yu),hc=function(){function t(t,e){void 0===e&&(e=null),this.name=t,this.type=e}return t}(),fc=function(t){function e(e,n,r,o){var i=t.call(this,r,o)||this;return i.params=e,i.statements=n,i}return Qr(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 Ac(t,this.params,this.statements,this.type,e,this.sourceSpan)},e}(Yu),dc=function(t){function e(e,n,r,o,i){var s=t.call(this,o||n.type,i)||this;return s.operator=e,s.rhs=r,s.lhs=n,s}return Qr(e,t),e.prototype.visitExpression=function(t,e){return t.visitBinaryOperatorExpr(this,e)},e}(Yu),yc=function(t){function e(e,n,r,o){var i=t.call(this,r,o)||this;return i.receiver=e,i.name=n,i}return Qr(e,t),e.prototype.visitExpression=function(t,e){return t.visitReadPropExpr(this,e)},e.prototype.set=function(t){return new nc(this.receiver,this.name,t,null,this.sourceSpan)},e}(Yu),vc=function(t){function e(e,n,r,o){var i=t.call(this,r,o)||this;return i.receiver=e,i.index=n,i}return Qr(e,t),e.prototype.visitExpression=function(t,e){return t.visitReadKeyExpr(this,e)},e.prototype.set=function(t){return new ec(this.receiver,this.index,t,null,this.sourceSpan)},e}(Yu),mc=function(t){function e(e,n,r){var o=t.call(this,n,r)||this;return o.entries=e,o}return Qr(e,t),e.prototype.visitExpression=function(t,e){return t.visitLiteralArrayExpr(this,e)},e}(Yu),gc=function(){function t(t,e,n){void 0===n&&(n=!1),this.key=t,this.value=e,this.quoted=n}return t}(),_c=function(t){function e(e,n,r){var o=t.call(this,n,r)||this;return o.entries=e,o.valueType=null,n&&(o.valueType=n.valueType),o}return Qr(e,t),e.prototype.visitExpression=function(t,e){return t.visitLiteralMapExpr(this,e)},e}(Yu),bc=function(t){function e(e,n){var r=t.call(this,e[e.length-1].type,n)||this;return r.parts=e,r}return Qr(e,t),e.prototype.visitExpression=function(t,e){return t.visitCommaExpr(this,e)},e}(Yu),wc=new Ju($u.This,null,null),Ec=new Ju($u.Super,null,null),Cc=(new Ju($u.CatchError,null,null),new Ju($u.CatchStack,null,null),new ac(null,null,null)),Sc=new ac(null,Qu,null),xc={};xc.Final=0,xc.Private=1,xc[xc.Final]="Final",xc[xc.Private]="Private";var Tc=function(){function t(t,e){this.modifiers=t||[],this.sourceSpan=e||null}return t.prototype.visitStatement=function(t,e){},t.prototype.hasModifier=function(t){return-1!==this.modifiers.indexOf(t)},t}(),Pc=function(t){function e(e,n,r,o,i){void 0===o&&(o=null);var s=t.call(this,o,i)||this;return s.name=e,s.value=n,s.type=r||n.type,s}return Qr(e,t),e.prototype.visitStatement=function(t,e){return t.visitDeclareVarStmt(this,e)},e}(Tc),Ac=function(t){function e(e,n,r,o,i,s){void 0===i&&(i=null);var a=t.call(this,i,s)||this;return a.name=e,a.params=n,a.statements=r,a.type=o||null,a}return Qr(e,t),e.prototype.visitStatement=function(t,e){return t.visitDeclareFunctionStmt(this,e)},e}(Tc),Oc=function(t){function e(e,n){var r=t.call(this,null,n)||this;return r.expr=e,r}return Qr(e,t),e.prototype.visitStatement=function(t,e){return t.visitExpressionStmt(this,e)},e}(Tc),Mc=function(t){function e(e,n){var r=t.call(this,null,n)||this;return r.value=e,r}return Qr(e,t),e.prototype.visitStatement=function(t,e){return t.visitReturnStmt(this,e)},e}(Tc),kc=function(){function t(t,e){this.modifiers=e,e||(this.modifiers=[]),this.type=t||null}return t.prototype.hasModifier=function(t){return-1!==this.modifiers.indexOf(t)},t}(),Nc=function(t){function e(e,n,r){void 0===r&&(r=null);var o=t.call(this,n,r)||this;return o.name=e,o}return Qr(e,t),e}(kc),Ic=function(t){function e(e,n,r,o,i){void 0===i&&(i=null);var s=t.call(this,o,i)||this;return s.name=e,s.params=n,s.body=r,s}return Qr(e,t),e}(kc),Rc=function(t){function e(e,n,r,o){void 0===o&&(o=null);var i=t.call(this,r,o)||this;return i.name=e,i.body=n,i}return Qr(e,t),e}(kc),Dc=function(t){function e(e,n,r,o,i,s,a,u){void 0===a&&(a=null);var c=t.call(this,a,u)||this;return c.name=e,c.parent=n,c.fields=r,c.getters=o,c.constructorMethod=i,c.methods=s,c}return Qr(e,t),e.prototype.visitStatement=function(t,e){return t.visitDeclareClassStmt(this,e)},e}(Tc),Vc=function(t){function e(e,n,r,o){void 0===r&&(r=[]);var i=t.call(this,null,o)||this;return i.condition=e,i.trueCase=n,i.falseCase=r,i}return Qr(e,t),e.prototype.visitStatement=function(t,e){return t.visitIfStmt(this,e)},e}(Tc),Lc=function(t){function e(e,n,r){var o=t.call(this,null,r)||this;return o.bodyStmts=e,o.catchStmts=n,o}return Qr(e,t),e.prototype.visitStatement=function(t,e){return t.visitTryCatchStmt(this,e)},e}(Tc),Fc=function(t){function e(e,n){var r=t.call(this,null,n)||this;return r.error=e,r}return Qr(e,t),e.prototype.visitStatement=function(t,e){return t.visitThrowStmt(this,e)},e}(Tc),jc=function(){function t(){}return t.prototype.transformExpr=function(t,e){return t},t.prototype.transformStmt=function(t,e){return t},t.prototype.visitReadVarExpr=function(t,e){return this.transformExpr(t,e)},t.prototype.visitWriteVarExpr=function(t,e){return this.transformExpr(new tc(t.name,t.value.visitExpression(this,e),t.type,t.sourceSpan),e)},t.prototype.visitWriteKeyExpr=function(t,e){return this.transformExpr(new ec(t.receiver.visitExpression(this,e),t.index.visitExpression(this,e),t.value.visitExpression(this,e),t.type,t.sourceSpan),e)},t.prototype.visitWritePropExpr=function(t,e){return this.transformExpr(new nc(t.receiver.visitExpression(this,e),t.name,t.value.visitExpression(this,e),t.type,t.sourceSpan),e)},t.prototype.visitInvokeMethodExpr=function(t,e){var n=t.builtin||t.name;return this.transformExpr(new oc(t.receiver.visitExpression(this,e),n,this.visitAllExpressions(t.args,e),t.type,t.sourceSpan),e)},t.prototype.visitInvokeFunctionExpr=function(t,e){return this.transformExpr(new ic(t.fn.visitExpression(this,e),this.visitAllExpressions(t.args,e),t.type,t.sourceSpan),e)},t.prototype.visitInstantiateExpr=function(t,e){return this.transformExpr(new sc(t.classExpr.visitExpression(this,e),this.visitAllExpressions(t.args,e),t.type,t.sourceSpan),e)},t.prototype.visitLiteralExpr=function(t,e){return this.transformExpr(t,e)},t.prototype.visitExternalExpr=function(t,e){return this.transformExpr(t,e)},t.prototype.visitConditionalExpr=function(t,e){return this.transformExpr(new cc(t.condition.visitExpression(this,e),t.trueCase.visitExpression(this,e),t.falseCase.visitExpression(this,e),t.type,t.sourceSpan),e)},t.prototype.visitNotExpr=function(t,e){return this.transformExpr(new lc(t.condition.visitExpression(this,e),t.sourceSpan),e)},t.prototype.visitCastExpr=function(t,e){return this.transformExpr(new pc(t.value.visitExpression(this,e),t.type,t.sourceSpan),e)},t.prototype.visitFunctionExpr=function(t,e){return this.transformExpr(new fc(t.params,this.visitAllStatements(t.statements,e),t.type,t.sourceSpan),e)},t.prototype.visitBinaryOperatorExpr=function(t,e){return this.transformExpr(new dc(t.operator,t.lhs.visitExpression(this,e),t.rhs.visitExpression(this,e),t.type,t.sourceSpan),e)},t.prototype.visitReadPropExpr=function(t,e){return this.transformExpr(new yc(t.receiver.visitExpression(this,e),t.name,t.type,t.sourceSpan),e)},t.prototype.visitReadKeyExpr=function(t,e){return this.transformExpr(new vc(t.receiver.visitExpression(this,e),t.index.visitExpression(this,e),t.type,t.sourceSpan),e)},t.prototype.visitLiteralArrayExpr=function(t,e){return this.transformExpr(new mc(this.visitAllExpressions(t.entries,e),t.type,t.sourceSpan),e)},t.prototype.visitLiteralMapExpr=function(t,e){var n=this,r=t.entries.map(function(t){return new gc(t.key,t.value.visitExpression(n,e),t.quoted)}),o=new Wu(t.valueType,null);return this.transformExpr(new _c(r,o,t.sourceSpan),e)},t.prototype.visitCommaExpr=function(t,e){return this.transformExpr(new bc(this.visitAllExpressions(t.parts,e),t.sourceSpan),e)},t.prototype.visitAllExpressions=function(t,e){var n=this;return t.map(function(t){return t.visitExpression(n,e)})},t.prototype.visitDeclareVarStmt=function(t,e){return this.transformStmt(new Pc(t.name,t.value.visitExpression(this,e),t.type,t.modifiers,t.sourceSpan),e)},t.prototype.visitDeclareFunctionStmt=function(t,e){return this.transformStmt(new Ac(t.name,t.params,this.visitAllStatements(t.statements,e),t.type,t.modifiers,t.sourceSpan),e)},t.prototype.visitExpressionStmt=function(t,e){return this.transformStmt(new Oc(t.expr.visitExpression(this,e),t.sourceSpan),e)},t.prototype.visitReturnStmt=function(t,e){return this.transformStmt(new Mc(t.value.visitExpression(this,e),t.sourceSpan),e)},t.prototype.visitDeclareClassStmt=function(t,e){var n=this,r=t.parent.visitExpression(this,e),o=t.getters.map(function(t){return new Rc(t.name,n.visitAllStatements(t.body,e),t.type,t.modifiers)}),i=t.constructorMethod&&new Ic(t.constructorMethod.name,t.constructorMethod.params,this.visitAllStatements(t.constructorMethod.body,e),t.constructorMethod.type,t.constructorMethod.modifiers),s=t.methods.map(function(t){return new Ic(t.name,t.params,n.visitAllStatements(t.body,e),t.type,t.modifiers)});return this.transformStmt(new Dc(t.name,r,t.fields,o,i,s,t.modifiers,t.sourceSpan),e)},t.prototype.visitIfStmt=function(t,e){return this.transformStmt(new Vc(t.condition.visitExpression(this,e),this.visitAllStatements(t.trueCase,e),this.visitAllStatements(t.falseCase,e),t.sourceSpan),e)},t.prototype.visitTryCatchStmt=function(t,e){return this.transformStmt(new Lc(this.visitAllStatements(t.bodyStmts,e),this.visitAllStatements(t.catchStmts,e),t.sourceSpan),e)},t.prototype.visitThrowStmt=function(t,e){return this.transformStmt(new Fc(t.error.visitExpression(this,e),t.sourceSpan),e)},t.prototype.visitCommentStmt=function(t,e){return this.transformStmt(t,e)},t.prototype.visitAllStatements=function(t,e){var n=this;return t.map(function(t){return t.visitStatement(n,e)})},t}(),Hc=function(){function t(){}return t.prototype.visitReadVarExpr=function(t,e){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,e){return t},t.prototype.visitExternalExpr=function(t,e){return t},t.prototype.visitConditionalExpr=function(t,e){return t.condition.visitExpression(this,e),t.trueCase.visitExpression(this,e),t.falseCase.visitExpression(this,e),t},t.prototype.visitNotExpr=function(t,e){return t.condition.visitExpression(this,e),t},t.prototype.visitCastExpr=function(t,e){return t.value.visitExpression(this,e),t},t.prototype.visitFunctionExpr=function(t,e){return this.visitAllStatements(t.statements,e),t},t.prototype.visitBinaryOperatorExpr=function(t,e){return t.lhs.visitExpression(this,e),t.rhs.visitExpression(this,e),t},t.prototype.visitReadPropExpr=function(t,e){return t.receiver.visitExpression(this,e),t},t.prototype.visitReadKeyExpr=function(t,e){return t.receiver.visitExpression(this,e),t.index.visitExpression(this,e),t},t.prototype.visitLiteralArrayExpr=function(t,e){return this.visitAllExpressions(t.entries,e),t},t.prototype.visitLiteralMapExpr=function(t,e){var n=this;return t.entries.forEach(function(t){return t.value.visitExpression(n,e)}),t},t.prototype.visitCommaExpr=function(t,e){this.visitAllExpressions(t.parts,e)},t.prototype.visitAllExpressions=function(t,e){var n=this;t.forEach(function(t){return t.visitExpression(n,e)})},t.prototype.visitDeclareVarStmt=function(t,e){return t.value.visitExpression(this,e),t},t.prototype.visitDeclareFunctionStmt=function(t,e){return this.visitAllStatements(t.statements,e),t},t.prototype.visitExpressionStmt=function(t,e){return t.expr.visitExpression(this,e),t},t.prototype.visitReturnStmt=function(t,e){return t.value.visitExpression(this,e),t},t.prototype.visitDeclareClassStmt=function(t,e){var n=this;return t.parent.visitExpression(this,e),t.getters.forEach(function(t){return n.visitAllStatements(t.body,e)}),t.constructorMethod&&this.visitAllStatements(t.constructorMethod.body,e),t.methods.forEach(function(t){return n.visitAllStatements(t.body,e)}),t},t.prototype.visitIfStmt=function(t,e){return t.condition.visitExpression(this,e),this.visitAllStatements(t.trueCase,e),this.visitAllStatements(t.falseCase,e),t},t.prototype.visitTryCatchStmt=function(t,e){return this.visitAllStatements(t.bodyStmts,e),this.visitAllStatements(t.catchStmts,e),t},t.prototype.visitThrowStmt=function(t,e){return t.error.visitExpression(this,e),t},t.prototype.visitCommentStmt=function(t,e){return t},t.prototype.visitAllStatements=function(t,e){var n=this;t.forEach(function(t){return t.visitStatement(n,e)})},t}(),Uc=function(t){function e(){var e=t.apply(this,arguments)||this;return e.varNames=new Set,e}return Qr(e,t),e.prototype.visitDeclareFunctionStmt=function(t,e){return t},e.prototype.visitDeclareClassStmt=function(t,e){return t},e.prototype.visitReadVarExpr=function(t,e){return t.name&&this.varNames.add(t.name),null},e}(Hc),Bc=function(t){function e(e){var n=t.call(this)||this;return n.sourceSpan=e,n}return Qr(e,t),e.prototype._clone=function(t){var e=Object.create(t.constructor.prototype);for(var n in t)e[n]=t[n];return e},e.prototype.transformExpr=function(t,e){return t.sourceSpan||(t=this._clone(t),t.sourceSpan=this.sourceSpan),t},e.prototype.transformStmt=function(t,e){return t.sourceSpan||(t=this._clone(t),t.sourceSpan=this.sourceSpan),t},e}(jc),qc=function(){function t(){}return t.prototype.visitArray=function(t,e){var n=this;return gn(t.map(function(t){return y(t,n,null)}),e)},t.prototype.visitStringMap=function(t,e){var n=this,r=[],o=new Set(t&&t.$quoted$);return Object.keys(t).forEach(function(e){r.push(new gc(e,y(t[e],n,null),o.has(e)))}),new _c(r,e)},t.prototype.visitPrimitive=function(t,e){return En(t,e)},t.prototype.visitOther=function(t,e){return t instanceof Yu?t:yn({reference:t})},t}(),Gc=function(){function t(t){this.compType=t}return t}(),zc=function(){function t(t,e,n){this.statements=t,this.ngModuleFactoryVar=e,this.dependencies=n}return t}(),Wc=function(){function t(){}return t.prototype.compile=function(t,e){var n=ut("NgModule",t.type),r=[],o=[],i=t.transitiveModule.entryComponents.map(function(e){return t.bootstrapComponents.some(function(t){return t.reference===e.componentType})&&o.push({reference:e.componentFactory}),r.push(new Gc(e.componentType)),{reference:e.componentFactory}}),s=new Kc(t,i,o,n);new Ua(t,e,n).parse().forEach(function(t){return s.addProvider(t)});var a=s.build(),u=C(t.type)+"NgFactory",c=dn(u).set(yn(he(Ia.NgModuleFactory)).instantiate([dn(a.name),yn(t.type)],vn(he(Ia.NgModuleFactory),[vn(t.type)],[Hu.Const]))).toDeclStmt(null,[xc.Final]),l=[a,c];if(t.id){var p=yn(he(Ia.RegisterModuleFactoryFn)).callFn([En(t.id),dn(u)]).toStmt();l.push(p)}return new zc(l,u,r)},t}();Wc.decorators=[{type:q}],Wc.ctorParameters=function(){return[]};var Kc=function(){function t(t,e,n,r){this._ngModuleMeta=t,this._entryComponentFactories=e,this._bootstrapComponentFactories=n,this._sourceSpan=r,this.fields=[],this.getters=[],this.methods=[],this.ctorStmts=[],this._lazyProps=new Map,this._tokens=[],this._instances=new Map,this._createStmts=[],this._destroyStmts=[]}return t.prototype.addProvider=function(t){var e=this,n=t.providers.map(function(t){return e._getProviderValue(t)}),r="_"+O(t.token)+"_"+this._instances.size,o=this._createProviderProperty(r,t,n,t.multiProvider,t.eager);if(-1!==t.lifecycleHooks.indexOf(Kr["ɵLifecycleHooks"].OnDestroy)){var i=o.callMethod("ngOnDestroy",[]);t.eager||(i=this._lazyProps.get(o.name).and(i)),this._destroyStmts.push(i.toStmt())}this._tokens.push(t.token),this._instances.set(M(t.token),o)},t.prototype.build=function(){var t=this,e=this._tokens.map(function(e){var n=t._instances.get(M(e));return new Vc(Xc.token.identical(Tn(e)),[new Mc(n)])}),n=[new Ic("createInternal",[],this._createStmts.concat(new Mc(this._instances.get(this._ngModuleMeta.type.reference))),vn(this._ngModuleMeta.type)),new Ic("getInternal",[new hc(Xc.token.name,Ku),new hc(Xc.notFoundResult.name,Ku)],e.concat([new Mc(Xc.notFoundResult)]),Ku),new Ic("destroyInternal",[],this._destroyStmts)],r=[dn(Qc.parent.name),gn(this._entryComponentFactories.map(function(t){return yn(t)})),gn(this._bootstrapComponentFactories.map(function(t){return yn(t)}))];return Cn({name:C(this._ngModuleMeta.type)+"Injector",ctorParams:[new hc(Qc.parent.name,vn(he(Ia.Injector)))],parent:yn(he(Ia.NgModuleInjector),[vn(this._ngModuleMeta.type)]),parentArgs:r,builders:[{methods:n},this]})},t.prototype._getProviderValue=function(t){var e,n=this;if(null!=t.useExisting)e=this._getDependency({token:t.useExisting});else if(null!=t.useFactory){var r=t.deps||t.useFactory.diDeps,o=r.map(function(t){return n._getDependency(t)});e=yn(t.useFactory).callFn(o)}else if(null!=t.useClass){var r=t.deps||t.useClass.diDeps,o=r.map(function(t){return n._getDependency(t)});e=yn(t.useClass).instantiate(o,vn(t.useClass))}else e=xn(t.useValue);return e},t.prototype._createProviderProperty=function(t,e,n,r,o){var i,s;if(r?(i=gn(n),s=new zu(Ku)):(i=n[0],s=n[0].type),s||(s=Ku),o)this.fields.push(new Nc(t,s)),this._createStmts.push(wc.prop(t).set(i).toStmt());else{var a=wc.prop("_"+t);this.fields.push(new Nc(a.name,s));var u=[new Vc(a.isBlank(),[a.set(i).toStmt()]),new Mc(a)];this.getters.push(new Rc(t,u,s)),this._lazyProps.set(t,a)}return wc.prop(t)},t.prototype._getDependency=function(t){var e=null;if(t.isValue&&(e=En(t.value)),t.isSkipSelf||(t.token&&(M(t.token)===pe(Ia.Injector)?e=wc:M(t.token)===pe(Ia.ComponentFactoryResolver)&&(e=wc.prop("componentFactoryResolver"))),e||(e=this._instances.get(M(t.token)))),!e){var n=[Tn(t.token)];t.isOptional&&n.push(Cc),e=Qc.parent.callMethod("get",n)}return e},t}(),Qc=function(){function t(){}return t}();Qc.parent=wc.prop("parent");var Xc=function(){function t(){}return t}();Xc.token=dn("token"),Xc.notFoundResult=dn("notFoundResult");/**
* @license
* Copyright Google Inc. All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
var Zc=function(){function t(t){void 0===t&&(t=null),this.file=t,this.sourcesContent=new Map,this.lines=[],this.lastCol0=0,this.hasMappings=!1}return t.prototype.addSource=function(t,e){return void 0===e&&(e=null),this.sourcesContent.has(t)||this.sourcesContent.set(t,e),this},t.prototype.addLine=function(){return this.lines.push([]),this.lastCol0=0,this},t.prototype.addMapping=function(t,e,n,r){if(!this.currentLine)throw new Error("A line must be added before mappings can be added");if(null!=e&&!this.sourcesContent.has(e))throw new Error('Unknown source file "'+e+'"');if(null==t)throw new Error("The column in the generated code must be provided");if(t<this.lastCol0)throw new Error("Mapping should be added in output order");if(e&&(null==n||null==r))throw new Error("The source location must be provided when a source url is provided");return this.hasMappings=!0,this.lastCol0=t,this.currentLine.push({col0:t,sourceUrl:e,sourceLine0:n,sourceCol0:r}),this},Object.defineProperty(t.prototype,"currentLine",{get:function(){return this.lines.slice(-1)[0]},enumerable:!0,configurable:!0}),t.prototype.toJSON=function(){var t=this;if(!this.hasMappings)return null;var e=new Map,n=[],r=[];Array.from(this.sourcesContent.keys()).forEach(function(o,i){e.set(o,i),n.push(o),r.push(t.sourcesContent.get(o)||null)});var o="",i=0,s=0,a=0,u=0;return this.lines.forEach(function(t){i=0,o+=t.map(function(t){var n=An(t.col0-i);return i=t.col0,null!=t.sourceUrl&&(n+=An(e.get(t.sourceUrl)-s),s=e.get(t.sourceUrl),n+=An(t.sourceLine0-a),a=t.sourceLine0,n+=An(t.sourceCol0-u),u=t.sourceCol0),n}).join(","),o+=";"}),o=o.slice(0,-1),{file:this.file||"",version:3,sourceRoot:"",sources:n,sourcesContent:r,mappings:o}},t.prototype.toJsComment=function(){return this.hasMappings?"//# sourceMappingURL=data:application/json;base64,"+Pn(JSON.stringify(this,null,0)):""},t}(),Yc="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",$c=/'|\\|\n|\r|\$/g,Jc=/^[$A-Z_][0-9A-Z_$]*$/i,tl=" ",el=dn("error",null,null),nl=dn("stack",null,null),rl=function(){function t(t){this.indent=t,this.parts=[],this.srcSpans=[]}return t}(),ol=function(){function t(t,e){this._exportedVars=t,this._indent=e,this._classes=[],this._lines=[new rl(e)]}return t.createRoot=function(e){return new t(e,0)},Object.defineProperty(t.prototype,"_currentLine",{get:function(){return this._lines[this._lines.length-1]},enumerable:!0,configurable:!0}),t.prototype.isExportedVar=function(t){return-1!==this._exportedVars.indexOf(t)},t.prototype.println=function(t,e){void 0===e&&(e=""),this.print(t||null,e,!0)},t.prototype.lineIsEmpty=function(){return 0===this._currentLine.parts.length},t.prototype.print=function(t,e,n){void 0===n&&(n=!1),e.length>0&&(this._currentLine.parts.push(e),this._currentLine.srcSpans.push(t&&t.sourceSpan||null)),n&&this._lines.push(new rl(this._indent))},t.prototype.removeEmptyLastLine=function(){this.lineIsEmpty()&&this._lines.pop()},t.prototype.incIndent=function(){this._indent++,this._currentLine.indent=this._indent},t.prototype.decIndent=function(){this._indent--,this._currentLine.indent=this._indent},t.prototype.pushClass=function(t){this._classes.push(t)},t.prototype.popClass=function(){return this._classes.pop()},Object.defineProperty(t.prototype,"currentClass",{get:function(){return this._classes.length>0?this._classes[this._classes.length-1]:null},enumerable:!0,configurable:!0}),t.prototype.toSource=function(){return this.sourceLines.map(function(t){return t.parts.length>0?kn(t.indent)+t.parts.join(""):""}).join("\n")},t.prototype.toSourceMapGenerator=function(t,e,n){void 0===n&&(n=0);for(var r=new Zc(e),o=!1,i=function(){o||(r.addSource(t," ").addMapping(0,t,0,0),o=!0)},s=0;s<n;s++)r.addLine(),i();return this.sourceLines.forEach(function(t,e){r.addLine();for(var n=t.srcSpans,s=t.parts,a=t.indent*tl.length,u=0;u<n.length&&!n[u];)a+=s[u].length,u++;for(u<n.length&&0===e&&0===a?o=!0:i();u<n.length;){var c=n[u],l=c.start.file,p=c.start.line,h=c.start.col;for(r.addSource(l.url,l.content).addMapping(a,l.url,p,h),a+=s[u].length,u++;u<n.length&&(c===n[u]||!n[u]);)a+=s[u].length,u++}}),r},Object.defineProperty(t.prototype,"sourceLines",{get:function(){return this._lines.length&&0===this._lines[this._lines.length-1].parts.length?this._lines.slice(0,-1):this._lines},enumerable:!0,configurable:!0}),t}(),il=function(){function t(t){this._escapeDollarInStrings=t}return t.prototype.visitExpressionStmt=function(t,e){return t.expr.visitExpression(this,e),e.println(t,";"),null},t.prototype.visitReturnStmt=function(t,e){return e.print(t,"return "),t.value.visitExpression(this,e),e.println(t,";"),null},t.prototype.visitCastExpr=function(t,e){},t.prototype.visitDeclareClassStmt=function(t,e){},t.prototype.visitIfStmt=function(t,e){e.print(t,"if ("),t.condition.visitExpression(this,e),e.print(t,") {");var n=null!=t.falseCase&&t.falseCase.length>0;return t.trueCase.length<=1&&!n?(e.print(t," "),this.visitAllStatements(t.trueCase,e),e.removeEmptyLastLine(),e.print(t," ")):(e.println(),e.incIndent(),this.visitAllStatements(t.trueCase,e),e.decIndent(),n&&(e.println(t,"} else {"),e.incIndent(),this.visitAllStatements(t.falseCase,e),e.decIndent())),e.println(t,"}"),null},t.prototype.visitTryCatchStmt=function(t,e){},t.prototype.visitThrowStmt=function(t,e){return e.print(t,"throw "),t.error.visitExpression(this,e),e.println(t,";"),null},t.prototype.visitCommentStmt=function(t,e){return t.comment.split("\n").forEach(function(n){e.println(t,"// "+n)}),null},t.prototype.visitDeclareVarStmt=function(t,e){},t.prototype.visitWriteVarExpr=function(t,e){var n=e.lineIsEmpty();return n||e.print(t,"("),e.print(t,t.name+" = "),t.value.visitExpression(this,e),n||e.print(t,")"),null},t.prototype.visitWriteKeyExpr=function(t,e){var n=e.lineIsEmpty();return n||e.print(t,"("),t.receiver.visitExpression(this,e),e.print(t,"["),t.index.visitExpression(this,e),e.print(t,"] = "),t.value.visitExpression(this,e),n||e.print(t,")"),null},t.prototype.visitWritePropExpr=function(t,e){var n=e.lineIsEmpty();return n||e.print(t,"("),t.receiver.visitExpression(this,e),e.print(t,"."+t.name+" = "),t.value.visitExpression(this,e),n||e.print(t,")"),null},t.prototype.visitInvokeMethodExpr=function(t,e){t.receiver.visitExpression(this,e);var n=t.name;return null!=t.builtin&&null==(n=this.getBuiltinMethodName(t.builtin))?null:(e.print(t,"."+n+"("),this.visitAllExpressions(t.args,e,","),e.print(t,")"),null)},t.prototype.getBuiltinMethodName=function(t){},t.prototype.visitInvokeFunctionExpr=function(t,e){return t.fn.visitExpression(this,e),e.print(t,"("),this.visitAllExpressions(t.args,e,","),e.print(t,")"),null},t.prototype.visitReadVarExpr=function(t,e){var n=t.name;if(null!=t.builtin)switch(t.builtin){case $u.Super:n="super";break;case $u.This:n="this";break;case $u.CatchError:n=el.name;break;case $u.CatchStack:n=nl.name;break;default:throw new Error("Unknown builtin variable "+t.builtin)}return e.print(t,n),null},t.prototype.visitInstantiateExpr=function(t,e){return e.print(t,"new "),t.classExpr.visitExpression(this,e),e.print(t,"("),this.visitAllExpressions(t.args,e,","),e.print(t,")"),null},t.prototype.visitLiteralExpr=function(t,e){var n=t.value;return"string"==typeof n?e.print(t,Mn(n,this._escapeDollarInStrings)):e.print(t,""+n),null},t.prototype.visitExternalExpr=function(t,e){},t.prototype.visitConditionalExpr=function(t,e){return e.print(t,"("),t.condition.visitExpression(this,e),e.print(t,"? "),t.trueCase.visitExpression(this,e),e.print(t,": "),t.falseCase.visitExpression(this,e),e.print(t,")"),null},t.prototype.visitNotExpr=function(t,e){return e.print(t,"!"),t.condition.visitExpression(this,e),null},t.prototype.visitFunctionExpr=function(t,e){},t.prototype.visitDeclareFunctionStmt=function(t,e){},t.prototype.visitBinaryOperatorExpr=function(t,e){var n;switch(t.operator){case Zu.Equals:n="==";break;case Zu.Identical:n="===";break;case Zu.NotEquals:n="!=";break;case Zu.NotIdentical:n="!==";break;case Zu.And:n="&&";break;case Zu.Or:n="||";break;case Zu.Plus:n="+";break;case Zu.Minus:n="-";break;case Zu.Divide:n="/";break;case Zu.Multiply:n="*";break;case Zu.Modulo:n="%";break;case Zu.Lower:n="<";break;case Zu.LowerEquals:n="<=";break;case Zu.Bigger:n=">";break;case Zu.BiggerEquals:n=">=";break;default:throw new Error("Unknown operator "+t.operator)}return e.print(t,"("),t.lhs.visitExpression(this,e),e.print(t," "+n+" "),t.rhs.visitExpression(this,e),e.print(t,")"),null},t.prototype.visitReadPropExpr=function(t,e){return t.receiver.visitExpression(this,e),e.print(t,"."),e.print(t,t.name),null},t.prototype.visitReadKeyExpr=function(t,e){return t.receiver.visitExpression(this,e),e.print(t,"["),t.index.visitExpression(this,e),e.print(t,"]"),null},t.prototype.visitLiteralArrayExpr=function(t,e){var n=t.entries.length>1;return e.print(t,"[",n),e.incIndent(),this.visitAllExpressions(t.entries,e,",",n),e.decIndent(),e.print(t,"]",n),null},t.prototype.visitLiteralMapExpr=function(t,e){var n=this,r=t.entries.length>1;return e.print(t,"{",r),e.incIndent(),this.visitAllObjects(function(r){e.print(t,Mn(r.key,n._escapeDollarInStrings,r.quoted)+": "),r.value.visitExpression(n,e)},t.entries,e,",",r),e.decIndent(),e.print(t,"}",r),null},t.prototype.visitCommaExpr=function(t,e){return e.print(t,"("),this.visitAllExpressions(t.parts,e,","),e.print(t,")"),null},t.prototype.visitAllExpressions=function(t,e,n,r){var o=this;void 0===r&&(r=!1),this.visitAllObjects(function(t){return t.visitExpression(o,e)},t,e,n,r)},t.prototype.visitAllObjects=function(t,e,n,r,o){void 0===o&&(o=!1);for(var i=0;i<e.length;i++)i>0&&n.print(null,r,o),t(e[i]);o&&n.println()},t.prototype.visitAllStatements=function(t,e){var n=this;t.forEach(function(t){return t.visitStatement(n,e)})},t}(),sl="/debug/lib",al=(function(){function t(t){this._importResolver=t}t.prototype.emitStatements=function(t,e,n,r,o){var i=this;void 0===o&&(o="");var s=new al(e,this._importResolver),a=ol.createRoot(r);s.visitAllStatements(n,a);var u=o?o.split("\n"):[];s.reexports.forEach(function(t,n){var r=t.map(function(t){return t.name+" as "+t.as}).join(",");u.push("export {"+r+"} from '"+i._importResolver.fileNameToModuleName(n,e)+"';")}),s.importsWithPrefixes.forEach(function(t,n){u.push("import * as "+t+" from '"+i._importResolver.fileNameToModuleName(n,e)+"';")});var c=a.toSourceMapGenerator(t,e,u.length).toJsComment(),l=u.concat([a.toSource(),c]);return c&&l.push(""),l.join("\n")}}(),function(t){function e(e,n){var r=t.call(this,!1)||this;return r._genFilePath=e,r._importResolver=n,r.typeExpression=0,r.importsWithPrefixes=new Map,r.reexports=new Map,r}return Qr(e,t),e.prototype.visitType=function(t,e,n){void 0===n&&(n="any"),t?(this.typeExpression++,t.visitType(this,e),this.typeExpression--):e.print(null,n)},e.prototype.visitLiteralExpr=function(e,n){var r=e.value;return null==r&&e.type!=Qu?(n.print(e,"("+r+" as any)"),null):t.prototype.visitLiteralExpr.call(this,e,n)},e.prototype.visitLiteralArrayExpr=function(e,n){0===e.entries.length&&n.print(e,"(");var r=t.prototype.visitLiteralArrayExpr.call(this,e,n);return 0===e.entries.length&&n.print(e," as any[])"),r},e.prototype.visitExternalExpr=function(t,e){return this._visitIdentifier(t.value,t.typeParams,e),null},e.prototype.visitDeclareVarStmt=function(t,e){if(e.isExportedVar(t.name)&&t.value instanceof uc&&!t.type){var n=this._resolveStaticSymbol(t.value.value),r=n.name,o=n.filePath;if(0===n.members.length&&o!==this._genFilePath){var i=this.reexports.get(o);return i||(i=[],this.reexports.set(o,i)),i.push({name:r,as:t.name}),null}}return e.isExportedVar(t.name)&&e.print(t,"export "),t.hasModifier(xc.Final)?e.print(t,"const"):e.print(t,"var"),e.print(t," "+t.name),this._printColonType(t.type,e),e.print(t," = "),t.value.visitExpression(this,e),e.println(t,";"),null},e.prototype.visitCastExpr=function(t,e){return e.print(t,"(<"),t.type.visitType(this,e),e.print(t,">"),t.value.visitExpression(this,e),e.print(t,")"),null},e.prototype.visitInstantiateExpr=function(t,e){return e.print(t,"new "),this.typeExpression++,t.classExpr.visitExpression(this,e),this.typeExpression--,e.print(t,"("),this.visitAllExpressions(t.args,e,","),e.print(t,")"),null},e.prototype.visitDeclareClassStmt=function(t,e){var n=this;return e.pushClass(t),e.isExportedVar(t.name)&&e.print(t,"export "),e.print(t,"class "+t.name),null!=t.parent&&(e.print(t," extends "),this.typeExpression++,t.parent.visitExpression(this,e),this.typeExpression--),e.println(t," {"),e.incIndent(),t.fields.forEach(function(t){return n._visitClassField(t,e)}),null!=t.constructorMethod&&this._visitClassConstructor(t,e),t.getters.forEach(function(t){return n._visitClassGetter(t,e)}),t.methods.forEach(function(t){return n._visitClassMethod(t,e)}),e.decIndent(),e.println(t,"}"),e.popClass(),null},e.prototype._visitClassField=function(t,e){t.hasModifier(xc.Private)&&e.print(null,"/*private*/ "),e.print(null,t.name),this._printColonType(t.type,e),e.println(null,";")},e.prototype._visitClassGetter=function(t,e){t.hasModifier(xc.Private)&&e.print(null,"private "),e.print(null,"get "+t.name+"()"),this._printColonType(t.type,e),e.println(null," {"),e.incIndent(),this.visitAllStatements(t.body,e),e.decIndent(),e.println(null,"}")},e.prototype._visitClassConstructor=function(t,e){e.print(t,"constructor("),this._visitParams(t.constructorMethod.params,e),e.println(t,") {"),e.incIndent(),this.visitAllStatements(t.constructorMethod.body,e),e.decIndent(),e.println(t,"}")},e.prototype._visitClassMethod=function(t,e){t.hasModifier(xc.Private)&&e.print(null,"private "),e.print(null,t.name+"("),this._visitParams(t.params,e),e.print(null,")"),this._printColonType(t.type,e,"void"),e.println(null," {"),e.incIndent(),this.visitAllStatements(t.body,e),e.decIndent(),e.println(null,"}")},e.prototype.visitFunctionExpr=function(t,e){return e.print(t,"("),this._visitParams(t.params,e),e.print(t,")"),this._printColonType(t.type,e,"void"),e.println(t," => {"),e.incIndent(),this.visitAllStatements(t.statements,e),e.decIndent(),e.print(t,"}"),null},e.prototype.visitDeclareFunctionStmt=function(t,e){return e.isExportedVar(t.name)&&e.print(t,"export "),e.print(t,"function "+t.name+"("),this._visitParams(t.params,e),e.print(t,")"),this._printColonType(t.type,e,"void"),e.println(t," {"),e.incIndent(),this.visitAllStatements(t.statements,e),e.decIndent(),e.println(t,"}"),null},e.prototype.visitTryCatchStmt=function(t,e){e.println(t,"try {"),e.incIndent(),this.visitAllStatements(t.bodyStmts,e),e.decIndent(),e.println(t,"} catch ("+el.name+") {"),e.incIndent();var n=[nl.set(el.prop("stack",null)).toDeclStmt(null,[xc.Final])].concat(t.catchStmts);return this.visitAllStatements(n,e),e.decIndent(),e.println(t,"}"),null},e.prototype.visitBuiltintType=function(t,e){var n;switch(t.name){case Bu.Bool:n="boolean";break;case Bu.Dynamic:n="any";break;case Bu.Function:n="Function";break;case Bu.Number:case Bu.Int:n="number";break;case Bu.String:n="string";break;default:throw new Error("Unsupported builtin type "+t.name)}return e.print(null,n),null},e.prototype.visitExpressionType=function(t,e){return t.value.visitExpression(this,e),null},e.prototype.visitArrayType=function(t,e){return this.visitType(t.of,e),e.print(null,"[]"),null},e.prototype.visitMapType=function(t,e){return e.print(null,"{[key: string]:"),this.visitType(t.valueType,e),e.print(null,"}"),null},e.prototype.getBuiltinMethodName=function(t){var e;switch(t){case rc.ConcatArray:e="concat";break;case rc.SubscribeObservable:e="subscribe";break;case rc.Bind:e="bind";break;default:throw new Error("Unknown builtin method: "+t)}return e},e.prototype._visitParams=function(t,e){var n=this;this.visitAllObjects(function(t){e.print(null,t.name),n._printColonType(t.type,e)},t,e,",")},e.prototype._resolveStaticSymbol=function(t){var e=t.reference;if(!(e instanceof lo))throw new Error("Internal error: unknown identifier "+JSON.stringify(t));var n=this._importResolver.getTypeArity(e)||void 0,r=this._importResolver.getImportAs(e)||e;return{name:r.name,filePath:r.filePath,members:r.members,arity:n}},e.prototype._visitIdentifier=function(t,e,n){var r=this,o=this._resolveStaticSymbol(t),i=o.name,s=o.filePath,a=o.members,u=o.arity;if(s!=this._genFilePath){var c=this.importsWithPrefixes.get(s);null==c&&(c="import"+this.importsWithPrefixes.size,this.importsWithPrefixes.set(s,c)),n.print(null,c+".")}if(a.length?(n.print(null,i),n.print(null,"."),n.print(null,a.join("."))):n.print(null,i),this.typeExpression>0){var l=e&&e.length||0,p=(u||0)-l;if(l>0||p>0){if(n.print(null,"<"),l>0&&this.visitAllObjects(function(t){return t.visitType(r,n)},e,n,","),p>0)for(var h=0;h<p;h++)(h>0||l>0)&&n.print(null,","),n.print(null,"any");n.print(null,">")}}},e.prototype._printColonType=function(t,e,n){t!==Qu&&(e.print(null,":"),this.visitType(t,e,n))},e}(il)),ul={};In(Kr.SecurityContext.HTML,["iframe|srcdoc","*|innerHTML","*|outerHTML"]),In(Kr.SecurityContext.STYLE,["*|style"]),In(Kr.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"]),In(Kr.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"]);/**
* @license
* Copyright Google Inc. All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
var cl="boolean",ll="number",pl="string",hl="object",fl=["[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"],dl={class:"className",for:"htmlFor",formaction:"formAction",innerHtml:"innerHTML",readonly:"readOnly",tabindex:"tabIndex"},yl=function(t){function e(){var e=t.call(this)||this;return e._schema={},fl.forEach(function(t){var n={},r=t.split("|"),o=r[0],i=r[1],s=i.split(","),a=o.split("^"),u=a[0],c=a[1];u.split(",").forEach(function(t){return e._schema[t.toLowerCase()]=n});var l=c&&e._schema[c.toLowerCase()];l&&Object.keys(l).forEach(function(t){n[t]=l[t]}),s.forEach(function(t){if(t.length>0)switch(t[0]){case"*":break;case"!":n[t.substring(1)]=cl;break;case"#":n[t.substring(1)]=ll;break;case"%":n[t.substring(1)]=hl;break;default:n[t]=pl}})}),e}return Qr(e,t),e.prototype.hasProperty=function(t,e,n){if(n.some(function(t){return t.name===Kr.NO_ERRORS_SCHEMA.name}))return!0;if(t.indexOf("-")>-1){if(i(t)||s(t))return!1;if(n.some(function(t){return t.name===Kr.CUSTOM_ELEMENTS_SCHEMA.name}))return!0}return!!(this._schema[t.toLowerCase()]||this._schema.unknown)[e]},e.prototype.hasElement=function(t,e){if(e.some(function(t){return t.name===Kr.NO_ERRORS_SCHEMA.name}))return!0;if(t.indexOf("-")>-1){if(i(t)||s(t))return!0;if(e.some(function(t){return t.name===Kr.CUSTOM_ELEMENTS_SCHEMA.name}))return!0}return!!this._schema[t.toLowerCase()]},e.prototype.securityContext=function(t,e,n){n&&(e=this.getMappedPropName(e)),t=t.toLowerCase(),e=e.toLowerCase();var r=ul[t+"|"+e];return r||((r=ul["*|"+e])||Kr.SecurityContext.NONE)},e.prototype.getMappedPropName=function(t){return dl[t]||t},e.prototype.getDefaultComponentElementName=function(){return"ng-component"},e.prototype.validateProperty=function(t){if(t.toLowerCase().startsWith("on")){return{error:!0,msg:"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:!1}},e.prototype.validateAttribute=function(t){if(t.toLowerCase().startsWith("on")){return{error:!0,msg:"Binding to event attribute '"+t+"' is disallowed for security reasons, please use ("+t.slice(2)+")=..."}}return{error:!1}},e.prototype.allKnownElementNames=function(){return Object.keys(this._schema)},e.prototype.normalizeAnimationStyleProperty=function(t){return p(t)},e.prototype.normalizeAnimationStyleValue=function(t,e,n){var r="",o=n.toString().trim(),i=null;if(Rn(t)&&0!==n&&"0"!==n)if("number"==typeof n)r="px";else{var s=n.match(/^[+-]?[\d\.]+([a-z]*)$/);s&&0==s[1].length&&(i="Please provide a CSS unit value for "+e+":"+n)}return{error:i,value:o+r}},e}(Ba);yl.decorators=[{type:q}],yl.ctorParameters=function(){return[]};var vl=function(){function t(){this.strictStyling=!0}return t.prototype.shimCssText=function(t,e,n){void 0===n&&(n="");var r=Vn(t);return t=Dn(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(gl,function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return t[2]+"{"})},t.prototype._insertPolyfillRulesInCssText=function(t){return t.replace(_l,function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n=t[0].replace(t[1],"").replace(t[2],"");return t[4]+n})},t.prototype._scopeCssText=function(t,e,n){var r=this._extractUnscopedRulesFromCssText(t);return t=this._insertPolyfillHostInCssText(t),t=this._convertColonHost(t),t=this._convertColonHostContext(t),t=this._convertShadowDOMSelectors(t),e&&(t=this._scopeSelectors(t,e,n)),t=t+"\n"+r,t.trim()},t.prototype._extractUnscopedRulesFromCssText=function(t){var e,n="";for(bl.lastIndex=0;null!==(e=bl.exec(t));){n+=e[0].replace(e[2],"").replace(e[1],e[4])+"\n\n"}return n},t.prototype._convertColonHost=function(t){return this._convertColonRule(t,Sl,this._colonHostPartReplacer)},t.prototype._convertColonHostContext=function(t){return this._convertColonRule(t,xl,this._colonHostContextPartReplacer)},t.prototype._convertColonRule=function(t,e,n){return t.replace(e,function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];if(t[2]){for(var r=t[2].split(","),o=[],i=0;i<r.length;i++){var s=r[i].trim();if(!s)break;o.push(n(Tl,s,t[3]))}return o.join(",")}return Tl+t[3]})},t.prototype._colonHostContextPartReplacer=function(t,e,n){return e.indexOf(wl)>-1?this._colonHostPartReplacer(t,e,n):t+e+n+", "+e+" "+t+n},t.prototype._colonHostPartReplacer=function(t,e,n){return t+e.replace(wl,"")+n},t.prototype._convertShadowDOMSelectors=function(t){return Al.reduce(function(t,e){return t.replace(e," ")},t)},t.prototype._scopeSelectors=function(t,e,n){var r=this;return Ln(t,function(t){var o=t.selector,i=t.content;return"@"!=t.selector[0]?o=r._scopeSelector(t.selector,e,n,r.strictStyling):(t.selector.startsWith("@media")||t.selector.startsWith("@supports")||t.selector.startsWith("@page")||t.selector.startsWith("@document"))&&(i=r._scopeSelectors(t.content,e,n)),new Ul(o,i)})},t.prototype._scopeSelector=function(t,e,n,r){var o=this;return t.split(",").map(function(t){return t.trim().split(Ol)}).map(function(t){var i=t[0],s=t.slice(1);return[function(t){return o._selectorNeedsScoping(t,e)?r?o._applyStrictSelectorScope(t,e,n):o._applySelectorScope(t,e,n):t}(i)].concat(s).join(" ")}).join(", ")},t.prototype._selectorNeedsScoping=function(t,e){return!this._makeScopeMatcher(e).test(t)},t.prototype._makeScopeMatcher=function(t){return t=t.replace(/\[/g,"\\[").replace(/\]/g,"\\]"),new RegExp("^("+t+")"+Ml,"m")},t.prototype._applySelectorScope=function(t,e,n){return this._applySimpleSelectorScope(t,e,n)},t.prototype._applySimpleSelectorScope=function(t,e,n){if(kl.lastIndex=0,kl.test(t)){var r=this.strictStyling?"["+n+"]":e;return t.replace(Pl,function(t,e){return e.replace(/([^:]*)(:*)(.*)/,function(t,e,n,o){return e+r+n+o})}).replace(kl,r+" ")}return e+" "+t},t.prototype._applyStrictSelectorScope=function(t,e,n){var r=this;e=e.replace(/\[is=([^\]]*)\]/g,function(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];return e[0]});var o="["+e+"]",i=function(t){var i=t.trim();if(!i)return"";if(t.indexOf(Tl)>-1)i=r._applySimpleSelectorScope(t,e,n);else{var s=t.replace(kl,"");if(s.length>0){var a=s.match(/([^:]*)(:*)(.*)/);a&&(i=a[1]+o+a[2]+a[3])}}return i},s=new ml(t);t=s.content();for(var a,u="",c=0,l=/( |>|\+|~(?!=))\s*/g,p=t.indexOf(Tl);null!==(a=l.exec(t));){var h=a[1],f=t.slice(c,a.index).trim();u+=(c>=p?i(f):f)+" "+h+" ",c=l.lastIndex}return u+=i(t.substring(c)),s.restore(u)},t.prototype._insertPolyfillHostInCssText=function(t){return t.replace(Il,El).replace(Nl,wl)},t}(),ml=function(){function t(t){var e=this;this.placeholders=[],this.index=0,t=t.replace(/(\[[^\]]*\])/g,function(t,n){var r="__ph-"+e.index+"__";return e.placeholders.push(n),e.index++,r}),this._content=t.replace(/(:nth-[-\w]+)(\([^)]+\))/g,function(t,n,r){var o="__ph-"+e.index+"__";return e.placeholders.push(r),e.index++,n+o})}return t.prototype.restore=function(t){var e=this;return t.replace(/__ph-(\d+)__/g,function(t,n){return e.placeholders[+n]})},t.prototype.content=function(){return this._content},t}(),gl=/polyfill-next-selector[^}]*content:[\s]*?(['"])(.*?)\1[;\s]*}([^{]*?){/gim,_l=/(polyfill-rule)[^}]*(content:[\s]*(['"])(.*?)\3)[;\s]*[^}]*}/gim,bl=/(polyfill-unscoped-rule)[^}]*(content:[\s]*(['"])(.*?)\3)[;\s]*[^}]*}/gim,wl="-shadowcsshost",El="-shadowcsscontext",Cl=")(?:\\(((?:\\([^)(]*\\)|[^)(]*)+?)\\))?([^,{]*)",Sl=new RegExp("("+wl+Cl,"gim"),xl=new RegExp("("+El+Cl,"gim"),Tl=wl+"-no-combinator",Pl=/-shadowcsshost-no-combinator([^\s]*)/,Al=[/::shadow/g,/::content/g,/\/shadow-deep\//g,/\/shadow\//g],Ol=/(?:>>>)|(?:\/deep\/)/g,Ml="([>\\s~+[.,{:][\\s\\S]*)?$",kl=/-shadowcsshost/gim,Nl=/:host/gim,Il=/:host-context/gim,Rl=/\/\*\s*[\s\S]*?\*\//g,Dl=/\/\*\s*#\s*sourceMappingURL=[\s\S]+?\*\//,Vl=/(\s*)([^;\{\}]+?)(\s*)((?:{%BLOCK%}?\s*;?)|(?:\s*;))/g,Ll=/([{}])/g,Fl="{",jl="}",Hl="%BLOCK%",Ul=function(){function t(t,e){this.selector=t,this.content=e}return t}(),Bl=function(){function t(t,e){this.escapedString=t,this.blocks=e}return t}(),ql=function(){function t(t,e,n,r){this.name=t,this.moduleUrl=e,this.isShimmed=n,this.valuePlaceholder=r}return t}(),Gl=function(){function t(t,e){this.componentStylesheet=t,this.externalStylesheets=e}return t}(),zl=function(){function t(t,e,n,r,o){this.statements=t,this.stylesVar=e,this.dependencies=n,this.isShimmed=r,this.meta=o}return t}(),Wl=function(){function t(t){this._urlResolver=t,this._shadowCss=new vl}return t.prototype.compileComponent=function(t){var e=this,n=t.template,r=[],o=this._compileStyles(t,new Ro({styles:n.styles,styleUrls:n.styleUrls,moduleUrl:S(t.type)}),!0);return n.externalStylesheets.forEach(function(n){var o=e._compileStyles(t,n,!1);r.push(o)}),new Gl(o,r)},t.prototype._compileStyles=function(t,e,n){for(var r=this,o=t.template.encapsulation===Kr.ViewEncapsulation.Emulated,i=e.styles.map(function(t){return En(r._shimIfNeeded(t,o))}),s=[],a=0;a<e.styleUrls.length;a++){var u={reference:null};s.push(new ql(jn(null),e.styleUrls[a],o,u)),i.push(new uc(u))}var c=jn(n?t:null),l=dn(c).set(gn(i,new zu(Ku,[Hu.Const]))).toDeclStmt(null,[xc.Final]);return new zl([l],c,s,o,e)},t.prototype._shimIfNeeded=function(t,e){return e?this._shadowCss.shimCssText(t,"_ngcontent-%COMP%","_nghost-%COMP%"):t},t}();Wl.decorators=[{type:q}],Wl.ctorParameters=function(){return[{type:xu}]};/**
* @license
* Copyright Google Inc. All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
var Kl=function(){function t(){}return t}();Kl.event=dn("$event");var Ql=function(){function t(t,e){this.stmts=t,this.allowDefault=e}return t}(),Xl=function(){function t(t,e){this.stmts=t,this.currValExpr=e}return t}(),Zl={};Zl.Statement=0,Zl.Expression=1,Zl[Zl.Statement]="Statement",Zl[Zl.Expression]="Expression";var Yl=function(t){function e(e){var n=t.call(this)||this;return n._converterFactory=e,n}return Qr(e,t),e.prototype.visitPipe=function(t,e){var n=this,r=[t.exp].concat(t.args).map(function(t){return t.visit(n,e)});return new tp(t.span,r,this._converterFactory.createPipeConverter(t.name,r.length))},e.prototype.visitLiteralArray=function(t,e){var n=this,r=t.expressions.map(function(t){return t.visit(n,e)});return new tp(t.span,r,this._converterFactory.createLiteralArrayConverter(t.expressions.length))},e.prototype.visitLiteralMap=function(t,e){var n=this,r=t.values.map(function(t){return t.visit(n,e)});return new tp(t.span,r,this._converterFactory.createLiteralMapConverter(t.keys))},e}(di),$l=function(){function t(t,e,n){this._localResolver=t,this._implicitReceiver=e,this.bindingId=n,this._nodeMap=new Map,this._resultMap=new Map,this._currentTemporary=0,this.temporaryCount=0}return t.prototype.visitBinary=function(t,e){var n;switch(t.operation){case"+":n=Zu.Plus;break;case"-":n=Zu.Minus;break;case"*":n=Zu.Multiply;break;case"/":n=Zu.Divide;break;case"%":n=Zu.Modulo;break;case"&&":n=Zu.And;break;case"||":n=Zu.Or;break;case"==":n=Zu.Equals;break;case"!=":n=Zu.NotEquals;break;case"===":n=Zu.Identical;break;case"!==":n=Zu.NotIdentical;break;case"<":n=Zu.Lower;break;case">":n=Zu.Bigger;break;case"<=":n=Zu.LowerEquals;break;case">=":n=Zu.BiggerEquals;break;default:throw new Error("Unsupported operation "+t.operation)}return Xn(e,new dc(n,this.visit(t.left,Zl.Expression),this.visit(t.right,Zl.Expression)))},t.prototype.visitChain=function(t,e){return Kn(e,t),this.visitAll(t.expressions,e)},t.prototype.visitConditional=function(t,e){return Xn(e,this.visit(t.condition,Zl.Expression).conditional(this.visit(t.trueExp,Zl.Expression),this.visit(t.falseExp,Zl.Expression)))},t.prototype.visitPipe=function(t,e){throw new Error("Illegal state: Pipes should have been converted into functions. Pipe: "+t.name)},t.prototype.visitFunctionCall=function(t,e){var n,r=this.visitAll(t.args,Zl.Expression);return n=t instanceof tp?t.converter(r):this.visit(t.target,Zl.Expression).callFn(r),Xn(e,n)},t.prototype.visitImplicitReceiver=function(t,e){return Qn(e,t),this._implicitReceiver},t.prototype.visitInterpolation=function(t,e){Qn(e,t);for(var n=[En(t.expressions.length)],r=0;r<t.strings.length-1;r++)n.push(En(t.strings[r])),n.push(this.visit(t.expressions[r],Zl.Expression));return n.push(En(t.strings[t.strings.length-1])),t.expressions.length<=9?yn(he(Ia.inlineInterpolate)).callFn(n):yn(he(Ia.interpolate)).callFn([n[0],gn(n.slice(1))])},t.prototype.visitKeyedRead=function(t,e){var n=this.leftMostSafeNode(t);return n?this.convertSafeAccess(t,n,e):Xn(e,this.visit(t.obj,Zl.Expression).key(this.visit(t.key,Zl.Expression)))},t.prototype.visitKeyedWrite=function(t,e){var n=this.visit(t.obj,Zl.Expression),r=this.visit(t.key,Zl.Expression),o=this.visit(t.value,Zl.Expression);return Xn(e,n.key(r).set(o))},t.prototype.visitLiteralArray=function(t,e){throw new Error("Illegal State: literal arrays should have been converted into functions")},t.prototype.visitLiteralMap=function(t,e){throw new Error("Illegal State: literal maps should have been converted into functions")},t.prototype.visitLiteralPrimitive=function(t,e){return Xn(e,En(t.value))},t.prototype._getLocal=function(t){return this._localResolver.getLocal(t)},t.prototype.visitMethodCall=function(t,e){var n=this.leftMostSafeNode(t);if(n)return this.convertSafeAccess(t,n,e);var r=this.visitAll(t.args,Zl.Expression),o=null,i=this.visit(t.receiver,Zl.Expression);if(i===this._implicitReceiver){var s=this._getLocal(t.name);s&&(o=s.callFn(r))}return null==o&&(o=i.callMethod(t.name,r)),Xn(e,o)},t.prototype.visitPrefixNot=function(t,e){return Xn(e,bn(this.visit(t.expression,Zl.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,Zl.Expression);return o===this._implicitReceiver&&(r=this._getLocal(t.name)),null==r&&(r=o.prop(t.name)),Xn(e,r)},t.prototype.visitPropertyWrite=function(t,e){var n=this.visit(t.receiver,Zl.Expression);if(n===this._implicitReceiver){if(this._getLocal(t.name))throw new Error("Cannot assign to a reference or variable!")}return Xn(e,n.prop(t.name).set(this.visit(t.value,Zl.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(t,e){throw new Error("Quotes are not supported for evaluation!\n Statement: "+t.uninterpretedExpression+" located at "+t.location)},t.prototype.visit=function(t,e){var n=this._resultMap.get(t);return n||(this._nodeMap.get(t)||t).visit(this,e)},t.prototype.convertSafeAccess=function(t,e,n){var r=this.visit(e.receiver,Zl.Expression),o=void 0;this.needsTemporary(e.receiver)&&(o=this.allocateTemporary(),r=o.set(r),this._resultMap.set(e.receiver,o));var i=r.isBlank();e instanceof ci?this._nodeMap.set(e,new ui(e.span,e.receiver,e.name,e.args)):this._nodeMap.set(e,new Zo(e.span,e.receiver,e.name));var s=this.visit(t,Zl.Expression);return this._nodeMap.delete(e),o&&this.releaseTemporary(o),Xn(n,i.conditional(En(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(t){return null},visitChain:function(t){return null},visitConditional:function(t){return null},visitFunctionCall:function(t){return null},visitImplicitReceiver:function(t){return null},visitInterpolation:function(t){return null},visitKeyedRead:function(t){return n(this,t.obj)},visitKeyedWrite:function(t){return null},visitLiteralArray:function(t){return null},visitLiteralMap:function(t){return null},visitLiteralPrimitive:function(t){return null},visitMethodCall:function(t){return n(this,t.receiver)},visitPipe:function(t){return null},visitPrefixNot:function(t){return null},visitPropertyRead:function(t){return n(this,t.receiver)},visitPropertyWrite:function(t){return null},visitQuote:function(t){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(t){return!1},visitConditional:function(t){return n(this,t.condition)||n(this,t.trueExp)||n(this,t.falseExp)},visitFunctionCall:function(t){return!0},visitImplicitReceiver:function(t){return!1},visitInterpolation:function(t){return r(this,t.expressions)},visitKeyedRead:function(t){return!1},visitKeyedWrite:function(t){return!1},visitLiteralArray:function(t){return!0},visitLiteralMap:function(t){return!0},visitLiteralPrimitive:function(t){return!1},visitMethodCall:function(t){return!0},visitPipe:function(t){return!0},visitPrefixNot:function(t){return n(this,t.expression)},visitPropertyRead:function(t){return!1},visitPropertyWrite:function(t){return!1},visitQuote:function(t){return!1},visitSafeMethodCall:function(t){return!0},visitSafePropertyRead:function(t){return!1}})},t.prototype.allocateTemporary=function(){var t=this._currentTemporary++;return this.temporaryCount=Math.max(this._currentTemporary,this.temporaryCount),new Ju(Gn(this.bindingId,t))},t.prototype.releaseTemporary=function(t){if(this._currentTemporary--,t.name!=Gn(this.bindingId,this._currentTemporary))throw new Error("Temporary "+t.name+" released out of order")},t}(),Jl=function(){function t(){}return t.prototype.getLocal=function(t){return t===Kl.event.name?Kl.event:null},t}(),tp=function(t){function e(e,n,r){var o=t.call(this,e,null,n)||this;return o.args=n,o.converter=r,o}return Qr(e,t),e}(li),ep="class",np="style",rp=function(){function t(t,e,n){this.statements=t,this.viewClassVar=e,this.rendererTypeVar=n}return t}(),op=function(){function t(t,e){this._genConfigNext=t,this._schemaRegistry=e}return t.prototype.compileComponent=function(t,e,n,r){var o=0,i=hr(e),s=[],a=void 0;if(!t.isHost){var u=t.template,c=[];u.animations&&u.animations.length&&c.push(new gc("animation",xn(u.animations),!0));var l=dn(T(t.type.reference));a=l.name,s.push(l.set(yn(he(Ia.createRendererType2)).callFn([new _c([new gc("encapsulation",En(u.encapsulation)),new gc("styles",n),new gc("data",new _c(c))])])).toDeclStmt(vn(he(Ia.RendererType2)),[xc.Final]))}var p=function(e){var n=o++;return new pp(e,t,n,r,i,p)},h=p(null);return h.visitAll([],e),s.push.apply(s,h.build()),new rp(s,h.viewName,a)},t}();op.decorators=[{type:q}],op.ctorParameters=function(){return[{type:Uo},{type:Ba}]};var ip=dn("l"),sp=dn("v"),ap=dn("ck"),up=dn("co"),cp=dn("en"),lp=dn("ad"),pp=function(){function t(t,e,n,r,o,i){this.parent=t,this.component=e,this.embeddedViewIndex=n,this.usedPipes=r,this.staticQueryIds=o,this.viewBuilderFactory=i,this.nodes=[],this.purePipeNodeIndices=Object.create(null),this.refNodeIndices=Object.create(null),this.variables=[],this.children=[],this.compType=this.embeddedViewIndex>0?Ku:vn(this.component.type)}return Object.defineProperty(t.prototype,"viewName",{get:function(){return x(this.component.type.reference,this.embeddedViewIndex)},enumerable:!0,configurable:!0}),t.prototype.visitAll=function(t,e){var n=this;if(this.variables=t,this.parent||this.usedPipes.forEach(function(t){t.pure&&(n.purePipeNodeIndices[t.name]=n._createPipe(null,t))}),!this.parent){var o=fr(this.staticQueryIds);this.component.viewQueries.forEach(function(t,e){var r=e+1,i=t.first?0:1,s=67108864|vr(o,r,t.first);n.nodes.push(function(){return{sourceSpan:null,nodeFlags:s,nodeDef:yn(he(Ia.queryDef)).callFn([En(s),En(r),new _c([new gc(t.propertyName,En(i))])])}})})}r(this,e),this.parent&&(0===e.length||ir(e))&&this.nodes.push(function(){return{sourceSpan:null,nodeFlags:1,nodeDef:yn(he(Ia.anchorDef)).callFn([En(0),Cc,Cc,En(0)])}})},t.prototype.build=function(t){void 0===t&&(t=[]),this.children.forEach(function(e){return e.build(t)});var e=this._createNodeExpressions(),n=e.updateRendererStmts,r=e.updateDirectivesStmts,o=e.nodeDefExprs,i=this._createUpdateFn(n),s=this._createUpdateFn(r),a=0;this.parent||this.component.changeDetection!==Kr.ChangeDetectionStrategy.OnPush||(a|=2);var u=new Ac(this.viewName,[new hc(ip.name)],[new Mc(yn(he(Ia.viewDef)).callFn([En(a),gn(o),s,i]))],vn(he(Ia.ViewDefinition)));return t.push(u),t},t.prototype._createUpdateFn=function(t){var e;if(t.length>0){var n=[];!this.component.isHost&&pn(t).has(up.name)&&n.push(up.set(sp.prop("component")).toDeclStmt(this.compType)),e=wn([new hc(ap.name,Qu),new hc(sp.name,Qu)],n.concat(t),Qu)}else e=Cc;return e},t.prototype.visitNgContent=function(t,e){this.nodes.push(function(){return{sourceSpan:t.sourceSpan,nodeFlags:4,nodeDef:yn(he(Ia.ngContentDef)).callFn([En(t.ngContentIndex),En(t.index)])}})},t.prototype.visitText=function(t,e){this.nodes.push(function(){return{sourceSpan:t.sourceSpan,nodeFlags:2,nodeDef:yn(he(Ia.textDef)).callFn([En(t.ngContentIndex),gn([En(t.value)])])}})},t.prototype.visitBoundText=function(t,e){var n=this,r=this.nodes.length;this.nodes.push(null);var o=t.value,i=o.ast,s=i.expressions.map(function(e,o){return n._preprocessUpdateExpression({nodeIndex:r,bindingIndex:o,sourceSpan:t.sourceSpan,context:up,value:e})});this.nodes[r]=function(){return{sourceSpan:t.sourceSpan,nodeFlags:2,nodeDef:yn(he(Ia.textDef)).callFn([En(t.ngContentIndex),gn(i.strings.map(function(t){return En(t)}))]),updateRenderer:s}}},t.prototype.visitEmbeddedTemplate=function(t,e){var n=this,r=this.nodes.length;this.nodes.push(null);var o=this._visitElementOrTemplate(r,t),i=o.flags,s=o.queryMatchesExpr,a=o.hostEvents,u=this.viewBuilderFactory(this);this.children.push(u),u.visitAll(t.variables,t.children);var c=this.nodes.length-r-1;this.nodes[r]=function(){return{sourceSpan:t.sourceSpan,nodeFlags:1|i,nodeDef:yn(he(Ia.anchorDef)).callFn([En(i),s,En(t.ngContentIndex),En(c),n._createElementHandleEventFn(r,a),dn(u.viewName)])}}},t.prototype.visitElement=function(t,e){var n=this,o=this.nodes.length;this.nodes.push(null);var s=i(t.name)?null:t.name,a=this._visitElementOrTemplate(o,t),u=a.flags,c=a.usedEvents,l=a.queryMatchesExpr,p=a.hostBindings,h=a.hostEvents,f=[],d=[],y=[];if(s){var v=t.inputs.map(function(t){return{context:up,inputAst:t,dirAst:null}}).concat(p);v.length&&(d=v.map(function(t,e){return n._preprocessUpdateExpression({context:t.context,nodeIndex:o,bindingIndex:e,sourceSpan:t.inputAst.sourceSpan,value:t.inputAst.value})}),f=v.map(function(t){return ar(t.inputAst,t.dirAst)})),y=c.map(function(t){var e=t[0],n=t[1];return gn([En(e),En(n)])})}r(this,t.children);var m=this.nodes.length-o-1,g=t.directives.find(function(t){return t.directive.isComponent}),_=Cc,b=Cc;g&&(b=yn({reference:g.directive.componentViewType}),_=yn({reference:g.directive.rendererType})),this.nodes[o]=function(){return{sourceSpan:t.sourceSpan,nodeFlags:1|u,nodeDef:yn(he(Ia.elementDef)).callFn([En(u),l,En(t.ngContentIndex),En(m),En(s),s?ur(t):Cc,f.length?gn(f):Cc,y.length?gn(y):Cc,n._createElementHandleEventFn(o,h),b,_]),updateRenderer:d}}},t.prototype._visitElementOrTemplate=function(t,e){var r=this,o=0;e.hasViewContainer&&(o|=8388608);var i=new Map;e.outputs.forEach(function(t){var e=yr(t,null),r=e.name,o=e.target;i.set(n.i(Kr["ɵelementEventFullName"])(o,r),[o,r])}),e.directives.forEach(function(t){t.hostEvents.forEach(function(e){var r=yr(e,t),o=r.name,s=r.target;i.set(n.i(Kr["ɵelementEventFullName"])(s,o),[s,o])})});var s=[],a=[],u=dr(e.directives);u&&this._visitProvider(u,e.queryMatches),e.providers.forEach(function(n,o){var u=void 0,c=void 0;if(e.directives.forEach(function(t,e){t.directive.type.reference===M(n.token)&&(u=t,c=e)}),u){var l=r._visitDirective(n,u,c,t,e.references,e.queryMatches,i,r.staticQueryIds.get(e)),p=l.hostBindings,h=l.hostEvents;s.push.apply(s,p),a.push.apply(a,h)}else r._visitProvider(n,e.queryMatches)});var c=[];return e.queryMatches.forEach(function(t){var e=void 0;M(t.value)===pe(Ia.ElementRef)?e=0:M(t.value)===pe(Ia.ViewContainerRef)?e=3:M(t.value)===pe(Ia.TemplateRef)&&(e=2),null!=e&&c.push(gn([En(t.queryId),En(e)]))}),e.references.forEach(function(e){var n=void 0;e.value?M(e.value)===pe(Ia.TemplateRef)&&(n=2):n=1,null!=n&&(r.refNodeIndices[e.name]=t,c.push(gn([En(e.name),En(n)])))}),e.outputs.forEach(function(t){a.push({context:up,eventAst:t,dirAst:null})}),{flags:o,usedEvents:Array.from(i.values()),queryMatchesExpr:c.length?gn(c):Cc,hostBindings:s,hostEvents:a}},t.prototype._visitDirective=function(t,e,n,r,o,i,s,a){var u=this,c=this.nodes.length;this.nodes.push(null),e.directive.queries.forEach(function(t,n){var r=e.contentQueryStartId+n,o=33554432|vr(a,r,t.first),i=t.first?0:1;u.nodes.push(function(){return{sourceSpan:e.sourceSpan,nodeFlags:o,nodeDef:yn(he(Ia.queryDef)).callFn([En(o),En(r),new _c([new gc(t.propertyName,En(i))])])}})});var l=this.nodes.length-c-1,p=this._visitProviderOrDirective(t,i),h=p.flags,f=p.queryMatchExprs,d=p.providerExpr,y=p.depsExpr;o.forEach(function(e){e.value&&M(e.value)===M(t.token)&&(u.refNodeIndices[e.name]=c,f.push(gn([En(e.name),En(4)])))}),e.directive.isComponent&&(h|=16384);var v=e.inputs.map(function(t,e){var n=gn([En(e),En(t.directiveName)]);return new gc(t.directiveName,n,!1)}),m=[],g=e.directive;Object.keys(g.outputs).forEach(function(t){var e=g.outputs[t];s.has(e)&&m.push(new gc(t,En(e),!1))});var _=[];(e.inputs.length||(163840&h)>0)&&(_=e.inputs.map(function(t,e){return u._preprocessUpdateExpression({nodeIndex:c,bindingIndex:e,sourceSpan:t.sourceSpan,context:up,value:t.value})}));var b=yn(he(Ia.nodeValue)).callFn([sp,En(c)]),w=e.hostProperties.map(function(t){return{context:b,dirAst:e,inputAst:t}}),E=e.hostEvents.map(function(t){return{context:b,eventAst:t,dirAst:e}});return this.nodes[c]=function(){return{sourceSpan:e.sourceSpan,nodeFlags:8192|h,nodeDef:yn(he(Ia.directiveDef)).callFn([En(h),f.length?gn(f):Cc,En(l),d,y,v.length?new _c(v):Cc,m.length?new _c(m):Cc]),updateDirectives:_,directive:e.directive.type}},{hostBindings:w,hostEvents:E}},t.prototype._visitProvider=function(t,e){var n=this.nodes.length;this.nodes.push(null);var r=this._visitProviderOrDirective(t,e),o=r.flags,i=r.queryMatchExprs,s=r.providerExpr,a=r.depsExpr;this.nodes[n]=function(){return{sourceSpan:t.sourceSpan,nodeFlags:o,nodeDef:yn(he(Ia.providerDef)).callFn([En(o),i.length?gn(i):Cc,rr(t.token),s,a])}}},t.prototype._visitProviderOrDirective=function(t,e){var n=0;t.eager||(n|=2048),t.providerType===ao.PrivateService&&(n|=4096),t.lifecycleHooks.forEach(function(e){e!==Kr["ɵLifecycleHooks"].OnDestroy&&t.providerType!==ao.Directive&&t.providerType!==ao.Component||(n|=sr(e))});var r=[];e.forEach(function(e){M(e.value)===M(t.token)&&r.push(gn([En(e.queryId),En(4)]))});var o=tr(t),i=o.providerExpr,s=o.depsExpr,a=o.flags;return{flags:n|a,queryMatchExprs:r,providerExpr:i,depsExpr:s}},t.prototype.getLocal=function(t){if(t==Kl.event.name)return Kl.event;for(var e=sp,n=this;n;n=n.parent,e=e.prop("parent").cast(Ku)){var r=n.refNodeIndices[t];if(null!=r)return yn(he(Ia.nodeValue)).callFn([e,En(r)]);var o=n.variables.find(function(e){return e.name===t});if(o){var i=o.value||"$implicit";return e.prop("context").prop(i)}}return null},t.prototype.createLiteralArrayConverter=function(t,e){if(0===e){var n=yn(he(Ia.EMPTY_ARRAY));return function(){return n}}var r=this.nodes.length;return this.nodes.push(function(){return{sourceSpan:t,nodeFlags:16,nodeDef:yn(he(Ia.pureArrayDef)).callFn([En(e)])}}),function(t){return lr(r,t)}},t.prototype.createLiteralMapConverter=function(t,e){if(0===e.length){var n=yn(he(Ia.EMPTY_MAP));return function(){return n}}var r=this.nodes.length;return this.nodes.push(function(){return{sourceSpan:t,nodeFlags:32,nodeDef:yn(he(Ia.pureObjectDef)).callFn([gn(e.map(function(t){return En(t)}))])}}),function(t){return lr(r,t)}},t.prototype.createPipeConverter=function(t,e,n){var r=this.usedPipes.find(function(t){return t.name===e});if(r.pure){var o=this.nodes.length;this.nodes.push(function(){return{sourceSpan:t.sourceSpan,nodeFlags:64,nodeDef:yn(he(Ia.purePipeDef)).callFn([En(n)])}});for(var i=sp,s=this;s.parent;)s=s.parent,i=i.prop("parent").cast(Ku);var a=s.purePipeNodeIndices[e],u=yn(he(Ia.nodeValue)).callFn([i,En(a)]);return function(e){return pr(t.nodeIndex,t.bindingIndex,lr(o,[u].concat(e)))}}var c=this._createPipe(t.sourceSpan,r),l=yn(he(Ia.nodeValue)).callFn([sp,En(c)]);return function(e){return pr(t.nodeIndex,t.bindingIndex,l.callMethod("transform",e))}},t.prototype._createPipe=function(t,e){var n=this.nodes.length,r=0;e.type.lifecycleHooks.forEach(function(t){t===Kr["ɵLifecycleHooks"].OnDestroy&&(r|=sr(t))});var o=e.type.diDeps.map(or);return this.nodes.push(function(){return{sourceSpan:t,nodeFlags:8,nodeDef:yn(he(Ia.pipeDef)).callFn([En(r),yn(e.type),gn(o)])}}),n},t.prototype._preprocessUpdateExpression=function(t){var e=this;return{nodeIndex:t.nodeIndex,bindingIndex:t.bindingIndex,sourceSpan:t.sourceSpan,context:t.context,value:Un({createLiteralArrayConverter:function(n){return e.createLiteralArrayConverter(t.sourceSpan,n)},createLiteralMapConverter:function(n){return e.createLiteralMapConverter(t.sourceSpan,n)},createPipeConverter:function(n,r){return e.createPipeConverter(t,n,r)}},t.value)}},t.prototype._createNodeExpressions=function(){function t(t,r,o,i){var s=[],a=o.map(function(t){var r=t.sourceSpan,o=t.context,i=t.value,a=""+n++,u=o===up?e:null,c=Bn(u,o,i,a),l=c.stmts,p=c.currValExpr;return s.push.apply(s,l.map(function(t){return hn(t,r)})),fn(p,r)});return(o.length||i)&&s.push(hn(lr(t,a).toStmt(),r)),s}var e=this,n=0,r=[],o=[],i=this.nodes.map(function(e,n){var i=e(),s=i.nodeDef,a=i.nodeFlags,u=i.updateDirectives,c=i.updateRenderer,l=i.sourceSpan;return c&&r.push.apply(r,t(n,l,c,!1)),u&&o.push.apply(o,t(n,l,u,(163840&a)>0)),fn(3&a?new bc([ip.callFn([]).callFn([]),s]):s,l)});return{updateRendererStmts:r,updateDirectivesStmts:o,nodeDefExprs:i}},t.prototype._createElementHandleEventFn=function(t,e){var r=this,o=[],i=0;e.forEach(function(t){var e=t.context,s=t.eventAst,a=t.dirAst,u=""+i++,c=e===up?r:null,l=Hn(c,e,s.handler,u),p=l.stmts,h=l.allowDefault,f=p;h&&f.push(lp.set(h.and(lp)).toStmt());var d=yr(s,a),y=d.target,v=d.name,m=n.i(Kr["ɵelementEventFullName"])(y,v);o.push(hn(new Vc(En(m).identical(cp),f),s.sourceSpan))});var s;if(o.length>0){var a=[lp.set(En(!0)).toDeclStmt(Xu)];!this.component.isHost&&pn(o).has(up.name)&&a.push(up.set(sp.prop("component")).toDeclStmt(this.compType)),s=wn([new hc(sp.name,Qu),new hc(cp.name,Qu),new hc(Kl.event.name,Qu)],a.concat(o,[new Mc(lp)]),Qu)}else s=Cc;return s},t.prototype.visitDirective=function(t,e){},t.prototype.visitDirectiveProperty=function(t,e){},t.prototype.visitReference=function(t,e){},t.prototype.visitVariable=function(t,e){},t.prototype.visitEvent=function(t,e){},t.prototype.visitElementProperty=function(t,e){},t.prototype.visitAttr=function(t,e){},t}(),hp=function(){function t(t,e,n){this.srcFileUrl=t,this.genFileUrl=e,this.source=n}return t}(),fp=function(t){function e(e,n){var r=t.call(this)||this;return r.symbolResolver=e,r.summaryResolver=n,r.symbols=[],r.indexBySymbol=new Map,r.processedSummaryBySymbol=new Map,r.processedSummaries=[],r}return Qr(e,t),e.prototype.addOrMergeSummary=function(t){var e=t.metadata;if(e&&"class"===e.__symbolic){var n={};Object.keys(e).forEach(function(t){"decorators"!==t&&(n[t]=e[t])}),e=n}var r=this.processedSummaryBySymbol.get(t.symbol);r||(r=this.processValue({symbol:t.symbol}),this.processedSummaries.push(r),this.processedSummaryBySymbol.set(t.symbol,r)),null==r.metadata&&null!=e&&(r.metadata=this.processValue(e)),null==r.type&&null!=t.type&&(r.type=this.processValue(t.type))},e.prototype.serialize=function(){var t=this,e=[];return{json:JSON.stringify({summaries:this.processedSummaries,symbols:this.symbols.map(function(n,r){n.assertNoMembers();var o=void 0;return t.summaryResolver.isLibraryFile(n.filePath)&&(o=n.name+"_"+r,e.push({symbol:n,exportAs:o})),{__symbol:r,name:n.name,filePath:t.summaryResolver.getLibraryFileName(n.filePath),importAs:o}})}),exportAs:e}},e.prototype.processValue=function(t){return y(t,this,null)},e.prototype.visitOther=function(t,e){if(t instanceof lo){var n=this.symbolResolver.getStaticSymbol(t.filePath,t.name),r=this.indexBySymbol.get(n);return null==r&&(r=this.indexBySymbol.size,this.indexBySymbol.set(n,r),this.symbols.push(n)),{__symbol:r,members:t.members}}},e}(xo),dp=function(t){function e(e){var n=t.call(this)||this;return n.symbolCache=e,n}return Qr(e,t),e.prototype.deserialize=function(t){var e=this,n=JSON.parse(t),r=[];return this.symbols=[],n.symbols.forEach(function(t){var n=e.symbolCache.get(t.filePath,t.name);e.symbols.push(n),t.importAs&&r.push({symbol:n,importAs:t.importAs})}),{summaries:y(n.summaries,this,null),importAs:r}},e.prototype.visitStringMap=function(e,n){if("__symbol"in e){var r=this.symbols[e.__symbol],o=e.members;return o.length?this.symbolCache.get(r.filePath,r.name,o):r}return t.prototype.visitStringMap.call(this,e,n)},e}(xo),yp=(function(){function t(t,e,n,r,o,i,s,a,u,c,l,p,h){this._config=t,this._host=e,this._metadataResolver=n,this._templateParser=r,this._styleCompiler=o,this._viewCompiler=i,this._ngModuleCompiler=s,this._outputEmitter=a,this._summaryResolver=u,this._localeId=c,this._translationFormat=l,this._genFilePreamble=p,this._symbolResolver=h}t.prototype.clearCache=function(){this._metadataResolver.clearCache()},t.prototype.compileAll=function(t){var e=this,n=xr(this._symbolResolver,t,this._host),r=Cr(n,this._host,this._metadataResolver),o=r.ngModuleByPipeOrDirective,i=r.files,s=r.ngModules;return Promise.all(s.map(function(t){return e._metadataResolver.loadNgModuleDirectiveAndPipeMetadata(t.type.reference,!1)})).then(function(){return I(i.map(function(t){return e._compileSrcFile(t.srcUrl,o,t.directives,t.pipes,t.ngModules,t.injectables)}))})},t.prototype._compileSrcFile=function(t,e,n,r,o,i){var s=this,a=Ze(t)[1],u=[],c=[],l=[];if(l.push(this._createSummary(t,n,r,o,i,u,c)),c.push.apply(c,o.map(function(t){return s._compileModule(t,u)})),n.forEach(function(n){var r=s._metadataResolver.getDirectiveMetadata(n);if(!r.isComponent)return Promise.resolve(null);var o=e.get(n);if(!o)throw new Error("Internal Error: cannot determine the module for component "+C(r.type)+"!");wr(r);var i=s._styleCompiler.compileComponent(r);i.externalStylesheets.forEach(function(e){l.push(s._codgenStyles(t,e,a))});var p=s._compileComponent(r,o,o.transitiveModule.directives,i.componentStylesheet,a,u);c.push(s._compileComponentFactory(r,o,a,u),p.viewClassVar,p.compRenderTypeVar)}),u.length>0){var p=this._codegenSourceModule(t,Ke(t),u,c);l.unshift(p)}return l},t.prototype._createSummary=function(t,e,n,r,o,i,s){var a=this,u=this._symbolResolver.getSymbolsOf(t).map(function(t){return a._symbolResolver.resolveSymbol(t)}),c=r.map(function(t){return a._metadataResolver.getNgModuleSummary(t)}).concat(e.map(function(t){return a._metadataResolver.getDirectiveSummary(t)}),n.map(function(t){return a._metadataResolver.getPipeSummary(t)}),o.map(function(t){return a._metadataResolver.getInjectableSummary(t)})),l=mr(this._summaryResolver,this._symbolResolver,u,c),p=l.json;return l.exportAs.forEach(function(t){i.push(dn(t.exportAs).set(yn({reference:t.symbol})).toDeclStmt()),s.push(t.exportAs)}),new hp(t,Ye(t),p)},t.prototype._compileModule=function(t,e){var n=this._metadataResolver.getNgModuleMetadata(t),r=[];this._localeId&&r.push({token:de(Ia.LOCALE_ID),useValue:this._localeId}),this._translationFormat&&r.push({token:de(Ia.TRANSLATIONS_FORMAT),useValue:this._translationFormat});var o=this._ngModuleCompiler.compile(n,r);return e.push.apply(e,o.statements),o.ngModuleFactoryVar},t.prototype._compileComponentFactory=function(t,e,n,r){var o=this._metadataResolver.getHostComponentType(t.type.reference),i=k(o,t,this._metadataResolver.getHostComponentViewClass(o)),s=this._compileComponent(i,e,[t.type],null,n,r).viewClassVar,a=A(t.type.reference),u=[];for(var c in t.inputs){var l=t.inputs[c];u.push(new gc(c,En(l),!1))}var p=[];for(var c in t.outputs){var l=t.outputs[c];p.push(new gc(c,En(l),!1))}return r.push(dn(a).set(yn(he(Ia.createComponentFactory)).callFn([En(t.selector),yn(t.type),dn(s),new _c(u),new _c(p),gn(t.template.ngContentSelectors.map(function(t){return En(t)}))])).toDeclStmt(vn(he(Ia.ComponentFactory),[vn(t.type)],[Hu.Const]),[xc.Final])),a},t.prototype._compileComponent=function(t,e,n,r,o,i){var s=this,a=n.map(function(t){return s._metadataResolver.getDirectiveSummary(t.reference)}),u=e.transitiveModule.pipes.map(function(t){return s._metadataResolver.getPipeSummary(t.reference)}),c=this._templateParser.parse(t,t.template.template,a,u,e.schemas,D(e.type,t,t.template)),l=c.template,p=c.pipes,h=r?dn(r.stylesVar):gn([]),f=this._viewCompiler.compileComponent(t,l,h,p);return r&&i.push.apply(i,_r(this._symbolResolver,r,o)),i.push.apply(i,f.statements),{viewClassVar:f.viewClassVar,compRenderTypeVar:f.rendererTypeVar}},t.prototype._codgenStyles=function(t,e,n){return _r(this._symbolResolver,e,n),this._codegenSourceModule(t,br(e.meta.moduleUrl,e.isShimmed,n),e.statements,[e.stylesVar])},t.prototype._codegenSourceModule=function(t,e,n,r){return new hp(t,e,this._outputEmitter.emitStatements(R(t),e,n,r,this._genFilePreamble))}}(),function(){function t(t){this.staticDelegate=t,this.dynamicDelegate=new Kr["ɵReflectionCapabilities"]}return t.install=function(e){Kr["ɵreflector"].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 Pr(t)?this.staticDelegate.hasLifecycleHook(t,e):this.dynamicDelegate.hasLifecycleHook(t,e)},t.prototype.parameters=function(t){return Pr(t)?this.staticDelegate.parameters(t):this.dynamicDelegate.parameters(t)},t.prototype.annotations=function(t){return Pr(t)?this.staticDelegate.annotations(t):this.dynamicDelegate.annotations(t)},t.prototype.propMetadata=function(t){return Pr(t)?this.staticDelegate.propMetadata(t):this.dynamicDelegate.propMetadata(t)},t.prototype.getter=function(t){return this.dynamicDelegate.getter(t)},t.prototype.setter=function(t){return this.dynamicDelegate.setter(t)},t.prototype.method=function(t){return this.dynamicDelegate.method(t)},t.prototype.importUri=function(t){return this.staticDelegate.importUri(t)},t.prototype.resourceUri=function(t){return this.staticDelegate.resourceUri(t)},t.prototype.resolveIdentifier=function(t,e,n,r){return this.staticDelegate.resolveIdentifier(t,e,n)},t.prototype.resolveEnum=function(t,e){return Pr(t)?this.staticDelegate.resolveEnum(t,e):null},t}()),vp="@angular/core",mp=/^\$.*\$$/,gp={__symbolic:"ignore"},_p=function(){function t(t,e,n,r,o){void 0===n&&(n=[]),void 0===r&&(r=[]);var i=this;this.summaryResolver=t,this.symbolResolver=e,this.errorRecorder=o,this.annotationCache=new Map,this.propertyCache=new Map,this.parameterCache=new Map,this.methodCache=new Map,this.conversionMap=new Map,this.annotationForParentClassWithSummaryKind=new Map,this.annotationNames=new Map,this.initializeConversionMap(),n.forEach(function(t){return i._registerDecoratorOrConstructor(i.getStaticSymbol(t.filePath,t.name),t.ctor)}),r.forEach(function(t){return i._registerFunction(i.getStaticSymbol(t.filePath,t.name),t.fn)}),this.annotationForParentClassWithSummaryKind.set(Io.Directive,[Kr.Directive,Kr.Component]),this.annotationForParentClassWithSummaryKind.set(Io.Pipe,[Kr.Pipe]),this.annotationForParentClassWithSummaryKind.set(Io.NgModule,[Kr.NgModule]),this.annotationForParentClassWithSummaryKind.set(Io.Injectable,[Kr.Injectable,Kr.Pipe,Kr.Directive,Kr.Component,Kr.NgModule]),this.annotationNames.set(Kr.Directive,"Directive"),this.annotationNames.set(Kr.Component,"Component"),this.annotationNames.set(Kr.Pipe,"Pipe"),this.annotationNames.set(Kr.NgModule,"NgModule"),this.annotationNames.set(Kr.Injectable,"Injectable")}return t.prototype.importUri=function(t){var e=this.findSymbolDeclaration(t);return e?e.filePath:null},t.prototype.resourceUri=function(t){var e=this.findSymbolDeclaration(t);return this.symbolResolver.getResourcePath(e)},t.prototype.resolveIdentifier=function(t,e,n){var r=this.getStaticSymbol(e,t),o=this.findDeclaration(e,t);return r!=o&&this.symbolResolver.recordImportAs(o,r),n&&n.length?this.getStaticSymbol(o.filePath,o.name,n):o},t.prototype.findDeclaration=function(t,e,n){return this.findSymbolDeclaration(this.symbolResolver.getSymbolByModule(t,e,n))},t.prototype.findSymbolDeclaration=function(t){var e=this.symbolResolver.resolveSymbol(t);return e&&e.metadata instanceof lo?this.findSymbolDeclaration(e.metadata):t},t.prototype.resolveEnum=function(t,e){var n=t,r=(n.members||[]).concat(e);return this.getStaticSymbol(n.filePath,n.name,r)},t.prototype.annotations=function(t){var e=this,n=this.annotationCache.get(t);if(!n){n=[];var r=this.getTypeMetadata(t),o=this.findParentType(t,r);if(o){var i=this.annotations(o);n.push.apply(n,i)}var s=[];if(r.decorators&&(s=this.simplify(t,r.decorators),n.push.apply(n,s)),o&&!this.summaryResolver.isLibraryFile(t.filePath)&&this.summaryResolver.isLibraryFile(o.filePath)){var a=this.summaryResolver.resolveSummary(o);if(a&&a.type){var u=this.annotationForParentClassWithSummaryKind.get(a.type.summaryKind);u.some(function(t){return s.some(function(e){return e instanceof t})})||this.reportError(g("Class "+t.name+" in "+t.filePath+" extends from a "+Io[a.type.summaryKind]+" in another compilation unit without duplicating the decorator. Please add a "+u.map(function(t){return e.annotationNames.get(t)}).join(" or ")+" decorator to the class."),t)}}this.annotationCache.set(t,n.filter(function(t){return!!t}))}return n},t.prototype.propMetadata=function(t){var e=this,n=this.propertyCache.get(t);if(!n){var r=this.getTypeMetadata(t);n={};var o=this.findParentType(t,r);if(o){var i=this.propMetadata(o);Object.keys(i).forEach(function(t){n[t]=i[t]})}var s=r.members||{};Object.keys(s).forEach(function(r){var o=s[r],i=o.find(function(t){return"property"==t.__symbolic||"method"==t.__symbolic}),a=[];n[r]&&a.push.apply(a,n[r]),n[r]=a,i&&i.decorators&&a.push.apply(a,e.simplify(t,i.decorators))}),this.propertyCache.set(t,n)}return n},t.prototype.parameters=function(t){if(!(t instanceof lo))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=this.findParentType(t,n),o=n?n.members:null,i=o?o.__ctor__:null;if(i){var s=i.find(function(t){return"constructor"==t.__symbolic}),a=this.simplify(t,s.parameters||[]),u=this.simplify(t,s.parameterDecorators||[]);e=[],a.forEach(function(t,n){var r=[];t&&r.push(t);var o=u?u[n]:null;o&&r.push.apply(r,o),e.push(r)})}else r&&(e=this.parameters(r));e||(e=[]),this.parameterCache.set(t,e)}return e}catch(e){throw console.error("Failed on type "+JSON.stringify(t)+" with error "+e),e}},t.prototype._methodNames=function(t){var e=this.methodCache.get(t);if(!e){var n=this.getTypeMetadata(t);e={};var r=this.findParentType(t,n);if(r){var o=this._methodNames(r);Object.keys(o).forEach(function(t){e[t]=o[t]})}var i=n.members||{};Object.keys(i).forEach(function(t){var n=i[t],r=n.some(function(t){return"method"==t.__symbolic});e[t]=e[t]||r}),this.methodCache.set(t,e)}return e},t.prototype.findParentType=function(t,e){var n=this.trySimplify(t,e.extends);if(n instanceof lo)return n},t.prototype.hasLifecycleHook=function(t,e){t instanceof lo||this.reportError(new Error("hasLifecycleHook received "+JSON.stringify(t)+" which is not a StaticSymbol"),t);try{return!!this._methodNames(t)[e]}catch(e){throw console.error("Failed on type "+JSON.stringify(t)+" with error "+e),e}},t.prototype._registerDecoratorOrConstructor=function(t,e){this.conversionMap.set(t,function(t,n){return new(e.bind.apply(e,[void 0].concat(n)))})},t.prototype._registerFunction=function(t,e){this.conversionMap.set(t,function(t,n){return e.apply(void 0,n)})},t.prototype.initializeConversionMap=function(){this.injectionToken=this.findDeclaration(vp,"InjectionToken"),this.opaqueToken=this.findDeclaration(vp,"OpaqueToken"),this._registerDecoratorOrConstructor(this.findDeclaration(vp,"Host"),Kr.Host),this._registerDecoratorOrConstructor(this.findDeclaration(vp,"Injectable"),Kr.Injectable),this._registerDecoratorOrConstructor(this.findDeclaration(vp,"Self"),Kr.Self),this._registerDecoratorOrConstructor(this.findDeclaration(vp,"SkipSelf"),Kr.SkipSelf),this._registerDecoratorOrConstructor(this.findDeclaration(vp,"Inject"),Kr.Inject),this._registerDecoratorOrConstructor(this.findDeclaration(vp,"Optional"),Kr.Optional),this._registerDecoratorOrConstructor(this.findDeclaration(vp,"Attribute"),Kr.Attribute),this._registerDecoratorOrConstructor(this.findDeclaration(vp,"ContentChild"),Kr.ContentChild),this._registerDecoratorOrConstructor(this.findDeclaration(vp,"ContentChildren"),Kr.ContentChildren),this._registerDecoratorOrConstructor(this.findDeclaration(vp,"ViewChild"),Kr.ViewChild),this._registerDecoratorOrConstructor(this.findDeclaration(vp,"ViewChildren"),Kr.ViewChildren),this._registerDecoratorOrConstructor(this.findDeclaration(vp,"Input"),Kr.Input),this._registerDecoratorOrConstructor(this.findDeclaration(vp,"Output"),Kr.Output),this._registerDecoratorOrConstructor(this.findDeclaration(vp,"Pipe"),Kr.Pipe),this._registerDecoratorOrConstructor(this.findDeclaration(vp,"HostBinding"),Kr.HostBinding),this._registerDecoratorOrConstructor(this.findDeclaration(vp,"HostListener"),Kr.HostListener),this._registerDecoratorOrConstructor(this.findDeclaration(vp,"Directive"),Kr.Directive),this._registerDecoratorOrConstructor(this.findDeclaration(vp,"Component"),Kr.Component),this._registerDecoratorOrConstructor(this.findDeclaration(vp,"NgModule"),Kr.NgModule),this._registerDecoratorOrConstructor(this.findDeclaration(vp,"Host"),Kr.Host),this._registerDecoratorOrConstructor(this.findDeclaration(vp,"Self"),Kr.Self),this._registerDecoratorOrConstructor(this.findDeclaration(vp,"SkipSelf"),Kr.SkipSelf),this._registerDecoratorOrConstructor(this.findDeclaration(vp,"Optional"),Kr.Optional),this._registerFunction(this.findDeclaration(vp,"trigger"),Kr.trigger),this._registerFunction(this.findDeclaration(vp,"state"),Kr.state),this._registerFunction(this.findDeclaration(vp,"transition"),Kr.transition),this._registerFunction(this.findDeclaration(vp,"style"),Kr.style),this._registerFunction(this.findDeclaration(vp,"animate"),Kr.animate),this._registerFunction(this.findDeclaration(vp,"keyframes"),Kr.keyframes),this._registerFunction(this.findDeclaration(vp,"sequence"),Kr.sequence),this._registerFunction(this.findDeclaration(vp,"group"),Kr.group)},t.prototype.getStaticSymbol=function(t,e,n){return this.symbolResolver.getStaticSymbol(t,e,n)},t.prototype.reportError=function(t,e,n){if(!this.errorRecorder)throw t;this.errorRecorder(t,e&&e.filePath||n)},t.prototype.trySimplify=function(t,e){var n=this.errorRecorder;this.errorRecorder=function(t,e){};var r=this.simplify(t,e);return this.errorRecorder=n,r},t.prototype.simplify=function(t,e){function n(t,e,r){function a(t){var e=o.symbolResolver.resolveSymbol(t);return e?e.metadata:null}function u(e,o,a){if(o&&"function"==o.__symbolic){if(s.get(e))throw new Error("Recursion not supported");s.set(e,!0);try{var u=o.value;if(u&&(0!=r||"error"!=u.__symbolic)){var l=o.parameters,p=o.defaults;a=a.map(function(e){return n(t,e,r+1)}).map(function(t){return Ar(t)?void 0:t}),p&&p.length>a.length&&a.push.apply(a,p.slice(a.length).map(function(t){return c(t)}));for(var h=bp.build(),f=0;f<l.length;f++)h.define(l[f],a[f]);var d,y=i;try{i=h.done(),d=n(e,u,r+1)}finally{i=y}return d}}finally{s.delete(e)}}return 0===r?gp:c({__symbolic:"error",message:"Function call not supported",context:e})}function c(e){if(Nr(e))return e;if(e instanceof Array){for(var s=[],l=0,p=e;l<p.length;l++){var h=p[l];if(h&&"spread"===h.__symbolic){var f=c(h.expression);if(Array.isArray(f)){for(var d=0,y=f;d<y.length;d++){var v=y[d];s.push(v)}continue}}var m=c(h);Ar(m)||s.push(m)}return s}if(e instanceof lo){if(e===o.injectionToken||e===o.opaqueToken||o.conversionMap.has(e))return e;var g=e,_=a(g);return _?n(g,_,r+1):g}if(e){if(e.__symbolic){var g=void 0;switch(e.__symbolic){case"binop":var b=c(e.left);if(Ar(b))return b;var w=c(e.right);if(Ar(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 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 b/w;case"%":return b%w}return null;case"if":return c(c(e.condition)?e.thenExpression:e.elseExpression);case"pre":var E=c(e.operand);if(Ar(E))return E;switch(e.operator){case"+":return E;case"-":return-E;case"!":return!E;case"~":return~E}return null;case"index":var C=c(e.expression),S=c(e.index);return C&&Nr(S)?C[S]:null;case"select":var x=e.member,T=t,P=c(e.expression);if(P instanceof lo){var A=P.members.concat(x);T=o.getStaticSymbol(P.filePath,P.name,A);var _=a(T);return _?n(T,_,r+1):T}return P&&Nr(x)?n(T,P[x],r+1):null;case"reference":var O=e.name,M=i.resolve(O);if(M!=bp.missing)return M;break;case"class":case"function":return t;case"new":case"call":if((g=n(t,e.expression,r+1))instanceof lo){if(g===o.injectionToken||g===o.opaqueToken)return t;var k=e.arguments||[],N=o.conversionMap.get(g);if(N){var I=k.map(function(e){return n(t,e,r+1)}).map(function(t){return Ar(t)?void 0:t});return N(t,I)}return u(g,a(g),k)}return gp;case"error":var R=Mr(e);return e.line?(R=R+" (position "+(e.line+1)+":"+(e.character+1)+" in the original .ts file)",o.reportError(Ir(R,t.filePath,e.line,e.character),t)):o.reportError(new Error(R),t),gp;case"ignore":return e}return null}return kr(e,function(t,e){return c(t)})}return gp}try{return c(e)}catch(e){var l=t.members.length?"."+t.members.join("."):"",p=e.message+", resolving symbol "+t.name+l+" in "+t.filePath;if(e.fileName)throw Ir(p,e.fileName,e.line,e.column);throw g(p)}}var r=this,o=this,i=bp.empty,s=new Map,a=this.errorRecorder?function(t,e,o){try{return n(t,e,o)}catch(e){r.reportError(e,t)}}(t,e,0):n(t,e,0);if(!Ar(a))return a},t.prototype.getTypeMetadata=function(t){var e=this.symbolResolver.resolveSymbol(t);return e&&e.metadata?e.metadata:{__symbolic:"class"}},t}(),bp=function(){function t(){}return t.prototype.resolve=function(t){},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 wp(e):t.empty}}},t}();bp.missing={},bp.empty={resolve:function(t){return bp.missing}};var wp=function(t){function e(e){var n=t.call(this)||this;return n.bindings=e,n}return Qr(e,t),e.prototype.resolve=function(t){return this.bindings.has(t)?this.bindings.get(t):bp.missing},e}(bp),Ep=function(){function t(t,e){this.symbol=t,this.metadata=e}return t}(),Cp=function(){function t(t,e,n,r){this.host=t,this.staticSymbolCache=e,this.summaryResolver=n,this.errorRecorder=r,this.metadataCache=new Map,this.resolvedSymbols=new Map,this.resolvedFilePaths=new Set,this.importAs=new Map,this.symbolResourcePaths=new Map,this.symbolFromFile=new Map}return t.prototype.resolveSymbol=function(t){if(t.members.length>0)return this._resolveSymbolMembers(t);var e=this.resolvedSymbols.get(t);return e||((e=this._resolveSymbolFromSummary(t))?e:(this._createSymbolsOf(t.filePath),e=this.resolvedSymbols.get(t)))},t.prototype.getImportAs=function(t){if(t.members.length){var e=this.getStaticSymbol(t.filePath,t.name),n=this.getImportAs(e);return n?this.getStaticSymbol(n.filePath,n.name,t.members):null}var r=this.summaryResolver.getImportAs(t);return r||(r=this.importAs.get(t)),r},t.prototype.getResourcePath=function(t){return this.symbolResourcePaths.get(t)||t.filePath},t.prototype.getTypeArity=function(t){if(Xe(t.filePath))return null;for(var e=this.resolveSymbol(t);e&&e.metadata instanceof lo;)e=this.resolveSymbol(e.metadata);return e&&e.metadata&&e.metadata.arity||null},t.prototype.recordImportAs=function(t,e){t.assertNoMembers(),e.assertNoMembers(),this.importAs.set(t,e)},t.prototype.invalidateFile=function(t){this.metadataCache.delete(t),this.resolvedFilePaths.delete(t);var e=this.symbolFromFile.get(t);if(e){this.symbolFromFile.delete(t);for(var n=0,r=e;n<r.length;n++){var o=r[n];this.resolvedSymbols.delete(o),this.importAs.delete(o),this.symbolResourcePaths.delete(o)}}},t.prototype._resolveSymbolMembers=function(t){var e=t.members,n=this.resolveSymbol(this.getStaticSymbol(t.filePath,t.name));if(!n)return null;var r=n.metadata;if(r instanceof lo)return new Ep(t,this.getStaticSymbol(r.filePath,r.name,e));if(!r||"class"!==r.__symbolic){for(var o=r,i=0;i<e.length&&o;i++)o=o[e[i]];return new Ep(t,o)}return r.statics&&1===e.length?new Ep(t,r.statics[e[0]]):null},t.prototype._resolveSymbolFromSummary=function(t){var e=this.summaryResolver.resolveSummary(t);return e?new Ep(t,e.metadata):null},t.prototype.getStaticSymbol=function(t,e,n){return this.staticSymbolCache.get(t,e,n)},t.prototype.getSymbolsOf=function(t){var e=new Set(this.summaryResolver.getSymbolsOf(t));return this._createSymbolsOf(t),this.resolvedSymbols.forEach(function(n){n.symbol.filePath===t&&e.add(n.symbol)}),Array.from(e)},t.prototype._createSymbolsOf=function(t){var e=this;if(!this.resolvedFilePaths.has(t)){this.resolvedFilePaths.add(t);var n=[],r=this.getModuleMetadata(t);if(r.metadata){var o=new Set(Object.keys(r.metadata).map(Rr)),i=r.origins||{};Object.keys(r.metadata).forEach(function(s){var a=r.metadata[s],u=Rr(s),c=e.getStaticSymbol(t,u),l=void 0;r.importAs&&(l=e.getStaticSymbol(r.importAs,u),e.recordImportAs(c,l));var p=i.hasOwnProperty(s)&&i[s];if(p){var h=e.resolveModule(p,t);h?e.symbolResourcePaths.set(c,h):e.reportError(new Error("Couldn't resolve original symbol for "+p+" from "+t))}n.push(e.createResolvedSymbol(c,t,o,a))})}if(r.exports)for(var s=this,a=0,u=r.exports;a<u.length;a++){var c=u[a];!function(r){if(r.export)r.export.forEach(function(o){var i;i="string"==typeof o?o:o.as,i=Rr(i);var s=i;"string"!=typeof o&&(s=Rr(o.name));var a=e.resolveModule(r.from,t);if(a){var u=e.getStaticSymbol(a,s),c=e.getStaticSymbol(t,i);n.push(e.createExport(c,u))}});else{var o=s.resolveModule(r.from,t);if(o){s.getSymbolsOf(o).forEach(function(r){var o=e.getStaticSymbol(t,r.name);n.push(e.createExport(o,r))})}}}(c)}n.forEach(function(t){return e.resolvedSymbols.set(t.symbol,t)}),this.symbolFromFile.set(t,n.map(function(t){return t.symbol}))}},t.prototype.createResolvedSymbol=function(t,e,n,r){if(this.summaryResolver.isLibraryFile(t.filePath)&&r&&"class"===r.__symbolic){var o={__symbolic:"class",arity:r.arity};return new Ep(t,o)}var i=this,s=function(r){function o(){return null!==r&&r.apply(this,arguments)||this}return Qr(o,r),o.prototype.visitStringMap=function(o,s){var a=o.__symbolic;if("function"===a){var u=s.length;s.push.apply(s,o.parameters||[]);var c=r.prototype.visitStringMap.call(this,o,s);return s.length=u,c}if("reference"!==a)return r.prototype.visitStringMap.call(this,o,s);var l=o.module,p=o.name?Rr(o.name):o.name;if(!p)return null;var h=void 0;return l?(h=i.resolveModule(l,t.filePath),h?i.getStaticSymbol(h,p):{__symbolic:"error",message:"Could not resolve "+l+" relative to "+t.filePath+"."}):s.indexOf(p)>=0?{__symbolic:"reference",name:p}:n.has(p)?i.getStaticSymbol(e,p):void 0},o}(xo),a=y(r,new s,[]);return a instanceof lo?this.createExport(t,a):new Ep(t,a)},t.prototype.createExport=function(t,e){return t.assertNoMembers(),e.assertNoMembers(),this.summaryResolver.isLibraryFile(t.filePath)&&this.importAs.set(e,this.getImportAs(t)||t),new Ep(t,e)},t.prototype.reportError=function(t,e,n){if(!this.errorRecorder)throw t;this.errorRecorder(t,e&&e.filePath||n)},t.prototype.getModuleMetadata=function(t){var e=this.metadataCache.get(t);if(!e){var n=this.host.getMetadataFor(t);if(n){var r=-1;n.forEach(function(t){t.version>r&&(r=t.version,e=t)})}if(e||(e={__symbolic:"module",version:3,module:t,metadata:{}}),3!=e.version){var o=2==e.version?"Unsupported metadata version "+e.version+" for module "+t+". This module should be compiled with a newer version of ngc":"Metadata version mismatch for module "+t+", found version "+e.version+", expected 3";this.reportError(new Error(o))}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 } ":""))),this.getStaticSymbol("ERROR:"+t,e))},t.prototype.resolveModule=function(t,e){try{return this.host.moduleNameToFileName(t,e)}catch(n){console.error("Could not resolve module '"+t+"' relative to file "+e),this.reportError(n,void 0,e)}return null},t}(),Sp=function(){function t(t,e){this.host=t,this.staticSymbolCache=e,this.summaryCache=new Map,this.loadedFilePaths=new Set,this.importAs=new Map}return t.prototype.isLibraryFile=function(t){return!this.host.isSourceFile(Qe(t))},t.prototype.getLibraryFileName=function(t){return this.host.getOutputFileName(t)},t.prototype.resolveSummary=function(t){t.assertNoMembers();var e=this.summaryCache.get(t);return e||(this._loadSummaryFile(t.filePath),e=this.summaryCache.get(t)),e},t.prototype.getSymbolsOf=function(t){return this._loadSummaryFile(t),Array.from(this.summaryCache.keys()).filter(function(e){return e.filePath===t})},t.prototype.getImportAs=function(t){return t.assertNoMembers(),this.importAs.get(t)},t.prototype._loadSummaryFile=function(t){var e=this;if(!this.loadedFilePaths.has(t)&&(this.loadedFilePaths.add(t),this.isLibraryFile(t))){var n=Ye(t),r=void 0;try{r=this.host.loadSummary(n)}catch(t){throw console.error("Error loading summary file "+n),t}if(r){var o=gr(this.staticSymbolCache,r),i=o.summaries,s=o.importAs;i.forEach(function(t){return e.summaryCache.set(t.symbol,t)}),s.forEach(function(n){e.importAs.set(n.symbol,e.staticSymbolCache.get(Ke(t),n.importAs))})}}},t}(),xp=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}(),Tp=function(){function t(t){this.value=t}return t}(),Pp=function(){function t(){}return t.prototype.debugAst=function(t){return Nn(t)},t.prototype.visitDeclareVarStmt=function(t,e){return e.vars.set(t.name,t.value.visitExpression(this,e)),null},t.prototype.visitWriteVarExpr=function(t,e){for(var n=t.value.visitExpression(this,e),r=e;null!=r;){if(r.vars.has(t.name))return r.vars.set(t.name,n),n;r=r.parent}throw new Error("Not declared variable "+t.name)},t.prototype.visitReadVarExpr=function(t,e){var n=t.name;if(null!=t.builtin)switch(t.builtin){case $u.Super:return e.instance.__proto__;case $u.This:return e.instance;case $u.CatchError:n=Ap;break;case $u.CatchStack:n=Op;break;default:throw new Error("Unknown builtin variable "+t.builtin)}for(var r=e;null!=r;){if(r.vars.has(n))return r.vars.get(n);r=r.parent}throw new Error("Not declared variable "+n)},t.prototype.visitWriteKeyExpr=function(t,e){var n=t.receiver.visitExpression(this,e),r=t.index.visitExpression(this,e),o=t.value.visitExpression(this,e);return n[r]=o,o},t.prototype.visitWritePropExpr=function(t,e){var n=t.receiver.visitExpression(this,e),r=t.value.visitExpression(this,e);return n[t.name]=r,r},t.prototype.visitInvokeMethodExpr=function(t,e){var n,r=t.receiver.visitExpression(this,e),o=this.visitAllExpressions(t.args,e);if(null!=t.builtin)switch(t.builtin){case rc.ConcatArray:n=r.concat.apply(r,o);break;case rc.SubscribeObservable:n=r.subscribe({next:o[0]});break;case rc.Bind:n=r.bind.apply(r,o);break;default:throw new Error("Unknown builtin method "+t.builtin)}else n=r[t.name].apply(r,o);return n},t.prototype.visitInvokeFunctionExpr=function(t,e){var n=this.visitAllExpressions(t.args,e),r=t.fn;return r instanceof Ju&&r.builtin===$u.Super?(e.instance.constructor.prototype.constructor.apply(e.instance,n),null):t.fn.visitExpression(this,e).apply(null,n)},t.prototype.visitReturnStmt=function(t,e){return new Tp(t.value.visitExpression(this,e))},t.prototype.visitDeclareClassStmt=function(t,e){var n=Lr(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){return t.condition.visitExpression(this,e)?this.visitAllStatements(t.trueCase,e):null!=t.falseCase?this.visitAllStatements(t.falseCase,e):null},t.prototype.visitTryCatchStmt=function(t,e){try{return this.visitAllStatements(t.bodyStmts,e)}catch(r){var n=e.createChildWihtLocalVars();return n.vars.set(Ap,r),n.vars.set(Op,r.stack),this.visitAllStatements(t.catchStmts,n)}},t.prototype.visitThrowStmt=function(t,e){throw t.error.visitExpression(this,e)},t.prototype.visitCommentStmt=function(t,e){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,e){return t.value},t.prototype.visitExternalExpr=function(t,e){return t.value.reference},t.prototype.visitConditionalExpr=function(t,e){return t.condition.visitExpression(this,e)?t.trueCase.visitExpression(this,e):null!=t.falseCase?t.falseCase.visitExpression(this,e):null},t.prototype.visitNotExpr=function(t,e){return!t.condition.visitExpression(this,e)},t.prototype.visitCastExpr=function(t,e){return t.value.visitExpression(this,e)},t.prototype.visitFunctionExpr=function(t,e){return Fr(t.params.map(function(t){return t.name}),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,Fr(n,t.statements,e,this)),null},t.prototype.visitBinaryOperatorExpr=function(t,e){var n=this,r=function(){return t.lhs.visitExpression(n,e)},o=function(){return t.rhs.visitExpression(n,e)};switch(t.operator){case Zu.Equals:return r()==o();case Zu.Identical:return r()===o();case Zu.NotEquals:return r()!=o();case Zu.NotIdentical:return r()!==o();case Zu.And:return r()&&o();case Zu.Or:return r()||o();case Zu.Plus:return r()+o();case Zu.Minus:return r()-o();case Zu.Divide:return r()/o();case Zu.Multiply:return r()*o();case Zu.Modulo:return r()%o();case Zu.Lower:return r()<o();case Zu.LowerEquals:return r()<=o();case Zu.Bigger:return r()>o();case Zu.BiggerEquals:return r()>=o();default:throw new Error("Unknown operator "+t.operator)}},t.prototype.visitReadPropExpr=function(t,e){return t.receiver.visitExpression(this,e)[t.name]},t.prototype.visitReadKeyExpr=function(t,e){return t.receiver.visitExpression(this,e)[t.index.visitExpression(this,e)]},t.prototype.visitLiteralArrayExpr=function(t,e){return this.visitAllExpressions(t.entries,e)},t.prototype.visitLiteralMapExpr=function(t,e){var n=this,r={};return t.entries.forEach(function(t){return r[t.key]=t.value.visitExpression(n,e)}),r},t.prototype.visitCommaExpr=function(t,e){var n=this.visitAllExpressions(t.parts,e);return n[n.length-1]},t.prototype.visitAllExpressions=function(t,e){var n=this;return t.map(function(t){return t.visitExpression(n,e)})},t.prototype.visitAllStatements=function(t,e){for(var n=0;n<t.length;n++){var r=t[n],o=r.visitStatement(this,e);if(o instanceof Tp)return o}return null},t}(),Ap="error",Op="stack",Mp=function(t){function e(){return t.call(this,!1)||this}return Qr(e,t),e.prototype.visitDeclareClassStmt=function(t,e){var n=this;return e.pushClass(t),this._visitClassConstructor(t,e),null!=t.parent&&(e.print(t,t.name+".prototype = Object.create("),t.parent.visitExpression(this,e),e.println(t,".prototype);")),t.getters.forEach(function(r){return n._visitClassGetter(t,r,e)}),t.methods.forEach(function(r){return n._visitClassMethod(t,r,e)}),e.popClass(),null},e.prototype._visitClassConstructor=function(t,e){e.print(t,"function "+t.name+"("),null!=t.constructorMethod&&this._visitParams(t.constructorMethod.params,e),e.println(t,") {"),e.incIndent(),null!=t.constructorMethod&&t.constructorMethod.body.length>0&&(e.println(t,"var self = this;"),this.visitAllStatements(t.constructorMethod.body,e)),e.decIndent(),e.println(t,"}")},e.prototype._visitClassGetter=function(t,e,n){n.println(t,"Object.defineProperty("+t.name+".prototype, '"+e.name+"', { get: function() {"),n.incIndent(),e.body.length>0&&(n.println(t,"var self = this;"),this.visitAllStatements(e.body,n)),n.decIndent(),n.println(t,"}});")},e.prototype._visitClassMethod=function(t,e,n){n.print(t,t.name+".prototype."+e.name+" = function("),this._visitParams(e.params,n),n.println(t,") {"),n.incIndent(),e.body.length>0&&(n.println(t,"var self = this;"),this.visitAllStatements(e.body,n)),n.decIndent(),n.println(t,"};")},e.prototype.visitReadVarExpr=function(e,n){if(e.builtin===$u.This)n.print(e,"self");else{if(e.builtin===$u.Super)throw new Error("'super' needs to be handled at a parent ast node, not at the variable level!");t.prototype.visitReadVarExpr.call(this,e,n)}return null},e.prototype.visitDeclareVarStmt=function(t,e){return e.print(t,"var "+t.name+" = "),t.value.visitExpression(this,e),e.println(t,";"),null},e.prototype.visitCastExpr=function(t,e){return t.value.visitExpression(this,e),null},e.prototype.visitInvokeFunctionExpr=function(e,n){var r=e.fn;return r instanceof Ju&&r.builtin===$u.Super?(n.currentClass.parent.visitExpression(this,n),n.print(e,".call(this"),e.args.length>0&&(n.print(e,", "),this.visitAllExpressions(e.args,n,",")),n.print(e,")")):t.prototype.visitInvokeFunctionExpr.call(this,e,n),null},e.prototype.visitFunctionExpr=function(t,e){return e.print(t,"function("),this._visitParams(t.params,e),e.println(t,") {"),e.incIndent(),this.visitAllStatements(t.statements,e),e.decIndent(),e.print(t,"}"),null},e.prototype.visitDeclareFunctionStmt=function(t,e){return e.print(t,"function "+t.name+"("),this._visitParams(t.params,e),e.println(t,") {"),e.incIndent(),this.visitAllStatements(t.statements,e),e.decIndent(),e.println(t,"}"),null},e.prototype.visitTryCatchStmt=function(t,e){e.println(t,"try {"),e.incIndent(),this.visitAllStatements(t.bodyStmts,e),e.decIndent(),e.println(t,"} catch ("+el.name+") {"),e.incIndent();var n=[nl.set(el.prop("stack")).toDeclStmt(null,[xc.Final])].concat(t.catchStmts);return this.visitAllStatements(n,e),e.decIndent(),e.println(t,"}"),null},e.prototype._visitParams=function(t,e){this.visitAllObjects(function(t){return e.print(null,t.name)},t,e,",")},e.prototype.getBuiltinMethodName=function(t){var e;switch(t){case rc.ConcatArray:e="concat";break;case rc.SubscribeObservable:e="subscribe";break;case rc.Bind:e="bind";break;default:throw new Error("Unknown builtin method: "+t)}return e},e}(il),kp=function(t){function e(){var e=t.apply(this,arguments)||this;return e._evalArgNames=[],e._evalArgValues=[],e}return Qr(e,t),e.prototype.getArgs=function(){for(var t={},e=0;e<this._evalArgNames.length;e++)t[this._evalArgNames[e]]=this._evalArgValues[e];return t},e.prototype.visitExternalExpr=function(t,e){var n=t.value.reference,r=this._evalArgValues.indexOf(n);if(-1===r){r=this._evalArgValues.length,this._evalArgValues.push(n);var o=C(t.value)||"val";this._evalArgNames.push("jit_"+o+r)}return e.print(t,this._evalArgNames[r]),null},e}(Mp),Np=function(){function t(t,e,n,r,o,i,s,a){this._injector=t,this._metadataResolver=e,this._templateParser=n,this._styleCompiler=r,this._viewCompiler=o,this._ngModuleCompiler=i,this._compilerConfig=s,this._console=a,this._compiledTemplateCache=new Map,this._compiledHostTemplateCache=new Map,this._compiledDirectiveWrapperCache=new Map,this._compiledNgModuleCache=new Map,this._sharedStylesheetCount=0}return Object.defineProperty(t.prototype,"injector",{get:function(){return this._injector},enumerable:!0,configurable:!0}),t.prototype.compileModuleSync=function(t){return this._compileModuleAndComponents(t,!0).syncResult},t.prototype.compileModuleAsync=function(t){return this._compileModuleAndComponents(t,!1).asyncResult},t.prototype.compileModuleAndAllComponentsSync=function(t){return this._compileModuleAndAllComponents(t,!0).syncResult},t.prototype.compileModuleAndAllComponentsAsync=function(t){return this._compileModuleAndAllComponents(t,!1).asyncResult},t.prototype.getNgContentSelectors=function(t){this._console.warn("Compiler.getNgContentSelectors is deprecated. Use ComponentFactory.ngContentSelectors instead!");var e=this._compiledTemplateCache.get(t);if(!e)throw new Error("The component "+n.i(Kr["ɵstringify"])(t)+" is not yet compiled!");return e.compMeta.template.ngContentSelectors},t.prototype._compileModuleAndComponents=function(t,e){var n=this,r=this._loadModules(t,e),o=function(){return n._compileComponents(t,null),n._compileModule(t)};return e?new To(o()):new To(null,r.then(o))},t.prototype._compileModuleAndAllComponents=function(t,e){var n=this,r=this._loadModules(t,e),o=function(){var e=[];return n._compileComponents(t,e),new Kr.ModuleWithComponentFactories(n._compileModule(t),e)};return e?new To(o()):new To(null,r.then(o))},t.prototype._loadModules=function(t,e){var n=this,r=[];return this._metadataResolver.getNgModuleMetadata(t).transitiveModule.modules.forEach(function(t){r.push(n._metadataResolver.loadNgModuleDirectiveAndPipeMetadata(t.reference,e))}),Promise.all(r)},t.prototype._compileModule=function(t){var e=this,n=this._compiledNgModuleCache.get(t);if(!n){var r=this._metadataResolver.getNgModuleMetadata(t),o=[this._metadataResolver.getProviderMetadata(new Ho(Kr.Compiler,{useFactory:function(){return new Rp(e,r.type.reference)}}))],i=this._ngModuleCompiler.compile(r,o);n=this._compilerConfig.useJit?Hr(L(r),i.statements,[i.ngModuleFactoryVar])[0]:Dr(i.statements,[i.ngModuleFactoryVar])[0],this._compiledNgModuleCache.set(r.type.reference,n)}return n},t.prototype._compileComponents=function(t,e){var n=this,r=this._metadataResolver.getNgModuleMetadata(t),o=new Map,i=new Set;r.transitiveModule.modules.forEach(function(t){var r=n._metadataResolver.getNgModuleMetadata(t.reference);r.declaredDirectives.forEach(function(t){o.set(t.reference,r);var s=n._metadataResolver.getDirectiveMetadata(t.reference);if(s.isComponent&&(i.add(n._createCompiledTemplate(s,r)),e)){var a=n._createCompiledHostTemplate(s.type.reference,r);i.add(a),e.push(s.componentFactory)}})}),r.transitiveModule.modules.forEach(function(t){var e=n._metadataResolver.getNgModuleMetadata(t.reference);e.declaredDirectives.forEach(function(t){var e=n._metadataResolver.getDirectiveMetadata(t.reference);e.isComponent&&e.entryComponents.forEach(function(t){var e=o.get(t.componentType);i.add(n._createCompiledHostTemplate(t.componentType,e))})}),e.entryComponents.forEach(function(t){var e=o.get(t.componentType);i.add(n._createCompiledHostTemplate(t.componentType,e))})}),i.forEach(function(t){return n._compileTemplate(t)})},t.prototype.clearCacheFor=function(t){this._compiledNgModuleCache.delete(t),this._metadataResolver.clearCacheFor(t),this._compiledHostTemplateCache.delete(t),this._compiledTemplateCache.get(t)&&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 "+n.i(Kr["ɵstringify"])(t)+" is not part of any NgModule or the module has not been imported into your module.");var r=this._compiledHostTemplateCache.get(t);if(!r){var o=this._metadataResolver.getDirectiveMetadata(t);Ur(o);var i=o.componentFactory,s=this._metadataResolver.getHostComponentType(t),a=k(s,o,n.i(Kr["ɵgetComponentViewDefinitionFactory"])(i));r=new Ip(!0,o.type,a,e,[o.type]),this._compiledHostTemplateCache.set(t,r)}return r},t.prototype._createCompiledTemplate=function(t,e){var n=this._compiledTemplateCache.get(t.type.reference);return n||(Ur(t),n=new Ip(!1,t.type,t,e,e.transitiveModule.directives),this._compiledTemplateCache.set(t.type.reference,n)),n},t.prototype._compileTemplate=function(t){var e=this;if(!t.isCompiled){var n=t.compMeta,r=new Map,o=this._styleCompiler.compileComponent(n);o.externalStylesheets.forEach(function(t){r.set(t.meta.moduleUrl,t)}),this._resolveStylesCompileResult(o.componentStylesheet,r);var i,s,a=t.directives.map(function(t){return e._metadataResolver.getDirectiveSummary(t.reference)}),u=t.ngModule.transitiveModule.pipes.map(function(t){return e._metadataResolver.getPipeSummary(t.reference)}),c=this._templateParser.parse(n,n.template.template,a,u,t.ngModule.schemas,D(t.ngModule.type,t.compMeta,t.compMeta.template)),l=c.template,p=c.pipes,h=this._viewCompiler.compileComponent(n,l,dn(o.componentStylesheet.stylesVar),p),f=o.componentStylesheet.statements.concat(h.statements),d=n.isHost?[h.viewClassVar]:[h.viewClassVar,h.rendererTypeVar];this._compilerConfig.useJit?(v=Hr(F(t.ngModule.type,t.compMeta),f,d),i=v[0],s=v[1]):(y=Dr(f,d),i=y[0],s=y[1]),t.compiled(i,s);var y,v}},t.prototype._resolveStylesCompileResult=function(t,e){var n=this;t.dependencies.forEach(function(t,r){var o=e.get(t.moduleUrl),i=n._resolveAndEvalStylesCompileResult(o,e);t.valuePlaceholder.reference=i})},t.prototype._resolveAndEvalStylesCompileResult=function(t,e){return this._resolveStylesCompileResult(t,e),this._compilerConfig.useJit?Hr(V(t.meta,this._sharedStylesheetCount++),t.statements,[t.stylesVar])[0]:Dr(t.statements,[t.stylesVar])[0]},t}();Np.decorators=[{type:q}],Np.ctorParameters=function(){return[{type:Kr.Injector},{type:Fu},{type:vu},{type:Wl},{type:op},{type:Wc},{type:Uo},{type:Kr["ɵConsole"]}]};var Ip=function(){function t(t,e,n,r,o){this.isHost=t,this.compType=e,this.compMeta=n,this.ngModule=r,this.directives=o,this._viewClass=null,this.isCompiled=!1}return t.prototype.compiled=function(t,e){this._viewClass=t,this.compMeta.componentViewType.setDelegate(t);for(var n in e)this.compMeta.rendererType[n]=e[n];this.isCompiled=!0},t}(),Rp=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}(),Dp=function(){function t(t,e,n,r){void 0===r&&(r=null),this._htmlParser=t,this._implicitTags=e,this._implicitAttrs=n,this._locale=r,this._messages=[]}return t.prototype.updateFromTemplate=function(t,e,n){var r=this._htmlParser.parse(t,e,!0,n);if(r.errors.length)return r.errors;var o=Tt(r.rootNodes,n,this._implicitTags,this._implicitAttrs);return o.errors.length?o.errors:((i=this._messages).push.apply(i,o.messages),null);var i},t.prototype.getMessages=function(){return this._messages},t.prototype.write=function(t,e){var n={},r=new Vp;this._messages.forEach(function(e){var r=t.digest(e);n.hasOwnProperty(r)?(o=n[r].sources).push.apply(o,e.sources):n[r]=e;var o});var o=Object.keys(n).map(function(o){var i=t.createNameMapper(n[o]),s=n[o],a=i?r.convert(s.nodes,i):s.nodes,u=new Ms(a,{},{},s.meaning,s.description,o);return u.sources=s.sources,e&&u.sources.forEach(function(t){return t.filePath=e(t.filePath)}),u});return t.write(o,this._locale)},t}(),Vp=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Qr(e,t),e.prototype.convert=function(t,e){var n=this;return e?t.map(function(t){return t.visit(n,e)}):t},e.prototype.visitTagPlaceholder=function(t,e){var n=this,r=e.toPublicName(t.startName),o=t.closeName?e.toPublicName(t.closeName):t.closeName,i=t.children.map(function(t){return t.visit(n,e)});return new Rs(t.tag,t.attrs,r,o,i,t.isVoid,t.sourceSpan)},e.prototype.visitPlaceholder=function(t,e){return new Ds(t.value,e.toPublicName(t.name),t.sourceSpan)},e.prototype.visitIcuPlaceholder=function(t,e){return new Vs(t.value,e.toPublicName(t.name),t.sourceSpan)},e}(Ls),Lp=(function(){function t(t,e,n,r){this.host=t,this.staticSymbolResolver=e,this.messageBundle=n,this.metadataResolver=r}t.prototype.extract=function(t){var e=this,n=xr(this.staticSymbolResolver,t,this.host),r=Cr(n,this.host,this.metadataResolver),o=r.files,i=r.ngModules;return Promise.all(i.map(function(t){return e.metadataResolver.loadNgModuleDirectiveAndPipeMetadata(t.type.reference,!1)})).then(function(){var t=[];if(o.forEach(function(n){var r=[];n.directives.forEach(function(t){var n=e.metadataResolver.getDirectiveMetadata(t);n&&n.isComponent&&r.push(n)}),r.forEach(function(r){var o=r.template.template,i=Zi.fromArray(r.template.interpolation);t.push.apply(t,e.messageBundle.updateFromTemplate(o,n.srcUrl,i))})}),t.length)throw new Error(t.map(function(t){return t.toString()}).join("\n"));return e.messageBundle})},t.create=function(e,n){var r=new ka(new Aa),o=Fe(),i=new po,s=new Sp(e,i),a=new Cp(e,i,s),u=new _p(s,a);yp.install(u);var c=new Uo({defaultEncapsulation:Kr.ViewEncapsulation.Emulated,useJit:!1}),l=new Au({get:function(t){return e.loadResource(t)}},o,r,c),p=new yl,h=new Fu(c,new Ru(u),new ku(u),new Du(u),s,p,l,new Kr["ɵConsole"],i,u),f=new Dp(r,[],{},n);return{extractor:new t(e,a,f,h),staticReflector:u}}}(),{get:function(t){throw new Error("No ResourceLoader implementation has been provided. Can't read the url \""+t+'"')}}),Fp=new Kr.InjectionToken("HtmlParser"),jp=[{provide:Kr["ɵReflector"],useValue:Kr["ɵreflector"]},{provide:Kr["ɵReflectorReader"],useExisting:Kr["ɵReflector"]},{provide:Cu,useValue:Lp},Vu,Kr["ɵConsole"],ts,ss,{provide:Fp,useClass:Aa},{provide:ka,useFactory:Br,deps:[Fp,[new Kr.Optional,new Kr.Inject(Kr.TRANSLATIONS)],[new Kr.Optional,new Kr.Inject(Kr.TRANSLATIONS_FORMAT)],[Uo],[Kr["ɵConsole"]]]},{provide:Aa,useExisting:ka},vu,Au,Fu,Su,Wl,op,Wc,{provide:Uo,useValue:new Uo},Np,{provide:Kr.Compiler,useExisting:Np},yl,{provide:Ba,useExisting:yl},xu,ku,Du,Ru],Hp=function(){function t(t){var e={useDebug:n.i(Kr.isDevMode)(),useJit:!0,defaultEncapsulation:Kr.ViewEncapsulation.Emulated,missingTranslation:Kr.MissingTranslationStrategy.Warning,enableLegacyTemplate:!0};this._defaultOptions=[e].concat(t)}return t.prototype.createCompiler=function(t){void 0===t&&(t=[]);var e=Gr(this._defaultOptions.concat(t));return Kr.ReflectiveInjector.resolveAndCreate([jp,{provide:Uo,useFactory:function(){return new Uo({useJit:e.useJit,defaultEncapsulation:e.defaultEncapsulation,missingTranslation:e.missingTranslation,enableLegacyTemplate:e.enableLegacyTemplate})},deps:[]},e.providers]).get(Kr.Compiler)},t}();Hp.decorators=[{type:q}],Hp.ctorParameters=function(){return[{type:Array,decorators:[{type:Kr.Inject,args:[Kr.COMPILER_OPTIONS]}]}]};var Up=n.i(Kr.createPlatformFactory)(Kr.platformCore,"coreDynamic",[{provide:Kr.COMPILER_OPTIONS,useValue:{},multi:!0},{provide:Kr.CompilerFactory,useClass:Hp},{provide:Kr.PLATFORM_INITIALIZER,useValue:qr,multi:!0}]);!function(){function t(){}t.prototype.fileNameToModuleName=function(t,e){},t.prototype.getImportAs=function(t){},t.prototype.getTypeArity=function(t){}}()},136:function(t,e,n){"use strict";function r(t){return null==t||0===t.length}function o(t){return null!=t}function i(t){var e=n.i(I["ɵisPromise"])(t)?n.i(D.fromPromise)(t):t;if(!n.i(I["ɵisObservable"])(e))throw new Error("Expected validator to return Promise or Observable.");return e}function s(t,e){return e.map(function(e){return e(t)})}function a(t,e){return e.map(function(e){return e(t)})}function u(t){var e=t.reduce(function(t,e){return null!=e?U({},t,e):t},{});return 0===Object.keys(e).length?null:e}function c(){return/android (\d+)/.test((n.i(L["ɵgetDOM"])()?n.i(L["ɵgetDOM"])().getUserAgent():"").toLowerCase())}/**
* @license
* Copyright Google Inc. All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
function l(t){return t.validate?function(e){return t.validate(e)}:t}function p(t){return t.validate?function(e){return t.validate(e)}:t}/**
* @license
* Copyright Google Inc. All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
function h(){throw new Error("unimplemented")}function f(t,e){return null==t?""+e:(e&&"object"==typeof e&&(e="Object"),(t+": "+e).slice(0,50))}function d(t){return t.split(":")[0]}function y(t,e){return null==t?""+e:("string"==typeof e&&(e="'"+e+"'"),e&&"object"==typeof e&&(e="Object"),(t+": "+e).slice(0,50))}function v(t){return t.split(":")[0]}/**
* @license
* Copyright Google Inc. All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
function m(t,e){return e.path.concat([t])}function g(t,e){t||E(e,"Cannot find control with"),e.valueAccessor||E(e,"No value accessor for form control with"),t.validator=z.compose([t.validator,e.validator]),t.asyncValidator=z.composeAsync([t.asyncValidator,e.asyncValidator]),e.valueAccessor.writeValue(t.value),e.valueAccessor.registerOnChange(function(n){e.viewToModelUpdate(n),t.markAsDirty(),t.setValue(n,{emitModelToViewChange:!1})}),e.valueAccessor.registerOnTouched(function(){return t.markAsTouched()}),t.registerOnChange(function(t,n){e.valueAccessor.writeValue(t),n&&e.viewToModelUpdate(t)}),e.valueAccessor.setDisabledState&&t.registerOnDisabledChange(function(t){e.valueAccessor.setDisabledState(t)}),e._rawValidators.forEach(function(e){e.registerOnValidatorChange&&e.registerOnValidatorChange(function(){return t.updateValueAndValidity()})}),e._rawAsyncValidators.forEach(function(e){e.registerOnValidatorChange&&e.registerOnValidatorChange(function(){return t.updateValueAndValidity()})})}function _(t,e){e.valueAccessor.registerOnChange(function(){return w(e)}),e.valueAccessor.registerOnTouched(function(){return w(e)}),e._rawValidators.forEach(function(t){t.registerOnValidatorChange&&t.registerOnValidatorChange(null)}),e._rawAsyncValidators.forEach(function(t){t.registerOnValidatorChange&&t.registerOnValidatorChange(null)}),t&&t._clearChangeFns()}function b(t,e){null==t&&E(e,"Cannot find control with"),t.validator=z.compose([t.validator,e.validator]),t.asyncValidator=z.composeAsync([t.asyncValidator,e.asyncValidator])}function w(t){return E(t,"There is no FormControl instance attached to form control element with")}function E(t,e){var n;throw n=t.path.length>1?"path: '"+t.path.join(" -> ")+"'":t.path[0]?"name: '"+t.path+"'":"unspecified name attribute",new Error(e+" "+n)}function C(t){return null!=t?z.compose(t.map(l)):null}function S(t){return null!=t?z.composeAsync(t.map(p)):null}function x(t,e){if(!t.hasOwnProperty("model"))return!1;var r=t.model;return!!r.isFirstChange()||!n.i(I["ɵlooseIdentical"])(e,r.currentValue)}function T(t){return ht.some(function(e){return t.constructor===e})}function P(t,e){if(!e)return null;var n=void 0,r=void 0,o=void 0;return e.forEach(function(e){e.constructor===Y?n=e:T(e)?(r&&E(t,"More than one built-in value accessor matches form control with"),r=e):(o&&E(t,"More than one custom value accessor matches form control with"),o=e)}),o||(r||(n||(E(t,"No valid value accessor for form control with"),null)))}function A(t,e,n){return null==e?null:(e instanceof Array||(e=e.split(n)),e instanceof Array&&0===e.length?null:e.reduce(function(t,e){return t instanceof bt?t.controls[e]||null:t instanceof wt?t.at(e)||null:null},t))}function O(t){return Array.isArray(t)?C(t):t||null}function M(t){return Array.isArray(t)?S(t):t||null}function k(t,e){var n=t.indexOf(e);n>-1&&t.splice(n,1)}function N(t){return!(t instanceof Ft||t instanceof Vt||t instanceof Ht)}Object.defineProperty(e,"__esModule",{value:!0});var I=n(20),R=n(301),D=(n.n(R),n(302)),V=(n.n(D),n(306)),L=(n.n(V),n(49));n.d(e,"AbstractControlDirective",function(){return j}),n.d(e,"AbstractFormGroupDirective",function(){return ft}),n.d(e,"CheckboxControlValueAccessor",function(){return Q}),n.d(e,"ControlContainer",function(){return H}),n.d(e,"NG_VALUE_ACCESSOR",function(){return W}),n.d(e,"COMPOSITION_BUFFER_MODE",function(){return Z}),n.d(e,"DefaultValueAccessor",function(){return Y}),n.d(e,"NgControl",function(){return tt}),n.d(e,"NgControlStatus",function(){return vt}),n.d(e,"NgControlStatusGroup",function(){return mt}),n.d(e,"NgForm",function(){return St}),n.d(e,"NgModel",function(){return kt}),n.d(e,"NgModelGroup",function(){return At}),n.d(e,"RadioControlValueAccessor",function(){return rt}),n.d(e,"FormControlDirective",function(){return Rt}),n.d(e,"FormControlName",function(){return Bt}),n.d(e,"FormGroupDirective",function(){return Vt}),n.d(e,"FormArrayName",function(){return Ht}),n.d(e,"FormGroupName",function(){return Ft}),n.d(e,"NgSelectOption",function(){return ut}),n.d(e,"SelectControlValueAccessor",function(){return at}),n.d(e,"SelectMultipleControlValueAccessor",function(){return lt}),n.d(e,"CheckboxRequiredValidator",function(){return Wt}),n.d(e,"EmailValidator",function(){return Qt}),n.d(e,"MaxLengthValidator",function(){return $t}),n.d(e,"MinLengthValidator",function(){return Zt}),n.d(e,"PatternValidator",function(){return te}),n.d(e,"RequiredValidator",function(){return zt}),n.d(e,"FormBuilder",function(){return ee}),n.d(e,"AbstractControl",function(){return gt}),n.d(e,"FormArray",function(){return wt}),n.d(e,"FormControl",function(){return _t}),n.d(e,"FormGroup",function(){return bt}),n.d(e,"NG_ASYNC_VALIDATORS",function(){return q}),n.d(e,"NG_VALIDATORS",function(){return B}),n.d(e,"Validators",function(){return z}),n.d(e,"VERSION",function(){return ne}),n.d(e,"FormsModule",function(){return ue}),n.d(e,"ReactiveFormsModule",function(){return ce}),n.d(e,"ɵba",function(){return ae}),n.d(e,"ɵz",function(){return se}),n.d(e,"ɵx",function(){return oe}),n.d(e,"ɵy",function(){return ie}),n.d(e,"ɵa",function(){return K}),n.d(e,"ɵb",function(){return X}),n.d(e,"ɵc",function(){return dt}),n.d(e,"ɵd",function(){return yt}),n.d(e,"ɵe",function(){return Et}),n.d(e,"ɵf",function(){return Ot}),n.d(e,"ɵg",function(){return Pt}),n.d(e,"ɵbf",function(){return re}),n.d(e,"ɵbb",function(){return $}),n.d(e,"ɵbc",function(){return J}),n.d(e,"ɵh",function(){return et}),n.d(e,"ɵi",function(){return nt}),n.d(e,"ɵbd",function(){return ot}),n.d(e,"ɵbe",function(){return it}),n.d(e,"ɵj",function(){return It}),n.d(e,"ɵk",function(){return Ut}),n.d(e,"ɵl",function(){return Dt}),n.d(e,"ɵn",function(){return jt}),n.d(e,"ɵm",function(){return Lt}),n.d(e,"ɵo",function(){return st}),n.d(e,"ɵq",function(){return pt}),n.d(e,"ɵp",function(){return ct}),n.d(e,"ɵs",function(){return Gt}),n.d(e,"ɵt",function(){return Kt}),n.d(e,"ɵv",function(){return Yt}),n.d(e,"ɵu",function(){return Xt}),n.d(e,"ɵw",function(){return Jt}),n.d(e,"ɵr",function(){return qt});var 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)},j=function(){function t(){}return t.prototype.control=function(){},Object.defineProperty(t.prototype,"value",{get:function(){return this.control?this.control.value:null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"valid",{get:function(){return this.control?this.control.valid:null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"invalid",{get:function(){return this.control?this.control.invalid:null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"pending",{get:function(){return this.control?this.control.pending:null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"errors",{get:function(){return this.control?this.control.errors:null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"pristine",{get:function(){return this.control?this.control.pristine:null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"dirty",{get:function(){return this.control?this.control.dirty:null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"touched",{get:function(){return this.control?this.control.touched:null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"untouched",{get:function(){return this.control?this.control.untouched:null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"disabled",{get:function(){return this.control?this.control.disabled:null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"enabled",{get:function(){return this.control?this.control.enabled:null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"statusChanges",{get:function(){return this.control?this.control.statusChanges:null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"valueChanges",{get:function(){return this.control?this.control.valueChanges:null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"path",{get:function(){return null},enumerable:!0,configurable:!0}),t.prototype.reset=function(t){void 0===t&&(t=void 0),this.control&&this.control.reset(t)},t.prototype.hasError=function(t,e){return!!this.control&&this.control.hasError(t,e)},t.prototype.getError=function(t,e){return this.control?this.control.getError(t,e):null},t}(),H=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return F(e,t),Object.defineProperty(e.prototype,"formDirective",{get:function(){return null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"path",{get:function(){return null},enumerable:!0,configurable:!0}),e}(j),U=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++){e=arguments[n];for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])}return t},B=new I.InjectionToken("NgValidators"),q=new I.InjectionToken("NgAsyncValidators"),G=/^(?=.{1,254}$)(?=.{1,64}@)[-!#$%&'*+\/0-9=?A-Z^_`a-z{|}~]+(\.[-!#$%&'*+\/0-9=?A-Z^_`a-z{|}~]+)*@[A-Za-z0-9]([A-Za-z0-9-]{0,61}[A-Za-z0-9])?(\.[A-Za-z0-9]([A-Za-z0-9-]{0,61}[A-Za-z0-9])?)*$/,z=function(){function t(){}return t.required=function(t){return r(t.value)?{required:!0}:null},t.requiredTrue=function(t){return!0===t.value?null:{required:!0}},t.email=function(t){return G.test(t.value)?null:{email:!0}},t.minLength=function(t){return function(e){if(r(e.value))return null;var n=e.value?e.value.length:0;return n<t?{minlength:{requiredLength:t,actualLength:n}}:null}},t.maxLength=function(t){return function(e){var n=e.value?e.value.length:0;return n>t?{maxlength:{requiredLength:t,actualLength:n}}:null}},t.pattern=function(e){if(!e)return t.nullValidator;var n,o;return"string"==typeof e?(o="^"+e+"$",n=new RegExp(o)):(o=e.toString(),n=e),function(t){if(r(t.value))return null;var e=t.value;return n.test(e)?null:{pattern:{requiredPattern:o,actualValue:e}}}},t.nullValidator=function(t){return null},t.compose=function(t){if(!t)return null;var e=t.filter(o);return 0==e.length?null:function(t){return u(s(t,e))}},t.composeAsync=function(t){if(!t)return null;var e=t.filter(o);return 0==e.length?null:function(t){var r=a(t,e).map(i);return V.map.call(n.i(R.forkJoin)(r),u)}},t}(),W=new I.InjectionToken("NgValueAccessor"),K={provide:W,useExisting:n.i(I.forwardRef)(function(){return Q}),multi:!0},Q=function(){function t(t,e){this._renderer=t,this._elementRef=e,this.onChange=function(t){},this.onTouched=function(){}}return t.prototype.writeValue=function(t){this._renderer.setElementProperty(this._elementRef.nativeElement,"checked",t)},t.prototype.registerOnChange=function(t){this.onChange=t},t.prototype.registerOnTouched=function(t){this.onTouched=t},t.prototype.setDisabledState=function(t){this._renderer.setElementProperty(this._elementRef.nativeElement,"disabled",t)},t}();Q.decorators=[{type:I.Directive,args:[{selector:"input[type=checkbox][formControlName],input[type=checkbox][formControl],input[type=checkbox][ngModel]",host:{"(change)":"onChange($event.target.checked)","(blur)":"onTouched()"},providers:[K]}]}],Q.ctorParameters=function(){return[{type:I.Renderer},{type:I.ElementRef}]};/**
* @license
* Copyright Google Inc. All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
var X={provide:W,useExisting:n.i(I.forwardRef)(function(){return Y}),multi:!0},Z=new I.InjectionToken("CompositionEventMode"),Y=function(){function t(t,e,n){this._renderer=t,this._elementRef=e,this._compositionMode=n,this.onChange=function(t){},this.onTouched=function(){},this._composing=!1,null==this._compositionMode&&(this._compositionMode=!c())}return t.prototype.writeValue=function(t){var e=null==t?"":t;this._renderer.setElementProperty(this._elementRef.nativeElement,"value",e)},t.prototype.registerOnChange=function(t){this.onChange=t},t.prototype.registerOnTouched=function(t){this.onTouched=t},t.prototype.setDisabledState=function(t){this._renderer.setElementProperty(this._elementRef.nativeElement,"disabled",t)},t.prototype._handleInput=function(t){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(t)},t.prototype._compositionStart=function(){this._composing=!0},t.prototype._compositionEnd=function(t){this._composing=!1,this._compositionMode&&this.onChange(t)},t}();Y.decorators=[{type:I.Directive,args:[{selector:"input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]",host:{"(input)":"_handleInput($event.target.value)","(blur)":"onTouched()","(compositionstart)":"_compositionStart()","(compositionend)":"_compositionEnd($event.target.value)"},providers:[X]}]}],Y.ctorParameters=function(){return[{type:I.Renderer},{type:I.ElementRef},{type:void 0,decorators:[{type:I.Optional},{type:I.Inject,args:[Z]}]}]};/**
* @license
* Copyright Google Inc. All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
var $={provide:W,useExisting:n.i(I.forwardRef)(function(){return J}),multi:!0},J=function(){function t(t,e){this._renderer=t,this._elementRef=e,this.onChange=function(t){},this.onTouched=function(){}}return t.prototype.writeValue=function(t){var e=null==t?"":t;this._renderer.setElementProperty(this._elementRef.nativeElement,"value",e)},t.prototype.registerOnChange=function(t){this.onChange=function(e){t(""==e?null:parseFloat(e))}},t.prototype.registerOnTouched=function(t){this.onTouched=t},t.prototype.setDisabledState=function(t){this._renderer.setElementProperty(this._elementRef.nativeElement,"disabled",t)},t}();J.decorators=[{type:I.Directive,args:[{selector:"input[type=number][formControlName],input[type=number][formControl],input[type=number][ngModel]",host:{"(change)":"onChange($event.target.value)","(input)":"onChange($event.target.value)","(blur)":"onTouched()"},providers:[$]}]}],J.ctorParameters=function(){return[{type:I.Renderer},{type:I.ElementRef}]};var tt=function(t){function e(){var e=t.apply(this,arguments)||this;return e._parent=null,e.name=null,e.valueAccessor=null,e._rawValidators=[],e._rawAsyncValidators=[],e}return F(e,t),Object.defineProperty(e.prototype,"validator",{get:function(){return h()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"asyncValidator",{get:function(){return h()},enumerable:!0,configurable:!0}),e.prototype.viewToModelUpdate=function(t){},e}(j),et={provide:W,useExisting:n.i(I.forwardRef)(function(){return rt}),multi:!0},nt=function(){function t(){this._accessors=[]}return t.prototype.add=function(t,e){this._accessors.push([t,e])},t.prototype.remove=function(t){for(var e=this._accessors.length-1;e>=0;--e)if(this._accessors[e][1]===t)return void this._accessors.splice(e,1)},t.prototype.select=function(t){var e=this;this._accessors.forEach(function(n){e._isSameGroup(n,t)&&n[1]!==t&&n[1].fireUncheck(t.value)})},t.prototype._isSameGroup=function(t,e){return!!t[0].control&&(t[0]._parent===e._control._parent&&t[1].name===e.name)},t}();nt.decorators=[{type:I.Injectable}],nt.ctorParameters=function(){return[]};var rt=function(){function t(t,e,n,r){this._renderer=t,this._elementRef=e,this._registry=n,this._injector=r,this.onChange=function(){},this.onTouched=function(){}}return t.prototype.ngOnInit=function(){this._control=this._injector.get(tt),this._checkName(),this._registry.add(this._control,this)},t.prototype.ngOnDestroy=function(){this._registry.remove(this)},t.prototype.writeValue=function(t){this._state=t===this.value,this._renderer.setElementProperty(this._elementRef.nativeElement,"checked",this._state)},t.prototype.registerOnChange=function(t){var e=this;this._fn=t,this.onChange=function(){t(e.value),e._registry.select(e)}},t.prototype.fireUncheck=function(t){this.writeValue(t)},t.prototype.registerOnTouched=function(t){this.onTouched=t},t.prototype.setDisabledState=function(t){this._renderer.setElementProperty(this._elementRef.nativeElement,"disabled",t)},t.prototype._checkName=function(){this.name&&this.formControlName&&this.name!==this.formControlName&&this._throwNameError(),!this.name&&this.formControlName&&(this.name=this.formControlName)},t.prototype._throwNameError=function(){throw new Error('\n If you define both a name and a formControlName attribute on your radio button, their values\n must match. Ex: <input type="radio" formControlName="food" name="food">\n ')},t}();rt.decorators=[{type:I.Directive,args:[{selector:"input[type=radio][formControlName],input[type=radio][formControl],input[type=radio][ngModel]",host:{"(change)":"onChange()","(blur)":"onTouched()"},providers:[et]}]}],rt.ctorParameters=function(){return[{type:I.Renderer},{type:I.ElementRef},{type:nt},{type:I.Injector}]},rt.propDecorators={name:[{type:I.Input}],formControlName:[{type:I.Input}],value:[{type:I.Input}]};/**
* @license
* Copyright Google Inc. All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
var ot={provide:W,useExisting:n.i(I.forwardRef)(function(){return it}),multi:!0},it=function(){function t(t,e){this._renderer=t,this._elementRef=e,this.onChange=function(t){},this.onTouched=function(){}}return t.prototype.writeValue=function(t){this._renderer.setElementProperty(this._elementRef.nativeElement,"value",parseFloat(t))},t.prototype.registerOnChange=function(t){this.onChange=function(e){t(""==e?null:parseFloat(e))}},t.prototype.registerOnTouched=function(t){this.onTouched=t},t.prototype.setDisabledState=function(t){this._renderer.setElementProperty(this._elementRef.nativeElement,"disabled",t)},t}();it.decorators=[{type:I.Directive,args:[{selector:"input[type=range][formControlName],input[type=range][formControl],input[type=range][ngModel]",host:{"(change)":"onChange($event.target.value)","(input)":"onChange($event.target.value)","(blur)":"onTouched()"},providers:[ot]}]}],it.ctorParameters=function(){return[{type:I.Renderer},{type:I.ElementRef}]};/**
* @license
* Copyright Google Inc. All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
var st={provide:W,useExisting:n.i(I.forwardRef)(function(){return at}),multi:!0},at=function(){function t(t,e){this._renderer=t,this._elementRef=e,this._optionMap=new Map,this._idCounter=0,this.onChange=function(t){},this.onTouched=function(){},this._compareWith=I["ɵlooseIdentical"]}return Object.defineProperty(t.prototype,"compareWith",{set:function(t){if("function"!=typeof t)throw new Error("compareWith must be a function, but received "+JSON.stringify(t));this._compareWith=t},enumerable:!0,configurable:!0}),t.prototype.writeValue=function(t){this.value=t;var e=this._getOptionId(t);null==e&&this._renderer.setElementProperty(this._elementRef.nativeElement,"selectedIndex",-1);var n=f(e,t);this._renderer.setElementProperty(this._elementRef.nativeElement,"value",n)},t.prototype.registerOnChange=function(t){var e=this;this.onChange=function(n){e.value=n,t(e._getOptionValue(n))}},t.prototype.registerOnTouched=function(t){this.onTouched=t},t.prototype.setDisabledState=function(t){this._renderer.setElementProperty(this._elementRef.nativeElement,"disabled",t)},t.prototype._registerOption=function(){return(this._idCounter++).toString()},t.prototype._getOptionId=function(t){for(var e=0,n=Array.from(this._optionMap.keys());e<n.length;e++){var r=n[e];if(this._compareWith(this._optionMap.get(r),t))return r}return null},t.prototype._getOptionValue=function(t){var e=d(t);return this._optionMap.has(e)?this._optionMap.get(e):t},t}();at.decorators=[{type:I.Directive,args:[{selector:"select:not([multiple])[formControlName],select:not([multiple])[formControl],select:not([multiple])[ngModel]",host:{"(change)":"onChange($event.target.value)","(blur)":"onTouched()"},providers:[st]}]}],at.ctorParameters=function(){return[{type:I.Renderer},{type:I.ElementRef}]},at.propDecorators={compareWith:[{type:I.Input}]};var ut=function(){function t(t,e,n){this._element=t,this._renderer=e,this._select=n,this._select&&(this.id=this._select._registerOption())}return Object.defineProperty(t.prototype,"ngValue",{set:function(t){null!=this._select&&(this._select._optionMap.set(this.id,t),this._setElementValue(f(this.id,t)),this._select.writeValue(this._select.value))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"value",{set:function(t){this._setElementValue(t),this._select&&this._select.writeValue(this._select.value)},enumerable:!0,configurable:!0}),t.prototype._setElementValue=function(t){this._renderer.setElementProperty(this._element.nativeElement,"value",t)},t.prototype.ngOnDestroy=function(){this._select&&(this._select._optionMap.delete(this.id),this._select.writeValue(this._select.value))},t}();ut.decorators=[{type:I.Directive,args:[{selector:"option"}]}],ut.ctorParameters=function(){return[{type:I.ElementRef},{type:I.Renderer},{type:at,decorators:[{type:I.Optional},{type:I.Host}]}]},ut.propDecorators={ngValue:[{type:I.Input,args:["ngValue"]}],value:[{type:I.Input,args:["value"]}]};/**
* @license
* Copyright Google Inc. All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
var ct={provide:W,useExisting:n.i(I.forwardRef)(function(){return lt}),multi:!0},lt=function(){function t(t,e){this._renderer=t,this._elementRef=e,this._optionMap=new Map,this._idCounter=0,this.onChange=function(t){},this.onTouched=function(){},this._compareWith=I["ɵlooseIdentical"]}return Object.defineProperty(t.prototype,"compareWith",{set:function(t){if("function"!=typeof t)throw new Error("compareWith must be a function, but received "+JSON.stringify(t));this._compareWith=t},enumerable:!0,configurable:!0}),t.prototype.writeValue=function(t){var e=this;this.value=t;var n;if(Array.isArray(t)){var r=t.map(function(t){return e._getOptionId(t)});n=function(t,e){t._setSelected(r.indexOf(e.toString())>-1)}}else n=function(t,e){t._setSelected(!1)};this._optionMap.forEach(n)},t.prototype.registerOnChange=function(t){var e=this;this.onChange=function(n){var r=[];if(n.hasOwnProperty("selectedOptions"))for(var o=n.selectedOptions,i=0;i<o.length;i++){var s=o.item(i),a=e._getOptionValue(s.value);r.push(a)}else for(var o=n.options,i=0;i<o.length;i++){var s=o.item(i);if(s.selected){var a=e._getOptionValue(s.value);r.push(a)}}e.value=r,t(r)}},t.prototype.registerOnTouched=function(t){this.onTouched=t},t.prototype.setDisabledState=function(t){this._renderer.setElementProperty(this._elementRef.nativeElement,"disabled",t)},t.prototype._registerOption=function(t){var e=(this._idCounter++).toString();return this._optionMap.set(e,t),e},t.prototype._getOptionId=function(t){for(var e=0,n=Array.from(this._optionMap.keys());e<n.length;e++){var r=n[e];if(this._compareWith(this._optionMap.get(r)._value,t))return r}return null},t.prototype._getOptionValue=function(t){var e=v(t);return this._optionMap.has(e)?this._optionMap.get(e)._value:t},t}();lt.decorators=[{type:I.Directive,args:[{selector:"select[multiple][formControlName],select[multiple][formControl],select[multiple][ngModel]",host:{"(change)":"onChange($event.target)","(blur)":"onTouched()"},providers:[ct]}]}],lt.ctorParameters=function(){return[{type:I.Renderer},{type:I.ElementRef}]},lt.propDecorators={compareWith:[{type:I.Input}]};var pt=function(){function t(t,e,n){this._element=t,this._renderer=e,this._select=n,this._select&&(this.id=this._select._registerOption(this))}return Object.defineProperty(t.prototype,"ngValue",{set:function(t){null!=this._select&&(this._value=t,this._setElementValue(y(this.id,t)),this._select.writeValue(this._select.value))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"value",{set:function(t){this._select?(this._value=t,this._setElementValue(y(this.id,t)),this._select.writeValue(this._select.value)):this._setElementValue(t)},enumerable:!0,configurable:!0}),t.prototype._setElementValue=function(t){this._renderer.setElementProperty(this._element.nativeElement,"value",t)},t.prototype._setSelected=function(t){this._renderer.setElementProperty(this._element.nativeElement,"selected",t)},t.prototype.ngOnDestroy=function(){this._select&&(this._select._optionMap.delete(this.id),this._select.writeValue(this._select.value))},t}();pt.decorators=[{type:I.Directive,args:[{selector:"option"}]}],pt.ctorParameters=function(){return[{type:I.ElementRef},{type:I.Renderer},{type:lt,decorators:[{type:I.Optional},{type:I.Host}]}]},pt.propDecorators={ngValue:[{type:I.Input,args:["ngValue"]}],value:[{type:I.Input,args:["value"]}]};var ht=[Q,it,J,at,lt,rt],ft=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return F(e,t),e.prototype.ngOnInit=function(){this._checkParentType(),this.formDirective.addFormGroup(this)},e.prototype.ngOnDestroy=function(){this.formDirective&&this.formDirective.removeFormGroup(this)},Object.defineProperty(e.prototype,"control",{get:function(){return this.formDirective.getFormGroup(this)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"path",{get:function(){return m(this.name,this._parent)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"formDirective",{get:function(){return this._parent?this._parent.formDirective:null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"validator",{get:function(){return C(this._validators)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"asyncValidator",{get:function(){return S(this._asyncValidators)},enumerable:!0,configurable:!0}),e.prototype._checkParentType=function(){},e}(H),dt=function(){function t(t){this._cd=t}return Object.defineProperty(t.prototype,"ngClassUntouched",{get:function(){return!!this._cd.control&&this._cd.control.untouched},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"ngClassTouched",{get:function(){return!!this._cd.control&&this._cd.control.touched},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"ngClassPristine",{get:function(){return!!this._cd.control&&this._cd.control.pristine},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"ngClassDirty",{get:function(){return!!this._cd.control&&this._cd.control.dirty},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"ngClassValid",{get:function(){return!!this._cd.control&&this._cd.control.valid},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"ngClassInvalid",{get:function(){return!!this._cd.control&&this._cd.control.invalid},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"ngClassPending",{get:function(){return!!this._cd.control&&this._cd.control.pending},enumerable:!0,configurable:!0}),t}(),yt={"[class.ng-untouched]":"ngClassUntouched","[class.ng-touched]":"ngClassTouched","[class.ng-pristine]":"ngClassPristine","[class.ng-dirty]":"ngClassDirty","[class.ng-valid]":"ngClassValid","[class.ng-invalid]":"ngClassInvalid","[class.ng-pending]":"ngClassPending"},vt=function(t){function e(e){return t.call(this,e)||this}return F(e,t),e}(dt);vt.decorators=[{type:I.Directive,args:[{selector:"[formControlName],[ngModel],[formControl]",host:yt}]}],vt.ctorParameters=function(){return[{type:tt,decorators:[{type:I.Self}]}]};var mt=function(t){function e(e){return t.call(this,e)||this}return F(e,t),e}(dt);mt.decorators=[{type:I.Directive,args:[{selector:"[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]",host:yt}]}],mt.ctorParameters=function(){return[{type:H,decorators:[{type:I.Self}]}]};/**
* @license
* Copyright Google Inc. All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
var gt=function(){function t(t,e){this.validator=t,this.asyncValidator=e,this._onCollectionChange=function(){},this._pristine=!0,this._touched=!1,this._onDisabledChange=[]}return Object.defineProperty(t.prototype,"value",{get:function(){return this._value},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"parent",{get:function(){return this._parent},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"status",{get:function(){return this._status},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"valid",{get:function(){return"VALID"===this._status},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"invalid",{get:function(){return"INVALID"===this._status},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"pending",{get:function(){return"PENDING"==this._status},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"disabled",{get:function(){return"DISABLED"===this._status},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"enabled",{get:function(){return"DISABLED"!==this._status},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"errors",{get:function(){return this._errors},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"pristine",{get:function(){return this._pristine},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"dirty",{get:function(){return!this.pristine},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"touched",{get:function(){return this._touched},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"untouched",{get:function(){return!this._touched},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"valueChanges",{get:function(){return this._valueChanges},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"statusChanges",{get:function(){return this._statusChanges},enumerable:!0,configurable:!0}),t.prototype.setValidators=function(t){this.validator=O(t)},t.prototype.setAsyncValidators=function(t){this.asyncValidator=M(t)},t.prototype.clearValidators=function(){this.validator=null},t.prototype.clearAsyncValidators=function(){this.asyncValidator=null},t.prototype.markAsTouched=function(t){var e=(void 0===t?{}:t).onlySelf;this._touched=!0,this._parent&&!e&&this._parent.markAsTouched({onlySelf:e})},t.prototype.markAsUntouched=function(t){var e=(void 0===t?{}:t).onlySelf;this._touched=!1,this._forEachChild(function(t){t.markAsUntouched({onlySelf:!0})}),this._parent&&!e&&this._parent._updateTouched({onlySelf:e})},t.prototype.markAsDirty=function(t){var e=(void 0===t?{}:t).onlySelf;this._pristine=!1,this._parent&&!e&&this._parent.markAsDirty({onlySelf:e})},t.prototype.markAsPristine=function(t){var e=(void 0===t?{}:t).onlySelf;this._pristine=!0,this._forEachChild(function(t){t.markAsPristine({onlySelf:!0})}),this._parent&&!e&&this._parent._updatePristine({onlySelf:e})},t.prototype.markAsPending=function(t){var e=(void 0===t?{}:t).onlySelf;this._status="PENDING",this._parent&&!e&&this._parent.markAsPending({onlySelf:e})},t.prototype.disable=function(t){var e=void 0===t?{}:t,n=e.onlySelf,r=e.emitEvent;this._status="DISABLED",this._errors=null,this._forEachChild(function(t){t.disable({onlySelf:!0})}),this._updateValue(),!1!==r&&(this._valueChanges.emit(this._value),this._statusChanges.emit(this._status)),this._updateAncestors(!!n),this._onDisabledChange.forEach(function(t){return t(!0)})},t.prototype.enable=function(t){var e=void 0===t?{}:t,n=e.onlySelf,r=e.emitEvent;this._status="VALID",this._forEachChild(function(t){t.enable({onlySelf:!0})}),this.updateValueAndValidity({onlySelf:!0,emitEvent:r}),this._updateAncestors(!!n),this._onDisabledChange.forEach(function(t){return t(!1)})},t.prototype._updateAncestors=function(t){this._parent&&!t&&(this._parent.updateValueAndValidity(),this._parent._updatePristine(),this._parent._updateTouched())},t.prototype.setParent=function(t){this._parent=t},t.prototype.setValue=function(t,e){},t.prototype.patchValue=function(t,e){},t.prototype.reset=function(t,e){},t.prototype.updateValueAndValidity=function(t){var e=void 0===t?{}:t,n=e.onlySelf,r=e.emitEvent;this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this._errors=this._runValidator(),this._status=this._calculateStatus(),"VALID"!==this._status&&"PENDING"!==this._status||this._runAsyncValidator(r)),!1!==r&&(this._valueChanges.emit(this._value),this._statusChanges.emit(this._status)),this._parent&&!n&&this._parent.updateValueAndValidity({onlySelf:n,emitEvent:r})},t.prototype._updateTreeValidity=function(t){var e=(void 0===t?{emitEvent:!0}:t).emitEvent;this._forEachChild(function(t){return t._updateTreeValidity({emitEvent:e})}),this.updateValueAndValidity({onlySelf:!0,emitEvent:e})},t.prototype._setInitialStatus=function(){this._status=this._allControlsDisabled()?"DISABLED":"VALID"},t.prototype._runValidator=function(){return this.validator?this.validator(this):null},t.prototype._runAsyncValidator=function(t){var e=this;if(this.asyncValidator){this._status="PENDING";var n=i(this.asyncValidator(this));this._asyncValidationSubscription=n.subscribe(function(n){return e.setErrors(n,{emitEvent:t})})}},t.prototype._cancelExistingSubscription=function(){this._asyncValidationSubscription&&this._asyncValidationSubscription.unsubscribe()},t.prototype.setErrors=function(t,e){var n=(void 0===e?{}:e).emitEvent;this._errors=t,this._updateControlsErrors(!1!==n)},t.prototype.get=function(t){return A(this,t,".")},t.prototype.getError=function(t,e){var n=e?this.get(e):this;return n&&n._errors?n._errors[t]:null},t.prototype.hasError=function(t,e){return!!this.getError(t,e)},Object.defineProperty(t.prototype,"root",{get:function(){for(var t=this;t._parent;)t=t._parent;return t},enumerable:!0,configurable:!0}),t.prototype._updateControlsErrors=function(t){this._status=this._calculateStatus(),t&&this._statusChanges.emit(this._status),this._parent&&this._parent._updateControlsErrors(t)},t.prototype._initObservables=function(){this._valueChanges=new I.EventEmitter,this._statusChanges=new I.EventEmitter},t.prototype._calculateStatus=function(){return this._allControlsDisabled()?"DISABLED":this._errors?"INVALID":this._anyControlsHaveStatus("PENDING")?"PENDING":this._anyControlsHaveStatus("INVALID")?"INVALID":"VALID"},t.prototype._updateValue=function(){},t.prototype._forEachChild=function(t){},t.prototype._anyControls=function(t){},t.prototype._allControlsDisabled=function(){},t.prototype._anyControlsHaveStatus=function(t){return this._anyControls(function(e){return e.status===t})},t.prototype._anyControlsDirty=function(){return this._anyControls(function(t){return t.dirty})},t.prototype._anyControlsTouched=function(){return this._anyControls(function(t){return t.touched})},t.prototype._updatePristine=function(t){var e=(void 0===t?{}:t).onlySelf;this._pristine=!this._anyControlsDirty(),this._parent&&!e&&this._parent._updatePristine({onlySelf:e})},t.prototype._updateTouched=function(t){var e=(void 0===t?{}:t).onlySelf;this._touched=this._anyControlsTouched(),this._parent&&!e&&this._parent._updateTouched({onlySelf:e})},t.prototype._isBoxedValue=function(t){return"object"==typeof t&&null!==t&&2===Object.keys(t).length&&"value"in t&&"disabled"in t},t.prototype._registerOnCollectionChange=function(t){this._onCollectionChange=t},t}(),_t=function(t){function e(e,n,r){void 0===e&&(e=null);var o=t.call(this,O(n),M(r))||this;return o._onChange=[],o._applyFormState(e),o.updateValueAndValidity({onlySelf:!0,emitEvent:!1}),o._initObservables(),o}return F(e,t),e.prototype.setValue=function(t,e){var n=this;void 0===e&&(e={}),this._value=t,this._onChange.length&&!1!==e.emitModelToViewChange&&this._onChange.forEach(function(t){return t(n._value,!1!==e.emitViewToModelChange)}),this.updateValueAndValidity(e)},e.prototype.patchValue=function(t,e){void 0===e&&(e={}),this.setValue(t,e)},e.prototype.reset=function(t,e){void 0===t&&(t=null),void 0===e&&(e={}),this._applyFormState(t),this.markAsPristine(e),this.markAsUntouched(e),this.setValue(this._value,e)},e.prototype._updateValue=function(){},e.prototype._anyControls=function(t){return!1},e.prototype._allControlsDisabled=function(){return this.disabled},e.prototype.registerOnChange=function(t){this._onChange.push(t)},e.prototype._clearChangeFns=function(){this._onChange=[],this._onDisabledChange=[],this._onCollectionChange=function(){}},e.prototype.registerOnDisabledChange=function(t){this._onDisabledChange.push(t)},e.prototype._forEachChild=function(t){},e.prototype._applyFormState=function(t){this._isBoxedValue(t)?(this._value=t.value,t.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this._value=t},e}(gt),bt=function(t){function e(e,n,r){var o=t.call(this,n||null,r||null)||this;return o.controls=e,o._initObservables(),o._setUpControls(),o.updateValueAndValidity({onlySelf:!0,emitEvent:!1}),o}return F(e,t),e.prototype.registerControl=function(t,e){return this.controls[t]?this.controls[t]:(this.controls[t]=e,e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange),e)},e.prototype.addControl=function(t,e){this.registerControl(t,e),this.updateValueAndValidity(),this._onCollectionChange()},e.prototype.removeControl=function(t){this.controls[t]&&this.controls[t]._registerOnCollectionChange(function(){}),delete this.controls[t],this.updateValueAndValidity(),this._onCollectionChange()},e.prototype.setControl=function(t,e){this.controls[t]&&this.controls[t]._registerOnCollectionChange(function(){}),delete this.controls[t],e&&this.registerControl(t,e),this.updateValueAndValidity(),this._onCollectionChange()},e.prototype.contains=function(t){return this.controls.hasOwnProperty(t)&&this.controls[t].enabled},e.prototype.setValue=function(t,e){var n=this;void 0===e&&(e={}),this._checkAllValuesPresent(t),Object.keys(t).forEach(function(r){n._throwIfControlMissing(r),n.controls[r].setValue(t[r],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)},e.prototype.patchValue=function(t,e){var n=this;void 0===e&&(e={}),Object.keys(t).forEach(function(r){n.controls[r]&&n.controls[r].patchValue(t[r],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)},e.prototype.reset=function(t,e){void 0===t&&(t={}),void 0===e&&(e={}),this._forEachChild(function(n,r){n.reset(t[r],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e),this._updatePristine(e),this._updateTouched(e)},e.prototype.getRawValue=function(){return this._reduceChildren({},function(t,e,n){return t[n]=e instanceof _t?e.value:e.getRawValue(),t})},e.prototype._throwIfControlMissing=function(t){if(!Object.keys(this.controls).length)throw new Error("\n There are no form controls registered with this group yet. If you're using ngModel,\n you may want to check next tick (e.g. use setTimeout).\n ");if(!this.controls[t])throw new Error("Cannot find form control with name: "+t+".")},e.prototype._forEachChild=function(t){var e=this;Object.keys(this.controls).forEach(function(n){return t(e.controls[n],n)})},e.prototype._setUpControls=function(){var t=this;this._forEachChild(function(e){e.setParent(t),e._registerOnCollectionChange(t._onCollectionChange)})},e.prototype._updateValue=function(){this._value=this._reduceValue()},e.prototype._anyControls=function(t){var e=this,n=!1;return this._forEachChild(function(r,o){n=n||e.contains(o)&&t(r)}),n},e.prototype._reduceValue=function(){var t=this;return this._reduceChildren({},function(e,n,r){return(n.enabled||t.disabled)&&(e[r]=n.value),e})},e.prototype._reduceChildren=function(t,e){var n=t;return this._forEachChild(function(t,r){n=e(n,t,r)}),n},e.prototype._allControlsDisabled=function(){for(var t=0,e=Object.keys(this.controls);t<e.length;t++){var n=e[t];if(this.controls[n].enabled)return!1}return Object.keys(this.controls).length>0||this.disabled},e.prototype._checkAllValuesPresent=function(t){this._forEachChild(function(e,n){if(void 0===t[n])throw new Error("Must supply a value for form control with name: '"+n+"'.")})},e}(gt),wt=function(t){function e(e,n,r){var o=t.call(this,n||null,r||null)||this;return o.controls=e,o._initObservables(),o._setUpControls(),o.updateValueAndValidity({onlySelf:!0,emitEvent:!1}),o}return F(e,t),e.prototype.at=function(t){return this.controls[t]},e.prototype.push=function(t){this.controls.push(t),this._registerControl(t),this.updateValueAndValidity(),this._onCollectionChange()},e.prototype.insert=function(t,e){this.controls.splice(t,0,e),this._registerControl(e),this.updateValueAndValidity(),this._onCollectionChange()},e.prototype.removeAt=function(t){this.controls[t]&&this.controls[t]._registerOnCollectionChange(function(){}),this.controls.splice(t,1),this.updateValueAndValidity(),this._onCollectionChange()},e.prototype.setControl=function(t,e){this.controls[t]&&this.controls[t]._registerOnCollectionChange(function(){}),this.controls.splice(t,1),e&&(this.controls.splice(t,0,e),this._registerControl(e)),this.updateValueAndValidity(),this._onCollectionChange()},Object.defineProperty(e.prototype,"length",{get:function(){return this.controls.length},enumerable:!0,configurable:!0}),e.prototype.setValue=function(t,e){var n=this;void 0===e&&(e={}),this._checkAllValuesPresent(t),t.forEach(function(t,r){n._throwIfControlMissing(r),n.at(r).setValue(t,{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)},e.prototype.patchValue=function(t,e){var n=this;void 0===e&&(e={}),t.forEach(function(t,r){n.at(r)&&n.at(r).patchValue(t,{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)},e.prototype.reset=function(t,e){void 0===t&&(t=[]),void 0===e&&(e={}),this._forEachChild(function(n,r){n.reset(t[r],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e),this._updatePristine(e),this._updateTouched(e)},e.prototype.getRawValue=function(){return this.controls.map(function(t){return t instanceof _t?t.value:t.getRawValue()})},e.prototype._throwIfControlMissing=function(t){if(!this.controls.length)throw new Error("\n There are no form controls registered with this array yet. If you're using ngModel,\n you may want to check next tick (e.g. use setTimeout).\n ");if(!this.at(t))throw new Error("Cannot find form control at index "+t)},e.prototype._forEachChild=function(t){this.controls.forEach(function(e,n){t(e,n)})},e.prototype._updateValue=function(){var t=this;this._value=this.controls.filter(function(e){return e.enabled||t.disabled}).map(function(t){return t.value})},e.prototype._anyControls=function(t){return this.controls.some(function(e){return e.enabled&&t(e)})},e.prototype._setUpControls=function(){var t=this;this._forEachChild(function(e){return t._registerControl(e)})},e.prototype._checkAllValuesPresent=function(t){this._forEachChild(function(e,n){if(void 0===t[n])throw new Error("Must supply a value for form control at index: "+n+".")})},e.prototype._allControlsDisabled=function(){for(var t=0,e=this.controls;t<e.length;t++){if(e[t].enabled)return!1}return this.controls.length>0||this.disabled},e.prototype._registerControl=function(t){t.setParent(this),t._registerOnCollectionChange(this._onCollectionChange)},e}(gt),Et={provide:H,useExisting:n.i(I.forwardRef)(function(){return St})},Ct=Promise.resolve(null),St=function(t){function e(e,n){var r=t.call(this)||this;return r._submitted=!1,r.ngSubmit=new I.EventEmitter,r.form=new bt({},C(e),S(n)),r}return F(e,t),Object.defineProperty(e.prototype,"submitted",{get:function(){return this._submitted},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"formDirective",{get:function(){return this},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"control",{get:function(){return this.form},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"path",{get:function(){return[]},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"controls",{get:function(){return this.form.controls},enumerable:!0,configurable:!0}),e.prototype.addControl=function(t){var e=this;Ct.then(function(){var n=e._findContainer(t.path);t._control=n.registerControl(t.name,t.control),g(t.control,t),t.control.updateValueAndValidity({emitEvent:!1})})},e.prototype.getControl=function(t){return this.form.get(t.path)},e.prototype.removeControl=function(t){var e=this;Ct.then(function(){var n=e._findContainer(t.path);n&&n.removeControl(t.name)})},e.prototype.addFormGroup=function(t){var e=this;Ct.then(function(){var n=e._findContainer(t.path),r=new bt({});b(r,t),n.registerControl(t.name,r),r.updateValueAndValidity({emitEvent:!1})})},e.prototype.removeFormGroup=function(t){var e=this;Ct.then(function(){var n=e._findContainer(t.path);n&&n.removeControl(t.name)})},e.prototype.getFormGroup=function(t){return this.form.get(t.path)},e.prototype.updateModel=function(t,e){var n=this;Ct.then(function(){n.form.get(t.path).setValue(e)})},e.prototype.setValue=function(t){this.control.setValue(t)},e.prototype.onSubmit=function(t){return this._submitted=!0,this.ngSubmit.emit(t),!1},e.prototype.onReset=function(){this.resetForm()},e.prototype.resetForm=function(t){void 0===t&&(t=void 0),this.form.reset(t),this._submitted=!1},e.prototype._findContainer=function(t){return t.pop(),t.length?this.form.get(t):this.form},e}(H);St.decorators=[{type:I.Directive,args:[{selector:"form:not([ngNoForm]):not([formGroup]),ngForm,[ngForm]",providers:[Et],host:{"(submit)":"onSubmit($event)","(reset)":"onReset()"},outputs:["ngSubmit"],exportAs:"ngForm"}]}],St.ctorParameters=function(){return[{type:Array,decorators:[{type:I.Optional},{type:I.Self},{type:I.Inject,args:[B]}]},{type:Array,decorators:[{type:I.Optional},{type:I.Self},{type:I.Inject,args:[q]}]}]};/**
* @license
* Copyright Google Inc. All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
var xt={formControlName:'\n <div [formGroup]="myGroup">\n <input formControlName="firstName">\n </div>\n\n In your class:\n\n this.myGroup = new FormGroup({\n firstName: new FormControl()\n });',formGroupName:'\n <div [formGroup]="myGroup">\n <div formGroupName="person">\n <input formControlName="firstName">\n </div>\n </div>\n\n In your class:\n\n this.myGroup = new FormGroup({\n person: new FormGroup({ firstName: new FormControl() })\n });',formArrayName:'\n <div [formGroup]="myGroup">\n <div formArrayName="cities">\n <div *ngFor="let city of cityArray.controls; index as i">\n <input [formControlName]="i">\n </div>\n </div>\n </div>\n\n In your class:\n\n this.cityArray = new FormArray([new FormControl(\'SF\')]);\n this.myGroup = new FormGroup({\n cities: this.cityArray\n });',ngModelGroup:'\n <form>\n <div ngModelGroup="person">\n <input [(ngModel)]="person.name" name="firstName">\n </div>\n </form>',ngModelWithFormGroup:'\n <div [formGroup]="myGroup">\n <input formControlName="firstName">\n <input [(ngModel)]="showMoreControls" [ngModelOptions]="{standalone: true}">\n </div>\n '},Tt=function(){function t(){}return t.modelParentException=function(){throw new Error('\n ngModel cannot be used to register form controls with a parent formGroup directive. Try using\n formGroup\'s partner directive "formControlName" instead. Example:\n\n '+xt.formControlName+"\n\n Or, if you'd like to avoid registering this form control, indicate that it's standalone in ngModelOptions:\n\n Example:\n\n "+xt.ngModelWithFormGroup)},t.formGroupNameException=function(){throw new Error("\n ngModel cannot be used to register form controls with a parent formGroupName or formArrayName directive.\n\n Option 1: Use formControlName instead of ngModel (reactive strategy):\n\n "+xt.formGroupName+"\n\n Option 2: Update ngModel's parent be ngModelGroup (template-driven strategy):\n\n "+xt.ngModelGroup)},t.missingNameException=function(){throw new Error('If ngModel is used within a form tag, either the name attribute must be set or the form\n control must be defined as \'standalone\' in ngModelOptions.\n\n Example 1: <input [(ngModel)]="person.firstName" name="first">\n Example 2: <input [(ngModel)]="person.firstName" [ngModelOptions]="{standalone: true}">')},t.modelGroupParentException=function(){throw new Error("\n ngModelGroup cannot be used with a parent formGroup directive.\n\n Option 1: Use formGroupName instead of ngModelGroup (reactive strategy):\n\n "+xt.formGroupName+"\n\n Option 2: Use a regular form tag instead of the formGroup directive (template-driven strategy):\n\n "+xt.ngModelGroup)},t}(),Pt={provide:H,useExisting:n.i(I.forwardRef)(function(){return At})},At=function(t){function e(e,n,r){var o=t.call(this)||this;return o._parent=e,o._validators=n,o._asyncValidators=r,o}return F(e,t),e.prototype._checkParentType=function(){this._parent instanceof e||this._parent instanceof St||Tt.modelGroupParentException()},e}(ft);At.decorators=[{type:I.Directive,args:[{selector:"[ngModelGroup]",providers:[Pt],exportAs:"ngModelGroup"}]}],At.ctorParameters=function(){return[{type:H,decorators:[{type:I.Host},{type:I.SkipSelf}]},{type:Array,decorators:[{type:I.Optional},{type:I.Self},{type:I.Inject,args:[B]}]},{type:Array,decorators:[{type:I.Optional},{type:I.Self},{type:I.Inject,args:[q]}]}]},At.propDecorators={name:[{type:I.Input,args:["ngModelGroup"]}]};/**
* @license
* Copyright Google Inc. All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
var Ot={provide:tt,useExisting:n.i(I.forwardRef)(function(){return kt})},Mt=Promise.resolve(null),kt=function(t){function e(e,n,r,o){var i=t.call(this)||this;return i._control=new _t,i._registered=!1,i.update=new I.EventEmitter,i._parent=e,i._rawValidators=n||[],i._rawAsyncValidators=r||[],i.valueAccessor=P(i,o),i}return F(e,t),e.prototype.ngOnChanges=function(t){this._checkForErrors(),this._registered||this._setUpControl(),"isDisabled"in t&&this._updateDisabled(t),x(t,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)},e.prototype.ngOnDestroy=function(){this.formDirective&&this.formDirective.removeControl(this)},Object.defineProperty(e.prototype,"control",{get:function(){return this._control},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"path",{get:function(){return this._parent?m(this.name,this._parent):[this.name]},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"formDirective",{get:function(){return this._parent?this._parent.formDirective:null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"validator",{get:function(){return C(this._rawValidators)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"asyncValidator",{get:function(){return S(this._rawAsyncValidators)},enumerable:!0,configurable:!0}),e.prototype.viewToModelUpdate=function(t){this.viewModel=t,this.update.emit(t)},e.prototype._setUpControl=function(){this._isStandalone()?this._setUpStandalone():this.formDirective.addControl(this),this._registered=!0},e.prototype._isStandalone=function(){return!this._parent||!(!this.options||!this.options.standalone)},e.prototype._setUpStandalone=function(){g(this._control,this),this._control.updateValueAndValidity({emitEvent:!1})},e.prototype._checkForErrors=function(){this._isStandalone()||this._checkParentType(),this._checkName()},e.prototype._checkParentType=function(){!(this._parent instanceof At)&&this._parent instanceof ft?Tt.formGroupNameException():this._parent instanceof At||this._parent instanceof St||Tt.modelParentException()},e.prototype._checkName=function(){this.options&&this.options.name&&(this.name=this.options.name),this._isStandalone()||this.name||Tt.missingNameException()},e.prototype._updateValue=function(t){var e=this;Mt.then(function(){e.control.setValue(t,{emitViewToModelChange:!1})})},e.prototype._updateDisabled=function(t){var e=this,n=t.isDisabled.currentValue,r=""===n||n&&"false"!==n;Mt.then(function(){r&&!e.control.disabled?e.control.disable():!r&&e.control.disabled&&e.control.enable()})},e}(tt);kt.decorators=[{type:I.Directive,args:[{selector:"[ngModel]:not([formControlName]):not([formControl])",providers:[Ot],exportAs:"ngModel"}]}],kt.ctorParameters=function(){return[{type:H,decorators:[{type:I.Optional},{type:I.Host}]},{type:Array,decorators:[{type:I.Optional},{type:I.Self},{type:I.Inject,args:[B]}]},{type:Array,decorators:[{type:I.Optional},{type:I.Self},{type:I.Inject,args:[q]}]},{type:Array,decorators:[{type:I.Optional},{type:I.Self},{type:I.Inject,args:[W]}]}]},kt.propDecorators={name:[{type:I.Input}],isDisabled:[{type:I.Input,args:["disabled"]}],model:[{type:I.Input,args:["ngModel"]}],options:[{type:I.Input,args:["ngModelOptions"]}],update:[{type:I.Output,args:["ngModelChange"]}]};/**
* @license
* Copyright Google Inc. All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
var Nt=function(){function t(){}return t.controlParentException=function(){throw new Error("formControlName must be used with a parent formGroup directive. You'll want to add a formGroup\n directive and pass it an existing FormGroup instance (you can create one in your class).\n\n Example:\n\n "+xt.formControlName)},t.ngModelGroupException=function(){throw new Error('formControlName cannot be used with an ngModelGroup parent. It is only compatible with parents\n that also have a "form" prefix: formGroupName, formArrayName, or formGroup.\n\n Option 1: Update the parent to be formGroupName (reactive form strategy)\n\n '+xt.formGroupName+"\n\n Option 2: Use ngModel instead of formControlName (template-driven strategy)\n\n "+xt.ngModelGroup)},t.missingFormException=function(){throw new Error("formGroup expects a FormGroup instance. Please pass one in.\n\n Example:\n\n "+xt.formControlName)},t.groupParentException=function(){throw new Error("formGroupName must be used with a parent formGroup directive. You'll want to add a formGroup\n directive and pass it an existing FormGroup instance (you can create one in your class).\n\n Example:\n\n "+xt.formGroupName)},t.arrayParentException=function(){throw new Error("formArrayName must be used with a parent formGroup directive. You'll want to add a formGroup\n directive and pass it an existing FormGroup instance (you can create one in your class).\n\n Example:\n\n "+xt.formArrayName)},t.disabledAttrWarning=function(){console.warn("\n It looks like you're using the disabled attribute with a reactive form directive. If you set disabled to true\n when you set up this control in your component class, the disabled attribute will actually be set in the DOM for\n you. We recommend using this approach to avoid 'changed after checked' errors.\n \n Example: \n form = new FormGroup({\n first: new FormControl({value: 'Nancy', disabled: true}, Validators.required),\n last: new FormControl('Drew', Validators.required)\n });\n ")},t}(),It={provide:tt,useExisting:n.i(I.forwardRef)(function(){return Rt})},Rt=function(t){function e(e,n,r){var o=t.call(this)||this;return o.update=new I.EventEmitter,o._rawValidators=e||[],o._rawAsyncValidators=n||[],o.valueAccessor=P(o,r),o}return F(e,t),Object.defineProperty(e.prototype,"isDisabled",{set:function(t){Nt.disabledAttrWarning()},enumerable:!0,configurable:!0}),e.prototype.ngOnChanges=function(t){this._isControlChanged(t)&&(g(this.form,this),this.control.disabled&&this.valueAccessor.setDisabledState&&this.valueAccessor.setDisabledState(!0),this.form.updateValueAndValidity({emitEvent:!1})),x(t,this.viewModel)&&(this.form.setValue(this.model),this.viewModel=this.model)},Object.defineProperty(e.prototype,"path",{get:function(){return[]},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"validator",{get:function(){return C(this._rawValidators)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"asyncValidator",{get:function(){return S(this._rawAsyncValidators)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"control",{get:function(){return this.form},enumerable:!0,configurable:!0}),e.prototype.viewToModelUpdate=function(t){this.viewModel=t,this.update.emit(t)},e.prototype._isControlChanged=function(t){return t.hasOwnProperty("form")},e}(tt);Rt.decorators=[{type:I.Directive,args:[{selector:"[formControl]",providers:[It],exportAs:"ngForm"}]}],Rt.ctorParameters=function(){return[{type:Array,decorators:[{type:I.Optional},{type:I.Self},{type:I.Inject,args:[B]}]},{type:Array,decorators:[{type:I.Optional},{type:I.Self},{type:I.Inject,args:[q]}]},{type:Array,decorators:[{type:I.Optional},{type:I.Self},{type:I.Inject,args:[W]}]}]},Rt.propDecorators={form:[{type:I.Input,args:["formControl"]}],model:[{type:I.Input,args:["ngModel"]}],update:[{type:I.Output,args:["ngModelChange"]}],isDisabled:[{type:I.Input,args:["disabled"]}]};/**
* @license
* Copyright Google Inc. All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
var Dt={provide:H,useExisting:n.i(I.forwardRef)(function(){return Vt})},Vt=function(t){function e(e,n){var r=t.call(this)||this;return r._validators=e,r._asyncValidators=n,r._submitted=!1,r.directives=[],r.form=null,r.ngSubmit=new I.EventEmitter,r}return F(e,t),e.prototype.ngOnChanges=function(t){this._checkFormPresent(),t.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations())},Object.defineProperty(e.prototype,"submitted",{get:function(){return this._submitted},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"formDirective",{get:function(){return this},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"control",{get:function(){return this.form},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"path",{get:function(){return[]},enumerable:!0,configurable:!0}),e.prototype.addControl=function(t){var e=this.form.get(t.path);return g(e,t),e.updateValueAndValidity({emitEvent:!1}),this.directives.push(t),e},e.prototype.getControl=function(t){return this.form.get(t.path)},e.prototype.removeControl=function(t){k(this.directives,t)},e.prototype.addFormGroup=function(t){var e=this.form.get(t.path);b(e,t),e.updateValueAndValidity({emitEvent:!1})},e.prototype.removeFormGroup=function(t){},e.prototype.getFormGroup=function(t){return this.form.get(t.path)},e.prototype.addFormArray=function(t){var e=this.form.get(t.path);b(e,t),e.updateValueAndValidity({emitEvent:!1})},e.prototype.removeFormArray=function(t){},e.prototype.getFormArray=function(t){return this.form.get(t.path)},e.prototype.updateModel=function(t,e){this.form.get(t.path).setValue(e)},e.prototype.onSubmit=function(t){return this._submitted=!0,this.ngSubmit.emit(t),!1},e.prototype.onReset=function(){this.resetForm()},e.prototype.resetForm=function(t){void 0===t&&(t=void 0),this.form.reset(t),this._submitted=!1},e.prototype._updateDomValue=function(){var t=this;this.directives.forEach(function(e){var n=t.form.get(e.path);e._control!==n&&(_(e._control,e),n&&g(n,e),e._control=n)}),this.form._updateTreeValidity({emitEvent:!1})},e.prototype._updateRegistrations=function(){var t=this;this.form._registerOnCollectionChange(function(){return t._updateDomValue()}),this._oldForm&&this._oldForm._registerOnCollectionChange(function(){}),this._oldForm=this.form},e.prototype._updateValidators=function(){var t=C(this._validators);this.form.validator=z.compose([this.form.validator,t]);var e=S(this._asyncValidators);this.form.asyncValidator=z.composeAsync([this.form.asyncValidator,e])},e.prototype._checkFormPresent=function(){this.form||Nt.missingFormException()},e}(H);Vt.decorators=[{type:I.Directive,args:[{selector:"[formGroup]",providers:[Dt],host:{"(submit)":"onSubmit($event)","(reset)":"onReset()"},exportAs:"ngForm"}]}],Vt.ctorParameters=function(){return[{type:Array,decorators:[{type:I.Optional},{type:I.Self},{type:I.Inject,args:[B]}]},{type:Array,decorators:[{type:I.Optional},{type:I.Self},{type:I.Inject,args:[q]}]}]},Vt.propDecorators={form:[{type:I.Input,args:["formGroup"]}],ngSubmit:[{type:I.Output}]};/**
* @license
* Copyright Google Inc. All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
var Lt={provide:H,useExisting:n.i(I.forwardRef)(function(){return Ft})},Ft=function(t){function e(e,n,r){var o=t.call(this)||this;return o._parent=e,o._validators=n,o._asyncValidators=r,o}return F(e,t),e.prototype._checkParentType=function(){N(this._parent)&&Nt.groupParentException()},e}(ft);Ft.decorators=[{type:I.Directive,args:[{selector:"[formGroupName]",providers:[Lt]}]}],Ft.ctorParameters=function(){return[{type:H,decorators:[{type:I.Optional},{type:I.Host},{type:I.SkipSelf}]},{type:Array,decorators:[{type:I.Optional},{type:I.Self},{type:I.Inject,args:[B]}]},{type:Array,decorators:[{type:I.Optional},{type:I.Self},{type:I.Inject,args:[q]}]}]},Ft.propDecorators={name:[{type:I.Input,args:["formGroupName"]}]};var jt={provide:H,useExisting:n.i(I.forwardRef)(function(){return Ht})},Ht=function(t){function e(e,n,r){var o=t.call(this)||this;return o._parent=e,o._validators=n,o._asyncValidators=r,o}return F(e,t),e.prototype.ngOnInit=function(){this._checkParentType(),this.formDirective.addFormArray(this)},e.prototype.ngOnDestroy=function(){this.formDirective&&this.formDirective.removeFormArray(this)},Object.defineProperty(e.prototype,"control",{get:function(){return this.formDirective.getFormArray(this)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"formDirective",{get:function(){return this._parent?this._parent.formDirective:null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"path",{get:function(){return m(this.name,this._parent)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"validator",{get:function(){return C(this._validators)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"asyncValidator",{get:function(){return S(this._asyncValidators)},enumerable:!0,configurable:!0}),e.prototype._checkParentType=function(){N(this._parent)&&Nt.arrayParentException()},e}(H);Ht.decorators=[{type:I.Directive,args:[{selector:"[formArrayName]",providers:[jt]}]}],Ht.ctorParameters=function(){return[{type:H,decorators:[{type:I.Optional},{type:I.Host},{type:I.SkipSelf}]},{type:Array,decorators:[{type:I.Optional},{type:I.Self},{type:I.Inject,args:[B]}]},{type:Array,decorators:[{type:I.Optional},{type:I.Self},{type:I.Inject,args:[q]}]}]},Ht.propDecorators={name:[{type:I.Input,args:["formArrayName"]}]};/**
* @license
* Copyright Google Inc. All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
var Ut={provide:tt,useExisting:n.i(I.forwardRef)(function(){return Bt})},Bt=function(t){function e(e,n,r,o){var i=t.call(this)||this;return i._added=!1,i.update=new I.EventEmitter,i._parent=e,i._rawValidators=n||[],i._rawAsyncValidators=r||[],i.valueAccessor=P(i,o),i}return F(e,t),Object.defineProperty(e.prototype,"isDisabled",{set:function(t){Nt.disabledAttrWarning()},enumerable:!0,configurable:!0}),e.prototype.ngOnChanges=function(t){this._added||this._setUpControl(),x(t,this.viewModel)&&(this.viewModel=this.model,this.formDirective.updateModel(this,this.model))},e.prototype.ngOnDestroy=function(){this.formDirective&&this.formDirective.removeControl(this)},e.prototype.viewToModelUpdate=function(t){this.viewModel=t,this.update.emit(t)},Object.defineProperty(e.prototype,"path",{get:function(){return m(this.name,this._parent)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"formDirective",{get:function(){return this._parent?this._parent.formDirective:null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"validator",{get:function(){return C(this._rawValidators)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"asyncValidator",{get:function(){return S(this._rawAsyncValidators)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"control",{get:function(){return this._control},enumerable:!0,configurable:!0}),e.prototype._checkParentType=function(){!(this._parent instanceof Ft)&&this._parent instanceof ft?Nt.ngModelGroupException():this._parent instanceof Ft||this._parent instanceof Vt||this._parent instanceof Ht||Nt.controlParentException()},e.prototype._setUpControl=function(){this._checkParentType(),this._control=this.formDirective.addControl(this),this.control.disabled&&this.valueAccessor.setDisabledState&&this.valueAccessor.setDisabledState(!0),this._added=!0},e}(tt);Bt.decorators=[{type:I.Directive,args:[{selector:"[formControlName]",providers:[Ut]}]}],Bt.ctorParameters=function(){return[{type:H,decorators:[{type:I.Optional},{type:I.Host},{type:I.SkipSelf}]},{type:Array,decorators:[{type:I.Optional},{type:I.Self},{type:I.Inject,args:[B]}]},{type:Array,decorators:[{type:I.Optional},{type:I.Self},{type:I.Inject,args:[q]}]},{type:Array,decorators:[{type:I.Optional},{type:I.Self},{type:I.Inject,args:[W]}]}]},Bt.propDecorators={name:[{type:I.Input,args:["formControlName"]}],model:[{type:I.Input,args:["ngModel"]}],update:[{type:I.Output,args:["ngModelChange"]}],isDisabled:[{type:I.Input,args:["disabled"]}]};/**
* @license
* Copyright Google Inc. All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
var qt={provide:B,useExisting:n.i(I.forwardRef)(function(){return zt}),multi:!0},Gt={provide:B,useExisting:n.i(I.forwardRef)(function(){return Wt}),multi:!0},zt=function(){function t(){}return Object.defineProperty(t.prototype,"required",{get:function(){return this._required},set:function(t){this._required=null!=t&&!1!==t&&""+t!="false",this._onChange&&this._onChange()},enumerable:!0,configurable:!0}),t.prototype.validate=function(t){return this.required?z.required(t):null},t.prototype.registerOnValidatorChange=function(t){this._onChange=t},t}();zt.decorators=[{type:I.Directive,args:[{selector:":not([type=checkbox])[required][formControlName],:not([type=checkbox])[required][formControl],:not([type=checkbox])[required][ngModel]",providers:[qt],host:{"[attr.required]":'required ? "" : null'}}]}],zt.ctorParameters=function(){return[]},zt.propDecorators={required:[{type:I.Input}]};var Wt=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return F(e,t),e.prototype.validate=function(t){return this.required?z.requiredTrue(t):null},e}(zt);Wt.decorators=[{type:I.Directive,args:[{selector:"input[type=checkbox][required][formControlName],input[type=checkbox][required][formControl],input[type=checkbox][required][ngModel]",providers:[Gt],host:{"[attr.required]":'required ? "" : null'}}]}],Wt.ctorParameters=function(){return[]};var Kt={provide:B,useExisting:n.i(I.forwardRef)(function(){return Qt}),multi:!0},Qt=function(){function t(){}return Object.defineProperty(t.prototype,"email",{set:function(t){this._enabled=""===t||!0===t||"true"===t,this._onChange&&this._onChange()},enumerable:!0,configurable:!0}),t.prototype.validate=function(t){return this._enabled?z.email(t):null},t.prototype.registerOnValidatorChange=function(t){this._onChange=t},t}();Qt.decorators=[{type:I.Directive,args:[{selector:"[email][formControlName],[email][formControl],[email][ngModel]",providers:[Kt]}]}],Qt.ctorParameters=function(){return[]},Qt.propDecorators={email:[{type:I.Input}]};var Xt={provide:B,useExisting:n.i(I.forwardRef)(function(){return Zt}),multi:!0},Zt=function(){function t(){}return t.prototype.ngOnChanges=function(t){"minlength"in t&&(this._createValidator(),this._onChange&&this._onChange())},t.prototype.validate=function(t){return null==this.minlength?null:this._validator(t)},t.prototype.registerOnValidatorChange=function(t){this._onChange=t},t.prototype._createValidator=function(){this._validator=z.minLength(parseInt(this.minlength,10))},t}();Zt.decorators=[{type:I.Directive,args:[{selector:"[minlength][formControlName],[minlength][formControl],[minlength][ngModel]",providers:[Xt],host:{"[attr.minlength]":"minlength ? minlength : null"}}]}],Zt.ctorParameters=function(){return[]},Zt.propDecorators={minlength:[{type:I.Input}]};var Yt={provide:B,useExisting:n.i(I.forwardRef)(function(){return $t}),multi:!0},$t=function(){function t(){}return t.prototype.ngOnChanges=function(t){"maxlength"in t&&(this._createValidator(),this._onChange&&this._onChange())},t.prototype.validate=function(t){return null!=this.maxlength?this._validator(t):null},t.prototype.registerOnValidatorChange=function(t){this._onChange=t},t.prototype._createValidator=function(){this._validator=z.maxLength(parseInt(this.maxlength,10))},t}();$t.decorators=[{type:I.Directive,args:[{selector:"[maxlength][formControlName],[maxlength][formControl],[maxlength][ngModel]",providers:[Yt],host:{"[attr.maxlength]":"maxlength ? maxlength : null"}}]}],$t.ctorParameters=function(){return[]},$t.propDecorators={maxlength:[{type:I.Input}]};var Jt={provide:B,useExisting:n.i(I.forwardRef)(function(){return te}),multi:!0},te=function(){function t(){}return t.prototype.ngOnChanges=function(t){"pattern"in t&&(this._createValidator(),this._onChange&&this._onChange())},t.prototype.validate=function(t){return this._validator(t)},t.prototype.registerOnValidatorChange=function(t){this._onChange=t},t.prototype._createValidator=function(){this._validator=z.pattern(this.pattern)},t}();te.decorators=[{type:I.Directive,args:[{selector:"[pattern][formControlName],[pattern][formControl],[pattern][ngModel]",providers:[Jt],host:{"[attr.pattern]":"pattern ? pattern : null"}}]}],te.ctorParameters=function(){return[]},te.propDecorators={pattern:[{type:I.Input}]};/**
* @license
* Copyright Google Inc. All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
var ee=function(){function t(){}return t.prototype.group=function(t,e){void 0===e&&(e=null);var n=this._reduceControls(t),r=null!=e?e.validator:null,o=null!=e?e.asyncValidator:null;return new bt(n,r,o)},t.prototype.control=function(t,e,n){return new _t(t,e,n)},t.prototype.array=function(t,e,n){var r=this,o=t.map(function(t){return r._createControl(t)});return new wt(o,e,n)},t.prototype._reduceControls=function(t){var e=this,n={};return Object.keys(t).forEach(function(r){n[r]=e._createControl(t[r])}),n},t.prototype._createControl=function(t){if(t instanceof _t||t instanceof bt||t instanceof wt)return t;if(Array.isArray(t)){var e=t[0],n=t.length>1?t[1]:null,r=t.length>2?t[2]:null;return this.control(e,n,r)}return this.control(t)},t}();ee.decorators=[{type:I.Injectable}],ee.ctorParameters=function(){return[]};/**
* @license
* Copyright Google Inc. All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
var ne=new I.Version("4.1.1"),re=function(){function t(){}return t}();re.decorators=[{type:I.Directive,args:[{selector:"form:not([ngNoForm]):not([ngNativeValidate])",host:{novalidate:""}}]}],re.ctorParameters=function(){return[]};/**
* @license
* Copyright Google Inc. All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
var oe=[re,ut,pt,Y,J,it,Q,at,lt,rt,vt,mt,zt,Zt,$t,te,Wt,Qt],ie=[kt,At,St],se=[Rt,Vt,Bt,Ft,Ht],ae=function(){function t(){}return t}();ae.decorators=[{type:I.NgModule,args:[{declarations:oe,exports:oe}]}],ae.ctorParameters=function(){return[]};/**
* @license
* Copyright Google Inc. All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
var ue=function(){function t(){}return t}();ue.decorators=[{type:I.NgModule,args:[{declarations:ie,providers:[nt],exports:[ae,ie]}]}],ue.ctorParameters=function(){return[]};var ce=function(){function t(){}return t}();ce.decorators=[{type:I.NgModule,args:[{declarations:[se],providers:[ee,nt],exports:[ae,se]}]}],ce.ctorParameters=function(){return[]}},137:function(t,e,n){"use strict";var r=this&&this.__decorate||function(t,e,n,r){var o,i=arguments.length,s=i<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,r);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(s=(i<3?o(s):i>3?o(e,n,s):o(e,n))||s);return i>3&&s&&Object.defineProperty(e,n,s),s};Object.defineProperty(e,"__esModule",{value:!0});var o=n(20),i=function(){function t(){this.items=[{title:"Banaanid",price:1,quantity:0},{title:"Õunad",price:2,quantity:0}]}return t.prototype.increaseQuantity=function(t){t.quantity++},t.prototype.getTotal=function(){return this.items.map(function(t){return t.price*t.quantity}).reduce(function(t,e){return t+e},0)},t.prototype.decreaseQuantity=function(t){t.quantity>0&&t.quantity--},t}();i=r([o.Component({selector:"my-app",templateUrl:"app/app.html"})],i),e.AppComponent=i;!function(){function t(){}}()},138:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=function(){function t(){this.contacts=[]}return t.prototype.clone=function(t){return JSON.parse(JSON.stringify(t))},t.prototype.getContacts=function(){return Promise.resolve(this.clone(this.contacts))},t.prototype.getContact=function(t){return Promise.resolve(this.clone(this.contacts).filter(function(e){return e._id===t}).pop())},t.prototype.saveContact=function(t){return t._id?(this.contacts=this.contacts.map(function(e){return e._id===t._id?t:e}),Promise.resolve()):(t._id=(Math.random()+"A").substr(2),this.contacts.push(t),Promise.resolve())},t.prototype.deleteContact=function(t){return this.contacts=this.contacts.filter(function(e){return e._id!==t}),Promise.resolve()},t.prototype.deleteAllContacts=function(t){return this.contacts=this.contacts.filter(function(e){return-1===t.indexOf(e._id)}),Promise.resolve()},t}();e.MemContactService=r},139:function(t,e,n){"use strict";var r=this&&this.__decorate||function(t,e,n,r){var o,i=arguments.length,s=i<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,r);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(s=(i<3?o(s):i>3?o(e,n,s):o(e,n))||s);return i>3&&s&&Object.defineProperty(e,n,s),s},o=this&&this.__metadata||function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)};Object.defineProperty(e,"__esModule",{value:!0});var i=n(88),s=n(20),a=function(){function t(t,e){this.name=t,this.phone=e,this.selected=!1}return t}();e.Contact=a;var u=function(){function t(t){this.http=t}return t.prototype.getContacts=function(){return this.http.get("api/contacts").toPromise().then(function(t){return t.json()})},t.prototype.getContact=function(t){return this.http.get("api/contacts/"+t).toPromise().then(function(t){return t.json()})},t.prototype.saveContact=function(t){return this.http.post("api/contacts",t).toPromise().then(function(){return null})},t.prototype.deleteContact=function(t){return this.http.delete("api/contacts/"+t).toPromise().then(function(){return null})},t.prototype.deleteAllContacts=function(t){return this.http.post("api/contacts/delete",t).toPromise().then(function(){return null})},t}();u=r([s.Injectable(),o("design:paramtypes",[i.Http])],u),e.ContactService=u},140:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),n(131),n(132),n(133);var r=n(127),o=n(128);r.platformBrowserDynamic().bootstrapModule(o.AppModule)},20:function(t,e,n){"use strict";(function(t){function r(){if(!io){var t=oo.Symbol;if(t&&t.iterator)io=t.iterator;else for(var e=Object.getOwnPropertyNames(Map.prototype),n=0;n<e.length;++n){var r=e[n];"entries"!==r&&"size"!==r&&Map.prototype[r]===Map.prototype.entries&&(io=r)}}return io}function o(t){Zone.current.scheduleMicroTask("scheduleMicrotask",t)}function i(t,e){return t===e||"number"==typeof t&&"number"==typeof e&&isNaN(t)&&isNaN(e)}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();if(null==e)return""+e;var n=e.indexOf("\n");return-1===n?e:e.substring(0,n)}function a(t){return"function"==typeof t&&t.hasOwnProperty("annotation")&&(t=t.annotation),t}function u(t,e){if(t===Object||t===String||t===Function||t===Number||t===Array)throw new Error("Can not use native "+s(t)+" as constructor");if("function"==typeof t)return t;if(Array.isArray(t)){var n=t,r=n.length-1,o=t[r];if("function"!=typeof o)throw new Error("Last position of Class method array must be Function in key "+e+" was '"+s(o)+"'");if(r!=o.length)throw new Error("Number of annotations ("+r+") does not match number of arguments ("+o.length+") in the function: "+s(o));for(var i=[],u=0,c=n.length-1;u<c;u++){var l=[];i.push(l);var p=n[u];if(Array.isArray(p))for(var h=0;h<p.length;h++)l.push(a(p[h]));else"function"==typeof p?l.push(a(p)):l.push(p)}return ao.defineMetadata("parameters",i,o),o}throw new Error("Only Function or Array is supported in Class definition for key '"+e+"' is '"+s(t)+"'")}function c(t){var e=u(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: "+s(t.extends));e.prototype=n=Object.create(t.extends.prototype)}for(var r in t)"extends"!==r&&"prototype"!==r&&t.hasOwnProperty(r)&&(n[r]=u(t[r],r));this&&this.annotations instanceof Array&&ao.defineMetadata("annotations",this.annotations,e);var o=e.name;return o&&"constructor"!==o||(e.overriddenName="class"+so++),e}function l(t,e,n,r){function o(t){if(!ao||!ao.getOwnMetadata)throw"reflect-metadata shim is required when using class decorators";if(this instanceof o)return i.call(this,t),this;var e=new o(t),n="function"==typeof this&&Array.isArray(this.annotations)?this.annotations:[];n.push(e);var s=function(t){var n=ao.getOwnMetadata("annotations",t)||[];return n.push(e),ao.defineMetadata("annotations",n,t),t};return s.annotations=n,s.Class=c,r&&r(s),s}var i=p([e]);return n&&(o.prototype=Object.create(n.prototype)),o.prototype.toString=function(){return"@"+t},o.annotationCls=o,o}function p(t){return function(){for(var e=this,n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];t.forEach(function(t,r){var o=n[r];if(Array.isArray(t))e[t[0]]=void 0===o?t[1]:o;else for(var i in t)e[i]=o&&o.hasOwnProperty(i)?o[i]:t[i]})}}function h(t,e,n){function r(){function t(t,e,n){for(var r=ao.getOwnMetadata("parameters",t)||[];r.length<=n;)r.push(null);return r[n]=r[n]||[],r[n].push(i),ao.defineMetadata("parameters",r,t),t}for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];if(this instanceof r)return o.apply(this,e),this;var i=new(r.bind.apply(r,[void 0].concat(e)));return t.annotation=i,t}var o=p(e);return n&&(r.prototype=Object.create(n.prototype)),r.prototype.toString=function(){return"@"+t},r.annotationCls=r,r}function f(t,e,n){function r(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];if(this instanceof r)return o.apply(this,t),this;var n=new(r.bind.apply(r,[void 0].concat(t)));return function(t,e){var r=ao.getOwnMetadata("propMetadata",t.constructor)||{};r[e]=r.hasOwnProperty(e)&&r[e]||[],r[e].unshift(n),ao.defineMetadata("propMetadata",r,t.constructor)}}var o=p(e);return n&&(r.prototype=Object.create(n.prototype)),r.prototype.toString=function(){return"@"+t},r.annotationCls=r,r}function d(t){return null==t||t===vo.Default}/**
* @license
* Copyright Google Inc. All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
function y(t){return t.__forward_ref__=y,t.toString=function(){return s(this())},t}function v(t){return"function"==typeof t&&t.hasOwnProperty("__forward_ref__")&&t.__forward_ref__===y?t():t}function m(t){return t[qo]}function g(t){return t[Go]}function _(t){return t[zo]||b}function b(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];t.error.apply(t,e)}function w(t,e){var n=t+" caused by: "+(e instanceof Error?e.message:e),r=Error(n);return r[Go]=e,r}/**
* @license
* Copyright Google Inc. All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
function E(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 C(t){if(t.length>1){return" ("+E(t.slice().reverse()).map(function(t){return s(t.token)}).join(" -> ")+")"}return""}function S(t,e,n,r){var o=r?w("",r):Error();return o.addKey=x,o.keys=[e],o.injectors=[t],o.constructResolvingMessage=n,o.message=o.constructResolvingMessage(),o[Go]=r,o}function x(t,e){this.injectors.push(t),this.keys.push(e),this.message=this.constructResolvingMessage()}function T(t,e){return S(t,e,function(){return"No provider for "+s(this.keys[0].token)+"!"+C(this.keys)})}function P(t,e){return S(t,e,function(){return"Cannot instantiate cyclic dependency!"+C(this.keys)})}function A(t,e,n,r){return S(t,r,function(){var t=s(this.keys[0].token);return g(this).message+": Error during instantiation of "+t+"!"+C(this.keys)+"."},e)}function O(t){return Error("Invalid provider - only instances of Provider and Type are allowed, got: "+t)}function M(t,e){for(var n=[],r=0,o=e.length;r<o;r++){var i=e[r];i&&0!=i.length?n.push(i.map(s).join(" ")):n.push("?")}return Error("Cannot resolve all parameters for '"+s(t)+"'("+n.join(", ")+"). Make sure that all the parameters are decorated with Inject or have valid type annotations and that '"+s(t)+"' is decorated with Injectable.")}function k(t){return Error("Index "+t+" is out-of-bounds.")}function N(t,e){return Error("Cannot mix multi providers and regular providers, got: "+t+" "+e)}function I(t){return"function"==typeof t}function R(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 D(t){var e=Object.getPrototypeOf(t.prototype);return(e?e.constructor:null)||Object}function V(t){var e,n;if(t.useClass){var r=v(t.useClass);e=ei.factory(r),n=B(r)}else t.useExisting?(e=function(t){return t},n=[ni.fromKey(Ko.get(t.useExisting))]):t.useFactory?(e=t.useFactory,n=U(t.useFactory,t.deps)):(e=function(){return t.useValue},n=ri);return new ii(e,n)}function L(t){return new oi(Ko.get(t.provide),[V(t)],t.multi||!1)}function F(t){var e=H(t,[]),n=e.map(L),r=j(n,new Map);return Array.from(r.values())}function j(t,e){for(var n=0;n<t.length;n++){var r=t[n],o=e.get(r.key.id);if(o){if(r.multiProvider!==o.multiProvider)throw N(o,r);if(r.multiProvider)for(var i=0;i<r.resolvedFactories.length;i++)o.resolvedFactories.push(r.resolvedFactories[i]);else e.set(r.key.id,r)}else{var s=void 0;s=r.multiProvider?new oi(r.key,r.resolvedFactories.slice(),r.multiProvider):r,e.set(r.key.id,s)}}return e}function H(t,e){return t.forEach(function(t){if(t instanceof Zo)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 O(t);H(t,e)}}),e}function U(t,e){if(e){var n=e.map(function(t){return[t]});return e.map(function(e){return q(t,e,n)})}return B(t)}function B(t){var e=ei.parameters(t);if(!e)return[];if(e.some(function(t){return null==t}))throw M(t,e);return e.map(function(n){return q(t,n,e)})}function q(t,e,n){var r=null,o=!1;if(!Array.isArray(e))return e instanceof No?G(e.token,o,null):G(e,o,null);for(var i=null,s=0;s<e.length;++s){var a=e[s];a instanceof Zo?r=a:a instanceof No?r=a.token:a instanceof Io?o=!0:a instanceof Do||a instanceof Vo?i=a:a instanceof to&&(r=a)}if(null!=(r=v(r)))return G(r,o,i);throw M(t,n)}function G(t,e,n){return new ni(Ko.get(t),e,n)}function z(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}/**
* @license
* Copyright Google Inc. All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
/**
* @license
* Copyright Google Inc. All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
function W(t){return!!t&&"function"==typeof t.then}function K(t){return!!t&&"function"==typeof t.subscribe}function Q(){return""+X()+X()+X()}function X(){return String.fromCharCode(97+Math.floor(25*Math.random()))}function Z(){throw new Error("Runtime compiler is not loaded")}/**
* @license
* Copyright Google Inc. All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
function Y(t){var e=Error("No component factory found for "+s(t)+". Did you add it to @NgModule.entryComponents?");return e[xi]=t,e}function $(){var t=oo.wtf;return!(!t||!(Ai=t.trace))&&(Oi=Ai.events,!0)}function J(t,e){return void 0===e&&(e=null),Oi.createScope(t,e)}function tt(t,e){return Ai.leaveScope(t,e),e}function et(t,e){return Ai.beginTimeRange(t,e)}function nt(t){Ai.endTimeRange(t)}function rt(t,e){return null}function ot(t){Ki=t}function it(){if(Xi)throw new Error("Cannot enable prod mode after platform setup.");Qi=!1}function st(){return Xi=!0,Qi}function at(t){if(zi&&!zi.destroyed&&!zi.injector.get(Zi,!1))throw new Error("There can be only one platform. Destroy the previous one to create a new one.");zi=t.get($i);var e=t.get(di,null);return e&&e.forEach(function(t){return t()}),zi}function ut(t,e,n){void 0===n&&(n=[]);var r=new to("Platform: "+e);return function(e){void 0===e&&(e=[]);var o=pt();return o&&!o.injector.get(Zi,!1)||(t?t(n.concat(e).concat({provide:r,useValue:!0})):at(ai.resolveAndCreate(n.concat(e).concat({provide:r,useValue:!0})))),ct(r)}}function ct(t){var e=pt();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 lt(){zi&&!zi.destroyed&&zi.destroy()}function pt(){return zi&&!zi.destroyed?zi:null}function ht(t,e){try{var n=e();return W(n)?n.catch(function(e){throw t.handleError(e),e}):n}catch(e){throw t.handleError(e),e}}function ft(t,e){var n=t.indexOf(e);n>-1&&t.splice(n,1)}function dt(t,e){var n=ps.get(t);if(n)throw new Error("Duplicate module registered for "+t+" - "+n.moduleType.name+" vs "+e.moduleType.name);ps.set(t,e)}function yt(t){var e=ps.get(t);if(!e)throw new Error("No module with ID "+t+" loaded");return e}function vt(t){return t.reduce(function(t,e){var n=Array.isArray(e)?vt(e):e;return t.concat(n)},[])}function mt(t,e,n){if(!t)throw new Error("Cannot find '"+n+"' in '"+e+"'");return t}function gt(t){return t.map(function(t){return t.nativeElement})}function _t(t,e,n){t.childNodes.forEach(function(t){t instanceof Cs&&(e(t)&&n.push(t),_t(t,e,n))})}function bt(t,e,n){t instanceof Cs&&t.childNodes.forEach(function(t){e(t)&&n.push(t),t instanceof Cs&&bt(t,e,n)})}function wt(t){return Ss.get(t)||null}function Et(t){Ss.set(t.nativeNode,t)}function Ct(t){Ss.delete(t.nativeNode)}/**
* @license
* Copyright Google Inc. All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
function St(t,e){var n=xt(t),r=xt(e);if(n&&r)return Tt(t,e,St);var o=t&&("object"==typeof t||"function"==typeof t),s=e&&("object"==typeof e||"function"==typeof e);return!(n||!o||r||!s)||i(t,e)}function xt(t){return!!At(t)&&(Array.isArray(t)||!(t instanceof Map)&&r()in t)}function Tt(t,e,n){for(var o=t[r()](),i=e[r()]();;){var s=o.next(),a=i.next();if(s.done&&a.done)return!0;if(s.done||a.done)return!1;if(!n(s.value,a.value))return!1}}function Pt(t,e){if(Array.isArray(t))for(var n=0;n<t.length;n++)e(t[n]);else for(var o=t[r()](),i=void 0;!(i=o.next()).done;)e(i.value)}function At(t){return null!==t&&("function"==typeof t||"object"==typeof t)}function Ot(t,e,n){var r=t.previousIndex;if(null===r)return r;var o=0;return n&&r<n.length&&(o=n[r]),r+e+o}function Mt(t){return t.name||typeof t}/**
* @license
* Copyright Google Inc. All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
/**
* @license
* Copyright Google Inc. All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
function kt(){return ei}/**
* @license
* Copyright Google Inc. All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
function Nt(t,e){return t.nodes[e]}function It(t,e){return t.nodes[e]}function Rt(t,e){return t.nodes[e]}function Dt(t,e){return t.nodes[e]}function Vt(t,e){return t.nodes[e]}/**
* @license
* Copyright Google Inc. All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
function Lt(t,e,n,r){var o="ExpressionChangedAfterItHasBeenCheckedError: Expression has changed after it was checked. Previous value: '"+e+"'. Current value: '"+n+"'.";return r&&(o+=" It seems like the view has been created after its parent and its children have been dirty checked. Has it been created in a change detection hook ?"),jt(o,t)}function Ft(t,e){return t instanceof Error||(t=new Error(t.toString())),Ht(t,e),t}function jt(t,e){var n=new Error(t);return Ht(n,e),n}function Ht(t,e){t[qo]=e,t[zo]=e.logError.bind(e)}function Ut(t){return!!m(t)}function Bt(t){return new Error("ViewDestroyedError: Attempt to use a destroyed view: "+t)}function qt(t){var e=ta.get(t);return e||(e=s(t)+"_"+ta.size,ta.set(t,e)),e}function Gt(t,e,n,r){if(r instanceof xs){r=r.wrapped;var o=t.def.nodes[e].bindingIndex+n,i=t.oldValues[o];i instanceof xs&&(i=i.wrapped),t.oldValues[o]=new xs(i)}return r}function zt(t){return{id:ea,styles:t.styles,encapsulation:t.encapsulation,data:t.data}}function Wt(t){if(t&&t.id===ea){var e=null!=t.encapsulation&&t.encapsulation!==Ao.None||t.styles.length||Object.keys(t.data).length;t.id=e?"c"+ra++:na}return t&&t.id===na&&(t=null),t||null}function Kt(t,e,n,r){var o=t.oldValues;return!(!(2&t.state)&&i(o[e.bindingIndex+n],r))}function Qt(t,e,n,r){return!!Kt(t,e,n,r)&&(t.oldValues[e.bindingIndex+n]=r,!0)}function Xt(t,e,n,r){var o=t.oldValues[e.bindingIndex+n];if(1&t.state||!St(o,r))throw Lt($s.createDebugContext(t,e.index),o,r,0!=(1&t.state))}function Zt(t){for(var e=t;e;)2&e.def.flags&&(e.state|=8),e=e.viewContainerParent||e.parent}function Yt(t,e,n,r){return Zt(16777216&t.def.nodes[e].flags?It(t,e).componentView:t),$s.handleEvent(t,e,n,r)}function $t(t){if(t.parent){return It(t.parent,t.parentNodeDef.index)}return null}function Jt(t){return t.parent?t.parentNodeDef.parent:null}function te(t,e){switch(100673535&e.flags){case 1:return It(t,e.index).renderElement;case 2:return Nt(t,e.index).renderText}}function ee(t,e){return t?t+":"+e:e}function ne(t){return!!t.parent&&!!(16384&t.parentNodeDef.flags)}function re(t){return!(!t.parent||16384&t.parentNodeDef.flags)}function oe(t){return 1<<t%32}function ie(t){var e={},n=0,r={};return t&&t.forEach(function(t){var o=t[0],i=t[1];"number"==typeof o?(e[o]=i,n|=oe(o)):r[o]=i}),{matchedQueries:e,references:r,matchedQueryIds:n}}function se(t,e,n){var r=n.renderParent;return r?0==(1&r.flags)||0==(16777216&r.flags)||r.element.componentRendererType&&r.element.componentRendererType.encapsulation===Ao.Native?It(t,n.renderParent.index).renderElement:void 0:e}function ae(t){var e=oa.get(t);return e||(e=t(function(){return Js}),e.factory=t,oa.set(t,e)),e}function ue(t){var e=[];return ce(t,0,void 0,void 0,e),e}function ce(t,e,n,r,o){3===e&&(n=t.renderer.parentNode(te(t,t.def.lastRenderRootNode))),le(t,e,0,t.def.nodes.length-1,n,r,o)}function le(t,e,n,r,o,i,s){for(var a=n;a<=r;a++){var u=t.def.nodes[a];7&u.flags&&he(t,u,e,o,i,s),a+=u.childCount}}function pe(t,e,n,r,o,i){for(var s=t;s&&!ne(s);)s=s.parent;for(var a=s.parent,u=Jt(s),c=u.index+1,l=u.index+u.childCount,p=c;p<=l;p++){var h=a.def.nodes[p];h.ngContentIndex===e&&he(a,h,n,r,o,i),p+=h.childCount}if(!a.parent){var f=t.root.projectableNodes[e];if(f)for(var p=0;p<f.length;p++)fe(t,f[p],n,r,o,i)}}function he(t,e,n,r,o,i){if(4&e.flags)pe(t,e.ngContent.index,n,r,o,i);else{var s=te(t,e);if(3===n&&16777216&e.flags&&48&e.bindingFlags){if(16&e.bindingFlags&&fe(t,s,n,r,o,i),32&e.bindingFlags){var a=It(t,e.index).componentView;fe(a,s,n,r,o,i)}}else fe(t,s,n,r,o,i);if(8388608&e.flags)for(var u=It(t,e.index).viewContainer._embeddedViews,c=0;c<u.length;c++)ce(u[c],n,r,o,i);1&e.flags&&!e.element.name&&le(t,n,e.index+1,e.index+e.childCount,r,o,i)}}function fe(t,e,n,r,o,i){var s=t.renderer;switch(n){case 1:s.appendChild(r,e);break;case 2:s.insertBefore(r,e,o);break;case 3:s.removeChild(r,e);break;case 0:i.push(e)}}function de(t){if(":"===t[0]){var e=t.match(ia);return[e[1],e[2]]}return["",t]}function ye(t){for(var e=0,n=0;n<t.length;n++)e|=t[n].flags;return e}function ve(t,e){for(var n="",r=0;r<2*t;r+=2)n=n+e[r]+ge(e[r+1]);return n+e[2*t]}function me(t,e,n,r,o,i,s,a,u,c,l,p,h,f,d,y,v,m,g,_){switch(t){case 1:return e+ge(n)+r;case 2:return e+ge(n)+r+ge(o)+i;case 3:return e+ge(n)+r+ge(o)+i+ge(s)+a;case 4:return e+ge(n)+r+ge(o)+i+ge(s)+a+ge(u)+c;case 5:return e+ge(n)+r+ge(o)+i+ge(s)+a+ge(u)+c+ge(l)+p;case 6:return e+ge(n)+r+ge(o)+i+ge(s)+a+ge(u)+c+ge(l)+p+ge(h)+f;case 7:return e+ge(n)+r+ge(o)+i+ge(s)+a+ge(u)+c+ge(l)+p+ge(h)+f+ge(d)+y;case 8:return e+ge(n)+r+ge(o)+i+ge(s)+a+ge(u)+c+ge(l)+p+ge(h)+f+ge(d)+y+ge(v)+m;case 9:return e+ge(n)+r+ge(o)+i+ge(s)+a+ge(u)+c+ge(l)+p+ge(h)+f+ge(d)+y+ge(v)+m+ge(g)+_;default:throw new Error("Does not support more than 9 expressions")}}function ge(t){return null!=t?t.toString():""}/**
* @license
* Copyright Google Inc. All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
function _e(t,e,n,r,o,i){t|=1;var s=ie(e),a=s.matchedQueries,u=s.references;return{index:-1,parent:null,renderParent:null,bindingIndex:-1,outputIndex:-1,flags:t,childFlags:0,directChildFlags:0,childMatchedQueries:0,matchedQueries:a,matchedQueryIds:s.matchedQueryIds,references:u,ngContentIndex:n,childCount:r,bindings:[],bindingFlags:0,outputs:[],element:{ns:null,name:null,attrs:null,template:i?ae(i):null,componentProvider:null,componentView:null,componentRendererType:null,publicProviders:null,allProviders:null,handleEvent:o||Js},provider:null,text:null,query:null,ngContent:null}}function be(t,e,n,r,o,i,s,a,u,c,l){void 0===i&&(i=[]),u||(u=Js);var p=ie(e),h=p.matchedQueries,f=p.references,d=p.matchedQueryIds,y=null,v=null;o&&(I=de(o),y=I[0],v=I[1]),s=s||[];for(var m=new Array(s.length),g=0;g<s.length;g++){var _=s[g],b=_[0],w=_[1],E=_[2],C=de(w),S=C[0],x=C[1],T=void 0,P=void 0;switch(15&b){case 4:P=E;break;case 1:case 8:T=E}m[g]={flags:b,ns:S,name:x,nonMinifiedName:x,securityContext:T,suffix:P}}a=a||[];for(var A=new Array(a.length),g=0;g<a.length;g++){var O=a[g],M=O[0],k=O[1];A[g]={type:0,target:M,eventName:k,propName:null}}i=i||[];var N=i.map(function(t){var e=t[0],n=t[1],r=de(e);return[r[0],r[1],n]});return l=Wt(l),c&&(t|=16777216),t|=1,{index:-1,parent:null,renderParent:null,bindingIndex:-1,outputIndex:-1,flags:t,childFlags:0,directChildFlags:0,childMatchedQueries:0,matchedQueries:h,matchedQueryIds:d,references:f,ngContentIndex:n,childCount:r,bindings:m,bindingFlags:ye(m),outputs:A,element:{ns:y,name:v,attrs:N,template:null,componentProvider:null,componentView:c||null,componentRendererType:l,publicProviders:null,allProviders:null,handleEvent:u||Js},provider:null,text:null,query:null,ngContent:null};var I}function we(t,e,n){var r,o=n.element,i=t.root.selectorOrNode,s=t.renderer;if(t.parent||!i){r=o.name?s.createElement(o.name,o.ns):s.createComment("");var a=se(t,e,n);a&&s.appendChild(a,r)}else r=s.selectRootElement(i);if(o.attrs)for(var u=0;u<o.attrs.length;u++){var c=o.attrs[u],l=c[0],p=c[1],h=c[2];s.setAttribute(r,p,h,l)}return r}function Ee(t,e,n,r){for(var o=0;o<n.outputs.length;o++){var i=n.outputs[o],s=Ce(t,n.index,ee(i.target,i.eventName)),a=i.target,u=t;"component"===i.target&&(a=null,u=e);var c=u.renderer.listen(a||r,i.eventName,s);t.disposables[n.outputIndex+o]=c}}function Ce(t,e,n){return function(r){try{return Yt(t,e,n,r)}catch(e){t.root.errorHandler.handleError(e)}}}function Se(t,e,n,r,o,i,s,a,u,c,l,p){var h=e.bindings.length,f=!1;return h>0&&Te(t,e,0,n)&&(f=!0),h>1&&Te(t,e,1,r)&&(f=!0),h>2&&Te(t,e,2,o)&&(f=!0),h>3&&Te(t,e,3,i)&&(f=!0),h>4&&Te(t,e,4,s)&&(f=!0),h>5&&Te(t,e,5,a)&&(f=!0),h>6&&Te(t,e,6,u)&&(f=!0),h>7&&Te(t,e,7,c)&&(f=!0),h>8&&Te(t,e,8,l)&&(f=!0),h>9&&Te(t,e,9,p)&&(f=!0),f}function xe(t,e,n){for(var r=!1,o=0;o<n.length;o++)Te(t,e,o,n[o])&&(r=!0);return r}function Te(t,e,n,r){if(!Qt(t,e,n,r))return!1;var o=e.bindings[n],i=It(t,e.index),s=i.renderElement,a=o.name;switch(15&o.flags){case 1:Pe(t,o,s,o.ns,a,r);break;case 2:Ae(t,s,a,r);break;case 4:Oe(t,o,s,a,r);break;case 8:Me(16777216&e.flags&&32&o.flags?i.componentView:t,o,s,a,r)}return!0}function Pe(t,e,n,r,o,i){var s=e.securityContext,a=s?t.root.sanitizer.sanitize(s,i):i;a=null!=a?a.toString():null;var u=t.renderer;null!=i?u.setAttribute(n,o,a,r):u.removeAttribute(n,o,r)}function Ae(t,e,n,r){var o=t.renderer;r?o.addClass(e,n):o.removeClass(e,n)}function Oe(t,e,n,r,o){var i=t.root.sanitizer.sanitize(Xs.STYLE,o);if(null!=i){i=i.toString();var s=e.suffix;null!=s&&(i+=s)}else i=null;var a=t.renderer;null!=i?a.setStyle(n,r,i):a.removeStyle(n,r)}function Me(t,e,n,r,o){var i=e.securityContext,s=i?t.root.sanitizer.sanitize(i,o):o;t.renderer.setProperty(n,r,s)}/**
* @license
* Copyright Google Inc. All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
function ke(t,e){return{index:-1,parent:null,renderParent:null,bindingIndex:-1,outputIndex:-1,flags:4,childFlags:0,directChildFlags:0,childMatchedQueries:0,matchedQueries:{},matchedQueryIds:0,references:{},ngContentIndex:t,childCount:0,bindings:[],bindingFlags:0,outputs:[],element:null,provider:null,text:null,query:null,ngContent:{index:e}}}function Ne(t,e,n){var r=se(t,e,n);if(r){pe(t,n.ngContent.index,1,r,null,void 0)}}/**
* @license
* Copyright Google Inc. All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
function Ie(t,e,n,r){var o=e.viewContainer._embeddedViews;null!==n&&void 0!==n||(n=o.length),r.viewContainerParent=t,Fe(o,n,r);var i=$t(r);if(i&&i!==e){var s=i.template._projectedViews;s||(s=i.template._projectedViews=[]),s.push(r)}$s.dirtyParentQueries(r),Ve(e,n>0?o[n-1]:null,r)}function Re(t,e){var n=t.viewContainer._embeddedViews;if((null==e||e>=n.length)&&(e=n.length-1),e<0)return null;var r=n[e];r.viewContainerParent=null,je(n,e);var o=$t(r);if(o&&o!==t){var i=o.template._projectedViews;je(i,i.indexOf(r))}return $s.dirtyParentQueries(r),Le(r),r}function De(t,e,n){var r=t.viewContainer._embeddedViews,o=r[e];return je(r,e),null==n&&(n=r.length),Fe(r,n,o),$s.dirtyParentQueries(o),Le(o),Ve(t,n>0?r[n-1]:null,o),o}function Ve(t,e,n){var r=e?te(e,e.def.lastRenderRootNode):t.renderElement;ce(n,2,n.renderer.parentNode(r),n.renderer.nextSibling(r),void 0)}function Le(t){ce(t,3,null,null,void 0)}function Fe(t,e,n){e>=t.length?t.push(n):t.splice(e,0,n)}function je(t,e){e>=t.length-1?t.pop():t.splice(e,1)}function He(t,e,n,r,o,i){return new ca(t,e,n,r,o,i)}function Ue(t){return t.viewDefFactory}function Be(t,e,n){return new pa(t,e,n)}function qe(t){return new ha(t)}function Ge(t,e){return new fa(t,e)}function ze(t,e){return new da(t,e)}function We(t,e){var n=t.def.nodes[e];if(1&n.flags){var r=It(t,n.index);return n.element.template?r.template:r.renderElement}if(2&n.flags)return Nt(t,n.index).renderText;if(10120&n.flags)return Rt(t,n.index).instance;throw new Error("Illegal state: read nodeValue for node index "+e)}function Ke(t){return new ya(t.renderer)}function Qe(t,e,n,r,o,i,s){var a=[];if(i)for(var u in i){var c=i[u],l=c[0],p=c[1];a[l]={flags:8,name:u,nonMinifiedName:p,ns:null,securityContext:null,suffix:null}}var h=[];if(s)for(var f in s)h.push({type:1,propName:f,target:null,eventName:s[f]});return t|=8192,Ye(t,e,n,r,r,o,a,h)}function Xe(t,e,n){return t|=8,Ye(t,null,0,e,e,n)}function Ze(t,e,n,r,o){return Ye(t,e,0,n,r,o)}function Ye(t,e,n,r,o,i,s,a){var u=ie(e),c=u.matchedQueries,l=u.references,p=u.matchedQueryIds;a||(a=[]),s||(s=[]);var h=i.map(function(t){var e,n;return Array.isArray(t)?(n=t[0],e=t[1]):(n=0,e=t),{flags:n,token:e,tokenKey:qt(e)}});return{index:-1,parent:null,renderParent:null,bindingIndex:-1,outputIndex:-1,flags:t,childFlags:0,directChildFlags:0,childMatchedQueries:0,matchedQueries:c,matchedQueryIds:p,references:l,ngContentIndex:-1,childCount:n,bindings:s,bindingFlags:ye(s),outputs:a,element:null,provider:{token:r,tokenKey:qt(r),value:o,deps:h},text:null,query:null,ngContent:null}}function $e(t,e){return 2048&e.flags?Ca:on(t,e)}function Je(t,e){for(var n=t;n.parent&&!ne(n);)n=n.parent;return sn(n.parent,Jt(n),!0,e.provider.value,e.provider.deps)}function tn(t,e){var n=(16384&e.flags)>0,r=sn(t,e.parent,n,e.provider.value,e.provider.deps);if(e.outputs.length)for(var o=0;o<e.outputs.length;o++){var i=e.outputs[o],s=r[i.propName].subscribe(en(t,e.parent.index,i.eventName));t.disposables[e.outputIndex+o]=s.unsubscribe.bind(s)}return r}function en(t,e,n){return function(r){try{return Yt(t,e,n,r)}catch(e){t.root.errorHandler.handleError(e)}}}function nn(t,e,n,r,o,i,s,a,u,c,l,p){var h=Rt(t,e.index),f=h.instance,d=!1,y=void 0,v=e.bindings.length;return v>0&&Kt(t,e,0,n)&&(d=!0,y=ln(t,h,e,0,n,y)),v>1&&Kt(t,e,1,r)&&(d=!0,y=ln(t,h,e,1,r,y)),v>2&&Kt(t,e,2,o)&&(d=!0,y=ln(t,h,e,2,o,y)),v>3&&Kt(t,e,3,i)&&(d=!0,y=ln(t,h,e,3,i,y)),v>4&&Kt(t,e,4,s)&&(d=!0,y=ln(t,h,e,4,s,y)),v>5&&Kt(t,e,5,a)&&(d=!0,y=ln(t,h,e,5,a,y)),v>6&&Kt(t,e,6,u)&&(d=!0,y=ln(t,h,e,6,u,y)),v>7&&Kt(t,e,7,c)&&(d=!0,y=ln(t,h,e,7,c,y)),v>8&&Kt(t,e,8,l)&&(d=!0,y=ln(t,h,e,8,l,y)),v>9&&Kt(t,e,9,p)&&(d=!0,y=ln(t,h,e,9,p,y)),y&&f.ngOnChanges(y),2&t.state&&32768&e.flags&&f.ngOnInit(),131072&e.flags&&f.ngDoCheck(),d}function rn(t,e,n){for(var r=Rt(t,e.index),o=r.instance,i=!1,s=void 0,a=0;a<n.length;a++)Kt(t,e,a,n[a])&&(i=!0,s=ln(t,r,e,a,n[a],s));return s&&o.ngOnChanges(s),2&t.state&&32768&e.flags&&o.ngOnInit(),131072&e.flags&&o.ngDoCheck(),i}function on(t,e){var n,r=(4096&e.flags)>0,o=e.provider;switch(100673535&e.flags){case 256:n=sn(t,e.parent,r,o.value,o.deps);break;case 512:n=an(t,e.parent,r,o.value,o.deps);break;case 1024:n=un(t,e.parent,r,o.deps[0]);break;case 128:n=o.value}return n}function sn(t,e,n,r,o){var i,s=o.length;switch(s){case 0:i=new r;break;case 1:i=new r(un(t,e,n,o[0]));break;case 2:i=new r(un(t,e,n,o[0]),un(t,e,n,o[1]));break;case 3:i=new r(un(t,e,n,o[0]),un(t,e,n,o[1]),un(t,e,n,o[2]));break;default:for(var a=new Array(s),u=0;u<s;u++)a[u]=un(t,e,n,o[u]);i=new(r.bind.apply(r,[void 0].concat(a)))}return i}function an(t,e,n,r,o){var i,s=o.length;switch(s){case 0:i=r();break;case 1:i=r(un(t,e,n,o[0]));break;case 2:i=r(un(t,e,n,o[0]),un(t,e,n,o[1]));break;case 3:i=r(un(t,e,n,o[0]),un(t,e,n,o[1]),un(t,e,n,o[2]));break;default:for(var a=Array(s),u=0;u<s;u++)a[u]=un(t,e,n,o[u]);i=r.apply(void 0,a)}return i}function un(t,e,n,r,o){if(void 0===o&&(o=Uo.THROW_IF_NOT_FOUND),8&r.flags)return r.token;var i=t;2&r.flags&&(o=null);var s=r.tokenKey;for(s===wa&&(n=!(!e||!e.element.componentView)),e&&1&r.flags&&(n=!1,e=e.parent);t;){if(e)switch(s){case va:var a=cn(t,e,n);return Ke(a);case ma:var a=cn(t,e,n);return a.renderer;case ga:return new cs(It(t,e.index).renderElement);case _a:return It(t,e.index).viewContainer;case ba:if(e.element.template)return It(t,e.index).template;break;case wa:return qe(cn(t,e,n));case Ea:return ze(t,e);default:var u=(n?e.element.allProviders:e.element.publicProviders)[s];if(u){var c=Rt(t,u.index);return c.instance===Ca&&(c.instance=on(t,u)),c.instance}}n=ne(t),e=Jt(t),t=t.parent}var l=i.root.injector.get(r.token,Sa);return l!==Sa||o===Sa?l:i.root.ngModule.injector.get(r.token,o)}function cn(t,e,n){var r;if(n)r=It(t,e.index).componentView;else for(r=t;r.parent&&!ne(r);)r=r.parent;return r}function ln(t,e,n,r,o,i){if(16384&n.flags){var s=It(t,n.parent.index).componentView;2&s.def.flags&&(s.state|=8)}var a=n.bindings[r],u=a.name;if(e.instance[u]=o,262144&n.flags){i=i||{};var c=t.oldValues[n.bindingIndex+r];c instanceof xs&&(c=c.wrapped);i[n.bindings[r].nonMinifiedName]=new Ps(c,o,0!=(2&t.state))}return t.oldValues[n.bindingIndex+r]=o,i}function pn(t,e){if(t.def.nodeFlags&e)for(var n=t.def.nodes,r=0;r<n.length;r++){var o=n[r],i=o.parent;for(!i&&o.flags&e&&fn(t,r,o.flags&e),0==(o.childFlags&e)&&(r+=o.childCount);i&&1&i.flags&&r===i.index+i.childCount;)i.directChildFlags&e&&hn(t,i,e),i=i.parent}}function hn(t,e,n){for(var r=e.index+1;r<=e.index+e.childCount;r++){var o=t.def.nodes[r];o.flags&n&&fn(t,r,o.flags&n),r+=o.childCount}}function fn(t,e,n){var r=Rt(t,e).instance;r!==Ca&&($s.setCurrentNode(t,e),524288&n&&r.ngAfterContentInit(),1048576&n&&r.ngAfterContentChecked(),2097152&n&&r.ngAfterViewInit(),4194304&n&&r.ngAfterViewChecked(),65536&n&&r.ngOnDestroy())}/**
* @license
* Copyright Google Inc. All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
function dn(t){return mn(64,new Array(t+1))}function yn(t){return mn(16,new Array(t))}function vn(t){return mn(32,t)}function mn(t,e){for(var n=new Array(e.length),r=0;r<e.length;r++){var o=e[r];n[r]={flags:8,name:o,ns:null,nonMinifiedName:o,securityContext:null,suffix:null}}return{index:-1,parent:null,renderParent:null,bindingIndex:-1,outputIndex:-1,flags:t,childFlags:0,directChildFlags:0,childMatchedQueries:0,matchedQueries:{},matchedQueryIds:0,references:{},ngContentIndex:-1,childCount:0,bindings:n,bindingFlags:ye(n),outputs:[],element:null,provider:null,text:null,query:null,ngContent:null}}function gn(t,e){return{value:void 0}}function _n(t,e,n,r,o,i,s,a,u,c,l,p){var h=e.bindings,f=!1,d=h.length;if(d>0&&Qt(t,e,0,n)&&(f=!0),d>1&&Qt(t,e,1,r)&&(f=!0),d>2&&Qt(t,e,2,o)&&(f=!0),d>3&&Qt(t,e,3,i)&&(f=!0),d>4&&Qt(t,e,4,s)&&(f=!0),d>5&&Qt(t,e,5,a)&&(f=!0),d>6&&Qt(t,e,6,u)&&(f=!0),d>7&&Qt(t,e,7,c)&&(f=!0),d>8&&Qt(t,e,8,l)&&(f=!0),d>9&&Qt(t,e,9,p)&&(f=!0),f){var y=Dt(t,e.index),v=void 0;switch(100673535&e.flags){case 16:v=new Array(h.length),d>0&&(v[0]=n),d>1&&(v[1]=r),d>2&&(v[2]=o),d>3&&(v[3]=i),d>4&&(v[4]=s),d>5&&(v[5]=a),d>6&&(v[6]=u),d>7&&(v[7]=c),d>8&&(v[8]=l),d>9&&(v[9]=p);break;case 32:v={},d>0&&(v[h[0].name]=n),d>1&&(v[h[1].name]=r),d>2&&(v[h[2].name]=o),d>3&&(v[h[3].name]=i),d>4&&(v[h[4].name]=s),d>5&&(v[h[5].name]=a),d>6&&(v[h[6].name]=u),d>7&&(v[h[7].name]=c),d>8&&(v[h[8].name]=l),d>9&&(v[h[9].name]=p);break;case 64:var m=n;switch(d){case 1:v=m.transform(n);break;case 2:v=m.transform(r);break;case 3:v=m.transform(r,o);break;case 4:v=m.transform(r,o,i);break;case 5:v=m.transform(r,o,i,s);break;case 6:v=m.transform(r,o,i,s,a);break;case 7:v=m.transform(r,o,i,s,a,u);break;case 8:v=m.transform(r,o,i,s,a,u,c);break;case 9:v=m.transform(r,o,i,s,a,u,c,l);break;case 10:v=m.transform(r,o,i,s,a,u,c,l,p)}}y.value=v}return f}function bn(t,e,n){for(var r=e.bindings,o=!1,i=0;i<n.length;i++)Qt(t,e,i,n[i])&&(o=!0);if(o){var s=Dt(t,e.index),a=void 0;switch(100673535&e.flags){case 16:a=n;break;case 32:a={};for(var i=0;i<n.length;i++)a[r[i].name]=n[i];break;case 64:var u=n[0],c=n.slice(1);a=u.transform.apply(u,c)}s.value=a}return o}/**
* @license
* Copyright Google Inc. All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
function wn(t,e,n){var r=[];for(var o in n){var i=n[o];r.push({propName:o,bindingType:i})}return{index:-1,parent:null,renderParent:null,bindingIndex:-1,outputIndex:-1,flags:t,childFlags:0,directChildFlags:0,childMatchedQueries:0,ngContentIndex:-1,matchedQueries:{},matchedQueryIds:0,references:{},childCount:0,bindings:[],bindingFlags:0,outputs:[],element:null,provider:null,text:null,query:{id:e,filterId:oe(e),bindings:r},ngContent:null}}function En(){return new hs}function Cn(t){for(var e=t.def.nodeMatchedQueries;t.parent&&re(t);){var n=t.parentNodeDef;t=t.parent;for(var r=n.index+n.childCount,o=0;o<=r;o++){var i=t.def.nodes[o];33554432&i.flags&&268435456&i.flags&&(i.query.filterId&e)===i.query.filterId&&Vt(t,o).setDirty(),!(1&i.flags&&o+i.childCount<n.index)&&33554432&i.childFlags&&268435456&i.childFlags||(o+=i.childCount)}}if(67108864&t.def.nodeFlags)for(var o=0;o<t.def.nodes.length;o++){var i=t.def.nodes[o];67108864&i.flags&&268435456&i.flags&&Vt(t,o).setDirty(),o+=i.childCount}}function Sn(t,e){var n=Vt(t,e.index);if(n.dirty){var r,o=void 0;if(33554432&e.flags){var i=e.parent.parent;o=xn(t,i.index,i.index+i.childCount,e.query,[]),r=Rt(t,e.parent.index).instance}else 67108864&e.flags&&(o=xn(t,0,t.def.nodes.length-1,e.query,[]),r=t.component);n.reset(o);for(var s=e.query.bindings,a=!1,u=0;u<s.length;u++){var c=s[u],l=void 0;switch(c.bindingType){case 0:l=n.first;break;case 1:l=n,a=!0}r[c.propName]=l}a&&n.notifyOnChanges()}}function xn(t,e,n,r,o){for(var i=e;i<=n;i++){var s=t.def.nodes[i],a=s.matchedQueries[r.id];if(null!=a&&o.push(Tn(t,s,a)),1&s.flags&&s.element.template&&(s.element.template.nodeMatchedQueries&r.filterId)===r.filterId){var u=It(t,i);if(8388608&s.flags)for(var c=u.viewContainer._embeddedViews,l=0;l<c.length;l++){var p=c[l],h=$t(p);h&&h===u&&xn(p,0,p.def.nodes.length-1,r,o)}var f=u.template._projectedViews;if(f)for(var l=0;l<f.length;l++){var d=f[l];xn(d,0,d.def.nodes.length-1,r,o)}}(s.childMatchedQueries&r.filterId)!==r.filterId&&(i+=s.childCount)}return o}function Tn(t,e,n){if(null!=n){var r=void 0;switch(n){case 1:r=It(t,e.index).renderElement;break;case 0:r=new cs(It(t,e.index).renderElement);break;case 2:r=It(t,e.index).template;break;case 3:r=It(t,e.index).viewContainer;break;case 4:r=Rt(t,e.index).instance}return r}}/**
* @license
* Copyright Google Inc. All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
function Pn(t,e){for(var n=new Array(e.length-1),r=1;r<e.length;r++)n[r-1]={flags:8,name:null,ns:null,nonMinifiedName:null,securityContext:null,suffix:e[r]};return{index:-1,parent:null,renderParent:null,bindingIndex:-1,outputIndex:-1,flags:2,childFlags:0,directChildFlags:0,childMatchedQueries:0,matchedQueries:{},matchedQueryIds:0,references:{},ngContentIndex:t,childCount:0,bindings:n,bindingFlags:ye(n),outputs:[],element:null,provider:null,text:{prefix:e[0]},query:null,ngContent:null}}function An(t,e,n){var r,o=t.renderer;r=o.createText(n.text.prefix);var i=se(t,e,n);return i&&o.appendChild(i,r),{renderText:r}}function On(t,e,n,r,o,i,s,a,u,c,l,p){var h=!1,f=e.bindings,d=f.length;if(d>0&&Qt(t,e,0,n)&&(h=!0),d>1&&Qt(t,e,1,r)&&(h=!0),d>2&&Qt(t,e,2,o)&&(h=!0),d>3&&Qt(t,e,3,i)&&(h=!0),d>4&&Qt(t,e,4,s)&&(h=!0),d>5&&Qt(t,e,5,a)&&(h=!0),d>6&&Qt(t,e,6,u)&&(h=!0),d>7&&Qt(t,e,7,c)&&(h=!0),d>8&&Qt(t,e,8,l)&&(h=!0),d>9&&Qt(t,e,9,p)&&(h=!0),h){var y=e.text.prefix;d>0&&(y+=kn(n,f[0])),d>1&&(y+=kn(r,f[1])),d>2&&(y+=kn(o,f[2])),d>3&&(y+=kn(i,f[3])),d>4&&(y+=kn(s,f[4])),d>5&&(y+=kn(a,f[5])),d>6&&(y+=kn(u,f[6])),d>7&&(y+=kn(c,f[7])),d>8&&(y+=kn(l,f[8])),d>9&&(y+=kn(p,f[9]));var v=Nt(t,e.index).renderText;t.renderer.setValue(v,y)}return h}function Mn(t,e,n){for(var r=e.bindings,o=!1,i=0;i<n.length;i++)Qt(t,e,i,n[i])&&(o=!0);if(o){for(var s="",i=0;i<n.length;i++)s+=kn(n[i],r[i]);s=e.text.prefix+s;var a=Nt(t,e.index).renderText;t.renderer.setValue(a,s)}return o}function kn(t,e){return(null!=t?t.toString():"")+e.suffix}/**
* @license
* Copyright Google Inc. All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
function Nn(t,e,n,r){for(var o=0,i=0,s=0,a=0,u=0,c=null,l=!1,p=!1,h=null,f=0;f<e.length;f++){for(;c&&f>c.index+c.childCount;){var d=c.parent;d&&(d.childFlags|=c.childFlags,d.childMatchedQueries|=c.childMatchedQueries),c=d}var y=e[f];y.index=f,y.parent=c,y.bindingIndex=o,y.outputIndex=i;var v=void 0;if(v=c&&1&c.flags&&!c.element.name?c.renderParent:c,y.renderParent=v,y.element){var m=y.element;m.publicProviders=c?c.element.publicProviders:Object.create(null),m.allProviders=m.publicProviders,l=!1,p=!1}if(In(c,y,e.length),s|=y.flags,u|=y.matchedQueryIds,y.element&&y.element.template&&(u|=y.element.template.nodeMatchedQueries),c?(c.childFlags|=y.flags,c.directChildFlags|=y.flags,c.childMatchedQueries|=y.matchedQueryIds,y.element&&y.element.template&&(c.childMatchedQueries|=y.element.template.nodeMatchedQueries)):a|=y.flags,o+=y.bindings.length,i+=y.outputs.length,!v&&3&y.flags&&(h=y),10112&y.flags){l||(l=!0,c.element.publicProviders=Object.create(c.element.publicProviders),c.element.allProviders=c.element.publicProviders);var g=0!=(4096&y.flags),_=0!=(16384&y.flags);!g||_?c.element.publicProviders[y.provider.tokenKey]=y:(p||(p=!0,c.element.allProviders=Object.create(c.element.publicProviders)),c.element.allProviders[y.provider.tokenKey]=y),_&&(c.element.componentProvider=y)}y.childCount&&(c=y)}for(;c;){var d=c.parent;d&&(d.childFlags|=c.childFlags,d.childMatchedQueries|=c.childMatchedQueries),c=d}var b=function(t,n,r,o){return e[n].element.handleEvent(t,r,o)};return{factory:null,nodeFlags:s,rootNodeFlags:a,nodeMatchedQueries:u,flags:t,nodes:e,updateDirectives:n||Js,updateRenderer:r||Js,handleEvent:b||Js,bindingCount:o,outputCount:i,lastRenderRootNode:h}}function In(t,e,n){var r=e.element&&e.element.template;if(r){if(!r.lastRenderRootNode)throw new Error("Illegal State: Embedded templates without nodes are not allowed!");if(r.lastRenderRootNode&&8388608&r.lastRenderRootNode.flags)throw new Error("Illegal State: Last root node of a template can't have embedded views, at index "+e.index+"!")}if(10112&e.flags){if(0==(1&(t?t.flags:0)))throw new Error("Illegal State: Provider/Directive nodes need to be children of elements or anchors, at index "+e.index+"!")}if(e.query){if(33554432&e.flags&&(!t||0==(8192&t.flags)))throw new Error("Illegal State: Content Query nodes need to be children of directives, at index "+e.index+"!");if(67108864&e.flags&&t)throw new Error("Illegal State: View Query nodes have to be top level nodes, at index "+e.index+"!")}if(e.childCount){var o=t?t.index+t.childCount:n-1;if(e.index<=o&&e.index+e.childCount>o)throw new Error("Illegal State: childCount of node leads outside of parent, at index "+e.index+"!")}}function Rn(t,e,n){var r=Vn(t.root,t.renderer,t,e,e.element.template);return Ln(r,t.component,n),Fn(r),r}function Dn(t,e,n){var r=Vn(t,t.renderer,null,null,e);return Ln(r,n,n),Fn(r),r}function Vn(t,e,n,r,o){var i=new Array(o.nodes.length),s=o.outputCount?new Array(o.outputCount):null;return{def:o,parent:n,viewContainerParent:null,parentNodeDef:r,context:null,component:null,nodes:i,state:13,root:t,renderer:e,oldValues:new Array(o.bindingCount),disposables:s}}function Ln(t,e,n){t.component=e,t.context=n}function Fn(t){var e;if(ne(t)){var n=t.parentNodeDef;e=It(t.parent,n.parent.index).renderElement}for(var r=t.def,o=t.nodes,i=0;i<r.nodes.length;i++){var s=r.nodes[i];$s.setCurrentNode(t,i);var a=void 0;switch(100673535&s.flags){case 1:var u=we(t,e,s),c=void 0;if(16777216&s.flags){var l=ae(s.element.componentView),p=s.element.componentRendererType,h=void 0;h=p?t.root.rendererFactory.createRenderer(u,p):t.root.renderer,c=Vn(t.root,h,t,s.element.componentProvider,l)}Ee(t,c,s,u),a={renderElement:u,componentView:c,viewContainer:null,template:s.element.template?Ge(t,s):void 0},8388608&s.flags&&(a.viewContainer=Be(t,s,a));break;case 2:a=An(t,e,s);break;case 256:case 512:case 1024:case 128:var f=$e(t,s);a={instance:f};break;case 8:var f=Je(t,s);a={instance:f};break;case 8192:var f=tn(t,s);if(a={instance:f},16384&s.flags){Ln(It(t,s.parent.index).componentView,f,f)}break;case 16:case 32:case 64:a=gn(t,s);break;case 33554432:case 67108864:a=En();break;case 4:Ne(t,e,s),a=void 0}o[i]=a}Zn(t,xa.CreateViewNodes),Jn(t,100663296,134217728,0)}function jn(t){$s.updateDirectives(t,1),Yn(t,xa.CheckNoChanges),$s.updateRenderer(t,1),Zn(t,xa.CheckNoChanges)}function Hn(t){1&t.state?(t.state&=-2,t.state|=2):t.state&=-3,$s.updateDirectives(t,0),Yn(t,xa.CheckAndUpdate),Jn(t,33554432,268435456,0),pn(t,1048576|(2&t.state?524288:0)),$s.updateRenderer(t,0),Zn(t,xa.CheckAndUpdate),Jn(t,67108864,268435456,0),pn(t,4194304|(2&t.state?2097152:0)),2&t.def.flags&&(t.state&=-9)}function Un(t,e,n,r,o,i,s,a,u,c,l,p,h){return 0===n?Bn(t,e,r,o,i,s,a,u,c,l,p,h):qn(t,e,r)}function Bn(t,e,n,r,o,i,s,a,u,c,l,p){var h=!1;switch(100673535&e.flags){case 1:h=Se(t,e,n,r,o,i,s,a,u,c,l,p);break;case 2:h=On(t,e,n,r,o,i,s,a,u,c,l,p);break;case 8192:h=nn(t,e,n,r,o,i,s,a,u,c,l,p);break;case 16:case 32:case 64:h=_n(t,e,n,r,o,i,s,a,u,c,l,p)}return h}function qn(t,e,n){var r=!1;switch(100673535&e.flags){case 1:r=xe(t,e,n);break;case 2:r=Mn(t,e,n);break;case 8192:r=rn(t,e,n);break;case 16:case 32:case 64:r=bn(t,e,n)}if(r)for(var o=e.bindings.length,i=e.bindingIndex,s=t.oldValues,a=0;a<o;a++)s[i+a]=n[a];return r}function Gn(t,e,n,r,o,i,s,a,u,c,l,p,h){return 0===n?zn(t,e,r,o,i,s,a,u,c,l,p,h):Wn(t,e,r),!1}function zn(t,e,n,r,o,i,s,a,u,c,l,p){var h=e.bindings.length;h>0&&Xt(t,e,0,n),h>1&&Xt(t,e,1,r),h>2&&Xt(t,e,2,o),h>3&&Xt(t,e,3,i),h>4&&Xt(t,e,4,s),h>5&&Xt(t,e,5,a),h>6&&Xt(t,e,6,u),h>7&&Xt(t,e,7,c),h>8&&Xt(t,e,8,l),h>9&&Xt(t,e,9,p)}function Wn(t,e,n){for(var r=0;r<n.length;r++)Xt(t,e,r,n[r])}function Kn(t,e){if(Vt(t,e.index).dirty)throw Lt($s.createDebugContext(t,e.index),"Query "+e.query.id+" not dirty","Query "+e.query.id+" dirty",0!=(1&t.state))}function Qn(t){if(!(16&t.state)){if(Yn(t,xa.Destroy),Zn(t,xa.Destroy),pn(t,65536),t.disposables)for(var e=0;e<t.disposables.length;e++)t.disposables[e]();t.renderer.destroyNode&&Xn(t),ne(t)&&t.renderer.destroy(),t.state|=16}}function Xn(t){for(var e=t.def.nodes.length,n=0;n<e;n++){var r=t.def.nodes[n];1&r.flags?t.renderer.destroyNode(It(t,n).renderElement):2&r.flags&&t.renderer.destroyNode(Nt(t,n).renderText)}}function Zn(t,e){var n=t.def;if(16777216&n.nodeFlags)for(var r=0;r<n.nodes.length;r++){var o=n.nodes[r];16777216&o.flags?$n(It(t,r).componentView,e):0==(16777216&o.childFlags)&&(r+=o.childCount)}}function Yn(t,e){var n=t.def;if(8388608&n.nodeFlags)for(var r=0;r<n.nodes.length;r++){var o=n.nodes[r];if(8388608&o.flags)for(var i=It(t,r).viewContainer._embeddedViews,s=0;s<i.length;s++)$n(i[s],e);else 0==(8388608&o.childFlags)&&(r+=o.childCount)}}function $n(t,e){var n=t.state;switch(e){case xa.CheckNoChanges:12==(12&n)&&0==(16&n)&&jn(t);break;case xa.CheckAndUpdate:12==(12&n)&&0==(16&n)&&Hn(t);break;case xa.Destroy:Qn(t);break;case xa.CreateViewNodes:Fn(t)}}function Jn(t,e,n,r){if(t.def.nodeFlags&e&&t.def.nodeFlags&n)for(var o=t.def.nodes.length,i=0;i<o;i++){var s=t.def.nodes[i];if(s.flags&e&&s.flags&n)switch($s.setCurrentNode(t,s.index),r){case 0:Sn(t,s);break;case 1:Kn(t,s)}s.childFlags&e&&s.childFlags&n||(i+=s.childCount)}}function tr(){if(!Ta){Ta=!0;var t=st()?nr():er();$s.setCurrentNode=t.setCurrentNode,$s.createRootView=t.createRootView,$s.createEmbeddedView=t.createEmbeddedView,$s.checkAndUpdateView=t.checkAndUpdateView,$s.checkNoChangesView=t.checkNoChangesView,$s.destroyView=t.destroyView,$s.resolveDep=un,$s.createDebugContext=t.createDebugContext,$s.handleEvent=t.handleEvent,$s.updateDirectives=t.updateDirectives,$s.updateRenderer=t.updateRenderer,$s.dirtyParentQueries=Cn}}function er(){return{setCurrentNode:function(){},createRootView:rr,createEmbeddedView:Rn,checkAndUpdateView:Hn,checkNoChangesView:jn,destroyView:Qn,createDebugContext:function(t,e){return new Na(t,e)},handleEvent:function(t,e,n,r){return t.def.handleEvent(t,e,n,r)},updateDirectives:function(t,e){return t.def.updateDirectives(0===e?sr:ar,t)},updateRenderer:function(t,e){return t.def.updateRenderer(0===e?sr:ar,t)}}}function nr(){return{setCurrentNode:hr,createRootView:or,createEmbeddedView:ur,checkAndUpdateView:cr,checkNoChangesView:lr,destroyView:pr,createDebugContext:function(t,e){return new Na(t,e)},handleEvent:fr,updateDirectives:dr,updateRenderer:yr}}function rr(t,e,n,r,o,i){return Dn(ir(t,o,o.injector.get(ss),e,n),r,i)}function or(t,e,n,r,o,i){var s=o.injector.get(ss),a=ir(t,o,new Ia(s),e,n);return Tr(Pa.create,Dn,null,[a,r,i])}function ir(t,e,n,r,o){var i=e.injector.get(Zs),s=e.injector.get(Wo);return{ngModule:e,injector:t,projectableNodes:r,selectorOrNode:o,sanitizer:i,rendererFactory:n,renderer:n.createRenderer(null,null),errorHandler:s}}function sr(t,e,n,r,o,i,s,a,u,c,l,p,h){var f=t.def.nodes[e];return Un(t,f,n,r,o,i,s,a,u,c,l,p,h),112&f.flags?Dt(t,e).value:void 0}function ar(t,e,n,r,o,i,s,a,u,c,l,p,h){var f=t.def.nodes[e];return Gn(t,f,n,r,o,i,s,a,u,c,l,p,h),112&f.flags?Dt(t,e).value:void 0}function ur(t,e,n){return Tr(Pa.create,Rn,null,[t,e,n])}function cr(t){return Tr(Pa.detectChanges,Hn,null,[t])}function lr(t){return Tr(Pa.checkNoChanges,jn,null,[t])}function pr(t){return Tr(Pa.destroy,Qn,null,[t])}function hr(t,e){Oa=t,Ma=e}function fr(t,e,n,r){return hr(t,e),Tr(Pa.handleEvent,t.def.handleEvent,null,[t,e,n,r])}function dr(t,e){function n(t,n,r){for(var o=[],i=3;i<arguments.length;i++)o[i-3]=arguments[i];var s=t.def.nodes[n];return 0===e?vr(t,s,r,o):mr(t,s,r,o),8192&s.flags&&hr(t,wr(t,n)),112&s.flags?Dt(t,s.index).value:void 0}if(16&t.state)throw Bt(Pa[Aa]);return hr(t,wr(t,0)),t.def.updateDirectives(n,t)}function yr(t,e){function n(t,n,r){for(var o=[],i=3;i<arguments.length;i++)o[i-3]=arguments[i];var s=t.def.nodes[n];return 0===e?vr(t,s,r,o):mr(t,s,r,o),3&s.flags&&hr(t,Er(t,n)),112&s.flags?Dt(t,s.index).value:void 0}if(16&t.state)throw Bt(Pa[Aa]);return hr(t,Er(t,0)),t.def.updateRenderer(n,t)}function vr(t,e,n,r){if(Un.apply(void 0,[t,e,n].concat(r))){var o=1===n?r[0]:r;if(8192&e.flags){for(var i={},s=0;s<e.bindings.length;s++){var a=e.bindings[s],u=o[s];8&a.flags&&(i[gr(a.nonMinifiedName)]=br(u))}var c=e.parent,l=It(t,c.index).renderElement;if(c.element.name)for(var p in i){var u=i[p];null!=u?t.renderer.setAttribute(l,p,u):t.renderer.removeAttribute(l,p)}else t.renderer.setValue(l,"bindings="+JSON.stringify(i,null,2))}}}function mr(t,e,n,r){Gn.apply(void 0,[t,e,n].concat(r))}function gr(t){return"ng-reflect-"+(t=_r(t.replace(/[$@]/g,"_")))}function _r(t){return t.replace(ka,function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return"-"+t[1].toLowerCase()})}function br(t){try{return null!=t?t.toString().slice(0,30):t}catch(t){return"[ERROR] Exception while trying to serialize the value"}}function wr(t,e){for(var n=e;n<t.def.nodes.length;n++){var r=t.def.nodes[n];if(8192&r.flags&&r.bindings&&r.bindings.length)return n}return null}function Er(t,e){for(var n=e;n<t.def.nodes.length;n++){var r=t.def.nodes[n];if(3&r.flags&&r.bindings&&r.bindings.length)return n}return null}function Cr(t,e){for(var n=-1,r=0;r<=e;r++){3&t.nodes[r].flags&&n++}return n}function Sr(t){for(;t&&!ne(t);)t=t.parent;return t.parent?It(t.parent,Jt(t).index):null}function xr(t,e,n){for(var r in e.references)n[r]=Tn(t,e,e.references[r])}function Tr(t,e,n,r){var o=Aa,i=Oa,s=Ma;try{Aa=t;var a=e.apply(n,r);return Oa=i,Ma=s,Aa=o,a}catch(t){if(Ut(t)||!Oa)throw t;throw Ft(t,Pr())}}function Pr(){return Oa?new Na(Oa,Ma):null}/**
* @license
* Copyright Google Inc. All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
/**
* @license
* Copyright Google Inc. All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
function Ar(){return Us}function Or(){return Bs}function Mr(t){return t||"en-US"}function kr(){tr()}/**
* @license
* Copyright Google Inc. All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
/**
* @license
* Copyright Google Inc. All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
function Nr(t,e){return{name:t,definitions:e}}function Ir(t,e){return void 0===e&&(e=null),{type:4,styles:e,timings:t}}function Rr(t){return{type:3,steps:t}}function Dr(t){return{type:2,steps:t}}function Vr(t){return{type:6,styles:t}}function Lr(t,e){return{type:0,name:t,styles:e}}function Fr(t){return{type:5,steps:t}}function jr(t,e){return{type:1,expr:t,animation:e}}function Hr(t,e){return Nr(t,e)}function Ur(t,e){return Ir(t,e)}function Br(t){return Rr(t)}function qr(t){return Dr(t)}function Gr(t){return Vr(t)}function zr(t,e){return Lr(t,e)}function Wr(t){return Fr(t)}function Kr(t,e){return jr(t,e)}Object.defineProperty(e,"__esModule",{value:!0});var Qr=n(9),Xr=(n.n(Qr),n(303)),Zr=(n.n(Xr),n(310)),Yr=(n.n(Zr),n(83));n.n(Yr);n.d(e,"Class",function(){return c}),n.d(e,"createPlatform",function(){return at}),n.d(e,"assertPlatform",function(){return ct}),n.d(e,"destroyPlatform",function(){return lt}),n.d(e,"getPlatform",function(){return pt}),n.d(e,"PlatformRef",function(){return $i}),n.d(e,"ApplicationRef",function(){return ts}),n.d(e,"enableProdMode",function(){return it}),n.d(e,"isDevMode",function(){return st}),n.d(e,"createPlatformFactory",function(){return ut}),n.d(e,"NgProbeToken",function(){return Yi}),n.d(e,"APP_ID",function(){return hi}),n.d(e,"PACKAGE_ROOT_URL",function(){return mi}),n.d(e,"PLATFORM_INITIALIZER",function(){return di}),n.d(e,"PLATFORM_ID",function(){return yi}),n.d(e,"APP_BOOTSTRAP_LISTENER",function(){return vi}),n.d(e,"APP_INITIALIZER",function(){return li}),n.d(e,"ApplicationInitStatus",function(){return pi}),n.d(e,"DebugElement",function(){return Cs}),n.d(e,"DebugNode",function(){return Es}),n.d(e,"asNativeElements",function(){return gt}),n.d(e,"getDebugNode",function(){return wt}),n.d(e,"Testability",function(){return qi}),n.d(e,"TestabilityRegistry",function(){return Gi}),n.d(e,"setTestabilityGetter",function(){return ot}),n.d(e,"TRANSLATIONS",function(){return Ws}),n.d(e,"TRANSLATIONS_FORMAT",function(){return Ks}),n.d(e,"LOCALE_ID",function(){return zs}),n.d(e,"MissingTranslationStrategy",function(){return Qs}),n.d(e,"ApplicationModule",function(){return Da}),n.d(e,"wtfCreateScope",function(){return Li}),n.d(e,"wtfLeave",function(){return Fi}),n.d(e,"wtfStartTimeRange",function(){return ji}),n.d(e,"wtfEndTimeRange",function(){return Hi}),n.d(e,"Type",function(){return Zo}),n.d(e,"EventEmitter",function(){return Ui}),n.d(e,"ErrorHandler",function(){return Wo}),n.d(e,"Sanitizer",function(){return Zs}),n.d(e,"SecurityContext",function(){return Xs}),n.d(e,"ANALYZE_FOR_ENTRY_COMPONENTS",function(){return uo}),n.d(e,"Attribute",function(){return co}),n.d(e,"ContentChild",function(){return ho}),n.d(e,"ContentChildren",function(){return po}),n.d(e,"Query",function(){return lo}),n.d(e,"ViewChild",function(){return yo}),n.d(e,"ViewChildren",function(){return fo}),n.d(e,"Component",function(){return _o}),n.d(e,"Directive",function(){return go}),n.d(e,"HostBinding",function(){return Co}),n.d(e,"HostListener",function(){return So}),n.d(e,"Input",function(){return wo}),n.d(e,"Output",function(){return Eo}),n.d(e,"Pipe",function(){return bo}),n.d(e,"CUSTOM_ELEMENTS_SCHEMA",function(){return xo}),n.d(e,"NO_ERRORS_SCHEMA",function(){return To}),n.d(e,"NgModule",function(){return Po}),n.d(e,"ViewEncapsulation",function(){return Ao}),n.d(e,"Version",function(){return Mo}),n.d(e,"VERSION",function(){return ko}),n.d(e,"forwardRef",function(){return y}),n.d(e,"resolveForwardRef",function(){return v}),n.d(e,"Injector",function(){return Uo}),n.d(e,"ReflectiveInjector",function(){return ai}),n.d(e,"ResolvedReflectiveFactory",function(){return ii}),n.d(e,"ReflectiveKey",function(){return Ko}),n.d(e,"InjectionToken",function(){return to}),n.d(e,"OpaqueToken",function(){return Jr}),n.d(e,"Inject",function(){return No}),n.d(e,"Optional",function(){return Io}),n.d(e,"Injectable",function(){return Ro}),n.d(e,"Self",function(){return Do}),n.d(e,"SkipSelf",function(){return Vo}),n.d(e,"Host",function(){return Lo}),n.d(e,"NgZone",function(){return Bi}),n.d(e,"RenderComponentType",function(){return ns}),n.d(e,"Renderer",function(){return os}),n.d(e,"Renderer2",function(){return us}),n.d(e,"RendererFactory2",function(){return ss}),n.d(e,"RendererStyleFlags2",function(){return as}),n.d(e,"RootRenderer",function(){return is}),n.d(e,"COMPILER_OPTIONS",function(){return wi}),n.d(e,"Compiler",function(){return bi}),n.d(e,"CompilerFactory",function(){return Ei}),n.d(e,"ModuleWithComponentFactories",function(){return _i}),n.d(e,"ComponentFactory",function(){return Si}),n.d(e,"ComponentRef",function(){return Ci}),n.d(e,"ComponentFactoryResolver",function(){return Pi}),n.d(e,"ElementRef",function(){return cs}),n.d(e,"NgModuleFactory",function(){return Ii}),n.d(e,"NgModuleRef",function(){return Ni}),n.d(e,"NgModuleFactoryLoader",function(){return ls}),n.d(e,"getModuleFactory",function(){return yt}),n.d(e,"QueryList",function(){return hs}),n.d(e,"SystemJsNgModuleLoader",function(){return ys}),n.d(e,"SystemJsNgModuleLoaderConfig",function(){return fs}),n.d(e,"TemplateRef",function(){return vs}),n.d(e,"ViewContainerRef",function(){return ms}),n.d(e,"EmbeddedViewRef",function(){return bs}),n.d(e,"ViewRef",function(){return _s}),n.d(e,"ChangeDetectionStrategy",function(){return vo}),n.d(e,"ChangeDetectorRef",function(){return gs}),n.d(e,"DefaultIterableDiffer",function(){return Ms}),n.d(e,"IterableDiffers",function(){return Ls}),n.d(e,"KeyValueDiffers",function(){return Fs}),n.d(e,"SimpleChange",function(){return Ps}),n.d(e,"WrappedValue",function(){return xs}),n.d(e,"platformCore",function(){return Gs}),n.d(e,"ɵALLOW_MULTIPLE_PLATFORMS",function(){return Zi}),n.d(e,"ɵAPP_ID_RANDOM_PROVIDER",function(){return fi}),n.d(e,"ɵValueUnwrapper",function(){return Ts}),n.d(e,"ɵdevModeEqual",function(){return St}),n.d(e,"ɵisListLikeIterable",function(){return xt}),n.d(e,"ɵChangeDetectorStatus",function(){return mo}),n.d(e,"ɵisDefaultChangeDetectionStrategy",function(){return d}),n.d(e,"ɵConsole",function(){return gi}),n.d(e,"ɵERROR_COMPONENT_TYPE",function(){return Bo}),n.d(e,"ɵComponentFactory",function(){return Si}),n.d(e,"ɵCodegenComponentFactoryResolver",function(){return Mi}),n.d(e,"ɵLIFECYCLE_HOOKS_VALUES",function(){return La}),n.d(e,"ɵLifecycleHooks",function(){return Va}),n.d(e,"ɵViewMetadata",function(){return Oo}),n.d(e,"ɵReflector",function(){return ti}),n.d(e,"ɵreflector",function(){return ei}),n.d(e,"ɵReflectionCapabilities",function(){return $o}),n.d(e,"ɵReflectorReader",function(){return Jo}),n.d(e,"ɵRenderDebugInfo",function(){return rs}),n.d(e,"ɵglobal",function(){return oo}),n.d(e,"ɵlooseIdentical",function(){return i}),n.d(e,"ɵstringify",function(){return s}),n.d(e,"ɵmakeDecorator",function(){return l}),n.d(e,"ɵisObservable",function(){return K}),n.d(e,"ɵisPromise",function(){return W}),n.d(e,"ɵNOT_FOUND_CHECK_ONLY_ELEMENT_INJECTOR",function(){return Sa}),n.d(e,"ɵNgModuleInjector",function(){return Di}),n.d(e,"ɵregisterModuleFactory",function(){return dt}),n.d(e,"ɵEMPTY_ARRAY",function(){return sa}),n.d(e,"ɵEMPTY_MAP",function(){return aa}),n.d(e,"ɵand",function(){return _e}),n.d(e,"ɵccf",function(){return He}),n.d(e,"ɵcrt",function(){return zt}),n.d(e,"ɵdid",function(){return Qe}),n.d(e,"ɵeld",function(){return be}),n.d(e,"ɵelementEventFullName",function(){return ee}),n.d(e,"ɵgetComponentViewDefinitionFactory",function(){return Ue}),n.d(e,"ɵinlineInterpolate",function(){return me}),n.d(e,"ɵinterpolate",function(){return ve}),n.d(e,"ɵncd",function(){return ke}),n.d(e,"ɵnov",function(){return We}),n.d(e,"ɵpid",function(){return Xe}),n.d(e,"ɵprd",function(){return Ze}),n.d(e,"ɵpad",function(){return yn}),n.d(e,"ɵpod",function(){return vn}),n.d(e,"ɵppd",function(){return dn}),n.d(e,"ɵqud",function(){return wn}),n.d(e,"ɵted",function(){return Pn}),n.d(e,"ɵunv",function(){return Gt}),n.d(e,"ɵvid",function(){return Nn}),n.d(e,"AUTO_STYLE",function(){return Fa}),n.d(e,"trigger",function(){return Hr}),n.d(e,"animate",function(){return Ur}),n.d(e,"group",function(){return Br}),n.d(e,"sequence",function(){return qr}),n.d(e,"style",function(){return Gr}),n.d(e,"state",function(){return zr}),n.d(e,"keyframes",function(){return Wr}),n.d(e,"transition",function(){return Kr}),n.d(e,"ɵba",function(){return Ir}),n.d(e,"ɵbb",function(){return Rr}),n.d(e,"ɵbf",function(){return Fr}),n.d(e,"ɵbc",function(){return Dr}),n.d(e,"ɵbe",function(){return Lr}),n.d(e,"ɵbd",function(){return Vr}),n.d(e,"ɵbg",function(){return jr}),n.d(e,"ɵz",function(){return Nr}),n.d(e,"ɵo",function(){return kr}),n.d(e,"ɵl",function(){return Ar}),n.d(e,"ɵm",function(){return Or}),n.d(e,"ɵn",function(){return Mr}),n.d(e,"ɵf",function(){return es}),n.d(e,"ɵg",function(){return Q}),n.d(e,"ɵh",function(){return Us}),n.d(e,"ɵi",function(){return Bs}),n.d(e,"ɵj",function(){return As}),n.d(e,"ɵk",function(){return Rs}),n.d(e,"ɵc",function(){return ui}),n.d(e,"ɵd",function(){return ni}),n.d(e,"ɵe",function(){return F}),n.d(e,"ɵp",function(){return Vi}),n.d(e,"ɵr",function(){return J}),n.d(e,"ɵq",function(){return $}),n.d(e,"ɵu",function(){return nt}),n.d(e,"ɵs",function(){return tt}),n.d(e,"ɵt",function(){return et}),n.d(e,"ɵa",function(){return h}),n.d(e,"ɵb",function(){return f}),n.d(e,"ɵw",function(){return Ye}),n.d(e,"ɵx",function(){return Ys});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)},Jr=function(){function t(t){this._desc=t}return t.prototype.toString=function(){return"Token "+this._desc},t}(),to=function(t){function e(e){return t.call(this,e)||this}return $r(e,t),e.prototype.toString=function(){return"InjectionToken "+this._desc},e}(Jr),eo="undefined"!=typeof window&&window,no="undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self,ro=void 0!==t&&t,oo=eo||ro||no,io=null,so=0,ao=oo.Reflect,uo=new to("AnalyzeForEntryComponents"),co=h("Attribute",[["attributeName",void 0]]),lo=function(){function t(){}return t}(),po=f("ContentChildren",[["selector",void 0],{first:!1,isViewQuery:!1,descendants:!1,read:void 0}],lo),ho=f("ContentChild",[["selector",void 0],{first:!0,isViewQuery:!1,descendants:!0,read:void 0}],lo),fo=f("ViewChildren",[["selector",void 0],{first:!1,isViewQuery:!0,descendants:!0,read:void 0}],lo),yo=f("ViewChild",[["selector",void 0],{first:!0,isViewQuery:!0,descendants:!0,read:void 0}],lo),vo={};vo.OnPush=0,vo.Default=1,vo[vo.OnPush]="OnPush",vo[vo.Default]="Default";var mo={};mo.CheckOnce=0,mo.Checked=1,mo.CheckAlways=2,mo.Detached=3,mo.Errored=4,mo.Destroyed=5,mo[mo.CheckOnce]="CheckOnce",mo[mo.Checked]="Checked",mo[mo.CheckAlways]="CheckAlways",mo[mo.Detached]="Detached",mo[mo.Errored]="Errored",mo[mo.Destroyed]="Destroyed";/**
* @license
* Copyright Google Inc. All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
var go=l("Directive",{selector:void 0,inputs:void 0,outputs:void 0,host:void 0,providers:void 0,exportAs:void 0,queries:void 0}),_o=l("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:vo.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},go),bo=l("Pipe",{name:void 0,pure:!0}),wo=f("Input",[["bindingPropertyName",void 0]]),Eo=f("Output",[["bindingPropertyName",void 0]]),Co=f("HostBinding",[["hostPropertyName",void 0]]),So=f("HostListener",[["eventName",void 0],["args",[]]]),xo={name:"custom-elements"},To={name:"no-errors-schema"},Po=l("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}),Ao={};Ao.Emulated=0,Ao.Native=1,Ao.None=2,Ao[Ao.Emulated]="Emulated",Ao[Ao.Native]="Native",Ao[Ao.None]="None";var Oo=function(){function t(t){var e=void 0===t?{}:t,n=e.templateUrl,r=e.template,o=e.encapsulation,i=e.styles,s=e.styleUrls,a=e.animations,u=e.interpolation;this.templateUrl=n,this.template=r,this.styleUrls=s,this.styles=i,this.encapsulation=o,this.animations=a,this.interpolation=u}return t}(),Mo=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}(),ko=new Mo("4.1.1"),No=h("Inject",[["token",void 0]]),Io=h("Optional",[]),Ro=l("Injectable",[]),Do=h("Self",[]),Vo=h("SkipSelf",[]),Lo=h("Host",[]),Fo=new Object,jo=Fo,Ho=function(){function t(){}return t.prototype.get=function(t,e){if(void 0===e&&(e=Fo),e===Fo)throw new Error("No provider for "+s(t)+"!");return e},t}(),Uo=function(){function t(){}return t.prototype.get=function(t,e){},t.prototype.get=function(t,e){},t}();Uo.THROW_IF_NOT_FOUND=Fo,Uo.NULL=new Ho;/**
* @license
* Copyright Google Inc. All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
var Bo="ngComponentType",qo="ngDebugContext",Go="ngOriginalError",zo="ngErrorLogger",Wo=function(){function t(t){this._console=console}return t.prototype.handleError=function(t){var e=this._findOriginalError(t),n=this._findContext(t),r=_(t);r(this._console,"ERROR",t),e&&r(this._console,"ORIGINAL ERROR",e),n&&r(this._console,"ERROR CONTEXT",n)},t.prototype._findContext=function(t){return t?m(t)?m(t):this._findContext(g(t)):null},t.prototype._findOriginalError=function(t){for(var e=g(t);e&&g(e);)e=g(e);return e},t}(),Ko=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 s(this.token)},enumerable:!0,configurable:!0}),t.get=function(t){return Xo.get(v(t))},Object.defineProperty(t,"numberOfKeys",{get:function(){return Xo.numberOfKeys},enumerable:!0,configurable:!0}),t}(),Qo=function(){function t(){this._allKeys=new Map}return t.prototype.get=function(t){if(t instanceof Ko)return t;if(this._allKeys.has(t))return this._allKeys.get(t);var e=new Ko(t,Ko.numberOfKeys);return this._allKeys.set(t,e),e},Object.defineProperty(t.prototype,"numberOfKeys",{get:function(){return this._allKeys.size},enumerable:!0,configurable:!0}),t}(),Xo=new Qo,Zo=Function,Yo=/^function\s+\S+\(\)\s*{[\s\S]+\.apply\(this,\s*arguments\)/,$o=function(){function t(t){this._reflect=t||oo.Reflect}return t.prototype.isReflectionEnabled=function(){return!0},t.prototype.factory=function(t){return function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return new(t.bind.apply(t,[void 0].concat(e)))}},t.prototype._zipTypesAndAnnotations=function(t,e){var n;n=void 0===t?new Array(e.length):new Array(t.length);for(var r=0;r<n.length;r++)void 0===t?n[r]=[]:t[r]!=Object?n[r]=[t[r]]:n[r]=[],e&&null!=e[r]&&(n[r]=n[r].concat(e[r]));return n},t.prototype._ownParameters=function(t,e){if(Yo.exec(t.toString()))return null;if(t.parameters&&t.parameters!==e.parameters)return t.parameters;var n=t.ctorParameters;if(n&&n!==e.ctorParameters){var r="function"==typeof n?n():n,o=r.map(function(t){return t&&t.type}),i=r.map(function(t){return t&&R(t.decorators)});return this._zipTypesAndAnnotations(o,i)}if(null!=this._reflect&&null!=this._reflect.getOwnMetadata){var i=this._reflect.getOwnMetadata("parameters",t),o=this._reflect.getOwnMetadata("design:paramtypes",t);if(o||i)return this._zipTypesAndAnnotations(o,i)}return new Array(t.length).fill(void 0)},t.prototype.parameters=function(t){if(!I(t))return[];var e=D(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?R(t.decorators):this._reflect&&this._reflect.getOwnMetadata?this._reflect.getOwnMetadata("annotations",t):null},t.prototype.annotations=function(t){if(!I(t))return[];var e=D(t),n=this._ownAnnotations(t,e)||[];return(e!==Object?this.annotations(e):[]).concat(n)},t.prototype._ownPropMetadata=function(t,e){if(t.propMetadata&&t.propMetadata!==e.propMetadata){var n=t.propMetadata;return"function"==typeof n&&n.propMetadata&&(n=n.propMetadata),n}if(t.propDecorators&&t.propDecorators!==e.propDecorators){var r=t.propDecorators,o={};return Object.keys(r).forEach(function(t){o[t]=R(r[t])}),o}return this._reflect&&this._reflect.getOwnMetadata?this._reflect.getOwnMetadata("propMetadata",t):null},t.prototype.propMetadata=function(t){if(!I(t))return{};var e=D(t),n={};if(e!==Object){var r=this.propMetadata(e);Object.keys(r).forEach(function(t){n[t]=r[t]})}var o=this._ownPropMetadata(t,e);return o&&Object.keys(o).forEach(function(t){var e=[];n.hasOwnProperty(t)&&e.push.apply(e,n[t]),e.push.apply(e,o[t]),n[t]=e}),n},t.prototype.hasLifecycleHook=function(t,e){return t instanceof Zo&&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:"./"+s(t)},t.prototype.resourceUri=function(t){return"./"+s(t)},t.prototype.resolveIdentifier=function(t,e,n,r){return r},t.prototype.resolveEnum=function(t,e){return t[e]},t}(),Jo=function(){function t(){}return t.prototype.parameters=function(t){},t.prototype.annotations=function(t){},t.prototype.propMetadata=function(t){},t.prototype.importUri=function(t){},t.prototype.resourceUri=function(t){},t.prototype.resolveIdentifier=function(t,e,n,r){},t.prototype.resolveEnum=function(t,e){},t}(),ti=function(t){function e(e){var n=t.call(this)||this;return n.reflectionCapabilities=e,n}return $r(e,t),e.prototype.updateCapabilities=function(t){this.reflectionCapabilities=t},e.prototype.factory=function(t){return this.reflectionCapabilities.factory(t)},e.prototype.parameters=function(t){return this.reflectionCapabilities.parameters(t)},e.prototype.annotations=function(t){return this.reflectionCapabilities.annotations(t)},e.prototype.propMetadata=function(t){return this.reflectionCapabilities.propMetadata(t)},e.prototype.hasLifecycleHook=function(t,e){return this.reflectionCapabilities.hasLifecycleHook(t,e)},e.prototype.getter=function(t){return this.reflectionCapabilities.getter(t)},e.prototype.setter=function(t){return this.reflectionCapabilities.setter(t)},e.prototype.method=function(t){return this.reflectionCapabilities.method(t)},e.prototype.importUri=function(t){return this.reflectionCapabilities.importUri(t)},e.prototype.resourceUri=function(t){return this.reflectionCapabilities.resourceUri(t)},e.prototype.resolveIdentifier=function(t,e,n,r){return this.reflectionCapabilities.resolveIdentifier(t,e,n,r)},e.prototype.resolveEnum=function(t,e){return this.reflectionCapabilities.resolveEnum(t,e)},e}(Jo),ei=new ti(new $o),ni=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}(),ri=[],oi=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}(),ii=function(){function t(t,e){this.factory=t,this.dependencies=e}return t}(),si=new Object,ai=function(){function t(){}return t.resolve=function(t){return F(t)},t.resolveAndCreate=function(e,n){var r=t.resolve(e);return t.fromResolvedProviders(r,n)},t.fromResolvedProviders=function(t,e){return new ui(t,e)},t.prototype.parent=function(){},t.prototype.resolveAndCreateChild=function(t){},t.prototype.createChildFromResolved=function(t){},t.prototype.resolveAndInstantiate=function(t){},t.prototype.instantiateResolved=function(t){},t.prototype.get=function(t,e){},t}(),ui=function(){function t(t,e){this._constructionCounter=0,this._providers=t,this._parent=e||null;var n=t.length;this.keyIds=new Array(n),this.objs=new Array(n);for(var r=0;r<n;r++)this.keyIds[r]=t[r].key.id,this.objs[r]=si}return t.prototype.get=function(t,e){return void 0===e&&(e=jo),this._getByKey(Ko.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=ai.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(ai.resolve([t])[0])},t.prototype.instantiateResolved=function(t){return this._instantiateProvider(t)},t.prototype.getProviderAtIndex=function(t){if(t<0||t>=this._providers.length)throw k(t);return this._providers[t]},t.prototype._new=function(t){if(this._constructionCounter++>this._getMaxNumberOfObjects())throw P(this,t.key);return this._instantiateProvider(t)},t.prototype._getMaxNumberOfObjects=function(){return this.objs.length},t.prototype._instantiateProvider=function(t){if(t.multiProvider){for(var e=new Array(t.resolvedFactories.length),n=0;n<t.resolvedFactories.length;++n)e[n]=this._instantiate(t,t.resolvedFactories[n]);return e}return this._instantiate(t,t.resolvedFactories[0])},t.prototype._instantiate=function(t,e){var n,r=this,o=e.factory;try{n=e.dependencies.map(function(t){return r._getByReflectiveDependency(t)})}catch(e){throw e.addKey&&e.addKey(this,t.key),e}var i;try{i=o.apply(void 0,n)}catch(e){throw A(this,e,e.stack,t.key)}return i},t.prototype._getByReflectiveDependency=function(t){return this._getByKey(t.key,t.visibility,t.optional?null:jo)},t.prototype._getByKey=function(t,e,n){return t===ci?this:e instanceof Do?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]===si&&(this.objs[e]=this._new(this._providers[e])),this.objs[e];return si},t.prototype._throwOrNull=function(t,e){if(e!==jo)return e;throw T(this,t)},t.prototype._getByKeySelf=function(t,e){var n=this._getObjByKeyId(t.id);return n!==si?n:this._throwOrNull(t,e)},t.prototype._getByKeyDefault=function(e,n,r){var o;for(o=r instanceof Vo?this._parent:this;o instanceof t;){var i=o,s=i._getObjByKeyId(e.id);if(s!==si)return s;o=i._parent}return null!==o?o.get(e.token,n):this._throwOrNull(e,n)},Object.defineProperty(t.prototype,"displayName",{get:function(){return"ReflectiveInjector(providers: ["+z(this,function(t){return' "'+t.key.displayName+'" '}).join(", ")+"])"},enumerable:!0,configurable:!0}),t.prototype.toString=function(){return this.displayName},t}(),ci=Ko.get(Uo),li=new to("Application Initializer"),pi=function(){function t(t){var e=this;this._done=!1;var n=[];if(t)for(var r=0;r<t.length;r++){var o=t[r]();W(o)&&n.push(o)}this._donePromise=Promise.all(n).then(function(){e._done=!0}),0===n.length&&(this._done=!0)}return Object.defineProperty(t.prototype,"done",{get:function(){return this._done},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"donePromise",{get:function(){return this._donePromise},enumerable:!0,configurable:!0}),t}();pi.decorators=[{type:Ro}],pi.ctorParameters=function(){return[{type:Array,decorators:[{type:No,args:[li]},{type:Io}]}]};/**
* @license
* Copyright Google Inc. All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
var hi=new to("AppId"),fi={provide:hi,useFactory:Q,deps:[]},di=new to("Platform Initializer"),yi=new to("Platform ID"),vi=new to("appBootstrapListener"),mi=new to("Application Packages Root URL"),gi=function(){function t(){}return t.prototype.log=function(t){console.log(t)},t.prototype.warn=function(t){console.warn(t)},t}();gi.decorators=[{type:Ro}],gi.ctorParameters=function(){return[]};/**
* @license
* Copyright Google Inc. All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
var _i=function(){function t(t,e){this.ngModuleFactory=t,this.componentFactories=e}return t}(),bi=function(){function t(){}return t.prototype.compileModuleSync=function(t){throw Z()},t.prototype.compileModuleAsync=function(t){throw Z()},t.prototype.compileModuleAndAllComponentsSync=function(t){throw Z()},t.prototype.compileModuleAndAllComponentsAsync=function(t){throw Z()},t.prototype.getNgContentSelectors=function(t){throw Z()},t.prototype.clearCache=function(){},t.prototype.clearCacheFor=function(t){},t}();bi.decorators=[{type:Ro}],bi.ctorParameters=function(){return[]};var wi=new to("compilerOptions"),Ei=function(){function t(){}return t.prototype.createCompiler=function(t){},t}(),Ci=function(){function t(){}return t.prototype.location=function(){},t.prototype.injector=function(){},t.prototype.instance=function(){},t.prototype.hostView=function(){},t.prototype.changeDetectorRef=function(){},t.prototype.componentType=function(){},t.prototype.destroy=function(){},t.prototype.onDestroy=function(t){},t}(),Si=function(){function t(){}return t.prototype.selector=function(){},t.prototype.componentType=function(){},t.prototype.ngContentSelectors=function(){},t.prototype.inputs=function(){},t.prototype.outputs=function(){},t.prototype.create=function(t,e,n,r){},t}(),xi="ngComponent",Ti=function(){function t(){}return t.prototype.resolveComponentFactory=function(t){throw Y(t)},t}(),Pi=function(){function t(){}return t.prototype.resolveComponentFactory=function(t){},t}();Pi.NULL=new Ti;var Ai,Oi,Mi=function(){function t(t,e,n){this._parent=e,this._ngModule=n,this._factories=new Map;for(var r=0;r<t.length;r++){var o=t[r];this._factories.set(o.componentType,o)}}return t.prototype.resolveComponentFactory=function(t){var e=this._factories.get(t)||this._parent.resolveComponentFactory(t);return new ki(e,this._ngModule)},t}(),ki=function(t){function e(e,n){var r=t.call(this)||this;return r.factory=e,r.ngModule=n,r}return $r(e,t),Object.defineProperty(e.prototype,"selector",{get:function(){return this.factory.selector},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"componentType",{get:function(){return this.factory.componentType},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"ngContentSelectors",{get:function(){return this.factory.ngContentSelectors},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"inputs",{get:function(){return this.factory.inputs},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"outputs",{get:function(){return this.factory.outputs},enumerable:!0,configurable:!0}),e.prototype.create=function(t,e,n,r){return this.factory.create(t,e,n,r||this.ngModule)},e}(Si),Ni=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){},t}(),Ii=function(){function t(t,e){this._injectorClass=t,this._moduleType=e}return Object.defineProperty(t.prototype,"moduleType",{get:function(){return this._moduleType},enumerable:!0,configurable:!0}),t.prototype.create=function(t){var e=new this._injectorClass(t||Uo.NULL);return e.create(),e},t}(),Ri=new Object,Di=function(){function t(t,e,n){var r=this;this.parent=t,this._destroyListeners=[],this._destroyed=!1,this.bootstrapFactories=n.map(function(t){return new ki(t,r)}),this._cmpFactoryResolver=new Mi(e,t.get(Pi,Pi.NULL),this)}return t.prototype.create=function(){this.instance=this.createInternal()},t.prototype.createInternal=function(){},t.prototype.get=function(t,e){if(void 0===e&&(e=jo),t===Uo||t===Ni)return this;if(t===Pi)return this._cmpFactoryResolver;var n=this.getInternal(t,Ri);return n===Ri?this.parent.get(t,e):n},t.prototype.getInternal=function(t,e){},Object.defineProperty(t.prototype,"injector",{get:function(){return this},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"componentFactoryResolver",{get:function(){return this._cmpFactoryResolver},enumerable:!0,configurable:!0}),t.prototype.destroy=function(){if(this._destroyed)throw new Error("The ng module "+s(this.instance.constructor)+" has already been destroyed.");this._destroyed=!0,this.destroyInternal(),this._destroyListeners.forEach(function(t){return t()})},t.prototype.onDestroy=function(t){this._destroyListeners.push(t)},t.prototype.destroyInternal=function(){},t}(),Vi=$(),Li=Vi?J:function(t,e){return rt},Fi=Vi?tt:function(t,e){return e},ji=Vi?et:function(t,e){return null},Hi=Vi?nt:function(t){return null},Ui=function(t){function e(e){void 0===e&&(e=!1);var n=t.call(this)||this;return n.__isAsync=e,n}return $r(e,t),e.prototype.emit=function(e){t.prototype.next.call(this,e)},e.prototype.subscribe=function(e,n,r){var o,i=function(t){return null},s=function(){return null};return e&&"object"==typeof e?(o=this.__isAsync?function(t){setTimeout(function(){return e.next(t)})}:function(t){e.next(t)},e.error&&(i=this.__isAsync?function(t){setTimeout(function(){return e.error(t)})}:function(t){e.error(t)}),e.complete&&(s=this.__isAsync?function(){setTimeout(function(){return e.complete()})}:function(){e.complete()})):(o=this.__isAsync?function(t){setTimeout(function(){return e(t)})}:function(t){e(t)},n&&(i=this.__isAsync?function(t){setTimeout(function(){return n(t)})}:function(t){n(t)}),r&&(s=this.__isAsync?function(){setTimeout(function(){return r()})}:function(){r()})),t.prototype.subscribe.call(this,o,i,s)},e}(Yr.Subject),Bi=function(){function t(t){var e=t.enableLongStackTrace,n=void 0!==e&&e;if(this._hasPendingMicrotasks=!1,this._hasPendingMacrotasks=!1,this._isStable=!0,this._nesting=0,this._onUnstable=new Ui(!1),this._onMicrotaskEmpty=new Ui(!1),this._onStable=new Ui(!1),this._onErrorEvents=new Ui(!1),"undefined"==typeof Zone)throw new Error("Angular requires Zone.js prolyfill.");Zone.assertZonePatched(),this.outer=this.inner=Zone.current,Zone.wtfZoneSpec&&(this.inner=this.inner.fork(Zone.wtfZoneSpec)),n&&Zone.longStackTraceZoneSpec&&(this.inner=this.inner.fork(Zone.longStackTraceZoneSpec)),this.forkInnerZoneWithAngularBehavior()}return t.isInAngularZone=function(){return!0===Zone.current.get("isAngularZone")},t.assertInAngularZone=function(){if(!t.isInAngularZone())throw new Error("Expected to be in Angular Zone, but it is not!")},t.assertNotInAngularZone=function(){if(t.isInAngularZone())throw new Error("Expected to not be in Angular Zone, but it is!")},t.prototype.run=function(t){return this.inner.run(t)},t.prototype.runGuarded=function(t){return this.inner.runGuarded(t)},t.prototype.runOutsideAngular=function(t){return this.outer.run(t)},Object.defineProperty(t.prototype,"onUnstable",{get:function(){return this._onUnstable},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"onMicrotaskEmpty",{get:function(){return this._onMicrotaskEmpty},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"onStable",{get:function(){return this._onStable},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"onError",{get:function(){return this._onErrorEvents},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isStable",{get:function(){return this._isStable},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"hasPendingMicrotasks",{get:function(){return this._hasPendingMicrotasks},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"hasPendingMacrotasks",{get:function(){return this._hasPendingMacrotasks},enumerable:!0,configurable:!0}),t.prototype.checkStable=function(){var t=this;if(0==this._nesting&&!this._hasPendingMicrotasks&&!this._isStable)try{this._nesting++,this._onMicrotaskEmpty.emit(null)}finally{if(this._nesting--,!this._hasPendingMicrotasks)try{this.runOutsideAngular(function(){return t._onStable.emit(null)})}finally{this._isStable=!0}}},t.prototype.forkInnerZoneWithAngularBehavior=function(){var t=this;this.inner=this.inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:function(e,n,r,o,i,s){try{return t.onEnter(),e.invokeTask(r,o,i,s)}finally{t.onLeave()}},onInvoke:function(e,n,r,o,i,s,a){try{return t.onEnter(),e.invoke(r,o,i,s,a)}finally{t.onLeave()}},onHasTask:function(e,n,r,o){e.hasTask(r,o),n===r&&("microTask"==o.change?t.setHasMicrotask(o.microTask):"macroTask"==o.change&&t.setHasMacrotask(o.macroTask))},onHandleError:function(e,n,r,o){return e.handleError(r,o),t.triggerError(o),!1}})},t.prototype.onEnter=function(){this._nesting++,this._isStable&&(this._isStable=!1,this._onUnstable.emit(null))},t.prototype.onLeave=function(){this._nesting--,this.checkStable()},t.prototype.setHasMicrotask=function(t){this._hasPendingMicrotasks=t,this.checkStable()},t.prototype.setHasMacrotask=function(t){this._hasPendingMacrotasks=t},t.prototype.triggerError=function(t){this._onErrorEvents.emit(t)},t}(),qi=function(){function t(t){this._ngZone=t,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this._watchAngularEvents()}return t.prototype._watchAngularEvents=function(){var t=this;this._ngZone.onUnstable.subscribe({next:function(){t._didWork=!0,t._isZoneStable=!1}}),this._ngZone.runOutsideAngular(function(){t._ngZone.onStable.subscribe({next:function(){Bi.assertNotInAngularZone(),o(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()?o(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(t,e,n){return[]},t.prototype.findProviders=function(t,e,n){return[]},t}();qi.decorators=[{type:Ro}],qi.ctorParameters=function(){return[{type:Bi}]};var Gi=function(){function t(){this._applications=new Map,Ki.addToWindow(this)}return t.prototype.registerApplication=function(t,e){this._applications.set(t,e)},t.prototype.getTestability=function(t){return this._applications.get(t)||null},t.prototype.getAllTestabilities=function(){return Array.from(this._applications.values())},t.prototype.getAllRootElements=function(){return Array.from(this._applications.keys())},t.prototype.findTestabilityInTree=function(t,e){return void 0===e&&(e=!0),Ki.findTestabilityInTree(this,t,e)},t}();Gi.decorators=[{type:Ro}],Gi.ctorParameters=function(){return[]};var zi,Wi=function(){function t(){}return t.prototype.addToWindow=function(t){},t.prototype.findTestabilityInTree=function(t,e,n){return null},t}(),Ki=new Wi,Qi=!0,Xi=!1,Zi=new to("AllowMultipleToken"),Yi=function(){function t(t,e){this.name=t,this.token=e}return t}(),$i=function(){function t(){}return t.prototype.bootstrapModuleFactory=function(t){},t.prototype.bootstrapModule=function(t,e){},t.prototype.onDestroy=function(t){},t.prototype.injector=function(){},t.prototype.destroy=function(){},t.prototype.destroyed=function(){},t}(),Ji=function(t){function e(e){var n=t.call(this)||this;return n._injector=e,n._modules=[],n._destroyListeners=[],n._destroyed=!1,n}return $r(e,t),e.prototype.onDestroy=function(t){this._destroyListeners.push(t)},Object.defineProperty(e.prototype,"injector",{get:function(){return this._injector},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"destroyed",{get:function(){return this._destroyed},enumerable:!0,configurable:!0}),e.prototype.destroy=function(){if(this._destroyed)throw new Error("The platform has already been destroyed!");this._modules.slice().forEach(function(t){return t.destroy()}),this._destroyListeners.forEach(function(t){return t()}),this._destroyed=!0},e.prototype.bootstrapModuleFactory=function(t){return this._bootstrapModuleFactoryWithZone(t)},e.prototype._bootstrapModuleFactoryWithZone=function(t,e){var n=this;return e||(e=new Bi({enableLongStackTrace:st()})),e.run(function(){var r=ai.resolveAndCreate([{provide:Bi,useValue:e}],n.injector),o=t.create(r),i=o.injector.get(Wo,null);if(!i)throw new Error("No ErrorHandler. Is platform module (BrowserModule) included?");return o.onDestroy(function(){return ft(n._modules,o)}),e.onError.subscribe({next:function(t){i.handleError(t)}}),ht(i,function(){return o.injector.get(pi).donePromise.then(function(){return n._moduleDoBootstrap(o),o})})})},e.prototype.bootstrapModule=function(t,e){return void 0===e&&(e=[]),this._bootstrapModuleWithZone(t,e)},e.prototype._bootstrapModuleWithZone=function(t,e,n){var r=this;return void 0===e&&(e=[]),this.injector.get(Ei).createCompiler(Array.isArray(e)?e:[e]).compileModuleAsync(t).then(function(t){return r._bootstrapModuleFactoryWithZone(t,n)})},e.prototype._moduleDoBootstrap=function(t){var e=t.injector.get(ts);if(t.bootstrapFactories.length>0)t.bootstrapFactories.forEach(function(t){return e.bootstrap(t)});else{if(!t.instance.ngDoBootstrap)throw new Error("The module "+s(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}($i);Ji.decorators=[{type:Ro}],Ji.ctorParameters=function(){return[{type:Uo}]};var ts=function(){function t(){}return t.prototype.bootstrap=function(t){},t.prototype.tick=function(){},t.prototype.componentTypes=function(){},t.prototype.components=function(){},t.prototype.attachView=function(t){},t.prototype.detachView=function(t){},t.prototype.viewCount=function(){},t.prototype.isStable=function(){},t}(),es=function(t){function e(e,r,i,s,a,u){var c=t.call(this)||this;c._zone=e,c._console=r,c._injector=i,c._exceptionHandler=s,c._componentFactoryResolver=a,c._initStatus=u,c._bootstrapListeners=[],c._rootComponents=[],c._rootComponentTypes=[],c._views=[],c._runningTick=!1,c._enforceNoNewChanges=!1,c._stable=!0,c._enforceNoNewChanges=st(),c._zone.onMicrotaskEmpty.subscribe({next:function(){c._zone.run(function(){c.tick()})}});var l=new Qr.Observable(function(t){c._stable=c._zone.isStable&&!c._zone.hasPendingMacrotasks&&!c._zone.hasPendingMicrotasks,c._zone.runOutsideAngular(function(){t.next(c._stable),t.complete()})}),p=new Qr.Observable(function(t){var e=c._zone.onStable.subscribe(function(){Bi.assertNotInAngularZone(),o(function(){c._stable||c._zone.hasPendingMacrotasks||c._zone.hasPendingMicrotasks||(c._stable=!0,t.next(!0))})}),n=c._zone.onUnstable.subscribe(function(){Bi.assertInAngularZone(),c._stable&&(c._stable=!1,c._zone.runOutsideAngular(function(){t.next(!1)}))});return function(){e.unsubscribe(),n.unsubscribe()}});return c._isStable=n.i(Xr.merge)(l,Zr.share.call(p)),c}return $r(e,t),e.prototype.attachView=function(t){var e=t;this._views.push(e),e.attachToAppRef(this)},e.prototype.detachView=function(t){var e=t;ft(this._views,e),e.detachFromAppRef()},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 Si?t:this._componentFactoryResolver.resolveComponentFactory(t),this._rootComponentTypes.push(n.componentType);var r=n instanceof ki?null:this._injector.get(Ni),o=n.create(Uo.NULL,[],n.selector,r);o.onDestroy(function(){e._unloadComponent(o)});var i=o.injector.get(qi,null);return i&&o.injector.get(Gi).registerApplication(o.location.nativeElement,i),this._loadComponent(o),st()&&this._console.log("Angular is running in the development mode. Call enableProdMode() to enable the production mode."),o},e.prototype._loadComponent=function(t){this.attachView(t.hostView),this.tick(),this._rootComponents.push(t),this._injector.get(vi,[]).concat(this._bootstrapListeners).forEach(function(e){return e(t)})},e.prototype._unloadComponent=function(t){this.detachView(t.hostView),ft(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.detectChanges()}),this._enforceNoNewChanges&&this._views.forEach(function(t){return t.checkNoChanges()})}catch(t){this._exceptionHandler.handleError(t)}finally{this._runningTick=!1,Fi(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}),Object.defineProperty(e.prototype,"isStable",{get:function(){return this._isStable},enumerable:!0,configurable:!0}),e}(ts);es._tickScope=Li("ApplicationRef#tick()"),es.decorators=[{type:Ro}],es.ctorParameters=function(){return[{type:Bi},{type:gi},{type:Uo},{type:Wo},{type:Pi},{type:pi}]};/**
* @license
* Copyright Google Inc. All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
/**
* @license
* Copyright Google Inc. All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
var ns=function(){function t(t,e,n,r,o,i){this.id=t,this.templateUrl=e,this.slotCount=n,this.encapsulation=r,this.styles=o,this.animations=i}return t}(),rs=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}(),os=function(){function t(){}return t.prototype.selectRootElement=function(t,e){},t.prototype.createElement=function(t,e,n){},t.prototype.createViewRoot=function(t){},t.prototype.createTemplateAnchor=function(t,e){},t.prototype.createText=function(t,e,n){},t.prototype.projectNodes=function(t,e){},t.prototype.attachViewAfter=function(t,e){},t.prototype.detachView=function(t){},t.prototype.destroyView=function(t,e){},t.prototype.listen=function(t,e,n){},t.prototype.listenGlobal=function(t,e,n){},t.prototype.setElementProperty=function(t,e,n){},t.prototype.setElementAttribute=function(t,e,n){},t.prototype.setBindingDebugInfo=function(t,e,n){},t.prototype.setElementClass=function(t,e,n){},t.prototype.setElementStyle=function(t,e,n){},t.prototype.invokeElementMethod=function(t,e,n){},t.prototype.setText=function(t,e){},t.prototype.animate=function(t,e,n,r,o,i,s){},t}(),is=(new to("Renderer2Interceptor"),function(){function t(){}return t.prototype.renderComponent=function(t){},t}()),ss=function(){function t(){}return t.prototype.createRenderer=function(t,e){},t}(),as={};as.Important=1,as.DashCase=2,as[as.Important]="Important",as[as.DashCase]="DashCase";var us=function(){function t(){}return t.prototype.data=function(){},t.prototype.destroy=function(){},t.prototype.createElement=function(t,e){},t.prototype.createComment=function(t){},t.prototype.createText=function(t){},t.prototype.appendChild=function(t,e){},t.prototype.insertBefore=function(t,e,n){},t.prototype.removeChild=function(t,e){},t.prototype.selectRootElement=function(t){},t.prototype.parentNode=function(t){},t.prototype.nextSibling=function(t){},t.prototype.setAttribute=function(t,e,n,r){},t.prototype.removeAttribute=function(t,e,n){},t.prototype.addClass=function(t,e){},t.prototype.removeClass=function(t,e){},t.prototype.setStyle=function(t,e,n,r){},t.prototype.removeStyle=function(t,e,n){},t.prototype.setProperty=function(t,e,n){},t.prototype.setValue=function(t,e){},t.prototype.listen=function(t,e,n){},t}(),cs=function(){function t(t){this.nativeElement=t}return t}(),ls=function(){function t(){}return t.prototype.load=function(t){},t}(),ps=new Map,hs=function(){function t(){this._dirty=!0,this._results=[],this._emitter=new Ui}return Object.defineProperty(t.prototype,"changes",{get:function(){return this._emitter},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"length",{get:function(){return this._results.length},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"first",{get:function(){return this._results[0]},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"last",{get:function(){return this._results[this.length-1]},enumerable:!0,configurable:!0}),t.prototype.map=function(t){return this._results.map(t)},t.prototype.filter=function(t){return this._results.filter(t)},t.prototype.find=function(t){return this._results.find(t)},t.prototype.reduce=function(t,e){return this._results.reduce(t,e)},t.prototype.forEach=function(t){this._results.forEach(t)},t.prototype.some=function(t){return this._results.some(t)},t.prototype.toArray=function(){return this._results.slice()},t.prototype[r()]=function(){return this._results[r()]()},t.prototype.toString=function(){return this._results.toString()},t.prototype.reset=function(t){this._results=vt(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}(),fs=function(){function t(){}return t}(),ds={factoryPathPrefix:"",factoryPathSuffix:".ngfactory"},ys=function(){function t(t,e){this._compiler=t,this._config=e||ds}return t.prototype.load=function(t){return this._compiler instanceof bi?this.loadFactory(t):this.loadAndCompile(t)},t.prototype.loadAndCompile=function(t){var e=this,r=t.split("#"),o=r[0],i=r[1];return void 0===i&&(i="default"),n(87)(o).then(function(t){return t[i]}).then(function(t){return mt(t,o,i)}).then(function(t){return e._compiler.compileModuleAsync(t)})},t.prototype.loadFactory=function(t){var e=t.split("#"),r=e[0],o=e[1],i="NgFactory";return void 0===o&&(o="default",i=""),n(87)(this._config.factoryPathPrefix+r+this._config.factoryPathSuffix).then(function(t){return t[o+i]}).then(function(t){return mt(t,r,o)})},t}();ys.decorators=[{type:Ro}],ys.ctorParameters=function(){return[{type:bi},{type:fs,decorators:[{type:Io}]}]};/**
* @license
* Copyright Google Inc. All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
var vs=function(){function t(){}return t.prototype.elementRef=function(){},t.prototype.createEmbeddedView=function(t){},t}(),ms=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){},t.prototype.length=function(){},t.prototype.createEmbeddedView=function(t,e,n){},t.prototype.createComponent=function(t,e,n,r,o){},t.prototype.insert=function(t,e){},t.prototype.move=function(t,e){},t.prototype.indexOf=function(t){},t.prototype.remove=function(t){},t.prototype.detach=function(t){},t}(),gs=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}(),_s=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return $r(e,t),e.prototype.destroy=function(){},e.prototype.destroyed=function(){},e.prototype.onDestroy=function(t){},e}(gs),bs=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return $r(e,t),e.prototype.context=function(){},e.prototype.rootNodes=function(){},e}(_s),ws=function(){function t(t,e){this.name=t,this.callback=e}return t}(),Es=function(){function t(t,e,n){this._debugContext=n,this.nativeNode=t,e&&e instanceof Cs?e.addChild(this):this.parent=null,this.listeners=[]}return Object.defineProperty(t.prototype,"injector",{get:function(){return this._debugContext.injector},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"componentInstance",{get:function(){return this._debugContext.component},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"context",{get:function(){return this._debugContext.context},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"references",{get:function(){return this._debugContext.references},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"providerTokens",{get:function(){return this._debugContext.providerTokens},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"source",{get:function(){return"Deprecated since v4"},enumerable:!0,configurable:!0}),t}(),Cs=function(t){function e(e,n,r){var o=t.call(this,e,n,r)||this;return o.properties={},o.attributes={},o.classes={},o.styles={},o.childNodes=[],o.nativeElement=e,o}return $r(e,t),e.prototype.addChild=function(t){t&&(this.childNodes.push(t),t.parent=this)},e.prototype.removeChild=function(t){var e=this.childNodes.indexOf(t);-1!==e&&(t.parent=null,this.childNodes.splice(e,1))},e.prototype.insertChildrenAfter=function(t,e){var n=this,r=this.childNodes.indexOf(t);-1!==r&&((o=this.childNodes).splice.apply(o,[r+1,0].concat(e)),e.forEach(function(t){t.parent&&t.parent.removeChild(t),t.parent=n}));var o},e.prototype.insertBefore=function(t,e){var n=this.childNodes.indexOf(t);-1===n?this.addChild(e):(e.parent&&e.parent.removeChild(e),e.parent=this,this.childNodes.splice(n,0,e))},e.prototype.query=function(t){return this.queryAll(t)[0]||null},e.prototype.queryAll=function(t){var e=[];return _t(this,t,e),e},e.prototype.queryAllNodes=function(t){var e=[];return bt(this,t,e),e},Object.defineProperty(e.prototype,"children",{get:function(){return this.childNodes.filter(function(t){return t instanceof e})},enumerable:!0,configurable:!0}),e.prototype.triggerEventHandler=function(t,e){this.listeners.forEach(function(n){n.name==t&&n.callback(e)})},e}(Es),Ss=new Map,xs=function(){function t(t){this.wrapped=t}return t.wrap=function(e){return new t(e)},t}(),Ts=function(){function t(){this.hasWrappedValue=!1}return t.prototype.unwrap=function(t){return t instanceof xs?(this.hasWrappedValue=!0,t.wrapped):t},t.prototype.reset=function(){this.hasWrappedValue=!1},t}(),Ps=function(){function t(t,e,n){this.previousValue=t,this.currentValue=e,this.firstChange=n}return t.prototype.isFirstChange=function(){return this.firstChange},t}(),As=function(){function t(){}return t.prototype.supports=function(t){return xt(t)},t.prototype.create=function(t,e){return new Ms(e||t)},t}(),Os=function(t,e){return e},Ms=function(){function t(t){this._length=0,this._collection=null,this._linkedRecords=null,this._unlinkedRecords=null,this._previousItHead=null,this._itHead=null,this._itTail=null,this._additionsHead=null,this._additionsTail=null,this._movesHead=null,this._movesTail=null,this._removalsHead=null,this._removalsTail=null,this._identityChangesHead=null,this._identityChangesTail=null,this._trackByFn=t||Os}return Object.defineProperty(t.prototype,"collection",{get:function(){return this._collection},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"length",{get:function(){return this._length},enumerable:!0,configurable:!0}),t.prototype.forEachItem=function(t){var e;for(e=this._itHead;null!==e;e=e._next)t(e)},t.prototype.forEachOperation=function(t){for(var e=this._itHead,n=this._removalsHead,r=0,o=null;e||n;){var i=!n||e&&e.currentIndex<Ot(n,r,o)?e:n,s=Ot(i,r,o),a=i.currentIndex;if(i===n)r--,n=n._nextRemoved;else if(e=e._next,null==i.previousIndex)r++;else{o||(o=[]);var u=s-r,c=a-r;if(u!=c){for(var l=0;l<u;l++){var p=l<o.length?o[l]:o[l]=0,h=p+l;c<=h&&h<u&&(o[l]=p+1)}var f=i.previousIndex;o[f]=c-u}}s!==a&&t(i,s,a)}},t.prototype.forEachPreviousItem=function(t){var e;for(e=this._previousItHead;null!==e;e=e._nextPrevious)t(e)},t.prototype.forEachAddedItem=function(t){var e;for(e=this._additionsHead;null!==e;e=e._nextAdded)t(e)},t.prototype.forEachMovedItem=function(t){var e;for(e=this._movesHead;null!==e;e=e._nextMoved)t(e)},t.prototype.forEachRemovedItem=function(t){var e;for(e=this._removalsHead;null!==e;e=e._nextRemoved)t(e)},t.prototype.forEachIdentityChange=function(t){var e;for(e=this._identityChangesHead;null!==e;e=e._nextIdentityChange)t(e)},t.prototype.diff=function(t){if(null==t&&(t=[]),!xt(t))throw new Error("Error trying to diff '"+s(t)+"'. Only arrays and iterables are allowed");return this.check(t)?this:null},t.prototype.onDestroy=function(){},t.prototype.check=function(t){var e=this;this._reset();var n,r,o,s=this._itHead,a=!1;if(Array.isArray(t)){this._length=t.length;for(var u=0;u<this._length;u++)r=t[u],o=this._trackByFn(u,r),null!==s&&i(s.trackById,o)?(a&&(s=this._verifyReinsertion(s,r,o,u)),i(s.item,r)||this._addIdentityChange(s,r)):(s=this._mismatch(s,r,o,u),a=!0),s=s._next}else n=0,Pt(t,function(t){o=e._trackByFn(n,t),null!==s&&i(s.trackById,o)?(a&&(s=e._verifyReinsertion(s,t,o,n)),i(s.item,t)||e._addIdentityChange(s,t)):(s=e._mismatch(s,t,o,n),a=!0),s=s._next,n++}),this._length=n;return this._truncate(s),this._collection=t,this.isDirty},Object.defineProperty(t.prototype,"isDirty",{get:function(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead},enumerable:!0,configurable:!0}),t.prototype._reset=function(){if(this.isDirty){var t=void 0,e=void 0;for(t=this._previousItHead=this._itHead;null!==t;t=t._next)t._nextPrevious=t._next;for(t=this._additionsHead;null!==t;t=t._nextAdded)t.previousIndex=t.currentIndex;for(this._additionsHead=this._additionsTail=null,t=this._movesHead;null!==t;t=e)t.previousIndex=t.currentIndex,e=t._nextMoved;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}},t.prototype._mismatch=function(t,e,n,r){var o;return null===t?o=this._itTail:(o=t._prev,this._remove(t)),t=null===this._linkedRecords?null:this._linkedRecords.get(n,r),null!==t?(i(t.item,e)||this._addIdentityChange(t,e),this._moveAfter(t,o,r)):(t=null===this._unlinkedRecords?null:this._unlinkedRecords.get(n,null),null!==t?(i(t.item,e)||this._addIdentityChange(t,e),this._reinsertAfter(t,o,r)):t=this._addAfter(new ks(e,n),o,r)),t},t.prototype._verifyReinsertion=function(t,e,n,r){var o=null===this._unlinkedRecords?null:this._unlinkedRecords.get(n,null);return null!==o?t=this._reinsertAfter(o,t._prev,r):t.currentIndex!=r&&(t.currentIndex=r,this._addToMoves(t,r)),t},t.prototype._truncate=function(t){for(;null!==t;){var e=t._next;this._addToRemovals(this._unlink(t)),t=e}null!==this._unlinkedRecords&&this._unlinkedRecords.clear(),null!==this._additionsTail&&(this._additionsTail._nextAdded=null),null!==this._movesTail&&(this._movesTail._nextMoved=null),null!==this._itTail&&(this._itTail._next=null),null!==this._removalsTail&&(this._removalsTail._nextRemoved=null),null!==this._identityChangesTail&&(this._identityChangesTail._nextIdentityChange=null)},t.prototype._reinsertAfter=function(t,e,n){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(t);var r=t._prevRemoved,o=t._nextRemoved;return null===r?this._removalsHead=o:r._nextRemoved=o,null===o?this._removalsTail=r:o._prevRemoved=r,this._insertAfter(t,e,n),this._addToMoves(t,n),t},t.prototype._moveAfter=function(t,e,n){return this._unlink(t),this._insertAfter(t,e,n),this._addToMoves(t,n),t},t.prototype._addAfter=function(t,e,n){return this._insertAfter(t,e,n),null===this._additionsTail?this._additionsTail=this._additionsHead=t:this._additionsTail=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 Is),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:(null===this._movesTail?this._movesTail=this._movesHead=t:this._movesTail=this._movesTail._nextMoved=t,t)},t.prototype._addToRemovals=function(t){return null===this._unlinkedRecords&&(this._unlinkedRecords=new Is),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,null===this._identityChangesTail?this._identityChangesTail=this._identityChangesHead=t:this._identityChangesTail=this._identityChangesTail._nextIdentityChange=t,t},t.prototype.toString=function(){var t=[];this.forEachItem(function(e){return t.push(e)});var e=[];this.forEachPreviousItem(function(t){return e.push(t)});var n=[];this.forEachAddedItem(function(t){return n.push(t)});var r=[];this.forEachMovedItem(function(t){return r.push(t)});var o=[];this.forEachRemovedItem(function(t){return o.push(t)});var i=[];return this.forEachIdentityChange(function(t){return i.push(t)}),"collection: "+t.join(", ")+"\nprevious: "+e.join(", ")+"\nadditions: "+n.join(", ")+"\nmoves: "+r.join(", ")+"\nremovals: "+o.join(", ")+"\nidentityChanges: "+i.join(", ")+"\n"},t}(),ks=function(){function t(t,e){this.item=t,this.trackById=e,this.currentIndex=null,this.previousIndex=null,this._nextPrevious=null,this._prev=null,this._next=null,this._prevDup=null,this._nextDup=null,this._prevRemoved=null,this._nextRemoved=null,this._nextAdded=null,this._nextMoved=null,this._nextIdentityChange=null}return t.prototype.toString=function(){return this.previousIndex===this.currentIndex?s(this.item):s(this.item)+"["+s(this.previousIndex)+"->"+s(this.currentIndex)+"]"},t}(),Ns=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)&&i(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}(),Is=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 Ns,this.map.set(e,n)),n.add(t)},t.prototype.get=function(t,e){var n=t,r=this.map.get(n);return r?r.get(t,e):null},t.prototype.remove=function(t){var e=t.trackById;return this.map.get(e).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("+s(this.map)+")"},t}(),Rs=function(){function t(){}return t.prototype.supports=function(t){return t instanceof Map||At(t)},t.prototype.create=function(t){return new Ds},t}(),Ds=function(){function t(){this._records=new Map,this._mapHead=null,this._appendAfter=null,this._previousMapHead=null,this._changesHead=null,this._changesTail=null,this._additionsHead=null,this._additionsTail=null,this._removalsHead=null,this._removalsTail=null}return Object.defineProperty(t.prototype,"isDirty",{get:function(){return null!==this._additionsHead||null!==this._changesHead||null!==this._removalsHead},enumerable:!0,configurable:!0}),t.prototype.forEachItem=function(t){var e;for(e=this._mapHead;null!==e;e=e._next)t(e)},t.prototype.forEachPreviousItem=function(t){var e;for(e=this._previousMapHead;null!==e;e=e._nextPrevious)t(e)},t.prototype.forEachChangedItem=function(t){var e;for(e=this._changesHead;null!==e;e=e._nextChanged)t(e)},t.prototype.forEachAddedItem=function(t){var e;for(e=this._additionsHead;null!==e;e=e._nextAdded)t(e)},t.prototype.forEachRemovedItem=function(t){var e;for(e=this._removalsHead;null!==e;e=e._nextRemoved)t(e)},t.prototype.diff=function(t){if(t){if(!(t instanceof Map||At(t)))throw new Error("Error trying to diff '"+s(t)+"'. Only maps and objects are allowed")}else t=new Map;return this.check(t)?this:null},t.prototype.onDestroy=function(){},t.prototype.check=function(t){var e=this;this._reset();var n=this._mapHead;if(this._appendAfter=null,this._forEach(t,function(t,r){if(n&&n.key===r)e._maybeAddToChanges(n,t),e._appendAfter=n,n=n._next;else{var o=e._getOrCreateRecordForKey(r,t);n=e._insertBeforeOrAppend(n,o)}}),n){n._prev&&(n._prev._next=null),this._removalsHead=n;for(var r=n;null!==r;r=r._nextRemoved)r===this._mapHead&&(this._mapHead=null),this._records.delete(r.key),r._nextRemoved=r._next,r.previousValue=r.currentValue,r.currentValue=null,r._prev=null,r._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty},t.prototype._insertBeforeOrAppend=function(t,e){if(t){var n=t._prev;return e._next=t,e._prev=n,t._prev=e,n&&(n._next=e),t===this._mapHead&&(this._mapHead=e),this._appendAfter=t,t}return this._appendAfter?(this._appendAfter._next=e,e._prev=this._appendAfter):this._mapHead=e,this._appendAfter=e,null},t.prototype._getOrCreateRecordForKey=function(t,e){if(this._records.has(t)){var n=this._records.get(t);this._maybeAddToChanges(n,e);var r=n._prev,o=n._next;return r&&(r._next=o),o&&(o._prev=r),n._next=null,n._prev=null,n}var i=new Vs(t);return this._records.set(t,i),i.currentValue=e,this._addToAdditions(i),i},t.prototype._reset=function(){if(this.isDirty){var t=void 0;for(this._previousMapHead=this._mapHead,t=this._previousMapHead;null!==t;t=t._next)t._nextPrevious=t._next;for(t=this._changesHead;null!==t;t=t._nextChanged)t.previousValue=t.currentValue;for(t=this._additionsHead;null!=t;t=t._nextAdded)t.previousValue=t.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}},t.prototype._maybeAddToChanges=function(t,e){i(e,t.currentValue)||(t.previousValue=t.currentValue,t.currentValue=e,this._addToChanges(t))},t.prototype._addToAdditions=function(t){null===this._additionsHead?this._additionsHead=this._additionsTail=t:(this._additionsTail._nextAdded=t,this._additionsTail=t)},t.prototype._addToChanges=function(t){null===this._changesHead?this._changesHead=this._changesTail=t:(this._changesTail._nextChanged=t,this._changesTail=t)},t.prototype.toString=function(){var t=[],e=[],n=[],r=[],o=[];return this.forEachItem(function(e){return t.push(s(e))}),this.forEachPreviousItem(function(t){return e.push(s(t))}),this.forEachChangedItem(function(t){return n.push(s(t))}),this.forEachAddedItem(function(t){return r.push(s(t))}),this.forEachRemovedItem(function(t){return o.push(s(t))}),"map: "+t.join(", ")+"\nprevious: "+e.join(", ")+"\nadditions: "+r.join(", ")+"\nchanges: "+n.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}(),Vs=function(){function t(t){this.key=t,this.previousValue=null,this.currentValue=null,this._nextPrevious=null,this._next=null,this._prev=null,this._nextAdded=null,this._nextRemoved=null,this._nextChanged=null}return t.prototype.toString=function(){return i(this.previousValue,this.currentValue)?s(this.key):s(this.key)+"["+s(this.previousValue)+"->"+s(this.currentValue)+"]"},t}(),Ls=function(){function t(t){this.factories=t}return t.create=function(e,n){if(null!=n){var r=n.factories.slice();return e=e.concat(r),new t(e)}return new t(e)},t.extend=function(e){return{provide:t,useFactory:function(n){if(!n)throw new Error("Cannot extend IterableDiffers without a parent injector");return t.create(e,n)},deps:[[t,new Vo,new Io]]}},t.prototype.find=function(t){var e=this.factories.find(function(e){return e.supports(t)});if(null!=e)return e;throw new Error("Cannot find a differ supporting object '"+t+"' of type '"+Mt(t)+"'")},t}(),Fs=function(){function t(t){this.factories=t}return t.create=function(e,n){if(n){var r=n.factories.slice();e=e.concat(r)}return new t(e)},t.extend=function(e){return{provide:t,useFactory:function(n){if(!n)throw new Error("Cannot extend KeyValueDiffers without a parent injector");return t.create(e,n)},deps:[[t,new Vo,new Io]]}},t.prototype.find=function(t){var e=this.factories.find(function(e){return e.supports(t)});if(e)return e;throw new Error("Cannot find a differ supporting object '"+t+"'")},t}(),js=[new Rs],Hs=[new As],Us=new Ls(Hs),Bs=new Fs(js),qs=[{provide:yi,useValue:"unknown"},Ji,{provide:$i,useExisting:Ji},{provide:ti,useFactory:kt,deps:[]},{provide:Jo,useExisting:ti},Gi,gi],Gs=ut(null,"core",qs),zs=new to("LocaleId"),Ws=new to("Translations"),Ks=new to("TranslationsFormat"),Qs={};Qs.Error=0,Qs.Warning=1,Qs.Ignore=2,Qs[Qs.Error]="Error",Qs[Qs.Warning]="Warning",Qs[Qs.Ignore]="Ignore";var Xs={};Xs.NONE=0,Xs.HTML=1,Xs.STYLE=2,Xs.SCRIPT=3,Xs.URL=4,Xs.RESOURCE_URL=5,Xs[Xs.NONE]="NONE",Xs[Xs.HTML]="HTML",Xs[Xs.STYLE]="STYLE",Xs[Xs.SCRIPT]="SCRIPT",Xs[Xs.URL]="URL",Xs[Xs.RESOURCE_URL]="RESOURCE_URL";var Zs=function(){function t(){}return t.prototype.sanitize=function(t,e){},t}(),Ys=function(){function t(){}return t.prototype.view=function(){},t.prototype.nodeIndex=function(){},t.prototype.injector=function(){},t.prototype.component=function(){},t.prototype.providerTokens=function(){},t.prototype.references=function(){},t.prototype.context=function(){},t.prototype.componentRenderElement=function(){},t.prototype.renderNode=function(){},t.prototype.logError=function(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n]},t}(),$s={setCurrentNode:void 0,createRootView:void 0,createEmbeddedView:void 0,checkAndUpdateView:void 0,checkNoChangesView:void 0,destroyView:void 0,resolveDep:void 0,createDebugContext:void 0,handleEvent:void 0,updateDirectives:void 0,updateRenderer:void 0,dirtyParentQueries:void 0},Js=function(){},ta=new Map,ea="$$undefined",na="$$empty",ra=0,oa=new WeakMap,ia=/^:([^:]+):(.+)$/,sa=[],aa={},ua=new Object,ca=function(t){function e(e,n,r,o,i,s){var a=t.call(this)||this;return a.selector=e,a.componentType=n,a._inputs=o,a._outputs=i,a.ngContentSelectors=s,a.viewDefFactory=r,a}return $r(e,t),Object.defineProperty(e.prototype,"inputs",{get:function(){var t=[],e=this._inputs;for(var n in e){var r=e[n];t.push({propName:n,templateName:r})}return t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"outputs",{get:function(){var t=[];for(var e in this._outputs){var n=this._outputs[e];t.push({propName:e,templateName:n})}return t},enumerable:!0,configurable:!0}),e.prototype.create=function(t,e,n,r){if(!r)throw new Error("ngModule should be provided");var o=ae(this.viewDefFactory),i=o.nodes[0].element.componentProvider.index,s=$s.createRootView(t,e||[],n,o,r,ua),a=Rt(s,i).instance;return n&&s.renderer.setAttribute(It(s,0).renderElement,"ng-version",ko.full),new la(s,new ha(s),a)},e}(Si),la=function(t){function e(e,n,r){var o=t.call(this)||this;return o._view=e,o._viewRef=n,o._component=r,o._elDef=o._view.def.nodes[0],o}return $r(e,t),Object.defineProperty(e.prototype,"location",{get:function(){return new cs(It(this._view,this._elDef.index).renderElement)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"injector",{get:function(){return new da(this._view,this._elDef)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"instance",{get:function(){return this._component},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"hostView",{get:function(){return this._viewRef},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"changeDetectorRef",{get:function(){return this._viewRef},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"componentType",{get:function(){return this._component.constructor},enumerable:!0,configurable:!0}),e.prototype.destroy=function(){this._viewRef.destroy()},e.prototype.onDestroy=function(t){this._viewRef.onDestroy(t)},e}(Ci),pa=function(){function t(t,e,n){this._view=t,this._elDef=e,this._data=n,this._embeddedViews=[]}return Object.defineProperty(t.prototype,"element",{get:function(){return new cs(this._data.renderElement)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"injector",{get:function(){return new da(this._view,this._elDef)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"parentInjector",{get:function(){for(var t=this._view,e=this._elDef.parent;!e&&t;)e=Jt(t),t=t.parent;return t?new da(t,e):new da(this._view,null)},enumerable:!0,configurable:!0}),t.prototype.clear=function(){for(var t=this._embeddedViews.length,e=t-1;e>=0;e--){var n=Re(this._data,e);$s.destroyView(n)}},t.prototype.get=function(t){var e=this._embeddedViews[t];if(e){var n=new ha(e);return n.attachToViewContainerRef(this),n}return null},Object.defineProperty(t.prototype,"length",{get:function(){return this._embeddedViews.length},enumerable:!0,configurable:!0}),t.prototype.createEmbeddedView=function(t,e,n){var r=t.createEmbeddedView(e||{});return this.insert(r,n),r},t.prototype.createComponent=function(t,e,n,r,o){var i=n||this.parentInjector;o||t instanceof ki||(o=i.get(Ni));var s=t.create(i,r,void 0,o);return this.insert(s.hostView,e),s},t.prototype.insert=function(t,e){var n=t,r=n._view;return Ie(this._view,this._data,e,r),n.attachToViewContainerRef(this),t},t.prototype.move=function(t,e){var n=this._embeddedViews.indexOf(t._view);return De(this._data,n,e),t},t.prototype.indexOf=function(t){return this._embeddedViews.indexOf(t._view)},t.prototype.remove=function(t){var e=Re(this._data,t);e&&$s.destroyView(e)},t.prototype.detach=function(t){var e=Re(this._data,t);return e?new ha(e):null},t}(),ha=function(){function t(t){this._view=t,this._viewContainerRef=null,this._appRef=null}return Object.defineProperty(t.prototype,"rootNodes",{get:function(){return ue(this._view)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"context",{get:function(){return this._view.context},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"destroyed",{get:function(){return 0!=(16&this._view.state)},enumerable:!0,configurable:!0}),t.prototype.markForCheck=function(){Zt(this._view)},t.prototype.detach=function(){this._view.state&=-5},t.prototype.detectChanges=function(){$s.checkAndUpdateView(this._view)},t.prototype.checkNoChanges=function(){$s.checkNoChangesView(this._view)},t.prototype.reattach=function(){this._view.state|=4},t.prototype.onDestroy=function(t){this._view.disposables||(this._view.disposables=[]),this._view.disposables.push(t)},t.prototype.destroy=function(){this._appRef?this._appRef.detachView(this):this._viewContainerRef&&this._viewContainerRef.detach(this._viewContainerRef.indexOf(this)),$s.destroyView(this._view)},t.prototype.detachFromAppRef=function(){this._appRef=null,Le(this._view),$s.dirtyParentQueries(this._view)},t.prototype.attachToAppRef=function(t){if(this._viewContainerRef)throw new Error("This view is already attached to a ViewContainer!");this._appRef=t},t.prototype.attachToViewContainerRef=function(t){if(this._appRef)throw new Error("This view is already attached directly to the ApplicationRef!");this._viewContainerRef=t},t}(),fa=function(t){function e(e,n){var r=t.call(this)||this;return r._parentView=e,r._def=n,r}return $r(e,t),e.prototype.createEmbeddedView=function(t){return new ha($s.createEmbeddedView(this._parentView,this._def,t))},Object.defineProperty(e.prototype,"elementRef",{get:function(){return new cs(It(this._parentView,this._def.index).renderElement)},enumerable:!0,configurable:!0}),e}(vs),da=function(){function t(t,e){this.view=t,this.elDef=e}return t.prototype.get=function(t,e){void 0===e&&(e=Uo.THROW_IF_NOT_FOUND);var n=!!this.elDef&&0!=(16777216&this.elDef.flags);return $s.resolveDep(this.view,this.elDef,n,{flags:0,token:t,tokenKey:qt(t)},e)},t}(),ya=function(){function t(t){this.delegate=t}return t.prototype.selectRootElement=function(t){return this.delegate.selectRootElement(t)},t.prototype.createElement=function(t,e){var n=de(e),r=n[0],o=n[1],i=this.delegate.createElement(o,r);return t&&this.delegate.appendChild(t,i),i},t.prototype.createViewRoot=function(t){return t},t.prototype.createTemplateAnchor=function(t){var e=this.delegate.createComment("");return t&&this.delegate.appendChild(t,e),e},t.prototype.createText=function(t,e){var n=this.delegate.createText(e);return t&&this.delegate.appendChild(t,n),n},t.prototype.projectNodes=function(t,e){for(var n=0;n<e.length;n++)this.delegate.appendChild(t,e[n])},t.prototype.attachViewAfter=function(t,e){for(var n=this.delegate.parentNode(t),r=this.delegate.nextSibling(t),o=0;o<e.length;o++)this.delegate.insertBefore(n,e[o],r)},t.prototype.detachView=function(t){for(var e=0;e<t.length;e++){var n=t[e],r=this.delegate.parentNode(n);this.delegate.removeChild(r,n)}},t.prototype.destroyView=function(t,e){for(var n=0;n<e.length;n++)this.delegate.destroyNode(e[n])},t.prototype.listen=function(t,e,n){return this.delegate.listen(t,e,n)},t.prototype.listenGlobal=function(t,e,n){return this.delegate.listen(t,e,n)},t.prototype.setElementProperty=function(t,e,n){this.delegate.setProperty(t,e,n)},t.prototype.setElementAttribute=function(t,e,n){var r=de(e),o=r[0],i=r[1];null!=n?this.delegate.setAttribute(t,i,n,o):this.delegate.removeAttribute(t,i,o)},t.prototype.setBindingDebugInfo=function(t,e,n){},t.prototype.setElementClass=function(t,e,n){n?this.delegate.addClass(t,e):this.delegate.removeClass(t,e)},t.prototype.setElementStyle=function(t,e,n){null!=n?this.delegate.setStyle(t,e,n):this.delegate.removeStyle(t,e)},t.prototype.invokeElementMethod=function(t,e,n){t[e].apply(t,n)},t.prototype.setText=function(t,e){this.delegate.setValue(t,e)},t.prototype.animate=function(){throw new Error("Renderer.animate is no longer supported!")},t}(),va=qt(os),ma=qt(us),ga=qt(cs),_a=qt(ms),ba=qt(vs),wa=qt(gs),Ea=qt(Uo),Ca=new Object,Sa={},xa={};xa.CreateViewNodes=0,xa.CheckNoChanges=1,xa.CheckAndUpdate=2,xa.Destroy=3,xa[xa.CreateViewNodes]="CreateViewNodes",xa[xa.CheckNoChanges]="CheckNoChanges",xa[xa.CheckAndUpdate]="CheckAndUpdate",xa[xa.Destroy]="Destroy";/**
* @license
* Copyright Google Inc. All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
var Ta=!1,Pa={};Pa.create=0,Pa.detectChanges=1,Pa.checkNoChanges=2,Pa.destroy=3,Pa.handleEvent=4,Pa[Pa.create]="create",Pa[Pa.detectChanges]="detectChanges",Pa[Pa.checkNoChanges]="checkNoChanges",Pa[Pa.destroy]="destroy",Pa[Pa.handleEvent]="handleEvent";var Aa,Oa,Ma,ka=/([A-Z])/g,Na=function(){function t(t,e){this.view=t,this.nodeIndex=e,null==e&&(this.nodeIndex=e=0),this.nodeDef=t.def.nodes[e];for(var n=this.nodeDef,r=t;n&&0==(1&n.flags);)n=n.parent;if(!n)for(;!n&&r;)n=Jt(r),r=r.parent;this.elDef=n,this.elView=r}return Object.defineProperty(t.prototype,"elOrCompView",{get:function(){return It(this.elView,this.elDef.index).componentView||this.view},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"injector",{get:function(){return ze(this.elView,this.elDef)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"component",{get:function(){return this.elOrCompView.component},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"context",{get:function(){return this.elOrCompView.context},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"providerTokens",{get:function(){var t=[];if(this.elDef)for(var e=this.elDef.index+1;e<=this.elDef.index+this.elDef.childCount;e++){var n=this.elView.def.nodes[e];10112&n.flags&&t.push(n.provider.token),e+=n.childCount}return t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"references",{get:function(){var t={};if(this.elDef){xr(this.elView,this.elDef,t);for(var e=this.elDef.index+1;e<=this.elDef.index+this.elDef.childCount;e++){var n=this.elView.def.nodes[e];10112&n.flags&&xr(this.elView,n,t),e+=n.childCount}}return t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"componentRenderElement",{get:function(){var t=Sr(this.elOrCompView);return t?t.renderElement:void 0},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"renderNode",{get:function(){return 2&this.nodeDef.flags?te(this.view,this.nodeDef):te(this.elView,this.elDef)},enumerable:!0,configurable:!0}),t.prototype.logError=function(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];var r,o;2&this.nodeDef.flags?(r=this.view.def,o=this.nodeDef.index):(r=this.elView.def,o=this.elDef.index);var i=Cr(r,o),s=-1,a=function(){return s++,s===i?(n=t.error).bind.apply(n,[t].concat(e)):Js;var n};r.factory(a),s<i&&(t.error("Illegal state: the ViewDefinitionFactory did not call the logger!"),t.error.apply(t,e))},t}(),Ia=function(){function t(t){this.delegate=t}return t.prototype.createRenderer=function(t,e){return new Ra(this.delegate.createRenderer(t,e))},t}(),Ra=function(){function t(t){this.delegate=t}return Object.defineProperty(t.prototype,"data",{get:function(){return this.delegate.data},enumerable:!0,configurable:!0}),t.prototype.destroyNode=function(t){Ct(wt(t)),this.delegate.destroyNode&&this.delegate.destroyNode(t)},t.prototype.destroy=function(){this.delegate.destroy()},t.prototype.createElement=function(t,e){var n=this.delegate.createElement(t,e),r=Pr();if(r){var o=new Cs(n,null,r);o.name=t,Et(o)}return n},t.prototype.createComment=function(t){var e=this.delegate.createComment(t),n=Pr();return n&&Et(new Es(e,null,n)),e},t.prototype.createText=function(t){var e=this.delegate.createText(t),n=Pr();return n&&Et(new Es(e,null,n)),e},t.prototype.appendChild=function(t,e){var n=wt(t),r=wt(e);n&&r&&n instanceof Cs&&n.addChild(r),this.delegate.appendChild(t,e)},t.prototype.insertBefore=function(t,e,n){var r=wt(t),o=wt(e),i=wt(n);r&&o&&r instanceof Cs&&r.insertBefore(i,o),this.delegate.insertBefore(t,e,n)},t.prototype.removeChild=function(t,e){var n=wt(t),r=wt(e);n&&r&&n instanceof Cs&&n.removeChild(r),this.delegate.removeChild(t,e)},t.prototype.selectRootElement=function(t){var e=this.delegate.selectRootElement(t),n=Pr();return n&&Et(new Cs(e,null,n)),e},t.prototype.setAttribute=function(t,e,n,r){var o=wt(t);if(o&&o instanceof Cs){var i=r?r+":"+e:e;o.attributes[i]=n}this.delegate.setAttribute(t,e,n,r)},t.prototype.removeAttribute=function(t,e,n){var r=wt(t);if(r&&r instanceof Cs){var o=n?n+":"+e:e;r.attributes[o]=null}this.delegate.removeAttribute(t,e,n)},t.prototype.addClass=function(t,e){var n=wt(t);n&&n instanceof Cs&&(n.classes[e]=!0),this.delegate.addClass(t,e)},t.prototype.removeClass=function(t,e){var n=wt(t);n&&n instanceof Cs&&(n.classes[e]=!1),this.delegate.removeClass(t,e)},t.prototype.setStyle=function(t,e,n,r){var o=wt(t);o&&o instanceof Cs&&(o.styles[e]=n),this.delegate.setStyle(t,e,n,r)},t.prototype.removeStyle=function(t,e,n){var r=wt(t);r&&r instanceof Cs&&(r.styles[e]=null),this.delegate.removeStyle(t,e,n)},t.prototype.setProperty=function(t,e,n){var r=wt(t);r&&r instanceof Cs&&(r.properties[e]=n),this.delegate.setProperty(t,e,n)},t.prototype.listen=function(t,e,n){if("string"!=typeof t){var r=wt(t);r&&r.listeners.push(new ws(e,n))}return this.delegate.listen(t,e,n)},t.prototype.parentNode=function(t){return this.delegate.parentNode(t)},t.prototype.nextSibling=function(t){return this.delegate.nextSibling(t)},t.prototype.setValue=function(t,e){return this.delegate.setValue(t,e)},t}(),Da=function(){function t(t){}return t}();Da.decorators=[{type:Po,args:[{providers:[es,{provide:ts,useExisting:es},pi,bi,fi,{provide:Ls,useFactory:Ar},{provide:Fs,useFactory:Or},{provide:zs,useFactory:Mr,deps:[[new No(zs),new Io,new Vo]]},{provide:li,useValue:kr,multi:!0}]}]}],Da.ctorParameters=function(){return[{type:ts}]};/**
* @license
* Copyright Google Inc. All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
var Va={};Va.OnInit=0,Va.OnDestroy=1,Va.DoCheck=2,Va.OnChanges=3,Va.AfterContentInit=4,Va.AfterContentChecked=5,Va.AfterViewInit=6,Va.AfterViewChecked=7,Va[Va.OnInit]="OnInit",Va[Va.OnDestroy]="OnDestroy",Va[Va.DoCheck]="DoCheck",Va[Va.OnChanges]="OnChanges",Va[Va.AfterContentInit]="AfterContentInit",Va[Va.AfterContentChecked]="AfterContentChecked",Va[Va.AfterViewInit]="AfterViewInit",Va[Va.AfterViewChecked]="AfterViewChecked";var La=[Va.OnInit,Va.OnDestroy,Va.DoCheck,Va.OnChanges,Va.AfterContentInit,Va.AfterContentChecked,Va.AfterViewInit,Va.AfterViewChecked],Fa="*"}).call(e,n(60))},293:function(t,e,n){"use strict";var r=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},o=n(44),i=function(t){function e(e,n,r){t.call(this),this.parent=e,this.outerValue=n,this.outerIndex=r,this.index=0}return r(e,t),e.prototype._next=function(t){this.parent.notifyNext(this.outerValue,t,this.outerIndex,this.index++,this)},e.prototype._error=function(t){this.parent.notifyError(t,this),this.unsubscribe()},e.prototype._complete=function(){this.parent.notifyComplete(this),this.unsubscribe()},e}(o.Subscriber);e.InnerSubscriber=i},294:function(t,e,n){"use strict";var r=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},o=n(59),i=function(t){function e(e,n){t.call(this),this.subject=e,this.subscriber=n,this.closed=!1}return r(e,t),e.prototype.unsubscribe=function(){if(!this.closed){this.closed=!0;var t=this.subject,e=t.observers;if(this.subject=null,e&&0!==e.length&&!t.isStopped&&!t.closed){var n=e.indexOf(this.subscriber);-1!==n&&e.splice(n,1)}}},e}(o.Subscription);e.SubjectSubscription=i},295:function(t,e,n){"use strict";var r=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},o=n(9),i=n(300),s=n(120),a=n(126),u=function(t){function e(e,n){t.call(this),this.array=e,this.scheduler=n,n||1!==e.length||(this._isScalar=!0,this.value=e[0])}return r(e,t),e.create=function(t,n){return new e(t,n)},e.of=function(){for(var t=[],n=0;n<arguments.length;n++)t[n-0]=arguments[n];var r=t[t.length-1];a.isScheduler(r)?t.pop():r=null;var o=t.length;return o>1?new e(t,r):1===o?new i.ScalarObservable(t[0],r):new s.EmptyObservable(r)},e.dispatch=function(t){var e=t.array,n=t.index,r=t.count,o=t.subscriber;if(n>=r)return void o.complete();o.next(e[n]),o.closed||(t.index=n+1,this.schedule(t))},e.prototype._subscribe=function(t){var n=this.array,r=n.length,o=this.scheduler;if(o)return o.schedule(e.dispatch,0,{array:n,index:0,count:r,subscriber:t});for(var i=0;i<r&&!t.closed;i++)t.next(n[i]);t.complete()},e}(o.Observable);e.ArrayObservable=u},296:function(t,e,n){"use strict";var r=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},o=n(83),i=n(9),s=n(44),a=n(59),u=function(t){function e(e,n){t.call(this),this.source=e,this.subjectFactory=n,this._refCount=0}return r(e,t),e.prototype._subscribe=function(t){return this.getSubject().subscribe(t)},e.prototype.getSubject=function(){var t=this._subject;return t&&!t.isStopped||(this._subject=this.subjectFactory()),this._subject},e.prototype.connect=function(){var t=this._connection;return t||(t=this._connection=new a.Subscription,t.add(this.source.subscribe(new c(this.getSubject(),this))),t.closed?(this._connection=null,t=a.Subscription.EMPTY):this._connection=t),t},e.prototype.refCount=function(){return this.lift(new l(this))},e}(i.Observable);e.ConnectableObservable=u,e.connectableObservableDescriptor={operator:{value:null},_refCount:{value:0,writable:!0},_subject:{value:null,writable:!0},_connection:{value:null,writable:!0},_subscribe:{value:u.prototype._subscribe},getSubject:{value:u.prototype.getSubject},connect:{value:u.prototype.connect},refCount:{value:u.prototype.refCount}};var c=function(t){function e(e,n){t.call(this,e),this.connectable=n}return r(e,t),e.prototype._error=function(e){this._unsubscribe(),t.prototype._error.call(this,e)},e.prototype._complete=function(){this._unsubscribe(),t.prototype._complete.call(this)},e.prototype._unsubscribe=function(){var t=this.connectable;if(t){this.connectable=null;var e=t._connection;t._refCount=0,t._subject=null,t._connection=null,e&&e.unsubscribe()}},e}(o.SubjectSubscriber),l=function(){function t(t){this.connectable=t}return t.prototype.call=function(t,e){var n=this.connectable;n._refCount++;var r=new p(t,n),o=e.subscribe(r);return r.closed||(r.connection=n.connect()),o},t}(),p=function(t){function e(e,n){t.call(this,e),this.connectable=n}return r(e,t),e.prototype._unsubscribe=function(){var t=this.connectable;if(!t)return void(this.connection=null);this.connectable=null;var e=t._refCount;if(e<=0)return void(this.connection=null);if(t._refCount=e-1,e>1)return void(this.connection=null);var n=this.connection,r=t._connection;this.connection=null,!r||n&&r!==n||r.unsubscribe()},e}(s.Subscriber)},297:function(t,e,n){"use strict";var r=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},o=n(9),i=function(t){function e(e,n){t.call(this),this.error=e,this.scheduler=n}return r(e,t),e.create=function(t,n){return new e(t,n)},e.dispatch=function(t){var e=t.error;t.subscriber.error(e)},e.prototype._subscribe=function(t){var n=this.error,r=this.scheduler;if(r)return r.schedule(e.dispatch,0,{error:n,subscriber:t});t.error(n)},e}(o.Observable);e.ErrorObservable=i},298:function(t,e,n){"use strict";var r=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},o=n(9),i=n(120),s=n(123),a=n(85),u=n(82),c=function(t){function e(e,n){t.call(this),this.sources=e,this.resultSelector=n}return r(e,t),e.create=function(){for(var t=[],n=0;n<arguments.length;n++)t[n-0]=arguments[n];if(null===t||0===arguments.length)return new i.EmptyObservable;var r=null;return"function"==typeof t[t.length-1]&&(r=t.pop()),1===t.length&&s.isArray(t[0])&&(t=t[0]),0===t.length?new i.EmptyObservable:new e(t,r)},e.prototype._subscribe=function(t){return new l(t,this.sources,this.resultSelector)},e}(o.Observable);e.ForkJoinObservable=c;var l=function(t){function e(e,n,r){t.call(this,e),this.sources=n,this.resultSelector=r,this.completed=0,this.haveValues=0;var o=n.length;this.total=o,this.values=new Array(o);for(var i=0;i<o;i++){var s=n[i],u=a.subscribeToResult(this,s,null,i);u&&(u.outerIndex=i,this.add(u))}}return r(e,t),e.prototype.notifyNext=function(t,e,n,r,o){this.values[n]=e,o._hasValue||(o._hasValue=!0,this.haveValues++)},e.prototype.notifyComplete=function(t){var e=this.destination,n=this,r=n.haveValues,o=n.resultSelector,i=n.values,s=i.length;if(!t._hasValue)return void e.complete();if(++this.completed===s){if(r===s){var a=o?o.apply(this,i):i;e.next(a)}e.complete()}},e}(u.OuterSubscriber)},299:function(t,e,n){"use strict";function r(t){var e=t.value,n=t.subscriber;n.closed||(n.next(e),n.complete())}function o(t){var e=t.err,n=t.subscriber;n.closed||n.error(e)}var i=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},s=n(37),a=n(9),u=function(t){function e(e,n){t.call(this),this.promise=e,this.scheduler=n}return i(e,t),e.create=function(t,n){return new e(t,n)},e.prototype._subscribe=function(t){var e=this,n=this.promise,i=this.scheduler;if(null==i)this._isScalar?t.closed||(t.next(this.value),t.complete()):n.then(function(n){e.value=n,e._isScalar=!0,t.closed||(t.next(n),t.complete())},function(e){t.closed||t.error(e)}).then(null,function(t){s.root.setTimeout(function(){throw t})});else if(this._isScalar){if(!t.closed)return i.schedule(r,0,{value:this.value,subscriber:t})}else n.then(function(n){e.value=n,e._isScalar=!0,t.closed||t.add(i.schedule(r,0,{value:n,subscriber:t}))},function(e){t.closed||t.add(i.schedule(o,0,{err:e,subscriber:t}))}).then(null,function(t){s.root.setTimeout(function(){throw t})})},e}(a.Observable);e.PromiseObservable=u},300:function(t,e,n){"use strict";var r=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},o=n(9),i=function(t){function e(e,n){t.call(this),this.value=e,this.scheduler=n,this._isScalar=!0,n&&(this._isScalar=!1)}return r(e,t),e.create=function(t,n){return new e(t,n)},e.dispatch=function(t){var e=t.done,n=t.value,r=t.subscriber;if(e)return void r.complete();r.next(n),r.closed||(t.done=!0,this.schedule(t))},e.prototype._subscribe=function(t){var n=this.value,r=this.scheduler;if(r)return r.schedule(e.dispatch,0,{done:!1,value:n,subscriber:t});t.next(n),t.closed||t.complete()},e}(o.Observable);e.ScalarObservable=i},301:function(t,e,n){"use strict";var r=n(298);e.forkJoin=r.ForkJoinObservable.create},302:function(t,e,n){"use strict";var r=n(299);e.fromPromise=r.PromiseObservable.create},303:function(t,e,n){"use strict";var r=n(307);e.merge=r.mergeStatic},304:function(t,e,n){"use strict";var r=n(297);e._throw=r.ErrorObservable.create},305:function(t,e,n){"use strict";function r(t){var e=new a(t),n=this.lift(e);return e.caught=n}var o=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},i=n(82),s=n(85);e._catch=r;var a=function(){function t(t){this.selector=t}return t.prototype.call=function(t,e){return e.subscribe(new u(t,this.selector,this.caught))},t}(),u=function(t){function e(e,n,r){t.call(this,e),this.selector=n,this.caught=r}return o(e,t),e.prototype.error=function(e){if(!this.isStopped){var n=void 0;try{n=this.selector(e,this.caught)}catch(e){return void t.prototype.error.call(this,e)}this._unsubscribeAndRecycle(),this.add(s.subscribeToResult(this,n))}},e}(i.OuterSubscriber)},306:function(t,e,n){"use strict";function r(t,e){if("function"!=typeof t)throw new TypeError("argument is not a function. Are you looking for `mapTo()`?");return this.lift(new s(t,e))}var o=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},i=n(44);e.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}();e.MapOperator=s;var a=function(t){function e(e,n,r){t.call(this,e),this.project=n,this.count=0,this.thisArg=r||this}return o(e,t),e.prototype._next=function(t){var e;try{e=this.project.call(this.thisArg,t,this.count++)}catch(t){return void this.destination.error(t)}this.destination.next(e)},e}(i.Subscriber)},307:function(t,e,n){"use strict";function r(){for(var t=[],e=0;e<arguments.length;e++)t[e-0]=arguments[e];return this.lift.call(o.apply(void 0,[this].concat(t)))}function o(){for(var t=[],e=0;e<arguments.length;e++)t[e-0]=arguments[e];var n=Number.POSITIVE_INFINITY,r=null,o=t[t.length-1];return u.isScheduler(o)?(r=t.pop(),t.length>1&&"number"==typeof t[t.length-1]&&(n=t.pop())):"number"==typeof o&&(n=t.pop()),null===r&&1===t.length&&t[0]instanceof i.Observable?t[0]:new s.ArrayObservable(t,r).lift(new a.MergeAllOperator(n))}var i=n(9),s=n(295),a=n(308),u=n(126);e.merge=r,e.mergeStatic=o},308:function(t,e,n){"use strict";function r(t){return void 0===t&&(t=Number.POSITIVE_INFINITY),this.lift(new a(t))}var o=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},i=n(82),s=n(85);e.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}();e.MergeAllOperator=a;var u=function(t){function e(e,n){t.call(this,e),this.concurrent=n,this.hasCompleted=!1,this.buffer=[],this.active=0}return o(e,t),e.prototype._next=function(t){this.active<this.concurrent?(this.active++,this.add(s.subscribeToResult(this,t))):this.buffer.push(t)},e.prototype._complete=function(){this.hasCompleted=!0,0===this.active&&0===this.buffer.length&&this.destination.complete()},e.prototype.notifyComplete=function(t){var e=this.buffer;this.remove(t),this.active--,e.length>0?this._next(e.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()},e}(i.OuterSubscriber);e.MergeAllSubscriber=u},309:function(t,e,n){"use strict";function r(t,e){var n;if(n="function"==typeof t?t:function(){return t},"function"==typeof e)return this.lift(new i(n,e));var r=Object.create(this,o.connectableObservableDescriptor);return r.source=this,r.subjectFactory=n,r}var o=n(296);e.multicast=r;var i=function(){function t(t,e){this.subjectFactory=t,this.selector=e}return t.prototype.call=function(t,e){var n=this.selector,r=this.subjectFactory(),o=n(r).subscribe(t);return o.add(e.subscribe(r)),o},t}();e.MulticastOperator=i},310:function(t,e,n){"use strict";function r(){return new s.Subject}function o(){return i.multicast.call(this,r).refCount()}var i=n(309),s=n(83);e.share=o},311:function(t,e,n){"use strict";function r(t){var e=this;if(t||(o.root.Rx&&o.root.Rx.config&&o.root.Rx.config.Promise?t=o.root.Rx.config.Promise:o.root.Promise&&(t=o.root.Promise)),!t)throw new Error("no Promise impl found");return new t(function(t,n){var r;e.subscribe(function(t){return r=t},function(t){return n(t)},function(){return t(r)})})}var o=n(37);e.toPromise=r},312:function(t,e,n){"use strict";function r(t){var e=t.Symbol;if("function"==typeof e)return e.iterator||(e.iterator=e("iterator polyfill")),e.iterator;var n=t.Set;if(n&&"function"==typeof(new n)["@@iterator"])return"@@iterator";var r=t.Map;if(r)for(var o=Object.getOwnPropertyNames(r.prototype),i=0;i<o.length;++i){var s=o[i];if("entries"!==s&&"size"!==s&&r.prototype[s]===r.prototype.entries)return s}return"@@iterator"}var o=n(37);e.symbolIteratorPonyfill=r,e.iterator=r(o.root),e.$$iterator=e.iterator},313:function(t,e,n){"use strict";var r=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},o=function(t){function e(){var e=t.call(this,"object unsubscribed");this.name=e.name="ObjectUnsubscribedError",this.stack=e.stack,this.message=e.message}return r(e,t),e}(Error);e.ObjectUnsubscribedError=o},314:function(t,e,n){"use strict";var r=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},o=function(t){function e(e){t.call(this),this.errors=e;var n=Error.call(this,e?e.length+" errors occurred during unsubscription:\n "+e.map(function(t,e){return e+1+") "+t.toString()}).join("\n "):"");this.name=n.name="UnsubscriptionError",this.stack=n.stack,this.message=n.message}return r(e,t),e}(Error);e.UnsubscriptionError=o},315:function(t,e,n){"use strict";e.isArrayLike=function(t){return t&&"number"==typeof t.length}},316:function(t,e,n){"use strict";function r(t){return t&&"function"!=typeof t.subscribe&&"function"==typeof t.then}e.isPromise=r},317:function(t,e,n){"use strict";function r(t,e,n){if(t){if(t instanceof o.Subscriber)return t;if(t[i.rxSubscriber])return t[i.rxSubscriber]()}return t||e||n?new o.Subscriber(t,e,n):new o.Subscriber(s.empty)}var o=n(44),i=n(84),s=n(119);e.toSubscriber=r},318:function(t,e,n){"use strict";function r(){try{return i.apply(this,arguments)}catch(t){return s.errorObject.e=t,s.errorObject}}function o(t){return i=t,r}var i,s=n(122);e.tryCatch=o},37:function(t,e,n){"use strict";(function(t){"object"==typeof window&&window.window===window?e.root=window:"object"==typeof self&&self.self===self?e.root=self:"object"==typeof t&&t.global===t?e.root=t:function(){throw new Error("RxJS could not find any global context (window, self, global)")}()}).call(e,n(60))},44:function(t,e,n){"use strict";var r=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},o=n(124),i=n(59),s=n(119),a=n(84),u=function(t){function e(n,r,o){switch(t.call(this),this.syncErrorValue=null,this.syncErrorThrown=!1,this.syncErrorThrowable=!1,this.isStopped=!1,arguments.length){case 0:this.destination=s.empty;break;case 1:if(!n){this.destination=s.empty;break}if("object"==typeof n){n instanceof e?(this.destination=n,this.destination.add(this)):(this.syncErrorThrowable=!0,this.destination=new c(this,n));break}default:this.syncErrorThrowable=!0,this.destination=new c(this,n,r,o)}}return r(e,t),e.prototype[a.rxSubscriber]=function(){return this},e.create=function(t,n,r){var o=new e(t,n,r);return o.syncErrorThrowable=!1,o},e.prototype.next=function(t){this.isStopped||this._next(t)},e.prototype.error=function(t){this.isStopped||(this.isStopped=!0,this._error(t))},e.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},e.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,t.prototype.unsubscribe.call(this))},e.prototype._next=function(t){this.destination.next(t)},e.prototype._error=function(t){this.destination.error(t),this.unsubscribe()},e.prototype._complete=function(){this.destination.complete(),this.unsubscribe()},e.prototype._unsubscribeAndRecycle=function(){var t=this,e=t._parent,n=t._parents;return this._parent=null,this._parents=null,this.unsubscribe(),this.closed=!1,this.isStopped=!1,this._parent=e,this._parents=n,this},e}(i.Subscription);e.Subscriber=u;var c=function(t){function e(e,n,r,i){t.call(this),this._parentSubscriber=e;var a,u=this;o.isFunction(n)?a=n:n&&(a=n.next,r=n.error,i=n.complete,n!==s.empty&&(u=Object.create(n),o.isFunction(u.unsubscribe)&&this.add(u.unsubscribe.bind(u)),u.unsubscribe=this.unsubscribe.bind(this))),this._context=u,this._next=a,this._error=r,this._complete=i}return r(e,t),e.prototype.next=function(t){if(!this.isStopped&&this._next){var e=this._parentSubscriber;e.syncErrorThrowable?this.__tryOrSetError(e,this._next,t)&&this.unsubscribe():this.__tryOrUnsub(this._next,t)}},e.prototype.error=function(t){if(!this.isStopped){var e=this._parentSubscriber;if(this._error)e.syncErrorThrowable?(this.__tryOrSetError(e,this._error,t),this.unsubscribe()):(this.__tryOrUnsub(this._error,t),this.unsubscribe());else{if(!e.syncErrorThrowable)throw this.unsubscribe(),t;e.syncErrorValue=t,e.syncErrorThrown=!0,this.unsubscribe()}}},e.prototype.complete=function(){if(!this.isStopped){var t=this._parentSubscriber;this._complete?t.syncErrorThrowable?(this.__tryOrSetError(t,this._complete),this.unsubscribe()):(this.__tryOrUnsub(this._complete),this.unsubscribe()):this.unsubscribe()}},e.prototype.__tryOrUnsub=function(t,e){try{t.call(this._context,e)}catch(t){throw this.unsubscribe(),t}},e.prototype.__tryOrSetError=function(t,e,n){try{e.call(this._context,n)}catch(e){return t.syncErrorValue=e,t.syncErrorThrown=!0,!0}return!1},e.prototype._unsubscribe=function(){var t=this._parentSubscriber;this._context=null,this._parentSubscriber=null,t.unsubscribe()},e}(u)},49:function(t,e,n){"use strict";function r(){return j}function o(t){j||(j=t)}function i(){return K||(K=document.querySelector("base"))?K.getAttribute("href"):null}function s(t){return z||(z=document.createElement("a")),z.setAttribute("href",t),"/"===z.pathname.charAt(0)?z.pathname:"/"+z.pathname}function a(t,e){e=encodeURIComponent(e);for(var n=0,r=t.split(";");n<r.length;n++){var o=r[n],i=o.indexOf("="),s=-1==i?[o,""]:[o.slice(0,i),o.slice(i+1)],a=s[0],u=s[1];if(a.trim()===e)return decodeURIComponent(u)}return null}function u(t,e,n){for(var r=e.split("."),o=t;r.length>1;){var i=r.shift();o=o.hasOwnProperty(i)&&null!=o[i]?o[i]:o[i]={}}void 0!==o&&null!==o||(o={}),o[r.shift()]=n}/**
* @license
* Copyright Google Inc. All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
* @return {?}
*/
function c(){return!!window.history.pushState}function l(t,e){return function(){var n=r();Array.prototype.slice.apply(n.querySelectorAll(e,"style[ng-transition]")).filter(function(e){return n.getAttribute(e,"ng-transition")===t}).forEach(function(t){return n.remove(t)})}}function p(t){return n.i(V.getDebugNode)(t)}function h(t,e){var n=(t||[]).concat(e||[]);return r().setGlobalVar(rt,p),r().setGlobalVar(ot,et({},nt,f(n||[]))),function(){return p}}function f(t){return t.reduce(function(t,e){return t[e.name]=e.token,t},{})}function d(t){return yt.replace(ft,t)}function y(t){return dt.replace(ft,t)}function v(t,e,n){for(var r=0;r<e.length;r++){var o=e[r];Array.isArray(o)?v(t,o,n):(o=o.replace(ft,t),n.push(o))}return n}function m(t){return function(e){!1===t(e)&&(e.preventDefault(),e.returnValue=!1)}}function g(t,e){if(t.charCodeAt(0)===gt)throw new Error("Found the synthetic "+e+" "+t+'. Please include either "BrowserAnimationsModule" or "NoopAnimationsModule" in your application.')}function _(t){return t=String(t),t.match(Ot)||t.match(Mt)?t:(n.i(V.isDevMode)()&&r().log("WARNING: sanitizing unsafe URL value "+t+" (see http://g.co/ng/security#xss)"),"unsafe:"+t)}function b(t){return t=String(t),t.split(",").map(function(t){return _(t.trim())}).join(", ")}function w(){if(kt)return kt;Nt=r();var t=Nt.createElement("template");if("content"in t)return t;var e=Nt.createHtmlDocument();if(null==(kt=Nt.querySelector(e,"body"))){var n=Nt.createElement("html",e);kt=Nt.createElement("body",e),Nt.appendChild(n,kt),Nt.appendChild(e,n)}return kt}function E(t){for(var e={},n=0,r=t.split(",");n<r.length;n++){e[r[n]]=!0}return e}function C(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];for(var n={},r=0,o=t;r<o.length;r++){var i=o[r];for(var s in i)i.hasOwnProperty(s)&&(n[s]=!0)}return n}function S(t,e){if(e&&Nt.contains(t,e))throw new Error("Failed to sanitize html because the element is clobbered: "+Nt.getOuterHTML(t));return e}function x(t){return t.replace(/&/g,"&amp;").replace(zt,function(t){return"&#"+(1024*(t.charCodeAt(0)-55296)+(t.charCodeAt(1)-56320)+65536)+";"}).replace(Wt,function(t){return"&#"+t.charCodeAt(0)+";"}).replace(/</g,"&lt;").replace(/>/g,"&gt;")}function T(t){Nt.attributeMap(t).forEach(function(e,n){"xmlns:ns1"!==n&&0!==n.indexOf("ns1:")||Nt.removeAttribute(t,n)});for(var e=0,n=Nt.childNodesAsList(t);e<n.length;e++){var r=n[e];Nt.isElementNode(r)&&T(r)}}function P(t,e){try{var r=w(),o=e?String(e):"",i=5,s=o;do{if(0===i)throw new Error("Failed to sanitize html because the input is unstable");i--,o=s,Nt.setInnerHTML(r,o),t.documentMode&&T(r),s=Nt.getInnerHTML(r)}while(o!==s);for(var a=new Gt,u=a.sanitizeChildren(Nt.getTemplateContent(r)||r),c=Nt.getTemplateContent(r)||r,l=0,p=Nt.childNodesAsList(c);l<p.length;l++){var h=p[l];Nt.removeChild(c,h)}return n.i(V.isDevMode)()&&a.sanitizedSomething&&Nt.log("WARNING: sanitizing HTML stripped some content (see http://g.co/ng/security#xss)."),u}catch(t){throw kt=null,t}}function A(t){for(var e=!0,n=!0,r=0;r<t.length;r++){var o=t.charAt(r);"'"===o&&n?e=!e:'"'===o&&e&&(n=!n)}return e&&n}function O(t){if(!(t=String(t).trim()))return"";var e=t.match(Qt);return e&&_(e[1])===e[1]||t.match(Kt)&&A(t)?t:(n.i(V.isDevMode)()&&r().log("WARNING: sanitizing unsafe style value "+t+" (see http://g.co/ng/security#xss)."),"unsafe")}function M(){W.makeCurrent(),J.init()}function k(){return new V.ErrorHandler}function N(){return document}function I(t){return r().setGlobalVar(le,new ce(t)),t}function R(){r().setGlobalVar(le,null)}Object.defineProperty(e,"__esModule",{value:!0});var D=n(86),V=n(20);n.d(e,"BrowserModule",function(){return se}),n.d(e,"platformBrowser",function(){return ie}),n.d(e,"Meta",function(){return Z}),n.d(e,"Title",function(){return tt}),n.d(e,"disableDebugTools",function(){return R}),n.d(e,"enableDebugTools",function(){return I}),n.d(e,"By",function(){return pe}),n.d(e,"NgProbeToken",function(){return it}),n.d(e,"DOCUMENT",function(){return Q}),n.d(e,"EVENT_MANAGER_PLUGINS",function(){return at}),n.d(e,"EventManager",function(){return ut}),n.d(e,"HAMMER_GESTURE_CONFIG",function(){return Ct}),n.d(e,"HammerGestureConfig",function(){return St}),n.d(e,"DomSanitizer",function(){return Xt}),n.d(e,"VERSION",function(){return he}),n.d(e,"ɵBROWSER_SANITIZATION_PROVIDERS",function(){return oe}),n.d(e,"ɵINTERNAL_BROWSER_PLATFORM_PROVIDERS",function(){return re}),n.d(e,"ɵinitDomAdapter",function(){return M}),n.d(e,"ɵBrowserDomAdapter",function(){return W}),n.d(e,"ɵsetValueOnPath",function(){return u}),n.d(e,"ɵBrowserPlatformLocation",function(){return X}),n.d(e,"ɵTRANSITION_ID",function(){return Y}),n.d(e,"ɵBrowserGetTestability",function(){return J}),n.d(e,"ɵELEMENT_PROBE_PROVIDERS",function(){return st}),n.d(e,"ɵDomAdapter",function(){return H}),n.d(e,"ɵgetDOM",function(){return r}),n.d(e,"ɵsetRootDomAdapter",function(){return o}),n.d(e,"ɵDomRendererFactory2",function(){return vt}),n.d(e,"ɵNAMESPACE_URIS",function(){return ht}),n.d(e,"ɵflattenStyles",function(){return v}),n.d(e,"ɵshimContentAttribute",function(){return d}),n.d(e,"ɵshimHostAttribute",function(){return y}),n.d(e,"ɵDomEventsPlugin",function(){return wt}),n.d(e,"ɵHammerGesturesPlugin",function(){return xt}),n.d(e,"ɵKeyEventsPlugin",function(){return At}),n.d(e,"ɵDomSharedStylesHost",function(){return pt}),n.d(e,"ɵSharedStylesHost",function(){return lt}),n.d(e,"ɵb",function(){return N}),n.d(e,"ɵa",function(){return k}),n.d(e,"ɵh",function(){return U}),n.d(e,"ɵg",function(){return $}),n.d(e,"ɵf",function(){return l}),n.d(e,"ɵc",function(){return h}),n.d(e,"ɵd",function(){return ct}),n.d(e,"ɵe",function(){return Zt});var L,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)},j=null,H=function(){function t(){this.resourceLoaderType=null}return t.prototype.hasProperty=function(t,e){},t.prototype.setProperty=function(t,e,n){},t.prototype.getProperty=function(t,e){},t.prototype.invoke=function(t,e,n){},t.prototype.logError=function(t){},t.prototype.log=function(t){},t.prototype.logGroup=function(t){},t.prototype.logGroupEnd=function(){},Object.defineProperty(t.prototype,"attrToPropMap",{get:function(){return this._attrToPropMap},set:function(t){this._attrToPropMap=t},enumerable:!0,configurable:!0}),t.prototype.contains=function(t,e){},t.prototype.parse=function(t){},t.prototype.querySelector=function(t,e){},t.prototype.querySelectorAll=function(t,e){},t.prototype.on=function(t,e,n){},t.prototype.onAndCancel=function(t,e,n){},t.prototype.dispatchEvent=function(t,e){},t.prototype.createMouseEvent=function(t){},t.prototype.createEvent=function(t){},t.prototype.preventDefault=function(t){},t.prototype.isPrevented=function(t){},t.prototype.getInnerHTML=function(t){},t.prototype.getTemplateContent=function(t){},t.prototype.getOuterHTML=function(t){},t.prototype.nodeName=function(t){},t.prototype.nodeValue=function(t){},t.prototype.type=function(t){},t.prototype.content=function(t){},t.prototype.firstChild=function(t){},t.prototype.nextSibling=function(t){},t.prototype.parentElement=function(t){},t.prototype.childNodes=function(t){},t.prototype.childNodesAsList=function(t){},t.prototype.clearNodes=function(t){},t.prototype.appendChild=function(t,e){},t.prototype.removeChild=function(t,e){},t.prototype.replaceChild=function(t,e,n){},t.prototype.remove=function(t){},t.prototype.insertBefore=function(t,e,n){},t.prototype.insertAllBefore=function(t,e,n){},t.prototype.insertAfter=function(t,e,n){},t.prototype.setInnerHTML=function(t,e){},t.prototype.getText=function(t){},t.prototype.setText=function(t,e){},t.prototype.getValue=function(t){},t.prototype.setValue=function(t,e){},t.prototype.getChecked=function(t){},t.prototype.setChecked=function(t,e){},t.prototype.createComment=function(t){},t.prototype.createTemplate=function(t){},t.prototype.createElement=function(t,e){},t.prototype.createElementNS=function(t,e,n){},t.prototype.createTextNode=function(t,e){},t.prototype.createScriptTag=function(t,e,n){},t.prototype.createStyleElement=function(t,e){},t.prototype.createShadowRoot=function(t){},t.prototype.getShadowRoot=function(t){},t.prototype.getHost=function(t){},t.prototype.getDistributedNodes=function(t){},t.prototype.clone=function(t){},t.prototype.getElementsByClassName=function(t,e){},t.prototype.getElementsByTagName=function(t,e){},t.prototype.classList=function(t){},t.prototype.addClass=function(t,e){},t.prototype.removeClass=function(t,e){},t.prototype.hasClass=function(t,e){},t.prototype.setStyle=function(t,e,n){},t.prototype.removeStyle=function(t,e){},t.prototype.getStyle=function(t,e){},t.prototype.hasStyle=function(t,e,n){},t.prototype.tagName=function(t){},t.prototype.attributeMap=function(t){},t.prototype.hasAttribute=function(t,e){},t.prototype.hasAttributeNS=function(t,e,n){},t.prototype.getAttribute=function(t,e){},t.prototype.getAttributeNS=function(t,e,n){},t.prototype.setAttribute=function(t,e,n){},t.prototype.setAttributeNS=function(t,e,n,r){},t.prototype.removeAttribute=function(t,e){},t.prototype.removeAttributeNS=function(t,e,n){},t.prototype.templateAwareRoot=function(t){},t.prototype.createHtmlDocument=function(){},t.prototype.getBoundingClientRect=function(t){},t.prototype.getTitle=function(t){},t.prototype.setTitle=function(t,e){},t.prototype.elementMatches=function(t,e){},t.prototype.isTemplateElement=function(t){},t.prototype.isTextNode=function(t){},t.prototype.isCommentNode=function(t){},t.prototype.isElementNode=function(t){},t.prototype.hasShadowRoot=function(t){},t.prototype.isShadowRoot=function(t){},t.prototype.importIntoDoc=function(t){},t.prototype.adoptNode=function(t){},t.prototype.getHref=function(t){},t.prototype.getEventKey=function(t){},t.prototype.resolveAndSetHref=function(t,e,n){},t.prototype.supportsDOMEvents=function(){},t.prototype.supportsNativeShadowDOM=function(){},t.prototype.getGlobalEventTarget=function(t,e){},t.prototype.getHistory=function(){},t.prototype.getLocation=function(){},t.prototype.getBaseHref=function(t){},t.prototype.resetBaseElement=function(){},t.prototype.getUserAgent=function(){},t.prototype.setData=function(t,e,n){},t.prototype.getComputedStyle=function(t){},t.prototype.getData=function(t,e){},t.prototype.setGlobalVar=function(t,e){},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){},t.prototype.setCookie=function(t,e){},t}(),U=function(t){function e(){var e=t.call(this)||this;e._animationPrefix=null,e._transitionEnd=null;try{var n=e.createElement("div",document);if(null!=e.getStyle(n,"animationName"))e._animationPrefix="";else for(var r=["Webkit","Moz","O","ms"],o=0;o<r.length;o++)if(null!=e.getStyle(n,r[o]+"AnimationName")){e._animationPrefix="-"+r[o].toLowerCase()+"-";break}var i={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend",transition:"transitionend"};Object.keys(i).forEach(function(t){null!=e.getStyle(n,t)&&(e._transitionEnd=i[t])})}catch(t){e._animationPrefix=null,e._transitionEnd=null}return e}return F(e,t),e.prototype.getDistributedNodes=function(t){return t.getDistributedNodes()},e.prototype.resolveAndSetHref=function(t,e,n){t.href=null==n?e:e+"/../"+n},e.prototype.supportsDOMEvents=function(){return!0},e.prototype.supportsNativeShadowDOM=function(){return"function"==typeof document.body.createShadowRoot},e.prototype.getAnimationPrefix=function(){return this._animationPrefix?this._animationPrefix:""},e.prototype.getTransitionEnd=function(){return this._transitionEnd?this._transitionEnd:""},e.prototype.supportsAnimation=function(){return null!=this._animationPrefix&&null!=this._transitionEnd},e}(H),B={class:"className",innerHtml:"innerHTML",readonly:"readOnly",tabindex:"tabIndex"},q={"\b":"Backspace","\t":"Tab","":"Delete","":"Escape",Del:"Delete",Esc:"Escape",Left:"ArrowLeft",Right:"ArrowRight",Up:"ArrowUp",Down:"ArrowDown",Menu:"ContextMenu",Scroll:"ScrollLock",Win:"OS"},G={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"};V["ɵglobal"].Node&&(L=V["ɵglobal"].Node.prototype.contains||function(t){return!!(16&this.compareDocumentPosition(t))});var z,W=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return F(e,t),e.prototype.parse=function(t){throw new Error("parse not implemented")},e.makeCurrent=function(){o(new e)},e.prototype.hasProperty=function(t,e){return e in t},e.prototype.setProperty=function(t,e,n){t[e]=n},e.prototype.getProperty=function(t,e){return t[e]},e.prototype.invoke=function(t,e,n){t[e].apply(t,n)},e.prototype.logError=function(t){window.console&&(console.error?console.error(t):console.log(t))},e.prototype.log=function(t){window.console&&window.console.log&&window.console.log(t)},e.prototype.logGroup=function(t){window.console&&window.console.group&&window.console.group(t)},e.prototype.logGroupEnd=function(){window.console&&window.console.groupEnd&&window.console.groupEnd()},Object.defineProperty(e.prototype,"attrToPropMap",{get:function(){return B},enumerable:!0,configurable:!0}),e.prototype.contains=function(t,e){return L.call(t,e)},e.prototype.querySelector=function(t,e){return t.querySelector(e)},e.prototype.querySelectorAll=function(t,e){return t.querySelectorAll(e)},e.prototype.on=function(t,e,n){t.addEventListener(e,n,!1)},e.prototype.onAndCancel=function(t,e,n){return t.addEventListener(e,n,!1),function(){t.removeEventListener(e,n,!1)}},e.prototype.dispatchEvent=function(t,e){t.dispatchEvent(e)},e.prototype.createMouseEvent=function(t){var e=document.createEvent("MouseEvent");return e.initEvent(t,!0,!0),e},e.prototype.createEvent=function(t){var e=document.createEvent("Event");return e.initEvent(t,!0,!0),e},e.prototype.preventDefault=function(t){t.preventDefault(),t.returnValue=!1},e.prototype.isPrevented=function(t){return t.defaultPrevented||null!=t.returnValue&&!t.returnValue},e.prototype.getInnerHTML=function(t){return t.innerHTML},e.prototype.getTemplateContent=function(t){return"content"in t&&t instanceof HTMLTemplateElement?t.content:null},e.prototype.getOuterHTML=function(t){return t.outerHTML},e.prototype.nodeName=function(t){return t.nodeName},e.prototype.nodeValue=function(t){return t.nodeValue},e.prototype.type=function(t){return t.type},e.prototype.content=function(t){return this.hasProperty(t,"content")?t.content:t},e.prototype.firstChild=function(t){return t.firstChild},e.prototype.nextSibling=function(t){return t.nextSibling},e.prototype.parentElement=function(t){return t.parentNode},e.prototype.childNodes=function(t){return t.childNodes},e.prototype.childNodesAsList=function(t){for(var e=t.childNodes,n=new Array(e.length),r=0;r<e.length;r++)n[r]=e[r];return n},e.prototype.clearNodes=function(t){for(;t.firstChild;)t.removeChild(t.firstChild)},e.prototype.appendChild=function(t,e){t.appendChild(e)},e.prototype.removeChild=function(t,e){t.removeChild(e)},e.prototype.replaceChild=function(t,e,n){t.replaceChild(e,n)},e.prototype.remove=function(t){return t.parentNode&&t.parentNode.removeChild(t),t},e.prototype.insertBefore=function(t,e,n){t.insertBefore(n,e)},e.prototype.insertAllBefore=function(t,e,n){n.forEach(function(n){return t.insertBefore(n,e)})},e.prototype.insertAfter=function(t,e,n){t.insertBefore(n,e.nextSibling)},e.prototype.setInnerHTML=function(t,e){t.innerHTML=e},e.prototype.getText=function(t){return t.textContent},e.prototype.setText=function(t,e){t.textContent=e},e.prototype.getValue=function(t){return t.value},e.prototype.setValue=function(t,e){t.value=e},e.prototype.getChecked=function(t){return t.checked},e.prototype.setChecked=function(t,e){t.checked=e},e.prototype.createComment=function(t){return document.createComment(t)},e.prototype.createTemplate=function(t){var e=document.createElement("template");return e.innerHTML=t,e},e.prototype.createElement=function(t,e){return void 0===e&&(e=document),e.createElement(t)},e.prototype.createElementNS=function(t,e,n){return void 0===n&&(n=document),n.createElementNS(t,e)},e.prototype.createTextNode=function(t,e){return void 0===e&&(e=document),e.createTextNode(t)},e.prototype.createScriptTag=function(t,e,n){void 0===n&&(n=document);var r=n.createElement("SCRIPT");return r.setAttribute(t,e),r},e.prototype.createStyleElement=function(t,e){void 0===e&&(e=document);var n=e.createElement("style");return this.appendChild(n,this.createTextNode(t)),n},e.prototype.createShadowRoot=function(t){return t.createShadowRoot()},e.prototype.getShadowRoot=function(t){return t.shadowRoot},e.prototype.getHost=function(t){return t.host},e.prototype.clone=function(t){return t.cloneNode(!0)},e.prototype.getElementsByClassName=function(t,e){return t.getElementsByClassName(e)},e.prototype.getElementsByTagName=function(t,e){return t.getElementsByTagName(e)},e.prototype.classList=function(t){return Array.prototype.slice.call(t.classList,0)},e.prototype.addClass=function(t,e){t.classList.add(e)},e.prototype.removeClass=function(t,e){t.classList.remove(e)},e.prototype.hasClass=function(t,e){return t.classList.contains(e)},e.prototype.setStyle=function(t,e,n){t.style[e]=n},e.prototype.removeStyle=function(t,e){t.style[e]=""},e.prototype.getStyle=function(t,e){return t.style[e]},e.prototype.hasStyle=function(t,e,n){var r=this.getStyle(t,e)||"";return n?r==n:r.length>0},e.prototype.tagName=function(t){return t.tagName},e.prototype.attributeMap=function(t){for(var e=new Map,n=t.attributes,r=0;r<n.length;r++){var o=n[r];e.set(o.name,o.value)}return e},e.prototype.hasAttribute=function(t,e){return t.hasAttribute(e)},e.prototype.hasAttributeNS=function(t,e,n){return t.hasAttributeNS(e,n)},e.prototype.getAttribute=function(t,e){return t.getAttribute(e)},e.prototype.getAttributeNS=function(t,e,n){return t.getAttributeNS(e,n)},e.prototype.setAttribute=function(t,e,n){t.setAttribute(e,n)},e.prototype.setAttributeNS=function(t,e,n,r){t.setAttributeNS(e,n,r)},e.prototype.removeAttribute=function(t,e){t.removeAttribute(e)},e.prototype.removeAttributeNS=function(t,e,n){t.removeAttributeNS(e,n)},e.prototype.templateAwareRoot=function(t){return this.isTemplateElement(t)?this.content(t):t},e.prototype.createHtmlDocument=function(){return document.implementation.createHTMLDocument("fakeTitle")},e.prototype.getBoundingClientRect=function(t){try{return t.getBoundingClientRect()}catch(t){return{top:0,bottom:0,left:0,right:0,width:0,height:0}}},e.prototype.getTitle=function(t){return document.title},e.prototype.setTitle=function(t,e){document.title=e||""},e.prototype.elementMatches=function(t,e){return t instanceof HTMLElement&&(t.matches&&t.matches(e)||t.msMatchesSelector&&t.msMatchesSelector(e)||t.webkitMatchesSelector&&t.webkitMatchesSelector(e))},e.prototype.isTemplateElement=function(t){return t instanceof HTMLElement&&"TEMPLATE"==t.nodeName},e.prototype.isTextNode=function(t){return t.nodeType===Node.TEXT_NODE},e.prototype.isCommentNode=function(t){return t.nodeType===Node.COMMENT_NODE},e.prototype.isElementNode=function(t){return t.nodeType===Node.ELEMENT_NODE},e.prototype.hasShadowRoot=function(t){return null!=t.shadowRoot&&t instanceof HTMLElement},e.prototype.isShadowRoot=function(t){return t instanceof DocumentFragment},e.prototype.importIntoDoc=function(t){return document.importNode(this.templateAwareRoot(t),!0)},e.prototype.adoptNode=function(t){return document.adoptNode(t)},e.prototype.getHref=function(t){return t.href},e.prototype.getEventKey=function(t){var e=t.key;if(null==e){if(null==(e=t.keyIdentifier))return"Unidentified";e.startsWith("U+")&&(e=String.fromCharCode(parseInt(e.substring(2),16)),3===t.location&&G.hasOwnProperty(e)&&(e=G[e]))}return q[e]||e},e.prototype.getGlobalEventTarget=function(t,e){return"window"===e?window:"document"===e?document:"body"===e?document.body:null},e.prototype.getHistory=function(){return window.history},e.prototype.getLocation=function(){return window.location},e.prototype.getBaseHref=function(t){var e=i();return null==e?null:s(e)},e.prototype.resetBaseElement=function(){K=null},e.prototype.getUserAgent=function(){return window.navigator.userAgent},e.prototype.setData=function(t,e,n){this.setAttribute(t,"data-"+e,n)},e.prototype.getData=function(t,e){return this.getAttribute(t,"data-"+e)},e.prototype.getComputedStyle=function(t){return getComputedStyle(t)},e.prototype.setGlobalVar=function(t,e){u(V["ɵglobal"],t,e)},e.prototype.supportsWebAnimation=function(){return"function"==typeof Element.prototype.animate},e.prototype.performanceNow=function(){return window.performance&&window.performance.now?window.performance.now():(new Date).getTime()},e.prototype.supportsCookies=function(){return!0},e.prototype.getCookie=function(t){return a(document.cookie,t)},e.prototype.setCookie=function(t,e){document.cookie=encodeURIComponent(t)+"="+encodeURIComponent(e)},e}(U),K=null,Q=new V.InjectionToken("DocumentToken"),X=function(t){function e(e){var n=t.call(this)||this;return n._doc=e,n._init(),n}return F(e,t),e.prototype._init=function(){this._location=r().getLocation(),this._history=r().getHistory()},Object.defineProperty(e.prototype,"location",{get:function(){return this._location},enumerable:!0,configurable:!0}),e.prototype.getBaseHrefFromDOM=function(){return r().getBaseHref(this._doc)},e.prototype.onPopState=function(t){r().getGlobalEventTarget(this._doc,"window").addEventListener("popstate",t,!1)},e.prototype.onHashChange=function(t){r().getGlobalEventTarget(this._doc,"window").addEventListener("hashchange",t,!1)},Object.defineProperty(e.prototype,"pathname",{get:function(){return this._location.pathname},set:function(t){this._location.pathname=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"search",{get:function(){return this._location.search},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"hash",{get:function(){return this._location.hash},enumerable:!0,configurable:!0}),e.prototype.pushState=function(t,e,n){c()?this._history.pushState(t,e,n):this._location.hash=n},e.prototype.replaceState=function(t,e,n){c()?this._history.replaceState(t,e,n):this._location.hash=n},e.prototype.forward=function(){this._history.forward()},e.prototype.back=function(){this._history.back()},e}(D.a);X.decorators=[{type:V.Injectable}],X.ctorParameters=function(){return[{type:void 0,decorators:[{type:V.Inject,args:[Q]}]}]};/**
* @license
* Copyright Google Inc. All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
var Z=function(){function t(t){this._doc=t,this._dom=r()}return t.prototype.addTag=function(t,e){return void 0===e&&(e=!1),t?this._getOrCreateElement(t,e):null},t.prototype.addTags=function(t,e){var n=this;return void 0===e&&(e=!1),t?t.reduce(function(t,r){return r&&t.push(n._getOrCreateElement(r,e)),t},[]):[]},t.prototype.getTag=function(t){return t?this._dom.querySelector(this._doc,"meta["+t+"]"):null},t.prototype.getTags=function(t){if(!t)return[];var e=this._dom.querySelectorAll(this._doc,"meta["+t+"]");return e?[].slice.call(e):[]},t.prototype.updateTag=function(t,e){if(!t)return null;e=e||this._parseSelector(t);var n=this.getTag(e);return n?this._setMetaElementAttributes(t,n):this._getOrCreateElement(t,!0)},t.prototype.removeTag=function(t){this.removeTagElement(this.getTag(t))},t.prototype.removeTagElement=function(t){t&&this._dom.remove(t)},t.prototype._getOrCreateElement=function(t,e){if(void 0===e&&(e=!1),!e){var n=this._parseSelector(t),r=this.getTag(n);if(r&&this._containsAttributes(t,r))return r}var o=this._dom.createElement("meta");this._setMetaElementAttributes(t,o);var i=this._dom.getElementsByTagName(this._doc,"head")[0];return this._dom.appendChild(i,o),o},t.prototype._setMetaElementAttributes=function(t,e){var n=this;return Object.keys(t).forEach(function(r){return n._dom.setAttribute(e,r,t[r])}),e},t.prototype._parseSelector=function(t){var e=t.name?"name":"property";return e+'="'+t[e]+'"'},t.prototype._containsAttributes=function(t,e){var n=this;return Object.keys(t).every(function(r){return n._dom.getAttribute(e,r)===t[r]})},t}();Z.decorators=[{type:V.Injectable}],Z.ctorParameters=function(){return[{type:void 0,decorators:[{type:V.Inject,args:[Q]}]}]};/**
* @license
* Copyright Google Inc. All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
var Y=new V.InjectionToken("TRANSITION_ID"),$=[{provide:V.APP_INITIALIZER,useFactory:l,deps:[Y,Q],multi:!0}],J=function(){function t(){}return t.init=function(){n.i(V.setTestabilityGetter)(new t)},t.prototype.addToWindow=function(t){V["ɵglobal"].getAngularTestability=function(e,n){void 0===n&&(n=!0);var r=t.findTestabilityInTree(e,n);if(null==r)throw new Error("Could not find testability for element.");return r},V["ɵglobal"].getAllAngularTestabilities=function(){return t.getAllTestabilities()},V["ɵglobal"].getAllAngularRootElements=function(){return t.getAllRootElements()};var e=function(t){var e=V["ɵglobal"].getAllAngularTestabilities(),n=e.length,r=!1,o=function(e){r=r||e,0==--n&&t(r)};e.forEach(function(t){t.whenStable(o)})};V["ɵglobal"].frameworkStabilizers||(V["ɵglobal"].frameworkStabilizers=[]),V["ɵglobal"].frameworkStabilizers.push(e)},t.prototype.findTestabilityInTree=function(t,e,n){if(null==e)return null;var o=t.getTestability(e);return null!=o?o:n?r().isShadowRoot(e)?this.findTestabilityInTree(t,r().getHost(e),!0):this.findTestabilityInTree(t,r().parentElement(e),!0):null},t}(),tt=function(){function t(t){this._doc=t}return t.prototype.getTitle=function(){return r().getTitle(this._doc)},t.prototype.setTitle=function(t){r().setTitle(this._doc,t)},t}();tt.decorators=[{type:V.Injectable}],tt.ctorParameters=function(){return[{type:void 0,decorators:[{type:V.Inject,args:[Q]}]}]};/**
* @license
* Copyright Google Inc. All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
var et=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++){e=arguments[n];for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])}return t},nt={ApplicationRef:V.ApplicationRef,NgZone:V.NgZone},rt="ng.probe",ot="ng.coreTokens",it=function(){function t(t,e){this.name=t,this.token=e}return t}(),st=[{provide:V.APP_INITIALIZER,useFactory:h,deps:[[it,new V.Optional],[V.NgProbeToken,new V.Optional]],multi:!0}],at=new V.InjectionToken("EventManagerPlugins"),ut=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){return this._findPluginFor(e).addEventListener(t,e,n)},t.prototype.addGlobalEventListener=function(t,e,n){return this._findPluginFor(e).addGlobalEventListener(t,e,n)},t.prototype.getZone=function(){return this._zone},t.prototype._findPluginFor=function(t){var e=this._eventNameToPlugin.get(t);if(e)return e;for(var n=this._plugins,r=0;r<n.length;r++){var o=n[r];if(o.supports(t))return this._eventNameToPlugin.set(t,o),o}throw new Error("No event manager plugin found for event "+t)},t}();ut.decorators=[{type:V.Injectable}],ut.ctorParameters=function(){return[{type:Array,decorators:[{type:V.Inject,args:[at]}]},{type:V.NgZone}]};var ct=function(){function t(t){this._doc=t}return t.prototype.supports=function(t){},t.prototype.addEventListener=function(t,e,n){},t.prototype.addGlobalEventListener=function(t,e,n){var o=r().getGlobalEventTarget(this._doc,t);if(!o)throw new Error("Unsupported event target "+o+" for event "+e);return this.addEventListener(o,e,n)},t}(),lt=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){},t.prototype.getAllStyles=function(){return Array.from(this._stylesSet)},t}();lt.decorators=[{type:V.Injectable}],lt.ctorParameters=function(){return[]};var pt=function(t){function e(e){var n=t.call(this)||this;return n._doc=e,n._hostNodes=new Set,n._styleNodes=new Set,n._hostNodes.add(e.head),n}return F(e,t),e.prototype._addStylesToHost=function(t,e){var n=this;t.forEach(function(t){var r=n._doc.createElement("style");r.textContent=t,n._styleNodes.add(e.appendChild(r))})},e.prototype.addHost=function(t){this._addStylesToHost(this._stylesSet,t),this._hostNodes.add(t)},e.prototype.removeHost=function(t){this._hostNodes.delete(t)},e.prototype.onStylesAdded=function(t){var e=this;this._hostNodes.forEach(function(n){return e._addStylesToHost(t,n)})},e.prototype.ngOnDestroy=function(){this._styleNodes.forEach(function(t){return r().remove(t)})},e}(lt);pt.decorators=[{type:V.Injectable}],pt.ctorParameters=function(){return[{type:void 0,decorators:[{type:V.Inject,args:[Q]}]}]};/**
* @license
* Copyright Google Inc. All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
var ht={svg:"http://www.w3.org/2000/svg",xhtml:"http://www.w3.org/1999/xhtml",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"},ft=/%COMP%/g,dt="_nghost-%COMP%",yt="_ngcontent-%COMP%",vt=function(){function t(t,e){this.eventManager=t,this.sharedStylesHost=e,this.rendererByCompId=new Map,this.defaultRenderer=new mt(t)}return t.prototype.createRenderer=function(t,e){if(!t||!e)return this.defaultRenderer;switch(e.encapsulation){case V.ViewEncapsulation.Emulated:var n=this.rendererByCompId.get(e.id);return n||(n=new _t(this.eventManager,this.sharedStylesHost,e),this.rendererByCompId.set(e.id,n)),n.applyToHost(t),n;case V.ViewEncapsulation.Native:return new bt(this.eventManager,this.sharedStylesHost,t,e);default:if(!this.rendererByCompId.has(e.id)){var r=v(e.id,e.styles,[]);this.sharedStylesHost.addStyles(r),this.rendererByCompId.set(e.id,this.defaultRenderer)}return this.defaultRenderer}},t}();vt.decorators=[{type:V.Injectable}],vt.ctorParameters=function(){return[{type:ut},{type:pt}]};var mt=function(){function t(t){this.eventManager=t,this.data=Object.create(null)}return t.prototype.destroy=function(){},t.prototype.createElement=function(t,e){return e?document.createElementNS(ht[e],t):document.createElement(t)},t.prototype.createComment=function(t){return document.createComment(t)},t.prototype.createText=function(t){return document.createTextNode(t)},t.prototype.appendChild=function(t,e){t.appendChild(e)},t.prototype.insertBefore=function(t,e,n){t&&t.insertBefore(e,n)},t.prototype.removeChild=function(t,e){t&&t.removeChild(e)},t.prototype.selectRootElement=function(t){var e="string"==typeof t?document.querySelector(t):t;if(!e)throw new Error('The selector "'+t+'" did not match any elements');return e.textContent="",e},t.prototype.parentNode=function(t){return t.parentNode},t.prototype.nextSibling=function(t){return t.nextSibling},t.prototype.setAttribute=function(t,e,n,r){if(r){e=r+":"+e;var o=ht[r];o?t.setAttributeNS(o,e,n):t.setAttribute(e,n)}else t.setAttribute(e,n)},t.prototype.removeAttribute=function(t,e,n){if(n){var r=ht[n];r?t.removeAttributeNS(r,e):t.removeAttribute(n+":"+e)}else t.removeAttribute(e)},t.prototype.addClass=function(t,e){t.classList.add(e)},t.prototype.removeClass=function(t,e){t.classList.remove(e)},t.prototype.setStyle=function(t,e,n,r){r&V.RendererStyleFlags2.DashCase?t.style.setProperty(e,n,r&V.RendererStyleFlags2.Important?"important":""):t.style[e]=n},t.prototype.removeStyle=function(t,e,n){n&V.RendererStyleFlags2.DashCase?t.style.removeProperty(e):t.style[e]=""},t.prototype.setProperty=function(t,e,n){g(e,"property"),t[e]=n},t.prototype.setValue=function(t,e){t.nodeValue=e},t.prototype.listen=function(t,e,n){return g(e,"listener"),"string"==typeof t?this.eventManager.addGlobalEventListener(t,e,m(n)):this.eventManager.addEventListener(t,e,m(n))},t}(),gt="@".charCodeAt(0),_t=function(t){function e(e,n,r){var o=t.call(this,e)||this;o.component=r;var i=v(r.id,r.styles,[]);return n.addStyles(i),o.contentAttr=d(r.id),o.hostAttr=y(r.id),o}return F(e,t),e.prototype.applyToHost=function(e){t.prototype.setAttribute.call(this,e,this.hostAttr,"")},e.prototype.createElement=function(e,n){var r=t.prototype.createElement.call(this,e,n);return t.prototype.setAttribute.call(this,r,this.contentAttr,""),r},e}(mt),bt=function(t){function e(e,n,r,o){var i=t.call(this,e)||this;i.sharedStylesHost=n,i.hostEl=r,i.component=o,i.shadowRoot=r.createShadowRoot(),i.sharedStylesHost.addHost(i.shadowRoot);for(var s=v(o.id,o.styles,[]),a=0;a<s.length;a++){var u=document.createElement("style");u.textContent=s[a],i.shadowRoot.appendChild(u)}return i}return F(e,t),e.prototype.nodeOrShadowRoot=function(t){return t===this.hostEl?this.shadowRoot:t},e.prototype.destroy=function(){this.sharedStylesHost.removeHost(this.shadowRoot)},e.prototype.appendChild=function(e,n){return t.prototype.appendChild.call(this,this.nodeOrShadowRoot(e),n)},e.prototype.insertBefore=function(e,n,r){return t.prototype.insertBefore.call(this,this.nodeOrShadowRoot(e),n,r)},e.prototype.removeChild=function(e,n){return t.prototype.removeChild.call(this,this.nodeOrShadowRoot(e),n)},e.prototype.parentNode=function(e){return this.nodeOrShadowRoot(t.prototype.parentNode.call(this,this.nodeOrShadowRoot(e)))},e}(mt),wt=function(t){function e(e){return t.call(this,e)||this}return F(e,t),e.prototype.supports=function(t){return!0},e.prototype.addEventListener=function(t,e,n){return t.addEventListener(e,n,!1),function(){return t.removeEventListener(e,n,!1)}},e}(ct);wt.decorators=[{type:V.Injectable}],wt.ctorParameters=function(){return[{type:void 0,decorators:[{type:V.Inject,args:[Q]}]}]};/**
* @license
* Copyright Google Inc. All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
var Et={pan:!0,panstart:!0,panmove:!0,panend:!0,pancancel:!0,panleft:!0,panright:!0,panup:!0,pandown:!0,pinch:!0,pinchstart:!0,pinchmove:!0,pinchend:!0,pinchcancel:!0,pinchin:!0,pinchout:!0,press:!0,pressup:!0,rotate:!0,rotatestart:!0,rotatemove:!0,rotateend:!0,rotatecancel:!0,swipe:!0,swipeleft:!0,swiperight:!0,swipeup:!0,swipedown:!0,tap:!0},Ct=new V.InjectionToken("HammerGestureConfig"),St=function(){function t(){this.events=[],this.overrides={}}return t.prototype.buildHammer=function(t){var e=new Hammer(t);e.get("pinch").set({enable:!0}),e.get("rotate").set({enable:!0});for(var n in this.overrides)e.get(n).set(this.overrides[n]);return e},t}();St.decorators=[{type:V.Injectable}],St.ctorParameters=function(){return[]};var xt=function(t){function e(e,n){var r=t.call(this,e)||this;return r._config=n,r}return F(e,t),e.prototype.supports=function(t){if(!Et.hasOwnProperty(t.toLowerCase())&&!this.isCustomEvent(t))return!1;if(!window.Hammer)throw new Error("Hammer.js is not loaded, can not bind "+t+" event");return!0},e.prototype.addEventListener=function(t,e,n){var r=this,o=this.manager.getZone();return e=e.toLowerCase(),o.runOutsideAngular(function(){var i=r._config.buildHammer(t),s=function(t){o.runGuarded(function(){n(t)})};return i.on(e,s),function(){return i.off(e,s)}})},e.prototype.isCustomEvent=function(t){return this._config.events.indexOf(t)>-1},e}(ct);xt.decorators=[{type:V.Injectable}],xt.ctorParameters=function(){return[{type:void 0,decorators:[{type:V.Inject,args:[Q]}]},{type:St,decorators:[{type:V.Inject,args:[Ct]}]}]};/**
* @license
* Copyright Google Inc. All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
var Tt=["alt","control","meta","shift"],Pt={alt:function(t){return t.altKey},control:function(t){return t.ctrlKey},meta:function(t){return t.metaKey},shift:function(t){return t.shiftKey}},At=function(t){function e(e){return t.call(this,e)||this}return F(e,t),e.prototype.supports=function(t){return null!=e.parseEventName(t)},e.prototype.addEventListener=function(t,n,o){var i=e.parseEventName(n),s=e.eventCallback(i.fullKey,o,this.manager.getZone());return this.manager.getZone().runOutsideAngular(function(){return r().onAndCancel(t,i.domEventName,s)})},e.parseEventName=function(t){var n=t.toLowerCase().split("."),r=n.shift();if(0===n.length||"keydown"!==r&&"keyup"!==r)return null;var o=e._normalizeKey(n.pop()),i="";if(Tt.forEach(function(t){var e=n.indexOf(t);e>-1&&(n.splice(e,1),i+=t+".")}),i+=o,0!=n.length||0===o.length)return null;var s={};return s.domEventName=r,s.fullKey=i,s},e.getEventFullKey=function(t){var e="",n=r().getEventKey(t);return n=n.toLowerCase()," "===n?n="space":"."===n&&(n="dot"),Tt.forEach(function(r){if(r!=n){(0,Pt[r])(t)&&(e+=r+".")}}),e+=n},e.eventCallback=function(t,n,r){return function(o){e.getEventFullKey(o)===t&&r.runGuarded(function(){return n(o)})}},e._normalizeKey=function(t){switch(t){case"esc":return"escape";default:return t}},e}(ct);At.decorators=[{type:V.Injectable}],At.ctorParameters=function(){return[{type:void 0,decorators:[{type:V.Inject,args:[Q]}]}]};/**
* @license
* Copyright Google Inc. All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
var Ot=/^(?:(?:https?|mailto|ftp|tel|file):|[^&:\/?#]*(?:[\/?#]|$))/gi,Mt=/^data:(?:image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp)|video\/(?:mpeg|mp4|ogg|webm)|audio\/(?:mp3|oga|ogg|opus));base64,[a-z0-9+\/]+=*$/i,kt=null,Nt=null,It=E("area,br,col,hr,img,wbr"),Rt=E("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),Dt=E("rp,rt"),Vt=C(Dt,Rt),Lt=C(Rt,E("address,article,aside,blockquote,caption,center,del,details,dialog,dir,div,dl,figure,figcaption,footer,h1,h2,h3,h4,h5,h6,header,hgroup,hr,ins,main,map,menu,nav,ol,pre,section,summary,table,ul")),Ft=C(Dt,E("a,abbr,acronym,audio,b,bdi,bdo,big,br,cite,code,del,dfn,em,font,i,img,ins,kbd,label,map,mark,picture,q,ruby,rp,rt,s,samp,small,source,span,strike,strong,sub,sup,time,track,tt,u,var,video")),jt=C(It,Lt,Ft,Vt),Ht=E("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),Ut=E("srcset"),Bt=E("abbr,accesskey,align,alt,autoplay,axis,bgcolor,border,cellpadding,cellspacing,class,clear,color,cols,colspan,compact,controls,coords,datetime,default,dir,download,face,headers,height,hidden,hreflang,hspace,ismap,itemscope,itemprop,kind,label,lang,language,loop,media,muted,nohref,nowrap,open,preload,rel,rev,role,rows,rowspan,rules,scope,scrolling,shape,size,sizes,span,srclang,start,summary,tabindex,target,title,translate,type,usemap,valign,value,vspace,width"),qt=C(Ht,Ut,Bt),Gt=function(){function t(){this.sanitizedSomething=!1,this.buf=[]}return t.prototype.sanitizeChildren=function(t){for(var e=t.firstChild;e;)if(Nt.isElementNode(e)?this.startElement(e):Nt.isTextNode(e)?this.chars(Nt.nodeValue(e)):this.sanitizedSomething=!0,Nt.firstChild(e))e=Nt.firstChild(e);else for(;e;){Nt.isElementNode(e)&&this.endElement(e);var n=S(e,Nt.nextSibling(e));if(n){e=n;break}e=S(e,Nt.parentElement(e))}return this.buf.join("")},t.prototype.startElement=function(t){var e=this,n=Nt.nodeName(t).toLowerCase();if(!jt.hasOwnProperty(n))return void(this.sanitizedSomething=!0);this.buf.push("<"),this.buf.push(n),Nt.attributeMap(t).forEach(function(t,n){var r=n.toLowerCase();if(!qt.hasOwnProperty(r))return void(e.sanitizedSomething=!0);Ht[r]&&(t=_(t)),Ut[r]&&(t=b(t)),e.buf.push(" "),e.buf.push(n),e.buf.push('="'),e.buf.push(x(t)),e.buf.push('"')}),this.buf.push(">")},t.prototype.endElement=function(t){var e=Nt.nodeName(t).toLowerCase();jt.hasOwnProperty(e)&&!It.hasOwnProperty(e)&&(this.buf.push("</"),this.buf.push(e),this.buf.push(">"))},t.prototype.chars=function(t){this.buf.push(x(t))},t}(),zt=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,Wt=/([^\#-~ |!])/g,Kt=new RegExp("^([-,.\"'%_!# a-zA-Z0-9]+|(?:(?:matrix|translate|scale|rotate|skew|perspective)(?:X|Y|3d)?|(?:rgb|hsl)a?|(?:repeating-)?(?:linear|radial)-gradient|(?:calc|attr))\\([-0-9.%, #a-zA-Z]+\\))$","g"),Qt=/^url\(([^)]+)\)$/,Xt=function(){function t(){}return t.prototype.sanitize=function(t,e){},t.prototype.bypassSecurityTrustHtml=function(t){},t.prototype.bypassSecurityTrustStyle=function(t){},t.prototype.bypassSecurityTrustScript=function(t){},t.prototype.bypassSecurityTrustUrl=function(t){},t.prototype.bypassSecurityTrustResourceUrl=function(t){},t}(),Zt=function(t){function e(e){var n=t.call(this)||this;return n._doc=e,n}return F(e,t),e.prototype.sanitize=function(t,e){if(null==e)return null;switch(t){case V.SecurityContext.NONE:return e;case V.SecurityContext.HTML:return e instanceof $t?e.changingThisBreaksApplicationSecurity:(this.checkNotSafeValue(e,"HTML"),P(this._doc,String(e)));case V.SecurityContext.STYLE:return e instanceof Jt?e.changingThisBreaksApplicationSecurity:(this.checkNotSafeValue(e,"Style"),O(e));case V.SecurityContext.SCRIPT:if(e instanceof te)return e.changingThisBreaksApplicationSecurity;throw this.checkNotSafeValue(e,"Script"),new Error("unsafe value used in a script context");case V.SecurityContext.URL:return e instanceof ne||e instanceof ee?e.changingThisBreaksApplicationSecurity:(this.checkNotSafeValue(e,"URL"),_(String(e)));case V.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 Yt)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 $t(t)},e.prototype.bypassSecurityTrustStyle=function(t){return new Jt(t)},e.prototype.bypassSecurityTrustScript=function(t){return new te(t)},e.prototype.bypassSecurityTrustUrl=function(t){return new ee(t)},e.prototype.bypassSecurityTrustResourceUrl=function(t){return new ne(t)},e}(Xt);Zt.decorators=[{type:V.Injectable}],Zt.ctorParameters=function(){return[{type:void 0,decorators:[{type:V.Inject,args:[Q]}]}]};var Yt=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}(),$t=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return F(e,t),e.prototype.getTypeName=function(){return"HTML"},e}(Yt),Jt=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return F(e,t),e.prototype.getTypeName=function(){return"Style"},e}(Yt),te=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return F(e,t),e.prototype.getTypeName=function(){return"Script"},e}(Yt),ee=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return F(e,t),e.prototype.getTypeName=function(){return"URL"},e}(Yt),ne=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return F(e,t),e.prototype.getTypeName=function(){return"ResourceURL"},e}(Yt),re=[{provide:V.PLATFORM_ID,useValue:D.b},{provide:V.PLATFORM_INITIALIZER,useValue:M,multi:!0},{provide:D.a,useClass:X},{provide:Q,useFactory:N,deps:[]}],oe=[{provide:V.Sanitizer,useExisting:Xt},{provide:Xt,useClass:Zt}],ie=n.i(V.createPlatformFactory)(V.platformCore,"browser",re),se=function(){function t(t){if(t)throw new Error("BrowserModule has already been loaded. If you need access to common directives such as NgIf and NgFor from a lazy loaded module, import CommonModule instead.")}return t.withServerTransition=function(e){return{ngModule:t,providers:[{provide:V.APP_ID,useValue:e.appId},{provide:Y,useExisting:V.APP_ID},$]}},t}();se.decorators=[{type:V.NgModule,args:[{providers:[oe,{provide:V.ErrorHandler,useFactory:k,deps:[]},{provide:at,useClass:wt,multi:!0},{provide:at,useClass:At,multi:!0},{provide:at,useClass:xt,multi:!0},{provide:Ct,useClass:St},vt,{provide:V.RendererFactory2,useExisting:vt},{provide:lt,useExisting:pt},pt,V.Testability,ut,st,Z,tt],exports:[D.c,V.ApplicationModule]}]}],se.ctorParameters=function(){return[{type:se,decorators:[{type:V.Optional},{type:V.SkipSelf}]}]};/**
* @license
* Copyright Google Inc. All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
var ae="undefined"!=typeof window&&window||{},ue=function(){function t(t,e){this.msPerTick=t,this.numTicks=e}return t}(),ce=function(){function t(t){this.appRef=t.injector.get(V.ApplicationRef)}return t.prototype.timeChangeDetection=function(t){var e=t&&t.record,n=null!=ae.console.profile;e&&n&&ae.console.profile("Change Detection");for(var o=r().performanceNow(),i=0;i<5||r().performanceNow()-o<500;)this.appRef.tick(),i++;var s=r().performanceNow();e&&n&&ae.console.profileEnd("Change Detection");var a=(s-o)/i;return ae.console.log("ran "+i+" change detection cycles"),ae.console.log(a.toFixed(2)+" ms per check"),new ue(a,i)},t}(),le="ng.profiler",pe=function(){function t(){}return t.all=function(){return function(t){return!0}},t.css=function(t){return function(e){return null!=e.nativeElement&&r().elementMatches(e.nativeElement,t)}},t.directive=function(t){return function(e){return-1!==e.providerTokens.indexOf(t)}},t}(),he=new V.Version("4.1.1")},59:function(t,e,n){"use strict";function r(t){return t.reduce(function(t,e){return t.concat(e instanceof c.UnsubscriptionError?e.errors:e)},[])}var o=n(123),i=n(125),s=n(124),a=n(318),u=n(122),c=n(314),l=function(){function t(t){this.closed=!1,this._parent=null,this._parents=null,this._subscriptions=null,t&&(this._unsubscribe=t)}return t.prototype.unsubscribe=function(){var t,e=!1;if(!this.closed){var n=this,l=n._parent,p=n._parents,h=n._unsubscribe,f=n._subscriptions;this.closed=!0,this._parent=null,this._parents=null,this._subscriptions=null;for(var d=-1,y=p?p.length:0;l;)l.remove(this),l=++d<y&&p[d]||null;if(s.isFunction(h)){var v=a.tryCatch(h).call(this);v===u.errorObject&&(e=!0,t=t||(u.errorObject.e instanceof c.UnsubscriptionError?r(u.errorObject.e.errors):[u.errorObject.e]))}if(o.isArray(f))for(d=-1,y=f.length;++d<y;){var m=f[d];if(i.isObject(m)){var v=a.tryCatch(m.unsubscribe).call(m);if(v===u.errorObject){e=!0,t=t||[];var g=u.errorObject.e;g instanceof c.UnsubscriptionError?t=t.concat(r(g.errors)):t.push(g)}}}if(e)throw new c.UnsubscriptionError(t)}},t.prototype.add=function(e){if(!e||e===t.EMPTY)return t.EMPTY;if(e===this)return this;var n=e;switch(typeof e){case"function":n=new t(e);case"object":if(n.closed||"function"!=typeof n.unsubscribe)return n;if(this.closed)return n.unsubscribe(),n;if("function"!=typeof n._addParent){var r=n;n=new t,n._subscriptions=[r]}break;default:throw new Error("unrecognized teardown "+e+" added to Subscription.")}return(this._subscriptions||(this._subscriptions=[])).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}();e.Subscription=l},60:function(t,e){var n;n=function(){return this}();try{n=n||Function("return this")()||(0,eval)("this")}catch(t){"object"==typeof window&&(n=window)}t.exports=n},82:function(t,e,n){"use strict";var r=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},o=n(44),i=function(t){function e(){t.apply(this,arguments)}return r(e,t),e.prototype.notifyNext=function(t,e,n,r,o){this.destination.next(e)},e.prototype.notifyError=function(t,e){this.destination.error(t)},e.prototype.notifyComplete=function(t){this.destination.complete()},e}(o.Subscriber);e.OuterSubscriber=i},83:function(t,e,n){"use strict";var r=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},o=n(9),i=n(44),s=n(59),a=n(313),u=n(294),c=n(84),l=function(t){function e(e){t.call(this,e),this.destination=e}return r(e,t),e}(i.Subscriber);e.SubjectSubscriber=l;var p=function(t){function e(){t.call(this),this.observers=[],this.closed=!1,this.isStopped=!1,this.hasError=!1,this.thrownError=null}return r(e,t),e.prototype[c.rxSubscriber]=function(){return new l(this)},e.prototype.lift=function(t){var e=new h(this,this);return e.operator=t,e},e.prototype.next=function(t){if(this.closed)throw new a.ObjectUnsubscribedError;if(!this.isStopped)for(var e=this.observers,n=e.length,r=e.slice(),o=0;o<n;o++)r[o].next(t)},e.prototype.error=function(t){if(this.closed)throw new a.ObjectUnsubscribedError;this.hasError=!0,this.thrownError=t,this.isStopped=!0;for(var e=this.observers,n=e.length,r=e.slice(),o=0;o<n;o++)r[o].error(t);this.observers.length=0},e.prototype.complete=function(){if(this.closed)throw new a.ObjectUnsubscribedError;this.isStopped=!0;for(var t=this.observers,e=t.length,n=t.slice(),r=0;r<e;r++)n[r].complete();this.observers.length=0},e.prototype.unsubscribe=function(){this.isStopped=!0,this.closed=!0,this.observers=null},e.prototype._trySubscribe=function(e){if(this.closed)throw new a.ObjectUnsubscribedError;return t.prototype._trySubscribe.call(this,e)},e.prototype._subscribe=function(t){if(this.closed)throw new a.ObjectUnsubscribedError;return this.hasError?(t.error(this.thrownError),s.Subscription.EMPTY):this.isStopped?(t.complete(),s.Subscription.EMPTY):(this.observers.push(t),new u.SubjectSubscription(this,t))},e.prototype.asObservable=function(){var t=new o.Observable;return t.source=this,t},e.create=function(t,e){return new h(t,e)},e}(o.Observable);e.Subject=p;var h=function(t){function e(e,n){t.call(this),this.destination=e,this.source=n}return r(e,t),e.prototype.next=function(t){var e=this.destination;e&&e.next&&e.next(t)},e.prototype.error=function(t){var e=this.destination;e&&e.error&&this.destination.error(t)},e.prototype.complete=function(){var t=this.destination;t&&t.complete&&this.destination.complete()},e.prototype._subscribe=function(t){return this.source?this.source.subscribe(t):s.Subscription.EMPTY},e}(p);e.AnonymousSubject=h},84:function(t,e,n){"use strict";var r=n(37),o=r.root.Symbol;e.rxSubscriber="function"==typeof o&&"function"==typeof o.for?o.for("rxSubscriber"):"@@rxSubscriber",e.$$rxSubscriber=e.rxSubscriber},85:function(t,e,n){"use strict";function r(t,e,n,r){var h=new l.InnerSubscriber(t,n,r);if(h.closed)return null;if(e instanceof u.Observable)return e._isScalar?(h.next(e.value),h.complete(),null):e.subscribe(h);if(i.isArrayLike(e)){for(var f=0,d=e.length;f<d&&!h.closed;f++)h.next(e[f]);h.closed||h.complete()}else{if(s.isPromise(e))return e.then(function(t){h.closed||(h.next(t),h.complete())},function(t){return h.error(t)}).then(null,function(t){o.root.setTimeout(function(){throw t})}),h;if(e&&"function"==typeof e[c.iterator])for(var y=e[c.iterator]();;){var v=y.next();if(v.done){h.complete();break}if(h.next(v.value),h.closed)break}else if(e&&"function"==typeof e[p.observable]){var m=e[p.observable]();if("function"==typeof m.subscribe)return m.subscribe(new l.InnerSubscriber(t,n,r));h.error(new TypeError("Provided object does not correctly implement Symbol.observable"))}else{var g=a.isObject(e)?"an invalid object":"'"+e+"'",_="You provided "+g+" where a stream was expected. You can provide an Observable, Promise, Array, or Iterable.";h.error(new TypeError(_))}}return null}var o=n(37),i=n(315),s=n(316),a=n(125),u=n(9),c=n(312),l=n(293),p=n(121);e.subscribeToResult=r},86:function(t,e,n){"use strict";function r(t,e){return t&&e.startsWith(t)?e.substring(t.length):e}function o(t){return t.replace(/\/index.html$/,"")}function i(t,e,n){var r="="+t;if(e.indexOf(r)>-1)return r;if(r=n.getPluralCategory(t),e.indexOf(r)>-1)return r;if(e.indexOf("other")>-1)return"other";throw new Error('No plural message found for value "'+t+'"')}function s(t,e){"string"==typeof e&&(e=parseInt(e,10));var n=e,r=n.toString().replace(/^[^.]*\.?/,""),o=Math.floor(Math.abs(n)),i=r.length,s=parseInt(r,10),a=parseInt(n.toString().replace(/^[^.]*\.?|0+$/g,""),10)||0;switch(t.split("-")[0].toLowerCase()){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?F.One:F.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&&n<=1?F.One:F.Other;case"am":case"as":case"bn":case"fa":case"gu":case"hi":case"kn":case"mr":case"zu":return 0===o||1===n?F.One:F.Other;case"ar":return 0===n?F.Zero:1===n?F.One:2===n?F.Two:n%100===Math.floor(n%100)&&n%100>=3&&n%100<=10?F.Few:n%100===Math.floor(n%100)&&n%100>=11&&n%100<=99?F.Many:F.Other;case"ast":case"ca":case"de":case"en":case"et":case"fi":case"fy":case"gl":case"it":case"nl":case"sv":case"sw":case"ur":case"yi":return 1===o&&0===i?F.One:F.Other;case"be":return n%10==1&&n%100!=11?F.One:n%10===Math.floor(n%10)&&n%10>=2&&n%10<=4&&!(n%100>=12&&n%100<=14)?F.Few:n%10==0||n%10===Math.floor(n%10)&&n%10>=5&&n%10<=9||n%100===Math.floor(n%100)&&n%100>=11&&n%100<=14?F.Many:F.Other;case"br":return n%10==1&&n%100!=11&&n%100!=71&&n%100!=91?F.One:n%10==2&&n%100!=12&&n%100!=72&&n%100!=92?F.Two:n%10===Math.floor(n%10)&&(n%10>=3&&n%10<=4||n%10==9)&&!(n%100>=10&&n%100<=19||n%100>=70&&n%100<=79||n%100>=90&&n%100<=99)?F.Few:0!==n&&n%1e6==0?F.Many:F.Other;case"bs":case"hr":case"sr":return 0===i&&o%10==1&&o%100!=11||s%10==1&&s%100!=11?F.One:0===i&&o%10===Math.floor(o%10)&&o%10>=2&&o%10<=4&&!(o%100>=12&&o%100<=14)||s%10===Math.floor(s%10)&&s%10>=2&&s%10<=4&&!(s%100>=12&&s%100<=14)?F.Few:F.Other;case"cs":case"sk":return 1===o&&0===i?F.One:o===Math.floor(o)&&o>=2&&o<=4&&0===i?F.Few:0!==i?F.Many:F.Other;case"cy":return 0===n?F.Zero:1===n?F.One:2===n?F.Two:3===n?F.Few:6===n?F.Many:F.Other;case"da":return 1===n||0!==a&&(0===o||1===o)?F.One:F.Other;case"dsb":case"hsb":return 0===i&&o%100==1||s%100==1?F.One:0===i&&o%100==2||s%100==2?F.Two:0===i&&o%100===Math.floor(o%100)&&o%100>=3&&o%100<=4||s%100===Math.floor(s%100)&&s%100>=3&&s%100<=4?F.Few:F.Other;case"ff":case"fr":case"hy":case"kab":return 0===o||1===o?F.One:F.Other;case"fil":return 0===i&&(1===o||2===o||3===o)||0===i&&o%10!=4&&o%10!=6&&o%10!=9||0!==i&&s%10!=4&&s%10!=6&&s%10!=9?F.One:F.Other;case"ga":return 1===n?F.One:2===n?F.Two:n===Math.floor(n)&&n>=3&&n<=6?F.Few:n===Math.floor(n)&&n>=7&&n<=10?F.Many:F.Other;case"gd":return 1===n||11===n?F.One:2===n||12===n?F.Two:n===Math.floor(n)&&(n>=3&&n<=10||n>=13&&n<=19)?F.Few:F.Other;case"gv":return 0===i&&o%10==1?F.One:0===i&&o%10==2?F.Two:0!==i||o%100!=0&&o%100!=20&&o%100!=40&&o%100!=60&&o%100!=80?0!==i?F.Many:F.Other:F.Few;case"he":return 1===o&&0===i?F.One:2===o&&0===i?F.Two:0!==i||n>=0&&n<=10||n%10!=0?F.Other:F.Many;case"is":return 0===a&&o%10==1&&o%100!=11||0!==a?F.One:F.Other;case"ksh":return 0===n?F.Zero:1===n?F.One:F.Other;case"kw":case"naq":case"se":case"smn":return 1===n?F.One:2===n?F.Two:F.Other;case"lag":return 0===n?F.Zero:0!==o&&1!==o||0===n?F.Other:F.One;case"lt":return n%10!=1||n%100>=11&&n%100<=19?n%10===Math.floor(n%10)&&n%10>=2&&n%10<=9&&!(n%100>=11&&n%100<=19)?F.Few:0!==s?F.Many:F.Other:F.One;case"lv":case"prg":return n%10==0||n%100===Math.floor(n%100)&&n%100>=11&&n%100<=19||2===i&&s%100===Math.floor(s%100)&&s%100>=11&&s%100<=19?F.Zero:n%10==1&&n%100!=11||2===i&&s%10==1&&s%100!=11||2!==i&&s%10==1?F.One:F.Other;case"mk":return 0===i&&o%10==1||s%10==1?F.One:F.Other;case"mt":return 1===n?F.One:0===n||n%100===Math.floor(n%100)&&n%100>=2&&n%100<=10?F.Few:n%100===Math.floor(n%100)&&n%100>=11&&n%100<=19?F.Many:F.Other;case"pl":return 1===o&&0===i?F.One:0===i&&o%10===Math.floor(o%10)&&o%10>=2&&o%10<=4&&!(o%100>=12&&o%100<=14)?F.Few:0===i&&1!==o&&o%10===Math.floor(o%10)&&o%10>=0&&o%10<=1||0===i&&o%10===Math.floor(o%10)&&o%10>=5&&o%10<=9||0===i&&o%100===Math.floor(o%100)&&o%100>=12&&o%100<=14?F.Many:F.Other;case"pt":return n===Math.floor(n)&&n>=0&&n<=2&&2!==n?F.One:F.Other;case"ro":return 1===o&&0===i?F.One:0!==i||0===n||1!==n&&n%100===Math.floor(n%100)&&n%100>=1&&n%100<=19?F.Few:F.Other;case"ru":case"uk":return 0===i&&o%10==1&&o%100!=11?F.One:0===i&&o%10===Math.floor(o%10)&&o%10>=2&&o%10<=4&&!(o%100>=12&&o%100<=14)?F.Few:0===i&&o%10==0||0===i&&o%10===Math.floor(o%10)&&o%10>=5&&o%10<=9||0===i&&o%100===Math.floor(o%100)&&o%100>=11&&o%100<=14?F.Many:F.Other;case"shi":return 0===o||1===n?F.One:n===Math.floor(n)&&n>=2&&n<=10?F.Few:F.Other;case"si":return 0===n||1===n||0===o&&1===s?F.One:F.Other;case"sl":return 0===i&&o%100==1?F.One:0===i&&o%100==2?F.Two:0===i&&o%100===Math.floor(o%100)&&o%100>=3&&o%100<=4||0!==i?F.Few:F.Other;case"tzm":return n===Math.floor(n)&&n>=0&&n<=1||n===Math.floor(n)&&n>=11&&n<=99?F.One:F.Other;default:return F.Other}}function a(t){return t.name||typeof t}/**
* @license
* Copyright Google Inc. All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
function u(t,e){return Error("InvalidPipeArgument: '"+e+"' for pipe '"+n.i(A["ɵstringify"])(t)+"'")}function c(t){return t?t[0].toUpperCase()+t.substr(1).toLowerCase():t}function l(t){return function(e,n){var r=t(e,n);return 1==r.length?"0"+r:r}}function p(t){return function(e,n){return t(e,n).split(" ")[0]}}function h(t,e,n){return new Intl.DateTimeFormat(e,n).format(t).replace(/[\u200e\u200f]/g,"")}function f(t){var e={hour:"2-digit",hour12:!1,timeZoneName:t};return function(t,n){var r=h(t,n,e);return r?r.substring(3):""}}function d(t,e){return t.hour12=e,t}function y(t,e){var n={};return n[t]=2===e?"2-digit":"numeric",n}function v(t,e){var n={};return n[t]=e<4?e>1?"short":"narrow":"long",n}function m(t){return Object.assign.apply(Object,[{}].concat(t))}function g(t){return function(e,n){return h(e,n,t)}}function _(t,e,n){var r=ht[t];if(r)return r(e,n);var o=t,i=dt.get(o);if(!i){i=[];var s=void 0;pt.exec(t);for(var a=t;a;)s=pt.exec(a),s?(i=i.concat(s.slice(1)),a=i.pop()):(i.push(a),a=null);dt.set(o,i)}return i.reduce(function(t,r){var o=ft[r];return t+(o?o(e,n):b(r))},"")}function b(t){return"''"===t?"'":t.replace(/(^'|'$)/g,"").replace(/''/g,"'")}function w(t,e,n,r,o,i,s){if(void 0===i&&(i=null),void 0===s&&(s=!1),null==n)return null;if("number"!=typeof(n="string"==typeof n&&C(n)?+n:n))throw u(t,n);var a=void 0,c=void 0,l=void 0;if(r!==ct.Currency&&(a=1,c=0,l=3),o){var p=o.match(vt);if(null===p)throw new Error(o+" is not a valid digit info for number pipes");null!=p[1]&&(a=E(p[1])),null!=p[3]&&(c=E(p[3])),null!=p[5]&&(l=E(p[5]))}return lt.format(n,e,r,{minimumIntegerDigits:a,minimumFractionDigits:c,maximumFractionDigits:l,currency:i,currencyAsSymbol:s})}function E(t){var e=parseInt(t);if(isNaN(e))throw new Error("Invalid integer literal when parsing "+t);return e}function C(t){return!isNaN(t-parseFloat(t))}function S(t){return null==t||""===t}function x(t){return t instanceof Date&&!isNaN(t.valueOf())}function T(t){var e=new Date(0),n=0,r=0,o=t[8]?e.setUTCFullYear:e.setFullYear,i=t[8]?e.setUTCHours:e.setHours;t[9]&&(n=P(t[9]+t[10]),r=P(t[9]+t[11])),o.call(e,P(t[1]),P(t[2])-1,P(t[3]));var s=P(t[4]||"0")-n,a=P(t[5]||"0")-r,u=P(t[6]||"0"),c=Math.round(1e3*parseFloat("0."+(t[7]||0)));return i.call(e,s,a,u,c),e}function P(t){return parseInt(t,10)}var A=n(20);n.d(e,"c",function(){return Tt}),n.d(e,"b",function(){return Pt}),n.d(e,"a",function(){return M});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)},M=function(){function t(){}return t.prototype.getBaseHrefFromDOM=function(){},t.prototype.onPopState=function(t){},t.prototype.onHashChange=function(t){},t.prototype.pathname=function(){},t.prototype.search=function(){},t.prototype.hash=function(){},t.prototype.replaceState=function(t,e,n){},t.prototype.pushState=function(t,e,n){},t.prototype.forward=function(){},t.prototype.back=function(){},t}(),k=(new A.InjectionToken("Location Initialized"),function(){function t(){}return t.prototype.path=function(t){},t.prototype.prepareExternalUrl=function(t){},t.prototype.pushState=function(t,e,n,r){},t.prototype.replaceState=function(t,e,n,r){},t.prototype.forward=function(){},t.prototype.back=function(){},t.prototype.onPopState=function(t){},t.prototype.getBaseHref=function(){},t}()),N=new A.InjectionToken("appBaseHref"),I=function(){function t(e){var n=this;this._subject=new A.EventEmitter,this._platformStrategy=e;var r=this._platformStrategy.getBaseHref();this._baseHref=t.stripTrailingSlash(o(r)),this._platformStrategy.onPopState(function(t){n._subject.emit({url:n.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(r(this._baseHref,o(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 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}();I.decorators=[{type:A.Injectable}],I.ctorParameters=function(){return[{type:k}]};/**
* @license
* Copyright Google Inc. All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
var R=function(t){function e(e,n){var r=t.call(this)||this;return r._platformLocation=e,r._baseHref="",null!=n&&(r._baseHref=n),r}return O(e,t),e.prototype.onPopState=function(t){this._platformLocation.onPopState(t),this._platformLocation.onHashChange(t)},e.prototype.getBaseHref=function(){return this._baseHref},e.prototype.path=function(t){void 0===t&&(t=!1);var e=this._platformLocation.hash;return null==e&&(e="#"),e.length>0?e.substring(1):e},e.prototype.prepareExternalUrl=function(t){var e=I.joinWithSlash(this._baseHref,t);return e.length>0?"#"+e:e},e.prototype.pushState=function(t,e,n,r){var o=this.prepareExternalUrl(n+I.normalizeQueryParams(r));0==o.length&&(o=this._platformLocation.pathname),this._platformLocation.pushState(t,e,o)},e.prototype.replaceState=function(t,e,n,r){var o=this.prepareExternalUrl(n+I.normalizeQueryParams(r));0==o.length&&(o=this._platformLocation.pathname),this._platformLocation.replaceState(t,e,o)},e.prototype.forward=function(){this._platformLocation.forward()},e.prototype.back=function(){this._platformLocation.back()},e}(k);R.decorators=[{type:A.Injectable}],R.ctorParameters=function(){return[{type:M},{type:void 0,decorators:[{type:A.Optional},{type:A.Inject,args:[N]}]}]};/**
* @license
* Copyright Google Inc. All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
var D=function(t){function e(e,n){var r=t.call(this)||this;if(r._platformLocation=e,null==n&&(n=r._platformLocation.getBaseHrefFromDOM()),null==n)throw new Error("No base href set. Please provide a value for the APP_BASE_HREF token or add a base element to the document.");return r._baseHref=n,r}return O(e,t),e.prototype.onPopState=function(t){this._platformLocation.onPopState(t),this._platformLocation.onHashChange(t)},e.prototype.getBaseHref=function(){return this._baseHref},e.prototype.prepareExternalUrl=function(t){return I.joinWithSlash(this._baseHref,t)},e.prototype.path=function(t){void 0===t&&(t=!1);var e=this._platformLocation.pathname+I.normalizeQueryParams(this._platformLocation.search),n=this._platformLocation.hash;return n&&t?""+e+n:e},e.prototype.pushState=function(t,e,n,r){var o=this.prepareExternalUrl(n+I.normalizeQueryParams(r));this._platformLocation.pushState(t,e,o)},e.prototype.replaceState=function(t,e,n,r){var o=this.prepareExternalUrl(n+I.normalizeQueryParams(r));this._platformLocation.replaceState(t,e,o)},e.prototype.forward=function(){this._platformLocation.forward()},e.prototype.back=function(){this._platformLocation.back()},e}(k);D.decorators=[{type:A.Injectable}],D.ctorParameters=function(){return[{type:M},{type:void 0,decorators:[{type:A.Optional},{type:A.Inject,args:[N]}]}]};/**
* @license
* Copyright Google Inc. All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
/**
* @license
* Copyright Google Inc. All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
var V=function(){function t(){}return t.prototype.getPluralCategory=function(t){},t}(),L=function(t){function e(e){var n=t.call(this)||this;return n.locale=e,n}return O(e,t),e.prototype.getPluralCategory=function(t){switch(s(this.locale,t)){case F.Zero:return"zero";case F.One:return"one";case F.Two:return"two";case F.Few:return"few";case F.Many:return"many";default:return"other"}},e}(V);L.decorators=[{type:A.Injectable}],L.ctorParameters=function(){return[{type:void 0,decorators:[{type:A.Inject,args:[A.LOCALE_ID]}]}]};var F={};F.Zero=0,F.One=1,F.Two=2,F.Few=3,F.Many=4,F.Other=5,F[F.Zero]="Zero",F[F.One]="One",F[F.Two]="Two",F[F.Few]="Few",F[F.Many]="Many",F[F.Other]="Other";/**
* @license
* Copyright Google Inc. All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
var j=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&&(n.i(A["ɵisListLikeIterable"])(this._rawClass)?this._iterableDiffer=this._iterableDiffers.find(this._rawClass).create():this._keyValueDiffer=this._keyValueDiffers.find(this._rawClass).create())},enumerable:!0,configurable:!0}),t.prototype.ngDoCheck=function(){if(this._iterableDiffer){var t=this._iterableDiffer.diff(this._rawClass);t&&this._applyIterableChanges(t)}else if(this._keyValueDiffer){var e=this._keyValueDiffer.diff(this._rawClass);e&&this._applyKeyValueChanges(e)}},t.prototype._cleanupClasses=function(t){this._applyClasses(t,!0),this._applyInitialClasses(!1)},t.prototype._applyKeyValueChanges=function(t){var e=this;t.forEachAddedItem(function(t){return e._toggleClass(t.key,t.currentValue)}),t.forEachChangedItem(function(t){return e._toggleClass(t.key,t.currentValue)}),t.forEachRemovedItem(function(t){t.previousValue&&e._toggleClass(t.key,!1)})},t.prototype._applyIterableChanges=function(t){var e=this;t.forEachAddedItem(function(t){if("string"!=typeof t.item)throw new Error("NgClass can only toggle CSS classes expressed as strings, got "+n.i(A["ɵstringify"])(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.split(/\s+/g).forEach(function(t){n._renderer.setElementClass(n._ngEl.nativeElement,t,!!e)})},t}();j.decorators=[{type:A.Directive,args:[{selector:"[ngClass]"}]}],j.ctorParameters=function(){return[{type:A.IterableDiffers},{type:A.KeyValueDiffers},{type:A.ElementRef},{type:A.Renderer}]},j.propDecorators={klass:[{type:A.Input,args:["class"]}],ngClass:[{type:A.Input}]};/**
* @license
* Copyright Google Inc. All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
var H=function(){function t(t){this._viewContainerRef=t,this._componentRef=null,this._moduleRef=null}return t.prototype.ngOnChanges=function(t){if(this._viewContainerRef.clear(),this._componentRef=null,this.ngComponentOutlet){var e=this.ngComponentOutletInjector||this._viewContainerRef.parentInjector;if(t.ngComponentOutletNgModuleFactory)if(this._moduleRef&&this._moduleRef.destroy(),this.ngComponentOutletNgModuleFactory){var n=e.get(A.NgModuleRef);this._moduleRef=this.ngComponentOutletNgModuleFactory.create(n.injector)}else this._moduleRef=null;var r=this._moduleRef?this._moduleRef.componentFactoryResolver:e.get(A.ComponentFactoryResolver),o=r.resolveComponentFactory(this.ngComponentOutlet);this._componentRef=this._viewContainerRef.createComponent(o,this._viewContainerRef.length,e,this.ngComponentOutletContent)}},t.prototype.ngOnDestroy=function(){this._moduleRef&&this._moduleRef.destroy()},t}();H.decorators=[{type:A.Directive,args:[{selector:"[ngComponentOutlet]"}]}],H.ctorParameters=function(){return[{type:A.ViewContainerRef}]},H.propDecorators={ngComponentOutlet:[{type:A.Input}],ngComponentOutletInjector:[{type:A.Input}],ngComponentOutletContent:[{type:A.Input}],ngComponentOutletNgModuleFactory:[{type:A.Input}]};/**
* @license
* Copyright Google Inc. All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
var U=function(){function t(t,e,n,r){this.$implicit=t,this.ngForOf=e,this.index=n,this.count=r}return Object.defineProperty(t.prototype,"first",{get:function(){return 0===this.index},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"last",{get:function(){return this.index===this.count-1},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"even",{get:function(){return this.index%2==0},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"odd",{get:function(){return!this.even},enumerable:!0,configurable:!0}),t}(),B=function(){function t(t,e,n){this._viewContainer=t,this._template=e,this._differs=n,this._differ=null}return Object.defineProperty(t.prototype,"ngForTrackBy",{get:function(){return this._trackByFn},set:function(t){n.i(A.isDevMode)()&&null!=t&&"function"!=typeof t&&console&&console.warn&&console.warn("trackBy must be a function, but received "+JSON.stringify(t)+". See https://angular.io/docs/ts/latest/api/common/index/NgFor-directive.html#!#change-propagation for more information."),this._trackByFn=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"ngForTemplate",{set:function(t){t&&(this._template=t)},enumerable:!0,configurable:!0}),t.prototype.ngOnChanges=function(t){if("ngForOf"in t){var e=t.ngForOf.currentValue;if(!this._differ&&e)try{this._differ=this._differs.find(e).create(this.ngForTrackBy)}catch(t){throw new Error("Cannot find a differ supporting object '"+e+"' of type '"+a(e)+"'. NgFor only supports binding to Iterables such as Arrays.")}}},t.prototype.ngDoCheck=function(){if(this._differ){var t=this._differ.diff(this.ngForOf);t&&this._applyChanges(t)}},t.prototype._applyChanges=function(t){var e=this,n=[];t.forEachOperation(function(t,r,o){if(null==t.previousIndex){var i=e._viewContainer.createEmbeddedView(e._template,new U(null,e.ngForOf,-1,-1),o),s=new q(t,i);n.push(s)}else if(null==o)e._viewContainer.remove(r);else{var i=e._viewContainer.get(r);e._viewContainer.move(i,o);var s=new q(t,i);n.push(s)}});for(var r=0;r<n.length;r++)this._perViewChange(n[r].view,n[r].record);for(var r=0,o=this._viewContainer.length;r<o;r++){var i=this._viewContainer.get(r);i.context.index=r,i.context.count=o}t.forEachIdentityChange(function(t){e._viewContainer.get(t.currentIndex).context.$implicit=t.item})},t.prototype._perViewChange=function(t,e){t.context.$implicit=e.item},t}();B.decorators=[{type:A.Directive,args:[{selector:"[ngFor][ngForOf]"}]}],B.ctorParameters=function(){return[{type:A.ViewContainerRef},{type:A.TemplateRef},{type:A.IterableDiffers}]},B.propDecorators={ngForOf:[{type:A.Input}],ngForTrackBy:[{type:A.Input}],ngForTemplate:[{type:A.Input}]};var q=function(){function t(t,e){this.record=t,this.view=e}return t}(),G=function(){function t(t,e){this._viewContainer=t,this._context=new z,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=e}return Object.defineProperty(t.prototype,"ngIf",{set:function(t){this._context.$implicit=this._context.ngIf=t,this._updateView()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"ngIfThen",{set:function(t){this._thenTemplateRef=t,this._thenViewRef=null,this._updateView()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"ngIfElse",{set:function(t){this._elseTemplateRef=t,this._elseViewRef=null,this._updateView()},enumerable:!0,configurable:!0}),t.prototype._updateView=function(){this._context.$implicit?this._thenViewRef||(this._viewContainer.clear(),this._elseViewRef=null,this._thenTemplateRef&&(this._thenViewRef=this._viewContainer.createEmbeddedView(this._thenTemplateRef,this._context))):this._elseViewRef||(this._viewContainer.clear(),this._thenViewRef=null,this._elseTemplateRef&&(this._elseViewRef=this._viewContainer.createEmbeddedView(this._elseTemplateRef,this._context)))},t}();G.decorators=[{type:A.Directive,args:[{selector:"[ngIf]"}]}],G.ctorParameters=function(){return[{type:A.ViewContainerRef},{type:A.TemplateRef}]},G.propDecorators={ngIf:[{type:A.Input}],ngIfThen:[{type:A.Input}],ngIfElse:[{type:A.Input}]};var z=function(){function t(){this.$implicit=null,this.ngIf=null}return t}(),W=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}(),K=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++){this._defaultViews[e].enforceState(t)}}},t}();K.decorators=[{type:A.Directive,args:[{selector:"[ngSwitch]"}]}],K.ctorParameters=function(){return[]},K.propDecorators={ngSwitch:[{type:A.Input}]};var Q=function(){function t(t,e,n){this.ngSwitch=n,n._addCase(),this._view=new W(t,e)}return t.prototype.ngDoCheck=function(){this._view.enforceState(this.ngSwitch._matchCase(this.ngSwitchCase))},t}();Q.decorators=[{type:A.Directive,args:[{selector:"[ngSwitchCase]"}]}],Q.ctorParameters=function(){return[{type:A.ViewContainerRef},{type:A.TemplateRef},{type:K,decorators:[{type:A.Host}]}]},Q.propDecorators={ngSwitchCase:[{type:A.Input}]};var X=function(){function t(t,e,n){n._addDefault(new W(t,e))}return t}();X.decorators=[{type:A.Directive,args:[{selector:"[ngSwitchDefault]"}]}],X.ctorParameters=function(){return[{type:A.ViewContainerRef},{type:A.TemplateRef},{type:K,decorators:[{type:A.Host}]}]};/**
* @license
* Copyright Google Inc. All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
var Z=function(){function t(t){this._localization=t,this._caseViews={}}return Object.defineProperty(t.prototype,"ngPlural",{set:function(t){this._switchValue=t,this._updateView()},enumerable:!0,configurable:!0}),t.prototype.addCase=function(t,e){this._caseViews[t]=e},t.prototype._updateView=function(){this._clearViews();var t=Object.keys(this._caseViews),e=i(this._switchValue,t,this._localization);this._activateView(this._caseViews[e])},t.prototype._clearViews=function(){this._activeView&&this._activeView.destroy()},t.prototype._activateView=function(t){t&&(this._activeView=t,this._activeView.create())},t}();Z.decorators=[{type:A.Directive,args:[{selector:"[ngPlural]"}]}],Z.ctorParameters=function(){return[{type:V}]},Z.propDecorators={ngPlural:[{type:A.Input}]};var Y=function(){function t(t,e,n,r){this.value=t;var o=!isNaN(Number(t));r.addCase(o?"="+t:t,new W(n,e))}return t}();Y.decorators=[{type:A.Directive,args:[{selector:"[ngPluralCase]"}]}],Y.ctorParameters=function(){return[{type:void 0,decorators:[{type:A.Attribute,args:["ngPluralCase"]}]},{type:A.TemplateRef},{type:A.ViewContainerRef},{type:Z,decorators:[{type:A.Host}]}]};/**
* @license
* Copyright Google Inc. All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
var $=function(){function t(t,e,n){this._differs=t,this._ngEl=e,this._renderer=n}return Object.defineProperty(t.prototype,"ngStyle",{set:function(t){this._ngStyle=t,!this._differ&&t&&(this._differ=this._differs.find(t).create())},enumerable:!0,configurable:!0}),t.prototype.ngDoCheck=function(){if(this._differ){var t=this._differ.diff(this._ngStyle);t&&this._applyChanges(t)}},t.prototype._applyChanges=function(t){var e=this;t.forEachRemovedItem(function(t){return e._setStyle(t.key,null)}),t.forEachAddedItem(function(t){return e._setStyle(t.key,t.currentValue)}),t.forEachChangedItem(function(t){return e._setStyle(t.key,t.currentValue)})},t.prototype._setStyle=function(t,e){var n=t.split("."),r=n[0],o=n[1];e=null!=e&&o?""+e+o:e,this._renderer.setElementStyle(this._ngEl.nativeElement,r,e)},t}();$.decorators=[{type:A.Directive,args:[{selector:"[ngStyle]"}]}],$.ctorParameters=function(){return[{type:A.KeyValueDiffers},{type:A.ElementRef},{type:A.Renderer}]},$.propDecorators={ngStyle:[{type:A.Input}]};/**
* @license
* Copyright Google Inc. All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
var J=function(){function t(t){this._viewContainerRef=t}return Object.defineProperty(t.prototype,"ngOutletContext",{set:function(t){this.ngTemplateOutletContext=t},enumerable:!0,configurable:!0}),t.prototype.ngOnChanges=function(t){this._viewRef&&this._viewContainerRef.remove(this._viewContainerRef.indexOf(this._viewRef)),this.ngTemplateOutlet&&(this._viewRef=this._viewContainerRef.createEmbeddedView(this.ngTemplateOutlet,this.ngTemplateOutletContext))},t}();J.decorators=[{type:A.Directive,args:[{selector:"[ngTemplateOutlet]"}]}],J.ctorParameters=function(){return[{type:A.ViewContainerRef}]},J.propDecorators={ngTemplateOutletContext:[{type:A.Input}],ngTemplateOutlet:[{type:A.Input}],ngOutletContext:[{type:A.Input}]};/**
* @license
* Copyright Google Inc. All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
var tt=[j,H,B,G,J,$,K,Q,X,Z,Y],et=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}(),nt=function(){function t(){}return t.prototype.createSubscription=function(t,e){return t.then(e,function(t){throw t})},t.prototype.dispose=function(t){},t.prototype.onDestroy=function(t){},t}(),rt=new nt,ot=new et,it=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,A.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(n.i(A["ɵisPromise"])(e))return rt;if(n.i(A["ɵisObservable"])(e))return ot;throw u(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}();it.decorators=[{type:A.Pipe,args:[{name:"async",pure:!1}]}],it.ctorParameters=function(){return[{type:A.ChangeDetectorRef}]};/**
* @license
* Copyright Google Inc. All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
var st=function(){function t(){}return t.prototype.transform=function(e){if(!e)return e;if("string"!=typeof e)throw u(t,e);return e.toLowerCase()},t}();st.decorators=[{type:A.Pipe,args:[{name:"lowercase"}]}],st.ctorParameters=function(){return[]};var at=function(){function t(){}return t.prototype.transform=function(e){if(!e)return e;if("string"!=typeof e)throw u(t,e);return e.split(/\b/g).map(function(t){return c(t)}).join("")},t}();at.decorators=[{type:A.Pipe,args:[{name:"titlecase"}]}],at.ctorParameters=function(){return[]};var ut=function(){function t(){}return t.prototype.transform=function(e){if(!e)return e;if("string"!=typeof e)throw u(t,e);return e.toUpperCase()},t}();ut.decorators=[{type:A.Pipe,args:[{name:"uppercase"}]}],ut.ctorParameters=function(){return[]};var ct={};ct.Decimal=0,ct.Percent=1,ct.Currency=2,ct[ct.Decimal]="Decimal",ct[ct.Percent]="Percent",ct[ct.Currency]="Currency";var lt=function(){function t(){}return t.format=function(t,e,n,r){var o=void 0===r?{}:r,i=o.minimumIntegerDigits,s=o.minimumFractionDigits,a=o.maximumFractionDigits,u=o.currency,c=o.currencyAsSymbol,l=void 0!==c&&c,p={minimumIntegerDigits:i,minimumFractionDigits:s,maximumFractionDigits:a,style:ct[n].toLowerCase()};return n==ct.Currency&&(p.currency="string"==typeof u?u:void 0,p.currencyDisplay=l?"symbol":"code"),new Intl.NumberFormat(e,p).format(t)},t}(),pt=/((?:[^yMLdHhmsazZEwGjJ']+)|(?:'(?:[^']|'')*')|(?:E+|y+|M+|L+|d+|H+|h+|J+|j+|m+|s+|a|z|Z|G+|w+))(.*)/,ht={yMMMdjms:g(m([y("year",1),v("month",3),y("day",1),y("hour",1),y("minute",1),y("second",1)])),yMdjm:g(m([y("year",1),y("month",1),y("day",1),y("hour",1),y("minute",1)])),yMMMMEEEEd:g(m([y("year",1),v("month",4),v("weekday",4),y("day",1)])),yMMMMd:g(m([y("year",1),v("month",4),y("day",1)])),yMMMd:g(m([y("year",1),v("month",3),y("day",1)])),yMd:g(m([y("year",1),y("month",1),y("day",1)])),jms:g(m([y("hour",1),y("second",1),y("minute",1)])),jm:g(m([y("hour",1),y("minute",1)]))},ft={yyyy:g(y("year",4)),yy:g(y("year",2)),y:g(y("year",1)),MMMM:g(v("month",4)),MMM:g(v("month",3)),MM:g(y("month",2)),M:g(y("month",1)),LLLL:g(v("month",4)),L:g(v("month",1)),dd:g(y("day",2)),d:g(y("day",1)),HH:l(p(g(d(y("hour",2),!1)))),H:p(g(d(y("hour",1),!1))),hh:l(p(g(d(y("hour",2),!0)))),h:p(g(d(y("hour",1),!0))),jj:g(y("hour",2)),j:g(y("hour",1)),mm:l(g(y("minute",2))),m:g(y("minute",1)),ss:l(g(y("second",2))),s:g(y("second",1)),sss:g(y("second",3)),EEEE:g(v("weekday",4)),EEE:g(v("weekday",3)),EE:g(v("weekday",2)),E:g(v("weekday",1)),a:function(t){return function(e,n){return t(e,n).split(" ")[1]}}(g(d(y("hour",1),!0))),Z:f("short"),z:f("long"),ww:g({}),w:g({}),G:g(v("era",1)),GG:g(v("era",2)),GGG:g(v("era",3)),GGGG:g(v("era",4))},dt=new Map,yt=function(){function t(){}return t.format=function(t,e,n){return _(n,t,e)},t}(),vt=/^(\d+)?\.((\d+)(-(\d+))?)?$/,mt=function(){function t(t){this._locale=t}return t.prototype.transform=function(e,n){return w(t,this._locale,e,ct.Decimal,n)},t}();mt.decorators=[{type:A.Pipe,args:[{name:"number"}]}],mt.ctorParameters=function(){return[{type:void 0,decorators:[{type:A.Inject,args:[A.LOCALE_ID]}]}]};var gt=function(){function t(t){this._locale=t}return t.prototype.transform=function(e,n){return w(t,this._locale,e,ct.Percent,n)},t}();gt.decorators=[{type:A.Pipe,args:[{name:"percent"}]}],gt.ctorParameters=function(){return[{type:void 0,decorators:[{type:A.Inject,args:[A.LOCALE_ID]}]}]};var _t=function(){function t(t){this._locale=t}return t.prototype.transform=function(e,n,r,o){return void 0===n&&(n="USD"),void 0===r&&(r=!1),w(t,this._locale,e,ct.Currency,o,n,r)},t}();_t.decorators=[{type:A.Pipe,args:[{name:"currency"}]}],_t.ctorParameters=function(){return[{type:void 0,decorators:[{type:A.Inject,args:[A.LOCALE_ID]}]}]};/**
* @license
* Copyright Google Inc. All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
var bt=function(){function t(t){this._locale=t}return t.prototype.transform=function(e,n){void 0===n&&(n="mediumDate");var r;if(S(e)||e!==e)return null;if("string"==typeof e&&(e=e.trim()),x(e))r=e;else if(C(e))r=new Date(parseFloat(e));else if("string"==typeof e&&/^(\d{4}-\d{1,2}-\d{1,2})$/.test(e)){var o=e.split("-").map(function(t){return parseInt(t,10)}),i=o[0],s=o[1],a=o[2];r=new Date(i,s-1,a)}else r=new Date(e);if(!x(r)){var c=void 0;if("string"!=typeof e||!(c=e.match(/^(\d{4})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/)))throw u(t,e);r=T(c)}return yt.format(r,this._locale,t._ALIASES[n]||n)},t}();bt._ALIASES={medium:"yMMMdjms",short:"yMdjm",fullDate:"yMMMMEEEEd",longDate:"yMMMMd",mediumDate:"yMMMd",shortDate:"yMd",mediumTime:"jms",shortTime:"jm"},bt.decorators=[{type:A.Pipe,args:[{name:"date",pure:!0}]}],bt.ctorParameters=function(){return[{type:void 0,decorators:[{type:A.Inject,args:[A.LOCALE_ID]}]}]};/**
* @license
* Copyright Google Inc. All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
var wt=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 u(t,n);return n[i(e,Object.keys(n),this._localization)].replace(/#/g,e.toString())},t}();wt.decorators=[{type:A.Pipe,args:[{name:"i18nPlural",pure:!0}]}],wt.ctorParameters=function(){return[{type:V}]};/**
* @license
* Copyright Google Inc. All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
var Et=function(){function t(){}return t.prototype.transform=function(e,n){if(null==e)return"";if("object"!=typeof n||"string"!=typeof e)throw u(t,n);return n.hasOwnProperty(e)?n[e]:n.hasOwnProperty("other")?n.other:""},t}();Et.decorators=[{type:A.Pipe,args:[{name:"i18nSelect",pure:!0}]}],Et.ctorParameters=function(){return[]};/**
* @license
* Copyright Google Inc. All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
var Ct=function(){function t(){}return t.prototype.transform=function(t){return JSON.stringify(t,null,2)},t}();Ct.decorators=[{type:A.Pipe,args:[{name:"json",pure:!1}]}],Ct.ctorParameters=function(){return[]};/**
* @license
* Copyright Google Inc. All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
var St=function(){function t(){}return t.prototype.transform=function(e,n,r){if(null==e)return e;if(!this.supports(e))throw u(t,e);return e.slice(n,r)},t.prototype.supports=function(t){return"string"==typeof t||Array.isArray(t)},t}();St.decorators=[{type:A.Pipe,args:[{name:"slice",pure:!1}]}],St.ctorParameters=function(){return[]};/**
* @license
* Copyright Google Inc. All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
var xt=[it,ut,st,Ct,St,mt,gt,at,_t,bt,wt,Et],Tt=function(){function t(){}return t}();Tt.decorators=[{type:A.NgModule,args:[{declarations:[tt,xt],exports:[tt,xt],providers:[{provide:V,useClass:L}]}]}],Tt.ctorParameters=function(){return[]};/**
* @license
* Copyright Google Inc. All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
var Pt="browser";new A.Version("4.1.1")},87:function(t,e){function n(t){throw new Error("Cannot find module '"+t+"'.")}n.keys=function(){return[]},n.resolve=n,t.exports=n,n.id=87},88:function(t,e,n){"use strict";/**
* @license
* Copyright Google Inc. All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
function r(t){if("string"!=typeof t)return t;switch(t.toUpperCase()){case"GET":return _.Get;case"POST":return _.Post;case"PUT":return _.Put;case"DELETE":return _.Delete;case"OPTIONS":return _.Options;case"HEAD":return _.Head;case"PATCH":return _.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"):null}function i(t){for(var e=new Uint16Array(t.length),n=0,r=t.length;n<r;n++)e[n]=t.charCodeAt(n);return e.buffer}/**
* @license
* Copyright Google Inc. All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
* @param {?=} rawParams
* @return {?}
*/
function s(t){void 0===t&&(t="");var e=new Map;if(t.length>0){t.split("&").forEach(function(t){var n=t.indexOf("="),r=-1==n?[t,""]:[t.slice(0,n),t.slice(n+1)],o=r[0],i=r[1],s=e.get(o)||[];s.push(i),e.set(o,s)})}return e}function a(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 u(){var t="object"==typeof window?window:{};return null===L&&(L=t[V]={}),L}/**
* @license
* Copyright Google Inc. All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
function c(t,e){return t.createConnection(e).response}function l(t,e,n,r){var o=t;return e?o.merge(new X({method:e.method||n,url:e.url||r,search:e.search,params:e.params,headers:e.headers,body:e.body,withCredentials:e.withCredentials,responseType:e.responseType})):o.merge(new X({method:n,url:r}))}/**
* @license
* Copyright Google Inc. All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
function p(){return new K}function h(t,e){return new rt(t,e)}function f(t,e){return new ot(t,e)}Object.defineProperty(e,"__esModule",{value:!0});var d=n(20),y=n(9),v=(n.n(y),n(49));n.d(e,"BrowserXhr",function(){return g}),n.d(e,"JSONPBackend",function(){return q}),n.d(e,"JSONPConnection",function(){return U}),n.d(e,"CookieXSRFStrategy",function(){return K}),n.d(e,"XHRBackend",function(){return Q}),n.d(e,"XHRConnection",function(){return W}),n.d(e,"BaseRequestOptions",function(){return Z}),n.d(e,"RequestOptions",function(){return X}),n.d(e,"BaseResponseOptions",function(){return T}),n.d(e,"ResponseOptions",function(){return x}),n.d(e,"ReadyState",function(){return b}),n.d(e,"RequestMethod",function(){return _}),n.d(e,"ResponseContentType",function(){return C}),n.d(e,"ResponseType",function(){return w}),n.d(e,"Headers",function(){return S}),n.d(e,"Http",function(){return rt}),n.d(e,"Jsonp",function(){return ot}),n.d(e,"HttpModule",function(){return it}),n.d(e,"JsonpModule",function(){return st}),n.d(e,"Connection",function(){return A}),n.d(e,"ConnectionBackend",function(){return P}),n.d(e,"XSRFStrategy",function(){return O}),n.d(e,"Request",function(){return Y}),n.d(e,"Response",function(){return R}),n.d(e,"QueryEncoder",function(){return k}),n.d(e,"URLSearchParams",function(){return N}),n.d(e,"VERSION",function(){return at}),n.d(e,"ɵg",function(){return F}),n.d(e,"ɵa",function(){return G}),n.d(e,"ɵf",function(){return I}),n.d(e,"ɵb",function(){return p}),n.d(e,"ɵc",function(){return h}),n.d(e,"ɵd",function(){return f});var m=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},g=function(){function t(){}return t.prototype.build=function(){return new XMLHttpRequest},t}();g.decorators=[{type:d.Injectable}],g.ctorParameters=function(){return[]};var _={};_.Get=0,_.Post=1,_.Put=2,_.Delete=3,_.Options=4,_.Head=5,_.Patch=6,_[_.Get]="Get",_[_.Post]="Post",_[_.Put]="Put",_[_.Delete]="Delete",_[_.Options]="Options",_[_.Head]="Head",_[_.Patch]="Patch";var b={};b.Unsent=0,b.Open=1,b.HeadersReceived=2,b.Loading=3,b.Done=4,b.Cancelled=5,b[b.Unsent]="Unsent",b[b.Open]="Open",b[b.HeadersReceived]="HeadersReceived",b[b.Loading]="Loading",b[b.Done]="Done",b[b.Cancelled]="Cancelled";var w={};w.Basic=0,w.Cors=1,w.Default=2,w.Error=3,w.Opaque=4,w[w.Basic]="Basic",w[w.Cors]="Cors",w[w.Default]="Default",w[w.Error]="Error",w[w.Opaque]="Opaque";var E={};E.NONE=0,E.JSON=1,E.FORM=2,E.FORM_DATA=3,E.TEXT=4,E.BLOB=5,E.ARRAY_BUFFER=6,E[E.NONE]="NONE",E[E.JSON]="JSON",E[E.FORM]="FORM",E[E.FORM_DATA]="FORM_DATA",E[E.TEXT]="TEXT",E[E.BLOB]="BLOB",E[E.ARRAY_BUFFER]="ARRAY_BUFFER";var C={};C.Text=0,C.Json=1,C.ArrayBuffer=2,C.Blob=3,C[C.Text]="Text",C[C.Json]="Json",C[C.ArrayBuffer]="ArrayBuffer",C[C.Blob]="Blob";var S=function(){function t(e){var n=this;if(this._headers=new Map,this._normalizedNames=new Map,e)return 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)})})}return t.fromResponseHeaderString=function(e){var n=new t;return e.split("\n").forEach(function(t){var e=t.indexOf(":");if(e>0){var r=t.slice(0,e),o=t.slice(e+1).trim();n.set(r,o)}}),n},t.prototype.append=function(t,e){var n=this.getAll(t);null===n?this.set(t,e):n.push(e)},t.prototype.delete=function(t){var e=t.toLowerCase();this._normalizedNames.delete(e),this._headers.delete(e)},t.prototype.forEach=function(t){var e=this;this._headers.forEach(function(n,r){return t(n,e._normalizedNames.get(r),e._headers)})},t.prototype.get=function(t){var e=this.getAll(t);return null===e?null:e.length>0?e[0]:null},t.prototype.has=function(t){return this._headers.has(t.toLowerCase())},t.prototype.keys=function(){return Array.from(this._normalizedNames.values())},t.prototype.set=function(t,e){Array.isArray(e)?e.length&&this._headers.set(t.toLowerCase(),[e.join(",")]):this._headers.set(t.toLowerCase(),[e]),this.mayBeSetNormalizedName(t)},t.prototype.values=function(){return Array.from(this._headers.values())},t.prototype.toJSON=function(){var t=this,e={};return this._headers.forEach(function(n,r){var o=[];n.forEach(function(t){return o.push.apply(o,t.split(","))}),e[t._normalizedNames.get(r)]=o}),e},t.prototype.getAll=function(t){return this.has(t)?this._headers.get(t.toLowerCase())||null: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}(),x=function(){function t(t){var e=void 0===t?{}:t,n=e.body,r=e.status,o=e.headers,i=e.statusText,s=e.type,a=e.url;this.body=null!=n?n:null,this.status=null!=r?r:null,this.headers=null!=o?o:null,this.statusText=null!=i?i:null,this.type=null!=s?s:null,this.url=null!=a?a:null}return t.prototype.merge=function(e){return new t({body:e&&null!=e.body?e.body:this.body,status:e&&null!=e.status?e.status:this.status,headers:e&&null!=e.headers?e.headers:this.headers,statusText:e&&null!=e.statusText?e.statusText:this.statusText,type:e&&null!=e.type?e.type:this.type,url:e&&null!=e.url?e.url:this.url})},t}(),T=function(t){function e(){return t.call(this,{status:200,statusText:"Ok",type:w.Default,headers:new S})||this}return m(e,t),e}(x);T.decorators=[{type:d.Injectable}],T.ctorParameters=function(){return[]};/**
* @license
* Copyright Google Inc. All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
var P=function(){function t(){}return t.prototype.createConnection=function(t){},t}(),A=function(){function t(){}return t}(),O=function(){function t(){}return t.prototype.configureRequest=function(t){},t}(),M=function(t){return t>=200&&t<300},k=function(){function t(){}return t.prototype.encodeKey=function(t){return a(t)},t.prototype.encodeValue=function(t){return a(t)},t}(),N=function(){function t(t,e){void 0===t&&(t=""),void 0===e&&(e=new k),this.rawParams=t,this.queryEncoder=e,this.paramsMap=s(t)}return t.prototype.clone=function(){var e=new t("",this.queryEncoder);return e.appendAll(this),e},t.prototype.has=function(t){return this.paramsMap.has(t)},t.prototype.get=function(t){var e=this.paramsMap.get(t);return Array.isArray(e)?e[0]:null},t.prototype.getAll=function(t){return this.paramsMap.get(t)||[]},t.prototype.set=function(t,e){if(void 0===e||null===e)return void this.delete(t);var n=this.paramsMap.get(t)||[];n.length=0,n.push(e),this.paramsMap.set(t,n)},t.prototype.setAll=function(t){var e=this;t.paramsMap.forEach(function(t,n){var r=e.paramsMap.get(n)||[];r.length=0,r.push(t[0]),e.paramsMap.set(n,r)})},t.prototype.append=function(t,e){if(void 0!==e&&null!==e){var n=this.paramsMap.get(t)||[];n.push(e),this.paramsMap.set(t,n)}},t.prototype.appendAll=function(t){var e=this;t.paramsMap.forEach(function(t,n){for(var r=e.paramsMap.get(n)||[],o=0;o<t.length;++o)r.push(t[o]);e.paramsMap.set(n,r)})},t.prototype.replaceAll=function(t){var e=this;t.paramsMap.forEach(function(t,n){var r=e.paramsMap.get(n)||[];r.length=0;for(var o=0;o<t.length;++o)r.push(t[o]);e.paramsMap.set(n,r)})},t.prototype.toString=function(){var t=this,e=[];return this.paramsMap.forEach(function(n,r){n.forEach(function(n){return e.push(t.queryEncoder.encodeKey(r)+"="+t.queryEncoder.encodeValue(n))})}),e.join("&")},t.prototype.delete=function(t){this.paramsMap.delete(t)},t}(),I=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 N?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:i(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}(),R=function(t){function e(e){var n=t.call(this)||this;return n._body=e.body,n.status=e.status,n.ok=n.status>=200&&n.status<=299,n.statusText=e.statusText,n.headers=e.headers,n.type=e.type,n.url=e.url,n}return m(e,t),e.prototype.toString=function(){return"Response with status: "+this.status+" "+this.statusText+" for URL: "+this.url},e}(I),D=0,V="__ng_jsonp__",L=null,F=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"+D++},t.prototype.requestCallback=function(t){return V+"."+t+".finished"},t.prototype.exposeConnection=function(t,e){u()[t]=e},t.prototype.removeConnection=function(t){u()[t]=null},t.prototype.send=function(t){document.body.appendChild(t)},t.prototype.cleanup=function(t){t.parentNode&&t.parentNode.removeChild(t)},t}();F.decorators=[{type:d.Injectable}],F.ctorParameters=function(){return[]};/**
* @license
* Copyright Google Inc. All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
var j="JSONP injected script did not invoke callback.",H="JSONP requests must use GET request method.",U=function(){function t(){}return t.prototype.finished=function(t){},t}(),B=function(t){function e(e,n,r){var o=t.call(this)||this;if(o._dom=n,o.baseResponseOptions=r,o._finished=!1,e.method!==_.Get)throw new TypeError(H);return o.request=e,o.response=new y.Observable(function(t){o.readyState=b.Loading;var i=o._id=n.nextRequestID();n.exposeConnection(i,o);var s=n.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=n.build(a),c=function(e){if(o.readyState!==b.Cancelled){if(o.readyState=b.Done,n.cleanup(u),!o._finished){var i=new x({body:j,type:w.Error,url:a});return r&&(i=r.merge(i)),void t.error(new R(i))}var s=new x({body:o._responseData,url:a});o.baseResponseOptions&&(s=o.baseResponseOptions.merge(s)),t.next(new R(s)),t.complete()}},l=function(e){if(o.readyState!==b.Cancelled){o.readyState=b.Done,n.cleanup(u);var i=new x({body:e.message,type:w.Error});r&&(i=r.merge(i)),t.error(new R(i))}};return u.addEventListener("load",c),u.addEventListener("error",l),n.send(u),function(){o.readyState=b.Cancelled,u.removeEventListener("load",c),u.removeEventListener("error",l),o._dom.cleanup(u)}}),o}return m(e,t),e.prototype.finished=function(t){this._finished=!0,this._dom.removeConnection(this._id),this.readyState!==b.Cancelled&&(this._responseData=t)},e}(U),q=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return m(e,t),e}(P),G=function(t){function e(e,n){var r=t.call(this)||this;return r._browserJSONP=e,r._baseResponseOptions=n,r}return m(e,t),e.prototype.createConnection=function(t){return new B(t,this._browserJSONP,this._baseResponseOptions)},e}(q);G.decorators=[{type:d.Injectable}],G.ctorParameters=function(){return[{type:F},{type:x}]};/**
* @license
* Copyright Google Inc. All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
var z=/^\)\]\}',?\n/,W=function(){function t(t,e,n){var r=this;this.request=t,this.response=new y.Observable(function(i){var s=e.build();s.open(_[t.method].toUpperCase(),t.url),null!=t.withCredentials&&(s.withCredentials=t.withCredentials);var a=function(){var e=1223===s.status?204:s.status,r=null;204!==e&&"string"==typeof(r=void 0===s.response?s.responseText:s.response)&&(r=r.replace(z,"")),0===e&&(e=r?200:0);var a=S.fromResponseHeaderString(s.getAllResponseHeaders()),u=o(s)||t.url,c=s.statusText||"OK",l=new x({body:r,status:e,headers:a,statusText:c,url:u});null!=n&&(l=n.merge(l));var p=new R(l);if(p.ok=M(e),p.ok)return i.next(p),void i.complete();i.error(p)},u=function(t){var e=new x({body:t,type:w.Error,status:s.status,statusText:s.statusText});null!=n&&(e=n.merge(e)),i.error(new R(e))};if(r.setDetectedContentType(t,s),null==t.headers&&(t.headers=new S),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 C.ArrayBuffer:s.responseType="arraybuffer";break;case C.Json:s.responseType="json";break;case C.Text:s.responseType="text";break;case C.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(r.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 E.NONE:break;case E.JSON:e.setRequestHeader("content-type","application/json");break;case E.FORM:e.setRequestHeader("content-type","application/x-www-form-urlencoded;charset=UTF-8");break;case E.TEXT:e.setRequestHeader("content-type","text/plain");break;case E.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=n.i(v["ɵgetDOM"])().getCookie(this._cookieName);e&&t.headers.set(this._headerName,e)},t}(),Q=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 W(t,this._browserXHR,this._baseResponseOptions)},t}();Q.decorators=[{type:d.Injectable}],Q.ctorParameters=function(){return[{type:g},{type:x},{type:O}]};/**
* @license
* Copyright Google Inc. All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
var X=function(){function t(t){var e=void 0===t?{}:t,n=e.method,o=e.headers,i=e.body,s=e.url,a=e.search,u=e.params,c=e.withCredentials,l=e.responseType;this.method=null!=n?r(n):null,this.headers=null!=o?o:null,this.body=null!=i?i:null,this.url=null!=s?s:null,this.params=this._mergeSearchParams(u||a),this.withCredentials=null!=c?c:null,this.responseType=null!=l?l:null}return Object.defineProperty(t.prototype,"search",{get:function(){return this.params},set:function(t){this.params=t},enumerable:!0,configurable:!0}),t.prototype.merge=function(e){return new t({method:e&&null!=e.method?e.method:this.method,headers:e&&null!=e.headers?e.headers:new S(this.headers),body:e&&null!=e.body?e.body:this.body,url:e&&null!=e.url?e.url:this.url,params:e&&this._mergeSearchParams(e.params||e.search),withCredentials:e&&null!=e.withCredentials?e.withCredentials:this.withCredentials,responseType:e&&null!=e.responseType?e.responseType:this.responseType})},t.prototype._mergeSearchParams=function(t){return t?t instanceof N?t.clone():"string"==typeof t?new N(t):this._parseParams(t):this.params},t.prototype._parseParams=function(t){var e=this;void 0===t&&(t={});var n=new N;return Object.keys(t).forEach(function(r){var o=t[r];Array.isArray(o)?o.forEach(function(t){return e._appendParam(r,t,n)}):e._appendParam(r,o,n)}),n},t.prototype._appendParam=function(t,e,n){"string"!=typeof e&&(e=JSON.stringify(e)),n.append(t,e)},t}(),Z=function(t){function e(){return t.call(this,{method:_.Get,headers:new S})||this}return m(e,t),e}(X);Z.decorators=[{type:d.Injectable}],Z.ctorParameters=function(){return[]};/**
* @license
* Copyright Google Inc. All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
var Y=function(t){function e(e){var n=t.call(this)||this,o=e.url;if(n.url=e.url,e.params){var i=e.params.toString();if(i.length>0){var s="?";-1!=n.url.indexOf("?")&&(s="&"==n.url[n.url.length-1]?"":"&"),n.url=o+s+i}}return n._body=e.body,n.method=r(e.method),n.headers=new S(e.headers),n.contentType=n.detectContentType(),n.withCredentials=e.withCredentials,n.responseType=e.responseType,n}return m(e,t),e.prototype.detectContentType=function(){switch(this.headers.get("content-type")){case"application/json":return E.JSON;case"application/x-www-form-urlencoded":return E.FORM;case"multipart/form-data":return E.FORM_DATA;case"text/plain":case"text/html":return E.TEXT;case"application/octet-stream":return this._body instanceof nt?E.ARRAY_BUFFER:E.BLOB;default:return this.detectContentTypeFromBody()}},e.prototype.detectContentTypeFromBody=function(){return null==this._body?E.NONE:this._body instanceof N?E.FORM:this._body instanceof tt?E.FORM_DATA:this._body instanceof et?E.BLOB:this._body instanceof nt?E.ARRAY_BUFFER:this._body&&"object"==typeof this._body?E.JSON:E.TEXT},e.prototype.getBody=function(){switch(this.contentType){case E.JSON:case E.FORM:return this.text();case E.FORM_DATA:return this._body;case E.TEXT:return this.text();case E.BLOB:return this.blob();case E.ARRAY_BUFFER:return this.arrayBuffer();default:return null}},e}(I),$=function(){},J="object"==typeof window?window:$,tt=J.FormData||$,et=J.Blob||$,nt=J.ArrayBuffer||$,rt=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=c(this._backend,new Y(l(this._defaultOptions,e,_.Get,t)));else{if(!(t instanceof Y))throw new Error("First argument must be a url string or Request instance.");n=c(this._backend,t)}return n},t.prototype.get=function(t,e){return this.request(new Y(l(this._defaultOptions,e,_.Get,t)))},t.prototype.post=function(t,e,n){return this.request(new Y(l(this._defaultOptions.merge(new X({body:e})),n,_.Post,t)))},t.prototype.put=function(t,e,n){return this.request(new Y(l(this._defaultOptions.merge(new X({body:e})),n,_.Put,t)))},t.prototype.delete=function(t,e){return this.request(new Y(l(this._defaultOptions,e,_.Delete,t)))},t.prototype.patch=function(t,e,n){return this.request(new Y(l(this._defaultOptions.merge(new X({body:e})),n,_.Patch,t)))},t.prototype.head=function(t,e){return this.request(new Y(l(this._defaultOptions,e,_.Head,t)))},t.prototype.options=function(t,e){return this.request(new Y(l(this._defaultOptions,e,_.Options,t)))},t}();rt.decorators=[{type:d.Injectable}],rt.ctorParameters=function(){return[{type:P},{type:X}]};var ot=function(t){function e(e,n){return t.call(this,e,n)||this}return m(e,t),e.prototype.request=function(t,e){if("string"==typeof t&&(t=new Y(l(this._defaultOptions,e,_.Get,t))),!(t instanceof Y))throw new Error("First argument must be a url string or Request instance.");if(t.method!==_.Get)throw new Error("JSONP requests must use GET request method.");return c(this._backend,t)},e}(rt);ot.decorators=[{type:d.Injectable}],ot.ctorParameters=function(){return[{type:P},{type:X}]};var it=function(){function t(){}return t}();it.decorators=[{type:d.NgModule,args:[{providers:[{provide:rt,useFactory:h,deps:[Q,X]},g,{provide:X,useClass:Z},{provide:x,useClass:T},Q,{provide:O,useFactory:p}]}]}],it.ctorParameters=function(){return[]};var st=function(){function t(){}return t}();st.decorators=[{type:d.NgModule,args:[{providers:[{provide:ot,useFactory:f,deps:[q,X]},F,{provide:X,useClass:Z},{provide:x,useClass:T},{provide:q,useClass:G}]}]}],st.ctorParameters=function(){return[]};/**
* @license
* Copyright Google Inc. All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
var at=new d.Version("4.1.1")},9:function(t,e,n){"use strict";var r=n(37),o=n(317),i=n(121),s=function(){function t(t){this._isScalar=!1,t&&(this._subscribe=t)}return t.prototype.lift=function(e){var n=new t;return n.source=this,n.operator=e,n},t.prototype.subscribe=function(t,e,n){var r=this.operator,i=o.toSubscriber(t,e,n);if(r?r.call(i,this.source):i.add(this._trySubscribe(i)),i.syncErrorThrowable&&(i.syncErrorThrowable=!1,i.syncErrorThrown))throw i.syncErrorValue;return i},t.prototype._trySubscribe=function(t){try{return this._subscribe(t)}catch(e){t.syncErrorThrown=!0,t.syncErrorValue=e,t.error(e)}},t.prototype.forEach=function(t,e){var n=this;if(e||(r.root.Rx&&r.root.Rx.config&&r.root.Rx.config.Promise?e=r.root.Rx.config.Promise:r.root.Promise&&(e=r.root.Promise)),!e)throw new Error("no Promise impl found");return new e(function(e,r){var o;o=n.subscribe(function(e){if(o)try{t(e)}catch(t){r(t),o.unsubscribe()}else t(e)},r,e)})},t.prototype._subscribe=function(t){return this.source.subscribe(t)},t.prototype[i.observable]=function(){return this},t.create=function(e){return new t(e)},t}();e.Observable=s}});