blob: 90bd28b31925d789642f04e45dcc5e339897bf93 [file] [log] [blame]
/**
* @license Angular v8.1.1
* (c) 2010-2019 Google LLC. 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=e||self).ng=e.ng||{},e.ng.compiler={}))}(this,function(e){"use strict";var t=function(e,n){return(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])})(e,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,i=function(){return(i=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}).apply(this,arguments)};function o(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 s(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 a(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(s(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
*/function u(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 p(e){return"ng-container"===u(e)[1]}function l(e){return"ng-content"===u(e)[1]}function c(e){return"ng-template"===u(e)[1]}function h(e){return null===e?null:u(e)[0]}function f(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
*/
r=e.TagContentType||(e.TagContentType={}))[r.RAW_TEXT=0]="RAW_TEXT",r[r.ESCAPABLE_RAW_TEXT=1]="ESCAPABLE_RAW_TEXT",r[r.PARSABLE_DATA=2]="PARSABLE_DATA";var d={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:"‌"},v="";d.ngsp=v;
/**
* @license
* Copyright Google Inc. All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
var m,y,g=function(){function t(t){var n=this,r=void 0===t?{}:t,i=r.closedByChildren,o=r.implicitNamespacePrefix,s=r.contentType,a=void 0===s?e.TagContentType.PARSABLE_DATA:s,u=r.closedByParent,p=void 0!==u&&u,l=r.isVoid,c=void 0!==l&&l,h=r.ignoreFirstLf,f=void 0!==h&&h;this.closedByChildren={},this.closedByParent=!1,this.canSelfClose=!1,i&&i.length>0&&i.forEach(function(e){return n.closedByChildren[e]=!0}),this.isVoid=c,this.closedByParent=p||c,this.implicitNamespacePrefix=o||null,this.contentType=a,this.ignoreFirstLf=f}return t.prototype.isClosedByChild=function(e){return this.isVoid||e.toLowerCase()in this.closedByChildren},t}();function _(t){return y||(m=new g,y={base:new g({isVoid:!0}),meta:new g({isVoid:!0}),area:new g({isVoid:!0}),embed:new g({isVoid:!0}),link:new g({isVoid:!0}),img:new g({isVoid:!0}),input:new g({isVoid:!0}),param:new g({isVoid:!0}),hr:new g({isVoid:!0}),br:new g({isVoid:!0}),source:new g({isVoid:!0}),track:new g({isVoid:!0}),wbr:new g({isVoid:!0}),p:new g({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 g({closedByChildren:["tbody","tfoot"]}),tbody:new g({closedByChildren:["tbody","tfoot"],closedByParent:!0}),tfoot:new g({closedByChildren:["tbody"],closedByParent:!0}),tr:new g({closedByChildren:["tr"],closedByParent:!0}),td:new g({closedByChildren:["td","th"],closedByParent:!0}),th:new g({closedByChildren:["td","th"],closedByParent:!0}),col:new g({isVoid:!0}),svg:new g({implicitNamespacePrefix:"svg"}),math:new g({implicitNamespacePrefix:"math"}),li:new g({closedByChildren:["li"],closedByParent:!0}),dt:new g({closedByChildren:["dt","dd"]}),dd:new g({closedByChildren:["dt","dd"],closedByParent:!0}),rb:new g({closedByChildren:["rb","rt","rtc","rp"],closedByParent:!0}),rt:new g({closedByChildren:["rb","rt","rtc","rp"],closedByParent:!0}),rtc:new g({closedByChildren:["rb","rtc","rp"],closedByParent:!0}),rp:new g({closedByChildren:["rb","rt","rtc","rp"],closedByParent:!0}),optgroup:new g({closedByChildren:["optgroup"],closedByParent:!0}),option:new g({closedByChildren:["option","optgroup"],closedByParent:!0}),pre:new g({ignoreFirstLf:!0}),listing:new g({ignoreFirstLf:!0}),style:new g({contentType:e.TagContentType.RAW_TEXT}),script:new g({contentType:e.TagContentType.RAW_TEXT}),title:new g({contentType:e.TagContentType.ESCAPABLE_RAW_TEXT}),textarea:new g({contentType:e.TagContentType.ESCAPABLE_RAW_TEXT,ignoreFirstLf:!0})}),y[t.toLowerCase()]||m}
/**
* @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 E,S,x=new RegExp("(\\:not\\()|([-\\w]+)|(?:\\.([-\\w]+))|(?:\\[([-.\\w*]+)(?:=([\"']?)([^\\]\"']*)\\5)?\\])|(\\))|(\\s*,\\s*)","g"),w=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(x.lastIndex=0;n=x.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 _(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}(),C=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 b(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 T(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}(),b=function b(e){this.selectors=e,this.alreadyMatched=!1},T=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=!C.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}(),N=J("Inject",function(e){return{token:e}}),P=J("InjectionToken",function(e){return{_desc:e,ngInjectableDef:void 0}}),M=J("Attribute",function(e){return{attributeName:e}}),A=J("ContentChildren",function(e,t){return void 0===t&&(t={}),i({selector:e,first:!1,isViewQuery:!1,descendants:!1},t)}),I=J("ContentChild",function(e,t){return void 0===t&&(t={}),i({selector:e,first:!0,isViewQuery:!1,descendants:!0},t)}),k=J("ViewChildren",function(e,t){return void 0===t&&(t={}),i({selector:e,first:!1,isViewQuery:!0,descendants:!0},t)}),R=J("ViewChild",function(e,t){return i({selector:e,first:!0,isViewQuery:!0,descendants:!0},t)}),O=J("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",e[e.ShadowDom=3]="ShadowDom"}(E||(E={})),function(e){e[e.OnPush=0]="OnPush",e[e.Default=1]="Default"}(S||(S={}));var D,F,L=J("Component",function(e){return void 0===e&&(e={}),i({changeDetection:S.Default},e)}),B=J("Pipe",function(e){return i({pure:!0},e)}),V=J("Input",function(e){return{bindingPropertyName:e}}),j=J("Output",function(e){return{bindingPropertyName:e}}),U=J("HostBinding",function(e){return{hostPropertyName:e}}),H=J("HostListener",function(e,t){return{eventName:e,args:t}}),q=J("NgModule",function(e){return e}),W=J("Injectable",function(e){return void 0===e&&(e={}),e}),z={name:"custom-elements"},K={name:"no-errors-schema"},Q=J("Optional"),X=J("Self"),G=J("SkipSelf"),$=J("Host"),Y=Function;function J(e,t){function n(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];var o=t?t.apply(void 0,a(n)):{};return i({ngMetadataName:e},o)}return n.isTypeOf=function(t){return t&&t.ngMetadataName===e},n.ngMetadataName=e,n}function Z(e){var t=function n(e){var t=e.classNames&&e.classNames.length?a([8],e.classNames):[];return a([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?a([8],e.classNames):[];return e.element?a([5,e.element],e.attrs,t):e.attrs.length?a([3],e.attrs,t):e.classNames&&e.classNames.length?a([9],e.classNames):[]}(e)}):[];return t.concat.apply(t,a(r))}function ee(e){return e?w.parse(e).map(Z):[]}!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"}(D||(D={})),function(e){e[e.Error=0]="Error",e[e.Warning=1]="Warning",e[e.Ignore=2]="Ignore"}(F||(F={}));var te,ne=Object.freeze({createInject:N,createInjectionToken:P,createAttribute:M,createContentChildren:A,createContentChild:I,createViewChildren:k,createViewChild:R,createDirective:O,get ViewEncapsulation(){return E},get ChangeDetectionStrategy(){return S},createComponent:L,createPipe:B,createInput:V,createOutput:j,createHostBinding:U,createHostListener:H,createNgModule:q,createInjectable:W,CUSTOM_ELEMENTS_SCHEMA:z,NO_ERRORS_SCHEMA:K,createOptional:Q,createSelf:X,createSkipSelf:G,createHost:$,Type:Y,get SecurityContext(){return D},get MissingTranslationStrategy(){return F},parseSelectorToR3Selector:ee});
/**
* @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"}(te||(te={}));var re,ie=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}();(re=e.BuiltinTypeName||(e.BuiltinTypeName={}))[re.Dynamic=0]="Dynamic",re[re.Bool=1]="Bool",re[re.String=2]="String",re[re.Int=3]="Int",re[re.Number=4]="Number",re[re.Function=5]="Function",re[re.Inferred=6]="Inferred",re[re.None=7]="None";var oe,se=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}(ie),ae=function(e){function t(t,n,r){void 0===n&&(n=null),void 0===r&&(r=null);var i=e.call(this,n)||this;return i.value=t,i.typeParams=r,i}return n(t,e),t.prototype.visitType=function(e,t){return e.visitExpressionType(this,t)},t}(ie),ue=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}(ie),pe=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}(ie),le=new se(e.BuiltinTypeName.Dynamic),ce=new se(e.BuiltinTypeName.Inferred),he=new se(e.BuiltinTypeName.Bool),fe=(new se(e.BuiltinTypeName.Int),new se(e.BuiltinTypeName.Number)),de=(new se(e.BuiltinTypeName.String),new se(e.BuiltinTypeName.Function),new se(e.BuiltinTypeName.None));function ve(e,t){return null==e||null==t?e==t:e.isEquivalent(t)}function me(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}(oe=e.BinaryOperator||(e.BinaryOperator={}))[oe.Equals=0]="Equals",oe[oe.NotEquals=1]="NotEquals",oe[oe.Identical=2]="Identical",oe[oe.NotIdentical=3]="NotIdentical",oe[oe.Minus=4]="Minus",oe[oe.Plus=5]="Plus",oe[oe.Divide=6]="Divide",oe[oe.Multiply=7]="Multiply",oe[oe.Modulo=8]="Modulo",oe[oe.And=9]="And",oe[oe.Or=10]="Or",oe[oe.BitwiseAnd=11]="BitwiseAnd",oe[oe.Lower=12]="Lower",oe[oe.LowerEquals=13]="LowerEquals",oe[oe.Bigger=14]="Bigger",oe[oe.BiggerEquals=15]="BiggerEquals";var ye,ge=function(){function t(e,t){this.type=e||null,this.sourceSpan=t||null}return t.prototype.prop=function(e,t){return new je(this,e,null,t)},t.prototype.key=function(e,t,n){return new Ue(this,e,t,n)},t.prototype.callMethod=function(e,t,n){return new Ne(this,e,t,null,n)},t.prototype.callFn=function(e,t){return new Pe(this,e,null,t)},t.prototype.instantiate=function(e,t,n){return new Me(this,e,t,n)},t.prototype.conditional=function(e,t,n){return void 0===t&&(t=null),new Re(this,e,t,null,n)},t.prototype.equals=function(t,n){return new Ve(e.BinaryOperator.Equals,this,t,null,n)},t.prototype.notEquals=function(t,n){return new Ve(e.BinaryOperator.NotEquals,this,t,null,n)},t.prototype.identical=function(t,n){return new Ve(e.BinaryOperator.Identical,this,t,null,n)},t.prototype.notIdentical=function(t,n){return new Ve(e.BinaryOperator.NotIdentical,this,t,null,n)},t.prototype.minus=function(t,n){return new Ve(e.BinaryOperator.Minus,this,t,null,n)},t.prototype.plus=function(t,n){return new Ve(e.BinaryOperator.Plus,this,t,null,n)},t.prototype.divide=function(t,n){return new Ve(e.BinaryOperator.Divide,this,t,null,n)},t.prototype.multiply=function(t,n){return new Ve(e.BinaryOperator.Multiply,this,t,null,n)},t.prototype.modulo=function(t,n){return new Ve(e.BinaryOperator.Modulo,this,t,null,n)},t.prototype.and=function(t,n){return new Ve(e.BinaryOperator.And,this,t,null,n)},t.prototype.bitwiseAnd=function(t,n,r){return void 0===r&&(r=!0),new Ve(e.BinaryOperator.BitwiseAnd,this,t,null,n,r)},t.prototype.or=function(t,n){return new Ve(e.BinaryOperator.Or,this,t,null,n)},t.prototype.lower=function(t,n){return new Ve(e.BinaryOperator.Lower,this,t,null,n)},t.prototype.lowerEquals=function(t,n){return new Ve(e.BinaryOperator.LowerEquals,this,t,null,n)},t.prototype.bigger=function(t,n){return new Ve(e.BinaryOperator.Bigger,this,t,null,n)},t.prototype.biggerEquals=function(t,n){return new Ve(e.BinaryOperator.BiggerEquals,this,t,null,n)},t.prototype.isBlank=function(e){return this.equals(Qe,e)},t.prototype.cast=function(e,t){return new Fe(this,e,t)},t.prototype.toStmt=function(){return new Ye(this,null)},t}();(ye=e.BuiltinVar||(e.BuiltinVar={}))[ye.This=0]="This",ye[ye.Super=1]="Super",ye[ye.CatchError=2]="CatchError",ye[ye.CatchStack=3]="CatchStack";var _e,Ee=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 we(this.name,e,null,this.sourceSpan)},t}(ge),Se=function(e){function t(t,n,r){var i=e.call(this,n,r)||this;return i.expr=t,i}return n(t,e),t.prototype.visitExpression=function(e,t){return e.visitTypeofExpr(this,t)},t.prototype.isEquivalent=function(e){return e instanceof t&&e.expr.isEquivalent(this.expr)},t.prototype.isConstant=function(){return this.expr.isConstant()},t}(ge),xe=function(e){function t(t,n,r){var i=e.call(this,n,r)||this;return i.node=t,i}return n(t,e),t.prototype.isEquivalent=function(e){return e instanceof t&&this.node===e.node},t.prototype.isConstant=function(){return!1},t.prototype.visitExpression=function(e,t){return e.visitWrappedNodeExpr(this,t)},t}(ge),we=function(t){function r(e,n,r,i){var o=t.call(this,r||n.type,i)||this;return o.name=e,o.value=n,o}return n(r,t),r.prototype.isEquivalent=function(e){return e instanceof r&&this.name===e.name&&this.value.isEquivalent(e.value)},r.prototype.isConstant=function(){return!1},r.prototype.visitExpression=function(e,t){return e.visitWriteVarExpr(this,t)},r.prototype.toDeclStmt=function(e,t){return new Ge(this.name,this.value,e,t,this.sourceSpan)},r.prototype.toConstDecl=function(){return this.toDeclStmt(ce,[e.StmtModifier.Final])},r}(ge),Ce=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}(ge),be=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}(ge);(_e=e.BuiltinMethod||(e.BuiltinMethod={}))[_e.ConcatArray=0]="ConcatArray",_e[_e.SubscribeObservable=1]="SubscribeObservable",_e[_e.Bind=2]="Bind";var Te,Ne=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&&me(this.args,e.args)},t.prototype.isConstant=function(){return!1},t.prototype.visitExpression=function(e,t){return e.visitInvokeMethodExpr(this,t)},t}(ge),Pe=function(e){function t(t,n,r,i,o){void 0===o&&(o=!1);var s=e.call(this,r,i)||this;return s.fn=t,s.args=n,s.pure=o,s}return n(t,e),t.prototype.isEquivalent=function(e){return e instanceof t&&this.fn.isEquivalent(e.fn)&&me(this.args,e.args)&&this.pure===e.pure},t.prototype.isConstant=function(){return!1},t.prototype.visitExpression=function(e,t){return e.visitInvokeFunctionExpr(this,t)},t}(ge),Me=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)&&me(this.args,e.args)},t.prototype.isConstant=function(){return!1},t.prototype.visitExpression=function(e,t){return e.visitInstantiateExpr(this,t)},t}(ge),Ae=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}(ge),Ie=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}(ge),ke=function ke(e,t,n){this.moduleName=e,this.name=t,this.runtime=n},Re=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)&&ve(this.falseCase,e.falseCase)},t.prototype.isConstant=function(){return!1},t.prototype.visitExpression=function(e,t){return e.visitConditionalExpr(this,t)},t}(ge),Oe=function(e){function t(t,n){var r=e.call(this,he,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}(ge),De=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}(ge),Fe=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}(ge),Le=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}(),Be=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&&me(this.params,e.params)&&me(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 $e(e,this.params,this.statements,this.type,t,this.sourceSpan)},t}(ge),Ve=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}(ge),je=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 be(this.receiver,this.name,e,null,this.sourceSpan)},t}(ge),Ue=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 Ce(this.receiver,this.index,e,null,this.sourceSpan)},t}(ge),He=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&&me(this.entries,e.entries)},t.prototype.visitExpression=function(e,t){return e.visitLiteralArrayExpr(this,t)},t}(ge),qe=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}(),We=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&&me(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}(ge),ze=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&&me(this.parts,e.parts)},t.prototype.isConstant=function(){return!1},t.prototype.visitExpression=function(e,t){return e.visitCommaExpr(this,t)},t}(ge),Ke=(new Ee(e.BuiltinVar.This,null,null),new Ee(e.BuiltinVar.Super,null,null),new Ee(e.BuiltinVar.CatchError,null,null),new Ee(e.BuiltinVar.CatchStack,null,null),new Ae(null,null,null)),Qe=new Ae(null,ce,null);(Te=e.StmtModifier||(e.StmtModifier={}))[Te.Final=0]="Final",Te[Te.Private=1]="Private",Te[Te.Exported=2]="Exported",Te[Te.Static=3]="Static";var Xe=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}(),Ge=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}(Xe),$e=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&&me(this.params,e.params)&&me(this.statements,e.statements)},t.prototype.visitStatement=function(e,t){return e.visitDeclareFunctionStmt(this,t)},t}(Xe),Ye=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}(Xe),Je=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}(Xe),Ze=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}(),et=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}(Ze),tt=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&&me(this.body,e.body)},t}(Ze),nt=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&&me(this.body,e.body)},t}(Ze),rt=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&&ve(this.parent,e.parent)&&me(this.fields,e.fields)&&me(this.getters,e.getters)&&this.constructorMethod.isEquivalent(e.constructorMethod)&&me(this.methods,e.methods)},t.prototype.visitStatement=function(e,t){return e.visitDeclareClassStmt(this,t)},t}(Xe),it=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)&&me(this.trueCase,e.trueCase)&&me(this.falseCase,e.falseCase)},t.prototype.visitStatement=function(e,t){return e.visitIfStmt(this,t)},t}(Xe),ot=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}(Xe),st=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){var n,r;if(0===t.length)return"";var i="*\n";try{for(var s=o(t),a=s.next();!a.done;a=s.next())i+=" *",i+=Tt(a.value).replace(/\n/g,"\n * "),i+="\n"}catch(e){n={error:e}}finally{try{a&&!a.done&&(r=s.return)&&r.call(s)}finally{if(n)throw n.error}}return 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
*/(this.tags)},t}(Xe),at=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&&me(this.bodyStmts,e.bodyStmts)&&me(this.catchStmts,e.catchStmts)},t.prototype.visitStatement=function(e,t){return e.visitTryCatchStmt(this,t)},t}(Xe),ut=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 at&&this.error.isEquivalent(e.error)},t.prototype.visitStatement=function(e,t){return e.visitThrowStmt(this,t)},t}(Xe),pt=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.visitWrappedNodeExpr=function(e,t){return this.transformExpr(e,t)},e.prototype.visitTypeofExpr=function(e,t){return this.transformExpr(new Se(e.expr.visitExpression(this,t),e.type,e.sourceSpan),t)},e.prototype.visitWriteVarExpr=function(e,t){return this.transformExpr(new we(e.name,e.value.visitExpression(this,t),e.type,e.sourceSpan),t)},e.prototype.visitWriteKeyExpr=function(e,t){return this.transformExpr(new Ce(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 be(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 Ne(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 Pe(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 Me(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 Re(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 Oe(e.condition.visitExpression(this,t),e.sourceSpan),t)},e.prototype.visitAssertNotNullExpr=function(e,t){return this.transformExpr(new De(e.condition.visitExpression(this,t),e.sourceSpan),t)},e.prototype.visitCastExpr=function(e,t){return this.transformExpr(new Fe(e.value.visitExpression(this,t),e.type,e.sourceSpan),t)},e.prototype.visitFunctionExpr=function(e,t){return this.transformExpr(new Be(e.params,this.visitAllStatements(e.statements,t),e.type,e.sourceSpan),t)},e.prototype.visitBinaryOperatorExpr=function(e,t){return this.transformExpr(new Ve(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 je(e.receiver.visitExpression(this,t),e.name,e.type,e.sourceSpan),t)},e.prototype.visitReadKeyExpr=function(e,t){return this.transformExpr(new Ue(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 He(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 qe(e.key,e.value.visitExpression(n,t),e.quoted)}),i=new pe(e.valueType,null);return this.transformExpr(new We(r,i,e.sourceSpan),t)},e.prototype.visitCommaExpr=function(e,t){return this.transformExpr(new ze(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 Ge(e.name,n,e.type,e.modifiers,e.sourceSpan),t)},e.prototype.visitDeclareFunctionStmt=function(e,t){return this.transformStmt(new $e(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 Ye(e.expr.visitExpression(this,t),e.sourceSpan),t)},e.prototype.visitReturnStmt=function(e,t){return this.transformStmt(new Je(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 nt(e.name,n.visitAllStatements(e.body,t),e.type,e.modifiers)}),o=e.constructorMethod&&new tt(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 tt(e.name,e.params,n.visitAllStatements(e.body,t),e.type,e.modifiers)});return this.transformStmt(new rt(e.name,r,e.fields,i,o,s,e.modifiers,e.sourceSpan),t)},e.prototype.visitIfStmt=function(e,t){return this.transformStmt(new it(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 at(this.visitAllStatements(e.bodyStmts,t),this.visitAllStatements(e.catchStmts,t),e.sourceSpan),t)},e.prototype.visitThrowStmt=function(e,t){return this.transformStmt(new ut(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}(),lt=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){var n=this;return e.value.visitExpression(this,t),null!==e.typeParams&&e.typeParams.forEach(function(e){return n.visitType(e,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.visitWrappedNodeExpr=function(e,t){return e},e.prototype.visitTypeofExpr=function(e,t){return this.visitExpression(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 ct(e){var t=new ht;return t.visitAllStatements(e,null),t.varNames}var ht=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}(lt),ft=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}(lt);function dt(e,t){if(!t)return e;var n=new mt(t);return e.visitStatement(n,null)}function vt(e,t){if(!t)return e;var n=new mt(t);return e.visitExpression(n,null)}var mt=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}(pt);function yt(e,t,n){return new Ee(e,t,n)}function gt(e,t,n){return void 0===t&&(t=null),new Ie(e,null,t,n)}function _t(e,t,n){return void 0===t&&(t=null),void 0===n&&(n=null),null!=e?Et(gt(e,t,null),n):null}function Et(e,t,n){return void 0===t&&(t=null),void 0===n&&(n=null),new ae(e,t,n)}function St(e,t,n){return new He(e,t,n)}function xt(e,t){return void 0===t&&(t=null),new We(e.map(function(e){return new qe(e.key,e.value,e.quoted)}),t,null)}function wt(e,t,n,r,i){return new Be(e,t,n,r,i)}function Ct(e,t,n){return new it(e,t,n)}function bt(e,t,n){return new Ae(e,t,n)}function Tt(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}var Nt=/-+([a-z0-9])/g;function Pt(e,t){return Mt(e,":",t)}function Mt(e,t,n){var r=e.indexOf(t);return-1==r?n:[e.slice(0,r).trim(),e.slice(r+1).trim()]}function At(e,t,n){return Array.isArray(e)?t.visitArray(e,n):function r(e){return"object"==typeof e&&null!==e&&Object.getPrototypeOf(e)===Ht}(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 It(e){return null!=e}function kt(e){return void 0===e?null:e}var Rt=function(){function e(){}return e.prototype.visitArray=function(e,t){var n=this;return e.map(function(e){return At(e,n,t)})},e.prototype.visitStringMap=function(e,t){var n=this,r={};return Object.keys(e).forEach(function(i){r[i]=At(e[i],n,t)}),r},e.prototype.visitPrimitive=function(e,t){return e},e.prototype.visitOther=function(e,t){return e},e}(),Ot=function(e){if(Kt(e))throw new Error("Illegal state: value cannot be a promise");return e},Dt=function(e,t){return Kt(e)?e.then(t):t(e)},Ft=function(e){return e.some(Kt)?Promise.all(e):e};function Lt(e){throw new Error("Internal Error: "+e)}function Bt(e,t){var n=Error(e);return n[Vt]=!0,t&&(n[jt]=t),n}var Vt="ngSyntaxError",jt="ngParseErrors";function Ut(e){return e.replace(/([.*+?^=!:${}()|[\]\/\\])/g,"\\$1")}var Ht=Object.getPrototypeOf({});function qt(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 Wt(e){if("string"==typeof e)return e;if(e instanceof Array)return"["+e.map(Wt).join(", ")+"]";if(null==e)return""+e;if(e.overriddenName)return""+e.overriddenName;if(e.name)return""+e.name;if(!e.toString)return"object";var t=e.toString();if(null==t)return""+t;var n=t.indexOf("\n");return-1===n?t:t.substring(0,n)}function zt(e){return"function"==typeof e&&e.hasOwnProperty("__forward_ref__")?e():e}function Kt(e){return!!e&&"function"==typeof e.then}var Qt=function Qt(e){this.full=e;var t=e.split(".");this.major=t[0],this.minor=t[1],this.patch=t.slice(2).join(".")},Xt="undefined"!=typeof window&&window,Gt="undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self,$t="undefined"!=typeof global&&global||Xt||Gt,Yt={},Jt=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===Yt?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}(ge),Zt=function(){function t(){this.statements=[],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 Ae||t instanceof Jt)return t;var r=this.keyOf(t),i=this.literals.get(r),o=!1;if(i||(i=new Jt(t),this.literals.set(r,i),o=!0),!o&&!i.shared||o&&n){var s=this.freshName();this.statements.push(yt(s).set(t).toDeclStmt(ce,[e.StmtModifier.Final])),i.fixup(yt(s))}return i},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 Jt(r.importExpr(t).prop(u)),o.set(t,s),a=!0}if(!a&&!s.shared||a&&i){var p=this.freshName();this.statements.push(yt(p).set(s.resolved).toDeclStmt(ce,[e.StmtModifier.Final])),s.fixup(yt(p))}return s},t.prototype.getLiteralFactory=function(e){if(e instanceof He){var t=e.entries.map(function(e){return e.isConstant()?e:bt(null)}),n=this.keyOf(St(t));return this._getLiteralFactory(n,e.entries,function(e){return St(e)})}var r=xt(e.entries.map(function(e){return{key:e.key,value:e.value.isConstant()?e.value:bt(null),quoted:e.quoted}}));return n=this.keyOf(r),this._getLiteralFactory(n,e.entries.map(function(e){return e.value}),function(t){return xt(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):yt("a"+t)}),u=wt(a.filter(nn).map(function(e){return new Le(e.name,le)}),[new Je(r(a))],ce),p=this.freshName();this.statements.push(yt(p).set(u).toDeclStmt(ce,[e.StmtModifier.Final])),o=yt(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 Lt("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 Lt("Unknown definition kind "+e),"<unknown>"},t.prototype.freshName=function(){return this.uniqueName("_c")},t.prototype.keyOf=function(e){return e.visitExpression(new en,Yt)},t}(),en=function(){function e(){this.visitWrappedNodeExpr=tn,this.visitWriteVarExpr=tn,this.visitWriteKeyExpr=tn,this.visitWritePropExpr=tn,this.visitInvokeMethodExpr=tn,this.visitInvokeFunctionExpr=tn,this.visitInstantiateExpr=tn,this.visitConditionalExpr=tn,this.visitNotExpr=tn,this.visitAssertNotNullExpr=tn,this.visitCastExpr=tn,this.visitFunctionExpr=tn,this.visitBinaryOperatorExpr=tn,this.visitReadPropExpr=tn,this.visitReadKeyExpr=tn,this.visitCommaExpr=tn}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.prototype.visitReadVarExpr=function(e){return"VAR:"+e.name},e.prototype.visitTypeofExpr=function(e,t){return"TYPEOF:"+e.expr.visitExpression(this,t)},e}();function tn(e){throw new Error("Invalid state: Visitor "+this.constructor.name+" doesn't handle "+e.constructor.name)}function nn(e){return e instanceof Ee}
/**
* @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 rn="@angular/core",on=function(){function e(){}return e.ANALYZE_FOR_ENTRY_COMPONENTS={name:"ANALYZE_FOR_ENTRY_COMPONENTS",moduleName:rn},e.ElementRef={name:"ElementRef",moduleName:rn},e.NgModuleRef={name:"NgModuleRef",moduleName:rn},e.ViewContainerRef={name:"ViewContainerRef",moduleName:rn},e.ChangeDetectorRef={name:"ChangeDetectorRef",moduleName:rn},e.QueryList={name:"QueryList",moduleName:rn},e.TemplateRef={name:"TemplateRef",moduleName:rn},e.Renderer2={name:"Renderer2",moduleName:rn},e.CodegenComponentFactoryResolver={name:"ɵCodegenComponentFactoryResolver",moduleName:rn},e.ComponentFactoryResolver={name:"ComponentFactoryResolver",moduleName:rn},e.ComponentFactory={name:"ComponentFactory",moduleName:rn},e.ComponentRef={name:"ComponentRef",moduleName:rn},e.NgModuleFactory={name:"NgModuleFactory",moduleName:rn},e.createModuleFactory={name:"ɵcmf",moduleName:rn},e.moduleDef={name:"ɵmod",moduleName:rn},e.moduleProviderDef={name:"ɵmpd",moduleName:rn},e.RegisterModuleFactoryFn={name:"ɵregisterModuleFactory",moduleName:rn},e.inject={name:"ɵɵinject",moduleName:rn},e.INJECTOR={name:"INJECTOR",moduleName:rn},e.Injector={name:"Injector",moduleName:rn},e.ɵɵdefineInjectable={name:"ɵɵdefineInjectable",moduleName:rn},e.InjectableDef={name:"ɵɵInjectableDef",moduleName:rn},e.ViewEncapsulation={name:"ViewEncapsulation",moduleName:rn},e.ChangeDetectionStrategy={name:"ChangeDetectionStrategy",moduleName:rn},e.SecurityContext={name:"SecurityContext",moduleName:rn},e.LOCALE_ID={name:"LOCALE_ID",moduleName:rn},e.TRANSLATIONS_FORMAT={name:"TRANSLATIONS_FORMAT",moduleName:rn},e.inlineInterpolate={name:"ɵinlineInterpolate",moduleName:rn},e.interpolate={name:"ɵinterpolate",moduleName:rn},e.EMPTY_ARRAY={name:"ɵEMPTY_ARRAY",moduleName:rn},e.EMPTY_MAP={name:"ɵEMPTY_MAP",moduleName:rn},e.Renderer={name:"Renderer",moduleName:rn},e.viewDef={name:"ɵvid",moduleName:rn},e.elementDef={name:"ɵeld",moduleName:rn},e.anchorDef={name:"ɵand",moduleName:rn},e.textDef={name:"ɵted",moduleName:rn},e.directiveDef={name:"ɵdid",moduleName:rn},e.providerDef={name:"ɵprd",moduleName:rn},e.queryDef={name:"ɵqud",moduleName:rn},e.pureArrayDef={name:"ɵpad",moduleName:rn},e.pureObjectDef={name:"ɵpod",moduleName:rn},e.purePipeDef={name:"ɵppd",moduleName:rn},e.pipeDef={name:"ɵpid",moduleName:rn},e.nodeValue={name:"ɵnov",moduleName:rn},e.ngContentDef={name:"ɵncd",moduleName:rn},e.unwrapValue={name:"ɵunv",moduleName:rn},e.createRendererType2={name:"ɵcrt",moduleName:rn},e.RendererType2={name:"RendererType2",moduleName:rn},e.ViewDefinition={name:"ɵViewDefinition",moduleName:rn},e.createComponentFactory={name:"ɵccf",moduleName:rn},e.setClassMetadata={name:"ɵsetClassMetadata",moduleName:rn},e}();function sn(e){return{identifier:{reference:e}}}function an(e,t){return sn(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
*/var un=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}(),pn=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 un(e,t,n),this.cache.set(r,i)),i},e}(),ln=/^(?:(?:\[([^\]]+)\])|(?:\(([^\)]+)\)))|(\@[-\w]+)$/;function cn(e){return e.replace(/\W/g,"_")}var hn,fn=0;function dn(e){if(!e||!e.reference)return null;var t=e.reference;if(t instanceof un)return t.name;if(t.__anonymousType)return t.__anonymousType;var n=Wt(t);return n.indexOf("(")>=0?(n="anonymous_"+fn++,t.__anonymousType=n):n=cn(n),n}function vn(e){var t=e.reference;return t instanceof un?t.filePath:"./"+Wt(t)}function mn(e,t){return"View_"+dn({reference:e})+"_"+t}function yn(e){return"RenderType_"+dn({reference:e})}function gn(e){return"HostView_"+dn({reference:e})}function _n(e){return dn({reference:e})+"NgFactory"}function En(e){return null!=e.value?cn(e.value):dn(e.identifier)}function Sn(e){return null!=e.identifier?e.identifier.reference:e.value}(hn=e.CompileSummaryKind||(e.CompileSummaryKind={}))[hn.Pipe=0]="Pipe",hn[hn.Directive=1]="Directive",hn[hn.NgModule=2]="NgModule",hn[hn.Injectable=3]="Injectable";var xn=function xn(e){var t=void 0===e?{}:e,n=t.styles,r=t.styleUrls;this.moduleUrl=t.moduleUrl||null,this.styles=Mn(n),this.styleUrls=Mn(r)},wn=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=Mn(i),this.styleUrls=Mn(o),this.externalStylesheets=Mn(s),this.animations=a?In(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,styles:this.styles,animations:this.animations}},e}(),Cn=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=Mn(c),this.viewProviders=Mn(h),this.queries=Mn(f),this.guards=d,this.viewQueries=Mn(v),this.entryComponents=Mn(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,S={},x={},w={};null!=l&&Object.keys(l).forEach(function(e){var t=l[e],n=e.match(ln);null===n?w[e]=t:null!=n[1]?x[n[1]]=t:null!=n[2]&&(S[n[2]]=t)});var C={};null!=u&&u.forEach(function(e){var t=Pt(e,[e,e]);C[t[0]]=t[1]});var b={};return null!=p&&p.forEach(function(e){var t=Pt(e,[e,e]);b[t[0]]=t[1]}),new t({isHost:n,type:r,isComponent:!!i,selector:o,exportAs:s,changeDetection:a,inputs:C,outputs:b,hostListeners:S,hostProperties:x,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}(),bn=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}(),Tn=function Tn(){},Nn=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=Mn(n),this.exportedDirectives=Mn(r),this.declaredPipes=Mn(i),this.exportedPipes=Mn(o),this.providers=Mn(t),this.entryComponents=Mn(s),this.bootstrapComponents=Mn(a),this.importedModules=Mn(u),this.exportedModules=Mn(p),this.schemas=Mn(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}(),Pn=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 Mn(e){return e||[]}var An=function An(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 In(e){return e.reduce(function(e,t){var n=Array.isArray(t)?In(t):t;return e.concat(n)},[])}function kn(e){return e.replace(/(\w+:\/\/[\w:-]+)?(\/+)?/,"ng:///")}function Rn(e,t,n){var r;return r=n.isInline?t.type.reference instanceof un?t.type.reference.filePath+"."+t.type.reference.name+".html":dn(e)+"/"+dn(t.type)+".html":n.templateUrl,t.type.reference instanceof un?r:kn(r)}function On(e,t){var n=e.moduleUrl.split(/\/\\/g);return kn("css/"+t+n[n.length-1]+".ngstyle.js")}function Dn(e){return kn(dn(e.type)+"/module.ngfactory.js")}function Fn(e,t){return kn(dn(e)+"/"+dn(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 Ln="@angular/core",Bn=function(){function e(){}return e.NEW_METHOD="factory",e.TRANSFORM_METHOD="transform",e.PATCH_DEPS="patchedDeps",e.namespaceHTML={name:"ɵɵnamespaceHTML",moduleName:Ln},e.namespaceMathML={name:"ɵɵnamespaceMathML",moduleName:Ln},e.namespaceSVG={name:"ɵɵnamespaceSVG",moduleName:Ln},e.element={name:"ɵɵelement",moduleName:Ln},e.elementStart={name:"ɵɵelementStart",moduleName:Ln},e.elementEnd={name:"ɵɵelementEnd",moduleName:Ln},e.select={name:"ɵɵselect",moduleName:Ln},e.updateSyntheticHostBinding={name:"ɵɵupdateSyntheticHostBinding",moduleName:Ln},e.componentHostSyntheticListener={name:"ɵɵcomponentHostSyntheticListener",moduleName:Ln},e.attribute={name:"ɵɵattribute",moduleName:Ln},e.attributeInterpolate1={name:"ɵɵattributeInterpolate1",moduleName:Ln},e.attributeInterpolate2={name:"ɵɵattributeInterpolate2",moduleName:Ln},e.attributeInterpolate3={name:"ɵɵattributeInterpolate3",moduleName:Ln},e.attributeInterpolate4={name:"ɵɵattributeInterpolate4",moduleName:Ln},e.attributeInterpolate5={name:"ɵɵattributeInterpolate5",moduleName:Ln},e.attributeInterpolate6={name:"ɵɵattributeInterpolate6",moduleName:Ln},e.attributeInterpolate7={name:"ɵɵattributeInterpolate7",moduleName:Ln},e.attributeInterpolate8={name:"ɵɵattributeInterpolate8",moduleName:Ln},e.attributeInterpolateV={name:"ɵɵattributeInterpolateV",moduleName:Ln},e.classProp={name:"ɵɵclassProp",moduleName:Ln},e.elementContainerStart={name:"ɵɵelementContainerStart",moduleName:Ln},e.elementContainerEnd={name:"ɵɵelementContainerEnd",moduleName:Ln},e.styling={name:"ɵɵstyling",moduleName:Ln},e.styleMap={name:"ɵɵstyleMap",moduleName:Ln},e.classMap={name:"ɵɵclassMap",moduleName:Ln},e.styleProp={name:"ɵɵstyleProp",moduleName:Ln},e.stylingApply={name:"ɵɵstylingApply",moduleName:Ln},e.styleSanitizer={name:"ɵɵstyleSanitizer",moduleName:Ln},e.elementHostAttrs={name:"ɵɵelementHostAttrs",moduleName:Ln},e.containerCreate={name:"ɵɵcontainer",moduleName:Ln},e.nextContext={name:"ɵɵnextContext",moduleName:Ln},e.templateCreate={name:"ɵɵtemplate",moduleName:Ln},e.text={name:"ɵɵtext",moduleName:Ln},e.textBinding={name:"ɵɵtextBinding",moduleName:Ln},e.enableBindings={name:"ɵɵenableBindings",moduleName:Ln},e.disableBindings={name:"ɵɵdisableBindings",moduleName:Ln},e.allocHostVars={name:"ɵɵallocHostVars",moduleName:Ln},e.getCurrentView={name:"ɵɵgetCurrentView",moduleName:Ln},e.textInterpolate={name:"ɵɵtextInterpolate",moduleName:Ln},e.textInterpolate1={name:"ɵɵtextInterpolate1",moduleName:Ln},e.textInterpolate2={name:"ɵɵtextInterpolate2",moduleName:Ln},e.textInterpolate3={name:"ɵɵtextInterpolate3",moduleName:Ln},e.textInterpolate4={name:"ɵɵtextInterpolate4",moduleName:Ln},e.textInterpolate5={name:"ɵɵtextInterpolate5",moduleName:Ln},e.textInterpolate6={name:"ɵɵtextInterpolate6",moduleName:Ln},e.textInterpolate7={name:"ɵɵtextInterpolate7",moduleName:Ln},e.textInterpolate8={name:"ɵɵtextInterpolate8",moduleName:Ln},e.textInterpolateV={name:"ɵɵtextInterpolateV",moduleName:Ln},e.restoreView={name:"ɵɵrestoreView",moduleName:Ln},e.interpolation1={name:"ɵɵinterpolation1",moduleName:Ln},e.interpolation2={name:"ɵɵinterpolation2",moduleName:Ln},e.interpolation3={name:"ɵɵinterpolation3",moduleName:Ln},e.interpolation4={name:"ɵɵinterpolation4",moduleName:Ln},e.interpolation5={name:"ɵɵinterpolation5",moduleName:Ln},e.interpolation6={name:"ɵɵinterpolation6",moduleName:Ln},e.interpolation7={name:"ɵɵinterpolation7",moduleName:Ln},e.interpolation8={name:"ɵɵinterpolation8",moduleName:Ln},e.interpolationV={name:"ɵɵinterpolationV",moduleName:Ln},e.pureFunction0={name:"ɵɵpureFunction0",moduleName:Ln},e.pureFunction1={name:"ɵɵpureFunction1",moduleName:Ln},e.pureFunction2={name:"ɵɵpureFunction2",moduleName:Ln},e.pureFunction3={name:"ɵɵpureFunction3",moduleName:Ln},e.pureFunction4={name:"ɵɵpureFunction4",moduleName:Ln},e.pureFunction5={name:"ɵɵpureFunction5",moduleName:Ln},e.pureFunction6={name:"ɵɵpureFunction6",moduleName:Ln},e.pureFunction7={name:"ɵɵpureFunction7",moduleName:Ln},e.pureFunction8={name:"ɵɵpureFunction8",moduleName:Ln},e.pureFunctionV={name:"ɵɵpureFunctionV",moduleName:Ln},e.pipeBind1={name:"ɵɵpipeBind1",moduleName:Ln},e.pipeBind2={name:"ɵɵpipeBind2",moduleName:Ln},e.pipeBind3={name:"ɵɵpipeBind3",moduleName:Ln},e.pipeBind4={name:"ɵɵpipeBind4",moduleName:Ln},e.pipeBindV={name:"ɵɵpipeBindV",moduleName:Ln},e.property={name:"ɵɵproperty",moduleName:Ln},e.propertyInterpolate={name:"ɵɵpropertyInterpolate",moduleName:Ln},e.propertyInterpolate1={name:"ɵɵpropertyInterpolate1",moduleName:Ln},e.propertyInterpolate2={name:"ɵɵpropertyInterpolate2",moduleName:Ln},e.propertyInterpolate3={name:"ɵɵpropertyInterpolate3",moduleName:Ln},e.propertyInterpolate4={name:"ɵɵpropertyInterpolate4",moduleName:Ln},e.propertyInterpolate5={name:"ɵɵpropertyInterpolate5",moduleName:Ln},e.propertyInterpolate6={name:"ɵɵpropertyInterpolate6",moduleName:Ln},e.propertyInterpolate7={name:"ɵɵpropertyInterpolate7",moduleName:Ln},e.propertyInterpolate8={name:"ɵɵpropertyInterpolate8",moduleName:Ln},e.propertyInterpolateV={name:"ɵɵpropertyInterpolateV",moduleName:Ln},e.i18n={name:"ɵɵi18n",moduleName:Ln},e.i18nAttributes={name:"ɵɵi18nAttributes",moduleName:Ln},e.i18nExp={name:"ɵɵi18nExp",moduleName:Ln},e.i18nStart={name:"ɵɵi18nStart",moduleName:Ln},e.i18nEnd={name:"ɵɵi18nEnd",moduleName:Ln},e.i18nApply={name:"ɵɵi18nApply",moduleName:Ln},e.i18nPostprocess={name:"ɵɵi18nPostprocess",moduleName:Ln},e.i18nLocalize={name:"ɵɵi18nLocalize",moduleName:Ln},e.load={name:"ɵɵload",moduleName:Ln},e.pipe={name:"ɵɵpipe",moduleName:Ln},e.projection={name:"ɵɵprojection",moduleName:Ln},e.projectionDef={name:"ɵɵprojectionDef",moduleName:Ln},e.reference={name:"ɵɵreference",moduleName:Ln},e.inject={name:"ɵɵinject",moduleName:Ln},e.injectAttribute={name:"ɵɵinjectAttribute",moduleName:Ln},e.directiveInject={name:"ɵɵdirectiveInject",moduleName:Ln},e.templateRefExtractor={name:"ɵɵtemplateRefExtractor",moduleName:Ln},e.resolveWindow={name:"ɵɵresolveWindow",moduleName:Ln},e.resolveDocument={name:"ɵɵresolveDocument",moduleName:Ln},e.resolveBody={name:"ɵɵresolveBody",moduleName:Ln},e.defineBase={name:"ɵɵdefineBase",moduleName:Ln},e.BaseDef={name:"ɵɵBaseDef",moduleName:Ln},e.defineComponent={name:"ɵɵdefineComponent",moduleName:Ln},e.setComponentScope={name:"ɵɵsetComponentScope",moduleName:Ln},e.ComponentDefWithMeta={name:"ɵɵComponentDefWithMeta",moduleName:Ln},e.defineDirective={name:"ɵɵdefineDirective",moduleName:Ln},e.DirectiveDefWithMeta={name:"ɵɵDirectiveDefWithMeta",moduleName:Ln},e.InjectorDef={name:"ɵɵInjectorDef",moduleName:Ln},e.defineInjector={name:"ɵɵdefineInjector",moduleName:Ln},e.NgModuleDefWithMeta={name:"ɵɵNgModuleDefWithMeta",moduleName:Ln},e.defineNgModule={name:"ɵɵdefineNgModule",moduleName:Ln},e.setNgModuleScope={name:"ɵɵsetNgModuleScope",moduleName:Ln},e.PipeDefWithMeta={name:"ɵɵPipeDefWithMeta",moduleName:Ln},e.definePipe={name:"ɵɵdefinePipe",moduleName:Ln},e.queryRefresh={name:"ɵɵqueryRefresh",moduleName:Ln},e.viewQuery={name:"ɵɵviewQuery",moduleName:Ln},e.staticViewQuery={name:"ɵɵstaticViewQuery",moduleName:Ln},e.staticContentQuery={name:"ɵɵstaticContentQuery",moduleName:Ln},e.loadViewQuery={name:"ɵɵloadViewQuery",moduleName:Ln},e.contentQuery={name:"ɵɵcontentQuery",moduleName:Ln},e.loadContentQuery={name:"ɵɵloadContentQuery",moduleName:Ln},e.NgOnChangesFeature={name:"ɵɵNgOnChangesFeature",moduleName:Ln},e.InheritDefinitionFeature={name:"ɵɵInheritDefinitionFeature",moduleName:Ln},e.ProvidersFeature={name:"ɵɵProvidersFeature",moduleName:Ln},e.listener={name:"ɵɵlistener",moduleName:Ln},e.getFactoryOf={name:"ɵɵgetFactoryOf",moduleName:Ln},e.getInheritedFactory={name:"ɵɵgetInheritedFactory",moduleName:Ln},e.sanitizeHtml={name:"ɵɵsanitizeHtml",moduleName:Ln},e.sanitizeStyle={name:"ɵɵsanitizeStyle",moduleName:Ln},e.defaultStyleSanitizer={name:"ɵɵdefaultStyleSanitizer",moduleName:Ln},e.sanitizeResourceUrl={name:"ɵɵsanitizeResourceUrl",moduleName:Ln},e.sanitizeScript={name:"ɵɵsanitizeScript",moduleName:Ln},e.sanitizeUrl={name:"ɵɵsanitizeUrl",moduleName:Ln},e.sanitizeUrlOrResourceUrl={name:"ɵɵsanitizeUrlOrResourceUrl",moduleName:Ln},e}(),Vn=0,jn=9,Un=10,Hn=11,qn=12,Wn=13,zn=32,Kn=34,Qn=36,Xn=39,Gn=43,$n=45,Yn=47,Jn=59,Zn=61,er=62,tr=48,nr=55,rr=57,ir=65,or=70,sr=90,ar=95,ur=97,pr=102,lr=110,cr=114,hr=116,fr=118,dr=122,vr=160,mr=96;function yr(e){return e>=jn&&e<=zn||e==vr}function gr(e){return tr<=e&&e<=rr}function _r(e){return e>=ur&&e<=dr||e>=ir&&e<=sr}function Er(e){return e===Un||e===Wn}function Sr(e){return tr<=e&&e<=nr}
/**
* @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 xr,wr=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))==Un){o--;var a=n.substr(0,i-1).lastIndexOf(String.fromCharCode(Un));s=a>0?i-a:i}else s--;for(;i<r&&t>0;){var u=n.charCodeAt(i);i++,t--,u==Un?(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}(),Cr=function Cr(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}();(xr=e.ParseErrorLevel||(e.ParseErrorLevel={}))[xr.WARNING=0]="WARNING",xr[xr.ERROR=1]="ERROR";var Tr=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 Nr(e,t){var n=vn(t),r=null!=n?"in "+e+" "+dn(t)+" in "+n:"in "+e+" "+dn(t),i=new Cr("",r);return new br(new wr(i,-1,-1,-1),new wr(i,-1,-1,-1))}function Pr(e,t,n){var r=new Cr("","in "+e+" "+t+" in "+n);return new br(new wr(r,-1,-1,-1),new wr(r,-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
*/var Mr=function(){function e(e,t){this.value=e,this.sourceSpan=t}return e.prototype.visit=function(e){return e.visitText(this)},e}(),Ar=function(){function e(e,t,n){this.value=e,this.sourceSpan=t,this.i18n=n}return e.prototype.visit=function(e){return e.visitBoundText(this)},e}(),Ir=function(){function e(e,t,n,r,i){this.name=e,this.value=t,this.sourceSpan=n,this.valueSpan=r,this.i18n=i}return e.prototype.visit=function(e){return e.visitTextAttribute(this)},e}(),kr=function(){function e(e,t,n,r,i,o,s){this.name=e,this.type=t,this.securityContext=n,this.value=r,this.unit=i,this.sourceSpan=o,this.i18n=s}return e.fromBoundElementProperty=function(t,n){return new e(t.name,t.type,t.securityContext,t.value,t.unit,t.sourceSpan,n)},e.prototype.visit=function(e){return e.visitBoundAttribute(this)},e}(),Rr=function(){function e(e,t,n,r,i,o,s){this.name=e,this.type=t,this.handler=n,this.target=r,this.phase=i,this.sourceSpan=o,this.handlerSpan=s}return e.fromParsedEvent=function(t){return new e(t.name,t.type,t.handler,0===t.type?t.targetOrPhase:null,1===t.type?t.targetOrPhase:null,t.sourceSpan,t.handlerSpan)},e.prototype.visit=function(e){return e.visitBoundEvent(this)},e}(),Or=function(){function e(e,t,n,r,i,o,s,a,u,p){this.name=e,this.attributes=t,this.inputs=n,this.outputs=r,this.children=i,this.references=o,this.sourceSpan=s,this.startSourceSpan=a,this.endSourceSpan=u,this.i18n=p,0===i.length&&a&&u&&(this.sourceSpan=new br(s.start,u.end))}return e.prototype.visit=function(e){return e.visitElement(this)},e}(),Dr=function(){function e(e,t,n,r,i,o,s,a,u,p,l,c){this.tagName=e,this.attributes=t,this.inputs=n,this.outputs=r,this.templateAttrs=i,this.children=o,this.references=s,this.variables=a,this.sourceSpan=u,this.startSourceSpan=p,this.endSourceSpan=l,this.i18n=c}return e.prototype.visit=function(e){return e.visitTemplate(this)},e}(),Fr=function(){function e(e,t,n,r){this.selector=e,this.attributes=t,this.sourceSpan=n,this.i18n=r}return e.prototype.visit=function(e){return e.visitContent(this)},e}(),Lr=function(){function e(e,t,n){this.name=e,this.value=t,this.sourceSpan=n}return e.prototype.visit=function(e){return e.visitVariable(this)},e}(),Br=function(){function e(e,t,n){this.name=e,this.value=t,this.sourceSpan=n}return e.prototype.visit=function(e){return e.visitReference(this)},e}(),Vr=function(){function e(e,t,n,r){this.vars=e,this.placeholders=t,this.sourceSpan=n,this.i18n=r}return e.prototype.visit=function(e){return e.visitIcu(this)},e}();function jr(e,t){var n,r,i,s,a=[];if(e.visit)try{for(var u=o(t),p=u.next();!p.done;p=u.next())var l=e.visit(f=p.value)||f.visit(e)}catch(e){n={error:e}}finally{try{p&&!p.done&&(r=u.return)&&r.call(u)}finally{if(n)throw n.error}}else try{for(var c=o(t),h=c.next();!h.done;h=c.next()){var f;(l=(f=h.value).visit(e))&&a.push(l)}}catch(e){i={error:e}}finally{try{h&&!h.done&&(s=c.return)&&s.call(c)}finally{if(i)throw i.error}}return 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
*/var Ur=function Ur(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}]:[]},Hr=function(){function e(e,t){this.value=e,this.sourceSpan=t}return e.prototype.visit=function(e,t){return e.visitText(this,t)},e}(),qr=function(){function e(e,t){this.children=e,this.sourceSpan=t}return e.prototype.visit=function(e,t){return e.visitContainer(this,t)},e}(),Wr=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}(),zr=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}(),Kr=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}(),Qr=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}(),Xr=function(){function e(){}return e.prototype.visitText=function(e,t){return new Hr(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 qr(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 Wr(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 zr(e.tag,e.attrs,e.startName,e.closeName,r,e.isVoid,e.sourceSpan)},e.prototype.visitPlaceholder=function(e,t){return new Kr(e.value,e.name,e.sourceSpan)},e.prototype.visitIcuPlaceholder=function(e,t){return new Qr(e.value,e.name,e.sourceSpan)},e}(),Gr=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}();
/**
* @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){return e.id||function n(e){var t,n,r=qt(e),i=function o(e,t){for(var n=Array(e.length+3>>>2),r=0;r<n.length;r++)n[r]=ci(e,4*r,t);return n}(r,Jr.Big),a=8*r.length,u=new Array(80),p=s([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=s([l,c,h,f,d],5),y=m[0],g=m[1],_=m[2],E=m[3],S=m[4],x=0;x<80;x++){u[x]=x<16?i[v+x]:pi(u[x-3]^u[x-8]^u[x-14]^u[x-16],1);var w=s(ni(x,c,h,f),2),C=w[0],b=w[1],T=[pi(l,5),C,d,b,u[x]].reduce(si);d=(t=s([f,h,pi(c,30),l,T],5))[0],f=t[1],h=t[2],c=t[3],l=t[4]}l=(n=s([si(l,y),si(c,g),si(h,_),si(f,E),si(d,S)],5))[0],c=n[1],h=n[2],f=n[3],d=n[4]}return function N(e){for(var t="",n=0;n<e.length;n++){var r=li(e,n);t+=(r>>>4).toString(16)+(15&r).toString(16)}return t.toLowerCase()}(hi([l,c,h,f,d]))}(function t(e){return e.map(function(e){return e.visit(ei,null)})}(e.nodes).join("")+"["+e.meaning+"]")}function Yr(e){if(e.id)return e.id;var t=new ti;return function n(e,t){var n,r=s(ri(e),2),i=r[0],o=r[1];if(t){var a=s(ri(t),2),u=a[0],p=a[1];i=(n=s(function c(e,t){var n=s(e,2),r=n[0],i=n[1],o=s(t,2),a=o[0],u=s(ai(i,o[1]),2),p=u[0],l=u[1];return[si(si(r,a),p),l]}(function l(e,t){var n=s(e,2),r=n[0],i=n[1];return[r<<t|i>>>32-t,i<<t|r>>>32-t]}([i,o],1),[u,p]),2))[0],o=n[1]}return function h(e){for(var t="",n="1",r=e.length-1;r>=0;r--)t=fi(t,di(li(e,r),n)),n=di(256,n);return t.split("").reverse().join("")}(hi([2147483647&i,o]))}(e.nodes.map(function(e){return e.visit(t,null)}).join(""),e.meaning)}var Jr,Zr=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}(),ei=new Zr,ti=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}(Zr);function ni(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 ri(e){var t=qt(e),n=s([ii(t,0),ii(t,102072)],2),r=n[0],i=n[1];return 0!=r||0!=i&&1!=i||(r^=319790063,i^=-1801410264),[r,i]}function ii(e,t){var n,r,i=s([2654435769,2654435769],2),o=i[0],a=i[1],u=e.length;for(r=0;r+12<=u;r+=12)o=(n=s(oi([o=si(o,ci(e,r,Jr.Little)),a=si(a,ci(e,r+4,Jr.Little)),t=si(t,ci(e,r+8,Jr.Little))]),3))[0],a=n[1],t=n[2];return o=si(o,ci(e,r,Jr.Little)),a=si(a,ci(e,r+4,Jr.Little)),t=si(t,u),oi([o,a,t=si(t,ci(e,r+8,Jr.Little)<<8)])[2]}function oi(e){var t=s(e,3),n=t[0],r=t[1],i=t[2];return n=ui(n,r),n=ui(n,i),n^=i>>>13,r=ui(r,i),r=ui(r,n),r^=n<<8,i=ui(i,n),i=ui(i,r),i^=r>>>13,n=ui(n,r),n=ui(n,i),n^=i>>>12,r=ui(r,i),r=ui(r,n),r^=n<<16,i=ui(i,n),i=ui(i,r),i^=r>>>5,n=ui(n,r),n=ui(n,i),n^=i>>>3,r=ui(r,i),r=ui(r,n),r^=n<<10,i=ui(i,n),i=ui(i,r),[n,r,i^=r>>>15]}function si(e,t){return ai(e,t)[1]}function ai(e,t){var n=(65535&e)+(65535&t),r=(e>>>16)+(t>>>16)+(n>>>16);return[r>>>16,r<<16|65535&n]}function ui(e,t){var n=(65535&e)-(65535&t);return(e>>16)-(t>>16)+(n>>16)<<16|65535&n}function pi(e,t){return e<<t|e>>>32-t}function li(e,t){return t>=e.length?0:255&e.charCodeAt(t)}function ci(e,t,n){var r=0;if(n===Jr.Big)for(var i=0;i<4;i++)r+=li(e,t+i)<<24-8*i;else for(i=0;i<4;i++)r+=li(e,t+i)<<8*i;return r}function hi(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 fi(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 di(e,t){for(var n="",r=t;0!==e;e>>>=1)1&e&&(n=fi(n,r)),r=fi(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 vi=function(){function e(){}return e.prototype.createNameMapper=function(e){return null},e}(),mi=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}(Gr),yi=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}());function gi(e){return e.map(function(e){return e.visit(yi)}).join("")}var _i=function(){function e(e){var t=this;this.attrs={},Object.keys(e).forEach(function(n){t.attrs[n]=bi(e[n])})}return e.prototype.visit=function(e){return e.visitDeclaration(this)},e}(),Ei=function(){function e(e,t){this.rootTag=e,this.dtd=t}return e.prototype.visit=function(e){return e.visitDoctype(this)},e}(),Si=function(){function e(e,t,n){var r=this;void 0===t&&(t={}),void 0===n&&(n=[]),this.name=e,this.children=n,this.attrs={},Object.keys(t).forEach(function(e){r.attrs[e]=bi(t[e])})}return e.prototype.visit=function(e){return e.visitTag(this)},e}(),xi=function(){function e(e){this.value=bi(e)}return e.prototype.visit=function(e){return e.visitText(this)},e}(),wi=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}(xi),Ci=[[/&/g,"&amp;"],[/"/g,"&quot;"],[/'/g,"&apos;"],[/</g,"&lt;"],[/>/g,"&gt;"]];function bi(e){return Ci.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 Ti=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 Mi,r=new Ni,i=new Si("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 Si("source",{},[new xi(e.filePath+":"+e.startLine+(e.endLine!==e.startLine?","+e.endLine:""))]))}),i.children.push(new wi(2),new Si("msg",t,a(n,r.serialize(e.nodes))))}),i.children.push(new wi),gi([new _i({version:"1.0",encoding:"UTF-8"}),new wi,new Ei("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 wi,n.addDefaultExamples(i),new wi])},t.prototype.load=function(e,t){throw new Error("Unsupported")},t.prototype.digest=function(e){return Pi(e)},t.prototype.createNameMapper=function(e){return new mi(e,Ai)},t}(vi),Ni=function(){function e(){}return e.prototype.visitText=function(e,t){return[new xi(e.value)]},e.prototype.visitContainer=function(e,t){var n=this,r=[];return e.children.forEach(function(e){return r.push.apply(r,a(e.visit(n)))}),r},e.prototype.visitIcu=function(e,t){var n=this,r=[new xi("{"+e.expressionPlaceholder+", "+e.type+", ")];return Object.keys(e.cases).forEach(function(t){r.push.apply(r,a([new xi(t+" {")],e.cases[t].visit(n),[new xi("} ")]))}),r.push(new xi("}")),r},e.prototype.visitTagPlaceholder=function(e,t){var n=new xi("<"+e.tag+">"),r=new Si("ex",{},[n]),i=new Si("ph",{name:e.startName},[r,n]);if(e.isVoid)return[i];var o=new xi("</"+e.tag+">"),s=new Si("ex",{},[o]),u=new Si("ph",{name:e.closeName},[s,o]);return a([i],this.serialize(e.children),[u])},e.prototype.visitPlaceholder=function(e,t){var n=new xi("{{"+e.value+"}}"),r=new Si("ex",{},[n]);return[new Si("ph",{name:e.name},[r,n])]},e.prototype.visitIcuPlaceholder=function(e,t){var n=e.value.expression,r=e.value.type,i=Object.keys(e.value.cases).map(function(e){return e+" {...}"}).join(" "),o=new xi("{"+n+", "+r+", "+i+"}"),s=new Si("ex",{},[o]);return[new Si("ph",{name:e.name},[s,o])]},e.prototype.serialize=function(e){var t=this;return[].concat.apply([],a(e.map(function(e){return e.visit(t)})))},e}();function Pi(e){return Yr(e)}var Mi=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 xi(e.attrs.name||"...");e.children=[new Si("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 Ai(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
*/function Ii(e,t){return void 0===t&&(t=!1),xt(Object.keys(e).map(function(n){return{key:n,quoted:t,value:e[n]}}))}
/**
* @license
* Copyright Google Inc. All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/var ki="MSG_",Ri="goog.getMsg",Oi="ngI18nClosureMode",Di="i18n",Fi="i18n-",Li="�";function Bi(e,t,n,r,i){var o=[];o.push(new Ge(e.name,void 0,ce,null,e.sourceSpan));var s=[bt(n)];i&&Object.keys(i).length&&s.push(Ii(i,!0));var a=function u(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 st(t)}(r),p=a?[a]:[],l=yt(Ri).callFn(s);p.push(t.set(l).toConstDecl()),p.push(new Ye(e.set(t)));var c=gt(Bn.i18nLocalize).callFn(s),h=[new Ye(e.set(c))];return o.push(Ct(yt(Oi),p,h)),o}function Vi(e){return e===Di||e.startsWith(Fi)}function ji(e){return e instanceof Ur}function Ui(e){return ji(e)&&1===e.nodes.length&&e.nodes[0]instanceof Wr}function Hi(e,t){return void 0===t&&(t=null),{id:"string"==typeof t?t:e.id||"",meaning:e.meaning||"",description:e.description||""}}function qi(e){return e.nodes[0]}function Wi(e,t){return void 0===t&&(t=0),""+Li+e+(t>0?":"+t:"")+Li}function zi(e){void 0===e&&(e=0);var t=e;return function(){return t++}}function Ki(e){var t={};return e.forEach(function(e,n){t[n]=bt(e.length>1?"["+e.join("|")+"]":e[0])}),t}function Qi(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];var i=e.get(t)||[];i.push.apply(i,a(n)),e.set(t,i)}function Xi(e,t,n){void 0===t&&(t=0),void 0===n&&(n=0);var r=t,i=new Map,o=e instanceof Ur?e.nodes.find(function(e){return e instanceof qr}):e;return o&&o.children.filter(function(e){return e instanceof Kr}).forEach(function(e,t){var o=Wi(r+t,n);Qi(i,e.name,o)}),i}function Gi(e){var t,n=Ai(e).split("_");if(1===n.length)return e.toLowerCase();/^\d+$/.test(n[n.length-1])&&(t=n.pop());var r=n.shift().toLowerCase();return n.length&&(r+=n.map(function(e){return e.charAt(0).toUpperCase()+e.slice(1).toLowerCase()}).join("")),t?r+"_"+t:r}function $i(e){return(""+ki+e).toUpperCase()}
/**
* @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 Yi=/[-.]/,Ji="_t",Zi="ctx",eo="rf";function to(e,t){var n=null;return function(){return n||(e.push(new Ge(Ji,void 0,le)),n=yt(t)),n}}function no(e){if(this)throw new Error("Builder "+this.constructor.name+" doesn't support "+e+" yet");throw new Error("Feature "+e+" is not supported yet")}function ro(e){throw new Error("Invalid state: Visitor "+this.constructor.name+" doesn't handle "+e.constructor.name)}function io(e){return Array.isArray(e)?St(e.map(io)):bt(e,ce)}function oo(e,t){return Object.getOwnPropertyNames(e).length>0?function n(e,t){return xt(Object.getOwnPropertyNames(e).map(function(n){var r,i,o,a,u,p=e[n];return Array.isArray(p)?(a=(r=s(p,2))[0],o=r[1]):(o=(i=s(Pt(n,[n,p]),2))[0],a=i[1]),{key:u=o,quoted:Yi.test(u),value:t&&a!==o?St([io(a),io(o)]):io(a)}}))}(e,t):null}function so(e){for(;(t=e[e.length-1])instanceof Ae&&null===t.value;)e.pop();var t;return e}function ao(e,t){if(Array.isArray(e.predicate)){var n=[];return e.predicate.forEach(function(e){var t=e.split(",").map(function(e){return bt(e.trim())});n.push.apply(n,a(t))}),t.getConstLiteral(St(n),!0)}return e.predicate}var uo,po,lo=function(){function e(){this.values=[]}return e.prototype.set=function(e,t){t&&this.values.push({key:e,value:t,quoted:!1})},e.prototype.toLiteralMap=function(){return xt(this.values)},e}();function co(e){var t={};return e instanceof Dr&&"ng-template"!==e.tagName?e.templateAttrs.forEach(function(e){return t[e.name]=""}):(e.attributes.forEach(function(e){Vi(e.name)||(t[e.name]=e.value)}),e.inputs.forEach(function(e){t[e.name]=""}),e.outputs.forEach(function(e){t[e.name]=""})),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 ho(t){var n=yt("t"),r=[],i=yo(t)?n:new Ve(e.BinaryOperator.Or,n,t.type),o=null;if(null!==t.deps)"invalid"!==t.deps&&(o=new Me(i,fo(t.deps,t.injectFn)));else{var s=yt("ɵ"+t.name+"_BaseFactory"),a=gt(Bn.getInheritedFactory),u=s.set(a.callFn([t.type])).toDeclStmt(ce,[e.StmtModifier.Exported,e.StmtModifier.Final]);r.push(u),o=s.callFn([i])}var p=o,l=[],c=null;function h(e){var r,i=yt("r");return l.push(i.set(Ke).toDeclStmt()),r=null!==p?i.set(p).toStmt():mo(t.name),l.push(Ct(n,[r],[i.set(e).toStmt()])),i}if(yo(t)&&t.delegateType===uo.Factory){var f=yt("ɵ"+t.name+"_BaseFactory"),d=gt(Bn.getFactoryOf);if(t.delegate.isEquivalent(t.type))throw new Error("Illegal state: compiling factory that delegates to itself");var v=f.set(d.callFn([t.delegate])).toDeclStmt(ce,[e.StmtModifier.Exported,e.StmtModifier.Final]);r.push(v),c=h(f.callFn([]))}else if(yo(t)){var m=fo(t.delegateDeps,t.injectFn);c=h(new(t.delegateType===uo.Class?Me:Pe)(t.delegate,m))}else c=function y(e){return void 0!==e.expression}
/**
* @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)?h(t.expression):o;return l.push(null!==c?new Je(c):mo(t.name)),{factory:wt([new Le("t",le)],l,ce,void 0,t.name+"_Factory"),statements:r}}function fo(t,n){return t.map(function(t){return function r(t,n){switch(t.resolved){case e.R3ResolvedDependencyType.Token:var r=0|(t.self?2:0)|(t.skipSelf?4:0)|(t.host?1:0)|(t.optional?8:0),i=[t.token];return(0!==r||t.optional)&&i.push(bt(r)),gt(n).callFn(i);case e.R3ResolvedDependencyType.Attribute:return gt(Bn.injectAttribute).callFn([t.token]);default:return no("Unknown R3ResolvedDependencyType: "+e.R3ResolvedDependencyType[t.resolved])}}(t,n)})}function vo(t,n,r){r.resolveExternalReference(on.Injector);var i,s,a=[];try{for(var u=o(t.diDeps),p=u.next();!p.done;p=u.next()){var l=p.value;if(l.token){var c=Sn(l.token),h=l.isAttribute?e.R3ResolvedDependencyType.Attribute:e.R3ResolvedDependencyType.Token,f=c instanceof un?n.importExpr(c):bt(c);a.push({token:f,resolved:h,host:!!l.isHost,optional:!!l.isOptional,self:!!l.isSelf,skipSelf:!!l.isSkipSelf})}else no("dependency without a token")}}catch(e){i={error:e}}finally{try{p&&!p.done&&(s=u.return)&&s.call(u)}finally{if(i)throw i.error}}return a}function mo(e){return new ut(new Me(new Ee("Error"),[bt(e+" has a constructor which is not compatible with Dependency Injection. It should probably not be @Injectable().")]))}function yo(e){return void 0!==e.delegateType}function go(e){return xt(Object.keys(e).map(function(t){return{key:t,value:e[t],quoted:!1}}))}function _o(e,t){if(Array.isArray(e))return St(e.map(function(e){return _o(e,t)}));if(e instanceof un)return t.importExpr(e);if(null==e)return bt(e);throw new Error("Internal error: Unsupported or unknown metadata: "+e)}function Eo(e,t){var n=null;if(t>0){n=[];for(var r=0;r<t;r++)n.push(le)}return Et(e,null,n)}!function(e){e[e.Class=0]="Class",e[e.Function=1]="Function",e[e.Factory=2]="Factory"}(uo||(uo={})),(po=e.R3ResolvedDependencyType||(e.R3ResolvedDependencyType={}))[po.Token=0]="Token",po[po.Attribute=1]="Attribute";var So="@";function xo(e){return""+So+e}function wo(e,t){return"animation_"+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 Co(e){var t=null,n={name:e.name,type:e.type,deps:e.ctorDeps,injectFn:on.inject};if(void 0!==e.useClass){var r=e.useClass.isEquivalent(e.type),o=void 0;void 0!==e.userDeps&&(o=e.userDeps),t=ho(void 0!==o?i({},n,{delegate:e.useClass,delegateDeps:o,delegateType:uo.Class}):r?n:i({},n,{delegate:e.useClass,delegateType:uo.Factory}))}else t=ho(void 0!==e.useFactory?i({},n,{delegate:e.useFactory,delegateDeps:e.userDeps||[],delegateType:uo.Function}):void 0!==e.useValue?i({},n,{expression:e.useValue}):void 0!==e.useExisting?i({},n,{expression:gt(on.inject).callFn([e.useExisting])}):n);var s=e.type,a=e.providedIn;return{expression:gt(on.ɵɵdefineInjectable).callFn([go({token:s,factory:t.factory,providedIn:a})]),type:new ae(gt(on.InjectableDef,[Eo(e.type,e.typeArgumentCount)])),statements:t.statements}}
/**
* @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 bo(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 To=[/^\s*$/,/[<>]/,/^[{}]$/,/&(#|[a-z])/i,/^\/\//];function No(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];To.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 Po=function(){function e(e,t){this.start=e,this.end=t}return e.fromArray=function(t){return t?(No("interpolation",t),new e(t[0],t[1])):Mo},e}(),Mo=new Po("{{","}}"),Ao=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=Io(e.col0-o);return o=e.col0,null!=e.sourceUrl&&(n+=Io(t.get(e.sourceUrl)-s),s=t.get(e.sourceUrl),n+=Io(e.sourceLine0-a),a=e.sourceLine0,n+=Io(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=qt(t);for(var r=0;r<t.length;){var i=t.charCodeAt(r++),o=t.charCodeAt(r++),s=t.charCodeAt(r++);n+=Ro(i>>2),n+=Ro((3&i)<<4|(isNaN(o)?0:o>>4)),n+=isNaN(o)?"=":Ro((15&o)<<2|s>>6),n+=isNaN(o)||isNaN(s)?"=":Ro(63&s)}return n}(JSON.stringify(this,null,0)):""},e}();function Io(e){e=e<0?1+(-e<<1):e<<1;var t="";do{var n=31&e;(e>>=5)>0&&(n|=32),t+=Ro(n)}while(e>0);return t}var ko="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";function Ro(e){if(e<0||e>=64)throw new Error("Can only encode value in the range [0, 63]");return ko[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 Oo=/'|\\|\n|\r|\$/g,Do=/^[$A-Z_][0-9A-Z_$]*$/i,Fo=" ",Lo=yt("error",null,null),Bo=yt("stack",null,null),Vo=function Vo(e){this.indent=e,this.partsLength=0,this.parts=[],this.srcSpans=[]},jo=function(){function e(e){this._indent=e,this._classes=[],this._preambleLineCount=0,this._lines=[new Vo(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*Fo.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 Vo(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?qo(e.indent)+e.parts.join(""):""}).join("\n")},e.prototype.toSourceMapGenerator=function(e,t){void 0===t&&(t=0);for(var n=new Ao(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*Fo.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-qo(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}(),Uo=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.visitWrappedNodeExpr=function(e,t){throw new Error("Abstract emitter cannot visit WrappedNodeExpr.")},t.prototype.visitTypeofExpr=function(e,t){t.print(e,"typeof "),e.expr.visitExpression(this,t)},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=Lo.name;break;case e.BuiltinVar.CatchStack:r=Bo.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?Ho(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,Ho(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 Ho(e,t,n){if(void 0===n&&(n=!0),null==e)return null;var r=e.replace(Oo,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||!Do.test(r)?"'"+r+"'":r}function qo(e){for(var t="",n=0;n<e;n++)t+=Fo;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
*/var Wo=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.visitWrappedNodeExpr=function(e,t){throw new Error("Cannot emit a WrappedNodeExpr in Javascript.")},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 Ee&&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 ("+Lo.name+") {"),n.incIndent();var r=[Bo.set(Lo.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}(Uo),zo=function(){function e(){}return e.prototype.evaluateStatements=function(e,t,n,r){var i=new Ko(n),o=jo.createRoot();return t.length>0&&!function s(e){return e.isEquivalent(bt("use strict").toStmt())}
/**
* @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[0])&&(t=a([bt("use strict").toStmt()],t)),i.visitAllStatements(t,o),i.createReturnStmt(o),this.evaluateCode(e,o,i.getArgs(),r)},e.prototype.evaluateCode=function(e,t,n,r){var i='"use strict";'+t.toSource()+"\n//# sourceURL="+e,o=[],s=[];for(var u in n)s.push(n[u]),o.push(u);if(r){var p=(new(Function.bind.apply(Function,a([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()}var c=new(Function.bind.apply(Function,a([void 0],o.concat(i))));return this.executeFunction(c,s)},e.prototype.executeFunction=function(e,t){return e.apply(void 0,a(t))},e}(),Ko=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 Je(new We(this._evalExportedVars.map(function(e){return new qe(e,yt(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){return this._emitReferenceToExternal(e,this.reflector.resolveExternalReference(e.value),t),null},r.prototype.visitWrappedNodeExpr=function(e,t){return this._emitReferenceToExternal(e,e.node,t),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.prototype._emitReferenceToExternal=function(e,t,n){var r=this._evalArgValues.indexOf(t);if(-1===r){r=this._evalArgValues.length,this._evalArgValues.push(t);var i=dn({reference:t})||"val";this._evalArgNames.push("jit_"+i+"_"+r)}n.print(e,this._evalArgNames[r])},r}(Wo),Qo=function(){function e(e){this.context=e}return e.prototype.resolveExternalReference=function(e){if("@angular/core"!==e.moduleName)throw new Error("Cannot resolve external reference to "+e.moduleName+", only references to @angular/core are supported.");if(!this.context.hasOwnProperty(e.name))throw new Error("No value provided for @angular/core symbol '"+e.name+"'.");return this.context[e.name]},e.prototype.parameters=function(e){throw new Error("Not implemented.")},e.prototype.annotations=function(e){throw new Error("Not implemented.")},e.prototype.shallowAnnotations=function(e){throw new Error("Not implemented.")},e.prototype.tryAnnotations=function(e){throw new Error("Not implemented.")},e.prototype.propMetadata=function(e){throw new Error("Not implemented.")},e.prototype.hasLifecycleHook=function(e,t){throw new Error("Not implemented.")},e.prototype.guards=function(e){throw new Error("Not implemented.")},e.prototype.componentModuleUrl=function(e,t){throw new Error("Not implemented.")},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
*/
function Xo(e){var t=e.type,n=e.bootstrap,r=e.declarations,i=e.imports,o=e.exports,s=e.schemas,a=e.containsForwardDecls,u=e.emitInline,p=e.id,l=[],c={type:t};if(n.length&&(c.bootstrap=Yo(n,a)),u)r.length&&(c.declarations=Yo(r,a)),i.length&&(c.imports=Yo(i,a)),o.length&&(c.exports=Yo(o,a));else{var h=function f(e){var t=e.type,n=e.declarations,r=e.imports,i=e.exports,o=e.containsForwardDecls,s={};return n.length&&(s.declarations=Yo(n,o)),r.length&&(s.imports=Yo(r,o)),i.length&&(s.exports=Yo(i,o)),0===Object.keys(s).length?null:new Pe(gt(Bn.setNgModuleScope),[t,go(s)],void 0,void 0,!0).toStmt()}(e);null!==h&&l.push(h)}return s&&s.length&&(c.schemas=St(s.map(function(e){return e.value}))),p&&(c.id=p),{expression:gt(Bn.defineNgModule).callFn([go(c)]),type:new ae(gt(Bn.NgModuleDefWithMeta,[new ae(t),$o(r),$o(i),$o(o)])),additionalStatements:l}}function Go(e){var t=ho({name:e.name,type:e.type,deps:e.deps,injectFn:Bn.inject}),n={factory:t.factory};return null!==e.providers&&(n.providers=e.providers),e.imports.length>0&&(n.imports=St(e.imports)),{expression:gt(Bn.defineInjector).callFn([go(n)]),type:new ae(gt(Bn.InjectorDef,[new ae(e.type)])),statements:t.statements}}function $o(e){var t=e.map(function(e){return function t(e){return new Se(e)}(e.type)});return e.length>0?Et(St(t)):de}function Yo(e,t){var n=St(e.map(function(e){return e.value}));return t?wt([],[new Je(n)]):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 Jo(e){var t=[];t.push({key:"name",value:bt(e.pipeName),quoted:!1}),t.push({key:"type",value:e.type,quoted:!1});var n=ho({name:e.name,type:e.type,deps:e.deps,injectFn:Bn.directiveInject});return t.push({key:"factory",value:n.factory,quoted:!1}),t.push({key:"pure",value:bt(e.pure),quoted:!1}),{expression:gt(Bn.definePipe).callFn([xt(t)]),type:new ae(gt(Bn.PipeDefWithMeta,[Eo(e.type,e.typeArgumentCount),new ae(new Ae(e.pipeName))])),statements:n.statements}}
/**
* @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 Zo,es=function es(e,t,n,r){this.input=t,this.errLocation=n,this.ctxLocation=r,this.message="Parser Error: "+e+" "+n+" ["+t+"] in "+r},ts=function ts(e,t){this.start=e,this.end=t},ns=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}(),rs=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}(ns),is=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}(ns),os=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}(ns),ss=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}(ns),as=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}(ns),us=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}(ns),ps=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}(ns),ls=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}(ns),cs=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}(ns),hs=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}(ns),fs=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}(ns),ds=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}(ns),vs=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}(ns),ms=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}(ns),ys=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}(ns),gs=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}(ns),_s=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}(ns),Es=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}(ns),Ss=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}(ns),xs=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}(ns),ws=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}(ns),Cs=function(e){function t(t,n,r,i){var o=e.call(this,new ts(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}(ns),bs=function bs(e,t,n,r,i){this.span=e,this.key=t,this.keyIsVar=n,this.name=r,this.expression=i},Ts=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}(),Ns=function(){function e(){}return e.prototype.visitBinary=function(e,t){return e.left.visit(this,t),e.right.visit(this,t),null},e.prototype.visitChain=function(e,t){return this.visitAll(e.expressions,t)},e.prototype.visitConditional=function(e,t){return e.condition.visit(this,t),e.trueExp.visit(this,t),e.falseExp.visit(this,t),null},e.prototype.visitPipe=function(e,t){return e.exp.visit(this,t),this.visitAll(e.args,t),null},e.prototype.visitFunctionCall=function(e,t){return e.target.visit(this,t),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,t),e.key.visit(this,t),null},e.prototype.visitKeyedWrite=function(e,t){return e.obj.visit(this,t),e.key.visit(this,t),e.value.visit(this,t),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,t),this.visitAll(e.args,t)},e.prototype.visitPrefixNot=function(e,t){return e.expression.visit(this,t),null},e.prototype.visitNonNullAssert=function(e,t){return e.expression.visit(this,t),null},e.prototype.visitPropertyRead=function(e,t){return e.receiver.visit(this,t),null},e.prototype.visitPropertyWrite=function(e,t){return e.receiver.visit(this,t),e.value.visit(this,t),null},e.prototype.visitSafePropertyRead=function(e,t){return e.receiver.visit(this,t),null},e.prototype.visitSafeMethodCall=function(e,t){return e.receiver.visit(this,t),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}(),Ps=function(){function e(){}return e.prototype.visitImplicitReceiver=function(e,t){return e},e.prototype.visitInterpolation=function(e,t){return new ys(e.span,e.strings,this.visitAll(e.expressions))},e.prototype.visitLiteralPrimitive=function(e,t){return new ds(e.span,e.value)},e.prototype.visitPropertyRead=function(e,t){return new us(e.span,e.receiver.visit(this),e.name)},e.prototype.visitPropertyWrite=function(e,t){return new ps(e.span,e.receiver.visit(this),e.name,e.value.visit(this))},e.prototype.visitSafePropertyRead=function(e,t){return new ls(e.span,e.receiver.visit(this),e.name)},e.prototype.visitMethodCall=function(e,t){return new Ss(e.span,e.receiver.visit(this),e.name,this.visitAll(e.args))},e.prototype.visitSafeMethodCall=function(e,t){return new xs(e.span,e.receiver.visit(this),e.name,this.visitAll(e.args))},e.prototype.visitFunctionCall=function(e,t){return new ws(e.span,e.target.visit(this),this.visitAll(e.args))},e.prototype.visitLiteralArray=function(e,t){return new vs(e.span,this.visitAll(e.expressions))},e.prototype.visitLiteralMap=function(e,t){return new ms(e.span,e.keys,this.visitAll(e.values))},e.prototype.visitBinary=function(e,t){return new gs(e.span,e.operation,e.left.visit(this),e.right.visit(this))},e.prototype.visitPrefixNot=function(e,t){return new _s(e.span,e.expression.visit(this))},e.prototype.visitNonNullAssert=function(e,t){return new Es(e.span,e.expression.visit(this))},e.prototype.visitConditional=function(e,t){return new as(e.span,e.condition.visit(this),e.trueExp.visit(this),e.falseExp.visit(this))},e.prototype.visitPipe=function(e,t){return new fs(e.span,e.exp.visit(this),e.name,this.visitAll(e.args))},e.prototype.visitKeyedRead=function(e,t){return new cs(e.span,e.obj.visit(this),e.key.visit(this))},e.prototype.visitKeyedWrite=function(e,t){return new hs(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 ss(e.span,this.visitAll(e.expressions))},e.prototype.visitQuote=function(e,t){return new rs(e.span,e.prefix,e.uninterpretedExpression,e.location)},e}(),Ms=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 ys(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 us(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 ps(e.span,n,e.name,r):e},e.prototype.visitSafePropertyRead=function(e,t){var n=e.receiver.visit(this);return n!==e.receiver?new ls(e.span,n,e.name):e},e.prototype.visitMethodCall=function(e,t){var n=e.receiver.visit(this),r=this.visitAll(e.args);return n!==e.receiver||r!==e.args?new Ss(e.span,n,e.name,r):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 xs(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 ws(e.span,n,r):e},e.prototype.visitLiteralArray=function(e,t){var n=this.visitAll(e.expressions);return n!==e.expressions?new vs(e.span,n):e},e.prototype.visitLiteralMap=function(e,t){var n=this.visitAll(e.values);return n!==e.values?new ms(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 gs(e.span,e.operation,n,r):e},e.prototype.visitPrefixNot=function(e,t){var n=e.expression.visit(this);return n!==e.expression?new _s(e.span,n):e},e.prototype.visitNonNullAssert=function(e,t){var n=e.expression.visit(this);return n!==e.expression?new Es(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!==e.falseExp?new as(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 fs(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 cs(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 hs(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 ss(e.span,n):e},e.prototype.visitQuote=function(e,t){return e},e}(),As=function As(t,n,r,i){this.name=t,this.expression=n,this.type=r,this.sourceSpan=i,this.isLiteral=this.type===e.ParsedPropertyType.LITERAL_ATTR,this.isAnimation=this.type===e.ParsedPropertyType.ANIMATION};(Zo=e.ParsedPropertyType||(e.ParsedPropertyType={}))[Zo.DEFAULT=0]="DEFAULT",Zo[Zo.LITERAL_ATTR=1]="LITERAL_ATTR",Zo[Zo.ANIMATION=2]="ANIMATION";var Is=function Is(e,t,n,r,i,o){this.name=e,this.targetOrPhase=t,this.type=n,this.handler=r,this.sourceSpan=i,this.handlerSpan=o},ks=function ks(e,t,n){this.name=e,this.value=t,this.sourceSpan=n},Rs=function Rs(e,t,n,r,i,o){this.name=e,this.type=t,this.securityContext=n,this.value=r,this.unit=i,this.sourceSpan=o},Os=function(){function e(){}return e.event=yt("$event"),e}(),Ds=function Ds(e,t){this.stmts=e,this.allowDefault=t,this.render3Stmts=e.map(function(e){return e instanceof Ge&&e.name==t.name&&e.value instanceof Ve?new Je(e.value.lhs.value):e})};function Fs(t,n,r,i,o,s){t||(t=new Gs);var a=Ls({createLiteralArrayConverter:function(e){return function(e){return St(e)}},createLiteralMapConverter:function(e){return function(t){return xt(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),u=new Xs(t,n,i,o,s),p=[];!function e(t,n){Array.isArray(t)?t.forEach(function(t){return e(t,n)}):n.push(t)}(a.visit(u,Vs.Statement),p),function l(e,t,n){for(var r=e-1;r>=0;r--)n.unshift(Ws(t,r))}(u.temporaryCount,i,p),u.usesImplicitReceiver&&t.notifyImplicitReceiverUse();var c=p.length-1,h=null;if(c>=0){var f=function d(e){return e instanceof Ye?e.expr:e instanceof Je?e.value:null}(p[c]);f&&(h=function v(e){return yt("pd_"+e)}(i),p[c]=h.set(f.cast(le).notIdentical(bt(!1))).toDeclStmt(null,[e.StmtModifier.Final]))}return new Ds(p,h)}function Ls(e,t){return function n(e,t){var n=new Qs(e);return t.visit(n)}(e,t)}var Bs,Vs,js=function js(e,t){this.stmts=e,this.currValExpr=t};function Us(t,n,r,i,o,s){t||(t=new Gs);var a=function u(e){return yt("currVal_"+e)}(i),p=new Xs(t,n,i,s),l=r.visit(p,Vs.Expression),c=Hs(p,i);return p.usesImplicitReceiver&&t.notifyImplicitReceiverUse(),0===p.temporaryCount&&o==Bs.TrySimple?new js([],l):(c.push(a.set(l).toDeclStmt(le,[e.StmtModifier.Final])),new js(c,a))}function Hs(e,t){for(var n=[],r=0;r<e.temporaryCount;r++)n.push(Ws(t,r));return n}function qs(e,t){return"tmp_"+e+"_"+t}function Ws(e,t){return new Ge(qs(e,t),Ke)}function zs(e,t){if(e!==Vs.Expression)throw new Error("Expected an expression, but saw "+t)}function Ks(e,t){return e===Vs.Statement?t.toStmt():t}!function(e){e[e.General=0]="General",e[e.TrySimple=1]="TrySimple"}(Bs||(Bs={})),function(e){e[e.Statement=0]="Statement",e[e.Expression=1]="Expression"}(Vs||(Vs={}));var Qs=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=a([e.exp],e.args).map(function(e){return e.visit(n,t)});return new $s(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 $s(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 $s(e.span,r,this._converterFactory.createLiteralMapConverter(e.keys))},t}(Ps),Xs=function(){function t(e,t,n,r,i){this._localResolver=e,this._implicitReceiver=t,this.bindingId=n,this.interpolationFunction=r,this.baseSourceSpan=i,this._nodeMap=new Map,this._resultMap=new Map,this._currentTemporary=0,this.temporaryCount=0,this.usesImplicitReceiver=!1}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 Ks(n,new Ve(r,this._visit(t.left,Vs.Expression),this._visit(t.right,Vs.Expression),void 0,this.convertSourceSpan(t.span)))},t.prototype.visitChain=function(e,t){return function n(e,t){if(e!==Vs.Statement)throw new Error("Expected a statement, but saw "+t)}(t,e),this.visitAll(e.expressions,t)},t.prototype.visitConditional=function(e,t){return Ks(t,this._visit(e.condition,Vs.Expression).conditional(this._visit(e.trueExp,Vs.Expression),this._visit(e.falseExp,Vs.Expression),this.convertSourceSpan(e.span)))},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,Vs.Expression);return Ks(t,e instanceof $s?e.converter(n):this._visit(e.target,Vs.Expression).callFn(n,this.convertSourceSpan(e.span)))},t.prototype.visitImplicitReceiver=function(e,t){return zs(t,e),this.usesImplicitReceiver=!0,this._implicitReceiver},t.prototype.visitInterpolation=function(e,t){zs(t,e);for(var n=[bt(e.expressions.length)],r=0;r<e.strings.length-1;r++)n.push(bt(e.strings[r])),n.push(this._visit(e.expressions[r],Vs.Expression));return n.push(bt(e.strings[e.strings.length-1])),this.interpolationFunction?this.interpolationFunction(n):e.expressions.length<=9?gt(on.inlineInterpolate).callFn(n):gt(on.interpolate).callFn([n[0],St(n.slice(1),void 0,this.convertSourceSpan(e.span))])},t.prototype.visitKeyedRead=function(e,t){var n=this.leftMostSafeNode(e);return n?this.convertSafeAccess(e,n,t):Ks(t,this._visit(e.obj,Vs.Expression).key(this._visit(e.key,Vs.Expression)))},t.prototype.visitKeyedWrite=function(e,t){var n=this._visit(e.obj,Vs.Expression),r=this._visit(e.key,Vs.Expression),i=this._visit(e.value,Vs.Expression);return Ks(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 Ks(t,bt(e.value,null==e.value||!0===e.value||!0===e.value?ce:void 0,this.convertSourceSpan(e.span)))},t.prototype._getLocal=function(e){return this._localResolver.getLocal(e)},t.prototype.visitMethodCall=function(e,t){if(e.receiver instanceof os&&"$any"==e.name){if(1!=(r=this.visitAll(e.args,Vs.Expression)).length)throw new Error("Invalid call to $any, expected 1 argument but received "+(r.length||"none"));return r[0].cast(le,this.convertSourceSpan(e.span))}var n=this.leftMostSafeNode(e);if(n)return this.convertSafeAccess(e,n,t);var r=this.visitAll(e.args,Vs.Expression),i=this.usesImplicitReceiver,o=null,s=this._visit(e.receiver,Vs.Expression);if(s===this._implicitReceiver){var a=this._getLocal(e.name);a&&(this.usesImplicitReceiver=i,o=a.callFn(r))}return null==o&&(o=s.callMethod(e.name,r,this.convertSourceSpan(e.span))),Ks(t,o)},t.prototype.visitPrefixNot=function(e,t){return Ks(t,function n(e,t){return new Oe(e,t)}(this._visit(e.expression,Vs.Expression)))},t.prototype.visitNonNullAssert=function(e,t){return Ks(t,function n(e,t){return new De(e,t)}(this._visit(e.expression,Vs.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.usesImplicitReceiver,o=this._visit(e.receiver,Vs.Expression);return o===this._implicitReceiver&&(r=this._getLocal(e.name))&&(this.usesImplicitReceiver=i),null==r&&(r=o.prop(e.name)),Ks(t,r)},t.prototype.visitPropertyWrite=function(e,t){var n=this._visit(e.receiver,Vs.Expression),r=this.usesImplicitReceiver,i=null;if(n===this._implicitReceiver){var o=this._getLocal(e.name);if(o){if(!(o instanceof je))throw new Error("Cannot assign to a reference or variable!");i=o,this.usesImplicitReceiver=r}}return null===i&&(i=n.prop(e.name)),Ks(t,i.set(this._visit(e.value,Vs.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,Vs.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 xs?new Ss(t.span,t.receiver,t.name,t.args):new us(t.span,t.receiver,t.name));var s=this._visit(e,Vs.Expression);return this._nodeMap.delete(t),i&&this.releaseTemporary(i),Ks(n,o.conditional(bt(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 Ee(qs(this.bindingId,e))},t.prototype.releaseTemporary=function(e){if(this._currentTemporary--,e.name!=qs(this.bindingId,this._currentTemporary))throw new Error("Temporary "+e.name+" released out of order")},t.prototype.convertSourceSpan=function(e){if(this.baseSourceSpan){var t=this.baseSourceSpan.start.moveBy(e.start),n=this.baseSourceSpan.start.moveBy(e.end);return new br(t,n)}return null},t}(),Gs=function(){function e(){}return e.prototype.notifyImplicitReceiverUse=function(){},e.prototype.getLocal=function(e){return e===Os.event.name?Os.event:null},e}(),$s=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}(ws),Ys=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(ma)||[]}(e);return e=function o(e){return e.replace(va,"")}(e),e=this._insertDirectives(e),a([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(Zs,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(ea,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(ta.lastIndex=0;null!==(t=ta.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,oa,this._colonHostPartReplacer)},e.prototype._convertColonHostContext=function(e){return this._convertColonRule(e,sa,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(aa,s,e[3]))}return i.join(",")}return aa+e[3]})},e.prototype._colonHostContextPartReplacer=function(e,t,n){return t.indexOf(na)>-1?this._colonHostPartReplacer(e,t,n):e+t+n+", "+t+" "+e+n},e.prototype._colonHostPartReplacer=function(e,t,n){return e+t.replace(na,"")+n},e.prototype._convertShadowDOMSelectors=function(e){return pa.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(ga),n=[],r=[],i=0,o=[],s=0;s<t.length;s++){var a=t[s];a==Ea&&i--,i>0?o.push(a):(o.length>0&&(r.push(o.join("")),n.push(Sa),o=[]),n.push(a)),a==_a&&i++}return o.length>0&&(r.push(o.join("")),n.push(Sa)),new wa(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(ya,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("{"+Sa)&&(s=n.blocks[i++],a=a.substring(Sa.length+1),u="{");var p=t(new xa(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 xa(i,o)})},e.prototype._scopeSelector=function(e,t,n,r){var i=this;return e.split(",").map(function(e){return e.trim().split(la)}).map(function(e){var o=s(e),u=o[0],p=o.slice(1);return a([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+")"+ca,"m")},e.prototype._applySelectorScope=function(e,t,n){return this._applySimpleSelectorScope(e,t,n)},e.prototype._applySimpleSelectorScope=function(e,t,n){if(ha.lastIndex=0,ha.test(e)){var r=this.strictStyling?"["+n+"]":t;return e.replace(ua,function(e,t){return t.replace(/([^:]*)(:*)(.*)/,function(e,t,n,i){return t+r+n+i})}).replace(ha,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(aa)>-1)r=i._applySimpleSelectorScope(e,t,n);else{var s=e.replace(ha,"");if(s.length>0){var a=s.match(/([^:]*)(:*)(.*)/);a&&(r=a[1]+o+a[2]+a[3])}}return r},a=new Js(e),u="",p=0,l=/( |>|\+|~(?!=))\s*/g,c=!((e=a.content()).indexOf(aa)>-1);null!==(r=l.exec(e));){var h=r[1],f=e.slice(p,r.index).trim();u+=((c=c||f.indexOf(aa)>-1)?s(f):f)+" "+h+" ",p=l.lastIndex}var d=e.substring(p);return u+=(c=c||d.indexOf(aa)>-1)?s(d):d,a.restore(u)},e.prototype._insertPolyfillHostInCssText=function(e){return e.replace(da,ra).replace(fa,na)},e}(),Js=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}(),Zs=/polyfill-next-selector[^}]*content:[\s]*?(['"])(.*?)\1[;\s]*}([^{]*?){/gim,ea=/(polyfill-rule)[^}]*(content:[\s]*(['"])(.*?)\3)[;\s]*[^}]*}/gim,ta=/(polyfill-unscoped-rule)[^}]*(content:[\s]*(['"])(.*?)\3)[;\s]*[^}]*}/gim,na="-shadowcsshost",ra="-shadowcsscontext",ia=")(?:\\(((?:\\([^)(]*\\)|[^)(]*)+?)\\))?([^,{]*)",oa=new RegExp("("+na+ia,"gim"),sa=new RegExp("("+ra+ia,"gim"),aa=na+"-no-combinator",ua=/-shadowcsshost-no-combinator([^\s]*)/,pa=[/::shadow/g,/::content/g,/\/shadow-deep\//g,/\/shadow\//g],la=/(?:>>>)|(?:\/deep\/)|(?:::ng-deep)/g,ca="([>\\s~+[.,{:][\\s\\S]*)?$",ha=/-shadowcsshost/gim,fa=/:host/gim,da=/:host-context/gim,va=/\/\*\s*[\s\S]*?\*\//g,ma=/\/\*\s*#\s*source(Mapping)?URL=[\s\S]+?\*\//g,ya=/(\s*)([^;\{\}]+?)(\s*)((?:{%BLOCK%}?\s*;?)|(?:\s*;))/g,ga=/([{}])/g,_a="{",Ea="}",Sa="%BLOCK%",xa=function xa(e,t){this.selector=e,this.content=t},wa=function wa(e,t){this.escapedString=e,this.blocks=t},Ca="_nghost-%COMP%",ba="_ngcontent-%COMP%",Ta=function Ta(e,t,n){this.name=e,this.moduleUrl=t,this.setValue=n},Na=function Na(e,t,n,r,i){this.outputCtx=e,this.stylesVar=t,this.dependencies=n,this.isShimmed=r,this.meta=i},Pa=function(){function t(e){this._urlResolver=e,this._shadowCss=new Ys}return t.prototype.compileComponent=function(e,t){var n=t.template;return this._compileStyles(e,t,new xn({styles:n.styles,styleUrls:n.styleUrls,moduleUrl:vn(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===E.Emulated},t.prototype._compileStyles=function(t,n,r,i,o){var s=this,a=r.styles.map(function(e){return bt(s._shimIfNeeded(e,i))}),u=[];r.styleUrls.forEach(function(e){var n=a.length;a.push(null),u.push(new Ta(Ma(null),e,function(e){return a[n]=t.importExpr(e)}))});var p=Ma(o?n:null),l=yt(p).set(St(a,new ue(le,[te.Const]))).toDeclStmt(null,o?[e.StmtModifier.Final]:[e.StmtModifier.Final,e.StmtModifier.Exported]);return t.statements.push(l),new Na(t,p,u,i,r)},t.prototype._shimIfNeeded=function(e,t){return t?this._shadowCss.shimCssText(e,ba,Ca):e},t}();function Ma(e){var t="styles";return e&&(t+="_"+dn(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 Aa=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}(),Ia=function(){function e(e,t,n){this.value=e,this.sourceSpan=t,this.i18n=n}return e.prototype.visit=function(e,t){return e.visitText(this,t)},e}(),ka=function(){function e(e,t,n,r,i,o){this.switchValue=e,this.type=t,this.cases=n,this.sourceSpan=r,this.switchValueSourceSpan=i,this.i18n=o}return e.prototype.visit=function(e,t){return e.visitExpansion(this,t)},e}(),Ra=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}(),Oa=function(){function e(e,t,n,r,i){this.name=e,this.value=t,this.sourceSpan=n,this.valueSpan=r,this.i18n=i}return e.prototype.visit=function(e,t){return e.visitAttribute(this,t)},e}(),Da=function(){function e(e,t,n,r,i,o,s){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,this.i18n=s}return e.prototype.visit=function(e,t){return e.visitElement(this,t)},e}(),Fa=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 La(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 Ba,Va=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(La(r,t,e))}),[].concat.apply([],n)},e}();!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_QUOTE=12]="ATTR_QUOTE",e[e.ATTR_VALUE=13]="ATTR_VALUE",e[e.DOC_TYPE=14]="DOC_TYPE",e[e.EXPANSION_FORM_START=15]="EXPANSION_FORM_START",e[e.EXPANSION_CASE_VALUE=16]="EXPANSION_CASE_VALUE",e[e.EXPANSION_CASE_EXP_START=17]="EXPANSION_CASE_EXP_START",e[e.EXPANSION_CASE_EXP_END=18]="EXPANSION_CASE_EXP_END",e[e.EXPANSION_FORM_END=19]="EXPANSION_FORM_END",e[e.EOF=20]="EOF"}(Ba||(Ba={}));var ja=function ja(e,t,n){this.type=e,this.parts=t,this.sourceSpan=n},Ua=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}(Tr),Ha=function Ha(e,t){this.tokens=e,this.errors=t},qa=/\r\n?/g;function Wa(e){return'Unexpected character "'+(e===Vn?"EOF":String.fromCharCode(e))+'"'}function za(e){return'Unknown entity "'+e+'" - use the "&#<decimal>;" or "&#x<hex>;" syntax'}var Ka=function Ka(e){this.error=e},Qa=function(){function t(e,t,n){this._getTagDefinition=t,this._currentTokenStart=null,this._currentTokenType=null,this._expansionCaseStack=[],this._inInterpolation=!1,this.tokens=[],this.errors=[],this._tokenizeIcu=n.tokenizeExpansionForms||!1,this._interpolationConfig=n.interpolationConfig||Mo,this._leadingTriviaCodePoints=n.leadingTriviaChars&&n.leadingTriviaChars.map(function(e){return e.codePointAt(0)||0});var r=n.range||{endPos:e.content.length,startPos:0,startLine:0,startCol:0};this._cursor=n.escapedString?new eu(e,r):new Za(e,r);try{this._cursor.init()}catch(e){this.handleError(e)}}return t.prototype._processCarriageReturns=function(e){return e.replace(qa,"\n")},t.prototype.tokenize=function(){for(;this._cursor.peek()!==Vn;){var e=this._cursor.clone();try{this._attemptCharCode(60)?this._attemptCharCode(33)?this._attemptCharCode(91)?this._consumeCdata(e):this._attemptCharCode($n)?this._consumeComment(e):this._consumeDocType(e):this._attemptCharCode(Yn)?this._consumeTagClose(e):this._consumeTagOpen(e):this._tokenizeIcu&&this._tokenizeExpansionForm()||this._consumeText()}catch(e){this.handleError(e)}}return this._beginToken(Ba.EOF),this._endToken([]),new Ha(function t(e){for(var t=[],n=void 0,r=0;r<e.length;r++){var i=e[r];n&&n.type==Ba.TEXT&&i.type==Ba.TEXT?(n.parts[0]+=i.parts[0],n.sourceSpan.end=i.sourceSpan.end):t.push(n=i)}return t}(this.tokens),this.errors)},t.prototype._tokenizeExpansionForm=function(){if(this.isExpansionFormStart())return this._consumeExpansionFormStart(),!0;if(function e(t){return t===Zn||_r(t)||gr(t)}(this._cursor.peek())&&this._isInExpansionForm())return this._consumeExpansionCaseStart(),!0;if(125===this._cursor.peek()){if(this._isInExpansionCase())return this._consumeExpansionCaseEnd(),!0;if(this._isInExpansionForm())return this._consumeExpansionFormEnd(),!0}return!1},t.prototype._beginToken=function(e,t){void 0===t&&(t=this._cursor.clone()),this._currentTokenStart=t,this._currentTokenType=e},t.prototype._endToken=function(e,t){if(void 0===t&&(t=this._cursor.clone()),null===this._currentTokenStart)throw new Ua("Programming error - attempted to end a token when there was no start to the token",this._currentTokenType,this._cursor.getSpan(t));if(null===this._currentTokenType)throw new Ua("Programming error - attempted to end a token which has no token type",null,this._cursor.getSpan(this._currentTokenStart));var n=new ja(this._currentTokenType,e,this._cursor.getSpan(this._currentTokenStart,this._leadingTriviaCodePoints));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 Ua(e,this._currentTokenType,t);return this._currentTokenStart=null,this._currentTokenType=null,new Ka(n)},t.prototype.handleError=function(e){if(e instanceof tu&&(e=this._createError(e.msg,this._cursor.getSpan(e.cursor))),!(e instanceof Ka))throw e;this.errors.push(e.error)},t.prototype._attemptCharCode=function(e){return this._cursor.peek()===e&&(this._cursor.advance(),!0)},t.prototype._attemptCharCodeCaseInsensitive=function(e){return!!function t(e,n){return Ja(e)==Ja(n)}(this._cursor.peek(),e)&&(this._cursor.advance(),!0)},t.prototype._requireCharCode=function(e){var t=this._cursor.clone();if(!this._attemptCharCode(e))throw this._createError(Wa(this._cursor.peek()),this._cursor.getSpan(t))},t.prototype._attemptStr=function(e){var t=e.length;if(this._cursor.charsLeft()<t)return!1;for(var n=this._cursor.clone(),r=0;r<t;r++)if(!this._attemptCharCode(e.charCodeAt(r)))return this._cursor=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._cursor.clone();if(!this._attemptStr(e))throw this._createError(Wa(this._cursor.peek()),this._cursor.getSpan(t))},t.prototype._attemptCharCodeUntilFn=function(e){for(;!e(this._cursor.peek());)this._cursor.advance()},t.prototype._requireCharCodeUntilFn=function(e,t){var n=this._cursor.clone();if(this._attemptCharCodeUntilFn(e),this._cursor.clone().diff(n)<t)throw this._createError(Wa(this._cursor.peek()),this._cursor.getSpan(n))},t.prototype._attemptUntilChar=function(e){for(;this._cursor.peek()!==e;)this._cursor.advance()},t.prototype._readChar=function(e){if(e&&38===this._cursor.peek())return this._decodeEntity();var t=String.fromCodePoint(this._cursor.peek());return this._cursor.advance(),t},t.prototype._decodeEntity=function(){var e=this._cursor.clone();if(this._cursor.advance(),!this._attemptCharCode(35)){var t=this._cursor.clone();if(this._attemptCharCodeUntilFn(Ya),this._cursor.peek()!=Jn)return this._cursor=t,"&";var n=this._cursor.getChars(t);this._cursor.advance();var r=d[n];if(!r)throw this._createError(za(n),this._cursor.getSpan(e));return r}var i=this._attemptCharCode(120)||this._attemptCharCode(88),o=this._cursor.clone();if(this._attemptCharCodeUntilFn($a),this._cursor.peek()!=Jn)throw this._createError(Wa(this._cursor.peek()),this._cursor.getSpan());var s=this._cursor.getChars(o);this._cursor.advance();try{var a=parseInt(s,i?16:10);return String.fromCharCode(a)}catch(t){throw this._createError(za(this._cursor.getChars(e)),this._cursor.getSpan())}},t.prototype._consumeRawText=function(e,t){this._beginToken(e?Ba.ESCAPABLE_RAW_TEXT:Ba.RAW_TEXT);for(var n=[];;){var r=this._cursor.clone(),i=t();if(this._cursor=r,i)break;n.push(this._readChar(e))}return this._endToken([this._processCarriageReturns(n.join(""))])},t.prototype._consumeComment=function(e){var t=this;this._beginToken(Ba.COMMENT_START,e),this._requireCharCode($n),this._endToken([]),this._consumeRawText(!1,function(){return t._attemptStr("--\x3e")}),this._beginToken(Ba.COMMENT_END),this._requireStr("--\x3e"),this._endToken([])},t.prototype._consumeCdata=function(e){var t=this;this._beginToken(Ba.CDATA_START,e),this._requireStr("CDATA["),this._endToken([]),this._consumeRawText(!1,function(){return t._attemptStr("]]>")}),this._beginToken(Ba.CDATA_END),this._requireStr("]]>"),this._endToken([])},t.prototype._consumeDocType=function(e){this._beginToken(Ba.DOC_TYPE,e);var t=this._cursor.clone();this._attemptUntilChar(er);var n=this._cursor.getChars(t);this._cursor.advance(),this._endToken([n])},t.prototype._consumePrefixAndName=function(){for(var e,t,n=this._cursor.clone(),r="";58!==this._cursor.peek()&&!(((e=this._cursor.peek())<ur||dr<e)&&(e<ir||sr<e)&&(e<tr||e>rr));)this._cursor.advance();return 58===this._cursor.peek()?(r=this._cursor.getChars(n),this._cursor.advance(),t=this._cursor.clone()):t=n,this._requireCharCodeUntilFn(Ga,""===r?0:1),[r,this._cursor.getChars(t)]},t.prototype._consumeTagOpen=function(t){var n,r,i,o=this.tokens.length,s=this._cursor.clone();try{if(!_r(this._cursor.peek()))throw this._createError(Wa(this._cursor.peek()),this._cursor.getSpan(t));for(r=(i=this._consumeTagOpenStart(t)).parts[0],n=i.parts[1],this._attemptCharCodeUntilFn(Xa);this._cursor.peek()!==Yn&&this._cursor.peek()!==er;)this._consumeAttributeName(),this._attemptCharCodeUntilFn(Xa),this._attemptCharCode(Zn)&&(this._attemptCharCodeUntilFn(Xa),this._consumeAttributeValue()),this._attemptCharCodeUntilFn(Xa);this._consumeTagOpenEnd()}catch(e){if(e instanceof Ka)return this._cursor=s,i&&(this.tokens.length=o),this._beginToken(Ba.TEXT,t),void this._endToken(["<"]);throw e}var a=this._getTagDefinition(n).contentType;a===e.TagContentType.RAW_TEXT?this._consumeRawTextWithTagClose(r,n,!1):a===e.TagContentType.ESCAPABLE_RAW_TEXT&&this._consumeRawTextWithTagClose(r,n,!0)},t.prototype._consumeRawTextWithTagClose=function(e,t,n){var r=this;this._consumeRawText(n,function(){return!!r._attemptCharCode(60)&&!!r._attemptCharCode(Yn)&&(r._attemptCharCodeUntilFn(Xa),!!r._attemptStrCaseInsensitive(t)&&(r._attemptCharCodeUntilFn(Xa),r._attemptCharCode(er)))}),this._beginToken(Ba.TAG_CLOSE),this._requireCharCodeUntilFn(function(e){return e===er},3),this._cursor.advance(),this._endToken([e,t])},t.prototype._consumeTagOpenStart=function(e){this._beginToken(Ba.TAG_OPEN_START,e);var t=this._consumePrefixAndName();return this._endToken(t)},t.prototype._consumeAttributeName=function(){var e=this._cursor.peek();if(e===Xn||e===Kn)throw this._createError(Wa(e),this._cursor.getSpan());this._beginToken(Ba.ATTR_NAME);var t=this._consumePrefixAndName();this._endToken(t)},t.prototype._consumeAttributeValue=function(){var e;if(this._cursor.peek()===Xn||this._cursor.peek()===Kn){this._beginToken(Ba.ATTR_QUOTE);var t=this._cursor.peek();this._cursor.advance(),this._endToken([String.fromCodePoint(t)]),this._beginToken(Ba.ATTR_VALUE);for(var n=[];this._cursor.peek()!==t;)n.push(this._readChar(!0));e=n.join(""),this._endToken([this._processCarriageReturns(e)]),this._beginToken(Ba.ATTR_QUOTE),this._cursor.advance(),this._endToken([String.fromCodePoint(t)])}else{this._beginToken(Ba.ATTR_VALUE);var r=this._cursor.clone();this._requireCharCodeUntilFn(Ga,1),e=this._cursor.getChars(r),this._endToken([this._processCarriageReturns(e)])}},t.prototype._consumeTagOpenEnd=function(){var e=this._attemptCharCode(Yn)?Ba.TAG_OPEN_END_VOID:Ba.TAG_OPEN_END;this._beginToken(e),this._requireCharCode(er),this._endToken([])},t.prototype._consumeTagClose=function(e){this._beginToken(Ba.TAG_CLOSE,e),this._attemptCharCodeUntilFn(Xa);var t=this._consumePrefixAndName();this._attemptCharCodeUntilFn(Xa),this._requireCharCode(er),this._endToken(t)},t.prototype._consumeExpansionFormStart=function(){this._beginToken(Ba.EXPANSION_FORM_START),this._requireCharCode(123),this._endToken([]),this._expansionCaseStack.push(Ba.EXPANSION_FORM_START),this._beginToken(Ba.RAW_TEXT);var e=this._readUntil(44);this._endToken([e]),this._requireCharCode(44),this._attemptCharCodeUntilFn(Xa),this._beginToken(Ba.RAW_TEXT);var t=this._readUntil(44);this._endToken([t]),this._requireCharCode(44),this._attemptCharCodeUntilFn(Xa)},t.prototype._consumeExpansionCaseStart=function(){this._beginToken(Ba.EXPANSION_CASE_VALUE);var e=this._readUntil(123).trim();this._endToken([e]),this._attemptCharCodeUntilFn(Xa),this._beginToken(Ba.EXPANSION_CASE_EXP_START),this._requireCharCode(123),this._endToken([]),this._attemptCharCodeUntilFn(Xa),this._expansionCaseStack.push(Ba.EXPANSION_CASE_EXP_START)},t.prototype._consumeExpansionCaseEnd=function(){this._beginToken(Ba.EXPANSION_CASE_EXP_END),this._requireCharCode(125),this._endToken([]),this._attemptCharCodeUntilFn(Xa),this._expansionCaseStack.pop()},t.prototype._consumeExpansionFormEnd=function(){this._beginToken(Ba.EXPANSION_FORM_END),this._requireCharCode(125),this._endToken([]),this._expansionCaseStack.pop()},t.prototype._consumeText=function(){var e=this._cursor.clone();this._beginToken(Ba.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._cursor.peek()||this._cursor.peek()===Vn)return!0;if(this._tokenizeIcu&&!this._inInterpolation){if(this.isExpansionFormStart())return!0;if(125===this._cursor.peek()&&this._isInExpansionCase())return!0}return!1},t.prototype._readUntil=function(e){var t=this._cursor.clone();return this._attemptUntilChar(e),this._cursor.getChars(t)},t.prototype._isInExpansionCase=function(){return this._expansionCaseStack.length>0&&this._expansionCaseStack[this._expansionCaseStack.length-1]===Ba.EXPANSION_CASE_EXP_START},t.prototype._isInExpansionForm=function(){return this._expansionCaseStack.length>0&&this._expansionCaseStack[this._expansionCaseStack.length-1]===Ba.EXPANSION_FORM_START},t.prototype.isExpansionFormStart=function(){if(123!==this._cursor.peek())return!1;if(this._interpolationConfig){var e=this._cursor.clone(),t=this._attemptStr(this._interpolationConfig.start);return this._cursor=e,!t}return!0},t}();function Xa(e){return!yr(e)||e===Vn}function Ga(e){return yr(e)||e===er||e===Yn||e===Xn||e===Kn||e===Zn}function $a(e){return e==Jn||e==Vn||!function t(e){return e>=ur&&e<=pr||e>=ir&&e<=or||gr(e)}(e)}function Ya(e){return e==Jn||e==Vn||!_r(e)}function Ja(e){return e>=ur&&e<=dr?e-ur+ir:e}var Za=function(){function e(t,n){if(t instanceof e)this.file=t.file,this.input=t.input,this.end=t.end,this.state=i({},t.state);else{if(!n)throw new Error("Programming error: the range argument must be provided with a file argument.");this.file=t,this.input=t.content,this.end=n.endPos,this.state={peek:-1,offset:n.startPos,line:n.startLine,column:n.startCol}}}return e.prototype.clone=function(){return new e(this)},e.prototype.peek=function(){return this.state.peek},e.prototype.charsLeft=function(){return this.end-this.state.offset},e.prototype.diff=function(e){return this.state.offset-e.state.offset},e.prototype.advance=function(){this.advanceState(this.state)},e.prototype.init=function(){this.updatePeek(this.state)},e.prototype.getSpan=function(e,t){if(e=e||this,t)for(e=e.clone();this.diff(e)>0&&-1!==t.indexOf(e.peek());)e.advance();return new br(new wr(e.file,e.state.offset,e.state.line,e.state.column),new wr(this.file,this.state.offset,this.state.line,this.state.column))},e.prototype.getChars=function(e){return this.input.substring(e.state.offset,this.state.offset)},e.prototype.charAt=function(e){return this.input.charCodeAt(e)},e.prototype.advanceState=function(e){if(e.offset>=this.end)throw this.state=e,new tu('Unexpected character "EOF"',this);var t=this.charAt(e.offset);t===Un?(e.line++,e.column=0):Er(t)||e.column++,e.offset++,this.updatePeek(e)},e.prototype.updatePeek=function(e){e.peek=e.offset>=this.end?Vn:this.charAt(e.offset)},e}(),eu=function(e){function t(n,r){var o=this;return n instanceof t?(o=e.call(this,n)||this).internalState=i({},n.internalState):(o=e.call(this,n,r)||this).internalState=o.state,o}return n(t,e),t.prototype.advance=function(){this.state=this.internalState,e.prototype.advance.call(this),this.processEscapeSequence()},t.prototype.init=function(){e.prototype.init.call(this),this.processEscapeSequence()},t.prototype.clone=function(){return new t(this)},t.prototype.getChars=function(e){for(var t=e.clone(),n="";t.internalState.offset<this.internalState.offset;)n+=String.fromCodePoint(t.peek()),t.advance();return n},t.prototype.processEscapeSequence=function(){var e=this,t=function(){return e.internalState.peek};if(92===t())if(this.internalState=i({},this.state),this.advanceState(this.internalState),t()===lr)this.state.peek=Un;else if(t()===cr)this.state.peek=Wn;else if(t()===fr)this.state.peek=Hn;else if(t()===hr)this.state.peek=jn;else if(98===t())this.state.peek=8;else if(t()===pr)this.state.peek=qn;else if(117===t())if(this.advanceState(this.internalState),123===t()){this.advanceState(this.internalState);for(var n=this.clone(),r=0;125!==t();)this.advanceState(this.internalState),r++;this.state.peek=this.decodeHexDigits(n,r)}else n=this.clone(),this.advanceState(this.internalState),this.advanceState(this.internalState),this.advanceState(this.internalState),this.state.peek=this.decodeHexDigits(n,4);else if(120===t())this.advanceState(this.internalState),n=this.clone(),this.advanceState(this.internalState),this.state.peek=this.decodeHexDigits(n,2);else if(Sr(t())){for(var o="",s=0,a=this.clone();Sr(t())&&s<3;)a=this.clone(),o+=String.fromCodePoint(t()),this.advanceState(this.internalState),s++;this.state.peek=parseInt(o,8),this.internalState=a.internalState}else Er(this.internalState.peek)?(this.advanceState(this.internalState),this.state=this.internalState):this.state.peek=this.internalState.peek},t.prototype.decodeHexDigits=function(e,t){var n=this.input.substr(e.internalState.offset,t),r=parseInt(n,16);if(isNaN(r))throw e.state=e.internalState,new tu("Invalid hexadecimal escape sequence",e);return r},t}(Za),tu=function tu(e,t){this.msg=e,this.cursor=t},nu=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}(Tr),ru=function ru(e,t){this.rootNodes=e,this.errors=t},iu=function(){function e(e){this.getTagDefinition=e}return e.prototype.parse=function(e,t,n){var r=function i(e,t,n,r){return void 0===r&&(r={}),new Qa(new Cr(e,t),n,r).tokenize()}(e,t,this.getTagDefinition,n),o=new ou(r.tokens,this.getTagDefinition).build();return new ru(o.rootNodes,r.errors.concat(o.errors))},e}(),ou=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!==Ba.EOF;)this._peek.type===Ba.TAG_OPEN_START?this._consumeStartTag(this._advance()):this._peek.type===Ba.TAG_CLOSE?this._consumeEndTag(this._advance()):this._peek.type===Ba.CDATA_START?(this._closeVoidElement(),this._consumeCdata(this._advance())):this._peek.type===Ba.COMMENT_START?(this._closeVoidElement(),this._consumeComment(this._advance())):this._peek.type===Ba.TEXT||this._peek.type===Ba.RAW_TEXT||this._peek.type===Ba.ESCAPABLE_RAW_TEXT?(this._closeVoidElement(),this._consumeText(this._advance())):this._peek.type===Ba.EXPANSION_FORM_START?this._consumeExpansion(this._advance()):this._advance();return new ru(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(Ba.CDATA_END)},e.prototype._consumeComment=function(e){var t=this._advanceIf(Ba.RAW_TEXT);this._advanceIf(Ba.COMMENT_END);var n=null!=t?t.parts[0].trim():null;this._addToParent(new Fa(n,e.sourceSpan))},e.prototype._consumeExpansion=function(e){for(var t=this._advance(),n=this._advance(),r=[];this._peek.type===Ba.EXPANSION_CASE_VALUE;){var i=this._parseExpansionCase();if(!i)return;r.push(i)}if(this._peek.type===Ba.EXPANSION_FORM_END){var o=new br(e.sourceSpan.start,this._peek.sourceSpan.end);this._addToParent(new ka(t.parts[0],n.parts[0],r,o,t.sourceSpan)),this._advance()}else this._errors.push(nu.create(null,this._peek.sourceSpan,"Invalid ICU message. Missing '}'."))},e.prototype._parseExpansionCase=function(){var t=this._advance();if(this._peek.type!==Ba.EXPANSION_CASE_EXP_START)return this._errors.push(nu.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 ja(Ba.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 Ra(t.parts[0],o.rootNodes,s,t.sourceSpan,a)},e.prototype._collectExpansionExpTokens=function(e){for(var t=[],n=[Ba.EXPANSION_CASE_EXP_START];;){if(this._peek.type!==Ba.EXPANSION_FORM_START&&this._peek.type!==Ba.EXPANSION_CASE_EXP_START||n.push(this._peek.type),this._peek.type===Ba.EXPANSION_CASE_EXP_END){if(!su(n,Ba.EXPANSION_CASE_EXP_START))return this._errors.push(nu.create(null,e.sourceSpan,"Invalid ICU message. Missing '}'.")),null;if(n.pop(),0==n.length)return t}if(this._peek.type===Ba.EXPANSION_FORM_END){if(!su(n,Ba.EXPANSION_FORM_START))return this._errors.push(nu.create(null,e.sourceSpan,"Invalid ICU message. Missing '}'.")),null;n.pop()}if(this._peek.type===Ba.EOF)return this._errors.push(nu.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 Ia(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===Ba.ATTR_NAME;)r.push(this._consumeAttr(this._advance()));var i=this._getElementFullName(t,n,this._getParentElement()),o=!1;if(this._peek.type===Ba.TAG_OPEN_END_VOID){this._advance(),o=!0;var s=this.getTagDefinition(i);s.canSelfClose||null!==h(i)||s.isVoid||this._errors.push(nu.create(i,e.sourceSpan,'Only void and foreign elements can be self closed "'+e.parts[1]+'"'))}else this._peek.type===Ba.TAG_OPEN_END&&(this._advance(),o=!1);var a=new br(e.sourceSpan.start,this._peek.sourceSpan.start),u=new Da(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(),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(nu.create(t,e.sourceSpan,'Void elements do not have end tags "'+e.parts[1]+'"')):this._popElement(t)||this._errors.push(nu.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=f(e.parts[0],e.parts[1]),n=e.sourceSpan.end,r="",i=void 0;if(this._peek.type===Ba.ATTR_QUOTE&&this._advance(),this._peek.type===Ba.ATTR_VALUE){var o=this._advance();r=o.parts[0],n=o.sourceSpan.end,i=o.sourceSpan}return this._peek.type===Ba.ATTR_QUOTE&&(n=this._advance().sourceSpan.end),new Oa(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(!p(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""===e&&""===(e=this.getTagDefinition(t).implicitNamespacePrefix||"")&&null!=n&&(e=h(n.name)),f(e,t)},e}();function su(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
*/var au=function(e){function t(){return e.call(this,_)||this}return n(t,e),t.prototype.parse=function(t,n,r){return e.prototype.parse.call(this,t,n,r)},t}(iu),uu=new Set(["pre","template","textarea","script","style"]),pu=" \f\n\r\t\v ᠎ - \u2028\u2029   \ufeff",lu=new RegExp("[^"+pu+"]"),cu=new RegExp("["+pu+"]{2,}","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 hu(e){return e.replace(new RegExp(v,"g")," ")}var fu=function(){function e(){}return e.prototype.visitElement=function(e,t){return uu.has(e.name)||function n(e){return e.some(function(e){return"ngPreserveWhitespaces"===e.name})}(e.attrs)?new Da(e.name,La(this,e.attrs),e.children,e.sourceSpan,e.startSourceSpan,e.endSourceSpan,e.i18n):new Da(e.name,e.attrs,La(this,e.children),e.sourceSpan,e.startSourceSpan,e.endSourceSpan,e.i18n)},e.prototype.visitAttribute=function(e,t){return"ngPreserveWhitespaces"!==e.name?e:null},e.prototype.visitText=function(e,t){return e.value.match(lu)?new Ia(hu(e.value).replace(cu," "),e.sourceSpan,e.i18n):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}();function du(e){return new ru(La(new fu,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
*/var vu=["zero","one","two","few","many","other"];function mu(e){var t=new Su;return new _u(La(t,e),t.isExpanded,t.errors)}var yu,gu,_u=function _u(e,t,n){this.nodes=e,this.expanded=t,this.errors=n},Eu=function(e){function t(t,n){return e.call(this,t,n)||this}return n(t,e),t}(Tr),Su=function(){function e(){this.isExpanded=!1,this.errors=[]}return e.prototype.visitElement=function(e,t){return new Da(e.name,e.attrs,La(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!=vu.indexOf(e.value)||e.value.match(/^=\d+$/)||t.push(new Eu(e.valueSourceSpan,'Plural cases should be "=<number>" or one of '+vu.join(", ")));var n=mu(e.expression);return t.push.apply(t,a(n.errors)),new Da("ng-template",[new Oa("ngPluralCase",""+e.value,e.valueSourceSpan)],n.nodes,e.sourceSpan,e.sourceSpan,e.sourceSpan)}),r=new Oa("[ngPlural]",e.switchValue,e.switchValueSourceSpan);return new Da("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=mu(e.expression);return t.push.apply(t,a(n.errors)),new Da("ng-template","other"===e.value?[new Oa("ngSwitchDefault","",e.valueSourceSpan)]:[new Oa("ngSwitchCase",""+e.value,e.valueSourceSpan)],n.nodes,e.sourceSpan,e.sourceSpan,e.sourceSpan)}),r=new Oa("[ngSwitch]",e.switchValue,e.switchValueSourceSpan);return new Da("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}(),xu=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}(),wu=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}(),Cu=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}(),bu=((yu={})[4]=4,yu[1]=1,yu[2]=2,yu[0]=0,yu[3]=3,yu),Tu=function(){function e(e,t,n,r,i,o){this.name=e,this.type=t,this.securityContext=n,this.value=r,this.unit=i,this.sourceSpan=o,this.isAnimation=4===this.type}return e.fromBoundProperty=function(t){return new e(t.name,bu[t.type],t.securityContext,t.value,t.unit,t.sourceSpan)},e.prototype.visit=function(e,t){return e.visitElementProperty(this,t)},e}(),Nu=function(){function e(t,n,r,i,o,s){this.name=t,this.target=n,this.phase=r,this.handler=i,this.sourceSpan=o,this.handlerSpan=s,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.fromParsedEvent=function(t){return new e(t.name,0===t.type?t.targetOrPhase:null,1===t.type?t.targetOrPhase:null,t.handler,t.sourceSpan,t.handlerSpan)},e.prototype.visit=function(e,t){return e.visitEvent(this,t)},e}(),Pu=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}(),Mu=function(){function e(e,t,n){this.name=e,this.value=t,this.sourceSpan=n}return e.fromParsedVariable=function(t){return new e(t.name,t.value,t.sourceSpan)},e.prototype.visit=function(e,t){return e.visitVariable(this,t)},e}(),Au=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}(),Iu=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}(),ku=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}(),Ru=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}(),Ou=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}();(gu=e.ProviderAstType||(e.ProviderAstType={}))[gu.PublicService=0]="PublicService",gu[gu.PrivateService=1]="PrivateService",gu[gu.Component=2]="Component",gu[gu.Directive=3]="Directive",gu[gu.Builtin=4]="Builtin";var Du=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}(),Fu=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}(),Lu=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(Bu(r,t,e))}),[].concat.apply([],n)},t}(Fu);function Bu(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 Vu=function(e){function t(t,n){return e.call(this,n,t)||this}return n(t,e),t}(Tr),ju=function ju(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 Ku(n,{meta:e,queryId:t++})}),n}(t),this.viewProviders=new Map,t.viewProviders.forEach(function(e){null==n.viewProviders.get(Sn(e.token))&&n.viewProviders.set(Sn(e.token),!0)})},Uu=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){zu([{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){zu(t.providers,e.ProviderAstType.PublicService,!1,n,r,i,!1),zu(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 Ku(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=an(this.viewContext.reflector,on.TemplateRef);this._addQueryReadsTo(d,d,this._queriedTokens)}s.forEach(function(e){var t=e.value||an(l.viewContext.reflector,on.ElementRef);l._addQueryReadsTo({value:e.name},t,l._queriedTokens)}),this._queriedTokens.get(this.viewContext.reflector.resolveExternalReference(on.ViewContainerRef))&&(this.transformedHasViewContainer=!0),Array.from(this._allProviders.values()).forEach(function(e){(e.eager||l._queriedTokens.get(Sn(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,a(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=Sn(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(Sn(e)))&&n.push.apply(n,a(t.filter(function(e){return e.meta.descendants||i<=1}))),r._directiveAsts.length>0&&i++,r=r._parent;return(t=this.viewContext.viewQueries.get(Sn(e)))&&n.push.apply(n,a(t)),n},t.prototype._getOrCreateLocalProvider=function(t,n,r){var i=this,o=this._allProviders.get(Sn(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(Sn(n));if(s)return s;if(null!=this._seenProviders.get(Sn(n)))return this.viewContext.errors.push(new Vu("Cannot instantiate cyclic dependency! "+En(n),this._sourceSpan)),null;this._seenProviders.set(Sn(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 qu(e,{useExisting:n,useValue:t,deps:s})});return s=Wu(o,{eager:r,providers:a}),this._transformedProviders.set(Sn(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(Sn(n.token)===this.viewContext.reflector.resolveExternalReference(on.Renderer)||Sn(n.token)===this.viewContext.reflector.resolveExternalReference(on.ElementRef)||Sn(n.token)===this.viewContext.reflector.resolveExternalReference(on.ChangeDetectorRef)||Sn(n.token)===this.viewContext.reflector.resolveExternalReference(on.TemplateRef))return n;Sn(n.token)===this.viewContext.reflector.resolveExternalReference(on.ViewContainerRef)&&(this.transformedHasViewContainer=!0)}if(Sn(n.token)===this.viewContext.reflector.resolveExternalReference(on.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;)i._isViewRoot&&(o=!1),s=(i=i._parent)._getLocalDependency(e.ProviderAstType.PublicService,n,o);s||(s=!n.isHost||this.viewContext.component.isHost||this.viewContext.component.type.reference===Sn(n.token)||null!=this.viewContext.viewProviders.get(Sn(n.token))?n:n.isOptional?{isValue:!0,value:null}:null)}return s||this.viewContext.errors.push(new Vu("No provider for "+En(n.token),this._sourceSpan)),s},t}(),Hu=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){zu([{token:{identifier:t},useClass:t}],e.ProviderAstType.PublicService,!0,i,o._errors,o._allProviders,!0)}),zu(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(Sn(e));if(!r)return null;var i=this._transformedProviders.get(Sn(e));if(i)return i;if(null!=this._seenProviders.get(Sn(e)))return this._errors.push(new Vu("Cannot instantiate cyclic dependency! "+En(e),r.sourceSpan)),null;this._seenProviders.set(Sn(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 qu(e,{useExisting:o,useValue:i,deps:s})});return i=Wu(r,{eager:t,providers:o}),this._transformedProviders.set(Sn(e),i),i},t.prototype._getDependency=function(e,t,n){return void 0===t&&(t=!1),e.isSkipSelf||null==e.token||Sn(e.token)===this.reflector.resolveExternalReference(on.Injector)||Sn(e.token)===this.reflector.resolveExternalReference(on.ComponentFactoryResolver)||this._getOrCreateLocalProvider(e.token,t),e},t}();function qu(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 Wu(e,t){return new Ou(e.token,e.multiProvider,e.eager||t.eager,t.providers,e.providerType,e.lifecycleHooks,e.sourceSpan,e.isModule)}function zu(e,t,n,r,i,o,s){e.forEach(function(e){var a=o.get(Sn(e.token));null!=a&&!!a.multiProvider!=!!e.multi&&i.push(new Vu("Mixing multi and non multi provider is not possible for token "+En(a.token),r)),a?(e.multi||(a.providers.length=0),a.providers.push(e)):(a=new Ou(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(Sn(e.token),a))})}function Ku(e,t){t.meta.selectors.forEach(function(n){var r=e.get(Sn(n));r||(r=[],e.set(Sn(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
*/var Qu=function Qu(e,t){this.style=e,this.styleUrls=t};function Xu(e){if(null==e||0===e.length||"/"==e[0])return!1;var t=e.match(Yu);return null===t||"package"==t[1]||"asset"==t[1]}var Gu=/@import\s+(?:url\()?\s*(?:(?:['"]([^'"]*))|([^;\)\s]*))[^;]*;?/g,$u=/\/\*(?!#\s*(?:sourceURL|sourceMappingURL)=)[\s\S]+?\*\//g,Yu=/^([^:\/?#]+):/,Ju=function(){function t(e,t,n,r,i){if(this._exprParser=e,this._interpolationConfig=t,this._schemaRegistry=n,this.errors=i,this.pipesByName=null,this._usedPipes=new Map,r){var o=new Map;r.forEach(function(e){return o.set(e.name,e)}),this.pipesByName=o}}return Object.defineProperty(t.prototype,"interpolationConfig",{get:function(){return this._interpolationConfig},enumerable:!0,configurable:!0}),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.createBoundElementProperty(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,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 ks(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){ep(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 As(t,this._exprParser.wrapLiteralPrimitive(n,""),e.ParsedPropertyType.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)):ep(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(t,n,r,i,o){i.push([t,n.source]),o.push(new As(t,n,e.ParsedPropertyType.DEFAULT,r))},t.prototype._parseAnimation=function(t,n,r,i,o){var s=this._parseBinding(n||"undefined",!1,r);i.push([t,s.source]),o.push(new As(t,s,e.ParsedPropertyType.ANIMATION,r))},t.prototype._parseBinding=function(e,t,n){var r=(n&&n.start||"(unknown)").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.createBoundElementProperty=function(e,t,n,r){if(void 0===n&&(n=!1),void 0===r&&(r=!0),t.isAnimation)return new Rs(t.name,4,D.NONE,t.expression,null,t.sourceSpan);var i=null,o=void 0,s=null,a=t.name.split("."),u=void 0;if(a.length>1)if("attr"==a[0]){s=a[1],n||this._validatePropertyOrAttributeName(s,t.sourceSpan,!0),u=tp(this._schemaRegistry,e,s,!0);var p=s.indexOf(":");if(p>-1){var l=s.substring(0,p),c=s.substring(p+1);s=f(l,c)}o=1}else"class"==a[0]?(s=a[1],o=2,u=[D.NONE]):"style"==a[0]&&(i=a.length>2?a[2]:null,s=a[1],o=3,u=[D.STYLE]);if(null===s){var h=this._schemaRegistry.getMappedPropName(t.name);s=r?h:t.name,u=tp(this._schemaRegistry,e,h,!1),o=0,n||this._validatePropertyOrAttributeName(h,t.sourceSpan,!1)}return new Rs(s,o,u[0],t.expression,i,t.sourceSpan)},t.prototype.parseEvent=function(e,t,n,r,i,o){ep(e)?(e=e.substr(1),this._parseAnimationEvent(e,t,n,r,o)):this._parseRegularEvent(e,t,n,r,i,o)},t.prototype.calcPossibleSecurityContexts=function(e,t,n){var r=this._schemaRegistry.getMappedPropName(t);return tp(this._schemaRegistry,e,r,n)},t.prototype._parseAnimationEvent=function(e,t,n,r,i){var o=function s(e,t){return Mt(e,".",t)}(e,[e,""]),a=o[0],u=o[1].toLowerCase();if(u)switch(u){case"start":case"done":var p=this._parseAction(t,r);i.push(new Is(a,u,1,p,n,r));break;default:this._reportError('The provided animation output phase value "'+u+'" for "@'+a+'" is not supported (use start or done)',n)}else this._reportError("The animation trigger output event (@"+a+") is missing its phase value name (start or done are currently supported)",n)},t.prototype._parseRegularEvent=function(e,t,n,r,i,o){var a=s(Pt(e,[null,e]),2),u=a[0],p=a[1],l=this._parseAction(t,r);i.push([e,l.source]),o.push(new Is(p,u,0,l,n,r))},t.prototype._parseAction=function(e,t){var n=(t&&t.start||"(unknown").toString();try{var r=this._exprParser.parseAction(e,n,this._interpolationConfig);return r&&this._reportExpressionParserErrors(r.errors,t),!r||r.ast instanceof is?(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.errors.push(new Tr(n,t,r))},t.prototype._reportExpressionParserErrors=function(e,t){var n,r;try{for(var i=o(e),s=i.next();!s.done;s=i.next())this._reportError(s.value.message,t)}catch(e){n={error:e}}finally{try{s&&!s.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}},t.prototype._checkPipes=function(e,t){var n=this;if(e&&this.pipesByName){var r=new Zu;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}(),Zu=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}(Ns);function ep(e){return"@"==e[0]}function tp(e,t,n,r){var i=[];return w.parse(t).forEach(function(t){var o=t.element?[t.element]:e.allKnownElementNames(),s=new Set(t.notSelectors.filter(function(e){return e.isElementSelector()}).map(function(e){return e.element})),u=o.filter(function(e){return!s.has(e)});i.push.apply(i,a(u.map(function(t){return e.securityContext(t,n,r)})))}),0===i.length?[D.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 np,rp="select",ip="link",op="rel",sp="href",ap="stylesheet",up="style",pp="script",lp="ngNonBindable",cp="ngProjectAs";function hp(e){var t=null,n=null,r=null,i=!1,o="";e.attrs.forEach(function(e){var s=e.name.toLowerCase();s==rp?t=e.value:s==sp?n=e.value:s==op?r=e.value:e.name==lp?i=!0:e.name==cp&&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=np.OTHER;return l(a)?u=np.NG_CONTENT:a==up?u=np.STYLE:a==pp?u=np.SCRIPT:a==ip&&r==ap&&(u=np.STYLESHEET),new dp(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"}(np||(np={}));var fp,dp=function dp(e,t,n,r,i){this.type=e,this.selectAttr=t,this.hrefAttr=n,this.nonBindable=r,this.projectAs=i},vp=/^(?:(?:(?:(bind-)|(let-)|(ref-|#)|(on-)|(bindon-)|(@))(.+))|\[\(([^\)]+)\)\]|\[([^\]]+)\]|\(([^\)]+)\))$/,mp="class";function yp(){return fp||(fp=w.parse("*")[0]),fp}var gp=function(e){function t(t,n,r){return e.call(this,n,t,r)||this}return n(t,e),t}(Tr),_p=function _p(e,t,n){this.templateAst=e,this.usedPipes=t,this.errors=n},Ep=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 Bt("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,{tokenizeExpansionForms:!0,interpolationConfig:this.getInterpolationConfig(e)}):t;return s||(a=du(a)),this.tryParseHtml(this.expandHtml(a),e,n,r,i)},t.prototype.tryParseHtml=function(e,t,n,r,i){var o,s=e.errors,u=[];if(e.rootNodes.length>0){var p=Ap(n),l=Ap(r),c=new ju(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 Ju(this._exprParser,h,this._schemaRegistry,l,s),d=new Sp(this._reflector,this._config,c,p,f,this._schemaRegistry,i,s);o=La(d,e.rootNodes,Np),s.push.apply(s,a(c.errors)),u.push.apply(u,a(f.getUsedPipes()))}else o=[];return this._assertNoReferenceDuplicationOnTemplate(o,s),s.length>0?new _p(o,u,s):(this.transforms&&this.transforms.forEach(function(e){o=Bu(e,o)}),new _p(o,u,s))},t.prototype.expandHtml=function(e,t){void 0===t&&(t=!1);var n=e.errors;if(0==n.length||t){var r=mu(e.rootNodes);n.push.apply(n,a(r.errors)),e=new ru(r.nodes,n)}return e},t.prototype.getInterpolationConfig=function(e){if(e.template)return Po.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 gp('Reference "#'+i+'" is defined several times',t.sourceSpan,e.ParseErrorLevel.ERROR);n.push(o)}})})},t}(),Sp=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 C,this.directivesIndex=new Map,this.ngContentCount=0,this.contentQueryStartId=n.component.viewQueries.length+1,r.forEach(function(e,t){var n=w.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(yp()),r=hu(e.value),i=this._bindingParser.parseInterpolation(r,e.sourceSpan);return i?new wu(i,n,e.sourceSpan):new xu(r,n,e.sourceSpan)},t.prototype.visitAttribute=function(e,t){return new Cu(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=hp(e);if(o.type===np.SCRIPT||o.type===np.STYLE)return null;if(o.type===np.STYLESHEET&&Xu(o.hrefAttr))return null;var s=[],u=[],p=[],l=[],h=[],f=[],d=[],v=[],m=!1,y=[],g=c(e.name);e.attrs.forEach(function(e){var t,r,i=n._parseAttr(g,e,s,u,h,p,l);l.push.apply(l,a([].map(function(e){return Mu.fromParsedVariable(e)})));var o=n._normalizeAttributeName(e.name);o.startsWith("*")&&(t=e.value,r=o.substring("*".length));var c=null!=t;if(c){m&&n._reportError("Can't have multiple template bindings on one element. Use only one attribute prefixed with *",e.sourceSpan),m=!0;var _=[];n._bindingParser.parseInlineTemplateBinding(r,t,e.sourceSpan,d,f,_),v.push.apply(v,a(_.map(function(e){return Mu.fromParsedVariable(e)})))}i||c||(y.push(n.visitAttribute(e,null)),s.push([e.name,e.value]))});var _=Tp(i,s),E=this._parseDirectives(this.selectorMatcher,_),S=E.directives,x=E.matchElement,C=[],b=new Set,T=this._createDirectiveAsts(g,e.name,S,u,p,e.sourceSpan,C,b),N=this._createElementPropertyAsts(e.name,u,b),P=new Uu(this.providerViewContext,t.providerContext,t.isTemplateElement||m,T,y,C,g,r,e.sourceSpan),M=La(o.nonBindable?Pp:this,e.children,bp.create(g,T,g?t.providerContext:P));P.afterElement();var A,I=""!=o.projectAs?w.parse(o.projectAs)[0]:_,k=t.findNgContentIndex(I);if(o.type===np.NG_CONTENT)e.children&&!e.children.every(Mp)&&this._reportError("<ng-content> element cannot have content.",e.sourceSpan),A=new Du(this.ngContentCount++,m?null:k,e.sourceSpan);else if(g)this._assertAllEventsPublishedByDirectives(T,h),this._assertNoComponentsNorElementBindingsOnTemplate(T,N,e.sourceSpan),A=new Iu(y,h,C,l,P.transformedDirectiveAsts,P.transformProviders,P.transformedHasViewContainer,P.queryMatches,M,m?null:k,e.sourceSpan);else{this._assertElementExists(x,e),this._assertOnlyOneComponent(T,e.sourceSpan);var R=m?null:t.findNgContentIndex(I);A=new Au(i,y,N,h,C,P.transformedDirectiveAsts,P.transformProviders,P.transformedHasViewContainer,P.queryMatches,M,m?null:R,e.sourceSpan,e.endSourceSpan||null)}if(m){var O=this.contentQueryStartId,D=Tp("ng-template",d),F=this._parseDirectives(this.selectorMatcher,D).directives,L=new Set,B=this._createDirectiveAsts(!0,i,F,f,[],e.sourceSpan,[],L),V=this._createElementPropertyAsts(i,f,L);this._assertNoComponentsNorElementBindingsOnTemplate(B,V,e.sourceSpan);var j=new Uu(this.providerViewContext,t.providerContext,t.isTemplateElement,B,[],[],!0,O,e.sourceSpan);j.afterElement(),A=new Iu([],[],[],v,j.transformedDirectiveAsts,j.transformProviders,j.transformedHasViewContainer,j.queryMatches,[A],k,e.sourceSpan)}return A},t.prototype._parseAttr=function(e,t,n,r,i,o,s){var u=this._normalizeAttributeName(t.name),p=t.value,l=t.sourceSpan,c=[],h=u.match(vp),f=!1;return null!==h?(f=!0,null!=h[1]?this._bindingParser.parsePropertyBinding(h[7],p,!1,l,n,r):h[2]?e?this._parseVariable(h[7],p,l,s):this._reportError('"let-" is only supported on ng-template elements.',l):h[3]?this._parseReference(h[7],p,l,o):h[4]?this._bindingParser.parseEvent(h[7],p,l,t.valueSpan||l,n,c):h[5]?(this._bindingParser.parsePropertyBinding(h[7],p,!1,l,n,r),this._parseAssignmentEvent(h[7],p,l,t.valueSpan||l,n,c)):h[6]?this._bindingParser.parseLiteralAttr(u,p,l,n,r):h[8]?(this._bindingParser.parsePropertyBinding(h[8],p,!1,l,n,r),this._parseAssignmentEvent(h[8],p,l,t.valueSpan||l,n,c)):h[9]?this._bindingParser.parsePropertyBinding(h[9],p,!1,l,n,r):h[10]&&this._bindingParser.parseEvent(h[10],p,l,t.valueSpan||l,n,c)):f=this._bindingParser.parsePropertyInterpolation(u,p,l,n,r),f||this._bindingParser.parseLiteralAttr(u,p,l,n,r),i.push.apply(i,a(c.map(function(e){return Nu.fromParsedEvent(e)}))),f},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 Mu(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 wp(e,t,n))},t.prototype._parseAssignmentEvent=function(e,t,n,r,i,o){this._bindingParser.parseEvent(e+"Change",t+"=$event",n,r,i,o)},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 "+dn(e.type));e.isComponent&&(l=e);var c=[],h=u._bindingParser.createDirectiveHostPropertyAsts(e,t,n).map(function(e){return Tu.fromBoundProperty(e)});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 Pu(t.name,sn(e.type.reference),t.value,t.sourceSpan)),p.add(t.name))});var d=f.map(function(e){return Nu.fromParsedEvent(e)}),v=u.contentQueryStartId;return u.contentQueryStartId+=e.queries.length,new Ru(e,c,h,d,v,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=an(u.reflector,on.TemplateRef)),s.push(new Pu(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),Ip(o.expression)||n.push(new ku(t,o.name,o.expression,o.sourceSpan)))})}},t.prototype._createElementPropertyAsts=function(e,t,n){var r=this,i=[];return t.forEach(function(t){if(!t.isLiteral&&!n.has(t.name)){var o=r._bindingParser.createBoundElementProperty(e,t);i.push(Tu.fromBoundProperty(o))}}),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 dn(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(e,t){var n=this;return t.filter(function(t){if(0===t.type&&!n._schemaRegistry.hasProperty(e,t.name,n._schemas)){var r="Can't bind to '"+t.name+"' since it isn't a known property of '"+e+"'.";e.startsWith("ng-")?r+="\n1. If '"+t.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.":e.indexOf("-")>-1&&(r+="\n1. If '"+e+"' is an Angular component and it has '"+t.name+"' input, then verify that it is part of this module.\n2. If '"+e+"' is a Web Component then add 'CUSTOM_ELEMENTS_SCHEMA' to the '@NgModule.schemas' of this component to suppress this message.\n3. To allow any property add 'NO_ERRORS_SCHEMA' to the '@NgModule.schemas' of this component."),n._reportError(r,t.sourceSpan)}return!Ip(t.value)})},t.prototype._reportError=function(t,n,r){void 0===r&&(r=e.ParseErrorLevel.ERROR),this._targetErrors.push(new Tr(n,t,r))},t}(),xp=function(){function e(){}return e.prototype.visitElement=function(e,t){var n=hp(e);if(n.type===np.SCRIPT||n.type===np.STYLE||n.type===np.STYLESHEET)return null;var r=e.attrs.map(function(e){return[e.name,e.value]}),i=Tp(e.name,r),o=t.findNgContentIndex(i),s=La(this,e.children,Np);return new Au(e.name,La(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 Cu(e.name,e.value,e.sourceSpan)},e.prototype.visitText=function(e,t){var n=t.findNgContentIndex(yp());return new xu(e.value,n,e.sourceSpan)},e.prototype.visitExpansion=function(e,t){return e},e.prototype.visitExpansionCase=function(e,t){return e},e}(),wp=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 Cp(e){return e.trim().split(/\s+/g)}var bp=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 C,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(w.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 Tp(e,t){var n=new w,r=u(e)[1];n.setElement(r);for(var i=0;i<t.length;i++){var o=t[i][0],s=u(o)[1],a=t[i][1];n.addAttribute(s,a),o.toLowerCase()==mp&&Cp(a).forEach(function(e){return n.addClassName(e)})}return n}var Np=new bp(!0,new C,null,null),Pp=new xp;function Mp(e){return e instanceof Ia&&0==e.value.trim().length}function Ap(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 Ip(e){return e instanceof Cs&&(e=e.ast),e instanceof is}
/**
* @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 kp(e){var t=e.charCodeAt(0);if(t==e.charCodeAt(e.length-1)&&(39==t||34==t)){var n=e.substring(1,e.length-1);-1==n.indexOf("'")&&-1==n.indexOf('"')&&(e=n)}return e}function Rp(e){return e.replace(/[a-z][A-Z]/g,function(e){return e.charAt(0)+"-"+e.charAt(1)}).toLowerCase()}
/**
* @license
* Copyright Google Inc. All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/var Op=0;function Dp(){return Op>0}var Fp="!important",Lp=function(){function e(e,t){this._elementIndexExpr=e,this._directiveExpr=t,this._hasInitialValues=!1,this.hasBindings=!1,this._classMapInput=null,this._styleMapInput=null,this._singleStyleInputs=null,this._singleClassInputs=null,this._lastStylingInput=null,this._firstStylingInput=null,this._stylesIndex=new Map,this._classesIndex=new Map,this._initialStyleValues=[],this._initialClassValues=[],this._useDefaultSanitizer=!1}return e.prototype.registerBoundInput=function(e){var t=null,n=e.name;switch(e.type){case 0:t=this.registerInputBasedOnName(n,e.value,e.sourceSpan);break;case 3:t=this.registerStyleInput(n,!1,e.value,e.sourceSpan,e.unit);break;case 2:t=this.registerClassInput(n,!1,e.value,e.sourceSpan)}return!!t},e.prototype.registerInputBasedOnName=function(e,t,n){var r=null,i=e.substring(0,5),o="style"===i;if(o||!o&&"class"===i){var s="."!==e.charAt(5),a=e.substr(s?5:6);r=o?this.registerStyleInput(a,s,t,n):this.registerClassInput(a,s,t,n)}return r},e.prototype.registerStyleInput=function(e,t,n,r,i){if(Ip(n))return null;var o=Up(e),s=o.property,a={name:s,unit:i||o.unit,value:n,sourceSpan:r,hasOverrideFlag:o.hasOverrideFlag};return t?(this._useDefaultSanitizer=!0,this._styleMapInput=a):((this._singleStyleInputs=this._singleStyleInputs||[]).push(a),this._useDefaultSanitizer=this._useDefaultSanitizer||function u(e){return"background-image"===e||"backgroundImage"===e||"background"===e||"border-image"===e||"borderImage"===e||"filter"===e||"list-style"===e||"listStyle"===e||"list-style-image"===e||"listStyleImage"===e||"clip-path"===e||"clipPath"===e}(e),Bp(this._stylesIndex,s)),this._lastStylingInput=a,this._firstStylingInput=this._firstStylingInput||a,this.hasBindings=!0,a},e.prototype.registerClassInput=function(e,t,n,r){if(Ip(n))return null;var i=Up(e),o=i.property,s={name:o,value:n,sourceSpan:r,hasOverrideFlag:i.hasOverrideFlag,unit:null};return t?this._classMapInput=s:((this._singleClassInputs=this._singleClassInputs||[]).push(s),Bp(this._classesIndex,o)),this._lastStylingInput=s,this._firstStylingInput=this._firstStylingInput||s,this.hasBindings=!0,s},e.prototype.registerStyleAttr=function(e){this._initialStyleValues=function t(e){for(var t=[],n=0,r=0,i=0,o=0,s=0,a=null,u=!1;n<e.length;)switch(e.charCodeAt(n++)){case 40:r++;break;case 41:r--;break;case 39:u=u||o>0,0===i?i=39:39===i&&92!==e.charCodeAt(n-1)&&(i=0);break;case 34:u=u||o>0,0===i?i=34:34===i&&92!==e.charCodeAt(n-1)&&(i=0);break;case 58:a||0!==r||0!==i||(a=Rp(e.substring(s,n-1).trim()),o=n);break;case 59:if(a&&o>0&&0===r&&0===i){var p=e.substring(o,n-1).trim();t.push(a,u?kp(p):p),s=n,o=0,a=null,u=!1}}return a&&o&&(p=e.substr(o).trim(),t.push(a,u?kp(p):p)),t}(e),this._hasInitialValues=!0},e.prototype.registerClassAttr=function(e){this._initialClassValues=e.trim().split(/\s+/g),this._hasInitialValues=!0},e.prototype.populateInitialStylingAttrs=function(e){if(this._initialClassValues.length){e.push(bt(1));for(var t=0;t<this._initialClassValues.length;t++)e.push(bt(this._initialClassValues[t]))}if(this._initialStyleValues.length)for(e.push(bt(2)),t=0;t<this._initialStyleValues.length;t+=2)e.push(bt(this._initialStyleValues[t]),bt(this._initialStyleValues[t+1]))},e.prototype.buildHostAttrsInstruction=function(e,t,n){var r=this;return this._directiveExpr&&(t.length||this._hasInitialValues)?{sourceSpan:e,reference:Bn.elementHostAttrs,allocateBindingSlots:0,buildParams:function(){return r.populateInitialStylingAttrs(t),[t.some(function(e){return e instanceof xe})?St(t):Vp(n,t)]}}:null},e.prototype.buildStylingInstruction=function(e,t){var n=this;return this.hasBindings?{sourceSpan:e,allocateBindingSlots:0,reference:Bn.styling,buildParams:function(){var e=n._singleStyleInputs?n._singleStyleInputs.map(function(e){return bt(e.name)}):[],r=n._singleClassInputs?n._singleClassInputs.map(function(e){return bt(e.name)}):[],i=[],o=0;return n._useDefaultSanitizer?o=3:e.length?o=2:r.length&&(o=1),jp(i,r.length>0,Vp(t,r),1,o),jp(i,e.length>0,Vp(t,e),2,o),jp(i,n._useDefaultSanitizer,gt(Bn.defaultStyleSanitizer),3,o),i}}:null},e.prototype.buildClassMapInstruction=function(e){return this._classMapInput?this._buildMapBasedInstruction(e,!0,this._classMapInput):null},e.prototype.buildStyleMapInstruction=function(e){return this._styleMapInput?this._buildMapBasedInstruction(e,!1,this._styleMapInput):null},e.prototype._buildMapBasedInstruction=function(e,t,n){var r=0;Dp()&&r++;var i=n.value.visit(e);return i instanceof ys&&(r+=i.expressions.length),{sourceSpan:n.sourceSpan,reference:t?Bn.classMap:Bn.styleMap,allocateBindingSlots:r,buildParams:function(e){return[e(i)]}}},e.prototype._buildSingleInputs=function(e,t,n,r,i){var o=0;return t.map(function(t){var s=n.get(t.name),a=t.value.visit(i);return o+=a instanceof ys?a.expressions.length:0,Dp()&&o++,{sourceSpan:t.sourceSpan,allocateBindingSlots:o,reference:e,buildParams:function(e){var n=[];return n.push(bt(s)),n.push(e(a)),r&&(t.unit?n.push(bt(t.unit)):t.hasOverrideFlag&&n.push(Ke)),t.hasOverrideFlag&&n.push(bt(!0)),n}}})},e.prototype._buildClassInputs=function(e){return this._singleClassInputs?this._buildSingleInputs(Bn.classProp,this._singleClassInputs,this._classesIndex,!1,e):[]},e.prototype._buildStyleInputs=function(e){return this._singleStyleInputs?this._buildSingleInputs(Bn.styleProp,this._singleStyleInputs,this._stylesIndex,!0,e):[]},e.prototype._buildApplyFn=function(){return{sourceSpan:this._lastStylingInput?this._lastStylingInput.sourceSpan:null,reference:Bn.stylingApply,allocateBindingSlots:0,buildParams:function(){return[]}}},e.prototype._buildSanitizerFn=function(){return{sourceSpan:this._firstStylingInput?this._firstStylingInput.sourceSpan:null,reference:Bn.styleSanitizer,allocateBindingSlots:0,buildParams:function(){return[gt(Bn.defaultStyleSanitizer)]}}},e.prototype.buildUpdateLevelInstructions=function(e){var t=[];if(this.hasBindings){Dp()&&this._useDefaultSanitizer&&t.push(this._buildSanitizerFn());var n=this.buildStyleMapInstruction(e);n&&t.push(n);var r=this.buildClassMapInstruction(e);r&&t.push(r),t.push.apply(t,a(this._buildStyleInputs(e))),t.push.apply(t,a(this._buildClassInputs(e))),t.push(this._buildApplyFn())}return t},e}();function Bp(e,t){e.has(t)||e.set(t,e.size)}function Vp(e,t){return t.length?e.getConstLiteral(St(t),!0):Ke}function jp(e,t,n,r,i){t&&n?e.push(n):r<i&&e.push(Ke)}function Up(e){var t=!1,n=e.indexOf(Fp);-1!==n&&(e=n>0?e.substring(0,n):"",t=!0);var r="",i=e,o=e.lastIndexOf(".");return o>0&&(r=e.substr(o+1),i=e.substring(0,o)),{property:i,unit:r,hasOverrideFlag:t}}
/**
* @license
* Copyright Google Inc. All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
/**
* @license
* Copyright Google Inc. All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
!function(e){e[e.Character=0]="Character",e[e.Identifier=1]="Identifier",e[e.Keyword=2]="Keyword",e[e.String=3]="String",e[e.Operator=4]="Operator",e[e.Number=5]="Number",e[e.Error=6]="Error"}(e.TokenType||(e.TokenType={}));var Hp=["var","let","as","null","undefined","true","false","if","else","this"],qp=function(){function e(){}return e.prototype.tokenize=function(e){for(var t=new Xp(e),n=[],r=t.scanToken();null!=r;)n.push(r),r=t.scanToken();return n},e}(),Wp=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}();function zp(t,n){return new Wp(t,e.TokenType.Character,n,String.fromCharCode(n))}function Kp(t,n){return new Wp(t,e.TokenType.Operator,0,n)}var Qp=new Wp(-1,e.TokenType.Character,0,""),Xp=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?Vn:this.input.charCodeAt(this.index)},t.prototype.scanToken=function(){for(var e=this.input,t=this.length,n=this.peek,r=this.index;n<=zn;){if(++r>=t){n=Vn;break}n=e.charCodeAt(r)}if(this.peek=n,this.index=r,r>=t)return null;if(Gp(n))return this.scanIdentifier();if(gr(n))return this.scanNumber(r);var i=r;switch(n){case 46:return this.advance(),gr(this.peek)?this.scanNumber(i):zp(i,46);case 40:case 41:case 123:case 125:case 91:case 93:case 44:case 58:case Jn:return this.scanCharacter(i,n);case Xn:case Kn:return this.scanString();case 35:case Gn:case $n:case 42:case Yn:case 37:case 94:return this.scanOperator(i,String.fromCharCode(n));case 63:return this.scanComplexOperator(i,"?",46,".");case 60:case er:return this.scanComplexOperator(i,String.fromCharCode(n),Zn,"=");case 33:case Zn:return this.scanComplexOperator(i,String.fromCharCode(n),Zn,"=",Zn,"=");case 38:return this.scanComplexOperator(i,"&",38,"&");case 124:return this.scanComplexOperator(i,"|",124,"|");case vr:for(;yr(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(),zp(e,t)},t.prototype.scanOperator=function(e,t){return this.advance(),Kp(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),Kp(e,s)},t.prototype.scanIdentifier=function(){var t=this.index;for(this.advance();Yp(this.peek);)this.advance();var n=this.input.substring(t,this.index);return Hp.indexOf(n)>-1?function r(t,n){return new Wp(t,e.TokenType.Keyword,0,n)}(t,n):function i(t,n){return new Wp(t,e.TokenType.Identifier,0,n)}(t,n)},t.prototype.scanNumber=function(t){var n,r=this.index===t;for(this.advance();;){if(gr(this.peek));else if(46==this.peek)r=!1;else{if(101!=(n=this.peek)&&69!=n)break;if(this.advance(),Jp(this.peek)&&this.advance(),!gr(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 Wp(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=el(this.peek),this.advance();r+=String.fromCharCode(s),i=this.index}else{if(this.peek==Vn)return this.error("Unterminated quote",0);this.advance()}var p=o.substring(i,this.index);return this.advance(),function l(t,n){return new Wp(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 Wp(t,e.TokenType.Error,0,n)}(r,"Lexer Error: "+t+" at column "+r+" in expression ["+this.input+"]")},t}();function Gp(e){return ur<=e&&e<=dr||ir<=e&&e<=sr||e==ar||e==Qn}function $p(e){if(0==e.length)return!1;var t=new Xp(e);if(!Gp(t.peek))return!1;for(t.advance();t.peek!==Vn;){if(!Yp(t.peek))return!1;t.advance()}return!0}function Yp(e){return _r(e)||gr(e)||e==ar||e==Qn}function Jp(e){return e==$n||e==Gn}function Zp(e){return e===Xn||e===Kn||e===mr}function el(e){switch(e){case lr:return Un;case pr:return qn;case cr:return Wn;case hr:return jn;case fr:return Hn;default:return e}}var tl=function tl(e,t,n){this.strings=e,this.expressions=t,this.offsets=n},nl=function nl(e,t,n){this.templateBindings=e,this.warnings=t,this.errors=n};function rl(e){var t=Ut(e.start)+"([\\s\\S]*?)"+Ut(e.end);return new RegExp(t,"g")}var il,ol=function(){function e(e){this._lexer=e,this.errors=[]}return e.prototype.parseAction=function(e,t,n){void 0===n&&(n=Mo),this._checkNoInterpolation(e,t,n);var r=this._stripComments(e),i=this._lexer.tokenize(this._stripComments(e)),o=new sl(e,t,i,r.length,!0,this.errors,e.length-r.length).parseChain();return new Cs(o,e,t,this.errors)},e.prototype.parseBinding=function(e,t,n){void 0===n&&(n=Mo);var r=this._parseBindingAst(e,t,n);return new Cs(r,e,t,this.errors)},e.prototype.parseSimpleBinding=function(e,t,n){void 0===n&&(n=Mo);var r=this._parseBindingAst(e,t,n),i=al.check(r);return i.length>0&&this._reportError("Host binding expression cannot contain "+i.join(" "),e,t),new Cs(r,e,t,this.errors)},e.prototype._reportError=function(e,t,n,r){this.errors.push(new es(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 sl(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(!$p(r))return null;var i=e.substring(n+1);return new rs(new ts(0,e.length),r,i,t)},e.prototype.parseTemplateBindings=function(e,t,n){var r=this._lexer.tokenize(t);return new sl(t,n,r,t.length,!1,this.errors,0).parseTemplateBindings(e)},e.prototype.parseInterpolation=function(e,t,n){void 0===n&&(n=Mo);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 sl(e,t,u,a.length,!1,this.errors,r.offsets[o]+(s.length-a.length)).parseChain();i.push(p)}return new Cs(new ys(new ts(0,null==e?0:e.length),r.strings,i),e,t,this.errors)},e.prototype.splitInterpolation=function(e,t,n){void 0===n&&(n=Mo);var r=rl(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 tl(o,s,a)},e.prototype.wrapLiteralPrimitive=function(e,t){return new Cs(new ds(new ts(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===Yn&&i==Yn&&null==t)return n;t===r?t=null:null==t&&Zp(r)&&(t=r)}return null},e.prototype._checkNoInterpolation=function(e,t,n){var r=rl(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}(),sl=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]:Qp},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 ts(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(Jn))for(this.parseAction||this.error("Binding expression cannot contain chained expression");this.optionalCharacter(Jn););else this.index<this.tokens.length&&this.error("Unexpected token '"+this.next+"'")}return 0==e.length?new is(this.span(t)):1==e.length?e[0]:new ss(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 fs(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 is(this.span(e))}return new as(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 gs(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 gs(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 gs(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 gs(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 gs(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 gs(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 gs(this.span(t),"-",r,new ds(new ts(t,t),0));case"-":return this.advance(),r=this.parsePrefix(),new gs(this.span(t),n,new ds(new ts(t,t),0),r);case"!":return this.advance(),r=this.parsePrefix(),new _s(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 hs(this.span(e.span.start),e,t,n)}else e=new cs(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 ws(this.span(e.span.start),e,r)}else{if(!this.optionalOperator("!"))return e;e=new Es(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 ds(this.span(e),null);if(this.next.isKeywordUndefined())return this.advance(),new ds(this.span(e),void 0);if(this.next.isKeywordTrue())return this.advance(),new ds(this.span(e),!0);if(this.next.isKeywordFalse())return this.advance(),new ds(this.span(e),!1);if(this.next.isKeywordThis())return this.advance(),new os(this.span(e));if(this.optionalCharacter(91)){this.rbracketsExpected++;var n=this.parseExpressionList(93);return this.rbracketsExpected--,this.expectCharacter(93),new vs(this.span(e),n)}if(this.next.isCharacter(123))return this.parseLiteralMap();if(this.next.isIdentifier())return this.parseAccessMemberOrMethodCall(new os(this.span(e)),!1);if(this.next.isNumber()){var r=this.next.toNumber();return this.advance(),new ds(this.span(e),r)}if(this.next.isString()){var i=this.next.toString();return this.advance(),new ds(this.span(e),i)}return this.index>=this.tokens.length?(this.error("Unexpected end of expression: "+this.input),new is(this.span(e))):(this.error("Unexpected token "+this.next),new is(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(123),!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 ms(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 xs(o,e,r,i):new Ss(o,e,r,i)}if(t)return this.optionalOperator("=")?(this.error("The '?.' operator cannot be used in the assignment"),new is(this.span(n))):new ls(this.span(n),e,r);if(this.optionalOperator("=")){if(!this.parseAction)return this.error("Bindings cannot contain assignments"),new is(this.span(n));var s=this.parseConditional();return new ps(this.span(n),e,r,s)}return new us(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(e){var t=!0,n=[];do{var r=this.inputIndex,i=void 0,o=void 0,s=!1;t?(i=o=e,t=!1):((s=this.peekKeywordLet())&&this.advance(),i=this.expectTemplateBindingKey(),o=s?i:e+i[0].toUpperCase()+i.substring(1),this.optionalCharacter(58));var a=null,u=null;if(s)a=this.optionalOperator("=")?this.expectTemplateBindingKey():"$implicit";else if(this.peekKeywordAs())this.advance(),a=i,o=this.expectTemplateBindingKey(),s=!0;else if(this.next!==Qp&&!this.peekKeywordLet()){var p=this.inputIndex,l=this.parsePipe(),c=this.input.substring(p-this.offset,this.inputIndex-this.offset);u=new Cs(l,c,this.location,this.errors)}if(n.push(new bs(this.span(r),o,s,a,u)),this.peekKeywordAs()&&!s){var h=this.inputIndex;this.advance();var f=this.expectTemplateBindingKey();n.push(new bs(this.span(h),f,!0,o,null))}this.optionalCharacter(Jn)||this.optionalCharacter(44)}while(this.index<this.tokens.length);return new nl(n,[],this.errors)},t.prototype.error=function(e,t){void 0===t&&(t=null),this.errors.push(new es(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(Jn)&&(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 es(this.next.toString(),this.input,this.locationText(),this.location)),this.advance(),e=this.next},t}(),al=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}();function ul(){return il||(il={},pl(D.HTML,["iframe|srcdoc","*|innerHTML","*|outerHTML"]),pl(D.STYLE,["*|style"]),pl(D.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"]),pl(D.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"])),il}function pl(e,t){var n,r;try{for(var i=o(t),s=i.next();!s.done;s=i.next())il[s.value.toLowerCase()]=e}catch(e){n={error:e}}finally{try{s&&!s.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}}
/**
* @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 ll,cl="boolean",hl="number",fl="string",dl="object",vl=["[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:|"],ml={class:"className",for:"htmlFor",formaction:"formAction",innerHtml:"innerHTML",readonly:"readOnly",tabindex:"tabIndex"},yl=function(e){function t(){var t=e.call(this)||this;return t._schema={},vl.forEach(function(e){var n={},r=s(e.split("|"),2),i=r[0],o=r[1].split(","),a=s(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]}),o.forEach(function(e){if(e.length>0)switch(e[0]){case"*":break;case"!":n[e.substring(1)]=cl;break;case"#":n[e.substring(1)]=hl;break;case"%":n[e.substring(1)]=dl;break;default:n[e]=fl}})}),t}return n(t,e),t.prototype.hasProperty=function(e,t,n){if(n.some(function(e){return e.name===K.name}))return!0;if(e.indexOf("-")>-1){if(p(e)||l(e))return!1;if(n.some(function(e){return e.name===z.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===K.name}))return!0;if(e.indexOf("-")>-1){if(p(e)||l(e))return!0;if(t.some(function(e){return e.name===z.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=ul()[e+"|"+t];return r||(r=ul()["*|"+t])||D.NONE},t.prototype.getMappedPropName=function(e){return ml[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(Nt,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}(ll=function ll(){}),gl=/^(?:(?:(?:(bind-)|(let-)|(ref-|#)|(on-)|(bindon-)|(@))(.+))|\[\(([^\)]+)\)\]|\[([^\]]+)\]|\(([^\)]+)\))$/;
/**
* @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){var r=new Sl(n),i=La(r,t),o=n.errors.concat(r.errors),s=o.filter(function(t){return t.level===e.ParseErrorLevel.ERROR});if(s.length>0)throw Bt("Template parse errors:\n"+s.join("\n"),s);return{nodes:i,errors:o,styleUrls:r.styleUrls,styles:r.styles}}var El,Sl=function(){function t(e){this.bindingParser=e,this.errors=[],this.styles=[],this.styleUrls=[]}return t.prototype.visitElement=function(e){var t,n,r=this,i=hp(e);if(i.type===np.SCRIPT)return null;if(i.type===np.STYLE){var s=function u(e){return 1===e.children.length&&e.children[0]instanceof Ia?e.children[0].value: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
*/(e);return null!==s&&this.styles.push(s),null}if(i.type===np.STYLESHEET&&Xu(i.hrefAttr))return this.styleUrls.push(i.hrefAttr),null;var p=c(e.name),l=[],h=[],f=[],d=[],v=[],m={},y=[],g=[],_=!1;try{for(var E=o(e.attrs),S=E.next();!S.done;S=E.next()){var x=S.value,w=!1,C=wl(x.name),b=!1;if(x.i18n&&(m[x.name]=x.i18n),C.startsWith("*")){_&&this.reportError("Can't have multiple template bindings on one element. Use only one attribute prefixed with *",x.sourceSpan),b=!0,_=!0;var T=x.value,N=C.substring("*".length),P=[];this.bindingParser.parseInlineTemplateBinding(N,T,x.sourceSpan,[],y,P),g.push.apply(g,a(P.map(function(e){return new Lr(e.name,e.value,e.sourceSpan)})))}else w=this.parseAttribute(p,x,[],l,h,f,d);w||b||v.push(this.visitAttribute(x))}}catch(e){t={error:e}}finally{try{S&&!S.done&&(n=E.return)&&n.call(E)}finally{if(t)throw t.error}}var M,A=La(i.nonBindable?xl:this,e.children);if(i.type===np.NG_CONTENT){e.children&&!e.children.every(function(e){return function t(e){return e instanceof Ia&&0==e.value.trim().length}(e)||function n(e){return e instanceof Fa}(e)})&&this.reportError("<ng-content> element cannot have content.",e.sourceSpan);var I=i.selectAttr,k=e.attrs.map(function(e){return r.visitAttribute(e)});M=new Fr(I,k,e.sourceSpan,e.i18n)}else p?(k=this.extractAttributes(e.name,l,m),M=new Dr(e.name,v,k.bound,h,[],A,d,f,e.sourceSpan,e.startSourceSpan,e.endSourceSpan,e.i18n)):(k=this.extractAttributes(e.name,l,m),M=new Or(e.name,v,k.bound,h,A,d,e.sourceSpan,e.startSourceSpan,e.endSourceSpan,e.i18n));if(_){k=this.extractAttributes("ng-template",y,m);var R=[];k.literal.forEach(function(e){return R.push(e)}),k.bound.forEach(function(e){return R.push(e)});var O=M instanceof Or?{attributes:M.attributes,inputs:M.inputs,outputs:M.outputs}:{attributes:[],inputs:[],outputs:[]};M=new Dr(M.name,O.attributes,O.inputs,O.outputs,R,[M],[],g,e.sourceSpan,e.startSourceSpan,e.endSourceSpan,e.i18n)}return M},t.prototype.visitAttribute=function(e){return new Ir(e.name,e.value,e.sourceSpan,e.valueSpan,e.i18n)},t.prototype.visitText=function(e){return this._visitTextWithInterpolation(e.value,e.sourceSpan,e.i18n)},t.prototype.visitExpansion=function(e){var t=this,n=e.i18n;if(!n)return null;var r={},i={};return Object.keys(n.placeholders).forEach(function(o){var s=n.placeholders[o];if(o.startsWith("VAR_")){var a=t.bindingParser.interpolationConfig;r[o]=t._visitTextWithInterpolation(""+a.start+s+a.end,e.sourceSpan)}else i[o]=t._visitTextWithInterpolation(s,e.sourceSpan)}),new Vr(r,i,e.sourceSpan,n)},t.prototype.visitExpansionCase=function(e){return null},t.prototype.visitComment=function(e){return null},t.prototype.extractAttributes=function(e,t,n){var r=this,i=[],o=[];return t.forEach(function(t){var s=n[t.name];if(t.isLiteral)o.push(new Ir(t.name,t.expression.source||"",t.sourceSpan,void 0,s));else{var a=r.bindingParser.createBoundElementProperty(e,t,!0,!1);i.push(kr.fromBoundElementProperty(a,s))}}),{bound:i,literal:o}},t.prototype.parseAttribute=function(e,t,n,r,i,o,s){var a=wl(t.name),u=t.value,p=t.sourceSpan,l=a.match(gl),c=!1;if(l){if(c=!0,null!=l[1])this.bindingParser.parsePropertyBinding(l[7],u,!1,p,n,r);else if(l[2])e?this.parseVariable(l[7],u,p,o):this.reportError('"let-" is only supported on ng-template elements.',p);else if(l[3])this.parseReference(l[7],u,p,s);else if(l[4])this.bindingParser.parseEvent(l[7],u,p,t.valueSpan||p,n,h=[]),Cl(h,i);else if(l[5])this.bindingParser.parsePropertyBinding(l[7],u,!1,p,n,r),this.parseAssignmentEvent(l[7],u,p,t.valueSpan,n,i);else if(l[6])this.bindingParser.parseLiteralAttr(a,u,p,n,r);else if(l[8])this.bindingParser.parsePropertyBinding(l[8],u,!1,p,n,r),this.parseAssignmentEvent(l[8],u,p,t.valueSpan,n,i);else if(l[9])this.bindingParser.parsePropertyBinding(l[9],u,!1,p,n,r);else if(l[10]){var h;this.bindingParser.parseEvent(l[10],u,p,t.valueSpan||p,n,h=[]),Cl(h,i)}}else c=this.bindingParser.parsePropertyInterpolation(a,u,p,n,r);return c},t.prototype._visitTextWithInterpolation=function(e,t,n){var r=hu(e),i=this.bindingParser.parseInterpolation(r,t);return i?new Ar(i,t,n):new Mr(r,t)},t.prototype.parseVariable=function(e,t,n,r){e.indexOf("-")>-1&&this.reportError('"-" is not allowed in variable names',n),r.push(new Lr(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 Br(e,t,n))},t.prototype.parseAssignmentEvent=function(e,t,n,r,i,o){var s=[];this.bindingParser.parseEvent(e+"Change",t+"=$event",n,r||n,i,s),Cl(s,o)},t.prototype.reportError=function(t,n,r){void 0===r&&(r=e.ParseErrorLevel.ERROR),this.errors.push(new Tr(n,t,r))},t}(),xl=new(function(){function e(){}return e.prototype.visitElement=function(e){var t=hp(e);if(t.type===np.SCRIPT||t.type===np.STYLE||t.type===np.STYLESHEET)return null;var n=La(this,e.children,null);return new Or(e.name,La(this,e.attrs),[],[],n,[],e.sourceSpan,e.startSourceSpan,e.endSourceSpan)},e.prototype.visitComment=function(e){return null},e.prototype.visitAttribute=function(e){return new Ir(e.name,e.value,e.sourceSpan,void 0,e.i18n)},e.prototype.visitText=function(e){return new Mr(e.value,e.sourceSpan)},e.prototype.visitExpansion=function(e){return null},e.prototype.visitExpansionCase=function(e){return null},e}());function wl(e){return/^data-/i.test(e)?e.substring(5):e}function Cl(e,t){t.push.apply(t,a(e.map(function(e){return Rr.fromParsedEvent(e)})))}!function(e){e[e.ELEMENT=0]="ELEMENT",e[e.TEMPLATE=1]="TEMPLATE",e[e.PROJECTION=2]="PROJECTION"}(El||(El={}));var bl=function(){function e(e,t,n,r,i,o){void 0===n&&(n=0),void 0===r&&(r=null),this.index=e,this.ref=t,this.level=n,this.templateIndex=r,this.meta=i,this.registry=o,this.bindings=new Set,this.placeholders=new Map,this.isEmitted=!1,this._unresolvedCtxCount=0,this._registry=o||function s(){return{getUniqueId:zi(),icus:new Map}}(),this.id=this._registry.getUniqueId()}return e.prototype.appendTag=function(e,t,n,r){t.isVoid&&r||Qi(this.placeholders,t.isVoid||!r?t.startName:t.closeName,{type:e,index:n,ctx:this.id,isVoid:t.isVoid,closed:r})},Object.defineProperty(e.prototype,"icus",{get:function(){return this._registry.icus},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isRoot",{get:function(){return 0===this.level},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isResolved",{get:function(){return 0===this._unresolvedCtxCount},enumerable:!0,configurable:!0}),e.prototype.getSerializedPlaceholders=function(){var e=new Map;return this.placeholders.forEach(function(t,n){return e.set(n,t.map(Ml))}),e},e.prototype.appendBinding=function(e){this.bindings.add(e)},e.prototype.appendIcu=function(e,t){Qi(this._registry.icus,e,t)},e.prototype.appendBoundText=function(e){var t=this;Xi(e,this.bindings.size,this.id).forEach(function(e,n){return Qi.apply(void 0,a([t.placeholders,n],e))})},e.prototype.appendTemplate=function(e,t){this.appendTag(El.TEMPLATE,e,t,!1),this.appendTag(El.TEMPLATE,e,t,!0),this._unresolvedCtxCount++},e.prototype.appendElement=function(e,t,n){this.appendTag(El.ELEMENT,e,t,n)},e.prototype.appendProjection=function(e,t){this.appendTag(El.PROJECTION,e,t,!1),this.appendTag(El.PROJECTION,e,t,!0)},e.prototype.forkChildContext=function(t,n,r){return new e(t,this.ref,this.level+1,n,r,this._registry)},e.prototype.reconcileChildContext=function(e){var t=this;["start","close"].forEach(function(n){var r=(t.placeholders.get(e.meta[n+"Name"])||[]).find(Pl(t.id,e.templateIndex));r&&(r.ctx=e.id)}),e.placeholders.forEach(function(n,r){var i=t.placeholders.get(r);if(i){var o=function s(e,t){for(var n=0;n<e.length;n++)if(t(e[n]))return n;return-1}(i,Pl(e.id,e.templateIndex));if(o>=0){var u=r.startsWith("CLOSE");r.endsWith("NG-TEMPLATE")?i.splice.apply(i,a([o+(u?0:1),0],n)):(n[u?n.length-1:0].tmpl=i[o],i.splice.apply(i,a([o,1],n)))}else i.push.apply(i,a(n));t.placeholders.set(r,i)}else t.placeholders.set(r,n)}),this._unresolvedCtxCount--},e}();function Tl(e,t,n,r){return Wi((r?"/":"")+e+t,n)}function Nl(e,t,n){var r=t.index,i=t.ctx;return t.isVoid?Tl(e,r,i)+Tl(e,r,i,!0):Tl(e,r,i,n)}function Pl(e,t){return function(n){return"object"==typeof n&&n.type===El.TEMPLATE&&n.index===t&&n.ctx===e}}function Ml(e){var t=function(e,t){return Nl("#",e,t)},n=function(e,t){return Nl("*",e,t)};switch(e.type){case El.ELEMENT:return e.closed?t(e,!0)+(e.tmpl?n(e.tmpl,!0):""):e.tmpl?n(e.tmpl)+t(e)+(e.isVoid?n(e.tmpl,!0):""):t(e);case El.TEMPLATE:return n(e,e.closed);case El.PROJECTION:return Nl("!",e,e.closed);default: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 Al={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"},Il=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=Al[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_"+(Al[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}(),kl=new ol(new qp);function Rl(e){var t=new Ol(kl,e);return function(e,n,r,i,o){return t.toI18nMessage(e,n,r,i,o)}}var Ol=function(){function e(e,t){this._expressionParser=e,this._interpolationConfig=t}return e.prototype.toI18nMessage=function(e,t,n,r,i){this._isIcu=1==e.length&&e[0]instanceof ka,this._icuDepth=0,this._placeholderRegistry=new Il,this._placeholderToContent={},this._placeholderToMessage={},this._visitNodeFn=i;var o=La(this,e,{});return new Ur(o,this._placeholderToContent,this._placeholderToMessage,t,n,r)},e.prototype._visitNode=function(e,t){return this._visitNodeFn&&this._visitNodeFn(e,t),t},e.prototype.visitElement=function(e,t){var n=La(this,e.children),r={};e.attrs.forEach(function(e){r[e.name]=e.value});var i=_(e.name).isVoid,o=this._placeholderRegistry.getStartTagPlaceholderName(e.name,r,i);this._placeholderToContent[o]=e.sourceSpan.toString();var s="";i||(s=this._placeholderRegistry.getCloseTagPlaceholderName(e.name),this._placeholderToContent[s]="</"+e.name+">");var a=new zr(e.name,r,o,s,n,i,e.sourceSpan);return this._visitNode(e,a)},e.prototype.visitAttribute=function(e,t){var n=this._visitTextWithInterpolation(e.value,e.sourceSpan);return this._visitNode(e,n)},e.prototype.visitText=function(e,t){var n=this._visitTextWithInterpolation(e.value,e.sourceSpan);return this._visitNode(e,n)},e.prototype.visitComment=function(e,t){return null},e.prototype.visitExpansion=function(t,n){var r=this;this._icuDepth++;var i={},o=new Wr(t.switchValue,t.type,i,t.sourceSpan);if(t.cases.forEach(function(e){i[e.value]=new qr(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,this._visitNode(t,o)}var a=this._placeholderRegistry.getPlaceholderName("ICU",t.sourceSpan.toString()),u=new e(this._expressionParser,this._interpolationConfig);this._placeholderToMessage[a]=u.toI18nMessage([t],"","","");var p=new Qr(o,a,t.sourceSpan);return this._visitNode(t,p)},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 Hr(e,t);for(var r=[],i=new qr(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(Dl)[2]||"INTERPOLATION",c=this._placeholderRegistry.getPlaceholderName(l,p);n.strings[u].length&&r.push(new Hr(n.strings[u],t)),r.push(new Kr(p,c,t)),this._placeholderToContent[c]=s+p+a}var h=n.strings.length-1;return n.strings[h].length&&r.push(new Hr(n.strings[h],t)),i},e}(),Dl=/\/\/[\s\S]*i18n[\s\S]*\([\s\S]*ph[\s\S]*=[\s\S]*("|')([\s\S]*?)\1[\s\S]*\)/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 Fl(e,t){e.i18n=t}var Ll=function(){function e(e,t){void 0===e&&(e=Mo),void 0===t&&(t=!1),this.interpolationConfig=e,this.keepI18nAttrs=t,this._createI18nMessage=Rl(e)}return e.prototype._generateI18nMessage=function(e,t,n){void 0===t&&(t="");var r="string"==typeof t?function i(e){var t,n,r,i,o;if(e){var a=e.indexOf("@@"),u=e.indexOf("|"),p=void 0;p=(t=s(a>-1?[e.slice(0,a),e.slice(a+2)]:[e,""],2))[0],r=t[1],i=(n=s(u>-1?[p.slice(0,u),p.slice(u+1)]:["",p],2))[0],o=n[1]}return{id:r,meaning:i,description:o}}(t):Hi(t),o=this._createI18nMessage(e,r.meaning||"",r.description||"",r.id||"",n);return o.id||(o.id="string"!=typeof t&&t.id||Yr(o)),o},e.prototype.visitElement=function(e,t){var n,r,i,s;if(function a(e){return e.attrs.some(function(e){return Vi(e.name)})}(e)){var u=[],p={};try{for(var l=o(e.attrs),c=l.next();!c.done;c=l.next())if((v=c.value).name===Di){var h=this._generateI18nMessage(e.children,e.i18n||v.value,Fl);h.nodes.length&&(e.i18n=h)}else v.name.startsWith(Fi)?p[v.name.slice(Fi.length)]=v.value:u.push(v)}catch(e){n={error:e}}finally{try{c&&!c.done&&(r=l.return)&&r.call(l)}finally{if(n)throw n.error}}if(Object.keys(p).length)try{for(var f=o(u),d=f.next();!d.done;d=f.next()){var v,m=p[(v=d.value).name];void 0!==m&&v.value&&(v.i18n=this._generateI18nMessage([v],v.i18n||m))}}catch(e){i={error:e}}finally{try{d&&!d.done&&(s=f.return)&&s.call(f)}finally{if(i)throw i.error}}this.keepI18nAttrs||(e.attrs=u)}return La(this,e.children),e},e.prototype.visitExpansion=function(e,t){var n,r=e.i18n;if(r instanceof Qr){var i=r.name;qi(n=this._generateI18nMessage([e],r)).name=i}else n=this._generateI18nMessage([e],r);return e.i18n=n,e},e.prototype.visitText=function(e,t){return e},e.prototype.visitAttribute=function(e,t){return e},e.prototype.visitComment=function(e,t){return e},e.prototype.visitExpansionCase=function(e,t){return e},e}(),Bl=function(e){return"{$"+Gi(e)+"}"},Vl=new(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.expressionPlaceholder+", "+e.type+", "+r.join(" ")+"}"},e.prototype.visitTagPlaceholder=function(e,t){var n=this;return e.isVoid?Bl(e.startName):""+Bl(e.startName)+e.children.map(function(e){return e.visit(n)}).join("")+Bl(e.closeName)},e.prototype.visitPlaceholder=function(e,t){return Bl(e.name)},e.prototype.visitIcuPlaceholder=function(e,t){return Bl(e.name)},e}()),jl=new Map([["window",Bn.resolveWindow],["document",Bn.resolveDocument],["body",Bn.resolveBody]]),Ul=[" ","\n","\r","\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 Hl(e,t){return Ct(yt(eo).bitwiseAnd(bt(e),null,!1),t)}function ql(e,t,n){void 0===t&&(t=null),void 0===n&&(n=null);var r=e.type,i=e.name,o=e.target,s=e.phase,u=e.handler;if(o&&!jl.has(o))throw new Error("Unexpected global target '"+o+"' defined for '"+i+"' event.\n Supported list of global targets: "+Array.from(jl.keys())+".");var p=null===n||0===n.bindingLevel?yt(Zi):n.getOrCreateSharedContextVar(0),l=Fs(n,p,u,"b",function(){return Lt("Unexpected interpolation")},e.handlerSpan),c=[];n&&(c.push.apply(c,a(n.restoreViewStatement())),c.push.apply(c,a(n.variableDeclarations()))),c.push.apply(c,a(l.render3Stmts));var h=1===r?function f(e,t){return""+So+e+"."+t}(i,s):i,d=t&&cn(t),v=wt([new Le("$event",le)],c,ce,null,d),m=[bt(h),v];return o&&m.push(bt(!1),gt(jl.get(o))),m}var Wl=function(){function e(e,t,n,r,i,o,s,a,u,p,l,c,h,f){var d=this;void 0===n&&(n=0),this.constantPool=e,this.level=n,this.contextName=r,this.i18nContext=i,this.templateIndex=o,this.templateName=s,this.directiveMatcher=a,this.directives=u,this.pipeTypeByName=p,this.pipes=l,this._namespace=c,this.relativeContextFilePath=h,this.i18nUseExternalIds=f,this._dataIndex=0,this._bindingContext=0,this._prefixCode=[],this._creationCodeFns=[],this._updateCodeFns=[],this._lastNodeIndexWithFlush=-1,this._tempVariables=[],this._nestedTemplateFns=[],this._unsupported=no,this.i18n=null,this._pureFunctionSlots=0,this._bindingSlots=0,this._ngContentReservedSlots=[],this._ngContentSelectorsOffset=0,this._implicitReceiverExpr=null,this.visitReference=ro,this.visitVariable=ro,this.visitTextAttribute=ro,this.visitBoundAttribute=ro,this.visitBoundEvent=ro,this._bindingScope=t.nestedScope(n),this.fileBasedI18nSuffix=h.replace(/[^A-Za-z0-9]/g,"_")+"_",this._valueConverter=new zl(e,function(){return d.allocateDataSlot()},function(e){return d.allocatePureFunctionSlots(e)},function(e,t,n,r){var i=p.get(e);i&&d.pipes.add(i),d._bindingScope.set(d.level,t,r),d.creationInstruction(null,Bn.pipe,[bt(n),bt(e)])})}return e.prototype.registerContextVariables=function(e){var t=this._bindingScope.freshReferenceName(),n=this.level,r=yt(e.name+t);this._bindingScope.set(n,e.name,r,1,function(t,i){var o;return o=t.bindingLevel===n?yt(Zi):t.getSharedContextName(n)||Gl(i),[r.set(o.prop(e.value||"$implicit")).toConstDecl()]})},e.prototype.buildTemplateFunction=function(e,t,n,r){var i=this;void 0===n&&(n=0),this._ngContentSelectorsOffset=n,this._namespace!==Bn.namespaceHTML&&this.creationInstruction(null,this._namespace),t.forEach(function(e){return i.registerContextVariables(e)});var o=this.i18nContext||ji(r)&&!Ui(r)&&!(function s(e){return 1===e.length&&e[0]instanceof Or}(e)&&e[0].i18n===r),u=sc(e);if(o&&this.i18nStart(null,r,u),jr(this,e),this._pureFunctionSlots+=this._bindingSlots,this._valueConverter.updatePipeSlotOffsets(this._bindingSlots),this._nestedTemplateFns.forEach(function(e){return e()}),0===this.level&&this._ngContentReservedSlots.length){var p=[];if(this._ngContentReservedSlots.length>1||"*"!==this._ngContentReservedSlots[0]){var l=this._ngContentReservedSlots.map(function(e){return"*"!==e?ee(e):e});p.push(this.constantPool.getConstLiteral(io(l),!0))}this.creationInstruction(null,Bn.projectionDef,p,!0)}o&&this.i18nEnd(null,u);var c=this._creationCodeFns.map(function(e){return e()}),h=this._updateCodeFns.map(function(e){return e()}),f=this._bindingScope.viewSnapshotStatements(),d=this._bindingScope.variableDeclarations().concat(this._tempVariables),v=c.length>0?[Hl(1,f.concat(c))]:[],m=h.length>0?[Hl(2,d.concat(h))]:[];return wt([new Le(eo,fe),new Le(Zi,null)],a(this._prefixCode,v,m),ce,null,this.templateName)},e.prototype.getLocal=function(e){return this._bindingScope.get(e)},e.prototype.notifyImplicitReceiverUse=function(){this._bindingScope.notifyImplicitReceiverUse()},e.prototype.i18nTranslate=function(e,t,n,r){var i;void 0===t&&(t={});var o=n||yt(this.constantPool.uniqueName("I18N_")),s=this.i18nGenerateClosureVar(e.id),u={};t&&Object.keys(t).length&&Object.keys(t).forEach(function(e){return u[Gi(e)]=t[e]});var p=Hi(e),l=function h(e,t,n,r,i,o){void 0===i&&(i={});var s=[];return s.push.apply(s,a(Bi(e,t,n,r,i))),o&&s.push(new Ye(e.set(o(e)))),s}(o,s,function c(e){return e.nodes.map(function(e){return e.visit(Vl,null)}).join("")}
/**
* @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),p,u,r);return(i=this.constantPool.statements).push.apply(i,a(l)),o},e.prototype.i18nAppendBindings=function(e){var t=this;e.length>0&&e.forEach(function(e){return t.i18n.appendBinding(e)})},e.prototype.i18nBindProps=function(e){var t=this,n={};return Object.keys(e).forEach(function(r){var i=e[r];if(i instanceof Mr)n[r]=bt(i.value);else{var o=i.value.visit(t._valueConverter);if(t.allocateBindingSlots(o),o instanceof ys){var s=o.expressions,a=t.i18n,u=function p(e,t,n){if(void 0===t&&(t=0),void 0===n&&(n=0),!e.length)return"";for(var r="",i=e.length-1,o=0;o<i;o++)r+=""+e[o]+Wi(t+o,n);return r+e[i]}(o.strings,a.bindings.size,a.id);t.i18nAppendBindings(s),n[r]=bt(u)}}}),n},e.prototype.i18nGenerateClosureVar=function(e){var t,n=this.fileBasedI18nSuffix.toUpperCase();if(this.i18nUseExternalIds){var r=$i("EXTERNAL_"),i=this.constantPool.uniqueName(n);t=""+r+cn(e)+"$$"+i}else r=$i(n),t=this.constantPool.uniqueName(r);return yt(t)},e.prototype.i18nUpdateRef=function(e){var t=e.icus,n=e.meta;if(e.isRoot&&e.isResolved&&!e.isEmitted&&!Ui(n)){e.isEmitted=!0;var r=e.getSerializedPlaceholders(),i={},o=r.size?Ki(r):{};t.size&&t.forEach(function(e,t){if(1===e.length)o[t]=e[0];else{var n=Wi("I18N_EXP_"+t);o[t]=bt(n),i[t]=St(e)}});var s=void 0;(Array.from(r.values()).some(function(e){return e.length>1})||Object.keys(i).length)&&(s=function(e){var t=[e];return Object.keys(i).length&&t.push(Ii(i,!0)),Xl(null,Bn.i18nPostprocess,t)}),this.i18nTranslate(n,o,e.ref,s)}},e.prototype.i18nStart=function(e,t,n){void 0===e&&(e=null);var r=this.allocateDataSlot();if(this.i18nContext)this.i18n=this.i18nContext.forkChildContext(r,this.templateIndex,t);else{var i=yt(this.constantPool.uniqueName("I18N_"));this.i18n=new bl(r,i,0,this.templateIndex,t)}var o=this.i18n,s=o.id,a=o.ref,u=[bt(r),a];s>0&&u.push(bt(s)),this.creationInstruction(e,n?Bn.i18n:Bn.i18nStart,u)},e.prototype.i18nEnd=function(e,t){var n=this;if(void 0===e&&(e=null),!this.i18n)throw new Error("i18nEnd is executed with no i18n context present");this.i18nContext?(this.i18nContext.reconcileChildContext(this.i18n),this.i18nUpdateRef(this.i18nContext)):this.i18nUpdateRef(this.i18n);var r=this.i18n,i=r.index,o=r.bindings;if(o.size){var s=[];o.forEach(function(t){s.push({sourceSpan:e,value:function(){return n.convertPropertyBinding(t)}})}),this.updateInstructionChain(i,Bn.i18nExp,s),this.updateInstruction(i,e,Bn.i18nApply,[bt(i)])}t||this.creationInstruction(e,Bn.i18nEnd),this.i18n=null},e.prototype.visitContent=function(e){var t=this.allocateDataSlot(),n=this._ngContentSelectorsOffset+this._ngContentReservedSlots.length,r=[bt(t)],i=[];this._ngContentReservedSlots.push(e.selector),e.attributes.forEach(function(e){var t=e.name,n=e.value;"ngProjectAs"===t?i.push.apply(i,a(Zl(e))):"select"!==t.toLowerCase()&&i.push(bt(t),bt(n))}),i.length>0?r.push(bt(n),St(i)):0!==n&&r.push(bt(n)),this.creationInstruction(e.sourceSpan,Bn.projection,r),this.i18n&&this.i18n.appendProjection(e.i18n,t)},e.prototype.getNamespaceInstruction=function(e){switch(e){case"math":return Bn.namespaceMathML;case"svg":return Bn.namespaceSVG;default:return Bn.namespaceHTML}},e.prototype.addNamespaceInstruction=function(e,t){this._namespace=e,this.creationInstruction(t.sourceSpan,e)},e.prototype.visitElement=function(e){var t,n,r=this,i=this.allocateDataSlot(),l=new Lp(bt(i),null),c=!1,h=ji(e.i18n)&&!Ui(e.i18n);if(h&&this.i18n)throw new Error("Could not mark an element as translatable inside of a translatable section");var f=[],d=[],v=s(u(e.name),2),m=v[0],y=v[1],g=p(e.name);try{for(var _=o(e.attributes),E=_.next();!E.done;E=_.next()){var S=E.value,x=S.name,w=S.value;"ngNonBindable"===x?c=!0:"style"===x?l.registerStyleAttr(w):"class"===x?l.registerClassAttr(w):S.i18n?f.push(S):d.push(S)}}catch(e){t={error:e}}finally{try{E&&!E.done&&(n=_.return)&&n.call(_)}finally{if(t)throw t.error}}this.matchDirectives(e.name,e);var C=[bt(i)];g||C.push(bt(y));var b=[],T=[];e.inputs.forEach(function(e){l.registerBoundInput(e)||(0===e.type&&e.i18n?f.push(e):T.push(e))}),d.forEach(function(e){b.push.apply(b,"ngProjectAs"===e.name?a(Zl(e)):a(Yl(e.name),[bt(e.value)]))}),b.push.apply(b,a(this.prepareNonRenderAttrs(T,e.outputs,l,[],f))),C.push(this.toAttrsParam(b)),C.push(this.prepareRefsParameter(e.references));var N=this._namespace,P=this.getNamespaceInstruction(m);P!==N&&this.addNamespaceInstruction(P,e),this.i18n&&this.i18n.appendElement(e.i18n,i);var M=!l.hasBindings&&!g&&0===e.outputs.length&&0===f.length&&!(!h&&r.i18n?!sc(e.children):e.children.length>0),A=!M&&!l.hasBindings&&sc(e.children);if(M)this.creationInstruction(e.sourceSpan,Bn.element,so(C));else{if(this.creationInstruction(e.sourceSpan,g?Bn.elementContainerStart:Bn.elementStart,so(C)),c&&this.creationInstruction(e.sourceSpan,Bn.disableBindings),f.length){var I=!1,k=[],R=[];if(f.forEach(function(t){var n=t.i18n;if(t instanceof Ir)k.push(bt(t.name),r.i18nTranslate(n));else{var i=t.value.visit(r._valueConverter);if(r.allocateBindingSlots(i),i instanceof ys){var o=Ki(Xi(n));k.push(bt(t.name),r.i18nTranslate(n,o)),i.expressions.forEach(function(t){I=!0,R.push({sourceSpan:e.sourceSpan,value:function(){return r.convertExpressionBinding(t)}})})}}}),R.length&&this.updateInstructionChain(i,Bn.i18nExp,R),k.length){var O=bt(this.allocateDataSlot()),D=this.constantPool.getConstLiteral(St(k),!0);this.creationInstruction(e.sourceSpan,Bn.i18nAttributes,[O,D]),I&&this.updateInstruction(i,e.sourceSpan,Bn.i18nApply,[O])}}this.processStylingInstruction(i,l.buildStylingInstruction(e.sourceSpan,this.constantPool),!0),e.outputs.forEach(function(t){r.creationInstruction(t.sourceSpan,Bn.listener,r.prepareListenerParameter(e.name,t,i))}),h&&this.i18nStart(e.sourceSpan,e.i18n,A)}for(var F=l.buildUpdateLevelInstructions(this._valueConverter),L=F.length-1,B=0;B<=L;B++){var V=F[B];this._bindingSlots+=V.allocateBindingSlots,this.processStylingInstruction(i,V,!1)}var j=bt(void 0),U=[],H=[];if(T.forEach(function(e){var t=e.type;if(4===t){var n=e.value.visit(r._valueConverter),o=!(n instanceof ds&&!n.value);r.allocateBindingSlots(n),U.push({name:xo(e.name),sourceSpan:e.sourceSpan,value:function(){return o?r.convertPropertyBinding(n):j}})}else{if(e.i18n)return;var p=e.value.visit(r._valueConverter);if(void 0!==p){var l=[],c=s(u(e.name),2),h=c[0],f=c[1],d=ic(e.securityContext,1===t);if(d&&l.push(d),h){var v=bt(h);d?l.push(v):l.push(bt(null),v)}if(r.allocateBindingSlots(p),0===t)p instanceof ys?r.interpolatedUpdateInstruction(function m(e){switch(tc(e)){case 1:return Bn.propertyInterpolate;case 3:return Bn.propertyInterpolate1;case 5:return Bn.propertyInterpolate2;case 7:return Bn.propertyInterpolate3;case 9:return Bn.propertyInterpolate4;case 11:return Bn.propertyInterpolate5;case 13:return Bn.propertyInterpolate6;case 15:return Bn.propertyInterpolate7;case 17:return Bn.propertyInterpolate8;default:return Bn.propertyInterpolateV}}(p),i,f,e,p,l):U.push({name:f,sourceSpan:e.sourceSpan,value:function(){return r.convertPropertyBinding(p)},params:l});else if(1===t)if(p instanceof ys&&tc(p)>1)r.interpolatedUpdateInstruction(function y(e){switch(tc(e)){case 3:return Bn.attributeInterpolate1;case 5:return Bn.attributeInterpolate2;case 7:return Bn.attributeInterpolate3;case 9:return Bn.attributeInterpolate4;case 11:return Bn.attributeInterpolate5;case 13:return Bn.attributeInterpolate6;case 15:return Bn.attributeInterpolate7;case 17:return Bn.attributeInterpolate8;default:return Bn.attributeInterpolateV}}(p),i,f,e,p,l);else{var g=p instanceof ys?p.expressions[0]:p;H.push({name:f,sourceSpan:e.sourceSpan,value:function(){return r.convertPropertyBinding(g)},params:l})}else r.updateInstruction(i,e.sourceSpan,Bn.classProp,function(){return a([bt(i),bt(f),r.convertPropertyBinding(p)],l)})}}}),U.length>0&&this.updateInstructionChain(i,Bn.property,U),H.length>0&&this.updateInstructionChain(i,Bn.attribute,H),jr(this,e.children),!h&&this.i18n&&this.i18n.appendElement(e.i18n,i,!0),!M){var q=e.endSourceSpan||e.sourceSpan;h&&this.i18nEnd(q,A),c&&this.creationInstruction(q,Bn.enableBindings),this.creationInstruction(q,g?Bn.elementContainerEnd:Bn.elementEnd)}},e.prototype.interpolatedUpdateInstruction=function(e,t,n,r,i,o){var s=this;this.updateInstruction(t,r.sourceSpan,e,function(){return a([bt(n)],s.getUpdateInstructionArguments(i),o)})},e.prototype.visitTemplate=function(t){var n=this,r=this.allocateDataSlot();this.i18n&&this.i18n.appendTemplate(t.i18n,r);var i=cn(t.tagName||""),o=this.contextName+(i?"_"+i:"")+"_"+r,s=o+"_Template",p=[bt(r),yt(s),bt(t.tagName?u(t.tagName)[1]:t.tagName)];this.matchDirectives("ng-template",t);var l=[];t.attributes.forEach(function(e){l.push(io(e.name),io(e.value))}),l.push.apply(l,a(this.prepareNonRenderAttrs(t.inputs,t.outputs,void 0,t.templateAttrs))),p.push(this.toAttrsParam(l)),t.references&&t.references.length&&(p.push(this.prepareRefsParameter(t.references)),p.push(gt(Bn.templateRefExtractor)));var c=new e(this.constantPool,this._bindingScope,this.level+1,o,this.i18n,r,s,this.directiveMatcher,this.directives,this.pipeTypeByName,this.pipes,this._namespace,this.fileBasedI18nSuffix,this.i18nUseExternalIds);this._nestedTemplateFns.push(function(){var e,r=c.buildTemplateFunction(t.children,t.variables,n._ngContentReservedSlots.length+n._ngContentSelectorsOffset,t.i18n);n.constantPool.statements.push(r.toDeclStmt(s,null)),c._ngContentReservedSlots.length&&(e=n._ngContentReservedSlots).push.apply(e,a(c._ngContentReservedSlots))}),this.creationInstruction(t.sourceSpan,Bn.templateCreate,function(){return p.splice(2,0,bt(c.getConstCount()),bt(c.getVarCount())),so(p)}),this.templatePropertyBindings(r,t.templateAttrs),"ng-template"===t.tagName&&(this.templatePropertyBindings(r,t.inputs),t.outputs.forEach(function(e){n.creationInstruction(e.sourceSpan,Bn.listener,n.prepareListenerParameter("ng_template",e,r))}))},e.prototype.visitBoundText=function(e){var t=this;if(this.i18n){var n=e.value.visit(this._valueConverter);return this.allocateBindingSlots(n),void(n instanceof ys&&(this.i18n.appendBoundText(e.i18n),this.i18nAppendBindings(n.expressions)))}var r=this.allocateDataSlot();this.creationInstruction(e.sourceSpan,Bn.text,[bt(r)]);var i=e.value.visit(this._valueConverter);this.allocateBindingSlots(i),i instanceof ys?this.updateInstruction(r,e.sourceSpan,function o(e){switch(tc(e)){case 1:return Bn.textInterpolate;case 3:return Bn.textInterpolate1;case 5:return Bn.textInterpolate2;case 7:return Bn.textInterpolate3;case 9:return Bn.textInterpolate4;case 11:return Bn.textInterpolate5;case 13:return Bn.textInterpolate6;case 15:return Bn.textInterpolate7;case 17:return Bn.textInterpolate8;default:return Bn.textInterpolateV}}(i),function(){return t.getUpdateInstructionArguments(i)}):this.updateInstruction(r,e.sourceSpan,Bn.textBinding,function(){return[t.convertPropertyBinding(i)]})},e.prototype.visitText=function(e){this.i18n||this.creationInstruction(e.sourceSpan,Bn.text,[bt(this.allocateDataSlot()),bt(e.value)])},e.prototype.visitIcu=function(e){var t=!1;this.i18n||(t=!0,this.i18nStart(null,e.i18n,!0));var n=this.i18n,r=this.i18nBindProps(e.vars),i=this.i18nBindProps(e.placeholders),o=e.i18n,s=function(e){return Xl(null,Bn.i18nPostprocess,[e,Ii(r,!0)])};if(Ui(n.meta))this.i18nTranslate(o,i,n.ref,s);else{var a=this.i18nTranslate(o,i,void 0,s);n.appendIcu(qi(o).name,a)}return t&&this.i18nEnd(null,!0),null},e.prototype.allocateDataSlot=function(){return this._dataIndex++},e.prototype.getConstCount=function(){return this._dataIndex},e.prototype.getVarCount=function(){return this._pureFunctionSlots},e.prototype.getNgContentSelectors=function(){return this._ngContentReservedSlots.length?this.constantPool.getConstLiteral(io(this._ngContentReservedSlots),!0):null},e.prototype.bindingContext=function(){return""+this._bindingContext++},e.prototype.templatePropertyBindings=function(e,t){var n=this,r=[];t.forEach(function(e){if(e instanceof kr){var t=e.value.visit(n._valueConverter);void 0!==t&&(n.allocateBindingSlots(t),r.push({name:e.name,sourceSpan:e.sourceSpan,value:function(){return n.convertPropertyBinding(t)}}))}}),r.length>0&&this.updateInstructionChain(e,Bn.property,r)},e.prototype.instructionFn=function(e,t,n,r,i){void 0===i&&(i=!1),e[i?"unshift":"push"](function(){var e=Array.isArray(r)?r:r();return Xl(t,n,e).toStmt()})},e.prototype.processStylingInstruction=function(e,t,n){var r=this;if(t){var i=function(){return t.buildParams(function(e){return r.convertPropertyBinding(e)})};n?this.creationInstruction(t.sourceSpan,t.reference,i):this.updateInstruction(e,t.sourceSpan,t.reference,i)}},e.prototype.creationInstruction=function(e,t,n,r){this.instructionFn(this._creationCodeFns,e,t,n||[],r)},e.prototype.updateInstruction=function(e,t,n,r){this.addSelectInstructionIfNecessary(e,t),this.instructionFn(this._updateCodeFns,t,n,r||[])},e.prototype.updateInstructionChain=function(e,t,n){var r=n.length?n[0].sourceSpan:null;this.addSelectInstructionIfNecessary(e,r),this._updateCodeFns.push(function(){var e=n.map(function(e){var t=a([e.value()],e.params||[]);return e.name&&t.unshift(bt(e.name)),t});return function i(e,t,n){var r=gt(t,null,e);if(n.length>0)for(var i=0;i<n.length;i++)r=r.callFn(n[i],e);else r=r.callFn([],e);return r}(r,t,e).toStmt()})},e.prototype.addSelectInstructionIfNecessary=function(e,t){this._lastNodeIndexWithFlush<e&&(e>0&&this.instructionFn(this._updateCodeFns,t,Bn.select,[bt(e)]),this._lastNodeIndexWithFlush=e)},e.prototype.allocatePureFunctionSlots=function(e){var t=this._pureFunctionSlots;return this._pureFunctionSlots+=e,t},e.prototype.allocateBindingSlots=function(e){this._bindingSlots+=e instanceof ys?e.expressions.length:1},e.prototype.getImplicitReceiverExpr=function(){return this._implicitReceiverExpr?this._implicitReceiverExpr:this._implicitReceiverExpr=0===this.level?yt(Zi):this._bindingScope.getOrCreateSharedContextVar(0)},e.prototype.convertExpressionBinding=function(e){return Us(this,this.getImplicitReceiverExpr(),e,this.bindingContext(),Bs.TrySimple).currValExpr},e.prototype.convertPropertyBinding=function(e){var t,n=e instanceof ys?ec:function(){return Lt("Unexpected interpolation")},r=Us(this,this.getImplicitReceiverExpr(),e,this.bindingContext(),Bs.TrySimple,n),i=r.currValExpr;return(t=this._tempVariables).push.apply(t,a(r.stmts)),i},e.prototype.getUpdateInstructionArguments=function(e){var t,n=function r(e,t,n,i){var o=new Xs(e,t,i,void 0),s=n.visit(o,Vs.Expression);o.usesImplicitReceiver&&e.notifyImplicitReceiverUse();var a=Hs(o,i),u=s.args.slice(1);if(n instanceof ys){var p=n.strings;3===u.length&&""===p[0]&&""===p[1]?u=[u[1]]:u.length>=19&&(u=[St(u)])}return{stmts:a,args:u}}(this,this.getImplicitReceiverExpr(),e,this.bindingContext()),i=n.args;return(t=this._tempVariables).push.apply(t,a(n.stmts)),i},e.prototype.matchDirectives=function(e,t){var n=this;if(this.directiveMatcher){var r=function i(e,t){var n=new w;return n.setElement(e),Object.getOwnPropertyNames(t).forEach(function(e){var r=t[e];n.addAttribute(e,r),"class"===e.toLowerCase()&&r.trim().split(/\s+/).forEach(function(e){return n.addClassName(e)})}),n}(e,co(t));this.directiveMatcher.match(r,function(e,t){n.directives.add(t)})}},e.prototype.prepareNonRenderAttrs=function(e,t,n,r,i){void 0===r&&(r=[]),void 0===i&&(i=[]);var o=new Set,s=[];function u(e,t){"string"==typeof e?o.has(e)||(s.push.apply(s,a(Yl(e))),void 0!==t&&s.push(t),o.add(e)):s.push(bt(e))}if(n&&n.populateInitialStylingAttrs(s),e.length||t.length){for(var p=s.length,l=0;l<e.length;l++){var c=e[l];4!==c.type&&u(c.name)}for(l=0;l<t.length;l++){var h=t[l];1!==h.type&&u(h.name)}s.length&&s.splice(p,0,bt(3))}return r.length&&(s.push(bt(4)),r.forEach(function(e){return u(e.name)})),i.length&&(s.push(bt(6)),i.forEach(function(e){return u(e.name)})),s},e.prototype.toAttrsParam=function(e){return e.length>0?this.constantPool.getConstLiteral(St(e),!0):Qe},e.prototype.prepareRefsParameter=function(e){var t=this;if(!e||0===e.length)return Qe;var n=In(e.map(function(e){var n=t.allocateDataSlot(),r=t._bindingScope.freshReferenceName(),i=t.level,o=yt(r);return t._bindingScope.set(i,e.name,o,0,function(e,t){var r=t>0?[Gl(t).toStmt()]:[],i=o.set(gt(Bn.reference).callFn([bt(n)]));return r.concat(i.toConstDecl())},!0),[e.name,e.value]}));return this.constantPool.getConstLiteral(io(n),!0)},e.prototype.prepareListenerParameter=function(e,t,n){var r=this;return function(){var i=t.name,o=1===t.type?wo(i,t.phase):cn(i),s=r.templateName+"_"+e+"_"+o+"_"+n+"_listener",a=r._bindingScope.nestedScope(r._bindingScope.bindingLevel);return ql(t,s,a)}},e}(),zl=function(e){function t(t,n,r,i){var o=e.call(this)||this;return o.constantPool=t,o.allocateSlot=n,o.allocatePureFunctionSlots=r,o.definePipe=i,o._pipeBindExprs=[],o}return n(t,e),t.prototype.visitPipe=function(e,t){var n=this.allocateSlot(),r="PIPE:"+n,i=this.allocatePureFunctionSlots(2+e.args.length),o=new us(e.span,new os(e.span),r),s=function u(e){var t=Kl[e.length];return{identifier:t||Bn.pipeBindV,isVarLength:!t}}(e.args),p=s.isVarLength;this.definePipe(e.name,r,n,gt(s.identifier));var l=a([e.exp],e.args),c=this.visitAll(p?[new vs(e.span,l)]:l),h=new ws(e.span,o,a([new ds(e.span,n),new ds(e.span,i)],c));return this._pipeBindExprs.push(h),h},t.prototype.updatePipeSlotOffsets=function(e){this._pipeBindExprs.forEach(function(t){t.args[1].value+=e})},t.prototype.visitLiteralArray=function(e,t){var n=this;return new $s(e.span,this.visitAll(e.expressions),function(e){var t=St(e);return e.every(function(e){return e.isConstant()})?n.constantPool.getConstLiteral(t,!0):$l(n.constantPool,t,n.allocatePureFunctionSlots)})},t.prototype.visitLiteralMap=function(e,t){var n=this;return new $s(e.span,this.visitAll(e.values),function(t){var r=xt(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.constantPool.getConstLiteral(r,!0):$l(n.constantPool,r,n.allocatePureFunctionSlots)})},t}(Ms),Kl=[Bn.pipeBind1,Bn.pipeBind2,Bn.pipeBind3,Bn.pipeBind4],Ql=[Bn.pureFunction0,Bn.pureFunction1,Bn.pureFunction2,Bn.pureFunction3,Bn.pureFunction4,Bn.pureFunction5,Bn.pureFunction6,Bn.pureFunction7,Bn.pureFunction8];function Xl(e,t,n){return gt(t,null,e).callFn(n,e)}function Gl(e){return gt(Bn.nextContext).callFn(e>1?[bt(e)]:[])}function $l(e,t,n){var r=e.getLiteralFactory(t),i=r.literalFactory,o=r.literalFactoryArguments,s=n(1+o.length);o.length>0||Lt("Expected arguments to a literal factory function");var u=function p(e){var t=Ql[e.length];return{identifier:t||Bn.pureFunctionV,isVarLength:!t}}(o),l=u.identifier,c=u.isVarLength,h=[bt(s),i];return c?h.push(St(o)):h.push.apply(h,a(o)),gt(l).callFn(h)}function Yl(e){var t=s(u(e),2),n=t[0],r=bt(t[1]);return n?[bt(0),bt(n),r]:[r]}var Jl=function(){function e(e,t){void 0===e&&(e=0),void 0===t&&(t=null),this.bindingLevel=e,this.parent=t,this.map=new Map,this.referenceNameIndex=0,this.restoreViewVariable=null}return Object.defineProperty(e,"ROOT_SCOPE",{get:function(){return e._ROOT_SCOPE||(e._ROOT_SCOPE=(new e).set(0,"$event",yt("$event"))),e._ROOT_SCOPE},enumerable:!0,configurable:!0}),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={retrievalLevel:n.retrievalLevel,lhs:n.lhs,declareLocalCallback:n.declareLocalCallback,declare:!1,priority:n.priority,localRef:n.localRef}),this.maybeGenerateSharedContextVar(n),this.maybeRestoreView(n.retrievalLevel,n.localRef)),n.declareLocalCallback&&!n.declare&&(n.declare=!0),n.lhs;t=t.parent}return 0===this.bindingLevel?null:this.getComponentProperty(e)},e.prototype.set=function(e,t,n,r,i,o){if(void 0===r&&(r=0),this.map.has(t)){if(o)return this;Lt("The name "+t+" is already defined in scope to be "+this.map.get(t))}return this.map.set(t,{retrievalLevel:e,lhs:n,declare:!1,declareLocalCallback:i,priority:r,localRef:o||!1}),this},e.prototype.getLocal=function(e){return this.get(e)},e.prototype.notifyImplicitReceiverUse=function(){0!==this.bindingLevel&&(this.map.get("$$shared_ctx$$0").declare=!0)},e.prototype.nestedScope=function(t){var n=new e(t,this);return t>0&&n.generateSharedContextVar(0),n},e.prototype.getOrCreateSharedContextVar=function(e){var t="$$shared_ctx$$"+e;return this.map.has(t)||this.generateSharedContextVar(e),this.map.get(t).lhs},e.prototype.getSharedContextName=function(e){var t=this.map.get("$$shared_ctx$$"+e);return t&&t.declare?t.lhs:null},e.prototype.maybeGenerateSharedContextVar=function(e){if(1===e.priority&&e.retrievalLevel<this.bindingLevel){var t=this.map.get("$$shared_ctx$$"+e.retrievalLevel);t?t.declare=!0:this.generateSharedContextVar(e.retrievalLevel)}},e.prototype.generateSharedContextVar=function(e){var t=yt(Zi+this.freshReferenceName());this.map.set("$$shared_ctx$$"+e,{retrievalLevel:e,lhs:t,declareLocalCallback:function(e,n){return[t.set(Gl(n)).toConstDecl()]},declare:!1,priority:2,localRef:!1})},e.prototype.getComponentProperty=function(e){var t=this.map.get("$$shared_ctx$$0");return t.declare=!0,this.maybeRestoreView(0,!1),t.lhs.prop(e)},e.prototype.maybeRestoreView=function(e,t){this.isListenerScope()&&(e<this.bindingLevel||t)&&(this.parent.restoreViewVariable||(this.parent.restoreViewVariable=yt(this.parent.freshReferenceName())),this.restoreViewVariable=this.parent.restoreViewVariable)},e.prototype.restoreViewStatement=function(){return this.restoreViewVariable?[Xl(null,Bn.restoreView,[this.restoreViewVariable]).toStmt()]:[]},e.prototype.viewSnapshotStatements=function(){var e=Xl(null,Bn.getCurrentView,[]);return this.restoreViewVariable?[this.restoreViewVariable.set(e).toConstDecl()]:[]},e.prototype.isListenerScope=function(){return this.parent&&this.parent.bindingLevel===this.bindingLevel},e.prototype.variableDeclarations=function(){var e=this,t=0;return Array.from(this.map.values()).filter(function(e){return e.declare}).sort(function(e,t){return t.retrievalLevel-e.retrievalLevel||t.priority-e.priority}).reduce(function(n,r){var i=e.bindingLevel-r.retrievalLevel,o=r.declareLocalCallback(e,i-t);return t=i,n.concat(o)},[])},e.prototype.freshReferenceName=function(){for(var e=this;e.parent;)e=e.parent;return"_r"+e.referenceNameIndex++},e}();function Zl(e){var t=ee(e.value)[0];return[bt(5),io(t)]}function ec(e){switch((e=e.slice(1)).length){case 3:return gt(Bn.interpolation1).callFn(e);case 5:return gt(Bn.interpolation2).callFn(e);case 7:return gt(Bn.interpolation3).callFn(e);case 9:return gt(Bn.interpolation4).callFn(e);case 11:return gt(Bn.interpolation5).callFn(e);case 13:return gt(Bn.interpolation6).callFn(e);case 15:return gt(Bn.interpolation7).callFn(e);case 17:return gt(Bn.interpolation8).callFn(e)}return e.length>=19&&e.length%2==1||Lt("Invalid interpolation argument length "+e.length),gt(Bn.interpolationV).callFn([St(e)])}function tc(e){var t=e.expressions,n=e.strings;return 1===t.length&&2===n.length&&""===n[0]&&""===n[1]?1:t.length+n.length}function nc(e,t,n){void 0===n&&(n={});var r=n.interpolationConfig,o=n.preserveWhitespaces,s=rc(r),a=(new au).parse(e,t,i({leadingTriviaChars:Ul},n,{tokenizeExpansionForms:!0}));if(a.errors&&a.errors.length>0)return{errors:a.errors,nodes:[],styleUrls:[],styles:[]};var u=a.rootNodes;u=La(new Ll(r,!o),u),o||(u=La(new fu,u),u=La(new Ll(r,!1),u));var p=_l(u,s),l=p.errors;return l&&l.length>0?{errors:l,nodes:[],styleUrls:[],styles:[]}:{nodes:p.nodes,styleUrls:p.styleUrls,styles:p.styles}}function rc(e){return void 0===e&&(e=Mo),new Ju(new ol(new qp),e,new yl,null,[])}function ic(e,t){switch(e){case D.HTML:return gt(Bn.sanitizeHtml);case D.SCRIPT:return gt(Bn.sanitizeScript);case D.STYLE:return t?gt(Bn.sanitizeStyle):null;case D.URL:return gt(Bn.sanitizeUrl);case D.RESOURCE_URL:return gt(Bn.sanitizeResourceUrl);default:return null}}function oc(e){return e instanceof Mr||e instanceof Ar||e instanceof Vr}function sc(e){return e.every(oc)}
/**
* @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 ac=[],uc=/attr\.([^\]]+)/;function pc(e,t,n){var r=new lo;r.set("type",e.type),r.set("selectors",function i(e){return io(ee(e))}(e.selector));var o=ho({name:e.name,type:e.type,deps:e.deps,injectFn:Bn.directiveInject});return r.set("factory",o.factory),e.queries.length>0&&r.set("contentQueries",gc(e.queries,t,e.name)),e.viewQueries.length&&r.set("viewQuery",xc(e.viewQueries,t,e.name)),r.set("hostBindings",wc(e.host,e.typeSourceSpan,n,t,e.selector||"",e.name)),r.set("inputs",oo(e.inputs,!0)),r.set("outputs",oo(e.outputs)),null!==e.exportAs&&r.set("exportAs",St(e.exportAs.map(function(e){return bt(e)}))),{definitionMap:r,statements:o.statements}}function lc(e,t){var n=[],r=t.providers,i=t.viewProviders;if(r||i){var o=[r||new He([])];i&&o.push(i),n.push(gt(Bn.ProvidersFeature).callFn(o))}t.usesInheritance&&n.push(gt(Bn.InheritDefinitionFeature)),t.lifecycle.usesOnChanges&&n.push(gt(Bn.NgOnChangesFeature).callFn(ac)),n.length&&e.set("features",St(n))}function cc(e,t,n){var r=pc(e,t,n),i=r.definitionMap,o=r.statements;lc(i,e);var s=gt(Bn.defineDirective).callFn([i.toLiteralMap()]);if(!e.selector)throw new Error("Directive "+e.name+" has no selector, please add it!");return{expression:s,type:Sc(e,Bn.DirectiveDefWithMeta),statements:o}}function hc(e,t,n){var r=new lo;if(e.inputs){var i=e.inputs,o=Object.keys(i).map(function(e){var t=i[e];return{key:e,value:Array.isArray(t)?St(t.map(function(e){return bt(e)})):bt(t),quoted:!1}});r.set("inputs",xt(o))}if(e.outputs){var s=e.outputs,a=Object.keys(s).map(function(e){return{key:e,value:bt(s[e]),quoted:!1}});r.set("outputs",xt(a))}return e.viewQueries&&e.viewQueries.length>0&&r.set("viewQuery",xc(e.viewQueries,t)),e.queries&&e.queries.length>0&&r.set("contentQueries",gc(e.queries,t)),e.host&&r.set("hostBindings",wc(e.host,e.typeSourceSpan,n,t,e.name)),{expression:gt(Bn.defineBase).callFn([r.toLiteralMap()]),type:new ae(gt(Bn.BaseDef))}}function fc(e,t,n){var r,i,s=pc(e,t,n),a=s.definitionMap,u=s.statements;lc(a,e);var p=e.selector&&w.parse(e.selector),l=p&&p[0];if(l){var c=l.getAttrs();c.length&&a.set("attrs",t.getConstLiteral(St(c.map(function(e){return bt(null!=e?e:void 0)})),!0))}var h=null;if(e.directives.length>0){var f=new C;try{for(var d=o(e.directives),v=d.next();!v.done;v=d.next()){var m=v.value,y=m.expression;f.addSelectables(w.parse(m.selector),y)}}catch(e){r={error:e}}finally{try{v&&!v.done&&(i=d.return)&&i.call(d)}finally{if(r)throw r.error}}h=f}var g=e.name,_=g?g+"_Template":null,x=new Set,b=new Set,T=e.changeDetection,N=e.template,P=new Wl(t,Jl.ROOT_SCOPE,0,g,null,null,_,h,x,e.pipes,b,Bn.namespaceHTML,e.relativeContextFilePath,e.i18nUseExternalIds),M=P.buildTemplateFunction(N.nodes,[]),A=P.getNgContentSelectors();if(A&&a.set("ngContentSelectors",A),a.set("consts",bt(P.getConstCount())),a.set("vars",bt(P.getVarCount())),a.set("template",M),x.size){var I=St(Array.from(x));e.wrapDirectivesAndPipesInClosure&&(I=wt([],[new Je(I)])),a.set("directives",I)}if(b.size){var k=St(Array.from(b));e.wrapDirectivesAndPipesInClosure&&(k=wt([],[new Je(k)])),a.set("pipes",k)}if(null===e.encapsulation&&(e.encapsulation=E.Emulated),e.styles&&e.styles.length){var R=(e.encapsulation==E.Emulated?function O(e,t,n){var r=new Ys;return e.map(function(e){return r.shimCssText(e,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
*/(e.styles,ba,Ca):e.styles).map(function(e){return bt(e)});a.set("styles",St(R))}else e.encapsulation===E.Emulated&&(e.encapsulation=E.None);return e.encapsulation!==E.Emulated&&a.set("encapsulation",bt(e.encapsulation)),null!==e.animations&&a.set("data",xt([{key:"animation",value:e.animations,quoted:!1}])),null!=T&&T!==S.Default&&a.set("changeDetection",bt(T)),(e.selector||"").replace(/\n/g,""),{expression:gt(Bn.defineComponent).callFn([a.toLiteralMap()]),type:Sc(e,Bn.ComponentDefWithMeta),statements:u}}function dc(e,t,n){throw new Error("unsupported")}function vc(e,t){return e.map(function(e){var n=null;return e.read&&e.read.identifier&&(n=t.importExpr(e.read.identifier.reference)),{propertyName:e.propertyName,first:e.first,predicate:mc(e.selectors,t),descendants:e.descendants,read:n,static:!!e.static}})}function mc(e,t){if(e.length>1||1==e.length&&e[0].value){var n=e.map(function(e){return e.value});return n.some(function(e){return!e})&&Lt("Found a type among the string selectors expected"),t.constantPool.getConstLiteral(St(n.map(function(e){return bt(e)})))}if(1==e.length){var r=e[0];if(r.identifier)return t.importExpr(r.identifier.reference)}return Lt("Unexpected query form"),Ke}function yc(e,t){return[ao(e,t),bt(e.descendants),e.read||bt(null)]}function gc(e,t,n){var r,i,s=[],u=[],p=to(u,Ji);try{for(var l=o(e),c=l.next();!c.done;c=l.next()){var h=c.value,f=a([yt("dirIndex")],yc(h,t));s.push(gt(h.static?Bn.staticContentQuery:Bn.contentQuery).callFn(f).toStmt());var d=p(),v=gt(Bn.loadContentQuery).callFn([]),m=gt(Bn.queryRefresh).callFn([d.set(v)]),y=yt(Zi).prop(h.propertyName).set(h.first?d.prop("first"):d);u.push(m.and(y).toStmt())}}catch(e){r={error:e}}finally{try{c&&!c.done&&(i=l.return)&&i.call(l)}finally{if(r)throw r.error}}var g=n?n+"_ContentQueries":null;return wt([new Le(eo,fe),new Le(Zi,null),new Le("dirIndex",null)],[Hl(1,s),Hl(2,u)],ce,null,g)}function _c(e){return Et(xt(Object.keys(e).map(function(t){return{key:t,value:bt(Array.isArray(e[t])?e[t][0]:e[t]),quoted:!0}})))}function Ec(e){return e.length>0?Et(St(e.map(function(e){return bt(e)}))):de}function Sc(e,t){var n,r=(e.selector||"").replace(/\n/g,"");return Et(gt(t,[Eo(e.type,e.typeArgumentCount),(n=r,Et(bt(n))),null!==e.exportAs?Ec(e.exportAs):de,_c(e.inputs),_c(e.outputs),Ec(e.queries.map(function(e){return e.propertyName}))]))}function xc(e,t,n){var r=[],i=[],o=to(i,Ji);e.forEach(function(e){var n=gt(e.static?Bn.staticViewQuery:Bn.viewQuery).callFn(yc(e,t));r.push(n.toStmt());var s=o(),a=gt(Bn.loadViewQuery).callFn([]),u=gt(Bn.queryRefresh).callFn([s.set(a)]),p=yt(Zi).prop(e.propertyName).set(e.first?s.prop("first"):s);i.push(u.and(p).toStmt())});var s=n?n+"_Query":null;return wt([new Le(eo,fe),new Le(Zi,null)],[Hl(1,r),Hl(2,i)],ce,null,s)}function wc(e,t,n,r,i,s){var u=Object.keys(e.properties).filter(function(e){var t=function n(e){return e.substring(0,5)}(e);return"style"!==t&&"class"!==t}).length,p=yt("elIndex"),l=yt(Zi),c=new Lp(p,l),h=e.specialAttributes,f=h.styleAttr,d=h.classAttr;void 0!==f&&c.registerStyleAttr(f),void 0!==d&&c.registerClassAttr(d);var v,m=[],y=[],g=u,_=t,E=Tc(e),S=function(){return v||(v=new zl(r,function(){return Lt("Unexpected node")},function(e){var t=g;return g+=e,t},function(){return Lt("Unexpected pipe")})),v},x=n.createDirectiveHostEventAsts(E,_);if(x&&x.length){var w=function C(e,t){return e.map(function(e){var n=e.name&&cn(e.name),r=1===e.type?wo(n,e.targetOrPhase):n,i=t&&n?t+"_"+r+"_HostBindingHandler":null,o=ql(Rr.fromParsedEvent(e),i);return gt(1==e.type?Bn.componentHostSyntheticListener:Bn.listener).callFn(o).toStmt()})}(x,s);m.push.apply(m,a(w))}(n.createBoundHostProperties(E,_)||[]).forEach(function(e){if(!c.registerInputBasedOnName(e.name,e.expression,e.sourceSpan)){var t=e.expression.visit(S()),r=Cc(l,t),o=function s(e){var t,n=e.name,r=n.match(uc);return r?(n=r[1],t=Bn.attribute):e.isAnimation?(n=xo(n),t=Bn.updateSyntheticHostBinding):t=Bn.property,{bindingName:n,instruction:t,isAttribute:!!r}}(e),u=o.bindingName,p=o.instruction,h=o.isAttribute,f=n.calcPossibleSecurityContexts(i,u,h).filter(function(e){return e!==D.NONE}),d=null;f.length&&(d=2===f.length&&f.indexOf(D.URL)>-1&&f.indexOf(D.RESOURCE_URL)>-1?gt(Bn.sanitizeUrlOrResourceUrl):ic(f[0],h));var v=[bt(u),r.currValExpr];d&&v.push(d),h||(d||v.push(bt(null)),v.push(bt(!0))),y.push.apply(y,a(r.stmts)),y.push(gt(p).callFn(v).toStmt())}});var b=function T(e){var t,n,r=[];try{for(var i=o(Object.getOwnPropertyNames(e)),s=i.next();!s.done;s=i.next()){var a=s.value,u=e[a];r.push(bt(a),u)}}catch(e){t={error:e}}finally{try{s&&!s.done&&(n=i.return)&&n.call(i)}finally{if(t)throw t.error}}return r}(e.attributes),N=c.buildHostAttrsInstruction(null,b,r);if(N&&m.push(bc(N,l,Cc)),c.hasBindings){var P=c.buildStylingInstruction(null,r);P&&m.push(bc(P,l,Cc)),c.buildUpdateLevelInstructions(S()).forEach(function(e){g+=e.allocateBindingSlots,y.push(bc(e,l,Cc))})}if(g&&m.unshift(gt(Bn.allocHostVars).callFn([bt(g)]).toStmt()),m.length>0||y.length>0){var M=s?s+"_HostBindings":null,A=[];return m.length>0&&A.push(Hl(1,m)),y.length>0&&A.push(Hl(2,y)),wt([new Le(eo,fe),new Le(Zi,null),new Le(p.name,fe)],A,ce,null,M)}return null}function Cc(e,t){return Us(null,e,t,"b",Bs.TrySimple,function(){return Lt("Unexpected interpolation")})}function bc(e,t,n){var r=e.buildParams(function(e){return n(t,e).currValExpr});return gt(e.reference,null,e.sourceSpan).callFn(r,e.sourceSpan).toStmt()}function Tc(e){return{hostAttributes:{},hostListeners:e.listeners,hostProperties:e.properties}}function Nc(e,t){var n=Array.from(e).map(function(e){var n=s(e,2);return[n[0],t.importExpr(n[1])]});return new Map(n)}var Pc=/^(?:\[([^\]]+)\])|(?:\(([^\)]+)\))$/;function Mc(e){var t,n,r={},i={},s={},a={};try{for(var u=o(Object.keys(e)),p=u.next();!p.done;p=u.next()){var l=p.value,c=e[l],h=l.match(Pc);if(null===h)switch(l){case"class":if("string"!=typeof c)throw new Error("Class binding must be string");a.classAttr=c;break;case"style":if("string"!=typeof c)throw new Error("Style binding must be string");a.styleAttr=c;break;default:r[l]="string"==typeof c?bt(c):c}else if(null!=h[1]){if("string"!=typeof c)throw new Error("Property binding must be string");s[h[1]]=c}else if(null!=h[2]){if("string"!=typeof c)throw new Error("Event binding must be string");i[h[2]]=c}}}catch(e){t={error:e}}finally{try{p&&!p.done&&(n=u.return)&&n.call(u)}finally{if(t)throw t.error}}return{attributes:r,listeners:i,properties:s,specialAttributes:a}}function Ac(e,t){var n=Tc(e),r=rc();return r.createDirectiveHostEventAsts(n,t),r.createBoundHostProperties(n,t),r.errors}var Ic=function(){function e(){}return e.prototype.get=function(e){return""},e}(),kc=function(){function t(t){void 0===t&&(t=new zo),this.jitEvaluator=t,this.R3ResolvedDependencyType=e.R3ResolvedDependencyType,this.ResourceLoader=Ic,this.elementSchemaRegistry=new yl}return t.prototype.compilePipe=function(e,t,n){var r=Jo({name:n.name,type:new xe(n.type),typeArgumentCount:n.typeArgumentCount,deps:Hc(n.deps),pipeName:n.pipeName,pure:n.pure});return this.jitExpression(r.expression,e,t,r.statements)},t.prototype.compileInjectable=function(e,t,n){var r,i=Co({name:n.name,type:new xe(n.type),typeArgumentCount:n.typeArgumentCount,providedIn:(r=n.providedIn,null==r||"string"==typeof r?new Ae(r):new xe(r)),useClass:jc(n,Rc),useFactory:jc(n,Oc),useValue:jc(n,Dc),useExisting:jc(n,Fc),ctorDeps:Hc(n.ctorDeps),userDeps:Hc(n.userDeps)||void 0});return this.jitExpression(i.expression,e,t,i.statements)},t.prototype.compileInjector=function(e,t,n){var r=Go({name:n.name,type:new xe(n.type),deps:Hc(n.deps),providers:new xe(n.providers),imports:n.imports.map(function(e){return new xe(e)})});return this.jitExpression(r.expression,e,t,r.statements)},t.prototype.compileNgModule=function(e,t,n){var r=Xo({type:new xe(n.type),bootstrap:n.bootstrap.map(Lc),declarations:n.declarations.map(Lc),imports:n.imports.map(Lc),exports:n.exports.map(Lc),emitInline:!0,containsForwardDecls:!1,schemas:n.schemas?n.schemas.map(Lc):null,id:n.id?new xe(n.id):null});return this.jitExpression(r.expression,e,t,[])},t.prototype.compileDirective=function(e,t,n){var r=new Zt,i=rc(),o=cc(Vc(n),r,i),s=a(r.statements,o.statements);return this.jitExpression(o.expression,e,t,s)},t.prototype.compileComponent=function(e,t,n){var r=new Zt,o=n.interpolation?Po.fromArray(n.interpolation):Mo,s=nc(n.template,t,{preserveWhitespaces:n.preserveWhitespaces,interpolationConfig:o});if(void 0!==s.errors){var u=s.errors.map(function(e){return e.toString()}).join(", ");throw new Error("Errors during JIT compilation of template for "+n.name+": "+u)}var p=fc(i({},n,Vc(n),{selector:n.selector||this.elementSchemaRegistry.getDefaultComponentElementName(),template:s,wrapDirectivesAndPipesInClosure:!1,styles:n.styles||[],encapsulation:n.encapsulation,interpolation:o,changeDetection:n.changeDetection,animations:null!=n.animations?new xe(n.animations):null,viewProviders:null!=n.viewProviders?new xe(n.viewProviders):null,relativeContextFilePath:"",i18nUseExternalIds:!0}),r,rc(o)),l=a(r.statements,p.statements);return this.jitExpression(p.expression,e,"ng:///"+n.name+".js",l)},t.prototype.compileBase=function(e,t,n){var r=new Zt,o=this.createParseSourceSpan("Base",n.name,"ng:///"+n.name+".js"),s=hc(i({},n,{typeSourceSpan:o,viewQueries:n.viewQueries?n.viewQueries.map(Bc):n.viewQueries,queries:n.queries?n.queries.map(Bc):n.queries,host:qc(n.propMetadata,o)}),r,rc());return this.jitExpression(s.expression,e,t,r.statements)},t.prototype.createParseSourceSpan=function(e,t,n){return Pr(e,t,n)},t.prototype.jitExpression=function(t,n,r,i){var o=a(i,[new Ge("$def",t,void 0,[e.StmtModifier.Exported])]);return this.jitEvaluator.evaluateStatements(r,o,new Qo(n),!0).$def},t}(),Rc=Object.keys({useClass:null})[0],Oc=Object.keys({useFactory:null})[0],Dc=Object.keys({useValue:null})[0],Fc=Object.keys({useExisting:null})[0],Lc=function(e){var t=new xe(e);return{value:t,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
*/function Bc(e){return i({},e,{predicate:Array.isArray(e.predicate)?e.predicate:new xe(e.predicate),read:e.read?new xe(e.read):null,static:e.static})}function Vc(e){var t=Wc(e.inputs||[]),n=Wc(e.outputs||[]),r=e.propMetadata,o={},s={},a=function(e){r.hasOwnProperty(e)&&r[e].forEach(function(t){!function n(e){return"Input"===e.ngMetadataName}(t)?function r(e){return"Output"===e.ngMetadataName}(t)&&(s[e]=t.bindingPropertyName||e):o[e]=t.bindingPropertyName?[t.bindingPropertyName,e]:e})};for(var u in r)a(u);return i({},e,{typeSourceSpan:e.typeSourceSpan,type:new xe(e.type),deps:Hc(e.deps),host:qc(e.propMetadata,e.typeSourceSpan,e.host),inputs:i({},t,o),outputs:i({},n,s),queries:e.queries.map(Bc),providers:null!=e.providers?new xe(e.providers):null,viewQueries:e.viewQueries.map(Bc)})}function jc(e,t){return e.hasOwnProperty(t)?new xe(e[t]):void 0}function Uc(t){return{token:null===t.token?new Ae(null):t.resolved===e.R3ResolvedDependencyType.Attribute?new Ae(t.token):new xe(t.token),resolved:t.resolved,host:t.host,optional:t.optional,self:t.self,skipSelf:t.skipSelf}}function Hc(e){return null==e?null:e.map(Uc)}function qc(e,t,n){var r=Mc(n||{}),i=Ac(r,t);if(i.length)throw new Error(i.map(function(e){return e.msg}).join("\n"));var o=function(t){e.hasOwnProperty(t)&&e[t].forEach(function(e){!function n(e){return"HostBinding"===e.ngMetadataName}(e)?function i(e){return"HostListener"===e.ngMetadataName}(e)&&(r.listeners[e.eventName||t]=t+"("+(e.args||[]).join(",")+")"):r.properties[e.hostPropertyName||t]=t})};for(var s in e)o(s);return r}function Wc(e){return e.reduce(function(e,t){var n=s(t.split(",").map(function(e){return e.trim()}),2),r=n[0];return e[r]=n[1]||r,e},{})}function zc(e){(e.ng||(e.ng={})).ɵcompilerFacade=new kc}
/**
* @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 Kc=new Qt("8.1.1"),Qc=function Qc(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,a=t.missingTranslation,u=void 0===a?null:a,p=t.preserveWhitespaces,l=t.strictInjectionParameters;this.defaultEncapsulation=void 0===n?E.Emulated:n,this.useJit=!!i,this.jitDevMode=!!s,this.missingTranslation=u,this.preserveWhitespaces=Xc(kt(p)),this.strictInjectionParameters=!0===l};
/**
* @license
* Copyright Google Inc. All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/function Xc(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 Gc=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(It(e.template)){if(It(e.templateUrl))throw Bt("'"+Wt(e.componentType)+"' component cannot define both template and templateUrl");if("string"!=typeof e.template)throw Bt("The template specified for component "+Wt(e.componentType)+" is not a string")}else{if(!It(e.templateUrl))throw Bt("No template specified for component "+Wt(e.componentType));if("string"!=typeof e.templateUrl)throw Bt("The templateUrl specified for component "+Wt(e.componentType)+" is not a string")}if(It(e.preserveWhitespaces)&&"boolean"!=typeof e.preserveWhitespaces)throw Bt("The preserveWhitespaces option for component "+Wt(e.componentType)+" must be a boolean");return Dt(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)),Dt(t,function(t){return r._preparseLoadedTemplate(e,t,n)})},e.prototype._preparseLoadedTemplate=function(e,t,n){var r=!!e.template,i=Po.fromArray(e.interpolation),o=Rn({reference:e.ngModuleType},{type:{reference:e.componentType}},{isInline:r,templateUrl:n}),s=this._htmlParser.parse(t,o,{tokenizeExpansionForms:!0,interpolationConfig:i});if(s.errors.length>0)throw Bt("Template parse errors:\n"+s.errors.join("\n"));var a=this._normalizeStylesheet(new xn({styles:e.styles,moduleUrl:e.moduleUrl})),u=new $c;La(u,s.rootNodes);var p=this._normalizeStylesheet(new xn({styles:u.styles,styleUrls:u.styleUrls,moduleUrl:n}));return{template:t,templateUrl:n,isInline:r,htmlAst:s,styles:a.styles.concat(p.styles),inlineStyleUrls:a.styleUrls.concat(p.styleUrls),styleUrls:this._normalizeStylesheet(new xn({styleUrls:e.styleUrls,moduleUrl:e.moduleUrl})).styleUrls,ngContentSelectors:u.ngContentSelectors}},e.prototype._normalizeTemplateMetadata=function(e,t){var n=this;return Dt(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=a(t.styles);this._inlineStyles(t.inlineStyleUrls,n,i);var o=t.styleUrls,s=o.map(function(e){var t=n.get(e),i=a(t.styles);return r._inlineStyles(t.styleUrls,n,i),new xn({moduleUrl:e,styles:i})}),u=e.encapsulation;return null==u&&(u=this._config.defaultEncapsulation),u===E.Emulated&&0===i.length&&0===o.length&&(u=E.None),new wn({encapsulation:u,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:s,preserveWhitespaces:Xc(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),Dt(Ft(e.filter(function(e){return!t.has(e)}).map(function(e){return Dt(n._fetch(e),function(r){var i=n._normalizeStylesheet(new xn({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(Xu).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($u,"").replace(Gu,function(){for(var n=[],i=0;i<arguments.length;i++)n[i]=arguments[i];var o=n[1]||n[2];return Xu(o)?(r.push(e.resolve(t,o)),""):n[0]});return new Qu(i,r)}(t._urlResolver,n,e);return r.push.apply(r,a(i.styleUrls)),i.style});return new xn({styles:i,styleUrls:r,moduleUrl:n})},e}(),$c=function(){function e(){this.ngContentSelectors=[],this.styles=[],this.styleUrls=[],this.ngNonBindableStackCount=0}return e.prototype.visitElement=function(e,t){var n=hp(e);switch(n.type){case np.NG_CONTENT:0===this.ngNonBindableStackCount&&this.ngContentSelectors.push(n.selectAttr);break;case np.STYLE:var r="";e.children.forEach(function(e){e instanceof Ia&&(r+=e.value)}),this.styles.push(r);break;case np.STYLESHEET:this.styleUrls.push(n.hrefAttr)}return n.nonBindable&&this.ngNonBindableStackCount++,La(this,e.children),n.nonBindable&&this.ngNonBindableStackCount--,null},e.prototype.visitExpansion=function(e,t){La(this,e.cases)},e.prototype.visitExpansionCase=function(e,t){La(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}(),Yc=[R,k,I,A],Jc=function(){function e(e){this._reflector=e}return e.prototype.isDirective=function(e){var t=this._reflector.annotations(zt(e));return t&&t.some(Zc)},e.prototype.resolve=function(e,t){void 0===t&&(t=!0);var n=this._reflector.annotations(zt(e));if(n){var r=eh(n,Zc);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 "+Wt(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=eh(t[e],function(e){return V.isTypeOf(e)});n&&i.push(n.bindingPropertyName?e+": "+n.bindingPropertyName:e);var r=eh(t[e],function(e){return j.isTypeOf(e)});r&&o.push(r.bindingPropertyName?e+": "+r.bindingPropertyName:e),t[e].filter(function(e){return U.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 H.isTypeOf(e)}).forEach(function(t){s["("+t.eventName+")"]=e+"("+(t.args||[]).join(",")+")"});var u=eh(t[e],function(e){return Yc.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 Pt(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,r,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?i({},e.host,r):r,c=e.queries?i({},e.queries,o):o;return L.isTypeOf(e)?L({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}):O({selector:e.selector,inputs:u,outputs:p,host:l,exportAs:e.exportAs,queries:c,providers:e.providers,guards:s})},e}();function Zc(e){return O.isTypeOf(e)||L.isTypeOf(e)}function eh(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 th,nh=function(e){function t(t,n){return e.call(this,t,n)||this}return n(t,e),t}(Tr),rh=/^i18n:?/,ih="|",oh="@@",sh=!1,ah=function ah(e,t){this.messages=e,this.errors=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.Extract=0]="Extract",e[e.Merge=1]="Merge"}(th||(th={}));var uh=function(){function e(e,t){this._implicitTags=e,this._implicitAttrs=t}return e.prototype.extract=function(e,t){var n=this;return this._init(th.Extract,t),e.forEach(function(e){return e.visit(n,null)}),this._inI18nBlock&&this._reportError(e[e.length-1],"Unclosed block"),new ah(this._messages,this._errors)},e.prototype.merge=function(e,t,n){this._init(th.Merge,n),this._translations=t;var r=new Da("wrapper",[],e,void 0,void 0,void 0).visit(this,null);return this._inI18nBlock&&this._reportError(e[e.length-1],"Unclosed block"),new ru(r.children,this._errors)},e.prototype.visitExpansionCase=function(e,t){var n=La(this,e.expression,t);if(this._mode===th.Merge)return new Ra(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=La(this,e.cases,t);return this._mode===th.Merge&&(e=new ka(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 Fa&&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 Fa&&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 La(this,this._translateMessage(e,s))}return void this._reportError(e,"I18N blocks should not cross element boundaries")}}else n&&(!sh&&console&&console.warn&&(sh=!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(rh,"").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==th.Extract&&La(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==th.Extract){var f=a||c;f&&this._openTranslatableSection(e),La(this,e.children),f&&this._closeTranslatableSection(e,e.children)}}if(this._mode===th.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===th.Merge){var d=this._translateAttributes(e);return new Da(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=Rl(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 Oa&&!e[0].value)return null;var n=ph(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===th.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)]=ph(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 Oa(n.name,"",n.sourceSpan)):u[0]instanceof Ia?i.push(new Oa(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 Fa?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 Hr)){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 nh(e.sourceSpan,t))},e}();function ph(e){if(!e)return{meaning:"",description:"",id:""};var t=e.indexOf(oh),n=e.indexOf(ih),r=s(t>-1?[e.slice(0,t),e.slice(t+2)]:[e,""],2),i=r[0],o=r[1],a=s(n>-1?[i.slice(0,n),i.slice(n+1)]:["",i],2);return{meaning:a[0],description:a[1],id:o}}
/**
* @license
* Copyright Google Inc. All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/var lh=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 ch(e){return lh}
/**
* @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 hh=function(e){function t(){return e.call(this,ch)||this}return n(t,e),t.prototype.parse=function(t,n,r){return e.prototype.parse.call(this,t,n,r)},t}(iu),fh=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 dh,r=[];e.forEach(function(e){var t,i=[];e.sources.forEach(function(e){var t=new Si("context-group",{purpose:"location"});t.children.push(new wi(10),new Si("context",{"context-type":"sourcefile"},[new xi(e.filePath)]),new wi(10),new Si("context",{"context-type":"linenumber"},[new xi(""+e.startLine)]),new wi(8)),i.push(new wi(8),t)});var o=new Si("trans-unit",{id:e.id,datatype:"html"});(t=o.children).push.apply(t,a([new wi(8),new Si("source",{},n.serialize(e.nodes))],i)),e.description&&o.children.push(new wi(8),new Si("note",{priority:"1",from:"description"},[new xi(e.description)])),e.meaning&&o.children.push(new wi(8),new Si("note",{priority:"1",from:"meaning"},[new xi(e.meaning)])),o.children.push(new wi(6)),r.push(new wi(6),o)});var i=new Si("body",{},a(r,[new wi(4)])),o=new Si("file",{"source-language":t||"en",datatype:"plaintext",original:"ng2.template"},[new wi(4),i,new wi(2)]),s=new Si("xliff",{version:"1.2",xmlns:"urn:oasis:names:tc:xliff:document:1.2"},[new wi(2),o,new wi]);return gi([new _i({version:"1.0",encoding:"UTF-8"}),new wi,s,new wi])},t.prototype.load=function(e,t){var n=(new vh).parse(e,t),r=n.locale,i=n.msgIdToHtml,o=n.errors,s={},u=new mh;if(Object.keys(i).forEach(function(e){var n=u.convert(i[e],t),r=n.i18nNodes;o.push.apply(o,a(n.errors)),s[e]=r}),o.length)throw new Error("xliff parse errors:\n"+o.join("\n"));return{locale:r,i18nNodesByMsgId:s}},t.prototype.digest=function(e){return $r(e)},t}(vi),dh=function(){function e(){}return e.prototype.visitText=function(e,t){return[new xi(e.value)]},e.prototype.visitContainer=function(e,t){var n=this,r=[];return e.children.forEach(function(e){return r.push.apply(r,a(e.visit(n)))}),r},e.prototype.visitIcu=function(e,t){var n=this,r=[new xi("{"+e.expressionPlaceholder+", "+e.type+", ")];return Object.keys(e.cases).forEach(function(t){r.push.apply(r,a([new xi(t+" {")],e.cases[t].visit(n),[new xi("} ")]))}),r.push(new xi("}")),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 Si("x",{id:e.startName,ctype:n,"equiv-text":"<"+e.tag+"/>"})];var i=new Si("x",{id:e.startName,ctype:n,"equiv-text":"<"+e.tag+">"}),o=new Si("x",{id:e.closeName,ctype:n,"equiv-text":"</"+e.tag+">"});return a([i],this.serialize(e.children),[o])},e.prototype.visitPlaceholder=function(e,t){return[new Si("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 Si("x",{id:e.name,"equiv-text":n})]},e.prototype.serialize=function(e){var t=this;return[].concat.apply([],a(e.map(function(e){return e.visit(t)})))},e}(),vh=function(){function e(){this._locale=null}return e.prototype.parse=function(e,t){this._unitMlString=null,this._msgIdToHtml={};var n=(new hh).parse(e,t);return this._errors=n.errors,La(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):(La(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),La(this,e.children,null);break;default:La(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 nh(e.sourceSpan,t))},e}(),mh=function(){function e(){}return e.prototype.convert=function(e,t){var n=(new hh).parse(e,t,{tokenizeExpansionForms:!0});return this._errors=n.errors,{i18nNodes:this._errors.length>0||0==n.rootNodes.length?[]:[].concat.apply([],a(La(this,n.rootNodes))),errors:this._errors}},e.prototype.visitText=function(e,t){return new Hr(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 Kr("",n.value,e.sourceSpan):(this._addError(e,'<x> misses the "id" attribute'),null)}return"mrk"===e.name?[].concat.apply([],a(La(this,e.children))):(this._addError(e,"Unexpected tag"),null)},e.prototype.visitExpansion=function(e,t){var n={};return La(this,e.cases).forEach(function(t){n[t.value]=new qr(t.nodes,e.sourceSpan)}),new Wr(e.switchValue,e.type,n,e.sourceSpan)},e.prototype.visitExpansionCase=function(e,t){return{value:e.value,nodes:La(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 nh(e.sourceSpan,t))},e}(),yh=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 gh,r=[];e.forEach(function(e){var t=new Si("unit",{id:e.id}),i=new Si("notes");(e.description||e.meaning)&&(e.description&&i.children.push(new wi(8),new Si("note",{category:"description"},[new xi(e.description)])),e.meaning&&i.children.push(new wi(8),new Si("note",{category:"meaning"},[new xi(e.meaning)]))),e.sources.forEach(function(e){i.children.push(new wi(8),new Si("note",{category:"location"},[new xi(e.filePath+":"+e.startLine+(e.endLine!==e.startLine?","+e.endLine:""))]))}),i.children.push(new wi(6)),t.children.push(new wi(6),i);var o=new Si("segment");o.children.push(new wi(8),new Si("source",{},n.serialize(e.nodes)),new wi(6)),t.children.push(new wi(6),o,new wi(4)),r.push(new wi(4),t)});var i=new Si("file",{original:"ng.template",id:"ngi18n"},a(r,[new wi(2)])),o=new Si("xliff",{version:"2.0",xmlns:"urn:oasis:names:tc:xliff:document:2.0",srcLang:t||"en"},[new wi(2),i,new wi]);return gi([new _i({version:"1.0",encoding:"UTF-8"}),new wi,o,new wi])},t.prototype.load=function(e,t){var n=(new _h).parse(e,t),r=n.locale,i=n.msgIdToHtml,o=n.errors,s={},u=new Eh;if(Object.keys(i).forEach(function(e){var n=u.convert(i[e],t),r=n.i18nNodes;o.push.apply(o,a(n.errors)),s[e]=r}),o.length)throw new Error("xliff2 parse errors:\n"+o.join("\n"));return{locale:r,i18nNodesByMsgId:s}},t.prototype.digest=function(e){return Yr(e)},t}(vi),gh=function(){function e(){}return e.prototype.visitText=function(e,t){return[new xi(e.value)]},e.prototype.visitContainer=function(e,t){var n=this,r=[];return e.children.forEach(function(e){return r.push.apply(r,a(e.visit(n)))}),r},e.prototype.visitIcu=function(e,t){var n=this,r=[new xi("{"+e.expressionPlaceholder+", "+e.type+", ")];return Object.keys(e.cases).forEach(function(t){r.push.apply(r,a([new xi(t+" {")],e.cases[t].visit(n),[new xi("} ")]))}),r.push(new xi("}")),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 Si("ph",{id:(this._nextPlaceholderId++).toString(),equiv:e.startName,type:r,disp:"<"+e.tag+"/>"})];var o=new Si("pc",{id:(this._nextPlaceholderId++).toString(),equivStart:e.startName,equivEnd:e.closeName,type:r,dispStart:"<"+e.tag+">",dispEnd:"</"+e.tag+">"}),s=[].concat.apply([],a(e.children.map(function(e){return e.visit(n)})));return s.length?s.forEach(function(e){return o.children.push(e)}):o.children.push(new xi("")),[o]},e.prototype.visitPlaceholder=function(e,t){var n=(this._nextPlaceholderId++).toString();return[new Si("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 Si("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([],a(e.map(function(e){return e.visit(t)})))},e}(),_h=function(){function e(){this._locale=null}return e.prototype.parse=function(e,t){this._unitMlString=null,this._msgIdToHtml={};var n=(new hh).parse(e,t);return this._errors=n.errors,La(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):(La(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"):La(this,e.children,null)}break;default:La(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 nh(e.sourceSpan,t))},e}(),Eh=function(){function e(){}return e.prototype.convert=function(e,t){var n=(new hh).parse(e,t,{tokenizeExpansionForms:!0});return this._errors=n.errors,{i18nNodes:this._errors.length>0||0==n.rootNodes.length?[]:[].concat.apply([],a(La(this,n.rootNodes))),errors:this._errors}},e.prototype.visitText=function(e,t){return new Hr(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 Kr("",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 s=o.value,u=[];return u.concat.apply(u,a([new Kr("",i.value,e.sourceSpan)],e.children.map(function(e){return e.visit(n,null)}),[new Kr("",s,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([],a(La(this,e.children)));default:this._addError(e,"Unexpected tag")}return null},e.prototype.visitExpansion=function(e,t){var n={};return La(this,e.cases).forEach(function(t){n[t.value]=new qr(t.nodes,e.sourceSpan)}),new Wr(e.switchValue,e.type,n,e.sourceSpan)},e.prototype.visitExpansionCase=function(e,t){return{value:e.value,nodes:[].concat.apply([],a(La(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 nh(e.sourceSpan,t))},e}(),Sh=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 xh).parse(e,t),r=n.locale,i=n.msgIdToHtml,o=n.errors,s={},a=new wh;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 Pi(e)},t.prototype.createNameMapper=function(e){return new mi(e,Ai)},t}(vi),xh=function(){function e(){this._locale=null}return e.prototype.parse=function(e,t){this._bundleDepth=0,this._msgIdToHtml={};var n=(new hh).parse(e,t);return this._errors=n.errors,La(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),La(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 nh(e.sourceSpan,t))},e}(),wh=function(){function e(){}return e.prototype.convert=function(e,t){var n=(new hh).parse(e,t,{tokenizeExpansionForms:!0});return this._errors=n.errors,{i18nNodes:this._errors.length>0||0==n.rootNodes.length?[]:La(this,n.rootNodes),errors:this._errors}},e.prototype.visitText=function(e,t){return new Hr(e.value,e.sourceSpan)},e.prototype.visitExpansion=function(e,t){var n={};return La(this,e.cases).forEach(function(t){n[t.value]=new qr(t.nodes,e.sourceSpan)}),new Wr(e.switchValue,e.type,n,e.sourceSpan)},e.prototype.visitExpansionCase=function(e,t){return{value:e.value,nodes:La(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 Kr("",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 nh(e.sourceSpan,t))},e}(),Ch=function(){function e(e,t,n,r,i,o){void 0===e&&(e={}),void 0===i&&(i=F.Warning),this._i18nNodesByMsgId=e,this.digest=n,this.mapperFactory=r,this._i18nToHtml=new bh(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}(),bh=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 au).parse(t,n,{tokenizeExpansionForms:!0});return{nodes:r.rootNodes,errors:a(this._errors,r.errors)}},e.prototype.visitText=function(e,t){return bi(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===F.Error?this._addError(e.nodes[0],'Missing translation for message "'+r+'"'+(this._locale?' for locale "'+this._locale+'"':"")):this._console&&this._missingTranslationStrategy===F.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 nh(e.sourceSpan,t))},e}(),Th=function(){function e(e,t,n,r,i){if(void 0===r&&(r=F.Warning),this._htmlParser=e,t){var o=function s(e){switch(e=(e||"xlf").toLowerCase()){case"xmb":return new Ti;case"xtb":return new Sh;case"xliff2":case"xlf2":return new yh;case"xliff":case"xlf":default:return new fh}}
/**
* @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=Ch.load(t,"i18n",o,r,i)}else this._translationBundle=new Ch({},null,$r,void 0,r,i)}return e.prototype.parse=function(e,t,n){void 0===n&&(n={});var r=n.interpolationConfig||Mo,o=this._htmlParser.parse(e,t,i({interpolationConfig:r},n));return o.errors.length?new ru(o.rootNodes,o.errors):function s(e,t,n,r,i){return new uh(r,i).merge(e,t,n)}(o.rootNodes,this._translationBundle,r,[],{})},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 Nh(e,t,n){return void 0===n&&(n=null),At(t,new Ph(e),n)}var Ph=function(){function e(e){this.ctx=e}return e.prototype.visitArray=function(e,t){var n=this;return St(e.map(function(e){return At(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 qe(t,At(e[t],n,null),i.has(t)))}),new We(r,t)},e.prototype.visitPrimitive=function(e,t){return bt(e,t)},e.prototype.visitOther=function(e,t){return e instanceof ge?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 Mh(e,t){return{key:e,value:t,quoted:!1}}var Ah=function(){function t(e,t){this.reflector=e,this.alwaysGenerateDef=t,this.tokenInjector=e.resolveExternalReference(on.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?bt(o):o===n.tokenInjector?gt(on.INJECTOR):t.importExpr(o),i=0!==s?[r,bt(s)]:[r],gt(on.inject).callFn(i)})},t.prototype.factoryFor=function(e,t){var n;if(e.useExisting)n=gt(on.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=Nh(t,e.useValue);else{var i=e.useClass||e.symbol,o=this.depsArray(this.reflector.parameters(i),t);n=new Me(t.importExpr(i),o)}return wt([],[new Je(n)],void 0,void 0,e.symbol.name+"_Factory")},t.prototype.injectableDef=function(e,t){var n=Ke;void 0!==e.providedIn&&(n=null===e.providedIn?Ke:"string"==typeof e.providedIn?bt(e.providedIn):t.importExpr(e.providedIn));var r=[Mh("factory",this.factoryFor(e,t)),Mh("token",t.importExpr(e.type.reference)),Mh("providedIn",n)];return gt(on.ɵɵdefineInjectable).callFn([xt(r)])},t.prototype.compile=function(t,n){if(this.alwaysGenerateDef||void 0!==t.providedIn){var r=dn(t.type),i=new rt(r,null,[new et("ngInjectableDef",ce,[e.StmtModifier.Static],this.injectableDef(t,n))],[],new tt(null,[],[]),[]);n.statements.push(i)}},t}(),Ih=/(\.ts|\.d\.ts|\.js|\.jsx|\.tsx)$/,kh=/\.ngfactory\.|\.ngsummary\./,Rh=/\.ngsummary\./,Oh=/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 Dh(e,t){void 0===t&&(t=!1);var n=Lh(e,t);return n[0]+".ngfactory"+Bh(n[1])}function Fh(e){return e.replace(kh,".")}function Lh(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 Bh(e){return".tsx"===e?".ts":e}function Vh(e){return e.replace(Ih,"")+".ngsummary.json"}function jh(e,t){void 0===t&&(t=!1);var n=Lh(Fh(e),t);return n[0]+".ngsummary"+n[1]}function Uh(e){return e+"NgSummary"}var Hh,qh=/\u0275\d+/;function Wh(e){return qh.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"}(Hh||(Hh={}));var zh=[Hh.OnInit,Hh.OnDestroy,Hh.DoCheck,Hh.OnChanges,Hh.AfterContentInit,Hh.AfterContentChecked,Hh.AfterViewInit,Hh.AfterViewChecked],Kh=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 "+Wt(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 un?this._staticSymbolCache.get(Dh(e.filePath),t):this._createProxyClass(e,t)},t.prototype.getComponentViewClass=function(e){return this.getGeneratedClass(e,mn(e,0))},t.prototype.getHostComponentViewClass=function(e){return this.getGeneratedClass(e,gn(e))},t.prototype.getHostComponentType=function(e){var t=dn({reference:e})+"_Host";return e instanceof un?this._staticSymbolCache.get(e.filePath,t):this._createProxyClass(e,t)},t.prototype.getRendererType=function(e){return e instanceof un?this._staticSymbolCache.get(Dh(e.filePath),yn(e)):{}},t.prototype.getComponentFactory=function(e,t,n,r){if(t instanceof un)return this._staticSymbolCache.get(Dh(t.filePath),_n(t));var i=this.getHostComponentViewClass(t);return this._reflector.resolveExternalReference(on.createComponentFactory)(e,t,i,n,r,[])},t.prototype.initComponentFactory=function(e,t){var n;e instanceof un||(n=e.ngContentSelectors).push.apply(n,a(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=w.parse(e.selector)[0].getMatchingElementTemplate(),i=this._htmlParser.parse(r,"");return Cn.create({isHost:!0,type:{reference:n,diDeps:[],lifecycleHooks:[]},template:new wn({encapsulation:E.None,template:r,templateUrl:"",htmlAst:i,styles:[],styleUrls:[],ngContentSelectors:[],animations:[],isInline:!0,externalStylesheets:[],interpolation:null,preserveWhitespaces:!1}),exportAs:null,changeDetection:S.Default,inputs:[],outputs:[],host:{},isComponent:!0,selector:"*",providers:[],viewProviders:[],queries:[],guards:{},viewQueries:[],componentViewType:t,rendererType:{id:"__Host__",encapsulation:E.None,styles:[],data:{}},entryComponents:[],componentFactory:null})},t.prototype.loadDirectiveMetadata=function(e,t,n){var r=this;if(this._directiveCache.has(t))return null;t=zt(t);var i=this.getNonNormalizedDirectiveMetadata(t),o=i.metadata,s=function(e){var n=new Cn({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 Kt(u)&&n?(this._reportError(function p(e){var t=Error("Can't compile synchronously as "+Wt(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):Dt(u,s)}return s(null),null},t.prototype.getNonNormalizedDirectiveMetadata=function(e){var t=this;if(!(e=zt(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(L.isTypeOf(r)){bo("styles",(s=r).styles),bo("styleUrls",s.styleUrls),No("interpolation",s.interpolation);var o=s.animations;i=new wn({encapsulation:kt(s.encapsulation),template:kt(s.template),templateUrl:kt(s.templateUrl),htmlAst:null,styles:s.styles||[],styleUrls:s.styleUrls||[],animations:o||[],interpolation:kt(s.interpolation),isInline:!!s.template,externalStylesheets:[],ngContentSelectors:[],preserveWhitespaces:kt(r.preserveWhitespaces)})}var s,a=null,u=[],p=[],l=r.selector;L.isTypeOf(r)?(a=(s=r).changeDetection,s.viewProviders&&(u=this._getProvidersMetadata(s.viewProviders,p,'viewProviders for "'+$h(e)+'"',[],e)),s.entryComponents&&(p=Qh(s.entryComponents).map(function(e){return t._getEntryComponentMetadata(e)}).concat(p)),l||(l=this._schemaRegistry.getDefaultComponentElementName())):l||(this._reportError(Bt("Directive "+$h(e)+" has no selector, please add it!"),e),l="error");var c=[];null!=r.providers&&(c=this._getProvidersMetadata(r.providers,p,'providers for "'+$h(e)+'"',[],e));var h=[],f=[];null!=r.queries&&(h=this._getQueriesMetadata(r.queries,!1,e),f=this._getQueriesMetadata(r.queries,!0,e));var d=Cn.create({isHost:!1,selector:l,exportAs:kt(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(Bt("Illegal state: getDirectiveMetadata can only be called after loadNgModuleDirectiveAndPipeMetadata for a module that declares it. Directive "+$h(e)+"."),e),t},t.prototype.getDirectiveSummary=function(t){var n=this._loadSummary(t,e.CompileSummaryKind.Directive);return n||this._reportError(Bt("Illegal state: Could not load the summary for directive "+$h(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=eh(this._reflector.shallowAnnotations(e),q.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=zt(e);var i=this._ngModuleCache.get(e);if(i)return i;var o=this._ngModuleResolver.resolve(e,t);if(!o)return null;var s=[],u=[],p=[],l=[],c=[],h=[],f=[],d=[],v=[];o.imports&&Qh(o.imports).forEach(function(t){var i=void 0;if(Xh(t)?i=t:t&&t.ngModule&&(i=t.ngModule,t.providers&&h.push.apply(h,a(r._getProvidersMetadata(t.providers,f,"provider for the NgModule '"+$h(i)+"'",[],t)))),i){if(!r._checkSelfImport(e,i))if(n||(n=new Set),n.has(i))r._reportError(Bt(r._getTypeDescriptor(i)+" '"+$h(t)+"' is imported recursively by the module '"+$h(e)+"'."),e);else{n.add(i);var o=r.getNgModuleSummary(i,n);n.delete(i),o?l.push(o):r._reportError(Bt("Unexpected "+r._getTypeDescriptor(t)+" '"+$h(t)+"' imported by the module '"+$h(e)+"'. Please add a @NgModule annotation."),e)}}else r._reportError(Bt("Unexpected value '"+$h(t)+"' imported by the module '"+$h(e)+"'"),e)}),o.exports&&Qh(o.exports).forEach(function(t){if(Xh(t))if(n||(n=new Set),n.has(t))r._reportError(Bt(r._getTypeDescriptor(t)+" '"+Wt(t)+"' is exported recursively by the module '"+$h(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(Bt("Unexpected value '"+$h(t)+"' exported by the module '"+$h(e)+"'"),e)});var m=this._getTransitiveNgModuleMetadata(l,c);o.declarations&&Qh(o.declarations).forEach(function(t){if(Xh(t)){var n=r._getIdentifierMetadata(t);if(r.isDirective(t))m.addDirective(n),s.push(n),r._addTypeToModule(t,e);else{if(!r.isPipe(t))return void r._reportError(Bt("Unexpected "+r._getTypeDescriptor(t)+" '"+$h(t)+"' declared by the module '"+$h(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(Bt("Unexpected value '"+$h(t)+"' declared by the module '"+$h(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(Bt("Can't export "+r._getTypeDescriptor(t.reference)+" "+$h(t.reference)+" from "+$h(e)+" as it was neither declared nor imported!"),e);g.push(t),m.addExportedPipe(t)}}),o.providers&&h.push.apply(h,a(this._getProvidersMetadata(o.providers,f,"provider for the NgModule '"+$h(e)+"'",[],e))),o.entryComponents&&f.push.apply(f,a(Qh(o.entryComponents).map(function(e){return r._getEntryComponentMetadata(e)}))),o.bootstrap&&Qh(o.bootstrap).forEach(function(t){Xh(t)?d.push(r._getIdentifierMetadata(t)):r._reportError(Bt("Unexpected value '"+$h(t)+"' used in the bootstrap property of module '"+$h(e)+"'"),e)}),f.push.apply(f,a(d.map(function(e){return r._getEntryComponentMetadata(e.reference)}))),o.schemas&&v.push.apply(v,a(Qh(o.schemas))),i=new Nn({type:this._getTypeMetadata(e),providers:h,entryComponents:f,bootstrapComponents:d,schemas:v,declaredDirectives:s,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(Bt("'"+$h(e)+"' module can't import itself"),e),!0)},t.prototype._getTypeDescriptor=function(e){if(Xh(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(Bt("Type "+$h(e)+" is part of the declarations of 2 modules: "+$h(n)+" and "+$h(t)+"! Please consider moving "+$h(e)+" to a higher module that imports "+$h(n)+" and "+$h(t)+". You can also create a new NgModule that exports and includes "+$h(e)+" then import that NgModule in "+$h(n)+" and "+$h(t)+"."),t):this._ngModuleOfTypes.set(e,t)},t.prototype._getTransitiveNgModuleMetadata=function(e,t){var n=new Pn,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=Sn(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=zt(e)}},t.prototype.isInjectable=function(e){return this._reflector.tryAnnotations(e).some(function(e){return W.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 W.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,i,o=this._getIdentifierMetadata(e);return{reference:o.reference,diDeps:this._getDependenciesMetadata(o.reference,t,n),lifecycleHooks:(r=this._reflector,i=o.reference,zh.filter(function(e){return function t(e,n,r){return e.hasLifecycleHook(r,function i(e){switch(e){case Hh.OnInit:return"ngOnInit";case Hh.OnDestroy:return"ngOnDestroy";case Hh.DoCheck:return"ngDoCheck";case Hh.OnChanges:return"ngOnChanges";case Hh.AfterContentInit:return"ngAfterContentInit";case Hh.AfterContentChecked:return"ngAfterContentChecked";case Hh.AfterViewInit:return"ngAfterViewInit";case Hh.AfterViewChecked:return"ngAfterViewChecked";default:throw new Error("unexpected "+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
*/(n))}(r,e,i)}))}},t.prototype._getFactoryMetadata=function(e,t){return void 0===t&&(t=null),{reference:e=zt(e),diDeps:this._getDependenciesMetadata(e,t)}},t.prototype.getPipeMetadata=function(e){var t=this._pipeCache.get(e);return t||this._reportError(Bt("Illegal state: getPipeMetadata can only be called after loadNgModuleDirectiveAndPipeMetadata for a module that declares it. Pipe "+$h(e)+"."),e),t||null},t.prototype.getPipeSummary=function(t){var n=this._loadSummary(t,e.CompileSummaryKind.Pipe);return n||this._reportError(Bt("Illegal state: Could not load the summary for pipe "+$h(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=zt(e);var t=this._pipeResolver.resolve(e),n=new bn({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){$.isTypeOf(e)?n=!0:X.isTypeOf(e)?o=!0:G.isTypeOf(e)?s=!0:Q.isTypeOf(e)?a=!0:M.isTypeOf(e)?(t=!0,u=e.attributeName):N.isTypeOf(e)?u=e.token:P.isTypeOf(e)||e instanceof un?u=e:Xh(e)&&null==u&&(u=e)}):u=e,null==u?(i=!0,{}):{isAttribute:t,isHost:n,isSelf:o,isSkipSelf:s,isOptional:a,token:r._getTokenMetadata(u)}});if(i){var s=o.map(function(e){return e.token?$h(e.token):"?"}).join(", "),a="Can't resolve all parameters for "+$h(e)+": ("+s+").";n||this._config.strictInjectionParameters?this._reportError(Bt(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=zt(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(s,u){if(Array.isArray(s))o._getProvidersMetadata(s,t,n,r);else{var p=void 0;if((s=zt(s))&&"object"==typeof s&&s.hasOwnProperty("provide"))o._validateProvider(s),p=new An(s.provide,s);else{if(!Xh(s)){if(void 0===s)return void o._reportError(Bt("Encountered undefined provider! Usually this means you have a circular dependencies. This might be caused by using 'barrel' index.ts files."));var l=e.reduce(function(e,t,n){return n<u?e.push(""+$h(t)):n==u?e.push("?"+$h(t)+"?"):n==u+1&&e.push("..."),e},[]).join(", ");return void o._reportError(Bt("Invalid "+(n||"provider")+" - only instances of Provider and Type are allowed, got: ["+l+"]"),i)}p=new An(s,{useClass:s})}p.token===o._reflector.resolveExternalReference(on.ANALYZE_FOR_ENTRY_COMPONENTS)?t.push.apply(t,a(o._getEntryComponentsFromProvider(p,i))):r.push(o.getProviderMetadata(p))}}),r},t.prototype._validateProvider=function(e){e.hasOwnProperty("useClass")&&null==e.useClass&&this._reportError(Bt("Invalid provider for "+$h(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(Bt("The ANALYZE_FOR_ENTRY_COMPONENTS token only supports useValue!"),t),[]):e.multi?(function o(e,t){At(e,new Gh,t)}(e.useValue,i),i.forEach(function(e){var t=n._getEntryComponentMetadata(e.reference,!1);t&&r.push(t)}),r):(this._reportError(Bt("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 Bt(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(Bt("Can't construct a query for the property \""+t+'" of "'+$h(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,static:e.static}},t.prototype._reportError=function(e,t,n){if(!this._errorCollector)throw e;this._errorCollector(e,t),n&&this._errorCollector(e,n)},t}();function Qh(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=zt(t[r]);Array.isArray(i)?e(i,n):n.push(i)}return n}(e))}function Xh(e){return e instanceof un||e instanceof Y}var Gh=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}(Rt);function $h(e){return e instanceof un?e.name+" in "+e.filePath:Wt(e)}function Yh(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!==Hh.OnDestroy&&n.providerType!==e.ProviderAstType.Directive&&n.providerType!==e.ProviderAstType.Component||(r|=tf(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]:Nh(e,t.useValue);return r});return{providerExpr:wt(i,[new Je(St(o))],ce),flags:1024|t,depsExpr:St(r)};function s(t,n){return n.map(function(n,o){var s="p"+t+"_"+o;return i.push(new Le(s,le)),r.push(ef(e,n)),yt(s)})}}(t,r,n.providers):Jh(t,r,n.providerType,n.providers[0]);return{providerExpr:i.providerExpr,flags:i.flags,depsExpr:i.depsExpr,tokenExpr:Zh(t,n.token)}}function Jh(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=Ke,n|=2048,s=[{token:i.useExisting}]):(o=Nh(t,i.useValue),n|=256,s=[]),{providerExpr:o,flags:n,depsExpr:St(s.map(function(e){return ef(t,e)}))}}function Zh(e,t){return t.identifier?e.importExpr(t.identifier.reference):bt(t.value)}function ef(e,t){var n=t.isValue?Nh(e,t.value):Zh(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:St([bt(r),n])}function tf(e){var t=0;switch(e){case Hh.AfterContentChecked:t=2097152;break;case Hh.AfterContentInit:t=1048576;break;case Hh.AfterViewChecked:t=8388608;break;case Hh.AfterViewInit:t=4194304;break;case Hh.DoCheck:t=262144;break;case Hh.OnChanges:t=524288;break;case Hh.OnDestroy:t=131072;break;case Hh.OnInit:t=65536}return t}function nf(t,n,r,i){var o=i.map(function(e){return n.importExpr(e.componentFactory)}),s=an(t,on.ComponentFactoryResolver),a={diDeps:[{isValue:!0,value:St(o)},{token:s,isSkipSelf:!0,isOptional:!0},{token:an(t,on.NgModuleRef)}],lifecycleHooks:[],reference:t.resolveExternalReference(on.CodegenComponentFactoryResolver)},u=Jh(n,r,e.ProviderAstType.PrivateService,{token:s,multi:!1,useClass:a});return{providerExpr:u.providerExpr,flags:u.flags,depsExpr:u.depsExpr,tokenExpr:Zh(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 rf=function rf(e){this.ngModuleFactoryVar=e},of=yt("_l"),sf=function(){function t(e){this.reflector=e}return t.prototype.compile=function(e,t,n){var r=Nr("NgModule",t.type),i=t.transitiveModule.entryComponents,o=t.bootstrapComponents,s=new Hu(this.reflector,t,n,r),a=[nf(this.reflector,e,0,i)].concat(s.parse().map(function(t){return Yh(e,t)})).map(function(e){var t=e.providerExpr,n=e.depsExpr,r=e.flags,i=e.tokenExpr;return gt(on.moduleProviderDef).callFn([bt(r),i,t,n])}),u=gt(on.moduleDef).callFn([St(a)]),p=wt([new Le(of.name)],[new Je(u)],ce),l=dn(t.type)+"NgFactory";if(this._createNgModuleFactory(e,t.type.reference,gt(on.createModuleFactory).callFn([e.importExpr(t.type.reference),St(o.map(function(t){return e.importExpr(t.reference)})),p])),t.id){var c="string"==typeof t.id?bt(t.id):e.importExpr(t.id),h=gt(on.RegisterModuleFactoryFn).callFn([c,yt(l)]).toStmt();e.statements.push(h)}return new rf(l)},t.prototype.createStub=function(e,t){this._createNgModuleFactory(e,t,Ke)},t.prototype._createNgModuleFactory=function(t,n,r){var i=yt(dn({reference:n})+"NgFactory").set(r).toDeclStmt(_t(on.NgModuleFactory,[Et(t.importExpr(n))],[te.Const]),[e.StmtModifier.Final,e.StmtModifier.Exported]);t.statements.push(i)},t}(),af=function(){function e(e){this._reflector=e}return e.prototype.isNgModule=function(e){return this._reflector.annotations(e).some(q.isTypeOf)},e.prototype.resolve=function(e,t){void 0===t&&(t=!0);var n=eh(this._reflector.annotations(e),q.isTypeOf);if(n)return n;if(t)throw new Error("No NgModule metadata found for '"+Wt(e)+"'.");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
*/
function uf(e){var t=new lf,n=jo.createRoot();return(Array.isArray(e)?e:[e]).forEach(function(e){if(e instanceof Xe)e.visitStatement(t,n);else if(e instanceof ge)e.visitExpression(t,n);else{if(!(e instanceof ie))throw new Error("Don't know how to print debug info for "+e);e.visitType(t,n)}}),n.toSource()}var pf=function(){function e(){}return e.prototype.emitStatementsAndContext=function(e,t,n,r,i,o){void 0===n&&(n=""),void 0===r&&(r=!0);var s=new lf(i,o),u=jo.createRoot();s.visitAllStatements(t,u);var p=n?n.split("\n"):[];s.reexports.forEach(function(e,t){var n=e.map(function(e){return e.name+" as "+e.as}).join(",");p.push("export {"+n+"} from '"+t+"';")}),s.importsWithPrefixes.forEach(function(e,t){p.push("import * as "+e+" from '"+t+"';")});var l=r?u.toSourceMapGenerator(e,p.length).toJsComment():"",c=a(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}(),lf=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!=ce?(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 Ie&&!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.visitWrappedNodeExpr=function(e,t){throw new Error("Cannot visit a WrappedNodeExpr when outputting Typescript.")},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 ("+Lo.name+") {"),n.incIndent();var r=[Bo.set(Lo.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(t,n){var r;switch(t.name){case e.BuiltinTypeName.Bool:r="boolean";break;case e.BuiltinTypeName.Dynamic:r="any";break;case e.BuiltinTypeName.Function:r="Function";break;case e.BuiltinTypeName.Number:case e.BuiltinTypeName.Int:r="number";break;case e.BuiltinTypeName.String:r="string";break;case e.BuiltinTypeName.None:r="never";break;default:throw new Error("Unsupported builtin type "+t.name)}return n.print(null,r),null},r.prototype.visitExpressionType=function(e,t){var n=this;return e.value.visitExpression(this,t),null!==e.typeParams&&(t.print(null,"<"),this.visitAllObjects(function(e){return n.visitType(e,t)},e.typeParams,t,","),t.print(null,">")),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!==ce&&(t.print(null,":"),this.visitType(e,t,n))},r}(Uo),cf=function(){function e(e){this._reflector=e}return e.prototype.isPipe=function(e){var t=this._reflector.annotations(zt(e));return t&&t.some(B.isTypeOf)},e.prototype.resolve=function(e,t){void 0===t&&(t=!0);var n=this._reflector.annotations(zt(e));if(n){var r=eh(n,B.isTypeOf);if(r)return r}if(t)throw new Error("No Pipe decorator found on "+Wt(e));return null},e}(),hf=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 df(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}(),ff=new(function(){function e(){}return e.prototype.notifyImplicitReceiverUse=function(){},e.prototype.getLocal=function(e){return e===Os.event.name?yt("_any"):null},e}()),df=function(){function t(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 t.prototype.getOutputVar=function(e){var t;if(!(t=e===this.component&&this.isHostComponent?"_any":e instanceof un?this.externalReferenceVars.get(e):"_any"))throw new Error("Illegal State: referring to a type without a variable "+JSON.stringify(e));return t},t.prototype.getTypeGuardExpressions=function(e){var t,n,r,i,s=a(this.guards);try{for(var u=o(e.directives),p=u.next();!p.done;p=u.next()){var l=p.value;try{for(var c=o(l.inputs),h=c.next();!h.done;h=c.next()){var f=h.value,d=l.directive.guards[f.directiveName];d&&s.push({guard:d,useIf:"UseIf"===d,expression:{context:this.component,value:f.value}})}}catch(e){r={error:e}}finally{try{h&&!h.done&&(i=c.return)&&i.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 s},t.prototype.visitAll=function(e,t){this.variables=e,Bu(this,t)},t.prototype.build=function(e,t){var n,r,i=this;void 0===t&&(t=[]),this.children.forEach(function(n){return n.build(e,t)});var s=[yt("_any").set(Ke).toDeclStmt(le)],u=0;if(this.updates.forEach(function(e){var t=i.preprocessUpdateExpression(e),n=t.sourceSpan,r=t.context,o=t.value,p=""+u++,l=Us(r===i.component?i:ff,yt(i.getOutputVar(r)),o,p,Bs.General),c=l.stmts;c.push(new Ye(l.currValExpr)),s.push.apply(s,a(c.map(function(e){return dt(e,n)})))}),this.actions.forEach(function(e){var t=e.sourceSpan,n=e.context,r=e.value,o=""+u++,p=Fs(n===i.component?i:ff,yt(i.getOutputVar(n)),r,o).stmts;s.push.apply(s,a(p.map(function(e){return dt(e,t)})))}),this.guards.length){var p=void 0;try{for(var l=o(this.guards),c=l.next();!c.done;c=l.next()){var h=c.value,f=this.preprocessUpdateExpression(h.expression),d=f.context,v=f.value,m=""+u++,y=Us(d===this.component?this:ff,yt(this.getOutputVar(d)),v,m,Bs.TrySimple),g=y.currValExpr;if(0==y.stmts.length){var _=h.useIf?g:this.ctx.importExpr(h.guard).callFn([g]);p=p?p.and(_):_}}}catch(e){n={error:e}}finally{try{c&&!c.done&&(r=l.return)&&r.call(l)}finally{if(n)throw n.error}}p&&(s=[new it(p,s)])}var E=new $e("_View_"+e+"_"+this.embeddedViewIndex,[],s);return t.push(E),t},t.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})})},t.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)}},t.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})}),Bu(this,e.children)},t.prototype.visitElementOrTemplate=function(t){var n=this;t.directives.forEach(function(e){n.visitDirective(e)}),t.references.forEach(function(t){n.refOutputVars.set(t.name,t.value&&t.value.identifier&&n.options.fullTemplateTypeCheck?t.value.identifier.reference:e.BuiltinTypeName.Dynamic)}),t.outputs.forEach(function(e){n.actions.push({context:n.component,value:e.handler,sourceSpan:e.sourceSpan})})},t.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})}))},t.prototype.notifyImplicitReceiverUse=function(){},t.prototype.getLocal=function(t){if(t==Os.event.name)return yt(this.getOutputVar(e.BuiltinTypeName.Dynamic));for(var n=this;n;n=n.parent){var r=void 0;if(null==(r=n.refOutputVars.get(t))&&n.variables.find(function(e){return e.name===t})&&(r=e.BuiltinTypeName.Dynamic),null!=r)return yt(this.getOutputVar(r))}return null},t.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)},t.prototype.preprocessUpdateExpression=function(t){var n=this;return{sourceSpan:t.sourceSpan,context:t.context,value:Ls({createLiteralArrayConverter:function(e){return function(e){var t=St(e);return n.options.fullTemplateTypeCheck?t:t.cast(le)}},createLiteralMapConverter:function(e){return function(t){var r=xt(e.map(function(e,n){return{key:e.key,value:t[n],quoted:e.quoted}}));return n.options.fullTemplateTypeCheck?r:r.cast(le)}},createPipeConverter:function(t,r){return function(r){return yt(n.options.fullTemplateTypeCheck?n.pipeOutputVar(t):n.getOutputVar(e.BuiltinTypeName.Dynamic)).callMethod("transform",r)}}},t.value)}},t.prototype.visitNgContent=function(e,t){},t.prototype.visitText=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}(),vf=function vf(e,t){this.viewClassVar=e,this.rendererTypeVar=t},mf=function(){function t(e){this._reflector=e}return t.prototype.compileComponent=function(t,n,r,i,o){var s,u=this,p=0,l=Tf(r),c=void 0;if(!n.isHost){var h=n.template,f=[];h.animations&&h.animations.length&&f.push(new qe("animation",Nh(t,h.animations),!0));var d=yt(yn(n.type.reference));c=d.name,t.statements.push(d.set(gt(on.createRendererType2).callFn([new We([new qe("encapsulation",bt(h.encapsulation),!1),new qe("styles",i,!1),new qe("data",new We(f),!1)])])).toDeclStmt(_t(on.RendererType2),[e.StmtModifier.Final,e.StmtModifier.Exported]))}var v=function(e){var r=p++;return new wf(u._reflector,t,e,n,r,o,l,v)},m=v(null);return m.visitAll([],r),(s=t.statements).push.apply(s,a(m.build())),new vf(m.viewName,c)},t}(),yf=yt("_l"),gf=yt("_v"),_f=yt("_ck"),Ef=yt("_co"),Sf=yt("en"),xf=yt("ad"),wf=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?le:Et(t.importExpr(this.component.type.reference)),this.viewName=mn(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=Nf(this.staticQueryIds);this.component.viewQueries.forEach(function(e,t){var i=t+1,o=e.first?0:1,s=134217728|Mf(r,i,e);n.nodes.push(function(){return{sourceSpan:null,nodeFlags:s,nodeDef:gt(on.queryDef).callFn([bt(s),bt(i),new We([new qe(e.propertyName,bt(o),!1)])])}})})}Bu(this,t),this.parent&&(0===t.length||function e(t){var n=t[t.length-1];return n instanceof Iu?n.hasViewContainer:n instanceof Au?p(n.name)&&n.children.length?e(n.children):n.hasViewContainer:n instanceof Du}(t))&&this.nodes.push(function(){return{sourceSpan:null,nodeFlags:1,nodeDef:gt(on.anchorDef).callFn([bt(0),Ke,Ke,bt(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!==S.OnPush||(a|=2);var u=new $e(this.viewName,[new Le(yf.name)],[new Je(gt(on.viewDef).callFn([bt(a),St(i),s,o]))],_t(on.ViewDefinition),0===this.embeddedViewIndex?[e.StmtModifier.Exported]:[]);return t.push(u),t},t.prototype._createUpdateFn=function(e){var t;if(e.length>0){var n=[];!this.component.isHost&&ct(e).has(Ef.name)&&n.push(Ef.set(gf.prop("component")).toDeclStmt(this.compType)),t=wt([new Le(_f.name,ce),new Le(gf.name,ce)],a(n,e),ce)}else t=Ke;return t},t.prototype.visitNgContent=function(e,t){this.nodes.push(function(){return{sourceSpan:e.sourceSpan,nodeFlags:8,nodeDef:gt(on.ngContentDef).callFn([bt(e.ngContentIndex),bt(e.index)])}})},t.prototype.visitText=function(e,t){this.nodes.push(function(){return{sourceSpan:e.sourceSpan,nodeFlags:2,nodeDef:gt(on.textDef).callFn([bt(-1),bt(e.ngContentIndex),St([bt(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:Ef,value:t})}),s=r;this.nodes[r]=function(){return{sourceSpan:e.sourceSpan,nodeFlags:2,nodeDef:gt(on.textDef).callFn([bt(s),bt(e.ngContentIndex),St(i.strings.map(function(e){return bt(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:gt(on.anchorDef).callFn([bt(o),s,bt(e.ngContentIndex),bt(p),n._createElementHandleEventFn(r,a),yt(u.viewName)])}}},t.prototype.visitElement=function(e,t){var n=this,r=this.nodes.length;this.nodes.push(null);var i=p(e.name)?null:e.name,o=this._visitElementOrTemplate(r,e),a=o.flags,u=o.usedEvents,l=o.queryMatchesExpr,c=o.hostBindings,h=o.hostEvents,f=[],d=[],v=[];if(i){var m=e.inputs.map(function(e){return{context:Ef,inputAst:e,dirAst:null}}).concat(c);m.length&&(d=m.map(function(e,t){return n._preprocessUpdateExpression({context:e.context,nodeIndex:r,bindingIndex:t,sourceSpan:e.inputAst.sourceSpan,value:e.inputAst.value})}),f=m.map(function(e){return function t(e,n){var r=e.type;switch(r){case 1:return St([bt(1),bt(e.name),bt(e.securityContext)]);case 0:return St([bt(8),bt(e.name),bt(e.securityContext)]);case 4:return St([bt(8|(n&&n.directive.isComponent?32:16)),bt("@"+e.name),bt(e.securityContext)]);case 2:return St([bt(2),bt(e.name),Ke]);case 3:return St([bt(4),bt(e.name),bt(e.unit)]);default:throw new Error("unexpected "+r)}}(e.inputAst,e.dirAst)})),v=u.map(function(e){var t=s(e,2),n=t[1];return St([bt(t[0]),bt(n)])})}Bu(this,e.children);var y=this.nodes.length-r-1,g=e.directives.find(function(e){return e.directive.isComponent}),_=Ke,E=Ke;g&&(E=this.outputCtx.importExpr(g.directive.componentViewType),_=this.outputCtx.importExpr(g.directive.rendererType));var S=r;this.nodes[r]=function(){return{sourceSpan:e.sourceSpan,nodeFlags:1|a,nodeDef:gt(on.elementDef).callFn([bt(S),bt(a),l,bt(e.ngContentIndex),bt(y),bt(i),i?(t=e,o=Object.create(null),t.attrs.forEach(function(e){o[e.name]=e.value}),t.directives.forEach(function(e){Object.keys(e.directive.hostAttributes).forEach(function(t){var n=e.directive.hostAttributes[t],r=o[t];o[t]=null!=r?function i(e,t,n){return"class"==e||"style"==e?t+" "+n:n}(t,r,n):n})}),St(Object.keys(o).sort().map(function(e){return St([bt(e),bt(o[e])])}))):Ke,f.length?St(f):Ke,v.length?St(v):Ke,n._createElementHandleEventFn(r,h),E,_]),updateRenderer:d};var t,o}},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=Pf(e,null),n=t.name,r=t.target;i.set(Af(r,n),[r,n])}),t.directives.forEach(function(e){e.hostEvents.forEach(function(t){var n=Pf(t,e),r=n.name,o=n.target;i.set(Af(o,r),[o,r])})});var o=[],s=[];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===Sn(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,a(c.hostBindings)),s.push.apply(s,a(h))}else n._visitProvider(r,t.queryMatches)});var u=[];return t.queryMatches.forEach(function(e){var t=void 0;Sn(e.value)===n.reflector.resolveExternalReference(on.ElementRef)?t=0:Sn(e.value)===n.reflector.resolveExternalReference(on.ViewContainerRef)?t=3:Sn(e.value)===n.reflector.resolveExternalReference(on.TemplateRef)&&(t=2),null!=t&&u.push(St([bt(e.queryId),bt(t)]))}),t.references.forEach(function(t){var r=void 0;t.value?Sn(t.value)===n.reflector.resolveExternalReference(on.TemplateRef)&&(r=2):r=1,null!=r&&(n.refNodeIndices[t.name]=e,u.push(St([bt(t.name),bt(r)])))}),t.outputs.forEach(function(e){s.push({context:Ef,eventAst:e,dirAst:null})}),{flags:r,usedEvents:Array.from(i.values()),queryMatchesExpr:u.length?St(u):Ke,hostBindings:o,hostEvents:s}},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|Mf(a,r,e),o=e.first?0:1;u.nodes.push(function(){return{sourceSpan:t.sourceSpan,nodeFlags:i,nodeDef:gt(on.queryDef).callFn([bt(i),bt(r),new We([new qe(e.propertyName,bt(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&&Sn(t.value)===Sn(e.token)&&(u.refNodeIndices[t.name]=p,f.push(St([bt(t.name),bt(4)])))}),t.directive.isComponent&&(h|=32768);var m=t.inputs.map(function(e,t){var n=St([bt(t),bt(e.directiveName)]);return new qe(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 qe(e,bt(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:Ef,value:e.value})}));var E=gt(on.nodeValue).callFn([gf,bt(p)]),S=t.hostProperties.map(function(e){return{context:E,dirAst:t,inputAst:e}}),x=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:gt(on.directiveDef).callFn([bt(w),bt(h),f.length?St(f):Ke,bt(l),d,v,m.length?new We(m):Ke,y.length?new We(y):Ke]),updateDirectives:_,directive:t.directive.type}},{hostBindings:S,hostEvents:x}},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=nf(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:gt(on.providerDef).callFn([bt(e.flags),e.queryMatchExprs.length?St(e.queryMatchExprs):Ke,e.tokenExpr,e.providerExpr,e.depsExpr])}})},t.prototype._visitProviderOrDirective=function(e,t){var n=[];t.forEach(function(t){Sn(t.value)===Sn(e.token)&&n.push(St([bt(t.queryId),bt(4)]))});var r=Yh(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==Os.event.name)return Os.event;for(var t=gf,n=this;n;n=n.parent,t=t.prop("parent").cast(le)){var r=n.refNodeIndices[e];if(null!=r)return gt(on.nodeValue).callFn([t,bt(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.notifyImplicitReceiverUse=function(){},t.prototype._createLiteralArrayConverter=function(e,t){if(0===t){var n=gt(on.EMPTY_ARRAY);return function(){return n}}var r=this.nodes.length;return this.nodes.push(function(){return{sourceSpan:e,nodeFlags:32,nodeDef:gt(on.pureArrayDef).callFn([bt(r),bt(t)])}}),function(e){return Cf(r,e)}},t.prototype._createLiteralMapConverter=function(e,t){if(0===t.length){var n=gt(on.EMPTY_MAP);return function(){return n}}var r=xt(t.map(function(e,t){return i({},e,{value:bt(t)})})),o=this.nodes.length;return this.nodes.push(function(){return{sourceSpan:e,nodeFlags:64,nodeDef:gt(on.pureObjectDef).callFn([bt(o),r])}}),function(e){return Cf(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:gt(on.purePipeDef).callFn([bt(i),bt(n)])}});for(var o=gf,s=this;s.parent;)s=s.parent,o=o.prop("parent").cast(le);var a=s.purePipeNodeIndices[t],u=gt(on.nodeValue).callFn([o,bt(a)]);return function(t){return bf(e.nodeIndex,e.bindingIndex,Cf(i,[u].concat(t)))}}var p=this._createPipe(e.sourceSpan,r),l=gt(on.nodeValue).callFn([gf,bt(p)]);return function(t){return bf(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===Hh.OnDestroy&&(i|=tf(e))});var o=t.type.diDeps.map(function(e){return ef(n.outputCtx,e)});return this.nodes.push(function(){return{sourceSpan:e,nodeFlags:16,nodeDef:gt(on.pipeDef).callFn([bt(i),n.outputCtx.importExpr(t.type.reference),St(o)])}}),r},t.prototype._preprocessUpdateExpression=function(e){var t=this;return{nodeIndex:e.nodeIndex,bindingIndex:e.bindingIndex,sourceSpan:e.sourceSpan,context:e.context,value:Ls({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(),s=i.nodeDef,u=i.nodeFlags,p=i.updateDirectives,l=i.updateRenderer,c=i.sourceSpan;return l&&n.push.apply(n,a(o(t,c,l,!1))),p&&r.push.apply(r,a(o(t,c,p,(327680&u)>0))),vt(3&u?new ze([yf.callFn([]).callFn([]),s]):s,c)});return{updateRendererStmts:n,updateDirectivesStmts:r,nodeDefExprs:i};function o(n,r,i,o){var s=[],u=i.map(function(n){var r=n.sourceSpan,i=n.context,o=""+t++,u=Us(i===Ef?e:null,i,n.value,o,Bs.General),p=u.currValExpr;return s.push.apply(s,a(u.stmts.map(function(e){return dt(e,r)}))),vt(p,r)});return(i.length||o)&&s.push(dt(Cf(n,u).toStmt(),r)),s}},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=Fs(t===Ef?r:null,t,n.handler,a),p=u.allowDefault,l=u.stmts;p&&l.push(xf.set(p.and(xf)).toStmt());var c=Pf(n,s),h=Af(c.target,c.name);i.push(dt(new it(bt(h).identical(Sf),l),n.sourceSpan))}),i.length>0){var s=[xf.set(bt(!0)).toDeclStmt(he)];!this.component.isHost&&ct(i).has(Ef.name)&&s.push(Ef.set(gf.prop("component")).toDeclStmt(this.compType)),n=wt([new Le(gf.name,ce),new Le(Sf.name,ce),new Le(Os.event.name,ce)],a(s,i,[new Je(xf)]),ce)}else n=Ke;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 Cf(e,t){return _f.callFn(t.length>10?[gf,bt(e),bt(1),St(t)]:a([gf,bt(e),bt(0)],t))}function bf(e,t,n){return gt(on.unwrapValue).callFn([gf,bt(e),bt(t),n])}function Tf(e,t){return void 0===t&&(t=new Map),e.forEach(function(e){var n=new Set,r=new Set,i=void 0;e instanceof Au?(Tf(e.children,t),e.children.forEach(function(e){var i=t.get(e);i.staticQueryIds.forEach(function(e){return n.add(e)}),i.dynamicQueryIds.forEach(function(e){return r.add(e)})}),i=e.queryMatches):e instanceof Iu&&(Tf(e.children,t),e.children.forEach(function(e){var n=t.get(e);n.staticQueryIds.forEach(function(e){return r.add(e)}),n.dynamicQueryIds.forEach(function(e){return r.add(e)})}),i=e.queryMatches),i&&i.forEach(function(e){return n.add(e.queryId)}),r.forEach(function(e){return n.delete(e)}),t.set(e,{staticQueryIds:n,dynamicQueryIds:r})}),t}function Nf(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}}function Pf(e,t){return e.isAnimation?{name:"@"+e.name+"."+e.phase,target:t&&t.directive.isComponent?"component":null}:e}function Mf(e,t,n){var r=0;return n.first&&function i(e,t,n){return n.static||null==n.static&&(e.staticQueryIds.has(t)||!e.dynamicQueryIds.has(t))}(e,t,n)?r|=268435456:r|=536870912,r}function Af(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 If=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,i=this._htmlParser.parse(e,t,{tokenizeExpansionForms:!0,interpolationConfig:n});if(i.errors.length)return i.errors;var o=function s(e,t,n,r){return new uh(n,r).extract(e,t)}(i.rootNodes,n,this._implicitTags,this._implicitAttrs);return o.errors.length?o.errors:((r=this._messages).push.apply(r,a(o.messages)),[])},e.prototype.getMessages=function(){return this._messages},e.prototype.write=function(e,t){var n={},r=new kf;this._messages.forEach(function(t){var r,i=e.digest(t);n.hasOwnProperty(i)?(r=n[i].sources).push.apply(r,a(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 Ur(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}(),kf=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 zr(e.tag,e.attrs,r,i,o,e.isVoid,e.sourceSpan)},t.prototype.visitPlaceholder=function(e,t){return new Kr(e.value,t.toPublicName(e.name),e.sourceSpan)},t.prototype.visitIcuPlaceholder=function(e,t){return new Qr(e.value,t.toPublicName(e.name),e.sourceSpan)},t}(Xr),Rf=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&&me(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 Of(e,t){var n,r,i,s,a=[];try{for(var u=o(e.transitiveModule.providers),p=u.next();!p.done;p=u.next()){var l=p.value,c=l.provider,h=l.module;if(Sn(c.token)===t.ROUTES){var f=Df(c.useValue);try{for(var d=o(f),v=d.next();!v.done;v=d.next())a.push(Ff(v.value,t,h.reference))}catch(e){i={error:e}}finally{try{v&&!v.done&&(s=d.return)&&s.call(d)}finally{if(i)throw i.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 Df(e,t){var n,r;if(void 0===t&&(t=[]),"string"==typeof e)t.push(e);else if(Array.isArray(e))try{for(var i=o(e),s=i.next();!s.done;s=i.next())Df(s.value,t)}catch(e){n={error:e}}finally{try{s&&!s.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}else e.loadChildren?Df(e.loadChildren,t):e.children&&Df(e.children,t);return t}function Ff(e,t,n){var r=s(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 Lf=/^(?!.*\.d\.ts$).*\.ts$/,Bf=function Bf(e,t){this.symbol=e,this.metadata=t},Vf=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(Rh,".")}(e.filePath);if(r!==e.filePath){var o,s=function a(e){return e.replace(Oh,"")}(e.name);return n=this.getStaticSymbol(r,s,e.members),(o=this.getImportAs(n,t))?this.getStaticSymbol(jh(o.filePath),Uh(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 kh.test(e)}(e.filePath))return null;for(var n=Uf(this.resolveSymbol(e));n&&n.metadata instanceof un;)n=Uf(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){var t,n;this.metadataCache.delete(e),this.resolvedFilePaths.delete(e);var r=this.symbolFromFile.get(e);if(r){this.symbolFromFile.delete(e);try{for(var i=o(r),s=i.next();!s.done;s=i.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=i.return)&&n.call(i)}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=Uf(n.metadata);if(r instanceof un)return new Bf(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 Bf(e,i)}return r.statics&&1===t.length?new Bf(e,r.statics[t[0]]):null},e.prototype._resolveSymbolFromSummary=function(e){var t=this.summaryResolver.resolveSummary(e);return t?new Bf(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,n,r=this;if(!this.resolvedFilePaths.has(e)){this.resolvedFilePaths.add(e);var i=[],s=this.getModuleMetadata(e);if(s.importAs&&this.knownFileNameToModuleNames.set(e,s.importAs),s.exports){var a=function(t){if(t.export)t.export.forEach(function(n){var o,s=o=jf(o="string"==typeof n?n:n.as);"string"!=typeof n&&(s=jf(n.name));var a=r.resolveModule(t.from,e);if(a){var u=r.getStaticSymbol(a,s),p=r.getStaticSymbol(e,o);i.push(r.createExport(p,u))}});else{var n=u.resolveModule(t.from,e);n&&u.getSymbolsOf(n).forEach(function(t){var n=r.getStaticSymbol(e,t.name);i.push(r.createExport(n,t))})}},u=this;try{for(var p=o(s.exports),l=p.next();!l.done;l=p.next())a(l.value)}catch(e){t={error:e}}finally{try{l&&!l.done&&(n=p.return)&&n.call(p)}finally{if(t)throw t.error}}}if(s.metadata){var c=new Set(Object.keys(s.metadata).map(jf)),h=s.origins||{};Object.keys(s.metadata).forEach(function(t){var n=s.metadata[t],o=jf(t),a=r.getStaticSymbol(e,o),u=h.hasOwnProperty(t)&&h[t];if(u){var p=r.resolveModule(u,e);p?r.symbolResourcePaths.set(a,p):r.reportError(new Error("Couldn't resolve original symbol for "+u+" from "+r.host.getOutputName(e)))}i.push(r.createResolvedSymbol(a,e,c,n))})}i.forEach(function(e){return r.resolvedSymbols.set(e.symbol,e)}),this.symbolFromFile.set(e,i.map(function(e){return e.symbol}))}},e.prototype.createResolvedSymbol=function(e,t,r,o){var s,u=this,p=Lf.test(e.filePath);if(this.summaryResolver.isLibraryFile(e.filePath)&&!p&&o&&"class"===o.__symbolic)return new Bf(e,{__symbolic:"class",arity:o.arity});var l=function(){return s||(s=u.host.getOutputName(t.replace(/((\.ts)|(\.d\.ts)|)$/,".ts").replace(/^.*node_modules[\/\\]/,""))),s},c=this,h=At(o,new(function(o){function s(){return null!==o&&o.apply(this,arguments)||this}return n(s,o),s.prototype.visitStringMap=function(n,s){var u=n.__symbolic;if("function"===u){var p=s.length;s.push.apply(s,a(n.parameters||[]));var h=o.prototype.visitStringMap.call(this,n,s);return s.length=p,h}if("reference"!==u)return"error"===u?i({},n,{fileName:l()}):o.prototype.visitStringMap.call(this,n,s);var f=n.module,d=n.name?jf(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 "+c.host.getMetadataFor(e.filePath)+".",line:n.line,character:n.character,fileName:l()}:s.indexOf(d)>=0?{__symbolic:"reference",name:d}:r.has(d)?c.getStaticSymbol(t,d):void 0},s}(Rt)),[]),f=Uf(h);return f instanceof un?this.createExport(e,f):new Bf(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 Bf(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)})}if(t||(t={__symbolic:"module",version:4,module:e,metadata:{}}),4!=t.version){var i=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 "+this.host.getOutputName(e)+", found version "+t.version+", expected 4";this.reportError(new Error(i))}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 "+this.host.getOutputName(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 jf(e){return e.startsWith("___")?e.substr(1):e}function Uf(e){return e&&"resolved"===e.__symbolic?e.symbol:e}function Hf(t,n,r){var i=Uh(n.name);t.statements.push(wt([],[new Je(r)],new ue(le)).toDeclStmt(i,[e.StmtModifier.Final,e.StmtModifier.Exported]))}var qf=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 Kf(o)&&(function a(e){return Kf(e)&&Uf(e.expression)instanceof un}(o)||function u(e){return Kf(e)&&e.expression&&"select"===e.expression.__symbolic&&Uf(e.expression.expression)instanceof un}
/**
* @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 un&&this.summaryResolver.isLibraryFile(o.filePath)){var p=this.symbols[this.indexBySymbol.get(o)];Wh(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(e){var t=this,n=[];return{json:JSON.stringify({moduleName:this.moduleName,summaries:this.processedSummaries,symbols:this.symbols.map(function(r,i){r.assertNoMembers();var o=void 0;if(t.summaryResolver.isLibraryFile(r.filePath)){var s=t.reexportedBy.get(r);if(s)o=t.indexBySymbol.get(s);else if(e){var a=t.unprocessedSymbolSummariesBySymbol.get(r);a&&a.metadata&&"interface"===a.metadata.__symbolic||n.push({symbol:r,exportAs:o=r.name+"_"+i})}}return{__symbol:i,name:r.name,filePath:t.summaryResolver.toSummaryFileName(r.filePath,t.srcFileName),importAs:o}})}),exportAs:n}},r.prototype.processValue=function(e,t){return At(e,this,t)},r.prototype.visitOther=function(e,t){if(e instanceof un){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?At(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 un&&(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}(Rt),Wf=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,r,i,s,a,u,p=this,l=new Map;try{for(var c=o(t),h=c.next();!h.done;h=c.next()){var f=h.value;l.set(f.symbol,f.exportAs)}}catch(e){n={error:e}}finally{try{h&&!h.done&&(r=c.return)&&r.call(c)}finally{if(n)throw n.error}}var d=new Set;try{for(var v=o(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 S=g;try{for(var x=o(S.modules),w=x.next();!w.done;w=x.next())d.add(w.value.reference)}catch(e){a={error:e}}finally{try{w&&!w.done&&(u=x.return)&&u.call(x)}finally{if(a)throw a.error}}}E||(Uh(g.type.reference.name),Hf(this.outputCtx,g.type.reference,this.serializeSummaryWithDeps(g,_)))}}catch(e){i={error:e}}finally{try{m&&!m.done&&(s=v.return)&&s.call(v)}finally{if(i)throw i.error}}d.forEach(function(t){if(p.summaryResolver.isLibraryFile(t.filePath)){var n=Uh(l.get(t)||t.name);p.outputCtx.statements.push(yt(n).set(p.serializeSummaryRef(t)).toDeclStmt(null,[e.StmtModifier.Exported]))}})},t.prototype.serializeSummaryWithDeps=function(t,n){var r=this,i=[this.serializeSummary(t)],o=[];return n instanceof Nn?(i.push.apply(i,a(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,a(o.filter(function(e){return!!e.useClass}).map(function(t){return r.serializeSummary({summaryKind:e.CompileSummaryKind.Injectable,type:t.useClass})}))),St(i)},t.prototype.serializeSummaryRef=function(e){var t=this.symbolResolver.getStaticSymbol(jh(e.filePath),Uh(e.name));return this.outputCtx.importExpr(t)},t.prototype.serializeSummary=function(e){var t=this.outputCtx,n=function(){function e(){}return e.prototype.visitArray=function(e,t){var n=this;return St(e.map(function(e){return At(e,n,t)}))},e.prototype.visitStringMap=function(e,t){var n=this;return new We(Object.keys(e).map(function(r){return new qe(r,At(e[r],n,t),!1)}))},e.prototype.visitPrimitive=function(e,t){return bt(e)},e.prototype.visitOther=function(e,n){if(e instanceof un)return t.importExpr(e);throw new Error("Illegal State: Encountered value "+e)},e}();return At(e,new n,null)},t}(),zf=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(Dh(e),s)})});var o=At(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}(Rt);function Kf(e){return e&&"call"===e.__symbolic}var Qf=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=Jf(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=Jf(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=ed(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=td(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(Dh(r.fileName,!0)),this._options.enableSummariesForJit&&n.push(jh(r.fileName,!0)));var i=Bh(Lh(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 Bt("Couldn't resolve resource "+e+" relative to "+r.fileName);var a=(o.template.encapsulation||t._config.defaultEncapsulation)===E.Emulated;n.push($f(s,a,i)),t._options.allowEmptyCodegenFiles&&n.push($f(s,!a,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,1)}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),Xf(n),r.ngModules.forEach(function(e){!function t(e,n){Hf(e,n,Ke)}(n,e.type.reference)})}}else e.endsWith(".ngstyle.ts")&&Xf(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,2),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:rd(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:rd(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 s=a(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([on.TemplateRef,on.ElementRef])),u=new Map;s.forEach(function(e,t){u.set(e,"_decl"+o+"_"+t)}),u.forEach(function(t,n){e.statements.push(yt(t).set(Ke.cast(le)).toDeclStmt(Et(e.importExpr(n,null,!1))))}),2&n&&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&&Xf(e)},t.prototype._externalIdentifierReferences=function(e){var t,n,r=[];try{for(var i=o(e),s=i.next();!s.done;s=i.next()){var a=an(this.reflector,s.value);a.identifier&&r.push(a.identifier.reference)}}catch(e){t={error:e}}finally{try{s&&!s.done&&(n=i.return)&&n.call(i)}finally{if(t)throw t.error}}return r},t.prototype._createTypeCheckBlock=function(e,t,n,r,i,o){var s,u=this._parseTemplate(r,n,i);(s=e.statements).push.apply(s,a(this._typeCheckCompiler.compileComponent(t,r,u.template,u.pipes,o,e)))},t.prototype.emitMessageBundle=function(e,t){var n=this,r=[],i=new au,o=new If(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(e){var t=e.template.template,n=e.template.templateUrl,i=Po.fromArray(e.template.interpolation);r.push.apply(r,a(o.updateFromTemplate(t,n,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,s=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,s(e.fileName))}),t.forEach(function(e){return n._compileShallowModules(e.fileName,e.shallowModules,s(e.fileName))}),Array.from(o.values()).map(function(e){return{fileName:e.genFilePath,statements:a(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=dn(r.type),s=r.rawImports?[r.rawImports]:[],u=r.rawExports?[r.rawExports]:[],p=Ii({factory:i.factoryFor({type:r.type,symbol:r.type.reference},t),providers:_o(r.rawProviders,t),imports:_o(a(s,u),t)}),l=gt(Bn.defineInjector).callFn([p]);t.statements.push(new rt(o,null,[new et("ngInjectorDef",ce,[e.StmtModifier.Static],l)],[],new tt(null,[],[]),[]))}(r,t,i._injectableCompiler)})},t.prototype._compilePartialModule=function(t,n,r,o,s,a,u){var p=this,l=new yl,c=new Ju(this._templateParser.expressionParser,Mo,l,[],[]);r.forEach(function(t){var r=p._metadataResolver.getDirectiveMetadata(t);if(r.isComponent){var o=n.get(t);o||Lt("Cannot determine the module for component '"+dn(r.type)+"'");var s=r.template.htmlAst;r.template.preserveWhitespaces||(s=du(s));var a=_l(s.rootNodes,c),l=new Map;o.transitiveModule.directives.map(function(e){return p._metadataResolver.getDirectiveSummary(e.reference)}).forEach(function(e){e.selector&&l.set(e.selector,e.type.reference)});var h=new Map;o.transitiveModule.pipes.map(function(e){return p._metadataResolver.getPipeSummary(e.reference)}).forEach(function(e){h.set(e.name,e.type.reference)}),function f(t,n,r,o,s,a,u){var p=dn(n.type);p||Lt("Cannot resolver the name of "+n.type);var l=t.constantPool.propertyNameOf(2),c=n.toSummary(),h=fc(i({},dc(),{selector:n.selector,template:{nodes:r.nodes},directives:[],pipes:Nc(u,t),viewQueries:vc(n.viewQueries,t),wrapDirectivesAndPipesInClosure:!1,styles:c.template&&c.template.styles||ac,encapsulation:c.template&&c.template.encapsulation||E.Emulated,interpolation:Mo,animations:null,viewProviders:n.viewProviders.length>0?new xe(n.viewProviders):null,relativeContextFilePath:"",i18nUseExternalIds:!0}),t.constantPool,s);t.statements.push(new rt(p,null,[new et(l,ce,[e.StmtModifier.Static],h.expression)],[],new tt(null,[],[]),[]))}(u,r,a,0,c,0,h)}else!function d(t,n,r,i){var o=dn(n.type);o||Lt("Cannot resolver the name of "+n.type);var s=t.constantPool.propertyNameOf(1),a=cc(dc(),t.constantPool,i);t.statements.push(new rt(o,null,[new et(s,ce,[e.StmtModifier.Static],a.expression)],[],new tt(null,[],[]),[]))}(u,r,0,c)}),o.forEach(function(t){var n=p._metadataResolver.getPipeMetadata(t);n&&function r(t,n,i){var o=dn(n.type);if(!o)return Lt("Cannot resolve the name of "+n.type);var s=Jo({name:o,pipeName:n.name,type:t.importExpr(n.type.reference),typeArgumentCount:0,deps:vo(n.type,t,i),pure:n.pure}),a=t.constantPool.propertyNameOf(3);t.statements.push(new rt(o,null,[new et(a,ce,[e.StmtModifier.Static],s.expression)],[],new tt(null,[],[]),[]))}(u,n,p.reflector)}),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,a(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:a(r.constantPool.statements,r.statements)}]:[]},t.prototype.emitAllImpls=function(e){var t=this,n=e.ngModuleByPipeOrDirective;return In(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 s=this,u=Bh(Lh(e,!0)[1]),p=[],l=this._createOutputContext(Dh(e,!0));if(p.push.apply(p,a(this._createSummary(e,n,r,i,o,l))),i.forEach(function(e){return s._compileModule(l,e)}),n.forEach(function(n){var r=s._metadataResolver.getDirectiveMetadata(n);if(r.isComponent){var i=t.get(n);if(!i)throw new Error("Internal Error: cannot determine the module for component "+dn(r.type)+"!");var o=s._styleCompiler.compileComponent(l,r);r.template.externalStylesheets.forEach(function(t){var n=s._styleCompiler.needsStyleShim(r);p.push(s._codegenStyles(e,r,t,n,u)),s._options.allowEmptyCodegenFiles&&p.push(s._codegenStyles(e,r,t,!n,u))}),s._compileComponent(l,r,i,i.transitiveModule.directives,o,u),s._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,s){var u=this,p=this._symbolResolver.getSymbolsOf(t).map(function(e){return u._symbolResolver.resolveSymbol(e)}),l=a(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(jh(t,!0)):null,h=function f(e,t,n,r,i,o,s){void 0===s&&(s=!1);var a=new qf(r,n,e);i.forEach(function(e){return a.addSummary({symbol:e.symbol,metadata:e.metadata})}),o.forEach(function(e){var t=e.summary;a.addSummary({symbol:t.type.reference,metadata:void 0,type:t})});var u=a.serialize(s),p=u.json,l=u.exportAs;if(t){var c=new Wf(t,r,n);o.forEach(function(e){c.addSourceType(e.summary,e.metadata)}),a.unprocessedSymbolSummariesBySymbol.forEach(function(e){n.isLibraryFile(e.symbol.filePath)&&e.type&&c.addLibType(e.type)}),c.serialize(l)}return{json:p,exportAs:l}}(t,c,this._summaryResolver,this._symbolResolver,p,l,this._options.createExternalSymbolFactoryReexports),d=h.json;h.exportAs.forEach(function(t){s.statements.push(yt(t.exportAs).set(s.importExpr(t.symbol)).toDeclStmt(null,[e.StmtModifier.Exported]))});var v=[new Rf(t,Vh(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:an(this.reflector,on.LOCALE_ID),useValue:r})}this._options.i18nFormat&&n.push({token:an(this.reflector,on.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=_n(n.type.reference),u=[];for(var p in n.inputs)u.push(new qe(p,bt(n.inputs[p]),!1));var l=[];for(var p in n.outputs)l.push(new qe(p,bt(n.outputs[p]),!1));t.statements.push(yt(a).set(gt(on.createComponentFactory).callFn([bt(n.selector),t.importExpr(n.type.reference),yt(s),new We(u),new We(l),St(n.template.ngContentSelectors.map(function(e){return bt(e)}))])).toDeclStmt(_t(on.ComponentFactory,[Et(t.importExpr(n.type.reference))],[te.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?yt(i.stylesVar):St([]),l=this._viewCompiler.compileComponent(e,t,a,p,u);return i&&Gf(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,Rn(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 un))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(le));return u.reduce(function(e,t){return e.prop(t)},gt(new ke(l,a,null),h))},constantPool:new Zt}},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($f(n.moduleUrl,r,i)),s=this._styleCompiler.compileStyles(o,t,n,r);return Gf(this._symbolResolver,s,r,i),this._codegenSourceModule(e,o)},t.prototype._codegenSourceModule=function(e,t){return new Rf(e,t.genFilePath,t.statements)},t.prototype.listLazyRoutes=function(e,t){var n,r,i,s,a=this;if(e)return function e(t,n,r){var i,s;if(void 0===n&&(n=new Set),void 0===r&&(r=[]),n.has(t)||!t.name)return r;n.add(t);var u=Of(a._metadataResolver.getNgModuleMetadata(t,!0),a.reflector);try{for(var p=o(u),l=p.next();!l.done;l=p.next()){var c=l.value;r.push(c),e(c.referencedModule,n,r)}}catch(e){i={error:e}}finally{try{l&&!l.done&&(s=p.return)&&s.call(p)}finally{if(i)throw i.error}}return r}(Ff(e,this.reflector).referencedModule);if(t){var u=[];try{for(var p=o(t.ngModules),l=p.next();!l.done;l=p.next()){var c=Of(l.value,this.reflector);try{for(var h=o(c),f=h.next();!f.done;f=h.next())u.push(f.value)}catch(e){i={error:e}}finally{try{f&&!f.done&&(s=h.return)&&s.call(h)}finally{if(i)throw i.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 Xf(e){e.statements.push(gt(on.ComponentFactory).toStmt())}function Gf(e,t,n,r){t.dependencies.forEach(function(t){t.setValue(e.getStaticSymbol($f(t.moduleUrl,n,r),t.name))})}function $f(e,t,n){return e+(t?".shim":"")+".ngstyle"+n}function Yf(e,t,n,r){return nd(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=ed(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 Jf(e,t,n,r){return Zf(Yf(e,t,n,r))}function Zf(e){if(e.symbolsMissingModule&&e.symbolsMissingModule.length)throw Bt(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 ed(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,r=function(){function t(){}return t.prototype.visitArray=function(e,t){var n=this;e.forEach(function(e){return At(e,n,t)})},t.prototype.visitStringMap=function(e,t){var n=this;Object.keys(e).forEach(function(r){return At(e[r],n,t)})},t.prototype.visitPrimitive=function(e,t){},t.prototype.visitOther=function(t,r){t instanceof un&&!e.isSourceFile(t.filePath)&&(n=!0)},t}();return At(t,new r,null),n}(e,u))}}),{fileName:r,directives:i,pipes:o,ngModules:a,injectables:s,exportsNonSourceFiles:p}}function td(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 nd(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 rd(e){return Zf(nd(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 id="ngFormattedMessage";function od(e){var t=Bt(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[id]=!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 sd="@angular/core",ad=/^\$.*\$$/,ud={__symbolic:"ignore"},pd=new Set(["useValue","useFactory","data","id","loadChildren"]);function ld(e){return e&&"ignore"==e.__symbolic}var cd=function(){function t(t,n,r,i,o){var s=this;void 0===r&&(r=[]),void 0===i&&(i=[]),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,[O,L]),this.annotationForParentClassWithSummaryKind.set(e.CompileSummaryKind.Pipe,[B]),this.annotationForParentClassWithSummaryKind.set(e.CompileSummaryKind.NgModule,[q]),this.annotationForParentClassWithSummaryKind.set(e.CompileSummaryKind.Injectable,[W,B,O,L,q])}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 un)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),s=this.findParentType(t,o);if(s){var u=this.annotations(s);i.push.apply(i,a(u))}var p=[];if(o.decorators&&(p=n(t,o.decorators))&&i.push.apply(i,a(p)),s&&!this.summaryResolver.isLibraryFile(t.filePath)&&this.summaryResolver.isLibraryFile(s.filePath)){var l=this.summaryResolver.resolveSummary(s);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(bd(fd("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 s=r.members||{};Object.keys(s).forEach(function(r){var i=s[r].find(function(e){return"property"==e.__symbolic||"method"==e.__symbolic}),o=[];n[r]&&o.push.apply(o,a(n[r])),n[r]=o,i&&i.decorators&&o.push.apply(o,a(t.simplify(e,i.decorators)))}),this.propertyCache.set(e,n)}return n},t.prototype.parameters=function(e){var t=this;if(!(e instanceof un))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,s=o?o.__ctor__:null;if(s){var u=s.find(function(e){return"constructor"==e.__symbolic}),p=u.parameters||[],l=this.simplify(e,u.parameterDecorators||[]);n=[],p.forEach(function(r,i){var o=[],s=t.trySimplify(e,r);s&&o.push(s);var u=l?l[i]:null;u&&o.push.apply(o,a(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 un)return n},t.prototype.hasLifecycleHook=function(e,t){e instanceof un||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){var t,n;if(!(e instanceof un))return this.reportError(new Error("guards received "+JSON.stringify(e)+" which is not a StaticSymbol"),e),{};var r=this._staticMembers(e),i={};try{for(var s=o(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]),i[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 i},t.prototype._registerDecoratorOrConstructor=function(e,t){this.conversionMap.set(e,function(e,n){return new(t.bind.apply(t,a([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(sd,"Injectable"),W),this.injectionToken=this.findDeclaration(sd,"InjectionToken"),this.opaqueToken=this.findDeclaration(sd,"OpaqueToken"),this.ROUTES=this.tryFindDeclaration("@angular/router","ROUTES"),this.ANALYZE_FOR_ENTRY_COMPONENTS=this.findDeclaration(sd,"ANALYZE_FOR_ENTRY_COMPONENTS"),this._registerDecoratorOrConstructor(this.findDeclaration(sd,"Host"),$),this._registerDecoratorOrConstructor(this.findDeclaration(sd,"Self"),X),this._registerDecoratorOrConstructor(this.findDeclaration(sd,"SkipSelf"),G),this._registerDecoratorOrConstructor(this.findDeclaration(sd,"Inject"),N),this._registerDecoratorOrConstructor(this.findDeclaration(sd,"Optional"),Q),this._registerDecoratorOrConstructor(this.findDeclaration(sd,"Attribute"),M),this._registerDecoratorOrConstructor(this.findDeclaration(sd,"ContentChild"),I),this._registerDecoratorOrConstructor(this.findDeclaration(sd,"ContentChildren"),A),this._registerDecoratorOrConstructor(this.findDeclaration(sd,"ViewChild"),R),this._registerDecoratorOrConstructor(this.findDeclaration(sd,"ViewChildren"),k),this._registerDecoratorOrConstructor(this.findDeclaration(sd,"Input"),V),this._registerDecoratorOrConstructor(this.findDeclaration(sd,"Output"),j),this._registerDecoratorOrConstructor(this.findDeclaration(sd,"Pipe"),B),this._registerDecoratorOrConstructor(this.findDeclaration(sd,"HostBinding"),U),this._registerDecoratorOrConstructor(this.findDeclaration(sd,"HostListener"),H),this._registerDecoratorOrConstructor(this.findDeclaration(sd,"Directive"),O),this._registerDecoratorOrConstructor(this.findDeclaration(sd,"Component"),L),this._registerDecoratorOrConstructor(this.findDeclaration(sd,"NgModule"),q),this._registerDecoratorOrConstructor(this.findDeclaration(sd,"Host"),$),this._registerDecoratorOrConstructor(this.findDeclaration(sd,"Self"),X),this._registerDecoratorOrConstructor(this.findDeclaration(sd,"SkipSelf"),G),this._registerDecoratorOrConstructor(this.findDeclaration(sd,"Optional"),Q)},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,i=this,s=wd.empty,u=new Map;try{r=function e(t,n,r,p){function l(e){var t=i.symbolResolver.resolveSymbol(e);return t?t.metadata:null}function c(n){return e(t,n,r,0)}function h(n,o){if(n===t)return e(n,o,r+1,p);try{return e(n,o,r+1,p)}catch(e){if(!dd(e))throw e;var s=e.chain?"references '"+e.symbol.name+"'":function a(e){if(e.summary)return e.summary;switch(e.message){case vd:if(e.context&&e.context.className)return"references non-exported class "+e.context.className;break;case md:return"is not initialized";case yd:return"is a destructured variable";case gd:return"could not be resolved";case _d:return e.context&&e.context.name?"calls '"+e.context.name+"'":"calls a function";case Ed:return e.context&&e.context.name?"references local variable "+e.context.name:"references a local variable"}return"contains the error"}(e);i.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){var d,v,m,y;if(xd(f))return f;if(f instanceof Array){var g=[];try{for(var _=o(f),E=_.next();!E.done;E=_.next()){var S=E.value;if(S&&"spread"===S.__symbolic){var x=c(S.expression);if(Array.isArray(x)){try{for(var w=o(x),C=w.next();!C.done;C=w.next())g.push(C.value)}catch(e){m={error:e}}finally{try{C&&!C.done&&(y=w.return)&&y.call(w)}finally{if(m)throw m.error}}continue}}var b=n(S);ld(b)||g.push(b)}}catch(e){d={error:e}}finally{try{E&&!E.done&&(v=_.return)&&v.call(_)}finally{if(d)throw d.error}}return g}if(f instanceof un)return f===i.injectionToken||i.conversionMap.has(f)||p>0&&!f.members.length?f:null!=(F=l(T=f))?h(T,F):T;if(f){if(f.__symbolic){var T=void 0;switch(f.__symbolic){case"binop":var N=n(f.left);if(ld(N))return N;var P=n(f.right);if(ld(P))return P;switch(f.operator){case"&&":return N&&P;case"||":return N||P;case"|":return N|P;case"^":return N^P;case"&":return N&P;case"==":return N==P;case"!=":return N!=P;case"===":return N===P;case"!==":return N!==P;case"<":return N<P;case">":return N>P;case"<=":return N<=P;case">=":return N>=P;case"<<":return N<<P;case">>":return N>>P;case"+":return N+P;case"-":return N-P;case"*":return N*P;case"/":return N/P;case"%":return N%P}return null;case"if":var M=n(f.condition);return n(M?f.thenExpression:f.elseExpression);case"pre":var A=n(f.operand);if(ld(A))return A;switch(f.operator){case"+":return A;case"-":return-A;case"!":return!A;case"~":return~A}return null;case"index":var I=c(f.expression),k=c(f.index);return I&&xd(k)?I[k]:null;case"select":var R=f.member,O=t,D=n(f.expression);if(D instanceof un){var F,L=D.members.concat(R);return null!=(F=l(O=i.getStaticSymbol(D.filePath,D.name,L)))?h(O,F):O}return D&&xd(R)?h(O,D[R]):null;case"reference":var B=s.resolve(f.name);if(B!=wd.missing)return B;break;case"resolved":try{return n(f.symbol)}catch(e){throw dd(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((T=e(t,f.expression,r+1,0))instanceof un){if(T===i.injectionToken||T===i.opaqueToken)return t;var V=f.arguments||[],j=i.conversionMap.get(T);if(j){var U=V.map(function(e){return h(t,e)}).map(function(e){return ld(e)?void 0:e});return j(t,U)}return function H(e,o,p,l){if(o&&"function"==o.__symbolic){u.get(e)&&i.error({message:"Recursion is not supported",summary:"called '"+e.name+"' recursively",value:o},e);try{var c=o.value;if(c&&(0!=r||"error"!=c.__symbolic)){var f=o.parameters,d=o.defaults;p=p.map(function(e){return h(t,e)}).map(function(e){return ld(e)?void 0:e}),d&&d.length>p.length&&p.push.apply(p,a(d.slice(p.length).map(function(e){return n(e)}))),u.set(e,!0);for(var v=wd.build(),m=0;m<f.length;m++)v.define(f[m],p[m]);var y,g=s;try{s=v.done(),y=h(e,c)}finally{s=g}return y}}finally{u.delete(e)}}if(0===r)return ud;var _=void 0;if(l&&"resolved"==l.__symbolic){var E=l.line,S=l.character,x=l.fileName;null!=x&&null!=E&&null!=S&&(_={fileName:x,line:E,column:S})}i.error({message:_d,context:e,value:o,position:_},t)}(T,l(T),V,f.expression)}return ud;case"error":var q=f.message;return i.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),ud;case"ignore":return f}return null}return function W(e,t){if(!e)return{};var n={};return Object.keys(e).forEach(function(r){var i=t(e[r],r);ld(i)||(ad.test(r)?Object.defineProperty(n,r,{enumerable:!1,configurable:!0,value:i}):n[r]=i)}),n}(f,function(o,s){if(pd.has(s)){if("useValue"===s&&"provide"in f){var a=n(f.provide);if(a===i.ROUTES||a==i.ANALYZE_FOR_ENTRY_COMPONENTS)return n(o)}return function u(n){return e(t,n,r,p+1)}(o)}return n(o)})}return ud}(n)}(e,t,0,n?1:0)}catch(t){if(!this.errorRecorder)throw bd(t,e);this.reportError(t,e)}if(!ld(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(bd(e,t),t&&t.filePath||n)},t.prototype.error=function(e,t){this.reportError(fd(e.message,e.summary,e.advise,e.position,e.symbol,e.context,e.chain),t)},t}(),hd="ngMetadataError";function fd(e,t,n,r,i,o,s){var a=Bt(e);return a[hd]=!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 dd(e){return!!e[hd]}var vd="Reference to non-exported class",md="Variable not initialized",yd="Destructuring not supported",gd="Could not resolve type",_d="Function call not supported",Ed="Reference to a local symbol",Sd="Lambda not supported";function xd(e){return null===e||"function"!=typeof e&&"object"!=typeof e}var wd=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 Cd(t):e.empty}}},e.missing={},e.empty={resolve:function(t){return e.missing}},e}(),Cd=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):wd.missing},t}(wd);function bd(e,t){return dd(e)?od(function e(t,n){return{message:function r(e,t){switch(e){case vd:if(t&&t.className)return"References to a non-exported class are not supported in decorators but "+t.className+" was referenced.";break;case md:return"Only initialized variables and constants can be referenced in decorators because the value of this variable is needed by the template compiler";case yd:return"Referencing an exported destructured variable or constant is not supported in decorators and this value is needed by the template compiler";case gd:if(t&&t.typeName)return"Could not resolve type "+t.typeName;break;case _d:return t&&t.name?"Function calls are not supported in decorators but '"+t.name+"' was called":"Function calls are not supported in decorators";case Ed:if(t&&t.name)return"Reference to a local (non-exported) symbols are not supported in decorators but '"+t.name+"' was referenced";break;case Sd: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 vd:if(t&&t.className)return"Consider exporting '"+t.className+"'";break;case yd:return"Consider simplifying to avoid destructuring";case Ed:if(t&&t.name)return"Consider exporting '"+t.name+"'";break;case Sd: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 Td=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(Fh(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=Vh(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 zf(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 Nd(e){return{resolve:function(t,n){var r=e.resourceNameToFileName(n,t);if(!r)throw Bt("Couldn't resolve resource "+n+" from "+t);return r}}}var Pd=function Pd(){},Md=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 Ad(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 Id=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}(),kd=function kd(e){this.value=e},Rd=function(){function t(e){this.reflector=e}return t.prototype.debugAst=function(e){return uf(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.visitWrappedNodeExpr=function(e,t){throw new Error("Cannot interpret a WrappedNodeExpr.")},t.prototype.visitTypeofExpr=function(e,t){throw new Error("Cannot interpret a TypeofExpr")},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=Dd;break;case e.BuiltinVar.CatchStack:r=Fd;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,a(o));break;case e.BuiltinMethod.SubscribeObservable:r=i.subscribe({next:o[0]});break;case e.BuiltinMethod.Bind:r=i.bind.apply(i,a(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 Ee&&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 kd(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 Id(t,this,e.name,t.vars);return Ad([],[],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 Id(t,this,e.name,t.vars);return Ad(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 Id(t,this,e.name,t.vars);e.fields.forEach(function(e){r[e.name]=void 0}),Ad(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(Dd,r),n.vars.set(Fd,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,a([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 Od(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,Od(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 kd)return r}return null},t}();function Od(e,t,n,r){return function(){for(var i=[],o=0;o<arguments.length;o++)i[o]=arguments[o];return Ad(e,i,t,n,r)}}var Dd="error",Fd="stack",Ld=function(){function e(e,t,n,r,i,o,s,a,u,p,l){this._metadataResolver=e,this._templateParser=t,this._styleCompiler=n,this._viewCompiler=r,this._ngModuleCompiler=i,this._summaryResolver=o,this._reflector=s,this._jitEvaluator=a,this._compilerConfig=u,this._console=p,this.getExtraNgModuleProviders=l,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 Ot(this._compileModuleAndComponents(e,!0))},e.prototype.compileModuleAsync=function(e){return Promise.resolve(this._compileModuleAndComponents(e,!1))},e.prototype.compileModuleAndAllComponentsSync=function(e){return Ot(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 Dt(this._loadModules(e,t),function(){return n._compileComponents(e,null),n._compileModule(e)})},e.prototype._compileModuleAndAllComponents=function(e,t){var n=this;return Dt(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)})}),Ft(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=jd(),o=this._ngModuleCompiler.compile(i,n,r);t=this._interpretOrJit(Dn(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)){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 "+Wt(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);Vd(r);var i=this._metadataResolver.getHostComponentMetadata(r,r.componentFactory.viewDefFactory);n=new Bd(!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||(Vd(e),n=new Bd(!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=jd(),o=this._styleCompiler.compileComponent(i,n);n.template.externalStylesheets.forEach(function(e){var i=t._styleCompiler.compileStyles(jd(),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,yt(o.stylesVar),a),p=this._interpretOrJit(Fn(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,Rn(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(On(e.meta,this._sharedStylesheetCount++),e.outputCtx.statements)[e.stylesVar]},e.prototype._interpretOrJit=function(e,t){return this._compilerConfig.useJit?this._jitEvaluator.evaluateStatements(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 n(e,t){var n=new Id(null,null,null,new Map);new Rd(t).visitAllStatements(e,n);var r={};return n.exports.forEach(function(e){r[e]=n.vars.get(e)}),r}(t,this._reflector)},e}(),Bd=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 Vd(e){if(!e.isComponent)throw new Error("Could not compile '"+dn(e.type)+"' because it is not a component.")}function jd(){return{statements:[],genFilePath:"",importExpr:function(e){return gt({name:dn(e),moduleName:null,runtime:e})},constantPool:new Zt}}
/**
* @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 Ud,Hd=function Hd(){},qd=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=zd(encodeURI(t)),r=zd(e);if(null!=n[Ud.Scheme])return Kd(n);n[Ud.Scheme]=r[Ud.Scheme];for(var i=Ud.Scheme;i<=Ud.Port;i++)null==n[i]&&(n[i]=r[i]);if("/"==n[Ud.Path][0])return Kd(n);var o=r[Ud.Path];null==o&&(o="/");var s=o.lastIndexOf("/");return o=o.substring(0,s+1)+n[Ud.Path],n[Ud.Path]=o,Kd(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=zd(n),o=this._packagePrefix;if(null!=o&&null!=i&&"package"==i[Ud.Scheme]){var s=i[Ud.Path];return(o=o.replace(/\/+$/,""))+"/"+s.replace(/^\/+/,"")}return n},e}(),Wd=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 zd(e){return e.match(Wd)}function Kd(e){var t=e[Ud.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[Ud.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[Ud.Scheme],e[Ud.UserInfo],e[Ud.Domain],e[Ud.Port],t,e[Ud.QueryData],e[Ud.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"}(Ud||(Ud={}));var Qd=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=Jf(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(n){var r=n.template.template,i=n.template.templateUrl,o=Po.fromArray(n.template.interpolation);e.push.apply(e,a(t.messageBundle.updateFromTemplate(r,i,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 au,i=Nd(t),o=new pn,s=new Td(t,o),a=new Vf(t,o,s),u=new cd(s,a),p=new Qc({defaultEncapsulation:E.Emulated,useJit:!1}),l=new Gc({get:function(e){return t.loadResource(e)}},i,r,p),c=new yl,h=new Kh(p,r,new af(u),new Jc(u),new cf(u),s,c,l,console,o,u),f=new If(r,[],{},n);return{extractor:new e(t,a,f,h),staticReflector:u}},e}(),Xd=function(){function e(e){this.directiveMatcher=e}return e.prototype.bind=function(e){if(!e.template)throw new Error("Binding without a template not yet supported");var t=Gd.apply(e.template),n=$d.apply(e.template,this.directiveMatcher),r=n.directives,i=n.bindings,o=n.references,s=Yd.apply(e.template,t);return new Jd(e,r,i,o,s.expressions,s.symbols,s.nestingLevel,s.usedPipes)},e}(),Gd=function(){function e(e){this.parentScope=e,this.namedEntities=new Map,this.childScopes=new Map}return e.apply=function(t){var n=new e;return n.ingest(t),n},e.prototype.ingest=function(e){var t=this;e instanceof Dr?(e.variables.forEach(function(e){return t.visitVariable(e)}),e.children.forEach(function(e){return e.visit(t)})):e.forEach(function(e){return e.visit(t)})},e.prototype.visitElement=function(e){var t=this;e.references.forEach(function(e){return t.visitReference(e)}),e.children.forEach(function(e){return e.visit(t)})},e.prototype.visitTemplate=function(t){var n=this;t.references.forEach(function(e){return n.visitReference(e)});var r=new e(this);r.ingest(t),this.childScopes.set(t,r)},e.prototype.visitVariable=function(e){this.maybeDeclare(e)},e.prototype.visitReference=function(e){this.maybeDeclare(e)},e.prototype.visitContent=function(e){},e.prototype.visitBoundAttribute=function(e){},e.prototype.visitBoundEvent=function(e){},e.prototype.visitBoundText=function(e){},e.prototype.visitText=function(e){},e.prototype.visitTextAttribute=function(e){},e.prototype.visitIcu=function(e){},e.prototype.maybeDeclare=function(e){this.namedEntities.has(e.name)||this.namedEntities.set(e.name,e)},e.prototype.lookup=function(e){return this.namedEntities.has(e)?this.namedEntities.get(e):void 0!==this.parentScope?this.parentScope.lookup(e):null},e.prototype.getChildScope=function(e){var t=this.childScopes.get(e);if(void 0===t)throw new Error("Assertion error: child scope for "+e+" not found");return t},e}(),$d=function(){function e(e,t,n,r){this.matcher=e,this.directives=t,this.bindings=n,this.references=r}return e.apply=function(t,n){var r=new Map,i=new Map,o=new Map;return new e(n,r,i,o).ingest(t),{directives:r,bindings:i,references:o}},e.prototype.ingest=function(e){var t=this;e.forEach(function(e){return e.visit(t)})},e.prototype.visitElement=function(e){this.visitElementOrTemplate(e.name,e)},e.prototype.visitTemplate=function(e){this.visitElementOrTemplate("ng-template",e)},e.prototype.visitElementOrTemplate=function(e,t){var n=this,r=new w;r.setElement(e);var i=co(t);Object.getOwnPropertyNames(i).forEach(function(e){var t=i[e];r.addAttribute(e,t),"class"===e.toLowerCase()&&t.trim().split(/\s+/g).forEach(function(e){return r.addClassName(e)})});var o=[];this.matcher.match(r,function(e,t){return o.push(t)}),o.length>0&&this.directives.set(t,o),t.references.forEach(function(e){var r=null;if(""===e.value.trim())r=o.find(function(e){return e.isComponent})||null;else if(null===(r=o.find(function(t){return null!==t.exportAs&&t.exportAs.some(function(t){return t===e.value})})||null))throw new Error("Assertion error: failed to find directive with exportAs: "+e.value);n.references.set(e,null!==r?{directive:r,node:t}:t)});var s=function(e){var r=o.find(function(t){return t.inputs.hasOwnProperty(e.name)});n.bindings.set(e,void 0!==r?r:t)};t.attributes.forEach(s),t.inputs.forEach(s),t.outputs.forEach(s),t instanceof Dr&&t.templateAttrs.forEach(s),t.children.forEach(function(e){return e.visit(n)})},e.prototype.visitContent=function(e){},e.prototype.visitVariable=function(e){},e.prototype.visitReference=function(e){},e.prototype.visitTextAttribute=function(e){},e.prototype.visitBoundAttribute=function(e){},e.prototype.visitBoundEvent=function(e){},e.prototype.visitBoundAttributeOrEvent=function(e){},e.prototype.visitText=function(e){},e.prototype.visitBoundText=function(e){},e.prototype.visitIcu=function(e){},e}(),Yd=function(e){function t(t,n,r,i,o,s,a){var u=e.call(this)||this;return u.bindings=t,u.symbols=n,u.usedPipes=r,u.nestingLevel=i,u.scope=o,u.template=s,u.level=a,u.pipesUsed=[],u.visitNode=function(e){return e.visit(u)},u}return n(t,e),t.apply=function(e,n){var r=new Map,i=new Map,o=new Map,s=new Set;return new t(r,i,s,o,n,e instanceof Dr?e:null,0).ingest(e),{expressions:r,symbols:i,nestingLevel:o,usedPipes:s}},t.prototype.ingest=function(e){e instanceof Dr?(e.variables.forEach(this.visitNode),e.children.forEach(this.visitNode),this.nestingLevel.set(e,this.level)):e.forEach(this.visitNode)},t.prototype.visitElement=function(e){e.inputs.forEach(this.visitNode),e.outputs.forEach(this.visitNode),e.children.forEach(this.visitNode)},t.prototype.visitTemplate=function(e){e.inputs.forEach(this.visitNode),e.outputs.forEach(this.visitNode),e.templateAttrs.forEach(this.visitNode),e.references.forEach(this.visitNode);var n=this.scope.getChildScope(e);new t(this.bindings,this.symbols,this.usedPipes,this.nestingLevel,n,e,this.level+1).ingest(e)},t.prototype.visitVariable=function(e){null!==this.template&&this.symbols.set(e,this.template)},t.prototype.visitReference=function(e){null!==this.template&&this.symbols.set(e,this.template)},t.prototype.visitText=function(e){},t.prototype.visitContent=function(e){},t.prototype.visitTextAttribute=function(e){},t.prototype.visitIcu=function(e){},t.prototype.visitBoundAttribute=function(e){e.value.visit(this)},t.prototype.visitBoundEvent=function(e){e.handler.visit(this)},t.prototype.visitBoundText=function(e){e.value.visit(this)},t.prototype.visitPipe=function(t,n){return this.usedPipes.add(t.name),e.prototype.visitPipe.call(this,t,n)},t.prototype.visitPropertyRead=function(t,n){return this.maybeMap(n,t,t.name),e.prototype.visitPropertyRead.call(this,t,n)},t.prototype.visitSafePropertyRead=function(t,n){return this.maybeMap(n,t,t.name),e.prototype.visitSafePropertyRead.call(this,t,n)},t.prototype.visitPropertyWrite=function(t,n){return this.maybeMap(n,t,t.name),e.prototype.visitPropertyWrite.call(this,t,n)},t.prototype.visitMethodCall=function(t,n){return this.maybeMap(n,t,t.name),e.prototype.visitMethodCall.call(this,t,n)},t.prototype.visitSafeMethodCall=function(t,n){return this.maybeMap(n,t,t.name),e.prototype.visitSafeMethodCall.call(this,t,n)},t.prototype.maybeMap=function(e,t,n){if(t.receiver instanceof os){var r=this.scope.lookup(n);null!==r&&this.bindings.set(t,r)}},t}(Ns),Jd=function(){function e(e,t,n,r,i,o,s,a){this.target=e,this.directives=t,this.bindings=n,this.references=r,this.exprTargets=i,this.symbols=o,this.nestingLevel=s,this.usedPipes=a}return e.prototype.getDirectivesOfNode=function(e){return this.directives.get(e)||null},e.prototype.getReferenceTarget=function(e){return this.references.get(e)||null},e.prototype.getConsumerOfBinding=function(e){return this.bindings.get(e)||null},e.prototype.getExpressionTarget=function(e){return this.exprTargets.get(e)||null},e.prototype.getTemplateOfSymbol=function(e){return this.symbols.get(e)||null},e.prototype.getNestingLevel=function(e){return this.nestingLevel.get(e)||0},e.prototype.getUsedDirectives=function(){var e=new Set;return this.directives.forEach(function(t){return t.forEach(function(t){return e.add(t)})}),Array.from(e.values())},e.prototype.getUsedPipes=function(){return Array.from(this.usedPipes)},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
*/
zc($t),
/**
* @license
* Copyright Google Inc. All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
/**
* @license
* Copyright Google Inc. All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
/**
* @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=ne,e.CompilerConfig=Qc,e.preserveWhitespacesDefault=Xc,e.isLoweredSymbol=Wh,e.createLoweredSymbol=function Zd(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=on,e.JitCompiler=Ld,e.ConstantPool=Zt,e.DirectiveResolver=Jc,e.PipeResolver=cf,e.NgModuleResolver=af,e.DEFAULT_INTERPOLATION_CONFIG=Mo,e.InterpolationConfig=Po,e.NgModuleCompiler=sf,e.ArrayType=ue,e.AssertNotNull=De,e.DYNAMIC_TYPE=le,e.BinaryOperatorExpr=Ve,e.BuiltinType=se,e.CastExpr=Fe,e.ClassField=et,e.ClassMethod=tt,e.ClassStmt=rt,e.CommaExpr=ze,e.CommentStmt=ot,e.ConditionalExpr=Re,e.DeclareFunctionStmt=$e,e.DeclareVarStmt=Ge,e.Expression=ge,e.ExpressionStatement=Ye,e.ExpressionType=ae,e.ExternalExpr=Ie,e.ExternalReference=ke,e.literalMap=xt,e.FunctionExpr=Be,e.IfStmt=it,e.InstantiateExpr=Me,e.InvokeFunctionExpr=Pe,e.InvokeMethodExpr=Ne,e.JSDocCommentStmt=st,e.LiteralArrayExpr=He,e.LiteralExpr=Ae,e.LiteralMapExpr=We,e.MapType=pe,e.NotExpr=Oe,e.ReadKeyExpr=Ue,e.ReadPropExpr=je,e.ReadVarExpr=Ee,e.ReturnStatement=Je,e.ThrowStmt=ut,e.TryCatchStmt=at,e.Type=ie,e.WrappedNodeExpr=xe,e.WriteKeyExpr=Ce,e.WritePropExpr=be,e.WriteVarExpr=we,e.Statement=Xe,e.TypeofExpr=Se,e.collectExternalReferences=function ev(e){var t=new ft;return t.visitAllStatements(e,null),t.externalReferences},e.EmitterVisitorContext=jo,e.JitEvaluator=zo,e.ViewCompiler=mf,e.findStaticQueryIds=Tf,e.staticViewQueryIds=Nf,e.getParseErrors=function tv(e){return e[jt]||[]},e.isSyntaxError=function nv(e){return e[Vt]},e.syntaxError=Bt,e.Version=Qt,e.TmplAstBoundAttribute=kr,e.TmplAstBoundEvent=Rr,e.TmplAstBoundText=Ar,e.TmplAstContent=Fr,e.TmplAstElement=Or,e.TmplAstReference=Br,e.TmplAstTemplate=Dr,e.TmplAstText=Mr,e.TmplAstTextAttribute=Ir,e.TmplAstVariable=Lr,e.R3Identifiers=Bn,e.compileInjector=Go,e.compileNgModule=Xo,e.compilePipeFromMetadata=Jo,e.makeBindingParser=rc,e.parseTemplate=nc,e.compileBaseDefFromMetadata=hc,e.compileComponentFromMetadata=fc,e.compileDirectiveFromMetadata=cc,e.parseHostBindings=Mc,e.verifyHostBindings=Ac,e.publishFacade=zc,e.VERSION=Kc,e.TextAst=xu,e.BoundTextAst=wu,e.AttrAst=Cu,e.BoundElementPropertyAst=Tu,e.BoundEventAst=Nu,e.ReferenceAst=Pu,e.VariableAst=Mu,e.ElementAst=Au,e.EmbeddedTemplateAst=Iu,e.BoundDirectivePropertyAst=ku,e.DirectiveAst=Ru,e.ProviderAst=Ou,e.NgContentAst=Du,e.NullTemplateVisitor=Fu,e.RecursiveTemplateAstVisitor=Lu,e.templateVisitAll=Bu,e.sanitizeIdentifier=cn,e.identifierName=dn,e.identifierModuleUrl=vn,e.viewClassName=mn,e.rendererTypeName=yn,e.hostViewClassName=gn,e.componentFactoryName=_n,e.tokenName=En,e.tokenReference=Sn,e.CompileStylesheetMetadata=xn,e.CompileTemplateMetadata=wn,e.CompileDirectiveMetadata=Cn,e.CompilePipeMetadata=bn,e.CompileShallowModuleMetadata=Tn,e.CompileNgModuleMetadata=Nn,e.TransitiveCompileNgModuleMetadata=Pn,e.ProviderMeta=An,e.flatten=In,e.templateSourceUrl=Rn,e.sharedStylesheetJitUrl=On,e.ngModuleJitUrl=Dn,e.templateJitUrl=Fn,e.createAotUrlResolver=Nd,e.createAotCompiler=function rv(e,t,n){var r,i=t.translations||"",o=Nd(e),s=new pn,a=new Td(e,s),u=new Vf(e,s,a),p=new cd(a,u,[],[],n);r=t.enableIvy?new au:new Th(new au,i,t.i18nFormat,t.missingTranslation,console);var l=new Qc({defaultEncapsulation:E.Emulated,useJit:!1,missingTranslation:t.missingTranslation,preserveWhitespaces:t.preserveWhitespaces,strictInjectionParameters:t.strictInjectionParameters}),c=new Gc({get:function(t){return e.loadResource(t)}},o,r,l),h=new ol(new qp),f=new yl,d=new Ep(l,p,h,f,r,console,[]),v=new Kh(l,r,new af(p),new Jc(p),new cf(p),a,f,c,console,s,p,n),m=new mf(p),y=new hf(t,p);return{compiler:new Qf(l,t,e,p,v,d,new Pa(o),m,y,new sf(p),new Ah(p,!!t.enableIvy),new pf,a,u),reflector:p}},e.AotCompiler=Qf,e.analyzeNgModules=Yf,e.analyzeAndValidateNgModules=Jf,e.analyzeFile=ed,e.analyzeFileForInjectables=td,e.mergeAnalyzedFiles=nd,e.GeneratedFile=Rf,e.toTypeScript=function iv(e,t){if(void 0===t&&(t=""),!e.stmts)throw new Error("Illegal state: No stmts present on GeneratedFile "+e.genFileUrl);return(new pf).emitStatements(e.genFileUrl,e.stmts,t)},e.formattedError=od,e.isFormattedError=function ov(e){return!!e[id]},e.StaticReflector=cd,e.StaticSymbol=un,e.StaticSymbolCache=pn,e.ResolvedStaticSymbol=Bf,e.StaticSymbolResolver=Vf,e.unescapeIdentifier=jf,e.unwrapResolvedMetadata=Uf,e.AotSummaryResolver=Td,e.AstPath=Aa,e.SummaryResolver=Pd,e.JitSummaryResolver=Md,e.CompileReflector=Hd,e.createUrlResolverWithoutPackagePrefix=function sv(){return new qd},e.createOfflineCompileUrlResolver=function av(){return new qd(".")},e.UrlResolver=qd,e.getUrlScheme=function uv(e){var t=zd(e);return t&&t[Ud.Scheme]||""},e.ResourceLoader=Ic,e.ElementSchemaRegistry=ll,e.Extractor=Qd,e.I18NHtmlParser=Th,e.MessageBundle=If,e.Serializer=vi,e.Xliff=fh,e.Xliff2=yh,e.Xmb=Ti,e.Xtb=Sh,e.DirectiveNormalizer=Gc,e.ParserError=es,e.ParseSpan=ts,e.AST=ns,e.Quote=rs,e.EmptyExpr=is,e.ImplicitReceiver=os,e.Chain=ss,e.Conditional=as,e.PropertyRead=us,e.PropertyWrite=ps,e.SafePropertyRead=ls,e.KeyedRead=cs,e.KeyedWrite=hs,e.BindingPipe=fs,e.LiteralPrimitive=ds,e.LiteralArray=vs,e.LiteralMap=ms,e.Interpolation=ys,e.Binary=gs,e.PrefixNot=_s,e.NonNullAssert=Es,e.MethodCall=Ss,e.SafeMethodCall=xs,e.FunctionCall=ws,e.ASTWithSource=Cs,e.TemplateBinding=bs,e.NullAstVisitor=Ts,e.RecursiveAstVisitor=Ns,e.AstTransformer=Ps,e.AstMemoryEfficientTransformer=Ms,e.visitAstChildren=function pv(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)}})},e.ParsedProperty=As,e.ParsedEvent=Is,e.ParsedVariable=ks,e.BoundElementProperty=Rs,e.Lexer=qp,e.Token=Wp,e.EOF=Qp,e.isIdentifier=$p,e.isQuote=Zp,e.SplitInterpolation=tl,e.TemplateBindingParseResult=nl,e.Parser=ol,e._ParseAST=sl,e.ERROR_COMPONENT_TYPE="ngComponentType",e.CompileMetadataResolver=Kh,e.Text=Ia,e.Expansion=ka,e.ExpansionCase=Ra,e.Attribute=Oa,e.Element=Da,e.Comment=Fa,e.visitAll=La,e.RecursiveVisitor=Va,e.findNode=function lv(e,t){var r=[];return La(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 Da&&(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}(Va)),e),new Aa(r,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
*/,e.HtmlParser=au,e.ParseTreeResult=ru,e.TreeError=nu,e.HtmlTagDefinition=g,e.getHtmlTagDefinition=_,e.splitNsName=u,e.isNgContainer=p,e.isNgContent=l,e.isNgTemplate=c,e.getNsPrefix=h,e.mergeNsAndName=f,e.NAMED_ENTITIES=d,e.NGSP_UNICODE=v,e.debugOutputAstAsTypeScript=uf,e.TypeScriptEmitter=pf,e.ParseLocation=wr,e.ParseSourceFile=Cr,e.ParseSourceSpan=br,e.ParseError=Tr,e.typeSourceSpan=Nr,e.r3JitTypeSourceSpan=Pr,e.DomElementSchemaRegistry=yl,e.CssSelector=w,e.SelectorMatcher=C,e.SelectorListContext=b,e.SelectorContext=T,e.HOST_ATTR=Ca,e.CONTENT_ATTR=ba,e.StylesCompileDependency=Ta,e.CompiledStylesheet=Na,e.StyleCompiler=Pa,e.TemplateParseError=gp,e.TemplateParseResult=_p,e.TemplateParser=Ep,e.splitClasses=Cp,e.createElementCssSelector=Tp,e.removeSummaryDuplicates=Ap,e.isEmptyExpression=Ip,e.compileInjectable=Co,e.R3TargetBinder=Xd,e.R3BoundTarget=Jd,Object.defineProperty(e,"__esModule",{value:!0})});