@angular/language-service 6.1.6 → 6.1.10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,16 +1,16 @@
1
1
  /**
2
- * @license Angular v6.1.6
2
+ * @license Angular v6.1.10
3
3
  * (c) 2010-2018 Google, Inc. https://angular.io/
4
4
  * License: MIT
5
5
  */
6
- var $deferred,$resolved,$provided,$reflect={defineMetadata:function(){},getOwnMetadata:function(){}},Reflect=("undefined"!=typeof global?global:{}).Reflect||{};function $getModule(t){return $provided[t]||require(t)}function define(t,e){$deferred={modules:t,cb:e}}Object.keys($reflect).forEach(function(t){Reflect[t]=Reflect[t]||$reflect[t]}),module.exports=function(t){if($resolved)return $resolved;var e={};return $provided=Object.assign({"reflect-metadata":$reflect},t||{},{exports:e}),$deferred.cb.apply(this,$deferred.modules.map($getModule)),$resolved=e,e},define(["exports","fs","path","typescript"],function(t,e,n,r){"use strict";var i=function(t,e){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)};function o(t,e){function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}var s,a=function(){return(a=Object.assign||function t(e){for(var n,r=1,i=arguments.length;r<i;r++)for(var o in n=arguments[r])Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o]);return e}).apply(this,arguments)};function u(t){var e="function"==typeof Symbol&&t[Symbol.iterator],n=0;return e?e.call(t):{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}}}function c(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var r,i,o=n.call(t),s=[];try{for(;(void 0===e||e-- >0)&&!(r=o.next()).done;)s.push(r.value)}catch(t){i={error:t}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return s}function l(){for(var t=[],e=0;e<arguments.length;e++)t=t.concat(c(arguments[e]));return t}
6
+ var $deferred,$resolved,$provided,$reflect={defineMetadata:function(){},getOwnMetadata:function(){}},Reflect=("undefined"!=typeof global?global:{}).Reflect||{};function $getModule(t){return $provided[t]||require(t)}function define(t,e){$deferred={modules:t,cb:e}}Object.keys($reflect).forEach(function(t){Reflect[t]=Reflect[t]||$reflect[t]}),module.exports=function(t){if($resolved)return $resolved;var e={};return $provided=Object.assign({"reflect-metadata":$reflect},t||{},{exports:e}),$deferred.cb.apply(this,$deferred.modules.map($getModule)),$resolved=e,e},define(["exports","fs","path","typescript"],function(t,e,n,r){"use strict";var i=function(t,e){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)};function o(t,e){function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}var s,a=function(){return(a=Object.assign||function t(e){for(var n,r=1,i=arguments.length;r<i;r++)for(var o in n=arguments[r])Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o]);return e}).apply(this,arguments)};function u(t,e,n,r){var i,o=arguments.length,s=o<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,r);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,n,s):i(e,n))||s);return o>3&&s&&Object.defineProperty(e,n,s),s}function c(t,e){return function(n,r){e(n,r,t)}}function l(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)}function p(t){var e="function"==typeof Symbol&&t[Symbol.iterator],n=0;return e?e.call(t):{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}}}function h(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var r,i,o=n.call(t),s=[];try{for(;(void 0===e||e-- >0)&&!(r=o.next()).done;)s.push(r.value)}catch(t){i={error:t}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return s}function f(){for(var t=[],e=0;e<arguments.length;e++)t=t.concat(h(arguments[e]));return t}
7
7
  /**
8
8
  * @license
9
9
  * Copyright Google Inc. All Rights Reserved.
10
10
  *
11
11
  * Use of this source code is governed by an MIT-style license that can be
12
12
  * found in the LICENSE file at https://angular.io/license
13
- */function p(t){if(":"!=t[0])return[null,t];var e=t.indexOf(":",1);if(-1==e)throw new Error('Unsupported format "'+t+'" expecting ":namespace:name"');return[t.slice(1,e),t.slice(e+1)]}function h(t){return"ng-container"===p(t)[1]}function f(t){return"ng-content"===p(t)[1]}function d(t){return null===t?null:p(t)[0]}function v(t,e){return t?":"+t+":"+e:e}!function(t){t[t.RAW_TEXT=0]="RAW_TEXT",t[t.ESCAPABLE_RAW_TEXT=1]="ESCAPABLE_RAW_TEXT",t[t.PARSABLE_DATA=2]="PARSABLE_DATA"}(s||(s={}));var y={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:"‌"},m="";y.ngsp=m;
13
+ */function d(t){if(":"!=t[0])return[null,t];var e=t.indexOf(":",1);if(-1==e)throw new Error('Unsupported format "'+t+'" expecting ":namespace:name"');return[t.slice(1,e),t.slice(e+1)]}function v(t){return"ng-container"===d(t)[1]}function y(t){return"ng-content"===d(t)[1]}function m(t){return null===t?null:d(t)[0]}function g(t,e){return t?":"+t+":"+e:e}!function(t){t[t.RAW_TEXT=0]="RAW_TEXT",t[t.ESCAPABLE_RAW_TEXT=1]="ESCAPABLE_RAW_TEXT",t[t.PARSABLE_DATA=2]="PARSABLE_DATA"}(s||(s={}));var _={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:"‌"},b="";_.ngsp=b;
14
14
  /**
15
15
  * @license
16
16
  * Copyright Google Inc. All Rights Reserved.
@@ -18,182 +18,182 @@ var $deferred,$resolved,$provided,$reflect={defineMetadata:function(){},getOwnMe
18
18
  * Use of this source code is governed by an MIT-style license that can be
19
19
  * found in the LICENSE file at https://angular.io/license
20
20
  */
21
- var g=function(){function t(t){var e=void 0===t?{}:t,n=e.closedByChildren,r=e.requiredParents,i=e.implicitNamespacePrefix,o=e.contentType,a=void 0===o?s.PARSABLE_DATA:o,u=e.closedByParent,c=void 0!==u&&u,l=e.isVoid,p=void 0!==l&&l,h=e.ignoreFirstLf,f=void 0!==h&&h,d=this;this.closedByChildren={},this.closedByParent=!1,this.canSelfClose=!1,n&&n.length>0&&n.forEach(function(t){return d.closedByChildren[t]=!0}),this.isVoid=p,this.closedByParent=c||p,r&&r.length>0&&(this.requiredParents={},this.parentToAdd=r[0],r.forEach(function(t){return d.requiredParents[t]=!0})),this.implicitNamespacePrefix=i||null,this.contentType=a,this.ignoreFirstLf=f}return t.prototype.requireExtraParent=function(t){if(!this.requiredParents)return!1;if(!t)return!0;var e=t.toLowerCase();return!("template"===e||"ng-template"===t)&&1!=this.requiredParents[e]},t.prototype.isClosedByChild=function(t){return this.isVoid||t.toLowerCase()in this.closedByChildren},t}(),_={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"],requiredParents:["tbody","tfoot","thead"],closedByParent:!0}),td:new g({closedByChildren:["td","th"],closedByParent:!0}),th:new g({closedByChildren:["td","th"],closedByParent:!0}),col:new g({requiredParents:["colgroup"],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:s.RAW_TEXT}),script:new g({contentType:s.RAW_TEXT}),title:new g({contentType:s.ESCAPABLE_RAW_TEXT}),textarea:new g({contentType:s.ESCAPABLE_RAW_TEXT,ignoreFirstLf:!0})},b=new g;function w(t){return _[t.toLowerCase()]||b}
21
+ var w,x,E=function(){function t(t){var e=void 0===t?{}:t,n=e.closedByChildren,r=e.requiredParents,i=e.implicitNamespacePrefix,o=e.contentType,a=void 0===o?s.PARSABLE_DATA:o,u=e.closedByParent,c=void 0!==u&&u,l=e.isVoid,p=void 0!==l&&l,h=e.ignoreFirstLf,f=void 0!==h&&h,d=this;this.closedByChildren={},this.closedByParent=!1,this.canSelfClose=!1,n&&n.length>0&&n.forEach(function(t){return d.closedByChildren[t]=!0}),this.isVoid=p,this.closedByParent=c||p,r&&r.length>0&&(this.requiredParents={},this.parentToAdd=r[0],r.forEach(function(t){return d.requiredParents[t]=!0})),this.implicitNamespacePrefix=i||null,this.contentType=a,this.ignoreFirstLf=f}return t.prototype.requireExtraParent=function(t){if(!this.requiredParents)return!1;if(!t)return!0;var e=t.toLowerCase();return!("template"===e||"ng-template"===t)&&1!=this.requiredParents[e]},t.prototype.isClosedByChild=function(t){return this.isVoid||t.toLowerCase()in this.closedByChildren},t}();function S(t){return x||(w=new E,x={base:new E({isVoid:!0}),meta:new E({isVoid:!0}),area:new E({isVoid:!0}),embed:new E({isVoid:!0}),link:new E({isVoid:!0}),img:new E({isVoid:!0}),input:new E({isVoid:!0}),param:new E({isVoid:!0}),hr:new E({isVoid:!0}),br:new E({isVoid:!0}),source:new E({isVoid:!0}),track:new E({isVoid:!0}),wbr:new E({isVoid:!0}),p:new E({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 E({closedByChildren:["tbody","tfoot"]}),tbody:new E({closedByChildren:["tbody","tfoot"],closedByParent:!0}),tfoot:new E({closedByChildren:["tbody"],closedByParent:!0}),tr:new E({closedByChildren:["tr"],requiredParents:["tbody","tfoot","thead"],closedByParent:!0}),td:new E({closedByChildren:["td","th"],closedByParent:!0}),th:new E({closedByChildren:["td","th"],closedByParent:!0}),col:new E({requiredParents:["colgroup"],isVoid:!0}),svg:new E({implicitNamespacePrefix:"svg"}),math:new E({implicitNamespacePrefix:"math"}),li:new E({closedByChildren:["li"],closedByParent:!0}),dt:new E({closedByChildren:["dt","dd"]}),dd:new E({closedByChildren:["dt","dd"],closedByParent:!0}),rb:new E({closedByChildren:["rb","rt","rtc","rp"],closedByParent:!0}),rt:new E({closedByChildren:["rb","rt","rtc","rp"],closedByParent:!0}),rtc:new E({closedByChildren:["rb","rtc","rp"],closedByParent:!0}),rp:new E({closedByChildren:["rb","rt","rtc","rp"],closedByParent:!0}),optgroup:new E({closedByChildren:["optgroup"],closedByParent:!0}),option:new E({closedByChildren:["option","optgroup"],closedByParent:!0}),pre:new E({ignoreFirstLf:!0}),listing:new E({ignoreFirstLf:!0}),style:new E({contentType:s.RAW_TEXT}),script:new E({contentType:s.RAW_TEXT}),title:new E({contentType:s.ESCAPABLE_RAW_TEXT}),textarea:new E({contentType:s.ESCAPABLE_RAW_TEXT,ignoreFirstLf:!0})}),x[t.toLowerCase()]||w}
22
22
  /**
23
23
  * @license
24
24
  * Copyright Google Inc. All Rights Reserved.
25
25
  *
26
26
  * Use of this source code is governed by an MIT-style license that can be
27
27
  * found in the LICENSE file at https://angular.io/license
28
- */var x,E,S=new RegExp("(\\:not\\()|([-\\w]+)|(?:\\.([-\\w]+))|(?:\\[([-.\\w*]+)(?:=([\"']?)([^\\]\"']*)\\5)?\\])|(\\))|(\\s*,\\s*)","g"),C=function(){function t(){this.element=null,this.classNames=[],this.attrs=[],this.notSelectors=[]}return t.parse=function(e){var n,r=[],i=function(t,e){e.notSelectors.length>0&&!e.element&&0==e.classNames.length&&0==e.attrs.length&&(e.element="*"),t.push(e)},o=new t,s=o,a=!1;for(S.lastIndex=0;n=S.exec(e);){if(n[1]){if(a)throw new Error("Nesting :not is not allowed in a selector");a=!0,s=new t,o.notSelectors.push(s)}if(n[2]&&s.setElement(n[2]),n[3]&&s.addClassName(n[3]),n[4]&&s.addAttribute(n[4],n[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 t}}return i(r,o),r},t.prototype.isElementSelector=function(){return this.hasElementSelector()&&0==this.classNames.length&&0==this.attrs.length&&0===this.notSelectors.length},t.prototype.hasElementSelector=function(){return!!this.element},t.prototype.setElement=function(t){void 0===t&&(t=null),this.element=t},t.prototype.getMatchingElementTemplate=function(){for(var t=this.element||"div",e=this.classNames.length>0?' class="'+this.classNames.join(" ")+'"':"",n="",r=0;r<this.attrs.length;r+=2)n+=" "+this.attrs[r]+(""!==this.attrs[r+1]?'="'+this.attrs[r+1]+'"':"");return w(t).isVoid?"<"+t+e+n+"/>":"<"+t+e+n+"></"+t+">"},t.prototype.getAttrs=function(){var t=[];return this.classNames.length>0&&t.push("class",this.classNames.join(" ")),t.concat(this.attrs)},t.prototype.addAttribute=function(t,e){void 0===e&&(e=""),this.attrs.push(t,e&&e.toLowerCase()||"")},t.prototype.addClassName=function(t){this.classNames.push(t.toLowerCase())},t.prototype.toString=function(){var t=this.element||"";if(this.classNames&&this.classNames.forEach(function(e){return t+="."+e}),this.attrs)for(var e=0;e<this.attrs.length;e+=2){var n=this.attrs[e+1];t+="["+this.attrs[e]+(n?"="+n:"")+"]"}return this.notSelectors.forEach(function(e){return t+=":not("+e+")"}),t},t}(),T=function(){function t(){this._elementMap=new Map,this._elementPartialMap=new Map,this._classMap=new Map,this._classPartialMap=new Map,this._attrValueMap=new Map,this._attrValuePartialMap=new Map,this._listContexts=[]}return t.createNotMatcher=function(e){var n=new t;return n.addSelectables(e,null),n},t.prototype.addSelectables=function(t,e){var n=null;t.length>1&&(n=new P(t),this._listContexts.push(n));for(var r=0;r<t.length;r++)this._addSelectable(t[r],e,n)},t.prototype._addSelectable=function(t,e,n){var r=this,i=t.element,o=t.classNames,s=t.attrs,a=new A(t,e,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 c=o[u];0===s.length&&u===o.length-1?this._addTerminal(r._classMap,c,a):r=this._addPartial(r._classPartialMap,c)}if(s)for(u=0;u<s.length;u+=2){var l=s[u],p=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,p,a)}else{var d=r._attrValuePartialMap,v=d.get(l);v||(v=new Map,d.set(l,v)),r=this._addPartial(v,p)}}},t.prototype._addTerminal=function(t,e,n){var r=t.get(e);r||t.set(e,r=[]),r.push(n)},t.prototype._addPartial=function(e,n){var r=e.get(n);return r||(r=new t,e.set(n,r)),r},t.prototype.match=function(t,e){for(var n=!1,r=t.element,i=t.classNames,o=t.attrs,s=0;s<this._listContexts.length;s++)this._listContexts[s].alreadyMatched=!1;if(n=this._matchTerminal(this._elementMap,r,t,e)||n,n=this._matchPartial(this._elementPartialMap,r,t,e)||n,i)for(s=0;s<i.length;s++){var a=i[s];n=this._matchTerminal(this._classMap,a,t,e)||n,n=this._matchPartial(this._classPartialMap,a,t,e)||n}if(o)for(s=0;s<o.length;s+=2){var u=o[s],c=o[s+1],l=this._attrValueMap.get(u);c&&(n=this._matchTerminal(l,"",t,e)||n),n=this._matchTerminal(l,c,t,e)||n;var p=this._attrValuePartialMap.get(u);c&&(n=this._matchPartial(p,"",t,e)||n),n=this._matchPartial(p,c,t,e)||n}return n},t.prototype._matchTerminal=function(t,e,n,r){if(!t||"string"!=typeof e)return!1;var i=t.get(e)||[],o=t.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},t.prototype._matchPartial=function(t,e,n,r){if(!t||"string"!=typeof e)return!1;var i=t.get(e);return!!i&&i.match(n,r)},t}(),P=function P(t){this.selectors=t,this.alreadyMatched=!1},A=function(){function t(t,e,n){this.selector=t,this.cbContext=e,this.listContext=n,this.notSelectors=t.notSelectors}return t.prototype.finalize=function(t,e){var n=!0;return!(this.notSelectors.length>0)||this.listContext&&this.listContext.alreadyMatched||(n=!T.createNotMatcher(this.notSelectors).match(t,null)),!n||!e||this.listContext&&this.listContext.alreadyMatched||(this.listContext&&(this.listContext.alreadyMatched=!0),e(this.selector,this.cbContext)),n},t}(),N=$("Inject",function(t){return{token:t}}),k=$("InjectionToken",function(t){return{_desc:t,ngInjectableDef:void 0}}),O=$("Attribute",function(t){return{attributeName:t}}),M=$("ContentChildren",function(t,e){return void 0===e&&(e={}),a({selector:t,first:!1,isViewQuery:!1,descendants:!1},e)}),I=$("ContentChild",function(t,e){return void 0===e&&(e={}),a({selector:t,first:!0,isViewQuery:!1,descendants:!0},e)}),R=$("ViewChildren",function(t,e){return void 0===e&&(e={}),a({selector:t,first:!1,isViewQuery:!0,descendants:!0},e)}),D=$("ViewChild",function(t,e){return a({selector:t,first:!0,isViewQuery:!0,descendants:!0},e)}),j=$("Directive",function(t){return void 0===t&&(t={}),t});!function(t){t[t.Emulated=0]="Emulated",t[t.Native=1]="Native",t[t.None=2]="None",t[t.ShadowDom=3]="ShadowDom"}(x||(x={})),function(t){t[t.OnPush=0]="OnPush",t[t.Default=1]="Default"}(E||(E={}));var L,F,V=$("Component",function(t){return void 0===t&&(t={}),a({changeDetection:E.Default},t)}),H=$("Pipe",function(t){return a({pure:!0},t)}),B=$("Input",function(t){return{bindingPropertyName:t}}),q=$("Output",function(t){return{bindingPropertyName:t}}),K=$("HostBinding",function(t){return{hostPropertyName:t}}),U=$("HostListener",function(t,e){return{eventName:t,args:e}}),z=$("NgModule",function(t){return t}),W=$("Injectable",function(t){return void 0===t&&(t={}),t}),Q=$("Optional"),G=$("Self"),X=$("SkipSelf"),Y=$("Host"),Z=Function;function $(t,e){var n=function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];var i=e?e.apply(void 0,l(n)):{};return a({ngMetadataName:t},i)};return n.isTypeOf=function(e){return e&&e.ngMetadataName===t},n.ngMetadataName=t,n}
28
+ */var C,T,P=new RegExp("(\\:not\\()|([-\\w]+)|(?:\\.([-\\w]+))|(?:\\[([-.\\w*]+)(?:=([\"']?)([^\\]\"']*)\\5)?\\])|(\\))|(\\s*,\\s*)","g"),A=function(){function t(){this.element=null,this.classNames=[],this.attrs=[],this.notSelectors=[]}return t.parse=function(e){var n,r=[],i=function(t,e){e.notSelectors.length>0&&!e.element&&0==e.classNames.length&&0==e.attrs.length&&(e.element="*"),t.push(e)},o=new t,s=o,a=!1;for(P.lastIndex=0;n=P.exec(e);){if(n[1]){if(a)throw new Error("Nesting :not is not allowed in a selector");a=!0,s=new t,o.notSelectors.push(s)}if(n[2]&&s.setElement(n[2]),n[3]&&s.addClassName(n[3]),n[4]&&s.addAttribute(n[4],n[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 t}}return i(r,o),r},t.prototype.isElementSelector=function(){return this.hasElementSelector()&&0==this.classNames.length&&0==this.attrs.length&&0===this.notSelectors.length},t.prototype.hasElementSelector=function(){return!!this.element},t.prototype.setElement=function(t){void 0===t&&(t=null),this.element=t},t.prototype.getMatchingElementTemplate=function(){for(var t=this.element||"div",e=this.classNames.length>0?' class="'+this.classNames.join(" ")+'"':"",n="",r=0;r<this.attrs.length;r+=2)n+=" "+this.attrs[r]+(""!==this.attrs[r+1]?'="'+this.attrs[r+1]+'"':"");return S(t).isVoid?"<"+t+e+n+"/>":"<"+t+e+n+"></"+t+">"},t.prototype.getAttrs=function(){var t=[];return this.classNames.length>0&&t.push("class",this.classNames.join(" ")),t.concat(this.attrs)},t.prototype.addAttribute=function(t,e){void 0===e&&(e=""),this.attrs.push(t,e&&e.toLowerCase()||"")},t.prototype.addClassName=function(t){this.classNames.push(t.toLowerCase())},t.prototype.toString=function(){var t=this.element||"";if(this.classNames&&this.classNames.forEach(function(e){return t+="."+e}),this.attrs)for(var e=0;e<this.attrs.length;e+=2){var n=this.attrs[e+1];t+="["+this.attrs[e]+(n?"="+n:"")+"]"}return this.notSelectors.forEach(function(e){return t+=":not("+e+")"}),t},t}(),N=function(){function t(){this._elementMap=new Map,this._elementPartialMap=new Map,this._classMap=new Map,this._classPartialMap=new Map,this._attrValueMap=new Map,this._attrValuePartialMap=new Map,this._listContexts=[]}return t.createNotMatcher=function(e){var n=new t;return n.addSelectables(e,null),n},t.prototype.addSelectables=function(t,e){var n=null;t.length>1&&(n=new k(t),this._listContexts.push(n));for(var r=0;r<t.length;r++)this._addSelectable(t[r],e,n)},t.prototype._addSelectable=function(t,e,n){var r=this,i=t.element,o=t.classNames,s=t.attrs,a=new O(t,e,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 c=o[u];0===s.length&&u===o.length-1?this._addTerminal(r._classMap,c,a):r=this._addPartial(r._classPartialMap,c)}if(s)for(u=0;u<s.length;u+=2){var l=s[u],p=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,p,a)}else{var d=r._attrValuePartialMap,v=d.get(l);v||(v=new Map,d.set(l,v)),r=this._addPartial(v,p)}}},t.prototype._addTerminal=function(t,e,n){var r=t.get(e);r||t.set(e,r=[]),r.push(n)},t.prototype._addPartial=function(e,n){var r=e.get(n);return r||(r=new t,e.set(n,r)),r},t.prototype.match=function(t,e){for(var n=!1,r=t.element,i=t.classNames,o=t.attrs,s=0;s<this._listContexts.length;s++)this._listContexts[s].alreadyMatched=!1;if(n=this._matchTerminal(this._elementMap,r,t,e)||n,n=this._matchPartial(this._elementPartialMap,r,t,e)||n,i)for(s=0;s<i.length;s++){var a=i[s];n=this._matchTerminal(this._classMap,a,t,e)||n,n=this._matchPartial(this._classPartialMap,a,t,e)||n}if(o)for(s=0;s<o.length;s+=2){var u=o[s],c=o[s+1],l=this._attrValueMap.get(u);c&&(n=this._matchTerminal(l,"",t,e)||n),n=this._matchTerminal(l,c,t,e)||n;var p=this._attrValuePartialMap.get(u);c&&(n=this._matchPartial(p,"",t,e)||n),n=this._matchPartial(p,c,t,e)||n}return n},t.prototype._matchTerminal=function(t,e,n,r){if(!t||"string"!=typeof e)return!1;var i=t.get(e)||[],o=t.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},t.prototype._matchPartial=function(t,e,n,r){if(!t||"string"!=typeof e)return!1;var i=t.get(e);return!!i&&i.match(n,r)},t}(),k=function k(t){this.selectors=t,this.alreadyMatched=!1},O=function(){function t(t,e,n){this.selector=t,this.cbContext=e,this.listContext=n,this.notSelectors=t.notSelectors}return t.prototype.finalize=function(t,e){var n=!0;return!(this.notSelectors.length>0)||this.listContext&&this.listContext.alreadyMatched||(n=!N.createNotMatcher(this.notSelectors).match(t,null)),!n||!e||this.listContext&&this.listContext.alreadyMatched||(this.listContext&&(this.listContext.alreadyMatched=!0),e(this.selector,this.cbContext)),n},t}(),M=et("Inject",function(t){return{token:t}}),I=et("InjectionToken",function(t){return{_desc:t,ngInjectableDef:void 0}}),R=et("Attribute",function(t){return{attributeName:t}}),D=et("ContentChildren",function(t,e){return void 0===e&&(e={}),a({selector:t,first:!1,isViewQuery:!1,descendants:!1},e)}),j=et("ContentChild",function(t,e){return void 0===e&&(e={}),a({selector:t,first:!0,isViewQuery:!1,descendants:!0},e)}),L=et("ViewChildren",function(t,e){return void 0===e&&(e={}),a({selector:t,first:!1,isViewQuery:!0,descendants:!0},e)}),F=et("ViewChild",function(t,e){return a({selector:t,first:!0,isViewQuery:!0,descendants:!0},e)}),V=et("Directive",function(t){return void 0===t&&(t={}),t});!function(t){t[t.Emulated=0]="Emulated",t[t.Native=1]="Native",t[t.None=2]="None",t[t.ShadowDom=3]="ShadowDom"}(C||(C={})),function(t){t[t.OnPush=0]="OnPush",t[t.Default=1]="Default"}(T||(T={}));var H,B,q=et("Component",function(t){return void 0===t&&(t={}),a({changeDetection:T.Default},t)}),K=et("Pipe",function(t){return a({pure:!0},t)}),U=et("Input",function(t){return{bindingPropertyName:t}}),z=et("Output",function(t){return{bindingPropertyName:t}}),W=et("HostBinding",function(t){return{hostPropertyName:t}}),Q=et("HostListener",function(t,e){return{eventName:t,args:e}}),G=et("NgModule",function(t){return t}),X=et("Injectable",function(t){return void 0===t&&(t={}),t}),Y=et("Optional"),Z=et("Self"),$=et("SkipSelf"),J=et("Host"),tt=Function;function et(t,e){var n=function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];var i=e?e.apply(void 0,f(n)):{};return a({ngMetadataName:t},i)};return n.isTypeOf=function(e){return e&&e.ngMetadataName===t},n.ngMetadataName=t,n}
29
29
  /**
30
30
  * @license
31
31
  * Copyright Google Inc. All Rights Reserved.
32
32
  *
33
33
  * Use of this source code is governed by an MIT-style license that can be
34
34
  * found in the LICENSE file at https://angular.io/license
35
- */!function(t){t[t.NONE=0]="NONE",t[t.HTML=1]="HTML",t[t.STYLE=2]="STYLE",t[t.SCRIPT=3]="SCRIPT",t[t.URL=4]="URL",t[t.RESOURCE_URL=5]="RESOURCE_URL"}(L||(L={})),function(t){t[t.Error=0]="Error",t[t.Warning=1]="Warning",t[t.Ignore=2]="Ignore"}(F||(F={}));var J=/-+([a-z0-9])/g;function tt(t,e){return et(t,":",e)}function et(t,e,n){var r=t.indexOf(e);return-1==r?n:[t.slice(0,r).trim(),t.slice(r+1).trim()]}function nt(t,e,n){return Array.isArray(t)?e.visitArray(t,n):function r(t){return"object"==typeof t&&null!==t&&Object.getPrototypeOf(t)===ht}(t)?e.visitStringMap(t,n):null==t||"string"==typeof t||"number"==typeof t||"boolean"==typeof t?e.visitPrimitive(t,n):e.visitOther(t,n)}function rt(t){return null!==t&&void 0!==t}function it(t){return void 0===t?null:t}var ot=function(){function t(){}return t.prototype.visitArray=function(t,e){var n=this;return t.map(function(t){return nt(t,n,e)})},t.prototype.visitStringMap=function(t,e){var n=this,r={};return Object.keys(t).forEach(function(i){r[i]=nt(t[i],n,e)}),r},t.prototype.visitPrimitive=function(t,e){return t},t.prototype.visitOther=function(t,e){return t},t}(),st=function(t,e){return yt(t)?t.then(e):e(t)};function at(t){throw new Error("Internal Error: "+t)}function ut(t,e){var n=Error(t);return n[ct]=!0,e&&(n[lt]=e),n}var ct="ngSyntaxError",lt="ngParseErrors";function pt(t){return t.replace(/([.*+?^=!:${}()|[\]\/\\])/g,"\\$1")}var ht=Object.getPrototypeOf({});function ft(t){for(var e="",n=0;n<t.length;n++){var r=t.charCodeAt(n);if(r>=55296&&r<=56319&&t.length>n+1){var i=t.charCodeAt(n+1);i>=56320&&i<=57343&&(n++,r=(r-55296<<10)+i-56320+65536)}r<=127?e+=String.fromCharCode(r):r<=2047?e+=String.fromCharCode(r>>6&31|192,63&r|128):r<=65535?e+=String.fromCharCode(r>>12|224,r>>6&63|128,63&r|128):r<=2097151&&(e+=String.fromCharCode(r>>18&7|240,r>>12&63|128,r>>6&63|128,63&r|128))}return e}function dt(t){if("string"==typeof t)return t;if(t instanceof Array)return"["+t.map(dt).join(", ")+"]";if(null==t)return""+t;if(t.overriddenName)return""+t.overriddenName;if(t.name)return""+t.name;var e=t.toString();if(null==e)return""+e;var n=e.indexOf("\n");return-1===n?e:e.substring(0,n)}function vt(t){return"function"==typeof t&&t.hasOwnProperty("__forward_ref__")?t():t}function yt(t){return!!t&&"function"==typeof t.then}new function mt(t){this.full=t;var e=t.split(".");this.major=e[0],this.minor=e[1],this.patch=e.slice(2).join(".")}("6.1.6");var gt,_t,bt=function(){function t(t,e,n){this.value=t,this.ngContentIndex=e,this.sourceSpan=n}return t.prototype.visit=function(t,e){return t.visitText(this,e)},t}(),wt=function(){function t(t,e,n){this.value=t,this.ngContentIndex=e,this.sourceSpan=n}return t.prototype.visit=function(t,e){return t.visitBoundText(this,e)},t}(),xt=function(){function t(t,e,n){this.name=t,this.value=e,this.sourceSpan=n}return t.prototype.visit=function(t,e){return t.visitAttr(this,e)},t}(),Et=((gt={})[4]=4,gt[1]=1,gt[2]=2,gt[0]=0,gt[3]=3,gt),St=function(){function t(t,e,n,r,i,o){this.name=t,this.type=e,this.securityContext=n,this.value=r,this.unit=i,this.sourceSpan=o,this.isAnimation=4===this.type}return t.fromBoundProperty=function(e){return new t(e.name,Et[e.type],e.securityContext,e.value,e.unit,e.sourceSpan)},t.prototype.visit=function(t,e){return t.visitElementProperty(this,e)},t}(),Ct=function(){function t(e,n,r,i,o){this.name=e,this.target=n,this.phase=r,this.handler=i,this.sourceSpan=o,this.fullName=t.calcFullName(this.name,this.target,this.phase),this.isAnimation=!!this.phase}return t.calcFullName=function(t,e,n){return e?e+":"+t:n?"@"+t+"."+n:t},t.fromParsedEvent=function(e){return new t(e.name,0===e.type?e.targetOrPhase:null,1===e.type?e.targetOrPhase:null,e.handler,e.sourceSpan)},t.prototype.visit=function(t,e){return t.visitEvent(this,e)},t}(),Tt=function(){function t(t,e,n,r){this.name=t,this.value=e,this.originalValue=n,this.sourceSpan=r}return t.prototype.visit=function(t,e){return t.visitReference(this,e)},t}(),Pt=function(){function t(t,e,n){this.name=t,this.value=e,this.sourceSpan=n}return t.fromParsedVariable=function(e){return new t(e.name,e.value,e.sourceSpan)},t.prototype.visit=function(t,e){return t.visitVariable(this,e)},t}(),At=function(){function t(t,e,n,r,i,o,s,a,u,c,l,p,h){this.name=t,this.attrs=e,this.inputs=n,this.outputs=r,this.references=i,this.directives=o,this.providers=s,this.hasViewContainer=a,this.queryMatches=u,this.children=c,this.ngContentIndex=l,this.sourceSpan=p,this.endSourceSpan=h}return t.prototype.visit=function(t,e){return t.visitElement(this,e)},t}(),Nt=function(){function t(t,e,n,r,i,o,s,a,u,c,l){this.attrs=t,this.outputs=e,this.references=n,this.variables=r,this.directives=i,this.providers=o,this.hasViewContainer=s,this.queryMatches=a,this.children=u,this.ngContentIndex=c,this.sourceSpan=l}return t.prototype.visit=function(t,e){return t.visitEmbeddedTemplate(this,e)},t}(),kt=function(){function t(t,e,n,r){this.directiveName=t,this.templateName=e,this.value=n,this.sourceSpan=r}return t.prototype.visit=function(t,e){return t.visitDirectiveProperty(this,e)},t}(),Ot=function(){function t(t,e,n,r,i,o){this.directive=t,this.inputs=e,this.hostProperties=n,this.hostEvents=r,this.contentQueryStartId=i,this.sourceSpan=o}return t.prototype.visit=function(t,e){return t.visitDirective(this,e)},t}(),Mt=function(){function t(t,e,n,r,i,o,s,a){this.token=t,this.multiProvider=e,this.eager=n,this.providers=r,this.providerType=i,this.lifecycleHooks=o,this.sourceSpan=s,this.isModule=a}return t.prototype.visit=function(t,e){return null},t}();
35
+ */!function(t){t[t.NONE=0]="NONE",t[t.HTML=1]="HTML",t[t.STYLE=2]="STYLE",t[t.SCRIPT=3]="SCRIPT",t[t.URL=4]="URL",t[t.RESOURCE_URL=5]="RESOURCE_URL"}(H||(H={})),function(t){t[t.Error=0]="Error",t[t.Warning=1]="Warning",t[t.Ignore=2]="Ignore"}(B||(B={}));var nt=/-+([a-z0-9])/g;function rt(t,e){return it(t,":",e)}function it(t,e,n){var r=t.indexOf(e);return-1==r?n:[t.slice(0,r).trim(),t.slice(r+1).trim()]}function ot(t,e,n){return Array.isArray(t)?e.visitArray(t,n):function r(t){return"object"==typeof t&&null!==t&&Object.getPrototypeOf(t)===vt}(t)?e.visitStringMap(t,n):null==t||"string"==typeof t||"number"==typeof t||"boolean"==typeof t?e.visitPrimitive(t,n):e.visitOther(t,n)}function st(t){return null!==t&&void 0!==t}function at(t){return void 0===t?null:t}var ut=function(){function t(){}return t.prototype.visitArray=function(t,e){var n=this;return t.map(function(t){return ot(t,n,e)})},t.prototype.visitStringMap=function(t,e){var n=this,r={};return Object.keys(t).forEach(function(i){r[i]=ot(t[i],n,e)}),r},t.prototype.visitPrimitive=function(t,e){return t},t.prototype.visitOther=function(t,e){return t},t}(),ct=function(t,e){return _t(t)?t.then(e):e(t)};function lt(t){throw new Error("Internal Error: "+t)}function pt(t,e){var n=Error(t);return n[ht]=!0,e&&(n[ft]=e),n}var ht="ngSyntaxError",ft="ngParseErrors";function dt(t){return t.replace(/([.*+?^=!:${}()|[\]\/\\])/g,"\\$1")}var vt=Object.getPrototypeOf({});function yt(t){for(var e="",n=0;n<t.length;n++){var r=t.charCodeAt(n);if(r>=55296&&r<=56319&&t.length>n+1){var i=t.charCodeAt(n+1);i>=56320&&i<=57343&&(n++,r=(r-55296<<10)+i-56320+65536)}r<=127?e+=String.fromCharCode(r):r<=2047?e+=String.fromCharCode(r>>6&31|192,63&r|128):r<=65535?e+=String.fromCharCode(r>>12|224,r>>6&63|128,63&r|128):r<=2097151&&(e+=String.fromCharCode(r>>18&7|240,r>>12&63|128,r>>6&63|128,63&r|128))}return e}function mt(t){if("string"==typeof t)return t;if(t instanceof Array)return"["+t.map(mt).join(", ")+"]";if(null==t)return""+t;if(t.overriddenName)return""+t.overriddenName;if(t.name)return""+t.name;var e=t.toString();if(null==e)return""+e;var n=e.indexOf("\n");return-1===n?e:e.substring(0,n)}function gt(t){return"function"==typeof t&&t.hasOwnProperty("__forward_ref__")?t():t}function _t(t){return!!t&&"function"==typeof t.then}new function bt(t){this.full=t;var e=t.split(".");this.major=e[0],this.minor=e[1],this.patch=e.slice(2).join(".")}("6.1.10");var wt,xt,Et=function(){function t(t,e,n){this.value=t,this.ngContentIndex=e,this.sourceSpan=n}return t.prototype.visit=function(t,e){return t.visitText(this,e)},t}(),St=function(){function t(t,e,n){this.value=t,this.ngContentIndex=e,this.sourceSpan=n}return t.prototype.visit=function(t,e){return t.visitBoundText(this,e)},t}(),Ct=function(){function t(t,e,n){this.name=t,this.value=e,this.sourceSpan=n}return t.prototype.visit=function(t,e){return t.visitAttr(this,e)},t}(),Tt=((wt={})[4]=4,wt[1]=1,wt[2]=2,wt[0]=0,wt[3]=3,wt),Pt=function(){function t(t,e,n,r,i,o){this.name=t,this.type=e,this.securityContext=n,this.value=r,this.unit=i,this.sourceSpan=o,this.isAnimation=4===this.type}return t.fromBoundProperty=function(e){return new t(e.name,Tt[e.type],e.securityContext,e.value,e.unit,e.sourceSpan)},t.prototype.visit=function(t,e){return t.visitElementProperty(this,e)},t}(),At=function(){function t(e,n,r,i,o){this.name=e,this.target=n,this.phase=r,this.handler=i,this.sourceSpan=o,this.fullName=t.calcFullName(this.name,this.target,this.phase),this.isAnimation=!!this.phase}return t.calcFullName=function(t,e,n){return e?e+":"+t:n?"@"+t+"."+n:t},t.fromParsedEvent=function(e){return new t(e.name,0===e.type?e.targetOrPhase:null,1===e.type?e.targetOrPhase:null,e.handler,e.sourceSpan)},t.prototype.visit=function(t,e){return t.visitEvent(this,e)},t}(),Nt=function(){function t(t,e,n,r){this.name=t,this.value=e,this.originalValue=n,this.sourceSpan=r}return t.prototype.visit=function(t,e){return t.visitReference(this,e)},t}(),kt=function(){function t(t,e,n){this.name=t,this.value=e,this.sourceSpan=n}return t.fromParsedVariable=function(e){return new t(e.name,e.value,e.sourceSpan)},t.prototype.visit=function(t,e){return t.visitVariable(this,e)},t}(),Ot=function(){function t(t,e,n,r,i,o,s,a,u,c,l,p,h){this.name=t,this.attrs=e,this.inputs=n,this.outputs=r,this.references=i,this.directives=o,this.providers=s,this.hasViewContainer=a,this.queryMatches=u,this.children=c,this.ngContentIndex=l,this.sourceSpan=p,this.endSourceSpan=h}return t.prototype.visit=function(t,e){return t.visitElement(this,e)},t}(),Mt=function(){function t(t,e,n,r,i,o,s,a,u,c,l){this.attrs=t,this.outputs=e,this.references=n,this.variables=r,this.directives=i,this.providers=o,this.hasViewContainer=s,this.queryMatches=a,this.children=u,this.ngContentIndex=c,this.sourceSpan=l}return t.prototype.visit=function(t,e){return t.visitEmbeddedTemplate(this,e)},t}(),It=function(){function t(t,e,n,r){this.directiveName=t,this.templateName=e,this.value=n,this.sourceSpan=r}return t.prototype.visit=function(t,e){return t.visitDirectiveProperty(this,e)},t}(),Rt=function(){function t(t,e,n,r,i,o){this.directive=t,this.inputs=e,this.hostProperties=n,this.hostEvents=r,this.contentQueryStartId=i,this.sourceSpan=o}return t.prototype.visit=function(t,e){return t.visitDirective(this,e)},t}(),Dt=function(){function t(t,e,n,r,i,o,s,a){this.token=t,this.multiProvider=e,this.eager=n,this.providers=r,this.providerType=i,this.lifecycleHooks=o,this.sourceSpan=s,this.isModule=a}return t.prototype.visit=function(t,e){return null},t}();
36
36
  /**
37
37
  * @license
38
38
  * Copyright Google Inc. All Rights Reserved.
39
39
  *
40
40
  * Use of this source code is governed by an MIT-style license that can be
41
41
  * found in the LICENSE file at https://angular.io/license
42
- */!function(t){t[t.PublicService=0]="PublicService",t[t.PrivateService=1]="PrivateService",t[t.Component=2]="Component",t[t.Directive=3]="Directive",t[t.Builtin=4]="Builtin"}(_t||(_t={}));var It=function(){function t(t,e,n){this.index=t,this.ngContentIndex=e,this.sourceSpan=n}return t.prototype.visit=function(t,e){return t.visitNgContent(this,e)},t}(),Rt=function(){function t(){}return t.prototype.visitNgContent=function(t,e){},t.prototype.visitEmbeddedTemplate=function(t,e){},t.prototype.visitElement=function(t,e){},t.prototype.visitReference=function(t,e){},t.prototype.visitVariable=function(t,e){},t.prototype.visitEvent=function(t,e){},t.prototype.visitElementProperty=function(t,e){},t.prototype.visitAttr=function(t,e){},t.prototype.visitBoundText=function(t,e){},t.prototype.visitText=function(t,e){},t.prototype.visitDirective=function(t,e){},t.prototype.visitDirectiveProperty=function(t,e){},t}(),Dt=function(t){function e(){return t.call(this)||this}return o(e,t),e.prototype.visitEmbeddedTemplate=function(t,e){return this.visitChildren(e,function(e){e(t.attrs),e(t.references),e(t.variables),e(t.directives),e(t.providers),e(t.children)})},e.prototype.visitElement=function(t,e){return this.visitChildren(e,function(e){e(t.attrs),e(t.inputs),e(t.outputs),e(t.references),e(t.directives),e(t.providers),e(t.children)})},e.prototype.visitDirective=function(t,e){return this.visitChildren(e,function(e){e(t.inputs),e(t.hostProperties),e(t.hostEvents)})},e.prototype.visitChildren=function(t,e){var n=[],r=this;return e(function i(e){e&&e.length&&n.push(jt(r,e,t))}),[].concat.apply([],n)},e}(Rt);function jt(t,e,n){void 0===n&&(n=null);var r=[],i=t.visit?function(e){return t.visit(e,n)||e.visit(t,n)}:function(e){return e.visit(t,n)};return e.forEach(function(t){var e=i(t);e&&r.push(e)}),r}
42
+ */!function(t){t[t.PublicService=0]="PublicService",t[t.PrivateService=1]="PrivateService",t[t.Component=2]="Component",t[t.Directive=3]="Directive",t[t.Builtin=4]="Builtin"}(xt||(xt={}));var jt=function(){function t(t,e,n){this.index=t,this.ngContentIndex=e,this.sourceSpan=n}return t.prototype.visit=function(t,e){return t.visitNgContent(this,e)},t}(),Lt=function(){function t(){}return t.prototype.visitNgContent=function(t,e){},t.prototype.visitEmbeddedTemplate=function(t,e){},t.prototype.visitElement=function(t,e){},t.prototype.visitReference=function(t,e){},t.prototype.visitVariable=function(t,e){},t.prototype.visitEvent=function(t,e){},t.prototype.visitElementProperty=function(t,e){},t.prototype.visitAttr=function(t,e){},t.prototype.visitBoundText=function(t,e){},t.prototype.visitText=function(t,e){},t.prototype.visitDirective=function(t,e){},t.prototype.visitDirectiveProperty=function(t,e){},t}(),Ft=function(t){function e(){return t.call(this)||this}return o(e,t),e.prototype.visitEmbeddedTemplate=function(t,e){return this.visitChildren(e,function(e){e(t.attrs),e(t.references),e(t.variables),e(t.directives),e(t.providers),e(t.children)})},e.prototype.visitElement=function(t,e){return this.visitChildren(e,function(e){e(t.attrs),e(t.inputs),e(t.outputs),e(t.references),e(t.directives),e(t.providers),e(t.children)})},e.prototype.visitDirective=function(t,e){return this.visitChildren(e,function(e){e(t.inputs),e(t.hostProperties),e(t.hostEvents)})},e.prototype.visitChildren=function(t,e){var n=[],r=this;return e(function i(e){e&&e.length&&n.push(Vt(r,e,t))}),[].concat.apply([],n)},e}(Lt);function Vt(t,e,n){void 0===n&&(n=null);var r=[],i=t.visit?function(e){return t.visit(e,n)||e.visit(t,n)}:function(e){return e.visit(t,n)};return e.forEach(function(t){var e=i(t);e&&r.push(e)}),r}
43
43
  /**
44
44
  * @license
45
45
  * Copyright Google Inc. All Rights Reserved.
46
46
  *
47
47
  * Use of this source code is governed by an MIT-style license that can be
48
48
  * found in the LICENSE file at https://angular.io/license
49
- */var Lt=function Lt(t){var e=void 0===t?{}:t,n=e.defaultEncapsulation,r=e.useJit,i=void 0===r||r,o=e.jitDevMode,s=void 0!==o&&o,a=e.missingTranslation,u=void 0===a?null:a,c=e.preserveWhitespaces,l=e.strictInjectionParameters;this.defaultEncapsulation=void 0===n?x.Emulated:n,this.useJit=!!i,this.jitDevMode=!!s,this.missingTranslation=u,this.preserveWhitespaces=Ft(it(c)),this.strictInjectionParameters=!0===l};function Ft(t,e){return void 0===e&&(e=!1),null===t?e:t}
49
+ */var Ht=function Ht(t){var e=void 0===t?{}:t,n=e.defaultEncapsulation,r=e.useJit,i=void 0===r||r,o=e.jitDevMode,s=void 0!==o&&o,a=e.missingTranslation,u=void 0===a?null:a,c=e.preserveWhitespaces,l=e.strictInjectionParameters;this.defaultEncapsulation=void 0===n?C.Emulated:n,this.useJit=!!i,this.jitDevMode=!!s,this.missingTranslation=u,this.preserveWhitespaces=Bt(at(c)),this.strictInjectionParameters=!0===l};function Bt(t,e){return void 0===e&&(e=!1),null===t?e:t}
50
50
  /**
51
51
  * @license
52
52
  * Copyright Google Inc. All Rights Reserved.
53
53
  *
54
54
  * Use of this source code is governed by an MIT-style license that can be
55
55
  * found in the LICENSE file at https://angular.io/license
56
- */var Vt=function(){function t(t,e,n){this.filePath=t,this.name=e,this.members=n}return t.prototype.assertNoMembers=function(){if(this.members.length)throw new Error("Illegal state: symbol without members expected, but got "+JSON.stringify(this)+".")},t}(),Ht=function(){function t(){this.cache=new Map}return t.prototype.get=function(t,e,n){var r='"'+t+'".'+e+((n=n||[]).length?"."+n.join("."):""),i=this.cache.get(r);return i||(i=new Vt(t,e,n),this.cache.set(r,i)),i},t}(),Bt=/^(?:(?:\[([^\]]+)\])|(?:\(([^\)]+)\)))|(\@[-\w]+)$/;function qt(t){return t.replace(/\W/g,"_")}var Kt,Ut=0;function zt(t){if(!t||!t.reference)return null;var e=t.reference;if(e instanceof Vt)return e.name;if(e.__anonymousType)return e.__anonymousType;var n=dt(e);return n.indexOf("(")>=0?(n="anonymous_"+Ut++,e.__anonymousType=n):n=qt(n),n}function Wt(t){return null!=t.value?qt(t.value):zt(t.identifier)}function Qt(t){return null!=t.identifier?t.identifier.reference:t.value}!function(t){t[t.Pipe=0]="Pipe",t[t.Directive=1]="Directive",t[t.NgModule=2]="NgModule",t[t.Injectable=3]="Injectable"}(Kt||(Kt={}));var Gt=function Gt(t){var e=void 0===t?{}:t,n=e.styles,r=e.styleUrls;this.moduleUrl=e.moduleUrl||null,this.styles=te(n),this.styleUrls=te(r)},Xt=function(){function t(t){var e=t.template,n=t.templateUrl,r=t.htmlAst,i=t.styles,o=t.styleUrls,s=t.externalStylesheets,a=t.animations,u=t.ngContentSelectors,c=t.interpolation,l=t.isInline,p=t.preserveWhitespaces;if(this.encapsulation=t.encapsulation,this.template=e,this.templateUrl=n,this.htmlAst=r,this.styles=te(i),this.styleUrls=te(o),this.externalStylesheets=te(s),this.animations=a?function t(e){return e.reduce(function(e,n){var r=Array.isArray(n)?t(n):n;return e.concat(r)},[])}(a):[],this.ngContentSelectors=u||[],c&&2!=c.length)throw new Error("'interpolation' should have a start and an end symbol.");this.interpolation=c,this.isInline=l,this.preserveWhitespaces=p}return t.prototype.toSummary=function(){return{ngContentSelectors:this.ngContentSelectors,encapsulation:this.encapsulation}},t}(),Yt=function(){function t(t){var e=t.type,n=t.isComponent,r=t.selector,i=t.exportAs,o=t.changeDetection,s=t.inputs,a=t.outputs,u=t.hostListeners,c=t.hostProperties,l=t.hostAttributes,p=t.providers,h=t.viewProviders,f=t.queries,d=t.guards,v=t.viewQueries,y=t.entryComponents,m=t.template,g=t.componentViewType,_=t.rendererType,b=t.componentFactory;this.isHost=!!t.isHost,this.type=e,this.isComponent=n,this.selector=r,this.exportAs=i,this.changeDetection=o,this.inputs=s,this.outputs=a,this.hostListeners=u,this.hostProperties=c,this.hostAttributes=l,this.providers=te(p),this.viewProviders=te(h),this.queries=te(f),this.guards=d,this.viewQueries=te(v),this.entryComponents=te(y),this.template=m,this.componentViewType=g,this.rendererType=_,this.componentFactory=b}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,c=e.outputs,l=e.host,p=e.providers,h=e.viewProviders,f=e.queries,d=e.guards,v=e.viewQueries,y=e.entryComponents,m=e.template,g=e.componentViewType,_=e.rendererType,b=e.componentFactory,w={},x={},E={};null!=l&&Object.keys(l).forEach(function(t){var e=l[t],n=t.match(Bt);null===n?E[t]=e:null!=n[1]?x[n[1]]=e:null!=n[2]&&(w[n[2]]=e)});var S={};null!=u&&u.forEach(function(t){var e=tt(t,[t,t]);S[e[0]]=e[1]});var C={};return null!=c&&c.forEach(function(t){var e=tt(t,[t,t]);C[e[0]]=e[1]}),new t({isHost:n,type:r,isComponent:!!i,selector:o,exportAs:s,changeDetection:a,inputs:S,outputs:C,hostListeners:w,hostProperties:x,hostAttributes:E,providers:p,viewProviders:h,queries:f,guards:d,viewQueries:v,entryComponents:y,template:m,componentViewType:g,rendererType:_,componentFactory:b})},t.prototype.toSummary=function(){return{summaryKind:Kt.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}(),Zt=function(){function t(t){var e=t.name,n=t.pure;this.type=t.type,this.name=e,this.pure=!!n}return t.prototype.toSummary=function(){return{summaryKind:Kt.Pipe,type:this.type,name:this.name,pure:this.pure}},t}(),$t=function(){function t(t){var e=t.providers,n=t.declaredDirectives,r=t.exportedDirectives,i=t.declaredPipes,o=t.exportedPipes,s=t.entryComponents,a=t.bootstrapComponents,u=t.importedModules,c=t.exportedModules,l=t.schemas,p=t.transitiveModule,h=t.id;this.type=t.type||null,this.declaredDirectives=te(n),this.exportedDirectives=te(r),this.declaredPipes=te(i),this.exportedPipes=te(o),this.providers=te(e),this.entryComponents=te(s),this.bootstrapComponents=te(a),this.importedModules=te(u),this.exportedModules=te(c),this.schemas=te(l),this.id=h||null,this.transitiveModule=p||null}return t.prototype.toSummary=function(){var t=this.transitiveModule;return{summaryKind:Kt.NgModule,type:this.type,entryComponents:t.entryComponents,providers:t.providers,modules:t.modules,exportedDirectives:t.exportedDirectives,exportedPipes:t.exportedPipes}},t}(),Jt=function(){function t(){this.directivesSet=new Set,this.directives=[],this.exportedDirectivesSet=new Set,this.exportedDirectives=[],this.pipesSet=new Set,this.pipes=[],this.exportedPipesSet=new Set,this.exportedPipes=[],this.modulesSet=new Set,this.modules=[],this.entryComponentsSet=new Set,this.entryComponents=[],this.providers=[]}return t.prototype.addProvider=function(t,e){this.providers.push({provider:t,module:e})},t.prototype.addDirective=function(t){this.directivesSet.has(t.reference)||(this.directivesSet.add(t.reference),this.directives.push(t))},t.prototype.addExportedDirective=function(t){this.exportedDirectivesSet.has(t.reference)||(this.exportedDirectivesSet.add(t.reference),this.exportedDirectives.push(t))},t.prototype.addPipe=function(t){this.pipesSet.has(t.reference)||(this.pipesSet.add(t.reference),this.pipes.push(t))},t.prototype.addExportedPipe=function(t){this.exportedPipesSet.has(t.reference)||(this.exportedPipesSet.add(t.reference),this.exportedPipes.push(t))},t.prototype.addModule=function(t){this.modulesSet.has(t.reference)||(this.modulesSet.add(t.reference),this.modules.push(t))},t.prototype.addEntryComponent=function(t){this.entryComponentsSet.has(t.componentType)||(this.entryComponentsSet.add(t.componentType),this.entryComponents.push(t))},t}();function te(t){return t||[]}var ee=function ee(t,e){var n=e.useClass,r=e.useValue,i=e.useExisting,o=e.useFactory,s=e.deps,a=e.multi;this.token=t,this.useClass=n||null,this.useValue=r,this.useExisting=i,this.useFactory=o||null,this.dependencies=s||null,this.multi=!!a},ne=function(){function t(t,e){void 0===e&&(e=-1),this.path=t,this.position=e}return Object.defineProperty(t.prototype,"empty",{get:function(){return!this.path||!this.path.length},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"head",{get:function(){return this.path[0]},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"tail",{get:function(){return this.path[this.path.length-1]},enumerable:!0,configurable:!0}),t.prototype.parentOf=function(t){return t&&this.path[this.path.indexOf(t)-1]},t.prototype.childOf=function(t){return this.path[this.path.indexOf(t)+1]},t.prototype.first=function(t){for(var e=this.path.length-1;e>=0;e--){var n=this.path[e];if(n instanceof t)return n}},t.prototype.push=function(t){this.path.push(t)},t.prototype.pop=function(){return this.path.pop()},t}(),re=function(){function t(t,e){this.value=t,this.sourceSpan=e}return t.prototype.visit=function(t,e){return t.visitText(this,e)},t}(),ie=function(){function t(t,e,n,r,i){this.switchValue=t,this.type=e,this.cases=n,this.sourceSpan=r,this.switchValueSourceSpan=i}return t.prototype.visit=function(t,e){return t.visitExpansion(this,e)},t}(),oe=function(){function t(t,e,n,r,i){this.value=t,this.expression=e,this.sourceSpan=n,this.valueSourceSpan=r,this.expSourceSpan=i}return t.prototype.visit=function(t,e){return t.visitExpansionCase(this,e)},t}(),se=function(){function t(t,e,n,r){this.name=t,this.value=e,this.sourceSpan=n,this.valueSpan=r}return t.prototype.visit=function(t,e){return t.visitAttribute(this,e)},t}(),ae=function(){function t(t,e,n,r,i,o){void 0===i&&(i=null),void 0===o&&(o=null),this.name=t,this.attrs=e,this.children=n,this.sourceSpan=r,this.startSourceSpan=i,this.endSourceSpan=o}return t.prototype.visit=function(t,e){return t.visitElement(this,e)},t}(),ue=function(){function t(t,e){this.value=t,this.sourceSpan=e}return t.prototype.visit=function(t,e){return t.visitComment(this,e)},t}();function ce(t,e,n){void 0===n&&(n=null);var r=[],i=t.visit?function(e){return t.visit(e,n)||e.visit(t,n)}:function(e){return e.visit(t,n)};return e.forEach(function(t){var e=i(t);e&&r.push(e)}),r}var le=function(){function t(){}return t.prototype.visitElement=function(t,e){this.visitChildren(e,function(e){e(t.attrs),e(t.children)})},t.prototype.visitAttribute=function(t,e){},t.prototype.visitText=function(t,e){},t.prototype.visitComment=function(t,e){},t.prototype.visitExpansion=function(t,e){return this.visitChildren(e,function(e){e(t.cases)})},t.prototype.visitExpansionCase=function(t,e){},t.prototype.visitChildren=function(t,e){var n=[],r=this;return e(function i(e){e&&n.push(ce(r,e,t))}),[].concat.apply([],n)},t}();function pe(t,e){var n=[];return ce(new(function(t){function r(){return null!==t&&t.apply(this,arguments)||this}return o(r,t),r.prototype.visit=function(t,r){var i=function t(e){var n=e.sourceSpan.start.offset,r=e.sourceSpan.end.offset;return e instanceof ae&&(e.endSourceSpan?r=e.endSourceSpan.end.offset:e.children&&e.children.length&&(r=t(e.children[e.children.length-1]).end)),{start:n,end:r}}(t);if(!(i.start<=e&&e<i.end))return!0;n.push(t)},r}(le)),t),new ne(n,e)}
56
+ */var qt=function(){function t(t,e,n){this.filePath=t,this.name=e,this.members=n}return t.prototype.assertNoMembers=function(){if(this.members.length)throw new Error("Illegal state: symbol without members expected, but got "+JSON.stringify(this)+".")},t}(),Kt=function(){function t(){this.cache=new Map}return t.prototype.get=function(t,e,n){var r='"'+t+'".'+e+((n=n||[]).length?"."+n.join("."):""),i=this.cache.get(r);return i||(i=new qt(t,e,n),this.cache.set(r,i)),i},t}(),Ut=/^(?:(?:\[([^\]]+)\])|(?:\(([^\)]+)\)))|(\@[-\w]+)$/;function zt(t){return t.replace(/\W/g,"_")}var Wt,Qt=0;function Gt(t){if(!t||!t.reference)return null;var e=t.reference;if(e instanceof qt)return e.name;if(e.__anonymousType)return e.__anonymousType;var n=mt(e);return n.indexOf("(")>=0?(n="anonymous_"+Qt++,e.__anonymousType=n):n=zt(n),n}function Xt(t){return null!=t.value?zt(t.value):Gt(t.identifier)}function Yt(t){return null!=t.identifier?t.identifier.reference:t.value}!function(t){t[t.Pipe=0]="Pipe",t[t.Directive=1]="Directive",t[t.NgModule=2]="NgModule",t[t.Injectable=3]="Injectable"}(Wt||(Wt={}));var Zt=function Zt(t){var e=void 0===t?{}:t,n=e.styles,r=e.styleUrls;this.moduleUrl=e.moduleUrl||null,this.styles=re(n),this.styleUrls=re(r)},$t=function(){function t(t){var e=t.template,n=t.templateUrl,r=t.htmlAst,i=t.styles,o=t.styleUrls,s=t.externalStylesheets,a=t.animations,u=t.ngContentSelectors,c=t.interpolation,l=t.isInline,p=t.preserveWhitespaces;if(this.encapsulation=t.encapsulation,this.template=e,this.templateUrl=n,this.htmlAst=r,this.styles=re(i),this.styleUrls=re(o),this.externalStylesheets=re(s),this.animations=a?function t(e){return e.reduce(function(e,n){var r=Array.isArray(n)?t(n):n;return e.concat(r)},[])}(a):[],this.ngContentSelectors=u||[],c&&2!=c.length)throw new Error("'interpolation' should have a start and an end symbol.");this.interpolation=c,this.isInline=l,this.preserveWhitespaces=p}return t.prototype.toSummary=function(){return{ngContentSelectors:this.ngContentSelectors,encapsulation:this.encapsulation}},t}(),Jt=function(){function t(t){var e=t.type,n=t.isComponent,r=t.selector,i=t.exportAs,o=t.changeDetection,s=t.inputs,a=t.outputs,u=t.hostListeners,c=t.hostProperties,l=t.hostAttributes,p=t.providers,h=t.viewProviders,f=t.queries,d=t.guards,v=t.viewQueries,y=t.entryComponents,m=t.template,g=t.componentViewType,_=t.rendererType,b=t.componentFactory;this.isHost=!!t.isHost,this.type=e,this.isComponent=n,this.selector=r,this.exportAs=i,this.changeDetection=o,this.inputs=s,this.outputs=a,this.hostListeners=u,this.hostProperties=c,this.hostAttributes=l,this.providers=re(p),this.viewProviders=re(h),this.queries=re(f),this.guards=d,this.viewQueries=re(v),this.entryComponents=re(y),this.template=m,this.componentViewType=g,this.rendererType=_,this.componentFactory=b}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,c=e.outputs,l=e.host,p=e.providers,h=e.viewProviders,f=e.queries,d=e.guards,v=e.viewQueries,y=e.entryComponents,m=e.template,g=e.componentViewType,_=e.rendererType,b=e.componentFactory,w={},x={},E={};null!=l&&Object.keys(l).forEach(function(t){var e=l[t],n=t.match(Ut);null===n?E[t]=e:null!=n[1]?x[n[1]]=e:null!=n[2]&&(w[n[2]]=e)});var S={};null!=u&&u.forEach(function(t){var e=rt(t,[t,t]);S[e[0]]=e[1]});var C={};return null!=c&&c.forEach(function(t){var e=rt(t,[t,t]);C[e[0]]=e[1]}),new t({isHost:n,type:r,isComponent:!!i,selector:o,exportAs:s,changeDetection:a,inputs:S,outputs:C,hostListeners:w,hostProperties:x,hostAttributes:E,providers:p,viewProviders:h,queries:f,guards:d,viewQueries:v,entryComponents:y,template:m,componentViewType:g,rendererType:_,componentFactory:b})},t.prototype.toSummary=function(){return{summaryKind:Wt.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}(),te=function(){function t(t){var e=t.name,n=t.pure;this.type=t.type,this.name=e,this.pure=!!n}return t.prototype.toSummary=function(){return{summaryKind:Wt.Pipe,type:this.type,name:this.name,pure:this.pure}},t}(),ee=function(){function t(t){var e=t.providers,n=t.declaredDirectives,r=t.exportedDirectives,i=t.declaredPipes,o=t.exportedPipes,s=t.entryComponents,a=t.bootstrapComponents,u=t.importedModules,c=t.exportedModules,l=t.schemas,p=t.transitiveModule,h=t.id;this.type=t.type||null,this.declaredDirectives=re(n),this.exportedDirectives=re(r),this.declaredPipes=re(i),this.exportedPipes=re(o),this.providers=re(e),this.entryComponents=re(s),this.bootstrapComponents=re(a),this.importedModules=re(u),this.exportedModules=re(c),this.schemas=re(l),this.id=h||null,this.transitiveModule=p||null}return t.prototype.toSummary=function(){var t=this.transitiveModule;return{summaryKind:Wt.NgModule,type:this.type,entryComponents:t.entryComponents,providers:t.providers,modules:t.modules,exportedDirectives:t.exportedDirectives,exportedPipes:t.exportedPipes}},t}(),ne=function(){function t(){this.directivesSet=new Set,this.directives=[],this.exportedDirectivesSet=new Set,this.exportedDirectives=[],this.pipesSet=new Set,this.pipes=[],this.exportedPipesSet=new Set,this.exportedPipes=[],this.modulesSet=new Set,this.modules=[],this.entryComponentsSet=new Set,this.entryComponents=[],this.providers=[]}return t.prototype.addProvider=function(t,e){this.providers.push({provider:t,module:e})},t.prototype.addDirective=function(t){this.directivesSet.has(t.reference)||(this.directivesSet.add(t.reference),this.directives.push(t))},t.prototype.addExportedDirective=function(t){this.exportedDirectivesSet.has(t.reference)||(this.exportedDirectivesSet.add(t.reference),this.exportedDirectives.push(t))},t.prototype.addPipe=function(t){this.pipesSet.has(t.reference)||(this.pipesSet.add(t.reference),this.pipes.push(t))},t.prototype.addExportedPipe=function(t){this.exportedPipesSet.has(t.reference)||(this.exportedPipesSet.add(t.reference),this.exportedPipes.push(t))},t.prototype.addModule=function(t){this.modulesSet.has(t.reference)||(this.modulesSet.add(t.reference),this.modules.push(t))},t.prototype.addEntryComponent=function(t){this.entryComponentsSet.has(t.componentType)||(this.entryComponentsSet.add(t.componentType),this.entryComponents.push(t))},t}();function re(t){return t||[]}var ie=function ie(t,e){var n=e.useClass,r=e.useValue,i=e.useExisting,o=e.useFactory,s=e.deps,a=e.multi;this.token=t,this.useClass=n||null,this.useValue=r,this.useExisting=i,this.useFactory=o||null,this.dependencies=s||null,this.multi=!!a},oe=function(){function t(t,e){void 0===e&&(e=-1),this.path=t,this.position=e}return Object.defineProperty(t.prototype,"empty",{get:function(){return!this.path||!this.path.length},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"head",{get:function(){return this.path[0]},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"tail",{get:function(){return this.path[this.path.length-1]},enumerable:!0,configurable:!0}),t.prototype.parentOf=function(t){return t&&this.path[this.path.indexOf(t)-1]},t.prototype.childOf=function(t){return this.path[this.path.indexOf(t)+1]},t.prototype.first=function(t){for(var e=this.path.length-1;e>=0;e--){var n=this.path[e];if(n instanceof t)return n}},t.prototype.push=function(t){this.path.push(t)},t.prototype.pop=function(){return this.path.pop()},t}(),se=function(){function t(t,e){this.value=t,this.sourceSpan=e}return t.prototype.visit=function(t,e){return t.visitText(this,e)},t}(),ae=function(){function t(t,e,n,r,i){this.switchValue=t,this.type=e,this.cases=n,this.sourceSpan=r,this.switchValueSourceSpan=i}return t.prototype.visit=function(t,e){return t.visitExpansion(this,e)},t}(),ue=function(){function t(t,e,n,r,i){this.value=t,this.expression=e,this.sourceSpan=n,this.valueSourceSpan=r,this.expSourceSpan=i}return t.prototype.visit=function(t,e){return t.visitExpansionCase(this,e)},t}(),ce=function(){function t(t,e,n,r){this.name=t,this.value=e,this.sourceSpan=n,this.valueSpan=r}return t.prototype.visit=function(t,e){return t.visitAttribute(this,e)},t}(),le=function(){function t(t,e,n,r,i,o){void 0===i&&(i=null),void 0===o&&(o=null),this.name=t,this.attrs=e,this.children=n,this.sourceSpan=r,this.startSourceSpan=i,this.endSourceSpan=o}return t.prototype.visit=function(t,e){return t.visitElement(this,e)},t}(),pe=function(){function t(t,e){this.value=t,this.sourceSpan=e}return t.prototype.visit=function(t,e){return t.visitComment(this,e)},t}();function he(t,e,n){void 0===n&&(n=null);var r=[],i=t.visit?function(e){return t.visit(e,n)||e.visit(t,n)}:function(e){return e.visit(t,n)};return e.forEach(function(t){var e=i(t);e&&r.push(e)}),r}var fe=function(){function t(){}return t.prototype.visitElement=function(t,e){this.visitChildren(e,function(e){e(t.attrs),e(t.children)})},t.prototype.visitAttribute=function(t,e){},t.prototype.visitText=function(t,e){},t.prototype.visitComment=function(t,e){},t.prototype.visitExpansion=function(t,e){return this.visitChildren(e,function(e){e(t.cases)})},t.prototype.visitExpansionCase=function(t,e){},t.prototype.visitChildren=function(t,e){var n=[],r=this;return e(function i(e){e&&n.push(he(r,e,t))}),[].concat.apply([],n)},t}();function de(t,e){var n=[];return he(new(function(t){function r(){return null!==t&&t.apply(this,arguments)||this}return o(r,t),r.prototype.visit=function(t,r){var i=function t(e){var n=e.sourceSpan.start.offset,r=e.sourceSpan.end.offset;return e instanceof le&&(e.endSourceSpan?r=e.endSourceSpan.end.offset:e.children&&e.children.length&&(r=t(e.children[e.children.length-1]).end)),{start:n,end:r}}(t);if(!(i.start<=e&&e<i.end))return!0;n.push(t)},r}(fe)),t),new oe(n,e)}
57
57
  /**
58
58
  * @license
59
59
  * Copyright Google Inc. All Rights Reserved.
60
60
  *
61
61
  * Use of this source code is governed by an MIT-style license that can be
62
62
  * found in the LICENSE file at https://angular.io/license
63
- */function he(t,e){if(null!=e){if(!Array.isArray(e))throw new Error("Expected '"+t+"' to be an array of strings.");for(var n=0;n<e.length;n+=1)if("string"!=typeof e[n])throw new Error("Expected '"+t+"' to be an array of strings.")}}var fe=[/^\s*$/,/[<>]/,/^[{}]$/,/&(#|[a-z])/i,/^\/\//];function de(t,e){if(!(null==e||Array.isArray(e)&&2==e.length))throw new Error("Expected '"+t+"' to be an array, [start, end].");if(null!=e){var n=e[0],r=e[1];fe.forEach(function(t){if(t.test(n)||t.test(r))throw new Error("['"+n+"', '"+r+"'] contains unusable interpolation symbol.")})}}
63
+ */function ve(t,e){if(null!=e){if(!Array.isArray(e))throw new Error("Expected '"+t+"' to be an array of strings.");for(var n=0;n<e.length;n+=1)if("string"!=typeof e[n])throw new Error("Expected '"+t+"' to be an array of strings.")}}var ye=[/^\s*$/,/[<>]/,/^[{}]$/,/&(#|[a-z])/i,/^\/\//];function me(t,e){if(!(null==e||Array.isArray(e)&&2==e.length))throw new Error("Expected '"+t+"' to be an array, [start, end].");if(null!=e){var n=e[0],r=e[1];ye.forEach(function(t){if(t.test(n)||t.test(r))throw new Error("['"+n+"', '"+r+"'] contains unusable interpolation symbol.")})}}
64
64
  /**
65
65
  * @license
66
66
  * Copyright Google Inc. All Rights Reserved.
67
67
  *
68
68
  * Use of this source code is governed by an MIT-style license that can be
69
69
  * found in the LICENSE file at https://angular.io/license
70
- */var ve=function(){function t(t,e){this.start=t,this.end=e}return t.fromArray=function(e){return e?(de("interpolation",e),new t(e[0],e[1])):ye},t}(),ye=new ve("{{","}}"),me=function me(t,e){this.style=t,this.styleUrls=e};function ge(t){if(null==t||0===t.length||"/"==t[0])return!1;var e=t.match(xe);return null===e||"package"==e[1]||"asset"==e[1]}var _e,be=/@import\s+(?:url\()?\s*(?:(?:['"]([^'"]*))|([^;\)\s]*))[^;]*;?/g,we=/\/\*(?!#\s*(?:sourceURL|sourceMappingURL)=)[\s\S]+?\*\//g,xe=/^([^:/?#]+):/,Ee="select",Se="link",Ce="rel",Te="href",Pe="stylesheet",Ae="style",Ne="script",ke="ngNonBindable",Oe="ngProjectAs";function Me(t){var e=null,n=null,r=null,i=!1,o="";t.attrs.forEach(function(t){var s=t.name.toLowerCase();s==Ee?e=t.value:s==Te?n=t.value:s==Ce?r=t.value:t.name==ke?i=!0:t.name==Oe&&t.value.length>0&&(o=t.value)}),e=function s(t){return null===t||0===t.length?"*":t}
70
+ */var ge=function(){function t(t,e){this.start=t,this.end=e}return t.fromArray=function(e){return e?(me("interpolation",e),new t(e[0],e[1])):_e},t}(),_e=new ge("{{","}}"),be=function be(t,e){this.style=t,this.styleUrls=e};function we(t){if(null==t||0===t.length||"/"==t[0])return!1;var e=t.match(Ce);return null===e||"package"==e[1]||"asset"==e[1]}var xe,Ee=/@import\s+(?:url\()?\s*(?:(?:['"]([^'"]*))|([^;\)\s]*))[^;]*;?/g,Se=/\/\*(?!#\s*(?:sourceURL|sourceMappingURL)=)[\s\S]+?\*\//g,Ce=/^([^:/?#]+):/,Te="select",Pe="link",Ae="rel",Ne="href",ke="stylesheet",Oe="style",Me="script",Ie="ngNonBindable",Re="ngProjectAs";function De(t){var e=null,n=null,r=null,i=!1,o="";t.attrs.forEach(function(t){var s=t.name.toLowerCase();s==Te?e=t.value:s==Ne?n=t.value:s==Ae?r=t.value:t.name==Ie?i=!0:t.name==Re&&t.value.length>0&&(o=t.value)}),e=function s(t){return null===t||0===t.length?"*":t}
71
71
  /**
72
72
  * @license
73
73
  * Copyright Google Inc. All Rights Reserved.
74
74
  *
75
75
  * Use of this source code is governed by an MIT-style license that can be
76
76
  * found in the LICENSE file at https://angular.io/license
77
- */(e);var a=t.name.toLowerCase(),u=_e.OTHER;return f(a)?u=_e.NG_CONTENT:a==Ae?u=_e.STYLE:a==Ne?u=_e.SCRIPT:a==Se&&r==Pe&&(u=_e.STYLESHEET),new Ie(u,e,n,i,o)}!function(t){t[t.NG_CONTENT=0]="NG_CONTENT",t[t.STYLE=1]="STYLE",t[t.STYLESHEET=2]="STYLESHEET",t[t.SCRIPT=3]="SCRIPT",t[t.OTHER=4]="OTHER"}(_e||(_e={}));var Ie=function Ie(t,e,n,r,i){this.type=t,this.selectAttr=e,this.hrefAttr=n,this.nonBindable=r,this.projectAs=i},Re=function(){function t(t,e,n,r){this._resourceLoader=t,this._urlResolver=e,this._htmlParser=n,this._config=r,this._resourceLoaderCache=new Map}return t.prototype.clearCache=function(){this._resourceLoaderCache.clear()},t.prototype.clearCacheFor=function(t){var e=this;if(t.isComponent){var n=t.template;this._resourceLoaderCache.delete(n.templateUrl),n.externalStylesheets.forEach(function(t){e._resourceLoaderCache.delete(t.moduleUrl)})}},t.prototype._fetch=function(t){var e=this._resourceLoaderCache.get(t);return e||(e=this._resourceLoader.get(t),this._resourceLoaderCache.set(t,e)),e},t.prototype.normalizeTemplate=function(t){var e=this;if(rt(t.template)){if(rt(t.templateUrl))throw ut("'"+dt(t.componentType)+"' component cannot define both template and templateUrl");if("string"!=typeof t.template)throw ut("The template specified for component "+dt(t.componentType)+" is not a string")}else{if(!rt(t.templateUrl))throw ut("No template specified for component "+dt(t.componentType));if("string"!=typeof t.templateUrl)throw ut("The templateUrl specified for component "+dt(t.componentType)+" is not a string")}if(rt(t.preserveWhitespaces)&&"boolean"!=typeof t.preserveWhitespaces)throw ut("The preserveWhitespaces option for component "+dt(t.componentType)+" must be a boolean");return st(this._preParseTemplate(t),function(n){return e._normalizeTemplateMetadata(t,n)})},t.prototype._preParseTemplate=function(t){var e,n,r=this;return null!=t.template?(e=t.template,n=t.moduleUrl):(n=this._urlResolver.resolve(t.moduleUrl,t.templateUrl),e=this._fetch(n)),st(e,function(e){return r._preparseLoadedTemplate(t,e,n)})},t.prototype._preparseLoadedTemplate=function(t,e,n){var r=!!t.template,i=ve.fromArray(t.interpolation),o=this._htmlParser.parse(e,function s(t,e,n){var r;return r=n.isInline?e.type.reference instanceof Vt?e.type.reference.filePath+"."+e.type.reference.name+".html":zt(t)+"/"+zt(e.type)+".html":n.templateUrl,e.type.reference instanceof Vt?r:function i(t){return t.replace(/(\w+:\/\/[\w:-]+)?(\/+)?/,"ng:///")}(r)}
77
+ */(e);var a=t.name.toLowerCase(),u=xe.OTHER;return y(a)?u=xe.NG_CONTENT:a==Oe?u=xe.STYLE:a==Me?u=xe.SCRIPT:a==Pe&&r==ke&&(u=xe.STYLESHEET),new je(u,e,n,i,o)}!function(t){t[t.NG_CONTENT=0]="NG_CONTENT",t[t.STYLE=1]="STYLE",t[t.STYLESHEET=2]="STYLESHEET",t[t.SCRIPT=3]="SCRIPT",t[t.OTHER=4]="OTHER"}(xe||(xe={}));var je=function je(t,e,n,r,i){this.type=t,this.selectAttr=e,this.hrefAttr=n,this.nonBindable=r,this.projectAs=i},Le=function(){function t(t,e,n,r){this._resourceLoader=t,this._urlResolver=e,this._htmlParser=n,this._config=r,this._resourceLoaderCache=new Map}return t.prototype.clearCache=function(){this._resourceLoaderCache.clear()},t.prototype.clearCacheFor=function(t){var e=this;if(t.isComponent){var n=t.template;this._resourceLoaderCache.delete(n.templateUrl),n.externalStylesheets.forEach(function(t){e._resourceLoaderCache.delete(t.moduleUrl)})}},t.prototype._fetch=function(t){var e=this._resourceLoaderCache.get(t);return e||(e=this._resourceLoader.get(t),this._resourceLoaderCache.set(t,e)),e},t.prototype.normalizeTemplate=function(t){var e=this;if(st(t.template)){if(st(t.templateUrl))throw pt("'"+mt(t.componentType)+"' component cannot define both template and templateUrl");if("string"!=typeof t.template)throw pt("The template specified for component "+mt(t.componentType)+" is not a string")}else{if(!st(t.templateUrl))throw pt("No template specified for component "+mt(t.componentType));if("string"!=typeof t.templateUrl)throw pt("The templateUrl specified for component "+mt(t.componentType)+" is not a string")}if(st(t.preserveWhitespaces)&&"boolean"!=typeof t.preserveWhitespaces)throw pt("The preserveWhitespaces option for component "+mt(t.componentType)+" must be a boolean");return ct(this._preParseTemplate(t),function(n){return e._normalizeTemplateMetadata(t,n)})},t.prototype._preParseTemplate=function(t){var e,n,r=this;return null!=t.template?(e=t.template,n=t.moduleUrl):(n=this._urlResolver.resolve(t.moduleUrl,t.templateUrl),e=this._fetch(n)),ct(e,function(e){return r._preparseLoadedTemplate(t,e,n)})},t.prototype._preparseLoadedTemplate=function(t,e,n){var r=!!t.template,i=ge.fromArray(t.interpolation),o=this._htmlParser.parse(e,function s(t,e,n){var r;return r=n.isInline?e.type.reference instanceof qt?e.type.reference.filePath+"."+e.type.reference.name+".html":Gt(t)+"/"+Gt(e.type)+".html":n.templateUrl,e.type.reference instanceof qt?r:function i(t){return t.replace(/(\w+:\/\/[\w:-]+)?(\/+)?/,"ng:///")}(r)}
78
78
  /**
79
79
  * @license
80
80
  * Copyright Google Inc. All Rights Reserved.
81
81
  *
82
82
  * Use of this source code is governed by an MIT-style license that can be
83
83
  * found in the LICENSE file at https://angular.io/license
84
- */({reference:t.ngModuleType},{type:{reference:t.componentType}},{isInline:r,templateUrl:n}),!0,i);if(o.errors.length>0)throw ut("Template parse errors:\n"+o.errors.join("\n"));var a=this._normalizeStylesheet(new Gt({styles:t.styles,moduleUrl:t.moduleUrl})),u=new De;ce(u,o.rootNodes);var c=this._normalizeStylesheet(new Gt({styles:u.styles,styleUrls:u.styleUrls,moduleUrl:n}));return{template:e,templateUrl:n,isInline:r,htmlAst:o,styles:a.styles.concat(c.styles),inlineStyleUrls:a.styleUrls.concat(c.styleUrls),styleUrls:this._normalizeStylesheet(new Gt({styleUrls:t.styleUrls,moduleUrl:t.moduleUrl})).styleUrls,ngContentSelectors:u.ngContentSelectors}},t.prototype._normalizeTemplateMetadata=function(t,e){var n=this;return st(this._loadMissingExternalStylesheets(e.styleUrls.concat(e.inlineStyleUrls)),function(r){return n._normalizeLoadedTemplateMetadata(t,e,r)})},t.prototype._normalizeLoadedTemplateMetadata=function(t,e,n){var r=this,i=l(e.styles);this._inlineStyles(e.inlineStyleUrls,n,i);var o=e.styleUrls,s=o.map(function(t){var e=n.get(t),i=l(e.styles);return r._inlineStyles(e.styleUrls,n,i),new Gt({moduleUrl:t,styles:i})}),a=t.encapsulation;return null==a&&(a=this._config.defaultEncapsulation),a===x.Emulated&&0===i.length&&0===o.length&&(a=x.None),new Xt({encapsulation:a,template:e.template,templateUrl:e.templateUrl,htmlAst:e.htmlAst,styles:i,styleUrls:o,ngContentSelectors:e.ngContentSelectors,animations:t.animations,interpolation:t.interpolation,isInline:e.isInline,externalStylesheets:s,preserveWhitespaces:Ft(t.preserveWhitespaces,this._config.preserveWhitespaces)})},t.prototype._inlineStyles=function(t,e,n){var r=this;t.forEach(function(t){var i=e.get(t);i.styles.forEach(function(t){return n.push(t)}),r._inlineStyles(i.styleUrls,e,n)})},t.prototype._loadMissingExternalStylesheets=function(t,e){var n,r=this;return void 0===e&&(e=new Map),st((n=t.filter(function(t){return!e.has(t)}).map(function(t){return st(r._fetch(t),function(n){var i=r._normalizeStylesheet(new Gt({styles:[n],moduleUrl:t}));return e.set(t,i),r._loadMissingExternalStylesheets(i.styleUrls,e)})})).some(yt)?Promise.all(n):n,function(t){return e})},t.prototype._normalizeStylesheet=function(t){var e=this,n=t.moduleUrl,r=t.styleUrls.filter(ge).map(function(t){return e._urlResolver.resolve(n,t)}),i=t.styles.map(function(t){var i=function o(t,e,n){var r=[],i=n.replace(we,"").replace(be,function(){for(var n=[],i=0;i<arguments.length;i++)n[i]=arguments[i];var o=n[1]||n[2];return ge(o)?(r.push(t.resolve(e,o)),""):n[0]});return new me(i,r)}(e._urlResolver,n,t);return r.push.apply(r,l(i.styleUrls)),i.style});return new Gt({styles:i,styleUrls:r,moduleUrl:n})},t}(),De=function(){function t(){this.ngContentSelectors=[],this.styles=[],this.styleUrls=[],this.ngNonBindableStackCount=0}return t.prototype.visitElement=function(t,e){var n=Me(t);switch(n.type){case _e.NG_CONTENT:0===this.ngNonBindableStackCount&&this.ngContentSelectors.push(n.selectAttr);break;case _e.STYLE:var r="";t.children.forEach(function(t){t instanceof re&&(r+=t.value)}),this.styles.push(r);break;case _e.STYLESHEET:this.styleUrls.push(n.hrefAttr)}return n.nonBindable&&this.ngNonBindableStackCount++,ce(this,t.children),n.nonBindable&&this.ngNonBindableStackCount--,null},t.prototype.visitExpansion=function(t,e){ce(this,t.cases)},t.prototype.visitExpansionCase=function(t,e){ce(this,t.expression)},t.prototype.visitComment=function(t,e){return null},t.prototype.visitAttribute=function(t,e){return null},t.prototype.visitText=function(t,e){return null},t}(),je=[D,R,I,M],Le=function(){function t(t){this._reflector=t}return t.prototype.isDirective=function(t){var e=this._reflector.annotations(vt(t));return e&&e.some(Fe)},t.prototype.resolve=function(t,e){void 0===e&&(e=!0);var n=this._reflector.annotations(vt(t));if(n){var r=Ve(n,Fe);if(r){var i=this._reflector.propMetadata(t),o=this._reflector.guards(t);return this._mergeWithPropertyMetadata(r,i,o,t)}}if(e)throw new Error("No Directive annotation found on "+dt(t));return null},t.prototype._mergeWithPropertyMetadata=function(t,e,n,r){var i=[],o=[],s={},a={};return Object.keys(e).forEach(function(t){var n=Ve(e[t],function(t){return B.isTypeOf(t)});n&&i.push(n.bindingPropertyName?t+": "+n.bindingPropertyName:t);var r=Ve(e[t],function(t){return q.isTypeOf(t)});r&&o.push(r.bindingPropertyName?t+": "+r.bindingPropertyName:t),e[t].filter(function(t){return K.isTypeOf(t)}).forEach(function(e){if(e.hostPropertyName){var n=e.hostPropertyName[0];if("("===n)throw new Error("@HostBinding can not bind to events. Use @HostListener instead.");if("["===n)throw new Error("@HostBinding parameter should be a property name, 'class.<name>', or 'attr.<name>'.");s["["+e.hostPropertyName+"]"]=t}else s["["+t+"]"]=t}),e[t].filter(function(t){return U.isTypeOf(t)}).forEach(function(e){s["("+e.eventName+")"]=t+"("+(e.args||[]).join(",")+")"});var u=Ve(e[t],function(t){return je.some(function(e){return e.isTypeOf(t)})});u&&(a[t]=u)}),this._merge(t,i,o,s,a,n,r)},t.prototype._extractPublicName=function(t){return tt(t,[null,t])[1].trim()},t.prototype._dedupeBindings=function(t){for(var e=new Set,n=new Set,r=[],i=t.length-1;i>=0;i--){var o=t[i],s=this._extractPublicName(o);n.add(s),e.has(s)||(e.add(s),r.push(o))}return r.reverse()},t.prototype._merge=function(t,e,n,r,i,o,s){var u=this._dedupeBindings(t.inputs?t.inputs.concat(e):e),c=this._dedupeBindings(t.outputs?t.outputs.concat(n):n),l=t.host?a({},t.host,r):r,p=t.queries?a({},t.queries,i):i;return V.isTypeOf(t)?V({selector:t.selector,inputs:u,outputs:c,host:l,exportAs:t.exportAs,moduleId:t.moduleId,queries:p,changeDetection:t.changeDetection,providers:t.providers,viewProviders:t.viewProviders,entryComponents:t.entryComponents,template:t.template,templateUrl:t.templateUrl,styles:t.styles,styleUrls:t.styleUrls,encapsulation:t.encapsulation,animations:t.animations,interpolation:t.interpolation,preserveWhitespaces:t.preserveWhitespaces}):j({selector:t.selector,inputs:u,outputs:c,host:l,exportAs:t.exportAs,queries:p,providers:t.providers,guards:o})},t}();function Fe(t){return j.isTypeOf(t)||V.isTypeOf(t)}function Ve(t,e){for(var n=t.length-1;n>=0;n--)if(e(t[n]))return t[n];return null}
84
+ */({reference:t.ngModuleType},{type:{reference:t.componentType}},{isInline:r,templateUrl:n}),!0,i);if(o.errors.length>0)throw pt("Template parse errors:\n"+o.errors.join("\n"));var a=this._normalizeStylesheet(new Zt({styles:t.styles,moduleUrl:t.moduleUrl})),u=new Fe;he(u,o.rootNodes);var c=this._normalizeStylesheet(new Zt({styles:u.styles,styleUrls:u.styleUrls,moduleUrl:n}));return{template:e,templateUrl:n,isInline:r,htmlAst:o,styles:a.styles.concat(c.styles),inlineStyleUrls:a.styleUrls.concat(c.styleUrls),styleUrls:this._normalizeStylesheet(new Zt({styleUrls:t.styleUrls,moduleUrl:t.moduleUrl})).styleUrls,ngContentSelectors:u.ngContentSelectors}},t.prototype._normalizeTemplateMetadata=function(t,e){var n=this;return ct(this._loadMissingExternalStylesheets(e.styleUrls.concat(e.inlineStyleUrls)),function(r){return n._normalizeLoadedTemplateMetadata(t,e,r)})},t.prototype._normalizeLoadedTemplateMetadata=function(t,e,n){var r=this,i=f(e.styles);this._inlineStyles(e.inlineStyleUrls,n,i);var o=e.styleUrls,s=o.map(function(t){var e=n.get(t),i=f(e.styles);return r._inlineStyles(e.styleUrls,n,i),new Zt({moduleUrl:t,styles:i})}),a=t.encapsulation;return null==a&&(a=this._config.defaultEncapsulation),a===C.Emulated&&0===i.length&&0===o.length&&(a=C.None),new $t({encapsulation:a,template:e.template,templateUrl:e.templateUrl,htmlAst:e.htmlAst,styles:i,styleUrls:o,ngContentSelectors:e.ngContentSelectors,animations:t.animations,interpolation:t.interpolation,isInline:e.isInline,externalStylesheets:s,preserveWhitespaces:Bt(t.preserveWhitespaces,this._config.preserveWhitespaces)})},t.prototype._inlineStyles=function(t,e,n){var r=this;t.forEach(function(t){var i=e.get(t);i.styles.forEach(function(t){return n.push(t)}),r._inlineStyles(i.styleUrls,e,n)})},t.prototype._loadMissingExternalStylesheets=function(t,e){var n,r=this;return void 0===e&&(e=new Map),ct((n=t.filter(function(t){return!e.has(t)}).map(function(t){return ct(r._fetch(t),function(n){var i=r._normalizeStylesheet(new Zt({styles:[n],moduleUrl:t}));return e.set(t,i),r._loadMissingExternalStylesheets(i.styleUrls,e)})})).some(_t)?Promise.all(n):n,function(t){return e})},t.prototype._normalizeStylesheet=function(t){var e=this,n=t.moduleUrl,r=t.styleUrls.filter(we).map(function(t){return e._urlResolver.resolve(n,t)}),i=t.styles.map(function(t){var i=function o(t,e,n){var r=[],i=n.replace(Se,"").replace(Ee,function(){for(var n=[],i=0;i<arguments.length;i++)n[i]=arguments[i];var o=n[1]||n[2];return we(o)?(r.push(t.resolve(e,o)),""):n[0]});return new be(i,r)}(e._urlResolver,n,t);return r.push.apply(r,f(i.styleUrls)),i.style});return new Zt({styles:i,styleUrls:r,moduleUrl:n})},t}(),Fe=function(){function t(){this.ngContentSelectors=[],this.styles=[],this.styleUrls=[],this.ngNonBindableStackCount=0}return t.prototype.visitElement=function(t,e){var n=De(t);switch(n.type){case xe.NG_CONTENT:0===this.ngNonBindableStackCount&&this.ngContentSelectors.push(n.selectAttr);break;case xe.STYLE:var r="";t.children.forEach(function(t){t instanceof se&&(r+=t.value)}),this.styles.push(r);break;case xe.STYLESHEET:this.styleUrls.push(n.hrefAttr)}return n.nonBindable&&this.ngNonBindableStackCount++,he(this,t.children),n.nonBindable&&this.ngNonBindableStackCount--,null},t.prototype.visitExpansion=function(t,e){he(this,t.cases)},t.prototype.visitExpansionCase=function(t,e){he(this,t.expression)},t.prototype.visitComment=function(t,e){return null},t.prototype.visitAttribute=function(t,e){return null},t.prototype.visitText=function(t,e){return null},t}(),Ve=[F,L,j,D],He=function(){function t(t){this._reflector=t}return t.prototype.isDirective=function(t){var e=this._reflector.annotations(gt(t));return e&&e.some(Be)},t.prototype.resolve=function(t,e){void 0===e&&(e=!0);var n=this._reflector.annotations(gt(t));if(n){var r=qe(n,Be);if(r){var i=this._reflector.propMetadata(t),o=this._reflector.guards(t);return this._mergeWithPropertyMetadata(r,i,o,t)}}if(e)throw new Error("No Directive annotation found on "+mt(t));return null},t.prototype._mergeWithPropertyMetadata=function(t,e,n,r){var i=[],o=[],s={},a={};return Object.keys(e).forEach(function(t){var n=qe(e[t],function(t){return U.isTypeOf(t)});n&&i.push(n.bindingPropertyName?t+": "+n.bindingPropertyName:t);var r=qe(e[t],function(t){return z.isTypeOf(t)});r&&o.push(r.bindingPropertyName?t+": "+r.bindingPropertyName:t),e[t].filter(function(t){return W.isTypeOf(t)}).forEach(function(e){if(e.hostPropertyName){var n=e.hostPropertyName[0];if("("===n)throw new Error("@HostBinding can not bind to events. Use @HostListener instead.");if("["===n)throw new Error("@HostBinding parameter should be a property name, 'class.<name>', or 'attr.<name>'.");s["["+e.hostPropertyName+"]"]=t}else s["["+t+"]"]=t}),e[t].filter(function(t){return Q.isTypeOf(t)}).forEach(function(e){s["("+e.eventName+")"]=t+"("+(e.args||[]).join(",")+")"});var u=qe(e[t],function(t){return Ve.some(function(e){return e.isTypeOf(t)})});u&&(a[t]=u)}),this._merge(t,i,o,s,a,n,r)},t.prototype._extractPublicName=function(t){return rt(t,[null,t])[1].trim()},t.prototype._dedupeBindings=function(t){for(var e=new Set,n=new Set,r=[],i=t.length-1;i>=0;i--){var o=t[i],s=this._extractPublicName(o);n.add(s),e.has(s)||(e.add(s),r.push(o))}return r.reverse()},t.prototype._merge=function(t,e,n,r,i,o,s){var u=this._dedupeBindings(t.inputs?t.inputs.concat(e):e),c=this._dedupeBindings(t.outputs?t.outputs.concat(n):n),l=t.host?a({},t.host,r):r,p=t.queries?a({},t.queries,i):i;return q.isTypeOf(t)?q({selector:t.selector,inputs:u,outputs:c,host:l,exportAs:t.exportAs,moduleId:t.moduleId,queries:p,changeDetection:t.changeDetection,providers:t.providers,viewProviders:t.viewProviders,entryComponents:t.entryComponents,template:t.template,templateUrl:t.templateUrl,styles:t.styles,styleUrls:t.styleUrls,encapsulation:t.encapsulation,animations:t.animations,interpolation:t.interpolation,preserveWhitespaces:t.preserveWhitespaces}):V({selector:t.selector,inputs:u,outputs:c,host:l,exportAs:t.exportAs,queries:p,providers:t.providers,guards:o})},t}();function Be(t){return V.isTypeOf(t)||q.isTypeOf(t)}function qe(t,e){for(var n=t.length-1;n>=0;n--)if(e(t[n]))return t[n];return null}
85
85
  /**
86
86
  * @license
87
87
  * Copyright Google Inc. All Rights Reserved.
88
88
  *
89
89
  * Use of this source code is governed by an MIT-style license that can be
90
90
  * found in the LICENSE file at https://angular.io/license
91
- */var He,Be=0,qe=9,Ke=10,Ue=11,ze=12,We=13,Qe=32,Ge=34,Xe=36,Ye=39,Ze=43,$e=45,Je=47,tn=59,en=61,nn=62,rn=48,on=57,sn=65,an=70,un=90,cn=95,ln=97,pn=102,hn=110,fn=114,dn=116,vn=118,yn=122,mn=123,gn=160;function _n(t){return t>=qe&&t<=Qe||t==gn}function bn(t){return rn<=t&&t<=on}function wn(t){return t>=ln&&t<=yn||t>=sn&&t<=un}!function(t){t[t.Character=0]="Character",t[t.Identifier=1]="Identifier",t[t.Keyword=2]="Keyword",t[t.String=3]="String",t[t.Operator=4]="Operator",t[t.Number=5]="Number",t[t.Error=6]="Error"}(He||(He={}));var xn,En=["var","let","as","null","undefined","true","false","if","else","this"],Sn=function(){function t(){}return t.prototype.tokenize=function(t){for(var e=new An(t),n=[],r=e.scanToken();null!=r;)n.push(r),r=e.scanToken();return n},t}();function Cn(t,e){return new xn(t,He.Character,e,String.fromCharCode(e))}function Tn(t,e){return new xn(t,He.Operator,0,e)}var Pn=new(xn=function(){function t(t,e,n,r){this.index=t,this.type=e,this.numValue=n,this.strValue=r}return t.prototype.isCharacter=function(t){return this.type==He.Character&&this.numValue==t},t.prototype.isNumber=function(){return this.type==He.Number},t.prototype.isString=function(){return this.type==He.String},t.prototype.isOperator=function(t){return this.type==He.Operator&&this.strValue==t},t.prototype.isIdentifier=function(){return this.type==He.Identifier},t.prototype.isKeyword=function(){return this.type==He.Keyword},t.prototype.isKeywordLet=function(){return this.type==He.Keyword&&"let"==this.strValue},t.prototype.isKeywordAs=function(){return this.type==He.Keyword&&"as"==this.strValue},t.prototype.isKeywordNull=function(){return this.type==He.Keyword&&"null"==this.strValue},t.prototype.isKeywordUndefined=function(){return this.type==He.Keyword&&"undefined"==this.strValue},t.prototype.isKeywordTrue=function(){return this.type==He.Keyword&&"true"==this.strValue},t.prototype.isKeywordFalse=function(){return this.type==He.Keyword&&"false"==this.strValue},t.prototype.isKeywordThis=function(){return this.type==He.Keyword&&"this"==this.strValue},t.prototype.isError=function(){return this.type==He.Error},t.prototype.toNumber=function(){return this.type==He.Number?this.numValue:-1},t.prototype.toString=function(){switch(this.type){case He.Character:case He.Identifier:case He.Keyword:case He.Operator:case He.String:case He.Error:return this.strValue;case He.Number:return this.numValue.toString();default:return null}},t}())(-1,He.Character,0,""),An=function(){function t(t){this.input=t,this.peek=0,this.index=-1,this.length=t.length,this.advance()}return t.prototype.advance=function(){this.peek=++this.index>=this.length?Be:this.input.charCodeAt(this.index)},t.prototype.scanToken=function(){for(var t=this.input,e=this.length,n=this.peek,r=this.index;n<=Qe;){if(++r>=e){n=Be;break}n=t.charCodeAt(r)}if(this.peek=n,this.index=r,r>=e)return null;if(Nn(n))return this.scanIdentifier();if(bn(n))return this.scanNumber(r);var i=r;switch(n){case 46:return this.advance(),bn(this.peek)?this.scanNumber(i):Cn(i,46);case 40:case 41:case mn:case 125:case 91:case 93:case 44:case 58:case tn:return this.scanCharacter(i,n);case Ye:case Ge:return this.scanString();case 35:case Ze:case $e:case 42:case Je:case 37:case 94:return this.scanOperator(i,String.fromCharCode(n));case 63:return this.scanComplexOperator(i,"?",46,".");case 60:case nn:return this.scanComplexOperator(i,String.fromCharCode(n),en,"=");case 33:case en:return this.scanComplexOperator(i,String.fromCharCode(n),en,"=",en,"=");case 38:return this.scanComplexOperator(i,"&",38,"&");case 124:return this.scanComplexOperator(i,"|",124,"|");case gn:for(;_n(this.peek);)this.advance();return this.scanToken()}return this.advance(),this.error("Unexpected character ["+String.fromCharCode(n)+"]",0)},t.prototype.scanCharacter=function(t,e){return this.advance(),Cn(t,e)},t.prototype.scanOperator=function(t,e){return this.advance(),Tn(t,e)},t.prototype.scanComplexOperator=function(t,e,n,r,i,o){this.advance();var s=e;return this.peek==n&&(this.advance(),s+=r),null!=i&&this.peek==i&&(this.advance(),s+=o),Tn(t,s)},t.prototype.scanIdentifier=function(){var t=this.index;for(this.advance();kn(this.peek);)this.advance();var e=this.input.substring(t,this.index);return En.indexOf(e)>-1?function n(t,e){return new xn(t,He.Keyword,0,e)}(t,e):function r(t,e){return new xn(t,He.Identifier,0,e)}(t,e)},t.prototype.scanNumber=function(t){var e,n=this.index===t;for(this.advance();;){if(bn(this.peek));else if(46==this.peek)n=!1;else{if(101!=(e=this.peek)&&69!=e)break;if(this.advance(),On(this.peek)&&this.advance(),!bn(this.peek))return this.error("Invalid exponent",-1);n=!1}this.advance()}var r=this.input.substring(t,this.index);return function o(t,e){return new xn(t,He.Number,e,"")}(t,n?function i(t){var e=parseInt(t);if(isNaN(e))throw new Error("Invalid integer literal when parsing "+t);return e}
91
+ */var Ke,Ue=0,ze=9,We=10,Qe=11,Ge=12,Xe=13,Ye=32,Ze=34,$e=36,Je=39,tn=43,en=45,nn=47,rn=59,on=61,sn=62,an=48,un=57,cn=65,ln=70,pn=90,hn=95,fn=97,dn=102,vn=110,yn=114,mn=116,gn=118,_n=122,bn=123,wn=160;function xn(t){return t>=ze&&t<=Ye||t==wn}function En(t){return an<=t&&t<=un}function Sn(t){return t>=fn&&t<=_n||t>=cn&&t<=pn}!function(t){t[t.Character=0]="Character",t[t.Identifier=1]="Identifier",t[t.Keyword=2]="Keyword",t[t.String=3]="String",t[t.Operator=4]="Operator",t[t.Number=5]="Number",t[t.Error=6]="Error"}(Ke||(Ke={}));var Cn,Tn=["var","let","as","null","undefined","true","false","if","else","this"],Pn=function(){function t(){}return t.prototype.tokenize=function(t){for(var e=new On(t),n=[],r=e.scanToken();null!=r;)n.push(r),r=e.scanToken();return n},t}();function An(t,e){return new Cn(t,Ke.Character,e,String.fromCharCode(e))}function Nn(t,e){return new Cn(t,Ke.Operator,0,e)}var kn=new(Cn=function(){function t(t,e,n,r){this.index=t,this.type=e,this.numValue=n,this.strValue=r}return t.prototype.isCharacter=function(t){return this.type==Ke.Character&&this.numValue==t},t.prototype.isNumber=function(){return this.type==Ke.Number},t.prototype.isString=function(){return this.type==Ke.String},t.prototype.isOperator=function(t){return this.type==Ke.Operator&&this.strValue==t},t.prototype.isIdentifier=function(){return this.type==Ke.Identifier},t.prototype.isKeyword=function(){return this.type==Ke.Keyword},t.prototype.isKeywordLet=function(){return this.type==Ke.Keyword&&"let"==this.strValue},t.prototype.isKeywordAs=function(){return this.type==Ke.Keyword&&"as"==this.strValue},t.prototype.isKeywordNull=function(){return this.type==Ke.Keyword&&"null"==this.strValue},t.prototype.isKeywordUndefined=function(){return this.type==Ke.Keyword&&"undefined"==this.strValue},t.prototype.isKeywordTrue=function(){return this.type==Ke.Keyword&&"true"==this.strValue},t.prototype.isKeywordFalse=function(){return this.type==Ke.Keyword&&"false"==this.strValue},t.prototype.isKeywordThis=function(){return this.type==Ke.Keyword&&"this"==this.strValue},t.prototype.isError=function(){return this.type==Ke.Error},t.prototype.toNumber=function(){return this.type==Ke.Number?this.numValue:-1},t.prototype.toString=function(){switch(this.type){case Ke.Character:case Ke.Identifier:case Ke.Keyword:case Ke.Operator:case Ke.String:case Ke.Error:return this.strValue;case Ke.Number:return this.numValue.toString();default:return null}},t}())(-1,Ke.Character,0,""),On=function(){function t(t){this.input=t,this.peek=0,this.index=-1,this.length=t.length,this.advance()}return t.prototype.advance=function(){this.peek=++this.index>=this.length?Ue:this.input.charCodeAt(this.index)},t.prototype.scanToken=function(){for(var t=this.input,e=this.length,n=this.peek,r=this.index;n<=Ye;){if(++r>=e){n=Ue;break}n=t.charCodeAt(r)}if(this.peek=n,this.index=r,r>=e)return null;if(Mn(n))return this.scanIdentifier();if(En(n))return this.scanNumber(r);var i=r;switch(n){case 46:return this.advance(),En(this.peek)?this.scanNumber(i):An(i,46);case 40:case 41:case bn:case 125:case 91:case 93:case 44:case 58:case rn:return this.scanCharacter(i,n);case Je:case Ze:return this.scanString();case 35:case tn:case en:case 42:case nn:case 37:case 94:return this.scanOperator(i,String.fromCharCode(n));case 63:return this.scanComplexOperator(i,"?",46,".");case 60:case sn:return this.scanComplexOperator(i,String.fromCharCode(n),on,"=");case 33:case on:return this.scanComplexOperator(i,String.fromCharCode(n),on,"=",on,"=");case 38:return this.scanComplexOperator(i,"&",38,"&");case 124:return this.scanComplexOperator(i,"|",124,"|");case wn:for(;xn(this.peek);)this.advance();return this.scanToken()}return this.advance(),this.error("Unexpected character ["+String.fromCharCode(n)+"]",0)},t.prototype.scanCharacter=function(t,e){return this.advance(),An(t,e)},t.prototype.scanOperator=function(t,e){return this.advance(),Nn(t,e)},t.prototype.scanComplexOperator=function(t,e,n,r,i,o){this.advance();var s=e;return this.peek==n&&(this.advance(),s+=r),null!=i&&this.peek==i&&(this.advance(),s+=o),Nn(t,s)},t.prototype.scanIdentifier=function(){var t=this.index;for(this.advance();In(this.peek);)this.advance();var e=this.input.substring(t,this.index);return Tn.indexOf(e)>-1?function n(t,e){return new Cn(t,Ke.Keyword,0,e)}(t,e):function r(t,e){return new Cn(t,Ke.Identifier,0,e)}(t,e)},t.prototype.scanNumber=function(t){var e,n=this.index===t;for(this.advance();;){if(En(this.peek));else if(46==this.peek)n=!1;else{if(101!=(e=this.peek)&&69!=e)break;if(this.advance(),Rn(this.peek)&&this.advance(),!En(this.peek))return this.error("Invalid exponent",-1);n=!1}this.advance()}var r=this.input.substring(t,this.index);return function o(t,e){return new Cn(t,Ke.Number,e,"")}(t,n?function i(t){var e=parseInt(t);if(isNaN(e))throw new Error("Invalid integer literal when parsing "+t);return e}
92
92
  /**
93
93
  * @license
94
94
  * Copyright Google Inc. All Rights Reserved.
95
95
  *
96
96
  * Use of this source code is governed by an MIT-style license that can be
97
97
  * found in the LICENSE file at https://angular.io/license
98
- */(r):parseFloat(r))},t.prototype.scanString=function(){var t=this.index,e=this.peek;this.advance();for(var n="",r=this.index,i=this.input;this.peek!=e;)if(92==this.peek){n+=i.substring(r,this.index),this.advance();var o=void 0;if(this.peek=this.peek,117==this.peek){var s=i.substring(this.index+1,this.index+5);if(!/^[0-9a-f]+$/i.test(s))return this.error("Invalid unicode escape [\\u"+s+"]",0);o=parseInt(s,16);for(var a=0;a<5;a++)this.advance()}else o=Mn(this.peek),this.advance();n+=String.fromCharCode(o),r=this.index}else{if(this.peek==Be)return this.error("Unterminated quote",0);this.advance()}var u=i.substring(r,this.index);return this.advance(),function c(t,e){return new xn(t,He.String,0,e)}(t,n+u)},t.prototype.error=function(t,e){var n=this.index+e;return function r(t,e){return new xn(t,He.Error,0,e)}(n,"Lexer Error: "+t+" at column "+n+" in expression ["+this.input+"]")},t}();function Nn(t){return ln<=t&&t<=yn||sn<=t&&t<=un||t==cn||t==Xe}function kn(t){return wn(t)||bn(t)||t==cn||t==Xe}function On(t){return t==$e||t==Ze}function Mn(t){switch(t){case hn:return Ke;case pn:return ze;case fn:return We;case dn:return qe;case vn:return Ue;default:return t}}var In=function In(t,e,n,r){this.input=e,this.errLocation=n,this.ctxLocation=r,this.message="Parser Error: "+t+" "+n+" ["+e+"] in "+r},Rn=function Rn(t,e){this.start=t,this.end=e},Dn=function(){function t(t){this.span=t}return t.prototype.visit=function(t,e){return void 0===e&&(e=null),null},t.prototype.toString=function(){return"AST"},t}(),jn=function(t){function e(e,n,r,i){var o=t.call(this,e)||this;return o.prefix=n,o.uninterpretedExpression=r,o.location=i,o}return o(e,t),e.prototype.visit=function(t,e){return void 0===e&&(e=null),t.visitQuote(this,e)},e.prototype.toString=function(){return"Quote"},e}(Dn),Ln=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o(e,t),e.prototype.visit=function(t,e){void 0===e&&(e=null)},e}(Dn),Fn=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o(e,t),e.prototype.visit=function(t,e){return void 0===e&&(e=null),t.visitImplicitReceiver(this,e)},e}(Dn),Vn=function(t){function e(e,n){var r=t.call(this,e)||this;return r.expressions=n,r}return o(e,t),e.prototype.visit=function(t,e){return void 0===e&&(e=null),t.visitChain(this,e)},e}(Dn),Hn=function(t){function e(e,n,r,i){var o=t.call(this,e)||this;return o.condition=n,o.trueExp=r,o.falseExp=i,o}return o(e,t),e.prototype.visit=function(t,e){return void 0===e&&(e=null),t.visitConditional(this,e)},e}(Dn),Bn=function(t){function e(e,n,r){var i=t.call(this,e)||this;return i.receiver=n,i.name=r,i}return o(e,t),e.prototype.visit=function(t,e){return void 0===e&&(e=null),t.visitPropertyRead(this,e)},e}(Dn),qn=function(t){function e(e,n,r,i){var o=t.call(this,e)||this;return o.receiver=n,o.name=r,o.value=i,o}return o(e,t),e.prototype.visit=function(t,e){return void 0===e&&(e=null),t.visitPropertyWrite(this,e)},e}(Dn),Kn=function(t){function e(e,n,r){var i=t.call(this,e)||this;return i.receiver=n,i.name=r,i}return o(e,t),e.prototype.visit=function(t,e){return void 0===e&&(e=null),t.visitSafePropertyRead(this,e)},e}(Dn),Un=function(t){function e(e,n,r){var i=t.call(this,e)||this;return i.obj=n,i.key=r,i}return o(e,t),e.prototype.visit=function(t,e){return void 0===e&&(e=null),t.visitKeyedRead(this,e)},e}(Dn),zn=function(t){function e(e,n,r,i){var o=t.call(this,e)||this;return o.obj=n,o.key=r,o.value=i,o}return o(e,t),e.prototype.visit=function(t,e){return void 0===e&&(e=null),t.visitKeyedWrite(this,e)},e}(Dn),Wn=function(t){function e(e,n,r,i){var o=t.call(this,e)||this;return o.exp=n,o.name=r,o.args=i,o}return o(e,t),e.prototype.visit=function(t,e){return void 0===e&&(e=null),t.visitPipe(this,e)},e}(Dn),Qn=function(t){function e(e,n){var r=t.call(this,e)||this;return r.value=n,r}return o(e,t),e.prototype.visit=function(t,e){return void 0===e&&(e=null),t.visitLiteralPrimitive(this,e)},e}(Dn),Gn=function(t){function e(e,n){var r=t.call(this,e)||this;return r.expressions=n,r}return o(e,t),e.prototype.visit=function(t,e){return void 0===e&&(e=null),t.visitLiteralArray(this,e)},e}(Dn),Xn=function(t){function e(e,n,r){var i=t.call(this,e)||this;return i.keys=n,i.values=r,i}return o(e,t),e.prototype.visit=function(t,e){return void 0===e&&(e=null),t.visitLiteralMap(this,e)},e}(Dn),Yn=function(t){function e(e,n,r){var i=t.call(this,e)||this;return i.strings=n,i.expressions=r,i}return o(e,t),e.prototype.visit=function(t,e){return void 0===e&&(e=null),t.visitInterpolation(this,e)},e}(Dn),Zn=function(t){function e(e,n,r,i){var o=t.call(this,e)||this;return o.operation=n,o.left=r,o.right=i,o}return o(e,t),e.prototype.visit=function(t,e){return void 0===e&&(e=null),t.visitBinary(this,e)},e}(Dn),$n=function(t){function e(e,n){var r=t.call(this,e)||this;return r.expression=n,r}return o(e,t),e.prototype.visit=function(t,e){return void 0===e&&(e=null),t.visitPrefixNot(this,e)},e}(Dn),Jn=function(t){function e(e,n){var r=t.call(this,e)||this;return r.expression=n,r}return o(e,t),e.prototype.visit=function(t,e){return void 0===e&&(e=null),t.visitNonNullAssert(this,e)},e}(Dn),tr=function(t){function e(e,n,r,i){var o=t.call(this,e)||this;return o.receiver=n,o.name=r,o.args=i,o}return o(e,t),e.prototype.visit=function(t,e){return void 0===e&&(e=null),t.visitMethodCall(this,e)},e}(Dn),er=function(t){function e(e,n,r,i){var o=t.call(this,e)||this;return o.receiver=n,o.name=r,o.args=i,o}return o(e,t),e.prototype.visit=function(t,e){return void 0===e&&(e=null),t.visitSafeMethodCall(this,e)},e}(Dn),nr=function(t){function e(e,n,r){var i=t.call(this,e)||this;return i.target=n,i.args=r,i}return o(e,t),e.prototype.visit=function(t,e){return void 0===e&&(e=null),t.visitFunctionCall(this,e)},e}(Dn),rr=function(t){function e(e,n,r,i){var o=t.call(this,new Rn(0,null==n?0:n.length))||this;return o.ast=e,o.source=n,o.location=r,o.errors=i,o}return o(e,t),e.prototype.visit=function(t,e){return void 0===e&&(e=null),this.ast.visit(t,e)},e.prototype.toString=function(){return this.source+" in "+this.location},e}(Dn),ir=function ir(t,e,n,r,i){this.span=t,this.key=e,this.keyIsVar=n,this.name=r,this.expression=i},or=function(){function t(){}return t.prototype.visitBinary=function(t,e){},t.prototype.visitChain=function(t,e){},t.prototype.visitConditional=function(t,e){},t.prototype.visitFunctionCall=function(t,e){},t.prototype.visitImplicitReceiver=function(t,e){},t.prototype.visitInterpolation=function(t,e){},t.prototype.visitKeyedRead=function(t,e){},t.prototype.visitKeyedWrite=function(t,e){},t.prototype.visitLiteralArray=function(t,e){},t.prototype.visitLiteralMap=function(t,e){},t.prototype.visitLiteralPrimitive=function(t,e){},t.prototype.visitMethodCall=function(t,e){},t.prototype.visitPipe=function(t,e){},t.prototype.visitPrefixNot=function(t,e){},t.prototype.visitNonNullAssert=function(t,e){},t.prototype.visitPropertyRead=function(t,e){},t.prototype.visitPropertyWrite=function(t,e){},t.prototype.visitQuote=function(t,e){},t.prototype.visitSafeMethodCall=function(t,e){},t.prototype.visitSafePropertyRead=function(t,e){},t}(),sr=function(){function t(){}return t.prototype.visitBinary=function(t,e){return t.left.visit(this),t.right.visit(this),null},t.prototype.visitChain=function(t,e){return this.visitAll(t.expressions,e)},t.prototype.visitConditional=function(t,e){return t.condition.visit(this),t.trueExp.visit(this),t.falseExp.visit(this),null},t.prototype.visitPipe=function(t,e){return t.exp.visit(this),this.visitAll(t.args,e),null},t.prototype.visitFunctionCall=function(t,e){return t.target.visit(this),this.visitAll(t.args,e),null},t.prototype.visitImplicitReceiver=function(t,e){return null},t.prototype.visitInterpolation=function(t,e){return this.visitAll(t.expressions,e)},t.prototype.visitKeyedRead=function(t,e){return t.obj.visit(this),t.key.visit(this),null},t.prototype.visitKeyedWrite=function(t,e){return t.obj.visit(this),t.key.visit(this),t.value.visit(this),null},t.prototype.visitLiteralArray=function(t,e){return this.visitAll(t.expressions,e)},t.prototype.visitLiteralMap=function(t,e){return this.visitAll(t.values,e)},t.prototype.visitLiteralPrimitive=function(t,e){return null},t.prototype.visitMethodCall=function(t,e){return t.receiver.visit(this),this.visitAll(t.args,e)},t.prototype.visitPrefixNot=function(t,e){return t.expression.visit(this),null},t.prototype.visitNonNullAssert=function(t,e){return t.expression.visit(this),null},t.prototype.visitPropertyRead=function(t,e){return t.receiver.visit(this),null},t.prototype.visitPropertyWrite=function(t,e){return t.receiver.visit(this),t.value.visit(this),null},t.prototype.visitSafePropertyRead=function(t,e){return t.receiver.visit(this),null},t.prototype.visitSafeMethodCall=function(t,e){return t.receiver.visit(this),this.visitAll(t.args,e)},t.prototype.visitAll=function(t,e){var n=this;return t.forEach(function(t){return t.visit(n,e)}),null},t.prototype.visitQuote=function(t,e){return null},t}(),ar=function(){function t(){}return t.prototype.visitImplicitReceiver=function(t,e){return t},t.prototype.visitInterpolation=function(t,e){return new Yn(t.span,t.strings,this.visitAll(t.expressions))},t.prototype.visitLiteralPrimitive=function(t,e){return new Qn(t.span,t.value)},t.prototype.visitPropertyRead=function(t,e){return new Bn(t.span,t.receiver.visit(this),t.name)},t.prototype.visitPropertyWrite=function(t,e){return new qn(t.span,t.receiver.visit(this),t.name,t.value.visit(this))},t.prototype.visitSafePropertyRead=function(t,e){return new Kn(t.span,t.receiver.visit(this),t.name)},t.prototype.visitMethodCall=function(t,e){return new tr(t.span,t.receiver.visit(this),t.name,this.visitAll(t.args))},t.prototype.visitSafeMethodCall=function(t,e){return new er(t.span,t.receiver.visit(this),t.name,this.visitAll(t.args))},t.prototype.visitFunctionCall=function(t,e){return new nr(t.span,t.target.visit(this),this.visitAll(t.args))},t.prototype.visitLiteralArray=function(t,e){return new Gn(t.span,this.visitAll(t.expressions))},t.prototype.visitLiteralMap=function(t,e){return new Xn(t.span,t.keys,this.visitAll(t.values))},t.prototype.visitBinary=function(t,e){return new Zn(t.span,t.operation,t.left.visit(this),t.right.visit(this))},t.prototype.visitPrefixNot=function(t,e){return new $n(t.span,t.expression.visit(this))},t.prototype.visitNonNullAssert=function(t,e){return new Jn(t.span,t.expression.visit(this))},t.prototype.visitConditional=function(t,e){return new Hn(t.span,t.condition.visit(this),t.trueExp.visit(this),t.falseExp.visit(this))},t.prototype.visitPipe=function(t,e){return new Wn(t.span,t.exp.visit(this),t.name,this.visitAll(t.args))},t.prototype.visitKeyedRead=function(t,e){return new Un(t.span,t.obj.visit(this),t.key.visit(this))},t.prototype.visitKeyedWrite=function(t,e){return new zn(t.span,t.obj.visit(this),t.key.visit(this),t.value.visit(this))},t.prototype.visitAll=function(t){for(var e=new Array(t.length),n=0;n<t.length;++n)e[n]=t[n].visit(this);return e},t.prototype.visitChain=function(t,e){return new Vn(t.span,this.visitAll(t.expressions))},t.prototype.visitQuote=function(t,e){return new jn(t.span,t.prefix,t.uninterpretedExpression,t.location)},t}(),ur=function(){function t(){}return t.prototype.visitImplicitReceiver=function(t,e){return t},t.prototype.visitInterpolation=function(t,e){var n=this.visitAll(t.expressions);return n!==t.expressions?new Yn(t.span,t.strings,n):t},t.prototype.visitLiteralPrimitive=function(t,e){return t},t.prototype.visitPropertyRead=function(t,e){var n=t.receiver.visit(this);return n!==t.receiver?new Bn(t.span,n,t.name):t},t.prototype.visitPropertyWrite=function(t,e){var n=t.receiver.visit(this),r=t.value.visit(this);return n!==t.receiver||r!==t.value?new qn(t.span,n,t.name,r):t},t.prototype.visitSafePropertyRead=function(t,e){var n=t.receiver.visit(this);return n!==t.receiver?new Kn(t.span,n,t.name):t},t.prototype.visitMethodCall=function(t,e){var n=t.receiver.visit(this);return n!==t.receiver?new tr(t.span,n,t.name,this.visitAll(t.args)):t},t.prototype.visitSafeMethodCall=function(t,e){var n=t.receiver.visit(this),r=this.visitAll(t.args);return n!==t.receiver||r!==t.args?new er(t.span,n,t.name,r):t},t.prototype.visitFunctionCall=function(t,e){var n=t.target&&t.target.visit(this),r=this.visitAll(t.args);return n!==t.target||r!==t.args?new nr(t.span,n,r):t},t.prototype.visitLiteralArray=function(t,e){var n=this.visitAll(t.expressions);return n!==t.expressions?new Gn(t.span,n):t},t.prototype.visitLiteralMap=function(t,e){var n=this.visitAll(t.values);return n!==t.values?new Xn(t.span,t.keys,n):t},t.prototype.visitBinary=function(t,e){var n=t.left.visit(this),r=t.right.visit(this);return n!==t.left||r!==t.right?new Zn(t.span,t.operation,n,r):t},t.prototype.visitPrefixNot=function(t,e){var n=t.expression.visit(this);return n!==t.expression?new $n(t.span,n):t},t.prototype.visitNonNullAssert=function(t,e){var n=t.expression.visit(this);return n!==t.expression?new Jn(t.span,n):t},t.prototype.visitConditional=function(t,e){var n=t.condition.visit(this),r=t.trueExp.visit(this),i=t.falseExp.visit(this);return n!==t.condition||r!==t.trueExp||i!=i?new Hn(t.span,n,r,i):t},t.prototype.visitPipe=function(t,e){var n=t.exp.visit(this),r=this.visitAll(t.args);return n!==t.exp||r!==t.args?new Wn(t.span,n,t.name,r):t},t.prototype.visitKeyedRead=function(t,e){var n=t.obj.visit(this),r=t.key.visit(this);return n!==t.obj||r!==t.key?new Un(t.span,n,r):t},t.prototype.visitKeyedWrite=function(t,e){var n=t.obj.visit(this),r=t.key.visit(this),i=t.value.visit(this);return n!==t.obj||r!==t.key||i!==t.value?new zn(t.span,n,r,i):t},t.prototype.visitAll=function(t){for(var e=new Array(t.length),n=!1,r=0;r<t.length;++r){var i=t[r],o=i.visit(this);e[r]=o,n=n||o!==i}return n?e:t},t.prototype.visitChain=function(t,e){var n=this.visitAll(t.expressions);return n!==t.expressions?new Vn(t.span,n):t},t.prototype.visitQuote=function(t,e){return t},t}();function cr(t,e,n){function r(t){e.visit&&e.visit(t,n)||t.visit(e,n)}function i(t){t.forEach(r)}t.visit({visitBinary:function(t){r(t.left),r(t.right)},visitChain:function(t){i(t.expressions)},visitConditional:function(t){r(t.condition),r(t.trueExp),r(t.falseExp)},visitFunctionCall:function(t){t.target&&r(t.target),i(t.args)},visitImplicitReceiver:function(t){},visitInterpolation:function(t){i(t.expressions)},visitKeyedRead:function(t){r(t.obj),r(t.key)},visitKeyedWrite:function(t){r(t.obj),r(t.key),r(t.obj)},visitLiteralArray:function(t){i(t.expressions)},visitLiteralMap:function(t){},visitLiteralPrimitive:function(t){},visitMethodCall:function(t){r(t.receiver),i(t.args)},visitPipe:function(t){r(t.exp),i(t.args)},visitPrefixNot:function(t){r(t.expression)},visitNonNullAssert:function(t){r(t.expression)},visitPropertyRead:function(t){r(t.receiver)},visitPropertyWrite:function(t){r(t.receiver),r(t.value)},visitQuote:function(t){},visitSafeMethodCall:function(t){r(t.receiver),i(t.args)},visitSafePropertyRead:function(t){r(t.receiver)}})}var lr,pr=function pr(t,e,n,r){this.name=t,this.expression=e,this.type=n,this.sourceSpan=r,this.isLiteral=this.type===lr.LITERAL_ATTR,this.isAnimation=this.type===lr.ANIMATION};!function(t){t[t.DEFAULT=0]="DEFAULT",t[t.LITERAL_ATTR=1]="LITERAL_ATTR",t[t.ANIMATION=2]="ANIMATION"}(lr||(lr={}));var hr=function hr(t,e,n,r,i){this.name=t,this.targetOrPhase=e,this.type=n,this.handler=r,this.sourceSpan=i},fr=function fr(t,e,n){this.name=t,this.value=e,this.sourceSpan=n},dr=function dr(t,e,n,r,i,o){this.name=t,this.type=e,this.securityContext=n,this.value=r,this.unit=i,this.sourceSpan=o},vr=function vr(t,e,n){this.strings=t,this.expressions=e,this.offsets=n},yr=function yr(t,e,n){this.templateBindings=t,this.warnings=e,this.errors=n};function mr(t){var e=pt(t.start)+"([\\s\\S]*?)"+pt(t.end);return new RegExp(e,"g")}var gr,_r=function(){function t(t){this._lexer=t,this.errors=[]}return t.prototype.parseAction=function(t,e,n){void 0===n&&(n=ye),this._checkNoInterpolation(t,e,n);var r=this._stripComments(t),i=this._lexer.tokenize(this._stripComments(t)),o=new br(t,e,i,r.length,!0,this.errors,t.length-r.length).parseChain();return new rr(o,t,e,this.errors)},t.prototype.parseBinding=function(t,e,n){void 0===n&&(n=ye);var r=this._parseBindingAst(t,e,n);return new rr(r,t,e,this.errors)},t.prototype.parseSimpleBinding=function(t,e,n){void 0===n&&(n=ye);var r=this._parseBindingAst(t,e,n),i=wr.check(r);return i.length>0&&this._reportError("Host binding expression cannot contain "+i.join(" "),t,e),new rr(r,t,e,this.errors)},t.prototype._reportError=function(t,e,n,r){this.errors.push(new In(t,e,n,r))},t.prototype._parseBindingAst=function(t,e,n){var r=this._parseQuote(t,e);if(null!=r)return r;this._checkNoInterpolation(t,e,n);var i=this._stripComments(t),o=this._lexer.tokenize(i);return new br(t,e,o,i.length,!1,this.errors,t.length-i.length).parseChain()},t.prototype._parseQuote=function(t,e){if(null==t)return null;var n=t.indexOf(":");if(-1==n)return null;var r=t.substring(0,n).trim();if(!function i(t){if(0==t.length)return!1;var e=new An(t);if(!Nn(e.peek))return!1;for(e.advance();e.peek!==Be;){if(!kn(e.peek))return!1;e.advance()}return!0}(r))return null;var o=t.substring(n+1);return new jn(new Rn(0,t.length),r,o,e)},t.prototype.parseTemplateBindings=function(t,e,n){var r=this._lexer.tokenize(e);return new br(e,n,r,e.length,!1,this.errors,0).parseTemplateBindings(t)},t.prototype.parseInterpolation=function(t,e,n){void 0===n&&(n=ye);var r=this.splitInterpolation(t,e,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),c=new br(t,e,u,a.length,!1,this.errors,r.offsets[o]+(s.length-a.length)).parseChain();i.push(c)}return new rr(new Yn(new Rn(0,null==t?0:t.length),r.strings,i),t,e,this.errors)},t.prototype.splitInterpolation=function(t,e,n){void 0===n&&(n=ye);var r=mr(n),i=t.split(r);if(i.length<=1)return null;for(var o=[],s=[],a=[],u=0,c=0;c<i.length;c++){var l=i[c];c%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",t,"at column "+this._findInterpolationErrorColumn(i,c,n)+" in",e),s.push("$implict"),a.push(u))}return new vr(o,s,a)},t.prototype.wrapLiteralPrimitive=function(t,e){return new rr(new Qn(new Rn(0,null==t?0:t.length),t),t,e,this.errors)},t.prototype._stripComments=function(t){var e=this._commentStart(t);return null!=e?t.substring(0,e).trim():t},t.prototype._commentStart=function(t){for(var e,n=null,r=0;r<t.length-1;r++){var i=t.charCodeAt(r),o=t.charCodeAt(r+1);if(i===Je&&o==Je&&null==n)return r;n===i?n=null:null==n&&((e=i)===Ye||e===Ge||96===e)&&(n=i)}return null},t.prototype._checkNoInterpolation=function(t,e,n){var r=mr(n),i=t.split(r);i.length>1&&this._reportError("Got interpolation ("+n.start+n.end+") where expression was expected",t,"at column "+this._findInterpolationErrorColumn(i,1,n)+" in",e)},t.prototype._findInterpolationErrorColumn=function(t,e,n){for(var r="",i=0;i<e;i++)r+=i%2==0?t[i]:""+n.start+t[i]+n.end;return r.length},t}(),br=function(){function t(t,e,n,r,i,o,s){this.input=t,this.location=e,this.tokens=n,this.inputLength=r,this.parseAction=i,this.errors=o,this.offset=s,this.rparensExpected=0,this.rbracketsExpected=0,this.rbracesExpected=0,this.index=0}return t.prototype.peek=function(t){var e=this.index+t;return e<this.tokens.length?this.tokens[e]:Pn},Object.defineProperty(t.prototype,"next",{get:function(){return this.peek(0)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"inputIndex",{get:function(){return this.index<this.tokens.length?this.next.index+this.offset:this.inputLength+this.offset},enumerable:!0,configurable:!0}),t.prototype.span=function(t){return new Rn(t,this.inputIndex)},t.prototype.advance=function(){this.index++},t.prototype.optionalCharacter=function(t){return!!this.next.isCharacter(t)&&(this.advance(),!0)},t.prototype.peekKeywordLet=function(){return this.next.isKeywordLet()},t.prototype.peekKeywordAs=function(){return this.next.isKeywordAs()},t.prototype.expectCharacter=function(t){this.optionalCharacter(t)||this.error("Missing expected "+String.fromCharCode(t))},t.prototype.optionalOperator=function(t){return!!this.next.isOperator(t)&&(this.advance(),!0)},t.prototype.expectOperator=function(t){this.optionalOperator(t)||this.error("Missing expected operator "+t)},t.prototype.expectIdentifierOrKeyword=function(){var t=this.next;return t.isIdentifier()||t.isKeyword()?(this.advance(),t.toString()):(this.error("Unexpected token "+t+", expected identifier or keyword"),"")},t.prototype.expectIdentifierOrKeywordOrString=function(){var t=this.next;return t.isIdentifier()||t.isKeyword()||t.isString()?(this.advance(),t.toString()):(this.error("Unexpected token "+t+", expected identifier, keyword, or string"),"")},t.prototype.parseChain=function(){for(var t=[],e=this.inputIndex;this.index<this.tokens.length;){var n=this.parsePipe();if(t.push(n),this.optionalCharacter(tn))for(this.parseAction||this.error("Binding expression cannot contain chained expression");this.optionalCharacter(tn););else this.index<this.tokens.length&&this.error("Unexpected token '"+this.next+"'")}return 0==t.length?new Ln(this.span(e)):1==t.length?t[0]:new Vn(this.span(e),t)},t.prototype.parsePipe=function(){var t=this.parseExpression();if(this.optionalOperator("|")){this.parseAction&&this.error("Cannot have a pipe in an action expression");do{for(var e=this.expectIdentifierOrKeyword(),n=[];this.optionalCharacter(58);)n.push(this.parseExpression());t=new Wn(this.span(t.span.start),t,e,n)}while(this.optionalOperator("|"))}return t},t.prototype.parseExpression=function(){return this.parseConditional()},t.prototype.parseConditional=function(){var t=this.inputIndex,e=this.parseLogicalOr();if(this.optionalOperator("?")){var n=this.parsePipe(),r=void 0;if(this.optionalCharacter(58))r=this.parsePipe();else{var i=this.input.substring(t,this.inputIndex);this.error("Conditional expression "+i+" requires all 3 expressions"),r=new Ln(this.span(t))}return new Hn(this.span(t),e,n,r)}return e},t.prototype.parseLogicalOr=function(){for(var t=this.parseLogicalAnd();this.optionalOperator("||");){var e=this.parseLogicalAnd();t=new Zn(this.span(t.span.start),"||",t,e)}return t},t.prototype.parseLogicalAnd=function(){for(var t=this.parseEquality();this.optionalOperator("&&");){var e=this.parseEquality();t=new Zn(this.span(t.span.start),"&&",t,e)}return t},t.prototype.parseEquality=function(){for(var t=this.parseRelational();this.next.type==He.Operator;){var e=this.next.strValue;switch(e){case"==":case"===":case"!=":case"!==":this.advance();var n=this.parseRelational();t=new Zn(this.span(t.span.start),e,t,n);continue}break}return t},t.prototype.parseRelational=function(){for(var t=this.parseAdditive();this.next.type==He.Operator;){var e=this.next.strValue;switch(e){case"<":case">":case"<=":case">=":this.advance();var n=this.parseAdditive();t=new Zn(this.span(t.span.start),e,t,n);continue}break}return t},t.prototype.parseAdditive=function(){for(var t=this.parseMultiplicative();this.next.type==He.Operator;){var e=this.next.strValue;switch(e){case"+":case"-":this.advance();var n=this.parseMultiplicative();t=new Zn(this.span(t.span.start),e,t,n);continue}break}return t},t.prototype.parseMultiplicative=function(){for(var t=this.parsePrefix();this.next.type==He.Operator;){var e=this.next.strValue;switch(e){case"*":case"%":case"/":this.advance();var n=this.parsePrefix();t=new Zn(this.span(t.span.start),e,t,n);continue}break}return t},t.prototype.parsePrefix=function(){if(this.next.type==He.Operator){var t=this.inputIndex,e=this.next.strValue,n=void 0;switch(e){case"+":return this.advance(),n=this.parsePrefix(),new Zn(this.span(t),"-",n,new Qn(new Rn(t,t),0));case"-":return this.advance(),n=this.parsePrefix(),new Zn(this.span(t),e,new Qn(new Rn(t,t),0),n);case"!":return this.advance(),n=this.parsePrefix(),new $n(this.span(t),n)}}return this.parseCallChain()},t.prototype.parseCallChain=function(){for(var t=this.parsePrimary();;)if(this.optionalCharacter(46))t=this.parseAccessMemberOrMethodCall(t,!1);else if(this.optionalOperator("?."))t=this.parseAccessMemberOrMethodCall(t,!0);else if(this.optionalCharacter(91)){this.rbracketsExpected++;var e=this.parsePipe();if(this.rbracketsExpected--,this.expectCharacter(93),this.optionalOperator("=")){var n=this.parseConditional();t=new zn(this.span(t.span.start),t,e,n)}else t=new Un(this.span(t.span.start),t,e)}else if(this.optionalCharacter(40)){this.rparensExpected++;var r=this.parseCallArguments();this.rparensExpected--,this.expectCharacter(41),t=new nr(this.span(t.span.start),t,r)}else{if(!this.optionalOperator("!"))return t;t=new Jn(this.span(t.span.start),t)}},t.prototype.parsePrimary=function(){var t=this.inputIndex;if(this.optionalCharacter(40)){this.rparensExpected++;var e=this.parsePipe();return this.rparensExpected--,this.expectCharacter(41),e}if(this.next.isKeywordNull())return this.advance(),new Qn(this.span(t),null);if(this.next.isKeywordUndefined())return this.advance(),new Qn(this.span(t),void 0);if(this.next.isKeywordTrue())return this.advance(),new Qn(this.span(t),!0);if(this.next.isKeywordFalse())return this.advance(),new Qn(this.span(t),!1);if(this.next.isKeywordThis())return this.advance(),new Fn(this.span(t));if(this.optionalCharacter(91)){this.rbracketsExpected++;var n=this.parseExpressionList(93);return this.rbracketsExpected--,this.expectCharacter(93),new Gn(this.span(t),n)}if(this.next.isCharacter(mn))return this.parseLiteralMap();if(this.next.isIdentifier())return this.parseAccessMemberOrMethodCall(new Fn(this.span(t)),!1);if(this.next.isNumber()){var r=this.next.toNumber();return this.advance(),new Qn(this.span(t),r)}if(this.next.isString()){var i=this.next.toString();return this.advance(),new Qn(this.span(t),i)}return this.index>=this.tokens.length?(this.error("Unexpected end of expression: "+this.input),new Ln(this.span(t))):(this.error("Unexpected token "+this.next),new Ln(this.span(t)))},t.prototype.parseExpressionList=function(t){var e=[];if(!this.next.isCharacter(t))do{e.push(this.parsePipe())}while(this.optionalCharacter(44));return e},t.prototype.parseLiteralMap=function(){var t=[],e=[],n=this.inputIndex;if(this.expectCharacter(mn),!this.optionalCharacter(125)){this.rbracesExpected++;do{var r=this.next.isString(),i=this.expectIdentifierOrKeywordOrString();t.push({key:i,quoted:r}),this.expectCharacter(58),e.push(this.parsePipe())}while(this.optionalCharacter(44));this.rbracesExpected--,this.expectCharacter(125)}return new Xn(this.span(n),t,e)},t.prototype.parseAccessMemberOrMethodCall=function(t,e){void 0===e&&(e=!1);var n=t.span.start,r=this.expectIdentifierOrKeyword();if(this.optionalCharacter(40)){this.rparensExpected++;var i=this.parseCallArguments();this.expectCharacter(41),this.rparensExpected--;var o=this.span(n);return e?new er(o,t,r,i):new tr(o,t,r,i)}if(e)return this.optionalOperator("=")?(this.error("The '?.' operator cannot be used in the assignment"),new Ln(this.span(n))):new Kn(this.span(n),t,r);if(this.optionalOperator("=")){if(!this.parseAction)return this.error("Bindings cannot contain assignments"),new Ln(this.span(n));var s=this.parseConditional();return new qn(this.span(n),t,r,s)}return new Bn(this.span(n),t,r)},t.prototype.parseCallArguments=function(){if(this.next.isCharacter(41))return[];var t=[];do{t.push(this.parsePipe())}while(this.optionalCharacter(44));return t},t.prototype.expectTemplateBindingKey=function(){var t="",e=!1;do{t+=this.expectIdentifierOrKeywordOrString(),(e=this.optionalOperator("-"))&&(t+="-")}while(e);return t.toString()},t.prototype.parseTemplateBindings=function(t){var e=!0,n=[];do{var r=this.inputIndex,i=void 0,o=void 0,s=!1;e?(i=o=t,e=!1):((s=this.peekKeywordLet())&&this.advance(),i=this.expectTemplateBindingKey(),o=s?i:t+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!==Pn&&!this.peekKeywordLet()){var c=this.inputIndex,l=this.parsePipe(),p=this.input.substring(c-this.offset,this.inputIndex-this.offset);u=new rr(l,p,this.location,this.errors)}if(n.push(new ir(this.span(r),o,s,a,u)),this.peekKeywordAs()&&!s){var h=this.inputIndex;this.advance();var f=this.expectTemplateBindingKey();n.push(new ir(this.span(h),f,!0,o,null))}this.optionalCharacter(tn)||this.optionalCharacter(44)}while(this.index<this.tokens.length);return new yr(n,[],this.errors)},t.prototype.error=function(t,e){void 0===e&&(e=null),this.errors.push(new In(t,this.input,this.locationText(e),this.location)),this.skip()},t.prototype.locationText=function(t){return void 0===t&&(t=null),null==t&&(t=this.index),t<this.tokens.length?"at column "+(this.tokens[t].index+1)+" in":"at the end of the expression"},t.prototype.skip=function(){for(var t=this.next;this.index<this.tokens.length&&!t.isCharacter(tn)&&(this.rparensExpected<=0||!t.isCharacter(41))&&(this.rbracesExpected<=0||!t.isCharacter(125))&&(this.rbracketsExpected<=0||!t.isCharacter(93));)this.next.isError()&&this.errors.push(new In(this.next.toString(),this.input,this.locationText(),this.location)),this.advance(),t=this.next},t}(),wr=function(){function t(){this.errors=[]}return t.check=function(e){var n=new t;return e.visit(n),n.errors},t.prototype.visitImplicitReceiver=function(t,e){},t.prototype.visitInterpolation=function(t,e){},t.prototype.visitLiteralPrimitive=function(t,e){},t.prototype.visitPropertyRead=function(t,e){},t.prototype.visitPropertyWrite=function(t,e){},t.prototype.visitSafePropertyRead=function(t,e){},t.prototype.visitMethodCall=function(t,e){},t.prototype.visitSafeMethodCall=function(t,e){},t.prototype.visitFunctionCall=function(t,e){},t.prototype.visitLiteralArray=function(t,e){this.visitAll(t.expressions)},t.prototype.visitLiteralMap=function(t,e){this.visitAll(t.values)},t.prototype.visitBinary=function(t,e){},t.prototype.visitPrefixNot=function(t,e){},t.prototype.visitNonNullAssert=function(t,e){},t.prototype.visitConditional=function(t,e){},t.prototype.visitPipe=function(t,e){this.errors.push("pipes")},t.prototype.visitKeyedRead=function(t,e){},t.prototype.visitKeyedWrite=function(t,e){},t.prototype.visitAll=function(t){var e=this;return t.map(function(t){return t.visit(e)})},t.prototype.visitChain=function(t,e){},t.prototype.visitQuote=function(t,e){},t}(),xr=function(){function t(t,e,n,r){this.file=t,this.offset=e,this.line=n,this.col=r}return t.prototype.toString=function(){return null!=this.offset?this.file.url+"@"+this.line+":"+this.col:this.file.url},t.prototype.moveBy=function(e){for(var n=this.file.content,r=n.length,i=this.offset,o=this.line,s=this.col;i>0&&e<0;)if(e++,(u=n.charCodeAt(--i))==Ke){o--;var a=n.substr(0,i-1).lastIndexOf(String.fromCharCode(Ke));s=a>0?i-a:i}else s--;for(;i<r&&e>0;){var u=n.charCodeAt(i);i++,e--,u==Ke?(o++,s=0):s++}return new t(this.file,i,o,s)},t.prototype.getContext=function(t,e){var n=this.file.content,r=this.offset;if(null!=r){r>n.length-1&&(r=n.length-1);for(var i=r,o=0,s=0;o<t&&r>0&&(o++,"\n"!=n[--r]||++s!=e););for(o=0,s=0;o<t&&i<n.length-1&&(o++,"\n"!=n[++i]||++s!=e););return{before:n.substring(r,this.offset),after:n.substring(this.offset,i+1)}}return null},t}(),Er=function Er(t,e){this.content=t,this.url=e},Sr=function(){function t(t,e,n){void 0===n&&(n=null),this.start=t,this.end=e,this.details=n}return t.prototype.toString=function(){return this.start.file.content.substring(this.start.offset,this.end.offset)},t}();!function(t){t[t.WARNING=0]="WARNING",t[t.ERROR=1]="ERROR"}(gr||(gr={}));var Cr,Tr=function(){function t(t,e,n){void 0===n&&(n=gr.ERROR),this.span=t,this.msg=e,this.level=n}return t.prototype.contextualMessage=function(){var t=this.span.start.getContext(100,3);return t?this.msg+' ("'+t.before+"["+gr[this.level]+" ->]"+t.after+'")':this.msg},t.prototype.toString=function(){var t=this.span.details?", "+this.span.details:"";return this.contextualMessage()+": "+this.span.start+t},t}();
98
+ */(r):parseFloat(r))},t.prototype.scanString=function(){var t=this.index,e=this.peek;this.advance();for(var n="",r=this.index,i=this.input;this.peek!=e;)if(92==this.peek){n+=i.substring(r,this.index),this.advance();var o=void 0;if(this.peek=this.peek,117==this.peek){var s=i.substring(this.index+1,this.index+5);if(!/^[0-9a-f]+$/i.test(s))return this.error("Invalid unicode escape [\\u"+s+"]",0);o=parseInt(s,16);for(var a=0;a<5;a++)this.advance()}else o=Dn(this.peek),this.advance();n+=String.fromCharCode(o),r=this.index}else{if(this.peek==Ue)return this.error("Unterminated quote",0);this.advance()}var u=i.substring(r,this.index);return this.advance(),function c(t,e){return new Cn(t,Ke.String,0,e)}(t,n+u)},t.prototype.error=function(t,e){var n=this.index+e;return function r(t,e){return new Cn(t,Ke.Error,0,e)}(n,"Lexer Error: "+t+" at column "+n+" in expression ["+this.input+"]")},t}();function Mn(t){return fn<=t&&t<=_n||cn<=t&&t<=pn||t==hn||t==$e}function In(t){return Sn(t)||En(t)||t==hn||t==$e}function Rn(t){return t==en||t==tn}function Dn(t){switch(t){case vn:return We;case dn:return Ge;case yn:return Xe;case mn:return ze;case gn:return Qe;default:return t}}var jn=function jn(t,e,n,r){this.input=e,this.errLocation=n,this.ctxLocation=r,this.message="Parser Error: "+t+" "+n+" ["+e+"] in "+r},Ln=function Ln(t,e){this.start=t,this.end=e},Fn=function(){function t(t){this.span=t}return t.prototype.visit=function(t,e){return void 0===e&&(e=null),null},t.prototype.toString=function(){return"AST"},t}(),Vn=function(t){function e(e,n,r,i){var o=t.call(this,e)||this;return o.prefix=n,o.uninterpretedExpression=r,o.location=i,o}return o(e,t),e.prototype.visit=function(t,e){return void 0===e&&(e=null),t.visitQuote(this,e)},e.prototype.toString=function(){return"Quote"},e}(Fn),Hn=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o(e,t),e.prototype.visit=function(t,e){void 0===e&&(e=null)},e}(Fn),Bn=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o(e,t),e.prototype.visit=function(t,e){return void 0===e&&(e=null),t.visitImplicitReceiver(this,e)},e}(Fn),qn=function(t){function e(e,n){var r=t.call(this,e)||this;return r.expressions=n,r}return o(e,t),e.prototype.visit=function(t,e){return void 0===e&&(e=null),t.visitChain(this,e)},e}(Fn),Kn=function(t){function e(e,n,r,i){var o=t.call(this,e)||this;return o.condition=n,o.trueExp=r,o.falseExp=i,o}return o(e,t),e.prototype.visit=function(t,e){return void 0===e&&(e=null),t.visitConditional(this,e)},e}(Fn),Un=function(t){function e(e,n,r){var i=t.call(this,e)||this;return i.receiver=n,i.name=r,i}return o(e,t),e.prototype.visit=function(t,e){return void 0===e&&(e=null),t.visitPropertyRead(this,e)},e}(Fn),zn=function(t){function e(e,n,r,i){var o=t.call(this,e)||this;return o.receiver=n,o.name=r,o.value=i,o}return o(e,t),e.prototype.visit=function(t,e){return void 0===e&&(e=null),t.visitPropertyWrite(this,e)},e}(Fn),Wn=function(t){function e(e,n,r){var i=t.call(this,e)||this;return i.receiver=n,i.name=r,i}return o(e,t),e.prototype.visit=function(t,e){return void 0===e&&(e=null),t.visitSafePropertyRead(this,e)},e}(Fn),Qn=function(t){function e(e,n,r){var i=t.call(this,e)||this;return i.obj=n,i.key=r,i}return o(e,t),e.prototype.visit=function(t,e){return void 0===e&&(e=null),t.visitKeyedRead(this,e)},e}(Fn),Gn=function(t){function e(e,n,r,i){var o=t.call(this,e)||this;return o.obj=n,o.key=r,o.value=i,o}return o(e,t),e.prototype.visit=function(t,e){return void 0===e&&(e=null),t.visitKeyedWrite(this,e)},e}(Fn),Xn=function(t){function e(e,n,r,i){var o=t.call(this,e)||this;return o.exp=n,o.name=r,o.args=i,o}return o(e,t),e.prototype.visit=function(t,e){return void 0===e&&(e=null),t.visitPipe(this,e)},e}(Fn),Yn=function(t){function e(e,n){var r=t.call(this,e)||this;return r.value=n,r}return o(e,t),e.prototype.visit=function(t,e){return void 0===e&&(e=null),t.visitLiteralPrimitive(this,e)},e}(Fn),Zn=function(t){function e(e,n){var r=t.call(this,e)||this;return r.expressions=n,r}return o(e,t),e.prototype.visit=function(t,e){return void 0===e&&(e=null),t.visitLiteralArray(this,e)},e}(Fn),$n=function(t){function e(e,n,r){var i=t.call(this,e)||this;return i.keys=n,i.values=r,i}return o(e,t),e.prototype.visit=function(t,e){return void 0===e&&(e=null),t.visitLiteralMap(this,e)},e}(Fn),Jn=function(t){function e(e,n,r){var i=t.call(this,e)||this;return i.strings=n,i.expressions=r,i}return o(e,t),e.prototype.visit=function(t,e){return void 0===e&&(e=null),t.visitInterpolation(this,e)},e}(Fn),tr=function(t){function e(e,n,r,i){var o=t.call(this,e)||this;return o.operation=n,o.left=r,o.right=i,o}return o(e,t),e.prototype.visit=function(t,e){return void 0===e&&(e=null),t.visitBinary(this,e)},e}(Fn),er=function(t){function e(e,n){var r=t.call(this,e)||this;return r.expression=n,r}return o(e,t),e.prototype.visit=function(t,e){return void 0===e&&(e=null),t.visitPrefixNot(this,e)},e}(Fn),nr=function(t){function e(e,n){var r=t.call(this,e)||this;return r.expression=n,r}return o(e,t),e.prototype.visit=function(t,e){return void 0===e&&(e=null),t.visitNonNullAssert(this,e)},e}(Fn),rr=function(t){function e(e,n,r,i){var o=t.call(this,e)||this;return o.receiver=n,o.name=r,o.args=i,o}return o(e,t),e.prototype.visit=function(t,e){return void 0===e&&(e=null),t.visitMethodCall(this,e)},e}(Fn),ir=function(t){function e(e,n,r,i){var o=t.call(this,e)||this;return o.receiver=n,o.name=r,o.args=i,o}return o(e,t),e.prototype.visit=function(t,e){return void 0===e&&(e=null),t.visitSafeMethodCall(this,e)},e}(Fn),or=function(t){function e(e,n,r){var i=t.call(this,e)||this;return i.target=n,i.args=r,i}return o(e,t),e.prototype.visit=function(t,e){return void 0===e&&(e=null),t.visitFunctionCall(this,e)},e}(Fn),sr=function(t){function e(e,n,r,i){var o=t.call(this,new Ln(0,null==n?0:n.length))||this;return o.ast=e,o.source=n,o.location=r,o.errors=i,o}return o(e,t),e.prototype.visit=function(t,e){return void 0===e&&(e=null),this.ast.visit(t,e)},e.prototype.toString=function(){return this.source+" in "+this.location},e}(Fn),ar=function ar(t,e,n,r,i){this.span=t,this.key=e,this.keyIsVar=n,this.name=r,this.expression=i},ur=function(){function t(){}return t.prototype.visitBinary=function(t,e){},t.prototype.visitChain=function(t,e){},t.prototype.visitConditional=function(t,e){},t.prototype.visitFunctionCall=function(t,e){},t.prototype.visitImplicitReceiver=function(t,e){},t.prototype.visitInterpolation=function(t,e){},t.prototype.visitKeyedRead=function(t,e){},t.prototype.visitKeyedWrite=function(t,e){},t.prototype.visitLiteralArray=function(t,e){},t.prototype.visitLiteralMap=function(t,e){},t.prototype.visitLiteralPrimitive=function(t,e){},t.prototype.visitMethodCall=function(t,e){},t.prototype.visitPipe=function(t,e){},t.prototype.visitPrefixNot=function(t,e){},t.prototype.visitNonNullAssert=function(t,e){},t.prototype.visitPropertyRead=function(t,e){},t.prototype.visitPropertyWrite=function(t,e){},t.prototype.visitQuote=function(t,e){},t.prototype.visitSafeMethodCall=function(t,e){},t.prototype.visitSafePropertyRead=function(t,e){},t}(),cr=function(){function t(){}return t.prototype.visitBinary=function(t,e){return t.left.visit(this),t.right.visit(this),null},t.prototype.visitChain=function(t,e){return this.visitAll(t.expressions,e)},t.prototype.visitConditional=function(t,e){return t.condition.visit(this),t.trueExp.visit(this),t.falseExp.visit(this),null},t.prototype.visitPipe=function(t,e){return t.exp.visit(this),this.visitAll(t.args,e),null},t.prototype.visitFunctionCall=function(t,e){return t.target.visit(this),this.visitAll(t.args,e),null},t.prototype.visitImplicitReceiver=function(t,e){return null},t.prototype.visitInterpolation=function(t,e){return this.visitAll(t.expressions,e)},t.prototype.visitKeyedRead=function(t,e){return t.obj.visit(this),t.key.visit(this),null},t.prototype.visitKeyedWrite=function(t,e){return t.obj.visit(this),t.key.visit(this),t.value.visit(this),null},t.prototype.visitLiteralArray=function(t,e){return this.visitAll(t.expressions,e)},t.prototype.visitLiteralMap=function(t,e){return this.visitAll(t.values,e)},t.prototype.visitLiteralPrimitive=function(t,e){return null},t.prototype.visitMethodCall=function(t,e){return t.receiver.visit(this),this.visitAll(t.args,e)},t.prototype.visitPrefixNot=function(t,e){return t.expression.visit(this),null},t.prototype.visitNonNullAssert=function(t,e){return t.expression.visit(this),null},t.prototype.visitPropertyRead=function(t,e){return t.receiver.visit(this),null},t.prototype.visitPropertyWrite=function(t,e){return t.receiver.visit(this),t.value.visit(this),null},t.prototype.visitSafePropertyRead=function(t,e){return t.receiver.visit(this),null},t.prototype.visitSafeMethodCall=function(t,e){return t.receiver.visit(this),this.visitAll(t.args,e)},t.prototype.visitAll=function(t,e){var n=this;return t.forEach(function(t){return t.visit(n,e)}),null},t.prototype.visitQuote=function(t,e){return null},t}(),lr=function(){function t(){}return t.prototype.visitImplicitReceiver=function(t,e){return t},t.prototype.visitInterpolation=function(t,e){return new Jn(t.span,t.strings,this.visitAll(t.expressions))},t.prototype.visitLiteralPrimitive=function(t,e){return new Yn(t.span,t.value)},t.prototype.visitPropertyRead=function(t,e){return new Un(t.span,t.receiver.visit(this),t.name)},t.prototype.visitPropertyWrite=function(t,e){return new zn(t.span,t.receiver.visit(this),t.name,t.value.visit(this))},t.prototype.visitSafePropertyRead=function(t,e){return new Wn(t.span,t.receiver.visit(this),t.name)},t.prototype.visitMethodCall=function(t,e){return new rr(t.span,t.receiver.visit(this),t.name,this.visitAll(t.args))},t.prototype.visitSafeMethodCall=function(t,e){return new ir(t.span,t.receiver.visit(this),t.name,this.visitAll(t.args))},t.prototype.visitFunctionCall=function(t,e){return new or(t.span,t.target.visit(this),this.visitAll(t.args))},t.prototype.visitLiteralArray=function(t,e){return new Zn(t.span,this.visitAll(t.expressions))},t.prototype.visitLiteralMap=function(t,e){return new $n(t.span,t.keys,this.visitAll(t.values))},t.prototype.visitBinary=function(t,e){return new tr(t.span,t.operation,t.left.visit(this),t.right.visit(this))},t.prototype.visitPrefixNot=function(t,e){return new er(t.span,t.expression.visit(this))},t.prototype.visitNonNullAssert=function(t,e){return new nr(t.span,t.expression.visit(this))},t.prototype.visitConditional=function(t,e){return new Kn(t.span,t.condition.visit(this),t.trueExp.visit(this),t.falseExp.visit(this))},t.prototype.visitPipe=function(t,e){return new Xn(t.span,t.exp.visit(this),t.name,this.visitAll(t.args))},t.prototype.visitKeyedRead=function(t,e){return new Qn(t.span,t.obj.visit(this),t.key.visit(this))},t.prototype.visitKeyedWrite=function(t,e){return new Gn(t.span,t.obj.visit(this),t.key.visit(this),t.value.visit(this))},t.prototype.visitAll=function(t){for(var e=new Array(t.length),n=0;n<t.length;++n)e[n]=t[n].visit(this);return e},t.prototype.visitChain=function(t,e){return new qn(t.span,this.visitAll(t.expressions))},t.prototype.visitQuote=function(t,e){return new Vn(t.span,t.prefix,t.uninterpretedExpression,t.location)},t}(),pr=function(){function t(){}return t.prototype.visitImplicitReceiver=function(t,e){return t},t.prototype.visitInterpolation=function(t,e){var n=this.visitAll(t.expressions);return n!==t.expressions?new Jn(t.span,t.strings,n):t},t.prototype.visitLiteralPrimitive=function(t,e){return t},t.prototype.visitPropertyRead=function(t,e){var n=t.receiver.visit(this);return n!==t.receiver?new Un(t.span,n,t.name):t},t.prototype.visitPropertyWrite=function(t,e){var n=t.receiver.visit(this),r=t.value.visit(this);return n!==t.receiver||r!==t.value?new zn(t.span,n,t.name,r):t},t.prototype.visitSafePropertyRead=function(t,e){var n=t.receiver.visit(this);return n!==t.receiver?new Wn(t.span,n,t.name):t},t.prototype.visitMethodCall=function(t,e){var n=t.receiver.visit(this);return n!==t.receiver?new rr(t.span,n,t.name,this.visitAll(t.args)):t},t.prototype.visitSafeMethodCall=function(t,e){var n=t.receiver.visit(this),r=this.visitAll(t.args);return n!==t.receiver||r!==t.args?new ir(t.span,n,t.name,r):t},t.prototype.visitFunctionCall=function(t,e){var n=t.target&&t.target.visit(this),r=this.visitAll(t.args);return n!==t.target||r!==t.args?new or(t.span,n,r):t},t.prototype.visitLiteralArray=function(t,e){var n=this.visitAll(t.expressions);return n!==t.expressions?new Zn(t.span,n):t},t.prototype.visitLiteralMap=function(t,e){var n=this.visitAll(t.values);return n!==t.values?new $n(t.span,t.keys,n):t},t.prototype.visitBinary=function(t,e){var n=t.left.visit(this),r=t.right.visit(this);return n!==t.left||r!==t.right?new tr(t.span,t.operation,n,r):t},t.prototype.visitPrefixNot=function(t,e){var n=t.expression.visit(this);return n!==t.expression?new er(t.span,n):t},t.prototype.visitNonNullAssert=function(t,e){var n=t.expression.visit(this);return n!==t.expression?new nr(t.span,n):t},t.prototype.visitConditional=function(t,e){var n=t.condition.visit(this),r=t.trueExp.visit(this),i=t.falseExp.visit(this);return n!==t.condition||r!==t.trueExp||i!=i?new Kn(t.span,n,r,i):t},t.prototype.visitPipe=function(t,e){var n=t.exp.visit(this),r=this.visitAll(t.args);return n!==t.exp||r!==t.args?new Xn(t.span,n,t.name,r):t},t.prototype.visitKeyedRead=function(t,e){var n=t.obj.visit(this),r=t.key.visit(this);return n!==t.obj||r!==t.key?new Qn(t.span,n,r):t},t.prototype.visitKeyedWrite=function(t,e){var n=t.obj.visit(this),r=t.key.visit(this),i=t.value.visit(this);return n!==t.obj||r!==t.key||i!==t.value?new Gn(t.span,n,r,i):t},t.prototype.visitAll=function(t){for(var e=new Array(t.length),n=!1,r=0;r<t.length;++r){var i=t[r],o=i.visit(this);e[r]=o,n=n||o!==i}return n?e:t},t.prototype.visitChain=function(t,e){var n=this.visitAll(t.expressions);return n!==t.expressions?new qn(t.span,n):t},t.prototype.visitQuote=function(t,e){return t},t}();function hr(t,e,n){function r(t){e.visit&&e.visit(t,n)||t.visit(e,n)}function i(t){t.forEach(r)}t.visit({visitBinary:function(t){r(t.left),r(t.right)},visitChain:function(t){i(t.expressions)},visitConditional:function(t){r(t.condition),r(t.trueExp),r(t.falseExp)},visitFunctionCall:function(t){t.target&&r(t.target),i(t.args)},visitImplicitReceiver:function(t){},visitInterpolation:function(t){i(t.expressions)},visitKeyedRead:function(t){r(t.obj),r(t.key)},visitKeyedWrite:function(t){r(t.obj),r(t.key),r(t.obj)},visitLiteralArray:function(t){i(t.expressions)},visitLiteralMap:function(t){},visitLiteralPrimitive:function(t){},visitMethodCall:function(t){r(t.receiver),i(t.args)},visitPipe:function(t){r(t.exp),i(t.args)},visitPrefixNot:function(t){r(t.expression)},visitNonNullAssert:function(t){r(t.expression)},visitPropertyRead:function(t){r(t.receiver)},visitPropertyWrite:function(t){r(t.receiver),r(t.value)},visitQuote:function(t){},visitSafeMethodCall:function(t){r(t.receiver),i(t.args)},visitSafePropertyRead:function(t){r(t.receiver)}})}var fr,dr=function dr(t,e,n,r){this.name=t,this.expression=e,this.type=n,this.sourceSpan=r,this.isLiteral=this.type===fr.LITERAL_ATTR,this.isAnimation=this.type===fr.ANIMATION};!function(t){t[t.DEFAULT=0]="DEFAULT",t[t.LITERAL_ATTR=1]="LITERAL_ATTR",t[t.ANIMATION=2]="ANIMATION"}(fr||(fr={}));var vr=function vr(t,e,n,r,i){this.name=t,this.targetOrPhase=e,this.type=n,this.handler=r,this.sourceSpan=i},yr=function yr(t,e,n){this.name=t,this.value=e,this.sourceSpan=n},mr=function mr(t,e,n,r,i,o){this.name=t,this.type=e,this.securityContext=n,this.value=r,this.unit=i,this.sourceSpan=o},gr=function gr(t,e,n){this.strings=t,this.expressions=e,this.offsets=n},_r=function _r(t,e,n){this.templateBindings=t,this.warnings=e,this.errors=n};function br(t){var e=dt(t.start)+"([\\s\\S]*?)"+dt(t.end);return new RegExp(e,"g")}var wr,xr=function(){function t(t){this._lexer=t,this.errors=[]}return t.prototype.parseAction=function(t,e,n){void 0===n&&(n=_e),this._checkNoInterpolation(t,e,n);var r=this._stripComments(t),i=this._lexer.tokenize(this._stripComments(t)),o=new Er(t,e,i,r.length,!0,this.errors,t.length-r.length).parseChain();return new sr(o,t,e,this.errors)},t.prototype.parseBinding=function(t,e,n){void 0===n&&(n=_e);var r=this._parseBindingAst(t,e,n);return new sr(r,t,e,this.errors)},t.prototype.parseSimpleBinding=function(t,e,n){void 0===n&&(n=_e);var r=this._parseBindingAst(t,e,n),i=Sr.check(r);return i.length>0&&this._reportError("Host binding expression cannot contain "+i.join(" "),t,e),new sr(r,t,e,this.errors)},t.prototype._reportError=function(t,e,n,r){this.errors.push(new jn(t,e,n,r))},t.prototype._parseBindingAst=function(t,e,n){var r=this._parseQuote(t,e);if(null!=r)return r;this._checkNoInterpolation(t,e,n);var i=this._stripComments(t),o=this._lexer.tokenize(i);return new Er(t,e,o,i.length,!1,this.errors,t.length-i.length).parseChain()},t.prototype._parseQuote=function(t,e){if(null==t)return null;var n=t.indexOf(":");if(-1==n)return null;var r=t.substring(0,n).trim();if(!function i(t){if(0==t.length)return!1;var e=new On(t);if(!Mn(e.peek))return!1;for(e.advance();e.peek!==Ue;){if(!In(e.peek))return!1;e.advance()}return!0}(r))return null;var o=t.substring(n+1);return new Vn(new Ln(0,t.length),r,o,e)},t.prototype.parseTemplateBindings=function(t,e,n){var r=this._lexer.tokenize(e);return new Er(e,n,r,e.length,!1,this.errors,0).parseTemplateBindings(t)},t.prototype.parseInterpolation=function(t,e,n){void 0===n&&(n=_e);var r=this.splitInterpolation(t,e,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),c=new Er(t,e,u,a.length,!1,this.errors,r.offsets[o]+(s.length-a.length)).parseChain();i.push(c)}return new sr(new Jn(new Ln(0,null==t?0:t.length),r.strings,i),t,e,this.errors)},t.prototype.splitInterpolation=function(t,e,n){void 0===n&&(n=_e);var r=br(n),i=t.split(r);if(i.length<=1)return null;for(var o=[],s=[],a=[],u=0,c=0;c<i.length;c++){var l=i[c];c%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",t,"at column "+this._findInterpolationErrorColumn(i,c,n)+" in",e),s.push("$implict"),a.push(u))}return new gr(o,s,a)},t.prototype.wrapLiteralPrimitive=function(t,e){return new sr(new Yn(new Ln(0,null==t?0:t.length),t),t,e,this.errors)},t.prototype._stripComments=function(t){var e=this._commentStart(t);return null!=e?t.substring(0,e).trim():t},t.prototype._commentStart=function(t){for(var e,n=null,r=0;r<t.length-1;r++){var i=t.charCodeAt(r),o=t.charCodeAt(r+1);if(i===nn&&o==nn&&null==n)return r;n===i?n=null:null==n&&((e=i)===Je||e===Ze||96===e)&&(n=i)}return null},t.prototype._checkNoInterpolation=function(t,e,n){var r=br(n),i=t.split(r);i.length>1&&this._reportError("Got interpolation ("+n.start+n.end+") where expression was expected",t,"at column "+this._findInterpolationErrorColumn(i,1,n)+" in",e)},t.prototype._findInterpolationErrorColumn=function(t,e,n){for(var r="",i=0;i<e;i++)r+=i%2==0?t[i]:""+n.start+t[i]+n.end;return r.length},t}(),Er=function(){function t(t,e,n,r,i,o,s){this.input=t,this.location=e,this.tokens=n,this.inputLength=r,this.parseAction=i,this.errors=o,this.offset=s,this.rparensExpected=0,this.rbracketsExpected=0,this.rbracesExpected=0,this.index=0}return t.prototype.peek=function(t){var e=this.index+t;return e<this.tokens.length?this.tokens[e]:kn},Object.defineProperty(t.prototype,"next",{get:function(){return this.peek(0)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"inputIndex",{get:function(){return this.index<this.tokens.length?this.next.index+this.offset:this.inputLength+this.offset},enumerable:!0,configurable:!0}),t.prototype.span=function(t){return new Ln(t,this.inputIndex)},t.prototype.advance=function(){this.index++},t.prototype.optionalCharacter=function(t){return!!this.next.isCharacter(t)&&(this.advance(),!0)},t.prototype.peekKeywordLet=function(){return this.next.isKeywordLet()},t.prototype.peekKeywordAs=function(){return this.next.isKeywordAs()},t.prototype.expectCharacter=function(t){this.optionalCharacter(t)||this.error("Missing expected "+String.fromCharCode(t))},t.prototype.optionalOperator=function(t){return!!this.next.isOperator(t)&&(this.advance(),!0)},t.prototype.expectOperator=function(t){this.optionalOperator(t)||this.error("Missing expected operator "+t)},t.prototype.expectIdentifierOrKeyword=function(){var t=this.next;return t.isIdentifier()||t.isKeyword()?(this.advance(),t.toString()):(this.error("Unexpected token "+t+", expected identifier or keyword"),"")},t.prototype.expectIdentifierOrKeywordOrString=function(){var t=this.next;return t.isIdentifier()||t.isKeyword()||t.isString()?(this.advance(),t.toString()):(this.error("Unexpected token "+t+", expected identifier, keyword, or string"),"")},t.prototype.parseChain=function(){for(var t=[],e=this.inputIndex;this.index<this.tokens.length;){var n=this.parsePipe();if(t.push(n),this.optionalCharacter(rn))for(this.parseAction||this.error("Binding expression cannot contain chained expression");this.optionalCharacter(rn););else this.index<this.tokens.length&&this.error("Unexpected token '"+this.next+"'")}return 0==t.length?new Hn(this.span(e)):1==t.length?t[0]:new qn(this.span(e),t)},t.prototype.parsePipe=function(){var t=this.parseExpression();if(this.optionalOperator("|")){this.parseAction&&this.error("Cannot have a pipe in an action expression");do{for(var e=this.expectIdentifierOrKeyword(),n=[];this.optionalCharacter(58);)n.push(this.parseExpression());t=new Xn(this.span(t.span.start),t,e,n)}while(this.optionalOperator("|"))}return t},t.prototype.parseExpression=function(){return this.parseConditional()},t.prototype.parseConditional=function(){var t=this.inputIndex,e=this.parseLogicalOr();if(this.optionalOperator("?")){var n=this.parsePipe(),r=void 0;if(this.optionalCharacter(58))r=this.parsePipe();else{var i=this.input.substring(t,this.inputIndex);this.error("Conditional expression "+i+" requires all 3 expressions"),r=new Hn(this.span(t))}return new Kn(this.span(t),e,n,r)}return e},t.prototype.parseLogicalOr=function(){for(var t=this.parseLogicalAnd();this.optionalOperator("||");){var e=this.parseLogicalAnd();t=new tr(this.span(t.span.start),"||",t,e)}return t},t.prototype.parseLogicalAnd=function(){for(var t=this.parseEquality();this.optionalOperator("&&");){var e=this.parseEquality();t=new tr(this.span(t.span.start),"&&",t,e)}return t},t.prototype.parseEquality=function(){for(var t=this.parseRelational();this.next.type==Ke.Operator;){var e=this.next.strValue;switch(e){case"==":case"===":case"!=":case"!==":this.advance();var n=this.parseRelational();t=new tr(this.span(t.span.start),e,t,n);continue}break}return t},t.prototype.parseRelational=function(){for(var t=this.parseAdditive();this.next.type==Ke.Operator;){var e=this.next.strValue;switch(e){case"<":case">":case"<=":case">=":this.advance();var n=this.parseAdditive();t=new tr(this.span(t.span.start),e,t,n);continue}break}return t},t.prototype.parseAdditive=function(){for(var t=this.parseMultiplicative();this.next.type==Ke.Operator;){var e=this.next.strValue;switch(e){case"+":case"-":this.advance();var n=this.parseMultiplicative();t=new tr(this.span(t.span.start),e,t,n);continue}break}return t},t.prototype.parseMultiplicative=function(){for(var t=this.parsePrefix();this.next.type==Ke.Operator;){var e=this.next.strValue;switch(e){case"*":case"%":case"/":this.advance();var n=this.parsePrefix();t=new tr(this.span(t.span.start),e,t,n);continue}break}return t},t.prototype.parsePrefix=function(){if(this.next.type==Ke.Operator){var t=this.inputIndex,e=this.next.strValue,n=void 0;switch(e){case"+":return this.advance(),n=this.parsePrefix(),new tr(this.span(t),"-",n,new Yn(new Ln(t,t),0));case"-":return this.advance(),n=this.parsePrefix(),new tr(this.span(t),e,new Yn(new Ln(t,t),0),n);case"!":return this.advance(),n=this.parsePrefix(),new er(this.span(t),n)}}return this.parseCallChain()},t.prototype.parseCallChain=function(){for(var t=this.parsePrimary();;)if(this.optionalCharacter(46))t=this.parseAccessMemberOrMethodCall(t,!1);else if(this.optionalOperator("?."))t=this.parseAccessMemberOrMethodCall(t,!0);else if(this.optionalCharacter(91)){this.rbracketsExpected++;var e=this.parsePipe();if(this.rbracketsExpected--,this.expectCharacter(93),this.optionalOperator("=")){var n=this.parseConditional();t=new Gn(this.span(t.span.start),t,e,n)}else t=new Qn(this.span(t.span.start),t,e)}else if(this.optionalCharacter(40)){this.rparensExpected++;var r=this.parseCallArguments();this.rparensExpected--,this.expectCharacter(41),t=new or(this.span(t.span.start),t,r)}else{if(!this.optionalOperator("!"))return t;t=new nr(this.span(t.span.start),t)}},t.prototype.parsePrimary=function(){var t=this.inputIndex;if(this.optionalCharacter(40)){this.rparensExpected++;var e=this.parsePipe();return this.rparensExpected--,this.expectCharacter(41),e}if(this.next.isKeywordNull())return this.advance(),new Yn(this.span(t),null);if(this.next.isKeywordUndefined())return this.advance(),new Yn(this.span(t),void 0);if(this.next.isKeywordTrue())return this.advance(),new Yn(this.span(t),!0);if(this.next.isKeywordFalse())return this.advance(),new Yn(this.span(t),!1);if(this.next.isKeywordThis())return this.advance(),new Bn(this.span(t));if(this.optionalCharacter(91)){this.rbracketsExpected++;var n=this.parseExpressionList(93);return this.rbracketsExpected--,this.expectCharacter(93),new Zn(this.span(t),n)}if(this.next.isCharacter(bn))return this.parseLiteralMap();if(this.next.isIdentifier())return this.parseAccessMemberOrMethodCall(new Bn(this.span(t)),!1);if(this.next.isNumber()){var r=this.next.toNumber();return this.advance(),new Yn(this.span(t),r)}if(this.next.isString()){var i=this.next.toString();return this.advance(),new Yn(this.span(t),i)}return this.index>=this.tokens.length?(this.error("Unexpected end of expression: "+this.input),new Hn(this.span(t))):(this.error("Unexpected token "+this.next),new Hn(this.span(t)))},t.prototype.parseExpressionList=function(t){var e=[];if(!this.next.isCharacter(t))do{e.push(this.parsePipe())}while(this.optionalCharacter(44));return e},t.prototype.parseLiteralMap=function(){var t=[],e=[],n=this.inputIndex;if(this.expectCharacter(bn),!this.optionalCharacter(125)){this.rbracesExpected++;do{var r=this.next.isString(),i=this.expectIdentifierOrKeywordOrString();t.push({key:i,quoted:r}),this.expectCharacter(58),e.push(this.parsePipe())}while(this.optionalCharacter(44));this.rbracesExpected--,this.expectCharacter(125)}return new $n(this.span(n),t,e)},t.prototype.parseAccessMemberOrMethodCall=function(t,e){void 0===e&&(e=!1);var n=t.span.start,r=this.expectIdentifierOrKeyword();if(this.optionalCharacter(40)){this.rparensExpected++;var i=this.parseCallArguments();this.expectCharacter(41),this.rparensExpected--;var o=this.span(n);return e?new ir(o,t,r,i):new rr(o,t,r,i)}if(e)return this.optionalOperator("=")?(this.error("The '?.' operator cannot be used in the assignment"),new Hn(this.span(n))):new Wn(this.span(n),t,r);if(this.optionalOperator("=")){if(!this.parseAction)return this.error("Bindings cannot contain assignments"),new Hn(this.span(n));var s=this.parseConditional();return new zn(this.span(n),t,r,s)}return new Un(this.span(n),t,r)},t.prototype.parseCallArguments=function(){if(this.next.isCharacter(41))return[];var t=[];do{t.push(this.parsePipe())}while(this.optionalCharacter(44));return t},t.prototype.expectTemplateBindingKey=function(){var t="",e=!1;do{t+=this.expectIdentifierOrKeywordOrString(),(e=this.optionalOperator("-"))&&(t+="-")}while(e);return t.toString()},t.prototype.parseTemplateBindings=function(t){var e=!0,n=[];do{var r=this.inputIndex,i=void 0,o=void 0,s=!1;e?(i=o=t,e=!1):((s=this.peekKeywordLet())&&this.advance(),i=this.expectTemplateBindingKey(),o=s?i:t+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!==kn&&!this.peekKeywordLet()){var c=this.inputIndex,l=this.parsePipe(),p=this.input.substring(c-this.offset,this.inputIndex-this.offset);u=new sr(l,p,this.location,this.errors)}if(n.push(new ar(this.span(r),o,s,a,u)),this.peekKeywordAs()&&!s){var h=this.inputIndex;this.advance();var f=this.expectTemplateBindingKey();n.push(new ar(this.span(h),f,!0,o,null))}this.optionalCharacter(rn)||this.optionalCharacter(44)}while(this.index<this.tokens.length);return new _r(n,[],this.errors)},t.prototype.error=function(t,e){void 0===e&&(e=null),this.errors.push(new jn(t,this.input,this.locationText(e),this.location)),this.skip()},t.prototype.locationText=function(t){return void 0===t&&(t=null),null==t&&(t=this.index),t<this.tokens.length?"at column "+(this.tokens[t].index+1)+" in":"at the end of the expression"},t.prototype.skip=function(){for(var t=this.next;this.index<this.tokens.length&&!t.isCharacter(rn)&&(this.rparensExpected<=0||!t.isCharacter(41))&&(this.rbracesExpected<=0||!t.isCharacter(125))&&(this.rbracketsExpected<=0||!t.isCharacter(93));)this.next.isError()&&this.errors.push(new jn(this.next.toString(),this.input,this.locationText(),this.location)),this.advance(),t=this.next},t}(),Sr=function(){function t(){this.errors=[]}return t.check=function(e){var n=new t;return e.visit(n),n.errors},t.prototype.visitImplicitReceiver=function(t,e){},t.prototype.visitInterpolation=function(t,e){},t.prototype.visitLiteralPrimitive=function(t,e){},t.prototype.visitPropertyRead=function(t,e){},t.prototype.visitPropertyWrite=function(t,e){},t.prototype.visitSafePropertyRead=function(t,e){},t.prototype.visitMethodCall=function(t,e){},t.prototype.visitSafeMethodCall=function(t,e){},t.prototype.visitFunctionCall=function(t,e){},t.prototype.visitLiteralArray=function(t,e){this.visitAll(t.expressions)},t.prototype.visitLiteralMap=function(t,e){this.visitAll(t.values)},t.prototype.visitBinary=function(t,e){},t.prototype.visitPrefixNot=function(t,e){},t.prototype.visitNonNullAssert=function(t,e){},t.prototype.visitConditional=function(t,e){},t.prototype.visitPipe=function(t,e){this.errors.push("pipes")},t.prototype.visitKeyedRead=function(t,e){},t.prototype.visitKeyedWrite=function(t,e){},t.prototype.visitAll=function(t){var e=this;return t.map(function(t){return t.visit(e)})},t.prototype.visitChain=function(t,e){},t.prototype.visitQuote=function(t,e){},t}(),Cr=function(){function t(t,e,n,r){this.file=t,this.offset=e,this.line=n,this.col=r}return t.prototype.toString=function(){return null!=this.offset?this.file.url+"@"+this.line+":"+this.col:this.file.url},t.prototype.moveBy=function(e){for(var n=this.file.content,r=n.length,i=this.offset,o=this.line,s=this.col;i>0&&e<0;)if(e++,(u=n.charCodeAt(--i))==We){o--;var a=n.substr(0,i-1).lastIndexOf(String.fromCharCode(We));s=a>0?i-a:i}else s--;for(;i<r&&e>0;){var u=n.charCodeAt(i);i++,e--,u==We?(o++,s=0):s++}return new t(this.file,i,o,s)},t.prototype.getContext=function(t,e){var n=this.file.content,r=this.offset;if(null!=r){r>n.length-1&&(r=n.length-1);for(var i=r,o=0,s=0;o<t&&r>0&&(o++,"\n"!=n[--r]||++s!=e););for(o=0,s=0;o<t&&i<n.length-1&&(o++,"\n"!=n[++i]||++s!=e););return{before:n.substring(r,this.offset),after:n.substring(this.offset,i+1)}}return null},t}(),Tr=function Tr(t,e){this.content=t,this.url=e},Pr=function(){function t(t,e,n){void 0===n&&(n=null),this.start=t,this.end=e,this.details=n}return t.prototype.toString=function(){return this.start.file.content.substring(this.start.offset,this.end.offset)},t}();!function(t){t[t.WARNING=0]="WARNING",t[t.ERROR=1]="ERROR"}(wr||(wr={}));var Ar,Nr=function(){function t(t,e,n){void 0===n&&(n=wr.ERROR),this.span=t,this.msg=e,this.level=n}return t.prototype.contextualMessage=function(){var t=this.span.start.getContext(100,3);return t?this.msg+' ("'+t.before+"["+wr[this.level]+" ->]"+t.after+'")':this.msg},t.prototype.toString=function(){var t=this.span.details?", "+this.span.details:"";return this.contextualMessage()+": "+this.span.start+t},t}();
99
99
  /**
100
100
  * @license
101
101
  * Copyright Google Inc. All Rights Reserved.
102
102
  *
103
103
  * Use of this source code is governed by an MIT-style license that can be
104
104
  * found in the LICENSE file at https://angular.io/license
105
- */!function(t){t[t.TAG_OPEN_START=0]="TAG_OPEN_START",t[t.TAG_OPEN_END=1]="TAG_OPEN_END",t[t.TAG_OPEN_END_VOID=2]="TAG_OPEN_END_VOID",t[t.TAG_CLOSE=3]="TAG_CLOSE",t[t.TEXT=4]="TEXT",t[t.ESCAPABLE_RAW_TEXT=5]="ESCAPABLE_RAW_TEXT",t[t.RAW_TEXT=6]="RAW_TEXT",t[t.COMMENT_START=7]="COMMENT_START",t[t.COMMENT_END=8]="COMMENT_END",t[t.CDATA_START=9]="CDATA_START",t[t.CDATA_END=10]="CDATA_END",t[t.ATTR_NAME=11]="ATTR_NAME",t[t.ATTR_VALUE=12]="ATTR_VALUE",t[t.DOC_TYPE=13]="DOC_TYPE",t[t.EXPANSION_FORM_START=14]="EXPANSION_FORM_START",t[t.EXPANSION_CASE_VALUE=15]="EXPANSION_CASE_VALUE",t[t.EXPANSION_CASE_EXP_START=16]="EXPANSION_CASE_EXP_START",t[t.EXPANSION_CASE_EXP_END=17]="EXPANSION_CASE_EXP_END",t[t.EXPANSION_FORM_END=18]="EXPANSION_FORM_END",t[t.EOF=19]="EOF"}(Cr||(Cr={}));var Pr=function xn(t,e,n){this.type=t,this.parts=e,this.sourceSpan=n},Ar=function(t){function e(e,n,r){var i=t.call(this,r,e)||this;return i.tokenType=n,i}return o(e,t),e}(Tr),Nr=function Nr(t,e){this.tokens=t,this.errors=e},kr=/\r\n?/g;function Or(t){return'Unexpected character "'+(t===Be?"EOF":String.fromCharCode(t))+'"'}function Mr(t){return'Unknown entity "'+t+'" - use the "&#<decimal>;" or "&#x<hex>;" syntax'}var Ir=function Ir(t){this.error=t},Rr=function(){function t(t,e,n,r){void 0===r&&(r=ye),this._file=t,this._getTagDefinition=e,this._tokenizeIcu=n,this._interpolationConfig=r,this._peek=-1,this._nextPeek=-1,this._index=-1,this._line=0,this._column=-1,this._expansionCaseStack=[],this._inInterpolation=!1,this.tokens=[],this.errors=[],this._input=t.content,this._length=t.content.length,this._advance()}return t.prototype._processCarriageReturns=function(t){return t.replace(kr,"\n")},t.prototype.tokenize=function(){for(;this._peek!==Be;){var t=this._getLocation();try{this._attemptCharCode(60)?this._attemptCharCode(33)?this._attemptCharCode(91)?this._consumeCdata(t):this._attemptCharCode($e)?this._consumeComment(t):this._consumeDocType(t):this._attemptCharCode(Je)?this._consumeTagClose(t):this._consumeTagOpen(t):this._tokenizeIcu&&this._tokenizeExpansionForm()||this._consumeText()}catch(t){if(!(t instanceof Ir))throw t;this.errors.push(t.error)}}return this._beginToken(Cr.EOF),this._endToken([]),new Nr(function e(t){for(var e=[],n=void 0,r=0;r<t.length;r++){var i=t[r];n&&n.type==Cr.TEXT&&i.type==Cr.TEXT?(n.parts[0]+=i.parts[0],n.sourceSpan.end=i.sourceSpan.end):e.push(n=i)}return e}
105
+ */!function(t){t[t.TAG_OPEN_START=0]="TAG_OPEN_START",t[t.TAG_OPEN_END=1]="TAG_OPEN_END",t[t.TAG_OPEN_END_VOID=2]="TAG_OPEN_END_VOID",t[t.TAG_CLOSE=3]="TAG_CLOSE",t[t.TEXT=4]="TEXT",t[t.ESCAPABLE_RAW_TEXT=5]="ESCAPABLE_RAW_TEXT",t[t.RAW_TEXT=6]="RAW_TEXT",t[t.COMMENT_START=7]="COMMENT_START",t[t.COMMENT_END=8]="COMMENT_END",t[t.CDATA_START=9]="CDATA_START",t[t.CDATA_END=10]="CDATA_END",t[t.ATTR_NAME=11]="ATTR_NAME",t[t.ATTR_VALUE=12]="ATTR_VALUE",t[t.DOC_TYPE=13]="DOC_TYPE",t[t.EXPANSION_FORM_START=14]="EXPANSION_FORM_START",t[t.EXPANSION_CASE_VALUE=15]="EXPANSION_CASE_VALUE",t[t.EXPANSION_CASE_EXP_START=16]="EXPANSION_CASE_EXP_START",t[t.EXPANSION_CASE_EXP_END=17]="EXPANSION_CASE_EXP_END",t[t.EXPANSION_FORM_END=18]="EXPANSION_FORM_END",t[t.EOF=19]="EOF"}(Ar||(Ar={}));var kr=function Cn(t,e,n){this.type=t,this.parts=e,this.sourceSpan=n},Or=function(t){function e(e,n,r){var i=t.call(this,r,e)||this;return i.tokenType=n,i}return o(e,t),e}(Nr),Mr=function Mr(t,e){this.tokens=t,this.errors=e},Ir=/\r\n?/g;function Rr(t){return'Unexpected character "'+(t===Ue?"EOF":String.fromCharCode(t))+'"'}function Dr(t){return'Unknown entity "'+t+'" - use the "&#<decimal>;" or "&#x<hex>;" syntax'}var jr=function jr(t){this.error=t},Lr=function(){function t(t,e,n,r){void 0===r&&(r=_e),this._file=t,this._getTagDefinition=e,this._tokenizeIcu=n,this._interpolationConfig=r,this._peek=-1,this._nextPeek=-1,this._index=-1,this._line=0,this._column=-1,this._expansionCaseStack=[],this._inInterpolation=!1,this.tokens=[],this.errors=[],this._input=t.content,this._length=t.content.length,this._advance()}return t.prototype._processCarriageReturns=function(t){return t.replace(Ir,"\n")},t.prototype.tokenize=function(){for(;this._peek!==Ue;){var t=this._getLocation();try{this._attemptCharCode(60)?this._attemptCharCode(33)?this._attemptCharCode(91)?this._consumeCdata(t):this._attemptCharCode(en)?this._consumeComment(t):this._consumeDocType(t):this._attemptCharCode(nn)?this._consumeTagClose(t):this._consumeTagOpen(t):this._tokenizeIcu&&this._tokenizeExpansionForm()||this._consumeText()}catch(t){if(!(t instanceof jr))throw t;this.errors.push(t.error)}}return this._beginToken(Ar.EOF),this._endToken([]),new Mr(function e(t){for(var e=[],n=void 0,r=0;r<t.length;r++){var i=t[r];n&&n.type==Ar.TEXT&&i.type==Ar.TEXT?(n.parts[0]+=i.parts[0],n.sourceSpan.end=i.sourceSpan.end):e.push(n=i)}return e}
106
106
  /**
107
107
  * @license
108
108
  * Copyright Google Inc. All Rights Reserved.
109
109
  *
110
110
  * Use of this source code is governed by an MIT-style license that can be
111
111
  * found in the LICENSE file at https://angular.io/license
112
- */(this.tokens),this.errors)},t.prototype._tokenizeExpansionForm=function(){if(Vr(this._input,this._index,this._interpolationConfig))return this._consumeExpansionFormStart(),!0;if(function t(e){return e===en||wn(e)||bn(e)}(this._peek)&&this._isInExpansionForm())return this._consumeExpansionCaseStart(),!0;if(125===this._peek){if(this._isInExpansionCase())return this._consumeExpansionCaseEnd(),!0;if(this._isInExpansionForm())return this._consumeExpansionFormEnd(),!0}return!1},t.prototype._getLocation=function(){return new xr(this._file,this._index,this._line,this._column)},t.prototype._getSpan=function(t,e){return void 0===t&&(t=this._getLocation()),void 0===e&&(e=this._getLocation()),new Sr(t,e)},t.prototype._beginToken=function(t,e){void 0===e&&(e=this._getLocation()),this._currentTokenStart=e,this._currentTokenType=t},t.prototype._endToken=function(t,e){void 0===e&&(e=this._getLocation());var n=new Pr(this._currentTokenType,t,new Sr(this._currentTokenStart,e));return this.tokens.push(n),this._currentTokenStart=null,this._currentTokenType=null,n},t.prototype._createError=function(t,e){this._isInExpansionForm()&&(t+=' (Do you have an unescaped "{" in your template? Use "{{ \'{\' }}") to escape it.)');var n=new Ar(t,this._currentTokenType,e);return this._currentTokenStart=null,this._currentTokenType=null,new Ir(n)},t.prototype._advance=function(){if(this._index>=this._length)throw this._createError(Or(Be),this._getSpan());this._peek===Ke?(this._line++,this._column=0):this._peek!==Ke&&this._peek!==We&&this._column++,this._index++,this._peek=this._index>=this._length?Be:this._input.charCodeAt(this._index),this._nextPeek=this._index+1>=this._length?Be:this._input.charCodeAt(this._index+1)},t.prototype._attemptCharCode=function(t){return this._peek===t&&(this._advance(),!0)},t.prototype._attemptCharCodeCaseInsensitive=function(t){return!!function e(t,n){return Hr(t)==Hr(n)}(this._peek,t)&&(this._advance(),!0)},t.prototype._requireCharCode=function(t){var e=this._getLocation();if(!this._attemptCharCode(t))throw this._createError(Or(this._peek),this._getSpan(e,e))},t.prototype._attemptStr=function(t){var e=t.length;if(this._index+e>this._length)return!1;for(var n=this._savePosition(),r=0;r<e;r++)if(!this._attemptCharCode(t.charCodeAt(r)))return this._restorePosition(n),!1;return!0},t.prototype._attemptStrCaseInsensitive=function(t){for(var e=0;e<t.length;e++)if(!this._attemptCharCodeCaseInsensitive(t.charCodeAt(e)))return!1;return!0},t.prototype._requireStr=function(t){var e=this._getLocation();if(!this._attemptStr(t))throw this._createError(Or(this._peek),this._getSpan(e))},t.prototype._attemptCharCodeUntilFn=function(t){for(;!t(this._peek);)this._advance()},t.prototype._requireCharCodeUntilFn=function(t,e){var n=this._getLocation();if(this._attemptCharCodeUntilFn(t),this._index-n.offset<e)throw this._createError(Or(this._peek),this._getSpan(n,n))},t.prototype._attemptUntilChar=function(t){for(;this._peek!==t;)this._advance()},t.prototype._readChar=function(t){if(t&&38===this._peek)return this._decodeEntity();var e=this._index;return this._advance(),this._input[e]},t.prototype._decodeEntity=function(){var t=this._getLocation();if(this._advance(),!this._attemptCharCode(35)){var e=this._savePosition();if(this._attemptCharCodeUntilFn(Fr),this._peek!=tn)return this._restorePosition(e),"&";this._advance();var n=this._input.substring(t.offset+1,this._index-1),r=y[n];if(!r)throw this._createError(Mr(n),this._getSpan(t));return r}var i=this._attemptCharCode(120)||this._attemptCharCode(88),o=this._getLocation().offset;if(this._attemptCharCodeUntilFn(Lr),this._peek!=tn)throw this._createError(Or(this._peek),this._getSpan());this._advance();var s=this._input.substring(o,this._index-1);try{var a=parseInt(s,i?16:10);return String.fromCharCode(a)}catch(e){var u=this._input.substring(t.offset+1,this._index-1);throw this._createError(Mr(u),this._getSpan(t))}},t.prototype._consumeRawText=function(t,e,n){var r,i=this._getLocation();this._beginToken(t?Cr.ESCAPABLE_RAW_TEXT:Cr.RAW_TEXT,i);for(var o=[];r=this._getLocation(),!this._attemptCharCode(e)||!n();)for(this._index>r.offset&&o.push(this._input.substring(r.offset,this._index));this._peek!==e;)o.push(this._readChar(t));return this._endToken([this._processCarriageReturns(o.join(""))],r)},t.prototype._consumeComment=function(t){var e=this;this._beginToken(Cr.COMMENT_START,t),this._requireCharCode($e),this._endToken([]);var n=this._consumeRawText(!1,$e,function(){return e._attemptStr("->")});this._beginToken(Cr.COMMENT_END,n.sourceSpan.end),this._endToken([])},t.prototype._consumeCdata=function(t){var e=this;this._beginToken(Cr.CDATA_START,t),this._requireStr("CDATA["),this._endToken([]);var n=this._consumeRawText(!1,93,function(){return e._attemptStr("]>")});this._beginToken(Cr.CDATA_END,n.sourceSpan.end),this._endToken([])},t.prototype._consumeDocType=function(t){this._beginToken(Cr.DOC_TYPE,t),this._attemptUntilChar(nn),this._advance(),this._endToken([this._input.substring(t.offset+2,this._index-1)])},t.prototype._consumePrefixAndName=function(){for(var t,e,n=this._index,r=null;58!==this._peek&&!(((t=this._peek)<ln||yn<t)&&(t<sn||un<t)&&(t<rn||t>on));)this._advance();return 58===this._peek?(this._advance(),r=this._input.substring(n,this._index-1),e=this._index):e=n,this._requireCharCodeUntilFn(jr,this._index===e?1:0),[r,this._input.substring(e,this._index)]},t.prototype._consumeTagOpen=function(t){var e,n,r=this._savePosition();try{if(!wn(this._peek))throw this._createError(Or(this._peek),this._getSpan());var i=this._index;for(this._consumeTagOpenStart(t),n=(e=this._input.substring(i,this._index)).toLowerCase(),this._attemptCharCodeUntilFn(Dr);this._peek!==Je&&this._peek!==nn;)this._consumeAttributeName(),this._attemptCharCodeUntilFn(Dr),this._attemptCharCode(en)&&(this._attemptCharCodeUntilFn(Dr),this._consumeAttributeValue()),this._attemptCharCodeUntilFn(Dr);this._consumeTagOpenEnd()}catch(e){if(e instanceof Ir)return this._restorePosition(r),this._beginToken(Cr.TEXT,t),void this._endToken(["<"]);throw e}var o=this._getTagDefinition(e).contentType;o===s.RAW_TEXT?this._consumeRawTextWithTagClose(n,!1):o===s.ESCAPABLE_RAW_TEXT&&this._consumeRawTextWithTagClose(n,!0)},t.prototype._consumeRawTextWithTagClose=function(t,e){var n=this,r=this._consumeRawText(e,60,function(){return!!n._attemptCharCode(Je)&&(n._attemptCharCodeUntilFn(Dr),!!n._attemptStrCaseInsensitive(t)&&(n._attemptCharCodeUntilFn(Dr),n._attemptCharCode(nn)))});this._beginToken(Cr.TAG_CLOSE,r.sourceSpan.end),this._endToken([null,t])},t.prototype._consumeTagOpenStart=function(t){this._beginToken(Cr.TAG_OPEN_START,t);var e=this._consumePrefixAndName();this._endToken(e)},t.prototype._consumeAttributeName=function(){this._beginToken(Cr.ATTR_NAME);var t=this._consumePrefixAndName();this._endToken(t)},t.prototype._consumeAttributeValue=function(){var t;if(this._beginToken(Cr.ATTR_VALUE),this._peek===Ye||this._peek===Ge){var e=this._peek;this._advance();for(var n=[];this._peek!==e;)n.push(this._readChar(!0));t=n.join(""),this._advance()}else{var r=this._index;this._requireCharCodeUntilFn(jr,1),t=this._input.substring(r,this._index)}this._endToken([this._processCarriageReturns(t)])},t.prototype._consumeTagOpenEnd=function(){var t=this._attemptCharCode(Je)?Cr.TAG_OPEN_END_VOID:Cr.TAG_OPEN_END;this._beginToken(t),this._requireCharCode(nn),this._endToken([])},t.prototype._consumeTagClose=function(t){this._beginToken(Cr.TAG_CLOSE,t),this._attemptCharCodeUntilFn(Dr);var e=this._consumePrefixAndName();this._attemptCharCodeUntilFn(Dr),this._requireCharCode(nn),this._endToken(e)},t.prototype._consumeExpansionFormStart=function(){this._beginToken(Cr.EXPANSION_FORM_START,this._getLocation()),this._requireCharCode(mn),this._endToken([]),this._expansionCaseStack.push(Cr.EXPANSION_FORM_START),this._beginToken(Cr.RAW_TEXT,this._getLocation());var t=this._readUntil(44);this._endToken([t],this._getLocation()),this._requireCharCode(44),this._attemptCharCodeUntilFn(Dr),this._beginToken(Cr.RAW_TEXT,this._getLocation());var e=this._readUntil(44);this._endToken([e],this._getLocation()),this._requireCharCode(44),this._attemptCharCodeUntilFn(Dr)},t.prototype._consumeExpansionCaseStart=function(){this._beginToken(Cr.EXPANSION_CASE_VALUE,this._getLocation());var t=this._readUntil(mn).trim();this._endToken([t],this._getLocation()),this._attemptCharCodeUntilFn(Dr),this._beginToken(Cr.EXPANSION_CASE_EXP_START,this._getLocation()),this._requireCharCode(mn),this._endToken([],this._getLocation()),this._attemptCharCodeUntilFn(Dr),this._expansionCaseStack.push(Cr.EXPANSION_CASE_EXP_START)},t.prototype._consumeExpansionCaseEnd=function(){this._beginToken(Cr.EXPANSION_CASE_EXP_END,this._getLocation()),this._requireCharCode(125),this._endToken([],this._getLocation()),this._attemptCharCodeUntilFn(Dr),this._expansionCaseStack.pop()},t.prototype._consumeExpansionFormEnd=function(){this._beginToken(Cr.EXPANSION_FORM_END,this._getLocation()),this._requireCharCode(125),this._endToken([]),this._expansionCaseStack.pop()},t.prototype._consumeText=function(){var t=this._getLocation();this._beginToken(Cr.TEXT,t);var e=[];do{this._interpolationConfig&&this._attemptStr(this._interpolationConfig.start)?(e.push(this._interpolationConfig.start),this._inInterpolation=!0):this._interpolationConfig&&this._inInterpolation&&this._attemptStr(this._interpolationConfig.end)?(e.push(this._interpolationConfig.end),this._inInterpolation=!1):e.push(this._readChar(!0))}while(!this._isTextEnd());this._endToken([this._processCarriageReturns(e.join(""))])},t.prototype._isTextEnd=function(){if(60===this._peek||this._peek===Be)return!0;if(this._tokenizeIcu&&!this._inInterpolation){if(Vr(this._input,this._index,this._interpolationConfig))return!0;if(125===this._peek&&this._isInExpansionCase())return!0}return!1},t.prototype._savePosition=function(){return[this._peek,this._index,this._column,this._line,this.tokens.length]},t.prototype._readUntil=function(t){var e=this._index;return this._attemptUntilChar(t),this._input.substring(e,this._index)},t.prototype._restorePosition=function(t){this._peek=t[0],this._index=t[1],this._column=t[2],this._line=t[3];var e=t[4];e<this.tokens.length&&(this.tokens=this.tokens.slice(0,e))},t.prototype._isInExpansionCase=function(){return this._expansionCaseStack.length>0&&this._expansionCaseStack[this._expansionCaseStack.length-1]===Cr.EXPANSION_CASE_EXP_START},t.prototype._isInExpansionForm=function(){return this._expansionCaseStack.length>0&&this._expansionCaseStack[this._expansionCaseStack.length-1]===Cr.EXPANSION_FORM_START},t}();function Dr(t){return!_n(t)||t===Be}function jr(t){return _n(t)||t===nn||t===Je||t===Ye||t===Ge||t===en}function Lr(t){return t==tn||t==Be||!function e(t){return t>=ln&&t<=pn||t>=sn&&t<=an||bn(t)}
112
+ */(this.tokens),this.errors)},t.prototype._tokenizeExpansionForm=function(){if(qr(this._input,this._index,this._interpolationConfig))return this._consumeExpansionFormStart(),!0;if(function t(e){return e===on||Sn(e)||En(e)}(this._peek)&&this._isInExpansionForm())return this._consumeExpansionCaseStart(),!0;if(125===this._peek){if(this._isInExpansionCase())return this._consumeExpansionCaseEnd(),!0;if(this._isInExpansionForm())return this._consumeExpansionFormEnd(),!0}return!1},t.prototype._getLocation=function(){return new Cr(this._file,this._index,this._line,this._column)},t.prototype._getSpan=function(t,e){return void 0===t&&(t=this._getLocation()),void 0===e&&(e=this._getLocation()),new Pr(t,e)},t.prototype._beginToken=function(t,e){void 0===e&&(e=this._getLocation()),this._currentTokenStart=e,this._currentTokenType=t},t.prototype._endToken=function(t,e){void 0===e&&(e=this._getLocation());var n=new kr(this._currentTokenType,t,new Pr(this._currentTokenStart,e));return this.tokens.push(n),this._currentTokenStart=null,this._currentTokenType=null,n},t.prototype._createError=function(t,e){this._isInExpansionForm()&&(t+=' (Do you have an unescaped "{" in your template? Use "{{ \'{\' }}") to escape it.)');var n=new Or(t,this._currentTokenType,e);return this._currentTokenStart=null,this._currentTokenType=null,new jr(n)},t.prototype._advance=function(){if(this._index>=this._length)throw this._createError(Rr(Ue),this._getSpan());this._peek===We?(this._line++,this._column=0):this._peek!==We&&this._peek!==Xe&&this._column++,this._index++,this._peek=this._index>=this._length?Ue:this._input.charCodeAt(this._index),this._nextPeek=this._index+1>=this._length?Ue:this._input.charCodeAt(this._index+1)},t.prototype._attemptCharCode=function(t){return this._peek===t&&(this._advance(),!0)},t.prototype._attemptCharCodeCaseInsensitive=function(t){return!!function e(t,n){return Kr(t)==Kr(n)}(this._peek,t)&&(this._advance(),!0)},t.prototype._requireCharCode=function(t){var e=this._getLocation();if(!this._attemptCharCode(t))throw this._createError(Rr(this._peek),this._getSpan(e,e))},t.prototype._attemptStr=function(t){var e=t.length;if(this._index+e>this._length)return!1;for(var n=this._savePosition(),r=0;r<e;r++)if(!this._attemptCharCode(t.charCodeAt(r)))return this._restorePosition(n),!1;return!0},t.prototype._attemptStrCaseInsensitive=function(t){for(var e=0;e<t.length;e++)if(!this._attemptCharCodeCaseInsensitive(t.charCodeAt(e)))return!1;return!0},t.prototype._requireStr=function(t){var e=this._getLocation();if(!this._attemptStr(t))throw this._createError(Rr(this._peek),this._getSpan(e))},t.prototype._attemptCharCodeUntilFn=function(t){for(;!t(this._peek);)this._advance()},t.prototype._requireCharCodeUntilFn=function(t,e){var n=this._getLocation();if(this._attemptCharCodeUntilFn(t),this._index-n.offset<e)throw this._createError(Rr(this._peek),this._getSpan(n,n))},t.prototype._attemptUntilChar=function(t){for(;this._peek!==t;)this._advance()},t.prototype._readChar=function(t){if(t&&38===this._peek)return this._decodeEntity();var e=this._index;return this._advance(),this._input[e]},t.prototype._decodeEntity=function(){var t=this._getLocation();if(this._advance(),!this._attemptCharCode(35)){var e=this._savePosition();if(this._attemptCharCodeUntilFn(Br),this._peek!=rn)return this._restorePosition(e),"&";this._advance();var n=this._input.substring(t.offset+1,this._index-1),r=_[n];if(!r)throw this._createError(Dr(n),this._getSpan(t));return r}var i=this._attemptCharCode(120)||this._attemptCharCode(88),o=this._getLocation().offset;if(this._attemptCharCodeUntilFn(Hr),this._peek!=rn)throw this._createError(Rr(this._peek),this._getSpan());this._advance();var s=this._input.substring(o,this._index-1);try{var a=parseInt(s,i?16:10);return String.fromCharCode(a)}catch(e){var u=this._input.substring(t.offset+1,this._index-1);throw this._createError(Dr(u),this._getSpan(t))}},t.prototype._consumeRawText=function(t,e,n){var r,i=this._getLocation();this._beginToken(t?Ar.ESCAPABLE_RAW_TEXT:Ar.RAW_TEXT,i);for(var o=[];r=this._getLocation(),!this._attemptCharCode(e)||!n();)for(this._index>r.offset&&o.push(this._input.substring(r.offset,this._index));this._peek!==e;)o.push(this._readChar(t));return this._endToken([this._processCarriageReturns(o.join(""))],r)},t.prototype._consumeComment=function(t){var e=this;this._beginToken(Ar.COMMENT_START,t),this._requireCharCode(en),this._endToken([]);var n=this._consumeRawText(!1,en,function(){return e._attemptStr("->")});this._beginToken(Ar.COMMENT_END,n.sourceSpan.end),this._endToken([])},t.prototype._consumeCdata=function(t){var e=this;this._beginToken(Ar.CDATA_START,t),this._requireStr("CDATA["),this._endToken([]);var n=this._consumeRawText(!1,93,function(){return e._attemptStr("]>")});this._beginToken(Ar.CDATA_END,n.sourceSpan.end),this._endToken([])},t.prototype._consumeDocType=function(t){this._beginToken(Ar.DOC_TYPE,t),this._attemptUntilChar(sn),this._advance(),this._endToken([this._input.substring(t.offset+2,this._index-1)])},t.prototype._consumePrefixAndName=function(){for(var t,e,n=this._index,r=null;58!==this._peek&&!(((t=this._peek)<fn||_n<t)&&(t<cn||pn<t)&&(t<an||t>un));)this._advance();return 58===this._peek?(this._advance(),r=this._input.substring(n,this._index-1),e=this._index):e=n,this._requireCharCodeUntilFn(Vr,this._index===e?1:0),[r,this._input.substring(e,this._index)]},t.prototype._consumeTagOpen=function(t){var e,n,r=this._savePosition();try{if(!Sn(this._peek))throw this._createError(Rr(this._peek),this._getSpan());var i=this._index;for(this._consumeTagOpenStart(t),n=(e=this._input.substring(i,this._index)).toLowerCase(),this._attemptCharCodeUntilFn(Fr);this._peek!==nn&&this._peek!==sn;)this._consumeAttributeName(),this._attemptCharCodeUntilFn(Fr),this._attemptCharCode(on)&&(this._attemptCharCodeUntilFn(Fr),this._consumeAttributeValue()),this._attemptCharCodeUntilFn(Fr);this._consumeTagOpenEnd()}catch(e){if(e instanceof jr)return this._restorePosition(r),this._beginToken(Ar.TEXT,t),void this._endToken(["<"]);throw e}var o=this._getTagDefinition(e).contentType;o===s.RAW_TEXT?this._consumeRawTextWithTagClose(n,!1):o===s.ESCAPABLE_RAW_TEXT&&this._consumeRawTextWithTagClose(n,!0)},t.prototype._consumeRawTextWithTagClose=function(t,e){var n=this,r=this._consumeRawText(e,60,function(){return!!n._attemptCharCode(nn)&&(n._attemptCharCodeUntilFn(Fr),!!n._attemptStrCaseInsensitive(t)&&(n._attemptCharCodeUntilFn(Fr),n._attemptCharCode(sn)))});this._beginToken(Ar.TAG_CLOSE,r.sourceSpan.end),this._endToken([null,t])},t.prototype._consumeTagOpenStart=function(t){this._beginToken(Ar.TAG_OPEN_START,t);var e=this._consumePrefixAndName();this._endToken(e)},t.prototype._consumeAttributeName=function(){this._beginToken(Ar.ATTR_NAME);var t=this._consumePrefixAndName();this._endToken(t)},t.prototype._consumeAttributeValue=function(){var t;if(this._beginToken(Ar.ATTR_VALUE),this._peek===Je||this._peek===Ze){var e=this._peek;this._advance();for(var n=[];this._peek!==e;)n.push(this._readChar(!0));t=n.join(""),this._advance()}else{var r=this._index;this._requireCharCodeUntilFn(Vr,1),t=this._input.substring(r,this._index)}this._endToken([this._processCarriageReturns(t)])},t.prototype._consumeTagOpenEnd=function(){var t=this._attemptCharCode(nn)?Ar.TAG_OPEN_END_VOID:Ar.TAG_OPEN_END;this._beginToken(t),this._requireCharCode(sn),this._endToken([])},t.prototype._consumeTagClose=function(t){this._beginToken(Ar.TAG_CLOSE,t),this._attemptCharCodeUntilFn(Fr);var e=this._consumePrefixAndName();this._attemptCharCodeUntilFn(Fr),this._requireCharCode(sn),this._endToken(e)},t.prototype._consumeExpansionFormStart=function(){this._beginToken(Ar.EXPANSION_FORM_START,this._getLocation()),this._requireCharCode(bn),this._endToken([]),this._expansionCaseStack.push(Ar.EXPANSION_FORM_START),this._beginToken(Ar.RAW_TEXT,this._getLocation());var t=this._readUntil(44);this._endToken([t],this._getLocation()),this._requireCharCode(44),this._attemptCharCodeUntilFn(Fr),this._beginToken(Ar.RAW_TEXT,this._getLocation());var e=this._readUntil(44);this._endToken([e],this._getLocation()),this._requireCharCode(44),this._attemptCharCodeUntilFn(Fr)},t.prototype._consumeExpansionCaseStart=function(){this._beginToken(Ar.EXPANSION_CASE_VALUE,this._getLocation());var t=this._readUntil(bn).trim();this._endToken([t],this._getLocation()),this._attemptCharCodeUntilFn(Fr),this._beginToken(Ar.EXPANSION_CASE_EXP_START,this._getLocation()),this._requireCharCode(bn),this._endToken([],this._getLocation()),this._attemptCharCodeUntilFn(Fr),this._expansionCaseStack.push(Ar.EXPANSION_CASE_EXP_START)},t.prototype._consumeExpansionCaseEnd=function(){this._beginToken(Ar.EXPANSION_CASE_EXP_END,this._getLocation()),this._requireCharCode(125),this._endToken([],this._getLocation()),this._attemptCharCodeUntilFn(Fr),this._expansionCaseStack.pop()},t.prototype._consumeExpansionFormEnd=function(){this._beginToken(Ar.EXPANSION_FORM_END,this._getLocation()),this._requireCharCode(125),this._endToken([]),this._expansionCaseStack.pop()},t.prototype._consumeText=function(){var t=this._getLocation();this._beginToken(Ar.TEXT,t);var e=[];do{this._interpolationConfig&&this._attemptStr(this._interpolationConfig.start)?(e.push(this._interpolationConfig.start),this._inInterpolation=!0):this._interpolationConfig&&this._inInterpolation&&this._attemptStr(this._interpolationConfig.end)?(e.push(this._interpolationConfig.end),this._inInterpolation=!1):e.push(this._readChar(!0))}while(!this._isTextEnd());this._endToken([this._processCarriageReturns(e.join(""))])},t.prototype._isTextEnd=function(){if(60===this._peek||this._peek===Ue)return!0;if(this._tokenizeIcu&&!this._inInterpolation){if(qr(this._input,this._index,this._interpolationConfig))return!0;if(125===this._peek&&this._isInExpansionCase())return!0}return!1},t.prototype._savePosition=function(){return[this._peek,this._index,this._column,this._line,this.tokens.length]},t.prototype._readUntil=function(t){var e=this._index;return this._attemptUntilChar(t),this._input.substring(e,this._index)},t.prototype._restorePosition=function(t){this._peek=t[0],this._index=t[1],this._column=t[2],this._line=t[3];var e=t[4];e<this.tokens.length&&(this.tokens=this.tokens.slice(0,e))},t.prototype._isInExpansionCase=function(){return this._expansionCaseStack.length>0&&this._expansionCaseStack[this._expansionCaseStack.length-1]===Ar.EXPANSION_CASE_EXP_START},t.prototype._isInExpansionForm=function(){return this._expansionCaseStack.length>0&&this._expansionCaseStack[this._expansionCaseStack.length-1]===Ar.EXPANSION_FORM_START},t}();function Fr(t){return!xn(t)||t===Ue}function Vr(t){return xn(t)||t===sn||t===nn||t===Je||t===Ze||t===on}function Hr(t){return t==rn||t==Ue||!function e(t){return t>=fn&&t<=dn||t>=cn&&t<=ln||En(t)}
113
113
  /**
114
114
  * @license
115
115
  * Copyright Google Inc. All Rights Reserved.
116
116
  *
117
117
  * Use of this source code is governed by an MIT-style license that can be
118
118
  * found in the LICENSE file at https://angular.io/license
119
- */(t)}function Fr(t){return t==tn||t==Be||!wn(t)}function Vr(t,e,n){var r=!!n&&t.indexOf(n.start,e)==e;return t.charCodeAt(e)==mn&&!r}function Hr(t){return t>=ln&&t<=yn?t-ln+sn:t}var Br=function(t){function e(e,n,r){var i=t.call(this,n,r)||this;return i.elementName=e,i}return o(e,t),e.create=function(t,n,r){return new e(t,n,r)},e}(Tr),qr=function qr(t,e){this.rootNodes=t,this.errors=e},Kr=function(){function t(t){this.getTagDefinition=t}return t.prototype.parse=function(t,e,n,r){void 0===n&&(n=!1),void 0===r&&(r=ye);var i=function o(t,e,n,r,i){return void 0===r&&(r=!1),void 0===i&&(i=ye),new Rr(new Er(t,e),n,r,i).tokenize()}(t,e,this.getTagDefinition,n,r),s=new Ur(i.tokens,this.getTagDefinition).build();return new qr(s.rootNodes,i.errors.concat(s.errors))},t}(),Ur=function(){function t(t,e){this.tokens=t,this.getTagDefinition=e,this._index=-1,this._rootNodes=[],this._errors=[],this._elementStack=[],this._advance()}return t.prototype.build=function(){for(;this._peek.type!==Cr.EOF;)this._peek.type===Cr.TAG_OPEN_START?this._consumeStartTag(this._advance()):this._peek.type===Cr.TAG_CLOSE?this._consumeEndTag(this._advance()):this._peek.type===Cr.CDATA_START?(this._closeVoidElement(),this._consumeCdata(this._advance())):this._peek.type===Cr.COMMENT_START?(this._closeVoidElement(),this._consumeComment(this._advance())):this._peek.type===Cr.TEXT||this._peek.type===Cr.RAW_TEXT||this._peek.type===Cr.ESCAPABLE_RAW_TEXT?(this._closeVoidElement(),this._consumeText(this._advance())):this._peek.type===Cr.EXPANSION_FORM_START?this._consumeExpansion(this._advance()):this._advance();return new qr(this._rootNodes,this._errors)},t.prototype._advance=function(){var t=this._peek;return this._index<this.tokens.length-1&&this._index++,this._peek=this.tokens[this._index],t},t.prototype._advanceIf=function(t){return this._peek.type===t?this._advance():null},t.prototype._consumeCdata=function(t){this._consumeText(this._advance()),this._advanceIf(Cr.CDATA_END)},t.prototype._consumeComment=function(t){var e=this._advanceIf(Cr.RAW_TEXT);this._advanceIf(Cr.COMMENT_END);var n=null!=e?e.parts[0].trim():null;this._addToParent(new ue(n,t.sourceSpan))},t.prototype._consumeExpansion=function(t){for(var e=this._advance(),n=this._advance(),r=[];this._peek.type===Cr.EXPANSION_CASE_VALUE;){var i=this._parseExpansionCase();if(!i)return;r.push(i)}if(this._peek.type===Cr.EXPANSION_FORM_END){var o=new Sr(t.sourceSpan.start,this._peek.sourceSpan.end);this._addToParent(new ie(e.parts[0],n.parts[0],r,o,e.sourceSpan)),this._advance()}else this._errors.push(Br.create(null,this._peek.sourceSpan,"Invalid ICU message. Missing '}'."))},t.prototype._parseExpansionCase=function(){var e=this._advance();if(this._peek.type!==Cr.EXPANSION_CASE_EXP_START)return this._errors.push(Br.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 Pr(Cr.EOF,[],i.sourceSpan));var o=new t(r,this.getTagDefinition).build();if(o.errors.length>0)return this._errors=this._errors.concat(o.errors),null;var s=new Sr(e.sourceSpan.start,i.sourceSpan.end),a=new Sr(n.sourceSpan.start,i.sourceSpan.end);return new oe(e.parts[0],o.rootNodes,s,e.sourceSpan,a)},t.prototype._collectExpansionExpTokens=function(t){for(var e=[],n=[Cr.EXPANSION_CASE_EXP_START];;){if(this._peek.type!==Cr.EXPANSION_FORM_START&&this._peek.type!==Cr.EXPANSION_CASE_EXP_START||n.push(this._peek.type),this._peek.type===Cr.EXPANSION_CASE_EXP_END){if(!zr(n,Cr.EXPANSION_CASE_EXP_START))return this._errors.push(Br.create(null,t.sourceSpan,"Invalid ICU message. Missing '}'.")),null;if(n.pop(),0==n.length)return e}if(this._peek.type===Cr.EXPANSION_FORM_END){if(!zr(n,Cr.EXPANSION_FORM_START))return this._errors.push(Br.create(null,t.sourceSpan,"Invalid ICU message. Missing '}'.")),null;n.pop()}if(this._peek.type===Cr.EOF)return this._errors.push(Br.create(null,t.sourceSpan,"Invalid ICU message. Missing '}'.")),null;e.push(this._advance())}},t.prototype._consumeText=function(t){var e=t.parts[0];if(e.length>0&&"\n"==e[0]){var n=this._getParentElement();null!=n&&0==n.children.length&&this.getTagDefinition(n.name).ignoreFirstLf&&(e=e.substring(1))}e.length>0&&this._addToParent(new re(e,t.sourceSpan))},t.prototype._closeVoidElement=function(){var t=this._getParentElement();t&&this.getTagDefinition(t.name).isVoid&&this._elementStack.pop()},t.prototype._consumeStartTag=function(t){for(var e=t.parts[0],n=t.parts[1],r=[];this._peek.type===Cr.ATTR_NAME;)r.push(this._consumeAttr(this._advance()));var i=this._getElementFullName(e,n,this._getParentElement()),o=!1;if(this._peek.type===Cr.TAG_OPEN_END_VOID){this._advance(),o=!0;var s=this.getTagDefinition(i);s.canSelfClose||null!==d(i)||s.isVoid||this._errors.push(Br.create(i,t.sourceSpan,'Only void and foreign elements can be self closed "'+t.parts[1]+'"'))}else this._peek.type===Cr.TAG_OPEN_END&&(this._advance(),o=!1);var a=new Sr(t.sourceSpan.start,this._peek.sourceSpan.start),u=new ae(i,r,[],a,a,void 0);this._pushElement(u),o&&(this._popElement(i),u.endSourceSpan=a)},t.prototype._pushElement=function(t){var e=this._getParentElement();e&&this.getTagDefinition(e.name).isClosedByChild(t.name)&&this._elementStack.pop();var n=this.getTagDefinition(t.name),r=this._getParentElementSkippingContainers(),i=r.parent,o=r.container;if(i&&n.requireExtraParent(i.name)){var s=new ae(n.parentToAdd,[],[],t.sourceSpan,t.startSourceSpan,t.endSourceSpan);this._insertBeforeContainer(i,o,s)}this._addToParent(t),this._elementStack.push(t)},t.prototype._consumeEndTag=function(t){var e=this._getElementFullName(t.parts[0],t.parts[1],this._getParentElement());this._getParentElement()&&(this._getParentElement().endSourceSpan=t.sourceSpan),this.getTagDefinition(e).isVoid?this._errors.push(Br.create(e,t.sourceSpan,'Void elements do not have end tags "'+t.parts[1]+'"')):this._popElement(e)||this._errors.push(Br.create(e,t.sourceSpan,'Unexpected closing tag "'+e+'". It may happen when the tag has already been closed by another tag. For more info see https://www.w3.org/TR/html5/syntax.html#closing-elements-that-have-implied-end-tags'))},t.prototype._popElement=function(t){for(var e=this._elementStack.length-1;e>=0;e--){var n=this._elementStack[e];if(n.name==t)return this._elementStack.splice(e,this._elementStack.length-e),!0;if(!this.getTagDefinition(n.name).closedByParent)return!1}return!1},t.prototype._consumeAttr=function(t){var e=v(t.parts[0],t.parts[1]),n=t.sourceSpan.end,r="",i=void 0;if(this._peek.type===Cr.ATTR_VALUE){var o=this._advance();r=o.parts[0],n=o.sourceSpan.end,i=o.sourceSpan}return new se(e,r,new Sr(t.sourceSpan.start,n),i)},t.prototype._getParentElement=function(){return this._elementStack.length>0?this._elementStack[this._elementStack.length-1]:null},t.prototype._getParentElementSkippingContainers=function(){for(var t=null,e=this._elementStack.length-1;e>=0;e--){if(!h(this._elementStack[e].name))return{parent:this._elementStack[e],container:t};t=this._elementStack[e]}return{parent:null,container:t}},t.prototype._addToParent=function(t){var e=this._getParentElement();null!=e?e.children.push(t):this._rootNodes.push(t)},t.prototype._insertBeforeContainer=function(t,e,n){if(e){if(t){var r=t.children.indexOf(e);t.children[r]=n}else this._rootNodes.push(n);n.children.push(e),this._elementStack.splice(this._elementStack.indexOf(e),0,n)}else this._addToParent(n),this._elementStack.push(n)},t.prototype._getElementFullName=function(t,e,n){return null==t&&null==(t=this.getTagDefinition(e).implicitNamespacePrefix)&&null!=n&&(t=d(n.name)),v(t,e)},t}();function zr(t,e){return t.length>0&&t[t.length-1]===e}
119
+ */(t)}function Br(t){return t==rn||t==Ue||!Sn(t)}function qr(t,e,n){var r=!!n&&t.indexOf(n.start,e)==e;return t.charCodeAt(e)==bn&&!r}function Kr(t){return t>=fn&&t<=_n?t-fn+cn:t}var Ur=function(t){function e(e,n,r){var i=t.call(this,n,r)||this;return i.elementName=e,i}return o(e,t),e.create=function(t,n,r){return new e(t,n,r)},e}(Nr),zr=function zr(t,e){this.rootNodes=t,this.errors=e},Wr=function(){function t(t){this.getTagDefinition=t}return t.prototype.parse=function(t,e,n,r){void 0===n&&(n=!1),void 0===r&&(r=_e);var i=function o(t,e,n,r,i){return void 0===r&&(r=!1),void 0===i&&(i=_e),new Lr(new Tr(t,e),n,r,i).tokenize()}(t,e,this.getTagDefinition,n,r),s=new Qr(i.tokens,this.getTagDefinition).build();return new zr(s.rootNodes,i.errors.concat(s.errors))},t}(),Qr=function(){function t(t,e){this.tokens=t,this.getTagDefinition=e,this._index=-1,this._rootNodes=[],this._errors=[],this._elementStack=[],this._advance()}return t.prototype.build=function(){for(;this._peek.type!==Ar.EOF;)this._peek.type===Ar.TAG_OPEN_START?this._consumeStartTag(this._advance()):this._peek.type===Ar.TAG_CLOSE?this._consumeEndTag(this._advance()):this._peek.type===Ar.CDATA_START?(this._closeVoidElement(),this._consumeCdata(this._advance())):this._peek.type===Ar.COMMENT_START?(this._closeVoidElement(),this._consumeComment(this._advance())):this._peek.type===Ar.TEXT||this._peek.type===Ar.RAW_TEXT||this._peek.type===Ar.ESCAPABLE_RAW_TEXT?(this._closeVoidElement(),this._consumeText(this._advance())):this._peek.type===Ar.EXPANSION_FORM_START?this._consumeExpansion(this._advance()):this._advance();return new zr(this._rootNodes,this._errors)},t.prototype._advance=function(){var t=this._peek;return this._index<this.tokens.length-1&&this._index++,this._peek=this.tokens[this._index],t},t.prototype._advanceIf=function(t){return this._peek.type===t?this._advance():null},t.prototype._consumeCdata=function(t){this._consumeText(this._advance()),this._advanceIf(Ar.CDATA_END)},t.prototype._consumeComment=function(t){var e=this._advanceIf(Ar.RAW_TEXT);this._advanceIf(Ar.COMMENT_END);var n=null!=e?e.parts[0].trim():null;this._addToParent(new pe(n,t.sourceSpan))},t.prototype._consumeExpansion=function(t){for(var e=this._advance(),n=this._advance(),r=[];this._peek.type===Ar.EXPANSION_CASE_VALUE;){var i=this._parseExpansionCase();if(!i)return;r.push(i)}if(this._peek.type===Ar.EXPANSION_FORM_END){var o=new Pr(t.sourceSpan.start,this._peek.sourceSpan.end);this._addToParent(new ae(e.parts[0],n.parts[0],r,o,e.sourceSpan)),this._advance()}else this._errors.push(Ur.create(null,this._peek.sourceSpan,"Invalid ICU message. Missing '}'."))},t.prototype._parseExpansionCase=function(){var e=this._advance();if(this._peek.type!==Ar.EXPANSION_CASE_EXP_START)return this._errors.push(Ur.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 kr(Ar.EOF,[],i.sourceSpan));var o=new t(r,this.getTagDefinition).build();if(o.errors.length>0)return this._errors=this._errors.concat(o.errors),null;var s=new Pr(e.sourceSpan.start,i.sourceSpan.end),a=new Pr(n.sourceSpan.start,i.sourceSpan.end);return new ue(e.parts[0],o.rootNodes,s,e.sourceSpan,a)},t.prototype._collectExpansionExpTokens=function(t){for(var e=[],n=[Ar.EXPANSION_CASE_EXP_START];;){if(this._peek.type!==Ar.EXPANSION_FORM_START&&this._peek.type!==Ar.EXPANSION_CASE_EXP_START||n.push(this._peek.type),this._peek.type===Ar.EXPANSION_CASE_EXP_END){if(!Gr(n,Ar.EXPANSION_CASE_EXP_START))return this._errors.push(Ur.create(null,t.sourceSpan,"Invalid ICU message. Missing '}'.")),null;if(n.pop(),0==n.length)return e}if(this._peek.type===Ar.EXPANSION_FORM_END){if(!Gr(n,Ar.EXPANSION_FORM_START))return this._errors.push(Ur.create(null,t.sourceSpan,"Invalid ICU message. Missing '}'.")),null;n.pop()}if(this._peek.type===Ar.EOF)return this._errors.push(Ur.create(null,t.sourceSpan,"Invalid ICU message. Missing '}'.")),null;e.push(this._advance())}},t.prototype._consumeText=function(t){var e=t.parts[0];if(e.length>0&&"\n"==e[0]){var n=this._getParentElement();null!=n&&0==n.children.length&&this.getTagDefinition(n.name).ignoreFirstLf&&(e=e.substring(1))}e.length>0&&this._addToParent(new se(e,t.sourceSpan))},t.prototype._closeVoidElement=function(){var t=this._getParentElement();t&&this.getTagDefinition(t.name).isVoid&&this._elementStack.pop()},t.prototype._consumeStartTag=function(t){for(var e=t.parts[0],n=t.parts[1],r=[];this._peek.type===Ar.ATTR_NAME;)r.push(this._consumeAttr(this._advance()));var i=this._getElementFullName(e,n,this._getParentElement()),o=!1;if(this._peek.type===Ar.TAG_OPEN_END_VOID){this._advance(),o=!0;var s=this.getTagDefinition(i);s.canSelfClose||null!==m(i)||s.isVoid||this._errors.push(Ur.create(i,t.sourceSpan,'Only void and foreign elements can be self closed "'+t.parts[1]+'"'))}else this._peek.type===Ar.TAG_OPEN_END&&(this._advance(),o=!1);var a=new Pr(t.sourceSpan.start,this._peek.sourceSpan.start),u=new le(i,r,[],a,a,void 0);this._pushElement(u),o&&(this._popElement(i),u.endSourceSpan=a)},t.prototype._pushElement=function(t){var e=this._getParentElement();e&&this.getTagDefinition(e.name).isClosedByChild(t.name)&&this._elementStack.pop();var n=this.getTagDefinition(t.name),r=this._getParentElementSkippingContainers(),i=r.parent,o=r.container;if(i&&n.requireExtraParent(i.name)){var s=new le(n.parentToAdd,[],[],t.sourceSpan,t.startSourceSpan,t.endSourceSpan);this._insertBeforeContainer(i,o,s)}this._addToParent(t),this._elementStack.push(t)},t.prototype._consumeEndTag=function(t){var e=this._getElementFullName(t.parts[0],t.parts[1],this._getParentElement());this._getParentElement()&&(this._getParentElement().endSourceSpan=t.sourceSpan),this.getTagDefinition(e).isVoid?this._errors.push(Ur.create(e,t.sourceSpan,'Void elements do not have end tags "'+t.parts[1]+'"')):this._popElement(e)||this._errors.push(Ur.create(e,t.sourceSpan,'Unexpected closing tag "'+e+'". It may happen when the tag has already been closed by another tag. For more info see https://www.w3.org/TR/html5/syntax.html#closing-elements-that-have-implied-end-tags'))},t.prototype._popElement=function(t){for(var e=this._elementStack.length-1;e>=0;e--){var n=this._elementStack[e];if(n.name==t)return this._elementStack.splice(e,this._elementStack.length-e),!0;if(!this.getTagDefinition(n.name).closedByParent)return!1}return!1},t.prototype._consumeAttr=function(t){var e=g(t.parts[0],t.parts[1]),n=t.sourceSpan.end,r="",i=void 0;if(this._peek.type===Ar.ATTR_VALUE){var o=this._advance();r=o.parts[0],n=o.sourceSpan.end,i=o.sourceSpan}return new ce(e,r,new Pr(t.sourceSpan.start,n),i)},t.prototype._getParentElement=function(){return this._elementStack.length>0?this._elementStack[this._elementStack.length-1]:null},t.prototype._getParentElementSkippingContainers=function(){for(var t=null,e=this._elementStack.length-1;e>=0;e--){if(!v(this._elementStack[e].name))return{parent:this._elementStack[e],container:t};t=this._elementStack[e]}return{parent:null,container:t}},t.prototype._addToParent=function(t){var e=this._getParentElement();null!=e?e.children.push(t):this._rootNodes.push(t)},t.prototype._insertBeforeContainer=function(t,e,n){if(e){if(t){var r=t.children.indexOf(e);t.children[r]=n}else this._rootNodes.push(n);n.children.push(e),this._elementStack.splice(this._elementStack.indexOf(e),0,n)}else this._addToParent(n),this._elementStack.push(n)},t.prototype._getElementFullName=function(t,e,n){return null==t&&null==(t=this.getTagDefinition(e).implicitNamespacePrefix)&&null!=n&&(t=m(n.name)),g(t,e)},t}();function Gr(t,e){return t.length>0&&t[t.length-1]===e}
120
120
  /**
121
121
  * @license
122
122
  * Copyright Google Inc. All Rights Reserved.
123
123
  *
124
124
  * Use of this source code is governed by an MIT-style license that can be
125
125
  * found in the LICENSE file at https://angular.io/license
126
- */function Wr(t){return t.id||function n(t){var e,n,r=ft(t),i=function o(t,e){for(var n=Array(t.length+3>>>2),r=0;r<n.length;r++)n[r]=ai(t,4*r,e);return n}(r,Gr.Big),s=8*r.length,a=new Array(80),u=c([1732584193,4023233417,2562383102,271733878,3285377520],5),l=u[0],p=u[1],h=u[2],f=u[3],d=u[4];i[s>>5]|=128<<24-s%32,i[15+(s+64>>9<<4)]=s;for(var v=0;v<i.length;v+=16){for(var y=c([l,p,h,f,d],5),m=y[0],g=y[1],_=y[2],b=y[3],w=y[4],x=0;x<80;x++){a[x]=x<16?i[v+x]:oi(a[x-3]^a[x-8]^a[x-14]^a[x-16],1);var E=c($r(x,p,h,f),2),S=E[0],C=E[1],T=[oi(l,5),S,d,C,a[x]].reduce(ni);d=(e=c([f,h,oi(p,30),l,T],5))[0],f=e[1],h=e[2],p=e[3],l=e[4]}l=(n=c([ni(l,m),ni(p,g),ni(h,_),ni(f,b),ni(d,w)],5))[0],p=n[1],h=n[2],f=n[3],d=n[4]}return function P(t){for(var e="",n=0;n<t.length;n++){var r=si(t,n);e+=(r>>>4).toString(16)+(15&r).toString(16)}return e.toLowerCase()}(ui([l,p,h,f,d]))}(function e(t){return t.map(function(t){return t.visit(Yr,null)})}(t.nodes).join("")+"["+t.meaning+"]")}function Qr(t){if(t.id)return t.id;var e=new Zr;return function n(t,e){var n,r=c(Jr(t),2),i=r[0],o=r[1];if(e){var s=c(Jr(e),2),a=s[0],u=s[1];i=(n=c(function p(t,e){var n=c(t,2),r=n[0],i=n[1],o=c(e,2),s=o[0],a=c(ri(i,o[1]),2),u=a[0],l=a[1];return[ni(ni(r,s),u),l]}(function l(t,e){var n=c(t,2),r=n[0],i=n[1];return[r<<e|i>>>32-e,i<<e|r>>>32-e]}([i,o],1),[a,u]),2))[0],o=n[1]}return function h(t){for(var e="",n="1",r=t.length-1;r>=0;r--)e=ci(e,li(si(t,r),n)),n=li(256,n);return e.split("").reverse().join("")}(ui([2147483647&i,o]))}(t.nodes.map(function(t){return t.visit(e,null)}).join(""),t.meaning)}var Gr,Xr=function(){function t(){}return t.prototype.visitText=function(t,e){return t.value},t.prototype.visitContainer=function(t,e){var n=this;return"["+t.children.map(function(t){return t.visit(n)}).join(", ")+"]"},t.prototype.visitIcu=function(t,e){var n=this,r=Object.keys(t.cases).map(function(e){return e+" {"+t.cases[e].visit(n)+"}"});return"{"+t.expression+", "+t.type+", "+r.join(", ")+"}"},t.prototype.visitTagPlaceholder=function(t,e){var n=this;return t.isVoid?'<ph tag name="'+t.startName+'"/>':'<ph tag name="'+t.startName+'">'+t.children.map(function(t){return t.visit(n)}).join(", ")+'</ph name="'+t.closeName+'">'},t.prototype.visitPlaceholder=function(t,e){return t.value?'<ph name="'+t.name+'">'+t.value+"</ph>":'<ph name="'+t.name+'"/>'},t.prototype.visitIcuPlaceholder=function(t,e){return'<ph icu name="'+t.name+'">'+t.value.visit(this)+"</ph>"},t}(),Yr=new Xr,Zr=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o(e,t),e.prototype.visitIcu=function(t,e){var n=this,r=Object.keys(t.cases).map(function(e){return e+" {"+t.cases[e].visit(n)+"}"});return"{"+t.type+", "+r.join(", ")+"}"},e}(Xr);function $r(t,e,n,r){return t<20?[e&n|~e&r,1518500249]:t<40?[e^n^r,1859775393]:t<60?[e&n|e&r|n&r,2400959708]:[e^n^r,3395469782]}function Jr(t){var e=ft(t),n=c([ti(e,0),ti(e,102072)],2),r=n[0],i=n[1];return 0!=r||0!=i&&1!=i||(r^=319790063,i^=-1801410264),[r,i]}function ti(t,e){var n,r,i=c([2654435769,2654435769],2),o=i[0],s=i[1],a=t.length;for(r=0;r+12<=a;r+=12)o=(n=c(ei([o=ni(o,ai(t,r,Gr.Little)),s=ni(s,ai(t,r+4,Gr.Little)),e=ni(e,ai(t,r+8,Gr.Little))]),3))[0],s=n[1],e=n[2];return ei([o=ni(o,ai(t,r,Gr.Little)),s=ni(s,ai(t,r+4,Gr.Little)),e=ni(e=ni(e,a),ai(t,r+8,Gr.Little)<<8)])[2]}function ei(t){var e=c(t,3),n=e[0],r=e[1],i=e[2];return n=ii(n=ii(n,r),i),n^=i>>>13,r=ii(r=ii(r,i),n),r^=n<<8,i=ii(i=ii(i,n),r),i^=r>>>13,n=ii(n=ii(n,r),i),n^=i>>>12,r=ii(r=ii(r,i),n),r^=n<<16,i=ii(i=ii(i,n),r),i^=r>>>5,n=ii(n=ii(n,r),i),n^=i>>>3,r=ii(r=ii(r,i),n),r^=n<<10,i=ii(i=ii(i,n),r),[n,r,i^=r>>>15]}function ni(t,e){return ri(t,e)[1]}function ri(t,e){var n=(65535&t)+(65535&e),r=(t>>>16)+(e>>>16)+(n>>>16);return[r>>>16,r<<16|65535&n]}function ii(t,e){var n=(65535&t)-(65535&e);return(t>>16)-(e>>16)+(n>>16)<<16|65535&n}function oi(t,e){return t<<e|t>>>32-e}function si(t,e){return e>=t.length?0:255&t.charCodeAt(e)}function ai(t,e,n){var r=0;if(n===Gr.Big)for(var i=0;i<4;i++)r+=si(t,e+i)<<24-8*i;else for(i=0;i<4;i++)r+=si(t,e+i)<<8*i;return r}function ui(t){return t.reduce(function(t,e){return t+function n(t){for(var e="",n=0;n<4;n++)e+=String.fromCharCode(t>>>8*(3-n)&255);return e}(e)},"")}function ci(t,e){for(var n="",r=Math.max(t.length,e.length),i=0,o=0;i<r||o;i++){var s=o+ +(t[i]||0)+ +(e[i]||0);s>=10?(o=1,n+=s-10):(o=0,n+=s)}return n}function li(t,e){for(var n="",r=e;0!==t;t>>>=1)1&t&&(n=ci(n,r)),r=ci(r,r);return n}
126
+ */function Xr(t){return t.id||function n(t){var e,n,r=yt(t),i=function o(t,e){for(var n=Array(t.length+3>>>2),r=0;r<n.length;r++)n[r]=li(t,4*r,e);return n}(r,Zr.Big),s=8*r.length,a=new Array(80),u=h([1732584193,4023233417,2562383102,271733878,3285377520],5),c=u[0],l=u[1],p=u[2],f=u[3],d=u[4];i[s>>5]|=128<<24-s%32,i[15+(s+64>>9<<4)]=s;for(var v=0;v<i.length;v+=16){for(var y=h([c,l,p,f,d],5),m=y[0],g=y[1],_=y[2],b=y[3],w=y[4],x=0;x<80;x++){a[x]=x<16?i[v+x]:ui(a[x-3]^a[x-8]^a[x-14]^a[x-16],1);var E=h(ei(x,l,p,f),2),S=E[0],C=E[1],T=[ui(c,5),S,d,C,a[x]].reduce(oi);d=(e=h([f,p,ui(l,30),c,T],5))[0],f=e[1],p=e[2],l=e[3],c=e[4]}c=(n=h([oi(c,m),oi(l,g),oi(p,_),oi(f,b),oi(d,w)],5))[0],l=n[1],p=n[2],f=n[3],d=n[4]}return function P(t){for(var e="",n=0;n<t.length;n++){var r=ci(t,n);e+=(r>>>4).toString(16)+(15&r).toString(16)}return e.toLowerCase()}(pi([c,l,p,f,d]))}(function e(t){return t.map(function(t){return t.visit(Jr,null)})}(t.nodes).join("")+"["+t.meaning+"]")}function Yr(t){if(t.id)return t.id;var e=new ti;return function n(t,e){var n,r=h(ni(t),2),i=r[0],o=r[1];if(e){var s=h(ni(e),2),a=s[0],u=s[1];i=(n=h(function l(t,e){var n=h(t,2),r=n[0],i=n[1],o=h(e,2),s=o[0],a=h(si(i,o[1]),2),u=a[0],c=a[1];return[oi(oi(r,s),u),c]}(function c(t,e){var n=h(t,2),r=n[0],i=n[1];return[r<<e|i>>>32-e,i<<e|r>>>32-e]}([i,o],1),[a,u]),2))[0],o=n[1]}return function p(t){for(var e="",n="1",r=t.length-1;r>=0;r--)e=hi(e,fi(ci(t,r),n)),n=fi(256,n);return e.split("").reverse().join("")}(pi([2147483647&i,o]))}(t.nodes.map(function(t){return t.visit(e,null)}).join(""),t.meaning)}var Zr,$r=function(){function t(){}return t.prototype.visitText=function(t,e){return t.value},t.prototype.visitContainer=function(t,e){var n=this;return"["+t.children.map(function(t){return t.visit(n)}).join(", ")+"]"},t.prototype.visitIcu=function(t,e){var n=this,r=Object.keys(t.cases).map(function(e){return e+" {"+t.cases[e].visit(n)+"}"});return"{"+t.expression+", "+t.type+", "+r.join(", ")+"}"},t.prototype.visitTagPlaceholder=function(t,e){var n=this;return t.isVoid?'<ph tag name="'+t.startName+'"/>':'<ph tag name="'+t.startName+'">'+t.children.map(function(t){return t.visit(n)}).join(", ")+'</ph name="'+t.closeName+'">'},t.prototype.visitPlaceholder=function(t,e){return t.value?'<ph name="'+t.name+'">'+t.value+"</ph>":'<ph name="'+t.name+'"/>'},t.prototype.visitIcuPlaceholder=function(t,e){return'<ph icu name="'+t.name+'">'+t.value.visit(this)+"</ph>"},t}(),Jr=new $r,ti=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o(e,t),e.prototype.visitIcu=function(t,e){var n=this,r=Object.keys(t.cases).map(function(e){return e+" {"+t.cases[e].visit(n)+"}"});return"{"+t.type+", "+r.join(", ")+"}"},e}($r);function ei(t,e,n,r){return t<20?[e&n|~e&r,1518500249]:t<40?[e^n^r,1859775393]:t<60?[e&n|e&r|n&r,2400959708]:[e^n^r,3395469782]}function ni(t){var e=yt(t),n=h([ri(e,0),ri(e,102072)],2),r=n[0],i=n[1];return 0!=r||0!=i&&1!=i||(r^=319790063,i^=-1801410264),[r,i]}function ri(t,e){var n,r,i=h([2654435769,2654435769],2),o=i[0],s=i[1],a=t.length;for(r=0;r+12<=a;r+=12)o=(n=h(ii([o=oi(o,li(t,r,Zr.Little)),s=oi(s,li(t,r+4,Zr.Little)),e=oi(e,li(t,r+8,Zr.Little))]),3))[0],s=n[1],e=n[2];return ii([o=oi(o,li(t,r,Zr.Little)),s=oi(s,li(t,r+4,Zr.Little)),e=oi(e=oi(e,a),li(t,r+8,Zr.Little)<<8)])[2]}function ii(t){var e=h(t,3),n=e[0],r=e[1],i=e[2];return n=ai(n=ai(n,r),i),n^=i>>>13,r=ai(r=ai(r,i),n),r^=n<<8,i=ai(i=ai(i,n),r),i^=r>>>13,n=ai(n=ai(n,r),i),n^=i>>>12,r=ai(r=ai(r,i),n),r^=n<<16,i=ai(i=ai(i,n),r),i^=r>>>5,n=ai(n=ai(n,r),i),n^=i>>>3,r=ai(r=ai(r,i),n),r^=n<<10,i=ai(i=ai(i,n),r),[n,r,i^=r>>>15]}function oi(t,e){return si(t,e)[1]}function si(t,e){var n=(65535&t)+(65535&e),r=(t>>>16)+(e>>>16)+(n>>>16);return[r>>>16,r<<16|65535&n]}function ai(t,e){var n=(65535&t)-(65535&e);return(t>>16)-(e>>16)+(n>>16)<<16|65535&n}function ui(t,e){return t<<e|t>>>32-e}function ci(t,e){return e>=t.length?0:255&t.charCodeAt(e)}function li(t,e,n){var r=0;if(n===Zr.Big)for(var i=0;i<4;i++)r+=ci(t,e+i)<<24-8*i;else for(i=0;i<4;i++)r+=ci(t,e+i)<<8*i;return r}function pi(t){return t.reduce(function(t,e){return t+function n(t){for(var e="",n=0;n<4;n++)e+=String.fromCharCode(t>>>8*(3-n)&255);return e}(e)},"")}function hi(t,e){for(var n="",r=Math.max(t.length,e.length),i=0,o=0;i<r||o;i++){var s=o+ +(t[i]||0)+ +(e[i]||0);s>=10?(o=1,n+=s-10):(o=0,n+=s)}return n}function fi(t,e){for(var n="",r=e;0!==t;t>>>=1)1&t&&(n=hi(n,r)),r=hi(r,r);return n}
127
127
  /**
128
128
  * @license
129
129
  * Copyright Google Inc. All Rights Reserved.
130
130
  *
131
131
  * Use of this source code is governed by an MIT-style license that can be
132
132
  * found in the LICENSE file at https://angular.io/license
133
- */!function(t){t[t.Little=0]="Little",t[t.Big=1]="Big"}(Gr||(Gr={}));var pi,hi=function hi(t,e,n,r,i,o){this.nodes=t,this.placeholders=e,this.placeholderToMessage=n,this.meaning=r,this.description=i,this.id=o,this.sources=t.length?[{filePath:t[0].sourceSpan.start.file.url,startLine:t[0].sourceSpan.start.line+1,startCol:t[0].sourceSpan.start.col+1,endLine:t[t.length-1].sourceSpan.end.line+1,endCol:t[0].sourceSpan.start.col+1}]:[]},fi=function(){function t(t,e){this.value=t,this.sourceSpan=e}return t.prototype.visit=function(t,e){return t.visitText(this,e)},t}(),di=function(){function t(t,e){this.children=t,this.sourceSpan=e}return t.prototype.visit=function(t,e){return t.visitContainer(this,e)},t}(),vi=function(){function t(t,e,n,r){this.expression=t,this.type=e,this.cases=n,this.sourceSpan=r}return t.prototype.visit=function(t,e){return t.visitIcu(this,e)},t}(),yi=function(){function t(t,e,n,r,i,o,s){this.tag=t,this.attrs=e,this.startName=n,this.closeName=r,this.children=i,this.isVoid=o,this.sourceSpan=s}return t.prototype.visit=function(t,e){return t.visitTagPlaceholder(this,e)},t}(),mi=function(){function t(t,e,n){this.value=t,this.name=e,this.sourceSpan=n}return t.prototype.visit=function(t,e){return t.visitPlaceholder(this,e)},t}(),gi=function(){function t(t,e,n){this.value=t,this.name=e,this.sourceSpan=n}return t.prototype.visit=function(t,e){return t.visitIcuPlaceholder(this,e)},t}(),_i=function(){function t(){}return t.prototype.visitText=function(t,e){return new fi(t.value,t.sourceSpan)},t.prototype.visitContainer=function(t,e){var n=this,r=t.children.map(function(t){return t.visit(n,e)});return new di(r,t.sourceSpan)},t.prototype.visitIcu=function(t,e){var n=this,r={};Object.keys(t.cases).forEach(function(i){return r[i]=t.cases[i].visit(n,e)});var i=new vi(t.expression,t.type,r,t.sourceSpan);return i.expressionPlaceholder=t.expressionPlaceholder,i},t.prototype.visitTagPlaceholder=function(t,e){var n=this,r=t.children.map(function(t){return t.visit(n,e)});return new yi(t.tag,t.attrs,t.startName,t.closeName,r,t.isVoid,t.sourceSpan)},t.prototype.visitPlaceholder=function(t,e){return new mi(t.value,t.name,t.sourceSpan)},t.prototype.visitIcuPlaceholder=function(t,e){return new gi(t.value,t.name,t.sourceSpan)},t}(),bi=function(){function t(){}return t.prototype.visitText=function(t,e){},t.prototype.visitContainer=function(t,e){var n=this;t.children.forEach(function(t){return t.visit(n)})},t.prototype.visitIcu=function(t,e){var n=this;Object.keys(t.cases).forEach(function(e){t.cases[e].visit(n)})},t.prototype.visitTagPlaceholder=function(t,e){var n=this;t.children.forEach(function(t){return t.visit(n)})},t.prototype.visitPlaceholder=function(t,e){},t.prototype.visitIcuPlaceholder=function(t,e){},t}(),wi={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"},xi=function(){function t(){this._placeHolderNameCounts={},this._signatureToName={}}return t.prototype.getStartTagPlaceholderName=function(t,e,n){var r=this._hashTag(t,e,n);if(this._signatureToName[r])return this._signatureToName[r];var i=t.toUpperCase(),o=wi[i]||"TAG_"+i,s=this._generateUniqueName(n?o:"START_"+o);return this._signatureToName[r]=s,s},t.prototype.getCloseTagPlaceholderName=function(t){var e=this._hashClosingTag(t);if(this._signatureToName[e])return this._signatureToName[e];var n=t.toUpperCase(),r=this._generateUniqueName("CLOSE_"+(wi[n]||"TAG_"+n));return this._signatureToName[e]=r,r},t.prototype.getPlaceholderName=function(t,e){var n=t.toUpperCase(),r="PH: "+n+"="+e;if(this._signatureToName[r])return this._signatureToName[r];var i=this._generateUniqueName(n);return this._signatureToName[r]=i,i},t.prototype.getUniquePlaceholder=function(t){return this._generateUniqueName(t.toUpperCase())},t.prototype._hashTag=function(t,e,n){return"<"+t+Object.keys(e).sort().map(function(t){return" "+t+"="+e[t]}).join("")+(n?"/>":"></"+t+">")},t.prototype._hashClosingTag=function(t){return this._hashTag("/"+t,{},!1)},t.prototype._generateUniqueName=function(t){if(!this._placeHolderNameCounts.hasOwnProperty(t))return this._placeHolderNameCounts[t]=1,t;var e=this._placeHolderNameCounts[t];return this._placeHolderNameCounts[t]=e+1,t+"_"+e},t}(),Ei=new _r(new Sn),Si=function(){function t(t,e){this._expressionParser=t,this._interpolationConfig=e}return t.prototype.toI18nMessage=function(t,e,n,r){this._isIcu=1==t.length&&t[0]instanceof ie,this._icuDepth=0,this._placeholderRegistry=new xi,this._placeholderToContent={},this._placeholderToMessage={};var i=ce(this,t,{});return new hi(i,this._placeholderToContent,this._placeholderToMessage,e,n,r)},t.prototype.visitElement=function(t,e){var n=ce(this,t.children),r={};t.attrs.forEach(function(t){r[t.name]=t.value});var i=w(t.name).isVoid,o=this._placeholderRegistry.getStartTagPlaceholderName(t.name,r,i);this._placeholderToContent[o]=t.sourceSpan.toString();var s="";return i||(s=this._placeholderRegistry.getCloseTagPlaceholderName(t.name),this._placeholderToContent[s]="</"+t.name+">"),new yi(t.name,r,o,s,n,i,t.sourceSpan)},t.prototype.visitAttribute=function(t,e){return this._visitTextWithInterpolation(t.value,t.sourceSpan)},t.prototype.visitText=function(t,e){return this._visitTextWithInterpolation(t.value,t.sourceSpan)},t.prototype.visitComment=function(t,e){return null},t.prototype.visitExpansion=function(e,n){var r=this;this._icuDepth++;var i={},o=new vi(e.switchValue,e.type,i,e.sourceSpan);if(e.cases.forEach(function(t){i[t.value]=new di(t.expression.map(function(t){return t.visit(r,{})}),t.expSourceSpan)}),this._icuDepth--,this._isIcu||this._icuDepth>0){var s=this._placeholderRegistry.getUniquePlaceholder("VAR_"+e.type);return o.expressionPlaceholder=s,this._placeholderToContent[s]=e.switchValue,o}var a=this._placeholderRegistry.getPlaceholderName("ICU",e.sourceSpan.toString()),u=new t(this._expressionParser,this._interpolationConfig);return this._placeholderToMessage[a]=u.toI18nMessage([e],"","",""),new gi(o,a,e.sourceSpan)},t.prototype.visitExpansionCase=function(t,e){throw new Error("Unreachable code")},t.prototype._visitTextWithInterpolation=function(t,e){var n=this._expressionParser.splitInterpolation(t,e.start.toString(),this._interpolationConfig);if(!n)return new fi(t,e);for(var r=[],i=new di(r,e),o=this._interpolationConfig,s=o.start,a=o.end,u=0;u<n.strings.length-1;u++){var c=n.expressions[u],l=c.split(Ci)[2]||"INTERPOLATION",p=this._placeholderRegistry.getPlaceholderName(l,c);n.strings[u].length&&r.push(new fi(n.strings[u],e)),r.push(new mi(c,p,e)),this._placeholderToContent[p]=s+c+a}var h=n.strings.length-1;return n.strings[h].length&&r.push(new fi(n.strings[h],e)),i},t}(),Ci=/\/\/[\s\S]*i18n[\s\S]*\([\s\S]*ph[\s\S]*=[\s\S]*("|')([\s\S]*?)\1[\s\S]*\)/g,Ti=function(t){function e(e,n){return t.call(this,e,n)||this}return o(e,t),e}(Tr),Pi=/^i18n:?/,Ai="|",Ni="@@",ki=!1,Oi=function Oi(t,e){this.messages=t,this.errors=e};!function(t){t[t.Extract=0]="Extract",t[t.Merge=1]="Merge"}(pi||(pi={}));var Mi=function(){function t(t,e){this._implicitTags=t,this._implicitAttrs=e}return t.prototype.extract=function(t,e){var n=this;return this._init(pi.Extract,e),t.forEach(function(t){return t.visit(n,null)}),this._inI18nBlock&&this._reportError(t[t.length-1],"Unclosed block"),new Oi(this._messages,this._errors)},t.prototype.merge=function(t,e,n){this._init(pi.Merge,n),this._translations=e;var r=new ae("wrapper",[],t,void 0,void 0,void 0).visit(this,null);return this._inI18nBlock&&this._reportError(t[t.length-1],"Unclosed block"),new qr(r.children,this._errors)},t.prototype.visitExpansionCase=function(t,e){var n=ce(this,t.expression,e);if(this._mode===pi.Merge)return new oe(t.value,n,t.sourceSpan,t.valueSourceSpan,t.expSourceSpan)},t.prototype.visitExpansion=function(t,e){this._mayBeAddBlockChildren(t);var n=this._inIcu;this._inIcu||(this._isInTranslatableSection&&this._addMessage([t]),this._inIcu=!0);var r=ce(this,t.cases,e);return this._mode===pi.Merge&&(t=new ie(t.switchValue,t.type,r,t.sourceSpan,t.switchValueSourceSpan)),this._inIcu=n,t},t.prototype.visitComment=function(t,e){var n=function r(t){return!!(t instanceof ue&&t.value&&t.value.startsWith("i18n"))}(t);if(n&&this._isInTranslatableSection)this._reportError(t,"Could not start a block inside a translatable section");else{var i=function o(t){return!!(t instanceof ue&&t.value&&"/i18n"===t.value)}(t);if(!i||this._inI18nBlock){if(!this._inI18nNode&&!this._inIcu)if(this._inI18nBlock){if(i){if(this._depth==this._blockStartDepth){this._closeTranslatableSection(t,this._blockChildren),this._inI18nBlock=!1;var s=this._addMessage(this._blockChildren,this._blockMeaningAndDesc);return ce(this,this._translateMessage(t,s))}return void this._reportError(t,"I18N blocks should not cross element boundaries")}}else n&&(!ki&&console&&console.warn&&(ki=!0,console.warn("I18n comments are deprecated, use an <ng-container> element instead ("+t.sourceSpan.start+(t.sourceSpan.details?", "+t.sourceSpan.details:"")+")")),this._inI18nBlock=!0,this._blockStartDepth=this._depth,this._blockChildren=[],this._blockMeaningAndDesc=t.value.replace(Pi,"").trim(),this._openTranslatableSection(t))}else this._reportError(t,"Trying to close an unopened block")}},t.prototype.visitText=function(t,e){return this._isInTranslatableSection&&this._mayBeAddBlockChildren(t),t},t.prototype.visitElement=function(t,e){var n=this;this._mayBeAddBlockChildren(t),this._depth++;var r=this._inI18nNode,i=this._inImplicitNode,o=[],s=void 0,a=function u(t){return t.attrs.find(function(t){return"i18n"===t.name})||null}(t),c=a?a.value:"",l=this._implicitTags.some(function(e){return t.name===e})&&!this._inIcu&&!this._isInTranslatableSection,p=!i&&l;if(this._inImplicitNode=i||l,this._isInTranslatableSection||this._inIcu)(a||p)&&this._reportError(t,"Could not mark an element as translatable inside a translatable section"),this._mode==pi.Extract&&ce(this,t.children);else{if(a||p){this._inI18nNode=!0;var h=this._addMessage(t.children,c);s=this._translateMessage(t,h)}if(this._mode==pi.Extract){var f=a||p;f&&this._openTranslatableSection(t),ce(this,t.children),f&&this._closeTranslatableSection(t,t.children)}}if(this._mode===pi.Merge&&(s||t.children).forEach(function(t){var r=t.visit(n,e);r&&!n._isInTranslatableSection&&(o=o.concat(r))}),this._visitAttributesOf(t),this._depth--,this._inI18nNode=r,this._inImplicitNode=i,this._mode===pi.Merge){var d=this._translateAttributes(t);return new ae(t.name,d,o,t.sourceSpan,t.startSourceSpan,t.endSourceSpan)}return null},t.prototype.visitAttribute=function(t,e){throw new Error("unreachable code")},t.prototype._init=function(t,e){this._mode=t,this._inI18nBlock=!1,this._inI18nNode=!1,this._depth=0,this._inIcu=!1,this._msgCountAtSectionStart=void 0,this._errors=[],this._messages=[],this._inImplicitNode=!1,this._createI18nMessage=function n(t){var e=new Si(Ei,t);return function(t,n,r,i){return e.toI18nMessage(t,n,r,i)}}(e)},t.prototype._visitAttributesOf=function(t){var e=this,n={},r=this._implicitAttrs[t.name]||[];t.attrs.filter(function(t){return t.name.startsWith("i18n-")}).forEach(function(t){return n[t.name.slice("i18n-".length)]=t.value}),t.attrs.forEach(function(t){t.name in n?e._addMessage([t],n[t.name]):r.some(function(e){return t.name===e})&&e._addMessage([t])})},t.prototype._addMessage=function(t,e){if(0==t.length||1==t.length&&t[0]instanceof se&&!t[0].value)return null;var n=Ii(e),r=this._createI18nMessage(t,n.meaning,n.description,n.id);return this._messages.push(r),r},t.prototype._translateMessage=function(t,e){if(e&&this._mode===pi.Merge){var n=this._translations.get(e);if(n)return n;this._reportError(t,'Translation unavailable for message id="'+this._translations.digest(e)+'"')}return[]},t.prototype._translateAttributes=function(t){var e=this,n=t.attrs,r={};n.forEach(function(t){t.name.startsWith("i18n-")&&(r[t.name.slice("i18n-".length)]=Ii(t.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=e._createI18nMessage([n],o.meaning,o.description,s),u=e._translations.get(a);u?0==u.length?i.push(new se(n.name,"",n.sourceSpan)):u[0]instanceof re?i.push(new se(n.name,u[0].value,n.sourceSpan)):e._reportError(t,'Unexpected translation for attribute "'+n.name+'" (id="'+(s||e._translations.digest(a))+'")'):e._reportError(t,'Translation unavailable for attribute "'+n.name+'" (id="'+(s||e._translations.digest(a))+'")')}else i.push(n)}),i},t.prototype._mayBeAddBlockChildren=function(t){this._inI18nBlock&&!this._inIcu&&this._depth==this._blockStartDepth&&this._blockChildren.push(t)},t.prototype._openTranslatableSection=function(t){this._isInTranslatableSection?this._reportError(t,"Unexpected section start"):this._msgCountAtSectionStart=this._messages.length},Object.defineProperty(t.prototype,"_isInTranslatableSection",{get:function(){return void 0!==this._msgCountAtSectionStart},enumerable:!0,configurable:!0}),t.prototype._closeTranslatableSection=function(t,e){if(this._isInTranslatableSection){var n=this._msgCountAtSectionStart;if(1==e.reduce(function(t,e){return t+(e instanceof ue?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 fi)){this._messages.splice(r,1);break}}this._msgCountAtSectionStart=void 0}else this._reportError(t,"Unexpected section end")},t.prototype._reportError=function(t,e){this._errors.push(new Ti(t.sourceSpan,e))},t}();function Ii(t){if(!t)return{meaning:"",description:"",id:""};var e=t.indexOf(Ni),n=t.indexOf(Ai),r=c(e>-1?[t.slice(0,e),t.slice(e+2)]:[t,""],2),i=r[0],o=r[1],s=c(n>-1?[i.slice(0,n),i.slice(n+1)]:["",i],2);return{meaning:s[0],description:s[1],id:o}}
133
+ */!function(t){t[t.Little=0]="Little",t[t.Big=1]="Big"}(Zr||(Zr={}));var di,vi=function vi(t,e,n,r,i,o){this.nodes=t,this.placeholders=e,this.placeholderToMessage=n,this.meaning=r,this.description=i,this.id=o,this.sources=t.length?[{filePath:t[0].sourceSpan.start.file.url,startLine:t[0].sourceSpan.start.line+1,startCol:t[0].sourceSpan.start.col+1,endLine:t[t.length-1].sourceSpan.end.line+1,endCol:t[0].sourceSpan.start.col+1}]:[]},yi=function(){function t(t,e){this.value=t,this.sourceSpan=e}return t.prototype.visit=function(t,e){return t.visitText(this,e)},t}(),mi=function(){function t(t,e){this.children=t,this.sourceSpan=e}return t.prototype.visit=function(t,e){return t.visitContainer(this,e)},t}(),gi=function(){function t(t,e,n,r){this.expression=t,this.type=e,this.cases=n,this.sourceSpan=r}return t.prototype.visit=function(t,e){return t.visitIcu(this,e)},t}(),_i=function(){function t(t,e,n,r,i,o,s){this.tag=t,this.attrs=e,this.startName=n,this.closeName=r,this.children=i,this.isVoid=o,this.sourceSpan=s}return t.prototype.visit=function(t,e){return t.visitTagPlaceholder(this,e)},t}(),bi=function(){function t(t,e,n){this.value=t,this.name=e,this.sourceSpan=n}return t.prototype.visit=function(t,e){return t.visitPlaceholder(this,e)},t}(),wi=function(){function t(t,e,n){this.value=t,this.name=e,this.sourceSpan=n}return t.prototype.visit=function(t,e){return t.visitIcuPlaceholder(this,e)},t}(),xi=function(){function t(){}return t.prototype.visitText=function(t,e){return new yi(t.value,t.sourceSpan)},t.prototype.visitContainer=function(t,e){var n=this,r=t.children.map(function(t){return t.visit(n,e)});return new mi(r,t.sourceSpan)},t.prototype.visitIcu=function(t,e){var n=this,r={};Object.keys(t.cases).forEach(function(i){return r[i]=t.cases[i].visit(n,e)});var i=new gi(t.expression,t.type,r,t.sourceSpan);return i.expressionPlaceholder=t.expressionPlaceholder,i},t.prototype.visitTagPlaceholder=function(t,e){var n=this,r=t.children.map(function(t){return t.visit(n,e)});return new _i(t.tag,t.attrs,t.startName,t.closeName,r,t.isVoid,t.sourceSpan)},t.prototype.visitPlaceholder=function(t,e){return new bi(t.value,t.name,t.sourceSpan)},t.prototype.visitIcuPlaceholder=function(t,e){return new wi(t.value,t.name,t.sourceSpan)},t}(),Ei=function(){function t(){}return t.prototype.visitText=function(t,e){},t.prototype.visitContainer=function(t,e){var n=this;t.children.forEach(function(t){return t.visit(n)})},t.prototype.visitIcu=function(t,e){var n=this;Object.keys(t.cases).forEach(function(e){t.cases[e].visit(n)})},t.prototype.visitTagPlaceholder=function(t,e){var n=this;t.children.forEach(function(t){return t.visit(n)})},t.prototype.visitPlaceholder=function(t,e){},t.prototype.visitIcuPlaceholder=function(t,e){},t}(),Si={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"},Ci=function(){function t(){this._placeHolderNameCounts={},this._signatureToName={}}return t.prototype.getStartTagPlaceholderName=function(t,e,n){var r=this._hashTag(t,e,n);if(this._signatureToName[r])return this._signatureToName[r];var i=t.toUpperCase(),o=Si[i]||"TAG_"+i,s=this._generateUniqueName(n?o:"START_"+o);return this._signatureToName[r]=s,s},t.prototype.getCloseTagPlaceholderName=function(t){var e=this._hashClosingTag(t);if(this._signatureToName[e])return this._signatureToName[e];var n=t.toUpperCase(),r=this._generateUniqueName("CLOSE_"+(Si[n]||"TAG_"+n));return this._signatureToName[e]=r,r},t.prototype.getPlaceholderName=function(t,e){var n=t.toUpperCase(),r="PH: "+n+"="+e;if(this._signatureToName[r])return this._signatureToName[r];var i=this._generateUniqueName(n);return this._signatureToName[r]=i,i},t.prototype.getUniquePlaceholder=function(t){return this._generateUniqueName(t.toUpperCase())},t.prototype._hashTag=function(t,e,n){return"<"+t+Object.keys(e).sort().map(function(t){return" "+t+"="+e[t]}).join("")+(n?"/>":"></"+t+">")},t.prototype._hashClosingTag=function(t){return this._hashTag("/"+t,{},!1)},t.prototype._generateUniqueName=function(t){if(!this._placeHolderNameCounts.hasOwnProperty(t))return this._placeHolderNameCounts[t]=1,t;var e=this._placeHolderNameCounts[t];return this._placeHolderNameCounts[t]=e+1,t+"_"+e},t}(),Ti=new xr(new Pn),Pi=function(){function t(t,e){this._expressionParser=t,this._interpolationConfig=e}return t.prototype.toI18nMessage=function(t,e,n,r){this._isIcu=1==t.length&&t[0]instanceof ae,this._icuDepth=0,this._placeholderRegistry=new Ci,this._placeholderToContent={},this._placeholderToMessage={};var i=he(this,t,{});return new vi(i,this._placeholderToContent,this._placeholderToMessage,e,n,r)},t.prototype.visitElement=function(t,e){var n=he(this,t.children),r={};t.attrs.forEach(function(t){r[t.name]=t.value});var i=S(t.name).isVoid,o=this._placeholderRegistry.getStartTagPlaceholderName(t.name,r,i);this._placeholderToContent[o]=t.sourceSpan.toString();var s="";return i||(s=this._placeholderRegistry.getCloseTagPlaceholderName(t.name),this._placeholderToContent[s]="</"+t.name+">"),new _i(t.name,r,o,s,n,i,t.sourceSpan)},t.prototype.visitAttribute=function(t,e){return this._visitTextWithInterpolation(t.value,t.sourceSpan)},t.prototype.visitText=function(t,e){return this._visitTextWithInterpolation(t.value,t.sourceSpan)},t.prototype.visitComment=function(t,e){return null},t.prototype.visitExpansion=function(e,n){var r=this;this._icuDepth++;var i={},o=new gi(e.switchValue,e.type,i,e.sourceSpan);if(e.cases.forEach(function(t){i[t.value]=new mi(t.expression.map(function(t){return t.visit(r,{})}),t.expSourceSpan)}),this._icuDepth--,this._isIcu||this._icuDepth>0){var s=this._placeholderRegistry.getUniquePlaceholder("VAR_"+e.type);return o.expressionPlaceholder=s,this._placeholderToContent[s]=e.switchValue,o}var a=this._placeholderRegistry.getPlaceholderName("ICU",e.sourceSpan.toString()),u=new t(this._expressionParser,this._interpolationConfig);return this._placeholderToMessage[a]=u.toI18nMessage([e],"","",""),new wi(o,a,e.sourceSpan)},t.prototype.visitExpansionCase=function(t,e){throw new Error("Unreachable code")},t.prototype._visitTextWithInterpolation=function(t,e){var n=this._expressionParser.splitInterpolation(t,e.start.toString(),this._interpolationConfig);if(!n)return new yi(t,e);for(var r=[],i=new mi(r,e),o=this._interpolationConfig,s=o.start,a=o.end,u=0;u<n.strings.length-1;u++){var c=n.expressions[u],l=c.split(Ai)[2]||"INTERPOLATION",p=this._placeholderRegistry.getPlaceholderName(l,c);n.strings[u].length&&r.push(new yi(n.strings[u],e)),r.push(new bi(c,p,e)),this._placeholderToContent[p]=s+c+a}var h=n.strings.length-1;return n.strings[h].length&&r.push(new yi(n.strings[h],e)),i},t}(),Ai=/\/\/[\s\S]*i18n[\s\S]*\([\s\S]*ph[\s\S]*=[\s\S]*("|')([\s\S]*?)\1[\s\S]*\)/g,Ni=function(t){function e(e,n){return t.call(this,e,n)||this}return o(e,t),e}(Nr),ki=/^i18n:?/,Oi="|",Mi="@@",Ii=!1,Ri=function Ri(t,e){this.messages=t,this.errors=e};!function(t){t[t.Extract=0]="Extract",t[t.Merge=1]="Merge"}(di||(di={}));var Di=function(){function t(t,e){this._implicitTags=t,this._implicitAttrs=e}return t.prototype.extract=function(t,e){var n=this;return this._init(di.Extract,e),t.forEach(function(t){return t.visit(n,null)}),this._inI18nBlock&&this._reportError(t[t.length-1],"Unclosed block"),new Ri(this._messages,this._errors)},t.prototype.merge=function(t,e,n){this._init(di.Merge,n),this._translations=e;var r=new le("wrapper",[],t,void 0,void 0,void 0).visit(this,null);return this._inI18nBlock&&this._reportError(t[t.length-1],"Unclosed block"),new zr(r.children,this._errors)},t.prototype.visitExpansionCase=function(t,e){var n=he(this,t.expression,e);if(this._mode===di.Merge)return new ue(t.value,n,t.sourceSpan,t.valueSourceSpan,t.expSourceSpan)},t.prototype.visitExpansion=function(t,e){this._mayBeAddBlockChildren(t);var n=this._inIcu;this._inIcu||(this._isInTranslatableSection&&this._addMessage([t]),this._inIcu=!0);var r=he(this,t.cases,e);return this._mode===di.Merge&&(t=new ae(t.switchValue,t.type,r,t.sourceSpan,t.switchValueSourceSpan)),this._inIcu=n,t},t.prototype.visitComment=function(t,e){var n=function r(t){return!!(t instanceof pe&&t.value&&t.value.startsWith("i18n"))}(t);if(n&&this._isInTranslatableSection)this._reportError(t,"Could not start a block inside a translatable section");else{var i=function o(t){return!!(t instanceof pe&&t.value&&"/i18n"===t.value)}(t);if(!i||this._inI18nBlock){if(!this._inI18nNode&&!this._inIcu)if(this._inI18nBlock){if(i){if(this._depth==this._blockStartDepth){this._closeTranslatableSection(t,this._blockChildren),this._inI18nBlock=!1;var s=this._addMessage(this._blockChildren,this._blockMeaningAndDesc);return he(this,this._translateMessage(t,s))}return void this._reportError(t,"I18N blocks should not cross element boundaries")}}else n&&(!Ii&&console&&console.warn&&(Ii=!0,console.warn("I18n comments are deprecated, use an <ng-container> element instead ("+t.sourceSpan.start+(t.sourceSpan.details?", "+t.sourceSpan.details:"")+")")),this._inI18nBlock=!0,this._blockStartDepth=this._depth,this._blockChildren=[],this._blockMeaningAndDesc=t.value.replace(ki,"").trim(),this._openTranslatableSection(t))}else this._reportError(t,"Trying to close an unopened block")}},t.prototype.visitText=function(t,e){return this._isInTranslatableSection&&this._mayBeAddBlockChildren(t),t},t.prototype.visitElement=function(t,e){var n=this;this._mayBeAddBlockChildren(t),this._depth++;var r=this._inI18nNode,i=this._inImplicitNode,o=[],s=void 0,a=function u(t){return t.attrs.find(function(t){return"i18n"===t.name})||null}(t),c=a?a.value:"",l=this._implicitTags.some(function(e){return t.name===e})&&!this._inIcu&&!this._isInTranslatableSection,p=!i&&l;if(this._inImplicitNode=i||l,this._isInTranslatableSection||this._inIcu)(a||p)&&this._reportError(t,"Could not mark an element as translatable inside a translatable section"),this._mode==di.Extract&&he(this,t.children);else{if(a||p){this._inI18nNode=!0;var h=this._addMessage(t.children,c);s=this._translateMessage(t,h)}if(this._mode==di.Extract){var f=a||p;f&&this._openTranslatableSection(t),he(this,t.children),f&&this._closeTranslatableSection(t,t.children)}}if(this._mode===di.Merge&&(s||t.children).forEach(function(t){var r=t.visit(n,e);r&&!n._isInTranslatableSection&&(o=o.concat(r))}),this._visitAttributesOf(t),this._depth--,this._inI18nNode=r,this._inImplicitNode=i,this._mode===di.Merge){var d=this._translateAttributes(t);return new le(t.name,d,o,t.sourceSpan,t.startSourceSpan,t.endSourceSpan)}return null},t.prototype.visitAttribute=function(t,e){throw new Error("unreachable code")},t.prototype._init=function(t,e){this._mode=t,this._inI18nBlock=!1,this._inI18nNode=!1,this._depth=0,this._inIcu=!1,this._msgCountAtSectionStart=void 0,this._errors=[],this._messages=[],this._inImplicitNode=!1,this._createI18nMessage=function n(t){var e=new Pi(Ti,t);return function(t,n,r,i){return e.toI18nMessage(t,n,r,i)}}(e)},t.prototype._visitAttributesOf=function(t){var e=this,n={},r=this._implicitAttrs[t.name]||[];t.attrs.filter(function(t){return t.name.startsWith("i18n-")}).forEach(function(t){return n[t.name.slice("i18n-".length)]=t.value}),t.attrs.forEach(function(t){t.name in n?e._addMessage([t],n[t.name]):r.some(function(e){return t.name===e})&&e._addMessage([t])})},t.prototype._addMessage=function(t,e){if(0==t.length||1==t.length&&t[0]instanceof ce&&!t[0].value)return null;var n=ji(e),r=this._createI18nMessage(t,n.meaning,n.description,n.id);return this._messages.push(r),r},t.prototype._translateMessage=function(t,e){if(e&&this._mode===di.Merge){var n=this._translations.get(e);if(n)return n;this._reportError(t,'Translation unavailable for message id="'+this._translations.digest(e)+'"')}return[]},t.prototype._translateAttributes=function(t){var e=this,n=t.attrs,r={};n.forEach(function(t){t.name.startsWith("i18n-")&&(r[t.name.slice("i18n-".length)]=ji(t.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=e._createI18nMessage([n],o.meaning,o.description,s),u=e._translations.get(a);u?0==u.length?i.push(new ce(n.name,"",n.sourceSpan)):u[0]instanceof se?i.push(new ce(n.name,u[0].value,n.sourceSpan)):e._reportError(t,'Unexpected translation for attribute "'+n.name+'" (id="'+(s||e._translations.digest(a))+'")'):e._reportError(t,'Translation unavailable for attribute "'+n.name+'" (id="'+(s||e._translations.digest(a))+'")')}else i.push(n)}),i},t.prototype._mayBeAddBlockChildren=function(t){this._inI18nBlock&&!this._inIcu&&this._depth==this._blockStartDepth&&this._blockChildren.push(t)},t.prototype._openTranslatableSection=function(t){this._isInTranslatableSection?this._reportError(t,"Unexpected section start"):this._msgCountAtSectionStart=this._messages.length},Object.defineProperty(t.prototype,"_isInTranslatableSection",{get:function(){return void 0!==this._msgCountAtSectionStart},enumerable:!0,configurable:!0}),t.prototype._closeTranslatableSection=function(t,e){if(this._isInTranslatableSection){var n=this._msgCountAtSectionStart;if(1==e.reduce(function(t,e){return t+(e instanceof pe?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 yi)){this._messages.splice(r,1);break}}this._msgCountAtSectionStart=void 0}else this._reportError(t,"Unexpected section end")},t.prototype._reportError=function(t,e){this._errors.push(new Ni(t.sourceSpan,e))},t}();function ji(t){if(!t)return{meaning:"",description:"",id:""};var e=t.indexOf(Mi),n=t.indexOf(Oi),r=h(e>-1?[t.slice(0,e),t.slice(e+2)]:[t,""],2),i=r[0],o=r[1],s=h(n>-1?[i.slice(0,n),i.slice(n+1)]:["",i],2);return{meaning:s[0],description:s[1],id:o}}
134
134
  /**
135
135
  * @license
136
136
  * Copyright Google Inc. All Rights Reserved.
137
137
  *
138
138
  * Use of this source code is governed by an MIT-style license that can be
139
139
  * found in the LICENSE file at https://angular.io/license
140
- */var Ri=new(function(){function t(){this.closedByParent=!1,this.contentType=s.PARSABLE_DATA,this.isVoid=!1,this.ignoreFirstLf=!1,this.canSelfClose=!0}return t.prototype.requireExtraParent=function(t){return!1},t.prototype.isClosedByChild=function(t){return!1},t}());function Di(t){return Ri}
140
+ */var Li=new(function(){function t(){this.closedByParent=!1,this.contentType=s.PARSABLE_DATA,this.isVoid=!1,this.ignoreFirstLf=!1,this.canSelfClose=!0}return t.prototype.requireExtraParent=function(t){return!1},t.prototype.isClosedByChild=function(t){return!1},t}());function Fi(t){return Li}
141
141
  /**
142
142
  * @license
143
143
  * Copyright Google Inc. All Rights Reserved.
144
144
  *
145
145
  * Use of this source code is governed by an MIT-style license that can be
146
146
  * found in the LICENSE file at https://angular.io/license
147
- */var ji=function(t){function e(){return t.call(this,Di)||this}return o(e,t),e.prototype.parse=function(e,n,r){return void 0===r&&(r=!1),t.prototype.parse.call(this,e,n,r)},e}(Kr),Li=function(){function t(){}return t.prototype.createNameMapper=function(t){return null},t}(),Fi=function(t){function e(e,n){var r=t.call(this)||this;return r.mapName=n,r.internalToPublic={},r.publicToNextId={},r.publicToInternal={},e.nodes.forEach(function(t){return t.visit(r)}),r}return o(e,t),e.prototype.toPublicName=function(t){return this.internalToPublic.hasOwnProperty(t)?this.internalToPublic[t]:null},e.prototype.toInternalName=function(t){return this.publicToInternal.hasOwnProperty(t)?this.publicToInternal[t]:null},e.prototype.visitText=function(t,e){return null},e.prototype.visitTagPlaceholder=function(e,n){this.visitPlaceholderName(e.startName),t.prototype.visitTagPlaceholder.call(this,e,n),this.visitPlaceholderName(e.closeName)},e.prototype.visitPlaceholder=function(t,e){this.visitPlaceholderName(t.name)},e.prototype.visitIcuPlaceholder=function(t,e){this.visitPlaceholderName(t.name)},e.prototype.visitPlaceholderName=function(t){if(t&&!this.internalToPublic.hasOwnProperty(t)){var e=this.mapName(t);if(this.publicToInternal.hasOwnProperty(e)){var n=this.publicToNextId[e];this.publicToNextId[e]=n+1,e=e+"_"+n}else this.publicToNextId[e]=1;this.internalToPublic[t]=e,this.publicToInternal[e]=t}},e}(bi),Vi=new(function(){function t(){}return t.prototype.visitTag=function(t){var e=this,n=this._serializeAttributes(t.attrs);if(0==t.children.length)return"<"+t.name+n+"/>";var r=t.children.map(function(t){return t.visit(e)});return"<"+t.name+n+">"+r.join("")+"</"+t.name+">"},t.prototype.visitText=function(t){return t.value},t.prototype.visitDeclaration=function(t){return"<?xml"+this._serializeAttributes(t.attrs)+" ?>"},t.prototype._serializeAttributes=function(t){var e=Object.keys(t).map(function(e){return e+'="'+t[e]+'"'}).join(" ");return e.length>0?" "+e:""},t.prototype.visitDoctype=function(t){return"<!DOCTYPE "+t.rootTag+" [\n"+t.dtd+"\n]>"},t}());
147
+ */var Vi=function(t){function e(){return t.call(this,Fi)||this}return o(e,t),e.prototype.parse=function(e,n,r){return void 0===r&&(r=!1),t.prototype.parse.call(this,e,n,r)},e}(Wr),Hi=function(){function t(){}return t.prototype.createNameMapper=function(t){return null},t}(),Bi=function(t){function e(e,n){var r=t.call(this)||this;return r.mapName=n,r.internalToPublic={},r.publicToNextId={},r.publicToInternal={},e.nodes.forEach(function(t){return t.visit(r)}),r}return o(e,t),e.prototype.toPublicName=function(t){return this.internalToPublic.hasOwnProperty(t)?this.internalToPublic[t]:null},e.prototype.toInternalName=function(t){return this.publicToInternal.hasOwnProperty(t)?this.publicToInternal[t]:null},e.prototype.visitText=function(t,e){return null},e.prototype.visitTagPlaceholder=function(e,n){this.visitPlaceholderName(e.startName),t.prototype.visitTagPlaceholder.call(this,e,n),this.visitPlaceholderName(e.closeName)},e.prototype.visitPlaceholder=function(t,e){this.visitPlaceholderName(t.name)},e.prototype.visitIcuPlaceholder=function(t,e){this.visitPlaceholderName(t.name)},e.prototype.visitPlaceholderName=function(t){if(t&&!this.internalToPublic.hasOwnProperty(t)){var e=this.mapName(t);if(this.publicToInternal.hasOwnProperty(e)){var n=this.publicToNextId[e];this.publicToNextId[e]=n+1,e=e+"_"+n}else this.publicToNextId[e]=1;this.internalToPublic[t]=e,this.publicToInternal[e]=t}},e}(Ei),qi=new(function(){function t(){}return t.prototype.visitTag=function(t){var e=this,n=this._serializeAttributes(t.attrs);if(0==t.children.length)return"<"+t.name+n+"/>";var r=t.children.map(function(t){return t.visit(e)});return"<"+t.name+n+">"+r.join("")+"</"+t.name+">"},t.prototype.visitText=function(t){return t.value},t.prototype.visitDeclaration=function(t){return"<?xml"+this._serializeAttributes(t.attrs)+" ?>"},t.prototype._serializeAttributes=function(t){var e=Object.keys(t).map(function(e){return e+'="'+t[e]+'"'}).join(" ");return e.length>0?" "+e:""},t.prototype.visitDoctype=function(t){return"<!DOCTYPE "+t.rootTag+" [\n"+t.dtd+"\n]>"},t}());
148
148
  /**
149
149
  * @license
150
150
  * Copyright Google Inc. All Rights Reserved.
151
151
  *
152
152
  * Use of this source code is governed by an MIT-style license that can be
153
153
  * found in the LICENSE file at https://angular.io/license
154
- */function Hi(t){return t.map(function(t){return t.visit(Vi)}).join("")}var Bi=function(){function t(t){var e=this;this.attrs={},Object.keys(t).forEach(function(n){e.attrs[n]=Qi(t[n])})}return t.prototype.visit=function(t){return t.visitDeclaration(this)},t}(),qi=function(){function t(t,e){this.rootTag=t,this.dtd=e}return t.prototype.visit=function(t){return t.visitDoctype(this)},t}(),Ki=function(){function t(t,e,n){void 0===e&&(e={}),void 0===n&&(n=[]);var r=this;this.name=t,this.children=n,this.attrs={},Object.keys(e).forEach(function(t){r.attrs[t]=Qi(e[t])})}return t.prototype.visit=function(t){return t.visitTag(this)},t}(),Ui=function(){function t(t){this.value=Qi(t)}return t.prototype.visit=function(t){return t.visitText(this)},t}(),zi=function(t){function e(e){return void 0===e&&(e=0),t.call(this,"\n"+new Array(e+1).join(" "))||this}return o(e,t),e}(Ui),Wi=[[/&/g,"&amp;"],[/"/g,"&quot;"],[/'/g,"&apos;"],[/</g,"&lt;"],[/>/g,"&gt;"]];function Qi(t){return Wi.reduce(function(t,e){return t.replace(e[0],e[1])},t)}
154
+ */function Ki(t){return t.map(function(t){return t.visit(qi)}).join("")}var Ui=function(){function t(t){var e=this;this.attrs={},Object.keys(t).forEach(function(n){e.attrs[n]=Yi(t[n])})}return t.prototype.visit=function(t){return t.visitDeclaration(this)},t}(),zi=function(){function t(t,e){this.rootTag=t,this.dtd=e}return t.prototype.visit=function(t){return t.visitDoctype(this)},t}(),Wi=function(){function t(t,e,n){void 0===e&&(e={}),void 0===n&&(n=[]);var r=this;this.name=t,this.children=n,this.attrs={},Object.keys(e).forEach(function(t){r.attrs[t]=Yi(e[t])})}return t.prototype.visit=function(t){return t.visitTag(this)},t}(),Qi=function(){function t(t){this.value=Yi(t)}return t.prototype.visit=function(t){return t.visitText(this)},t}(),Gi=function(t){function e(e){return void 0===e&&(e=0),t.call(this,"\n"+new Array(e+1).join(" "))||this}return o(e,t),e}(Qi),Xi=[[/&/g,"&amp;"],[/"/g,"&quot;"],[/'/g,"&apos;"],[/</g,"&lt;"],[/>/g,"&gt;"]];function Yi(t){return Xi.reduce(function(t,e){return t.replace(e[0],e[1])},t)}
155
155
  /**
156
156
  * @license
157
157
  * Copyright Google Inc. All Rights Reserved.
158
158
  *
159
159
  * Use of this source code is governed by an MIT-style license that can be
160
160
  * found in the LICENSE file at https://angular.io/license
161
- */var Gi=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o(e,t),e.prototype.write=function(t,e){var n=new Xi,r=[];t.forEach(function(t){var e,i=[];t.sources.forEach(function(t){var e=new Ki("context-group",{purpose:"location"});e.children.push(new zi(10),new Ki("context",{"context-type":"sourcefile"},[new Ui(t.filePath)]),new zi(10),new Ki("context",{"context-type":"linenumber"},[new Ui(""+t.startLine)]),new zi(8)),i.push(new zi(8),e)});var o=new Ki("trans-unit",{id:t.id,datatype:"html"});(e=o.children).push.apply(e,l([new zi(8),new Ki("source",{},n.serialize(t.nodes))],i)),t.description&&o.children.push(new zi(8),new Ki("note",{priority:"1",from:"description"},[new Ui(t.description)])),t.meaning&&o.children.push(new zi(8),new Ki("note",{priority:"1",from:"meaning"},[new Ui(t.meaning)])),o.children.push(new zi(6)),r.push(new zi(6),o)});var i=new Ki("body",{},l(r,[new zi(4)])),o=new Ki("file",{"source-language":e||"en",datatype:"plaintext",original:"ng2.template"},[new zi(4),i,new zi(2)]),s=new Ki("xliff",{version:"1.2",xmlns:"urn:oasis:names:tc:xliff:document:1.2"},[new zi(2),o,new zi]);return Hi([new Bi({version:"1.0",encoding:"UTF-8"}),new zi,s,new zi])},e.prototype.load=function(t,e){var n=(new Yi).parse(t,e),r=n.locale,i=n.msgIdToHtml,o=n.errors,s={},a=new Zi;if(Object.keys(i).forEach(function(t){var n=a.convert(i[t],e),r=n.i18nNodes;o.push.apply(o,l(n.errors)),s[t]=r}),o.length)throw new Error("xliff parse errors:\n"+o.join("\n"));return{locale:r,i18nNodesByMsgId:s}},e.prototype.digest=function(t){return Wr(t)},e}(Li),Xi=function(){function t(){}return t.prototype.visitText=function(t,e){return[new Ui(t.value)]},t.prototype.visitContainer=function(t,e){var n=this,r=[];return t.children.forEach(function(t){return r.push.apply(r,l(t.visit(n)))}),r},t.prototype.visitIcu=function(t,e){var n=this,r=[new Ui("{"+t.expressionPlaceholder+", "+t.type+", ")];return Object.keys(t.cases).forEach(function(e){r.push.apply(r,l([new Ui(e+" {")],t.cases[e].visit(n),[new Ui("} ")]))}),r.push(new Ui("}")),r},t.prototype.visitTagPlaceholder=function(t,e){var n=function r(t){switch(t.toLowerCase()){case"br":return"lb";case"img":return"image";default:return"x-"+t}}
161
+ */var Zi=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o(e,t),e.prototype.write=function(t,e){var n=new $i,r=[];t.forEach(function(t){var e,i=[];t.sources.forEach(function(t){var e=new Wi("context-group",{purpose:"location"});e.children.push(new Gi(10),new Wi("context",{"context-type":"sourcefile"},[new Qi(t.filePath)]),new Gi(10),new Wi("context",{"context-type":"linenumber"},[new Qi(""+t.startLine)]),new Gi(8)),i.push(new Gi(8),e)});var o=new Wi("trans-unit",{id:t.id,datatype:"html"});(e=o.children).push.apply(e,f([new Gi(8),new Wi("source",{},n.serialize(t.nodes))],i)),t.description&&o.children.push(new Gi(8),new Wi("note",{priority:"1",from:"description"},[new Qi(t.description)])),t.meaning&&o.children.push(new Gi(8),new Wi("note",{priority:"1",from:"meaning"},[new Qi(t.meaning)])),o.children.push(new Gi(6)),r.push(new Gi(6),o)});var i=new Wi("body",{},f(r,[new Gi(4)])),o=new Wi("file",{"source-language":e||"en",datatype:"plaintext",original:"ng2.template"},[new Gi(4),i,new Gi(2)]),s=new Wi("xliff",{version:"1.2",xmlns:"urn:oasis:names:tc:xliff:document:1.2"},[new Gi(2),o,new Gi]);return Ki([new Ui({version:"1.0",encoding:"UTF-8"}),new Gi,s,new Gi])},e.prototype.load=function(t,e){var n=(new Ji).parse(t,e),r=n.locale,i=n.msgIdToHtml,o=n.errors,s={},a=new to;if(Object.keys(i).forEach(function(t){var n=a.convert(i[t],e),r=n.i18nNodes;o.push.apply(o,f(n.errors)),s[t]=r}),o.length)throw new Error("xliff parse errors:\n"+o.join("\n"));return{locale:r,i18nNodesByMsgId:s}},e.prototype.digest=function(t){return Xr(t)},e}(Hi),$i=function(){function t(){}return t.prototype.visitText=function(t,e){return[new Qi(t.value)]},t.prototype.visitContainer=function(t,e){var n=this,r=[];return t.children.forEach(function(t){return r.push.apply(r,f(t.visit(n)))}),r},t.prototype.visitIcu=function(t,e){var n=this,r=[new Qi("{"+t.expressionPlaceholder+", "+t.type+", ")];return Object.keys(t.cases).forEach(function(e){r.push.apply(r,f([new Qi(e+" {")],t.cases[e].visit(n),[new Qi("} ")]))}),r.push(new Qi("}")),r},t.prototype.visitTagPlaceholder=function(t,e){var n=function r(t){switch(t.toLowerCase()){case"br":return"lb";case"img":return"image";default:return"x-"+t}}
162
162
  /**
163
163
  * @license
164
164
  * Copyright Google Inc. All Rights Reserved.
165
165
  *
166
166
  * Use of this source code is governed by an MIT-style license that can be
167
167
  * found in the LICENSE file at https://angular.io/license
168
- */(t.tag);if(t.isVoid)return[new Ki("x",{id:t.startName,ctype:n,"equiv-text":"<"+t.tag+"/>"})];var i=new Ki("x",{id:t.startName,ctype:n,"equiv-text":"<"+t.tag+">"}),o=new Ki("x",{id:t.closeName,ctype:n,"equiv-text":"</"+t.tag+">"});return l([i],this.serialize(t.children),[o])},t.prototype.visitPlaceholder=function(t,e){return[new Ki("x",{id:t.name,"equiv-text":"{{"+t.value+"}}"})]},t.prototype.visitIcuPlaceholder=function(t,e){var n="{"+t.value.expression+", "+t.value.type+", "+Object.keys(t.value.cases).map(function(t){return t+" {...}"}).join(" ")+"}";return[new Ki("x",{id:t.name,"equiv-text":n})]},t.prototype.serialize=function(t){var e=this;return[].concat.apply([],l(t.map(function(t){return t.visit(e)})))},t}(),Yi=function(){function t(){this._locale=null}return t.prototype.parse=function(t,e){this._unitMlString=null,this._msgIdToHtml={};var n=(new ji).parse(t,e,!1);return this._errors=n.errors,ce(this,n.rootNodes,null),{msgIdToHtml:this._msgIdToHtml,errors:this._errors,locale:this._locale}},t.prototype.visitElement=function(t,e){switch(t.name){case"trans-unit":this._unitMlString=null;var n=t.attrs.find(function(t){return"id"===t.name});if(n){var r=n.value;this._msgIdToHtml.hasOwnProperty(r)?this._addError(t,"Duplicated translations for msg "+r):(ce(this,t.children,null),"string"==typeof this._unitMlString?this._msgIdToHtml[r]=this._unitMlString:this._addError(t,"Message "+r+" misses a translation"))}else this._addError(t,'<trans-unit> misses the "id" attribute');break;case"source":case"seg-source":break;case"target":var i=t.startSourceSpan.start.file.content.slice(t.startSourceSpan.end.offset,t.endSourceSpan.start.offset);this._unitMlString=i;break;case"file":var o=t.attrs.find(function(t){return"target-language"===t.name});o&&(this._locale=o.value),ce(this,t.children,null);break;default:ce(this,t.children,null)}},t.prototype.visitAttribute=function(t,e){},t.prototype.visitText=function(t,e){},t.prototype.visitComment=function(t,e){},t.prototype.visitExpansion=function(t,e){},t.prototype.visitExpansionCase=function(t,e){},t.prototype._addError=function(t,e){this._errors.push(new Ti(t.sourceSpan,e))},t}(),Zi=function(){function t(){}return t.prototype.convert=function(t,e){var n=(new ji).parse(t,e,!0);return this._errors=n.errors,{i18nNodes:this._errors.length>0||0==n.rootNodes.length?[]:[].concat.apply([],l(ce(this,n.rootNodes))),errors:this._errors}},t.prototype.visitText=function(t,e){return new fi(t.value,t.sourceSpan)},t.prototype.visitElement=function(t,e){if("x"===t.name){var n=t.attrs.find(function(t){return"id"===t.name});return n?new mi("",n.value,t.sourceSpan):(this._addError(t,'<x> misses the "id" attribute'),null)}return"mrk"===t.name?[].concat.apply([],l(ce(this,t.children))):(this._addError(t,"Unexpected tag"),null)},t.prototype.visitExpansion=function(t,e){var n={};return ce(this,t.cases).forEach(function(e){n[e.value]=new di(e.nodes,t.sourceSpan)}),new vi(t.switchValue,t.type,n,t.sourceSpan)},t.prototype.visitExpansionCase=function(t,e){return{value:t.value,nodes:ce(this,t.expression)}},t.prototype.visitComment=function(t,e){},t.prototype.visitAttribute=function(t,e){},t.prototype._addError=function(t,e){this._errors.push(new Ti(t.sourceSpan,e))},t}(),$i=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o(e,t),e.prototype.write=function(t,e){var n=new Ji,r=[];t.forEach(function(t){var e=new Ki("unit",{id:t.id}),i=new Ki("notes");(t.description||t.meaning)&&(t.description&&i.children.push(new zi(8),new Ki("note",{category:"description"},[new Ui(t.description)])),t.meaning&&i.children.push(new zi(8),new Ki("note",{category:"meaning"},[new Ui(t.meaning)]))),t.sources.forEach(function(t){i.children.push(new zi(8),new Ki("note",{category:"location"},[new Ui(t.filePath+":"+t.startLine+(t.endLine!==t.startLine?","+t.endLine:""))]))}),i.children.push(new zi(6)),e.children.push(new zi(6),i);var o=new Ki("segment");o.children.push(new zi(8),new Ki("source",{},n.serialize(t.nodes)),new zi(6)),e.children.push(new zi(6),o,new zi(4)),r.push(new zi(4),e)});var i=new Ki("file",{original:"ng.template",id:"ngi18n"},l(r,[new zi(2)])),o=new Ki("xliff",{version:"2.0",xmlns:"urn:oasis:names:tc:xliff:document:2.0",srcLang:e||"en"},[new zi(2),i,new zi]);return Hi([new Bi({version:"1.0",encoding:"UTF-8"}),new zi,o,new zi])},e.prototype.load=function(t,e){var n=(new to).parse(t,e),r=n.locale,i=n.msgIdToHtml,o=n.errors,s={},a=new eo;if(Object.keys(i).forEach(function(t){var n=a.convert(i[t],e),r=n.i18nNodes;o.push.apply(o,l(n.errors)),s[t]=r}),o.length)throw new Error("xliff2 parse errors:\n"+o.join("\n"));return{locale:r,i18nNodesByMsgId:s}},e.prototype.digest=function(t){return Qr(t)},e}(Li),Ji=function(){function t(){}return t.prototype.visitText=function(t,e){return[new Ui(t.value)]},t.prototype.visitContainer=function(t,e){var n=this,r=[];return t.children.forEach(function(t){return r.push.apply(r,l(t.visit(n)))}),r},t.prototype.visitIcu=function(t,e){var n=this,r=[new Ui("{"+t.expressionPlaceholder+", "+t.type+", ")];return Object.keys(t.cases).forEach(function(e){r.push.apply(r,l([new Ui(e+" {")],t.cases[e].visit(n),[new Ui("} ")]))}),r.push(new Ui("}")),r},t.prototype.visitTagPlaceholder=function(t,e){var n=this,r=function i(t){switch(t.toLowerCase()){case"br":case"b":case"i":case"u":return"fmt";case"img":return"image";case"a":return"link";default:return"other"}}
168
+ */(t.tag);if(t.isVoid)return[new Wi("x",{id:t.startName,ctype:n,"equiv-text":"<"+t.tag+"/>"})];var i=new Wi("x",{id:t.startName,ctype:n,"equiv-text":"<"+t.tag+">"}),o=new Wi("x",{id:t.closeName,ctype:n,"equiv-text":"</"+t.tag+">"});return f([i],this.serialize(t.children),[o])},t.prototype.visitPlaceholder=function(t,e){return[new Wi("x",{id:t.name,"equiv-text":"{{"+t.value+"}}"})]},t.prototype.visitIcuPlaceholder=function(t,e){var n="{"+t.value.expression+", "+t.value.type+", "+Object.keys(t.value.cases).map(function(t){return t+" {...}"}).join(" ")+"}";return[new Wi("x",{id:t.name,"equiv-text":n})]},t.prototype.serialize=function(t){var e=this;return[].concat.apply([],f(t.map(function(t){return t.visit(e)})))},t}(),Ji=function(){function t(){this._locale=null}return t.prototype.parse=function(t,e){this._unitMlString=null,this._msgIdToHtml={};var n=(new Vi).parse(t,e,!1);return this._errors=n.errors,he(this,n.rootNodes,null),{msgIdToHtml:this._msgIdToHtml,errors:this._errors,locale:this._locale}},t.prototype.visitElement=function(t,e){switch(t.name){case"trans-unit":this._unitMlString=null;var n=t.attrs.find(function(t){return"id"===t.name});if(n){var r=n.value;this._msgIdToHtml.hasOwnProperty(r)?this._addError(t,"Duplicated translations for msg "+r):(he(this,t.children,null),"string"==typeof this._unitMlString?this._msgIdToHtml[r]=this._unitMlString:this._addError(t,"Message "+r+" misses a translation"))}else this._addError(t,'<trans-unit> misses the "id" attribute');break;case"source":case"seg-source":break;case"target":var i=t.startSourceSpan.start.file.content.slice(t.startSourceSpan.end.offset,t.endSourceSpan.start.offset);this._unitMlString=i;break;case"file":var o=t.attrs.find(function(t){return"target-language"===t.name});o&&(this._locale=o.value),he(this,t.children,null);break;default:he(this,t.children,null)}},t.prototype.visitAttribute=function(t,e){},t.prototype.visitText=function(t,e){},t.prototype.visitComment=function(t,e){},t.prototype.visitExpansion=function(t,e){},t.prototype.visitExpansionCase=function(t,e){},t.prototype._addError=function(t,e){this._errors.push(new Ni(t.sourceSpan,e))},t}(),to=function(){function t(){}return t.prototype.convert=function(t,e){var n=(new Vi).parse(t,e,!0);return this._errors=n.errors,{i18nNodes:this._errors.length>0||0==n.rootNodes.length?[]:[].concat.apply([],f(he(this,n.rootNodes))),errors:this._errors}},t.prototype.visitText=function(t,e){return new yi(t.value,t.sourceSpan)},t.prototype.visitElement=function(t,e){if("x"===t.name){var n=t.attrs.find(function(t){return"id"===t.name});return n?new bi("",n.value,t.sourceSpan):(this._addError(t,'<x> misses the "id" attribute'),null)}return"mrk"===t.name?[].concat.apply([],f(he(this,t.children))):(this._addError(t,"Unexpected tag"),null)},t.prototype.visitExpansion=function(t,e){var n={};return he(this,t.cases).forEach(function(e){n[e.value]=new mi(e.nodes,t.sourceSpan)}),new gi(t.switchValue,t.type,n,t.sourceSpan)},t.prototype.visitExpansionCase=function(t,e){return{value:t.value,nodes:he(this,t.expression)}},t.prototype.visitComment=function(t,e){},t.prototype.visitAttribute=function(t,e){},t.prototype._addError=function(t,e){this._errors.push(new Ni(t.sourceSpan,e))},t}(),eo=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o(e,t),e.prototype.write=function(t,e){var n=new no,r=[];t.forEach(function(t){var e=new Wi("unit",{id:t.id}),i=new Wi("notes");(t.description||t.meaning)&&(t.description&&i.children.push(new Gi(8),new Wi("note",{category:"description"},[new Qi(t.description)])),t.meaning&&i.children.push(new Gi(8),new Wi("note",{category:"meaning"},[new Qi(t.meaning)]))),t.sources.forEach(function(t){i.children.push(new Gi(8),new Wi("note",{category:"location"},[new Qi(t.filePath+":"+t.startLine+(t.endLine!==t.startLine?","+t.endLine:""))]))}),i.children.push(new Gi(6)),e.children.push(new Gi(6),i);var o=new Wi("segment");o.children.push(new Gi(8),new Wi("source",{},n.serialize(t.nodes)),new Gi(6)),e.children.push(new Gi(6),o,new Gi(4)),r.push(new Gi(4),e)});var i=new Wi("file",{original:"ng.template",id:"ngi18n"},f(r,[new Gi(2)])),o=new Wi("xliff",{version:"2.0",xmlns:"urn:oasis:names:tc:xliff:document:2.0",srcLang:e||"en"},[new Gi(2),i,new Gi]);return Ki([new Ui({version:"1.0",encoding:"UTF-8"}),new Gi,o,new Gi])},e.prototype.load=function(t,e){var n=(new ro).parse(t,e),r=n.locale,i=n.msgIdToHtml,o=n.errors,s={},a=new io;if(Object.keys(i).forEach(function(t){var n=a.convert(i[t],e),r=n.i18nNodes;o.push.apply(o,f(n.errors)),s[t]=r}),o.length)throw new Error("xliff2 parse errors:\n"+o.join("\n"));return{locale:r,i18nNodesByMsgId:s}},e.prototype.digest=function(t){return Yr(t)},e}(Hi),no=function(){function t(){}return t.prototype.visitText=function(t,e){return[new Qi(t.value)]},t.prototype.visitContainer=function(t,e){var n=this,r=[];return t.children.forEach(function(t){return r.push.apply(r,f(t.visit(n)))}),r},t.prototype.visitIcu=function(t,e){var n=this,r=[new Qi("{"+t.expressionPlaceholder+", "+t.type+", ")];return Object.keys(t.cases).forEach(function(e){r.push.apply(r,f([new Qi(e+" {")],t.cases[e].visit(n),[new Qi("} ")]))}),r.push(new Qi("}")),r},t.prototype.visitTagPlaceholder=function(t,e){var n=this,r=function i(t){switch(t.toLowerCase()){case"br":case"b":case"i":case"u":return"fmt";case"img":return"image";case"a":return"link";default:return"other"}}
169
169
  /**
170
170
  * @license
171
171
  * Copyright Google Inc. All Rights Reserved.
172
172
  *
173
173
  * Use of this source code is governed by an MIT-style license that can be
174
174
  * found in the LICENSE file at https://angular.io/license
175
- */(t.tag);if(t.isVoid)return[new Ki("ph",{id:(this._nextPlaceholderId++).toString(),equiv:t.startName,type:r,disp:"<"+t.tag+"/>"})];var o=new Ki("pc",{id:(this._nextPlaceholderId++).toString(),equivStart:t.startName,equivEnd:t.closeName,type:r,dispStart:"<"+t.tag+">",dispEnd:"</"+t.tag+">"}),s=[].concat.apply([],l(t.children.map(function(t){return t.visit(n)})));return s.length?s.forEach(function(t){return o.children.push(t)}):o.children.push(new Ui("")),[o]},t.prototype.visitPlaceholder=function(t,e){var n=(this._nextPlaceholderId++).toString();return[new Ki("ph",{id:n,equiv:t.name,disp:"{{"+t.value+"}}"})]},t.prototype.visitIcuPlaceholder=function(t,e){var n=Object.keys(t.value.cases).map(function(t){return t+" {...}"}).join(" "),r=(this._nextPlaceholderId++).toString();return[new Ki("ph",{id:r,equiv:t.name,disp:"{"+t.value.expression+", "+t.value.type+", "+n+"}"})]},t.prototype.serialize=function(t){var e=this;return this._nextPlaceholderId=0,[].concat.apply([],l(t.map(function(t){return t.visit(e)})))},t}(),to=function(){function t(){this._locale=null}return t.prototype.parse=function(t,e){this._unitMlString=null,this._msgIdToHtml={};var n=(new ji).parse(t,e,!1);return this._errors=n.errors,ce(this,n.rootNodes,null),{msgIdToHtml:this._msgIdToHtml,errors:this._errors,locale:this._locale}},t.prototype.visitElement=function(t,e){switch(t.name){case"unit":this._unitMlString=null;var n=t.attrs.find(function(t){return"id"===t.name});if(n){var r=n.value;this._msgIdToHtml.hasOwnProperty(r)?this._addError(t,"Duplicated translations for msg "+r):(ce(this,t.children,null),"string"==typeof this._unitMlString?this._msgIdToHtml[r]=this._unitMlString:this._addError(t,"Message "+r+" misses a translation"))}else this._addError(t,'<unit> misses the "id" attribute');break;case"source":break;case"target":var i=t.startSourceSpan.start.file.content.slice(t.startSourceSpan.end.offset,t.endSourceSpan.start.offset);this._unitMlString=i;break;case"xliff":var o=t.attrs.find(function(t){return"trgLang"===t.name});o&&(this._locale=o.value);var s=t.attrs.find(function(t){return"version"===t.name});if(s){var a=s.value;"2.0"!==a?this._addError(t,"The XLIFF file version "+a+" is not compatible with XLIFF 2.0 serializer"):ce(this,t.children,null)}break;default:ce(this,t.children,null)}},t.prototype.visitAttribute=function(t,e){},t.prototype.visitText=function(t,e){},t.prototype.visitComment=function(t,e){},t.prototype.visitExpansion=function(t,e){},t.prototype.visitExpansionCase=function(t,e){},t.prototype._addError=function(t,e){this._errors.push(new Ti(t.sourceSpan,e))},t}(),eo=function(){function t(){}return t.prototype.convert=function(t,e){var n=(new ji).parse(t,e,!0);return this._errors=n.errors,{i18nNodes:this._errors.length>0||0==n.rootNodes.length?[]:[].concat.apply([],l(ce(this,n.rootNodes))),errors:this._errors}},t.prototype.visitText=function(t,e){return new fi(t.value,t.sourceSpan)},t.prototype.visitElement=function(t,e){var n=this;switch(t.name){case"ph":var r=t.attrs.find(function(t){return"equiv"===t.name});if(r)return[new mi("",r.value,t.sourceSpan)];this._addError(t,'<ph> misses the "equiv" attribute');break;case"pc":var i=t.attrs.find(function(t){return"equivStart"===t.name}),o=t.attrs.find(function(t){return"equivEnd"===t.name});if(i){if(o){var s=o.value,a=[];return a.concat.apply(a,l([new mi("",i.value,t.sourceSpan)],t.children.map(function(t){return t.visit(n,null)}),[new mi("",s,t.sourceSpan)]))}this._addError(t,'<ph> misses the "equivEnd" attribute')}else this._addError(t,'<ph> misses the "equivStart" attribute');break;case"mrk":return[].concat.apply([],l(ce(this,t.children)));default:this._addError(t,"Unexpected tag")}return null},t.prototype.visitExpansion=function(t,e){var n={};return ce(this,t.cases).forEach(function(e){n[e.value]=new di(e.nodes,t.sourceSpan)}),new vi(t.switchValue,t.type,n,t.sourceSpan)},t.prototype.visitExpansionCase=function(t,e){return{value:t.value,nodes:[].concat.apply([],l(ce(this,t.expression)))}},t.prototype.visitComment=function(t,e){},t.prototype.visitAttribute=function(t,e){},t.prototype._addError=function(t,e){this._errors.push(new Ti(t.sourceSpan,e))},t}(),no=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o(e,t),e.prototype.write=function(t,e){var n=new oo,r=new ro,i=new Ki("messagebundle");return t.forEach(function(t){var e={id:t.id};t.description&&(e.desc=t.description),t.meaning&&(e.meaning=t.meaning);var n=[];t.sources.forEach(function(t){n.push(new Ki("source",{},[new Ui(t.filePath+":"+t.startLine+(t.endLine!==t.startLine?","+t.endLine:""))]))}),i.children.push(new zi(2),new Ki("msg",e,l(n,r.serialize(t.nodes))))}),i.children.push(new zi),Hi([new Bi({version:"1.0",encoding:"UTF-8"}),new zi,new qi("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 zi,n.addDefaultExamples(i),new zi])},e.prototype.load=function(t,e){throw new Error("Unsupported")},e.prototype.digest=function(t){return io(t)},e.prototype.createNameMapper=function(t){return new Fi(t,so)},e}(Li),ro=function(){function t(){}return t.prototype.visitText=function(t,e){return[new Ui(t.value)]},t.prototype.visitContainer=function(t,e){var n=this,r=[];return t.children.forEach(function(t){return r.push.apply(r,l(t.visit(n)))}),r},t.prototype.visitIcu=function(t,e){var n=this,r=[new Ui("{"+t.expressionPlaceholder+", "+t.type+", ")];return Object.keys(t.cases).forEach(function(e){r.push.apply(r,l([new Ui(e+" {")],t.cases[e].visit(n),[new Ui("} ")]))}),r.push(new Ui("}")),r},t.prototype.visitTagPlaceholder=function(t,e){var n=new Ki("ex",{},[new Ui("<"+t.tag+">")]),r=new Ki("ph",{name:t.startName},[n]);if(t.isVoid)return[r];var i=new Ki("ex",{},[new Ui("</"+t.tag+">")]),o=new Ki("ph",{name:t.closeName},[i]);return l([r],this.serialize(t.children),[o])},t.prototype.visitPlaceholder=function(t,e){var n=new Ki("ex",{},[new Ui("{{"+t.value+"}}")]);return[new Ki("ph",{name:t.name},[n])]},t.prototype.visitIcuPlaceholder=function(t,e){var n=new Ki("ex",{},[new Ui("{"+t.value.expression+", "+t.value.type+", "+Object.keys(t.value.cases).map(function(t){return t+" {...}"}).join(" ")+"}")]);return[new Ki("ph",{name:t.name},[n])]},t.prototype.serialize=function(t){var e=this;return[].concat.apply([],l(t.map(function(t){return t.visit(e)})))},t}();function io(t){return Qr(t)}var oo=function(){function t(){}return t.prototype.addDefaultExamples=function(t){return t.visit(this),t},t.prototype.visitTag=function(t){var e=this;if("ph"===t.name){if(!t.children||0==t.children.length){var n=new Ui(t.attrs.name||"...");t.children=[new Ki("ex",{},[n])]}}else t.children&&t.children.forEach(function(t){return t.visit(e)})},t.prototype.visitText=function(t){},t.prototype.visitDeclaration=function(t){},t.prototype.visitDoctype=function(t){},t}();function so(t){return t.toUpperCase().replace(/[^A-Z0-9_]/g,"_")}
175
+ */(t.tag);if(t.isVoid)return[new Wi("ph",{id:(this._nextPlaceholderId++).toString(),equiv:t.startName,type:r,disp:"<"+t.tag+"/>"})];var o=new Wi("pc",{id:(this._nextPlaceholderId++).toString(),equivStart:t.startName,equivEnd:t.closeName,type:r,dispStart:"<"+t.tag+">",dispEnd:"</"+t.tag+">"}),s=[].concat.apply([],f(t.children.map(function(t){return t.visit(n)})));return s.length?s.forEach(function(t){return o.children.push(t)}):o.children.push(new Qi("")),[o]},t.prototype.visitPlaceholder=function(t,e){var n=(this._nextPlaceholderId++).toString();return[new Wi("ph",{id:n,equiv:t.name,disp:"{{"+t.value+"}}"})]},t.prototype.visitIcuPlaceholder=function(t,e){var n=Object.keys(t.value.cases).map(function(t){return t+" {...}"}).join(" "),r=(this._nextPlaceholderId++).toString();return[new Wi("ph",{id:r,equiv:t.name,disp:"{"+t.value.expression+", "+t.value.type+", "+n+"}"})]},t.prototype.serialize=function(t){var e=this;return this._nextPlaceholderId=0,[].concat.apply([],f(t.map(function(t){return t.visit(e)})))},t}(),ro=function(){function t(){this._locale=null}return t.prototype.parse=function(t,e){this._unitMlString=null,this._msgIdToHtml={};var n=(new Vi).parse(t,e,!1);return this._errors=n.errors,he(this,n.rootNodes,null),{msgIdToHtml:this._msgIdToHtml,errors:this._errors,locale:this._locale}},t.prototype.visitElement=function(t,e){switch(t.name){case"unit":this._unitMlString=null;var n=t.attrs.find(function(t){return"id"===t.name});if(n){var r=n.value;this._msgIdToHtml.hasOwnProperty(r)?this._addError(t,"Duplicated translations for msg "+r):(he(this,t.children,null),"string"==typeof this._unitMlString?this._msgIdToHtml[r]=this._unitMlString:this._addError(t,"Message "+r+" misses a translation"))}else this._addError(t,'<unit> misses the "id" attribute');break;case"source":break;case"target":var i=t.startSourceSpan.start.file.content.slice(t.startSourceSpan.end.offset,t.endSourceSpan.start.offset);this._unitMlString=i;break;case"xliff":var o=t.attrs.find(function(t){return"trgLang"===t.name});o&&(this._locale=o.value);var s=t.attrs.find(function(t){return"version"===t.name});if(s){var a=s.value;"2.0"!==a?this._addError(t,"The XLIFF file version "+a+" is not compatible with XLIFF 2.0 serializer"):he(this,t.children,null)}break;default:he(this,t.children,null)}},t.prototype.visitAttribute=function(t,e){},t.prototype.visitText=function(t,e){},t.prototype.visitComment=function(t,e){},t.prototype.visitExpansion=function(t,e){},t.prototype.visitExpansionCase=function(t,e){},t.prototype._addError=function(t,e){this._errors.push(new Ni(t.sourceSpan,e))},t}(),io=function(){function t(){}return t.prototype.convert=function(t,e){var n=(new Vi).parse(t,e,!0);return this._errors=n.errors,{i18nNodes:this._errors.length>0||0==n.rootNodes.length?[]:[].concat.apply([],f(he(this,n.rootNodes))),errors:this._errors}},t.prototype.visitText=function(t,e){return new yi(t.value,t.sourceSpan)},t.prototype.visitElement=function(t,e){var n=this;switch(t.name){case"ph":var r=t.attrs.find(function(t){return"equiv"===t.name});if(r)return[new bi("",r.value,t.sourceSpan)];this._addError(t,'<ph> misses the "equiv" attribute');break;case"pc":var i=t.attrs.find(function(t){return"equivStart"===t.name}),o=t.attrs.find(function(t){return"equivEnd"===t.name});if(i){if(o){var s=o.value,a=[];return a.concat.apply(a,f([new bi("",i.value,t.sourceSpan)],t.children.map(function(t){return t.visit(n,null)}),[new bi("",s,t.sourceSpan)]))}this._addError(t,'<ph> misses the "equivEnd" attribute')}else this._addError(t,'<ph> misses the "equivStart" attribute');break;case"mrk":return[].concat.apply([],f(he(this,t.children)));default:this._addError(t,"Unexpected tag")}return null},t.prototype.visitExpansion=function(t,e){var n={};return he(this,t.cases).forEach(function(e){n[e.value]=new mi(e.nodes,t.sourceSpan)}),new gi(t.switchValue,t.type,n,t.sourceSpan)},t.prototype.visitExpansionCase=function(t,e){return{value:t.value,nodes:[].concat.apply([],f(he(this,t.expression)))}},t.prototype.visitComment=function(t,e){},t.prototype.visitAttribute=function(t,e){},t.prototype._addError=function(t,e){this._errors.push(new Ni(t.sourceSpan,e))},t}(),oo=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o(e,t),e.prototype.write=function(t,e){var n=new uo,r=new so,i=new Wi("messagebundle");return t.forEach(function(t){var e={id:t.id};t.description&&(e.desc=t.description),t.meaning&&(e.meaning=t.meaning);var n=[];t.sources.forEach(function(t){n.push(new Wi("source",{},[new Qi(t.filePath+":"+t.startLine+(t.endLine!==t.startLine?","+t.endLine:""))]))}),i.children.push(new Gi(2),new Wi("msg",e,f(n,r.serialize(t.nodes))))}),i.children.push(new Gi),Ki([new Ui({version:"1.0",encoding:"UTF-8"}),new Gi,new zi("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 Gi,n.addDefaultExamples(i),new Gi])},e.prototype.load=function(t,e){throw new Error("Unsupported")},e.prototype.digest=function(t){return ao(t)},e.prototype.createNameMapper=function(t){return new Bi(t,co)},e}(Hi),so=function(){function t(){}return t.prototype.visitText=function(t,e){return[new Qi(t.value)]},t.prototype.visitContainer=function(t,e){var n=this,r=[];return t.children.forEach(function(t){return r.push.apply(r,f(t.visit(n)))}),r},t.prototype.visitIcu=function(t,e){var n=this,r=[new Qi("{"+t.expressionPlaceholder+", "+t.type+", ")];return Object.keys(t.cases).forEach(function(e){r.push.apply(r,f([new Qi(e+" {")],t.cases[e].visit(n),[new Qi("} ")]))}),r.push(new Qi("}")),r},t.prototype.visitTagPlaceholder=function(t,e){var n=new Wi("ex",{},[new Qi("<"+t.tag+">")]),r=new Wi("ph",{name:t.startName},[n]);if(t.isVoid)return[r];var i=new Wi("ex",{},[new Qi("</"+t.tag+">")]),o=new Wi("ph",{name:t.closeName},[i]);return f([r],this.serialize(t.children),[o])},t.prototype.visitPlaceholder=function(t,e){var n=new Wi("ex",{},[new Qi("{{"+t.value+"}}")]);return[new Wi("ph",{name:t.name},[n])]},t.prototype.visitIcuPlaceholder=function(t,e){var n=new Wi("ex",{},[new Qi("{"+t.value.expression+", "+t.value.type+", "+Object.keys(t.value.cases).map(function(t){return t+" {...}"}).join(" ")+"}")]);return[new Wi("ph",{name:t.name},[n])]},t.prototype.serialize=function(t){var e=this;return[].concat.apply([],f(t.map(function(t){return t.visit(e)})))},t}();function ao(t){return Yr(t)}var uo=function(){function t(){}return t.prototype.addDefaultExamples=function(t){return t.visit(this),t},t.prototype.visitTag=function(t){var e=this;if("ph"===t.name){if(!t.children||0==t.children.length){var n=new Qi(t.attrs.name||"...");t.children=[new Wi("ex",{},[n])]}}else t.children&&t.children.forEach(function(t){return t.visit(e)})},t.prototype.visitText=function(t){},t.prototype.visitDeclaration=function(t){},t.prototype.visitDoctype=function(t){},t}();function co(t){return t.toUpperCase().replace(/[^A-Z0-9_]/g,"_")}
176
176
  /**
177
177
  * @license
178
178
  * Copyright Google Inc. All Rights Reserved.
179
179
  *
180
180
  * Use of this source code is governed by an MIT-style license that can be
181
181
  * found in the LICENSE file at https://angular.io/license
182
- */var ao,uo=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o(e,t),e.prototype.write=function(t,e){throw new Error("Unsupported")},e.prototype.load=function(t,e){var n=(new co).parse(t,e),r=n.locale,i=n.msgIdToHtml,o=n.errors,s={},a=new lo;if(Object.keys(i).forEach(function(t){!function n(t,e,r){Object.defineProperty(t,e,{configurable:!0,enumerable:!0,get:function(){var n=r();return Object.defineProperty(t,e,{enumerable:!0,value:n}),n},set:function(t){throw new Error("Could not overwrite an XTB translation")}})}(s,t,function(){var n=a.convert(i[t],e),r=n.i18nNodes,o=n.errors;if(o.length)throw new Error("xtb parse errors:\n"+o.join("\n"));return r})}),o.length)throw new Error("xtb parse errors:\n"+o.join("\n"));return{locale:r,i18nNodesByMsgId:s}},e.prototype.digest=function(t){return io(t)},e.prototype.createNameMapper=function(t){return new Fi(t,so)},e}(Li),co=function(){function t(){this._locale=null}return t.prototype.parse=function(t,e){this._bundleDepth=0,this._msgIdToHtml={};var n=(new ji).parse(t,e,!1);return this._errors=n.errors,ce(this,n.rootNodes),{msgIdToHtml:this._msgIdToHtml,errors:this._errors,locale:this._locale}},t.prototype.visitElement=function(t,e){switch(t.name){case"translationbundle":this._bundleDepth++,this._bundleDepth>1&&this._addError(t,"<translationbundle> elements can not be nested");var n=t.attrs.find(function(t){return"lang"===t.name});n&&(this._locale=n.value),ce(this,t.children,null),this._bundleDepth--;break;case"translation":var r=t.attrs.find(function(t){return"id"===t.name});if(r){var i=r.value;if(this._msgIdToHtml.hasOwnProperty(i))this._addError(t,"Duplicated translations for msg "+i);else{var o=t.startSourceSpan.start.file.content.slice(t.startSourceSpan.end.offset,t.endSourceSpan.start.offset);this._msgIdToHtml[i]=o}}else this._addError(t,'<translation> misses the "id" attribute');break;default:this._addError(t,"Unexpected tag")}},t.prototype.visitAttribute=function(t,e){},t.prototype.visitText=function(t,e){},t.prototype.visitComment=function(t,e){},t.prototype.visitExpansion=function(t,e){},t.prototype.visitExpansionCase=function(t,e){},t.prototype._addError=function(t,e){this._errors.push(new Ti(t.sourceSpan,e))},t}(),lo=function(){function t(){}return t.prototype.convert=function(t,e){var n=(new ji).parse(t,e,!0);return this._errors=n.errors,{i18nNodes:this._errors.length>0||0==n.rootNodes.length?[]:ce(this,n.rootNodes),errors:this._errors}},t.prototype.visitText=function(t,e){return new fi(t.value,t.sourceSpan)},t.prototype.visitExpansion=function(t,e){var n={};return ce(this,t.cases).forEach(function(e){n[e.value]=new di(e.nodes,t.sourceSpan)}),new vi(t.switchValue,t.type,n,t.sourceSpan)},t.prototype.visitExpansionCase=function(t,e){return{value:t.value,nodes:ce(this,t.expression)}},t.prototype.visitElement=function(t,e){if("ph"===t.name){var n=t.attrs.find(function(t){return"name"===t.name});if(n)return new mi("",n.value,t.sourceSpan);this._addError(t,'<ph> misses the "name" attribute')}else this._addError(t,"Unexpected tag");return null},t.prototype.visitComment=function(t,e){},t.prototype.visitAttribute=function(t,e){},t.prototype._addError=function(t,e){this._errors.push(new Ti(t.sourceSpan,e))},t}(),po=function(t){function e(){return t.call(this,w)||this}return o(e,t),e.prototype.parse=function(e,n,r,i){return void 0===r&&(r=!1),void 0===i&&(i=ye),t.prototype.parse.call(this,e,n,r,i)},e}(Kr),ho=function(){function t(t,e,n,r,i,o){void 0===t&&(t={}),void 0===i&&(i=F.Warning),this._i18nNodesByMsgId=t,this.digest=n,this.mapperFactory=r,this._i18nToHtml=new fo(t,e,n,r,i,o)}return t.load=function(e,n,r,i,o){var s=r.load(e,n);return new t(s.i18nNodesByMsgId,s.locale,function(t){return r.digest(t)},function(t){return r.createNameMapper(t)},i,o)},t.prototype.get=function(t){var e=this._i18nToHtml.convert(t);if(e.errors.length)throw new Error(e.errors.join("\n"));return e.nodes},t.prototype.has=function(t){return this.digest(t)in this._i18nNodesByMsgId},t}(),fo=function(){function t(t,e,n,r,i,o){void 0===t&&(t={}),this._i18nNodesByMsgId=t,this._locale=e,this._digest=n,this._mapperFactory=r,this._missingTranslationStrategy=i,this._console=o,this._contextStack=[],this._errors=[]}return t.prototype.convert=function(t){this._contextStack.length=0,this._errors.length=0;var e=this._convertToText(t),n=t.nodes[0].sourceSpan.start.file.url,r=(new po).parse(e,n,!0);return{nodes:r.rootNodes,errors:l(this._errors,r.errors)}},t.prototype.visitText=function(t,e){return Qi(t.value)},t.prototype.visitContainer=function(t,e){var n=this;return t.children.map(function(t){return t.visit(n)}).join("")},t.prototype.visitIcu=function(t,e){var n=this,r=Object.keys(t.cases).map(function(e){return e+" {"+t.cases[e].visit(n)+"}"});return"{"+(this._srcMsg.placeholders.hasOwnProperty(t.expression)?this._srcMsg.placeholders[t.expression]:t.expression)+", "+t.type+", "+r.join(" ")+"}"},t.prototype.visitPlaceholder=function(t,e){var n=this._mapper(t.name);return this._srcMsg.placeholders.hasOwnProperty(n)?this._srcMsg.placeholders[n]:this._srcMsg.placeholderToMessage.hasOwnProperty(n)?this._convertToText(this._srcMsg.placeholderToMessage[n]):(this._addError(t,'Unknown placeholder "'+t.name+'"'),"")},t.prototype.visitTagPlaceholder=function(t,e){var n=this,r=""+t.tag,i=Object.keys(t.attrs).map(function(e){return e+'="'+t.attrs[e]+'"'}).join(" ");return t.isVoid?"<"+r+" "+i+"/>":"<"+r+" "+i+">"+t.children.map(function(t){return t.visit(n)}).join("")+"</"+r+">"},t.prototype.visitIcuPlaceholder=function(t,e){return this._convertToText(this._srcMsg.placeholderToMessage[t.name])},t.prototype._convertToText=function(t){var e,n=this,r=this._digest(t),i=this._mapperFactory?this._mapperFactory(t):null;this._contextStack.push({msg:this._srcMsg,mapper:this._mapper}),this._srcMsg=t,this._i18nNodesByMsgId.hasOwnProperty(r)?(e=this._i18nNodesByMsgId[r],this._mapper=function(t){return i?i.toInternalName(t):t}):(this._missingTranslationStrategy===F.Error?this._addError(t.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+'"':"")),e=t.nodes,this._mapper=function(t){return t});var o=e.map(function(t){return t.visit(n)}).join(""),s=this._contextStack.pop();return this._srcMsg=s.msg,this._mapper=s.mapper,o},t.prototype._addError=function(t,e){this._errors.push(new Ti(t.sourceSpan,e))},t}(),vo=function(){function t(t,e,n,r,i){if(void 0===r&&(r=F.Warning),this._htmlParser=t,e){var o=function s(t){switch(t=(t||"xlf").toLowerCase()){case"xmb":return new no;case"xtb":return new uo;case"xliff2":case"xlf2":return new $i;case"xliff":case"xlf":default:return new Gi}}
182
+ */var lo,po=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o(e,t),e.prototype.write=function(t,e){throw new Error("Unsupported")},e.prototype.load=function(t,e){var n=(new ho).parse(t,e),r=n.locale,i=n.msgIdToHtml,o=n.errors,s={},a=new fo;if(Object.keys(i).forEach(function(t){!function n(t,e,r){Object.defineProperty(t,e,{configurable:!0,enumerable:!0,get:function(){var n=r();return Object.defineProperty(t,e,{enumerable:!0,value:n}),n},set:function(t){throw new Error("Could not overwrite an XTB translation")}})}(s,t,function(){var n=a.convert(i[t],e),r=n.i18nNodes,o=n.errors;if(o.length)throw new Error("xtb parse errors:\n"+o.join("\n"));return r})}),o.length)throw new Error("xtb parse errors:\n"+o.join("\n"));return{locale:r,i18nNodesByMsgId:s}},e.prototype.digest=function(t){return ao(t)},e.prototype.createNameMapper=function(t){return new Bi(t,co)},e}(Hi),ho=function(){function t(){this._locale=null}return t.prototype.parse=function(t,e){this._bundleDepth=0,this._msgIdToHtml={};var n=(new Vi).parse(t,e,!1);return this._errors=n.errors,he(this,n.rootNodes),{msgIdToHtml:this._msgIdToHtml,errors:this._errors,locale:this._locale}},t.prototype.visitElement=function(t,e){switch(t.name){case"translationbundle":this._bundleDepth++,this._bundleDepth>1&&this._addError(t,"<translationbundle> elements can not be nested");var n=t.attrs.find(function(t){return"lang"===t.name});n&&(this._locale=n.value),he(this,t.children,null),this._bundleDepth--;break;case"translation":var r=t.attrs.find(function(t){return"id"===t.name});if(r){var i=r.value;if(this._msgIdToHtml.hasOwnProperty(i))this._addError(t,"Duplicated translations for msg "+i);else{var o=t.startSourceSpan.start.file.content.slice(t.startSourceSpan.end.offset,t.endSourceSpan.start.offset);this._msgIdToHtml[i]=o}}else this._addError(t,'<translation> misses the "id" attribute');break;default:this._addError(t,"Unexpected tag")}},t.prototype.visitAttribute=function(t,e){},t.prototype.visitText=function(t,e){},t.prototype.visitComment=function(t,e){},t.prototype.visitExpansion=function(t,e){},t.prototype.visitExpansionCase=function(t,e){},t.prototype._addError=function(t,e){this._errors.push(new Ni(t.sourceSpan,e))},t}(),fo=function(){function t(){}return t.prototype.convert=function(t,e){var n=(new Vi).parse(t,e,!0);return this._errors=n.errors,{i18nNodes:this._errors.length>0||0==n.rootNodes.length?[]:he(this,n.rootNodes),errors:this._errors}},t.prototype.visitText=function(t,e){return new yi(t.value,t.sourceSpan)},t.prototype.visitExpansion=function(t,e){var n={};return he(this,t.cases).forEach(function(e){n[e.value]=new mi(e.nodes,t.sourceSpan)}),new gi(t.switchValue,t.type,n,t.sourceSpan)},t.prototype.visitExpansionCase=function(t,e){return{value:t.value,nodes:he(this,t.expression)}},t.prototype.visitElement=function(t,e){if("ph"===t.name){var n=t.attrs.find(function(t){return"name"===t.name});if(n)return new bi("",n.value,t.sourceSpan);this._addError(t,'<ph> misses the "name" attribute')}else this._addError(t,"Unexpected tag");return null},t.prototype.visitComment=function(t,e){},t.prototype.visitAttribute=function(t,e){},t.prototype._addError=function(t,e){this._errors.push(new Ni(t.sourceSpan,e))},t}(),vo=function(t){function e(){return t.call(this,S)||this}return o(e,t),e.prototype.parse=function(e,n,r,i){return void 0===r&&(r=!1),void 0===i&&(i=_e),t.prototype.parse.call(this,e,n,r,i)},e}(Wr),yo=function(){function t(t,e,n,r,i,o){void 0===t&&(t={}),void 0===i&&(i=B.Warning),this._i18nNodesByMsgId=t,this.digest=n,this.mapperFactory=r,this._i18nToHtml=new mo(t,e,n,r,i,o)}return t.load=function(e,n,r,i,o){var s=r.load(e,n);return new t(s.i18nNodesByMsgId,s.locale,function(t){return r.digest(t)},function(t){return r.createNameMapper(t)},i,o)},t.prototype.get=function(t){var e=this._i18nToHtml.convert(t);if(e.errors.length)throw new Error(e.errors.join("\n"));return e.nodes},t.prototype.has=function(t){return this.digest(t)in this._i18nNodesByMsgId},t}(),mo=function(){function t(t,e,n,r,i,o){void 0===t&&(t={}),this._i18nNodesByMsgId=t,this._locale=e,this._digest=n,this._mapperFactory=r,this._missingTranslationStrategy=i,this._console=o,this._contextStack=[],this._errors=[]}return t.prototype.convert=function(t){this._contextStack.length=0,this._errors.length=0;var e=this._convertToText(t),n=t.nodes[0].sourceSpan.start.file.url,r=(new vo).parse(e,n,!0);return{nodes:r.rootNodes,errors:f(this._errors,r.errors)}},t.prototype.visitText=function(t,e){return Yi(t.value)},t.prototype.visitContainer=function(t,e){var n=this;return t.children.map(function(t){return t.visit(n)}).join("")},t.prototype.visitIcu=function(t,e){var n=this,r=Object.keys(t.cases).map(function(e){return e+" {"+t.cases[e].visit(n)+"}"});return"{"+(this._srcMsg.placeholders.hasOwnProperty(t.expression)?this._srcMsg.placeholders[t.expression]:t.expression)+", "+t.type+", "+r.join(" ")+"}"},t.prototype.visitPlaceholder=function(t,e){var n=this._mapper(t.name);return this._srcMsg.placeholders.hasOwnProperty(n)?this._srcMsg.placeholders[n]:this._srcMsg.placeholderToMessage.hasOwnProperty(n)?this._convertToText(this._srcMsg.placeholderToMessage[n]):(this._addError(t,'Unknown placeholder "'+t.name+'"'),"")},t.prototype.visitTagPlaceholder=function(t,e){var n=this,r=""+t.tag,i=Object.keys(t.attrs).map(function(e){return e+'="'+t.attrs[e]+'"'}).join(" ");return t.isVoid?"<"+r+" "+i+"/>":"<"+r+" "+i+">"+t.children.map(function(t){return t.visit(n)}).join("")+"</"+r+">"},t.prototype.visitIcuPlaceholder=function(t,e){return this._convertToText(this._srcMsg.placeholderToMessage[t.name])},t.prototype._convertToText=function(t){var e,n=this,r=this._digest(t),i=this._mapperFactory?this._mapperFactory(t):null;this._contextStack.push({msg:this._srcMsg,mapper:this._mapper}),this._srcMsg=t,this._i18nNodesByMsgId.hasOwnProperty(r)?(e=this._i18nNodesByMsgId[r],this._mapper=function(t){return i?i.toInternalName(t):t}):(this._missingTranslationStrategy===B.Error?this._addError(t.nodes[0],'Missing translation for message "'+r+'"'+(this._locale?' for locale "'+this._locale+'"':"")):this._console&&this._missingTranslationStrategy===B.Warning&&this._console.warn('Missing translation for message "'+r+'"'+(this._locale?' for locale "'+this._locale+'"':"")),e=t.nodes,this._mapper=function(t){return t});var o=e.map(function(t){return t.visit(n)}).join(""),s=this._contextStack.pop();return this._srcMsg=s.msg,this._mapper=s.mapper,o},t.prototype._addError=function(t,e){this._errors.push(new Ni(t.sourceSpan,e))},t}(),go=function(){function t(t,e,n,r,i){if(void 0===r&&(r=B.Warning),this._htmlParser=t,e){var o=function s(t){switch(t=(t||"xlf").toLowerCase()){case"xmb":return new oo;case"xtb":return new po;case"xliff2":case"xlf2":return new eo;case"xliff":case"xlf":default:return new Zi}}
183
183
  /**
184
184
  * @license
185
185
  * Copyright Google Inc. All Rights Reserved.
186
186
  *
187
187
  * Use of this source code is governed by an MIT-style license that can be
188
188
  * found in the LICENSE file at https://angular.io/license
189
- */(n);this._translationBundle=ho.load(e,"i18n",o,r,i)}else this._translationBundle=new ho({},null,Wr,void 0,r,i)}return t.prototype.parse=function(t,e,n,r){void 0===n&&(n=!1),void 0===r&&(r=ye);var i=this._htmlParser.parse(t,e,n,r);return i.errors.length?new qr(i.rootNodes,i.errors):function o(t,e,n,r,i){return new Mi(r,i).merge(t,e,n)}(i.rootNodes,this._translationBundle,r,[],{})},t}(),yo="@angular/core",mo=function(){function t(){}return t.ANALYZE_FOR_ENTRY_COMPONENTS={name:"ANALYZE_FOR_ENTRY_COMPONENTS",moduleName:yo},t.ElementRef={name:"ElementRef",moduleName:yo},t.NgModuleRef={name:"NgModuleRef",moduleName:yo},t.ViewContainerRef={name:"ViewContainerRef",moduleName:yo},t.ChangeDetectorRef={name:"ChangeDetectorRef",moduleName:yo},t.QueryList={name:"QueryList",moduleName:yo},t.TemplateRef={name:"TemplateRef",moduleName:yo},t.CodegenComponentFactoryResolver={name:"ɵCodegenComponentFactoryResolver",moduleName:yo},t.ComponentFactoryResolver={name:"ComponentFactoryResolver",moduleName:yo},t.ComponentFactory={name:"ComponentFactory",moduleName:yo},t.ComponentRef={name:"ComponentRef",moduleName:yo},t.NgModuleFactory={name:"NgModuleFactory",moduleName:yo},t.createModuleFactory={name:"ɵcmf",moduleName:yo},t.moduleDef={name:"ɵmod",moduleName:yo},t.moduleProviderDef={name:"ɵmpd",moduleName:yo},t.RegisterModuleFactoryFn={name:"ɵregisterModuleFactory",moduleName:yo},t.inject={name:"inject",moduleName:yo},t.INJECTOR={name:"INJECTOR",moduleName:yo},t.Injector={name:"Injector",moduleName:yo},t.defineInjectable={name:"defineInjectable",moduleName:yo},t.InjectableDef={name:"ɵInjectableDef",moduleName:yo},t.ViewEncapsulation={name:"ViewEncapsulation",moduleName:yo},t.ChangeDetectionStrategy={name:"ChangeDetectionStrategy",moduleName:yo},t.SecurityContext={name:"SecurityContext",moduleName:yo},t.LOCALE_ID={name:"LOCALE_ID",moduleName:yo},t.TRANSLATIONS_FORMAT={name:"TRANSLATIONS_FORMAT",moduleName:yo},t.inlineInterpolate={name:"ɵinlineInterpolate",moduleName:yo},t.interpolate={name:"ɵinterpolate",moduleName:yo},t.EMPTY_ARRAY={name:"ɵEMPTY_ARRAY",moduleName:yo},t.EMPTY_MAP={name:"ɵEMPTY_MAP",moduleName:yo},t.Renderer={name:"Renderer",moduleName:yo},t.viewDef={name:"ɵvid",moduleName:yo},t.elementDef={name:"ɵeld",moduleName:yo},t.anchorDef={name:"ɵand",moduleName:yo},t.textDef={name:"ɵted",moduleName:yo},t.directiveDef={name:"ɵdid",moduleName:yo},t.providerDef={name:"ɵprd",moduleName:yo},t.queryDef={name:"ɵqud",moduleName:yo},t.pureArrayDef={name:"ɵpad",moduleName:yo},t.pureObjectDef={name:"ɵpod",moduleName:yo},t.purePipeDef={name:"ɵppd",moduleName:yo},t.pipeDef={name:"ɵpid",moduleName:yo},t.nodeValue={name:"ɵnov",moduleName:yo},t.ngContentDef={name:"ɵncd",moduleName:yo},t.unwrapValue={name:"ɵunv",moduleName:yo},t.createRendererType2={name:"ɵcrt",moduleName:yo},t.RendererType2={name:"RendererType2",moduleName:yo},t.ViewDefinition={name:"ɵViewDefinition",moduleName:yo},t.createComponentFactory={name:"ɵccf",moduleName:yo},t}();function go(t){return{identifier:{reference:t}}}function _o(t,e){return go(t.resolveExternalReference(e))}
189
+ */(n);this._translationBundle=yo.load(e,"i18n",o,r,i)}else this._translationBundle=new yo({},null,Xr,void 0,r,i)}return t.prototype.parse=function(t,e,n,r){void 0===n&&(n=!1),void 0===r&&(r=_e);var i=this._htmlParser.parse(t,e,n,r);return i.errors.length?new zr(i.rootNodes,i.errors):function o(t,e,n,r,i){return new Di(r,i).merge(t,e,n)}(i.rootNodes,this._translationBundle,r,[],{})},t}(),_o="@angular/core",bo=function(){function t(){}return t.ANALYZE_FOR_ENTRY_COMPONENTS={name:"ANALYZE_FOR_ENTRY_COMPONENTS",moduleName:_o},t.ElementRef={name:"ElementRef",moduleName:_o},t.NgModuleRef={name:"NgModuleRef",moduleName:_o},t.ViewContainerRef={name:"ViewContainerRef",moduleName:_o},t.ChangeDetectorRef={name:"ChangeDetectorRef",moduleName:_o},t.QueryList={name:"QueryList",moduleName:_o},t.TemplateRef={name:"TemplateRef",moduleName:_o},t.CodegenComponentFactoryResolver={name:"ɵCodegenComponentFactoryResolver",moduleName:_o},t.ComponentFactoryResolver={name:"ComponentFactoryResolver",moduleName:_o},t.ComponentFactory={name:"ComponentFactory",moduleName:_o},t.ComponentRef={name:"ComponentRef",moduleName:_o},t.NgModuleFactory={name:"NgModuleFactory",moduleName:_o},t.createModuleFactory={name:"ɵcmf",moduleName:_o},t.moduleDef={name:"ɵmod",moduleName:_o},t.moduleProviderDef={name:"ɵmpd",moduleName:_o},t.RegisterModuleFactoryFn={name:"ɵregisterModuleFactory",moduleName:_o},t.inject={name:"inject",moduleName:_o},t.INJECTOR={name:"INJECTOR",moduleName:_o},t.Injector={name:"Injector",moduleName:_o},t.defineInjectable={name:"defineInjectable",moduleName:_o},t.InjectableDef={name:"ɵInjectableDef",moduleName:_o},t.ViewEncapsulation={name:"ViewEncapsulation",moduleName:_o},t.ChangeDetectionStrategy={name:"ChangeDetectionStrategy",moduleName:_o},t.SecurityContext={name:"SecurityContext",moduleName:_o},t.LOCALE_ID={name:"LOCALE_ID",moduleName:_o},t.TRANSLATIONS_FORMAT={name:"TRANSLATIONS_FORMAT",moduleName:_o},t.inlineInterpolate={name:"ɵinlineInterpolate",moduleName:_o},t.interpolate={name:"ɵinterpolate",moduleName:_o},t.EMPTY_ARRAY={name:"ɵEMPTY_ARRAY",moduleName:_o},t.EMPTY_MAP={name:"ɵEMPTY_MAP",moduleName:_o},t.Renderer={name:"Renderer",moduleName:_o},t.viewDef={name:"ɵvid",moduleName:_o},t.elementDef={name:"ɵeld",moduleName:_o},t.anchorDef={name:"ɵand",moduleName:_o},t.textDef={name:"ɵted",moduleName:_o},t.directiveDef={name:"ɵdid",moduleName:_o},t.providerDef={name:"ɵprd",moduleName:_o},t.queryDef={name:"ɵqud",moduleName:_o},t.pureArrayDef={name:"ɵpad",moduleName:_o},t.pureObjectDef={name:"ɵpod",moduleName:_o},t.purePipeDef={name:"ɵppd",moduleName:_o},t.pipeDef={name:"ɵpid",moduleName:_o},t.nodeValue={name:"ɵnov",moduleName:_o},t.ngContentDef={name:"ɵncd",moduleName:_o},t.unwrapValue={name:"ɵunv",moduleName:_o},t.createRendererType2={name:"ɵcrt",moduleName:_o},t.RendererType2={name:"RendererType2",moduleName:_o},t.ViewDefinition={name:"ɵViewDefinition",moduleName:_o},t.createComponentFactory={name:"ɵccf",moduleName:_o},t}();function wo(t){return{identifier:{reference:t}}}function xo(t,e){return wo(t.resolveExternalReference(e))}
190
190
  /**
191
191
  * @license
192
192
  * Copyright Google Inc. All Rights Reserved.
193
193
  *
194
194
  * Use of this source code is governed by an MIT-style license that can be
195
195
  * found in the LICENSE file at https://angular.io/license
196
- */!function(t){t[t.Const=0]="Const"}(ao||(ao={}));var bo,wo=function(){function t(t){void 0===t&&(t=null),this.modifiers=t,t||(this.modifiers=[])}return t.prototype.hasModifier=function(t){return-1!==this.modifiers.indexOf(t)},t}();!function(t){t[t.Dynamic=0]="Dynamic",t[t.Bool=1]="Bool",t[t.String=2]="String",t[t.Int=3]="Int",t[t.Number=4]="Number",t[t.Function=5]="Function",t[t.Inferred=6]="Inferred",t[t.None=7]="None"}(bo||(bo={}));var xo,Eo=function(t){function e(e,n){void 0===n&&(n=null);var r=t.call(this,n)||this;return r.name=e,r}return o(e,t),e.prototype.visitType=function(t,e){return t.visitBuiltinType(this,e)},e}(wo),So=(function(t){function e(e,n,r){void 0===n&&(n=null),void 0===r&&(r=null);var i=t.call(this,n)||this;return i.value=e,i.typeParams=r,i}o(e,t),e.prototype.visitType=function(t,e){return t.visitExpressionType(this,e)}}(wo),function(t){function e(e,n){void 0===n&&(n=null);var r=t.call(this,n)||this;return r.of=e,r}o(e,t),e.prototype.visitType=function(t,e){return t.visitArrayType(this,e)}}(wo),function(t){function e(e,n){void 0===n&&(n=null);var r=t.call(this,n)||this;return r.valueType=e||null,r}return o(e,t),e.prototype.visitType=function(t,e){return t.visitMapType(this,e)},e}(wo)),Co=(new Eo(bo.Dynamic),new Eo(bo.Inferred)),To=new Eo(bo.Bool);function Po(t,e){return null==t||null==e?t==e:t.isEquivalent(e)}function Ao(t,e){var n=t.length;if(n!==e.length)return!1;for(var r=0;r<n;r++)if(!t[r].isEquivalent(e[r]))return!1;return!0}new Eo(bo.Int),new Eo(bo.Number),new Eo(bo.String),new Eo(bo.Function),new Eo(bo.None),function(t){t[t.Equals=0]="Equals",t[t.NotEquals=1]="NotEquals",t[t.Identical=2]="Identical",t[t.NotIdentical=3]="NotIdentical",t[t.Minus=4]="Minus",t[t.Plus=5]="Plus",t[t.Divide=6]="Divide",t[t.Multiply=7]="Multiply",t[t.Modulo=8]="Modulo",t[t.And=9]="And",t[t.Or=10]="Or",t[t.BitwiseAnd=11]="BitwiseAnd",t[t.Lower=12]="Lower",t[t.LowerEquals=13]="LowerEquals",t[t.Bigger=14]="Bigger",t[t.BiggerEquals=15]="BiggerEquals"}(xo||(xo={}));var No,ko=function(){function t(t,e){this.type=t||null,this.sourceSpan=e||null}return t.prototype.prop=function(t,e){return new Xo(this,t,null,e)},t.prototype.key=function(t,e,n){return new Yo(this,t,e,n)},t.prototype.callMethod=function(t,e,n){return new Fo(this,t,e,null,n)},t.prototype.callFn=function(t,e){return new Vo(this,t,null,e)},t.prototype.instantiate=function(t,e,n){return new Ho(this,t,e,n)},t.prototype.conditional=function(t,e,n){return void 0===e&&(e=null),new Ko(this,t,e,null,n)},t.prototype.equals=function(t,e){return new Go(xo.Equals,this,t,null,e)},t.prototype.notEquals=function(t,e){return new Go(xo.NotEquals,this,t,null,e)},t.prototype.identical=function(t,e){return new Go(xo.Identical,this,t,null,e)},t.prototype.notIdentical=function(t,e){return new Go(xo.NotIdentical,this,t,null,e)},t.prototype.minus=function(t,e){return new Go(xo.Minus,this,t,null,e)},t.prototype.plus=function(t,e){return new Go(xo.Plus,this,t,null,e)},t.prototype.divide=function(t,e){return new Go(xo.Divide,this,t,null,e)},t.prototype.multiply=function(t,e){return new Go(xo.Multiply,this,t,null,e)},t.prototype.modulo=function(t,e){return new Go(xo.Modulo,this,t,null,e)},t.prototype.and=function(t,e){return new Go(xo.And,this,t,null,e)},t.prototype.bitwiseAnd=function(t,e,n){return void 0===n&&(n=!0),new Go(xo.BitwiseAnd,this,t,null,e,n)},t.prototype.or=function(t,e){return new Go(xo.Or,this,t,null,e)},t.prototype.lower=function(t,e){return new Go(xo.Lower,this,t,null,e)},t.prototype.lowerEquals=function(t,e){return new Go(xo.LowerEquals,this,t,null,e)},t.prototype.bigger=function(t,e){return new Go(xo.Bigger,this,t,null,e)},t.prototype.biggerEquals=function(t,e){return new Go(xo.BiggerEquals,this,t,null,e)},t.prototype.isBlank=function(t){return this.equals(es,t)},t.prototype.cast=function(t,e){return new Wo(this,t,e)},t.prototype.toStmt=function(){return new os(this,null)},t}();!function(t){t[t.This=0]="This",t[t.Super=1]="Super",t[t.CatchError=2]="CatchError",t[t.CatchStack=3]="CatchStack"}(No||(No={}));var Oo,Mo=function(t){function e(e,n,r){var i=t.call(this,n,r)||this;return"string"==typeof e?(i.name=e,i.builtin=null):(i.name=null,i.builtin=e),i}return o(e,t),e.prototype.isEquivalent=function(t){return t instanceof e&&this.name===t.name&&this.builtin===t.builtin},e.prototype.isConstant=function(){return!1},e.prototype.visitExpression=function(t,e){return t.visitReadVarExpr(this,e)},e.prototype.set=function(t){if(!this.name)throw new Error("Built in variable "+this.builtin+" can not be assigned to.");return new Ro(this.name,t,null,this.sourceSpan)},e}(ko),Io=function(t){function e(e,n,r){var i=t.call(this,n,r)||this;return i.expr=e,i}return o(e,t),e.prototype.visitExpression=function(t,e){return t.visitTypeofExpr(this,e)},e.prototype.isEquivalent=function(t){return t instanceof e&&t.expr.isEquivalent(this.expr)},e.prototype.isConstant=function(){return this.expr.isConstant()},e}(ko),Ro=(function(t){function e(e,n,r){var i=t.call(this,n,r)||this;return i.node=e,i}o(e,t),e.prototype.isEquivalent=function(t){return t instanceof e&&this.node===t.node},e.prototype.isConstant=function(){return!1},e.prototype.visitExpression=function(t,e){return t.visitWrappedNodeExpr(this,e)}}(ko),function(t){function e(e,n,r,i){var o=t.call(this,r||n.type,i)||this;return o.name=e,o.value=n,o}return o(e,t),e.prototype.isEquivalent=function(t){return t instanceof e&&this.name===t.name&&this.value.isEquivalent(t.value)},e.prototype.isConstant=function(){return!1},e.prototype.visitExpression=function(t,e){return t.visitWriteVarExpr(this,e)},e.prototype.toDeclStmt=function(t,e){return new rs(this.name,this.value,t,e,this.sourceSpan)},e}(ko)),Do=function(t){function e(e,n,r,i,o){var s=t.call(this,i||r.type,o)||this;return s.receiver=e,s.index=n,s.value=r,s}return o(e,t),e.prototype.isEquivalent=function(t){return t instanceof e&&this.receiver.isEquivalent(t.receiver)&&this.index.isEquivalent(t.index)&&this.value.isEquivalent(t.value)},e.prototype.isConstant=function(){return!1},e.prototype.visitExpression=function(t,e){return t.visitWriteKeyExpr(this,e)},e}(ko),jo=function(t){function e(e,n,r,i,o){var s=t.call(this,i||r.type,o)||this;return s.receiver=e,s.name=n,s.value=r,s}return o(e,t),e.prototype.isEquivalent=function(t){return t instanceof e&&this.receiver.isEquivalent(t.receiver)&&this.name===t.name&&this.value.isEquivalent(t.value)},e.prototype.isConstant=function(){return!1},e.prototype.visitExpression=function(t,e){return t.visitWritePropExpr(this,e)},e}(ko);!function(t){t[t.ConcatArray=0]="ConcatArray",t[t.SubscribeObservable=1]="SubscribeObservable",t[t.Bind=2]="Bind"}(Oo||(Oo={}));var Lo,Fo=function(t){function e(e,n,r,i,o){var s=t.call(this,i,o)||this;return s.receiver=e,s.args=r,"string"==typeof n?(s.name=n,s.builtin=null):(s.name=null,s.builtin=n),s}return o(e,t),e.prototype.isEquivalent=function(t){return t instanceof e&&this.receiver.isEquivalent(t.receiver)&&this.name===t.name&&this.builtin===t.builtin&&Ao(this.args,t.args)},e.prototype.isConstant=function(){return!1},e.prototype.visitExpression=function(t,e){return t.visitInvokeMethodExpr(this,e)},e}(ko),Vo=function(t){function e(e,n,r,i){var o=t.call(this,r,i)||this;return o.fn=e,o.args=n,o}return o(e,t),e.prototype.isEquivalent=function(t){return t instanceof e&&this.fn.isEquivalent(t.fn)&&Ao(this.args,t.args)},e.prototype.isConstant=function(){return!1},e.prototype.visitExpression=function(t,e){return t.visitInvokeFunctionExpr(this,e)},e}(ko),Ho=function(t){function e(e,n,r,i){var o=t.call(this,r,i)||this;return o.classExpr=e,o.args=n,o}return o(e,t),e.prototype.isEquivalent=function(t){return t instanceof e&&this.classExpr.isEquivalent(t.classExpr)&&Ao(this.args,t.args)},e.prototype.isConstant=function(){return!1},e.prototype.visitExpression=function(t,e){return t.visitInstantiateExpr(this,e)},e}(ko),Bo=function(t){function e(e,n,r){var i=t.call(this,n,r)||this;return i.value=e,i}return o(e,t),e.prototype.isEquivalent=function(t){return t instanceof e&&this.value===t.value},e.prototype.isConstant=function(){return!0},e.prototype.visitExpression=function(t,e){return t.visitLiteralExpr(this,e)},e}(ko),qo=function(t){function e(e,n,r,i){void 0===r&&(r=null);var o=t.call(this,n,i)||this;return o.value=e,o.typeParams=r,o}return o(e,t),e.prototype.isEquivalent=function(t){return t instanceof e&&this.value.name===t.value.name&&this.value.moduleName===t.value.moduleName&&this.value.runtime===t.value.runtime},e.prototype.isConstant=function(){return!1},e.prototype.visitExpression=function(t,e){return t.visitExternalExpr(this,e)},e}(ko),Ko=function(t){function e(e,n,r,i,o){void 0===r&&(r=null);var s=t.call(this,i||n.type,o)||this;return s.condition=e,s.falseCase=r,s.trueCase=n,s}return o(e,t),e.prototype.isEquivalent=function(t){return t instanceof e&&this.condition.isEquivalent(t.condition)&&this.trueCase.isEquivalent(t.trueCase)&&Po(this.falseCase,t.falseCase)},e.prototype.isConstant=function(){return!1},e.prototype.visitExpression=function(t,e){return t.visitConditionalExpr(this,e)},e}(ko),Uo=function(t){function e(e,n){var r=t.call(this,To,n)||this;return r.condition=e,r}return o(e,t),e.prototype.isEquivalent=function(t){return t instanceof e&&this.condition.isEquivalent(t.condition)},e.prototype.isConstant=function(){return!1},e.prototype.visitExpression=function(t,e){return t.visitNotExpr(this,e)},e}(ko),zo=function(t){function e(e,n){var r=t.call(this,e.type,n)||this;return r.condition=e,r}return o(e,t),e.prototype.isEquivalent=function(t){return t instanceof e&&this.condition.isEquivalent(t.condition)},e.prototype.isConstant=function(){return!1},e.prototype.visitExpression=function(t,e){return t.visitAssertNotNullExpr(this,e)},e}(ko),Wo=function(t){function e(e,n,r){var i=t.call(this,n,r)||this;return i.value=e,i}return o(e,t),e.prototype.isEquivalent=function(t){return t instanceof e&&this.value.isEquivalent(t.value)},e.prototype.isConstant=function(){return!1},e.prototype.visitExpression=function(t,e){return t.visitCastExpr(this,e)},e}(ko),Qo=function(t){function e(e,n,r,i,o){var s=t.call(this,r,i)||this;return s.params=e,s.statements=n,s.name=o,s}return o(e,t),e.prototype.isEquivalent=function(t){return t instanceof e&&Ao(this.params,t.params)&&Ao(this.statements,t.statements)},e.prototype.isConstant=function(){return!1},e.prototype.visitExpression=function(t,e){return t.visitFunctionExpr(this,e)},e.prototype.toDeclStmt=function(t,e){return void 0===e&&(e=null),new is(t,this.params,this.statements,this.type,e,this.sourceSpan)},e}(ko),Go=function(t){function e(e,n,r,i,o,s){void 0===s&&(s=!0);var a=t.call(this,i||n.type,o)||this;return a.operator=e,a.rhs=r,a.parens=s,a.lhs=n,a}return o(e,t),e.prototype.isEquivalent=function(t){return t instanceof e&&this.operator===t.operator&&this.lhs.isEquivalent(t.lhs)&&this.rhs.isEquivalent(t.rhs)},e.prototype.isConstant=function(){return!1},e.prototype.visitExpression=function(t,e){return t.visitBinaryOperatorExpr(this,e)},e}(ko),Xo=function(t){function e(e,n,r,i){var o=t.call(this,r,i)||this;return o.receiver=e,o.name=n,o}return o(e,t),e.prototype.isEquivalent=function(t){return t instanceof e&&this.receiver.isEquivalent(t.receiver)&&this.name===t.name},e.prototype.isConstant=function(){return!1},e.prototype.visitExpression=function(t,e){return t.visitReadPropExpr(this,e)},e.prototype.set=function(t){return new jo(this.receiver,this.name,t,null,this.sourceSpan)},e}(ko),Yo=function(t){function e(e,n,r,i){var o=t.call(this,r,i)||this;return o.receiver=e,o.index=n,o}return o(e,t),e.prototype.isEquivalent=function(t){return t instanceof e&&this.receiver.isEquivalent(t.receiver)&&this.index.isEquivalent(t.index)},e.prototype.isConstant=function(){return!1},e.prototype.visitExpression=function(t,e){return t.visitReadKeyExpr(this,e)},e.prototype.set=function(t){return new Do(this.receiver,this.index,t,null,this.sourceSpan)},e}(ko),Zo=function(t){function e(e,n,r){var i=t.call(this,n,r)||this;return i.entries=e,i}return o(e,t),e.prototype.isConstant=function(){return this.entries.every(function(t){return t.isConstant()})},e.prototype.isEquivalent=function(t){return t instanceof e&&Ao(this.entries,t.entries)},e.prototype.visitExpression=function(t,e){return t.visitLiteralArrayExpr(this,e)},e}(ko),$o=function(){function t(t,e,n){this.key=t,this.value=e,this.quoted=n}return t.prototype.isEquivalent=function(t){return this.key===t.key&&this.value.isEquivalent(t.value)},t}(),Jo=function(t){function e(e,n,r){var i=t.call(this,n,r)||this;return i.entries=e,i.valueType=null,n&&(i.valueType=n.valueType),i}return o(e,t),e.prototype.isEquivalent=function(t){return t instanceof e&&Ao(this.entries,t.entries)},e.prototype.isConstant=function(){return this.entries.every(function(t){return t.value.isConstant()})},e.prototype.visitExpression=function(t,e){return t.visitLiteralMapExpr(this,e)},e}(ko),ts=function(t){function e(e,n){var r=t.call(this,e[e.length-1].type,n)||this;return r.parts=e,r}return o(e,t),e.prototype.isEquivalent=function(t){return t instanceof e&&Ao(this.parts,t.parts)},e.prototype.isConstant=function(){return!1},e.prototype.visitExpression=function(t,e){return t.visitCommaExpr(this,e)},e}(ko),es=(new Mo(No.This,null,null),new Mo(No.Super,null,null),new Mo(No.CatchError,null,null),new Mo(No.CatchStack,null,null),new Bo(null,null,null),new Bo(null,Co,null));!function(t){t[t.Final=0]="Final",t[t.Private=1]="Private",t[t.Exported=2]="Exported",t[t.Static=3]="Static"}(Lo||(Lo={}));var ns=function(){function t(t,e){this.modifiers=t||[],this.sourceSpan=e||null}return t.prototype.hasModifier=function(t){return-1!==this.modifiers.indexOf(t)},t}(),rs=function(t){function e(e,n,r,i,o){void 0===i&&(i=null);var s=t.call(this,i,o)||this;return s.name=e,s.value=n,s.type=r||n&&n.type||null,s}return o(e,t),e.prototype.isEquivalent=function(t){return t instanceof e&&this.name===t.name&&(this.value?!!t.value&&this.value.isEquivalent(t.value):!t.value)},e.prototype.visitStatement=function(t,e){return t.visitDeclareVarStmt(this,e)},e}(ns),is=function(t){function e(e,n,r,i,o,s){void 0===o&&(o=null);var a=t.call(this,o,s)||this;return a.name=e,a.params=n,a.statements=r,a.type=i||null,a}return o(e,t),e.prototype.isEquivalent=function(t){return t instanceof e&&Ao(this.params,t.params)&&Ao(this.statements,t.statements)},e.prototype.visitStatement=function(t,e){return t.visitDeclareFunctionStmt(this,e)},e}(ns),os=function(t){function e(e,n){var r=t.call(this,null,n)||this;return r.expr=e,r}return o(e,t),e.prototype.isEquivalent=function(t){return t instanceof e&&this.expr.isEquivalent(t.expr)},e.prototype.visitStatement=function(t,e){return t.visitExpressionStmt(this,e)},e}(ns),ss=function(t){function e(e,n){var r=t.call(this,null,n)||this;return r.value=e,r}return o(e,t),e.prototype.isEquivalent=function(t){return t instanceof e&&this.value.isEquivalent(t.value)},e.prototype.visitStatement=function(t,e){return t.visitReturnStmt(this,e)},e}(ns),as=function(){function t(t,e){this.modifiers=e,e||(this.modifiers=[]),this.type=t||null}return t.prototype.hasModifier=function(t){return-1!==this.modifiers.indexOf(t)},t}(),us=(function(t){function e(e,n,r,i){void 0===r&&(r=null);var o=t.call(this,n,r)||this;return o.name=e,o.initializer=i,o}o(e,t),e.prototype.isEquivalent=function(t){return this.name===t.name}}(as),function(t){function e(e,n,r,i,o){void 0===o&&(o=null);var s=t.call(this,i,o)||this;return s.name=e,s.params=n,s.body=r,s}return o(e,t),e.prototype.isEquivalent=function(t){return this.name===t.name&&Ao(this.body,t.body)},e}(as)),cs=function(t){function e(e,n,r,i){void 0===i&&(i=null);var o=t.call(this,r,i)||this;return o.name=e,o.body=n,o}return o(e,t),e.prototype.isEquivalent=function(t){return this.name===t.name&&Ao(this.body,t.body)},e}(as),ls=function(t){function e(e,n,r,i,o,s,a,u){void 0===a&&(a=null);var c=t.call(this,a,u)||this;return c.name=e,c.parent=n,c.fields=r,c.getters=i,c.constructorMethod=o,c.methods=s,c}return o(e,t),e.prototype.isEquivalent=function(t){return t instanceof e&&this.name===t.name&&Po(this.parent,t.parent)&&Ao(this.fields,t.fields)&&Ao(this.getters,t.getters)&&this.constructorMethod.isEquivalent(t.constructorMethod)&&Ao(this.methods,t.methods)},e.prototype.visitStatement=function(t,e){return t.visitDeclareClassStmt(this,e)},e}(ns),ps=function(t){function e(e,n,r,i){void 0===r&&(r=[]);var o=t.call(this,null,i)||this;return o.condition=e,o.trueCase=n,o.falseCase=r,o}return o(e,t),e.prototype.isEquivalent=function(t){return t instanceof e&&this.condition.isEquivalent(t.condition)&&Ao(this.trueCase,t.trueCase)&&Ao(this.falseCase,t.falseCase)},e.prototype.visitStatement=function(t,e){return t.visitIfStmt(this,e)},e}(ns),hs=(function(t){function e(e,n,r){void 0===n&&(n=!1);var i=t.call(this,null,r)||this;return i.comment=e,i.multiline=n,i}o(e,t),e.prototype.isEquivalent=function(t){return t instanceof e},e.prototype.visitStatement=function(t,e){return t.visitCommentStmt(this,e)}}(ns),function(t){function e(e,n){void 0===e&&(e=[]);var r=t.call(this,null,n)||this;return r.tags=e,r}o(e,t),e.prototype.isEquivalent=function(t){return t instanceof e&&this.toString()===t.toString()},e.prototype.visitStatement=function(t,e){return t.visitJSDocCommentStmt(this,e)},e.prototype.toString=function(){return function t(e){var n,r;if(0===e.length)return"";var i="*\n";try{for(var o=u(e),s=o.next();!s.done;s=o.next())i+=" *",i+=_s(s.value).replace(/\n/g,"\n * "),i+="\n"}catch(t){n={error:t}}finally{try{s&&!s.done&&(r=o.return)&&r.call(o)}finally{if(n)throw n.error}}return i+" "}
196
+ */!function(t){t[t.Const=0]="Const"}(lo||(lo={}));var Eo,So=function(){function t(t){void 0===t&&(t=null),this.modifiers=t,t||(this.modifiers=[])}return t.prototype.hasModifier=function(t){return-1!==this.modifiers.indexOf(t)},t}();!function(t){t[t.Dynamic=0]="Dynamic",t[t.Bool=1]="Bool",t[t.String=2]="String",t[t.Int=3]="Int",t[t.Number=4]="Number",t[t.Function=5]="Function",t[t.Inferred=6]="Inferred",t[t.None=7]="None"}(Eo||(Eo={}));var Co,To=function(t){function e(e,n){void 0===n&&(n=null);var r=t.call(this,n)||this;return r.name=e,r}return o(e,t),e.prototype.visitType=function(t,e){return t.visitBuiltinType(this,e)},e}(So),Po=(function(t){function e(e,n,r){void 0===n&&(n=null),void 0===r&&(r=null);var i=t.call(this,n)||this;return i.value=e,i.typeParams=r,i}o(e,t),e.prototype.visitType=function(t,e){return t.visitExpressionType(this,e)}}(So),function(t){function e(e,n){void 0===n&&(n=null);var r=t.call(this,n)||this;return r.of=e,r}o(e,t),e.prototype.visitType=function(t,e){return t.visitArrayType(this,e)}}(So),function(t){function e(e,n){void 0===n&&(n=null);var r=t.call(this,n)||this;return r.valueType=e||null,r}return o(e,t),e.prototype.visitType=function(t,e){return t.visitMapType(this,e)},e}(So)),Ao=(new To(Eo.Dynamic),new To(Eo.Inferred)),No=new To(Eo.Bool);function ko(t,e){return null==t||null==e?t==e:t.isEquivalent(e)}function Oo(t,e){var n=t.length;if(n!==e.length)return!1;for(var r=0;r<n;r++)if(!t[r].isEquivalent(e[r]))return!1;return!0}new To(Eo.Int),new To(Eo.Number),new To(Eo.String),new To(Eo.Function),new To(Eo.None),function(t){t[t.Equals=0]="Equals",t[t.NotEquals=1]="NotEquals",t[t.Identical=2]="Identical",t[t.NotIdentical=3]="NotIdentical",t[t.Minus=4]="Minus",t[t.Plus=5]="Plus",t[t.Divide=6]="Divide",t[t.Multiply=7]="Multiply",t[t.Modulo=8]="Modulo",t[t.And=9]="And",t[t.Or=10]="Or",t[t.BitwiseAnd=11]="BitwiseAnd",t[t.Lower=12]="Lower",t[t.LowerEquals=13]="LowerEquals",t[t.Bigger=14]="Bigger",t[t.BiggerEquals=15]="BiggerEquals"}(Co||(Co={}));var Mo,Io=function(){function t(t,e){this.type=t||null,this.sourceSpan=e||null}return t.prototype.prop=function(t,e){return new $o(this,t,null,e)},t.prototype.key=function(t,e,n){return new Jo(this,t,e,n)},t.prototype.callMethod=function(t,e,n){return new Bo(this,t,e,null,n)},t.prototype.callFn=function(t,e){return new qo(this,t,null,e)},t.prototype.instantiate=function(t,e,n){return new Ko(this,t,e,n)},t.prototype.conditional=function(t,e,n){return void 0===e&&(e=null),new Wo(this,t,e,null,n)},t.prototype.equals=function(t,e){return new Zo(Co.Equals,this,t,null,e)},t.prototype.notEquals=function(t,e){return new Zo(Co.NotEquals,this,t,null,e)},t.prototype.identical=function(t,e){return new Zo(Co.Identical,this,t,null,e)},t.prototype.notIdentical=function(t,e){return new Zo(Co.NotIdentical,this,t,null,e)},t.prototype.minus=function(t,e){return new Zo(Co.Minus,this,t,null,e)},t.prototype.plus=function(t,e){return new Zo(Co.Plus,this,t,null,e)},t.prototype.divide=function(t,e){return new Zo(Co.Divide,this,t,null,e)},t.prototype.multiply=function(t,e){return new Zo(Co.Multiply,this,t,null,e)},t.prototype.modulo=function(t,e){return new Zo(Co.Modulo,this,t,null,e)},t.prototype.and=function(t,e){return new Zo(Co.And,this,t,null,e)},t.prototype.bitwiseAnd=function(t,e,n){return void 0===n&&(n=!0),new Zo(Co.BitwiseAnd,this,t,null,e,n)},t.prototype.or=function(t,e){return new Zo(Co.Or,this,t,null,e)},t.prototype.lower=function(t,e){return new Zo(Co.Lower,this,t,null,e)},t.prototype.lowerEquals=function(t,e){return new Zo(Co.LowerEquals,this,t,null,e)},t.prototype.bigger=function(t,e){return new Zo(Co.Bigger,this,t,null,e)},t.prototype.biggerEquals=function(t,e){return new Zo(Co.BiggerEquals,this,t,null,e)},t.prototype.isBlank=function(t){return this.equals(is,t)},t.prototype.cast=function(t,e){return new Xo(this,t,e)},t.prototype.toStmt=function(){return new us(this,null)},t}();!function(t){t[t.This=0]="This",t[t.Super=1]="Super",t[t.CatchError=2]="CatchError",t[t.CatchStack=3]="CatchStack"}(Mo||(Mo={}));var Ro,Do=function(t){function e(e,n,r){var i=t.call(this,n,r)||this;return"string"==typeof e?(i.name=e,i.builtin=null):(i.name=null,i.builtin=e),i}return o(e,t),e.prototype.isEquivalent=function(t){return t instanceof e&&this.name===t.name&&this.builtin===t.builtin},e.prototype.isConstant=function(){return!1},e.prototype.visitExpression=function(t,e){return t.visitReadVarExpr(this,e)},e.prototype.set=function(t){if(!this.name)throw new Error("Built in variable "+this.builtin+" can not be assigned to.");return new Lo(this.name,t,null,this.sourceSpan)},e}(Io),jo=function(t){function e(e,n,r){var i=t.call(this,n,r)||this;return i.expr=e,i}return o(e,t),e.prototype.visitExpression=function(t,e){return t.visitTypeofExpr(this,e)},e.prototype.isEquivalent=function(t){return t instanceof e&&t.expr.isEquivalent(this.expr)},e.prototype.isConstant=function(){return this.expr.isConstant()},e}(Io),Lo=(function(t){function e(e,n,r){var i=t.call(this,n,r)||this;return i.node=e,i}o(e,t),e.prototype.isEquivalent=function(t){return t instanceof e&&this.node===t.node},e.prototype.isConstant=function(){return!1},e.prototype.visitExpression=function(t,e){return t.visitWrappedNodeExpr(this,e)}}(Io),function(t){function e(e,n,r,i){var o=t.call(this,r||n.type,i)||this;return o.name=e,o.value=n,o}return o(e,t),e.prototype.isEquivalent=function(t){return t instanceof e&&this.name===t.name&&this.value.isEquivalent(t.value)},e.prototype.isConstant=function(){return!1},e.prototype.visitExpression=function(t,e){return t.visitWriteVarExpr(this,e)},e.prototype.toDeclStmt=function(t,e){return new ss(this.name,this.value,t,e,this.sourceSpan)},e}(Io)),Fo=function(t){function e(e,n,r,i,o){var s=t.call(this,i||r.type,o)||this;return s.receiver=e,s.index=n,s.value=r,s}return o(e,t),e.prototype.isEquivalent=function(t){return t instanceof e&&this.receiver.isEquivalent(t.receiver)&&this.index.isEquivalent(t.index)&&this.value.isEquivalent(t.value)},e.prototype.isConstant=function(){return!1},e.prototype.visitExpression=function(t,e){return t.visitWriteKeyExpr(this,e)},e}(Io),Vo=function(t){function e(e,n,r,i,o){var s=t.call(this,i||r.type,o)||this;return s.receiver=e,s.name=n,s.value=r,s}return o(e,t),e.prototype.isEquivalent=function(t){return t instanceof e&&this.receiver.isEquivalent(t.receiver)&&this.name===t.name&&this.value.isEquivalent(t.value)},e.prototype.isConstant=function(){return!1},e.prototype.visitExpression=function(t,e){return t.visitWritePropExpr(this,e)},e}(Io);!function(t){t[t.ConcatArray=0]="ConcatArray",t[t.SubscribeObservable=1]="SubscribeObservable",t[t.Bind=2]="Bind"}(Ro||(Ro={}));var Ho,Bo=function(t){function e(e,n,r,i,o){var s=t.call(this,i,o)||this;return s.receiver=e,s.args=r,"string"==typeof n?(s.name=n,s.builtin=null):(s.name=null,s.builtin=n),s}return o(e,t),e.prototype.isEquivalent=function(t){return t instanceof e&&this.receiver.isEquivalent(t.receiver)&&this.name===t.name&&this.builtin===t.builtin&&Oo(this.args,t.args)},e.prototype.isConstant=function(){return!1},e.prototype.visitExpression=function(t,e){return t.visitInvokeMethodExpr(this,e)},e}(Io),qo=function(t){function e(e,n,r,i){var o=t.call(this,r,i)||this;return o.fn=e,o.args=n,o}return o(e,t),e.prototype.isEquivalent=function(t){return t instanceof e&&this.fn.isEquivalent(t.fn)&&Oo(this.args,t.args)},e.prototype.isConstant=function(){return!1},e.prototype.visitExpression=function(t,e){return t.visitInvokeFunctionExpr(this,e)},e}(Io),Ko=function(t){function e(e,n,r,i){var o=t.call(this,r,i)||this;return o.classExpr=e,o.args=n,o}return o(e,t),e.prototype.isEquivalent=function(t){return t instanceof e&&this.classExpr.isEquivalent(t.classExpr)&&Oo(this.args,t.args)},e.prototype.isConstant=function(){return!1},e.prototype.visitExpression=function(t,e){return t.visitInstantiateExpr(this,e)},e}(Io),Uo=function(t){function e(e,n,r){var i=t.call(this,n,r)||this;return i.value=e,i}return o(e,t),e.prototype.isEquivalent=function(t){return t instanceof e&&this.value===t.value},e.prototype.isConstant=function(){return!0},e.prototype.visitExpression=function(t,e){return t.visitLiteralExpr(this,e)},e}(Io),zo=function(t){function e(e,n,r,i){void 0===r&&(r=null);var o=t.call(this,n,i)||this;return o.value=e,o.typeParams=r,o}return o(e,t),e.prototype.isEquivalent=function(t){return t instanceof e&&this.value.name===t.value.name&&this.value.moduleName===t.value.moduleName&&this.value.runtime===t.value.runtime},e.prototype.isConstant=function(){return!1},e.prototype.visitExpression=function(t,e){return t.visitExternalExpr(this,e)},e}(Io),Wo=function(t){function e(e,n,r,i,o){void 0===r&&(r=null);var s=t.call(this,i||n.type,o)||this;return s.condition=e,s.falseCase=r,s.trueCase=n,s}return o(e,t),e.prototype.isEquivalent=function(t){return t instanceof e&&this.condition.isEquivalent(t.condition)&&this.trueCase.isEquivalent(t.trueCase)&&ko(this.falseCase,t.falseCase)},e.prototype.isConstant=function(){return!1},e.prototype.visitExpression=function(t,e){return t.visitConditionalExpr(this,e)},e}(Io),Qo=function(t){function e(e,n){var r=t.call(this,No,n)||this;return r.condition=e,r}return o(e,t),e.prototype.isEquivalent=function(t){return t instanceof e&&this.condition.isEquivalent(t.condition)},e.prototype.isConstant=function(){return!1},e.prototype.visitExpression=function(t,e){return t.visitNotExpr(this,e)},e}(Io),Go=function(t){function e(e,n){var r=t.call(this,e.type,n)||this;return r.condition=e,r}return o(e,t),e.prototype.isEquivalent=function(t){return t instanceof e&&this.condition.isEquivalent(t.condition)},e.prototype.isConstant=function(){return!1},e.prototype.visitExpression=function(t,e){return t.visitAssertNotNullExpr(this,e)},e}(Io),Xo=function(t){function e(e,n,r){var i=t.call(this,n,r)||this;return i.value=e,i}return o(e,t),e.prototype.isEquivalent=function(t){return t instanceof e&&this.value.isEquivalent(t.value)},e.prototype.isConstant=function(){return!1},e.prototype.visitExpression=function(t,e){return t.visitCastExpr(this,e)},e}(Io),Yo=function(t){function e(e,n,r,i,o){var s=t.call(this,r,i)||this;return s.params=e,s.statements=n,s.name=o,s}return o(e,t),e.prototype.isEquivalent=function(t){return t instanceof e&&Oo(this.params,t.params)&&Oo(this.statements,t.statements)},e.prototype.isConstant=function(){return!1},e.prototype.visitExpression=function(t,e){return t.visitFunctionExpr(this,e)},e.prototype.toDeclStmt=function(t,e){return void 0===e&&(e=null),new as(t,this.params,this.statements,this.type,e,this.sourceSpan)},e}(Io),Zo=function(t){function e(e,n,r,i,o,s){void 0===s&&(s=!0);var a=t.call(this,i||n.type,o)||this;return a.operator=e,a.rhs=r,a.parens=s,a.lhs=n,a}return o(e,t),e.prototype.isEquivalent=function(t){return t instanceof e&&this.operator===t.operator&&this.lhs.isEquivalent(t.lhs)&&this.rhs.isEquivalent(t.rhs)},e.prototype.isConstant=function(){return!1},e.prototype.visitExpression=function(t,e){return t.visitBinaryOperatorExpr(this,e)},e}(Io),$o=function(t){function e(e,n,r,i){var o=t.call(this,r,i)||this;return o.receiver=e,o.name=n,o}return o(e,t),e.prototype.isEquivalent=function(t){return t instanceof e&&this.receiver.isEquivalent(t.receiver)&&this.name===t.name},e.prototype.isConstant=function(){return!1},e.prototype.visitExpression=function(t,e){return t.visitReadPropExpr(this,e)},e.prototype.set=function(t){return new Vo(this.receiver,this.name,t,null,this.sourceSpan)},e}(Io),Jo=function(t){function e(e,n,r,i){var o=t.call(this,r,i)||this;return o.receiver=e,o.index=n,o}return o(e,t),e.prototype.isEquivalent=function(t){return t instanceof e&&this.receiver.isEquivalent(t.receiver)&&this.index.isEquivalent(t.index)},e.prototype.isConstant=function(){return!1},e.prototype.visitExpression=function(t,e){return t.visitReadKeyExpr(this,e)},e.prototype.set=function(t){return new Fo(this.receiver,this.index,t,null,this.sourceSpan)},e}(Io),ts=function(t){function e(e,n,r){var i=t.call(this,n,r)||this;return i.entries=e,i}return o(e,t),e.prototype.isConstant=function(){return this.entries.every(function(t){return t.isConstant()})},e.prototype.isEquivalent=function(t){return t instanceof e&&Oo(this.entries,t.entries)},e.prototype.visitExpression=function(t,e){return t.visitLiteralArrayExpr(this,e)},e}(Io),es=function(){function t(t,e,n){this.key=t,this.value=e,this.quoted=n}return t.prototype.isEquivalent=function(t){return this.key===t.key&&this.value.isEquivalent(t.value)},t}(),ns=function(t){function e(e,n,r){var i=t.call(this,n,r)||this;return i.entries=e,i.valueType=null,n&&(i.valueType=n.valueType),i}return o(e,t),e.prototype.isEquivalent=function(t){return t instanceof e&&Oo(this.entries,t.entries)},e.prototype.isConstant=function(){return this.entries.every(function(t){return t.value.isConstant()})},e.prototype.visitExpression=function(t,e){return t.visitLiteralMapExpr(this,e)},e}(Io),rs=function(t){function e(e,n){var r=t.call(this,e[e.length-1].type,n)||this;return r.parts=e,r}return o(e,t),e.prototype.isEquivalent=function(t){return t instanceof e&&Oo(this.parts,t.parts)},e.prototype.isConstant=function(){return!1},e.prototype.visitExpression=function(t,e){return t.visitCommaExpr(this,e)},e}(Io),is=(new Do(Mo.This,null,null),new Do(Mo.Super,null,null),new Do(Mo.CatchError,null,null),new Do(Mo.CatchStack,null,null),new Uo(null,null,null),new Uo(null,Ao,null));!function(t){t[t.Final=0]="Final",t[t.Private=1]="Private",t[t.Exported=2]="Exported",t[t.Static=3]="Static"}(Ho||(Ho={}));var os=function(){function t(t,e){this.modifiers=t||[],this.sourceSpan=e||null}return t.prototype.hasModifier=function(t){return-1!==this.modifiers.indexOf(t)},t}(),ss=function(t){function e(e,n,r,i,o){void 0===i&&(i=null);var s=t.call(this,i,o)||this;return s.name=e,s.value=n,s.type=r||n&&n.type||null,s}return o(e,t),e.prototype.isEquivalent=function(t){return t instanceof e&&this.name===t.name&&(this.value?!!t.value&&this.value.isEquivalent(t.value):!t.value)},e.prototype.visitStatement=function(t,e){return t.visitDeclareVarStmt(this,e)},e}(os),as=function(t){function e(e,n,r,i,o,s){void 0===o&&(o=null);var a=t.call(this,o,s)||this;return a.name=e,a.params=n,a.statements=r,a.type=i||null,a}return o(e,t),e.prototype.isEquivalent=function(t){return t instanceof e&&Oo(this.params,t.params)&&Oo(this.statements,t.statements)},e.prototype.visitStatement=function(t,e){return t.visitDeclareFunctionStmt(this,e)},e}(os),us=function(t){function e(e,n){var r=t.call(this,null,n)||this;return r.expr=e,r}return o(e,t),e.prototype.isEquivalent=function(t){return t instanceof e&&this.expr.isEquivalent(t.expr)},e.prototype.visitStatement=function(t,e){return t.visitExpressionStmt(this,e)},e}(os),cs=function(t){function e(e,n){var r=t.call(this,null,n)||this;return r.value=e,r}return o(e,t),e.prototype.isEquivalent=function(t){return t instanceof e&&this.value.isEquivalent(t.value)},e.prototype.visitStatement=function(t,e){return t.visitReturnStmt(this,e)},e}(os),ls=function(){function t(t,e){this.modifiers=e,e||(this.modifiers=[]),this.type=t||null}return t.prototype.hasModifier=function(t){return-1!==this.modifiers.indexOf(t)},t}(),ps=(function(t){function e(e,n,r,i){void 0===r&&(r=null);var o=t.call(this,n,r)||this;return o.name=e,o.initializer=i,o}o(e,t),e.prototype.isEquivalent=function(t){return this.name===t.name}}(ls),function(t){function e(e,n,r,i,o){void 0===o&&(o=null);var s=t.call(this,i,o)||this;return s.name=e,s.params=n,s.body=r,s}return o(e,t),e.prototype.isEquivalent=function(t){return this.name===t.name&&Oo(this.body,t.body)},e}(ls)),hs=function(t){function e(e,n,r,i){void 0===i&&(i=null);var o=t.call(this,r,i)||this;return o.name=e,o.body=n,o}return o(e,t),e.prototype.isEquivalent=function(t){return this.name===t.name&&Oo(this.body,t.body)},e}(ls),fs=function(t){function e(e,n,r,i,o,s,a,u){void 0===a&&(a=null);var c=t.call(this,a,u)||this;return c.name=e,c.parent=n,c.fields=r,c.getters=i,c.constructorMethod=o,c.methods=s,c}return o(e,t),e.prototype.isEquivalent=function(t){return t instanceof e&&this.name===t.name&&ko(this.parent,t.parent)&&Oo(this.fields,t.fields)&&Oo(this.getters,t.getters)&&this.constructorMethod.isEquivalent(t.constructorMethod)&&Oo(this.methods,t.methods)},e.prototype.visitStatement=function(t,e){return t.visitDeclareClassStmt(this,e)},e}(os),ds=function(t){function e(e,n,r,i){void 0===r&&(r=[]);var o=t.call(this,null,i)||this;return o.condition=e,o.trueCase=n,o.falseCase=r,o}return o(e,t),e.prototype.isEquivalent=function(t){return t instanceof e&&this.condition.isEquivalent(t.condition)&&Oo(this.trueCase,t.trueCase)&&Oo(this.falseCase,t.falseCase)},e.prototype.visitStatement=function(t,e){return t.visitIfStmt(this,e)},e}(os),vs=(function(t){function e(e,n,r){void 0===n&&(n=!1);var i=t.call(this,null,r)||this;return i.comment=e,i.multiline=n,i}o(e,t),e.prototype.isEquivalent=function(t){return t instanceof e},e.prototype.visitStatement=function(t,e){return t.visitCommentStmt(this,e)}}(os),function(t){function e(e,n){void 0===e&&(e=[]);var r=t.call(this,null,n)||this;return r.tags=e,r}o(e,t),e.prototype.isEquivalent=function(t){return t instanceof e&&this.toString()===t.toString()},e.prototype.visitStatement=function(t,e){return t.visitJSDocCommentStmt(this,e)},e.prototype.toString=function(){return function t(e){var n,r;if(0===e.length)return"";var i="*\n";try{for(var o=p(e),s=o.next();!s.done;s=o.next())i+=" *",i+=xs(s.value).replace(/\n/g,"\n * "),i+="\n"}catch(t){n={error:t}}finally{try{s&&!s.done&&(r=o.return)&&r.call(o)}finally{if(n)throw n.error}}return i+" "}
197
197
  /**
198
198
  * @license
199
199
  * Copyright Google Inc. All Rights Reserved.
@@ -214,21 +214,21 @@ var g=function(){function t(t){var e=void 0===t?{}:t,n=e.closedByChildren,r=e.re
214
214
  *
215
215
  * Use of this source code is governed by an MIT-style license that can be
216
216
  * found in the LICENSE file at https://angular.io/license
217
- */(this.tags)}}(ns),function(t){function e(e,n,r){var i=t.call(this,null,r)||this;return i.bodyStmts=e,i.catchStmts=n,i}return o(e,t),e.prototype.isEquivalent=function(t){return t instanceof e&&Ao(this.bodyStmts,t.bodyStmts)&&Ao(this.catchStmts,t.catchStmts)},e.prototype.visitStatement=function(t,e){return t.visitTryCatchStmt(this,e)},e}(ns)),fs=function(t){function e(e,n){var r=t.call(this,null,n)||this;return r.error=e,r}return o(e,t),e.prototype.isEquivalent=function(t){return t instanceof hs&&this.error.isEquivalent(t.error)},e.prototype.visitStatement=function(t,e){return t.visitThrowStmt(this,e)},e}(ns),ds=function(){function t(){}return t.prototype.transformExpr=function(t,e){return t},t.prototype.transformStmt=function(t,e){return t},t.prototype.visitReadVarExpr=function(t,e){return this.transformExpr(t,e)},t.prototype.visitWrappedNodeExpr=function(t,e){return this.transformExpr(t,e)},t.prototype.visitTypeofExpr=function(t,e){return this.transformExpr(new Io(t.expr.visitExpression(this,e),t.type,t.sourceSpan),e)},t.prototype.visitWriteVarExpr=function(t,e){return this.transformExpr(new Ro(t.name,t.value.visitExpression(this,e),t.type,t.sourceSpan),e)},t.prototype.visitWriteKeyExpr=function(t,e){return this.transformExpr(new Do(t.receiver.visitExpression(this,e),t.index.visitExpression(this,e),t.value.visitExpression(this,e),t.type,t.sourceSpan),e)},t.prototype.visitWritePropExpr=function(t,e){return this.transformExpr(new jo(t.receiver.visitExpression(this,e),t.name,t.value.visitExpression(this,e),t.type,t.sourceSpan),e)},t.prototype.visitInvokeMethodExpr=function(t,e){var n=t.builtin||t.name;return this.transformExpr(new Fo(t.receiver.visitExpression(this,e),n,this.visitAllExpressions(t.args,e),t.type,t.sourceSpan),e)},t.prototype.visitInvokeFunctionExpr=function(t,e){return this.transformExpr(new Vo(t.fn.visitExpression(this,e),this.visitAllExpressions(t.args,e),t.type,t.sourceSpan),e)},t.prototype.visitInstantiateExpr=function(t,e){return this.transformExpr(new Ho(t.classExpr.visitExpression(this,e),this.visitAllExpressions(t.args,e),t.type,t.sourceSpan),e)},t.prototype.visitLiteralExpr=function(t,e){return this.transformExpr(t,e)},t.prototype.visitExternalExpr=function(t,e){return this.transformExpr(t,e)},t.prototype.visitConditionalExpr=function(t,e){return this.transformExpr(new Ko(t.condition.visitExpression(this,e),t.trueCase.visitExpression(this,e),t.falseCase.visitExpression(this,e),t.type,t.sourceSpan),e)},t.prototype.visitNotExpr=function(t,e){return this.transformExpr(new Uo(t.condition.visitExpression(this,e),t.sourceSpan),e)},t.prototype.visitAssertNotNullExpr=function(t,e){return this.transformExpr(new zo(t.condition.visitExpression(this,e),t.sourceSpan),e)},t.prototype.visitCastExpr=function(t,e){return this.transformExpr(new Wo(t.value.visitExpression(this,e),t.type,t.sourceSpan),e)},t.prototype.visitFunctionExpr=function(t,e){return this.transformExpr(new Qo(t.params,this.visitAllStatements(t.statements,e),t.type,t.sourceSpan),e)},t.prototype.visitBinaryOperatorExpr=function(t,e){return this.transformExpr(new Go(t.operator,t.lhs.visitExpression(this,e),t.rhs.visitExpression(this,e),t.type,t.sourceSpan),e)},t.prototype.visitReadPropExpr=function(t,e){return this.transformExpr(new Xo(t.receiver.visitExpression(this,e),t.name,t.type,t.sourceSpan),e)},t.prototype.visitReadKeyExpr=function(t,e){return this.transformExpr(new Yo(t.receiver.visitExpression(this,e),t.index.visitExpression(this,e),t.type,t.sourceSpan),e)},t.prototype.visitLiteralArrayExpr=function(t,e){return this.transformExpr(new Zo(this.visitAllExpressions(t.entries,e),t.type,t.sourceSpan),e)},t.prototype.visitLiteralMapExpr=function(t,e){var n=this,r=t.entries.map(function(t){return new $o(t.key,t.value.visitExpression(n,e),t.quoted)}),i=new So(t.valueType,null);return this.transformExpr(new Jo(r,i,t.sourceSpan),e)},t.prototype.visitCommaExpr=function(t,e){return this.transformExpr(new ts(this.visitAllExpressions(t.parts,e),t.sourceSpan),e)},t.prototype.visitAllExpressions=function(t,e){var n=this;return t.map(function(t){return t.visitExpression(n,e)})},t.prototype.visitDeclareVarStmt=function(t,e){var n=t.value&&t.value.visitExpression(this,e);return this.transformStmt(new rs(t.name,n,t.type,t.modifiers,t.sourceSpan),e)},t.prototype.visitDeclareFunctionStmt=function(t,e){return this.transformStmt(new is(t.name,t.params,this.visitAllStatements(t.statements,e),t.type,t.modifiers,t.sourceSpan),e)},t.prototype.visitExpressionStmt=function(t,e){return this.transformStmt(new os(t.expr.visitExpression(this,e),t.sourceSpan),e)},t.prototype.visitReturnStmt=function(t,e){return this.transformStmt(new ss(t.value.visitExpression(this,e),t.sourceSpan),e)},t.prototype.visitDeclareClassStmt=function(t,e){var n=this,r=t.parent.visitExpression(this,e),i=t.getters.map(function(t){return new cs(t.name,n.visitAllStatements(t.body,e),t.type,t.modifiers)}),o=t.constructorMethod&&new us(t.constructorMethod.name,t.constructorMethod.params,this.visitAllStatements(t.constructorMethod.body,e),t.constructorMethod.type,t.constructorMethod.modifiers),s=t.methods.map(function(t){return new us(t.name,t.params,n.visitAllStatements(t.body,e),t.type,t.modifiers)});return this.transformStmt(new ls(t.name,r,t.fields,i,o,s,t.modifiers,t.sourceSpan),e)},t.prototype.visitIfStmt=function(t,e){return this.transformStmt(new ps(t.condition.visitExpression(this,e),this.visitAllStatements(t.trueCase,e),this.visitAllStatements(t.falseCase,e),t.sourceSpan),e)},t.prototype.visitTryCatchStmt=function(t,e){return this.transformStmt(new hs(this.visitAllStatements(t.bodyStmts,e),this.visitAllStatements(t.catchStmts,e),t.sourceSpan),e)},t.prototype.visitThrowStmt=function(t,e){return this.transformStmt(new fs(t.error.visitExpression(this,e),t.sourceSpan),e)},t.prototype.visitCommentStmt=function(t,e){return this.transformStmt(t,e)},t.prototype.visitJSDocCommentStmt=function(t,e){return this.transformStmt(t,e)},t.prototype.visitAllStatements=function(t,e){var n=this;return t.map(function(t){return t.visitStatement(n,e)})},t}(),vs=function(){function t(){}return t.prototype.visitType=function(t,e){return t},t.prototype.visitExpression=function(t,e){return t.type&&t.type.visitType(this,e),t},t.prototype.visitBuiltinType=function(t,e){return this.visitType(t,e)},t.prototype.visitExpressionType=function(t,e){var n=this;return t.value.visitExpression(this,e),null!==t.typeParams&&t.typeParams.forEach(function(t){return n.visitType(t,e)}),this.visitType(t,e)},t.prototype.visitArrayType=function(t,e){return this.visitType(t,e)},t.prototype.visitMapType=function(t,e){return this.visitType(t,e)},t.prototype.visitWrappedNodeExpr=function(t,e){return t},t.prototype.visitTypeofExpr=function(t,e){return this.visitExpression(t,e)},t.prototype.visitReadVarExpr=function(t,e){return this.visitExpression(t,e)},t.prototype.visitWriteVarExpr=function(t,e){return t.value.visitExpression(this,e),this.visitExpression(t,e)},t.prototype.visitWriteKeyExpr=function(t,e){return t.receiver.visitExpression(this,e),t.index.visitExpression(this,e),t.value.visitExpression(this,e),this.visitExpression(t,e)},t.prototype.visitWritePropExpr=function(t,e){return t.receiver.visitExpression(this,e),t.value.visitExpression(this,e),this.visitExpression(t,e)},t.prototype.visitInvokeMethodExpr=function(t,e){return t.receiver.visitExpression(this,e),this.visitAllExpressions(t.args,e),this.visitExpression(t,e)},t.prototype.visitInvokeFunctionExpr=function(t,e){return t.fn.visitExpression(this,e),this.visitAllExpressions(t.args,e),this.visitExpression(t,e)},t.prototype.visitInstantiateExpr=function(t,e){return t.classExpr.visitExpression(this,e),this.visitAllExpressions(t.args,e),this.visitExpression(t,e)},t.prototype.visitLiteralExpr=function(t,e){return this.visitExpression(t,e)},t.prototype.visitExternalExpr=function(t,e){var n=this;return t.typeParams&&t.typeParams.forEach(function(t){return t.visitType(n,e)}),this.visitExpression(t,e)},t.prototype.visitConditionalExpr=function(t,e){return t.condition.visitExpression(this,e),t.trueCase.visitExpression(this,e),t.falseCase.visitExpression(this,e),this.visitExpression(t,e)},t.prototype.visitNotExpr=function(t,e){return t.condition.visitExpression(this,e),this.visitExpression(t,e)},t.prototype.visitAssertNotNullExpr=function(t,e){return t.condition.visitExpression(this,e),this.visitExpression(t,e)},t.prototype.visitCastExpr=function(t,e){return t.value.visitExpression(this,e),this.visitExpression(t,e)},t.prototype.visitFunctionExpr=function(t,e){return this.visitAllStatements(t.statements,e),this.visitExpression(t,e)},t.prototype.visitBinaryOperatorExpr=function(t,e){return t.lhs.visitExpression(this,e),t.rhs.visitExpression(this,e),this.visitExpression(t,e)},t.prototype.visitReadPropExpr=function(t,e){return t.receiver.visitExpression(this,e),this.visitExpression(t,e)},t.prototype.visitReadKeyExpr=function(t,e){return t.receiver.visitExpression(this,e),t.index.visitExpression(this,e),this.visitExpression(t,e)},t.prototype.visitLiteralArrayExpr=function(t,e){return this.visitAllExpressions(t.entries,e),this.visitExpression(t,e)},t.prototype.visitLiteralMapExpr=function(t,e){var n=this;return t.entries.forEach(function(t){return t.value.visitExpression(n,e)}),this.visitExpression(t,e)},t.prototype.visitCommaExpr=function(t,e){return this.visitAllExpressions(t.parts,e),this.visitExpression(t,e)},t.prototype.visitAllExpressions=function(t,e){var n=this;t.forEach(function(t){return t.visitExpression(n,e)})},t.prototype.visitDeclareVarStmt=function(t,e){return t.value&&t.value.visitExpression(this,e),t.type&&t.type.visitType(this,e),t},t.prototype.visitDeclareFunctionStmt=function(t,e){return this.visitAllStatements(t.statements,e),t.type&&t.type.visitType(this,e),t},t.prototype.visitExpressionStmt=function(t,e){return t.expr.visitExpression(this,e),t},t.prototype.visitReturnStmt=function(t,e){return t.value.visitExpression(this,e),t},t.prototype.visitDeclareClassStmt=function(t,e){var n=this;return t.parent.visitExpression(this,e),t.getters.forEach(function(t){return n.visitAllStatements(t.body,e)}),t.constructorMethod&&this.visitAllStatements(t.constructorMethod.body,e),t.methods.forEach(function(t){return n.visitAllStatements(t.body,e)}),t},t.prototype.visitIfStmt=function(t,e){return t.condition.visitExpression(this,e),this.visitAllStatements(t.trueCase,e),this.visitAllStatements(t.falseCase,e),t},t.prototype.visitTryCatchStmt=function(t,e){return this.visitAllStatements(t.bodyStmts,e),this.visitAllStatements(t.catchStmts,e),t},t.prototype.visitThrowStmt=function(t,e){return t.error.visitExpression(this,e),t},t.prototype.visitCommentStmt=function(t,e){return t},t.prototype.visitJSDocCommentStmt=function(t,e){return t},t.prototype.visitAllStatements=function(t,e){var n=this;t.forEach(function(t){return t.visitStatement(n,e)})},t}();function ys(t,e,n){return new Mo(t,e,n)}function ms(t,e,n){return void 0===e&&(e=null),new qo(t,null,e,n)}function gs(t,e,n){return new Zo(t,e,n)}function _s(t){var e="";if(t.tagName&&(e+=" @"+t.tagName),t.text){if(t.text.match(/\/\*|\*\//))throw new Error('JSDoc text cannot contain "/*" and "*/"');e+=" "+t.text.replace(/@/g,"\\@")}return e}(function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.varNames=new Set,e}o(e,t),e.prototype.visitDeclareFunctionStmt=function(t,e){return t},e.prototype.visitDeclareClassStmt=function(t,e){return t},e.prototype.visitReadVarExpr=function(t,e){return t.name&&this.varNames.add(t.name),null}})(vs),function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.externalReferences=[],e}o(e,t),e.prototype.visitExternalExpr=function(e,n){return this.externalReferences.push(e.value),t.prototype.visitExternalExpr.call(this,e,n)}}(vs),function(t){function e(e){var n=t.call(this)||this;return n.sourceSpan=e,n}o(e,t),e.prototype._clone=function(t){var e=Object.create(t.constructor.prototype);for(var n in t)e[n]=t[n];return e},e.prototype.transformExpr=function(t,e){return t.sourceSpan||((t=this._clone(t)).sourceSpan=this.sourceSpan),t},e.prototype.transformStmt=function(t,e){return t.sourceSpan||((t=this._clone(t)).sourceSpan=this.sourceSpan),t}}(ds);var bs=/(\.ts|\.d\.ts|\.js|\.jsx|\.tsx)$/,ws=/\.ngfactory\.|\.ngsummary\./,xs=/\.ngsummary\./,Es=/NgSummary$/;function Ss(t,e){void 0===e&&(e=!1);var n=Ts(t,e);return n[0]+".ngfactory"+function r(t){return".tsx"===t?".ts":t}(n[1])}function Cs(t){return t.replace(ws,".")}function Ts(t,e){if(void 0===e&&(e=!1),t.endsWith(".d.ts"))return[t.slice(0,-5),e?".ts":".d.ts"];var n=t.lastIndexOf(".");return-1!==n?[t.substring(0,n),t.substring(n)]:[t,""]}var Ps,As=/\u0275\d+/;!function(t){t[t.OnInit=0]="OnInit",t[t.OnDestroy=1]="OnDestroy",t[t.DoCheck=2]="DoCheck",t[t.OnChanges=3]="OnChanges",t[t.AfterContentInit=4]="AfterContentInit",t[t.AfterContentChecked=5]="AfterContentChecked",t[t.AfterViewInit=6]="AfterViewInit",t[t.AfterViewChecked=7]="AfterViewChecked"}(Ps||(Ps={}));var Ns=[Ps.OnInit,Ps.OnDestroy,Ps.DoCheck,Ps.OnChanges,Ps.AfterContentInit,Ps.AfterContentChecked,Ps.AfterViewInit,Ps.AfterViewChecked],ks=function(){function t(t,e,n,r,i,o,s,a,u,c,l,p){this._config=t,this._htmlParser=e,this._ngModuleResolver=n,this._directiveResolver=r,this._pipeResolver=i,this._summaryResolver=o,this._schemaRegistry=s,this._directiveNormalizer=a,this._console=u,this._staticSymbolCache=c,this._reflector=l,this._errorCollector=p,this._nonNormalizedDirectiveCache=new Map,this._directiveCache=new Map,this._summaryCache=new Map,this._pipeCache=new Map,this._ngModuleCache=new Map,this._ngModuleOfTypes=new Map,this._shallowModuleCache=new Map}return t.prototype.getReflector=function(){return this._reflector},t.prototype.clearCacheFor=function(t){var e=this._directiveCache.get(t);this._directiveCache.delete(t),this._nonNormalizedDirectiveCache.delete(t),this._summaryCache.delete(t),this._pipeCache.delete(t),this._ngModuleOfTypes.delete(t),this._ngModuleCache.clear(),e&&this._directiveNormalizer.clearCacheFor(e)},t.prototype.clearCache=function(){this._directiveCache.clear(),this._nonNormalizedDirectiveCache.clear(),this._summaryCache.clear(),this._pipeCache.clear(),this._ngModuleCache.clear(),this._ngModuleOfTypes.clear(),this._directiveNormalizer.clearCache()},t.prototype._createProxyClass=function(t,e){var n=null,r=function(){if(!n)throw new Error("Illegal state: Class "+e+" for type "+dt(t)+" is not compiled yet!");return n.apply(this,arguments)};return r.setDelegate=function(t){n=t,r.prototype=t.prototype},r.overriddenName=e,r},t.prototype.getGeneratedClass=function(t,e){return t instanceof Vt?this._staticSymbolCache.get(Ss(t.filePath),e):this._createProxyClass(t,e)},t.prototype.getComponentViewClass=function(t){return this.getGeneratedClass(t,function e(t,n){return"View_"+zt({reference:t})+"_"+n}(t,0))},t.prototype.getHostComponentViewClass=function(t){return this.getGeneratedClass(t,function e(t){return"HostView_"+zt({reference:t})}(t))},t.prototype.getHostComponentType=function(t){var e=zt({reference:t})+"_Host";if(t instanceof Vt)return this._staticSymbolCache.get(t.filePath,e);var n=function t(){};return n.overriddenName=e,n},t.prototype.getRendererType=function(t){return t instanceof Vt?this._staticSymbolCache.get(Ss(t.filePath),function e(t){return"RenderType_"+zt({reference:t})}(t)):{}},t.prototype.getComponentFactory=function(t,e,n,r){if(e instanceof Vt)return this._staticSymbolCache.get(Ss(e.filePath),function i(t){return zt({reference:t})+"NgFactory"}(e));var o=this.getHostComponentViewClass(e);return this._reflector.resolveExternalReference(mo.createComponentFactory)(t,e,o,n,r,[])},t.prototype.initComponentFactory=function(t,e){var n;t instanceof Vt||(n=t.ngContentSelectors).push.apply(n,l(e))},t.prototype._loadSummary=function(t,e){var n=this._summaryCache.get(t);if(!n){var r=this._summaryResolver.resolveSummary(t);this._summaryCache.set(t,(n=r?r.type:null)||null)}return n&&n.summaryKind===e?n:null},t.prototype.getHostComponentMetadata=function(t,e){var n=this.getHostComponentType(t.type.reference);e||(e=this.getHostComponentViewClass(n));var r=C.parse(t.selector)[0].getMatchingElementTemplate(),i=this._htmlParser.parse(r,"");return Yt.create({isHost:!0,type:{reference:n,diDeps:[],lifecycleHooks:[]},template:new Xt({encapsulation:x.None,template:r,templateUrl:"",htmlAst:i,styles:[],styleUrls:[],ngContentSelectors:[],animations:[],isInline:!0,externalStylesheets:[],interpolation:null,preserveWhitespaces:!1}),exportAs:null,changeDetection:E.Default,inputs:[],outputs:[],host:{},isComponent:!0,selector:"*",providers:[],viewProviders:[],queries:[],guards:{},viewQueries:[],componentViewType:e,rendererType:{id:"__Host__",encapsulation:x.None,styles:[],data:{}},entryComponents:[],componentFactory:null})},t.prototype.loadDirectiveMetadata=function(t,e,n){var r=this;if(this._directiveCache.has(e))return null;e=vt(e);var i=this.getNonNormalizedDirectiveMetadata(e),o=i.metadata,s=function(t){var n=new Yt({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:t});return t&&r.initComponentFactory(o.componentFactory,t.ngContentSelectors),r._directiveCache.set(e,n),r._summaryCache.set(e,n.toSummary()),null};if(o.isComponent){var a=o.template,u=this._directiveNormalizer.normalizeTemplate({ngModuleType:t,componentType:e,moduleUrl:this._reflector.componentModuleUrl(e,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 yt(u)&&n?(this._reportError(function c(t){var e=Error("Can't compile synchronously as "+dt(t)+" is still being loaded!");return e.ngComponentType=t,e}
217
+ */(this.tags)}}(os),function(t){function e(e,n,r){var i=t.call(this,null,r)||this;return i.bodyStmts=e,i.catchStmts=n,i}return o(e,t),e.prototype.isEquivalent=function(t){return t instanceof e&&Oo(this.bodyStmts,t.bodyStmts)&&Oo(this.catchStmts,t.catchStmts)},e.prototype.visitStatement=function(t,e){return t.visitTryCatchStmt(this,e)},e}(os)),ys=function(t){function e(e,n){var r=t.call(this,null,n)||this;return r.error=e,r}return o(e,t),e.prototype.isEquivalent=function(t){return t instanceof vs&&this.error.isEquivalent(t.error)},e.prototype.visitStatement=function(t,e){return t.visitThrowStmt(this,e)},e}(os),ms=function(){function t(){}return t.prototype.transformExpr=function(t,e){return t},t.prototype.transformStmt=function(t,e){return t},t.prototype.visitReadVarExpr=function(t,e){return this.transformExpr(t,e)},t.prototype.visitWrappedNodeExpr=function(t,e){return this.transformExpr(t,e)},t.prototype.visitTypeofExpr=function(t,e){return this.transformExpr(new jo(t.expr.visitExpression(this,e),t.type,t.sourceSpan),e)},t.prototype.visitWriteVarExpr=function(t,e){return this.transformExpr(new Lo(t.name,t.value.visitExpression(this,e),t.type,t.sourceSpan),e)},t.prototype.visitWriteKeyExpr=function(t,e){return this.transformExpr(new Fo(t.receiver.visitExpression(this,e),t.index.visitExpression(this,e),t.value.visitExpression(this,e),t.type,t.sourceSpan),e)},t.prototype.visitWritePropExpr=function(t,e){return this.transformExpr(new Vo(t.receiver.visitExpression(this,e),t.name,t.value.visitExpression(this,e),t.type,t.sourceSpan),e)},t.prototype.visitInvokeMethodExpr=function(t,e){var n=t.builtin||t.name;return this.transformExpr(new Bo(t.receiver.visitExpression(this,e),n,this.visitAllExpressions(t.args,e),t.type,t.sourceSpan),e)},t.prototype.visitInvokeFunctionExpr=function(t,e){return this.transformExpr(new qo(t.fn.visitExpression(this,e),this.visitAllExpressions(t.args,e),t.type,t.sourceSpan),e)},t.prototype.visitInstantiateExpr=function(t,e){return this.transformExpr(new Ko(t.classExpr.visitExpression(this,e),this.visitAllExpressions(t.args,e),t.type,t.sourceSpan),e)},t.prototype.visitLiteralExpr=function(t,e){return this.transformExpr(t,e)},t.prototype.visitExternalExpr=function(t,e){return this.transformExpr(t,e)},t.prototype.visitConditionalExpr=function(t,e){return this.transformExpr(new Wo(t.condition.visitExpression(this,e),t.trueCase.visitExpression(this,e),t.falseCase.visitExpression(this,e),t.type,t.sourceSpan),e)},t.prototype.visitNotExpr=function(t,e){return this.transformExpr(new Qo(t.condition.visitExpression(this,e),t.sourceSpan),e)},t.prototype.visitAssertNotNullExpr=function(t,e){return this.transformExpr(new Go(t.condition.visitExpression(this,e),t.sourceSpan),e)},t.prototype.visitCastExpr=function(t,e){return this.transformExpr(new Xo(t.value.visitExpression(this,e),t.type,t.sourceSpan),e)},t.prototype.visitFunctionExpr=function(t,e){return this.transformExpr(new Yo(t.params,this.visitAllStatements(t.statements,e),t.type,t.sourceSpan),e)},t.prototype.visitBinaryOperatorExpr=function(t,e){return this.transformExpr(new Zo(t.operator,t.lhs.visitExpression(this,e),t.rhs.visitExpression(this,e),t.type,t.sourceSpan),e)},t.prototype.visitReadPropExpr=function(t,e){return this.transformExpr(new $o(t.receiver.visitExpression(this,e),t.name,t.type,t.sourceSpan),e)},t.prototype.visitReadKeyExpr=function(t,e){return this.transformExpr(new Jo(t.receiver.visitExpression(this,e),t.index.visitExpression(this,e),t.type,t.sourceSpan),e)},t.prototype.visitLiteralArrayExpr=function(t,e){return this.transformExpr(new ts(this.visitAllExpressions(t.entries,e),t.type,t.sourceSpan),e)},t.prototype.visitLiteralMapExpr=function(t,e){var n=this,r=t.entries.map(function(t){return new es(t.key,t.value.visitExpression(n,e),t.quoted)}),i=new Po(t.valueType,null);return this.transformExpr(new ns(r,i,t.sourceSpan),e)},t.prototype.visitCommaExpr=function(t,e){return this.transformExpr(new rs(this.visitAllExpressions(t.parts,e),t.sourceSpan),e)},t.prototype.visitAllExpressions=function(t,e){var n=this;return t.map(function(t){return t.visitExpression(n,e)})},t.prototype.visitDeclareVarStmt=function(t,e){var n=t.value&&t.value.visitExpression(this,e);return this.transformStmt(new ss(t.name,n,t.type,t.modifiers,t.sourceSpan),e)},t.prototype.visitDeclareFunctionStmt=function(t,e){return this.transformStmt(new as(t.name,t.params,this.visitAllStatements(t.statements,e),t.type,t.modifiers,t.sourceSpan),e)},t.prototype.visitExpressionStmt=function(t,e){return this.transformStmt(new us(t.expr.visitExpression(this,e),t.sourceSpan),e)},t.prototype.visitReturnStmt=function(t,e){return this.transformStmt(new cs(t.value.visitExpression(this,e),t.sourceSpan),e)},t.prototype.visitDeclareClassStmt=function(t,e){var n=this,r=t.parent.visitExpression(this,e),i=t.getters.map(function(t){return new hs(t.name,n.visitAllStatements(t.body,e),t.type,t.modifiers)}),o=t.constructorMethod&&new ps(t.constructorMethod.name,t.constructorMethod.params,this.visitAllStatements(t.constructorMethod.body,e),t.constructorMethod.type,t.constructorMethod.modifiers),s=t.methods.map(function(t){return new ps(t.name,t.params,n.visitAllStatements(t.body,e),t.type,t.modifiers)});return this.transformStmt(new fs(t.name,r,t.fields,i,o,s,t.modifiers,t.sourceSpan),e)},t.prototype.visitIfStmt=function(t,e){return this.transformStmt(new ds(t.condition.visitExpression(this,e),this.visitAllStatements(t.trueCase,e),this.visitAllStatements(t.falseCase,e),t.sourceSpan),e)},t.prototype.visitTryCatchStmt=function(t,e){return this.transformStmt(new vs(this.visitAllStatements(t.bodyStmts,e),this.visitAllStatements(t.catchStmts,e),t.sourceSpan),e)},t.prototype.visitThrowStmt=function(t,e){return this.transformStmt(new ys(t.error.visitExpression(this,e),t.sourceSpan),e)},t.prototype.visitCommentStmt=function(t,e){return this.transformStmt(t,e)},t.prototype.visitJSDocCommentStmt=function(t,e){return this.transformStmt(t,e)},t.prototype.visitAllStatements=function(t,e){var n=this;return t.map(function(t){return t.visitStatement(n,e)})},t}(),gs=function(){function t(){}return t.prototype.visitType=function(t,e){return t},t.prototype.visitExpression=function(t,e){return t.type&&t.type.visitType(this,e),t},t.prototype.visitBuiltinType=function(t,e){return this.visitType(t,e)},t.prototype.visitExpressionType=function(t,e){var n=this;return t.value.visitExpression(this,e),null!==t.typeParams&&t.typeParams.forEach(function(t){return n.visitType(t,e)}),this.visitType(t,e)},t.prototype.visitArrayType=function(t,e){return this.visitType(t,e)},t.prototype.visitMapType=function(t,e){return this.visitType(t,e)},t.prototype.visitWrappedNodeExpr=function(t,e){return t},t.prototype.visitTypeofExpr=function(t,e){return this.visitExpression(t,e)},t.prototype.visitReadVarExpr=function(t,e){return this.visitExpression(t,e)},t.prototype.visitWriteVarExpr=function(t,e){return t.value.visitExpression(this,e),this.visitExpression(t,e)},t.prototype.visitWriteKeyExpr=function(t,e){return t.receiver.visitExpression(this,e),t.index.visitExpression(this,e),t.value.visitExpression(this,e),this.visitExpression(t,e)},t.prototype.visitWritePropExpr=function(t,e){return t.receiver.visitExpression(this,e),t.value.visitExpression(this,e),this.visitExpression(t,e)},t.prototype.visitInvokeMethodExpr=function(t,e){return t.receiver.visitExpression(this,e),this.visitAllExpressions(t.args,e),this.visitExpression(t,e)},t.prototype.visitInvokeFunctionExpr=function(t,e){return t.fn.visitExpression(this,e),this.visitAllExpressions(t.args,e),this.visitExpression(t,e)},t.prototype.visitInstantiateExpr=function(t,e){return t.classExpr.visitExpression(this,e),this.visitAllExpressions(t.args,e),this.visitExpression(t,e)},t.prototype.visitLiteralExpr=function(t,e){return this.visitExpression(t,e)},t.prototype.visitExternalExpr=function(t,e){var n=this;return t.typeParams&&t.typeParams.forEach(function(t){return t.visitType(n,e)}),this.visitExpression(t,e)},t.prototype.visitConditionalExpr=function(t,e){return t.condition.visitExpression(this,e),t.trueCase.visitExpression(this,e),t.falseCase.visitExpression(this,e),this.visitExpression(t,e)},t.prototype.visitNotExpr=function(t,e){return t.condition.visitExpression(this,e),this.visitExpression(t,e)},t.prototype.visitAssertNotNullExpr=function(t,e){return t.condition.visitExpression(this,e),this.visitExpression(t,e)},t.prototype.visitCastExpr=function(t,e){return t.value.visitExpression(this,e),this.visitExpression(t,e)},t.prototype.visitFunctionExpr=function(t,e){return this.visitAllStatements(t.statements,e),this.visitExpression(t,e)},t.prototype.visitBinaryOperatorExpr=function(t,e){return t.lhs.visitExpression(this,e),t.rhs.visitExpression(this,e),this.visitExpression(t,e)},t.prototype.visitReadPropExpr=function(t,e){return t.receiver.visitExpression(this,e),this.visitExpression(t,e)},t.prototype.visitReadKeyExpr=function(t,e){return t.receiver.visitExpression(this,e),t.index.visitExpression(this,e),this.visitExpression(t,e)},t.prototype.visitLiteralArrayExpr=function(t,e){return this.visitAllExpressions(t.entries,e),this.visitExpression(t,e)},t.prototype.visitLiteralMapExpr=function(t,e){var n=this;return t.entries.forEach(function(t){return t.value.visitExpression(n,e)}),this.visitExpression(t,e)},t.prototype.visitCommaExpr=function(t,e){return this.visitAllExpressions(t.parts,e),this.visitExpression(t,e)},t.prototype.visitAllExpressions=function(t,e){var n=this;t.forEach(function(t){return t.visitExpression(n,e)})},t.prototype.visitDeclareVarStmt=function(t,e){return t.value&&t.value.visitExpression(this,e),t.type&&t.type.visitType(this,e),t},t.prototype.visitDeclareFunctionStmt=function(t,e){return this.visitAllStatements(t.statements,e),t.type&&t.type.visitType(this,e),t},t.prototype.visitExpressionStmt=function(t,e){return t.expr.visitExpression(this,e),t},t.prototype.visitReturnStmt=function(t,e){return t.value.visitExpression(this,e),t},t.prototype.visitDeclareClassStmt=function(t,e){var n=this;return t.parent.visitExpression(this,e),t.getters.forEach(function(t){return n.visitAllStatements(t.body,e)}),t.constructorMethod&&this.visitAllStatements(t.constructorMethod.body,e),t.methods.forEach(function(t){return n.visitAllStatements(t.body,e)}),t},t.prototype.visitIfStmt=function(t,e){return t.condition.visitExpression(this,e),this.visitAllStatements(t.trueCase,e),this.visitAllStatements(t.falseCase,e),t},t.prototype.visitTryCatchStmt=function(t,e){return this.visitAllStatements(t.bodyStmts,e),this.visitAllStatements(t.catchStmts,e),t},t.prototype.visitThrowStmt=function(t,e){return t.error.visitExpression(this,e),t},t.prototype.visitCommentStmt=function(t,e){return t},t.prototype.visitJSDocCommentStmt=function(t,e){return t},t.prototype.visitAllStatements=function(t,e){var n=this;t.forEach(function(t){return t.visitStatement(n,e)})},t}();function _s(t,e,n){return new Do(t,e,n)}function bs(t,e,n){return void 0===e&&(e=null),new zo(t,null,e,n)}function ws(t,e,n){return new ts(t,e,n)}function xs(t){var e="";if(t.tagName&&(e+=" @"+t.tagName),t.text){if(t.text.match(/\/\*|\*\//))throw new Error('JSDoc text cannot contain "/*" and "*/"');e+=" "+t.text.replace(/@/g,"\\@")}return e}(function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.varNames=new Set,e}o(e,t),e.prototype.visitDeclareFunctionStmt=function(t,e){return t},e.prototype.visitDeclareClassStmt=function(t,e){return t},e.prototype.visitReadVarExpr=function(t,e){return t.name&&this.varNames.add(t.name),null}})(gs),function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.externalReferences=[],e}o(e,t),e.prototype.visitExternalExpr=function(e,n){return this.externalReferences.push(e.value),t.prototype.visitExternalExpr.call(this,e,n)}}(gs),function(t){function e(e){var n=t.call(this)||this;return n.sourceSpan=e,n}o(e,t),e.prototype._clone=function(t){var e=Object.create(t.constructor.prototype);for(var n in t)e[n]=t[n];return e},e.prototype.transformExpr=function(t,e){return t.sourceSpan||((t=this._clone(t)).sourceSpan=this.sourceSpan),t},e.prototype.transformStmt=function(t,e){return t.sourceSpan||((t=this._clone(t)).sourceSpan=this.sourceSpan),t}}(ms);var Es=/(\.ts|\.d\.ts|\.js|\.jsx|\.tsx)$/,Ss=/\.ngfactory\.|\.ngsummary\./,Cs=/\.ngsummary\./,Ts=/NgSummary$/;function Ps(t,e){void 0===e&&(e=!1);var n=Ns(t,e);return n[0]+".ngfactory"+function r(t){return".tsx"===t?".ts":t}(n[1])}function As(t){return t.replace(Ss,".")}function Ns(t,e){if(void 0===e&&(e=!1),t.endsWith(".d.ts"))return[t.slice(0,-5),e?".ts":".d.ts"];var n=t.lastIndexOf(".");return-1!==n?[t.substring(0,n),t.substring(n)]:[t,""]}var ks,Os=/\u0275\d+/;!function(t){t[t.OnInit=0]="OnInit",t[t.OnDestroy=1]="OnDestroy",t[t.DoCheck=2]="DoCheck",t[t.OnChanges=3]="OnChanges",t[t.AfterContentInit=4]="AfterContentInit",t[t.AfterContentChecked=5]="AfterContentChecked",t[t.AfterViewInit=6]="AfterViewInit",t[t.AfterViewChecked=7]="AfterViewChecked"}(ks||(ks={}));var Ms=[ks.OnInit,ks.OnDestroy,ks.DoCheck,ks.OnChanges,ks.AfterContentInit,ks.AfterContentChecked,ks.AfterViewInit,ks.AfterViewChecked],Is=function(){function t(t,e,n,r,i,o,s,a,u,c,l,p){this._config=t,this._htmlParser=e,this._ngModuleResolver=n,this._directiveResolver=r,this._pipeResolver=i,this._summaryResolver=o,this._schemaRegistry=s,this._directiveNormalizer=a,this._console=u,this._staticSymbolCache=c,this._reflector=l,this._errorCollector=p,this._nonNormalizedDirectiveCache=new Map,this._directiveCache=new Map,this._summaryCache=new Map,this._pipeCache=new Map,this._ngModuleCache=new Map,this._ngModuleOfTypes=new Map,this._shallowModuleCache=new Map}return t.prototype.getReflector=function(){return this._reflector},t.prototype.clearCacheFor=function(t){var e=this._directiveCache.get(t);this._directiveCache.delete(t),this._nonNormalizedDirectiveCache.delete(t),this._summaryCache.delete(t),this._pipeCache.delete(t),this._ngModuleOfTypes.delete(t),this._ngModuleCache.clear(),e&&this._directiveNormalizer.clearCacheFor(e)},t.prototype.clearCache=function(){this._directiveCache.clear(),this._nonNormalizedDirectiveCache.clear(),this._summaryCache.clear(),this._pipeCache.clear(),this._ngModuleCache.clear(),this._ngModuleOfTypes.clear(),this._directiveNormalizer.clearCache()},t.prototype._createProxyClass=function(t,e){var n=null,r=function(){if(!n)throw new Error("Illegal state: Class "+e+" for type "+mt(t)+" is not compiled yet!");return n.apply(this,arguments)};return r.setDelegate=function(t){n=t,r.prototype=t.prototype},r.overriddenName=e,r},t.prototype.getGeneratedClass=function(t,e){return t instanceof qt?this._staticSymbolCache.get(Ps(t.filePath),e):this._createProxyClass(t,e)},t.prototype.getComponentViewClass=function(t){return this.getGeneratedClass(t,function e(t,n){return"View_"+Gt({reference:t})+"_"+n}(t,0))},t.prototype.getHostComponentViewClass=function(t){return this.getGeneratedClass(t,function e(t){return"HostView_"+Gt({reference:t})}(t))},t.prototype.getHostComponentType=function(t){var e=Gt({reference:t})+"_Host";if(t instanceof qt)return this._staticSymbolCache.get(t.filePath,e);var n=function t(){};return n.overriddenName=e,n},t.prototype.getRendererType=function(t){return t instanceof qt?this._staticSymbolCache.get(Ps(t.filePath),function e(t){return"RenderType_"+Gt({reference:t})}(t)):{}},t.prototype.getComponentFactory=function(t,e,n,r){if(e instanceof qt)return this._staticSymbolCache.get(Ps(e.filePath),function i(t){return Gt({reference:t})+"NgFactory"}(e));var o=this.getHostComponentViewClass(e);return this._reflector.resolveExternalReference(bo.createComponentFactory)(t,e,o,n,r,[])},t.prototype.initComponentFactory=function(t,e){var n;t instanceof qt||(n=t.ngContentSelectors).push.apply(n,f(e))},t.prototype._loadSummary=function(t,e){var n=this._summaryCache.get(t);if(!n){var r=this._summaryResolver.resolveSummary(t);this._summaryCache.set(t,(n=r?r.type:null)||null)}return n&&n.summaryKind===e?n:null},t.prototype.getHostComponentMetadata=function(t,e){var n=this.getHostComponentType(t.type.reference);e||(e=this.getHostComponentViewClass(n));var r=A.parse(t.selector)[0].getMatchingElementTemplate(),i=this._htmlParser.parse(r,"");return Jt.create({isHost:!0,type:{reference:n,diDeps:[],lifecycleHooks:[]},template:new $t({encapsulation:C.None,template:r,templateUrl:"",htmlAst:i,styles:[],styleUrls:[],ngContentSelectors:[],animations:[],isInline:!0,externalStylesheets:[],interpolation:null,preserveWhitespaces:!1}),exportAs:null,changeDetection:T.Default,inputs:[],outputs:[],host:{},isComponent:!0,selector:"*",providers:[],viewProviders:[],queries:[],guards:{},viewQueries:[],componentViewType:e,rendererType:{id:"__Host__",encapsulation:C.None,styles:[],data:{}},entryComponents:[],componentFactory:null})},t.prototype.loadDirectiveMetadata=function(t,e,n){var r=this;if(this._directiveCache.has(e))return null;e=gt(e);var i=this.getNonNormalizedDirectiveMetadata(e),o=i.metadata,s=function(t){var n=new Jt({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:t});return t&&r.initComponentFactory(o.componentFactory,t.ngContentSelectors),r._directiveCache.set(e,n),r._summaryCache.set(e,n.toSummary()),null};if(o.isComponent){var a=o.template,u=this._directiveNormalizer.normalizeTemplate({ngModuleType:t,componentType:e,moduleUrl:this._reflector.componentModuleUrl(e,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 _t(u)&&n?(this._reportError(function c(t){var e=Error("Can't compile synchronously as "+mt(t)+" is still being loaded!");return e.ngComponentType=t,e}
218
218
  /**
219
219
  * @license
220
220
  * Copyright Google Inc. All Rights Reserved.
221
221
  *
222
222
  * Use of this source code is governed by an MIT-style license that can be
223
223
  * found in the LICENSE file at https://angular.io/license
224
- */(e),e),null):st(u,s)}return s(null),null},t.prototype.getNonNormalizedDirectiveMetadata=function(t){var e=this;if(!(t=vt(t)))return null;var n=this._nonNormalizedDirectiveCache.get(t);if(n)return n;var r=this._directiveResolver.resolve(t,!1);if(!r)return null;var i=void 0;if(V.isTypeOf(r)){he("styles",(s=r).styles),he("styleUrls",s.styleUrls),de("interpolation",s.interpolation);var o=s.animations;i=new Xt({encapsulation:it(s.encapsulation),template:it(s.template),templateUrl:it(s.templateUrl),htmlAst:null,styles:s.styles||[],styleUrls:s.styleUrls||[],animations:o||[],interpolation:it(s.interpolation),isInline:!!s.template,externalStylesheets:[],ngContentSelectors:[],preserveWhitespaces:it(r.preserveWhitespaces)})}var s,a=null,u=[],c=[],l=r.selector;V.isTypeOf(r)?(a=(s=r).changeDetection,s.viewProviders&&(u=this._getProvidersMetadata(s.viewProviders,c,'viewProviders for "'+Rs(t)+'"',[],t)),s.entryComponents&&(c=Os(s.entryComponents).map(function(t){return e._getEntryComponentMetadata(t)}).concat(c)),l||(l=this._schemaRegistry.getDefaultComponentElementName())):l||(this._reportError(ut("Directive "+Rs(t)+" has no selector, please add it!"),t),l="error");var p=[];null!=r.providers&&(p=this._getProvidersMetadata(r.providers,c,'providers for "'+Rs(t)+'"',[],t));var h=[],f=[];null!=r.queries&&(h=this._getQueriesMetadata(r.queries,!1,t),f=this._getQueriesMetadata(r.queries,!0,t));var d=Yt.create({isHost:!1,selector:l,exportAs:it(r.exportAs),isComponent:!!i,type:this._getTypeMetadata(t),template:i,changeDetection:a,inputs:r.inputs||[],outputs:r.outputs||[],host:r.host||{},providers:p||[],viewProviders:u||[],queries:h||[],guards:r.guards||{},viewQueries:f||[],entryComponents:c,componentViewType:i?this.getComponentViewClass(t):null,rendererType:i?this.getRendererType(t):null,componentFactory:null});return i&&(d.componentFactory=this.getComponentFactory(l,t,d.inputs,d.outputs)),this._nonNormalizedDirectiveCache.set(t,n={metadata:d,annotation:r}),n},t.prototype.getDirectiveMetadata=function(t){var e=this._directiveCache.get(t);return e||this._reportError(ut("Illegal state: getDirectiveMetadata can only be called after loadNgModuleDirectiveAndPipeMetadata for a module that declares it. Directive "+Rs(t)+"."),t),e},t.prototype.getDirectiveSummary=function(t){var e=this._loadSummary(t,Kt.Directive);return e||this._reportError(ut("Illegal state: Could not load the summary for directive "+Rs(t)+"."),t),e},t.prototype.isDirective=function(t){return!!this._loadSummary(t,Kt.Directive)||this._directiveResolver.isDirective(t)},t.prototype.isPipe=function(t){return!!this._loadSummary(t,Kt.Pipe)||this._pipeResolver.isPipe(t)},t.prototype.isNgModule=function(t){return!!this._loadSummary(t,Kt.NgModule)||this._ngModuleResolver.isNgModule(t)},t.prototype.getNgModuleSummary=function(t,e){void 0===e&&(e=null);var n=this._loadSummary(t,Kt.NgModule);if(!n){var r=this.getNgModuleMetadata(t,!1,e);(n=r?r.toSummary():null)&&this._summaryCache.set(t,n)}return n},t.prototype.loadNgModuleDirectiveAndPipeMetadata=function(t,e,n){var r=this;void 0===n&&(n=!0);var i=this.getNgModuleMetadata(t,n),o=[];return i&&(i.declaredDirectives.forEach(function(n){var i=r.loadDirectiveMetadata(t,n.reference,e);i&&o.push(i)}),i.declaredPipes.forEach(function(t){return r._loadPipeMetadata(t.reference)})),Promise.all(o)},t.prototype.getShallowModuleMetadata=function(t){var e=this._shallowModuleCache.get(t);if(e)return e;var n=Ve(this._reflector.shallowAnnotations(t),z.isTypeOf);return e={type:this._getTypeMetadata(t),rawExports:n.exports,rawImports:n.imports,rawProviders:n.providers},this._shallowModuleCache.set(t,e),e},t.prototype.getNgModuleMetadata=function(t,e,n){var r=this;void 0===e&&(e=!0),void 0===n&&(n=null),t=vt(t);var i=this._ngModuleCache.get(t);if(i)return i;var o=this._ngModuleResolver.resolve(t,e);if(!o)return null;var s=[],a=[],u=[],c=[],p=[],h=[],f=[],d=[],v=[];o.imports&&Os(o.imports).forEach(function(e){var i=void 0;if(Ms(e)?i=e:e&&e.ngModule&&(i=e.ngModule,e.providers&&h.push.apply(h,l(r._getProvidersMetadata(e.providers,f,"provider for the NgModule '"+Rs(i)+"'",[],e)))),i){if(!r._checkSelfImport(t,i))if(n||(n=new Set),n.has(i))r._reportError(ut(r._getTypeDescriptor(i)+" '"+Rs(e)+"' is imported recursively by the module '"+Rs(t)+"'."),t);else{n.add(i);var o=r.getNgModuleSummary(i,n);n.delete(i),o?c.push(o):r._reportError(ut("Unexpected "+r._getTypeDescriptor(e)+" '"+Rs(e)+"' imported by the module '"+Rs(t)+"'. Please add a @NgModule annotation."),t)}}else r._reportError(ut("Unexpected value '"+Rs(e)+"' imported by the module '"+Rs(t)+"'"),t)}),o.exports&&Os(o.exports).forEach(function(e){if(Ms(e))if(n||(n=new Set),n.has(e))r._reportError(ut(r._getTypeDescriptor(e)+" '"+dt(e)+"' is exported recursively by the module '"+Rs(t)+"'"),t);else{n.add(e);var i=r.getNgModuleSummary(e,n);n.delete(e),i?p.push(i):a.push(r._getIdentifierMetadata(e))}else r._reportError(ut("Unexpected value '"+Rs(e)+"' exported by the module '"+Rs(t)+"'"),t)});var y=this._getTransitiveNgModuleMetadata(c,p);o.declarations&&Os(o.declarations).forEach(function(e){if(Ms(e)){var n=r._getIdentifierMetadata(e);if(r.isDirective(e))y.addDirective(n),s.push(n),r._addTypeToModule(e,t);else{if(!r.isPipe(e))return void r._reportError(ut("Unexpected "+r._getTypeDescriptor(e)+" '"+Rs(e)+"' declared by the module '"+Rs(t)+"'. Please add a @Pipe/@Directive/@Component annotation."),t);y.addPipe(n),y.pipes.push(n),u.push(n),r._addTypeToModule(e,t)}}else r._reportError(ut("Unexpected value '"+Rs(e)+"' declared by the module '"+Rs(t)+"'"),t)});var m=[],g=[];return a.forEach(function(e){if(y.directivesSet.has(e.reference))m.push(e),y.addExportedDirective(e);else{if(!y.pipesSet.has(e.reference))return void r._reportError(ut("Can't export "+r._getTypeDescriptor(e.reference)+" "+Rs(e.reference)+" from "+Rs(t)+" as it was neither declared nor imported!"),t);g.push(e),y.addExportedPipe(e)}}),o.providers&&h.push.apply(h,l(this._getProvidersMetadata(o.providers,f,"provider for the NgModule '"+Rs(t)+"'",[],t))),o.entryComponents&&f.push.apply(f,l(Os(o.entryComponents).map(function(t){return r._getEntryComponentMetadata(t)}))),o.bootstrap&&Os(o.bootstrap).forEach(function(e){Ms(e)?d.push(r._getIdentifierMetadata(e)):r._reportError(ut("Unexpected value '"+Rs(e)+"' used in the bootstrap property of module '"+Rs(t)+"'"),t)}),f.push.apply(f,l(d.map(function(t){return r._getEntryComponentMetadata(t.reference)}))),o.schemas&&v.push.apply(v,l(Os(o.schemas))),i=new $t({type:this._getTypeMetadata(t),providers:h,entryComponents:f,bootstrapComponents:d,schemas:v,declaredDirectives:s,exportedDirectives:m,declaredPipes:u,exportedPipes:g,importedModules:c,exportedModules:p,transitiveModule:y,id:o.id||null}),f.forEach(function(t){return y.addEntryComponent(t)}),h.forEach(function(t){return y.addProvider(t,i.type)}),y.addModule(i.type),this._ngModuleCache.set(t,i),i},t.prototype._checkSelfImport=function(t,e){return t===e&&(this._reportError(ut("'"+Rs(t)+"' module can't import itself"),t),!0)},t.prototype._getTypeDescriptor=function(t){if(Ms(t)){if(this.isDirective(t))return"directive";if(this.isPipe(t))return"pipe";if(this.isNgModule(t))return"module"}return t.provide?"provider":"value"},t.prototype._addTypeToModule=function(t,e){var n=this._ngModuleOfTypes.get(t);n&&n!==e?this._reportError(ut("Type "+Rs(t)+" is part of the declarations of 2 modules: "+Rs(n)+" and "+Rs(e)+"! Please consider moving "+Rs(t)+" to a higher module that imports "+Rs(n)+" and "+Rs(e)+". You can also create a new NgModule that exports and includes "+Rs(t)+" then import that NgModule in "+Rs(n)+" and "+Rs(e)+"."),e):this._ngModuleOfTypes.set(t,e)},t.prototype._getTransitiveNgModuleMetadata=function(t,e){var n=new Jt,r=new Map;return t.concat(e).forEach(function(t){t.modules.forEach(function(t){return n.addModule(t)}),t.entryComponents.forEach(function(t){return n.addEntryComponent(t)});var e=new Set;t.providers.forEach(function(t){var i=Qt(t.provider.token),o=r.get(i);o||(o=new Set,r.set(i,o));var s=t.module.reference;!e.has(i)&&o.has(s)||(o.add(s),e.add(i),n.addProvider(t.provider,t.module))})}),e.forEach(function(t){t.exportedDirectives.forEach(function(t){return n.addExportedDirective(t)}),t.exportedPipes.forEach(function(t){return n.addExportedPipe(t)})}),t.forEach(function(t){t.exportedDirectives.forEach(function(t){return n.addDirective(t)}),t.exportedPipes.forEach(function(t){return n.addPipe(t)})}),n},t.prototype._getIdentifierMetadata=function(t){return{reference:t=vt(t)}},t.prototype.isInjectable=function(t){return this._reflector.tryAnnotations(t).some(function(t){return W.isTypeOf(t)})},t.prototype.getInjectableSummary=function(t){return{summaryKind:Kt.Injectable,type:this._getTypeMetadata(t,null,!1)}},t.prototype.getInjectableMetadata=function(t,e,n){void 0===e&&(e=null),void 0===n&&(n=!0);var r=this._loadSummary(t,Kt.Injectable),i=r?r.type:this._getTypeMetadata(t,e,n),o=this._reflector.annotations(t).filter(function(t){return W.isTypeOf(t)});if(0===o.length)return null;var s=o[o.length-1];return{symbol:t,type:i,providedIn:s.providedIn,useValue:s.useValue,useClass:s.useClass,useExisting:s.useExisting,useFactory:s.useFactory,deps:s.deps}},t.prototype._getTypeMetadata=function(t,e,n){void 0===e&&(e=null),void 0===n&&(n=!0);var r=this._getIdentifierMetadata(t);return{reference:r.reference,diDeps:this._getDependenciesMetadata(r.reference,e,n),lifecycleHooks:function i(t,e){return Ns.filter(function(n){return function r(t,e,n){return t.hasLifecycleHook(n,function r(t){switch(t){case Ps.OnInit:return"ngOnInit";case Ps.OnDestroy:return"ngOnDestroy";case Ps.DoCheck:return"ngDoCheck";case Ps.OnChanges:return"ngOnChanges";case Ps.AfterContentInit:return"ngAfterContentInit";case Ps.AfterContentChecked:return"ngAfterContentChecked";case Ps.AfterViewInit:return"ngAfterViewInit";case Ps.AfterViewChecked:return"ngAfterViewChecked"}}
224
+ */(e),e),null):ct(u,s)}return s(null),null},t.prototype.getNonNormalizedDirectiveMetadata=function(t){var e=this;if(!(t=gt(t)))return null;var n=this._nonNormalizedDirectiveCache.get(t);if(n)return n;var r=this._directiveResolver.resolve(t,!1);if(!r)return null;var i=void 0;if(q.isTypeOf(r)){ve("styles",(s=r).styles),ve("styleUrls",s.styleUrls),me("interpolation",s.interpolation);var o=s.animations;i=new $t({encapsulation:at(s.encapsulation),template:at(s.template),templateUrl:at(s.templateUrl),htmlAst:null,styles:s.styles||[],styleUrls:s.styleUrls||[],animations:o||[],interpolation:at(s.interpolation),isInline:!!s.template,externalStylesheets:[],ngContentSelectors:[],preserveWhitespaces:at(r.preserveWhitespaces)})}var s,a=null,u=[],c=[],l=r.selector;q.isTypeOf(r)?(a=(s=r).changeDetection,s.viewProviders&&(u=this._getProvidersMetadata(s.viewProviders,c,'viewProviders for "'+Ls(t)+'"',[],t)),s.entryComponents&&(c=Rs(s.entryComponents).map(function(t){return e._getEntryComponentMetadata(t)}).concat(c)),l||(l=this._schemaRegistry.getDefaultComponentElementName())):l||(this._reportError(pt("Directive "+Ls(t)+" has no selector, please add it!"),t),l="error");var p=[];null!=r.providers&&(p=this._getProvidersMetadata(r.providers,c,'providers for "'+Ls(t)+'"',[],t));var h=[],f=[];null!=r.queries&&(h=this._getQueriesMetadata(r.queries,!1,t),f=this._getQueriesMetadata(r.queries,!0,t));var d=Jt.create({isHost:!1,selector:l,exportAs:at(r.exportAs),isComponent:!!i,type:this._getTypeMetadata(t),template:i,changeDetection:a,inputs:r.inputs||[],outputs:r.outputs||[],host:r.host||{},providers:p||[],viewProviders:u||[],queries:h||[],guards:r.guards||{},viewQueries:f||[],entryComponents:c,componentViewType:i?this.getComponentViewClass(t):null,rendererType:i?this.getRendererType(t):null,componentFactory:null});return i&&(d.componentFactory=this.getComponentFactory(l,t,d.inputs,d.outputs)),this._nonNormalizedDirectiveCache.set(t,n={metadata:d,annotation:r}),n},t.prototype.getDirectiveMetadata=function(t){var e=this._directiveCache.get(t);return e||this._reportError(pt("Illegal state: getDirectiveMetadata can only be called after loadNgModuleDirectiveAndPipeMetadata for a module that declares it. Directive "+Ls(t)+"."),t),e},t.prototype.getDirectiveSummary=function(t){var e=this._loadSummary(t,Wt.Directive);return e||this._reportError(pt("Illegal state: Could not load the summary for directive "+Ls(t)+"."),t),e},t.prototype.isDirective=function(t){return!!this._loadSummary(t,Wt.Directive)||this._directiveResolver.isDirective(t)},t.prototype.isPipe=function(t){return!!this._loadSummary(t,Wt.Pipe)||this._pipeResolver.isPipe(t)},t.prototype.isNgModule=function(t){return!!this._loadSummary(t,Wt.NgModule)||this._ngModuleResolver.isNgModule(t)},t.prototype.getNgModuleSummary=function(t,e){void 0===e&&(e=null);var n=this._loadSummary(t,Wt.NgModule);if(!n){var r=this.getNgModuleMetadata(t,!1,e);(n=r?r.toSummary():null)&&this._summaryCache.set(t,n)}return n},t.prototype.loadNgModuleDirectiveAndPipeMetadata=function(t,e,n){var r=this;void 0===n&&(n=!0);var i=this.getNgModuleMetadata(t,n),o=[];return i&&(i.declaredDirectives.forEach(function(n){var i=r.loadDirectiveMetadata(t,n.reference,e);i&&o.push(i)}),i.declaredPipes.forEach(function(t){return r._loadPipeMetadata(t.reference)})),Promise.all(o)},t.prototype.getShallowModuleMetadata=function(t){var e=this._shallowModuleCache.get(t);if(e)return e;var n=qe(this._reflector.shallowAnnotations(t),G.isTypeOf);return e={type:this._getTypeMetadata(t),rawExports:n.exports,rawImports:n.imports,rawProviders:n.providers},this._shallowModuleCache.set(t,e),e},t.prototype.getNgModuleMetadata=function(t,e,n){var r=this;void 0===e&&(e=!0),void 0===n&&(n=null),t=gt(t);var i=this._ngModuleCache.get(t);if(i)return i;var o=this._ngModuleResolver.resolve(t,e);if(!o)return null;var s=[],a=[],u=[],c=[],l=[],p=[],h=[],d=[],v=[];o.imports&&Rs(o.imports).forEach(function(e){var i=void 0;if(Ds(e)?i=e:e&&e.ngModule&&(i=e.ngModule,e.providers&&p.push.apply(p,f(r._getProvidersMetadata(e.providers,h,"provider for the NgModule '"+Ls(i)+"'",[],e)))),i){if(!r._checkSelfImport(t,i))if(n||(n=new Set),n.has(i))r._reportError(pt(r._getTypeDescriptor(i)+" '"+Ls(e)+"' is imported recursively by the module '"+Ls(t)+"'."),t);else{n.add(i);var o=r.getNgModuleSummary(i,n);n.delete(i),o?c.push(o):r._reportError(pt("Unexpected "+r._getTypeDescriptor(e)+" '"+Ls(e)+"' imported by the module '"+Ls(t)+"'. Please add a @NgModule annotation."),t)}}else r._reportError(pt("Unexpected value '"+Ls(e)+"' imported by the module '"+Ls(t)+"'"),t)}),o.exports&&Rs(o.exports).forEach(function(e){if(Ds(e))if(n||(n=new Set),n.has(e))r._reportError(pt(r._getTypeDescriptor(e)+" '"+mt(e)+"' is exported recursively by the module '"+Ls(t)+"'"),t);else{n.add(e);var i=r.getNgModuleSummary(e,n);n.delete(e),i?l.push(i):a.push(r._getIdentifierMetadata(e))}else r._reportError(pt("Unexpected value '"+Ls(e)+"' exported by the module '"+Ls(t)+"'"),t)});var y=this._getTransitiveNgModuleMetadata(c,l);o.declarations&&Rs(o.declarations).forEach(function(e){if(Ds(e)){var n=r._getIdentifierMetadata(e);if(r.isDirective(e))y.addDirective(n),s.push(n),r._addTypeToModule(e,t);else{if(!r.isPipe(e))return void r._reportError(pt("Unexpected "+r._getTypeDescriptor(e)+" '"+Ls(e)+"' declared by the module '"+Ls(t)+"'. Please add a @Pipe/@Directive/@Component annotation."),t);y.addPipe(n),y.pipes.push(n),u.push(n),r._addTypeToModule(e,t)}}else r._reportError(pt("Unexpected value '"+Ls(e)+"' declared by the module '"+Ls(t)+"'"),t)});var m=[],g=[];return a.forEach(function(e){if(y.directivesSet.has(e.reference))m.push(e),y.addExportedDirective(e);else{if(!y.pipesSet.has(e.reference))return void r._reportError(pt("Can't export "+r._getTypeDescriptor(e.reference)+" "+Ls(e.reference)+" from "+Ls(t)+" as it was neither declared nor imported!"),t);g.push(e),y.addExportedPipe(e)}}),o.providers&&p.push.apply(p,f(this._getProvidersMetadata(o.providers,h,"provider for the NgModule '"+Ls(t)+"'",[],t))),o.entryComponents&&h.push.apply(h,f(Rs(o.entryComponents).map(function(t){return r._getEntryComponentMetadata(t)}))),o.bootstrap&&Rs(o.bootstrap).forEach(function(e){Ds(e)?d.push(r._getIdentifierMetadata(e)):r._reportError(pt("Unexpected value '"+Ls(e)+"' used in the bootstrap property of module '"+Ls(t)+"'"),t)}),h.push.apply(h,f(d.map(function(t){return r._getEntryComponentMetadata(t.reference)}))),o.schemas&&v.push.apply(v,f(Rs(o.schemas))),i=new ee({type:this._getTypeMetadata(t),providers:p,entryComponents:h,bootstrapComponents:d,schemas:v,declaredDirectives:s,exportedDirectives:m,declaredPipes:u,exportedPipes:g,importedModules:c,exportedModules:l,transitiveModule:y,id:o.id||null}),h.forEach(function(t){return y.addEntryComponent(t)}),p.forEach(function(t){return y.addProvider(t,i.type)}),y.addModule(i.type),this._ngModuleCache.set(t,i),i},t.prototype._checkSelfImport=function(t,e){return t===e&&(this._reportError(pt("'"+Ls(t)+"' module can't import itself"),t),!0)},t.prototype._getTypeDescriptor=function(t){if(Ds(t)){if(this.isDirective(t))return"directive";if(this.isPipe(t))return"pipe";if(this.isNgModule(t))return"module"}return t.provide?"provider":"value"},t.prototype._addTypeToModule=function(t,e){var n=this._ngModuleOfTypes.get(t);n&&n!==e?this._reportError(pt("Type "+Ls(t)+" is part of the declarations of 2 modules: "+Ls(n)+" and "+Ls(e)+"! Please consider moving "+Ls(t)+" to a higher module that imports "+Ls(n)+" and "+Ls(e)+". You can also create a new NgModule that exports and includes "+Ls(t)+" then import that NgModule in "+Ls(n)+" and "+Ls(e)+"."),e):this._ngModuleOfTypes.set(t,e)},t.prototype._getTransitiveNgModuleMetadata=function(t,e){var n=new ne,r=new Map;return t.concat(e).forEach(function(t){t.modules.forEach(function(t){return n.addModule(t)}),t.entryComponents.forEach(function(t){return n.addEntryComponent(t)});var e=new Set;t.providers.forEach(function(t){var i=Yt(t.provider.token),o=r.get(i);o||(o=new Set,r.set(i,o));var s=t.module.reference;!e.has(i)&&o.has(s)||(o.add(s),e.add(i),n.addProvider(t.provider,t.module))})}),e.forEach(function(t){t.exportedDirectives.forEach(function(t){return n.addExportedDirective(t)}),t.exportedPipes.forEach(function(t){return n.addExportedPipe(t)})}),t.forEach(function(t){t.exportedDirectives.forEach(function(t){return n.addDirective(t)}),t.exportedPipes.forEach(function(t){return n.addPipe(t)})}),n},t.prototype._getIdentifierMetadata=function(t){return{reference:t=gt(t)}},t.prototype.isInjectable=function(t){return this._reflector.tryAnnotations(t).some(function(t){return X.isTypeOf(t)})},t.prototype.getInjectableSummary=function(t){return{summaryKind:Wt.Injectable,type:this._getTypeMetadata(t,null,!1)}},t.prototype.getInjectableMetadata=function(t,e,n){void 0===e&&(e=null),void 0===n&&(n=!0);var r=this._loadSummary(t,Wt.Injectable),i=r?r.type:this._getTypeMetadata(t,e,n),o=this._reflector.annotations(t).filter(function(t){return X.isTypeOf(t)});if(0===o.length)return null;var s=o[o.length-1];return{symbol:t,type:i,providedIn:s.providedIn,useValue:s.useValue,useClass:s.useClass,useExisting:s.useExisting,useFactory:s.useFactory,deps:s.deps}},t.prototype._getTypeMetadata=function(t,e,n){void 0===e&&(e=null),void 0===n&&(n=!0);var r=this._getIdentifierMetadata(t);return{reference:r.reference,diDeps:this._getDependenciesMetadata(r.reference,e,n),lifecycleHooks:function i(t,e){return Ms.filter(function(n){return function r(t,e,n){return t.hasLifecycleHook(n,function r(t){switch(t){case ks.OnInit:return"ngOnInit";case ks.OnDestroy:return"ngOnDestroy";case ks.DoCheck:return"ngDoCheck";case ks.OnChanges:return"ngOnChanges";case ks.AfterContentInit:return"ngAfterContentInit";case ks.AfterContentChecked:return"ngAfterContentChecked";case ks.AfterViewInit:return"ngAfterViewInit";case ks.AfterViewChecked:return"ngAfterViewChecked"}}
225
225
  /**
226
226
  * @license
227
227
  * Copyright Google Inc. All Rights Reserved.
228
228
  *
229
229
  * Use of this source code is governed by an MIT-style license that can be
230
230
  * found in the LICENSE file at https://angular.io/license
231
- */(e))}(t,n,e)})}(this._reflector,r.reference)}},t.prototype._getFactoryMetadata=function(t,e){return void 0===e&&(e=null),{reference:t=vt(t),diDeps:this._getDependenciesMetadata(t,e)}},t.prototype.getPipeMetadata=function(t){var e=this._pipeCache.get(t);return e||this._reportError(ut("Illegal state: getPipeMetadata can only be called after loadNgModuleDirectiveAndPipeMetadata for a module that declares it. Pipe "+Rs(t)+"."),t),e||null},t.prototype.getPipeSummary=function(t){var e=this._loadSummary(t,Kt.Pipe);return e||this._reportError(ut("Illegal state: Could not load the summary for pipe "+Rs(t)+"."),t),e},t.prototype.getOrLoadPipeMetadata=function(t){var e=this._pipeCache.get(t);return e||(e=this._loadPipeMetadata(t)),e},t.prototype._loadPipeMetadata=function(t){t=vt(t);var e=this._pipeResolver.resolve(t),n=new Zt({type:this._getTypeMetadata(t),name:e.name,pure:!!e.pure});return this._pipeCache.set(t,n),this._summaryCache.set(t,n.toSummary()),n},t.prototype._getDependenciesMetadata=function(t,e,n){var r=this;void 0===n&&(n=!0);var i=!1,o=(e||this._reflector.parameters(t)||[]).map(function(t){var e=!1,n=!1,o=!1,s=!1,a=!1,u=null;return Array.isArray(t)?t.forEach(function(t){Y.isTypeOf(t)?n=!0:G.isTypeOf(t)?o=!0:X.isTypeOf(t)?s=!0:Q.isTypeOf(t)?a=!0:O.isTypeOf(t)?(e=!0,u=t.attributeName):N.isTypeOf(t)?u=t.token:k.isTypeOf(t)||t instanceof Vt?u=t:Ms(t)&&null==u&&(u=t)}):u=t,null==u?(i=!0,null):{isAttribute:e,isHost:n,isSelf:o,isSkipSelf:s,isOptional:a,token:r._getTokenMetadata(u)}});if(i){var s=o.map(function(t){return t?Rs(t.token):"?"}).join(", "),a="Can't resolve all parameters for "+Rs(t)+": ("+s+").";n||this._config.strictInjectionParameters?this._reportError(ut(a),t):this._console.warn("Warning: "+a+" This will become an error in Angular v6.x")}return o},t.prototype._getTokenMetadata=function(t){return"string"==typeof(t=vt(t))?{value:t}:{identifier:{reference:t}}},t.prototype._getProvidersMetadata=function(t,e,n,r,i){var o=this;return void 0===r&&(r=[]),t.forEach(function(s,a){if(Array.isArray(s))o._getProvidersMetadata(s,e,n,r);else{var u=void 0;if((s=vt(s))&&"object"==typeof s&&s.hasOwnProperty("provide"))o._validateProvider(s),u=new ee(s.provide,s);else{if(!Ms(s)){if(void 0===s)return void o._reportError(ut("Encountered undefined provider! Usually this means you have a circular dependencies. This might be caused by using 'barrel' index.ts files."));var c=t.reduce(function(t,e,n){return n<a?t.push(""+Rs(e)):n==a?t.push("?"+Rs(e)+"?"):n==a+1&&t.push("..."),t},[]).join(", ");return void o._reportError(ut("Invalid "+(n||"provider")+" - only instances of Provider and Type are allowed, got: ["+c+"]"),i)}u=new ee(s,{useClass:s})}u.token===o._reflector.resolveExternalReference(mo.ANALYZE_FOR_ENTRY_COMPONENTS)?e.push.apply(e,l(o._getEntryComponentsFromProvider(u,i))):r.push(o.getProviderMetadata(u))}}),r},t.prototype._validateProvider=function(t){t.hasOwnProperty("useClass")&&null==t.useClass&&this._reportError(ut("Invalid provider for "+Rs(t.provide)+". useClass cannot be "+t.useClass+".\n Usually it happens when:\n 1. There's a circular dependency (might be caused by using index.ts (barrel) files).\n 2. Class was used before it was declared. Use forwardRef in this case."))},t.prototype._getEntryComponentsFromProvider=function(t,e){var n=this,r=[],i=[];return t.useFactory||t.useExisting||t.useClass?(this._reportError(ut("The ANALYZE_FOR_ENTRY_COMPONENTS token only supports useValue!"),e),[]):t.multi?(function o(t,e){nt(t,new Is,e)}(t.useValue,i),i.forEach(function(t){var e=n._getEntryComponentMetadata(t.reference,!1);e&&r.push(e)}),r):(this._reportError(ut("The ANALYZE_FOR_ENTRY_COMPONENTS token only supports 'multi = true'!"),e),[])},t.prototype._getEntryComponentMetadata=function(t,e){void 0===e&&(e=!0);var n=this.getNonNormalizedDirectiveMetadata(t);if(n&&n.metadata.isComponent)return{componentType:t,componentFactory:n.metadata.componentFactory};var r=this._loadSummary(t,Kt.Directive);if(r&&r.isComponent)return{componentType:t,componentFactory:r.componentFactory};if(e)throw ut(t.name+" cannot be used as an entry component.");return null},t.prototype._getInjectableTypeMetadata=function(t,e){void 0===e&&(e=null);var n=this._loadSummary(t,Kt.Injectable);return n?n.type:this._getTypeMetadata(t,e)},t.prototype.getProviderMetadata=function(t){var e=void 0,n=null,r=null,i=this._getTokenMetadata(t.token);return t.useClass?(e=(n=this._getInjectableTypeMetadata(t.useClass,t.dependencies)).diDeps,t.token===t.useClass&&(i={identifier:n})):t.useFactory&&(e=(r=this._getFactoryMetadata(t.useFactory,t.dependencies)).diDeps),{token:i,useClass:n,useValue:t.useValue,useFactory:r,useExisting:t.useExisting?this._getTokenMetadata(t.useExisting):void 0,deps:e,multi:t.multi}},t.prototype._getQueriesMetadata=function(t,e,n){var r=this,i=[];return Object.keys(t).forEach(function(o){var s=t[o];s.isViewQuery===e&&i.push(r._getQueryMetadata(s,o,n))}),i},t.prototype._queryVarBindings=function(t){return t.split(/\s*,\s*/)},t.prototype._getQueryMetadata=function(t,e,n){var r,i=this;return"string"==typeof t.selector?r=this._queryVarBindings(t.selector).map(function(t){return i._getTokenMetadata(t)}):t.selector?r=[this._getTokenMetadata(t.selector)]:(this._reportError(ut("Can't construct a query for the property \""+e+'" of "'+Rs(n)+"\" since the query selector wasn't defined."),n),r=[]),{selectors:r,first:t.first,descendants:t.descendants,propertyName:e,read:t.read?this._getTokenMetadata(t.read):null}},t.prototype._reportError=function(t,e,n){if(!this._errorCollector)throw t;this._errorCollector(t,e),n&&this._errorCollector(t,n)},t}();function Os(t){return function e(t){return t?Array.from(new Set(t)):[]}(function t(e,n){if(void 0===n&&(n=[]),e)for(var r=0;r<e.length;r++){var i=vt(e[r]);Array.isArray(i)?t(i,n):n.push(i)}return n}(t))}function Ms(t){return t instanceof Vt||t instanceof Z}var Is=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o(e,t),e.prototype.visitOther=function(t,e){e.push({reference:t})},e}(ot);function Rs(t){return t instanceof Vt?t.name+" in "+t.filePath:dt(t)}var Ds=function(t){function e(e,n){return t.call(this,n,e)||this}return o(e,t),e}(Tr),js=function js(t,e){var n=this;this.reflector=t,this.component=e,this.errors=[],this.viewQueries=function r(t){var e=1,n=new Map;return t.viewQueries&&t.viewQueries.forEach(function(t){return Vs(n,{meta:t,queryId:e++})}),n}(e),this.viewProviders=new Map,e.viewProviders.forEach(function(t){null==n.viewProviders.get(Qt(t.token))&&n.viewProviders.set(Qt(t.token),!0)})},Ls=function(){function t(t,e,n,r,i,o,s,a,u){var c=this;this.viewContext=t,this._parent=e,this._isViewRoot=n,this._directiveAsts=r,this._sourceSpan=u,this._transformedProviders=new Map,this._seenProviders=new Map,this._queriedTokens=new Map,this.transformedHasViewContainer=!1,this._attrs={},i.forEach(function(t){return c._attrs[t.name]=t.value});var l=r.map(function(t){return t.directive});if(this._allProviders=function p(t,e,n){var r=new Map;return t.forEach(function(t){Fs([{token:{identifier:t.type},useClass:t.type}],t.isComponent?_t.Component:_t.Directive,!0,e,n,r,!1)}),t.filter(function(t){return t.isComponent}).concat(t.filter(function(t){return!t.isComponent})).forEach(function(t){Fs(t.providers,_t.PublicService,!1,e,n,r,!1),Fs(t.viewProviders,_t.PrivateService,!1,e,n,r,!1)}),r}(l,u,t.errors),this._contentQueries=function h(t,e){var n=t,r=new Map;return e.forEach(function(t,e){t.queries&&t.queries.forEach(function(t){return Vs(r,{meta:t,queryId:n++})})}),r}(a,l),Array.from(this._allProviders.values()).forEach(function(t){c._addQueryReadsTo(t.token,t.token,c._queriedTokens)}),s){var f=_o(this.viewContext.reflector,mo.TemplateRef);this._addQueryReadsTo(f,f,this._queriedTokens)}o.forEach(function(t){var e=t.value||_o(c.viewContext.reflector,mo.ElementRef);c._addQueryReadsTo({value:t.name},e,c._queriedTokens)}),this._queriedTokens.get(this.viewContext.reflector.resolveExternalReference(mo.ViewContainerRef))&&(this.transformedHasViewContainer=!0),Array.from(this._allProviders.values()).forEach(function(t){(t.eager||c._queriedTokens.get(Qt(t.token)))&&c._getOrCreateLocalProvider(t.providerType,t.token,!0)})}return t.prototype.afterElement=function(){var t=this;Array.from(this._allProviders.values()).forEach(function(e){t._getOrCreateLocalProvider(e.providerType,e.token,!1)})},Object.defineProperty(t.prototype,"transformProviders",{get:function(){var t=[],e=[];return this._transformedProviders.forEach(function(n){n.eager?e.push(n):t.push(n)}),t.concat(e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"transformedDirectiveAsts",{get:function(){var t=this.transformProviders.map(function(t){return t.token.identifier}),e=this._directiveAsts.slice();return e.sort(function(e,n){return t.indexOf(e.directive.type)-t.indexOf(n.directive.type)}),e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"queryMatches",{get:function(){var t=[];return this._queriedTokens.forEach(function(e){t.push.apply(t,l(e))}),t},enumerable:!0,configurable:!0}),t.prototype._addQueryReadsTo=function(t,e,n){this._getQueriesFor(t).forEach(function(t){var r=t.meta.read||e,i=Qt(r),o=n.get(i);o||n.set(i,o=[]),o.push({queryId:t.queryId,value:r})})},t.prototype._getQueriesFor=function(t){for(var e,n=[],r=this,i=0;null!==r;)(e=r._contentQueries.get(Qt(t)))&&n.push.apply(n,l(e.filter(function(t){return t.meta.descendants||i<=1}))),r._directiveAsts.length>0&&i++,r=r._parent;return(e=this.viewContext.viewQueries.get(Qt(t)))&&n.push.apply(n,l(e)),n},t.prototype._getOrCreateLocalProvider=function(t,e,n){var r=this,i=this._allProviders.get(Qt(e));if(!i||(t===_t.Directive||t===_t.PublicService)&&i.providerType===_t.PrivateService||(t===_t.PrivateService||t===_t.PublicService)&&i.providerType===_t.Builtin)return null;var o=this._transformedProviders.get(Qt(e));if(o)return o;if(null!=this._seenProviders.get(Qt(e)))return this.viewContext.errors.push(new Ds("Cannot instantiate cyclic dependency! "+Wt(e),this._sourceSpan)),null;this._seenProviders.set(Qt(e),!0);var s=i.providers.map(function(t){var e=t.useValue,o=t.useExisting,s=void 0;if(null!=t.useExisting){var a=r._getDependency(i.providerType,{token:t.useExisting},n);null!=a.token?o=a.token:(o=null,e=a.value)}else t.useFactory?s=(t.deps||t.useFactory.diDeps).map(function(t){return r._getDependency(i.providerType,t,n)}):t.useClass&&(s=(t.deps||t.useClass.diDeps).map(function(t){return r._getDependency(i.providerType,t,n)}));return function u(t,e){return{token:t.token,useClass:t.useClass,useExisting:e.useExisting,useFactory:t.useFactory,useValue:e.useValue,deps:e.deps,multi:t.multi}}(t,{useExisting:o,useValue:e,deps:s})});return o=function a(t,e){return new Mt(t.token,t.multiProvider,t.eager||e.eager,e.providers,t.providerType,t.lifecycleHooks,t.sourceSpan,t.isModule)}(i,{eager:n,providers:s}),this._transformedProviders.set(Qt(e),o),o},t.prototype._getLocalDependency=function(t,e,n){if(void 0===n&&(n=!1),e.isAttribute){var r=this._attrs[e.token.value];return{isValue:!0,value:null==r?null:r}}if(null!=e.token){if(t===_t.Directive||t===_t.Component){if(Qt(e.token)===this.viewContext.reflector.resolveExternalReference(mo.Renderer)||Qt(e.token)===this.viewContext.reflector.resolveExternalReference(mo.ElementRef)||Qt(e.token)===this.viewContext.reflector.resolveExternalReference(mo.ChangeDetectorRef)||Qt(e.token)===this.viewContext.reflector.resolveExternalReference(mo.TemplateRef))return e;Qt(e.token)===this.viewContext.reflector.resolveExternalReference(mo.ViewContainerRef)&&(this.transformedHasViewContainer=!0)}if(Qt(e.token)===this.viewContext.reflector.resolveExternalReference(mo.Injector))return e;if(null!=this._getOrCreateLocalProvider(t,e.token,n))return e}return null},t.prototype._getDependency=function(t,e,n){void 0===n&&(n=!1);var r=this,i=n,o=null;if(e.isSkipSelf||(o=this._getLocalDependency(t,e,n)),e.isSelf)!o&&e.isOptional&&(o={isValue:!0,value:null});else{for(;!o&&r._parent;){var s=r;r=r._parent,s._isViewRoot&&(i=!1),o=r._getLocalDependency(_t.PublicService,e,i)}o||(o=!e.isHost||this.viewContext.component.isHost||this.viewContext.component.type.reference===Qt(e.token)||null!=this.viewContext.viewProviders.get(Qt(e.token))?e:e.isOptional?{isValue:!0,value:null}:null)}return o||this.viewContext.errors.push(new Ds("No provider for "+Wt(e.token),this._sourceSpan)),o},t}();function Fs(t,e,n,r,i,o,s){t.forEach(function(t){var a=o.get(Qt(t.token));null!=a&&!!a.multiProvider!=!!t.multi&&i.push(new Ds("Mixing multi and non multi provider is not possible for token "+Wt(a.token),r)),a?(t.multi||(a.providers.length=0),a.providers.push(t)):(a=new Mt(t.token,!!t.multi,n||!(t.useClass||t.useExisting||t.useFactory),[t],e,t.token.identifier&&t.token.identifier.lifecycleHooks?t.token.identifier.lifecycleHooks:[],r,s),o.set(Qt(t.token),a))})}function Vs(t,e){e.meta.selectors.forEach(function(n){var r=t.get(Qt(n));r||(r=[],t.set(Qt(n),r)),r.push(e)})}
231
+ */(e))}(t,n,e)})}(this._reflector,r.reference)}},t.prototype._getFactoryMetadata=function(t,e){return void 0===e&&(e=null),{reference:t=gt(t),diDeps:this._getDependenciesMetadata(t,e)}},t.prototype.getPipeMetadata=function(t){var e=this._pipeCache.get(t);return e||this._reportError(pt("Illegal state: getPipeMetadata can only be called after loadNgModuleDirectiveAndPipeMetadata for a module that declares it. Pipe "+Ls(t)+"."),t),e||null},t.prototype.getPipeSummary=function(t){var e=this._loadSummary(t,Wt.Pipe);return e||this._reportError(pt("Illegal state: Could not load the summary for pipe "+Ls(t)+"."),t),e},t.prototype.getOrLoadPipeMetadata=function(t){var e=this._pipeCache.get(t);return e||(e=this._loadPipeMetadata(t)),e},t.prototype._loadPipeMetadata=function(t){t=gt(t);var e=this._pipeResolver.resolve(t),n=new te({type:this._getTypeMetadata(t),name:e.name,pure:!!e.pure});return this._pipeCache.set(t,n),this._summaryCache.set(t,n.toSummary()),n},t.prototype._getDependenciesMetadata=function(t,e,n){var r=this;void 0===n&&(n=!0);var i=!1,o=(e||this._reflector.parameters(t)||[]).map(function(t){var e=!1,n=!1,o=!1,s=!1,a=!1,u=null;return Array.isArray(t)?t.forEach(function(t){J.isTypeOf(t)?n=!0:Z.isTypeOf(t)?o=!0:$.isTypeOf(t)?s=!0:Y.isTypeOf(t)?a=!0:R.isTypeOf(t)?(e=!0,u=t.attributeName):M.isTypeOf(t)?u=t.token:I.isTypeOf(t)||t instanceof qt?u=t:Ds(t)&&null==u&&(u=t)}):u=t,null==u?(i=!0,null):{isAttribute:e,isHost:n,isSelf:o,isSkipSelf:s,isOptional:a,token:r._getTokenMetadata(u)}});if(i){var s=o.map(function(t){return t?Ls(t.token):"?"}).join(", "),a="Can't resolve all parameters for "+Ls(t)+": ("+s+").";n||this._config.strictInjectionParameters?this._reportError(pt(a),t):this._console.warn("Warning: "+a+" This will become an error in Angular v6.x")}return o},t.prototype._getTokenMetadata=function(t){return"string"==typeof(t=gt(t))?{value:t}:{identifier:{reference:t}}},t.prototype._getProvidersMetadata=function(t,e,n,r,i){var o=this;return void 0===r&&(r=[]),t.forEach(function(s,a){if(Array.isArray(s))o._getProvidersMetadata(s,e,n,r);else{var u=void 0;if((s=gt(s))&&"object"==typeof s&&s.hasOwnProperty("provide"))o._validateProvider(s),u=new ie(s.provide,s);else{if(!Ds(s)){if(void 0===s)return void o._reportError(pt("Encountered undefined provider! Usually this means you have a circular dependencies. This might be caused by using 'barrel' index.ts files."));var c=t.reduce(function(t,e,n){return n<a?t.push(""+Ls(e)):n==a?t.push("?"+Ls(e)+"?"):n==a+1&&t.push("..."),t},[]).join(", ");return void o._reportError(pt("Invalid "+(n||"provider")+" - only instances of Provider and Type are allowed, got: ["+c+"]"),i)}u=new ie(s,{useClass:s})}u.token===o._reflector.resolveExternalReference(bo.ANALYZE_FOR_ENTRY_COMPONENTS)?e.push.apply(e,f(o._getEntryComponentsFromProvider(u,i))):r.push(o.getProviderMetadata(u))}}),r},t.prototype._validateProvider=function(t){t.hasOwnProperty("useClass")&&null==t.useClass&&this._reportError(pt("Invalid provider for "+Ls(t.provide)+". useClass cannot be "+t.useClass+".\n Usually it happens when:\n 1. There's a circular dependency (might be caused by using index.ts (barrel) files).\n 2. Class was used before it was declared. Use forwardRef in this case."))},t.prototype._getEntryComponentsFromProvider=function(t,e){var n=this,r=[],i=[];return t.useFactory||t.useExisting||t.useClass?(this._reportError(pt("The ANALYZE_FOR_ENTRY_COMPONENTS token only supports useValue!"),e),[]):t.multi?(function o(t,e){ot(t,new js,e)}(t.useValue,i),i.forEach(function(t){var e=n._getEntryComponentMetadata(t.reference,!1);e&&r.push(e)}),r):(this._reportError(pt("The ANALYZE_FOR_ENTRY_COMPONENTS token only supports 'multi = true'!"),e),[])},t.prototype._getEntryComponentMetadata=function(t,e){void 0===e&&(e=!0);var n=this.getNonNormalizedDirectiveMetadata(t);if(n&&n.metadata.isComponent)return{componentType:t,componentFactory:n.metadata.componentFactory};var r=this._loadSummary(t,Wt.Directive);if(r&&r.isComponent)return{componentType:t,componentFactory:r.componentFactory};if(e)throw pt(t.name+" cannot be used as an entry component.");return null},t.prototype._getInjectableTypeMetadata=function(t,e){void 0===e&&(e=null);var n=this._loadSummary(t,Wt.Injectable);return n?n.type:this._getTypeMetadata(t,e)},t.prototype.getProviderMetadata=function(t){var e=void 0,n=null,r=null,i=this._getTokenMetadata(t.token);return t.useClass?(e=(n=this._getInjectableTypeMetadata(t.useClass,t.dependencies)).diDeps,t.token===t.useClass&&(i={identifier:n})):t.useFactory&&(e=(r=this._getFactoryMetadata(t.useFactory,t.dependencies)).diDeps),{token:i,useClass:n,useValue:t.useValue,useFactory:r,useExisting:t.useExisting?this._getTokenMetadata(t.useExisting):void 0,deps:e,multi:t.multi}},t.prototype._getQueriesMetadata=function(t,e,n){var r=this,i=[];return Object.keys(t).forEach(function(o){var s=t[o];s.isViewQuery===e&&i.push(r._getQueryMetadata(s,o,n))}),i},t.prototype._queryVarBindings=function(t){return t.split(/\s*,\s*/)},t.prototype._getQueryMetadata=function(t,e,n){var r,i=this;return"string"==typeof t.selector?r=this._queryVarBindings(t.selector).map(function(t){return i._getTokenMetadata(t)}):t.selector?r=[this._getTokenMetadata(t.selector)]:(this._reportError(pt("Can't construct a query for the property \""+e+'" of "'+Ls(n)+"\" since the query selector wasn't defined."),n),r=[]),{selectors:r,first:t.first,descendants:t.descendants,propertyName:e,read:t.read?this._getTokenMetadata(t.read):null}},t.prototype._reportError=function(t,e,n){if(!this._errorCollector)throw t;this._errorCollector(t,e),n&&this._errorCollector(t,n)},t}();function Rs(t){return function e(t){return t?Array.from(new Set(t)):[]}(function t(e,n){if(void 0===n&&(n=[]),e)for(var r=0;r<e.length;r++){var i=gt(e[r]);Array.isArray(i)?t(i,n):n.push(i)}return n}(t))}function Ds(t){return t instanceof qt||t instanceof tt}var js=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o(e,t),e.prototype.visitOther=function(t,e){e.push({reference:t})},e}(ut);function Ls(t){return t instanceof qt?t.name+" in "+t.filePath:mt(t)}var Fs=function(t){function e(e,n){return t.call(this,n,e)||this}return o(e,t),e}(Nr),Vs=function Vs(t,e){var n=this;this.reflector=t,this.component=e,this.errors=[],this.viewQueries=function r(t){var e=1,n=new Map;return t.viewQueries&&t.viewQueries.forEach(function(t){return qs(n,{meta:t,queryId:e++})}),n}(e),this.viewProviders=new Map,e.viewProviders.forEach(function(t){null==n.viewProviders.get(Yt(t.token))&&n.viewProviders.set(Yt(t.token),!0)})},Hs=function(){function t(t,e,n,r,i,o,s,a,u){var c=this;this.viewContext=t,this._parent=e,this._isViewRoot=n,this._directiveAsts=r,this._sourceSpan=u,this._transformedProviders=new Map,this._seenProviders=new Map,this._queriedTokens=new Map,this.transformedHasViewContainer=!1,this._attrs={},i.forEach(function(t){return c._attrs[t.name]=t.value});var l=r.map(function(t){return t.directive});if(this._allProviders=function p(t,e,n){var r=new Map;return t.forEach(function(t){Bs([{token:{identifier:t.type},useClass:t.type}],t.isComponent?xt.Component:xt.Directive,!0,e,n,r,!1)}),t.filter(function(t){return t.isComponent}).concat(t.filter(function(t){return!t.isComponent})).forEach(function(t){Bs(t.providers,xt.PublicService,!1,e,n,r,!1),Bs(t.viewProviders,xt.PrivateService,!1,e,n,r,!1)}),r}(l,u,t.errors),this._contentQueries=function h(t,e){var n=t,r=new Map;return e.forEach(function(t,e){t.queries&&t.queries.forEach(function(t){return qs(r,{meta:t,queryId:n++})})}),r}(a,l),Array.from(this._allProviders.values()).forEach(function(t){c._addQueryReadsTo(t.token,t.token,c._queriedTokens)}),s){var f=xo(this.viewContext.reflector,bo.TemplateRef);this._addQueryReadsTo(f,f,this._queriedTokens)}o.forEach(function(t){var e=t.value||xo(c.viewContext.reflector,bo.ElementRef);c._addQueryReadsTo({value:t.name},e,c._queriedTokens)}),this._queriedTokens.get(this.viewContext.reflector.resolveExternalReference(bo.ViewContainerRef))&&(this.transformedHasViewContainer=!0),Array.from(this._allProviders.values()).forEach(function(t){(t.eager||c._queriedTokens.get(Yt(t.token)))&&c._getOrCreateLocalProvider(t.providerType,t.token,!0)})}return t.prototype.afterElement=function(){var t=this;Array.from(this._allProviders.values()).forEach(function(e){t._getOrCreateLocalProvider(e.providerType,e.token,!1)})},Object.defineProperty(t.prototype,"transformProviders",{get:function(){var t=[],e=[];return this._transformedProviders.forEach(function(n){n.eager?e.push(n):t.push(n)}),t.concat(e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"transformedDirectiveAsts",{get:function(){var t=this.transformProviders.map(function(t){return t.token.identifier}),e=this._directiveAsts.slice();return e.sort(function(e,n){return t.indexOf(e.directive.type)-t.indexOf(n.directive.type)}),e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"queryMatches",{get:function(){var t=[];return this._queriedTokens.forEach(function(e){t.push.apply(t,f(e))}),t},enumerable:!0,configurable:!0}),t.prototype._addQueryReadsTo=function(t,e,n){this._getQueriesFor(t).forEach(function(t){var r=t.meta.read||e,i=Yt(r),o=n.get(i);o||n.set(i,o=[]),o.push({queryId:t.queryId,value:r})})},t.prototype._getQueriesFor=function(t){for(var e,n=[],r=this,i=0;null!==r;)(e=r._contentQueries.get(Yt(t)))&&n.push.apply(n,f(e.filter(function(t){return t.meta.descendants||i<=1}))),r._directiveAsts.length>0&&i++,r=r._parent;return(e=this.viewContext.viewQueries.get(Yt(t)))&&n.push.apply(n,f(e)),n},t.prototype._getOrCreateLocalProvider=function(t,e,n){var r=this,i=this._allProviders.get(Yt(e));if(!i||(t===xt.Directive||t===xt.PublicService)&&i.providerType===xt.PrivateService||(t===xt.PrivateService||t===xt.PublicService)&&i.providerType===xt.Builtin)return null;var o=this._transformedProviders.get(Yt(e));if(o)return o;if(null!=this._seenProviders.get(Yt(e)))return this.viewContext.errors.push(new Fs("Cannot instantiate cyclic dependency! "+Xt(e),this._sourceSpan)),null;this._seenProviders.set(Yt(e),!0);var s=i.providers.map(function(t){var e=t.useValue,o=t.useExisting,s=void 0;if(null!=t.useExisting){var a=r._getDependency(i.providerType,{token:t.useExisting},n);null!=a.token?o=a.token:(o=null,e=a.value)}else t.useFactory?s=(t.deps||t.useFactory.diDeps).map(function(t){return r._getDependency(i.providerType,t,n)}):t.useClass&&(s=(t.deps||t.useClass.diDeps).map(function(t){return r._getDependency(i.providerType,t,n)}));return function u(t,e){return{token:t.token,useClass:t.useClass,useExisting:e.useExisting,useFactory:t.useFactory,useValue:e.useValue,deps:e.deps,multi:t.multi}}(t,{useExisting:o,useValue:e,deps:s})});return o=function a(t,e){return new Dt(t.token,t.multiProvider,t.eager||e.eager,e.providers,t.providerType,t.lifecycleHooks,t.sourceSpan,t.isModule)}(i,{eager:n,providers:s}),this._transformedProviders.set(Yt(e),o),o},t.prototype._getLocalDependency=function(t,e,n){if(void 0===n&&(n=!1),e.isAttribute){var r=this._attrs[e.token.value];return{isValue:!0,value:null==r?null:r}}if(null!=e.token){if(t===xt.Directive||t===xt.Component){if(Yt(e.token)===this.viewContext.reflector.resolveExternalReference(bo.Renderer)||Yt(e.token)===this.viewContext.reflector.resolveExternalReference(bo.ElementRef)||Yt(e.token)===this.viewContext.reflector.resolveExternalReference(bo.ChangeDetectorRef)||Yt(e.token)===this.viewContext.reflector.resolveExternalReference(bo.TemplateRef))return e;Yt(e.token)===this.viewContext.reflector.resolveExternalReference(bo.ViewContainerRef)&&(this.transformedHasViewContainer=!0)}if(Yt(e.token)===this.viewContext.reflector.resolveExternalReference(bo.Injector))return e;if(null!=this._getOrCreateLocalProvider(t,e.token,n))return e}return null},t.prototype._getDependency=function(t,e,n){void 0===n&&(n=!1);var r=this,i=n,o=null;if(e.isSkipSelf||(o=this._getLocalDependency(t,e,n)),e.isSelf)!o&&e.isOptional&&(o={isValue:!0,value:null});else{for(;!o&&r._parent;){var s=r;r=r._parent,s._isViewRoot&&(i=!1),o=r._getLocalDependency(xt.PublicService,e,i)}o||(o=!e.isHost||this.viewContext.component.isHost||this.viewContext.component.type.reference===Yt(e.token)||null!=this.viewContext.viewProviders.get(Yt(e.token))?e:e.isOptional?{isValue:!0,value:null}:null)}return o||this.viewContext.errors.push(new Fs("No provider for "+Xt(e.token),this._sourceSpan)),o},t}();function Bs(t,e,n,r,i,o,s){t.forEach(function(t){var a=o.get(Yt(t.token));null!=a&&!!a.multiProvider!=!!t.multi&&i.push(new Fs("Mixing multi and non multi provider is not possible for token "+Xt(a.token),r)),a?(t.multi||(a.providers.length=0),a.providers.push(t)):(a=new Dt(t.token,!!t.multi,n||!(t.useClass||t.useExisting||t.useFactory),[t],e,t.token.identifier&&t.token.identifier.lifecycleHooks?t.token.identifier.lifecycleHooks:[],r,s),o.set(Yt(t.token),a))})}function qs(t,e){e.meta.selectors.forEach(function(n){var r=t.get(Yt(n));r||(r=[],t.set(Yt(n),r)),r.push(e)})}
232
232
  /**
233
233
  * @license
234
234
  * Copyright Google Inc. All Rights Reserved.
@@ -242,43 +242,42 @@ var g=function(){function t(t){var e=void 0===t?{}:t,n=e.closedByChildren,r=e.re
242
242
  *
243
243
  * Use of this source code is governed by an MIT-style license that can be
244
244
  * found in the LICENSE file at https://angular.io/license
245
- */ys("_l");var Hs=function(){function t(t){this._reflector=t}return t.prototype.isNgModule=function(t){return this._reflector.annotations(t).some(z.isTypeOf)},t.prototype.resolve=function(t,e){void 0===e&&(e=!0);var n=Ve(this._reflector.annotations(t),z.isTypeOf);if(n)return n;if(e)throw new Error("No NgModule metadata found for '"+dt(t)+"'.");return null},t}(),Bs=function(){function t(t){void 0===t&&(t=null),this.file=t,this.sourcesContent=new Map,this.lines=[],this.lastCol0=0,this.hasMappings=!1}return t.prototype.addSource=function(t,e){return void 0===e&&(e=null),this.sourcesContent.has(t)||this.sourcesContent.set(t,e),this},t.prototype.addLine=function(){return this.lines.push([]),this.lastCol0=0,this},t.prototype.addMapping=function(t,e,n,r){if(!this.currentLine)throw new Error("A line must be added before mappings can be added");if(null!=e&&!this.sourcesContent.has(e))throw new Error('Unknown source file "'+e+'"');if(null==t)throw new Error("The column in the generated code must be provided");if(t<this.lastCol0)throw new Error("Mapping should be added in output order");if(e&&(null==n||null==r))throw new Error("The source location must be provided when a source url is provided");return this.hasMappings=!0,this.lastCol0=t,this.currentLine.push({col0:t,sourceUrl:e,sourceLine0:n,sourceCol0:r}),this},Object.defineProperty(t.prototype,"currentLine",{get:function(){return this.lines.slice(-1)[0]},enumerable:!0,configurable:!0}),t.prototype.toJSON=function(){var t=this;if(!this.hasMappings)return null;var e=new Map,n=[],r=[];Array.from(this.sourcesContent.keys()).forEach(function(i,o){e.set(i,o),n.push(i),r.push(t.sourcesContent.get(i)||null)});var i="",o=0,s=0,a=0,u=0;return this.lines.forEach(function(t){o=0,i+=t.map(function(t){var n=qs(t.col0-o);return o=t.col0,null!=t.sourceUrl&&(n+=qs(e.get(t.sourceUrl)-s),s=e.get(t.sourceUrl),n+=qs(t.sourceLine0-a),a=t.sourceLine0,n+=qs(t.sourceCol0-u),u=t.sourceCol0),n}).join(","),i+=";"}),i=i.slice(0,-1),{file:this.file||"",version:3,sourceRoot:"",sources:n,sourcesContent:r,mappings:i}},t.prototype.toJsComment=function(){return this.hasMappings?"//# sourceMappingURL=data:application/json;base64,"+function t(e){var n="";e=ft(e);for(var r=0;r<e.length;){var i=e.charCodeAt(r++),o=e.charCodeAt(r++),s=e.charCodeAt(r++);n+=Us(i>>2),n+=Us((3&i)<<4|(isNaN(o)?0:o>>4)),n+=isNaN(o)?"=":Us((15&o)<<2|s>>6),n+=isNaN(o)||isNaN(s)?"=":Us(63&s)}return n}(JSON.stringify(this,null,0)):""},t}();
245
+ */_s("_l");var Ks=function(){function t(t){this._reflector=t}return t.prototype.isNgModule=function(t){return this._reflector.annotations(t).some(G.isTypeOf)},t.prototype.resolve=function(t,e){void 0===e&&(e=!0);var n=qe(this._reflector.annotations(t),G.isTypeOf);if(n)return n;if(e)throw new Error("No NgModule metadata found for '"+mt(t)+"'.");return null},t}(),Us=function(){function t(t){void 0===t&&(t=null),this.file=t,this.sourcesContent=new Map,this.lines=[],this.lastCol0=0,this.hasMappings=!1}return t.prototype.addSource=function(t,e){return void 0===e&&(e=null),this.sourcesContent.has(t)||this.sourcesContent.set(t,e),this},t.prototype.addLine=function(){return this.lines.push([]),this.lastCol0=0,this},t.prototype.addMapping=function(t,e,n,r){if(!this.currentLine)throw new Error("A line must be added before mappings can be added");if(null!=e&&!this.sourcesContent.has(e))throw new Error('Unknown source file "'+e+'"');if(null==t)throw new Error("The column in the generated code must be provided");if(t<this.lastCol0)throw new Error("Mapping should be added in output order");if(e&&(null==n||null==r))throw new Error("The source location must be provided when a source url is provided");return this.hasMappings=!0,this.lastCol0=t,this.currentLine.push({col0:t,sourceUrl:e,sourceLine0:n,sourceCol0:r}),this},Object.defineProperty(t.prototype,"currentLine",{get:function(){return this.lines.slice(-1)[0]},enumerable:!0,configurable:!0}),t.prototype.toJSON=function(){var t=this;if(!this.hasMappings)return null;var e=new Map,n=[],r=[];Array.from(this.sourcesContent.keys()).forEach(function(i,o){e.set(i,o),n.push(i),r.push(t.sourcesContent.get(i)||null)});var i="",o=0,s=0,a=0,u=0;return this.lines.forEach(function(t){o=0,i+=t.map(function(t){var n=zs(t.col0-o);return o=t.col0,null!=t.sourceUrl&&(n+=zs(e.get(t.sourceUrl)-s),s=e.get(t.sourceUrl),n+=zs(t.sourceLine0-a),a=t.sourceLine0,n+=zs(t.sourceCol0-u),u=t.sourceCol0),n}).join(","),i+=";"}),i=i.slice(0,-1),{file:this.file||"",version:3,sourceRoot:"",sources:n,sourcesContent:r,mappings:i}},t.prototype.toJsComment=function(){return this.hasMappings?"//# sourceMappingURL=data:application/json;base64,"+function t(e){var n="";e=yt(e);for(var r=0;r<e.length;){var i=e.charCodeAt(r++),o=e.charCodeAt(r++),s=e.charCodeAt(r++);n+=Qs(i>>2),n+=Qs((3&i)<<4|(isNaN(o)?0:o>>4)),n+=isNaN(o)?"=":Qs((15&o)<<2|s>>6),n+=isNaN(o)||isNaN(s)?"=":Qs(63&s)}return n}(JSON.stringify(this,null,0)):""},t}();
246
246
  /**
247
247
  * @license
248
248
  * Copyright Google Inc. All Rights Reserved.
249
249
  *
250
250
  * Use of this source code is governed by an MIT-style license that can be
251
251
  * found in the LICENSE file at https://angular.io/license
252
- */function qs(t){t=t<0?1+(-t<<1):t<<1;var e="";do{var n=31&t;(t>>=5)>0&&(n|=32),e+=Us(n)}while(t>0);return e}var Ks="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";function Us(t){if(t<0||t>=64)throw new Error("Can only encode value in the range [0, 63]");return Ks[t]}
252
+ */function zs(t){t=t<0?1+(-t<<1):t<<1;var e="";do{var n=31&t;(t>>=5)>0&&(n|=32),e+=Qs(n)}while(t>0);return e}var Ws="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";function Qs(t){if(t<0||t>=64)throw new Error("Can only encode value in the range [0, 63]");return Ws[t]}
253
253
  /**
254
254
  * @license
255
255
  * Copyright Google Inc. All Rights Reserved.
256
256
  *
257
257
  * Use of this source code is governed by an MIT-style license that can be
258
258
  * found in the LICENSE file at https://angular.io/license
259
- */var zs=/'|\\|\n|\r|\$/g,Ws=/^[$A-Z_][0-9A-Z_$]*$/i,Qs=" ",Gs=ys("error",null,null),Xs=ys("stack",null,null),Ys=function Ys(t){this.indent=t,this.partsLength=0,this.parts=[],this.srcSpans=[]},Zs=(function(){function t(t){this._indent=t,this._classes=[],this._preambleLineCount=0,this._lines=[new Ys(t)]}t.createRoot=function(){return new t(0)},Object.defineProperty(t.prototype,"_currentLine",{get:function(){return this._lines[this._lines.length-1]},enumerable:!0,configurable:!0}),t.prototype.println=function(t,e){void 0===e&&(e=""),this.print(t||null,e,!0)},t.prototype.lineIsEmpty=function(){return 0===this._currentLine.parts.length},t.prototype.lineLength=function(){return this._currentLine.indent*Qs.length+this._currentLine.partsLength},t.prototype.print=function(t,e,n){void 0===n&&(n=!1),e.length>0&&(this._currentLine.parts.push(e),this._currentLine.partsLength+=e.length,this._currentLine.srcSpans.push(t&&t.sourceSpan||null)),n&&this._lines.push(new Ys(this._indent))},t.prototype.removeEmptyLastLine=function(){this.lineIsEmpty()&&this._lines.pop()},t.prototype.incIndent=function(){this._indent++,this.lineIsEmpty()&&(this._currentLine.indent=this._indent)},t.prototype.decIndent=function(){this._indent--,this.lineIsEmpty()&&(this._currentLine.indent=this._indent)},t.prototype.pushClass=function(t){this._classes.push(t)},t.prototype.popClass=function(){return this._classes.pop()},Object.defineProperty(t.prototype,"currentClass",{get:function(){return this._classes.length>0?this._classes[this._classes.length-1]:null},enumerable:!0,configurable:!0}),t.prototype.toSource=function(){return this.sourceLines.map(function(t){return t.parts.length>0?Js(t.indent)+t.parts.join(""):""}).join("\n")},t.prototype.toSourceMapGenerator=function(t,e){void 0===e&&(e=0);for(var n=new Bs(t),r=!1,i=function(){r||(n.addSource(t," ").addMapping(0,t,0,0),r=!0)},o=0;o<e;o++)n.addLine(),i();return this.sourceLines.forEach(function(t,e){n.addLine();for(var o=t.srcSpans,s=t.parts,a=t.indent*Qs.length,u=0;u<o.length&&!o[u];)a+=s[u].length,u++;for(u<o.length&&0===e&&0===a?r=!0:i();u<o.length;){var c=o[u],l=c.start.file,p=c.start.line,h=c.start.col;for(n.addSource(l.url,l.content).addMapping(a,l.url,p,h),a+=s[u].length,u++;u<o.length&&(c===o[u]||!o[u]);)a+=s[u].length,u++}}),n},t.prototype.setPreambleLineCount=function(t){return this._preambleLineCount=t},t.prototype.spanOf=function(t,e){var n=this._lines[t-this._preambleLineCount];if(n)for(var r=e-Js(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(t.prototype,"sourceLines",{get:function(){return this._lines.length&&0===this._lines[this._lines.length-1].parts.length?this._lines.slice(0,-1):this._lines},enumerable:!0,configurable:!0})}(),function(){function t(t){this._escapeDollarInStrings=t}return t.prototype.visitExpressionStmt=function(t,e){return t.expr.visitExpression(this,e),e.println(t,";"),null},t.prototype.visitReturnStmt=function(t,e){return e.print(t,"return "),t.value.visitExpression(this,e),e.println(t,";"),null},t.prototype.visitIfStmt=function(t,e){e.print(t,"if ("),t.condition.visitExpression(this,e),e.print(t,") {");var n=null!=t.falseCase&&t.falseCase.length>0;return t.trueCase.length<=1&&!n?(e.print(t," "),this.visitAllStatements(t.trueCase,e),e.removeEmptyLastLine(),e.print(t," ")):(e.println(),e.incIndent(),this.visitAllStatements(t.trueCase,e),e.decIndent(),n&&(e.println(t,"} else {"),e.incIndent(),this.visitAllStatements(t.falseCase,e),e.decIndent())),e.println(t,"}"),null},t.prototype.visitThrowStmt=function(t,e){return e.print(t,"throw "),t.error.visitExpression(this,e),e.println(t,";"),null},t.prototype.visitCommentStmt=function(t,e){return t.multiline?e.println(t,"/* "+t.comment+" */"):t.comment.split("\n").forEach(function(n){e.println(t,"// "+n)}),null},t.prototype.visitJSDocCommentStmt=function(t,e){return e.println(t,"/*"+t.toString()+"*/"),null},t.prototype.visitWriteVarExpr=function(t,e){var n=e.lineIsEmpty();return n||e.print(t,"("),e.print(t,t.name+" = "),t.value.visitExpression(this,e),n||e.print(t,")"),null},t.prototype.visitWriteKeyExpr=function(t,e){var n=e.lineIsEmpty();return n||e.print(t,"("),t.receiver.visitExpression(this,e),e.print(t,"["),t.index.visitExpression(this,e),e.print(t,"] = "),t.value.visitExpression(this,e),n||e.print(t,")"),null},t.prototype.visitWritePropExpr=function(t,e){var n=e.lineIsEmpty();return n||e.print(t,"("),t.receiver.visitExpression(this,e),e.print(t,"."+t.name+" = "),t.value.visitExpression(this,e),n||e.print(t,")"),null},t.prototype.visitInvokeMethodExpr=function(t,e){t.receiver.visitExpression(this,e);var n=t.name;return null!=t.builtin&&null==(n=this.getBuiltinMethodName(t.builtin))?null:(e.print(t,"."+n+"("),this.visitAllExpressions(t.args,e,","),e.print(t,")"),null)},t.prototype.visitInvokeFunctionExpr=function(t,e){return t.fn.visitExpression(this,e),e.print(t,"("),this.visitAllExpressions(t.args,e,","),e.print(t,")"),null},t.prototype.visitWrappedNodeExpr=function(t,e){throw new Error("Abstract emitter cannot visit WrappedNodeExpr.")},t.prototype.visitTypeofExpr=function(t,e){e.print(t,"typeof "),t.expr.visitExpression(this,e)},t.prototype.visitReadVarExpr=function(t,e){var n=t.name;if(null!=t.builtin)switch(t.builtin){case No.Super:n="super";break;case No.This:n="this";break;case No.CatchError:n=Gs.name;break;case No.CatchStack:n=Xs.name;break;default:throw new Error("Unknown builtin variable "+t.builtin)}return e.print(t,n),null},t.prototype.visitInstantiateExpr=function(t,e){return e.print(t,"new "),t.classExpr.visitExpression(this,e),e.print(t,"("),this.visitAllExpressions(t.args,e,","),e.print(t,")"),null},t.prototype.visitLiteralExpr=function(t,e){var n=t.value;return e.print(t,"string"==typeof n?$s(n,this._escapeDollarInStrings):""+n),null},t.prototype.visitConditionalExpr=function(t,e){return e.print(t,"("),t.condition.visitExpression(this,e),e.print(t,"? "),t.trueCase.visitExpression(this,e),e.print(t,": "),t.falseCase.visitExpression(this,e),e.print(t,")"),null},t.prototype.visitNotExpr=function(t,e){return e.print(t,"!"),t.condition.visitExpression(this,e),null},t.prototype.visitAssertNotNullExpr=function(t,e){return t.condition.visitExpression(this,e),null},t.prototype.visitBinaryOperatorExpr=function(t,e){var n;switch(t.operator){case xo.Equals:n="==";break;case xo.Identical:n="===";break;case xo.NotEquals:n="!=";break;case xo.NotIdentical:n="!==";break;case xo.And:n="&&";break;case xo.BitwiseAnd:n="&";break;case xo.Or:n="||";break;case xo.Plus:n="+";break;case xo.Minus:n="-";break;case xo.Divide:n="/";break;case xo.Multiply:n="*";break;case xo.Modulo:n="%";break;case xo.Lower:n="<";break;case xo.LowerEquals:n="<=";break;case xo.Bigger:n=">";break;case xo.BiggerEquals:n=">=";break;default:throw new Error("Unknown operator "+t.operator)}return t.parens&&e.print(t,"("),t.lhs.visitExpression(this,e),e.print(t," "+n+" "),t.rhs.visitExpression(this,e),t.parens&&e.print(t,")"),null},t.prototype.visitReadPropExpr=function(t,e){return t.receiver.visitExpression(this,e),e.print(t,"."),e.print(t,t.name),null},t.prototype.visitReadKeyExpr=function(t,e){return t.receiver.visitExpression(this,e),e.print(t,"["),t.index.visitExpression(this,e),e.print(t,"]"),null},t.prototype.visitLiteralArrayExpr=function(t,e){return e.print(t,"["),this.visitAllExpressions(t.entries,e,","),e.print(t,"]"),null},t.prototype.visitLiteralMapExpr=function(t,e){var n=this;return e.print(t,"{"),this.visitAllObjects(function(r){e.print(t,$s(r.key,n._escapeDollarInStrings,r.quoted)+":"),r.value.visitExpression(n,e)},t.entries,e,","),e.print(t,"}"),null},t.prototype.visitCommaExpr=function(t,e){return e.print(t,"("),this.visitAllExpressions(t.parts,e,","),e.print(t,")"),null},t.prototype.visitAllExpressions=function(t,e,n){var r=this;this.visitAllObjects(function(t){return t.visitExpression(r,e)},t,e,n)},t.prototype.visitAllObjects=function(t,e,n,r){for(var i=!1,o=0;o<e.length;o++)o>0&&(n.lineLength()>80?(n.print(null,r,!0),i||(n.incIndent(),n.incIndent(),i=!0)):n.print(null,r,!1)),t(e[o]);i&&(n.decIndent(),n.decIndent())},t.prototype.visitAllStatements=function(t,e){var n=this;t.forEach(function(t){return t.visitStatement(n,e)})},t}());function $s(t,e,n){if(void 0===n&&(n=!0),null==t)return null;var r=t.replace(zs,function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return"$"==t[0]?e?"\\$":"$":"\n"==t[0]?"\\n":"\r"==t[0]?"\\r":"\\"+t[0]});return n||!Ws.test(r)?"'"+r+"'":r}function Js(t){for(var e="",n=0;n<t;n++)e+=Qs;return e}
259
+ */var Gs=/'|\\|\n|\r|\$/g,Xs=/^[$A-Z_][0-9A-Z_$]*$/i,Ys=" ",Zs=_s("error",null,null),$s=_s("stack",null,null),Js=function Js(t){this.indent=t,this.partsLength=0,this.parts=[],this.srcSpans=[]},ta=(function(){function t(t){this._indent=t,this._classes=[],this._preambleLineCount=0,this._lines=[new Js(t)]}t.createRoot=function(){return new t(0)},Object.defineProperty(t.prototype,"_currentLine",{get:function(){return this._lines[this._lines.length-1]},enumerable:!0,configurable:!0}),t.prototype.println=function(t,e){void 0===e&&(e=""),this.print(t||null,e,!0)},t.prototype.lineIsEmpty=function(){return 0===this._currentLine.parts.length},t.prototype.lineLength=function(){return this._currentLine.indent*Ys.length+this._currentLine.partsLength},t.prototype.print=function(t,e,n){void 0===n&&(n=!1),e.length>0&&(this._currentLine.parts.push(e),this._currentLine.partsLength+=e.length,this._currentLine.srcSpans.push(t&&t.sourceSpan||null)),n&&this._lines.push(new Js(this._indent))},t.prototype.removeEmptyLastLine=function(){this.lineIsEmpty()&&this._lines.pop()},t.prototype.incIndent=function(){this._indent++,this.lineIsEmpty()&&(this._currentLine.indent=this._indent)},t.prototype.decIndent=function(){this._indent--,this.lineIsEmpty()&&(this._currentLine.indent=this._indent)},t.prototype.pushClass=function(t){this._classes.push(t)},t.prototype.popClass=function(){return this._classes.pop()},Object.defineProperty(t.prototype,"currentClass",{get:function(){return this._classes.length>0?this._classes[this._classes.length-1]:null},enumerable:!0,configurable:!0}),t.prototype.toSource=function(){return this.sourceLines.map(function(t){return t.parts.length>0?na(t.indent)+t.parts.join(""):""}).join("\n")},t.prototype.toSourceMapGenerator=function(t,e){void 0===e&&(e=0);for(var n=new Us(t),r=!1,i=function(){r||(n.addSource(t," ").addMapping(0,t,0,0),r=!0)},o=0;o<e;o++)n.addLine(),i();return this.sourceLines.forEach(function(t,e){n.addLine();for(var o=t.srcSpans,s=t.parts,a=t.indent*Ys.length,u=0;u<o.length&&!o[u];)a+=s[u].length,u++;for(u<o.length&&0===e&&0===a?r=!0:i();u<o.length;){var c=o[u],l=c.start.file,p=c.start.line,h=c.start.col;for(n.addSource(l.url,l.content).addMapping(a,l.url,p,h),a+=s[u].length,u++;u<o.length&&(c===o[u]||!o[u]);)a+=s[u].length,u++}}),n},t.prototype.setPreambleLineCount=function(t){return this._preambleLineCount=t},t.prototype.spanOf=function(t,e){var n=this._lines[t-this._preambleLineCount];if(n)for(var r=e-na(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(t.prototype,"sourceLines",{get:function(){return this._lines.length&&0===this._lines[this._lines.length-1].parts.length?this._lines.slice(0,-1):this._lines},enumerable:!0,configurable:!0})}(),function(){function t(t){this._escapeDollarInStrings=t}return t.prototype.visitExpressionStmt=function(t,e){return t.expr.visitExpression(this,e),e.println(t,";"),null},t.prototype.visitReturnStmt=function(t,e){return e.print(t,"return "),t.value.visitExpression(this,e),e.println(t,";"),null},t.prototype.visitIfStmt=function(t,e){e.print(t,"if ("),t.condition.visitExpression(this,e),e.print(t,") {");var n=null!=t.falseCase&&t.falseCase.length>0;return t.trueCase.length<=1&&!n?(e.print(t," "),this.visitAllStatements(t.trueCase,e),e.removeEmptyLastLine(),e.print(t," ")):(e.println(),e.incIndent(),this.visitAllStatements(t.trueCase,e),e.decIndent(),n&&(e.println(t,"} else {"),e.incIndent(),this.visitAllStatements(t.falseCase,e),e.decIndent())),e.println(t,"}"),null},t.prototype.visitThrowStmt=function(t,e){return e.print(t,"throw "),t.error.visitExpression(this,e),e.println(t,";"),null},t.prototype.visitCommentStmt=function(t,e){return t.multiline?e.println(t,"/* "+t.comment+" */"):t.comment.split("\n").forEach(function(n){e.println(t,"// "+n)}),null},t.prototype.visitJSDocCommentStmt=function(t,e){return e.println(t,"/*"+t.toString()+"*/"),null},t.prototype.visitWriteVarExpr=function(t,e){var n=e.lineIsEmpty();return n||e.print(t,"("),e.print(t,t.name+" = "),t.value.visitExpression(this,e),n||e.print(t,")"),null},t.prototype.visitWriteKeyExpr=function(t,e){var n=e.lineIsEmpty();return n||e.print(t,"("),t.receiver.visitExpression(this,e),e.print(t,"["),t.index.visitExpression(this,e),e.print(t,"] = "),t.value.visitExpression(this,e),n||e.print(t,")"),null},t.prototype.visitWritePropExpr=function(t,e){var n=e.lineIsEmpty();return n||e.print(t,"("),t.receiver.visitExpression(this,e),e.print(t,"."+t.name+" = "),t.value.visitExpression(this,e),n||e.print(t,")"),null},t.prototype.visitInvokeMethodExpr=function(t,e){t.receiver.visitExpression(this,e);var n=t.name;return null!=t.builtin&&null==(n=this.getBuiltinMethodName(t.builtin))?null:(e.print(t,"."+n+"("),this.visitAllExpressions(t.args,e,","),e.print(t,")"),null)},t.prototype.visitInvokeFunctionExpr=function(t,e){return t.fn.visitExpression(this,e),e.print(t,"("),this.visitAllExpressions(t.args,e,","),e.print(t,")"),null},t.prototype.visitWrappedNodeExpr=function(t,e){throw new Error("Abstract emitter cannot visit WrappedNodeExpr.")},t.prototype.visitTypeofExpr=function(t,e){e.print(t,"typeof "),t.expr.visitExpression(this,e)},t.prototype.visitReadVarExpr=function(t,e){var n=t.name;if(null!=t.builtin)switch(t.builtin){case Mo.Super:n="super";break;case Mo.This:n="this";break;case Mo.CatchError:n=Zs.name;break;case Mo.CatchStack:n=$s.name;break;default:throw new Error("Unknown builtin variable "+t.builtin)}return e.print(t,n),null},t.prototype.visitInstantiateExpr=function(t,e){return e.print(t,"new "),t.classExpr.visitExpression(this,e),e.print(t,"("),this.visitAllExpressions(t.args,e,","),e.print(t,")"),null},t.prototype.visitLiteralExpr=function(t,e){var n=t.value;return e.print(t,"string"==typeof n?ea(n,this._escapeDollarInStrings):""+n),null},t.prototype.visitConditionalExpr=function(t,e){return e.print(t,"("),t.condition.visitExpression(this,e),e.print(t,"? "),t.trueCase.visitExpression(this,e),e.print(t,": "),t.falseCase.visitExpression(this,e),e.print(t,")"),null},t.prototype.visitNotExpr=function(t,e){return e.print(t,"!"),t.condition.visitExpression(this,e),null},t.prototype.visitAssertNotNullExpr=function(t,e){return t.condition.visitExpression(this,e),null},t.prototype.visitBinaryOperatorExpr=function(t,e){var n;switch(t.operator){case Co.Equals:n="==";break;case Co.Identical:n="===";break;case Co.NotEquals:n="!=";break;case Co.NotIdentical:n="!==";break;case Co.And:n="&&";break;case Co.BitwiseAnd:n="&";break;case Co.Or:n="||";break;case Co.Plus:n="+";break;case Co.Minus:n="-";break;case Co.Divide:n="/";break;case Co.Multiply:n="*";break;case Co.Modulo:n="%";break;case Co.Lower:n="<";break;case Co.LowerEquals:n="<=";break;case Co.Bigger:n=">";break;case Co.BiggerEquals:n=">=";break;default:throw new Error("Unknown operator "+t.operator)}return t.parens&&e.print(t,"("),t.lhs.visitExpression(this,e),e.print(t," "+n+" "),t.rhs.visitExpression(this,e),t.parens&&e.print(t,")"),null},t.prototype.visitReadPropExpr=function(t,e){return t.receiver.visitExpression(this,e),e.print(t,"."),e.print(t,t.name),null},t.prototype.visitReadKeyExpr=function(t,e){return t.receiver.visitExpression(this,e),e.print(t,"["),t.index.visitExpression(this,e),e.print(t,"]"),null},t.prototype.visitLiteralArrayExpr=function(t,e){return e.print(t,"["),this.visitAllExpressions(t.entries,e,","),e.print(t,"]"),null},t.prototype.visitLiteralMapExpr=function(t,e){var n=this;return e.print(t,"{"),this.visitAllObjects(function(r){e.print(t,ea(r.key,n._escapeDollarInStrings,r.quoted)+":"),r.value.visitExpression(n,e)},t.entries,e,","),e.print(t,"}"),null},t.prototype.visitCommaExpr=function(t,e){return e.print(t,"("),this.visitAllExpressions(t.parts,e,","),e.print(t,")"),null},t.prototype.visitAllExpressions=function(t,e,n){var r=this;this.visitAllObjects(function(t){return t.visitExpression(r,e)},t,e,n)},t.prototype.visitAllObjects=function(t,e,n,r){for(var i=!1,o=0;o<e.length;o++)o>0&&(n.lineLength()>80?(n.print(null,r,!0),i||(n.incIndent(),n.incIndent(),i=!0)):n.print(null,r,!1)),t(e[o]);i&&(n.decIndent(),n.decIndent())},t.prototype.visitAllStatements=function(t,e){var n=this;t.forEach(function(t){return t.visitStatement(n,e)})},t}());function ea(t,e,n){if(void 0===n&&(n=!0),null==t)return null;var r=t.replace(Gs,function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return"$"==t[0]?e?"\\$":"$":"\n"==t[0]?"\\n":"\r"==t[0]?"\\r":"\\"+t[0]});return n||!Xs.test(r)?"'"+r+"'":r}function na(t){for(var e="",n=0;n<t;n++)e+=Ys;return e}
260
260
  /**
261
261
  * @license
262
262
  * Copyright Google Inc. All Rights Reserved.
263
263
  *
264
264
  * Use of this source code is governed by an MIT-style license that can be
265
265
  * found in the LICENSE file at https://angular.io/license
266
- */!function(t){function e(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}o(e,t),e.prototype.visitType=function(t,e,n){void 0===n&&(n="any"),t?(this.typeExpression++,t.visitType(this,e),this.typeExpression--):e.print(null,n)},e.prototype.visitLiteralExpr=function(e,n){var r=e.value;return null==r&&e.type!=Co?(n.print(e,"("+r+" as any)"),null):t.prototype.visitLiteralExpr.call(this,e,n)},e.prototype.visitLiteralArrayExpr=function(e,n){0===e.entries.length&&n.print(e,"(");var r=t.prototype.visitLiteralArrayExpr.call(this,e,n);return 0===e.entries.length&&n.print(e," as any[])"),r},e.prototype.visitExternalExpr=function(t,e){return this._visitIdentifier(t.value,t.typeParams,e),null},e.prototype.visitAssertNotNullExpr=function(e,n){var r=t.prototype.visitAssertNotNullExpr.call(this,e,n);return n.print(e,"!"),r},e.prototype.visitDeclareVarStmt=function(t,e){if(t.hasModifier(Lo.Exported)&&t.value instanceof qo&&!t.type){var n=t.value.value,r=n.name,i=n.moduleName;if(i){var o=this.reexports.get(i);return o||this.reexports.set(i,o=[]),o.push({name:r,as:t.name}),null}}return t.hasModifier(Lo.Exported)&&e.print(t,"export "),t.hasModifier(Lo.Final)?e.print(t,"const"):e.print(t,"var"),e.print(t," "+t.name),this._printColonType(t.type,e),t.value&&(e.print(t," = "),t.value.visitExpression(this,e)),e.println(t,";"),null},e.prototype.visitWrappedNodeExpr=function(t,e){throw new Error("Cannot visit a WrappedNodeExpr when outputting Typescript.")},e.prototype.visitCastExpr=function(t,e){return e.print(t,"(<"),t.type.visitType(this,e),e.print(t,">"),t.value.visitExpression(this,e),e.print(t,")"),null},e.prototype.visitInstantiateExpr=function(t,e){return e.print(t,"new "),this.typeExpression++,t.classExpr.visitExpression(this,e),this.typeExpression--,e.print(t,"("),this.visitAllExpressions(t.args,e,","),e.print(t,")"),null},e.prototype.visitDeclareClassStmt=function(t,e){var n=this;return e.pushClass(t),t.hasModifier(Lo.Exported)&&e.print(t,"export "),e.print(t,"class "+t.name),null!=t.parent&&(e.print(t," extends "),this.typeExpression++,t.parent.visitExpression(this,e),this.typeExpression--),e.println(t," {"),e.incIndent(),t.fields.forEach(function(t){return n._visitClassField(t,e)}),null!=t.constructorMethod&&this._visitClassConstructor(t,e),t.getters.forEach(function(t){return n._visitClassGetter(t,e)}),t.methods.forEach(function(t){return n._visitClassMethod(t,e)}),e.decIndent(),e.println(t,"}"),e.popClass(),null},e.prototype._visitClassField=function(t,e){t.hasModifier(Lo.Private)&&e.print(null,"/*private*/ "),t.hasModifier(Lo.Static)&&e.print(null,"static "),e.print(null,t.name),this._printColonType(t.type,e),t.initializer&&(e.print(null," = "),t.initializer.visitExpression(this,e)),e.println(null,";")},e.prototype._visitClassGetter=function(t,e){t.hasModifier(Lo.Private)&&e.print(null,"private "),e.print(null,"get "+t.name+"()"),this._printColonType(t.type,e),e.println(null," {"),e.incIndent(),this.visitAllStatements(t.body,e),e.decIndent(),e.println(null,"}")},e.prototype._visitClassConstructor=function(t,e){e.print(t,"constructor("),this._visitParams(t.constructorMethod.params,e),e.println(t,") {"),e.incIndent(),this.visitAllStatements(t.constructorMethod.body,e),e.decIndent(),e.println(t,"}")},e.prototype._visitClassMethod=function(t,e){t.hasModifier(Lo.Private)&&e.print(null,"private "),e.print(null,t.name+"("),this._visitParams(t.params,e),e.print(null,")"),this._printColonType(t.type,e,"void"),e.println(null," {"),e.incIndent(),this.visitAllStatements(t.body,e),e.decIndent(),e.println(null,"}")},e.prototype.visitFunctionExpr=function(t,e){return t.name&&(e.print(t,"function "),e.print(t,t.name)),e.print(t,"("),this._visitParams(t.params,e),e.print(t,")"),this._printColonType(t.type,e,"void"),t.name||e.print(t," => "),e.println(t,"{"),e.incIndent(),this.visitAllStatements(t.statements,e),e.decIndent(),e.print(t,"}"),null},e.prototype.visitDeclareFunctionStmt=function(t,e){return t.hasModifier(Lo.Exported)&&e.print(t,"export "),e.print(t,"function "+t.name+"("),this._visitParams(t.params,e),e.print(t,")"),this._printColonType(t.type,e,"void"),e.println(t," {"),e.incIndent(),this.visitAllStatements(t.statements,e),e.decIndent(),e.println(t,"}"),null},e.prototype.visitTryCatchStmt=function(t,e){e.println(t,"try {"),e.incIndent(),this.visitAllStatements(t.bodyStmts,e),e.decIndent(),e.println(t,"} catch ("+Gs.name+") {"),e.incIndent();var n=[Xs.set(Gs.prop("stack",null)).toDeclStmt(null,[Lo.Final])].concat(t.catchStmts);return this.visitAllStatements(n,e),e.decIndent(),e.println(t,"}"),null},e.prototype.visitBuiltinType=function(t,e){var n;switch(t.name){case bo.Bool:n="boolean";break;case bo.Dynamic:n="any";break;case bo.Function:n="Function";break;case bo.Number:case bo.Int:n="number";break;case bo.String:n="string";break;case bo.None:n="never";break;default:throw new Error("Unsupported builtin type "+t.name)}return e.print(null,n),null},e.prototype.visitExpressionType=function(t,e){var n=this;return t.value.visitExpression(this,e),null!==t.typeParams&&(e.print(null,"<"),this.visitAllObjects(function(t){return n.visitType(t,e)},t.typeParams,e,","),e.print(null,">")),null},e.prototype.visitArrayType=function(t,e){return this.visitType(t.of,e),e.print(null,"[]"),null},e.prototype.visitMapType=function(t,e){return e.print(null,"{[key: string]:"),this.visitType(t.valueType,e),e.print(null,"}"),null},e.prototype.getBuiltinMethodName=function(t){var e;switch(t){case Oo.ConcatArray:e="concat";break;case Oo.SubscribeObservable:e="subscribe";break;case Oo.Bind:e="bind";break;default:throw new Error("Unknown builtin method: "+t)}return e},e.prototype._visitParams=function(t,e){var n=this;this.visitAllObjects(function(t){e.print(null,t.name),n._printColonType(t.type,e)},t,e,",")},e.prototype._visitIdentifier=function(t,e,n){var r=this,i=t.name,o=t.moduleName;if(this.referenceFilter&&this.referenceFilter(t))n.print(null,"(null as any)");else{if(o&&(!this.importFilter||!this.importFilter(t))){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&&(e||[]).length>0&&(n.print(null,"<"),this.visitAllObjects(function(t){return t.visitType(r,n)},e,n,","),n.print(null,">"))}},e.prototype._printColonType=function(t,e,n){t!==Co&&(e.print(null,":"),this.visitType(t,e,n))}}(Zs);var ta=function(){function t(t){this._reflector=t}return t.prototype.isPipe=function(t){var e=this._reflector.annotations(vt(t));return e&&e.some(H.isTypeOf)},t.prototype.resolve=function(t,e){void 0===e&&(e=!0);var n=this._reflector.annotations(vt(t));if(n){var r=Ve(n,H.isTypeOf);if(r)return r}if(e)throw new Error("No Pipe decorator found on "+dt(t));return null},t}(),ea={};
266
+ */!function(t){function e(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}o(e,t),e.prototype.visitType=function(t,e,n){void 0===n&&(n="any"),t?(this.typeExpression++,t.visitType(this,e),this.typeExpression--):e.print(null,n)},e.prototype.visitLiteralExpr=function(e,n){var r=e.value;return null==r&&e.type!=Ao?(n.print(e,"("+r+" as any)"),null):t.prototype.visitLiteralExpr.call(this,e,n)},e.prototype.visitLiteralArrayExpr=function(e,n){0===e.entries.length&&n.print(e,"(");var r=t.prototype.visitLiteralArrayExpr.call(this,e,n);return 0===e.entries.length&&n.print(e," as any[])"),r},e.prototype.visitExternalExpr=function(t,e){return this._visitIdentifier(t.value,t.typeParams,e),null},e.prototype.visitAssertNotNullExpr=function(e,n){var r=t.prototype.visitAssertNotNullExpr.call(this,e,n);return n.print(e,"!"),r},e.prototype.visitDeclareVarStmt=function(t,e){if(t.hasModifier(Ho.Exported)&&t.value instanceof zo&&!t.type){var n=t.value.value,r=n.name,i=n.moduleName;if(i){var o=this.reexports.get(i);return o||this.reexports.set(i,o=[]),o.push({name:r,as:t.name}),null}}return t.hasModifier(Ho.Exported)&&e.print(t,"export "),t.hasModifier(Ho.Final)?e.print(t,"const"):e.print(t,"var"),e.print(t," "+t.name),this._printColonType(t.type,e),t.value&&(e.print(t," = "),t.value.visitExpression(this,e)),e.println(t,";"),null},e.prototype.visitWrappedNodeExpr=function(t,e){throw new Error("Cannot visit a WrappedNodeExpr when outputting Typescript.")},e.prototype.visitCastExpr=function(t,e){return e.print(t,"(<"),t.type.visitType(this,e),e.print(t,">"),t.value.visitExpression(this,e),e.print(t,")"),null},e.prototype.visitInstantiateExpr=function(t,e){return e.print(t,"new "),this.typeExpression++,t.classExpr.visitExpression(this,e),this.typeExpression--,e.print(t,"("),this.visitAllExpressions(t.args,e,","),e.print(t,")"),null},e.prototype.visitDeclareClassStmt=function(t,e){var n=this;return e.pushClass(t),t.hasModifier(Ho.Exported)&&e.print(t,"export "),e.print(t,"class "+t.name),null!=t.parent&&(e.print(t," extends "),this.typeExpression++,t.parent.visitExpression(this,e),this.typeExpression--),e.println(t," {"),e.incIndent(),t.fields.forEach(function(t){return n._visitClassField(t,e)}),null!=t.constructorMethod&&this._visitClassConstructor(t,e),t.getters.forEach(function(t){return n._visitClassGetter(t,e)}),t.methods.forEach(function(t){return n._visitClassMethod(t,e)}),e.decIndent(),e.println(t,"}"),e.popClass(),null},e.prototype._visitClassField=function(t,e){t.hasModifier(Ho.Private)&&e.print(null,"/*private*/ "),t.hasModifier(Ho.Static)&&e.print(null,"static "),e.print(null,t.name),this._printColonType(t.type,e),t.initializer&&(e.print(null," = "),t.initializer.visitExpression(this,e)),e.println(null,";")},e.prototype._visitClassGetter=function(t,e){t.hasModifier(Ho.Private)&&e.print(null,"private "),e.print(null,"get "+t.name+"()"),this._printColonType(t.type,e),e.println(null," {"),e.incIndent(),this.visitAllStatements(t.body,e),e.decIndent(),e.println(null,"}")},e.prototype._visitClassConstructor=function(t,e){e.print(t,"constructor("),this._visitParams(t.constructorMethod.params,e),e.println(t,") {"),e.incIndent(),this.visitAllStatements(t.constructorMethod.body,e),e.decIndent(),e.println(t,"}")},e.prototype._visitClassMethod=function(t,e){t.hasModifier(Ho.Private)&&e.print(null,"private "),e.print(null,t.name+"("),this._visitParams(t.params,e),e.print(null,")"),this._printColonType(t.type,e,"void"),e.println(null," {"),e.incIndent(),this.visitAllStatements(t.body,e),e.decIndent(),e.println(null,"}")},e.prototype.visitFunctionExpr=function(t,e){return t.name&&(e.print(t,"function "),e.print(t,t.name)),e.print(t,"("),this._visitParams(t.params,e),e.print(t,")"),this._printColonType(t.type,e,"void"),t.name||e.print(t," => "),e.println(t,"{"),e.incIndent(),this.visitAllStatements(t.statements,e),e.decIndent(),e.print(t,"}"),null},e.prototype.visitDeclareFunctionStmt=function(t,e){return t.hasModifier(Ho.Exported)&&e.print(t,"export "),e.print(t,"function "+t.name+"("),this._visitParams(t.params,e),e.print(t,")"),this._printColonType(t.type,e,"void"),e.println(t," {"),e.incIndent(),this.visitAllStatements(t.statements,e),e.decIndent(),e.println(t,"}"),null},e.prototype.visitTryCatchStmt=function(t,e){e.println(t,"try {"),e.incIndent(),this.visitAllStatements(t.bodyStmts,e),e.decIndent(),e.println(t,"} catch ("+Zs.name+") {"),e.incIndent();var n=[$s.set(Zs.prop("stack",null)).toDeclStmt(null,[Ho.Final])].concat(t.catchStmts);return this.visitAllStatements(n,e),e.decIndent(),e.println(t,"}"),null},e.prototype.visitBuiltinType=function(t,e){var n;switch(t.name){case Eo.Bool:n="boolean";break;case Eo.Dynamic:n="any";break;case Eo.Function:n="Function";break;case Eo.Number:case Eo.Int:n="number";break;case Eo.String:n="string";break;case Eo.None:n="never";break;default:throw new Error("Unsupported builtin type "+t.name)}return e.print(null,n),null},e.prototype.visitExpressionType=function(t,e){var n=this;return t.value.visitExpression(this,e),null!==t.typeParams&&(e.print(null,"<"),this.visitAllObjects(function(t){return n.visitType(t,e)},t.typeParams,e,","),e.print(null,">")),null},e.prototype.visitArrayType=function(t,e){return this.visitType(t.of,e),e.print(null,"[]"),null},e.prototype.visitMapType=function(t,e){return e.print(null,"{[key: string]:"),this.visitType(t.valueType,e),e.print(null,"}"),null},e.prototype.getBuiltinMethodName=function(t){var e;switch(t){case Ro.ConcatArray:e="concat";break;case Ro.SubscribeObservable:e="subscribe";break;case Ro.Bind:e="bind";break;default:throw new Error("Unknown builtin method: "+t)}return e},e.prototype._visitParams=function(t,e){var n=this;this.visitAllObjects(function(t){e.print(null,t.name),n._printColonType(t.type,e)},t,e,",")},e.prototype._visitIdentifier=function(t,e,n){var r=this,i=t.name,o=t.moduleName;if(this.referenceFilter&&this.referenceFilter(t))n.print(null,"(null as any)");else{if(o&&(!this.importFilter||!this.importFilter(t))){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&&(e||[]).length>0&&(n.print(null,"<"),this.visitAllObjects(function(t){return t.visitType(r,n)},e,n,","),n.print(null,">"))}},e.prototype._printColonType=function(t,e,n){t!==Ao&&(e.print(null,":"),this.visitType(t,e,n))}}(ta);var ra,ia=function(){function t(t){this._reflector=t}return t.prototype.isPipe=function(t){var e=this._reflector.annotations(gt(t));return e&&e.some(K.isTypeOf)},t.prototype.resolve=function(t,e){void 0===e&&(e=!0);var n=this._reflector.annotations(gt(t));if(n){var r=qe(n,K.isTypeOf);if(r)return r}if(e)throw new Error("No Pipe decorator found on "+mt(t));return null},t}();
267
267
  /**
268
268
  * @license
269
269
  * Copyright Google Inc. All Rights Reserved.
270
270
  *
271
271
  * Use of this source code is governed by an MIT-style license that can be
272
272
  * found in the LICENSE file at https://angular.io/license
273
- */function na(t,e){var n,r;try{for(var i=u(e),o=i.next();!o.done;o=i.next())ea[o.value.toLowerCase()]=t}catch(t){n={error:t}}finally{try{o&&!o.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}}na(L.HTML,["iframe|srcdoc","*|innerHTML","*|outerHTML"]),na(L.STYLE,["*|style"]),na(L.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"]),na(L.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"]);
273
+ */function oa(){return ra||(ra={},sa(H.HTML,["iframe|srcdoc","*|innerHTML","*|outerHTML"]),sa(H.STYLE,["*|style"]),sa(H.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"]),sa(H.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"])),ra}function sa(t,e){var n,r;try{for(var i=p(e),o=i.next();!o.done;o=i.next())ra[o.value.toLowerCase()]=t}catch(t){n={error:t}}finally{try{o&&!o.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}}
274
274
  /**
275
275
  * @license
276
276
  * Copyright Google Inc. All Rights Reserved.
277
277
  *
278
278
  * Use of this source code is governed by an MIT-style license that can be
279
279
  * found in the LICENSE file at https://angular.io/license
280
- */
281
- var ra="boolean",ia="number",oa="string",sa="object",aa=["[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:|"],ua={class:"className",for:"htmlFor",formaction:"formAction",innerHtml:"innerHTML",readonly:"readOnly",tabindex:"tabIndex"},ca=function(t){function e(){var e=t.call(this)||this;return e._schema={},aa.forEach(function(t){var n={},r=c(t.split("|"),2),i=r[0],o=r[1].split(","),s=c(i.split("^"),2),a=s[1];s[0].split(",").forEach(function(t){return e._schema[t.toLowerCase()]=n});var u=a&&e._schema[a.toLowerCase()];u&&Object.keys(u).forEach(function(t){n[t]=u[t]}),o.forEach(function(t){if(t.length>0)switch(t[0]){case"*":break;case"!":n[t.substring(1)]=ra;break;case"#":n[t.substring(1)]=ia;break;case"%":n[t.substring(1)]=sa;break;default:n[t]=oa}})}),e}return o(e,t),e.prototype.hasProperty=function(t,e,n){if(n.some(function(t){return"no-errors-schema"===t.name}))return!0;if(t.indexOf("-")>-1){if(h(t)||f(t))return!1;if(n.some(function(t){return"custom-elements"===t.name}))return!0}return!!(this._schema[t.toLowerCase()]||this._schema.unknown)[e]},e.prototype.hasElement=function(t,e){if(e.some(function(t){return"no-errors-schema"===t.name}))return!0;if(t.indexOf("-")>-1){if(h(t)||f(t))return!0;if(e.some(function(t){return"custom-elements"===t.name}))return!0}return!!this._schema[t.toLowerCase()]},e.prototype.securityContext=function(t,e,n){n&&(e=this.getMappedPropName(e)),t=t.toLowerCase(),e=e.toLowerCase();var r=ea[t+"|"+e];return r||(r=ea["*|"+e])||L.NONE},e.prototype.getMappedPropName=function(t){return ua[t]||t},e.prototype.getDefaultComponentElementName=function(){return"ng-component"},e.prototype.validateProperty=function(t){return t.toLowerCase().startsWith("on")?{error:!0,msg:"Binding to event property '"+t+"' is disallowed for security reasons, please use ("+t.slice(2)+")=...\nIf '"+t+"' is a directive input, make sure the directive is imported by the current module."}:{error:!1}},e.prototype.validateAttribute=function(t){return t.toLowerCase().startsWith("on")?{error:!0,msg:"Binding to event attribute '"+t+"' is disallowed for security reasons, please use ("+t.slice(2)+")=..."}:{error:!1}},e.prototype.allKnownElementNames=function(){return Object.keys(this._schema)},e.prototype.normalizeAnimationStyleProperty=function(t){return function e(t){return t.replace(J,function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return t[1].toUpperCase()})}(t)},e.prototype.normalizeAnimationStyleValue=function(t,e,n){var r="",i=n.toString().trim(),o=null;if(function s(t){switch(t){case"width":case"height":case"minWidth":case"minHeight":case"maxWidth":case"maxHeight":case"left":case"top":case"bottom":case"right":case"fontSize":case"outlineWidth":case"outlineOffset":case"paddingTop":case"paddingLeft":case"paddingBottom":case"paddingRight":case"marginTop":case"marginLeft":case"marginBottom":case"marginRight":case"borderRadius":case"borderWidth":case"borderTopWidth":case"borderLeftWidth":case"borderRightWidth":case"borderBottomWidth":case"textIndent":return!0;default:return!1}}
280
+ */var aa="boolean",ua="number",ca="string",la="object",pa=["[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:|"],ha={class:"className",for:"htmlFor",formaction:"formAction",innerHtml:"innerHTML",readonly:"readOnly",tabindex:"tabIndex"},fa=function(t){function e(){var e=t.call(this)||this;return e._schema={},pa.forEach(function(t){var n={},r=h(t.split("|"),2),i=r[0],o=r[1].split(","),s=h(i.split("^"),2),a=s[1];s[0].split(",").forEach(function(t){return e._schema[t.toLowerCase()]=n});var u=a&&e._schema[a.toLowerCase()];u&&Object.keys(u).forEach(function(t){n[t]=u[t]}),o.forEach(function(t){if(t.length>0)switch(t[0]){case"*":break;case"!":n[t.substring(1)]=aa;break;case"#":n[t.substring(1)]=ua;break;case"%":n[t.substring(1)]=la;break;default:n[t]=ca}})}),e}return o(e,t),e.prototype.hasProperty=function(t,e,n){if(n.some(function(t){return"no-errors-schema"===t.name}))return!0;if(t.indexOf("-")>-1){if(v(t)||y(t))return!1;if(n.some(function(t){return"custom-elements"===t.name}))return!0}return!!(this._schema[t.toLowerCase()]||this._schema.unknown)[e]},e.prototype.hasElement=function(t,e){if(e.some(function(t){return"no-errors-schema"===t.name}))return!0;if(t.indexOf("-")>-1){if(v(t)||y(t))return!0;if(e.some(function(t){return"custom-elements"===t.name}))return!0}return!!this._schema[t.toLowerCase()]},e.prototype.securityContext=function(t,e,n){n&&(e=this.getMappedPropName(e)),t=t.toLowerCase(),e=e.toLowerCase();var r=oa()[t+"|"+e];return r||(r=oa()["*|"+e])||H.NONE},e.prototype.getMappedPropName=function(t){return ha[t]||t},e.prototype.getDefaultComponentElementName=function(){return"ng-component"},e.prototype.validateProperty=function(t){return t.toLowerCase().startsWith("on")?{error:!0,msg:"Binding to event property '"+t+"' is disallowed for security reasons, please use ("+t.slice(2)+")=...\nIf '"+t+"' is a directive input, make sure the directive is imported by the current module."}:{error:!1}},e.prototype.validateAttribute=function(t){return t.toLowerCase().startsWith("on")?{error:!0,msg:"Binding to event attribute '"+t+"' is disallowed for security reasons, please use ("+t.slice(2)+")=..."}:{error:!1}},e.prototype.allKnownElementNames=function(){return Object.keys(this._schema)},e.prototype.normalizeAnimationStyleProperty=function(t){return function e(t){return t.replace(nt,function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return t[1].toUpperCase()})}(t)},e.prototype.normalizeAnimationStyleValue=function(t,e,n){var r="",i=n.toString().trim(),o=null;if(function s(t){switch(t){case"width":case"height":case"minWidth":case"minHeight":case"maxWidth":case"maxHeight":case"left":case"top":case"bottom":case"right":case"fontSize":case"outlineWidth":case"outlineOffset":case"paddingTop":case"paddingLeft":case"paddingBottom":case"paddingRight":case"marginTop":case"marginLeft":case"marginBottom":case"marginRight":case"borderRadius":case"borderWidth":case"borderTopWidth":case"borderLeftWidth":case"borderRightWidth":case"borderBottomWidth":case"textIndent":return!0;default:return!1}}
282
281
  /**
283
282
  * @license
284
283
  * Copyright Google Inc. All Rights Reserved.
@@ -299,49 +298,49 @@ var ra="boolean",ia="number",oa="string",sa="object",aa=["[Element]|textContent,
299
298
  *
300
299
  * Use of this source code is governed by an MIT-style license that can be
301
300
  * found in the LICENSE file at https://angular.io/license
302
- */(t)&&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 "+e+":"+n)}return{error:o,value:i+r}},e}(function la(){}),pa=new Set(["pre","template","textarea","script","style"]),ha=" \f\n\r\t\v ᠎ - \u2028\u2029   \ufeff",fa=new RegExp("[^"+ha+"]"),da=new RegExp("["+ha+"]{2,}","g");
301
+ */(t)&&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 "+e+":"+n)}return{error:o,value:i+r}},e}(function da(){}),va=new Set(["pre","template","textarea","script","style"]),ya=" \f\n\r\t\v ᠎ - \u2028\u2029   \ufeff",ma=new RegExp("[^"+ya+"]"),ga=new RegExp("["+ya+"]{2,}","g");
303
302
  /**
304
303
  * @license
305
304
  * Copyright Google Inc. All Rights Reserved.
306
305
  *
307
306
  * Use of this source code is governed by an MIT-style license that can be
308
307
  * found in the LICENSE file at https://angular.io/license
309
- */function va(t){return t.replace(new RegExp(m,"g")," ")}var ya=function(){function t(){}return t.prototype.visitElement=function(t,e){return pa.has(t.name)||function n(t){return t.some(function(t){return"ngPreserveWhitespaces"===t.name})}(t.attrs)?new ae(t.name,ce(this,t.attrs),t.children,t.sourceSpan,t.startSourceSpan,t.endSourceSpan):new ae(t.name,t.attrs,ce(this,t.children),t.sourceSpan,t.startSourceSpan,t.endSourceSpan)},t.prototype.visitAttribute=function(t,e){return"ngPreserveWhitespaces"!==t.name?t:null},t.prototype.visitText=function(t,e){return t.value.match(fa)?new re(va(t.value).replace(da," "),t.sourceSpan):null},t.prototype.visitComment=function(t,e){return t},t.prototype.visitExpansion=function(t,e){return t},t.prototype.visitExpansionCase=function(t,e){return t},t}(),ma=["zero","one","two","few","many","other"];function ga(t){var e=new wa;return new _a(ce(e,t),e.isExpanded,e.errors)}var _a=function _a(t,e,n){this.nodes=t,this.expanded=e,this.errors=n},ba=function(t){function e(e,n){return t.call(this,e,n)||this}return o(e,t),e}(Tr),wa=function(){function t(){this.isExpanded=!1,this.errors=[]}return t.prototype.visitElement=function(t,e){return new ae(t.name,t.attrs,ce(this,t.children),t.sourceSpan,t.startSourceSpan,t.endSourceSpan)},t.prototype.visitAttribute=function(t,e){return t},t.prototype.visitText=function(t,e){return t},t.prototype.visitComment=function(t,e){return t},t.prototype.visitExpansion=function(t,e){return this.isExpanded=!0,"plural"==t.type?function n(t,e){var n=t.cases.map(function(t){-1!=ma.indexOf(t.value)||t.value.match(/^=\d+$/)||e.push(new ba(t.valueSourceSpan,'Plural cases should be "=<number>" or one of '+ma.join(", ")));var n=ga(t.expression);return e.push.apply(e,l(n.errors)),new ae("ng-template",[new se("ngPluralCase",""+t.value,t.valueSourceSpan)],n.nodes,t.sourceSpan,t.sourceSpan,t.sourceSpan)}),r=new se("[ngPlural]",t.switchValue,t.switchValueSourceSpan);return new ae("ng-container",[r],n,t.sourceSpan,t.sourceSpan,t.sourceSpan)}(t,this.errors):function r(t,e){var n=t.cases.map(function(t){var n=ga(t.expression);return e.push.apply(e,l(n.errors)),new ae("ng-template","other"===t.value?[new se("ngSwitchDefault","",t.valueSourceSpan)]:[new se("ngSwitchCase",""+t.value,t.valueSourceSpan)],n.nodes,t.sourceSpan,t.sourceSpan,t.sourceSpan)}),r=new se("[ngSwitch]",t.switchValue,t.switchValueSourceSpan);return new ae("ng-container",[r],n,t.sourceSpan,t.sourceSpan,t.sourceSpan)}
308
+ */function _a(t){return t.replace(new RegExp(b,"g")," ")}var ba=function(){function t(){}return t.prototype.visitElement=function(t,e){return va.has(t.name)||function n(t){return t.some(function(t){return"ngPreserveWhitespaces"===t.name})}(t.attrs)?new le(t.name,he(this,t.attrs),t.children,t.sourceSpan,t.startSourceSpan,t.endSourceSpan):new le(t.name,t.attrs,he(this,t.children),t.sourceSpan,t.startSourceSpan,t.endSourceSpan)},t.prototype.visitAttribute=function(t,e){return"ngPreserveWhitespaces"!==t.name?t:null},t.prototype.visitText=function(t,e){return t.value.match(ma)?new se(_a(t.value).replace(ga," "),t.sourceSpan):null},t.prototype.visitComment=function(t,e){return t},t.prototype.visitExpansion=function(t,e){return t},t.prototype.visitExpansionCase=function(t,e){return t},t}(),wa=["zero","one","two","few","many","other"];function xa(t){var e=new Ca;return new Ea(he(e,t),e.isExpanded,e.errors)}var Ea=function Ea(t,e,n){this.nodes=t,this.expanded=e,this.errors=n},Sa=function(t){function e(e,n){return t.call(this,e,n)||this}return o(e,t),e}(Nr),Ca=function(){function t(){this.isExpanded=!1,this.errors=[]}return t.prototype.visitElement=function(t,e){return new le(t.name,t.attrs,he(this,t.children),t.sourceSpan,t.startSourceSpan,t.endSourceSpan)},t.prototype.visitAttribute=function(t,e){return t},t.prototype.visitText=function(t,e){return t},t.prototype.visitComment=function(t,e){return t},t.prototype.visitExpansion=function(t,e){return this.isExpanded=!0,"plural"==t.type?function n(t,e){var n=t.cases.map(function(t){-1!=wa.indexOf(t.value)||t.value.match(/^=\d+$/)||e.push(new Sa(t.valueSourceSpan,'Plural cases should be "=<number>" or one of '+wa.join(", ")));var n=xa(t.expression);return e.push.apply(e,f(n.errors)),new le("ng-template",[new ce("ngPluralCase",""+t.value,t.valueSourceSpan)],n.nodes,t.sourceSpan,t.sourceSpan,t.sourceSpan)}),r=new ce("[ngPlural]",t.switchValue,t.switchValueSourceSpan);return new le("ng-container",[r],n,t.sourceSpan,t.sourceSpan,t.sourceSpan)}(t,this.errors):function r(t,e){var n=t.cases.map(function(t){var n=xa(t.expression);return e.push.apply(e,f(n.errors)),new le("ng-template","other"===t.value?[new ce("ngSwitchDefault","",t.valueSourceSpan)]:[new ce("ngSwitchCase",""+t.value,t.valueSourceSpan)],n.nodes,t.sourceSpan,t.sourceSpan,t.sourceSpan)}),r=new ce("[ngSwitch]",t.switchValue,t.switchValueSourceSpan);return new le("ng-container",[r],n,t.sourceSpan,t.sourceSpan,t.sourceSpan)}
310
309
  /**
311
310
  * @license
312
311
  * Copyright Google Inc. All Rights Reserved.
313
312
  *
314
313
  * Use of this source code is governed by an MIT-style license that can be
315
314
  * found in the LICENSE file at https://angular.io/license
316
- */(t,this.errors)},t.prototype.visitExpansionCase=function(t,e){throw new Error("Should not be reached")},t}(),xa=function(){function t(t,e,n,r,i){if(this._exprParser=t,this._interpolationConfig=e,this._schemaRegistry=n,this.errors=i,this.pipesByName=null,this._usedPipes=new Map,r){var o=new Map;r.forEach(function(t){return o.set(t.name,t)}),this.pipesByName=o}}return t.prototype.getUsedPipes=function(){return Array.from(this._usedPipes.values())},t.prototype.createBoundHostProperties=function(t,e){var n=this;if(t.hostProperties){var r=[];return Object.keys(t.hostProperties).forEach(function(i){var o=t.hostProperties[i];"string"==typeof o?n.parsePropertyBinding(i,o,!0,e,[],r):n._reportError('Value of the host property binding "'+i+'" needs to be a string representing an expression but got "'+o+'" ('+typeof o+")",e)}),r}return null},t.prototype.createDirectiveHostPropertyAsts=function(t,e,n){var r=this,i=this.createBoundHostProperties(t,n);return i&&i.map(function(t){return r.createBoundElementProperty(e,t)})},t.prototype.createDirectiveHostEventAsts=function(t,e){var n=this;if(t.hostListeners){var r=[];return Object.keys(t.hostListeners).forEach(function(i){var o=t.hostListeners[i];"string"==typeof o?n.parseEvent(i,o,e,[],r):n._reportError('Value of the host listener "'+i+'" needs to be a string representing an expression but got "'+o+'" ('+typeof o+")",e)}),r}return null},t.prototype.parseInterpolation=function(t,e){var n=e.start.toString();try{var r=this._exprParser.parseInterpolation(t,n,this._interpolationConfig);return r&&this._reportExpressionParserErrors(r.errors,e),this._checkPipes(r,e),r}catch(t){return this._reportError(""+t,e),this._exprParser.wrapLiteralPrimitive("ERROR",n)}},t.prototype.parseInlineTemplateBinding=function(t,e,n,r,i,o){for(var s=this._parseTemplateBindings(t,e,n),a=0;a<s.length;a++){var u=s[a];u.keyIsVar?o.push(new fr(u.key,u.name,n)):u.expression?this._parsePropertyAst(u.key,u.expression,n,r,i):(r.push([u.key,""]),this.parseLiteralAttr(u.key,null,n,r,i))}},t.prototype._parseTemplateBindings=function(t,e,n){var r=this,i=n.start.toString();try{var o=this._exprParser.parseTemplateBindings(t,e,i);return this._reportExpressionParserErrors(o.errors,n),o.templateBindings.forEach(function(t){t.expression&&r._checkPipes(t.expression,n)}),o.warnings.forEach(function(t){r._reportError(t,n,gr.WARNING)}),o.templateBindings}catch(t){return this._reportError(""+t,n),[]}},t.prototype.parseLiteralAttr=function(t,e,n,r,i){Sa(t)?(t=t.substring(1),e&&this._reportError('Assigning animation triggers via @prop="exp" attributes with an expression is invalid. Use property bindings (e.g. [@prop]="exp") or use an attribute without a value (e.g. @prop) instead.',n,gr.ERROR),this._parseAnimation(t,e,n,r,i)):i.push(new pr(t,this._exprParser.wrapLiteralPrimitive(e,""),lr.LITERAL_ATTR,n))},t.prototype.parsePropertyBinding=function(t,e,n,r,i,o){var s=!1;t.startsWith("animate-")?(s=!0,t=t.substring("animate-".length)):Sa(t)&&(s=!0,t=t.substring(1)),s?this._parseAnimation(t,e,r,i,o):this._parsePropertyAst(t,this._parseBinding(e,n,r),r,i,o)},t.prototype.parsePropertyInterpolation=function(t,e,n,r,i){var o=this.parseInterpolation(e,n);return!!o&&(this._parsePropertyAst(t,o,n,r,i),!0)},t.prototype._parsePropertyAst=function(t,e,n,r,i){r.push([t,e.source]),i.push(new pr(t,e,lr.DEFAULT,n))},t.prototype._parseAnimation=function(t,e,n,r,i){var o=this._parseBinding(e||"undefined",!1,n);r.push([t,o.source]),i.push(new pr(t,o,lr.ANIMATION,n))},t.prototype._parseBinding=function(t,e,n){var r=(n&&n.start||"(unknown)").toString();try{var i=e?this._exprParser.parseSimpleBinding(t,r,this._interpolationConfig):this._exprParser.parseBinding(t,r,this._interpolationConfig);return i&&this._reportExpressionParserErrors(i.errors,n),this._checkPipes(i,n),i}catch(t){return this._reportError(""+t,n),this._exprParser.wrapLiteralPrimitive("ERROR",r)}},t.prototype.createBoundElementProperty=function(t,e){if(e.isAnimation)return new dr(e.name,4,L.NONE,e.expression,null,e.sourceSpan);var n=null,r=void 0,i=null,o=e.name.split("."),s=void 0;if(o.length>1)if("attr"==o[0]){this._validatePropertyOrAttributeName(i=o[1],e.sourceSpan,!0),s=Ca(this._schemaRegistry,t,i,!0);var a=i.indexOf(":");a>-1&&(i=v(i.substring(0,a),i.substring(a+1))),r=1}else"class"==o[0]?(i=o[1],r=2,s=[L.NONE]):"style"==o[0]&&(n=o.length>2?o[2]:null,i=o[1],r=3,s=[L.STYLE]);return null===i&&(i=this._schemaRegistry.getMappedPropName(e.name),s=Ca(this._schemaRegistry,t,i,!1),r=0,this._validatePropertyOrAttributeName(i,e.sourceSpan,!1)),new dr(i,r,s[0],e.expression,n,e.sourceSpan)},t.prototype.parseEvent=function(t,e,n,r,i){Sa(t)?(t=t.substr(1),this._parseAnimationEvent(t,e,n,i)):this._parseRegularEvent(t,e,n,r,i)},t.prototype._parseAnimationEvent=function(t,e,n,r){var i=function o(t,e){return et(t,".",e)}(t,[t,""]),s=i[0],a=i[1].toLowerCase();if(a)switch(a){case"start":case"done":var u=this._parseAction(e,n);r.push(new hr(s,a,1,u,n));break;default:this._reportError('The provided animation output phase value "'+a+'" for "@'+s+'" is not supported (use start or done)',n)}else this._reportError("The animation trigger output event (@"+s+") is missing its phase value name (start or done are currently supported)",n)},t.prototype._parseRegularEvent=function(t,e,n,r,i){var o=c(tt(t,[null,t]),2),s=o[0],a=o[1],u=this._parseAction(e,n);r.push([t,u.source]),i.push(new hr(a,s,0,u,n))},t.prototype._parseAction=function(t,e){var n=(e&&e.start||"(unknown").toString();try{var r=this._exprParser.parseAction(t,n,this._interpolationConfig);return r&&this._reportExpressionParserErrors(r.errors,e),!r||r.ast instanceof Ln?(this._reportError("Empty expressions are not allowed",e),this._exprParser.wrapLiteralPrimitive("ERROR",n)):(this._checkPipes(r,e),r)}catch(t){return this._reportError(""+t,e),this._exprParser.wrapLiteralPrimitive("ERROR",n)}},t.prototype._reportError=function(t,e,n){void 0===n&&(n=gr.ERROR),this.errors.push(new Tr(e,t,n))},t.prototype._reportExpressionParserErrors=function(t,e){var n,r;try{for(var i=u(t),o=i.next();!o.done;o=i.next())this._reportError(o.value.message,e)}catch(t){n={error:t}}finally{try{o&&!o.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}},t.prototype._checkPipes=function(t,e){var n=this;if(t&&this.pipesByName){var r=new Ea;t.visit(r),r.pipes.forEach(function(t,r){var i=n.pipesByName.get(r);i?n._usedPipes.set(r,i):n._reportError("The pipe '"+r+"' could not be found",new Sr(e.start.moveBy(t.span.start),e.start.moveBy(t.span.end)))})}},t.prototype._validatePropertyOrAttributeName=function(t,e,n){var r=n?this._schemaRegistry.validateAttribute(t):this._schemaRegistry.validateProperty(t);r.error&&this._reportError(r.msg,e,gr.ERROR)},t}(),Ea=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.pipes=new Map,e}return o(e,t),e.prototype.visitPipe=function(t,e){return this.pipes.set(t.name,t),t.exp.visit(this),this.visitAll(t.args,e),null},e}(sr);function Sa(t){return"@"==t[0]}function Ca(t,e,n,r){var i=[];return C.parse(e).forEach(function(e){var o=e.element?[e.element]:t.allKnownElementNames(),s=new Set(e.notSelectors.filter(function(t){return t.isElementSelector()}).map(function(t){return t.element})),a=o.filter(function(t){return!s.has(t)});i.push.apply(i,l(a.map(function(e){return t.securityContext(e,n,r)})))}),0===i.length?[L.NONE]:Array.from(new Set(i)).sort()}
315
+ */(t,this.errors)},t.prototype.visitExpansionCase=function(t,e){throw new Error("Should not be reached")},t}(),Ta=function(){function t(t,e,n,r,i){if(this._exprParser=t,this._interpolationConfig=e,this._schemaRegistry=n,this.errors=i,this.pipesByName=null,this._usedPipes=new Map,r){var o=new Map;r.forEach(function(t){return o.set(t.name,t)}),this.pipesByName=o}}return t.prototype.getUsedPipes=function(){return Array.from(this._usedPipes.values())},t.prototype.createBoundHostProperties=function(t,e){var n=this;if(t.hostProperties){var r=[];return Object.keys(t.hostProperties).forEach(function(i){var o=t.hostProperties[i];"string"==typeof o?n.parsePropertyBinding(i,o,!0,e,[],r):n._reportError('Value of the host property binding "'+i+'" needs to be a string representing an expression but got "'+o+'" ('+typeof o+")",e)}),r}return null},t.prototype.createDirectiveHostPropertyAsts=function(t,e,n){var r=this,i=this.createBoundHostProperties(t,n);return i&&i.map(function(t){return r.createBoundElementProperty(e,t)})},t.prototype.createDirectiveHostEventAsts=function(t,e){var n=this;if(t.hostListeners){var r=[];return Object.keys(t.hostListeners).forEach(function(i){var o=t.hostListeners[i];"string"==typeof o?n.parseEvent(i,o,e,[],r):n._reportError('Value of the host listener "'+i+'" needs to be a string representing an expression but got "'+o+'" ('+typeof o+")",e)}),r}return null},t.prototype.parseInterpolation=function(t,e){var n=e.start.toString();try{var r=this._exprParser.parseInterpolation(t,n,this._interpolationConfig);return r&&this._reportExpressionParserErrors(r.errors,e),this._checkPipes(r,e),r}catch(t){return this._reportError(""+t,e),this._exprParser.wrapLiteralPrimitive("ERROR",n)}},t.prototype.parseInlineTemplateBinding=function(t,e,n,r,i,o){for(var s=this._parseTemplateBindings(t,e,n),a=0;a<s.length;a++){var u=s[a];u.keyIsVar?o.push(new yr(u.key,u.name,n)):u.expression?this._parsePropertyAst(u.key,u.expression,n,r,i):(r.push([u.key,""]),this.parseLiteralAttr(u.key,null,n,r,i))}},t.prototype._parseTemplateBindings=function(t,e,n){var r=this,i=n.start.toString();try{var o=this._exprParser.parseTemplateBindings(t,e,i);return this._reportExpressionParserErrors(o.errors,n),o.templateBindings.forEach(function(t){t.expression&&r._checkPipes(t.expression,n)}),o.warnings.forEach(function(t){r._reportError(t,n,wr.WARNING)}),o.templateBindings}catch(t){return this._reportError(""+t,n),[]}},t.prototype.parseLiteralAttr=function(t,e,n,r,i){Aa(t)?(t=t.substring(1),e&&this._reportError('Assigning animation triggers via @prop="exp" attributes with an expression is invalid. Use property bindings (e.g. [@prop]="exp") or use an attribute without a value (e.g. @prop) instead.',n,wr.ERROR),this._parseAnimation(t,e,n,r,i)):i.push(new dr(t,this._exprParser.wrapLiteralPrimitive(e,""),fr.LITERAL_ATTR,n))},t.prototype.parsePropertyBinding=function(t,e,n,r,i,o){var s=!1;t.startsWith("animate-")?(s=!0,t=t.substring("animate-".length)):Aa(t)&&(s=!0,t=t.substring(1)),s?this._parseAnimation(t,e,r,i,o):this._parsePropertyAst(t,this._parseBinding(e,n,r),r,i,o)},t.prototype.parsePropertyInterpolation=function(t,e,n,r,i){var o=this.parseInterpolation(e,n);return!!o&&(this._parsePropertyAst(t,o,n,r,i),!0)},t.prototype._parsePropertyAst=function(t,e,n,r,i){r.push([t,e.source]),i.push(new dr(t,e,fr.DEFAULT,n))},t.prototype._parseAnimation=function(t,e,n,r,i){var o=this._parseBinding(e||"undefined",!1,n);r.push([t,o.source]),i.push(new dr(t,o,fr.ANIMATION,n))},t.prototype._parseBinding=function(t,e,n){var r=(n&&n.start||"(unknown)").toString();try{var i=e?this._exprParser.parseSimpleBinding(t,r,this._interpolationConfig):this._exprParser.parseBinding(t,r,this._interpolationConfig);return i&&this._reportExpressionParserErrors(i.errors,n),this._checkPipes(i,n),i}catch(t){return this._reportError(""+t,n),this._exprParser.wrapLiteralPrimitive("ERROR",r)}},t.prototype.createBoundElementProperty=function(t,e){if(e.isAnimation)return new mr(e.name,4,H.NONE,e.expression,null,e.sourceSpan);var n=null,r=void 0,i=null,o=e.name.split("."),s=void 0;if(o.length>1)if("attr"==o[0]){this._validatePropertyOrAttributeName(i=o[1],e.sourceSpan,!0),s=Na(this._schemaRegistry,t,i,!0);var a=i.indexOf(":");a>-1&&(i=g(i.substring(0,a),i.substring(a+1))),r=1}else"class"==o[0]?(i=o[1],r=2,s=[H.NONE]):"style"==o[0]&&(n=o.length>2?o[2]:null,i=o[1],r=3,s=[H.STYLE]);return null===i&&(i=this._schemaRegistry.getMappedPropName(e.name),s=Na(this._schemaRegistry,t,i,!1),r=0,this._validatePropertyOrAttributeName(i,e.sourceSpan,!1)),new mr(i,r,s[0],e.expression,n,e.sourceSpan)},t.prototype.parseEvent=function(t,e,n,r,i){Aa(t)?(t=t.substr(1),this._parseAnimationEvent(t,e,n,i)):this._parseRegularEvent(t,e,n,r,i)},t.prototype._parseAnimationEvent=function(t,e,n,r){var i=function o(t,e){return it(t,".",e)}(t,[t,""]),s=i[0],a=i[1].toLowerCase();if(a)switch(a){case"start":case"done":var u=this._parseAction(e,n);r.push(new vr(s,a,1,u,n));break;default:this._reportError('The provided animation output phase value "'+a+'" for "@'+s+'" is not supported (use start or done)',n)}else this._reportError("The animation trigger output event (@"+s+") is missing its phase value name (start or done are currently supported)",n)},t.prototype._parseRegularEvent=function(t,e,n,r,i){var o=h(rt(t,[null,t]),2),s=o[0],a=o[1],u=this._parseAction(e,n);r.push([t,u.source]),i.push(new vr(a,s,0,u,n))},t.prototype._parseAction=function(t,e){var n=(e&&e.start||"(unknown").toString();try{var r=this._exprParser.parseAction(t,n,this._interpolationConfig);return r&&this._reportExpressionParserErrors(r.errors,e),!r||r.ast instanceof Hn?(this._reportError("Empty expressions are not allowed",e),this._exprParser.wrapLiteralPrimitive("ERROR",n)):(this._checkPipes(r,e),r)}catch(t){return this._reportError(""+t,e),this._exprParser.wrapLiteralPrimitive("ERROR",n)}},t.prototype._reportError=function(t,e,n){void 0===n&&(n=wr.ERROR),this.errors.push(new Nr(e,t,n))},t.prototype._reportExpressionParserErrors=function(t,e){var n,r;try{for(var i=p(t),o=i.next();!o.done;o=i.next())this._reportError(o.value.message,e)}catch(t){n={error:t}}finally{try{o&&!o.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}},t.prototype._checkPipes=function(t,e){var n=this;if(t&&this.pipesByName){var r=new Pa;t.visit(r),r.pipes.forEach(function(t,r){var i=n.pipesByName.get(r);i?n._usedPipes.set(r,i):n._reportError("The pipe '"+r+"' could not be found",new Pr(e.start.moveBy(t.span.start),e.start.moveBy(t.span.end)))})}},t.prototype._validatePropertyOrAttributeName=function(t,e,n){var r=n?this._schemaRegistry.validateAttribute(t):this._schemaRegistry.validateProperty(t);r.error&&this._reportError(r.msg,e,wr.ERROR)},t}(),Pa=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.pipes=new Map,e}return o(e,t),e.prototype.visitPipe=function(t,e){return this.pipes.set(t.name,t),t.exp.visit(this),this.visitAll(t.args,e),null},e}(cr);function Aa(t){return"@"==t[0]}function Na(t,e,n,r){var i=[];return A.parse(e).forEach(function(e){var o=e.element?[e.element]:t.allKnownElementNames(),s=new Set(e.notSelectors.filter(function(t){return t.isElementSelector()}).map(function(t){return t.element})),a=o.filter(function(t){return!s.has(t)});i.push.apply(i,f(a.map(function(e){return t.securityContext(e,n,r)})))}),0===i.length?[H.NONE]:Array.from(new Set(i)).sort()}
317
316
  /**
318
317
  * @license
319
318
  * Copyright Google Inc. All Rights Reserved.
320
319
  *
321
320
  * Use of this source code is governed by an MIT-style license that can be
322
321
  * found in the LICENSE file at https://angular.io/license
323
- */var Ta=/^(?:(?:(?:(bind-)|(let-)|(ref-|#)|(on-)|(bindon-)|(@))(.+))|\[\(([^\)]+)\)\]|\[([^\]]+)\]|\(([^\)]+)\))$/,Pa="class",Aa=C.parse("*")[0],Na=function(t){function e(e,n,r){return t.call(this,n,e,r)||this}return o(e,t),e}(Tr),ka=function ka(t,e,n){this.templateAst=t,this.usedPipes=e,this.errors=n},Oa=function(){function t(t,e,n,r,i,o,s){this._config=t,this._reflector=e,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,e,n,r,i,o,s){var a=this.tryParse(t,e,n,r,i,o,s),u=a.errors.filter(function(t){return t.level===gr.WARNING}),c=a.errors.filter(function(t){return t.level===gr.ERROR});if(u.length>0&&this._console.warn("Template parse warnings:\n"+u.join("\n")),c.length>0)throw ut("Template parse errors:\n"+c.join("\n"),c);return{template:a.templateAst,pipes:a.usedPipes}},t.prototype.tryParse=function(t,e,n,r,i,o,s){var a="string"==typeof e?this._htmlParser.parse(e,o,!0,this.getInterpolationConfig(t)):e;return s||(a=function u(t){return new qr(ce(new ya,t.rootNodes),t.errors)}
322
+ */var ka,Oa=/^(?:(?:(?:(bind-)|(let-)|(ref-|#)|(on-)|(bindon-)|(@))(.+))|\[\(([^\)]+)\)\]|\[([^\]]+)\]|\(([^\)]+)\))$/,Ma="class";function Ia(){return ka||(ka=A.parse("*")[0]),ka}var Ra=function(t){function e(e,n,r){return t.call(this,n,e,r)||this}return o(e,t),e}(Nr),Da=function Da(t,e,n){this.templateAst=t,this.usedPipes=e,this.errors=n},ja=function(){function t(t,e,n,r,i,o,s){this._config=t,this._reflector=e,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,e,n,r,i,o,s){var a=this.tryParse(t,e,n,r,i,o,s),u=a.errors.filter(function(t){return t.level===wr.WARNING}),c=a.errors.filter(function(t){return t.level===wr.ERROR});if(u.length>0&&this._console.warn("Template parse warnings:\n"+u.join("\n")),c.length>0)throw pt("Template parse errors:\n"+c.join("\n"),c);return{template:a.templateAst,pipes:a.usedPipes}},t.prototype.tryParse=function(t,e,n,r,i,o,s){var a="string"==typeof e?this._htmlParser.parse(e,o,!0,this.getInterpolationConfig(t)):e;return s||(a=function u(t){return new zr(he(new ba,t.rootNodes),t.errors)}
324
323
  /**
325
324
  * @license
326
325
  * Copyright Google Inc. All Rights Reserved.
327
326
  *
328
327
  * Use of this source code is governed by an MIT-style license that can be
329
328
  * found in the LICENSE file at https://angular.io/license
330
- */(a)),this.tryParseHtml(this.expandHtml(a),t,n,r,i)},t.prototype.tryParseHtml=function(t,e,n,r,i){var o,s=t.errors,a=[];if(t.rootNodes.length>0){var u=qa(n),c=qa(r),p=new js(this._reflector,e),h=void 0;e.template&&e.template.interpolation&&(h={start:e.template.interpolation[0],end:e.template.interpolation[1]});var f=new xa(this._exprParser,h,this._schemaRegistry,c,s),d=new Ma(this._reflector,this._config,p,u,f,this._schemaRegistry,i,s);o=ce(d,t.rootNodes,Va),s.push.apply(s,l(p.errors)),a.push.apply(a,l(f.getUsedPipes()))}else o=[];return this._assertNoReferenceDuplicationOnTemplate(o,s),s.length>0?new ka(o,a,s):(this.transforms&&this.transforms.forEach(function(t){o=jt(t,o)}),new ka(o,a,s))},t.prototype.expandHtml=function(t,e){void 0===e&&(e=!1);var n=t.errors;if(0==n.length||e){var r=ga(t.rootNodes);n.push.apply(n,l(r.errors)),t=new qr(r.nodes,n)}return t},t.prototype.getInterpolationConfig=function(t){if(t.template)return ve.fromArray(t.template.interpolation)},t.prototype._assertNoReferenceDuplicationOnTemplate=function(t,e){var n=[];t.filter(function(t){return!!t.references}).forEach(function(t){return t.references.forEach(function(t){var r=t.name;if(n.indexOf(r)<0)n.push(r);else{var i=new Na('Reference "#'+r+'" is defined several times',t.sourceSpan,gr.ERROR);e.push(i)}})})},t}(),Ma=function(){function t(t,e,n,r,i,o,s,a){var u=this;this.reflector=t,this.config=e,this.providerViewContext=n,this._bindingParser=i,this._schemaRegistry=o,this._schemas=s,this._targetErrors=a,this.selectorMatcher=new T,this.directivesIndex=new Map,this.ngContentCount=0,this.contentQueryStartId=n.component.viewQueries.length+1,r.forEach(function(t,e){var n=C.parse(t.selector);u.selectorMatcher.addSelectables(n,t),u.directivesIndex.set(t,e)})}return t.prototype.visitExpansion=function(t,e){return null},t.prototype.visitExpansionCase=function(t,e){return null},t.prototype.visitText=function(t,e){var n=e.findNgContentIndex(Aa),r=va(t.value),i=this._bindingParser.parseInterpolation(r,t.sourceSpan);return i?new wt(i,n,t.sourceSpan):new bt(r,n,t.sourceSpan)},t.prototype.visitAttribute=function(t,e){return new xt(t.name,t.value,t.sourceSpan)},t.prototype.visitComment=function(t,e){return null},t.prototype.visitElement=function(t,e){var n=this,r=this.contentQueryStartId,i=t.name,o=Me(t);if(o.type===_e.SCRIPT||o.type===_e.STYLE)return null;if(o.type===_e.STYLESHEET&&ge(o.hrefAttr))return null;var s=[],a=[],u=[],c=[],h=[],f=[],d=[],v=[],y=!1,m=[],g=function _(t){return"ng-template"===p(t)[1]}(t.name);t.attrs.forEach(function(t){var e,r,i=n._parseAttr(g,t,s,a,h,u,c);c.push.apply(c,l([].map(function(t){return Pt.fromParsedVariable(t)})));var o=n._normalizeAttributeName(t.name);o.startsWith("*")&&(e=t.value,r=o.substring("*".length));var p=null!=e;if(p){y&&n._reportError("Can't have multiple template bindings on one element. Use only one attribute prefixed with *",t.sourceSpan),y=!0;var _=[];n._bindingParser.parseInlineTemplateBinding(r,e,t.sourceSpan,d,f,_),v.push.apply(v,l(_.map(function(t){return Pt.fromParsedVariable(t)})))}i||p||(m.push(n.visitAttribute(t,null)),s.push([t.name,t.value]))});var b=ja(i,s),w=this._parseDirectives(this.selectorMatcher,b),x=w.directives,E=w.matchElement,S=[],T=new Set,P=this._createDirectiveAsts(g,t.name,x,a,u,t.sourceSpan,S,T),A=this._createElementPropertyAsts(t.name,a,T),N=new Ls(this.providerViewContext,e.providerContext,e.isTemplateElement||y,P,m,S,g,r,t.sourceSpan),k=ce(o.nonBindable?Ha:this,t.children,Da.create(g,P,g?e.providerContext:N));N.afterElement();var O,M=""!=o.projectAs?C.parse(o.projectAs)[0]:b,I=e.findNgContentIndex(M);if(o.type===_e.NG_CONTENT)t.children&&!t.children.every(Ba)&&this._reportError("<ng-content> element cannot have content.",t.sourceSpan),O=new It(this.ngContentCount++,y?null:I,t.sourceSpan);else if(g)this._assertAllEventsPublishedByDirectives(P,h),this._assertNoComponentsNorElementBindingsOnTemplate(P,A,t.sourceSpan),O=new Nt(m,h,S,c,N.transformedDirectiveAsts,N.transformProviders,N.transformedHasViewContainer,N.queryMatches,k,y?null:I,t.sourceSpan);else{this._assertElementExists(E,t),this._assertOnlyOneComponent(P,t.sourceSpan);var R=y?null:e.findNgContentIndex(M);O=new At(i,m,A,h,S,N.transformedDirectiveAsts,N.transformProviders,N.transformedHasViewContainer,N.queryMatches,k,y?null:R,t.sourceSpan,t.endSourceSpan||null)}if(y){var D=this.contentQueryStartId,j=ja("ng-template",d),L=this._parseDirectives(this.selectorMatcher,j).directives,F=new Set,V=this._createDirectiveAsts(!0,i,L,f,[],t.sourceSpan,[],F),H=this._createElementPropertyAsts(i,f,F);this._assertNoComponentsNorElementBindingsOnTemplate(V,H,t.sourceSpan);var B=new Ls(this.providerViewContext,e.providerContext,e.isTemplateElement,V,[],[],!0,D,t.sourceSpan);B.afterElement(),O=new Nt([],[],[],v,B.transformedDirectiveAsts,B.transformProviders,B.transformedHasViewContainer,B.queryMatches,[O],I,t.sourceSpan)}return O},t.prototype._parseAttr=function(t,e,n,r,i,o,s){var a=this._normalizeAttributeName(e.name),u=e.value,c=e.sourceSpan,p=[],h=a.match(Ta),f=!1;return null!==h?(f=!0,null!=h[1]?this._bindingParser.parsePropertyBinding(h[7],u,!1,c,n,r):h[2]?t?this._parseVariable(h[7],u,c,s):this._reportError('"let-" is only supported on ng-template elements.',c):h[3]?this._parseReference(h[7],u,c,o):h[4]?this._bindingParser.parseEvent(h[7],u,c,n,p):h[5]?(this._bindingParser.parsePropertyBinding(h[7],u,!1,c,n,r),this._parseAssignmentEvent(h[7],u,c,n,p)):h[6]?this._bindingParser.parseLiteralAttr(a,u,c,n,r):h[8]?(this._bindingParser.parsePropertyBinding(h[8],u,!1,c,n,r),this._parseAssignmentEvent(h[8],u,c,n,p)):h[9]?this._bindingParser.parsePropertyBinding(h[9],u,!1,c,n,r):h[10]&&this._bindingParser.parseEvent(h[10],u,c,n,p)):f=this._bindingParser.parsePropertyInterpolation(a,u,c,n,r),f||this._bindingParser.parseLiteralAttr(a,u,c,n,r),i.push.apply(i,l(p.map(function(t){return Ct.fromParsedEvent(t)}))),f},t.prototype._normalizeAttributeName=function(t){return/^data-/i.test(t)?t.substring(5):t},t.prototype._parseVariable=function(t,e,n,r){t.indexOf("-")>-1&&this._reportError('"-" is not allowed in variable names',n),r.push(new Pt(t,e,n))},t.prototype._parseReference=function(t,e,n,r){t.indexOf("-")>-1&&this._reportError('"-" is not allowed in reference names',n),r.push(new Ra(t,e,n))},t.prototype._parseAssignmentEvent=function(t,e,n,r,i){this._bindingParser.parseEvent(t+"Change",e+"=$event",n,r,i)},t.prototype._parseDirectives=function(t,e){var n=this,r=new Array(this.directivesIndex.size),i=!1;return t.match(e,function(t,e){r[n.directivesIndex.get(e)]=e,i=i||t.hasElementSelector()}),{directives:r.filter(function(t){return!!t}),matchElement:i}},t.prototype._createDirectiveAsts=function(t,e,n,r,i,o,s,a){var u=this,c=new Set,l=null,p=n.map(function(t){var n=new Sr(o.start,o.end,"Directive "+zt(t.type));t.isComponent&&(l=t);var p=[],h=u._bindingParser.createDirectiveHostPropertyAsts(t,e,n).map(function(t){return St.fromBoundProperty(t)});h=u._checkPropertiesInSchema(e,h);var f=u._bindingParser.createDirectiveHostEventAsts(t,n);u._createDirectivePropertyAsts(t.inputs,r,p,a),i.forEach(function(e){(0===e.value.length&&t.isComponent||e.isReferenceToDirective(t))&&(s.push(new Tt(e.name,go(t.type.reference),e.value,e.sourceSpan)),c.add(e.name))});var d=f.map(function(t){return Ct.fromParsedEvent(t)}),v=u.contentQueryStartId;return u.contentQueryStartId+=t.queries.length,new Ot(t,p,h,d,v,n)});return i.forEach(function(e){if(e.value.length>0)c.has(e.name)||u._reportError('There is no directive with "exportAs" set to "'+e.value+'"',e.sourceSpan);else if(!l){var n=null;t&&(n=_o(u.reflector,mo.TemplateRef)),s.push(new Tt(e.name,n,e.value,e.sourceSpan))}}),p},t.prototype._createDirectivePropertyAsts=function(t,e,n,r){if(t){var i=new Map;e.forEach(function(t){var e=i.get(t.name);e&&!e.isLiteral||i.set(t.name,t)}),Object.keys(t).forEach(function(e){var o=i.get(t[e]);o&&(r.add(o.name),Ka(o.expression)||n.push(new kt(e,o.name,o.expression,o.sourceSpan)))})}},t.prototype._createElementPropertyAsts=function(t,e,n){var r=this,i=[];return e.forEach(function(e){if(!e.isLiteral&&!n.has(e.name)){var o=r._bindingParser.createBoundElementProperty(t,e);i.push(St.fromBoundProperty(o))}}),this._checkPropertiesInSchema(t,i)},t.prototype._findComponentDirectives=function(t){return t.filter(function(t){return t.directive.isComponent})},t.prototype._findComponentDirectiveNames=function(t){return this._findComponentDirectives(t).map(function(t){return zt(t.directive.type)})},t.prototype._assertOnlyOneComponent=function(t,e){var n=this._findComponentDirectiveNames(t);n.length>1&&this._reportError("More than one component matched on this element.\nMake sure that only one component's selector can match a given element.\nConflicting components: "+n.join(","),e)},t.prototype._assertElementExists=function(t,e){var n=e.name.replace(/^:xhtml:/,"");if(!t&&!this._schemaRegistry.hasElement(n,this._schemas)){var r="'"+n+"' is not a known element:\n";r+="1. If '"+n+"' is an Angular component, then verify that it is part of this module.\n",n.indexOf("-")>-1?r+="2. If '"+n+"' is a Web Component then add 'CUSTOM_ELEMENTS_SCHEMA' to the '@NgModule.schemas' of this component to suppress this message.":r+="2. To allow any element add 'NO_ERRORS_SCHEMA' to the '@NgModule.schemas' of this component.",this._reportError(r,e.sourceSpan)}},t.prototype._assertNoComponentsNorElementBindingsOnTemplate=function(t,e,n){var r=this,i=this._findComponentDirectiveNames(t);i.length>0&&this._reportError("Components on an embedded template: "+i.join(","),n),e.forEach(function(t){r._reportError("Property binding "+t.name+' not used by any directive on an embedded template. Make sure that the property name is spelled correctly and all directives are listed in the "@NgModule.declarations".',n)})},t.prototype._assertAllEventsPublishedByDirectives=function(t,e){var n=this,r=new Set;t.forEach(function(t){Object.keys(t.directive.outputs).forEach(function(e){r.add(t.directive.outputs[e])})}),e.forEach(function(t){null==t.target&&r.has(t.name)||n._reportError("Event binding "+t.fullName+' not emitted by any directive on an embedded template. Make sure that the event name is spelled correctly and all directives are listed in the "@NgModule.declarations".',t.sourceSpan)})},t.prototype._checkPropertiesInSchema=function(t,e){var n=this;return e.filter(function(e){if(0===e.type&&!n._schemaRegistry.hasProperty(t,e.name,n._schemas)){var r="Can't bind to '"+e.name+"' since it isn't a known property of '"+t+"'.";t.startsWith("ng-")?r+="\n1. If '"+e.name+"' is an Angular directive, then add 'CommonModule' to the '@NgModule.imports' of this component.\n2. To allow any property add 'NO_ERRORS_SCHEMA' to the '@NgModule.schemas' of this component.":t.indexOf("-")>-1&&(r+="\n1. If '"+t+"' is an Angular component and it has '"+e.name+"' input, then verify that it is part of this module.\n2. If '"+t+"' is a Web Component then add 'CUSTOM_ELEMENTS_SCHEMA' to the '@NgModule.schemas' of this component to suppress this message.\n3. To allow any property add 'NO_ERRORS_SCHEMA' to the '@NgModule.schemas' of this component."),n._reportError(r,e.sourceSpan)}return!Ka(e.value)})},t.prototype._reportError=function(t,e,n){void 0===n&&(n=gr.ERROR),this._targetErrors.push(new Tr(e,t,n))},t}(),Ia=function(){function t(){}return t.prototype.visitElement=function(t,e){var n=Me(t);if(n.type===_e.SCRIPT||n.type===_e.STYLE||n.type===_e.STYLESHEET)return null;var r=t.attrs.map(function(t){return[t.name,t.value]}),i=ja(t.name,r),o=e.findNgContentIndex(i),s=ce(this,t.children,Va);return new At(t.name,ce(this,t.attrs),[],[],[],[],[],!1,[],s,o,t.sourceSpan,t.endSourceSpan)},t.prototype.visitComment=function(t,e){return null},t.prototype.visitAttribute=function(t,e){return new xt(t.name,t.value,t.sourceSpan)},t.prototype.visitText=function(t,e){var n=e.findNgContentIndex(Aa);return new bt(t.value,n,t.sourceSpan)},t.prototype.visitExpansion=function(t,e){return t},t.prototype.visitExpansionCase=function(t,e){return t},t}(),Ra=function(){function t(t,e,n){this.name=t,this.value=e,this.sourceSpan=n}return t.prototype.isReferenceToDirective=function(t){return-1!==function e(t){return t?t.split(",").map(function(t){return t.trim()}):[]}(t.exportAs).indexOf(this.value)},t}(),Da=function(){function t(t,e,n,r){this.isTemplateElement=t,this._ngContentIndexMatcher=e,this._wildcardNgContentIndex=n,this.providerContext=r}return t.create=function(e,n,r){var i=new T,o=null,s=n.find(function(t){return t.directive.isComponent});if(s)for(var a=s.directive.template.ngContentSelectors,u=0;u<a.length;u++)"*"===a[u]?o=u:i.addSelectables(C.parse(a[u]),u);return new t(e,i,o,r)},t.prototype.findNgContentIndex=function(t){var e=[];return this._ngContentIndexMatcher.match(t,function(t,n){e.push(n)}),e.sort(),null!=this._wildcardNgContentIndex&&e.push(this._wildcardNgContentIndex),e.length>0?e[0]:null},t}();function ja(t,e){var n=new C,r=p(t)[1];n.setElement(r);for(var i=0;i<e.length;i++){var o=e[i][0],s=p(o)[1],a=e[i][1];n.addAttribute(s,a),o.toLowerCase()==Pa&&a.trim().split(/\s+/g).forEach(function(t){return n.addClassName(t)})}return n}var La,Fa,Va=new Da(!0,new T,null,null),Ha=new Ia;function Ba(t){return t instanceof re&&0==t.value.trim().length}function qa(t){var e=new Map;return t.forEach(function(t){e.get(t.type.reference)||e.set(t.type.reference,t)}),Array.from(e.values())}function Ka(t){return t instanceof rr&&(t=t.ast),t instanceof Ln}
329
+ */(a)),this.tryParseHtml(this.expandHtml(a),t,n,r,i)},t.prototype.tryParseHtml=function(t,e,n,r,i){var o,s=t.errors,a=[];if(t.rootNodes.length>0){var u=Qa(n),c=Qa(r),l=new Vs(this._reflector,e),p=void 0;e.template&&e.template.interpolation&&(p={start:e.template.interpolation[0],end:e.template.interpolation[1]});var h=new Ta(this._exprParser,p,this._schemaRegistry,c,s),d=new La(this._reflector,this._config,l,u,h,this._schemaRegistry,i,s);o=he(d,t.rootNodes,Ua),s.push.apply(s,f(l.errors)),a.push.apply(a,f(h.getUsedPipes()))}else o=[];return this._assertNoReferenceDuplicationOnTemplate(o,s),s.length>0?new Da(o,a,s):(this.transforms&&this.transforms.forEach(function(t){o=Vt(t,o)}),new Da(o,a,s))},t.prototype.expandHtml=function(t,e){void 0===e&&(e=!1);var n=t.errors;if(0==n.length||e){var r=xa(t.rootNodes);n.push.apply(n,f(r.errors)),t=new zr(r.nodes,n)}return t},t.prototype.getInterpolationConfig=function(t){if(t.template)return ge.fromArray(t.template.interpolation)},t.prototype._assertNoReferenceDuplicationOnTemplate=function(t,e){var n=[];t.filter(function(t){return!!t.references}).forEach(function(t){return t.references.forEach(function(t){var r=t.name;if(n.indexOf(r)<0)n.push(r);else{var i=new Ra('Reference "#'+r+'" is defined several times',t.sourceSpan,wr.ERROR);e.push(i)}})})},t}(),La=function(){function t(t,e,n,r,i,o,s,a){var u=this;this.reflector=t,this.config=e,this.providerViewContext=n,this._bindingParser=i,this._schemaRegistry=o,this._schemas=s,this._targetErrors=a,this.selectorMatcher=new N,this.directivesIndex=new Map,this.ngContentCount=0,this.contentQueryStartId=n.component.viewQueries.length+1,r.forEach(function(t,e){var n=A.parse(t.selector);u.selectorMatcher.addSelectables(n,t),u.directivesIndex.set(t,e)})}return t.prototype.visitExpansion=function(t,e){return null},t.prototype.visitExpansionCase=function(t,e){return null},t.prototype.visitText=function(t,e){var n=e.findNgContentIndex(Ia()),r=_a(t.value),i=this._bindingParser.parseInterpolation(r,t.sourceSpan);return i?new St(i,n,t.sourceSpan):new Et(r,n,t.sourceSpan)},t.prototype.visitAttribute=function(t,e){return new Ct(t.name,t.value,t.sourceSpan)},t.prototype.visitComment=function(t,e){return null},t.prototype.visitElement=function(t,e){var n=this,r=this.contentQueryStartId,i=t.name,o=De(t);if(o.type===xe.SCRIPT||o.type===xe.STYLE)return null;if(o.type===xe.STYLESHEET&&we(o.hrefAttr))return null;var s=[],a=[],u=[],c=[],l=[],p=[],h=[],v=[],y=!1,m=[],g=function _(t){return"ng-template"===d(t)[1]}(t.name);t.attrs.forEach(function(t){var e,r,i=n._parseAttr(g,t,s,a,l,u,c);c.push.apply(c,f([].map(function(t){return kt.fromParsedVariable(t)})));var o=n._normalizeAttributeName(t.name);o.startsWith("*")&&(e=t.value,r=o.substring("*".length));var d=null!=e;if(d){y&&n._reportError("Can't have multiple template bindings on one element. Use only one attribute prefixed with *",t.sourceSpan),y=!0;var _=[];n._bindingParser.parseInlineTemplateBinding(r,e,t.sourceSpan,h,p,_),v.push.apply(v,f(_.map(function(t){return kt.fromParsedVariable(t)})))}i||d||(m.push(n.visitAttribute(t,null)),s.push([t.name,t.value]))});var b=Ba(i,s),w=this._parseDirectives(this.selectorMatcher,b),x=w.directives,E=w.matchElement,S=[],C=new Set,T=this._createDirectiveAsts(g,t.name,x,a,u,t.sourceSpan,S,C),P=this._createElementPropertyAsts(t.name,a,C),N=new Hs(this.providerViewContext,e.providerContext,e.isTemplateElement||y,T,m,S,g,r,t.sourceSpan),k=he(o.nonBindable?za:this,t.children,Ha.create(g,T,g?e.providerContext:N));N.afterElement();var O,M=""!=o.projectAs?A.parse(o.projectAs)[0]:b,I=e.findNgContentIndex(M);if(o.type===xe.NG_CONTENT)t.children&&!t.children.every(Wa)&&this._reportError("<ng-content> element cannot have content.",t.sourceSpan),O=new jt(this.ngContentCount++,y?null:I,t.sourceSpan);else if(g)this._assertAllEventsPublishedByDirectives(T,l),this._assertNoComponentsNorElementBindingsOnTemplate(T,P,t.sourceSpan),O=new Mt(m,l,S,c,N.transformedDirectiveAsts,N.transformProviders,N.transformedHasViewContainer,N.queryMatches,k,y?null:I,t.sourceSpan);else{this._assertElementExists(E,t),this._assertOnlyOneComponent(T,t.sourceSpan);var R=y?null:e.findNgContentIndex(M);O=new Ot(i,m,P,l,S,N.transformedDirectiveAsts,N.transformProviders,N.transformedHasViewContainer,N.queryMatches,k,y?null:R,t.sourceSpan,t.endSourceSpan||null)}if(y){var D=this.contentQueryStartId,j=Ba("ng-template",h),L=this._parseDirectives(this.selectorMatcher,j).directives,F=new Set,V=this._createDirectiveAsts(!0,i,L,p,[],t.sourceSpan,[],F),H=this._createElementPropertyAsts(i,p,F);this._assertNoComponentsNorElementBindingsOnTemplate(V,H,t.sourceSpan);var B=new Hs(this.providerViewContext,e.providerContext,e.isTemplateElement,V,[],[],!0,D,t.sourceSpan);B.afterElement(),O=new Mt([],[],[],v,B.transformedDirectiveAsts,B.transformProviders,B.transformedHasViewContainer,B.queryMatches,[O],I,t.sourceSpan)}return O},t.prototype._parseAttr=function(t,e,n,r,i,o,s){var a=this._normalizeAttributeName(e.name),u=e.value,c=e.sourceSpan,l=[],p=a.match(Oa),h=!1;return null!==p?(h=!0,null!=p[1]?this._bindingParser.parsePropertyBinding(p[7],u,!1,c,n,r):p[2]?t?this._parseVariable(p[7],u,c,s):this._reportError('"let-" is only supported on ng-template elements.',c):p[3]?this._parseReference(p[7],u,c,o):p[4]?this._bindingParser.parseEvent(p[7],u,c,n,l):p[5]?(this._bindingParser.parsePropertyBinding(p[7],u,!1,c,n,r),this._parseAssignmentEvent(p[7],u,c,n,l)):p[6]?this._bindingParser.parseLiteralAttr(a,u,c,n,r):p[8]?(this._bindingParser.parsePropertyBinding(p[8],u,!1,c,n,r),this._parseAssignmentEvent(p[8],u,c,n,l)):p[9]?this._bindingParser.parsePropertyBinding(p[9],u,!1,c,n,r):p[10]&&this._bindingParser.parseEvent(p[10],u,c,n,l)):h=this._bindingParser.parsePropertyInterpolation(a,u,c,n,r),h||this._bindingParser.parseLiteralAttr(a,u,c,n,r),i.push.apply(i,f(l.map(function(t){return At.fromParsedEvent(t)}))),h},t.prototype._normalizeAttributeName=function(t){return/^data-/i.test(t)?t.substring(5):t},t.prototype._parseVariable=function(t,e,n,r){t.indexOf("-")>-1&&this._reportError('"-" is not allowed in variable names',n),r.push(new kt(t,e,n))},t.prototype._parseReference=function(t,e,n,r){t.indexOf("-")>-1&&this._reportError('"-" is not allowed in reference names',n),r.push(new Va(t,e,n))},t.prototype._parseAssignmentEvent=function(t,e,n,r,i){this._bindingParser.parseEvent(t+"Change",e+"=$event",n,r,i)},t.prototype._parseDirectives=function(t,e){var n=this,r=new Array(this.directivesIndex.size),i=!1;return t.match(e,function(t,e){r[n.directivesIndex.get(e)]=e,i=i||t.hasElementSelector()}),{directives:r.filter(function(t){return!!t}),matchElement:i}},t.prototype._createDirectiveAsts=function(t,e,n,r,i,o,s,a){var u=this,c=new Set,l=null,p=n.map(function(t){var n=new Pr(o.start,o.end,"Directive "+Gt(t.type));t.isComponent&&(l=t);var p=[],h=u._bindingParser.createDirectiveHostPropertyAsts(t,e,n).map(function(t){return Pt.fromBoundProperty(t)});h=u._checkPropertiesInSchema(e,h);var f=u._bindingParser.createDirectiveHostEventAsts(t,n);u._createDirectivePropertyAsts(t.inputs,r,p,a),i.forEach(function(e){(0===e.value.length&&t.isComponent||e.isReferenceToDirective(t))&&(s.push(new Nt(e.name,wo(t.type.reference),e.value,e.sourceSpan)),c.add(e.name))});var d=f.map(function(t){return At.fromParsedEvent(t)}),v=u.contentQueryStartId;return u.contentQueryStartId+=t.queries.length,new Rt(t,p,h,d,v,n)});return i.forEach(function(e){if(e.value.length>0)c.has(e.name)||u._reportError('There is no directive with "exportAs" set to "'+e.value+'"',e.sourceSpan);else if(!l){var n=null;t&&(n=xo(u.reflector,bo.TemplateRef)),s.push(new Nt(e.name,n,e.value,e.sourceSpan))}}),p},t.prototype._createDirectivePropertyAsts=function(t,e,n,r){if(t){var i=new Map;e.forEach(function(t){var e=i.get(t.name);e&&!e.isLiteral||i.set(t.name,t)}),Object.keys(t).forEach(function(e){var o=i.get(t[e]);o&&(r.add(o.name),Ga(o.expression)||n.push(new It(e,o.name,o.expression,o.sourceSpan)))})}},t.prototype._createElementPropertyAsts=function(t,e,n){var r=this,i=[];return e.forEach(function(e){if(!e.isLiteral&&!n.has(e.name)){var o=r._bindingParser.createBoundElementProperty(t,e);i.push(Pt.fromBoundProperty(o))}}),this._checkPropertiesInSchema(t,i)},t.prototype._findComponentDirectives=function(t){return t.filter(function(t){return t.directive.isComponent})},t.prototype._findComponentDirectiveNames=function(t){return this._findComponentDirectives(t).map(function(t){return Gt(t.directive.type)})},t.prototype._assertOnlyOneComponent=function(t,e){var n=this._findComponentDirectiveNames(t);n.length>1&&this._reportError("More than one component matched on this element.\nMake sure that only one component's selector can match a given element.\nConflicting components: "+n.join(","),e)},t.prototype._assertElementExists=function(t,e){var n=e.name.replace(/^:xhtml:/,"");if(!t&&!this._schemaRegistry.hasElement(n,this._schemas)){var r="'"+n+"' is not a known element:\n";r+="1. If '"+n+"' is an Angular component, then verify that it is part of this module.\n",n.indexOf("-")>-1?r+="2. If '"+n+"' is a Web Component then add 'CUSTOM_ELEMENTS_SCHEMA' to the '@NgModule.schemas' of this component to suppress this message.":r+="2. To allow any element add 'NO_ERRORS_SCHEMA' to the '@NgModule.schemas' of this component.",this._reportError(r,e.sourceSpan)}},t.prototype._assertNoComponentsNorElementBindingsOnTemplate=function(t,e,n){var r=this,i=this._findComponentDirectiveNames(t);i.length>0&&this._reportError("Components on an embedded template: "+i.join(","),n),e.forEach(function(t){r._reportError("Property binding "+t.name+' not used by any directive on an embedded template. Make sure that the property name is spelled correctly and all directives are listed in the "@NgModule.declarations".',n)})},t.prototype._assertAllEventsPublishedByDirectives=function(t,e){var n=this,r=new Set;t.forEach(function(t){Object.keys(t.directive.outputs).forEach(function(e){r.add(t.directive.outputs[e])})}),e.forEach(function(t){null==t.target&&r.has(t.name)||n._reportError("Event binding "+t.fullName+' not emitted by any directive on an embedded template. Make sure that the event name is spelled correctly and all directives are listed in the "@NgModule.declarations".',t.sourceSpan)})},t.prototype._checkPropertiesInSchema=function(t,e){var n=this;return e.filter(function(e){if(0===e.type&&!n._schemaRegistry.hasProperty(t,e.name,n._schemas)){var r="Can't bind to '"+e.name+"' since it isn't a known property of '"+t+"'.";t.startsWith("ng-")?r+="\n1. If '"+e.name+"' is an Angular directive, then add 'CommonModule' to the '@NgModule.imports' of this component.\n2. To allow any property add 'NO_ERRORS_SCHEMA' to the '@NgModule.schemas' of this component.":t.indexOf("-")>-1&&(r+="\n1. If '"+t+"' is an Angular component and it has '"+e.name+"' input, then verify that it is part of this module.\n2. If '"+t+"' is a Web Component then add 'CUSTOM_ELEMENTS_SCHEMA' to the '@NgModule.schemas' of this component to suppress this message.\n3. To allow any property add 'NO_ERRORS_SCHEMA' to the '@NgModule.schemas' of this component."),n._reportError(r,e.sourceSpan)}return!Ga(e.value)})},t.prototype._reportError=function(t,e,n){void 0===n&&(n=wr.ERROR),this._targetErrors.push(new Nr(e,t,n))},t}(),Fa=function(){function t(){}return t.prototype.visitElement=function(t,e){var n=De(t);if(n.type===xe.SCRIPT||n.type===xe.STYLE||n.type===xe.STYLESHEET)return null;var r=t.attrs.map(function(t){return[t.name,t.value]}),i=Ba(t.name,r),o=e.findNgContentIndex(i),s=he(this,t.children,Ua);return new Ot(t.name,he(this,t.attrs),[],[],[],[],[],!1,[],s,o,t.sourceSpan,t.endSourceSpan)},t.prototype.visitComment=function(t,e){return null},t.prototype.visitAttribute=function(t,e){return new Ct(t.name,t.value,t.sourceSpan)},t.prototype.visitText=function(t,e){var n=e.findNgContentIndex(Ia());return new Et(t.value,n,t.sourceSpan)},t.prototype.visitExpansion=function(t,e){return t},t.prototype.visitExpansionCase=function(t,e){return t},t}(),Va=function(){function t(t,e,n){this.name=t,this.value=e,this.sourceSpan=n}return t.prototype.isReferenceToDirective=function(t){return-1!==function e(t){return t?t.split(",").map(function(t){return t.trim()}):[]}(t.exportAs).indexOf(this.value)},t}(),Ha=function(){function t(t,e,n,r){this.isTemplateElement=t,this._ngContentIndexMatcher=e,this._wildcardNgContentIndex=n,this.providerContext=r}return t.create=function(e,n,r){var i=new N,o=null,s=n.find(function(t){return t.directive.isComponent});if(s)for(var a=s.directive.template.ngContentSelectors,u=0;u<a.length;u++)"*"===a[u]?o=u:i.addSelectables(A.parse(a[u]),u);return new t(e,i,o,r)},t.prototype.findNgContentIndex=function(t){var e=[];return this._ngContentIndexMatcher.match(t,function(t,n){e.push(n)}),e.sort(),null!=this._wildcardNgContentIndex&&e.push(this._wildcardNgContentIndex),e.length>0?e[0]:null},t}();function Ba(t,e){var n=new A,r=d(t)[1];n.setElement(r);for(var i=0;i<e.length;i++){var o=e[i][0],s=d(o)[1],a=e[i][1];n.addAttribute(s,a),o.toLowerCase()==Ma&&a.trim().split(/\s+/g).forEach(function(t){return n.addClassName(t)})}return n}var qa,Ka,Ua=new Ha(!0,new N,null,null),za=new Fa;function Wa(t){return t instanceof se&&0==t.value.trim().length}function Qa(t){var e=new Map;return t.forEach(function(t){e.get(t.type.reference)||e.set(t.type.reference,t)}),Array.from(e.values())}function Ga(t){return t instanceof sr&&(t=t.ast),t instanceof Hn}
331
330
  /**
332
331
  * @license
333
332
  * Copyright Google Inc. All Rights Reserved.
334
333
  *
335
334
  * Use of this source code is governed by an MIT-style license that can be
336
335
  * found in the LICENSE file at https://angular.io/license
337
- */ys("$event"),function(t){t[t.General=0]="General",t[t.TrySimple=1]="TrySimple"}(La||(La={})),function(t){t[t.Statement=0]="Statement",t[t.Expression=1]="Expression"}(Fa||(Fa={})),function(t){function e(e){var n=t.call(this)||this;return n._converterFactory=e,n}o(e,t),e.prototype.visitPipe=function(t,e){var n=this,r=l([t.exp],t.args).map(function(t){return t.visit(n,e)});return new za(t.span,r,this._converterFactory.createPipeConverter(t.name,r.length))},e.prototype.visitLiteralArray=function(t,e){var n=this,r=t.expressions.map(function(t){return t.visit(n,e)});return new za(t.span,r,this._converterFactory.createLiteralArrayConverter(t.expressions.length))},e.prototype.visitLiteralMap=function(t,e){var n=this,r=t.values.map(function(t){return t.visit(n,e)});return new za(t.span,r,this._converterFactory.createLiteralMapConverter(t.keys))}}(ar);var Ua,za=function(t){function e(e,n,r){var i=t.call(this,e,null,n)||this;return i.args=n,i.converter=r,i}return o(e,t),e}(nr),Wa=(ys("_l"),ys("_v"),ys("_ck"),ys("_co"),ys("en"),ys("ad"),{}),Qa=(function(t){function e(e){var n=t.call(this,e.type)||this;return n.resolved=e,n.original=e,n}o(e,t),e.prototype.visitExpression=function(t,e){return e===Wa?this.original.visitExpression(t,e):this.resolved.visitExpression(t,e)},e.prototype.isEquivalent=function(t){return t instanceof e&&this.resolved.isEquivalent(t.resolved)},e.prototype.isConstant=function(){return!0},e.prototype.fixup=function(t){this.resolved=t,this.shared=!0}}(ko),function(t){function e(){return null!==t&&t.apply(this,arguments)||this}o(e,t),e.prototype.convert=function(t,e){var n=this;return e?t.map(function(t){return t.visit(n,e)}):t},e.prototype.visitTagPlaceholder=function(t,e){var n=this,r=e.toPublicName(t.startName),i=t.closeName?e.toPublicName(t.closeName):t.closeName,o=t.children.map(function(t){return t.visit(n,e)});return new yi(t.tag,t.attrs,r,i,o,t.isVoid,t.sourceSpan)},e.prototype.visitPlaceholder=function(t,e){return new mi(t.value,e.toPublicName(t.name),t.sourceSpan)},e.prototype.visitIcuPlaceholder=function(t,e){return new gi(t.value,e.toPublicName(t.name),t.sourceSpan)}}(_i),"@angular/core"),Ga=function(){function t(){}return t.NEW_METHOD="factory",t.TRANSFORM_METHOD="transform",t.PATCH_DEPS="patchedDeps",t.namespaceHTML={name:"ɵNH",moduleName:Qa},t.namespaceMathML={name:"ɵNM",moduleName:Qa},t.namespaceSVG={name:"ɵNS",moduleName:Qa},t.element={name:"ɵEe",moduleName:Qa},t.elementStart={name:"ɵE",moduleName:Qa},t.elementEnd={name:"ɵe",moduleName:Qa},t.elementProperty={name:"ɵp",moduleName:Qa},t.elementAttribute={name:"ɵa",moduleName:Qa},t.elementClassProp={name:"ɵcp",moduleName:Qa},t.elementStyling={name:"ɵs",moduleName:Qa},t.elementStylingMap={name:"ɵsm",moduleName:Qa},t.elementStyleProp={name:"ɵsp",moduleName:Qa},t.elementStylingApply={name:"ɵsa",moduleName:Qa},t.containerCreate={name:"ɵC",moduleName:Qa},t.text={name:"ɵT",moduleName:Qa},t.textBinding={name:"ɵt",moduleName:Qa},t.bind={name:"ɵb",moduleName:Qa},t.interpolation1={name:"ɵi1",moduleName:Qa},t.interpolation2={name:"ɵi2",moduleName:Qa},t.interpolation3={name:"ɵi3",moduleName:Qa},t.interpolation4={name:"ɵi4",moduleName:Qa},t.interpolation5={name:"ɵi5",moduleName:Qa},t.interpolation6={name:"ɵi6",moduleName:Qa},t.interpolation7={name:"ɵi7",moduleName:Qa},t.interpolation8={name:"ɵi8",moduleName:Qa},t.interpolationV={name:"ɵiV",moduleName:Qa},t.pureFunction0={name:"ɵf0",moduleName:Qa},t.pureFunction1={name:"ɵf1",moduleName:Qa},t.pureFunction2={name:"ɵf2",moduleName:Qa},t.pureFunction3={name:"ɵf3",moduleName:Qa},t.pureFunction4={name:"ɵf4",moduleName:Qa},t.pureFunction5={name:"ɵf5",moduleName:Qa},t.pureFunction6={name:"ɵf6",moduleName:Qa},t.pureFunction7={name:"ɵf7",moduleName:Qa},t.pureFunction8={name:"ɵf8",moduleName:Qa},t.pureFunctionV={name:"ɵfV",moduleName:Qa},t.pipeBind1={name:"ɵpb1",moduleName:Qa},t.pipeBind2={name:"ɵpb2",moduleName:Qa},t.pipeBind3={name:"ɵpb3",moduleName:Qa},t.pipeBind4={name:"ɵpb4",moduleName:Qa},t.pipeBindV={name:"ɵpbV",moduleName:Qa},t.load={name:"ɵld",moduleName:Qa},t.loadDirective={name:"ɵd",moduleName:Qa},t.loadQueryList={name:"ɵql",moduleName:Qa},t.pipe={name:"ɵPp",moduleName:Qa},t.projection={name:"ɵP",moduleName:Qa},t.projectionDef={name:"ɵpD",moduleName:Qa},t.inject={name:"inject",moduleName:Qa},t.injectAttribute={name:"ɵinjectAttribute",moduleName:Qa},t.injectElementRef={name:"ɵinjectElementRef",moduleName:Qa},t.injectTemplateRef={name:"ɵinjectTemplateRef",moduleName:Qa},t.injectViewContainerRef={name:"ɵinjectViewContainerRef",moduleName:Qa},t.injectChangeDetectorRef={name:"ɵinjectChangeDetectorRef",moduleName:Qa},t.directiveInject={name:"ɵdirectiveInject",moduleName:Qa},t.defineComponent={name:"ɵdefineComponent",moduleName:Qa},t.ComponentDef={name:"ɵComponentDef",moduleName:Qa},t.defineDirective={name:"ɵdefineDirective",moduleName:Qa},t.DirectiveDef={name:"ɵDirectiveDef",moduleName:Qa},t.InjectorDef={name:"ɵInjectorDef",moduleName:Qa},t.defineInjector={name:"defineInjector",moduleName:Qa},t.NgModuleDef={name:"ɵNgModuleDef",moduleName:Qa},t.defineNgModule={name:"ɵdefineNgModule",moduleName:Qa},t.PipeDef={name:"ɵPipeDef",moduleName:Qa},t.definePipe={name:"ɵdefinePipe",moduleName:Qa},t.query={name:"ɵQ",moduleName:Qa},t.queryRefresh={name:"ɵqR",moduleName:Qa},t.registerContentQuery={name:"ɵQr",moduleName:Qa},t.NgOnChangesFeature={name:"ɵNgOnChangesFeature",moduleName:Qa},t.InheritDefinitionFeature={name:"ɵInheritDefinitionFeature",moduleName:Qa},t.listener={name:"ɵL",moduleName:Qa},t.reserveSlots={name:"ɵrS",moduleName:Qa},t.sanitizeHtml={name:"ɵzh",moduleName:Qa},t.sanitizeStyle={name:"ɵzs",moduleName:Qa},t.defaultStyleSanitizer={name:"ɵzss",moduleName:Qa},t.sanitizeResourceUrl={name:"ɵzr",moduleName:Qa},t.sanitizeScript={name:"ɵzc",moduleName:Qa},t.sanitizeUrl={name:"ɵzu",moduleName:Qa},t}();function Xa(){}
336
+ */_s("$event"),function(t){t[t.General=0]="General",t[t.TrySimple=1]="TrySimple"}(qa||(qa={})),function(t){t[t.Statement=0]="Statement",t[t.Expression=1]="Expression"}(Ka||(Ka={})),function(t){function e(e){var n=t.call(this)||this;return n._converterFactory=e,n}o(e,t),e.prototype.visitPipe=function(t,e){var n=this,r=f([t.exp],t.args).map(function(t){return t.visit(n,e)});return new Ya(t.span,r,this._converterFactory.createPipeConverter(t.name,r.length))},e.prototype.visitLiteralArray=function(t,e){var n=this,r=t.expressions.map(function(t){return t.visit(n,e)});return new Ya(t.span,r,this._converterFactory.createLiteralArrayConverter(t.expressions.length))},e.prototype.visitLiteralMap=function(t,e){var n=this,r=t.values.map(function(t){return t.visit(n,e)});return new Ya(t.span,r,this._converterFactory.createLiteralMapConverter(t.keys))}}(lr);var Xa,Ya=function(t){function e(e,n,r){var i=t.call(this,e,null,n)||this;return i.args=n,i.converter=r,i}return o(e,t),e}(or),Za=(_s("_l"),_s("_v"),_s("_ck"),_s("_co"),_s("en"),_s("ad"),{}),$a=(function(t){function e(e){var n=t.call(this,e.type)||this;return n.resolved=e,n.original=e,n}o(e,t),e.prototype.visitExpression=function(t,e){return e===Za?this.original.visitExpression(t,e):this.resolved.visitExpression(t,e)},e.prototype.isEquivalent=function(t){return t instanceof e&&this.resolved.isEquivalent(t.resolved)},e.prototype.isConstant=function(){return!0},e.prototype.fixup=function(t){this.resolved=t,this.shared=!0}}(Io),function(t){function e(){return null!==t&&t.apply(this,arguments)||this}o(e,t),e.prototype.convert=function(t,e){var n=this;return e?t.map(function(t){return t.visit(n,e)}):t},e.prototype.visitTagPlaceholder=function(t,e){var n=this,r=e.toPublicName(t.startName),i=t.closeName?e.toPublicName(t.closeName):t.closeName,o=t.children.map(function(t){return t.visit(n,e)});return new _i(t.tag,t.attrs,r,i,o,t.isVoid,t.sourceSpan)},e.prototype.visitPlaceholder=function(t,e){return new bi(t.value,e.toPublicName(t.name),t.sourceSpan)},e.prototype.visitIcuPlaceholder=function(t,e){return new wi(t.value,e.toPublicName(t.name),t.sourceSpan)}}(xi),"@angular/core"),Ja=function(){function t(){}return t.NEW_METHOD="factory",t.TRANSFORM_METHOD="transform",t.PATCH_DEPS="patchedDeps",t.namespaceHTML={name:"ɵNH",moduleName:$a},t.namespaceMathML={name:"ɵNM",moduleName:$a},t.namespaceSVG={name:"ɵNS",moduleName:$a},t.element={name:"ɵEe",moduleName:$a},t.elementStart={name:"ɵE",moduleName:$a},t.elementEnd={name:"ɵe",moduleName:$a},t.elementProperty={name:"ɵp",moduleName:$a},t.elementAttribute={name:"ɵa",moduleName:$a},t.elementClassProp={name:"ɵcp",moduleName:$a},t.elementStyling={name:"ɵs",moduleName:$a},t.elementStylingMap={name:"ɵsm",moduleName:$a},t.elementStyleProp={name:"ɵsp",moduleName:$a},t.elementStylingApply={name:"ɵsa",moduleName:$a},t.containerCreate={name:"ɵC",moduleName:$a},t.text={name:"ɵT",moduleName:$a},t.textBinding={name:"ɵt",moduleName:$a},t.bind={name:"ɵb",moduleName:$a},t.interpolation1={name:"ɵi1",moduleName:$a},t.interpolation2={name:"ɵi2",moduleName:$a},t.interpolation3={name:"ɵi3",moduleName:$a},t.interpolation4={name:"ɵi4",moduleName:$a},t.interpolation5={name:"ɵi5",moduleName:$a},t.interpolation6={name:"ɵi6",moduleName:$a},t.interpolation7={name:"ɵi7",moduleName:$a},t.interpolation8={name:"ɵi8",moduleName:$a},t.interpolationV={name:"ɵiV",moduleName:$a},t.pureFunction0={name:"ɵf0",moduleName:$a},t.pureFunction1={name:"ɵf1",moduleName:$a},t.pureFunction2={name:"ɵf2",moduleName:$a},t.pureFunction3={name:"ɵf3",moduleName:$a},t.pureFunction4={name:"ɵf4",moduleName:$a},t.pureFunction5={name:"ɵf5",moduleName:$a},t.pureFunction6={name:"ɵf6",moduleName:$a},t.pureFunction7={name:"ɵf7",moduleName:$a},t.pureFunction8={name:"ɵf8",moduleName:$a},t.pureFunctionV={name:"ɵfV",moduleName:$a},t.pipeBind1={name:"ɵpb1",moduleName:$a},t.pipeBind2={name:"ɵpb2",moduleName:$a},t.pipeBind3={name:"ɵpb3",moduleName:$a},t.pipeBind4={name:"ɵpb4",moduleName:$a},t.pipeBindV={name:"ɵpbV",moduleName:$a},t.load={name:"ɵld",moduleName:$a},t.loadDirective={name:"ɵd",moduleName:$a},t.loadQueryList={name:"ɵql",moduleName:$a},t.pipe={name:"ɵPp",moduleName:$a},t.projection={name:"ɵP",moduleName:$a},t.projectionDef={name:"ɵpD",moduleName:$a},t.inject={name:"inject",moduleName:$a},t.injectAttribute={name:"ɵinjectAttribute",moduleName:$a},t.injectElementRef={name:"ɵinjectElementRef",moduleName:$a},t.injectTemplateRef={name:"ɵinjectTemplateRef",moduleName:$a},t.injectViewContainerRef={name:"ɵinjectViewContainerRef",moduleName:$a},t.injectChangeDetectorRef={name:"ɵinjectChangeDetectorRef",moduleName:$a},t.directiveInject={name:"ɵdirectiveInject",moduleName:$a},t.defineComponent={name:"ɵdefineComponent",moduleName:$a},t.ComponentDef={name:"ɵComponentDef",moduleName:$a},t.defineDirective={name:"ɵdefineDirective",moduleName:$a},t.DirectiveDef={name:"ɵDirectiveDef",moduleName:$a},t.InjectorDef={name:"ɵInjectorDef",moduleName:$a},t.defineInjector={name:"defineInjector",moduleName:$a},t.NgModuleDef={name:"ɵNgModuleDef",moduleName:$a},t.defineNgModule={name:"ɵdefineNgModule",moduleName:$a},t.PipeDef={name:"ɵPipeDef",moduleName:$a},t.definePipe={name:"ɵdefinePipe",moduleName:$a},t.query={name:"ɵQ",moduleName:$a},t.queryRefresh={name:"ɵqR",moduleName:$a},t.registerContentQuery={name:"ɵQr",moduleName:$a},t.NgOnChangesFeature={name:"ɵNgOnChangesFeature",moduleName:$a},t.InheritDefinitionFeature={name:"ɵInheritDefinitionFeature",moduleName:$a},t.listener={name:"ɵL",moduleName:$a},t.reserveSlots={name:"ɵrS",moduleName:$a},t.sanitizeHtml={name:"ɵzh",moduleName:$a},t.sanitizeStyle={name:"ɵzs",moduleName:$a},t.defaultStyleSanitizer={name:"ɵzss",moduleName:$a},t.sanitizeResourceUrl={name:"ɵzr",moduleName:$a},t.sanitizeScript={name:"ɵzc",moduleName:$a},t.sanitizeUrl={name:"ɵzu",moduleName:$a},t}();function tu(){}
338
337
  /**
339
338
  * @license
340
339
  * Copyright Google Inc. All Rights Reserved.
341
340
  *
342
341
  * Use of this source code is governed by an MIT-style license that can be
343
342
  * found in the LICENSE file at https://angular.io/license
344
- */!function(t){t[t.Token=0]="Token",t[t.Attribute=1]="Attribute",t[t.Injector=2]="Injector",t[t.ElementRef=3]="ElementRef",t[t.TemplateRef=4]="TemplateRef",t[t.ViewContainerRef=5]="ViewContainerRef",t[t.ChangeDetectorRef=6]="ChangeDetectorRef"}(Ua||(Ua={})),function(t){function e(e,n,r,i){var o=t.call(this)||this;return o.constantPool=e,o.allocateSlot=n,o.allocatePureFunctionSlots=r,o.definePipe=i,o}o(e,t),e.prototype.visitPipe=function(t,e){var n=this.allocateSlot(),r="PIPE:"+n,i=this.allocatePureFunctionSlots(2+t.args.length),o=new Bn(t.span,new Fn(t.span),r),s=function a(t){var e=Ya[t.length];return{identifier:e||Ga.pipeBindV,isVarLength:!e}}(t.args),u=s.isVarLength;this.definePipe(t.name,r,n,ms(s.identifier));var c=l([t.exp],t.args),p=this.visitAll(u?[new Gn(t.span,c)]:c);return new nr(t.span,o,l([new Qn(t.span,n),new Qn(t.span,i)],p))},e.prototype.visitLiteralArray=function(t,e){var n=this;return new za(t.span,this.visitAll(t.expressions),function(t){var e=gs(t);return t.every(function(t){return t.isConstant()})?n.constantPool.getConstLiteral(e,!0):$a(n.constantPool,e,n.allocatePureFunctionSlots)})},e.prototype.visitLiteralMap=function(t,e){var n=this;return new za(t.span,this.visitAll(t.values),function(e){var r=function i(t,e){return void 0===e&&(e=null),new Jo(t.map(function(t){return new $o(t.key,t.value,t.quoted)}),e,null)}(e.map(function(e,n){return{key:t.keys[n].key,value:e,quoted:t.keys[n].quoted}}));return e.every(function(t){return t.isConstant()})?n.constantPool.getConstLiteral(r,!0):$a(n.constantPool,r,n.allocatePureFunctionSlots)})}}(ur);
343
+ */!function(t){t[t.Token=0]="Token",t[t.Attribute=1]="Attribute",t[t.Injector=2]="Injector",t[t.ElementRef=3]="ElementRef",t[t.TemplateRef=4]="TemplateRef",t[t.ViewContainerRef=5]="ViewContainerRef",t[t.ChangeDetectorRef=6]="ChangeDetectorRef"}(Xa||(Xa={})),function(t){function e(e,n,r,i){var o=t.call(this)||this;return o.constantPool=e,o.allocateSlot=n,o.allocatePureFunctionSlots=r,o.definePipe=i,o}o(e,t),e.prototype.visitPipe=function(t,e){var n=this.allocateSlot(),r="PIPE:"+n,i=this.allocatePureFunctionSlots(2+t.args.length),o=new Un(t.span,new Bn(t.span),r),s=function a(t){var e=eu[t.length];return{identifier:e||Ja.pipeBindV,isVarLength:!e}}(t.args),u=s.isVarLength;this.definePipe(t.name,r,n,bs(s.identifier));var c=f([t.exp],t.args),l=this.visitAll(u?[new Zn(t.span,c)]:c);return new or(t.span,o,f([new Yn(t.span,n),new Yn(t.span,i)],l))},e.prototype.visitLiteralArray=function(t,e){var n=this;return new Ya(t.span,this.visitAll(t.expressions),function(t){var e=ws(t);return t.every(function(t){return t.isConstant()})?n.constantPool.getConstLiteral(e,!0):ru(n.constantPool,e,n.allocatePureFunctionSlots)})},e.prototype.visitLiteralMap=function(t,e){var n=this;return new Ya(t.span,this.visitAll(t.values),function(e){var r=function i(t,e){return void 0===e&&(e=null),new ns(t.map(function(t){return new es(t.key,t.value,t.quoted)}),e,null)}(e.map(function(e,n){return{key:t.keys[n].key,value:e,quoted:t.keys[n].quoted}}));return e.every(function(t){return t.isConstant()})?n.constantPool.getConstLiteral(r,!0):ru(n.constantPool,r,n.allocatePureFunctionSlots)})}}(pr);
345
344
  /**
346
345
  * @license
347
346
  * Copyright Google Inc. All Rights Reserved.
@@ -391,7 +390,7 @@ var ra="boolean",ia="number",oa="string",sa="object",aa=["[Element]|textContent,
391
390
  * Use of this source code is governed by an MIT-style license that can be
392
391
  * found in the LICENSE file at https://angular.io/license
393
392
  */
394
- var Ya=[Ga.pipeBind1,Ga.pipeBind2,Ga.pipeBind3,Ga.pipeBind4],Za=[Ga.pureFunction0,Ga.pureFunction1,Ga.pureFunction2,Ga.pureFunction3,Ga.pureFunction4,Ga.pureFunction5,Ga.pureFunction6,Ga.pureFunction7,Ga.pureFunction8];function $a(t,e,n){var r=t.getLiteralFactory(e),i=r.literalFactory,o=r.literalFactoryArguments,s=n(1+o.length);o.length>0||at("Expected arguments to a literal factory function");var a=function u(t){var e=Za[t.length];return{identifier:e||Ga.pureFunctionV,isVarLength:!e}}(o),c=a.identifier,p=a.isVarLength,h=[function f(t,e,n){return new Bo(t,e,n)}(s),i];return p?h.push(gs(o)):h.push.apply(h,l(o)),ms(c).callFn(h)}!function(){function t(t,e){void 0===t&&(t=null),void 0===e&&(e=Xa),this.parent=t,this.declareLocalVarCallback=e,this.map=new Map,this.referenceNameIndex=0}t.prototype.get=function(t){for(var e=this;e;){var n=e.map.get(t);if(null!=n)return e!==this&&this.map.set(t,n={lhs:n.lhs,rhs:n.rhs,declared:!1}),n.rhs&&!n.declared&&(this.declareLocalVarCallback(n.lhs,n.rhs),n.declared=!0),n.lhs;e=e.parent}return null},t.prototype.set=function(t,e,n){return!this.map.has(t)||at("The name "+t+" is already defined in scope to be "+this.map.get(t)),this.map.set(t,{lhs:e,rhs:n,declared:!1}),this},t.prototype.getLocal=function(t){return this.get(t)},t.prototype.nestedScope=function(e){return new t(this,e)},t.prototype.freshReferenceName=function(){for(var t=this;t.parent;)t=t.parent;return"_r"+t.referenceNameIndex++},t.ROOT_SCOPE=(new t).set("$event",ys("$event"))}();var Ja=/^(?!.*\.d\.ts$).*\.ts$/,tu=function tu(t,e){this.symbol=t,this.metadata=e},eu=function(){function t(t,e,n,r){this.host=t,this.staticSymbolCache=e,this.summaryResolver=n,this.errorRecorder=r,this.metadataCache=new Map,this.resolvedSymbols=new Map,this.resolvedFilePaths=new Set,this.importAs=new Map,this.symbolResourcePaths=new Map,this.symbolFromFile=new Map,this.knownFileNameToModuleNames=new Map}return t.prototype.resolveSymbol=function(t){return t.members.length>0?this._resolveSymbolMembers(t):this._resolveSymbolFromSummary(t)||this.resolvedSymbols.get(t)||(this._createSymbolsOf(t.filePath),this.resolvedSymbols.get(t))},t.prototype.getImportAs=function(t,e){if(void 0===e&&(e=!0),t.members.length){var n=this.getStaticSymbol(t.filePath,t.name);return(o=this.getImportAs(n,e))?this.getStaticSymbol(o.filePath,o.name,t.members):null}var r=function i(t){return t.replace(xs,".")}(t.filePath);if(r!==t.filePath){var o,s=function a(t){return t.replace(Es,"")}(t.name);return n=this.getStaticSymbol(r,s,t.members),(o=this.getImportAs(n,e))?this.getStaticSymbol(function u(t,e){void 0===e&&(e=!1);var n=Ts(Cs(t),e);return n[0]+".ngsummary"+n[1]}(o.filePath),function c(t){return t+"NgSummary"}(o.name),n.members):null}var l=e&&this.summaryResolver.getImportAs(t)||null;return l||(l=this.importAs.get(t)),l},t.prototype.getResourcePath=function(t){return this.symbolResourcePaths.get(t)||t.filePath},t.prototype.getTypeArity=function(t){if(function e(t){return ws.test(t)}(t.filePath))return null;for(var n=ru(this.resolveSymbol(t));n&&n.metadata instanceof Vt;)n=ru(this.resolveSymbol(n.metadata));return n&&n.metadata&&n.metadata.arity||null},t.prototype.getKnownModuleName=function(t){return this.knownFileNameToModuleNames.get(t)||null},t.prototype.recordImportAs=function(t,e){t.assertNoMembers(),e.assertNoMembers(),this.importAs.set(t,e)},t.prototype.recordModuleNameForFileName=function(t,e){this.knownFileNameToModuleNames.set(t,e)},t.prototype.invalidateFile=function(t){var e,n;this.metadataCache.delete(t),this.resolvedFilePaths.delete(t);var r=this.symbolFromFile.get(t);if(r){this.symbolFromFile.delete(t);try{for(var i=u(r),o=i.next();!o.done;o=i.next()){var s=o.value;this.resolvedSymbols.delete(s),this.importAs.delete(s),this.symbolResourcePaths.delete(s)}}catch(t){e={error:t}}finally{try{o&&!o.done&&(n=i.return)&&n.call(i)}finally{if(e)throw e.error}}}},t.prototype.ignoreErrorsFor=function(t){var e=this.errorRecorder;this.errorRecorder=function(){};try{return t()}finally{this.errorRecorder=e}},t.prototype._resolveSymbolMembers=function(t){var e=t.members,n=this.resolveSymbol(this.getStaticSymbol(t.filePath,t.name));if(!n)return null;var r=ru(n.metadata);if(r instanceof Vt)return new tu(t,this.getStaticSymbol(r.filePath,r.name,e));if(!r||"class"!==r.__symbolic){for(var i=r,o=0;o<e.length&&i;o++)i=i[e[o]];return new tu(t,i)}return r.statics&&1===e.length?new tu(t,r.statics[e[0]]):null},t.prototype._resolveSymbolFromSummary=function(t){var e=this.summaryResolver.resolveSummary(t);return e?new tu(t,e.metadata):null},t.prototype.getStaticSymbol=function(t,e,n){return this.staticSymbolCache.get(t,e,n)},t.prototype.hasDecorators=function(t){var e=this.getModuleMetadata(t);return!!e.metadata&&Object.keys(e.metadata).some(function(t){var n=e.metadata[t];return n&&"class"===n.__symbolic&&n.decorators})},t.prototype.getSymbolsOf=function(t){var e=this.summaryResolver.getSymbolsOf(t);if(e)return e;this._createSymbolsOf(t);var n=[];return this.resolvedSymbols.forEach(function(e){e.symbol.filePath===t&&n.push(e.symbol)}),n},t.prototype._createSymbolsOf=function(t){var e,n,r=this;if(!this.resolvedFilePaths.has(t)){this.resolvedFilePaths.add(t);var i=[],o=this.getModuleMetadata(t);if(o.importAs&&this.knownFileNameToModuleNames.set(t,o.importAs),o.exports){var s=function(e){if(e.export)e.export.forEach(function(n){var o,s=o=nu(o="string"==typeof n?n:n.as);"string"!=typeof n&&(s=nu(n.name));var a=r.resolveModule(e.from,t);if(a){var u=r.getStaticSymbol(a,s),c=r.getStaticSymbol(t,o);i.push(r.createExport(c,u))}});else{var n=a.resolveModule(e.from,t);n&&a.getSymbolsOf(n).forEach(function(e){var n=r.getStaticSymbol(t,e.name);i.push(r.createExport(n,e))})}},a=this;try{for(var c=u(o.exports),l=c.next();!l.done;l=c.next())s(l.value)}catch(t){e={error:t}}finally{try{l&&!l.done&&(n=c.return)&&n.call(c)}finally{if(e)throw e.error}}}if(o.metadata){var p=new Set(Object.keys(o.metadata).map(nu)),h=o.origins||{};Object.keys(o.metadata).forEach(function(e){var n=o.metadata[e],s=nu(e),a=r.getStaticSymbol(t,s),u=h.hasOwnProperty(e)&&h[e];if(u){var c=r.resolveModule(u,t);c?r.symbolResourcePaths.set(a,c):r.reportError(new Error("Couldn't resolve original symbol for "+u+" from "+t))}i.push(r.createResolvedSymbol(a,t,p,n))})}i.forEach(function(t){return r.resolvedSymbols.set(t.symbol,t)}),this.symbolFromFile.set(t,i.map(function(t){return t.symbol}))}},t.prototype.createResolvedSymbol=function(t,e,n,r){var i,s=this,u=Ja.test(t.filePath);if(this.summaryResolver.isLibraryFile(t.filePath)&&!u&&r&&"class"===r.__symbolic)return new tu(t,{__symbolic:"class",arity:r.arity});var c=function(){return i||(i=s.host.getOutputName(e.replace(/((\.ts)|(\.d\.ts)|)$/,".ts").replace(/^.*node_modules[/\\]/,""))),i},p=this,h=nt(r,new(function(r){function i(){return null!==r&&r.apply(this,arguments)||this}return o(i,r),i.prototype.visitStringMap=function(i,o){var s=i.__symbolic;if("function"===s){var u=o.length;o.push.apply(o,l(i.parameters||[]));var h=r.prototype.visitStringMap.call(this,i,o);return o.length=u,h}if("reference"!==s)return"error"===s?a({},i,{fileName:c()}):r.prototype.visitStringMap.call(this,i,o);var f=i.module,d=i.name?nu(i.name):i.name;if(!d)return null;var v=void 0;return f?(v=p.resolveModule(f,t.filePath))?{__symbolic:"resolved",symbol:p.getStaticSymbol(v,d),line:i.line,character:i.character,fileName:c()}:{__symbolic:"error",message:"Could not resolve "+f+" relative to "+t.filePath+".",line:i.line,character:i.character,fileName:c()}:o.indexOf(d)>=0?{__symbolic:"reference",name:d}:n.has(d)?p.getStaticSymbol(e,d):void 0},i}(ot)),[]),f=ru(h);return f instanceof Vt?this.createExport(t,f):new tu(t,h)},t.prototype.createExport=function(t,e){return t.assertNoMembers(),e.assertNoMembers(),this.summaryResolver.isLibraryFile(t.filePath)&&this.summaryResolver.isLibraryFile(e.filePath)&&this.importAs.set(e,this.getImportAs(t)||t),new tu(t,e)},t.prototype.reportError=function(t,e,n){if(!this.errorRecorder)throw t;this.errorRecorder(t,e&&e.filePath||n)},t.prototype.getModuleMetadata=function(t){var e=this.metadataCache.get(t);if(!e){var n=this.host.getMetadataFor(t);if(n){var r=-1;n.forEach(function(t){t&&t.version>r&&(r=t.version,e=t)})}e||(e={__symbolic:"module",version:4,module:t,metadata:{}}),4!=e.version&&this.reportError(new Error(2==e.version?"Unsupported metadata version "+e.version+" for module "+t+". This module should be compiled with a newer version of ngc":"Metadata version mismatch for module "+t+", found version "+e.version+", expected 4")),this.metadataCache.set(t,e)}return e},t.prototype.getSymbolByModule=function(t,e,n){var r=this.resolveModule(t,n);return r?this.getStaticSymbol(r,e):(this.reportError(new Error("Could not resolve module "+t+(n?" relative to "+n:""))),this.getStaticSymbol("ERROR:"+t,e))},t.prototype.resolveModule=function(t,e){try{return this.host.moduleNameToFileName(t,e)}catch(n){console.error("Could not resolve module '"+t+"' relative to file "+e),this.reportError(n,void 0,e)}return null},t}();
393
+ var eu=[Ja.pipeBind1,Ja.pipeBind2,Ja.pipeBind3,Ja.pipeBind4],nu=[Ja.pureFunction0,Ja.pureFunction1,Ja.pureFunction2,Ja.pureFunction3,Ja.pureFunction4,Ja.pureFunction5,Ja.pureFunction6,Ja.pureFunction7,Ja.pureFunction8];function ru(t,e,n){var r=t.getLiteralFactory(e),i=r.literalFactory,o=r.literalFactoryArguments,s=n(1+o.length);o.length>0||lt("Expected arguments to a literal factory function");var a=function u(t){var e=nu[t.length];return{identifier:e||Ja.pureFunctionV,isVarLength:!e}}(o),c=a.identifier,l=a.isVarLength,p=[function h(t,e,n){return new Uo(t,e,n)}(s),i];return l?p.push(ws(o)):p.push.apply(p,f(o)),bs(c).callFn(p)}!function(){function t(t,e){void 0===t&&(t=null),void 0===e&&(e=tu),this.parent=t,this.declareLocalVarCallback=e,this.map=new Map,this.referenceNameIndex=0}Object.defineProperty(t,"ROOT_SCOPE",{get:function(){return t._ROOT_SCOPE||(t._ROOT_SCOPE=(new t).set("$event",_s("$event"))),t._ROOT_SCOPE},enumerable:!0,configurable:!0}),t.prototype.get=function(t){for(var e=this;e;){var n=e.map.get(t);if(null!=n)return e!==this&&this.map.set(t,n={lhs:n.lhs,rhs:n.rhs,declared:!1}),n.rhs&&!n.declared&&(this.declareLocalVarCallback(n.lhs,n.rhs),n.declared=!0),n.lhs;e=e.parent}return null},t.prototype.set=function(t,e,n){return!this.map.has(t)||lt("The name "+t+" is already defined in scope to be "+this.map.get(t)),this.map.set(t,{lhs:e,rhs:n,declared:!1}),this},t.prototype.getLocal=function(t){return this.get(t)},t.prototype.nestedScope=function(e){return new t(this,e)},t.prototype.freshReferenceName=function(){for(var t=this;t.parent;)t=t.parent;return"_r"+t.referenceNameIndex++}}();var iu=/^(?!.*\.d\.ts$).*\.ts$/,ou=function ou(t,e){this.symbol=t,this.metadata=e},su=function(){function t(t,e,n,r){this.host=t,this.staticSymbolCache=e,this.summaryResolver=n,this.errorRecorder=r,this.metadataCache=new Map,this.resolvedSymbols=new Map,this.resolvedFilePaths=new Set,this.importAs=new Map,this.symbolResourcePaths=new Map,this.symbolFromFile=new Map,this.knownFileNameToModuleNames=new Map}return t.prototype.resolveSymbol=function(t){return t.members.length>0?this._resolveSymbolMembers(t):this._resolveSymbolFromSummary(t)||this.resolvedSymbols.get(t)||(this._createSymbolsOf(t.filePath),this.resolvedSymbols.get(t))},t.prototype.getImportAs=function(t,e){if(void 0===e&&(e=!0),t.members.length){var n=this.getStaticSymbol(t.filePath,t.name);return(o=this.getImportAs(n,e))?this.getStaticSymbol(o.filePath,o.name,t.members):null}var r=function i(t){return t.replace(Cs,".")}(t.filePath);if(r!==t.filePath){var o,s=function a(t){return t.replace(Ts,"")}(t.name);return n=this.getStaticSymbol(r,s,t.members),(o=this.getImportAs(n,e))?this.getStaticSymbol(function u(t,e){void 0===e&&(e=!1);var n=Ns(As(t),e);return n[0]+".ngsummary"+n[1]}(o.filePath),function c(t){return t+"NgSummary"}(o.name),n.members):null}var l=e&&this.summaryResolver.getImportAs(t)||null;return l||(l=this.importAs.get(t)),l},t.prototype.getResourcePath=function(t){return this.symbolResourcePaths.get(t)||t.filePath},t.prototype.getTypeArity=function(t){if(function e(t){return Ss.test(t)}(t.filePath))return null;for(var n=uu(this.resolveSymbol(t));n&&n.metadata instanceof qt;)n=uu(this.resolveSymbol(n.metadata));return n&&n.metadata&&n.metadata.arity||null},t.prototype.getKnownModuleName=function(t){return this.knownFileNameToModuleNames.get(t)||null},t.prototype.recordImportAs=function(t,e){t.assertNoMembers(),e.assertNoMembers(),this.importAs.set(t,e)},t.prototype.recordModuleNameForFileName=function(t,e){this.knownFileNameToModuleNames.set(t,e)},t.prototype.invalidateFile=function(t){var e,n;this.metadataCache.delete(t),this.resolvedFilePaths.delete(t);var r=this.symbolFromFile.get(t);if(r){this.symbolFromFile.delete(t);try{for(var i=p(r),o=i.next();!o.done;o=i.next()){var s=o.value;this.resolvedSymbols.delete(s),this.importAs.delete(s),this.symbolResourcePaths.delete(s)}}catch(t){e={error:t}}finally{try{o&&!o.done&&(n=i.return)&&n.call(i)}finally{if(e)throw e.error}}}},t.prototype.ignoreErrorsFor=function(t){var e=this.errorRecorder;this.errorRecorder=function(){};try{return t()}finally{this.errorRecorder=e}},t.prototype._resolveSymbolMembers=function(t){var e=t.members,n=this.resolveSymbol(this.getStaticSymbol(t.filePath,t.name));if(!n)return null;var r=uu(n.metadata);if(r instanceof qt)return new ou(t,this.getStaticSymbol(r.filePath,r.name,e));if(!r||"class"!==r.__symbolic){for(var i=r,o=0;o<e.length&&i;o++)i=i[e[o]];return new ou(t,i)}return r.statics&&1===e.length?new ou(t,r.statics[e[0]]):null},t.prototype._resolveSymbolFromSummary=function(t){var e=this.summaryResolver.resolveSummary(t);return e?new ou(t,e.metadata):null},t.prototype.getStaticSymbol=function(t,e,n){return this.staticSymbolCache.get(t,e,n)},t.prototype.hasDecorators=function(t){var e=this.getModuleMetadata(t);return!!e.metadata&&Object.keys(e.metadata).some(function(t){var n=e.metadata[t];return n&&"class"===n.__symbolic&&n.decorators})},t.prototype.getSymbolsOf=function(t){var e=this.summaryResolver.getSymbolsOf(t);if(e)return e;this._createSymbolsOf(t);var n=[];return this.resolvedSymbols.forEach(function(e){e.symbol.filePath===t&&n.push(e.symbol)}),n},t.prototype._createSymbolsOf=function(t){var e,n,r=this;if(!this.resolvedFilePaths.has(t)){this.resolvedFilePaths.add(t);var i=[],o=this.getModuleMetadata(t);if(o.importAs&&this.knownFileNameToModuleNames.set(t,o.importAs),o.exports){var s=function(e){if(e.export)e.export.forEach(function(n){var o,s=o=au(o="string"==typeof n?n:n.as);"string"!=typeof n&&(s=au(n.name));var a=r.resolveModule(e.from,t);if(a){var u=r.getStaticSymbol(a,s),c=r.getStaticSymbol(t,o);i.push(r.createExport(c,u))}});else{var n=a.resolveModule(e.from,t);n&&a.getSymbolsOf(n).forEach(function(e){var n=r.getStaticSymbol(t,e.name);i.push(r.createExport(n,e))})}},a=this;try{for(var u=p(o.exports),c=u.next();!c.done;c=u.next())s(c.value)}catch(t){e={error:t}}finally{try{c&&!c.done&&(n=u.return)&&n.call(u)}finally{if(e)throw e.error}}}if(o.metadata){var l=new Set(Object.keys(o.metadata).map(au)),h=o.origins||{};Object.keys(o.metadata).forEach(function(e){var n=o.metadata[e],s=au(e),a=r.getStaticSymbol(t,s),u=h.hasOwnProperty(e)&&h[e];if(u){var c=r.resolveModule(u,t);c?r.symbolResourcePaths.set(a,c):r.reportError(new Error("Couldn't resolve original symbol for "+u+" from "+t))}i.push(r.createResolvedSymbol(a,t,l,n))})}i.forEach(function(t){return r.resolvedSymbols.set(t.symbol,t)}),this.symbolFromFile.set(t,i.map(function(t){return t.symbol}))}},t.prototype.createResolvedSymbol=function(t,e,n,r){var i,s=this,u=iu.test(t.filePath);if(this.summaryResolver.isLibraryFile(t.filePath)&&!u&&r&&"class"===r.__symbolic)return new ou(t,{__symbolic:"class",arity:r.arity});var c=function(){return i||(i=s.host.getOutputName(e.replace(/((\.ts)|(\.d\.ts)|)$/,".ts").replace(/^.*node_modules[/\\]/,""))),i},l=this,p=ot(r,new(function(r){function i(){return null!==r&&r.apply(this,arguments)||this}return o(i,r),i.prototype.visitStringMap=function(i,o){var s=i.__symbolic;if("function"===s){var u=o.length;o.push.apply(o,f(i.parameters||[]));var p=r.prototype.visitStringMap.call(this,i,o);return o.length=u,p}if("reference"!==s)return"error"===s?a({},i,{fileName:c()}):r.prototype.visitStringMap.call(this,i,o);var h=i.module,d=i.name?au(i.name):i.name;if(!d)return null;var v=void 0;return h?(v=l.resolveModule(h,t.filePath))?{__symbolic:"resolved",symbol:l.getStaticSymbol(v,d),line:i.line,character:i.character,fileName:c()}:{__symbolic:"error",message:"Could not resolve "+h+" relative to "+t.filePath+".",line:i.line,character:i.character,fileName:c()}:o.indexOf(d)>=0?{__symbolic:"reference",name:d}:n.has(d)?l.getStaticSymbol(e,d):void 0},i}(ut)),[]),h=uu(p);return h instanceof qt?this.createExport(t,h):new ou(t,p)},t.prototype.createExport=function(t,e){return t.assertNoMembers(),e.assertNoMembers(),this.summaryResolver.isLibraryFile(t.filePath)&&this.summaryResolver.isLibraryFile(e.filePath)&&this.importAs.set(e,this.getImportAs(t)||t),new ou(t,e)},t.prototype.reportError=function(t,e,n){if(!this.errorRecorder)throw t;this.errorRecorder(t,e&&e.filePath||n)},t.prototype.getModuleMetadata=function(t){var e=this.metadataCache.get(t);if(!e){var n=this.host.getMetadataFor(t);if(n){var r=-1;n.forEach(function(t){t&&t.version>r&&(r=t.version,e=t)})}e||(e={__symbolic:"module",version:4,module:t,metadata:{}}),4!=e.version&&this.reportError(new Error(2==e.version?"Unsupported metadata version "+e.version+" for module "+t+". This module should be compiled with a newer version of ngc":"Metadata version mismatch for module "+t+", found version "+e.version+", expected 4")),this.metadataCache.set(t,e)}return e},t.prototype.getSymbolByModule=function(t,e,n){var r=this.resolveModule(t,n);return r?this.getStaticSymbol(r,e):(this.reportError(new Error("Could not resolve module "+t+(n?" relative to "+n:""))),this.getStaticSymbol("ERROR:"+t,e))},t.prototype.resolveModule=function(t,e){try{return this.host.moduleNameToFileName(t,e)}catch(n){console.error("Could not resolve module '"+t+"' relative to file "+e),this.reportError(n,void 0,e)}return null},t}();
395
394
  /**
396
395
  * @license
397
396
  * Copyright Google Inc. All Rights Reserved.
@@ -419,21 +418,21 @@ var Ya=[Ga.pipeBind1,Ga.pipeBind2,Ga.pipeBind3,Ga.pipeBind4],Za=[Ga.pureFunction
419
418
  *
420
419
  * Use of this source code is governed by an MIT-style license that can be
421
420
  * found in the LICENSE file at https://angular.io/license
422
- */function nu(t){return t.startsWith("___")?t.substr(1):t}function ru(t){return t&&"resolved"===t.__symbolic?t.symbol:t}!function(t){function e(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}o(e,t),e.prototype.addSummary=function(t){var e=this,n=this.unprocessedSymbolSummariesBySymbol.get(t.symbol),r=this.processedSummaryBySymbol.get(t.symbol);if(n||(this.unprocessedSymbolSummariesBySymbol.set(t.symbol,n={symbol:t.symbol,metadata:void 0}),r={symbol:this.processValue(t.symbol,0)},this.processedSummaries.push(r),this.processedSummaryBySymbol.set(t.symbol,r)),!n.metadata&&t.metadata){var i=t.metadata||{};if("class"===i.__symbolic){var o={};Object.keys(i).forEach(function(t){"decorators"!==t&&(o[t]=i[t])}),i=o}else ou(i)&&(function s(t){return ou(t)&&ru(t.expression)instanceof Vt}(i)||function a(t){return ou(t)&&t.expression&&"select"===t.expression.__symbolic&&ru(t.expression.expression)instanceof Vt}
421
+ */function au(t){return t.startsWith("___")?t.substr(1):t}function uu(t){return t&&"resolved"===t.__symbolic?t.symbol:t}!function(t){function e(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}o(e,t),e.prototype.addSummary=function(t){var e=this,n=this.unprocessedSymbolSummariesBySymbol.get(t.symbol),r=this.processedSummaryBySymbol.get(t.symbol);if(n||(this.unprocessedSymbolSummariesBySymbol.set(t.symbol,n={symbol:t.symbol,metadata:void 0}),r={symbol:this.processValue(t.symbol,0)},this.processedSummaries.push(r),this.processedSummaryBySymbol.set(t.symbol,r)),!n.metadata&&t.metadata){var i=t.metadata||{};if("class"===i.__symbolic){var o={};Object.keys(i).forEach(function(t){"decorators"!==t&&(o[t]=i[t])}),i=o}else lu(i)&&(function s(t){return lu(t)&&uu(t.expression)instanceof qt}(i)||function a(t){return lu(t)&&t.expression&&"select"===t.expression.__symbolic&&uu(t.expression.expression)instanceof qt}
423
422
  /**
424
423
  * @license
425
424
  * Copyright Google Inc. All Rights Reserved.
426
425
  *
427
426
  * Use of this source code is governed by an MIT-style license that can be
428
427
  * found in the LICENSE file at https://angular.io/license
429
- */(i)||(i={__symbolic:"error",message:"Complex function calls are not supported."}));if(n.metadata=i,r.metadata=this.processValue(i,1),i instanceof Vt&&this.summaryResolver.isLibraryFile(i.filePath)){var u=this.symbols[this.indexBySymbol.get(i)];(function c(t){return As.test(t)}
428
+ */(i)||(i={__symbolic:"error",message:"Complex function calls are not supported."}));if(n.metadata=i,r.metadata=this.processValue(i,1),i instanceof qt&&this.summaryResolver.isLibraryFile(i.filePath)){var u=this.symbols[this.indexBySymbol.get(i)];(function c(t){return Os.test(t)}
430
429
  /**
431
430
  * @license
432
431
  * Copyright Google Inc. All Rights Reserved.
433
432
  *
434
433
  * Use of this source code is governed by an MIT-style license that can be
435
434
  * found in the LICENSE file at https://angular.io/license
436
- */)(u.name)||this.reexportedBy.set(u,t.symbol)}}if(!n.type&&t.type&&(n.type=t.type,r.type=this.processValue(t.type,0),t.type.summaryKind===Kt.NgModule)){var l=t.type;l.exportedDirectives.concat(l.exportedPipes).forEach(function(t){var n=t.reference;if(e.summaryResolver.isLibraryFile(n.filePath)&&!e.unprocessedSymbolSummariesBySymbol.has(n)){var r=e.summaryResolver.resolveSummary(n);r&&e.addSummary(r)}})}},e.prototype.serialize=function(){var t=this,e=[];return{json:JSON.stringify({moduleName:this.moduleName,summaries:this.processedSummaries,symbols:this.symbols.map(function(n,r){n.assertNoMembers();var i=void 0;if(t.summaryResolver.isLibraryFile(n.filePath)){var o=t.reexportedBy.get(n);if(o)i=t.indexBySymbol.get(o);else{var s=t.unprocessedSymbolSummariesBySymbol.get(n);s&&s.metadata&&"interface"===s.metadata.__symbolic||e.push({symbol:n,exportAs:i=n.name+"_"+r})}}return{__symbol:r,name:n.name,filePath:t.summaryResolver.toSummaryFileName(n.filePath,t.srcFileName),importAs:i}})}),exportAs:e}},e.prototype.processValue=function(t,e){return nt(t,this,e)},e.prototype.visitOther=function(t,e){if(t instanceof Vt){var n=this.symbolResolver.getStaticSymbol(t.filePath,t.name);return{__symbol:this.visitStaticSymbol(n,e),members:t.members}}},e.prototype.visitStringMap=function(e,n){return"resolved"===e.__symbolic?nt(e.symbol,this,n):("error"===e.__symbolic&&(delete e.line,delete e.character),t.prototype.visitStringMap.call(this,e,n))},e.prototype.visitStaticSymbol=function(t,e){var n=this.indexBySymbol.get(t),r=null;if(1&e&&this.summaryResolver.isLibraryFile(t.filePath)){if(this.unprocessedSymbolSummariesBySymbol.has(t))return n;(r=this.loadSummary(t))&&r.metadata instanceof Vt&&(n=this.visitStaticSymbol(r.metadata,e),r=null)}else if(null!=n)return n;return null==n&&(n=this.symbols.length,this.symbols.push(t)),this.indexBySymbol.set(t,n),r&&this.addSummary(r),n},e.prototype.loadSummary=function(t){var e=this.summaryResolver.resolveSummary(t);if(!e){var n=this.symbolResolver.resolveSymbol(t);n&&(e={symbol:n.symbol,metadata:n.metadata})}return e}}(ot);var iu=function(t){function e(e,n){var r=t.call(this)||this;return r.symbolCache=e,r.summaryResolver=n,r}return o(e,t),e.prototype.deserialize=function(t,e){var n=this,r=JSON.parse(e),i=[];this.symbols=r.symbols.map(function(e){return n.symbolCache.get(n.summaryResolver.fromSummaryFileName(e.filePath,t),e.name)}),r.symbols.forEach(function(e,r){var o=n.symbols[r],s=e.importAs;"number"==typeof s?i.push({symbol:o,importAs:n.symbols[s]}):"string"==typeof s&&i.push({symbol:o,importAs:n.symbolCache.get(Ss(t),s)})});var o=nt(r.summaries,this,null);return{moduleName:r.moduleName,summaries:o,importAs:i}},e.prototype.visitStringMap=function(e,n){if("__symbol"in e){var r=this.symbols[e.__symbol],i=e.members;return i.length?this.symbolCache.get(r.filePath,r.name,i):r}return t.prototype.visitStringMap.call(this,e,n)},e}(ot);function ou(t){return t&&"call"===t.__symbolic}
435
+ */)(u.name)||this.reexportedBy.set(u,t.symbol)}}if(!n.type&&t.type&&(n.type=t.type,r.type=this.processValue(t.type,0),t.type.summaryKind===Wt.NgModule)){var l=t.type;l.exportedDirectives.concat(l.exportedPipes).forEach(function(t){var n=t.reference;if(e.summaryResolver.isLibraryFile(n.filePath)&&!e.unprocessedSymbolSummariesBySymbol.has(n)){var r=e.summaryResolver.resolveSummary(n);r&&e.addSummary(r)}})}},e.prototype.serialize=function(){var t=this,e=[];return{json:JSON.stringify({moduleName:this.moduleName,summaries:this.processedSummaries,symbols:this.symbols.map(function(n,r){n.assertNoMembers();var i=void 0;if(t.summaryResolver.isLibraryFile(n.filePath)){var o=t.reexportedBy.get(n);if(o)i=t.indexBySymbol.get(o);else{var s=t.unprocessedSymbolSummariesBySymbol.get(n);s&&s.metadata&&"interface"===s.metadata.__symbolic||e.push({symbol:n,exportAs:i=n.name+"_"+r})}}return{__symbol:r,name:n.name,filePath:t.summaryResolver.toSummaryFileName(n.filePath,t.srcFileName),importAs:i}})}),exportAs:e}},e.prototype.processValue=function(t,e){return ot(t,this,e)},e.prototype.visitOther=function(t,e){if(t instanceof qt){var n=this.symbolResolver.getStaticSymbol(t.filePath,t.name);return{__symbol:this.visitStaticSymbol(n,e),members:t.members}}},e.prototype.visitStringMap=function(e,n){return"resolved"===e.__symbolic?ot(e.symbol,this,n):("error"===e.__symbolic&&(delete e.line,delete e.character),t.prototype.visitStringMap.call(this,e,n))},e.prototype.visitStaticSymbol=function(t,e){var n=this.indexBySymbol.get(t),r=null;if(1&e&&this.summaryResolver.isLibraryFile(t.filePath)){if(this.unprocessedSymbolSummariesBySymbol.has(t))return n;(r=this.loadSummary(t))&&r.metadata instanceof qt&&(n=this.visitStaticSymbol(r.metadata,e),r=null)}else if(null!=n)return n;return null==n&&(n=this.symbols.length,this.symbols.push(t)),this.indexBySymbol.set(t,n),r&&this.addSummary(r),n},e.prototype.loadSummary=function(t){var e=this.summaryResolver.resolveSummary(t);if(!e){var n=this.symbolResolver.resolveSymbol(t);n&&(e={symbol:n.symbol,metadata:n.metadata})}return e}}(ut);var cu=function(t){function e(e,n){var r=t.call(this)||this;return r.symbolCache=e,r.summaryResolver=n,r}return o(e,t),e.prototype.deserialize=function(t,e){var n=this,r=JSON.parse(e),i=[];this.symbols=r.symbols.map(function(e){return n.symbolCache.get(n.summaryResolver.fromSummaryFileName(e.filePath,t),e.name)}),r.symbols.forEach(function(e,r){var o=n.symbols[r],s=e.importAs;"number"==typeof s?i.push({symbol:o,importAs:n.symbols[s]}):"string"==typeof s&&i.push({symbol:o,importAs:n.symbolCache.get(Ps(t),s)})});var o=ot(r.summaries,this,null);return{moduleName:r.moduleName,summaries:o,importAs:i}},e.prototype.visitStringMap=function(e,n){if("__symbol"in e){var r=this.symbols[e.__symbol],i=e.members;return i.length?this.symbolCache.get(r.filePath,r.name,i):r}return t.prototype.visitStringMap.call(this,e,n)},e}(ut);function lu(t){return t&&"call"===t.__symbolic}
437
436
  /**
438
437
  * @license
439
438
  * Copyright Google Inc. All Rights Reserved.
@@ -441,14 +440,14 @@ var Ya=[Ga.pipeBind1,Ga.pipeBind2,Ga.pipeBind3,Ga.pipeBind4],Za=[Ga.pureFunction
441
440
  * Use of this source code is governed by an MIT-style license that can be
442
441
  * found in the LICENSE file at https://angular.io/license
443
442
  */
444
- var su="ngFormattedMessage",au="@angular/core",uu=/^\$.*\$$/,cu={__symbolic:"ignore"},lu=new Set(["useValue","useFactory","data","id","loadChildren"]);function pu(t){return t&&"ignore"==t.__symbolic}var hu=function(){function t(t,e,n,r,i){void 0===n&&(n=[]),void 0===r&&(r=[]);var o=this;this.summaryResolver=t,this.symbolResolver=e,this.errorRecorder=i,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(),n.forEach(function(t){return o._registerDecoratorOrConstructor(o.getStaticSymbol(t.filePath,t.name),t.ctor)}),r.forEach(function(t){return o._registerFunction(o.getStaticSymbol(t.filePath,t.name),t.fn)}),this.annotationForParentClassWithSummaryKind.set(Kt.Directive,[j,V]),this.annotationForParentClassWithSummaryKind.set(Kt.Pipe,[H]),this.annotationForParentClassWithSummaryKind.set(Kt.NgModule,[z]),this.annotationForParentClassWithSummaryKind.set(Kt.Injectable,[W,H,j,V,z])}return t.prototype.componentModuleUrl=function(t){var e=this.findSymbolDeclaration(t);return this.symbolResolver.getResourcePath(e)},t.prototype.resolveExternalReference=function(t,e){var n=void 0;if(!e){var r=this.resolvedExternalReferences.get(n=t.moduleName+":"+t.name);if(r)return r}var i=this.symbolResolver.getSymbolByModule(t.moduleName,t.name,e),o=this.findSymbolDeclaration(i);return e||(this.symbolResolver.recordModuleNameForFileName(i.filePath,t.moduleName),this.symbolResolver.recordImportAs(o,i)),n&&this.resolvedExternalReferences.set(n,o),o},t.prototype.findDeclaration=function(t,e,n){return this.findSymbolDeclaration(this.symbolResolver.getSymbolByModule(t,e,n))},t.prototype.tryFindDeclaration=function(t,e,n){var r=this;return this.symbolResolver.ignoreErrorsFor(function(){return r.findDeclaration(t,e,n)})},t.prototype.findSymbolDeclaration=function(t){var e=this.symbolResolver.resolveSymbol(t);if(e){var n=e.metadata;if(n&&"resolved"===n.__symbolic&&(n=n.symbol),n instanceof Vt)return this.findSymbolDeclaration(e.metadata)}return t},t.prototype.tryAnnotations=function(t){var e=this.errorRecorder;this.errorRecorder=function(t,e){};try{return this.annotations(t)}finally{this.errorRecorder=e}},t.prototype.annotations=function(t){var e=this;return this._annotations(t,function(t,n){return e.simplify(t,n)},this.annotationCache)},t.prototype.shallowAnnotations=function(t){var e=this;return this._annotations(t,function(t,n){return e.simplify(t,n,!0)},this.shallowAnnotationCache)},t.prototype._annotations=function(t,e,n){var r=n.get(t);if(!r){r=[];var i=this.getTypeMetadata(t),o=this.findParentType(t,i);if(o){var s=this.annotations(o);r.push.apply(r,l(s))}var a=[];if(i.decorators&&(a=e(t,i.decorators))&&r.push.apply(r,l(a)),o&&!this.summaryResolver.isLibraryFile(t.filePath)&&this.summaryResolver.isLibraryFile(o.filePath)){var u=this.summaryResolver.resolveSummary(o);if(u&&u.type){var c=this.annotationForParentClassWithSummaryKind.get(u.type.summaryKind);c.some(function(t){return a.some(function(e){return t.isTypeOf(e)})})||this.reportError(Tu(du("Class "+t.name+" in "+t.filePath+" extends from a "+Kt[u.type.summaryKind]+" in another compilation unit without duplicating the decorator",void 0,"Please add a "+c.map(function(t){return t.ngMetadataName}).join(" or ")+" decorator to the class"),t),t)}}n.set(t,r.filter(function(t){return!!t}))}return r},t.prototype.propMetadata=function(t){var e=this,n=this.propertyCache.get(t);if(!n){var r=this.getTypeMetadata(t);n={};var i=this.findParentType(t,r);if(i){var o=this.propMetadata(i);Object.keys(o).forEach(function(t){n[t]=o[t]})}var s=r.members||{};Object.keys(s).forEach(function(r){var i=s[r].find(function(t){return"property"==t.__symbolic||"method"==t.__symbolic}),o=[];n[r]&&o.push.apply(o,l(n[r])),n[r]=o,i&&i.decorators&&o.push.apply(o,l(e.simplify(t,i.decorators)))}),this.propertyCache.set(t,n)}return n},t.prototype.parameters=function(t){var e=this;if(!(t instanceof Vt))return this.reportError(new Error("parameters received "+JSON.stringify(t)+" which is not a StaticSymbol"),t),[];try{var n=this.parameterCache.get(t);if(!n){var r=this.getTypeMetadata(t),i=this.findParentType(t,r),o=r?r.members:null,s=o?o.__ctor__:null;if(s){var a=s.find(function(t){return"constructor"==t.__symbolic}),u=a.parameters||[],c=this.simplify(t,a.parameterDecorators||[]);n=[],u.forEach(function(r,i){var o=[],s=e.trySimplify(t,r);s&&o.push(s);var a=c?c[i]:null;a&&o.push.apply(o,l(a)),n.push(o)})}else i&&(n=this.parameters(i));n||(n=[]),this.parameterCache.set(t,n)}return n}catch(e){throw console.error("Failed on type "+JSON.stringify(t)+" with error "+e),e}},t.prototype._methodNames=function(t){var e=this.methodCache.get(t);if(!e){var n=this.getTypeMetadata(t);e={};var r=this.findParentType(t,n);if(r){var i=this._methodNames(r);Object.keys(i).forEach(function(t){e[t]=i[t]})}var o=n.members||{};Object.keys(o).forEach(function(t){var n=o[t].some(function(t){return"method"==t.__symbolic});e[t]=e[t]||n}),this.methodCache.set(t,e)}return e},t.prototype._staticMembers=function(t){var e=this.staticCache.get(t);if(!e){var n=this.getTypeMetadata(t);e=Object.keys(n.statics||{}),this.staticCache.set(t,e)}return e},t.prototype.findParentType=function(t,e){var n=this.trySimplify(t,e.extends);if(n instanceof Vt)return n},t.prototype.hasLifecycleHook=function(t,e){t instanceof Vt||this.reportError(new Error("hasLifecycleHook received "+JSON.stringify(t)+" which is not a StaticSymbol"),t);try{return!!this._methodNames(t)[e]}catch(e){throw console.error("Failed on type "+JSON.stringify(t)+" with error "+e),e}},t.prototype.guards=function(t){var e,n;if(!(t instanceof Vt))return this.reportError(new Error("guards received "+JSON.stringify(t)+" which is not a StaticSymbol"),t),{};var r=this._staticMembers(t),i={};try{for(var o=u(r),s=o.next();!s.done;s=o.next()){var a=s.value;if(a.endsWith("TypeGuard")){var c=a.substr(0,a.length-"TypeGuard".length),l=void 0;c.endsWith("UseIf")?(c=a.substr(0,c.length-"UseIf".length),l="UseIf"):l=this.getStaticSymbol(t.filePath,t.name,[a]),i[c]=l}}}catch(t){e={error:t}}finally{try{s&&!s.done&&(n=o.return)&&n.call(o)}finally{if(e)throw e.error}}return i},t.prototype._registerDecoratorOrConstructor=function(t,e){this.conversionMap.set(t,function(t,n){return new(e.bind.apply(e,l([void 0],n)))})},t.prototype._registerFunction=function(t,e){this.conversionMap.set(t,function(t,n){return e.apply(void 0,n)})},t.prototype.initializeConversionMap=function(){this._registerDecoratorOrConstructor(this.findDeclaration(au,"Injectable"),W),this.injectionToken=this.findDeclaration(au,"InjectionToken"),this.opaqueToken=this.findDeclaration(au,"OpaqueToken"),this.ROUTES=this.tryFindDeclaration("@angular/router","ROUTES"),this.ANALYZE_FOR_ENTRY_COMPONENTS=this.findDeclaration(au,"ANALYZE_FOR_ENTRY_COMPONENTS"),this._registerDecoratorOrConstructor(this.findDeclaration(au,"Host"),Y),this._registerDecoratorOrConstructor(this.findDeclaration(au,"Self"),G),this._registerDecoratorOrConstructor(this.findDeclaration(au,"SkipSelf"),X),this._registerDecoratorOrConstructor(this.findDeclaration(au,"Inject"),N),this._registerDecoratorOrConstructor(this.findDeclaration(au,"Optional"),Q),this._registerDecoratorOrConstructor(this.findDeclaration(au,"Attribute"),O),this._registerDecoratorOrConstructor(this.findDeclaration(au,"ContentChild"),I),this._registerDecoratorOrConstructor(this.findDeclaration(au,"ContentChildren"),M),this._registerDecoratorOrConstructor(this.findDeclaration(au,"ViewChild"),D),this._registerDecoratorOrConstructor(this.findDeclaration(au,"ViewChildren"),R),this._registerDecoratorOrConstructor(this.findDeclaration(au,"Input"),B),this._registerDecoratorOrConstructor(this.findDeclaration(au,"Output"),q),this._registerDecoratorOrConstructor(this.findDeclaration(au,"Pipe"),H),this._registerDecoratorOrConstructor(this.findDeclaration(au,"HostBinding"),K),this._registerDecoratorOrConstructor(this.findDeclaration(au,"HostListener"),U),this._registerDecoratorOrConstructor(this.findDeclaration(au,"Directive"),j),this._registerDecoratorOrConstructor(this.findDeclaration(au,"Component"),V),this._registerDecoratorOrConstructor(this.findDeclaration(au,"NgModule"),z),this._registerDecoratorOrConstructor(this.findDeclaration(au,"Host"),Y),this._registerDecoratorOrConstructor(this.findDeclaration(au,"Self"),G),this._registerDecoratorOrConstructor(this.findDeclaration(au,"SkipSelf"),X),this._registerDecoratorOrConstructor(this.findDeclaration(au,"Optional"),Q)},t.prototype.getStaticSymbol=function(t,e,n){return this.symbolResolver.getStaticSymbol(t,e,n)},t.prototype.trySimplify=function(t,e){var n=this.errorRecorder;this.errorRecorder=function(t,e){};var r=this.simplify(t,e);return this.errorRecorder=n,r},t.prototype.simplify=function(t,e,n){void 0===n&&(n=!1);var r,i=this,o=Su.empty,s=new Map;try{r=function t(e,n,r,a){function c(t){var e=i.symbolResolver.resolveSymbol(t);return e?e.metadata:null}function p(n){return t(e,n,r,0)}function h(n,o){if(n===e)return t(n,o,r+1,a);try{return t(n,o,r+1,a)}catch(t){if(!vu(t))throw t;var s=t.chain?"references '"+t.symbol.name+"'":function u(t){if(t.summary)return t.summary;switch(t.message){case yu:if(t.context&&t.context.className)return"references non-exported class "+t.context.className;break;case mu:return"is not initialized";case gu:return"is a destructured variable";case _u:return"could not be resolved";case bu:return t.context&&t.context.name?"calls '"+t.context.name+"'":"calls a function";case wu:return t.context&&t.context.name?"references local variable "+t.context.name:"references a local variable"}return"contains the error"}(t);i.error({message:t.message,advise:t.advise,context:t.context,chain:{message:"'"+n.name+"' "+s,position:t.position,next:t.chain},symbol:n},e)}}return function n(f){var d,v,y,m;if(Eu(f))return f;if(f instanceof Array){var g=[];try{for(var _=u(f),b=_.next();!b.done;b=_.next()){var w=b.value;if(w&&"spread"===w.__symbolic){var x=p(w.expression);if(Array.isArray(x)){try{for(var E=u(x),S=E.next();!S.done;S=E.next())g.push(S.value)}catch(t){y={error:t}}finally{try{S&&!S.done&&(m=E.return)&&m.call(E)}finally{if(y)throw y.error}}continue}}var C=n(w);pu(C)||g.push(C)}}catch(t){d={error:t}}finally{try{b&&!b.done&&(v=_.return)&&v.call(_)}finally{if(d)throw d.error}}return g}if(f instanceof Vt)return f===i.injectionToken||i.conversionMap.has(f)||a>0&&!f.members.length?f:null!=(D=c(T=f))?h(T,D):T;if(f){if(f.__symbolic){var T=void 0;switch(f.__symbolic){case"binop":var P=n(f.left);if(pu(P))return P;var A=n(f.right);if(pu(A))return A;switch(f.operator){case"&&":return P&&A;case"||":return P||A;case"|":return P|A;case"^":return P^A;case"&":return P&A;case"==":return P==A;case"!=":return P!=A;case"===":return P===A;case"!==":return P!==A;case"<":return P<A;case">":return P>A;case"<=":return P<=A;case">=":return P>=A;case"<<":return P<<A;case">>":return P>>A;case"+":return P+A;case"-":return P-A;case"*":return P*A;case"/":return P/A;case"%":return P%A}return null;case"if":return n(n(f.condition)?f.thenExpression:f.elseExpression);case"pre":var N=n(f.operand);if(pu(N))return N;switch(f.operator){case"+":return N;case"-":return-N;case"!":return!N;case"~":return~N}return null;case"index":var k=p(f.expression),O=p(f.index);return k&&Eu(O)?k[O]:null;case"select":var M=f.member,I=e,R=n(f.expression);if(R instanceof Vt){var D,j=R.members.concat(M);return null!=(D=c(I=i.getStaticSymbol(R.filePath,R.name,j)))?h(I,D):I}return R&&Eu(M)?h(I,R[M]):null;case"reference":var L=o.resolve(f.name);if(L!=Su.missing)return L;break;case"resolved":try{return n(f.symbol)}catch(t){throw vu(t)&&null!=f.fileName&&null!=f.line&&null!=f.character&&(t.position={fileName:f.fileName,line:f.line,column:f.character}),t}case"class":case"function":return e;case"new":case"call":if((T=t(e,f.expression,r+1,0))instanceof Vt){if(T===i.injectionToken||T===i.opaqueToken)return e;var F=f.arguments||[],V=i.conversionMap.get(T);if(V){var H=F.map(function(t){return h(e,t)}).map(function(t){return pu(t)?void 0:t});return V(e,H)}return function B(t,a,u,c){if(a&&"function"==a.__symbolic){s.get(t)&&i.error({message:"Recursion is not supported",summary:"called '"+t.name+"' recursively",value:a},t);try{var p=a.value;if(p&&(0!=r||"error"!=p.__symbolic)){var f=a.parameters,d=a.defaults;u=u.map(function(t){return h(e,t)}).map(function(t){return pu(t)?void 0:t}),d&&d.length>u.length&&u.push.apply(u,l(d.slice(u.length).map(function(t){return n(t)}))),s.set(t,!0);for(var v=Su.build(),y=0;y<f.length;y++)v.define(f[y],u[y]);var m,g=o;try{o=v.done(),m=h(t,p)}finally{o=g}return m}}finally{s.delete(t)}}if(0===r)return cu;var _=void 0;if(c&&"resolved"==c.__symbolic){var b=c.line,w=c.character,x=c.fileName;null!=x&&null!=b&&null!=w&&(_={fileName:x,line:b,column:w})}i.error({message:bu,context:t,value:a,position:_},e)}(T,c(T),F,f.expression)}return cu;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},e),cu;case"ignore":return f}return null}return function K(t,e){if(!t)return{};var n={};return Object.keys(t).forEach(function(r){var i=e(t[r],r);pu(i)||(uu.test(r)?Object.defineProperty(n,r,{enumerable:!1,configurable:!0,value:i}):n[r]=i)}),n}(f,function(o,s){if(lu.has(s)){if("useValue"===s&&"provide"in f){var u=n(f.provide);if(u===i.ROUTES||u==i.ANALYZE_FOR_ENTRY_COMPONENTS)return n(o)}return function c(n){return t(e,n,r,a+1)}(o)}return n(o)})}return cu}(n)}(t,e,0,n?1:0)}catch(e){if(!this.errorRecorder)throw Tu(e,t);this.reportError(e,t)}if(!pu(r))return r},t.prototype.getTypeMetadata=function(t){var e=this.symbolResolver.resolveSymbol(t);return e&&e.metadata?e.metadata:{__symbolic:"class"}},t.prototype.reportError=function(t,e,n){if(!this.errorRecorder)throw t;this.errorRecorder(Tu(t,e),e&&e.filePath||n)},t.prototype.error=function(t,e){this.reportError(du(t.message,t.summary,t.advise,t.position,t.symbol,t.context,t.chain),e)},t}(),fu="ngMetadataError";function du(t,e,n,r,i,o,s){var a=ut(t);return a[fu]=!0,n&&(a.advise=n),r&&(a.position=r),e&&(a.summary=e),o&&(a.context=o),s&&(a.chain=s),i&&(a.symbol=i),a}function vu(t){return!!t[fu]}var yu="Reference to non-exported class",mu="Variable not initialized",gu="Destructuring not supported",_u="Could not resolve type",bu="Function call not supported",wu="Reference to a local symbol",xu="Lambda not supported";function Eu(t){return null===t||"function"!=typeof t&&"object"!=typeof t}var Su=function(){function t(){}return t.build=function(){var e=new Map;return{define:function(t,n){return e.set(t,n),this},done:function(){return e.size>0?new Cu(e):t.empty}}},t.missing={},t.empty={resolve:function(e){return t.missing}},t}(),Cu=function(t){function e(e){var n=t.call(this)||this;return n.bindings=e,n}return o(e,t),e.prototype.resolve=function(t){return this.bindings.has(t)?this.bindings.get(t):Su.missing},e}(Su);function Tu(t,e){return vu(t)?function r(t){var e=ut(function t(e,n){if(void 0===n&&(n=0),!e)return"";var r=e.position?e.position.fileName+"("+(e.position.line+1)+","+(e.position.column+1)+")":"",i=(r&&0===n?r+": ":"")+e.message+(r&&0!==n?" at "+r:"");return""+function t(e){if(e<=0)return"";if(e<6)return[""," "," "," "," "," "][e];var n=t(Math.floor(e/2));return n+n+(e%2==1?" ":"")}(n)+i+(e.next&&"\n"+t(e.next,n+2)||"")}(t)+".");return e[su]=!0,e.chain=t,e.position=t.position,e}(function t(e,n){return{message:function r(t,e){switch(t){case yu:if(e&&e.className)return"References to a non-exported class are not supported in decorators but "+e.className+" was referenced.";break;case mu:return"Only initialized variables and constants can be referenced in decorators because the value of this variable is needed by the template compiler";case gu:return"Referencing an exported destructured variable or constant is not supported in decorators and this value is needed by the template compiler";case _u:if(e&&e.typeName)return"Could not resolve type "+e.typeName;break;case bu:return e&&e.name?"Function calls are not supported in decorators but '"+e.name+"' was called":"Function calls are not supported in decorators";case wu:if(e&&e.name)return"Reference to a local (non-exported) symbols are not supported in decorators but '"+e.name+"' was referenced";break;case xu:return"Function expressions are not supported in decorators"}return t}(e.message,e.context)+(e.symbol?" in '"+e.symbol.name+"'":""),position:e.position,next:e.next?t(e.next,n):n?{message:n}:void 0}}({message:"Error during template compile of '"+e.name+"'",position:t.position,next:{message:t.message,next:t.chain,context:t.context,symbol:t.symbol}},t.advise||function n(t,e){switch(t){case yu:if(e&&e.className)return"Consider exporting '"+e.className+"'";break;case gu:return"Consider simplifying to avoid destructuring";case wu:if(e&&e.name)return"Consider exporting '"+e.name+"'";break;case xu:return"Consider changing the function expression into an exported function"}}(t.message,t.context))):t}
443
+ var pu="ngFormattedMessage",hu="@angular/core",fu=/^\$.*\$$/,du={__symbolic:"ignore"},vu=new Set(["useValue","useFactory","data","id","loadChildren"]);function yu(t){return t&&"ignore"==t.__symbolic}var mu=function(){function t(t,e,n,r,i){void 0===n&&(n=[]),void 0===r&&(r=[]);var o=this;this.summaryResolver=t,this.symbolResolver=e,this.errorRecorder=i,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(),n.forEach(function(t){return o._registerDecoratorOrConstructor(o.getStaticSymbol(t.filePath,t.name),t.ctor)}),r.forEach(function(t){return o._registerFunction(o.getStaticSymbol(t.filePath,t.name),t.fn)}),this.annotationForParentClassWithSummaryKind.set(Wt.Directive,[V,q]),this.annotationForParentClassWithSummaryKind.set(Wt.Pipe,[K]),this.annotationForParentClassWithSummaryKind.set(Wt.NgModule,[G]),this.annotationForParentClassWithSummaryKind.set(Wt.Injectable,[X,K,V,q,G])}return t.prototype.componentModuleUrl=function(t){var e=this.findSymbolDeclaration(t);return this.symbolResolver.getResourcePath(e)},t.prototype.resolveExternalReference=function(t,e){var n=void 0;if(!e){var r=this.resolvedExternalReferences.get(n=t.moduleName+":"+t.name);if(r)return r}var i=this.symbolResolver.getSymbolByModule(t.moduleName,t.name,e),o=this.findSymbolDeclaration(i);return e||(this.symbolResolver.recordModuleNameForFileName(i.filePath,t.moduleName),this.symbolResolver.recordImportAs(o,i)),n&&this.resolvedExternalReferences.set(n,o),o},t.prototype.findDeclaration=function(t,e,n){return this.findSymbolDeclaration(this.symbolResolver.getSymbolByModule(t,e,n))},t.prototype.tryFindDeclaration=function(t,e,n){var r=this;return this.symbolResolver.ignoreErrorsFor(function(){return r.findDeclaration(t,e,n)})},t.prototype.findSymbolDeclaration=function(t){var e=this.symbolResolver.resolveSymbol(t);if(e){var n=e.metadata;if(n&&"resolved"===n.__symbolic&&(n=n.symbol),n instanceof qt)return this.findSymbolDeclaration(e.metadata)}return t},t.prototype.tryAnnotations=function(t){var e=this.errorRecorder;this.errorRecorder=function(t,e){};try{return this.annotations(t)}finally{this.errorRecorder=e}},t.prototype.annotations=function(t){var e=this;return this._annotations(t,function(t,n){return e.simplify(t,n)},this.annotationCache)},t.prototype.shallowAnnotations=function(t){var e=this;return this._annotations(t,function(t,n){return e.simplify(t,n,!0)},this.shallowAnnotationCache)},t.prototype._annotations=function(t,e,n){var r=n.get(t);if(!r){r=[];var i=this.getTypeMetadata(t),o=this.findParentType(t,i);if(o){var s=this.annotations(o);r.push.apply(r,f(s))}var a=[];if(i.decorators&&(a=e(t,i.decorators))&&r.push.apply(r,f(a)),o&&!this.summaryResolver.isLibraryFile(t.filePath)&&this.summaryResolver.isLibraryFile(o.filePath)){var u=this.summaryResolver.resolveSummary(o);if(u&&u.type){var c=this.annotationForParentClassWithSummaryKind.get(u.type.summaryKind);c.some(function(t){return a.some(function(e){return t.isTypeOf(e)})})||this.reportError(Ou(_u("Class "+t.name+" in "+t.filePath+" extends from a "+Wt[u.type.summaryKind]+" in another compilation unit without duplicating the decorator",void 0,"Please add a "+c.map(function(t){return t.ngMetadataName}).join(" or ")+" decorator to the class"),t),t)}}n.set(t,r.filter(function(t){return!!t}))}return r},t.prototype.propMetadata=function(t){var e=this,n=this.propertyCache.get(t);if(!n){var r=this.getTypeMetadata(t);n={};var i=this.findParentType(t,r);if(i){var o=this.propMetadata(i);Object.keys(o).forEach(function(t){n[t]=o[t]})}var s=r.members||{};Object.keys(s).forEach(function(r){var i=s[r].find(function(t){return"property"==t.__symbolic||"method"==t.__symbolic}),o=[];n[r]&&o.push.apply(o,f(n[r])),n[r]=o,i&&i.decorators&&o.push.apply(o,f(e.simplify(t,i.decorators)))}),this.propertyCache.set(t,n)}return n},t.prototype.parameters=function(t){var e=this;if(!(t instanceof qt))return this.reportError(new Error("parameters received "+JSON.stringify(t)+" which is not a StaticSymbol"),t),[];try{var n=this.parameterCache.get(t);if(!n){var r=this.getTypeMetadata(t),i=this.findParentType(t,r),o=r?r.members:null,s=o?o.__ctor__:null;if(s){var a=s.find(function(t){return"constructor"==t.__symbolic}),u=a.parameters||[],c=this.simplify(t,a.parameterDecorators||[]);n=[],u.forEach(function(r,i){var o=[],s=e.trySimplify(t,r);s&&o.push(s);var a=c?c[i]:null;a&&o.push.apply(o,f(a)),n.push(o)})}else i&&(n=this.parameters(i));n||(n=[]),this.parameterCache.set(t,n)}return n}catch(e){throw console.error("Failed on type "+JSON.stringify(t)+" with error "+e),e}},t.prototype._methodNames=function(t){var e=this.methodCache.get(t);if(!e){var n=this.getTypeMetadata(t);e={};var r=this.findParentType(t,n);if(r){var i=this._methodNames(r);Object.keys(i).forEach(function(t){e[t]=i[t]})}var o=n.members||{};Object.keys(o).forEach(function(t){var n=o[t].some(function(t){return"method"==t.__symbolic});e[t]=e[t]||n}),this.methodCache.set(t,e)}return e},t.prototype._staticMembers=function(t){var e=this.staticCache.get(t);if(!e){var n=this.getTypeMetadata(t);e=Object.keys(n.statics||{}),this.staticCache.set(t,e)}return e},t.prototype.findParentType=function(t,e){var n=this.trySimplify(t,e.extends);if(n instanceof qt)return n},t.prototype.hasLifecycleHook=function(t,e){t instanceof qt||this.reportError(new Error("hasLifecycleHook received "+JSON.stringify(t)+" which is not a StaticSymbol"),t);try{return!!this._methodNames(t)[e]}catch(e){throw console.error("Failed on type "+JSON.stringify(t)+" with error "+e),e}},t.prototype.guards=function(t){var e,n;if(!(t instanceof qt))return this.reportError(new Error("guards received "+JSON.stringify(t)+" which is not a StaticSymbol"),t),{};var r=this._staticMembers(t),i={};try{for(var o=p(r),s=o.next();!s.done;s=o.next()){var a=s.value;if(a.endsWith("TypeGuard")){var u=a.substr(0,a.length-"TypeGuard".length),c=void 0;u.endsWith("UseIf")?(u=a.substr(0,u.length-"UseIf".length),c="UseIf"):c=this.getStaticSymbol(t.filePath,t.name,[a]),i[u]=c}}}catch(t){e={error:t}}finally{try{s&&!s.done&&(n=o.return)&&n.call(o)}finally{if(e)throw e.error}}return i},t.prototype._registerDecoratorOrConstructor=function(t,e){this.conversionMap.set(t,function(t,n){return new(e.bind.apply(e,f([void 0],n)))})},t.prototype._registerFunction=function(t,e){this.conversionMap.set(t,function(t,n){return e.apply(void 0,n)})},t.prototype.initializeConversionMap=function(){this._registerDecoratorOrConstructor(this.findDeclaration(hu,"Injectable"),X),this.injectionToken=this.findDeclaration(hu,"InjectionToken"),this.opaqueToken=this.findDeclaration(hu,"OpaqueToken"),this.ROUTES=this.tryFindDeclaration("@angular/router","ROUTES"),this.ANALYZE_FOR_ENTRY_COMPONENTS=this.findDeclaration(hu,"ANALYZE_FOR_ENTRY_COMPONENTS"),this._registerDecoratorOrConstructor(this.findDeclaration(hu,"Host"),J),this._registerDecoratorOrConstructor(this.findDeclaration(hu,"Self"),Z),this._registerDecoratorOrConstructor(this.findDeclaration(hu,"SkipSelf"),$),this._registerDecoratorOrConstructor(this.findDeclaration(hu,"Inject"),M),this._registerDecoratorOrConstructor(this.findDeclaration(hu,"Optional"),Y),this._registerDecoratorOrConstructor(this.findDeclaration(hu,"Attribute"),R),this._registerDecoratorOrConstructor(this.findDeclaration(hu,"ContentChild"),j),this._registerDecoratorOrConstructor(this.findDeclaration(hu,"ContentChildren"),D),this._registerDecoratorOrConstructor(this.findDeclaration(hu,"ViewChild"),F),this._registerDecoratorOrConstructor(this.findDeclaration(hu,"ViewChildren"),L),this._registerDecoratorOrConstructor(this.findDeclaration(hu,"Input"),U),this._registerDecoratorOrConstructor(this.findDeclaration(hu,"Output"),z),this._registerDecoratorOrConstructor(this.findDeclaration(hu,"Pipe"),K),this._registerDecoratorOrConstructor(this.findDeclaration(hu,"HostBinding"),W),this._registerDecoratorOrConstructor(this.findDeclaration(hu,"HostListener"),Q),this._registerDecoratorOrConstructor(this.findDeclaration(hu,"Directive"),V),this._registerDecoratorOrConstructor(this.findDeclaration(hu,"Component"),q),this._registerDecoratorOrConstructor(this.findDeclaration(hu,"NgModule"),G),this._registerDecoratorOrConstructor(this.findDeclaration(hu,"Host"),J),this._registerDecoratorOrConstructor(this.findDeclaration(hu,"Self"),Z),this._registerDecoratorOrConstructor(this.findDeclaration(hu,"SkipSelf"),$),this._registerDecoratorOrConstructor(this.findDeclaration(hu,"Optional"),Y)},t.prototype.getStaticSymbol=function(t,e,n){return this.symbolResolver.getStaticSymbol(t,e,n)},t.prototype.trySimplify=function(t,e){var n=this.errorRecorder;this.errorRecorder=function(t,e){};var r=this.simplify(t,e);return this.errorRecorder=n,r},t.prototype.simplify=function(t,e,n){void 0===n&&(n=!1);var r,i=this,o=Nu.empty,s=new Map;try{r=function t(e,n,r,a){function u(t){var e=i.symbolResolver.resolveSymbol(t);return e?e.metadata:null}function c(n){return t(e,n,r,0)}function l(n,o){if(n===e)return t(n,o,r+1,a);try{return t(n,o,r+1,a)}catch(t){if(!bu(t))throw t;var s=t.chain?"references '"+t.symbol.name+"'":function u(t){if(t.summary)return t.summary;switch(t.message){case wu:if(t.context&&t.context.className)return"references non-exported class "+t.context.className;break;case xu:return"is not initialized";case Eu:return"is a destructured variable";case Su:return"could not be resolved";case Cu:return t.context&&t.context.name?"calls '"+t.context.name+"'":"calls a function";case Tu:return t.context&&t.context.name?"references local variable "+t.context.name:"references a local variable"}return"contains the error"}(t);i.error({message:t.message,advise:t.advise,context:t.context,chain:{message:"'"+n.name+"' "+s,position:t.position,next:t.chain},symbol:n},e)}}return function n(h){var d,v,y,m;if(Au(h))return h;if(h instanceof Array){var g=[];try{for(var _=p(h),b=_.next();!b.done;b=_.next()){var w=b.value;if(w&&"spread"===w.__symbolic){var x=c(w.expression);if(Array.isArray(x)){try{for(var E=p(x),S=E.next();!S.done;S=E.next())g.push(S.value)}catch(t){y={error:t}}finally{try{S&&!S.done&&(m=E.return)&&m.call(E)}finally{if(y)throw y.error}}continue}}var C=n(w);yu(C)||g.push(C)}}catch(t){d={error:t}}finally{try{b&&!b.done&&(v=_.return)&&v.call(_)}finally{if(d)throw d.error}}return g}if(h instanceof qt)return h===i.injectionToken||i.conversionMap.has(h)||a>0&&!h.members.length?h:null!=(D=u(T=h))?l(T,D):T;if(h){if(h.__symbolic){var T=void 0;switch(h.__symbolic){case"binop":var P=n(h.left);if(yu(P))return P;var A=n(h.right);if(yu(A))return A;switch(h.operator){case"&&":return P&&A;case"||":return P||A;case"|":return P|A;case"^":return P^A;case"&":return P&A;case"==":return P==A;case"!=":return P!=A;case"===":return P===A;case"!==":return P!==A;case"<":return P<A;case">":return P>A;case"<=":return P<=A;case">=":return P>=A;case"<<":return P<<A;case">>":return P>>A;case"+":return P+A;case"-":return P-A;case"*":return P*A;case"/":return P/A;case"%":return P%A}return null;case"if":return n(n(h.condition)?h.thenExpression:h.elseExpression);case"pre":var N=n(h.operand);if(yu(N))return N;switch(h.operator){case"+":return N;case"-":return-N;case"!":return!N;case"~":return~N}return null;case"index":var k=c(h.expression),O=c(h.index);return k&&Au(O)?k[O]:null;case"select":var M=h.member,I=e,R=n(h.expression);if(R instanceof qt){var D,j=R.members.concat(M);return null!=(D=u(I=i.getStaticSymbol(R.filePath,R.name,j)))?l(I,D):I}return R&&Au(M)?l(I,R[M]):null;case"reference":var L=o.resolve(h.name);if(L!=Nu.missing)return L;break;case"resolved":try{return n(h.symbol)}catch(t){throw bu(t)&&null!=h.fileName&&null!=h.line&&null!=h.character&&(t.position={fileName:h.fileName,line:h.line,column:h.character}),t}case"class":case"function":return e;case"new":case"call":if((T=t(e,h.expression,r+1,0))instanceof qt){if(T===i.injectionToken||T===i.opaqueToken)return e;var F=h.arguments||[],V=i.conversionMap.get(T);if(V){var H=F.map(function(t){return l(e,t)}).map(function(t){return yu(t)?void 0:t});return V(e,H)}return function B(t,a,u,c){if(a&&"function"==a.__symbolic){s.get(t)&&i.error({message:"Recursion is not supported",summary:"called '"+t.name+"' recursively",value:a},t);try{var p=a.value;if(p&&(0!=r||"error"!=p.__symbolic)){var h=a.parameters,d=a.defaults;u=u.map(function(t){return l(e,t)}).map(function(t){return yu(t)?void 0:t}),d&&d.length>u.length&&u.push.apply(u,f(d.slice(u.length).map(function(t){return n(t)}))),s.set(t,!0);for(var v=Nu.build(),y=0;y<h.length;y++)v.define(h[y],u[y]);var m,g=o;try{o=v.done(),m=l(t,p)}finally{o=g}return m}}finally{s.delete(t)}}if(0===r)return du;var _=void 0;if(c&&"resolved"==c.__symbolic){var b=c.line,w=c.character,x=c.fileName;null!=x&&null!=b&&null!=w&&(_={fileName:x,line:b,column:w})}i.error({message:Cu,context:t,value:a,position:_},e)}(T,u(T),F,h.expression)}return du;case"error":var q=h.message;return i.error(null!=h.line?{message:q,context:h.context,value:h,position:{fileName:h.fileName,line:h.line,column:h.character}}:{message:q,context:h.context},e),du;case"ignore":return h}return null}return function K(t,e){if(!t)return{};var n={};return Object.keys(t).forEach(function(r){var i=e(t[r],r);yu(i)||(fu.test(r)?Object.defineProperty(n,r,{enumerable:!1,configurable:!0,value:i}):n[r]=i)}),n}(h,function(o,s){if(vu.has(s)){if("useValue"===s&&"provide"in h){var u=n(h.provide);if(u===i.ROUTES||u==i.ANALYZE_FOR_ENTRY_COMPONENTS)return n(o)}return function c(n){return t(e,n,r,a+1)}(o)}return n(o)})}return du}(n)}(t,e,0,n?1:0)}catch(e){if(!this.errorRecorder)throw Ou(e,t);this.reportError(e,t)}if(!yu(r))return r},t.prototype.getTypeMetadata=function(t){var e=this.symbolResolver.resolveSymbol(t);return e&&e.metadata?e.metadata:{__symbolic:"class"}},t.prototype.reportError=function(t,e,n){if(!this.errorRecorder)throw t;this.errorRecorder(Ou(t,e),e&&e.filePath||n)},t.prototype.error=function(t,e){this.reportError(_u(t.message,t.summary,t.advise,t.position,t.symbol,t.context,t.chain),e)},t}(),gu="ngMetadataError";function _u(t,e,n,r,i,o,s){var a=pt(t);return a[gu]=!0,n&&(a.advise=n),r&&(a.position=r),e&&(a.summary=e),o&&(a.context=o),s&&(a.chain=s),i&&(a.symbol=i),a}function bu(t){return!!t[gu]}var wu="Reference to non-exported class",xu="Variable not initialized",Eu="Destructuring not supported",Su="Could not resolve type",Cu="Function call not supported",Tu="Reference to a local symbol",Pu="Lambda not supported";function Au(t){return null===t||"function"!=typeof t&&"object"!=typeof t}var Nu=function(){function t(){}return t.build=function(){var e=new Map;return{define:function(t,n){return e.set(t,n),this},done:function(){return e.size>0?new ku(e):t.empty}}},t.missing={},t.empty={resolve:function(e){return t.missing}},t}(),ku=function(t){function e(e){var n=t.call(this)||this;return n.bindings=e,n}return o(e,t),e.prototype.resolve=function(t){return this.bindings.has(t)?this.bindings.get(t):Nu.missing},e}(Nu);function Ou(t,e){return bu(t)?function r(t){var e=pt(function t(e,n){if(void 0===n&&(n=0),!e)return"";var r=e.position?e.position.fileName+"("+(e.position.line+1)+","+(e.position.column+1)+")":"",i=(r&&0===n?r+": ":"")+e.message+(r&&0!==n?" at "+r:"");return""+function t(e){if(e<=0)return"";if(e<6)return[""," "," "," "," "," "][e];var n=t(Math.floor(e/2));return n+n+(e%2==1?" ":"")}(n)+i+(e.next&&"\n"+t(e.next,n+2)||"")}(t)+".");return e[pu]=!0,e.chain=t,e.position=t.position,e}(function t(e,n){return{message:function r(t,e){switch(t){case wu:if(e&&e.className)return"References to a non-exported class are not supported in decorators but "+e.className+" was referenced.";break;case xu:return"Only initialized variables and constants can be referenced in decorators because the value of this variable is needed by the template compiler";case Eu:return"Referencing an exported destructured variable or constant is not supported in decorators and this value is needed by the template compiler";case Su:if(e&&e.typeName)return"Could not resolve type "+e.typeName;break;case Cu:return e&&e.name?"Function calls are not supported in decorators but '"+e.name+"' was called":"Function calls are not supported in decorators";case Tu:if(e&&e.name)return"Reference to a local (non-exported) symbols are not supported in decorators but '"+e.name+"' was referenced";break;case Pu:return"Function expressions are not supported in decorators"}return t}(e.message,e.context)+(e.symbol?" in '"+e.symbol.name+"'":""),position:e.position,next:e.next?t(e.next,n):n?{message:n}:void 0}}({message:"Error during template compile of '"+e.name+"'",position:t.position,next:{message:t.message,next:t.chain,context:t.context,symbol:t.symbol}},t.advise||function n(t,e){switch(t){case wu:if(e&&e.className)return"Consider exporting '"+e.className+"'";break;case Eu:return"Consider simplifying to avoid destructuring";case Tu:if(e&&e.name)return"Consider exporting '"+e.name+"'";break;case Pu:return"Consider changing the function expression into an exported function"}}(t.message,t.context))):t}
445
444
  /**
446
445
  * @license
447
446
  * Copyright Google Inc. All Rights Reserved.
448
447
  *
449
448
  * Use of this source code is governed by an MIT-style license that can be
450
449
  * found in the LICENSE file at https://angular.io/license
451
- */var Pu=function(){function t(t,e){this.host=t,this.staticSymbolCache=e,this.summaryCache=new Map,this.loadedFilePaths=new Map,this.importAs=new Map,this.knownFileNameToModuleNames=new Map}return t.prototype.isLibraryFile=function(t){return!this.host.isSourceFile(Cs(t))},t.prototype.toSummaryFileName=function(t,e){return this.host.toSummaryFileName(t,e)},t.prototype.fromSummaryFileName=function(t,e){return this.host.fromSummaryFileName(t,e)},t.prototype.resolveSummary=function(t){var e=t.members.length?this.staticSymbolCache.get(t.filePath,t.name):t,n=this.summaryCache.get(e);return n||(this._loadSummaryFile(t.filePath),n=this.summaryCache.get(t)),e===t&&n||null},t.prototype.getSymbolsOf=function(t){return this._loadSummaryFile(t)?Array.from(this.summaryCache.keys()).filter(function(e){return e.filePath===t}):null},t.prototype.getImportAs=function(t){return t.assertNoMembers(),this.importAs.get(t)},t.prototype.getKnownModuleName=function(t){return this.knownFileNameToModuleNames.get(t)||null},t.prototype.addSummary=function(t){this.summaryCache.set(t.symbol,t)},t.prototype._loadSummaryFile=function(t){var e=this,n=this.loadedFilePaths.get(t);if(null!=n)return n;var r=null;if(this.isLibraryFile(t)){var i=function o(t){return t.replace(bs,"")+".ngsummary.json"}(t);try{r=this.host.loadSummary(i)}catch(t){throw console.error("Error loading summary file "+i),t}}if(this.loadedFilePaths.set(t,n=null!=r),r){var s=function a(t,e,n,r){return new iu(t,e).deserialize(n,r)}(this.staticSymbolCache,this,t,r),u=s.moduleName,c=s.importAs;s.summaries.forEach(function(t){return e.summaryCache.set(t.symbol,t)}),u&&this.knownFileNameToModuleNames.set(t,u),c.forEach(function(t){e.importAs.set(t.symbol,t.importAs)})}return n},t}(),Au=function(){function t(){this._summaries=new Map}return t.prototype.isLibraryFile=function(){return!1},t.prototype.toSummaryFileName=function(t){return t},t.prototype.fromSummaryFileName=function(t){return t},t.prototype.resolveSummary=function(t){return this._summaries.get(t)||null},t.prototype.getSymbolsOf=function(){return[]},t.prototype.getImportAs=function(t){return t},t.prototype.getKnownModuleName=function(t){return null},t.prototype.addSummary=function(t){this._summaries.set(t.symbol,t)},t}();
450
+ */var Mu=function(){function t(t,e){this.host=t,this.staticSymbolCache=e,this.summaryCache=new Map,this.loadedFilePaths=new Map,this.importAs=new Map,this.knownFileNameToModuleNames=new Map}return t.prototype.isLibraryFile=function(t){return!this.host.isSourceFile(As(t))},t.prototype.toSummaryFileName=function(t,e){return this.host.toSummaryFileName(t,e)},t.prototype.fromSummaryFileName=function(t,e){return this.host.fromSummaryFileName(t,e)},t.prototype.resolveSummary=function(t){var e=t.members.length?this.staticSymbolCache.get(t.filePath,t.name):t,n=this.summaryCache.get(e);return n||(this._loadSummaryFile(t.filePath),n=this.summaryCache.get(t)),e===t&&n||null},t.prototype.getSymbolsOf=function(t){return this._loadSummaryFile(t)?Array.from(this.summaryCache.keys()).filter(function(e){return e.filePath===t}):null},t.prototype.getImportAs=function(t){return t.assertNoMembers(),this.importAs.get(t)},t.prototype.getKnownModuleName=function(t){return this.knownFileNameToModuleNames.get(t)||null},t.prototype.addSummary=function(t){this.summaryCache.set(t.symbol,t)},t.prototype._loadSummaryFile=function(t){var e=this,n=this.loadedFilePaths.get(t);if(null!=n)return n;var r=null;if(this.isLibraryFile(t)){var i=function o(t){return t.replace(Es,"")+".ngsummary.json"}(t);try{r=this.host.loadSummary(i)}catch(t){throw console.error("Error loading summary file "+i),t}}if(this.loadedFilePaths.set(t,n=null!=r),r){var s=function a(t,e,n,r){return new cu(t,e).deserialize(n,r)}(this.staticSymbolCache,this,t,r),u=s.moduleName,c=s.importAs;s.summaries.forEach(function(t){return e.summaryCache.set(t.symbol,t)}),u&&this.knownFileNameToModuleNames.set(t,u),c.forEach(function(t){e.importAs.set(t.symbol,t.importAs)})}return n},t}(),Iu=function(){function t(){this._summaries=new Map}return t.prototype.isLibraryFile=function(){return!1},t.prototype.toSummaryFileName=function(t){return t},t.prototype.fromSummaryFileName=function(t){return t},t.prototype.resolveSummary=function(t){return this._summaries.get(t)||null},t.prototype.getSymbolsOf=function(){return[]},t.prototype.getImportAs=function(t){return t},t.prototype.getKnownModuleName=function(t){return null},t.prototype.addSummary=function(t){this._summaries.set(t.symbol,t)},t}();
452
451
  /**
453
452
  * @license
454
453
  * Copyright Google Inc. All Rights Reserved.
@@ -477,14 +476,14 @@ var su="ngFormattedMessage",au="@angular/core",uu=/^\$.*\$$/,cu={__symbolic:"ign
477
476
  * Use of this source code is governed by an MIT-style license that can be
478
477
  * found in the LICENSE file at https://angular.io/license
479
478
  */
480
- function Nu(){return new Ou(".")}!function(t){function e(e){var n=t.call(this)||this;return n.reflector=e,n._evalArgNames=[],n._evalArgValues=[],n._evalExportedVars=[],n}o(e,t),e.prototype.createReturnStmt=function(t){new ss(new Jo(this._evalExportedVars.map(function(t){return new $o(t,ys(t),!1)}))).visitStatement(this,t)},e.prototype.getArgs=function(){for(var t={},e=0;e<this._evalArgNames.length;e++)t[this._evalArgNames[e]]=this._evalArgValues[e];return t},e.prototype.visitExternalExpr=function(t,e){return this._emitReferenceToExternal(t,this.reflector.resolveExternalReference(t.value),e),null},e.prototype.visitWrappedNodeExpr=function(t,e){return this._emitReferenceToExternal(t,t.node,e),null},e.prototype.visitDeclareVarStmt=function(e,n){return e.hasModifier(Lo.Exported)&&this._evalExportedVars.push(e.name),t.prototype.visitDeclareVarStmt.call(this,e,n)},e.prototype.visitDeclareFunctionStmt=function(e,n){return e.hasModifier(Lo.Exported)&&this._evalExportedVars.push(e.name),t.prototype.visitDeclareFunctionStmt.call(this,e,n)},e.prototype.visitDeclareClassStmt=function(e,n){return e.hasModifier(Lo.Exported)&&this._evalExportedVars.push(e.name),t.prototype.visitDeclareClassStmt.call(this,e,n)},e.prototype._emitReferenceToExternal=function(t,e,n){var r=this._evalArgValues.indexOf(e);if(-1===r){r=this._evalArgValues.length,this._evalArgValues.push(e);var i=zt({reference:e})||"val";this._evalArgNames.push("jit_"+i+"_"+r)}n.print(t,this._evalArgNames[r])}}(function(t){function e(){return t.call(this,!1)||this}return o(e,t),e.prototype.visitDeclareClassStmt=function(t,e){var n=this;return e.pushClass(t),this._visitClassConstructor(t,e),null!=t.parent&&(e.print(t,t.name+".prototype = Object.create("),t.parent.visitExpression(this,e),e.println(t,".prototype);")),t.getters.forEach(function(r){return n._visitClassGetter(t,r,e)}),t.methods.forEach(function(r){return n._visitClassMethod(t,r,e)}),e.popClass(),null},e.prototype._visitClassConstructor=function(t,e){e.print(t,"function "+t.name+"("),null!=t.constructorMethod&&this._visitParams(t.constructorMethod.params,e),e.println(t,") {"),e.incIndent(),null!=t.constructorMethod&&t.constructorMethod.body.length>0&&(e.println(t,"var self = this;"),this.visitAllStatements(t.constructorMethod.body,e)),e.decIndent(),e.println(t,"}")},e.prototype._visitClassGetter=function(t,e,n){n.println(t,"Object.defineProperty("+t.name+".prototype, '"+e.name+"', { get: function() {"),n.incIndent(),e.body.length>0&&(n.println(t,"var self = this;"),this.visitAllStatements(e.body,n)),n.decIndent(),n.println(t,"}});")},e.prototype._visitClassMethod=function(t,e,n){n.print(t,t.name+".prototype."+e.name+" = function("),this._visitParams(e.params,n),n.println(t,") {"),n.incIndent(),e.body.length>0&&(n.println(t,"var self = this;"),this.visitAllStatements(e.body,n)),n.decIndent(),n.println(t,"};")},e.prototype.visitWrappedNodeExpr=function(t,e){throw new Error("Cannot emit a WrappedNodeExpr in Javascript.")},e.prototype.visitReadVarExpr=function(e,n){if(e.builtin===No.This)n.print(e,"self");else{if(e.builtin===No.Super)throw new Error("'super' needs to be handled at a parent ast node, not at the variable level!");t.prototype.visitReadVarExpr.call(this,e,n)}return null},e.prototype.visitDeclareVarStmt=function(t,e){return e.print(t,"var "+t.name),t.value&&(e.print(t," = "),t.value.visitExpression(this,e)),e.println(t,";"),null},e.prototype.visitCastExpr=function(t,e){return t.value.visitExpression(this,e),null},e.prototype.visitInvokeFunctionExpr=function(e,n){var r=e.fn;return r instanceof Mo&&r.builtin===No.Super?(n.currentClass.parent.visitExpression(this,n),n.print(e,".call(this"),e.args.length>0&&(n.print(e,", "),this.visitAllExpressions(e.args,n,",")),n.print(e,")")):t.prototype.visitInvokeFunctionExpr.call(this,e,n),null},e.prototype.visitFunctionExpr=function(t,e){return e.print(t,"function"+(t.name?" "+t.name:"")+"("),this._visitParams(t.params,e),e.println(t,") {"),e.incIndent(),this.visitAllStatements(t.statements,e),e.decIndent(),e.print(t,"}"),null},e.prototype.visitDeclareFunctionStmt=function(t,e){return e.print(t,"function "+t.name+"("),this._visitParams(t.params,e),e.println(t,") {"),e.incIndent(),this.visitAllStatements(t.statements,e),e.decIndent(),e.println(t,"}"),null},e.prototype.visitTryCatchStmt=function(t,e){e.println(t,"try {"),e.incIndent(),this.visitAllStatements(t.bodyStmts,e),e.decIndent(),e.println(t,"} catch ("+Gs.name+") {"),e.incIndent();var n=[Xs.set(Gs.prop("stack")).toDeclStmt(null,[Lo.Final])].concat(t.catchStmts);return this.visitAllStatements(n,e),e.decIndent(),e.println(t,"}"),null},e.prototype._visitParams=function(t,e){this.visitAllObjects(function(t){return e.print(null,t.name)},t,e,",")},e.prototype.getBuiltinMethodName=function(t){var e;switch(t){case Oo.ConcatArray:e="concat";break;case Oo.SubscribeObservable:e="subscribe";break;case Oo.Bind:e="bind";break;default:throw new Error("Unknown builtin method: "+t)}return e},e}(Zs));var ku,Ou=function(){function t(t){void 0===t&&(t=null),this._packagePrefix=t}return t.prototype.resolve=function(t,e){var n=e;null!=t&&t.length>0&&(n=function r(t,e){var n=Iu(encodeURI(e)),r=Iu(t);if(null!=n[ku.Scheme])return Ru(n);n[ku.Scheme]=r[ku.Scheme];for(var i=ku.Scheme;i<=ku.Port;i++)null==n[i]&&(n[i]=r[i]);if("/"==n[ku.Path][0])return Ru(n);var o=r[ku.Path];null==o&&(o="/");var s=o.lastIndexOf("/");return o=o.substring(0,s+1)+n[ku.Path],n[ku.Path]=o,Ru(n)}
479
+ function Ru(){return new ju(".")}!function(t){function e(e){var n=t.call(this)||this;return n.reflector=e,n._evalArgNames=[],n._evalArgValues=[],n._evalExportedVars=[],n}o(e,t),e.prototype.createReturnStmt=function(t){new cs(new ns(this._evalExportedVars.map(function(t){return new es(t,_s(t),!1)}))).visitStatement(this,t)},e.prototype.getArgs=function(){for(var t={},e=0;e<this._evalArgNames.length;e++)t[this._evalArgNames[e]]=this._evalArgValues[e];return t},e.prototype.visitExternalExpr=function(t,e){return this._emitReferenceToExternal(t,this.reflector.resolveExternalReference(t.value),e),null},e.prototype.visitWrappedNodeExpr=function(t,e){return this._emitReferenceToExternal(t,t.node,e),null},e.prototype.visitDeclareVarStmt=function(e,n){return e.hasModifier(Ho.Exported)&&this._evalExportedVars.push(e.name),t.prototype.visitDeclareVarStmt.call(this,e,n)},e.prototype.visitDeclareFunctionStmt=function(e,n){return e.hasModifier(Ho.Exported)&&this._evalExportedVars.push(e.name),t.prototype.visitDeclareFunctionStmt.call(this,e,n)},e.prototype.visitDeclareClassStmt=function(e,n){return e.hasModifier(Ho.Exported)&&this._evalExportedVars.push(e.name),t.prototype.visitDeclareClassStmt.call(this,e,n)},e.prototype._emitReferenceToExternal=function(t,e,n){var r=this._evalArgValues.indexOf(e);if(-1===r){r=this._evalArgValues.length,this._evalArgValues.push(e);var i=Gt({reference:e})||"val";this._evalArgNames.push("jit_"+i+"_"+r)}n.print(t,this._evalArgNames[r])}}(function(t){function e(){return t.call(this,!1)||this}return o(e,t),e.prototype.visitDeclareClassStmt=function(t,e){var n=this;return e.pushClass(t),this._visitClassConstructor(t,e),null!=t.parent&&(e.print(t,t.name+".prototype = Object.create("),t.parent.visitExpression(this,e),e.println(t,".prototype);")),t.getters.forEach(function(r){return n._visitClassGetter(t,r,e)}),t.methods.forEach(function(r){return n._visitClassMethod(t,r,e)}),e.popClass(),null},e.prototype._visitClassConstructor=function(t,e){e.print(t,"function "+t.name+"("),null!=t.constructorMethod&&this._visitParams(t.constructorMethod.params,e),e.println(t,") {"),e.incIndent(),null!=t.constructorMethod&&t.constructorMethod.body.length>0&&(e.println(t,"var self = this;"),this.visitAllStatements(t.constructorMethod.body,e)),e.decIndent(),e.println(t,"}")},e.prototype._visitClassGetter=function(t,e,n){n.println(t,"Object.defineProperty("+t.name+".prototype, '"+e.name+"', { get: function() {"),n.incIndent(),e.body.length>0&&(n.println(t,"var self = this;"),this.visitAllStatements(e.body,n)),n.decIndent(),n.println(t,"}});")},e.prototype._visitClassMethod=function(t,e,n){n.print(t,t.name+".prototype."+e.name+" = function("),this._visitParams(e.params,n),n.println(t,") {"),n.incIndent(),e.body.length>0&&(n.println(t,"var self = this;"),this.visitAllStatements(e.body,n)),n.decIndent(),n.println(t,"};")},e.prototype.visitWrappedNodeExpr=function(t,e){throw new Error("Cannot emit a WrappedNodeExpr in Javascript.")},e.prototype.visitReadVarExpr=function(e,n){if(e.builtin===Mo.This)n.print(e,"self");else{if(e.builtin===Mo.Super)throw new Error("'super' needs to be handled at a parent ast node, not at the variable level!");t.prototype.visitReadVarExpr.call(this,e,n)}return null},e.prototype.visitDeclareVarStmt=function(t,e){return e.print(t,"var "+t.name),t.value&&(e.print(t," = "),t.value.visitExpression(this,e)),e.println(t,";"),null},e.prototype.visitCastExpr=function(t,e){return t.value.visitExpression(this,e),null},e.prototype.visitInvokeFunctionExpr=function(e,n){var r=e.fn;return r instanceof Do&&r.builtin===Mo.Super?(n.currentClass.parent.visitExpression(this,n),n.print(e,".call(this"),e.args.length>0&&(n.print(e,", "),this.visitAllExpressions(e.args,n,",")),n.print(e,")")):t.prototype.visitInvokeFunctionExpr.call(this,e,n),null},e.prototype.visitFunctionExpr=function(t,e){return e.print(t,"function"+(t.name?" "+t.name:"")+"("),this._visitParams(t.params,e),e.println(t,") {"),e.incIndent(),this.visitAllStatements(t.statements,e),e.decIndent(),e.print(t,"}"),null},e.prototype.visitDeclareFunctionStmt=function(t,e){return e.print(t,"function "+t.name+"("),this._visitParams(t.params,e),e.println(t,") {"),e.incIndent(),this.visitAllStatements(t.statements,e),e.decIndent(),e.println(t,"}"),null},e.prototype.visitTryCatchStmt=function(t,e){e.println(t,"try {"),e.incIndent(),this.visitAllStatements(t.bodyStmts,e),e.decIndent(),e.println(t,"} catch ("+Zs.name+") {"),e.incIndent();var n=[$s.set(Zs.prop("stack")).toDeclStmt(null,[Ho.Final])].concat(t.catchStmts);return this.visitAllStatements(n,e),e.decIndent(),e.println(t,"}"),null},e.prototype._visitParams=function(t,e){this.visitAllObjects(function(t){return e.print(null,t.name)},t,e,",")},e.prototype.getBuiltinMethodName=function(t){var e;switch(t){case Ro.ConcatArray:e="concat";break;case Ro.SubscribeObservable:e="subscribe";break;case Ro.Bind:e="bind";break;default:throw new Error("Unknown builtin method: "+t)}return e},e}(ta));var Du,ju=function(){function t(t){void 0===t&&(t=null),this._packagePrefix=t}return t.prototype.resolve=function(t,e){var n=e;null!=t&&t.length>0&&(n=function r(t,e){var n=Fu(encodeURI(e)),r=Fu(t);if(null!=n[Du.Scheme])return Vu(n);n[Du.Scheme]=r[Du.Scheme];for(var i=Du.Scheme;i<=Du.Port;i++)null==n[i]&&(n[i]=r[i]);if("/"==n[Du.Path][0])return Vu(n);var o=r[Du.Path];null==o&&(o="/");var s=o.lastIndexOf("/");return o=o.substring(0,s+1)+n[Du.Path],n[Du.Path]=o,Vu(n)}
481
480
  /**
482
481
  * @license
483
482
  * Copyright Google Inc. All Rights Reserved.
484
483
  *
485
484
  * Use of this source code is governed by an MIT-style license that can be
486
485
  * found in the LICENSE file at https://angular.io/license
487
- */(t,n));var i=Iu(n),o=this._packagePrefix;if(null!=o&&null!=i&&"package"==i[ku.Scheme]){var s=i[ku.Path];return(o=o.replace(/\/+$/,""))+"/"+s.replace(/^\/+/,"")}return n},t}(),Mu=new RegExp("^(?:([^:/?#.]+):)?(?://(?:([^/?#]*)@)?([\\w\\d\\-\\u0100-\\uffff.%]*)(?::([0-9]+))?)?([^?#]+)?(?:\\?([^#]*))?(?:#(.*))?$");function Iu(t){return t.match(Mu)}function Ru(t){var e=t[ku.Path];return e=null==e?"":function n(t){if("/"==t)return"/";for(var e="/"==t[0]?"/":"",n="/"===t[t.length-1]?"/":"",r=t.split("/"),i=[],o=0,s=0;s<r.length;s++){var a=r[s];switch(a){case"":case".":break;case"..":i.length>0?i.pop():o++;break;default:i.push(a)}}if(""==e){for(;o-- >0;)i.unshift("..");0===i.length&&i.push(".")}return e+i.join("/")+n}(e),t[ku.Path]=e,function r(t,e,n,i,o,s,a){var u=[];return null!=t&&u.push(t+":"),null!=n&&(u.push("//"),null!=e&&u.push(e+"@"),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("")}(t[ku.Scheme],t[ku.UserInfo],t[ku.Domain],t[ku.Port],e,t[ku.QueryData],t[ku.Fragment])}!function(t){t[t.Scheme=1]="Scheme",t[t.UserInfo=2]="UserInfo",t[t.Domain=3]="Domain",t[t.Port=4]="Port",t[t.Path=5]="Path",t[t.QueryData=6]="QueryData",t[t.Fragment=7]="Fragment"}(ku||(ku={}));var Du,ju,Lu=function(){function t(){}return t.prototype.get=function(t){return""},t}();
486
+ */(t,n));var i=Fu(n),o=this._packagePrefix;if(null!=o&&null!=i&&"package"==i[Du.Scheme]){var s=i[Du.Path];return(o=o.replace(/\/+$/,""))+"/"+s.replace(/^\/+/,"")}return n},t}(),Lu=new RegExp("^(?:([^:/?#.]+):)?(?://(?:([^/?#]*)@)?([\\w\\d\\-\\u0100-\\uffff.%]*)(?::([0-9]+))?)?([^?#]+)?(?:\\?([^#]*))?(?:#(.*))?$");function Fu(t){return t.match(Lu)}function Vu(t){var e=t[Du.Path];return e=null==e?"":function n(t){if("/"==t)return"/";for(var e="/"==t[0]?"/":"",n="/"===t[t.length-1]?"/":"",r=t.split("/"),i=[],o=0,s=0;s<r.length;s++){var a=r[s];switch(a){case"":case".":break;case"..":i.length>0?i.pop():o++;break;default:i.push(a)}}if(""==e){for(;o-- >0;)i.unshift("..");0===i.length&&i.push(".")}return e+i.join("/")+n}(e),t[Du.Path]=e,function r(t,e,n,i,o,s,a){var u=[];return null!=t&&u.push(t+":"),null!=n&&(u.push("//"),null!=e&&u.push(e+"@"),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("")}(t[Du.Scheme],t[Du.UserInfo],t[Du.Domain],t[Du.Port],e,t[Du.QueryData],t[Du.Fragment])}!function(t){t[t.Scheme=1]="Scheme",t[t.UserInfo=2]="UserInfo",t[t.Domain=3]="Domain",t[t.Port=4]="Port",t[t.Path=5]="Path",t[t.QueryData=6]="QueryData",t[t.Fragment=7]="Fragment"}(Du||(Du={}));var Hu,Bu,qu=function(){function t(){}return t.prototype.get=function(t){return""},t}();
488
487
  /**
489
488
  * @license
490
489
  * Copyright Google Inc. All Rights Reserved.
@@ -547,14 +546,14 @@ function Nu(){return new Ou(".")}!function(t){function e(e){var n=t.call(this)||
547
546
  *
548
547
  * Use of this source code is governed by an MIT-style license that can be
549
548
  * found in the LICENSE file at https://angular.io/license
550
- */!function(t){t[t.Any=0]="Any",t[t.String=1]="String",t[t.Number=2]="Number",t[t.Boolean=3]="Boolean",t[t.Undefined=4]="Undefined",t[t.Null=5]="Null",t[t.Unbound=6]="Unbound",t[t.Other=7]="Other"}(Du||(Du={})),function(t){t[t.Error=0]="Error",t[t.Warning=1]="Warning"}(ju||(ju={}));var Fu=function Fu(t,e,n){this.kind=t,this.message=e,this.ast=n},Vu=function(){function t(t,e,n){this.scope=t,this.query=e,this.context=n}return t.prototype.getType=function(t){return t.visit(this)},t.prototype.getDiagnostics=function(t){this.diagnostics=[];var e=t.visit(this);return this.context.event&&e.callable&&this.reportWarning("Unexpected callable expression. Expected a method call",t),this.diagnostics},t.prototype.visitBinary=function(t){var e=this;function n(t,e){switch(t){case Du.Undefined:case Du.Null:return n(e,Du.Other)}return t}var r=function(t,n){var r=e.getType(t);if(r.nullable){switch(n){case"&&":case"||":case"==":case"!=":case"===":case"!==":break;default:e.reportError("The expression might be null",t)}return e.query.getNonNullableType(r)}return r},i=r(t.left,t.operation),o=r(t.right,t.operation),s=this.query.getTypeKind(i),a=this.query.getTypeKind(o),u=n(s,a),c=u<<8|n(a,s);switch(t.operation){case"*":case"/":case"%":case"-":case"<<":case">>":case">>>":case"&":case"^":case"|":switch(c){case Du.Any<<8|Du.Any:case Du.Number<<8|Du.Any:case Du.Any<<8|Du.Number:case Du.Number<<8|Du.Number:return this.query.getBuiltinType(Du.Number);default:var l=t.left;switch(u){case Du.Any:case Du.Number:l=t.right}return this.reportError("Expected a numeric type",l)}case"+":switch(c){case Du.Any<<8|Du.Any:case Du.Any<<8|Du.Boolean:case Du.Any<<8|Du.Number:case Du.Any<<8|Du.Other:case Du.Boolean<<8|Du.Any:case Du.Number<<8|Du.Any:case Du.Other<<8|Du.Any:return this.anyType;case Du.Any<<8|Du.String:case Du.Boolean<<8|Du.String:case Du.Number<<8|Du.String:case Du.String<<8|Du.Any:case Du.String<<8|Du.Boolean:case Du.String<<8|Du.Number:case Du.String<<8|Du.String:case Du.String<<8|Du.Other:case Du.Other<<8|Du.String:return this.query.getBuiltinType(Du.String);case Du.Number<<8|Du.Number:return this.query.getBuiltinType(Du.Number);case Du.Boolean<<8|Du.Number:case Du.Other<<8|Du.Number:return this.reportError("Expected a number type",t.left);case Du.Number<<8|Du.Boolean:case Du.Number<<8|Du.Other:return this.reportError("Expected a number type",t.right);default:return this.reportError("Expected operands to be a string or number type",t)}case">":case"<":case"<=":case">=":case"==":case"!=":case"===":case"!==":switch(c){case Du.Any<<8|Du.Any:case Du.Any<<8|Du.Boolean:case Du.Any<<8|Du.Number:case Du.Any<<8|Du.String:case Du.Any<<8|Du.Other:case Du.Boolean<<8|Du.Any:case Du.Boolean<<8|Du.Boolean:case Du.Number<<8|Du.Any:case Du.Number<<8|Du.Number:case Du.String<<8|Du.Any:case Du.String<<8|Du.String:case Du.Other<<8|Du.Any:case Du.Other<<8|Du.Other:return this.query.getBuiltinType(Du.Boolean);default:return this.reportError("Expected the operants to be of similar type or any",t)}case"&&":return o;case"||":return this.query.getTypeUnion(i,o)}return this.reportError("Unrecognized operator "+t.operation,t)},t.prototype.visitChain=function(t){return this.diagnostics&&cr(t,this),this.query.getBuiltinType(Du.Undefined)},t.prototype.visitConditional=function(t){return this.diagnostics&&cr(t,this),this.query.getTypeUnion(this.getType(t.trueExp),this.getType(t.falseExp))},t.prototype.visitFunctionCall=function(t){var e=this,n=t.args.map(function(t){return e.getType(t)}),r=this.getType(t.target);if(!r||!r.callable)return this.reportError("Call target is not callable",t);var i=r.selectSignature(n);return i?i.result:this.reportError("Unable no compatible signature found for call",t)},t.prototype.visitImplicitReceiver=function(t){var e=this;return{name:"$implict",kind:"component",language:"ng-template",type:void 0,container:void 0,callable:!1,nullable:!1,public:!0,definition:void 0,members:function(){return e.scope},signatures:function(){return[]},selectSignature:function(t){},indexed:function(t){}}},t.prototype.visitInterpolation=function(t){return this.diagnostics&&cr(t,this),this.undefinedType},t.prototype.visitKeyedRead=function(t){var e=this.getType(t.obj),n=this.getType(t.key);return e.indexed(n)||this.anyType},t.prototype.visitKeyedWrite=function(t){return this.getType(t.value)},t.prototype.visitLiteralArray=function(t){var e,n=this;return this.query.getArrayType((e=this.query).getTypeUnion.apply(e,l(t.expressions.map(function(t){return n.getType(t)}))))},t.prototype.visitLiteralMap=function(t){return this.diagnostics&&cr(t,this),this.anyType},t.prototype.visitLiteralPrimitive=function(t){switch(t.value){case!0:case!1:return this.query.getBuiltinType(Du.Boolean);case null:return this.query.getBuiltinType(Du.Null);case void 0:return this.query.getBuiltinType(Du.Undefined);default:switch(typeof t.value){case"string":return this.query.getBuiltinType(Du.String);case"number":return this.query.getBuiltinType(Du.Number);default:return this.reportError("Unrecognized primitive",t)}}},t.prototype.visitMethodCall=function(t){return this.resolveMethodCall(this.getType(t.receiver),t)},t.prototype.visitPipe=function(t){var e=this,n=this.query.getPipes().get(t.name);if(!n)return this.reportError("No pipe by the name "+t.name+" found",t);var r=this.getType(t.exp),i=n.selectSignature([r].concat(t.args.map(function(t){return e.getType(t)})));return i?i.result:this.reportError("Unable to resolve signature for pipe invocation",t)},t.prototype.visitPrefixNot=function(t){return this.query.getBuiltinType(Du.Boolean)},t.prototype.visitNonNullAssert=function(t){var e=this.getType(t.expression);return this.query.getNonNullableType(e)},t.prototype.visitPropertyRead=function(t){return this.resolvePropertyRead(this.getType(t.receiver),t)},t.prototype.visitPropertyWrite=function(t){return this.getType(t.value)},t.prototype.visitQuote=function(t){return this.query.getBuiltinType(Du.Any)},t.prototype.visitSafeMethodCall=function(t){return this.resolveMethodCall(this.query.getNonNullableType(this.getType(t.receiver)),t)},t.prototype.visitSafePropertyRead=function(t){return this.resolvePropertyRead(this.query.getNonNullableType(this.getType(t.receiver)),t)},Object.defineProperty(t.prototype,"anyType",{get:function(){var t=this._anyType;return t||(t=this._anyType=this.query.getBuiltinType(Du.Any)),t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"undefinedType",{get:function(){var t=this._undefinedType;return t||(t=this._undefinedType=this.query.getBuiltinType(Du.Undefined)),t},enumerable:!0,configurable:!0}),t.prototype.resolveMethodCall=function(t,e){var n=this;if(this.isAny(t))return this.anyType;var r=t.members().get(e.name);if(!r)return this.reportError("Unknown method '"+e.name+"'",e);if(!r.type)return this.reportError("Could not find a type for '"+e.name+"'",e);if(!r.type.callable)return this.reportError("Member '"+e.name+"' is not callable",e);var i=r.type.selectSignature(e.args.map(function(t){return n.getType(t)}));return i?i.result:this.reportError("Unable to resolve signature for call of method "+e.name,e)},t.prototype.resolvePropertyRead=function(t,e){if(this.isAny(t))return this.anyType;var n=t.members().get(e.name);if(!n){var r;if("$implict"==(r=t.name))r="The component declaration, template variable declarations, and element references do";else{if(t.nullable)return this.reportError("The expression might be null",e.receiver);r="'"+r+"' does"}return this.reportError("Identifier '"+e.name+"' is not defined. "+r+" not contain such a member",e)}return n.public||this.reportWarning("Identifier '"+e.name+"' refers to a private member of "+(r="$implict"==(r=t.name)?"the component":"'"+r+"'"),e),n.type},t.prototype.reportError=function(t,e){return this.diagnostics&&this.diagnostics.push(new Fu(ju.Error,t,e)),this.anyType},t.prototype.reportWarning=function(t,e){return this.diagnostics&&this.diagnostics.push(new Fu(ju.Warning,t,e)),this.anyType},t.prototype.isAny=function(t){return!t||this.query.getTypeKind(t)==Du.Any||!!t.type&&this.isAny(t.type)},t}();function Hu(t,e){if(t.fileName){var n=t.offset;return[{fileName:t.fileName,span:{start:e.sourceSpan.start.offset+n,end:e.sourceSpan.end.offset+n}}]}}function Bu(t,e,n){var r=n.directives.find(function(t){var e=zt(t.directive.type);return"NgFor"==e||"NgForOf"==e});if(r){var i=r.inputs.find(function(t){return"ngForOf"==t.directiveName});if(i){var o=new Vu(e.members,e.query,{}).getType(i.value);if(o){var s=e.query.getElementType(o);if(s)return s}}}return e.query.getBuiltinType(Du.Any)}function qu(t,e,n){var r=t.members,i=function s(t){var e=[];function n(n){var r,i,o=function(n){var r=void 0;n.value&&(r=t.query.getTypeSymbol(Qt(n.value))),e.push({name:n.name,kind:"reference",type:r||t.query.getBuiltinType(Du.Any),get definition(){return Hu(t,n)}})};try{for(var s=u(n),a=s.next();!a.done;a=s.next())o(a.value)}catch(t){r={error:t}}finally{try{a&&!a.done&&(i=s.return)&&i.call(s)}finally{if(r)throw r.error}}}return jt(new(function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o(e,t),e.prototype.visitEmbeddedTemplate=function(e,r){t.prototype.visitEmbeddedTemplate.call(this,e,r),n(e.references)},e.prototype.visitElement=function(e,r){t.prototype.visitElement.call(this,e,r),n(e.references)},e}(Dt)),t.templateAst),e}(t),a=function c(t,e){for(var n,r,i=[],o=e.tail;o;){if(o instanceof Nt){var s=function(e){var n=e.name,r=o.directives.map(function(e){return t.query.getTemplateContext(e.directive.type.reference)}).find(function(t){return!!t}),s=void 0;if(r){var a=r.get(e.value);if(a){var u=t.query.getTypeKind(s=a.type);u!==Du.Any&&u!=Du.Unbound||(s=Bu(0,t,o))}}s||(s=t.query.getBuiltinType(Du.Any)),i.push({name:n,kind:"variable",type:s,get definition(){return Hu(t,e)}})};try{for(var a=u(o.variables),c=a.next();!c.done;c=a.next())s(c.value)}catch(t){n={error:t}}finally{try{c&&!c.done&&(r=a.return)&&r.call(a)}finally{if(n)throw n.error}}}o=e.parentOf(o)}return i}(t,e),l=function p(t,e){var n=[];return e&&(n=[{name:"$event",kind:"variable",type:t.query.getBuiltinType(Du.Any)}]),n}(t,n);if(i.length||a.length||l.length){var h=t.query.createSymbolTable(i),f=t.query.createSymbolTable(a),d=t.query.createSymbolTable(l);r=t.query.mergeSymbolTable([r,h,f,d])}return r}var Ku=function(t){function e(e,n){var r=t.call(this)||this;return r.info=e,r.getExpressionScope=n,r.diagnostics=[],r.path=new ne([]),r}return o(e,t),e.prototype.visitDirective=function(t,e){t.inputs&&t.inputs.length&&jt(this,t.inputs,e)},e.prototype.visitBoundText=function(t){this.push(t),this.diagnoseExpression(t.value,t.sourceSpan.start.offset,!1),this.pop()},e.prototype.visitDirectiveProperty=function(t){this.push(t),this.diagnoseExpression(t.value,this.attributeValueLocation(t),!1),this.pop()},e.prototype.visitElementProperty=function(t){this.push(t),this.diagnoseExpression(t.value,this.attributeValueLocation(t),!1),this.pop()},e.prototype.visitEvent=function(t){this.push(t),this.diagnoseExpression(t.handler,this.attributeValueLocation(t),!0),this.pop()},e.prototype.visitVariable=function(t){var e=this.directiveSummary;if(e&&t.value){var n=this.info.query.getTemplateContext(e.type.reference);n&&!n.has(t.value)&&this.reportError("$implicit"===t.value?"The template context does not have an implicit value":"The template context does not defined a member called '"+t.value+"'",function r(t){return{start:t.start.offset,end:t.end.offset}}
549
+ */!function(t){t[t.Any=0]="Any",t[t.String=1]="String",t[t.Number=2]="Number",t[t.Boolean=3]="Boolean",t[t.Undefined=4]="Undefined",t[t.Null=5]="Null",t[t.Unbound=6]="Unbound",t[t.Other=7]="Other"}(Hu||(Hu={})),function(t){t[t.Error=0]="Error",t[t.Warning=1]="Warning"}(Bu||(Bu={}));var Ku=function Ku(t,e,n){this.kind=t,this.message=e,this.ast=n},Uu=function(){function t(t,e,n){this.scope=t,this.query=e,this.context=n}return t.prototype.getType=function(t){return t.visit(this)},t.prototype.getDiagnostics=function(t){this.diagnostics=[];var e=t.visit(this);return this.context.event&&e.callable&&this.reportWarning("Unexpected callable expression. Expected a method call",t),this.diagnostics},t.prototype.visitBinary=function(t){var e=this;function n(t,e){switch(t){case Hu.Undefined:case Hu.Null:return n(e,Hu.Other)}return t}var r=function(t,n){var r=e.getType(t);if(r.nullable){switch(n){case"&&":case"||":case"==":case"!=":case"===":case"!==":break;default:e.reportError("The expression might be null",t)}return e.query.getNonNullableType(r)}return r},i=r(t.left,t.operation),o=r(t.right,t.operation),s=this.query.getTypeKind(i),a=this.query.getTypeKind(o),u=n(s,a),c=u<<8|n(a,s);switch(t.operation){case"*":case"/":case"%":case"-":case"<<":case">>":case">>>":case"&":case"^":case"|":switch(c){case Hu.Any<<8|Hu.Any:case Hu.Number<<8|Hu.Any:case Hu.Any<<8|Hu.Number:case Hu.Number<<8|Hu.Number:return this.query.getBuiltinType(Hu.Number);default:var l=t.left;switch(u){case Hu.Any:case Hu.Number:l=t.right}return this.reportError("Expected a numeric type",l)}case"+":switch(c){case Hu.Any<<8|Hu.Any:case Hu.Any<<8|Hu.Boolean:case Hu.Any<<8|Hu.Number:case Hu.Any<<8|Hu.Other:case Hu.Boolean<<8|Hu.Any:case Hu.Number<<8|Hu.Any:case Hu.Other<<8|Hu.Any:return this.anyType;case Hu.Any<<8|Hu.String:case Hu.Boolean<<8|Hu.String:case Hu.Number<<8|Hu.String:case Hu.String<<8|Hu.Any:case Hu.String<<8|Hu.Boolean:case Hu.String<<8|Hu.Number:case Hu.String<<8|Hu.String:case Hu.String<<8|Hu.Other:case Hu.Other<<8|Hu.String:return this.query.getBuiltinType(Hu.String);case Hu.Number<<8|Hu.Number:return this.query.getBuiltinType(Hu.Number);case Hu.Boolean<<8|Hu.Number:case Hu.Other<<8|Hu.Number:return this.reportError("Expected a number type",t.left);case Hu.Number<<8|Hu.Boolean:case Hu.Number<<8|Hu.Other:return this.reportError("Expected a number type",t.right);default:return this.reportError("Expected operands to be a string or number type",t)}case">":case"<":case"<=":case">=":case"==":case"!=":case"===":case"!==":switch(c){case Hu.Any<<8|Hu.Any:case Hu.Any<<8|Hu.Boolean:case Hu.Any<<8|Hu.Number:case Hu.Any<<8|Hu.String:case Hu.Any<<8|Hu.Other:case Hu.Boolean<<8|Hu.Any:case Hu.Boolean<<8|Hu.Boolean:case Hu.Number<<8|Hu.Any:case Hu.Number<<8|Hu.Number:case Hu.String<<8|Hu.Any:case Hu.String<<8|Hu.String:case Hu.Other<<8|Hu.Any:case Hu.Other<<8|Hu.Other:return this.query.getBuiltinType(Hu.Boolean);default:return this.reportError("Expected the operants to be of similar type or any",t)}case"&&":return o;case"||":return this.query.getTypeUnion(i,o)}return this.reportError("Unrecognized operator "+t.operation,t)},t.prototype.visitChain=function(t){return this.diagnostics&&hr(t,this),this.query.getBuiltinType(Hu.Undefined)},t.prototype.visitConditional=function(t){return this.diagnostics&&hr(t,this),this.query.getTypeUnion(this.getType(t.trueExp),this.getType(t.falseExp))},t.prototype.visitFunctionCall=function(t){var e=this,n=t.args.map(function(t){return e.getType(t)}),r=this.getType(t.target);if(!r||!r.callable)return this.reportError("Call target is not callable",t);var i=r.selectSignature(n);return i?i.result:this.reportError("Unable no compatible signature found for call",t)},t.prototype.visitImplicitReceiver=function(t){var e=this;return{name:"$implict",kind:"component",language:"ng-template",type:void 0,container:void 0,callable:!1,nullable:!1,public:!0,definition:void 0,members:function(){return e.scope},signatures:function(){return[]},selectSignature:function(t){},indexed:function(t){}}},t.prototype.visitInterpolation=function(t){return this.diagnostics&&hr(t,this),this.undefinedType},t.prototype.visitKeyedRead=function(t){var e=this.getType(t.obj),n=this.getType(t.key);return e.indexed(n)||this.anyType},t.prototype.visitKeyedWrite=function(t){return this.getType(t.value)},t.prototype.visitLiteralArray=function(t){var e,n=this;return this.query.getArrayType((e=this.query).getTypeUnion.apply(e,f(t.expressions.map(function(t){return n.getType(t)}))))},t.prototype.visitLiteralMap=function(t){return this.diagnostics&&hr(t,this),this.anyType},t.prototype.visitLiteralPrimitive=function(t){switch(t.value){case!0:case!1:return this.query.getBuiltinType(Hu.Boolean);case null:return this.query.getBuiltinType(Hu.Null);case void 0:return this.query.getBuiltinType(Hu.Undefined);default:switch(typeof t.value){case"string":return this.query.getBuiltinType(Hu.String);case"number":return this.query.getBuiltinType(Hu.Number);default:return this.reportError("Unrecognized primitive",t)}}},t.prototype.visitMethodCall=function(t){return this.resolveMethodCall(this.getType(t.receiver),t)},t.prototype.visitPipe=function(t){var e=this,n=this.query.getPipes().get(t.name);if(!n)return this.reportError("No pipe by the name "+t.name+" found",t);var r=this.getType(t.exp),i=n.selectSignature([r].concat(t.args.map(function(t){return e.getType(t)})));return i?i.result:this.reportError("Unable to resolve signature for pipe invocation",t)},t.prototype.visitPrefixNot=function(t){return this.query.getBuiltinType(Hu.Boolean)},t.prototype.visitNonNullAssert=function(t){var e=this.getType(t.expression);return this.query.getNonNullableType(e)},t.prototype.visitPropertyRead=function(t){return this.resolvePropertyRead(this.getType(t.receiver),t)},t.prototype.visitPropertyWrite=function(t){return this.getType(t.value)},t.prototype.visitQuote=function(t){return this.query.getBuiltinType(Hu.Any)},t.prototype.visitSafeMethodCall=function(t){return this.resolveMethodCall(this.query.getNonNullableType(this.getType(t.receiver)),t)},t.prototype.visitSafePropertyRead=function(t){return this.resolvePropertyRead(this.query.getNonNullableType(this.getType(t.receiver)),t)},Object.defineProperty(t.prototype,"anyType",{get:function(){var t=this._anyType;return t||(t=this._anyType=this.query.getBuiltinType(Hu.Any)),t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"undefinedType",{get:function(){var t=this._undefinedType;return t||(t=this._undefinedType=this.query.getBuiltinType(Hu.Undefined)),t},enumerable:!0,configurable:!0}),t.prototype.resolveMethodCall=function(t,e){var n=this;if(this.isAny(t))return this.anyType;var r=t.members().get(e.name);if(!r)return this.reportError("Unknown method '"+e.name+"'",e);if(!r.type)return this.reportError("Could not find a type for '"+e.name+"'",e);if(!r.type.callable)return this.reportError("Member '"+e.name+"' is not callable",e);var i=r.type.selectSignature(e.args.map(function(t){return n.getType(t)}));return i?i.result:this.reportError("Unable to resolve signature for call of method "+e.name,e)},t.prototype.resolvePropertyRead=function(t,e){if(this.isAny(t))return this.anyType;var n=t.members().get(e.name);if(!n){var r;if("$implict"==(r=t.name))r="The component declaration, template variable declarations, and element references do";else{if(t.nullable)return this.reportError("The expression might be null",e.receiver);r="'"+r+"' does"}return this.reportError("Identifier '"+e.name+"' is not defined. "+r+" not contain such a member",e)}return n.public||this.reportWarning("Identifier '"+e.name+"' refers to a private member of "+(r="$implict"==(r=t.name)?"the component":"'"+r+"'"),e),n.type},t.prototype.reportError=function(t,e){return this.diagnostics&&this.diagnostics.push(new Ku(Bu.Error,t,e)),this.anyType},t.prototype.reportWarning=function(t,e){return this.diagnostics&&this.diagnostics.push(new Ku(Bu.Warning,t,e)),this.anyType},t.prototype.isAny=function(t){return!t||this.query.getTypeKind(t)==Hu.Any||!!t.type&&this.isAny(t.type)},t}();function zu(t,e){if(t.fileName){var n=t.offset;return[{fileName:t.fileName,span:{start:e.sourceSpan.start.offset+n,end:e.sourceSpan.end.offset+n}}]}}function Wu(t,e,n){var r=n.directives.find(function(t){var e=Gt(t.directive.type);return"NgFor"==e||"NgForOf"==e});if(r){var i=r.inputs.find(function(t){return"ngForOf"==t.directiveName});if(i){var o=new Uu(e.members,e.query,{}).getType(i.value);if(o){var s=e.query.getElementType(o);if(s)return s}}}return e.query.getBuiltinType(Hu.Any)}function Qu(t,e,n){var r=t.members,i=function s(t){var e=[];function n(n){var r,i,o=function(n){var r=void 0;n.value&&(r=t.query.getTypeSymbol(Yt(n.value))),e.push({name:n.name,kind:"reference",type:r||t.query.getBuiltinType(Hu.Any),get definition(){return zu(t,n)}})};try{for(var s=p(n),a=s.next();!a.done;a=s.next())o(a.value)}catch(t){r={error:t}}finally{try{a&&!a.done&&(i=s.return)&&i.call(s)}finally{if(r)throw r.error}}}return Vt(new(function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o(e,t),e.prototype.visitEmbeddedTemplate=function(e,r){t.prototype.visitEmbeddedTemplate.call(this,e,r),n(e.references)},e.prototype.visitElement=function(e,r){t.prototype.visitElement.call(this,e,r),n(e.references)},e}(Ft)),t.templateAst),e}(t),a=function u(t,e){for(var n,r,i=[],o=e.tail;o;){if(o instanceof Mt){var s=function(e){var n=e.name,r=o.directives.map(function(e){return t.query.getTemplateContext(e.directive.type.reference)}).find(function(t){return!!t}),s=void 0;if(r){var a=r.get(e.value);if(a){var u=t.query.getTypeKind(s=a.type);u!==Hu.Any&&u!=Hu.Unbound||(s=Wu(0,t,o))}}s||(s=t.query.getBuiltinType(Hu.Any)),i.push({name:n,kind:"variable",type:s,get definition(){return zu(t,e)}})};try{for(var a=p(o.variables),u=a.next();!u.done;u=a.next())s(u.value)}catch(t){n={error:t}}finally{try{u&&!u.done&&(r=a.return)&&r.call(a)}finally{if(n)throw n.error}}}o=e.parentOf(o)}return i}(t,e),c=function l(t,e){var n=[];return e&&(n=[{name:"$event",kind:"variable",type:t.query.getBuiltinType(Hu.Any)}]),n}(t,n);if(i.length||a.length||c.length){var h=t.query.createSymbolTable(i),f=t.query.createSymbolTable(a),d=t.query.createSymbolTable(c);r=t.query.mergeSymbolTable([r,h,f,d])}return r}var Gu=function(t){function e(e,n){var r=t.call(this)||this;return r.info=e,r.getExpressionScope=n,r.diagnostics=[],r.path=new oe([]),r}return o(e,t),e.prototype.visitDirective=function(t,e){t.inputs&&t.inputs.length&&Vt(this,t.inputs,e)},e.prototype.visitBoundText=function(t){this.push(t),this.diagnoseExpression(t.value,t.sourceSpan.start.offset,!1),this.pop()},e.prototype.visitDirectiveProperty=function(t){this.push(t),this.diagnoseExpression(t.value,this.attributeValueLocation(t),!1),this.pop()},e.prototype.visitElementProperty=function(t){this.push(t),this.diagnoseExpression(t.value,this.attributeValueLocation(t),!1),this.pop()},e.prototype.visitEvent=function(t){this.push(t),this.diagnoseExpression(t.handler,this.attributeValueLocation(t),!0),this.pop()},e.prototype.visitVariable=function(t){var e=this.directiveSummary;if(e&&t.value){var n=this.info.query.getTemplateContext(e.type.reference);n&&!n.has(t.value)&&this.reportError("$implicit"===t.value?"The template context does not have an implicit value":"The template context does not defined a member called '"+t.value+"'",function r(t){return{start:t.start.offset,end:t.end.offset}}
551
550
  /**
552
551
  * @license
553
552
  * Copyright Google Inc. All Rights Reserved.
554
553
  *
555
554
  * Use of this source code is governed by an MIT-style license that can be
556
555
  * found in the LICENSE file at https://angular.io/license
557
- */(t.sourceSpan))}},e.prototype.visitElement=function(e,n){this.push(e),t.prototype.visitElement.call(this,e,n),this.pop()},e.prototype.visitEmbeddedTemplate=function(e,n){var r=this.directiveSummary;this.push(e),this.directiveSummary=e.directives.map(function(t){return t.directive}).find(function(t){return function e(t){var e,n;if(t.diDeps)try{for(var r=u(t.diDeps),i=r.next();!i.done;i=r.next()){var o=i.value;if(o.token&&o.token.identifier&&"TemplateRef"==zt(o.token.identifier))return!0}}catch(t){e={error:t}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(e)throw e.error}}return!1}(t.type)}),t.prototype.visitEmbeddedTemplate.call(this,e,n),this.pop(),this.directiveSummary=r},e.prototype.attributeValueLocation=function(t){var e=pe(this.info.htmlAst,t.sourceSpan.start.offset).tail;return e instanceof se&&e.valueSpan?e.valueSpan.start.offset+1:t.sourceSpan.start.offset},e.prototype.diagnoseExpression=function(t,e,n){var r,i=this,o=this.getExpressionScope(this.path,n);(r=this.diagnostics).push.apply(r,l(function s(t,e,n,r){void 0===r&&(r={});var i=new Vu(t,n,r);return i.getDiagnostics(e),i.diagnostics}(o,t,this.info.query,{event:n}).map(function(t){return{span:Uu(t.ast.span,e+i.info.offset),kind:t.kind,message:t.message}})))},e.prototype.push=function(t){this.path.push(t)},e.prototype.pop=function(){this.path.pop()},e.prototype.reportError=function(t,e){e&&this.diagnostics.push({span:Uu(e,this.info.offset),kind:ju.Error,message:t})},e.prototype.reportWarning=function(t,e){this.diagnostics.push({span:Uu(e,this.info.offset),kind:ju.Warning,message:t})},e}(Dt);function Uu(t,e){return{start:t.start+e,end:t.end+e}}function zu(t){return t.split(".").map(Number)}function Wu(t,e){for(var n=Math.max(t.length,e.length),r=Math.min(t.length,e.length),i=0;i<r;i++){if(t[i]>e[i])return 1;if(t[i]<e[i])return-1}if(r!==n){var o=t.length===n?t:e,s=t.length===n?1:-1;for(i=r;i<n;i++)if(o[i]>0)return s}return 0}
556
+ */(t.sourceSpan))}},e.prototype.visitElement=function(e,n){this.push(e),t.prototype.visitElement.call(this,e,n),this.pop()},e.prototype.visitEmbeddedTemplate=function(e,n){var r=this.directiveSummary;this.push(e),this.directiveSummary=e.directives.map(function(t){return t.directive}).find(function(t){return function e(t){var e,n;if(t.diDeps)try{for(var r=p(t.diDeps),i=r.next();!i.done;i=r.next()){var o=i.value;if(o.token&&o.token.identifier&&"TemplateRef"==Gt(o.token.identifier))return!0}}catch(t){e={error:t}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(e)throw e.error}}return!1}(t.type)}),t.prototype.visitEmbeddedTemplate.call(this,e,n),this.pop(),this.directiveSummary=r},e.prototype.attributeValueLocation=function(t){var e=de(this.info.htmlAst,t.sourceSpan.start.offset).tail;return e instanceof ce&&e.valueSpan?e.valueSpan.start.offset+1:t.sourceSpan.start.offset},e.prototype.diagnoseExpression=function(t,e,n){var r,i=this,o=this.getExpressionScope(this.path,n);(r=this.diagnostics).push.apply(r,f(function s(t,e,n,r){void 0===r&&(r={});var i=new Uu(t,n,r);return i.getDiagnostics(e),i.diagnostics}(o,t,this.info.query,{event:n}).map(function(t){return{span:Xu(t.ast.span,e+i.info.offset),kind:t.kind,message:t.message}})))},e.prototype.push=function(t){this.path.push(t)},e.prototype.pop=function(){this.path.pop()},e.prototype.reportError=function(t,e){e&&this.diagnostics.push({span:Xu(e,this.info.offset),kind:Bu.Error,message:t})},e.prototype.reportWarning=function(t,e){this.diagnostics.push({span:Xu(e,this.info.offset),kind:Bu.Warning,message:t})},e}(Ft);function Xu(t,e){return{start:t.start+e,end:t.end+e}}function Yu(t){return t.split(".").map(Number)}function Zu(t,e){for(var n=Math.max(t.length,e.length),r=Math.min(t.length,e.length),i=0;i<r;i++){if(t[i]>e[i])return 1;if(t[i]<e[i])return-1}if(r!==n){var o=t.length===n?t:e,s=t.length===n?1:-1;for(i=r;i<n;i++)if(o[i]>0)return s}return 0}
558
557
  /**
559
558
  * @license
560
559
  * Copyright Google Inc. All Rights Reserved.
@@ -562,35 +561,35 @@ function Nu(){return new Ou(".")}!function(t){function e(e){var n=t.call(this)||
562
561
  * Use of this source code is governed by an MIT-style license that can be
563
562
  * found in the LICENSE file at https://angular.io/license
564
563
  */
565
- var Qu=r.ModifierFlags?function(t){return!!(r.getCombinedModifierFlags(t)&r.ModifierFlags.Private)}:function(t){return!!(t.flags&r.NodeFlags.Private)},Gu=r.ObjectFlags?function(t){return!!(t.flags&r.TypeFlags.Object&&t.objectFlags&r.ObjectFlags.Reference)}:function(t){return!!(t.flags&r.TypeFlags.Reference)},Xu=function(){function t(t,e,n,r){this.program=t,this.checker=e,this.source=n,this.fetchPipes=r,this.typeCache=new Map}return t.prototype.getTypeKind=function(t){return function t(e){var n,i;if(e){if(e.flags&r.TypeFlags.Any)return Du.Any;if(e.flags&(r.TypeFlags.String|r.TypeFlags.StringLike|r.TypeFlags.StringLiteral))return Du.String;if(e.flags&(r.TypeFlags.Number|r.TypeFlags.NumberLike))return Du.Number;if(e.flags&r.TypeFlags.Undefined)return Du.Undefined;if(e.flags&r.TypeFlags.Null)return Du.Null;if(e.flags&r.TypeFlags.Union){var o=null,s=e;if(s.types.length>0){o=t(s.types[0]);try{for(var a=u(s.types),c=a.next();!c.done;c=a.next())if(o!=t(c.value))return Du.Other}catch(t){n={error:t}}finally{try{c&&!c.done&&(i=a.return)&&i.call(a)}finally{if(n)throw n.error}}}if(null!=o)return o}else if(e.flags&r.TypeFlags.TypeParameter)return Du.Unbound}return Du.Other}(this.getTsTypeOf(t))},t.prototype.getBuiltinType=function(t){var e=this.typeCache.get(t);if(!e){var n=hc(t,{checker:this.checker,node:this.source,program:this.program});e=new Ju(n,{program:this.program,checker:this.checker,node:this.source}),this.typeCache.set(t,e)}return e},t.prototype.getTypeUnion=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n=void 0;if(t.length){n=t[0];for(var r=1;r<t.length;r++)if(t[r]!=n){n=void 0;break}}return n||this.getBuiltinType(Du.Any)},t.prototype.getArrayType=function(t){return this.getBuiltinType(Du.Any)},t.prototype.getElementType=function(t){if(t instanceof Ju){var e=yc(t.tsType,"Array");if(e)return new Ju(e,t.context)}},t.prototype.getNonNullableType=function(t){if(t instanceof Ju&&"function"==typeof this.checker.getNonNullableType){var e=t.tsType,n=this.checker.getNonNullableType(e);if(n!=e)return new Ju(n,t.context);if(n==e)return t}return this.getBuiltinType(Du.Any)},t.prototype.getPipes=function(){var t=this.pipesCache;return t||(t=this.pipesCache=this.fetchPipes()),t},t.prototype.getTemplateContext=function(t){var e={node:this.source,program:this.program,checker:this.checker},n=lc(t,e);if(n){var r=this.getTemplateRefContextType(n);if(r)return new tc(r,e).members()}},t.prototype.getTypeSymbol=function(t){var e={node:this.source,program:this.program,checker:this.checker},n=lc(t,e);return n&&new tc(n,e)},t.prototype.createSymbolTable=function(t){var e=new sc;return e.addAll(t.map(function(t){return new ec(t)})),e},t.prototype.mergeSymbolTable=function(t){var e,n,r=new sc;try{for(var i=u(t),o=i.next();!o.done;o=i.next())r.addAll(o.value.values())}catch(t){e={error:t}}finally{try{o&&!o.done&&(n=i.return)&&n.call(i)}finally{if(e)throw e.error}}return r},t.prototype.getSpanAt=function(t,e){return function n(t,e,i){if(null!=e&&null!=i){var o=r.getPositionOfLineAndCharacter(t,e,i),s=r.forEachChild(t,function t(e){if(e.kind>r.SyntaxKind.LastToken&&e.pos<=o&&e.end>o)return r.forEachChild(e,t)||e});if(s)return{start:s.getStart(),end:s.getEnd()}}}(this.source,t,e)},t.prototype.getTemplateRefContextType=function(t){var e,n,r=this.checker.getTypeOfSymbolAtLocation(t,this.source),i=r.symbol&&r.symbol.members&&mc(r.symbol.members,"__constructor");if(i){var o=i.declarations[0];try{for(var s=u(o.parameters),a=s.next();!a.done;a=s.next()){var c=this.checker.getTypeAtLocation(a.value.type);if("TemplateRef"==c.symbol.name&&Gu(c)&&c.typeArguments&&1===c.typeArguments.length)return c.typeArguments[0].symbol}}catch(t){e={error:t}}finally{try{a&&!a.done&&(n=s.return)&&n.call(s)}finally{if(e)throw e.error}}}},t.prototype.getTsTypeOf=function(t){var e=this.getTypeWrapper(t);return e&&e.tsType},t.prototype.getTypeWrapper=function(t){var e=void 0;return t instanceof Ju?e=t:t.type instanceof Ju&&(e=t.type),e},t}();function Yu(t){var e=t.getCallSignatures();return e&&0!=e.length}function Zu(t,e){return t.getCallSignatures().map(function(t){return new nc(t,e)})}function $u(t,e,n){var r=t.getCallSignatures();return r.length?new nc(r[0],e):void 0}var Ju=function(){function t(t,e){if(this.tsType=t,this.context=e,this.kind="type",this.language="typescript",this.type=void 0,this.container=void 0,this.public=!0,!t)throw Error("Internal: null type")}return Object.defineProperty(t.prototype,"name",{get:function(){var t=this.tsType.symbol;return t&&t.name||"<anonymous>"},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"callable",{get:function(){return Yu(this.tsType)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"nullable",{get:function(){return this.context.checker.getNonNullableType(this.tsType)!=this.tsType},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"definition",{get:function(){var t=this.tsType.getSymbol();return t?dc(t):void 0},enumerable:!0,configurable:!0}),t.prototype.members=function(){return new oc(this.tsType.getProperties(),this.context)},t.prototype.signatures=function(){return Zu(this.tsType,this.context)},t.prototype.selectSignature=function(t){return $u(this.tsType,this.context)},t.prototype.indexed=function(t){},t}(),tc=function(){function t(t,e){this.context=e,this.nullable=!1,this.language="typescript",this.symbol=t&&e&&t.flags&r.SymbolFlags.Alias?e.checker.getAliasedSymbol(t):t}return Object.defineProperty(t.prototype,"name",{get:function(){return this.symbol.name},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"kind",{get:function(){return this.callable?"method":"property"},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"type",{get:function(){return new Ju(this.tsType,this.context)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"container",{get:function(){return function t(e,n){var i,o;if(e.getFlags()&r.SymbolFlags.ClassMember&&e.declarations)try{for(var s=u(e.declarations),a=s.next();!a.done;a=s.next()){var c=vc(a.value);if(c){var l=n.checker.getTypeAtLocation(c);if(l)return new Ju(l,n)}}}catch(t){i={error:t}}finally{try{a&&!a.done&&(o=s.return)&&o.call(s)}finally{if(i)throw i.error}}}(this.symbol,this.context)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"public",{get:function(){return!function t(e){return!!e.valueDeclaration&&Qu(e.valueDeclaration)}(this.symbol)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"callable",{get:function(){return Yu(this.tsType)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"definition",{get:function(){return dc(this.symbol)},enumerable:!0,configurable:!0}),t.prototype.members=function(){if(!this._members)if(0!=(this.symbol.flags&(r.SymbolFlags.Class|r.SymbolFlags.Interface))){var t=this.context.checker.getDeclaredTypeOfSymbol(this.symbol),e=new Ju(t,this.context);this._members=e.members()}else this._members=new oc(this.symbol.members,this.context);return this._members},t.prototype.signatures=function(){return Zu(this.tsType,this.context)},t.prototype.selectSignature=function(t){return $u(this.tsType,this.context)},t.prototype.indexed=function(t){},Object.defineProperty(t.prototype,"tsType",{get:function(){var t=this._tsType;return t||(t=this._tsType=this.context.checker.getTypeOfSymbolAtLocation(this.symbol,this.context.node)),t},enumerable:!0,configurable:!0}),t}(),ec=function(){function t(t){this.declaration=t,this.language="ng-template",this.nullable=!1,this.public=!0}return Object.defineProperty(t.prototype,"name",{get:function(){return this.declaration.name},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"kind",{get:function(){return this.declaration.kind},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"container",{get:function(){},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"type",{get:function(){return this.declaration.type},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"callable",{get:function(){return this.declaration.type.callable},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"definition",{get:function(){return this.declaration.definition},enumerable:!0,configurable:!0}),t.prototype.members=function(){return this.declaration.type.members()},t.prototype.signatures=function(){return this.declaration.type.signatures()},t.prototype.selectSignature=function(t){return this.declaration.type.selectSignature(t)},t.prototype.indexed=function(t){},t}(),nc=function(){function t(t,e){this.signature=t,this.context=e}return Object.defineProperty(t.prototype,"arguments",{get:function(){return new oc(this.signature.getParameters(),this.context)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"result",{get:function(){return new Ju(this.signature.getReturnType(),this.context)},enumerable:!0,configurable:!0}),t}(),rc=function(){function t(t,e){this.signature=t,this.resultType=e}return Object.defineProperty(t.prototype,"arguments",{get:function(){return this.signature.arguments},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"result",{get:function(){return this.resultType},enumerable:!0,configurable:!0}),t}(),ic=function(t){return function(e){var n,r,i,o;if(function s(t,e,n){var r=zu(t);return void 0!==n?Wu(zu(e),r)<=0&&Wu(zu(n),r)>=0:Wu(zu(e),r)<=0}(t,"2.2")){var a=new Map;try{for(var c=u(e),l=c.next();!l.done;l=c.next())a.set((d=l.value).name,d)}catch(t){n={error:t}}finally{try{l&&!l.done&&(r=c.return)&&r.call(c)}finally{if(n)throw n.error}}return a}var p={};try{for(var h=u(e),f=h.next();!f.done;f=h.next()){var d;p[(d=f.value).name]=d}}catch(t){i={error:t}}finally{try{f&&!f.done&&(o=h.return)&&o.call(h)}finally{if(i)throw i.error}}return p}},oc=function(){function t(t,e){if(this.context=e,t=t||[],Array.isArray(t)){this.symbols=t;var n=ic(r.version);this.symbolTable=n(t)}else this.symbols=function i(t){if(!t)return[];var e=t;if("function"==typeof e.values)return Array.from(e.values());var n=[],r="function"==typeof e.hasOwnProperty?function(t){return e.hasOwnProperty(t)}:function(t){return!!e[t]};for(var i in e)r(i)&&n.push(e[i]);return n}(t),this.symbolTable=t}return Object.defineProperty(t.prototype,"size",{get:function(){return this.symbols.length},enumerable:!0,configurable:!0}),t.prototype.get=function(t){var e=mc(this.symbolTable,t);return e?new tc(e,this.context):void 0},t.prototype.has=function(t){var e=this.symbolTable;return"function"==typeof e.has?e.has(t):null!=e[t]},t.prototype.values=function(){var t=this;return this.symbols.map(function(e){return new tc(e,t.context)})},t}(),sc=function(){function t(){this.map=new Map,this._values=[]}return Object.defineProperty(t.prototype,"size",{get:function(){return this.map.size},enumerable:!0,configurable:!0}),t.prototype.get=function(t){return this.map.get(t)},t.prototype.add=function(t){if(this.map.has(t.name)){var e=this.map.get(t.name);this._values[this._values.indexOf(e)]=t}this.map.set(t.name,t),this._values.push(t)},t.prototype.addAll=function(t){var e,n;try{for(var r=u(t),i=r.next();!i.done;i=r.next())this.add(i.value)}catch(t){e={error:t}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(e)throw e.error}}},t.prototype.has=function(t){return this.map.has(t)},t.prototype.values=function(){return this._values},t}(),ac=function(){function t(t,e){this.pipes=t,this.context=e}return Object.defineProperty(t.prototype,"size",{get:function(){return this.pipes.length},enumerable:!0,configurable:!0}),t.prototype.get=function(t){var e=this.pipes.find(function(e){return e.name==t});if(e)return new cc(e,this.context)},t.prototype.has=function(t){return null!=this.pipes.find(function(e){return e.name==t})},t.prototype.values=function(){var t=this;return this.pipes.map(function(e){return new cc(e,t.context)})},t}(),uc=/[\\/]([^\\/]+)[\\/]\1\.d\.ts$/,cc=function(){function t(t,e){this.pipe=t,this.context=e,this.kind="pipe",this.language="typescript",this.container=void 0,this.callable=!0,this.nullable=!1,this.public=!0}return Object.defineProperty(t.prototype,"name",{get:function(){return this.pipe.name},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"type",{get:function(){return new Ju(this.tsType,this.context)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"definition",{get:function(){var t=this.tsType.getSymbol();return t?dc(t):void 0},enumerable:!0,configurable:!0}),t.prototype.members=function(){return pc.instance},t.prototype.signatures=function(){return Zu(this.tsType,this.context)},t.prototype.selectSignature=function(t){var e=$u(this.tsType,this.context);if(1==t.length){var n=t[0];if(n instanceof Ju){var r=void 0;switch(this.name){case"async":switch(n.name){case"Observable":case"Promise":case"EventEmitter":r=yc(n.tsType,n.name);break;default:r=hc(Du.Any,this.context)}break;case"slice":r=yc(n.tsType,"Array")}r&&(e=new rc(e,new Ju(r,n.context)))}}return e},t.prototype.indexed=function(t){},Object.defineProperty(t.prototype,"tsType",{get:function(){var t=this._tsType;if(!t){var e=this.findClassSymbol(this.pipe.type.reference);e&&(t=this._tsType=this.findTransformMethodType(e)),t||(t=this._tsType=hc(Du.Any,this.context))}return t},enumerable:!0,configurable:!0}),t.prototype.findClassSymbol=function(t){return lc(t,this.context)},t.prototype.findTransformMethodType=function(t){var e=this.context.checker.getDeclaredTypeOfSymbol(t);if(e){var n=e.getProperty("transform");if(n)return this.context.checker.getTypeOfSymbolAtLocation(n,this.context.node)}},t}();function lc(t,e){var r=e.program.getSourceFile(t.filePath);if(!r){var i=t.filePath;if(i.match(uc)){var o=n.join(n.dirname(i),"index.d.ts");r=e.program.getSourceFile(o)}}if(r)return(e.checker.getExportsOfModule(r.module||r.symbol)||[]).find(function(e){return e.name==t.name})}var pc=function(){function t(){this.size=0}return t.prototype.get=function(t){},t.prototype.has=function(t){return!1},t.prototype.values=function(){return[]},t.instance=new t,t}();function hc(t,e){var n,i=e.checker,o=e.node;switch(t){case Du.Any:n=i.getTypeAtLocation(fc({kind:r.SyntaxKind.AsExpression,expression:{kind:r.SyntaxKind.TrueKeyword},type:{kind:r.SyntaxKind.AnyKeyword}},o));break;case Du.Boolean:n=i.getTypeAtLocation(fc({kind:r.SyntaxKind.TrueKeyword},o));break;case Du.Null:n=i.getTypeAtLocation(fc({kind:r.SyntaxKind.NullKeyword},o));break;case Du.Number:var s={kind:r.SyntaxKind.NumericLiteral};fc({kind:r.SyntaxKind.ExpressionStatement,expression:s},o),n=i.getTypeAtLocation(s);break;case Du.String:n=i.getTypeAtLocation(fc({kind:r.SyntaxKind.NoSubstitutionTemplateLiteral},o));break;case Du.Undefined:n=i.getTypeAtLocation(fc({kind:r.SyntaxKind.VoidExpression,expression:{kind:r.SyntaxKind.NumericLiteral}},o));break;default:throw new Error("Internal error, unhandled literal kind "+t+":"+Du[t])}return n}function fc(t,e){return t.parent=e,r.forEachChild(t,function(e){return fc(e,t)}),t}function dc(t){var e=t.declarations;if(e)return e.map(function(t){return{fileName:t.getSourceFile().fileName,span:{start:t.getStart(),end:t.getEnd()}}})}function vc(t){for(;t;){switch(t.kind){case r.SyntaxKind.ClassDeclaration:case r.SyntaxKind.InterfaceDeclaration:return t;case r.SyntaxKind.SourceFile:return}t=t.parent}}function yc(t,e){if(t&&t.symbol&&t.symbol.name==e){var n=t.typeArguments;if(n&&n.length<=1)return n[0]}}function mc(t,e){var n=t;return"function"==typeof n.get?n.get(e):n[e]}
564
+ var $u=r.ModifierFlags?function(t){return!!(r.getCombinedModifierFlags(t)&r.ModifierFlags.Private)}:function(t){return!!(t.flags&r.NodeFlags.Private)},Ju=r.ObjectFlags?function(t){return!!(t.flags&r.TypeFlags.Object&&t.objectFlags&r.ObjectFlags.Reference)}:function(t){return!!(t.flags&r.TypeFlags.Reference)},tc=function(){function t(t,e,n,r){this.program=t,this.checker=e,this.source=n,this.fetchPipes=r,this.typeCache=new Map}return t.prototype.getTypeKind=function(t){return function t(e){var n,i;if(e){if(e.flags&r.TypeFlags.Any)return Hu.Any;if(e.flags&(r.TypeFlags.String|r.TypeFlags.StringLike|r.TypeFlags.StringLiteral))return Hu.String;if(e.flags&(r.TypeFlags.Number|r.TypeFlags.NumberLike))return Hu.Number;if(e.flags&r.TypeFlags.Undefined)return Hu.Undefined;if(e.flags&r.TypeFlags.Null)return Hu.Null;if(e.flags&r.TypeFlags.Union){var o=null,s=e;if(s.types.length>0){o=t(s.types[0]);try{for(var a=p(s.types),u=a.next();!u.done;u=a.next())if(o!=t(u.value))return Hu.Other}catch(t){n={error:t}}finally{try{u&&!u.done&&(i=a.return)&&i.call(a)}finally{if(n)throw n.error}}}if(null!=o)return o}else if(e.flags&r.TypeFlags.TypeParameter)return Hu.Unbound}return Hu.Other}(this.getTsTypeOf(t))},t.prototype.getBuiltinType=function(t){var e=this.typeCache.get(t);if(!e){var n=mc(t,{checker:this.checker,node:this.source,program:this.program});e=new ic(n,{program:this.program,checker:this.checker,node:this.source}),this.typeCache.set(t,e)}return e},t.prototype.getTypeUnion=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n=void 0;if(t.length){n=t[0];for(var r=1;r<t.length;r++)if(t[r]!=n){n=void 0;break}}return n||this.getBuiltinType(Hu.Any)},t.prototype.getArrayType=function(t){return this.getBuiltinType(Hu.Any)},t.prototype.getElementType=function(t){if(t instanceof ic){var e=wc(t.tsType,"Array");if(e)return new ic(e,t.context)}},t.prototype.getNonNullableType=function(t){if(t instanceof ic&&"function"==typeof this.checker.getNonNullableType){var e=t.tsType,n=this.checker.getNonNullableType(e);if(n!=e)return new ic(n,t.context);if(n==e)return t}return this.getBuiltinType(Hu.Any)},t.prototype.getPipes=function(){var t=this.pipesCache;return t||(t=this.pipesCache=this.fetchPipes()),t},t.prototype.getTemplateContext=function(t){var e={node:this.source,program:this.program,checker:this.checker},n=vc(t,e);if(n){var r=this.getTemplateRefContextType(n);if(r)return new oc(r,e).members()}},t.prototype.getTypeSymbol=function(t){var e={node:this.source,program:this.program,checker:this.checker},n=vc(t,e);return n&&new oc(n,e)},t.prototype.createSymbolTable=function(t){var e=new pc;return e.addAll(t.map(function(t){return new sc(t)})),e},t.prototype.mergeSymbolTable=function(t){var e,n,r=new pc;try{for(var i=p(t),o=i.next();!o.done;o=i.next())r.addAll(o.value.values())}catch(t){e={error:t}}finally{try{o&&!o.done&&(n=i.return)&&n.call(i)}finally{if(e)throw e.error}}return r},t.prototype.getSpanAt=function(t,e){return function n(t,e,i){if(null!=e&&null!=i){var o=r.getPositionOfLineAndCharacter(t,e,i),s=r.forEachChild(t,function t(e){if(e.kind>r.SyntaxKind.LastToken&&e.pos<=o&&e.end>o)return r.forEachChild(e,t)||e});if(s)return{start:s.getStart(),end:s.getEnd()}}}(this.source,t,e)},t.prototype.getTemplateRefContextType=function(t){var e,n,r=this.checker.getTypeOfSymbolAtLocation(t,this.source),i=r.symbol&&r.symbol.members&&xc(r.symbol.members,"__constructor");if(i){var o=i.declarations[0];try{for(var s=p(o.parameters),a=s.next();!a.done;a=s.next()){var u=this.checker.getTypeAtLocation(a.value.type);if("TemplateRef"==u.symbol.name&&Ju(u)&&u.typeArguments&&1===u.typeArguments.length)return u.typeArguments[0].symbol}}catch(t){e={error:t}}finally{try{a&&!a.done&&(n=s.return)&&n.call(s)}finally{if(e)throw e.error}}}},t.prototype.getTsTypeOf=function(t){var e=this.getTypeWrapper(t);return e&&e.tsType},t.prototype.getTypeWrapper=function(t){var e=void 0;return t instanceof ic?e=t:t.type instanceof ic&&(e=t.type),e},t}();function ec(t){var e=t.getCallSignatures();return e&&0!=e.length}function nc(t,e){return t.getCallSignatures().map(function(t){return new ac(t,e)})}function rc(t,e,n){var r=t.getCallSignatures();return r.length?new ac(r[0],e):void 0}var ic=function(){function t(t,e){if(this.tsType=t,this.context=e,this.kind="type",this.language="typescript",this.type=void 0,this.container=void 0,this.public=!0,!t)throw Error("Internal: null type")}return Object.defineProperty(t.prototype,"name",{get:function(){var t=this.tsType.symbol;return t&&t.name||"<anonymous>"},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"callable",{get:function(){return ec(this.tsType)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"nullable",{get:function(){return this.context.checker.getNonNullableType(this.tsType)!=this.tsType},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"definition",{get:function(){var t=this.tsType.getSymbol();return t?_c(t):void 0},enumerable:!0,configurable:!0}),t.prototype.members=function(){return new lc(this.tsType.getProperties(),this.context)},t.prototype.signatures=function(){return nc(this.tsType,this.context)},t.prototype.selectSignature=function(t){return rc(this.tsType,this.context)},t.prototype.indexed=function(t){},t}(),oc=function(){function t(t,e){this.context=e,this.nullable=!1,this.language="typescript",this.symbol=t&&e&&t.flags&r.SymbolFlags.Alias?e.checker.getAliasedSymbol(t):t}return Object.defineProperty(t.prototype,"name",{get:function(){return this.symbol.name},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"kind",{get:function(){return this.callable?"method":"property"},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"type",{get:function(){return new ic(this.tsType,this.context)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"container",{get:function(){return function t(e,n){var i,o;if(e.getFlags()&r.SymbolFlags.ClassMember&&e.declarations)try{for(var s=p(e.declarations),a=s.next();!a.done;a=s.next()){var u=bc(a.value);if(u){var c=n.checker.getTypeAtLocation(u);if(c)return new ic(c,n)}}}catch(t){i={error:t}}finally{try{a&&!a.done&&(o=s.return)&&o.call(s)}finally{if(i)throw i.error}}}(this.symbol,this.context)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"public",{get:function(){return!function t(e){return!!e.valueDeclaration&&$u(e.valueDeclaration)}(this.symbol)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"callable",{get:function(){return ec(this.tsType)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"definition",{get:function(){return _c(this.symbol)},enumerable:!0,configurable:!0}),t.prototype.members=function(){if(!this._members)if(0!=(this.symbol.flags&(r.SymbolFlags.Class|r.SymbolFlags.Interface))){var t=this.context.checker.getDeclaredTypeOfSymbol(this.symbol),e=new ic(t,this.context);this._members=e.members()}else this._members=new lc(this.symbol.members,this.context);return this._members},t.prototype.signatures=function(){return nc(this.tsType,this.context)},t.prototype.selectSignature=function(t){return rc(this.tsType,this.context)},t.prototype.indexed=function(t){},Object.defineProperty(t.prototype,"tsType",{get:function(){var t=this._tsType;return t||(t=this._tsType=this.context.checker.getTypeOfSymbolAtLocation(this.symbol,this.context.node)),t},enumerable:!0,configurable:!0}),t}(),sc=function(){function t(t){this.declaration=t,this.language="ng-template",this.nullable=!1,this.public=!0}return Object.defineProperty(t.prototype,"name",{get:function(){return this.declaration.name},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"kind",{get:function(){return this.declaration.kind},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"container",{get:function(){},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"type",{get:function(){return this.declaration.type},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"callable",{get:function(){return this.declaration.type.callable},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"definition",{get:function(){return this.declaration.definition},enumerable:!0,configurable:!0}),t.prototype.members=function(){return this.declaration.type.members()},t.prototype.signatures=function(){return this.declaration.type.signatures()},t.prototype.selectSignature=function(t){return this.declaration.type.selectSignature(t)},t.prototype.indexed=function(t){},t}(),ac=function(){function t(t,e){this.signature=t,this.context=e}return Object.defineProperty(t.prototype,"arguments",{get:function(){return new lc(this.signature.getParameters(),this.context)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"result",{get:function(){return new ic(this.signature.getReturnType(),this.context)},enumerable:!0,configurable:!0}),t}(),uc=function(){function t(t,e){this.signature=t,this.resultType=e}return Object.defineProperty(t.prototype,"arguments",{get:function(){return this.signature.arguments},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"result",{get:function(){return this.resultType},enumerable:!0,configurable:!0}),t}(),cc=function(t){return function(e){var n,r,i,o;if(function s(t,e,n){var r=Yu(t);return void 0!==n?Zu(Yu(e),r)<=0&&Zu(Yu(n),r)>=0:Zu(Yu(e),r)<=0}(t,"2.2")){var a=new Map;try{for(var u=p(e),c=u.next();!c.done;c=u.next())a.set((d=c.value).name,d)}catch(t){n={error:t}}finally{try{c&&!c.done&&(r=u.return)&&r.call(u)}finally{if(n)throw n.error}}return a}var l={};try{for(var h=p(e),f=h.next();!f.done;f=h.next()){var d;l[(d=f.value).name]=d}}catch(t){i={error:t}}finally{try{f&&!f.done&&(o=h.return)&&o.call(h)}finally{if(i)throw i.error}}return l}},lc=function(){function t(t,e){if(this.context=e,t=t||[],Array.isArray(t)){this.symbols=t;var n=cc(r.version);this.symbolTable=n(t)}else this.symbols=function i(t){if(!t)return[];var e=t;if("function"==typeof e.values)return Array.from(e.values());var n=[],r="function"==typeof e.hasOwnProperty?function(t){return e.hasOwnProperty(t)}:function(t){return!!e[t]};for(var i in e)r(i)&&n.push(e[i]);return n}(t),this.symbolTable=t}return Object.defineProperty(t.prototype,"size",{get:function(){return this.symbols.length},enumerable:!0,configurable:!0}),t.prototype.get=function(t){var e=xc(this.symbolTable,t);return e?new oc(e,this.context):void 0},t.prototype.has=function(t){var e=this.symbolTable;return"function"==typeof e.has?e.has(t):null!=e[t]},t.prototype.values=function(){var t=this;return this.symbols.map(function(e){return new oc(e,t.context)})},t}(),pc=function(){function t(){this.map=new Map,this._values=[]}return Object.defineProperty(t.prototype,"size",{get:function(){return this.map.size},enumerable:!0,configurable:!0}),t.prototype.get=function(t){return this.map.get(t)},t.prototype.add=function(t){if(this.map.has(t.name)){var e=this.map.get(t.name);this._values[this._values.indexOf(e)]=t}this.map.set(t.name,t),this._values.push(t)},t.prototype.addAll=function(t){var e,n;try{for(var r=p(t),i=r.next();!i.done;i=r.next())this.add(i.value)}catch(t){e={error:t}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(e)throw e.error}}},t.prototype.has=function(t){return this.map.has(t)},t.prototype.values=function(){return this._values},t}(),hc=function(){function t(t,e){this.pipes=t,this.context=e}return Object.defineProperty(t.prototype,"size",{get:function(){return this.pipes.length},enumerable:!0,configurable:!0}),t.prototype.get=function(t){var e=this.pipes.find(function(e){return e.name==t});if(e)return new dc(e,this.context)},t.prototype.has=function(t){return null!=this.pipes.find(function(e){return e.name==t})},t.prototype.values=function(){var t=this;return this.pipes.map(function(e){return new dc(e,t.context)})},t}(),fc=/[\\/]([^\\/]+)[\\/]\1\.d\.ts$/,dc=function(){function t(t,e){this.pipe=t,this.context=e,this.kind="pipe",this.language="typescript",this.container=void 0,this.callable=!0,this.nullable=!1,this.public=!0}return Object.defineProperty(t.prototype,"name",{get:function(){return this.pipe.name},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"type",{get:function(){return new ic(this.tsType,this.context)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"definition",{get:function(){var t=this.tsType.getSymbol();return t?_c(t):void 0},enumerable:!0,configurable:!0}),t.prototype.members=function(){return yc.instance},t.prototype.signatures=function(){return nc(this.tsType,this.context)},t.prototype.selectSignature=function(t){var e=rc(this.tsType,this.context);if(1==t.length){var n=t[0];if(n instanceof ic){var r=void 0;switch(this.name){case"async":switch(n.name){case"Observable":case"Promise":case"EventEmitter":r=wc(n.tsType,n.name);break;default:r=mc(Hu.Any,this.context)}break;case"slice":r=wc(n.tsType,"Array")}r&&(e=new uc(e,new ic(r,n.context)))}}return e},t.prototype.indexed=function(t){},Object.defineProperty(t.prototype,"tsType",{get:function(){var t=this._tsType;if(!t){var e=this.findClassSymbol(this.pipe.type.reference);e&&(t=this._tsType=this.findTransformMethodType(e)),t||(t=this._tsType=mc(Hu.Any,this.context))}return t},enumerable:!0,configurable:!0}),t.prototype.findClassSymbol=function(t){return vc(t,this.context)},t.prototype.findTransformMethodType=function(t){var e=this.context.checker.getDeclaredTypeOfSymbol(t);if(e){var n=e.getProperty("transform");if(n)return this.context.checker.getTypeOfSymbolAtLocation(n,this.context.node)}},t}();function vc(t,e){var r=e.program.getSourceFile(t.filePath);if(!r){var i=t.filePath;if(i.match(fc)){var o=n.join(n.dirname(i),"index.d.ts");r=e.program.getSourceFile(o)}}if(r)return(e.checker.getExportsOfModule(r.module||r.symbol)||[]).find(function(e){return e.name==t.name})}var yc=function(){function t(){this.size=0}return t.prototype.get=function(t){},t.prototype.has=function(t){return!1},t.prototype.values=function(){return[]},t.instance=new t,t}();function mc(t,e){var n,i=e.checker,o=e.node;switch(t){case Hu.Any:n=i.getTypeAtLocation(gc({kind:r.SyntaxKind.AsExpression,expression:{kind:r.SyntaxKind.TrueKeyword},type:{kind:r.SyntaxKind.AnyKeyword}},o));break;case Hu.Boolean:n=i.getTypeAtLocation(gc({kind:r.SyntaxKind.TrueKeyword},o));break;case Hu.Null:n=i.getTypeAtLocation(gc({kind:r.SyntaxKind.NullKeyword},o));break;case Hu.Number:var s={kind:r.SyntaxKind.NumericLiteral};gc({kind:r.SyntaxKind.ExpressionStatement,expression:s},o),n=i.getTypeAtLocation(s);break;case Hu.String:n=i.getTypeAtLocation(gc({kind:r.SyntaxKind.NoSubstitutionTemplateLiteral},o));break;case Hu.Undefined:n=i.getTypeAtLocation(gc({kind:r.SyntaxKind.VoidExpression,expression:{kind:r.SyntaxKind.NumericLiteral}},o));break;default:throw new Error("Internal error, unhandled literal kind "+t+":"+Hu[t])}return n}function gc(t,e){return t.parent=e,r.forEachChild(t,function(e){return gc(e,t)}),t}function _c(t){var e=t.declarations;if(e)return e.map(function(t){return{fileName:t.getSourceFile().fileName,span:{start:t.getStart(),end:t.getEnd()}}})}function bc(t){for(;t;){switch(t.kind){case r.SyntaxKind.ClassDeclaration:case r.SyntaxKind.InterfaceDeclaration:return t;case r.SyntaxKind.SourceFile:return}t=t.parent}}function wc(t,e){if(t&&t.symbol&&t.symbol.name==e){var n=t.typeArguments;if(n&&n.length<=1)return n[0]}}function xc(t,e){var n=t;return"function"==typeof n.get?n.get(e):n[e]}
566
565
  /**
567
566
  * @license
568
567
  * Copyright Google Inc. All Rights Reserved.
569
568
  *
570
569
  * Use of this source code is governed by an MIT-style license that can be
571
570
  * found in the LICENSE file at https://angular.io/license
572
- */var gc=4;function _c(t){return t&&"function"===t.__symbolic}function bc(t){return t&&t.name&&!t.module&&xc(t)}function wc(t){return t&&t.module&&!t.name&&!t.default&&xc(t)}function xc(t){return t&&"reference"===t.__symbolic}function Ec(t){return t&&"error"===t.__symbolic}
571
+ */var Ec=4;function Sc(t){return t&&"function"===t.__symbolic}function Cc(t){return t&&t.name&&!t.module&&Pc(t)}function Tc(t){return t&&t.module&&!t.name&&!t.default&&Pc(t)}function Pc(t){return t&&"reference"===t.__symbolic}function Ac(t){return t&&"error"===t.__symbolic}
573
572
  /**
574
573
  * @license
575
574
  * Copyright Google Inc. All Rights Reserved.
576
575
  *
577
576
  * Use of this source code is governed by an MIT-style license that can be
578
577
  * found in the LICENSE file at https://angular.io/license
579
- */var Sc=r.SyntaxKind.SpreadElement||r.SyntaxKind.SpreadElementExpression;function Cc(t,e){var n=t.expression;if(n.kind===r.SyntaxKind.PropertyAccessExpression){var i=n.name;if(i.kind==r.SyntaxKind.Identifier)return i.text===e}return!1}function Tc(t,e){var n=t.expression;return n.kind===r.SyntaxKind.Identifier&&n.text===e}function Pc(t,e,n,r){if(!n.has(t)&&(n.set(t,e),e&&(function i(t){return t&&t.module&&!!t.name&&xc(t)}(t)||function o(t){return t&&t.module&&t.default&&xc(t)}(t))&&null==t.line)){var s=Oc(e,r);null!=s.line&&(t.line=s.line),null!=s.character&&(t.character=s.character)}return t}function Ac(t,e){return!r.forEachChild(t,function(t){return!e(t)})}function Nc(t){return Object(t)!==t}function kc(t){return void 0!==t}function Oc(t,e){return t&&(e=e||function n(t){for(;t&&t.kind!=r.SyntaxKind.SourceFile;)t=t.parent;return t}(t))?r.getLineAndCharacterOfPosition(e,t.getStart(e)):{}}function Mc(t,e,n,r){var i=a({__symbolic:"error",message:t},Oc(e,r));return n&&(i.context=n),i}var Ic=function(){function t(t,e,n,r){void 0===n&&(n={}),this.symbols=t,this.nodeMap=e,this.options=n,this.recordExport=r}return t.prototype.nameOf=function(t){if(t&&t.kind==r.SyntaxKind.Identifier)return t.text;var e=t&&this.evaluateNode(t);return Ec(e)||"string"==typeof e?e:Mc("Name expected",t,{received:t&&t.getText()||"<missing>"})},t.prototype.isFoldable=function(t){return this.isFoldableWorker(t,new Map)},t.prototype.isFoldableWorker=function(t,e){var n=this;if(t)switch(t.kind){case r.SyntaxKind.ObjectLiteralExpression:return Ac(t,function(t){return t.kind===r.SyntaxKind.PropertyAssignment&&n.isFoldableWorker(t.initializer,e)});case r.SyntaxKind.ArrayLiteralExpression:return Ac(t,function(t){return n.isFoldableWorker(t,e)});case r.SyntaxKind.CallExpression:var i=t;if(Cc(i,"concat")&&1===jc(i.arguments).length){var o=i.expression.expression;if(this.isFoldableWorker(o,e)&&this.isFoldableWorker(i.arguments[0],e)){var s=this.evaluateNode(o);if(s&&Array.isArray(s))return!0}}return!(!Tc(i,"CONST_EXPR")||1!==jc(i.arguments).length)&&this.isFoldableWorker(i.arguments[0],e);case r.SyntaxKind.NoSubstitutionTemplateLiteral:case r.SyntaxKind.StringLiteral:case r.SyntaxKind.NumericLiteral:case r.SyntaxKind.NullKeyword:case r.SyntaxKind.TrueKeyword:case r.SyntaxKind.FalseKeyword:case r.SyntaxKind.TemplateHead:case r.SyntaxKind.TemplateMiddle:case r.SyntaxKind.TemplateTail:return!0;case r.SyntaxKind.ParenthesizedExpression:return this.isFoldableWorker(t.expression,e);case r.SyntaxKind.BinaryExpression:var a=t;switch(a.operatorToken.kind){case r.SyntaxKind.PlusToken:case r.SyntaxKind.MinusToken:case r.SyntaxKind.AsteriskToken:case r.SyntaxKind.SlashToken:case r.SyntaxKind.PercentToken:case r.SyntaxKind.AmpersandAmpersandToken:case r.SyntaxKind.BarBarToken:return this.isFoldableWorker(a.left,e)&&this.isFoldableWorker(a.right,e);default:return!1}case r.SyntaxKind.PropertyAccessExpression:return this.isFoldableWorker(t.expression,e);case r.SyntaxKind.ElementAccessExpression:var u=t;return this.isFoldableWorker(u.expression,e)&&this.isFoldableWorker(u.argumentExpression,e);case r.SyntaxKind.Identifier:var c=this.symbols.resolve(t.text);if(void 0!==c&&Nc(c))return!0;break;case r.SyntaxKind.TemplateExpression:return t.templateSpans.every(function(t){return n.isFoldableWorker(t.expression,e)})}return!1},t.prototype.evaluateNode=function(t,e){var n,i=this,o=this;function s(t,e){if(o.options.substituteExpression){var n=o.options.substituteExpression(t,e);o.recordExport&&n!=t&&bc(n)&&o.recordExport(n.name,t),t=n}return Pc(t,e,o.nodeMap)}function c(t){return!o.options.verboseInvalidExpression&&Ec(t)}var l=function(e,n){var r=i.symbols.resolve(e,n);return void 0===r?s({__symbolic:"reference",name:e},t):r&&xc(r)?s(a({},r),t):r};switch(t.kind){case r.SyntaxKind.ObjectLiteralExpression:var p={},h=[];return r.forEachChild(t,function(t){switch(t.kind){case r.SyntaxKind.ShorthandPropertyAssignment:case r.SyntaxKind.PropertyAssignment:var e=t;e.name.kind==r.SyntaxKind.StringLiteral&&h.push(e.name.text);var o=i.nameOf(e.name);if(c(o))return n=o,!0;var a=Rc(e)?i.evaluateNode(e.initializer,!0):l(o,!0);if(c(a))return n=a,!0;p[o]=Rc(e)?s(a,e.initializer):a}}),n||(this.options.quotedNames&&h.length&&(p.$quoted$=h),s(p,t));case r.SyntaxKind.ArrayLiteralExpression:var f=[];return r.forEachChild(t,function(t){var e,r,o=i.evaluateNode(t,!0);if(c(o))return n=o,!0;if(function s(t){return t&&"spread"===t.__symbolic}(o)&&Array.isArray(o.expression))try{for(var a=u(o.expression),l=a.next();!l.done;l=a.next())f.push(l.value)}catch(t){e={error:t}}finally{try{l&&!l.done&&(r=a.return)&&r.call(a)}finally{if(e)throw e.error}}else f.push(o)}),n||s(f,t);case Sc:return s({__symbolic:"spread",expression:this.evaluateNode(t.expression)},t);case r.SyntaxKind.CallExpression:var d=t;if(Tc(d,"forwardRef")&&1===jc(d.arguments).length){var v=d.arguments[0];if(v.kind==r.SyntaxKind.ArrowFunction)return s(this.evaluateNode(v.body),t)}var y=jc(d.arguments).map(function(t){return i.evaluateNode(t)});if(this.isFoldable(d)&&Cc(d,"concat")){var m=this.evaluateNode(d.expression.expression);return c(m)?m:m.concat(y[0])}if(Tc(d,"CONST_EXPR")&&1===jc(d.arguments).length)return s(y[0],t);var g=this.evaluateNode(d.expression);if(c(g))return s(g,t);var _={__symbolic:"call",expression:g};return y&&y.length&&(_.arguments=y),s(_,t);case r.SyntaxKind.NewExpression:var b=t,w=jc(b.arguments).map(function(t){return i.evaluateNode(t)}),x=this.evaluateNode(b.expression);if(Ec(x))return s(x,t);var E={__symbolic:"new",expression:x};return w.length&&(E.arguments=w),s(E,t);case r.SyntaxKind.PropertyAccessExpression:var S=t,C=this.evaluateNode(S.expression);if(c(C))return s(C,t);var T=this.nameOf(S.name);return c(T)?s(T,t):C&&this.isFoldable(S.expression)?C[T]:wc(C)?s({__symbolic:"reference",module:C.module,name:T},t):s({__symbolic:"select",expression:C,member:T},t);case r.SyntaxKind.ElementAccessExpression:var P=t,A=this.evaluateNode(P.expression);if(c(A))return s(A,t);if(!P.argumentExpression)return s(Mc("Expression form not supported",t),t);var N=this.evaluateNode(P.argumentExpression);return c(A)?s(A,t):this.isFoldable(P.expression)&&this.isFoldable(P.argumentExpression)?A[N]:s({__symbolic:"index",expression:A,index:N},t);case r.SyntaxKind.Identifier:return l(t.text,e);case r.SyntaxKind.TypeReference:var k=t,O=k.typeName,M=function(t){if(O.kind===r.SyntaxKind.QualifiedName){var e=t,n=i.evaluateNode(e.left);return wc(n)?s({__symbolic:"reference",module:n.module,name:e.right.text},t):{__symbolic:"select",expression:n,member:e.right.text}}var o=O,a=i.symbols.resolve(o.text);return c(a)||xc(a)?s(a,t):s(Mc("Could not resolve type",t,{typeName:o.text}),t)}(O);if(c(M))return s(M,t);if(!wc(M)&&k.typeArguments&&k.typeArguments.length){var I=k.typeArguments.map(function(t){return i.evaluateNode(t)});M.arguments=I}return s(M,t);case r.SyntaxKind.UnionType:for(var R=t.types.filter(function(t){return t.kind!=r.SyntaxKind.NullKeyword&&t.kind!=r.SyntaxKind.UndefinedKeyword}).map(function(t){return i.evaluateNode(t)}),D=null,j=0;j<R.length;j++){var L=R[j];if(!xc(L))return L;D&&(L.name!=D.name||L.module!=D.module||L.arguments)||(D=L)}if(D)return D;break;case r.SyntaxKind.NoSubstitutionTemplateLiteral:case r.SyntaxKind.StringLiteral:case r.SyntaxKind.TemplateHead:case r.SyntaxKind.TemplateTail:case r.SyntaxKind.TemplateMiddle:return t.text;case r.SyntaxKind.NumericLiteral:return parseFloat(t.text);case r.SyntaxKind.AnyKeyword:return s({__symbolic:"reference",name:"any"},t);case r.SyntaxKind.StringKeyword:return s({__symbolic:"reference",name:"string"},t);case r.SyntaxKind.NumberKeyword:return s({__symbolic:"reference",name:"number"},t);case r.SyntaxKind.BooleanKeyword:return s({__symbolic:"reference",name:"boolean"},t);case r.SyntaxKind.ArrayType:return s({__symbolic:"reference",name:"Array",arguments:[this.evaluateNode(t.elementType)]},t);case r.SyntaxKind.NullKeyword:return null;case r.SyntaxKind.TrueKeyword:return!0;case r.SyntaxKind.FalseKeyword:return!1;case r.SyntaxKind.ParenthesizedExpression:case r.SyntaxKind.TypeAssertionExpression:return this.evaluateNode(t.expression);case r.SyntaxKind.PrefixUnaryExpression:var F=t,V=this.evaluateNode(F.operand);if(kc(V)&&Nc(V))switch(F.operator){case r.SyntaxKind.PlusToken:return+V;case r.SyntaxKind.MinusToken:return-V;case r.SyntaxKind.TildeToken:return~V;case r.SyntaxKind.ExclamationToken:return!V}var H=void 0;switch(F.operator){case r.SyntaxKind.PlusToken:H="+";break;case r.SyntaxKind.MinusToken:H="-";break;case r.SyntaxKind.TildeToken:H="~";break;case r.SyntaxKind.ExclamationToken:H="!";break;default:return}return s({__symbolic:"pre",operator:H,operand:V},t);case r.SyntaxKind.BinaryExpression:var B=t,q=this.evaluateNode(B.left),K=this.evaluateNode(B.right);if(kc(q)&&kc(K)){if(Nc(q)&&Nc(K))switch(B.operatorToken.kind){case r.SyntaxKind.BarBarToken:return q||K;case r.SyntaxKind.AmpersandAmpersandToken:return q&&K;case r.SyntaxKind.AmpersandToken:return q&K;case r.SyntaxKind.BarToken:return q|K;case r.SyntaxKind.CaretToken:return q^K;case r.SyntaxKind.EqualsEqualsToken:return q==K;case r.SyntaxKind.ExclamationEqualsToken:return q!=K;case r.SyntaxKind.EqualsEqualsEqualsToken:return q===K;case r.SyntaxKind.ExclamationEqualsEqualsToken:return q!==K;case r.SyntaxKind.LessThanToken:return q<K;case r.SyntaxKind.GreaterThanToken:return q>K;case r.SyntaxKind.LessThanEqualsToken:return q<=K;case r.SyntaxKind.GreaterThanEqualsToken:return q>=K;case r.SyntaxKind.LessThanLessThanToken:return q<<K;case r.SyntaxKind.GreaterThanGreaterThanToken:return q>>K;case r.SyntaxKind.GreaterThanGreaterThanGreaterThanToken:return q>>>K;case r.SyntaxKind.PlusToken:return q+K;case r.SyntaxKind.MinusToken:return q-K;case r.SyntaxKind.AsteriskToken:return q*K;case r.SyntaxKind.SlashToken:return q/K;case r.SyntaxKind.PercentToken:return q%K}return s({__symbolic:"binop",operator:B.operatorToken.getText(),left:q,right:K},t)}break;case r.SyntaxKind.ConditionalExpression:var U=t,z=this.evaluateNode(U.condition),W=this.evaluateNode(U.whenTrue),Q=this.evaluateNode(U.whenFalse);return Nc(z)?z?W:Q:s({__symbolic:"if",condition:z,thenExpression:W,elseExpression:Q},t);case r.SyntaxKind.FunctionExpression:case r.SyntaxKind.ArrowFunction:return s(Mc("Lambda not supported",t),t);case r.SyntaxKind.TaggedTemplateExpression:return s(Mc("Tagged template expressions are not supported in metadata",t),t);case r.SyntaxKind.TemplateExpression:var G=t;return this.isFoldable(t)?G.templateSpans.reduce(function(t,e){return t+i.evaluateNode(e.expression)+i.evaluateNode(e.literal)},this.evaluateNode(G.head)):G.templateSpans.reduce(function(t,e){var n=i.evaluateNode(e.expression),r=i.evaluateNode(e.literal);if(c(n))return n;if(c(r))return r;if("string"==typeof t&&"string"==typeof n&&"string"==typeof r)return t+n+r;var o=n;return""!==t&&(o={__symbolic:"binop",operator:"+",left:t,right:n}),""!=r&&(o={__symbolic:"binop",operator:"+",left:o,right:r}),o},this.evaluateNode(G.head));case r.SyntaxKind.AsExpression:return this.evaluateNode(t.expression);case r.SyntaxKind.ClassExpression:return{__symbolic:"class"}}return s(Mc("Expression form not supported",t),t)},t}();function Rc(t){return t.kind==r.SyntaxKind.PropertyAssignment}var Dc=r.createNodeArray();function jc(t){return t||Dc}
578
+ */var Nc=r.SyntaxKind.SpreadElement||r.SyntaxKind.SpreadElementExpression;function kc(t,e){var n=t.expression;if(n.kind===r.SyntaxKind.PropertyAccessExpression){var i=n.name;if(i.kind==r.SyntaxKind.Identifier)return i.text===e}return!1}function Oc(t,e){var n=t.expression;return n.kind===r.SyntaxKind.Identifier&&n.text===e}function Mc(t,e,n,r){if(!n.has(t)&&(n.set(t,e),e&&(function i(t){return t&&t.module&&!!t.name&&Pc(t)}(t)||function o(t){return t&&t.module&&t.default&&Pc(t)}(t))&&null==t.line)){var s=jc(e,r);null!=s.line&&(t.line=s.line),null!=s.character&&(t.character=s.character)}return t}function Ic(t,e){return!r.forEachChild(t,function(t){return!e(t)})}function Rc(t){return Object(t)!==t}function Dc(t){return void 0!==t}function jc(t,e){return t&&(e=e||function n(t){for(;t&&t.kind!=r.SyntaxKind.SourceFile;)t=t.parent;return t}(t))?r.getLineAndCharacterOfPosition(e,t.getStart(e)):{}}function Lc(t,e,n,r){var i=a({__symbolic:"error",message:t},jc(e,r));return n&&(i.context=n),i}var Fc=function(){function t(t,e,n,r){void 0===n&&(n={}),this.symbols=t,this.nodeMap=e,this.options=n,this.recordExport=r}return t.prototype.nameOf=function(t){if(t&&t.kind==r.SyntaxKind.Identifier)return t.text;var e=t&&this.evaluateNode(t);return Ac(e)||"string"==typeof e?e:Lc("Name expected",t,{received:t&&t.getText()||"<missing>"})},t.prototype.isFoldable=function(t){return this.isFoldableWorker(t,new Map)},t.prototype.isFoldableWorker=function(t,e){var n=this;if(t)switch(t.kind){case r.SyntaxKind.ObjectLiteralExpression:return Ic(t,function(t){return t.kind===r.SyntaxKind.PropertyAssignment&&n.isFoldableWorker(t.initializer,e)});case r.SyntaxKind.ArrayLiteralExpression:return Ic(t,function(t){return n.isFoldableWorker(t,e)});case r.SyntaxKind.CallExpression:var i=t;if(kc(i,"concat")&&1===Bc(i.arguments).length){var o=i.expression.expression;if(this.isFoldableWorker(o,e)&&this.isFoldableWorker(i.arguments[0],e)){var s=this.evaluateNode(o);if(s&&Array.isArray(s))return!0}}return!(!Oc(i,"CONST_EXPR")||1!==Bc(i.arguments).length)&&this.isFoldableWorker(i.arguments[0],e);case r.SyntaxKind.NoSubstitutionTemplateLiteral:case r.SyntaxKind.StringLiteral:case r.SyntaxKind.NumericLiteral:case r.SyntaxKind.NullKeyword:case r.SyntaxKind.TrueKeyword:case r.SyntaxKind.FalseKeyword:case r.SyntaxKind.TemplateHead:case r.SyntaxKind.TemplateMiddle:case r.SyntaxKind.TemplateTail:return!0;case r.SyntaxKind.ParenthesizedExpression:return this.isFoldableWorker(t.expression,e);case r.SyntaxKind.BinaryExpression:var a=t;switch(a.operatorToken.kind){case r.SyntaxKind.PlusToken:case r.SyntaxKind.MinusToken:case r.SyntaxKind.AsteriskToken:case r.SyntaxKind.SlashToken:case r.SyntaxKind.PercentToken:case r.SyntaxKind.AmpersandAmpersandToken:case r.SyntaxKind.BarBarToken:return this.isFoldableWorker(a.left,e)&&this.isFoldableWorker(a.right,e);default:return!1}case r.SyntaxKind.PropertyAccessExpression:return this.isFoldableWorker(t.expression,e);case r.SyntaxKind.ElementAccessExpression:var u=t;return this.isFoldableWorker(u.expression,e)&&this.isFoldableWorker(u.argumentExpression,e);case r.SyntaxKind.Identifier:var c=this.symbols.resolve(t.text);if(void 0!==c&&Rc(c))return!0;break;case r.SyntaxKind.TemplateExpression:return t.templateSpans.every(function(t){return n.isFoldableWorker(t.expression,e)})}return!1},t.prototype.evaluateNode=function(t,e){var n,i=this,o=this;function s(t,e){if(o.options.substituteExpression){var n=o.options.substituteExpression(t,e);o.recordExport&&n!=t&&Cc(n)&&o.recordExport(n.name,t),t=n}return Mc(t,e,o.nodeMap)}function u(t){return!o.options.verboseInvalidExpression&&Ac(t)}var c=function(e,n){var r=i.symbols.resolve(e,n);return void 0===r?s({__symbolic:"reference",name:e},t):r&&Pc(r)?s(a({},r),t):r};switch(t.kind){case r.SyntaxKind.ObjectLiteralExpression:var l={},h=[];return r.forEachChild(t,function(t){switch(t.kind){case r.SyntaxKind.ShorthandPropertyAssignment:case r.SyntaxKind.PropertyAssignment:var e=t;e.name.kind==r.SyntaxKind.StringLiteral&&h.push(e.name.text);var o=i.nameOf(e.name);if(u(o))return n=o,!0;var a=Vc(e)?i.evaluateNode(e.initializer,!0):c(o,!0);if(u(a))return n=a,!0;l[o]=Vc(e)?s(a,e.initializer):a}}),n||(this.options.quotedNames&&h.length&&(l.$quoted$=h),s(l,t));case r.SyntaxKind.ArrayLiteralExpression:var f=[];return r.forEachChild(t,function(t){var e,r,o=i.evaluateNode(t,!0);if(u(o))return n=o,!0;if(function s(t){return t&&"spread"===t.__symbolic}(o)&&Array.isArray(o.expression))try{for(var a=p(o.expression),c=a.next();!c.done;c=a.next())f.push(c.value)}catch(t){e={error:t}}finally{try{c&&!c.done&&(r=a.return)&&r.call(a)}finally{if(e)throw e.error}}else f.push(o)}),n||s(f,t);case Nc:return s({__symbolic:"spread",expression:this.evaluateNode(t.expression)},t);case r.SyntaxKind.CallExpression:var d=t;if(Oc(d,"forwardRef")&&1===Bc(d.arguments).length){var v=d.arguments[0];if(v.kind==r.SyntaxKind.ArrowFunction)return s(this.evaluateNode(v.body),t)}var y=Bc(d.arguments).map(function(t){return i.evaluateNode(t)});if(this.isFoldable(d)&&kc(d,"concat")){var m=this.evaluateNode(d.expression.expression);return u(m)?m:m.concat(y[0])}if(Oc(d,"CONST_EXPR")&&1===Bc(d.arguments).length)return s(y[0],t);var g=this.evaluateNode(d.expression);if(u(g))return s(g,t);var _={__symbolic:"call",expression:g};return y&&y.length&&(_.arguments=y),s(_,t);case r.SyntaxKind.NewExpression:var b=t,w=Bc(b.arguments).map(function(t){return i.evaluateNode(t)}),x=this.evaluateNode(b.expression);if(Ac(x))return s(x,t);var E={__symbolic:"new",expression:x};return w.length&&(E.arguments=w),s(E,t);case r.SyntaxKind.PropertyAccessExpression:var S=t,C=this.evaluateNode(S.expression);if(u(C))return s(C,t);var T=this.nameOf(S.name);return u(T)?s(T,t):C&&this.isFoldable(S.expression)?C[T]:Tc(C)?s({__symbolic:"reference",module:C.module,name:T},t):s({__symbolic:"select",expression:C,member:T},t);case r.SyntaxKind.ElementAccessExpression:var P=t,A=this.evaluateNode(P.expression);if(u(A))return s(A,t);if(!P.argumentExpression)return s(Lc("Expression form not supported",t),t);var N=this.evaluateNode(P.argumentExpression);return u(A)?s(A,t):this.isFoldable(P.expression)&&this.isFoldable(P.argumentExpression)?A[N]:s({__symbolic:"index",expression:A,index:N},t);case r.SyntaxKind.Identifier:return c(t.text,e);case r.SyntaxKind.TypeReference:var k=t,O=k.typeName,M=function(t){if(O.kind===r.SyntaxKind.QualifiedName){var e=t,n=i.evaluateNode(e.left);return Tc(n)?s({__symbolic:"reference",module:n.module,name:e.right.text},t):{__symbolic:"select",expression:n,member:e.right.text}}var o=O,a=i.symbols.resolve(o.text);return u(a)||Pc(a)?s(a,t):s(Lc("Could not resolve type",t,{typeName:o.text}),t)}(O);if(u(M))return s(M,t);if(!Tc(M)&&k.typeArguments&&k.typeArguments.length){var I=k.typeArguments.map(function(t){return i.evaluateNode(t)});M.arguments=I}return s(M,t);case r.SyntaxKind.UnionType:for(var R=t.types.filter(function(t){return t.kind!=r.SyntaxKind.NullKeyword&&t.kind!=r.SyntaxKind.UndefinedKeyword}).map(function(t){return i.evaluateNode(t)}),D=null,j=0;j<R.length;j++){var L=R[j];if(!Pc(L))return L;D&&(L.name!=D.name||L.module!=D.module||L.arguments)||(D=L)}if(D)return D;break;case r.SyntaxKind.NoSubstitutionTemplateLiteral:case r.SyntaxKind.StringLiteral:case r.SyntaxKind.TemplateHead:case r.SyntaxKind.TemplateTail:case r.SyntaxKind.TemplateMiddle:return t.text;case r.SyntaxKind.NumericLiteral:return parseFloat(t.text);case r.SyntaxKind.AnyKeyword:return s({__symbolic:"reference",name:"any"},t);case r.SyntaxKind.StringKeyword:return s({__symbolic:"reference",name:"string"},t);case r.SyntaxKind.NumberKeyword:return s({__symbolic:"reference",name:"number"},t);case r.SyntaxKind.BooleanKeyword:return s({__symbolic:"reference",name:"boolean"},t);case r.SyntaxKind.ArrayType:return s({__symbolic:"reference",name:"Array",arguments:[this.evaluateNode(t.elementType)]},t);case r.SyntaxKind.NullKeyword:return null;case r.SyntaxKind.TrueKeyword:return!0;case r.SyntaxKind.FalseKeyword:return!1;case r.SyntaxKind.ParenthesizedExpression:case r.SyntaxKind.TypeAssertionExpression:return this.evaluateNode(t.expression);case r.SyntaxKind.PrefixUnaryExpression:var F=t,V=this.evaluateNode(F.operand);if(Dc(V)&&Rc(V))switch(F.operator){case r.SyntaxKind.PlusToken:return+V;case r.SyntaxKind.MinusToken:return-V;case r.SyntaxKind.TildeToken:return~V;case r.SyntaxKind.ExclamationToken:return!V}var H=void 0;switch(F.operator){case r.SyntaxKind.PlusToken:H="+";break;case r.SyntaxKind.MinusToken:H="-";break;case r.SyntaxKind.TildeToken:H="~";break;case r.SyntaxKind.ExclamationToken:H="!";break;default:return}return s({__symbolic:"pre",operator:H,operand:V},t);case r.SyntaxKind.BinaryExpression:var B=t,q=this.evaluateNode(B.left),K=this.evaluateNode(B.right);if(Dc(q)&&Dc(K)){if(Rc(q)&&Rc(K))switch(B.operatorToken.kind){case r.SyntaxKind.BarBarToken:return q||K;case r.SyntaxKind.AmpersandAmpersandToken:return q&&K;case r.SyntaxKind.AmpersandToken:return q&K;case r.SyntaxKind.BarToken:return q|K;case r.SyntaxKind.CaretToken:return q^K;case r.SyntaxKind.EqualsEqualsToken:return q==K;case r.SyntaxKind.ExclamationEqualsToken:return q!=K;case r.SyntaxKind.EqualsEqualsEqualsToken:return q===K;case r.SyntaxKind.ExclamationEqualsEqualsToken:return q!==K;case r.SyntaxKind.LessThanToken:return q<K;case r.SyntaxKind.GreaterThanToken:return q>K;case r.SyntaxKind.LessThanEqualsToken:return q<=K;case r.SyntaxKind.GreaterThanEqualsToken:return q>=K;case r.SyntaxKind.LessThanLessThanToken:return q<<K;case r.SyntaxKind.GreaterThanGreaterThanToken:return q>>K;case r.SyntaxKind.GreaterThanGreaterThanGreaterThanToken:return q>>>K;case r.SyntaxKind.PlusToken:return q+K;case r.SyntaxKind.MinusToken:return q-K;case r.SyntaxKind.AsteriskToken:return q*K;case r.SyntaxKind.SlashToken:return q/K;case r.SyntaxKind.PercentToken:return q%K}return s({__symbolic:"binop",operator:B.operatorToken.getText(),left:q,right:K},t)}break;case r.SyntaxKind.ConditionalExpression:var U=t,z=this.evaluateNode(U.condition),W=this.evaluateNode(U.whenTrue),Q=this.evaluateNode(U.whenFalse);return Rc(z)?z?W:Q:s({__symbolic:"if",condition:z,thenExpression:W,elseExpression:Q},t);case r.SyntaxKind.FunctionExpression:case r.SyntaxKind.ArrowFunction:return s(Lc("Lambda not supported",t),t);case r.SyntaxKind.TaggedTemplateExpression:return s(Lc("Tagged template expressions are not supported in metadata",t),t);case r.SyntaxKind.TemplateExpression:var G=t;return this.isFoldable(t)?G.templateSpans.reduce(function(t,e){return t+i.evaluateNode(e.expression)+i.evaluateNode(e.literal)},this.evaluateNode(G.head)):G.templateSpans.reduce(function(t,e){var n=i.evaluateNode(e.expression),r=i.evaluateNode(e.literal);if(u(n))return n;if(u(r))return r;if("string"==typeof t&&"string"==typeof n&&"string"==typeof r)return t+n+r;var o=n;return""!==t&&(o={__symbolic:"binop",operator:"+",left:t,right:n}),""!=r&&(o={__symbolic:"binop",operator:"+",left:o,right:r}),o},this.evaluateNode(G.head));case r.SyntaxKind.AsExpression:return this.evaluateNode(t.expression);case r.SyntaxKind.ClassExpression:return{__symbolic:"class"}}return s(Lc("Expression form not supported",t),t)},t}();function Vc(t){return t.kind==r.SyntaxKind.PropertyAssignment}var Hc=r.createNodeArray();function Bc(t){return t||Hc}
580
579
  /**
581
580
  * @license
582
581
  * Copyright Google Inc. All Rights Reserved.
583
582
  *
584
583
  * Use of this source code is governed by an MIT-style license that can be
585
584
  * found in the LICENSE file at https://angular.io/license
586
- */var Lc,Fc=function(){function t(t){this.sourceFile=t,this.references=new Map}return t.prototype.resolve=function(t,e){return e&&this.references.get(t)||this.symbols.get(t)},t.prototype.define=function(t,e){this.symbols.set(t,e)},t.prototype.defineReference=function(t,e){this.references.set(t,e)},t.prototype.has=function(t){return this.symbols.has(t)},Object.defineProperty(t.prototype,"symbols",{get:function(){var t=this._symbols;return t||(function e(t){["Object","Function","String","Number","Array","Boolean","Map","NaN","Infinity","Math","Date","RegExp","Error","Error","EvalError","RangeError","ReferenceError","SyntaxError","TypeError","URIError","JSON","ArrayBuffer","DataView","Int8Array","Uint8Array","Uint8ClampedArray","Uint16Array","Int16Array","Int32Array","Uint32Array","Float32Array","Float64Array"].forEach(function(e){return t.set(e,{__symbolic:"reference",name:e})})}
585
+ */var qc,Kc=function(){function t(t){this.sourceFile=t,this.references=new Map}return t.prototype.resolve=function(t,e){return e&&this.references.get(t)||this.symbols.get(t)},t.prototype.define=function(t,e){this.symbols.set(t,e)},t.prototype.defineReference=function(t,e){this.references.set(t,e)},t.prototype.has=function(t){return this.symbols.has(t)},Object.defineProperty(t.prototype,"symbols",{get:function(){var t=this._symbols;return t||(function e(t){["Object","Function","String","Number","Array","Boolean","Map","NaN","Infinity","Math","Date","RegExp","Error","Error","EvalError","RangeError","ReferenceError","SyntaxError","TypeError","URIError","JSON","ArrayBuffer","DataView","Int8Array","Uint8Array","Uint8ClampedArray","Uint16Array","Int16Array","Int32Array","Uint32Array","Float32Array","Float64Array"].forEach(function(e){return t.set(e,{__symbolic:"reference",name:e})})}
587
586
  /**
588
587
  * @license
589
588
  * Copyright Google Inc. All Rights Reserved.
590
589
  *
591
590
  * Use of this source code is governed by an MIT-style license that can be
592
591
  * found in the LICENSE file at https://angular.io/license
593
- */(t=this._symbols=new Map),this.buildImports()),t},enumerable:!0,configurable:!0}),t.prototype.buildImports=function(){var t=this,e=this._symbols,n=function(t){return t.replace(/^['"]|['"]$/g,"")},i=function(o){var s,a;switch(o.kind){case r.SyntaxKind.ImportEqualsDeclaration:var c=o;if(c.moduleReference.kind===r.SyntaxKind.ExternalModuleReference){var l=c.moduleReference;if(l.expression){l.expression.parent||(l.expression.parent=l,l.parent=t.sourceFile);var p=n(l.expression.getText());e.set(c.name.text,{__symbolic:"reference",module:p});break}}e.set(c.name.text,{__symbolic:"error",message:"Unsupported import syntax"});break;case r.SyntaxKind.ImportDeclaration:var h=o;if(!h.importClause)break;h.moduleSpecifier.parent||(h.moduleSpecifier.parent=h,h.parent=t.sourceFile);var f=n(h.moduleSpecifier.getText());h.importClause.name&&e.set(h.importClause.name.text,{__symbolic:"reference",module:f,default:!0});var d=h.importClause.namedBindings;if(d)switch(d.kind){case r.SyntaxKind.NamedImports:try{for(var v=u(d.elements),y=v.next();!y.done;y=v.next()){var m=y.value;e.set(m.name.text,{__symbolic:"reference",module:f,name:m.propertyName?m.propertyName.text:m.name.text})}}catch(t){s={error:t}}finally{try{y&&!y.done&&(a=v.return)&&a.call(v)}finally{if(s)throw s.error}}break;case r.SyntaxKind.NamespaceImport:e.set(d.name.text,{__symbolic:"reference",module:f})}}r.forEachChild(o,i)};this.sourceFile&&r.forEachChild(this.sourceFile,i)},t}(),Vc=function(t){return r.getCombinedModifierFlags(t)&r.ModifierFlags.Static},Hc=function(){function t(t){void 0===t&&(t={}),this.options=t}return t.prototype.getMetadata=function(t,e,n){var i=this;void 0===e&&(e=!1);var o,s=new Fc(t),c=new Map,l=n&&this.options.substituteExpression?function(t,e){return i.options.substituteExpression(n(t,e),e)}:n,p=n?a({},this.options,{substituteExpression:l}):this.options,h=new Ic(s,c,p,function(t,e){o||(o={}),o[t]=e}),f=void 0;function d(e,n){return l&&(e=l(e,n)),Pc(e,n,c,t)}function v(e,n,r){return Mc(e,n,r,t)}function y(t){if(t.name&&t.name.kind==r.SyntaxKind.Identifier){var e=t.name.text,n=t.body;if(n&&1==n.statements.length){var i=n.statements[0];if(i.kind===r.SyntaxKind.ReturnStatement){var o=i;if(o.expression){var s={__symbolic:"function",parameters:function a(t){var e,n,i=[];function o(t){var e,n;if(t.kind==r.SyntaxKind.Identifier)i.push(t.text);else{var s=t;try{for(var a=u(s.elements),c=a.next();!c.done;c=a.next()){var l=c.value.name;l&&o(l)}}catch(t){e={error:t}}finally{try{c&&!c.done&&(n=a.return)&&n.call(a)}finally{if(e)throw e.error}}}}try{for(var s=u(t),a=s.next();!a.done;a=s.next())o(a.value.name)}catch(t){e={error:t}}finally{try{a&&!a.done&&(n=s.return)&&n.call(s)}finally{if(e)throw e.error}}return i}(t.parameters),value:h.evaluateNode(o.expression)};return t.parameters.some(function(t){return null!=t.initializer})&&(s.defaults=t.parameters.map(function(t){return t.initializer&&h.evaluateNode(t.initializer)})),d({func:s,name:e},t)}}}}}var m=new Map;r.forEachChild(t,function(t){switch(t.kind){case r.SyntaxKind.ExportDeclaration:t.moduleSpecifier||t.exportClause.elements.forEach(function(t){m.set((t.propertyName||t.name).text,t.name.text)})}});var g=function(e){return t.isDeclarationFile||r.getCombinedModifierFlags(e)&r.ModifierFlags.Export},_=function(t){return t&&m.has(t.text)},b=function(t){return g(t)||_(t.name)},w=function(t){return t&&(m.get(t.text)||t.text)},x=function(t){return w(t.name)};if(r.forEachChild(t,function(t){switch(t.kind){case r.SyntaxKind.ClassDeclaration:var e=t;if(e.name){var n=e.name.text;b(e)?s.define(n,{__symbolic:"reference",name:x(e)}):s.define(n,v("Reference to non-exported class",t,{className:n}))}break;case r.SyntaxKind.InterfaceDeclaration:t.name&&s.define(t.name.text,{__symbolic:"reference",name:"any"});break;case r.SyntaxKind.FunctionDeclaration:var i=t;if(!b(i)){var o=i.name;o&&o.text&&s.define(o.text,v("Reference to a non-exported function",o,{name:o.text}))}}}),r.forEachChild(t,function(t){var e,n,i,a;switch(t.kind){case r.SyntaxKind.ExportDeclaration:var c=t.moduleSpecifier,l=t.exportClause;if(c||l&&l.elements.forEach(function(e){var n=e.name.text;if(!o||!o[n]){var r=h.evaluateNode(e.propertyName||e.name);o||(o={}),o[n]=d(r,t)}}),c&&c.kind==r.SyntaxKind.StringLiteral){var p={from:c.text};l&&(p.export=l.elements.map(function(t){return t.propertyName?{name:t.propertyName.text,as:t.name.text}:t.name.text})),f||(f=[]),f.push(p)}break;case r.SyntaxKind.ClassDeclaration:var m=t;m.name&&b(m)&&(P=x(m))&&(o||(o={}),o[P]=function E(t){var e,n,i,o,s={__symbolic:"class"};function a(t){if(t&&t.length)return t.map(function(t){return function e(t){return h.evaluateNode(t.expression)}(t)})}function c(t){var e=h.evaluateNode(t);return Ec(e)||xc(e)||function n(t){return t&&"select"===t.__symbolic}(e)?e:v("Symbol reference expected",t)}t.heritageClauses&&t.heritageClauses.forEach(function(t){t.token===r.SyntaxKind.ExtendsKeyword&&t.types&&t.types.forEach(function(t){return s.extends=c(t.expression)})});var l=t.typeParameters;l&&l.length&&(s.arity=l.length),t.decorators&&(s.decorators=a(t.decorators));var p=null;function f(t,e){p||(p={});var n=p.hasOwnProperty(t)?p[t]:[];n.push(e),p[t]=n}var m=null;function g(t,e){m||(m={}),m[t]=e}try{for(var _=u(t.members),b=_.next();!b.done;b=_.next()){var w=b.value,x=!1;switch(w.kind){case r.SyntaxKind.Constructor:case r.SyntaxKind.MethodDeclaration:x=w.kind===r.SyntaxKind.Constructor;var E=w;if(Vc(E)){var S=y(E);S&&g(S.name,S.func);continue}var C=a(E.decorators),T=E.parameters,P=[],A=[],N=!1,k=!1;try{for(var O=u(T),M=O.next();!M.done;M=O.next()){var I=M.value,R=a(I.decorators);P.push(R),N=N||!!R,x&&(A.push(I.type?c(I.type):null),k=!0)}}catch(t){i={error:t}}finally{try{M&&!M.done&&(o=O.return)&&o.call(O)}finally{if(i)throw i.error}}var D={__symbolic:x?"constructor":"method"},j=x?"__ctor__":h.nameOf(w.name);C&&(D.decorators=C),N&&(D.parameterDecorators=P),k&&(D.parameters=A),Ec(j)||f(j,D);break;case r.SyntaxKind.PropertyDeclaration:case r.SyntaxKind.GetAccessor:case r.SyntaxKind.SetAccessor:var L=w;if(Vc(L)){var F=h.nameOf(L.name);Ec(F)||g(F,L.initializer?h.evaluateNode(L.initializer):v("Variable not initialized",L.name))}var V=a(L.decorators);if(V){var H=h.nameOf(L.name);Ec(H)||f(H,{__symbolic:"property",decorators:V})}}}}catch(t){e={error:t}}finally{try{b&&!b.done&&(n=_.return)&&n.call(_)}finally{if(e)throw e.error}}return p&&(s.members=p),m&&(s.statics=m),d(s,t)}(m));break;case r.SyntaxKind.TypeAliasDeclaration:var S=t;S.name&&b(S)&&(P=x(S))&&(o||(o={}),o[P]={__symbolic:"interface"});break;case r.SyntaxKind.InterfaceDeclaration:var C=t;C.name&&b(C)&&(P=x(C))&&(o||(o={}),o[P]={__symbolic:"interface"});break;case r.SyntaxKind.FunctionDeclaration:var T=t;if(b(T)&&T.name){var P=x(T),A=y(T);P&&(o||(o={}),o[P]=A?d(A.func,t):{__symbolic:"function"})}break;case r.SyntaxKind.EnumDeclaration:var N=t;if(b(N)){var k={},O=x(N),M=0,I=0;try{for(var R=u(N.members),D=R.next();!D.done;D=R.next()){var j,L=D.value;j=L.initializer?h.evaluateNode(L.initializer):M,P=void 0,L.name.kind==r.SyntaxKind.Identifier&&(k[P=L.name.text]=j,I++),M="number"==typeof j?j+1:P?{__symbolic:"binary",operator:"+",left:{__symbolic:"select",expression:d({__symbolic:"reference",name:O},t),name:P}}:d(v("Unsupported enum member name",L.name),t)}}catch(t){e={error:t}}finally{try{D&&!D.done&&(n=R.return)&&n.call(R)}finally{if(e)throw e.error}}I&&O&&(o||(o={}),o[O]=d(k,t))}break;case r.SyntaxKind.VariableStatement:var F=t,V=function(e){if(e.name.kind==r.SyntaxKind.Identifier){var n,i=e.name;n=e.initializer?h.evaluateNode(e.initializer):d(v("Variable not initialized",i),i);var a=!1;if(g(F)||g(e)||_(i)){var u=w(i);u&&(o||(o={}),o[u]=d(n,t)),a=!0}"string"==typeof n||"number"==typeof n||"boolean"==typeof n?(s.define(i.text,n),a&&s.defineReference(i.text,{__symbolic:"reference",name:i.text})):a||(n&&!Ec(n)?s.define(i.text,d(n,t)):s.define(i.text,d(v("Reference to a local symbol",i,{name:i.text}),t)))}else{var c=function(e){switch(e.kind){case r.SyntaxKind.Identifier:var n=e,i=v("Destructuring not supported",n);s.define(n.text,i),g(t)&&(o||(o={}),o[n.text]=i);break;case r.SyntaxKind.BindingElement:c(e.name);break;case r.SyntaxKind.ObjectBindingPattern:case r.SyntaxKind.ArrayBindingPattern:e.elements.forEach(c)}};c(e.name)}};try{for(var H=u(F.declarationList.declarations),B=H.next();!B.done;B=H.next())V(B.value)}catch(t){i={error:t}}finally{try{B&&!B.done&&(a=H.return)&&a.call(H)}finally{if(i)throw i.error}}}}),o||f){o?e&&function E(t,e,n){var r=new Set(["Array","Object","Set","Map","string","number","any"]);function i(s){if(s)if(Array.isArray(s))s.forEach(i);else if("object"!=typeof s||s.hasOwnProperty("__symbolic")){if(Ec(s))!function a(n){if(o(e.get(n)))throw new Error(t.fileName+(void 0!=n.line?void 0!=n.character?":"+(n.line+1)+":"+(n.character+1):":"+(n.line+1):"")+": Metadata collected contains an error that will be reported at runtime: "+function r(t){switch(t.message){case"Reference to non-exported class":if(t.context&&t.context.className)return"Reference to a non-exported class "+t.context.className+". Consider exporting the class";break;case"Variable not initialized":return"Only initialized variables and constants can be referenced because the value of this variable is needed by the template compiler";case"Destructuring not supported":return"Referencing an exported destructured variable or constant is not supported by the template compiler. Consider simplifying this to avoid destructuring";case"Could not resolve type":if(t.context&&t.context.typeName)return"Could not resolve type "+t.context.typeName;break;case"Function call not supported":return(t.context&&t.context.name?"Calling function '"+t.context.name+"', f":"F")+"unction calls are not supported. Consider replacing the function or lambda with a reference to an exported function";case"Reference to a local symbol":if(t.context&&t.context.name)return"Reference to a local (non-exported) symbol '"+t.context.name+"'. Consider exporting the symbol"}return t.message}
592
+ */(t=this._symbols=new Map),this.buildImports()),t},enumerable:!0,configurable:!0}),t.prototype.buildImports=function(){var t=this,e=this._symbols,n=function(t){return t.replace(/^['"]|['"]$/g,"")},i=function(o){var s,a;switch(o.kind){case r.SyntaxKind.ImportEqualsDeclaration:var u=o;if(u.moduleReference.kind===r.SyntaxKind.ExternalModuleReference){var c=u.moduleReference;if(c.expression){c.expression.parent||(c.expression.parent=c,c.parent=t.sourceFile);var l=n(c.expression.getText());e.set(u.name.text,{__symbolic:"reference",module:l});break}}e.set(u.name.text,{__symbolic:"error",message:"Unsupported import syntax"});break;case r.SyntaxKind.ImportDeclaration:var h=o;if(!h.importClause)break;h.moduleSpecifier.parent||(h.moduleSpecifier.parent=h,h.parent=t.sourceFile);var f=n(h.moduleSpecifier.getText());h.importClause.name&&e.set(h.importClause.name.text,{__symbolic:"reference",module:f,default:!0});var d=h.importClause.namedBindings;if(d)switch(d.kind){case r.SyntaxKind.NamedImports:try{for(var v=p(d.elements),y=v.next();!y.done;y=v.next()){var m=y.value;e.set(m.name.text,{__symbolic:"reference",module:f,name:m.propertyName?m.propertyName.text:m.name.text})}}catch(t){s={error:t}}finally{try{y&&!y.done&&(a=v.return)&&a.call(v)}finally{if(s)throw s.error}}break;case r.SyntaxKind.NamespaceImport:e.set(d.name.text,{__symbolic:"reference",module:f})}}r.forEachChild(o,i)};this.sourceFile&&r.forEachChild(this.sourceFile,i)},t}(),Uc=function(t){return r.getCombinedModifierFlags(t)&r.ModifierFlags.Static},zc=function(){function t(t){void 0===t&&(t={}),this.options=t}return t.prototype.getMetadata=function(t,e,n){var i=this;void 0===e&&(e=!1);var o,s=new Kc(t),u=new Map,c=n&&this.options.substituteExpression?function(t,e){return i.options.substituteExpression(n(t,e),e)}:n,l=n?a({},this.options,{substituteExpression:c}):this.options,h=new Fc(s,u,l,function(t,e){o||(o={}),o[t]=e}),f=void 0;function d(e,n){return c&&(e=c(e,n)),Mc(e,n,u,t)}function v(e,n,r){return Lc(e,n,r,t)}function y(t){if(t.name&&t.name.kind==r.SyntaxKind.Identifier){var e=t.name.text,n=t.body;if(n&&1==n.statements.length){var i=n.statements[0];if(i.kind===r.SyntaxKind.ReturnStatement){var o=i;if(o.expression){var s={__symbolic:"function",parameters:function a(t){var e,n,i=[];function o(t){var e,n;if(t.kind==r.SyntaxKind.Identifier)i.push(t.text);else{var s=t;try{for(var a=p(s.elements),u=a.next();!u.done;u=a.next()){var c=u.value.name;c&&o(c)}}catch(t){e={error:t}}finally{try{u&&!u.done&&(n=a.return)&&n.call(a)}finally{if(e)throw e.error}}}}try{for(var s=p(t),a=s.next();!a.done;a=s.next())o(a.value.name)}catch(t){e={error:t}}finally{try{a&&!a.done&&(n=s.return)&&n.call(s)}finally{if(e)throw e.error}}return i}(t.parameters),value:h.evaluateNode(o.expression)};return t.parameters.some(function(t){return null!=t.initializer})&&(s.defaults=t.parameters.map(function(t){return t.initializer&&h.evaluateNode(t.initializer)})),d({func:s,name:e},t)}}}}}var m=new Map;r.forEachChild(t,function(t){switch(t.kind){case r.SyntaxKind.ExportDeclaration:t.moduleSpecifier||t.exportClause.elements.forEach(function(t){m.set((t.propertyName||t.name).text,t.name.text)})}});var g=function(e){return t.isDeclarationFile||r.getCombinedModifierFlags(e)&r.ModifierFlags.Export},_=function(t){return t&&m.has(t.text)},b=function(t){return g(t)||_(t.name)},w=function(t){return t&&(m.get(t.text)||t.text)},x=function(t){return w(t.name)};if(r.forEachChild(t,function(t){switch(t.kind){case r.SyntaxKind.ClassDeclaration:var e=t;if(e.name){var n=e.name.text;b(e)?s.define(n,{__symbolic:"reference",name:x(e)}):s.define(n,v("Reference to non-exported class",t,{className:n}))}break;case r.SyntaxKind.InterfaceDeclaration:t.name&&s.define(t.name.text,{__symbolic:"reference",name:"any"});break;case r.SyntaxKind.FunctionDeclaration:var i=t;if(!b(i)){var o=i.name;o&&o.text&&s.define(o.text,v("Reference to a non-exported function",o,{name:o.text}))}}}),r.forEachChild(t,function(t){var e,n,i,a;switch(t.kind){case r.SyntaxKind.ExportDeclaration:var u=t.moduleSpecifier,c=t.exportClause;if(u||c&&c.elements.forEach(function(e){var n=e.name.text;if(!o||!o[n]){var r=h.evaluateNode(e.propertyName||e.name);o||(o={}),o[n]=d(r,t)}}),u&&u.kind==r.SyntaxKind.StringLiteral){var l={from:u.text};c&&(l.export=c.elements.map(function(t){return t.propertyName?{name:t.propertyName.text,as:t.name.text}:t.name.text})),f||(f=[]),f.push(l)}break;case r.SyntaxKind.ClassDeclaration:var m=t;m.name&&b(m)&&(P=x(m))&&(o||(o={}),o[P]=function E(t){var e,n,i,o,s={__symbolic:"class"};function a(t){if(t&&t.length)return t.map(function(t){return function e(t){return h.evaluateNode(t.expression)}(t)})}function u(t){var e=h.evaluateNode(t);return Ac(e)||Pc(e)||function n(t){return t&&"select"===t.__symbolic}(e)?e:v("Symbol reference expected",t)}t.heritageClauses&&t.heritageClauses.forEach(function(t){t.token===r.SyntaxKind.ExtendsKeyword&&t.types&&t.types.forEach(function(t){return s.extends=u(t.expression)})});var c=t.typeParameters;c&&c.length&&(s.arity=c.length),t.decorators&&(s.decorators=a(t.decorators));var l=null;function f(t,e){l||(l={});var n=l.hasOwnProperty(t)?l[t]:[];n.push(e),l[t]=n}var m=null;function g(t,e){m||(m={}),m[t]=e}try{for(var _=p(t.members),b=_.next();!b.done;b=_.next()){var w=b.value,x=!1;switch(w.kind){case r.SyntaxKind.Constructor:case r.SyntaxKind.MethodDeclaration:x=w.kind===r.SyntaxKind.Constructor;var E=w;if(Uc(E)){var S=y(E);S&&g(S.name,S.func);continue}var C=a(E.decorators),T=E.parameters,P=[],A=[],N=!1,k=!1;try{for(var O=p(T),M=O.next();!M.done;M=O.next()){var I=M.value,R=a(I.decorators);P.push(R),N=N||!!R,x&&(A.push(I.type?u(I.type):null),k=!0)}}catch(t){i={error:t}}finally{try{M&&!M.done&&(o=O.return)&&o.call(O)}finally{if(i)throw i.error}}var D={__symbolic:x?"constructor":"method"},j=x?"__ctor__":h.nameOf(w.name);C&&(D.decorators=C),N&&(D.parameterDecorators=P),k&&(D.parameters=A),Ac(j)||f(j,D);break;case r.SyntaxKind.PropertyDeclaration:case r.SyntaxKind.GetAccessor:case r.SyntaxKind.SetAccessor:var L=w;if(Uc(L)){var F=h.nameOf(L.name);Ac(F)||g(F,L.initializer?h.evaluateNode(L.initializer):v("Variable not initialized",L.name))}var V=a(L.decorators);if(V){var H=h.nameOf(L.name);Ac(H)||f(H,{__symbolic:"property",decorators:V})}}}}catch(t){e={error:t}}finally{try{b&&!b.done&&(n=_.return)&&n.call(_)}finally{if(e)throw e.error}}return l&&(s.members=l),m&&(s.statics=m),d(s,t)}(m));break;case r.SyntaxKind.TypeAliasDeclaration:var S=t;S.name&&b(S)&&(P=x(S))&&(o||(o={}),o[P]={__symbolic:"interface"});break;case r.SyntaxKind.InterfaceDeclaration:var C=t;C.name&&b(C)&&(P=x(C))&&(o||(o={}),o[P]={__symbolic:"interface"});break;case r.SyntaxKind.FunctionDeclaration:var T=t;if(b(T)&&T.name){var P=x(T),A=y(T);P&&(o||(o={}),o[P]=A?d(A.func,t):{__symbolic:"function"})}break;case r.SyntaxKind.EnumDeclaration:var N=t;if(b(N)){var k={},O=x(N),M=0,I=0;try{for(var R=p(N.members),D=R.next();!D.done;D=R.next()){var j,L=D.value;j=L.initializer?h.evaluateNode(L.initializer):M,P=void 0,L.name.kind==r.SyntaxKind.Identifier&&(k[P=L.name.text]=j,I++),M="number"==typeof j?j+1:P?{__symbolic:"binary",operator:"+",left:{__symbolic:"select",expression:d({__symbolic:"reference",name:O},t),name:P}}:d(v("Unsupported enum member name",L.name),t)}}catch(t){e={error:t}}finally{try{D&&!D.done&&(n=R.return)&&n.call(R)}finally{if(e)throw e.error}}I&&O&&(o||(o={}),o[O]=d(k,t))}break;case r.SyntaxKind.VariableStatement:var F=t,V=function(e){if(e.name.kind==r.SyntaxKind.Identifier){var n,i=e.name;n=e.initializer?h.evaluateNode(e.initializer):d(v("Variable not initialized",i),i);var a=!1;if(g(F)||g(e)||_(i)){var u=w(i);u&&(o||(o={}),o[u]=d(n,t)),a=!0}"string"==typeof n||"number"==typeof n||"boolean"==typeof n?(s.define(i.text,n),a&&s.defineReference(i.text,{__symbolic:"reference",name:i.text})):a||(n&&!Ac(n)?s.define(i.text,d(n,t)):s.define(i.text,d(v("Reference to a local symbol",i,{name:i.text}),t)))}else{var c=function(e){switch(e.kind){case r.SyntaxKind.Identifier:var n=e,i=v("Destructuring not supported",n);s.define(n.text,i),g(t)&&(o||(o={}),o[n.text]=i);break;case r.SyntaxKind.BindingElement:c(e.name);break;case r.SyntaxKind.ObjectBindingPattern:case r.SyntaxKind.ArrayBindingPattern:e.elements.forEach(c)}};c(e.name)}};try{for(var H=p(F.declarationList.declarations),B=H.next();!B.done;B=H.next())V(B.value)}catch(t){i={error:t}}finally{try{B&&!B.done&&(a=H.return)&&a.call(H)}finally{if(i)throw i.error}}}}),o||f){o?e&&function E(t,e,n){var r=new Set(["Array","Object","Set","Map","string","number","any"]);function i(s){if(s)if(Array.isArray(s))s.forEach(i);else if("object"!=typeof s||s.hasOwnProperty("__symbolic")){if(Ac(s))!function a(n){if(o(e.get(n)))throw new Error(t.fileName+(void 0!=n.line?void 0!=n.character?":"+(n.line+1)+":"+(n.character+1):":"+(n.line+1):"")+": Metadata collected contains an error that will be reported at runtime: "+function r(t){switch(t.message){case"Reference to non-exported class":if(t.context&&t.context.className)return"Reference to a non-exported class "+t.context.className+". Consider exporting the class";break;case"Variable not initialized":return"Only initialized variables and constants can be referenced because the value of this variable is needed by the template compiler";case"Destructuring not supported":return"Referencing an exported destructured variable or constant is not supported by the template compiler. Consider simplifying this to avoid destructuring";case"Could not resolve type":if(t.context&&t.context.typeName)return"Could not resolve type "+t.context.typeName;break;case"Function call not supported":return(t.context&&t.context.name?"Calling function '"+t.context.name+"', f":"F")+"unction calls are not supported. Consider replacing the function or lambda with a reference to an exported function";case"Reference to a local symbol":if(t.context&&t.context.name)return"Reference to a local (non-exported) symbol '"+t.context.name+"'. Consider exporting the symbol"}return t.message}
594
593
  /**
595
594
  * @license
596
595
  * Copyright Google Inc. All Rights Reserved.
@@ -618,7 +617,7 @@ var Qu=r.ModifierFlags?function(t){return!!(r.getCombinedModifierFlags(t)&r.Modi
618
617
  *
619
618
  * Use of this source code is governed by an MIT-style license that can be
620
619
  * found in the LICENSE file at https://angular.io/license
621
- */(n)+".\n "+JSON.stringify(n))}(s);else if(bc(s)){if(!r.has(s.name)){var u=n[s.name];u&&i(u)}}else if(_c(s))!function c(t){if(t.value){var e=r;t.parameters&&(r=new Set(e.values()),t.parameters&&t.parameters.forEach(function(t){return r.add(t)})),i(t.value),r=e}}(s);else if(function l(t){if(t)switch(t.__symbolic){case"binary":case"call":case"index":case"new":case"pre":case"reference":case"select":case"spread":case"if":return!0}return!1}(s))switch(s.__symbolic){case"binary":var p=s;i(p.left),i(p.right);break;case"call":case"new":var h=s;i(h.expression),h.arguments&&h.arguments.forEach(i);break;case"index":var f=s;i(f.expression),i(f.index);break;case"pre":i(s.operand);break;case"select":case"spread":i(s.expression);break;case"if":var d=s;i(d.condition),i(d.elseExpression),i(d.thenExpression)}}else Object.getOwnPropertyNames(s).forEach(function(t){return i(s[t])})}function o(e){if(e){var n=e.getStart();return!(e.pos!=n&&t.text.substring(e.pos,n).indexOf("@dynamic")>=0)}return!0}Object.getOwnPropertyNames(n).forEach(function(r){var s=n[r];try{(function a(t){return t&&"class"===t.__symbolic})(s)&&function u(t){t.decorators&&t.decorators.forEach(i),t.members&&Object.getOwnPropertyNames(t.members).forEach(function(e){return t.members[e].forEach(function(e){return function n(t,e){e.decorators&&e.decorators.forEach(i),function n(t){return t&&("constructor"===t.__symbolic||"method"===t.__symbolic)}(e)&&e.parameterDecorators&&e.parameterDecorators.forEach(i),t.decorators&&function r(t){return t&&"constructor"===t.__symbolic}(e)&&e.parameters&&e.parameters.forEach(i)}(t,e)})}),t.statics&&Object.getOwnPropertyNames(t.statics).forEach(function(e){var n=t.statics[e];_c(n)?i(n.value):i(n)})}(s)}catch(n){var c=e.get(s);if(o(c)){if(c){var l=t.getLineAndCharacterOfPosition(c.getStart());throw new Error(t.fileName+":"+(l.line+1)+":"+(l.character+1)+": Error encountered in metadata generated for exported symbol '"+r+"': \n "+n.message)}throw new Error("Error encountered in metadata generated for exported symbol "+r+": \n "+n.message)}}})}(t,c,o):o={};var S={__symbolic:"module",version:this.options.version||gc,metadata:o};return t.moduleName&&(S.importAs=t.moduleName),f&&(S.exports=f),S}},t}();!function(t){t[t.DTS=1]="DTS",t[t.JS=2]="JS",t[t.Metadata=4]="Metadata",t[t.I18nBundle=8]="I18nBundle",t[t.Codegen=16]="Codegen",t[t.Default=19]="Default",t[t.All=31]="All"}(Lc||(Lc={}));
620
+ */(n)+".\n "+JSON.stringify(n))}(s);else if(Cc(s)){if(!r.has(s.name)){var u=n[s.name];u&&i(u)}}else if(Sc(s))!function c(t){if(t.value){var e=r;t.parameters&&(r=new Set(e.values()),t.parameters&&t.parameters.forEach(function(t){return r.add(t)})),i(t.value),r=e}}(s);else if(function l(t){if(t)switch(t.__symbolic){case"binary":case"call":case"index":case"new":case"pre":case"reference":case"select":case"spread":case"if":return!0}return!1}(s))switch(s.__symbolic){case"binary":var p=s;i(p.left),i(p.right);break;case"call":case"new":var h=s;i(h.expression),h.arguments&&h.arguments.forEach(i);break;case"index":var f=s;i(f.expression),i(f.index);break;case"pre":i(s.operand);break;case"select":case"spread":i(s.expression);break;case"if":var d=s;i(d.condition),i(d.elseExpression),i(d.thenExpression)}}else Object.getOwnPropertyNames(s).forEach(function(t){return i(s[t])})}function o(e){if(e){var n=e.getStart();return!(e.pos!=n&&t.text.substring(e.pos,n).indexOf("@dynamic")>=0)}return!0}Object.getOwnPropertyNames(n).forEach(function(r){var s=n[r];try{(function a(t){return t&&"class"===t.__symbolic})(s)&&function u(t){t.decorators&&t.decorators.forEach(i),t.members&&Object.getOwnPropertyNames(t.members).forEach(function(e){return t.members[e].forEach(function(e){return function n(t,e){e.decorators&&e.decorators.forEach(i),function n(t){return t&&("constructor"===t.__symbolic||"method"===t.__symbolic)}(e)&&e.parameterDecorators&&e.parameterDecorators.forEach(i),t.decorators&&function r(t){return t&&"constructor"===t.__symbolic}(e)&&e.parameters&&e.parameters.forEach(i)}(t,e)})}),t.statics&&Object.getOwnPropertyNames(t.statics).forEach(function(e){var n=t.statics[e];Sc(n)?i(n.value):i(n)})}(s)}catch(n){var c=e.get(s);if(o(c)){if(c){var l=t.getLineAndCharacterOfPosition(c.getStart());throw new Error(t.fileName+":"+(l.line+1)+":"+(l.character+1)+": Error encountered in metadata generated for exported symbol '"+r+"': \n "+n.message)}throw new Error("Error encountered in metadata generated for exported symbol "+r+": \n "+n.message)}}})}(t,u,o):o={};var S={__symbolic:"module",version:this.options.version||Ec,metadata:o};return t.moduleName&&(S.importAs=t.moduleName),f&&(S.exports=f),S}},t}();!function(t){t[t.DTS=1]="DTS",t[t.JS=2]="JS",t[t.Metadata=4]="Metadata",t[t.I18nBundle=8]="I18nBundle",t[t.Codegen=16]="Codegen",t[t.Default=19]="Default",t[t.All=31]="All"}(qc||(qc={}));
622
621
  /**
623
622
  * @license
624
623
  * Copyright Google Inc. All Rights Reserved.
@@ -626,14 +625,14 @@ var Qu=r.ModifierFlags?function(t){return!!(r.getCombinedModifierFlags(t)&r.Modi
626
625
  * Use of this source code is governed by an MIT-style license that can be
627
626
  * found in the LICENSE file at https://angular.io/license
628
627
  */
629
- var Bc,qc,Kc=/\.d\.ts$/;
628
+ var Wc,Qc,Gc=/\.d\.ts$/;
630
629
  /**
631
630
  * @license
632
631
  * Copyright Google Inc. All Rights Reserved.
633
632
  *
634
633
  * Use of this source code is governed by an MIT-style license that can be
635
634
  * found in the LICENSE file at https://angular.io/license
636
- */function Uc(t,e,n){var r={__symbolic:"module",version:gc,metadata:a({},e.metadata)};e.exports&&(r.exports=e.exports),e.importAs&&(r.importAs=e.importAs),e.origins&&(r.origins=e.origins);var i=t.getSourceFileMetadata(n);if(i){for(var o in i.metadata)r.metadata[o]||(r.metadata[o]=i.metadata[o]);i.importAs&&(r.importAs=i.importAs),(!e.version||e.version<3)&&i.exports&&(r.exports=i.exports)}return r}
635
+ */function Xc(t,e,n){var r={__symbolic:"module",version:Ec,metadata:a({},e.metadata)};e.exports&&(r.exports=e.exports),e.importAs&&(r.importAs=e.importAs),e.origins&&(r.origins=e.origins);var i=t.getSourceFileMetadata(n);if(i){for(var o in i.metadata)r.metadata[o]||(r.metadata[o]=i.metadata[o]);i.importAs&&(r.importAs=i.importAs),(!e.version||e.version<3)&&i.exports&&(r.exports=i.exports)}return r}
637
636
  /**
638
637
  * @license
639
638
  * Copyright Google Inc. All Rights Reserved.
@@ -647,7 +646,7 @@ var Bc,qc,Kc=/\.d\.ts$/;
647
646
  *
648
647
  * Use of this source code is governed by an MIT-style license that can be
649
648
  * found in the LICENSE file at https://angular.io/license
650
- */function zc(t){if(t)
649
+ */function Yc(t){if(t)
651
650
  /**
652
651
  * @license
653
652
  * Copyright Google Inc. All Rights Reserved.
@@ -655,35 +654,35 @@ var Bc,qc,Kc=/\.d\.ts$/;
655
654
  * Use of this source code is governed by an MIT-style license that can be
656
655
  * found in the LICENSE file at https://angular.io/license
657
656
  */
658
- return function e(t){return t&&!!t.start}(t)?{start:t.start.offset,end:t.end.offset}:t.endSourceSpan?{start:t.sourceSpan.start.offset,end:t.endSourceSpan.end.offset}:t.children&&t.children.length?{start:t.sourceSpan.start.offset,end:zc(t.children[t.children.length-1]).end}:{start:t.sourceSpan.start.offset,end:t.sourceSpan.end.offset}}function Wc(t,e,n){return null!=e&&(n?t>=e.start&&t<e.end:t>=e.start&&t<=e.end)}function Qc(t,e){return{start:t.start+e,end:t.end+e}}function Gc(t){var e=new Map;return{selectors:Xc(t.directives.map(function(t){var n=C.parse(t.selector);return n.forEach(function(n){return e.set(n,t)}),n})),map:e}}function Xc(t){var e;return(e=[]).concat.apply(e,l(t))}function Yc(t,e){return t.endsWith(e)?t.substring(0,t.length-e.length):t}function Zc(t){var e,n;if(t){var r=[],i=new Set;try{for(var o=u(t),s=o.next();!s.done;s=o.next()){var a=s.value;i.has(a.name)||(i.add(a.name),r.push(a))}}catch(t){e={error:t}}finally{try{s&&!s.done&&(n=o.return)&&n.call(o)}finally{if(e)throw e.error}}return r}}function $c(t){return{fileName:t.fileName,offset:t.template.span.start,query:t.template.query,members:t.template.members,htmlAst:t.htmlAst,templateAst:t.templateAst}}function Jc(t,e,n){void 0===n&&(n=!1);var r=[];return jt(new(function(t){function i(){return null!==t&&t.apply(this,arguments)||this}return o(i,t),i.prototype.visit=function(t,i){var o=zc(t);if(!Wc(e,o))return!0;var s=r.length;(!s||n||function a(t,e){return t.start>=e.start&&t.end<=e.end}(o,zc(r[s-1])))&&r.push(t)},i.prototype.visitEmbeddedTemplate=function(t,e){return this.visitChildren(e,function(e){e(t.attrs),e(t.directives),e(t.children)})},i.prototype.visitElement=function(t,e){return this.visitChildren(e,function(e){e(t.attrs),e(t.inputs),e(t.outputs),e(t.references),e(t.directives),e(t.children)})},i.prototype.visitDirective=function(t,e){var n=this.visitChildren(e,function(e){e(t.inputs)});return r[r.length-1]==t&&r.pop(),n},i}(Dt)),t),new ne(r,e)}
657
+ return function e(t){return t&&!!t.start}(t)?{start:t.start.offset,end:t.end.offset}:t.endSourceSpan?{start:t.sourceSpan.start.offset,end:t.endSourceSpan.end.offset}:t.children&&t.children.length?{start:t.sourceSpan.start.offset,end:Yc(t.children[t.children.length-1]).end}:{start:t.sourceSpan.start.offset,end:t.sourceSpan.end.offset}}function Zc(t,e,n){return null!=e&&(n?t>=e.start&&t<e.end:t>=e.start&&t<=e.end)}function $c(t,e){return{start:t.start+e,end:t.end+e}}function Jc(t){var e=new Map;return{selectors:tl(t.directives.map(function(t){var n=A.parse(t.selector);return n.forEach(function(n){return e.set(n,t)}),n})),map:e}}function tl(t){var e;return(e=[]).concat.apply(e,f(t))}function el(t,e){return t.endsWith(e)?t.substring(0,t.length-e.length):t}function nl(t){var e,n;if(t){var r=[],i=new Set;try{for(var o=p(t),s=o.next();!s.done;s=o.next()){var a=s.value;i.has(a.name)||(i.add(a.name),r.push(a))}}catch(t){e={error:t}}finally{try{s&&!s.done&&(n=o.return)&&n.call(o)}finally{if(e)throw e.error}}return r}}function rl(t){return{fileName:t.fileName,offset:t.template.span.start,query:t.template.query,members:t.template.members,htmlAst:t.htmlAst,templateAst:t.templateAst}}function il(t,e,n){void 0===n&&(n=!1);var r=[];return Vt(new(function(t){function i(){return null!==t&&t.apply(this,arguments)||this}return o(i,t),i.prototype.visit=function(t,i){var o=Yc(t);if(!Zc(e,o))return!0;var s=r.length;(!s||n||function a(t,e){return t.start>=e.start&&t.end<=e.end}(o,Yc(r[s-1])))&&r.push(t)},i.prototype.visitEmbeddedTemplate=function(t,e){return this.visitChildren(e,function(e){e(t.attrs),e(t.directives),e(t.children)})},i.prototype.visitElement=function(t,e){return this.visitChildren(e,function(e){e(t.attrs),e(t.inputs),e(t.outputs),e(t.references),e(t.directives),e(t.children)})},i.prototype.visitDirective=function(t,e){var n=this.visitChildren(e,function(e){e(t.inputs)});return r[r.length-1]==t&&r.pop(),n},i}(Ft)),t),new oe(r,e)}
659
658
  /**
660
659
  * @license
661
660
  * Copyright Google Inc. All Rights Reserved.
662
661
  *
663
662
  * Use of this source code is governed by an MIT-style license that can be
664
663
  * found in the LICENSE file at https://angular.io/license
665
- */function tl(t,e,n){void 0===n&&(n=!1);var r=[],i=new(function(t){function i(){return null!==t&&t.apply(this,arguments)||this}return o(i,t),i.prototype.visit=function(t){(!n||t.span.start<t.span.end)&&Wc(e,t.span)&&(r.push(t),cr(t,this))},i}(or));return t instanceof rr&&(t=t.ast),i.visit(t),new ne(r,e)}function el(t,e,n,r){var i=tl(e,n);if(!i.empty){var o=t;return i.tail.visit({visitBinary:function(t){},visitChain:function(t){},visitConditional:function(t){},visitFunctionCall:function(t){},visitImplicitReceiver:function(t){},visitInterpolation:function(t){o=void 0},visitKeyedRead:function(t){},visitKeyedWrite:function(t){},visitLiteralArray:function(t){},visitLiteralMap:function(t){},visitLiteralPrimitive:function(t){},visitMethodCall:function(t){},visitPipe:function(t){n>=t.exp.span.end&&(!t.args||!t.args.length||n<t.args[0].span.start)&&(o=r.getPipes())},visitPrefixNot:function(t){},visitNonNullAssert:function(t){},visitPropertyRead:function(e){var n=s(e.receiver);o=n?n.members():t},visitPropertyWrite:function(e){var n=s(e.receiver);o=n?n.members():t},visitQuote:function(t){o=r.getBuiltinType(Du.Any).members()},visitSafeMethodCall:function(e){var n=s(e.receiver);o=n?n.members():t},visitSafePropertyRead:function(e){var n=s(e.receiver);o=n?n.members():t}}),o&&o.values()}function s(e){return new Vu(t,r,{}).getType(e)}}function nl(t,e,n,r){var i=tl(e,n,!0);if(!i.empty){var o=void 0,s=void 0;return i.tail.visit({visitBinary:function(t){},visitChain:function(t){},visitConditional:function(t){},visitFunctionCall:function(t){},visitImplicitReceiver:function(t){},visitInterpolation:function(t){},visitKeyedRead:function(t){},visitKeyedWrite:function(t){},visitLiteralArray:function(t){},visitLiteralMap:function(t){},visitLiteralPrimitive:function(t){},visitMethodCall:function(t){var e=a(t.receiver);o=e&&e.members().get(t.name),s=t.span},visitPipe:function(t){if(n>=t.exp.span.end&&(!t.args||!t.args.length||n<t.args[0].span.start)){var e=r.getPipes();e&&(o=e.get(t.name),s=t.span)}},visitPrefixNot:function(t){},visitNonNullAssert:function(t){},visitPropertyRead:function(t){var e=a(t.receiver);o=e&&e.members().get(t.name),s=t.span},visitPropertyWrite:function(t){var e=a(t.receiver);o=e&&e.members().get(t.name),s=t.span},visitQuote:function(t){},visitSafeMethodCall:function(t){var e=a(t.receiver);o=e&&e.members().get(t.name),s=t.span},visitSafePropertyRead:function(t){var e=a(t.receiver);o=e&&e.members().get(t.name),s=t.span}}),o&&s?{symbol:o,span:s}:void 0}function a(e){return new Vu(t,r,{}).getType(e)}}
664
+ */function ol(t,e,n){void 0===n&&(n=!1);var r=[],i=new(function(t){function i(){return null!==t&&t.apply(this,arguments)||this}return o(i,t),i.prototype.visit=function(t){(!n||t.span.start<t.span.end)&&Zc(e,t.span)&&(r.push(t),hr(t,this))},i}(ur));return t instanceof sr&&(t=t.ast),i.visit(t),new oe(r,e)}function sl(t,e,n,r){var i=ol(e,n);if(!i.empty){var o=t;return i.tail.visit({visitBinary:function(t){},visitChain:function(t){},visitConditional:function(t){},visitFunctionCall:function(t){},visitImplicitReceiver:function(t){},visitInterpolation:function(t){o=void 0},visitKeyedRead:function(t){},visitKeyedWrite:function(t){},visitLiteralArray:function(t){},visitLiteralMap:function(t){},visitLiteralPrimitive:function(t){},visitMethodCall:function(t){},visitPipe:function(t){n>=t.exp.span.end&&(!t.args||!t.args.length||n<t.args[0].span.start)&&(o=r.getPipes())},visitPrefixNot:function(t){},visitNonNullAssert:function(t){},visitPropertyRead:function(e){var n=s(e.receiver);o=n?n.members():t},visitPropertyWrite:function(e){var n=s(e.receiver);o=n?n.members():t},visitQuote:function(t){o=r.getBuiltinType(Hu.Any).members()},visitSafeMethodCall:function(e){var n=s(e.receiver);o=n?n.members():t},visitSafePropertyRead:function(e){var n=s(e.receiver);o=n?n.members():t}}),o&&o.values()}function s(e){return new Uu(t,r,{}).getType(e)}}function al(t,e,n,r){var i=ol(e,n,!0);if(!i.empty){var o=void 0,s=void 0;return i.tail.visit({visitBinary:function(t){},visitChain:function(t){},visitConditional:function(t){},visitFunctionCall:function(t){},visitImplicitReceiver:function(t){},visitInterpolation:function(t){},visitKeyedRead:function(t){},visitKeyedWrite:function(t){},visitLiteralArray:function(t){},visitLiteralMap:function(t){},visitLiteralPrimitive:function(t){},visitMethodCall:function(t){var e=a(t.receiver);o=e&&e.members().get(t.name),s=t.span},visitPipe:function(t){if(n>=t.exp.span.end&&(!t.args||!t.args.length||n<t.args[0].span.start)){var e=r.getPipes();e&&(o=e.get(t.name),s=t.span)}},visitPrefixNot:function(t){},visitNonNullAssert:function(t){},visitPropertyRead:function(t){var e=a(t.receiver);o=e&&e.members().get(t.name),s=t.span},visitPropertyWrite:function(t){var e=a(t.receiver);o=e&&e.members().get(t.name),s=t.span},visitQuote:function(t){},visitSafeMethodCall:function(t){var e=a(t.receiver);o=e&&e.members().get(t.name),s=t.span},visitSafePropertyRead:function(t){var e=a(t.receiver);o=e&&e.members().get(t.name),s=t.span}}),o&&s?{symbol:o,span:s}:void 0}function a(e){return new Uu(t,r,{}).getType(e)}}
666
665
  /**
667
666
  * @license
668
667
  * Copyright Google Inc. All Rights Reserved.
669
668
  *
670
669
  * Use of this source code is governed by an MIT-style license that can be
671
670
  * found in the LICENSE file at https://angular.io/license
672
- */(qc=Bc||(Bc={}))[qc.Error=0]="Error",qc[qc.Warning=1]="Warning";var rl=["ID","CDATA","NAME",["ltr","rtl"],["rect","circle","poly","default"],"NUMBER",["nohref"],["ismap"],["declare"],["DATA","REF","OBJECT"],["GET","POST"],"IDREF",["TEXT","PASSWORD","CHECKBOX","RADIO","SUBMIT","RESET","FILE","HIDDEN","IMAGE","BUTTON"],["checked"],["disabled"],["readonly"],["multiple"],["selected"],["button","submit","reset"],["void","above","below","hsides","lhs","rhs","vsides","box","border"],["none","groups","rows","cols","all"],["left","center","right","justify","char"],["top","middle","bottom","baseline"],"IDREFS",["row","col","rowgroup","colgroup"],["defer"]],il=[{id:0},{onclick:1,ondblclick:1,onmousedown:1,onmouseup:1,onmouseover:1,onmousemove:1,onmouseout:1,onkeypress:1,onkeydown:1,onkeyup:1},{lang:2,dir:3},{onload:1,onunload:1},{name:1},{href:1},{type:1},{alt:1},{tabindex:5},{media:1},{nohref:6},{usemap:1},{src:1},{onfocus:1,onblur:1},{charset:1},{declare:8,classid:1,codebase:1,data:1,codetype:1,archive:1,standby:1},{title:1},{value:1},{cite:1},{datetime:1},{accept:1},{shape:4,coords:1},{for:11},{action:1,method:10,enctype:1,onsubmit:1,onreset:1,"accept-charset":1},{valuetype:9},{longdesc:1},{width:1},{disabled:14},{readonly:15,onselect:1},{accesskey:1},{size:5,multiple:16},{onchange:1},{label:1},{selected:17},{type:12,checked:13,size:1,maxlength:5},{rows:5,cols:5},{type:18},{height:1},{summary:1,border:1,frame:19,rules:20,cellspacing:1,cellpadding:1,datapagesize:1},{align:21,char:1,charoff:1,valign:22},{span:5},{abbr:1,axis:1,headers:23,scope:24,rowspan:5,colspan:5},{profile:1},{"http-equiv":2,name:2,content:1,scheme:1},{class:1,style:1},{hreflang:2,rel:1,rev:1},{ismap:7},{defer:25,event:1,for:1}],ol={TT:[0,1,2,16,44],I:[0,1,2,16,44],B:[0,1,2,16,44],BIG:[0,1,2,16,44],SMALL:[0,1,2,16,44],EM:[0,1,2,16,44],STRONG:[0,1,2,16,44],DFN:[0,1,2,16,44],CODE:[0,1,2,16,44],SAMP:[0,1,2,16,44],KBD:[0,1,2,16,44],VAR:[0,1,2,16,44],CITE:[0,1,2,16,44],ABBR:[0,1,2,16,44],ACRONYM:[0,1,2,16,44],SUB:[0,1,2,16,44],SUP:[0,1,2,16,44],SPAN:[0,1,2,16,44],BDO:[0,2,16,44],BR:[0,16,44],BODY:[0,1,2,3,16,44],ADDRESS:[0,1,2,16,44],DIV:[0,1,2,16,44],A:[0,1,2,4,5,6,8,13,14,16,21,29,44,45],MAP:[0,1,2,4,16,44],AREA:[0,1,2,5,7,8,10,13,16,21,29,44],LINK:[0,1,2,5,6,9,14,16,44,45],IMG:[0,1,2,4,7,11,12,16,25,26,37,44,46],OBJECT:[0,1,2,4,6,8,11,15,16,26,37,44],PARAM:[0,4,6,17,24],HR:[0,1,2,16,44],P:[0,1,2,16,44],H1:[0,1,2,16,44],H2:[0,1,2,16,44],H3:[0,1,2,16,44],H4:[0,1,2,16,44],H5:[0,1,2,16,44],H6:[0,1,2,16,44],PRE:[0,1,2,16,44],Q:[0,1,2,16,18,44],BLOCKQUOTE:[0,1,2,16,18,44],INS:[0,1,2,16,18,19,44],DEL:[0,1,2,16,18,19,44],DL:[0,1,2,16,44],DT:[0,1,2,16,44],DD:[0,1,2,16,44],OL:[0,1,2,16,44],UL:[0,1,2,16,44],LI:[0,1,2,16,44],FORM:[0,1,2,4,16,20,23,44],LABEL:[0,1,2,13,16,22,29,44],INPUT:[0,1,2,4,7,8,11,12,13,16,17,20,27,28,29,31,34,44,46],SELECT:[0,1,2,4,8,13,16,27,30,31,44],OPTGROUP:[0,1,2,16,27,32,44],OPTION:[0,1,2,16,17,27,32,33,44],TEXTAREA:[0,1,2,4,8,13,16,27,28,29,31,35,44],FIELDSET:[0,1,2,16,44],LEGEND:[0,1,2,16,29,44],BUTTON:[0,1,2,4,8,13,16,17,27,29,36,44],TABLE:[0,1,2,16,26,38,44],CAPTION:[0,1,2,16,44],COLGROUP:[0,1,2,16,26,39,40,44],COL:[0,1,2,16,26,39,40,44],THEAD:[0,1,2,16,39,44],TBODY:[0,1,2,16,39,44],TFOOT:[0,1,2,16,39,44],TR:[0,1,2,16,39,44],TH:[0,1,2,16,39,41,44],TD:[0,1,2,16,39,41,44],HEAD:[2,42],TITLE:[2],BASE:[5],META:[2,43],STYLE:[2,6,9,16],SCRIPT:[6,12,14,47],NOSCRIPT:[0,1,2,16,44],HTML:[2]},sl=[0,1,2,4],al=["[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:|"],ul="event",cl="boolean",ll="number",pl="string",hl="object",fl=function(){function t(){var t=this;this.schema={},al.forEach(function(e){var n=e.split("|"),r=n[1].split(","),i=(n[0]+"^").split("^"),o={};i[0].split(",").forEach(function(e){return t.schema[e.toLowerCase()]=o});var s=i[1],a=s&&t.schema[s.toLowerCase()];if(a)for(var u in a)o[u]=a[u];r.forEach(function(t){""==t||(t.startsWith("*")?o[t.substring(1)]=ul:t.startsWith("!")?o[t.substring(1)]=cl:t.startsWith("#")?o[t.substring(1)]=ll:t.startsWith("%")?o[t.substring(1)]=hl:o[t]=pl)})})}return t.prototype.allKnownElements=function(){return Object.keys(this.schema)},t.prototype.eventsOf=function(t){var e=this.schema[t.toLowerCase()]||{};return Object.keys(e).filter(function(t){return e[t]===ul})},t.prototype.propertiesOf=function(t){var e=this.schema[t.toLowerCase()]||{};return Object.keys(e).filter(function(t){return e[t]!==ul})},t.prototype.typeOf=function(t,e){return(this.schema[t.toLowerCase()]||{})[e]},Object.defineProperty(t,"instance",{get:function(){var e=t._instance;return e||(e=t._instance=new t),e},enumerable:!0,configurable:!0}),t}(),dl={html:!0,script:!0,noscript:!0,base:!0,body:!0,title:!0,head:!0,link:!0};function vl(t,e){var n=e.tail instanceof ae?e.tail:e.parentOf(e.tail);if(n instanceof ae)return yl(t,n.name,n)}function yl(t,e,n){return function r(t,e,n){var r=[],i=function o(t){return Object.keys(function e(t){var e,n,r={};if(t)try{for(var i=u(t),o=i.next();!o.done;o=i.next()){var s=il[o.value];for(var a in s)s.hasOwnProperty(a)&&(r[a]=rl[s[a]])}}catch(t){e={error:t}}finally{try{o&&!o.done&&(n=i.return)&&n.call(i)}finally{if(e)throw e.error}}return r}(ol[t.toUpperCase()]||sl)).sort()}(e)||[];i&&r.push.apply(r,l(i.map(function(t){return{name:t,fromHtml:!0}})));var s=function a(t){return fl.instance.propertiesOf(t)}
671
+ */(Qc=Wc||(Wc={}))[Qc.Error=0]="Error",Qc[Qc.Warning=1]="Warning";var ul=["ID","CDATA","NAME",["ltr","rtl"],["rect","circle","poly","default"],"NUMBER",["nohref"],["ismap"],["declare"],["DATA","REF","OBJECT"],["GET","POST"],"IDREF",["TEXT","PASSWORD","CHECKBOX","RADIO","SUBMIT","RESET","FILE","HIDDEN","IMAGE","BUTTON"],["checked"],["disabled"],["readonly"],["multiple"],["selected"],["button","submit","reset"],["void","above","below","hsides","lhs","rhs","vsides","box","border"],["none","groups","rows","cols","all"],["left","center","right","justify","char"],["top","middle","bottom","baseline"],"IDREFS",["row","col","rowgroup","colgroup"],["defer"]],cl=[{id:0},{onclick:1,ondblclick:1,onmousedown:1,onmouseup:1,onmouseover:1,onmousemove:1,onmouseout:1,onkeypress:1,onkeydown:1,onkeyup:1},{lang:2,dir:3},{onload:1,onunload:1},{name:1},{href:1},{type:1},{alt:1},{tabindex:5},{media:1},{nohref:6},{usemap:1},{src:1},{onfocus:1,onblur:1},{charset:1},{declare:8,classid:1,codebase:1,data:1,codetype:1,archive:1,standby:1},{title:1},{value:1},{cite:1},{datetime:1},{accept:1},{shape:4,coords:1},{for:11},{action:1,method:10,enctype:1,onsubmit:1,onreset:1,"accept-charset":1},{valuetype:9},{longdesc:1},{width:1},{disabled:14},{readonly:15,onselect:1},{accesskey:1},{size:5,multiple:16},{onchange:1},{label:1},{selected:17},{type:12,checked:13,size:1,maxlength:5},{rows:5,cols:5},{type:18},{height:1},{summary:1,border:1,frame:19,rules:20,cellspacing:1,cellpadding:1,datapagesize:1},{align:21,char:1,charoff:1,valign:22},{span:5},{abbr:1,axis:1,headers:23,scope:24,rowspan:5,colspan:5},{profile:1},{"http-equiv":2,name:2,content:1,scheme:1},{class:1,style:1},{hreflang:2,rel:1,rev:1},{ismap:7},{defer:25,event:1,for:1}],ll={TT:[0,1,2,16,44],I:[0,1,2,16,44],B:[0,1,2,16,44],BIG:[0,1,2,16,44],SMALL:[0,1,2,16,44],EM:[0,1,2,16,44],STRONG:[0,1,2,16,44],DFN:[0,1,2,16,44],CODE:[0,1,2,16,44],SAMP:[0,1,2,16,44],KBD:[0,1,2,16,44],VAR:[0,1,2,16,44],CITE:[0,1,2,16,44],ABBR:[0,1,2,16,44],ACRONYM:[0,1,2,16,44],SUB:[0,1,2,16,44],SUP:[0,1,2,16,44],SPAN:[0,1,2,16,44],BDO:[0,2,16,44],BR:[0,16,44],BODY:[0,1,2,3,16,44],ADDRESS:[0,1,2,16,44],DIV:[0,1,2,16,44],A:[0,1,2,4,5,6,8,13,14,16,21,29,44,45],MAP:[0,1,2,4,16,44],AREA:[0,1,2,5,7,8,10,13,16,21,29,44],LINK:[0,1,2,5,6,9,14,16,44,45],IMG:[0,1,2,4,7,11,12,16,25,26,37,44,46],OBJECT:[0,1,2,4,6,8,11,15,16,26,37,44],PARAM:[0,4,6,17,24],HR:[0,1,2,16,44],P:[0,1,2,16,44],H1:[0,1,2,16,44],H2:[0,1,2,16,44],H3:[0,1,2,16,44],H4:[0,1,2,16,44],H5:[0,1,2,16,44],H6:[0,1,2,16,44],PRE:[0,1,2,16,44],Q:[0,1,2,16,18,44],BLOCKQUOTE:[0,1,2,16,18,44],INS:[0,1,2,16,18,19,44],DEL:[0,1,2,16,18,19,44],DL:[0,1,2,16,44],DT:[0,1,2,16,44],DD:[0,1,2,16,44],OL:[0,1,2,16,44],UL:[0,1,2,16,44],LI:[0,1,2,16,44],FORM:[0,1,2,4,16,20,23,44],LABEL:[0,1,2,13,16,22,29,44],INPUT:[0,1,2,4,7,8,11,12,13,16,17,20,27,28,29,31,34,44,46],SELECT:[0,1,2,4,8,13,16,27,30,31,44],OPTGROUP:[0,1,2,16,27,32,44],OPTION:[0,1,2,16,17,27,32,33,44],TEXTAREA:[0,1,2,4,8,13,16,27,28,29,31,35,44],FIELDSET:[0,1,2,16,44],LEGEND:[0,1,2,16,29,44],BUTTON:[0,1,2,4,8,13,16,17,27,29,36,44],TABLE:[0,1,2,16,26,38,44],CAPTION:[0,1,2,16,44],COLGROUP:[0,1,2,16,26,39,40,44],COL:[0,1,2,16,26,39,40,44],THEAD:[0,1,2,16,39,44],TBODY:[0,1,2,16,39,44],TFOOT:[0,1,2,16,39,44],TR:[0,1,2,16,39,44],TH:[0,1,2,16,39,41,44],TD:[0,1,2,16,39,41,44],HEAD:[2,42],TITLE:[2],BASE:[5],META:[2,43],STYLE:[2,6,9,16],SCRIPT:[6,12,14,47],NOSCRIPT:[0,1,2,16,44],HTML:[2]},pl=[0,1,2,4],hl=["[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:|"],fl="event",dl="boolean",vl="number",yl="string",ml="object",gl=function(){function t(){var t=this;this.schema={},hl.forEach(function(e){var n=e.split("|"),r=n[1].split(","),i=(n[0]+"^").split("^"),o={};i[0].split(",").forEach(function(e){return t.schema[e.toLowerCase()]=o});var s=i[1],a=s&&t.schema[s.toLowerCase()];if(a)for(var u in a)o[u]=a[u];r.forEach(function(t){""==t||(t.startsWith("*")?o[t.substring(1)]=fl:t.startsWith("!")?o[t.substring(1)]=dl:t.startsWith("#")?o[t.substring(1)]=vl:t.startsWith("%")?o[t.substring(1)]=ml:o[t]=yl)})})}return t.prototype.allKnownElements=function(){return Object.keys(this.schema)},t.prototype.eventsOf=function(t){var e=this.schema[t.toLowerCase()]||{};return Object.keys(e).filter(function(t){return e[t]===fl})},t.prototype.propertiesOf=function(t){var e=this.schema[t.toLowerCase()]||{};return Object.keys(e).filter(function(t){return e[t]!==fl})},t.prototype.typeOf=function(t,e){return(this.schema[t.toLowerCase()]||{})[e]},Object.defineProperty(t,"instance",{get:function(){var e=t._instance;return e||(e=t._instance=new t),e},enumerable:!0,configurable:!0}),t}(),_l={html:!0,script:!0,noscript:!0,base:!0,body:!0,title:!0,head:!0,link:!0};function bl(t,e){var n=e.tail instanceof le?e.tail:e.parentOf(e.tail);if(n instanceof le)return wl(t,n.name,n)}function wl(t,e,n){return function r(t,e,n){var r=[],i=function o(t){return Object.keys(function e(t){var e,n,r={};if(t)try{for(var i=p(t),o=i.next();!o.done;o=i.next()){var s=cl[o.value];for(var a in s)s.hasOwnProperty(a)&&(r[a]=ul[s[a]])}}catch(t){e={error:t}}finally{try{o&&!o.done&&(n=i.return)&&n.call(i)}finally{if(e)throw e.error}}return r}(ll[t.toUpperCase()]||pl)).sort()}(e)||[];i&&r.push.apply(r,f(i.map(function(t){return{name:t,fromHtml:!0}})));var s=function a(t){return gl.instance.propertiesOf(t)}
673
672
  /**
674
673
  * @license
675
674
  * Copyright Google Inc. All Rights Reserved.
676
675
  *
677
676
  * Use of this source code is governed by an MIT-style license that can be
678
677
  * found in the LICENSE file at https://angular.io/license
679
- */(e);s&&r.push.apply(r,l(s.map(function(t){return{name:t,input:!0}})));var h=function f(t){return fl.instance.eventsOf(t)}(e);h&&r.push.apply(r,l(h.map(function(t){return{name:t,output:!0}})));var d=Gc(t),v=d.selectors,y=d.map;if(v&&v.length){var m=v.filter(function(t){return!t.element||t.element==e}).map(function(t){return{selector:t,attrs:t.attrs.filter(function(t){return!!t})}}),g=Xc(m.map(function(t){var e=y.get(t.selector);return t.attrs.map(function(t){return{name:t,input:t in e.inputs,output:t in e.outputs}})}));m.forEach(function(t){var e=t.selector,n=y.get(e);n&&function r(t){var e,n;if(t.diDeps)try{for(var r=u(t.diDeps),i=r.next();!i.done;i=r.next()){var o=i.value;if(o.token&&o.token.identifier&&"TemplateRef"==zt(o.token.identifier))return!0}}catch(t){e={error:t}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(e)throw e.error}}return!1}(n.type)&&e.attrs.length&&e.attrs[0]&&g.push({name:e.attrs[0],template:!0})});var _=function b(t){var e,n,r=new C,i=p(t.name)[1];r.setElement(i);try{for(var o=u(t.attrs),s=o.next();!s.done;s=o.next()){var a=s.value;if(!a.name.match(bl)){var l=c(p(a.name),2);r.addAttribute(l[1],a.value),"class"==a.name.toLowerCase()&&a.value.split(/s+/g).forEach(function(t){return r.addClassName(t)})}}}catch(t){e={error:t}}finally{try{s&&!s.done&&(n=o.return)&&n.call(o)}finally{if(e)throw e.error}}return r}(n||new ae(e,[],[],null,null,null)),w=new T;w.addSelectables(v),w.match(_,function(t){var e=y.get(t);e&&(g.push.apply(g,l(Object.keys(e.inputs).map(function(t){return{name:t,input:!0}}))),g.push.apply(g,l(Object.keys(e.outputs).map(function(t){return{name:t,output:!0}}))))}),g=function x(t){var e=new Map,n=new Map,r=[];return t.forEach(function(t){if(t.fromHtml)return t;var i;if(t.template&&((i=n.get(t.name))||(r.push({name:t.name,template:!0}),n.set(t.name,t))),t.input||t.output)if(i=e.get(t.name))i.input=i.input||t.input,i.output=i.output||t.output;else{var o={name:t.name};t.input&&(o.input=!0),t.output&&(o.output=!0),r.push(o),e.set(t.name,o)}}),r}(g),r.push.apply(r,l(Xc(g.map(wl))))}return r}(t,e,n).map(function(t){return{kind:t.fromHtml?"html attribute":"attribute",name:function e(t){var e=t.name;t.output&&(e=Yc(e=Yc(e,"Events"),"Changed"));var n=[e];return t.input&&(n.unshift("["),n.push("]")),t.output&&(n.unshift("("),n.push(")")),t.template&&n.unshift("*"),n.join("")}(t),sort:t.name}})}function ml(t,e){var n=function r(){return Object.keys(ol).sort().map(function(t){return t.toLowerCase()})}().filter(function(t){return!(t in dl)}),i=Gc(t).selectors.map(function(t){return t.element}).filter(function(t){return!!t}).map(function(t){return{kind:"component",name:t,sort:t}});return Zc(n.map(function(t){return{kind:"element",name:t,sort:t}}).concat(i))}function gl(t,e){var n=e.tail;if(n instanceof re){var r=n.value.match(/<(\w(\w|\d|-)*:)?(\w(\w|\d|-)*)\s/);if(r&&e.position>=(r.index||0)+r[0].length+n.sourceSpan.start.offset)return yl(t,r[3])}}var _l=function(t){function e(e,n,r,i){var o=t.call(this)||this;return o.info=e,o.position=n,o.attr=r,o.getExpressionScope=i||function(){return e.template.members},o}return o(e,t),e.prototype.visitDirectiveProperty=function(t){this.attributeValueCompletions(t.value)},e.prototype.visitElementProperty=function(t){this.attributeValueCompletions(t.value)},e.prototype.visitEvent=function(t){this.attributeValueCompletions(t.handler)},e.prototype.visitElement=function(t){var e=this;if(this.attr&&Gc(this.info)&&this.attr.name.startsWith("*")){var n=this.attr.name.substr("*".length),r=Gc(this.info),i=r.selectors.filter(function(t){return t.attrs.some(function(t,e){return e%2==0&&t==n})})[0],o=this.info.expressionParser.parseTemplateBindings(n,this.attr.value,null);if(!this.attr.valueSpan)return;var s=this.position-this.attr.valueSpan.start.offset-1,a=o.templateBindings,u=a.find(function(t){return Wc(s,t.span,!0)})||a.find(function(t){return Wc(s,t.span)}),c=function(){var t=[];i&&(t=i.attrs.filter(function(t,e){return e%2==0}).filter(function(t){return t.startsWith(n)&&t!=n}).map(function(t){return function e(t){return t&&t[0].toLowerCase()+t.substr(1)}
678
+ */(e);s&&r.push.apply(r,f(s.map(function(t){return{name:t,input:!0}})));var u=function c(t){return gl.instance.eventsOf(t)}(e);u&&r.push.apply(r,f(u.map(function(t){return{name:t,output:!0}})));var l=Jc(t),v=l.selectors,y=l.map;if(v&&v.length){var m=v.filter(function(t){return!t.element||t.element==e}).map(function(t){return{selector:t,attrs:t.attrs.filter(function(t){return!!t})}}),g=tl(m.map(function(t){var e=y.get(t.selector);return t.attrs.map(function(t){return{name:t,input:t in e.inputs,output:t in e.outputs}})}));m.forEach(function(t){var e=t.selector,n=y.get(e);n&&function r(t){var e,n;if(t.diDeps)try{for(var r=p(t.diDeps),i=r.next();!i.done;i=r.next()){var o=i.value;if(o.token&&o.token.identifier&&"TemplateRef"==Gt(o.token.identifier))return!0}}catch(t){e={error:t}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(e)throw e.error}}return!1}(n.type)&&e.attrs.length&&e.attrs[0]&&g.push({name:e.attrs[0],template:!0})});var _=function b(t){var e,n,r=new A,i=d(t.name)[1];r.setElement(i);try{for(var o=p(t.attrs),s=o.next();!s.done;s=o.next()){var a=s.value;if(!a.name.match(Cl)){var u=h(d(a.name),2);r.addAttribute(u[1],a.value),"class"==a.name.toLowerCase()&&a.value.split(/s+/g).forEach(function(t){return r.addClassName(t)})}}}catch(t){e={error:t}}finally{try{s&&!s.done&&(n=o.return)&&n.call(o)}finally{if(e)throw e.error}}return r}(n||new le(e,[],[],null,null,null)),w=new N;w.addSelectables(v),w.match(_,function(t){var e=y.get(t);e&&(g.push.apply(g,f(Object.keys(e.inputs).map(function(t){return{name:t,input:!0}}))),g.push.apply(g,f(Object.keys(e.outputs).map(function(t){return{name:t,output:!0}}))))}),g=function x(t){var e=new Map,n=new Map,r=[];return t.forEach(function(t){if(t.fromHtml)return t;var i;if(t.template&&((i=n.get(t.name))||(r.push({name:t.name,template:!0}),n.set(t.name,t))),t.input||t.output)if(i=e.get(t.name))i.input=i.input||t.input,i.output=i.output||t.output;else{var o={name:t.name};t.input&&(o.input=!0),t.output&&(o.output=!0),r.push(o),e.set(t.name,o)}}),r}(g),r.push.apply(r,f(tl(g.map(Tl))))}return r}(t,e,n).map(function(t){return{kind:t.fromHtml?"html attribute":"attribute",name:function e(t){var e=t.name;t.output&&(e=el(e=el(e,"Events"),"Changed"));var n=[e];return t.input&&(n.unshift("["),n.push("]")),t.output&&(n.unshift("("),n.push(")")),t.template&&n.unshift("*"),n.join("")}(t),sort:t.name}})}function xl(t,e){var n=function r(){return Object.keys(ll).sort().map(function(t){return t.toLowerCase()})}().filter(function(t){return!(t in _l)}),i=Jc(t).selectors.map(function(t){return t.element}).filter(function(t){return!!t}).map(function(t){return{kind:"component",name:t,sort:t}});return nl(n.map(function(t){return{kind:"element",name:t,sort:t}}).concat(i))}function El(t,e){var n=e.tail;if(n instanceof se){var r=n.value.match(/<(\w(\w|\d|-)*:)?(\w(\w|\d|-)*)\s/);if(r&&e.position>=(r.index||0)+r[0].length+n.sourceSpan.start.offset)return wl(t,r[3])}}var Sl=function(t){function e(e,n,r,i){var o=t.call(this)||this;return o.info=e,o.position=n,o.attr=r,o.getExpressionScope=i||function(){return e.template.members},o}return o(e,t),e.prototype.visitDirectiveProperty=function(t){this.attributeValueCompletions(t.value)},e.prototype.visitElementProperty=function(t){this.attributeValueCompletions(t.value)},e.prototype.visitEvent=function(t){this.attributeValueCompletions(t.handler)},e.prototype.visitElement=function(t){var e=this;if(this.attr&&Jc(this.info)&&this.attr.name.startsWith("*")){var n=this.attr.name.substr("*".length),r=Jc(this.info),i=r.selectors.filter(function(t){return t.attrs.some(function(t,e){return e%2==0&&t==n})})[0],o=this.info.expressionParser.parseTemplateBindings(n,this.attr.value,null);if(!this.attr.valueSpan)return;var s=this.position-this.attr.valueSpan.start.offset-1,a=o.templateBindings,u=a.find(function(t){return Zc(s,t.span,!0)})||a.find(function(t){return Zc(s,t.span)}),c=function(){var t=[];i&&(t=i.attrs.filter(function(t,e){return e%2==0}).filter(function(t){return t.startsWith(n)&&t!=n}).map(function(t){return function e(t){return t&&t[0].toLowerCase()+t.substr(1)}
680
679
  /**
681
680
  * @license
682
681
  * Copyright Google Inc. All Rights Reserved.
683
682
  *
684
683
  * Use of this source code is governed by an MIT-style license that can be
685
684
  * found in the LICENSE file at https://angular.io/license
686
- */(t.substr(n.length))})),t.push("let"),e.result=t.map(function(t){return{kind:"key",name:t,sort:t}})};if(!u||u.key==n&&!u.expression)c();else if(u.keyIsVar){var l=this.attr.value.indexOf("=");if(this.result=[],l>=0&&s>=l){var p=r.map.get(i);if(p){var h=this.info.template.query.getTemplateContext(p.type.reference);h&&(this.result=this.symbolsToCompletions(h.values()))}}else u.key&&s<=u.key.length-n.length&&c()}else if(u.expression&&Wc(s,u.expression.ast.span)||u.key&&s>u.span.start+(u.key.length-n.length)||!u.key){var f=new Rn(0,this.attr.value.length);this.attributeValueCompletions(u.expression?u.expression.ast:new Bn(f,new Fn(f),""),s)}else c()}},e.prototype.visitBoundText=function(t){var e=this.position-t.sourceSpan.start.offset;if(Wc(e,t.value.span)){var n=el(this.getExpressionScope(),t.value,e,this.info.template.query);n&&(this.result=this.symbolsToCompletions(n))}},e.prototype.attributeValueCompletions=function(t,e){var n=el(this.getExpressionScope(),t,null==e?this.attributeValuePosition:e,this.info.template.query);n&&(this.result=this.symbolsToCompletions(n))},e.prototype.symbolsToCompletions=function(t){return t.filter(function(t){return!t.name.startsWith("__")&&t.public}).map(function(t){return{kind:t.kind,name:t.name,sort:t.name}})},Object.defineProperty(e.prototype,"attributeValuePosition",{get:function(){return this.attr&&this.attr.valueSpan?this.position-this.attr.valueSpan.start.offset-1:0},enumerable:!0,configurable:!0}),e}(Rt),bl=/^(\w+:)?(template$|^\*)/;function wl(t){return t.input&&t.output?[t,{name:t.name,input:!0,output:!1},{name:t.name,input:!1,output:!0}]:[t]}function xl(t){if(t.position){var e=t.position-t.template.span.start,n=Jc(t.templateAst,e);if(n.tail){var r=void 0,i=void 0,o=function(o,s){void 0===s&&(s=!1);var a=function u(t){if(t.position)return pe(t.htmlAst,t.position-t.template.span.start).first(se)}(t);if(a&&Wc(e,zc(a.valueSpan))){var c=qu($c(t),n,s);if(a.valueSpan){var l=a.valueSpan.start.offset+1,p=nl(c,o,e-l,t.template.query);p&&(r=p.symbol,i=Qc(p.span,l))}return!0}return!1};if(n.tail.visit({visitNgContent:function(t){},visitEmbeddedTemplate:function(t){},visitElement:function(e){var n=e.directives.find(function(t){return t.directive.isComponent});if(n)r=(r=t.template.query.getTypeSymbol(n.directive.type.reference))&&new Sl(r,"component"),i=zc(e);else{var o=e.directives.find(function(t){return null!=t.directive.selector&&t.directive.selector.indexOf(e.name)>=0});o&&(r=(r=t.template.query.getTypeSymbol(o.directive.type.reference))&&new Sl(r,"directive"),i=zc(e))}},visitReference:function(e){r=e.value&&t.template.query.getTypeSymbol(Qt(e.value)),i=zc(e)},visitVariable:function(t){},visitEvent:function(e){o(e.handler,!0)||(r=(r=function s(t,e,n){var r,i,o=e.first(At);if(o)try{for(var s=u(o.directives),a=s.next();!a.done;a=s.next()){var c=a.value,l=El(c.directive.outputs)[n.name];if(l){var p=t.template.query.getTypeSymbol(c.directive.type.reference);if(p)return p.members().get(l)}}}catch(t){r={error:t}}finally{try{a&&!a.done&&(i=s.return)&&i.call(s)}finally{if(r)throw r.error}}}(t,n,e))&&new Sl(r,"event"),i=zc(e))},visitElementProperty:function(t){o(t.value)},visitAttr:function(t){},visitBoundText:function(o){var s=e-o.sourceSpan.start.offset;if(Wc(s,o.value.span)){var a=nl(qu($c(t),n,!1),o.value,s,t.template.query);a&&(r=a.symbol,i=Qc(a.span,o.sourceSpan.start.offset))}},visitText:function(t){},visitDirective:function(e){r=t.template.query.getTypeSymbol(e.directive.type.reference),i=zc(e)},visitDirectiveProperty:function(e){o(e.value)||(r=function s(t,e,n){var r,i,o=e.first(At);if(o)try{for(var s=u(o.directives),a=s.next();!a.done;a=s.next()){var c=a.value,l=El(c.directive.inputs)[n.templateName];if(l){var p=t.template.query.getTypeSymbol(c.directive.type.reference);if(p)return p.members().get(l)}}}catch(t){r={error:t}}finally{try{a&&!a.done&&(i=s.return)&&i.call(s)}finally{if(r)throw r.error}}}(t,n,e),i=zc(e))}},null),r&&i)return{symbol:r,span:Qc(i,t.template.span.start)}}}}function El(t){var e,n,r={};try{for(var i=u(Object.keys(t)),o=i.next();!o.done;o=i.next()){var s=o.value;r[t[s]]=s}}catch(t){e={error:t}}finally{try{o&&!o.done&&(n=i.return)&&n.call(i)}finally{if(e)throw e.error}}return r}var Sl=function(){function t(t,e){this.sym=t,this.kind=e}return Object.defineProperty(t.prototype,"name",{get:function(){return this.sym.name},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"language",{get:function(){return this.sym.language},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"type",{get:function(){return this.sym.type},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"container",{get:function(){return this.sym.container},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"public",{get:function(){return this.sym.public},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"callable",{get:function(){return this.sym.callable},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"nullable",{get:function(){return this.sym.nullable},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"definition",{get:function(){return this.sym.definition},enumerable:!0,configurable:!0}),t.prototype.members=function(){return this.sym.members()},t.prototype.signatures=function(){return this.sym.signatures()},t.prototype.selectSignature=function(t){return this.sym.selectSignature(t)},t.prototype.indexed=function(t){return this.sym.indexed(t)},t}();
685
+ */(t.substr(n.length))})),t.push("let"),e.result=t.map(function(t){return{kind:"key",name:t,sort:t}})};if(!u||u.key==n&&!u.expression)c();else if(u.keyIsVar){var l=this.attr.value.indexOf("=");if(this.result=[],l>=0&&s>=l){var p=r.map.get(i);if(p){var h=this.info.template.query.getTemplateContext(p.type.reference);h&&(this.result=this.symbolsToCompletions(h.values()))}}else u.key&&s<=u.key.length-n.length&&c()}else if(u.expression&&Zc(s,u.expression.ast.span)||u.key&&s>u.span.start+(u.key.length-n.length)||!u.key){var f=new Ln(0,this.attr.value.length);this.attributeValueCompletions(u.expression?u.expression.ast:new Un(f,new Bn(f),""),s)}else c()}},e.prototype.visitBoundText=function(t){var e=this.position-t.sourceSpan.start.offset;if(Zc(e,t.value.span)){var n=sl(this.getExpressionScope(),t.value,e,this.info.template.query);n&&(this.result=this.symbolsToCompletions(n))}},e.prototype.attributeValueCompletions=function(t,e){var n=sl(this.getExpressionScope(),t,null==e?this.attributeValuePosition:e,this.info.template.query);n&&(this.result=this.symbolsToCompletions(n))},e.prototype.symbolsToCompletions=function(t){return t.filter(function(t){return!t.name.startsWith("__")&&t.public}).map(function(t){return{kind:t.kind,name:t.name,sort:t.name}})},Object.defineProperty(e.prototype,"attributeValuePosition",{get:function(){return this.attr&&this.attr.valueSpan?this.position-this.attr.valueSpan.start.offset-1:0},enumerable:!0,configurable:!0}),e}(Lt),Cl=/^(\w+:)?(template$|^\*)/;function Tl(t){return t.input&&t.output?[t,{name:t.name,input:!0,output:!1},{name:t.name,input:!1,output:!0}]:[t]}function Pl(t){if(t.position){var e=t.position-t.template.span.start,n=il(t.templateAst,e);if(n.tail){var r=void 0,i=void 0,o=function(o,s){void 0===s&&(s=!1);var a=function u(t){if(t.position)return de(t.htmlAst,t.position-t.template.span.start).first(ce)}(t);if(a&&Zc(e,Yc(a.valueSpan))){var c=Qu(rl(t),n,s);if(a.valueSpan){var l=a.valueSpan.start.offset+1,p=al(c,o,e-l,t.template.query);p&&(r=p.symbol,i=$c(p.span,l))}return!0}return!1};if(n.tail.visit({visitNgContent:function(t){},visitEmbeddedTemplate:function(t){},visitElement:function(e){var n=e.directives.find(function(t){return t.directive.isComponent});if(n)r=(r=t.template.query.getTypeSymbol(n.directive.type.reference))&&new Nl(r,"component"),i=Yc(e);else{var o=e.directives.find(function(t){return null!=t.directive.selector&&t.directive.selector.indexOf(e.name)>=0});o&&(r=(r=t.template.query.getTypeSymbol(o.directive.type.reference))&&new Nl(r,"directive"),i=Yc(e))}},visitReference:function(e){r=e.value&&t.template.query.getTypeSymbol(Yt(e.value)),i=Yc(e)},visitVariable:function(t){},visitEvent:function(e){o(e.handler,!0)||(r=(r=function s(t,e,n){var r,i,o=e.first(Ot);if(o)try{for(var s=p(o.directives),a=s.next();!a.done;a=s.next()){var u=a.value,c=Al(u.directive.outputs)[n.name];if(c){var l=t.template.query.getTypeSymbol(u.directive.type.reference);if(l)return l.members().get(c)}}}catch(t){r={error:t}}finally{try{a&&!a.done&&(i=s.return)&&i.call(s)}finally{if(r)throw r.error}}}(t,n,e))&&new Nl(r,"event"),i=Yc(e))},visitElementProperty:function(t){o(t.value)},visitAttr:function(t){},visitBoundText:function(o){var s=e-o.sourceSpan.start.offset;if(Zc(s,o.value.span)){var a=al(Qu(rl(t),n,!1),o.value,s,t.template.query);a&&(r=a.symbol,i=$c(a.span,o.sourceSpan.start.offset))}},visitText:function(t){},visitDirective:function(e){r=t.template.query.getTypeSymbol(e.directive.type.reference),i=Yc(e)},visitDirectiveProperty:function(e){o(e.value)||(r=function s(t,e,n){var r,i,o=e.first(Ot);if(o)try{for(var s=p(o.directives),a=s.next();!a.done;a=s.next()){var u=a.value,c=Al(u.directive.inputs)[n.templateName];if(c){var l=t.template.query.getTypeSymbol(u.directive.type.reference);if(l)return l.members().get(c)}}}catch(t){r={error:t}}finally{try{a&&!a.done&&(i=s.return)&&i.call(s)}finally{if(r)throw r.error}}}(t,n,e),i=Yc(e))}},null),r&&i)return{symbol:r,span:$c(i,t.template.span.start)}}}}function Al(t){var e,n,r={};try{for(var i=p(Object.keys(t)),o=i.next();!o.done;o=i.next()){var s=o.value;r[t[s]]=s}}catch(t){e={error:t}}finally{try{o&&!o.done&&(n=i.return)&&n.call(i)}finally{if(e)throw e.error}}return r}var Nl=function(){function t(t,e){this.sym=t,this.kind=e}return Object.defineProperty(t.prototype,"name",{get:function(){return this.sym.name},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"language",{get:function(){return this.sym.language},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"type",{get:function(){return this.sym.type},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"container",{get:function(){return this.sym.container},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"public",{get:function(){return this.sym.public},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"callable",{get:function(){return this.sym.callable},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"nullable",{get:function(){return this.sym.nullable},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"definition",{get:function(){return this.sym.definition},enumerable:!0,configurable:!0}),t.prototype.members=function(){return this.sym.members()},t.prototype.signatures=function(){return this.sym.signatures()},t.prototype.selectSignature=function(t){return this.sym.selectSignature(t)},t.prototype.indexed=function(t){return this.sym.indexed(t)},t}();
687
686
  /**
688
687
  * @license
689
688
  * Copyright Google Inc. All Rights Reserved.
@@ -698,7 +697,7 @@ return function e(t){return t&&!!t.start}(t)?{start:t.start.offset,end:t.end.off
698
697
  * Use of this source code is governed by an MIT-style license that can be
699
698
  * found in the LICENSE file at https://angular.io/license
700
699
  */
701
- function Cl(t){return new Tl(t)}var Tl=function(){function t(t){this.host=t}return Object.defineProperty(t.prototype,"metadataResolver",{get:function(){return this.host.resolver},enumerable:!0,configurable:!0}),t.prototype.getTemplateReferences=function(){return this.host.getTemplateReferences()},t.prototype.getDiagnostics=function(t){var e=[],n=this.host.getTemplates(t);n&&n.length&&e.push.apply(e,l(
700
+ function kl(t){return new Ol(t)}var Ol=function(){function t(t){this.host=t}return Object.defineProperty(t.prototype,"metadataResolver",{get:function(){return this.host.resolver},enumerable:!0,configurable:!0}),t.prototype.getTemplateReferences=function(){return this.host.getTemplateReferences()},t.prototype.getDiagnostics=function(t){var e=[],n=this.host.getTemplates(t);n&&n.length&&e.push.apply(e,f(
702
701
  /**
703
702
  * @license
704
703
  * Copyright Google Inc. All Rights Reserved.
@@ -706,7 +705,7 @@ function Cl(t){return new Tl(t)}var Tl=function(){function t(t){this.host=t}retu
706
705
  * Use of this source code is governed by an MIT-style license that can be
707
706
  * found in the LICENSE file at https://angular.io/license
708
707
  */
709
- function r(t,e,n){var r,i,o=[],s=function(n){var r=e.getTemplateAst(n,t);if(r){if(r.parseErrors&&r.parseErrors.length)o.push.apply(o,l(r.parseErrors.map(function(t){return{kind:Bc.Error,span:Qc(zc(t.span),n.span.start),message:t.msg}})));else if(r.templateAst&&r.htmlAst){var i=
708
+ function r(t,e,n){var r,i,o=[],s=function(n){var r=e.getTemplateAst(n,t);if(r){if(r.parseErrors&&r.parseErrors.length)o.push.apply(o,f(r.parseErrors.map(function(t){return{kind:Wc.Error,span:$c(Yc(t.span),n.span.start),message:t.msg}})));else if(r.templateAst&&r.htmlAst){var i=
710
709
  /**
711
710
  * @license
712
711
  * Copyright Google Inc. All Rights Reserved.
@@ -714,21 +713,21 @@ function r(t,e,n){var r,i,o=[],s=function(n){var r=e.getTemplateAst(n,t);if(r){i
714
713
  * Use of this source code is governed by an MIT-style license that can be
715
714
  * found in the LICENSE file at https://angular.io/license
716
715
  */
717
- function s(t){var e=new Ku(t,function(e,n){return qu(t,e,n)});return jt(e,t.templateAst),e.diagnostics}({templateAst:r.templateAst,htmlAst:r.htmlAst,offset:n.span.start,query:n.query,members:n.members});o.push.apply(o,l(i))}r.errors&&o.push.apply(o,l(r.errors.map(function(t){return{kind:t.kind,span:t.span||n.span,message:t.message}})))}};try{for(var a=u(n),c=a.next();!c.done;c=a.next())s(c.value)}catch(t){r={error:t}}finally{try{c&&!c.done&&(i=a.return)&&i.call(a)}finally{if(r)throw r.error}}return o}(t,this,n)));var i=this.host.getDeclarations(t);if(i&&i.length){var o=this.host.getAnalyzedModules();e.push.apply(e,l(function s(t,e){var n,r,i=[],o=void 0,s=function(t){var n,r,s=function(e,n){i.push({kind:Bc.Error,span:n||t.declarationSpan,message:e})};try{for(var a=u(t.errors),c=a.next();!c.done;c=a.next()){var l=c.value;s(l.message,l.span)}}catch(t){n={error:t}}finally{try{c&&!c.done&&(r=a.return)&&r.call(a)}finally{if(n)throw n.error}}if(t.metadata)if(t.metadata.isComponent){e.ngModuleByPipeOrDirective.has(t.type)||s("Component '"+t.type.name+"' is not included in a module and will not be available inside a template. Consider adding it to a NgModule declaration");var p=t.metadata.template,h=p.template,f=p.templateUrl;null!==h||f?h&&f&&s("Component '"+t.type.name+"' must not have both template and templateUrl"):s("Component '"+t.type.name+"' must have a template or templateUrl")}else o||(o=new Set,e.ngModules.forEach(function(t){t.declaredDirectives.forEach(function(t){o.add(t.reference)})})),o.has(t.type)||s("Directive '"+t.type.name+"' is not included in a module and will not be available inside a template. Consider adding it to a NgModule declaration")};try{for(var a=u(t),c=a.next();!c.done;c=a.next())s(c.value)}catch(t){n={error:t}}finally{try{c&&!c.done&&(r=a.return)&&r.call(a)}finally{if(n)throw n.error}}return i}
716
+ function s(t){var e=new Gu(t,function(e,n){return Qu(t,e,n)});return Vt(e,t.templateAst),e.diagnostics}({templateAst:r.templateAst,htmlAst:r.htmlAst,offset:n.span.start,query:n.query,members:n.members});o.push.apply(o,f(i))}r.errors&&o.push.apply(o,f(r.errors.map(function(t){return{kind:t.kind,span:t.span||n.span,message:t.message}})))}};try{for(var a=p(n),u=a.next();!u.done;u=a.next())s(u.value)}catch(t){r={error:t}}finally{try{u&&!u.done&&(i=a.return)&&i.call(a)}finally{if(r)throw r.error}}return o}(t,this,n)));var i=this.host.getDeclarations(t);if(i&&i.length){var o=this.host.getAnalyzedModules();e.push.apply(e,f(function s(t,e){var n,r,i=[],o=void 0,s=function(t){var n,r,s=function(e,n){i.push({kind:Wc.Error,span:n||t.declarationSpan,message:e})};try{for(var a=p(t.errors),u=a.next();!u.done;u=a.next()){var c=u.value;s(c.message,c.span)}}catch(t){n={error:t}}finally{try{u&&!u.done&&(r=a.return)&&r.call(a)}finally{if(n)throw n.error}}if(t.metadata)if(t.metadata.isComponent){e.ngModuleByPipeOrDirective.has(t.type)||s("Component '"+t.type.name+"' is not included in a module and will not be available inside a template. Consider adding it to a NgModule declaration");var l=t.metadata.template,h=l.template,f=l.templateUrl;null!==h||f?h&&f&&s("Component '"+t.type.name+"' must not have both template and templateUrl"):s("Component '"+t.type.name+"' must have a template or templateUrl")}else o||(o=new Set,e.ngModules.forEach(function(t){t.declaredDirectives.forEach(function(t){o.add(t.reference)})})),o.has(t.type)||s("Directive '"+t.type.name+"' is not included in a module and will not be available inside a template. Consider adding it to a NgModule declaration")};try{for(var a=p(t),u=a.next();!u.done;u=a.next())s(u.value)}catch(t){n={error:t}}finally{try{u&&!u.done&&(r=a.return)&&r.call(a)}finally{if(n)throw n.error}}return i}
718
717
  /**
719
718
  * @license
720
719
  * Copyright Google Inc. All Rights Reserved.
721
720
  *
722
721
  * Use of this source code is governed by an MIT-style license that can be
723
722
  * found in the LICENSE file at https://angular.io/license
724
- */(i,o)))}return function a(t){var e,n;if(t){var r=[],i=new Map;try{for(var o=u(t),s=o.next();!s.done;s=o.next()){var a=s.value,c=a.span,l=i.get(c.start);l||(l=new Set,i.set(c.start,l)),l.has(c.end)||(l.add(c.end),r.push(a))}}catch(t){e={error:t}}finally{try{s&&!s.done&&(n=o.return)&&n.call(o)}finally{if(e)throw e.error}}return r}}(e)},t.prototype.getPipesAt=function(t,e){var n=this.getTemplateAstAtPosition(t,e);return n?n.pipes:[]},t.prototype.getCompletionsAt=function(t,e){var n=this.getTemplateAstAtPosition(t,e);if(n)return function r(t){var e=void 0,n=t.template;if(null!=t.position){var r=t.position-n.span.start,i=pe(t.htmlAst,r),o=i.tail;if(i.empty||!o)e=ml(t);else{var a=r-o.sourceSpan.start.offset;o.visit({visitElement:function(n){var o=zc(n.sourceSpan);r<=o.start+n.name.length+1?e=ml(t):r<o.end&&(e=vl(t,i))},visitAttribute:function(n){n.valueSpan&&Wc(r,zc(n.valueSpan))?n.valueSpan&&Wc(r,zc(n.valueSpan))&&(e=function o(t,e,n){var r=Jc(t.templateAst,e),i=r.tail,o=$c(t);if(i){var s=new _l(t,e,n,function(){return qu(o,r,!1)});if(i.visit(s,null),!s.result||!s.result.length){var a=Jc(t.templateAst,e,!0);if(a.tail){var u=new _l(t,e,n,function(){return qu(o,a,!1)});return a.tail.visit(u,null),u.result}}return s.result}}(t,r,n)):e=vl(t,i)},visitText:function(o){if(e=function c(t,e){for(var n,r=/&[A-Za-z]*;?(?!\d)/g,i=void 0;n=r.exec(t);)if(e>=n.index&&e<n.index+n[0].length){i=Object.keys(y).map(function(t){return{kind:"entity",name:"&"+t+";",sort:t}});break}return i}(function u(t,e){return t.source.substring(e.start,e.end)}(n,zc(o)),a))return e;if(e=function l(t,e){var n=Jc(t.templateAst,e),r=n.tail;if(r){var i=new _l(t,e,void 0,function(){return qu($c(t),n,!1)});return r.visit(i,null),Zc(i.result)}}(t,r))return e;var p=i.first(ae);p?w(p.name).contentType===s.PARSABLE_DATA&&((e=gl(t,i))||(e=ml(t))):(e=gl(t,i))||(e=ml(t))},visitComment:function(t){},visitExpansion:function(t){},visitExpansionCase:function(t){}},null)}}return e}(n)},t.prototype.getDefinitionAt=function(t,e){var n=this.getTemplateAstAtPosition(t,e);if(n)return function r(t){var e=xl(t);return e&&e.symbol.definition}(n)},t.prototype.getHoverAt=function(t,e){var n=this.getTemplateAstAtPosition(t,e);if(n)return function r(t){var e=xl(t);if(e)return{text:function n(t){var e=[{text:t.kind},{text:" "},{text:t.name,language:t.language}],n=t.container;return n&&e.push({text:" of "},{text:n.name,language:n.language}),e}(e.symbol),span:e.span}}(n)},t.prototype.getTemplateAstAtPosition=function(t,e){var n=this.host.getTemplateAt(t,e);if(n){var r=this.getTemplateAst(n,t);if(r&&r.htmlAst&&r.templateAst&&r.directive&&r.directives&&r.pipes&&r.expressionParser)return{position:e,fileName:t,template:n,htmlAst:r.htmlAst,directive:r.directive,directives:r.directives,pipes:r.pipes,templateAst:r.templateAst,expressionParser:r.expressionParser}}},t.prototype.getTemplateAst=function(t,e){var n=this,r=void 0;try{var i=this.metadataResolver.getNonNormalizedDirectiveMetadata(t.type),o=i&&i.metadata;if(o){var s=new po,a=new vo(s),c=new _r(new Sn),l=new Lt,p=new Oa(l,this.host.resolver.getReflector(),c,new ca,a,null,[]),h=a.parse(t.source,"",!0),f=this.host.getAnalyzedModules(),d=f.ngModuleByPipeOrDirective.get(t.type);if(d||(d=function v(t){var e,n,r=void 0,i=0;try{for(var o=u(t.ngModules),s=o.next();!s.done;s=o.next()){var a=s.value,c=a.transitiveModule.directives.length;c>i&&(r=a,i=c)}}catch(t){e={error:t}}finally{try{s&&!s.done&&(n=o.return)&&n.call(o)}finally{if(e)throw e.error}}return r}
723
+ */(i,o)))}return function a(t){var e,n;if(t){var r=[],i=new Map;try{for(var o=p(t),s=o.next();!s.done;s=o.next()){var a=s.value,u=a.span,c=i.get(u.start);c||(c=new Set,i.set(u.start,c)),c.has(u.end)||(c.add(u.end),r.push(a))}}catch(t){e={error:t}}finally{try{s&&!s.done&&(n=o.return)&&n.call(o)}finally{if(e)throw e.error}}return r}}(e)},t.prototype.getPipesAt=function(t,e){var n=this.getTemplateAstAtPosition(t,e);return n?n.pipes:[]},t.prototype.getCompletionsAt=function(t,e){var n=this.getTemplateAstAtPosition(t,e);if(n)return function r(t){var e=void 0,n=t.template;if(null!=t.position){var r=t.position-n.span.start,i=de(t.htmlAst,r),o=i.tail;if(i.empty||!o)e=xl(t);else{var a=r-o.sourceSpan.start.offset;o.visit({visitElement:function(n){var o=Yc(n.sourceSpan);r<=o.start+n.name.length+1?e=xl(t):r<o.end&&(e=bl(t,i))},visitAttribute:function(n){n.valueSpan&&Zc(r,Yc(n.valueSpan))?n.valueSpan&&Zc(r,Yc(n.valueSpan))&&(e=function o(t,e,n){var r=il(t.templateAst,e),i=r.tail,o=rl(t);if(i){var s=new Sl(t,e,n,function(){return Qu(o,r,!1)});if(i.visit(s,null),!s.result||!s.result.length){var a=il(t.templateAst,e,!0);if(a.tail){var u=new Sl(t,e,n,function(){return Qu(o,a,!1)});return a.tail.visit(u,null),u.result}}return s.result}}(t,r,n)):e=bl(t,i)},visitText:function(o){if(e=function c(t,e){for(var n,r=/&[A-Za-z]*;?(?!\d)/g,i=void 0;n=r.exec(t);)if(e>=n.index&&e<n.index+n[0].length){i=Object.keys(_).map(function(t){return{kind:"entity",name:"&"+t+";",sort:t}});break}return i}(function u(t,e){return t.source.substring(e.start,e.end)}(n,Yc(o)),a))return e;if(e=function l(t,e){var n=il(t.templateAst,e),r=n.tail;if(r){var i=new Sl(t,e,void 0,function(){return Qu(rl(t),n,!1)});return r.visit(i,null),nl(i.result)}}(t,r))return e;var p=i.first(le);p?S(p.name).contentType===s.PARSABLE_DATA&&((e=El(t,i))||(e=xl(t))):(e=El(t,i))||(e=xl(t))},visitComment:function(t){},visitExpansion:function(t){},visitExpansionCase:function(t){}},null)}}return e}(n)},t.prototype.getDefinitionAt=function(t,e){var n=this.getTemplateAstAtPosition(t,e);if(n)return function r(t){var e=Pl(t);return e&&e.symbol.definition}(n)},t.prototype.getHoverAt=function(t,e){var n=this.getTemplateAstAtPosition(t,e);if(n)return function r(t){var e=Pl(t);if(e)return{text:function n(t){var e=[{text:t.kind},{text:" "},{text:t.name,language:t.language}],n=t.container;return n&&e.push({text:" of "},{text:n.name,language:n.language}),e}(e.symbol),span:e.span}}(n)},t.prototype.getTemplateAstAtPosition=function(t,e){var n=this.host.getTemplateAt(t,e);if(n){var r=this.getTemplateAst(n,t);if(r&&r.htmlAst&&r.templateAst&&r.directive&&r.directives&&r.pipes&&r.expressionParser)return{position:e,fileName:t,template:n,htmlAst:r.htmlAst,directive:r.directive,directives:r.directives,pipes:r.pipes,templateAst:r.templateAst,expressionParser:r.expressionParser}}},t.prototype.getTemplateAst=function(t,e){var n=this,r=void 0;try{var i=this.metadataResolver.getNonNormalizedDirectiveMetadata(t.type),o=i&&i.metadata;if(o){var s=new vo,a=new go(s),u=new xr(new Pn),c=new Ht,l=new ja(c,this.host.resolver.getReflector(),u,new fa,a,null,[]),h=a.parse(t.source,"",!0),f=this.host.getAnalyzedModules(),d=f.ngModuleByPipeOrDirective.get(t.type);if(d||(d=function v(t){var e,n,r=void 0,i=0;try{for(var o=p(t.ngModules),s=o.next();!s.done;s=o.next()){var a=s.value,u=a.transitiveModule.directives.length;u>i&&(r=a,i=u)}}catch(t){e={error:t}}finally{try{s&&!s.done&&(n=o.return)&&n.call(o)}finally{if(e)throw e.error}}return r}
725
724
  /**
726
725
  * @license
727
726
  * Copyright Google Inc. All Rights Reserved.
728
727
  *
729
728
  * Use of this source code is governed by an MIT-style license that can be
730
729
  * found in the LICENSE file at https://angular.io/license
731
- */(f)),d){var y=function m(t){return t.filter(function(t){return!!t})}(d.transitiveModule.directives.map(function(t){return n.host.resolver.getNonNormalizedDirectiveMetadata(t.reference)})).map(function(t){return t.metadata.toSummary()}),g=d.transitiveModule.pipes.map(function(t){return n.host.resolver.getOrLoadPipeMetadata(t.reference).toSummary()}),_=p.tryParseHtml(h,o,y,g,d.schemas);r={htmlAst:h.rootNodes,templateAst:_.templateAst,directive:o,directives:y,pipes:g,parseErrors:_.errors,expressionParser:c,errors:void 0}}}}catch(n){var b=t.span;n.fileName==e&&(b=t.query.getSpanAt(n.line,n.column)||b),r={errors:[{kind:Bc.Error,message:n.message,span:b}]}}return r||{}},t}();function Pl(t){return{providedIn:t.providedIn||null,factory:t.factory,value:void 0}}
730
+ */(f)),d){var y=function m(t){return t.filter(function(t){return!!t})}(d.transitiveModule.directives.map(function(t){return n.host.resolver.getNonNormalizedDirectiveMetadata(t.reference)})).map(function(t){return t.metadata.toSummary()}),g=d.transitiveModule.pipes.map(function(t){return n.host.resolver.getOrLoadPipeMetadata(t.reference).toSummary()}),_=l.tryParseHtml(h,o,y,g,d.schemas);r={htmlAst:h.rootNodes,templateAst:_.templateAst,directive:o,directives:y,pipes:g,parseErrors:_.errors,expressionParser:u,errors:void 0}}}}catch(n){var b=t.span;n.fileName==e&&(b=t.query.getSpanAt(n.line,n.column)||b),r={errors:[{kind:Wc.Error,message:n.message,span:b}]}}return r||{}},t}();function Ml(t){return{providedIn:t.providedIn||null,factory:t.factory,value:void 0}}
732
731
  /**
733
732
  * @license
734
733
  * Copyright Google Inc. All Rights Reserved.
@@ -736,21 +735,21 @@ function s(t){var e=new Ku(t,function(e,n){return qu(t,e,n)});return jt(e,t.temp
736
735
  * Use of this source code is governed by an MIT-style license that can be
737
736
  * found in the LICENSE file at https://angular.io/license
738
737
  */
739
- var Al,Nl,kl,Ol=function(){function t(t,e){this._desc=t,this.ngMetadataName="InjectionToken",this.ngInjectableDef=void 0!==e?Pl({providedIn:e.providedIn||"root",factory:e.factory}):void 0}return t.prototype.toString=function(){return"InjectionToken "+this._desc},t}(),Ml="__annotations__",Il="__parameters__",Rl="__prop__metadata__";
738
+ var Il,Rl,Dl,jl=function(){function t(t,e){this._desc=t,this.ngMetadataName="InjectionToken",this.ngInjectableDef=void 0!==e?Ml({providedIn:e.providedIn||"root",factory:e.factory}):void 0}return t.prototype.toString=function(){return"InjectionToken "+this._desc},t}(),Ll="__annotations__",Fl="__parameters__",Vl="__prop__metadata__";
740
739
  /**
741
740
  * @license
742
741
  * Copyright Google Inc. All Rights Reserved.
743
742
  *
744
743
  * Use of this source code is governed by an MIT-style license that can be
745
744
  * found in the LICENSE file at https://angular.io/license
746
- */function Dl(t,e,n,r,i){var o=jl(e);function s(){for(var t,e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];if(this instanceof s)return o.call.apply(o,l([this],e)),this;var a=new((t=s).bind.apply(t,l([void 0],e))),u=function t(n){return i&&i.apply(void 0,l([n],e)),(n.hasOwnProperty(Ml)?n[Ml]:Object.defineProperty(n,Ml,{value:[]})[Ml]).push(a),n};return r&&r(u),u}return n&&(s.prototype=Object.create(n.prototype)),s.prototype.ngMetadataName=t,s.annotationCls=s,s}function jl(t){return function e(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];if(t){var i=t.apply(void 0,l(n));for(var o in i)this[o]=i[o]}}}function Ll(t,e,n){var r=jl(e);function i(){for(var t,e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];if(this instanceof i)return r.apply(this,e),this;var o=new((t=i).bind.apply(t,l([void 0],e)));return s.annotation=o,s;function s(t,e,n){for(var r=t.hasOwnProperty(Il)?t[Il]:Object.defineProperty(t,Il,{value:[]})[Il];r.length<=n;)r.push(null);return(r[n]=r[n]||[]).push(o),t}}return n&&(i.prototype=Object.create(n.prototype)),i.prototype.ngMetadataName=t,i.annotationCls=i,i}function Fl(t,e,n){var r=jl(e);function i(){for(var t,e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];if(this instanceof i)return r.apply(this,e),this;var o=new((t=i).bind.apply(t,l([void 0],e)));return function t(e,n){var r=e.constructor,i=r.hasOwnProperty(Rl)?r[Rl]:Object.defineProperty(r,Rl,{value:{}})[Rl];i[n]=i.hasOwnProperty(n)&&i[n]||[],i[n].unshift(o)}}return n&&(i.prototype=Object.create(n.prototype)),i.prototype.ngMetadataName=t,i.annotationCls=i,i}
745
+ */function Hl(t,e,n,r,i){var o=Bl(e);function s(){for(var t,e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];if(this instanceof s)return o.call.apply(o,f([this],e)),this;var a=new((t=s).bind.apply(t,f([void 0],e))),u=function t(n){return i&&i.apply(void 0,f([n],e)),(n.hasOwnProperty(Ll)?n[Ll]:Object.defineProperty(n,Ll,{value:[]})[Ll]).push(a),n};return r&&r(u),u}return n&&(s.prototype=Object.create(n.prototype)),s.prototype.ngMetadataName=t,s.annotationCls=s,s}function Bl(t){return function e(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];if(t){var i=t.apply(void 0,f(n));for(var o in i)this[o]=i[o]}}}function ql(t,e,n){var r=Bl(e);function i(){for(var t,e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];if(this instanceof i)return r.apply(this,e),this;var o=new((t=i).bind.apply(t,f([void 0],e)));return s.annotation=o,s;function s(t,e,n){for(var r=t.hasOwnProperty(Fl)?t[Fl]:Object.defineProperty(t,Fl,{value:[]})[Fl];r.length<=n;)r.push(null);return(r[n]=r[n]||[]).push(o),t}}return n&&(i.prototype=Object.create(n.prototype)),i.prototype.ngMetadataName=t,i.annotationCls=i,i}function Kl(t,e,n){var r=Bl(e);function i(){for(var t,e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];if(this instanceof i)return r.apply(this,e),this;var o=new((t=i).bind.apply(t,f([void 0],e)));return function t(e,n){var r=e.constructor,i=r.hasOwnProperty(Vl)?r[Vl]:Object.defineProperty(r,Vl,{value:{}})[Vl];i[n]=i.hasOwnProperty(n)&&i[n]||[],i[n].unshift(o)}}return n&&(i.prototype=Object.create(n.prototype)),i.prototype.ngMetadataName=t,i.annotationCls=i,i}
747
746
  /**
748
747
  * @license
749
748
  * Copyright Google Inc. All Rights Reserved.
750
749
  *
751
750
  * Use of this source code is governed by an MIT-style license that can be
752
751
  * found in the LICENSE file at https://angular.io/license
753
- */new Ol("AnalyzeForEntryComponents"),Ll("Attribute",function(t){return{attributeName:t}}),Fl("ContentChildren",function(t,e){return void 0===e&&(e={}),a({selector:t,first:!1,isViewQuery:!1,descendants:!1},e)},kl=function kl(){}),Fl("ContentChild",function(t,e){return void 0===e&&(e={}),a({selector:t,first:!0,isViewQuery:!1,descendants:!0},e)},kl),Fl("ViewChildren",function(t,e){return void 0===e&&(e={}),a({selector:t,first:!1,isViewQuery:!0,descendants:!0},e)},kl),Fl("ViewChild",function(t,e){return a({selector:t,first:!0,isViewQuery:!0,descendants:!0},e)},kl),function(t){t[t.OnPush=0]="OnPush",t[t.Default=1]="Default"}(Al||(Al={})),function(t){t[t.CheckOnce=0]="CheckOnce",t[t.Checked=1]="Checked",t[t.CheckAlways=2]="CheckAlways",t[t.Detached=3]="Detached",t[t.Errored=4]="Errored",t[t.Destroyed=5]="Destroyed"}(Nl||(Nl={})),Dl("Component",function(t){return void 0===t&&(t={}),a({changeDetection:Al.Default},t)},Dl("Directive",function(t){return void 0===t&&(t={}),t},void 0,void 0,function(t,e){}),void 0,function(t,e){}),Dl("Pipe",function(t){return a({pure:!0},t)},void 0,void 0,function(t,e){}),Fl("Input",function(t){return{bindingPropertyName:t}}),Fl("Output",function(t){return{bindingPropertyName:t}}),Fl("HostBinding",function(t){return{hostPropertyName:t}}),Fl("HostListener",function(t,e){return{eventName:t,args:e}});
752
+ */new jl("AnalyzeForEntryComponents"),ql("Attribute",function(t){return{attributeName:t}}),Kl("ContentChildren",function(t,e){return void 0===e&&(e={}),a({selector:t,first:!1,isViewQuery:!1,descendants:!1},e)},Dl=function Dl(){}),Kl("ContentChild",function(t,e){return void 0===e&&(e={}),a({selector:t,first:!0,isViewQuery:!1,descendants:!0},e)},Dl),Kl("ViewChildren",function(t,e){return void 0===e&&(e={}),a({selector:t,first:!1,isViewQuery:!0,descendants:!0},e)},Dl),Kl("ViewChild",function(t,e){return a({selector:t,first:!0,isViewQuery:!0,descendants:!0},e)},Dl),function(t){t[t.OnPush=0]="OnPush",t[t.Default=1]="Default"}(Il||(Il={})),function(t){t[t.CheckOnce=0]="CheckOnce",t[t.Checked=1]="Checked",t[t.CheckAlways=2]="CheckAlways",t[t.Detached=3]="Detached",t[t.Errored=4]="Errored",t[t.Destroyed=5]="Destroyed"}(Rl||(Rl={})),Hl("Component",function(t){return void 0===t&&(t={}),a({changeDetection:Il.Default},t)},Hl("Directive",function(t){return void 0===t&&(t={}),t},void 0,void 0,function(t,e){}),void 0,function(t,e){}),Hl("Pipe",function(t){return a({pure:!0},t)},void 0,void 0,function(t,e){}),Kl("Input",function(t){return{bindingPropertyName:t}}),Kl("Output",function(t){return{bindingPropertyName:t}}),Kl("HostBinding",function(t){return{hostPropertyName:t}}),Kl("HostListener",function(t,e){return{eventName:t,args:e}});
754
753
  /**
755
754
  * @license
756
755
  * Copyright Google Inc. All Rights Reserved.
@@ -765,21 +764,21 @@ var Al,Nl,kl,Ol=function(){function t(t,e){this._desc=t,this.ngMetadataName="Inj
765
764
  * Use of this source code is governed by an MIT-style license that can be
766
765
  * found in the LICENSE file at https://angular.io/license
767
766
  */
768
- var Vl=Function;function Hl(t){return"function"==typeof t}
767
+ var Ul=Function;function zl(t){return"function"==typeof t}
769
768
  /**
770
769
  * @license
771
770
  * Copyright Google Inc. All Rights Reserved.
772
771
  *
773
772
  * Use of this source code is governed by an MIT-style license that can be
774
773
  * found in the LICENSE file at https://angular.io/license
775
- */var Bl="undefined"!=typeof window&&window,ql="undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self,Kl="undefined"!=typeof global&&global||Bl||ql,Ul=Promise.resolve(0),zl=null;function Wl(){if(!zl){var t=Kl.Symbol;if(t&&t.iterator)zl=t.iterator;else for(var e=Object.getOwnPropertyNames(Map.prototype),n=0;n<e.length;++n){var r=e[n];"entries"!==r&&"size"!==r&&Map.prototype[r]===Map.prototype.entries&&(zl=r)}}return zl}function Ql(t){"undefined"==typeof Zone?Ul.then(function(){t&&t.apply(null,null)}):Zone.current.scheduleMicroTask("scheduleMicrotask",t)}function Gl(t,e){return t===e||"number"==typeof t&&"number"==typeof e&&isNaN(t)&&isNaN(e)}function Xl(t){if("string"==typeof t)return t;if(t instanceof Array)return"["+t.map(Xl).join(", ")+"]";if(null==t)return""+t;if(t.overriddenName)return""+t.overriddenName;if(t.name)return""+t.name;var e=t.toString();if(null==e)return""+e;var n=e.indexOf("\n");return-1===n?e:e.substring(0,n)}
774
+ */var Wl="undefined"!=typeof window&&window,Ql="undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self,Gl="undefined"!=typeof global&&global||Wl||Ql,Xl=Promise.resolve(0),Yl=null;function Zl(){if(!Yl){var t=Gl.Symbol;if(t&&t.iterator)Yl=t.iterator;else for(var e=Object.getOwnPropertyNames(Map.prototype),n=0;n<e.length;++n){var r=e[n];"entries"!==r&&"size"!==r&&Map.prototype[r]===Map.prototype.entries&&(Yl=r)}}return Yl}function $l(t){"undefined"==typeof Zone?Xl.then(function(){t&&t.apply(null,null)}):Zone.current.scheduleMicroTask("scheduleMicrotask",t)}function Jl(t,e){return t===e||"number"==typeof t&&"number"==typeof e&&isNaN(t)&&isNaN(e)}function tp(t){if("string"==typeof t)return t;if(t instanceof Array)return"["+t.map(tp).join(", ")+"]";if(null==t)return""+t;if(t.overriddenName)return""+t.overriddenName;if(t.name)return""+t.name;var e=t.toString();if(null==e)return""+e;var n=e.indexOf("\n");return-1===n?e:e.substring(0,n)}
776
775
  /**
777
776
  * @license
778
777
  * Copyright Google Inc. All Rights Reserved.
779
778
  *
780
779
  * Use of this source code is governed by an MIT-style license that can be
781
780
  * found in the LICENSE file at https://angular.io/license
782
- */var Yl=/^function\s+\S+\(\)\s*{[\s\S]+\.apply\(this,\s*arguments\)/,Zl=/^class\s+[A-Za-z\d$_]*\s*extends\s+[A-Za-z\d$_]+\s*{/,$l=/^class\s+[A-Za-z\d$_]*\s*extends\s+[A-Za-z\d$_]+\s*{[\s\S]*constructor\s*\(/,Jl=function(){function t(t){this._reflect=t||Kl.Reflect}return t.prototype.isReflectionEnabled=function(){return!0},t.prototype.factory=function(t){return function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return new(t.bind.apply(t,l([void 0],e)))}},t.prototype._zipTypesAndAnnotations=function(t,e){var n;n=void 0===t?new Array(e.length):new Array(t.length);for(var r=0;r<n.length;r++)n[r]=void 0===t?[]:t[r]!=Object?[t[r]]:[],e&&null!=e[r]&&(n[r]=n[r].concat(e[r]));return n},t.prototype._ownParameters=function(t,e){var n=t.toString();if(Yl.exec(n)||Zl.exec(n)&&!$l.exec(n))return null;if(t.parameters&&t.parameters!==e.parameters)return t.parameters;var r=t.ctorParameters;if(r&&r!==e.ctorParameters){var i="function"==typeof r?r():r,o=i.map(function(t){return t&&t.type}),s=i.map(function(t){return t&&tp(t.decorators)});return this._zipTypesAndAnnotations(o,s)}var a=t.hasOwnProperty(Il)&&t[Il],u=this._reflect&&this._reflect.getOwnMetadata&&this._reflect.getOwnMetadata("design:paramtypes",t);return u||a?this._zipTypesAndAnnotations(u,a):new Array(t.length).fill(void 0)},t.prototype.parameters=function(t){if(!Hl(t))return[];var e=ep(t),n=this._ownParameters(t,e);return n||e===Object||(n=this.parameters(e)),n||[]},t.prototype._ownAnnotations=function(t,e){if(t.annotations&&t.annotations!==e.annotations){var n=t.annotations;return"function"==typeof n&&n.annotations&&(n=n.annotations),n}return t.decorators&&t.decorators!==e.decorators?tp(t.decorators):t.hasOwnProperty(Ml)?t[Ml]:null},t.prototype.annotations=function(t){if(!Hl(t))return[];var e=ep(t),n=this._ownAnnotations(t,e)||[];return(e!==Object?this.annotations(e):[]).concat(n)},t.prototype._ownPropMetadata=function(t,e){if(t.propMetadata&&t.propMetadata!==e.propMetadata){var n=t.propMetadata;return"function"==typeof n&&n.propMetadata&&(n=n.propMetadata),n}if(t.propDecorators&&t.propDecorators!==e.propDecorators){var r=t.propDecorators,i={};return Object.keys(r).forEach(function(t){i[t]=tp(r[t])}),i}return t.hasOwnProperty(Rl)?t[Rl]:null},t.prototype.propMetadata=function(t){if(!Hl(t))return{};var e=ep(t),n={};if(e!==Object){var r=this.propMetadata(e);Object.keys(r).forEach(function(t){n[t]=r[t]})}var i=this._ownPropMetadata(t,e);return i&&Object.keys(i).forEach(function(t){var e=[];n.hasOwnProperty(t)&&e.push.apply(e,l(n[t])),e.push.apply(e,l(i[t])),n[t]=e}),n},t.prototype.hasLifecycleHook=function(t,e){return t instanceof Vl&&e in t.prototype},t.prototype.guards=function(t){return{}},t.prototype.getter=function(t){return new Function("o","return o."+t+";")},t.prototype.setter=function(t){return new Function("o","v","return o."+t+" = v;")},t.prototype.method=function(t){return new Function("o","args","if (!o."+t+") throw new Error('\""+t+"\" is undefined');\n return o."+t+".apply(o, args);")},t.prototype.importUri=function(t){return"object"==typeof t&&t.filePath?t.filePath:"./"+Xl(t)},t.prototype.resourceUri=function(t){return"./"+Xl(t)},t.prototype.resolveIdentifier=function(t,e,n,r){return r},t.prototype.resolveEnum=function(t,e){return t[e]},t}();function tp(t){return t?t.map(function(t){var e=t.type.annotationCls;return new(e.bind.apply(e,l([void 0],t.args?t.args:[])))}):[]}function ep(t){var e=t.prototype?Object.getPrototypeOf(t.prototype):null;return(e?e.constructor:null)||Object}
781
+ */var ep=/^function\s+\S+\(\)\s*{[\s\S]+\.apply\(this,\s*arguments\)/,np=/^class\s+[A-Za-z\d$_]*\s*extends\s+[A-Za-z\d$_]+\s*{/,rp=/^class\s+[A-Za-z\d$_]*\s*extends\s+[A-Za-z\d$_]+\s*{[\s\S]*constructor\s*\(/,ip=function(){function t(t){this._reflect=t||Gl.Reflect}return t.prototype.isReflectionEnabled=function(){return!0},t.prototype.factory=function(t){return function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return new(t.bind.apply(t,f([void 0],e)))}},t.prototype._zipTypesAndAnnotations=function(t,e){var n;n=void 0===t?new Array(e.length):new Array(t.length);for(var r=0;r<n.length;r++)n[r]=void 0===t?[]:t[r]!=Object?[t[r]]:[],e&&null!=e[r]&&(n[r]=n[r].concat(e[r]));return n},t.prototype._ownParameters=function(t,e){var n=t.toString();if(ep.exec(n)||np.exec(n)&&!rp.exec(n))return null;if(t.parameters&&t.parameters!==e.parameters)return t.parameters;var r=t.ctorParameters;if(r&&r!==e.ctorParameters){var i="function"==typeof r?r():r,o=i.map(function(t){return t&&t.type}),s=i.map(function(t){return t&&op(t.decorators)});return this._zipTypesAndAnnotations(o,s)}var a=t.hasOwnProperty(Fl)&&t[Fl],u=this._reflect&&this._reflect.getOwnMetadata&&this._reflect.getOwnMetadata("design:paramtypes",t);return u||a?this._zipTypesAndAnnotations(u,a):new Array(t.length).fill(void 0)},t.prototype.parameters=function(t){if(!zl(t))return[];var e=sp(t),n=this._ownParameters(t,e);return n||e===Object||(n=this.parameters(e)),n||[]},t.prototype._ownAnnotations=function(t,e){if(t.annotations&&t.annotations!==e.annotations){var n=t.annotations;return"function"==typeof n&&n.annotations&&(n=n.annotations),n}return t.decorators&&t.decorators!==e.decorators?op(t.decorators):t.hasOwnProperty(Ll)?t[Ll]:null},t.prototype.annotations=function(t){if(!zl(t))return[];var e=sp(t),n=this._ownAnnotations(t,e)||[];return(e!==Object?this.annotations(e):[]).concat(n)},t.prototype._ownPropMetadata=function(t,e){if(t.propMetadata&&t.propMetadata!==e.propMetadata){var n=t.propMetadata;return"function"==typeof n&&n.propMetadata&&(n=n.propMetadata),n}if(t.propDecorators&&t.propDecorators!==e.propDecorators){var r=t.propDecorators,i={};return Object.keys(r).forEach(function(t){i[t]=op(r[t])}),i}return t.hasOwnProperty(Vl)?t[Vl]:null},t.prototype.propMetadata=function(t){if(!zl(t))return{};var e=sp(t),n={};if(e!==Object){var r=this.propMetadata(e);Object.keys(r).forEach(function(t){n[t]=r[t]})}var i=this._ownPropMetadata(t,e);return i&&Object.keys(i).forEach(function(t){var e=[];n.hasOwnProperty(t)&&e.push.apply(e,f(n[t])),e.push.apply(e,f(i[t])),n[t]=e}),n},t.prototype.hasLifecycleHook=function(t,e){return t instanceof Ul&&e in t.prototype},t.prototype.guards=function(t){return{}},t.prototype.getter=function(t){return new Function("o","return o."+t+";")},t.prototype.setter=function(t){return new Function("o","v","return o."+t+" = v;")},t.prototype.method=function(t){return new Function("o","args","if (!o."+t+") throw new Error('\""+t+"\" is undefined');\n return o."+t+".apply(o, args);")},t.prototype.importUri=function(t){return"object"==typeof t&&t.filePath?t.filePath:"./"+tp(t)},t.prototype.resourceUri=function(t){return"./"+tp(t)},t.prototype.resolveIdentifier=function(t,e,n,r){return r},t.prototype.resolveEnum=function(t,e){return t[e]},t}();function op(t){return t?t.map(function(t){var e=t.type.annotationCls;return new(e.bind.apply(e,f([void 0],t.args?t.args:[])))}):[]}function sp(t){var e=t.prototype?Object.getPrototypeOf(t.prototype):null;return(e?e.constructor:null)||Object}
783
782
  /**
784
783
  * @license
785
784
  * Copyright Google Inc. All Rights Reserved.
@@ -794,28 +793,28 @@ var Vl=Function;function Hl(t){return"function"==typeof t}
794
793
  * Use of this source code is governed by an MIT-style license that can be
795
794
  * found in the LICENSE file at https://angular.io/license
796
795
  */
797
- function np(t){return t.__forward_ref__=np,t.toString=function(){return Xl(this())},t}function rp(t){return"function"==typeof t&&t.hasOwnProperty("__forward_ref__")&&t.__forward_ref__===np?t():t}
796
+ function ap(t){return t.__forward_ref__=ap,t.toString=function(){return tp(this())},t}function up(t){return"function"==typeof t&&t.hasOwnProperty("__forward_ref__")&&t.__forward_ref__===ap?t():t}
798
797
  /**
799
798
  * @license
800
799
  * Copyright Google Inc. All Rights Reserved.
801
800
  *
802
801
  * Use of this source code is governed by an MIT-style license that can be
803
802
  * found in the LICENSE file at https://angular.io/license
804
- */var ip=Ll("Inject",function(t){return{token:t}}),op=Ll("Optional"),sp=Ll("Self"),ap=Ll("SkipSelf"),up=(Ll("Host"),"__source"),cp=new Object,lp=cp,pp=new Ol("INJECTOR"),hp=function(){function t(){}return t.prototype.get=function(t,e){if(void 0===e&&(e=cp),e===cp)throw new Error("NullInjectorError: No provider for "+Xl(t)+"!");return e},t}(),fp=function(){function t(){}return t.create=function(t,e){return Array.isArray(t)?new Sp(t,e):new Sp(t.providers,t.parent,t.name||null)},t.THROW_IF_NOT_FOUND=cp,t.NULL=new hp,t.ngInjectableDef=Pl({providedIn:"any",factory:function(){return kp(pp)}}),t}(),dp=function(t){return t},vp=[],yp=dp,mp=function(){return Array.prototype.slice.call(arguments)},gp={},_p=function bp(t){for(var e in t)if(t[e]===gp)return e;throw Error("!prop")}({provide:String,useValue:gp}),wp=fp.NULL,xp=/\n/gm,Ep="ɵ",Sp=function(){function t(t,e,n){void 0===e&&(e=wp),void 0===n&&(n=null),this.parent=e,this.source=n;var r=this._records=new Map;r.set(fp,{token:fp,fn:dp,deps:vp,value:this,useNew:!1}),r.set(pp,{token:pp,fn:dp,deps:vp,value:this,useNew:!1}),function t(e,n){if(n)if((n=rp(n))instanceof Array)for(var r=0;r<n.length;r++)t(e,n[r]);else{if("function"==typeof n)throw Pp("Function/Class not supported",n);if(!n||"object"!=typeof n||!n.provide)throw Pp("Unexpected provider",n);var i=rp(n.provide),o=function s(t){var e=function n(t){var e=vp,n=t.deps;if(n&&n.length){e=[];for(var r=0;r<n.length;r++){var i=6;if((u=rp(n[r]))instanceof Array)for(var o=0,s=u;o<s.length;o++){var a=s[o];a instanceof op||a==op?i|=1:a instanceof ap||a==ap?i&=-3:a instanceof sp||a==sp?i&=-5:u=a instanceof ip?a.token:rp(a)}e.push({token:u,options:i})}}else if(t.useExisting){var u;e=[{token:u=rp(t.useExisting),options:6}]}else if(!(n||_p in t))throw Pp("'deps' required",t);return e}(t),r=dp,i=vp,o=!1,s=rp(t.provide);if(_p in t)i=t.useValue;else if(t.useFactory)r=t.useFactory;else if(t.useExisting);else if(t.useClass)o=!0,r=rp(t.useClass);else{if("function"!=typeof s)throw Pp("StaticProvider does not have [useValue|useFactory|useExisting|useClass] or [provide] is not newable",t);o=!0,r=s}return{deps:e,fn:r,useNew:o,value:i}}(n);if(!0===n.multi){var a=e.get(i);if(a){if(a.fn!==mp)throw Cp(i)}else e.set(i,a={token:n.provide,deps:[],useNew:!1,fn:mp,value:vp});a.deps.push({token:i=n,options:6})}var u=e.get(i);if(u&&u.fn==mp)throw Cp(i);e.set(i,o)}}(r,t)}return t.prototype.get=function(t,e,n){void 0===n&&(n=0);var r=this._records.get(t);try{return function t(e,n,r,i,o,s){try{return function a(e,n,r,i,o,s){var a,u;if(!n||4&s)2&s||(u=i.get(e,o,0));else{if((u=n.value)==yp)throw Error(Ep+"Circular dependency");if(u===vp){n.value=yp;var c=n.useNew,p=n.fn,h=n.deps,f=vp;if(h.length){f=[];for(var d=0;d<h.length;d++){var v=h[d],y=v.options,m=2&y?r.get(v.token):void 0;f.push(t(v.token,m,r,m||4&y?i:wp,1&y?null:fp.THROW_IF_NOT_FOUND,0))}}n.value=u=c?new((a=p).bind.apply(a,l([void 0],f))):p.apply(void 0,f)}}return u}(e,n,r,i,o,s)}catch(t){throw t instanceof Error||(t=new Error(t)),(t.ngTempTokenPath=t.ngTempTokenPath||[]).unshift(e),n&&n.value==yp&&(n.value=vp),t}}(t,r,this._records,this.parent,e,n)}catch(e){var i=e.ngTempTokenPath;throw t[up]&&i.unshift(t[up]),e.message=Tp("\n"+e.message,i,this.source),e.ngTokenPath=i,e.ngTempTokenPath=null,e}},t.prototype.toString=function(){var t=[];return this._records.forEach(function(e,n){return t.push(Xl(n))}),"StaticInjector["+t.join(", ")+"]"},t}();function Cp(t){return Pp("Cannot mix multi providers and regular providers",t)}function Tp(t,e,n){void 0===n&&(n=null),t=t&&"\n"===t.charAt(0)&&t.charAt(1)==Ep?t.substr(2):t;var r=Xl(e);if(e instanceof Array)r=e.map(Xl).join(" -> ");else if("object"==typeof e){var i=[];for(var o in e)if(e.hasOwnProperty(o)){var s=e[o];i.push(o+":"+("string"==typeof s?JSON.stringify(s):Xl(s)))}r="{"+i.join(", ")+"}"}return"StaticInjectorError"+(n?"("+n+")":"")+"["+r+"]: "+t.replace(xp,"\n ")}function Pp(t,e){return new Error(Tp(t,e))}var Ap=void 0;function Np(t){var e=Ap;return Ap=t,e}function kp(t,e){if(void 0===e&&(e=0),void 0===Ap)throw new Error("inject() must be called from an injection context");if(null===Ap){var n=t.ngInjectableDef;if(n&&"root"==n.providedIn)return void 0===n.value?n.value=n.factory():n.value;if(8&e)return null;throw new Error("Injector: NOT_FOUND ["+Xl(t)+"]")}return Ap.get(t,8&e?null:void 0,e)}function Op(t){for(var e=[],n=0;n<t.length;n++){var r=t[n];if(Array.isArray(r)){if(0===r.length)throw new Error("Arguments array must have arguments.");for(var i=void 0,o=0,s=0;s<r.length;s++){var a=r[s];a instanceof op||"Optional"===a.ngMetadataName?o|=8:a instanceof ap||"SkipSelf"===a.ngMetadataName?o|=4:a instanceof sp||"Self"===a.ngMetadataName?o|=2:i=a instanceof ip?a.token:a}e.push(kp(i,o))}else e.push(kp(r))}return e}
803
+ */var cp=ql("Inject",function(t){return{token:t}}),lp=ql("Optional"),pp=ql("Self"),hp=ql("SkipSelf"),fp=(ql("Host"),"__source"),dp=new Object,vp=dp,yp=new jl("INJECTOR"),mp=function(){function t(){}return t.prototype.get=function(t,e){if(void 0===e&&(e=dp),e===dp)throw new Error("NullInjectorError: No provider for "+tp(t)+"!");return e},t}(),gp=function(){function t(){}return t.create=function(t,e){return Array.isArray(t)?new Np(t,e):new Np(t.providers,t.parent,t.name||null)},t.THROW_IF_NOT_FOUND=dp,t.NULL=new mp,t.ngInjectableDef=Ml({providedIn:"any",factory:function(){return Dp(yp)}}),t}(),_p=function(t){return t},bp=[],wp=_p,xp=function(){return Array.prototype.slice.call(arguments)},Ep={},Sp=function Cp(t){for(var e in t)if(t[e]===Ep)return e;throw Error("!prop")}({provide:String,useValue:Ep}),Tp=gp.NULL,Pp=/\n/gm,Ap="ɵ",Np=function(){function t(t,e,n){void 0===e&&(e=Tp),void 0===n&&(n=null),this.parent=e,this.source=n;var r=this._records=new Map;r.set(gp,{token:gp,fn:_p,deps:bp,value:this,useNew:!1}),r.set(yp,{token:yp,fn:_p,deps:bp,value:this,useNew:!1}),function t(e,n){if(n)if((n=up(n))instanceof Array)for(var r=0;r<n.length;r++)t(e,n[r]);else{if("function"==typeof n)throw Mp("Function/Class not supported",n);if(!n||"object"!=typeof n||!n.provide)throw Mp("Unexpected provider",n);var i=up(n.provide),o=function s(t){var e=function n(t){var e=bp,n=t.deps;if(n&&n.length){e=[];for(var r=0;r<n.length;r++){var i=6;if((u=up(n[r]))instanceof Array)for(var o=0,s=u;o<s.length;o++){var a=s[o];a instanceof lp||a==lp?i|=1:a instanceof hp||a==hp?i&=-3:a instanceof pp||a==pp?i&=-5:u=a instanceof cp?a.token:up(a)}e.push({token:u,options:i})}}else if(t.useExisting){var u;e=[{token:u=up(t.useExisting),options:6}]}else if(!(n||Sp in t))throw Mp("'deps' required",t);return e}(t),r=_p,i=bp,o=!1,s=up(t.provide);if(Sp in t)i=t.useValue;else if(t.useFactory)r=t.useFactory;else if(t.useExisting);else if(t.useClass)o=!0,r=up(t.useClass);else{if("function"!=typeof s)throw Mp("StaticProvider does not have [useValue|useFactory|useExisting|useClass] or [provide] is not newable",t);o=!0,r=s}return{deps:e,fn:r,useNew:o,value:i}}(n);if(!0===n.multi){var a=e.get(i);if(a){if(a.fn!==xp)throw kp(i)}else e.set(i,a={token:n.provide,deps:[],useNew:!1,fn:xp,value:bp});a.deps.push({token:i=n,options:6})}var u=e.get(i);if(u&&u.fn==xp)throw kp(i);e.set(i,o)}}(r,t)}return t.prototype.get=function(t,e,n){void 0===n&&(n=0);var r=this._records.get(t);try{return function t(e,n,r,i,o,s){try{return function a(e,n,r,i,o,s){var a,u;if(!n||4&s)2&s||(u=i.get(e,o,0));else{if((u=n.value)==wp)throw Error(Ap+"Circular dependency");if(u===bp){n.value=wp;var c=n.useNew,l=n.fn,p=n.deps,h=bp;if(p.length){h=[];for(var d=0;d<p.length;d++){var v=p[d],y=v.options,m=2&y?r.get(v.token):void 0;h.push(t(v.token,m,r,m||4&y?i:Tp,1&y?null:gp.THROW_IF_NOT_FOUND,0))}}n.value=u=c?new((a=l).bind.apply(a,f([void 0],h))):l.apply(void 0,h)}}return u}(e,n,r,i,o,s)}catch(t){throw t instanceof Error||(t=new Error(t)),(t.ngTempTokenPath=t.ngTempTokenPath||[]).unshift(e),n&&n.value==wp&&(n.value=bp),t}}(t,r,this._records,this.parent,e,n)}catch(e){var i=e.ngTempTokenPath;throw t[fp]&&i.unshift(t[fp]),e.message=Op("\n"+e.message,i,this.source),e.ngTokenPath=i,e.ngTempTokenPath=null,e}},t.prototype.toString=function(){var t=[];return this._records.forEach(function(e,n){return t.push(tp(n))}),"StaticInjector["+t.join(", ")+"]"},t}();function kp(t){return Mp("Cannot mix multi providers and regular providers",t)}function Op(t,e,n){void 0===n&&(n=null),t=t&&"\n"===t.charAt(0)&&t.charAt(1)==Ap?t.substr(2):t;var r=tp(e);if(e instanceof Array)r=e.map(tp).join(" -> ");else if("object"==typeof e){var i=[];for(var o in e)if(e.hasOwnProperty(o)){var s=e[o];i.push(o+":"+("string"==typeof s?JSON.stringify(s):tp(s)))}r="{"+i.join(", ")+"}"}return"StaticInjectorError"+(n?"("+n+")":"")+"["+r+"]: "+t.replace(Pp,"\n ")}function Mp(t,e){return new Error(Op(t,e))}var Ip=void 0;function Rp(t){var e=Ip;return Ip=t,e}function Dp(t,e){if(void 0===e&&(e=0),void 0===Ip)throw new Error("inject() must be called from an injection context");if(null===Ip){var n=t.ngInjectableDef;if(n&&"root"==n.providedIn)return void 0===n.value?n.value=n.factory():n.value;if(8&e)return null;throw new Error("Injector: NOT_FOUND ["+tp(t)+"]")}return Ip.get(t,8&e?null:void 0,e)}function jp(t){for(var e=[],n=0;n<t.length;n++){var r=t[n];if(Array.isArray(r)){if(0===r.length)throw new Error("Arguments array must have arguments.");for(var i=void 0,o=0,s=0;s<r.length;s++){var a=r[s];a instanceof lp||"Optional"===a.ngMetadataName?o|=8:a instanceof hp||"SkipSelf"===a.ngMetadataName?o|=4:a instanceof pp||"Self"===a.ngMetadataName?o|=2:i=a instanceof cp?a.token:a}e.push(Dp(i,o))}else e.push(Dp(r))}return e}
805
804
  /**
806
805
  * @license
807
806
  * Copyright Google Inc. All Rights Reserved.
808
807
  *
809
808
  * Use of this source code is governed by an MIT-style license that can be
810
809
  * found in the LICENSE file at https://angular.io/license
811
- */var Mp={},Ip=function Rp(t,e){for(var n in t)if(t[n]===e)return n;throw Error("Could not find renamed property on target object.")}({provide:String,useValue:Mp},Mp),Dp=[];function jp(t,e){if(!e){var n=(u=new Jl).parameters(t);return function(){return new(t.bind.apply(t,l([void 0],Op(n))))}}if(Ip in e){var r=e;return function(){return r.useValue}}if(e.useExisting){var i=e;return function(){return kp(i.useExisting)}}if(e.useFactory){var o=e;return function(){return o.useFactory.apply(o,l(Op(o.deps||Dp)))}}if(e.useClass){var s=e,a=e.deps;if(!a){var u=new Jl;a=u.parameters(t)}return function(){var t;return new((t=s.useClass).bind.apply(t,l([void 0],Op(a))))}}var c=e.deps;return c||(u=new Jl,c=u.parameters(t)),function(){return new(t.bind.apply(t,l([void 0],Op(c))))}}var Lp,Fp=Dl("Injectable",void 0,void 0,void 0,function(t,e){return function n(t,e){e&&void 0!==e.providedIn&&void 0===t.ngInjectableDef&&(t.ngInjectableDef=Pl({providedIn:e.providedIn,factory:jp(t,e)}))}(t,e)});
810
+ */var Lp={},Fp=function Vp(t,e){for(var n in t)if(t[n]===e)return n;throw Error("Could not find renamed property on target object.")}({provide:String,useValue:Lp},Lp),Hp=[];function Bp(t,e){if(!e){var n=(u=new ip).parameters(t);return function(){return new(t.bind.apply(t,f([void 0],jp(n))))}}if(Fp in e){var r=e;return function(){return r.useValue}}if(e.useExisting){var i=e;return function(){return Dp(i.useExisting)}}if(e.useFactory){var o=e;return function(){return o.useFactory.apply(o,f(jp(o.deps||Hp)))}}if(e.useClass){var s=e,a=e.deps;if(!a){var u=new ip;a=u.parameters(t)}return function(){var t;return new((t=s.useClass).bind.apply(t,f([void 0],jp(a))))}}var c=e.deps;return c||(u=new ip,c=u.parameters(t)),function(){return new(t.bind.apply(t,f([void 0],jp(c))))}}var qp,Kp=Hl("Injectable",void 0,void 0,void 0,function(t,e){return function n(t,e){e&&void 0!==e.providedIn&&void 0===t.ngInjectableDef&&(t.ngInjectableDef=Ml({providedIn:e.providedIn,factory:Bp(t,e)}))}(t,e)}),Up=Hl("NgModule",function(t){return t},void 0,void 0,function(t,e){
812
811
  /**
813
812
  * @license
814
813
  * Copyright Google Inc. All Rights Reserved.
815
814
  *
816
815
  * Use of this source code is governed by an MIT-style license that can be
817
816
  * found in the LICENSE file at https://angular.io/license
818
- */Dl("NgModule",function(t){return t},void 0,void 0,function(t,e){return function n(t,e){var n=e&&e.imports||[];e&&e.exports&&(n=l(n,[e.exports])),t.ngInjectorDef=function r(t){return{factory:t.factory,providers:t.providers||[],imports:t.imports||[]}}({factory:jp(t,{useClass:t}),providers:e&&e.providers,imports:n})}(t,e)}),function(t){t[t.Emulated=0]="Emulated",t[t.Native=1]="Native",t[t.None=2]="None",t[t.ShadowDom=3]="ShadowDom"}(Lp||(Lp={}));
817
+ */return function n(t,e){var n=e&&e.imports||[];e&&e.exports&&(n=f(n,[e.exports])),t.ngInjectorDef=function r(t){return{factory:t.factory,providers:t.providers||[],imports:t.imports||[]}}({factory:Bp(t,{useClass:t}),providers:e&&e.providers,imports:n})}(t,e)});!function(t){t[t.Emulated=0]="Emulated",t[t.Native=1]="Native",t[t.None=2]="None",t[t.ShadowDom=3]="ShadowDom"}(qp||(qp={}));
819
818
  /**
820
819
  * @license
821
820
  * Copyright Google Inc. All Rights Reserved.
@@ -830,14 +829,14 @@ function np(t){return t.__forward_ref__=np,t.toString=function(){return Xl(this(
830
829
  * Use of this source code is governed by an MIT-style license that can be
831
830
  * found in the LICENSE file at https://angular.io/license
832
831
  */
833
- var Vp=function mt(t){this.full=t,this.major=t.split(".")[0],this.minor=t.split(".")[1],this.patch=t.split(".").slice(2).join(".")},Hp=new Vp("6.1.6"),Bp="ngDebugContext",qp="ngOriginalError",Kp="ngErrorLogger";function Up(t){return t[Bp]}function zp(t){return t[qp]}function Wp(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];t.error.apply(t,l(e))}
832
+ var zp=function bt(t){this.full=t,this.major=t.split(".")[0],this.minor=t.split(".")[1],this.patch=t.split(".").slice(2).join(".")},Wp=new zp("6.1.10"),Qp="ngDebugContext",Gp="ngOriginalError",Xp="ngErrorLogger";function Yp(t){return t[Qp]}function Zp(t){return t[Gp]}function $p(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];t.error.apply(t,f(e))}
834
833
  /**
835
834
  * @license
836
835
  * Copyright Google Inc. All Rights Reserved.
837
836
  *
838
837
  * Use of this source code is governed by an MIT-style license that can be
839
838
  * found in the LICENSE file at https://angular.io/license
840
- */var Qp=function(){function t(){this._console=console}return t.prototype.handleError=function(t){var e=this._findOriginalError(t),n=this._findContext(t),r=function i(t){return t[Kp]||Wp}(t);r(this._console,"ERROR",t),e&&r(this._console,"ORIGINAL ERROR",e),n&&r(this._console,"ERROR CONTEXT",n)},t.prototype._findContext=function(t){return t?Up(t)?Up(t):this._findContext(zp(t)):null},t.prototype._findOriginalError=function(t){for(var e=zp(t);e&&zp(e);)e=zp(e);return e},t}();function Gp(t){return t.length>1?" ("+
839
+ */var Jp=function(){function t(){this._console=console}return t.prototype.handleError=function(t){var e=this._findOriginalError(t),n=this._findContext(t),r=function i(t){return t[Xp]||$p}(t);r(this._console,"ERROR",t),e&&r(this._console,"ORIGINAL ERROR",e),n&&r(this._console,"ERROR CONTEXT",n)},t.prototype._findContext=function(t){return t?Yp(t)?Yp(t):this._findContext(Zp(t)):null},t.prototype._findOriginalError=function(t){for(var e=Zp(t);e&&Zp(e);)e=Zp(e);return e},t}();function th(t){return t.length>1?" ("+
841
840
  /**
842
841
  * @license
843
842
  * Copyright Google Inc. All Rights Reserved.
@@ -845,7 +844,7 @@ var Vp=function mt(t){this.full=t,this.major=t.split(".")[0],this.minor=t.split(
845
844
  * Use of this source code is governed by an MIT-style license that can be
846
845
  * found in the LICENSE file at https://angular.io/license
847
846
  */
848
- function e(t){for(var e=[],n=0;n<t.length;++n){if(e.indexOf(t[n])>-1)return e.push(t[n]),e;e.push(t[n])}return e}(t.slice().reverse()).map(function(t){return Xl(t.token)}).join(" -> ")+")":""}function Xp(t,e,n,r){var i=[e],o=n(i),s=r?function a(t,e){var n=t+" caused by: "+(e instanceof Error?e.message:e),r=Error(n);return r[qp]=e,r}(o,r):Error(o);return s.addKey=Yp,s.keys=i,s.injectors=[t],s.constructResolvingMessage=n,s[qp]=r,s}function Yp(t,e){this.injectors.push(t),this.keys.push(e),this.message=this.constructResolvingMessage(this.keys)}function Zp(t,e){for(var n=[],r=0,i=e.length;r<i;r++){var o=e[r];n.push(o&&0!=o.length?o.map(Xl).join(" "):"?")}return Error("Cannot resolve all parameters for '"+Xl(t)+"'("+n.join(", ")+"). Make sure that all the parameters are decorated with Inject or have valid type annotations and that '"+Xl(t)+"' is decorated with Injectable.")}
847
+ function e(t){for(var e=[],n=0;n<t.length;++n){if(e.indexOf(t[n])>-1)return e.push(t[n]),e;e.push(t[n])}return e}(t.slice().reverse()).map(function(t){return tp(t.token)}).join(" -> ")+")":""}function eh(t,e,n,r){var i=[e],o=n(i),s=r?function a(t,e){var n=t+" caused by: "+(e instanceof Error?e.message:e),r=Error(n);return r[Gp]=e,r}(o,r):Error(o);return s.addKey=nh,s.keys=i,s.injectors=[t],s.constructResolvingMessage=n,s[Gp]=r,s}function nh(t,e){this.injectors.push(t),this.keys.push(e),this.message=this.constructResolvingMessage(this.keys)}function rh(t,e){for(var n=[],r=0,i=e.length;r<i;r++){var o=e[r];n.push(o&&0!=o.length?o.map(tp).join(" "):"?")}return Error("Cannot resolve all parameters for '"+tp(t)+"'("+n.join(", ")+"). Make sure that all the parameters are decorated with Inject or have valid type annotations and that '"+tp(t)+"' is decorated with Injectable.")}
849
848
  /**
850
849
  * @license
851
850
  * Copyright Google Inc. All Rights Reserved.
@@ -853,28 +852,28 @@ function e(t){for(var e=[],n=0;n<t.length;++n){if(e.indexOf(t[n])>-1)return e.pu
853
852
  * Use of this source code is governed by an MIT-style license that can be
854
853
  * found in the LICENSE file at https://angular.io/license
855
854
  */
856
- var $p=function(){function t(t,e){if(this.token=t,this.id=e,!t)throw new Error("Token must be defined!");this.displayName=Xl(this.token)}return t.get=function(t){return Jp.get(rp(t))},Object.defineProperty(t,"numberOfKeys",{get:function(){return Jp.numberOfKeys},enumerable:!0,configurable:!0}),t}(),Jp=new(function(){function t(){this._allKeys=new Map}return t.prototype.get=function(t){if(t instanceof $p)return t;if(this._allKeys.has(t))return this._allKeys.get(t);var e=new $p(t,$p.numberOfKeys);return this._allKeys.set(t,e),e},Object.defineProperty(t.prototype,"numberOfKeys",{get:function(){return this._allKeys.size},enumerable:!0,configurable:!0}),t}()),th=new(function(){function t(t){this.reflectionCapabilities=t}return t.prototype.updateCapabilities=function(t){this.reflectionCapabilities=t},t.prototype.factory=function(t){return this.reflectionCapabilities.factory(t)},t.prototype.parameters=function(t){return this.reflectionCapabilities.parameters(t)},t.prototype.annotations=function(t){return this.reflectionCapabilities.annotations(t)},t.prototype.propMetadata=function(t){return this.reflectionCapabilities.propMetadata(t)},t.prototype.hasLifecycleHook=function(t,e){return this.reflectionCapabilities.hasLifecycleHook(t,e)},t.prototype.getter=function(t){return this.reflectionCapabilities.getter(t)},t.prototype.setter=function(t){return this.reflectionCapabilities.setter(t)},t.prototype.method=function(t){return this.reflectionCapabilities.method(t)},t.prototype.importUri=function(t){return this.reflectionCapabilities.importUri(t)},t.prototype.resourceUri=function(t){return this.reflectionCapabilities.resourceUri(t)},t.prototype.resolveIdentifier=function(t,e,n,r){return this.reflectionCapabilities.resolveIdentifier(t,e,n,r)},t.prototype.resolveEnum=function(t,e){return this.reflectionCapabilities.resolveEnum(t,e)},t}())(new Jl),eh=function(){function t(t,e,n){this.key=t,this.optional=e,this.visibility=n}return t.fromKey=function(e){return new t(e,!1,null)},t}(),nh=[],rh=function rh(t,e,n){this.key=t,this.resolvedFactories=e,this.multiProvider=n,this.resolvedFactory=this.resolvedFactories[0]},ih=function ih(t,e){this.factory=t,this.dependencies=e};function oh(t){return new rh($p.get(t.provide),[function e(t){var e,n;if(t.useClass){var r=rp(t.useClass);e=th.factory(r),n=sh(r)}else t.useExisting?(e=function(t){return t},n=[eh.fromKey($p.get(t.useExisting))]):t.useFactory?(e=t.useFactory,n=function i(t,e){if(e){var n=e.map(function(t){return[t]});return e.map(function(e){return ah(t,e,n)})}return sh(t)}(t.useFactory,t.deps)):(e=function(){return t.useValue},n=nh);return new ih(e,n)}(t)],t.multi||!1)}function sh(t){var e=th.parameters(t);if(!e)return[];if(e.some(function(t){return null==t}))throw Zp(t,e);return e.map(function(n){return ah(t,n,e)})}function ah(t,e,n){var r=null,i=!1;if(!Array.isArray(e))return uh(e instanceof ip?e.token:e,i,null);for(var o=null,s=0;s<e.length;++s){var a=e[s];a instanceof Vl?r=a:a instanceof ip?r=a.token:a instanceof op?i=!0:a instanceof sp||a instanceof ap?o=a:a instanceof Ol&&(r=a)}if(null!=(r=rp(r)))return uh(r,i,o);throw Zp(t,n)}function uh(t,e,n){return new eh($p.get(t),e,n)}
855
+ var ih=function(){function t(t,e){if(this.token=t,this.id=e,!t)throw new Error("Token must be defined!");this.displayName=tp(this.token)}return t.get=function(t){return oh.get(up(t))},Object.defineProperty(t,"numberOfKeys",{get:function(){return oh.numberOfKeys},enumerable:!0,configurable:!0}),t}(),oh=new(function(){function t(){this._allKeys=new Map}return t.prototype.get=function(t){if(t instanceof ih)return t;if(this._allKeys.has(t))return this._allKeys.get(t);var e=new ih(t,ih.numberOfKeys);return this._allKeys.set(t,e),e},Object.defineProperty(t.prototype,"numberOfKeys",{get:function(){return this._allKeys.size},enumerable:!0,configurable:!0}),t}()),sh=new(function(){function t(t){this.reflectionCapabilities=t}return t.prototype.updateCapabilities=function(t){this.reflectionCapabilities=t},t.prototype.factory=function(t){return this.reflectionCapabilities.factory(t)},t.prototype.parameters=function(t){return this.reflectionCapabilities.parameters(t)},t.prototype.annotations=function(t){return this.reflectionCapabilities.annotations(t)},t.prototype.propMetadata=function(t){return this.reflectionCapabilities.propMetadata(t)},t.prototype.hasLifecycleHook=function(t,e){return this.reflectionCapabilities.hasLifecycleHook(t,e)},t.prototype.getter=function(t){return this.reflectionCapabilities.getter(t)},t.prototype.setter=function(t){return this.reflectionCapabilities.setter(t)},t.prototype.method=function(t){return this.reflectionCapabilities.method(t)},t.prototype.importUri=function(t){return this.reflectionCapabilities.importUri(t)},t.prototype.resourceUri=function(t){return this.reflectionCapabilities.resourceUri(t)},t.prototype.resolveIdentifier=function(t,e,n,r){return this.reflectionCapabilities.resolveIdentifier(t,e,n,r)},t.prototype.resolveEnum=function(t,e){return this.reflectionCapabilities.resolveEnum(t,e)},t}())(new ip),ah=function(){function t(t,e,n){this.key=t,this.optional=e,this.visibility=n}return t.fromKey=function(e){return new t(e,!1,null)},t}(),uh=[],ch=function ch(t,e,n){this.key=t,this.resolvedFactories=e,this.multiProvider=n,this.resolvedFactory=this.resolvedFactories[0]},lh=function lh(t,e){this.factory=t,this.dependencies=e};function ph(t){return new ch(ih.get(t.provide),[function e(t){var e,n;if(t.useClass){var r=up(t.useClass);e=sh.factory(r),n=hh(r)}else t.useExisting?(e=function(t){return t},n=[ah.fromKey(ih.get(t.useExisting))]):t.useFactory?(e=t.useFactory,n=function i(t,e){if(e){var n=e.map(function(t){return[t]});return e.map(function(e){return fh(t,e,n)})}return hh(t)}(t.useFactory,t.deps)):(e=function(){return t.useValue},n=uh);return new lh(e,n)}(t)],t.multi||!1)}function hh(t){var e=sh.parameters(t);if(!e)return[];if(e.some(function(t){return null==t}))throw rh(t,e);return e.map(function(n){return fh(t,n,e)})}function fh(t,e,n){var r=null,i=!1;if(!Array.isArray(e))return dh(e instanceof cp?e.token:e,i,null);for(var o=null,s=0;s<e.length;++s){var a=e[s];a instanceof Ul?r=a:a instanceof cp?r=a.token:a instanceof lp?i=!0:a instanceof pp||a instanceof hp?o=a:a instanceof jl&&(r=a)}if(null!=(r=up(r)))return dh(r,i,o);throw rh(t,n)}function dh(t,e,n){return new ah(ih.get(t),e,n)}
857
856
  /**
858
857
  * @license
859
858
  * Copyright Google Inc. All Rights Reserved.
860
859
  *
861
860
  * Use of this source code is governed by an MIT-style license that can be
862
861
  * found in the LICENSE file at https://angular.io/license
863
- */var ch=new Object,lh=function(){function t(){}return t.resolve=function(t){return function e(t){var e=function n(t,e){for(var n=0;n<t.length;n++){var r=t[n],i=e.get(r.key.id);if(i){if(r.multiProvider!==i.multiProvider)throw Error("Cannot mix multi providers and regular providers, got: "+i+" "+r);if(r.multiProvider)for(var o=0;o<r.resolvedFactories.length;o++)i.resolvedFactories.push(r.resolvedFactories[o]);else e.set(r.key.id,r)}else{var s;s=r.multiProvider?new rh(r.key,r.resolvedFactories.slice(),r.multiProvider):r,e.set(r.key.id,s)}}return e}(function t(e,n){return e.forEach(function(e){if(e instanceof Vl)n.push({provide:e,useClass:e});else if(e&&"object"==typeof e&&void 0!==e.provide)n.push(e);else{if(!(e instanceof Array))throw function r(t){return Error("Invalid provider - only instances of Provider and Type are allowed, got: "+t)}(e);t(e,n)}}),n}(t,[]).map(oh),new Map);return Array.from(e.values())}(t)},t.resolveAndCreate=function(e,n){var r=t.resolve(e);return t.fromResolvedProviders(r,n)},t.fromResolvedProviders=function(t,e){return new ph(t,e)},t}(),ph=function(){function t(t,e){this._constructionCounter=0,this._providers=t,this.parent=e||null;var n=t.length;this.keyIds=new Array(n),this.objs=new Array(n);for(var r=0;r<n;r++)this.keyIds[r]=t[r].key.id,this.objs[r]=ch}return t.prototype.get=function(t,e){return void 0===e&&(e=lp),this._getByKey($p.get(t),null,e)},t.prototype.resolveAndCreateChild=function(t){var e=lh.resolve(t);return this.createChildFromResolved(e)},t.prototype.createChildFromResolved=function(e){var n=new t(e);return n.parent=this,n},t.prototype.resolveAndInstantiate=function(t){return this.instantiateResolved(lh.resolve([t])[0])},t.prototype.instantiateResolved=function(t){return this._instantiateProvider(t)},t.prototype.getProviderAtIndex=function(t){if(t<0||t>=this._providers.length)throw function e(t){return Error("Index "+t+" is out-of-bounds.")}(t);return this._providers[t]},t.prototype._new=function(t){if(this._constructionCounter++>this._getMaxNumberOfObjects())throw function e(t,n){return Xp(t,n,function(t){return"Cannot instantiate cyclic dependency!"+Gp(t)})}(this,t.key);return this._instantiateProvider(t)},t.prototype._getMaxNumberOfObjects=function(){return this.objs.length},t.prototype._instantiateProvider=function(t){if(t.multiProvider){for(var e=new Array(t.resolvedFactories.length),n=0;n<t.resolvedFactories.length;++n)e[n]=this._instantiate(t,t.resolvedFactories[n]);return e}return this._instantiate(t,t.resolvedFactories[0])},t.prototype._instantiate=function(t,e){var n,r,i=this,o=e.factory;try{n=e.dependencies.map(function(t){return i._getByReflectiveDependency(t)})}catch(e){throw e.addKey&&e.addKey(this,t.key),e}try{r=o.apply(void 0,l(n))}catch(e){throw function s(t,e,n,r){return Xp(t,r,function(t){var n=Xl(t[0].token);return e.message+": Error during instantiation of "+n+"!"+Gp(t)+"."},e)}(this,e,0,t.key)}return r},t.prototype._getByReflectiveDependency=function(t){return this._getByKey(t.key,t.visibility,t.optional?null:lp)},t.prototype._getByKey=function(e,n,r){return e===t.INJECTOR_KEY?this:n instanceof sp?this._getByKeySelf(e,r):this._getByKeyDefault(e,r,n)},t.prototype._getObjByKeyId=function(t){for(var e=0;e<this.keyIds.length;e++)if(this.keyIds[e]===t)return this.objs[e]===ch&&(this.objs[e]=this._new(this._providers[e])),this.objs[e];return ch},t.prototype._throwOrNull=function(t,e){if(e!==lp)return e;throw function n(t,e){return Xp(t,e,function(t){return"No provider for "+Xl(t[0].token)+"!"+Gp(t)})}(this,t)},t.prototype._getByKeySelf=function(t,e){var n=this._getObjByKeyId(t.id);return n!==ch?n:this._throwOrNull(t,e)},t.prototype._getByKeyDefault=function(e,n,r){var i;for(i=r instanceof ap?this.parent:this;i instanceof t;){var o=i,s=o._getObjByKeyId(e.id);if(s!==ch)return s;i=o.parent}return null!==i?i.get(e.token,n):this._throwOrNull(e,n)},Object.defineProperty(t.prototype,"displayName",{get:function(){return"ReflectiveInjector(providers: ["+function t(e,n){for(var r=new Array(e._providers.length),i=0;i<e._providers.length;++i)r[i]=n(e.getProviderAtIndex(i));return r}
862
+ */var vh=new Object,yh=function(){function t(){}return t.resolve=function(t){return function e(t){var e=function n(t,e){for(var n=0;n<t.length;n++){var r=t[n],i=e.get(r.key.id);if(i){if(r.multiProvider!==i.multiProvider)throw Error("Cannot mix multi providers and regular providers, got: "+i+" "+r);if(r.multiProvider)for(var o=0;o<r.resolvedFactories.length;o++)i.resolvedFactories.push(r.resolvedFactories[o]);else e.set(r.key.id,r)}else{var s;s=r.multiProvider?new ch(r.key,r.resolvedFactories.slice(),r.multiProvider):r,e.set(r.key.id,s)}}return e}(function t(e,n){return e.forEach(function(e){if(e instanceof Ul)n.push({provide:e,useClass:e});else if(e&&"object"==typeof e&&void 0!==e.provide)n.push(e);else{if(!(e instanceof Array))throw function r(t){return Error("Invalid provider - only instances of Provider and Type are allowed, got: "+t)}(e);t(e,n)}}),n}(t,[]).map(ph),new Map);return Array.from(e.values())}(t)},t.resolveAndCreate=function(e,n){var r=t.resolve(e);return t.fromResolvedProviders(r,n)},t.fromResolvedProviders=function(t,e){return new mh(t,e)},t}(),mh=function(){function t(t,e){this._constructionCounter=0,this._providers=t,this.parent=e||null;var n=t.length;this.keyIds=new Array(n),this.objs=new Array(n);for(var r=0;r<n;r++)this.keyIds[r]=t[r].key.id,this.objs[r]=vh}return t.prototype.get=function(t,e){return void 0===e&&(e=vp),this._getByKey(ih.get(t),null,e)},t.prototype.resolveAndCreateChild=function(t){var e=yh.resolve(t);return this.createChildFromResolved(e)},t.prototype.createChildFromResolved=function(e){var n=new t(e);return n.parent=this,n},t.prototype.resolveAndInstantiate=function(t){return this.instantiateResolved(yh.resolve([t])[0])},t.prototype.instantiateResolved=function(t){return this._instantiateProvider(t)},t.prototype.getProviderAtIndex=function(t){if(t<0||t>=this._providers.length)throw function e(t){return Error("Index "+t+" is out-of-bounds.")}(t);return this._providers[t]},t.prototype._new=function(t){if(this._constructionCounter++>this._getMaxNumberOfObjects())throw function e(t,n){return eh(t,n,function(t){return"Cannot instantiate cyclic dependency!"+th(t)})}(this,t.key);return this._instantiateProvider(t)},t.prototype._getMaxNumberOfObjects=function(){return this.objs.length},t.prototype._instantiateProvider=function(t){if(t.multiProvider){for(var e=new Array(t.resolvedFactories.length),n=0;n<t.resolvedFactories.length;++n)e[n]=this._instantiate(t,t.resolvedFactories[n]);return e}return this._instantiate(t,t.resolvedFactories[0])},t.prototype._instantiate=function(t,e){var n,r,i=this,o=e.factory;try{n=e.dependencies.map(function(t){return i._getByReflectiveDependency(t)})}catch(e){throw e.addKey&&e.addKey(this,t.key),e}try{r=o.apply(void 0,f(n))}catch(e){throw function s(t,e,n,r){return eh(t,r,function(t){var n=tp(t[0].token);return e.message+": Error during instantiation of "+n+"!"+th(t)+"."},e)}(this,e,0,t.key)}return r},t.prototype._getByReflectiveDependency=function(t){return this._getByKey(t.key,t.visibility,t.optional?null:vp)},t.prototype._getByKey=function(e,n,r){return e===t.INJECTOR_KEY?this:n instanceof pp?this._getByKeySelf(e,r):this._getByKeyDefault(e,r,n)},t.prototype._getObjByKeyId=function(t){for(var e=0;e<this.keyIds.length;e++)if(this.keyIds[e]===t)return this.objs[e]===vh&&(this.objs[e]=this._new(this._providers[e])),this.objs[e];return vh},t.prototype._throwOrNull=function(t,e){if(e!==vp)return e;throw function n(t,e){return eh(t,e,function(t){return"No provider for "+tp(t[0].token)+"!"+th(t)})}(this,t)},t.prototype._getByKeySelf=function(t,e){var n=this._getObjByKeyId(t.id);return n!==vh?n:this._throwOrNull(t,e)},t.prototype._getByKeyDefault=function(e,n,r){var i;for(i=r instanceof hp?this.parent:this;i instanceof t;){var o=i,s=o._getObjByKeyId(e.id);if(s!==vh)return s;i=o.parent}return null!==i?i.get(e.token,n):this._throwOrNull(e,n)},Object.defineProperty(t.prototype,"displayName",{get:function(){return"ReflectiveInjector(providers: ["+function t(e,n){for(var r=new Array(e._providers.length),i=0;i<e._providers.length;++i)r[i]=n(e.getProviderAtIndex(i));return r}
864
863
  /**
865
864
  * @license
866
865
  * Copyright Google Inc. All Rights Reserved.
867
866
  *
868
867
  * Use of this source code is governed by an MIT-style license that can be
869
868
  * found in the LICENSE file at https://angular.io/license
870
- */(this,function(t){return' "'+t.key.displayName+'" '}).join(", ")+"])"},enumerable:!0,configurable:!0}),t.prototype.toString=function(){return this.displayName},t.INJECTOR_KEY=$p.get(fp),t}(),hh=new Ol("The presence of this token marks an injector as being the root injector."),fh={},dh={},vh=[],yh=void 0;function mh(){return void 0===yh&&(yh=new hp),yh}var gh=function(){function t(t,e,n){var r=this;this.parent=n,this.records=new Map,this.injectorDefTypes=new Set,this.onDestroy=new Set,this.destroyed=!1,wh([t],function(t){return r.processInjectorType(t,new Set)}),e&&wh(e,function(t){return r.processProvider(t)}),this.records.set(pp,bh(void 0,this)),this.isRootInjector=this.records.has(hh),this.injectorDefTypes.forEach(function(t){return r.get(t)})}return t.prototype.destroy=function(){this.assertNotDestroyed(),this.destroyed=!0;try{this.onDestroy.forEach(function(t){return t.ngOnDestroy()})}finally{this.records.clear(),this.onDestroy.clear(),this.injectorDefTypes.clear()}},t.prototype.get=function(t,e,n){void 0===e&&(e=lp),void 0===n&&(n=0),this.assertNotDestroyed();var r=Np(this);try{if(!(4&n)){var i=this.records.get(t);if(void 0===i){var o=function s(t){return"function"==typeof t||"object"==typeof t&&t instanceof Ol}
869
+ */(this,function(t){return' "'+t.key.displayName+'" '}).join(", ")+"])"},enumerable:!0,configurable:!0}),t.prototype.toString=function(){return this.displayName},t.INJECTOR_KEY=ih.get(gp),t}(),gh=new jl("The presence of this token marks an injector as being the root injector."),_h={},bh={},wh=[],xh=void 0;function Eh(){return void 0===xh&&(xh=new mp),xh}var Sh=function(){function t(t,e,n){var r=this;this.parent=n,this.records=new Map,this.injectorDefTypes=new Set,this.onDestroy=new Set,this.destroyed=!1,Ph([t],function(t){return r.processInjectorType(t,new Set)}),e&&Ph(e,function(t){return r.processProvider(t)}),this.records.set(yp,Th(void 0,this)),this.isRootInjector=this.records.has(gh),this.injectorDefTypes.forEach(function(t){return r.get(t)})}return t.prototype.destroy=function(){this.assertNotDestroyed(),this.destroyed=!0;try{this.onDestroy.forEach(function(t){return t.ngOnDestroy()})}finally{this.records.clear(),this.onDestroy.clear(),this.injectorDefTypes.clear()}},t.prototype.get=function(t,e,n){void 0===e&&(e=vp),void 0===n&&(n=0),this.assertNotDestroyed();var r=Rp(this);try{if(!(4&n)){var i=this.records.get(t);if(void 0===i){var o=function s(t){return"function"==typeof t||"object"==typeof t&&t instanceof jl}
871
870
  /**
872
871
  * @license
873
872
  * Copyright Google Inc. All Rights Reserved.
874
873
  *
875
874
  * Use of this source code is governed by an MIT-style license that can be
876
875
  * found in the LICENSE file at https://angular.io/license
877
- */(t)&&t.ngInjectableDef||void 0;void 0!==o&&this.injectableDefInScope(o)&&(i=_h(t),this.records.set(t,i))}if(void 0!==i)return this.hydrate(t,i)}return 2&n&&mh(),this.parent.get(t,e)}finally{Np(r)}},t.prototype.assertNotDestroyed=function(){if(this.destroyed)throw new Error("Injector has already been destroyed.")},t.prototype.processInjectorType=function(t,e){var n=this,r=(t=rp(t)).ngInjectorDef,i=null==r&&t.ngModule||void 0,o=void 0===i?t:i,s=void 0!==i&&t.providers||vh;if(void 0!==i&&(r=i.ngInjectorDef),null!=r){if(e.has(o))throw new Error("Circular dependency: type "+Xl(o)+" ends up importing itself.");if(this.injectorDefTypes.add(o),this.records.set(o,bh(r.factory)),null!=r.imports){e.add(o);try{wh(r.imports,function(t){return n.processInjectorType(t,e)})}finally{e.delete(o)}}null!=r.providers&&wh(r.providers,function(t){return n.processProvider(t)}),wh(s,function(t){return n.processProvider(t)})}},t.prototype.processProvider=function(t){var e=xh(t=rp(t))?t:rp(t.provide),n=function r(t){var e=rp(t),n=fh,r=void 0;if(xh(t))return _h(t);if(e=rp(t.provide),function i(t){return _p in t}(t))n=t.useValue;else if(function o(t){return!!t.useExisting}(t))r=function(){return kp(t.useExisting)};else if(function s(t){return!!t.useFactory}(t))r=function(){return t.useFactory.apply(t,l(Op(t.deps||[])))};else{var a=t.useClass||e;if(!function u(t){return!!t.deps}(t))return _h(a);r=function(){return new(a.bind.apply(a,l([void 0],Op(t.deps))))}}return bh(r,n)}(t);if(xh(t)||!0!==t.multi){var i=this.records.get(e);if(i&&void 0!==i.multi)throw new Error("Mixed multi-provider for "+Xl(e))}else{var o=this.records.get(e);if(o){if(void 0===o.multi)throw new Error("Mixed multi-provider for "+e+".")}else(o=bh(void 0,fh,!0)).factory=function(){return Op(o.multi)},this.records.set(e,o);e=t,o.multi.push(t)}this.records.set(e,n)},t.prototype.hydrate=function(t,e){if(e.value===dh)throw new Error("Circular dep for "+Xl(t));return e.value===fh&&(e.value=dh,e.value=e.factory()),"object"==typeof e.value&&e.value&&function n(t){return"object"==typeof t&&null!=t&&t.ngOnDestroy&&"function"==typeof t.ngOnDestroy}(e.value)&&this.onDestroy.add(e.value),e.value},t.prototype.injectableDefInScope=function(t){return!!t.providedIn&&("string"==typeof t.providedIn?"any"===t.providedIn||"root"===t.providedIn&&this.isRootInjector:this.injectorDefTypes.has(t.providedIn))},t}();function _h(t){var e=t.ngInjectableDef;if(void 0===e){if(t instanceof Ol)throw new Error("Token "+Xl(t)+" is missing an ngInjectableDef definition.");return bh(function(){return new t})}return bh(e.factory)}function bh(t,e,n){return void 0===e&&(e=fh),void 0===n&&(n=!1),{factory:t,value:e,multi:n?[]:void 0}}function wh(t,e){t.forEach(function(t){return Array.isArray(t)?wh(t,e):e(t)})}function xh(t){return"function"==typeof t}function Eh(t){return"function"==typeof t}var Sh=!1,Ch={Promise:void 0,set useDeprecatedSynchronousErrorHandling(t){if(t){var e=new Error;console.warn("DEPRECATED! RxJS was set to use deprecated synchronous error handling behavior by code at: \n"+e.stack)}else Sh&&console.log("RxJS: Back to a better error behavior. Thank you. <3");Sh=t},get useDeprecatedSynchronousErrorHandling(){return Sh}};function Th(t){setTimeout(function(){throw t})}var Ph={closed:!0,next:function(t){},error:function(t){if(Ch.useDeprecatedSynchronousErrorHandling)throw t;Th(t)},complete:function(){}},Ah=Array.isArray||function(t){return t&&"number"==typeof t.length};function Nh(t){return null!=t&&"object"==typeof t}var kh,Oh={e:{}};function Mh(){try{return kh.apply(this,arguments)}catch(t){return Oh.e=t,Oh}}function Ih(t){return kh=t,Mh}var Rh=function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Dh=function(t){function e(n){var r=t.call(this,n?n.length+" errors occurred during unsubscription:\n "+n.map(function(t,e){return e+1+") "+t.toString()}).join("\n "):"")||this;return r.errors=n,r.name="UnsubscriptionError",Object.setPrototypeOf(r,e.prototype),r}return Rh(e,t),e}(Error),jh=function(){function t(t){this.closed=!1,this._parent=null,this._parents=null,this._subscriptions=null,t&&(this._unsubscribe=t)}var e;return t.prototype.unsubscribe=function(){var t,e=!1;if(!this.closed){var n=this._parent,r=this._parents,i=this._unsubscribe,o=this._subscriptions;this.closed=!0,this._parent=null,this._parents=null,this._subscriptions=null;for(var s=-1,a=r?r.length:0;n;)n.remove(this),n=++s<a&&r[s]||null;if(Eh(i)&&Ih(i).call(this)===Oh&&(e=!0,t=t||(Oh.e instanceof Dh?Lh(Oh.e.errors):[Oh.e])),Ah(o))for(s=-1,a=o.length;++s<a;){var u=o[s];if(Nh(u)&&Ih(u.unsubscribe).call(u)===Oh){e=!0,t=t||[];var c=Oh.e;c instanceof Dh?t=t.concat(Lh(c.errors)):t.push(c)}}if(e)throw new Dh(t)}},t.prototype.add=function(e){if(!e||e===t.EMPTY)return t.EMPTY;if(e===this)return this;var n=e;switch(typeof e){case"function":n=new t(e);case"object":if(n.closed||"function"!=typeof n.unsubscribe)return n;if(this.closed)return n.unsubscribe(),n;if("function"!=typeof n._addParent){var r=n;(n=new t)._subscriptions=[r]}break;default:throw new Error("unrecognized teardown "+e+" added to Subscription.")}return(this._subscriptions||(this._subscriptions=[])).push(n),n._addParent(this),n},t.prototype.remove=function(t){var e=this._subscriptions;if(e){var n=e.indexOf(t);-1!==n&&e.splice(n,1)}},t.prototype._addParent=function(t){var e=this._parent,n=this._parents;e&&e!==t?n?-1===n.indexOf(t)&&n.push(t):this._parents=[t]:this._parent=t},t.EMPTY=((e=new t).closed=!0,e),t}();function Lh(t){return t.reduce(function(t,e){return t.concat(e instanceof Dh?e.errors:e)},[])}var Fh="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("rxSubscriber"):"@@rxSubscriber",Vh=function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Hh=function(t){function e(e,n,r){var i=t.call(this)||this;switch(i.syncErrorValue=null,i.syncErrorThrown=!1,i.syncErrorThrowable=!1,i.isStopped=!1,arguments.length){case 0:i.destination=Ph;break;case 1:if(!e){i.destination=Ph;break}if("object"==typeof e){if(qh(e)){var o=e[Fh]();i.syncErrorThrowable=o.syncErrorThrowable,i.destination=o,o.add(i)}else i.syncErrorThrowable=!0,i.destination=new Bh(i,e);break}default:i.syncErrorThrowable=!0,i.destination=new Bh(i,e,n,r)}return i}return Vh(e,t),e.prototype[Fh]=function(){return this},e.create=function(t,n,r){var i=new e(t,n,r);return i.syncErrorThrowable=!1,i},e.prototype.next=function(t){this.isStopped||this._next(t)},e.prototype.error=function(t){this.isStopped||(this.isStopped=!0,this._error(t))},e.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},e.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,t.prototype.unsubscribe.call(this))},e.prototype._next=function(t){this.destination.next(t)},e.prototype._error=function(t){this.destination.error(t),this.unsubscribe()},e.prototype._complete=function(){this.destination.complete(),this.unsubscribe()},e.prototype._unsubscribeAndRecycle=function(){var t=this._parent,e=this._parents;return this._parent=null,this._parents=null,this.unsubscribe(),this.closed=!1,this.isStopped=!1,this._parent=t,this._parents=e,this},e}(jh),Bh=function(t){function e(e,n,r,i){var o,s=t.call(this)||this;s._parentSubscriber=e;var a=s;return Eh(n)?o=n:n&&(o=n.next,r=n.error,i=n.complete,n!==Ph&&(Eh((a=Object.create(n)).unsubscribe)&&s.add(a.unsubscribe.bind(a)),a.unsubscribe=s.unsubscribe.bind(s))),s._context=a,s._next=o,s._error=r,s._complete=i,s}return Vh(e,t),e.prototype.next=function(t){if(!this.isStopped&&this._next){var e=this._parentSubscriber;Ch.useDeprecatedSynchronousErrorHandling&&e.syncErrorThrowable?this.__tryOrSetError(e,this._next,t)&&this.unsubscribe():this.__tryOrUnsub(this._next,t)}},e.prototype.error=function(t){if(!this.isStopped){var e=this._parentSubscriber,n=Ch.useDeprecatedSynchronousErrorHandling;if(this._error)n&&e.syncErrorThrowable?(this.__tryOrSetError(e,this._error,t),this.unsubscribe()):(this.__tryOrUnsub(this._error,t),this.unsubscribe());else if(e.syncErrorThrowable)n?(e.syncErrorValue=t,e.syncErrorThrown=!0):Th(t),this.unsubscribe();else{if(this.unsubscribe(),n)throw t;Th(t)}}},e.prototype.complete=function(){var t=this;if(!this.isStopped){var e=this._parentSubscriber;if(this._complete){var n=function(){return t._complete.call(t._context)};Ch.useDeprecatedSynchronousErrorHandling&&e.syncErrorThrowable?(this.__tryOrSetError(e,n),this.unsubscribe()):(this.__tryOrUnsub(n),this.unsubscribe())}else this.unsubscribe()}},e.prototype.__tryOrUnsub=function(t,e){try{t.call(this._context,e)}catch(t){if(this.unsubscribe(),Ch.useDeprecatedSynchronousErrorHandling)throw t;Th(t)}},e.prototype.__tryOrSetError=function(t,e,n){if(!Ch.useDeprecatedSynchronousErrorHandling)throw new Error("bad call");try{e.call(this._context,n)}catch(e){return Ch.useDeprecatedSynchronousErrorHandling?(t.syncErrorValue=e,t.syncErrorThrown=!0,!0):(Th(e),!0)}return!1},e.prototype._unsubscribe=function(){var t=this._parentSubscriber;this._context=null,this._parentSubscriber=null,t.unsubscribe()},e}(Hh);function qh(t){return t instanceof Hh||"syncErrorThrowable"in t&&t[Fh]}var Kh="function"==typeof Symbol&&Symbol.observable||"@@observable";function Uh(){}var zh=function(){function t(t){this._isScalar=!1,t&&(this._subscribe=t)}return t.prototype.lift=function(e){var n=new t;return n.source=this,n.operator=e,n},t.prototype.subscribe=function(t,e,n){var r=this.operator,i=function o(t,e,n){if(t){if(t instanceof Hh)return t;if(t[Fh])return t[Fh]()}return t||e||n?new Hh(t,e,n):new Hh(Ph)}(t,e,n);if(r?r.call(i,this.source):i.add(this.source||!i.syncErrorThrowable?this._subscribe(i):this._trySubscribe(i)),Ch.useDeprecatedSynchronousErrorHandling&&i.syncErrorThrowable&&(i.syncErrorThrowable=!1,i.syncErrorThrown))throw i.syncErrorValue;return i},t.prototype._trySubscribe=function(t){try{return this._subscribe(t)}catch(e){Ch.useDeprecatedSynchronousErrorHandling&&(t.syncErrorThrown=!0,t.syncErrorValue=e),t.error(e)}},t.prototype.forEach=function(t,e){var n=this;return new(e=Wh(e))(function(e,r){var i;i=n.subscribe(function(e){try{t(e)}catch(t){r(t),i&&i.unsubscribe()}},r,e)})},t.prototype._subscribe=function(t){var e=this.source;return e&&e.subscribe(t)},t.prototype[Kh]=function(){return this},t.prototype.pipe=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return 0===t.length?this:function n(t){return t?1===t.length?t[0]:function e(n){return t.reduce(function(t,e){return e(t)},n)}:Uh}(t)(this)},t.prototype.toPromise=function(t){var e=this;return new(t=Wh(t))(function(t,n){var r;e.subscribe(function(t){return r=t},function(t){return n(t)},function(){return t(r)})})},t.create=function(e){return new t(e)},t}();function Wh(t){if(t||(t=Ch.Promise||Promise),!t)throw new Error("no Promise impl found");return t}var Qh=function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Gh=function(t){function e(){var n=t.call(this,"object unsubscribed")||this;return n.name="ObjectUnsubscribedError",Object.setPrototypeOf(n,e.prototype),n}return Qh(e,t),e}(Error),Xh=function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Yh=function(t){function e(e,n){var r=t.call(this)||this;return r.subject=e,r.subscriber=n,r.closed=!1,r}return Xh(e,t),e.prototype.unsubscribe=function(){if(!this.closed){this.closed=!0;var t=this.subject,e=t.observers;if(this.subject=null,e&&0!==e.length&&!t.isStopped&&!t.closed){var n=e.indexOf(this.subscriber);-1!==n&&e.splice(n,1)}}},e}(jh),Zh=function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),$h=function(t){function e(e){var n=t.call(this,e)||this;return n.destination=e,n}return Zh(e,t),e}(Hh),Jh=function(t){function e(){var e=t.call(this)||this;return e.observers=[],e.closed=!1,e.isStopped=!1,e.hasError=!1,e.thrownError=null,e}return Zh(e,t),e.prototype[Fh]=function(){return new $h(this)},e.prototype.lift=function(t){var e=new tf(this,this);return e.operator=t,e},e.prototype.next=function(t){if(this.closed)throw new Gh;if(!this.isStopped)for(var e=this.observers,n=e.length,r=e.slice(),i=0;i<n;i++)r[i].next(t)},e.prototype.error=function(t){if(this.closed)throw new Gh;this.hasError=!0,this.thrownError=t,this.isStopped=!0;for(var e=this.observers,n=e.length,r=e.slice(),i=0;i<n;i++)r[i].error(t);this.observers.length=0},e.prototype.complete=function(){if(this.closed)throw new Gh;this.isStopped=!0;for(var t=this.observers,e=t.length,n=t.slice(),r=0;r<e;r++)n[r].complete();this.observers.length=0},e.prototype.unsubscribe=function(){this.isStopped=!0,this.closed=!0,this.observers=null},e.prototype._trySubscribe=function(e){if(this.closed)throw new Gh;return t.prototype._trySubscribe.call(this,e)},e.prototype._subscribe=function(t){if(this.closed)throw new Gh;return this.hasError?(t.error(this.thrownError),jh.EMPTY):this.isStopped?(t.complete(),jh.EMPTY):(this.observers.push(t),new Yh(this,t))},e.prototype.asObservable=function(){var t=new zh;return t.source=this,t},e.create=function(t,e){return new tf(t,e)},e}(zh),tf=function(t){function e(e,n){var r=t.call(this)||this;return r.destination=e,r.source=n,r}return Zh(e,t),e.prototype.next=function(t){var e=this.destination;e&&e.next&&e.next(t)},e.prototype.error=function(t){var e=this.destination;e&&e.error&&this.destination.error(t)},e.prototype.complete=function(){var t=this.destination;t&&t.complete&&this.destination.complete()},e.prototype._subscribe=function(t){return this.source?this.source.subscribe(t):jh.EMPTY},e}(Jh),ef=function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();function nf(){return function t(e){return e.lift(new rf(e))}}var rf=function(){function t(t){this.connectable=t}return t.prototype.call=function(t,e){var n=this.connectable;n._refCount++;var r=new of(t,n),i=e.subscribe(r);return r.closed||(r.connection=n.connect()),i},t}(),of=function(t){function e(e,n){var r=t.call(this,e)||this;return r.connectable=n,r}return ef(e,t),e.prototype._unsubscribe=function(){var t=this.connectable;if(t){this.connectable=null;var e=t._refCount;if(e<=0)this.connection=null;else if(t._refCount=e-1,e>1)this.connection=null;else{var n=this.connection,r=t._connection;this.connection=null,!r||n&&r!==n||r.unsubscribe()}}else this.connection=null},e}(Hh),sf=function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),af=function(t){function e(e,n){var r=t.call(this)||this;return r.source=e,r.subjectFactory=n,r._refCount=0,r._isComplete=!1,r}return sf(e,t),e.prototype._subscribe=function(t){return this.getSubject().subscribe(t)},e.prototype.getSubject=function(){var t=this._subject;return t&&!t.isStopped||(this._subject=this.subjectFactory()),this._subject},e.prototype.connect=function(){var t=this._connection;return t||(this._isComplete=!1,(t=this._connection=new jh).add(this.source.subscribe(new cf(this.getSubject(),this))),t.closed?(this._connection=null,t=jh.EMPTY):this._connection=t),t},e.prototype.refCount=function(){return nf()(this)},e}(zh).prototype,uf={operator:{value:null},_refCount:{value:0,writable:!0},_subject:{value:null,writable:!0},_connection:{value:null,writable:!0},_subscribe:{value:af._subscribe},_isComplete:{value:af._isComplete,writable:!0},getSubject:{value:af.getSubject},connect:{value:af.connect},refCount:{value:af.refCount}},cf=function(t){function e(e,n){var r=t.call(this,e)||this;return r.connectable=n,r}return sf(e,t),e.prototype._error=function(e){this._unsubscribe(),t.prototype._error.call(this,e)},e.prototype._complete=function(){this.connectable._isComplete=!0,this._unsubscribe(),t.prototype._complete.call(this)},e.prototype._unsubscribe=function(){var t=this.connectable;if(t){this.connectable=null;var e=t._connection;t._refCount=0,t._subject=null,t._connection=null,e&&e.unsubscribe()}},e}($h),lf=(function(t){function e(e,n){var r=t.call(this,e)||this;return r.connectable=n,r}sf(e,t),e.prototype._unsubscribe=function(){var t=this.connectable;if(t){this.connectable=null;var e=t._refCount;if(e<=0)this.connection=null;else if(t._refCount=e-1,e>1)this.connection=null;else{var n=this.connection,r=t._connection;this.connection=null,!r||n&&r!==n||r.unsubscribe()}}else this.connection=null}}(Hh),function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}()),pf=(function(t){function e(e,n,r,i,o){var s=t.call(this,e)||this;return s.keySelector=n,s.elementSelector=r,s.durationSelector=i,s.subjectSelector=o,s.groups=null,s.attemptedToUnsubscribe=!1,s.count=0,s}lf(e,t),e.prototype._next=function(t){var e;try{e=this.keySelector(t)}catch(t){return void this.error(t)}this._group(t,e)},e.prototype._group=function(t,e){var n=this.groups;n||(n=this.groups=new Map);var r,i=n.get(e);if(this.elementSelector)try{r=this.elementSelector(t)}catch(t){this.error(t)}else r=t;if(!i){i=this.subjectSelector?this.subjectSelector():new Jh,n.set(e,i);var o=new hf(e,i,this);if(this.destination.next(o),this.durationSelector){var s=void 0;try{s=this.durationSelector(new hf(e,i))}catch(t){return void this.error(t)}this.add(s.subscribe(new pf(e,i,this)))}}i.closed||i.next(r)},e.prototype._error=function(t){var e=this.groups;e&&(e.forEach(function(e,n){e.error(t)}),e.clear()),this.destination.error(t)},e.prototype._complete=function(){var t=this.groups;t&&(t.forEach(function(t,e){t.complete()}),t.clear()),this.destination.complete()},e.prototype.removeGroup=function(t){this.groups.delete(t)},e.prototype.unsubscribe=function(){this.closed||(this.attemptedToUnsubscribe=!0,0===this.count&&t.prototype.unsubscribe.call(this))}}(Hh),function(t){function e(e,n,r){var i=t.call(this,n)||this;return i.key=e,i.group=n,i.parent=r,i}return lf(e,t),e.prototype._next=function(t){this.complete()},e.prototype._unsubscribe=function(){var t=this.parent,e=this.key;this.key=this.parent=null,t&&t.removeGroup(e)},e}(Hh)),hf=function(t){function e(e,n,r){var i=t.call(this)||this;return i.key=e,i.groupSubject=n,i.refCountSubscription=r,i}return lf(e,t),e.prototype._subscribe=function(t){var e=new jh,n=this.refCountSubscription,r=this.groupSubject;return n&&!n.closed&&e.add(new ff(n)),e.add(r.subscribe(t)),e},e}(zh),ff=function(t){function e(e){var n=t.call(this)||this;return n.parent=e,e.count++,n}return lf(e,t),e.prototype.unsubscribe=function(){var e=this.parent;e.closed||this.closed||(t.prototype.unsubscribe.call(this),e.count-=1,0===e.count&&e.attemptedToUnsubscribe&&e.unsubscribe())},e}(jh),df=function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),vf=(function(t){function e(e){var n=t.call(this)||this;return n._value=e,n}df(e,t),Object.defineProperty(e.prototype,"value",{get:function(){return this.getValue()},enumerable:!0,configurable:!0}),e.prototype._subscribe=function(e){var n=t.prototype._subscribe.call(this,e);return n&&!n.closed&&e.next(this._value),n},e.prototype.getValue=function(){if(this.hasError)throw this.thrownError;if(this.closed)throw new Gh;return this._value},e.prototype.next=function(e){t.prototype.next.call(this,this._value=e)}}(Jh),function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}()),yf=function(t){function e(e,n){return t.call(this)||this}return vf(e,t),e.prototype.schedule=function(t,e){return void 0===e&&(e=0),this},e}(jh),mf=function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),gf=function(t){function e(e,n){var r=t.call(this,e,n)||this;return r.scheduler=e,r.work=n,r.pending=!1,r}return mf(e,t),e.prototype.schedule=function(t,e){if(void 0===e&&(e=0),this.closed)return this;this.state=t;var n=this.id,r=this.scheduler;return null!=n&&(this.id=this.recycleAsyncId(r,n,e)),this.pending=!0,this.delay=e,this.id=this.id||this.requestAsyncId(r,this.id,e),this},e.prototype.requestAsyncId=function(t,e,n){return void 0===n&&(n=0),setInterval(t.flush.bind(t,this),n)},e.prototype.recycleAsyncId=function(t,e,n){if(void 0===n&&(n=0),null!==n&&this.delay===n&&!1===this.pending)return e;clearInterval(e)},e.prototype.execute=function(t,e){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;var n=this._execute(t,e);if(n)return n;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))},e.prototype._execute=function(t,e){var n=!1,r=void 0;try{this.work(t)}catch(t){n=!0,r=!!t&&t||new Error(t)}if(n)return this.unsubscribe(),r},e.prototype._unsubscribe=function(){var t=this.id,e=this.scheduler,n=e.actions,r=n.indexOf(this);this.work=null,this.state=null,this.pending=!1,this.scheduler=null,-1!==r&&n.splice(r,1),null!=t&&(this.id=this.recycleAsyncId(e,t,null)),this.delay=null},e}(yf),_f=function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),bf=function(t){function e(e,n){var r=t.call(this,e,n)||this;return r.scheduler=e,r.work=n,r}return _f(e,t),e.prototype.schedule=function(e,n){return void 0===n&&(n=0),n>0?t.prototype.schedule.call(this,e,n):(this.delay=n,this.state=e,this.scheduler.flush(this),this)},e.prototype.execute=function(e,n){return n>0||this.closed?t.prototype.execute.call(this,e,n):this._execute(e,n)},e.prototype.requestAsyncId=function(e,n,r){return void 0===r&&(r=0),null!==r&&r>0||null===r&&this.delay>0?t.prototype.requestAsyncId.call(this,e,n,r):e.flush(this)},e}(gf),wf=function(){function t(e,n){void 0===n&&(n=t.now),this.SchedulerAction=e,this.now=n}return t.prototype.schedule=function(t,e,n){return void 0===e&&(e=0),new this.SchedulerAction(this,t).schedule(n,e)},t.now=Date.now?Date.now:function(){return+new Date},t}(),xf=function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Ef=function(t){function e(n,r){void 0===r&&(r=wf.now);var i=t.call(this,n,function(){return e.delegate&&e.delegate!==i?e.delegate.now():r()})||this;return i.actions=[],i.active=!1,i.scheduled=void 0,i}return xf(e,t),e.prototype.schedule=function(n,r,i){return void 0===r&&(r=0),e.delegate&&e.delegate!==this?e.delegate.schedule(n,r,i):t.prototype.schedule.call(this,n,r,i)},e.prototype.flush=function(t){var e=this.actions;if(this.active)e.push(t);else{var n;this.active=!0;do{if(n=t.execute(t.state,t.delay))break}while(t=e.shift());if(this.active=!1,n){for(;t=e.shift();)t.unsubscribe();throw n}}},e}(wf),Sf=function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Cf=new(function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Sf(e,t),e}(Ef))(bf),Tf=new zh(function(t){return t.complete()});function Pf(t){return t?function e(t){return new zh(function(e){return t.schedule(function(){return e.complete()})})}(t):Tf}function Af(t){return t&&"function"==typeof t.schedule}var Nf=function(t){return function(e){for(var n=0,r=t.length;n<r&&!e.closed;n++)e.next(t[n]);e.closed||e.complete()}};function kf(t,e){return new zh(e?function(n){var r=new jh,i=0;return r.add(e.schedule(function(){i!==t.length?(n.next(t[i++]),n.closed||r.add(this.schedule())):n.complete()})),r}:Nf(t))}function Of(t){t.subscriber.error(t.error)}var Mf=function(){function t(t,e,n){this.kind=t,this.value=e,this.error=n,this.hasValue="N"===t}return t.prototype.observe=function(t){switch(this.kind){case"N":return t.next&&t.next(this.value);case"E":return t.error&&t.error(this.error);case"C":return t.complete&&t.complete()}},t.prototype.do=function(t,e,n){switch(this.kind){case"N":return t&&t(this.value);case"E":return e&&e(this.error);case"C":return n&&n()}},t.prototype.accept=function(t,e,n){return t&&"function"==typeof t.next?this.observe(t):this.do(t,e,n)},t.prototype.toObservable=function(){switch(this.kind){case"N":return function t(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n=t[t.length-1];switch(Af(n)?t.pop():n=void 0,t.length){case 0:return Pf(n);case 1:return n?kf(t,n):function r(t){var e=new zh(function(e){e.next(t),e.complete()});return e._isScalar=!0,e.value=t,e}(t[0]);default:return kf(t,n)}}(this.value);case"E":return function e(t,n){return new zh(n?function(e){return n.schedule(Of,0,{error:t,subscriber:e})}:function(e){return e.error(t)})}(this.error);case"C":return Pf()}throw new Error("unexpected notification kind value")},t.createNext=function(e){return void 0!==e?new t("N",e):t.undefinedValueNotification},t.createError=function(e){return new t("E",void 0,e)},t.createComplete=function(){return t.completeNotification},t.completeNotification=new t("C"),t.undefinedValueNotification=new t("N",void 0),t}(),If=function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Rf=function(t){function e(e,n,r){void 0===r&&(r=0);var i=t.call(this,e)||this;return i.scheduler=n,i.delay=r,i}return If(e,t),e.dispatch=function(t){t.notification.observe(t.destination),this.unsubscribe()},e.prototype.scheduleMessage=function(t){this.add(this.scheduler.schedule(e.dispatch,this.delay,new Df(t,this.destination)))},e.prototype._next=function(t){this.scheduleMessage(Mf.createNext(t))},e.prototype._error=function(t){this.scheduleMessage(Mf.createError(t))},e.prototype._complete=function(){this.scheduleMessage(Mf.createComplete())},e}(Hh),Df=function Df(t,e){this.notification=t,this.destination=e},jf=function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Lf=(function(t){function e(e,n,r){void 0===e&&(e=Number.POSITIVE_INFINITY),void 0===n&&(n=Number.POSITIVE_INFINITY);var i=t.call(this)||this;return i.scheduler=r,i._events=[],i._infiniteTimeWindow=!1,i._bufferSize=e<1?1:e,i._windowTime=n<1?1:n,n===Number.POSITIVE_INFINITY?(i._infiniteTimeWindow=!0,i.next=i.nextInfiniteTimeWindow):i.next=i.nextTimeWindow,i}jf(e,t),e.prototype.nextInfiniteTimeWindow=function(e){var n=this._events;n.push(e),n.length>this._bufferSize&&n.shift(),t.prototype.next.call(this,e)},e.prototype.nextTimeWindow=function(e){this._events.push(new Lf(this._getNow(),e)),this._trimBufferThenGetEvents(),t.prototype.next.call(this,e)},e.prototype._subscribe=function(t){var e,n=this._infiniteTimeWindow,r=n?this._events:this._trimBufferThenGetEvents(),i=this.scheduler,o=r.length;if(this.closed)throw new Gh;if(this.isStopped||this.hasError?e=jh.EMPTY:(this.observers.push(t),e=new Yh(this,t)),i&&t.add(t=new Rf(t,i)),n)for(var s=0;s<o&&!t.closed;s++)t.next(r[s]);else for(s=0;s<o&&!t.closed;s++)t.next(r[s].value);return this.hasError?t.error(this.thrownError):this.isStopped&&t.complete(),e},e.prototype._getNow=function(){return(this.scheduler||Cf).now()},e.prototype._trimBufferThenGetEvents=function(){for(var t=this._getNow(),e=this._bufferSize,n=this._windowTime,r=this._events,i=r.length,o=0;o<i&&!(t-r[o].time<n);)o++;return i>e&&(o=Math.max(o,i-e)),o>0&&r.splice(0,o),r}}(Jh),function Lf(t,e){this.time=t,this.value=e}),Ff=function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Vf=(function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.value=null,e.hasNext=!1,e.hasCompleted=!1,e}Ff(e,t),e.prototype._subscribe=function(e){return this.hasError?(e.error(this.thrownError),jh.EMPTY):this.hasCompleted&&this.hasNext?(e.next(this.value),e.complete(),jh.EMPTY):t.prototype._subscribe.call(this,e)},e.prototype.next=function(t){this.hasCompleted||(this.value=t,this.hasNext=!0)},e.prototype.error=function(e){this.hasCompleted||t.prototype.error.call(this,e)},e.prototype.complete=function(){this.hasCompleted=!0,this.hasNext&&t.prototype.next.call(this,this.value),t.prototype.complete.call(this)}}(Jh),0),Hf={},Bf=function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),qf=function(t){function e(e,n){var r=t.call(this,e,n)||this;return r.scheduler=e,r.work=n,r}return Bf(e,t),e.prototype.requestAsyncId=function(e,n,r){return void 0===r&&(r=0),null!==r&&r>0?t.prototype.requestAsyncId.call(this,e,n,r):(e.actions.push(this),e.scheduled||(e.scheduled=(i=e.flush.bind(e,null),o=Vf++,Hf[o]=i,Promise.resolve().then(function(){return function t(e){var n=Hf[e];n&&n()}(o)}),o)));var i,o},e.prototype.recycleAsyncId=function(e,n,r){if(void 0===r&&(r=0),null!==r&&r>0||null===r&&this.delay>0)return t.prototype.recycleAsyncId.call(this,e,n,r);0===e.actions.length&&(delete Hf[n],e.scheduled=void 0)},e}(gf),Kf=function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Uf=new(function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Kf(e,t),e.prototype.flush=function(t){this.active=!0,this.scheduled=void 0;var e,n=this.actions,r=-1,i=n.length;t=t||n.shift();do{if(e=t.execute(t.state,t.delay))break}while(++r<i&&(t=n.shift()));if(this.active=!1,e){for(;++r<i&&(t=n.shift());)t.unsubscribe();throw e}},e}(Ef))(qf),zf=(new Ef(gf),function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}()),Wf=function(t){function e(e,n){var r=t.call(this,e,n)||this;return r.scheduler=e,r.work=n,r}return zf(e,t),e.prototype.requestAsyncId=function(e,n,r){return void 0===r&&(r=0),null!==r&&r>0?t.prototype.requestAsyncId.call(this,e,n,r):(e.actions.push(this),e.scheduled||(e.scheduled=requestAnimationFrame(function(){return e.flush(null)})))},e.prototype.recycleAsyncId=function(e,n,r){if(void 0===r&&(r=0),null!==r&&r>0||null===r&&this.delay>0)return t.prototype.recycleAsyncId.call(this,e,n,r);0===e.actions.length&&(cancelAnimationFrame(n),e.scheduled=void 0)},e}(gf),Qf=function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Gf=(new(function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Qf(e,t),e.prototype.flush=function(t){this.active=!0,this.scheduled=void 0;var e,n=this.actions,r=-1,i=n.length;t=t||n.shift();do{if(e=t.execute(t.state,t.delay))break}while(++r<i&&(t=n.shift()));if(this.active=!1,e){for(;++r<i&&(t=n.shift());)t.unsubscribe();throw e}},e}(Ef))(Wf),function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}()),Xf=(function(t){function e(e,n){void 0===e&&(e=Xf),void 0===n&&(n=Number.POSITIVE_INFINITY);var r=t.call(this,e,function(){return r.frame})||this;return r.maxFrames=n,r.frame=0,r.index=-1,r}Gf(e,t),e.prototype.flush=function(){for(var t,e,n=this.actions,r=this.maxFrames;(e=n.shift())&&(this.frame=e.delay)<=r&&!(t=e.execute(e.state,e.delay)););if(t){for(;e=n.shift();)e.unsubscribe();throw t}},e.frameTimeFactor=10}(Ef),function(t){function e(e,n,r){void 0===r&&(r=e.index+=1);var i=t.call(this,e,n)||this;return i.scheduler=e,i.work=n,i.index=r,i.active=!0,i.index=e.index=r,i}return Gf(e,t),e.prototype.schedule=function(n,r){if(void 0===r&&(r=0),!this.id)return t.prototype.schedule.call(this,n,r);this.active=!1;var i=new e(this.scheduler,this.work);return this.add(i),i.schedule(n,r)},e.prototype.requestAsyncId=function(t,n,r){void 0===r&&(r=0),this.delay=t.frame+r;var i=t.actions;return i.push(this),i.sort(e.sortActions),!0},e.prototype.recycleAsyncId=function(t,e,n){void 0===n&&(n=0)},e.prototype._execute=function(e,n){if(!0===this.active)return t.prototype._execute.call(this,e,n)},e.sortActions=function(t,e){return t.delay===e.delay?t.index===e.index?0:t.index>e.index?1:-1:t.delay>e.delay?1:-1},e}(gf));function Yf(t){return t}var Zf,$f=function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Jf=(Zf=Error,$f(function t(){var e=Zf.call(this,"argument out of range")||this;return e.name="ArgumentOutOfRangeError",Object.setPrototypeOf(e,t.prototype),e},Zf),function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}()),td=function(t){function e(){var n=t.call(this,"no elements in sequence")||this;return n.name="EmptyError",Object.setPrototypeOf(n,e.prototype),n}return Jf(e,t),e}(Error),ed=function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),nd=(function(t){ed(function e(){var n=t.call(this,"Timeout has occurred")||this;return Object.setPrototypeOf(n,e.prototype),n},t)}(Error),function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}()),rd=function(){function t(t,e){this.project=t,this.thisArg=e}return t.prototype.call=function(t,e){return e.subscribe(new id(t,this.project,this.thisArg))},t}(),id=function(t){function e(e,n,r){var i=t.call(this,e)||this;return i.project=n,i.count=0,i.thisArg=r||i,i}return nd(e,t),e.prototype._next=function(t){var e;try{e=this.project.call(this.thisArg,t,this.count++)}catch(t){return void this.destination.error(t)}this.destination.next(e)},e}(Hh),od=function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),sd=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return od(e,t),e.prototype.notifyNext=function(t,e,n,r,i){this.destination.next(e)},e.prototype.notifyError=function(t,e){this.destination.error(t)},e.prototype.notifyComplete=function(t){this.destination.complete()},e}(Hh),ad=function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),ud=function(t){function e(e,n,r){var i=t.call(this)||this;return i.parent=e,i.outerValue=n,i.outerIndex=r,i.index=0,i}return ad(e,t),e.prototype._next=function(t){this.parent.notifyNext(this.outerValue,t,this.outerIndex,this.index++,this)},e.prototype._error=function(t){this.parent.notifyError(t,this),this.unsubscribe()},e.prototype._complete=function(){this.parent.notifyComplete(this),this.unsubscribe()},e}(Hh),cd=function(t){return function(e){return t.then(function(t){e.closed||(e.next(t),e.complete())},function(t){return e.error(t)}).then(null,Th),e}},ld=function pd(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}(),hd=function(t){return function(e){for(var n=t[ld]();;){var r=n.next();if(r.done){e.complete();break}if(e.next(r.value),e.closed)break}return"function"==typeof n.return&&e.add(function(){n.return&&n.return()}),e}},fd=function(t){return function(e){var n=t[Kh]();if("function"!=typeof n.subscribe)throw new TypeError("Provided object does not correctly implement Symbol.observable");return n.subscribe(e)}},dd=function(t){return t&&"number"==typeof t.length&&"function"!=typeof t};function vd(t){return t&&"function"!=typeof t.subscribe&&"function"==typeof t.then}var yd=function(t){if(t instanceof zh)return function(e){return t._isScalar?(e.next(t.value),void e.complete()):t.subscribe(e)};if(dd(t))return Nf(t);if(vd(t))return cd(t);if(t&&"function"==typeof t[ld])return hd(t);if(t&&"function"==typeof t[Kh])return fd(t);var e=Nh(t)?"an invalid object":"'"+t+"'";throw new TypeError("You provided "+e+" where a stream was expected. You can provide an Observable, Promise, Array, or Iterable.")};function md(t,e,n,r){var i=new ud(t,n,r);return yd(e)(i)}var gd=function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),_d={};!function(t){function e(e,n){var r=t.call(this,e)||this;return r.resultSelector=n,r.active=0,r.values=[],r.observables=[],r}gd(e,t),e.prototype._next=function(t){this.values.push(_d),this.observables.push(t)},e.prototype._complete=function(){var t=this.observables,e=t.length;if(0===e)this.destination.complete();else{this.active=e,this.toRespond=e;for(var n=0;n<e;n++){var r=t[n];this.add(md(this,r,r,n))}}},e.prototype.notifyComplete=function(t){0==(this.active-=1)&&this.destination.complete()},e.prototype.notifyNext=function(t,e,n,r,i){var o=this.values,s=this.toRespond?o[n]===_d?--this.toRespond:this.toRespond:0;o[n]=e,0===s&&(this.resultSelector?this._tryResultSelector(o):this.destination.next(o.slice()))},e.prototype._tryResultSelector=function(t){var e;try{e=this.resultSelector.apply(this,t)}catch(t){return void this.destination.error(t)}this.destination.next(e)}}(sd);var bd=function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();var wd=function(){function t(t,e){void 0===e&&(e=Number.POSITIVE_INFINITY),this.project=t,this.concurrent=e}return t.prototype.call=function(t,e){return e.subscribe(new xd(t,this.project,this.concurrent))},t}(),xd=function(t){function e(e,n,r){void 0===r&&(r=Number.POSITIVE_INFINITY);var i=t.call(this,e)||this;return i.project=n,i.concurrent=r,i.hasCompleted=!1,i.buffer=[],i.active=0,i.index=0,i}return bd(e,t),e.prototype._next=function(t){this.active<this.concurrent?this._tryNext(t):this.buffer.push(t)},e.prototype._tryNext=function(t){var e,n=this.index++;try{e=this.project(t,n)}catch(t){return void this.destination.error(t)}this.active++,this._innerSub(e,t,n)},e.prototype._innerSub=function(t,e,n){this.add(md(this,t,e,n))},e.prototype._complete=function(){this.hasCompleted=!0,0===this.active&&0===this.buffer.length&&this.destination.complete()},e.prototype.notifyNext=function(t,e,n,r,i){this.destination.next(e)},e.prototype.notifyComplete=function(t){var e=this.buffer;this.remove(t),this.active--,e.length>0?this._next(e.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()},e}(sd),Ed=function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();!function(t){function e(e,n){var r=t.call(this,e)||this;r.sources=n,r.completed=0,r.haveValues=0;var i=n.length;r.values=new Array(i);for(var o=0;o<i;o++){var s=md(r,n[o],null,o);s&&r.add(s)}return r}Ed(e,t),e.prototype.notifyNext=function(t,e,n,r,i){this.values[n]=e,i._hasValue||(i._hasValue=!0,this.haveValues++)},e.prototype.notifyComplete=function(t){var e=this.destination,n=this.haveValues,r=this.values,i=r.length;t._hasValue?(this.completed++,this.completed===i&&(n===i&&e.next(r),e.complete())):e.complete()}}(sd);var Sd=function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Cd=(function(t){function e(e){var n=t.call(this,e)||this;return n.hasFirst=!1,n.observables=[],n.subscriptions=[],n}Sd(e,t),e.prototype._next=function(t){this.observables.push(t)},e.prototype._complete=function(){var t=this.observables,e=t.length;if(0===e)this.destination.complete();else{for(var n=0;n<e&&!this.hasFirst;n++){var r=t[n],i=md(this,r,r,n);this.subscriptions&&this.subscriptions.push(i),this.add(i)}this.observables=null}},e.prototype.notifyNext=function(t,e,n,r,i){if(!this.hasFirst){this.hasFirst=!0;for(var o=0;o<this.subscriptions.length;o++)if(o!==n){var s=this.subscriptions[o];s.unsubscribe(),this.remove(s)}this.subscriptions=null}this.destination.next(e)}}(sd),function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}()),Td=(function(t){function e(e,n,r){void 0===r&&(r=Object.create(null));var i=t.call(this,e)||this;return i.iterators=[],i.active=0,i.resultSelector="function"==typeof n?n:null,i.values=r,i}Cd(e,t),e.prototype._next=function(t){var e=this.iterators;Ah(t)?e.push(new Pd(t)):e.push("function"==typeof t[ld]?new Td(t[ld]()):new Ad(this.destination,this,t))},e.prototype._complete=function(){var t=this.iterators,e=t.length;if(0!==e){this.active=e;for(var n=0;n<e;n++){var r=t[n];r.stillUnsubscribed?this.add(r.subscribe(r,n)):this.active--}}else this.destination.complete()},e.prototype.notifyInactive=function(){this.active--,0===this.active&&this.destination.complete()},e.prototype.checkIterators=function(){for(var t=this.iterators,e=t.length,n=this.destination,r=0;r<e;r++)if("function"==typeof(s=t[r]).hasValue&&!s.hasValue())return;var i=!1,o=[];for(r=0;r<e;r++){var s,a=(s=t[r]).next();if(s.hasCompleted()&&(i=!0),a.done)return void n.complete();o.push(a.value)}this.resultSelector?this._tryresultSelector(o):n.next(o),i&&n.complete()},e.prototype._tryresultSelector=function(t){var e;try{e=this.resultSelector.apply(this,t)}catch(t){return void this.destination.error(t)}this.destination.next(e)}}(Hh),function(){function t(t){this.iterator=t,this.nextResult=t.next()}return t.prototype.hasValue=function(){return!0},t.prototype.next=function(){var t=this.nextResult;return this.nextResult=this.iterator.next(),t},t.prototype.hasCompleted=function(){var t=this.nextResult;return t&&t.done},t}()),Pd=function(){function t(t){this.array=t,this.index=0,this.length=0,this.length=t.length}return t.prototype[ld]=function(){return this},t.prototype.next=function(t){var e=this.index++;return e<this.length?{value:this.array[e],done:!1}:{value:null,done:!0}},t.prototype.hasValue=function(){return this.array.length>this.index},t.prototype.hasCompleted=function(){return this.array.length===this.index},t}(),Ad=function(t){function e(e,n,r){var i=t.call(this,e)||this;return i.parent=n,i.observable=r,i.stillUnsubscribed=!0,i.buffer=[],i.isComplete=!1,i}return Cd(e,t),e.prototype[ld]=function(){return this},e.prototype.next=function(){var t=this.buffer;return 0===t.length&&this.isComplete?{value:null,done:!0}:{value:t.shift(),done:!1}},e.prototype.hasValue=function(){return this.buffer.length>0},e.prototype.hasCompleted=function(){return 0===this.buffer.length&&this.isComplete},e.prototype.notifyComplete=function(){this.buffer.length>0?(this.isComplete=!0,this.parent.notifyInactive()):this.destination.complete()},e.prototype.notifyNext=function(t,e,n,r,i){this.buffer.push(e),this.parent.checkIterators()},e.prototype.subscribe=function(t,e){return md(this,this.observable,this,e)},e}(sd),Nd=function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),kd=(function(t){function e(e,n){var r=t.call(this,e)||this;return r.durationSelector=n,r.hasValue=!1,r}Nd(e,t),e.prototype._next=function(t){if(this.value=t,this.hasValue=!0,!this.throttled){var e=Ih(this.durationSelector)(t);if(e===Oh)this.destination.error(Oh.e);else{var n=md(this,e);n.closed?this.clearThrottle():this.add(this.throttled=n)}}},e.prototype.clearThrottle=function(){var t=this.value,e=this.hasValue,n=this.throttled;n&&(this.remove(n),this.throttled=null,n.unsubscribe()),e&&(this.value=null,this.hasValue=!1,this.destination.next(t))},e.prototype.notifyNext=function(t,e,n,r){this.clearThrottle()},e.prototype.notifyComplete=function(){this.clearThrottle()}}(sd),function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}()),Od=(function(t){function e(e,n){var r=t.call(this,e)||this;return r.buffer=[],r.add(md(r,n)),r}kd(e,t),e.prototype._next=function(t){this.buffer.push(t)},e.prototype.notifyNext=function(t,e,n,r,i){var o=this.buffer;this.buffer=[],this.destination.next(o)}}(sd),function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}()),Md=(function(t){function e(e,n){var r=t.call(this,e)||this;return r.bufferSize=n,r.buffer=[],r}Od(e,t),e.prototype._next=function(t){var e=this.buffer;e.push(t),e.length==this.bufferSize&&(this.destination.next(e),this.buffer=[])},e.prototype._complete=function(){var e=this.buffer;e.length>0&&this.destination.next(e),t.prototype._complete.call(this)}}(Hh),function(t){function e(e,n,r){var i=t.call(this,e)||this;return i.bufferSize=n,i.startBufferEvery=r,i.buffers=[],i.count=0,i}Od(e,t),e.prototype._next=function(t){var e=this.bufferSize,n=this.startBufferEvery,r=this.buffers,i=this.count;this.count++,i%n==0&&r.push([]);for(var o=r.length;o--;){var s=r[o];s.push(t),s.length===e&&(r.splice(o,1),this.destination.next(s))}},e.prototype._complete=function(){for(var e=this.buffers,n=this.destination;e.length>0;){var r=e.shift();r.length>0&&n.next(r)}t.prototype._complete.call(this)}}(Hh),function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}()),Id=function Id(){this.buffer=[]};function Rd(t){var e=t.subscriber,n=t.context;n&&e.closeContext(n),e.closed||(t.context=e.openContext(),t.context.closeAction=this.schedule(t,t.bufferTimeSpan))}function Dd(t){var e=t.bufferCreationInterval,n=t.bufferTimeSpan,r=t.subscriber,i=t.scheduler,o=r.openContext();r.closed||(r.add(o.closeAction=i.schedule(jd,n,{subscriber:r,context:o})),this.schedule(t,e))}function jd(t){t.subscriber.closeContext(t.context)}!function(t){function e(e,n,r,i,o){var s=t.call(this,e)||this;s.bufferTimeSpan=n,s.bufferCreationInterval=r,s.maxBufferSize=i,s.scheduler=o,s.contexts=[];var a=s.openContext();if(s.timespanOnly=null==r||r<0,s.timespanOnly)s.add(a.closeAction=o.schedule(Rd,n,{subscriber:s,context:a,bufferTimeSpan:n}));else{var u={bufferTimeSpan:n,bufferCreationInterval:r,subscriber:s,scheduler:o};s.add(a.closeAction=o.schedule(jd,n,{subscriber:s,context:a})),s.add(o.schedule(Dd,r,u))}return s}Md(e,t),e.prototype._next=function(t){for(var e,n=this.contexts,r=n.length,i=0;i<r;i++){var o=n[i],s=o.buffer;s.push(t),s.length==this.maxBufferSize&&(e=o)}e&&this.onBufferFull(e)},e.prototype._error=function(e){this.contexts.length=0,t.prototype._error.call(this,e)},e.prototype._complete=function(){for(var e=this.contexts,n=this.destination;e.length>0;){var r=e.shift();n.next(r.buffer)}t.prototype._complete.call(this)},e.prototype._unsubscribe=function(){this.contexts=null},e.prototype.onBufferFull=function(t){this.closeContext(t);var e=t.closeAction;if(e.unsubscribe(),this.remove(e),!this.closed&&this.timespanOnly){t=this.openContext();var n=this.bufferTimeSpan;this.add(t.closeAction=this.scheduler.schedule(Rd,n,{subscriber:this,context:t,bufferTimeSpan:n}))}},e.prototype.openContext=function(){var t=new Id;return this.contexts.push(t),t},e.prototype.closeContext=function(t){this.destination.next(t.buffer);var e=this.contexts;(e?e.indexOf(t):-1)>=0&&e.splice(e.indexOf(t),1)}}(Hh);var Ld=function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Fd=(function(t){function e(e,n,r){var i=t.call(this,e)||this;return i.openings=n,i.closingSelector=r,i.contexts=[],i.add(md(i,n)),i}Ld(e,t),e.prototype._next=function(t){for(var e=this.contexts,n=e.length,r=0;r<n;r++)e[r].buffer.push(t)},e.prototype._error=function(e){for(var n=this.contexts;n.length>0;){var r=n.shift();r.subscription.unsubscribe(),r.buffer=null,r.subscription=null}this.contexts=null,t.prototype._error.call(this,e)},e.prototype._complete=function(){for(var e=this.contexts;e.length>0;){var n=e.shift();this.destination.next(n.buffer),n.subscription.unsubscribe(),n.buffer=null,n.subscription=null}this.contexts=null,t.prototype._complete.call(this)},e.prototype.notifyNext=function(t,e,n,r,i){t?this.closeBuffer(t):this.openBuffer(e)},e.prototype.notifyComplete=function(t){this.closeBuffer(t.context)},e.prototype.openBuffer=function(t){try{var e=this.closingSelector.call(this,t);e&&this.trySubscribe(e)}catch(t){this._error(t)}},e.prototype.closeBuffer=function(t){var e=this.contexts;if(e&&t){var n=t.subscription;this.destination.next(t.buffer),e.splice(e.indexOf(t),1),this.remove(n),n.unsubscribe()}},e.prototype.trySubscribe=function(t){var e=this.contexts,n=new jh,r={buffer:[],subscription:n};e.push(r);var i=md(this,t,r);!i||i.closed?this.closeBuffer(r):(i.context=r,this.add(i),n.add(i))}}(sd),function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}()),Vd=(function(t){function e(e,n){var r=t.call(this,e)||this;return r.closingSelector=n,r.subscribing=!1,r.openBuffer(),r}Fd(e,t),e.prototype._next=function(t){this.buffer.push(t)},e.prototype._complete=function(){var e=this.buffer;e&&this.destination.next(e),t.prototype._complete.call(this)},e.prototype._unsubscribe=function(){this.buffer=null,this.subscribing=!1},e.prototype.notifyNext=function(t,e,n,r,i){this.openBuffer()},e.prototype.notifyComplete=function(){this.subscribing?this.complete():this.openBuffer()},e.prototype.openBuffer=function(){var t=this.closingSubscription;t&&(this.remove(t),t.unsubscribe()),this.buffer&&this.destination.next(this.buffer),this.buffer=[];var e=Ih(this.closingSelector)();e===Oh?this.error(Oh.e):(t=new jh,this.closingSubscription=t,this.add(t),this.subscribing=!0,t.add(md(this,e)),this.subscribing=!1)}}(sd),function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}()),Hd=(function(t){function e(e,n,r){var i=t.call(this,e)||this;return i.selector=n,i.caught=r,i}Vd(e,t),e.prototype.error=function(e){if(!this.isStopped){var n=void 0;try{n=this.selector(e,this.caught)}catch(e){return void t.prototype.error.call(this,e)}this._unsubscribeAndRecycle(),this.add(md(this,n))}}}(sd),function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}()),Bd=(function(t){function e(e,n,r){var i=t.call(this,e)||this;return i.predicate=n,i.source=r,i.count=0,i.index=0,i}Hd(e,t),e.prototype._next=function(t){this.predicate?this._tryPredicate(t):this.count++},e.prototype._tryPredicate=function(t){var e;try{e=this.predicate(t,this.index++,this.source)}catch(t){return void this.destination.error(t)}e&&this.count++},e.prototype._complete=function(){this.destination.next(this.count),this.destination.complete()}}(Hh),function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}()),qd=(function(t){function e(e,n){var r=t.call(this,e)||this;return r.durationSelector=n,r.hasValue=!1,r.durationSubscription=null,r}Bd(e,t),e.prototype._next=function(t){try{var e=this.durationSelector.call(this,t);e&&this._tryNext(t,e)}catch(t){this.destination.error(t)}},e.prototype._complete=function(){this.emitValue(),this.destination.complete()},e.prototype._tryNext=function(t,e){var n=this.durationSubscription;this.value=t,this.hasValue=!0,n&&(n.unsubscribe(),this.remove(n)),(n=md(this,e))&&!n.closed&&this.add(this.durationSubscription=n)},e.prototype.notifyNext=function(t,e,n,r,i){this.emitValue()},e.prototype.notifyComplete=function(){this.emitValue()},e.prototype.emitValue=function(){if(this.hasValue){var e=this.value,n=this.durationSubscription;n&&(this.durationSubscription=null,n.unsubscribe(),this.remove(n)),this.value=null,this.hasValue=!1,t.prototype._next.call(this,e)}}}(sd),function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}());function Kd(t){t.debouncedNext()}!function(t){function e(e,n,r){var i=t.call(this,e)||this;return i.dueTime=n,i.scheduler=r,i.debouncedSubscription=null,i.lastValue=null,i.hasValue=!1,i}qd(e,t),e.prototype._next=function(t){this.clearDebounce(),this.lastValue=t,this.hasValue=!0,this.add(this.debouncedSubscription=this.scheduler.schedule(Kd,this.dueTime,this))},e.prototype._complete=function(){this.debouncedNext(),this.destination.complete()},e.prototype.debouncedNext=function(){if(this.clearDebounce(),this.hasValue){var t=this.lastValue;this.lastValue=null,this.hasValue=!1,this.destination.next(t)}},e.prototype.clearDebounce=function(){var t=this.debouncedSubscription;null!==t&&(this.remove(t),t.unsubscribe(),this.debouncedSubscription=null)}}(Hh);var Ud=function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),zd=(function(t){function e(e,n){var r=t.call(this,e)||this;return r.defaultValue=n,r.isEmpty=!0,r}Ud(e,t),e.prototype._next=function(t){this.isEmpty=!1,this.destination.next(t)},e.prototype._complete=function(){this.isEmpty&&this.destination.next(this.defaultValue),this.destination.complete()}}(Hh),function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}()),Wd=(function(t){function e(e,n,r){var i=t.call(this,e)||this;return i.delay=n,i.scheduler=r,i.queue=[],i.active=!1,i.errored=!1,i}zd(e,t),e.dispatch=function(t){for(var e=t.source,n=e.queue,r=t.scheduler,i=t.destination;n.length>0&&n[0].time-r.now()<=0;)n.shift().notification.observe(i);if(n.length>0){var o=Math.max(0,n[0].time-r.now());this.schedule(t,o)}else e.active=!1},e.prototype._schedule=function(t){this.active=!0,this.add(t.schedule(e.dispatch,this.delay,{source:this,destination:this.destination,scheduler:t}))},e.prototype.scheduleNotification=function(t){if(!0!==this.errored){var e=this.scheduler,n=new Wd(e.now()+this.delay,t);this.queue.push(n),!1===this.active&&this._schedule(e)}},e.prototype._next=function(t){this.scheduleNotification(Mf.createNext(t))},e.prototype._error=function(t){this.errored=!0,this.queue=[],this.destination.error(t)},e.prototype._complete=function(){this.scheduleNotification(Mf.createComplete())}}(Hh),function Wd(t,e){this.time=t,this.notification=e}),Qd=function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Gd=(function(t){function e(e,n){var r=t.call(this,e)||this;return r.delayDurationSelector=n,r.completed=!1,r.delayNotifierSubscriptions=[],r.values=[],r}Qd(e,t),e.prototype.notifyNext=function(t,e,n,r,i){this.destination.next(t),this.removeSubscription(i),this.tryComplete()},e.prototype.notifyError=function(t,e){this._error(t)},e.prototype.notifyComplete=function(t){var e=this.removeSubscription(t);e&&this.destination.next(e),this.tryComplete()},e.prototype._next=function(t){try{var e=this.delayDurationSelector(t);e&&this.tryDelay(e,t)}catch(t){this.destination.error(t)}},e.prototype._complete=function(){this.completed=!0,this.tryComplete()},e.prototype.removeSubscription=function(t){t.unsubscribe();var e=this.delayNotifierSubscriptions.indexOf(t),n=null;return-1!==e&&(n=this.values[e],this.delayNotifierSubscriptions.splice(e,1),this.values.splice(e,1)),n},e.prototype.tryDelay=function(t,e){var n=md(this,t,e);n&&!n.closed&&(this.add(n),this.delayNotifierSubscriptions.push(n)),this.values.push(e)},e.prototype.tryComplete=function(){this.completed&&0===this.delayNotifierSubscriptions.length&&this.destination.complete()}}(sd),function(t){function e(e,n){var r=t.call(this)||this;return r.source=e,r.subscriptionDelay=n,r}Qd(e,t),e.prototype._subscribe=function(t){this.subscriptionDelay.subscribe(new Gd(t,this.source))}}(zh),function(t){function e(e,n){var r=t.call(this)||this;return r.parent=e,r.source=n,r.sourceSubscribed=!1,r}return Qd(e,t),e.prototype._next=function(t){this.subscribeToSource()},e.prototype._error=function(t){this.unsubscribe(),this.parent.error(t)},e.prototype._complete=function(){this.subscribeToSource()},e.prototype.subscribeToSource=function(){this.sourceSubscribed||(this.sourceSubscribed=!0,this.unsubscribe(),this.source.subscribe(this.parent))},e}(Hh)),Xd=function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Yd=(function(t){function e(e){return t.call(this,e)||this}Xd(e,t),e.prototype._next=function(t){t.observe(this.destination)}}(Hh),function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}()),Zd=(function(t){function e(e,n,r){var i=t.call(this,e)||this;return i.keySelector=n,i.values=new Set,r&&i.add(md(i,r)),i}Yd(e,t),e.prototype.notifyNext=function(t,e,n,r,i){this.values.clear()},e.prototype.notifyError=function(t,e){this._error(t)},e.prototype._next=function(t){this.keySelector?this._useKeySelector(t):this._finalizeNext(t,t)},e.prototype._useKeySelector=function(t){var e,n=this.destination;try{e=this.keySelector(t)}catch(t){return void n.error(t)}this._finalizeNext(e,t)},e.prototype._finalizeNext=function(t,e){var n=this.values;n.has(t)||(n.add(t),this.destination.next(e))}}(sd),function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}()),$d=(function(t){function e(e,n,r){var i=t.call(this,e)||this;return i.keySelector=r,i.hasKey=!1,"function"==typeof n&&(i.compare=n),i}Zd(e,t),e.prototype.compare=function(t,e){return t===e},e.prototype._next=function(t){var e=t;if(this.keySelector&&(e=Ih(this.keySelector)(t))===Oh)return this.destination.error(Oh.e);var n=!1;if(this.hasKey){if((n=Ih(this.compare)(this.key,e))===Oh)return this.destination.error(Oh.e)}else this.hasKey=!0;!1===Boolean(n)&&(this.key=e,this.destination.next(t))}}(Hh),function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}()),Jd=(function(t){function e(e,n,r){var i=t.call(this,e)||this;return i.predicate=n,i.thisArg=r,i.count=0,i}$d(e,t),e.prototype._next=function(t){var e;try{e=this.predicate.call(this.thisArg,t,this.count++)}catch(t){return void this.destination.error(t)}e&&this.destination.next(t)}}(Hh),function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}()),tv=(function(t){function e(e,n,r,i){var o=t.call(this,e)||this;return o._tapNext=Uh,o._tapError=Uh,o._tapComplete=Uh,o._tapError=r||Uh,o._tapComplete=i||Uh,Eh(n)?(o._context=o,o._tapNext=n):n&&(o._context=n,o._tapNext=n.next||Uh,o._tapError=n.error||Uh,o._tapComplete=n.complete||Uh),o}Jd(e,t),e.prototype._next=function(t){try{this._tapNext.call(this._context,t)}catch(t){return void this.destination.error(t)}this.destination.next(t)},e.prototype._error=function(t){try{this._tapError.call(this._context,t)}catch(t){return void this.destination.error(t)}this.destination.error(t)},e.prototype._complete=function(){try{this._tapComplete.call(this._context)}catch(t){return void this.destination.error(t)}return this.destination.complete()}}(Hh),function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}()),ev=(function(t){function e(e,n){var r=t.call(this,e)||this;return r.total=n,r.count=0,r}tv(e,t),e.prototype._next=function(t){var e=this.total,n=++this.count;n<=e&&(this.destination.next(t),n===e&&(this.destination.complete(),this.unsubscribe()))}}(Hh),function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}()),nv=(function(t){function e(e,n,r,i){var o=t.call(this,e)||this;return o.predicate=n,o.thisArg=r,o.source=i,o.index=0,o.thisArg=r||o,o}ev(e,t),e.prototype.notifyComplete=function(t){this.destination.next(t),this.destination.complete()},e.prototype._next=function(t){var e=!1;try{e=this.predicate.call(this.thisArg,t,this.index++,this.source)}catch(t){return void this.destination.error(t)}e||this.notifyComplete(!1)},e.prototype._complete=function(){this.notifyComplete(!0)}}(Hh),function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}()),rv=(function(t){function e(e){var n=t.call(this,e)||this;return n.hasCompleted=!1,n.hasSubscription=!1,n}nv(e,t),e.prototype._next=function(t){this.hasSubscription||(this.hasSubscription=!0,this.add(md(this,t)))},e.prototype._complete=function(){this.hasCompleted=!0,this.hasSubscription||this.destination.complete()},e.prototype.notifyComplete=function(t){this.remove(t),this.hasSubscription=!1,this.hasCompleted&&this.destination.complete()}}(sd),function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}()),iv=(function(t){function e(e,n){var r=t.call(this,e)||this;return r.project=n,r.hasSubscription=!1,r.hasCompleted=!1,r.index=0,r}rv(e,t),e.prototype._next=function(t){this.hasSubscription||this.tryNext(t)},e.prototype.tryNext=function(t){var e=this.index++,n=this.destination;try{var r=this.project(t,e);this.hasSubscription=!0,this.add(md(this,r,t,e))}catch(t){n.error(t)}},e.prototype._complete=function(){this.hasCompleted=!0,this.hasSubscription||this.destination.complete()},e.prototype.notifyNext=function(t,e,n,r,i){this.destination.next(e)},e.prototype.notifyError=function(t){this.destination.error(t)},e.prototype.notifyComplete=function(t){this.remove(t),this.hasSubscription=!1,this.hasCompleted&&this.destination.complete()}}(sd),function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}()),ov=(function(t){function e(e,n,r,i){var o=t.call(this,e)||this;return o.project=n,o.concurrent=r,o.scheduler=i,o.index=0,o.active=0,o.hasCompleted=!1,r<Number.POSITIVE_INFINITY&&(o.buffer=[]),o}iv(e,t),e.dispatch=function(t){t.subscriber.subscribeToProjection(t.result,t.value,t.index)},e.prototype._next=function(t){var n=this.destination;if(n.closed)this._complete();else{var r=this.index++;if(this.active<this.concurrent){n.next(t);var i=Ih(this.project)(t,r);i===Oh?n.error(Oh.e):this.scheduler?this.add(this.scheduler.schedule(e.dispatch,0,{subscriber:this,result:i,value:t,index:r})):this.subscribeToProjection(i,t,r)}else this.buffer.push(t)}},e.prototype.subscribeToProjection=function(t,e,n){this.active++,this.add(md(this,t,e,n))},e.prototype._complete=function(){this.hasCompleted=!0,this.hasCompleted&&0===this.active&&this.destination.complete()},e.prototype.notifyNext=function(t,e,n,r,i){this._next(e)},e.prototype.notifyComplete=function(t){var e=this.buffer;this.remove(t),this.active--,e&&e.length>0&&this._next(e.shift()),this.hasCompleted&&0===this.active&&this.destination.complete()}}(sd),function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}()),sv=(function(t){ov(function e(n,r){var i=t.call(this,n)||this;return i.add(new jh(r)),i},t)}(Hh),function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}()),av=(function(t){function e(e,n,r,i,o){var s=t.call(this,e)||this;return s.predicate=n,s.source=r,s.yieldIndex=i,s.thisArg=o,s.index=0,s}sv(e,t),e.prototype.notifyComplete=function(t){var e=this.destination;e.next(t),e.complete()},e.prototype._next=function(t){var e=this.predicate,n=this.thisArg,r=this.index++;try{e.call(n||this,t,r,this.source)&&this.notifyComplete(this.yieldIndex?r:t)}catch(t){this.destination.error(t)}},e.prototype._complete=function(){this.notifyComplete(this.yieldIndex?-1:void 0)}}(Hh),function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}()),uv=(function(t){function e(){return null!==t&&t.apply(this,arguments)||this}av(e,t),e.prototype._next=function(t){}}(Hh),function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}()),cv=(function(t){function e(e){return t.call(this,e)||this}uv(e,t),e.prototype.notifyComplete=function(t){var e=this.destination;e.next(t),e.complete()},e.prototype._next=function(t){this.notifyComplete(!1)},e.prototype._complete=function(){this.notifyComplete(!0)}}(Hh),function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}()),lv=(function(t){function e(e,n){var r=t.call(this,e)||this;return r.total=n,r.ring=new Array,r.count=0,r}cv(e,t),e.prototype._next=function(t){var e=this.ring,n=this.total,r=this.count++;e.length<n?e.push(t):e[r%n]=t},e.prototype._complete=function(){var t=this.destination,e=this.count;if(e>0)for(var n=this.count>=this.total?this.total:this.count,r=this.ring,i=0;i<n;i++){var o=e++%n;t.next(r[o])}t.complete()}}(Hh),function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}()),pv=(function(t){function e(e,n){var r=t.call(this,e)||this;return r.value=n,r}lv(e,t),e.prototype._next=function(t){this.destination.next(this.value)}}(Hh),function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}()),hv=(function(t){function e(e){return t.call(this,e)||this}pv(e,t),e.prototype._next=function(t){this.destination.next(Mf.createNext(t))},e.prototype._error=function(t){var e=this.destination;e.next(Mf.createError(t)),e.complete()},e.prototype._complete=function(){var t=this.destination;t.next(Mf.createComplete()),t.complete()}}(Hh),function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}()),fv=(function(t){function e(e,n,r,i){var o=t.call(this,e)||this;return o.accumulator=n,o._seed=r,o.hasSeed=i,o.index=0,o}hv(e,t),Object.defineProperty(e.prototype,"seed",{get:function(){return this._seed},set:function(t){this.hasSeed=!0,this._seed=t},enumerable:!0,configurable:!0}),e.prototype._next=function(t){if(this.hasSeed)return this._tryNext(t);this.seed=t,this.destination.next(t)},e.prototype._tryNext=function(t){var e,n=this.index++;try{e=this.accumulator(this.seed,t,n)}catch(t){this.destination.error(t)}this.seed=e,this.destination.next(e)}}(Hh),function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}());!function(t){function e(e,n,r,i){var o=t.call(this,e)||this;return o.accumulator=n,o.acc=r,o.concurrent=i,o.hasValue=!1,o.hasCompleted=!1,o.buffer=[],o.active=0,o.index=0,o}fv(e,t),e.prototype._next=function(t){if(this.active<this.concurrent){var e=this.index++,n=Ih(this.accumulator)(this.acc,t);n===Oh?this.destination.error(Oh.e):(this.active++,this._innerSub(n,t,e))}else this.buffer.push(t)},e.prototype._innerSub=function(t,e,n){this.add(md(this,t,e,n))},e.prototype._complete=function(){this.hasCompleted=!0,0===this.active&&0===this.buffer.length&&(!1===this.hasValue&&this.destination.next(this.acc),this.destination.complete())},e.prototype.notifyNext=function(t,e,n,r,i){var o=this.destination;this.acc=e,this.hasValue=!0,o.next(e)},e.prototype.notifyComplete=function(t){var e=this.buffer;this.remove(t),this.active--,e.length>0?this._next(e.shift()):0===this.active&&this.hasCompleted&&(!1===this.hasValue&&this.destination.next(this.acc),this.destination.complete())}}(sd);var dv=function(){function t(t,e){this.subjectFactory=t,this.selector=e}return t.prototype.call=function(t,e){var n=this.selector,r=this.subjectFactory(),i=n(r).subscribe(t);return i.add(e.subscribe(r)),i},t}(),vv=function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),yv=(function(t){function e(e,n){var r=t.call(this,e)||this;return r.destination=e,r.nextSources=n,r}vv(e,t),e.prototype.notifyError=function(t,e){this.subscribeToNextSource()},e.prototype.notifyComplete=function(t){this.subscribeToNextSource()},e.prototype._error=function(t){this.subscribeToNextSource()},e.prototype._complete=function(){this.subscribeToNextSource()},e.prototype.subscribeToNextSource=function(){var t=this.nextSources.shift();t?this.add(md(this,t)):this.destination.complete()}}(sd),function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}()),mv=(function(t){function e(e){var n=t.call(this,e)||this;return n.hasPrev=!1,n}yv(e,t),e.prototype._next=function(t){this.hasPrev?this.destination.next([this.prev,t]):this.hasPrev=!0,this.prev=t}}(Hh),function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}()),gv=(function(t){function e(e,n,r){var i=t.call(this,e)||this;return i.count=n,i.source=r,i}mv(e,t),e.prototype.complete=function(){if(!this.isStopped){var e=this.source,n=this.count;if(0===n)return t.prototype.complete.call(this);n>-1&&(this.count=n-1),e.subscribe(this._unsubscribeAndRecycle())}}}(Hh),function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}()),_v=(function(t){function e(e,n,r){var i=t.call(this,e)||this;return i.notifier=n,i.source=r,i.sourceIsBeingSubscribedTo=!0,i}gv(e,t),e.prototype.notifyNext=function(t,e,n,r,i){this.sourceIsBeingSubscribedTo=!0,this.source.subscribe(this)},e.prototype.notifyComplete=function(e){if(!1===this.sourceIsBeingSubscribedTo)return t.prototype.complete.call(this)},e.prototype.complete=function(){if(this.sourceIsBeingSubscribedTo=!1,!this.isStopped){if(this.retries||this.subscribeToRetries(),!this.retriesSubscription||this.retriesSubscription.closed)return t.prototype.complete.call(this);this._unsubscribeAndRecycle(),this.notifications.next()}},e.prototype._unsubscribe=function(){var t=this.notifications,e=this.retriesSubscription;t&&(t.unsubscribe(),this.notifications=null),e&&(e.unsubscribe(),this.retriesSubscription=null),this.retries=null},e.prototype._unsubscribeAndRecycle=function(){var e=this._unsubscribe;return this._unsubscribe=null,t.prototype._unsubscribeAndRecycle.call(this),this._unsubscribe=e,this},e.prototype.subscribeToRetries=function(){this.notifications=new Jh;var e=Ih(this.notifier)(this.notifications);if(e===Oh)return t.prototype.complete.call(this);this.retries=e,this.retriesSubscription=md(this,e)}}(sd),function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}()),bv=(function(t){function e(e,n,r){var i=t.call(this,e)||this;return i.count=n,i.source=r,i}_v(e,t),e.prototype.error=function(e){if(!this.isStopped){var n=this.source,r=this.count;if(0===r)return t.prototype.error.call(this,e);r>-1&&(this.count=r-1),n.subscribe(this._unsubscribeAndRecycle())}}}(Hh),function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}()),wv=(function(t){function e(e,n,r){var i=t.call(this,e)||this;return i.notifier=n,i.source=r,i}bv(e,t),e.prototype.error=function(e){if(!this.isStopped){var n=this.errors,r=this.retries,i=this.retriesSubscription;if(r)this.errors=null,this.retriesSubscription=null;else{if(n=new Jh,(r=Ih(this.notifier)(n))===Oh)return t.prototype.error.call(this,Oh.e);i=md(this,r)}this._unsubscribeAndRecycle(),this.errors=n,this.retries=r,this.retriesSubscription=i,n.next(e)}},e.prototype._unsubscribe=function(){var t=this.errors,e=this.retriesSubscription;t&&(t.unsubscribe(),this.errors=null),e&&(e.unsubscribe(),this.retriesSubscription=null),this.retries=null},e.prototype.notifyNext=function(t,e,n,r,i){var o=this._unsubscribe;this._unsubscribe=null,this._unsubscribeAndRecycle(),this._unsubscribe=o,this.source.subscribe(this)}}(sd),function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}()),xv=(function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.hasValue=!1,e}wv(e,t),e.prototype._next=function(t){this.value=t,this.hasValue=!0},e.prototype.notifyNext=function(t,e,n,r,i){this.emitValue()},e.prototype.notifyComplete=function(){this.emitValue()},e.prototype.emitValue=function(){this.hasValue&&(this.hasValue=!1,this.destination.next(this.value))}}(sd),function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}());function Ev(t){var e=t.period;t.subscriber.notifyNext(),this.schedule(t,e)}!function(t){function e(e,n,r){var i=t.call(this,e)||this;return i.period=n,i.scheduler=r,i.hasValue=!1,i.add(r.schedule(Ev,n,{subscriber:i,period:n})),i}xv(e,t),e.prototype._next=function(t){this.lastValue=t,this.hasValue=!0},e.prototype.notifyNext=function(){this.hasValue&&(this.hasValue=!1,this.destination.next(this.lastValue))}}(Hh);var Sv=function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Cv=(function(t){function e(e,n,r){var i=t.call(this,e)||this;return i.compareTo=n,i.comparor=r,i._a=[],i._b=[],i._oneComplete=!1,i.add(n.subscribe(new Cv(e,i))),i}Sv(e,t),e.prototype._next=function(t){this._oneComplete&&0===this._b.length?this.emit(!1):(this._a.push(t),this.checkValues())},e.prototype._complete=function(){this._oneComplete?this.emit(0===this._a.length&&0===this._b.length):this._oneComplete=!0},e.prototype.checkValues=function(){for(var t=this._a,e=this._b,n=this.comparor;t.length>0&&e.length>0;){var r=t.shift(),i=e.shift(),o=!1;n?(o=Ih(n)(r,i))===Oh&&this.destination.error(Oh.e):o=r===i,o||this.emit(!1)}},e.prototype.emit=function(t){var e=this.destination;e.next(t),e.complete()},e.prototype.nextB=function(t){this._oneComplete&&0===this._a.length?this.emit(!1):(this._b.push(t),this.checkValues())}}(Hh),function(t){function e(e,n){var r=t.call(this,e)||this;return r.parent=n,r}return Sv(e,t),e.prototype._next=function(t){this.parent.nextB(t)},e.prototype._error=function(t){this.parent.error(t)},e.prototype._complete=function(){this.parent._complete()},e}(Hh));function Tv(){return new Jh}var Pv=function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Av=(function(t){function e(e,n,r){var i=t.call(this,e)||this;return i.predicate=n,i.source=r,i.seenValue=!1,i.index=0,i}Pv(e,t),e.prototype.applySingleValue=function(t){this.seenValue?this.destination.error("Sequence contains more than one element"):(this.seenValue=!0,this.singleValue=t)},e.prototype._next=function(t){var e=this.index++;this.predicate?this.tryNext(t,e):this.applySingleValue(t)},e.prototype.tryNext=function(t,e){try{this.predicate(t,e,this.source)&&this.applySingleValue(t)}catch(t){this.destination.error(t)}},e.prototype._complete=function(){var t=this.destination;this.index>0?(t.next(this.seenValue?this.singleValue:void 0),t.complete()):t.error(new td)}}(Hh),function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}()),Nv=(function(t){function e(e,n){var r=t.call(this,e)||this;return r.total=n,r.count=0,r}Av(e,t),e.prototype._next=function(t){++this.count>this.total&&this.destination.next(t)}}(Hh),function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}()),kv=(function(t){function e(e,n){var r=t.call(this,e)||this;return r._skipCount=n,r._count=0,r._ring=new Array(n),r}Nv(e,t),e.prototype._next=function(t){var e=this._skipCount,n=this._count++;if(n<e)this._ring[n]=t;else{var r=n%e,i=this._ring,o=i[r];i[r]=t,this.destination.next(o)}}}(Hh),function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}()),Ov=(function(t){function e(e,n){var r=t.call(this,e)||this;return r.hasValue=!1,r.add(r.innerSubscription=md(r,n)),r}kv(e,t),e.prototype._next=function(e){this.hasValue&&t.prototype._next.call(this,e)},e.prototype.notifyNext=function(t,e,n,r,i){this.hasValue=!0,this.innerSubscription.unsubscribe()},e.prototype.notifyComplete=function(){}}(sd),function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}()),Mv=(function(t){function e(e,n){var r=t.call(this,e)||this;return r.predicate=n,r.skipping=!0,r.index=0,r}Ov(e,t),e.prototype._next=function(t){var e=this.destination;this.skipping&&this.tryCallPredicate(t),this.skipping||e.next(t)},e.prototype.tryCallPredicate=function(t){try{var e=this.predicate(t,this.index++);this.skipping=Boolean(e)}catch(t){this.destination.error(t)}}}(Hh),function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}()),Iv=(function(t){function e(e,n,r){void 0===n&&(n=0),void 0===r&&(r=Uf);var i=t.call(this)||this;return i.source=e,i.delayTime=n,i.scheduler=r,(!function o(t){return!Ah(t)&&t-parseFloat(t)+1>=0}(n)||n<0)&&(i.delayTime=0),r&&"function"==typeof r.schedule||(i.scheduler=Uf),i}Mv(e,t),e.create=function(t,n,r){return void 0===n&&(n=0),void 0===r&&(r=Uf),new e(t,n,r)},e.dispatch=function(t){return this.add(t.source.subscribe(t.subscriber))},e.prototype._subscribe=function(t){return this.scheduler.schedule(e.dispatch,this.delayTime,{source:this.source,subscriber:t})}}(zh),function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}()),Rv=(function(t){function e(e,n){var r=t.call(this,e)||this;return r.project=n,r.index=0,r}Iv(e,t),e.prototype._next=function(t){var e,n=this.index++;try{e=this.project(t,n)}catch(t){return void this.destination.error(t)}this._innerSub(e,t,n)},e.prototype._innerSub=function(t,e,n){var r=this.innerSubscription;r&&r.unsubscribe(),this.add(this.innerSubscription=md(this,t,e,n))},e.prototype._complete=function(){var e=this.innerSubscription;e&&!e.closed||t.prototype._complete.call(this)},e.prototype._unsubscribe=function(){this.innerSubscription=null},e.prototype.notifyComplete=function(e){this.remove(e),this.innerSubscription=null,this.isStopped&&t.prototype._complete.call(this)},e.prototype.notifyNext=function(t,e,n,r,i){this.destination.next(e)}}(sd),function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}()),Dv=(function(t){function e(e){return t.call(this,e)||this}Rv(e,t),e.prototype.notifyNext=function(t,e,n,r,i){this.complete()},e.prototype.notifyComplete=function(){}}(sd),function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}()),jv=(function(t){function e(e,n){var r=t.call(this,e)||this;return r.predicate=n,r.index=0,r}Dv(e,t),e.prototype._next=function(t){var e,n=this.destination;try{e=this.predicate(t,this.index++)}catch(t){return void n.error(t)}this.nextOrComplete(t,e)},e.prototype.nextOrComplete=function(t,e){var n=this.destination;Boolean(e)?n.next(t):n.complete()}}(Hh),function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}()),Lv=(function(t){function e(e,n,r,i){var o=t.call(this,e)||this;return o.destination=e,o.durationSelector=n,o._leading=r,o._trailing=i,o._hasValue=!1,o}jv(e,t),e.prototype._next=function(t){this._hasValue=!0,this._sendValue=t,this._throttled||(this._leading?this.send():this.throttle(t))},e.prototype.send=function(){var t=this._sendValue;this._hasValue&&(this.destination.next(t),this.throttle(t)),this._hasValue=!1,this._sendValue=null},e.prototype.throttle=function(t){var e=this.tryDurationSelector(t);e&&this.add(this._throttled=md(this,e))},e.prototype.tryDurationSelector=function(t){try{return this.durationSelector(t)}catch(t){return this.destination.error(t),null}},e.prototype.throttlingDone=function(){var t=this._throttled,e=this._trailing;t&&t.unsubscribe(),this._throttled=null,e&&this.send()},e.prototype.notifyNext=function(t,e,n,r,i){this.throttlingDone()},e.prototype.notifyComplete=function(){this.throttlingDone()}}(sd),function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}());function Fv(t){t.subscriber.clearThrottle()}!function(t){function e(e,n,r,i,o){var s=t.call(this,e)||this;return s.duration=n,s.scheduler=r,s.leading=i,s.trailing=o,s._hasTrailingValue=!1,s._trailingValue=null,s}Lv(e,t),e.prototype._next=function(t){this.throttled?this.trailing&&(this._trailingValue=t,this._hasTrailingValue=!0):(this.add(this.throttled=this.scheduler.schedule(Fv,this.duration,{subscriber:this})),this.leading&&this.destination.next(t))},e.prototype._complete=function(){this._hasTrailingValue?(this.destination.next(this._trailingValue),this.destination.complete()):this.destination.complete()},e.prototype.clearThrottle=function(){var t=this.throttled;t&&(this.trailing&&this._hasTrailingValue&&(this.destination.next(this._trailingValue),this._trailingValue=null,this._hasTrailingValue=!1),t.unsubscribe(),this.remove(t),this.throttled=null)}}(Hh);var Vv=function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Hv=(function(t){function e(e,n,r,i,o){var s=t.call(this,e)||this;return s.absoluteTimeout=n,s.waitFor=r,s.withObservable=i,s.scheduler=o,s.action=null,s.scheduleTimeout(),s}Vv(e,t),e.dispatchTimeout=function(t){var e=t.withObservable;t._unsubscribeAndRecycle(),t.add(md(t,e))},e.prototype.scheduleTimeout=function(){var t=this.action;t?this.action=t.schedule(this,this.waitFor):this.add(this.action=this.scheduler.schedule(e.dispatchTimeout,this.waitFor,this))},e.prototype._next=function(e){this.absoluteTimeout||this.scheduleTimeout(),t.prototype._next.call(this,e)},e.prototype._unsubscribe=function(){this.action=null,this.scheduler=null,this.withObservable=null}}(sd),function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}()),Bv=(function(t){function e(e){var n=t.call(this,e)||this;return n.window=new Jh,e.next(n.window),n}Hv(e,t),e.prototype.notifyNext=function(t,e,n,r,i){this.openWindow()},e.prototype.notifyError=function(t,e){this._error(t)},e.prototype.notifyComplete=function(t){this._complete()},e.prototype._next=function(t){this.window.next(t)},e.prototype._error=function(t){this.window.error(t),this.destination.error(t)},e.prototype._complete=function(){this.window.complete(),this.destination.complete()},e.prototype._unsubscribe=function(){this.window=null},e.prototype.openWindow=function(){var t=this.window;t&&t.complete();var e=this.destination,n=this.window=new Jh;e.next(n)}}(sd),function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}()),qv=(function(t){function e(e,n,r){var i=t.call(this,e)||this;return i.destination=e,i.windowSize=n,i.startWindowEvery=r,i.windows=[new Jh],i.count=0,e.next(i.windows[0]),i}Bv(e,t),e.prototype._next=function(t){for(var e=this.startWindowEvery>0?this.startWindowEvery:this.windowSize,n=this.destination,r=this.windowSize,i=this.windows,o=i.length,s=0;s<o&&!this.closed;s++)i[s].next(t);var a=this.count-r+1;if(a>=0&&a%e==0&&!this.closed&&i.shift().complete(),++this.count%e==0&&!this.closed){var u=new Jh;i.push(u),n.next(u)}},e.prototype._error=function(t){var e=this.windows;if(e)for(;e.length>0&&!this.closed;)e.shift().error(t);this.destination.error(t)},e.prototype._complete=function(){var t=this.windows;if(t)for(;t.length>0&&!this.closed;)t.shift().complete();this.destination.complete()},e.prototype._unsubscribe=function(){this.count=0,this.windows=null}}(Hh),function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}()),Kv=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e._numberOfNextedValues=0,e}return qv(e,t),e.prototype.next=function(e){this._numberOfNextedValues++,t.prototype.next.call(this,e)},Object.defineProperty(e.prototype,"numberOfNextedValues",{get:function(){return this._numberOfNextedValues},enumerable:!0,configurable:!0}),e}(Jh);function Uv(t){var e=t.subscriber,n=t.windowTimeSpan,r=t.window;r&&e.closeWindow(r),t.window=e.openWindow(),this.schedule(t,n)}function zv(t){var e=t.windowTimeSpan,n=t.subscriber,r=t.scheduler,i=t.windowCreationInterval,o=n.openWindow(),s={action:this,subscription:null};s.subscription=r.schedule(Wv,e,{subscriber:n,window:o,context:s}),this.add(s.subscription),this.schedule(t,i)}function Wv(t){var e=t.subscriber,n=t.window,r=t.context;r&&r.action&&r.subscription&&r.action.remove(r.subscription),e.closeWindow(n)}!function(t){function e(e,n,r,i,o){var s=t.call(this,e)||this;s.destination=e,s.windowTimeSpan=n,s.windowCreationInterval=r,s.maxWindowSize=i,s.scheduler=o,s.windows=[];var a=s.openWindow();if(null!==r&&r>=0){var u={windowTimeSpan:n,windowCreationInterval:r,subscriber:s,scheduler:o};s.add(o.schedule(Wv,n,{subscriber:s,window:a,context:null})),s.add(o.schedule(zv,r,u))}else s.add(o.schedule(Uv,n,{subscriber:s,window:a,windowTimeSpan:n}));return s}qv(e,t),e.prototype._next=function(t){for(var e=this.windows,n=e.length,r=0;r<n;r++){var i=e[r];i.closed||(i.next(t),i.numberOfNextedValues>=this.maxWindowSize&&this.closeWindow(i))}},e.prototype._error=function(t){for(var e=this.windows;e.length>0;)e.shift().error(t);this.destination.error(t)},e.prototype._complete=function(){for(var t=this.windows;t.length>0;){var e=t.shift();e.closed||e.complete()}this.destination.complete()},e.prototype.openWindow=function(){var t=new Kv;return this.windows.push(t),this.destination.next(t),t},e.prototype.closeWindow=function(t){t.complete();var e=this.windows;e.splice(e.indexOf(t),1)}}(Hh);var Qv=function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Gv=(function(t){function e(e,n,r){var i=t.call(this,e)||this;return i.openings=n,i.closingSelector=r,i.contexts=[],i.add(i.openSubscription=md(i,n,n)),i}Qv(e,t),e.prototype._next=function(t){var e=this.contexts;if(e)for(var n=e.length,r=0;r<n;r++)e[r].window.next(t)},e.prototype._error=function(e){var n=this.contexts;if(this.contexts=null,n)for(var r=n.length,i=-1;++i<r;){var o=n[i];o.window.error(e),o.subscription.unsubscribe()}t.prototype._error.call(this,e)},e.prototype._complete=function(){var e=this.contexts;if(this.contexts=null,e)for(var n=e.length,r=-1;++r<n;){var i=e[r];i.window.complete(),i.subscription.unsubscribe()}t.prototype._complete.call(this)},e.prototype._unsubscribe=function(){var t=this.contexts;if(this.contexts=null,t)for(var e=t.length,n=-1;++n<e;){var r=t[n];r.window.unsubscribe(),r.subscription.unsubscribe()}},e.prototype.notifyNext=function(t,e,n,r,i){if(t===this.openings){var o=Ih(this.closingSelector)(e);if(o===Oh)return this.error(Oh.e);var s=new Jh,a=new jh,u={window:s,subscription:a};this.contexts.push(u);var c=md(this,o,u);c.closed?this.closeWindow(this.contexts.length-1):(c.context=u,a.add(c)),this.destination.next(s)}else this.closeWindow(this.contexts.indexOf(t))},e.prototype.notifyError=function(t){this.error(t)},e.prototype.notifyComplete=function(t){t!==this.openSubscription&&this.closeWindow(this.contexts.indexOf(t.context))},e.prototype.closeWindow=function(t){if(-1!==t){var e=this.contexts,n=e[t],r=n.window,i=n.subscription;e.splice(t,1),r.complete(),i.unsubscribe()}}}(sd),function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}()),Xv=(function(t){function e(e,n){var r=t.call(this,e)||this;return r.destination=e,r.closingSelector=n,r.openWindow(),r}Gv(e,t),e.prototype.notifyNext=function(t,e,n,r,i){this.openWindow(i)},e.prototype.notifyError=function(t,e){this._error(t)},e.prototype.notifyComplete=function(t){this.openWindow(t)},e.prototype._next=function(t){this.window.next(t)},e.prototype._error=function(t){this.window.error(t),this.destination.error(t),this.unsubscribeClosingNotification()},e.prototype._complete=function(){this.window.complete(),this.destination.complete(),this.unsubscribeClosingNotification()},e.prototype.unsubscribeClosingNotification=function(){this.closingNotification&&this.closingNotification.unsubscribe()},e.prototype.openWindow=function(t){void 0===t&&(t=null),t&&(this.remove(t),t.unsubscribe());var e=this.window;e&&e.complete();var n=this.window=new Jh;this.destination.next(n);var r=Ih(this.closingSelector)();if(r===Oh){var i=Oh.e;this.destination.error(i),this.window.error(i)}else this.add(this.closingNotification=md(this,r))}}(sd),function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}()),Yv=function(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var r,i,o=n.call(t),s=[];try{for(;(void 0===e||e-- >0)&&!(r=o.next()).done;)s.push(r.value)}catch(t){i={error:t}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return s};
876
+ */(t)&&t.ngInjectableDef||void 0;void 0!==o&&this.injectableDefInScope(o)&&(i=Ch(t),this.records.set(t,i))}if(void 0!==i)return this.hydrate(t,i)}return 2&n&&Eh(),this.parent.get(t,e)}finally{Rp(r)}},t.prototype.assertNotDestroyed=function(){if(this.destroyed)throw new Error("Injector has already been destroyed.")},t.prototype.processInjectorType=function(t,e){var n=this,r=(t=up(t)).ngInjectorDef,i=null==r&&t.ngModule||void 0,o=void 0===i?t:i,s=void 0!==i&&t.providers||wh;if(void 0!==i&&(r=i.ngInjectorDef),null!=r){if(e.has(o))throw new Error("Circular dependency: type "+tp(o)+" ends up importing itself.");if(this.injectorDefTypes.add(o),this.records.set(o,Th(r.factory)),null!=r.imports){e.add(o);try{Ph(r.imports,function(t){return n.processInjectorType(t,e)})}finally{e.delete(o)}}null!=r.providers&&Ph(r.providers,function(t){return n.processProvider(t)}),Ph(s,function(t){return n.processProvider(t)})}},t.prototype.processProvider=function(t){var e=Ah(t=up(t))?t:up(t.provide),n=function r(t){var e=up(t),n=_h,r=void 0;if(Ah(t))return Ch(t);if(e=up(t.provide),function i(t){return Sp in t}(t))n=t.useValue;else if(function o(t){return!!t.useExisting}(t))r=function(){return Dp(t.useExisting)};else if(function s(t){return!!t.useFactory}(t))r=function(){return t.useFactory.apply(t,f(jp(t.deps||[])))};else{var a=t.useClass||e;if(!function u(t){return!!t.deps}(t))return Ch(a);r=function(){return new(a.bind.apply(a,f([void 0],jp(t.deps))))}}return Th(r,n)}(t);if(Ah(t)||!0!==t.multi){var i=this.records.get(e);if(i&&void 0!==i.multi)throw new Error("Mixed multi-provider for "+tp(e))}else{var o=this.records.get(e);if(o){if(void 0===o.multi)throw new Error("Mixed multi-provider for "+e+".")}else(o=Th(void 0,_h,!0)).factory=function(){return jp(o.multi)},this.records.set(e,o);e=t,o.multi.push(t)}this.records.set(e,n)},t.prototype.hydrate=function(t,e){if(e.value===bh)throw new Error("Circular dep for "+tp(t));return e.value===_h&&(e.value=bh,e.value=e.factory()),"object"==typeof e.value&&e.value&&function n(t){return"object"==typeof t&&null!=t&&t.ngOnDestroy&&"function"==typeof t.ngOnDestroy}(e.value)&&this.onDestroy.add(e.value),e.value},t.prototype.injectableDefInScope=function(t){return!!t.providedIn&&("string"==typeof t.providedIn?"any"===t.providedIn||"root"===t.providedIn&&this.isRootInjector:this.injectorDefTypes.has(t.providedIn))},t}();function Ch(t){var e=t.ngInjectableDef;if(void 0===e){if(t instanceof jl)throw new Error("Token "+tp(t)+" is missing an ngInjectableDef definition.");return Th(function(){return new t})}return Th(e.factory)}function Th(t,e,n){return void 0===e&&(e=_h),void 0===n&&(n=!1),{factory:t,value:e,multi:n?[]:void 0}}function Ph(t,e){t.forEach(function(t){return Array.isArray(t)?Ph(t,e):e(t)})}function Ah(t){return"function"==typeof t}function Nh(t){return"function"==typeof t}var kh=!1,Oh={Promise:void 0,set useDeprecatedSynchronousErrorHandling(t){if(t){var e=new Error;console.warn("DEPRECATED! RxJS was set to use deprecated synchronous error handling behavior by code at: \n"+e.stack)}else kh&&console.log("RxJS: Back to a better error behavior. Thank you. <3");kh=t},get useDeprecatedSynchronousErrorHandling(){return kh}};function Mh(t){setTimeout(function(){throw t})}var Ih={closed:!0,next:function(t){},error:function(t){if(Oh.useDeprecatedSynchronousErrorHandling)throw t;Mh(t)},complete:function(){}},Rh=Array.isArray||function(t){return t&&"number"==typeof t.length};function Dh(t){return null!=t&&"object"==typeof t}var jh,Lh={e:{}};function Fh(){try{return jh.apply(this,arguments)}catch(t){return Lh.e=t,Lh}}function Vh(t){return jh=t,Fh}var Hh=function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Bh=function(t){function e(n){var r=t.call(this,n?n.length+" errors occurred during unsubscription:\n "+n.map(function(t,e){return e+1+") "+t.toString()}).join("\n "):"")||this;return r.errors=n,r.name="UnsubscriptionError",Object.setPrototypeOf(r,e.prototype),r}return Hh(e,t),e}(Error),qh=function(){function t(t){this.closed=!1,this._parent=null,this._parents=null,this._subscriptions=null,t&&(this._unsubscribe=t)}var e;return t.prototype.unsubscribe=function(){var t,e=!1;if(!this.closed){var n=this._parent,r=this._parents,i=this._unsubscribe,o=this._subscriptions;this.closed=!0,this._parent=null,this._parents=null,this._subscriptions=null;for(var s=-1,a=r?r.length:0;n;)n.remove(this),n=++s<a&&r[s]||null;if(Nh(i)&&Vh(i).call(this)===Lh&&(e=!0,t=t||(Lh.e instanceof Bh?Kh(Lh.e.errors):[Lh.e])),Rh(o))for(s=-1,a=o.length;++s<a;){var u=o[s];if(Dh(u)&&Vh(u.unsubscribe).call(u)===Lh){e=!0,t=t||[];var c=Lh.e;c instanceof Bh?t=t.concat(Kh(c.errors)):t.push(c)}}if(e)throw new Bh(t)}},t.prototype.add=function(e){if(!e||e===t.EMPTY)return t.EMPTY;if(e===this)return this;var n=e;switch(typeof e){case"function":n=new t(e);case"object":if(n.closed||"function"!=typeof n.unsubscribe)return n;if(this.closed)return n.unsubscribe(),n;if("function"!=typeof n._addParent){var r=n;(n=new t)._subscriptions=[r]}break;default:throw new Error("unrecognized teardown "+e+" added to Subscription.")}return(this._subscriptions||(this._subscriptions=[])).push(n),n._addParent(this),n},t.prototype.remove=function(t){var e=this._subscriptions;if(e){var n=e.indexOf(t);-1!==n&&e.splice(n,1)}},t.prototype._addParent=function(t){var e=this._parent,n=this._parents;e&&e!==t?n?-1===n.indexOf(t)&&n.push(t):this._parents=[t]:this._parent=t},t.EMPTY=((e=new t).closed=!0,e),t}();function Kh(t){return t.reduce(function(t,e){return t.concat(e instanceof Bh?e.errors:e)},[])}var Uh="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("rxSubscriber"):"@@rxSubscriber",zh=function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Wh=function(t){function e(e,n,r){var i=t.call(this)||this;switch(i.syncErrorValue=null,i.syncErrorThrown=!1,i.syncErrorThrowable=!1,i.isStopped=!1,arguments.length){case 0:i.destination=Ih;break;case 1:if(!e){i.destination=Ih;break}if("object"==typeof e){if(Gh(e)){var o=e[Uh]();i.syncErrorThrowable=o.syncErrorThrowable,i.destination=o,o.add(i)}else i.syncErrorThrowable=!0,i.destination=new Qh(i,e);break}default:i.syncErrorThrowable=!0,i.destination=new Qh(i,e,n,r)}return i}return zh(e,t),e.prototype[Uh]=function(){return this},e.create=function(t,n,r){var i=new e(t,n,r);return i.syncErrorThrowable=!1,i},e.prototype.next=function(t){this.isStopped||this._next(t)},e.prototype.error=function(t){this.isStopped||(this.isStopped=!0,this._error(t))},e.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},e.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,t.prototype.unsubscribe.call(this))},e.prototype._next=function(t){this.destination.next(t)},e.prototype._error=function(t){this.destination.error(t),this.unsubscribe()},e.prototype._complete=function(){this.destination.complete(),this.unsubscribe()},e.prototype._unsubscribeAndRecycle=function(){var t=this._parent,e=this._parents;return this._parent=null,this._parents=null,this.unsubscribe(),this.closed=!1,this.isStopped=!1,this._parent=t,this._parents=e,this},e}(qh),Qh=function(t){function e(e,n,r,i){var o,s=t.call(this)||this;s._parentSubscriber=e;var a=s;return Nh(n)?o=n:n&&(o=n.next,r=n.error,i=n.complete,n!==Ih&&(Nh((a=Object.create(n)).unsubscribe)&&s.add(a.unsubscribe.bind(a)),a.unsubscribe=s.unsubscribe.bind(s))),s._context=a,s._next=o,s._error=r,s._complete=i,s}return zh(e,t),e.prototype.next=function(t){if(!this.isStopped&&this._next){var e=this._parentSubscriber;Oh.useDeprecatedSynchronousErrorHandling&&e.syncErrorThrowable?this.__tryOrSetError(e,this._next,t)&&this.unsubscribe():this.__tryOrUnsub(this._next,t)}},e.prototype.error=function(t){if(!this.isStopped){var e=this._parentSubscriber,n=Oh.useDeprecatedSynchronousErrorHandling;if(this._error)n&&e.syncErrorThrowable?(this.__tryOrSetError(e,this._error,t),this.unsubscribe()):(this.__tryOrUnsub(this._error,t),this.unsubscribe());else if(e.syncErrorThrowable)n?(e.syncErrorValue=t,e.syncErrorThrown=!0):Mh(t),this.unsubscribe();else{if(this.unsubscribe(),n)throw t;Mh(t)}}},e.prototype.complete=function(){var t=this;if(!this.isStopped){var e=this._parentSubscriber;if(this._complete){var n=function(){return t._complete.call(t._context)};Oh.useDeprecatedSynchronousErrorHandling&&e.syncErrorThrowable?(this.__tryOrSetError(e,n),this.unsubscribe()):(this.__tryOrUnsub(n),this.unsubscribe())}else this.unsubscribe()}},e.prototype.__tryOrUnsub=function(t,e){try{t.call(this._context,e)}catch(t){if(this.unsubscribe(),Oh.useDeprecatedSynchronousErrorHandling)throw t;Mh(t)}},e.prototype.__tryOrSetError=function(t,e,n){if(!Oh.useDeprecatedSynchronousErrorHandling)throw new Error("bad call");try{e.call(this._context,n)}catch(e){return Oh.useDeprecatedSynchronousErrorHandling?(t.syncErrorValue=e,t.syncErrorThrown=!0,!0):(Mh(e),!0)}return!1},e.prototype._unsubscribe=function(){var t=this._parentSubscriber;this._context=null,this._parentSubscriber=null,t.unsubscribe()},e}(Wh);function Gh(t){return t instanceof Wh||"syncErrorThrowable"in t&&t[Uh]}var Xh="function"==typeof Symbol&&Symbol.observable||"@@observable";function Yh(){}var Zh=function(){function t(t){this._isScalar=!1,t&&(this._subscribe=t)}return t.prototype.lift=function(e){var n=new t;return n.source=this,n.operator=e,n},t.prototype.subscribe=function(t,e,n){var r=this.operator,i=function o(t,e,n){if(t){if(t instanceof Wh)return t;if(t[Uh])return t[Uh]()}return t||e||n?new Wh(t,e,n):new Wh(Ih)}(t,e,n);if(r?r.call(i,this.source):i.add(this.source||!i.syncErrorThrowable?this._subscribe(i):this._trySubscribe(i)),Oh.useDeprecatedSynchronousErrorHandling&&i.syncErrorThrowable&&(i.syncErrorThrowable=!1,i.syncErrorThrown))throw i.syncErrorValue;return i},t.prototype._trySubscribe=function(t){try{return this._subscribe(t)}catch(e){Oh.useDeprecatedSynchronousErrorHandling&&(t.syncErrorThrown=!0,t.syncErrorValue=e),t.error(e)}},t.prototype.forEach=function(t,e){var n=this;return new(e=$h(e))(function(e,r){var i;i=n.subscribe(function(e){try{t(e)}catch(t){r(t),i&&i.unsubscribe()}},r,e)})},t.prototype._subscribe=function(t){var e=this.source;return e&&e.subscribe(t)},t.prototype[Xh]=function(){return this},t.prototype.pipe=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return 0===t.length?this:function n(t){return t?1===t.length?t[0]:function e(n){return t.reduce(function(t,e){return e(t)},n)}:Yh}(t)(this)},t.prototype.toPromise=function(t){var e=this;return new(t=$h(t))(function(t,n){var r;e.subscribe(function(t){return r=t},function(t){return n(t)},function(){return t(r)})})},t.create=function(e){return new t(e)},t}();function $h(t){if(t||(t=Promise),!t)throw new Error("no Promise impl found");return t}var Jh=function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),tf=function(t){function e(){var n=t.call(this,"object unsubscribed")||this;return n.name="ObjectUnsubscribedError",Object.setPrototypeOf(n,e.prototype),n}return Jh(e,t),e}(Error),ef=function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),nf=function(t){function e(e,n){var r=t.call(this)||this;return r.subject=e,r.subscriber=n,r.closed=!1,r}return ef(e,t),e.prototype.unsubscribe=function(){if(!this.closed){this.closed=!0;var t=this.subject,e=t.observers;if(this.subject=null,e&&0!==e.length&&!t.isStopped&&!t.closed){var n=e.indexOf(this.subscriber);-1!==n&&e.splice(n,1)}}},e}(qh),rf=function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),of=function(t){function e(e){var n=t.call(this,e)||this;return n.destination=e,n}return rf(e,t),e}(Wh),sf=function(t){function e(){var e=t.call(this)||this;return e.observers=[],e.closed=!1,e.isStopped=!1,e.hasError=!1,e.thrownError=null,e}return rf(e,t),e.prototype[Uh]=function(){return new of(this)},e.prototype.lift=function(t){var e=new af(this,this);return e.operator=t,e},e.prototype.next=function(t){if(this.closed)throw new tf;if(!this.isStopped)for(var e=this.observers,n=e.length,r=e.slice(),i=0;i<n;i++)r[i].next(t)},e.prototype.error=function(t){if(this.closed)throw new tf;this.hasError=!0,this.thrownError=t,this.isStopped=!0;for(var e=this.observers,n=e.length,r=e.slice(),i=0;i<n;i++)r[i].error(t);this.observers.length=0},e.prototype.complete=function(){if(this.closed)throw new tf;this.isStopped=!0;for(var t=this.observers,e=t.length,n=t.slice(),r=0;r<e;r++)n[r].complete();this.observers.length=0},e.prototype.unsubscribe=function(){this.isStopped=!0,this.closed=!0,this.observers=null},e.prototype._trySubscribe=function(e){if(this.closed)throw new tf;return t.prototype._trySubscribe.call(this,e)},e.prototype._subscribe=function(t){if(this.closed)throw new tf;return this.hasError?(t.error(this.thrownError),qh.EMPTY):this.isStopped?(t.complete(),qh.EMPTY):(this.observers.push(t),new nf(this,t))},e.prototype.asObservable=function(){var t=new Zh;return t.source=this,t},e.create=function(t,e){return new af(t,e)},e}(Zh),af=function(t){function e(e,n){var r=t.call(this)||this;return r.destination=e,r.source=n,r}return rf(e,t),e.prototype.next=function(t){var e=this.destination;e&&e.next&&e.next(t)},e.prototype.error=function(t){var e=this.destination;e&&e.error&&this.destination.error(t)},e.prototype.complete=function(){var t=this.destination;t&&t.complete&&this.destination.complete()},e.prototype._subscribe=function(t){return this.source?this.source.subscribe(t):qh.EMPTY},e}(sf),uf=function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();function cf(){return function t(e){return e.lift(new lf(e))}}var lf=function(){function t(t){this.connectable=t}return t.prototype.call=function(t,e){var n=this.connectable;n._refCount++;var r=new pf(t,n),i=e.subscribe(r);return r.closed||(r.connection=n.connect()),i},t}(),pf=function(t){function e(e,n){var r=t.call(this,e)||this;return r.connectable=n,r}return uf(e,t),e.prototype._unsubscribe=function(){var t=this.connectable;if(t){this.connectable=null;var e=t._refCount;if(e<=0)this.connection=null;else if(t._refCount=e-1,e>1)this.connection=null;else{var n=this.connection,r=t._connection;this.connection=null,!r||n&&r!==n||r.unsubscribe()}}else this.connection=null},e}(Wh),hf=function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),ff=function(t){function e(e,n){var r=t.call(this)||this;return r.source=e,r.subjectFactory=n,r._refCount=0,r._isComplete=!1,r}return hf(e,t),e.prototype._subscribe=function(t){return this.getSubject().subscribe(t)},e.prototype.getSubject=function(){var t=this._subject;return t&&!t.isStopped||(this._subject=this.subjectFactory()),this._subject},e.prototype.connect=function(){var t=this._connection;return t||(this._isComplete=!1,(t=this._connection=new qh).add(this.source.subscribe(new vf(this.getSubject(),this))),t.closed?(this._connection=null,t=qh.EMPTY):this._connection=t),t},e.prototype.refCount=function(){return cf()(this)},e}(Zh).prototype,df={operator:{value:null},_refCount:{value:0,writable:!0},_subject:{value:null,writable:!0},_connection:{value:null,writable:!0},_subscribe:{value:ff._subscribe},_isComplete:{value:ff._isComplete,writable:!0},getSubject:{value:ff.getSubject},connect:{value:ff.connect},refCount:{value:ff.refCount}},vf=function(t){function e(e,n){var r=t.call(this,e)||this;return r.connectable=n,r}return hf(e,t),e.prototype._error=function(e){this._unsubscribe(),t.prototype._error.call(this,e)},e.prototype._complete=function(){this.connectable._isComplete=!0,this._unsubscribe(),t.prototype._complete.call(this)},e.prototype._unsubscribe=function(){var t=this.connectable;if(t){this.connectable=null;var e=t._connection;t._refCount=0,t._subject=null,t._connection=null,e&&e.unsubscribe()}},e}(of),yf=(function(t){function e(e,n){var r=t.call(this,e)||this;return r.connectable=n,r}hf(e,t),e.prototype._unsubscribe=function(){var t=this.connectable;if(t){this.connectable=null;var e=t._refCount;if(e<=0)this.connection=null;else if(t._refCount=e-1,e>1)this.connection=null;else{var n=this.connection,r=t._connection;this.connection=null,!r||n&&r!==n||r.unsubscribe()}}else this.connection=null}}(Wh),function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}()),mf=(function(t){function e(e,n,r,i,o){var s=t.call(this,e)||this;return s.keySelector=n,s.elementSelector=r,s.durationSelector=i,s.subjectSelector=o,s.groups=null,s.attemptedToUnsubscribe=!1,s.count=0,s}yf(e,t),e.prototype._next=function(t){var e;try{e=this.keySelector(t)}catch(t){return void this.error(t)}this._group(t,e)},e.prototype._group=function(t,e){var n=this.groups;n||(n=this.groups=new Map);var r,i=n.get(e);if(this.elementSelector)try{r=this.elementSelector(t)}catch(t){this.error(t)}else r=t;if(!i){i=this.subjectSelector?this.subjectSelector():new sf,n.set(e,i);var o=new gf(e,i,this);if(this.destination.next(o),this.durationSelector){var s=void 0;try{s=this.durationSelector(new gf(e,i))}catch(t){return void this.error(t)}this.add(s.subscribe(new mf(e,i,this)))}}i.closed||i.next(r)},e.prototype._error=function(t){var e=this.groups;e&&(e.forEach(function(e,n){e.error(t)}),e.clear()),this.destination.error(t)},e.prototype._complete=function(){var t=this.groups;t&&(t.forEach(function(t,e){t.complete()}),t.clear()),this.destination.complete()},e.prototype.removeGroup=function(t){this.groups.delete(t)},e.prototype.unsubscribe=function(){this.closed||(this.attemptedToUnsubscribe=!0,0===this.count&&t.prototype.unsubscribe.call(this))}}(Wh),function(t){function e(e,n,r){var i=t.call(this,n)||this;return i.key=e,i.group=n,i.parent=r,i}return yf(e,t),e.prototype._next=function(t){this.complete()},e.prototype._unsubscribe=function(){var t=this.parent,e=this.key;this.key=this.parent=null,t&&t.removeGroup(e)},e}(Wh)),gf=function(t){function e(e,n,r){var i=t.call(this)||this;return i.key=e,i.groupSubject=n,i.refCountSubscription=r,i}return yf(e,t),e.prototype._subscribe=function(t){var e=new qh,n=this.refCountSubscription,r=this.groupSubject;return n&&!n.closed&&e.add(new _f(n)),e.add(r.subscribe(t)),e},e}(Zh),_f=function(t){function e(e){var n=t.call(this)||this;return n.parent=e,e.count++,n}return yf(e,t),e.prototype.unsubscribe=function(){var e=this.parent;e.closed||this.closed||(t.prototype.unsubscribe.call(this),e.count-=1,0===e.count&&e.attemptedToUnsubscribe&&e.unsubscribe())},e}(qh),bf=function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),wf=(function(t){function e(e){var n=t.call(this)||this;return n._value=e,n}bf(e,t),Object.defineProperty(e.prototype,"value",{get:function(){return this.getValue()},enumerable:!0,configurable:!0}),e.prototype._subscribe=function(e){var n=t.prototype._subscribe.call(this,e);return n&&!n.closed&&e.next(this._value),n},e.prototype.getValue=function(){if(this.hasError)throw this.thrownError;if(this.closed)throw new tf;return this._value},e.prototype.next=function(e){t.prototype.next.call(this,this._value=e)}}(sf),function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}()),xf=function(t){function e(e,n){return t.call(this)||this}return wf(e,t),e.prototype.schedule=function(t,e){return void 0===e&&(e=0),this},e}(qh),Ef=function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Sf=function(t){function e(e,n){var r=t.call(this,e,n)||this;return r.scheduler=e,r.work=n,r.pending=!1,r}return Ef(e,t),e.prototype.schedule=function(t,e){if(void 0===e&&(e=0),this.closed)return this;this.state=t;var n=this.id,r=this.scheduler;return null!=n&&(this.id=this.recycleAsyncId(r,n,e)),this.pending=!0,this.delay=e,this.id=this.id||this.requestAsyncId(r,this.id,e),this},e.prototype.requestAsyncId=function(t,e,n){return void 0===n&&(n=0),setInterval(t.flush.bind(t,this),n)},e.prototype.recycleAsyncId=function(t,e,n){if(void 0===n&&(n=0),null!==n&&this.delay===n&&!1===this.pending)return e;clearInterval(e)},e.prototype.execute=function(t,e){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;var n=this._execute(t,e);if(n)return n;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))},e.prototype._execute=function(t,e){var n=!1,r=void 0;try{this.work(t)}catch(t){n=!0,r=!!t&&t||new Error(t)}if(n)return this.unsubscribe(),r},e.prototype._unsubscribe=function(){var t=this.id,e=this.scheduler,n=e.actions,r=n.indexOf(this);this.work=null,this.state=null,this.pending=!1,this.scheduler=null,-1!==r&&n.splice(r,1),null!=t&&(this.id=this.recycleAsyncId(e,t,null)),this.delay=null},e}(xf),Cf=function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Tf=function(t){function e(e,n){var r=t.call(this,e,n)||this;return r.scheduler=e,r.work=n,r}return Cf(e,t),e.prototype.schedule=function(e,n){return void 0===n&&(n=0),n>0?t.prototype.schedule.call(this,e,n):(this.delay=n,this.state=e,this.scheduler.flush(this),this)},e.prototype.execute=function(e,n){return n>0||this.closed?t.prototype.execute.call(this,e,n):this._execute(e,n)},e.prototype.requestAsyncId=function(e,n,r){return void 0===r&&(r=0),null!==r&&r>0||null===r&&this.delay>0?t.prototype.requestAsyncId.call(this,e,n,r):e.flush(this)},e}(Sf),Pf=function(){function t(e,n){void 0===n&&(n=t.now),this.SchedulerAction=e,this.now=n}return t.prototype.schedule=function(t,e,n){return void 0===e&&(e=0),new this.SchedulerAction(this,t).schedule(n,e)},t.now=Date.now?Date.now:function(){return+new Date},t}(),Af=function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Nf=function(t){function e(n,r){void 0===r&&(r=Pf.now);var i=t.call(this,n,function(){return e.delegate&&e.delegate!==i?e.delegate.now():r()})||this;return i.actions=[],i.active=!1,i.scheduled=void 0,i}return Af(e,t),e.prototype.schedule=function(n,r,i){return void 0===r&&(r=0),e.delegate&&e.delegate!==this?e.delegate.schedule(n,r,i):t.prototype.schedule.call(this,n,r,i)},e.prototype.flush=function(t){var e=this.actions;if(this.active)e.push(t);else{var n;this.active=!0;do{if(n=t.execute(t.state,t.delay))break}while(t=e.shift());if(this.active=!1,n){for(;t=e.shift();)t.unsubscribe();throw n}}},e}(Pf),kf=function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Of=new(function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return kf(e,t),e}(Nf))(Tf),Mf=new Zh(function(t){return t.complete()});function If(t){return t?function e(t){return new Zh(function(e){return t.schedule(function(){return e.complete()})})}(t):Mf}function Rf(t){return t&&"function"==typeof t.schedule}var Df=function(t){return function(e){for(var n=0,r=t.length;n<r&&!e.closed;n++)e.next(t[n]);e.closed||e.complete()}};function jf(t,e){return new Zh(e?function(n){var r=new qh,i=0;return r.add(e.schedule(function(){i!==t.length?(n.next(t[i++]),n.closed||r.add(this.schedule())):n.complete()})),r}:Df(t))}function Lf(t){t.subscriber.error(t.error)}var Ff=function(){function t(t,e,n){this.kind=t,this.value=e,this.error=n,this.hasValue="N"===t}return t.prototype.observe=function(t){switch(this.kind){case"N":return t.next&&t.next(this.value);case"E":return t.error&&t.error(this.error);case"C":return t.complete&&t.complete()}},t.prototype.do=function(t,e,n){switch(this.kind){case"N":return t&&t(this.value);case"E":return e&&e(this.error);case"C":return n&&n()}},t.prototype.accept=function(t,e,n){return t&&"function"==typeof t.next?this.observe(t):this.do(t,e,n)},t.prototype.toObservable=function(){switch(this.kind){case"N":return function t(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n=t[t.length-1];switch(Rf(n)?t.pop():n=void 0,t.length){case 0:return If(n);case 1:return n?jf(t,n):function r(t){var e=new Zh(function(e){e.next(t),e.complete()});return e._isScalar=!0,e.value=t,e}(t[0]);default:return jf(t,n)}}(this.value);case"E":return function e(t,n){return new Zh(n?function(e){return n.schedule(Lf,0,{error:t,subscriber:e})}:function(e){return e.error(t)})}(this.error);case"C":return If()}throw new Error("unexpected notification kind value")},t.createNext=function(e){return void 0!==e?new t("N",e):t.undefinedValueNotification},t.createError=function(e){return new t("E",void 0,e)},t.createComplete=function(){return t.completeNotification},t.completeNotification=new t("C"),t.undefinedValueNotification=new t("N",void 0),t}(),Vf=function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Hf=function(t){function e(e,n,r){void 0===r&&(r=0);var i=t.call(this,e)||this;return i.scheduler=n,i.delay=r,i}return Vf(e,t),e.dispatch=function(t){t.notification.observe(t.destination),this.unsubscribe()},e.prototype.scheduleMessage=function(t){this.add(this.scheduler.schedule(e.dispatch,this.delay,new Bf(t,this.destination)))},e.prototype._next=function(t){this.scheduleMessage(Ff.createNext(t))},e.prototype._error=function(t){this.scheduleMessage(Ff.createError(t))},e.prototype._complete=function(){this.scheduleMessage(Ff.createComplete())},e}(Wh),Bf=function Bf(t,e){this.notification=t,this.destination=e},qf=function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Kf=(function(t){function e(e,n,r){void 0===e&&(e=Number.POSITIVE_INFINITY),void 0===n&&(n=Number.POSITIVE_INFINITY);var i=t.call(this)||this;return i.scheduler=r,i._events=[],i._infiniteTimeWindow=!1,i._bufferSize=e<1?1:e,i._windowTime=n<1?1:n,n===Number.POSITIVE_INFINITY?(i._infiniteTimeWindow=!0,i.next=i.nextInfiniteTimeWindow):i.next=i.nextTimeWindow,i}qf(e,t),e.prototype.nextInfiniteTimeWindow=function(e){var n=this._events;n.push(e),n.length>this._bufferSize&&n.shift(),t.prototype.next.call(this,e)},e.prototype.nextTimeWindow=function(e){this._events.push(new Kf(this._getNow(),e)),this._trimBufferThenGetEvents(),t.prototype.next.call(this,e)},e.prototype._subscribe=function(t){var e,n=this._infiniteTimeWindow,r=n?this._events:this._trimBufferThenGetEvents(),i=this.scheduler,o=r.length;if(this.closed)throw new tf;if(this.isStopped||this.hasError?e=qh.EMPTY:(this.observers.push(t),e=new nf(this,t)),i&&t.add(t=new Hf(t,i)),n)for(var s=0;s<o&&!t.closed;s++)t.next(r[s]);else for(s=0;s<o&&!t.closed;s++)t.next(r[s].value);return this.hasError?t.error(this.thrownError):this.isStopped&&t.complete(),e},e.prototype._getNow=function(){return(this.scheduler||Of).now()},e.prototype._trimBufferThenGetEvents=function(){for(var t=this._getNow(),e=this._bufferSize,n=this._windowTime,r=this._events,i=r.length,o=0;o<i&&!(t-r[o].time<n);)o++;return i>e&&(o=Math.max(o,i-e)),o>0&&r.splice(0,o),r}}(sf),function Kf(t,e){this.time=t,this.value=e}),Uf=function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),zf=(function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.value=null,e.hasNext=!1,e.hasCompleted=!1,e}Uf(e,t),e.prototype._subscribe=function(e){return this.hasError?(e.error(this.thrownError),qh.EMPTY):this.hasCompleted&&this.hasNext?(e.next(this.value),e.complete(),qh.EMPTY):t.prototype._subscribe.call(this,e)},e.prototype.next=function(t){this.hasCompleted||(this.value=t,this.hasNext=!0)},e.prototype.error=function(e){this.hasCompleted||t.prototype.error.call(this,e)},e.prototype.complete=function(){this.hasCompleted=!0,this.hasNext&&t.prototype.next.call(this,this.value),t.prototype.complete.call(this)}}(sf),0),Wf={},Qf=function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Gf=function(t){function e(e,n){var r=t.call(this,e,n)||this;return r.scheduler=e,r.work=n,r}return Qf(e,t),e.prototype.requestAsyncId=function(e,n,r){return void 0===r&&(r=0),null!==r&&r>0?t.prototype.requestAsyncId.call(this,e,n,r):(e.actions.push(this),e.scheduled||(e.scheduled=(i=e.flush.bind(e,null),o=zf++,Wf[o]=i,Promise.resolve().then(function(){return function t(e){var n=Wf[e];n&&n()}(o)}),o)));var i,o},e.prototype.recycleAsyncId=function(e,n,r){if(void 0===r&&(r=0),null!==r&&r>0||null===r&&this.delay>0)return t.prototype.recycleAsyncId.call(this,e,n,r);0===e.actions.length&&(delete Wf[n],e.scheduled=void 0)},e}(Sf),Xf=function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Yf=new(function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Xf(e,t),e.prototype.flush=function(t){this.active=!0,this.scheduled=void 0;var e,n=this.actions,r=-1,i=n.length;t=t||n.shift();do{if(e=t.execute(t.state,t.delay))break}while(++r<i&&(t=n.shift()));if(this.active=!1,e){for(;++r<i&&(t=n.shift());)t.unsubscribe();throw e}},e}(Nf))(Gf),Zf=(new Nf(Sf),function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}()),$f=function(t){function e(e,n){var r=t.call(this,e,n)||this;return r.scheduler=e,r.work=n,r}return Zf(e,t),e.prototype.requestAsyncId=function(e,n,r){return void 0===r&&(r=0),null!==r&&r>0?t.prototype.requestAsyncId.call(this,e,n,r):(e.actions.push(this),e.scheduled||(e.scheduled=requestAnimationFrame(function(){return e.flush(null)})))},e.prototype.recycleAsyncId=function(e,n,r){if(void 0===r&&(r=0),null!==r&&r>0||null===r&&this.delay>0)return t.prototype.recycleAsyncId.call(this,e,n,r);0===e.actions.length&&(cancelAnimationFrame(n),e.scheduled=void 0)},e}(Sf),Jf=function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),td=(new(function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Jf(e,t),e.prototype.flush=function(t){this.active=!0,this.scheduled=void 0;var e,n=this.actions,r=-1,i=n.length;t=t||n.shift();do{if(e=t.execute(t.state,t.delay))break}while(++r<i&&(t=n.shift()));if(this.active=!1,e){for(;++r<i&&(t=n.shift());)t.unsubscribe();throw e}},e}(Nf))($f),function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}()),ed=(function(t){function e(e,n){void 0===e&&(e=ed),void 0===n&&(n=Number.POSITIVE_INFINITY);var r=t.call(this,e,function(){return r.frame})||this;return r.maxFrames=n,r.frame=0,r.index=-1,r}td(e,t),e.prototype.flush=function(){for(var t,e,n=this.actions,r=this.maxFrames;(e=n.shift())&&(this.frame=e.delay)<=r&&!(t=e.execute(e.state,e.delay)););if(t){for(;e=n.shift();)e.unsubscribe();throw t}},e.frameTimeFactor=10}(Nf),function(t){function e(e,n,r){void 0===r&&(r=e.index+=1);var i=t.call(this,e,n)||this;return i.scheduler=e,i.work=n,i.index=r,i.active=!0,i.index=e.index=r,i}return td(e,t),e.prototype.schedule=function(n,r){if(void 0===r&&(r=0),!this.id)return t.prototype.schedule.call(this,n,r);this.active=!1;var i=new e(this.scheduler,this.work);return this.add(i),i.schedule(n,r)},e.prototype.requestAsyncId=function(t,n,r){void 0===r&&(r=0),this.delay=t.frame+r;var i=t.actions;return i.push(this),i.sort(e.sortActions),!0},e.prototype.recycleAsyncId=function(t,e,n){void 0===n&&(n=0)},e.prototype._execute=function(e,n){if(!0===this.active)return t.prototype._execute.call(this,e,n)},e.sortActions=function(t,e){return t.delay===e.delay?t.index===e.index?0:t.index>e.index?1:-1:t.delay>e.delay?1:-1},e}(Sf));function nd(t){return t}var rd,id=function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),od=(rd=Error,id(function t(){var e=rd.call(this,"argument out of range")||this;return e.name="ArgumentOutOfRangeError",Object.setPrototypeOf(e,t.prototype),e},rd),function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}()),sd=function(t){function e(){var n=t.call(this,"no elements in sequence")||this;return n.name="EmptyError",Object.setPrototypeOf(n,e.prototype),n}return od(e,t),e}(Error),ad=function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),ud=(function(t){ad(function e(){var n=t.call(this,"Timeout has occurred")||this;return Object.setPrototypeOf(n,e.prototype),n},t)}(Error),function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}()),cd=function(){function t(t,e){this.project=t,this.thisArg=e}return t.prototype.call=function(t,e){return e.subscribe(new ld(t,this.project,this.thisArg))},t}(),ld=function(t){function e(e,n,r){var i=t.call(this,e)||this;return i.project=n,i.count=0,i.thisArg=r||i,i}return ud(e,t),e.prototype._next=function(t){var e;try{e=this.project.call(this.thisArg,t,this.count++)}catch(t){return void this.destination.error(t)}this.destination.next(e)},e}(Wh),pd=function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),hd=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return pd(e,t),e.prototype.notifyNext=function(t,e,n,r,i){this.destination.next(e)},e.prototype.notifyError=function(t,e){this.destination.error(t)},e.prototype.notifyComplete=function(t){this.destination.complete()},e}(Wh),fd=function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),dd=function(t){function e(e,n,r){var i=t.call(this)||this;return i.parent=e,i.outerValue=n,i.outerIndex=r,i.index=0,i}return fd(e,t),e.prototype._next=function(t){this.parent.notifyNext(this.outerValue,t,this.outerIndex,this.index++,this)},e.prototype._error=function(t){this.parent.notifyError(t,this),this.unsubscribe()},e.prototype._complete=function(){this.parent.notifyComplete(this),this.unsubscribe()},e}(Wh),vd=function(t){return function(e){return t.then(function(t){e.closed||(e.next(t),e.complete())},function(t){return e.error(t)}).then(null,Mh),e}},yd=function md(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}(),gd=function(t){return function(e){for(var n=t[yd]();;){var r=n.next();if(r.done){e.complete();break}if(e.next(r.value),e.closed)break}return"function"==typeof n.return&&e.add(function(){n.return&&n.return()}),e}},_d=function(t){return function(e){var n=t[Xh]();if("function"!=typeof n.subscribe)throw new TypeError("Provided object does not correctly implement Symbol.observable");return n.subscribe(e)}},bd=function(t){return t&&"number"==typeof t.length&&"function"!=typeof t};function wd(t){return t&&"function"!=typeof t.subscribe&&"function"==typeof t.then}var xd=function(t){if(t instanceof Zh)return function(e){return t._isScalar?(e.next(t.value),void e.complete()):t.subscribe(e)};if(bd(t))return Df(t);if(wd(t))return vd(t);if(t&&"function"==typeof t[yd])return gd(t);if(t&&"function"==typeof t[Xh])return _d(t);var e=Dh(t)?"an invalid object":"'"+t+"'";throw new TypeError("You provided "+e+" where a stream was expected. You can provide an Observable, Promise, Array, or Iterable.")};function Ed(t,e,n,r){var i=new dd(t,n,r);return xd(e)(i)}var Sd=function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Cd={};!function(t){function e(e,n){var r=t.call(this,e)||this;return r.resultSelector=n,r.active=0,r.values=[],r.observables=[],r}Sd(e,t),e.prototype._next=function(t){this.values.push(Cd),this.observables.push(t)},e.prototype._complete=function(){var t=this.observables,e=t.length;if(0===e)this.destination.complete();else{this.active=e,this.toRespond=e;for(var n=0;n<e;n++){var r=t[n];this.add(Ed(this,r,r,n))}}},e.prototype.notifyComplete=function(t){0==(this.active-=1)&&this.destination.complete()},e.prototype.notifyNext=function(t,e,n,r,i){var o=this.values,s=this.toRespond?o[n]===Cd?--this.toRespond:this.toRespond:0;o[n]=e,0===s&&(this.resultSelector?this._tryResultSelector(o):this.destination.next(o.slice()))},e.prototype._tryResultSelector=function(t){var e;try{e=this.resultSelector.apply(this,t)}catch(t){return void this.destination.error(t)}this.destination.next(e)}}(hd);var Td=function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();var Pd=function(){function t(t,e){void 0===e&&(e=Number.POSITIVE_INFINITY),this.project=t,this.concurrent=e}return t.prototype.call=function(t,e){return e.subscribe(new Ad(t,this.project,this.concurrent))},t}(),Ad=function(t){function e(e,n,r){void 0===r&&(r=Number.POSITIVE_INFINITY);var i=t.call(this,e)||this;return i.project=n,i.concurrent=r,i.hasCompleted=!1,i.buffer=[],i.active=0,i.index=0,i}return Td(e,t),e.prototype._next=function(t){this.active<this.concurrent?this._tryNext(t):this.buffer.push(t)},e.prototype._tryNext=function(t){var e,n=this.index++;try{e=this.project(t,n)}catch(t){return void this.destination.error(t)}this.active++,this._innerSub(e,t,n)},e.prototype._innerSub=function(t,e,n){this.add(Ed(this,t,e,n))},e.prototype._complete=function(){this.hasCompleted=!0,0===this.active&&0===this.buffer.length&&this.destination.complete()},e.prototype.notifyNext=function(t,e,n,r,i){this.destination.next(e)},e.prototype.notifyComplete=function(t){var e=this.buffer;this.remove(t),this.active--,e.length>0?this._next(e.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()},e}(hd),Nd=function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();!function(t){function e(e,n){var r=t.call(this,e)||this;r.sources=n,r.completed=0,r.haveValues=0;var i=n.length;r.values=new Array(i);for(var o=0;o<i;o++){var s=Ed(r,n[o],null,o);s&&r.add(s)}return r}Nd(e,t),e.prototype.notifyNext=function(t,e,n,r,i){this.values[n]=e,i._hasValue||(i._hasValue=!0,this.haveValues++)},e.prototype.notifyComplete=function(t){var e=this.destination,n=this.haveValues,r=this.values,i=r.length;t._hasValue?(this.completed++,this.completed===i&&(n===i&&e.next(r),e.complete())):e.complete()}}(hd),new Zh(Yh);var kd=function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Od=(function(t){function e(e){var n=t.call(this,e)||this;return n.hasFirst=!1,n.observables=[],n.subscriptions=[],n}kd(e,t),e.prototype._next=function(t){this.observables.push(t)},e.prototype._complete=function(){var t=this.observables,e=t.length;if(0===e)this.destination.complete();else{for(var n=0;n<e&&!this.hasFirst;n++){var r=t[n],i=Ed(this,r,r,n);this.subscriptions&&this.subscriptions.push(i),this.add(i)}this.observables=null}},e.prototype.notifyNext=function(t,e,n,r,i){if(!this.hasFirst){this.hasFirst=!0;for(var o=0;o<this.subscriptions.length;o++)if(o!==n){var s=this.subscriptions[o];s.unsubscribe(),this.remove(s)}this.subscriptions=null}this.destination.next(e)}}(hd),function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}()),Md=(function(t){function e(e,n,r){void 0===r&&(r=Object.create(null));var i=t.call(this,e)||this;return i.iterators=[],i.active=0,i.resultSelector="function"==typeof n?n:null,i.values=r,i}Od(e,t),e.prototype._next=function(t){var e=this.iterators;Rh(t)?e.push(new Id(t)):e.push("function"==typeof t[yd]?new Md(t[yd]()):new Rd(this.destination,this,t))},e.prototype._complete=function(){var t=this.iterators,e=t.length;if(0!==e){this.active=e;for(var n=0;n<e;n++){var r=t[n];r.stillUnsubscribed?this.add(r.subscribe(r,n)):this.active--}}else this.destination.complete()},e.prototype.notifyInactive=function(){this.active--,0===this.active&&this.destination.complete()},e.prototype.checkIterators=function(){for(var t=this.iterators,e=t.length,n=this.destination,r=0;r<e;r++)if("function"==typeof(s=t[r]).hasValue&&!s.hasValue())return;var i=!1,o=[];for(r=0;r<e;r++){var s,a=(s=t[r]).next();if(s.hasCompleted()&&(i=!0),a.done)return void n.complete();o.push(a.value)}this.resultSelector?this._tryresultSelector(o):n.next(o),i&&n.complete()},e.prototype._tryresultSelector=function(t){var e;try{e=this.resultSelector.apply(this,t)}catch(t){return void this.destination.error(t)}this.destination.next(e)}}(Wh),function(){function t(t){this.iterator=t,this.nextResult=t.next()}return t.prototype.hasValue=function(){return!0},t.prototype.next=function(){var t=this.nextResult;return this.nextResult=this.iterator.next(),t},t.prototype.hasCompleted=function(){var t=this.nextResult;return t&&t.done},t}()),Id=function(){function t(t){this.array=t,this.index=0,this.length=0,this.length=t.length}return t.prototype[yd]=function(){return this},t.prototype.next=function(t){var e=this.index++;return e<this.length?{value:this.array[e],done:!1}:{value:null,done:!0}},t.prototype.hasValue=function(){return this.array.length>this.index},t.prototype.hasCompleted=function(){return this.array.length===this.index},t}(),Rd=function(t){function e(e,n,r){var i=t.call(this,e)||this;return i.parent=n,i.observable=r,i.stillUnsubscribed=!0,i.buffer=[],i.isComplete=!1,i}return Od(e,t),e.prototype[yd]=function(){return this},e.prototype.next=function(){var t=this.buffer;return 0===t.length&&this.isComplete?{value:null,done:!0}:{value:t.shift(),done:!1}},e.prototype.hasValue=function(){return this.buffer.length>0},e.prototype.hasCompleted=function(){return 0===this.buffer.length&&this.isComplete},e.prototype.notifyComplete=function(){this.buffer.length>0?(this.isComplete=!0,this.parent.notifyInactive()):this.destination.complete()},e.prototype.notifyNext=function(t,e,n,r,i){this.buffer.push(e),this.parent.checkIterators()},e.prototype.subscribe=function(t,e){return Ed(this,this.observable,this,e)},e}(hd),Dd=function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),jd=(function(t){function e(e,n){var r=t.call(this,e)||this;return r.durationSelector=n,r.hasValue=!1,r}Dd(e,t),e.prototype._next=function(t){if(this.value=t,this.hasValue=!0,!this.throttled){var e=Vh(this.durationSelector)(t);if(e===Lh)this.destination.error(Lh.e);else{var n=Ed(this,e);n.closed?this.clearThrottle():this.add(this.throttled=n)}}},e.prototype.clearThrottle=function(){var t=this.value,e=this.hasValue,n=this.throttled;n&&(this.remove(n),this.throttled=null,n.unsubscribe()),e&&(this.value=null,this.hasValue=!1,this.destination.next(t))},e.prototype.notifyNext=function(t,e,n,r){this.clearThrottle()},e.prototype.notifyComplete=function(){this.clearThrottle()}}(hd),function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}()),Ld=(function(t){function e(e,n){var r=t.call(this,e)||this;return r.buffer=[],r.add(Ed(r,n)),r}jd(e,t),e.prototype._next=function(t){this.buffer.push(t)},e.prototype.notifyNext=function(t,e,n,r,i){var o=this.buffer;this.buffer=[],this.destination.next(o)}}(hd),function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}()),Fd=(function(t){function e(e,n){var r=t.call(this,e)||this;return r.bufferSize=n,r.buffer=[],r}Ld(e,t),e.prototype._next=function(t){var e=this.buffer;e.push(t),e.length==this.bufferSize&&(this.destination.next(e),this.buffer=[])},e.prototype._complete=function(){var e=this.buffer;e.length>0&&this.destination.next(e),t.prototype._complete.call(this)}}(Wh),function(t){function e(e,n,r){var i=t.call(this,e)||this;return i.bufferSize=n,i.startBufferEvery=r,i.buffers=[],i.count=0,i}Ld(e,t),e.prototype._next=function(t){var e=this.bufferSize,n=this.startBufferEvery,r=this.buffers,i=this.count;this.count++,i%n==0&&r.push([]);for(var o=r.length;o--;){var s=r[o];s.push(t),s.length===e&&(r.splice(o,1),this.destination.next(s))}},e.prototype._complete=function(){for(var e=this.buffers,n=this.destination;e.length>0;){var r=e.shift();r.length>0&&n.next(r)}t.prototype._complete.call(this)}}(Wh),function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}()),Vd=function Vd(){this.buffer=[]};function Hd(t){var e=t.subscriber,n=t.context;n&&e.closeContext(n),e.closed||(t.context=e.openContext(),t.context.closeAction=this.schedule(t,t.bufferTimeSpan))}function Bd(t){var e=t.bufferCreationInterval,n=t.bufferTimeSpan,r=t.subscriber,i=t.scheduler,o=r.openContext();r.closed||(r.add(o.closeAction=i.schedule(qd,n,{subscriber:r,context:o})),this.schedule(t,e))}function qd(t){t.subscriber.closeContext(t.context)}!function(t){function e(e,n,r,i,o){var s=t.call(this,e)||this;s.bufferTimeSpan=n,s.bufferCreationInterval=r,s.maxBufferSize=i,s.scheduler=o,s.contexts=[];var a=s.openContext();if(s.timespanOnly=null==r||r<0,s.timespanOnly)s.add(a.closeAction=o.schedule(Hd,n,{subscriber:s,context:a,bufferTimeSpan:n}));else{var u={bufferTimeSpan:n,bufferCreationInterval:r,subscriber:s,scheduler:o};s.add(a.closeAction=o.schedule(qd,n,{subscriber:s,context:a})),s.add(o.schedule(Bd,r,u))}return s}Fd(e,t),e.prototype._next=function(t){for(var e,n=this.contexts,r=n.length,i=0;i<r;i++){var o=n[i],s=o.buffer;s.push(t),s.length==this.maxBufferSize&&(e=o)}e&&this.onBufferFull(e)},e.prototype._error=function(e){this.contexts.length=0,t.prototype._error.call(this,e)},e.prototype._complete=function(){for(var e=this.contexts,n=this.destination;e.length>0;){var r=e.shift();n.next(r.buffer)}t.prototype._complete.call(this)},e.prototype._unsubscribe=function(){this.contexts=null},e.prototype.onBufferFull=function(t){this.closeContext(t);var e=t.closeAction;if(e.unsubscribe(),this.remove(e),!this.closed&&this.timespanOnly){t=this.openContext();var n=this.bufferTimeSpan;this.add(t.closeAction=this.scheduler.schedule(Hd,n,{subscriber:this,context:t,bufferTimeSpan:n}))}},e.prototype.openContext=function(){var t=new Vd;return this.contexts.push(t),t},e.prototype.closeContext=function(t){this.destination.next(t.buffer);var e=this.contexts;(e?e.indexOf(t):-1)>=0&&e.splice(e.indexOf(t),1)}}(Wh);var Kd=function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Ud=(function(t){function e(e,n,r){var i=t.call(this,e)||this;return i.openings=n,i.closingSelector=r,i.contexts=[],i.add(Ed(i,n)),i}Kd(e,t),e.prototype._next=function(t){for(var e=this.contexts,n=e.length,r=0;r<n;r++)e[r].buffer.push(t)},e.prototype._error=function(e){for(var n=this.contexts;n.length>0;){var r=n.shift();r.subscription.unsubscribe(),r.buffer=null,r.subscription=null}this.contexts=null,t.prototype._error.call(this,e)},e.prototype._complete=function(){for(var e=this.contexts;e.length>0;){var n=e.shift();this.destination.next(n.buffer),n.subscription.unsubscribe(),n.buffer=null,n.subscription=null}this.contexts=null,t.prototype._complete.call(this)},e.prototype.notifyNext=function(t,e,n,r,i){t?this.closeBuffer(t):this.openBuffer(e)},e.prototype.notifyComplete=function(t){this.closeBuffer(t.context)},e.prototype.openBuffer=function(t){try{var e=this.closingSelector.call(this,t);e&&this.trySubscribe(e)}catch(t){this._error(t)}},e.prototype.closeBuffer=function(t){var e=this.contexts;if(e&&t){var n=t.subscription;this.destination.next(t.buffer),e.splice(e.indexOf(t),1),this.remove(n),n.unsubscribe()}},e.prototype.trySubscribe=function(t){var e=this.contexts,n=new qh,r={buffer:[],subscription:n};e.push(r);var i=Ed(this,t,r);!i||i.closed?this.closeBuffer(r):(i.context=r,this.add(i),n.add(i))}}(hd),function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}()),zd=(function(t){function e(e,n){var r=t.call(this,e)||this;return r.closingSelector=n,r.subscribing=!1,r.openBuffer(),r}Ud(e,t),e.prototype._next=function(t){this.buffer.push(t)},e.prototype._complete=function(){var e=this.buffer;e&&this.destination.next(e),t.prototype._complete.call(this)},e.prototype._unsubscribe=function(){this.buffer=null,this.subscribing=!1},e.prototype.notifyNext=function(t,e,n,r,i){this.openBuffer()},e.prototype.notifyComplete=function(){this.subscribing?this.complete():this.openBuffer()},e.prototype.openBuffer=function(){var t=this.closingSubscription;t&&(this.remove(t),t.unsubscribe()),this.buffer&&this.destination.next(this.buffer),this.buffer=[];var e=Vh(this.closingSelector)();e===Lh?this.error(Lh.e):(t=new qh,this.closingSubscription=t,this.add(t),this.subscribing=!0,t.add(Ed(this,e)),this.subscribing=!1)}}(hd),function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}()),Wd=(function(t){function e(e,n,r){var i=t.call(this,e)||this;return i.selector=n,i.caught=r,i}zd(e,t),e.prototype.error=function(e){if(!this.isStopped){var n=void 0;try{n=this.selector(e,this.caught)}catch(e){return void t.prototype.error.call(this,e)}this._unsubscribeAndRecycle(),this.add(Ed(this,n))}}}(hd),function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}()),Qd=(function(t){function e(e,n,r){var i=t.call(this,e)||this;return i.predicate=n,i.source=r,i.count=0,i.index=0,i}Wd(e,t),e.prototype._next=function(t){this.predicate?this._tryPredicate(t):this.count++},e.prototype._tryPredicate=function(t){var e;try{e=this.predicate(t,this.index++,this.source)}catch(t){return void this.destination.error(t)}e&&this.count++},e.prototype._complete=function(){this.destination.next(this.count),this.destination.complete()}}(Wh),function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}()),Gd=(function(t){function e(e,n){var r=t.call(this,e)||this;return r.durationSelector=n,r.hasValue=!1,r.durationSubscription=null,r}Qd(e,t),e.prototype._next=function(t){try{var e=this.durationSelector.call(this,t);e&&this._tryNext(t,e)}catch(t){this.destination.error(t)}},e.prototype._complete=function(){this.emitValue(),this.destination.complete()},e.prototype._tryNext=function(t,e){var n=this.durationSubscription;this.value=t,this.hasValue=!0,n&&(n.unsubscribe(),this.remove(n)),(n=Ed(this,e))&&!n.closed&&this.add(this.durationSubscription=n)},e.prototype.notifyNext=function(t,e,n,r,i){this.emitValue()},e.prototype.notifyComplete=function(){this.emitValue()},e.prototype.emitValue=function(){if(this.hasValue){var e=this.value,n=this.durationSubscription;n&&(this.durationSubscription=null,n.unsubscribe(),this.remove(n)),this.value=null,this.hasValue=!1,t.prototype._next.call(this,e)}}}(hd),function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}());function Xd(t){t.debouncedNext()}!function(t){function e(e,n,r){var i=t.call(this,e)||this;return i.dueTime=n,i.scheduler=r,i.debouncedSubscription=null,i.lastValue=null,i.hasValue=!1,i}Gd(e,t),e.prototype._next=function(t){this.clearDebounce(),this.lastValue=t,this.hasValue=!0,this.add(this.debouncedSubscription=this.scheduler.schedule(Xd,this.dueTime,this))},e.prototype._complete=function(){this.debouncedNext(),this.destination.complete()},e.prototype.debouncedNext=function(){if(this.clearDebounce(),this.hasValue){var t=this.lastValue;this.lastValue=null,this.hasValue=!1,this.destination.next(t)}},e.prototype.clearDebounce=function(){var t=this.debouncedSubscription;null!==t&&(this.remove(t),t.unsubscribe(),this.debouncedSubscription=null)}}(Wh);var Yd=function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Zd=(function(t){function e(e,n){var r=t.call(this,e)||this;return r.defaultValue=n,r.isEmpty=!0,r}Yd(e,t),e.prototype._next=function(t){this.isEmpty=!1,this.destination.next(t)},e.prototype._complete=function(){this.isEmpty&&this.destination.next(this.defaultValue),this.destination.complete()}}(Wh),function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}()),$d=(function(t){function e(e,n,r){var i=t.call(this,e)||this;return i.delay=n,i.scheduler=r,i.queue=[],i.active=!1,i.errored=!1,i}Zd(e,t),e.dispatch=function(t){for(var e=t.source,n=e.queue,r=t.scheduler,i=t.destination;n.length>0&&n[0].time-r.now()<=0;)n.shift().notification.observe(i);if(n.length>0){var o=Math.max(0,n[0].time-r.now());this.schedule(t,o)}else e.active=!1},e.prototype._schedule=function(t){this.active=!0,this.add(t.schedule(e.dispatch,this.delay,{source:this,destination:this.destination,scheduler:t}))},e.prototype.scheduleNotification=function(t){if(!0!==this.errored){var e=this.scheduler,n=new $d(e.now()+this.delay,t);this.queue.push(n),!1===this.active&&this._schedule(e)}},e.prototype._next=function(t){this.scheduleNotification(Ff.createNext(t))},e.prototype._error=function(t){this.errored=!0,this.queue=[],this.destination.error(t)},e.prototype._complete=function(){this.scheduleNotification(Ff.createComplete())}}(Wh),function $d(t,e){this.time=t,this.notification=e}),Jd=function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),tv=(function(t){function e(e,n){var r=t.call(this,e)||this;return r.delayDurationSelector=n,r.completed=!1,r.delayNotifierSubscriptions=[],r.values=[],r}Jd(e,t),e.prototype.notifyNext=function(t,e,n,r,i){this.destination.next(t),this.removeSubscription(i),this.tryComplete()},e.prototype.notifyError=function(t,e){this._error(t)},e.prototype.notifyComplete=function(t){var e=this.removeSubscription(t);e&&this.destination.next(e),this.tryComplete()},e.prototype._next=function(t){try{var e=this.delayDurationSelector(t);e&&this.tryDelay(e,t)}catch(t){this.destination.error(t)}},e.prototype._complete=function(){this.completed=!0,this.tryComplete()},e.prototype.removeSubscription=function(t){t.unsubscribe();var e=this.delayNotifierSubscriptions.indexOf(t),n=null;return-1!==e&&(n=this.values[e],this.delayNotifierSubscriptions.splice(e,1),this.values.splice(e,1)),n},e.prototype.tryDelay=function(t,e){var n=Ed(this,t,e);n&&!n.closed&&(this.add(n),this.delayNotifierSubscriptions.push(n)),this.values.push(e)},e.prototype.tryComplete=function(){this.completed&&0===this.delayNotifierSubscriptions.length&&this.destination.complete()}}(hd),function(t){function e(e,n){var r=t.call(this)||this;return r.source=e,r.subscriptionDelay=n,r}Jd(e,t),e.prototype._subscribe=function(t){this.subscriptionDelay.subscribe(new tv(t,this.source))}}(Zh),function(t){function e(e,n){var r=t.call(this)||this;return r.parent=e,r.source=n,r.sourceSubscribed=!1,r}return Jd(e,t),e.prototype._next=function(t){this.subscribeToSource()},e.prototype._error=function(t){this.unsubscribe(),this.parent.error(t)},e.prototype._complete=function(){this.subscribeToSource()},e.prototype.subscribeToSource=function(){this.sourceSubscribed||(this.sourceSubscribed=!0,this.unsubscribe(),this.source.subscribe(this.parent))},e}(Wh)),ev=function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),nv=(function(t){function e(e){return t.call(this,e)||this}ev(e,t),e.prototype._next=function(t){t.observe(this.destination)}}(Wh),function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}()),rv=(function(t){function e(e,n,r){var i=t.call(this,e)||this;return i.keySelector=n,i.values=new Set,r&&i.add(Ed(i,r)),i}nv(e,t),e.prototype.notifyNext=function(t,e,n,r,i){this.values.clear()},e.prototype.notifyError=function(t,e){this._error(t)},e.prototype._next=function(t){this.keySelector?this._useKeySelector(t):this._finalizeNext(t,t)},e.prototype._useKeySelector=function(t){var e,n=this.destination;try{e=this.keySelector(t)}catch(t){return void n.error(t)}this._finalizeNext(e,t)},e.prototype._finalizeNext=function(t,e){var n=this.values;n.has(t)||(n.add(t),this.destination.next(e))}}(hd),function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}()),iv=(function(t){function e(e,n,r){var i=t.call(this,e)||this;return i.keySelector=r,i.hasKey=!1,"function"==typeof n&&(i.compare=n),i}rv(e,t),e.prototype.compare=function(t,e){return t===e},e.prototype._next=function(t){var e=t;if(this.keySelector&&(e=Vh(this.keySelector)(t))===Lh)return this.destination.error(Lh.e);var n=!1;if(this.hasKey){if((n=Vh(this.compare)(this.key,e))===Lh)return this.destination.error(Lh.e)}else this.hasKey=!0;!1===Boolean(n)&&(this.key=e,this.destination.next(t))}}(Wh),function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}()),ov=(function(t){function e(e,n,r){var i=t.call(this,e)||this;return i.predicate=n,i.thisArg=r,i.count=0,i}iv(e,t),e.prototype._next=function(t){var e;try{e=this.predicate.call(this.thisArg,t,this.count++)}catch(t){return void this.destination.error(t)}e&&this.destination.next(t)}}(Wh),function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}()),sv=(function(t){function e(e,n,r,i){var o=t.call(this,e)||this;return o._tapNext=Yh,o._tapError=Yh,o._tapComplete=Yh,o._tapError=r||Yh,o._tapComplete=i||Yh,Nh(n)?(o._context=o,o._tapNext=n):n&&(o._context=n,o._tapNext=n.next||Yh,o._tapError=n.error||Yh,o._tapComplete=n.complete||Yh),o}ov(e,t),e.prototype._next=function(t){try{this._tapNext.call(this._context,t)}catch(t){return void this.destination.error(t)}this.destination.next(t)},e.prototype._error=function(t){try{this._tapError.call(this._context,t)}catch(t){return void this.destination.error(t)}this.destination.error(t)},e.prototype._complete=function(){try{this._tapComplete.call(this._context)}catch(t){return void this.destination.error(t)}return this.destination.complete()}}(Wh),function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}()),av=(function(t){function e(e,n){var r=t.call(this,e)||this;return r.total=n,r.count=0,r}sv(e,t),e.prototype._next=function(t){var e=this.total,n=++this.count;n<=e&&(this.destination.next(t),n===e&&(this.destination.complete(),this.unsubscribe()))}}(Wh),function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}()),uv=(function(t){function e(e,n,r,i){var o=t.call(this,e)||this;return o.predicate=n,o.thisArg=r,o.source=i,o.index=0,o.thisArg=r||o,o}av(e,t),e.prototype.notifyComplete=function(t){this.destination.next(t),this.destination.complete()},e.prototype._next=function(t){var e=!1;try{e=this.predicate.call(this.thisArg,t,this.index++,this.source)}catch(t){return void this.destination.error(t)}e||this.notifyComplete(!1)},e.prototype._complete=function(){this.notifyComplete(!0)}}(Wh),function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}()),cv=(function(t){function e(e){var n=t.call(this,e)||this;return n.hasCompleted=!1,n.hasSubscription=!1,n}uv(e,t),e.prototype._next=function(t){this.hasSubscription||(this.hasSubscription=!0,this.add(Ed(this,t)))},e.prototype._complete=function(){this.hasCompleted=!0,this.hasSubscription||this.destination.complete()},e.prototype.notifyComplete=function(t){this.remove(t),this.hasSubscription=!1,this.hasCompleted&&this.destination.complete()}}(hd),function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}()),lv=(function(t){function e(e,n){var r=t.call(this,e)||this;return r.project=n,r.hasSubscription=!1,r.hasCompleted=!1,r.index=0,r}cv(e,t),e.prototype._next=function(t){this.hasSubscription||this.tryNext(t)},e.prototype.tryNext=function(t){var e=this.index++,n=this.destination;try{var r=this.project(t,e);this.hasSubscription=!0,this.add(Ed(this,r,t,e))}catch(t){n.error(t)}},e.prototype._complete=function(){this.hasCompleted=!0,this.hasSubscription||this.destination.complete()},e.prototype.notifyNext=function(t,e,n,r,i){this.destination.next(e)},e.prototype.notifyError=function(t){this.destination.error(t)},e.prototype.notifyComplete=function(t){this.remove(t),this.hasSubscription=!1,this.hasCompleted&&this.destination.complete()}}(hd),function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}()),pv=(function(t){function e(e,n,r,i){var o=t.call(this,e)||this;return o.project=n,o.concurrent=r,o.scheduler=i,o.index=0,o.active=0,o.hasCompleted=!1,r<Number.POSITIVE_INFINITY&&(o.buffer=[]),o}lv(e,t),e.dispatch=function(t){t.subscriber.subscribeToProjection(t.result,t.value,t.index)},e.prototype._next=function(t){var n=this.destination;if(n.closed)this._complete();else{var r=this.index++;if(this.active<this.concurrent){n.next(t);var i=Vh(this.project)(t,r);i===Lh?n.error(Lh.e):this.scheduler?this.add(this.scheduler.schedule(e.dispatch,0,{subscriber:this,result:i,value:t,index:r})):this.subscribeToProjection(i,t,r)}else this.buffer.push(t)}},e.prototype.subscribeToProjection=function(t,e,n){this.active++,this.add(Ed(this,t,e,n))},e.prototype._complete=function(){this.hasCompleted=!0,this.hasCompleted&&0===this.active&&this.destination.complete()},e.prototype.notifyNext=function(t,e,n,r,i){this._next(e)},e.prototype.notifyComplete=function(t){var e=this.buffer;this.remove(t),this.active--,e&&e.length>0&&this._next(e.shift()),this.hasCompleted&&0===this.active&&this.destination.complete()}}(hd),function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}()),hv=(function(t){pv(function e(n,r){var i=t.call(this,n)||this;return i.add(new qh(r)),i},t)}(Wh),function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}()),fv=(function(t){function e(e,n,r,i,o){var s=t.call(this,e)||this;return s.predicate=n,s.source=r,s.yieldIndex=i,s.thisArg=o,s.index=0,s}hv(e,t),e.prototype.notifyComplete=function(t){var e=this.destination;e.next(t),e.complete()},e.prototype._next=function(t){var e=this.predicate,n=this.thisArg,r=this.index++;try{e.call(n||this,t,r,this.source)&&this.notifyComplete(this.yieldIndex?r:t)}catch(t){this.destination.error(t)}},e.prototype._complete=function(){this.notifyComplete(this.yieldIndex?-1:void 0)}}(Wh),function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}()),dv=(function(t){function e(){return null!==t&&t.apply(this,arguments)||this}fv(e,t),e.prototype._next=function(t){}}(Wh),function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}()),vv=(function(t){function e(e){return t.call(this,e)||this}dv(e,t),e.prototype.notifyComplete=function(t){var e=this.destination;e.next(t),e.complete()},e.prototype._next=function(t){this.notifyComplete(!1)},e.prototype._complete=function(){this.notifyComplete(!0)}}(Wh),function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}()),yv=(function(t){function e(e,n){var r=t.call(this,e)||this;return r.total=n,r.ring=new Array,r.count=0,r}vv(e,t),e.prototype._next=function(t){var e=this.ring,n=this.total,r=this.count++;e.length<n?e.push(t):e[r%n]=t},e.prototype._complete=function(){var t=this.destination,e=this.count;if(e>0)for(var n=this.count>=this.total?this.total:this.count,r=this.ring,i=0;i<n;i++){var o=e++%n;t.next(r[o])}t.complete()}}(Wh),function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}()),mv=(function(t){function e(e,n){var r=t.call(this,e)||this;return r.value=n,r}yv(e,t),e.prototype._next=function(t){this.destination.next(this.value)}}(Wh),function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}()),gv=(function(t){function e(e){return t.call(this,e)||this}mv(e,t),e.prototype._next=function(t){this.destination.next(Ff.createNext(t))},e.prototype._error=function(t){var e=this.destination;e.next(Ff.createError(t)),e.complete()},e.prototype._complete=function(){var t=this.destination;t.next(Ff.createComplete()),t.complete()}}(Wh),function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}()),_v=(function(t){function e(e,n,r,i){var o=t.call(this,e)||this;return o.accumulator=n,o._seed=r,o.hasSeed=i,o.index=0,o}gv(e,t),Object.defineProperty(e.prototype,"seed",{get:function(){return this._seed},set:function(t){this.hasSeed=!0,this._seed=t},enumerable:!0,configurable:!0}),e.prototype._next=function(t){if(this.hasSeed)return this._tryNext(t);this.seed=t,this.destination.next(t)},e.prototype._tryNext=function(t){var e,n=this.index++;try{e=this.accumulator(this.seed,t,n)}catch(t){this.destination.error(t)}this.seed=e,this.destination.next(e)}}(Wh),function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}());!function(t){function e(e,n,r,i){var o=t.call(this,e)||this;return o.accumulator=n,o.acc=r,o.concurrent=i,o.hasValue=!1,o.hasCompleted=!1,o.buffer=[],o.active=0,o.index=0,o}_v(e,t),e.prototype._next=function(t){if(this.active<this.concurrent){var e=this.index++,n=Vh(this.accumulator)(this.acc,t);n===Lh?this.destination.error(Lh.e):(this.active++,this._innerSub(n,t,e))}else this.buffer.push(t)},e.prototype._innerSub=function(t,e,n){this.add(Ed(this,t,e,n))},e.prototype._complete=function(){this.hasCompleted=!0,0===this.active&&0===this.buffer.length&&(!1===this.hasValue&&this.destination.next(this.acc),this.destination.complete())},e.prototype.notifyNext=function(t,e,n,r,i){var o=this.destination;this.acc=e,this.hasValue=!0,o.next(e)},e.prototype.notifyComplete=function(t){var e=this.buffer;this.remove(t),this.active--,e.length>0?this._next(e.shift()):0===this.active&&this.hasCompleted&&(!1===this.hasValue&&this.destination.next(this.acc),this.destination.complete())}}(hd);var bv=function(){function t(t,e){this.subjectFactory=t,this.selector=e}return t.prototype.call=function(t,e){var n=this.selector,r=this.subjectFactory(),i=n(r).subscribe(t);return i.add(e.subscribe(r)),i},t}(),wv=function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),xv=(function(t){function e(e,n){var r=t.call(this,e)||this;return r.destination=e,r.nextSources=n,r}wv(e,t),e.prototype.notifyError=function(t,e){this.subscribeToNextSource()},e.prototype.notifyComplete=function(t){this.subscribeToNextSource()},e.prototype._error=function(t){this.subscribeToNextSource()},e.prototype._complete=function(){this.subscribeToNextSource()},e.prototype.subscribeToNextSource=function(){var t=this.nextSources.shift();t?this.add(Ed(this,t)):this.destination.complete()}}(hd),function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}()),Ev=(function(t){function e(e){var n=t.call(this,e)||this;return n.hasPrev=!1,n}xv(e,t),e.prototype._next=function(t){this.hasPrev?this.destination.next([this.prev,t]):this.hasPrev=!0,this.prev=t}}(Wh),function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}()),Sv=(function(t){function e(e,n,r){var i=t.call(this,e)||this;return i.count=n,i.source=r,i}Ev(e,t),e.prototype.complete=function(){if(!this.isStopped){var e=this.source,n=this.count;if(0===n)return t.prototype.complete.call(this);n>-1&&(this.count=n-1),e.subscribe(this._unsubscribeAndRecycle())}}}(Wh),function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}()),Cv=(function(t){function e(e,n,r){var i=t.call(this,e)||this;return i.notifier=n,i.source=r,i.sourceIsBeingSubscribedTo=!0,i}Sv(e,t),e.prototype.notifyNext=function(t,e,n,r,i){this.sourceIsBeingSubscribedTo=!0,this.source.subscribe(this)},e.prototype.notifyComplete=function(e){if(!1===this.sourceIsBeingSubscribedTo)return t.prototype.complete.call(this)},e.prototype.complete=function(){if(this.sourceIsBeingSubscribedTo=!1,!this.isStopped){if(this.retries||this.subscribeToRetries(),!this.retriesSubscription||this.retriesSubscription.closed)return t.prototype.complete.call(this);this._unsubscribeAndRecycle(),this.notifications.next()}},e.prototype._unsubscribe=function(){var t=this.notifications,e=this.retriesSubscription;t&&(t.unsubscribe(),this.notifications=null),e&&(e.unsubscribe(),this.retriesSubscription=null),this.retries=null},e.prototype._unsubscribeAndRecycle=function(){var e=this._unsubscribe;return this._unsubscribe=null,t.prototype._unsubscribeAndRecycle.call(this),this._unsubscribe=e,this},e.prototype.subscribeToRetries=function(){this.notifications=new sf;var e=Vh(this.notifier)(this.notifications);if(e===Lh)return t.prototype.complete.call(this);this.retries=e,this.retriesSubscription=Ed(this,e)}}(hd),function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}()),Tv=(function(t){function e(e,n,r){var i=t.call(this,e)||this;return i.count=n,i.source=r,i}Cv(e,t),e.prototype.error=function(e){if(!this.isStopped){var n=this.source,r=this.count;if(0===r)return t.prototype.error.call(this,e);r>-1&&(this.count=r-1),n.subscribe(this._unsubscribeAndRecycle())}}}(Wh),function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}()),Pv=(function(t){function e(e,n,r){var i=t.call(this,e)||this;return i.notifier=n,i.source=r,i}Tv(e,t),e.prototype.error=function(e){if(!this.isStopped){var n=this.errors,r=this.retries,i=this.retriesSubscription;if(r)this.errors=null,this.retriesSubscription=null;else{if(n=new sf,(r=Vh(this.notifier)(n))===Lh)return t.prototype.error.call(this,Lh.e);i=Ed(this,r)}this._unsubscribeAndRecycle(),this.errors=n,this.retries=r,this.retriesSubscription=i,n.next(e)}},e.prototype._unsubscribe=function(){var t=this.errors,e=this.retriesSubscription;t&&(t.unsubscribe(),this.errors=null),e&&(e.unsubscribe(),this.retriesSubscription=null),this.retries=null},e.prototype.notifyNext=function(t,e,n,r,i){var o=this._unsubscribe;this._unsubscribe=null,this._unsubscribeAndRecycle(),this._unsubscribe=o,this.source.subscribe(this)}}(hd),function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}()),Av=(function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.hasValue=!1,e}Pv(e,t),e.prototype._next=function(t){this.value=t,this.hasValue=!0},e.prototype.notifyNext=function(t,e,n,r,i){this.emitValue()},e.prototype.notifyComplete=function(){this.emitValue()},e.prototype.emitValue=function(){this.hasValue&&(this.hasValue=!1,this.destination.next(this.value))}}(hd),function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}());function Nv(t){var e=t.period;t.subscriber.notifyNext(),this.schedule(t,e)}!function(t){function e(e,n,r){var i=t.call(this,e)||this;return i.period=n,i.scheduler=r,i.hasValue=!1,i.add(r.schedule(Nv,n,{subscriber:i,period:n})),i}Av(e,t),e.prototype._next=function(t){this.lastValue=t,this.hasValue=!0},e.prototype.notifyNext=function(){this.hasValue&&(this.hasValue=!1,this.destination.next(this.lastValue))}}(Wh);var kv=function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Ov=(function(t){function e(e,n,r){var i=t.call(this,e)||this;return i.compareTo=n,i.comparor=r,i._a=[],i._b=[],i._oneComplete=!1,i.add(n.subscribe(new Ov(e,i))),i}kv(e,t),e.prototype._next=function(t){this._oneComplete&&0===this._b.length?this.emit(!1):(this._a.push(t),this.checkValues())},e.prototype._complete=function(){this._oneComplete?this.emit(0===this._a.length&&0===this._b.length):this._oneComplete=!0},e.prototype.checkValues=function(){for(var t=this._a,e=this._b,n=this.comparor;t.length>0&&e.length>0;){var r=t.shift(),i=e.shift(),o=!1;n?(o=Vh(n)(r,i))===Lh&&this.destination.error(Lh.e):o=r===i,o||this.emit(!1)}},e.prototype.emit=function(t){var e=this.destination;e.next(t),e.complete()},e.prototype.nextB=function(t){this._oneComplete&&0===this._a.length?this.emit(!1):(this._b.push(t),this.checkValues())}}(Wh),function(t){function e(e,n){var r=t.call(this,e)||this;return r.parent=n,r}return kv(e,t),e.prototype._next=function(t){this.parent.nextB(t)},e.prototype._error=function(t){this.parent.error(t)},e.prototype._complete=function(){this.parent._complete()},e}(Wh));function Mv(){return new sf}var Iv=function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Rv=(function(t){function e(e,n,r){var i=t.call(this,e)||this;return i.predicate=n,i.source=r,i.seenValue=!1,i.index=0,i}Iv(e,t),e.prototype.applySingleValue=function(t){this.seenValue?this.destination.error("Sequence contains more than one element"):(this.seenValue=!0,this.singleValue=t)},e.prototype._next=function(t){var e=this.index++;this.predicate?this.tryNext(t,e):this.applySingleValue(t)},e.prototype.tryNext=function(t,e){try{this.predicate(t,e,this.source)&&this.applySingleValue(t)}catch(t){this.destination.error(t)}},e.prototype._complete=function(){var t=this.destination;this.index>0?(t.next(this.seenValue?this.singleValue:void 0),t.complete()):t.error(new sd)}}(Wh),function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}()),Dv=(function(t){function e(e,n){var r=t.call(this,e)||this;return r.total=n,r.count=0,r}Rv(e,t),e.prototype._next=function(t){++this.count>this.total&&this.destination.next(t)}}(Wh),function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}()),jv=(function(t){function e(e,n){var r=t.call(this,e)||this;return r._skipCount=n,r._count=0,r._ring=new Array(n),r}Dv(e,t),e.prototype._next=function(t){var e=this._skipCount,n=this._count++;if(n<e)this._ring[n]=t;else{var r=n%e,i=this._ring,o=i[r];i[r]=t,this.destination.next(o)}}}(Wh),function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}()),Lv=(function(t){function e(e,n){var r=t.call(this,e)||this;return r.hasValue=!1,r.add(r.innerSubscription=Ed(r,n)),r}jv(e,t),e.prototype._next=function(e){this.hasValue&&t.prototype._next.call(this,e)},e.prototype.notifyNext=function(t,e,n,r,i){this.hasValue=!0,this.innerSubscription.unsubscribe()},e.prototype.notifyComplete=function(){}}(hd),function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}()),Fv=(function(t){function e(e,n){var r=t.call(this,e)||this;return r.predicate=n,r.skipping=!0,r.index=0,r}Lv(e,t),e.prototype._next=function(t){var e=this.destination;this.skipping&&this.tryCallPredicate(t),this.skipping||e.next(t)},e.prototype.tryCallPredicate=function(t){try{var e=this.predicate(t,this.index++);this.skipping=Boolean(e)}catch(t){this.destination.error(t)}}}(Wh),function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}()),Vv=(function(t){function e(e,n,r){void 0===n&&(n=0),void 0===r&&(r=Yf);var i=t.call(this)||this;return i.source=e,i.delayTime=n,i.scheduler=r,(!function o(t){return!Rh(t)&&t-parseFloat(t)+1>=0}(n)||n<0)&&(i.delayTime=0),r&&"function"==typeof r.schedule||(i.scheduler=Yf),i}Fv(e,t),e.create=function(t,n,r){return void 0===n&&(n=0),void 0===r&&(r=Yf),new e(t,n,r)},e.dispatch=function(t){return this.add(t.source.subscribe(t.subscriber))},e.prototype._subscribe=function(t){return this.scheduler.schedule(e.dispatch,this.delayTime,{source:this.source,subscriber:t})}}(Zh),function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}()),Hv=(function(t){function e(e,n){var r=t.call(this,e)||this;return r.project=n,r.index=0,r}Vv(e,t),e.prototype._next=function(t){var e,n=this.index++;try{e=this.project(t,n)}catch(t){return void this.destination.error(t)}this._innerSub(e,t,n)},e.prototype._innerSub=function(t,e,n){var r=this.innerSubscription;r&&r.unsubscribe(),this.add(this.innerSubscription=Ed(this,t,e,n))},e.prototype._complete=function(){var e=this.innerSubscription;e&&!e.closed||t.prototype._complete.call(this)},e.prototype._unsubscribe=function(){this.innerSubscription=null},e.prototype.notifyComplete=function(e){this.remove(e),this.innerSubscription=null,this.isStopped&&t.prototype._complete.call(this)},e.prototype.notifyNext=function(t,e,n,r,i){this.destination.next(e)}}(hd),function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}()),Bv=(function(t){function e(e){return t.call(this,e)||this}Hv(e,t),e.prototype.notifyNext=function(t,e,n,r,i){this.complete()},e.prototype.notifyComplete=function(){}}(hd),function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}()),qv=(function(t){function e(e,n){var r=t.call(this,e)||this;return r.predicate=n,r.index=0,r}Bv(e,t),e.prototype._next=function(t){var e,n=this.destination;try{e=this.predicate(t,this.index++)}catch(t){return void n.error(t)}this.nextOrComplete(t,e)},e.prototype.nextOrComplete=function(t,e){var n=this.destination;Boolean(e)?n.next(t):n.complete()}}(Wh),function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}()),Kv=(function(t){function e(e,n,r,i){var o=t.call(this,e)||this;return o.destination=e,o.durationSelector=n,o._leading=r,o._trailing=i,o._hasValue=!1,o}qv(e,t),e.prototype._next=function(t){this._hasValue=!0,this._sendValue=t,this._throttled||(this._leading?this.send():this.throttle(t))},e.prototype.send=function(){var t=this._sendValue;this._hasValue&&(this.destination.next(t),this.throttle(t)),this._hasValue=!1,this._sendValue=null},e.prototype.throttle=function(t){var e=this.tryDurationSelector(t);e&&this.add(this._throttled=Ed(this,e))},e.prototype.tryDurationSelector=function(t){try{return this.durationSelector(t)}catch(t){return this.destination.error(t),null}},e.prototype.throttlingDone=function(){var t=this._throttled,e=this._trailing;t&&t.unsubscribe(),this._throttled=null,e&&this.send()},e.prototype.notifyNext=function(t,e,n,r,i){this.throttlingDone()},e.prototype.notifyComplete=function(){this.throttlingDone()}}(hd),function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}());function Uv(t){t.subscriber.clearThrottle()}!function(t){function e(e,n,r,i,o){var s=t.call(this,e)||this;return s.duration=n,s.scheduler=r,s.leading=i,s.trailing=o,s._hasTrailingValue=!1,s._trailingValue=null,s}Kv(e,t),e.prototype._next=function(t){this.throttled?this.trailing&&(this._trailingValue=t,this._hasTrailingValue=!0):(this.add(this.throttled=this.scheduler.schedule(Uv,this.duration,{subscriber:this})),this.leading&&this.destination.next(t))},e.prototype._complete=function(){this._hasTrailingValue?(this.destination.next(this._trailingValue),this.destination.complete()):this.destination.complete()},e.prototype.clearThrottle=function(){var t=this.throttled;t&&(this.trailing&&this._hasTrailingValue&&(this.destination.next(this._trailingValue),this._trailingValue=null,this._hasTrailingValue=!1),t.unsubscribe(),this.remove(t),this.throttled=null)}}(Wh);var zv=function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Wv=(function(t){function e(e,n,r,i,o){var s=t.call(this,e)||this;return s.absoluteTimeout=n,s.waitFor=r,s.withObservable=i,s.scheduler=o,s.action=null,s.scheduleTimeout(),s}zv(e,t),e.dispatchTimeout=function(t){var e=t.withObservable;t._unsubscribeAndRecycle(),t.add(Ed(t,e))},e.prototype.scheduleTimeout=function(){var t=this.action;t?this.action=t.schedule(this,this.waitFor):this.add(this.action=this.scheduler.schedule(e.dispatchTimeout,this.waitFor,this))},e.prototype._next=function(e){this.absoluteTimeout||this.scheduleTimeout(),t.prototype._next.call(this,e)},e.prototype._unsubscribe=function(){this.action=null,this.scheduler=null,this.withObservable=null}}(hd),function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}()),Qv=(function(t){function e(e){var n=t.call(this,e)||this;return n.window=new sf,e.next(n.window),n}Wv(e,t),e.prototype.notifyNext=function(t,e,n,r,i){this.openWindow()},e.prototype.notifyError=function(t,e){this._error(t)},e.prototype.notifyComplete=function(t){this._complete()},e.prototype._next=function(t){this.window.next(t)},e.prototype._error=function(t){this.window.error(t),this.destination.error(t)},e.prototype._complete=function(){this.window.complete(),this.destination.complete()},e.prototype._unsubscribe=function(){this.window=null},e.prototype.openWindow=function(){var t=this.window;t&&t.complete();var e=this.destination,n=this.window=new sf;e.next(n)}}(hd),function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}()),Gv=(function(t){function e(e,n,r){var i=t.call(this,e)||this;return i.destination=e,i.windowSize=n,i.startWindowEvery=r,i.windows=[new sf],i.count=0,e.next(i.windows[0]),i}Qv(e,t),e.prototype._next=function(t){for(var e=this.startWindowEvery>0?this.startWindowEvery:this.windowSize,n=this.destination,r=this.windowSize,i=this.windows,o=i.length,s=0;s<o&&!this.closed;s++)i[s].next(t);var a=this.count-r+1;if(a>=0&&a%e==0&&!this.closed&&i.shift().complete(),++this.count%e==0&&!this.closed){var u=new sf;i.push(u),n.next(u)}},e.prototype._error=function(t){var e=this.windows;if(e)for(;e.length>0&&!this.closed;)e.shift().error(t);this.destination.error(t)},e.prototype._complete=function(){var t=this.windows;if(t)for(;t.length>0&&!this.closed;)t.shift().complete();this.destination.complete()},e.prototype._unsubscribe=function(){this.count=0,this.windows=null}}(Wh),function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}()),Xv=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e._numberOfNextedValues=0,e}return Gv(e,t),e.prototype.next=function(e){this._numberOfNextedValues++,t.prototype.next.call(this,e)},Object.defineProperty(e.prototype,"numberOfNextedValues",{get:function(){return this._numberOfNextedValues},enumerable:!0,configurable:!0}),e}(sf);function Yv(t){var e=t.subscriber,n=t.windowTimeSpan,r=t.window;r&&e.closeWindow(r),t.window=e.openWindow(),this.schedule(t,n)}function Zv(t){var e=t.windowTimeSpan,n=t.subscriber,r=t.scheduler,i=t.windowCreationInterval,o=n.openWindow(),s={action:this,subscription:null};s.subscription=r.schedule($v,e,{subscriber:n,window:o,context:s}),this.add(s.subscription),this.schedule(t,i)}function $v(t){var e=t.subscriber,n=t.window,r=t.context;r&&r.action&&r.subscription&&r.action.remove(r.subscription),e.closeWindow(n)}!function(t){function e(e,n,r,i,o){var s=t.call(this,e)||this;s.destination=e,s.windowTimeSpan=n,s.windowCreationInterval=r,s.maxWindowSize=i,s.scheduler=o,s.windows=[];var a=s.openWindow();if(null!==r&&r>=0){var u={windowTimeSpan:n,windowCreationInterval:r,subscriber:s,scheduler:o};s.add(o.schedule($v,n,{subscriber:s,window:a,context:null})),s.add(o.schedule(Zv,r,u))}else s.add(o.schedule(Yv,n,{subscriber:s,window:a,windowTimeSpan:n}));return s}Gv(e,t),e.prototype._next=function(t){for(var e=this.windows,n=e.length,r=0;r<n;r++){var i=e[r];i.closed||(i.next(t),i.numberOfNextedValues>=this.maxWindowSize&&this.closeWindow(i))}},e.prototype._error=function(t){for(var e=this.windows;e.length>0;)e.shift().error(t);this.destination.error(t)},e.prototype._complete=function(){for(var t=this.windows;t.length>0;){var e=t.shift();e.closed||e.complete()}this.destination.complete()},e.prototype.openWindow=function(){var t=new Xv;return this.windows.push(t),this.destination.next(t),t},e.prototype.closeWindow=function(t){t.complete();var e=this.windows;e.splice(e.indexOf(t),1)}}(Wh);var Jv=function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),ty=(function(t){function e(e,n,r){var i=t.call(this,e)||this;return i.openings=n,i.closingSelector=r,i.contexts=[],i.add(i.openSubscription=Ed(i,n,n)),i}Jv(e,t),e.prototype._next=function(t){var e=this.contexts;if(e)for(var n=e.length,r=0;r<n;r++)e[r].window.next(t)},e.prototype._error=function(e){var n=this.contexts;if(this.contexts=null,n)for(var r=n.length,i=-1;++i<r;){var o=n[i];o.window.error(e),o.subscription.unsubscribe()}t.prototype._error.call(this,e)},e.prototype._complete=function(){var e=this.contexts;if(this.contexts=null,e)for(var n=e.length,r=-1;++r<n;){var i=e[r];i.window.complete(),i.subscription.unsubscribe()}t.prototype._complete.call(this)},e.prototype._unsubscribe=function(){var t=this.contexts;if(this.contexts=null,t)for(var e=t.length,n=-1;++n<e;){var r=t[n];r.window.unsubscribe(),r.subscription.unsubscribe()}},e.prototype.notifyNext=function(t,e,n,r,i){if(t===this.openings){var o=Vh(this.closingSelector)(e);if(o===Lh)return this.error(Lh.e);var s=new sf,a=new qh,u={window:s,subscription:a};this.contexts.push(u);var c=Ed(this,o,u);c.closed?this.closeWindow(this.contexts.length-1):(c.context=u,a.add(c)),this.destination.next(s)}else this.closeWindow(this.contexts.indexOf(t))},e.prototype.notifyError=function(t){this.error(t)},e.prototype.notifyComplete=function(t){t!==this.openSubscription&&this.closeWindow(this.contexts.indexOf(t.context))},e.prototype.closeWindow=function(t){if(-1!==t){var e=this.contexts,n=e[t],r=n.window,i=n.subscription;e.splice(t,1),r.complete(),i.unsubscribe()}}}(hd),function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}()),ey=(function(t){function e(e,n){var r=t.call(this,e)||this;return r.destination=e,r.closingSelector=n,r.openWindow(),r}ty(e,t),e.prototype.notifyNext=function(t,e,n,r,i){this.openWindow(i)},e.prototype.notifyError=function(t,e){this._error(t)},e.prototype.notifyComplete=function(t){this.openWindow(t)},e.prototype._next=function(t){this.window.next(t)},e.prototype._error=function(t){this.window.error(t),this.destination.error(t),this.unsubscribeClosingNotification()},e.prototype._complete=function(){this.window.complete(),this.destination.complete(),this.unsubscribeClosingNotification()},e.prototype.unsubscribeClosingNotification=function(){this.closingNotification&&this.closingNotification.unsubscribe()},e.prototype.openWindow=function(t){void 0===t&&(t=null),t&&(this.remove(t),t.unsubscribe());var e=this.window;e&&e.complete();var n=this.window=new sf;this.destination.next(n);var r=Vh(this.closingSelector)();if(r===Lh){var i=Lh.e;this.destination.error(i),this.window.error(i)}else this.add(this.closingNotification=Ed(this,r))}}(hd),function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}()),ny=function(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var r,i,o=n.call(t),s=[];try{for(;(void 0===e||e-- >0)&&!(r=o.next()).done;)s.push(r.value)}catch(t){i={error:t}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return s};
878
877
  /**
879
878
  * @license
880
879
  * Copyright Google Inc. All Rights Reserved.
@@ -882,14 +881,14 @@ var $p=function(){function t(t,e){if(this.token=t,this.id=e,!t)throw new Error("
882
881
  * Use of this source code is governed by an MIT-style license that can be
883
882
  * found in the LICENSE file at https://angular.io/license
884
883
  */
885
- function Zv(t){return!!t&&"function"==typeof t.then}
884
+ function ry(t){return!!t&&"function"==typeof t.then}
886
885
  /**
887
886
  * @license
888
887
  * Copyright Google Inc. All Rights Reserved.
889
888
  *
890
889
  * Use of this source code is governed by an MIT-style license that can be
891
890
  * found in the LICENSE file at https://angular.io/license
892
- */!function(t){function e(e,n,r){var i=t.call(this,e)||this;i.observables=n,i.project=r,i.toRespond=[];var o=n.length;i.values=new Array(o);for(var s=0;s<o;s++)i.toRespond.push(s);for(s=0;s<o;s++){var a=n[s];i.add(md(i,a,a,s))}return i}Xv(e,t),e.prototype.notifyNext=function(t,e,n,r,i){this.values[n]=e;var o=this.toRespond;if(o.length>0){var s=o.indexOf(n);-1!==s&&o.splice(s,1)}},e.prototype.notifyComplete=function(){},e.prototype._next=function(t){if(0===this.toRespond.length){var e=function(){for(var t=[],e=0;e<arguments.length;e++)t=t.concat(Yv(arguments[e]));return t}([t],this.values);this.project?this._tryProject(e):this.destination.next(e)}},e.prototype._tryProject=function(t){var e;try{e=this.project.apply(this,t)}catch(t){return void this.destination.error(t)}this.destination.next(e)}}(sd);var $v=new Ol("Application Initializer"),Jv=function(){function t(t){var e=this;this.appInits=t,this.initialized=!1,this.done=!1,this.donePromise=new Promise(function(t,n){e.resolve=t,e.reject=n})}return t.prototype.runInitializers=function(){var t=this;if(!this.initialized){var e=[],n=function(){t.done=!0,t.resolve()};if(this.appInits)for(var r=0;r<this.appInits.length;r++){var i=this.appInits[r]();Zv(i)&&e.push(i)}Promise.all(e).then(function(){n()}).catch(function(e){t.reject(e)}),0===e.length&&n(),this.initialized=!0}},t.decorators=[{type:Fp}],t.ctorParameters=function(){return[{type:Array,decorators:[{type:ip,args:[$v]},{type:op}]}]},t}();new Ol("AppId"),new Ol("Platform Initializer");var ty=new Ol("Platform ID"),ey=new Ol("appBootstrapListener"),ny=(new Ol("Application Packages Root URL"),function(){function t(){}return t.prototype.log=function(t){console.log(t)},t.prototype.warn=function(t){console.warn(t)},t.decorators=[{type:Fp}],t}());
891
+ */!function(t){function e(e,n,r){var i=t.call(this,e)||this;i.observables=n,i.project=r,i.toRespond=[];var o=n.length;i.values=new Array(o);for(var s=0;s<o;s++)i.toRespond.push(s);for(s=0;s<o;s++){var a=n[s];i.add(Ed(i,a,a,s))}return i}ey(e,t),e.prototype.notifyNext=function(t,e,n,r,i){this.values[n]=e;var o=this.toRespond;if(o.length>0){var s=o.indexOf(n);-1!==s&&o.splice(s,1)}},e.prototype.notifyComplete=function(){},e.prototype._next=function(t){if(0===this.toRespond.length){var e=function(){for(var t=[],e=0;e<arguments.length;e++)t=t.concat(ny(arguments[e]));return t}([t],this.values);this.project?this._tryProject(e):this.destination.next(e)}},e.prototype._tryProject=function(t){var e;try{e=this.project.apply(this,t)}catch(t){return void this.destination.error(t)}this.destination.next(e)}}(hd);var iy=new jl("Application Initializer"),oy=function(){function t(t){var e=this;this.appInits=t,this.initialized=!1,this.done=!1,this.donePromise=new Promise(function(t,n){e.resolve=t,e.reject=n})}return t.prototype.runInitializers=function(){var t=this;if(!this.initialized){var e=[],n=function(){t.done=!0,t.resolve()};if(this.appInits)for(var r=0;r<this.appInits.length;r++){var i=this.appInits[r]();ry(i)&&e.push(i)}Promise.all(e).then(function(){n()}).catch(function(e){t.reject(e)}),0===e.length&&n(),this.initialized=!0}},u([Kp(),c(0,cp(iy)),c(0,lp()),l("design:paramtypes",[Array])],t)}(),sy={provide:new jl("AppId"),useFactory:function ay(){return""+uy()+uy()+uy()},deps:[]};function uy(){return String.fromCharCode(97+Math.floor(25*Math.random()))}new jl("Platform Initializer");var cy=new jl("Platform ID"),ly=new jl("appBootstrapListener"),py=(new jl("Application Packages Root URL"),function(){function t(){}return t.prototype.log=function(t){console.log(t)},t.prototype.warn=function(t){console.warn(t)},u([Kp()],t)}());
893
892
  /**
894
893
  * @license
895
894
  * Copyright Google Inc. All Rights Reserved.
@@ -897,7 +896,7 @@ function Zv(t){return!!t&&"function"==typeof t.then}
897
896
  * Use of this source code is governed by an MIT-style license that can be
898
897
  * found in the LICENSE file at https://angular.io/license
899
898
  */
900
- function ry(){throw new Error("Runtime compiler is not loaded")}!function(){function t(){}t.prototype.compileModuleSync=function(t){throw ry()},t.prototype.compileModuleAsync=function(t){throw ry()},t.prototype.compileModuleAndAllComponentsSync=function(t){throw ry()},t.prototype.compileModuleAndAllComponentsAsync=function(t){throw ry()},t.prototype.clearCache=function(){},t.prototype.clearCacheFor=function(t){},t.prototype.getModuleId=function(t){},t.decorators=[{type:Fp}]}();var iy,oy,sy=(new Ol("compilerOptions"),function sy(){}),ay=function ay(){},uy=function uy(){},cy=function(){function t(){}return t.prototype.resolveComponentFactory=function(t){
899
+ function hy(){throw new Error("Runtime compiler is not loaded")}var fy,dy,vy=function(){function t(){}return t.prototype.compileModuleSync=function(t){throw hy()},t.prototype.compileModuleAsync=function(t){throw hy()},t.prototype.compileModuleAndAllComponentsSync=function(t){throw hy()},t.prototype.compileModuleAndAllComponentsAsync=function(t){throw hy()},t.prototype.clearCache=function(){},t.prototype.clearCacheFor=function(t){},t.prototype.getModuleId=function(t){},u([Kp()],t)}(),yy=(new jl("compilerOptions"),function yy(){}),my=function my(){},gy=function gy(){},_y=function(){function t(){}return t.prototype.resolveComponentFactory=function(t){
901
900
  /**
902
901
  * @license
903
902
  * Copyright Google Inc. All Rights Reserved.
@@ -905,21 +904,21 @@ function ry(){throw new Error("Runtime compiler is not loaded")}!function(){func
905
904
  * Use of this source code is governed by an MIT-style license that can be
906
905
  * found in the LICENSE file at https://angular.io/license
907
906
  */
908
- throw function e(t){var e=Error("No component factory found for "+Xl(t)+". Did you add it to @NgModule.entryComponents?");return e.ngComponent=t,e}(t)},t}(),ly=function(){function t(){}return t.NULL=new cy,t}(),py=function(t){function e(e,n){var r=t.call(this)||this;return r.factory=e,r.ngModule=n,r.selector=e.selector,r.componentType=e.componentType,r.ngContentSelectors=e.ngContentSelectors,r.inputs=e.inputs,r.outputs=e.outputs,r}return o(e,t),e.prototype.create=function(t,e,n,r){return this.factory.create(t,e,n,r||this.ngModule)},e}(uy),hy=function hy(){},fy=function fy(){},dy=function vy(){var t=Kl.wtf;return!(!t||!(iy=t.trace)||(oy=iy.events,0))}();function yy(t,e){return null}var my=dy?function gy(t,e){return void 0===e&&(e=null),oy.createScope(t,e)}:function(t,e){return yy},_y=dy?function by(t,e){return iy.leaveScope(t,e),e}
907
+ throw function e(t){var e=Error("No component factory found for "+tp(t)+". Did you add it to @NgModule.entryComponents?");return e.ngComponent=t,e}(t)},t}(),by=function(){function t(){}return t.NULL=new _y,t}(),wy=function(t){function e(e,n){var r=t.call(this)||this;return r.factory=e,r.ngModule=n,r.selector=e.selector,r.componentType=e.componentType,r.ngContentSelectors=e.ngContentSelectors,r.inputs=e.inputs,r.outputs=e.outputs,r}return o(e,t),e.prototype.create=function(t,e,n,r){return this.factory.create(t,e,n,r||this.ngModule)},e}(gy),xy=function xy(){},Ey=function Ey(){},Sy=function Cy(){var t=Gl.wtf;return!(!t||!(fy=t.trace)||(dy=fy.events,0))}();function Ty(t,e){return null}var Py=Sy?function Ay(t,e){return void 0===e&&(e=null),dy.createScope(t,e)}:function(t,e){return Ty},Ny=Sy?function ky(t,e){return fy.leaveScope(t,e),e}
909
908
  /**
910
909
  * @license
911
910
  * Copyright Google Inc. All Rights Reserved.
912
911
  *
913
912
  * Use of this source code is governed by an MIT-style license that can be
914
913
  * found in the LICENSE file at https://angular.io/license
915
- */:function(t,e){return e},wy=function(t){function e(e){void 0===e&&(e=!1);var n=t.call(this)||this;return n.__isAsync=e,n}return o(e,t),e.prototype.emit=function(e){t.prototype.next.call(this,e)},e.prototype.subscribe=function(e,n,r){var i,o=function(t){return null},s=function(){return null};e&&"object"==typeof e?(i=this.__isAsync?function(t){setTimeout(function(){return e.next(t)})}:function(t){e.next(t)},e.error&&(o=this.__isAsync?function(t){setTimeout(function(){return e.error(t)})}:function(t){e.error(t)}),e.complete&&(s=this.__isAsync?function(){setTimeout(function(){return e.complete()})}:function(){e.complete()})):(i=this.__isAsync?function(t){setTimeout(function(){return e(t)})}:function(t){e(t)},n&&(o=this.__isAsync?function(t){setTimeout(function(){return n(t)})}:function(t){n(t)}),r&&(s=this.__isAsync?function(){setTimeout(function(){return r()})}:function(){r()}));var a=t.prototype.subscribe.call(this,i,o,s);return e instanceof jh&&e.add(a),a},e}(Jh),xy=function(){function t(t){var e=t.enableLongStackTrace,n=void 0!==e&&e;if(this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new wy(!1),this.onMicrotaskEmpty=new wy(!1),this.onStable=new wy(!1),this.onError=new wy(!1),"undefined"==typeof Zone)throw new Error("In this configuration Angular requires Zone.js");Zone.assertZonePatched(),this._nesting=0,this._outer=this._inner=Zone.current,Zone.wtfZoneSpec&&(this._inner=this._inner.fork(Zone.wtfZoneSpec)),Zone.TaskTrackingZoneSpec&&(this._inner=this._inner.fork(new Zone.TaskTrackingZoneSpec)),n&&Zone.longStackTraceZoneSpec&&(this._inner=this._inner.fork(Zone.longStackTraceZoneSpec)),function r(t){t._inner=t._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:function(e,n,r,i,o,s){try{return Ty(t),e.invokeTask(r,i,o,s)}finally{Py(t)}},onInvoke:function(e,n,r,i,o,s,a){try{return Ty(t),e.invoke(r,i,o,s,a)}finally{Py(t)}},onHasTask:function(e,n,r,i){e.hasTask(r,i),n===r&&("microTask"==i.change?(t.hasPendingMicrotasks=i.microTask,Cy(t)):"macroTask"==i.change&&(t.hasPendingMacrotasks=i.macroTask))},onHandleError:function(e,n,r,i){return e.handleError(r,i),t.runOutsideAngular(function(){return t.onError.emit(i)}),!1}})}(this)}return t.isInAngularZone=function(){return!0===Zone.current.get("isAngularZone")},t.assertInAngularZone=function(){if(!t.isInAngularZone())throw new Error("Expected to be in Angular Zone, but it is not!")},t.assertNotInAngularZone=function(){if(t.isInAngularZone())throw new Error("Expected to not be in Angular Zone, but it is!")},t.prototype.run=function(t,e,n){return this._inner.run(t,e,n)},t.prototype.runTask=function(t,e,n,r){var i=this._inner,o=i.scheduleEventTask("NgZoneEvent: "+r,t,Sy,Ey,Ey);try{return i.runTask(o,e,n)}finally{i.cancelTask(o)}},t.prototype.runGuarded=function(t,e,n){return this._inner.runGuarded(t,e,n)},t.prototype.runOutsideAngular=function(t){return this._outer.run(t)},t}();function Ey(){}var Sy={};function Cy(t){if(0==t._nesting&&!t.hasPendingMicrotasks&&!t.isStable)try{t._nesting++,t.onMicrotaskEmpty.emit(null)}finally{if(t._nesting--,!t.hasPendingMicrotasks)try{t.runOutsideAngular(function(){return t.onStable.emit(null)})}finally{t.isStable=!0}}}function Ty(t){t._nesting++,t.isStable&&(t.isStable=!1,t.onUnstable.emit(null))}function Py(t){t._nesting--,Cy(t)}var Ay=function(){function t(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new wy,this.onMicrotaskEmpty=new wy,this.onStable=new wy,this.onError=new wy}return t.prototype.run=function(t){return t()},t.prototype.runGuarded=function(t){return t()},t.prototype.runOutsideAngular=function(t){return t()},t.prototype.runTask=function(t){return t()},t}(),Ny=function(){function t(t){var e=this;this._ngZone=t,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this._watchAngularEvents(),t.run(function(){e.taskTrackingZone=Zone.current.get("TaskTrackingZone")})}return t.prototype._watchAngularEvents=function(){var t=this;this._ngZone.onUnstable.subscribe({next:function(){t._didWork=!0,t._isZoneStable=!1}}),this._ngZone.runOutsideAngular(function(){t._ngZone.onStable.subscribe({next:function(){xy.assertNotInAngularZone(),Ql(function(){t._isZoneStable=!0,t._runCallbacksIfReady()})}})})},t.prototype.increasePendingRequestCount=function(){return this._pendingCount+=1,this._didWork=!0,this._pendingCount},t.prototype.decreasePendingRequestCount=function(){if(this._pendingCount-=1,this._pendingCount<0)throw new Error("pending async requests below zero");return this._runCallbacksIfReady(),this._pendingCount},t.prototype.isStable=function(){return this._isZoneStable&&0===this._pendingCount&&!this._ngZone.hasPendingMacrotasks},t.prototype._runCallbacksIfReady=function(){var t=this;if(this.isStable())Ql(function(){for(;0!==t._callbacks.length;){var e=t._callbacks.pop();clearTimeout(e.timeoutId),e.doneCb(t._didWork)}t._didWork=!1});else{var e=this.getPendingTasks();this._callbacks=this._callbacks.filter(function(t){return!t.updateCb||!t.updateCb(e)||(clearTimeout(t.timeoutId),!1)}),this._didWork=!0}},t.prototype.getPendingTasks=function(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(function(t){return{source:t.source,isPeriodic:t.data.isPeriodic,delay:t.data.delay,creationLocation:t.creationLocation,xhr:t.data.target}}):[]},t.prototype.addCallback=function(t,e,n){var r=this,i=-1;e&&e>0&&(i=setTimeout(function(){r._callbacks=r._callbacks.filter(function(t){return t.timeoutId!==i}),t(r._didWork,r.getPendingTasks())},e)),this._callbacks.push({doneCb:t,timeoutId:i,updateCb:n})},t.prototype.whenStable=function(t,e,n){if(n&&!this.taskTrackingZone)throw new Error('Task tracking zone is required when passing an update callback to whenStable(). Is "zone.js/dist/task-tracking.js" loaded?');this.addCallback(t,e,n),this._runCallbacksIfReady()},t.prototype.getPendingRequestCount=function(){return this._pendingCount},t.prototype.findProviders=function(t,e,n){return[]},t.decorators=[{type:Fp}],t.ctorParameters=function(){return[{type:xy}]},t}(),ky=function(){function t(){this._applications=new Map,Oy.addToWindow(this)}return t.prototype.registerApplication=function(t,e){this._applications.set(t,e)},t.prototype.unregisterApplication=function(t){this._applications.delete(t)},t.prototype.unregisterAllApplications=function(){this._applications.clear()},t.prototype.getTestability=function(t){return this._applications.get(t)||null},t.prototype.getAllTestabilities=function(){return Array.from(this._applications.values())},t.prototype.getAllRootElements=function(){return Array.from(this._applications.keys())},t.prototype.findTestabilityInTree=function(t,e){return void 0===e&&(e=!0),Oy.findTestabilityInTree(this,t,e)},t.decorators=[{type:Fp}],t.ctorParameters=function(){return[]},t}(),Oy=new(function(){function t(){}return t.prototype.addToWindow=function(t){},t.prototype.findTestabilityInTree=function(t,e,n){return null},t}()),My=!0;
914
+ */:function(t,e){return e},Oy=function(t){function e(e){void 0===e&&(e=!1);var n=t.call(this)||this;return n.__isAsync=e,n}return o(e,t),e.prototype.emit=function(e){t.prototype.next.call(this,e)},e.prototype.subscribe=function(e,n,r){var i,o=function(t){return null},s=function(){return null};e&&"object"==typeof e?(i=this.__isAsync?function(t){setTimeout(function(){return e.next(t)})}:function(t){e.next(t)},e.error&&(o=this.__isAsync?function(t){setTimeout(function(){return e.error(t)})}:function(t){e.error(t)}),e.complete&&(s=this.__isAsync?function(){setTimeout(function(){return e.complete()})}:function(){e.complete()})):(i=this.__isAsync?function(t){setTimeout(function(){return e(t)})}:function(t){e(t)},n&&(o=this.__isAsync?function(t){setTimeout(function(){return n(t)})}:function(t){n(t)}),r&&(s=this.__isAsync?function(){setTimeout(function(){return r()})}:function(){r()}));var a=t.prototype.subscribe.call(this,i,o,s);return e instanceof qh&&e.add(a),a},e}(sf),My=function(){function t(t){var e=t.enableLongStackTrace,n=void 0!==e&&e;if(this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new Oy(!1),this.onMicrotaskEmpty=new Oy(!1),this.onStable=new Oy(!1),this.onError=new Oy(!1),"undefined"==typeof Zone)throw new Error("In this configuration Angular requires Zone.js");Zone.assertZonePatched(),this._nesting=0,this._outer=this._inner=Zone.current,Zone.wtfZoneSpec&&(this._inner=this._inner.fork(Zone.wtfZoneSpec)),Zone.TaskTrackingZoneSpec&&(this._inner=this._inner.fork(new Zone.TaskTrackingZoneSpec)),n&&Zone.longStackTraceZoneSpec&&(this._inner=this._inner.fork(Zone.longStackTraceZoneSpec)),function r(t){t._inner=t._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:function(e,n,r,i,o,s){try{return jy(t),e.invokeTask(r,i,o,s)}finally{Ly(t)}},onInvoke:function(e,n,r,i,o,s,a){try{return jy(t),e.invoke(r,i,o,s,a)}finally{Ly(t)}},onHasTask:function(e,n,r,i){e.hasTask(r,i),n===r&&("microTask"==i.change?(t.hasPendingMicrotasks=i.microTask,Dy(t)):"macroTask"==i.change&&(t.hasPendingMacrotasks=i.macroTask))},onHandleError:function(e,n,r,i){return e.handleError(r,i),t.runOutsideAngular(function(){return t.onError.emit(i)}),!1}})}(this)}return t.isInAngularZone=function(){return!0===Zone.current.get("isAngularZone")},t.assertInAngularZone=function(){if(!t.isInAngularZone())throw new Error("Expected to be in Angular Zone, but it is not!")},t.assertNotInAngularZone=function(){if(t.isInAngularZone())throw new Error("Expected to not be in Angular Zone, but it is!")},t.prototype.run=function(t,e,n){return this._inner.run(t,e,n)},t.prototype.runTask=function(t,e,n,r){var i=this._inner,o=i.scheduleEventTask("NgZoneEvent: "+r,t,Ry,Iy,Iy);try{return i.runTask(o,e,n)}finally{i.cancelTask(o)}},t.prototype.runGuarded=function(t,e,n){return this._inner.runGuarded(t,e,n)},t.prototype.runOutsideAngular=function(t){return this._outer.run(t)},t}();function Iy(){}var Ry={};function Dy(t){if(0==t._nesting&&!t.hasPendingMicrotasks&&!t.isStable)try{t._nesting++,t.onMicrotaskEmpty.emit(null)}finally{if(t._nesting--,!t.hasPendingMicrotasks)try{t.runOutsideAngular(function(){return t.onStable.emit(null)})}finally{t.isStable=!0}}}function jy(t){t._nesting++,t.isStable&&(t.isStable=!1,t.onUnstable.emit(null))}function Ly(t){t._nesting--,Dy(t)}var Fy=function(){function t(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new Oy,this.onMicrotaskEmpty=new Oy,this.onStable=new Oy,this.onError=new Oy}return t.prototype.run=function(t){return t()},t.prototype.runGuarded=function(t){return t()},t.prototype.runOutsideAngular=function(t){return t()},t.prototype.runTask=function(t){return t()},t}(),Vy=function(){function t(t){var e=this;this._ngZone=t,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this._watchAngularEvents(),t.run(function(){e.taskTrackingZone=Zone.current.get("TaskTrackingZone")})}return t.prototype._watchAngularEvents=function(){var t=this;this._ngZone.onUnstable.subscribe({next:function(){t._didWork=!0,t._isZoneStable=!1}}),this._ngZone.runOutsideAngular(function(){t._ngZone.onStable.subscribe({next:function(){My.assertNotInAngularZone(),$l(function(){t._isZoneStable=!0,t._runCallbacksIfReady()})}})})},t.prototype.increasePendingRequestCount=function(){return this._pendingCount+=1,this._didWork=!0,this._pendingCount},t.prototype.decreasePendingRequestCount=function(){if(this._pendingCount-=1,this._pendingCount<0)throw new Error("pending async requests below zero");return this._runCallbacksIfReady(),this._pendingCount},t.prototype.isStable=function(){return this._isZoneStable&&0===this._pendingCount&&!this._ngZone.hasPendingMacrotasks},t.prototype._runCallbacksIfReady=function(){var t=this;if(this.isStable())$l(function(){for(;0!==t._callbacks.length;){var e=t._callbacks.pop();clearTimeout(e.timeoutId),e.doneCb(t._didWork)}t._didWork=!1});else{var e=this.getPendingTasks();this._callbacks=this._callbacks.filter(function(t){return!t.updateCb||!t.updateCb(e)||(clearTimeout(t.timeoutId),!1)}),this._didWork=!0}},t.prototype.getPendingTasks=function(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(function(t){return{source:t.source,isPeriodic:t.data.isPeriodic,delay:t.data.delay,creationLocation:t.creationLocation,xhr:t.data.target}}):[]},t.prototype.addCallback=function(t,e,n){var r=this,i=-1;e&&e>0&&(i=setTimeout(function(){r._callbacks=r._callbacks.filter(function(t){return t.timeoutId!==i}),t(r._didWork,r.getPendingTasks())},e)),this._callbacks.push({doneCb:t,timeoutId:i,updateCb:n})},t.prototype.whenStable=function(t,e,n){if(n&&!this.taskTrackingZone)throw new Error('Task tracking zone is required when passing an update callback to whenStable(). Is "zone.js/dist/task-tracking.js" loaded?');this.addCallback(t,e,n),this._runCallbacksIfReady()},t.prototype.getPendingRequestCount=function(){return this._pendingCount},t.prototype.findProviders=function(t,e,n){return[]},u([Kp(),l("design:paramtypes",[My])],t)}(),Hy=function(){function t(){this._applications=new Map,By.addToWindow(this)}return t.prototype.registerApplication=function(t,e){this._applications.set(t,e)},t.prototype.unregisterApplication=function(t){this._applications.delete(t)},t.prototype.unregisterAllApplications=function(){this._applications.clear()},t.prototype.getTestability=function(t){return this._applications.get(t)||null},t.prototype.getAllTestabilities=function(){return Array.from(this._applications.values())},t.prototype.getAllRootElements=function(){return Array.from(this._applications.keys())},t.prototype.findTestabilityInTree=function(t,e){return void 0===e&&(e=!0),By.findTestabilityInTree(this,t,e)},u([Kp(),l("design:paramtypes",[])],t)}(),By=new(function(){function t(){}return t.prototype.addToWindow=function(t){},t.prototype.findTestabilityInTree=function(t,e,n){return null},t}()),qy=!0;
916
915
  /**
917
916
  * @license
918
917
  * Copyright Google Inc. All Rights Reserved.
919
918
  *
920
919
  * Use of this source code is governed by an MIT-style license that can be
921
920
  * found in the LICENSE file at https://angular.io/license
922
- */function Iy(){return My}new Ol("AllowMultipleToken");var Ry=function(){function t(t){this._injector=t,this._modules=[],this._destroyListeners=[],this._destroyed=!1}return t.prototype.bootstrapModuleFactory=function(t,e){var n=this,r=function i(t){return"noop"===t?new Ay:("zone.js"===t?void 0:t)||new xy({enableLongStackTrace:Iy()})}(e?e.ngZone:void 0),o=[{provide:xy,useValue:r}];return r.run(function(){var e=fp.create({providers:o,parent:n.injector,name:t.moduleType.name}),i=t.create(e),s=i.injector.get(Qp,null);if(!s)throw new Error("No ErrorHandler. Is platform module (BrowserModule) included?");return i.onDestroy(function(){return Ly(n._modules,i)}),r.runOutsideAngular(function(){return r.onError.subscribe({next:function(t){s.handleError(t)}})}),function a(t,e,n){try{var r=n();return Zv(r)?r.catch(function(n){throw e.runOutsideAngular(function(){return t.handleError(n)}),n}):r}catch(n){throw e.runOutsideAngular(function(){return t.handleError(n)}),n}}(s,r,function(){var t=i.injector.get(Jv);return t.runInitializers(),t.donePromise.then(function(){return n._moduleDoBootstrap(i),i})})})},t.prototype.bootstrapModule=function(t,e){var n=this;void 0===e&&(e=[]);var r=this.injector.get(sy),i=Dy({},e);return r.createCompiler([i]).compileModuleAsync(t).then(function(t){return n.bootstrapModuleFactory(t,i)})},t.prototype._moduleDoBootstrap=function(t){var e=t.injector.get(jy);if(t._bootstrapComponents.length>0)t._bootstrapComponents.forEach(function(t){return e.bootstrap(t)});else{if(!t.instance.ngDoBootstrap)throw new Error("The module "+Xl(t.instance.constructor)+' was bootstrapped, but it does not declare "@NgModule.bootstrap" components nor a "ngDoBootstrap" method. Please define one of these.');t.instance.ngDoBootstrap(e)}this._modules.push(t)},t.prototype.onDestroy=function(t){this._destroyListeners.push(t)},Object.defineProperty(t.prototype,"injector",{get:function(){return this._injector},enumerable:!0,configurable:!0}),t.prototype.destroy=function(){if(this._destroyed)throw new Error("The platform has already been destroyed!");this._modules.slice().forEach(function(t){return t.destroy()}),this._destroyListeners.forEach(function(t){return t()}),this._destroyed=!0},Object.defineProperty(t.prototype,"destroyed",{get:function(){return this._destroyed},enumerable:!0,configurable:!0}),t.decorators=[{type:Fp}],t.ctorParameters=function(){return[{type:fp}]},t}();function Dy(t,e){return Array.isArray(e)?e.reduce(Dy,t):a({},t,e)}var jy=function(){function t(t,e,n,r,i,o){var s=this;this._zone=t,this._console=e,this._injector=n,this._exceptionHandler=r,this._componentFactoryResolver=i,this._initStatus=o,this._bootstrapListeners=[],this._views=[],this._runningTick=!1,this._enforceNoNewChanges=!1,this._stable=!0,this.componentTypes=[],this.components=[],this._enforceNoNewChanges=Iy(),this._zone.onMicrotaskEmpty.subscribe({next:function(){s._zone.run(function(){s.tick()})}});var a=new zh(function(t){s._stable=s._zone.isStable&&!s._zone.hasPendingMacrotasks&&!s._zone.hasPendingMicrotasks,s._zone.runOutsideAngular(function(){t.next(s._stable),t.complete()})}),u=new zh(function(t){var e;s._zone.runOutsideAngular(function(){e=s._zone.onStable.subscribe(function(){xy.assertNotInAngularZone(),Ql(function(){s._stable||s._zone.hasPendingMacrotasks||s._zone.hasPendingMicrotasks||(s._stable=!0,t.next(!0))})})});var n=s._zone.onUnstable.subscribe(function(){xy.assertInAngularZone(),s._stable&&(s._stable=!1,s._zone.runOutsideAngular(function(){t.next(!1)}))});return function(){e.unsubscribe(),n.unsubscribe()}});this.isStable=function l(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n=Number.POSITIVE_INFINITY,r=null,i=t[t.length-1];return Af(i)?(r=t.pop(),t.length>1&&"number"==typeof t[t.length-1]&&(n=t.pop())):"number"==typeof i&&(n=t.pop()),null===r&&1===t.length&&t[0]instanceof zh?t[0]:function o(t){return void 0===t&&(t=Number.POSITIVE_INFINITY),function t(e,n,r){return void 0===r&&(r=Number.POSITIVE_INFINITY),"function"==typeof n?function(i){return i.pipe(t(function(t,r){return function o(t,e){if(!e)return t instanceof zh?t:new zh(yd(t));if(null!=t){if(function n(t){return t&&"function"==typeof t[Kh]}(t))return function r(t,e){return new zh(e?function(n){var r=new jh;return r.add(e.schedule(function(){var i=t[Kh]();r.add(i.subscribe({next:function(t){r.add(e.schedule(function(){return n.next(t)}))},error:function(t){r.add(e.schedule(function(){return n.error(t)}))},complete:function(){r.add(e.schedule(function(){return n.complete()}))}}))})),r}:fd(t))}(t,e);if(vd(t))return function i(t,e){return new zh(e?function(n){var r=new jh;return r.add(e.schedule(function(){return t.then(function(t){r.add(e.schedule(function(){n.next(t),r.add(e.schedule(function(){return n.complete()}))}))},function(t){r.add(e.schedule(function(){return n.error(t)}))})})),r}:cd(t))}(t,e);if(dd(t))return kf(t,e);if(function o(t){return t&&"function"==typeof t[ld]}(t)||"string"==typeof t)return function s(t,e){if(!t)throw new Error("Iterable cannot be null");return new zh(e?function(n){var r,i=new jh;return i.add(function(){r&&"function"==typeof r.return&&r.return()}),i.add(e.schedule(function(){r=t[ld](),i.add(e.schedule(function(){if(!n.closed){var t,e;try{var i=r.next();t=i.value,e=i.done}catch(t){return void n.error(t)}e?n.complete():(n.next(t),this.schedule())}}))})),i}:hd(t))}(t,e)}throw new TypeError((null!==t&&typeof t||t)+" is not observable")}(e(t,r)).pipe(function i(t,e){return function n(r){if("function"!=typeof t)throw new TypeError("argument is not a function. Are you looking for `mapTo()`?");return r.lift(new rd(t,e))}}(function(e,i){return n(t,e,r,i)}))},r))}:("number"==typeof n&&(r=n),function(t){return t.lift(new wd(e,r))})}(Yf,t)}(n)(kf(t,r))}(a,u.pipe(function c(){return function(t){return nf()(function e(t,n){return function e(r){var i;if(i="function"==typeof t?t:function e(){return t},"function"==typeof n)return r.lift(new dv(i,n));var o=Object.create(r,uf);return o.source=r,o.subjectFactory=i,o}}(Tv)(t))}}()))}return t.prototype.bootstrap=function(t,e){var n,r=this;if(!this._initStatus.done)throw new Error("Cannot bootstrap as there are still asynchronous initializers running. Bootstrap components in the `ngDoBootstrap` method of the root module.");n=t instanceof uy?t:this._componentFactoryResolver.resolveComponentFactory(t),this.componentTypes.push(n.componentType);var i=n instanceof py?null:this._injector.get(hy),o=n.create(fp.NULL,[],e||n.selector,i);o.onDestroy(function(){r._unloadComponent(o)});var s=o.injector.get(Ny,null);return s&&o.injector.get(ky).registerApplication(o.location.nativeElement,s),this._loadComponent(o),Iy()&&this._console.log("Angular is running in the development mode. Call enableProdMode() to enable the production mode."),o},t.prototype.tick=function(){var e=this;if(this._runningTick)throw new Error("ApplicationRef.tick is called recursively");var n=t._tickScope();try{this._runningTick=!0,this._views.forEach(function(t){return t.detectChanges()}),this._enforceNoNewChanges&&this._views.forEach(function(t){return t.checkNoChanges()})}catch(t){this._zone.runOutsideAngular(function(){return e._exceptionHandler.handleError(t)})}finally{this._runningTick=!1,_y(n)}},t.prototype.attachView=function(t){var e=t;this._views.push(e),e.attachToAppRef(this)},t.prototype.detachView=function(t){var e=t;Ly(this._views,e),e.detachFromAppRef()},t.prototype._loadComponent=function(t){this.attachView(t.hostView),this.tick(),this.components.push(t),this._injector.get(ey,[]).concat(this._bootstrapListeners).forEach(function(e){return e(t)})},t.prototype._unloadComponent=function(t){this.detachView(t.hostView),Ly(this.components,t)},t.prototype.ngOnDestroy=function(){this._views.slice().forEach(function(t){return t.destroy()})},Object.defineProperty(t.prototype,"viewCount",{get:function(){return this._views.length},enumerable:!0,configurable:!0}),t._tickScope=my("ApplicationRef#tick()"),t.decorators=[{type:Fp}],t.ctorParameters=function(){return[{type:xy},{type:ny},{type:fp},{type:Qp},{type:ly},{type:Jv}]},t}();function Ly(t,e){var n=t.indexOf(e);n>-1&&t.splice(n,1)}
921
+ */function Ky(){return qy}new jl("AllowMultipleToken");var Uy=function(){function t(t){this._injector=t,this._modules=[],this._destroyListeners=[],this._destroyed=!1}return t.prototype.bootstrapModuleFactory=function(t,e){var n=this,r=function i(t){return"noop"===t?new Fy:("zone.js"===t?void 0:t)||new My({enableLongStackTrace:Ky()})}(e?e.ngZone:void 0),o=[{provide:My,useValue:r}];return r.run(function(){var e=gp.create({providers:o,parent:n.injector,name:t.moduleType.name}),i=t.create(e),s=i.injector.get(Jp,null);if(!s)throw new Error("No ErrorHandler. Is platform module (BrowserModule) included?");return i.onDestroy(function(){return Qy(n._modules,i)}),r.runOutsideAngular(function(){return r.onError.subscribe({next:function(t){s.handleError(t)}})}),function a(t,e,n){try{var r=n();return ry(r)?r.catch(function(n){throw e.runOutsideAngular(function(){return t.handleError(n)}),n}):r}catch(n){throw e.runOutsideAngular(function(){return t.handleError(n)}),n}}(s,r,function(){var t=i.injector.get(oy);return t.runInitializers(),t.donePromise.then(function(){return n._moduleDoBootstrap(i),i})})})},t.prototype.bootstrapModule=function(t,e){var n=this;void 0===e&&(e=[]);var r=this.injector.get(yy),i=zy({},e);return r.createCompiler([i]).compileModuleAsync(t).then(function(t){return n.bootstrapModuleFactory(t,i)})},t.prototype._moduleDoBootstrap=function(t){var e=t.injector.get(Wy);if(t._bootstrapComponents.length>0)t._bootstrapComponents.forEach(function(t){return e.bootstrap(t)});else{if(!t.instance.ngDoBootstrap)throw new Error("The module "+tp(t.instance.constructor)+' was bootstrapped, but it does not declare "@NgModule.bootstrap" components nor a "ngDoBootstrap" method. Please define one of these.');t.instance.ngDoBootstrap(e)}this._modules.push(t)},t.prototype.onDestroy=function(t){this._destroyListeners.push(t)},Object.defineProperty(t.prototype,"injector",{get:function(){return this._injector},enumerable:!0,configurable:!0}),t.prototype.destroy=function(){if(this._destroyed)throw new Error("The platform has already been destroyed!");this._modules.slice().forEach(function(t){return t.destroy()}),this._destroyListeners.forEach(function(t){return t()}),this._destroyed=!0},Object.defineProperty(t.prototype,"destroyed",{get:function(){return this._destroyed},enumerable:!0,configurable:!0}),u([Kp(),l("design:paramtypes",[gp])],t)}();function zy(t,e){return Array.isArray(e)?e.reduce(zy,t):a({},t,e)}var Wy=function(){function t(t,e,n,r,i,o){var s=this;this._zone=t,this._console=e,this._injector=n,this._exceptionHandler=r,this._componentFactoryResolver=i,this._initStatus=o,this._bootstrapListeners=[],this._views=[],this._runningTick=!1,this._enforceNoNewChanges=!1,this._stable=!0,this.componentTypes=[],this.components=[],this._enforceNoNewChanges=Ky(),this._zone.onMicrotaskEmpty.subscribe({next:function(){s._zone.run(function(){s.tick()})}});var a=new Zh(function(t){s._stable=s._zone.isStable&&!s._zone.hasPendingMacrotasks&&!s._zone.hasPendingMicrotasks,s._zone.runOutsideAngular(function(){t.next(s._stable),t.complete()})}),u=new Zh(function(t){var e;s._zone.runOutsideAngular(function(){e=s._zone.onStable.subscribe(function(){My.assertNotInAngularZone(),$l(function(){s._stable||s._zone.hasPendingMacrotasks||s._zone.hasPendingMicrotasks||(s._stable=!0,t.next(!0))})})});var n=s._zone.onUnstable.subscribe(function(){My.assertInAngularZone(),s._stable&&(s._stable=!1,s._zone.runOutsideAngular(function(){t.next(!1)}))});return function(){e.unsubscribe(),n.unsubscribe()}});this.isStable=function l(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n=Number.POSITIVE_INFINITY,r=null,i=t[t.length-1];return Rf(i)?(r=t.pop(),t.length>1&&"number"==typeof t[t.length-1]&&(n=t.pop())):"number"==typeof i&&(n=t.pop()),null===r&&1===t.length&&t[0]instanceof Zh?t[0]:function o(t){return void 0===t&&(t=Number.POSITIVE_INFINITY),function t(e,n,r){return void 0===r&&(r=Number.POSITIVE_INFINITY),"function"==typeof n?function(i){return i.pipe(t(function(t,r){return function o(t,e){if(!e)return t instanceof Zh?t:new Zh(xd(t));if(null!=t){if(function n(t){return t&&"function"==typeof t[Xh]}(t))return function r(t,e){return new Zh(e?function(n){var r=new qh;return r.add(e.schedule(function(){var i=t[Xh]();r.add(i.subscribe({next:function(t){r.add(e.schedule(function(){return n.next(t)}))},error:function(t){r.add(e.schedule(function(){return n.error(t)}))},complete:function(){r.add(e.schedule(function(){return n.complete()}))}}))})),r}:_d(t))}(t,e);if(wd(t))return function i(t,e){return new Zh(e?function(n){var r=new qh;return r.add(e.schedule(function(){return t.then(function(t){r.add(e.schedule(function(){n.next(t),r.add(e.schedule(function(){return n.complete()}))}))},function(t){r.add(e.schedule(function(){return n.error(t)}))})})),r}:vd(t))}(t,e);if(bd(t))return jf(t,e);if(function o(t){return t&&"function"==typeof t[yd]}(t)||"string"==typeof t)return function s(t,e){if(!t)throw new Error("Iterable cannot be null");return new Zh(e?function(n){var r,i=new qh;return i.add(function(){r&&"function"==typeof r.return&&r.return()}),i.add(e.schedule(function(){r=t[yd](),i.add(e.schedule(function(){if(!n.closed){var t,e;try{var i=r.next();t=i.value,e=i.done}catch(t){return void n.error(t)}e?n.complete():(n.next(t),this.schedule())}}))})),i}:gd(t))}(t,e)}throw new TypeError((null!==t&&typeof t||t)+" is not observable")}(e(t,r)).pipe(function i(t,e){return function n(r){if("function"!=typeof t)throw new TypeError("argument is not a function. Are you looking for `mapTo()`?");return r.lift(new cd(t,e))}}(function(e,i){return n(t,e,r,i)}))},r))}:("number"==typeof n&&(r=n),function(t){return t.lift(new Pd(e,r))})}(nd,t)}(n)(jf(t,r))}(a,u.pipe(function c(){return function(t){return cf()(function e(t,n){return function e(r){var i;if(i="function"==typeof t?t:function e(){return t},"function"==typeof n)return r.lift(new bv(i,n));var o=Object.create(r,df);return o.source=r,o.subjectFactory=i,o}}(Mv)(t))}}()))}var e;return e=t,t.prototype.bootstrap=function(t,e){var n,r=this;if(!this._initStatus.done)throw new Error("Cannot bootstrap as there are still asynchronous initializers running. Bootstrap components in the `ngDoBootstrap` method of the root module.");n=t instanceof gy?t:this._componentFactoryResolver.resolveComponentFactory(t),this.componentTypes.push(n.componentType);var i=n instanceof wy?null:this._injector.get(xy),o=n.create(gp.NULL,[],e||n.selector,i);o.onDestroy(function(){r._unloadComponent(o)});var s=o.injector.get(Vy,null);return s&&o.injector.get(Hy).registerApplication(o.location.nativeElement,s),this._loadComponent(o),Ky()&&this._console.log("Angular is running in the development mode. Call enableProdMode() to enable the production mode."),o},t.prototype.tick=function(){var t=this;if(this._runningTick)throw new Error("ApplicationRef.tick is called recursively");var n=e._tickScope();try{this._runningTick=!0,this._views.forEach(function(t){return t.detectChanges()}),this._enforceNoNewChanges&&this._views.forEach(function(t){return t.checkNoChanges()})}catch(e){this._zone.runOutsideAngular(function(){return t._exceptionHandler.handleError(e)})}finally{this._runningTick=!1,Ny(n)}},t.prototype.attachView=function(t){var e=t;this._views.push(e),e.attachToAppRef(this)},t.prototype.detachView=function(t){var e=t;Qy(this._views,e),e.detachFromAppRef()},t.prototype._loadComponent=function(t){this.attachView(t.hostView),this.tick(),this.components.push(t),this._injector.get(ly,[]).concat(this._bootstrapListeners).forEach(function(e){return e(t)})},t.prototype._unloadComponent=function(t){this.detachView(t.hostView),Qy(this.components,t)},t.prototype.ngOnDestroy=function(){this._views.slice().forEach(function(t){return t.destroy()})},Object.defineProperty(t.prototype,"viewCount",{get:function(){return this._views.length},enumerable:!0,configurable:!0}),t._tickScope=Py("ApplicationRef#tick()"),e=u([Kp(),l("design:paramtypes",[My,py,gp,Jp,by,oy])],t)}();function Qy(t,e){var n=t.indexOf(e);n>-1&&t.splice(n,1)}
923
922
  /**
924
923
  * @license
925
924
  * Copyright Google Inc. All Rights Reserved.
@@ -933,7 +932,14 @@ throw function e(t){var e=Error("No component factory found for "+Xl(t)+". Did y
933
932
  *
934
933
  * Use of this source code is governed by an MIT-style license that can be
935
934
  * found in the LICENSE file at https://angular.io/license
936
- */var Fy,Vy=function Vy(){},Hy=(new Ol("Renderer2Interceptor"),function Hy(){});!function(t){t[t.Important=1]="Important",t[t.DashCase=2]="DashCase"}(Fy||(Fy={}));var By,qy=function qy(){},Ky=function Ky(t){this.nativeElement=t},Uy=function(){function t(){this.dirty=!0,this._results=[],this.changes=new wy,this.length=0}return t.prototype.map=function(t){return this._results.map(t)},t.prototype.filter=function(t){return this._results.filter(t)},t.prototype.find=function(t){return this._results.find(t)},t.prototype.reduce=function(t,e){return this._results.reduce(t,e)},t.prototype.forEach=function(t){this._results.forEach(t)},t.prototype.some=function(t){return this._results.some(t)},t.prototype.toArray=function(){return this._results.slice()},t.prototype[Wl()]=function(){return this._results[Wl()]()},t.prototype.toString=function(){return this._results.toString()},t.prototype.reset=function(t){this._results=function t(e){return e.reduce(function(e,n){var r=Array.isArray(n)?t(n):n;return e.concat(r)},[])}
935
+ */var Gy,Xy=function Xy(){},Yy=(new jl("Renderer2Interceptor"),function Yy(){});!function(t){t[t.Important=1]="Important",t[t.DashCase=2]="DashCase"}(Gy||(Gy={}));var Zy=function Zy(){},$y=function $y(t){this.nativeElement=t},Jy=function(){function t(){this.dirty=!0,this._results=[],this.changes=new Oy,this.length=0}return t.prototype.map=function(t){return this._results.map(t)},t.prototype.filter=function(t){return this._results.filter(t)},t.prototype.find=function(t){return this._results.find(t)},t.prototype.reduce=function(t,e){return this._results.reduce(t,e)},t.prototype.forEach=function(t){this._results.forEach(t)},t.prototype.some=function(t){return this._results.some(t)},t.prototype.toArray=function(){return this._results.slice()},t.prototype[Zl()]=function(){return this._results[Zl()]()},t.prototype.toString=function(){return this._results.toString()},t.prototype.reset=function(t){this._results=function t(e){return e.reduce(function(e,n){var r=Array.isArray(n)?t(n):n;return e.concat(r)},[])}
936
+ /**
937
+ * @license
938
+ * Copyright Google Inc. All Rights Reserved.
939
+ *
940
+ * Use of this source code is governed by an MIT-style license that can be
941
+ * found in the LICENSE file at https://angular.io/license
942
+ */(t),this.dirty=!1,this.length=this._results.length,this.last=this._results[this.length-1],this.first=this._results[0]},t.prototype.notifyOnChanges=function(){this.changes.emit(this)},t.prototype.setDirty=function(){this.dirty=!0},t.prototype.destroy=function(){this.changes.complete(),this.changes.unsubscribe()},t}(),tm=function tm(){},em={factoryPathPrefix:"",factoryPathSuffix:".ngfactory"};
937
943
  /**
938
944
  * @license
939
945
  * Copyright Google Inc. All Rights Reserved.
@@ -947,21 +953,21 @@ throw function e(t){var e=Error("No component factory found for "+Xl(t)+". Did y
947
953
  *
948
954
  * Use of this source code is governed by an MIT-style license that can be
949
955
  * found in the LICENSE file at https://angular.io/license
950
- */(t),this.dirty=!1,this.length=this._results.length,this.last=this._results[this.length-1],this.first=this._results[0]},t.prototype.notifyOnChanges=function(){this.changes.emit(this)},t.prototype.setDirty=function(){this.dirty=!0},t.prototype.destroy=function(){this.changes.complete(),this.changes.unsubscribe()},t}(),zy=function zy(){},Wy=function Wy(){},Qy=(function(t){o(function e(){return null!==t&&t.apply(this,arguments)||this},t)}(function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o(e,t),e}(By=function By(){})),function Qy(t,e){this.name=t,this.callback=e}),Gy=function(){function t(t,e,n){this._debugContext=n,this.nativeNode=t,e&&e instanceof Xy?e.addChild(this):this.parent=null,this.listeners=[]}return Object.defineProperty(t.prototype,"injector",{get:function(){return this._debugContext.injector},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"componentInstance",{get:function(){return this._debugContext.component},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"context",{get:function(){return this._debugContext.context},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"references",{get:function(){return this._debugContext.references},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"providerTokens",{get:function(){return this._debugContext.providerTokens},enumerable:!0,configurable:!0}),t}(),Xy=function(t){function e(e,n,r){var i=t.call(this,e,n,r)||this;return i.properties={},i.attributes={},i.classes={},i.styles={},i.childNodes=[],i.nativeElement=e,i}return o(e,t),e.prototype.addChild=function(t){t&&(this.childNodes.push(t),t.parent=this)},e.prototype.removeChild=function(t){var e=this.childNodes.indexOf(t);-1!==e&&(t.parent=null,this.childNodes.splice(e,1))},e.prototype.insertChildrenAfter=function(t,e){var n,r=this,i=this.childNodes.indexOf(t);-1!==i&&((n=this.childNodes).splice.apply(n,l([i+1,0],e)),e.forEach(function(t){t.parent&&t.parent.removeChild(t),t.parent=r}))},e.prototype.insertBefore=function(t,e){var n=this.childNodes.indexOf(t);-1===n?this.addChild(e):(e.parent&&e.parent.removeChild(e),e.parent=this,this.childNodes.splice(n,0,e))},e.prototype.query=function(t){return this.queryAll(t)[0]||null},e.prototype.queryAll=function(t){var e=[];return Yy(this,t,e),e},e.prototype.queryAllNodes=function(t){var e=[];return Zy(this,t,e),e},Object.defineProperty(e.prototype,"children",{get:function(){return this.childNodes.filter(function(t){return t instanceof e})},enumerable:!0,configurable:!0}),e.prototype.triggerEventHandler=function(t,e){this.listeners.forEach(function(n){n.name==t&&n.callback(e)})},e}(Gy);
956
+ */function nm(t,e,n){if(!t)throw new Error("Cannot find '"+n+"' in '"+e+"'");return t}
951
957
  /**
952
958
  * @license
953
959
  * Copyright Google Inc. All Rights Reserved.
954
960
  *
955
961
  * Use of this source code is governed by an MIT-style license that can be
956
962
  * found in the LICENSE file at https://angular.io/license
957
- */
963
+ */!function(){function t(t,e){this._compiler=t,this._config=e||em}t.prototype.load=function(t){return this._compiler instanceof vy?this.loadFactory(t):this.loadAndCompile(t)},t.prototype.loadAndCompile=function(t){var e=this,n=h(t.split("#"),2),r=n[0],i=n[1];return void 0===i&&(i="default"),System.import(r).then(function(t){return t[i]}).then(function(t){return nm(t,r,i)}).then(function(t){return e._compiler.compileModuleAsync(t)})},t.prototype.loadFactory=function(t){var e=h(t.split("#"),2),n=e[0],r=e[1],i="NgFactory";return void 0===r&&(r="default",i=""),System.import(this._config.factoryPathPrefix+n+this._config.factoryPathSuffix).then(function(t){return t[r+i]}).then(function(t){return nm(t,n,r)})},t=u([Kp(),c(1,lp()),l("design:paramtypes",[vy,tm])],t)}();var rm,im=function im(){},om=function om(){},sm=(function(t){o(function e(){return null!==t&&t.apply(this,arguments)||this},t)}(function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o(e,t),e}(rm=function rm(){})),function sm(t,e){this.name=t,this.callback=e}),am=function(){function t(t,e,n){this._debugContext=n,this.nativeNode=t,e&&e instanceof um?e.addChild(this):this.parent=null,this.listeners=[]}return Object.defineProperty(t.prototype,"injector",{get:function(){return this._debugContext.injector},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"componentInstance",{get:function(){return this._debugContext.component},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"context",{get:function(){return this._debugContext.context},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"references",{get:function(){return this._debugContext.references},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"providerTokens",{get:function(){return this._debugContext.providerTokens},enumerable:!0,configurable:!0}),t}(),um=function(t){function e(e,n,r){var i=t.call(this,e,n,r)||this;return i.properties={},i.attributes={},i.classes={},i.styles={},i.childNodes=[],i.nativeElement=e,i}return o(e,t),e.prototype.addChild=function(t){t&&(this.childNodes.push(t),t.parent=this)},e.prototype.removeChild=function(t){var e=this.childNodes.indexOf(t);-1!==e&&(t.parent=null,this.childNodes.splice(e,1))},e.prototype.insertChildrenAfter=function(t,e){var n,r=this,i=this.childNodes.indexOf(t);-1!==i&&((n=this.childNodes).splice.apply(n,f([i+1,0],e)),e.forEach(function(t){t.parent&&t.parent.removeChild(t),t.parent=r}))},e.prototype.insertBefore=function(t,e){var n=this.childNodes.indexOf(t);-1===n?this.addChild(e):(e.parent&&e.parent.removeChild(e),e.parent=this,this.childNodes.splice(n,0,e))},e.prototype.query=function(t){return this.queryAll(t)[0]||null},e.prototype.queryAll=function(t){var e=[];return cm(this,t,e),e},e.prototype.queryAllNodes=function(t){var e=[];return lm(this,t,e),e},Object.defineProperty(e.prototype,"children",{get:function(){return this.childNodes.filter(function(t){return t instanceof e})},enumerable:!0,configurable:!0}),e.prototype.triggerEventHandler=function(t,e){this.listeners.forEach(function(n){n.name==t&&n.callback(e)})},e}(am);
958
964
  /**
959
965
  * @license
960
966
  * Copyright Google Inc. All Rights Reserved.
961
967
  *
962
968
  * Use of this source code is governed by an MIT-style license that can be
963
969
  * found in the LICENSE file at https://angular.io/license
964
- */function Yy(t,e,n){t.childNodes.forEach(function(t){t instanceof Xy&&(e(t)&&n.push(t),Yy(t,e,n))})}function Zy(t,e,n){t instanceof Xy&&t.childNodes.forEach(function(t){e(t)&&n.push(t),t instanceof Xy&&Zy(t,e,n)})}var $y=new Map;function Jy(t){return $y.get(t)||null}function tm(t){$y.set(t.nativeNode,t)}
970
+ */function cm(t,e,n){t.childNodes.forEach(function(t){t instanceof um&&(e(t)&&n.push(t),cm(t,e,n))})}function lm(t,e,n){t instanceof um&&t.childNodes.forEach(function(t){e(t)&&n.push(t),t instanceof um&&lm(t,e,n)})}var pm=new Map;function hm(t){return pm.get(t)||null}function fm(t){pm.set(t.nativeNode,t)}
965
971
  /**
966
972
  * @license
967
973
  * Copyright Google Inc. All Rights Reserved.
@@ -969,28 +975,36 @@ throw function e(t){var e=Error("No component factory found for "+Xl(t)+". Did y
969
975
  * Use of this source code is governed by an MIT-style license that can be
970
976
  * found in the LICENSE file at https://angular.io/license
971
977
  */
972
- function em(t,e){var n=im(t),r=im(e);return n&&r?function i(t,e,n){for(var r=t[Wl()](),i=e[Wl()]();;){var o=r.next(),s=i.next();if(o.done&&s.done)return!0;if(o.done||s.done)return!1;if(!n(o.value,s.value))return!1}}(t,e,em):!(n||!t||"object"!=typeof t&&"function"!=typeof t||r||!e||"object"!=typeof e&&"function"!=typeof e)||Gl(t,e)}var nm=function(){function t(t){this.wrapped=t}return t.wrap=function(e){return new t(e)},t.unwrap=function(e){return t.isWrapped(e)?e.wrapped:e},t.isWrapped=function(e){return e instanceof t},t}(),rm=function(){function t(t,e,n){this.previousValue=t,this.currentValue=e,this.firstChange=n}return t.prototype.isFirstChange=function(){return this.firstChange},t}();function im(t){return!!om(t)&&(Array.isArray(t)||!(t instanceof Map)&&Wl()in t)}function om(t){return null!==t&&("function"==typeof t||"object"==typeof t)}
978
+ function dm(t,e){var n=mm(t),r=mm(e);return n&&r?function i(t,e,n){for(var r=t[Zl()](),i=e[Zl()]();;){var o=r.next(),s=i.next();if(o.done&&s.done)return!0;if(o.done||s.done)return!1;if(!n(o.value,s.value))return!1}}(t,e,dm):!(n||!t||"object"!=typeof t&&"function"!=typeof t||r||!e||"object"!=typeof e&&"function"!=typeof e)||Jl(t,e)}var vm=function(){function t(t){this.wrapped=t}return t.wrap=function(e){return new t(e)},t.unwrap=function(e){return t.isWrapped(e)?e.wrapped:e},t.isWrapped=function(e){return e instanceof t},t}(),ym=function(){function t(t,e,n){this.previousValue=t,this.currentValue=e,this.firstChange=n}return t.prototype.isFirstChange=function(){return this.firstChange},t}();function mm(t){return!!gm(t)&&(Array.isArray(t)||!(t instanceof Map)&&Zl()in t)}function gm(t){return null!==t&&("function"==typeof t||"object"==typeof t)}
979
+ /**
980
+ * @license
981
+ * Copyright Google Inc. All Rights Reserved.
982
+ *
983
+ * Use of this source code is governed by an MIT-style license that can be
984
+ * found in the LICENSE file at https://angular.io/license
985
+ */var _m=function(){function t(){}return t.prototype.supports=function(t){return mm(t)},t.prototype.create=function(t){return new wm(t)},t}(),bm=function(t,e){return e},wm=function(){function t(t){this.length=0,this._linkedRecords=null,this._unlinkedRecords=null,this._previousItHead=null,this._itHead=null,this._itTail=null,this._additionsHead=null,this._additionsTail=null,this._movesHead=null,this._movesTail=null,this._removalsHead=null,this._removalsTail=null,this._identityChangesHead=null,this._identityChangesTail=null,this._trackByFn=t||bm}return t.prototype.forEachItem=function(t){var e;for(e=this._itHead;null!==e;e=e._next)t(e)},t.prototype.forEachOperation=function(t){for(var e=this._itHead,n=this._removalsHead,r=0,i=null;e||n;){var o=!n||e&&e.currentIndex<Cm(n,r,i)?e:n,s=Cm(o,r,i),a=o.currentIndex;if(o===n)r--,n=n._nextRemoved;else if(e=e._next,null==o.previousIndex)r++;else{i||(i=[]);var u=s-r,c=a-r;if(u!=c){for(var l=0;l<u;l++){var p=l<i.length?i[l]:i[l]=0,h=p+l;c<=h&&h<u&&(i[l]=p+1)}i[o.previousIndex]=c-u}}s!==a&&t(o,s,a)}},t.prototype.forEachPreviousItem=function(t){var e;for(e=this._previousItHead;null!==e;e=e._nextPrevious)t(e)},t.prototype.forEachAddedItem=function(t){var e;for(e=this._additionsHead;null!==e;e=e._nextAdded)t(e)},t.prototype.forEachMovedItem=function(t){var e;for(e=this._movesHead;null!==e;e=e._nextMoved)t(e)},t.prototype.forEachRemovedItem=function(t){var e;for(e=this._removalsHead;null!==e;e=e._nextRemoved)t(e)},t.prototype.forEachIdentityChange=function(t){var e;for(e=this._identityChangesHead;null!==e;e=e._nextIdentityChange)t(e)},t.prototype.diff=function(t){if(null==t&&(t=[]),!mm(t))throw new Error("Error trying to diff '"+tp(t)+"'. Only arrays and iterables are allowed");return this.check(t)?this:null},t.prototype.onDestroy=function(){},t.prototype.check=function(t){var e=this;this._reset();var n,r,i,o=this._itHead,s=!1;if(Array.isArray(t)){this.length=t.length;for(var a=0;a<this.length;a++)i=this._trackByFn(a,r=t[a]),null!==o&&Jl(o.trackById,i)?(s&&(o=this._verifyReinsertion(o,r,i,a)),Jl(o.item,r)||this._addIdentityChange(o,r)):(o=this._mismatch(o,r,i,a),s=!0),o=o._next}else n=0,function u(t,e){if(Array.isArray(t))for(var n=0;n<t.length;n++)e(t[n]);else for(var r=t[Zl()](),i=void 0;!(i=r.next()).done;)e(i.value)}(t,function(t){i=e._trackByFn(n,t),null!==o&&Jl(o.trackById,i)?(s&&(o=e._verifyReinsertion(o,t,i,n)),Jl(o.item,t)||e._addIdentityChange(o,t)):(o=e._mismatch(o,t,i,n),s=!0),o=o._next,n++}),this.length=n;return this._truncate(o),this.collection=t,this.isDirty},Object.defineProperty(t.prototype,"isDirty",{get:function(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead},enumerable:!0,configurable:!0}),t.prototype._reset=function(){if(this.isDirty){var t=void 0,e=void 0;for(t=this._previousItHead=this._itHead;null!==t;t=t._next)t._nextPrevious=t._next;for(t=this._additionsHead;null!==t;t=t._nextAdded)t.previousIndex=t.currentIndex;for(this._additionsHead=this._additionsTail=null,t=this._movesHead;null!==t;t=e)t.previousIndex=t.currentIndex,e=t._nextMoved;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}},t.prototype._mismatch=function(t,e,n,r){var i;return null===t?i=this._itTail:(i=t._prev,this._remove(t)),null!==(t=null===this._linkedRecords?null:this._linkedRecords.get(n,r))?(Jl(t.item,e)||this._addIdentityChange(t,e),this._moveAfter(t,i,r)):null!==(t=null===this._unlinkedRecords?null:this._unlinkedRecords.get(n,null))?(Jl(t.item,e)||this._addIdentityChange(t,e),this._reinsertAfter(t,i,r)):t=this._addAfter(new xm(e,n),i,r),t},t.prototype._verifyReinsertion=function(t,e,n,r){var i=null===this._unlinkedRecords?null:this._unlinkedRecords.get(n,null);return null!==i?t=this._reinsertAfter(i,t._prev,r):t.currentIndex!=r&&(t.currentIndex=r,this._addToMoves(t,r)),t},t.prototype._truncate=function(t){for(;null!==t;){var e=t._next;this._addToRemovals(this._unlink(t)),t=e}null!==this._unlinkedRecords&&this._unlinkedRecords.clear(),null!==this._additionsTail&&(this._additionsTail._nextAdded=null),null!==this._movesTail&&(this._movesTail._nextMoved=null),null!==this._itTail&&(this._itTail._next=null),null!==this._removalsTail&&(this._removalsTail._nextRemoved=null),null!==this._identityChangesTail&&(this._identityChangesTail._nextIdentityChange=null)},t.prototype._reinsertAfter=function(t,e,n){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(t);var r=t._prevRemoved,i=t._nextRemoved;return null===r?this._removalsHead=i:r._nextRemoved=i,null===i?this._removalsTail=r:i._prevRemoved=r,this._insertAfter(t,e,n),this._addToMoves(t,n),t},t.prototype._moveAfter=function(t,e,n){return this._unlink(t),this._insertAfter(t,e,n),this._addToMoves(t,n),t},t.prototype._addAfter=function(t,e,n){return this._insertAfter(t,e,n),this._additionsTail=null===this._additionsTail?this._additionsHead=t:this._additionsTail._nextAdded=t,t},t.prototype._insertAfter=function(t,e,n){var r=null===e?this._itHead:e._next;return t._next=r,t._prev=e,null===r?this._itTail=t:r._prev=t,null===e?this._itHead=t:e._next=t,null===this._linkedRecords&&(this._linkedRecords=new Sm),this._linkedRecords.put(t),t.currentIndex=n,t},t.prototype._remove=function(t){return this._addToRemovals(this._unlink(t))},t.prototype._unlink=function(t){null!==this._linkedRecords&&this._linkedRecords.remove(t);var e=t._prev,n=t._next;return null===e?this._itHead=n:e._next=n,null===n?this._itTail=e:n._prev=e,t},t.prototype._addToMoves=function(t,e){return t.previousIndex===e?t:(this._movesTail=null===this._movesTail?this._movesHead=t:this._movesTail._nextMoved=t,t)},t.prototype._addToRemovals=function(t){return null===this._unlinkedRecords&&(this._unlinkedRecords=new Sm),this._unlinkedRecords.put(t),t.currentIndex=null,t._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=t,t._prevRemoved=null):(t._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=t),t},t.prototype._addIdentityChange=function(t,e){return t.item=e,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=t:this._identityChangesTail._nextIdentityChange=t,t},t}(),xm=function xm(t,e){this.item=t,this.trackById=e,this.currentIndex=null,this.previousIndex=null,this._nextPrevious=null,this._prev=null,this._next=null,this._prevDup=null,this._nextDup=null,this._prevRemoved=null,this._nextRemoved=null,this._nextAdded=null,this._nextMoved=null,this._nextIdentityChange=null},Em=function(){function t(){this._head=null,this._tail=null}return t.prototype.add=function(t){null===this._head?(this._head=this._tail=t,t._nextDup=null,t._prevDup=null):(this._tail._nextDup=t,t._prevDup=this._tail,t._nextDup=null,this._tail=t)},t.prototype.get=function(t,e){var n;for(n=this._head;null!==n;n=n._nextDup)if((null===e||e<=n.currentIndex)&&Jl(n.trackById,t))return n;return null},t.prototype.remove=function(t){var e=t._prevDup,n=t._nextDup;return null===e?this._head=n:e._nextDup=n,null===n?this._tail=e:n._prevDup=e,null===this._head},t}(),Sm=function(){function t(){this.map=new Map}return t.prototype.put=function(t){var e=t.trackById,n=this.map.get(e);n||(n=new Em,this.map.set(e,n)),n.add(t)},t.prototype.get=function(t,e){var n=this.map.get(t);return n?n.get(t,e):null},t.prototype.remove=function(t){var e=t.trackById;return this.map.get(e).remove(t)&&this.map.delete(e),t},Object.defineProperty(t.prototype,"isEmpty",{get:function(){return 0===this.map.size},enumerable:!0,configurable:!0}),t.prototype.clear=function(){this.map.clear()},t}();function Cm(t,e,n){var r=t.previousIndex;if(null===r)return r;var i=0;return n&&r<n.length&&(i=n[r]),r+e+i}
973
986
  /**
974
987
  * @license
975
988
  * Copyright Google Inc. All Rights Reserved.
976
989
  *
977
990
  * Use of this source code is governed by an MIT-style license that can be
978
991
  * found in the LICENSE file at https://angular.io/license
979
- */var sm=function(){function t(){}return t.prototype.supports=function(t){return im(t)},t.prototype.create=function(t){return new um(t)},t}(),am=function(t,e){return e},um=function(){function t(t){this.length=0,this._linkedRecords=null,this._unlinkedRecords=null,this._previousItHead=null,this._itHead=null,this._itTail=null,this._additionsHead=null,this._additionsTail=null,this._movesHead=null,this._movesTail=null,this._removalsHead=null,this._removalsTail=null,this._identityChangesHead=null,this._identityChangesTail=null,this._trackByFn=t||am}return t.prototype.forEachItem=function(t){var e;for(e=this._itHead;null!==e;e=e._next)t(e)},t.prototype.forEachOperation=function(t){for(var e=this._itHead,n=this._removalsHead,r=0,i=null;e||n;){var o=!n||e&&e.currentIndex<hm(n,r,i)?e:n,s=hm(o,r,i),a=o.currentIndex;if(o===n)r--,n=n._nextRemoved;else if(e=e._next,null==o.previousIndex)r++;else{i||(i=[]);var u=s-r,c=a-r;if(u!=c){for(var l=0;l<u;l++){var p=l<i.length?i[l]:i[l]=0,h=p+l;c<=h&&h<u&&(i[l]=p+1)}i[o.previousIndex]=c-u}}s!==a&&t(o,s,a)}},t.prototype.forEachPreviousItem=function(t){var e;for(e=this._previousItHead;null!==e;e=e._nextPrevious)t(e)},t.prototype.forEachAddedItem=function(t){var e;for(e=this._additionsHead;null!==e;e=e._nextAdded)t(e)},t.prototype.forEachMovedItem=function(t){var e;for(e=this._movesHead;null!==e;e=e._nextMoved)t(e)},t.prototype.forEachRemovedItem=function(t){var e;for(e=this._removalsHead;null!==e;e=e._nextRemoved)t(e)},t.prototype.forEachIdentityChange=function(t){var e;for(e=this._identityChangesHead;null!==e;e=e._nextIdentityChange)t(e)},t.prototype.diff=function(t){if(null==t&&(t=[]),!im(t))throw new Error("Error trying to diff '"+Xl(t)+"'. Only arrays and iterables are allowed");return this.check(t)?this:null},t.prototype.onDestroy=function(){},t.prototype.check=function(t){var e=this;this._reset();var n,r,i,o=this._itHead,s=!1;if(Array.isArray(t)){this.length=t.length;for(var a=0;a<this.length;a++)i=this._trackByFn(a,r=t[a]),null!==o&&Gl(o.trackById,i)?(s&&(o=this._verifyReinsertion(o,r,i,a)),Gl(o.item,r)||this._addIdentityChange(o,r)):(o=this._mismatch(o,r,i,a),s=!0),o=o._next}else n=0,function u(t,e){if(Array.isArray(t))for(var n=0;n<t.length;n++)e(t[n]);else for(var r=t[Wl()](),i=void 0;!(i=r.next()).done;)e(i.value)}(t,function(t){i=e._trackByFn(n,t),null!==o&&Gl(o.trackById,i)?(s&&(o=e._verifyReinsertion(o,t,i,n)),Gl(o.item,t)||e._addIdentityChange(o,t)):(o=e._mismatch(o,t,i,n),s=!0),o=o._next,n++}),this.length=n;return this._truncate(o),this.collection=t,this.isDirty},Object.defineProperty(t.prototype,"isDirty",{get:function(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead},enumerable:!0,configurable:!0}),t.prototype._reset=function(){if(this.isDirty){var t=void 0,e=void 0;for(t=this._previousItHead=this._itHead;null!==t;t=t._next)t._nextPrevious=t._next;for(t=this._additionsHead;null!==t;t=t._nextAdded)t.previousIndex=t.currentIndex;for(this._additionsHead=this._additionsTail=null,t=this._movesHead;null!==t;t=e)t.previousIndex=t.currentIndex,e=t._nextMoved;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}},t.prototype._mismatch=function(t,e,n,r){var i;return null===t?i=this._itTail:(i=t._prev,this._remove(t)),null!==(t=null===this._linkedRecords?null:this._linkedRecords.get(n,r))?(Gl(t.item,e)||this._addIdentityChange(t,e),this._moveAfter(t,i,r)):null!==(t=null===this._unlinkedRecords?null:this._unlinkedRecords.get(n,null))?(Gl(t.item,e)||this._addIdentityChange(t,e),this._reinsertAfter(t,i,r)):t=this._addAfter(new cm(e,n),i,r),t},t.prototype._verifyReinsertion=function(t,e,n,r){var i=null===this._unlinkedRecords?null:this._unlinkedRecords.get(n,null);return null!==i?t=this._reinsertAfter(i,t._prev,r):t.currentIndex!=r&&(t.currentIndex=r,this._addToMoves(t,r)),t},t.prototype._truncate=function(t){for(;null!==t;){var e=t._next;this._addToRemovals(this._unlink(t)),t=e}null!==this._unlinkedRecords&&this._unlinkedRecords.clear(),null!==this._additionsTail&&(this._additionsTail._nextAdded=null),null!==this._movesTail&&(this._movesTail._nextMoved=null),null!==this._itTail&&(this._itTail._next=null),null!==this._removalsTail&&(this._removalsTail._nextRemoved=null),null!==this._identityChangesTail&&(this._identityChangesTail._nextIdentityChange=null)},t.prototype._reinsertAfter=function(t,e,n){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(t);var r=t._prevRemoved,i=t._nextRemoved;return null===r?this._removalsHead=i:r._nextRemoved=i,null===i?this._removalsTail=r:i._prevRemoved=r,this._insertAfter(t,e,n),this._addToMoves(t,n),t},t.prototype._moveAfter=function(t,e,n){return this._unlink(t),this._insertAfter(t,e,n),this._addToMoves(t,n),t},t.prototype._addAfter=function(t,e,n){return this._insertAfter(t,e,n),this._additionsTail=null===this._additionsTail?this._additionsHead=t:this._additionsTail._nextAdded=t,t},t.prototype._insertAfter=function(t,e,n){var r=null===e?this._itHead:e._next;return t._next=r,t._prev=e,null===r?this._itTail=t:r._prev=t,null===e?this._itHead=t:e._next=t,null===this._linkedRecords&&(this._linkedRecords=new pm),this._linkedRecords.put(t),t.currentIndex=n,t},t.prototype._remove=function(t){return this._addToRemovals(this._unlink(t))},t.prototype._unlink=function(t){null!==this._linkedRecords&&this._linkedRecords.remove(t);var e=t._prev,n=t._next;return null===e?this._itHead=n:e._next=n,null===n?this._itTail=e:n._prev=e,t},t.prototype._addToMoves=function(t,e){return t.previousIndex===e?t:(this._movesTail=null===this._movesTail?this._movesHead=t:this._movesTail._nextMoved=t,t)},t.prototype._addToRemovals=function(t){return null===this._unlinkedRecords&&(this._unlinkedRecords=new pm),this._unlinkedRecords.put(t),t.currentIndex=null,t._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=t,t._prevRemoved=null):(t._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=t),t},t.prototype._addIdentityChange=function(t,e){return t.item=e,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=t:this._identityChangesTail._nextIdentityChange=t,t},t}(),cm=function cm(t,e){this.item=t,this.trackById=e,this.currentIndex=null,this.previousIndex=null,this._nextPrevious=null,this._prev=null,this._next=null,this._prevDup=null,this._nextDup=null,this._prevRemoved=null,this._nextRemoved=null,this._nextAdded=null,this._nextMoved=null,this._nextIdentityChange=null},lm=function(){function t(){this._head=null,this._tail=null}return t.prototype.add=function(t){null===this._head?(this._head=this._tail=t,t._nextDup=null,t._prevDup=null):(this._tail._nextDup=t,t._prevDup=this._tail,t._nextDup=null,this._tail=t)},t.prototype.get=function(t,e){var n;for(n=this._head;null!==n;n=n._nextDup)if((null===e||e<=n.currentIndex)&&Gl(n.trackById,t))return n;return null},t.prototype.remove=function(t){var e=t._prevDup,n=t._nextDup;return null===e?this._head=n:e._nextDup=n,null===n?this._tail=e:n._prevDup=e,null===this._head},t}(),pm=function(){function t(){this.map=new Map}return t.prototype.put=function(t){var e=t.trackById,n=this.map.get(e);n||(n=new lm,this.map.set(e,n)),n.add(t)},t.prototype.get=function(t,e){var n=this.map.get(t);return n?n.get(t,e):null},t.prototype.remove=function(t){var e=t.trackById;return this.map.get(e).remove(t)&&this.map.delete(e),t},Object.defineProperty(t.prototype,"isEmpty",{get:function(){return 0===this.map.size},enumerable:!0,configurable:!0}),t.prototype.clear=function(){this.map.clear()},t}();function hm(t,e,n){var r=t.previousIndex;if(null===r)return r;var i=0;return n&&r<n.length&&(i=n[r]),r+e+i}
992
+ */var Tm,Pm=function(){function t(){}return t.prototype.supports=function(t){return t instanceof Map||gm(t)},t.prototype.create=function(){return new Am},t}(),Am=function(){function t(){this._records=new Map,this._mapHead=null,this._appendAfter=null,this._previousMapHead=null,this._changesHead=null,this._changesTail=null,this._additionsHead=null,this._additionsTail=null,this._removalsHead=null,this._removalsTail=null}return Object.defineProperty(t.prototype,"isDirty",{get:function(){return null!==this._additionsHead||null!==this._changesHead||null!==this._removalsHead},enumerable:!0,configurable:!0}),t.prototype.forEachItem=function(t){var e;for(e=this._mapHead;null!==e;e=e._next)t(e)},t.prototype.forEachPreviousItem=function(t){var e;for(e=this._previousMapHead;null!==e;e=e._nextPrevious)t(e)},t.prototype.forEachChangedItem=function(t){var e;for(e=this._changesHead;null!==e;e=e._nextChanged)t(e)},t.prototype.forEachAddedItem=function(t){var e;for(e=this._additionsHead;null!==e;e=e._nextAdded)t(e)},t.prototype.forEachRemovedItem=function(t){var e;for(e=this._removalsHead;null!==e;e=e._nextRemoved)t(e)},t.prototype.diff=function(t){if(t){if(!(t instanceof Map||gm(t)))throw new Error("Error trying to diff '"+tp(t)+"'. Only maps and objects are allowed")}else t=new Map;return this.check(t)?this:null},t.prototype.onDestroy=function(){},t.prototype.check=function(t){var e=this;this._reset();var n=this._mapHead;if(this._appendAfter=null,this._forEach(t,function(t,r){if(n&&n.key===r)e._maybeAddToChanges(n,t),e._appendAfter=n,n=n._next;else{var i=e._getOrCreateRecordForKey(r,t);n=e._insertBeforeOrAppend(n,i)}}),n){n._prev&&(n._prev._next=null),this._removalsHead=n;for(var r=n;null!==r;r=r._nextRemoved)r===this._mapHead&&(this._mapHead=null),this._records.delete(r.key),r._nextRemoved=r._next,r.previousValue=r.currentValue,r.currentValue=null,r._prev=null,r._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty},t.prototype._insertBeforeOrAppend=function(t,e){if(t){var n=t._prev;return e._next=t,e._prev=n,t._prev=e,n&&(n._next=e),t===this._mapHead&&(this._mapHead=e),this._appendAfter=t,t}return this._appendAfter?(this._appendAfter._next=e,e._prev=this._appendAfter):this._mapHead=e,this._appendAfter=e,null},t.prototype._getOrCreateRecordForKey=function(t,e){if(this._records.has(t)){var n=this._records.get(t);this._maybeAddToChanges(n,e);var r=n._prev,i=n._next;return r&&(r._next=i),i&&(i._prev=r),n._next=null,n._prev=null,n}var o=new Nm(t);return this._records.set(t,o),o.currentValue=e,this._addToAdditions(o),o},t.prototype._reset=function(){if(this.isDirty){var t=void 0;for(this._previousMapHead=this._mapHead,t=this._previousMapHead;null!==t;t=t._next)t._nextPrevious=t._next;for(t=this._changesHead;null!==t;t=t._nextChanged)t.previousValue=t.currentValue;for(t=this._additionsHead;null!=t;t=t._nextAdded)t.previousValue=t.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}},t.prototype._maybeAddToChanges=function(t,e){Jl(e,t.currentValue)||(t.previousValue=t.currentValue,t.currentValue=e,this._addToChanges(t))},t.prototype._addToAdditions=function(t){null===this._additionsHead?this._additionsHead=this._additionsTail=t:(this._additionsTail._nextAdded=t,this._additionsTail=t)},t.prototype._addToChanges=function(t){null===this._changesHead?this._changesHead=this._changesTail=t:(this._changesTail._nextChanged=t,this._changesTail=t)},t.prototype._forEach=function(t,e){t instanceof Map?t.forEach(e):Object.keys(t).forEach(function(n){return e(t[n],n)})},t}(),Nm=function Nm(t){this.key=t,this.previousValue=null,this.currentValue=null,this._nextPrevious=null,this._next=null,this._prev=null,this._nextAdded=null,this._nextRemoved=null,this._nextChanged=null},km=function(){function t(t){this.factories=t}return t.create=function(e,n){if(null!=n){var r=n.factories.slice();e=e.concat(r)}return new t(e)},t.extend=function(e){return{provide:t,useFactory:function(n){if(!n)throw new Error("Cannot extend IterableDiffers without a parent injector");return t.create(e,n)},deps:[[t,new hp,new lp]]}},t.prototype.find=function(t){var e=this.factories.find(function(e){return e.supports(t)});if(null!=e)return e;throw new Error("Cannot find a differ supporting object '"+t+"' of type '"+function n(t){return t.name||typeof t}
980
993
  /**
981
994
  * @license
982
995
  * Copyright Google Inc. All Rights Reserved.
983
996
  *
984
997
  * Use of this source code is governed by an MIT-style license that can be
985
998
  * found in the LICENSE file at https://angular.io/license
986
- */var fm,dm=function(){function t(){}return t.prototype.supports=function(t){return t instanceof Map||om(t)},t.prototype.create=function(){return new vm},t}(),vm=function(){function t(){this._records=new Map,this._mapHead=null,this._appendAfter=null,this._previousMapHead=null,this._changesHead=null,this._changesTail=null,this._additionsHead=null,this._additionsTail=null,this._removalsHead=null,this._removalsTail=null}return Object.defineProperty(t.prototype,"isDirty",{get:function(){return null!==this._additionsHead||null!==this._changesHead||null!==this._removalsHead},enumerable:!0,configurable:!0}),t.prototype.forEachItem=function(t){var e;for(e=this._mapHead;null!==e;e=e._next)t(e)},t.prototype.forEachPreviousItem=function(t){var e;for(e=this._previousMapHead;null!==e;e=e._nextPrevious)t(e)},t.prototype.forEachChangedItem=function(t){var e;for(e=this._changesHead;null!==e;e=e._nextChanged)t(e)},t.prototype.forEachAddedItem=function(t){var e;for(e=this._additionsHead;null!==e;e=e._nextAdded)t(e)},t.prototype.forEachRemovedItem=function(t){var e;for(e=this._removalsHead;null!==e;e=e._nextRemoved)t(e)},t.prototype.diff=function(t){if(t){if(!(t instanceof Map||om(t)))throw new Error("Error trying to diff '"+Xl(t)+"'. Only maps and objects are allowed")}else t=new Map;return this.check(t)?this:null},t.prototype.onDestroy=function(){},t.prototype.check=function(t){var e=this;this._reset();var n=this._mapHead;if(this._appendAfter=null,this._forEach(t,function(t,r){if(n&&n.key===r)e._maybeAddToChanges(n,t),e._appendAfter=n,n=n._next;else{var i=e._getOrCreateRecordForKey(r,t);n=e._insertBeforeOrAppend(n,i)}}),n){n._prev&&(n._prev._next=null),this._removalsHead=n;for(var r=n;null!==r;r=r._nextRemoved)r===this._mapHead&&(this._mapHead=null),this._records.delete(r.key),r._nextRemoved=r._next,r.previousValue=r.currentValue,r.currentValue=null,r._prev=null,r._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty},t.prototype._insertBeforeOrAppend=function(t,e){if(t){var n=t._prev;return e._next=t,e._prev=n,t._prev=e,n&&(n._next=e),t===this._mapHead&&(this._mapHead=e),this._appendAfter=t,t}return this._appendAfter?(this._appendAfter._next=e,e._prev=this._appendAfter):this._mapHead=e,this._appendAfter=e,null},t.prototype._getOrCreateRecordForKey=function(t,e){if(this._records.has(t)){var n=this._records.get(t);this._maybeAddToChanges(n,e);var r=n._prev,i=n._next;return r&&(r._next=i),i&&(i._prev=r),n._next=null,n._prev=null,n}var o=new ym(t);return this._records.set(t,o),o.currentValue=e,this._addToAdditions(o),o},t.prototype._reset=function(){if(this.isDirty){var t=void 0;for(this._previousMapHead=this._mapHead,t=this._previousMapHead;null!==t;t=t._next)t._nextPrevious=t._next;for(t=this._changesHead;null!==t;t=t._nextChanged)t.previousValue=t.currentValue;for(t=this._additionsHead;null!=t;t=t._nextAdded)t.previousValue=t.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}},t.prototype._maybeAddToChanges=function(t,e){Gl(e,t.currentValue)||(t.previousValue=t.currentValue,t.currentValue=e,this._addToChanges(t))},t.prototype._addToAdditions=function(t){null===this._additionsHead?this._additionsHead=this._additionsTail=t:(this._additionsTail._nextAdded=t,this._additionsTail=t)},t.prototype._addToChanges=function(t){null===this._changesHead?this._changesHead=this._changesTail=t:(this._changesTail._nextChanged=t,this._changesTail=t)},t.prototype._forEach=function(t,e){t instanceof Map?t.forEach(e):Object.keys(t).forEach(function(n){return e(t[n],n)})},t}(),ym=function ym(t){this.key=t,this.previousValue=null,this.currentValue=null,this._nextPrevious=null,this._next=null,this._prev=null,this._nextAdded=null,this._nextRemoved=null,this._nextChanged=null},mm=function(){function t(t){this.factories=t}return t.create=function(e,n){if(null!=n){var r=n.factories.slice();e=e.concat(r)}return new t(e)},t.extend=function(e){return{provide:t,useFactory:function(n){if(!n)throw new Error("Cannot extend IterableDiffers without a parent injector");return t.create(e,n)},deps:[[t,new ap,new op]]}},t.prototype.find=function(t){var e=this.factories.find(function(e){return e.supports(t)});if(null!=e)return e;throw new Error("Cannot find a differ supporting object '"+t+"' of type '"+function n(t){return t.name||typeof t}
999
+ */(t)+"'")},t.ngInjectableDef=Ml({providedIn:"root",factory:function(){return new t([new _m])}}),t}(),Om=function(){function t(t){this.factories=t}return t.create=function(e,n){if(n){var r=n.factories.slice();e=e.concat(r)}return new t(e)},t.extend=function(e){return{provide:t,useFactory:function(n){if(!n)throw new Error("Cannot extend KeyValueDiffers without a parent injector");return t.create(e,n)},deps:[[t,new hp,new lp]]}},t.prototype.find=function(t){var e=this.factories.find(function(e){return e.supports(t)});if(e)return e;throw new Error("Cannot find a differ supporting object '"+t+"'")},t}(),Mm=[new Pm],Im=new km([new _m]),Rm=new Om(Mm),Dm=(function jm(t,e,n){void 0===n&&(n=[]);new jl("Platform: "+e)}(0,"core",[{provide:cy,useValue:"unknown"},{provide:Uy,deps:[gp]},{provide:Hy,deps:[]},{provide:py,deps:[]}]),new jl("LocaleId"));new jl("Translations"),new jl("TranslationsFormat"),function(t){t[t.Error=0]="Error",t[t.Warning=1]="Warning",t[t.Ignore=2]="Ignore"}(Tm||(Tm={}));var Lm=[{provide:Wy,useClass:Wy,deps:[My,py,gp,Jp,by,oy]},{provide:oy,useClass:oy,deps:[[new lp,iy]]},{provide:vy,useClass:vy,deps:[]},sy,{provide:km,useFactory:
987
1000
  /**
988
1001
  * @license
989
1002
  * Copyright Google Inc. All Rights Reserved.
990
1003
  *
991
1004
  * Use of this source code is governed by an MIT-style license that can be
992
1005
  * found in the LICENSE file at https://angular.io/license
993
- */(t)+"'")},t.ngInjectableDef=Pl({providedIn:"root",factory:function(){return new t([new sm])}}),t}(),gm=function(){function t(t){this.factories=t}return t.create=function(e,n){if(n){var r=n.factories.slice();e=e.concat(r)}return new t(e)},t.extend=function(e){return{provide:t,useFactory:function(n){if(!n)throw new Error("Cannot extend KeyValueDiffers without a parent injector");return t.create(e,n)},deps:[[t,new ap,new op]]}},t.prototype.find=function(t){var e=this.factories.find(function(e){return e.supports(t)});if(e)return e;throw new Error("Cannot find a differ supporting object '"+t+"'")},t}(),_m=[new dm],bm=(new mm([new sm]),new gm(_m),function wm(t,e,n){void 0===n&&(n=[]);new Ol("Platform: "+e)}(0,"core",[{provide:ty,useValue:"unknown"},{provide:Ry,deps:[fp]},{provide:ky,deps:[]},{provide:ny,deps:[]}]),new Ol("LocaleId"));
1006
+ */
1007
+ function Fm(){return Im},deps:[]},{provide:Om,useFactory:function Vm(){return Rm},deps:[]},{provide:Dm,useFactory:function Hm(t){return t||"en-US"},deps:[[new cp(Dm),new lp,new hp]]}];
994
1008
  /**
995
1009
  * @license
996
1010
  * Copyright Google Inc. All Rights Reserved.
@@ -1019,49 +1033,49 @@ function em(t,e){var n=im(t),r=im(e);return n&&r?function i(t,e,n){for(var r=t[W
1019
1033
  * Use of this source code is governed by an MIT-style license that can be
1020
1034
  * found in the LICENSE file at https://angular.io/license
1021
1035
  */
1022
- function xm(t){var e,n,r={};try{for(var i=u(t.split(",")),o=i.next();!o.done;o=i.next())r[o.value]=!0}catch(t){e={error:t}}finally{try{o&&!o.done&&(n=i.return)&&n.call(i)}finally{if(e)throw e.error}}return r}function Em(){for(var t,e,n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];var i={};try{for(var o=u(n),s=o.next();!s.done;s=o.next()){var a=s.value;for(var c in a)a.hasOwnProperty(c)&&(i[c]=!0)}}catch(e){t={error:e}}finally{try{s&&!s.done&&(e=o.return)&&e.call(o)}finally{if(t)throw t.error}}return i}new Ol("Translations"),new Ol("TranslationsFormat"),function(t){t[t.Error=0]="Error",t[t.Warning=1]="Warning",t[t.Ignore=2]="Ignore"}(fm||(fm={})),new op,new ip(bm),new op,new ap;var Sm,Cm=xm("area,br,col,hr,img,wbr"),Tm=xm("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),Pm=xm("rp,rt"),Am=Em(Pm,Tm);Em(Cm,Em(Tm,xm("address,article,aside,blockquote,caption,center,del,details,dialog,dir,div,dl,figure,figcaption,footer,h1,h2,h3,h4,h5,h6,header,hgroup,hr,ins,main,map,menu,nav,ol,pre,section,summary,table,ul")),Em(Pm,xm("a,abbr,acronym,audio,b,bdi,bdo,big,br,cite,code,del,dfn,em,font,i,img,ins,kbd,label,map,mark,picture,q,ruby,rp,rt,s,samp,small,source,span,strike,strong,sub,sup,time,track,tt,u,var,video")),Am),Em(xm("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),xm("srcset"),xm("abbr,accesskey,align,alt,autoplay,axis,bgcolor,border,cellpadding,cellspacing,class,clear,color,cols,colspan,compact,controls,coords,datetime,default,dir,download,face,headers,height,hidden,hreflang,hspace,ismap,itemscope,itemprop,kind,label,lang,language,loop,media,muted,nohref,nowrap,open,preload,rel,rev,role,rows,rowspan,rules,scope,scrolling,shape,size,sizes,span,srclang,start,summary,tabindex,target,title,translate,type,usemap,valign,value,vspace,width")),function(t){t[t.NONE=0]="NONE",t[t.HTML=1]="HTML",t[t.STYLE=2]="STYLE",t[t.SCRIPT=3]="SCRIPT",t[t.URL=4]="URL",t[t.RESOURCE_URL=5]="RESOURCE_URL"}(Sm||(Sm={}));var Nm=function Nm(){};
1036
+ function Bm(t){var e,n,r={};try{for(var i=p(t.split(",")),o=i.next();!o.done;o=i.next())r[o.value]=!0}catch(t){e={error:t}}finally{try{o&&!o.done&&(n=i.return)&&n.call(i)}finally{if(e)throw e.error}}return r}function qm(){for(var t,e,n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];var i={};try{for(var o=p(n),s=o.next();!s.done;s=o.next()){var a=s.value;for(var u in a)a.hasOwnProperty(u)&&(i[u]=!0)}}catch(e){t={error:e}}finally{try{s&&!s.done&&(e=o.return)&&e.call(o)}finally{if(t)throw t.error}}return i}!function(){function t(t){}t=u([Up({providers:Lm}),l("design:paramtypes",[Wy])],t)}();var Km,Um=Bm("area,br,col,hr,img,wbr"),zm=Bm("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),Wm=Bm("rp,rt"),Qm=qm(Wm,zm);qm(Um,qm(zm,Bm("address,article,aside,blockquote,caption,center,del,details,dialog,dir,div,dl,figure,figcaption,footer,h1,h2,h3,h4,h5,h6,header,hgroup,hr,ins,main,map,menu,nav,ol,pre,section,summary,table,ul")),qm(Wm,Bm("a,abbr,acronym,audio,b,bdi,bdo,big,br,cite,code,del,dfn,em,font,i,img,ins,kbd,label,map,mark,picture,q,ruby,rp,rt,s,samp,small,source,span,strike,strong,sub,sup,time,track,tt,u,var,video")),Qm),qm(Bm("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),Bm("srcset"),Bm("abbr,accesskey,align,alt,autoplay,axis,bgcolor,border,cellpadding,cellspacing,class,clear,color,cols,colspan,compact,controls,coords,datetime,default,dir,download,face,headers,height,hidden,hreflang,hspace,ismap,itemscope,itemprop,kind,label,lang,language,loop,media,muted,nohref,nowrap,open,preload,rel,rev,role,rows,rowspan,rules,scope,scrolling,shape,size,sizes,span,srclang,start,summary,tabindex,target,title,translate,type,usemap,valign,value,vspace,width")),function(t){t[t.NONE=0]="NONE",t[t.HTML=1]="HTML",t[t.STYLE=2]="STYLE",t[t.SCRIPT=3]="SCRIPT",t[t.URL=4]="URL",t[t.RESOURCE_URL=5]="RESOURCE_URL"}(Km||(Km={}));var Gm=function Gm(){};
1023
1037
  /**
1024
1038
  * @license
1025
1039
  * Copyright Google Inc. All Rights Reserved.
1026
1040
  *
1027
1041
  * Use of this source code is governed by an MIT-style license that can be
1028
1042
  * found in the LICENSE file at https://angular.io/license
1029
- */function km(t,e,n){var r=t.state,i=1792&r;return i===e?(t.state=-1793&r|n,t.initIndex=-1,!0):i===n}function Om(t,e,n){return(1792&t.state)===e&&t.initIndex<=n&&(t.initIndex=n+1,!0)}function Mm(t,e){return t.nodes[e]}function Im(t,e){return t.nodes[e]}function Rm(t,e){return t.nodes[e]}function Dm(t,e){return t.nodes[e]}function jm(t,e){return t.nodes[e]}var Lm={setCurrentNode:void 0,createRootView:void 0,createEmbeddedView:void 0,createComponentView:void 0,createNgModuleRef:void 0,overrideProvider:void 0,overrideComponentView:void 0,clearOverrides:void 0,checkAndUpdateView:void 0,checkNoChangesView:void 0,destroyView:void 0,resolveDep:void 0,createDebugContext:void 0,handleEvent:void 0,updateDirectives:void 0,updateRenderer:void 0,dirtyParentQueries:void 0};
1043
+ */function Xm(t,e,n){var r=t.state,i=1792&r;return i===e?(t.state=-1793&r|n,t.initIndex=-1,!0):i===n}function Ym(t,e,n){return(1792&t.state)===e&&t.initIndex<=n&&(t.initIndex=n+1,!0)}function Zm(t,e){return t.nodes[e]}function $m(t,e){return t.nodes[e]}function Jm(t,e){return t.nodes[e]}function tg(t,e){return t.nodes[e]}function eg(t,e){return t.nodes[e]}var ng={setCurrentNode:void 0,createRootView:void 0,createEmbeddedView:void 0,createComponentView:void 0,createNgModuleRef:void 0,overrideProvider:void 0,overrideComponentView:void 0,clearOverrides:void 0,checkAndUpdateView:void 0,checkNoChangesView:void 0,destroyView:void 0,resolveDep:void 0,createDebugContext:void 0,handleEvent:void 0,updateDirectives:void 0,updateRenderer:void 0,dirtyParentQueries:void 0};
1030
1044
  /**
1031
1045
  * @license
1032
1046
  * Copyright Google Inc. All Rights Reserved.
1033
1047
  *
1034
1048
  * Use of this source code is governed by an MIT-style license that can be
1035
1049
  * found in the LICENSE file at https://angular.io/license
1036
- */function Fm(t,e,n,r){var i="ExpressionChangedAfterItHasBeenCheckedError: Expression has changed after it was checked. Previous value: '"+e+"'. Current value: '"+n+"'.";return r&&(i+=" It seems like the view has been created after its parent and its children have been dirty checked. Has it been created in a change detection hook ?"),function o(t,e){var n=new Error(t);return Vm(n,e),n}(i,t)}function Vm(t,e){t[Bp]=e,t[Kp]=e.logError.bind(e)}function Hm(t){return new Error("ViewDestroyedError: Attempt to use a destroyed view: "+t)}
1050
+ */function rg(t,e,n,r){var i="ExpressionChangedAfterItHasBeenCheckedError: Expression has changed after it was checked. Previous value: '"+e+"'. Current value: '"+n+"'.";return r&&(i+=" It seems like the view has been created after its parent and its children have been dirty checked. Has it been created in a change detection hook ?"),function o(t,e){var n=new Error(t);return ig(n,e),n}(i,t)}function ig(t,e){t[Qp]=e,t[Xp]=e.logError.bind(e)}function og(t){return new Error("ViewDestroyedError: Attempt to use a destroyed view: "+t)}
1037
1051
  /**
1038
1052
  * @license
1039
1053
  * Copyright Google Inc. All Rights Reserved.
1040
1054
  *
1041
1055
  * Use of this source code is governed by an MIT-style license that can be
1042
1056
  * found in the LICENSE file at https://angular.io/license
1043
- */var Bm=function(){},qm=new Map;function Km(t){var e=qm.get(t);return e||(e=Xl(t)+"_"+qm.size,qm.set(t,e)),e}function Um(t,e,n,r){return!(!(2&t.state)&&Gl(t.oldValues[e.bindingIndex+n],r))}function zm(t,e,n,r){return!!Um(t,e,n,r)&&(t.oldValues[e.bindingIndex+n]=r,!0)}function Wm(t,e,n,r){var i=t.oldValues[e.bindingIndex+n];if(1&t.state||!em(i,r)){var o=e.bindings[n].name;throw Fm(Lm.createDebugContext(t,e.nodeIndex),o+": "+i,o+": "+r,0!=(1&t.state))}}function Qm(t){for(var e=t;e;)2&e.def.flags&&(e.state|=8),e=e.viewContainerParent||e.parent}function Gm(t,e){for(var n=t;n&&n!==e;)n.state|=64,n=n.viewContainerParent||n.parent}function Xm(t,e,n,r){try{return Qm(33554432&t.def.nodes[e].flags?Im(t,e).componentView:t),Lm.handleEvent(t,e,n,r)}catch(e){t.root.errorHandler.handleError(e)}}function Ym(t){return t.parent?Im(t.parent,t.parentNodeDef.nodeIndex):null}function Zm(t){return t.parent?t.parentNodeDef.parent:null}function $m(t,e){switch(201347067&e.flags){case 1:return Im(t,e.nodeIndex).renderElement;case 2:return Mm(t,e.nodeIndex).renderText}}function Jm(t){return!!t.parent&&!!(32768&t.parentNodeDef.flags)}function tg(t){return!(!t.parent||32768&t.parentNodeDef.flags)}function eg(t,e){return t.map(function(t){var n,r,i;return Array.isArray(t)?(i=(n=c(t,2))[0],r=n[1]):(i=0,r=t),r&&("function"==typeof r||"object"==typeof r)&&e&&Object.defineProperty(r,up,{value:e,configurable:!0}),{flags:i,token:r,tokenKey:Km(r)}})}function ng(t,e,n){var r=n.renderParent;return r?0==(1&r.flags)||0==(33554432&r.flags)||r.element.componentRendererType&&r.element.componentRendererType.encapsulation===Lp.Native?Im(t,n.renderParent.nodeIndex).renderElement:void 0:e}var rg=new WeakMap;function ig(t){var e=rg.get(t);return e||((e=t(function(){return Bm})).factory=t,rg.set(t,e)),e}function og(t,e,n,r,i){3===e&&(n=t.renderer.parentNode($m(t,t.def.lastRenderRootNode))),sg(t,e,0,t.def.nodes.length-1,n,r,i)}function sg(t,e,n,r,i,o,s){for(var a=n;a<=r;a++){var u=t.def.nodes[a];11&u.flags&&ug(t,u,e,i,o,s),a+=u.childCount}}function ag(t,e,n,r,i,o){for(var s=t;s&&!Jm(s);)s=s.parent;for(var a=s.parent,u=Zm(s),c=u.nodeIndex+u.childCount,l=u.nodeIndex+1;l<=c;l++){var p=a.def.nodes[l];p.ngContentIndex===e&&ug(a,p,n,r,i,o),l+=p.childCount}if(!a.parent){var h=t.root.projectableNodes[e];if(h)for(l=0;l<h.length;l++)cg(t,h[l],n,r,i,o)}}function ug(t,e,n,r,i,o){if(8&e.flags)ag(t,e.ngContent.index,n,r,i,o);else{var s=$m(t,e);if(3===n&&33554432&e.flags&&48&e.bindingFlags?(16&e.bindingFlags&&cg(t,s,n,r,i,o),32&e.bindingFlags&&cg(Im(t,e.nodeIndex).componentView,s,n,r,i,o)):cg(t,s,n,r,i,o),16777216&e.flags)for(var a=Im(t,e.nodeIndex).viewContainer._embeddedViews,u=0;u<a.length;u++)og(a[u],n,r,i,o);1&e.flags&&!e.element.name&&sg(t,n,e.nodeIndex+1,e.nodeIndex+e.childCount,r,i,o)}}function cg(t,e,n,r,i,o){var s=t.renderer;switch(n){case 1:s.appendChild(r,e);break;case 2:s.insertBefore(r,e,i);break;case 3:s.removeChild(r,e);break;case 0:o.push(e)}}var lg=/^:([^:]+):(.+)$/;function pg(t){if(":"===t[0]){var e=t.match(lg);return[e[1],e[2]]}return["",t]}
1057
+ */var sg=function(){},ag=new Map;function ug(t){var e=ag.get(t);return e||(e=tp(t)+"_"+ag.size,ag.set(t,e)),e}function cg(t,e,n,r){return!(!(2&t.state)&&Jl(t.oldValues[e.bindingIndex+n],r))}function lg(t,e,n,r){return!!cg(t,e,n,r)&&(t.oldValues[e.bindingIndex+n]=r,!0)}function pg(t,e,n,r){var i=t.oldValues[e.bindingIndex+n];if(1&t.state||!dm(i,r)){var o=e.bindings[n].name;throw rg(ng.createDebugContext(t,e.nodeIndex),o+": "+i,o+": "+r,0!=(1&t.state))}}function hg(t){for(var e=t;e;)2&e.def.flags&&(e.state|=8),e=e.viewContainerParent||e.parent}function fg(t,e){for(var n=t;n&&n!==e;)n.state|=64,n=n.viewContainerParent||n.parent}function dg(t,e,n,r){try{return hg(33554432&t.def.nodes[e].flags?$m(t,e).componentView:t),ng.handleEvent(t,e,n,r)}catch(e){t.root.errorHandler.handleError(e)}}function vg(t){return t.parent?$m(t.parent,t.parentNodeDef.nodeIndex):null}function yg(t){return t.parent?t.parentNodeDef.parent:null}function mg(t,e){switch(201347067&e.flags){case 1:return $m(t,e.nodeIndex).renderElement;case 2:return Zm(t,e.nodeIndex).renderText}}function gg(t){return!!t.parent&&!!(32768&t.parentNodeDef.flags)}function _g(t){return!(!t.parent||32768&t.parentNodeDef.flags)}function bg(t,e){return t.map(function(t){var n,r,i;return Array.isArray(t)?(i=(n=h(t,2))[0],r=n[1]):(i=0,r=t),r&&("function"==typeof r||"object"==typeof r)&&e&&Object.defineProperty(r,fp,{value:e,configurable:!0}),{flags:i,token:r,tokenKey:ug(r)}})}function wg(t,e,n){var r=n.renderParent;return r?0==(1&r.flags)||0==(33554432&r.flags)||r.element.componentRendererType&&r.element.componentRendererType.encapsulation===qp.Native?$m(t,n.renderParent.nodeIndex).renderElement:void 0:e}var xg=new WeakMap;function Eg(t){var e=xg.get(t);return e||((e=t(function(){return sg})).factory=t,xg.set(t,e)),e}function Sg(t,e,n,r,i){3===e&&(n=t.renderer.parentNode(mg(t,t.def.lastRenderRootNode))),Cg(t,e,0,t.def.nodes.length-1,n,r,i)}function Cg(t,e,n,r,i,o,s){for(var a=n;a<=r;a++){var u=t.def.nodes[a];11&u.flags&&Pg(t,u,e,i,o,s),a+=u.childCount}}function Tg(t,e,n,r,i,o){for(var s=t;s&&!gg(s);)s=s.parent;for(var a=s.parent,u=yg(s),c=u.nodeIndex+u.childCount,l=u.nodeIndex+1;l<=c;l++){var p=a.def.nodes[l];p.ngContentIndex===e&&Pg(a,p,n,r,i,o),l+=p.childCount}if(!a.parent){var h=t.root.projectableNodes[e];if(h)for(l=0;l<h.length;l++)Ag(t,h[l],n,r,i,o)}}function Pg(t,e,n,r,i,o){if(8&e.flags)Tg(t,e.ngContent.index,n,r,i,o);else{var s=mg(t,e);if(3===n&&33554432&e.flags&&48&e.bindingFlags?(16&e.bindingFlags&&Ag(t,s,n,r,i,o),32&e.bindingFlags&&Ag($m(t,e.nodeIndex).componentView,s,n,r,i,o)):Ag(t,s,n,r,i,o),16777216&e.flags)for(var a=$m(t,e.nodeIndex).viewContainer._embeddedViews,u=0;u<a.length;u++)Sg(a[u],n,r,i,o);1&e.flags&&!e.element.name&&Cg(t,n,e.nodeIndex+1,e.nodeIndex+e.childCount,r,i,o)}}function Ag(t,e,n,r,i,o){var s=t.renderer;switch(n){case 1:s.appendChild(r,e);break;case 2:s.insertBefore(r,e,i);break;case 3:s.removeChild(r,e);break;case 0:o.push(e)}}var Ng=/^:([^:]+):(.+)$/;function kg(t){if(":"===t[0]){var e=t.match(Ng);return[e[1],e[2]]}return["",t]}
1044
1058
  /**
1045
1059
  * @license
1046
1060
  * Copyright Google Inc. All Rights Reserved.
1047
1061
  *
1048
1062
  * Use of this source code is governed by an MIT-style license that can be
1049
1063
  * found in the LICENSE file at https://angular.io/license
1050
- */function hg(t,e,n){var r,i=n.element,o=t.root.selectorOrNode,s=t.renderer;if(t.parent||!o){r=i.name?s.createElement(i.name,i.ns):s.createComment("");var a=ng(t,e,n);a&&s.appendChild(a,r)}else r=s.selectRootElement(o);if(i.attrs)for(var u=0;u<i.attrs.length;u++){var l=c(i.attrs[u],3);s.setAttribute(r,l[1],l[2],l[0])}return r}function fg(t,e,n,r){for(var i=0;i<n.outputs.length;i++){var o=n.outputs[i],s=dg(t,n.nodeIndex,(p=o.eventName,(l=o.target)?l+":"+p:p)),a=o.target,u=t;"component"===o.target&&(a=null,u=e);var c=u.renderer.listen(a||r,o.eventName,s);t.disposables[n.outputIndex+i]=c}var l,p}function dg(t,e,n){return function(r){return Xm(t,e,n,r)}}function vg(t,e,n,r){if(!zm(t,e,n,r))return!1;var i=e.bindings[n],o=Im(t,e.nodeIndex),s=o.renderElement,a=i.name;switch(15&i.flags){case 1:!function u(t,e,n,r,i,o){var s=e.securityContext,a=s?t.root.sanitizer.sanitize(s,o):o;a=null!=a?a.toString():null;var u=t.renderer;null!=o?u.setAttribute(n,i,a,r):u.removeAttribute(n,i,r)}(t,i,s,i.ns,a,r);break;case 2:!function c(t,e,n,r){var i=t.renderer;r?i.addClass(e,n):i.removeClass(e,n)}(t,s,a,r);break;case 4:!function l(t,e,n,r,i){var o=t.root.sanitizer.sanitize(Sm.STYLE,i);if(null!=o){o=o.toString();var s=e.suffix;null!=s&&(o+=s)}else o=null;var a=t.renderer;null!=o?a.setStyle(n,r,o):a.removeStyle(n,r)}(t,i,s,a,r);break;case 8:!function p(t,e,n,r,i){var o=e.securityContext,s=o?t.root.sanitizer.sanitize(o,i):i;t.renderer.setProperty(n,r,s)}
1064
+ */function Og(t,e,n){var r,i=n.element,o=t.root.selectorOrNode,s=t.renderer;if(t.parent||!o){r=i.name?s.createElement(i.name,i.ns):s.createComment("");var a=wg(t,e,n);a&&s.appendChild(a,r)}else r=s.selectRootElement(o);if(i.attrs)for(var u=0;u<i.attrs.length;u++){var c=h(i.attrs[u],3);s.setAttribute(r,c[1],c[2],c[0])}return r}function Mg(t,e,n,r){for(var i=0;i<n.outputs.length;i++){var o=n.outputs[i],s=Ig(t,n.nodeIndex,(p=o.eventName,(l=o.target)?l+":"+p:p)),a=o.target,u=t;"component"===o.target&&(a=null,u=e);var c=u.renderer.listen(a||r,o.eventName,s);t.disposables[n.outputIndex+i]=c}var l,p}function Ig(t,e,n){return function(r){return dg(t,e,n,r)}}function Rg(t,e,n,r){if(!lg(t,e,n,r))return!1;var i=e.bindings[n],o=$m(t,e.nodeIndex),s=o.renderElement,a=i.name;switch(15&i.flags){case 1:!function u(t,e,n,r,i,o){var s=e.securityContext,a=s?t.root.sanitizer.sanitize(s,o):o;a=null!=a?a.toString():null;var u=t.renderer;null!=o?u.setAttribute(n,i,a,r):u.removeAttribute(n,i,r)}(t,i,s,i.ns,a,r);break;case 2:!function c(t,e,n,r){var i=t.renderer;r?i.addClass(e,n):i.removeClass(e,n)}(t,s,a,r);break;case 4:!function l(t,e,n,r,i){var o=t.root.sanitizer.sanitize(Km.STYLE,i);if(null!=o){o=o.toString();var s=e.suffix;null!=s&&(o+=s)}else o=null;var a=t.renderer;null!=o?a.setStyle(n,r,o):a.removeStyle(n,r)}(t,i,s,a,r);break;case 8:!function p(t,e,n,r,i){var o=e.securityContext,s=o?t.root.sanitizer.sanitize(o,i):i;t.renderer.setProperty(n,r,s)}
1051
1065
  /**
1052
1066
  * @license
1053
1067
  * Copyright Google Inc. All Rights Reserved.
1054
1068
  *
1055
1069
  * Use of this source code is governed by an MIT-style license that can be
1056
1070
  * found in the LICENSE file at https://angular.io/license
1057
- */(33554432&e.flags&&32&i.flags?o.componentView:t,i,s,a,r)}return!0}var yg=new Object,mg=Km(fp),gg=Km(pp),_g=Km(hy);function bg(t,e,n){void 0===n&&(n=fp.THROW_IF_NOT_FOUND);var r=Np(t);try{if(8&e.flags)return e.token;if(2&e.flags&&(n=null),1&e.flags)return t._parent.get(e.token,n);var i=e.tokenKey;switch(i){case mg:case gg:case _g:return t}var o=t._def.providersByKey[i];if(o){var s=t._providers[o.index];return void 0===s&&(s=t._providers[o.index]=wg(t,o)),s===yg?void 0:s}if(e.token.ngInjectableDef&&function a(t,e){return null!=e.providedIn&&(function n(t,e){return t._def.modules.indexOf(e)>-1}(t,e.providedIn)||"root"===e.providedIn&&t._def.isRoot)}(t,e.token.ngInjectableDef)){var u=t._providers.length;return t._def.providersByKey[e.tokenKey]={flags:5120,value:e.token.ngInjectableDef.factory,deps:[],index:u,token:e.token},t._providers[u]=yg,t._providers[u]=wg(t,t._def.providersByKey[e.tokenKey])}return 4&e.flags?n:t._parent.get(e.token,n)}finally{Np(r)}}function wg(t,e){var n;switch(201347067&e.flags){case 512:n=function r(t,e,n){var r=n.length;switch(r){case 0:return new e;case 1:return new e(bg(t,n[0]));case 2:return new e(bg(t,n[0]),bg(t,n[1]));case 3:return new e(bg(t,n[0]),bg(t,n[1]),bg(t,n[2]));default:for(var i=new Array(r),o=0;o<r;o++)i[o]=bg(t,n[o]);return new(e.bind.apply(e,l([void 0],i)))}}(t,e.value,e.deps);break;case 1024:n=function i(t,e,n){var r=n.length;switch(r){case 0:return e();case 1:return e(bg(t,n[0]));case 2:return e(bg(t,n[0]),bg(t,n[1]));case 3:return e(bg(t,n[0]),bg(t,n[1]),bg(t,n[2]));default:for(var i=Array(r),o=0;o<r;o++)i[o]=bg(t,n[o]);return e.apply(void 0,l(i))}}(t,e.value,e.deps);break;case 2048:n=bg(t,e.deps[0]);break;case 256:n=e.value}return n===yg||null==n||"object"!=typeof n||131072&e.flags||"function"!=typeof n.ngOnDestroy||(e.flags|=131072),void 0===n?yg:n}function xg(t,e){var n=t.viewContainer._embeddedViews;if((null==e||e>=n.length)&&(e=n.length-1),e<0)return null;var r=n[e];return r.viewContainerParent=null,Tg(n,e),Lm.dirtyParentQueries(r),Sg(r),r}function Eg(t,e,n){var r=e?$m(e,e.def.lastRenderRootNode):t.renderElement;og(n,2,n.renderer.parentNode(r),n.renderer.nextSibling(r),void 0)}function Sg(t){og(t,3,null,null,void 0)}function Cg(t,e,n){e>=t.length?t.push(n):t.splice(e,0,n)}function Tg(t,e){e>=t.length-1?t.pop():t.splice(e,1)}
1071
+ */(33554432&e.flags&&32&i.flags?o.componentView:t,i,s,a,r)}return!0}var Dg=new Object,jg=ug(gp),Lg=ug(yp),Fg=ug(xy);function Vg(t,e,n){void 0===n&&(n=gp.THROW_IF_NOT_FOUND);var r=Rp(t);try{if(8&e.flags)return e.token;if(2&e.flags&&(n=null),1&e.flags)return t._parent.get(e.token,n);var i=e.tokenKey;switch(i){case jg:case Lg:case Fg:return t}var o=t._def.providersByKey[i];if(o){var s=t._providers[o.index];return void 0===s&&(s=t._providers[o.index]=Hg(t,o)),s===Dg?void 0:s}if(e.token.ngInjectableDef&&function a(t,e){return null!=e.providedIn&&(function n(t,e){return t._def.modules.indexOf(e)>-1}(t,e.providedIn)||"root"===e.providedIn&&t._def.isRoot)}(t,e.token.ngInjectableDef)){var u=t._providers.length;return t._def.providersByKey[e.tokenKey]={flags:5120,value:e.token.ngInjectableDef.factory,deps:[],index:u,token:e.token},t._providers[u]=Dg,t._providers[u]=Hg(t,t._def.providersByKey[e.tokenKey])}return 4&e.flags?n:t._parent.get(e.token,n)}finally{Rp(r)}}function Hg(t,e){var n;switch(201347067&e.flags){case 512:n=function r(t,e,n){var r=n.length;switch(r){case 0:return new e;case 1:return new e(Vg(t,n[0]));case 2:return new e(Vg(t,n[0]),Vg(t,n[1]));case 3:return new e(Vg(t,n[0]),Vg(t,n[1]),Vg(t,n[2]));default:for(var i=new Array(r),o=0;o<r;o++)i[o]=Vg(t,n[o]);return new(e.bind.apply(e,f([void 0],i)))}}(t,e.value,e.deps);break;case 1024:n=function i(t,e,n){var r=n.length;switch(r){case 0:return e();case 1:return e(Vg(t,n[0]));case 2:return e(Vg(t,n[0]),Vg(t,n[1]));case 3:return e(Vg(t,n[0]),Vg(t,n[1]),Vg(t,n[2]));default:for(var i=Array(r),o=0;o<r;o++)i[o]=Vg(t,n[o]);return e.apply(void 0,f(i))}}(t,e.value,e.deps);break;case 2048:n=Vg(t,e.deps[0]);break;case 256:n=e.value}return n===Dg||null==n||"object"!=typeof n||131072&e.flags||"function"!=typeof n.ngOnDestroy||(e.flags|=131072),void 0===n?Dg:n}function Bg(t,e){var n=t.viewContainer._embeddedViews;if((null==e||e>=n.length)&&(e=n.length-1),e<0)return null;var r=n[e];return r.viewContainerParent=null,zg(n,e),ng.dirtyParentQueries(r),Kg(r),r}function qg(t,e,n){var r=e?mg(e,e.def.lastRenderRootNode):t.renderElement;Sg(n,2,n.renderer.parentNode(r),n.renderer.nextSibling(r),void 0)}function Kg(t){Sg(t,3,null,null,void 0)}function Ug(t,e,n){e>=t.length?t.push(n):t.splice(e,0,n)}function zg(t,e){e>=t.length-1?t.pop():t.splice(e,1)}
1058
1072
  /**
1059
1073
  * @license
1060
1074
  * Copyright Google Inc. All Rights Reserved.
1061
1075
  *
1062
1076
  * Use of this source code is governed by an MIT-style license that can be
1063
1077
  * found in the LICENSE file at https://angular.io/license
1064
- */var Pg=new Object;!function(t){function e(e,n,r,i,o,s){var a=t.call(this)||this;return a.selector=e,a.componentType=n,a._inputs=i,a._outputs=o,a.ngContentSelectors=s,a.viewDefFactory=r,a}o(e,t),Object.defineProperty(e.prototype,"inputs",{get:function(){var t=[],e=this._inputs;for(var n in e)t.push({propName:n,templateName:e[n]});return t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"outputs",{get:function(){var t=[];for(var e in this._outputs)t.push({propName:e,templateName:this._outputs[e]});return t},enumerable:!0,configurable:!0}),e.prototype.create=function(t,e,n,r){if(!r)throw new Error("ngModule should be provided");var i=ig(this.viewDefFactory),o=i.nodes[0].element.componentProvider.nodeIndex,s=Lm.createRootView(t,e||[],n,i,r,Pg),a=Rm(s,o).instance;return n&&s.renderer.setAttribute(Im(s,0).renderElement,"ng-version",Hp.full),new Ag(s,new Mg(s),a)}}(uy);var Ag=function(t){function e(e,n,r){var i=t.call(this)||this;return i._view=e,i._viewRef=n,i._component=r,i._elDef=i._view.def.nodes[0],i.hostView=n,i.changeDetectorRef=n,i.instance=r,i}return o(e,t),Object.defineProperty(e.prototype,"location",{get:function(){return new Ky(Im(this._view,this._elDef.nodeIndex).renderElement)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"injector",{get:function(){return new jg(this._view,this._elDef)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"componentType",{get:function(){return this._component.constructor},enumerable:!0,configurable:!0}),e.prototype.destroy=function(){this._viewRef.destroy()},e.prototype.onDestroy=function(t){this._viewRef.onDestroy(t)},e}(ay);function Ng(t,e,n){return new kg(t,e,n)}var kg=function(){function t(t,e,n){this._view=t,this._elDef=e,this._data=n,this._embeddedViews=[]}return Object.defineProperty(t.prototype,"element",{get:function(){return new Ky(this._data.renderElement)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"injector",{get:function(){return new jg(this._view,this._elDef)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"parentInjector",{get:function(){for(var t=this._view,e=this._elDef.parent;!e&&t;)e=Zm(t),t=t.parent;return t?new jg(t,e):new jg(this._view,null)},enumerable:!0,configurable:!0}),t.prototype.clear=function(){for(var t=this._embeddedViews.length-1;t>=0;t--){var e=xg(this._data,t);Lm.destroyView(e)}},t.prototype.get=function(t){var e=this._embeddedViews[t];if(e){var n=new Mg(e);return n.attachToViewContainerRef(this),n}return null},Object.defineProperty(t.prototype,"length",{get:function(){return this._embeddedViews.length},enumerable:!0,configurable:!0}),t.prototype.createEmbeddedView=function(t,e,n){var r=t.createEmbeddedView(e||{});return this.insert(r,n),r},t.prototype.createComponent=function(t,e,n,r,i){var o=n||this.parentInjector;i||t instanceof py||(i=o.get(hy));var s=t.create(o,r,void 0,i);return this.insert(s.hostView,e),s},t.prototype.insert=function(t,e){if(t.destroyed)throw new Error("Cannot insert a destroyed View in a ViewContainer!");var n=t;
1078
+ */var Wg=new Object;!function(t){function e(e,n,r,i,o,s){var a=t.call(this)||this;return a.selector=e,a.componentType=n,a._inputs=i,a._outputs=o,a.ngContentSelectors=s,a.viewDefFactory=r,a}o(e,t),Object.defineProperty(e.prototype,"inputs",{get:function(){var t=[],e=this._inputs;for(var n in e)t.push({propName:n,templateName:e[n]});return t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"outputs",{get:function(){var t=[];for(var e in this._outputs)t.push({propName:e,templateName:this._outputs[e]});return t},enumerable:!0,configurable:!0}),e.prototype.create=function(t,e,n,r){if(!r)throw new Error("ngModule should be provided");var i=Eg(this.viewDefFactory),o=i.nodes[0].element.componentProvider.nodeIndex,s=ng.createRootView(t,e||[],n,i,r,Wg),a=Jm(s,o).instance;return n&&s.renderer.setAttribute($m(s,0).renderElement,"ng-version",Wp.full),new Qg(s,new Zg(s),a)}}(gy);var Qg=function(t){function e(e,n,r){var i=t.call(this)||this;return i._view=e,i._viewRef=n,i._component=r,i._elDef=i._view.def.nodes[0],i.hostView=n,i.changeDetectorRef=n,i.instance=r,i}return o(e,t),Object.defineProperty(e.prototype,"location",{get:function(){return new $y($m(this._view,this._elDef.nodeIndex).renderElement)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"injector",{get:function(){return new e_(this._view,this._elDef)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"componentType",{get:function(){return this._component.constructor},enumerable:!0,configurable:!0}),e.prototype.destroy=function(){this._viewRef.destroy()},e.prototype.onDestroy=function(t){this._viewRef.onDestroy(t)},e}(my);function Gg(t,e,n){return new Xg(t,e,n)}var Xg=function(){function t(t,e,n){this._view=t,this._elDef=e,this._data=n,this._embeddedViews=[]}return Object.defineProperty(t.prototype,"element",{get:function(){return new $y(this._data.renderElement)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"injector",{get:function(){return new e_(this._view,this._elDef)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"parentInjector",{get:function(){for(var t=this._view,e=this._elDef.parent;!e&&t;)e=yg(t),t=t.parent;return t?new e_(t,e):new e_(this._view,null)},enumerable:!0,configurable:!0}),t.prototype.clear=function(){for(var t=this._embeddedViews.length-1;t>=0;t--){var e=Bg(this._data,t);ng.destroyView(e)}},t.prototype.get=function(t){var e=this._embeddedViews[t];if(e){var n=new Zg(e);return n.attachToViewContainerRef(this),n}return null},Object.defineProperty(t.prototype,"length",{get:function(){return this._embeddedViews.length},enumerable:!0,configurable:!0}),t.prototype.createEmbeddedView=function(t,e,n){var r=t.createEmbeddedView(e||{});return this.insert(r,n),r},t.prototype.createComponent=function(t,e,n,r,i){var o=n||this.parentInjector;i||t instanceof wy||(i=o.get(xy));var s=t.create(o,r,void 0,i);return this.insert(s.hostView,e),s},t.prototype.insert=function(t,e){if(t.destroyed)throw new Error("Cannot insert a destroyed View in a ViewContainer!");var n=t;
1065
1079
  /**
1066
1080
  * @license
1067
1081
  * Copyright Google Inc. All Rights Reserved.
@@ -1069,28 +1083,28 @@ function xm(t){var e,n,r={};try{for(var i=u(t.split(",")),o=i.next();!o.done;o=i
1069
1083
  * Use of this source code is governed by an MIT-style license that can be
1070
1084
  * found in the LICENSE file at https://angular.io/license
1071
1085
  */
1072
- return function r(t,e,n,i){var o=e.viewContainer._embeddedViews;null!==n&&void 0!==n||(n=o.length),i.viewContainerParent=t,Cg(o,n,i),function s(t,e){var n=Ym(e);if(n&&n!==t&&!(16&e.state)){e.state|=16;var r=n.template._projectedViews;r||(r=n.template._projectedViews=[]),r.push(e),function i(t,e){if(!(4&e.flags)){t.nodeFlags|=4,e.flags|=4;for(var n=e.parent;n;)n.childFlags|=4,n=n.parent}}(e.parent.def,e.parentNodeDef)}}(e,i),Lm.dirtyParentQueries(i),Eg(e,n>0?o[n-1]:null,i)}(this._view,this._data,e,n._view),n.attachToViewContainerRef(this),t},t.prototype.move=function(t,e){if(t.destroyed)throw new Error("Cannot move a destroyed View in a ViewContainer!");var n=this._embeddedViews.indexOf(t._view);return function r(t,e,n){var r=t.viewContainer._embeddedViews,i=r[e];Tg(r,e),null==n&&(n=r.length),Cg(r,n,i),Lm.dirtyParentQueries(i),Sg(i),Eg(t,n>0?r[n-1]:null,i)}(this._data,n,e),t},t.prototype.indexOf=function(t){return this._embeddedViews.indexOf(t._view)},t.prototype.remove=function(t){var e=xg(this._data,t);e&&Lm.destroyView(e)},t.prototype.detach=function(t){var e=xg(this._data,t);return e?new Mg(e):null},t}();function Og(t){return new Mg(t)}var Mg=function(){function t(t){this._view=t,this._viewContainerRef=null,this._appRef=null}return Object.defineProperty(t.prototype,"rootNodes",{get:function(){return function t(e){var n=[];return og(e,0,void 0,void 0,n),n}(this._view)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"context",{get:function(){return this._view.context},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"destroyed",{get:function(){return 0!=(128&this._view.state)},enumerable:!0,configurable:!0}),t.prototype.markForCheck=function(){Qm(this._view)},t.prototype.detach=function(){this._view.state&=-5},t.prototype.detectChanges=function(){var t=this._view.root.rendererFactory;t.begin&&t.begin();try{Lm.checkAndUpdateView(this._view)}finally{t.end&&t.end()}},t.prototype.checkNoChanges=function(){Lm.checkNoChangesView(this._view)},t.prototype.reattach=function(){this._view.state|=4},t.prototype.onDestroy=function(t){this._view.disposables||(this._view.disposables=[]),this._view.disposables.push(t)},t.prototype.destroy=function(){this._appRef?this._appRef.detachView(this):this._viewContainerRef&&this._viewContainerRef.detach(this._viewContainerRef.indexOf(this)),Lm.destroyView(this._view)},t.prototype.detachFromAppRef=function(){this._appRef=null,Sg(this._view),Lm.dirtyParentQueries(this._view)},t.prototype.attachToAppRef=function(t){if(this._viewContainerRef)throw new Error("This view is already attached to a ViewContainer!");this._appRef=t},t.prototype.attachToViewContainerRef=function(t){if(this._appRef)throw new Error("This view is already attached directly to the ApplicationRef!");this._viewContainerRef=t},t}();function Ig(t,e){return new Rg(t,e)}var Rg=function(t){function e(e,n){var r=t.call(this)||this;return r._parentView=e,r._def=n,r}return o(e,t),e.prototype.createEmbeddedView=function(t){return new Mg(Lm.createEmbeddedView(this._parentView,this._def,this._def.element.template,t))},Object.defineProperty(e.prototype,"elementRef",{get:function(){return new Ky(Im(this._parentView,this._def.nodeIndex).renderElement)},enumerable:!0,configurable:!0}),e}(zy);function Dg(t,e){return new jg(t,e)}var jg=function(){function t(t,e){this.view=t,this.elDef=e}return t.prototype.get=function(t,e){return void 0===e&&(e=fp.THROW_IF_NOT_FOUND),Lm.resolveDep(this.view,this.elDef,!!this.elDef&&0!=(33554432&this.elDef.flags),{flags:0,token:t,tokenKey:Km(t)},e)},t}();function Lg(t){return new Fg(t.renderer)}var Fg=function(){function t(t){this.delegate=t}return t.prototype.selectRootElement=function(t){return this.delegate.selectRootElement(t)},t.prototype.createElement=function(t,e){var n=c(pg(e),2),r=this.delegate.createElement(n[1],n[0]);return t&&this.delegate.appendChild(t,r),r},t.prototype.createViewRoot=function(t){return t},t.prototype.createTemplateAnchor=function(t){var e=this.delegate.createComment("");return t&&this.delegate.appendChild(t,e),e},t.prototype.createText=function(t,e){var n=this.delegate.createText(e);return t&&this.delegate.appendChild(t,n),n},t.prototype.projectNodes=function(t,e){for(var n=0;n<e.length;n++)this.delegate.appendChild(t,e[n])},t.prototype.attachViewAfter=function(t,e){for(var n=this.delegate.parentNode(t),r=this.delegate.nextSibling(t),i=0;i<e.length;i++)this.delegate.insertBefore(n,e[i],r)},t.prototype.detachView=function(t){for(var e=0;e<t.length;e++){var n=t[e],r=this.delegate.parentNode(n);this.delegate.removeChild(r,n)}},t.prototype.destroyView=function(t,e){for(var n=0;n<e.length;n++)this.delegate.destroyNode(e[n])},t.prototype.listen=function(t,e,n){return this.delegate.listen(t,e,n)},t.prototype.listenGlobal=function(t,e,n){return this.delegate.listen(t,e,n)},t.prototype.setElementProperty=function(t,e,n){this.delegate.setProperty(t,e,n)},t.prototype.setElementAttribute=function(t,e,n){var r=c(pg(e),2),i=r[0],o=r[1];null!=n?this.delegate.setAttribute(t,o,n,i):this.delegate.removeAttribute(t,o,i)},t.prototype.setBindingDebugInfo=function(t,e,n){},t.prototype.setElementClass=function(t,e,n){n?this.delegate.addClass(t,e):this.delegate.removeClass(t,e)},t.prototype.setElementStyle=function(t,e,n){null!=n?this.delegate.setStyle(t,e,n):this.delegate.removeStyle(t,e)},t.prototype.invokeElementMethod=function(t,e,n){t[e].apply(t,n)},t.prototype.setText=function(t,e){this.delegate.setValue(t,e)},t.prototype.animate=function(){throw new Error("Renderer.animate is no longer supported!")},t}();function Vg(t,e,n,r){return new Hg(t,e,n,r)}var Hg=function(){function t(t,e,n,r){this._moduleType=t,this._parent=e,this._bootstrapComponents=n,this._def=r,this._destroyListeners=[],this._destroyed=!1,this.injector=this,function i(t){for(var e=t._def,n=t._providers=new Array(e.providers.length),r=0;r<e.providers.length;r++){var i=e.providers[r];4096&i.flags||void 0===n[r]&&(n[r]=wg(t,i))}}(this)}return t.prototype.get=function(t,e,n){void 0===e&&(e=fp.THROW_IF_NOT_FOUND),void 0===n&&(n=0);var r=0;return 4&n?r|=1:2&n&&(r|=4),bg(this,{token:t,tokenKey:Km(t),flags:r},e)},Object.defineProperty(t.prototype,"instance",{get:function(){return this.get(this._moduleType)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"componentFactoryResolver",{get:function(){return this.get(ly)},enumerable:!0,configurable:!0}),t.prototype.destroy=function(){if(this._destroyed)throw new Error("The ng module "+Xl(this.instance.constructor)+" has already been destroyed.");this._destroyed=!0,function t(e,n){for(var r=e._def,i=new Set,o=0;o<r.providers.length;o++)if(131072&r.providers[o].flags){var s=e._providers[o];if(s&&s!==yg){var a=s.ngOnDestroy;"function"!=typeof a||i.has(s)||(a.apply(s),i.add(s))}}}(this),this._destroyListeners.forEach(function(t){return t()})},t.prototype.onDestroy=function(t){this._destroyListeners.push(t)},t}(),Bg=Km(Vy),qg=Km(qy),Kg=Km(Ky),Ug=Km(Wy),zg=Km(zy),Wg=Km(By),Qg=Km(fp),Gg=Km(pp);
1086
+ return function r(t,e,n,i){var o=e.viewContainer._embeddedViews;null!==n&&void 0!==n||(n=o.length),i.viewContainerParent=t,Ug(o,n,i),function s(t,e){var n=vg(e);if(n&&n!==t&&!(16&e.state)){e.state|=16;var r=n.template._projectedViews;r||(r=n.template._projectedViews=[]),r.push(e),function i(t,e){if(!(4&e.flags)){t.nodeFlags|=4,e.flags|=4;for(var n=e.parent;n;)n.childFlags|=4,n=n.parent}}(e.parent.def,e.parentNodeDef)}}(e,i),ng.dirtyParentQueries(i),qg(e,n>0?o[n-1]:null,i)}(this._view,this._data,e,n._view),n.attachToViewContainerRef(this),t},t.prototype.move=function(t,e){if(t.destroyed)throw new Error("Cannot move a destroyed View in a ViewContainer!");var n=this._embeddedViews.indexOf(t._view);return function r(t,e,n){var r=t.viewContainer._embeddedViews,i=r[e];zg(r,e),null==n&&(n=r.length),Ug(r,n,i),ng.dirtyParentQueries(i),Kg(i),qg(t,n>0?r[n-1]:null,i)}(this._data,n,e),t},t.prototype.indexOf=function(t){return this._embeddedViews.indexOf(t._view)},t.prototype.remove=function(t){var e=Bg(this._data,t);e&&ng.destroyView(e)},t.prototype.detach=function(t){var e=Bg(this._data,t);return e?new Zg(e):null},t}();function Yg(t){return new Zg(t)}var Zg=function(){function t(t){this._view=t,this._viewContainerRef=null,this._appRef=null}return Object.defineProperty(t.prototype,"rootNodes",{get:function(){return function t(e){var n=[];return Sg(e,0,void 0,void 0,n),n}(this._view)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"context",{get:function(){return this._view.context},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"destroyed",{get:function(){return 0!=(128&this._view.state)},enumerable:!0,configurable:!0}),t.prototype.markForCheck=function(){hg(this._view)},t.prototype.detach=function(){this._view.state&=-5},t.prototype.detectChanges=function(){var t=this._view.root.rendererFactory;t.begin&&t.begin();try{ng.checkAndUpdateView(this._view)}finally{t.end&&t.end()}},t.prototype.checkNoChanges=function(){ng.checkNoChangesView(this._view)},t.prototype.reattach=function(){this._view.state|=4},t.prototype.onDestroy=function(t){this._view.disposables||(this._view.disposables=[]),this._view.disposables.push(t)},t.prototype.destroy=function(){this._appRef?this._appRef.detachView(this):this._viewContainerRef&&this._viewContainerRef.detach(this._viewContainerRef.indexOf(this)),ng.destroyView(this._view)},t.prototype.detachFromAppRef=function(){this._appRef=null,Kg(this._view),ng.dirtyParentQueries(this._view)},t.prototype.attachToAppRef=function(t){if(this._viewContainerRef)throw new Error("This view is already attached to a ViewContainer!");this._appRef=t},t.prototype.attachToViewContainerRef=function(t){if(this._appRef)throw new Error("This view is already attached directly to the ApplicationRef!");this._viewContainerRef=t},t}();function $g(t,e){return new Jg(t,e)}var Jg=function(t){function e(e,n){var r=t.call(this)||this;return r._parentView=e,r._def=n,r}return o(e,t),e.prototype.createEmbeddedView=function(t){return new Zg(ng.createEmbeddedView(this._parentView,this._def,this._def.element.template,t))},Object.defineProperty(e.prototype,"elementRef",{get:function(){return new $y($m(this._parentView,this._def.nodeIndex).renderElement)},enumerable:!0,configurable:!0}),e}(im);function t_(t,e){return new e_(t,e)}var e_=function(){function t(t,e){this.view=t,this.elDef=e}return t.prototype.get=function(t,e){return void 0===e&&(e=gp.THROW_IF_NOT_FOUND),ng.resolveDep(this.view,this.elDef,!!this.elDef&&0!=(33554432&this.elDef.flags),{flags:0,token:t,tokenKey:ug(t)},e)},t}();function n_(t){return new r_(t.renderer)}var r_=function(){function t(t){this.delegate=t}return t.prototype.selectRootElement=function(t){return this.delegate.selectRootElement(t)},t.prototype.createElement=function(t,e){var n=h(kg(e),2),r=this.delegate.createElement(n[1],n[0]);return t&&this.delegate.appendChild(t,r),r},t.prototype.createViewRoot=function(t){return t},t.prototype.createTemplateAnchor=function(t){var e=this.delegate.createComment("");return t&&this.delegate.appendChild(t,e),e},t.prototype.createText=function(t,e){var n=this.delegate.createText(e);return t&&this.delegate.appendChild(t,n),n},t.prototype.projectNodes=function(t,e){for(var n=0;n<e.length;n++)this.delegate.appendChild(t,e[n])},t.prototype.attachViewAfter=function(t,e){for(var n=this.delegate.parentNode(t),r=this.delegate.nextSibling(t),i=0;i<e.length;i++)this.delegate.insertBefore(n,e[i],r)},t.prototype.detachView=function(t){for(var e=0;e<t.length;e++){var n=t[e],r=this.delegate.parentNode(n);this.delegate.removeChild(r,n)}},t.prototype.destroyView=function(t,e){for(var n=0;n<e.length;n++)this.delegate.destroyNode(e[n])},t.prototype.listen=function(t,e,n){return this.delegate.listen(t,e,n)},t.prototype.listenGlobal=function(t,e,n){return this.delegate.listen(t,e,n)},t.prototype.setElementProperty=function(t,e,n){this.delegate.setProperty(t,e,n)},t.prototype.setElementAttribute=function(t,e,n){var r=h(kg(e),2),i=r[0],o=r[1];null!=n?this.delegate.setAttribute(t,o,n,i):this.delegate.removeAttribute(t,o,i)},t.prototype.setBindingDebugInfo=function(t,e,n){},t.prototype.setElementClass=function(t,e,n){n?this.delegate.addClass(t,e):this.delegate.removeClass(t,e)},t.prototype.setElementStyle=function(t,e,n){null!=n?this.delegate.setStyle(t,e,n):this.delegate.removeStyle(t,e)},t.prototype.invokeElementMethod=function(t,e,n){t[e].apply(t,n)},t.prototype.setText=function(t,e){this.delegate.setValue(t,e)},t.prototype.animate=function(){throw new Error("Renderer.animate is no longer supported!")},t}();function i_(t,e,n,r){return new o_(t,e,n,r)}var o_=function(){function t(t,e,n,r){this._moduleType=t,this._parent=e,this._bootstrapComponents=n,this._def=r,this._destroyListeners=[],this._destroyed=!1,this.injector=this,function i(t){for(var e=t._def,n=t._providers=new Array(e.providers.length),r=0;r<e.providers.length;r++){var i=e.providers[r];4096&i.flags||void 0===n[r]&&(n[r]=Hg(t,i))}}(this)}return t.prototype.get=function(t,e,n){void 0===e&&(e=gp.THROW_IF_NOT_FOUND),void 0===n&&(n=0);var r=0;return 4&n?r|=1:2&n&&(r|=4),Vg(this,{token:t,tokenKey:ug(t),flags:r},e)},Object.defineProperty(t.prototype,"instance",{get:function(){return this.get(this._moduleType)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"componentFactoryResolver",{get:function(){return this.get(by)},enumerable:!0,configurable:!0}),t.prototype.destroy=function(){if(this._destroyed)throw new Error("The ng module "+tp(this.instance.constructor)+" has already been destroyed.");this._destroyed=!0,function t(e,n){for(var r=e._def,i=new Set,o=0;o<r.providers.length;o++)if(131072&r.providers[o].flags){var s=e._providers[o];if(s&&s!==Dg){var a=s.ngOnDestroy;"function"!=typeof a||i.has(s)||(a.apply(s),i.add(s))}}}(this),this._destroyListeners.forEach(function(t){return t()})},t.prototype.onDestroy=function(t){this._destroyListeners.push(t)},t}(),s_=ug(Xy),a_=ug(Zy),u_=ug($y),c_=ug(om),l_=ug(im),p_=ug(rm),h_=ug(gp),f_=ug(yp);
1073
1087
  /**
1074
1088
  * @license
1075
1089
  * Copyright Google Inc. All Rights Reserved.
1076
1090
  *
1077
1091
  * Use of this source code is governed by an MIT-style license that can be
1078
1092
  * found in the LICENSE file at https://angular.io/license
1079
- */function Xg(t,e){return Jg(t,e)}function Yg(t,e){for(var n=t;n.parent&&!Jm(n);)n=n.parent;return t_(n.parent,Zm(n),!0,e.provider.value,e.provider.deps)}function Zg(t,e){var n=t_(t,e.parent,(32768&e.flags)>0,e.provider.value,e.provider.deps);if(e.outputs.length)for(var r=0;r<e.outputs.length;r++){var i=e.outputs[r],o=n[i.propName].subscribe($g(t,e.parent.nodeIndex,i.eventName));t.disposables[e.outputIndex+r]=o.unsubscribe.bind(o)}return n}function $g(t,e,n){return function(r){return Xm(t,e,n,r)}}function Jg(t,e){var n=(8192&e.flags)>0,r=e.provider;switch(201347067&e.flags){case 512:return t_(t,e.parent,n,r.value,r.deps);case 1024:return function i(t,e,n,r,o){var s=o.length;switch(s){case 0:return r();case 1:return r(r_(t,e,n,o[0]));case 2:return r(r_(t,e,n,o[0]),r_(t,e,n,o[1]));case 3:return r(r_(t,e,n,o[0]),r_(t,e,n,o[1]),r_(t,e,n,o[2]));default:for(var a=Array(s),u=0;u<s;u++)a[u]=r_(t,e,n,o[u]);return r.apply(void 0,l(a))}}(t,e.parent,n,r.value,r.deps);case 2048:return r_(t,e.parent,n,r.deps[0]);case 256:return r.value}}function t_(t,e,n,r,i){var o=i.length;switch(o){case 0:return new r;case 1:return new r(r_(t,e,n,i[0]));case 2:return new r(r_(t,e,n,i[0]),r_(t,e,n,i[1]));case 3:return new r(r_(t,e,n,i[0]),r_(t,e,n,i[1]),r_(t,e,n,i[2]));default:for(var s=new Array(o),a=0;a<o;a++)s[a]=r_(t,e,n,i[a]);return new(r.bind.apply(r,l([void 0],s)))}}var e_,n_={};function r_(t,e,n,r,i){if(void 0===i&&(i=fp.THROW_IF_NOT_FOUND),8&r.flags)return r.token;var o=t;2&r.flags&&(i=null);var s=r.tokenKey;s===Wg&&(n=!(!e||!e.element.componentView)),e&&1&r.flags&&(n=!1,e=e.parent);for(var a=t;a;){if(e)switch(s){case Bg:return Lg(i_(a,e,n));case qg:return i_(a,e,n).renderer;case Kg:return new Ky(Im(a,e.nodeIndex).renderElement);case Ug:return Im(a,e.nodeIndex).viewContainer;case zg:if(e.element.template)return Im(a,e.nodeIndex).template;break;case Wg:return Og(i_(a,e,n));case Qg:case Gg:return Dg(a,e);default:var u=(n?e.element.allProviders:e.element.publicProviders)[s];if(u){var c=Rm(a,u.nodeIndex);return c||(c={instance:Jg(a,u)},a.nodes[u.nodeIndex]=c),c.instance}}n=Jm(a),e=Zm(a),a=a.parent,4&r.flags&&(a=null)}var l=o.root.injector.get(r.token,n_);return l!==n_||i===n_?l:o.root.ngModule.injector.get(r.token,i)}function i_(t,e,n){var r;if(n)r=Im(t,e.nodeIndex).componentView;else for(r=t;r.parent&&!Jm(r);)r=r.parent;return r}function o_(t,e,n,r,i,o){if(32768&n.flags){var s=Im(t,n.parent.nodeIndex).componentView;2&s.def.flags&&(s.state|=8)}if(e.instance[n.bindings[r].name]=i,524288&n.flags){o=o||{};var a=nm.unwrap(t.oldValues[n.bindingIndex+r]);o[n.bindings[r].nonMinifiedName]=new rm(a,i,0!=(2&t.state))}return t.oldValues[n.bindingIndex+r]=i,o}function s_(t,e){if(t.def.nodeFlags&e)for(var n=t.def.nodes,r=0,i=0;i<n.length;i++){var o=n[i],s=o.parent;for(!s&&o.flags&e&&u_(t,i,o.flags&e,r++),0==(o.childFlags&e)&&(i+=o.childCount);s&&1&s.flags&&i===s.nodeIndex+s.childCount;)s.directChildFlags&e&&(r=a_(t,s,e,r)),s=s.parent}}function a_(t,e,n,r){for(var i=e.nodeIndex+1;i<=e.nodeIndex+e.childCount;i++){var o=t.def.nodes[i];o.flags&n&&u_(t,i,o.flags&n,r++),i+=o.childCount}return r}function u_(t,e,n,r){var i=Rm(t,e);if(i){var o=i.instance;o&&(Lm.setCurrentNode(t,e),1048576&n&&Om(t,512,r)&&o.ngAfterContentInit(),2097152&n&&o.ngAfterContentChecked(),4194304&n&&Om(t,768,r)&&o.ngAfterViewInit(),8388608&n&&o.ngAfterViewChecked(),131072&n&&o.ngOnDestroy())}}
1093
+ */function d_(t,e){return g_(t,e)}function v_(t,e){for(var n=t;n.parent&&!gg(n);)n=n.parent;return __(n.parent,yg(n),!0,e.provider.value,e.provider.deps)}function y_(t,e){var n=__(t,e.parent,(32768&e.flags)>0,e.provider.value,e.provider.deps);if(e.outputs.length)for(var r=0;r<e.outputs.length;r++){var i=e.outputs[r],o=n[i.propName].subscribe(m_(t,e.parent.nodeIndex,i.eventName));t.disposables[e.outputIndex+r]=o.unsubscribe.bind(o)}return n}function m_(t,e,n){return function(r){return dg(t,e,n,r)}}function g_(t,e){var n=(8192&e.flags)>0,r=e.provider;switch(201347067&e.flags){case 512:return __(t,e.parent,n,r.value,r.deps);case 1024:return function i(t,e,n,r,o){var s=o.length;switch(s){case 0:return r();case 1:return r(x_(t,e,n,o[0]));case 2:return r(x_(t,e,n,o[0]),x_(t,e,n,o[1]));case 3:return r(x_(t,e,n,o[0]),x_(t,e,n,o[1]),x_(t,e,n,o[2]));default:for(var a=Array(s),u=0;u<s;u++)a[u]=x_(t,e,n,o[u]);return r.apply(void 0,f(a))}}(t,e.parent,n,r.value,r.deps);case 2048:return x_(t,e.parent,n,r.deps[0]);case 256:return r.value}}function __(t,e,n,r,i){var o=i.length;switch(o){case 0:return new r;case 1:return new r(x_(t,e,n,i[0]));case 2:return new r(x_(t,e,n,i[0]),x_(t,e,n,i[1]));case 3:return new r(x_(t,e,n,i[0]),x_(t,e,n,i[1]),x_(t,e,n,i[2]));default:for(var s=new Array(o),a=0;a<o;a++)s[a]=x_(t,e,n,i[a]);return new(r.bind.apply(r,f([void 0],s)))}}var b_,w_={};function x_(t,e,n,r,i){if(void 0===i&&(i=gp.THROW_IF_NOT_FOUND),8&r.flags)return r.token;var o=t;2&r.flags&&(i=null);var s=r.tokenKey;s===p_&&(n=!(!e||!e.element.componentView)),e&&1&r.flags&&(n=!1,e=e.parent);for(var a=t;a;){if(e)switch(s){case s_:return n_(E_(a,e,n));case a_:return E_(a,e,n).renderer;case u_:return new $y($m(a,e.nodeIndex).renderElement);case c_:return $m(a,e.nodeIndex).viewContainer;case l_:if(e.element.template)return $m(a,e.nodeIndex).template;break;case p_:return Yg(E_(a,e,n));case h_:case f_:return t_(a,e);default:var u=(n?e.element.allProviders:e.element.publicProviders)[s];if(u){var c=Jm(a,u.nodeIndex);return c||(c={instance:g_(a,u)},a.nodes[u.nodeIndex]=c),c.instance}}n=gg(a),e=yg(a),a=a.parent,4&r.flags&&(a=null)}var l=o.root.injector.get(r.token,w_);return l!==w_||i===w_?l:o.root.ngModule.injector.get(r.token,i)}function E_(t,e,n){var r;if(n)r=$m(t,e.nodeIndex).componentView;else for(r=t;r.parent&&!gg(r);)r=r.parent;return r}function S_(t,e,n,r,i,o){if(32768&n.flags){var s=$m(t,n.parent.nodeIndex).componentView;2&s.def.flags&&(s.state|=8)}if(e.instance[n.bindings[r].name]=i,524288&n.flags){o=o||{};var a=vm.unwrap(t.oldValues[n.bindingIndex+r]);o[n.bindings[r].nonMinifiedName]=new ym(a,i,0!=(2&t.state))}return t.oldValues[n.bindingIndex+r]=i,o}function C_(t,e){if(t.def.nodeFlags&e)for(var n=t.def.nodes,r=0,i=0;i<n.length;i++){var o=n[i],s=o.parent;for(!s&&o.flags&e&&P_(t,i,o.flags&e,r++),0==(o.childFlags&e)&&(i+=o.childCount);s&&1&s.flags&&i===s.nodeIndex+s.childCount;)s.directChildFlags&e&&(r=T_(t,s,e,r)),s=s.parent}}function T_(t,e,n,r){for(var i=e.nodeIndex+1;i<=e.nodeIndex+e.childCount;i++){var o=t.def.nodes[i];o.flags&n&&P_(t,i,o.flags&n,r++),i+=o.childCount}return r}function P_(t,e,n,r){var i=Jm(t,e);if(i){var o=i.instance;o&&(ng.setCurrentNode(t,e),1048576&n&&Ym(t,512,r)&&o.ngAfterContentInit(),2097152&n&&o.ngAfterContentChecked(),4194304&n&&Ym(t,768,r)&&o.ngAfterViewInit(),8388608&n&&o.ngAfterViewChecked(),131072&n&&o.ngOnDestroy())}}
1080
1094
  /**
1081
1095
  * @license
1082
1096
  * Copyright Google Inc. All Rights Reserved.
1083
1097
  *
1084
1098
  * Use of this source code is governed by an MIT-style license that can be
1085
1099
  * found in the LICENSE file at https://angular.io/license
1086
- */function c_(t){for(var e=t.def.nodeMatchedQueries;t.parent&&tg(t);){var n=t.parentNodeDef;t=t.parent;for(var r=n.nodeIndex+n.childCount,i=0;i<=r;i++)67108864&(o=t.def.nodes[i]).flags&&536870912&o.flags&&(o.query.filterId&e)===o.query.filterId&&jm(t,i).setDirty(),!(1&o.flags&&i+o.childCount<n.nodeIndex)&&67108864&o.childFlags&&536870912&o.childFlags||(i+=o.childCount)}if(134217728&t.def.nodeFlags)for(i=0;i<t.def.nodes.length;i++){var o;134217728&(o=t.def.nodes[i]).flags&&536870912&o.flags&&jm(t,i).setDirty(),i+=o.childCount}}function l_(t,e){var n=jm(t,e.nodeIndex);if(n.dirty){var r,i=void 0;if(67108864&e.flags){var o=e.parent.parent;i=p_(t,o.nodeIndex,o.nodeIndex+o.childCount,e.query,[]),r=Rm(t,e.parent.nodeIndex).instance}else 134217728&e.flags&&(i=p_(t,0,t.def.nodes.length-1,e.query,[]),r=t.component);n.reset(i);for(var s=e.query.bindings,a=!1,u=0;u<s.length;u++){var c=s[u],l=void 0;switch(c.bindingType){case 0:l=n.first;break;case 1:l=n,a=!0}r[c.propName]=l}a&&n.notifyOnChanges()}}function p_(t,e,n,r,i){for(var o=e;o<=n;o++){var s=t.def.nodes[o],a=s.matchedQueries[r.id];if(null!=a&&i.push(h_(t,s,a)),1&s.flags&&s.element.template&&(s.element.template.nodeMatchedQueries&r.filterId)===r.filterId){var u=Im(t,o);if((s.childMatchedQueries&r.filterId)===r.filterId&&(p_(t,o+1,o+s.childCount,r,i),o+=s.childCount),16777216&s.flags)for(var c=u.viewContainer._embeddedViews,l=0;l<c.length;l++){var p=c[l],h=Ym(p);h&&h===u&&p_(p,0,p.def.nodes.length-1,r,i)}var f=u.template._projectedViews;if(f)for(l=0;l<f.length;l++){var d=f[l];p_(d,0,d.def.nodes.length-1,r,i)}}(s.childMatchedQueries&r.filterId)!==r.filterId&&(o+=s.childCount)}return i}function h_(t,e,n){if(null!=n)switch(n){case 1:return Im(t,e.nodeIndex).renderElement;case 0:return new Ky(Im(t,e.nodeIndex).renderElement);case 2:return Im(t,e.nodeIndex).template;case 3:return Im(t,e.nodeIndex).viewContainer;case 4:return Rm(t,e.nodeIndex).instance}}
1100
+ */function A_(t){for(var e=t.def.nodeMatchedQueries;t.parent&&_g(t);){var n=t.parentNodeDef;t=t.parent;for(var r=n.nodeIndex+n.childCount,i=0;i<=r;i++)67108864&(o=t.def.nodes[i]).flags&&536870912&o.flags&&(o.query.filterId&e)===o.query.filterId&&eg(t,i).setDirty(),!(1&o.flags&&i+o.childCount<n.nodeIndex)&&67108864&o.childFlags&&536870912&o.childFlags||(i+=o.childCount)}if(134217728&t.def.nodeFlags)for(i=0;i<t.def.nodes.length;i++){var o;134217728&(o=t.def.nodes[i]).flags&&536870912&o.flags&&eg(t,i).setDirty(),i+=o.childCount}}function N_(t,e){var n=eg(t,e.nodeIndex);if(n.dirty){var r,i=void 0;if(67108864&e.flags){var o=e.parent.parent;i=k_(t,o.nodeIndex,o.nodeIndex+o.childCount,e.query,[]),r=Jm(t,e.parent.nodeIndex).instance}else 134217728&e.flags&&(i=k_(t,0,t.def.nodes.length-1,e.query,[]),r=t.component);n.reset(i);for(var s=e.query.bindings,a=!1,u=0;u<s.length;u++){var c=s[u],l=void 0;switch(c.bindingType){case 0:l=n.first;break;case 1:l=n,a=!0}r[c.propName]=l}a&&n.notifyOnChanges()}}function k_(t,e,n,r,i){for(var o=e;o<=n;o++){var s=t.def.nodes[o],a=s.matchedQueries[r.id];if(null!=a&&i.push(O_(t,s,a)),1&s.flags&&s.element.template&&(s.element.template.nodeMatchedQueries&r.filterId)===r.filterId){var u=$m(t,o);if((s.childMatchedQueries&r.filterId)===r.filterId&&(k_(t,o+1,o+s.childCount,r,i),o+=s.childCount),16777216&s.flags)for(var c=u.viewContainer._embeddedViews,l=0;l<c.length;l++){var p=c[l],h=vg(p);h&&h===u&&k_(p,0,p.def.nodes.length-1,r,i)}var f=u.template._projectedViews;if(f)for(l=0;l<f.length;l++){var d=f[l];k_(d,0,d.def.nodes.length-1,r,i)}}(s.childMatchedQueries&r.filterId)!==r.filterId&&(o+=s.childCount)}return i}function O_(t,e,n){if(null!=n)switch(n){case 1:return $m(t,e.nodeIndex).renderElement;case 0:return new $y($m(t,e.nodeIndex).renderElement);case 2:return $m(t,e.nodeIndex).template;case 3:return $m(t,e.nodeIndex).viewContainer;case 4:return Jm(t,e.nodeIndex).instance}}
1087
1101
  /**
1088
1102
  * @license
1089
1103
  * Copyright Google Inc. All Rights Reserved.
1090
1104
  *
1091
1105
  * Use of this source code is governed by an MIT-style license that can be
1092
1106
  * found in the LICENSE file at https://angular.io/license
1093
- */function f_(t,e,n){var r=ng(t,e,n);r&&ag(t,n.ngContent.index,1,r,null,void 0)}
1107
+ */function M_(t,e,n){var r=wg(t,e,n);r&&Tg(t,n.ngContent.index,1,r,null,void 0)}
1094
1108
  /**
1095
1109
  * @license
1096
1110
  * Copyright Google Inc. All Rights Reserved.
@@ -1105,21 +1119,21 @@ return function r(t,e,n,i){var o=e.viewContainer._embeddedViews;null!==n&&void 0
1105
1119
  * Use of this source code is governed by an MIT-style license that can be
1106
1120
  * found in the LICENSE file at https://angular.io/license
1107
1121
  */
1108
- function d_(t,e,n){var r,i=t.renderer;r=i.createText(n.text.prefix);var o=ng(t,e,n);return o&&i.appendChild(o,r),{renderText:r}}function v_(t,e){return(null!=t?t.toString():"")+e.suffix}
1122
+ function I_(t,e,n){var r,i=t.renderer;r=i.createText(n.text.prefix);var o=wg(t,e,n);return o&&i.appendChild(o,r),{renderText:r}}function R_(t,e){return(null!=t?t.toString():"")+e.suffix}
1109
1123
  /**
1110
1124
  * @license
1111
1125
  * Copyright Google Inc. All Rights Reserved.
1112
1126
  *
1113
1127
  * Use of this source code is governed by an MIT-style license that can be
1114
1128
  * found in the LICENSE file at https://angular.io/license
1115
- */function y_(t,e,n,r){var i=__(t.root,t.renderer,t,e,n);return b_(i,t.component,r),w_(i),i}function m_(t,e,n){var r=__(t,t.renderer,null,null,e);return b_(r,n,n),w_(r),r}function g_(t,e,n,r){var i,o=e.element.componentRendererType;return i=o?t.root.rendererFactory.createRenderer(r,o):t.root.renderer,__(t.root,i,t,e.element.componentProvider,n)}function __(t,e,n,r,i){var o=new Array(i.nodes.length),s=i.outputCount?new Array(i.outputCount):null;return{def:i,parent:n,viewContainerParent:null,parentNodeDef:r,context:null,component:null,nodes:o,state:13,root:t,renderer:e,oldValues:new Array(i.bindingCount),disposables:s,initIndex:-1}}function b_(t,e,n){t.component=e,t.context=n}function w_(t){var e;Jm(t)&&(e=Im(t.parent,t.parentNodeDef.parent.nodeIndex).renderElement);for(var n=t.def,r=t.nodes,i=0;i<n.nodes.length;i++){var o=n.nodes[i];Lm.setCurrentNode(t,i);var s=void 0;switch(201347067&o.flags){case 1:var a=hg(t,e,o),u=void 0;if(33554432&o.flags){var c=ig(o.element.componentView);u=Lm.createComponentView(t,o,c,a)}fg(t,u,o,a),s={renderElement:a,componentView:u,viewContainer:null,template:o.element.template?Ig(t,o):void 0},16777216&o.flags&&(s.viewContainer=Ng(t,o,s));break;case 2:s=d_(t,e,o);break;case 512:case 1024:case 2048:case 256:(s=r[i])||4096&o.flags||(s={instance:Xg(t,o)});break;case 16:s={instance:Yg(t,o)};break;case 16384:(s=r[i])||(s={instance:Zg(t,o)}),32768&o.flags&&b_(Im(t,o.parent.nodeIndex).componentView,s.instance,s.instance);break;case 32:case 64:case 128:s={value:void 0};break;case 67108864:case 134217728:s=new Uy;break;case 8:f_(t,e,o),s=void 0}r[i]=s}N_(t,e_.CreateViewNodes),I_(t,201326592,268435456,0)}function x_(t){C_(t),Lm.updateDirectives(t,1),k_(t,e_.CheckNoChanges),Lm.updateRenderer(t,1),N_(t,e_.CheckNoChanges),t.state&=-97}function E_(t){1&t.state?(t.state&=-2,t.state|=2):t.state&=-3,km(t,0,256),C_(t),Lm.updateDirectives(t,0),k_(t,e_.CheckAndUpdate),I_(t,67108864,536870912,0);var e=km(t,256,512);s_(t,2097152|(e?1048576:0)),Lm.updateRenderer(t,0),N_(t,e_.CheckAndUpdate),I_(t,134217728,536870912,0),s_(t,8388608|((e=km(t,512,768))?4194304:0)),2&t.def.flags&&(t.state&=-9),t.state&=-97,km(t,768,1024)}function S_(t,e,n,r,i,o,s,a,u,c,p,h,f){return 0===n?function d(t,e,n,r,i,o,s,a,u,c,l,p){switch(201347067&e.flags){case 1:return function h(t,e,n,r,i,o,s,a,u,c,l,p){var h=e.bindings.length,f=!1;return h>0&&vg(t,e,0,n)&&(f=!0),h>1&&vg(t,e,1,r)&&(f=!0),h>2&&vg(t,e,2,i)&&(f=!0),h>3&&vg(t,e,3,o)&&(f=!0),h>4&&vg(t,e,4,s)&&(f=!0),h>5&&vg(t,e,5,a)&&(f=!0),h>6&&vg(t,e,6,u)&&(f=!0),h>7&&vg(t,e,7,c)&&(f=!0),h>8&&vg(t,e,8,l)&&(f=!0),h>9&&vg(t,e,9,p)&&(f=!0),f}(t,e,n,r,i,o,s,a,u,c,l,p);case 2:return function f(t,e,n,r,i,o,s,a,u,c,l,p){var h=!1,f=e.bindings,d=f.length;if(d>0&&zm(t,e,0,n)&&(h=!0),d>1&&zm(t,e,1,r)&&(h=!0),d>2&&zm(t,e,2,i)&&(h=!0),d>3&&zm(t,e,3,o)&&(h=!0),d>4&&zm(t,e,4,s)&&(h=!0),d>5&&zm(t,e,5,a)&&(h=!0),d>6&&zm(t,e,6,u)&&(h=!0),d>7&&zm(t,e,7,c)&&(h=!0),d>8&&zm(t,e,8,l)&&(h=!0),d>9&&zm(t,e,9,p)&&(h=!0),h){var v=e.text.prefix;d>0&&(v+=v_(n,f[0])),d>1&&(v+=v_(r,f[1])),d>2&&(v+=v_(i,f[2])),d>3&&(v+=v_(o,f[3])),d>4&&(v+=v_(s,f[4])),d>5&&(v+=v_(a,f[5])),d>6&&(v+=v_(u,f[6])),d>7&&(v+=v_(c,f[7])),d>8&&(v+=v_(l,f[8])),d>9&&(v+=v_(p,f[9]));var y=Mm(t,e.nodeIndex).renderText;t.renderer.setValue(y,v)}return h}(t,e,n,r,i,o,s,a,u,c,l,p);case 16384:return function d(t,e,n,r,i,o,s,a,u,c,l,p){var h=Rm(t,e.nodeIndex),f=h.instance,d=!1,v=void 0,y=e.bindings.length;return y>0&&Um(t,e,0,n)&&(d=!0,v=o_(t,h,e,0,n,v)),y>1&&Um(t,e,1,r)&&(d=!0,v=o_(t,h,e,1,r,v)),y>2&&Um(t,e,2,i)&&(d=!0,v=o_(t,h,e,2,i,v)),y>3&&Um(t,e,3,o)&&(d=!0,v=o_(t,h,e,3,o,v)),y>4&&Um(t,e,4,s)&&(d=!0,v=o_(t,h,e,4,s,v)),y>5&&Um(t,e,5,a)&&(d=!0,v=o_(t,h,e,5,a,v)),y>6&&Um(t,e,6,u)&&(d=!0,v=o_(t,h,e,6,u,v)),y>7&&Um(t,e,7,c)&&(d=!0,v=o_(t,h,e,7,c,v)),y>8&&Um(t,e,8,l)&&(d=!0,v=o_(t,h,e,8,l,v)),y>9&&Um(t,e,9,p)&&(d=!0,v=o_(t,h,e,9,p,v)),v&&f.ngOnChanges(v),65536&e.flags&&Om(t,256,e.nodeIndex)&&f.ngOnInit(),262144&e.flags&&f.ngDoCheck(),d}(t,e,n,r,i,o,s,a,u,c,l,p);case 32:case 64:case 128:return function v(t,e,n,r,i,o,s,a,u,c,l,p){var h=e.bindings,f=!1,d=h.length;if(d>0&&zm(t,e,0,n)&&(f=!0),d>1&&zm(t,e,1,r)&&(f=!0),d>2&&zm(t,e,2,i)&&(f=!0),d>3&&zm(t,e,3,o)&&(f=!0),d>4&&zm(t,e,4,s)&&(f=!0),d>5&&zm(t,e,5,a)&&(f=!0),d>6&&zm(t,e,6,u)&&(f=!0),d>7&&zm(t,e,7,c)&&(f=!0),d>8&&zm(t,e,8,l)&&(f=!0),d>9&&zm(t,e,9,p)&&(f=!0),f){var v=Dm(t,e.nodeIndex),y=void 0;switch(201347067&e.flags){case 32:y=new Array(h.length),d>0&&(y[0]=n),d>1&&(y[1]=r),d>2&&(y[2]=i),d>3&&(y[3]=o),d>4&&(y[4]=s),d>5&&(y[5]=a),d>6&&(y[6]=u),d>7&&(y[7]=c),d>8&&(y[8]=l),d>9&&(y[9]=p);break;case 64:y={},d>0&&(y[h[0].name]=n),d>1&&(y[h[1].name]=r),d>2&&(y[h[2].name]=i),d>3&&(y[h[3].name]=o),d>4&&(y[h[4].name]=s),d>5&&(y[h[5].name]=a),d>6&&(y[h[6].name]=u),d>7&&(y[h[7].name]=c),d>8&&(y[h[8].name]=l),d>9&&(y[h[9].name]=p);break;case 128:var m=n;switch(d){case 1:y=m.transform(n);break;case 2:y=m.transform(r);break;case 3:y=m.transform(r,i);break;case 4:y=m.transform(r,i,o);break;case 5:y=m.transform(r,i,o,s);break;case 6:y=m.transform(r,i,o,s,a);break;case 7:y=m.transform(r,i,o,s,a,u);break;case 8:y=m.transform(r,i,o,s,a,u,c);break;case 9:y=m.transform(r,i,o,s,a,u,c,l);break;case 10:y=m.transform(r,i,o,s,a,u,c,l,p)}}v.value=y}return f}(t,e,n,r,i,o,s,a,u,c,l,p);default:throw"unreachable"}}(t,e,r,i,o,s,a,u,c,p,h,f):function v(t,e,n){switch(201347067&e.flags){case 1:return function r(t,e,n){for(var r=!1,i=0;i<n.length;i++)vg(t,e,i,n[i])&&(r=!0);return r}(t,e,n);case 2:return function i(t,e,n){for(var r=e.bindings,i=!1,o=0;o<n.length;o++)zm(t,e,o,n[o])&&(i=!0);if(i){var s="";for(o=0;o<n.length;o++)s+=v_(n[o],r[o]);s=e.text.prefix+s;var a=Mm(t,e.nodeIndex).renderText;t.renderer.setValue(a,s)}return i}(t,e,n);case 16384:return function o(t,e,n){for(var r=Rm(t,e.nodeIndex),i=r.instance,o=!1,s=void 0,a=0;a<n.length;a++)Um(t,e,a,n[a])&&(o=!0,s=o_(t,r,e,a,n[a],s));return s&&i.ngOnChanges(s),65536&e.flags&&Om(t,256,e.nodeIndex)&&i.ngOnInit(),262144&e.flags&&i.ngDoCheck(),o}(t,e,n);case 32:case 64:case 128:return function s(t,e,n){for(var r=e.bindings,i=!1,o=0;o<n.length;o++)zm(t,e,o,n[o])&&(i=!0);if(i){var s=Dm(t,e.nodeIndex),a=void 0;switch(201347067&e.flags){case 32:a=n;break;case 64:for(a={},o=0;o<n.length;o++)a[r[o].name]=n[o];break;case 128:var u=n[0],c=n.slice(1);a=u.transform.apply(u,l(c))}s.value=a}return i}(t,e,n);default:throw"unreachable"}}(t,e,r)}function C_(t){var e=t.def;if(4&e.nodeFlags)for(var n=0;n<e.nodes.length;n++){var r=e.nodes[n];if(4&r.flags){var i=Im(t,n).template._projectedViews;if(i)for(var o=0;o<i.length;o++){var s=i[o];s.state|=32,Gm(s,t)}}else 0==(4&r.childFlags)&&(n+=r.childCount)}}function T_(t,e,n,r,i,o,s,a,u,c,l,p,h){return 0===n?function f(t,e,n,r,i,o,s,a,u,c,l,p){var h=e.bindings.length;h>0&&Wm(t,e,0,n),h>1&&Wm(t,e,1,r),h>2&&Wm(t,e,2,i),h>3&&Wm(t,e,3,o),h>4&&Wm(t,e,4,s),h>5&&Wm(t,e,5,a),h>6&&Wm(t,e,6,u),h>7&&Wm(t,e,7,c),h>8&&Wm(t,e,8,l),h>9&&Wm(t,e,9,p)}(t,e,r,i,o,s,a,u,c,l,p,h):function d(t,e,n){for(var r=0;r<n.length;r++)Wm(t,e,r,n[r])}(t,e,r),!1}function P_(t,e){if(jm(t,e.nodeIndex).dirty)throw Fm(Lm.createDebugContext(t,e.nodeIndex),"Query "+e.query.id+" not dirty","Query "+e.query.id+" dirty",0!=(1&t.state))}function A_(t){if(!(128&t.state)){if(k_(t,e_.Destroy),N_(t,e_.Destroy),s_(t,131072),t.disposables)for(var e=0;e<t.disposables.length;e++)t.disposables[e]();!function n(t){if(16&t.state){var e=Ym(t);if(e){var n=e.template._projectedViews;n&&(Tg(n,n.indexOf(t)),Lm.dirtyParentQueries(t))}}}(t),t.renderer.destroyNode&&function r(t){for(var e=t.def.nodes.length,n=0;n<e;n++){var r=t.def.nodes[n];1&r.flags?t.renderer.destroyNode(Im(t,n).renderElement):2&r.flags?t.renderer.destroyNode(Mm(t,n).renderText):(67108864&r.flags||134217728&r.flags)&&jm(t,n).destroy()}}(t),Jm(t)&&t.renderer.destroy(),t.state|=128}}function N_(t,e){var n=t.def;if(33554432&n.nodeFlags)for(var r=0;r<n.nodes.length;r++){var i=n.nodes[r];33554432&i.flags?O_(Im(t,r).componentView,e):0==(33554432&i.childFlags)&&(r+=i.childCount)}}function k_(t,e){var n=t.def;if(16777216&n.nodeFlags)for(var r=0;r<n.nodes.length;r++){var i=n.nodes[r];if(16777216&i.flags)for(var o=Im(t,r).viewContainer._embeddedViews,s=0;s<o.length;s++)O_(o[s],e);else 0==(16777216&i.childFlags)&&(r+=i.childCount)}}function O_(t,e){var n=t.state;switch(e){case e_.CheckNoChanges:0==(128&n)&&(12==(12&n)?x_(t):64&n&&M_(t,e_.CheckNoChangesProjectedViews));break;case e_.CheckNoChangesProjectedViews:0==(128&n)&&(32&n?x_(t):64&n&&M_(t,e));break;case e_.CheckAndUpdate:0==(128&n)&&(12==(12&n)?E_(t):64&n&&M_(t,e_.CheckAndUpdateProjectedViews));break;case e_.CheckAndUpdateProjectedViews:0==(128&n)&&(32&n?E_(t):64&n&&M_(t,e));break;case e_.Destroy:A_(t);break;case e_.CreateViewNodes:w_(t)}}function M_(t,e){k_(t,e),N_(t,e)}function I_(t,e,n,r){if(t.def.nodeFlags&e&&t.def.nodeFlags&n)for(var i=t.def.nodes.length,o=0;o<i;o++){var s=t.def.nodes[o];if(s.flags&e&&s.flags&n)switch(Lm.setCurrentNode(t,s.nodeIndex),r){case 0:l_(t,s);break;case 1:P_(t,s)}s.childFlags&e&&s.childFlags&n||(o+=s.childCount)}}
1129
+ */function D_(t,e,n,r){var i=F_(t.root,t.renderer,t,e,n);return V_(i,t.component,r),H_(i),i}function j_(t,e,n){var r=F_(t,t.renderer,null,null,e);return V_(r,n,n),H_(r),r}function L_(t,e,n,r){var i,o=e.element.componentRendererType;return i=o?t.root.rendererFactory.createRenderer(r,o):t.root.renderer,F_(t.root,i,t,e.element.componentProvider,n)}function F_(t,e,n,r,i){var o=new Array(i.nodes.length),s=i.outputCount?new Array(i.outputCount):null;return{def:i,parent:n,viewContainerParent:null,parentNodeDef:r,context:null,component:null,nodes:o,state:13,root:t,renderer:e,oldValues:new Array(i.bindingCount),disposables:s,initIndex:-1}}function V_(t,e,n){t.component=e,t.context=n}function H_(t){var e;gg(t)&&(e=$m(t.parent,t.parentNodeDef.parent.nodeIndex).renderElement);for(var n=t.def,r=t.nodes,i=0;i<n.nodes.length;i++){var o=n.nodes[i];ng.setCurrentNode(t,i);var s=void 0;switch(201347067&o.flags){case 1:var a=Og(t,e,o),u=void 0;if(33554432&o.flags){var c=Eg(o.element.componentView);u=ng.createComponentView(t,o,c,a)}Mg(t,u,o,a),s={renderElement:a,componentView:u,viewContainer:null,template:o.element.template?$g(t,o):void 0},16777216&o.flags&&(s.viewContainer=Gg(t,o,s));break;case 2:s=I_(t,e,o);break;case 512:case 1024:case 2048:case 256:(s=r[i])||4096&o.flags||(s={instance:d_(t,o)});break;case 16:s={instance:v_(t,o)};break;case 16384:(s=r[i])||(s={instance:y_(t,o)}),32768&o.flags&&V_($m(t,o.parent.nodeIndex).componentView,s.instance,s.instance);break;case 32:case 64:case 128:s={value:void 0};break;case 67108864:case 134217728:s=new Jy;break;case 8:M_(t,e,o),s=void 0}r[i]=s}G_(t,b_.CreateViewNodes),$_(t,201326592,268435456,0)}function B_(t){U_(t),ng.updateDirectives(t,1),X_(t,b_.CheckNoChanges),ng.updateRenderer(t,1),G_(t,b_.CheckNoChanges),t.state&=-97}function q_(t){1&t.state?(t.state&=-2,t.state|=2):t.state&=-3,Xm(t,0,256),U_(t),ng.updateDirectives(t,0),X_(t,b_.CheckAndUpdate),$_(t,67108864,536870912,0);var e=Xm(t,256,512);C_(t,2097152|(e?1048576:0)),ng.updateRenderer(t,0),G_(t,b_.CheckAndUpdate),$_(t,134217728,536870912,0),C_(t,8388608|((e=Xm(t,512,768))?4194304:0)),2&t.def.flags&&(t.state&=-9),t.state&=-97,Xm(t,768,1024)}function K_(t,e,n,r,i,o,s,a,u,c,l,p,h){return 0===n?function d(t,e,n,r,i,o,s,a,u,c,l,p){switch(201347067&e.flags){case 1:return function h(t,e,n,r,i,o,s,a,u,c,l,p){var h=e.bindings.length,f=!1;return h>0&&Rg(t,e,0,n)&&(f=!0),h>1&&Rg(t,e,1,r)&&(f=!0),h>2&&Rg(t,e,2,i)&&(f=!0),h>3&&Rg(t,e,3,o)&&(f=!0),h>4&&Rg(t,e,4,s)&&(f=!0),h>5&&Rg(t,e,5,a)&&(f=!0),h>6&&Rg(t,e,6,u)&&(f=!0),h>7&&Rg(t,e,7,c)&&(f=!0),h>8&&Rg(t,e,8,l)&&(f=!0),h>9&&Rg(t,e,9,p)&&(f=!0),f}(t,e,n,r,i,o,s,a,u,c,l,p);case 2:return function f(t,e,n,r,i,o,s,a,u,c,l,p){var h=!1,f=e.bindings,d=f.length;if(d>0&&lg(t,e,0,n)&&(h=!0),d>1&&lg(t,e,1,r)&&(h=!0),d>2&&lg(t,e,2,i)&&(h=!0),d>3&&lg(t,e,3,o)&&(h=!0),d>4&&lg(t,e,4,s)&&(h=!0),d>5&&lg(t,e,5,a)&&(h=!0),d>6&&lg(t,e,6,u)&&(h=!0),d>7&&lg(t,e,7,c)&&(h=!0),d>8&&lg(t,e,8,l)&&(h=!0),d>9&&lg(t,e,9,p)&&(h=!0),h){var v=e.text.prefix;d>0&&(v+=R_(n,f[0])),d>1&&(v+=R_(r,f[1])),d>2&&(v+=R_(i,f[2])),d>3&&(v+=R_(o,f[3])),d>4&&(v+=R_(s,f[4])),d>5&&(v+=R_(a,f[5])),d>6&&(v+=R_(u,f[6])),d>7&&(v+=R_(c,f[7])),d>8&&(v+=R_(l,f[8])),d>9&&(v+=R_(p,f[9]));var y=Zm(t,e.nodeIndex).renderText;t.renderer.setValue(y,v)}return h}(t,e,n,r,i,o,s,a,u,c,l,p);case 16384:return function d(t,e,n,r,i,o,s,a,u,c,l,p){var h=Jm(t,e.nodeIndex),f=h.instance,d=!1,v=void 0,y=e.bindings.length;return y>0&&cg(t,e,0,n)&&(d=!0,v=S_(t,h,e,0,n,v)),y>1&&cg(t,e,1,r)&&(d=!0,v=S_(t,h,e,1,r,v)),y>2&&cg(t,e,2,i)&&(d=!0,v=S_(t,h,e,2,i,v)),y>3&&cg(t,e,3,o)&&(d=!0,v=S_(t,h,e,3,o,v)),y>4&&cg(t,e,4,s)&&(d=!0,v=S_(t,h,e,4,s,v)),y>5&&cg(t,e,5,a)&&(d=!0,v=S_(t,h,e,5,a,v)),y>6&&cg(t,e,6,u)&&(d=!0,v=S_(t,h,e,6,u,v)),y>7&&cg(t,e,7,c)&&(d=!0,v=S_(t,h,e,7,c,v)),y>8&&cg(t,e,8,l)&&(d=!0,v=S_(t,h,e,8,l,v)),y>9&&cg(t,e,9,p)&&(d=!0,v=S_(t,h,e,9,p,v)),v&&f.ngOnChanges(v),65536&e.flags&&Ym(t,256,e.nodeIndex)&&f.ngOnInit(),262144&e.flags&&f.ngDoCheck(),d}(t,e,n,r,i,o,s,a,u,c,l,p);case 32:case 64:case 128:return function v(t,e,n,r,i,o,s,a,u,c,l,p){var h=e.bindings,f=!1,d=h.length;if(d>0&&lg(t,e,0,n)&&(f=!0),d>1&&lg(t,e,1,r)&&(f=!0),d>2&&lg(t,e,2,i)&&(f=!0),d>3&&lg(t,e,3,o)&&(f=!0),d>4&&lg(t,e,4,s)&&(f=!0),d>5&&lg(t,e,5,a)&&(f=!0),d>6&&lg(t,e,6,u)&&(f=!0),d>7&&lg(t,e,7,c)&&(f=!0),d>8&&lg(t,e,8,l)&&(f=!0),d>9&&lg(t,e,9,p)&&(f=!0),f){var v=tg(t,e.nodeIndex),y=void 0;switch(201347067&e.flags){case 32:y=new Array(h.length),d>0&&(y[0]=n),d>1&&(y[1]=r),d>2&&(y[2]=i),d>3&&(y[3]=o),d>4&&(y[4]=s),d>5&&(y[5]=a),d>6&&(y[6]=u),d>7&&(y[7]=c),d>8&&(y[8]=l),d>9&&(y[9]=p);break;case 64:y={},d>0&&(y[h[0].name]=n),d>1&&(y[h[1].name]=r),d>2&&(y[h[2].name]=i),d>3&&(y[h[3].name]=o),d>4&&(y[h[4].name]=s),d>5&&(y[h[5].name]=a),d>6&&(y[h[6].name]=u),d>7&&(y[h[7].name]=c),d>8&&(y[h[8].name]=l),d>9&&(y[h[9].name]=p);break;case 128:var m=n;switch(d){case 1:y=m.transform(n);break;case 2:y=m.transform(r);break;case 3:y=m.transform(r,i);break;case 4:y=m.transform(r,i,o);break;case 5:y=m.transform(r,i,o,s);break;case 6:y=m.transform(r,i,o,s,a);break;case 7:y=m.transform(r,i,o,s,a,u);break;case 8:y=m.transform(r,i,o,s,a,u,c);break;case 9:y=m.transform(r,i,o,s,a,u,c,l);break;case 10:y=m.transform(r,i,o,s,a,u,c,l,p)}}v.value=y}return f}(t,e,n,r,i,o,s,a,u,c,l,p);default:throw"unreachable"}}(t,e,r,i,o,s,a,u,c,l,p,h):function v(t,e,n){switch(201347067&e.flags){case 1:return function r(t,e,n){for(var r=!1,i=0;i<n.length;i++)Rg(t,e,i,n[i])&&(r=!0);return r}(t,e,n);case 2:return function i(t,e,n){for(var r=e.bindings,i=!1,o=0;o<n.length;o++)lg(t,e,o,n[o])&&(i=!0);if(i){var s="";for(o=0;o<n.length;o++)s+=R_(n[o],r[o]);s=e.text.prefix+s;var a=Zm(t,e.nodeIndex).renderText;t.renderer.setValue(a,s)}return i}(t,e,n);case 16384:return function o(t,e,n){for(var r=Jm(t,e.nodeIndex),i=r.instance,o=!1,s=void 0,a=0;a<n.length;a++)cg(t,e,a,n[a])&&(o=!0,s=S_(t,r,e,a,n[a],s));return s&&i.ngOnChanges(s),65536&e.flags&&Ym(t,256,e.nodeIndex)&&i.ngOnInit(),262144&e.flags&&i.ngDoCheck(),o}(t,e,n);case 32:case 64:case 128:return function s(t,e,n){for(var r=e.bindings,i=!1,o=0;o<n.length;o++)lg(t,e,o,n[o])&&(i=!0);if(i){var s=tg(t,e.nodeIndex),a=void 0;switch(201347067&e.flags){case 32:a=n;break;case 64:for(a={},o=0;o<n.length;o++)a[r[o].name]=n[o];break;case 128:var u=n[0],c=n.slice(1);a=u.transform.apply(u,f(c))}s.value=a}return i}(t,e,n);default:throw"unreachable"}}(t,e,r)}function U_(t){var e=t.def;if(4&e.nodeFlags)for(var n=0;n<e.nodes.length;n++){var r=e.nodes[n];if(4&r.flags){var i=$m(t,n).template._projectedViews;if(i)for(var o=0;o<i.length;o++){var s=i[o];s.state|=32,fg(s,t)}}else 0==(4&r.childFlags)&&(n+=r.childCount)}}function z_(t,e,n,r,i,o,s,a,u,c,l,p,h){return 0===n?function f(t,e,n,r,i,o,s,a,u,c,l,p){var h=e.bindings.length;h>0&&pg(t,e,0,n),h>1&&pg(t,e,1,r),h>2&&pg(t,e,2,i),h>3&&pg(t,e,3,o),h>4&&pg(t,e,4,s),h>5&&pg(t,e,5,a),h>6&&pg(t,e,6,u),h>7&&pg(t,e,7,c),h>8&&pg(t,e,8,l),h>9&&pg(t,e,9,p)}(t,e,r,i,o,s,a,u,c,l,p,h):function d(t,e,n){for(var r=0;r<n.length;r++)pg(t,e,r,n[r])}(t,e,r),!1}function W_(t,e){if(eg(t,e.nodeIndex).dirty)throw rg(ng.createDebugContext(t,e.nodeIndex),"Query "+e.query.id+" not dirty","Query "+e.query.id+" dirty",0!=(1&t.state))}function Q_(t){if(!(128&t.state)){if(X_(t,b_.Destroy),G_(t,b_.Destroy),C_(t,131072),t.disposables)for(var e=0;e<t.disposables.length;e++)t.disposables[e]();!function n(t){if(16&t.state){var e=vg(t);if(e){var n=e.template._projectedViews;n&&(zg(n,n.indexOf(t)),ng.dirtyParentQueries(t))}}}(t),t.renderer.destroyNode&&function r(t){for(var e=t.def.nodes.length,n=0;n<e;n++){var r=t.def.nodes[n];1&r.flags?t.renderer.destroyNode($m(t,n).renderElement):2&r.flags?t.renderer.destroyNode(Zm(t,n).renderText):(67108864&r.flags||134217728&r.flags)&&eg(t,n).destroy()}}(t),gg(t)&&t.renderer.destroy(),t.state|=128}}function G_(t,e){var n=t.def;if(33554432&n.nodeFlags)for(var r=0;r<n.nodes.length;r++){var i=n.nodes[r];33554432&i.flags?Y_($m(t,r).componentView,e):0==(33554432&i.childFlags)&&(r+=i.childCount)}}function X_(t,e){var n=t.def;if(16777216&n.nodeFlags)for(var r=0;r<n.nodes.length;r++){var i=n.nodes[r];if(16777216&i.flags)for(var o=$m(t,r).viewContainer._embeddedViews,s=0;s<o.length;s++)Y_(o[s],e);else 0==(16777216&i.childFlags)&&(r+=i.childCount)}}function Y_(t,e){var n=t.state;switch(e){case b_.CheckNoChanges:0==(128&n)&&(12==(12&n)?B_(t):64&n&&Z_(t,b_.CheckNoChangesProjectedViews));break;case b_.CheckNoChangesProjectedViews:0==(128&n)&&(32&n?B_(t):64&n&&Z_(t,e));break;case b_.CheckAndUpdate:0==(128&n)&&(12==(12&n)?q_(t):64&n&&Z_(t,b_.CheckAndUpdateProjectedViews));break;case b_.CheckAndUpdateProjectedViews:0==(128&n)&&(32&n?q_(t):64&n&&Z_(t,e));break;case b_.Destroy:Q_(t);break;case b_.CreateViewNodes:H_(t)}}function Z_(t,e){X_(t,e),G_(t,e)}function $_(t,e,n,r){if(t.def.nodeFlags&e&&t.def.nodeFlags&n)for(var i=t.def.nodes.length,o=0;o<i;o++){var s=t.def.nodes[o];if(s.flags&e&&s.flags&n)switch(ng.setCurrentNode(t,s.nodeIndex),r){case 0:N_(t,s);break;case 1:W_(t,s)}s.childFlags&e&&s.childFlags&n||(o+=s.childCount)}}
1116
1130
  /**
1117
1131
  * @license
1118
1132
  * Copyright Google Inc. All Rights Reserved.
1119
1133
  *
1120
1134
  * Use of this source code is governed by an MIT-style license that can be
1121
1135
  * found in the LICENSE file at https://angular.io/license
1122
- */!function(t){t[t.CreateViewNodes=0]="CreateViewNodes",t[t.CheckNoChanges=1]="CheckNoChanges",t[t.CheckNoChangesProjectedViews=2]="CheckNoChangesProjectedViews",t[t.CheckAndUpdate=3]="CheckAndUpdate",t[t.CheckAndUpdateProjectedViews=4]="CheckAndUpdateProjectedViews",t[t.Destroy=5]="Destroy"}(e_||(e_={}));var R_=!1;function D_(t,e,n,r,i,o){return m_(L_(t,i,i.injector.get(Hy),e,n),r,o)}function j_(t,e,n,r,i,o){var s=i.injector.get(Hy),a=L_(t,i,new mb(s),e,n),u=Z_(r);return vb(B_.create,m_,null,[a,u,o])}function L_(t,e,n,r,i){var o=e.injector.get(Nm),s=e.injector.get(Qp);return{ngModule:e,injector:t,projectableNodes:r,selectorOrNode:i,sanitizer:o,rendererFactory:n,renderer:n.createRenderer(null,null),errorHandler:s}}function F_(t,e,n,r){var i=Z_(n);return vb(B_.create,y_,null,[t,e,i,r])}function V_(t,e,n,r){return n=Q_.get(e.element.componentProvider.provider.token)||Z_(n),vb(B_.create,g_,null,[t,e,n,r])}function H_(t,e,n,r){return Vg(t,e,n,function i(t){var e=function n(t){var e=!1,n=!1;return 0===z_.size?{hasOverrides:e,hasDeprecatedOverrides:n}:(t.providers.forEach(function(t){var r=z_.get(t.token);3840&t.flags&&r&&(e=!0,n=n||r.deprecatedBehavior)}),t.modules.forEach(function(t){W_.forEach(function(r,i){i.ngInjectableDef.providedIn===t&&(e=!0,n=n||r.deprecatedBehavior)})}),{hasOverrides:e,hasDeprecatedOverrides:n})}(t),r=e.hasDeprecatedOverrides;return e.hasOverrides?(function i(t){for(var e=0;e<t.providers.length;e++){var n=t.providers[e];r&&(n.flags|=4096);var i=z_.get(n.token);i&&(n.flags=-3841&n.flags|i.flags,n.deps=eg(i.deps),n.value=i.value)}if(W_.size>0){var o=new Set(t.modules);W_.forEach(function(e,n){if(o.has(n.ngInjectableDef.providedIn)){var i={token:n,flags:e.flags|(r?4096:0),deps:eg(e.deps),value:e.value,index:t.providers.length};t.providers.push(i),t.providersByKey[Km(n)]=i}})}}(t=t.factory(function(){return Bm})),t):t}(r))}var B_,q_,K_,U_,z_=new Map,W_=new Map,Q_=new Map;function G_(t){z_.set(t.token,t),"function"==typeof t.token&&t.token.ngInjectableDef&&"function"==typeof t.token.ngInjectableDef.providedIn&&W_.set(t.token,t)}function X_(t,e){var n=ig(ig(function r(t){return t.viewDefFactory}(e)).nodes[0].element.componentView);Q_.set(t,n)}function Y_(){z_.clear(),W_.clear(),Q_.clear()}function Z_(t){if(0===z_.size)return t;var e=function n(t){for(var e=[],n=null,r=0;r<t.nodes.length;r++){var i=t.nodes[r];1&i.flags&&(n=i),n&&3840&i.flags&&z_.has(i.provider.token)&&(e.push(n.nodeIndex),n=null)}return e}(t);if(0===e.length)return t;t=t.factory(function(){return Bm});for(var r=0;r<e.length;r++)i(t,e[r]);return t;function i(t,e){for(var n=e+1;n<t.nodes.length;n++){var r=t.nodes[n];if(1&r.flags)return;if(3840&r.flags){var i=r.provider,o=z_.get(i.token);o&&(r.flags=-3841&r.flags|o.flags,i.deps=eg(o.deps),i.value=o.value)}}}}function $_(t,e,n,r,i,o,s,a,u,c,l,p,h){var f=t.def.nodes[e];return S_(t,f,n,r,i,o,s,a,u,c,l,p,h),224&f.flags?Dm(t,e).value:void 0}function J_(t,e,n,r,i,o,s,a,u,c,l,p,h){var f=t.def.nodes[e];return T_(t,f,n,r,i,o,s,a,u,c,l,p,h),224&f.flags?Dm(t,e).value:void 0}function tb(t){return vb(B_.detectChanges,E_,null,[t])}function eb(t){return vb(B_.checkNoChanges,x_,null,[t])}function nb(t){return vb(B_.destroy,A_,null,[t])}function rb(t,e){K_=t,U_=e}function ib(t,e,n,r){return rb(t,e),vb(B_.handleEvent,t.def.handleEvent,null,[t,e,n,r])}function ob(t,e){if(128&t.state)throw Hm(B_[q_]);return rb(t,pb(t,0)),t.def.updateDirectives(function n(t,r,i){for(var o=[],s=3;s<arguments.length;s++)o[s-3]=arguments[s];var a=t.def.nodes[r];return 0===e?ab(t,a,i,o):ub(t,a,i,o),16384&a.flags&&rb(t,pb(t,r)),224&a.flags?Dm(t,a.nodeIndex).value:void 0},t)}function sb(t,e){if(128&t.state)throw Hm(B_[q_]);return rb(t,hb(t,0)),t.def.updateRenderer(function n(t,r,i){for(var o=[],s=3;s<arguments.length;s++)o[s-3]=arguments[s];var a=t.def.nodes[r];return 0===e?ab(t,a,i,o):ub(t,a,i,o),3&a.flags&&rb(t,hb(t,r)),224&a.flags?Dm(t,a.nodeIndex).value:void 0},t)}function ab(t,e,n,r){if(S_.apply(void 0,l([t,e,n],r))){var i=1===n?r[0]:r;if(16384&e.flags){for(var o={},s=0;s<e.bindings.length;s++){var a=e.bindings[s],u=i[s];8&a.flags&&(o[(d=a.nonMinifiedName,"ng-reflect-"+(d=function c(t){return t.replace(cb,function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return"-"+t[1].toLowerCase()})}(d.replace(/[$@]/g,"_"))))]=lb(u))}var p=e.parent,h=Im(t,p.nodeIndex).renderElement;if(p.element.name)for(var f in o)null!=(u=o[f])?t.renderer.setAttribute(h,f,u):t.renderer.removeAttribute(h,f);else t.renderer.setValue(h,"bindings="+JSON.stringify(o,null,2))}}var d}function ub(t,e,n,r){T_.apply(void 0,l([t,e,n],r))}!function(t){t[t.create=0]="create",t[t.detectChanges=1]="detectChanges",t[t.checkNoChanges=2]="checkNoChanges",t[t.destroy=3]="destroy",t[t.handleEvent=4]="handleEvent"}(B_||(B_={}));var cb=/([A-Z])/g;function lb(t){try{return null!=t?t.toString().slice(0,30):t}catch(t){return"[ERROR] Exception while trying to serialize the value"}}function pb(t,e){for(var n=e;n<t.def.nodes.length;n++){var r=t.def.nodes[n];if(16384&r.flags&&r.bindings&&r.bindings.length)return n}return null}function hb(t,e){for(var n=e;n<t.def.nodes.length;n++){var r=t.def.nodes[n];if(3&r.flags&&r.bindings&&r.bindings.length)return n}return null}var fb=function(){function t(t,e){this.view=t,this.nodeIndex=e,null==e&&(this.nodeIndex=e=0),this.nodeDef=t.def.nodes[e];for(var n=this.nodeDef,r=t;n&&0==(1&n.flags);)n=n.parent;if(!n)for(;!n&&r;)n=Zm(r),r=r.parent;this.elDef=n,this.elView=r}return Object.defineProperty(t.prototype,"elOrCompView",{get:function(){return Im(this.elView,this.elDef.nodeIndex).componentView||this.view},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"injector",{get:function(){return Dg(this.elView,this.elDef)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"component",{get:function(){return this.elOrCompView.component},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"context",{get:function(){return this.elOrCompView.context},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"providerTokens",{get:function(){var t=[];if(this.elDef)for(var e=this.elDef.nodeIndex+1;e<=this.elDef.nodeIndex+this.elDef.childCount;e++){var n=this.elView.def.nodes[e];20224&n.flags&&t.push(n.provider.token),e+=n.childCount}return t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"references",{get:function(){var t={};if(this.elDef){db(this.elView,this.elDef,t);for(var e=this.elDef.nodeIndex+1;e<=this.elDef.nodeIndex+this.elDef.childCount;e++){var n=this.elView.def.nodes[e];20224&n.flags&&db(this.elView,n,t),e+=n.childCount}}return t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"componentRenderElement",{get:function(){var t=function e(t){for(;t&&!Jm(t);)t=t.parent;return t.parent?Im(t.parent,Zm(t).nodeIndex):null}(this.elOrCompView);return t?t.renderElement:void 0},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"renderNode",{get:function(){return 2&this.nodeDef.flags?$m(this.view,this.nodeDef):$m(this.elView,this.elDef)},enumerable:!0,configurable:!0}),t.prototype.logError=function(t){for(var e,n,r=[],i=1;i<arguments.length;i++)r[i-1]=arguments[i];2&this.nodeDef.flags?(e=this.view.def,n=this.nodeDef.nodeIndex):(e=this.elView.def,n=this.elDef.nodeIndex);var o=function s(t,e){for(var n=-1,r=0;r<=e;r++)3&t.nodes[r].flags&&n++;return n}(e,n),a=-1;e.factory(function(){var e;return++a===o?(e=t.error).bind.apply(e,l([t],r)):Bm}),a<o&&(t.error("Illegal state: the ViewDefinitionFactory did not call the logger!"),t.error.apply(t,l(r)))},t}();function db(t,e,n){for(var r in e.references)n[r]=h_(t,e,e.references[r])}function vb(t,e,n,r){var i=q_,o=K_,s=U_;try{q_=t;var a=e.apply(n,r);return K_=o,U_=s,q_=i,a}catch(t){if(function u(t){return!!Up(t)}(t)||!K_)throw t;throw function c(t,e){return t instanceof Error||(t=new Error(t.toString())),Vm(t,e),t}(t,yb())}}function yb(){return K_?new fb(K_,U_):null}var mb=function(){function t(t){this.delegate=t}return t.prototype.createRenderer=function(t,e){return new gb(this.delegate.createRenderer(t,e))},t.prototype.begin=function(){this.delegate.begin&&this.delegate.begin()},t.prototype.end=function(){this.delegate.end&&this.delegate.end()},t.prototype.whenRenderingDone=function(){return this.delegate.whenRenderingDone?this.delegate.whenRenderingDone():Promise.resolve(null)},t}(),gb=function(){function t(t){this.delegate=t,this.data=this.delegate.data}return t.prototype.destroyNode=function(t){!function e(t){$y.delete(t.nativeNode)}(Jy(t)),this.delegate.destroyNode&&this.delegate.destroyNode(t)},t.prototype.destroy=function(){this.delegate.destroy()},t.prototype.createElement=function(t,e){var n=this.delegate.createElement(t,e),r=yb();if(r){var i=new Xy(n,null,r);i.name=t,tm(i)}return n},t.prototype.createComment=function(t){var e=this.delegate.createComment(t),n=yb();return n&&tm(new Gy(e,null,n)),e},t.prototype.createText=function(t){var e=this.delegate.createText(t),n=yb();return n&&tm(new Gy(e,null,n)),e},t.prototype.appendChild=function(t,e){var n=Jy(t),r=Jy(e);n&&r&&n instanceof Xy&&n.addChild(r),this.delegate.appendChild(t,e)},t.prototype.insertBefore=function(t,e,n){var r=Jy(t),i=Jy(e),o=Jy(n);r&&i&&r instanceof Xy&&r.insertBefore(o,i),this.delegate.insertBefore(t,e,n)},t.prototype.removeChild=function(t,e){var n=Jy(t),r=Jy(e);n&&r&&n instanceof Xy&&n.removeChild(r),this.delegate.removeChild(t,e)},t.prototype.selectRootElement=function(t){var e=this.delegate.selectRootElement(t),n=yb();return n&&tm(new Xy(e,null,n)),e},t.prototype.setAttribute=function(t,e,n,r){var i=Jy(t);i&&i instanceof Xy&&(i.attributes[r?r+":"+e:e]=n),this.delegate.setAttribute(t,e,n,r)},t.prototype.removeAttribute=function(t,e,n){var r=Jy(t);r&&r instanceof Xy&&(r.attributes[n?n+":"+e:e]=null),this.delegate.removeAttribute(t,e,n)},t.prototype.addClass=function(t,e){var n=Jy(t);n&&n instanceof Xy&&(n.classes[e]=!0),this.delegate.addClass(t,e)},t.prototype.removeClass=function(t,e){var n=Jy(t);n&&n instanceof Xy&&(n.classes[e]=!1),this.delegate.removeClass(t,e)},t.prototype.setStyle=function(t,e,n,r){var i=Jy(t);i&&i instanceof Xy&&(i.styles[e]=n),this.delegate.setStyle(t,e,n,r)},t.prototype.removeStyle=function(t,e,n){var r=Jy(t);r&&r instanceof Xy&&(r.styles[e]=null),this.delegate.removeStyle(t,e,n)},t.prototype.setProperty=function(t,e,n){var r=Jy(t);r&&r instanceof Xy&&(r.properties[e]=n),this.delegate.setProperty(t,e,n)},t.prototype.listen=function(t,e,n){if("string"!=typeof t){var r=Jy(t);r&&r.listeners.push(new Qy(e,n))}return this.delegate.listen(t,e,n)},t.prototype.parentNode=function(t){return this.delegate.parentNode(t)},t.prototype.nextSibling=function(t){return this.delegate.nextSibling(t)},t.prototype.setValue=function(t,e){return this.delegate.setValue(t,e)},t}();!function(t){function e(e,n,r){var i=t.call(this)||this;return i.moduleType=e,i._bootstrapComponents=n,i._ngModuleDefFactory=r,i}o(e,t),e.prototype.create=function(t){!function e(){if(!R_){R_=!0;var t=Iy()?function e(){return{setCurrentNode:rb,createRootView:j_,createEmbeddedView:F_,createComponentView:V_,createNgModuleRef:H_,overrideProvider:G_,overrideComponentView:X_,clearOverrides:Y_,checkAndUpdateView:tb,checkNoChangesView:eb,destroyView:nb,createDebugContext:function(t,e){return new fb(t,e)},handleEvent:ib,updateDirectives:ob,updateRenderer:sb}}():function n(){return{setCurrentNode:function(){},createRootView:D_,createEmbeddedView:y_,createComponentView:g_,createNgModuleRef:Vg,overrideProvider:Bm,overrideComponentView:Bm,clearOverrides:Bm,checkAndUpdateView:E_,checkNoChangesView:x_,destroyView:A_,createDebugContext:function(t,e){return new fb(t,e)},handleEvent:function(t,e,n,r){return t.def.handleEvent(t,e,n,r)},updateDirectives:function(t,e){return t.def.updateDirectives(0===e?$_:J_,t)},updateRenderer:function(t,e){return t.def.updateRenderer(0===e?$_:J_,t)}}}();Lm.setCurrentNode=t.setCurrentNode,Lm.createRootView=t.createRootView,Lm.createEmbeddedView=t.createEmbeddedView,Lm.createComponentView=t.createComponentView,Lm.createNgModuleRef=t.createNgModuleRef,Lm.overrideProvider=t.overrideProvider,Lm.overrideComponentView=t.overrideComponentView,Lm.clearOverrides=t.clearOverrides,Lm.checkAndUpdateView=t.checkAndUpdateView,Lm.checkNoChangesView=t.checkNoChangesView,Lm.destroyView=t.destroyView,Lm.resolveDep=r_,Lm.createDebugContext=t.createDebugContext,Lm.handleEvent=t.handleEvent,Lm.updateDirectives=t.updateDirectives,Lm.updateRenderer=t.updateRenderer,Lm.dirtyParentQueries=c_}}();var n=
1136
+ */!function(t){t[t.CreateViewNodes=0]="CreateViewNodes",t[t.CheckNoChanges=1]="CheckNoChanges",t[t.CheckNoChangesProjectedViews=2]="CheckNoChangesProjectedViews",t[t.CheckAndUpdate=3]="CheckAndUpdate",t[t.CheckAndUpdateProjectedViews=4]="CheckAndUpdateProjectedViews",t[t.Destroy=5]="Destroy"}(b_||(b_={}));var J_=!1;function tb(t,e,n,r,i,o){return j_(nb(t,i,i.injector.get(Yy),e,n),r,o)}function eb(t,e,n,r,i,o){var s=i.injector.get(Yy),a=nb(t,i,new jb(s),e,n),u=yb(r);return Rb(sb.create,j_,null,[a,u,o])}function nb(t,e,n,r,i){var o=e.injector.get(Gm),s=e.injector.get(Jp);return{ngModule:e,injector:t,projectableNodes:r,selectorOrNode:i,sanitizer:o,rendererFactory:n,renderer:n.createRenderer(null,null),errorHandler:s}}function rb(t,e,n,r){var i=yb(n);return Rb(sb.create,D_,null,[t,e,i,r])}function ib(t,e,n,r){return n=hb.get(e.element.componentProvider.provider.token)||yb(n),Rb(sb.create,L_,null,[t,e,n,r])}function ob(t,e,n,r){return i_(t,e,n,function i(t){var e=function n(t){var e=!1,n=!1;return 0===lb.size?{hasOverrides:e,hasDeprecatedOverrides:n}:(t.providers.forEach(function(t){var r=lb.get(t.token);3840&t.flags&&r&&(e=!0,n=n||r.deprecatedBehavior)}),t.modules.forEach(function(t){pb.forEach(function(r,i){i.ngInjectableDef.providedIn===t&&(e=!0,n=n||r.deprecatedBehavior)})}),{hasOverrides:e,hasDeprecatedOverrides:n})}(t),r=e.hasDeprecatedOverrides;return e.hasOverrides?(function i(t){for(var e=0;e<t.providers.length;e++){var n=t.providers[e];r&&(n.flags|=4096);var i=lb.get(n.token);i&&(n.flags=-3841&n.flags|i.flags,n.deps=bg(i.deps),n.value=i.value)}if(pb.size>0){var o=new Set(t.modules);pb.forEach(function(e,n){if(o.has(n.ngInjectableDef.providedIn)){var i={token:n,flags:e.flags|(r?4096:0),deps:bg(e.deps),value:e.value,index:t.providers.length};t.providers.push(i),t.providersByKey[ug(n)]=i}})}}(t=t.factory(function(){return sg})),t):t}(r))}var sb,ab,ub,cb,lb=new Map,pb=new Map,hb=new Map;function fb(t){lb.set(t.token,t),"function"==typeof t.token&&t.token.ngInjectableDef&&"function"==typeof t.token.ngInjectableDef.providedIn&&pb.set(t.token,t)}function db(t,e){var n=Eg(Eg(function r(t){return t.viewDefFactory}(e)).nodes[0].element.componentView);hb.set(t,n)}function vb(){lb.clear(),pb.clear(),hb.clear()}function yb(t){if(0===lb.size)return t;var e=function n(t){for(var e=[],n=null,r=0;r<t.nodes.length;r++){var i=t.nodes[r];1&i.flags&&(n=i),n&&3840&i.flags&&lb.has(i.provider.token)&&(e.push(n.nodeIndex),n=null)}return e}(t);if(0===e.length)return t;t=t.factory(function(){return sg});for(var r=0;r<e.length;r++)i(t,e[r]);return t;function i(t,e){for(var n=e+1;n<t.nodes.length;n++){var r=t.nodes[n];if(1&r.flags)return;if(3840&r.flags){var i=r.provider,o=lb.get(i.token);o&&(r.flags=-3841&r.flags|o.flags,i.deps=bg(o.deps),i.value=o.value)}}}}function mb(t,e,n,r,i,o,s,a,u,c,l,p,h){var f=t.def.nodes[e];return K_(t,f,n,r,i,o,s,a,u,c,l,p,h),224&f.flags?tg(t,e).value:void 0}function gb(t,e,n,r,i,o,s,a,u,c,l,p,h){var f=t.def.nodes[e];return z_(t,f,n,r,i,o,s,a,u,c,l,p,h),224&f.flags?tg(t,e).value:void 0}function _b(t){return Rb(sb.detectChanges,q_,null,[t])}function bb(t){return Rb(sb.checkNoChanges,B_,null,[t])}function wb(t){return Rb(sb.destroy,Q_,null,[t])}function xb(t,e){ub=t,cb=e}function Eb(t,e,n,r){return xb(t,e),Rb(sb.handleEvent,t.def.handleEvent,null,[t,e,n,r])}function Sb(t,e){if(128&t.state)throw og(sb[ab]);return xb(t,kb(t,0)),t.def.updateDirectives(function n(t,r,i){for(var o=[],s=3;s<arguments.length;s++)o[s-3]=arguments[s];var a=t.def.nodes[r];return 0===e?Tb(t,a,i,o):Pb(t,a,i,o),16384&a.flags&&xb(t,kb(t,r)),224&a.flags?tg(t,a.nodeIndex).value:void 0},t)}function Cb(t,e){if(128&t.state)throw og(sb[ab]);return xb(t,Ob(t,0)),t.def.updateRenderer(function n(t,r,i){for(var o=[],s=3;s<arguments.length;s++)o[s-3]=arguments[s];var a=t.def.nodes[r];return 0===e?Tb(t,a,i,o):Pb(t,a,i,o),3&a.flags&&xb(t,Ob(t,r)),224&a.flags?tg(t,a.nodeIndex).value:void 0},t)}function Tb(t,e,n,r){if(K_.apply(void 0,f([t,e,n],r))){var i=1===n?r[0]:r;if(16384&e.flags){for(var o={},s=0;s<e.bindings.length;s++){var a=e.bindings[s],u=i[s];8&a.flags&&(o[(d=a.nonMinifiedName,"ng-reflect-"+(d=function c(t){return t.replace(Ab,function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return"-"+t[1].toLowerCase()})}(d.replace(/[$@]/g,"_"))))]=Nb(u))}var l=e.parent,p=$m(t,l.nodeIndex).renderElement;if(l.element.name)for(var h in o)null!=(u=o[h])?t.renderer.setAttribute(p,h,u):t.renderer.removeAttribute(p,h);else t.renderer.setValue(p,"bindings="+JSON.stringify(o,null,2))}}var d}function Pb(t,e,n,r){z_.apply(void 0,f([t,e,n],r))}!function(t){t[t.create=0]="create",t[t.detectChanges=1]="detectChanges",t[t.checkNoChanges=2]="checkNoChanges",t[t.destroy=3]="destroy",t[t.handleEvent=4]="handleEvent"}(sb||(sb={}));var Ab=/([A-Z])/g;function Nb(t){try{return null!=t?t.toString().slice(0,30):t}catch(t){return"[ERROR] Exception while trying to serialize the value"}}function kb(t,e){for(var n=e;n<t.def.nodes.length;n++){var r=t.def.nodes[n];if(16384&r.flags&&r.bindings&&r.bindings.length)return n}return null}function Ob(t,e){for(var n=e;n<t.def.nodes.length;n++){var r=t.def.nodes[n];if(3&r.flags&&r.bindings&&r.bindings.length)return n}return null}var Mb=function(){function t(t,e){this.view=t,this.nodeIndex=e,null==e&&(this.nodeIndex=e=0),this.nodeDef=t.def.nodes[e];for(var n=this.nodeDef,r=t;n&&0==(1&n.flags);)n=n.parent;if(!n)for(;!n&&r;)n=yg(r),r=r.parent;this.elDef=n,this.elView=r}return Object.defineProperty(t.prototype,"elOrCompView",{get:function(){return $m(this.elView,this.elDef.nodeIndex).componentView||this.view},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"injector",{get:function(){return t_(this.elView,this.elDef)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"component",{get:function(){return this.elOrCompView.component},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"context",{get:function(){return this.elOrCompView.context},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"providerTokens",{get:function(){var t=[];if(this.elDef)for(var e=this.elDef.nodeIndex+1;e<=this.elDef.nodeIndex+this.elDef.childCount;e++){var n=this.elView.def.nodes[e];20224&n.flags&&t.push(n.provider.token),e+=n.childCount}return t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"references",{get:function(){var t={};if(this.elDef){Ib(this.elView,this.elDef,t);for(var e=this.elDef.nodeIndex+1;e<=this.elDef.nodeIndex+this.elDef.childCount;e++){var n=this.elView.def.nodes[e];20224&n.flags&&Ib(this.elView,n,t),e+=n.childCount}}return t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"componentRenderElement",{get:function(){var t=function e(t){for(;t&&!gg(t);)t=t.parent;return t.parent?$m(t.parent,yg(t).nodeIndex):null}(this.elOrCompView);return t?t.renderElement:void 0},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"renderNode",{get:function(){return 2&this.nodeDef.flags?mg(this.view,this.nodeDef):mg(this.elView,this.elDef)},enumerable:!0,configurable:!0}),t.prototype.logError=function(t){for(var e,n,r=[],i=1;i<arguments.length;i++)r[i-1]=arguments[i];2&this.nodeDef.flags?(e=this.view.def,n=this.nodeDef.nodeIndex):(e=this.elView.def,n=this.elDef.nodeIndex);var o=function s(t,e){for(var n=-1,r=0;r<=e;r++)3&t.nodes[r].flags&&n++;return n}(e,n),a=-1;e.factory(function(){var e;return++a===o?(e=t.error).bind.apply(e,f([t],r)):sg}),a<o&&(t.error("Illegal state: the ViewDefinitionFactory did not call the logger!"),t.error.apply(t,f(r)))},t}();function Ib(t,e,n){for(var r in e.references)n[r]=O_(t,e,e.references[r])}function Rb(t,e,n,r){var i=ab,o=ub,s=cb;try{ab=t;var a=e.apply(n,r);return ub=o,cb=s,ab=i,a}catch(t){if(function u(t){return!!Yp(t)}(t)||!ub)throw t;throw function c(t,e){return t instanceof Error||(t=new Error(t.toString())),ig(t,e),t}(t,Db())}}function Db(){return ub?new Mb(ub,cb):null}var jb=function(){function t(t){this.delegate=t}return t.prototype.createRenderer=function(t,e){return new Lb(this.delegate.createRenderer(t,e))},t.prototype.begin=function(){this.delegate.begin&&this.delegate.begin()},t.prototype.end=function(){this.delegate.end&&this.delegate.end()},t.prototype.whenRenderingDone=function(){return this.delegate.whenRenderingDone?this.delegate.whenRenderingDone():Promise.resolve(null)},t}(),Lb=function(){function t(t){this.delegate=t,this.data=this.delegate.data}return t.prototype.destroyNode=function(t){!function e(t){pm.delete(t.nativeNode)}(hm(t)),this.delegate.destroyNode&&this.delegate.destroyNode(t)},t.prototype.destroy=function(){this.delegate.destroy()},t.prototype.createElement=function(t,e){var n=this.delegate.createElement(t,e),r=Db();if(r){var i=new um(n,null,r);i.name=t,fm(i)}return n},t.prototype.createComment=function(t){var e=this.delegate.createComment(t),n=Db();return n&&fm(new am(e,null,n)),e},t.prototype.createText=function(t){var e=this.delegate.createText(t),n=Db();return n&&fm(new am(e,null,n)),e},t.prototype.appendChild=function(t,e){var n=hm(t),r=hm(e);n&&r&&n instanceof um&&n.addChild(r),this.delegate.appendChild(t,e)},t.prototype.insertBefore=function(t,e,n){var r=hm(t),i=hm(e),o=hm(n);r&&i&&r instanceof um&&r.insertBefore(o,i),this.delegate.insertBefore(t,e,n)},t.prototype.removeChild=function(t,e){var n=hm(t),r=hm(e);n&&r&&n instanceof um&&n.removeChild(r),this.delegate.removeChild(t,e)},t.prototype.selectRootElement=function(t){var e=this.delegate.selectRootElement(t),n=Db();return n&&fm(new um(e,null,n)),e},t.prototype.setAttribute=function(t,e,n,r){var i=hm(t);i&&i instanceof um&&(i.attributes[r?r+":"+e:e]=n),this.delegate.setAttribute(t,e,n,r)},t.prototype.removeAttribute=function(t,e,n){var r=hm(t);r&&r instanceof um&&(r.attributes[n?n+":"+e:e]=null),this.delegate.removeAttribute(t,e,n)},t.prototype.addClass=function(t,e){var n=hm(t);n&&n instanceof um&&(n.classes[e]=!0),this.delegate.addClass(t,e)},t.prototype.removeClass=function(t,e){var n=hm(t);n&&n instanceof um&&(n.classes[e]=!1),this.delegate.removeClass(t,e)},t.prototype.setStyle=function(t,e,n,r){var i=hm(t);i&&i instanceof um&&(i.styles[e]=n),this.delegate.setStyle(t,e,n,r)},t.prototype.removeStyle=function(t,e,n){var r=hm(t);r&&r instanceof um&&(r.styles[e]=null),this.delegate.removeStyle(t,e,n)},t.prototype.setProperty=function(t,e,n){var r=hm(t);r&&r instanceof um&&(r.properties[e]=n),this.delegate.setProperty(t,e,n)},t.prototype.listen=function(t,e,n){if("string"!=typeof t){var r=hm(t);r&&r.listeners.push(new sm(e,n))}return this.delegate.listen(t,e,n)},t.prototype.parentNode=function(t){return this.delegate.parentNode(t)},t.prototype.nextSibling=function(t){return this.delegate.nextSibling(t)},t.prototype.setValue=function(t,e){return this.delegate.setValue(t,e)},t}();!function(t){function e(e,n,r){var i=t.call(this)||this;return i.moduleType=e,i._bootstrapComponents=n,i._ngModuleDefFactory=r,i}o(e,t),e.prototype.create=function(t){!function e(){if(!J_){J_=!0;var t=Ky()?function e(){return{setCurrentNode:xb,createRootView:eb,createEmbeddedView:rb,createComponentView:ib,createNgModuleRef:ob,overrideProvider:fb,overrideComponentView:db,clearOverrides:vb,checkAndUpdateView:_b,checkNoChangesView:bb,destroyView:wb,createDebugContext:function(t,e){return new Mb(t,e)},handleEvent:Eb,updateDirectives:Sb,updateRenderer:Cb}}():function n(){return{setCurrentNode:function(){},createRootView:tb,createEmbeddedView:D_,createComponentView:L_,createNgModuleRef:i_,overrideProvider:sg,overrideComponentView:sg,clearOverrides:sg,checkAndUpdateView:q_,checkNoChangesView:B_,destroyView:Q_,createDebugContext:function(t,e){return new Mb(t,e)},handleEvent:function(t,e,n,r){return t.def.handleEvent(t,e,n,r)},updateDirectives:function(t,e){return t.def.updateDirectives(0===e?mb:gb,t)},updateRenderer:function(t,e){return t.def.updateRenderer(0===e?mb:gb,t)}}}();ng.setCurrentNode=t.setCurrentNode,ng.createRootView=t.createRootView,ng.createEmbeddedView=t.createEmbeddedView,ng.createComponentView=t.createComponentView,ng.createNgModuleRef=t.createNgModuleRef,ng.overrideProvider=t.overrideProvider,ng.overrideComponentView=t.overrideComponentView,ng.clearOverrides=t.clearOverrides,ng.checkAndUpdateView=t.checkAndUpdateView,ng.checkNoChangesView=t.checkNoChangesView,ng.destroyView=t.destroyView,ng.resolveDep=x_,ng.createDebugContext=t.createDebugContext,ng.handleEvent=t.handleEvent,ng.updateDirectives=t.updateDirectives,ng.updateRenderer=t.updateRenderer,ng.dirtyParentQueries=A_}}();var n=
1123
1137
  /**
1124
1138
  * @license
1125
1139
  * Copyright Google Inc. All Rights Reserved.
@@ -1127,7 +1141,7 @@ function d_(t,e,n){var r,i=t.renderer;r=i.createText(n.text.prefix);var o=ng(t,e
1127
1141
  * Use of this source code is governed by an MIT-style license that can be
1128
1142
  * found in the LICENSE file at https://angular.io/license
1129
1143
  */
1130
- function r(t){var e=Array.from(t.providers),n=Array.from(t.modules),r={};for(var i in t.providersByKey)r[i]=t.providersByKey[i];return{factory:t.factory,isRoot:t.isRoot,providers:e,modules:n,providersByKey:r}}(ig(this._ngModuleDefFactory));return Lm.createNgModuleRef(this.moduleType,t||fp.NULL,this._bootstrapComponents,n)}}(fy);
1144
+ function r(t){var e=Array.from(t.providers),n=Array.from(t.modules),r={};for(var i in t.providersByKey)r[i]=t.providersByKey[i];return{factory:t.factory,isRoot:t.isRoot,providers:e,modules:n,providersByKey:r}}(Eg(this._ngModuleDefFactory));return ng.createNgModuleRef(this.moduleType,t||gp.NULL,this._bootstrapComponents,n)}}(Ey);
1131
1145
  /**
1132
1146
  * @license
1133
1147
  * Copyright Google Inc. All Rights Reserved.
@@ -1135,35 +1149,36 @@ function r(t){var e=Array.from(t.providers),n=Array.from(t.modules),r={};for(var
1135
1149
  * Use of this source code is governed by an MIT-style license that can be
1136
1150
  * found in the LICENSE file at https://angular.io/license
1137
1151
  */
1138
- var _b=16,bb=0,wb=1,xb=2,Eb=3,Sb=4,Cb=5,Tb=6,Pb=7,Ab=8,Nb=9,kb=10,Ob=11,Mb=14;function Ib(t,e,n){t.afterContentInit&&(e.contentHooks||(e.contentHooks=[])).push(n,t.afterContentInit),t.afterContentChecked&&((e.contentHooks||(e.contentHooks=[])).push(n,t.afterContentChecked),(e.contentCheckHooks||(e.contentCheckHooks=[])).push(n,t.afterContentChecked))}function Rb(t,e,n){t.afterViewInit&&(e.viewHooks||(e.viewHooks=[])).push(n,t.afterViewInit),t.afterViewChecked&&((e.viewHooks||(e.viewHooks=[])).push(n,t.afterViewChecked),(e.viewCheckHooks||(e.viewCheckHooks=[])).push(n,t.afterViewChecked))}function Db(t,e,n){null!=t.onDestroy&&(e.destroyHooks||(e.destroyHooks=[])).push(n,t.onDestroy)}function jb(t,e,n){16&t[Sb]&&(Lb(t[Pb],e.initHooks,e.checkHooks,n),t[Sb]&=-17)}function Lb(t,e,n,r){var i=r?e:n;i&&Fb(t,i)}function Fb(t,e){for(var n=0;n<e.length;n+=2)e[n+1].call(t[e[n]])}
1152
+ var Fb=16,Vb=0,Hb=1,Bb=2,qb=3,Kb=4,Ub=5,zb=6,Wb=7,Qb=8,Gb=9,Xb=10,Yb=11,Zb=14;function $b(t,e,n){t.afterContentInit&&(e.contentHooks||(e.contentHooks=[])).push(n,t.afterContentInit),t.afterContentChecked&&((e.contentHooks||(e.contentHooks=[])).push(n,t.afterContentChecked),(e.contentCheckHooks||(e.contentCheckHooks=[])).push(n,t.afterContentChecked))}function Jb(t,e,n){t.afterViewInit&&(e.viewHooks||(e.viewHooks=[])).push(n,t.afterViewInit),t.afterViewChecked&&((e.viewHooks||(e.viewHooks=[])).push(n,t.afterViewChecked),(e.viewCheckHooks||(e.viewCheckHooks=[])).push(n,t.afterViewChecked))}function tw(t,e,n){null!=t.onDestroy&&(e.destroyHooks||(e.destroyHooks=[])).push(n,t.onDestroy)}function ew(t,e,n){16&t[Kb]&&(nw(t[Wb],e.initHooks,e.checkHooks,n),t[Kb]&=-17)}function nw(t,e,n,r){var i=r?e:n;i&&rw(t,i)}function rw(t,e){for(var n=0;n<e.length;n+=2)e[n+1].call(t[e[n]])}
1139
1153
  /**
1140
1154
  * @license
1141
1155
  * Copyright Google Inc. All Rights Reserved.
1142
1156
  *
1143
1157
  * Use of this source code is governed by an MIT-style license that can be
1144
1158
  * found in the LICENSE file at https://angular.io/license
1145
- */var Vb,Hb=0,Bb=4,qb=5;
1159
+ */
1146
1160
  /**
1147
1161
  * @license
1148
1162
  * Copyright Google Inc. All Rights Reserved.
1149
1163
  *
1150
1164
  * Use of this source code is governed by an MIT-style license that can be
1151
1165
  * found in the LICENSE file at https://angular.io/license
1152
- */function Kb(t){return!!t.listen}!function(t){t[t.Important=1]="Important",t[t.DashCase=2]="DashCase"}(Vb||(Vb={}));var Ub={createRenderer:function(t,e){return document}};
1166
+ */
1167
+ var iw,ow=0,sw=4,aw=5;function uw(t){return!!t.listen}!function(t){t[t.Important=1]="Important",t[t.DashCase=2]="DashCase"}(iw||(iw={}));var cw={createRenderer:function(t,e){return document}};
1153
1168
  /**
1154
1169
  * @license
1155
1170
  * Copyright Google Inc. All Rights Reserved.
1156
1171
  *
1157
1172
  * Use of this source code is governed by an MIT-style license that can be
1158
1173
  * found in the LICENSE file at https://angular.io/license
1159
- */function zb(t){return Array.isArray(t)?t[0]:t}
1174
+ */function lw(t){return Array.isArray(t)?t[0]:t}
1160
1175
  /**
1161
1176
  * @license
1162
1177
  * Copyright Google Inc. All Rights Reserved.
1163
1178
  *
1164
1179
  * Use of this source code is governed by an MIT-style license that can be
1165
1180
  * found in the LICENSE file at https://angular.io/license
1166
- */function Wb(t){if(2===t.tNode.type){var e=t.data;return e[xb]?e[xb][Cb]:null}return t.tNode.next?t.view[t.tNode.next.index]:null}function Qb(t){return t.tNode.child?zb((2===t.tNode.type?t.data:t.view)[t.tNode.child.index]):null}function Gb(t){if(-1===t.tNode.index&&2===t.tNode.type){var e=t.data[Mb];return-1===e?null:t.view[e].dynamicLContainerNode}var n=t.tNode.parent;return zb(n?t.view[n.index]:t.view[Cb])}var Xb=[];function Yb(t,e,n,r,i,o){for(var s=t,a=-1;s;){var u=null,c=i?i.native:null,l=s.tNode.type;if(3===l)$b(n,r,c,s.native,o),s.dynamicLContainerNode&&$b(n,r,c,s.dynamicLContainerNode.native,o);else if(0===l){$b(n,r,c,s.native,o);var p=s,h=p.dynamicLContainerNode?p.dynamicLContainerNode.data:p.data;i&&(h[qb]=i),(u=h[Bb].length?Qb(h[Bb][0]):null)&&(o=p.dynamicLContainerNode?p.dynamicLContainerNode.native:p.native)}else if(1===l){var f=Zb(s.view),d=f.tNode.projection[s.tNode.projection];Xb[++a]=s,u=d?f.data[wb][d.index]:null}else u=Qb(s);if(null===u)for(null===(u=Wb(s))&&8192&s.tNode.flags&&(u=Wb(Xb[a--]));s&&!u;){if(null===(s=Gb(s))||s===e)return null;s.tNode.next||0!==l||(o=s.native),u=Wb(s)}s=u}}function Zb(t){for(var e=t[Cb];2===e.tNode.type;)e=(t=t[wb])[Cb];return e}function $b(t,e,n,r,i){0===t?Kb(e)?e.insertBefore(n,r,i):n.insertBefore(r,i,!0):1===t?Kb(e)?e.removeChild(n,r):n.removeChild(r):2===t&&e.destroyNode(r)}function Jb(t,e,n,r){var i=t.data[qb];i&&i.native&&Yb(Qb(e),e,n?0:1,t.view[Ob],i,r)}function tw(t,e){var n=t.data[Bb],r=n[e];e>0&&(n[e-1].data[xb]=r.data[xb]),n.splice(e,1),t.tNode.detached||Jb(t,r,!1);var i=r.data;return i[Eb]&&i[Eb].removeView(),i[Mb]=-1,r.view=null,r.data[Sb]&=-9,r}function ew(t){if(-1===t[bb].childIndex)return null;var e=t[t[bb].childIndex];return e.data?e.data:e.dynamicLContainerNode.data}function nw(t){var e=t[Ob];Kb(e)&&e.destroyNode&&Yb(t[Cb],t[Cb],2,e),function n(t){if(-1===t[bb].childIndex)return iw(t);for(var e=ew(t);e;){var n=null;if(e.length>=_b?e[bb].childIndex>-1&&(n=ew(e)):e[Bb].length&&(n=e[Bb][0].data),null==n){for(;e&&!e[xb]&&e!==t;)iw(e),e=rw(e,t);iw(e||t),n=e&&e[xb]}e=n}}(t),t[Sb]|=32}function rw(t,e){var n;return(n=t[Cb])&&2===n.tNode.type?Gb(n).data:t[wb]===e?null:t[wb]}function iw(t){if(t[bb]){var e=t;!function n(t){var e=t[bb].cleanup;if(null!=e){for(var n=0;n<e.length-1;n+=2)"string"==typeof e[n]?(zb(t[e[n+1]]).native.removeEventListener(e[n],t[Ab][e[n+2]],e[n+3]),n+=2):"number"==typeof e[n]?(0,t[Ab][e[n]])():e[n].call(t[Ab][e[n+1]]);t[Ab]=null}}(e),function r(t){var e,n=t[bb];null!=n&&null!=(e=n.destroyHooks)&&Fb(t[Pb],e)}(e),function i(t){var e=t[bb]&&t[bb].pipeDestroyHooks;e&&Fb(t,e)}
1181
+ */function pw(t){if(2===t.tNode.type){var e=t.data;return e[Bb]?e[Bb][Ub]:null}return t.tNode.next?t.view[t.tNode.next.index]:null}function hw(t){return t.tNode.child?lw((2===t.tNode.type?t.data:t.view)[t.tNode.child.index]):null}function fw(t){if(-1===t.tNode.index&&2===t.tNode.type){var e=t.data[Zb];return-1===e?null:t.view[e].dynamicLContainerNode}var n=t.tNode.parent;return lw(n?t.view[n.index]:t.view[Ub])}var dw=[];function vw(t,e,n,r,i,o){for(var s=t,a=-1;s;){var u=null,c=i?i.native:null,l=s.tNode.type;if(3===l)mw(n,r,c,s.native,o),s.dynamicLContainerNode&&mw(n,r,c,s.dynamicLContainerNode.native,o);else if(0===l){mw(n,r,c,s.native,o);var p=s,h=p.dynamicLContainerNode?p.dynamicLContainerNode.data:p.data;i&&(h[aw]=i),(u=h[sw].length?hw(h[sw][0]):null)&&(o=p.dynamicLContainerNode?p.dynamicLContainerNode.native:p.native)}else if(1===l){var f=yw(s.view),d=f.tNode.projection[s.tNode.projection];dw[++a]=s,u=d?f.data[Hb][d.index]:null}else u=hw(s);if(null===u)for(null===(u=pw(s))&&8192&s.tNode.flags&&(u=pw(dw[a--]));s&&!u;){if(null===(s=fw(s))||s===e)return null;s.tNode.next||0!==l||(o=s.native),u=pw(s)}s=u}}function yw(t){for(var e=t[Ub];2===e.tNode.type;)e=(t=t[Hb])[Ub];return e}function mw(t,e,n,r,i){0===t?uw(e)?e.insertBefore(n,r,i):n.insertBefore(r,i,!0):1===t?uw(e)?e.removeChild(n,r):n.removeChild(r):2===t&&e.destroyNode(r)}function gw(t,e,n,r){var i=t.data[aw];i&&i.native&&vw(hw(e),e,n?0:1,t.view[Yb],i,r)}function _w(t,e){var n=t.data[sw],r=n[e];e>0&&(n[e-1].data[Bb]=r.data[Bb]),n.splice(e,1),t.tNode.detached||gw(t,r,!1);var i=r.data;return i[qb]&&i[qb].removeView(),i[Zb]=-1,r.view=null,r.data[Kb]&=-9,r}function bw(t){if(-1===t[Vb].childIndex)return null;var e=t[t[Vb].childIndex];return e.data?e.data:e.dynamicLContainerNode.data}function ww(t){var e=t[Yb];uw(e)&&e.destroyNode&&vw(t[Ub],t[Ub],2,e),function n(t){if(-1===t[Vb].childIndex)return Ew(t);for(var e=bw(t);e;){var n=null;if(e.length>=Fb?e[Vb].childIndex>-1&&(n=bw(e)):e[sw].length&&(n=e[sw][0].data),null==n){for(;e&&!e[Bb]&&e!==t;)Ew(e),e=xw(e,t);Ew(e||t),n=e&&e[Bb]}e=n}}(t),t[Kb]|=32}function xw(t,e){var n;return(n=t[Ub])&&2===n.tNode.type?fw(n).data:t[Hb]===e?null:t[Hb]}function Ew(t){if(t[Vb]){var e=t;!function n(t){var e=t[Vb].cleanup;if(null!=e){for(var n=0;n<e.length-1;n+=2)"string"==typeof e[n]?(lw(t[e[n+1]]).native.removeEventListener(e[n],t[Qb][e[n+2]],e[n+3]),n+=2):"number"==typeof e[n]?(0,t[Qb][e[n]])():e[n].call(t[Qb][e[n+1]]);t[Qb]=null}}(e),function r(t){var e,n=t[Vb];null!=n&&null!=(e=n.destroyHooks)&&rw(t[Wb],e)}(e),function i(t){var e=t[Vb]&&t[Vb].pipeDestroyHooks;e&&rw(t,e)}
1167
1182
  /**
1168
1183
  * @license
1169
1184
  * Copyright Google Inc. All Rights Reserved.
@@ -1184,14 +1199,14 @@ var _b=16,bb=0,wb=1,xb=2,Eb=3,Sb=4,Cb=5,Tb=6,Pb=7,Ab=8,Nb=9,kb=10,Ob=11,Mb=14;fu
1184
1199
  *
1185
1200
  * Use of this source code is governed by an MIT-style license that can be
1186
1201
  * found in the LICENSE file at https://angular.io/license
1187
- */(e),-1===e[bb].id&&Kb(e[Ob])&&e[Ob].destroy()}}var ow,sw,aw,uw,cw,lw,pw,hw,fw,dw="__ngHostLNode__",vw=Promise.resolve(null),yw=[0,0],mw=new Array(_b).fill(null),gw=!1,_w=!0;function bw(t,e){var n=hw;return fw=t&&t[Pb],cw=t&&t[bb],pw=t&&1==(1&t[Sb]),_w=t&&cw.firstTemplatePass,ow=t&&t[Ob],null!=e&&(aw=e,uw=!0),hw=t,lw=t&&t[Eb],n}function ww(t,e){e||(gw||Lb(fw,cw.viewHooks,cw.viewCheckHooks,pw),hw[Sb]&=-6),hw[Sb]|=16,hw[Tb]=-1,bw(t,null)}function xw(){gw||jb(hw,cw,pw),function t(e){for(var n=ew(e);null!==n;n=n[xb])if(n.length<_b&&null===n[Hb])for(var r=n,i=0;i<r[Bb].length;i++){var o=r[Bb][i],s=o.data;Tw(o,s[bb],s[Nb],2)}}(hw),gw||Lb(fw,cw.contentHooks,cw.contentCheckHooks,pw),cw.firstTemplatePass=_w=!1,Ew(cw.hostBindings),function e(t){if(null!=t.contentQueries)for(var e=0;e<t.contentQueries.length;e+=2){var n=t.contentQueries[e];t.directives[n].contentQueriesRefresh(n,t.contentQueries[e+1])}}(cw),function n(t){if(null!=t)for(var e=0;e<t.length;e+=2)Rw(t[e],t[e+1])}(cw.components)}function Ew(t){if(null!=t)for(var e=cw.directives,n=0;n<t.length;n+=2){var r=t[n],i=e[r];i.hostBindings&&i.hostBindings(r,t[n+1])}}function Sw(t,e,n,r,i){return[e,hw,null,null,25|r,null,-1,null,null,n,hw&&hw[kb],t,i||null,null,-1,null]}function Cw(t,e,n,r,i,o){var s=uw?aw:aw&&Gb(aw),a=s&&s.view===hw?s.tNode:null,u=(uw?lw:aw&&aw.queries)||s&&s.queries&&s.queries.child(),c=null!=o,l=function p(t,e,n,r,i,o){return{native:r,view:e,nodeInjector:n?n.nodeInjector:null,data:i,queries:o,tNode:null,dynamicLContainerNode:null}}(0,hw,s,n,c?o:null,u);if(-1===t||2===e)l.tNode=(o?o[bb].node:null)||Iw(e,t,null,null,a,null);else{var h=t+_b,f=cw.data;if(hw[h]=l,h>=f.length){var d=f[h]=Iw(e,h,r,i,a,null);if(!uw&&aw){var v=aw.tNode;v.next=d,v.dynamicContainerNode&&(v.dynamicContainerNode.next=d)}}l.tNode=f[h],uw&&(lw=null,(null==aw.tNode.child&&aw.view===hw||2===aw.tNode.type)&&(aw.tNode.child=l.tNode))}if(2==(2&e)&&c){var y=o;y[Cb]=l,_w&&(y[bb].node=l.tNode)}return aw=l,uw=!0,l}function Tw(t,e,n,r){var i,o=uw,s=aw;if(null==t.data[wb]&&t.data[Nb]&&!e.template)jw(t.data[Nb]);else try{uw=!0,aw=null,i=bw(t.data,t),kw(),e.template(r,n),2&r?xw():t.data[bb].firstTemplatePass=_w=!1}finally{ww(i,1==(1&r)),uw=o,aw=s}return t}function Pw(t,e,n,r){var i=bw(e,t);try{sw.begin&&sw.begin(),r?(kw(),r(Aw(e),n),xw()):(function o(){gw||(jb(hw,cw,pw),Lb(fw,cw.contentHooks,cw.contentCheckHooks,pw))}(),Ew(yw),Rw(0,_b))}finally{sw.end&&sw.end(),ww(i)}}function Aw(t){return 1&t[Sb]?3:2}var Nw=null;function kw(){Nw=null}function Ow(t,e,n,r,i){return{id:t,template:e,viewQuery:i,node:null,data:mw.slice(),childIndex:-1,bindingStartIndex:-1,directives:null,firstTemplatePass:!0,initHooks:null,checkHooks:null,contentHooks:null,contentCheckHooks:null,viewHooks:null,viewCheckHooks:null,destroyHooks:null,pipeDestroyHooks:null,cleanup:null,hostBindings:null,contentQueries:null,components:null,directiveRegistry:"function"==typeof n?n():n,pipeRegistry:"function"==typeof r?r():r,currentMatches:null}}function Mw(t,e){sw=t;var n=t.createRenderer(null,null);return"string"==typeof e?Kb(n)?n.selectRootElement(e):n.querySelector(e):e}function Iw(t,e,n,r,i,o){return{type:t,index:e,flags:0,tagName:n,attrs:r,localNames:null,initialInputs:void 0,inputs:void 0,outputs:void 0,tViews:o,next:null,child:null,parent:i,dynamicContainerNode:null,detached:null,stylingTemplate:null,projection:null}}function Rw(t,e){var n=hw[e],r=n.data;Dw(r)&&6&r[Sb]&&Vw(r,n,fw[t])}function Dw(t){return 8==(8&t[Sb])}function jw(t){for(var e=0;e<t.components.length;e++){var n=t.components[e];Pw(Hw(n),Lw(n),n)}}function Lw(t){for(var e=Hw(t).view;e[wb];)e=e[wb];return e}function Fw(t){var e=Hw(t);Vw(e.data,e,t)}function Vw(t,e,n){var r=bw(t,e),i=t[bb],o=i.template,s=i.viewQuery;try{kw(),function a(t,e,n){t&&1&e&&t(1,n)}(s,t[Sb],n),o(Aw(t),n),xw(),function u(t,e){t&&t(2,e)}(s,n)}finally{ww(r)}}function Hw(t){return t[dw]}var Bw=vw;
1202
+ */(e),-1===e[Vb].id&&uw(e[Yb])&&e[Yb].destroy()}}var Sw,Cw,Tw,Pw,Aw,Nw,kw,Ow,Mw,Iw="__ngHostLNode__",Rw=Promise.resolve(null),Dw=[0,0],jw=new Array(Fb).fill(null),Lw=!1,Fw=!0;function Vw(t,e){var n=Ow;return Mw=t&&t[Wb],Aw=t&&t[Vb],kw=t&&1==(1&t[Kb]),Fw=t&&Aw.firstTemplatePass,Sw=t&&t[Yb],null!=e&&(Tw=e,Pw=!0),Ow=t,Nw=t&&t[qb],n}function Hw(t,e){e||(Lw||nw(Mw,Aw.viewHooks,Aw.viewCheckHooks,kw),Ow[Kb]&=-6),Ow[Kb]|=16,Ow[zb]=-1,Vw(t,null)}function Bw(){Lw||ew(Ow,Aw,kw),function t(e){for(var n=bw(e);null!==n;n=n[Bb])if(n.length<Fb&&null===n[ow])for(var r=n,i=0;i<r[sw].length;i++){var o=r[sw][i],s=o.data;zw(o,s[Vb],s[Gb],2)}}(Ow),Lw||nw(Mw,Aw.contentHooks,Aw.contentCheckHooks,kw),Aw.firstTemplatePass=Fw=!1,qw(Aw.hostBindings),function e(t){if(null!=t.contentQueries)for(var e=0;e<t.contentQueries.length;e+=2){var n=t.contentQueries[e];t.directives[n].contentQueriesRefresh(n,t.contentQueries[e+1])}}(Aw),function n(t){if(null!=t)for(var e=0;e<t.length;e+=2)Jw(t[e],t[e+1])}(Aw.components)}function qw(t){if(null!=t)for(var e=Aw.directives,n=0;n<t.length;n+=2){var r=t[n],i=e[r];i.hostBindings&&i.hostBindings(r,t[n+1])}}function Kw(t,e,n,r,i){return[e,Ow,null,null,25|r,null,-1,null,null,n,Ow&&Ow[Xb],t,i||null,null,-1,null]}function Uw(t,e,n,r,i,o){var s=Pw?Tw:Tw&&fw(Tw),a=s&&s.view===Ow?s.tNode:null,u=(Pw?Nw:Tw&&Tw.queries)||s&&s.queries&&s.queries.child(),c=null!=o,l=function p(t,e,n,r,i,o){return{native:r,view:e,nodeInjector:n?n.nodeInjector:null,data:i,queries:o,tNode:null,dynamicLContainerNode:null}}(0,Ow,s,n,c?o:null,u);if(-1===t||2===e)l.tNode=(o?o[Vb].node:null)||$w(e,t,null,null,a,null);else{var h=t+Fb,f=Aw.data;if(Ow[h]=l,h>=f.length){var d=f[h]=$w(e,h,r,i,a,null);if(!Pw&&Tw){var v=Tw.tNode;v.next=d,v.dynamicContainerNode&&(v.dynamicContainerNode.next=d)}}l.tNode=f[h],Pw&&(Nw=null,(null==Tw.tNode.child&&Tw.view===Ow||2===Tw.tNode.type)&&(Tw.tNode.child=l.tNode))}if(2==(2&e)&&c){var y=o;y[Ub]=l,Fw&&(y[Vb].node=l.tNode)}return Tw=l,Pw=!0,l}function zw(t,e,n,r){var i,o=Pw,s=Tw;if(null==t.data[Hb]&&t.data[Gb]&&!e.template)ex(t.data[Gb]);else try{Pw=!0,Tw=null,i=Vw(t.data,t),Xw(),e.template(r,n),2&r?Bw():t.data[Vb].firstTemplatePass=Fw=!1}finally{Hw(i,1==(1&r)),Pw=o,Tw=s}return t}function Ww(t,e,n,r){var i=Vw(e,t);try{Cw.begin&&Cw.begin(),r?(Xw(),r(Qw(e),n),Bw()):(function o(){Lw||(ew(Ow,Aw,kw),nw(Mw,Aw.contentHooks,Aw.contentCheckHooks,kw))}(),qw(Dw),Jw(0,Fb))}finally{Cw.end&&Cw.end(),Hw(i)}}function Qw(t){return 1&t[Kb]?3:2}var Gw=null;function Xw(){Gw=null}function Yw(t,e,n,r,i){return{id:t,template:e,viewQuery:i,node:null,data:jw.slice(),childIndex:-1,bindingStartIndex:-1,directives:null,firstTemplatePass:!0,initHooks:null,checkHooks:null,contentHooks:null,contentCheckHooks:null,viewHooks:null,viewCheckHooks:null,destroyHooks:null,pipeDestroyHooks:null,cleanup:null,hostBindings:null,contentQueries:null,components:null,directiveRegistry:"function"==typeof n?n():n,pipeRegistry:"function"==typeof r?r():r,currentMatches:null}}function Zw(t,e){Cw=t;var n=t.createRenderer(null,null);return"string"==typeof e?uw(n)?n.selectRootElement(e):n.querySelector(e):e}function $w(t,e,n,r,i,o){return{type:t,index:e,flags:0,tagName:n,attrs:r,localNames:null,initialInputs:void 0,inputs:void 0,outputs:void 0,tViews:o,next:null,child:null,parent:i,dynamicContainerNode:null,detached:null,stylingTemplate:null,projection:null}}function Jw(t,e){var n=Ow[e],r=n.data;tx(r)&&6&r[Kb]&&ix(r,n,Mw[t])}function tx(t){return 8==(8&t[Kb])}function ex(t){for(var e=0;e<t.components.length;e++){var n=t.components[e];Ww(ox(n),nx(n),n)}}function nx(t){for(var e=ox(t).view;e[Hb];)e=e[Hb];return e}function rx(t){var e=ox(t);ix(e.data,e,t)}function ix(t,e,n){var r=Vw(t,e),i=t[Vb],o=i.template,s=i.viewQuery;try{Xw(),function a(t,e,n){t&&1&e&&t(1,n)}(s,t[Kb],n),o(Qw(t),n),Bw(),function u(t,e){t&&t(2,e)}(s,n)}finally{Hw(r)}}function ox(t){return t[Iw]}var sx=Rw;
1188
1203
  /**
1189
1204
  * @license
1190
1205
  * Copyright Google Inc. All Rights Reserved.
1191
1206
  *
1192
1207
  * Use of this source code is governed by an MIT-style license that can be
1193
1208
  * found in the LICENSE file at https://angular.io/license
1194
- */function qw(t){return{components:[],scheduler:t,clean:Bw}}
1209
+ */function ax(t){return{components:[],scheduler:t,clean:sx}}
1195
1210
  /**
1196
1211
  * @license
1197
1212
  * Copyright Google Inc. All Rights Reserved.
@@ -1220,14 +1235,14 @@ var _b=16,bb=0,wb=1,xb=2,Eb=3,Sb=4,Cb=5,Tb=6,Pb=7,Ab=8,Nb=9,kb=10,Ob=11,Mb=14;fu
1220
1235
  * Use of this source code is governed by an MIT-style license that can be
1221
1236
  * found in the LICENSE file at https://angular.io/license
1222
1237
  */
1223
- var Kw=function(){function t(t,e){this._view=t,this._appRef=null,this._viewContainerRef=null,this._lViewNode=null,this.context=e}return t.prototype._setComponentContext=function(t,e){this._view=t,this.context=e},Object.defineProperty(t.prototype,"destroyed",{get:function(){return 32==(32&this._view[Sb])},enumerable:!0,configurable:!0}),t.prototype.destroy=function(){this._viewContainerRef&&Dw(this._view)&&(this._viewContainerRef.detach(this._viewContainerRef.indexOf(this)),this._viewContainerRef=null),nw(this._view)},t.prototype.onDestroy=function(t){!function e(t,n){(function r(t){return t[Ab]||(t[Ab]=[])})(t).push(n),t[bb].firstTemplatePass&&function i(t){return t[bb].cleanup||(t[bb].cleanup=[])}(t).push(t[Ab].length-1,null)}(this._view,t)},t.prototype.markForCheck=function(){!function t(e){for(var n=e;null!=n[wb];)n[Sb]|=4,n=n[wb];n[Sb]|=4,function r(t){var e;t.clean==vw&&(t.clean=new Promise(function(t){return e=t}),t.scheduler(function(){jw(t),e(null),t.clean=vw}))}(n[Nb])}(this._view)},t.prototype.detach=function(){this._view[Sb]&=-9},t.prototype.reattach=function(){this._view[Sb]|=8},t.prototype.detectChanges=function(){Fw(this.context)},t.prototype.checkNoChanges=function(){!function t(e){gw=!0;try{Fw(e)}finally{gw=!1}}(this.context)},t.prototype.attachToViewContainerRef=function(t){this._viewContainerRef=t},t.prototype.detachFromAppRef=function(){this._appRef=null},t.prototype.attachToAppRef=function(t){this._appRef=t},t}(),Uw=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o(e,t),e.prototype.resolveComponentFactory=function(t){return new Gw(t.ngComponentDef)},e}(ly);
1238
+ var ux=function(){function t(t,e){this._view=t,this._appRef=null,this._viewContainerRef=null,this._lViewNode=null,this.context=e}return t.prototype._setComponentContext=function(t,e){this._view=t,this.context=e},Object.defineProperty(t.prototype,"destroyed",{get:function(){return 32==(32&this._view[Kb])},enumerable:!0,configurable:!0}),t.prototype.destroy=function(){this._viewContainerRef&&tx(this._view)&&(this._viewContainerRef.detach(this._viewContainerRef.indexOf(this)),this._viewContainerRef=null),ww(this._view)},t.prototype.onDestroy=function(t){!function e(t,n){(function r(t){return t[Qb]||(t[Qb]=[])})(t).push(n),t[Vb].firstTemplatePass&&function i(t){return t[Vb].cleanup||(t[Vb].cleanup=[])}(t).push(t[Qb].length-1,null)}(this._view,t)},t.prototype.markForCheck=function(){!function t(e){for(var n=e;null!=n[Hb];)n[Kb]|=4,n=n[Hb];n[Kb]|=4,function r(t){var e;t.clean==Rw&&(t.clean=new Promise(function(t){return e=t}),t.scheduler(function(){ex(t),e(null),t.clean=Rw}))}(n[Gb])}(this._view)},t.prototype.detach=function(){this._view[Kb]&=-9},t.prototype.reattach=function(){this._view[Kb]|=8},t.prototype.detectChanges=function(){rx(this.context)},t.prototype.checkNoChanges=function(){!function t(e){Lw=!0;try{rx(e)}finally{Lw=!1}}(this.context)},t.prototype.attachToViewContainerRef=function(t){this._viewContainerRef=t},t.prototype.detachFromAppRef=function(){this._appRef=null},t.prototype.attachToAppRef=function(t){this._appRef=t},t}(),cx=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o(e,t),e.prototype.resolveComponentFactory=function(t){return new fx(t.ngComponentDef)},e}(by);
1224
1239
  /**
1225
1240
  * @license
1226
1241
  * Copyright Google Inc. All Rights Reserved.
1227
1242
  *
1228
1243
  * Use of this source code is governed by an MIT-style license that can be
1229
1244
  * found in the LICENSE file at https://angular.io/license
1230
- */function zw(t){var e=[];for(var n in t)t.hasOwnProperty(n)&&e.push({propName:t[n],templateName:n});return e}var Ww=new Ol("ROOT_CONTEXT_TOKEN",{providedIn:"root",factory:function(){return qw(kp(Qw))}}),Qw=new Ol("SCHEDULER_TOKEN",{providedIn:"root",factory:function(){return requestAnimationFrame.bind(window)}}),Gw=function(t){function e(e){var n=t.call(this)||this;return n.componentDef=e,n.componentType=e.type,n.selector=e.selectors[0][0],n.ngContentSelectors=[],n}return o(e,t),Object.defineProperty(e.prototype,"inputs",{get:function(){return zw(this.componentDef.inputs)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"outputs",{get:function(){return zw(this.componentDef.outputs)},enumerable:!0,configurable:!0}),e.prototype.create=function(t,e,n,r){var i=void 0===n,o=r?r.injector.get(Hy):Ub,s=i?function a(t,e){var n=e||ow;return Kb(n)?n.createElement(t,Nw):null===Nw?n.createElement(t):n.createElementNS(Nw,t)}(this.selector,o.createRenderer(null,this.componentDef.rendererType)):Mw(o,n),u=r&&!i?r.injector.get(Ww):qw(requestAnimationFrame.bind(window)),c=Sw(o.createRenderer(s,this.componentDef.rendererType),Ow(-1,null,null,null,null),u,this.componentDef.onPush?4:2);c[kb]=r&&r.injector||null;var l,p,h=bw(c,null);try{if(o.begin&&o.begin(),p=function f(t,e,n,r){!function i(){uw=!1,aw=null}();var o=Cw(0,3,e,null,null,Sw(ow,function s(t,e,n,r){return t.ngPrivateData||(t.ngPrivateData=Ow(-1,t,e,n,r))}(n.template,n.directiveDefs,n.pipeDefs,n.viewQuery),null,n.onPush?4:2,r));return _w&&(o.tNode.flags=4096,n.diPublic&&n.diPublic(n),cw.directives=[n]),o}(0,s,this.componentDef),u.components.push(l=function d(t,e,n){if(Object.defineProperty(e,dw,{enumerable:!1,value:aw}),null==fw&&(hw[Pb]=fw=[]),fw[t]=e,_w){var r=aw.tNode.flags;0==(4095&r)?aw.tNode.flags=t<<14|4096&r|1:aw.tNode.flags++}else{var i=n.diPublic;i&&i(n)}return null!=n.attributes&&3==aw.tNode.type&&function o(t,e){for(var n=Kb(ow),r=0;r<e.length;){var i=e[r];if(1===i)break;if("ngProjectAs"===i)r+=2;else if(0===i){var o=e[r+1],s=e[r+2],a=e[r+3];n?ow.setAttribute(t,s,a,o):t.setAttributeNS(o,s,a),r+=4}else a=e[r+1],n?ow.setAttribute(t,i,a):t.setAttribute(i,a),r+=2}}(aw.native,n.attributes),e}(0,this.componentDef.factory(),this.componentDef)),function v(t,e,n){t&&null!=t.changeDetectorRef&&t.changeDetectorRef._setComponentContext(n,e)}(p.nodeInjector,l,p.data),function y(t,e){var n=Hw(t),r=n.view[bb];!
1245
+ */function lx(t){var e=[];for(var n in t)t.hasOwnProperty(n)&&e.push({propName:t[n],templateName:n});return e}var px=new jl("ROOT_CONTEXT_TOKEN",{providedIn:"root",factory:function(){return ax(Dp(hx))}}),hx=new jl("SCHEDULER_TOKEN",{providedIn:"root",factory:function(){return requestAnimationFrame.bind(window)}}),fx=function(t){function e(e){var n=t.call(this)||this;return n.componentDef=e,n.componentType=e.type,n.selector=e.selectors[0][0],n.ngContentSelectors=[],n}return o(e,t),Object.defineProperty(e.prototype,"inputs",{get:function(){return lx(this.componentDef.inputs)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"outputs",{get:function(){return lx(this.componentDef.outputs)},enumerable:!0,configurable:!0}),e.prototype.create=function(t,e,n,r){var i=void 0===n,o=r?r.injector.get(Yy):cw,s=i?function a(t,e){var n=e||Sw;return uw(n)?n.createElement(t,Gw):null===Gw?n.createElement(t):n.createElementNS(Gw,t)}(this.selector,o.createRenderer(null,this.componentDef.rendererType)):Zw(o,n),u=r&&!i?r.injector.get(px):ax(requestAnimationFrame.bind(window)),c=Kw(o.createRenderer(s,this.componentDef.rendererType),Yw(-1,null,null,null,null),u,this.componentDef.onPush?4:2);c[Xb]=r&&r.injector||null;var l,p,h=Vw(c,null);try{if(o.begin&&o.begin(),p=function f(t,e,n,r){!function i(){Pw=!1,Tw=null}();var o=Uw(0,3,e,null,null,Kw(Sw,function s(t,e,n,r){return t.ngPrivateData||(t.ngPrivateData=Yw(-1,t,e,n,r))}(n.template,n.directiveDefs,n.pipeDefs,n.viewQuery),null,n.onPush?4:2,r));return Fw&&(o.tNode.flags=4096,n.diPublic&&n.diPublic(n),Aw.directives=[n]),o}(0,s,this.componentDef),u.components.push(l=function d(t,e,n){if(Object.defineProperty(e,Iw,{enumerable:!1,value:Tw}),null==Mw&&(Ow[Wb]=Mw=[]),Mw[t]=e,Fw){var r=Tw.tNode.flags;0==(4095&r)?Tw.tNode.flags=t<<14|4096&r|1:Tw.tNode.flags++}else{var i=n.diPublic;i&&i(n)}return null!=n.attributes&&3==Tw.tNode.type&&function o(t,e){for(var n=uw(Sw),r=0;r<e.length;){var i=e[r];if(1===i)break;if("ngProjectAs"===i)r+=2;else if(0===i){var o=e[r+1],s=e[r+2],a=e[r+3];n?Sw.setAttribute(t,s,a,o):t.setAttributeNS(o,s,a),r+=4}else a=e[r+1],n?Sw.setAttribute(t,i,a):t.setAttribute(i,a),r+=2}}(Tw.native,n.attributes),e}(0,this.componentDef.factory(),this.componentDef)),function v(t,e,n){t&&null!=t.changeDetectorRef&&t.changeDetectorRef._setComponentContext(n,e)}(p.nodeInjector,l,p.data),function y(t,e){var n=ox(t),r=n.view[Vb];!
1231
1246
  /**
1232
1247
  * @license
1233
1248
  * Copyright Google Inc. All Rights Reserved.
@@ -1235,7 +1250,15 @@ var Kw=function(){function t(t,e){this._view=t,this._appRef=null,this._viewConta
1235
1250
  * Use of this source code is governed by an MIT-style license that can be
1236
1251
  * found in the LICENSE file at https://angular.io/license
1237
1252
  */
1238
- function i(t,e,n,r){e&&(r.initHooks||(r.initHooks=[])).push(t,e),n&&((r.initHooks||(r.initHooks=[])).push(t,n),(r.checkHooks||(r.checkHooks=[])).push(t,n))}(0,e.onInit,e.doCheck,r),function o(t,e){if(e.firstTemplatePass)for(var n=t>>14,r=n+(4095&t),i=n;i<r;i++){var o=e.directives[i];Ib(o,e,i),Rb(o,e,i),Db(o,e,i)}}(n.tNode.flags,r)}(l,this.componentDef),e)for(var m=0,g=p.tNode.projection=[],_=0;_<e.length;_++){for(var b=e[_],w=null,x=null,E=0;E<b.length;E++){var S=Cw(++m,3,b[E],null,null);x?x.next=S.tNode:w=S.tNode,x=S.tNode}g.push(w)}Tw(p,p.data[bb],l,1),p.data[Sb]&=-2}finally{bw(h,null),o.end&&o.end()}var C=new Xw(this.componentType,l,c,t,s);return i&&(C.hostView._lViewNode.tNode.child=p.tNode),C},e}(uy),Xw=function(t){function e(e,n,r,i,o){var s=t.call(this)||this;return s.destroyCbs=[],s.instance=n,s.hostView=s.changeDetectorRef=new Kw(r,n),s.hostView._lViewNode=Cw(-1,2,null,null,null,r),s.injector=i,s.location=new Ky(o),s.componentType=e,s}return o(e,t),e.prototype.destroy=function(){this.destroyCbs.forEach(function(t){return t()}),this.destroyCbs=null},e.prototype.onDestroy=function(t){this.destroyCbs.push(t)},e}(ay),Yw=(new Uw,function(){function t(t){this._lContainerNode=t,this._viewRefs=[]}t.prototype.clear=function(){for(var t=this._lContainerNode.data;t[Bb].length;)this.remove(0)},t.prototype.get=function(t){return this._viewRefs[t]||null},Object.defineProperty(t.prototype,"length",{get:function(){return this._lContainerNode.data[Bb].length},enumerable:!0,configurable:!0}),t.prototype.createEmbeddedView=function(t,e,n){var r=this._adjustIndex(n),i=t.createEmbeddedView(e||{},this._lContainerNode,r);return i.attachToViewContainerRef(this),this._viewRefs.splice(r,0,i),i},t.prototype.createComponent=function(t,e,n,r,i){var o=n||this.parentInjector;!i&&o&&(i=o.get(hy));var s=t.create(o,r,void 0,i);return this.insert(s.hostView,e),s},t.prototype.insert=function(t,e){if(t.destroyed)throw new Error("Cannot insert a destroyed View in a ViewContainer!");var n=t._lViewNode,r=this._adjustIndex(e);!function i(t,e,n){var r=t.data[Bb],i=e.data;n>0&&(r[n-1].data[xb]=i),n<r.length?(i[xb]=r[n].data,r.splice(n,0,e)):(r.push(e),i[xb]=null),-1===e.tNode.index&&(i[Mb]=t.tNode.parent.index,e.view=t.view),i[Eb]&&i[Eb].insertView(n),i[Sb]|=8}(this._lContainerNode,n,r);var o=this._lContainerNode.data[Bb],s=r+1<o.length?Qb(o[r+1]).native:this._lContainerNode.native;return Jb(this._lContainerNode,n,!0,s),t.attachToViewContainerRef(this),this._viewRefs.splice(r,0,t),t},t.prototype.move=function(t,e){var n=this.indexOf(t);return this.detach(n),this.insert(t,this._adjustIndex(e)),t},t.prototype.indexOf=function(t){return this._viewRefs.indexOf(t)},t.prototype.remove=function(t){var e=this._adjustIndex(t,-1);!function n(t,e){var n=t.data[Bb][e];tw(t,e),nw(n.data)}(this._lContainerNode,e),this._viewRefs.splice(e,1)},t.prototype.detach=function(t){var e=this._adjustIndex(t,-1);return tw(this._lContainerNode,e),this._viewRefs.splice(e,1)[0]||null},t.prototype._adjustIndex=function(t,e){return void 0===e&&(e=0),null==t?this._lContainerNode.data[Bb].length+e:t}}(),{provide:ly,useFactory:function(){return new Uw},deps:[]}),Zw=function(t){function e(e,n){var r=t.call(this)||this;return r._bootstrapComponents=[],r.destroyCbs=[],r._bootstrapComponents=e.ngModuleDef.bootstrap,r.injector=function i(t,e,n){return void 0===e&&(e=null),void 0===n&&(n=null),e=e||mh(),new gh(t,n,e)}(e,n,[Yw,{provide:hy,useValue:r}]),r.instance=r.injector.get(e),r.componentFactoryResolver=new Uw,r}return o(e,t),e.prototype.destroy=function(){this.destroyCbs.forEach(function(t){return t()}),this.destroyCbs=null},e.prototype.onDestroy=function(t){this.destroyCbs.push(t)},e}(hy),$w=(function(t){function e(e){var n=t.call(this)||this;return n.moduleType=e,n}o(e,t),e.prototype.create=function(t){return new Zw(this.moduleType,t)}}(fy),function(){function t(){this.dirty=!0,this.changes=new wy,this._values=[],this._valuesTree=[]}Object.defineProperty(t.prototype,"length",{get:function(){return this._values.length},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"first",{get:function(){var t=this._values;return t.length?t[0]:null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"last",{get:function(){var t=this._values;return t.length?t[t.length-1]:null},enumerable:!0,configurable:!0}),t.prototype.map=function(t){return this._values.map(t)},t.prototype.filter=function(t){return this._values.filter(t)},t.prototype.find=function(t){return this._values.find(t)},t.prototype.reduce=function(t,e){return this._values.reduce(t,e)},t.prototype.forEach=function(t){this._values.forEach(t)},t.prototype.some=function(t){return this._values.some(t)},t.prototype.toArray=function(){return this._values.slice(0)},t.prototype[Wl()]=function(){return this._values[Wl()]()},t.prototype.toString=function(){return this._values.toString()},t.prototype.reset=function(t){this._values=function e(t){for(var e=[],n=0;n<t.length;){var r=t[n];Array.isArray(r)?r.length>0?(t=r.concat(t.slice(n+1)),n=0):n++:(e.push(r),n++)}return e}(t),this.dirty=!1},t.prototype.notifyOnChanges=function(){this.changes.emit(this)},t.prototype.setDirty=function(){this.dirty=!0},t.prototype.destroy=function(){this.changes.complete(),this.changes.unsubscribe()}}(),function(){function t(t,e){var n=this;this.host=t,this.getProgram=e,this.metadataCollector=new Hc({verboseInvalidExpression:!0}),t.directoryExists&&(this.directoryExists=function(t){return n.host.directoryExists(t)})}return t.prototype.fileExists=function(t){return!!this.host.getScriptSnapshot(t)},t.prototype.readFile=function(t){var e=this.host.getScriptSnapshot(t);if(e)return e.getText(0,e.getLength())},t.prototype.getSourceFileMetadata=function(t){var e=this.getProgram().getSourceFile(t);return e?this.metadataCollector.getMetadata(e):void 0},t.prototype.cacheMetadata=function(t){return t.endsWith(".d.ts")},t}()),Jw=function(){function t(t,e,n){this.options=n,this.metadataReaderCache=function i(){return{data:new Map}}(),this.hostAdapter=new $w(e,t),this.moduleResolutionCache=r.createModuleResolutionCache(e.getCurrentDirectory(),function(t){return t})}return t.prototype.getMetadataFor=function(t){return function e(t,n,r){var i=r&&r.data.get(t);if(i)return i;if(n.fileExists(t))if(Kc.test(t))(i=function o(t,e){var n=e.replace(Kc,".metadata.json");if(t.fileExists(n))try{var r=JSON.parse(t.readFile(n)),i=r?Array.isArray(r)?r:[r]:[];if(i.length){var o=i.reduce(function(t,e){return t.version>e.version?t:e});o.version<gc&&i.push(Uc(t,o,e))}return i}catch(t){throw console.error("Failed to read JSON file "+n),t}}(n,t))||(i=[Uc(n,{__symbolic:"module",version:1,metadata:{}},t)]);else{var s=n.getSourceFileMetadata(t);i=s?[s]:[]}return!r||n.cacheMetadata&&!n.cacheMetadata(t)||r.data.set(t,i),i}(t,this.hostAdapter,this.metadataReaderCache)},t.prototype.moduleNameToFileName=function(t,e){if(!e){if(0===t.indexOf("."))throw new Error("Resolution of relative paths requires a containing file.");e=n.join(this.options.basePath,"index.ts").replace(/\\/g,"/")}var i=r.resolveModuleName(t,e,this.options,this.hostAdapter).resolvedModule;return i?i.resolvedFileName:null},t.prototype.getOutputName=function(t){return t},t}(),tx=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o(e,t),e.prototype.parse=function(t,e,n,r){return void 0===n&&(n=!1),void 0===r&&(r=ye),new qr([],[])},e}(po),ex=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o(e,t),e.prototype.get=function(t){return Promise.resolve("")},e}(Lu),nx=function(){function t(t,e){this.host=t,this.tsService=e,this._staticSymbolCache=new Ht,this._typeCache=[],this.modulesOutOfDate=!0,this.fileVersions=new Map}return t.prototype.setSite=function(t){this.service=t},Object.defineProperty(t.prototype,"resolver",{get:function(){var t=this;this.validate();var e=this._resolver;if(!e){var n=new Hs(this.reflector),r=new Le(this.reflector),i=new ta(this.reflector),o=new ca,s=new ex,a=Nu(),u=new tx,c=new Lt({defaultEncapsulation:Lp.Emulated,useJit:!1}),l=new Re(s,a,u,c);e=this._resolver=new ks(c,u,n,r,i,new Au,o,l,new ny,this._staticSymbolCache,this.reflector,function(e,n){return t.collectError(e,n&&n.filePath)})}return e},enumerable:!0,configurable:!0}),t.prototype.getTemplateReferences=function(){return this.ensureTemplateMap(),this.templateReferences||[]},t.prototype.getTemplateAt=function(t,e){var n=this.getSourceFile(t);if(n){this.context=n.fileName;var r=this.findNode(n,e);if(r)return this.getSourceFromNode(t,this.host.getScriptVersion(n.fileName),r)}else{this.ensureTemplateMap();var i=this.fileToComponent.get(t);if(i)return this.getSourceFromType(t,this.host.getScriptVersion(t),i)}},t.prototype.getAnalyzedModules=function(){return this.updateAnalyzedModules(),this.ensureAnalyzedModules()},t.prototype.ensureAnalyzedModules=function(){var t=this.analyzedModules;return t||(t=0===this.host.getScriptFileNames().length?{files:[],ngModuleByPipeOrDirective:new Map,ngModules:[]}:function e(t,n,r,i){return function s(t){var e=[],n=new Map,r=new Set;t.forEach(function(t){t.ngModules.forEach(function(t){e.push(t),t.declaredDirectives.forEach(function(e){return n.set(e.reference,t)}),t.declaredPipes.forEach(function(e){return n.set(e.reference,t)})}),t.directives.forEach(function(t){return r.add(t)}),t.pipes.forEach(function(t){return r.add(t)})});var i=[];return r.forEach(function(t){n.has(t)||i.push(t)}),{ngModules:e,ngModuleByPipeOrDirective:n,symbolsMissingModule:i,files:t}}(function o(t,e,n,r){var i=new Set,o=[],s=function(t){if(i.has(t)||!e.isSourceFile(t))return!1;i.add(t);var a=function u(t,e,n,r){var i=[],o=[],s=[],a=[],u=e.hasDecorators(r),c=!1;return r.endsWith(".d.ts")&&!u||e.getSymbolsOf(r).forEach(function(r){var u=e.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 p=n.getNgModuleMetadata(r,!1);p&&(l=!0,a.push(p))}else if(n.isInjectable(r)){l=!0;var h=n.getInjectableMetadata(r,null,!1);h&&s.push(h)}l||(c=c||function f(t,e){var n=!1;return nt(e,new(function(){function e(){}return e.prototype.visitArray=function(t,e){var n=this;t.forEach(function(t){return nt(t,n,e)})},e.prototype.visitStringMap=function(t,e){var n=this;Object.keys(t).forEach(function(r){return nt(t[r],n,e)})},e.prototype.visitPrimitive=function(t,e){},e.prototype.visitOther=function(e,r){e instanceof Vt&&!t.isSourceFile(e.filePath)&&(n=!0)},e}()),null),n}(t,u))}}),{fileName:r,directives:i,pipes:o,ngModules:a,injectables:s,exportsNonSourceFiles:c}}(e,n,r,t);o.push(a),a.ngModules.forEach(function(t){t.transitiveModule.modules.forEach(function(t){return s(t.reference.filePath)})})};return t.forEach(function(t){return s(t)}),o}(t,n,r,i))}(this.program.getSourceFiles().map(function(t){return t.fileName}),{isSourceFile:function(t){return!0}},this.staticSymbolResolver,this.resolver),this.analyzedModules=t),t},t.prototype.getTemplates=function(t){var e=this;if(this.ensureTemplateMap(),!this.fileToComponent.get(t)){var n=this.host.getScriptVersion(t),i=[],o=function(s){var a=e.getSourceFromNode(t,n,s);a?i.push(a):r.forEachChild(s,o)},s=this.getSourceFile(t);return s&&(this.context=s.path||s.fileName,r.forEachChild(s,o)),i.length?i:void 0}var a=this.getTemplateAt(t,0);if(a)return[a]},t.prototype.getDeclarations=function(t){var e=this,n=[],i=this.getSourceFile(t);if(i){var o=function(t){var s=e.getDeclarationFromNode(i,t);s?n.push(s):r.forEachChild(t,o)};r.forEachChild(i,o)}return n},t.prototype.getSourceFile=function(t){return this.tsService.getProgram().getSourceFile(t)},t.prototype.updateAnalyzedModules=function(){this.validate(),this.modulesOutOfDate&&(this.analyzedModules=null,this._reflector=null,this.templateReferences=null,this.fileToComponent=null,this.ensureAnalyzedModules(),this.modulesOutOfDate=!1)},Object.defineProperty(t.prototype,"program",{get:function(){return this.tsService.getProgram()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"checker",{get:function(){var t=this._checker;return t||(t=this._checker=this.program.getTypeChecker()),t},enumerable:!0,configurable:!0}),t.prototype.validate=function(){var t,e,n=this,r=this.program;if(this.lastProgram!==r){var i=function(t){return n._staticSymbolResolver.invalidateFile(t)};this.clearCaches();var o=new Set;try{for(var s=u(this.program.getSourceFiles()),a=s.next();!a.done;a=s.next()){var c=a.value.fileName;o.add(c);var l=this.host.getScriptVersion(c);l!=this.fileVersions.get(c)&&(this.fileVersions.set(c,l),this._staticSymbolResolver&&i(c))}}catch(e){t={error:e}}finally{try{a&&!a.done&&(e=s.return)&&e.call(s)}finally{if(t)throw t.error}}var p=Array.from(this.fileVersions.keys()).filter(function(t){return!o.has(t)});p.forEach(function(t){return n.fileVersions.delete(t)}),this._staticSymbolResolver&&p.forEach(i),this.lastProgram=r}},t.prototype.clearCaches=function(){this._checker=null,this._typeCache=[],this._resolver=null,this.collectedErrors=null,this.modulesOutOfDate=!0},t.prototype.ensureTemplateMap=function(){var t,e,n,r;if(!this.fileToComponent||!this.templateReferences){var i=new Map,o=[],s=this.getAnalyzedModules(),a=Nu();try{for(var c=u(s.ngModules),l=c.next();!l.done;l=c.next()){var p=l.value;try{for(var h=u(p.declaredDirectives),f=h.next();!f.done;f=h.next()){var d=f.value,v=this.resolver.getNonNormalizedDirectiveMetadata(d.reference).metadata;if(v.isComponent&&v.template&&v.template.templateUrl){var y=a.resolve(this.reflector.componentModuleUrl(d.reference),v.template.templateUrl);i.set(y,d.reference),o.push(y)}}}catch(t){n={error:t}}finally{try{f&&!f.done&&(r=h.return)&&r.call(h)}finally{if(n)throw n.error}}}}catch(e){t={error:e}}finally{try{l&&!l.done&&(e=c.return)&&e.call(c)}finally{if(t)throw t.error}}this.fileToComponent=i,this.templateReferences=o}},t.prototype.getSourceFromDeclaration=function(t,e,n,r,i,o,s,a){var u=void 0,c=this;if(o)return{version:e,source:n,span:r,type:i,get members(){return function t(e,n,r,i){var o=n.getTypeAtLocation(i);return new Ju(o,{node:r,program:e,checker:n}).members()}(c.program,c.checker,a,o)},get query(){if(!u){var e=c.service.getPipesAt(t,s.getStart());u=function n(t,e,r,i){return new Xu(t,e,r,i)}(c.program,c.checker,a,function(){return function t(e,n,r,i){return new ac(i,{program:n,checker:r,node:e})}(a,c.program,c.checker,e)})}return u}}},t.prototype.getSourceFromNode=function(t,e,n){switch(n.kind){case r.SyntaxKind.NoSubstitutionTemplateLiteral:case r.SyntaxKind.StringLiteral:var i=c(this.getTemplateClassDeclFromNode(n),2)[0];if(i&&i.name){var o=this.getSourceFile(t);if(o)return this.getSourceFromDeclaration(t,e,this.stringOf(n)||"",function s(t,e){return null==e&&(e=1),{start:t.start+e,end:t.end-e}}(rx(n)),this.reflector.getStaticSymbol(o.fileName,i.name.text),i,n,o)}}},t.prototype.getSourceFromType=function(t,e,n){var r=void 0,i=this.getTemplateClassFromStaticSymbol(n);if(i){var o=this.host.getScriptSnapshot(t);if(o){var s=o.getText(0,o.getLength());r=this.getSourceFromDeclaration(t,e,s,{start:0,end:s.length},n,i,i,i.getSourceFile())}}return r},Object.defineProperty(t.prototype,"reflectorHost",{get:function(){var t=this,r=this._reflectorHost;if(!r){if(!this.context){var i=this.host.getScriptFileNames();if(0===i.length)throw new Error("Internal error: no script file names found");this.context=i[0]}var o=this.tsService.getProgram().getSourceFile(this.context);if(!o)throw new Error("Internal error: no context could be determined");var s=function a(t){for(var r=n.dirname(t);e.existsSync(r);){var i=n.join(r,"tsconfig.json");if(e.existsSync(i))return i;var o=n.dirname(r);if(o===r)break;r=o}}(o.fileName),u=n.dirname(s||this.context),c={basePath:u,genDir:u},l=this.host.getCompilationSettings();l&&l.baseUrl&&(c.baseUrl=l.baseUrl),l&&l.paths&&(c.paths=l.paths),r=this._reflectorHost=new Jw(function(){return t.tsService.getProgram()},this.host,c)}return r},enumerable:!0,configurable:!0}),t.prototype.collectError=function(t,e){if(e){var n=this.collectedErrors;n&&this.collectedErrors||(n=this.collectedErrors=new Map);var r=n.get(e);r||this.collectedErrors.set(e,r=[]),r.push(t)}},Object.defineProperty(t.prototype,"staticSymbolResolver",{get:function(){var t=this,e=this._staticSymbolResolver;return e||(this._summaryResolver=new Pu({loadSummary:function(t){return null},isSourceFile:function(t){return!0},toSummaryFileName:function(t){return t},fromSummaryFileName:function(t){return t}},this._staticSymbolCache),e=this._staticSymbolResolver=new eu(this.reflectorHost,this._staticSymbolCache,this._summaryResolver,function(e,n){return t.collectError(e,n)})),e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"reflector",{get:function(){var t=this,e=this._reflector;return e||(e=this._reflector=new hu(this._summaryResolver,this.staticSymbolResolver,[],[],function(e,n){return t.collectError(e,n)})),e},enumerable:!0,configurable:!0}),t.prototype.getTemplateClassFromStaticSymbol=function(t){var e=this.getSourceFile(t.filePath);if(e)return r.forEachChild(e,function(e){if(e.kind===r.SyntaxKind.ClassDeclaration&&null!=e.name&&e.name.text===t.name)return e})},t.prototype.getTemplateClassDeclFromNode=function(e){var n=e.parent;if(!n)return t.missingTemplate;if(n.kind!==r.SyntaxKind.PropertyAssignment)return t.missingTemplate;if("template"!==n.name.text)return t.missingTemplate;if(!(n=n.parent)||n.kind!==r.SyntaxKind.ObjectLiteralExpression)return t.missingTemplate;if(!(n=n.parent)||n.kind!==r.SyntaxKind.CallExpression)return t.missingTemplate;var i=n.expression,o=n.parent;if(!o||o.kind!==r.SyntaxKind.Decorator)return t.missingTemplate;var s=o.parent;return s&&s.kind===r.SyntaxKind.ClassDeclaration?[s,i]:t.missingTemplate},t.prototype.getCollectedErrors=function(t,e){var n=this.collectedErrors&&this.collectedErrors.get(e.fileName);return n&&n.map(function(n){var i=function o(t,e,n){if(null!=e&&null!=n){var i=r.getPositionOfLineAndCharacter(t,e,n),o=r.forEachChild(t,function t(e){if(e.kind>r.SyntaxKind.LastToken&&e.pos<=i&&e.end>i)return r.forEachChild(e,t)||e});if(o)return{start:o.getStart(),end:o.getEnd()}}}(e,n.line||n.position&&n.position.line,n.column||n.position&&n.position.column)||t;return function s(t){return!!t[su]}
1253
+ function i(t,e,n,r){e&&(r.initHooks||(r.initHooks=[])).push(t,e),n&&((r.initHooks||(r.initHooks=[])).push(t,n),(r.checkHooks||(r.checkHooks=[])).push(t,n))}(0,e.onInit,e.doCheck,r),function o(t,e){if(e.firstTemplatePass)for(var n=t>>14,r=n+(4095&t),i=n;i<r;i++){var o=e.directives[i];$b(o,e,i),Jb(o,e,i),tw(o,e,i)}}(n.tNode.flags,r)}(l,this.componentDef),e)for(var m=0,g=p.tNode.projection=[],_=0;_<e.length;_++){for(var b=e[_],w=null,x=null,E=0;E<b.length;E++){var S=Uw(++m,3,b[E],null,null);x?x.next=S.tNode:w=S.tNode,x=S.tNode}g.push(w)}zw(p,p.data[Vb],l,1),p.data[Kb]&=-2}finally{Vw(h,null),o.end&&o.end()}var C=new dx(this.componentType,l,c,t,s);return i&&(C.hostView._lViewNode.tNode.child=p.tNode),C},e}(gy),dx=function(t){function e(e,n,r,i,o){var s=t.call(this)||this;return s.destroyCbs=[],s.instance=n,s.hostView=s.changeDetectorRef=new ux(r,n),s.hostView._lViewNode=Uw(-1,2,null,null,null,r),s.injector=i,s.location=new $y(o),s.componentType=e,s}return o(e,t),e.prototype.destroy=function(){this.destroyCbs.forEach(function(t){return t()}),this.destroyCbs=null},e.prototype.onDestroy=function(t){this.destroyCbs.push(t)},e}(my);new cx;var vx=function vx(t){this.read=t},yx=(function(){function t(t){this._lContainerNode=t,this._viewRefs=[]}t.prototype.clear=function(){for(var t=this._lContainerNode.data;t[sw].length;)this.remove(0)},t.prototype.get=function(t){return this._viewRefs[t]||null},Object.defineProperty(t.prototype,"length",{get:function(){return this._lContainerNode.data[sw].length},enumerable:!0,configurable:!0}),t.prototype.createEmbeddedView=function(t,e,n){var r=this._adjustIndex(n),i=t.createEmbeddedView(e||{},this._lContainerNode,r);return i.attachToViewContainerRef(this),this._viewRefs.splice(r,0,i),i},t.prototype.createComponent=function(t,e,n,r,i){var o=n||this.parentInjector;!i&&o&&(i=o.get(xy));var s=t.create(o,r,void 0,i);return this.insert(s.hostView,e),s},t.prototype.insert=function(t,e){if(t.destroyed)throw new Error("Cannot insert a destroyed View in a ViewContainer!");var n=t._lViewNode,r=this._adjustIndex(e);!function i(t,e,n){var r=t.data[sw],i=e.data;n>0&&(r[n-1].data[Bb]=i),n<r.length?(i[Bb]=r[n].data,r.splice(n,0,e)):(r.push(e),i[Bb]=null),-1===e.tNode.index&&(i[Zb]=t.tNode.parent.index,e.view=t.view),i[qb]&&i[qb].insertView(n),i[Kb]|=8}(this._lContainerNode,n,r);var o=this._lContainerNode.data[sw],s=r+1<o.length?hw(o[r+1]).native:this._lContainerNode.native;return gw(this._lContainerNode,n,!0,s),t.attachToViewContainerRef(this),this._viewRefs.splice(r,0,t),t},t.prototype.move=function(t,e){var n=this.indexOf(t);return this.detach(n),this.insert(t,this._adjustIndex(e)),t},t.prototype.indexOf=function(t){return this._viewRefs.indexOf(t)},t.prototype.remove=function(t){var e=this._adjustIndex(t,-1);!function n(t,e){var n=t.data[sw][e];_w(t,e),ww(n.data)}(this._lContainerNode,e),this._viewRefs.splice(e,1)},t.prototype.detach=function(t){var e=this._adjustIndex(t,-1);return _w(this._lContainerNode,e),this._viewRefs.splice(e,1)[0]||null},t.prototype._adjustIndex=function(t,e){return void 0===e&&(e=0),null==t?this._lContainerNode.data[sw].length+e:t}}(),{provide:by,useFactory:function(){return new cx},deps:[]}),mx=function(t){function e(e,n){var r=t.call(this)||this;return r._bootstrapComponents=[],r.destroyCbs=[],r._bootstrapComponents=e.ngModuleDef.bootstrap,r.injector=function i(t,e,n){return void 0===e&&(e=null),void 0===n&&(n=null),e=e||Eh(),new Sh(t,n,e)}(e,n,[yx,{provide:xy,useValue:r}]),r.instance=r.injector.get(e),r.componentFactoryResolver=new cx,r}return o(e,t),e.prototype.destroy=function(){this.destroyCbs.forEach(function(t){return t()}),this.destroyCbs=null},e.prototype.onDestroy=function(t){this.destroyCbs.push(t)},e}(xy);function gx(t,e){var n=t.localNames;if(n)for(var r=0;r<n.length;r+=2)if(n[r]===e)return n[r+1];return null}function _x(t,e){for(var n=t.view[Vb].directives,r=t.tNode.flags,i=r>>14,o=i+(4095&r),s=i;s<o;s++){var a=n[s];if(a.type===e&&a.diPublic)return s}return null}function bx(t,e,n,r){if(n instanceof vx)return n.read(t,e,r);var i=_x(e,n);return null!==i?e.view[Wb][i]:null}function wx(t,e){for(var n=
1254
+ /**
1255
+ * @license
1256
+ * Copyright Google Inc. All Rights Reserved.
1257
+ *
1258
+ * Use of this source code is governed by an MIT-style license that can be
1259
+ * found in the LICENSE file at https://angular.io/license
1260
+ */
1261
+ function r(t){var e=t.nodeInjector,n=fw(t),r=n&&n.nodeInjector;return e!=r?e:t.nodeInjector={parent:r,node:t,bf0:0,bf1:0,bf2:0,bf3:0,bf4:0,bf5:0,bf6:0,bf7:0,cbf0:null==r?0:r.cbf0|r.bf0,cbf1:null==r?0:r.cbf1|r.bf1,cbf2:null==r?0:r.cbf2|r.bf2,cbf3:null==r?0:r.cbf3|r.bf3,cbf4:null==r?0:r.cbf4|r.bf4,cbf5:null==r?0:r.cbf5|r.bf5,cbf6:null==r?0:r.cbf6|r.bf6,cbf7:null==r?0:r.cbf7|r.bf7,templateRef:null,viewContainerRef:null,elementRef:null,changeDetectorRef:null}}(e);t;){var i=t.predicate,o=i.type;if(o)null!==(u=_x(e,o))&&null!==(c=bx(n,e,i.read||o,u))&&xx(t,c);else for(var s=i.selector,a=0;a<s.length;a++){var u,c;null!==(u=gx(e.tNode,s[a]))&&null!==(c=bx(n,e,i.read,u))&&xx(t,c)}t=t.next}}function xx(t,e){t.values.push(e),t.list.setDirty()}function Ex(t,e,n,r){return{next:t,list:e,predicate:function i(t,e){var n=Array.isArray(t);return{type:n?null:t,selector:n?t:null,read:e}}(n,r),values:e._valuesTree,containerValues:null}}(function(t){function e(e){var n=t.call(this)||this;return n.moduleType=e,n}o(e,t),e.prototype.create=function(t){return new mx(this.moduleType,t)}})(Ey),function(){function t(t){this.shallow=null,this.deep=null,this.deep=null==t?null:t}t.prototype.track=function(t,e,n,r){n?this.deep=Ex(this.deep,t,e,null!=r?r:null):this.shallow=Ex(this.shallow,t,e,null!=r?r:null)},t.prototype.clone=function(){return this.deep?new t(this.deep):null},t.prototype.child=function(){return null===this.deep?null:null===this.shallow?this:new t(this.deep)},t.prototype.container=function(){for(var e=null,n=this.deep;n;){var r=[];n.values.push(r);var i={next:null,list:n.list,predicate:n.predicate,values:r,containerValues:null};i.next=e,e=i,n=n.next}return e?new t(e):null},t.prototype.createView=function(){for(var e=null,n=this.deep;n;){var r={next:null,list:n.list,predicate:n.predicate,values:[],containerValues:n.values};r.next=e,e=r,n=n.next}return e?new t(e):null},t.prototype.insertView=function(t){for(var e=this.deep;e;)e.containerValues.splice(t,0,e.values),e=e.next},t.prototype.addNode=function(t){wx(this.shallow,t),wx(this.deep,t)},t.prototype.removeView=function(){for(var t=this.deep;t;){var e=t.containerValues,n=e.indexOf(t.values);e.splice(n,1)[0].length&&t.list.setDirty(),t=t.next}}}(),function(){function t(){this.dirty=!0,this.changes=new Oy,this._values=[],this._valuesTree=[]}Object.defineProperty(t.prototype,"length",{get:function(){return this._values.length},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"first",{get:function(){var t=this._values;return t.length?t[0]:null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"last",{get:function(){var t=this._values;return t.length?t[t.length-1]:null},enumerable:!0,configurable:!0}),t.prototype.map=function(t){return this._values.map(t)},t.prototype.filter=function(t){return this._values.filter(t)},t.prototype.find=function(t){return this._values.find(t)},t.prototype.reduce=function(t,e){return this._values.reduce(t,e)},t.prototype.forEach=function(t){this._values.forEach(t)},t.prototype.some=function(t){return this._values.some(t)},t.prototype.toArray=function(){return this._values.slice(0)},t.prototype[Zl()]=function(){return this._values[Zl()]()},t.prototype.toString=function(){return this._values.toString()},t.prototype.reset=function(t){this._values=function e(t){for(var e=[],n=0;n<t.length;){var r=t[n];Array.isArray(r)?r.length>0?(t=r.concat(t.slice(n+1)),n=0):n++:(e.push(r),n++)}return e}(t),this.dirty=!1},t.prototype.notifyOnChanges=function(){this.changes.emit(this)},t.prototype.setDirty=function(){this.dirty=!0},t.prototype.destroy=function(){this.changes.complete(),this.changes.unsubscribe()}}();var Sx=function(){function t(t,e){var n=this;this.host=t,this.getProgram=e,this.metadataCollector=new zc({verboseInvalidExpression:!0}),t.directoryExists&&(this.directoryExists=function(t){return n.host.directoryExists(t)})}return t.prototype.fileExists=function(t){return!!this.host.getScriptSnapshot(t)},t.prototype.readFile=function(t){var e=this.host.getScriptSnapshot(t);if(e)return e.getText(0,e.getLength())},t.prototype.getSourceFileMetadata=function(t){var e=this.getProgram().getSourceFile(t);return e?this.metadataCollector.getMetadata(e):void 0},t.prototype.cacheMetadata=function(t){return t.endsWith(".d.ts")},t}(),Cx=function(){function t(t,e,n){this.options=n,this.metadataReaderCache=function i(){return{data:new Map}}(),this.hostAdapter=new Sx(e,t),this.moduleResolutionCache=r.createModuleResolutionCache(e.getCurrentDirectory(),function(t){return t})}return t.prototype.getMetadataFor=function(t){return function e(t,n,r){var i=r&&r.data.get(t);if(i)return i;if(n.fileExists(t))if(Gc.test(t))(i=function o(t,e){var n=e.replace(Gc,".metadata.json");if(t.fileExists(n))try{var r=JSON.parse(t.readFile(n)),i=r?Array.isArray(r)?r:[r]:[];if(i.length){var o=i.reduce(function(t,e){return t.version>e.version?t:e});o.version<Ec&&i.push(Xc(t,o,e))}return i}catch(t){throw console.error("Failed to read JSON file "+n),t}}(n,t))||(i=[Xc(n,{__symbolic:"module",version:1,metadata:{}},t)]);else{var s=n.getSourceFileMetadata(t);i=s?[s]:[]}return!r||n.cacheMetadata&&!n.cacheMetadata(t)||r.data.set(t,i),i}(t,this.hostAdapter,this.metadataReaderCache)},t.prototype.moduleNameToFileName=function(t,e){if(!e){if(0===t.indexOf("."))throw new Error("Resolution of relative paths requires a containing file.");e=n.join(this.options.basePath,"index.ts").replace(/\\/g,"/")}var i=r.resolveModuleName(t,e,this.options,this.hostAdapter).resolvedModule;return i?i.resolvedFileName:null},t.prototype.getOutputName=function(t){return t},t}(),Tx=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o(e,t),e.prototype.parse=function(t,e,n,r){return void 0===n&&(n=!1),void 0===r&&(r=_e),new zr([],[])},e}(vo),Px=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o(e,t),e.prototype.get=function(t){return Promise.resolve("")},e}(qu),Ax=function(){function t(t,e){this.host=t,this.tsService=e,this._staticSymbolCache=new Kt,this._typeCache=[],this.modulesOutOfDate=!0,this.fileVersions=new Map}return t.prototype.setSite=function(t){this.service=t},Object.defineProperty(t.prototype,"resolver",{get:function(){var t=this;this.validate();var e=this._resolver;if(!e){var n=new Ks(this.reflector),r=new He(this.reflector),i=new ia(this.reflector),o=new fa,s=new Px,a=Ru(),u=new Tx,c=new Ht({defaultEncapsulation:qp.Emulated,useJit:!1}),l=new Le(s,a,u,c);e=this._resolver=new Is(c,u,n,r,i,new Iu,o,l,new py,this._staticSymbolCache,this.reflector,function(e,n){return t.collectError(e,n&&n.filePath)})}return e},enumerable:!0,configurable:!0}),t.prototype.getTemplateReferences=function(){return this.ensureTemplateMap(),this.templateReferences||[]},t.prototype.getTemplateAt=function(t,e){var n=this.getSourceFile(t);if(n){this.context=n.fileName;var r=this.findNode(n,e);if(r)return this.getSourceFromNode(t,this.host.getScriptVersion(n.fileName),r)}else{this.ensureTemplateMap();var i=this.fileToComponent.get(t);if(i)return this.getSourceFromType(t,this.host.getScriptVersion(t),i)}},t.prototype.getAnalyzedModules=function(){return this.updateAnalyzedModules(),this.ensureAnalyzedModules()},t.prototype.ensureAnalyzedModules=function(){var t=this.analyzedModules;return t||(t=0===this.host.getScriptFileNames().length?{files:[],ngModuleByPipeOrDirective:new Map,ngModules:[]}:function e(t,n,r,i){return function s(t){var e=[],n=new Map,r=new Set;t.forEach(function(t){t.ngModules.forEach(function(t){e.push(t),t.declaredDirectives.forEach(function(e){return n.set(e.reference,t)}),t.declaredPipes.forEach(function(e){return n.set(e.reference,t)})}),t.directives.forEach(function(t){return r.add(t)}),t.pipes.forEach(function(t){return r.add(t)})});var i=[];return r.forEach(function(t){n.has(t)||i.push(t)}),{ngModules:e,ngModuleByPipeOrDirective:n,symbolsMissingModule:i,files:t}}(function o(t,e,n,r){var i=new Set,o=[],s=function(t){if(i.has(t)||!e.isSourceFile(t))return!1;i.add(t);var a=function u(t,e,n,r){var i=[],o=[],s=[],a=[],u=e.hasDecorators(r),c=!1;return r.endsWith(".d.ts")&&!u||e.getSymbolsOf(r).forEach(function(r){var u=e.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 p=n.getNgModuleMetadata(r,!1);p&&(l=!0,a.push(p))}else if(n.isInjectable(r)){l=!0;var h=n.getInjectableMetadata(r,null,!1);h&&s.push(h)}l||(c=c||function f(t,e){var n=!1;return ot(e,new(function(){function e(){}return e.prototype.visitArray=function(t,e){var n=this;t.forEach(function(t){return ot(t,n,e)})},e.prototype.visitStringMap=function(t,e){var n=this;Object.keys(t).forEach(function(r){return ot(t[r],n,e)})},e.prototype.visitPrimitive=function(t,e){},e.prototype.visitOther=function(e,r){e instanceof qt&&!t.isSourceFile(e.filePath)&&(n=!0)},e}()),null),n}(t,u))}}),{fileName:r,directives:i,pipes:o,ngModules:a,injectables:s,exportsNonSourceFiles:c}}(e,n,r,t);o.push(a),a.ngModules.forEach(function(t){t.transitiveModule.modules.forEach(function(t){return s(t.reference.filePath)})})};return t.forEach(function(t){return s(t)}),o}(t,n,r,i))}(this.program.getSourceFiles().map(function(t){return t.fileName}),{isSourceFile:function(t){return!0}},this.staticSymbolResolver,this.resolver),this.analyzedModules=t),t},t.prototype.getTemplates=function(t){var e=this;if(this.ensureTemplateMap(),!this.fileToComponent.get(t)){var n=this.host.getScriptVersion(t),i=[],o=function(s){var a=e.getSourceFromNode(t,n,s);a?i.push(a):r.forEachChild(s,o)},s=this.getSourceFile(t);return s&&(this.context=s.path||s.fileName,r.forEachChild(s,o)),i.length?i:void 0}var a=this.getTemplateAt(t,0);if(a)return[a]},t.prototype.getDeclarations=function(t){var e=this,n=[],i=this.getSourceFile(t);if(i){var o=function(t){var s=e.getDeclarationFromNode(i,t);s?n.push(s):r.forEachChild(t,o)};r.forEachChild(i,o)}return n},t.prototype.getSourceFile=function(t){return this.tsService.getProgram().getSourceFile(t)},t.prototype.updateAnalyzedModules=function(){this.validate(),this.modulesOutOfDate&&(this.analyzedModules=null,this._reflector=null,this.templateReferences=null,this.fileToComponent=null,this.ensureAnalyzedModules(),this.modulesOutOfDate=!1)},Object.defineProperty(t.prototype,"program",{get:function(){return this.tsService.getProgram()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"checker",{get:function(){var t=this._checker;return t||(t=this._checker=this.program.getTypeChecker()),t},enumerable:!0,configurable:!0}),t.prototype.validate=function(){var t,e,n=this,r=this.program;if(this.lastProgram!==r){var i=function(t){return n._staticSymbolResolver.invalidateFile(t)};this.clearCaches();var o=new Set;try{for(var s=p(this.program.getSourceFiles()),a=s.next();!a.done;a=s.next()){var u=a.value.fileName;o.add(u);var c=this.host.getScriptVersion(u);c!=this.fileVersions.get(u)&&(this.fileVersions.set(u,c),this._staticSymbolResolver&&i(u))}}catch(e){t={error:e}}finally{try{a&&!a.done&&(e=s.return)&&e.call(s)}finally{if(t)throw t.error}}var l=Array.from(this.fileVersions.keys()).filter(function(t){return!o.has(t)});l.forEach(function(t){return n.fileVersions.delete(t)}),this._staticSymbolResolver&&l.forEach(i),this.lastProgram=r}},t.prototype.clearCaches=function(){this._checker=null,this._typeCache=[],this._resolver=null,this.collectedErrors=null,this.modulesOutOfDate=!0},t.prototype.ensureTemplateMap=function(){var t,e,n,r;if(!this.fileToComponent||!this.templateReferences){var i=new Map,o=[],s=this.getAnalyzedModules(),a=Ru();try{for(var u=p(s.ngModules),c=u.next();!c.done;c=u.next()){var l=c.value;try{for(var h=p(l.declaredDirectives),f=h.next();!f.done;f=h.next()){var d=f.value,v=this.resolver.getNonNormalizedDirectiveMetadata(d.reference).metadata;if(v.isComponent&&v.template&&v.template.templateUrl){var y=a.resolve(this.reflector.componentModuleUrl(d.reference),v.template.templateUrl);i.set(y,d.reference),o.push(y)}}}catch(t){n={error:t}}finally{try{f&&!f.done&&(r=h.return)&&r.call(h)}finally{if(n)throw n.error}}}}catch(e){t={error:e}}finally{try{c&&!c.done&&(e=u.return)&&e.call(u)}finally{if(t)throw t.error}}this.fileToComponent=i,this.templateReferences=o}},t.prototype.getSourceFromDeclaration=function(t,e,n,r,i,o,s,a){var u=void 0,c=this;if(o)return{version:e,source:n,span:r,type:i,get members(){return function t(e,n,r,i){var o=n.getTypeAtLocation(i);return new ic(o,{node:r,program:e,checker:n}).members()}(c.program,c.checker,a,o)},get query(){if(!u){var e=c.service.getPipesAt(t,s.getStart());u=function n(t,e,r,i){return new tc(t,e,r,i)}(c.program,c.checker,a,function(){return function t(e,n,r,i){return new hc(i,{program:n,checker:r,node:e})}(a,c.program,c.checker,e)})}return u}}},t.prototype.getSourceFromNode=function(t,e,n){switch(n.kind){case r.SyntaxKind.NoSubstitutionTemplateLiteral:case r.SyntaxKind.StringLiteral:var i=h(this.getTemplateClassDeclFromNode(n),2)[0];if(i&&i.name){var o=this.getSourceFile(t);if(o)return this.getSourceFromDeclaration(t,e,this.stringOf(n)||"",function s(t,e){return null==e&&(e=1),{start:t.start+e,end:t.end-e}}(Nx(n)),this.reflector.getStaticSymbol(o.fileName,i.name.text),i,n,o)}}},t.prototype.getSourceFromType=function(t,e,n){var r=void 0,i=this.getTemplateClassFromStaticSymbol(n);if(i){var o=this.host.getScriptSnapshot(t);if(o){var s=o.getText(0,o.getLength());r=this.getSourceFromDeclaration(t,e,s,{start:0,end:s.length},n,i,i,i.getSourceFile())}}return r},Object.defineProperty(t.prototype,"reflectorHost",{get:function(){var t=this,r=this._reflectorHost;if(!r){if(!this.context){var i=this.host.getScriptFileNames();if(0===i.length)throw new Error("Internal error: no script file names found");this.context=i[0]}var o=this.tsService.getProgram().getSourceFile(this.context);if(!o)throw new Error("Internal error: no context could be determined");var s=function a(t){for(var r=n.dirname(t);e.existsSync(r);){var i=n.join(r,"tsconfig.json");if(e.existsSync(i))return i;var o=n.dirname(r);if(o===r)break;r=o}}(o.fileName),u=n.dirname(s||this.context),c={basePath:u,genDir:u},l=this.host.getCompilationSettings();l&&l.baseUrl&&(c.baseUrl=l.baseUrl),l&&l.paths&&(c.paths=l.paths),r=this._reflectorHost=new Cx(function(){return t.tsService.getProgram()},this.host,c)}return r},enumerable:!0,configurable:!0}),t.prototype.collectError=function(t,e){if(e){var n=this.collectedErrors;n&&this.collectedErrors||(n=this.collectedErrors=new Map);var r=n.get(e);r||this.collectedErrors.set(e,r=[]),r.push(t)}},Object.defineProperty(t.prototype,"staticSymbolResolver",{get:function(){var t=this,e=this._staticSymbolResolver;return e||(this._summaryResolver=new Mu({loadSummary:function(t){return null},isSourceFile:function(t){return!0},toSummaryFileName:function(t){return t},fromSummaryFileName:function(t){return t}},this._staticSymbolCache),e=this._staticSymbolResolver=new su(this.reflectorHost,this._staticSymbolCache,this._summaryResolver,function(e,n){return t.collectError(e,n)})),e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"reflector",{get:function(){var t=this,e=this._reflector;return e||(e=this._reflector=new mu(this._summaryResolver,this.staticSymbolResolver,[],[],function(e,n){return t.collectError(e,n)})),e},enumerable:!0,configurable:!0}),t.prototype.getTemplateClassFromStaticSymbol=function(t){var e=this.getSourceFile(t.filePath);if(e)return r.forEachChild(e,function(e){if(e.kind===r.SyntaxKind.ClassDeclaration&&null!=e.name&&e.name.text===t.name)return e})},t.prototype.getTemplateClassDeclFromNode=function(e){var n=e.parent;if(!n)return t.missingTemplate;if(n.kind!==r.SyntaxKind.PropertyAssignment)return t.missingTemplate;if("template"!==n.name.text)return t.missingTemplate;if(!(n=n.parent)||n.kind!==r.SyntaxKind.ObjectLiteralExpression)return t.missingTemplate;if(!(n=n.parent)||n.kind!==r.SyntaxKind.CallExpression)return t.missingTemplate;var i=n.expression,o=n.parent;if(!o||o.kind!==r.SyntaxKind.Decorator)return t.missingTemplate;var s=o.parent;return s&&s.kind===r.SyntaxKind.ClassDeclaration?[s,i]:t.missingTemplate},t.prototype.getCollectedErrors=function(t,e){var n=this.collectedErrors&&this.collectedErrors.get(e.fileName);return n&&n.map(function(n){var i=function o(t,e,n){if(null!=e&&null!=n){var i=r.getPositionOfLineAndCharacter(t,e,n),o=r.forEachChild(t,function t(e){if(e.kind>r.SyntaxKind.LastToken&&e.pos<=i&&e.end>i)return r.forEachChild(e,t)||e});if(o)return{start:o.getStart(),end:o.getEnd()}}}(e,n.line||n.position&&n.position.line,n.column||n.position&&n.position.column)||t;return function s(t){return!!t[pu]}
1239
1262
  /**
1240
1263
  * @license
1241
1264
  * Copyright Google Inc. All Rights Reserved.
@@ -1249,7 +1272,70 @@ function i(t,e,n,r){e&&(r.initHooks||(r.initHooks=[])).push(t,e),n&&((r.initHook
1249
1272
  *
1250
1273
  * Use of this source code is governed by an MIT-style license that can be
1251
1274
  * found in the LICENSE file at https://angular.io/license
1252
- */(n,i):{message:n.message,span:i}})||[]},t.prototype.getDeclarationFromNode=function(t,e){var n,i;if(e.kind==r.SyntaxKind.ClassDeclaration&&e.decorators&&e.name)try{for(var o=u(e.decorators),s=o.next();!s.done;s=o.next()){var a=s.value;if(a.expression&&a.expression.kind==r.SyntaxKind.CallExpression){var c=e;if(c.name){var l=a.expression.expression;if(this.checker.getTypeAtLocation(l)){var p=this.reflector.getStaticSymbol(t.fileName,c.name.text);try{if(this.resolver.isDirective(p)){var h=this.resolver.getNonNormalizedDirectiveMetadata(p).metadata;return{type:p,declarationSpan:f=rx(l),metadata:h,errors:this.getCollectedErrors(f,t)}}}catch(e){var f;if(e.message)return this.collectError(e,t.fileName),{type:p,declarationSpan:f=rx(l),errors:this.getCollectedErrors(f,t)}}}}}}}catch(t){n={error:t}}finally{try{s&&!s.done&&(i=o.return)&&i.call(o)}finally{if(n)throw n.error}}},t.prototype.stringOf=function(t){switch(t.kind){case r.SyntaxKind.NoSubstitutionTemplateLiteral:case r.SyntaxKind.StringLiteral:return t.text}},t.prototype.findNode=function(t,e){return function t(n){if(e>=n.getStart()&&e<n.getEnd())return r.forEachChild(n,t)||n}(t)},t.missingTemplate=[void 0,void 0],t}();function rx(t){return{start:t.getStart(),end:t.getEnd()}}var ix=new WeakMap,ox=new Vp("6.1.6");
1275
+ */(n,i):{message:n.message,span:i}})||[]},t.prototype.getDeclarationFromNode=function(t,e){var n,i;if(e.kind==r.SyntaxKind.ClassDeclaration&&e.decorators&&e.name)try{for(var o=p(e.decorators),s=o.next();!s.done;s=o.next()){var a=s.value;if(a.expression&&a.expression.kind==r.SyntaxKind.CallExpression){var u=e;if(u.name){var c=a.expression.expression;if(this.checker.getTypeAtLocation(c)){var l=this.reflector.getStaticSymbol(t.fileName,u.name.text);try{if(this.resolver.isDirective(l)){var h=this.resolver.getNonNormalizedDirectiveMetadata(l).metadata;return{type:l,declarationSpan:f=Nx(c),metadata:h,errors:this.getCollectedErrors(f,t)}}}catch(e){var f;if(e.message)return this.collectError(e,t.fileName),{type:l,declarationSpan:f=Nx(c),errors:this.getCollectedErrors(f,t)}}}}}}}catch(t){n={error:t}}finally{try{s&&!s.done&&(i=o.return)&&i.call(o)}finally{if(n)throw n.error}}},t.prototype.stringOf=function(t){switch(t.kind){case r.SyntaxKind.NoSubstitutionTemplateLiteral:case r.SyntaxKind.StringLiteral:return t.text}},t.prototype.findNode=function(t,e){return function t(n){if(e>=n.getStart()&&e<n.getEnd())return r.forEachChild(n,t)||n}(t)},t.missingTemplate=[void 0,void 0],t}();
1276
+ /**
1277
+ * @license
1278
+ * Copyright Google Inc. All Rights Reserved.
1279
+ *
1280
+ * Use of this source code is governed by an MIT-style license that can be
1281
+ * found in the LICENSE file at https://angular.io/license
1282
+ */
1283
+ /**
1284
+ * @license
1285
+ * Copyright Google Inc. All Rights Reserved.
1286
+ *
1287
+ * Use of this source code is governed by an MIT-style license that can be
1288
+ * found in the LICENSE file at https://angular.io/license
1289
+ */
1290
+ /**
1291
+ * @license
1292
+ * Copyright Google Inc. All Rights Reserved.
1293
+ *
1294
+ * Use of this source code is governed by an MIT-style license that can be
1295
+ * found in the LICENSE file at https://angular.io/license
1296
+ */
1297
+ /**
1298
+ * @license
1299
+ * Copyright Google Inc. All Rights Reserved.
1300
+ *
1301
+ * Use of this source code is governed by an MIT-style license that can be
1302
+ * found in the LICENSE file at https://angular.io/license
1303
+ */
1304
+ /**
1305
+ * @license
1306
+ * Copyright Google Inc. All Rights Reserved.
1307
+ *
1308
+ * Use of this source code is governed by an MIT-style license that can be
1309
+ * found in the LICENSE file at https://angular.io/license
1310
+ */
1311
+ /**
1312
+ * @license
1313
+ * Copyright Google Inc. All Rights Reserved.
1314
+ *
1315
+ * Use of this source code is governed by an MIT-style license that can be
1316
+ * found in the LICENSE file at https://angular.io/license
1317
+ */
1318
+ /**
1319
+ * @license
1320
+ * Copyright Google Inc. All Rights Reserved.
1321
+ *
1322
+ * Use of this source code is governed by an MIT-style license that can be
1323
+ * found in the LICENSE file at https://angular.io/license
1324
+ */
1325
+ /**
1326
+ * @license
1327
+ * Copyright Google Inc. All Rights Reserved.
1328
+ *
1329
+ * Use of this source code is governed by an MIT-style license that can be
1330
+ * found in the LICENSE file at https://angular.io/license
1331
+ */
1332
+ /**
1333
+ * @license
1334
+ * Copyright Google Inc. All Rights Reserved.
1335
+ *
1336
+ * Use of this source code is governed by an MIT-style license that can be
1337
+ * found in the LICENSE file at https://angular.io/license
1338
+ */function Nx(t){return{start:t.getStart(),end:t.getEnd()}}var kx=new WeakMap,Ox=new zp("6.1.10");
1253
1339
  /**
1254
1340
  * @license
1255
1341
  * Copyright Google Inc. All Rights Reserved.
@@ -1264,7 +1350,7 @@ function i(t,e,n,r){e&&(r.initHooks||(r.initHooks=[])).push(t,e),n&&((r.initHook
1264
1350
  * Use of this source code is governed by an MIT-style license that can be
1265
1351
  * found in the LICENSE file at https://angular.io/license
1266
1352
  */
1267
- t.createLanguageService=Cl,t.TypeScriptServiceHost=nx,t.createLanguageServiceFromTypescript=
1353
+ t.createLanguageService=kl,t.TypeScriptServiceHost=Ax,t.createLanguageServiceFromTypescript=
1268
1354
  /**
1269
1355
  * @license
1270
1356
  * Copyright Google Inc. All Rights Reserved.
@@ -1272,7 +1358,7 @@ t.createLanguageService=Cl,t.TypeScriptServiceHost=nx,t.createLanguageServiceFro
1272
1358
  * Use of this source code is governed by an MIT-style license that can be
1273
1359
  * found in the LICENSE file at https://angular.io/license
1274
1360
  */
1275
- function sx(t,e){var n=new nx(t,e),r=Cl(n);return n.setSite(r),r},t.VERSION=ox,t.getExternalFiles=function ax(t){var e=ix.get(t);if(e)return e.getTemplateReferences()},t.create=function ux(t){var e=Object.create(null),n=t.languageService;function i(t,e){if(!t||n.getProgram().getSourceFile(t))try{return e()}catch(t){return}}function o(t){return function(e){return i(e,function(){return t.call(y,e)})}}function s(t){return function(e,n){return i(e,function(){return t.call(y,e,n)})}}function a(t){return function(e,n,r){return i(e,function(){return t.call(y,e,n,r)})}}function c(t){return function(e,n,r,o){return i(e,function(){return t.call(y,e,n,r,o)})}}function l(t){return function(e,n,r,o,s,a){return i(e,function(){return t.call(y,e,n,r,o,s,a)})}}n=function p(t){return{cleanupSemanticCache:function(){return t.cleanupSemanticCache()},getSyntacticDiagnostics:o(t.getSyntacticDiagnostics),getSemanticDiagnostics:o(t.getSemanticDiagnostics),getCompilerOptionsDiagnostics:function(){return t.getCompilerOptionsDiagnostics()},getSyntacticClassifications:s(t.getSemanticClassifications),getSemanticClassifications:s(t.getSemanticClassifications),getEncodedSyntacticClassifications:s(t.getEncodedSyntacticClassifications),getEncodedSemanticClassifications:s(t.getEncodedSemanticClassifications),getCompletionsAtPosition:a(t.getCompletionsAtPosition),getCompletionEntryDetails:l(t.getCompletionEntryDetails),getCompletionEntrySymbol:c(t.getCompletionEntrySymbol),getQuickInfoAtPosition:s(t.getQuickInfoAtPosition),getNameOrDottedNameSpan:a(t.getNameOrDottedNameSpan),getBreakpointStatementAtPosition:s(t.getBreakpointStatementAtPosition),getSignatureHelpItems:s(t.getSignatureHelpItems),getRenameInfo:s(t.getRenameInfo),findRenameLocations:c(t.findRenameLocations),getDefinitionAtPosition:s(t.getDefinitionAtPosition),getTypeDefinitionAtPosition:s(t.getTypeDefinitionAtPosition),getImplementationAtPosition:s(t.getImplementationAtPosition),getReferencesAtPosition:s(t.getReferencesAtPosition),findReferences:s(t.findReferences),getDocumentHighlights:a(t.getDocumentHighlights),getOccurrencesAtPosition:s(t.getOccurrencesAtPosition),getNavigateToItems:function(e,n,r,o){return i(r,function(){return t.getNavigateToItems(e,n,r,o)})},getNavigationBarItems:o(t.getNavigationBarItems),getNavigationTree:o(t.getNavigationTree),getOutliningSpans:o(t.getOutliningSpans),getTodoComments:s(t.getTodoComments),getBraceMatchingAtPosition:s(t.getBraceMatchingAtPosition),getIndentationAtPosition:a(t.getIndentationAtPosition),getFormattingEditsForRange:c(t.getFormattingEditsForRange),getFormattingEditsForDocument:s(t.getFormattingEditsForDocument),getFormattingEditsAfterKeystroke:c(t.getFormattingEditsAfterKeystroke),getDocCommentTemplateAtPosition:s(t.getDocCommentTemplateAtPosition),isValidBraceCompletionAtPosition:a(t.isValidBraceCompletionAtPosition),getSpanOfEnclosingComment:a(t.getSpanOfEnclosingComment),getCodeFixesAtPosition:l(t.getCodeFixesAtPosition),applyCodeActionCommand:function(e){return i(void 0,function(){return t.applyCodeActionCommand(e)})},getEmitOutput:o(t.getEmitOutput),getProgram:function(){return t.getProgram()},dispose:function(){return t.dispose()},getApplicableRefactors:a(t.getApplicableRefactors),getEditsForRefactor:l(t.getEditsForRefactor),getDefinitionAndBoundSpan:s(t.getDefinitionAndBoundSpan),getCombinedCodeFix:function(e,n,r,o){return i(void 0,function(){return t.getCombinedCodeFix(e,n,r,o)})},getSuggestionDiagnostics:function(t){return[]},organizeImports:function(t,e){return[]},getEditsForFileRename:function(t,e,n,r){return[]}}}(n);var h=function(t){e[t]=function(){return n[t].apply(n,arguments)}};for(var f in n)h(f);function d(e,n){try{return n()}catch(n){return t.project.projectService.logger.info("Failed to "+e+": "+n.toString()),t.project.projectService.logger.info("Stack trace: "+n.stack),null}}var v=new nx(t.languageServiceHost,t.languageService),y=Cl(v);return v.setSite(y),ix.set(t.project,v),e.getCompletionsAtPosition=function(t,e,r){var i=n.getCompletionsAtPosition(t,e,r)||{isGlobalCompletion:!1,isMemberCompletion:!1,isNewIdentifierLocation:!1,entries:[]};return d("get completions",function(){var n,r,o,s=y.getCompletionsAt(t,e);if(s&&s.length){void 0===i&&(i={isGlobalCompletion:!1,isMemberCompletion:!1,isNewIdentifierLocation:!1,entries:[]});try{for(var a=u(s),c=a.next();!c.done;c=a.next())i.entries.push({kind:(o=c.value).kind,name:o.name,sortText:o.sort,kindModifiers:""})}catch(t){n={error:t}}finally{try{c&&!c.done&&(r=a.return)&&r.call(a)}finally{if(n)throw n.error}}}}),i},e.getQuickInfoAtPosition=function(t,e){var r=n.getQuickInfoAtPosition(t,e);return d("get quick info",function(){var n,i,o=y.getHoverAt(t,e);if(o){var s=[];try{for(var a=u(o.text),c=a.next();!c.done;c=a.next()){var l=c.value;s.push({kind:l.language||"angular",text:l.text})}}catch(t){n={error:t}}finally{try{c&&!c.done&&(i=a.return)&&i.call(a)}finally{if(n)throw n.error}}var p=r&&r.tags;r={displayParts:s,documentation:[],kind:"angular",kindModifiers:"what does this do?",textSpan:{start:o.span.start,length:o.span.end-o.span.start}},p&&(r.tags=p)}}),r},e.getSemanticDiagnostics=function(e){var i=n.getSemanticDiagnostics(e)||[];return d("get diagnostics",function(){t.project.projectService.logger.info("Computing Angular semantic diagnostics...");var o=y.getDiagnostics(e);if(o&&o.length){var s=n.getProgram().getSourceFile(e);s&&i.push.apply(i,o.map(function(t){return function e(t,n){return{file:n,start:t.span.start,length:t.span.end-t.span.start,messageText:function i(t){return"string"==typeof t?t:function t(e){return{messageText:e.message,category:r.DiagnosticCategory.Error,code:0,next:e.next?t(e.next):void 0}}(t)}(t.message),category:r.DiagnosticCategory.Error,code:0,source:"ng"}}(t,s)}))}}),i},e.getDefinitionAtPosition=function(t,e){var r=n.getDefinitionAtPosition(t,e);return r&&r.length?r:d("get definition",function(){var n,i,o=y.getDefinitionAt(t,e);if(o&&o.length){r=r||[];try{for(var s=u(o),a=s.next();!a.done;a=s.next()){var c=a.value;r.push({fileName:c.fileName,textSpan:{start:c.span.start,length:c.span.end-c.span.start},name:"",kind:"definition",containerName:c.fileName,containerKind:"file"})}}catch(t){n={error:t}}finally{try{a&&!a.done&&(i=s.return)&&i.call(s)}finally{if(n)throw n.error}}}return r})||[]},e}
1361
+ function Mx(t,e){var n=new Ax(t,e),r=kl(n);return n.setSite(r),r},t.VERSION=Ox,t.getExternalFiles=function Ix(t){var e=kx.get(t);if(e)return e.getTemplateReferences()},t.create=function Rx(t){var e=Object.create(null),n=t.languageService;function i(t,e){if(!t||n.getProgram().getSourceFile(t))try{return e()}catch(t){return}}function o(t){return function(e){return i(e,function(){return t.call(y,e)})}}function s(t){return function(e,n){return i(e,function(){return t.call(y,e,n)})}}function a(t){return function(e,n,r){return i(e,function(){return t.call(y,e,n,r)})}}function u(t){return function(e,n,r,o){return i(e,function(){return t.call(y,e,n,r,o)})}}function c(t){return function(e,n,r,o,s,a){return i(e,function(){return t.call(y,e,n,r,o,s,a)})}}n=function l(t){return{cleanupSemanticCache:function(){return t.cleanupSemanticCache()},getSyntacticDiagnostics:o(t.getSyntacticDiagnostics),getSemanticDiagnostics:o(t.getSemanticDiagnostics),getCompilerOptionsDiagnostics:function(){return t.getCompilerOptionsDiagnostics()},getSyntacticClassifications:s(t.getSemanticClassifications),getSemanticClassifications:s(t.getSemanticClassifications),getEncodedSyntacticClassifications:s(t.getEncodedSyntacticClassifications),getEncodedSemanticClassifications:s(t.getEncodedSemanticClassifications),getCompletionsAtPosition:a(t.getCompletionsAtPosition),getCompletionEntryDetails:c(t.getCompletionEntryDetails),getCompletionEntrySymbol:u(t.getCompletionEntrySymbol),getQuickInfoAtPosition:s(t.getQuickInfoAtPosition),getNameOrDottedNameSpan:a(t.getNameOrDottedNameSpan),getBreakpointStatementAtPosition:s(t.getBreakpointStatementAtPosition),getSignatureHelpItems:s(t.getSignatureHelpItems),getRenameInfo:s(t.getRenameInfo),findRenameLocations:u(t.findRenameLocations),getDefinitionAtPosition:s(t.getDefinitionAtPosition),getTypeDefinitionAtPosition:s(t.getTypeDefinitionAtPosition),getImplementationAtPosition:s(t.getImplementationAtPosition),getReferencesAtPosition:s(t.getReferencesAtPosition),findReferences:s(t.findReferences),getDocumentHighlights:a(t.getDocumentHighlights),getOccurrencesAtPosition:s(t.getOccurrencesAtPosition),getNavigateToItems:function(e,n,r,o){return i(r,function(){return t.getNavigateToItems(e,n,r,o)})},getNavigationBarItems:o(t.getNavigationBarItems),getNavigationTree:o(t.getNavigationTree),getOutliningSpans:o(t.getOutliningSpans),getTodoComments:s(t.getTodoComments),getBraceMatchingAtPosition:s(t.getBraceMatchingAtPosition),getIndentationAtPosition:a(t.getIndentationAtPosition),getFormattingEditsForRange:u(t.getFormattingEditsForRange),getFormattingEditsForDocument:s(t.getFormattingEditsForDocument),getFormattingEditsAfterKeystroke:u(t.getFormattingEditsAfterKeystroke),getDocCommentTemplateAtPosition:s(t.getDocCommentTemplateAtPosition),isValidBraceCompletionAtPosition:a(t.isValidBraceCompletionAtPosition),getSpanOfEnclosingComment:a(t.getSpanOfEnclosingComment),getCodeFixesAtPosition:c(t.getCodeFixesAtPosition),applyCodeActionCommand:function(e){return i(void 0,function(){return t.applyCodeActionCommand(e)})},getEmitOutput:o(t.getEmitOutput),getProgram:function(){return t.getProgram()},dispose:function(){return t.dispose()},getApplicableRefactors:a(t.getApplicableRefactors),getEditsForRefactor:c(t.getEditsForRefactor),getDefinitionAndBoundSpan:s(t.getDefinitionAndBoundSpan),getCombinedCodeFix:function(e,n,r,o){return i(void 0,function(){return t.getCombinedCodeFix(e,n,r,o)})},getSuggestionDiagnostics:function(t){return[]},organizeImports:function(t,e){return[]},getEditsForFileRename:function(t,e,n,r){return[]}}}(n);var h=function(t){e[t]=function(){return n[t].apply(n,arguments)}};for(var f in n)h(f);function d(e,n){try{return n()}catch(n){return t.project.projectService.logger.info("Failed to "+e+": "+n.toString()),t.project.projectService.logger.info("Stack trace: "+n.stack),null}}var v=new Ax(t.languageServiceHost,t.languageService),y=kl(v);return v.setSite(y),kx.set(t.project,v),e.getCompletionsAtPosition=function(t,e,r){var i=n.getCompletionsAtPosition(t,e,r)||{isGlobalCompletion:!1,isMemberCompletion:!1,isNewIdentifierLocation:!1,entries:[]};return d("get completions",function(){var n,r,o,s=y.getCompletionsAt(t,e);if(s&&s.length){void 0===i&&(i={isGlobalCompletion:!1,isMemberCompletion:!1,isNewIdentifierLocation:!1,entries:[]});try{for(var a=p(s),u=a.next();!u.done;u=a.next())i.entries.push({kind:(o=u.value).kind,name:o.name,sortText:o.sort,kindModifiers:""})}catch(t){n={error:t}}finally{try{u&&!u.done&&(r=a.return)&&r.call(a)}finally{if(n)throw n.error}}}}),i},e.getQuickInfoAtPosition=function(t,e){var r=n.getQuickInfoAtPosition(t,e);return d("get quick info",function(){var n,i,o=y.getHoverAt(t,e);if(o){var s=[];try{for(var a=p(o.text),u=a.next();!u.done;u=a.next()){var c=u.value;s.push({kind:c.language||"angular",text:c.text})}}catch(t){n={error:t}}finally{try{u&&!u.done&&(i=a.return)&&i.call(a)}finally{if(n)throw n.error}}var l=r&&r.tags;r={displayParts:s,documentation:[],kind:"angular",kindModifiers:"what does this do?",textSpan:{start:o.span.start,length:o.span.end-o.span.start}},l&&(r.tags=l)}}),r},e.getSemanticDiagnostics=function(e){var i=n.getSemanticDiagnostics(e)||[];return d("get diagnostics",function(){t.project.projectService.logger.info("Computing Angular semantic diagnostics...");var o=y.getDiagnostics(e);if(o&&o.length){var s=n.getProgram().getSourceFile(e);s&&i.push.apply(i,o.map(function(t){return function e(t,n){return{file:n,start:t.span.start,length:t.span.end-t.span.start,messageText:function i(t){return"string"==typeof t?t:function t(e){return{messageText:e.message,category:r.DiagnosticCategory.Error,code:0,next:e.next?t(e.next):void 0}}(t)}(t.message),category:r.DiagnosticCategory.Error,code:0,source:"ng"}}(t,s)}))}}),i},e.getDefinitionAtPosition=function(t,e){var r=n.getDefinitionAtPosition(t,e);return r&&r.length?r:d("get definition",function(){var n,i,o=y.getDefinitionAt(t,e);if(o&&o.length){r=r||[];try{for(var s=p(o),a=s.next();!a.done;a=s.next()){var u=a.value;r.push({fileName:u.fileName,textSpan:{start:u.span.start,length:u.span.end-u.span.start},name:"",kind:"definition",containerName:u.fileName,containerKind:"file"})}}catch(t){n={error:t}}finally{try{a&&!a.done&&(i=s.return)&&i.call(s)}finally{if(n)throw n.error}}}return r})||[]},e}
1276
1362
  /**
1277
1363
  * @license
1278
1364
  * Copyright Google Inc. All Rights Reserved.