text: /**
   * @license Angular v6.0.1
   * (c) 2010-2018 Google, Inc. https://angular.io/
   * License: MIT
   */
  !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define("@angular/compiler",["exports"],t):t((e.ng=e.ng||{},e.ng.compiler={}))}(this,function(e){"use strict";var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])};function n(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}var r=Object.assign||function e(t){for(var n,r=1,i=arguments.length;r<i;r++)for(var o in n=arguments[r])Object.prototype.hasOwnProperty.call(n,o)&&(t[o]=n[o]);return t};function i(e){var t="function"==typeof Symbol&&e[Symbol.iterator],n=0;return t?t.call(e):{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}}}function o(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,o=n.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(r=o.next()).done;)s.push(r.value)}catch(e){i={error:e}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return s}function s(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(o(arguments[t]));return 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
   */var a,u,p=R("Inject",function(e){return{token:e}}),l=R("InjectionToken",function(e){return{_desc:e,ngInjectableDef:void 0}}),c=R("Attribute",function(e){return{attributeName:e}}),h=R("ContentChildren",function(e,t){return void 0===t&&(t={}),r({selector:e,first:!1,isViewQuery:!1,descendants:!1},t)}),f=R("ContentChild",function(e,t){return void 0===t&&(t={}),r({selector:e,first:!0,isViewQuery:!1,descendants:!0},t)}),d=R("ViewChildren",function(e,t){return void 0===t&&(t={}),r({selector:e,first:!1,isViewQuery:!0,descendants:!0},t)}),v=R("ViewChild",function(e,t){return r({selector:e,first:!0,isViewQuery:!0,descendants:!0},t)}),m=R("Directive",function(e){return void 0===e&&(e={}),e});!function(e){e[e.Emulated=0]="Emulated",e[e.Native=1]="Native",e[e.None=2]="None"}(a||(a={})),function(e){e[e.OnPush=0]="OnPush",e[e.Default=1]="Default"}(u||(u={}));var y,g,_=R("Component",function(e){return void 0===e&&(e={}),r({changeDetection:u.Default},e)}),E=R("Pipe",function(e){return r({pure:!0},e)}),x=R("Input",function(e){return{bindingPropertyName:e}}),S=R("Output",function(e){return{bindingPropertyName:e}}),w=R("HostBinding",function(e){return{hostPropertyName:e}}),C=R("HostListener",function(e,t){return{eventName:e,args:t}}),T=R("NgModule",function(e){return e}),b=R("Injectable",function(e){return void 0===e&&(e={}),e}),M={name:"custom-elements"},P={name:"no-errors-schema"},A=R("Optional"),N=R("Self"),k=R("SkipSelf"),I=R("Host"),O=Function;function R(e,t){var n=function(){for(var n=[],i=0;i<arguments.length;i++)n[i]=arguments[i];var o=t?t.apply(void 0,s(n)):{};return r({ngMetadataName:e},o)};return n.isTypeOf=function(t){return t&&t.ngMetadataName===e},n.ngMetadataName=e,n}!function(e){e[e.NONE=0]="NONE",e[e.HTML=1]="HTML",e[e.STYLE=2]="STYLE",e[e.SCRIPT=3]="SCRIPT",e[e.URL=4]="URL",e[e.RESOURCE_URL=5]="RESOURCE_URL"}(y||(y={})),function(e){e[e.Error=0]="Error",e[e.Warning=1]="Warning",e[e.Ignore=2]="Ignore"}(g||(g={}));var D=Object.freeze({createInject:p,createInjectionToken:l,createAttribute:c,createContentChildren:h,createContentChild:f,createViewChildren:d,createViewChild:v,createDirective:m,get ViewEncapsulation(){return a},get ChangeDetectionStrategy(){return u},createComponent:_,createPipe:E,createInput:x,createOutput:S,createHostBinding:w,createHostListener:C,createNgModule:T,createInjectable:b,CUSTOM_ELEMENTS_SCHEMA:M,NO_ERRORS_SCHEMA:P,createOptional:A,createSelf:N,createSkipSelf:k,createHost:I,Type:O,get SecurityContext(){return y},get MissingTranslationStrategy(){return g}}),L=/-+([a-z0-9])/g;
  /**
   * @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 F(e,t){return B(e,":",t)}function B(e,t,n){var r=e.indexOf(t);return-1==r?n:[e.slice(0,r).trim(),e.slice(r+1).trim()]}function V(e,t,n){return Array.isArray(e)?t.visitArray(e,n):function r(e){return"object"==typeof e&&null!==e&&Object.getPrototypeOf(e)===J}(e)?t.visitStringMap(e,n):null==e||"string"==typeof e||"number"==typeof e||"boolean"==typeof e?t.visitPrimitive(e,n):t.visitOther(e,n)}function j(e){return null!==e&&void 0!==e}function U(e){return void 0===e?null:e}var q=function(){function e(){}return e.prototype.visitArray=function(e,t){var n=this;return e.map(function(e){return V(e,n,t)})},e.prototype.visitStringMap=function(e,t){var n=this,r={};return Object.keys(e).forEach(function(i){r[i]=V(e[i],n,t)}),r},e.prototype.visitPrimitive=function(e,t){return e},e.prototype.visitOther=function(e,t){return e},e}(),H=function(e){if(te(e))throw new Error("Illegal state: value cannot be a promise");return e},W=function(e,t){return te(e)?e.then(t):t(e)},z=function(e){return e.some(te)?Promise.all(e):e};function K(e){throw new Error("Internal Error: "+e)}function X(e,t){var n=Error(e);return n[Q]=!0,t&&(n[G]=t),n}var Q="ngSyntaxError",G="ngParseErrors";function Y(e){return e.replace(/([.*+?^=!:${}()|[\]\/\\])/g,"\\$1")}var J=Object.getPrototypeOf({});function $(e){for(var t="",n=0;n<e.length;n++){var r=e.charCodeAt(n);if(r>=55296&&r<=56319&&e.length>n+1){var i=e.charCodeAt(n+1);i>=56320&&i<=57343&&(n++,r=(r-55296<<10)+i-56320+65536)}r<=127?t+=String.fromCharCode(r):r<=2047?t+=String.fromCharCode(r>>6&31|192,63&r|128):r<=65535?t+=String.fromCharCode(r>>12|224,r>>6&63|128,63&r|128):r<=2097151&&(t+=String.fromCharCode(r>>18&7|240,r>>12&63|128,r>>6&63|128,63&r|128))}return t}function Z(e){if("string"==typeof e)return e;if(e instanceof Array)return"["+e.map(Z).join(", ")+"]";if(null==e)return""+e;if(e.overriddenName)return""+e.overriddenName;if(e.name)return""+e.name;var t=e.toString();if(null==t)return""+t;var n=t.indexOf("\n");return-1===n?t:t.substring(0,n)}function ee(e){return"function"==typeof e&&e.hasOwnProperty("__forward_ref__")?e():e}function te(e){return!!e&&"function"==typeof e.then}var ne,re,ie=new(re=function re(e){this.full=e;var t=e.split(".");this.major=t[0],this.minor=t[1],this.patch=t.slice(2).join(".")})("6.0.1"),oe=function(){function e(e,t,n){this.value=e,this.ngContentIndex=t,this.sourceSpan=n}return e.prototype.visit=function(e,t){return e.visitText(this,t)},e}(),se=function(){function e(e,t,n){this.value=e,this.ngContentIndex=t,this.sourceSpan=n}return e.prototype.visit=function(e,t){return e.visitBoundText(this,t)},e}(),ae=function(){function e(e,t,n){this.name=e,this.value=t,this.sourceSpan=n}return e.prototype.visit=function(e,t){return e.visitAttr(this,t)},e}(),ue=function(){function t(t,n,r,i,o,s){this.name=t,this.type=n,this.securityContext=r,this.value=i,this.unit=o,this.sourceSpan=s,this.isAnimation=this.type===e.PropertyBindingType.Animation}return t.prototype.visit=function(e,t){return e.visitElementProperty(this,t)},t}(),pe=function(){function e(t,n,r,i,o){this.name=t,this.target=n,this.phase=r,this.handler=i,this.sourceSpan=o,this.fullName=e.calcFullName(this.name,this.target,this.phase),this.isAnimation=!!this.phase}return e.calcFullName=function(e,t,n){return t?t+":"+e:n?"@"+e+"."+n:e},e.prototype.visit=function(e,t){return e.visitEvent(this,t)},e}(),le=function(){function e(e,t,n,r){this.name=e,this.value=t,this.originalValue=n,this.sourceSpan=r}return e.prototype.visit=function(e,t){return e.visitReference(this,t)},e}(),ce=function(){function e(e,t,n){this.name=e,this.value=t,this.sourceSpan=n}return e.prototype.visit=function(e,t){return e.visitVariable(this,t)},e}(),he=function(){function e(e,t,n,r,i,o,s,a,u,p,l,c,h){this.name=e,this.attrs=t,this.inputs=n,this.outputs=r,this.references=i,this.directives=o,this.providers=s,this.hasViewContainer=a,this.queryMatches=u,this.children=p,this.ngContentIndex=l,this.sourceSpan=c,this.endSourceSpan=h}return e.prototype.visit=function(e,t){return e.visitElement(this,t)},e}(),fe=function(){function e(e,t,n,r,i,o,s,a,u,p,l){this.attrs=e,this.outputs=t,this.references=n,this.variables=r,this.directives=i,this.providers=o,this.hasViewContainer=s,this.queryMatches=a,this.children=u,this.ngContentIndex=p,this.sourceSpan=l}return e.prototype.visit=function(e,t){return e.visitEmbeddedTemplate(this,t)},e}(),de=function(){function e(e,t,n,r){this.directiveName=e,this.templateName=t,this.value=n,this.sourceSpan=r}return e.prototype.visit=function(e,t){return e.visitDirectiveProperty(this,t)},e}(),ve=function(){function e(e,t,n,r,i,o){this.directive=e,this.inputs=t,this.hostProperties=n,this.hostEvents=r,this.contentQueryStartId=i,this.sourceSpan=o}return e.prototype.visit=function(e,t){return e.visitDirective(this,t)},e}(),me=function(){function e(e,t,n,r,i,o,s,a){this.token=e,this.multiProvider=t,this.eager=n,this.providers=r,this.providerType=i,this.lifecycleHooks=o,this.sourceSpan=s,this.isModule=a}return e.prototype.visit=function(e,t){return null},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
   */(ne=e.ProviderAstType||(e.ProviderAstType={}))[ne.PublicService=0]="PublicService",ne[ne.PrivateService=1]="PrivateService",ne[ne.Component=2]="Component",ne[ne.Directive=3]="Directive",ne[ne.Builtin=4]="Builtin";var ye,ge=function(){function e(e,t,n){this.index=e,this.ngContentIndex=t,this.sourceSpan=n}return e.prototype.visit=function(e,t){return e.visitNgContent(this,t)},e}();(ye=e.PropertyBindingType||(e.PropertyBindingType={}))[ye.Property=0]="Property",ye[ye.Attribute=1]="Attribute",ye[ye.Class=2]="Class",ye[ye.Style=3]="Style",ye[ye.Animation=4]="Animation";var _e=function(){function e(){}return e.prototype.visitNgContent=function(e,t){},e.prototype.visitEmbeddedTemplate=function(e,t){},e.prototype.visitElement=function(e,t){},e.prototype.visitReference=function(e,t){},e.prototype.visitVariable=function(e,t){},e.prototype.visitEvent=function(e,t){},e.prototype.visitElementProperty=function(e,t){},e.prototype.visitAttr=function(e,t){},e.prototype.visitBoundText=function(e,t){},e.prototype.visitText=function(e,t){},e.prototype.visitDirective=function(e,t){},e.prototype.visitDirectiveProperty=function(e,t){},e}(),Ee=function(e){function t(){return e.call(this)||this}return n(t,e),t.prototype.visitEmbeddedTemplate=function(e,t){return this.visitChildren(t,function(t){t(e.attrs),t(e.references),t(e.variables),t(e.directives),t(e.providers),t(e.children)})},t.prototype.visitElement=function(e,t){return this.visitChildren(t,function(t){t(e.attrs),t(e.inputs),t(e.outputs),t(e.references),t(e.directives),t(e.providers),t(e.children)})},t.prototype.visitDirective=function(e,t){return this.visitChildren(t,function(t){t(e.inputs),t(e.hostProperties),t(e.hostEvents)})},t.prototype.visitChildren=function(e,t){var n=[],r=this;return t(function i(t){t&&t.length&&n.push(xe(r,t,e))}),[].concat.apply([],n)},t}(_e);function xe(e,t,n){void 0===n&&(n=null);var r=[],i=e.visit?function(t){return e.visit(t,n)||t.visit(e,n)}:function(t){return t.visit(e,n)};return t.forEach(function(e){var t=i(e);t&&r.push(t)}),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
   */var Se=function Se(e){var t=void 0===e?{}:e,n=t.defaultEncapsulation,r=t.useJit,i=void 0===r||r,o=t.jitDevMode,s=void 0!==o&&o,u=t.missingTranslation,p=void 0===u?null:u,l=t.preserveWhitespaces,c=t.strictInjectionParameters;this.defaultEncapsulation=void 0===n?a.Emulated:n,this.useJit=!!i,this.jitDevMode=!!s,this.missingTranslation=p,this.preserveWhitespaces=we(U(l)),this.strictInjectionParameters=!0===c};function we(e,t){return void 0===t&&(t=!1),null===e?t: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
   */var Ce=function(){function e(e,t,n){this.filePath=e,this.name=t,this.members=n}return e.prototype.assertNoMembers=function(){if(this.members.length)throw new Error("Illegal state: symbol without members expected, but got "+JSON.stringify(this)+".")},e}(),Te=function(){function e(){this.cache=new Map}return e.prototype.get=function(e,t,n){var r='"'+e+'".'+t+((n=n||[]).length?"."+n.join("."):""),i=this.cache.get(r);return i||(i=new Ce(e,t,n),this.cache.set(r,i)),i},e}(),be=/^(?:(?:\[([^\]]+)\])|(?:\(([^\)]+)\)))|(\@[-\w]+)$/;function Me(e){return e.replace(/\W/g,"_")}var Pe,Ae=0;function Ne(e){if(!e||!e.reference)return null;var t=e.reference;if(t instanceof Ce)return t.name;if(t.__anonymousType)return t.__anonymousType;var n=Z(t);return n.indexOf("(")>=0?(n="anonymous_"+Ae++,t.__anonymousType=n):n=Me(n),n}function ke(e){var t=e.reference;return t instanceof Ce?t.filePath:"./"+Z(t)}function Ie(e,t){return"View_"+Ne({reference:e})+"_"+t}function Oe(e){return"RenderType_"+Ne({reference:e})}function Re(e){return"HostView_"+Ne({reference:e})}function De(e){return Ne({reference:e})+"NgFactory"}function Le(e){return null!=e.value?Me(e.value):Ne(e.identifier)}function Fe(e){return null!=e.identifier?e.identifier.reference:e.value}(Pe=e.CompileSummaryKind||(e.CompileSummaryKind={}))[Pe.Pipe=0]="Pipe",Pe[Pe.Directive=1]="Directive",Pe[Pe.NgModule=2]="NgModule",Pe[Pe.Injectable=3]="Injectable";var Be=function Be(e){var t=void 0===e?{}:e,n=t.styles,r=t.styleUrls;this.moduleUrl=t.moduleUrl||null,this.styles=ze(n),this.styleUrls=ze(r)},Ve=function(){function e(e){var t=e.template,n=e.templateUrl,r=e.htmlAst,i=e.styles,o=e.styleUrls,s=e.externalStylesheets,a=e.animations,u=e.ngContentSelectors,p=e.interpolation,l=e.isInline,c=e.preserveWhitespaces;if(this.encapsulation=e.encapsulation,this.template=t,this.templateUrl=n,this.htmlAst=r,this.styles=ze(i),this.styleUrls=ze(o),this.externalStylesheets=ze(s),this.animations=a?Xe(a):[],this.ngContentSelectors=u||[],p&&2!=p.length)throw new Error("'interpolation' should have a start and an end symbol.");this.interpolation=p,this.isInline=l,this.preserveWhitespaces=c}return e.prototype.toSummary=function(){return{ngContentSelectors:this.ngContentSelectors,encapsulation:this.encapsulation}},e}(),je=function(){function t(e){var t=e.type,n=e.isComponent,r=e.selector,i=e.exportAs,o=e.changeDetection,s=e.inputs,a=e.outputs,u=e.hostListeners,p=e.hostProperties,l=e.hostAttributes,c=e.providers,h=e.viewProviders,f=e.queries,d=e.guards,v=e.viewQueries,m=e.entryComponents,y=e.template,g=e.componentViewType,_=e.rendererType,E=e.componentFactory;this.isHost=!!e.isHost,this.type=t,this.isComponent=n,this.selector=r,this.exportAs=i,this.changeDetection=o,this.inputs=s,this.outputs=a,this.hostListeners=u,this.hostProperties=p,this.hostAttributes=l,this.providers=ze(c),this.viewProviders=ze(h),this.queries=ze(f),this.guards=d,this.viewQueries=ze(v),this.entryComponents=ze(m),this.template=y,this.componentViewType=g,this.rendererType=_,this.componentFactory=E}return t.create=function(e){var n=e.isHost,r=e.type,i=e.isComponent,o=e.selector,s=e.exportAs,a=e.changeDetection,u=e.inputs,p=e.outputs,l=e.host,c=e.providers,h=e.viewProviders,f=e.queries,d=e.guards,v=e.viewQueries,m=e.entryComponents,y=e.template,g=e.componentViewType,_=e.rendererType,E=e.componentFactory,x={},S={},w={};null!=l&&Object.keys(l).forEach(function(e){var t=l[e],n=e.match(be);null===n?w[e]=t:null!=n[1]?S[n[1]]=t:null!=n[2]&&(x[n[2]]=t)});var C={};null!=u&&u.forEach(function(e){var t=F(e,[e,e]);C[t[0]]=t[1]});var T={};return null!=p&&p.forEach(function(e){var t=F(e,[e,e]);T[t[0]]=t[1]}),new t({isHost:n,type:r,isComponent:!!i,selector:o,exportAs:s,changeDetection:a,inputs:C,outputs:T,hostListeners:x,hostProperties:S,hostAttributes:w,providers:c,viewProviders:h,queries:f,guards:d,viewQueries:v,entryComponents:m,template:y,componentViewType:g,rendererType:_,componentFactory:E})},t.prototype.toSummary=function(){return{summaryKind:e.CompileSummaryKind.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,guards:this.guards,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}(),Ue=function(){function t(e){var t=e.name,n=e.pure;this.type=e.type,this.name=t,this.pure=!!n}return t.prototype.toSummary=function(){return{summaryKind:e.CompileSummaryKind.Pipe,type:this.type,name:this.name,pure:this.pure}},t}(),qe=function qe(){},He=function(){function t(e){var t=e.providers,n=e.declaredDirectives,r=e.exportedDirectives,i=e.declaredPipes,o=e.exportedPipes,s=e.entryComponents,a=e.bootstrapComponents,u=e.importedModules,p=e.exportedModules,l=e.schemas,c=e.transitiveModule,h=e.id;this.type=e.type||null,this.declaredDirectives=ze(n),this.exportedDirectives=ze(r),this.declaredPipes=ze(i),this.exportedPipes=ze(o),this.providers=ze(t),this.entryComponents=ze(s),this.bootstrapComponents=ze(a),this.importedModules=ze(u),this.exportedModules=ze(p),this.schemas=ze(l),this.id=h||null,this.transitiveModule=c||null}return t.prototype.toSummary=function(){var t=this.transitiveModule;return{summaryKind:e.CompileSummaryKind.NgModule,type:this.type,entryComponents:t.entryComponents,providers:t.providers,modules:t.modules,exportedDirectives:t.exportedDirectives,exportedPipes:t.exportedPipes}},t}(),We=function(){function e(){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 e.prototype.addProvider=function(e,t){this.providers.push({provider:e,module:t})},e.prototype.addDirective=function(e){this.directivesSet.has(e.reference)||(this.directivesSet.add(e.reference),this.directives.push(e))},e.prototype.addExportedDirective=function(e){this.exportedDirectivesSet.has(e.reference)||(this.exportedDirectivesSet.add(e.reference),this.exportedDirectives.push(e))},e.prototype.addPipe=function(e){this.pipesSet.has(e.reference)||(this.pipesSet.add(e.reference),this.pipes.push(e))},e.prototype.addExportedPipe=function(e){this.exportedPipesSet.has(e.reference)||(this.exportedPipesSet.add(e.reference),this.exportedPipes.push(e))},e.prototype.addModule=function(e){this.modulesSet.has(e.reference)||(this.modulesSet.add(e.reference),this.modules.push(e))},e.prototype.addEntryComponent=function(e){this.entryComponentsSet.has(e.componentType)||(this.entryComponentsSet.add(e.componentType),this.entryComponents.push(e))},e}();function ze(e){return e||[]}var Ke=function Ke(e,t){var n=t.useClass,r=t.useValue,i=t.useExisting,o=t.useFactory,s=t.deps,a=t.multi;this.token=e,this.useClass=n||null,this.useValue=r,this.useExisting=i,this.useFactory=o||null,this.dependencies=s||null,this.multi=!!a};function Xe(e){return e.reduce(function(e,t){var n=Array.isArray(t)?Xe(t):t;return e.concat(n)},[])}function Qe(e){return e.replace(/(\w+:\/\/[\w:-]+)?(\/+)?/,"ng:///")}function Ge(e,t,n){var r;return r=n.isInline?t.type.reference instanceof Ce?t.type.reference.filePath+"."+t.type.reference.name+".html":Ne(e)+"/"+Ne(t.type)+".html":n.templateUrl,t.type.reference instanceof Ce?r:Qe(r)}function Ye(e,t){var n=e.moduleUrl.split(/\/\\/g);return Qe("css/"+t+n[n.length-1]+".ngstyle.js")}function Je(e){return Qe(Ne(e.type)+"/module.ngfactory.js")}function $e(e,t){return Qe(Ne(e)+"/"+Ne(t.type)+".ngfactory.js")}
  /**
   * @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 Ze=function(){function e(e,t){void 0===t&&(t=-1),this.path=e,this.position=t}return Object.defineProperty(e.prototype,"empty",{get:function(){return!this.path||!this.path.length},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"head",{get:function(){return this.path[0]},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"tail",{get:function(){return this.path[this.path.length-1]},enumerable:!0,configurable:!0}),e.prototype.parentOf=function(e){return e&&this.path[this.path.indexOf(e)-1]},e.prototype.childOf=function(e){return this.path[this.path.indexOf(e)+1]},e.prototype.first=function(e){for(var t=this.path.length-1;t>=0;t--){var n=this.path[t];if(n instanceof e)return n}},e.prototype.push=function(e){this.path.push(e)},e.prototype.pop=function(){return this.path.pop()},e}(),et=function(){function e(e,t){this.value=e,this.sourceSpan=t}return e.prototype.visit=function(e,t){return e.visitText(this,t)},e}(),tt=function(){function e(e,t,n,r,i){this.switchValue=e,this.type=t,this.cases=n,this.sourceSpan=r,this.switchValueSourceSpan=i}return e.prototype.visit=function(e,t){return e.visitExpansion(this,t)},e}(),nt=function(){function e(e,t,n,r,i){this.value=e,this.expression=t,this.sourceSpan=n,this.valueSourceSpan=r,this.expSourceSpan=i}return e.prototype.visit=function(e,t){return e.visitExpansionCase(this,t)},e}(),rt=function(){function e(e,t,n,r){this.name=e,this.value=t,this.sourceSpan=n,this.valueSpan=r}return e.prototype.visit=function(e,t){return e.visitAttribute(this,t)},e}(),it=function(){function e(e,t,n,r,i,o){void 0===i&&(i=null),void 0===o&&(o=null),this.name=e,this.attrs=t,this.children=n,this.sourceSpan=r,this.startSourceSpan=i,this.endSourceSpan=o}return e.prototype.visit=function(e,t){return e.visitElement(this,t)},e}(),ot=function(){function e(e,t){this.value=e,this.sourceSpan=t}return e.prototype.visit=function(e,t){return e.visitComment(this,t)},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 st(e,t,n){void 0===n&&(n=null);var r=[],i=e.visit?function(t){return e.visit(t,n)||t.visit(e,n)}:function(t){return t.visit(e,n)};return t.forEach(function(e){var t=i(e);t&&r.push(t)}),r}var at=function(){function e(){}return e.prototype.visitElement=function(e,t){this.visitChildren(t,function(t){t(e.attrs),t(e.children)})},e.prototype.visitAttribute=function(e,t){},e.prototype.visitText=function(e,t){},e.prototype.visitComment=function(e,t){},e.prototype.visitExpansion=function(e,t){return this.visitChildren(t,function(t){t(e.cases)})},e.prototype.visitExpansionCase=function(e,t){},e.prototype.visitChildren=function(e,t){var n=[],r=this;return t(function i(t){t&&n.push(st(r,t,e))}),[].concat.apply([],n)},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 ut(e,t){if(null!=t){if(!Array.isArray(t))throw new Error("Expected '"+e+"' to be an array of strings.");for(var n=0;n<t.length;n+=1)if("string"!=typeof t[n])throw new Error("Expected '"+e+"' to be an array of strings.")}}var pt=[/^\s*$/,/[<>]/,/^[{}]$/,/&(#|[a-z])/i,/^\/\//];function lt(e,t){if(!(null==t||Array.isArray(t)&&2==t.length))throw new Error("Expected '"+e+"' to be an array, [start, end].");if(null!=t){var n=t[0],r=t[1];pt.forEach(function(e){if(e.test(n)||e.test(r))throw new Error("['"+n+"', '"+r+"'] contains unusable interpolation symbol.")})}}
  /**
   * @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 e(e,t){this.start=e,this.end=t}return e.fromArray=function(t){return t?(lt("interpolation",t),new e(t[0],t[1])):ht},e}(),ht=new ct("{{","}}"),ft=function ft(e,t){this.style=e,this.styleUrls=t};function dt(e){if(null==e||0===e.length||"/"==e[0])return!1;var t=e.match(gt);return null===t||"package"==t[1]||"asset"==t[1]}var vt,mt=/@import\s+(?:url\()?\s*(?:(?:['"]([^'"]*))|([^;\)\s]*))[^;]*;?/g,yt=/\/\*(?!#\s*(?:sourceURL|sourceMappingURL)=)[\s\S]+?\*\//g,gt=/^([^:/?#]+):/;function _t(e){if(":"!=e[0])return[null,e];var t=e.indexOf(":",1);if(-1==t)throw new Error('Unsupported format "'+e+'" expecting ":namespace:name"');return[e.slice(1,t),e.slice(t+1)]}function Et(e){return"ng-container"===_t(e)[1]}function xt(e){return"ng-content"===_t(e)[1]}function St(e){return"ng-template"===_t(e)[1]}function wt(e){return null===e?null:_t(e)[0]}function Ct(e,t){return e?":"+e+":"+t: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
   */
  vt=e.TagContentType||(e.TagContentType={}))[vt.RAW_TEXT=0]="RAW_TEXT",vt[vt.ESCAPABLE_RAW_TEXT=1]="ESCAPABLE_RAW_TEXT",vt[vt.PARSABLE_DATA=2]="PARSABLE_DATA";var Tt={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:"‌"},bt="";Tt.ngsp=bt;
  /**
   * @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 Mt,Pt="select",At="link",Nt="rel",kt="href",It="stylesheet",Ot="style",Rt="script",Dt="ngNonBindable",Lt="ngProjectAs";function Ft(e){var t=null,n=null,r=null,i=!1,o=null;e.attrs.forEach(function(e){var s=e.name.toLowerCase();s==Pt?t=e.value:s==kt?n=e.value:s==Nt?r=e.value:e.name==Dt?i=!0:e.name==Lt&&e.value.length>0&&(o=e.value)}),t=function s(e){return null===e||0===e.length?"*":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
   */(t);var a=e.name.toLowerCase(),u=Mt.OTHER;return xt(a)?u=Mt.NG_CONTENT:a==Ot?u=Mt.STYLE:a==Rt?u=Mt.SCRIPT:a==At&&r==It&&(u=Mt.STYLESHEET),new Bt(u,t,n,i,o)}!function(e){e[e.NG_CONTENT=0]="NG_CONTENT",e[e.STYLE=1]="STYLE",e[e.STYLESHEET=2]="STYLESHEET",e[e.SCRIPT=3]="SCRIPT",e[e.OTHER=4]="OTHER"}(Mt||(Mt={}));var Bt=function Bt(e,t,n,r,i){this.type=e,this.selectAttr=t,this.hrefAttr=n,this.nonBindable=r,this.projectAs=i},Vt=function(){function e(e,t,n,r){this._resourceLoader=e,this._urlResolver=t,this._htmlParser=n,this._config=r,this._resourceLoaderCache=new Map}return e.prototype.clearCache=function(){this._resourceLoaderCache.clear()},e.prototype.clearCacheFor=function(e){var t=this;if(e.isComponent){var n=e.template;this._resourceLoaderCache.delete(n.templateUrl),n.externalStylesheets.forEach(function(e){t._resourceLoaderCache.delete(e.moduleUrl)})}},e.prototype._fetch=function(e){var t=this._resourceLoaderCache.get(e);return t||(t=this._resourceLoader.get(e),this._resourceLoaderCache.set(e,t)),t},e.prototype.normalizeTemplate=function(e){var t=this;if(j(e.template)){if(j(e.templateUrl))throw X("'"+Z(e.componentType)+"' component cannot define both template and templateUrl");if("string"!=typeof e.template)throw X("The template specified for component "+Z(e.componentType)+" is not a string")}else{if(!j(e.templateUrl))throw X("No template specified for component "+Z(e.componentType));if("string"!=typeof e.templateUrl)throw X("The templateUrl specified for component "+Z(e.componentType)+" is not a string")}if(j(e.preserveWhitespaces)&&"boolean"!=typeof e.preserveWhitespaces)throw X("The preserveWhitespaces option for component "+Z(e.componentType)+" must be a boolean");return W(this._preParseTemplate(e),function(n){return t._normalizeTemplateMetadata(e,n)})},e.prototype._preParseTemplate=function(e){var t,n,r=this;return null!=e.template?(t=e.template,n=e.moduleUrl):(n=this._urlResolver.resolve(e.moduleUrl,e.templateUrl),t=this._fetch(n)),W(t,function(t){return r._preparseLoadedTemplate(e,t,n)})},e.prototype._preparseLoadedTemplate=function(e,t,n){var r=!!e.template,i=ct.fromArray(e.interpolation),o=this._htmlParser.parse(t,Ge({reference:e.ngModuleType},{type:{reference:e.componentType}},{isInline:r,templateUrl:n}),!0,i);if(o.errors.length>0)throw X("Template parse errors:\n"+o.errors.join("\n"));var s=this._normalizeStylesheet(new Be({styles:e.styles,moduleUrl:e.moduleUrl})),a=new jt;st(a,o.rootNodes);var u=this._normalizeStylesheet(new Be({styles:a.styles,styleUrls:a.styleUrls,moduleUrl:n}));return{template:t,templateUrl:n,isInline:r,htmlAst:o,styles:s.styles.concat(u.styles),inlineStyleUrls:s.styleUrls.concat(u.styleUrls),styleUrls:this._normalizeStylesheet(new Be({styleUrls:e.styleUrls,moduleUrl:e.moduleUrl})).styleUrls,ngContentSelectors:a.ngContentSelectors}},e.prototype._normalizeTemplateMetadata=function(e,t){var n=this;return W(this._loadMissingExternalStylesheets(t.styleUrls.concat(t.inlineStyleUrls)),function(r){return n._normalizeLoadedTemplateMetadata(e,t,r)})},e.prototype._normalizeLoadedTemplateMetadata=function(e,t,n){var r=this,i=s(t.styles);this._inlineStyles(t.inlineStyleUrls,n,i);var o=t.styleUrls,u=o.map(function(e){var t=n.get(e),i=s(t.styles);return r._inlineStyles(t.styleUrls,n,i),new Be({moduleUrl:e,styles:i})}),p=e.encapsulation;return null==p&&(p=this._config.defaultEncapsulation),p===a.Emulated&&0===i.length&&0===o.length&&(p=a.None),new Ve({encapsulation:p,template:t.template,templateUrl:t.templateUrl,htmlAst:t.htmlAst,styles:i,styleUrls:o,ngContentSelectors:t.ngContentSelectors,animations:e.animations,interpolation:e.interpolation,isInline:t.isInline,externalStylesheets:u,preserveWhitespaces:we(e.preserveWhitespaces,this._config.preserveWhitespaces)})},e.prototype._inlineStyles=function(e,t,n){var r=this;e.forEach(function(e){var i=t.get(e);i.styles.forEach(function(e){return n.push(e)}),r._inlineStyles(i.styleUrls,t,n)})},e.prototype._loadMissingExternalStylesheets=function(e,t){var n=this;return void 0===t&&(t=new Map),W(z(e.filter(function(e){return!t.has(e)}).map(function(e){return W(n._fetch(e),function(r){var i=n._normalizeStylesheet(new Be({styles:[r],moduleUrl:e}));return t.set(e,i),n._loadMissingExternalStylesheets(i.styleUrls,t)})})),function(e){return t})},e.prototype._normalizeStylesheet=function(e){var t=this,n=e.moduleUrl,r=e.styleUrls.filter(dt).map(function(e){return t._urlResolver.resolve(n,e)}),i=e.styles.map(function(e){var i=function o(e,t,n){var r=[],i=n.replace(yt,"").replace(mt,function(){for(var n=[],i=0;i<arguments.length;i++)n[i]=arguments[i];var o=n[1]||n[2];return dt(o)?(r.push(e.resolve(t,o)),""):n[0]});return new ft(i,r)}(t._urlResolver,n,e);return r.push.apply(r,s(i.styleUrls)),i.style});return new Be({styles:i,styleUrls:r,moduleUrl:n})},e}(),jt=function(){function e(){this.ngContentSelectors=[],this.styles=[],this.styleUrls=[],this.ngNonBindableStackCount=0}return e.prototype.visitElement=function(e,t){var n=Ft(e);switch(n.type){case Mt.NG_CONTENT:0===this.ngNonBindableStackCount&&this.ngContentSelectors.push(n.selectAttr);break;case Mt.STYLE:var r="";e.children.forEach(function(e){e instanceof et&&(r+=e.value)}),this.styles.push(r);break;case Mt.STYLESHEET:this.styleUrls.push(n.hrefAttr)}return n.nonBindable&&this.ngNonBindableStackCount++,st(this,e.children),n.nonBindable&&this.ngNonBindableStackCount--,null},e.prototype.visitExpansion=function(e,t){st(this,e.cases)},e.prototype.visitExpansionCase=function(e,t){st(this,e.expression)},e.prototype.visitComment=function(e,t){return null},e.prototype.visitAttribute=function(e,t){return null},e.prototype.visitText=function(e,t){return null},e}(),Ut=[v,d,f,h],qt=function(){function e(e){this._reflector=e}return e.prototype.isDirective=function(e){var t=this._reflector.annotations(ee(e));return t&&t.some(Ht)},e.prototype.resolve=function(e,t){void 0===t&&(t=!0);var n=this._reflector.annotations(ee(e));if(n){var r=Wt(n,Ht);if(r){var i=this._reflector.propMetadata(e),o=this._reflector.guards(e);return this._mergeWithPropertyMetadata(r,i,o,e)}}if(t)throw new Error("No Directive annotation found on "+Z(e));return null},e.prototype._mergeWithPropertyMetadata=function(e,t,n,r){var i=[],o=[],s={},a={};return Object.keys(t).forEach(function(e){var n=Wt(t[e],function(e){return x.isTypeOf(e)});n&&i.push(n.bindingPropertyName?e+": "+n.bindingPropertyName:e);var r=Wt(t[e],function(e){return S.isTypeOf(e)});r&&o.push(r.bindingPropertyName?e+": "+r.bindingPropertyName:e),t[e].filter(function(e){return w.isTypeOf(e)}).forEach(function(t){if(t.hostPropertyName){var n=t.hostPropertyName[0];if("("===n)throw new Error("@HostBinding can not bind to events. Use @HostListener instead.");if("["===n)throw new Error("@HostBinding parameter should be a property name, 'class.<name>', or 'attr.<name>'.");s["["+t.hostPropertyName+"]"]=e}else s["["+e+"]"]=e}),t[e].filter(function(e){return C.isTypeOf(e)}).forEach(function(t){s["("+t.eventName+")"]=e+"("+(t.args||[]).join(",")+")"});var u=Wt(t[e],function(e){return Ut.some(function(t){return t.isTypeOf(e)})});u&&(a[e]=u)}),this._merge(e,i,o,s,a,n,r)},e.prototype._extractPublicName=function(e){return F(e,[null,e])[1].trim()},e.prototype._dedupeBindings=function(e){for(var t=new Set,n=new Set,r=[],i=e.length-1;i>=0;i--){var o=e[i],s=this._extractPublicName(o);n.add(s),t.has(s)||(t.add(s),r.push(o))}return r.reverse()},e.prototype._merge=function(e,t,n,i,o,s,a){var u=this._dedupeBindings(e.inputs?e.inputs.concat(t):t),p=this._dedupeBindings(e.outputs?e.outputs.concat(n):n),l=e.host?r({},e.host,i):i,c=e.queries?r({},e.queries,o):o;return _.isTypeOf(e)?_({selector:e.selector,inputs:u,outputs:p,host:l,exportAs:e.exportAs,moduleId:e.moduleId,queries:c,changeDetection:e.changeDetection,providers:e.providers,viewProviders:e.viewProviders,entryComponents:e.entryComponents,template:e.template,templateUrl:e.templateUrl,styles:e.styles,styleUrls:e.styleUrls,encapsulation:e.encapsulation,animations:e.animations,interpolation:e.interpolation,preserveWhitespaces:e.preserveWhitespaces}):m({selector:e.selector,inputs:u,outputs:p,host:l,exportAs:e.exportAs,queries:c,providers:e.providers,guards:s})},e}();function Ht(e){return m.isTypeOf(e)||_.isTypeOf(e)}function Wt(e,t){for(var n=e.length-1;n>=0;n--)if(t(e[n]))return e[n];return 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
   */var zt,Kt=0,Xt=9,Qt=10,Gt=11,Yt=12,Jt=13,$t=32,Zt=34,en=36,tn=39,nn=43,rn=45,on=47,sn=59,an=61,un=62,pn=48,ln=57,cn=65,hn=70,fn=90,dn=95,vn=97,mn=102,yn=110,gn=114,_n=116,En=118,xn=122,Sn=123,wn=160,Cn=96;function Tn(e){return e>=Xt&&e<=$t||e==wn}function bn(e){return pn<=e&&e<=ln}function Mn(e){return e>=vn&&e<=xn||e>=cn&&e<=fn}(
  /**
   * @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
   */
  zt=e.TokenType||(e.TokenType={}))[zt.Character=0]="Character",zt[zt.Identifier=1]="Identifier",zt[zt.Keyword=2]="Keyword",zt[zt.String=3]="String",zt[zt.Operator=4]="Operator",zt[zt.Number=5]="Number",zt[zt.Error=6]="Error";var Pn,An=["var","let","as","null","undefined","true","false","if","else","this"],Nn=function(){function e(){}return e.prototype.tokenize=function(e){for(var t=new Rn(e),n=[],r=t.scanToken();null!=r;)n.push(r),r=t.scanToken();return n},e}();function kn(t,n){return new Pn(t,e.TokenType.Character,n,String.fromCharCode(n))}function In(t,n){return new Pn(t,e.TokenType.Operator,0,n)}var On=new(Pn=function(){function t(e,t,n,r){this.index=e,this.type=t,this.numValue=n,this.strValue=r}return t.prototype.isCharacter=function(t){return this.type==e.TokenType.Character&&this.numValue==t},t.prototype.isNumber=function(){return this.type==e.TokenType.Number},t.prototype.isString=function(){return this.type==e.TokenType.String},t.prototype.isOperator=function(t){return this.type==e.TokenType.Operator&&this.strValue==t},t.prototype.isIdentifier=function(){return this.type==e.TokenType.Identifier},t.prototype.isKeyword=function(){return this.type==e.TokenType.Keyword},t.prototype.isKeywordLet=function(){return this.type==e.TokenType.Keyword&&"let"==this.strValue},t.prototype.isKeywordAs=function(){return this.type==e.TokenType.Keyword&&"as"==this.strValue},t.prototype.isKeywordNull=function(){return this.type==e.TokenType.Keyword&&"null"==this.strValue},t.prototype.isKeywordUndefined=function(){return this.type==e.TokenType.Keyword&&"undefined"==this.strValue},t.prototype.isKeywordTrue=function(){return this.type==e.TokenType.Keyword&&"true"==this.strValue},t.prototype.isKeywordFalse=function(){return this.type==e.TokenType.Keyword&&"false"==this.strValue},t.prototype.isKeywordThis=function(){return this.type==e.TokenType.Keyword&&"this"==this.strValue},t.prototype.isError=function(){return this.type==e.TokenType.Error},t.prototype.toNumber=function(){return this.type==e.TokenType.Number?this.numValue:-1},t.prototype.toString=function(){switch(this.type){case e.TokenType.Character:case e.TokenType.Identifier:case e.TokenType.Keyword:case e.TokenType.Operator:case e.TokenType.String:case e.TokenType.Error:return this.strValue;case e.TokenType.Number:return this.numValue.toString();default:return null}},t}())(-1,e.TokenType.Character,0,""),Rn=function(){function t(e){this.input=e,this.peek=0,this.index=-1,this.length=e.length,this.advance()}return t.prototype.advance=function(){this.peek=++this.index>=this.length?Kt:this.input.charCodeAt(this.index)},t.prototype.scanToken=function(){for(var e=this.input,t=this.length,n=this.peek,r=this.index;n<=$t;){if(++r>=t){n=Kt;break}n=e.charCodeAt(r)}if(this.peek=n,this.index=r,r>=t)return null;if(Dn(n))return this.scanIdentifier();if(bn(n))return this.scanNumber(r);var i=r;switch(n){case 46:return this.advance(),bn(this.peek)?this.scanNumber(i):kn(i,46);case 40:case 41:case Sn:case 125:case 91:case 93:case 44:case 58:case sn:return this.scanCharacter(i,n);case tn:case Zt:return this.scanString();case 35:case nn:case rn:case 42:case on:case 37:case 94:return this.scanOperator(i,String.fromCharCode(n));case 63:return this.scanComplexOperator(i,"?",46,".");case 60:case un:return this.scanComplexOperator(i,String.fromCharCode(n),an,"=");case 33:case an:return this.scanComplexOperator(i,String.fromCharCode(n),an,"=",an,"=");case 38:return this.scanComplexOperator(i,"&",38,"&");case 124:return this.scanComplexOperator(i,"|",124,"|");case wn:for(;Tn(this.peek);)this.advance();return this.scanToken()}return this.advance(),this.error("Unexpected character ["+String.fromCharCode(n)+"]",0)},t.prototype.scanCharacter=function(e,t){return this.advance(),kn(e,t)},t.prototype.scanOperator=function(e,t){return this.advance(),In(e,t)},t.prototype.scanComplexOperator=function(e,t,n,r,i,o){this.advance();var s=t;return this.peek==n&&(this.advance(),s+=r),null!=i&&this.peek==i&&(this.advance(),s+=o),In(e,s)},t.prototype.scanIdentifier=function(){var t=this.index;for(this.advance();Fn(this.peek);)this.advance();var n=this.input.substring(t,this.index);return An.indexOf(n)>-1?function r(t,n){return new Pn(t,e.TokenType.Keyword,0,n)}(t,n):function i(t,n){return new Pn(t,e.TokenType.Identifier,0,n)}(t,n)},t.prototype.scanNumber=function(t){var n,r=this.index===t;for(this.advance();;){if(bn(this.peek));else if(46==this.peek)r=!1;else{if(101!=(n=this.peek)&&69!=n)break;if(this.advance(),Bn(this.peek)&&this.advance(),!bn(this.peek))return this.error("Invalid exponent",-1);r=!1}this.advance()}var i=this.input.substring(t,this.index);return function s(t,n){return new Pn(t,e.TokenType.Number,n,"")}(t,r?function o(e){var t=parseInt(e);if(isNaN(t))throw new Error("Invalid integer literal when parsing "+e);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
   */(i):parseFloat(i))},t.prototype.scanString=function(){var t=this.index,n=this.peek;this.advance();for(var r="",i=this.index,o=this.input;this.peek!=n;)if(92==this.peek){r+=o.substring(i,this.index),this.advance();var s=void 0;if(this.peek=this.peek,117==this.peek){var a=o.substring(this.index+1,this.index+5);if(!/^[0-9a-f]+$/i.test(a))return this.error("Invalid unicode escape [\\u"+a+"]",0);s=parseInt(a,16);for(var u=0;u<5;u++)this.advance()}else s=jn(this.peek),this.advance();r+=String.fromCharCode(s),i=this.index}else{if(this.peek==Kt)return this.error("Unterminated quote",0);this.advance()}var p=o.substring(i,this.index);return this.advance(),function l(t,n){return new Pn(t,e.TokenType.String,0,n)}(t,r+p)},t.prototype.error=function(t,n){var r=this.index+n;return function i(t,n){return new Pn(t,e.TokenType.Error,0,n)}(r,"Lexer Error: "+t+" at column "+r+" in expression ["+this.input+"]")},t}();function Dn(e){return vn<=e&&e<=xn||cn<=e&&e<=fn||e==dn||e==en}function Ln(e){if(0==e.length)return!1;var t=new Rn(e);if(!Dn(t.peek))return!1;for(t.advance();t.peek!==Kt;){if(!Fn(t.peek))return!1;t.advance()}return!0}function Fn(e){return Mn(e)||bn(e)||e==dn||e==en}function Bn(e){return e==rn||e==nn}function Vn(e){return e===tn||e===Zt||e===Cn}function jn(e){switch(e){case yn:return Qt;case mn:return Yt;case gn:return Jt;case _n:return Xt;case En:return Gt;default:return e}}var Un=function Un(e,t,n,r){this.input=t,this.errLocation=n,this.ctxLocation=r,this.message="Parser Error: "+e+" "+n+" ["+t+"] in "+r},qn=function qn(e,t){this.start=e,this.end=t},Hn=function(){function e(e){this.span=e}return e.prototype.visit=function(e,t){return void 0===t&&(t=null),null},e.prototype.toString=function(){return"AST"},e}(),Wn=function(e){function t(t,n,r,i){var o=e.call(this,t)||this;return o.prefix=n,o.uninterpretedExpression=r,o.location=i,o}return n(t,e),t.prototype.visit=function(e,t){return void 0===t&&(t=null),e.visitQuote(this,t)},t.prototype.toString=function(){return"Quote"},t}(Hn),zn=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return n(t,e),t.prototype.visit=function(e,t){void 0===t&&(t=null)},t}(Hn),Kn=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return n(t,e),t.prototype.visit=function(e,t){return void 0===t&&(t=null),e.visitImplicitReceiver(this,t)},t}(Hn),Xn=function(e){function t(t,n){var r=e.call(this,t)||this;return r.expressions=n,r}return n(t,e),t.prototype.visit=function(e,t){return void 0===t&&(t=null),e.visitChain(this,t)},t}(Hn),Qn=function(e){function t(t,n,r,i){var o=e.call(this,t)||this;return o.condition=n,o.trueExp=r,o.falseExp=i,o}return n(t,e),t.prototype.visit=function(e,t){return void 0===t&&(t=null),e.visitConditional(this,t)},t}(Hn),Gn=function(e){function t(t,n,r){var i=e.call(this,t)||this;return i.receiver=n,i.name=r,i}return n(t,e),t.prototype.visit=function(e,t){return void 0===t&&(t=null),e.visitPropertyRead(this,t)},t}(Hn),Yn=function(e){function t(t,n,r,i){var o=e.call(this,t)||this;return o.receiver=n,o.name=r,o.value=i,o}return n(t,e),t.prototype.visit=function(e,t){return void 0===t&&(t=null),e.visitPropertyWrite(this,t)},t}(Hn),Jn=function(e){function t(t,n,r){var i=e.call(this,t)||this;return i.receiver=n,i.name=r,i}return n(t,e),t.prototype.visit=function(e,t){return void 0===t&&(t=null),e.visitSafePropertyRead(this,t)},t}(Hn),$n=function(e){function t(t,n,r){var i=e.call(this,t)||this;return i.obj=n,i.key=r,i}return n(t,e),t.prototype.visit=function(e,t){return void 0===t&&(t=null),e.visitKeyedRead(this,t)},t}(Hn),Zn=function(e){function t(t,n,r,i){var o=e.call(this,t)||this;return o.obj=n,o.key=r,o.value=i,o}return n(t,e),t.prototype.visit=function(e,t){return void 0===t&&(t=null),e.visitKeyedWrite(this,t)},t}(Hn),er=function(e){function t(t,n,r,i){var o=e.call(this,t)||this;return o.exp=n,o.name=r,o.args=i,o}return n(t,e),t.prototype.visit=function(e,t){return void 0===t&&(t=null),e.visitPipe(this,t)},t}(Hn),tr=function(e){function t(t,n){var r=e.call(this,t)||this;return r.value=n,r}return n(t,e),t.prototype.visit=function(e,t){return void 0===t&&(t=null),e.visitLiteralPrimitive(this,t)},t}(Hn),nr=function(e){function t(t,n){var r=e.call(this,t)||this;return r.expressions=n,r}return n(t,e),t.prototype.visit=function(e,t){return void 0===t&&(t=null),e.visitLiteralArray(this,t)},t}(Hn),rr=function(e){function t(t,n,r){var i=e.call(this,t)||this;return i.keys=n,i.values=r,i}return n(t,e),t.prototype.visit=function(e,t){return void 0===t&&(t=null),e.visitLiteralMap(this,t)},t}(Hn),ir=function(e){function t(t,n,r){var i=e.call(this,t)||this;return i.strings=n,i.expressions=r,i}return n(t,e),t.prototype.visit=function(e,t){return void 0===t&&(t=null),e.visitInterpolation(this,t)},t}(Hn),or=function(e){function t(t,n,r,i){var o=e.call(this,t)||this;return o.operation=n,o.left=r,o.right=i,o}return n(t,e),t.prototype.visit=function(e,t){return void 0===t&&(t=null),e.visitBinary(this,t)},t}(Hn),sr=function(e){function t(t,n){var r=e.call(this,t)||this;return r.expression=n,r}return n(t,e),t.prototype.visit=function(e,t){return void 0===t&&(t=null),e.visitPrefixNot(this,t)},t}(Hn),ar=function(e){function t(t,n){var r=e.call(this,t)||this;return r.expression=n,r}return n(t,e),t.prototype.visit=function(e,t){return void 0===t&&(t=null),e.visitNonNullAssert(this,t)},t}(Hn),ur=function(e){function t(t,n,r,i){var o=e.call(this,t)||this;return o.receiver=n,o.name=r,o.args=i,o}return n(t,e),t.prototype.visit=function(e,t){return void 0===t&&(t=null),e.visitMethodCall(this,t)},t}(Hn),pr=function(e){function t(t,n,r,i){var o=e.call(this,t)||this;return o.receiver=n,o.name=r,o.args=i,o}return n(t,e),t.prototype.visit=function(e,t){return void 0===t&&(t=null),e.visitSafeMethodCall(this,t)},t}(Hn),lr=function(e){function t(t,n,r){var i=e.call(this,t)||this;return i.target=n,i.args=r,i}return n(t,e),t.prototype.visit=function(e,t){return void 0===t&&(t=null),e.visitFunctionCall(this,t)},t}(Hn),cr=function(e){function t(t,n,r,i){var o=e.call(this,new qn(0,null==n?0:n.length))||this;return o.ast=t,o.source=n,o.location=r,o.errors=i,o}return n(t,e),t.prototype.visit=function(e,t){return void 0===t&&(t=null),this.ast.visit(e,t)},t.prototype.toString=function(){return this.source+" in "+this.location},t}(Hn),hr=function hr(e,t,n,r,i){this.span=e,this.key=t,this.keyIsVar=n,this.name=r,this.expression=i},fr=function(){function e(){}return e.prototype.visitBinary=function(e,t){},e.prototype.visitChain=function(e,t){},e.prototype.visitConditional=function(e,t){},e.prototype.visitFunctionCall=function(e,t){},e.prototype.visitImplicitReceiver=function(e,t){},e.prototype.visitInterpolation=function(e,t){},e.prototype.visitKeyedRead=function(e,t){},e.prototype.visitKeyedWrite=function(e,t){},e.prototype.visitLiteralArray=function(e,t){},e.prototype.visitLiteralMap=function(e,t){},e.prototype.visitLiteralPrimitive=function(e,t){},e.prototype.visitMethodCall=function(e,t){},e.prototype.visitPipe=function(e,t){},e.prototype.visitPrefixNot=function(e,t){},e.prototype.visitNonNullAssert=function(e,t){},e.prototype.visitPropertyRead=function(e,t){},e.prototype.visitPropertyWrite=function(e,t){},e.prototype.visitQuote=function(e,t){},e.prototype.visitSafeMethodCall=function(e,t){},e.prototype.visitSafePropertyRead=function(e,t){},e}(),dr=function(){function e(){}return e.prototype.visitBinary=function(e,t){return e.left.visit(this),e.right.visit(this),null},e.prototype.visitChain=function(e,t){return this.visitAll(e.expressions,t)},e.prototype.visitConditional=function(e,t){return e.condition.visit(this),e.trueExp.visit(this),e.falseExp.visit(this),null},e.prototype.visitPipe=function(e,t){return e.exp.visit(this),this.visitAll(e.args,t),null},e.prototype.visitFunctionCall=function(e,t){return e.target.visit(this),this.visitAll(e.args,t),null},e.prototype.visitImplicitReceiver=function(e,t){return null},e.prototype.visitInterpolation=function(e,t){return this.visitAll(e.expressions,t)},e.prototype.visitKeyedRead=function(e,t){return e.obj.visit(this),e.key.visit(this),null},e.prototype.visitKeyedWrite=function(e,t){return e.obj.visit(this),e.key.visit(this),e.value.visit(this),null},e.prototype.visitLiteralArray=function(e,t){return this.visitAll(e.expressions,t)},e.prototype.visitLiteralMap=function(e,t){return this.visitAll(e.values,t)},e.prototype.visitLiteralPrimitive=function(e,t){return null},e.prototype.visitMethodCall=function(e,t){return e.receiver.visit(this),this.visitAll(e.args,t)},e.prototype.visitPrefixNot=function(e,t){return e.expression.visit(this),null},e.prototype.visitNonNullAssert=function(e,t){return e.expression.visit(this),null},e.prototype.visitPropertyRead=function(e,t){return e.receiver.visit(this),null},e.prototype.visitPropertyWrite=function(e,t){return e.receiver.visit(this),e.value.visit(this),null},e.prototype.visitSafePropertyRead=function(e,t){return e.receiver.visit(this),null},e.prototype.visitSafeMethodCall=function(e,t){return e.receiver.visit(this),this.visitAll(e.args,t)},e.prototype.visitAll=function(e,t){var n=this;return e.forEach(function(e){return e.visit(n,t)}),null},e.prototype.visitQuote=function(e,t){return null},e}(),vr=function(){function e(){}return e.prototype.visitImplicitReceiver=function(e,t){return e},e.prototype.visitInterpolation=function(e,t){return new ir(e.span,e.strings,this.visitAll(e.expressions))},e.prototype.visitLiteralPrimitive=function(e,t){return new tr(e.span,e.value)},e.prototype.visitPropertyRead=function(e,t){return new Gn(e.span,e.receiver.visit(this),e.name)},e.prototype.visitPropertyWrite=function(e,t){return new Yn(e.span,e.receiver.visit(this),e.name,e.value.visit(this))},e.prototype.visitSafePropertyRead=function(e,t){return new Jn(e.span,e.receiver.visit(this),e.name)},e.prototype.visitMethodCall=function(e,t){return new ur(e.span,e.receiver.visit(this),e.name,this.visitAll(e.args))},e.prototype.visitSafeMethodCall=function(e,t){return new pr(e.span,e.receiver.visit(this),e.name,this.visitAll(e.args))},e.prototype.visitFunctionCall=function(e,t){return new lr(e.span,e.target.visit(this),this.visitAll(e.args))},e.prototype.visitLiteralArray=function(e,t){return new nr(e.span,this.visitAll(e.expressions))},e.prototype.visitLiteralMap=function(e,t){return new rr(e.span,e.keys,this.visitAll(e.values))},e.prototype.visitBinary=function(e,t){return new or(e.span,e.operation,e.left.visit(this),e.right.visit(this))},e.prototype.visitPrefixNot=function(e,t){return new sr(e.span,e.expression.visit(this))},e.prototype.visitNonNullAssert=function(e,t){return new ar(e.span,e.expression.visit(this))},e.prototype.visitConditional=function(e,t){return new Qn(e.span,e.condition.visit(this),e.trueExp.visit(this),e.falseExp.visit(this))},e.prototype.visitPipe=function(e,t){return new er(e.span,e.exp.visit(this),e.name,this.visitAll(e.args))},e.prototype.visitKeyedRead=function(e,t){return new $n(e.span,e.obj.visit(this),e.key.visit(this))},e.prototype.visitKeyedWrite=function(e,t){return new Zn(e.span,e.obj.visit(this),e.key.visit(this),e.value.visit(this))},e.prototype.visitAll=function(e){for(var t=new Array(e.length),n=0;n<e.length;++n)t[n]=e[n].visit(this);return t},e.prototype.visitChain=function(e,t){return new Xn(e.span,this.visitAll(e.expressions))},e.prototype.visitQuote=function(e,t){return new Wn(e.span,e.prefix,e.uninterpretedExpression,e.location)},e}(),mr=function(){function e(){}return e.prototype.visitImplicitReceiver=function(e,t){return e},e.prototype.visitInterpolation=function(e,t){var n=this.visitAll(e.expressions);return n!==e.expressions?new ir(e.span,e.strings,n):e},e.prototype.visitLiteralPrimitive=function(e,t){return e},e.prototype.visitPropertyRead=function(e,t){var n=e.receiver.visit(this);return n!==e.receiver?new Gn(e.span,n,e.name):e},e.prototype.visitPropertyWrite=function(e,t){var n=e.receiver.visit(this),r=e.value.visit(this);return n!==e.receiver||r!==e.value?new Yn(e.span,n,e.name,r):e},e.prototype.visitSafePropertyRead=function(e,t){var n=e.receiver.visit(this);return n!==e.receiver?new Jn(e.span,n,e.name):e},e.prototype.visitMethodCall=function(e,t){var n=e.receiver.visit(this);return n!==e.receiver?new ur(e.span,n,e.name,this.visitAll(e.args)):e},e.prototype.visitSafeMethodCall=function(e,t){var n=e.receiver.visit(this),r=this.visitAll(e.args);return n!==e.receiver||r!==e.args?new pr(e.span,n,e.name,r):e},e.prototype.visitFunctionCall=function(e,t){var n=e.target&&e.target.visit(this),r=this.visitAll(e.args);return n!==e.target||r!==e.args?new lr(e.span,n,r):e},e.prototype.visitLiteralArray=function(e,t){var n=this.visitAll(e.expressions);return n!==e.expressions?new nr(e.span,n):e},e.prototype.visitLiteralMap=function(e,t){var n=this.visitAll(e.values);return n!==e.values?new rr(e.span,e.keys,n):e},e.prototype.visitBinary=function(e,t){var n=e.left.visit(this),r=e.right.visit(this);return n!==e.left||r!==e.right?new or(e.span,e.operation,n,r):e},e.prototype.visitPrefixNot=function(e,t){var n=e.expression.visit(this);return n!==e.expression?new sr(e.span,n):e},e.prototype.visitNonNullAssert=function(e,t){var n=e.expression.visit(this);return n!==e.expression?new ar(e.span,n):e},e.prototype.visitConditional=function(e,t){var n=e.condition.visit(this),r=e.trueExp.visit(this),i=e.falseExp.visit(this);return n!==e.condition||r!==e.trueExp||i!=i?new Qn(e.span,n,r,i):e},e.prototype.visitPipe=function(e,t){var n=e.exp.visit(this),r=this.visitAll(e.args);return n!==e.exp||r!==e.args?new er(e.span,n,e.name,r):e},e.prototype.visitKeyedRead=function(e,t){var n=e.obj.visit(this),r=e.key.visit(this);return n!==e.obj||r!==e.key?new $n(e.span,n,r):e},e.prototype.visitKeyedWrite=function(e,t){var n=e.obj.visit(this),r=e.key.visit(this),i=e.value.visit(this);return n!==e.obj||r!==e.key||i!==e.value?new Zn(e.span,n,r,i):e},e.prototype.visitAll=function(e){for(var t=new Array(e.length),n=!1,r=0;r<e.length;++r){var i=e[r],o=i.visit(this);t[r]=o,n=n||o!==i}return n?t:e},e.prototype.visitChain=function(e,t){var n=this.visitAll(e.expressions);return n!==e.expressions?new Xn(e.span,n):e},e.prototype.visitQuote=function(e,t){return e},e}(),yr=function yr(e,t,n){this.strings=e,this.expressions=t,this.offsets=n},gr=function gr(e,t,n){this.templateBindings=e,this.warnings=t,this.errors=n};function _r(e){var t=Y(e.start)+"([\\s\\S]*?)"+Y(e.end);return new RegExp(t,"g")}var Er,xr=function(){function e(e){this._lexer=e,this.errors=[]}return e.prototype.parseAction=function(e,t,n){void 0===n&&(n=ht),this._checkNoInterpolation(e,t,n);var r=this._stripComments(e),i=this._lexer.tokenize(this._stripComments(e)),o=new Sr(e,t,i,r.length,!0,this.errors,e.length-r.length).parseChain();return new cr(o,e,t,this.errors)},e.prototype.parseBinding=function(e,t,n){void 0===n&&(n=ht);var r=this._parseBindingAst(e,t,n);return new cr(r,e,t,this.errors)},e.prototype.parseSimpleBinding=function(e,t,n){void 0===n&&(n=ht);var r=this._parseBindingAst(e,t,n),i=wr.check(r);return i.length>0&&this._reportError("Host binding expression cannot contain "+i.join(" "),e,t),new cr(r,e,t,this.errors)},e.prototype._reportError=function(e,t,n,r){this.errors.push(new Un(e,t,n,r))},e.prototype._parseBindingAst=function(e,t,n){var r=this._parseQuote(e,t);if(null!=r)return r;this._checkNoInterpolation(e,t,n);var i=this._stripComments(e),o=this._lexer.tokenize(i);return new Sr(e,t,o,i.length,!1,this.errors,e.length-i.length).parseChain()},e.prototype._parseQuote=function(e,t){if(null==e)return null;var n=e.indexOf(":");if(-1==n)return null;var r=e.substring(0,n).trim();if(!Ln(r))return null;var i=e.substring(n+1);return new Wn(new qn(0,e.length),r,i,t)},e.prototype.parseTemplateBindings=function(e,t,n){var r=this._lexer.tokenize(t);if(e){var i=this._lexer.tokenize(e).map(function(e){return e.index=0,e});r.unshift.apply(r,s(i))}return new Sr(t,n,r,t.length,!1,this.errors,0).parseTemplateBindings()},e.prototype.parseInterpolation=function(e,t,n){void 0===n&&(n=ht);var r=this.splitInterpolation(e,t,n);if(null==r)return null;for(var i=[],o=0;o<r.expressions.length;++o){var s=r.expressions[o],a=this._stripComments(s),u=this._lexer.tokenize(a),p=new Sr(e,t,u,a.length,!1,this.errors,r.offsets[o]+(s.length-a.length)).parseChain();i.push(p)}return new cr(new ir(new qn(0,null==e?0:e.length),r.strings,i),e,t,this.errors)},e.prototype.splitInterpolation=function(e,t,n){void 0===n&&(n=ht);var r=_r(n),i=e.split(r);if(i.length<=1)return null;for(var o=[],s=[],a=[],u=0,p=0;p<i.length;p++){var l=i[p];p%2==0?(o.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",e,"at column "+this._findInterpolationErrorColumn(i,p,n)+" in",t),s.push("$implict"),a.push(u))}return new yr(o,s,a)},e.prototype.wrapLiteralPrimitive=function(e,t){return new cr(new tr(new qn(0,null==e?0:e.length),e),e,t,this.errors)},e.prototype._stripComments=function(e){var t=this._commentStart(e);return null!=t?e.substring(0,t).trim():e},e.prototype._commentStart=function(e){for(var t=null,n=0;n<e.length-1;n++){var r=e.charCodeAt(n),i=e.charCodeAt(n+1);if(r===on&&i==on&&null==t)return n;t===r?t=null:null==t&&Vn(r)&&(t=r)}return null},e.prototype._checkNoInterpolation=function(e,t,n){var r=_r(n),i=e.split(r);i.length>1&&this._reportError("Got interpolation ("+n.start+n.end+") where expression was expected",e,"at column "+this._findInterpolationErrorColumn(i,1,n)+" in",t)},e.prototype._findInterpolationErrorColumn=function(e,t,n){for(var r="",i=0;i<t;i++)r+=i%2==0?e[i]:""+n.start+e[i]+n.end;return r.length},e}(),Sr=function(){function t(e,t,n,r,i,o,s){this.input=e,this.location=t,this.tokens=n,this.inputLength=r,this.parseAction=i,this.errors=o,this.offset=s,this.rparensExpected=0,this.rbracketsExpected=0,this.rbracesExpected=0,this.index=0}return t.prototype.peek=function(e){var t=this.index+e;return t<this.tokens.length?this.tokens[t]:On},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(e){return new qn(e,this.inputIndex)},t.prototype.advance=function(){this.index++},t.prototype.optionalCharacter=function(e){return!!this.next.isCharacter(e)&&(this.advance(),!0)},t.prototype.peekKeywordLet=function(){return this.next.isKeywordLet()},t.prototype.peekKeywordAs=function(){return this.next.isKeywordAs()},t.prototype.expectCharacter=function(e){this.optionalCharacter(e)||this.error("Missing expected "+String.fromCharCode(e))},t.prototype.optionalOperator=function(e){return!!this.next.isOperator(e)&&(this.advance(),!0)},t.prototype.expectOperator=function(e){this.optionalOperator(e)||this.error("Missing expected operator "+e)},t.prototype.expectIdentifierOrKeyword=function(){var e=this.next;return e.isIdentifier()||e.isKeyword()?(this.advance(),e.toString()):(this.error("Unexpected token "+e+", expected identifier or keyword"),"")},t.prototype.expectIdentifierOrKeywordOrString=function(){var e=this.next;return e.isIdentifier()||e.isKeyword()||e.isString()?(this.advance(),e.toString()):(this.error("Unexpected token "+e+", expected identifier, keyword, or string"),"")},t.prototype.parseChain=function(){for(var e=[],t=this.inputIndex;this.index<this.tokens.length;){var n=this.parsePipe();if(e.push(n),this.optionalCharacter(sn))for(this.parseAction||this.error("Binding expression cannot contain chained expression");this.optionalCharacter(sn););else this.index<this.tokens.length&&this.error("Unexpected token '"+this.next+"'")}return 0==e.length?new zn(this.span(t)):1==e.length?e[0]:new Xn(this.span(t),e)},t.prototype.parsePipe=function(){var e=this.parseExpression();if(this.optionalOperator("|")){this.parseAction&&this.error("Cannot have a pipe in an action expression");do{for(var t=this.expectIdentifierOrKeyword(),n=[];this.optionalCharacter(58);)n.push(this.parseExpression());e=new er(this.span(e.span.start),e,t,n)}while(this.optionalOperator("|"))}return e},t.prototype.parseExpression=function(){return this.parseConditional()},t.prototype.parseConditional=function(){var e=this.inputIndex,t=this.parseLogicalOr();if(this.optionalOperator("?")){var n=this.parsePipe(),r=void 0;if(this.optionalCharacter(58))r=this.parsePipe();else{var i=this.input.substring(e,this.inputIndex);this.error("Conditional expression "+i+" requires all 3 expressions"),r=new zn(this.span(e))}return new Qn(this.span(e),t,n,r)}return t},t.prototype.parseLogicalOr=function(){for(var e=this.parseLogicalAnd();this.optionalOperator("||");){var t=this.parseLogicalAnd();e=new or(this.span(e.span.start),"||",e,t)}return e},t.prototype.parseLogicalAnd=function(){for(var e=this.parseEquality();this.optionalOperator("&&");){var t=this.parseEquality();e=new or(this.span(e.span.start),"&&",e,t)}return e},t.prototype.parseEquality=function(){for(var t=this.parseRelational();this.next.type==e.TokenType.Operator;){var n=this.next.strValue;switch(n){case"==":case"===":case"!=":case"!==":this.advance();var r=this.parseRelational();t=new or(this.span(t.span.start),n,t,r);continue}break}return t},t.prototype.parseRelational=function(){for(var t=this.parseAdditive();this.next.type==e.TokenType.Operator;){var n=this.next.strValue;switch(n){case"<":case">":case"<=":case">=":this.advance();var r=this.parseAdditive();t=new or(this.span(t.span.start),n,t,r);continue}break}return t},t.prototype.parseAdditive=function(){for(var t=this.parseMultiplicative();this.next.type==e.TokenType.Operator;){var n=this.next.strValue;switch(n){case"+":case"-":this.advance();var r=this.parseMultiplicative();t=new or(this.span(t.span.start),n,t,r);continue}break}return t},t.prototype.parseMultiplicative=function(){for(var t=this.parsePrefix();this.next.type==e.TokenType.Operator;){var n=this.next.strValue;switch(n){case"*":case"%":case"/":this.advance();var r=this.parsePrefix();t=new or(this.span(t.span.start),n,t,r);continue}break}return t},t.prototype.parsePrefix=function(){if(this.next.type==e.TokenType.Operator){var t=this.inputIndex,n=this.next.strValue,r=void 0;switch(n){case"+":return this.advance(),r=this.parsePrefix(),new or(this.span(t),"-",r,new tr(new qn(t,t),0));case"-":return this.advance(),r=this.parsePrefix(),new or(this.span(t),n,new tr(new qn(t,t),0),r);case"!":return this.advance(),r=this.parsePrefix(),new sr(this.span(t),r)}}return this.parseCallChain()},t.prototype.parseCallChain=function(){for(var e=this.parsePrimary();;)if(this.optionalCharacter(46))e=this.parseAccessMemberOrMethodCall(e,!1);else if(this.optionalOperator("?."))e=this.parseAccessMemberOrMethodCall(e,!0);else if(this.optionalCharacter(91)){this.rbracketsExpected++;var t=this.parsePipe();if(this.rbracketsExpected--,this.expectCharacter(93),this.optionalOperator("=")){var n=this.parseConditional();e=new Zn(this.span(e.span.start),e,t,n)}else e=new $n(this.span(e.span.start),e,t)}else if(this.optionalCharacter(40)){this.rparensExpected++;var r=this.parseCallArguments();this.rparensExpected--,this.expectCharacter(41),e=new lr(this.span(e.span.start),e,r)}else{if(!this.optionalOperator("!"))return e;e=new ar(this.span(e.span.start),e)}},t.prototype.parsePrimary=function(){var e=this.inputIndex;if(this.optionalCharacter(40)){this.rparensExpected++;var t=this.parsePipe();return this.rparensExpected--,this.expectCharacter(41),t}if(this.next.isKeywordNull())return this.advance(),new tr(this.span(e),null);if(this.next.isKeywordUndefined())return this.advance(),new tr(this.span(e),void 0);if(this.next.isKeywordTrue())return this.advance(),new tr(this.span(e),!0);if(this.next.isKeywordFalse())return this.advance(),new tr(this.span(e),!1);if(this.next.isKeywordThis())return this.advance(),new Kn(this.span(e));if(this.optionalCharacter(91)){this.rbracketsExpected++;var n=this.parseExpressionList(93);return this.rbracketsExpected--,this.expectCharacter(93),new nr(this.span(e),n)}if(this.next.isCharacter(Sn))return this.parseLiteralMap();if(this.next.isIdentifier())return this.parseAccessMemberOrMethodCall(new Kn(this.span(e)),!1);if(this.next.isNumber()){var r=this.next.toNumber();return this.advance(),new tr(this.span(e),r)}if(this.next.isString()){var i=this.next.toString();return this.advance(),new tr(this.span(e),i)}return this.index>=this.tokens.length?(this.error("Unexpected end of expression: "+this.input),new zn(this.span(e))):(this.error("Unexpected token "+this.next),new zn(this.span(e)))},t.prototype.parseExpressionList=function(e){var t=[];if(!this.next.isCharacter(e))do{t.push(this.parsePipe())}while(this.optionalCharacter(44));return t},t.prototype.parseLiteralMap=function(){var e=[],t=[],n=this.inputIndex;if(this.expectCharacter(Sn),!this.optionalCharacter(125)){this.rbracesExpected++;do{var r=this.next.isString(),i=this.expectIdentifierOrKeywordOrString();e.push({key:i,quoted:r}),this.expectCharacter(58),t.push(this.parsePipe())}while(this.optionalCharacter(44));this.rbracesExpected--,this.expectCharacter(125)}return new rr(this.span(n),e,t)},t.prototype.parseAccessMemberOrMethodCall=function(e,t){void 0===t&&(t=!1);var n=e.span.start,r=this.expectIdentifierOrKeyword();if(this.optionalCharacter(40)){this.rparensExpected++;var i=this.parseCallArguments();this.expectCharacter(41),this.rparensExpected--;var o=this.span(n);return t?new pr(o,e,r,i):new ur(o,e,r,i)}if(t)return this.optionalOperator("=")?(this.error("The '?.' operator cannot be used in the assignment"),new zn(this.span(n))):new Jn(this.span(n),e,r);if(this.optionalOperator("=")){if(!this.parseAction)return this.error("Bindings cannot contain assignments"),new zn(this.span(n));var s=this.parseConditional();return new Yn(this.span(n),e,r,s)}return new Gn(this.span(n),e,r)},t.prototype.parseCallArguments=function(){if(this.next.isCharacter(41))return[];var e=[];do{e.push(this.parsePipe())}while(this.optionalCharacter(44));return e},t.prototype.expectTemplateBindingKey=function(){var e="",t=!1;do{e+=this.expectIdentifierOrKeywordOrString(),(t=this.optionalOperator("-"))&&(e+="-")}while(t);return e.toString()},t.prototype.parseTemplateBindings=function(){for(var e=[],t=null;this.index<this.tokens.length;){var n=this.inputIndex,r=this.peekKeywordLet();r&&this.advance();var i=this.expectTemplateBindingKey(),o=i;r||(null==t?t=o:o=t+o[0].toUpperCase()+o.substring(1)),this.optionalCharacter(58);var s=null,a=null;if(r)s=this.optionalOperator("=")?this.expectTemplateBindingKey():"$implicit";else if(this.peekKeywordAs()){var u=this.inputIndex;this.advance(),s=i,o=this.expectTemplateBindingKey(),r=!0}else if(this.next!==On&&!this.peekKeywordLet()){var p=this.inputIndex,l=this.parsePipe(),c=this.input.substring(p-this.offset,this.inputIndex-this.offset);a=new cr(l,c,this.location,this.errors)}if(e.push(new hr(this.span(n),o,r,s,a)),this.peekKeywordAs()&&!r){u=this.inputIndex,this.advance();var h=this.expectTemplateBindingKey();e.push(new hr(this.span(u),h,!0,o,null))}this.optionalCharacter(sn)||this.optionalCharacter(44)}return new gr(e,[],this.errors)},t.prototype.error=function(e,t){void 0===t&&(t=null),this.errors.push(new Un(e,this.input,this.locationText(t),this.location)),this.skip()},t.prototype.locationText=function(e){return void 0===e&&(e=null),null==e&&(e=this.index),e<this.tokens.length?"at column "+(this.tokens[e].index+1)+" in":"at the end of the expression"},t.prototype.skip=function(){for(var e=this.next;this.index<this.tokens.length&&!e.isCharacter(sn)&&(this.rparensExpected<=0||!e.isCharacter(41))&&(this.rbracesExpected<=0||!e.isCharacter(125))&&(this.rbracketsExpected<=0||!e.isCharacter(93));)this.next.isError()&&this.errors.push(new Un(this.next.toString(),this.input,this.locationText(),this.location)),this.advance(),e=this.next},t}(),wr=function(){function e(){this.errors=[]}return e.check=function(t){var n=new e;return t.visit(n),n.errors},e.prototype.visitImplicitReceiver=function(e,t){},e.prototype.visitInterpolation=function(e,t){},e.prototype.visitLiteralPrimitive=function(e,t){},e.prototype.visitPropertyRead=function(e,t){},e.prototype.visitPropertyWrite=function(e,t){},e.prototype.visitSafePropertyRead=function(e,t){},e.prototype.visitMethodCall=function(e,t){},e.prototype.visitSafeMethodCall=function(e,t){},e.prototype.visitFunctionCall=function(e,t){},e.prototype.visitLiteralArray=function(e,t){this.visitAll(e.expressions)},e.prototype.visitLiteralMap=function(e,t){this.visitAll(e.values)},e.prototype.visitBinary=function(e,t){},e.prototype.visitPrefixNot=function(e,t){},e.prototype.visitNonNullAssert=function(e,t){},e.prototype.visitConditional=function(e,t){},e.prototype.visitPipe=function(e,t){this.errors.push("pipes")},e.prototype.visitKeyedRead=function(e,t){},e.prototype.visitKeyedWrite=function(e,t){},e.prototype.visitAll=function(e){var t=this;return e.map(function(e){return e.visit(t)})},e.prototype.visitChain=function(e,t){},e.prototype.visitQuote=function(e,t){},e}(),Cr=function(){function e(e,t,n,r){this.file=e,this.offset=t,this.line=n,this.col=r}return e.prototype.toString=function(){return null!=this.offset?this.file.url+"@"+this.line+":"+this.col:this.file.url},e.prototype.moveBy=function(t){for(var n=this.file.content,r=n.length,i=this.offset,o=this.line,s=this.col;i>0&&t<0;)if(t++,(u=n.charCodeAt(--i))==Qt){o--;var a=n.substr(0,i-1).lastIndexOf(String.fromCharCode(Qt));s=a>0?i-a:i}else s--;for(;i<r&&t>0;){var u=n.charCodeAt(i);i++,t--,u==Qt?(o++,s=0):s++}return new e(this.file,i,o,s)},e.prototype.getContext=function(e,t){var n=this.file.content,r=this.offset;if(null!=r){r>n.length-1&&(r=n.length-1);for(var i=r,o=0,s=0;o<e&&r>0&&(o++,"\n"!=n[--r]||++s!=t););for(o=0,s=0;o<e&&i<n.length-1&&(o++,"\n"!=n[++i]||++s!=t););return{before:n.substring(r,this.offset),after:n.substring(this.offset,i+1)}}return null},e}(),Tr=function Tr(e,t){this.content=e,this.url=t},br=function(){function e(e,t,n){void 0===n&&(n=null),this.start=e,this.end=t,this.details=n}return e.prototype.toString=function(){return this.start.file.content.substring(this.start.offset,this.end.offset)},e}();(Er=e.ParseErrorLevel||(e.ParseErrorLevel={}))[Er.WARNING=0]="WARNING",Er[Er.ERROR=1]="ERROR";var Mr,Pr=function(){function t(t,n,r){void 0===r&&(r=e.ParseErrorLevel.ERROR),this.span=t,this.msg=n,this.level=r}return t.prototype.contextualMessage=function(){var t=this.span.start.getContext(100,3);return t?this.msg+' ("'+t.before+"["+e.ParseErrorLevel[this.level]+" ->]"+t.after+'")':this.msg},t.prototype.toString=function(){var e=this.span.details?", "+this.span.details:"";return this.contextualMessage()+": "+this.span.start+e},t}();function Ar(e,t){var n=ke(t),r=null!=n?"in "+e+" "+Ne(t)+" in "+n:"in "+e+" "+Ne(t),i=new Tr("",r);return new br(new Cr(i,-1,-1,-1),new Cr(i,-1,-1,-1))}
  /**
   * @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){e[e.TAG_OPEN_START=0]="TAG_OPEN_START",e[e.TAG_OPEN_END=1]="TAG_OPEN_END",e[e.TAG_OPEN_END_VOID=2]="TAG_OPEN_END_VOID",e[e.TAG_CLOSE=3]="TAG_CLOSE",e[e.TEXT=4]="TEXT",e[e.ESCAPABLE_RAW_TEXT=5]="ESCAPABLE_RAW_TEXT",e[e.RAW_TEXT=6]="RAW_TEXT",e[e.COMMENT_START=7]="COMMENT_START",e[e.COMMENT_END=8]="COMMENT_END",e[e.CDATA_START=9]="CDATA_START",e[e.CDATA_END=10]="CDATA_END",e[e.ATTR_NAME=11]="ATTR_NAME",e[e.ATTR_VALUE=12]="ATTR_VALUE",e[e.DOC_TYPE=13]="DOC_TYPE",e[e.EXPANSION_FORM_START=14]="EXPANSION_FORM_START",e[e.EXPANSION_CASE_VALUE=15]="EXPANSION_CASE_VALUE",e[e.EXPANSION_CASE_EXP_START=16]="EXPANSION_CASE_EXP_START",e[e.EXPANSION_CASE_EXP_END=17]="EXPANSION_CASE_EXP_END",e[e.EXPANSION_FORM_END=18]="EXPANSION_FORM_END",e[e.EOF=19]="EOF"}(Mr||(Mr={}));var Nr=function Pn(e,t,n){this.type=e,this.parts=t,this.sourceSpan=n},kr=function(e){function t(t,n,r){var i=e.call(this,r,t)||this;return i.tokenType=n,i}return n(t,e),t}(Pr),Ir=function Ir(e,t){this.tokens=e,this.errors=t},Or=/\r\n?/g;function Rr(e){return'Unexpected character "'+(e===Kt?"EOF":String.fromCharCode(e))+'"'}function Dr(e){return'Unknown entity "'+e+'" - use the "&#<decimal>;" or  "&#x<hex>;" syntax'}var Lr=function Lr(e){this.error=e},Fr=function(){function t(e,t,n,r){void 0===r&&(r=ht),this._file=e,this._getTagDefinition=t,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=e.content,this._length=e.content.length,this._advance()}return t.prototype._processCarriageReturns=function(e){return e.replace(Or,"\n")},t.prototype.tokenize=function(){for(;this._peek!==Kt;){var e=this._getLocation();try{this._attemptCharCode(60)?this._attemptCharCode(33)?this._attemptCharCode(91)?this._consumeCdata(e):this._attemptCharCode(rn)?this._consumeComment(e):this._consumeDocType(e):this._attemptCharCode(on)?this._consumeTagClose(e):this._consumeTagOpen(e):this._tokenizeIcu&&this._tokenizeExpansionForm()||this._consumeText()}catch(e){if(!(e instanceof Lr))throw e;this.errors.push(e.error)}}return this._beginToken(Mr.EOF),this._endToken([]),new Ir(function t(e){for(var t=[],n=void 0,r=0;r<e.length;r++){var i=e[r];n&&n.type==Mr.TEXT&&i.type==Mr.TEXT?(n.parts[0]+=i.parts[0],n.sourceSpan.end=i.sourceSpan.end):t.push(n=i)}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
   */(this.tokens),this.errors)},t.prototype._tokenizeExpansionForm=function(){if(qr(this._input,this._index,this._interpolationConfig))return this._consumeExpansionFormStart(),!0;if(function e(t){return t===an||Mn(t)||bn(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 Cr(this._file,this._index,this._line,this._column)},t.prototype._getSpan=function(e,t){return void 0===e&&(e=this._getLocation()),void 0===t&&(t=this._getLocation()),new br(e,t)},t.prototype._beginToken=function(e,t){void 0===t&&(t=this._getLocation()),this._currentTokenStart=t,this._currentTokenType=e},t.prototype._endToken=function(e,t){void 0===t&&(t=this._getLocation());var n=new Nr(this._currentTokenType,e,new br(this._currentTokenStart,t));return this.tokens.push(n),this._currentTokenStart=null,this._currentTokenType=null,n},t.prototype._createError=function(e,t){this._isInExpansionForm()&&(e+=' (Do you have an unescaped "{" in your template? Use "{{ \'{\' }}") to escape it.)');var n=new kr(e,this._currentTokenType,t);return this._currentTokenStart=null,this._currentTokenType=null,new Lr(n)},t.prototype._advance=function(){if(this._index>=this._length)throw this._createError(Rr(Kt),this._getSpan());this._peek===Qt?(this._line++,this._column=0):this._peek!==Qt&&this._peek!==Jt&&this._column++,this._index++,this._peek=this._index>=this._length?Kt:this._input.charCodeAt(this._index),this._nextPeek=this._index+1>=this._length?Kt:this._input.charCodeAt(this._index+1)},t.prototype._attemptCharCode=function(e){return this._peek===e&&(this._advance(),!0)},t.prototype._attemptCharCodeCaseInsensitive=function(e){return!!function t(e,n){return Hr(e)==Hr(n)}(this._peek,e)&&(this._advance(),!0)},t.prototype._requireCharCode=function(e){var t=this._getLocation();if(!this._attemptCharCode(e))throw this._createError(Rr(this._peek),this._getSpan(t,t))},t.prototype._attemptStr=function(e){var t=e.length;if(this._index+t>this._length)return!1;for(var n=this._savePosition(),r=0;r<t;r++)if(!this._attemptCharCode(e.charCodeAt(r)))return this._restorePosition(n),!1;return!0},t.prototype._attemptStrCaseInsensitive=function(e){for(var t=0;t<e.length;t++)if(!this._attemptCharCodeCaseInsensitive(e.charCodeAt(t)))return!1;return!0},t.prototype._requireStr=function(e){var t=this._getLocation();if(!this._attemptStr(e))throw this._createError(Rr(this._peek),this._getSpan(t))},t.prototype._attemptCharCodeUntilFn=function(e){for(;!e(this._peek);)this._advance()},t.prototype._requireCharCodeUntilFn=function(e,t){var n=this._getLocation();if(this._attemptCharCodeUntilFn(e),this._index-n.offset<t)throw this._createError(Rr(this._peek),this._getSpan(n,n))},t.prototype._attemptUntilChar=function(e){for(;this._peek!==e;)this._advance()},t.prototype._readChar=function(e){if(e&&38===this._peek)return this._decodeEntity();var t=this._index;return this._advance(),this._input[t]},t.prototype._decodeEntity=function(){var e=this._getLocation();if(this._advance(),!this._attemptCharCode(35)){var t=this._savePosition();if(this._attemptCharCodeUntilFn(Ur),this._peek!=sn)return this._restorePosition(t),"&";this._advance();var n=this._input.substring(e.offset+1,this._index-1),r=Tt[n];if(!r)throw this._createError(Dr(n),this._getSpan(e));return r}var i=this._attemptCharCode(120)||this._attemptCharCode(88),o=this._getLocation().offset;if(this._attemptCharCodeUntilFn(jr),this._peek!=sn)throw this._createError(Rr(this._peek),this._getSpan());this._advance();var s=this._input.substring(o,this._index-1);try{var a=parseInt(s,i?16:10);return String.fromCharCode(a)}catch(t){var u=this._input.substring(e.offset+1,this._index-1);throw this._createError(Dr(u),this._getSpan(e))}},t.prototype._consumeRawText=function(e,t,n){var r,i=this._getLocation();this._beginToken(e?Mr.ESCAPABLE_RAW_TEXT:Mr.RAW_TEXT,i);for(var o=[];r=this._getLocation(),!this._attemptCharCode(t)||!n();)for(this._index>r.offset&&o.push(this._input.substring(r.offset,this._index));this._peek!==t;)o.push(this._readChar(e));return this._endToken([this._processCarriageReturns(o.join(""))],r)},t.prototype._consumeComment=function(e){var t=this;this._beginToken(Mr.COMMENT_START,e),this._requireCharCode(rn),this._endToken([]);var n=this._consumeRawText(!1,rn,function(){return t._attemptStr("->")});this._beginToken(Mr.COMMENT_END,n.sourceSpan.end),this._endToken([])},t.prototype._consumeCdata=function(e){var t=this;this._beginToken(Mr.CDATA_START,e),this._requireStr("CDATA["),this._endToken([]);var n=this._consumeRawText(!1,93,function(){return t._attemptStr("]>")});this._beginToken(Mr.CDATA_END,n.sourceSpan.end),this._endToken([])},t.prototype._consumeDocType=function(e){this._beginToken(Mr.DOC_TYPE,e),this._attemptUntilChar(un),this._advance(),this._endToken([this._input.substring(e.offset+2,this._index-1)])},t.prototype._consumePrefixAndName=function(){for(var e,t,n=this._index,r=null;58!==this._peek&&!(((e=this._peek)<vn||xn<e)&&(e<cn||fn<e)&&(e<pn||e>ln));)this._advance();return 58===this._peek?(this._advance(),r=this._input.substring(n,this._index-1),t=this._index):t=n,this._requireCharCodeUntilFn(Vr,this._index===t?1:0),[r,this._input.substring(t,this._index)]},t.prototype._consumeTagOpen=function(t){var n,r,i=this._savePosition();try{if(!Mn(this._peek))throw this._createError(Rr(this._peek),this._getSpan());var o=this._index;for(this._consumeTagOpenStart(t),r=(n=this._input.substring(o,this._index)).toLowerCase(),this._attemptCharCodeUntilFn(Br);this._peek!==on&&this._peek!==un;)this._consumeAttributeName(),this._attemptCharCodeUntilFn(Br),this._attemptCharCode(an)&&(this._attemptCharCodeUntilFn(Br),this._consumeAttributeValue()),this._attemptCharCodeUntilFn(Br);this._consumeTagOpenEnd()}catch(e){if(e instanceof Lr)return this._restorePosition(i),this._beginToken(Mr.TEXT,t),void this._endToken(["<"]);throw e}var s=this._getTagDefinition(n).contentType;s===e.TagContentType.RAW_TEXT?this._consumeRawTextWithTagClose(r,!1):s===e.TagContentType.ESCAPABLE_RAW_TEXT&&this._consumeRawTextWithTagClose(r,!0)},t.prototype._consumeRawTextWithTagClose=function(e,t){var n=this,r=this._consumeRawText(t,60,function(){return!!n._attemptCharCode(on)&&(n._attemptCharCodeUntilFn(Br),!!n._attemptStrCaseInsensitive(e)&&(n._attemptCharCodeUntilFn(Br),n._attemptCharCode(un)))});this._beginToken(Mr.TAG_CLOSE,r.sourceSpan.end),this._endToken([null,e])},t.prototype._consumeTagOpenStart=function(e){this._beginToken(Mr.TAG_OPEN_START,e);var t=this._consumePrefixAndName();this._endToken(t)},t.prototype._consumeAttributeName=function(){this._beginToken(Mr.ATTR_NAME);var e=this._consumePrefixAndName();this._endToken(e)},t.prototype._consumeAttributeValue=function(){var e;if(this._beginToken(Mr.ATTR_VALUE),this._peek===tn||this._peek===Zt){var t=this._peek;this._advance();for(var n=[];this._peek!==t;)n.push(this._readChar(!0));e=n.join(""),this._advance()}else{var r=this._index;this._requireCharCodeUntilFn(Vr,1),e=this._input.substring(r,this._index)}this._endToken([this._processCarriageReturns(e)])},t.prototype._consumeTagOpenEnd=function(){var e=this._attemptCharCode(on)?Mr.TAG_OPEN_END_VOID:Mr.TAG_OPEN_END;this._beginToken(e),this._requireCharCode(un),this._endToken([])},t.prototype._consumeTagClose=function(e){this._beginToken(Mr.TAG_CLOSE,e),this._attemptCharCodeUntilFn(Br);var t=this._consumePrefixAndName();this._attemptCharCodeUntilFn(Br),this._requireCharCode(un),this._endToken(t)},t.prototype._consumeExpansionFormStart=function(){this._beginToken(Mr.EXPANSION_FORM_START,this._getLocation()),this._requireCharCode(Sn),this._endToken([]),this._expansionCaseStack.push(Mr.EXPANSION_FORM_START),this._beginToken(Mr.RAW_TEXT,this._getLocation());var e=this._readUntil(44);this._endToken([e],this._getLocation()),this._requireCharCode(44),this._attemptCharCodeUntilFn(Br),this._beginToken(Mr.RAW_TEXT,this._getLocation());var t=this._readUntil(44);this._endToken([t],this._getLocation()),this._requireCharCode(44),this._attemptCharCodeUntilFn(Br)},t.prototype._consumeExpansionCaseStart=function(){this._beginToken(Mr.EXPANSION_CASE_VALUE,this._getLocation());var e=this._readUntil(Sn).trim();this._endToken([e],this._getLocation()),this._attemptCharCodeUntilFn(Br),this._beginToken(Mr.EXPANSION_CASE_EXP_START,this._getLocation()),this._requireCharCode(Sn),this._endToken([],this._getLocation()),this._attemptCharCodeUntilFn(Br),this._expansionCaseStack.push(Mr.EXPANSION_CASE_EXP_START)},t.prototype._consumeExpansionCaseEnd=function(){this._beginToken(Mr.EXPANSION_CASE_EXP_END,this._getLocation()),this._requireCharCode(125),this._endToken([],this._getLocation()),this._attemptCharCodeUntilFn(Br),this._expansionCaseStack.pop()},t.prototype._consumeExpansionFormEnd=function(){this._beginToken(Mr.EXPANSION_FORM_END,this._getLocation()),this._requireCharCode(125),this._endToken([]),this._expansionCaseStack.pop()},t.prototype._consumeText=function(){var e=this._getLocation();this._beginToken(Mr.TEXT,e);var t=[];do{this._interpolationConfig&&this._attemptStr(this._interpolationConfig.start)?(t.push(this._interpolationConfig.start),this._inInterpolation=!0):this._interpolationConfig&&this._inInterpolation&&this._attemptStr(this._interpolationConfig.end)?(t.push(this._interpolationConfig.end),this._inInterpolation=!1):t.push(this._readChar(!0))}while(!this._isTextEnd());this._endToken([this._processCarriageReturns(t.join(""))])},t.prototype._isTextEnd=function(){if(60===this._peek||this._peek===Kt)return!0;if(this._tokenizeIcu&&!this._inInterpolation){if(qr(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(e){var t=this._index;return this._attemptUntilChar(e),this._input.substring(t,this._index)},t.prototype._restorePosition=function(e){this._peek=e[0],this._index=e[1],this._column=e[2],this._line=e[3];var t=e[4];t<this.tokens.length&&(this.tokens=this.tokens.slice(0,t))},t.prototype._isInExpansionCase=function(){return this._expansionCaseStack.length>0&&this._expansionCaseStack[this._expansionCaseStack.length-1]===Mr.EXPANSION_CASE_EXP_START},t.prototype._isInExpansionForm=function(){return this._expansionCaseStack.length>0&&this._expansionCaseStack[this._expansionCaseStack.length-1]===Mr.EXPANSION_FORM_START},t}();function Br(e){return!Tn(e)||e===Kt}function Vr(e){return Tn(e)||e===un||e===on||e===tn||e===Zt||e===an}function jr(e){return e==sn||e==Kt||!function t(e){return e>=vn&&e<=mn||e>=cn&&e<=hn||bn(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
   */(e)}function Ur(e){return e==sn||e==Kt||!Mn(e)}function qr(e,t,n){var r=!!n&&e.indexOf(n.start,t)==t;return e.charCodeAt(t)==Sn&&!r}function Hr(e){return e>=vn&&e<=xn?e-vn+cn:e}var Wr=function(e){function t(t,n,r){var i=e.call(this,n,r)||this;return i.elementName=t,i}return n(t,e),t.create=function(e,n,r){return new t(e,n,r)},t}(Pr),zr=function zr(e,t){this.rootNodes=e,this.errors=t},Kr=function(){function e(e){this.getTagDefinition=e}return e.prototype.parse=function(e,t,n,r){void 0===n&&(n=!1),void 0===r&&(r=ht);var i=function o(e,t,n,r,i){return void 0===r&&(r=!1),void 0===i&&(i=ht),new Fr(new Tr(e,t),n,r,i).tokenize()}(e,t,this.getTagDefinition,n,r),s=new Xr(i.tokens,this.getTagDefinition).build();return new zr(s.rootNodes,i.errors.concat(s.errors))},e}(),Xr=function(){function e(e,t){this.tokens=e,this.getTagDefinition=t,this._index=-1,this._rootNodes=[],this._errors=[],this._elementStack=[],this._advance()}return e.prototype.build=function(){for(;this._peek.type!==Mr.EOF;)this._peek.type===Mr.TAG_OPEN_START?this._consumeStartTag(this._advance()):this._peek.type===Mr.TAG_CLOSE?this._consumeEndTag(this._advance()):this._peek.type===Mr.CDATA_START?(this._closeVoidElement(),this._consumeCdata(this._advance())):this._peek.type===Mr.COMMENT_START?(this._closeVoidElement(),this._consumeComment(this._advance())):this._peek.type===Mr.TEXT||this._peek.type===Mr.RAW_TEXT||this._peek.type===Mr.ESCAPABLE_RAW_TEXT?(this._closeVoidElement(),this._consumeText(this._advance())):this._peek.type===Mr.EXPANSION_FORM_START?this._consumeExpansion(this._advance()):this._advance();return new zr(this._rootNodes,this._errors)},e.prototype._advance=function(){var e=this._peek;return this._index<this.tokens.length-1&&this._index++,this._peek=this.tokens[this._index],e},e.prototype._advanceIf=function(e){return this._peek.type===e?this._advance():null},e.prototype._consumeCdata=function(e){this._consumeText(this._advance()),this._advanceIf(Mr.CDATA_END)},e.prototype._consumeComment=function(e){var t=this._advanceIf(Mr.RAW_TEXT);this._advanceIf(Mr.COMMENT_END);var n=null!=t?t.parts[0].trim():null;this._addToParent(new ot(n,e.sourceSpan))},e.prototype._consumeExpansion=function(e){for(var t=this._advance(),n=this._advance(),r=[];this._peek.type===Mr.EXPANSION_CASE_VALUE;){var i=this._parseExpansionCase();if(!i)return;r.push(i)}if(this._peek.type===Mr.EXPANSION_FORM_END){var o=new br(e.sourceSpan.start,this._peek.sourceSpan.end);this._addToParent(new tt(t.parts[0],n.parts[0],r,o,t.sourceSpan)),this._advance()}else this._errors.push(Wr.create(null,this._peek.sourceSpan,"Invalid ICU message. Missing '}'."))},e.prototype._parseExpansionCase=function(){var t=this._advance();if(this._peek.type!==Mr.EXPANSION_CASE_EXP_START)return this._errors.push(Wr.create(null,this._peek.sourceSpan,"Invalid ICU message. Missing '{'.")),null;var n=this._advance(),r=this._collectExpansionExpTokens(n);if(!r)return null;var i=this._advance();r.push(new Nr(Mr.EOF,[],i.sourceSpan));var o=new e(r,this.getTagDefinition).build();if(o.errors.length>0)return this._errors=this._errors.concat(o.errors),null;var s=new br(t.sourceSpan.start,i.sourceSpan.end),a=new br(n.sourceSpan.start,i.sourceSpan.end);return new nt(t.parts[0],o.rootNodes,s,t.sourceSpan,a)},e.prototype._collectExpansionExpTokens=function(e){for(var t=[],n=[Mr.EXPANSION_CASE_EXP_START];;){if(this._peek.type!==Mr.EXPANSION_FORM_START&&this._peek.type!==Mr.EXPANSION_CASE_EXP_START||n.push(this._peek.type),this._peek.type===Mr.EXPANSION_CASE_EXP_END){if(!Qr(n,Mr.EXPANSION_CASE_EXP_START))return this._errors.push(Wr.create(null,e.sourceSpan,"Invalid ICU message. Missing '}'.")),null;if(n.pop(),0==n.length)return t}if(this._peek.type===Mr.EXPANSION_FORM_END){if(!Qr(n,Mr.EXPANSION_FORM_START))return this._errors.push(Wr.create(null,e.sourceSpan,"Invalid ICU message. Missing '}'.")),null;n.pop()}if(this._peek.type===Mr.EOF)return this._errors.push(Wr.create(null,e.sourceSpan,"Invalid ICU message. Missing '}'.")),null;t.push(this._advance())}},e.prototype._consumeText=function(e){var t=e.parts[0];if(t.length>0&&"\n"==t[0]){var n=this._getParentElement();null!=n&&0==n.children.length&&this.getTagDefinition(n.name).ignoreFirstLf&&(t=t.substring(1))}t.length>0&&this._addToParent(new et(t,e.sourceSpan))},e.prototype._closeVoidElement=function(){var e=this._getParentElement();e&&this.getTagDefinition(e.name).isVoid&&this._elementStack.pop()},e.prototype._consumeStartTag=function(e){for(var t=e.parts[0],n=e.parts[1],r=[];this._peek.type===Mr.ATTR_NAME;)r.push(this._consumeAttr(this._advance()));var i=this._getElementFullName(t,n,this._getParentElement()),o=!1;if(this._peek.type===Mr.TAG_OPEN_END_VOID){this._advance(),o=!0;var s=this.getTagDefinition(i);s.canSelfClose||null!==wt(i)||s.isVoid||this._errors.push(Wr.create(i,e.sourceSpan,'Only void and foreign elements can be self closed "'+e.parts[1]+'"'))}else this._peek.type===Mr.TAG_OPEN_END&&(this._advance(),o=!1);var a=new br(e.sourceSpan.start,this._peek.sourceSpan.start),u=new it(i,r,[],a,a,void 0);this._pushElement(u),o&&(this._popElement(i),u.endSourceSpan=a)},e.prototype._pushElement=function(e){var t=this._getParentElement();t&&this.getTagDefinition(t.name).isClosedByChild(e.name)&&this._elementStack.pop();var n=this.getTagDefinition(e.name),r=this._getParentElementSkippingContainers(),i=r.parent,o=r.container;if(i&&n.requireExtraParent(i.name)){var s=new it(n.parentToAdd,[],[],e.sourceSpan,e.startSourceSpan,e.endSourceSpan);this._insertBeforeContainer(i,o,s)}this._addToParent(e),this._elementStack.push(e)},e.prototype._consumeEndTag=function(e){var t=this._getElementFullName(e.parts[0],e.parts[1],this._getParentElement());this._getParentElement()&&(this._getParentElement().endSourceSpan=e.sourceSpan),this.getTagDefinition(t).isVoid?this._errors.push(Wr.create(t,e.sourceSpan,'Void elements do not have end tags "'+e.parts[1]+'"')):this._popElement(t)||this._errors.push(Wr.create(t,e.sourceSpan,'Unexpected closing tag "'+t+'". 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'))},e.prototype._popElement=function(e){for(var t=this._elementStack.length-1;t>=0;t--){var n=this._elementStack[t];if(n.name==e)return this._elementStack.splice(t,this._elementStack.length-t),!0;if(!this.getTagDefinition(n.name).closedByParent)return!1}return!1},e.prototype._consumeAttr=function(e){var t=Ct(e.parts[0],e.parts[1]),n=e.sourceSpan.end,r="",i=void 0;if(this._peek.type===Mr.ATTR_VALUE){var o=this._advance();r=o.parts[0],n=o.sourceSpan.end,i=o.sourceSpan}return new rt(t,r,new br(e.sourceSpan.start,n),i)},e.prototype._getParentElement=function(){return this._elementStack.length>0?this._elementStack[this._elementStack.length-1]:null},e.prototype._getParentElementSkippingContainers=function(){for(var e=null,t=this._elementStack.length-1;t>=0;t--){if(!Et(this._elementStack[t].name))return{parent:this._elementStack[t],container:e};e=this._elementStack[t]}return{parent:null,container:e}},e.prototype._addToParent=function(e){var t=this._getParentElement();null!=t?t.children.push(e):this._rootNodes.push(e)},e.prototype._insertBeforeContainer=function(e,t,n){if(t){if(e){var r=e.children.indexOf(t);e.children[r]=n}else this._rootNodes.push(n);n.children.push(t),this._elementStack.splice(this._elementStack.indexOf(t),0,n)}else this._addToParent(n),this._elementStack.push(n)},e.prototype._getElementFullName=function(e,t,n){return null==e&&null==(e=this.getTagDefinition(t).implicitNamespacePrefix)&&null!=n&&(e=wt(n.name)),Ct(e,t)},e}();function Qr(e,t){return e.length>0&&e[e.length-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 Gr(e){return e.id||function n(e){var t,n,r=$(e),i=function s(e,t){for(var n=Array(e.length+3>>>2),r=0;r<n.length;r++)n[r]=li(e,4*r,t);return n}(r,Jr.Big),a=8*r.length,u=new Array(80),p=o([1732584193,4023233417,2562383102,271733878,3285377520],5),l=p[0],c=p[1],h=p[2],f=p[3],d=p[4];i[a>>5]|=128<<24-a%32,i[15+(a+64>>9<<4)]=a;for(var v=0;v<i.length;v+=16){for(var m=o([l,c,h,f,d],5),y=m[0],g=m[1],_=m[2],E=m[3],x=m[4],S=0;S<80;S++){u[S]=S<16?i[v+S]:ui(u[S-3]^u[S-8]^u[S-14]^u[S-16],1);var w=o(ti(S,c,h,f),2),C=w[0],T=w[1],b=[ui(l,5),C,d,T,u[S]].reduce(oi);d=(t=o([f,h,ui(c,30),l,b],5))[0],f=t[1],h=t[2],c=t[3],l=t[4]}l=(n=o([oi(l,y),oi(c,g),oi(h,_),oi(f,E),oi(d,x)],5))[0],c=n[1],h=n[2],f=n[3],d=n[4]}return function M(e){for(var t="",n=0;n<e.length;n++){var r=pi(e,n);t+=(r>>>4).toString(16)+(15&r).toString(16)}return t.toLowerCase()}(ci([l,c,h,f,d]))}(function t(e){return e.map(function(e){return e.visit(Zr,null)})}(e.nodes).join("")+"["+e.meaning+"]")}function Yr(e){if(e.id)return e.id;var t=new ei;return function n(e,t){var n,r=o(ni(e),2),i=r[0],s=r[1];if(t){var a=o(ni(t),2),u=a[0],p=a[1];i=(n=o(function c(e,t){var n=o(e,2),r=n[0],i=n[1],s=o(t,2),a=s[0],u=o(si(i,s[1]),2),p=u[0],l=u[1];return[oi(oi(r,a),p),l]}(function l(e,t){var n=o(e,2),r=n[0],i=n[1];return[r<<t|i>>>32-t,i<<t|r>>>32-t]}([i,s],1),[u,p]),2))[0],s=n[1]}return function h(e){for(var t="",n="1",r=e.length-1;r>=0;r--)t=hi(t,fi(pi(e,r),n)),n=fi(256,n);return t.split("").reverse().join("")}(ci([2147483647&i,s]))}(e.nodes.map(function(e){return e.visit(t,null)}).join(""),e.meaning)}var Jr,$r=function(){function e(){}return e.prototype.visitText=function(e,t){return e.value},e.prototype.visitContainer=function(e,t){var n=this;return"["+e.children.map(function(e){return e.visit(n)}).join(", ")+"]"},e.prototype.visitIcu=function(e,t){var n=this,r=Object.keys(e.cases).map(function(t){return t+" {"+e.cases[t].visit(n)+"}"});return"{"+e.expression+", "+e.type+", "+r.join(", ")+"}"},e.prototype.visitTagPlaceholder=function(e,t){var n=this;return e.isVoid?'<ph tag name="'+e.startName+'"/>':'<ph tag name="'+e.startName+'">'+e.children.map(function(e){return e.visit(n)}).join(", ")+'</ph name="'+e.closeName+'">'},e.prototype.visitPlaceholder=function(e,t){return e.value?'<ph name="'+e.name+'">'+e.value+"</ph>":'<ph name="'+e.name+'"/>'},e.prototype.visitIcuPlaceholder=function(e,t){return'<ph icu name="'+e.name+'">'+e.value.visit(this)+"</ph>"},e}(),Zr=new $r,ei=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return n(t,e),t.prototype.visitIcu=function(e,t){var n=this,r=Object.keys(e.cases).map(function(t){return t+" {"+e.cases[t].visit(n)+"}"});return"{"+e.type+", "+r.join(", ")+"}"},t}($r);function ti(e,t,n,r){return e<20?[t&n|~t&r,1518500249]:e<40?[t^n^r,1859775393]:e<60?[t&n|t&r|n&r,2400959708]:[t^n^r,3395469782]}function ni(e){var t=$(e),n=o([ri(t,0),ri(t,102072)],2),r=n[0],i=n[1];return 0!=r||0!=i&&1!=i||(r^=319790063,i^=-1801410264),[r,i]}function ri(e,t){var n,r,i=o([2654435769,2654435769],2),s=i[0],a=i[1],u=e.length;for(n=0;n+12<=u;n+=12)s=(r=o(ii([s=oi(s,li(e,n,Jr.Little)),a=oi(a,li(e,n+4,Jr.Little)),t=oi(t,li(e,n+8,Jr.Little))]),3))[0],a=r[1],t=r[2];return ii([s=oi(s,li(e,n,Jr.Little)),a=oi(a,li(e,n+4,Jr.Little)),t=oi(t=oi(t,u),li(e,n+8,Jr.Little)<<8)])[2]}function ii(e){var t=o(e,3),n=t[0],r=t[1],i=t[2];return n=ai(n=ai(n,r),i),n^=i>>>13,r=ai(r=ai(r,i),n),r^=n<<8,i=ai(i=ai(i,n),r),i^=r>>>13,n=ai(n=ai(n,r),i),n^=i>>>12,r=ai(r=ai(r,i),n),r^=n<<16,i=ai(i=ai(i,n),r),i^=r>>>5,n=ai(n=ai(n,r),i),n^=i>>>3,r=ai(r=ai(r,i),n),r^=n<<10,i=ai(i=ai(i,n),r),[n,r,i^=r>>>15]}function oi(e,t){return si(e,t)[1]}function si(e,t){var n=(65535&e)+(65535&t),r=(e>>>16)+(t>>>16)+(n>>>16);return[r>>>16,r<<16|65535&n]}function ai(e,t){var n=(65535&e)-(65535&t);return(e>>16)-(t>>16)+(n>>16)<<16|65535&n}function ui(e,t){return e<<t|e>>>32-t}function pi(e,t){return t>=e.length?0:255&e.charCodeAt(t)}function li(e,t,n){var r=0;if(n===Jr.Big)for(var i=0;i<4;i++)r+=pi(e,t+i)<<24-8*i;else for(i=0;i<4;i++)r+=pi(e,t+i)<<8*i;return r}function ci(e){return e.reduce(function(e,t){return e+function n(e){for(var t="",n=0;n<4;n++)t+=String.fromCharCode(e>>>8*(3-n)&255);return t}(t)},"")}function hi(e,t){for(var n="",r=Math.max(e.length,t.length),i=0,o=0;i<r||o;i++){var s=o+ +(e[i]||0)+ +(t[i]||0);s>=10?(o=1,n+=s-10):(o=0,n+=s)}return n}function fi(e,t){for(var n="",r=t;0!==e;e>>>=1)1&e&&(n=hi(n,r)),r=hi(r,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
   */!function(e){e[e.Little=0]="Little",e[e.Big=1]="Big"}(Jr||(Jr={}));var di=function di(e,t,n,r,i,o){this.nodes=e,this.placeholders=t,this.placeholderToMessage=n,this.meaning=r,this.description=i,this.id=o,this.sources=e.length?[{filePath:e[0].sourceSpan.start.file.url,startLine:e[0].sourceSpan.start.line+1,startCol:e[0].sourceSpan.start.col+1,endLine:e[e.length-1].sourceSpan.end.line+1,endCol:e[0].sourceSpan.start.col+1}]:[]},vi=function(){function e(e,t){this.value=e,this.sourceSpan=t}return e.prototype.visit=function(e,t){return e.visitText(this,t)},e}(),mi=function(){function e(e,t){this.children=e,this.sourceSpan=t}return e.prototype.visit=function(e,t){return e.visitContainer(this,t)},e}(),yi=function(){function e(e,t,n,r){this.expression=e,this.type=t,this.cases=n,this.sourceSpan=r}return e.prototype.visit=function(e,t){return e.visitIcu(this,t)},e}(),gi=function(){function e(e,t,n,r,i,o,s){this.tag=e,this.attrs=t,this.startName=n,this.closeName=r,this.children=i,this.isVoid=o,this.sourceSpan=s}return e.prototype.visit=function(e,t){return e.visitTagPlaceholder(this,t)},e}(),_i=function(){function e(e,t,n){this.value=e,this.name=t,this.sourceSpan=n}return e.prototype.visit=function(e,t){return e.visitPlaceholder(this,t)},e}(),Ei=function(){function e(e,t,n){this.value=e,this.name=t,this.sourceSpan=n}return e.prototype.visit=function(e,t){return e.visitIcuPlaceholder(this,t)},e}(),xi=function(){function e(){}return e.prototype.visitText=function(e,t){return new vi(e.value,e.sourceSpan)},e.prototype.visitContainer=function(e,t){var n=this,r=e.children.map(function(e){return e.visit(n,t)});return new mi(r,e.sourceSpan)},e.prototype.visitIcu=function(e,t){var n=this,r={};Object.keys(e.cases).forEach(function(i){return r[i]=e.cases[i].visit(n,t)});var i=new yi(e.expression,e.type,r,e.sourceSpan);return i.expressionPlaceholder=e.expressionPlaceholder,i},e.prototype.visitTagPlaceholder=function(e,t){var n=this,r=e.children.map(function(e){return e.visit(n,t)});return new gi(e.tag,e.attrs,e.startName,e.closeName,r,e.isVoid,e.sourceSpan)},e.prototype.visitPlaceholder=function(e,t){return new _i(e.value,e.name,e.sourceSpan)},e.prototype.visitIcuPlaceholder=function(e,t){return new Ei(e.value,e.name,e.sourceSpan)},e}(),Si=function(){function e(){}return e.prototype.visitText=function(e,t){},e.prototype.visitContainer=function(e,t){var n=this;e.children.forEach(function(e){return e.visit(n)})},e.prototype.visitIcu=function(e,t){var n=this;Object.keys(e.cases).forEach(function(t){e.cases[t].visit(n)})},e.prototype.visitTagPlaceholder=function(e,t){var n=this;e.children.forEach(function(e){return e.visit(n)})},e.prototype.visitPlaceholder=function(e,t){},e.prototype.visitIcuPlaceholder=function(e,t){},e}(),wi=function(){function t(t){var n=void 0===t?{}:t,r=n.closedByChildren,i=n.requiredParents,o=n.implicitNamespacePrefix,s=n.contentType,a=void 0===s?e.TagContentType.PARSABLE_DATA:s,u=n.closedByParent,p=void 0!==u&&u,l=n.isVoid,c=void 0!==l&&l,h=n.ignoreFirstLf,f=void 0!==h&&h,d=this;this.closedByChildren={},this.closedByParent=!1,this.canSelfClose=!1,r&&r.length>0&&r.forEach(function(e){return d.closedByChildren[e]=!0}),this.isVoid=c,this.closedByParent=p||c,i&&i.length>0&&(this.requiredParents={},this.parentToAdd=i[0],i.forEach(function(e){return d.requiredParents[e]=!0})),this.implicitNamespacePrefix=o||null,this.contentType=a,this.ignoreFirstLf=f}return t.prototype.requireExtraParent=function(e){if(!this.requiredParents)return!1;if(!e)return!0;var t=e.toLowerCase();return!("template"===t||"ng-template"===e)&&1!=this.requiredParents[t]},t.prototype.isClosedByChild=function(e){return this.isVoid||e.toLowerCase()in this.closedByChildren},t}(),Ci={base:new wi({isVoid:!0}),meta:new wi({isVoid:!0}),area:new wi({isVoid:!0}),embed:new wi({isVoid:!0}),link:new wi({isVoid:!0}),img:new wi({isVoid:!0}),input:new wi({isVoid:!0}),param:new wi({isVoid:!0}),hr:new wi({isVoid:!0}),br:new wi({isVoid:!0}),source:new wi({isVoid:!0}),track:new wi({isVoid:!0}),wbr:new wi({isVoid:!0}),p:new wi({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 wi({closedByChildren:["tbody","tfoot"]}),tbody:new wi({closedByChildren:["tbody","tfoot"],closedByParent:!0}),tfoot:new wi({closedByChildren:["tbody"],closedByParent:!0}),tr:new wi({closedByChildren:["tr"],requiredParents:["tbody","tfoot","thead"],closedByParent:!0}),td:new wi({closedByChildren:["td","th"],closedByParent:!0}),th:new wi({closedByChildren:["td","th"],closedByParent:!0}),col:new wi({requiredParents:["colgroup"],isVoid:!0}),svg:new wi({implicitNamespacePrefix:"svg"}),math:new wi({implicitNamespacePrefix:"math"}),li:new wi({closedByChildren:["li"],closedByParent:!0}),dt:new wi({closedByChildren:["dt","dd"]}),dd:new wi({closedByChildren:["dt","dd"],closedByParent:!0}),rb:new wi({closedByChildren:["rb","rt","rtc","rp"],closedByParent:!0}),rt:new wi({closedByChildren:["rb","rt","rtc","rp"],closedByParent:!0}),rtc:new wi({closedByChildren:["rb","rtc","rp"],closedByParent:!0}),rp:new wi({closedByChildren:["rb","rt","rtc","rp"],closedByParent:!0}),optgroup:new wi({closedByChildren:["optgroup"],closedByParent:!0}),option:new wi({closedByChildren:["option","optgroup"],closedByParent:!0}),pre:new wi({ignoreFirstLf:!0}),listing:new wi({ignoreFirstLf:!0}),style:new wi({contentType:e.TagContentType.RAW_TEXT}),script:new wi({contentType:e.TagContentType.RAW_TEXT}),title:new wi({contentType:e.TagContentType.ESCAPABLE_RAW_TEXT}),textarea:new wi({contentType:e.TagContentType.ESCAPABLE_RAW_TEXT,ignoreFirstLf:!0})},Ti=new wi;function bi(e){return Ci[e.toLowerCase()]||Ti}
  /**
   * @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 Mi,Pi={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"},Ai=function(){function e(){this._placeHolderNameCounts={},this._signatureToName={}}return e.prototype.getStartTagPlaceholderName=function(e,t,n){var r=this._hashTag(e,t,n);if(this._signatureToName[r])return this._signatureToName[r];var i=e.toUpperCase(),o=Pi[i]||"TAG_"+i,s=this._generateUniqueName(n?o:"START_"+o);return this._signatureToName[r]=s,s},e.prototype.getCloseTagPlaceholderName=function(e){var t=this._hashClosingTag(e);if(this._signatureToName[t])return this._signatureToName[t];var n=e.toUpperCase(),r=this._generateUniqueName("CLOSE_"+(Pi[n]||"TAG_"+n));return this._signatureToName[t]=r,r},e.prototype.getPlaceholderName=function(e,t){var n=e.toUpperCase(),r="PH: "+n+"="+t;if(this._signatureToName[r])return this._signatureToName[r];var i=this._generateUniqueName(n);return this._signatureToName[r]=i,i},e.prototype.getUniquePlaceholder=function(e){return this._generateUniqueName(e.toUpperCase())},e.prototype._hashTag=function(e,t,n){return"<"+e+Object.keys(t).sort().map(function(e){return" "+e+"="+t[e]}).join("")+(n?"/>":"></"+e+">")},e.prototype._hashClosingTag=function(e){return this._hashTag("/"+e,{},!1)},e.prototype._generateUniqueName=function(e){if(!this._placeHolderNameCounts.hasOwnProperty(e))return this._placeHolderNameCounts[e]=1,e;var t=this._placeHolderNameCounts[e];return this._placeHolderNameCounts[e]=t+1,e+"_"+t},e}(),Ni=new xr(new Nn),ki=function(){function e(e,t){this._expressionParser=e,this._interpolationConfig=t}return e.prototype.toI18nMessage=function(e,t,n,r){this._isIcu=1==e.length&&e[0]instanceof tt,this._icuDepth=0,this._placeholderRegistry=new Ai,this._placeholderToContent={},this._placeholderToMessage={};var i=st(this,e,{});return new di(i,this._placeholderToContent,this._placeholderToMessage,t,n,r)},e.prototype.visitElement=function(e,t){var n=st(this,e.children),r={};e.attrs.forEach(function(e){r[e.name]=e.value});var i=bi(e.name).isVoid,o=this._placeholderRegistry.getStartTagPlaceholderName(e.name,r,i);this._placeholderToContent[o]=e.sourceSpan.toString();var s="";return i||(s=this._placeholderRegistry.getCloseTagPlaceholderName(e.name),this._placeholderToContent[s]="</"+e.name+">"),new gi(e.name,r,o,s,n,i,e.sourceSpan)},e.prototype.visitAttribute=function(e,t){return this._visitTextWithInterpolation(e.value,e.sourceSpan)},e.prototype.visitText=function(e,t){return this._visitTextWithInterpolation(e.value,e.sourceSpan)},e.prototype.visitComment=function(e,t){return null},e.prototype.visitExpansion=function(t,n){var r=this;this._icuDepth++;var i={},o=new yi(t.switchValue,t.type,i,t.sourceSpan);if(t.cases.forEach(function(e){i[e.value]=new mi(e.expression.map(function(e){return e.visit(r,{})}),e.expSourceSpan)}),this._icuDepth--,this._isIcu||this._icuDepth>0){var s=this._placeholderRegistry.getUniquePlaceholder("VAR_"+t.type);return o.expressionPlaceholder=s,this._placeholderToContent[s]=t.switchValue,o}var a=this._placeholderRegistry.getPlaceholderName("ICU",t.sourceSpan.toString()),u=new e(this._expressionParser,this._interpolationConfig);return this._placeholderToMessage[a]=u.toI18nMessage([t],"","",""),new Ei(o,a,t.sourceSpan)},e.prototype.visitExpansionCase=function(e,t){throw new Error("Unreachable code")},e.prototype._visitTextWithInterpolation=function(e,t){var n=this._expressionParser.splitInterpolation(e,t.start.toString(),this._interpolationConfig);if(!n)return new vi(e,t);for(var r=[],i=new mi(r,t),o=this._interpolationConfig,s=o.start,a=o.end,u=0;u<n.strings.length-1;u++){var p=n.expressions[u],l=p.split(Ii)[2]||"INTERPOLATION",c=this._placeholderRegistry.getPlaceholderName(l,p);n.strings[u].length&&r.push(new vi(n.strings[u],t)),r.push(new _i(p,c,t)),this._placeholderToContent[c]=s+p+a}var h=n.strings.length-1;return n.strings[h].length&&r.push(new vi(n.strings[h],t)),i},e}(),Ii=/\/\/[\s\S]*i18n[\s\S]*\([\s\S]*ph[\s\S]*=[\s\S]*("|')([\s\S]*?)\1[\s\S]*\)/g,Oi=function(e){function t(t,n){return e.call(this,t,n)||this}return n(t,e),t}(Pr),Ri=/^i18n:?/,Di="|",Li="@@",Fi=!1,Bi=function Bi(e,t){this.messages=e,this.errors=t};!function(e){e[e.Extract=0]="Extract",e[e.Merge=1]="Merge"}(Mi||(Mi={}));var Vi=function(){function e(e,t){this._implicitTags=e,this._implicitAttrs=t}return e.prototype.extract=function(e,t){var n=this;return this._init(Mi.Extract,t),e.forEach(function(e){return e.visit(n,null)}),this._inI18nBlock&&this._reportError(e[e.length-1],"Unclosed block"),new Bi(this._messages,this._errors)},e.prototype.merge=function(e,t,n){this._init(Mi.Merge,n),this._translations=t;var r=new it("wrapper",[],e,void 0,void 0,void 0).visit(this,null);return this._inI18nBlock&&this._reportError(e[e.length-1],"Unclosed block"),new zr(r.children,this._errors)},e.prototype.visitExpansionCase=function(e,t){var n=st(this,e.expression,t);if(this._mode===Mi.Merge)return new nt(e.value,n,e.sourceSpan,e.valueSourceSpan,e.expSourceSpan)},e.prototype.visitExpansion=function(e,t){this._mayBeAddBlockChildren(e);var n=this._inIcu;this._inIcu||(this._isInTranslatableSection&&this._addMessage([e]),this._inIcu=!0);var r=st(this,e.cases,t);return this._mode===Mi.Merge&&(e=new tt(e.switchValue,e.type,r,e.sourceSpan,e.switchValueSourceSpan)),this._inIcu=n,e},e.prototype.visitComment=function(e,t){var n=function r(e){return!!(e instanceof ot&&e.value&&e.value.startsWith("i18n"))}(e);if(n&&this._isInTranslatableSection)this._reportError(e,"Could not start a block inside a translatable section");else{var i=function o(e){return!!(e instanceof ot&&e.value&&"/i18n"===e.value)}(e);if(!i||this._inI18nBlock){if(!this._inI18nNode&&!this._inIcu)if(this._inI18nBlock){if(i){if(this._depth==this._blockStartDepth){this._closeTranslatableSection(e,this._blockChildren),this._inI18nBlock=!1;var s=this._addMessage(this._blockChildren,this._blockMeaningAndDesc);return st(this,this._translateMessage(e,s))}return void this._reportError(e,"I18N blocks should not cross element boundaries")}}else n&&(!Fi&&console&&console.warn&&(Fi=!0,console.warn("I18n comments are deprecated, use an <ng-container> element instead ("+e.sourceSpan.start+(e.sourceSpan.details?", "+e.sourceSpan.details:"")+")")),this._inI18nBlock=!0,this._blockStartDepth=this._depth,this._blockChildren=[],this._blockMeaningAndDesc=e.value.replace(Ri,"").trim(),this._openTranslatableSection(e))}else this._reportError(e,"Trying to close an unopened block")}},e.prototype.visitText=function(e,t){return this._isInTranslatableSection&&this._mayBeAddBlockChildren(e),e},e.prototype.visitElement=function(e,t){var n=this;this._mayBeAddBlockChildren(e),this._depth++;var r=this._inI18nNode,i=this._inImplicitNode,o=[],s=void 0,a=function u(e){return e.attrs.find(function(e){return"i18n"===e.name})||null}(e),p=a?a.value:"",l=this._implicitTags.some(function(t){return e.name===t})&&!this._inIcu&&!this._isInTranslatableSection,c=!i&&l;if(this._inImplicitNode=i||l,this._isInTranslatableSection||this._inIcu)(a||c)&&this._reportError(e,"Could not mark an element as translatable inside a translatable section"),this._mode==Mi.Extract&&st(this,e.children);else{if(a||c){this._inI18nNode=!0;var h=this._addMessage(e.children,p);s=this._translateMessage(e,h)}if(this._mode==Mi.Extract){var f=a||c;f&&this._openTranslatableSection(e),st(this,e.children),f&&this._closeTranslatableSection(e,e.children)}}if(this._mode===Mi.Merge&&(s||e.children).forEach(function(e){var r=e.visit(n,t);r&&!n._isInTranslatableSection&&(o=o.concat(r))}),this._visitAttributesOf(e),this._depth--,this._inI18nNode=r,this._inImplicitNode=i,this._mode===Mi.Merge){var d=this._translateAttributes(e);return new it(e.name,d,o,e.sourceSpan,e.startSourceSpan,e.endSourceSpan)}return null},e.prototype.visitAttribute=function(e,t){throw new Error("unreachable code")},e.prototype._init=function(e,t){this._mode=e,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=function n(e){var t=new ki(Ni,e);return function(e,n,r,i){return t.toI18nMessage(e,n,r,i)}}(t)},e.prototype._visitAttributesOf=function(e){var t=this,n={},r=this._implicitAttrs[e.name]||[];e.attrs.filter(function(e){return e.name.startsWith("i18n-")}).forEach(function(e){return n[e.name.slice("i18n-".length)]=e.value}),e.attrs.forEach(function(e){e.name in n?t._addMessage([e],n[e.name]):r.some(function(t){return e.name===t})&&t._addMessage([e])})},e.prototype._addMessage=function(e,t){if(0==e.length||1==e.length&&e[0]instanceof rt&&!e[0].value)return null;var n=ji(t),r=this._createI18nMessage(e,n.meaning,n.description,n.id);return this._messages.push(r),r},e.prototype._translateMessage=function(e,t){if(t&&this._mode===Mi.Merge){var n=this._translations.get(t);if(n)return n;this._reportError(e,'Translation unavailable for message id="'+this._translations.digest(t)+'"')}return[]},e.prototype._translateAttributes=function(e){var t=this,n=e.attrs,r={};n.forEach(function(e){e.name.startsWith("i18n-")&&(r[e.name.slice("i18n-".length)]=ji(e.value))});var i=[];return n.forEach(function(n){if("i18n"!==n.name&&!n.name.startsWith("i18n-"))if(n.value&&""!=n.value&&r.hasOwnProperty(n.name)){var o=r[n.name],s=o.id,a=t._createI18nMessage([n],o.meaning,o.description,s),u=t._translations.get(a);u?0==u.length?i.push(new rt(n.name,"",n.sourceSpan)):u[0]instanceof et?i.push(new rt(n.name,u[0].value,n.sourceSpan)):t._reportError(e,'Unexpected translation for attribute "'+n.name+'" (id="'+(s||t._translations.digest(a))+'")'):t._reportError(e,'Translation unavailable for attribute "'+n.name+'" (id="'+(s||t._translations.digest(a))+'")')}else i.push(n)}),i},e.prototype._mayBeAddBlockChildren=function(e){this._inI18nBlock&&!this._inIcu&&this._depth==this._blockStartDepth&&this._blockChildren.push(e)},e.prototype._openTranslatableSection=function(e){this._isInTranslatableSection?this._reportError(e,"Unexpected section start"):this._msgCountAtSectionStart=this._messages.length},Object.defineProperty(e.prototype,"_isInTranslatableSection",{get:function(){return void 0!==this._msgCountAtSectionStart},enumerable:!0,configurable:!0}),e.prototype._closeTranslatableSection=function(e,t){if(this._isInTranslatableSection){var n=this._msgCountAtSectionStart;if(1==t.reduce(function(e,t){return e+(t instanceof ot?0:1)},0))for(var r=this._messages.length-1;r>=n;r--){var i=this._messages[r].nodes;if(!(1==i.length&&i[0]instanceof vi)){this._messages.splice(r,1);break}}this._msgCountAtSectionStart=void 0}else this._reportError(e,"Unexpected section end")},e.prototype._reportError=function(e,t){this._errors.push(new Oi(e.sourceSpan,t))},e}();function ji(e){if(!e)return{meaning:"",description:"",id:""};var t=e.indexOf(Li),n=e.indexOf(Di),r=o(t>-1?[e.slice(0,t),e.slice(t+2)]:[e,""],2),i=r[0],s=r[1],a=o(n>-1?[i.slice(0,n),i.slice(n+1)]:["",i],2);return{meaning:a[0],description:a[1],id: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
   */var Ui=new(function(){function t(){this.closedByParent=!1,this.contentType=e.TagContentType.PARSABLE_DATA,this.isVoid=!1,this.ignoreFirstLf=!1,this.canSelfClose=!0}return t.prototype.requireExtraParent=function(e){return!1},t.prototype.isClosedByChild=function(e){return!1},t}());function qi(e){return Ui}
  /**
   * @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=function(e){function t(){return e.call(this,qi)||this}return n(t,e),t.prototype.parse=function(t,n,r){return void 0===r&&(r=!1),e.prototype.parse.call(this,t,n,r)},t}(Kr),Wi=function(){function e(){}return e.prototype.createNameMapper=function(e){return null},e}(),zi=function(e){function t(t,n){var r=e.call(this)||this;return r.mapName=n,r.internalToPublic={},r.publicToNextId={},r.publicToInternal={},t.nodes.forEach(function(e){return e.visit(r)}),r}return n(t,e),t.prototype.toPublicName=function(e){return this.internalToPublic.hasOwnProperty(e)?this.internalToPublic[e]:null},t.prototype.toInternalName=function(e){return this.publicToInternal.hasOwnProperty(e)?this.publicToInternal[e]:null},t.prototype.visitText=function(e,t){return null},t.prototype.visitTagPlaceholder=function(t,n){this.visitPlaceholderName(t.startName),e.prototype.visitTagPlaceholder.call(this,t,n),this.visitPlaceholderName(t.closeName)},t.prototype.visitPlaceholder=function(e,t){this.visitPlaceholderName(e.name)},t.prototype.visitIcuPlaceholder=function(e,t){this.visitPlaceholderName(e.name)},t.prototype.visitPlaceholderName=function(e){if(e&&!this.internalToPublic.hasOwnProperty(e)){var t=this.mapName(e);if(this.publicToInternal.hasOwnProperty(t)){var n=this.publicToNextId[t];this.publicToNextId[t]=n+1,t=t+"_"+n}else this.publicToNextId[t]=1;this.internalToPublic[e]=t,this.publicToInternal[t]=e}},t}(Si),Ki=new(function(){function e(){}return e.prototype.visitTag=function(e){var t=this,n=this._serializeAttributes(e.attrs);if(0==e.children.length)return"<"+e.name+n+"/>";var r=e.children.map(function(e){return e.visit(t)});return"<"+e.name+n+">"+r.join("")+"</"+e.name+">"},e.prototype.visitText=function(e){return e.value},e.prototype.visitDeclaration=function(e){return"<?xml"+this._serializeAttributes(e.attrs)+" ?>"},e.prototype._serializeAttributes=function(e){var t=Object.keys(e).map(function(t){return t+'="'+e[t]+'"'}).join(" ");return t.length>0?" "+t:""},e.prototype.visitDoctype=function(e){return"<!DOCTYPE "+e.rootTag+" [\n"+e.dtd+"\n]>"},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 Xi(e){return e.map(function(e){return e.visit(Ki)}).join("")}var Qi=function(){function e(e){var t=this;this.attrs={},Object.keys(e).forEach(function(n){t.attrs[n]=eo(e[n])})}return e.prototype.visit=function(e){return e.visitDeclaration(this)},e}(),Gi=function(){function e(e,t){this.rootTag=e,this.dtd=t}return e.prototype.visit=function(e){return e.visitDoctype(this)},e}(),Yi=function(){function e(e,t,n){void 0===t&&(t={}),void 0===n&&(n=[]);var r=this;this.name=e,this.children=n,this.attrs={},Object.keys(t).forEach(function(e){r.attrs[e]=eo(t[e])})}return e.prototype.visit=function(e){return e.visitTag(this)},e}(),Ji=function(){function e(e){this.value=eo(e)}return e.prototype.visit=function(e){return e.visitText(this)},e}(),$i=function(e){function t(t){return void 0===t&&(t=0),e.call(this,"\n"+new Array(t+1).join(" "))||this}return n(t,e),t}(Ji),Zi=[[/&/g,"&amp;"],[/"/g,"&quot;"],[/'/g,"&apos;"],[/</g,"&lt;"],[/>/g,"&gt;"]];function eo(e){return Zi.reduce(function(e,t){return e.replace(t[0],t[1])},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
   */var to=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return n(t,e),t.prototype.write=function(e,t){var n=new no,r=[];e.forEach(function(e){var t=[];e.sources.forEach(function(e){var n=new Yi("context-group",{purpose:"location"});n.children.push(new $i(10),new Yi("context",{"context-type":"sourcefile"},[new Ji(e.filePath)]),new $i(10),new Yi("context",{"context-type":"linenumber"},[new Ji(""+e.startLine)]),new $i(8)),t.push(new $i(8),n)});var i,o=new Yi("trans-unit",{id:e.id,datatype:"html"});(i=o.children).push.apply(i,s([new $i(8),new Yi("source",{},n.serialize(e.nodes))],t)),e.description&&o.children.push(new $i(8),new Yi("note",{priority:"1",from:"description"},[new Ji(e.description)])),e.meaning&&o.children.push(new $i(8),new Yi("note",{priority:"1",from:"meaning"},[new Ji(e.meaning)])),o.children.push(new $i(6)),r.push(new $i(6),o)});var i=new Yi("body",{},s(r,[new $i(4)])),o=new Yi("file",{"source-language":t||"en",datatype:"plaintext",original:"ng2.template"},[new $i(4),i,new $i(2)]),a=new Yi("xliff",{version:"1.2",xmlns:"urn:oasis:names:tc:xliff:document:1.2"},[new $i(2),o,new $i]);return Xi([new Qi({version:"1.0",encoding:"UTF-8"}),new $i,a,new $i])},t.prototype.load=function(e,t){var n=(new ro).parse(e,t),r=n.locale,i=n.msgIdToHtml,o=n.errors,a={},u=new io;if(Object.keys(i).forEach(function(e){var n=u.convert(i[e],t),r=n.i18nNodes;o.push.apply(o,s(n.errors)),a[e]=r}),o.length)throw new Error("xliff parse errors:\n"+o.join("\n"));return{locale:r,i18nNodesByMsgId:a}},t.prototype.digest=function(e){return Gr(e)},t}(Wi),no=function(){function e(){}return e.prototype.visitText=function(e,t){return[new Ji(e.value)]},e.prototype.visitContainer=function(e,t){var n=this,r=[];return e.children.forEach(function(e){return r.push.apply(r,s(e.visit(n)))}),r},e.prototype.visitIcu=function(e,t){var n=this,r=[new Ji("{"+e.expressionPlaceholder+", "+e.type+", ")];return Object.keys(e.cases).forEach(function(t){r.push.apply(r,s([new Ji(t+" {")],e.cases[t].visit(n),[new Ji("} ")]))}),r.push(new Ji("}")),r},e.prototype.visitTagPlaceholder=function(e,t){var n=function r(e){switch(e.toLowerCase()){case"br":return"lb";case"img":return"image";default:return"x-"+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
   */(e.tag);if(e.isVoid)return[new Yi("x",{id:e.startName,ctype:n,"equiv-text":"<"+e.tag+"/>"})];var i=new Yi("x",{id:e.startName,ctype:n,"equiv-text":"<"+e.tag+">"}),o=new Yi("x",{id:e.closeName,ctype:n,"equiv-text":"</"+e.tag+">"});return s([i],this.serialize(e.children),[o])},e.prototype.visitPlaceholder=function(e,t){return[new Yi("x",{id:e.name,"equiv-text":"{{"+e.value+"}}"})]},e.prototype.visitIcuPlaceholder=function(e,t){var n="{"+e.value.expression+", "+e.value.type+", "+Object.keys(e.value.cases).map(function(e){return e+" {...}"}).join(" ")+"}";return[new Yi("x",{id:e.name,"equiv-text":n})]},e.prototype.serialize=function(e){var t=this;return[].concat.apply([],s(e.map(function(e){return e.visit(t)})))},e}(),ro=function(){function e(){this._locale=null}return e.prototype.parse=function(e,t){this._unitMlString=null,this._msgIdToHtml={};var n=(new Hi).parse(e,t,!1);return this._errors=n.errors,st(this,n.rootNodes,null),{msgIdToHtml:this._msgIdToHtml,errors:this._errors,locale:this._locale}},e.prototype.visitElement=function(e,t){switch(e.name){case"trans-unit":this._unitMlString=null;var n=e.attrs.find(function(e){return"id"===e.name});if(n){var r=n.value;this._msgIdToHtml.hasOwnProperty(r)?this._addError(e,"Duplicated translations for msg "+r):(st(this,e.children,null),"string"==typeof this._unitMlString?this._msgIdToHtml[r]=this._unitMlString:this._addError(e,"Message "+r+" misses a translation"))}else this._addError(e,'<trans-unit> misses the "id" attribute');break;case"source":case"seg-source":break;case"target":var i=e.startSourceSpan.start.file.content.slice(e.startSourceSpan.end.offset,e.endSourceSpan.start.offset);this._unitMlString=i;break;case"file":var o=e.attrs.find(function(e){return"target-language"===e.name});o&&(this._locale=o.value),st(this,e.children,null);break;default:st(this,e.children,null)}},e.prototype.visitAttribute=function(e,t){},e.prototype.visitText=function(e,t){},e.prototype.visitComment=function(e,t){},e.prototype.visitExpansion=function(e,t){},e.prototype.visitExpansionCase=function(e,t){},e.prototype._addError=function(e,t){this._errors.push(new Oi(e.sourceSpan,t))},e}(),io=function(){function e(){}return e.prototype.convert=function(e,t){var n=(new Hi).parse(e,t,!0);return this._errors=n.errors,{i18nNodes:this._errors.length>0||0==n.rootNodes.length?[]:[].concat.apply([],s(st(this,n.rootNodes))),errors:this._errors}},e.prototype.visitText=function(e,t){return new vi(e.value,e.sourceSpan)},e.prototype.visitElement=function(e,t){if("x"===e.name){var n=e.attrs.find(function(e){return"id"===e.name});return n?new _i("",n.value,e.sourceSpan):(this._addError(e,'<x> misses the "id" attribute'),null)}return"mrk"===e.name?[].concat.apply([],s(st(this,e.children))):(this._addError(e,"Unexpected tag"),null)},e.prototype.visitExpansion=function(e,t){var n={};return st(this,e.cases).forEach(function(t){n[t.value]=new mi(t.nodes,e.sourceSpan)}),new yi(e.switchValue,e.type,n,e.sourceSpan)},e.prototype.visitExpansionCase=function(e,t){return{value:e.value,nodes:st(this,e.expression)}},e.prototype.visitComment=function(e,t){},e.prototype.visitAttribute=function(e,t){},e.prototype._addError=function(e,t){this._errors.push(new Oi(e.sourceSpan,t))},e}(),oo=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return n(t,e),t.prototype.write=function(e,t){var n=new so,r=[];e.forEach(function(e){var t=new Yi("unit",{id:e.id}),i=new Yi("notes");(e.description||e.meaning)&&(e.description&&i.children.push(new $i(8),new Yi("note",{category:"description"},[new Ji(e.description)])),e.meaning&&i.children.push(new $i(8),new Yi("note",{category:"meaning"},[new Ji(e.meaning)]))),e.sources.forEach(function(e){i.children.push(new $i(8),new Yi("note",{category:"location"},[new Ji(e.filePath+":"+e.startLine+(e.endLine!==e.startLine?","+e.endLine:""))]))}),i.children.push(new $i(6)),t.children.push(new $i(6),i);var o=new Yi("segment");o.children.push(new $i(8),new Yi("source",{},n.serialize(e.nodes)),new $i(6)),t.children.push(new $i(6),o,new $i(4)),r.push(new $i(4),t)});var i=new Yi("file",{original:"ng.template",id:"ngi18n"},s(r,[new $i(2)])),o=new Yi("xliff",{version:"2.0",xmlns:"urn:oasis:names:tc:xliff:document:2.0",srcLang:t||"en"},[new $i(2),i,new $i]);return Xi([new Qi({version:"1.0",encoding:"UTF-8"}),new $i,o,new $i])},t.prototype.load=function(e,t){var n=(new ao).parse(e,t),r=n.locale,i=n.msgIdToHtml,o=n.errors,a={},u=new uo;if(Object.keys(i).forEach(function(e){var n=u.convert(i[e],t),r=n.i18nNodes;o.push.apply(o,s(n.errors)),a[e]=r}),o.length)throw new Error("xliff2 parse errors:\n"+o.join("\n"));return{locale:r,i18nNodesByMsgId:a}},t.prototype.digest=function(e){return Yr(e)},t}(Wi),so=function(){function e(){}return e.prototype.visitText=function(e,t){return[new Ji(e.value)]},e.prototype.visitContainer=function(e,t){var n=this,r=[];return e.children.forEach(function(e){return r.push.apply(r,s(e.visit(n)))}),r},e.prototype.visitIcu=function(e,t){var n=this,r=[new Ji("{"+e.expressionPlaceholder+", "+e.type+", ")];return Object.keys(e.cases).forEach(function(t){r.push.apply(r,s([new Ji(t+" {")],e.cases[t].visit(n),[new Ji("} ")]))}),r.push(new Ji("}")),r},e.prototype.visitTagPlaceholder=function(e,t){var n=this,r=function i(e){switch(e.toLowerCase()){case"br":case"b":case"i":case"u":return"fmt";case"img":return"image";case"a":return"link";default:return"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
   */(e.tag);if(e.isVoid)return[new Yi("ph",{id:(this._nextPlaceholderId++).toString(),equiv:e.startName,type:r,disp:"<"+e.tag+"/>"})];var o=new Yi("pc",{id:(this._nextPlaceholderId++).toString(),equivStart:e.startName,equivEnd:e.closeName,type:r,dispStart:"<"+e.tag+">",dispEnd:"</"+e.tag+">"}),a=[].concat.apply([],s(e.children.map(function(e){return e.visit(n)})));return a.length?a.forEach(function(e){return o.children.push(e)}):o.children.push(new Ji("")),[o]},e.prototype.visitPlaceholder=function(e,t){var n=(this._nextPlaceholderId++).toString();return[new Yi("ph",{id:n,equiv:e.name,disp:"{{"+e.value+"}}"})]},e.prototype.visitIcuPlaceholder=function(e,t){var n=Object.keys(e.value.cases).map(function(e){return e+" {...}"}).join(" "),r=(this._nextPlaceholderId++).toString();return[new Yi("ph",{id:r,equiv:e.name,disp:"{"+e.value.expression+", "+e.value.type+", "+n+"}"})]},e.prototype.serialize=function(e){var t=this;return this._nextPlaceholderId=0,[].concat.apply([],s(e.map(function(e){return e.visit(t)})))},e}(),ao=function(){function e(){this._locale=null}return e.prototype.parse=function(e,t){this._unitMlString=null,this._msgIdToHtml={};var n=(new Hi).parse(e,t,!1);return this._errors=n.errors,st(this,n.rootNodes,null),{msgIdToHtml:this._msgIdToHtml,errors:this._errors,locale:this._locale}},e.prototype.visitElement=function(e,t){switch(e.name){case"unit":this._unitMlString=null;var n=e.attrs.find(function(e){return"id"===e.name});if(n){var r=n.value;this._msgIdToHtml.hasOwnProperty(r)?this._addError(e,"Duplicated translations for msg "+r):(st(this,e.children,null),"string"==typeof this._unitMlString?this._msgIdToHtml[r]=this._unitMlString:this._addError(e,"Message "+r+" misses a translation"))}else this._addError(e,'<unit> misses the "id" attribute');break;case"source":break;case"target":var i=e.startSourceSpan.start.file.content.slice(e.startSourceSpan.end.offset,e.endSourceSpan.start.offset);this._unitMlString=i;break;case"xliff":var o=e.attrs.find(function(e){return"trgLang"===e.name});o&&(this._locale=o.value);var s=e.attrs.find(function(e){return"version"===e.name});if(s){var a=s.value;"2.0"!==a?this._addError(e,"The XLIFF file version "+a+" is not compatible with XLIFF 2.0 serializer"):st(this,e.children,null)}break;default:st(this,e.children,null)}},e.prototype.visitAttribute=function(e,t){},e.prototype.visitText=function(e,t){},e.prototype.visitComment=function(e,t){},e.prototype.visitExpansion=function(e,t){},e.prototype.visitExpansionCase=function(e,t){},e.prototype._addError=function(e,t){this._errors.push(new Oi(e.sourceSpan,t))},e}(),uo=function(){function e(){}return e.prototype.convert=function(e,t){var n=(new Hi).parse(e,t,!0);return this._errors=n.errors,{i18nNodes:this._errors.length>0||0==n.rootNodes.length?[]:[].concat.apply([],s(st(this,n.rootNodes))),errors:this._errors}},e.prototype.visitText=function(e,t){return new vi(e.value,e.sourceSpan)},e.prototype.visitElement=function(e,t){var n=this;switch(e.name){case"ph":var r=e.attrs.find(function(e){return"equiv"===e.name});if(r)return[new _i("",r.value,e.sourceSpan)];this._addError(e,'<ph> misses the "equiv" attribute');break;case"pc":var i=e.attrs.find(function(e){return"equivStart"===e.name}),o=e.attrs.find(function(e){return"equivEnd"===e.name});if(i){if(o){var a=o.value,u=[];return u.concat.apply(u,s([new _i("",i.value,e.sourceSpan)],e.children.map(function(e){return e.visit(n,null)}),[new _i("",a,e.sourceSpan)]))}this._addError(e,'<ph> misses the "equivEnd" attribute')}else this._addError(e,'<ph> misses the "equivStart" attribute');break;case"mrk":return[].concat.apply([],s(st(this,e.children)));default:this._addError(e,"Unexpected tag")}return null},e.prototype.visitExpansion=function(e,t){var n={};return st(this,e.cases).forEach(function(t){n[t.value]=new mi(t.nodes,e.sourceSpan)}),new yi(e.switchValue,e.type,n,e.sourceSpan)},e.prototype.visitExpansionCase=function(e,t){return{value:e.value,nodes:[].concat.apply([],s(st(this,e.expression)))}},e.prototype.visitComment=function(e,t){},e.prototype.visitAttribute=function(e,t){},e.prototype._addError=function(e,t){this._errors.push(new Oi(e.sourceSpan,t))},e}(),po=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return n(t,e),t.prototype.write=function(e,t){var n=new ho,r=new lo,i=new Yi("messagebundle");return e.forEach(function(e){var t={id:e.id};e.description&&(t.desc=e.description),e.meaning&&(t.meaning=e.meaning);var n=[];e.sources.forEach(function(e){n.push(new Yi("source",{},[new Ji(e.filePath+":"+e.startLine+(e.endLine!==e.startLine?","+e.endLine:""))]))}),i.children.push(new $i(2),new Yi("msg",t,s(n,r.serialize(e.nodes))))}),i.children.push(new $i),Xi([new Qi({version:"1.0",encoding:"UTF-8"}),new $i,new Gi("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 $i,n.addDefaultExamples(i),new $i])},t.prototype.load=function(e,t){throw new Error("Unsupported")},t.prototype.digest=function(e){return co(e)},t.prototype.createNameMapper=function(e){return new zi(e,fo)},t}(Wi),lo=function(){function e(){}return e.prototype.visitText=function(e,t){return[new Ji(e.value)]},e.prototype.visitContainer=function(e,t){var n=this,r=[];return e.children.forEach(function(e){return r.push.apply(r,s(e.visit(n)))}),r},e.prototype.visitIcu=function(e,t){var n=this,r=[new Ji("{"+e.expressionPlaceholder+", "+e.type+", ")];return Object.keys(e.cases).forEach(function(t){r.push.apply(r,s([new Ji(t+" {")],e.cases[t].visit(n),[new Ji("} ")]))}),r.push(new Ji("}")),r},e.prototype.visitTagPlaceholder=function(e,t){var n=new Yi("ex",{},[new Ji("<"+e.tag+">")]),r=new Yi("ph",{name:e.startName},[n]);if(e.isVoid)return[r];var i=new Yi("ex",{},[new Ji("</"+e.tag+">")]),o=new Yi("ph",{name:e.closeName},[i]);return s([r],this.serialize(e.children),[o])},e.prototype.visitPlaceholder=function(e,t){var n=new Yi("ex",{},[new Ji("{{"+e.value+"}}")]);return[new Yi("ph",{name:e.name},[n])]},e.prototype.visitIcuPlaceholder=function(e,t){var n=new Yi("ex",{},[new Ji("{"+e.value.expression+", "+e.value.type+", "+Object.keys(e.value.cases).map(function(e){return e+" {...}"}).join(" ")+"}")]);return[new Yi("ph",{name:e.name},[n])]},e.prototype.serialize=function(e){var t=this;return[].concat.apply([],s(e.map(function(e){return e.visit(t)})))},e}();function co(e){return Yr(e)}var ho=function(){function e(){}return e.prototype.addDefaultExamples=function(e){return e.visit(this),e},e.prototype.visitTag=function(e){var t=this;if("ph"===e.name){if(!e.children||0==e.children.length){var n=new Ji(e.attrs.name||"...");e.children=[new Yi("ex",{},[n])]}}else e.children&&e.children.forEach(function(e){return e.visit(t)})},e.prototype.visitText=function(e){},e.prototype.visitDeclaration=function(e){},e.prototype.visitDoctype=function(e){},e}();function fo(e){return e.toUpperCase().replace(/[^A-Z0-9_]/g,"_")}
  /**
   * @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 vo,mo=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return n(t,e),t.prototype.write=function(e,t){throw new Error("Unsupported")},t.prototype.load=function(e,t){var n=(new yo).parse(e,t),r=n.locale,i=n.msgIdToHtml,o=n.errors,s={},a=new go;if(Object.keys(i).forEach(function(e){!function n(e,t,r){Object.defineProperty(e,t,{configurable:!0,enumerable:!0,get:function(){var n=r();return Object.defineProperty(e,t,{enumerable:!0,value:n}),n},set:function(e){throw new Error("Could not overwrite an XTB translation")}})}(s,e,function(){var n=a.convert(i[e],t),r=n.i18nNodes,o=n.errors;if(o.length)throw new Error("xtb parse errors:\n"+o.join("\n"));return r})}),o.length)throw new Error("xtb parse errors:\n"+o.join("\n"));return{locale:r,i18nNodesByMsgId:s}},t.prototype.digest=function(e){return co(e)},t.prototype.createNameMapper=function(e){return new zi(e,fo)},t}(Wi),yo=function(){function e(){this._locale=null}return e.prototype.parse=function(e,t){this._bundleDepth=0,this._msgIdToHtml={};var n=(new Hi).parse(e,t,!1);return this._errors=n.errors,st(this,n.rootNodes),{msgIdToHtml:this._msgIdToHtml,errors:this._errors,locale:this._locale}},e.prototype.visitElement=function(e,t){switch(e.name){case"translationbundle":this._bundleDepth++,this._bundleDepth>1&&this._addError(e,"<translationbundle> elements can not be nested");var n=e.attrs.find(function(e){return"lang"===e.name});n&&(this._locale=n.value),st(this,e.children,null),this._bundleDepth--;break;case"translation":var r=e.attrs.find(function(e){return"id"===e.name});if(r){var i=r.value;if(this._msgIdToHtml.hasOwnProperty(i))this._addError(e,"Duplicated translations for msg "+i);else{var o=e.startSourceSpan.start.file.content.slice(e.startSourceSpan.end.offset,e.endSourceSpan.start.offset);this._msgIdToHtml[i]=o}}else this._addError(e,'<translation> misses the "id" attribute');break;default:this._addError(e,"Unexpected tag")}},e.prototype.visitAttribute=function(e,t){},e.prototype.visitText=function(e,t){},e.prototype.visitComment=function(e,t){},e.prototype.visitExpansion=function(e,t){},e.prototype.visitExpansionCase=function(e,t){},e.prototype._addError=function(e,t){this._errors.push(new Oi(e.sourceSpan,t))},e}(),go=function(){function e(){}return e.prototype.convert=function(e,t){var n=(new Hi).parse(e,t,!0);return this._errors=n.errors,{i18nNodes:this._errors.length>0||0==n.rootNodes.length?[]:st(this,n.rootNodes),errors:this._errors}},e.prototype.visitText=function(e,t){return new vi(e.value,e.sourceSpan)},e.prototype.visitExpansion=function(e,t){var n={};return st(this,e.cases).forEach(function(t){n[t.value]=new mi(t.nodes,e.sourceSpan)}),new yi(e.switchValue,e.type,n,e.sourceSpan)},e.prototype.visitExpansionCase=function(e,t){return{value:e.value,nodes:st(this,e.expression)}},e.prototype.visitElement=function(e,t){if("ph"===e.name){var n=e.attrs.find(function(e){return"name"===e.name});if(n)return new _i("",n.value,e.sourceSpan);this._addError(e,'<ph> misses the "name" attribute')}else this._addError(e,"Unexpected tag");return null},e.prototype.visitComment=function(e,t){},e.prototype.visitAttribute=function(e,t){},e.prototype._addError=function(e,t){this._errors.push(new Oi(e.sourceSpan,t))},e}(),_o=function(e){function t(){return e.call(this,bi)||this}return n(t,e),t.prototype.parse=function(t,n,r,i){return void 0===r&&(r=!1),void 0===i&&(i=ht),e.prototype.parse.call(this,t,n,r,i)},t}(Kr),Eo=function(){function e(e,t,n,r,i,o){void 0===e&&(e={}),void 0===i&&(i=g.Warning),this._i18nNodesByMsgId=e,this.digest=n,this.mapperFactory=r,this._i18nToHtml=new xo(e,t,n,r,i,o)}return e.load=function(t,n,r,i,o){var s=r.load(t,n);return new e(s.i18nNodesByMsgId,s.locale,function(e){return r.digest(e)},function(e){return r.createNameMapper(e)},i,o)},e.prototype.get=function(e){var t=this._i18nToHtml.convert(e);if(t.errors.length)throw new Error(t.errors.join("\n"));return t.nodes},e.prototype.has=function(e){return this.digest(e)in this._i18nNodesByMsgId},e}(),xo=function(){function e(e,t,n,r,i,o){void 0===e&&(e={}),this._i18nNodesByMsgId=e,this._locale=t,this._digest=n,this._mapperFactory=r,this._missingTranslationStrategy=i,this._console=o,this._contextStack=[],this._errors=[]}return e.prototype.convert=function(e){this._contextStack.length=0,this._errors.length=0;var t=this._convertToText(e),n=e.nodes[0].sourceSpan.start.file.url,r=(new _o).parse(t,n,!0);return{nodes:r.rootNodes,errors:s(this._errors,r.errors)}},e.prototype.visitText=function(e,t){return eo(e.value)},e.prototype.visitContainer=function(e,t){var n=this;return e.children.map(function(e){return e.visit(n)}).join("")},e.prototype.visitIcu=function(e,t){var n=this,r=Object.keys(e.cases).map(function(t){return t+" {"+e.cases[t].visit(n)+"}"});return"{"+(this._srcMsg.placeholders.hasOwnProperty(e.expression)?this._srcMsg.placeholders[e.expression]:e.expression)+", "+e.type+", "+r.join(" ")+"}"},e.prototype.visitPlaceholder=function(e,t){var n=this._mapper(e.name);return this._srcMsg.placeholders.hasOwnProperty(n)?this._srcMsg.placeholders[n]:this._srcMsg.placeholderToMessage.hasOwnProperty(n)?this._convertToText(this._srcMsg.placeholderToMessage[n]):(this._addError(e,'Unknown placeholder "'+e.name+'"'),"")},e.prototype.visitTagPlaceholder=function(e,t){var n=this,r=""+e.tag,i=Object.keys(e.attrs).map(function(t){return t+'="'+e.attrs[t]+'"'}).join(" ");return e.isVoid?"<"+r+" "+i+"/>":"<"+r+" "+i+">"+e.children.map(function(e){return e.visit(n)}).join("")+"</"+r+">"},e.prototype.visitIcuPlaceholder=function(e,t){return this._convertToText(this._srcMsg.placeholderToMessage[e.name])},e.prototype._convertToText=function(e){var t,n=this,r=this._digest(e),i=this._mapperFactory?this._mapperFactory(e):null;this._contextStack.push({msg:this._srcMsg,mapper:this._mapper}),this._srcMsg=e,this._i18nNodesByMsgId.hasOwnProperty(r)?(t=this._i18nNodesByMsgId[r],this._mapper=function(e){return i?i.toInternalName(e):e}):(this._missingTranslationStrategy===g.Error?this._addError(e.nodes[0],'Missing translation for message "'+r+'"'+(this._locale?' for locale "'+this._locale+'"':"")):this._console&&this._missingTranslationStrategy===g.Warning&&this._console.warn('Missing translation for message "'+r+'"'+(this._locale?' for locale "'+this._locale+'"':"")),t=e.nodes,this._mapper=function(e){return e});var o=t.map(function(e){return e.visit(n)}).join(""),s=this._contextStack.pop();return this._srcMsg=s.msg,this._mapper=s.mapper,o},e.prototype._addError=function(e,t){this._errors.push(new Oi(e.sourceSpan,t))},e}(),So=function(){function e(e,t,n,r,i){if(void 0===r&&(r=g.Warning),this._htmlParser=e,t){var o=function s(e){switch(e=(e||"xlf").toLowerCase()){case"xmb":return new po;case"xtb":return new mo;case"xliff2":case"xlf2":return new oo;case"xliff":case"xlf":default:return new to}}
  /**
   * @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
   */(n);this._translationBundle=Eo.load(t,"i18n",o,r,i)}else this._translationBundle=new Eo({},null,Gr,void 0,r,i)}return e.prototype.parse=function(e,t,n,r){void 0===n&&(n=!1),void 0===r&&(r=ht);var i=this._htmlParser.parse(e,t,n,r);return i.errors.length?new zr(i.rootNodes,i.errors):function o(e,t,n,r,i){return new Vi(r,i).merge(e,t,n)}(i.rootNodes,this._translationBundle,r,[],{})},e}(),wo="@angular/core",Co=function(){function e(){}return e.ANALYZE_FOR_ENTRY_COMPONENTS={name:"ANALYZE_FOR_ENTRY_COMPONENTS",moduleName:wo},e.ElementRef={name:"ElementRef",moduleName:wo},e.NgModuleRef={name:"NgModuleRef",moduleName:wo},e.ViewContainerRef={name:"ViewContainerRef",moduleName:wo},e.ChangeDetectorRef={name:"ChangeDetectorRef",moduleName:wo},e.QueryList={name:"QueryList",moduleName:wo},e.TemplateRef={name:"TemplateRef",moduleName:wo},e.CodegenComponentFactoryResolver={name:"ɵCodegenComponentFactoryResolver",moduleName:wo},e.ComponentFactoryResolver={name:"ComponentFactoryResolver",moduleName:wo},e.ComponentFactory={name:"ComponentFactory",moduleName:wo},e.ComponentRef={name:"ComponentRef",moduleName:wo},e.NgModuleFactory={name:"NgModuleFactory",moduleName:wo},e.createModuleFactory={name:"ɵcmf",moduleName:wo},e.moduleDef={name:"ɵmod",moduleName:wo},e.moduleProviderDef={name:"ɵmpd",moduleName:wo},e.RegisterModuleFactoryFn={name:"ɵregisterModuleFactory",moduleName:wo},e.inject={name:"inject",moduleName:wo},e.INJECTOR={name:"INJECTOR",moduleName:wo},e.Injector={name:"Injector",moduleName:wo},e.defineInjectable={name:"defineInjectable",moduleName:wo},e.ViewEncapsulation={name:"ViewEncapsulation",moduleName:wo},e.ChangeDetectionStrategy={name:"ChangeDetectionStrategy",moduleName:wo},e.SecurityContext={name:"SecurityContext",moduleName:wo},e.LOCALE_ID={name:"LOCALE_ID",moduleName:wo},e.TRANSLATIONS_FORMAT={name:"TRANSLATIONS_FORMAT",moduleName:wo},e.inlineInterpolate={name:"ɵinlineInterpolate",moduleName:wo},e.interpolate={name:"ɵinterpolate",moduleName:wo},e.EMPTY_ARRAY={name:"ɵEMPTY_ARRAY",moduleName:wo},e.EMPTY_MAP={name:"ɵEMPTY_MAP",moduleName:wo},e.Renderer={name:"Renderer",moduleName:wo},e.viewDef={name:"ɵvid",moduleName:wo},e.elementDef={name:"ɵeld",moduleName:wo},e.anchorDef={name:"ɵand",moduleName:wo},e.textDef={name:"ɵted",moduleName:wo},e.directiveDef={name:"ɵdid",moduleName:wo},e.providerDef={name:"ɵprd",moduleName:wo},e.queryDef={name:"ɵqud",moduleName:wo},e.pureArrayDef={name:"ɵpad",moduleName:wo},e.pureObjectDef={name:"ɵpod",moduleName:wo},e.purePipeDef={name:"ɵppd",moduleName:wo},e.pipeDef={name:"ɵpid",moduleName:wo},e.nodeValue={name:"ɵnov",moduleName:wo},e.ngContentDef={name:"ɵncd",moduleName:wo},e.unwrapValue={name:"ɵunv",moduleName:wo},e.createRendererType2={name:"ɵcrt",moduleName:wo},e.RendererType2={name:"RendererType2",moduleName:wo},e.ViewDefinition={name:"ɵViewDefinition",moduleName:wo},e.createComponentFactory={name:"ɵccf",moduleName:wo},e}();function To(e){return{identifier:{reference:e}}}function bo(e,t){return To(e.resolveExternalReference(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(e){e[e.Const=0]="Const"}(vo||(vo={}));var Mo,Po=function(){function e(e){void 0===e&&(e=null),this.modifiers=e,e||(this.modifiers=[])}return e.prototype.hasModifier=function(e){return-1!==this.modifiers.indexOf(e)},e}();!function(e){e[e.Dynamic=0]="Dynamic",e[e.Bool=1]="Bool",e[e.String=2]="String",e[e.Int=3]="Int",e[e.Number=4]="Number",e[e.Function=5]="Function",e[e.Inferred=6]="Inferred"}(Mo||(Mo={}));var Ao,No=function(e){function t(t,n){void 0===n&&(n=null);var r=e.call(this,n)||this;return r.name=t,r}return n(t,e),t.prototype.visitType=function(e,t){return e.visitBuiltinType(this,t)},t}(Po),ko=function(e){function t(t,n){void 0===n&&(n=null);var r=e.call(this,n)||this;return r.value=t,r}return n(t,e),t.prototype.visitType=function(e,t){return e.visitExpressionType(this,t)},t}(Po),Io=function(e){function t(t,n){void 0===n&&(n=null);var r=e.call(this,n)||this;return r.of=t,r}return n(t,e),t.prototype.visitType=function(e,t){return e.visitArrayType(this,t)},t}(Po),Oo=function(e){function t(t,n){void 0===n&&(n=null);var r=e.call(this,n)||this;return r.valueType=t||null,r}return n(t,e),t.prototype.visitType=function(e,t){return e.visitMapType(this,t)},t}(Po),Ro=new No(Mo.Dynamic),Do=new No(Mo.Inferred),Lo=new No(Mo.Bool),Fo=(new No(Mo.Int),new No(Mo.Number));function Bo(e,t){return null==e||null==t?e==t:e.isEquivalent(t)}function Vo(e,t){var n=e.length;if(n!==t.length)return!1;for(var r=0;r<n;r++)if(!e[r].isEquivalent(t[r]))return!1;return!0}new No(Mo.String),new No(Mo.Function),(Ao=e.BinaryOperator||(e.BinaryOperator={}))[Ao.Equals=0]="Equals",Ao[Ao.NotEquals=1]="NotEquals",Ao[Ao.Identical=2]="Identical",Ao[Ao.NotIdentical=3]="NotIdentical",Ao[Ao.Minus=4]="Minus",Ao[Ao.Plus=5]="Plus",Ao[Ao.Divide=6]="Divide",Ao[Ao.Multiply=7]="Multiply",Ao[Ao.Modulo=8]="Modulo",Ao[Ao.And=9]="And",Ao[Ao.Or=10]="Or",Ao[Ao.BitwiseAnd=11]="BitwiseAnd",Ao[Ao.Lower=12]="Lower",Ao[Ao.LowerEquals=13]="LowerEquals",Ao[Ao.Bigger=14]="Bigger",Ao[Ao.BiggerEquals=15]="BiggerEquals";var jo,Uo=function(){function t(e,t){this.type=e||null,this.sourceSpan=t||null}return t.prototype.prop=function(e,t){return new as(this,e,null,t)},t.prototype.key=function(e,t,n){return new us(this,e,t,n)},t.prototype.callMethod=function(e,t,n){return new Qo(this,e,t,null,n)},t.prototype.callFn=function(e,t){return new Go(this,e,null,t)},t.prototype.instantiate=function(e,t,n){return new Yo(this,e,t,n)},t.prototype.conditional=function(e,t,n){return void 0===t&&(t=null),new es(this,e,t,null,n)},t.prototype.equals=function(t,n){return new ss(e.BinaryOperator.Equals,this,t,null,n)},t.prototype.notEquals=function(t,n){return new ss(e.BinaryOperator.NotEquals,this,t,null,n)},t.prototype.identical=function(t,n){return new ss(e.BinaryOperator.Identical,this,t,null,n)},t.prototype.notIdentical=function(t,n){return new ss(e.BinaryOperator.NotIdentical,this,t,null,n)},t.prototype.minus=function(t,n){return new ss(e.BinaryOperator.Minus,this,t,null,n)},t.prototype.plus=function(t,n){return new ss(e.BinaryOperator.Plus,this,t,null,n)},t.prototype.divide=function(t,n){return new ss(e.BinaryOperator.Divide,this,t,null,n)},t.prototype.multiply=function(t,n){return new ss(e.BinaryOperator.Multiply,this,t,null,n)},t.prototype.modulo=function(t,n){return new ss(e.BinaryOperator.Modulo,this,t,null,n)},t.prototype.and=function(t,n){return new ss(e.BinaryOperator.And,this,t,null,n)},t.prototype.bitwiseAnd=function(t,n,r){return void 0===r&&(r=!0),new ss(e.BinaryOperator.BitwiseAnd,this,t,null,n,r)},t.prototype.or=function(t,n){return new ss(e.BinaryOperator.Or,this,t,null,n)},t.prototype.lower=function(t,n){return new ss(e.BinaryOperator.Lower,this,t,null,n)},t.prototype.lowerEquals=function(t,n){return new ss(e.BinaryOperator.LowerEquals,this,t,null,n)},t.prototype.bigger=function(t,n){return new ss(e.BinaryOperator.Bigger,this,t,null,n)},t.prototype.biggerEquals=function(t,n){return new ss(e.BinaryOperator.BiggerEquals,this,t,null,n)},t.prototype.isBlank=function(e){return this.equals(ds,e)},t.prototype.cast=function(e,t){return new rs(this,e,t)},t.prototype.toStmt=function(){return new gs(this,null)},t}();(jo=e.BuiltinVar||(e.BuiltinVar={}))[jo.This=0]="This",jo[jo.Super=1]="Super",jo[jo.CatchError=2]="CatchError",jo[jo.CatchStack=3]="CatchStack";var qo,Ho=function(e){function t(t,n,r){var i=e.call(this,n,r)||this;return"string"==typeof t?(i.name=t,i.builtin=null):(i.name=null,i.builtin=t),i}return n(t,e),t.prototype.isEquivalent=function(e){return e instanceof t&&this.name===e.name&&this.builtin===e.builtin},t.prototype.isConstant=function(){return!1},t.prototype.visitExpression=function(e,t){return e.visitReadVarExpr(this,t)},t.prototype.set=function(e){if(!this.name)throw new Error("Built in variable "+this.builtin+" can not be assigned to.");return new Wo(this.name,e,null,this.sourceSpan)},t}(Uo),Wo=function(e){function t(t,n,r,i){var o=e.call(this,r||n.type,i)||this;return o.name=t,o.value=n,o}return n(t,e),t.prototype.isEquivalent=function(e){return e instanceof t&&this.name===e.name&&this.value.isEquivalent(e.value)},t.prototype.isConstant=function(){return!1},t.prototype.visitExpression=function(e,t){return e.visitWriteVarExpr(this,t)},t.prototype.toDeclStmt=function(e,t){return new ms(this.name,this.value,e,t,this.sourceSpan)},t}(Uo),zo=function(e){function t(t,n,r,i,o){var s=e.call(this,i||r.type,o)||this;return s.receiver=t,s.index=n,s.value=r,s}return n(t,e),t.prototype.isEquivalent=function(e){return e instanceof t&&this.receiver.isEquivalent(e.receiver)&&this.index.isEquivalent(e.index)&&this.value.isEquivalent(e.value)},t.prototype.isConstant=function(){return!1},t.prototype.visitExpression=function(e,t){return e.visitWriteKeyExpr(this,t)},t}(Uo),Ko=function(e){function t(t,n,r,i,o){var s=e.call(this,i||r.type,o)||this;return s.receiver=t,s.name=n,s.value=r,s}return n(t,e),t.prototype.isEquivalent=function(e){return e instanceof t&&this.receiver.isEquivalent(e.receiver)&&this.name===e.name&&this.value.isEquivalent(e.value)},t.prototype.isConstant=function(){return!1},t.prototype.visitExpression=function(e,t){return e.visitWritePropExpr(this,t)},t}(Uo);(qo=e.BuiltinMethod||(e.BuiltinMethod={}))[qo.ConcatArray=0]="ConcatArray",qo[qo.SubscribeObservable=1]="SubscribeObservable",qo[qo.Bind=2]="Bind";var Xo,Qo=function(e){function t(t,n,r,i,o){var s=e.call(this,i,o)||this;return s.receiver=t,s.args=r,"string"==typeof n?(s.name=n,s.builtin=null):(s.name=null,s.builtin=n),s}return n(t,e),t.prototype.isEquivalent=function(e){return e instanceof t&&this.receiver.isEquivalent(e.receiver)&&this.name===e.name&&this.builtin===e.builtin&&Vo(this.args,e.args)},t.prototype.isConstant=function(){return!1},t.prototype.visitExpression=function(e,t){return e.visitInvokeMethodExpr(this,t)},t}(Uo),Go=function(e){function t(t,n,r,i){var o=e.call(this,r,i)||this;return o.fn=t,o.args=n,o}return n(t,e),t.prototype.isEquivalent=function(e){return e instanceof t&&this.fn.isEquivalent(e.fn)&&Vo(this.args,e.args)},t.prototype.isConstant=function(){return!1},t.prototype.visitExpression=function(e,t){return e.visitInvokeFunctionExpr(this,t)},t}(Uo),Yo=function(e){function t(t,n,r,i){var o=e.call(this,r,i)||this;return o.classExpr=t,o.args=n,o}return n(t,e),t.prototype.isEquivalent=function(e){return e instanceof t&&this.classExpr.isEquivalent(e.classExpr)&&Vo(this.args,e.args)},t.prototype.isConstant=function(){return!1},t.prototype.visitExpression=function(e,t){return e.visitInstantiateExpr(this,t)},t}(Uo),Jo=function(e){function t(t,n,r){var i=e.call(this,n,r)||this;return i.value=t,i}return n(t,e),t.prototype.isEquivalent=function(e){return e instanceof t&&this.value===e.value},t.prototype.isConstant=function(){return!0},t.prototype.visitExpression=function(e,t){return e.visitLiteralExpr(this,t)},t}(Uo),$o=function(e){function t(t,n,r,i){void 0===r&&(r=null);var o=e.call(this,n,i)||this;return o.value=t,o.typeParams=r,o}return n(t,e),t.prototype.isEquivalent=function(e){return e instanceof t&&this.value.name===e.value.name&&this.value.moduleName===e.value.moduleName&&this.value.runtime===e.value.runtime},t.prototype.isConstant=function(){return!1},t.prototype.visitExpression=function(e,t){return e.visitExternalExpr(this,t)},t}(Uo),Zo=function Zo(e,t,n){this.moduleName=e,this.name=t,this.runtime=n},es=function(e){function t(t,n,r,i,o){void 0===r&&(r=null);var s=e.call(this,i||n.type,o)||this;return s.condition=t,s.falseCase=r,s.trueCase=n,s}return n(t,e),t.prototype.isEquivalent=function(e){return e instanceof t&&this.condition.isEquivalent(e.condition)&&this.trueCase.isEquivalent(e.trueCase)&&Bo(this.falseCase,e.falseCase)},t.prototype.isConstant=function(){return!1},t.prototype.visitExpression=function(e,t){return e.visitConditionalExpr(this,t)},t}(Uo),ts=function(e){function t(t,n){var r=e.call(this,Lo,n)||this;return r.condition=t,r}return n(t,e),t.prototype.isEquivalent=function(e){return e instanceof t&&this.condition.isEquivalent(e.condition)},t.prototype.isConstant=function(){return!1},t.prototype.visitExpression=function(e,t){return e.visitNotExpr(this,t)},t}(Uo),ns=function(e){function t(t,n){var r=e.call(this,t.type,n)||this;return r.condition=t,r}return n(t,e),t.prototype.isEquivalent=function(e){return e instanceof t&&this.condition.isEquivalent(e.condition)},t.prototype.isConstant=function(){return!1},t.prototype.visitExpression=function(e,t){return e.visitAssertNotNullExpr(this,t)},t}(Uo),rs=function(e){function t(t,n,r){var i=e.call(this,n,r)||this;return i.value=t,i}return n(t,e),t.prototype.isEquivalent=function(e){return e instanceof t&&this.value.isEquivalent(e.value)},t.prototype.isConstant=function(){return!1},t.prototype.visitExpression=function(e,t){return e.visitCastExpr(this,t)},t}(Uo),is=function(){function e(e,t){void 0===t&&(t=null),this.name=e,this.type=t}return e.prototype.isEquivalent=function(e){return this.name===e.name},e}(),os=function(e){function t(t,n,r,i,o){var s=e.call(this,r,i)||this;return s.params=t,s.statements=n,s.name=o,s}return n(t,e),t.prototype.isEquivalent=function(e){return e instanceof t&&Vo(this.params,e.params)&&Vo(this.statements,e.statements)},t.prototype.isConstant=function(){return!1},t.prototype.visitExpression=function(e,t){return e.visitFunctionExpr(this,t)},t.prototype.toDeclStmt=function(e,t){return void 0===t&&(t=null),new ys(e,this.params,this.statements,this.type,t,this.sourceSpan)},t}(Uo),ss=function(e){function t(t,n,r,i,o,s){void 0===s&&(s=!0);var a=e.call(this,i||n.type,o)||this;return a.operator=t,a.rhs=r,a.parens=s,a.lhs=n,a}return n(t,e),t.prototype.isEquivalent=function(e){return e instanceof t&&this.operator===e.operator&&this.lhs.isEquivalent(e.lhs)&&this.rhs.isEquivalent(e.rhs)},t.prototype.isConstant=function(){return!1},t.prototype.visitExpression=function(e,t){return e.visitBinaryOperatorExpr(this,t)},t}(Uo),as=function(e){function t(t,n,r,i){var o=e.call(this,r,i)||this;return o.receiver=t,o.name=n,o}return n(t,e),t.prototype.isEquivalent=function(e){return e instanceof t&&this.receiver.isEquivalent(e.receiver)&&this.name===e.name},t.prototype.isConstant=function(){return!1},t.prototype.visitExpression=function(e,t){return e.visitReadPropExpr(this,t)},t.prototype.set=function(e){return new Ko(this.receiver,this.name,e,null,this.sourceSpan)},t}(Uo),us=function(e){function t(t,n,r,i){var o=e.call(this,r,i)||this;return o.receiver=t,o.index=n,o}return n(t,e),t.prototype.isEquivalent=function(e){return e instanceof t&&this.receiver.isEquivalent(e.receiver)&&this.index.isEquivalent(e.index)},t.prototype.isConstant=function(){return!1},t.prototype.visitExpression=function(e,t){return e.visitReadKeyExpr(this,t)},t.prototype.set=function(e){return new zo(this.receiver,this.index,e,null,this.sourceSpan)},t}(Uo),ps=function(e){function t(t,n,r){var i=e.call(this,n,r)||this;return i.entries=t,i}return n(t,e),t.prototype.isConstant=function(){return this.entries.every(function(e){return e.isConstant()})},t.prototype.isEquivalent=function(e){return e instanceof t&&Vo(this.entries,e.entries)},t.prototype.visitExpression=function(e,t){return e.visitLiteralArrayExpr(this,t)},t}(Uo),ls=function(){function e(e,t,n){this.key=e,this.value=t,this.quoted=n}return e.prototype.isEquivalent=function(e){return this.key===e.key&&this.value.isEquivalent(e.value)},e}(),cs=function(e){function t(t,n,r){var i=e.call(this,n,r)||this;return i.entries=t,i.valueType=null,n&&(i.valueType=n.valueType),i}return n(t,e),t.prototype.isEquivalent=function(e){return e instanceof t&&Vo(this.entries,e.entries)},t.prototype.isConstant=function(){return this.entries.every(function(e){return e.value.isConstant()})},t.prototype.visitExpression=function(e,t){return e.visitLiteralMapExpr(this,t)},t}(Uo),hs=function(e){function t(t,n){var r=e.call(this,t[t.length-1].type,n)||this;return r.parts=t,r}return n(t,e),t.prototype.isEquivalent=function(e){return e instanceof t&&Vo(this.parts,e.parts)},t.prototype.isConstant=function(){return!1},t.prototype.visitExpression=function(e,t){return e.visitCommaExpr(this,t)},t}(Uo),fs=(new Ho(e.BuiltinVar.This,null,null),new Ho(e.BuiltinVar.Super,null,null),new Ho(e.BuiltinVar.CatchError,null,null),new Ho(e.BuiltinVar.CatchStack,null,null),new Jo(null,null,null)),ds=new Jo(null,Do,null);(Xo=e.StmtModifier||(e.StmtModifier={}))[Xo.Final=0]="Final",Xo[Xo.Private=1]="Private",Xo[Xo.Exported=2]="Exported",Xo[Xo.Static=3]="Static";var vs=function(){function e(e,t){this.modifiers=e||[],this.sourceSpan=t||null}return e.prototype.hasModifier=function(e){return-1!==this.modifiers.indexOf(e)},e}(),ms=function(e){function t(t,n,r,i,o){void 0===i&&(i=null);var s=e.call(this,i,o)||this;return s.name=t,s.value=n,s.type=r||n&&n.type||null,s}return n(t,e),t.prototype.isEquivalent=function(e){return e instanceof t&&this.name===e.name&&(this.value?!!e.value&&this.value.isEquivalent(e.value):!e.value)},t.prototype.visitStatement=function(e,t){return e.visitDeclareVarStmt(this,t)},t}(vs),ys=function(e){function t(t,n,r,i,o,s){void 0===o&&(o=null);var a=e.call(this,o,s)||this;return a.name=t,a.params=n,a.statements=r,a.type=i||null,a}return n(t,e),t.prototype.isEquivalent=function(e){return e instanceof t&&Vo(this.params,e.params)&&Vo(this.statements,e.statements)},t.prototype.visitStatement=function(e,t){return e.visitDeclareFunctionStmt(this,t)},t}(vs),gs=function(e){function t(t,n){var r=e.call(this,null,n)||this;return r.expr=t,r}return n(t,e),t.prototype.isEquivalent=function(e){return e instanceof t&&this.expr.isEquivalent(e.expr)},t.prototype.visitStatement=function(e,t){return e.visitExpressionStmt(this,t)},t}(vs),_s=function(e){function t(t,n){var r=e.call(this,null,n)||this;return r.value=t,r}return n(t,e),t.prototype.isEquivalent=function(e){return e instanceof t&&this.value.isEquivalent(e.value)},t.prototype.visitStatement=function(e,t){return e.visitReturnStmt(this,t)},t}(vs),Es=function(){function e(e,t){this.modifiers=t,t||(this.modifiers=[]),this.type=e||null}return e.prototype.hasModifier=function(e){return-1!==this.modifiers.indexOf(e)},e}(),xs=function(e){function t(t,n,r,i){void 0===r&&(r=null);var o=e.call(this,n,r)||this;return o.name=t,o.initializer=i,o}return n(t,e),t.prototype.isEquivalent=function(e){return this.name===e.name},t}(Es),Ss=function(e){function t(t,n,r,i,o){void 0===o&&(o=null);var s=e.call(this,i,o)||this;return s.name=t,s.params=n,s.body=r,s}return n(t,e),t.prototype.isEquivalent=function(e){return this.name===e.name&&Vo(this.body,e.body)},t}(Es),ws=function(e){function t(t,n,r,i){void 0===i&&(i=null);var o=e.call(this,r,i)||this;return o.name=t,o.body=n,o}return n(t,e),t.prototype.isEquivalent=function(e){return this.name===e.name&&Vo(this.body,e.body)},t}(Es),Cs=function(e){function t(t,n,r,i,o,s,a,u){void 0===a&&(a=null);var p=e.call(this,a,u)||this;return p.name=t,p.parent=n,p.fields=r,p.getters=i,p.constructorMethod=o,p.methods=s,p}return n(t,e),t.prototype.isEquivalent=function(e){return e instanceof t&&this.name===e.name&&Bo(this.parent,e.parent)&&Vo(this.fields,e.fields)&&Vo(this.getters,e.getters)&&this.constructorMethod.isEquivalent(e.constructorMethod)&&Vo(this.methods,e.methods)},t.prototype.visitStatement=function(e,t){return e.visitDeclareClassStmt(this,t)},t}(vs),Ts=function(e){function t(t,n,r,i){void 0===r&&(r=[]);var o=e.call(this,null,i)||this;return o.condition=t,o.trueCase=n,o.falseCase=r,o}return n(t,e),t.prototype.isEquivalent=function(e){return e instanceof t&&this.condition.isEquivalent(e.condition)&&Vo(this.trueCase,e.trueCase)&&Vo(this.falseCase,e.falseCase)},t.prototype.visitStatement=function(e,t){return e.visitIfStmt(this,t)},t}(vs),bs=function(e){function t(t,n,r){void 0===n&&(n=!1);var i=e.call(this,null,r)||this;return i.comment=t,i.multiline=n,i}return n(t,e),t.prototype.isEquivalent=function(e){return e instanceof t},t.prototype.visitStatement=function(e,t){return e.visitCommentStmt(this,t)},t}(vs),Ms=function(e){function t(t,n){void 0===t&&(t=[]);var r=e.call(this,null,n)||this;return r.tags=t,r}return n(t,e),t.prototype.isEquivalent=function(e){return e instanceof t&&this.toString()===e.toString()},t.prototype.visitStatement=function(e,t){return e.visitJSDocCommentStmt(this,t)},t.prototype.toString=function(){return function e(t){if(0===t.length)return"";var n,r,o="*\n";try{for(var s=i(t),a=s.next();!a.done;a=s.next())o+=" *",o+=Xs(a.value).replace(/\n/g,"\n * "),o+="\n"}catch(e){n={error:e}}finally{try{a&&!a.done&&(r=s.return)&&r.call(s)}finally{if(n)throw n.error}}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
   */(this.tags)},t}(vs),Ps=function(e){function t(t,n,r){var i=e.call(this,null,r)||this;return i.bodyStmts=t,i.catchStmts=n,i}return n(t,e),t.prototype.isEquivalent=function(e){return e instanceof t&&Vo(this.bodyStmts,e.bodyStmts)&&Vo(this.catchStmts,e.catchStmts)},t.prototype.visitStatement=function(e,t){return e.visitTryCatchStmt(this,t)},t}(vs),As=function(e){function t(t,n){var r=e.call(this,null,n)||this;return r.error=t,r}return n(t,e),t.prototype.isEquivalent=function(e){return e instanceof Ps&&this.error.isEquivalent(e.error)},t.prototype.visitStatement=function(e,t){return e.visitThrowStmt(this,t)},t}(vs),Ns=function(){function e(){}return e.prototype.transformExpr=function(e,t){return e},e.prototype.transformStmt=function(e,t){return e},e.prototype.visitReadVarExpr=function(e,t){return this.transformExpr(e,t)},e.prototype.visitWriteVarExpr=function(e,t){return this.transformExpr(new Wo(e.name,e.value.visitExpression(this,t),e.type,e.sourceSpan),t)},e.prototype.visitWriteKeyExpr=function(e,t){return this.transformExpr(new zo(e.receiver.visitExpression(this,t),e.index.visitExpression(this,t),e.value.visitExpression(this,t),e.type,e.sourceSpan),t)},e.prototype.visitWritePropExpr=function(e,t){return this.transformExpr(new Ko(e.receiver.visitExpression(this,t),e.name,e.value.visitExpression(this,t),e.type,e.sourceSpan),t)},e.prototype.visitInvokeMethodExpr=function(e,t){var n=e.builtin||e.name;return this.transformExpr(new Qo(e.receiver.visitExpression(this,t),n,this.visitAllExpressions(e.args,t),e.type,e.sourceSpan),t)},e.prototype.visitInvokeFunctionExpr=function(e,t){return this.transformExpr(new Go(e.fn.visitExpression(this,t),this.visitAllExpressions(e.args,t),e.type,e.sourceSpan),t)},e.prototype.visitInstantiateExpr=function(e,t){return this.transformExpr(new Yo(e.classExpr.visitExpression(this,t),this.visitAllExpressions(e.args,t),e.type,e.sourceSpan),t)},e.prototype.visitLiteralExpr=function(e,t){return this.transformExpr(e,t)},e.prototype.visitExternalExpr=function(e,t){return this.transformExpr(e,t)},e.prototype.visitConditionalExpr=function(e,t){return this.transformExpr(new es(e.condition.visitExpression(this,t),e.trueCase.visitExpression(this,t),e.falseCase.visitExpression(this,t),e.type,e.sourceSpan),t)},e.prototype.visitNotExpr=function(e,t){return this.transformExpr(new ts(e.condition.visitExpression(this,t),e.sourceSpan),t)},e.prototype.visitAssertNotNullExpr=function(e,t){return this.transformExpr(new ns(e.condition.visitExpression(this,t),e.sourceSpan),t)},e.prototype.visitCastExpr=function(e,t){return this.transformExpr(new rs(e.value.visitExpression(this,t),e.type,e.sourceSpan),t)},e.prototype.visitFunctionExpr=function(e,t){return this.transformExpr(new os(e.params,this.visitAllStatements(e.statements,t),e.type,e.sourceSpan),t)},e.prototype.visitBinaryOperatorExpr=function(e,t){return this.transformExpr(new ss(e.operator,e.lhs.visitExpression(this,t),e.rhs.visitExpression(this,t),e.type,e.sourceSpan),t)},e.prototype.visitReadPropExpr=function(e,t){return this.transformExpr(new as(e.receiver.visitExpression(this,t),e.name,e.type,e.sourceSpan),t)},e.prototype.visitReadKeyExpr=function(e,t){return this.transformExpr(new us(e.receiver.visitExpression(this,t),e.index.visitExpression(this,t),e.type,e.sourceSpan),t)},e.prototype.visitLiteralArrayExpr=function(e,t){return this.transformExpr(new ps(this.visitAllExpressions(e.entries,t),e.type,e.sourceSpan),t)},e.prototype.visitLiteralMapExpr=function(e,t){var n=this,r=e.entries.map(function(e){return new ls(e.key,e.value.visitExpression(n,t),e.quoted)}),i=new Oo(e.valueType,null);return this.transformExpr(new cs(r,i,e.sourceSpan),t)},e.prototype.visitCommaExpr=function(e,t){return this.transformExpr(new hs(this.visitAllExpressions(e.parts,t),e.sourceSpan),t)},e.prototype.visitAllExpressions=function(e,t){var n=this;return e.map(function(e){return e.visitExpression(n,t)})},e.prototype.visitDeclareVarStmt=function(e,t){var n=e.value&&e.value.visitExpression(this,t);return this.transformStmt(new ms(e.name,n,e.type,e.modifiers,e.sourceSpan),t)},e.prototype.visitDeclareFunctionStmt=function(e,t){return this.transformStmt(new ys(e.name,e.params,this.visitAllStatements(e.statements,t),e.type,e.modifiers,e.sourceSpan),t)},e.prototype.visitExpressionStmt=function(e,t){return this.transformStmt(new gs(e.expr.visitExpression(this,t),e.sourceSpan),t)},e.prototype.visitReturnStmt=function(e,t){return this.transformStmt(new _s(e.value.visitExpression(this,t),e.sourceSpan),t)},e.prototype.visitDeclareClassStmt=function(e,t){var n=this,r=e.parent.visitExpression(this,t),i=e.getters.map(function(e){return new ws(e.name,n.visitAllStatements(e.body,t),e.type,e.modifiers)}),o=e.constructorMethod&&new Ss(e.constructorMethod.name,e.constructorMethod.params,this.visitAllStatements(e.constructorMethod.body,t),e.constructorMethod.type,e.constructorMethod.modifiers),s=e.methods.map(function(e){return new Ss(e.name,e.params,n.visitAllStatements(e.body,t),e.type,e.modifiers)});return this.transformStmt(new Cs(e.name,r,e.fields,i,o,s,e.modifiers,e.sourceSpan),t)},e.prototype.visitIfStmt=function(e,t){return this.transformStmt(new Ts(e.condition.visitExpression(this,t),this.visitAllStatements(e.trueCase,t),this.visitAllStatements(e.falseCase,t),e.sourceSpan),t)},e.prototype.visitTryCatchStmt=function(e,t){return this.transformStmt(new Ps(this.visitAllStatements(e.bodyStmts,t),this.visitAllStatements(e.catchStmts,t),e.sourceSpan),t)},e.prototype.visitThrowStmt=function(e,t){return this.transformStmt(new As(e.error.visitExpression(this,t),e.sourceSpan),t)},e.prototype.visitCommentStmt=function(e,t){return this.transformStmt(e,t)},e.prototype.visitJSDocCommentStmt=function(e,t){return this.transformStmt(e,t)},e.prototype.visitAllStatements=function(e,t){var n=this;return e.map(function(e){return e.visitStatement(n,t)})},e}(),ks=function(){function e(){}return e.prototype.visitType=function(e,t){return e},e.prototype.visitExpression=function(e,t){return e.type&&e.type.visitType(this,t),e},e.prototype.visitBuiltinType=function(e,t){return this.visitType(e,t)},e.prototype.visitExpressionType=function(e,t){return e.value.visitExpression(this,t),this.visitType(e,t)},e.prototype.visitArrayType=function(e,t){return this.visitType(e,t)},e.prototype.visitMapType=function(e,t){return this.visitType(e,t)},e.prototype.visitReadVarExpr=function(e,t){return this.visitExpression(e,t)},e.prototype.visitWriteVarExpr=function(e,t){return e.value.visitExpression(this,t),this.visitExpression(e,t)},e.prototype.visitWriteKeyExpr=function(e,t){return e.receiver.visitExpression(this,t),e.index.visitExpression(this,t),e.value.visitExpression(this,t),this.visitExpression(e,t)},e.prototype.visitWritePropExpr=function(e,t){return e.receiver.visitExpression(this,t),e.value.visitExpression(this,t),this.visitExpression(e,t)},e.prototype.visitInvokeMethodExpr=function(e,t){return e.receiver.visitExpression(this,t),this.visitAllExpressions(e.args,t),this.visitExpression(e,t)},e.prototype.visitInvokeFunctionExpr=function(e,t){return e.fn.visitExpression(this,t),this.visitAllExpressions(e.args,t),this.visitExpression(e,t)},e.prototype.visitInstantiateExpr=function(e,t){return e.classExpr.visitExpression(this,t),this.visitAllExpressions(e.args,t),this.visitExpression(e,t)},e.prototype.visitLiteralExpr=function(e,t){return this.visitExpression(e,t)},e.prototype.visitExternalExpr=function(e,t){var n=this;return e.typeParams&&e.typeParams.forEach(function(e){return e.visitType(n,t)}),this.visitExpression(e,t)},e.prototype.visitConditionalExpr=function(e,t){return e.condition.visitExpression(this,t),e.trueCase.visitExpression(this,t),e.falseCase.visitExpression(this,t),this.visitExpression(e,t)},e.prototype.visitNotExpr=function(e,t){return e.condition.visitExpression(this,t),this.visitExpression(e,t)},e.prototype.visitAssertNotNullExpr=function(e,t){return e.condition.visitExpression(this,t),this.visitExpression(e,t)},e.prototype.visitCastExpr=function(e,t){return e.value.visitExpression(this,t),this.visitExpression(e,t)},e.prototype.visitFunctionExpr=function(e,t){return this.visitAllStatements(e.statements,t),this.visitExpression(e,t)},e.prototype.visitBinaryOperatorExpr=function(e,t){return e.lhs.visitExpression(this,t),e.rhs.visitExpression(this,t),this.visitExpression(e,t)},e.prototype.visitReadPropExpr=function(e,t){return e.receiver.visitExpression(this,t),this.visitExpression(e,t)},e.prototype.visitReadKeyExpr=function(e,t){return e.receiver.visitExpression(this,t),e.index.visitExpression(this,t),this.visitExpression(e,t)},e.prototype.visitLiteralArrayExpr=function(e,t){return this.visitAllExpressions(e.entries,t),this.visitExpression(e,t)},e.prototype.visitLiteralMapExpr=function(e,t){var n=this;return e.entries.forEach(function(e){return e.value.visitExpression(n,t)}),this.visitExpression(e,t)},e.prototype.visitCommaExpr=function(e,t){return this.visitAllExpressions(e.parts,t),this.visitExpression(e,t)},e.prototype.visitAllExpressions=function(e,t){var n=this;e.forEach(function(e){return e.visitExpression(n,t)})},e.prototype.visitDeclareVarStmt=function(e,t){return e.value&&e.value.visitExpression(this,t),e.type&&e.type.visitType(this,t),e},e.prototype.visitDeclareFunctionStmt=function(e,t){return this.visitAllStatements(e.statements,t),e.type&&e.type.visitType(this,t),e},e.prototype.visitExpressionStmt=function(e,t){return e.expr.visitExpression(this,t),e},e.prototype.visitReturnStmt=function(e,t){return e.value.visitExpression(this,t),e},e.prototype.visitDeclareClassStmt=function(e,t){var n=this;return e.parent.visitExpression(this,t),e.getters.forEach(function(e){return n.visitAllStatements(e.body,t)}),e.constructorMethod&&this.visitAllStatements(e.constructorMethod.body,t),e.methods.forEach(function(e){return n.visitAllStatements(e.body,t)}),e},e.prototype.visitIfStmt=function(e,t){return e.condition.visitExpression(this,t),this.visitAllStatements(e.trueCase,t),this.visitAllStatements(e.falseCase,t),e},e.prototype.visitTryCatchStmt=function(e,t){return this.visitAllStatements(e.bodyStmts,t),this.visitAllStatements(e.catchStmts,t),e},e.prototype.visitThrowStmt=function(e,t){return e.error.visitExpression(this,t),e},e.prototype.visitCommentStmt=function(e,t){return e},e.prototype.visitJSDocCommentStmt=function(e,t){return e},e.prototype.visitAllStatements=function(e,t){var n=this;e.forEach(function(e){return e.visitStatement(n,t)})},e}();function Is(e){var t=new Os;return t.visitAllStatements(e,null),t.varNames}var Os=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.varNames=new Set,t}return n(t,e),t.prototype.visitDeclareFunctionStmt=function(e,t){return e},t.prototype.visitDeclareClassStmt=function(e,t){return e},t.prototype.visitReadVarExpr=function(e,t){return e.name&&this.varNames.add(e.name),null},t}(ks),Rs=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.externalReferences=[],t}return n(t,e),t.prototype.visitExternalExpr=function(t,n){return this.externalReferences.push(t.value),e.prototype.visitExternalExpr.call(this,t,n)},t}(ks);function Ds(e,t){if(!t)return e;var n=new Fs(t);return e.visitStatement(n,null)}function Ls(e,t){if(!t)return e;var n=new Fs(t);return e.visitExpression(n,null)}var Fs=function(e){function t(t){var n=e.call(this)||this;return n.sourceSpan=t,n}return n(t,e),t.prototype._clone=function(e){var t=Object.create(e.constructor.prototype);for(var n in e)t[n]=e[n];return t},t.prototype.transformExpr=function(e,t){return e.sourceSpan||((e=this._clone(e)).sourceSpan=this.sourceSpan),e},t.prototype.transformStmt=function(e,t){return e.sourceSpan||((e=this._clone(e)).sourceSpan=this.sourceSpan),e},t}(Ns);function Bs(e,t,n){return new Ho(e,t,n)}function Vs(e,t,n){return void 0===t&&(t=null),new $o(e,null,t,n)}function js(e,t,n){return void 0===t&&(t=null),void 0===n&&(n=null),null!=e?Us(Vs(e,t,null),n):null}function Us(e,t){return void 0===t&&(t=null),new ko(e,t)}function qs(e,t,n){return new ps(e,t,n)}function Hs(e,t){return void 0===t&&(t=null),new cs(e.map(function(e){return new ls(e.key,e.value,e.quoted)}),t,null)}function Ws(e,t,n,r,i){return new os(e,t,n,r,i)}function zs(e,t,n){return new Ts(e,t,n)}function Ks(e,t,n){return new Jo(e,t,n)}function Xs(e){var t="";if(e.tagName&&(t+=" @"+e.tagName),e.text){if(e.text.match(/\/\*|\*\//))throw new Error('JSDoc text cannot contain "/*" and "*/"');t+=" "+e.text.replace(/@/g,"\\@")}return t}function Qs(e,t,n){return void 0===n&&(n=null),V(t,new Gs(e),n)}var Gs=function(){function e(e){this.ctx=e}return e.prototype.visitArray=function(e,t){var n=this;return qs(e.map(function(e){return V(e,n,null)}),t)},e.prototype.visitStringMap=function(e,t){var n=this,r=[],i=new Set(e&&e.$quoted$);return Object.keys(e).forEach(function(t){r.push(new ls(t,V(e[t],n,null),i.has(t)))}),new cs(r,t)},e.prototype.visitPrimitive=function(e,t){return Ks(e,t)},e.prototype.visitOther=function(e,t){return e instanceof Uo?e:this.ctx.importExpr(e)},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 Ys(e,t){return{key:e,value:t,quoted:!1}}var Js=function(){function t(e,t){this.reflector=e,this.alwaysGenerateDef=t,this.tokenInjector=e.resolveExternalReference(Co.Injector)}return t.prototype.depsArray=function(e,t){var n=this;return e.map(function(e){var r,i,o=e,s=0;if(Array.isArray(e))for(var a=0;a<e.length;a++){var u=e[a];u&&("Optional"===u.ngMetadataName?s|=8:"SkipSelf"===u.ngMetadataName?s|=4:"Self"===u.ngMetadataName?s|=2:o="Inject"===u.ngMetadataName?u.token:u)}return r="string"==typeof o?Ks(o):o===n.tokenInjector?Vs(Co.INJECTOR):t.importExpr(o),i=0!==s?[r,Ks(s)]:[r],Vs(Co.inject).callFn(i)})},t.prototype.factoryFor=function(e,t){var n;if(e.useExisting)n=Vs(Co.inject).callFn([t.importExpr(e.useExisting)]);else if(e.useFactory){var r=e.deps||[];if(!(r.length>0))return t.importExpr(e.useFactory);n=t.importExpr(e.useFactory).callFn(this.depsArray(r,t))}else if(e.useValue)n=Qs(t,e.useValue);else{var i=e.useClass||e.symbol,o=this.depsArray(this.reflector.parameters(i),t);n=new Yo(t.importExpr(i),o)}return Ws([],[new _s(n)],void 0,void 0,e.symbol.name+"_Factory")},t.prototype.injectableDef=function(e,t){var n=fs;void 0!==e.providedIn&&(n=null===e.providedIn?fs:"string"==typeof e.providedIn?Ks(e.providedIn):t.importExpr(e.providedIn));var r=[Ys("factory",this.factoryFor(e,t)),Ys("token",t.importExpr(e.type.reference)),Ys("providedIn",n)];return Vs(Co.defineInjectable).callFn([Hs(r)])},t.prototype.compile=function(t,n){if(this.alwaysGenerateDef||void 0!==t.providedIn){var r=Ne(t.type),i=new Cs(r,null,[new xs("ngInjectableDef",Do,[e.StmtModifier.Static],this.injectableDef(t,n))],[],new Ss(null,[],[]),[]);n.statements.push(i)}},t}(),$s=/(\.ts|\.d\.ts|\.js|\.jsx|\.tsx)$/,Zs=/\.ngfactory\.|\.ngsummary\./,ea=/\.ngsummary\./,ta=/NgSummary$/;
  /**
   * @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 na(e,t){void 0===t&&(t=!1);var n=ia(e,t);return n[0]+".ngfactory"+oa(n[1])}function ra(e){return e.replace(Zs,".")}function ia(e,t){if(void 0===t&&(t=!1),e.endsWith(".d.ts"))return[e.slice(0,-5),t?".ts":".d.ts"];var n=e.lastIndexOf(".");return-1!==n?[e.substring(0,n),e.substring(n)]:[e,""]}function oa(e){return".tsx"===e?".ts":e}function sa(e){return e.replace($s,"")+".ngsummary.json"}function aa(e,t){void 0===t&&(t=!1);var n=ia(ra(e),t);return n[0]+".ngsummary"+n[1]}function ua(e){return e+"NgSummary"}var pa,la=/\u0275\d+/;function ca(e){return la.test(e)}!function(e){e[e.OnInit=0]="OnInit",e[e.OnDestroy=1]="OnDestroy",e[e.DoCheck=2]="DoCheck",e[e.OnChanges=3]="OnChanges",e[e.AfterContentInit=4]="AfterContentInit",e[e.AfterContentChecked=5]="AfterContentChecked",e[e.AfterViewInit=6]="AfterViewInit",e[e.AfterViewChecked=7]="AfterViewChecked"}(pa||(pa={}));var ha=[pa.OnInit,pa.OnDestroy,pa.DoCheck,pa.OnChanges,pa.AfterContentInit,pa.AfterContentChecked,pa.AfterViewInit,pa.AfterViewChecked],fa=new RegExp("(\\:not\\()|([-\\w]+)|(?:\\.([-\\w]+))|(?:\\[([-.\\w*]+)(?:=([\"']?)([^\\]\"']*)\\5)?\\])|(\\))|(\\s*,\\s*)","g"),da=function(){function e(){this.element=null,this.classNames=[],this.attrs=[],this.notSelectors=[]}return e.parse=function(t){var n,r=[],i=function(e,t){t.notSelectors.length>0&&!t.element&&0==t.classNames.length&&0==t.attrs.length&&(t.element="*"),e.push(t)},o=new e,s=o,a=!1;for(fa.lastIndex=0;n=fa.exec(t);){if(n[1]){if(a)throw new Error("Nesting :not is not allowed in a selector");a=!0,s=new e,o.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=o),n[8]){if(a)throw new Error("Multiple selectors in :not are not supported");i(r,o),o=s=new e}}return i(r,o),r},e.prototype.isElementSelector=function(){return this.hasElementSelector()&&0==this.classNames.length&&0==this.attrs.length&&0===this.notSelectors.length},e.prototype.hasElementSelector=function(){return!!this.element},e.prototype.setElement=function(e){void 0===e&&(e=null),this.element=e},e.prototype.getMatchingElementTemplate=function(){for(var e=this.element||"div",t=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 bi(e).isVoid?"<"+e+t+n+"/>":"<"+e+t+n+"></"+e+">"},e.prototype.getAttrs=function(){var e=[];return this.classNames.length>0&&e.push("class",this.classNames.join(" ")),e.concat(this.attrs)},e.prototype.addAttribute=function(e,t){void 0===t&&(t=""),this.attrs.push(e,t&&t.toLowerCase()||"")},e.prototype.addClassName=function(e){this.classNames.push(e.toLowerCase())},e.prototype.toString=function(){var e=this.element||"";if(this.classNames&&this.classNames.forEach(function(t){return e+="."+t}),this.attrs)for(var t=0;t<this.attrs.length;t+=2){var n=this.attrs[t+1];e+="["+this.attrs[t]+(n?"="+n:"")+"]"}return this.notSelectors.forEach(function(t){return e+=":not("+t+")"}),e},e}(),va=function(){function e(){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 e.createNotMatcher=function(t){var n=new e;return n.addSelectables(t,null),n},e.prototype.addSelectables=function(e,t){var n=null;e.length>1&&(n=new ma(e),this._listContexts.push(n));for(var r=0;r<e.length;r++)this._addSelectable(e[r],t,n)},e.prototype._addSelectable=function(e,t,n){var r=this,i=e.element,o=e.classNames,s=e.attrs,a=new ya(e,t,n);if(i&&(0===s.length&&0===o.length?this._addTerminal(r._elementMap,i,a):r=this._addPartial(r._elementPartialMap,i)),o)for(var u=0;u<o.length;u++){var p=o[u];0===s.length&&u===o.length-1?this._addTerminal(r._classMap,p,a):r=this._addPartial(r._classPartialMap,p)}if(s)for(u=0;u<s.length;u+=2){var l=s[u],c=s[u+1];if(u===s.length-2){var h=r._attrValueMap,f=h.get(l);f||(f=new Map,h.set(l,f)),this._addTerminal(f,c,a)}else{var d=r._attrValuePartialMap,v=d.get(l);v||(v=new Map,d.set(l,v)),r=this._addPartial(v,c)}}},e.prototype._addTerminal=function(e,t,n){var r=e.get(t);r||e.set(t,r=[]),r.push(n)},e.prototype._addPartial=function(t,n){var r=t.get(n);return r||(r=new e,t.set(n,r)),r},e.prototype.match=function(e,t){for(var n=!1,r=e.element,i=e.classNames,o=e.attrs,s=0;s<this._listContexts.length;s++)this._listContexts[s].alreadyMatched=!1;if(n=this._matchTerminal(this._elementMap,r,e,t)||n,n=this._matchPartial(this._elementPartialMap,r,e,t)||n,i)for(s=0;s<i.length;s++){var a=i[s];n=this._matchTerminal(this._classMap,a,e,t)||n,n=this._matchPartial(this._classPartialMap,a,e,t)||n}if(o)for(s=0;s<o.length;s+=2){var u=o[s],p=o[s+1],l=this._attrValueMap.get(u);p&&(n=this._matchTerminal(l,"",e,t)||n),n=this._matchTerminal(l,p,e,t)||n;var c=this._attrValuePartialMap.get(u);p&&(n=this._matchPartial(c,"",e,t)||n),n=this._matchPartial(c,p,e,t)||n}return n},e.prototype._matchTerminal=function(e,t,n,r){if(!e||"string"!=typeof t)return!1;var i=e.get(t)||[],o=e.get("*");if(o&&(i=i.concat(o)),0===i.length)return!1;for(var s=!1,a=0;a<i.length;a++)s=i[a].finalize(n,r)||s;return s},e.prototype._matchPartial=function(e,t,n,r){if(!e||"string"!=typeof t)return!1;var i=e.get(t);return!!i&&i.match(n,r)},e}(),ma=function ma(e){this.selectors=e,this.alreadyMatched=!1},ya=function(){function e(e,t,n){this.selector=e,this.cbContext=t,this.listContext=n,this.notSelectors=e.notSelectors}return e.prototype.finalize=function(e,t){var n=!0;return!(this.notSelectors.length>0)||this.listContext&&this.listContext.alreadyMatched||(n=!va.createNotMatcher(this.notSelectors).match(e,null)),!n||!t||this.listContext&&this.listContext.alreadyMatched||(this.listContext&&(this.listContext.alreadyMatched=!0),t(this.selector,this.cbContext)),n},e}(),ga=function(){function t(e,t,n,r,i,o,s,a,u,p,l,c){this._config=e,this._htmlParser=t,this._ngModuleResolver=n,this._directiveResolver=r,this._pipeResolver=i,this._summaryResolver=o,this._schemaRegistry=s,this._directiveNormalizer=a,this._console=u,this._staticSymbolCache=p,this._reflector=l,this._errorCollector=c,this._nonNormalizedDirectiveCache=new Map,this._directiveCache=new Map,this._summaryCache=new Map,this._pipeCache=new Map,this._ngModuleCache=new Map,this._ngModuleOfTypes=new Map,this._shallowModuleCache=new Map}return t.prototype.getReflector=function(){return this._reflector},t.prototype.clearCacheFor=function(e){var t=this._directiveCache.get(e);this._directiveCache.delete(e),this._nonNormalizedDirectiveCache.delete(e),this._summaryCache.delete(e),this._pipeCache.delete(e),this._ngModuleOfTypes.delete(e),this._ngModuleCache.clear(),t&&this._directiveNormalizer.clearCacheFor(t)},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(e,t){var n=null,r=function(){if(!n)throw new Error("Illegal state: Class "+t+" for type "+Z(e)+" is not compiled yet!");return n.apply(this,arguments)};return r.setDelegate=function(e){n=e,r.prototype=e.prototype},r.overriddenName=t,r},t.prototype.getGeneratedClass=function(e,t){return e instanceof Ce?this._staticSymbolCache.get(na(e.filePath),t):this._createProxyClass(e,t)},t.prototype.getComponentViewClass=function(e){return this.getGeneratedClass(e,Ie(e,0))},t.prototype.getHostComponentViewClass=function(e){return this.getGeneratedClass(e,Re(e))},t.prototype.getHostComponentType=function(e){var t=Ne({reference:e})+"_Host";if(e instanceof Ce)return this._staticSymbolCache.get(e.filePath,t);var n=function e(){};return n.overriddenName=t,n},t.prototype.getRendererType=function(e){return e instanceof Ce?this._staticSymbolCache.get(na(e.filePath),Oe(e)):{}},t.prototype.getComponentFactory=function(e,t,n,r){if(t instanceof Ce)return this._staticSymbolCache.get(na(t.filePath),De(t));var i=this.getHostComponentViewClass(t);return this._reflector.resolveExternalReference(Co.createComponentFactory)(e,t,i,n,r,[])},t.prototype.initComponentFactory=function(e,t){var n;e instanceof Ce||(n=e.ngContentSelectors).push.apply(n,s(t))},t.prototype._loadSummary=function(e,t){var n=this._summaryCache.get(e);if(!n){var r=this._summaryResolver.resolveSummary(e);this._summaryCache.set(e,(n=r?r.type:null)||null)}return n&&n.summaryKind===t?n:null},t.prototype.getHostComponentMetadata=function(e,t){var n=this.getHostComponentType(e.type.reference);t||(t=this.getHostComponentViewClass(n));var r=da.parse(e.selector)[0].getMatchingElementTemplate(),i=this._htmlParser.parse(r,"");return je.create({isHost:!0,type:{reference:n,diDeps:[],lifecycleHooks:[]},template:new Ve({encapsulation:a.None,template:r,templateUrl:"",htmlAst:i,styles:[],styleUrls:[],ngContentSelectors:[],animations:[],isInline:!0,externalStylesheets:[],interpolation:null,preserveWhitespaces:!1}),exportAs:null,changeDetection:u.Default,inputs:[],outputs:[],host:{},isComponent:!0,selector:"*",providers:[],viewProviders:[],queries:[],guards:{},viewQueries:[],componentViewType:t,rendererType:{id:"__Host__",encapsulation:a.None,styles:[],data:{}},entryComponents:[],componentFactory:null})},t.prototype.loadDirectiveMetadata=function(e,t,n){var r=this;if(this._directiveCache.has(t))return null;t=ee(t);var i=this.getNonNormalizedDirectiveMetadata(t),o=i.metadata,s=function(e){var n=new je({isHost:!1,type:o.type,isComponent:o.isComponent,selector:o.selector,exportAs:o.exportAs,changeDetection:o.changeDetection,inputs:o.inputs,outputs:o.outputs,hostListeners:o.hostListeners,hostProperties:o.hostProperties,hostAttributes:o.hostAttributes,providers:o.providers,viewProviders:o.viewProviders,queries:o.queries,guards:o.guards,viewQueries:o.viewQueries,entryComponents:o.entryComponents,componentViewType:o.componentViewType,rendererType:o.rendererType,componentFactory:o.componentFactory,template:e});return e&&r.initComponentFactory(o.componentFactory,e.ngContentSelectors),r._directiveCache.set(t,n),r._summaryCache.set(t,n.toSummary()),null};if(o.isComponent){var a=o.template,u=this._directiveNormalizer.normalizeTemplate({ngModuleType:e,componentType:t,moduleUrl:this._reflector.componentModuleUrl(t,i.annotation),encapsulation:a.encapsulation,template:a.template,templateUrl:a.templateUrl,styles:a.styles,styleUrls:a.styleUrls,animations:a.animations,interpolation:a.interpolation,preserveWhitespaces:a.preserveWhitespaces});return te(u)&&n?(this._reportError(function p(e){var t=Error("Can't compile synchronously as "+Z(e)+" is still being loaded!");return t.ngComponentType=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
   */(t),t),null):W(u,s)}return s(null),null},t.prototype.getNonNormalizedDirectiveMetadata=function(e){var t=this;if(!(e=ee(e)))return null;var n=this._nonNormalizedDirectiveCache.get(e);if(n)return n;var r=this._directiveResolver.resolve(e,!1);if(!r)return null;var i=void 0;if(_.isTypeOf(r)){ut("styles",(s=r).styles),ut("styleUrls",s.styleUrls),lt("interpolation",s.interpolation);var o=s.animations;i=new Ve({encapsulation:U(s.encapsulation),template:U(s.template),templateUrl:U(s.templateUrl),htmlAst:null,styles:s.styles||[],styleUrls:s.styleUrls||[],animations:o||[],interpolation:U(s.interpolation),isInline:!!s.template,externalStylesheets:[],ngContentSelectors:[],preserveWhitespaces:U(r.preserveWhitespaces)})}var s,a=null,u=[],p=[],l=r.selector;_.isTypeOf(r)?(a=(s=r).changeDetection,s.viewProviders&&(u=this._getProvidersMetadata(s.viewProviders,p,'viewProviders for "'+Sa(e)+'"',[],e)),s.entryComponents&&(p=_a(s.entryComponents).map(function(e){return t._getEntryComponentMetadata(e)}).concat(p)),l||(l=this._schemaRegistry.getDefaultComponentElementName())):l||(this._reportError(X("Directive "+Sa(e)+" has no selector, please add it!"),e),l="error");var c=[];null!=r.providers&&(c=this._getProvidersMetadata(r.providers,p,'providers for "'+Sa(e)+'"',[],e));var h=[],f=[];null!=r.queries&&(h=this._getQueriesMetadata(r.queries,!1,e),f=this._getQueriesMetadata(r.queries,!0,e));var d=je.create({isHost:!1,selector:l,exportAs:U(r.exportAs),isComponent:!!i,type:this._getTypeMetadata(e),template:i,changeDetection:a,inputs:r.inputs||[],outputs:r.outputs||[],host:r.host||{},providers:c||[],viewProviders:u||[],queries:h||[],guards:r.guards||{},viewQueries:f||[],entryComponents:p,componentViewType:i?this.getComponentViewClass(e):null,rendererType:i?this.getRendererType(e):null,componentFactory:null});return i&&(d.componentFactory=this.getComponentFactory(l,e,d.inputs,d.outputs)),this._nonNormalizedDirectiveCache.set(e,n={metadata:d,annotation:r}),n},t.prototype.getDirectiveMetadata=function(e){var t=this._directiveCache.get(e);return t||this._reportError(X("Illegal state: getDirectiveMetadata can only be called after loadNgModuleDirectiveAndPipeMetadata for a module that declares it. Directive "+Sa(e)+"."),e),t},t.prototype.getDirectiveSummary=function(t){var n=this._loadSummary(t,e.CompileSummaryKind.Directive);return n||this._reportError(X("Illegal state: Could not load the summary for directive "+Sa(t)+"."),t),n},t.prototype.isDirective=function(t){return!!this._loadSummary(t,e.CompileSummaryKind.Directive)||this._directiveResolver.isDirective(t)},t.prototype.isPipe=function(t){return!!this._loadSummary(t,e.CompileSummaryKind.Pipe)||this._pipeResolver.isPipe(t)},t.prototype.isNgModule=function(t){return!!this._loadSummary(t,e.CompileSummaryKind.NgModule)||this._ngModuleResolver.isNgModule(t)},t.prototype.getNgModuleSummary=function(t,n){void 0===n&&(n=null);var r=this._loadSummary(t,e.CompileSummaryKind.NgModule);if(!r){var i=this.getNgModuleMetadata(t,!1,n);(r=i?i.toSummary():null)&&this._summaryCache.set(t,r)}return r},t.prototype.loadNgModuleDirectiveAndPipeMetadata=function(e,t,n){var r=this;void 0===n&&(n=!0);var i=this.getNgModuleMetadata(e,n),o=[];return i&&(i.declaredDirectives.forEach(function(n){var i=r.loadDirectiveMetadata(e,n.reference,t);i&&o.push(i)}),i.declaredPipes.forEach(function(e){return r._loadPipeMetadata(e.reference)})),Promise.all(o)},t.prototype.getShallowModuleMetadata=function(e){var t=this._shallowModuleCache.get(e);if(t)return t;var n=Wt(this._reflector.shallowAnnotations(e),T.isTypeOf);return t={type:this._getTypeMetadata(e),rawExports:n.exports,rawImports:n.imports,rawProviders:n.providers},this._shallowModuleCache.set(e,t),t},t.prototype.getNgModuleMetadata=function(e,t,n){var r=this;void 0===t&&(t=!0),void 0===n&&(n=null),e=ee(e);var i=this._ngModuleCache.get(e);if(i)return i;var o=this._ngModuleResolver.resolve(e,t);if(!o)return null;var a=[],u=[],p=[],l=[],c=[],h=[],f=[],d=[],v=[];o.imports&&_a(o.imports).forEach(function(t){var i=void 0;if(Ea(t)?i=t:t&&t.ngModule&&(i=t.ngModule,t.providers&&h.push.apply(h,s(r._getProvidersMetadata(t.providers,f,"provider for the NgModule '"+Sa(i)+"'",[],t)))),i){if(!r._checkSelfImport(e,i))if(n||(n=new Set),n.has(i))r._reportError(X(r._getTypeDescriptor(i)+" '"+Sa(t)+"' is imported recursively by the module '"+Sa(e)+"'."),e);else{n.add(i);var o=r.getNgModuleSummary(i,n);n.delete(i),o?l.push(o):r._reportError(X("Unexpected "+r._getTypeDescriptor(t)+" '"+Sa(t)+"' imported by the module '"+Sa(e)+"'. Please add a @NgModule annotation."),e)}}else r._reportError(X("Unexpected value '"+Sa(t)+"' imported by the module '"+Sa(e)+"'"),e)}),o.exports&&_a(o.exports).forEach(function(t){if(Ea(t))if(n||(n=new Set),n.has(t))r._reportError(X(r._getTypeDescriptor(t)+" '"+Z(t)+"' is exported recursively by the module '"+Sa(e)+"'"),e);else{n.add(t);var i=r.getNgModuleSummary(t,n);n.delete(t),i?c.push(i):u.push(r._getIdentifierMetadata(t))}else r._reportError(X("Unexpected value '"+Sa(t)+"' exported by the module '"+Sa(e)+"'"),e)});var m=this._getTransitiveNgModuleMetadata(l,c);o.declarations&&_a(o.declarations).forEach(function(t){if(Ea(t)){var n=r._getIdentifierMetadata(t);if(r.isDirective(t))m.addDirective(n),a.push(n),r._addTypeToModule(t,e);else{if(!r.isPipe(t))return void r._reportError(X("Unexpected "+r._getTypeDescriptor(t)+" '"+Sa(t)+"' declared by the module '"+Sa(e)+"'. Please add a @Pipe/@Directive/@Component annotation."),e);m.addPipe(n),m.pipes.push(n),p.push(n),r._addTypeToModule(t,e)}}else r._reportError(X("Unexpected value '"+Sa(t)+"' declared by the module '"+Sa(e)+"'"),e)});var y=[],g=[];return u.forEach(function(t){if(m.directivesSet.has(t.reference))y.push(t),m.addExportedDirective(t);else{if(!m.pipesSet.has(t.reference))return void r._reportError(X("Can't export "+r._getTypeDescriptor(t.reference)+" "+Sa(t.reference)+" from "+Sa(e)+" as it was neither declared nor imported!"),e);g.push(t),m.addExportedPipe(t)}}),o.providers&&h.push.apply(h,s(this._getProvidersMetadata(o.providers,f,"provider for the NgModule '"+Sa(e)+"'",[],e))),o.entryComponents&&f.push.apply(f,s(_a(o.entryComponents).map(function(e){return r._getEntryComponentMetadata(e)}))),o.bootstrap&&_a(o.bootstrap).forEach(function(t){Ea(t)?d.push(r._getIdentifierMetadata(t)):r._reportError(X("Unexpected value '"+Sa(t)+"' used in the bootstrap property of module '"+Sa(e)+"'"),e)}),f.push.apply(f,s(d.map(function(e){return r._getEntryComponentMetadata(e.reference)}))),o.schemas&&v.push.apply(v,s(_a(o.schemas))),i=new He({type:this._getTypeMetadata(e),providers:h,entryComponents:f,bootstrapComponents:d,schemas:v,declaredDirectives:a,exportedDirectives:y,declaredPipes:p,exportedPipes:g,importedModules:l,exportedModules:c,transitiveModule:m,id:o.id||null}),f.forEach(function(e){return m.addEntryComponent(e)}),h.forEach(function(e){return m.addProvider(e,i.type)}),m.addModule(i.type),this._ngModuleCache.set(e,i),i},t.prototype._checkSelfImport=function(e,t){return e===t&&(this._reportError(X("'"+Sa(e)+"' module can't import itself"),e),!0)},t.prototype._getTypeDescriptor=function(e){if(Ea(e)){if(this.isDirective(e))return"directive";if(this.isPipe(e))return"pipe";if(this.isNgModule(e))return"module"}return e.provide?"provider":"value"},t.prototype._addTypeToModule=function(e,t){var n=this._ngModuleOfTypes.get(e);n&&n!==t?this._reportError(X("Type "+Sa(e)+" is part of the declarations of 2 modules: "+Sa(n)+" and "+Sa(t)+"! Please consider moving "+Sa(e)+" to a higher module that imports "+Sa(n)+" and "+Sa(t)+". You can also create a new NgModule that exports and includes "+Sa(e)+" then import that NgModule in "+Sa(n)+" and "+Sa(t)+"."),t):this._ngModuleOfTypes.set(e,t)},t.prototype._getTransitiveNgModuleMetadata=function(e,t){var n=new We,r=new Map;return e.concat(t).forEach(function(e){e.modules.forEach(function(e){return n.addModule(e)}),e.entryComponents.forEach(function(e){return n.addEntryComponent(e)});var t=new Set;e.providers.forEach(function(e){var i=Fe(e.provider.token),o=r.get(i);o||(o=new Set,r.set(i,o));var s=e.module.reference;!t.has(i)&&o.has(s)||(o.add(s),t.add(i),n.addProvider(e.provider,e.module))})}),t.forEach(function(e){e.exportedDirectives.forEach(function(e){return n.addExportedDirective(e)}),e.exportedPipes.forEach(function(e){return n.addExportedPipe(e)})}),e.forEach(function(e){e.exportedDirectives.forEach(function(e){return n.addDirective(e)}),e.exportedPipes.forEach(function(e){return n.addPipe(e)})}),n},t.prototype._getIdentifierMetadata=function(e){return{reference:e=ee(e)}},t.prototype.isInjectable=function(e){return this._reflector.tryAnnotations(e).some(function(e){return b.isTypeOf(e)})},t.prototype.getInjectableSummary=function(t){return{summaryKind:e.CompileSummaryKind.Injectable,type:this._getTypeMetadata(t,null,!1)}},t.prototype.getInjectableMetadata=function(t,n,r){void 0===n&&(n=null),void 0===r&&(r=!0);var i=this._loadSummary(t,e.CompileSummaryKind.Injectable),o=i?i.type:this._getTypeMetadata(t,n,r),s=this._reflector.annotations(t).filter(function(e){return b.isTypeOf(e)});if(0===s.length)return null;var a=s[s.length-1];return{symbol:t,type:o,providedIn:a.providedIn,useValue:a.useValue,useClass:a.useClass,useExisting:a.useExisting,useFactory:a.useFactory,deps:a.deps}},t.prototype._getTypeMetadata=function(e,t,n){void 0===t&&(t=null),void 0===n&&(n=!0);var r=this._getIdentifierMetadata(e);return{reference:r.reference,diDeps:this._getDependenciesMetadata(r.reference,t,n),lifecycleHooks:function i(e,t){return ha.filter(function(n){return function r(e,t,n){return e.hasLifecycleHook(n,function r(e){switch(e){case pa.OnInit:return"ngOnInit";case pa.OnDestroy:return"ngOnDestroy";case pa.DoCheck:return"ngDoCheck";case pa.OnChanges:return"ngOnChanges";case pa.AfterContentInit:return"ngAfterContentInit";case pa.AfterContentChecked:return"ngAfterContentChecked";case pa.AfterViewInit:return"ngAfterViewInit";case pa.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
   */(t))}(e,n,t)})}(this._reflector,r.reference)}},t.prototype._getFactoryMetadata=function(e,t){return void 0===t&&(t=null),{reference:e=ee(e),diDeps:this._getDependenciesMetadata(e,t)}},t.prototype.getPipeMetadata=function(e){var t=this._pipeCache.get(e);return t||this._reportError(X("Illegal state: getPipeMetadata can only be called after loadNgModuleDirectiveAndPipeMetadata for a module that declares it. Pipe "+Sa(e)+"."),e),t||null},t.prototype.getPipeSummary=function(t){var n=this._loadSummary(t,e.CompileSummaryKind.Pipe);return n||this._reportError(X("Illegal state: Could not load the summary for pipe "+Sa(t)+"."),t),n},t.prototype.getOrLoadPipeMetadata=function(e){var t=this._pipeCache.get(e);return t||(t=this._loadPipeMetadata(e)),t},t.prototype._loadPipeMetadata=function(e){e=ee(e);var t=this._pipeResolver.resolve(e),n=new Ue({type:this._getTypeMetadata(e),name:t.name,pure:!!t.pure});return this._pipeCache.set(e,n),this._summaryCache.set(e,n.toSummary()),n},t.prototype._getDependenciesMetadata=function(e,t,n){var r=this;void 0===n&&(n=!0);var i=!1,o=(t||this._reflector.parameters(e)||[]).map(function(e){var t=!1,n=!1,o=!1,s=!1,a=!1,u=null;return Array.isArray(e)?e.forEach(function(e){I.isTypeOf(e)?n=!0:N.isTypeOf(e)?o=!0:k.isTypeOf(e)?s=!0:A.isTypeOf(e)?a=!0:c.isTypeOf(e)?(t=!0,u=e.attributeName):p.isTypeOf(e)?u=e.token:l.isTypeOf(e)||e instanceof Ce?u=e:Ea(e)&&null==u&&(u=e)}):u=e,null==u?(i=!0,null):{isAttribute:t,isHost:n,isSelf:o,isSkipSelf:s,isOptional:a,token:r._getTokenMetadata(u)}});if(i){var s=o.map(function(e){return e?Sa(e.token):"?"}).join(", "),a="Can't resolve all parameters for "+Sa(e)+": ("+s+").";n||this._config.strictInjectionParameters?this._reportError(X(a),e):this._console.warn("Warning: "+a+" This will become an error in Angular v6.x")}return o},t.prototype._getTokenMetadata=function(e){return"string"==typeof(e=ee(e))?{value:e}:{identifier:{reference:e}}},t.prototype._getProvidersMetadata=function(e,t,n,r,i){var o=this;return void 0===r&&(r=[]),e.forEach(function(a,u){if(Array.isArray(a))o._getProvidersMetadata(a,t,n,r);else{var p=void 0;if((a=ee(a))&&"object"==typeof a&&a.hasOwnProperty("provide"))o._validateProvider(a),p=new Ke(a.provide,a);else{if(!Ea(a)){if(void 0===a)return void o._reportError(X("Encountered undefined provider! Usually this means you have a circular dependencies (might be caused by using 'barrel' index.ts files."));var l=e.reduce(function(e,t,n){return n<u?e.push(""+Sa(t)):n==u?e.push("?"+Sa(t)+"?"):n==u+1&&e.push("..."),e},[]).join(", ");return void o._reportError(X("Invalid "+(n||"provider")+" - only instances of Provider and Type are allowed, got: ["+l+"]"),i)}p=new Ke(a,{useClass:a})}p.token===o._reflector.resolveExternalReference(Co.ANALYZE_FOR_ENTRY_COMPONENTS)?t.push.apply(t,s(o._getEntryComponentsFromProvider(p,i))):r.push(o.getProviderMetadata(p))}}),r},t.prototype._validateProvider=function(e){e.hasOwnProperty("useClass")&&null==e.useClass&&this._reportError(X("Invalid provider for "+Sa(e.provide)+". useClass cannot be "+e.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(e,t){var n=this,r=[],i=[];return e.useFactory||e.useExisting||e.useClass?(this._reportError(X("The ANALYZE_FOR_ENTRY_COMPONENTS token only supports useValue!"),t),[]):e.multi?(function o(e,t){V(e,new xa,t)}(e.useValue,i),i.forEach(function(e){var t=n._getEntryComponentMetadata(e.reference,!1);t&&r.push(t)}),r):(this._reportError(X("The ANALYZE_FOR_ENTRY_COMPONENTS token only supports 'multi = true'!"),t),[])},t.prototype._getEntryComponentMetadata=function(t,n){void 0===n&&(n=!0);var r=this.getNonNormalizedDirectiveMetadata(t);if(r&&r.metadata.isComponent)return{componentType:t,componentFactory:r.metadata.componentFactory};var i=this._loadSummary(t,e.CompileSummaryKind.Directive);if(i&&i.isComponent)return{componentType:t,componentFactory:i.componentFactory};if(n)throw X(t.name+" cannot be used as an entry component.");return null},t.prototype._getInjectableTypeMetadata=function(t,n){void 0===n&&(n=null);var r=this._loadSummary(t,e.CompileSummaryKind.Injectable);return r?r.type:this._getTypeMetadata(t,n)},t.prototype.getProviderMetadata=function(e){var t=void 0,n=null,r=null,i=this._getTokenMetadata(e.token);return e.useClass?(t=(n=this._getInjectableTypeMetadata(e.useClass,e.dependencies)).diDeps,e.token===e.useClass&&(i={identifier:n})):e.useFactory&&(t=(r=this._getFactoryMetadata(e.useFactory,e.dependencies)).diDeps),{token:i,useClass:n,useValue:e.useValue,useFactory:r,useExisting:e.useExisting?this._getTokenMetadata(e.useExisting):void 0,deps:t,multi:e.multi}},t.prototype._getQueriesMetadata=function(e,t,n){var r=this,i=[];return Object.keys(e).forEach(function(o){var s=e[o];s.isViewQuery===t&&i.push(r._getQueryMetadata(s,o,n))}),i},t.prototype._queryVarBindings=function(e){return e.split(/\s*,\s*/)},t.prototype._getQueryMetadata=function(e,t,n){var r,i=this;return"string"==typeof e.selector?r=this._queryVarBindings(e.selector).map(function(e){return i._getTokenMetadata(e)}):e.selector?r=[this._getTokenMetadata(e.selector)]:(this._reportError(X("Can't construct a query for the property \""+t+'" of "'+Sa(n)+"\" since the query selector wasn't defined."),n),r=[]),{selectors:r,first:e.first,descendants:e.descendants,propertyName:t,read:e.read?this._getTokenMetadata(e.read):null}},t.prototype._reportError=function(e,t,n){if(!this._errorCollector)throw e;this._errorCollector(e,t),n&&this._errorCollector(e,n)},t}();function _a(e){return function t(e){return e?Array.from(new Set(e)):[]}(function e(t,n){if(void 0===n&&(n=[]),t)for(var r=0;r<t.length;r++){var i=ee(t[r]);Array.isArray(i)?e(i,n):n.push(i)}return n}(e))}function Ea(e){return e instanceof Ce||e instanceof O}var xa=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return n(t,e),t.prototype.visitOther=function(e,t){t.push({reference:e})},t}(q);function Sa(e){return e instanceof Ce?e.name+" in "+e.filePath:Z(e)}var wa=function(e){function t(t,n){return e.call(this,n,t)||this}return n(t,e),t}(Pr),Ca=function Ca(e,t){var n=this;this.reflector=e,this.component=t,this.errors=[],this.viewQueries=function r(e){var t=1,n=new Map;return e.viewQueries&&e.viewQueries.forEach(function(e){return Na(n,{meta:e,queryId:t++})}),n}(t),this.viewProviders=new Map,t.viewProviders.forEach(function(e){null==n.viewProviders.get(Fe(e.token))&&n.viewProviders.set(Fe(e.token),!0)})},Ta=function(){function t(t,n,r,i,o,s,a,u,p){var l=this;this.viewContext=t,this._parent=n,this._isViewRoot=r,this._directiveAsts=i,this._sourceSpan=p,this._transformedProviders=new Map,this._seenProviders=new Map,this._queriedTokens=new Map,this.transformedHasViewContainer=!1,this._attrs={},o.forEach(function(e){return l._attrs[e.name]=e.value});var c=i.map(function(e){return e.directive});if(this._allProviders=function h(t,n,r){var i=new Map;return t.forEach(function(t){Aa([{token:{identifier:t.type},useClass:t.type}],t.isComponent?e.ProviderAstType.Component:e.ProviderAstType.Directive,!0,n,r,i,!1)}),t.filter(function(e){return e.isComponent}).concat(t.filter(function(e){return!e.isComponent})).forEach(function(t){Aa(t.providers,e.ProviderAstType.PublicService,!1,n,r,i,!1),Aa(t.viewProviders,e.ProviderAstType.PrivateService,!1,n,r,i,!1)}),i}(c,p,t.errors),this._contentQueries=function f(e,t){var n=e,r=new Map;return t.forEach(function(e,t){e.queries&&e.queries.forEach(function(e){return Na(r,{meta:e,queryId:n++})})}),r}(u,c),Array.from(this._allProviders.values()).forEach(function(e){l._addQueryReadsTo(e.token,e.token,l._queriedTokens)}),a){var d=bo(this.viewContext.reflector,Co.TemplateRef);this._addQueryReadsTo(d,d,this._queriedTokens)}s.forEach(function(e){var t=e.value||bo(l.viewContext.reflector,Co.ElementRef);l._addQueryReadsTo({value:e.name},t,l._queriedTokens)}),this._queriedTokens.get(this.viewContext.reflector.resolveExternalReference(Co.ViewContainerRef))&&(this.transformedHasViewContainer=!0),Array.from(this._allProviders.values()).forEach(function(e){(e.eager||l._queriedTokens.get(Fe(e.token)))&&l._getOrCreateLocalProvider(e.providerType,e.token,!0)})}return t.prototype.afterElement=function(){var e=this;Array.from(this._allProviders.values()).forEach(function(t){e._getOrCreateLocalProvider(t.providerType,t.token,!1)})},Object.defineProperty(t.prototype,"transformProviders",{get:function(){var e=[],t=[];return this._transformedProviders.forEach(function(n){n.eager?t.push(n):e.push(n)}),e.concat(t)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"transformedDirectiveAsts",{get:function(){var e=this.transformProviders.map(function(e){return e.token.identifier}),t=this._directiveAsts.slice();return t.sort(function(t,n){return e.indexOf(t.directive.type)-e.indexOf(n.directive.type)}),t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"queryMatches",{get:function(){var e=[];return this._queriedTokens.forEach(function(t){e.push.apply(e,s(t))}),e},enumerable:!0,configurable:!0}),t.prototype._addQueryReadsTo=function(e,t,n){this._getQueriesFor(e).forEach(function(e){var r=e.meta.read||t,i=Fe(r),o=n.get(i);o||n.set(i,o=[]),o.push({queryId:e.queryId,value:r})})},t.prototype._getQueriesFor=function(e){for(var t,n=[],r=this,i=0;null!==r;)(t=r._contentQueries.get(Fe(e)))&&n.push.apply(n,s(t.filter(function(e){return e.meta.descendants||i<=1}))),r._directiveAsts.length>0&&i++,r=r._parent;return(t=this.viewContext.viewQueries.get(Fe(e)))&&n.push.apply(n,s(t)),n},t.prototype._getOrCreateLocalProvider=function(t,n,r){var i=this,o=this._allProviders.get(Fe(n));if(!o||(t===e.ProviderAstType.Directive||t===e.ProviderAstType.PublicService)&&o.providerType===e.ProviderAstType.PrivateService||(t===e.ProviderAstType.PrivateService||t===e.ProviderAstType.PublicService)&&o.providerType===e.ProviderAstType.Builtin)return null;var s=this._transformedProviders.get(Fe(n));if(s)return s;if(null!=this._seenProviders.get(Fe(n)))return this.viewContext.errors.push(new wa("Cannot instantiate cyclic dependency! "+Le(n),this._sourceSpan)),null;this._seenProviders.set(Fe(n),!0);var a=o.providers.map(function(e){var t=e.useValue,n=e.useExisting,s=void 0;if(null!=e.useExisting){var a=i._getDependency(o.providerType,{token:e.useExisting},r);null!=a.token?n=a.token:(n=null,t=a.value)}else e.useFactory?s=(e.deps||e.useFactory.diDeps).map(function(e){return i._getDependency(o.providerType,e,r)}):e.useClass&&(s=(e.deps||e.useClass.diDeps).map(function(e){return i._getDependency(o.providerType,e,r)}));return Ma(e,{useExisting:n,useValue:t,deps:s})});return s=Pa(o,{eager:r,providers:a}),this._transformedProviders.set(Fe(n),s),s},t.prototype._getLocalDependency=function(t,n,r){if(void 0===r&&(r=!1),n.isAttribute){var i=this._attrs[n.token.value];return{isValue:!0,value:null==i?null:i}}if(null!=n.token){if(t===e.ProviderAstType.Directive||t===e.ProviderAstType.Component){if(Fe(n.token)===this.viewContext.reflector.resolveExternalReference(Co.Renderer)||Fe(n.token)===this.viewContext.reflector.resolveExternalReference(Co.ElementRef)||Fe(n.token)===this.viewContext.reflector.resolveExternalReference(Co.ChangeDetectorRef)||Fe(n.token)===this.viewContext.reflector.resolveExternalReference(Co.TemplateRef))return n;Fe(n.token)===this.viewContext.reflector.resolveExternalReference(Co.ViewContainerRef)&&(this.transformedHasViewContainer=!0)}if(Fe(n.token)===this.viewContext.reflector.resolveExternalReference(Co.Injector))return n;if(null!=this._getOrCreateLocalProvider(t,n.token,r))return n}return null},t.prototype._getDependency=function(t,n,r){void 0===r&&(r=!1);var i=this,o=r,s=null;if(n.isSkipSelf||(s=this._getLocalDependency(t,n,r)),n.isSelf)!s&&n.isOptional&&(s={isValue:!0,value:null});else{for(;!s&&i._parent;){var a=i;i=i._parent,a._isViewRoot&&(o=!1),s=i._getLocalDependency(e.ProviderAstType.PublicService,n,o)}s||(s=!n.isHost||this.viewContext.component.isHost||this.viewContext.component.type.reference===Fe(n.token)||null!=this.viewContext.viewProviders.get(Fe(n.token))?n:n.isOptional?{isValue:!0,value:null}:null)}return s||this.viewContext.errors.push(new wa("No provider for "+Le(n.token),this._sourceSpan)),s},t}(),ba=function(){function t(t,n,r,i){var o=this;this.reflector=t,this._transformedProviders=new Map,this._seenProviders=new Map,this._errors=[],this._allProviders=new Map,n.transitiveModule.modules.forEach(function(t){Aa([{token:{identifier:t},useClass:t}],e.ProviderAstType.PublicService,!0,i,o._errors,o._allProviders,!0)}),Aa(n.transitiveModule.providers.map(function(e){return e.provider}).concat(r),e.ProviderAstType.PublicService,!1,i,this._errors,this._allProviders,!1)}return t.prototype.parse=function(){var e=this;if(Array.from(this._allProviders.values()).forEach(function(t){e._getOrCreateLocalProvider(t.token,t.eager)}),this._errors.length>0){var t=this._errors.join("\n");throw new Error("Provider parse errors:\n"+t)}var n=[],r=[];return this._transformedProviders.forEach(function(e){e.eager?r.push(e):n.push(e)}),n.concat(r)},t.prototype._getOrCreateLocalProvider=function(e,t){var n=this,r=this._allProviders.get(Fe(e));if(!r)return null;var i=this._transformedProviders.get(Fe(e));if(i)return i;if(null!=this._seenProviders.get(Fe(e)))return this._errors.push(new wa("Cannot instantiate cyclic dependency! "+Le(e),r.sourceSpan)),null;this._seenProviders.set(Fe(e),!0);var o=r.providers.map(function(e){var i=e.useValue,o=e.useExisting,s=void 0;if(null!=e.useExisting){var a=n._getDependency({token:e.useExisting},t,r.sourceSpan);null!=a.token?o=a.token:(o=null,i=a.value)}else e.useFactory?s=(e.deps||e.useFactory.diDeps).map(function(e){return n._getDependency(e,t,r.sourceSpan)}):e.useClass&&(s=(e.deps||e.useClass.diDeps).map(function(e){return n._getDependency(e,t,r.sourceSpan)}));return Ma(e,{useExisting:o,useValue:i,deps:s})});return i=Pa(r,{eager:t,providers:o}),this._transformedProviders.set(Fe(e),i),i},t.prototype._getDependency=function(e,t,n){return void 0===t&&(t=!1),e.isSkipSelf||null==e.token||Fe(e.token)===this.reflector.resolveExternalReference(Co.Injector)||Fe(e.token)===this.reflector.resolveExternalReference(Co.ComponentFactoryResolver)||this._getOrCreateLocalProvider(e.token,t),e},t}();function Ma(e,t){return{token:e.token,useClass:e.useClass,useExisting:t.useExisting,useFactory:e.useFactory,useValue:t.useValue,deps:t.deps,multi:e.multi}}function Pa(e,t){return new me(e.token,e.multiProvider,e.eager||t.eager,t.providers,e.providerType,e.lifecycleHooks,e.sourceSpan,e.isModule)}function Aa(e,t,n,r,i,o,s){e.forEach(function(e){var a=o.get(Fe(e.token));null!=a&&!!a.multiProvider!=!!e.multi&&i.push(new wa("Mixing multi and non multi provider is not possible for token "+Le(a.token),r)),a?(e.multi||(a.providers.length=0),a.providers.push(e)):(a=new me(e.token,!!e.multi,n||!(e.useClass||e.useExisting||e.useFactory),[e],t,e.token.identifier&&e.token.identifier.lifecycleHooks?e.token.identifier.lifecycleHooks:[],r,s),o.set(Fe(e.token),a))})}function Na(e,t){t.meta.selectors.forEach(function(n){var r=e.get(Fe(n));r||(r=[],e.set(Fe(n),r)),r.push(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 ka(t,n){var r=0;n.eager||(r|=4096),n.providerType===e.ProviderAstType.PrivateService&&(r|=8192),n.isModule&&(r|=1073741824),n.lifecycleHooks.forEach(function(t){t!==pa.OnDestroy&&n.providerType!==e.ProviderAstType.Directive&&n.providerType!==e.ProviderAstType.Component||(r|=Da(t))});var i=n.multiProvider?function o(e,t,n){var r=[],i=[],o=n.map(function(t,n){var r;if(t.useClass){var i=s(n,t.deps||t.useClass.diDeps);r=e.importExpr(t.useClass.reference).instantiate(i)}else t.useFactory?(i=s(n,t.deps||t.useFactory.diDeps),r=e.importExpr(t.useFactory.reference).callFn(i)):r=t.useExisting?(i=s(n,[{token:t.useExisting}]))[0]:Qs(e,t.useValue);return r});return{providerExpr:Ws(i,[new _s(qs(o))],Do),flags:1024|t,depsExpr:qs(r)};function s(t,n){return n.map(function(n,o){var s="p"+t+"_"+o;return i.push(new is(s,Ro)),r.push(Ra(e,n)),Bs(s)})}}(t,r,n.providers):Ia(t,r,n.providerType,n.providers[0]);return{providerExpr:i.providerExpr,flags:i.flags,depsExpr:i.depsExpr,tokenExpr:Oa(t,n.token)}}function Ia(t,n,r,i){var o,s;return r===e.ProviderAstType.Directive||r===e.ProviderAstType.Component?(o=t.importExpr(i.useClass.reference),n|=16384,s=i.deps||i.useClass.diDeps):i.useClass?(o=t.importExpr(i.useClass.reference),n|=512,s=i.deps||i.useClass.diDeps):i.useFactory?(o=t.importExpr(i.useFactory.reference),n|=1024,s=i.deps||i.useFactory.diDeps):i.useExisting?(o=fs,n|=2048,s=[{token:i.useExisting}]):(o=Qs(t,i.useValue),n|=256,s=[]),{providerExpr:o,flags:n,depsExpr:qs(s.map(function(e){return Ra(t,e)}))}}function Oa(e,t){return t.identifier?e.importExpr(t.identifier.reference):Ks(t.value)}function Ra(e,t){var n=t.isValue?Qs(e,t.value):Oa(e,t.token),r=0;return t.isSkipSelf&&(r|=1),t.isOptional&&(r|=2),t.isSelf&&(r|=4),t.isValue&&(r|=8),0===r?n:qs([Ks(r),n])}function Da(e){var t=0;switch(e){case pa.AfterContentChecked:t=2097152;break;case pa.AfterContentInit:t=1048576;break;case pa.AfterViewChecked:t=8388608;break;case pa.AfterViewInit:t=4194304;break;case pa.DoCheck:t=262144;break;case pa.OnChanges:t=524288;break;case pa.OnDestroy:t=131072;break;case pa.OnInit:t=65536}return t}function La(t,n,r,i){var o=i.map(function(e){return n.importExpr(e.componentFactory)}),s=bo(t,Co.ComponentFactoryResolver),a={diDeps:[{isValue:!0,value:qs(o)},{token:s,isSkipSelf:!0,isOptional:!0},{token:bo(t,Co.NgModuleRef)}],lifecycleHooks:[],reference:t.resolveExternalReference(Co.CodegenComponentFactoryResolver)},u=Ia(n,r,e.ProviderAstType.PrivateService,{token:s,multi:!1,useClass:a});return{providerExpr:u.providerExpr,flags:u.flags,depsExpr:u.depsExpr,tokenExpr:Oa(n,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
   */var Fa=function Fa(e){this.ngModuleFactoryVar=e},Ba=Bs("_l"),Va=function(){function t(e){this.reflector=e}return t.prototype.compile=function(e,t,n){var r=Ar("NgModule",t.type),i=t.transitiveModule.entryComponents,o=t.bootstrapComponents,s=new ba(this.reflector,t,n,r),a=[La(this.reflector,e,0,i)].concat(s.parse().map(function(t){return ka(e,t)})).map(function(e){var t=e.providerExpr,n=e.depsExpr,r=e.flags,i=e.tokenExpr;return Vs(Co.moduleProviderDef).callFn([Ks(r),i,t,n])}),u=Vs(Co.moduleDef).callFn([qs(a)]),p=Ws([new is(Ba.name)],[new _s(u)],Do),l=Ne(t.type)+"NgFactory";if(this._createNgModuleFactory(e,t.type.reference,Vs(Co.createModuleFactory).callFn([e.importExpr(t.type.reference),qs(o.map(function(t){return e.importExpr(t.reference)})),p])),t.id){var c="string"==typeof t.id?Ks(t.id):e.importExpr(t.id),h=Vs(Co.RegisterModuleFactoryFn).callFn([c,Bs(l)]).toStmt();e.statements.push(h)}return new Fa(l)},t.prototype.createStub=function(e,t){this._createNgModuleFactory(e,t,fs)},t.prototype._createNgModuleFactory=function(t,n,r){var i=Bs(Ne({reference:n})+"NgFactory").set(r).toDeclStmt(js(Co.NgModuleFactory,[Us(t.importExpr(n))],[vo.Const]),[e.StmtModifier.Final,e.StmtModifier.Exported]);t.statements.push(i)},t}(),ja=function(){function e(e){this._reflector=e}return e.prototype.isNgModule=function(e){return this._reflector.annotations(e).some(T.isTypeOf)},e.prototype.resolve=function(e,t){void 0===t&&(t=!0);var n=Wt(this._reflector.annotations(e),T.isTypeOf);if(n)return n;if(t)throw new Error("No NgModule metadata found for '"+Z(e)+"'.");return null},e}(),Ua=function(){function e(e){void 0===e&&(e=null),this.file=e,this.sourcesContent=new Map,this.lines=[],this.lastCol0=0,this.hasMappings=!1}return e.prototype.addSource=function(e,t){return void 0===t&&(t=null),this.sourcesContent.has(e)||this.sourcesContent.set(e,t),this},e.prototype.addLine=function(){return this.lines.push([]),this.lastCol0=0,this},e.prototype.addMapping=function(e,t,n,r){if(!this.currentLine)throw new Error("A line must be added before mappings can be added");if(null!=t&&!this.sourcesContent.has(t))throw new Error('Unknown source file "'+t+'"');if(null==e)throw new Error("The column in the generated code must be provided");if(e<this.lastCol0)throw new Error("Mapping should be added in output order");if(t&&(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=e,this.currentLine.push({col0:e,sourceUrl:t,sourceLine0:n,sourceCol0:r}),this},Object.defineProperty(e.prototype,"currentLine",{get:function(){return this.lines.slice(-1)[0]},enumerable:!0,configurable:!0}),e.prototype.toJSON=function(){var e=this;if(!this.hasMappings)return null;var t=new Map,n=[],r=[];Array.from(this.sourcesContent.keys()).forEach(function(i,o){t.set(i,o),n.push(i),r.push(e.sourcesContent.get(i)||null)});var i="",o=0,s=0,a=0,u=0;return this.lines.forEach(function(e){o=0,i+=e.map(function(e){var n=qa(e.col0-o);return o=e.col0,null!=e.sourceUrl&&(n+=qa(t.get(e.sourceUrl)-s),s=t.get(e.sourceUrl),n+=qa(e.sourceLine0-a),a=e.sourceLine0,n+=qa(e.sourceCol0-u),u=e.sourceCol0),n}).join(","),i+=";"}),i=i.slice(0,-1),{file:this.file||"",version:3,sourceRoot:"",sources:n,sourcesContent:r,mappings:i}},e.prototype.toJsComment=function(){return this.hasMappings?"//# sourceMappingURL=data:application/json;base64,"+function e(t){var n="";t=$(t);for(var r=0;r<t.length;){var i=t.charCodeAt(r++),o=t.charCodeAt(r++),s=t.charCodeAt(r++);n+=Wa(i>>2),n+=Wa((3&i)<<4|(isNaN(o)?0:o>>4)),n+=isNaN(o)?"=":Wa((15&o)<<2|s>>6),n+=isNaN(o)||isNaN(s)?"=":Wa(63&s)}return n}(JSON.stringify(this,null,0)):""},e}();function qa(e){e=e<0?1+(-e<<1):e<<1;var t="";do{var n=31&e;(e>>=5)>0&&(n|=32),t+=Wa(n)}while(e>0);return t}var Ha="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";function Wa(e){if(e<0||e>=64)throw new Error("Can only encode value in the range [0, 63]");return Ha[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
   */var za=/'|\\|\n|\r|\$/g,Ka=/^[$A-Z_][0-9A-Z_$]*$/i,Xa="  ",Qa=Bs("error",null,null),Ga=Bs("stack",null,null),Ya=function Ya(e){this.indent=e,this.partsLength=0,this.parts=[],this.srcSpans=[]},Ja=function(){function e(e){this._indent=e,this._classes=[],this._preambleLineCount=0,this._lines=[new Ya(e)]}return e.createRoot=function(){return new e(0)},Object.defineProperty(e.prototype,"_currentLine",{get:function(){return this._lines[this._lines.length-1]},enumerable:!0,configurable:!0}),e.prototype.println=function(e,t){void 0===t&&(t=""),this.print(e||null,t,!0)},e.prototype.lineIsEmpty=function(){return 0===this._currentLine.parts.length},e.prototype.lineLength=function(){return this._currentLine.indent*Xa.length+this._currentLine.partsLength},e.prototype.print=function(e,t,n){void 0===n&&(n=!1),t.length>0&&(this._currentLine.parts.push(t),this._currentLine.partsLength+=t.length,this._currentLine.srcSpans.push(e&&e.sourceSpan||null)),n&&this._lines.push(new Ya(this._indent))},e.prototype.removeEmptyLastLine=function(){this.lineIsEmpty()&&this._lines.pop()},e.prototype.incIndent=function(){this._indent++,this.lineIsEmpty()&&(this._currentLine.indent=this._indent)},e.prototype.decIndent=function(){this._indent--,this.lineIsEmpty()&&(this._currentLine.indent=this._indent)},e.prototype.pushClass=function(e){this._classes.push(e)},e.prototype.popClass=function(){return this._classes.pop()},Object.defineProperty(e.prototype,"currentClass",{get:function(){return this._classes.length>0?this._classes[this._classes.length-1]:null},enumerable:!0,configurable:!0}),e.prototype.toSource=function(){return this.sourceLines.map(function(e){return e.parts.length>0?eu(e.indent)+e.parts.join(""):""}).join("\n")},e.prototype.toSourceMapGenerator=function(e,t){void 0===t&&(t=0);for(var n=new Ua(e),r=!1,i=function(){r||(n.addSource(e," ").addMapping(0,e,0,0),r=!0)},o=0;o<t;o++)n.addLine(),i();return this.sourceLines.forEach(function(e,t){n.addLine();for(var o=e.srcSpans,s=e.parts,a=e.indent*Xa.length,u=0;u<o.length&&!o[u];)a+=s[u].length,u++;for(u<o.length&&0===t&&0===a?r=!0:i();u<o.length;){var p=o[u],l=p.start.file,c=p.start.line,h=p.start.col;for(n.addSource(l.url,l.content).addMapping(a,l.url,c,h),a+=s[u].length,u++;u<o.length&&(p===o[u]||!o[u]);)a+=s[u].length,u++}}),n},e.prototype.setPreambleLineCount=function(e){return this._preambleLineCount=e},e.prototype.spanOf=function(e,t){var n=this._lines[e-this._preambleLineCount];if(n)for(var r=t-eu(n.indent).length,i=0;i<n.parts.length;i++){var o=n.parts[i];if(o.length>r)return n.srcSpans[i];r-=o.length}return null},Object.defineProperty(e.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}),e}(),$a=function(){function t(e){this._escapeDollarInStrings=e}return t.prototype.visitExpressionStmt=function(e,t){return e.expr.visitExpression(this,t),t.println(e,";"),null},t.prototype.visitReturnStmt=function(e,t){return t.print(e,"return "),e.value.visitExpression(this,t),t.println(e,";"),null},t.prototype.visitIfStmt=function(e,t){t.print(e,"if ("),e.condition.visitExpression(this,t),t.print(e,") {");var n=null!=e.falseCase&&e.falseCase.length>0;return e.trueCase.length<=1&&!n?(t.print(e," "),this.visitAllStatements(e.trueCase,t),t.removeEmptyLastLine(),t.print(e," ")):(t.println(),t.incIndent(),this.visitAllStatements(e.trueCase,t),t.decIndent(),n&&(t.println(e,"} else {"),t.incIndent(),this.visitAllStatements(e.falseCase,t),t.decIndent())),t.println(e,"}"),null},t.prototype.visitThrowStmt=function(e,t){return t.print(e,"throw "),e.error.visitExpression(this,t),t.println(e,";"),null},t.prototype.visitCommentStmt=function(e,t){return e.multiline?t.println(e,"/* "+e.comment+" */"):e.comment.split("\n").forEach(function(n){t.println(e,"// "+n)}),null},t.prototype.visitJSDocCommentStmt=function(e,t){return t.println(e,"/*"+e.toString()+"*/"),null},t.prototype.visitWriteVarExpr=function(e,t){var n=t.lineIsEmpty();return n||t.print(e,"("),t.print(e,e.name+" = "),e.value.visitExpression(this,t),n||t.print(e,")"),null},t.prototype.visitWriteKeyExpr=function(e,t){var n=t.lineIsEmpty();return n||t.print(e,"("),e.receiver.visitExpression(this,t),t.print(e,"["),e.index.visitExpression(this,t),t.print(e,"] = "),e.value.visitExpression(this,t),n||t.print(e,")"),null},t.prototype.visitWritePropExpr=function(e,t){var n=t.lineIsEmpty();return n||t.print(e,"("),e.receiver.visitExpression(this,t),t.print(e,"."+e.name+" = "),e.value.visitExpression(this,t),n||t.print(e,")"),null},t.prototype.visitInvokeMethodExpr=function(e,t){e.receiver.visitExpression(this,t);var n=e.name;return null!=e.builtin&&null==(n=this.getBuiltinMethodName(e.builtin))?null:(t.print(e,"."+n+"("),this.visitAllExpressions(e.args,t,","),t.print(e,")"),null)},t.prototype.visitInvokeFunctionExpr=function(e,t){return e.fn.visitExpression(this,t),t.print(e,"("),this.visitAllExpressions(e.args,t,","),t.print(e,")"),null},t.prototype.visitReadVarExpr=function(t,n){var r=t.name;if(null!=t.builtin)switch(t.builtin){case e.BuiltinVar.Super:r="super";break;case e.BuiltinVar.This:r="this";break;case e.BuiltinVar.CatchError:r=Qa.name;break;case e.BuiltinVar.CatchStack:r=Ga.name;break;default:throw new Error("Unknown builtin variable "+t.builtin)}return n.print(t,r),null},t.prototype.visitInstantiateExpr=function(e,t){return t.print(e,"new "),e.classExpr.visitExpression(this,t),t.print(e,"("),this.visitAllExpressions(e.args,t,","),t.print(e,")"),null},t.prototype.visitLiteralExpr=function(e,t){var n=e.value;return t.print(e,"string"==typeof n?Za(n,this._escapeDollarInStrings):""+n),null},t.prototype.visitConditionalExpr=function(e,t){return t.print(e,"("),e.condition.visitExpression(this,t),t.print(e,"? "),e.trueCase.visitExpression(this,t),t.print(e,": "),e.falseCase.visitExpression(this,t),t.print(e,")"),null},t.prototype.visitNotExpr=function(e,t){return t.print(e,"!"),e.condition.visitExpression(this,t),null},t.prototype.visitAssertNotNullExpr=function(e,t){return e.condition.visitExpression(this,t),null},t.prototype.visitBinaryOperatorExpr=function(t,n){var r;switch(t.operator){case e.BinaryOperator.Equals:r="==";break;case e.BinaryOperator.Identical:r="===";break;case e.BinaryOperator.NotEquals:r="!=";break;case e.BinaryOperator.NotIdentical:r="!==";break;case e.BinaryOperator.And:r="&&";break;case e.BinaryOperator.BitwiseAnd:r="&";break;case e.BinaryOperator.Or:r="||";break;case e.BinaryOperator.Plus:r="+";break;case e.BinaryOperator.Minus:r="-";break;case e.BinaryOperator.Divide:r="/";break;case e.BinaryOperator.Multiply:r="*";break;case e.BinaryOperator.Modulo:r="%";break;case e.BinaryOperator.Lower:r="<";break;case e.BinaryOperator.LowerEquals:r="<=";break;case e.BinaryOperator.Bigger:r=">";break;case e.BinaryOperator.BiggerEquals:r=">=";break;default:throw new Error("Unknown operator "+t.operator)}return t.parens&&n.print(t,"("),t.lhs.visitExpression(this,n),n.print(t," "+r+" "),t.rhs.visitExpression(this,n),t.parens&&n.print(t,")"),null},t.prototype.visitReadPropExpr=function(e,t){return e.receiver.visitExpression(this,t),t.print(e,"."),t.print(e,e.name),null},t.prototype.visitReadKeyExpr=function(e,t){return e.receiver.visitExpression(this,t),t.print(e,"["),e.index.visitExpression(this,t),t.print(e,"]"),null},t.prototype.visitLiteralArrayExpr=function(e,t){return t.print(e,"["),this.visitAllExpressions(e.entries,t,","),t.print(e,"]"),null},t.prototype.visitLiteralMapExpr=function(e,t){var n=this;return t.print(e,"{"),this.visitAllObjects(function(r){t.print(e,Za(r.key,n._escapeDollarInStrings,r.quoted)+":"),r.value.visitExpression(n,t)},e.entries,t,","),t.print(e,"}"),null},t.prototype.visitCommaExpr=function(e,t){return t.print(e,"("),this.visitAllExpressions(e.parts,t,","),t.print(e,")"),null},t.prototype.visitAllExpressions=function(e,t,n){var r=this;this.visitAllObjects(function(e){return e.visitExpression(r,t)},e,t,n)},t.prototype.visitAllObjects=function(e,t,n,r){for(var i=!1,o=0;o<t.length;o++)o>0&&(n.lineLength()>80?(n.print(null,r,!0),i||(n.incIndent(),n.incIndent(),i=!0)):n.print(null,r,!1)),e(t[o]);i&&(n.decIndent(),n.decIndent())},t.prototype.visitAllStatements=function(e,t){var n=this;e.forEach(function(e){return e.visitStatement(n,t)})},t}();function Za(e,t,n){if(void 0===n&&(n=!0),null==e)return null;var r=e.replace(za,function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return"$"==e[0]?t?"\\$":"$":"\n"==e[0]?"\\n":"\r"==e[0]?"\\r":"\\"+e[0]});return n||!Ka.test(r)?"'"+r+"'":r}function eu(e){for(var t="",n=0;n<e;n++)t+=Xa;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 tu(e){var t=new ru,n=Ja.createRoot();return(Array.isArray(e)?e:[e]).forEach(function(e){if(e instanceof vs)e.visitStatement(t,n);else if(e instanceof Uo)e.visitExpression(t,n);else{if(!(e instanceof Po))throw new Error("Don't know how to print debug info for "+e);e.visitType(t,n)}}),n.toSource()}var nu=function(){function e(){}return e.prototype.emitStatementsAndContext=function(e,t,n,r,i,o){void 0===n&&(n=""),void 0===r&&(r=!0);var a=new ru(i,o),u=Ja.createRoot();a.visitAllStatements(t,u);var p=n?n.split("\n"):[];a.reexports.forEach(function(e,t){var n=e.map(function(e){return e.name+" as "+e.as}).join(",");p.push("export {"+n+"} from '"+t+"';")}),a.importsWithPrefixes.forEach(function(e,t){p.push("import * as "+e+" from '"+t+"';")});var l=r?u.toSourceMapGenerator(e,p.length).toJsComment():"",c=s(p,[u.toSource(),l]);return l&&c.push(""),u.setPreambleLineCount(p.length),{sourceText:c.join("\n"),context:u}},e.prototype.emitStatements=function(e,t,n){return void 0===n&&(n=""),this.emitStatementsAndContext(e,t,n).sourceText},e}(),ru=function(t){function r(e,n){var r=t.call(this,!1)||this;return r.referenceFilter=e,r.importFilter=n,r.typeExpression=0,r.importsWithPrefixes=new Map,r.reexports=new Map,r}return n(r,t),r.prototype.visitType=function(e,t,n){void 0===n&&(n="any"),e?(this.typeExpression++,e.visitType(this,t),this.typeExpression--):t.print(null,n)},r.prototype.visitLiteralExpr=function(e,n){var r=e.value;return null==r&&e.type!=Do?(n.print(e,"("+r+" as any)"),null):t.prototype.visitLiteralExpr.call(this,e,n)},r.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},r.prototype.visitExternalExpr=function(e,t){return this._visitIdentifier(e.value,e.typeParams,t),null},r.prototype.visitAssertNotNullExpr=function(e,n){var r=t.prototype.visitAssertNotNullExpr.call(this,e,n);return n.print(e,"!"),r},r.prototype.visitDeclareVarStmt=function(t,n){if(t.hasModifier(e.StmtModifier.Exported)&&t.value instanceof $o&&!t.type){var r=t.value.value,i=r.name,o=r.moduleName;if(o){var s=this.reexports.get(o);return s||this.reexports.set(o,s=[]),s.push({name:i,as:t.name}),null}}return t.hasModifier(e.StmtModifier.Exported)&&n.print(t,"export "),t.hasModifier(e.StmtModifier.Final)?n.print(t,"const"):n.print(t,"var"),n.print(t," "+t.name),this._printColonType(t.type,n),t.value&&(n.print(t," = "),t.value.visitExpression(this,n)),n.println(t,";"),null},r.prototype.visitCastExpr=function(e,t){return t.print(e,"(<"),e.type.visitType(this,t),t.print(e,">"),e.value.visitExpression(this,t),t.print(e,")"),null},r.prototype.visitInstantiateExpr=function(e,t){return t.print(e,"new "),this.typeExpression++,e.classExpr.visitExpression(this,t),this.typeExpression--,t.print(e,"("),this.visitAllExpressions(e.args,t,","),t.print(e,")"),null},r.prototype.visitDeclareClassStmt=function(t,n){var r=this;return n.pushClass(t),t.hasModifier(e.StmtModifier.Exported)&&n.print(t,"export "),n.print(t,"class "+t.name),null!=t.parent&&(n.print(t," extends "),this.typeExpression++,t.parent.visitExpression(this,n),this.typeExpression--),n.println(t," {"),n.incIndent(),t.fields.forEach(function(e){return r._visitClassField(e,n)}),null!=t.constructorMethod&&this._visitClassConstructor(t,n),t.getters.forEach(function(e){return r._visitClassGetter(e,n)}),t.methods.forEach(function(e){return r._visitClassMethod(e,n)}),n.decIndent(),n.println(t,"}"),n.popClass(),null},r.prototype._visitClassField=function(t,n){t.hasModifier(e.StmtModifier.Private)&&n.print(null,"/*private*/ "),t.hasModifier(e.StmtModifier.Static)&&n.print(null,"static "),n.print(null,t.name),this._printColonType(t.type,n),t.initializer&&(n.print(null," = "),t.initializer.visitExpression(this,n)),n.println(null,";")},r.prototype._visitClassGetter=function(t,n){t.hasModifier(e.StmtModifier.Private)&&n.print(null,"private "),n.print(null,"get "+t.name+"()"),this._printColonType(t.type,n),n.println(null," {"),n.incIndent(),this.visitAllStatements(t.body,n),n.decIndent(),n.println(null,"}")},r.prototype._visitClassConstructor=function(e,t){t.print(e,"constructor("),this._visitParams(e.constructorMethod.params,t),t.println(e,") {"),t.incIndent(),this.visitAllStatements(e.constructorMethod.body,t),t.decIndent(),t.println(e,"}")},r.prototype._visitClassMethod=function(t,n){t.hasModifier(e.StmtModifier.Private)&&n.print(null,"private "),n.print(null,t.name+"("),this._visitParams(t.params,n),n.print(null,")"),this._printColonType(t.type,n,"void"),n.println(null," {"),n.incIndent(),this.visitAllStatements(t.body,n),n.decIndent(),n.println(null,"}")},r.prototype.visitFunctionExpr=function(e,t){return e.name&&(t.print(e,"function "),t.print(e,e.name)),t.print(e,"("),this._visitParams(e.params,t),t.print(e,")"),this._printColonType(e.type,t,"void"),e.name||t.print(e," => "),t.println(e,"{"),t.incIndent(),this.visitAllStatements(e.statements,t),t.decIndent(),t.print(e,"}"),null},r.prototype.visitDeclareFunctionStmt=function(t,n){return t.hasModifier(e.StmtModifier.Exported)&&n.print(t,"export "),n.print(t,"function "+t.name+"("),this._visitParams(t.params,n),n.print(t,")"),this._printColonType(t.type,n,"void"),n.println(t," {"),n.incIndent(),this.visitAllStatements(t.statements,n),n.decIndent(),n.println(t,"}"),null},r.prototype.visitTryCatchStmt=function(t,n){n.println(t,"try {"),n.incIndent(),this.visitAllStatements(t.bodyStmts,n),n.decIndent(),n.println(t,"} catch ("+Qa.name+") {"),n.incIndent();var r=[Ga.set(Qa.prop("stack",null)).toDeclStmt(null,[e.StmtModifier.Final])].concat(t.catchStmts);return this.visitAllStatements(r,n),n.decIndent(),n.println(t,"}"),null},r.prototype.visitBuiltinType=function(e,t){var n;switch(e.name){case Mo.Bool:n="boolean";break;case Mo.Dynamic:n="any";break;case Mo.Function:n="Function";break;case Mo.Number:case Mo.Int:n="number";break;case Mo.String:n="string";break;default:throw new Error("Unsupported builtin type "+e.name)}return t.print(null,n),null},r.prototype.visitExpressionType=function(e,t){return e.value.visitExpression(this,t),null},r.prototype.visitArrayType=function(e,t){return this.visitType(e.of,t),t.print(null,"[]"),null},r.prototype.visitMapType=function(e,t){return t.print(null,"{[key: string]:"),this.visitType(e.valueType,t),t.print(null,"}"),null},r.prototype.getBuiltinMethodName=function(t){var n;switch(t){case e.BuiltinMethod.ConcatArray:n="concat";break;case e.BuiltinMethod.SubscribeObservable:n="subscribe";break;case e.BuiltinMethod.Bind:n="bind";break;default:throw new Error("Unknown builtin method: "+t)}return n},r.prototype._visitParams=function(e,t){var n=this;this.visitAllObjects(function(e){t.print(null,e.name),n._printColonType(e.type,t)},e,t,",")},r.prototype._visitIdentifier=function(e,t,n){var r=this,i=e.name,o=e.moduleName;if(this.referenceFilter&&this.referenceFilter(e))n.print(null,"(null as any)");else{if(o&&(!this.importFilter||!this.importFilter(e))){var s=this.importsWithPrefixes.get(o);null==s&&this.importsWithPrefixes.set(o,s="i"+this.importsWithPrefixes.size),n.print(null,s+".")}n.print(null,i),this.typeExpression>0&&(t||[]).length>0&&(n.print(null,"<"),this.visitAllObjects(function(e){return e.visitType(r,n)},t,n,","),n.print(null,">"))}},r.prototype._printColonType=function(e,t,n){e!==Do&&(t.print(null,":"),this.visitType(e,t,n))},r}($a),iu=function(){function e(e){this._reflector=e}return e.prototype.isPipe=function(e){var t=this._reflector.annotations(ee(e));return t&&t.some(E.isTypeOf)},e.prototype.resolve=function(e,t){void 0===t&&(t=!0);var n=this._reflector.annotations(ee(e));if(n){var r=Wt(n,E.isTypeOf);if(r)return r}if(t)throw new Error("No Pipe decorator found on "+Z(e));return null},e}(),ou={};function su(e,t){try{for(var n=i(t),r=n.next();!r.done;r=n.next())ou[r.value.toLowerCase()]=e}catch(e){o={error:e}}finally{try{r&&!r.done&&(s=n.return)&&s.call(n)}finally{if(o)throw o.error}}var o,s}su(y.HTML,["iframe|srcdoc","*|innerHTML","*|outerHTML"]),su(y.STYLE,["*|style"]),su(y.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"]),su(y.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 au,uu="boolean",pu="number",lu="string",cu="object",hu=["[Element]|textContent,%classList,className,id,innerHTML,*beforecopy,*beforecut,*beforepaste,*copy,*cut,*paste,*search,*selectstart,*webkitfullscreenchange,*webkitfullscreenerror,*wheel,outerHTML,#scrollLeft,#scrollTop,slot,*message,*mozfullscreenchange,*mozfullscreenerror,*mozpointerlockchange,*mozpointerlockerror,*webglcontextcreationerror,*webglcontextlost,*webglcontextrestored","[HTMLElement]^[Element]|accessKey,contentEditable,dir,!draggable,!hidden,innerText,lang,*abort,*auxclick,*blur,*cancel,*canplay,*canplaythrough,*change,*click,*close,*contextmenu,*cuechange,*dblclick,*drag,*dragend,*dragenter,*dragleave,*dragover,*dragstart,*drop,*durationchange,*emptied,*ended,*error,*focus,*gotpointercapture,*input,*invalid,*keydown,*keypress,*keyup,*load,*loadeddata,*loadedmetadata,*loadstart,*lostpointercapture,*mousedown,*mouseenter,*mouseleave,*mousemove,*mouseout,*mouseover,*mouseup,*mousewheel,*pause,*play,*playing,*pointercancel,*pointerdown,*pointerenter,*pointerleave,*pointermove,*pointerout,*pointerover,*pointerup,*progress,*ratechange,*reset,*resize,*scroll,*seeked,*seeking,*select,*show,*stalled,*submit,*suspend,*timeupdate,*toggle,*volumechange,*waiting,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,*auxclick,*blur,*cancel,*canplay,*canplaythrough,*change,*click,*close,*contextmenu,*cuechange,*dblclick,*drag,*dragend,*dragenter,*dragleave,*dragover,*dragstart,*drop,*durationchange,*emptied,*ended,*error,*focus,*gotpointercapture,*input,*invalid,*keydown,*keypress,*keyup,*load,*loadeddata,*loadedmetadata,*loadstart,*lostpointercapture,*mousedown,*mouseenter,*mouseleave,*mousemove,*mouseout,*mouseover,*mouseup,*mousewheel,*pause,*play,*playing,*pointercancel,*pointerdown,*pointerenter,*pointerleave,*pointermove,*pointerout,*pointerover,*pointerup,*progress,*ratechange,*reset,*resize,*scroll,*seeked,*seeking,*select,*show,*stalled,*submit,*suspend,*timeupdate,*toggle,*volumechange,*waiting,outerText,!spellcheck,%style,#tabIndex,title,!translate","media^[HTMLElement]|!autoplay,!controls,%controlsList,%crossOrigin,#currentTime,!defaultMuted,#defaultPlaybackRate,!disableRemotePlayback,!loop,!muted,*encrypted,*waitingforkey,#playbackRate,preload,src,%srcObject,#volume",":svg:^[HTMLElement]|*abort,*auxclick,*blur,*cancel,*canplay,*canplaythrough,*change,*click,*close,*contextmenu,*cuechange,*dblclick,*drag,*dragend,*dragenter,*dragleave,*dragover,*dragstart,*drop,*durationchange,*emptied,*ended,*error,*focus,*gotpointercapture,*input,*invalid,*keydown,*keypress,*keyup,*load,*loadeddata,*loadedmetadata,*loadstart,*lostpointercapture,*mousedown,*mouseenter,*mouseleave,*mousemove,*mouseout,*mouseover,*mouseup,*mousewheel,*pause,*play,*playing,*pointercancel,*pointerdown,*pointerenter,*pointerleave,*pointermove,*pointerout,*pointerover,*pointerup,*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,download,hash,host,hostname,href,!noHref,password,pathname,ping,port,protocol,referrerPolicy,rel,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","li^[HTMLElement]|type,#value","label^[HTMLElement]|htmlFor","legend^[HTMLElement]|align","link^[HTMLElement]|as,charset,%crossOrigin,!disabled,href,hreflang,integrity,media,referrerPolicy,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]|","slot^[HTMLElement]|name","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: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","keygen^[HTMLElement]|!autofocus,challenge,!disabled,form,keytype,name","menuitem^[HTMLElement]|type,label,icon,!disabled,!checked,radiogroup,!default","summary^[HTMLElement]|","time^[HTMLElement]|dateTime",":svg:cursor^:svg:|"],fu={class:"className",for:"htmlFor",formaction:"formAction",innerHtml:"innerHTML",readonly:"readOnly",tabindex:"tabIndex"},du=function(e){function t(){var t=e.call(this)||this;return t._schema={},hu.forEach(function(e){var n={},r=o(e.split("|"),2),i=r[0],s=r[1].split(","),a=o(i.split("^"),2),u=a[1];a[0].split(",").forEach(function(e){return t._schema[e.toLowerCase()]=n});var p=u&&t._schema[u.toLowerCase()];p&&Object.keys(p).forEach(function(e){n[e]=p[e]}),s.forEach(function(e){if(e.length>0)switch(e[0]){case"*":break;case"!":n[e.substring(1)]=uu;break;case"#":n[e.substring(1)]=pu;break;case"%":n[e.substring(1)]=cu;break;default:n[e]=lu}})}),t}return n(t,e),t.prototype.hasProperty=function(e,t,n){if(n.some(function(e){return e.name===P.name}))return!0;if(e.indexOf("-")>-1){if(Et(e)||xt(e))return!1;if(n.some(function(e){return e.name===M.name}))return!0}return!!(this._schema[e.toLowerCase()]||this._schema.unknown)[t]},t.prototype.hasElement=function(e,t){if(t.some(function(e){return e.name===P.name}))return!0;if(e.indexOf("-")>-1){if(Et(e)||xt(e))return!0;if(t.some(function(e){return e.name===M.name}))return!0}return!!this._schema[e.toLowerCase()]},t.prototype.securityContext=function(e,t,n){n&&(t=this.getMappedPropName(t)),e=e.toLowerCase(),t=t.toLowerCase();var r=ou[e+"|"+t];return r||(r=ou["*|"+t])||y.NONE},t.prototype.getMappedPropName=function(e){return fu[e]||e},t.prototype.getDefaultComponentElementName=function(){return"ng-component"},t.prototype.validateProperty=function(e){return e.toLowerCase().startsWith("on")?{error:!0,msg:"Binding to event property '"+e+"' is disallowed for security reasons, please use ("+e.slice(2)+")=...\nIf '"+e+"' is a directive input, make sure the directive is imported by the current module."}:{error:!1}},t.prototype.validateAttribute=function(e){return e.toLowerCase().startsWith("on")?{error:!0,msg:"Binding to event attribute '"+e+"' is disallowed for security reasons, please use ("+e.slice(2)+")=..."}:{error:!1}},t.prototype.allKnownElementNames=function(){return Object.keys(this._schema)},t.prototype.normalizeAnimationStyleProperty=function(e){return function t(e){return e.replace(L,function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return e[1].toUpperCase()})}(e)},t.prototype.normalizeAnimationStyleValue=function(e,t,n){var r="",i=n.toString().trim(),o=null;if(function s(e){switch(e){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}}
  /**
   * @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
   */(e)&&0!==n&&"0"!==n)if("number"==typeof n)r="px";else{var a=n.match(/^[+-]?[\d\.]+([a-z]*)$/);a&&0==a[1].length&&(o="Please provide a CSS unit value for "+t+":"+n)}return{error:o,value:i+r}},t}(au=function au(){}),vu=function(){function e(){this.strictStyling=!0}return e.prototype.shimCssText=function(e,t,n){void 0===n&&(n="");var r=function i(e){return e.match(Ru)||[]}(e);return e=function o(e){return e.replace(Ou,"")}(e),e=this._insertDirectives(e),s([this._scopeCssText(e,t,n)],r).join("\n")},e.prototype._insertDirectives=function(e){return e=this._insertPolyfillDirectivesInCssText(e),this._insertPolyfillRulesInCssText(e)},e.prototype._insertPolyfillDirectivesInCssText=function(e){return e.replace(yu,function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return e[2]+"{"})},e.prototype._insertPolyfillRulesInCssText=function(e){return e.replace(gu,function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=e[0].replace(e[1],"").replace(e[2],"");return e[4]+n})},e.prototype._scopeCssText=function(e,t,n){var r=this._extractUnscopedRulesFromCssText(e);return e=this._insertPolyfillHostInCssText(e),e=this._convertColonHost(e),e=this._convertColonHostContext(e),e=this._convertShadowDOMSelectors(e),t&&(e=this._scopeSelectors(e,t,n)),(e=e+"\n"+r).trim()},e.prototype._extractUnscopedRulesFromCssText=function(e){var t,n="";for(_u.lastIndex=0;null!==(t=_u.exec(e));)n+=t[0].replace(t[2],"").replace(t[1],t[4])+"\n\n";return n},e.prototype._convertColonHost=function(e){return this._convertColonRule(e,wu,this._colonHostPartReplacer)},e.prototype._convertColonHostContext=function(e){return this._convertColonRule(e,Cu,this._colonHostContextPartReplacer)},e.prototype._convertColonRule=function(e,t,n){return e.replace(t,function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];if(e[2]){for(var r=e[2].split(","),i=[],o=0;o<r.length;o++){var s=r[o].trim();if(!s)break;i.push(n(Tu,s,e[3]))}return i.join(",")}return Tu+e[3]})},e.prototype._colonHostContextPartReplacer=function(e,t,n){return t.indexOf(Eu)>-1?this._colonHostPartReplacer(e,t,n):e+t+n+", "+t+" "+e+n},e.prototype._colonHostPartReplacer=function(e,t,n){return e+t.replace(Eu,"")+n},e.prototype._convertShadowDOMSelectors=function(e){return Mu.reduce(function(e,t){return e.replace(t," ")},e)},e.prototype._scopeSelectors=function(e,t,n){var r=this;return function i(e,t){var n=function r(e){for(var t=e.split(Lu),n=[],r=[],i=0,o=[],s=0;s<t.length;s++){var a=t[s];a==Bu&&i--,i>0?o.push(a):(o.length>0&&(r.push(o.join("")),n.push(Vu),o=[]),n.push(a)),a==Fu&&i++}return o.length>0&&(r.push(o.join("")),n.push(Vu)),new Uu(n.join(""),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
   */(e),i=0;return n.escapedString.replace(Du,function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];var o=e[2],s="",a=e[4],u="";a&&a.startsWith("{"+Vu)&&(s=n.blocks[i++],a=a.substring(Vu.length+1),u="{");var p=t(new ju(o,s));return""+e[1]+p.selector+e[3]+u+p.content+a})}(e,function(e){var i=e.selector,o=e.content;return"@"!=e.selector[0]?i=r._scopeSelector(e.selector,t,n,r.strictStyling):(e.selector.startsWith("@media")||e.selector.startsWith("@supports")||e.selector.startsWith("@page")||e.selector.startsWith("@document"))&&(o=r._scopeSelectors(e.content,t,n)),new ju(i,o)})},e.prototype._scopeSelector=function(e,t,n,r){var i=this;return e.split(",").map(function(e){return e.trim().split(Pu)}).map(function(e){var a=o(e),u=a[0],p=a.slice(1);return s([function(e){return i._selectorNeedsScoping(e,t)?r?i._applyStrictSelectorScope(e,t,n):i._applySelectorScope(e,t,n):e}(u)],p).join(" ")}).join(", ")},e.prototype._selectorNeedsScoping=function(e,t){return!this._makeScopeMatcher(t).test(e)},e.prototype._makeScopeMatcher=function(e){return e=e.replace(/\[/g,"\\[").replace(/\]/g,"\\]"),new RegExp("^("+e+")"+Au,"m")},e.prototype._applySelectorScope=function(e,t,n){return this._applySimpleSelectorScope(e,t,n)},e.prototype._applySimpleSelectorScope=function(e,t,n){if(Nu.lastIndex=0,Nu.test(e)){var r=this.strictStyling?"["+n+"]":t;return e.replace(bu,function(e,t){return t.replace(/([^:]*)(:*)(.*)/,function(e,t,n,i){return t+r+n+i})}).replace(Nu,r+" ")}return t+" "+e},e.prototype._applyStrictSelectorScope=function(e,t,n){for(var r,i=this,o="["+(t=t.replace(/\[is=([^\]]*)\]/g,function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return t[0]}))+"]",s=function(e){var r=e.trim();if(!r)return"";if(e.indexOf(Tu)>-1)r=i._applySimpleSelectorScope(e,t,n);else{var s=e.replace(Nu,"");if(s.length>0){var a=s.match(/([^:]*)(:*)(.*)/);a&&(r=a[1]+o+a[2]+a[3])}}return r},a=new mu(e),u="",p=0,l=/( |>|\+|~(?!=))\s*/g,c=!((e=a.content()).indexOf(Tu)>-1);null!==(r=l.exec(e));){var h=r[1],f=e.slice(p,r.index).trim();u+=((c=c||f.indexOf(Tu)>-1)?s(f):f)+" "+h+" ",p=l.lastIndex}var d=e.substring(p);return u+=(c=c||d.indexOf(Tu)>-1)?s(d):d,a.restore(u)},e.prototype._insertPolyfillHostInCssText=function(e){return e.replace(Iu,xu).replace(ku,Eu)},e}(),mu=function(){function e(e){var t=this;this.placeholders=[],this.index=0,e=e.replace(/(\[[^\]]*\])/g,function(e,n){var r="__ph-"+t.index+"__";return t.placeholders.push(n),t.index++,r}),this._content=e.replace(/(:nth-[-\w]+)(\([^)]+\))/g,function(e,n,r){var i="__ph-"+t.index+"__";return t.placeholders.push(r),t.index++,n+i})}return e.prototype.restore=function(e){var t=this;return e.replace(/__ph-(\d+)__/g,function(e,n){return t.placeholders[+n]})},e.prototype.content=function(){return this._content},e}(),yu=/polyfill-next-selector[^}]*content:[\s]*?(['"])(.*?)\1[;\s]*}([^{]*?){/gim,gu=/(polyfill-rule)[^}]*(content:[\s]*(['"])(.*?)\3)[;\s]*[^}]*}/gim,_u=/(polyfill-unscoped-rule)[^}]*(content:[\s]*(['"])(.*?)\3)[;\s]*[^}]*}/gim,Eu="-shadowcsshost",xu="-shadowcsscontext",Su=")(?:\\(((?:\\([^)(]*\\)|[^)(]*)+?)\\))?([^,{]*)",wu=new RegExp("("+Eu+Su,"gim"),Cu=new RegExp("("+xu+Su,"gim"),Tu=Eu+"-no-combinator",bu=/-shadowcsshost-no-combinator([^\s]*)/,Mu=[/::shadow/g,/::content/g,/\/shadow-deep\//g,/\/shadow\//g],Pu=/(?:>>>)|(?:\/deep\/)|(?:::ng-deep)/g,Au="([>\\s~+[.,{:][\\s\\S]*)?$",Nu=/-shadowcsshost/gim,ku=/:host/gim,Iu=/:host-context/gim,Ou=/\/\*\s*[\s\S]*?\*\//g,Ru=/\/\*\s*#\s*source(Mapping)?URL=[\s\S]+?\*\//g,Du=/(\s*)([^;\{\}]+?)(\s*)((?:{%BLOCK%}?\s*;?)|(?:\s*;))/g,Lu=/([{}])/g,Fu="{",Bu="}",Vu="%BLOCK%",ju=function ju(e,t){this.selector=e,this.content=t},Uu=function Uu(e,t){this.escapedString=e,this.blocks=t},qu=function qu(e,t,n){this.name=e,this.moduleUrl=t,this.setValue=n},Hu=function Hu(e,t,n,r,i){this.outputCtx=e,this.stylesVar=t,this.dependencies=n,this.isShimmed=r,this.meta=i},Wu=function(){function t(e){this._urlResolver=e,this._shadowCss=new vu}return t.prototype.compileComponent=function(e,t){var n=t.template;return this._compileStyles(e,t,new Be({styles:n.styles,styleUrls:n.styleUrls,moduleUrl:ke(t.type)}),this.needsStyleShim(t),!0)},t.prototype.compileStyles=function(e,t,n,r){return void 0===r&&(r=this.needsStyleShim(t)),this._compileStyles(e,t,n,r,!1)},t.prototype.needsStyleShim=function(e){return e.template.encapsulation===a.Emulated},t.prototype._compileStyles=function(t,n,r,i,o){var s=this,a=r.styles.map(function(e){return Ks(s._shimIfNeeded(e,i))}),u=[];r.styleUrls.forEach(function(e){var n=a.length;a.push(null),u.push(new qu(zu(null),e,function(e){return a[n]=t.importExpr(e)}))});var p=zu(o?n:null),l=Bs(p).set(qs(a,new Io(Ro,[vo.Const]))).toDeclStmt(null,o?[e.StmtModifier.Final]:[e.StmtModifier.Final,e.StmtModifier.Exported]);return t.statements.push(l),new Hu(t,p,u,i,r)},t.prototype._shimIfNeeded=function(e,t){return t?this._shadowCss.shimCssText(e,"_ngcontent-%COMP%","_nghost-%COMP%"):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 zu(e){var t="styles";return e&&(t+="_"+Ne(e.type)),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
   */var Ku=new Set(["pre","template","textarea","script","style"]),Xu=" \f\n\r\t\v ᠎ - \u2028\u2029  　\ufeff",Qu=new RegExp("[^"+Xu+"]"),Gu=new RegExp("["+Xu+"]{2,}","g");function Yu(e){return e.replace(new RegExp(bt,"g")," ")}var Ju=function(){function e(){}return e.prototype.visitElement=function(e,t){return Ku.has(e.name)||function n(e){return e.some(function(e){return"ngPreserveWhitespaces"===e.name})}(e.attrs)?new it(e.name,st(this,e.attrs),e.children,e.sourceSpan,e.startSourceSpan,e.endSourceSpan):new it(e.name,e.attrs,st(this,e.children),e.sourceSpan,e.startSourceSpan,e.endSourceSpan)},e.prototype.visitAttribute=function(e,t){return"ngPreserveWhitespaces"!==e.name?e:null},e.prototype.visitText=function(e,t){return e.value.match(Qu)?new et(Yu(e.value).replace(Gu," "),e.sourceSpan):null},e.prototype.visitComment=function(e,t){return e},e.prototype.visitExpansion=function(e,t){return e},e.prototype.visitExpansionCase=function(e,t){return e},e}(),$u=["zero","one","two","few","many","other"];function Zu(e){var t=new rp;return new tp(st(t,e),t.isExpanded,t.errors)}var ep,tp=function tp(e,t,n){this.nodes=e,this.expanded=t,this.errors=n},np=function(e){function t(t,n){return e.call(this,t,n)||this}return n(t,e),t}(Pr),rp=function(){function e(){this.isExpanded=!1,this.errors=[]}return e.prototype.visitElement=function(e,t){return new it(e.name,e.attrs,st(this,e.children),e.sourceSpan,e.startSourceSpan,e.endSourceSpan)},e.prototype.visitAttribute=function(e,t){return e},e.prototype.visitText=function(e,t){return e},e.prototype.visitComment=function(e,t){return e},e.prototype.visitExpansion=function(e,t){return this.isExpanded=!0,"plural"==e.type?function n(e,t){var n=e.cases.map(function(e){-1!=$u.indexOf(e.value)||e.value.match(/^=\d+$/)||t.push(new np(e.valueSourceSpan,'Plural cases should be "=<number>" or one of '+$u.join(", ")));var n=Zu(e.expression);return t.push.apply(t,s(n.errors)),new it("ng-template",[new rt("ngPluralCase",""+e.value,e.valueSourceSpan)],n.nodes,e.sourceSpan,e.sourceSpan,e.sourceSpan)}),r=new rt("[ngPlural]",e.switchValue,e.switchValueSourceSpan);return new it("ng-container",[r],n,e.sourceSpan,e.sourceSpan,e.sourceSpan)}(e,this.errors):function r(e,t){var n=e.cases.map(function(e){var n=Zu(e.expression);return t.push.apply(t,s(n.errors)),new it("ng-template","other"===e.value?[new rt("ngSwitchDefault","",e.valueSourceSpan)]:[new rt("ngSwitchCase",""+e.value,e.valueSourceSpan)],n.nodes,e.sourceSpan,e.sourceSpan,e.sourceSpan)}),r=new rt("[ngSwitch]",e.switchValue,e.switchValueSourceSpan);return new it("ng-container",[r],n,e.sourceSpan,e.sourceSpan,e.sourceSpan)}
  /**
   * @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
   */(e,this.errors)},e.prototype.visitExpansionCase=function(e,t){throw new Error("Should not be reached")},e}();!function(e){e[e.DEFAULT=0]="DEFAULT",e[e.LITERAL_ATTR=1]="LITERAL_ATTR",e[e.ANIMATION=2]="ANIMATION"}(ep||(ep={}));var ip=function ip(e,t,n,r){this.name=e,this.expression=t,this.type=n,this.sourceSpan=r,this.isLiteral=this.type===ep.LITERAL_ATTR,this.isAnimation=this.type===ep.ANIMATION},op=function(){function t(e,t,n,r,i){var o=this;this._exprParser=e,this._interpolationConfig=t,this._schemaRegistry=n,this._targetErrors=i,this.pipesByName=new Map,this._usedPipes=new Map,r.forEach(function(e){return o.pipesByName.set(e.name,e)})}return t.prototype.getUsedPipes=function(){return Array.from(this._usedPipes.values())},t.prototype.createBoundHostProperties=function(e,t){var n=this;if(e.hostProperties){var r=[];return Object.keys(e.hostProperties).forEach(function(i){var o=e.hostProperties[i];"string"==typeof o?n.parsePropertyBinding(i,o,!0,t,[],r):n._reportError('Value of the host property binding "'+i+'" needs to be a string representing an expression but got "'+o+'" ('+typeof o+")",t)}),r}return null},t.prototype.createDirectiveHostPropertyAsts=function(e,t,n){var r=this,i=this.createBoundHostProperties(e,n);return i&&i.map(function(e){return r.createElementPropertyAst(t,e)})},t.prototype.createDirectiveHostEventAsts=function(e,t){var n=this;if(e.hostListeners){var r=[];return Object.keys(e.hostListeners).forEach(function(i){var o=e.hostListeners[i];"string"==typeof o?n.parseEvent(i,o,t,[],r):n._reportError('Value of the host listener "'+i+'" needs to be a string representing an expression but got "'+o+'" ('+typeof o+")",t)}),r}return null},t.prototype.parseInterpolation=function(e,t){var n=t.start.toString();try{var r=this._exprParser.parseInterpolation(e,n,this._interpolationConfig);return r&&this._reportExpressionParserErrors(r.errors,t),this._checkPipes(r,t),r}catch(e){return this._reportError(""+e,t),this._exprParser.wrapLiteralPrimitive("ERROR",n)}},t.prototype.parseInlineTemplateBinding=function(e,t,n,r,i,o){for(var s=this._parseTemplateBindings(e,t,n),a=0;a<s.length;a++){var u=s[a];u.keyIsVar?o.push(new ce(u.key,u.name,n)):u.expression?this._parsePropertyAst(u.key,u.expression,n,r,i):(r.push([u.key,""]),this.parseLiteralAttr(u.key,null,n,r,i))}},t.prototype._parseTemplateBindings=function(t,n,r){var i=this,o=r.start.toString();try{var s=this._exprParser.parseTemplateBindings(t,n,o);return this._reportExpressionParserErrors(s.errors,r),s.templateBindings.forEach(function(e){e.expression&&i._checkPipes(e.expression,r)}),s.warnings.forEach(function(t){i._reportError(t,r,e.ParseErrorLevel.WARNING)}),s.templateBindings}catch(e){return this._reportError(""+e,r),[]}},t.prototype.parseLiteralAttr=function(t,n,r,i,o){ap(t)?(t=t.substring(1),n&&this._reportError('Assigning animation triggers via @prop="exp" attributes with an expression is invalid. Use property bindings (e.g. [@prop]="exp") or use an attribute without a value (e.g. @prop) instead.',r,e.ParseErrorLevel.ERROR),this._parseAnimation(t,n,r,i,o)):o.push(new ip(t,this._exprParser.wrapLiteralPrimitive(n,""),ep.LITERAL_ATTR,r))},t.prototype.parsePropertyBinding=function(e,t,n,r,i,o){var s=!1;e.startsWith("animate-")?(s=!0,e=e.substring("animate-".length)):ap(e)&&(s=!0,e=e.substring(1)),s?this._parseAnimation(e,t,r,i,o):this._parsePropertyAst(e,this._parseBinding(t,n,r),r,i,o)},t.prototype.parsePropertyInterpolation=function(e,t,n,r,i){var o=this.parseInterpolation(t,n);return!!o&&(this._parsePropertyAst(e,o,n,r,i),!0)},t.prototype._parsePropertyAst=function(e,t,n,r,i){r.push([e,t.source]),i.push(new ip(e,t,ep.DEFAULT,n))},t.prototype._parseAnimation=function(e,t,n,r,i){var o=this._parseBinding(t||"undefined",!1,n);r.push([e,o.source]),i.push(new ip(e,o,ep.ANIMATION,n))},t.prototype._parseBinding=function(e,t,n){var r=n.start.toString();try{var i=t?this._exprParser.parseSimpleBinding(e,r,this._interpolationConfig):this._exprParser.parseBinding(e,r,this._interpolationConfig);return i&&this._reportExpressionParserErrors(i.errors,n),this._checkPipes(i,n),i}catch(e){return this._reportError(""+e,n),this._exprParser.wrapLiteralPrimitive("ERROR",r)}},t.prototype.createElementPropertyAst=function(t,n){if(n.isAnimation)return new ue(n.name,e.PropertyBindingType.Animation,y.NONE,n.expression,null,n.sourceSpan);var r=null,i=void 0,o=null,s=n.name.split("."),a=void 0;if(s.length>1)if("attr"==s[0]){this._validatePropertyOrAttributeName(o=s[1],n.sourceSpan,!0),a=up(this._schemaRegistry,t,o,!0);var u=o.indexOf(":");u>-1&&(o=Ct(o.substring(0,u),o.substring(u+1))),i=e.PropertyBindingType.Attribute}else"class"==s[0]?(o=s[1],i=e.PropertyBindingType.Class,a=[y.NONE]):"style"==s[0]&&(r=s.length>2?s[2]:null,o=s[1],i=e.PropertyBindingType.Style,a=[y.STYLE]);return null===o&&(o=this._schemaRegistry.getMappedPropName(n.name),a=up(this._schemaRegistry,t,o,!1),i=e.PropertyBindingType.Property,this._validatePropertyOrAttributeName(o,n.sourceSpan,!1)),new ue(o,i,a[0],n.expression,r,n.sourceSpan)},t.prototype.parseEvent=function(e,t,n,r,i){ap(e)?(e=e.substr(1),this._parseAnimationEvent(e,t,n,i)):this._parseEvent(e,t,n,r,i)},t.prototype._parseAnimationEvent=function(e,t,n,r){var i=function o(e,t){return B(e,".",t)}(e,[e,""]),s=i[0],a=i[1].toLowerCase();if(a)switch(a){case"start":case"done":var u=this._parseAction(t,n);r.push(new pe(s,null,a,u,n));break;default:this._reportError('The provided animation output phase value "'+a+'" for "@'+s+'" is not supported (use start or done)',n)}else this._reportError("The animation trigger output event (@"+s+") is missing its phase value name (start or done are currently supported)",n)},t.prototype._parseEvent=function(e,t,n,r,i){var s=o(F(e,[null,e]),2),a=s[0],u=s[1],p=this._parseAction(t,n);r.push([e,p.source]),i.push(new pe(u,a,null,p,n))},t.prototype._parseAction=function(e,t){var n=t.start.toString();try{var r=this._exprParser.parseAction(e,n,this._interpolationConfig);return r&&this._reportExpressionParserErrors(r.errors,t),!r||r.ast instanceof zn?(this._reportError("Empty expressions are not allowed",t),this._exprParser.wrapLiteralPrimitive("ERROR",n)):(this._checkPipes(r,t),r)}catch(e){return this._reportError(""+e,t),this._exprParser.wrapLiteralPrimitive("ERROR",n)}},t.prototype._reportError=function(t,n,r){void 0===r&&(r=e.ParseErrorLevel.ERROR),this._targetErrors.push(new Pr(n,t,r))},t.prototype._reportExpressionParserErrors=function(e,t){try{for(var n=i(e),r=n.next();!r.done;r=n.next())this._reportError(r.value.message,t)}catch(e){o={error:e}}finally{try{r&&!r.done&&(s=n.return)&&s.call(n)}finally{if(o)throw o.error}}var o,s},t.prototype._checkPipes=function(e,t){var n=this;if(e){var r=new sp;e.visit(r),r.pipes.forEach(function(e,r){var i=n.pipesByName.get(r);i?n._usedPipes.set(r,i):n._reportError("The pipe '"+r+"' could not be found",new br(t.start.moveBy(e.span.start),t.start.moveBy(e.span.end)))})}},t.prototype._validatePropertyOrAttributeName=function(t,n,r){var i=r?this._schemaRegistry.validateAttribute(t):this._schemaRegistry.validateProperty(t);i.error&&this._reportError(i.msg,n,e.ParseErrorLevel.ERROR)},t}(),sp=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.pipes=new Map,t}return n(t,e),t.prototype.visitPipe=function(e,t){return this.pipes.set(e.name,e),e.exp.visit(this),this.visitAll(e.args,t),null},t}(dr);function ap(e){return"@"==e[0]}function up(e,t,n,r){var i=[];return da.parse(t).forEach(function(t){var o=t.element?[t.element]:e.allKnownElementNames(),a=new Set(t.notSelectors.filter(function(e){return e.isElementSelector()}).map(function(e){return e.element})),u=o.filter(function(e){return!a.has(e)});i.push.apply(i,s(u.map(function(t){return e.securityContext(t,n,r)})))}),0===i.length?[y.NONE]:Array.from(new Set(i)).sort()}
  /**
   * @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 pp=/^(?:(?:(?:(bind-)|(let-)|(ref-|#)|(on-)|(bindon-)|(@))(.+))|\[\(([^\)]+)\)\]|\[([^\]]+)\]|\(([^\)]+)\))$/,lp="class",cp=da.parse("*")[0],hp=function(e){function t(t,n,r){return e.call(this,n,t,r)||this}return n(t,e),t}(Pr),fp=function fp(e,t,n){this.templateAst=e,this.usedPipes=t,this.errors=n},dp=function(){function t(e,t,n,r,i,o,s){this._config=e,this._reflector=t,this._exprParser=n,this._schemaRegistry=r,this._htmlParser=i,this._console=o,this.transforms=s}return Object.defineProperty(t.prototype,"expressionParser",{get:function(){return this._exprParser},enumerable:!0,configurable:!0}),t.prototype.parse=function(t,n,r,i,o,s,a){var u=this.tryParse(t,n,r,i,o,s,a),p=u.errors.filter(function(t){return t.level===e.ParseErrorLevel.WARNING}),l=u.errors.filter(function(t){return t.level===e.ParseErrorLevel.ERROR});if(p.length>0&&this._console.warn("Template parse warnings:\n"+p.join("\n")),l.length>0)throw X("Template parse errors:\n"+l.join("\n"),l);return{template:u.templateAst,pipes:u.usedPipes}},t.prototype.tryParse=function(e,t,n,r,i,o,s){var a="string"==typeof t?this._htmlParser.parse(t,o,!0,this.getInterpolationConfig(e)):t;return s||(a=function u(e){return new zr(st(new Ju,e.rootNodes),e.errors)}
  /**
   * @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
   */(a)),this.tryParseHtml(this.expandHtml(a),e,n,r,i)},t.prototype.tryParseHtml=function(e,t,n,r,i){var o,a=e.errors,u=[];if(e.rootNodes.length>0){var p=Cp(n),l=Cp(r),c=new Ca(this._reflector,t),h=void 0;t.template&&t.template.interpolation&&(h={start:t.template.interpolation[0],end:t.template.interpolation[1]});var f=new op(this._exprParser,h,this._schemaRegistry,l,a),d=new vp(this._reflector,this._config,c,p,f,this._schemaRegistry,i,a);o=st(d,e.rootNodes,xp),a.push.apply(a,s(c.errors)),u.push.apply(u,s(f.getUsedPipes()))}else o=[];return this._assertNoReferenceDuplicationOnTemplate(o,a),a.length>0?new fp(o,u,a):(this.transforms&&this.transforms.forEach(function(e){o=xe(e,o)}),new fp(o,u,a))},t.prototype.expandHtml=function(e,t){void 0===t&&(t=!1);var n=e.errors;if(0==n.length||t){var r=Zu(e.rootNodes);n.push.apply(n,s(r.errors)),e=new zr(r.nodes,n)}return e},t.prototype.getInterpolationConfig=function(e){if(e.template)return ct.fromArray(e.template.interpolation)},t.prototype._assertNoReferenceDuplicationOnTemplate=function(t,n){var r=[];t.filter(function(e){return!!e.references}).forEach(function(t){return t.references.forEach(function(t){var i=t.name;if(r.indexOf(i)<0)r.push(i);else{var o=new hp('Reference "#'+i+'" is defined several times',t.sourceSpan,e.ParseErrorLevel.ERROR);n.push(o)}})})},t}(),vp=function(){function t(e,t,n,r,i,o,s,a){var u=this;this.reflector=e,this.config=t,this.providerViewContext=n,this._bindingParser=i,this._schemaRegistry=o,this._schemas=s,this._targetErrors=a,this.selectorMatcher=new va,this.directivesIndex=new Map,this.ngContentCount=0,this.contentQueryStartId=n.component.viewQueries.length+1,r.forEach(function(e,t){var n=da.parse(e.selector);u.selectorMatcher.addSelectables(n,e),u.directivesIndex.set(e,t)})}return t.prototype.visitExpansion=function(e,t){return null},t.prototype.visitExpansionCase=function(e,t){return null},t.prototype.visitText=function(e,t){var n=t.findNgContentIndex(cp),r=Yu(e.value),i=this._bindingParser.parseInterpolation(r,e.sourceSpan);return i?new se(i,n,e.sourceSpan):new oe(r,n,e.sourceSpan)},t.prototype.visitAttribute=function(e,t){return new ae(e.name,e.value,e.sourceSpan)},t.prototype.visitComment=function(e,t){return null},t.prototype.visitElement=function(e,t){var n=this,r=this.contentQueryStartId,i=e.name,o=Ft(e);if(o.type===Mt.SCRIPT||o.type===Mt.STYLE)return null;if(o.type===Mt.STYLESHEET&&dt(o.hrefAttr))return null;var s=[],a=[],u=[],p=[],l=[],c=[],h=[],f=[],d=!1,v=[],m=St(e.name);e.attrs.forEach(function(e){var t,r,i=n._parseAttr(m,e,s,a,l,u,p),o=n._normalizeAttributeName(e.name);o.startsWith("*")&&(t=e.value,r=o.substring("*".length)+":");var y=null!=t;y&&(d&&n._reportError("Can't have multiple template bindings on one element. Use only one attribute prefixed with *",e.sourceSpan),d=!0,n._bindingParser.parseInlineTemplateBinding(r,t,e.sourceSpan,h,c,f)),i||y||(v.push(n.visitAttribute(e,null)),s.push([e.name,e.value]))});var y=Ep(i,s),g=this._parseDirectives(this.selectorMatcher,y),_=g.directives,E=g.matchElement,x=[],S=new Set,w=this._createDirectiveAsts(m,e.name,_,a,u,e.sourceSpan,x,S),C=this._createElementPropertyAsts(e.name,a,S),T=new Ta(this.providerViewContext,t.providerContext,t.isTemplateElement||d,w,v,x,m,r,e.sourceSpan),b=st(o.nonBindable?Sp:this,e.children,_p.create(m,w,m?t.providerContext:T));T.afterElement();var M,P=null!=o.projectAs?da.parse(o.projectAs)[0]:y,A=t.findNgContentIndex(P);if(o.type===Mt.NG_CONTENT)e.children&&!e.children.every(wp)&&this._reportError("<ng-content> element cannot have content.",e.sourceSpan),M=new ge(this.ngContentCount++,d?null:A,e.sourceSpan);else if(m)this._assertAllEventsPublishedByDirectives(w,l),this._assertNoComponentsNorElementBindingsOnTemplate(w,C,e.sourceSpan),M=new fe(v,l,x,p,T.transformedDirectiveAsts,T.transformProviders,T.transformedHasViewContainer,T.queryMatches,b,d?null:A,e.sourceSpan);else{this._assertElementExists(E,e),this._assertOnlyOneComponent(w,e.sourceSpan);var N=d?null:t.findNgContentIndex(P);M=new he(i,v,C,l,x,T.transformedDirectiveAsts,T.transformProviders,T.transformedHasViewContainer,T.queryMatches,b,d?null:N,e.sourceSpan,e.endSourceSpan||null)}if(d){var k=this.contentQueryStartId,I=Ep("ng-template",h),O=this._parseDirectives(this.selectorMatcher,I).directives,R=new Set,D=this._createDirectiveAsts(!0,e.name,O,c,[],e.sourceSpan,[],R),L=this._createElementPropertyAsts(e.name,c,R);this._assertNoComponentsNorElementBindingsOnTemplate(D,L,e.sourceSpan);var F=new Ta(this.providerViewContext,t.providerContext,t.isTemplateElement,D,[],[],!0,k,e.sourceSpan);F.afterElement(),M=new fe([],[],[],f,F.transformedDirectiveAsts,F.transformProviders,F.transformedHasViewContainer,F.queryMatches,[M],A,e.sourceSpan)}return M},t.prototype._parseAttr=function(e,t,n,r,i,o,s){var a=this._normalizeAttributeName(t.name),u=t.value,p=t.sourceSpan,l=a.match(pp),c=!1;return null!==l?(c=!0,null!=l[1]?this._bindingParser.parsePropertyBinding(l[7],u,!1,p,n,r):l[2]?e?this._parseVariable(l[7],u,p,s):this._reportError('"let-" is only supported on ng-template elements.',p):l[3]?this._parseReference(l[7],u,p,o):l[4]?this._bindingParser.parseEvent(l[7],u,p,n,i):l[5]?(this._bindingParser.parsePropertyBinding(l[7],u,!1,p,n,r),this._parseAssignmentEvent(l[7],u,p,n,i)):l[6]?this._bindingParser.parseLiteralAttr(a,u,p,n,r):l[8]?(this._bindingParser.parsePropertyBinding(l[8],u,!1,p,n,r),this._parseAssignmentEvent(l[8],u,p,n,i)):l[9]?this._bindingParser.parsePropertyBinding(l[9],u,!1,p,n,r):l[10]&&this._bindingParser.parseEvent(l[10],u,p,n,i)):c=this._bindingParser.parsePropertyInterpolation(a,u,p,n,r),c||this._bindingParser.parseLiteralAttr(a,u,p,n,r),c},t.prototype._normalizeAttributeName=function(e){return/^data-/i.test(e)?e.substring(5):e},t.prototype._parseVariable=function(e,t,n,r){e.indexOf("-")>-1&&this._reportError('"-" is not allowed in variable names',n),r.push(new ce(e,t,n))},t.prototype._parseReference=function(e,t,n,r){e.indexOf("-")>-1&&this._reportError('"-" is not allowed in reference names',n),r.push(new yp(e,t,n))},t.prototype._parseAssignmentEvent=function(e,t,n,r,i){this._bindingParser.parseEvent(e+"Change",t+"=$event",n,r,i)},t.prototype._parseDirectives=function(e,t){var n=this,r=new Array(this.directivesIndex.size),i=!1;return e.match(t,function(e,t){r[n.directivesIndex.get(t)]=t,i=i||e.hasElementSelector()}),{directives:r.filter(function(e){return!!e}),matchElement:i}},t.prototype._createDirectiveAsts=function(e,t,n,r,i,o,s,a){var u=this,p=new Set,l=null,c=n.map(function(e){var n=new br(o.start,o.end,"Directive "+Ne(e.type));e.isComponent&&(l=e);var c=[],h=u._bindingParser.createDirectiveHostPropertyAsts(e,t,n);h=u._checkPropertiesInSchema(t,h);var f=u._bindingParser.createDirectiveHostEventAsts(e,n);u._createDirectivePropertyAsts(e.inputs,r,c,a),i.forEach(function(t){(0===t.value.length&&e.isComponent||t.isReferenceToDirective(e))&&(s.push(new le(t.name,To(e.type.reference),t.value,t.sourceSpan)),p.add(t.name))});var d=u.contentQueryStartId;return u.contentQueryStartId+=e.queries.length,new ve(e,c,h,f,d,n)});return i.forEach(function(t){if(t.value.length>0)p.has(t.name)||u._reportError('There is no directive with "exportAs" set to "'+t.value+'"',t.sourceSpan);else if(!l){var n=null;e&&(n=bo(u.reflector,Co.TemplateRef)),s.push(new le(t.name,n,t.value,t.sourceSpan))}}),c},t.prototype._createDirectivePropertyAsts=function(e,t,n,r){if(e){var i=new Map;t.forEach(function(e){var t=i.get(e.name);t&&!t.isLiteral||i.set(e.name,e)}),Object.keys(e).forEach(function(t){var o=i.get(e[t]);o&&(r.add(o.name),Tp(o.expression)||n.push(new de(t,o.name,o.expression,o.sourceSpan)))})}},t.prototype._createElementPropertyAsts=function(e,t,n){var r=this,i=[];return t.forEach(function(t){t.isLiteral||n.has(t.name)||i.push(r._bindingParser.createElementPropertyAst(e,t))}),this._checkPropertiesInSchema(e,i)},t.prototype._findComponentDirectives=function(e){return e.filter(function(e){return e.directive.isComponent})},t.prototype._findComponentDirectiveNames=function(e){return this._findComponentDirectives(e).map(function(e){return Ne(e.directive.type)})},t.prototype._assertOnlyOneComponent=function(e,t){var n=this._findComponentDirectiveNames(e);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(","),t)},t.prototype._assertElementExists=function(e,t){var n=t.name.replace(/^:xhtml:/,"");if(!e&&!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,t.sourceSpan)}},t.prototype._assertNoComponentsNorElementBindingsOnTemplate=function(e,t,n){var r=this,i=this._findComponentDirectiveNames(e);i.length>0&&this._reportError("Components on an embedded template: "+i.join(","),n),t.forEach(function(e){r._reportError("Property binding "+e.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(e,t){var n=this,r=new Set;e.forEach(function(e){Object.keys(e.directive.outputs).forEach(function(t){r.add(e.directive.outputs[t])})}),t.forEach(function(e){null==e.target&&r.has(e.name)||n._reportError("Event binding "+e.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".',e.sourceSpan)})},t.prototype._checkPropertiesInSchema=function(t,n){var r=this;return n.filter(function(n){if(n.type===e.PropertyBindingType.Property&&!r._schemaRegistry.hasProperty(t,n.name,r._schemas)){var i="Can't bind to '"+n.name+"' since it isn't a known property of '"+t+"'.";t.startsWith("ng-")?i+="\n1. If '"+n.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&&(i+="\n1. If '"+t+"' is an Angular component and it has '"+n.name+"' input, then verify that it is part of this module.\n2. If '"+t+"' is a Web Component then add 'CUSTOM_ELEMENTS_SCHEMA' to the '@NgModule.schemas' of this component to suppress this message.\n3. To allow any property add 'NO_ERRORS_SCHEMA' to the '@NgModule.schemas' of this component."),r._reportError(i,n.sourceSpan)}return!Tp(n.value)})},t.prototype._reportError=function(t,n,r){void 0===r&&(r=e.ParseErrorLevel.ERROR),this._targetErrors.push(new Pr(n,t,r))},t}(),mp=function(){function e(){}return e.prototype.visitElement=function(e,t){var n=Ft(e);if(n.type===Mt.SCRIPT||n.type===Mt.STYLE||n.type===Mt.STYLESHEET)return null;var r=e.attrs.map(function(e){return[e.name,e.value]}),i=Ep(e.name,r),o=t.findNgContentIndex(i),s=st(this,e.children,xp);return new he(e.name,st(this,e.attrs),[],[],[],[],[],!1,[],s,o,e.sourceSpan,e.endSourceSpan)},e.prototype.visitComment=function(e,t){return null},e.prototype.visitAttribute=function(e,t){return new ae(e.name,e.value,e.sourceSpan)},e.prototype.visitText=function(e,t){var n=t.findNgContentIndex(cp);return new oe(e.value,n,e.sourceSpan)},e.prototype.visitExpansion=function(e,t){return e},e.prototype.visitExpansionCase=function(e,t){return e},e}(),yp=function(){function e(e,t,n){this.name=e,this.value=t,this.sourceSpan=n}return e.prototype.isReferenceToDirective=function(e){return-1!==function t(e){return e?e.split(",").map(function(e){return e.trim()}):[]}(e.exportAs).indexOf(this.value)},e}();function gp(e){return e.trim().split(/\s+/g)}var _p=function(){function e(e,t,n,r){this.isTemplateElement=e,this._ngContentIndexMatcher=t,this._wildcardNgContentIndex=n,this.providerContext=r}return e.create=function(t,n,r){var i=new va,o=null,s=n.find(function(e){return e.directive.isComponent});if(s)for(var a=s.directive.template.ngContentSelectors,u=0;u<a.length;u++)"*"===a[u]?o=u:i.addSelectables(da.parse(a[u]),u);return new e(t,i,o,r)},e.prototype.findNgContentIndex=function(e){var t=[];return this._ngContentIndexMatcher.match(e,function(e,n){t.push(n)}),t.sort(),null!=this._wildcardNgContentIndex&&t.push(this._wildcardNgContentIndex),t.length>0?t[0]:null},e}();function Ep(e,t){var n=new da,r=_t(e)[1];n.setElement(r);for(var i=0;i<t.length;i++){var o=t[i][0],s=_t(o)[1],a=t[i][1];n.addAttribute(s,a),o.toLowerCase()==lp&&gp(a).forEach(function(e){return n.addClassName(e)})}return n}var xp=new _p(!0,new va,null,null),Sp=new mp;function wp(e){return e instanceof et&&0==e.value.trim().length}function Cp(e){var t=new Map;return e.forEach(function(e){t.get(e.type.reference)||t.set(e.type.reference,e)}),Array.from(t.values())}function Tp(e){return e instanceof cr&&(e=e.ast),e instanceof zn}
  /**
   * @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 bp=function(){function e(){}return e.event=Bs("$event"),e}(),Mp=function Mp(e,t){this.stmts=e,this.allowDefault=t,this.render3Stmts=e.map(function(e){return e instanceof ms&&e.name==t.name&&e.value instanceof ss?new _s(e.value.lhs.value):e})};function Pp(t,n,r,i,o){t||(t=new jp);var s=Ap({createLiteralArrayConverter:function(e){return function(e){return qs(e)}},createLiteralMapConverter:function(e){return function(t){return Hs(e.map(function(e,n){return{key:e.key,value:t[n],quoted:e.quoted}}))}},createPipeConverter:function(e){throw new Error("Illegal State: Actions are not allowed to contain pipes. Pipe: "+e)}},r),a=new Vp(t,n,i,o),u=[];!function e(t,n){Array.isArray(t)?t.forEach(function(t){return e(t,n)}):n.push(t)}(s.visit(a,kp.Statement),u),function p(e,t,n){for(var r=e-1;r>=0;r--)n.unshift(Dp(t,r))}(a.temporaryCount,i,u);var l=u.length-1,c=null;if(l>=0){var h=function f(e){return e instanceof gs?e.expr:e instanceof _s?e.value:null}(u[l]);h&&(c=function d(e){return Bs("pd_"+e)}(i),u[l]=c.set(h.cast(Ro).notIdentical(Ks(!1))).toDeclStmt(null,[e.StmtModifier.Final]))}return new Mp(u,c)}function Ap(e,t){return function n(e,t){var n=new Bp(e);return t.visit(n)}(e,t)}var Np,kp,Ip=function Ip(e,t){this.stmts=e,this.currValExpr=t};function Op(t,n,r,i,o,s){t||(t=new jp);var a=function u(e){return Bs("currVal_"+e)}(i),p=[],l=new Vp(t,n,i,s),c=r.visit(l,kp.Expression);if(l.temporaryCount)for(var h=0;h<l.temporaryCount;h++)p.push(Dp(i,h));else if(o==Np.TrySimple)return new Ip([],c);return p.push(a.set(c).toDeclStmt(Ro,[e.StmtModifier.Final])),new Ip(p,a)}function Rp(e,t){return"tmp_"+e+"_"+t}function Dp(e,t){return new ms(Rp(e,t),fs)}function Lp(e,t){if(e!==kp.Expression)throw new Error("Expected an expression, but saw "+t)}function Fp(e,t){return e===kp.Statement?t.toStmt():t}!function(e){e[e.General=0]="General",e[e.TrySimple=1]="TrySimple"}(Np||(Np={})),function(e){e[e.Statement=0]="Statement",e[e.Expression=1]="Expression"}(kp||(kp={}));var Bp=function(e){function t(t){var n=e.call(this)||this;return n._converterFactory=t,n}return n(t,e),t.prototype.visitPipe=function(e,t){var n=this,r=s([e.exp],e.args).map(function(e){return e.visit(n,t)});return new Up(e.span,r,this._converterFactory.createPipeConverter(e.name,r.length))},t.prototype.visitLiteralArray=function(e,t){var n=this,r=e.expressions.map(function(e){return e.visit(n,t)});return new Up(e.span,r,this._converterFactory.createLiteralArrayConverter(e.expressions.length))},t.prototype.visitLiteralMap=function(e,t){var n=this,r=e.values.map(function(e){return e.visit(n,t)});return new Up(e.span,r,this._converterFactory.createLiteralMapConverter(e.keys))},t}(vr),Vp=function(){function t(e,t,n,r){this._localResolver=e,this._implicitReceiver=t,this.bindingId=n,this.interpolationFunction=r,this._nodeMap=new Map,this._resultMap=new Map,this._currentTemporary=0,this.temporaryCount=0}return t.prototype.visitBinary=function(t,n){var r;switch(t.operation){case"+":r=e.BinaryOperator.Plus;break;case"-":r=e.BinaryOperator.Minus;break;case"*":r=e.BinaryOperator.Multiply;break;case"/":r=e.BinaryOperator.Divide;break;case"%":r=e.BinaryOperator.Modulo;break;case"&&":r=e.BinaryOperator.And;break;case"||":r=e.BinaryOperator.Or;break;case"==":r=e.BinaryOperator.Equals;break;case"!=":r=e.BinaryOperator.NotEquals;break;case"===":r=e.BinaryOperator.Identical;break;case"!==":r=e.BinaryOperator.NotIdentical;break;case"<":r=e.BinaryOperator.Lower;break;case">":r=e.BinaryOperator.Bigger;break;case"<=":r=e.BinaryOperator.LowerEquals;break;case">=":r=e.BinaryOperator.BiggerEquals;break;default:throw new Error("Unsupported operation "+t.operation)}return Fp(n,new ss(r,this._visit(t.left,kp.Expression),this._visit(t.right,kp.Expression)))},t.prototype.visitChain=function(e,t){return function n(e,t){if(e!==kp.Statement)throw new Error("Expected a statement, but saw "+t)}(t,e),this.visitAll(e.expressions,t)},t.prototype.visitConditional=function(e,t){return Fp(t,this._visit(e.condition,kp.Expression).conditional(this._visit(e.trueExp,kp.Expression),this._visit(e.falseExp,kp.Expression)))},t.prototype.visitPipe=function(e,t){throw new Error("Illegal state: Pipes should have been converted into functions. Pipe: "+e.name)},t.prototype.visitFunctionCall=function(e,t){var n=this.visitAll(e.args,kp.Expression);return Fp(t,e instanceof Up?e.converter(n):this._visit(e.target,kp.Expression).callFn(n))},t.prototype.visitImplicitReceiver=function(e,t){return Lp(t,e),this._implicitReceiver},t.prototype.visitInterpolation=function(e,t){Lp(t,e);for(var n=[Ks(e.expressions.length)],r=0;r<e.strings.length-1;r++)n.push(Ks(e.strings[r])),n.push(this._visit(e.expressions[r],kp.Expression));return n.push(Ks(e.strings[e.strings.length-1])),this.interpolationFunction?this.interpolationFunction(n):e.expressions.length<=9?Vs(Co.inlineInterpolate).callFn(n):Vs(Co.interpolate).callFn([n[0],qs(n.slice(1))])},t.prototype.visitKeyedRead=function(e,t){var n=this.leftMostSafeNode(e);return n?this.convertSafeAccess(e,n,t):Fp(t,this._visit(e.obj,kp.Expression).key(this._visit(e.key,kp.Expression)))},t.prototype.visitKeyedWrite=function(e,t){var n=this._visit(e.obj,kp.Expression),r=this._visit(e.key,kp.Expression),i=this._visit(e.value,kp.Expression);return Fp(t,n.key(r).set(i))},t.prototype.visitLiteralArray=function(e,t){throw new Error("Illegal State: literal arrays should have been converted into functions")},t.prototype.visitLiteralMap=function(e,t){throw new Error("Illegal State: literal maps should have been converted into functions")},t.prototype.visitLiteralPrimitive=function(e,t){return Fp(t,Ks(e.value,null===e.value||void 0===e.value||!0===e.value||!0===e.value?Do:void 0))},t.prototype._getLocal=function(e){return this._localResolver.getLocal(e)},t.prototype.visitMethodCall=function(e,t){if(e.receiver instanceof Kn&&"$any"==e.name){if(1!=(r=this.visitAll(e.args,kp.Expression)).length)throw new Error("Invalid call to $any, expected 1 argument but received "+(r.length||"none"));return r[0].cast(Ro)}var n=this.leftMostSafeNode(e);if(n)return this.convertSafeAccess(e,n,t);var r=this.visitAll(e.args,kp.Expression),i=null,o=this._visit(e.receiver,kp.Expression);if(o===this._implicitReceiver){var s=this._getLocal(e.name);s&&(i=s.callFn(r))}return null==i&&(i=o.callMethod(e.name,r)),Fp(t,i)},t.prototype.visitPrefixNot=function(e,t){return Fp(t,function n(e,t){return new ts(e,t)}(this._visit(e.expression,kp.Expression)))},t.prototype.visitNonNullAssert=function(e,t){return Fp(t,function n(e,t){return new ns(e,t)}(this._visit(e.expression,kp.Expression)))},t.prototype.visitPropertyRead=function(e,t){var n=this.leftMostSafeNode(e);if(n)return this.convertSafeAccess(e,n,t);var r=null,i=this._visit(e.receiver,kp.Expression);return i===this._implicitReceiver&&(r=this._getLocal(e.name)),null==r&&(r=i.prop(e.name)),Fp(t,r)},t.prototype.visitPropertyWrite=function(e,t){var n=this._visit(e.receiver,kp.Expression);if(n===this._implicitReceiver&&this._getLocal(e.name))throw new Error("Cannot assign to a reference or variable!");return Fp(t,n.prop(e.name).set(this._visit(e.value,kp.Expression)))},t.prototype.visitSafePropertyRead=function(e,t){return this.convertSafeAccess(e,this.leftMostSafeNode(e),t)},t.prototype.visitSafeMethodCall=function(e,t){return this.convertSafeAccess(e,this.leftMostSafeNode(e),t)},t.prototype.visitAll=function(e,t){var n=this;return e.map(function(e){return n._visit(e,t)})},t.prototype.visitQuote=function(e,t){throw new Error("Quotes are not supported for evaluation!\n        Statement: "+e.uninterpretedExpression+" located at "+e.location)},t.prototype._visit=function(e,t){return this._resultMap.get(e)||(this._nodeMap.get(e)||e).visit(this,t)},t.prototype.convertSafeAccess=function(e,t,n){var r=this._visit(t.receiver,kp.Expression),i=void 0;this.needsTemporary(t.receiver)&&(r=(i=this.allocateTemporary()).set(r),this._resultMap.set(t.receiver,i));var o=r.isBlank();this._nodeMap.set(t,t instanceof pr?new ur(t.span,t.receiver,t.name,t.args):new Gn(t.span,t.receiver,t.name));var s=this._visit(e,kp.Expression);return this._nodeMap.delete(t),i&&this.releaseTemporary(i),Fp(n,o.conditional(Ks(null),s))},t.prototype.leftMostSafeNode=function(e){var t=this,n=function(e,n){return(t._nodeMap.get(n)||n).visit(e)};return e.visit({visitBinary:function(e){return null},visitChain:function(e){return null},visitConditional:function(e){return null},visitFunctionCall:function(e){return null},visitImplicitReceiver:function(e){return null},visitInterpolation:function(e){return null},visitKeyedRead:function(e){return n(this,e.obj)},visitKeyedWrite:function(e){return null},visitLiteralArray:function(e){return null},visitLiteralMap:function(e){return null},visitLiteralPrimitive:function(e){return null},visitMethodCall:function(e){return n(this,e.receiver)},visitPipe:function(e){return null},visitPrefixNot:function(e){return null},visitNonNullAssert:function(e){return null},visitPropertyRead:function(e){return n(this,e.receiver)},visitPropertyWrite:function(e){return null},visitQuote:function(e){return null},visitSafeMethodCall:function(e){return n(this,e.receiver)||e},visitSafePropertyRead:function(e){return n(this,e.receiver)||e}})},t.prototype.needsTemporary=function(e){var t=this,n=function(e,n){return n&&(t._nodeMap.get(n)||n).visit(e)};return e.visit({visitBinary:function(e){return n(this,e.left)||n(this,e.right)},visitChain:function(e){return!1},visitConditional:function(e){return n(this,e.condition)||n(this,e.trueExp)||n(this,e.falseExp)},visitFunctionCall:function(e){return!0},visitImplicitReceiver:function(e){return!1},visitInterpolation:function(e){return function(e,t){return t.some(function(t){return n(e,t)})}(this,e.expressions)},visitKeyedRead:function(e){return!1},visitKeyedWrite:function(e){return!1},visitLiteralArray:function(e){return!0},visitLiteralMap:function(e){return!0},visitLiteralPrimitive:function(e){return!1},visitMethodCall:function(e){return!0},visitPipe:function(e){return!0},visitPrefixNot:function(e){return n(this,e.expression)},visitNonNullAssert:function(e){return n(this,e.expression)},visitPropertyRead:function(e){return!1},visitPropertyWrite:function(e){return!1},visitQuote:function(e){return!1},visitSafeMethodCall:function(e){return!0},visitSafePropertyRead:function(e){return!1}})},t.prototype.allocateTemporary=function(){var e=this._currentTemporary++;return this.temporaryCount=Math.max(this._currentTemporary,this.temporaryCount),new Ho(Rp(this.bindingId,e))},t.prototype.releaseTemporary=function(e){if(this._currentTemporary--,e.name!=Rp(this.bindingId,this._currentTemporary))throw new Error("Temporary "+e.name+" released out of order")},t}(),jp=function(){function e(){}return e.prototype.getLocal=function(e){return e===bp.event.name?bp.event:null},e}(),Up=function(e){function t(t,n,r){var i=e.call(this,t,null,n)||this;return i.args=n,i.converter=r,i}return n(t,e),t}(lr),qp=function(){function e(e,t){this.options=e,this.reflector=t}return e.prototype.compileComponent=function(e,t,n,r,i,o){var s=this,a=new Map;r.forEach(function(e){return a.set(e.name,e.type.reference)});var u=0,p=function(e,n){var r=u++;return new Wp(s.options,s.reflector,i,e,t.type.reference,t.isHost,r,a,n,o,p)},l=p(null,[]);return l.visitAll([],n),l.build(e)},e}(),Hp=new(function(){function e(){}return e.prototype.getLocal=function(e){return e===bp.event.name?Bs("_any"):null},e}()),Wp=function(){function e(e,t,n,r,i,o,s,a,u,p,l){this.options=e,this.reflector=t,this.externalReferenceVars=n,this.parent=r,this.component=i,this.isHostComponent=o,this.embeddedViewIndex=s,this.pipes=a,this.guards=u,this.ctx=p,this.viewBuilderFactory=l,this.refOutputVars=new Map,this.variables=[],this.children=[],this.updates=[],this.actions=[]}return e.prototype.getOutputVar=function(e){var t;if(!(t=e===this.component&&this.isHostComponent?"_any":e instanceof Ce?this.externalReferenceVars.get(e):"_any"))throw new Error("Illegal State: referring to a type without a variable "+JSON.stringify(e));return t},e.prototype.getTypeGuardExpressions=function(e){var t,n,r,o,a=s(this.guards);try{for(var u=i(e.directives),p=u.next();!p.done;p=u.next()){var l=p.value;try{for(var c=i(l.inputs),h=c.next();!h.done;h=c.next()){var f=h.value,d=l.directive.guards[f.directiveName];d&&a.push({guard:d,useIf:"UseIf"===d,expression:{context:this.component,value:f.value}})}}catch(e){r={error:e}}finally{try{h&&!h.done&&(o=c.return)&&o.call(c)}finally{if(r)throw r.error}}}}catch(e){t={error:e}}finally{try{p&&!p.done&&(n=u.return)&&n.call(u)}finally{if(t)throw t.error}}return a},e.prototype.visitAll=function(e,t){this.variables=e,xe(this,t)},e.prototype.build=function(e,t){var n=this;void 0===t&&(t=[]),this.children.forEach(function(n){return n.build(e,t)});var r=[Bs("_any").set(fs).toDeclStmt(Ro)],o=0;if(this.updates.forEach(function(e){var t=n.preprocessUpdateExpression(e),i=t.sourceSpan,a=t.context,u=t.value,p=""+o++,l=Op(a===n.component?n:Hp,Bs(n.getOutputVar(a)),u,p,Np.General),c=l.stmts;c.push(new gs(l.currValExpr)),r.push.apply(r,s(c.map(function(e){return Ds(e,i)})))}),this.actions.forEach(function(e){var t=e.sourceSpan,i=e.context,a=e.value,u=""+o++,p=Pp(i===n.component?n:Hp,Bs(n.getOutputVar(i)),a,u).stmts;r.push.apply(r,s(p.map(function(e){return Ds(e,t)})))}),this.guards.length){var a=void 0;try{for(var u=i(this.guards),p=u.next();!p.done;p=u.next()){var l=p.value,c=this.preprocessUpdateExpression(l.expression),h=c.context,f=c.value,d=""+o++,v=Op(h===this.component?this:Hp,Bs(this.getOutputVar(h)),f,d,Np.TrySimple),m=v.currValExpr;if(0==v.stmts.length){var y=l.useIf?m:this.ctx.importExpr(l.guard).callFn([m]);a=a?a.and(y):y}}}catch(e){g={error:e}}finally{try{p&&!p.done&&(_=u.return)&&_.call(u)}finally{if(g)throw g.error}}a&&(r=[new Ts(a,r)])}var g,_,E=new ys("_View_"+e+"_"+this.embeddedViewIndex,[],r);return t.push(E),t},e.prototype.visitBoundText=function(e,t){var n=this;e.value.ast.expressions.forEach(function(t){return n.updates.push({context:n.component,value:t,sourceSpan:e.sourceSpan})})},e.prototype.visitEmbeddedTemplate=function(e,t){if(this.visitElementOrTemplate(e),this.options.fullTemplateTypeCheck){var n=this.getTypeGuardExpressions(e),r=this.viewBuilderFactory(this,n);this.children.push(r),r.visitAll(e.variables,e.children)}},e.prototype.visitElement=function(e,t){var n=this;this.visitElementOrTemplate(e),e.inputs.forEach(function(e){n.updates.push({context:n.component,value:e.value,sourceSpan:e.sourceSpan})}),xe(this,e.children)},e.prototype.visitElementOrTemplate=function(e){var t=this;e.directives.forEach(function(e){t.visitDirective(e)}),e.references.forEach(function(e){t.refOutputVars.set(e.name,e.value&&e.value.identifier&&t.options.fullTemplateTypeCheck?e.value.identifier.reference:Mo.Dynamic)}),e.outputs.forEach(function(e){t.actions.push({context:t.component,value:e.handler,sourceSpan:e.sourceSpan})})},e.prototype.visitDirective=function(e){var t=this,n=e.directive.type.reference;e.inputs.forEach(function(e){return t.updates.push({context:t.component,value:e.value,sourceSpan:e.sourceSpan})}),this.options.fullTemplateTypeCheck&&(e.hostProperties.forEach(function(e){return t.updates.push({context:n,value:e.value,sourceSpan:e.sourceSpan})}),e.hostEvents.forEach(function(e){return t.actions.push({context:n,value:e.handler,sourceSpan:e.sourceSpan})}))},e.prototype.getLocal=function(e){if(e==bp.event.name)return Bs(this.getOutputVar(Mo.Dynamic));for(var t=this;t;t=t.parent){var n=void 0;if(null==(n=t.refOutputVars.get(e))&&t.variables.find(function(t){return t.name===e})&&(n=Mo.Dynamic),null!=n)return Bs(this.getOutputVar(n))}return null},e.prototype.pipeOutputVar=function(e){var t=this.pipes.get(e);if(!t)throw new Error("Illegal State: Could not find pipe "+e+" in template of "+this.component);return this.getOutputVar(t)},e.prototype.preprocessUpdateExpression=function(e){var t=this;return{sourceSpan:e.sourceSpan,context:e.context,value:Ap({createLiteralArrayConverter:function(e){return function(e){var n=qs(e);return t.options.fullTemplateTypeCheck?n:n.cast(Ro)}},createLiteralMapConverter:function(e){return function(n){var r=Hs(e.map(function(e,t){return{key:e.key,value:n[t],quoted:e.quoted}}));return t.options.fullTemplateTypeCheck?r:r.cast(Ro)}},createPipeConverter:function(e,n){return function(n){return Bs(t.options.fullTemplateTypeCheck?t.pipeOutputVar(e):t.getOutputVar(Mo.Dynamic)).callMethod("transform",n)}}},e.value)}},e.prototype.visitNgContent=function(e,t){},e.prototype.visitText=function(e,t){},e.prototype.visitDirectiveProperty=function(e,t){},e.prototype.visitReference=function(e,t){},e.prototype.visitVariable=function(e,t){},e.prototype.visitEvent=function(e,t){},e.prototype.visitElementProperty=function(e,t){},e.prototype.visitAttr=function(e,t){},e}(),zp=function zp(e,t){this.viewClassVar=e,this.rendererTypeVar=t},Kp=function(){function t(e){this._reflector=e}return t.prototype.compileComponent=function(t,n,r,i,o){var a=this,u=0,p=function e(t,n){return void 0===n&&(n=new Map),t.forEach(function(t){var r=new Set,i=new Set,o=void 0;t instanceof he?(e(t.children,n),t.children.forEach(function(e){var t=n.get(e);t.staticQueryIds.forEach(function(e){return r.add(e)}),t.dynamicQueryIds.forEach(function(e){return i.add(e)})}),o=t.queryMatches):t instanceof fe&&(e(t.children,n),t.children.forEach(function(e){var t=n.get(e);t.staticQueryIds.forEach(function(e){return i.add(e)}),t.dynamicQueryIds.forEach(function(e){return i.add(e)})}),o=t.queryMatches),o&&o.forEach(function(e){return r.add(e.queryId)}),i.forEach(function(e){return r.delete(e)}),n.set(t,{staticQueryIds:r,dynamicQueryIds:i})}),n}(r),l=void 0;if(!n.isHost){var c=n.template,h=[];c.animations&&c.animations.length&&h.push(new ls("animation",Qs(t,c.animations),!0));var f=Bs(Oe(n.type.reference));l=f.name,t.statements.push(f.set(Vs(Co.createRendererType2).callFn([new cs([new ls("encapsulation",Ks(c.encapsulation),!1),new ls("styles",i,!1),new ls("data",new cs(h),!1)])])).toDeclStmt(js(Co.RendererType2),[e.StmtModifier.Final,e.StmtModifier.Exported]))}var d,v=function(e){var r=u++;return new Zp(a._reflector,t,e,n,r,o,p,v)},m=v(null);return m.visitAll([],r),(d=t.statements).push.apply(d,s(m.build())),new zp(m.viewName,l)},t}(),Xp=Bs("_l"),Qp=Bs("_v"),Gp=Bs("_ck"),Yp=Bs("_co"),Jp=Bs("en"),$p=Bs("ad"),Zp=function(){function t(e,t,n,r,i,o,s,a){this.reflector=e,this.outputCtx=t,this.parent=n,this.component=r,this.embeddedViewIndex=i,this.usedPipes=o,this.staticQueryIds=s,this.viewBuilderFactory=a,this.nodes=[],this.purePipeNodeIndices=Object.create(null),this.refNodeIndices=Object.create(null),this.variables=[],this.children=[],this.compType=this.embeddedViewIndex>0?Ro:Us(t.importExpr(this.component.type.reference)),this.viewName=Ie(this.component.type.reference,this.embeddedViewIndex)}return t.prototype.visitAll=function(e,t){var n=this;if(this.variables=e,this.parent||this.usedPipes.forEach(function(e){e.pure&&(n.purePipeNodeIndices[e.name]=n._createPipe(null,e))}),!this.parent){var r=function i(e){var t=new Set,n=new Set;return Array.from(e.values()).forEach(function(e){e.staticQueryIds.forEach(function(e){return t.add(e)}),e.dynamicQueryIds.forEach(function(e){return n.add(e)})}),n.forEach(function(e){return t.delete(e)}),{staticQueryIds:t,dynamicQueryIds:n}}(this.staticQueryIds);this.component.viewQueries.forEach(function(e,t){var i=t+1,o=e.first?0:1,s=134217728|rl(r,i,e.first);n.nodes.push(function(){return{sourceSpan:null,nodeFlags:s,nodeDef:Vs(Co.queryDef).callFn([Ks(s),Ks(i),new cs([new ls(e.propertyName,Ks(o),!1)])])}})})}xe(this,t),this.parent&&(0===t.length||function e(t){var n=t[t.length-1];return n instanceof fe?n.hasViewContainer:n instanceof he?Et(n.name)&&n.children.length?e(n.children):n.hasViewContainer:n instanceof ge}(t))&&this.nodes.push(function(){return{sourceSpan:null,nodeFlags:1,nodeDef:Vs(Co.anchorDef).callFn([Ks(0),fs,fs,Ks(0)])}})},t.prototype.build=function(t){void 0===t&&(t=[]),this.children.forEach(function(e){return e.build(t)});var n=this._createNodeExpressions(),r=n.updateDirectivesStmts,i=n.nodeDefExprs,o=this._createUpdateFn(n.updateRendererStmts),s=this._createUpdateFn(r),a=0;this.parent||this.component.changeDetection!==u.OnPush||(a|=2);var p=new ys(this.viewName,[new is(Xp.name)],[new _s(Vs(Co.viewDef).callFn([Ks(a),qs(i),s,o]))],js(Co.ViewDefinition),0===this.embeddedViewIndex?[e.StmtModifier.Exported]:[]);return t.push(p),t},t.prototype._createUpdateFn=function(e){var t;if(e.length>0){var n=[];!this.component.isHost&&Is(e).has(Yp.name)&&n.push(Yp.set(Qp.prop("component")).toDeclStmt(this.compType)),t=Ws([new is(Gp.name,Do),new is(Qp.name,Do)],s(n,e),Do)}else t=fs;return t},t.prototype.visitNgContent=function(e,t){this.nodes.push(function(){return{sourceSpan:e.sourceSpan,nodeFlags:8,nodeDef:Vs(Co.ngContentDef).callFn([Ks(e.ngContentIndex),Ks(e.index)])}})},t.prototype.visitText=function(e,t){this.nodes.push(function(){return{sourceSpan:e.sourceSpan,nodeFlags:2,nodeDef:Vs(Co.textDef).callFn([Ks(-1),Ks(e.ngContentIndex),qs([Ks(e.value)])])}})},t.prototype.visitBoundText=function(e,t){var n=this,r=this.nodes.length;this.nodes.push(null);var i=e.value.ast,o=i.expressions.map(function(t,i){return n._preprocessUpdateExpression({nodeIndex:r,bindingIndex:i,sourceSpan:e.sourceSpan,context:Yp,value:t})}),s=r;this.nodes[r]=function(){return{sourceSpan:e.sourceSpan,nodeFlags:2,nodeDef:Vs(Co.textDef).callFn([Ks(s),Ks(e.ngContentIndex),qs(i.strings.map(function(e){return Ks(e)}))]),updateRenderer:o}}},t.prototype.visitEmbeddedTemplate=function(e,t){var n=this,r=this.nodes.length;this.nodes.push(null);var i=this._visitElementOrTemplate(r,e),o=i.flags,s=i.queryMatchesExpr,a=i.hostEvents,u=this.viewBuilderFactory(this);this.children.push(u),u.visitAll(e.variables,e.children);var p=this.nodes.length-r-1;this.nodes[r]=function(){return{sourceSpan:e.sourceSpan,nodeFlags:1|o,nodeDef:Vs(Co.anchorDef).callFn([Ks(o),s,Ks(e.ngContentIndex),Ks(p),n._createElementHandleEventFn(r,a),Bs(u.viewName)])}}},t.prototype.visitElement=function(t,n){var r=this,i=this.nodes.length;this.nodes.push(null);var s=Et(t.name)?null:t.name,a=this._visitElementOrTemplate(i,t),u=a.flags,p=a.usedEvents,l=a.queryMatchesExpr,c=a.hostBindings,h=a.hostEvents,f=[],d=[],v=[];if(s){var m=t.inputs.map(function(e){return{context:Yp,inputAst:e,dirAst:null}}).concat(c);m.length&&(d=m.map(function(e,t){return r._preprocessUpdateExpression({context:e.context,nodeIndex:i,bindingIndex:t,sourceSpan:e.inputAst.sourceSpan,value:e.inputAst.value})}),f=m.map(function(t){return function n(t,r){switch(t.type){case e.PropertyBindingType.Attribute:return qs([Ks(1),Ks(t.name),Ks(t.securityContext)]);case e.PropertyBindingType.Property:return qs([Ks(8),Ks(t.name),Ks(t.securityContext)]);case e.PropertyBindingType.Animation:return qs([Ks(8|(r&&r.directive.isComponent?32:16)),Ks("@"+t.name),Ks(t.securityContext)]);case e.PropertyBindingType.Class:return qs([Ks(2),Ks(t.name),fs]);case e.PropertyBindingType.Style:return qs([Ks(4),Ks(t.name),Ks(t.unit)])}}(t.inputAst,t.dirAst)})),v=p.map(function(e){var t=o(e,2),n=t[1];return qs([Ks(t[0]),Ks(n)])})}xe(this,t.children);var y=this.nodes.length-i-1,g=t.directives.find(function(e){return e.directive.isComponent}),_=fs,E=fs;g&&(E=this.outputCtx.importExpr(g.directive.componentViewType),_=this.outputCtx.importExpr(g.directive.rendererType));var x=i;this.nodes[i]=function(){return{sourceSpan:t.sourceSpan,nodeFlags:1|u,nodeDef:Vs(Co.elementDef).callFn([Ks(x),Ks(u),l,Ks(t.ngContentIndex),Ks(y),Ks(s),s?function e(t){var n=Object.create(null);return t.attrs.forEach(function(e){n[e.name]=e.value}),t.directives.forEach(function(e){Object.keys(e.directive.hostAttributes).forEach(function(t){var r=e.directive.hostAttributes[t],i=n[t];n[t]=null!=i?function o(e,t,n){return"class"==e||"style"==e?t+" "+n:n}(t,i,r):r})}),qs(Object.keys(n).sort().map(function(e){return qs([Ks(e),Ks(n[e])])}))}(t):fs,f.length?qs(f):fs,v.length?qs(v):fs,r._createElementHandleEventFn(i,h),E,_]),updateRenderer:d}}},t.prototype._visitElementOrTemplate=function(e,t){var n=this,r=0;t.hasViewContainer&&(r|=16777216);var i=new Map;t.outputs.forEach(function(e){var t=nl(e,null),n=t.name,r=t.target;i.set(il(r,n),[r,n])}),t.directives.forEach(function(e){e.hostEvents.forEach(function(t){var n=nl(t,e),r=n.name,o=n.target;i.set(il(o,r),[o,r])})});var o=[],a=[];this._visitComponentFactoryResolverProvider(t.directives),t.providers.forEach(function(r,u){var p=void 0,l=void 0;if(t.directives.forEach(function(e,t){e.directive.type.reference===Fe(r.token)&&(p=e,l=t)}),p){var c=n._visitDirective(r,p,l,e,t.references,t.queryMatches,i,n.staticQueryIds.get(t)),h=c.hostEvents;o.push.apply(o,s(c.hostBindings)),a.push.apply(a,s(h))}else n._visitProvider(r,t.queryMatches)});var u=[];return t.queryMatches.forEach(function(e){var t=void 0;Fe(e.value)===n.reflector.resolveExternalReference(Co.ElementRef)?t=0:Fe(e.value)===n.reflector.resolveExternalReference(Co.ViewContainerRef)?t=3:Fe(e.value)===n.reflector.resolveExternalReference(Co.TemplateRef)&&(t=2),null!=t&&u.push(qs([Ks(e.queryId),Ks(t)]))}),t.references.forEach(function(t){var r=void 0;t.value?Fe(t.value)===n.reflector.resolveExternalReference(Co.TemplateRef)&&(r=2):r=1,null!=r&&(n.refNodeIndices[t.name]=e,u.push(qs([Ks(t.name),Ks(r)])))}),t.outputs.forEach(function(e){a.push({context:Yp,eventAst:e,dirAst:null})}),{flags:r,usedEvents:Array.from(i.values()),queryMatchesExpr:u.length?qs(u):fs,hostBindings:o,hostEvents:a}},t.prototype._visitDirective=function(e,t,n,r,i,o,s,a){var u=this,p=this.nodes.length;this.nodes.push(null),t.directive.queries.forEach(function(e,n){var r=t.contentQueryStartId+n,i=67108864|rl(a,r,e.first),o=e.first?0:1;u.nodes.push(function(){return{sourceSpan:t.sourceSpan,nodeFlags:i,nodeDef:Vs(Co.queryDef).callFn([Ks(i),Ks(r),new cs([new ls(e.propertyName,Ks(o),!1)])])}})});var l=this.nodes.length-p-1,c=this._visitProviderOrDirective(e,o),h=c.flags,f=c.queryMatchExprs,d=c.providerExpr,v=c.depsExpr;i.forEach(function(t){t.value&&Fe(t.value)===Fe(e.token)&&(u.refNodeIndices[t.name]=p,f.push(qs([Ks(t.name),Ks(4)])))}),t.directive.isComponent&&(h|=32768);var m=t.inputs.map(function(e,t){var n=qs([Ks(t),Ks(e.directiveName)]);return new ls(e.directiveName,n,!1)}),y=[],g=t.directive;Object.keys(g.outputs).forEach(function(e){var t=g.outputs[e];s.has(t)&&y.push(new ls(e,Ks(t),!1))});var _=[];(t.inputs.length||(327680&h)>0)&&(_=t.inputs.map(function(e,t){return u._preprocessUpdateExpression({nodeIndex:p,bindingIndex:t,sourceSpan:e.sourceSpan,context:Yp,value:e.value})}));var E=Vs(Co.nodeValue).callFn([Qp,Ks(p)]),x=t.hostProperties.map(function(e){return{context:E,dirAst:t,inputAst:e}}),S=t.hostEvents.map(function(e){return{context:E,eventAst:e,dirAst:t}}),w=p;return this.nodes[p]=function(){return{sourceSpan:t.sourceSpan,nodeFlags:16384|h,nodeDef:Vs(Co.directiveDef).callFn([Ks(w),Ks(h),f.length?qs(f):fs,Ks(l),d,v,m.length?new cs(m):fs,y.length?new cs(y):fs]),updateDirectives:_,directive:t.directive.type}},{hostBindings:x,hostEvents:S}},t.prototype._visitProvider=function(e,t){this._addProviderNode(this._visitProviderOrDirective(e,t))},t.prototype._visitComponentFactoryResolverProvider=function(e){var t=e.find(function(e){return e.directive.isComponent});if(t&&t.directive.entryComponents.length){var n=La(this.reflector,this.outputCtx,8192,t.directive.entryComponents);this._addProviderNode({providerExpr:n.providerExpr,depsExpr:n.depsExpr,flags:n.flags,tokenExpr:n.tokenExpr,queryMatchExprs:[],sourceSpan:t.sourceSpan})}},t.prototype._addProviderNode=function(e){this.nodes.push(function(){return{sourceSpan:e.sourceSpan,nodeFlags:e.flags,nodeDef:Vs(Co.providerDef).callFn([Ks(e.flags),e.queryMatchExprs.length?qs(e.queryMatchExprs):fs,e.tokenExpr,e.providerExpr,e.depsExpr])}})},t.prototype._visitProviderOrDirective=function(e,t){var n=[];t.forEach(function(t){Fe(t.value)===Fe(e.token)&&n.push(qs([Ks(t.queryId),Ks(4)]))});var r=ka(this.outputCtx,e);return{flags:0|r.flags,queryMatchExprs:n,providerExpr:r.providerExpr,depsExpr:r.depsExpr,tokenExpr:r.tokenExpr,sourceSpan:e.sourceSpan}},t.prototype.getLocal=function(e){if(e==bp.event.name)return bp.event;for(var t=Qp,n=this;n;n=n.parent,t=t.prop("parent").cast(Ro)){var r=n.refNodeIndices[e];if(null!=r)return Vs(Co.nodeValue).callFn([t,Ks(r)]);var i=n.variables.find(function(t){return t.name===e});if(i){var o=i.value||"$implicit";return t.prop("context").prop(o)}}return null},t.prototype._createLiteralArrayConverter=function(e,t){if(0===t){var n=Vs(Co.EMPTY_ARRAY);return function(){return n}}var r=this.nodes.length;return this.nodes.push(function(){return{sourceSpan:e,nodeFlags:32,nodeDef:Vs(Co.pureArrayDef).callFn([Ks(r),Ks(t)])}}),function(e){return el(r,e)}},t.prototype._createLiteralMapConverter=function(e,t){if(0===t.length){var n=Vs(Co.EMPTY_MAP);return function(){return n}}var i=Hs(t.map(function(e,t){return r({},e,{value:Ks(t)})})),o=this.nodes.length;return this.nodes.push(function(){return{sourceSpan:e,nodeFlags:64,nodeDef:Vs(Co.pureObjectDef).callFn([Ks(o),i])}}),function(e){return el(o,e)}},t.prototype._createPipeConverter=function(e,t,n){var r=this.usedPipes.find(function(e){return e.name===t});if(r.pure){var i=this.nodes.length;this.nodes.push(function(){return{sourceSpan:e.sourceSpan,nodeFlags:128,nodeDef:Vs(Co.purePipeDef).callFn([Ks(i),Ks(n)])}});for(var o=Qp,s=this;s.parent;)s=s.parent,o=o.prop("parent").cast(Ro);var a=s.purePipeNodeIndices[t],u=Vs(Co.nodeValue).callFn([o,Ks(a)]);return function(t){return tl(e.nodeIndex,e.bindingIndex,el(i,[u].concat(t)))}}var p=this._createPipe(e.sourceSpan,r),l=Vs(Co.nodeValue).callFn([Qp,Ks(p)]);return function(t){return tl(e.nodeIndex,e.bindingIndex,l.callMethod("transform",t))}},t.prototype._createPipe=function(e,t){var n=this,r=this.nodes.length,i=0;t.type.lifecycleHooks.forEach(function(e){e===pa.OnDestroy&&(i|=Da(e))});var o=t.type.diDeps.map(function(e){return Ra(n.outputCtx,e)});return this.nodes.push(function(){return{sourceSpan:e,nodeFlags:16,nodeDef:Vs(Co.pipeDef).callFn([Ks(i),n.outputCtx.importExpr(t.type.reference),qs(o)])}}),r},t.prototype._preprocessUpdateExpression=function(e){var t=this;return{nodeIndex:e.nodeIndex,bindingIndex:e.bindingIndex,sourceSpan:e.sourceSpan,context:e.context,value:Ap({createLiteralArrayConverter:function(n){return t._createLiteralArrayConverter(e.sourceSpan,n)},createLiteralMapConverter:function(n){return t._createLiteralMapConverter(e.sourceSpan,n)},createPipeConverter:function(n,r){return t._createPipeConverter(e,n,r)}},e.value)}},t.prototype._createNodeExpressions=function(){var e=this,t=0,n=[],r=[],i=this.nodes.map(function(e,t){var i=e(),a=i.nodeDef,u=i.nodeFlags,p=i.updateDirectives,l=i.updateRenderer,c=i.sourceSpan;return l&&n.push.apply(n,s(o(t,c,l,!1))),p&&r.push.apply(r,s(o(t,c,p,(327680&u)>0))),Ls(3&u?new hs([Xp.callFn([]).callFn([]),a]):a,c)});return{updateRendererStmts:n,updateDirectivesStmts:r,nodeDefExprs:i};function o(n,r,i,o){var a=[],u=i.map(function(n){var r=n.sourceSpan,i=n.context,o=""+t++,u=Op(i===Yp?e:null,i,n.value,o,Np.General),p=u.currValExpr;return a.push.apply(a,s(u.stmts.map(function(e){return Ds(e,r)}))),Ls(p,r)});return(i.length||o)&&a.push(Ds(el(n,u).toStmt(),r)),a}},t.prototype._createElementHandleEventFn=function(e,t){var n,r=this,i=[],o=0;if(t.forEach(function(e){var t=e.context,n=e.eventAst,s=e.dirAst,a=""+o++,u=Pp(t===Yp?r:null,t,n.handler,a),p=u.allowDefault,l=u.stmts;p&&l.push($p.set(p.and($p)).toStmt());var c=nl(n,s),h=il(c.target,c.name);i.push(Ds(new Ts(Ks(h).identical(Jp),l),n.sourceSpan))}),i.length>0){var a=[$p.set(Ks(!0)).toDeclStmt(Lo)];!this.component.isHost&&Is(i).has(Yp.name)&&a.push(Yp.set(Qp.prop("component")).toDeclStmt(this.compType)),n=Ws([new is(Qp.name,Do),new is(Jp.name,Do),new is(bp.event.name,Do)],s(a,i,[new _s($p)]),Do)}else n=fs;return n},t.prototype.visitDirective=function(e,t){},t.prototype.visitDirectiveProperty=function(e,t){},t.prototype.visitReference=function(e,t){},t.prototype.visitVariable=function(e,t){},t.prototype.visitEvent=function(e,t){},t.prototype.visitElementProperty=function(e,t){},t.prototype.visitAttr=function(e,t){},t}();function el(e,t){return Gp.callFn(t.length>10?[Qp,Ks(e),Ks(1),qs(t)]:s([Qp,Ks(e),Ks(0)],t))}function tl(e,t,n){return Vs(Co.unwrapValue).callFn([Qp,Ks(e),Ks(t),n])}function nl(e,t){return e.isAnimation?{name:"@"+e.name+"."+e.phase,target:t&&t.directive.isComponent?"component":null}:e}function rl(e,t,n){var r=0;return!n||!e.staticQueryIds.has(t)&&e.dynamicQueryIds.has(t)?r|=536870912:r|=268435456,r}function il(e,t){return e?e+":"+t: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
   */var ol={},sl=function(e){function t(t){var n=e.call(this,t.type)||this;return n.resolved=t,n.original=t,n}return n(t,e),t.prototype.visitExpression=function(e,t){return t===ol?this.original.visitExpression(e,t):this.resolved.visitExpression(e,t)},t.prototype.isEquivalent=function(e){return e instanceof t&&this.resolved.isEquivalent(e.resolved)},t.prototype.isConstant=function(){return!0},t.prototype.fixup=function(e){this.resolved=e,this.shared=!0},t}(Uo),al=function(){function t(){this.statements=[],this.translations=new Map,this.literals=new Map,this.literalFactories=new Map,this.injectorDefinitions=new Map,this.directiveDefinitions=new Map,this.componentDefinitions=new Map,this.pipeDefinitions=new Map,this.nextNameIndex=0}return t.prototype.getConstLiteral=function(t,n){if(t instanceof Jo||t instanceof sl)return t;var r=this.keyOf(t),i=this.literals.get(r),o=!1;if(i||(i=new sl(t),this.literals.set(r,i),o=!0),!o&&!i.shared||o&&n){var s=this.freshName();this.statements.push(Bs(s).set(t).toDeclStmt(Do,[e.StmtModifier.Final])),i.fixup(Bs(s))}return i},t.prototype.getTranslation=function(t,n){var r=n.meaning?t+"\0\0"+n.meaning:t,i=this.translations.get(r);if(i)return i;var o=function s(e){var t=[];return e.description&&t.push({tagName:"desc",text:e.description}),e.meaning&&t.push({tagName:"meaning",text:e.meaning}),0==t.length?null:new Ms(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
   */(n);o&&this.statements.push(o);var a=Bs(this.freshTranslationName()),u=Bs("goog.getMsg").callFn([Ks(t)]),p=a.set(u).toDeclStmt(Do,[e.StmtModifier.Final]);return this.statements.push(p),this.translations.set(r,a),a},t.prototype.getDefinition=function(t,n,r,i){void 0===i&&(i=!1);var o=this.definitionsOf(n),s=o.get(t),a=!1;if(!s){var u=this.propertyNameOf(n);s=new sl(r.importExpr(t).prop(u)),o.set(t,s),a=!0}if(!a&&!s.shared||a&&i){var p=this.freshName();this.statements.push(Bs(p).set(s.resolved).toDeclStmt(Do,[e.StmtModifier.Final])),s.fixup(Bs(p))}return s},t.prototype.getLiteralFactory=function(e){if(e instanceof ps){var t=e.entries.map(function(e){return e.isConstant()?e:Ks(null)}),n=this.keyOf(qs(t));return this._getLiteralFactory(n,e.entries,function(e){return qs(e)})}var r=Hs(e.entries.map(function(e){return{key:e.key,value:e.value.isConstant()?e.value:Ks(null),quoted:e.quoted}}));return n=this.keyOf(r),this._getLiteralFactory(n,e.entries.map(function(e){return e.value}),function(t){return Hs(t.map(function(t,n){return{key:e.entries[n].key,value:t,quoted:e.entries[n].quoted}}))})},t.prototype._getLiteralFactory=function(t,n,r){var i=this,o=this.literalFactories.get(t),s=n.filter(function(e){return!e.isConstant()});if(!o){var a=n.map(function(e,t){return e.isConstant()?i.getConstLiteral(e,!0):Bs("a"+t)}),u=Ws(a.filter(ll).map(function(e){return new is(e.name,Ro)}),[new _s(r(a))],Do),p=this.freshName();this.statements.push(Bs(p).set(u).toDeclStmt(Do,[e.StmtModifier.Final])),o=Bs(p),this.literalFactories.set(t,o)}return{literalFactory:o,literalFactoryArguments:s}},t.prototype.uniqueName=function(e){return""+e+this.nextNameIndex++},t.prototype.definitionsOf=function(e){switch(e){case 2:return this.componentDefinitions;case 1:return this.directiveDefinitions;case 0:return this.injectorDefinitions;case 3:return this.pipeDefinitions}return K("Unknown definition kind "+e),this.componentDefinitions},t.prototype.propertyNameOf=function(e){switch(e){case 2:return"ngComponentDef";case 1:return"ngDirectiveDef";case 0:return"ngInjectorDef";case 3:return"ngPipeDef"}return K("Unknown definition kind "+e),"<unknown>"},t.prototype.freshName=function(){return this.uniqueName("_c")},t.prototype.freshTranslationName=function(){return this.uniqueName("MSG_").toUpperCase()},t.prototype.keyOf=function(e){return e.visitExpression(new ul,ol)},t}(),ul=function(){function e(){this.visitReadVarExpr=pl,this.visitWriteVarExpr=pl,this.visitWriteKeyExpr=pl,this.visitWritePropExpr=pl,this.visitInvokeMethodExpr=pl,this.visitInvokeFunctionExpr=pl,this.visitInstantiateExpr=pl,this.visitConditionalExpr=pl,this.visitNotExpr=pl,this.visitAssertNotNullExpr=pl,this.visitCastExpr=pl,this.visitFunctionExpr=pl,this.visitBinaryOperatorExpr=pl,this.visitReadPropExpr=pl,this.visitReadKeyExpr=pl,this.visitCommaExpr=pl}return e.prototype.visitLiteralExpr=function(e){return""+("string"==typeof e.value?'"'+e.value+'"':e.value)},e.prototype.visitLiteralArrayExpr=function(e,t){var n=this;return"["+e.entries.map(function(e){return e.visitExpression(n,t)}).join(",")+"]"},e.prototype.visitLiteralMapExpr=function(e,t){var n=this;return"{"+e.entries.map(function(e){return function(e){var t=e.quoted?'"':"";return""+t+e.key+t}(e)+":"+e.value.visitExpression(n,t)}).join(",")},e.prototype.visitExternalExpr=function(e){return e.value.moduleName?"EX:"+e.value.moduleName+":"+e.value.name:"EX:"+e.value.runtime.name},e}();function pl(e){throw new Error("Invalid state: Visitor "+this.constructor.name+" doesn't handle "+e.constructor.name)}function ll(e){return e instanceof Ho}var cl=function(){function e(e,t,n,r){void 0===r&&(r=null),this._htmlParser=e,this._implicitTags=t,this._implicitAttrs=n,this._locale=r,this._messages=[]}return e.prototype.updateFromTemplate=function(e,t,n){var r=this._htmlParser.parse(e,t,!0,n);if(r.errors.length)return r.errors;var i,o=function a(e,t,n,r){return new Vi(n,r).extract(e,t)}(r.rootNodes,n,this._implicitTags,this._implicitAttrs);return o.errors.length?o.errors:((i=this._messages).push.apply(i,s(o.messages)),[])},e.prototype.getMessages=function(){return this._messages},e.prototype.write=function(e,t){var n={},r=new hl;this._messages.forEach(function(t){var r,i=e.digest(t);n.hasOwnProperty(i)?(r=n[i].sources).push.apply(r,s(t.sources)):n[i]=t});var i=Object.keys(n).map(function(i){var o=e.createNameMapper(n[i]),s=n[i],a=o?r.convert(s.nodes,o):s.nodes,u=new di(a,{},{},s.meaning,s.description,i);return u.sources=s.sources,t&&u.sources.forEach(function(e){return e.filePath=t(e.filePath)}),u});return e.write(i,this._locale)},e}(),hl=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return n(t,e),t.prototype.convert=function(e,t){var n=this;return t?e.map(function(e){return e.visit(n,t)}):e},t.prototype.visitTagPlaceholder=function(e,t){var n=this,r=t.toPublicName(e.startName),i=e.closeName?t.toPublicName(e.closeName):e.closeName,o=e.children.map(function(e){return e.visit(n,t)});return new gi(e.tag,e.attrs,r,i,o,e.isVoid,e.sourceSpan)},t.prototype.visitPlaceholder=function(e,t){return new _i(e.value,t.toPublicName(e.name),e.sourceSpan)},t.prototype.visitIcuPlaceholder=function(e,t){return new Ei(e.value,t.toPublicName(e.name),e.sourceSpan)},t}(xi),fl="@angular/core",dl=function(){function e(){}return e.NEW_METHOD="factory",e.TRANSFORM_METHOD="transform",e.PATCH_DEPS="patchedDeps",e.createElement={name:"ɵE",moduleName:fl},e.elementEnd={name:"ɵe",moduleName:fl},e.elementProperty={name:"ɵp",moduleName:fl},e.elementAttribute={name:"ɵa",moduleName:fl},e.elementClassNamed={name:"ɵkn",moduleName:fl},e.elementStyleNamed={name:"ɵsn",moduleName:fl},e.containerCreate={name:"ɵC",moduleName:fl},e.containerEnd={name:"ɵc",moduleName:fl},e.directiveCreate={name:"ɵD",moduleName:fl},e.text={name:"ɵT",moduleName:fl},e.directiveInput={name:"ɵi",moduleName:fl},e.textCreateBound={name:"ɵt",moduleName:fl},e.bind={name:"ɵb",moduleName:fl},e.interpolation1={name:"ɵi1",moduleName:fl},e.interpolation2={name:"ɵi2",moduleName:fl},e.interpolation3={name:"ɵi3",moduleName:fl},e.interpolation4={name:"ɵi4",moduleName:fl},e.interpolation5={name:"ɵi5",moduleName:fl},e.interpolation6={name:"ɵi6",moduleName:fl},e.interpolation7={name:"ɵi7",moduleName:fl},e.interpolation8={name:"ɵi8",moduleName:fl},e.interpolationV={name:"ɵiV",moduleName:fl},e.pureFunction0={name:"ɵf0",moduleName:fl},e.pureFunction1={name:"ɵf1",moduleName:fl},e.pureFunction2={name:"ɵf2",moduleName:fl},e.pureFunction3={name:"ɵf3",moduleName:fl},e.pureFunction4={name:"ɵf4",moduleName:fl},e.pureFunction5={name:"ɵf5",moduleName:fl},e.pureFunction6={name:"ɵf6",moduleName:fl},e.pureFunction7={name:"ɵf7",moduleName:fl},e.pureFunction8={name:"ɵf8",moduleName:fl},e.pureFunctionV={name:"ɵfV",moduleName:fl},e.pipeBind1={name:"ɵpb1",moduleName:fl},e.pipeBind2={name:"ɵpb2",moduleName:fl},e.pipeBind3={name:"ɵpb3",moduleName:fl},e.pipeBind4={name:"ɵpb4",moduleName:fl},e.pipeBindV={name:"ɵpbV",moduleName:fl},e.load={name:"ɵld",moduleName:fl},e.pipe={name:"ɵPp",moduleName:fl},e.projection={name:"ɵP",moduleName:fl},e.projectionDef={name:"ɵpD",moduleName:fl},e.refreshComponent={name:"ɵr",moduleName:fl},e.directiveLifeCycle={name:"ɵl",moduleName:fl},e.injectAttribute={name:"ɵinjectAttribute",moduleName:fl},e.injectElementRef={name:"ɵinjectElementRef",moduleName:fl},e.injectTemplateRef={name:"ɵinjectTemplateRef",moduleName:fl},e.injectViewContainerRef={name:"ɵinjectViewContainerRef",moduleName:fl},e.directiveInject={name:"ɵdirectiveInject",moduleName:fl},e.defineComponent={name:"ɵdefineComponent",moduleName:fl},e.defineDirective={name:"ɵdefineDirective",moduleName:fl},e.defineInjector={name:"defineInjector",moduleName:fl},e.definePipe={name:"ɵdefinePipe",moduleName:fl},e.query={name:"ɵQ",moduleName:fl},e.queryRefresh={name:"ɵqR",moduleName:fl},e.NgOnChangesFeature={name:"ɵNgOnChangesFeature",moduleName:fl},e.listener={name:"ɵL",moduleName:fl},e}();function vl(e,t){if(Array.isArray(e))return qs(e.map(function(e){return vl(e,t)}));if(e instanceof Ce)return t.importExpr(e);if(null==e)return Ks(e);throw new Error("Internal error: Unsupported or unknown metadata: "+e)}qs([]);
  /**
   * @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 ml="_t",yl="|",gl="@@";
  /**
   * @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(e){if(this)throw new Error("Builder "+this.constructor.name+" doesn't support "+e+" yet");throw new Error("Feature "+e+" is not supported yet")}var El=((Ll={})[e.PropertyBindingType.Property]=dl.elementProperty,Ll[e.PropertyBindingType.Attribute]=dl.elementAttribute,Ll[e.PropertyBindingType.Class]=dl.elementClassNamed,Ll[e.PropertyBindingType.Style]=dl.elementStyleNamed,Ll);function xl(e){switch((e=e.slice(1)).length){case 3:return Vs(dl.interpolation1).callFn(e);case 5:return Vs(dl.interpolation2).callFn(e);case 7:return Vs(dl.interpolation3).callFn(e);case 9:return Vs(dl.interpolation4).callFn(e);case 11:return Vs(dl.interpolation5).callFn(e);case 13:return Vs(dl.interpolation6).callFn(e);case 15:return Vs(dl.interpolation7).callFn(e);case 17:return Vs(dl.interpolation8).callFn(e)}return e.length>=19&&e.length%2==1||K("Invalid interpolation argument length "+e.length),Vs(dl.interpolationV).callFn([qs(e)])}var Sl=[dl.pureFunction0,dl.pureFunction1,dl.pureFunction2,dl.pureFunction3,dl.pureFunction4,dl.pureFunction5,dl.pureFunction6,dl.pureFunction7,dl.pureFunction8];function wl(e,t){var n=e.constantPool.getLiteralFactory(t),r=n.literalFactory,i=n.literalFactoryArguments;return i.length>0||K("Expected arguments to a literal factory function"),Vs(Sl[i.length]||dl.pureFunctionV).callFn(s([r],i))}function Cl(){}var Tl=function(){function e(e,t){void 0===e&&(e=null),void 0===t&&(t=Cl),this.parent=e,this.declareLocalVarCallback=t,this.map=new Map,this.referenceNameIndex=0}return e.prototype.get=function(e){for(var t=this;t;){var n=t.map.get(e);if(null!=n)return t!==this&&this.map.set(e,n={lhs:n.lhs,rhs:n.rhs,declared:!1}),n.rhs&&!n.declared&&(this.declareLocalVarCallback(n.lhs,n.rhs),n.declared=!0),n.lhs;t=t.parent}return null},e.prototype.set=function(e,t,n){return!this.map.has(e)||K("The name "+e+" is already defined in scope to be "+this.map.get(e)),this.map.set(e,{lhs:t,rhs:n,declared:!1}),this},e.prototype.getLocal=function(e){return this.get(e)},e.prototype.nestedScope=function(t){return new e(this,t)},e.prototype.freshReferenceName=function(){for(var e=this;e.parent;)e=e.parent;return"_r"+e.referenceNameIndex++},e.ROOT_SCOPE=(new e).set("$event",Bs("$event")),e}(),bl=function(){function t(t,n,r,i,o,s,a,u,p,l,c,h,f){void 0===s&&(s=0);var d=this;this.outputCtx=t,this.constantPool=n,this.reflector=r,this.contextParameter=i,this.level=s,this.ngContentSelectors=a,this.contextName=u,this.templateName=p,this.pipeMap=l,this.viewQueries=c,this.directives=h,this.pipes=f,this._dataIndex=0,this._bindingContext=0,this._temporaryAllocated=!1,this._prefix=[],this._creationMode=[],this._variableMode=[],this._bindingMode=[],this._postfix=[],this._projectionDefinitionIndex=0,this.unsupported=_l,this.invalid=Dl,this._inI18nSection=!1,this._i18nSectionIndex=-1,this._phToNodeIdxes=[{}],this.visitReference=Dl,this.visitVariable=Dl,this.visitEvent=Dl,this.visitElementProperty=Dl,this.visitAttr=Dl,this.visitDirective=Dl,this.visitDirectiveProperty=Dl,this.bindingScope=o.nestedScope(function(t,n){d._bindingMode.push(t.set(n).toDeclStmt(Do,[e.StmtModifier.Final]))}),this._valueConverter=new Rl(t,function(){return d.allocateDataSlot()},function(e,t,n,r){d.bindingScope.set(t,r);var i=l.get(e);i||K("Could not find pipe "+e),d.pipes.add(i.type.reference),d._creationMode.push(Vs(dl.pipe).callFn([Ks(n),Ks(e)]).toStmt())})}return t.prototype.buildTemplateFunction=function(t,n){try{for(var r=i(n),o=r.next();!o.done;o=r.next()){var a=o.value,u=a.name,p=Bs(this.contextParameter).prop(a.value||"$implicit"),l=this.bindingScope.freshReferenceName();this.bindingScope.set(u,Bs(u+l),p)}}catch(e){P={error:e}}finally{try{o&&!o.done&&(A=r.return)&&A.call(r)}finally{if(P)throw P.error}}if(this.ngContentSelectors&&this.ngContentSelectors.length>0){var c=function h(e,t){var n=new Map;return xe(new Fl(n,t),e),n}(t,this.ngContentSelectors);if(this._contentProjections=c,c.size>0){var f=[];Array.from(c.values()).forEach(function(e){e.selector&&(f[e.index-1]=e.selector)});var d=[Ks(this._projectionDefinitionIndex=this.allocateDataSlot())];if(f.some(function(e){return!e})&&K("content project information skipped an index"),f.length>1){var v=f.map(function(e){return Vl(e)}),m=this.outputCtx.constantPool.getConstLiteral(jl(v),!0),y=this.outputCtx.constantPool.getConstLiteral(jl(f),!0);d.push(m,y)}this.instruction.apply(this,s([this._creationMode,null,dl.projectionDef],d))}}try{for(var g=i(this.viewQueries),_=g.next();!_.done;_=g.next()){var E=_.value,x=this.allocateDataSlot(),S=Ml(E,this.outputCtx),w=[Ks(x,Do),S,Ks(E.descendants,Do)];E.read&&w.push(this.outputCtx.importExpr(E.read.identifier.reference)),this.instruction.apply(this,s([this._creationMode,null,dl.query],w));var C=this.temp(),T=Vs(dl.load).callFn([Ks(x)]),b=Vs(dl.queryRefresh).callFn([C.set(T)]),M=Bs("ctx").prop(E.propertyName).set(E.first?C.prop("first"):C);this._bindingMode.push(b.and(M).toStmt())}}catch(e){N={error:e}}finally{try{_&&!_.done&&(k=g.return)&&k.call(g)}finally{if(N)throw N.error}}xe(this,t);var P,A,N,k,I,O,R=this._creationMode.length>0?[zs(Bs("rf").bitwiseAnd(Ks(1),null,!1),this._creationMode)]:[],D=this._bindingMode.length>0?[zs(Bs("rf").bitwiseAnd(Ks(2),null,!1),this._bindingMode)]:[];try{for(var L=i(this._phToNodeIdxes),F=L.next();!F.done;F=L.next()){var B=F.value;if(Object.keys(B).length>0){var V=Bs(l=this.bindingScope.freshReferenceName()).set(Ul(B,!0)).toDeclStmt(Do,[e.StmtModifier.Final]);this._prefix.push(V)}}}catch(e){I={error:e}}finally{try{F&&!F.done&&(O=L.return)&&O.call(L)}finally{if(I)throw I.error}}return Ws([new is("rf",Fo),new is(this.contextParameter,null)],s(this._prefix,R,this._variableMode,D,this._postfix),Do,null,this.templateName)},t.prototype.getLocal=function(e){return this.bindingScope.get(e)},t.prototype.visitNgContent=function(e){var t=this._contentProjections.get(e);t||K("Expected "+e.sourceSpan+" to be included in content projection collection");var n=[Ks(this.allocateDataSlot()),Ks(this._projectionDefinitionIndex)];0!==t.index&&n.push(Ks(t.index)),this.instruction.apply(this,s([this._creationMode,e.sourceSpan,dl.projection],n))},t.prototype.visitElement=function(t){var n=this,r=this.allocateDataSlot(),o=new Map,a=this._inI18nSection,u={},p={},l="";if(this._inI18nSection){var c=t.name.toLowerCase();this._phToNodeIdxes[this._i18nSectionIndex][c]||(this._phToNodeIdxes[this._i18nSectionIndex][c]=[]),this._phToNodeIdxes[this._i18nSectionIndex][c].push(r)}try{for(var h=i(t.attrs),f=h.next();!f.done;f=h.next()){var d=f.value,v=d.name,m=d.value;if("i18n"===v){if(this._inI18nSection)throw new Error("Could not mark an element as translatable inside of a translatable section");this._inI18nSection=!0,this._i18nSectionIndex++,this._phToNodeIdxes[this._i18nSectionIndex]={},l=m}else v.startsWith("i18n-")?p[v.slice("i18n-".length)]=m:u[v]=m}}catch(e){w={error:e}}finally{try{f&&!f.done&&(C=h.return)&&C.call(h)}finally{if(w)throw w.error}}var y=[Ks(r),Ks(t.name)];t.directives.forEach(function(e){return n.directives.add(e.directive.type.reference)});var g=[],_=[],E=!1;Object.getOwnPropertyNames(u).forEach(function(e){var t=u[e];if(_.push(Ks(e)),p.hasOwnProperty(e)){E=!0;var r=ql(p[e]),i=n.constantPool.getTranslation(t,r);_.push(i)}else _.push(Ks(t))});var x=ds;if(_.length>0&&(x=E?wl(this.outputCtx,qs(_)):this.constantPool.getConstLiteral(qs(_),!0)),y.push(x),t.references&&t.references.length>0){var S=Xe(t.references.map(function(t){var r=n.allocateDataSlot();o.set(t.name,r);var i=n.bindingScope.freshReferenceName();return n._variableMode.push(Bs(i,Do).set(Vs(dl.load).callFn([Ks(r)])).toDeclStmt(Do,[e.StmtModifier.Final])),n.bindingScope.set(t.name,Bs(i)),[t.name,t.originalValue]})).map(function(e){return Ks(e)});y.push(this.constantPool.getConstLiteral(qs(S),!0))}else y.push(ds);g.length>0&&(T=this._creationMode).push.apply(T,s(g)),this.instruction.apply(this,s([this._creationMode,t.sourceSpan,dl.createElement],Nl(y)));var w,C,T,b,M,P=Bs("ctx");t.outputs.forEach(function(r){var i=n.templateName+"_"+t.name+"_"+r.name+"_listener",o=[],a=Pp(n.bindingScope.nestedScope(function(t,n){o.push(t.set(n).toDeclStmt(Do,[e.StmtModifier.Final]))}),Bs("ctx"),r.handler,"b",function(){return K("Unexpected interpolation")}),u=Ws([new is("$event",Ro)],s(o,a.render3Stmts),Do,null,i);n.instruction(n._creationMode,r.sourceSpan,dl.listener,Ks(r.name),u)});try{for(var A=i(t.inputs),N=A.next();!N.done;N=A.next()){var k=N.value;k.isAnimation&&this.unsupported("animations");var I=this.convertPropertyBinding(P,k.value),O=El[k.type];O?this.instruction(this._bindingMode,k.sourceSpan,O,Ks(r),Ks(k.name),I):this.unsupported("binding "+e.PropertyBindingType[k.type])}}catch(e){b={error:e}}finally{try{N&&!N.done&&(M=A.return)&&M.call(A)}finally{if(b)throw b.error}}this._visitDirectives(t.directives,P,r),this._inI18nSection&&1==t.children.length&&t.children[0]instanceof oe?this.visitSingleI18nTextChild(t.children[0],l):xe(this,t.children),this.instruction(this._creationMode,t.endSourceSpan||t.sourceSpan,dl.elementEnd),this._inI18nSection=a},t.prototype._visitDirectives=function(e,t,n){try{for(var r=i(e),o=r.next();!o.done;o=r.next()){var s=o.value;try{for(var a=i(s.inputs),u=a.next();!u.done;u=a.next()){var p=u.value,l=this.convertPropertyBinding(t,p.value);this.instruction(this._bindingMode,s.sourceSpan,dl.elementProperty,Ks(n),Ks(p.templateName),Vs(dl.bind).callFn([l]))}}catch(e){f={error:e}}finally{try{u&&!u.done&&(d=a.return)&&d.call(a)}finally{if(f)throw f.error}}}}catch(e){c={error:e}}finally{try{o&&!o.done&&(h=r.return)&&h.call(r)}finally{if(c)throw c.error}}var c,h,f,d},t.prototype.visitEmbeddedTemplate=function(e){var n=this,r=this.allocateDataSlot(),i=this.reflector.resolveExternalReference(Co.TemplateRef),o=e.directives.find(function(e){return e.directive.type.diDeps.some(function(e){return null!=e.token&&Fe(e.token)==i})}),a=this.contextName&&o&&o.directive.type.reference.name?this.contextName+"_"+o.directive.type.reference.name:null,u=a?a+"_Template_"+r:"Template_"+r,p="ctx"+this.level,l=[Bs(u),Ks(null,Do)],c=[];e.directives.forEach(function(e){n.directives.add(e.directive.type.reference),da.parse(e.directive.selector).forEach(function(e){e.attrs.forEach(function(e){c.push(Ks(e))})})}),c.length&&l.push(this.constantPool.getConstLiteral(qs(c),!0)),this.instruction.apply(this,s([this._creationMode,e.sourceSpan,dl.containerCreate,Ks(r)],Nl(l))),this._visitDirectives(e.directives,Bs("ctx"),r);var h=new t(this.outputCtx,this.constantPool,this.reflector,p,this.bindingScope,this.level+1,this.ngContentSelectors,a,u,this.pipeMap,[],this.directives,this.pipes).buildTemplateFunction(e.children,e.variables);this._postfix.push(h.toDeclStmt(u,null))},t.prototype.visitBoundText=function(e){var t=this.allocateDataSlot();this.instruction(this._creationMode,e.sourceSpan,dl.text,Ks(t)),this.instruction(this._bindingMode,e.sourceSpan,dl.textCreateBound,Ks(t),this.convertPropertyBinding(Bs("ctx"),e.value))},t.prototype.visitText=function(e){this.instruction(this._creationMode,e.sourceSpan,dl.text,Ks(this.allocateDataSlot()),Ks(e.value))},t.prototype.visitSingleI18nTextChild=function(e,t){var n=ql(t),r=this.constantPool.getTranslation(e.value,n);this.instruction(this._creationMode,e.sourceSpan,dl.text,Ks(this.allocateDataSlot()),r)},t.prototype.allocateDataSlot=function(){return this._dataIndex++},t.prototype.bindingContext=function(){return""+this._bindingContext++},t.prototype.instruction=function(e,t,n){for(var r=[],i=3;i<arguments.length;i++)r[i-3]=arguments[i];e.push(Vs(n,null,t).callFn(r,t).toStmt())},t.prototype.definitionOf=function(e,t){return this.constantPool.getDefinition(e,t,this.outputCtx)},t.prototype.temp=function(){return this._temporaryAllocated||(this._prefix.push(new ms(ml,void 0,Ro)),this._temporaryAllocated=!0),Bs(ml)},t.prototype.convertPropertyBinding=function(e,t){var n,r=Op(this,e,t.visit(this._valueConverter),this.bindingContext(),Np.TrySimple,xl);return(n=this._bindingMode).push.apply(n,s(r.stmts)),r.currValExpr},t}();function Ml(e,t){if(e.selectors.length>1||1==e.selectors.length&&e.selectors[0].value){var n=e.selectors.map(function(e){return e.value});return n.some(function(e){return!e})&&K("Found a type among the string selectors expected"),t.constantPool.getConstLiteral(qs(n.map(function(e){return Ks(e)})))}if(1==e.selectors.length){var r=e.selectors[0];if(r.identifier)return t.importExpr(r.identifier.reference)}return K("Unexpected query form"),fs}function Pl(e,t,n,r){var o=[],a=n.resolveExternalReference(Co.ElementRef),u=n.resolveExternalReference(Co.TemplateRef),p=n.resolveExternalReference(Co.ViewContainerRef);try{for(var l=i(e.diDeps),c=l.next();!c.done;c=l.next()){var h=c.value,f=h.token;if(f){var d=Fe(f);if(d===a)o.push(Vs(dl.injectElementRef).callFn([]));else if(d===u)o.push(Vs(dl.injectTemplateRef).callFn([]));else if(d===p)o.push(Vs(dl.injectViewContainerRef).callFn([]));else if(h.isAttribute)o.push(Vs(dl.injectAttribute).callFn([Ks(h.token.value)]));else{var v=[null!=f.identifier?t.importExpr(d):Ks(d)],m=Al(h);0!=m&&v.push(Ks(m)),o.push(Vs(dl.directiveInject).callFn(v))}}else _l("dependency without a token")}}catch(e){w={error:e}}finally{try{c&&!c.done&&(C=l.return)&&C.call(l)}finally{if(w)throw w.error}}var y=[];try{for(var g=i(r),_=g.next();!_.done;_=g.next()){var E=_.value,x=Ml(E,t),S=[Ks(null,Do),x,Ks(E.descendants)];E.read&&S.push(t.importExpr(E.read.identifier.reference)),y.push(Vs(dl.query).callFn(S))}}catch(e){T={error:e}}finally{try{_&&!_.done&&(b=g.return)&&b.call(g)}finally{if(T)throw T.error}}var w,C,T,b,M=new Yo(t.importExpr(e.reference),o),P=y.length>0?qs(s([M],y)):M;return Ws([],[new _s(P)],Do,null,e.reference.name?e.reference.name+"_Factory":null)}function Al(e){var t=0;return e.isHost&&(t|=1),e.isOptional&&(t|=8),e.isSelf&&(t|=2),e.isSkipSelf&&(t|=4),e.isValue&&_l("value dependencies"),t}function Nl(e){for(;(t=e[e.length-1])instanceof Jo&&null===t.value;)e.pop();var t;return e}function kl(e){return jl(Vl(e))}function Il(e,t,n){for(var r,o=[],a=(r=!1,function(){return r||(o.push(new ms(ml,void 0,Ro)),r=!0),Bs(ml)}),u=Ar(e.isComponent?"Component":"Directive",e.type),p=0;p<e.queries.length;p++){var l=e.queries[p],c=Vs(dl.load).callFn([Bs("dirIndex")]),h=c.key(Ks(p+1)),f=a().set(h),d=Vs(dl.queryRefresh).callFn([f]),v=c.key(Ks(0,Do)).prop(l.propertyName).set(l.first?a().prop("first"):a()),m=d.and(v);o.push(m.toStmt())}var y=e.toSummary(),g=n.createBoundHostProperties(y,u),_=Vs(dl.load).callFn([Bs("dirIndex")]);if(g)try{for(var E=i(g),x=E.next();!x.done;x=E.next()){var S=Op(null,_,(N=x.value).expression,"b",Np.TrySimple,function(){return K("Unexpected interpolation")});o.push.apply(o,s(S.stmts)),o.push(Vs(dl.elementProperty).callFn([Bs("elIndex"),Ks(N.name),Vs(dl.bind).callFn([S.currValExpr])]).toStmt())}}catch(e){w={error:e}}finally{try{x&&!x.done&&(C=E.return)&&C.call(E)}finally{if(w)throw w.error}}var w,C,T,b,M=n.createDirectiveHostEventAsts(y,u);if(M)try{for(var P=i(M),A=P.next();!A.done;A=P.next()){S=Pp(null,_,(N=A.value).handler,"b",function(){return K("Unexpected interpolation")});var N,k=N.name&&Me(N.name),I=(R=Ne(e.type))&&k?R+"_"+k+"_HostBindingHandler":null,O=Ws([new is("$event",Ro)],s(S.stmts,[new _s(S.allowDefault)]),Do,null,I);o.push(Vs(dl.listener).callFn([Ks(N.name),O]).toStmt())}}catch(e){T={error:e}}finally{try{A&&!A.done&&(b=P.return)&&b.call(P)}finally{if(T)throw T.error}}if(o.length>0){var R=e.type.reference.name;return Ws([new is("dirIndex",Fo),new is("elIndex",Fo)],o,Do,null,R?R+"_HostBindings":null)}return null}function Ol(e,t){return Object.getOwnPropertyNames(e).length>0?Ul(e):null}var Rl=function(e){function t(t,n,r){var i=e.call(this)||this;return i.outputCtx=t,i.allocateSlot=n,i.definePipe=r,i.pipeSlots=new Map,i}return n(t,e),t.prototype.visitPipe=function(e,t){var n=this.allocateSlot(),r="PIPE:"+n,i=new Gn(e.span,new Kn(e.span),r),o=function a(e){switch(e.length){case 0:return dl.pipeBind1;case 1:return dl.pipeBind2;case 2:return dl.pipeBind3;default:return dl.pipeBindV}}(e.args);this.definePipe(e.name,r,n,Vs(o));var u=e.exp.visit(this),p=this.visitAll(e.args);return new lr(e.span,i,s([new tr(e.span,n),u],p))},t.prototype.visitLiteralArray=function(e,t){var n=this;return new Up(e.span,this.visitAll(e.expressions),function(e){var t=qs(e);return e.every(function(e){return e.isConstant()})?n.outputCtx.constantPool.getConstLiteral(t,!0):wl(n.outputCtx,t)})},t.prototype.visitLiteralMap=function(e,t){var n=this;return new Up(e.span,this.visitAll(e.values),function(t){var r=Hs(t.map(function(t,n){return{key:e.keys[n].key,value:t,quoted:e.keys[n].quoted}}));return t.every(function(e){return e.isConstant()})?n.outputCtx.constantPool.getConstLiteral(r,!0):wl(n.outputCtx,r)})},t}(mr);function Dl(e){throw new Error("Invalid state: Visitor "+this.constructor.name+" doesn't handle "+void 0)}var Ll,Fl=function(e){function t(t,n){var r=e.call(this)||this;return r.projectionMap=t,r.ngContentSelectors=n,r.index=1,r}return n(t,e),t.prototype.visitNgContent=function(e){var t=this.ngContentSelectors[e.index];null==t&&K("could not find selector for index "+e.index+" in "+e),this.projectionMap.set(e,t&&"*"!==t?{index:this.index++,selector:t}:{index:0})},t}(Ee);function Bl(e){var t=function n(e){var t=e.classNames&&e.classNames.length?s([8],e.classNames):[];return s([e.element&&"*"!==e.element?e.element:""],e.attrs,t)}(e),r=e.notSelectors&&e.notSelectors.length?e.notSelectors.map(function(e){return function t(e){var t=e.classNames&&e.classNames.length?s([8],e.classNames):[];return e.element?s([5,e.element],e.attrs,t):e.attrs.length?s([3],e.attrs,t):e.classNames&&e.classNames.length?s([9],e.classNames):[]}(e)}):[];return t.concat.apply(t,s(r))}function Vl(e){return da.parse(e).map(Bl)}function jl(e){return Array.isArray(e)?qs(e.map(jl)):Ks(e,Do)}function Ul(e,t){return void 0===t&&(t=!1),Hs(Object.getOwnPropertyNames(e).map(function(n){return{key:n,quoted:t,value:jl(e[n])}}))}function ql(e){var t,n,r,i,s;if(e){var a=e.indexOf(gl),u=e.indexOf(yl),p=void 0;p=(i=o(a>-1?[e.slice(0,a),e.slice(a+2)]:[e,""],2))[0],r=i[1],t=(s=o(u>-1?[p.slice(0,u),p.slice(u+1)]:["",p],2))[0],n=s[1]}return{description:n,id:r,meaning: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
   */
  var Hl=function(){function e(e,t,n){this.srcFileUrl=e,this.genFileUrl=t,"string"==typeof n?(this.source=n,this.stmts=null):(this.source=null,this.stmts=n)}return e.prototype.isEquivalent=function(e){return this.genFileUrl===e.genFileUrl&&(this.source?this.source===e.source:null!=e.stmts&&Vo(this.stmts,e.stmts))},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 Wl(e,t){var n,r,o,s,a=[];try{for(var u=i(e.transitiveModule.providers),p=u.next();!p.done;p=u.next()){var l=p.value,c=l.provider,h=l.module;if(Fe(c.token)===t.ROUTES){var f=zl(c.useValue);try{for(var d=i(f),v=d.next();!v.done;v=d.next())a.push(Kl(v.value,t,h.reference))}catch(e){o={error:e}}finally{try{v&&!v.done&&(s=d.return)&&s.call(d)}finally{if(o)throw o.error}}}}}catch(e){n={error:e}}finally{try{p&&!p.done&&(r=u.return)&&r.call(u)}finally{if(n)throw n.error}}return a}function zl(e,t){if(void 0===t&&(t=[]),"string"==typeof e)t.push(e);else if(Array.isArray(e))try{for(var n=i(e),r=n.next();!r.done;r=n.next())zl(r.value,t)}catch(e){o={error:e}}finally{try{r&&!r.done&&(s=n.return)&&s.call(n)}finally{if(o)throw o.error}}else e.loadChildren?zl(e.loadChildren,t):e.children&&zl(e.children,t);return t;var o,s}function Kl(e,t,n){var r=o(e.split("#"),2),i=t.resolveExternalReference({moduleName:r[0],name:r[1]},n?n.filePath:void 0);return{route:e,module:n||i,referencedModule:i}}
  /**
   * @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 Xl=/^(?!.*\.d\.ts$).*\.ts$/,Ql=function Ql(e,t){this.symbol=e,this.metadata=t},Gl=function(){function e(e,t,n,r){this.host=e,this.staticSymbolCache=t,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,this.knownFileNameToModuleNames=new Map}return e.prototype.resolveSymbol=function(e){return e.members.length>0?this._resolveSymbolMembers(e):this._resolveSymbolFromSummary(e)||this.resolvedSymbols.get(e)||(this._createSymbolsOf(e.filePath),this.resolvedSymbols.get(e))},e.prototype.getImportAs=function(e,t){if(void 0===t&&(t=!0),e.members.length){var n=this.getStaticSymbol(e.filePath,e.name);return(o=this.getImportAs(n,t))?this.getStaticSymbol(o.filePath,o.name,e.members):null}var r=function i(e){return e.replace(ea,".")}(e.filePath);if(r!==e.filePath){var o,s=function a(e){return e.replace(ta,"")}(e.name);return n=this.getStaticSymbol(r,s,e.members),(o=this.getImportAs(n,t))?this.getStaticSymbol(aa(o.filePath),ua(o.name),n.members):null}var u=t&&this.summaryResolver.getImportAs(e)||null;return u||(u=this.importAs.get(e)),u},e.prototype.getResourcePath=function(e){return this.symbolResourcePaths.get(e)||e.filePath},e.prototype.getTypeArity=function(e){if(function t(e){return Zs.test(e)}(e.filePath))return null;for(var n=Jl(this.resolveSymbol(e));n&&n.metadata instanceof Ce;)n=Jl(this.resolveSymbol(n.metadata));return n&&n.metadata&&n.metadata.arity||null},e.prototype.getKnownModuleName=function(e){return this.knownFileNameToModuleNames.get(e)||null},e.prototype.recordImportAs=function(e,t){e.assertNoMembers(),t.assertNoMembers(),this.importAs.set(e,t)},e.prototype.recordModuleNameForFileName=function(e,t){this.knownFileNameToModuleNames.set(e,t)},e.prototype.invalidateFile=function(e){this.metadataCache.delete(e),this.resolvedFilePaths.delete(e);var t,n,r=this.symbolFromFile.get(e);if(r){this.symbolFromFile.delete(e);try{for(var o=i(r),s=o.next();!s.done;s=o.next()){var a=s.value;this.resolvedSymbols.delete(a),this.importAs.delete(a),this.symbolResourcePaths.delete(a)}}catch(e){t={error:e}}finally{try{s&&!s.done&&(n=o.return)&&n.call(o)}finally{if(t)throw t.error}}}},e.prototype.ignoreErrorsFor=function(e){var t=this.errorRecorder;this.errorRecorder=function(){};try{return e()}finally{this.errorRecorder=t}},e.prototype._resolveSymbolMembers=function(e){var t=e.members,n=this.resolveSymbol(this.getStaticSymbol(e.filePath,e.name));if(!n)return null;var r=Jl(n.metadata);if(r instanceof Ce)return new Ql(e,this.getStaticSymbol(r.filePath,r.name,t));if(!r||"class"!==r.__symbolic){for(var i=r,o=0;o<t.length&&i;o++)i=i[t[o]];return new Ql(e,i)}return r.statics&&1===t.length?new Ql(e,r.statics[t[0]]):null},e.prototype._resolveSymbolFromSummary=function(e){var t=this.summaryResolver.resolveSummary(e);return t?new Ql(e,t.metadata):null},e.prototype.getStaticSymbol=function(e,t,n){return this.staticSymbolCache.get(e,t,n)},e.prototype.hasDecorators=function(e){var t=this.getModuleMetadata(e);return!!t.metadata&&Object.keys(t.metadata).some(function(e){var n=t.metadata[e];return n&&"class"===n.__symbolic&&n.decorators})},e.prototype.getSymbolsOf=function(e){var t=this.summaryResolver.getSymbolsOf(e);if(t)return t;this._createSymbolsOf(e);var n=[];return this.resolvedSymbols.forEach(function(t){t.symbol.filePath===e&&n.push(t.symbol)}),n},e.prototype._createSymbolsOf=function(e){var t=this;if(!this.resolvedFilePaths.has(e)){this.resolvedFilePaths.add(e);var n,r,o=[],s=this.getModuleMetadata(e);if(s.importAs&&this.knownFileNameToModuleNames.set(e,s.importAs),s.exports){var a=function(n){if(n.export)n.export.forEach(function(r){var i,s=i=Yl(i="string"==typeof r?r:r.as);"string"!=typeof r&&(s=Yl(r.name));var a=t.resolveModule(n.from,e);if(a){var u=t.getStaticSymbol(a,s),p=t.getStaticSymbol(e,i);o.push(t.createExport(p,u))}});else{var r=u.resolveModule(n.from,e);r&&u.getSymbolsOf(r).forEach(function(n){var r=t.getStaticSymbol(e,n.name);o.push(t.createExport(r,n))})}},u=this;try{for(var p=i(s.exports),l=p.next();!l.done;l=p.next())a(l.value)}catch(e){n={error:e}}finally{try{l&&!l.done&&(r=p.return)&&r.call(p)}finally{if(n)throw n.error}}}if(s.metadata){var c=new Set(Object.keys(s.metadata).map(Yl)),h=s.origins||{};Object.keys(s.metadata).forEach(function(n){var r=s.metadata[n],i=Yl(n),a=t.getStaticSymbol(e,i),u=h.hasOwnProperty(n)&&h[n];if(u){var p=t.resolveModule(u,e);p?t.symbolResourcePaths.set(a,p):t.reportError(new Error("Couldn't resolve original symbol for "+u+" from "+e))}o.push(t.createResolvedSymbol(a,e,c,r))})}o.forEach(function(e){return t.resolvedSymbols.set(e.symbol,e)}),this.symbolFromFile.set(e,o.map(function(e){return e.symbol}))}},e.prototype.createResolvedSymbol=function(e,t,i,o){var a,u=this,p=Xl.test(e.filePath);if(this.summaryResolver.isLibraryFile(e.filePath)&&!p&&o&&"class"===o.__symbolic)return new Ql(e,{__symbolic:"class",arity:o.arity});var l=function(){return a||(a=u.host.getOutputName(t.replace(/((\.ts)|(\.d\.ts)|)$/,".ts").replace(/^.*node_modules[/\\]/,""))),a},c=this,h=V(o,new(function(o){function a(){return null!==o&&o.apply(this,arguments)||this}return n(a,o),a.prototype.visitStringMap=function(n,a){var u=n.__symbolic;if("function"===u){var p=a.length;a.push.apply(a,s(n.parameters||[]));var h=o.prototype.visitStringMap.call(this,n,a);return a.length=p,h}if("reference"!==u)return"error"===u?r({},n,{fileName:l()}):o.prototype.visitStringMap.call(this,n,a);var f=n.module,d=n.name?Yl(n.name):n.name;if(!d)return null;var v=void 0;return f?(v=c.resolveModule(f,e.filePath))?{__symbolic:"resolved",symbol:c.getStaticSymbol(v,d),line:n.line,character:n.character,fileName:l()}:{__symbolic:"error",message:"Could not resolve "+f+" relative to "+e.filePath+".",line:n.line,character:n.character,fileName:l()}:a.indexOf(d)>=0?{__symbolic:"reference",name:d}:i.has(d)?c.getStaticSymbol(t,d):void 0},a}(q)),[]),f=Jl(h);return f instanceof Ce?this.createExport(e,f):new Ql(e,h)},e.prototype.createExport=function(e,t){return e.assertNoMembers(),t.assertNoMembers(),this.summaryResolver.isLibraryFile(e.filePath)&&this.summaryResolver.isLibraryFile(t.filePath)&&this.importAs.set(t,this.getImportAs(e)||e),new Ql(e,t)},e.prototype.reportError=function(e,t,n){if(!this.errorRecorder)throw e;this.errorRecorder(e,t&&t.filePath||n)},e.prototype.getModuleMetadata=function(e){var t=this.metadataCache.get(e);if(!t){var n=this.host.getMetadataFor(e);if(n){var r=-1;n.forEach(function(e){e&&e.version>r&&(r=e.version,t=e)})}t||(t={__symbolic:"module",version:4,module:e,metadata:{}}),4!=t.version&&this.reportError(new Error(2==t.version?"Unsupported metadata version "+t.version+" for module "+e+". This module should be compiled with a newer version of ngc":"Metadata version mismatch for module "+e+", found version "+t.version+", expected 4")),this.metadataCache.set(e,t)}return t},e.prototype.getSymbolByModule=function(e,t,n){var r=this.resolveModule(e,n);return r?this.getStaticSymbol(r,t):(this.reportError(new Error("Could not resolve module "+e+(n?" relative to "+n:""))),this.getStaticSymbol("ERROR:"+e,t))},e.prototype.resolveModule=function(e,t){try{return this.host.moduleNameToFileName(e,t)}catch(n){console.error("Could not resolve module '"+e+"' relative to file "+t),this.reportError(n,void 0,t)}return null},e}();function Yl(e){return e.startsWith("___")?e.substr(1):e}function Jl(e){return e&&"resolved"===e.__symbolic?e.symbol: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 $l(t,n,r){var i=ua(n.name);t.statements.push(Ws([],[new _s(r)],new Io(Ro)).toDeclStmt(i,[e.StmtModifier.Final,e.StmtModifier.Exported]))}var Zl,ec=function(t){function r(e,n,r){var i=t.call(this)||this;return i.symbolResolver=e,i.summaryResolver=n,i.srcFileName=r,i.symbols=[],i.indexBySymbol=new Map,i.reexportedBy=new Map,i.processedSummaryBySymbol=new Map,i.processedSummaries=[],i.unprocessedSymbolSummariesBySymbol=new Map,i.moduleName=e.getKnownModuleName(r),i}return n(r,t),r.prototype.addSummary=function(t){var n=this,r=this.unprocessedSymbolSummariesBySymbol.get(t.symbol),i=this.processedSummaryBySymbol.get(t.symbol);if(r||(this.unprocessedSymbolSummariesBySymbol.set(t.symbol,r={symbol:t.symbol,metadata:void 0}),i={symbol:this.processValue(t.symbol,0)},this.processedSummaries.push(i),this.processedSummaryBySymbol.set(t.symbol,i)),!r.metadata&&t.metadata){var o=t.metadata||{};if("class"===o.__symbolic){var s={};Object.keys(o).forEach(function(e){"decorators"!==e&&(s[e]=o[e])}),o=s}else rc(o)&&(function a(e){return rc(e)&&Jl(e.expression)instanceof Ce}(o)||function u(e){return rc(e)&&e.expression&&"select"===e.expression.__symbolic&&Jl(e.expression.expression)instanceof Ce}
  /**
   * @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
   */(o)||(o={__symbolic:"error",message:"Complex function calls are not supported."}));if(r.metadata=o,i.metadata=this.processValue(o,1),o instanceof Ce&&this.summaryResolver.isLibraryFile(o.filePath)){var p=this.symbols[this.indexBySymbol.get(o)];ca(p.name)||this.reexportedBy.set(p,t.symbol)}}if(!r.type&&t.type&&(r.type=t.type,i.type=this.processValue(t.type,0),t.type.summaryKind===e.CompileSummaryKind.NgModule)){var l=t.type;l.exportedDirectives.concat(l.exportedPipes).forEach(function(e){var t=e.reference;if(n.summaryResolver.isLibraryFile(t.filePath)&&!n.unprocessedSymbolSummariesBySymbol.has(t)){var r=n.summaryResolver.resolveSummary(t);r&&n.addSummary(r)}})}},r.prototype.serialize=function(){var e=this,t=[];return{json:JSON.stringify({moduleName:this.moduleName,summaries:this.processedSummaries,symbols:this.symbols.map(function(n,r){n.assertNoMembers();var i=void 0;if(e.summaryResolver.isLibraryFile(n.filePath)){var o=e.reexportedBy.get(n);if(o)i=e.indexBySymbol.get(o);else{var s=e.unprocessedSymbolSummariesBySymbol.get(n);s&&s.metadata&&"interface"===s.metadata.__symbolic||t.push({symbol:n,exportAs:i=n.name+"_"+r})}}return{__symbol:r,name:n.name,filePath:e.summaryResolver.toSummaryFileName(n.filePath,e.srcFileName),importAs:i}})}),exportAs:t}},r.prototype.processValue=function(e,t){return V(e,this,t)},r.prototype.visitOther=function(e,t){if(e instanceof Ce){var n=this.symbolResolver.getStaticSymbol(e.filePath,e.name);return{__symbol:this.visitStaticSymbol(n,t),members:e.members}}},r.prototype.visitStringMap=function(e,n){return"resolved"===e.__symbolic?V(e.symbol,this,n):("error"===e.__symbolic&&(delete e.line,delete e.character),t.prototype.visitStringMap.call(this,e,n))},r.prototype.visitStaticSymbol=function(e,t){var n=this.indexBySymbol.get(e),r=null;if(1&t&&this.summaryResolver.isLibraryFile(e.filePath)){if(this.unprocessedSymbolSummariesBySymbol.has(e))return n;(r=this.loadSummary(e))&&r.metadata instanceof Ce&&(n=this.visitStaticSymbol(r.metadata,t),r=null)}else if(null!=n)return n;return null==n&&(n=this.symbols.length,this.symbols.push(e)),this.indexBySymbol.set(e,n),r&&this.addSummary(r),n},r.prototype.loadSummary=function(e){var t=this.summaryResolver.resolveSummary(e);if(!t){var n=this.symbolResolver.resolveSymbol(e);n&&(t={symbol:n.symbol,metadata:n.metadata})}return t},r}(q),tc=function(){function t(e,t,n){this.outputCtx=e,this.symbolResolver=t,this.summaryResolver=n,this.data=[]}return t.prototype.addSourceType=function(e,t){this.data.push({summary:e,metadata:t,isLibrary:!1})},t.prototype.addLibType=function(e){this.data.push({summary:e,metadata:null,isLibrary:!0})},t.prototype.serialize=function(t){var n=this,r=new Map;try{for(var o=i(t),s=o.next();!s.done;s=o.next()){var a=s.value;r.set(a.symbol,a.exportAs)}}catch(e){u={error:e}}finally{try{s&&!s.done&&(p=o.return)&&p.call(o)}finally{if(u)throw u.error}}var u,p,l,c,h,f,d=new Set;try{for(var v=i(this.data),m=v.next();!m.done;m=v.next()){var y=m.value,g=y.summary,_=y.metadata,E=y.isLibrary;if(g.summaryKind===e.CompileSummaryKind.NgModule){d.add(g.type.reference);var x=g;try{for(var S=i(x.modules),w=S.next();!w.done;w=S.next())d.add(w.value.reference)}catch(e){h={error:e}}finally{try{w&&!w.done&&(f=S.return)&&f.call(S)}finally{if(h)throw h.error}}}E||(ua(g.type.reference.name),$l(this.outputCtx,g.type.reference,this.serializeSummaryWithDeps(g,_)))}}catch(e){l={error:e}}finally{try{m&&!m.done&&(c=v.return)&&c.call(v)}finally{if(l)throw l.error}}d.forEach(function(t){if(n.summaryResolver.isLibraryFile(t.filePath)){var i=ua(r.get(t)||t.name);n.outputCtx.statements.push(Bs(i).set(n.serializeSummaryRef(t)).toDeclStmt(null,[e.StmtModifier.Exported]))}})},t.prototype.serializeSummaryWithDeps=function(t,n){var r=this,i=[this.serializeSummary(t)],o=[];return n instanceof He?(i.push.apply(i,s(n.declaredDirectives.concat(n.declaredPipes).map(function(e){return e.reference}).concat(n.transitiveModule.modules.map(function(e){return e.reference}).filter(function(e){return e!==n.type.reference})).map(function(e){return r.serializeSummaryRef(e)}))),o=n.providers):t.summaryKind===e.CompileSummaryKind.Directive&&(o=t.providers.concat(t.viewProviders)),i.push.apply(i,s(o.filter(function(e){return!!e.useClass}).map(function(t){return r.serializeSummary({summaryKind:e.CompileSummaryKind.Injectable,type:t.useClass})}))),qs(i)},t.prototype.serializeSummaryRef=function(e){var t=this.symbolResolver.getStaticSymbol(aa(e.filePath),ua(e.name));return this.outputCtx.importExpr(t)},t.prototype.serializeSummary=function(e){var t=this.outputCtx;return V(e,new(function(){function e(){}return e.prototype.visitArray=function(e,t){var n=this;return qs(e.map(function(e){return V(e,n,t)}))},e.prototype.visitStringMap=function(e,t){var n=this;return new cs(Object.keys(e).map(function(r){return new ls(r,V(e[r],n,t),!1)}))},e.prototype.visitPrimitive=function(e,t){return Ks(e)},e.prototype.visitOther=function(e,n){if(e instanceof Ce)return t.importExpr(e);throw new Error("Illegal State: Encountered value "+e)},e}()),null)},t}(),nc=function(e){function t(t,n){var r=e.call(this)||this;return r.symbolCache=t,r.summaryResolver=n,r}return n(t,e),t.prototype.deserialize=function(e,t){var n=this,r=JSON.parse(t),i=[];this.symbols=r.symbols.map(function(t){return n.symbolCache.get(n.summaryResolver.fromSummaryFileName(t.filePath,e),t.name)}),r.symbols.forEach(function(t,r){var o=n.symbols[r],s=t.importAs;"number"==typeof s?i.push({symbol:o,importAs:n.symbols[s]}):"string"==typeof s&&i.push({symbol:o,importAs:n.symbolCache.get(na(e),s)})});var o=V(r.summaries,this,null);return{moduleName:r.moduleName,summaries:o,importAs:i}},t.prototype.visitStringMap=function(t,n){if("__symbol"in t){var r=this.symbols[t.__symbol],i=t.members;return i.length?this.symbolCache.get(r.filePath,r.name,i):r}return e.prototype.visitStringMap.call(this,t,n)},t}(q);function rc(e){return e&&"call"===e.__symbolic}!function(e){e[e.Basic=1]="Basic",e[e.TypeCheck=2]="TypeCheck",e[e.All=3]="All"}(Zl||(Zl={}));var ic=function(){function t(e,t,n,r,i,o,s,a,u,p,l,c,h,f){this._config=e,this._options=t,this._host=n,this.reflector=r,this._metadataResolver=i,this._templateParser=o,this._styleCompiler=s,this._viewCompiler=a,this._typeCheckCompiler=u,this._ngModuleCompiler=p,this._injectableCompiler=l,this._outputEmitter=c,this._summaryResolver=h,this._symbolResolver=f,this._templateAstCache=new Map,this._analyzedFiles=new Map,this._analyzedFilesForInjectables=new Map}return t.prototype.clearCache=function(){this._metadataResolver.clearCache()},t.prototype.analyzeModulesSync=function(e){var t=this,n=pc(e,this._host,this._symbolResolver,this._metadataResolver);return n.ngModules.forEach(function(e){return t._metadataResolver.loadNgModuleDirectiveAndPipeMetadata(e.type.reference,!0)}),n},t.prototype.analyzeModulesAsync=function(e){var t=this,n=pc(e,this._host,this._symbolResolver,this._metadataResolver);return Promise.all(n.ngModules.map(function(e){return t._metadataResolver.loadNgModuleDirectiveAndPipeMetadata(e.type.reference,!1)})).then(function(){return n})},t.prototype._analyzeFile=function(e){var t=this._analyzedFiles.get(e);return t||(t=cc(this._host,this._symbolResolver,this._metadataResolver,e),this._analyzedFiles.set(e,t)),t},t.prototype._analyzeFileForInjectables=function(e){var t=this._analyzedFilesForInjectables.get(e);return t||(t=hc(0,this._symbolResolver,this._metadataResolver,e),this._analyzedFilesForInjectables.set(e,t)),t},t.prototype.findGeneratedFileNames=function(e){var t=this,n=[],r=this._analyzeFile(e);(this._options.allowEmptyCodegenFiles||r.directives.length||r.pipes.length||r.injectables.length||r.ngModules.length||r.exportsNonSourceFiles)&&(n.push(na(r.fileName,!0)),this._options.enableSummariesForJit&&n.push(aa(r.fileName,!0)));var i=oa(ia(r.fileName,!0)[1]);return r.directives.forEach(function(e){var o=t._metadataResolver.getNonNormalizedDirectiveMetadata(e).metadata;o.isComponent&&o.template.styleUrls.forEach(function(e){var s=t._host.resourceNameToFileName(e,r.fileName);if(!s)throw X("Couldn't resolve resource "+e+" relative to "+r.fileName);var u=(o.template.encapsulation||t._config.defaultEncapsulation)===a.Emulated;n.push(ac(s,u,i)),t._options.allowEmptyCodegenFiles&&n.push(ac(s,!u,i))})}),n},t.prototype.emitBasicStub=function(e,t){var n=this._createOutputContext(e);if(e.endsWith(".ngfactory.ts")){if(!t)throw new Error("Assertion error: require the original file for .ngfactory.ts stubs. File: "+e);var r=this._analyzeFile(t);this._createNgFactoryStub(n,r,Zl.Basic)}else if(e.endsWith(".ngsummary.ts")){if(this._options.enableSummariesForJit){if(!t)throw new Error("Assertion error: require the original file for .ngsummary.ts stubs. File: "+e);r=this._analyzeFile(t),oc(n),r.ngModules.forEach(function(e){!function t(e,n){$l(e,n,fs)}(n,e.type.reference)})}}else e.endsWith(".ngstyle.ts")&&oc(n);return this._codegenSourceModule("unknown",n)},t.prototype.emitTypeCheckStub=function(e,t){var n=this._analyzeFile(t),r=this._createOutputContext(e);return e.endsWith(".ngfactory.ts")&&this._createNgFactoryStub(r,n,Zl.TypeCheck),r.statements.length>0?this._codegenSourceModule(n.fileName,r):null},t.prototype.loadFilesAsync=function(e,t){var n=this,r=e.map(function(e){return n._analyzeFile(e)}),i=[];r.forEach(function(e){return e.ngModules.forEach(function(e){return i.push(n._metadataResolver.loadNgModuleDirectiveAndPipeMetadata(e.type.reference,!1))})});var o=t.map(function(e){return n._analyzeFileForInjectables(e)});return Promise.all(i).then(function(e){return{analyzedModules:dc(r),analyzedInjectables:o}})},t.prototype.loadFilesSync=function(e,t){var n=this,r=e.map(function(e){return n._analyzeFile(e)});r.forEach(function(e){return e.ngModules.forEach(function(e){return n._metadataResolver.loadNgModuleDirectiveAndPipeMetadata(e.type.reference,!0)})});var i=t.map(function(e){return n._analyzeFileForInjectables(e)});return{analyzedModules:dc(r),analyzedInjectables:i}},t.prototype._createNgFactoryStub=function(e,t,n){var r=this,i=0;t.ngModules.forEach(function(t,o){r._ngModuleCompiler.createStub(e,t.type.reference);var a=s(t.transitiveModule.directives.map(function(e){return e.reference}),t.transitiveModule.pipes.map(function(e){return e.reference}),t.importedModules.map(function(e){return e.type.reference}),t.exportedModules.map(function(e){return e.type.reference}),r._externalIdentifierReferences([Co.TemplateRef,Co.ElementRef])),u=new Map;a.forEach(function(e,t){u.set(e,"_decl"+o+"_"+t)}),u.forEach(function(t,n){e.statements.push(Bs(t).set(fs.cast(Ro)).toDeclStmt(Us(e.importExpr(n,null,!1))))}),n&Zl.TypeCheck&&t.declaredDirectives.forEach(function(n){var o=r._metadataResolver.getDirectiveMetadata(n.reference);o.isComponent&&(r._createTypeCheckBlock(e,o.type.reference.name+"_Host_"+ ++i,t,r._metadataResolver.getHostComponentMetadata(o),[o.type],u),r._createTypeCheckBlock(e,o.type.reference.name+"_"+i,t,o,t.transitiveModule.directives,u))})}),0===e.statements.length&&oc(e)},t.prototype._externalIdentifierReferences=function(e){var t,n,r=[];try{for(var o=i(e),s=o.next();!s.done;s=o.next()){var a=bo(this.reflector,s.value);a.identifier&&r.push(a.identifier.reference)}}catch(e){t={error:e}}finally{try{s&&!s.done&&(n=o.return)&&n.call(o)}finally{if(t)throw t.error}}return r},t.prototype._createTypeCheckBlock=function(e,t,n,r,i,o){var a,u=this._parseTemplate(r,n,i);(a=e.statements).push.apply(a,s(this._typeCheckCompiler.compileComponent(t,r,u.template,u.pipes,o,e)))},t.prototype.emitMessageBundle=function(e,t){var n=this,r=[],i=new _o,o=new cl(i,[],{},t);if(e.files.forEach(function(e){var t=[];e.directives.forEach(function(e){var r=n._metadataResolver.getDirectiveMetadata(e);r&&r.isComponent&&t.push(r)}),t.forEach(function(t){var n=t.template.template,i=ct.fromArray(t.template.interpolation);r.push.apply(r,s(o.updateFromTemplate(n,e.fileName,i)))})}),r.length)throw new Error(r.map(function(e){return e.toString()}).join("\n"));return o},t.prototype.emitAllPartialModules=function(e,t){var n=this,r=e.ngModuleByPipeOrDirective,i=e.files,o=new Map,a=function(e){return o.has(e)||o.set(e,n._createOutputContext(e)),o.get(e)};return i.forEach(function(e){return n._compilePartialModule(e.fileName,r,e.directives,e.pipes,e.ngModules,e.injectables,a(e.fileName))}),t.forEach(function(e){return n._compileShallowModules(e.fileName,e.shallowModules,a(e.fileName))}),Array.from(o.values()).map(function(e){return{fileName:e.genFilePath,statements:s(e.constantPool.statements,e.statements)}})},t.prototype._compileShallowModules=function(t,n,r){var i=this;n.forEach(function(t){return function n(t,r,i){var o=Ne(r.type),a=r.rawImports?[r.rawImports]:[],u=r.rawExports?[r.rawExports]:[],p=
  /**
   * @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(e){return Hs(Object.keys(e).map(function(t){return{key:t,quoted:!1,value: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
   */({factory:i.factoryFor({type:r.type,symbol:r.type.reference},t),providers:vl(r.rawProviders,t),imports:vl(s(a,u),t)}),c=Vs(dl.defineInjector).callFn([p]);t.statements.push(new Cs(o,null,[new xs("ngInjectorDef",Do,[e.StmtModifier.Static],c)],[],new Ss(null,[],[]),[]))}(r,t,i._injectableCompiler)})},t.prototype._compilePartialModule=function(t,n,r,o,s,a,u){var p=this,l=new op(this._templateParser.expressionParser,ht,null,[],[]);r.forEach(function(t){var r=p._metadataResolver.getDirectiveMetadata(t);if(r.isComponent){var o=n.get(t);o||K("Cannot determine the module for component '"+Ne(r.type)+"'");var s=p._parseTemplate(r,o,o.transitiveModule.directives);!function a(t,n,r,i,o,s,u){var p=[],l=new Set,c=new Set,h=function(e,t){t&&p.push({key:e,value:t,quoted:!1})};h("type",t.importExpr(n.type.reference)),h("selectors",kl(n.selector));var f=n.selector&&da.parse(n.selector),d=f&&f[0];if(d){var v=d.getAttrs();v.length&&h("attrs",t.constantPool.getConstLiteral(qs(v.map(function(e){return Ks(null!=e?e:void 0)})),!0))}h("factory",Pl(n.type,t,o,n.queries)),h("hostBindings",Il(n,0,s));var m=n.type.reference.name,y=m?m+"_Template":null,g=new Map(r.map(function(e){return[e.name,e]}));h("template",new bl(t,t.constantPool,o,"ctx",Tl.ROOT_SCOPE,0,n.template.ngContentSelectors,m,y,g,n.viewQueries,c,l).buildTemplateFunction(i,[])),c.size&&h("directives",qs(Array.from(c).map(function(e){return t.importExpr(e)}))),l.size&&h("pipes",qs(Array.from(l).map(function(e){return t.importExpr(e)}))),h("inputs",Ol(n.inputs)),h("outputs",Ol(n.outputs));var _=[];n.type.lifecycleHooks.some(function(e){return e==pa.OnChanges})&&_.push(Vs(dl.NgOnChangesFeature,null,null).callFn([t.importExpr(n.type.reference)])),_.length&&h("features",qs(_));var E=t.constantPool.propertyNameOf(2),x=Vs(dl.defineComponent).callFn([Hs(p)]);if(0===u){var S=Ne(n.type);S||K("Cannot resolver the name of "+n.type),t.statements.push(new Cs(S,null,[new xs(E,Do,[e.StmtModifier.Static],x)],[],new Ss(null,[],[]),[]))}else{var w=t.importExpr(n.type.reference);t.statements.push(new bs("@__BUILD_OPTIMIZER_COLOCATE__"),w.prop(E).set(x).toStmt())}}(u,r,s.pipes,s.template,p.reflector,l,0)}else!function c(t,n,r,o,s){var a=[],u=function(e,t){t&&a.push({key:e,value:t,quoted:!1})};u("type",t.importExpr(n.type.reference)),u("selectors",kl(n.selector)),u("factory",Pl(n.type,t,r,n.queries)),u("hostBindings",Il(n,0,o)),u("attributes",function p(e,t){var n,r,o=[],s=e.hostAttributes;try{for(var a=i(Object.getOwnPropertyNames(s)),u=a.next();!u.done;u=a.next()){var p=u.value,l=s[p];o.push(Ks(p),Ks(l))}}catch(e){n={error:e}}finally{try{u&&!u.done&&(r=a.return)&&r.call(a)}finally{if(n)throw n.error}}return o.length>0?t.constantPool.getConstLiteral(qs(o)):null}(n,t)),u("inputs",Ol(n.inputs)),u("outputs",Ol(n.outputs));var l=Ne(n.type);l||K("Cannot resolver the name of "+n.type);var c=t.constantPool.propertyNameOf(1),h=Vs(dl.defineDirective).callFn([Hs(a)]);if(0===s)t.statements.push(new Cs(l,null,[new xs(c,Do,[e.StmtModifier.Static],h)],[],new Ss(null,[],[]),[]));else{var f=t.importExpr(n.type.reference);t.statements.push(new bs("@__BUILD_OPTIMIZER_COLOCATE__")),t.statements.push(f.prop(c).set(h).toStmt())}}(u,r,p.reflector,l,0)}),o.forEach(function(t){var n=p._metadataResolver.getPipeMetadata(t);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 r(t,n,i,o){var s=[];s.push({key:"name",value:Ks(n.name),quoted:!1}),s.push({key:"type",value:t.importExpr(n.type.reference),quoted:!1});var a=Pl(n.type,t,i,[]);s.push({key:"factory",value:a,quoted:!1}),n.pure&&s.push({key:"pure",value:Ks(!0),quoted:!1});var u=Ne(n.type);u||K("Cannot resolve the name of "+n.type);var p=t.constantPool.propertyNameOf(3),l=Vs(dl.definePipe).callFn([Hs(s)]);if(0===o)t.statements.push(new Cs(u,null,[new xs(p,Do,[e.StmtModifier.Static],l)],[],new Ss(null,[],[]),[]));else{var c=t.importExpr(n.type.reference);t.statements.push(new bs("@__BUILD_OPTIMIZER_COLOCATE__"),c.prop(p).set(l).toStmt())}}(u,n,p.reflector,0)}),a.forEach(function(e){return p._injectableCompiler.compile(e,u)})},t.prototype.emitAllPartialModules2=function(e){var t=this;return e.reduce(function(e,n){return e.push.apply(e,s(t._emitPartialModule2(n.fileName,n.injectables))),e},[])},t.prototype._emitPartialModule2=function(e,t){var n=this,r=this._createOutputContext(e);return t.forEach(function(e){return n._injectableCompiler.compile(e,r)}),r.statements&&r.statements.length>0?[{fileName:e,statements:s(r.constantPool.statements,r.statements)}]:[]},t.prototype.emitAllImpls=function(e){var t=this,n=e.ngModuleByPipeOrDirective;return Xe(e.files.map(function(e){return t._compileImplFile(e.fileName,n,e.directives,e.pipes,e.ngModules,e.injectables)}))},t.prototype._compileImplFile=function(e,t,n,r,i,o){var a=this,u=oa(ia(e,!0)[1]),p=[],l=this._createOutputContext(na(e,!0));if(p.push.apply(p,s(this._createSummary(e,n,r,i,o,l))),i.forEach(function(e){return a._compileModule(l,e)}),n.forEach(function(n){var r=a._metadataResolver.getDirectiveMetadata(n);if(r.isComponent){var i=t.get(n);if(!i)throw new Error("Internal Error: cannot determine the module for component "+Ne(r.type)+"!");var o=a._styleCompiler.compileComponent(l,r);r.template.externalStylesheets.forEach(function(t){var n=a._styleCompiler.needsStyleShim(r);p.push(a._codegenStyles(e,r,t,n,u)),a._options.allowEmptyCodegenFiles&&p.push(a._codegenStyles(e,r,t,!n,u))}),a._compileComponent(l,r,i,i.transitiveModule.directives,o,u),a._compileComponentFactory(l,r,i,u)}}),l.statements.length>0||this._options.allowEmptyCodegenFiles){var c=this._codegenSourceModule(e,l);p.unshift(c)}return p},t.prototype._createSummary=function(t,n,r,i,o,a){var u=this,p=this._symbolResolver.getSymbolsOf(t).map(function(e){return u._symbolResolver.resolveSymbol(e)}),l=s(i.map(function(e){return{summary:u._metadataResolver.getNgModuleSummary(e.type.reference),metadata:u._metadataResolver.getNgModuleMetadata(e.type.reference)}}),n.map(function(e){return{summary:u._metadataResolver.getDirectiveSummary(e),metadata:u._metadataResolver.getDirectiveMetadata(e)}}),r.map(function(e){return{summary:u._metadataResolver.getPipeSummary(e),metadata:u._metadataResolver.getPipeMetadata(e)}}),o.map(function(e){return{summary:u._metadataResolver.getInjectableSummary(e.symbol),metadata:u._metadataResolver.getInjectableSummary(e.symbol).type}})),c=this._options.enableSummariesForJit?this._createOutputContext(aa(t,!0)):null,h=function f(e,t,n,r,i,o){var s=new ec(r,n,e);i.forEach(function(e){return s.addSummary({symbol:e.symbol,metadata:e.metadata})}),o.forEach(function(e){var t=e.summary;s.addSummary({symbol:t.type.reference,metadata:void 0,type:t})});var a=s.serialize(),u=a.json,p=a.exportAs;if(t){var l=new tc(t,r,n);o.forEach(function(e){l.addSourceType(e.summary,e.metadata)}),s.unprocessedSymbolSummariesBySymbol.forEach(function(e){n.isLibraryFile(e.symbol.filePath)&&e.type&&l.addLibType(e.type)}),l.serialize(p)}return{json:u,exportAs:p}}(t,c,this._summaryResolver,this._symbolResolver,p,l),d=h.json;h.exportAs.forEach(function(t){a.statements.push(Bs(t.exportAs).set(a.importExpr(t.symbol)).toDeclStmt(null,[e.StmtModifier.Exported]))});var v=[new Hl(t,sa(t),d)];return c&&v.push(this._codegenSourceModule(t,c)),v},t.prototype._compileModule=function(e,t){var n=[];if(this._options.locale){var r=this._options.locale.replace(/_/g,"-");n.push({token:bo(this.reflector,Co.LOCALE_ID),useValue:r})}this._options.i18nFormat&&n.push({token:bo(this.reflector,Co.TRANSLATIONS_FORMAT),useValue:this._options.i18nFormat}),this._ngModuleCompiler.compile(e,t,n)},t.prototype._compileComponentFactory=function(t,n,r,i){var o=this._metadataResolver.getHostComponentMetadata(n),s=this._compileComponent(t,o,r,[n.type],null,i).viewClassVar,a=De(n.type.reference),u=[];for(var p in n.inputs)u.push(new ls(p,Ks(n.inputs[p]),!1));var l=[];for(var p in n.outputs)l.push(new ls(p,Ks(n.outputs[p]),!1));t.statements.push(Bs(a).set(Vs(Co.createComponentFactory).callFn([Ks(n.selector),t.importExpr(n.type.reference),Bs(s),new cs(u),new cs(l),qs(n.template.ngContentSelectors.map(function(e){return Ks(e)}))])).toDeclStmt(js(Co.ComponentFactory,[Us(t.importExpr(n.type.reference))],[vo.Const]),[e.StmtModifier.Final,e.StmtModifier.Exported]))},t.prototype._compileComponent=function(e,t,n,r,i,o){var s=this._parseTemplate(t,n,r),a=s.template,u=s.pipes,p=i?Bs(i.stylesVar):qs([]),l=this._viewCompiler.compileComponent(e,t,a,p,u);return i&&sc(this._symbolResolver,i,this._styleCompiler.needsStyleShim(t),o),l},t.prototype._parseTemplate=function(e,t,n){var r=this;if(this._templateAstCache.has(e.type.reference))return this._templateAstCache.get(e.type.reference);var i=e.template.preserveWhitespaces,o=n.map(function(e){return r._metadataResolver.getDirectiveSummary(e.reference)}),s=t.transitiveModule.pipes.map(function(e){return r._metadataResolver.getPipeSummary(e.reference)}),a=this._templateParser.parse(e,e.template.htmlAst,o,s,t.schemas,Ge(t.type,e,e.template),i);return this._templateAstCache.set(e.type.reference,a),a},t.prototype._createOutputContext=function(e){var t=this;return{statements:[],genFilePath:e,importExpr:function(n,r,i){if(void 0===r&&(r=null),void 0===i&&(i=!0),!(n instanceof Ce))throw new Error("Internal error: unknown identifier "+JSON.stringify(n));var o=t._symbolResolver.getTypeArity(n)||0,s=t._symbolResolver.getImportAs(n,i)||n,a=s.name,u=s.members,p=t._fileNameToModuleName(s.filePath,e),l=p===t._fileNameToModuleName(e,e)?null:p,c=r||[],h=c.concat(new Array(o-c.length).fill(Ro));return u.reduce(function(e,t){return e.prop(t)},Vs(new Zo(l,a,null),h))},constantPool:new al}},t.prototype._fileNameToModuleName=function(e,t){return this._summaryResolver.getKnownModuleName(e)||this._symbolResolver.getKnownModuleName(e)||this._host.fileNameToModuleName(e,t)},t.prototype._codegenStyles=function(e,t,n,r,i){var o=this._createOutputContext(ac(n.moduleUrl,r,i)),s=this._styleCompiler.compileStyles(o,t,n,r);return sc(this._symbolResolver,s,r,i),this._codegenSourceModule(e,o)},t.prototype._codegenSourceModule=function(e,t){return new Hl(e,t.genFilePath,t.statements)},t.prototype.listLazyRoutes=function(e,t){var n,r,o,s,a=this;if(e)return function e(t,n,r){if(void 0===n&&(n=new Set),void 0===r&&(r=[]),n.has(t)||!t.name)return r;n.add(t);var o,s,u=Wl(a._metadataResolver.getNgModuleMetadata(t,!0),a.reflector);try{for(var p=i(u),l=p.next();!l.done;l=p.next()){var c=l.value;r.push(c),e(c.referencedModule,n,r)}}catch(e){o={error:e}}finally{try{l&&!l.done&&(s=p.return)&&s.call(p)}finally{if(o)throw o.error}}return r}(Kl(e,this.reflector).referencedModule);if(t){var u=[];try{for(var p=i(t.ngModules),l=p.next();!l.done;l=p.next()){var c=Wl(l.value,this.reflector);try{for(var h=i(c),f=h.next();!f.done;f=h.next())u.push(f.value)}catch(e){o={error:e}}finally{try{f&&!f.done&&(s=h.return)&&s.call(h)}finally{if(o)throw o.error}}}}catch(e){n={error:e}}finally{try{l&&!l.done&&(r=p.return)&&r.call(p)}finally{if(n)throw n.error}}return u}throw new Error("Either route or analyzedModules has to be specified!")},t}();function oc(e){e.statements.push(Vs(Co.ComponentFactory).toStmt())}function sc(e,t,n,r){t.dependencies.forEach(function(t){t.setValue(e.getStaticSymbol(ac(t.moduleUrl,n,r),t.name))})}function ac(e,t,n){return e+(t?".shim":"")+".ngstyle"+n}function uc(e,t,n,r){return fc(function i(e,t,n,r){var i=new Set,o=[],s=function(e){if(i.has(e)||!t.isSourceFile(e))return!1;i.add(e);var a=cc(t,n,r,e);o.push(a),a.ngModules.forEach(function(e){e.transitiveModule.modules.forEach(function(e){return s(e.reference.filePath)})})};return e.forEach(function(e){return s(e)}),o}(e,t,n,r))}function pc(e,t,n,r){return lc(uc(e,t,n,r))}function lc(e){if(e.symbolsMissingModule&&e.symbolsMissingModule.length)throw X(e.symbolsMissingModule.map(function(e){return"Cannot determine the module for class "+e.name+" in "+e.filePath+"! Add "+e.name+" to the NgModule to fix it."}).join("\n"));return e}function cc(e,t,n,r){var i=[],o=[],s=[],a=[],u=t.hasDecorators(r),p=!1;return r.endsWith(".d.ts")&&!u||t.getSymbolsOf(r).forEach(function(r){var u=t.resolveSymbol(r).metadata;if(u&&"error"!==u.__symbolic){var l=!1;if("class"===u.__symbolic)if(n.isDirective(r))l=!0,i.push(r);else if(n.isPipe(r))l=!0,o.push(r);else if(n.isNgModule(r)){var c=n.getNgModuleMetadata(r,!1);c&&(l=!0,a.push(c))}else if(n.isInjectable(r)){l=!0;var h=n.getInjectableMetadata(r,null,!1);h&&s.push(h)}l||(p=p||function f(e,t){var n=!1;return V(t,new(function(){function t(){}return t.prototype.visitArray=function(e,t){var n=this;e.forEach(function(e){return V(e,n,t)})},t.prototype.visitStringMap=function(e,t){var n=this;Object.keys(e).forEach(function(r){return V(e[r],n,t)})},t.prototype.visitPrimitive=function(e,t){},t.prototype.visitOther=function(t,r){t instanceof Ce&&!e.isSourceFile(t.filePath)&&(n=!0)},t}()),null),n}(e,u))}}),{fileName:r,directives:i,pipes:o,ngModules:a,injectables:s,exportsNonSourceFiles:p}}function hc(e,t,n,r){var i=[],o=[];return t.hasDecorators(r)&&t.getSymbolsOf(r).forEach(function(e){var r=t.resolveSymbol(e).metadata;if(r&&"error"!==r.__symbolic&&"class"===r.__symbolic)if(n.isInjectable(e)){var s=n.getInjectableMetadata(e,null,!1);s&&i.push(s)}else if(n.isNgModule(e)){var a=n.getShallowModuleMetadata(e);a&&o.push(a)}}),{fileName:r,injectables:i,shallowModules:o}}function fc(e){var t=[],n=new Map,r=new Set;e.forEach(function(e){e.ngModules.forEach(function(e){t.push(e),e.declaredDirectives.forEach(function(t){return n.set(t.reference,e)}),e.declaredPipes.forEach(function(t){return n.set(t.reference,e)})}),e.directives.forEach(function(e){return r.add(e)}),e.pipes.forEach(function(e){return r.add(e)})});var i=[];return r.forEach(function(e){n.has(e)||i.push(e)}),{ngModules:t,ngModuleByPipeOrDirective:n,symbolsMissingModule:i,files:e}}function dc(e){return lc(fc(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
   */var vc="ngFormattedMessage";function mc(e){var t=X(function e(t,n){if(void 0===n&&(n=0),!t)return"";var r=t.position?t.position.fileName+"("+(t.position.line+1)+","+(t.position.column+1)+")":"",i=(r&&0===n?r+": ":"")+t.message+(r&&0!==n?" at "+r:"");return""+function e(t){if(t<=0)return"";if(t<6)return[""," ","  ","   ","    ","     "][t];var n=e(Math.floor(t/2));return n+n+(t%2==1?" ":"")}(n)+i+(t.next&&"\n"+e(t.next,n+2)||"")}(e)+".");return t[vc]=!0,t.chain=e,t.position=e.position,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
   */
  var yc="@angular/core",gc=/^\$.*\$$/,_c={__symbolic:"ignore"},Ec=new Set(["useValue","useFactory","data","id","loadChildren"]);function xc(e){return e&&"ignore"==e.__symbolic}var Sc=function(){function t(t,n,r,i,o){void 0===r&&(r=[]),void 0===i&&(i=[]);var s=this;this.summaryResolver=t,this.symbolResolver=n,this.errorRecorder=o,this.annotationCache=new Map,this.shallowAnnotationCache=new Map,this.propertyCache=new Map,this.parameterCache=new Map,this.methodCache=new Map,this.staticCache=new Map,this.conversionMap=new Map,this.resolvedExternalReferences=new Map,this.annotationForParentClassWithSummaryKind=new Map,this.initializeConversionMap(),r.forEach(function(e){return s._registerDecoratorOrConstructor(s.getStaticSymbol(e.filePath,e.name),e.ctor)}),i.forEach(function(e){return s._registerFunction(s.getStaticSymbol(e.filePath,e.name),e.fn)}),this.annotationForParentClassWithSummaryKind.set(e.CompileSummaryKind.Directive,[m,_]),this.annotationForParentClassWithSummaryKind.set(e.CompileSummaryKind.Pipe,[E]),this.annotationForParentClassWithSummaryKind.set(e.CompileSummaryKind.NgModule,[T]),this.annotationForParentClassWithSummaryKind.set(e.CompileSummaryKind.Injectable,[b,E,m,_,T])}return t.prototype.componentModuleUrl=function(e){var t=this.findSymbolDeclaration(e);return this.symbolResolver.getResourcePath(t)},t.prototype.resolveExternalReference=function(e,t){var n=void 0;if(!t){var r=this.resolvedExternalReferences.get(n=e.moduleName+":"+e.name);if(r)return r}var i=this.symbolResolver.getSymbolByModule(e.moduleName,e.name,t),o=this.findSymbolDeclaration(i);return t||(this.symbolResolver.recordModuleNameForFileName(i.filePath,e.moduleName),this.symbolResolver.recordImportAs(o,i)),n&&this.resolvedExternalReferences.set(n,o),o},t.prototype.findDeclaration=function(e,t,n){return this.findSymbolDeclaration(this.symbolResolver.getSymbolByModule(e,t,n))},t.prototype.tryFindDeclaration=function(e,t,n){var r=this;return this.symbolResolver.ignoreErrorsFor(function(){return r.findDeclaration(e,t,n)})},t.prototype.findSymbolDeclaration=function(e){var t=this.symbolResolver.resolveSymbol(e);if(t){var n=t.metadata;if(n&&"resolved"===n.__symbolic&&(n=n.symbol),n instanceof Ce)return this.findSymbolDeclaration(t.metadata)}return e},t.prototype.tryAnnotations=function(e){var t=this.errorRecorder;this.errorRecorder=function(e,t){};try{return this.annotations(e)}finally{this.errorRecorder=t}},t.prototype.annotations=function(e){var t=this;return this._annotations(e,function(e,n){return t.simplify(e,n)},this.annotationCache)},t.prototype.shallowAnnotations=function(e){var t=this;return this._annotations(e,function(e,n){return t.simplify(e,n,!0)},this.shallowAnnotationCache)},t.prototype._annotations=function(t,n,r){var i=r.get(t);if(!i){i=[];var o=this.getTypeMetadata(t),a=this.findParentType(t,o);if(a){var u=this.annotations(a);i.push.apply(i,s(u))}var p=[];if(o.decorators&&(p=n(t,o.decorators))&&i.push.apply(i,s(p)),a&&!this.summaryResolver.isLibraryFile(t.filePath)&&this.summaryResolver.isLibraryFile(a.filePath)){var l=this.summaryResolver.resolveSummary(a);if(l&&l.type){var c=this.annotationForParentClassWithSummaryKind.get(l.type.summaryKind);c.some(function(e){return p.some(function(t){return e.isTypeOf(t)})})||this.reportError(Lc(Cc("Class "+t.name+" in "+t.filePath+" extends from a "+e.CompileSummaryKind[l.type.summaryKind]+" in another compilation unit without duplicating the decorator",void 0,"Please add a "+c.map(function(e){return e.ngMetadataName}).join(" or ")+" decorator to the class"),t),t)}}r.set(t,i.filter(function(e){return!!e}))}return i},t.prototype.propMetadata=function(e){var t=this,n=this.propertyCache.get(e);if(!n){var r=this.getTypeMetadata(e);n={};var i=this.findParentType(e,r);if(i){var o=this.propMetadata(i);Object.keys(o).forEach(function(e){n[e]=o[e]})}var a=r.members||{};Object.keys(a).forEach(function(r){var i=a[r].find(function(e){return"property"==e.__symbolic||"method"==e.__symbolic}),o=[];n[r]&&o.push.apply(o,s(n[r])),n[r]=o,i&&i.decorators&&o.push.apply(o,s(t.simplify(e,i.decorators)))}),this.propertyCache.set(e,n)}return n},t.prototype.parameters=function(e){var t=this;if(!(e instanceof Ce))return this.reportError(new Error("parameters received "+JSON.stringify(e)+" which is not a StaticSymbol"),e),[];try{var n=this.parameterCache.get(e);if(!n){var r=this.getTypeMetadata(e),i=this.findParentType(e,r),o=r?r.members:null,a=o?o.__ctor__:null;if(a){var u=a.find(function(e){return"constructor"==e.__symbolic}),p=u.parameters||[],l=this.simplify(e,u.parameterDecorators||[]);n=[],p.forEach(function(r,i){var o=[],a=t.trySimplify(e,r);a&&o.push(a);var u=l?l[i]:null;u&&o.push.apply(o,s(u)),n.push(o)})}else i&&(n=this.parameters(i));n||(n=[]),this.parameterCache.set(e,n)}return n}catch(t){throw console.error("Failed on type "+JSON.stringify(e)+" with error "+t),t}},t.prototype._methodNames=function(e){var t=this.methodCache.get(e);if(!t){var n=this.getTypeMetadata(e);t={};var r=this.findParentType(e,n);if(r){var i=this._methodNames(r);Object.keys(i).forEach(function(e){t[e]=i[e]})}var o=n.members||{};Object.keys(o).forEach(function(e){var n=o[e].some(function(e){return"method"==e.__symbolic});t[e]=t[e]||n}),this.methodCache.set(e,t)}return t},t.prototype._staticMembers=function(e){var t=this.staticCache.get(e);if(!t){var n=this.getTypeMetadata(e);t=Object.keys(n.statics||{}),this.staticCache.set(e,t)}return t},t.prototype.findParentType=function(e,t){var n=this.trySimplify(e,t.extends);if(n instanceof Ce)return n},t.prototype.hasLifecycleHook=function(e,t){e instanceof Ce||this.reportError(new Error("hasLifecycleHook received "+JSON.stringify(e)+" which is not a StaticSymbol"),e);try{return!!this._methodNames(e)[t]}catch(t){throw console.error("Failed on type "+JSON.stringify(e)+" with error "+t),t}},t.prototype.guards=function(e){if(!(e instanceof Ce))return this.reportError(new Error("guards received "+JSON.stringify(e)+" which is not a StaticSymbol"),e),{};var t,n,r=this._staticMembers(e),o={};try{for(var s=i(r),a=s.next();!a.done;a=s.next()){var u=a.value;if(u.endsWith("TypeGuard")){var p=u.substr(0,u.length-"TypeGuard".length),l=void 0;p.endsWith("UseIf")?(p=u.substr(0,p.length-"UseIf".length),l="UseIf"):l=this.getStaticSymbol(e.filePath,e.name,[u]),o[p]=l}}}catch(e){t={error:e}}finally{try{a&&!a.done&&(n=s.return)&&n.call(s)}finally{if(t)throw t.error}}return o},t.prototype._registerDecoratorOrConstructor=function(e,t){this.conversionMap.set(e,function(e,n){return new(t.bind.apply(t,s([void 0],n)))})},t.prototype._registerFunction=function(e,t){this.conversionMap.set(e,function(e,n){return t.apply(void 0,n)})},t.prototype.initializeConversionMap=function(){this._registerDecoratorOrConstructor(this.findDeclaration(yc,"Injectable"),b),this.injectionToken=this.findDeclaration(yc,"InjectionToken"),this.opaqueToken=this.findDeclaration(yc,"OpaqueToken"),this.ROUTES=this.tryFindDeclaration("@angular/router","ROUTES"),this.ANALYZE_FOR_ENTRY_COMPONENTS=this.findDeclaration(yc,"ANALYZE_FOR_ENTRY_COMPONENTS"),this._registerDecoratorOrConstructor(this.findDeclaration(yc,"Host"),I),this._registerDecoratorOrConstructor(this.findDeclaration(yc,"Self"),N),this._registerDecoratorOrConstructor(this.findDeclaration(yc,"SkipSelf"),k),this._registerDecoratorOrConstructor(this.findDeclaration(yc,"Inject"),p),this._registerDecoratorOrConstructor(this.findDeclaration(yc,"Optional"),A),this._registerDecoratorOrConstructor(this.findDeclaration(yc,"Attribute"),c),this._registerDecoratorOrConstructor(this.findDeclaration(yc,"ContentChild"),f),this._registerDecoratorOrConstructor(this.findDeclaration(yc,"ContentChildren"),h),this._registerDecoratorOrConstructor(this.findDeclaration(yc,"ViewChild"),v),this._registerDecoratorOrConstructor(this.findDeclaration(yc,"ViewChildren"),d),this._registerDecoratorOrConstructor(this.findDeclaration(yc,"Input"),x),this._registerDecoratorOrConstructor(this.findDeclaration(yc,"Output"),S),this._registerDecoratorOrConstructor(this.findDeclaration(yc,"Pipe"),E),this._registerDecoratorOrConstructor(this.findDeclaration(yc,"HostBinding"),w),this._registerDecoratorOrConstructor(this.findDeclaration(yc,"HostListener"),C),this._registerDecoratorOrConstructor(this.findDeclaration(yc,"Directive"),m),this._registerDecoratorOrConstructor(this.findDeclaration(yc,"Component"),_),this._registerDecoratorOrConstructor(this.findDeclaration(yc,"NgModule"),T),this._registerDecoratorOrConstructor(this.findDeclaration(yc,"Host"),I),this._registerDecoratorOrConstructor(this.findDeclaration(yc,"Self"),N),this._registerDecoratorOrConstructor(this.findDeclaration(yc,"SkipSelf"),k),this._registerDecoratorOrConstructor(this.findDeclaration(yc,"Optional"),A)},t.prototype.getStaticSymbol=function(e,t,n){return this.symbolResolver.getStaticSymbol(e,t,n)},t.prototype.trySimplify=function(e,t){var n=this.errorRecorder;this.errorRecorder=function(e,t){};var r=this.simplify(e,t);return this.errorRecorder=n,r},t.prototype.simplify=function(e,t,n){void 0===n&&(n=!1);var r,o=this,a=Rc.empty,u=new Map;try{r=function e(t,n,r,p){function l(e){var t=o.symbolResolver.resolveSymbol(e);return t?t.metadata:null}function c(n){return e(t,n,r,0)}function h(n,i){if(n===t)return e(n,i,r+1,p);try{return e(n,i,r+1,p)}catch(e){if(!Tc(e))throw e;var s=e.chain?"references '"+e.symbol.name+"'":function a(e){if(e.summary)return e.summary;switch(e.message){case bc:if(e.context&&e.context.className)return"references non-exported class "+e.context.className;break;case Mc:return"is not initialized";case Pc:return"is a destructured variable";case Ac:return"could not be resolved";case Nc:return e.context&&e.context.name?"calls '"+e.context.name+"'":"calls a function";case kc:return e.context&&e.context.name?"references local variable "+e.context.name:"references a local variable"}return"contains the error"}(e);o.error({message:e.message,advise:e.advise,context:e.context,chain:{message:"'"+n.name+"' "+s,position:e.position,next:e.chain},symbol:n},t)}}return function n(f){if(Oc(f))return f;if(f instanceof Array){var d=[];try{for(var v=i(f),m=v.next();!m.done;m=v.next()){var y=m.value;if(y&&"spread"===y.__symbolic){var g=c(y.expression);if(Array.isArray(g)){try{for(var _=i(g),E=_.next();!E.done;E=_.next())d.push(E.value)}catch(e){C={error:e}}finally{try{E&&!E.done&&(T=_.return)&&T.call(_)}finally{if(C)throw C.error}}continue}}var x=n(y);xc(x)||d.push(x)}}catch(e){S={error:e}}finally{try{m&&!m.done&&(w=v.return)&&w.call(v)}finally{if(S)throw S.error}}return d}var S,w,C,T;if(f instanceof Ce)return f===o.injectionToken||o.conversionMap.has(f)||p>0&&!f.members.length?f:null!=(D=l(b=f))?h(b,D):b;if(f){if(f.__symbolic){var b=void 0;switch(f.__symbolic){case"binop":var M=n(f.left);if(xc(M))return M;var P=n(f.right);if(xc(P))return P;switch(f.operator){case"&&":return M&&P;case"||":return M||P;case"|":return M|P;case"^":return M^P;case"&":return M&P;case"==":return M==P;case"!=":return M!=P;case"===":return M===P;case"!==":return M!==P;case"<":return M<P;case">":return M>P;case"<=":return M<=P;case">=":return M>=P;case"<<":return M<<P;case">>":return M>>P;case"+":return M+P;case"-":return M-P;case"*":return M*P;case"/":return M/P;case"%":return M%P}return null;case"if":return n(n(f.condition)?f.thenExpression:f.elseExpression);case"pre":var A=n(f.operand);if(xc(A))return A;switch(f.operator){case"+":return A;case"-":return-A;case"!":return!A;case"~":return~A}return null;case"index":var N=c(f.expression),k=c(f.index);return N&&Oc(k)?N[k]:null;case"select":var I=f.member,O=t,R=n(f.expression);if(R instanceof Ce){var D,L=R.members.concat(I);return null!=(D=l(O=o.getStaticSymbol(R.filePath,R.name,L)))?h(O,D):O}return R&&Oc(I)?h(O,R[I]):null;case"reference":var F=a.resolve(f.name);if(F!=Rc.missing)return F;break;case"resolved":try{return n(f.symbol)}catch(e){throw Tc(e)&&null!=f.fileName&&null!=f.line&&null!=f.character&&(e.position={fileName:f.fileName,line:f.line,column:f.character}),e}case"class":case"function":return t;case"new":case"call":if((b=e(t,f.expression,r+1,0))instanceof Ce){if(b===o.injectionToken||b===o.opaqueToken)return t;var B=f.arguments||[],V=o.conversionMap.get(b);if(V){var j=B.map(function(e){return h(t,e)}).map(function(e){return xc(e)?void 0:e});return V(t,j)}return function U(e,i,p,l){if(i&&"function"==i.__symbolic){u.get(e)&&o.error({message:"Recursion is not supported",summary:"called '"+e.name+"' recursively",value:i},e);try{var c=i.value;if(c&&(0!=r||"error"!=c.__symbolic)){var f=i.parameters,d=i.defaults;p=p.map(function(e){return h(t,e)}).map(function(e){return xc(e)?void 0:e}),d&&d.length>p.length&&p.push.apply(p,s(d.slice(p.length).map(function(e){return n(e)}))),u.set(e,!0);for(var v=Rc.build(),m=0;m<f.length;m++)v.define(f[m],p[m]);var y,g=a;try{a=v.done(),y=h(e,c)}finally{a=g}return y}}finally{u.delete(e)}}if(0===r)return _c;var _=void 0;if(l&&"resolved"==l.__symbolic){var E=l.line,x=l.character,S=l.fileName;null!=S&&null!=E&&null!=x&&(_={fileName:S,line:E,column:x})}o.error({message:Nc,context:e,value:i,position:_},t)}(b,l(b),B,f.expression)}return _c;case"error":var q=f.message;return o.error(null!=f.line?{message:q,context:f.context,value:f,position:{fileName:f.fileName,line:f.line,column:f.character}}:{message:q,context:f.context},t),_c;case"ignore":return f}return null}return function H(e,t){if(!e)return{};var n={};return Object.keys(e).forEach(function(r){var i=t(e[r],r);xc(i)||(gc.test(r)?Object.defineProperty(n,r,{enumerable:!1,configurable:!0,value:i}):n[r]=i)}),n}(f,function(i,s){if(Ec.has(s)){if("useValue"===s&&"provide"in f){var a=n(f.provide);if(a===o.ROUTES||a==o.ANALYZE_FOR_ENTRY_COMPONENTS)return n(i)}return function u(n){return e(t,n,r,p+1)}(i)}return n(i)})}return _c}(n)}(e,t,0,n?1:0)}catch(t){if(!this.errorRecorder)throw Lc(t,e);this.reportError(t,e)}if(!xc(r))return r},t.prototype.getTypeMetadata=function(e){var t=this.symbolResolver.resolveSymbol(e);return t&&t.metadata?t.metadata:{__symbolic:"class"}},t.prototype.reportError=function(e,t,n){if(!this.errorRecorder)throw e;this.errorRecorder(Lc(e,t),t&&t.filePath||n)},t.prototype.error=function(e,t){this.reportError(Cc(e.message,e.summary,e.advise,e.position,e.symbol,e.context,e.chain),t)},t}(),wc="ngMetadataError";function Cc(e,t,n,r,i,o,s){var a=X(e);return a[wc]=!0,n&&(a.advise=n),r&&(a.position=r),t&&(a.summary=t),o&&(a.context=o),s&&(a.chain=s),i&&(a.symbol=i),a}function Tc(e){return!!e[wc]}var bc="Reference to non-exported class",Mc="Variable not initialized",Pc="Destructuring not supported",Ac="Could not resolve type",Nc="Function call not supported",kc="Reference to a local symbol",Ic="Lambda not supported";function Oc(e){return null===e||"function"!=typeof e&&"object"!=typeof e}var Rc=function(){function e(){}return e.build=function(){var t=new Map;return{define:function(e,n){return t.set(e,n),this},done:function(){return t.size>0?new Dc(t):e.empty}}},e.missing={},e.empty={resolve:function(t){return e.missing}},e}(),Dc=function(e){function t(t){var n=e.call(this)||this;return n.bindings=t,n}return n(t,e),t.prototype.resolve=function(e){return this.bindings.has(e)?this.bindings.get(e):Rc.missing},t}(Rc);function Lc(e,t){return Tc(e)?mc(function e(t,n){return{message:function r(e,t){switch(e){case bc:if(t&&t.className)return"References to a non-exported class are not supported in decorators but "+t.className+" was referenced.";break;case Mc:return"Only initialized variables and constants can be referenced in decorators because the value of this variable is needed by the template compiler";case Pc:return"Referencing an exported destructured variable or constant is not supported in decorators and this value is needed by the template compiler";case Ac:if(t&&t.typeName)return"Could not resolve type "+t.typeName;break;case Nc:return t&&t.name?"Function calls are not supported in decorators but '"+t.name+"' was called":"Function calls are not supported in decorators";case kc:if(t&&t.name)return"Reference to a local (non-exported) symbols are not supported in decorators but '"+t.name+"' was referenced";break;case Ic:return"Function expressions are not supported in decorators"}return e}(t.message,t.context)+(t.symbol?" in '"+t.symbol.name+"'":""),position:t.position,next:t.next?e(t.next,n):n?{message:n}:void 0}}({message:"Error during template compile of '"+t.name+"'",position:e.position,next:{message:e.message,next:e.chain,context:e.context,symbol:e.symbol}},e.advise||function n(e,t){switch(e){case bc:if(t&&t.className)return"Consider exporting '"+t.className+"'";break;case Pc:return"Consider simplifying to avoid destructuring";case kc:if(t&&t.name)return"Consider exporting '"+t.name+"'";break;case Ic:return"Consider changing the function expression into an exported function"}}(e.message,e.context))):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
   */var Fc=function(){function e(e,t){this.host=e,this.staticSymbolCache=t,this.summaryCache=new Map,this.loadedFilePaths=new Map,this.importAs=new Map,this.knownFileNameToModuleNames=new Map}return e.prototype.isLibraryFile=function(e){return!this.host.isSourceFile(ra(e))},e.prototype.toSummaryFileName=function(e,t){return this.host.toSummaryFileName(e,t)},e.prototype.fromSummaryFileName=function(e,t){return this.host.fromSummaryFileName(e,t)},e.prototype.resolveSummary=function(e){var t=e.members.length?this.staticSymbolCache.get(e.filePath,e.name):e,n=this.summaryCache.get(t);return n||(this._loadSummaryFile(e.filePath),n=this.summaryCache.get(e)),t===e&&n||null},e.prototype.getSymbolsOf=function(e){return this._loadSummaryFile(e)?Array.from(this.summaryCache.keys()).filter(function(t){return t.filePath===e}):null},e.prototype.getImportAs=function(e){return e.assertNoMembers(),this.importAs.get(e)},e.prototype.getKnownModuleName=function(e){return this.knownFileNameToModuleNames.get(e)||null},e.prototype.addSummary=function(e){this.summaryCache.set(e.symbol,e)},e.prototype._loadSummaryFile=function(e){var t=this,n=this.loadedFilePaths.get(e);if(null!=n)return n;var r=null;if(this.isLibraryFile(e)){var i=sa(e);try{r=this.host.loadSummary(i)}catch(e){throw console.error("Error loading summary file "+i),e}}if(this.loadedFilePaths.set(e,n=null!=r),r){var o=function s(e,t,n,r){return new nc(e,t).deserialize(n,r)}(this.staticSymbolCache,this,e,r),a=o.moduleName,u=o.importAs;o.summaries.forEach(function(e){return t.summaryCache.set(e.symbol,e)}),a&&this.knownFileNameToModuleNames.set(e,a),u.forEach(function(e){t.importAs.set(e.symbol,e.importAs)})}return n},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 Bc(e){return{resolve:function(t,n){var r=e.resourceNameToFileName(n,t);if(!r)throw X("Couldn't resolve resource "+n+" from "+t);return r}}}var Vc=function Vc(){},jc=function(){function e(){this._summaries=new Map}return e.prototype.isLibraryFile=function(){return!1},e.prototype.toSummaryFileName=function(e){return e},e.prototype.fromSummaryFileName=function(e){return e},e.prototype.resolveSummary=function(e){return this._summaries.get(e)||null},e.prototype.getSymbolsOf=function(){return[]},e.prototype.getImportAs=function(e){return e},e.prototype.getKnownModuleName=function(e){return null},e.prototype.addSummary=function(e){this._summaries.set(e.symbol,e)},e}();function Uc(e,t,n,r,i){for(var o=r.createChildWihtLocalVars(),s=0;s<e.length;s++)o.vars.set(e[s],t[s]);var a=i.visitAllStatements(n,o);return a?a.value:null}var qc=function(){function e(e,t,n,r){this.parent=e,this.instance=t,this.className=n,this.vars=r,this.exports=[]}return e.prototype.createChildWihtLocalVars=function(){return new e(this,this.instance,this.className,new Map)},e}(),Hc=function Hc(e){this.value=e},Wc=function(){function t(e){this.reflector=e}return t.prototype.debugAst=function(e){return tu(e)},t.prototype.visitDeclareVarStmt=function(t,n){var r=t.value?t.value.visitExpression(this,n):void 0;return n.vars.set(t.name,r),t.hasModifier(e.StmtModifier.Exported)&&n.exports.push(t.name),null},t.prototype.visitWriteVarExpr=function(e,t){for(var n=e.value.visitExpression(this,t),r=t;null!=r;){if(r.vars.has(e.name))return r.vars.set(e.name,n),n;r=r.parent}throw new Error("Not declared variable "+e.name)},t.prototype.visitReadVarExpr=function(t,n){var r=t.name;if(null!=t.builtin)switch(t.builtin){case e.BuiltinVar.Super:return n.instance.__proto__;case e.BuiltinVar.This:return n.instance;case e.BuiltinVar.CatchError:r=Kc;break;case e.BuiltinVar.CatchStack:r=Xc;break;default:throw new Error("Unknown builtin variable "+t.builtin)}for(var i=n;null!=i;){if(i.vars.has(r))return i.vars.get(r);i=i.parent}throw new Error("Not declared variable "+r)},t.prototype.visitWriteKeyExpr=function(e,t){var n=e.receiver.visitExpression(this,t),r=e.index.visitExpression(this,t),i=e.value.visitExpression(this,t);return n[r]=i,i},t.prototype.visitWritePropExpr=function(e,t){var n=e.receiver.visitExpression(this,t),r=e.value.visitExpression(this,t);return n[e.name]=r,r},t.prototype.visitInvokeMethodExpr=function(t,n){var r,i=t.receiver.visitExpression(this,n),o=this.visitAllExpressions(t.args,n);if(null!=t.builtin)switch(t.builtin){case e.BuiltinMethod.ConcatArray:r=i.concat.apply(i,s(o));break;case e.BuiltinMethod.SubscribeObservable:r=i.subscribe({next:o[0]});break;case e.BuiltinMethod.Bind:r=i.bind.apply(i,s(o));break;default:throw new Error("Unknown builtin method "+t.builtin)}else r=i[t.name].apply(i,o);return r},t.prototype.visitInvokeFunctionExpr=function(t,n){var r=this.visitAllExpressions(t.args,n),i=t.fn;return i instanceof Ho&&i.builtin===e.BuiltinVar.Super?(n.instance.constructor.prototype.constructor.apply(n.instance,r),null):t.fn.visitExpression(this,n).apply(null,r)},t.prototype.visitReturnStmt=function(e,t){return new Hc(e.value.visitExpression(this,t))},t.prototype.visitDeclareClassStmt=function(t,n){var r=function i(e,t,n){var r={};e.getters.forEach(function(i){r[i.name]={configurable:!1,get:function(){var r=new qc(t,this,e.name,t.vars);return Uc([],[],i.body,r,n)}}}),e.methods.forEach(function(i){var o=i.params.map(function(e){return e.name});r[i.name]={writable:!1,configurable:!1,value:function(){for(var r=[],s=0;s<arguments.length;s++)r[s]=arguments[s];var a=new qc(t,this,e.name,t.vars);return Uc(o,r,i.body,a,n)}}});var i=e.constructorMethod.params.map(function(e){return e.name}),o=function(){for(var r=this,o=[],s=0;s<arguments.length;s++)o[s]=arguments[s];var a=new qc(t,this,e.name,t.vars);e.fields.forEach(function(e){r[e.name]=void 0}),Uc(i,o,e.constructorMethod.body,a,n)},s=e.parent?e.parent.visitExpression(n,t):Object;return o.prototype=Object.create(s.prototype,r),o}(t,n,this);return n.vars.set(t.name,r),t.hasModifier(e.StmtModifier.Exported)&&n.exports.push(t.name),null},t.prototype.visitExpressionStmt=function(e,t){return e.expr.visitExpression(this,t)},t.prototype.visitIfStmt=function(e,t){return e.condition.visitExpression(this,t)?this.visitAllStatements(e.trueCase,t):null!=e.falseCase?this.visitAllStatements(e.falseCase,t):null},t.prototype.visitTryCatchStmt=function(e,t){try{return this.visitAllStatements(e.bodyStmts,t)}catch(r){var n=t.createChildWihtLocalVars();return n.vars.set(Kc,r),n.vars.set(Xc,r.stack),this.visitAllStatements(e.catchStmts,n)}},t.prototype.visitThrowStmt=function(e,t){throw e.error.visitExpression(this,t)},t.prototype.visitCommentStmt=function(e,t){return null},t.prototype.visitJSDocCommentStmt=function(e,t){return null},t.prototype.visitInstantiateExpr=function(e,t){var n=this.visitAllExpressions(e.args,t),r=e.classExpr.visitExpression(this,t);return new(r.bind.apply(r,s([void 0],n)))},t.prototype.visitLiteralExpr=function(e,t){return e.value},t.prototype.visitExternalExpr=function(e,t){return this.reflector.resolveExternalReference(e.value)},t.prototype.visitConditionalExpr=function(e,t){return e.condition.visitExpression(this,t)?e.trueCase.visitExpression(this,t):null!=e.falseCase?e.falseCase.visitExpression(this,t):null},t.prototype.visitNotExpr=function(e,t){return!e.condition.visitExpression(this,t)},t.prototype.visitAssertNotNullExpr=function(e,t){return e.condition.visitExpression(this,t)},t.prototype.visitCastExpr=function(e,t){return e.value.visitExpression(this,t)},t.prototype.visitFunctionExpr=function(e,t){return zc(e.params.map(function(e){return e.name}),e.statements,t,this)},t.prototype.visitDeclareFunctionStmt=function(t,n){var r=t.params.map(function(e){return e.name});return n.vars.set(t.name,zc(r,t.statements,n,this)),t.hasModifier(e.StmtModifier.Exported)&&n.exports.push(t.name),null},t.prototype.visitBinaryOperatorExpr=function(t,n){var r=this,i=function(){return t.lhs.visitExpression(r,n)},o=function(){return t.rhs.visitExpression(r,n)};switch(t.operator){case e.BinaryOperator.Equals:return i()==o();case e.BinaryOperator.Identical:return i()===o();case e.BinaryOperator.NotEquals:return i()!=o();case e.BinaryOperator.NotIdentical:return i()!==o();case e.BinaryOperator.And:return i()&&o();case e.BinaryOperator.Or:return i()||o();case e.BinaryOperator.Plus:return i()+o();case e.BinaryOperator.Minus:return i()-o();case e.BinaryOperator.Divide:return i()/o();case e.BinaryOperator.Multiply:return i()*o();case e.BinaryOperator.Modulo:return i()%o();case e.BinaryOperator.Lower:return i()<o();case e.BinaryOperator.LowerEquals:return i()<=o();case e.BinaryOperator.Bigger:return i()>o();case e.BinaryOperator.BiggerEquals:return i()>=o();default:throw new Error("Unknown operator "+t.operator)}},t.prototype.visitReadPropExpr=function(e,t){return e.receiver.visitExpression(this,t)[e.name]},t.prototype.visitReadKeyExpr=function(e,t){return e.receiver.visitExpression(this,t)[e.index.visitExpression(this,t)]},t.prototype.visitLiteralArrayExpr=function(e,t){return this.visitAllExpressions(e.entries,t)},t.prototype.visitLiteralMapExpr=function(e,t){var n=this,r={};return e.entries.forEach(function(e){return r[e.key]=e.value.visitExpression(n,t)}),r},t.prototype.visitCommaExpr=function(e,t){var n=this.visitAllExpressions(e.parts,t);return n[n.length-1]},t.prototype.visitAllExpressions=function(e,t){var n=this;return e.map(function(e){return e.visitExpression(n,t)})},t.prototype.visitAllStatements=function(e,t){for(var n=0;n<e.length;n++){var r=e[n].visitStatement(this,t);if(r instanceof Hc)return r}return null},t}();function zc(e,t,n,r){return function(){for(var i=[],o=0;o<arguments.length;o++)i[o]=arguments[o];return Uc(e,i,t,n,r)}}var Kc="error",Xc="stack",Qc=function(t){function r(e){var n=t.call(this)||this;return n.reflector=e,n._evalArgNames=[],n._evalArgValues=[],n._evalExportedVars=[],n}return n(r,t),r.prototype.createReturnStmt=function(e){new _s(new cs(this._evalExportedVars.map(function(e){return new ls(e,Bs(e),!1)}))).visitStatement(this,e)},r.prototype.getArgs=function(){for(var e={},t=0;t<this._evalArgNames.length;t++)e[this._evalArgNames[t]]=this._evalArgValues[t];return e},r.prototype.visitExternalExpr=function(e,t){var n=this.reflector.resolveExternalReference(e.value),r=this._evalArgValues.indexOf(n);if(-1===r){r=this._evalArgValues.length,this._evalArgValues.push(n);var i=Ne({reference:n})||"val";this._evalArgNames.push("jit_"+i+"_"+r)}return t.print(e,this._evalArgNames[r]),null},r.prototype.visitDeclareVarStmt=function(n,r){return n.hasModifier(e.StmtModifier.Exported)&&this._evalExportedVars.push(n.name),t.prototype.visitDeclareVarStmt.call(this,n,r)},r.prototype.visitDeclareFunctionStmt=function(n,r){return n.hasModifier(e.StmtModifier.Exported)&&this._evalExportedVars.push(n.name),t.prototype.visitDeclareFunctionStmt.call(this,n,r)},r.prototype.visitDeclareClassStmt=function(n,r){return n.hasModifier(e.StmtModifier.Exported)&&this._evalExportedVars.push(n.name),t.prototype.visitDeclareClassStmt.call(this,n,r)},r}(function(t){function r(){return t.call(this,!1)||this}return n(r,t),r.prototype.visitDeclareClassStmt=function(e,t){var n=this;return t.pushClass(e),this._visitClassConstructor(e,t),null!=e.parent&&(t.print(e,e.name+".prototype = Object.create("),e.parent.visitExpression(this,t),t.println(e,".prototype);")),e.getters.forEach(function(r){return n._visitClassGetter(e,r,t)}),e.methods.forEach(function(r){return n._visitClassMethod(e,r,t)}),t.popClass(),null},r.prototype._visitClassConstructor=function(e,t){t.print(e,"function "+e.name+"("),null!=e.constructorMethod&&this._visitParams(e.constructorMethod.params,t),t.println(e,") {"),t.incIndent(),null!=e.constructorMethod&&e.constructorMethod.body.length>0&&(t.println(e,"var self = this;"),this.visitAllStatements(e.constructorMethod.body,t)),t.decIndent(),t.println(e,"}")},r.prototype._visitClassGetter=function(e,t,n){n.println(e,"Object.defineProperty("+e.name+".prototype, '"+t.name+"', { get: function() {"),n.incIndent(),t.body.length>0&&(n.println(e,"var self = this;"),this.visitAllStatements(t.body,n)),n.decIndent(),n.println(e,"}});")},r.prototype._visitClassMethod=function(e,t,n){n.print(e,e.name+".prototype."+t.name+" = function("),this._visitParams(t.params,n),n.println(e,") {"),n.incIndent(),t.body.length>0&&(n.println(e,"var self = this;"),this.visitAllStatements(t.body,n)),n.decIndent(),n.println(e,"};")},r.prototype.visitReadVarExpr=function(n,r){if(n.builtin===e.BuiltinVar.This)r.print(n,"self");else{if(n.builtin===e.BuiltinVar.Super)throw new Error("'super' needs to be handled at a parent ast node, not at the variable level!");t.prototype.visitReadVarExpr.call(this,n,r)}return null},r.prototype.visitDeclareVarStmt=function(e,t){return t.print(e,"var "+e.name),e.value&&(t.print(e," = "),e.value.visitExpression(this,t)),t.println(e,";"),null},r.prototype.visitCastExpr=function(e,t){return e.value.visitExpression(this,t),null},r.prototype.visitInvokeFunctionExpr=function(n,r){var i=n.fn;return i instanceof Ho&&i.builtin===e.BuiltinVar.Super?(r.currentClass.parent.visitExpression(this,r),r.print(n,".call(this"),n.args.length>0&&(r.print(n,", "),this.visitAllExpressions(n.args,r,",")),r.print(n,")")):t.prototype.visitInvokeFunctionExpr.call(this,n,r),null},r.prototype.visitFunctionExpr=function(e,t){return t.print(e,"function"+(e.name?" "+e.name:"")+"("),this._visitParams(e.params,t),t.println(e,") {"),t.incIndent(),this.visitAllStatements(e.statements,t),t.decIndent(),t.print(e,"}"),null},r.prototype.visitDeclareFunctionStmt=function(e,t){return t.print(e,"function "+e.name+"("),this._visitParams(e.params,t),t.println(e,") {"),t.incIndent(),this.visitAllStatements(e.statements,t),t.decIndent(),t.println(e,"}"),null},r.prototype.visitTryCatchStmt=function(t,n){n.println(t,"try {"),n.incIndent(),this.visitAllStatements(t.bodyStmts,n),n.decIndent(),n.println(t,"} catch ("+Qa.name+") {"),n.incIndent();var r=[Ga.set(Qa.prop("stack")).toDeclStmt(null,[e.StmtModifier.Final])].concat(t.catchStmts);return this.visitAllStatements(r,n),n.decIndent(),n.println(t,"}"),null},r.prototype._visitParams=function(e,t){this.visitAllObjects(function(e){return t.print(null,e.name)},e,t,",")},r.prototype.getBuiltinMethodName=function(t){var n;switch(t){case e.BuiltinMethod.ConcatArray:n="concat";break;case e.BuiltinMethod.SubscribeObservable:n="subscribe";break;case e.BuiltinMethod.Bind:n="bind";break;default:throw new Error("Unknown builtin method: "+t)}return n},r}($a)),Gc=function(){function e(e,t,n,r,i,o,s,a,u,p){this._metadataResolver=e,this._templateParser=t,this._styleCompiler=n,this._viewCompiler=r,this._ngModuleCompiler=i,this._summaryResolver=o,this._reflector=s,this._compilerConfig=a,this._console=u,this.getExtraNgModuleProviders=p,this._compiledTemplateCache=new Map,this._compiledHostTemplateCache=new Map,this._compiledDirectiveWrapperCache=new Map,this._compiledNgModuleCache=new Map,this._sharedStylesheetCount=0,this._addedAotSummaries=new Set}return e.prototype.compileModuleSync=function(e){return H(this._compileModuleAndComponents(e,!0))},e.prototype.compileModuleAsync=function(e){return Promise.resolve(this._compileModuleAndComponents(e,!1))},e.prototype.compileModuleAndAllComponentsSync=function(e){return H(this._compileModuleAndAllComponents(e,!0))},e.prototype.compileModuleAndAllComponentsAsync=function(e){return Promise.resolve(this._compileModuleAndAllComponents(e,!1))},e.prototype.getComponentFactory=function(e){return this._metadataResolver.getDirectiveSummary(e).componentFactory},e.prototype.loadAotSummaries=function(e){this.clearCache(),this._addAotSummaries(e)},e.prototype._addAotSummaries=function(e){if(!this._addedAotSummaries.has(e)){this._addedAotSummaries.add(e);for(var t=e(),n=0;n<t.length;n++){var r=t[n];"function"==typeof r?this._addAotSummaries(r):this._summaryResolver.addSummary({symbol:r.type.reference,metadata:null,type:r})}}},e.prototype.hasAotSummary=function(e){return!!this._summaryResolver.resolveSummary(e)},e.prototype._filterJitIdentifiers=function(e){var t=this;return e.map(function(e){return e.reference}).filter(function(e){return!t.hasAotSummary(e)})},e.prototype._compileModuleAndComponents=function(e,t){var n=this;return W(this._loadModules(e,t),function(){return n._compileComponents(e,null),n._compileModule(e)})},e.prototype._compileModuleAndAllComponents=function(e,t){var n=this;return W(this._loadModules(e,t),function(){var t=[];return n._compileComponents(e,t),{ngModuleFactory:n._compileModule(e),componentFactories:t}})},e.prototype._loadModules=function(e,t){var n=this,r=[],i=this._metadataResolver.getNgModuleMetadata(e);return this._filterJitIdentifiers(i.transitiveModule.modules).forEach(function(e){var i=n._metadataResolver.getNgModuleMetadata(e);n._filterJitIdentifiers(i.declaredDirectives).forEach(function(e){var o=n._metadataResolver.loadDirectiveMetadata(i.type.reference,e,t);o&&r.push(o)}),n._filterJitIdentifiers(i.declaredPipes).forEach(function(e){return n._metadataResolver.getOrLoadPipeMetadata(e)})}),z(r)},e.prototype._compileModule=function(e){var t=this._compiledNgModuleCache.get(e);if(!t){var n=this._metadataResolver.getNgModuleMetadata(e),r=this.getExtraNgModuleProviders(n.type.reference),i=$c(),o=this._ngModuleCompiler.compile(i,n,r);t=this._interpretOrJit(Je(n),i.statements)[o.ngModuleFactoryVar],this._compiledNgModuleCache.set(n.type.reference,t)}return t},e.prototype._compileComponents=function(e,t){var n=this,r=this._metadataResolver.getNgModuleMetadata(e),i=new Map,o=new Set,s=this._filterJitIdentifiers(r.transitiveModule.modules);s.forEach(function(e){var r=n._metadataResolver.getNgModuleMetadata(e);n._filterJitIdentifiers(r.declaredDirectives).forEach(function(e){i.set(e,r);var s=n._metadataResolver.getDirectiveMetadata(e);if(s.isComponent&&(o.add(n._createCompiledTemplate(s,r)),t)){var a=n._createCompiledHostTemplate(s.type.reference,r);o.add(a),t.push(s.componentFactory)}})}),s.forEach(function(e){var t=n._metadataResolver.getNgModuleMetadata(e);n._filterJitIdentifiers(t.declaredDirectives).forEach(function(e){var t=n._metadataResolver.getDirectiveMetadata(e);t.isComponent&&t.entryComponents.forEach(function(e){var t=i.get(e.componentType);o.add(n._createCompiledHostTemplate(e.componentType,t))})}),t.entryComponents.forEach(function(e){if(!n.hasAotSummary(e.componentType.reference)){var t=i.get(e.componentType);o.add(n._createCompiledHostTemplate(e.componentType,t))}})}),o.forEach(function(e){return n._compileTemplate(e)})},e.prototype.clearCacheFor=function(e){this._compiledNgModuleCache.delete(e),this._metadataResolver.clearCacheFor(e),this._compiledHostTemplateCache.delete(e),this._compiledTemplateCache.get(e)&&this._compiledTemplateCache.delete(e)},e.prototype.clearCache=function(){this._metadataResolver.clearCache(),this._compiledTemplateCache.clear(),this._compiledHostTemplateCache.clear(),this._compiledNgModuleCache.clear()},e.prototype._createCompiledHostTemplate=function(e,t){if(!t)throw new Error("Component "+Z(e)+" is not part of any NgModule or the module has not been imported into your module.");var n=this._compiledHostTemplateCache.get(e);if(!n){var r=this._metadataResolver.getDirectiveMetadata(e);Jc(r);var i=this._metadataResolver.getHostComponentMetadata(r,r.componentFactory.viewDefFactory);n=new Yc(!0,r.type,i,t,[r.type]),this._compiledHostTemplateCache.set(e,n)}return n},e.prototype._createCompiledTemplate=function(e,t){var n=this._compiledTemplateCache.get(e.type.reference);return n||(Jc(e),n=new Yc(!1,e.type,e,t,t.transitiveModule.directives),this._compiledTemplateCache.set(e.type.reference,n)),n},e.prototype._compileTemplate=function(e){var t=this;if(!e.isCompiled){var n=e.compMeta,r=new Map,i=$c(),o=this._styleCompiler.compileComponent(i,n);n.template.externalStylesheets.forEach(function(e){var i=t._styleCompiler.compileStyles($c(),n,e);r.set(e.moduleUrl,i)}),this._resolveStylesCompileResult(o,r),e.ngModule.transitiveModule.pipes.map(function(e){return t._metadataResolver.getPipeSummary(e.reference)});var s=this._parseTemplate(n,e.ngModule,e.directives),a=s.pipes,u=this._viewCompiler.compileComponent(i,n,s.template,Bs(o.stylesVar),a),p=this._interpretOrJit($e(e.ngModule.type,e.compMeta),i.statements);e.compiled(p[u.viewClassVar],p[u.rendererTypeVar])}},e.prototype._parseTemplate=function(e,t,n){var r=this,i=e.template.preserveWhitespaces,o=n.map(function(e){return r._metadataResolver.getDirectiveSummary(e.reference)}),s=t.transitiveModule.pipes.map(function(e){return r._metadataResolver.getPipeSummary(e.reference)});return this._templateParser.parse(e,e.template.htmlAst,o,s,t.schemas,Ge(t.type,e,e.template),i)},e.prototype._resolveStylesCompileResult=function(e,t){var n=this;e.dependencies.forEach(function(e,r){var i=t.get(e.moduleUrl),o=n._resolveAndEvalStylesCompileResult(i,t);e.setValue(o)})},e.prototype._resolveAndEvalStylesCompileResult=function(e,t){return this._resolveStylesCompileResult(e,t),this._interpretOrJit(Ye(e.meta,this._sharedStylesheetCount++),e.outputCtx.statements)[e.stylesVar]},e.prototype._interpretOrJit=function(e,t){return this._compilerConfig.useJit?function n(e,t,r,i){var o=new Qc(r),a=Ja.createRoot();return o.visitAllStatements(t,a),o.createReturnStmt(a),
  /**
   * @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(e,t,n,r){var i=t.toSource()+"\n//# sourceURL="+e,o=[],a=[];for(var u in n)o.push(u),a.push(n[u]);if(r){var p=(new(Function.bind.apply(Function,s([void 0],o.concat("return null;"))))).toString(),l=p.slice(0,p.indexOf("return null;")).split("\n").length-1;i+="\n"+t.toSourceMapGenerator(e,l).toJsComment()}return(new(Function.bind.apply(Function,s([void 0],o.concat(i))))).apply(void 0,s(a))}(e,a,o.getArgs(),i)}(e,t,this._reflector,this._compilerConfig.jitDevMode):
  /**
   * @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(e,t){var n=new qc(null,null,null,new Map);new Wc(t).visitAllStatements(e,n);var r={};return n.exports.forEach(function(e){r[e]=n.vars.get(e)}),r}(t,this._reflector)},e}(),Yc=function(){function e(e,t,n,r,i){this.isHost=e,this.compType=t,this.compMeta=n,this.ngModule=r,this.directives=i,this._viewClass=null,this.isCompiled=!1}return e.prototype.compiled=function(e,t){for(var n in this._viewClass=e,this.compMeta.componentViewType.setDelegate(e),t)this.compMeta.rendererType[n]=t[n];this.isCompiled=!0},e}();function Jc(e){if(!e.isComponent)throw new Error("Could not compile '"+Ne(e.type)+"' because it is not a component.")}function $c(){return{statements:[],genFilePath:"",importExpr:function(e){return Vs({name:Ne(e),moduleName:null,runtime:e})},constantPool:new al}}
  /**
   * @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,eh=function eh(){},th=function(){function e(e){void 0===e&&(e=null),this._packagePrefix=e}return e.prototype.resolve=function(e,t){var n=t;null!=e&&e.length>0&&(n=function r(e,t){var n=rh(encodeURI(t)),r=rh(e);if(null!=n[Zc.Scheme])return ih(n);n[Zc.Scheme]=r[Zc.Scheme];for(var i=Zc.Scheme;i<=Zc.Port;i++)null==n[i]&&(n[i]=r[i]);if("/"==n[Zc.Path][0])return ih(n);var o=r[Zc.Path];null==o&&(o="/");var s=o.lastIndexOf("/");return o=o.substring(0,s+1)+n[Zc.Path],n[Zc.Path]=o,ih(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
   */(e,n));var i=rh(n),o=this._packagePrefix;if(null!=o&&null!=i&&"package"==i[Zc.Scheme]){var s=i[Zc.Path];return(o=o.replace(/\/+$/,""))+"/"+s.replace(/^\/+/,"")}return n},e}(),nh=new RegExp("^(?:([^:/?#.]+):)?(?://(?:([^/?#]*)@)?([\\w\\d\\-\\u0100-\\uffff.%]*)(?::([0-9]+))?)?([^?#]+)?(?:\\?([^#]*))?(?:#(.*))?$");
  /**
   * @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 rh(e){return e.match(nh)}function ih(e){var t=e[Zc.Path];return t=null==t?"":function n(e){if("/"==e)return"/";for(var t="/"==e[0]?"/":"",n="/"===e[e.length-1]?"/":"",r=e.split("/"),i=[],o=0,s=0;s<r.length;s++){var a=r[s];switch(a){case"":case".":break;case"..":i.length>0?i.pop():o++;break;default:i.push(a)}}if(""==t){for(;o-- >0;)i.unshift("..");0===i.length&&i.push(".")}return t+i.join("/")+n}(t),e[Zc.Path]=t,function r(e,t,n,i,o,s,a){var u=[];return null!=e&&u.push(e+":"),null!=n&&(u.push("//"),null!=t&&u.push(t+"@"),u.push(n),null!=i&&u.push(":"+i)),null!=o&&u.push(o),null!=s&&u.push("?"+s),null!=a&&u.push("#"+a),u.join("")}(e[Zc.Scheme],e[Zc.UserInfo],e[Zc.Domain],e[Zc.Port],t,e[Zc.QueryData],e[Zc.Fragment])}!function(e){e[e.Scheme=1]="Scheme",e[e.UserInfo=2]="UserInfo",e[e.Domain=3]="Domain",e[e.Port=4]="Port",e[e.Path=5]="Path",e[e.QueryData=6]="QueryData",e[e.Fragment=7]="Fragment"}(Zc||(Zc={}));var oh=function(){function e(){}return e.prototype.get=function(e){return""},e}(),sh=function(){function e(e,t,n,r){this.host=e,this.staticSymbolResolver=t,this.messageBundle=n,this.metadataResolver=r}return e.prototype.extract=function(e){var t=this,n=pc(e,this.host,this.staticSymbolResolver,this.metadataResolver),r=n.files;return Promise.all(n.ngModules.map(function(e){return t.metadataResolver.loadNgModuleDirectiveAndPipeMetadata(e.type.reference,!1)})).then(function(){var e=[];if(r.forEach(function(n){var r=[];n.directives.forEach(function(e){var n=t.metadataResolver.getDirectiveMetadata(e);n&&n.isComponent&&r.push(n)}),r.forEach(function(r){var i=r.template.template,o=ct.fromArray(r.template.interpolation);e.push.apply(e,s(t.messageBundle.updateFromTemplate(i,n.fileName,o)))})}),e.length)throw new Error(e.map(function(e){return e.toString()}).join("\n"));return t.messageBundle})},e.create=function(t,n){var r=new _o,i=Bc(t),o=new Te,s=new Fc(t,o),u=new Gl(t,o,s),p=new Sc(s,u),l=new Se({defaultEncapsulation:a.Emulated,useJit:!1}),c=new Vt({get:function(e){return t.loadResource(e)}},i,r,l),h=new du,f=new ga(l,r,new ja(p),new qt(p),new iu(p),s,h,c,console,o,p),d=new cl(r,[],{},n);return{extractor:new e(t,u,d,f),staticReflector:p}},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
   */
  /**
   * @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
   */
  /**
   * @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
   */
  /**
   * @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
   */
  e.core=D,e.CompilerConfig=Se,e.preserveWhitespacesDefault=we,e.isLoweredSymbol=ca,e.createLoweredSymbol=function ah(e){return"ɵ"+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
   */,e.Identifiers=Co,e.JitCompiler=Gc,e.DirectiveResolver=qt,e.PipeResolver=iu,e.NgModuleResolver=ja,e.DEFAULT_INTERPOLATION_CONFIG=ht,e.InterpolationConfig=ct,e.NgModuleCompiler=Va,e.AssertNotNull=ns,e.BinaryOperatorExpr=ss,e.CastExpr=rs,e.ClassField=xs,e.ClassMethod=Ss,e.ClassStmt=Cs,e.CommaExpr=hs,e.CommentStmt=bs,e.ConditionalExpr=es,e.DeclareFunctionStmt=ys,e.DeclareVarStmt=ms,e.ExpressionStatement=gs,e.ExternalExpr=$o,e.ExternalReference=Zo,e.FunctionExpr=os,e.IfStmt=Ts,e.InstantiateExpr=Yo,e.InvokeFunctionExpr=Go,e.InvokeMethodExpr=Qo,e.JSDocCommentStmt=Ms,e.LiteralArrayExpr=ps,e.LiteralExpr=Jo,e.LiteralMapExpr=cs,e.NotExpr=ts,e.ReadKeyExpr=us,e.ReadPropExpr=as,e.ReadVarExpr=Ho,e.ReturnStatement=_s,e.ThrowStmt=As,e.TryCatchStmt=Ps,e.WriteKeyExpr=zo,e.WritePropExpr=Ko,e.WriteVarExpr=Wo,e.Statement=vs,e.collectExternalReferences=function uh(e){var t=new Rs;return t.visitAllStatements(e,null),t.externalReferences},e.EmitterVisitorContext=Ja,e.ViewCompiler=Kp,e.getParseErrors=function ph(e){return e[G]||[]},e.isSyntaxError=function lh(e){return e[Q]},e.syntaxError=X,e.Version=re,e.VERSION=ie,e.TextAst=oe,e.BoundTextAst=se,e.AttrAst=ae,e.BoundElementPropertyAst=ue,e.BoundEventAst=pe,e.ReferenceAst=le,e.VariableAst=ce,e.ElementAst=he,e.EmbeddedTemplateAst=fe,e.BoundDirectivePropertyAst=de,e.DirectiveAst=ve,e.ProviderAst=me,e.NgContentAst=ge,e.NullTemplateVisitor=_e,e.RecursiveTemplateAstVisitor=Ee,e.templateVisitAll=xe,e.sanitizeIdentifier=Me,e.identifierName=Ne,e.identifierModuleUrl=ke,e.viewClassName=Ie,e.rendererTypeName=Oe,e.hostViewClassName=Re,e.componentFactoryName=De,e.tokenName=Le,e.tokenReference=Fe,e.CompileStylesheetMetadata=Be,e.CompileTemplateMetadata=Ve,e.CompileDirectiveMetadata=je,e.CompilePipeMetadata=Ue,e.CompileShallowModuleMetadata=qe,e.CompileNgModuleMetadata=He,e.TransitiveCompileNgModuleMetadata=We,e.ProviderMeta=Ke,e.flatten=Xe,e.templateSourceUrl=Ge,e.sharedStylesheetJitUrl=Ye,e.ngModuleJitUrl=Je,e.templateJitUrl=$e,e.createAotUrlResolver=Bc,e.createAotCompiler=function ch(e,t,n){var r,i=t.translations||"",o=Bc(e),s=new Te,u=new Fc(e,s),p=new Gl(e,s,u),l=new Sc(u,p,[],[],n);r=t.enableIvy?new _o:new So(new _o,i,t.i18nFormat,t.missingTranslation,console);var c=new Se({defaultEncapsulation:a.Emulated,useJit:!1,missingTranslation:t.missingTranslation,preserveWhitespaces:t.preserveWhitespaces,strictInjectionParameters:t.strictInjectionParameters}),h=new Vt({get:function(t){return e.loadResource(t)}},o,r,c),f=new xr(new Nn),d=new du,v=new dp(c,l,f,d,r,console,[]),m=new ga(c,r,new ja(l),new qt(l),new iu(l),u,d,h,console,s,l,n),y=new Kp(l),g=new qp(t,l);return{compiler:new ic(c,t,e,l,m,v,new Wu(o),y,g,new Va(l),new Js(l,!!t.enableIvy),new nu,u,p),reflector:l}},e.AotCompiler=ic,e.analyzeNgModules=uc,e.analyzeAndValidateNgModules=pc,e.analyzeFile=cc,e.analyzeFileForInjectables=hc,e.mergeAnalyzedFiles=fc,e.GeneratedFile=Hl,e.toTypeScript=function hh(e,t){if(void 0===t&&(t=""),!e.stmts)throw new Error("Illegal state: No stmts present on GeneratedFile "+e.genFileUrl);return(new nu).emitStatements(e.genFileUrl,e.stmts,t)},e.formattedError=mc,e.isFormattedError=function fh(e){return!!e[vc]},e.StaticReflector=Sc,e.StaticSymbol=Ce,e.StaticSymbolCache=Te,e.ResolvedStaticSymbol=Ql,e.StaticSymbolResolver=Gl,e.unescapeIdentifier=Yl,e.unwrapResolvedMetadata=Jl,e.AotSummaryResolver=Fc,e.AstPath=Ze,e.SummaryResolver=Vc,e.JitSummaryResolver=jc,e.CompileReflector=eh,e.createUrlResolverWithoutPackagePrefix=function dh(){return new th},e.createOfflineCompileUrlResolver=function vh(){return new th(".")},e.UrlResolver=th,e.getUrlScheme=function mh(e){var t=rh(e);return t&&t[Zc.Scheme]||""},e.ResourceLoader=oh,e.ElementSchemaRegistry=au,e.Extractor=sh,e.I18NHtmlParser=So,e.MessageBundle=cl,e.Serializer=Wi,e.Xliff=to,e.Xliff2=oo,e.Xmb=po,e.Xtb=mo,e.DirectiveNormalizer=Vt,e.ParserError=Un,e.ParseSpan=qn,e.AST=Hn,e.Quote=Wn,e.EmptyExpr=zn,e.ImplicitReceiver=Kn,e.Chain=Xn,e.Conditional=Qn,e.PropertyRead=Gn,e.PropertyWrite=Yn,e.SafePropertyRead=Jn,e.KeyedRead=$n,e.KeyedWrite=Zn,e.BindingPipe=er,e.LiteralPrimitive=tr,e.LiteralArray=nr,e.LiteralMap=rr,e.Interpolation=ir,e.Binary=or,e.PrefixNot=sr,e.NonNullAssert=ar,e.MethodCall=ur,e.SafeMethodCall=pr,e.FunctionCall=lr,e.ASTWithSource=cr,e.TemplateBinding=hr,e.NullAstVisitor=fr,e.RecursiveAstVisitor=dr,e.AstTransformer=vr,e.AstMemoryEfficientTransformer=mr,e.visitAstChildren=function yh(e,t,n){function r(e){t.visit&&t.visit(e,n)||e.visit(t,n)}function i(e){e.forEach(r)}e.visit({visitBinary:function(e){r(e.left),r(e.right)},visitChain:function(e){i(e.expressions)},visitConditional:function(e){r(e.condition),r(e.trueExp),r(e.falseExp)},visitFunctionCall:function(e){e.target&&r(e.target),i(e.args)},visitImplicitReceiver:function(e){},visitInterpolation:function(e){i(e.expressions)},visitKeyedRead:function(e){r(e.obj),r(e.key)},visitKeyedWrite:function(e){r(e.obj),r(e.key),r(e.obj)},visitLiteralArray:function(e){i(e.expressions)},visitLiteralMap:function(e){},visitLiteralPrimitive:function(e){},visitMethodCall:function(e){r(e.receiver),i(e.args)},visitPipe:function(e){r(e.exp),i(e.args)},visitPrefixNot:function(e){r(e.expression)},visitNonNullAssert:function(e){r(e.expression)},visitPropertyRead:function(e){r(e.receiver)},visitPropertyWrite:function(e){r(e.receiver),r(e.value)},visitQuote:function(e){},visitSafeMethodCall:function(e){r(e.receiver),i(e.args)},visitSafePropertyRead:function(e){r(e.receiver)}})}
  /**
   * @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
   */,e.Lexer=Nn,e.Token=Pn,e.EOF=On,e.isIdentifier=Ln,e.isQuote=Vn,e.SplitInterpolation=yr,e.TemplateBindingParseResult=gr,e.Parser=xr,e._ParseAST=Sr,e.ERROR_COMPONENT_TYPE="ngComponentType",e.CompileMetadataResolver=ga,e.Text=et,e.Expansion=tt,e.ExpansionCase=nt,e.Attribute=rt,e.Element=it,e.Comment=ot,e.visitAll=st,e.RecursiveVisitor=at,e.findNode=function gh(e,t){var r=[];return st(new(function(e){function i(){return null!==e&&e.apply(this,arguments)||this}return n(i,e),i.prototype.visit=function(e,n){var i=function e(t){var n=t.sourceSpan.start.offset,r=t.sourceSpan.end.offset;return t instanceof it&&(t.endSourceSpan?r=t.endSourceSpan.end.offset:t.children&&t.children.length&&(r=e(t.children[t.children.length-1]).end)),{start:n,end:r}}(e);if(!(i.start<=t&&t<i.end))return!0;r.push(e)},i}(at)),e),new Ze(r,t)},e.HtmlParser=_o,e.ParseTreeResult=zr,e.TreeError=Wr,e.HtmlTagDefinition=wi,e.getHtmlTagDefinition=bi,e.splitNsName=_t,e.isNgContainer=Et,e.isNgContent=xt,e.isNgTemplate=St,e.getNsPrefix=wt,e.mergeNsAndName=Ct,e.NAMED_ENTITIES=Tt,e.NGSP_UNICODE=bt,e.debugOutputAstAsTypeScript=tu,e.TypeScriptEmitter=nu,e.ParseLocation=Cr,e.ParseSourceFile=Tr,e.ParseSourceSpan=br,e.ParseError=Pr,e.typeSourceSpan=Ar,e.DomElementSchemaRegistry=du,e.CssSelector=da,e.SelectorMatcher=va,e.SelectorListContext=ma,e.SelectorContext=ya,e.StylesCompileDependency=qu,e.CompiledStylesheet=Hu,e.StyleCompiler=Wu,e.TemplateParseError=hp,e.TemplateParseResult=fp,e.TemplateParser=dp,e.splitClasses=gp,e.createElementCssSelector=Ep,e.removeSummaryDuplicates=Cp,Object.defineProperty(e,"__esModule",{value:!0})});